diff --git a/gradle.properties b/gradle.properties index 59118adfe8..adf4b29ab2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group = io.cloudshiftdev.kotlin-cdk-wrapper -version = 0.8.1 +version = 0.9.0 kotlin.code.style=official diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AppProps.kt index e7e23c4811..ad394b70cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AppProps.kt @@ -327,7 +327,8 @@ public interface AppProps { private class Wrapper( cdkObject: software.amazon.awscdk.AppProps, - ) : CdkObject(cdkObject), AppProps { + ) : CdkObject(cdkObject), + AppProps { /** * Include runtime versioning information in the Stacks of this app. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ArnComponents.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ArnComponents.kt index 6643a9aa6a..7d54a02bd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ArnComponents.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ArnComponents.kt @@ -12,25 +12,30 @@ import kotlin.Unit * Example: * * ``` - * PublicHostedZone subZone = PublicHostedZone.Builder.create(this, "SubZone") - * .zoneName("sub.someexample.com") - * .build(); - * // import the delegation role by constructing the roleArn - * String delegationRoleArn = Stack.of(this).formatArn(ArnComponents.builder() - * .region("") // IAM is global in each partition - * .service("iam") - * .account("parent-account-id") - * .resource("role") - * .resourceName("MyDelegationRole") + * import io.cloudshiftdev.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer; + * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration; + * // This function handles your connect route + * Function connectHandler; + * WebSocketApi webSocketApi = new WebSocketApi(this, "WebSocketApi"); + * webSocketApi.addRoute("$connect", WebSocketRouteOptions.builder() + * .integration(new WebSocketLambdaIntegration("Integration", connectHandler)) + * .authorizer(new WebSocketIamAuthorizer()) + * .build()); + * // Create an IAM user (identity) + * User user = new User(this, "User"); + * String webSocketArn = Stack.of(this).formatArn(ArnComponents.builder() + * .service("execute-api") + * .resource(webSocketApi.getApiId()) + * .build()); + * // Grant access to the IAM user + * user.attachInlinePolicy(Policy.Builder.create(this, "AllowInvoke") + * .statements(List.of( + * PolicyStatement.Builder.create() + * .actions(List.of("execute-api:Invoke")) + * .effect(Effect.ALLOW) + * .resources(List.of(webSocketArn)) + * .build())) * .build()); - * IRole delegationRole = Role.fromRoleArn(this, "DelegationRole", delegationRoleArn); - * // create the record - * // create the record - * CrossAccountZoneDelegationRecord.Builder.create(this, "delegate") - * .delegatedZone(subZone) - * .parentHostedZoneName("someexample.com") // or you can use parentHostedZoneId - * .delegationRole(delegationRole) - * .build(); * ``` */ public interface ArnComponents { @@ -88,7 +93,7 @@ public interface ArnComponents { /** * The service namespace that identifies the AWS product (for example, 's3', 'iam', - * 'codepipline'). + * 'codepipeline'). */ public fun service(): String @@ -139,7 +144,7 @@ public interface ArnComponents { /** * @param service The service namespace that identifies the AWS product (for example, 's3', - * 'iam', 'codepipline'). + * 'iam', 'codepipeline'). */ public fun service(service: String) } @@ -202,7 +207,7 @@ public interface ArnComponents { /** * @param service The service namespace that identifies the AWS product (for example, 's3', - * 'iam', 'codepipline'). + * 'iam', 'codepipeline'). */ override fun service(service: String) { cdkBuilder.service(service) @@ -213,7 +218,8 @@ public interface ArnComponents { private class Wrapper( cdkObject: software.amazon.awscdk.ArnComponents, - ) : CdkObject(cdkObject), ArnComponents { + ) : CdkObject(cdkObject), + ArnComponents { /** * The ID of the AWS account that owns the resource, without the hyphens. * @@ -268,7 +274,7 @@ public interface ArnComponents { /** * The service namespace that identifies the AWS product (for example, 's3', 'iam', - * 'codepipline'). + * 'codepipeline'). */ override fun service(): String = unwrap(this).getService() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestBuilder.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestBuilder.kt index 4dd154db06..b31eb66b7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestBuilder.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestBuilder.kt @@ -2,11 +2,11 @@ package io.cloudshiftdev.awscdk -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifestOptions -import io.cloudshiftdev.awscdk.cloudassembly.schema.DockerImageDestination -import io.cloudshiftdev.awscdk.cloudassembly.schema.DockerImageSource -import io.cloudshiftdev.awscdk.cloudassembly.schema.FileDestination -import io.cloudshiftdev.awscdk.cloudassembly.schema.FileSource +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifestOptions +import io.cloudshiftdev.awscdk.cloud_assembly_schema.DockerImageDestination +import io.cloudshiftdev.awscdk.cloud_assembly_schema.DockerImageSource +import io.cloudshiftdev.awscdk.cloud_assembly_schema.FileDestination +import io.cloudshiftdev.awscdk.cloud_assembly_schema.FileSource import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.Boolean import kotlin.String @@ -65,7 +65,7 @@ public open class AssetManifestBuilder( * @param dest */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("4e1edb95420b1cc4bc59bd1462cbbeac5654f4c6b50d919d3e5a3e7b82595099") + @JvmName("54e5456fa066f79fbad9029e272e9bf9de8aad90e1195836eeb7243fb908e06d") public open fun addDockerImageAsset( stack: Stack, sourceHash: String, @@ -104,7 +104,7 @@ public open class AssetManifestBuilder( * @param dest */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("afa728084935ca1ca8ec5a2a0d7affe349e6fa27eac23ff1b496c72cee9e5a36") + @JvmName("72eafdc567a6181964439383b6bcd3ce562703282a903f7cc6a2231e57a363a5") public open fun addFileAsset( stack: Stack, sourceHash: String, @@ -140,7 +140,7 @@ public open class AssetManifestBuilder( * @param target */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("8b4071378ed8a6722e86a3ca17715f5b4c14db29188a7ef32d099c2276b7db74") + @JvmName("58c402a5954ad544e84d12adade7f63acaa16f1da034b40517699778b7c0cfc0") public open fun defaultAddDockerImageAsset( stack: Stack, asset: DockerImageAssetSource, @@ -177,7 +177,7 @@ public open class AssetManifestBuilder( * @param target */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("da70fe31f1f903fedb3877c6896aa4ef53c6bb6d46fdbda3b083aabd79164f34") + @JvmName("3af534afd81e127cca714111a29fd8dba3b9212966d3d315a30f50db18276d88") public open fun defaultAddFileAsset( stack: Stack, asset: FileAssetSource, @@ -230,7 +230,7 @@ public open class AssetManifestBuilder( * @param dependencies */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("cbf9b00226266766a573f3d537da4f8f6df03d9cb32b6699f98aefcec180af75") + @JvmName("232b13ecbf611c0b0a19d1341a4d3b360e7053f02c66b171f602813eaf291858") public open fun emitManifest( stack: Stack, session: ISynthesisSession, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestDockerImageDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestDockerImageDestination.kt index 3a897d7830..e67e9760ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestDockerImageDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestDockerImageDestination.kt @@ -18,6 +18,7 @@ import kotlin.jvm.JvmName * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * Object assumeRoleAdditionalOptions; * AssetManifestDockerImageDestination assetManifestDockerImageDestination = * AssetManifestDockerImageDestination.builder() * .repositoryName("repositoryName") @@ -26,6 +27,8 @@ import kotlin.jvm.JvmName * .role(RoleOptions.builder() * .assumeRoleArn("assumeRoleArn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .build()) * .build(); @@ -117,7 +120,8 @@ public interface AssetManifestDockerImageDestination { private class Wrapper( cdkObject: software.amazon.awscdk.AssetManifestDockerImageDestination, - ) : CdkObject(cdkObject), AssetManifestDockerImageDestination { + ) : CdkObject(cdkObject), + AssetManifestDockerImageDestination { /** * Prefix to add to the asset hash to make the Docker image tag. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestFileDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestFileDestination.kt index 87ee9ecc23..e243089ca7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestFileDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetManifestFileDestination.kt @@ -18,6 +18,7 @@ import kotlin.jvm.JvmName * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * Object assumeRoleAdditionalOptions; * AssetManifestFileDestination assetManifestFileDestination = * AssetManifestFileDestination.builder() * .bucketName("bucketName") @@ -26,6 +27,8 @@ import kotlin.jvm.JvmName * .role(RoleOptions.builder() * .assumeRoleArn("assumeRoleArn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .build()) * .build(); @@ -116,7 +119,8 @@ public interface AssetManifestFileDestination { private class Wrapper( cdkObject: software.amazon.awscdk.AssetManifestFileDestination, - ) : CdkObject(cdkObject), AssetManifestFileDestination { + ) : CdkObject(cdkObject), + AssetManifestFileDestination { /** * Bucket name where the file asset should be written. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetOptions.kt index 65142e4456..ded4d0fef1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetOptions.kt @@ -203,7 +203,8 @@ public interface AssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.AssetOptions, - ) : CdkObject(cdkObject), AssetOptions { + ) : CdkObject(cdkObject), + AssetOptions { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetStagingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetStagingProps.kt index a0c5699682..2510be9c91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetStagingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/AssetStagingProps.kt @@ -252,7 +252,8 @@ public interface AssetStagingProps : FingerprintOptions, AssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.AssetStagingProps, - ) : CdkObject(cdkObject), AssetStagingProps { + ) : CdkObject(cdkObject), + AssetStagingProps { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BootstraplessSynthesizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BootstraplessSynthesizerProps.kt index 4eb3a65ff7..0af3145eaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BootstraplessSynthesizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BootstraplessSynthesizerProps.kt @@ -79,7 +79,8 @@ public interface BootstraplessSynthesizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.BootstraplessSynthesizerProps, - ) : CdkObject(cdkObject), BootstraplessSynthesizerProps { + ) : CdkObject(cdkObject), + BootstraplessSynthesizerProps { /** * The CFN execution Role ARN to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BundlingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BundlingOptions.kt index 3e3f71a0c3..c6060f0f44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BundlingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/BundlingOptions.kt @@ -398,7 +398,8 @@ public interface BundlingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.BundlingOptions, - ) : CdkObject(cdkObject), BundlingOptions { + ) : CdkObject(cdkObject), + BundlingOptions { /** * The access mechanism used to make source files available to the bundling container and to * return the bundling output back to the host. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingReplacingUpdate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingReplacingUpdate.kt index c5877f3ac0..1831322c4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingReplacingUpdate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingReplacingUpdate.kt @@ -75,7 +75,8 @@ public interface CfnAutoScalingReplacingUpdate { private class Wrapper( cdkObject: software.amazon.awscdk.CfnAutoScalingReplacingUpdate, - ) : CdkObject(cdkObject), CfnAutoScalingReplacingUpdate { + ) : CdkObject(cdkObject), + CfnAutoScalingReplacingUpdate { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingRollingUpdate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingRollingUpdate.kt index 696996c4a0..17b22c6b96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingRollingUpdate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingRollingUpdate.kt @@ -339,7 +339,8 @@ public interface CfnAutoScalingRollingUpdate { private class Wrapper( cdkObject: software.amazon.awscdk.CfnAutoScalingRollingUpdate, - ) : CdkObject(cdkObject), CfnAutoScalingRollingUpdate { + ) : CdkObject(cdkObject), + CfnAutoScalingRollingUpdate { /** * Specifies the maximum number of instances that AWS CloudFormation updates. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingScheduledAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingScheduledAction.kt index b46959a507..05e980dd93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingScheduledAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnAutoScalingScheduledAction.kt @@ -71,7 +71,8 @@ public interface CfnAutoScalingScheduledAction { private class Wrapper( cdkObject: software.amazon.awscdk.CfnAutoScalingScheduledAction, - ) : CdkObject(cdkObject), CfnAutoScalingScheduledAction { + ) : CdkObject(cdkObject), + CfnAutoScalingScheduledAction { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenAdditionalOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenAdditionalOptions.kt index 2c661bcb28..2a3831f2a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenAdditionalOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenAdditionalOptions.kt @@ -64,7 +64,8 @@ public interface CfnCodeDeployBlueGreenAdditionalOptions { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenAdditionalOptions, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenAdditionalOptions { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenAdditionalOptions { /** * Specifies time to wait, in minutes, before terminating the blue resources. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplication.kt index 07f10adb3b..3b6f0227a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplication.kt @@ -125,7 +125,8 @@ public interface CfnCodeDeployBlueGreenApplication { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenApplication, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenApplication { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenApplication { /** * The detailed attributes of the deployed target. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplicationTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplicationTarget.kt index b31dbf6e0a..267653a38e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplicationTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenApplicationTarget.kt @@ -79,7 +79,8 @@ public interface CfnCodeDeployBlueGreenApplicationTarget { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenApplicationTarget, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenApplicationTarget { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenApplicationTarget { /** * The logical id of the target resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenEcsAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenEcsAttributes.kt index 5fa90cbf01..442eb00d09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenEcsAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenEcsAttributes.kt @@ -151,7 +151,8 @@ public interface CfnCodeDeployBlueGreenEcsAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenEcsAttributes, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenEcsAttributes { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenEcsAttributes { /** * The logical IDs of the blue and green, respectively, AWS::ECS::TaskDefinition task * definitions. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenHookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenHookProps.kt index 70b465172a..d98c988fd1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenHookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenHookProps.kt @@ -269,7 +269,8 @@ public interface CfnCodeDeployBlueGreenHookProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenHookProps, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenHookProps { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenHookProps { /** * Additional options for the blue/green deployment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenLifecycleEventHooks.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenLifecycleEventHooks.kt index 4ea237e547..3e5c2bd08d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenLifecycleEventHooks.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployBlueGreenLifecycleEventHooks.kt @@ -155,7 +155,8 @@ public interface CfnCodeDeployBlueGreenLifecycleEventHooks { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployBlueGreenLifecycleEventHooks, - ) : CdkObject(cdkObject), CfnCodeDeployBlueGreenLifecycleEventHooks { + ) : CdkObject(cdkObject), + CfnCodeDeployBlueGreenLifecycleEventHooks { /** * Function to use to run tasks after the test listener serves traffic to the replacement task * set. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployLambdaAliasUpdate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployLambdaAliasUpdate.kt index 3eacd4004f..b20f92b65a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployLambdaAliasUpdate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCodeDeployLambdaAliasUpdate.kt @@ -120,7 +120,8 @@ public interface CfnCodeDeployLambdaAliasUpdate { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCodeDeployLambdaAliasUpdate, - ) : CdkObject(cdkObject), CfnCodeDeployLambdaAliasUpdate { + ) : CdkObject(cdkObject), + CfnCodeDeployLambdaAliasUpdate { /** * The name of the Lambda function to run after traffic routing completes. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCondition.kt index afb9ee6f5a..a5e67b758a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCondition.kt @@ -28,7 +28,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCondition( cdkObject: software.amazon.awscdk.CfnCondition, -) : CfnElement(cdkObject), ICfnConditionExpression, IResolvable { +) : CfnElement(cdkObject), + ICfnConditionExpression, + IResolvable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnCondition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnConditionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnConditionProps.kt index a58e0ea12d..188a514f74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnConditionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnConditionProps.kt @@ -57,7 +57,8 @@ public interface CfnConditionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnConditionProps, - ) : CdkObject(cdkObject), CfnConditionProps { + ) : CdkObject(cdkObject), + CfnConditionProps { /** * The expression that the condition will evaluate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCreationPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCreationPolicy.kt index 208c3e6235..b4e7e2dc0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCreationPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCreationPolicy.kt @@ -173,7 +173,8 @@ public interface CfnCreationPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCreationPolicy, - ) : CdkObject(cdkObject), CfnCreationPolicy { + ) : CdkObject(cdkObject), + CfnCreationPolicy { /** * For an Auto Scaling group replacement update, specifies how many instances must signal * success for the update to succeed. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResource.kt index e1998aa3ff..c064f06f8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResource.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomResource( cdkObject: software.amazon.awscdk.CfnCustomResource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -77,12 +78,12 @@ public open class CfnCustomResource( } /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. */ public open fun serviceToken(): String = unwrap(this).getServiceToken() /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. */ public open fun serviceToken(`value`: String) { unwrap(this).setServiceToken(`value`) @@ -94,19 +95,15 @@ public open class CfnCustomResource( @CdkDslMarker public interface Builder { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken) - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. */ public fun serviceToken(serviceToken: String) } @@ -119,19 +116,15 @@ public open class CfnCustomResource( software.amazon.awscdk.CfnCustomResource.Builder.create(scope, id) /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . - * - * All other properties are defined by the service provider. + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken) - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. */ override fun serviceToken(serviceToken: String) { cdkBuilder.serviceToken(serviceToken) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResourceProps.kt index d849f93d0f..38e408957c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnCustomResourceProps.kt @@ -26,13 +26,9 @@ import kotlin.Unit */ public interface CfnCustomResourceProps { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * @@ -46,13 +42,9 @@ public interface CfnCustomResourceProps { @CdkDslMarker public interface Builder { /** - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. + * The service token must be from the same Region as the stack. * * Updates aren't supported. */ @@ -64,13 +56,9 @@ public interface CfnCustomResourceProps { software.amazon.awscdk.CfnCustomResourceProps.builder() /** - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. + * The service token must be from the same Region as the stack. * * Updates aren't supported. */ @@ -83,15 +71,12 @@ public interface CfnCustomResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnCustomResourceProps, - ) : CdkObject(cdkObject), CfnCustomResourceProps { + ) : CdkObject(cdkObject), + CfnCustomResourceProps { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . - * - * All other properties are defined by the service provider. + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnDynamicReferenceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnDynamicReferenceProps.kt index 0f9a7f586d..4b7842f326 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnDynamicReferenceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnDynamicReferenceProps.kt @@ -73,7 +73,8 @@ public interface CfnDynamicReferenceProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnDynamicReferenceProps, - ) : CdkObject(cdkObject), CfnDynamicReferenceProps { + ) : CdkObject(cdkObject), + CfnDynamicReferenceProps { /** * The reference key of the dynamic reference. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersion.kt index f8e6785b5a..c214619f47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersion.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookDefaultVersion( cdkObject: software.amazon.awscdk.CfnHookDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnHookDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersionProps.kt index d4332bfa30..068bb5d90b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookDefaultVersionProps.kt @@ -111,7 +111,8 @@ public interface CfnHookDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnHookDefaultVersionProps, - ) : CdkObject(cdkObject), CfnHookDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnHookDefaultVersionProps { /** * The name of the hook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookProps.kt index 089015e8fd..baad765347 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookProps.kt @@ -80,7 +80,8 @@ public interface CfnHookProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnHookProps, - ) : CdkObject(cdkObject), CfnHookProps { + ) : CdkObject(cdkObject), + CfnHookProps { /** * The properties of the hook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfig.kt index f37d6bbd00..a67c944fa2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfig.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookTypeConfig( cdkObject: software.amazon.awscdk.CfnHookTypeConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfigProps.kt index e8eca02767..905ce14e14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookTypeConfigProps.kt @@ -151,7 +151,8 @@ public interface CfnHookTypeConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnHookTypeConfigProps, - ) : CdkObject(cdkObject), CfnHookTypeConfigProps { + ) : CdkObject(cdkObject), + CfnHookTypeConfigProps { /** * Specifies the activated hook type configuration, in this AWS account and AWS Region . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersion.kt index 53118cf7b3..184d8648c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersion.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookVersion( cdkObject: software.amazon.awscdk.CfnHookVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -450,7 +451,8 @@ public open class CfnHookVersion( private class Wrapper( cdkObject: software.amazon.awscdk.CfnHookVersion.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch Logs group to which CloudFormation sends error logging information * when invoking the extension's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersionProps.kt index 073efaf8e3..76f6240ba1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnHookVersionProps.kt @@ -236,7 +236,8 @@ public interface CfnHookVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnHookVersionProps, - ) : CdkObject(cdkObject), CfnHookVersionProps { + ) : CdkObject(cdkObject), + CfnHookVersionProps { /** * The Amazon Resource Name (ARN) of the task execution role that grants the hook permission. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJson.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJson.kt index 1982e77274..c1ee379fbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJson.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJson.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJson( cdkObject: software.amazon.awscdk.CfnJson, -) : CloudshiftdevConstructsConstruct(cdkObject), IResolvable { +) : CloudshiftdevConstructsConstruct(cdkObject), + IResolvable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJsonProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJsonProps.kt index b80c3f4d70..dc5431c449 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJsonProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnJsonProps.kt @@ -62,7 +62,8 @@ public interface CfnJsonProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnJsonProps, - ) : CdkObject(cdkObject), CfnJsonProps { + ) : CdkObject(cdkObject), + CfnJsonProps { /** * The value to resolve. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacro.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacro.kt index a47e8057f6..7f2eaf762a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacro.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacro.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMacro( cdkObject: software.amazon.awscdk.CfnMacro, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacroProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacroProps.kt index b4921a3bc7..507692e530 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacroProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMacroProps.kt @@ -153,7 +153,8 @@ public interface CfnMacroProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnMacroProps, - ) : CdkObject(cdkObject), CfnMacroProps { + ) : CdkObject(cdkObject), + CfnMacroProps { /** * A description of the macro. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMappingProps.kt index 4d657d69ef..e3396a584f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnMappingProps.kt @@ -94,7 +94,8 @@ public interface CfnMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnMappingProps, - ) : CdkObject(cdkObject), CfnMappingProps { + ) : CdkObject(cdkObject), + CfnMappingProps { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersion.kt index adbc9fe765..aa76c1ce9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersion.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModuleDefaultVersion( cdkObject: software.amazon.awscdk.CfnModuleDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnModuleDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersionProps.kt index 2bf21eb74a..e665befdf6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleDefaultVersionProps.kt @@ -114,7 +114,8 @@ public interface CfnModuleDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnModuleDefaultVersionProps, - ) : CdkObject(cdkObject), CfnModuleDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnModuleDefaultVersionProps { /** * The Amazon Resource Name (ARN) of the module version to set as the default version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersion.kt index e0dc14b114..758d50226f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersion.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModuleVersion( cdkObject: software.amazon.awscdk.CfnModuleVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -89,7 +90,7 @@ public open class CfnModuleVersion( * * For more information about extension schemas, see [Resource Provider * Schema](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ public open fun attrSchema(): String = unwrap(this).getAttrSchema() @@ -109,7 +110,7 @@ public open class CfnModuleVersion( * Valid values include: * * * `PRIVATE` : The extension is only visible and usable within the account in which it is - * registered. AWS CloudFormation marks any extensions you register as `PRIVATE` . + * registered. CloudFormation marks any extensions you register as `PRIVATE` . * * `PUBLIC` : The extension is publicly visible and usable within any AWS account. */ public open fun attrVisibility(): String = unwrap(this).getAttrVisibility() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersionProps.kt index 0ca346b332..965bd559ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnModuleVersionProps.kt @@ -105,7 +105,8 @@ public interface CfnModuleVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnModuleVersionProps, - ) : CdkObject(cdkObject), CfnModuleVersionProps { + ) : CdkObject(cdkObject), + CfnModuleVersionProps { /** * The name of the module being registered. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnOutputProps.kt index d0ca74c073..4d94accdb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnOutputProps.kt @@ -166,7 +166,8 @@ public interface CfnOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnOutputProps, - ) : CdkObject(cdkObject), CfnOutputProps { + ) : CdkObject(cdkObject), + CfnOutputProps { /** * A condition to associate with this output value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnParameterProps.kt index 6190d06105..9684345af1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnParameterProps.kt @@ -298,7 +298,8 @@ public interface CfnParameterProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnParameterProps, - ) : CdkObject(cdkObject), CfnParameterProps { + ) : CdkObject(cdkObject), + CfnParameterProps { /** * A regular expression that represents the patterns to allow for String types. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersion.kt index 16513b58ee..e5d7b85b7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersion.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublicTypeVersion( cdkObject: software.amazon.awscdk.CfnPublicTypeVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnPublicTypeVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -215,7 +216,7 @@ public open class CfnPublicTypeVersion( * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) @@ -301,7 +302,7 @@ public open class CfnPublicTypeVersion( * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersionProps.kt index 1052745de2..bdaf572635 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublicTypeVersionProps.kt @@ -72,7 +72,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) @@ -139,7 +139,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . */ public fun publicVersionNumber(publicVersionNumber: String) @@ -202,7 +202,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . */ override fun publicVersionNumber(publicVersionNumber: String) { @@ -230,7 +230,8 @@ public interface CfnPublicTypeVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnPublicTypeVersionProps, - ) : CdkObject(cdkObject), CfnPublicTypeVersionProps { + ) : CdkObject(cdkObject), + CfnPublicTypeVersionProps { /** * The Amazon Resource Number (ARN) of the extension. * @@ -274,7 +275,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisher.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisher.kt index 3c75406958..418b8181dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisher.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisher.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublisher( cdkObject: software.amazon.awscdk.CfnPublisher, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -171,7 +172,7 @@ public open class CfnPublisher( * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) * @param connectionArn If you are using a Bitbucket or GitHub account for identity @@ -229,7 +230,7 @@ public open class CfnPublisher( * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) * @param connectionArn If you are using a Bitbucket or GitHub account for identity diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisherProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisherProps.kt index 0430dd5614..683274ef11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisherProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnPublisherProps.kt @@ -47,7 +47,7 @@ public interface CfnPublisherProps { * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) */ @@ -81,7 +81,7 @@ public interface CfnPublisherProps { * verification, the Amazon Resource Name (ARN) for your connection to that account. * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ public fun connectionArn(connectionArn: String) } @@ -117,7 +117,7 @@ public interface CfnPublisherProps { * verification, the Amazon Resource Name (ARN) for your connection to that account. * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ override fun connectionArn(connectionArn: String) { cdkBuilder.connectionArn(connectionArn) @@ -128,7 +128,8 @@ public interface CfnPublisherProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnPublisherProps, - ) : CdkObject(cdkObject), CfnPublisherProps { + ) : CdkObject(cdkObject), + CfnPublisherProps { /** * Whether you accept the [Terms and * Conditions](https://docs.aws.amazon.com/https://cloudformation-registry-documents.s3.amazonaws.com/Terms_and_Conditions_for_AWS_CloudFormation_Registry_Publishers.pdf) @@ -147,7 +148,7 @@ public interface CfnPublisherProps { * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceAutoScalingCreationPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceAutoScalingCreationPolicy.kt index 722d0d435b..6fbd0f53e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceAutoScalingCreationPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceAutoScalingCreationPolicy.kt @@ -84,7 +84,8 @@ public interface CfnResourceAutoScalingCreationPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceAutoScalingCreationPolicy, - ) : CdkObject(cdkObject), CfnResourceAutoScalingCreationPolicy { + ) : CdkObject(cdkObject), + CfnResourceAutoScalingCreationPolicy { /** * Specifies the percentage of instances in an Auto Scaling replacement update that must signal * success for the update to succeed. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersion.kt index 776bfb5e5c..53cfbc782f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersion.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceDefaultVersion( cdkObject: software.amazon.awscdk.CfnResourceDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnResourceDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersionProps.kt index f1d500ed6a..5d6f723bc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceDefaultVersionProps.kt @@ -121,7 +121,8 @@ public interface CfnResourceDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceDefaultVersionProps, - ) : CdkObject(cdkObject), CfnResourceDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnResourceDefaultVersionProps { /** * The name of the resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceProps.kt index 5474d4264e..71c37e98d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceProps.kt @@ -80,7 +80,8 @@ public interface CfnResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceProps, - ) : CdkObject(cdkObject), CfnResourceProps { + ) : CdkObject(cdkObject), + CfnResourceProps { /** * Resource properties. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceSignal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceSignal.kt index 6e7571f0f9..a1c5dc98ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceSignal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceSignal.kt @@ -104,7 +104,8 @@ public interface CfnResourceSignal { private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceSignal, - ) : CdkObject(cdkObject), CfnResourceSignal { + ) : CdkObject(cdkObject), + CfnResourceSignal { /** * The number of success signals AWS CloudFormation must receive before it sets the resource * status as CREATE_COMPLETE. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersion.kt index 5162c49af7..5ed2c411b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersion.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceVersion( cdkObject: software.amazon.awscdk.CfnResourceVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -88,7 +89,7 @@ public open class CfnResourceVersion( /** * For resource type extensions, the provisioning behavior of the resource type. * - * AWS CloudFormation determines the provisioning type during registration, based on the types of + * CloudFormation determines the provisioning type during registration, based on the types of * handlers in the schema handler package submitted. * * Valid values include: @@ -127,7 +128,7 @@ public open class CfnResourceVersion( * Valid values include: * * * `PRIVATE` : The extension is only visible and usable within the account in which it is - * registered. AWS CloudFormation marks any extensions you register as `PRIVATE` . + * registered. CloudFormation marks any extensions you register as `PRIVATE` . * * `PUBLIC` : The extension is publicly visible and usable within any AWS account. */ public open fun attrVisibility(): String = unwrap(this).getAttrVisibility() @@ -512,7 +513,8 @@ public open class CfnResourceVersion( private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceVersion.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch logs group to which CloudFormation sends error logging information * when invoking the type's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersionProps.kt index a6af2bbb04..ad25d0e228 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnResourceVersionProps.kt @@ -255,7 +255,8 @@ public interface CfnResourceVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnResourceVersionProps, - ) : CdkObject(cdkObject), CfnResourceVersionProps { + ) : CdkObject(cdkObject), + CfnResourceVersionProps { /** * The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the * resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleAssertion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleAssertion.kt index e74478377c..5eb0d9ce18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleAssertion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleAssertion.kt @@ -74,7 +74,8 @@ public interface CfnRuleAssertion { private class Wrapper( cdkObject: software.amazon.awscdk.CfnRuleAssertion, - ) : CdkObject(cdkObject), CfnRuleAssertion { + ) : CdkObject(cdkObject), + CfnRuleAssertion { /** * The assertion description. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleProps.kt index 84a990da2b..3bf9d19652 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnRuleProps.kt @@ -122,7 +122,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * Assertions which define the rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStack.kt index fd2c3ea81a..10a6a03659 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStack.kt @@ -100,7 +100,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStack( cdkObject: software.amazon.awscdk.CfnStack, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnStack(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -186,20 +188,20 @@ public open class CfnStack( } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(`value`: List) { unwrap(this).setNotificationArns(`value`) } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(vararg `value`: String): Unit = notificationArns(`value`.toList()) @@ -281,28 +283,24 @@ public open class CfnStack( @CdkDslMarker public interface Builder { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ public fun notificationArns(notificationArns: List) /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ public fun notificationArns(vararg notificationArns: String) @@ -357,8 +355,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -368,8 +366,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -418,30 +416,26 @@ public open class CfnStack( software.amazon.awscdk.CfnStack.Builder.create(scope, id) /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ override fun notificationArns(notificationArns: List) { cdkBuilder.notificationArns(notificationArns) } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ override fun notificationArns(vararg notificationArns: String): Unit = notificationArns(notificationArns.toList()) @@ -501,8 +495,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -514,8 +508,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -692,7 +686,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStack.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * User defined description associated with the output. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackProps.kt index 17f2709304..1e7b026516 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackProps.kt @@ -38,7 +38,7 @@ import kotlin.collections.Map */ public interface CfnStackProps { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). @@ -72,7 +72,7 @@ public interface CfnStackProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A maximum + * CloudFormation also propagates these tags to the resources created in the stack. A maximum * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) @@ -115,16 +115,14 @@ public interface CfnStackProps { @CdkDslMarker public interface Builder { /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ public fun notificationArns(notificationArns: List) /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -170,15 +168,15 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ public fun tags(tags: List) /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ public fun tags(vararg tags: CfnTag) @@ -212,8 +210,7 @@ public interface CfnStackProps { software.amazon.awscdk.CfnStackProps.builder() /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -222,8 +219,7 @@ public interface CfnStackProps { } /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -274,8 +270,8 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) @@ -283,8 +279,8 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -321,10 +317,10 @@ public interface CfnStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackProps, - ) : CdkObject(cdkObject), CfnStackProps { + ) : CdkObject(cdkObject), + CfnStackProps { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). @@ -359,8 +355,8 @@ public interface CfnStackProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSet.kt index d3eb6252af..96f9e477cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSet.kt @@ -48,6 +48,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .executionRoleName("executionRoleName") * .managedExecution(managedExecution) * .operationPreferences(OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -86,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStackSet( cdkObject: software.amazon.awscdk.CfnStackSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -663,11 +666,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -677,11 +680,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1042,11 +1045,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1058,11 +1061,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1259,7 +1262,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.AutoDeploymentProperty, - ) : CdkObject(cdkObject), AutoDeploymentProperty { + ) : CdkObject(cdkObject), + AutoDeploymentProperty { /** * If set to `true` , StackSets automatically deploys additional stack instances to AWS * Organizations accounts that are added to a target organization or organizational unit (OU) in @@ -1328,16 +1332,11 @@ public open class CfnStackSet( * * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to update - * an entire OU and individual accounts from a different OU in one request, which used to be two - * separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` parameter. + * `UNION` is not supported for create operations when using StackSet as a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountfiltertype) */ @@ -1379,16 +1378,11 @@ public open class CfnStackSet( * additional accounts with provided OUs. * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. */ public fun accountFilterType(accountFilterType: String) @@ -1435,16 +1429,11 @@ public open class CfnStackSet( * additional accounts with provided OUs. * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. */ override fun accountFilterType(accountFilterType: String) { cdkBuilder.accountFilterType(accountFilterType) @@ -1496,23 +1485,19 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.DeploymentTargetsProperty, - ) : CdkObject(cdkObject), DeploymentTargetsProperty { + ) : CdkObject(cdkObject), + DeploymentTargetsProperty { /** * Limit deployment targets to individual accounts or include additional accounts with * provided OUs. * * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountfiltertype) */ @@ -1687,7 +1672,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.ManagedExecutionProperty, - ) : CdkObject(cdkObject), ManagedExecutionProperty { + ) : CdkObject(cdkObject), + ManagedExecutionProperty { /** * When `true` , StackSets performs non-conflicting operations concurrently and queues * conflicting operations. @@ -1741,6 +1727,7 @@ public open class CfnStackSet( * import io.cloudshiftdev.awscdk.*; * OperationPreferencesProperty operationPreferencesProperty = * OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -1753,6 +1740,26 @@ public open class CfnStackSet( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html) */ public interface OperationPreferencesProperty { + /** + * Specifies how the concurrency level behaves during the operation execution. + * + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to ensure + * the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. The initial + * actual concurrency is set to the lower of either the value of the `MaxConcurrentCount` , or the + * value of `FailureToleranceCount` +1. The actual concurrency is then reduced proportionally by + * the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of failures. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-concurrencymode) + */ + public fun concurrencyMode(): String? = unwrap(this).getConcurrencyMode() + /** * The number of accounts, per Region, for which this operation can fail before AWS * CloudFormation stops the operation in that Region. @@ -1843,6 +1850,25 @@ public open class CfnStackSet( */ @CdkDslMarker public interface Builder { + /** + * @param concurrencyMode Specifies how the concurrency level behaves during the operation + * execution. + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + */ + public fun concurrencyMode(concurrencyMode: String) + /** * @param failureToleranceCount The number of accounts, per Region, for which this operation * can fail before AWS CloudFormation stops the operation in that Region. @@ -1926,6 +1952,27 @@ public open class CfnStackSet( software.amazon.awscdk.CfnStackSet.OperationPreferencesProperty.Builder = software.amazon.awscdk.CfnStackSet.OperationPreferencesProperty.builder() + /** + * @param concurrencyMode Specifies how the concurrency level behaves during the operation + * execution. + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + */ + override fun concurrencyMode(concurrencyMode: String) { + cdkBuilder.concurrencyMode(concurrencyMode) + } + /** * @param failureToleranceCount The number of accounts, per Region, for which this operation * can fail before AWS CloudFormation stops the operation in that Region. @@ -2021,7 +2068,29 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.OperationPreferencesProperty, - ) : CdkObject(cdkObject), OperationPreferencesProperty { + ) : CdkObject(cdkObject), + OperationPreferencesProperty { + /** + * Specifies how the concurrency level behaves during the operation execution. + * + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-concurrencymode) + */ + override fun concurrencyMode(): String? = unwrap(this).getConcurrencyMode() + /** * The number of accounts, per Region, for which this operation can fail before AWS * CloudFormation stops the operation in that Region. @@ -2204,7 +2273,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * The key associated with the parameter. * @@ -2420,7 +2490,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSet.StackInstancesProperty, - ) : CdkObject(cdkObject), StackInstancesProperty { + ) : CdkObject(cdkObject), + StackInstancesProperty { /** * The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the * specified Regions. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSetProps.kt index 01d8c4da63..653c1c58da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnStackSetProps.kt @@ -36,6 +36,7 @@ import kotlin.jvm.JvmName * .executionRoleName("executionRoleName") * .managedExecution(managedExecution) * .operationPreferences(OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -239,11 +240,11 @@ public interface CfnStackSetProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can - * specify a maximum number of 50 tags. + * CloudFormation also propagates these tags to supported resources in the stack. You can specify + * a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If you - * specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) */ @@ -482,21 +483,21 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ public fun tags(tags: List) /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ public fun tags(vararg tags: CfnTag) @@ -765,11 +766,11 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) @@ -777,11 +778,11 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -815,7 +816,8 @@ public interface CfnStackSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnStackSetProps, - ) : CdkObject(cdkObject), CfnStackSetProps { + ) : CdkObject(cdkObject), + CfnStackSetProps { /** * The Amazon Resource Number (ARN) of the IAM role to use to create this stack set. * @@ -982,11 +984,11 @@ public interface CfnStackSetProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTag.kt index ae56810f6f..138a779d8b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTag.kt @@ -71,7 +71,8 @@ public interface CfnTag { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTag, - ) : CdkObject(cdkObject), CfnTag { + ) : CdkObject(cdkObject), + CfnTag { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoute.kt index 96fc1ccd0b..12d5187165 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoute.kt @@ -77,7 +77,8 @@ public interface CfnTrafficRoute { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTrafficRoute, - ) : CdkObject(cdkObject), CfnTrafficRoute { + ) : CdkObject(cdkObject), + CfnTrafficRoute { /** * The logical id of the target resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRouting.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRouting.kt index 39c02a89b6..bc21b17d36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRouting.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRouting.kt @@ -153,7 +153,8 @@ public interface CfnTrafficRouting { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTrafficRouting, - ) : CdkObject(cdkObject), CfnTrafficRouting { + ) : CdkObject(cdkObject), + CfnTrafficRouting { /** * The listener to be used by your load balancer to direct traffic to your target groups. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingConfig.kt index 6aa7561a56..007495806e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingConfig.kt @@ -146,7 +146,8 @@ public interface CfnTrafficRoutingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTrafficRoutingConfig, - ) : CdkObject(cdkObject), CfnTrafficRoutingConfig { + ) : CdkObject(cdkObject), + CfnTrafficRoutingConfig { /** * The configuration for traffic routing when `type` is * `CfnTrafficRoutingType.TIME_BASED_CANARY`. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedCanary.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedCanary.kt index e1f8610946..de60d166ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedCanary.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedCanary.kt @@ -88,7 +88,8 @@ public interface CfnTrafficRoutingTimeBasedCanary { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTrafficRoutingTimeBasedCanary, - ) : CdkObject(cdkObject), CfnTrafficRoutingTimeBasedCanary { + ) : CdkObject(cdkObject), + CfnTrafficRoutingTimeBasedCanary { /** * The number of minutes between the first and second traffic shifts of a time-based canary * deployment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedLinear.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedLinear.kt index b115568e43..54baf9d5ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedLinear.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTrafficRoutingTimeBasedLinear.kt @@ -89,7 +89,8 @@ public interface CfnTrafficRoutingTimeBasedLinear { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTrafficRoutingTimeBasedLinear, - ) : CdkObject(cdkObject), CfnTrafficRoutingTimeBasedLinear { + ) : CdkObject(cdkObject), + CfnTrafficRoutingTimeBasedLinear { /** * The number of minutes between the first and second traffic shifts of a time-based linear * deployment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivation.kt index 151bb0d4a1..e041db3710 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivation.kt @@ -25,7 +25,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * to specify configuration properties for the extension. For more information, see [Configuring * extensions at the account * level](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-private.html#registry-set-configuration) - * in the *CloudFormation User Guide* . + * in the *AWS CloudFormation User Guide* . * * Example: * @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTypeActivation( cdkObject: software.amazon.awscdk.CfnTypeActivation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnTypeActivation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -675,7 +676,8 @@ public open class CfnTypeActivation( private class Wrapper( cdkObject: software.amazon.awscdk.CfnTypeActivation.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch Logs group to which CloudFormation sends error logging information * when invoking the extension's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivationProps.kt index 10de33e4b5..431ce3a683 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnTypeActivationProps.kt @@ -381,7 +381,8 @@ public interface CfnTypeActivationProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnTypeActivationProps, - ) : CdkObject(cdkObject), CfnTypeActivationProps { + ) : CdkObject(cdkObject), + CfnTypeActivationProps { /** * Whether to automatically update the extension in this account and Region when a new *minor* * version is published by the extension publisher. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnUpdatePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnUpdatePolicy.kt index 9f0d7bce60..5db1b638f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnUpdatePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnUpdatePolicy.kt @@ -317,7 +317,8 @@ public interface CfnUpdatePolicy { private class Wrapper( cdkObject: software.amazon.awscdk.CfnUpdatePolicy, - ) : CdkObject(cdkObject), CfnUpdatePolicy { + ) : CdkObject(cdkObject), + CfnUpdatePolicy { /** * Specifies whether an Auto Scaling group and the instances it contains are replaced during an * update. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitCondition.kt index c878803514..a8e2fcc2b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitCondition.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWaitCondition( cdkObject: software.amazon.awscdk.CfnWaitCondition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnWaitCondition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandle.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandle.kt index bfd8f11a6a..77097c11f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandle.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandle.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWaitConditionHandle( cdkObject: software.amazon.awscdk.CfnWaitConditionHandle, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.CfnWaitConditionHandle(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandleProps.kt index 3368dea59b..f5dbc63f36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionHandleProps.kt @@ -38,7 +38,8 @@ public interface CfnWaitConditionHandleProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnWaitConditionHandleProps, - ) : CdkObject(cdkObject), CfnWaitConditionHandleProps + ) : CdkObject(cdkObject), + CfnWaitConditionHandleProps public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): CfnWaitConditionHandleProps { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionProps.kt index 92e6b88c13..a1666cc9f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CfnWaitConditionProps.kt @@ -172,7 +172,8 @@ public interface CfnWaitConditionProps { private class Wrapper( cdkObject: software.amazon.awscdk.CfnWaitConditionProps, - ) : CdkObject(cdkObject), CfnWaitConditionProps { + ) : CdkObject(cdkObject), + CfnWaitConditionProps { /** * The number of success signals that CloudFormation must receive before it continues the stack * creation process. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizer.kt index 6e3d11c342..c19d32e19a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizer.kt @@ -45,7 +45,9 @@ import kotlin.jvm.JvmName */ public open class CliCredentialsStackSynthesizer( cdkObject: software.amazon.awscdk.CliCredentialsStackSynthesizer, -) : StackSynthesizer(cdkObject), IReusableStackSynthesizer, IBoundStackSynthesizer { +) : StackSynthesizer(cdkObject), + IReusableStackSynthesizer, + IBoundStackSynthesizer { public constructor() : this(software.amazon.awscdk.CliCredentialsStackSynthesizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizerProps.kt index ca648053c4..4ea12755fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CliCredentialsStackSynthesizerProps.kt @@ -186,7 +186,8 @@ public interface CliCredentialsStackSynthesizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.CliCredentialsStackSynthesizerProps, - ) : CdkObject(cdkObject), CliCredentialsStackSynthesizerProps { + ) : CdkObject(cdkObject), + CliCredentialsStackSynthesizerProps { /** * bucketPrefix to use while storing S3 Assets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CopyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CopyOptions.kt index e001944bd7..b4e62104a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CopyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CopyOptions.kt @@ -119,7 +119,8 @@ public interface CopyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.CopyOptions, - ) : CdkObject(cdkObject), CopyOptions { + ) : CdkObject(cdkObject), + CopyOptions { /** * File paths matching the patterns will be excluded. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProps.kt index f0c994ff7f..b5e26f2de8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProps.kt @@ -304,7 +304,8 @@ public interface CustomResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.CustomResourceProps, - ) : CdkObject(cdkObject), CustomResourceProps { + ) : CdkObject(cdkObject), + CustomResourceProps { /** * Convert all property keys to pascal case. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderBaseProps.kt index fbd02e248a..0eb3af64a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderBaseProps.kt @@ -200,7 +200,8 @@ public interface CustomResourceProviderBaseProps : CustomResourceProviderOptions private class Wrapper( cdkObject: software.amazon.awscdk.CustomResourceProviderBaseProps, - ) : CdkObject(cdkObject), CustomResourceProviderBaseProps { + ) : CdkObject(cdkObject), + CustomResourceProviderBaseProps { /** * A local file system directory with the provider's code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderOptions.kt index be32596529..af1d6dc466 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderOptions.kt @@ -221,7 +221,8 @@ public interface CustomResourceProviderOptions { private class Wrapper( cdkObject: software.amazon.awscdk.CustomResourceProviderOptions, - ) : CdkObject(cdkObject), CustomResourceProviderOptions { + ) : CdkObject(cdkObject), + CustomResourceProviderOptions { /** * A description of the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderProps.kt index 828f873f3b..798d84db13 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderProps.kt @@ -191,7 +191,8 @@ public interface CustomResourceProviderProps : CustomResourceProviderOptions { private class Wrapper( cdkObject: software.amazon.awscdk.CustomResourceProviderProps, - ) : CdkObject(cdkObject), CustomResourceProviderProps { + ) : CdkObject(cdkObject), + CustomResourceProviderProps { /** * A local file system directory with the provider's code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderRuntime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderRuntime.kt index 89413d074d..28c798c22e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderRuntime.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/CustomResourceProviderRuntime.kt @@ -9,6 +9,7 @@ public enum class CustomResourceProviderRuntime( NODEJS_14_X(software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_14_X), NODEJS_16_X(software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_16_X), NODEJS_18_X(software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_18_X), + NODEJS_20_X(software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_20_X), ; public companion object { @@ -22,6 +23,8 @@ public enum class CustomResourceProviderRuntime( CustomResourceProviderRuntime.NODEJS_16_X software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_18_X -> CustomResourceProviderRuntime.NODEJS_18_X + software.amazon.awscdk.CustomResourceProviderRuntime.NODEJS_20_X -> + CustomResourceProviderRuntime.NODEJS_20_X } internal fun unwrap(wrapped: CustomResourceProviderRuntime): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizer.kt index e5dd07384a..e98e80191b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizer.kt @@ -3,9 +3,12 @@ package io.cloudshiftdev.awscdk import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Boolean import kotlin.String import kotlin.Unit +import kotlin.collections.Map import kotlin.jvm.JvmName /** @@ -39,7 +42,9 @@ import kotlin.jvm.JvmName */ public open class DefaultStackSynthesizer( cdkObject: software.amazon.awscdk.DefaultStackSynthesizer, -) : StackSynthesizer(cdkObject), IReusableStackSynthesizer, IBoundStackSynthesizer { +) : StackSynthesizer(cdkObject), + IReusableStackSynthesizer, + IBoundStackSynthesizer { public constructor() : this(software.amazon.awscdk.DefaultStackSynthesizer() ) @@ -211,6 +216,22 @@ public open class DefaultStackSynthesizer( */ public fun cloudFormationExecutionRole(cloudFormationExecutionRole: String) + /** + * Additional options to pass to STS when assuming the deploy role. + * + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param deployRoleAdditionalOptions Additional options to pass to STS when assuming the deploy + * role. + */ + public fun deployRoleAdditionalOptions(deployRoleAdditionalOptions: Map) + /** * The role to assume to initiate a deployment in this environment. * @@ -258,6 +279,24 @@ public open class DefaultStackSynthesizer( */ public fun fileAssetPublishingExternalId(fileAssetPublishingExternalId: String) + /** + * Additional options to pass to STS when assuming the file asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param fileAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the file asset publishing. + */ + public + fun fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions: Map) + /** * The role to use to publish file assets to the S3 bucket in this environment. * @@ -312,6 +351,25 @@ public open class DefaultStackSynthesizer( */ public fun imageAssetPublishingExternalId(imageAssetPublishingExternalId: String) + /** + * Additional options to pass to STS when assuming the image asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` + * instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param imageAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the image asset publishing. + */ + public + fun imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions: Map) + /** * The role to use to publish image assets to the ECR repository in this environment. * @@ -343,6 +401,22 @@ public open class DefaultStackSynthesizer( */ public fun imageAssetsRepositoryName(imageAssetsRepositoryName: String) + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param lookupRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + */ + public fun lookupRoleAdditionalOptions(lookupRoleAdditionalOptions: Map) + /** * The role to use to look up values from the target AWS account during synthesis. * @@ -437,6 +511,24 @@ public open class DefaultStackSynthesizer( cdkBuilder.cloudFormationExecutionRole(cloudFormationExecutionRole) } + /** + * Additional options to pass to STS when assuming the deploy role. + * + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param deployRoleAdditionalOptions Additional options to pass to STS when assuming the deploy + * role. + */ + override fun deployRoleAdditionalOptions(deployRoleAdditionalOptions: Map) { + cdkBuilder.deployRoleAdditionalOptions(deployRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * The role to assume to initiate a deployment in this environment. * @@ -492,6 +584,26 @@ public open class DefaultStackSynthesizer( cdkBuilder.fileAssetPublishingExternalId(fileAssetPublishingExternalId) } + /** + * Additional options to pass to STS when assuming the file asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param fileAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the file asset publishing. + */ + override + fun fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions: Map) { + cdkBuilder.fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * The role to use to publish file assets to the S3 bucket in this environment. * @@ -554,6 +666,27 @@ public open class DefaultStackSynthesizer( cdkBuilder.imageAssetPublishingExternalId(imageAssetPublishingExternalId) } + /** + * Additional options to pass to STS when assuming the image asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` + * instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param imageAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the image asset publishing. + */ + override + fun imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions: Map) { + cdkBuilder.imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * The role to use to publish image assets to the ECR repository in this environment. * @@ -589,6 +722,24 @@ public open class DefaultStackSynthesizer( cdkBuilder.imageAssetsRepositoryName(imageAssetsRepositoryName) } + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + * @param lookupRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + */ + override fun lookupRoleAdditionalOptions(lookupRoleAdditionalOptions: Map) { + cdkBuilder.lookupRoleAdditionalOptions(lookupRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * The role to use to look up values from the target AWS account during synthesis. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizerProps.kt index 08e8b597a4..d6e6bffede 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultStackSynthesizerProps.kt @@ -5,9 +5,11 @@ package io.cloudshiftdev.awscdk import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Boolean import kotlin.String import kotlin.Unit +import kotlin.collections.Map /** * Configuration properties for DefaultStackSynthesizer. @@ -53,6 +55,21 @@ public interface DefaultStackSynthesizerProps { */ public fun cloudFormationExecutionRole(): String? = unwrap(this).getCloudFormationExecutionRole() + /** + * Additional options to pass to STS when assuming the deploy role. + * + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun deployRoleAdditionalOptions(): Map = + unwrap(this).getDeployRoleAdditionalOptions() ?: emptyMap() + /** * The role to assume to initiate a deployment in this environment. * @@ -91,6 +108,22 @@ public interface DefaultStackSynthesizerProps { public fun fileAssetPublishingExternalId(): String? = unwrap(this).getFileAssetPublishingExternalId() + /** + * Additional options to pass to STS when assuming the file asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun fileAssetPublishingRoleAdditionalOptions(): Map = + unwrap(this).getFileAssetPublishingRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to publish file assets to the S3 bucket in this environment. * @@ -136,6 +169,22 @@ public interface DefaultStackSynthesizerProps { public fun imageAssetPublishingExternalId(): String? = unwrap(this).getImageAssetPublishingExternalId() + /** + * Additional options to pass to STS when assuming the image asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun imageAssetPublishingRoleAdditionalOptions(): Map = + unwrap(this).getImageAssetPublishingRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to publish image assets to the ECR repository in this environment. * @@ -162,6 +211,21 @@ public interface DefaultStackSynthesizerProps { */ public fun imageAssetsRepositoryName(): String? = unwrap(this).getImageAssetsRepositoryName() + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun lookupRoleAdditionalOptions(): Map = + unwrap(this).getLookupRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to look up values from the target AWS account during synthesis. * @@ -227,6 +291,16 @@ public interface DefaultStackSynthesizerProps { */ public fun cloudFormationExecutionRole(cloudFormationExecutionRole: String) + /** + * @param deployRoleAdditionalOptions Additional options to pass to STS when assuming the deploy + * role. + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public fun deployRoleAdditionalOptions(deployRoleAdditionalOptions: Map) + /** * @param deployRoleArn The role to assume to initiate a deployment in this environment. * You must supply this if you have given a non-standard name to the publishing role. @@ -256,6 +330,18 @@ public interface DefaultStackSynthesizerProps { */ public fun fileAssetPublishingExternalId(fileAssetPublishingExternalId: String) + /** + * @param fileAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the file asset publishing. + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public + fun fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions: Map) + /** * @param fileAssetPublishingRoleArn The role to use to publish file assets to the S3 bucket in * this environment. @@ -291,6 +377,19 @@ public interface DefaultStackSynthesizerProps { */ public fun imageAssetPublishingExternalId(imageAssetPublishingExternalId: String) + /** + * @param imageAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the image asset publishing. + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` + * instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public + fun imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions: Map) + /** * @param imageAssetPublishingRoleArn The role to use to publish image assets to the ECR * repository in this environment. @@ -312,6 +411,16 @@ public interface DefaultStackSynthesizerProps { */ public fun imageAssetsRepositoryName(imageAssetsRepositoryName: String) + /** + * @param lookupRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public fun lookupRoleAdditionalOptions(lookupRoleAdditionalOptions: Map) + /** * @param lookupRoleArn The role to use to look up values from the target AWS account during * synthesis. @@ -373,6 +482,18 @@ public interface DefaultStackSynthesizerProps { cdkBuilder.cloudFormationExecutionRole(cloudFormationExecutionRole) } + /** + * @param deployRoleAdditionalOptions Additional options to pass to STS when assuming the deploy + * role. + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override fun deployRoleAdditionalOptions(deployRoleAdditionalOptions: Map) { + cdkBuilder.deployRoleAdditionalOptions(deployRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param deployRoleArn The role to assume to initiate a deployment in this environment. * You must supply this if you have given a non-standard name to the publishing role. @@ -410,6 +531,20 @@ public interface DefaultStackSynthesizerProps { cdkBuilder.fileAssetPublishingExternalId(fileAssetPublishingExternalId) } + /** + * @param fileAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the file asset publishing. + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override + fun fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions: Map) { + cdkBuilder.fileAssetPublishingRoleAdditionalOptions(fileAssetPublishingRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param fileAssetPublishingRoleArn The role to use to publish file assets to the S3 bucket in * this environment. @@ -453,6 +588,21 @@ public interface DefaultStackSynthesizerProps { cdkBuilder.imageAssetPublishingExternalId(imageAssetPublishingExternalId) } + /** + * @param imageAssetPublishingRoleAdditionalOptions Additional options to pass to STS when + * assuming the image asset publishing. + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` + * instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override + fun imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions: Map) { + cdkBuilder.imageAssetPublishingRoleAdditionalOptions(imageAssetPublishingRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param imageAssetPublishingRoleArn The role to use to publish image assets to the ECR * repository in this environment. @@ -478,6 +628,18 @@ public interface DefaultStackSynthesizerProps { cdkBuilder.imageAssetsRepositoryName(imageAssetsRepositoryName) } + /** + * @param lookupRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override fun lookupRoleAdditionalOptions(lookupRoleAdditionalOptions: Map) { + cdkBuilder.lookupRoleAdditionalOptions(lookupRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param lookupRoleArn The role to use to look up values from the target AWS account during * synthesis. @@ -519,7 +681,8 @@ public interface DefaultStackSynthesizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.DefaultStackSynthesizerProps, - ) : CdkObject(cdkObject), DefaultStackSynthesizerProps { + ) : CdkObject(cdkObject), + DefaultStackSynthesizerProps { /** * Bootstrap stack version SSM parameter. * @@ -551,6 +714,21 @@ public interface DefaultStackSynthesizerProps { override fun cloudFormationExecutionRole(): String? = unwrap(this).getCloudFormationExecutionRole() + /** + * Additional options to pass to STS when assuming the deploy role. + * + * * `RoleArn` should not be used. Use the dedicated `deployRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `deployRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun deployRoleAdditionalOptions(): Map = + unwrap(this).getDeployRoleAdditionalOptions() ?: emptyMap() + /** * The role to assume to initiate a deployment in this environment. * @@ -589,6 +767,22 @@ public interface DefaultStackSynthesizerProps { override fun fileAssetPublishingExternalId(): String? = unwrap(this).getFileAssetPublishingExternalId() + /** + * Additional options to pass to STS when assuming the file asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `fileAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `fileAssetPublishingExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun fileAssetPublishingRoleAdditionalOptions(): Map = + unwrap(this).getFileAssetPublishingRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to publish file assets to the S3 bucket in this environment. * @@ -635,6 +829,23 @@ public interface DefaultStackSynthesizerProps { override fun imageAssetPublishingExternalId(): String? = unwrap(this).getImageAssetPublishingExternalId() + /** + * Additional options to pass to STS when assuming the image asset publishing. + * + * * `RoleArn` should not be used. Use the dedicated `imageAssetPublishingRoleArn` property + * instead. + * * `ExternalId` should not be used. Use the dedicated `imageAssetPublishingExternalId` + * instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun imageAssetPublishingRoleAdditionalOptions(): Map = + unwrap(this).getImageAssetPublishingRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to publish image assets to the ECR repository in this environment. * @@ -662,6 +873,21 @@ public interface DefaultStackSynthesizerProps { */ override fun imageAssetsRepositoryName(): String? = unwrap(this).getImageAssetsRepositoryName() + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun lookupRoleAdditionalOptions(): Map = + unwrap(this).getLookupRoleAdditionalOptions() ?: emptyMap() + /** * The role to use to look up values from the target AWS account during synthesis. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultTokenResolver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultTokenResolver.kt index 3744bf7bb6..776c13396e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultTokenResolver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DefaultTokenResolver.kt @@ -22,7 +22,8 @@ import kotlin.collections.List */ public open class DefaultTokenResolver( cdkObject: software.amazon.awscdk.DefaultTokenResolver, -) : CdkObject(cdkObject), ITokenResolver { +) : CdkObject(cdkObject), + ITokenResolver { public constructor(concat: IFragmentConcatenator) : this(software.amazon.awscdk.DefaultTokenResolver(concat.let(IFragmentConcatenator.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerBuildOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerBuildOptions.kt index a341e0296d..4808925fb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerBuildOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerBuildOptions.kt @@ -222,7 +222,8 @@ public interface DockerBuildOptions { private class Wrapper( cdkObject: software.amazon.awscdk.DockerBuildOptions, - ) : CdkObject(cdkObject), DockerBuildOptions { + ) : CdkObject(cdkObject), + DockerBuildOptions { /** * Build args. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerCacheOption.kt index 035f5158d6..cfb353fea8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerCacheOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerCacheOption.kt @@ -103,7 +103,8 @@ public interface DockerCacheOption { private class Wrapper( cdkObject: software.amazon.awscdk.DockerCacheOption, - ) : CdkObject(cdkObject), DockerCacheOption { + ) : CdkObject(cdkObject), + DockerCacheOption { /** * Any parameters to pass into the docker cache backend configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetLocation.kt index 571d4e6d56..915cdae8f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetLocation.kt @@ -98,7 +98,8 @@ public interface DockerImageAssetLocation { private class Wrapper( cdkObject: software.amazon.awscdk.DockerImageAssetLocation, - ) : CdkObject(cdkObject), DockerImageAssetLocation { + ) : CdkObject(cdkObject), + DockerImageAssetLocation { /** * The tag of the image in Amazon ECR. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetSource.kt index d37ca1d949..c461d38cb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerImageAssetSource.kt @@ -484,7 +484,8 @@ public interface DockerImageAssetSource { private class Wrapper( cdkObject: software.amazon.awscdk.DockerImageAssetSource, - ) : CdkObject(cdkObject), DockerImageAssetSource { + ) : CdkObject(cdkObject), + DockerImageAssetSource { /** * Unique identifier of the docker image asset and its potential revisions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerRunOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerRunOptions.kt index 15da6a3955..a0ed8cb782 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerRunOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerRunOptions.kt @@ -302,7 +302,8 @@ public interface DockerRunOptions { private class Wrapper( cdkObject: software.amazon.awscdk.DockerRunOptions, - ) : CdkObject(cdkObject), DockerRunOptions { + ) : CdkObject(cdkObject), + DockerRunOptions { /** * The command to run in the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerVolume.kt index 704e7189eb..6adb98ca9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/DockerVolume.kt @@ -101,7 +101,8 @@ public interface DockerVolume { private class Wrapper( cdkObject: software.amazon.awscdk.DockerVolume, - ) : CdkObject(cdkObject), DockerVolume { + ) : CdkObject(cdkObject), + DockerVolume { /** * Mount consistency. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Duration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Duration.kt index 2eb2432fc7..a93825a3f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Duration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Duration.kt @@ -20,19 +20,18 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Role myRole; - * AwsCustomResource.Builder.create(this, "Customized") - * .role(myRole) // must be assumable by the `lambda.amazonaws.com` service principal - * .timeout(Duration.minutes(10)) // defaults to 2 minutes - * .memorySize(1025) // defaults to 512 if installLatestAwsSdk is true - * .logGroup(LogGroup.Builder.create(this, "AwsCustomResourceLogs") - * .retention(RetentionDays.ONE_DAY) - * .build()) - * .functionName("my-custom-name") // defaults to a CloudFormation generated name - * .removalPolicy(RemovalPolicy.RETAIN) // defaults to `RemovalPolicy.DESTROY` - * .policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder() - * .resources(AwsCustomResourcePolicy.ANY_RESOURCE) + * Application application; + * Bucket bucket; + * SourcedConfiguration.Builder.create(this, "MySourcedConfiguration") + * .application(application) + * .location(ConfigurationSource.fromBucket(bucket, "path/to/file.json")) + * .deploymentStrategy(DeploymentStrategy.Builder.create(this, "MyDeploymentStrategy") + * .rolloutStrategy(RolloutStrategy.linear(RolloutStrategyProps.builder() + * .growthFactor(15) + * .deploymentDuration(Duration.minutes(30)) + * .finalBakeTime(Duration.minutes(15)) * .build())) + * .build()) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/EncodingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/EncodingOptions.kt index 85c8c2ea6d..402551cc39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/EncodingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/EncodingOptions.kt @@ -55,7 +55,8 @@ public interface EncodingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.EncodingOptions, - ) : CdkObject(cdkObject), EncodingOptions { + ) : CdkObject(cdkObject), + EncodingOptions { /** * A hint for the Token's purpose when stringifying it. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Environment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Environment.kt index 51e1ba1711..98881dcd5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Environment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Environment.kt @@ -117,7 +117,8 @@ public interface Environment { private class Wrapper( cdkObject: software.amazon.awscdk.Environment, - ) : CdkObject(cdkObject), Environment { + ) : CdkObject(cdkObject), + Environment { /** * The AWS account ID for this environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ExportValueOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ExportValueOptions.kt index bc3b402f08..c719e74e7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ExportValueOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ExportValueOptions.kt @@ -77,7 +77,8 @@ public interface ExportValueOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ExportValueOptions, - ) : CdkObject(cdkObject), ExportValueOptions { + ) : CdkObject(cdkObject), + ExportValueOptions { /** * The description of the outputs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetLocation.kt index bbda9bc1da..2f192685be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetLocation.kt @@ -199,7 +199,8 @@ public interface FileAssetLocation { private class Wrapper( cdkObject: software.amazon.awscdk.FileAssetLocation, - ) : CdkObject(cdkObject), FileAssetLocation { + ) : CdkObject(cdkObject), + FileAssetLocation { /** * The name of the Amazon S3 bucket. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetSource.kt index 01768aa0ac..9b2d7f0a49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileAssetSource.kt @@ -202,7 +202,8 @@ public interface FileAssetSource { private class Wrapper( cdkObject: software.amazon.awscdk.FileAssetSource, - ) : CdkObject(cdkObject), FileAssetSource { + ) : CdkObject(cdkObject), + FileAssetSource { /** * Whether or not the asset needs to exist beyond deployment time; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileCopyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileCopyOptions.kt index 2d853f01b1..970b07bb16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileCopyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileCopyOptions.kt @@ -120,7 +120,8 @@ public interface FileCopyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.FileCopyOptions, - ) : CdkObject(cdkObject), FileCopyOptions { + ) : CdkObject(cdkObject), + FileCopyOptions { /** * File paths matching the patterns will be excluded. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileFingerprintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileFingerprintOptions.kt index ad5770779f..2d336abf81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileFingerprintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FileFingerprintOptions.kt @@ -117,7 +117,8 @@ public interface FileFingerprintOptions : FileCopyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.FileFingerprintOptions, - ) : CdkObject(cdkObject), FileFingerprintOptions { + ) : CdkObject(cdkObject), + FileFingerprintOptions { /** * File paths matching the patterns will be excluded. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FingerprintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FingerprintOptions.kt index 1df16af7d8..cea4e26834 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FingerprintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/FingerprintOptions.kt @@ -117,7 +117,8 @@ public interface FingerprintOptions : CopyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.FingerprintOptions, - ) : CdkObject(cdkObject), FingerprintOptions { + ) : CdkObject(cdkObject), + FingerprintOptions { /** * File paths matching the patterns will be excluded. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyOptions.kt index 4a38f63417..a91b3d685f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyOptions.kt @@ -97,7 +97,8 @@ public interface GetContextKeyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.GetContextKeyOptions, - ) : CdkObject(cdkObject), GetContextKeyOptions { + ) : CdkObject(cdkObject), + GetContextKeyOptions { /** * Whether to include the stack's account and region automatically. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyResult.kt index 3f00677a87..60f03a3eb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextKeyResult.kt @@ -75,7 +75,8 @@ public interface GetContextKeyResult { private class Wrapper( cdkObject: software.amazon.awscdk.GetContextKeyResult, - ) : CdkObject(cdkObject), GetContextKeyResult { + ) : CdkObject(cdkObject), + GetContextKeyResult { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueOptions.kt index d16aa981a9..64c322a032 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueOptions.kt @@ -24,6 +24,7 @@ import kotlin.collections.Map * .dummyValue(dummyValue) * .provider("provider") * // the properties below are optional + * .ignoreErrorOnMissingContext(false) * .includeEnvironment(false) * .props(Map.of( * "propsKey", props)) @@ -33,12 +34,16 @@ import kotlin.collections.Map public interface GetContextValueOptions : GetContextKeyOptions { /** * The value to return if the context value was not found and a missing context is reported. - * - * This should be a dummy value that should preferably - * fail during deployment since it represents an invalid state. */ public fun dummyValue(): Any + /** + * When True, the context provider will not throw an error if missing context is reported. + * + * Default: false + */ + public fun ignoreErrorOnMissingContext(): Boolean? = unwrap(this).getIgnoreErrorOnMissingContext() + /** * A builder for [GetContextValueOptions] */ @@ -47,11 +52,15 @@ public interface GetContextValueOptions : GetContextKeyOptions { /** * @param dummyValue The value to return if the context value was not found and a missing * context is reported. - * This should be a dummy value that should preferably - * fail during deployment since it represents an invalid state. */ public fun dummyValue(dummyValue: Any) + /** + * @param ignoreErrorOnMissingContext When True, the context provider will not throw an error if + * missing context is reported. + */ + public fun ignoreErrorOnMissingContext(ignoreErrorOnMissingContext: Boolean) + /** * @param includeEnvironment Whether to include the stack's account and region automatically. */ @@ -75,13 +84,19 @@ public interface GetContextValueOptions : GetContextKeyOptions { /** * @param dummyValue The value to return if the context value was not found and a missing * context is reported. - * This should be a dummy value that should preferably - * fail during deployment since it represents an invalid state. */ override fun dummyValue(dummyValue: Any) { cdkBuilder.dummyValue(dummyValue) } + /** + * @param ignoreErrorOnMissingContext When True, the context provider will not throw an error if + * missing context is reported. + */ + override fun ignoreErrorOnMissingContext(ignoreErrorOnMissingContext: Boolean) { + cdkBuilder.ignoreErrorOnMissingContext(ignoreErrorOnMissingContext) + } + /** * @param includeEnvironment Whether to include the stack's account and region automatically. */ @@ -108,15 +123,21 @@ public interface GetContextValueOptions : GetContextKeyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.GetContextValueOptions, - ) : CdkObject(cdkObject), GetContextValueOptions { + ) : CdkObject(cdkObject), + GetContextValueOptions { /** * The value to return if the context value was not found and a missing context is reported. - * - * This should be a dummy value that should preferably - * fail during deployment since it represents an invalid state. */ override fun dummyValue(): Any = unwrap(this).getDummyValue() + /** + * When True, the context provider will not throw an error if missing context is reported. + * + * Default: false + */ + override fun ignoreErrorOnMissingContext(): Boolean? = + unwrap(this).getIgnoreErrorOnMissingContext() + /** * Whether to include the stack's account and region automatically. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueResult.kt index 89bcbe1923..07365db1f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/GetContextValueResult.kt @@ -54,7 +54,8 @@ public interface GetContextValueResult { private class Wrapper( cdkObject: software.amazon.awscdk.GetContextValueResult, - ) : CdkObject(cdkObject), GetContextValueResult { + ) : CdkObject(cdkObject), + GetContextValueResult { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAnyProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAnyProducer.kt index 8c87ec86e2..c458c535b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAnyProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAnyProducer.kt @@ -19,7 +19,8 @@ public interface IAnyProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IAnyProducer, - ) : CdkObject(cdkObject), IAnyProducer { + ) : CdkObject(cdkObject), + IAnyProducer { /** * Produce the value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAspect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAspect.kt index 016711926c..af858938ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAspect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAspect.kt @@ -19,7 +19,8 @@ public interface IAspect { private class Wrapper( cdkObject: software.amazon.awscdk.IAspect, - ) : CdkObject(cdkObject), IAspect { + ) : CdkObject(cdkObject), + IAspect { /** * All aspects can visit an IConstruct. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAsset.kt index 8644c36bba..4d2f3748c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IAsset.kt @@ -21,7 +21,8 @@ public interface IAsset { private class Wrapper( cdkObject: software.amazon.awscdk.IAsset, - ) : CdkObject(cdkObject), IAsset { + ) : CdkObject(cdkObject), + IAsset { /** * A hash of this asset, which is available at construction time. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IBoundStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IBoundStackSynthesizer.kt index 591bfea6c3..51371aa785 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IBoundStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IBoundStackSynthesizer.kt @@ -16,7 +16,8 @@ import kotlin.jvm.JvmName public interface IBoundStackSynthesizer : IStackSynthesizer { private class Wrapper( cdkObject: software.amazon.awscdk.IBoundStackSynthesizer, - ) : CdkObject(cdkObject), IBoundStackSynthesizer { + ) : CdkObject(cdkObject), + IBoundStackSynthesizer { /** * Register a Docker Image Asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnConditionExpression.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnConditionExpression.kt index 2a92a158af..aec664c4d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnConditionExpression.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnConditionExpression.kt @@ -44,7 +44,8 @@ import kotlin.collections.List public interface ICfnConditionExpression : IResolvable { private class Wrapper( cdkObject: software.amazon.awscdk.ICfnConditionExpression, - ) : CdkObject(cdkObject), ICfnConditionExpression { + ) : CdkObject(cdkObject), + ICfnConditionExpression { /** * The creation stack of this resolvable which will be appended to errors thrown during * resolution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnResourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnResourceOptions.kt index 69048d2e33..5a35397621 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnResourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnResourceOptions.kt @@ -218,7 +218,8 @@ public interface ICfnResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ICfnResourceOptions, - ) : CdkObject(cdkObject), ICfnResourceOptions { + ) : CdkObject(cdkObject), + ICfnResourceOptions { /** * A condition to associate with this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnRuleConditionExpression.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnRuleConditionExpression.kt index 23dc11b16b..8963dbe92e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnRuleConditionExpression.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ICfnRuleConditionExpression.kt @@ -24,7 +24,8 @@ public interface ICfnRuleConditionExpression : ICfnConditionExpression { private class Wrapper( cdkObject: software.amazon.awscdk.ICfnRuleConditionExpression, - ) : CdkObject(cdkObject), ICfnRuleConditionExpression { + ) : CdkObject(cdkObject), + ICfnRuleConditionExpression { /** * The creation stack of this resolvable which will be appended to errors thrown during * resolution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IFragmentConcatenator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IFragmentConcatenator.kt index 29a0de87ae..cdc8c73697 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IFragmentConcatenator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IFragmentConcatenator.kt @@ -22,7 +22,8 @@ public interface IFragmentConcatenator { private class Wrapper( cdkObject: software.amazon.awscdk.IFragmentConcatenator, - ) : CdkObject(cdkObject), IFragmentConcatenator { + ) : CdkObject(cdkObject), + IFragmentConcatenator { /** * Join the fragment on the left and on the right. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IInspectable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IInspectable.kt index 61a8fc0242..81c23686f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IInspectable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IInspectable.kt @@ -18,7 +18,8 @@ public interface IInspectable { private class Wrapper( cdkObject: software.amazon.awscdk.IInspectable, - ) : CdkObject(cdkObject), IInspectable { + ) : CdkObject(cdkObject), + IInspectable { /** * Examines construct. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IListProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IListProducer.kt index 14690ecfa7..adb4a155fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IListProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IListProducer.kt @@ -20,7 +20,8 @@ public interface IListProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IListProducer, - ) : CdkObject(cdkObject), IListProducer { + ) : CdkObject(cdkObject), + IListProducer { /** * Produce the list value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ILocalBundling.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ILocalBundling.kt index f72c0b8f19..d6eb7f83e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ILocalBundling.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ILocalBundling.kt @@ -41,7 +41,8 @@ public interface ILocalBundling { private class Wrapper( cdkObject: software.amazon.awscdk.ILocalBundling, - ) : CdkObject(cdkObject), ILocalBundling { + ) : CdkObject(cdkObject), + ILocalBundling { /** * This method is called before attempting docker bundling to allow the bundler to be executed * locally. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/INumberProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/INumberProducer.kt index 81087fe0b9..6b6768f64c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/INumberProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/INumberProducer.kt @@ -19,7 +19,8 @@ public interface INumberProducer { private class Wrapper( cdkObject: software.amazon.awscdk.INumberProducer, - ) : CdkObject(cdkObject), INumberProducer { + ) : CdkObject(cdkObject), + INumberProducer { /** * Produce the number value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationContextBeta1.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationContextBeta1.kt index c221871118..0ca5b2b1c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationContextBeta1.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationContextBeta1.kt @@ -18,7 +18,8 @@ public interface IPolicyValidationContextBeta1 { private class Wrapper( cdkObject: software.amazon.awscdk.IPolicyValidationContextBeta1, - ) : CdkObject(cdkObject), IPolicyValidationContextBeta1 { + ) : CdkObject(cdkObject), + IPolicyValidationContextBeta1 { /** * The absolute path of all templates to be processed. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationPluginBeta1.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationPluginBeta1.kt index 18eb5fed2a..be07eb99ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationPluginBeta1.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPolicyValidationPluginBeta1.kt @@ -73,7 +73,8 @@ public interface IPolicyValidationPluginBeta1 { private class Wrapper( cdkObject: software.amazon.awscdk.IPolicyValidationPluginBeta1, - ) : CdkObject(cdkObject), IPolicyValidationPluginBeta1 { + ) : CdkObject(cdkObject), + IPolicyValidationPluginBeta1 { /** * The name of the plugin that will be displayed in the validation report. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPostProcessor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPostProcessor.kt index 0bb63b3fb5..b3d4334e58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPostProcessor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IPostProcessor.kt @@ -20,7 +20,8 @@ public interface IPostProcessor { private class Wrapper( cdkObject: software.amazon.awscdk.IPostProcessor, - ) : CdkObject(cdkObject), IPostProcessor { + ) : CdkObject(cdkObject), + IPostProcessor { /** * Process the completely resolved value, after full recursion/resolution has happened. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolvable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolvable.kt index 756eeb8659..51aace913b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolvable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolvable.kt @@ -38,7 +38,8 @@ public interface IResolvable { private class Wrapper( cdkObject: software.amazon.awscdk.IResolvable, - ) : CdkObject(cdkObject), IResolvable { + ) : CdkObject(cdkObject), + IResolvable { /** * The creation stack of this resolvable which will be appended to errors thrown during * resolution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolveContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolveContext.kt index 87128bf7cf..efbdcd179f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolveContext.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResolveContext.kt @@ -66,7 +66,8 @@ public interface IResolveContext { private class Wrapper( cdkObject: software.amazon.awscdk.IResolveContext, - ) : CdkObject(cdkObject), IResolveContext { + ) : CdkObject(cdkObject), + IResolveContext { /** * Path in the JSON document that is being constructed. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResource.kt index 485f34c3ef..e716cc3226 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IResource.kt @@ -45,7 +45,8 @@ public interface IResource : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.IResource, - ) : CdkObject(cdkObject), IResource { + ) : CdkObject(cdkObject), + IResource { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IReusableStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IReusableStackSynthesizer.kt index 098ab08c1b..768e8fb852 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IReusableStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IReusableStackSynthesizer.kt @@ -30,7 +30,8 @@ public interface IReusableStackSynthesizer : IStackSynthesizer { private class Wrapper( cdkObject: software.amazon.awscdk.IReusableStackSynthesizer, - ) : CdkObject(cdkObject), IReusableStackSynthesizer { + ) : CdkObject(cdkObject), + IReusableStackSynthesizer { /** * Register a Docker Image Asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableAnyProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableAnyProducer.kt index 7fdc55db39..747ed4c7c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableAnyProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableAnyProducer.kt @@ -17,7 +17,8 @@ public interface IStableAnyProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IStableAnyProducer, - ) : CdkObject(cdkObject), IStableAnyProducer { + ) : CdkObject(cdkObject), + IStableAnyProducer { /** * Produce the value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableListProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableListProducer.kt index a8da40cf32..288f81f773 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableListProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableListProducer.kt @@ -18,7 +18,8 @@ public interface IStableListProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IStableListProducer, - ) : CdkObject(cdkObject), IStableListProducer { + ) : CdkObject(cdkObject), + IStableListProducer { /** * Produce the list value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableNumberProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableNumberProducer.kt index 77e7204935..b8b95d2863 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableNumberProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableNumberProducer.kt @@ -17,7 +17,8 @@ public interface IStableNumberProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IStableNumberProducer, - ) : CdkObject(cdkObject), IStableNumberProducer { + ) : CdkObject(cdkObject), + IStableNumberProducer { /** * Produce the number value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableStringProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableStringProducer.kt index 4184e68639..efdbd412ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableStringProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStableStringProducer.kt @@ -17,7 +17,8 @@ public interface IStableStringProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IStableStringProducer, - ) : CdkObject(cdkObject), IStableStringProducer { + ) : CdkObject(cdkObject), + IStableStringProducer { /** * Produce the string value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStackSynthesizer.kt index b7014095a6..3de7def886 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStackSynthesizer.kt @@ -85,7 +85,8 @@ public interface IStackSynthesizer { private class Wrapper( cdkObject: software.amazon.awscdk.IStackSynthesizer, - ) : CdkObject(cdkObject), IStackSynthesizer { + ) : CdkObject(cdkObject), + IStackSynthesizer { /** * Register a Docker Image Asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStringProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStringProducer.kt index 072cad4e21..2ff7126a0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStringProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IStringProducer.kt @@ -19,7 +19,8 @@ public interface IStringProducer { private class Wrapper( cdkObject: software.amazon.awscdk.IStringProducer, - ) : CdkObject(cdkObject), IStringProducer { + ) : CdkObject(cdkObject), + IStringProducer { /** * Produce the string value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ISynthesisSession.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ISynthesisSession.kt index 372489298e..6cd8487961 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ISynthesisSession.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ISynthesisSession.kt @@ -52,7 +52,8 @@ public interface ISynthesisSession { private class Wrapper( cdkObject: software.amazon.awscdk.ISynthesisSession, - ) : CdkObject(cdkObject), ISynthesisSession { + ) : CdkObject(cdkObject), + ISynthesisSession { /** * Cloud assembly builder. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggable.kt index d332a36b7d..bd3cf75e89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggable.kt @@ -16,7 +16,8 @@ public interface ITaggable { private class Wrapper( cdkObject: software.amazon.awscdk.ITaggable, - ) : CdkObject(cdkObject), ITaggable { + ) : CdkObject(cdkObject), + ITaggable { /** * TagManager to set, remove and format tags. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggableV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggableV2.kt index 05a5a28547..f5dce8eeb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggableV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITaggableV2.kt @@ -23,7 +23,8 @@ public interface ITaggableV2 { private class Wrapper( cdkObject: software.amazon.awscdk.ITaggableV2, - ) : CdkObject(cdkObject), ITaggableV2 { + ) : CdkObject(cdkObject), + ITaggableV2 { /** * TagManager to set, remove and format tags. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITemplateOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITemplateOptions.kt index b40c46d51d..121bea618e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITemplateOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITemplateOptions.kt @@ -76,7 +76,8 @@ public interface ITemplateOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ITemplateOptions, - ) : CdkObject(cdkObject), ITemplateOptions { + ) : CdkObject(cdkObject), + ITemplateOptions { /** * Gets or sets the description of this stack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenMapper.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenMapper.kt index 937653ca17..827e4c1b1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenMapper.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenMapper.kt @@ -21,7 +21,8 @@ public interface ITokenMapper { private class Wrapper( cdkObject: software.amazon.awscdk.ITokenMapper, - ) : CdkObject(cdkObject), ITokenMapper { + ) : CdkObject(cdkObject), + ITokenMapper { /** * Replace a single token. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenResolver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenResolver.kt index 518f55960b..e1ccaa73af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenResolver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ITokenResolver.kt @@ -45,7 +45,8 @@ public interface ITokenResolver { private class Wrapper( cdkObject: software.amazon.awscdk.ITokenResolver, - ) : CdkObject(cdkObject), ITokenResolver { + ) : CdkObject(cdkObject), + ITokenResolver { /** * Resolve a tokenized list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Intrinsic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Intrinsic.kt index 01a819a27d..0f8c6e00f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Intrinsic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Intrinsic.kt @@ -33,7 +33,8 @@ import kotlin.collections.List */ public open class Intrinsic( cdkObject: software.amazon.awscdk.Intrinsic, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { public constructor(`value`: Any) : this(software.amazon.awscdk.Intrinsic(`value`) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IntrinsicProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IntrinsicProps.kt index 1e13ead580..27969da66f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IntrinsicProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/IntrinsicProps.kt @@ -78,7 +78,8 @@ public interface IntrinsicProps { private class Wrapper( cdkObject: software.amazon.awscdk.IntrinsicProps, - ) : CdkObject(cdkObject), IntrinsicProps { + ) : CdkObject(cdkObject), + IntrinsicProps { /** * Capture the stack trace of where this token is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/JsonNull.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/JsonNull.kt index f12a9aad63..3fca698bba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/JsonNull.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/JsonNull.kt @@ -22,7 +22,8 @@ import kotlin.collections.List */ public open class JsonNull( cdkObject: software.amazon.awscdk.JsonNull, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { /** * The creation stack of this resolvable which will be appended to errors thrown during * resolution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyAnyValueOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyAnyValueOptions.kt index e4a3d5c27d..fec17ebc54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyAnyValueOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyAnyValueOptions.kt @@ -80,7 +80,8 @@ public interface LazyAnyValueOptions { private class Wrapper( cdkObject: software.amazon.awscdk.LazyAnyValueOptions, - ) : CdkObject(cdkObject), LazyAnyValueOptions { + ) : CdkObject(cdkObject), + LazyAnyValueOptions { /** * Use the given name as a display hint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyListValueOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyListValueOptions.kt index 375c2afac1..cfc4e1d183 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyListValueOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyListValueOptions.kt @@ -78,7 +78,8 @@ public interface LazyListValueOptions { private class Wrapper( cdkObject: software.amazon.awscdk.LazyListValueOptions, - ) : CdkObject(cdkObject), LazyListValueOptions { + ) : CdkObject(cdkObject), + LazyListValueOptions { /** * Use the given name as a display hint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyStringValueOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyStringValueOptions.kt index ef06d5f84f..0bbe102e78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyStringValueOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LazyStringValueOptions.kt @@ -57,7 +57,8 @@ public interface LazyStringValueOptions { private class Wrapper( cdkObject: software.amazon.awscdk.LazyStringValueOptions, - ) : CdkObject(cdkObject), LazyStringValueOptions { + ) : CdkObject(cdkObject), + LazyStringValueOptions { /** * Use the given name as a display hint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LegacyStackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LegacyStackSynthesizer.kt index e8f9da36f9..7e72df0ade 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LegacyStackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/LegacyStackSynthesizer.kt @@ -37,7 +37,9 @@ import kotlin.jvm.JvmName */ public open class LegacyStackSynthesizer( cdkObject: software.amazon.awscdk.LegacyStackSynthesizer, -) : StackSynthesizer(cdkObject), IReusableStackSynthesizer, IBoundStackSynthesizer { +) : StackSynthesizer(cdkObject), + IReusableStackSynthesizer, + IBoundStackSynthesizer { public constructor() : this(software.amazon.awscdk.LegacyStackSynthesizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStack.kt index 942b466dc0..1755e683e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStack.kt @@ -31,151 +31,26 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * import software.constructs.Construct; - * import io.cloudshiftdev.awscdk.App; - * import io.cloudshiftdev.awscdk.CfnOutput; - * import io.cloudshiftdev.awscdk.NestedStack; - * import io.cloudshiftdev.awscdk.NestedStackProps; - * import io.cloudshiftdev.awscdk.Stack; - * import io.cloudshiftdev.awscdk.services.apigateway.Deployment; - * import io.cloudshiftdev.awscdk.services.apigateway.Method; - * import io.cloudshiftdev.awscdk.services.apigateway.MockIntegration; - * import io.cloudshiftdev.awscdk.services.apigateway.PassthroughBehavior; - * import io.cloudshiftdev.awscdk.services.apigateway.RestApi; - * import io.cloudshiftdev.awscdk.services.apigateway.Stage; - * / ** - * * This file showcases how to split up a RestApi's Resources and Methods across nested stacks. - * * - * * The root stack 'RootStack' first defines a RestApi. - * * Two nested stacks BooksStack and PetsStack, create corresponding Resources '/books' and - * '/pets'. - * * They are then deployed to a 'prod' Stage via a third nested stack - DeployStack. - * * - * * To verify this worked, go to the APIGateway - * */ - * public class RootStack extends Stack { - * public RootStack(Construct scope) { - * super(scope, "integ-restapi-import-RootStack"); - * RestApi restApi = RestApi.Builder.create(this, "RestApi") - * .cloudWatchRole(true) - * .deploy(false) + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.customresources.CustomResourceConfig; + * import io.cloudshiftdev.awscdk.services.s3.deployment.*; + * App app = new App(); + * Stack stack = new Stack(app, "Stack"); + * CustomResourceConfig.of(app).addLogRetentionLifetime(RetentionDays.TEN_YEARS); + * NestedStack nestedStackA = new NestedStack(stack, "NestedStackA"); + * Bucket websiteBucketA = Bucket.Builder.create(nestedStackA, "WebsiteBucketA").build(); + * BucketDeployment.Builder.create(nestedStackA, "s3deployA") + * .sources(List.of(Source.jsonData("file.json", Map.of("a", "b")))) + * .destinationBucket(websiteBucketA) + * .logRetention(RetentionDays.ONE_DAY) * .build(); - * restApi.root.addMethod("ANY"); - * PetsStack petsStack = new PetsStack(this, new ResourceNestedStackProps() - * .restApiId(restApi.getRestApiId()) - * .rootResourceId(restApi.getRestApiRootResourceId()) - * ); - * BooksStack booksStack = new BooksStack(this, new ResourceNestedStackProps() - * .restApiId(restApi.getRestApiId()) - * .rootResourceId(restApi.getRestApiRootResourceId()) - * ); - * new DeployStack(this, new DeployStackProps() - * .restApiId(restApi.getRestApiId()) - * .methods(petsStack.methods.concat(booksStack.getMethods())) - * ); - * CfnOutput.Builder.create(this, "PetsURL") - * .value(String.format("https://%s.execute-api.%s.amazonaws.com/prod/pets", restApi.getRestApiId(), - * this.region)) + * NestedStack nestedStackB = new NestedStack(stack, "NestedStackB"); + * Bucket websiteBucketB = Bucket.Builder.create(nestedStackB, "WebsiteBucketB").build(); + * BucketDeployment.Builder.create(nestedStackB, "s3deployB") + * .sources(List.of(Source.jsonData("file.json", Map.of("a", "b")))) + * .destinationBucket(websiteBucketB) + * .logRetention(RetentionDays.ONE_DAY) * .build(); - * CfnOutput.Builder.create(this, "BooksURL") - * .value(String.format("https://%s.execute-api.%s.amazonaws.com/prod/books", - * restApi.getRestApiId(), this.region)) - * .build(); - * } - * } - * public class ResourceNestedStackProps extends NestedStackProps { - * private String restApiId; - * public String getRestApiId() { - * return this.restApiId; - * } - * public ResourceNestedStackProps restApiId(String restApiId) { - * this.restApiId = restApiId; - * return this; - * } - * private String rootResourceId; - * public String getRootResourceId() { - * return this.rootResourceId; - * } - * public ResourceNestedStackProps rootResourceId(String rootResourceId) { - * this.rootResourceId = rootResourceId; - * return this; - * } - * } - * public class PetsStack extends NestedStack { - * public final Method[] methods; - * public PetsStack(Construct scope, ResourceNestedStackProps props) { - * super(scope, "integ-restapi-import-PetsStack", props); - * IRestApi api = RestApi.fromRestApiAttributes(this, "RestApi", RestApiAttributes.builder() - * .restApiId(props.getRestApiId()) - * .rootResourceId(props.getRootResourceId()) - * .build()); - * Method method = api.root.addResource("pets").addMethod("GET", MockIntegration.Builder.create() - * .integrationResponses(List.of(IntegrationResponse.builder() - * .statusCode("200") - * .build())) - * .passthroughBehavior(PassthroughBehavior.NEVER) - * .requestTemplates(Map.of( - * "application/json", "{ \"statusCode\": 200 }")) - * .build(), MethodOptions.builder() - * .methodResponses(List.of(MethodResponse.builder().statusCode("200").build())) - * .build()); - * this.methods.push(method); - * } - * } - * public class BooksStack extends NestedStack { - * public final Method[] methods; - * public BooksStack(Construct scope, ResourceNestedStackProps props) { - * super(scope, "integ-restapi-import-BooksStack", props); - * IRestApi api = RestApi.fromRestApiAttributes(this, "RestApi", RestApiAttributes.builder() - * .restApiId(props.getRestApiId()) - * .rootResourceId(props.getRootResourceId()) - * .build()); - * Method method = api.root.addResource("books").addMethod("GET", MockIntegration.Builder.create() - * .integrationResponses(List.of(IntegrationResponse.builder() - * .statusCode("200") - * .build())) - * .passthroughBehavior(PassthroughBehavior.NEVER) - * .requestTemplates(Map.of( - * "application/json", "{ \"statusCode\": 200 }")) - * .build(), MethodOptions.builder() - * .methodResponses(List.of(MethodResponse.builder().statusCode("200").build())) - * .build()); - * this.methods.push(method); - * } - * } - * public class DeployStackProps extends NestedStackProps { - * private String restApiId; - * public String getRestApiId() { - * return this.restApiId; - * } - * public DeployStackProps restApiId(String restApiId) { - * this.restApiId = restApiId; - * return this; - * } - * private Method[] methods; - * public Method[] getMethods() { - * return this.methods; - * } - * public DeployStackProps methods(Method[] methods) { - * this.methods = methods; - * return this; - * } - * } - * public class DeployStack extends NestedStack { - * public DeployStack(Construct scope, DeployStackProps props) { - * super(scope, "integ-restapi-import-DeployStack", props); - * Deployment deployment = Deployment.Builder.create(this, "Deployment") - * .api(RestApi.fromRestApiId(this, "RestApi", props.getRestApiId())) - * .build(); - * if (props.getMethods()) { - * for (Object method : props.getMethods()) { - * deployment.node.addDependency(method); - * } - * } - * Stage.Builder.create(this, "Stage").deployment(deployment).build(); - * } - * } - * new RootStack(new App()); * ``` */ public open class NestedStack( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStackProps.kt index 35d1632a42..c744aeac5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/NestedStackProps.kt @@ -344,7 +344,8 @@ public interface NestedStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.NestedStackProps, - ) : CdkObject(cdkObject), NestedStackProps { + ) : CdkObject(cdkObject), + NestedStackProps { /** * A description of the stack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PermissionsBoundaryBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PermissionsBoundaryBindOptions.kt index 3ed78c77d1..cb0717d840 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PermissionsBoundaryBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PermissionsBoundaryBindOptions.kt @@ -36,7 +36,8 @@ public interface PermissionsBoundaryBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.PermissionsBoundaryBindOptions, - ) : CdkObject(cdkObject), PermissionsBoundaryBindOptions + ) : CdkObject(cdkObject), + PermissionsBoundaryBindOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): PermissionsBoundaryBindOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyValidationPluginReportBeta1.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyValidationPluginReportBeta1.kt index e17205a762..9a46ce212f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyValidationPluginReportBeta1.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyValidationPluginReportBeta1.kt @@ -144,7 +144,8 @@ public interface PolicyValidationPluginReportBeta1 { private class Wrapper( cdkObject: software.amazon.awscdk.PolicyValidationPluginReportBeta1, - ) : CdkObject(cdkObject), PolicyValidationPluginReportBeta1 { + ) : CdkObject(cdkObject), + PolicyValidationPluginReportBeta1 { /** * Arbitrary information about the report. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolatingResourceBeta1.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolatingResourceBeta1.kt index 152d5b1522..39d7c007eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolatingResourceBeta1.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolatingResourceBeta1.kt @@ -103,7 +103,8 @@ public interface PolicyViolatingResourceBeta1 { private class Wrapper( cdkObject: software.amazon.awscdk.PolicyViolatingResourceBeta1, - ) : CdkObject(cdkObject), PolicyViolatingResourceBeta1 { + ) : CdkObject(cdkObject), + PolicyViolatingResourceBeta1 { /** * The locations in the CloudFormation template that pose the violations. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolationBeta1.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolationBeta1.kt index 04bdaa1f2e..c6a9062897 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolationBeta1.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/PolicyViolationBeta1.kt @@ -184,7 +184,8 @@ public interface PolicyViolationBeta1 { private class Wrapper( cdkObject: software.amazon.awscdk.PolicyViolationBeta1, - ) : CdkObject(cdkObject), PolicyViolationBeta1 { + ) : CdkObject(cdkObject), + PolicyViolationBeta1 { /** * The description of the violation. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemovalPolicyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemovalPolicyOptions.kt index ea4df0e4f1..264cde0e97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemovalPolicyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemovalPolicyOptions.kt @@ -79,7 +79,8 @@ public interface RemovalPolicyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.RemovalPolicyOptions, - ) : CdkObject(cdkObject), RemovalPolicyOptions { + ) : CdkObject(cdkObject), + RemovalPolicyOptions { /** * Apply the same deletion policy to the resource's "UpdateReplacePolicy". * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemoveTag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemoveTag.kt index 295aa1a55e..f3acffff6e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemoveTag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RemoveTag.kt @@ -30,7 +30,8 @@ import kotlin.collections.List */ public open class RemoveTag( cdkObject: software.amazon.awscdk.RemoveTag, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor(key: String) : this(software.amazon.awscdk.RemoveTag(key) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveChangeContextOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveChangeContextOptions.kt index 5b1fd06f9d..6d79db49bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveChangeContextOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveChangeContextOptions.kt @@ -79,7 +79,8 @@ public interface ResolveChangeContextOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ResolveChangeContextOptions, - ) : CdkObject(cdkObject), ResolveChangeContextOptions { + ) : CdkObject(cdkObject), + ResolveChangeContextOptions { /** * Change the 'allowIntrinsicKeys' option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveOptions.kt index 61e81154e7..4fd6d87f2d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResolveOptions.kt @@ -125,7 +125,8 @@ public interface ResolveOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ResolveOptions, - ) : CdkObject(cdkObject), ResolveOptions { + ) : CdkObject(cdkObject), + ResolveOptions { /** * Whether the resolution is being executed during the prepare phase or not. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Resource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Resource.kt index af1e6bf77d..931577d7d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Resource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Resource.kt @@ -30,7 +30,8 @@ import kotlin.Boolean */ public abstract class Resource( cdkObject: software.amazon.awscdk.Resource, -) : Construct(cdkObject), IResource { +) : Construct(cdkObject), + IResource { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceEnvironment.kt index 3f93803a30..b0cb01c274 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceEnvironment.kt @@ -101,7 +101,8 @@ public interface ResourceEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.ResourceEnvironment, - ) : CdkObject(cdkObject), ResourceEnvironment { + ) : CdkObject(cdkObject), + ResourceEnvironment { /** * The AWS account ID that this resource belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceProps.kt index 275e5a3b90..4973fe1a2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ResourceProps.kt @@ -152,7 +152,8 @@ public interface ResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.ResourceProps, - ) : CdkObject(cdkObject), ResourceProps { + ) : CdkObject(cdkObject), + ResourceProps { /** * The AWS account ID this resource belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ReverseOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ReverseOptions.kt index d7a624bee4..bc5e03891c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ReverseOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/ReverseOptions.kt @@ -61,7 +61,8 @@ public interface ReverseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.ReverseOptions, - ) : CdkObject(cdkObject), ReverseOptions { + ) : CdkObject(cdkObject), + ReverseOptions { /** * Fail if the given string is a concatenation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RoleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RoleOptions.kt index 27fffc9b8e..d8caf9433c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RoleOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/RoleOptions.kt @@ -5,8 +5,10 @@ package io.cloudshiftdev.awscdk import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map /** * Options for specifying a role. @@ -17,14 +19,32 @@ import kotlin.Unit * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * Object assumeRoleAdditionalOptions; * RoleOptions roleOptions = RoleOptions.builder() * .assumeRoleArn("assumeRoleArn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .build(); * ``` */ public interface RoleOptions { + /** + * Additional options to pass to STS when assuming the role for cloudformation deployments. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + /** * ARN of the role to assume. */ @@ -42,6 +62,16 @@ public interface RoleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role + * for cloudformation deployments. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + /** * @param assumeRoleArn ARN of the role to assume. */ @@ -57,6 +87,18 @@ public interface RoleOptions { private val cdkBuilder: software.amazon.awscdk.RoleOptions.Builder = software.amazon.awscdk.RoleOptions.builder() + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role + * for cloudformation deployments. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param assumeRoleArn ARN of the role to assume. */ @@ -76,7 +118,23 @@ public interface RoleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.RoleOptions, - ) : CdkObject(cdkObject), RoleOptions { + ) : CdkObject(cdkObject), + RoleOptions { + /** + * Additional options to pass to STS when assuming the role for cloudformation deployments. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + /** * ARN of the role to assume. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SecretsManagerSecretOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SecretsManagerSecretOptions.kt index c73b0fcf5d..11359d33ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SecretsManagerSecretOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SecretsManagerSecretOptions.kt @@ -115,7 +115,8 @@ public interface SecretsManagerSecretOptions { private class Wrapper( cdkObject: software.amazon.awscdk.SecretsManagerSecretOptions, - ) : CdkObject(cdkObject), SecretsManagerSecretOptions { + ) : CdkObject(cdkObject), + SecretsManagerSecretOptions { /** * The key of a JSON field to retrieve. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SizeConversionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SizeConversionOptions.kt index 94dca509c1..b3e98fa194 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SizeConversionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SizeConversionOptions.kt @@ -53,7 +53,8 @@ public interface SizeConversionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.SizeConversionOptions, - ) : CdkObject(cdkObject), SizeConversionOptions { + ) : CdkObject(cdkObject), + SizeConversionOptions { /** * How conversions should behave when it encounters a non-integer result. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stack.kt index e6c312b65c..e1534b8826 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stack.kt @@ -2,7 +2,7 @@ package io.cloudshiftdev.awscdk -import io.cloudshiftdev.awscdk.cloudassembly.schema.MissingContext +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MissingContext import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.constructs.IConstruct import kotlin.Any @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Stack( cdkObject: software.amazon.awscdk.Stack, -) : CloudshiftdevConstructsConstruct(cdkObject), ITaggable { +) : CloudshiftdevConstructsConstruct(cdkObject), + ITaggable { public constructor() : this(software.amazon.awscdk.Stack() ) @@ -310,8 +311,6 @@ public open class Stack( * remove the reference from the consuming stack. After that, you can remove * the resource and the manual export. * - *

Example

- * * Here is how the process works. Let's say there are two stacks, * `producerStack` and `consumerStack`, and `producerStack` has a bucket * called `bucket`, which is referenced by `consumerStack` (perhaps because @@ -322,7 +321,7 @@ public open class Stack( * * Instead, the process takes two deployments: * - *

Deployment 1: break the relationship

+ * **Deployment 1: break the relationship**: * * * Make sure `consumerStack` no longer references `bucket.bucketName` (maybe the consumer * stack now uses its own bucket, or it writes to an AWS DynamoDB table, or maybe you just @@ -332,7 +331,7 @@ public open class Stack( * between the two stacks is being broken. * * Deploy (this will effectively only change the `consumerStack`, but it's safe to deploy both). * - *

Deployment 2: remove the bucket resource

+ * **Deployment 2: remove the bucket resource**: * * * You are now free to remove the `bucket` resource from `producerStack`. * * Don't forget to remove the `exportValue()` call as well. @@ -362,8 +361,6 @@ public open class Stack( * remove the reference from the consuming stack. After that, you can remove * the resource and the manual export. * - *

Example

- * * Here is how the process works. Let's say there are two stacks, * `producerStack` and `consumerStack`, and `producerStack` has a bucket * called `bucket`, which is referenced by `consumerStack` (perhaps because @@ -374,7 +371,7 @@ public open class Stack( * * Instead, the process takes two deployments: * - *

Deployment 1: break the relationship

+ * **Deployment 1: break the relationship**: * * * Make sure `consumerStack` no longer references `bucket.bucketName` (maybe the consumer * stack now uses its own bucket, or it writes to an AWS DynamoDB table, or maybe you just @@ -384,7 +381,7 @@ public open class Stack( * between the two stacks is being broken. * * Deploy (this will effectively only change the `consumerStack`, but it's safe to deploy both). * - *

Deployment 2: remove the bucket resource

+ * **Deployment 2: remove the bucket resource**: * * * You are now free to remove the `bucket` resource from `producerStack`. * * Don't forget to remove the `exportValue()` call as well. @@ -415,8 +412,6 @@ public open class Stack( * remove the reference from the consuming stack. After that, you can remove * the resource and the manual export. * - *

Example

- * * Here is how the process works. Let's say there are two stacks, * `producerStack` and `consumerStack`, and `producerStack` has a bucket * called `bucket`, which is referenced by `consumerStack` (perhaps because @@ -427,7 +422,7 @@ public open class Stack( * * Instead, the process takes two deployments: * - *

Deployment 1: break the relationship

+ * **Deployment 1: break the relationship**: * * * Make sure `consumerStack` no longer references `bucket.bucketName` (maybe the consumer * stack now uses its own bucket, or it writes to an AWS DynamoDB table, or maybe you just @@ -437,7 +432,7 @@ public open class Stack( * between the two stacks is being broken. * * Deploy (this will effectively only change the `consumerStack`, but it's safe to deploy both). * - *

Deployment 2: remove the bucket resource

+ * **Deployment 2: remove the bucket resource**: * * * You are now free to remove the `bucket` resource from `producerStack`. * * Don't forget to remove the `exportValue()` call as well. @@ -651,7 +646,7 @@ public open class Stack( * @param report The set of parameters needed to obtain the context. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("eb28e30cb4a3bcd7cf10552329d3aac7f3a539ebb37a9dd82d6939a832826110") + @JvmName("518cf0a47062d88d22e5197a66e79669873dbac9d6294bf52ac8b693bf65e8b4") public open fun reportMissingContextKey(report: MissingContext.Builder.() -> Unit): Unit = reportMissingContextKey(MissingContext(report)) @@ -965,6 +960,24 @@ public open class Stack( @JvmName("257d47dfd98ff7d3e84d09d23159057e237273e6f9d86e0e1a4729cfbd62261d") public fun env(env: Environment.Builder.() -> Unit) + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + * + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + public fun notificationArns(notificationArns: List) + + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + * + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + public fun notificationArns(vararg notificationArns: String) + /** * Options for applying a permissions boundary to all IAM Roles and Users created within this * Stage. @@ -1245,6 +1258,27 @@ public open class Stack( @JvmName("257d47dfd98ff7d3e84d09d23159057e237273e6f9d86e0e1a4729cfbd62261d") override fun env(env: Environment.Builder.() -> Unit): Unit = env(Environment(env)) + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + * + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + override fun notificationArns(notificationArns: List) { + cdkBuilder.notificationArns(notificationArns) + } + + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + * + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + override fun notificationArns(vararg notificationArns: String): Unit = + notificationArns(notificationArns.toList()) + /** * Options for applying a permissions boundary to all IAM Roles and Users created within this * Stage. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackProps.kt index df84c72da0..99a0b2296f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackProps.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName @@ -145,6 +146,13 @@ public interface StackProps { */ public fun env(): Environment? = unwrap(this).getEnv()?.let(Environment::wrap) + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + */ + public fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() + /** * Options for applying a permissions boundary to all IAM Roles and Users created within this * Stage. @@ -277,6 +285,16 @@ public interface StackProps { @JvmName("06595668ad8f96a9bf80be18cf5bc6ae0f52849715a13f6b3ed94434fd56c74f") public fun env(env: Environment.Builder.() -> Unit) + /** + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + public fun notificationArns(notificationArns: List) + + /** + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + public fun notificationArns(vararg notificationArns: String) + /** * @param permissionsBoundary Options for applying a permissions boundary to all IAM Roles and * Users created within this Stage. @@ -402,6 +420,19 @@ public interface StackProps { @JvmName("06595668ad8f96a9bf80be18cf5bc6ae0f52849715a13f6b3ed94434fd56c74f") override fun env(env: Environment.Builder.() -> Unit): Unit = env(Environment(env)) + /** + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + override fun notificationArns(notificationArns: List) { + cdkBuilder.notificationArns(notificationArns) + } + + /** + * @param notificationArns SNS Topic ARNs that will receive stack events. + */ + override fun notificationArns(vararg notificationArns: String): Unit = + notificationArns(notificationArns.toList()) + /** * @param permissionsBoundary Options for applying a permissions boundary to all IAM Roles and * Users created within this Stage. @@ -464,7 +495,8 @@ public interface StackProps { private class Wrapper( cdkObject: software.amazon.awscdk.StackProps, - ) : CdkObject(cdkObject), StackProps { + ) : CdkObject(cdkObject), + StackProps { /** * Include runtime versioning information in this Stack. * @@ -568,6 +600,14 @@ public interface StackProps { */ override fun env(): Environment? = unwrap(this).getEnv()?.let(Environment::wrap) + /** + * SNS Topic ARNs that will receive stack events. + * + * Default: - no notfication arns. + */ + override fun notificationArns(): List = unwrap(this).getNotificationArns() ?: + emptyList() + /** * Options for applying a permissions boundary to all IAM Roles and Users created within this * Stage. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackSynthesizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackSynthesizer.kt index 313ae911c9..532b7e9104 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackSynthesizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StackSynthesizer.kt @@ -17,7 +17,8 @@ import kotlin.jvm.JvmName */ public abstract class StackSynthesizer( cdkObject: software.amazon.awscdk.StackSynthesizer, -) : CdkObject(cdkObject), IStackSynthesizer { +) : CdkObject(cdkObject), + IStackSynthesizer { /** * Register a Docker Image Asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stage.kt index 5f3cb5f29a..2e6a2ddc94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Stage.kt @@ -37,8 +37,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .build()); * pipeline.addStage(prod, AddStageOpts.builder() - * .pre(List.of( - * new ManualApprovalStep("PromoteToProd"))) + * .pre(List.of(new ManualApprovalStep("PromoteToProd"))) * .build()); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageProps.kt index efdc4f7b89..af08098d41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageProps.kt @@ -270,7 +270,8 @@ public interface StageProps { private class Wrapper( cdkObject: software.amazon.awscdk.StageProps, - ) : CdkObject(cdkObject), StageProps { + ) : CdkObject(cdkObject), + StageProps { /** * Default AWS environment (account/region) for `Stack`s in this `Stage`. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageSynthesisOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageSynthesisOptions.kt index fd66c48f62..2be05fc1cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageSynthesisOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StageSynthesisOptions.kt @@ -106,7 +106,8 @@ public interface StageSynthesisOptions { private class Wrapper( cdkObject: software.amazon.awscdk.StageSynthesisOptions, - ) : CdkObject(cdkObject), StageSynthesisOptions { + ) : CdkObject(cdkObject), + StageSynthesisOptions { /** * Force a re-synth, even if the stage has already been synthesized. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StringConcat.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StringConcat.kt index 77ecd77746..67fd0ea529 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StringConcat.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/StringConcat.kt @@ -21,7 +21,8 @@ import kotlin.Any */ public open class StringConcat( cdkObject: software.amazon.awscdk.StringConcat, -) : CdkObject(cdkObject), IFragmentConcatenator { +) : CdkObject(cdkObject), + IFragmentConcatenator { public constructor() : this(software.amazon.awscdk.StringConcat() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SynthesizeStackArtifactOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SynthesizeStackArtifactOptions.kt index c886d4ad20..03cb65ebe8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SynthesizeStackArtifactOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/SynthesizeStackArtifactOptions.kt @@ -2,10 +2,11 @@ package io.cloudshiftdev.awscdk -import io.cloudshiftdev.awscdk.cloudassembly.schema.BootstrapRole +import io.cloudshiftdev.awscdk.cloud_assembly_schema.BootstrapRole import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit @@ -25,9 +26,12 @@ import kotlin.jvm.JvmName * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * Object assumeRoleAdditionalOptions; * SynthesizeStackArtifactOptions synthesizeStackArtifactOptions = * SynthesizeStackArtifactOptions.builder() * .additionalDependencies(List.of("additionalDependencies")) + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -35,6 +39,8 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) @@ -55,6 +61,21 @@ public interface SynthesizeStackArtifactOptions { public fun additionalDependencies(): List = unwrap(this).getAdditionalDependencies() ?: emptyList() + /** + * Additional options to pass to STS when assuming the role for cloudformation deployments. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + /** * The role that needs to be assumed to deploy the stack. * @@ -137,6 +158,16 @@ public interface SynthesizeStackArtifactOptions { */ public fun additionalDependencies(vararg additionalDependencies: String) + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role + * for cloudformation deployments. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + /** * @param assumeRoleArn The role that needs to be assumed to deploy the stack. */ @@ -175,7 +206,7 @@ public interface SynthesizeStackArtifactOptions { * @param lookupRole The role to use to look up values from the target AWS account. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("667efbdaa99a63c73ad9441bf91996ead6c776da81567e995faf159be4f41f99") + @JvmName("1931a134460bf2dc8dbbd5562b372cf8502a457973718015da4df8928d7c72dd") public fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit) /** @@ -214,6 +245,18 @@ public interface SynthesizeStackArtifactOptions { override fun additionalDependencies(vararg additionalDependencies: String): Unit = additionalDependencies(additionalDependencies.toList()) + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role + * for cloudformation deployments. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + /** * @param assumeRoleArn The role that needs to be assumed to deploy the stack. */ @@ -262,7 +305,7 @@ public interface SynthesizeStackArtifactOptions { * @param lookupRole The role to use to look up values from the target AWS account. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("667efbdaa99a63c73ad9441bf91996ead6c776da81567e995faf159be4f41f99") + @JvmName("1931a134460bf2dc8dbbd5562b372cf8502a457973718015da4df8928d7c72dd") override fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit): Unit = lookupRole(BootstrapRole(lookupRole)) @@ -295,7 +338,8 @@ public interface SynthesizeStackArtifactOptions { private class Wrapper( cdkObject: software.amazon.awscdk.SynthesizeStackArtifactOptions, - ) : CdkObject(cdkObject), SynthesizeStackArtifactOptions { + ) : CdkObject(cdkObject), + SynthesizeStackArtifactOptions { /** * Identifiers of additional dependencies. * @@ -304,6 +348,21 @@ public interface SynthesizeStackArtifactOptions { override fun additionalDependencies(): List = unwrap(this).getAdditionalDependencies() ?: emptyList() + /** + * Additional options to pass to STS when assuming the role for cloudformation deployments. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags + * are transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + /** * The role that needs to be assumed to deploy the stack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Tag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Tag.kt index a3cb21a0a2..69665eaae7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Tag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/Tag.kt @@ -30,7 +30,8 @@ import kotlin.collections.List */ public open class Tag( cdkObject: software.amazon.awscdk.Tag, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor(key: String, `value`: String) : this(software.amazon.awscdk.Tag(key, `value`) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagManagerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagManagerOptions.kt index 237ba267eb..9c3a803b5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagManagerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagManagerOptions.kt @@ -61,7 +61,8 @@ public interface TagManagerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.TagManagerOptions, - ) : CdkObject(cdkObject), TagManagerOptions { + ) : CdkObject(cdkObject), + TagManagerOptions { /** * The name of the property in CloudFormation for these tags. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagProps.kt index f76940e077..3e0a1980e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TagProps.kt @@ -192,7 +192,8 @@ public interface TagProps { private class Wrapper( cdkObject: software.amazon.awscdk.TagProps, - ) : CdkObject(cdkObject), TagProps { + ) : CdkObject(cdkObject), + TagProps { /** * Whether the tag should be applied to instances in an AutoScalingGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TimeConversionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TimeConversionOptions.kt index 381f138bd3..c6e7767490 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TimeConversionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/TimeConversionOptions.kt @@ -60,7 +60,8 @@ public interface TimeConversionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.TimeConversionOptions, - ) : CdkObject(cdkObject), TimeConversionOptions { + ) : CdkObject(cdkObject), + TimeConversionOptions { /** * If `true`, conversions into a larger time unit (e.g. `Seconds` to `Minutes`) will fail if the * result is not an integer. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/UniqueResourceNameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/UniqueResourceNameOptions.kt index 550213f208..499871c87a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/UniqueResourceNameOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/UniqueResourceNameOptions.kt @@ -100,7 +100,8 @@ public interface UniqueResourceNameOptions { private class Wrapper( cdkObject: software.amazon.awscdk.UniqueResourceNameOptions, - ) : CdkObject(cdkObject), UniqueResourceNameOptions { + ) : CdkObject(cdkObject), + UniqueResourceNameOptions { /** * Non-alphanumeric characters allowed in the unique resource name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkill.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkill.kt index b5cd9d3e3d..9118694cee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkill.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkill.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSkill( cdkObject: software.amazon.awscdk.alexa.ask.CfnSkill, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -488,7 +489,8 @@ public open class CfnSkill( private class Wrapper( cdkObject: software.amazon.awscdk.alexa.ask.CfnSkill.AuthenticationConfigurationProperty, - ) : CdkObject(cdkObject), AuthenticationConfigurationProperty { + ) : CdkObject(cdkObject), + AuthenticationConfigurationProperty { /** * Client ID from Login with Amazon (LWA). * @@ -595,7 +597,8 @@ public open class CfnSkill( private class Wrapper( cdkObject: software.amazon.awscdk.alexa.ask.CfnSkill.OverridesProperty, - ) : CdkObject(cdkObject), OverridesProperty { + ) : CdkObject(cdkObject), + OverridesProperty { /** * Overrides to apply to the skill manifest inside of the skill package. * @@ -828,7 +831,8 @@ public open class CfnSkill( private class Wrapper( cdkObject: software.amazon.awscdk.alexa.ask.CfnSkill.SkillPackageProperty, - ) : CdkObject(cdkObject), SkillPackageProperty { + ) : CdkObject(cdkObject), + SkillPackageProperty { /** * Overrides to the skill package to apply when creating or updating the skill. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkillProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkillProps.kt index 0c6c5e8ad9..21563102cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkillProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/alexa/ask/CfnSkillProps.kt @@ -226,7 +226,8 @@ public interface CfnSkillProps { private class Wrapper( cdkObject: software.amazon.awscdk.alexa.ask.CfnSkillProps, - ) : CdkObject(cdkObject), CfnSkillProps { + ) : CdkObject(cdkObject), + CfnSkillProps { /** * Login with Amazon (LWA) configuration used to authenticate with the Alexa service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Annotations.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Annotations.kt index 66c5277f9b..5c264314b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Annotations.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Annotations.kt @@ -31,7 +31,8 @@ public open class Annotations( /** * Get the set of matching errors of a given construct path and message. * - * @param constructPath the construct path to the error. + * @param constructPath the construct path to the error, provide `'*'` to match all errors in the + * template. * @param message the error message as should be expected. */ public open fun findError(constructPath: String, message: Any): List = @@ -40,7 +41,8 @@ public open class Annotations( /** * Get the set of matching infos of a given construct path and message. * - * @param constructPath the construct path to the info. + * @param constructPath the construct path to the info, provide `'*'` to match all infos in the + * template. * @param message the info message as should be expected. */ public open fun findInfo(constructPath: String, message: Any): List = @@ -49,7 +51,8 @@ public open class Annotations( /** * Get the set of matching warning of a given construct path and message. * - * @param constructPath the construct path to the warning. + * @param constructPath the construct path to the warning, provide `'*'` to match all warnings in + * the template. * @param message the warning message as should be expected. */ public open fun findWarning(constructPath: String, message: Any): List = @@ -58,7 +61,8 @@ public open class Annotations( /** * Assert that an error with the given message exists in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the error. + * @param constructPath the construct path to the error, provide `'*'` to match all errors in the + * template. * @param message the error message as should be expected. */ public open fun hasError(constructPath: String, message: Any) { @@ -68,7 +72,8 @@ public open class Annotations( /** * Assert that an info with the given message exists in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the info. + * @param constructPath the construct path to the info, provide `'*'` to match all info in the + * template. * @param message the info message as should be expected. */ public open fun hasInfo(constructPath: String, message: Any) { @@ -78,7 +83,8 @@ public open class Annotations( /** * Assert that an error with the given message does not exist in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the error. + * @param constructPath the construct path to the error, provide `'*'` to match all errors in the + * template. * @param message the error message as should be expected. */ public open fun hasNoError(constructPath: String, message: Any) { @@ -88,7 +94,8 @@ public open class Annotations( /** * Assert that an info with the given message does not exist in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the info. + * @param constructPath the construct path to the info, provide `'*'` to match all info in the + * template. * @param message the info message as should be expected. */ public open fun hasNoInfo(constructPath: String, message: Any) { @@ -98,7 +105,8 @@ public open class Annotations( /** * Assert that an warning with the given message does not exist in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the warning. + * @param constructPath the construct path to the warning, provide `'*'` to match all warnings in + * the template. * @param message the warning message as should be expected. */ public open fun hasNoWarning(constructPath: String, message: Any) { @@ -108,7 +116,8 @@ public open class Annotations( /** * Assert that an warning with the given message exists in the synthesized CDK `Stack`. * - * @param constructPath the construct path to the warning. + * @param constructPath the construct path to the warning, provide `'*'` to match all warnings in + * the template. * @param message the warning message as should be expected. */ public open fun hasWarning(constructPath: String, message: Any) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchCapture.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchCapture.kt index b703a0916c..8216c24eff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchCapture.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchCapture.kt @@ -75,7 +75,8 @@ public interface MatchCapture { private class Wrapper( cdkObject: software.amazon.awscdk.assertions.MatchCapture, - ) : CdkObject(cdkObject), MatchCapture { + ) : CdkObject(cdkObject), + MatchCapture { /** * The instance of Capture class to which this capture is associated with. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchFailure.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchFailure.kt index c54acbca06..5a68692ccd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchFailure.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/MatchFailure.kt @@ -141,7 +141,8 @@ public interface MatchFailure { private class Wrapper( cdkObject: software.amazon.awscdk.assertions.MatchFailure, - ) : CdkObject(cdkObject), MatchFailure { + ) : CdkObject(cdkObject), + MatchFailure { /** * The cost of this particular mismatch. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Template.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Template.kt index 9779ac90b9..ed9062d7f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Template.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/Template.kt @@ -64,7 +64,8 @@ public open class Template( * Get the set of matching Conditions that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the condition. + * @param logicalId the name of the condition, provide `'*'` to match all conditions in the + * template. * @param props by default, matches all Conditions in the template. */ public open fun findConditions(logicalId: String): Map> = @@ -74,7 +75,8 @@ public open class Template( * Get the set of matching Conditions that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the condition. + * @param logicalId the name of the condition, provide `'*'` to match all conditions in the + * template. * @param props by default, matches all Conditions in the template. */ public open fun findConditions(logicalId: String, props: Any): Map> = @@ -84,7 +86,7 @@ public open class Template( * Get the set of matching Mappings that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the mapping. + * @param logicalId the name of the mapping, provide `'*'` to match all mappings in the template. * @param props by default, matches all Mappings in the template. */ public open fun findMappings(logicalId: String): Map> = @@ -94,7 +96,7 @@ public open class Template( * Get the set of matching Mappings that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the mapping. + * @param logicalId the name of the mapping, provide `'*'` to match all mappings in the template. * @param props by default, matches all Mappings in the template. */ public open fun findMappings(logicalId: String, props: Any): Map> = @@ -103,7 +105,7 @@ public open class Template( /** * Get the set of matching Outputs that match the given properties in the CloudFormation template. * - * @param logicalId the name of the output. + * @param logicalId the name of the output, provide `'*'` to match all outputs in the template. * @param props by default, matches all Outputs in the template. */ public open fun findOutputs(logicalId: String): Map> = @@ -112,7 +114,7 @@ public open class Template( /** * Get the set of matching Outputs that match the given properties in the CloudFormation template. * - * @param logicalId the name of the output. + * @param logicalId the name of the output, provide `'*'` to match all outputs in the template. * @param props by default, matches all Outputs in the template. */ public open fun findOutputs(logicalId: String, props: Any): Map> = @@ -122,7 +124,8 @@ public open class Template( * Get the set of matching Parameters that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the parameter. + * @param logicalId the name of the parameter, provide `'*'` to match all parameters in the + * template. * @param props by default, matches all Parameters in the template. */ public open fun findParameters(logicalId: String): Map> = @@ -132,7 +135,8 @@ public open class Template( * Get the set of matching Parameters that match the given properties in the CloudFormation * template. * - * @param logicalId the name of the parameter. + * @param logicalId the name of the parameter, provide `'*'` to match all parameters in the + * template. * @param props by default, matches all Parameters in the template. */ public open fun findParameters(logicalId: String, props: Any): Map> = @@ -164,7 +168,8 @@ public open class Template( * By default, performs partial matching on the resource, via the `Match.objectLike()`. * To configure different behavior, use other matchers in the `Match` class. * - * @param logicalId the name of the mapping. + * @param logicalId the name of the mapping, provide `'*'` to match all conditions in the + * template. * @param props the output as should be expected in the template. */ public open fun hasCondition(logicalId: String, props: Any) { @@ -177,7 +182,7 @@ public open class Template( * By default, performs partial matching on the resource, via the `Match.objectLike()`. * To configure different behavior, use other matchers in the `Match` class. * - * @param logicalId the name of the mapping. + * @param logicalId the name of the mapping, provide `'*'` to match all mappings in the template. * @param props the output as should be expected in the template. */ public open fun hasMapping(logicalId: String, props: Any) { @@ -190,7 +195,7 @@ public open class Template( * By default, performs partial matching on the resource, via the `Match.objectLike()`. * To configure different behavior, use other matchers in the `Match` class. * - * @param logicalId the name of the output. + * @param logicalId the name of the output, provide `'*'` to match all outputs in the template. * @param props the output as should be expected in the template. */ public open fun hasOutput(logicalId: String, props: Any) { @@ -203,7 +208,8 @@ public open class Template( * By default, performs partial matching on the parameter, via the `Match.objectLike()`. * To configure different behavior, use other matchers in the `Match` class. * - * @param logicalId the name of the parameter. + * @param logicalId the name of the parameter, provide `'*'` to match all parameters in the + * template. * @param props the parameter as should be expected in the template. */ public open fun hasParameter(logicalId: String, props: Any) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/TemplateParsingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/TemplateParsingOptions.kt index 3e408b9788..c721966ffe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/TemplateParsingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/assertions/TemplateParsingOptions.kt @@ -68,7 +68,8 @@ public interface TemplateParsingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.assertions.TemplateParsingOptions, - ) : CdkObject(cdkObject), TemplateParsingOptions { + ) : CdkObject(cdkObject), + TemplateParsingOptions { /** * If set to true, will skip checking for cyclical / circular dependencies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpIamAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpIamAuthorizer.kt index ed3fe52c20..2abeffa850 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpIamAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpIamAuthorizer.kt @@ -31,7 +31,8 @@ import kotlin.jvm.JvmName */ public open class HttpIamAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpIamAuthorizer, -) : CdkObject(cdkObject), IHttpRouteAuthorizer { +) : CdkObject(cdkObject), + IHttpRouteAuthorizer { public constructor() : this(software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpIamAuthorizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizer.kt index 4a278f50b1..69d092ac32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizer.kt @@ -35,7 +35,8 @@ import kotlin.jvm.JvmName */ public open class HttpJwtAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpJwtAuthorizer, -) : CdkObject(cdkObject), IHttpRouteAuthorizer { +) : CdkObject(cdkObject), + IHttpRouteAuthorizer { public constructor( id: String, jwtIssuer: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizerProps.kt index 9abf5183cc..576cfab4a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpJwtAuthorizerProps.kt @@ -129,7 +129,8 @@ public interface HttpJwtAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpJwtAuthorizerProps, - ) : CdkObject(cdkObject), HttpJwtAuthorizerProps { + ) : CdkObject(cdkObject), + HttpJwtAuthorizerProps { /** * The name of the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizer.kt index 99abd7e224..96df72b51e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizer.kt @@ -40,7 +40,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class HttpLambdaAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpLambdaAuthorizer, -) : CdkObject(cdkObject), IHttpRouteAuthorizer { +) : CdkObject(cdkObject), + IHttpRouteAuthorizer { public constructor(id: String, handler: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpLambdaAuthorizer(id, handler.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizerProps.kt index 0bb79ce007..b20fa6d28d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpLambdaAuthorizerProps.kt @@ -171,7 +171,8 @@ public interface HttpLambdaAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpLambdaAuthorizerProps, - ) : CdkObject(cdkObject), HttpLambdaAuthorizerProps { + ) : CdkObject(cdkObject), + HttpLambdaAuthorizerProps { /** * Friendly authorizer name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizer.kt index 16ac0ec3fb..159df7a532 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizer.kt @@ -37,7 +37,8 @@ import software.amazon.awscdk.services.cognito.IUserPool as AmazonAwscdkServices */ public open class HttpUserPoolAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpUserPoolAuthorizer, -) : CdkObject(cdkObject), IHttpRouteAuthorizer { +) : CdkObject(cdkObject), + IHttpRouteAuthorizer { public constructor(id: String, pool: CloudshiftdevAwscdkServicesCognitoIUserPool) : this(software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpUserPoolAuthorizer(id, pool.let(CloudshiftdevAwscdkServicesCognitoIUserPool.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizerProps.kt index 4d3625c7d9..bb3adb3201 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/HttpUserPoolAuthorizerProps.kt @@ -151,7 +151,8 @@ public interface HttpUserPoolAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpUserPoolAuthorizerProps, - ) : CdkObject(cdkObject), HttpUserPoolAuthorizerProps { + ) : CdkObject(cdkObject), + HttpUserPoolAuthorizerProps { /** * Friendly name of the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketIamAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketIamAuthorizer.kt index 3d222bd8ae..03f5a98140 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketIamAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketIamAuthorizer.kt @@ -43,7 +43,8 @@ import kotlin.jvm.JvmName */ public open class WebSocketIamAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer, -) : CdkObject(cdkObject), IWebSocketRouteAuthorizer { +) : CdkObject(cdkObject), + IWebSocketRouteAuthorizer { public constructor() : this(software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizer.kt index 5e80be6c83..511a77fa53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizer.kt @@ -38,7 +38,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class WebSocketLambdaAuthorizer( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketLambdaAuthorizer, -) : CdkObject(cdkObject), IWebSocketRouteAuthorizer { +) : CdkObject(cdkObject), + IWebSocketRouteAuthorizer { public constructor(id: String, handler: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketLambdaAuthorizer(id, handler.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizerProps.kt index ccc64cac99..c6cabef3ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_authorizers/WebSocketLambdaAuthorizerProps.kt @@ -109,7 +109,8 @@ public interface WebSocketLambdaAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketLambdaAuthorizerProps, - ) : CdkObject(cdkObject), WebSocketLambdaAuthorizerProps { + ) : CdkObject(cdkObject), + WebSocketLambdaAuthorizerProps { /** * The name of the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegration.kt index 94d989a1e5..a9ccf3998e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpMethod import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegration @@ -114,6 +115,18 @@ public open class HttpAlbIntegration( */ public fun secureServerName(secureServerName: String) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) + /** * The vpc link to be used for the private integration. * @@ -170,6 +183,20 @@ public open class HttpAlbIntegration( cdkBuilder.secureServerName(secureServerName) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegrationProps.kt index d8c684ceae..2115977182 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpAlbIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -54,6 +55,13 @@ public interface HttpAlbIntegrationProps : HttpPrivateIntegrationOptions { */ public fun secureServerName(secureServerName: String) + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -88,6 +96,15 @@ public interface HttpAlbIntegrationProps : HttpPrivateIntegrationOptions { cdkBuilder.secureServerName(secureServerName) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -101,7 +118,8 @@ public interface HttpAlbIntegrationProps : HttpPrivateIntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpAlbIntegrationProps, - ) : CdkObject(cdkObject), HttpAlbIntegrationProps { + ) : CdkObject(cdkObject), + HttpAlbIntegrationProps { /** * The HTTP method that must be used to invoke the underlying HTTP proxy. * @@ -128,6 +146,15 @@ public interface HttpAlbIntegrationProps : HttpPrivateIntegrationOptions { */ override fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegration.kt index b441ad06d3..7e8b3682a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegration import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegrationBindOptions @@ -100,6 +101,18 @@ public open class HttpLambdaIntegration( * @param payloadFormatVersion Version of the payload sent to the lambda handler. */ public fun payloadFormatVersion(payloadFormatVersion: PayloadFormatVersion) + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl( @@ -136,6 +149,20 @@ public open class HttpLambdaIntegration( cdkBuilder.payloadFormatVersion(payloadFormatVersion.let(PayloadFormatVersion.Companion::unwrap)) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegration = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegrationProps.kt index 63a2e9fb33..5ea36f049b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpLambdaIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -17,6 +18,7 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.*; * ParameterMapping parameterMapping; @@ -24,6 +26,7 @@ import kotlin.Unit * HttpLambdaIntegrationProps httpLambdaIntegrationProps = HttpLambdaIntegrationProps.builder() * .parameterMapping(parameterMapping) * .payloadFormatVersion(payloadFormatVersion) + * .timeout(Duration.minutes(30)) * .build(); * ``` */ @@ -48,6 +51,15 @@ public interface HttpLambdaIntegrationProps { public fun payloadFormatVersion(): PayloadFormatVersion? = unwrap(this).getPayloadFormatVersion()?.let(PayloadFormatVersion::wrap) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * A builder for [HttpLambdaIntegrationProps] */ @@ -63,6 +75,13 @@ public interface HttpLambdaIntegrationProps { * @param payloadFormatVersion Version of the payload sent to the lambda handler. */ public fun payloadFormatVersion(payloadFormatVersion: PayloadFormatVersion) + + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl : Builder { @@ -85,6 +104,15 @@ public interface HttpLambdaIntegrationProps { cdkBuilder.payloadFormatVersion(payloadFormatVersion.let(PayloadFormatVersion.Companion::unwrap)) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegrationProps = cdkBuilder.build() @@ -92,7 +120,8 @@ public interface HttpLambdaIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegrationProps, - ) : CdkObject(cdkObject), HttpLambdaIntegrationProps { + ) : CdkObject(cdkObject), + HttpLambdaIntegrationProps { /** * Specifies how to transform HTTP requests before sending them to the backend. * @@ -112,6 +141,15 @@ public interface HttpLambdaIntegrationProps { */ override fun payloadFormatVersion(): PayloadFormatVersion? = unwrap(this).getPayloadFormatVersion()?.let(PayloadFormatVersion::wrap) + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegration.kt index f55b0ff911..9e019f2428 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpMethod import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegration @@ -114,6 +115,18 @@ public open class HttpNlbIntegration( */ public fun secureServerName(secureServerName: String) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) + /** * The vpc link to be used for the private integration. * @@ -170,6 +183,20 @@ public open class HttpNlbIntegration( cdkBuilder.secureServerName(secureServerName) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegrationProps.kt index 52b6728d48..098cd7283b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpNlbIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -19,6 +20,7 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.*; * ParameterMapping parameterMapping; @@ -27,6 +29,7 @@ import kotlin.Unit * .method(HttpMethod.ANY) * .parameterMapping(parameterMapping) * .secureServerName("secureServerName") + * .timeout(Duration.minutes(30)) * .vpcLink(vpcLink) * .build(); * ``` @@ -54,6 +57,13 @@ public interface HttpNlbIntegrationProps : HttpPrivateIntegrationOptions { */ public fun secureServerName(secureServerName: String) + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -88,6 +98,15 @@ public interface HttpNlbIntegrationProps : HttpPrivateIntegrationOptions { cdkBuilder.secureServerName(secureServerName) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -101,7 +120,8 @@ public interface HttpNlbIntegrationProps : HttpPrivateIntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpNlbIntegrationProps, - ) : CdkObject(cdkObject), HttpNlbIntegrationProps { + ) : CdkObject(cdkObject), + HttpNlbIntegrationProps { /** * The HTTP method that must be used to invoke the underlying HTTP proxy. * @@ -128,6 +148,15 @@ public interface HttpNlbIntegrationProps : HttpPrivateIntegrationOptions { */ override fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpPrivateIntegrationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpPrivateIntegrationOptions.kt index f8f9be44ed..99e052fe1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpPrivateIntegrationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpPrivateIntegrationOptions.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -19,6 +20,7 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.*; * ParameterMapping parameterMapping; @@ -28,6 +30,7 @@ import kotlin.Unit * .method(HttpMethod.ANY) * .parameterMapping(parameterMapping) * .secureServerName("secureServerName") + * .timeout(Duration.minutes(30)) * .vpcLink(vpcLink) * .build(); * ``` @@ -59,6 +62,15 @@ public interface HttpPrivateIntegrationOptions { */ public fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The vpc link to be used for the private integration. * @@ -88,6 +100,13 @@ public interface HttpPrivateIntegrationOptions { */ public fun secureServerName(secureServerName: String) + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -122,6 +141,15 @@ public interface HttpPrivateIntegrationOptions { cdkBuilder.secureServerName(secureServerName) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -136,7 +164,8 @@ public interface HttpPrivateIntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpPrivateIntegrationOptions, - ) : CdkObject(cdkObject), HttpPrivateIntegrationOptions { + ) : CdkObject(cdkObject), + HttpPrivateIntegrationOptions { /** * The HTTP method that must be used to invoke the underlying HTTP proxy. * @@ -163,6 +192,15 @@ public interface HttpPrivateIntegrationOptions { */ override fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegration.kt index bb22941a29..29ef07412c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpMethod import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegration @@ -116,6 +117,18 @@ public open class HttpServiceDiscoveryIntegration( */ public fun secureServerName(secureServerName: String) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) + /** * The vpc link to be used for the private integration. * @@ -173,6 +186,20 @@ public open class HttpServiceDiscoveryIntegration( cdkBuilder.secureServerName(secureServerName) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegrationProps.kt index a217c8ff03..eb383281a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpServiceDiscoveryIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -56,6 +57,13 @@ public interface HttpServiceDiscoveryIntegrationProps : HttpPrivateIntegrationOp */ public fun secureServerName(secureServerName: String) + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -91,6 +99,15 @@ public interface HttpServiceDiscoveryIntegrationProps : HttpPrivateIntegrationOp cdkBuilder.secureServerName(secureServerName) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param vpcLink The vpc link to be used for the private integration. */ @@ -105,7 +122,8 @@ public interface HttpServiceDiscoveryIntegrationProps : HttpPrivateIntegrationOp private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegrationProps, - ) : CdkObject(cdkObject), HttpServiceDiscoveryIntegrationProps { + ) : CdkObject(cdkObject), + HttpServiceDiscoveryIntegrationProps { /** * The HTTP method that must be used to invoke the underlying HTTP proxy. * @@ -132,6 +150,15 @@ public interface HttpServiceDiscoveryIntegrationProps : HttpPrivateIntegrationOp */ override fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The vpc link to be used for the private integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpStepFunctionsIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpStepFunctionsIntegrationProps.kt index 1356118d22..96afbfe1cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpStepFunctionsIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpStepFunctionsIntegrationProps.kt @@ -144,7 +144,8 @@ public interface HttpStepFunctionsIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpStepFunctionsIntegrationProps, - ) : CdkObject(cdkObject), HttpStepFunctionsIntegrationProps { + ) : CdkObject(cdkObject), + HttpStepFunctionsIntegrationProps { /** * Specifies how to transform HTTP requests before sending them to the backend. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegration.kt index deda75a6ba..0fdd627774 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpMethod import io.cloudshiftdev.awscdk.services.apigatewayv2.HttpRouteIntegration @@ -100,6 +101,18 @@ public open class HttpUrlIntegration( * backend. */ public fun parameterMapping(parameterMapping: ParameterMapping) + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl( @@ -135,6 +148,20 @@ public open class HttpUrlIntegration( cdkBuilder.parameterMapping(parameterMapping.let(ParameterMapping.Companion::unwrap)) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.aws_apigatewayv2_integrations.HttpUrlIntegration = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegrationProps.kt index 20abf4c463..7564696d74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/HttpUrlIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -17,12 +18,14 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.*; * ParameterMapping parameterMapping; * HttpUrlIntegrationProps httpUrlIntegrationProps = HttpUrlIntegrationProps.builder() * .method(HttpMethod.ANY) * .parameterMapping(parameterMapping) + * .timeout(Duration.minutes(30)) * .build(); * ``` */ @@ -44,6 +47,15 @@ public interface HttpUrlIntegrationProps { public fun parameterMapping(): ParameterMapping? = unwrap(this).getParameterMapping()?.let(ParameterMapping::wrap) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * A builder for [HttpUrlIntegrationProps] */ @@ -59,6 +71,13 @@ public interface HttpUrlIntegrationProps { * backend. */ public fun parameterMapping(parameterMapping: ParameterMapping) + + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl : Builder { @@ -81,13 +100,23 @@ public interface HttpUrlIntegrationProps { cdkBuilder.parameterMapping(parameterMapping.let(ParameterMapping.Companion::unwrap)) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.aws_apigatewayv2_integrations.HttpUrlIntegrationProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.HttpUrlIntegrationProps, - ) : CdkObject(cdkObject), HttpUrlIntegrationProps { + ) : CdkObject(cdkObject), + HttpUrlIntegrationProps { /** * The HTTP method that must be used to invoke the underlying HTTP proxy. * @@ -104,6 +133,15 @@ public interface HttpUrlIntegrationProps { */ override fun parameterMapping(): ParameterMapping? = unwrap(this).getParameterMapping()?.let(ParameterMapping::wrap) + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketAwsIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketAwsIntegrationProps.kt index 0a148d256e..346f2fc427 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketAwsIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketAwsIntegrationProps.kt @@ -276,7 +276,8 @@ public interface WebSocketAwsIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketAwsIntegrationProps, - ) : CdkObject(cdkObject), WebSocketAwsIntegrationProps { + ) : CdkObject(cdkObject), + WebSocketAwsIntegrationProps { /** * Specifies how to handle response payload content type conversions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketLambdaIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketLambdaIntegrationProps.kt index 12d5e334ff..d5a5cdae07 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketLambdaIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/aws_apigatewayv2_integrations/WebSocketLambdaIntegrationProps.kt @@ -93,7 +93,8 @@ public interface WebSocketLambdaIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegrationProps, - ) : CdkObject(cdkObject), WebSocketLambdaIntegrationProps { + ) : CdkObject(cdkObject), + WebSocketLambdaIntegrationProps { /** * Specifies how to handle response payload content type conversions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AmiContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AmiContextQuery.kt new file mode 100644 index 0000000000..9cb15b7d56 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AmiContextQuery.kt @@ -0,0 +1,235 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Query to AMI context provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AmiContextQuery amiContextQuery = AmiContextQuery.builder() + * .account("account") + * .filters(Map.of( + * "filtersKey", List.of("filters"))) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .owners(List.of("owners")) + * .build(); + * ``` + */ +public interface AmiContextQuery : ContextLookupRoleOptions { + /** + * Filters to DescribeImages call. + */ + public fun filters(): Map> + + /** + * Owners to DescribeImages call. + * + * Default: - All owners + */ + public fun owners(): List = unwrap(this).getOwners() ?: emptyList() + + /** + * A builder for [AmiContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param filters Filters to DescribeImages call. + */ + public fun filters(filters: Map>) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param owners Owners to DescribeImages call. + */ + public fun owners(owners: List) + + /** + * @param owners Owners to DescribeImages call. + */ + public fun owners(vararg owners: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param filters Filters to DescribeImages call. + */ + override fun filters(filters: Map>) { + cdkBuilder.filters(filters) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param owners Owners to DescribeImages call. + */ + override fun owners(owners: List) { + cdkBuilder.owners(owners) + } + + /** + * @param owners Owners to DescribeImages call. + */ + override fun owners(vararg owners: String): Unit = owners(owners.toList()) + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery, + ) : CdkObject(cdkObject), + AmiContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * Filters to DescribeImages call. + */ + override fun filters(): Map> = unwrap(this).getFilters() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Owners to DescribeImages call. + * + * Default: - All owners + */ + override fun owners(): List = unwrap(this).getOwners() ?: emptyList() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AmiContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery): + AmiContextQuery = CdkObjectWrappers.wrap(cdkObject) as? AmiContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AmiContextQuery): + software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AmiContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactManifest.kt new file mode 100644 index 0000000000..f6f4029d58 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactManifest.kt @@ -0,0 +1,371 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * A manifest for a single artifact within the cloud assembly. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * ArtifactManifest artifactManifest = ArtifactManifest.builder() + * .type(ArtifactType.NONE) + * // the properties below are optional + * .dependencies(List.of("dependencies")) + * .displayName("displayName") + * .environment("environment") + * .metadata(Map.of( + * "metadataKey", List.of(MetadataEntry.builder() + * .type("type") + * // the properties below are optional + * .data("data") + * .trace(List.of("trace")) + * .build()))) + * .properties(AwsCloudFormationStackProperties.builder() + * .templateFile("templateFile") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") + * .lookupRole(BootstrapRole.builder() + * .arn("arn") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build()) + * .notificationArns(List.of("notificationArns")) + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .requiresBootstrapStackVersion(123) + * .stackName("stackName") + * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") + * .tags(Map.of( + * "tagsKey", "tags")) + * .terminationProtection(false) + * .validateOnSynth(false) + * .build()) + * .build(); + * ``` + */ +public interface ArtifactManifest { + /** + * IDs of artifacts that must be deployed before this artifact. + * + * Default: - no dependencies. + */ + public fun dependencies(): List = unwrap(this).getDependencies() ?: emptyList() + + /** + * A string that represents this artifact. + * + * Should only be used in user interfaces. + * + * Default: - no display name + */ + public fun displayName(): String? = unwrap(this).getDisplayName() + + /** + * The environment into which this artifact is deployed. + * + * Default: - no envrionment. + */ + public fun environment(): String? = unwrap(this).getEnvironment() + + /** + * Associated metadata. + * + * Default: - no metadata. + */ + public fun metadata(): Map> = + unwrap(this).getMetadata()?.mapValues{it.value.map(MetadataEntry::wrap)} ?: emptyMap() + + /** + * The set of properties for this artifact (depends on type). + * + * Default: - no properties. + */ + public fun properties(): Any? = unwrap(this).getProperties() + + /** + * The type of artifact. + */ + public fun type(): ArtifactType + + /** + * A builder for [ArtifactManifest] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dependencies IDs of artifacts that must be deployed before this artifact. + */ + public fun dependencies(dependencies: List) + + /** + * @param dependencies IDs of artifacts that must be deployed before this artifact. + */ + public fun dependencies(vararg dependencies: String) + + /** + * @param displayName A string that represents this artifact. + * Should only be used in user interfaces. + */ + public fun displayName(displayName: String) + + /** + * @param environment The environment into which this artifact is deployed. + */ + public fun environment(environment: String) + + /** + * @param metadata Associated metadata. + */ + public fun metadata(metadata: Map>) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + public fun properties(properties: AwsCloudFormationStackProperties) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ed404207fdc460ad93a24545ce632fd4e4a130f62f6a4bc59529feefb6f9c1e9") + public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + public fun properties(properties: AssetManifestProperties) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7a50fe841a72098ff0a20fbb7125ce769683bcb17fad2881086cfc1feaa2f688") + public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + public fun properties(properties: TreeArtifactProperties) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b05b7342a6267e2ba0f47709dba8d016ecea0cade7ad7c978c2a2209bda1e0e3") + public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + public fun properties(properties: NestedCloudAssemblyProperties) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f26aac055fecdd3be39f5e3e62c162a410c6ce5a9eaa4b3e377c5b6980b564e2") + public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) + + /** + * @param type The type of artifact. + */ + public fun type(type: ArtifactType) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest.Builder = + software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest.builder() + + /** + * @param dependencies IDs of artifacts that must be deployed before this artifact. + */ + override fun dependencies(dependencies: List) { + cdkBuilder.dependencies(dependencies) + } + + /** + * @param dependencies IDs of artifacts that must be deployed before this artifact. + */ + override fun dependencies(vararg dependencies: String): Unit = + dependencies(dependencies.toList()) + + /** + * @param displayName A string that represents this artifact. + * Should only be used in user interfaces. + */ + override fun displayName(displayName: String) { + cdkBuilder.displayName(displayName) + } + + /** + * @param environment The environment into which this artifact is deployed. + */ + override fun environment(environment: String) { + cdkBuilder.environment(environment) + } + + /** + * @param metadata Associated metadata. + */ + override fun metadata(metadata: Map>) { + cdkBuilder.metadata(metadata.mapValues{it.value.map(MetadataEntry.Companion::unwrap) }) + } + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + override fun properties(properties: AwsCloudFormationStackProperties) { + cdkBuilder.properties(properties.let(AwsCloudFormationStackProperties.Companion::unwrap)) + } + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ed404207fdc460ad93a24545ce632fd4e4a130f62f6a4bc59529feefb6f9c1e9") + override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = + properties(AwsCloudFormationStackProperties(properties)) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + override fun properties(properties: AssetManifestProperties) { + cdkBuilder.properties(properties.let(AssetManifestProperties.Companion::unwrap)) + } + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7a50fe841a72098ff0a20fbb7125ce769683bcb17fad2881086cfc1feaa2f688") + override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = + properties(AssetManifestProperties(properties)) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + override fun properties(properties: TreeArtifactProperties) { + cdkBuilder.properties(properties.let(TreeArtifactProperties.Companion::unwrap)) + } + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b05b7342a6267e2ba0f47709dba8d016ecea0cade7ad7c978c2a2209bda1e0e3") + override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = + properties(TreeArtifactProperties(properties)) + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + override fun properties(properties: NestedCloudAssemblyProperties) { + cdkBuilder.properties(properties.let(NestedCloudAssemblyProperties.Companion::unwrap)) + } + + /** + * @param properties The set of properties for this artifact (depends on type). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f26aac055fecdd3be39f5e3e62c162a410c6ce5a9eaa4b3e377c5b6980b564e2") + override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = + properties(NestedCloudAssemblyProperties(properties)) + + /** + * @param type The type of artifact. + */ + override fun type(type: ArtifactType) { + cdkBuilder.type(type.let(ArtifactType.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest, + ) : CdkObject(cdkObject), + ArtifactManifest { + /** + * IDs of artifacts that must be deployed before this artifact. + * + * Default: - no dependencies. + */ + override fun dependencies(): List = unwrap(this).getDependencies() ?: emptyList() + + /** + * A string that represents this artifact. + * + * Should only be used in user interfaces. + * + * Default: - no display name + */ + override fun displayName(): String? = unwrap(this).getDisplayName() + + /** + * The environment into which this artifact is deployed. + * + * Default: - no envrionment. + */ + override fun environment(): String? = unwrap(this).getEnvironment() + + /** + * Associated metadata. + * + * Default: - no metadata. + */ + override fun metadata(): Map> = + unwrap(this).getMetadata()?.mapValues{it.value.map(MetadataEntry::wrap)} ?: emptyMap() + + /** + * The set of properties for this artifact (depends on type). + * + * Default: - no properties. + */ + override fun properties(): Any? = unwrap(this).getProperties() + + /** + * The type of artifact. + */ + override fun type(): ArtifactType = unwrap(this).getType().let(ArtifactType::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ArtifactManifest { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest): + ArtifactManifest = CdkObjectWrappers.wrap(cdkObject) as? ArtifactManifest ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ArtifactManifest): + software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactMetadataEntryType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactMetadataEntryType.kt new file mode 100644 index 0000000000..b1e923ad91 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactMetadataEntryType.kt @@ -0,0 +1,37 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class ArtifactMetadataEntryType( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType, +) { + ASSET(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.ASSET), + INFO(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.INFO), + WARN(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.WARN), + ERROR(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.ERROR), + LOGICAL_ID(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.LOGICAL_ID), + STACK_TAGS(software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.STACK_TAGS), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType): + ArtifactMetadataEntryType = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.ASSET -> + ArtifactMetadataEntryType.ASSET + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.INFO -> + ArtifactMetadataEntryType.INFO + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.WARN -> + ArtifactMetadataEntryType.WARN + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.ERROR -> + ArtifactMetadataEntryType.ERROR + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.LOGICAL_ID -> + ArtifactMetadataEntryType.LOGICAL_ID + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType.STACK_TAGS -> + ArtifactMetadataEntryType.STACK_TAGS + } + + internal fun unwrap(wrapped: ArtifactMetadataEntryType): + software.amazon.awscdk.cloud_assembly_schema.ArtifactMetadataEntryType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactType.kt new file mode 100644 index 0000000000..089cb4d662 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ArtifactType.kt @@ -0,0 +1,31 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class ArtifactType( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactType, +) { + NONE(software.amazon.awscdk.cloud_assembly_schema.ArtifactType.NONE), + AWS_CLOUDFORMATION_STACK(software.amazon.awscdk.cloud_assembly_schema.ArtifactType.AWS_CLOUDFORMATION_STACK), + CDK_TREE(software.amazon.awscdk.cloud_assembly_schema.ArtifactType.CDK_TREE), + ASSET_MANIFEST(software.amazon.awscdk.cloud_assembly_schema.ArtifactType.ASSET_MANIFEST), + NESTED_CLOUD_ASSEMBLY(software.amazon.awscdk.cloud_assembly_schema.ArtifactType.NESTED_CLOUD_ASSEMBLY), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ArtifactType): + ArtifactType = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.ArtifactType.NONE -> ArtifactType.NONE + software.amazon.awscdk.cloud_assembly_schema.ArtifactType.AWS_CLOUDFORMATION_STACK -> + ArtifactType.AWS_CLOUDFORMATION_STACK + software.amazon.awscdk.cloud_assembly_schema.ArtifactType.CDK_TREE -> ArtifactType.CDK_TREE + software.amazon.awscdk.cloud_assembly_schema.ArtifactType.ASSET_MANIFEST -> + ArtifactType.ASSET_MANIFEST + software.amazon.awscdk.cloud_assembly_schema.ArtifactType.NESTED_CLOUD_ASSEMBLY -> + ArtifactType.NESTED_CLOUD_ASSEMBLY + } + + internal fun unwrap(wrapped: ArtifactType): + software.amazon.awscdk.cloud_assembly_schema.ArtifactType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssemblyManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssemblyManifest.kt new file mode 100644 index 0000000000..4c602af89f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssemblyManifest.kt @@ -0,0 +1,271 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * A manifest which describes the cloud assembly. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AssemblyManifest assemblyManifest = AssemblyManifest.builder() + * .version("version") + * // the properties below are optional + * .artifacts(Map.of( + * "artifactsKey", ArtifactManifest.builder() + * .type(ArtifactType.NONE) + * // the properties below are optional + * .dependencies(List.of("dependencies")) + * .displayName("displayName") + * .environment("environment") + * .metadata(Map.of( + * "metadataKey", List.of(MetadataEntry.builder() + * .type("type") + * // the properties below are optional + * .data("data") + * .trace(List.of("trace")) + * .build()))) + * .properties(AwsCloudFormationStackProperties.builder() + * .templateFile("templateFile") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") + * .lookupRole(BootstrapRole.builder() + * .arn("arn") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build()) + * .notificationArns(List.of("notificationArns")) + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .requiresBootstrapStackVersion(123) + * .stackName("stackName") + * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") + * .tags(Map.of( + * "tagsKey", "tags")) + * .terminationProtection(false) + * .validateOnSynth(false) + * .build()) + * .build())) + * .missing(List.of(MissingContext.builder() + * .key("key") + * .props(AmiContextQuery.builder() + * .account("account") + * .filters(Map.of( + * "filtersKey", List.of("filters"))) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .owners(List.of("owners")) + * .build()) + * .provider(ContextProvider.AMI_PROVIDER) + * .build())) + * .runtime(RuntimeInfo.builder() + * .libraries(Map.of( + * "librariesKey", "libraries")) + * .build()) + * .build(); + * ``` + */ +public interface AssemblyManifest { + /** + * The set of artifacts in this assembly. + * + * Default: - no artifacts. + */ + public fun artifacts(): Map = + unwrap(this).getArtifacts()?.mapValues{ArtifactManifest.wrap(it.value)} ?: emptyMap() + + /** + * Missing context information. + * + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + * + * Default: - no missing context. + */ + public fun missing(): List = unwrap(this).getMissing()?.map(MissingContext::wrap) + ?: emptyList() + + /** + * Runtime information. + * + * Default: - no info. + */ + public fun runtime(): RuntimeInfo? = unwrap(this).getRuntime()?.let(RuntimeInfo::wrap) + + /** + * Protocol version. + */ + public fun version(): String + + /** + * A builder for [AssemblyManifest] + */ + @CdkDslMarker + public interface Builder { + /** + * @param artifacts The set of artifacts in this assembly. + */ + public fun artifacts(artifacts: Map) + + /** + * @param missing Missing context information. + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + */ + public fun missing(missing: List) + + /** + * @param missing Missing context information. + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + */ + public fun missing(vararg missing: MissingContext) + + /** + * @param runtime Runtime information. + */ + public fun runtime(runtime: RuntimeInfo) + + /** + * @param runtime Runtime information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d50491dab12b1f59b1208b1aa58ca639effa8ffa8264e5abb9b21de5b822db59") + public fun runtime(runtime: RuntimeInfo.Builder.() -> Unit) + + /** + * @param version Protocol version. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest.Builder = + software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest.builder() + + /** + * @param artifacts The set of artifacts in this assembly. + */ + override fun artifacts(artifacts: Map) { + cdkBuilder.artifacts(artifacts.mapValues{ArtifactManifest.unwrap(it.value)}) + } + + /** + * @param missing Missing context information. + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + */ + override fun missing(missing: List) { + cdkBuilder.missing(missing.map(MissingContext.Companion::unwrap)) + } + + /** + * @param missing Missing context information. + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + */ + override fun missing(vararg missing: MissingContext): Unit = missing(missing.toList()) + + /** + * @param runtime Runtime information. + */ + override fun runtime(runtime: RuntimeInfo) { + cdkBuilder.runtime(runtime.let(RuntimeInfo.Companion::unwrap)) + } + + /** + * @param runtime Runtime information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d50491dab12b1f59b1208b1aa58ca639effa8ffa8264e5abb9b21de5b822db59") + override fun runtime(runtime: RuntimeInfo.Builder.() -> Unit): Unit = + runtime(RuntimeInfo(runtime)) + + /** + * @param version Protocol version. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest, + ) : CdkObject(cdkObject), + AssemblyManifest { + /** + * The set of artifacts in this assembly. + * + * Default: - no artifacts. + */ + override fun artifacts(): Map = + unwrap(this).getArtifacts()?.mapValues{ArtifactManifest.wrap(it.value)} ?: emptyMap() + + /** + * Missing context information. + * + * If this field has values, it means that the + * cloud assembly is not complete and should not be deployed. + * + * Default: - no missing context. + */ + override fun missing(): List = + unwrap(this).getMissing()?.map(MissingContext::wrap) ?: emptyList() + + /** + * Runtime information. + * + * Default: - no info. + */ + override fun runtime(): RuntimeInfo? = unwrap(this).getRuntime()?.let(RuntimeInfo::wrap) + + /** + * Protocol version. + */ + override fun version(): String = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AssemblyManifest { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest): + AssemblyManifest = CdkObjectWrappers.wrap(cdkObject) as? AssemblyManifest ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AssemblyManifest): + software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AssemblyManifest + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifest.kt new file mode 100644 index 0000000000..1a359c2e80 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifest.kt @@ -0,0 +1,199 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Definitions for the asset manifest. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AssetManifest assetManifest = AssetManifest.builder() + * .version("version") + * // the properties below are optional + * .dockerImages(Map.of( + * "dockerImagesKey", DockerImageAsset.builder() + * .destinations(Map.of( + * "destinationsKey", DockerImageDestination.builder() + * .imageTag("imageTag") + * .repositoryName("repositoryName") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build())) + * .source(DockerImageSource.builder() + * .cacheDisabled(false) + * .cacheFrom(List.of(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build())) + * .cacheTo(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build()) + * .directory("directory") + * .dockerBuildArgs(Map.of( + * "dockerBuildArgsKey", "dockerBuildArgs")) + * .dockerBuildSecrets(Map.of( + * "dockerBuildSecretsKey", "dockerBuildSecrets")) + * .dockerBuildSsh("dockerBuildSsh") + * .dockerBuildTarget("dockerBuildTarget") + * .dockerFile("dockerFile") + * .dockerOutputs(List.of("dockerOutputs")) + * .executable(List.of("executable")) + * .networkMode("networkMode") + * .platform("platform") + * .build()) + * .build())) + * .files(Map.of( + * "filesKey", FileAsset.builder() + * .destinations(Map.of( + * "destinationsKey", FileDestination.builder() + * .bucketName("bucketName") + * .objectKey("objectKey") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build())) + * .source(FileSource.builder() + * .executable(List.of("executable")) + * .packaging(FileAssetPackaging.FILE) + * .path("path") + * .build()) + * .build())) + * .build(); + * ``` + */ +public interface AssetManifest { + /** + * The Docker image assets in this manifest. + * + * Default: - No Docker images + */ + public fun dockerImages(): Map = + unwrap(this).getDockerImages()?.mapValues{DockerImageAsset.wrap(it.value)} ?: emptyMap() + + /** + * The file assets in this manifest. + * + * Default: - No files + */ + public fun files(): Map = + unwrap(this).getFiles()?.mapValues{FileAsset.wrap(it.value)} ?: emptyMap() + + /** + * Version of the manifest. + */ + public fun version(): String + + /** + * A builder for [AssetManifest] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dockerImages The Docker image assets in this manifest. + */ + public fun dockerImages(dockerImages: Map) + + /** + * @param files The file assets in this manifest. + */ + public fun files(files: Map) + + /** + * @param version Version of the manifest. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.AssetManifest.Builder = + software.amazon.awscdk.cloud_assembly_schema.AssetManifest.builder() + + /** + * @param dockerImages The Docker image assets in this manifest. + */ + override fun dockerImages(dockerImages: Map) { + cdkBuilder.dockerImages(dockerImages.mapValues{DockerImageAsset.unwrap(it.value)}) + } + + /** + * @param files The file assets in this manifest. + */ + override fun files(files: Map) { + cdkBuilder.files(files.mapValues{FileAsset.unwrap(it.value)}) + } + + /** + * @param version Version of the manifest. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AssetManifest = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifest, + ) : CdkObject(cdkObject), + AssetManifest { + /** + * The Docker image assets in this manifest. + * + * Default: - No Docker images + */ + override fun dockerImages(): Map = + unwrap(this).getDockerImages()?.mapValues{DockerImageAsset.wrap(it.value)} ?: emptyMap() + + /** + * The file assets in this manifest. + * + * Default: - No files + */ + override fun files(): Map = + unwrap(this).getFiles()?.mapValues{FileAsset.wrap(it.value)} ?: emptyMap() + + /** + * Version of the manifest. + */ + override fun version(): String = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AssetManifest { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifest): + AssetManifest = CdkObjectWrappers.wrap(cdkObject) as? AssetManifest ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AssetManifest): + software.amazon.awscdk.cloud_assembly_schema.AssetManifest = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AssetManifest + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestOptions.kt new file mode 100644 index 0000000000..bea9425f0f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestOptions.kt @@ -0,0 +1,144 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.String +import kotlin.Unit + +/** + * Configuration options for the Asset Manifest. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * AssetManifestOptions assetManifestOptions = AssetManifestOptions.builder() + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build(); + * ``` + */ +public interface AssetManifestOptions { + /** + * SSM parameter where the bootstrap stack version number can be found. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + * + * Default: - Bootstrap stack version number looked up + */ + public fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * Version of bootstrap stack required to deploy this stack. + * + * Default: - Version 1 (basic modern bootstrap stack) + */ + public fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + + /** + * A builder for [AssetManifestOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions.builder() + + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { + cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) + } + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { + cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions, + ) : CdkObject(cdkObject), + AssetManifestOptions { + /** + * SSM parameter where the bootstrap stack version number can be found. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + * + * Default: - Bootstrap stack version number looked up + */ + override fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * Version of bootstrap stack required to deploy this stack. + * + * Default: - Version 1 (basic modern bootstrap stack) + */ + override fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AssetManifestOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions): + AssetManifestOptions = CdkObjectWrappers.wrap(cdkObject) as? AssetManifestOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AssetManifestOptions): + software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AssetManifestOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestProperties.kt new file mode 100644 index 0000000000..145e0df5f1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AssetManifestProperties.kt @@ -0,0 +1,147 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.String +import kotlin.Unit + +/** + * Artifact properties for the Asset Manifest. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * AssetManifestProperties assetManifestProperties = AssetManifestProperties.builder() + * .file("file") + * // the properties below are optional + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build(); + * ``` + */ +public interface AssetManifestProperties : AssetManifestOptions { + /** + * Filename of the asset manifest. + */ + public fun `file`(): String + + /** + * A builder for [AssetManifestProperties] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) + + /** + * @param file Filename of the asset manifest. + */ + public fun `file`(`file`: String) + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties.Builder = + software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties.builder() + + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { + cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) + } + + /** + * @param file Filename of the asset manifest. + */ + override fun `file`(`file`: String) { + cdkBuilder.`file`(`file`) + } + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { + cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties, + ) : CdkObject(cdkObject), + AssetManifestProperties { + /** + * SSM parameter where the bootstrap stack version number can be found. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + * + * Default: - Bootstrap stack version number looked up + */ + override fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * Filename of the asset manifest. + */ + override fun `file`(): String = unwrap(this).getFile() + + /** + * Version of bootstrap stack required to deploy this stack. + * + * Default: - Version 1 (basic modern bootstrap stack) + */ + override fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AssetManifestProperties { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties): + AssetManifestProperties = CdkObjectWrappers.wrap(cdkObject) as? AssetManifestProperties ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AssetManifestProperties): + software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AssetManifestProperties + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AvailabilityZonesContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AvailabilityZonesContextQuery.kt new file mode 100644 index 0000000000..17a332028e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AvailabilityZonesContextQuery.kt @@ -0,0 +1,177 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query to availability zone context provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AvailabilityZonesContextQuery availabilityZonesContextQuery = + * AvailabilityZonesContextQuery.builder() + * .account("account") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface AvailabilityZonesContextQuery : ContextLookupRoleOptions { + /** + * A builder for [AvailabilityZonesContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery, + ) : CdkObject(cdkObject), + AvailabilityZonesContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AvailabilityZonesContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery): + AvailabilityZonesContextQuery = CdkObjectWrappers.wrap(cdkObject) as? + AvailabilityZonesContextQuery ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AvailabilityZonesContextQuery): + software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.AvailabilityZonesContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsCloudFormationStackProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsCloudFormationStackProperties.kt new file mode 100644 index 0000000000..f41e04e36f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsCloudFormationStackProperties.kt @@ -0,0 +1,585 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Artifact properties for CloudFormation stacks. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AwsCloudFormationStackProperties awsCloudFormationStackProperties = + * AwsCloudFormationStackProperties.builder() + * .templateFile("templateFile") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") + * .lookupRole(BootstrapRole.builder() + * .arn("arn") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build()) + * .notificationArns(List.of("notificationArns")) + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .requiresBootstrapStackVersion(123) + * .stackName("stackName") + * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") + * .tags(Map.of( + * "tagsKey", "tags")) + * .terminationProtection(false) + * .validateOnSynth(false) + * .build(); + * ``` + */ +public interface AwsCloudFormationStackProperties { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed to deploy the stack. + * + * Default: - No role is assumed (current credentials are used) + */ + public fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * External ID to use when assuming role for cloudformation deployments. + * + * Default: - No external ID + */ + public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * SSM parameter where the bootstrap stack version number can be found. + * + * Only used if `requiresBootstrapStackVersion` is set. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + * + * Default: - Bootstrap stack version number looked up + */ + public fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * The role that is passed to CloudFormation to execute the change set. + * + * Default: - No role is passed (currently assumed role/credentials are used) + */ + public fun cloudFormationExecutionRoleArn(): String? = + unwrap(this).getCloudFormationExecutionRoleArn() + + /** + * The role to use to look up values from the target AWS account. + * + * Default: - No role is assumed (current credentials are used) + */ + public fun lookupRole(): BootstrapRole? = unwrap(this).getLookupRole()?.let(BootstrapRole::wrap) + + /** + * SNS Notification ARNs that should receive CloudFormation Stack Events. + * + * Default: - No notification arns + */ + public fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() + + /** + * Values for CloudFormation stack parameters that should be passed when the stack is deployed. + * + * Default: - No parameters + */ + public fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * Version of bootstrap stack required to deploy this stack. + * + * Default: - No bootstrap stack required + */ + public fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + + /** + * The name to use for the CloudFormation stack. + * + * Default: - name derived from artifact ID + */ + public fun stackName(): String? = unwrap(this).getStackName() + + /** + * If the stack template has already been included in the asset manifest, its asset URL. + * + * Default: - Not uploaded yet, upload just before deploying + */ + public fun stackTemplateAssetObjectUrl(): String? = unwrap(this).getStackTemplateAssetObjectUrl() + + /** + * Values for CloudFormation stack tags that should be passed when the stack is deployed. + * + * Default: - No tags + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A file relative to the assembly root which contains the CloudFormation template for this stack. + */ + public fun templateFile(): String + + /** + * Whether to enable termination protection for this stack. + * + * Default: false + */ + public fun terminationProtection(): Boolean? = unwrap(this).getTerminationProtection() + + /** + * Whether this stack should be validated by the CLI after synthesis. + * + * Default: - false + */ + public fun validateOnSynth(): Boolean? = unwrap(this).getValidateOnSynth() + + /** + * A builder for [AwsCloudFormationStackProperties] + */ + @CdkDslMarker + public interface Builder { + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param assumeRoleArn The role that needs to be assumed to deploy the stack. + */ + public fun assumeRoleArn(assumeRoleArn: String) + + /** + * @param assumeRoleExternalId External ID to use when assuming role for cloudformation + * deployments. + */ + public fun assumeRoleExternalId(assumeRoleExternalId: String) + + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * Only used if `requiresBootstrapStackVersion` is set. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) + + /** + * @param cloudFormationExecutionRoleArn The role that is passed to CloudFormation to execute + * the change set. + */ + public fun cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn: String) + + /** + * @param lookupRole The role to use to look up values from the target AWS account. + */ + public fun lookupRole(lookupRole: BootstrapRole) + + /** + * @param lookupRole The role to use to look up values from the target AWS account. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("076474af8edd3e233f2751f68690ce0e842b393acc8318964bd017282cd44242") + public fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit) + + /** + * @param notificationArns SNS Notification ARNs that should receive CloudFormation Stack + * Events. + */ + public fun notificationArns(notificationArns: List) + + /** + * @param notificationArns SNS Notification ARNs that should receive CloudFormation Stack + * Events. + */ + public fun notificationArns(vararg notificationArns: String) + + /** + * @param parameters Values for CloudFormation stack parameters that should be passed when the + * stack is deployed. + */ + public fun parameters(parameters: Map) + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) + + /** + * @param stackName The name to use for the CloudFormation stack. + */ + public fun stackName(stackName: String) + + /** + * @param stackTemplateAssetObjectUrl If the stack template has already been included in the + * asset manifest, its asset URL. + */ + public fun stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl: String) + + /** + * @param tags Values for CloudFormation stack tags that should be passed when the stack is + * deployed. + */ + public fun tags(tags: Map) + + /** + * @param templateFile A file relative to the assembly root which contains the CloudFormation + * template for this stack. + */ + public fun templateFile(templateFile: String) + + /** + * @param terminationProtection Whether to enable termination protection for this stack. + */ + public fun terminationProtection(terminationProtection: Boolean) + + /** + * @param validateOnSynth Whether this stack should be validated by the CLI after synthesis. + */ + public fun validateOnSynth(validateOnSynth: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties.Builder = + software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties.builder() + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param assumeRoleArn The role that needs to be assumed to deploy the stack. + */ + override fun assumeRoleArn(assumeRoleArn: String) { + cdkBuilder.assumeRoleArn(assumeRoleArn) + } + + /** + * @param assumeRoleExternalId External ID to use when assuming role for cloudformation + * deployments. + */ + override fun assumeRoleExternalId(assumeRoleExternalId: String) { + cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) + } + + /** + * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version + * number can be found. + * Only used if `requiresBootstrapStackVersion` is set. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + */ + override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { + cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) + } + + /** + * @param cloudFormationExecutionRoleArn The role that is passed to CloudFormation to execute + * the change set. + */ + override fun cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn: String) { + cdkBuilder.cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn) + } + + /** + * @param lookupRole The role to use to look up values from the target AWS account. + */ + override fun lookupRole(lookupRole: BootstrapRole) { + cdkBuilder.lookupRole(lookupRole.let(BootstrapRole.Companion::unwrap)) + } + + /** + * @param lookupRole The role to use to look up values from the target AWS account. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("076474af8edd3e233f2751f68690ce0e842b393acc8318964bd017282cd44242") + override fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit): Unit = + lookupRole(BootstrapRole(lookupRole)) + + /** + * @param notificationArns SNS Notification ARNs that should receive CloudFormation Stack + * Events. + */ + override fun notificationArns(notificationArns: List) { + cdkBuilder.notificationArns(notificationArns) + } + + /** + * @param notificationArns SNS Notification ARNs that should receive CloudFormation Stack + * Events. + */ + override fun notificationArns(vararg notificationArns: String): Unit = + notificationArns(notificationArns.toList()) + + /** + * @param parameters Values for CloudFormation stack parameters that should be passed when the + * stack is deployed. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters) + } + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this + * stack. + */ + override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { + cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) + } + + /** + * @param stackName The name to use for the CloudFormation stack. + */ + override fun stackName(stackName: String) { + cdkBuilder.stackName(stackName) + } + + /** + * @param stackTemplateAssetObjectUrl If the stack template has already been included in the + * asset manifest, its asset URL. + */ + override fun stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl: String) { + cdkBuilder.stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl) + } + + /** + * @param tags Values for CloudFormation stack tags that should be passed when the stack is + * deployed. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * @param templateFile A file relative to the assembly root which contains the CloudFormation + * template for this stack. + */ + override fun templateFile(templateFile: String) { + cdkBuilder.templateFile(templateFile) + } + + /** + * @param terminationProtection Whether to enable termination protection for this stack. + */ + override fun terminationProtection(terminationProtection: Boolean) { + cdkBuilder.terminationProtection(terminationProtection) + } + + /** + * @param validateOnSynth Whether this stack should be validated by the CLI after synthesis. + */ + override fun validateOnSynth(validateOnSynth: Boolean) { + cdkBuilder.validateOnSynth(validateOnSynth) + } + + public fun build(): + software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties, + ) : CdkObject(cdkObject), + AwsCloudFormationStackProperties { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed to deploy the stack. + * + * Default: - No role is assumed (current credentials are used) + */ + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * External ID to use when assuming role for cloudformation deployments. + * + * Default: - No external ID + */ + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * SSM parameter where the bootstrap stack version number can be found. + * + * Only used if `requiresBootstrapStackVersion` is set. + * + * * If this value is not set, the bootstrap stack name must be known at + * deployment time so the stack version can be looked up from the stack + * outputs. + * * If this value is set, the bootstrap stack can have any name because + * we won't need to look it up. + * + * Default: - Bootstrap stack version number looked up + */ + override fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * The role that is passed to CloudFormation to execute the change set. + * + * Default: - No role is passed (currently assumed role/credentials are used) + */ + override fun cloudFormationExecutionRoleArn(): String? = + unwrap(this).getCloudFormationExecutionRoleArn() + + /** + * The role to use to look up values from the target AWS account. + * + * Default: - No role is assumed (current credentials are used) + */ + override fun lookupRole(): BootstrapRole? = + unwrap(this).getLookupRole()?.let(BootstrapRole::wrap) + + /** + * SNS Notification ARNs that should receive CloudFormation Stack Events. + * + * Default: - No notification arns + */ + override fun notificationArns(): List = unwrap(this).getNotificationArns() ?: + emptyList() + + /** + * Values for CloudFormation stack parameters that should be passed when the stack is deployed. + * + * Default: - No parameters + */ + override fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * Version of bootstrap stack required to deploy this stack. + * + * Default: - No bootstrap stack required + */ + override fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + + /** + * The name to use for the CloudFormation stack. + * + * Default: - name derived from artifact ID + */ + override fun stackName(): String? = unwrap(this).getStackName() + + /** + * If the stack template has already been included in the asset manifest, its asset URL. + * + * Default: - Not uploaded yet, upload just before deploying + */ + override fun stackTemplateAssetObjectUrl(): String? = + unwrap(this).getStackTemplateAssetObjectUrl() + + /** + * Values for CloudFormation stack tags that should be passed when the stack is deployed. + * + * Default: - No tags + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A file relative to the assembly root which contains the CloudFormation template for this + * stack. + */ + override fun templateFile(): String = unwrap(this).getTemplateFile() + + /** + * Whether to enable termination protection for this stack. + * + * Default: false + */ + override fun terminationProtection(): Boolean? = unwrap(this).getTerminationProtection() + + /** + * Whether this stack should be validated by the CLI after synthesis. + * + * Default: - false + */ + override fun validateOnSynth(): Boolean? = unwrap(this).getValidateOnSynth() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AwsCloudFormationStackProperties { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties): + AwsCloudFormationStackProperties = CdkObjectWrappers.wrap(cdkObject) as? + AwsCloudFormationStackProperties ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AwsCloudFormationStackProperties): + software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsDestination.kt new file mode 100644 index 0000000000..0fa64a28e3 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/AwsDestination.kt @@ -0,0 +1,187 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Destination for assets that need to be uploaded to AWS. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * AwsDestination awsDestination = AwsDestination.builder() + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build(); + * ``` + */ +public interface AwsDestination { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed while publishing this asset. + * + * Default: - No role will be assumed + */ + public fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * The region where this asset will need to be published. + * + * Default: - Current region + */ + public fun region(): String? = unwrap(this).getRegion() + + /** + * A builder for [AwsDestination] + */ + @CdkDslMarker + public interface Builder { + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + public fun assumeRoleArn(assumeRoleArn: String) + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun assumeRoleExternalId(assumeRoleExternalId: String) + + /** + * @param region The region where this asset will need to be published. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.AwsDestination.Builder = + software.amazon.awscdk.cloud_assembly_schema.AwsDestination.builder() + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + override fun assumeRoleArn(assumeRoleArn: String) { + cdkBuilder.assumeRoleArn(assumeRoleArn) + } + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun assumeRoleExternalId(assumeRoleExternalId: String) { + cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) + } + + /** + * @param region The region where this asset will need to be published. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.AwsDestination = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.AwsDestination, + ) : CdkObject(cdkObject), + AwsDestination { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed while publishing this asset. + * + * Default: - No role will be assumed + */ + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * The region where this asset will need to be published. + * + * Default: - Current region + */ + override fun region(): String? = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AwsDestination { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.AwsDestination): + AwsDestination = CdkObjectWrappers.wrap(cdkObject) as? AwsDestination ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AwsDestination): + software.amazon.awscdk.cloud_assembly_schema.AwsDestination = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.AwsDestination + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/BootstrapRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/BootstrapRole.kt new file mode 100644 index 0000000000..79a8c5ca5b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/BootstrapRole.kt @@ -0,0 +1,214 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Information needed to access an IAM role created as part of the bootstrap process. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * BootstrapRole bootstrapRole = BootstrapRole.builder() + * .arn("arn") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleExternalId("assumeRoleExternalId") + * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") + * .requiresBootstrapStackVersion(123) + * .build(); + * ``` + */ +public interface BootstrapRole { + /** + * The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. + */ + public fun arn(): String + + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `arn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * External ID to use when assuming the bootstrap role. + * + * Default: - No external ID + */ + public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * Name of SSM parameter with bootstrap stack version. + * + * Default: - Discover SSM parameter by reading stack + */ + public fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * Version of bootstrap stack required to use this role. + * + * Default: - No bootstrap stack required + */ + public fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + + /** + * A builder for [BootstrapRole] + */ + @CdkDslMarker + public interface Builder { + /** + * @param arn The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. + */ + public fun arn(arn: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `arn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param assumeRoleExternalId External ID to use when assuming the bootstrap role. + */ + public fun assumeRoleExternalId(assumeRoleExternalId: String) + + /** + * @param bootstrapStackVersionSsmParameter Name of SSM parameter with bootstrap stack version. + */ + public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to use this role. + */ + public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.BootstrapRole.Builder = + software.amazon.awscdk.cloud_assembly_schema.BootstrapRole.builder() + + /** + * @param arn The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. + */ + override fun arn(arn: String) { + cdkBuilder.arn(arn) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `arn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param assumeRoleExternalId External ID to use when assuming the bootstrap role. + */ + override fun assumeRoleExternalId(assumeRoleExternalId: String) { + cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) + } + + /** + * @param bootstrapStackVersionSsmParameter Name of SSM parameter with bootstrap stack version. + */ + override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { + cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) + } + + /** + * @param requiresBootstrapStackVersion Version of bootstrap stack required to use this role. + */ + override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { + cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.BootstrapRole = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.BootstrapRole, + ) : CdkObject(cdkObject), + BootstrapRole { + /** + * The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. + */ + override fun arn(): String = unwrap(this).getArn() + + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `arn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * External ID to use when assuming the bootstrap role. + * + * Default: - No external ID + */ + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * Name of SSM parameter with bootstrap stack version. + * + * Default: - Discover SSM parameter by reading stack + */ + override fun bootstrapStackVersionSsmParameter(): String? = + unwrap(this).getBootstrapStackVersionSsmParameter() + + /** + * Version of bootstrap stack required to use this role. + * + * Default: - No bootstrap stack required + */ + override fun requiresBootstrapStackVersion(): Number? = + unwrap(this).getRequiresBootstrapStackVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): BootstrapRole { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.BootstrapRole): + BootstrapRole = CdkObjectWrappers.wrap(cdkObject) as? BootstrapRole ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: BootstrapRole): + software.amazon.awscdk.cloud_assembly_schema.BootstrapRole = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.BootstrapRole + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommand.kt new file mode 100644 index 0000000000..0cfb2b1779 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommand.kt @@ -0,0 +1,150 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit + +/** + * Represents a cdk command i.e. `synth`, `deploy`, & `destroy`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * CdkCommand cdkCommand = CdkCommand.builder() + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build(); + * ``` + */ +public interface CdkCommand { + /** + * Whether or not to run this command as part of the workflow This can be used if you only want to + * test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in order + * to limit the test to synthesis. + * + * Default: true + */ + public fun enabled(): Boolean? = unwrap(this).getEnabled() + + /** + * If the runner should expect this command to fail. + * + * Default: false + */ + public fun expectError(): Boolean? = unwrap(this).getExpectError() + + /** + * This can be used in combination with `expectedError` to validate that a specific message is + * returned. + * + * Default: - do not validate message + */ + public fun expectedMessage(): String? = unwrap(this).getExpectedMessage() + + /** + * A builder for [CdkCommand] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + public fun enabled(enabled: Boolean) + + /** + * @param expectError If the runner should expect this command to fail. + */ + public fun expectError(expectError: Boolean) + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + public fun expectedMessage(expectedMessage: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.CdkCommand.Builder = + software.amazon.awscdk.cloud_assembly_schema.CdkCommand.builder() + + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param expectError If the runner should expect this command to fail. + */ + override fun expectError(expectError: Boolean) { + cdkBuilder.expectError(expectError) + } + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + override fun expectedMessage(expectedMessage: String) { + cdkBuilder.expectedMessage(expectedMessage) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.CdkCommand = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.CdkCommand, + ) : CdkObject(cdkObject), + CdkCommand { + /** + * Whether or not to run this command as part of the workflow This can be used if you only want + * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in + * order to limit the test to synthesis. + * + * Default: true + */ + override fun enabled(): Boolean? = unwrap(this).getEnabled() + + /** + * If the runner should expect this command to fail. + * + * Default: false + */ + override fun expectError(): Boolean? = unwrap(this).getExpectError() + + /** + * This can be used in combination with `expectedError` to validate that a specific message is + * returned. + * + * Default: - do not validate message + */ + override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CdkCommand { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.CdkCommand): + CdkCommand = CdkObjectWrappers.wrap(cdkObject) as? CdkCommand ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CdkCommand): + software.amazon.awscdk.cloud_assembly_schema.CdkCommand = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.cloud_assembly_schema.CdkCommand + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommands.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommands.kt new file mode 100644 index 0000000000..cfcae50607 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/CdkCommands.kt @@ -0,0 +1,218 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Options for specific cdk commands that are run as part of the integration test workflow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * CdkCommands cdkCommands = CdkCommands.builder() + * .deploy(DeployCommand.builder() + * .args(DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .destroy(DestroyCommand.builder() + * .args(DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .build(); + * ``` + */ +public interface CdkCommands { + /** + * Options to for the cdk deploy command. + * + * Default: - default deploy options + */ + public fun deploy(): DeployCommand? = unwrap(this).getDeploy()?.let(DeployCommand::wrap) + + /** + * Options to for the cdk destroy command. + * + * Default: - default destroy options + */ + public fun destroy(): DestroyCommand? = unwrap(this).getDestroy()?.let(DestroyCommand::wrap) + + /** + * A builder for [CdkCommands] + */ + @CdkDslMarker + public interface Builder { + /** + * @param deploy Options to for the cdk deploy command. + */ + public fun deploy(deploy: DeployCommand) + + /** + * @param deploy Options to for the cdk deploy command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("180ae3907a1f08d2c06f966bcf9a6c2a6e7b14b3e8467689291e3db7bc337f63") + public fun deploy(deploy: DeployCommand.Builder.() -> Unit) + + /** + * @param destroy Options to for the cdk destroy command. + */ + public fun destroy(destroy: DestroyCommand) + + /** + * @param destroy Options to for the cdk destroy command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7444a05042e855d965d34dd63086370d1edd55f0c874ca797c775b4f657b9216") + public fun destroy(destroy: DestroyCommand.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.CdkCommands.Builder = + software.amazon.awscdk.cloud_assembly_schema.CdkCommands.builder() + + /** + * @param deploy Options to for the cdk deploy command. + */ + override fun deploy(deploy: DeployCommand) { + cdkBuilder.deploy(deploy.let(DeployCommand.Companion::unwrap)) + } + + /** + * @param deploy Options to for the cdk deploy command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("180ae3907a1f08d2c06f966bcf9a6c2a6e7b14b3e8467689291e3db7bc337f63") + override fun deploy(deploy: DeployCommand.Builder.() -> Unit): Unit = + deploy(DeployCommand(deploy)) + + /** + * @param destroy Options to for the cdk destroy command. + */ + override fun destroy(destroy: DestroyCommand) { + cdkBuilder.destroy(destroy.let(DestroyCommand.Companion::unwrap)) + } + + /** + * @param destroy Options to for the cdk destroy command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7444a05042e855d965d34dd63086370d1edd55f0c874ca797c775b4f657b9216") + override fun destroy(destroy: DestroyCommand.Builder.() -> Unit): Unit = + destroy(DestroyCommand(destroy)) + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.CdkCommands = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.CdkCommands, + ) : CdkObject(cdkObject), + CdkCommands { + /** + * Options to for the cdk deploy command. + * + * Default: - default deploy options + */ + override fun deploy(): DeployCommand? = unwrap(this).getDeploy()?.let(DeployCommand::wrap) + + /** + * Options to for the cdk destroy command. + * + * Default: - default destroy options + */ + override fun destroy(): DestroyCommand? = unwrap(this).getDestroy()?.let(DestroyCommand::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CdkCommands { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.CdkCommands): + CdkCommands = CdkObjectWrappers.wrap(cdkObject) as? CdkCommands ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CdkCommands): + software.amazon.awscdk.cloud_assembly_schema.CdkCommands = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.cloud_assembly_schema.CdkCommands + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetCacheOption.kt new file mode 100644 index 0000000000..76fd182179 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetCacheOption.kt @@ -0,0 +1,161 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Options for configuring the Docker cache backend. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * ContainerImageAssetCacheOption containerImageAssetCacheOption = + * ContainerImageAssetCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build(); + * ``` + */ +public interface ContainerImageAssetCacheOption { + /** + * Any parameters to pass into the docker cache backend configuration. + * + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + * + * Default: {} No options provided + * + * Example: + * + * ``` + * String branch; + * Map<String, Object> params = Map.of( + * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), + * "mode", "max"); + * ``` + */ + public fun params(): Map = unwrap(this).getParams() ?: emptyMap() + + /** + * The type of cache to use. + * + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + * + * Default: - unspecified + * + * Example: + * + * ``` + * "registry"; + * ``` + */ + public fun type(): String + + /** + * A builder for [ContainerImageAssetCacheOption] + */ + @CdkDslMarker + public interface Builder { + /** + * @param params Any parameters to pass into the docker cache backend configuration. + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + */ + public fun params(params: Map) + + /** + * @param type The type of cache to use. + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption.Builder = + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption.builder() + + /** + * @param params Any parameters to pass into the docker cache backend configuration. + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + */ + override fun params(params: Map) { + cdkBuilder.params(params) + } + + /** + * @param type The type of cache to use. + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption, + ) : CdkObject(cdkObject), + ContainerImageAssetCacheOption { + /** + * Any parameters to pass into the docker cache backend configuration. + * + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + * + * Default: {} No options provided + * + * Example: + * + * ``` + * String branch; + * Map<String, Object> params = Map.of( + * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), + * "mode", "max"); + * ``` + */ + override fun params(): Map = unwrap(this).getParams() ?: emptyMap() + + /** + * The type of cache to use. + * + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + * + * Default: - unspecified + * + * Example: + * + * ``` + * "registry"; + * ``` + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ContainerImageAssetCacheOption { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption): + ContainerImageAssetCacheOption = CdkObjectWrappers.wrap(cdkObject) as? + ContainerImageAssetCacheOption ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContainerImageAssetCacheOption): + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetCacheOption + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetMetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetMetadataEntry.kt new file mode 100644 index 0000000000..18fd336482 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContainerImageAssetMetadataEntry.kt @@ -0,0 +1,579 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Metadata Entry spec for container images. + * + * Example: + * + * ``` + * Map<String, String> entry = Map.of( + * "packaging", "container-image", + * "repositoryName", "repository-name", + * "imageTag", "tag"); + * ``` + */ +public interface ContainerImageAssetMetadataEntry { + /** + * Build args to pass to the `docker build` command. + * + * Default: no build args are passed + */ + public fun buildArgs(): Map = unwrap(this).getBuildArgs() ?: emptyMap() + + /** + * Build secrets to pass to the `docker build` command. + * + * Default: no build secrets are passed + */ + public fun buildSecrets(): Map = unwrap(this).getBuildSecrets() ?: emptyMap() + + /** + * SSH agent socket or keys to pass to the `docker build` command. + * + * Default: no ssh arg is passed + */ + public fun buildSsh(): String? = unwrap(this).getBuildSsh() + + /** + * Disable the cache and pass `--no-cache` to the `docker build` command. + * + * Default: - cache is used + */ + public fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() + + /** + * Cache from options to pass to the `docker build` command. + * + * Default: - no cache from options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + public fun cacheFrom(): List = + unwrap(this).getCacheFrom()?.map(ContainerImageAssetCacheOption::wrap) ?: emptyList() + + /** + * Cache to options to pass to the `docker build` command. + * + * Default: - no cache to options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + public fun cacheTo(): ContainerImageAssetCacheOption? = + unwrap(this).getCacheTo()?.let(ContainerImageAssetCacheOption::wrap) + + /** + * Path to the Dockerfile (relative to the directory). + * + * Default: - no file is passed + */ + public fun `file`(): String? = unwrap(this).getFile() + + /** + * Logical identifier for the asset. + */ + public fun id(): String + + /** + * The docker image tag to use for tagging pushed images. + * + * This field is + * required if `imageParameterName` is ommited (otherwise, the app won't be + * able to find the image). + * + * Default: - this parameter is REQUIRED after 1.21.0 + */ + public fun imageTag(): String? = unwrap(this).getImageTag() + + /** + * Networking mode for the RUN commands during build. + * + * Default: - no networking mode specified + */ + public fun networkMode(): String? = unwrap(this).getNetworkMode() + + /** + * Outputs to pass to the `docker build` command. + * + * Default: - no outputs are passed to the build command (default outputs are used) + * + * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) + */ + public fun outputs(): List = unwrap(this).getOutputs() ?: emptyList() + + /** + * Type of asset. + */ + public fun packaging(): String + + /** + * Path on disk to the asset. + */ + public fun path(): String + + /** + * Platform to build for. + * + * *Requires Docker Buildx*. + * + * Default: - current machine platform + */ + public fun platform(): String? = unwrap(this).getPlatform() + + /** + * ECR repository name, if omitted a default name based on the asset's ID is used instead. + * + * Specify this property if you need to statically address the + * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, + * without the registry and the tag parts. + * + * Default: - this parameter is REQUIRED after 1.21.0 + */ + public fun repositoryName(): String? = unwrap(this).getRepositoryName() + + /** + * The hash of the asset source. + */ + public fun sourceHash(): String + + /** + * Docker target to build to. + * + * Default: no build target + */ + public fun target(): String? = unwrap(this).getTarget() + + /** + * A builder for [ContainerImageAssetMetadataEntry] + */ + @CdkDslMarker + public interface Builder { + /** + * @param buildArgs Build args to pass to the `docker build` command. + */ + public fun buildArgs(buildArgs: Map) + + /** + * @param buildSecrets Build secrets to pass to the `docker build` command. + */ + public fun buildSecrets(buildSecrets: Map) + + /** + * @param buildSsh SSH agent socket or keys to pass to the `docker build` command. + */ + public fun buildSsh(buildSsh: String) + + /** + * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. + */ + public fun cacheDisabled(cacheDisabled: Boolean) + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + public fun cacheFrom(cacheFrom: List) + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + public fun cacheFrom(vararg cacheFrom: ContainerImageAssetCacheOption) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + public fun cacheTo(cacheTo: ContainerImageAssetCacheOption) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1f0356b6d36a0114955e359f408de9ccef111d352b712da3df2a9a71a7fdacf9") + public fun cacheTo(cacheTo: ContainerImageAssetCacheOption.Builder.() -> Unit) + + /** + * @param file Path to the Dockerfile (relative to the directory). + */ + public fun `file`(`file`: String) + + /** + * @param id Logical identifier for the asset. + */ + public fun id(id: String) + + /** + * @param imageTag The docker image tag to use for tagging pushed images. + * This field is + * required if `imageParameterName` is ommited (otherwise, the app won't be + * able to find the image). + */ + public fun imageTag(imageTag: String) + + /** + * @param networkMode Networking mode for the RUN commands during build. + */ + public fun networkMode(networkMode: String) + + /** + * @param outputs Outputs to pass to the `docker build` command. + */ + public fun outputs(outputs: List) + + /** + * @param outputs Outputs to pass to the `docker build` command. + */ + public fun outputs(vararg outputs: String) + + /** + * @param packaging Type of asset. + */ + public fun packaging(packaging: String) + + /** + * @param path Path on disk to the asset. + */ + public fun path(path: String) + + /** + * @param platform Platform to build for. + * *Requires Docker Buildx*. + */ + public fun platform(platform: String) + + /** + * @param repositoryName ECR repository name, if omitted a default name based on the asset's ID + * is used instead. + * Specify this property if you need to statically address the + * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, + * without the registry and the tag parts. + */ + public fun repositoryName(repositoryName: String) + + /** + * @param sourceHash The hash of the asset source. + */ + public fun sourceHash(sourceHash: String) + + /** + * @param target Docker target to build to. + */ + public fun target(target: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry.Builder = + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry.builder() + + /** + * @param buildArgs Build args to pass to the `docker build` command. + */ + override fun buildArgs(buildArgs: Map) { + cdkBuilder.buildArgs(buildArgs) + } + + /** + * @param buildSecrets Build secrets to pass to the `docker build` command. + */ + override fun buildSecrets(buildSecrets: Map) { + cdkBuilder.buildSecrets(buildSecrets) + } + + /** + * @param buildSsh SSH agent socket or keys to pass to the `docker build` command. + */ + override fun buildSsh(buildSsh: String) { + cdkBuilder.buildSsh(buildSsh) + } + + /** + * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. + */ + override fun cacheDisabled(cacheDisabled: Boolean) { + cdkBuilder.cacheDisabled(cacheDisabled) + } + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + override fun cacheFrom(cacheFrom: List) { + cdkBuilder.cacheFrom(cacheFrom.map(ContainerImageAssetCacheOption.Companion::unwrap)) + } + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + override fun cacheFrom(vararg cacheFrom: ContainerImageAssetCacheOption): Unit = + cacheFrom(cacheFrom.toList()) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + override fun cacheTo(cacheTo: ContainerImageAssetCacheOption) { + cdkBuilder.cacheTo(cacheTo.let(ContainerImageAssetCacheOption.Companion::unwrap)) + } + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1f0356b6d36a0114955e359f408de9ccef111d352b712da3df2a9a71a7fdacf9") + override fun cacheTo(cacheTo: ContainerImageAssetCacheOption.Builder.() -> Unit): Unit = + cacheTo(ContainerImageAssetCacheOption(cacheTo)) + + /** + * @param file Path to the Dockerfile (relative to the directory). + */ + override fun `file`(`file`: String) { + cdkBuilder.`file`(`file`) + } + + /** + * @param id Logical identifier for the asset. + */ + override fun id(id: String) { + cdkBuilder.id(id) + } + + /** + * @param imageTag The docker image tag to use for tagging pushed images. + * This field is + * required if `imageParameterName` is ommited (otherwise, the app won't be + * able to find the image). + */ + override fun imageTag(imageTag: String) { + cdkBuilder.imageTag(imageTag) + } + + /** + * @param networkMode Networking mode for the RUN commands during build. + */ + override fun networkMode(networkMode: String) { + cdkBuilder.networkMode(networkMode) + } + + /** + * @param outputs Outputs to pass to the `docker build` command. + */ + override fun outputs(outputs: List) { + cdkBuilder.outputs(outputs) + } + + /** + * @param outputs Outputs to pass to the `docker build` command. + */ + override fun outputs(vararg outputs: String): Unit = outputs(outputs.toList()) + + /** + * @param packaging Type of asset. + */ + override fun packaging(packaging: String) { + cdkBuilder.packaging(packaging) + } + + /** + * @param path Path on disk to the asset. + */ + override fun path(path: String) { + cdkBuilder.path(path) + } + + /** + * @param platform Platform to build for. + * *Requires Docker Buildx*. + */ + override fun platform(platform: String) { + cdkBuilder.platform(platform) + } + + /** + * @param repositoryName ECR repository name, if omitted a default name based on the asset's ID + * is used instead. + * Specify this property if you need to statically address the + * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, + * without the registry and the tag parts. + */ + override fun repositoryName(repositoryName: String) { + cdkBuilder.repositoryName(repositoryName) + } + + /** + * @param sourceHash The hash of the asset source. + */ + override fun sourceHash(sourceHash: String) { + cdkBuilder.sourceHash(sourceHash) + } + + /** + * @param target Docker target to build to. + */ + override fun target(target: String) { + cdkBuilder.target(target) + } + + public fun build(): + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry, + ) : CdkObject(cdkObject), + ContainerImageAssetMetadataEntry { + /** + * Build args to pass to the `docker build` command. + * + * Default: no build args are passed + */ + override fun buildArgs(): Map = unwrap(this).getBuildArgs() ?: emptyMap() + + /** + * Build secrets to pass to the `docker build` command. + * + * Default: no build secrets are passed + */ + override fun buildSecrets(): Map = unwrap(this).getBuildSecrets() ?: emptyMap() + + /** + * SSH agent socket or keys to pass to the `docker build` command. + * + * Default: no ssh arg is passed + */ + override fun buildSsh(): String? = unwrap(this).getBuildSsh() + + /** + * Disable the cache and pass `--no-cache` to the `docker build` command. + * + * Default: - cache is used + */ + override fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() + + /** + * Cache from options to pass to the `docker build` command. + * + * Default: - no cache from options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + override fun cacheFrom(): List = + unwrap(this).getCacheFrom()?.map(ContainerImageAssetCacheOption::wrap) ?: emptyList() + + /** + * Cache to options to pass to the `docker build` command. + * + * Default: - no cache to options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + override fun cacheTo(): ContainerImageAssetCacheOption? = + unwrap(this).getCacheTo()?.let(ContainerImageAssetCacheOption::wrap) + + /** + * Path to the Dockerfile (relative to the directory). + * + * Default: - no file is passed + */ + override fun `file`(): String? = unwrap(this).getFile() + + /** + * Logical identifier for the asset. + */ + override fun id(): String = unwrap(this).getId() + + /** + * The docker image tag to use for tagging pushed images. + * + * This field is + * required if `imageParameterName` is ommited (otherwise, the app won't be + * able to find the image). + * + * Default: - this parameter is REQUIRED after 1.21.0 + */ + override fun imageTag(): String? = unwrap(this).getImageTag() + + /** + * Networking mode for the RUN commands during build. + * + * Default: - no networking mode specified + */ + override fun networkMode(): String? = unwrap(this).getNetworkMode() + + /** + * Outputs to pass to the `docker build` command. + * + * Default: - no outputs are passed to the build command (default outputs are used) + * + * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) + */ + override fun outputs(): List = unwrap(this).getOutputs() ?: emptyList() + + /** + * Type of asset. + */ + override fun packaging(): String = unwrap(this).getPackaging() + + /** + * Path on disk to the asset. + */ + override fun path(): String = unwrap(this).getPath() + + /** + * Platform to build for. + * + * *Requires Docker Buildx*. + * + * Default: - current machine platform + */ + override fun platform(): String? = unwrap(this).getPlatform() + + /** + * ECR repository name, if omitted a default name based on the asset's ID is used instead. + * + * Specify this property if you need to statically address the + * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, + * without the registry and the tag parts. + * + * Default: - this parameter is REQUIRED after 1.21.0 + */ + override fun repositoryName(): String? = unwrap(this).getRepositoryName() + + /** + * The hash of the asset source. + */ + override fun sourceHash(): String = unwrap(this).getSourceHash() + + /** + * Docker target to build to. + * + * Default: no build target + */ + override fun target(): String? = unwrap(this).getTarget() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ContainerImageAssetMetadataEntry { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry): + ContainerImageAssetMetadataEntry = CdkObjectWrappers.wrap(cdkObject) as? + ContainerImageAssetMetadataEntry ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContainerImageAssetMetadataEntry): + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextLookupRoleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextLookupRoleOptions.kt new file mode 100644 index 0000000000..cff4117796 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextLookupRoleOptions.kt @@ -0,0 +1,213 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Options for context lookup roles. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * ContextLookupRoleOptions contextLookupRoleOptions = ContextLookupRoleOptions.builder() + * .account("account") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface ContextLookupRoleOptions { + /** + * Query account. + */ + public fun account(): String + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + public fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + public fun region(): String + + /** + * A builder for [ContextLookupRoleOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions, + ) : CdkObject(cdkObject), + ContextLookupRoleOptions { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ContextLookupRoleOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions): + ContextLookupRoleOptions = CdkObjectWrappers.wrap(cdkObject) as? ContextLookupRoleOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContextLookupRoleOptions): + software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.ContextLookupRoleOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextProvider.kt new file mode 100644 index 0000000000..1041b72978 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/ContextProvider.kt @@ -0,0 +1,50 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class ContextProvider( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContextProvider, +) { + AMI_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.AMI_PROVIDER), + AVAILABILITY_ZONE_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.AVAILABILITY_ZONE_PROVIDER), + HOSTED_ZONE_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.HOSTED_ZONE_PROVIDER), + SSM_PARAMETER_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.SSM_PARAMETER_PROVIDER), + VPC_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.VPC_PROVIDER), + ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER), + LOAD_BALANCER_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.LOAD_BALANCER_PROVIDER), + LOAD_BALANCER_LISTENER_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.LOAD_BALANCER_LISTENER_PROVIDER), + SECURITY_GROUP_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.SECURITY_GROUP_PROVIDER), + KEY_PROVIDER(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.KEY_PROVIDER), + PLUGIN(software.amazon.awscdk.cloud_assembly_schema.ContextProvider.PLUGIN), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.ContextProvider): + ContextProvider = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.AMI_PROVIDER -> + ContextProvider.AMI_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.AVAILABILITY_ZONE_PROVIDER -> + ContextProvider.AVAILABILITY_ZONE_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.HOSTED_ZONE_PROVIDER -> + ContextProvider.HOSTED_ZONE_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.SSM_PARAMETER_PROVIDER -> + ContextProvider.SSM_PARAMETER_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.VPC_PROVIDER -> + ContextProvider.VPC_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER -> + ContextProvider.ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.LOAD_BALANCER_PROVIDER -> + ContextProvider.LOAD_BALANCER_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.LOAD_BALANCER_LISTENER_PROVIDER -> + ContextProvider.LOAD_BALANCER_LISTENER_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.SECURITY_GROUP_PROVIDER -> + ContextProvider.SECURITY_GROUP_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.KEY_PROVIDER -> + ContextProvider.KEY_PROVIDER + software.amazon.awscdk.cloud_assembly_schema.ContextProvider.PLUGIN -> ContextProvider.PLUGIN + } + + internal fun unwrap(wrapped: ContextProvider): + software.amazon.awscdk.cloud_assembly_schema.ContextProvider = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DefaultCdkOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DefaultCdkOptions.kt new file mode 100644 index 0000000000..d874d72f61 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DefaultCdkOptions.kt @@ -0,0 +1,741 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Default CDK CLI options that apply to all commands. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DefaultCdkOptions defaultCdkOptions = DefaultCdkOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build(); + * ``` + */ +public interface DefaultCdkOptions { + /** + * Deploy all stacks. + * + * Requried if `stacks` is not set + * + * Default: - false + */ + public fun all(): Boolean? = unwrap(this).getAll() + + /** + * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or + * "cdk.out". + * + * Default: - read from cdk.json + */ + public fun app(): String? = unwrap(this).getApp() + + /** + * Include "aws:asset:*" CloudFormation metadata for resources that use assets. + * + * Default: true + */ + public fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() + + /** + * Path to CA certificate to use when validating HTTPS requests. + * + * Default: - read from AWS_CA_BUNDLE environment variable + */ + public fun caBundlePath(): String? = unwrap(this).getCaBundlePath() + + /** + * Show colors and other style from console output. + * + * Default: true + */ + public fun color(): Boolean? = unwrap(this).getColor() + + /** + * Additional context. + * + * Default: - no additional context + */ + public fun context(): Map = unwrap(this).getContext() ?: emptyMap() + + /** + * enable emission of additional debugging information, such as creation stack traces of tokens. + * + * Default: false + */ + public fun debug(): Boolean? = unwrap(this).getDebug() + + /** + * Force trying to fetch EC2 instance credentials. + * + * Default: - guess EC2 instance status + */ + public fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() + + /** + * Ignores synthesis errors, which will likely produce an invalid output. + * + * Default: false + */ + public fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() + + /** + * Use JSON output instead of YAML when templates are printed to STDOUT. + * + * Default: false + */ + public fun json(): Boolean? = unwrap(this).getJson() + + /** + * Perform context lookups. + * + * Synthesis fails if this is disabled and context lookups need + * to be performed + * + * Default: true + */ + public fun lookups(): Boolean? = unwrap(this).getLookups() + + /** + * Show relevant notices. + * + * Default: true + */ + public fun notices(): Boolean? = unwrap(this).getNotices() + + /** + * Emits the synthesized cloud assembly into a directory. + * + * Default: cdk.out + */ + public fun output(): String? = unwrap(this).getOutput() + + /** + * Include "aws:cdk:path" CloudFormation metadata for each resource. + * + * Default: true + */ + public fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() + + /** + * Use the indicated AWS profile as the default environment. + * + * Default: - no profile is used + */ + public fun profile(): String? = unwrap(this).getProfile() + + /** + * Use the indicated proxy. + * + * Will read from + * HTTPS_PROXY environment if specified + * + * Default: - no proxy + */ + public fun proxy(): String? = unwrap(this).getProxy() + + /** + * Role to pass to CloudFormation for deployment. + * + * Default: - use the bootstrap cfn-exec role + */ + public fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * List of stacks to deploy. + * + * Requried if `all` is not set + * + * Default: - [] + */ + public fun stacks(): List = unwrap(this).getStacks() ?: emptyList() + + /** + * Copy assets to the output directory. + * + * Needed for local debugging the source files with SAM CLI + * + * Default: false + */ + public fun staging(): Boolean? = unwrap(this).getStaging() + + /** + * Do not construct stacks with warnings. + * + * Default: false + */ + public fun strict(): Boolean? = unwrap(this).getStrict() + + /** + * Print trace for stack warnings. + * + * Default: false + */ + public fun trace(): Boolean? = unwrap(this).getTrace() + + /** + * show debug logs. + * + * Default: false + */ + public fun verbose(): Boolean? = unwrap(this).getVerbose() + + /** + * Include "AWS::CDK::Metadata" resource in synthesized templates. + * + * Default: true + */ + public fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() + + /** + * A builder for [DefaultCdkOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + public fun all(all: Boolean) + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + public fun app(app: String) + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + public fun assetMetadata(assetMetadata: Boolean) + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + public fun caBundlePath(caBundlePath: String) + + /** + * @param color Show colors and other style from console output. + */ + public fun color(color: Boolean) + + /** + * @param context Additional context. + */ + public fun context(context: Map) + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + public fun debug(debug: Boolean) + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + public fun ec2Creds(ec2Creds: Boolean) + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + public fun ignoreErrors(ignoreErrors: Boolean) + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + public fun json(json: Boolean) + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + public fun lookups(lookups: Boolean) + + /** + * @param notices Show relevant notices. + */ + public fun notices(notices: Boolean) + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + public fun output(output: String) + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + public fun pathMetadata(pathMetadata: Boolean) + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + public fun profile(profile: String) + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + public fun proxy(proxy: String) + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + public fun roleArn(roleArn: String) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(stacks: List) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(vararg stacks: String) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + public fun staging(staging: Boolean) + + /** + * @param strict Do not construct stacks with warnings. + */ + public fun strict(strict: Boolean) + + /** + * @param trace Print trace for stack warnings. + */ + public fun trace(trace: Boolean) + + /** + * @param verbose show debug logs. + */ + public fun verbose(verbose: Boolean) + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + public fun versionReporting(versionReporting: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions.builder() + + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + override fun all(all: Boolean) { + cdkBuilder.all(all) + } + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + override fun app(app: String) { + cdkBuilder.app(app) + } + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + override fun assetMetadata(assetMetadata: Boolean) { + cdkBuilder.assetMetadata(assetMetadata) + } + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + override fun caBundlePath(caBundlePath: String) { + cdkBuilder.caBundlePath(caBundlePath) + } + + /** + * @param color Show colors and other style from console output. + */ + override fun color(color: Boolean) { + cdkBuilder.color(color) + } + + /** + * @param context Additional context. + */ + override fun context(context: Map) { + cdkBuilder.context(context) + } + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + override fun debug(debug: Boolean) { + cdkBuilder.debug(debug) + } + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + override fun ec2Creds(ec2Creds: Boolean) { + cdkBuilder.ec2Creds(ec2Creds) + } + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + override fun ignoreErrors(ignoreErrors: Boolean) { + cdkBuilder.ignoreErrors(ignoreErrors) + } + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + override fun json(json: Boolean) { + cdkBuilder.json(json) + } + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + override fun lookups(lookups: Boolean) { + cdkBuilder.lookups(lookups) + } + + /** + * @param notices Show relevant notices. + */ + override fun notices(notices: Boolean) { + cdkBuilder.notices(notices) + } + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + override fun output(output: String) { + cdkBuilder.output(output) + } + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + override fun pathMetadata(pathMetadata: Boolean) { + cdkBuilder.pathMetadata(pathMetadata) + } + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + override fun profile(profile: String) { + cdkBuilder.profile(profile) + } + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + override fun proxy(proxy: String) { + cdkBuilder.proxy(proxy) + } + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(stacks: List) { + cdkBuilder.stacks(stacks) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + override fun staging(staging: Boolean) { + cdkBuilder.staging(staging) + } + + /** + * @param strict Do not construct stacks with warnings. + */ + override fun strict(strict: Boolean) { + cdkBuilder.strict(strict) + } + + /** + * @param trace Print trace for stack warnings. + */ + override fun trace(trace: Boolean) { + cdkBuilder.trace(trace) + } + + /** + * @param verbose show debug logs. + */ + override fun verbose(verbose: Boolean) { + cdkBuilder.verbose(verbose) + } + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + override fun versionReporting(versionReporting: Boolean) { + cdkBuilder.versionReporting(versionReporting) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions, + ) : CdkObject(cdkObject), + DefaultCdkOptions { + /** + * Deploy all stacks. + * + * Requried if `stacks` is not set + * + * Default: - false + */ + override fun all(): Boolean? = unwrap(this).getAll() + + /** + * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" + * or "cdk.out". + * + * Default: - read from cdk.json + */ + override fun app(): String? = unwrap(this).getApp() + + /** + * Include "aws:asset:*" CloudFormation metadata for resources that use assets. + * + * Default: true + */ + override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() + + /** + * Path to CA certificate to use when validating HTTPS requests. + * + * Default: - read from AWS_CA_BUNDLE environment variable + */ + override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() + + /** + * Show colors and other style from console output. + * + * Default: true + */ + override fun color(): Boolean? = unwrap(this).getColor() + + /** + * Additional context. + * + * Default: - no additional context + */ + override fun context(): Map = unwrap(this).getContext() ?: emptyMap() + + /** + * enable emission of additional debugging information, such as creation stack traces of tokens. + * + * Default: false + */ + override fun debug(): Boolean? = unwrap(this).getDebug() + + /** + * Force trying to fetch EC2 instance credentials. + * + * Default: - guess EC2 instance status + */ + override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() + + /** + * Ignores synthesis errors, which will likely produce an invalid output. + * + * Default: false + */ + override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() + + /** + * Use JSON output instead of YAML when templates are printed to STDOUT. + * + * Default: false + */ + override fun json(): Boolean? = unwrap(this).getJson() + + /** + * Perform context lookups. + * + * Synthesis fails if this is disabled and context lookups need + * to be performed + * + * Default: true + */ + override fun lookups(): Boolean? = unwrap(this).getLookups() + + /** + * Show relevant notices. + * + * Default: true + */ + override fun notices(): Boolean? = unwrap(this).getNotices() + + /** + * Emits the synthesized cloud assembly into a directory. + * + * Default: cdk.out + */ + override fun output(): String? = unwrap(this).getOutput() + + /** + * Include "aws:cdk:path" CloudFormation metadata for each resource. + * + * Default: true + */ + override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() + + /** + * Use the indicated AWS profile as the default environment. + * + * Default: - no profile is used + */ + override fun profile(): String? = unwrap(this).getProfile() + + /** + * Use the indicated proxy. + * + * Will read from + * HTTPS_PROXY environment if specified + * + * Default: - no proxy + */ + override fun proxy(): String? = unwrap(this).getProxy() + + /** + * Role to pass to CloudFormation for deployment. + * + * Default: - use the bootstrap cfn-exec role + */ + override fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * List of stacks to deploy. + * + * Requried if `all` is not set + * + * Default: - [] + */ + override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() + + /** + * Copy assets to the output directory. + * + * Needed for local debugging the source files with SAM CLI + * + * Default: false + */ + override fun staging(): Boolean? = unwrap(this).getStaging() + + /** + * Do not construct stacks with warnings. + * + * Default: false + */ + override fun strict(): Boolean? = unwrap(this).getStrict() + + /** + * Print trace for stack warnings. + * + * Default: false + */ + override fun trace(): Boolean? = unwrap(this).getTrace() + + /** + * show debug logs. + * + * Default: false + */ + override fun verbose(): Boolean? = unwrap(this).getVerbose() + + /** + * Include "AWS::CDK::Metadata" resource in synthesized templates. + * + * Default: true + */ + override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DefaultCdkOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions): + DefaultCdkOptions = CdkObjectWrappers.wrap(cdkObject) as? DefaultCdkOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DefaultCdkOptions): + software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployCommand.kt new file mode 100644 index 0000000000..a2333005b9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployCommand.kt @@ -0,0 +1,215 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Represents a cdk deploy command. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DeployCommand deployCommand = DeployCommand.builder() + * .args(DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build(); + * ``` + */ +public interface DeployCommand : CdkCommand { + /** + * Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + * + * Default: - only default args are used + */ + public fun args(): DeployOptions? = unwrap(this).getArgs()?.let(DeployOptions::wrap) + + /** + * A builder for [DeployCommand] + */ + @CdkDslMarker + public interface Builder { + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + public fun args(args: DeployOptions) + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3a5c8c4f949fd774f4cac39dcb787632d4141f7d76f68e6244f75e85488329f2") + public fun args(args: DeployOptions.Builder.() -> Unit) + + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + public fun enabled(enabled: Boolean) + + /** + * @param expectError If the runner should expect this command to fail. + */ + public fun expectError(expectError: Boolean) + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + public fun expectedMessage(expectedMessage: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DeployCommand.Builder = + software.amazon.awscdk.cloud_assembly_schema.DeployCommand.builder() + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + override fun args(args: DeployOptions) { + cdkBuilder.args(args.let(DeployOptions.Companion::unwrap)) + } + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3a5c8c4f949fd774f4cac39dcb787632d4141f7d76f68e6244f75e85488329f2") + override fun args(args: DeployOptions.Builder.() -> Unit): Unit = args(DeployOptions(args)) + + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param expectError If the runner should expect this command to fail. + */ + override fun expectError(expectError: Boolean) { + cdkBuilder.expectError(expectError) + } + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + override fun expectedMessage(expectedMessage: String) { + cdkBuilder.expectedMessage(expectedMessage) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DeployCommand = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DeployCommand, + ) : CdkObject(cdkObject), + DeployCommand { + /** + * Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + * + * Default: - only default args are used + */ + override fun args(): DeployOptions? = unwrap(this).getArgs()?.let(DeployOptions::wrap) + + /** + * Whether or not to run this command as part of the workflow This can be used if you only want + * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in + * order to limit the test to synthesis. + * + * Default: true + */ + override fun enabled(): Boolean? = unwrap(this).getEnabled() + + /** + * If the runner should expect this command to fail. + * + * Default: false + */ + override fun expectError(): Boolean? = unwrap(this).getExpectError() + + /** + * This can be used in combination with `expectedError` to validate that a specific message is + * returned. + * + * Default: - do not validate message + */ + override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DeployCommand { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DeployCommand): + DeployCommand = CdkObjectWrappers.wrap(cdkObject) as? DeployCommand ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DeployCommand): + software.amazon.awscdk.cloud_assembly_schema.DeployCommand = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DeployCommand + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployOptions.kt new file mode 100644 index 0000000000..596d015286 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DeployOptions.kt @@ -0,0 +1,992 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Options to use with cdk deploy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DeployOptions deployOptions = DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build(); + * ``` + */ +public interface DeployOptions : DefaultCdkOptions { + /** + * Optional name to use for the CloudFormation change set. + * + * If not provided, a name will be generated automatically. + * + * Default: - auto generate a name + */ + public fun changeSetName(): String? = unwrap(this).getChangeSetName() + + /** + * Whether we are on a CI system. + * + * Default: false + */ + public fun ci(): Boolean? = unwrap(this).getCi() + + /** + * Deploy multiple stacks in parallel. + * + * Default: 1 + */ + public fun concurrency(): Number? = unwrap(this).getConcurrency() + + /** + * Only perform action on the given stack. + * + * Default: false + */ + public fun exclusively(): Boolean? = unwrap(this).getExclusively() + + /** + * Whether to execute the ChangeSet Not providing `execute` parameter will result in execution of + * ChangeSet. + * + * Default: true + */ + public fun execute(): Boolean? = unwrap(this).getExecute() + + /** + * Always deploy, even if templates are identical. + * + * Default: false + */ + public fun force(): Boolean? = unwrap(this).getForce() + + /** + * ARNs of SNS topics that CloudFormation will notify with stack related events. + * + * Default: - no notifications + */ + public fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() + + /** + * Path to file where stack outputs will be written after a successful deploy as JSON. + * + * Default: - Outputs are not written to any file + */ + public fun outputsFile(): String? = unwrap(this).getOutputsFile() + + /** + * Additional parameters for CloudFormation at deploy time. + * + * Default: {} + */ + public fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * What kind of security changes require approval. + * + * Default: RequireApproval.Never + */ + public fun requireApproval(): RequireApproval? = + unwrap(this).getRequireApproval()?.let(RequireApproval::wrap) + + /** + * Reuse the assets with the given asset IDs. + * + * Default: - do not reuse assets + */ + public fun reuseAssets(): List = unwrap(this).getReuseAssets() ?: emptyList() + + /** + * Rollback failed deployments. + * + * Default: true + */ + public fun rollback(): Boolean? = unwrap(this).getRollback() + + /** + * Name of the toolkit stack to use/deploy. + * + * Default: CDKToolkit + */ + public fun toolkitStackName(): String? = unwrap(this).getToolkitStackName() + + /** + * Use previous values for unspecified parameters. + * + * If not set, all parameters must be specified for every deployment. + * + * Default: true + */ + public fun usePreviousParameters(): Boolean? = unwrap(this).getUsePreviousParameters() + + /** + * A builder for [DeployOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + public fun all(all: Boolean) + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + public fun app(app: String) + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + public fun assetMetadata(assetMetadata: Boolean) + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + public fun caBundlePath(caBundlePath: String) + + /** + * @param changeSetName Optional name to use for the CloudFormation change set. + * If not provided, a name will be generated automatically. + */ + public fun changeSetName(changeSetName: String) + + /** + * @param ci Whether we are on a CI system. + */ + public fun ci(ci: Boolean) + + /** + * @param color Show colors and other style from console output. + */ + public fun color(color: Boolean) + + /** + * @param concurrency Deploy multiple stacks in parallel. + */ + public fun concurrency(concurrency: Number) + + /** + * @param context Additional context. + */ + public fun context(context: Map) + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + public fun debug(debug: Boolean) + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + public fun ec2Creds(ec2Creds: Boolean) + + /** + * @param exclusively Only perform action on the given stack. + */ + public fun exclusively(exclusively: Boolean) + + /** + * @param execute Whether to execute the ChangeSet Not providing `execute` parameter will result + * in execution of ChangeSet. + */ + public fun execute(execute: Boolean) + + /** + * @param force Always deploy, even if templates are identical. + */ + public fun force(force: Boolean) + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + public fun ignoreErrors(ignoreErrors: Boolean) + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + public fun json(json: Boolean) + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + public fun lookups(lookups: Boolean) + + /** + * @param notices Show relevant notices. + */ + public fun notices(notices: Boolean) + + /** + * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related + * events. + */ + public fun notificationArns(notificationArns: List) + + /** + * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related + * events. + */ + public fun notificationArns(vararg notificationArns: String) + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + public fun output(output: String) + + /** + * @param outputsFile Path to file where stack outputs will be written after a successful deploy + * as JSON. + */ + public fun outputsFile(outputsFile: String) + + /** + * @param parameters Additional parameters for CloudFormation at deploy time. + */ + public fun parameters(parameters: Map) + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + public fun pathMetadata(pathMetadata: Boolean) + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + public fun profile(profile: String) + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + public fun proxy(proxy: String) + + /** + * @param requireApproval What kind of security changes require approval. + */ + public fun requireApproval(requireApproval: RequireApproval) + + /** + * @param reuseAssets Reuse the assets with the given asset IDs. + */ + public fun reuseAssets(reuseAssets: List) + + /** + * @param reuseAssets Reuse the assets with the given asset IDs. + */ + public fun reuseAssets(vararg reuseAssets: String) + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + public fun roleArn(roleArn: String) + + /** + * @param rollback Rollback failed deployments. + */ + public fun rollback(rollback: Boolean) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(stacks: List) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(vararg stacks: String) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + public fun staging(staging: Boolean) + + /** + * @param strict Do not construct stacks with warnings. + */ + public fun strict(strict: Boolean) + + /** + * @param toolkitStackName Name of the toolkit stack to use/deploy. + */ + public fun toolkitStackName(toolkitStackName: String) + + /** + * @param trace Print trace for stack warnings. + */ + public fun trace(trace: Boolean) + + /** + * @param usePreviousParameters Use previous values for unspecified parameters. + * If not set, all parameters must be specified for every deployment. + */ + public fun usePreviousParameters(usePreviousParameters: Boolean) + + /** + * @param verbose show debug logs. + */ + public fun verbose(verbose: Boolean) + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + public fun versionReporting(versionReporting: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DeployOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.DeployOptions.builder() + + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + override fun all(all: Boolean) { + cdkBuilder.all(all) + } + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + override fun app(app: String) { + cdkBuilder.app(app) + } + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + override fun assetMetadata(assetMetadata: Boolean) { + cdkBuilder.assetMetadata(assetMetadata) + } + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + override fun caBundlePath(caBundlePath: String) { + cdkBuilder.caBundlePath(caBundlePath) + } + + /** + * @param changeSetName Optional name to use for the CloudFormation change set. + * If not provided, a name will be generated automatically. + */ + override fun changeSetName(changeSetName: String) { + cdkBuilder.changeSetName(changeSetName) + } + + /** + * @param ci Whether we are on a CI system. + */ + override fun ci(ci: Boolean) { + cdkBuilder.ci(ci) + } + + /** + * @param color Show colors and other style from console output. + */ + override fun color(color: Boolean) { + cdkBuilder.color(color) + } + + /** + * @param concurrency Deploy multiple stacks in parallel. + */ + override fun concurrency(concurrency: Number) { + cdkBuilder.concurrency(concurrency) + } + + /** + * @param context Additional context. + */ + override fun context(context: Map) { + cdkBuilder.context(context) + } + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + override fun debug(debug: Boolean) { + cdkBuilder.debug(debug) + } + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + override fun ec2Creds(ec2Creds: Boolean) { + cdkBuilder.ec2Creds(ec2Creds) + } + + /** + * @param exclusively Only perform action on the given stack. + */ + override fun exclusively(exclusively: Boolean) { + cdkBuilder.exclusively(exclusively) + } + + /** + * @param execute Whether to execute the ChangeSet Not providing `execute` parameter will result + * in execution of ChangeSet. + */ + override fun execute(execute: Boolean) { + cdkBuilder.execute(execute) + } + + /** + * @param force Always deploy, even if templates are identical. + */ + override fun force(force: Boolean) { + cdkBuilder.force(force) + } + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + override fun ignoreErrors(ignoreErrors: Boolean) { + cdkBuilder.ignoreErrors(ignoreErrors) + } + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + override fun json(json: Boolean) { + cdkBuilder.json(json) + } + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + override fun lookups(lookups: Boolean) { + cdkBuilder.lookups(lookups) + } + + /** + * @param notices Show relevant notices. + */ + override fun notices(notices: Boolean) { + cdkBuilder.notices(notices) + } + + /** + * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related + * events. + */ + override fun notificationArns(notificationArns: List) { + cdkBuilder.notificationArns(notificationArns) + } + + /** + * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related + * events. + */ + override fun notificationArns(vararg notificationArns: String): Unit = + notificationArns(notificationArns.toList()) + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + override fun output(output: String) { + cdkBuilder.output(output) + } + + /** + * @param outputsFile Path to file where stack outputs will be written after a successful deploy + * as JSON. + */ + override fun outputsFile(outputsFile: String) { + cdkBuilder.outputsFile(outputsFile) + } + + /** + * @param parameters Additional parameters for CloudFormation at deploy time. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters) + } + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + override fun pathMetadata(pathMetadata: Boolean) { + cdkBuilder.pathMetadata(pathMetadata) + } + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + override fun profile(profile: String) { + cdkBuilder.profile(profile) + } + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + override fun proxy(proxy: String) { + cdkBuilder.proxy(proxy) + } + + /** + * @param requireApproval What kind of security changes require approval. + */ + override fun requireApproval(requireApproval: RequireApproval) { + cdkBuilder.requireApproval(requireApproval.let(RequireApproval.Companion::unwrap)) + } + + /** + * @param reuseAssets Reuse the assets with the given asset IDs. + */ + override fun reuseAssets(reuseAssets: List) { + cdkBuilder.reuseAssets(reuseAssets) + } + + /** + * @param reuseAssets Reuse the assets with the given asset IDs. + */ + override fun reuseAssets(vararg reuseAssets: String): Unit = reuseAssets(reuseAssets.toList()) + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param rollback Rollback failed deployments. + */ + override fun rollback(rollback: Boolean) { + cdkBuilder.rollback(rollback) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(stacks: List) { + cdkBuilder.stacks(stacks) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + override fun staging(staging: Boolean) { + cdkBuilder.staging(staging) + } + + /** + * @param strict Do not construct stacks with warnings. + */ + override fun strict(strict: Boolean) { + cdkBuilder.strict(strict) + } + + /** + * @param toolkitStackName Name of the toolkit stack to use/deploy. + */ + override fun toolkitStackName(toolkitStackName: String) { + cdkBuilder.toolkitStackName(toolkitStackName) + } + + /** + * @param trace Print trace for stack warnings. + */ + override fun trace(trace: Boolean) { + cdkBuilder.trace(trace) + } + + /** + * @param usePreviousParameters Use previous values for unspecified parameters. + * If not set, all parameters must be specified for every deployment. + */ + override fun usePreviousParameters(usePreviousParameters: Boolean) { + cdkBuilder.usePreviousParameters(usePreviousParameters) + } + + /** + * @param verbose show debug logs. + */ + override fun verbose(verbose: Boolean) { + cdkBuilder.verbose(verbose) + } + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + override fun versionReporting(versionReporting: Boolean) { + cdkBuilder.versionReporting(versionReporting) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DeployOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DeployOptions, + ) : CdkObject(cdkObject), + DeployOptions { + /** + * Deploy all stacks. + * + * Requried if `stacks` is not set + * + * Default: - false + */ + override fun all(): Boolean? = unwrap(this).getAll() + + /** + * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" + * or "cdk.out". + * + * Default: - read from cdk.json + */ + override fun app(): String? = unwrap(this).getApp() + + /** + * Include "aws:asset:*" CloudFormation metadata for resources that use assets. + * + * Default: true + */ + override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() + + /** + * Path to CA certificate to use when validating HTTPS requests. + * + * Default: - read from AWS_CA_BUNDLE environment variable + */ + override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() + + /** + * Optional name to use for the CloudFormation change set. + * + * If not provided, a name will be generated automatically. + * + * Default: - auto generate a name + */ + override fun changeSetName(): String? = unwrap(this).getChangeSetName() + + /** + * Whether we are on a CI system. + * + * Default: false + */ + override fun ci(): Boolean? = unwrap(this).getCi() + + /** + * Show colors and other style from console output. + * + * Default: true + */ + override fun color(): Boolean? = unwrap(this).getColor() + + /** + * Deploy multiple stacks in parallel. + * + * Default: 1 + */ + override fun concurrency(): Number? = unwrap(this).getConcurrency() + + /** + * Additional context. + * + * Default: - no additional context + */ + override fun context(): Map = unwrap(this).getContext() ?: emptyMap() + + /** + * enable emission of additional debugging information, such as creation stack traces of tokens. + * + * Default: false + */ + override fun debug(): Boolean? = unwrap(this).getDebug() + + /** + * Force trying to fetch EC2 instance credentials. + * + * Default: - guess EC2 instance status + */ + override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() + + /** + * Only perform action on the given stack. + * + * Default: false + */ + override fun exclusively(): Boolean? = unwrap(this).getExclusively() + + /** + * Whether to execute the ChangeSet Not providing `execute` parameter will result in execution + * of ChangeSet. + * + * Default: true + */ + override fun execute(): Boolean? = unwrap(this).getExecute() + + /** + * Always deploy, even if templates are identical. + * + * Default: false + */ + override fun force(): Boolean? = unwrap(this).getForce() + + /** + * Ignores synthesis errors, which will likely produce an invalid output. + * + * Default: false + */ + override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() + + /** + * Use JSON output instead of YAML when templates are printed to STDOUT. + * + * Default: false + */ + override fun json(): Boolean? = unwrap(this).getJson() + + /** + * Perform context lookups. + * + * Synthesis fails if this is disabled and context lookups need + * to be performed + * + * Default: true + */ + override fun lookups(): Boolean? = unwrap(this).getLookups() + + /** + * Show relevant notices. + * + * Default: true + */ + override fun notices(): Boolean? = unwrap(this).getNotices() + + /** + * ARNs of SNS topics that CloudFormation will notify with stack related events. + * + * Default: - no notifications + */ + override fun notificationArns(): List = unwrap(this).getNotificationArns() ?: + emptyList() + + /** + * Emits the synthesized cloud assembly into a directory. + * + * Default: cdk.out + */ + override fun output(): String? = unwrap(this).getOutput() + + /** + * Path to file where stack outputs will be written after a successful deploy as JSON. + * + * Default: - Outputs are not written to any file + */ + override fun outputsFile(): String? = unwrap(this).getOutputsFile() + + /** + * Additional parameters for CloudFormation at deploy time. + * + * Default: {} + */ + override fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * Include "aws:cdk:path" CloudFormation metadata for each resource. + * + * Default: true + */ + override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() + + /** + * Use the indicated AWS profile as the default environment. + * + * Default: - no profile is used + */ + override fun profile(): String? = unwrap(this).getProfile() + + /** + * Use the indicated proxy. + * + * Will read from + * HTTPS_PROXY environment if specified + * + * Default: - no proxy + */ + override fun proxy(): String? = unwrap(this).getProxy() + + /** + * What kind of security changes require approval. + * + * Default: RequireApproval.Never + */ + override fun requireApproval(): RequireApproval? = + unwrap(this).getRequireApproval()?.let(RequireApproval::wrap) + + /** + * Reuse the assets with the given asset IDs. + * + * Default: - do not reuse assets + */ + override fun reuseAssets(): List = unwrap(this).getReuseAssets() ?: emptyList() + + /** + * Role to pass to CloudFormation for deployment. + * + * Default: - use the bootstrap cfn-exec role + */ + override fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * Rollback failed deployments. + * + * Default: true + */ + override fun rollback(): Boolean? = unwrap(this).getRollback() + + /** + * List of stacks to deploy. + * + * Requried if `all` is not set + * + * Default: - [] + */ + override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() + + /** + * Copy assets to the output directory. + * + * Needed for local debugging the source files with SAM CLI + * + * Default: false + */ + override fun staging(): Boolean? = unwrap(this).getStaging() + + /** + * Do not construct stacks with warnings. + * + * Default: false + */ + override fun strict(): Boolean? = unwrap(this).getStrict() + + /** + * Name of the toolkit stack to use/deploy. + * + * Default: CDKToolkit + */ + override fun toolkitStackName(): String? = unwrap(this).getToolkitStackName() + + /** + * Print trace for stack warnings. + * + * Default: false + */ + override fun trace(): Boolean? = unwrap(this).getTrace() + + /** + * Use previous values for unspecified parameters. + * + * If not set, all parameters must be specified for every deployment. + * + * Default: true + */ + override fun usePreviousParameters(): Boolean? = unwrap(this).getUsePreviousParameters() + + /** + * show debug logs. + * + * Default: false + */ + override fun verbose(): Boolean? = unwrap(this).getVerbose() + + /** + * Include "AWS::CDK::Metadata" resource in synthesized templates. + * + * Default: true + */ + override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DeployOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DeployOptions): + DeployOptions = CdkObjectWrappers.wrap(cdkObject) as? DeployOptions ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DeployOptions): + software.amazon.awscdk.cloud_assembly_schema.DeployOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DeployOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyCommand.kt new file mode 100644 index 0000000000..3a5bbfe0d6 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyCommand.kt @@ -0,0 +1,202 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Represents a cdk destroy command. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DestroyCommand destroyCommand = DestroyCommand.builder() + * .args(DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build(); + * ``` + */ +public interface DestroyCommand : CdkCommand { + /** + * Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + * + * Default: - only default args are used + */ + public fun args(): DestroyOptions? = unwrap(this).getArgs()?.let(DestroyOptions::wrap) + + /** + * A builder for [DestroyCommand] + */ + @CdkDslMarker + public interface Builder { + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + public fun args(args: DestroyOptions) + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("926682f9757b55edf17b8b52fc0fd591a059c55c329d3b186f3cccdd44bef8ad") + public fun args(args: DestroyOptions.Builder.() -> Unit) + + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + public fun enabled(enabled: Boolean) + + /** + * @param expectError If the runner should expect this command to fail. + */ + public fun expectError(expectError: Boolean) + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + public fun expectedMessage(expectedMessage: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DestroyCommand.Builder = + software.amazon.awscdk.cloud_assembly_schema.DestroyCommand.builder() + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + override fun args(args: DestroyOptions) { + cdkBuilder.args(args.let(DestroyOptions.Companion::unwrap)) + } + + /** + * @param args Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("926682f9757b55edf17b8b52fc0fd591a059c55c329d3b186f3cccdd44bef8ad") + override fun args(args: DestroyOptions.Builder.() -> Unit): Unit = args(DestroyOptions(args)) + + /** + * @param enabled Whether or not to run this command as part of the workflow This can be used if + * you only want to test some of the workflow for example enable `synth` and disable `deploy` & + * `destroy` in order to limit the test to synthesis. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param expectError If the runner should expect this command to fail. + */ + override fun expectError(expectError: Boolean) { + cdkBuilder.expectError(expectError) + } + + /** + * @param expectedMessage This can be used in combination with `expectedError` to validate that + * a specific message is returned. + */ + override fun expectedMessage(expectedMessage: String) { + cdkBuilder.expectedMessage(expectedMessage) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DestroyCommand = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DestroyCommand, + ) : CdkObject(cdkObject), + DestroyCommand { + /** + * Additional arguments to pass to the command This can be used to test specific CLI + * functionality. + * + * Default: - only default args are used + */ + override fun args(): DestroyOptions? = unwrap(this).getArgs()?.let(DestroyOptions::wrap) + + /** + * Whether or not to run this command as part of the workflow This can be used if you only want + * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in + * order to limit the test to synthesis. + * + * Default: true + */ + override fun enabled(): Boolean? = unwrap(this).getEnabled() + + /** + * If the runner should expect this command to fail. + * + * Default: false + */ + override fun expectError(): Boolean? = unwrap(this).getExpectError() + + /** + * This can be used in combination with `expectedError` to validate that a specific message is + * returned. + * + * Default: - do not validate message + */ + override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DestroyCommand { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DestroyCommand): + DestroyCommand = CdkObjectWrappers.wrap(cdkObject) as? DestroyCommand ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DestroyCommand): + software.amazon.awscdk.cloud_assembly_schema.DestroyCommand = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DestroyCommand + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyOptions.kt new file mode 100644 index 0000000000..1d1263a8ce --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DestroyOptions.kt @@ -0,0 +1,620 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Options to use with cdk destroy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DestroyOptions destroyOptions = DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build(); + * ``` + */ +public interface DestroyOptions : DefaultCdkOptions { + /** + * Only destroy the given stack. + * + * Default: false + */ + public fun exclusively(): Boolean? = unwrap(this).getExclusively() + + /** + * Do not ask for permission before destroying stacks. + * + * Default: false + */ + public fun force(): Boolean? = unwrap(this).getForce() + + /** + * A builder for [DestroyOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + public fun all(all: Boolean) + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + public fun app(app: String) + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + public fun assetMetadata(assetMetadata: Boolean) + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + public fun caBundlePath(caBundlePath: String) + + /** + * @param color Show colors and other style from console output. + */ + public fun color(color: Boolean) + + /** + * @param context Additional context. + */ + public fun context(context: Map) + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + public fun debug(debug: Boolean) + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + public fun ec2Creds(ec2Creds: Boolean) + + /** + * @param exclusively Only destroy the given stack. + */ + public fun exclusively(exclusively: Boolean) + + /** + * @param force Do not ask for permission before destroying stacks. + */ + public fun force(force: Boolean) + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + public fun ignoreErrors(ignoreErrors: Boolean) + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + public fun json(json: Boolean) + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + public fun lookups(lookups: Boolean) + + /** + * @param notices Show relevant notices. + */ + public fun notices(notices: Boolean) + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + public fun output(output: String) + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + public fun pathMetadata(pathMetadata: Boolean) + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + public fun profile(profile: String) + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + public fun proxy(proxy: String) + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + public fun roleArn(roleArn: String) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(stacks: List) + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + public fun stacks(vararg stacks: String) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + public fun staging(staging: Boolean) + + /** + * @param strict Do not construct stacks with warnings. + */ + public fun strict(strict: Boolean) + + /** + * @param trace Print trace for stack warnings. + */ + public fun trace(trace: Boolean) + + /** + * @param verbose show debug logs. + */ + public fun verbose(verbose: Boolean) + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + public fun versionReporting(versionReporting: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DestroyOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.DestroyOptions.builder() + + /** + * @param all Deploy all stacks. + * Requried if `stacks` is not set + */ + override fun all(all: Boolean) { + cdkBuilder.all(all) + } + + /** + * @param app command-line for executing your app or a cloud assembly directory e.g. "node + * bin/my-app.js" or "cdk.out". + */ + override fun app(app: String) { + cdkBuilder.app(app) + } + + /** + * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use + * assets. + */ + override fun assetMetadata(assetMetadata: Boolean) { + cdkBuilder.assetMetadata(assetMetadata) + } + + /** + * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. + */ + override fun caBundlePath(caBundlePath: String) { + cdkBuilder.caBundlePath(caBundlePath) + } + + /** + * @param color Show colors and other style from console output. + */ + override fun color(color: Boolean) { + cdkBuilder.color(color) + } + + /** + * @param context Additional context. + */ + override fun context(context: Map) { + cdkBuilder.context(context) + } + + /** + * @param debug enable emission of additional debugging information, such as creation stack + * traces of tokens. + */ + override fun debug(debug: Boolean) { + cdkBuilder.debug(debug) + } + + /** + * @param ec2Creds Force trying to fetch EC2 instance credentials. + */ + override fun ec2Creds(ec2Creds: Boolean) { + cdkBuilder.ec2Creds(ec2Creds) + } + + /** + * @param exclusively Only destroy the given stack. + */ + override fun exclusively(exclusively: Boolean) { + cdkBuilder.exclusively(exclusively) + } + + /** + * @param force Do not ask for permission before destroying stacks. + */ + override fun force(force: Boolean) { + cdkBuilder.force(force) + } + + /** + * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. + */ + override fun ignoreErrors(ignoreErrors: Boolean) { + cdkBuilder.ignoreErrors(ignoreErrors) + } + + /** + * @param json Use JSON output instead of YAML when templates are printed to STDOUT. + */ + override fun json(json: Boolean) { + cdkBuilder.json(json) + } + + /** + * @param lookups Perform context lookups. + * Synthesis fails if this is disabled and context lookups need + * to be performed + */ + override fun lookups(lookups: Boolean) { + cdkBuilder.lookups(lookups) + } + + /** + * @param notices Show relevant notices. + */ + override fun notices(notices: Boolean) { + cdkBuilder.notices(notices) + } + + /** + * @param output Emits the synthesized cloud assembly into a directory. + */ + override fun output(output: String) { + cdkBuilder.output(output) + } + + /** + * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. + */ + override fun pathMetadata(pathMetadata: Boolean) { + cdkBuilder.pathMetadata(pathMetadata) + } + + /** + * @param profile Use the indicated AWS profile as the default environment. + */ + override fun profile(profile: String) { + cdkBuilder.profile(profile) + } + + /** + * @param proxy Use the indicated proxy. + * Will read from + * HTTPS_PROXY environment if specified + */ + override fun proxy(proxy: String) { + cdkBuilder.proxy(proxy) + } + + /** + * @param roleArn Role to pass to CloudFormation for deployment. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(stacks: List) { + cdkBuilder.stacks(stacks) + } + + /** + * @param stacks List of stacks to deploy. + * Requried if `all` is not set + */ + override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) + + /** + * @param staging Copy assets to the output directory. + * Needed for local debugging the source files with SAM CLI + */ + override fun staging(staging: Boolean) { + cdkBuilder.staging(staging) + } + + /** + * @param strict Do not construct stacks with warnings. + */ + override fun strict(strict: Boolean) { + cdkBuilder.strict(strict) + } + + /** + * @param trace Print trace for stack warnings. + */ + override fun trace(trace: Boolean) { + cdkBuilder.trace(trace) + } + + /** + * @param verbose show debug logs. + */ + override fun verbose(verbose: Boolean) { + cdkBuilder.verbose(verbose) + } + + /** + * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. + */ + override fun versionReporting(versionReporting: Boolean) { + cdkBuilder.versionReporting(versionReporting) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DestroyOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DestroyOptions, + ) : CdkObject(cdkObject), + DestroyOptions { + /** + * Deploy all stacks. + * + * Requried if `stacks` is not set + * + * Default: - false + */ + override fun all(): Boolean? = unwrap(this).getAll() + + /** + * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" + * or "cdk.out". + * + * Default: - read from cdk.json + */ + override fun app(): String? = unwrap(this).getApp() + + /** + * Include "aws:asset:*" CloudFormation metadata for resources that use assets. + * + * Default: true + */ + override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() + + /** + * Path to CA certificate to use when validating HTTPS requests. + * + * Default: - read from AWS_CA_BUNDLE environment variable + */ + override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() + + /** + * Show colors and other style from console output. + * + * Default: true + */ + override fun color(): Boolean? = unwrap(this).getColor() + + /** + * Additional context. + * + * Default: - no additional context + */ + override fun context(): Map = unwrap(this).getContext() ?: emptyMap() + + /** + * enable emission of additional debugging information, such as creation stack traces of tokens. + * + * Default: false + */ + override fun debug(): Boolean? = unwrap(this).getDebug() + + /** + * Force trying to fetch EC2 instance credentials. + * + * Default: - guess EC2 instance status + */ + override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() + + /** + * Only destroy the given stack. + * + * Default: false + */ + override fun exclusively(): Boolean? = unwrap(this).getExclusively() + + /** + * Do not ask for permission before destroying stacks. + * + * Default: false + */ + override fun force(): Boolean? = unwrap(this).getForce() + + /** + * Ignores synthesis errors, which will likely produce an invalid output. + * + * Default: false + */ + override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() + + /** + * Use JSON output instead of YAML when templates are printed to STDOUT. + * + * Default: false + */ + override fun json(): Boolean? = unwrap(this).getJson() + + /** + * Perform context lookups. + * + * Synthesis fails if this is disabled and context lookups need + * to be performed + * + * Default: true + */ + override fun lookups(): Boolean? = unwrap(this).getLookups() + + /** + * Show relevant notices. + * + * Default: true + */ + override fun notices(): Boolean? = unwrap(this).getNotices() + + /** + * Emits the synthesized cloud assembly into a directory. + * + * Default: cdk.out + */ + override fun output(): String? = unwrap(this).getOutput() + + /** + * Include "aws:cdk:path" CloudFormation metadata for each resource. + * + * Default: true + */ + override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() + + /** + * Use the indicated AWS profile as the default environment. + * + * Default: - no profile is used + */ + override fun profile(): String? = unwrap(this).getProfile() + + /** + * Use the indicated proxy. + * + * Will read from + * HTTPS_PROXY environment if specified + * + * Default: - no proxy + */ + override fun proxy(): String? = unwrap(this).getProxy() + + /** + * Role to pass to CloudFormation for deployment. + * + * Default: - use the bootstrap cfn-exec role + */ + override fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * List of stacks to deploy. + * + * Requried if `all` is not set + * + * Default: - [] + */ + override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() + + /** + * Copy assets to the output directory. + * + * Needed for local debugging the source files with SAM CLI + * + * Default: false + */ + override fun staging(): Boolean? = unwrap(this).getStaging() + + /** + * Do not construct stacks with warnings. + * + * Default: false + */ + override fun strict(): Boolean? = unwrap(this).getStrict() + + /** + * Print trace for stack warnings. + * + * Default: false + */ + override fun trace(): Boolean? = unwrap(this).getTrace() + + /** + * show debug logs. + * + * Default: false + */ + override fun verbose(): Boolean? = unwrap(this).getVerbose() + + /** + * Include "AWS::CDK::Metadata" resource in synthesized templates. + * + * Default: true + */ + override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DestroyOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DestroyOptions): + DestroyOptions = CdkObjectWrappers.wrap(cdkObject) as? DestroyOptions ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DestroyOptions): + software.amazon.awscdk.cloud_assembly_schema.DestroyOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DestroyOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerCacheOption.kt new file mode 100644 index 0000000000..eb40af83ad --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerCacheOption.kt @@ -0,0 +1,157 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Options for configuring the Docker cache backend. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DockerCacheOption dockerCacheOption = DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build(); + * ``` + */ +public interface DockerCacheOption { + /** + * Any parameters to pass into the docker cache backend configuration. + * + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + * + * Default: {} No options provided + * + * Example: + * + * ``` + * String branch; + * Map<String, Object> params = Map.of( + * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), + * "mode", "max"); + * ``` + */ + public fun params(): Map = unwrap(this).getParams() ?: emptyMap() + + /** + * The type of cache to use. + * + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + * + * Default: - unspecified + * + * Example: + * + * ``` + * "registry"; + * ``` + */ + public fun type(): String + + /** + * A builder for [DockerCacheOption] + */ + @CdkDslMarker + public interface Builder { + /** + * @param params Any parameters to pass into the docker cache backend configuration. + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + */ + public fun params(params: Map) + + /** + * @param type The type of cache to use. + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption.Builder = + software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption.builder() + + /** + * @param params Any parameters to pass into the docker cache backend configuration. + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + */ + override fun params(params: Map) { + cdkBuilder.params(params) + } + + /** + * @param type The type of cache to use. + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption, + ) : CdkObject(cdkObject), + DockerCacheOption { + /** + * Any parameters to pass into the docker cache backend configuration. + * + * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. + * + * Default: {} No options provided + * + * Example: + * + * ``` + * String branch; + * Map<String, Object> params = Map.of( + * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), + * "mode", "max"); + * ``` + */ + override fun params(): Map = unwrap(this).getParams() ?: emptyMap() + + /** + * The type of cache to use. + * + * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. + * + * Default: - unspecified + * + * Example: + * + * ``` + * "registry"; + * ``` + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DockerCacheOption { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption): + DockerCacheOption = CdkObjectWrappers.wrap(cdkObject) as? DockerCacheOption ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DockerCacheOption): + software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DockerCacheOption + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageAsset.kt new file mode 100644 index 0000000000..91645f6ce9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageAsset.kt @@ -0,0 +1,159 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * A file asset. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * DockerImageAsset dockerImageAsset = DockerImageAsset.builder() + * .destinations(Map.of( + * "destinationsKey", DockerImageDestination.builder() + * .imageTag("imageTag") + * .repositoryName("repositoryName") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build())) + * .source(DockerImageSource.builder() + * .cacheDisabled(false) + * .cacheFrom(List.of(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build())) + * .cacheTo(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build()) + * .directory("directory") + * .dockerBuildArgs(Map.of( + * "dockerBuildArgsKey", "dockerBuildArgs")) + * .dockerBuildSecrets(Map.of( + * "dockerBuildSecretsKey", "dockerBuildSecrets")) + * .dockerBuildSsh("dockerBuildSsh") + * .dockerBuildTarget("dockerBuildTarget") + * .dockerFile("dockerFile") + * .dockerOutputs(List.of("dockerOutputs")) + * .executable(List.of("executable")) + * .networkMode("networkMode") + * .platform("platform") + * .build()) + * .build(); + * ``` + */ +public interface DockerImageAsset { + /** + * Destinations for this file asset. + */ + public fun destinations(): Map + + /** + * Source description for file assets. + */ + public fun source(): DockerImageSource + + /** + * A builder for [DockerImageAsset] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinations Destinations for this file asset. + */ + public fun destinations(destinations: Map) + + /** + * @param source Source description for file assets. + */ + public fun source(source: DockerImageSource) + + /** + * @param source Source description for file assets. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("10f859ead4d7b4650a33bce64644ba1f256468bf653cebd80eb451cdc738a4ae") + public fun source(source: DockerImageSource.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset.Builder = + software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset.builder() + + /** + * @param destinations Destinations for this file asset. + */ + override fun destinations(destinations: Map) { + cdkBuilder.destinations(destinations.mapValues{DockerImageDestination.unwrap(it.value)}) + } + + /** + * @param source Source description for file assets. + */ + override fun source(source: DockerImageSource) { + cdkBuilder.source(source.let(DockerImageSource.Companion::unwrap)) + } + + /** + * @param source Source description for file assets. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("10f859ead4d7b4650a33bce64644ba1f256468bf653cebd80eb451cdc738a4ae") + override fun source(source: DockerImageSource.Builder.() -> Unit): Unit = + source(DockerImageSource(source)) + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset, + ) : CdkObject(cdkObject), + DockerImageAsset { + /** + * Destinations for this file asset. + */ + override fun destinations(): Map = + unwrap(this).getDestinations().mapValues{DockerImageDestination.wrap(it.value)} + + /** + * Source description for file assets. + */ + override fun source(): DockerImageSource = unwrap(this).getSource().let(DockerImageSource::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DockerImageAsset { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset): + DockerImageAsset = CdkObjectWrappers.wrap(cdkObject) as? DockerImageAsset ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DockerImageAsset): + software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DockerImageAsset + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageDestination.kt new file mode 100644 index 0000000000..6ba293b2e7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageDestination.kt @@ -0,0 +1,203 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Where to publish docker images. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * DockerImageDestination dockerImageDestination = DockerImageDestination.builder() + * .imageTag("imageTag") + * .repositoryName("repositoryName") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build(); + * ``` + */ +public interface DockerImageDestination : AwsDestination { + /** + * Tag of the image to publish. + */ + public fun imageTag(): String + + /** + * Name of the ECR repository to publish to. + */ + public fun repositoryName(): String + + /** + * A builder for [DockerImageDestination] + */ + @CdkDslMarker + public interface Builder { + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + public fun assumeRoleArn(assumeRoleArn: String) + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun assumeRoleExternalId(assumeRoleExternalId: String) + + /** + * @param imageTag Tag of the image to publish. + */ + public fun imageTag(imageTag: String) + + /** + * @param region The region where this asset will need to be published. + */ + public fun region(region: String) + + /** + * @param repositoryName Name of the ECR repository to publish to. + */ + public fun repositoryName(repositoryName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination.Builder = + software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination.builder() + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + override fun assumeRoleArn(assumeRoleArn: String) { + cdkBuilder.assumeRoleArn(assumeRoleArn) + } + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun assumeRoleExternalId(assumeRoleExternalId: String) { + cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) + } + + /** + * @param imageTag Tag of the image to publish. + */ + override fun imageTag(imageTag: String) { + cdkBuilder.imageTag(imageTag) + } + + /** + * @param region The region where this asset will need to be published. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param repositoryName Name of the ECR repository to publish to. + */ + override fun repositoryName(repositoryName: String) { + cdkBuilder.repositoryName(repositoryName) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination, + ) : CdkObject(cdkObject), + DockerImageDestination { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed while publishing this asset. + * + * Default: - No role will be assumed + */ + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * Tag of the image to publish. + */ + override fun imageTag(): String = unwrap(this).getImageTag() + + /** + * The region where this asset will need to be published. + * + * Default: - Current region + */ + override fun region(): String? = unwrap(this).getRegion() + + /** + * Name of the ECR repository to publish to. + */ + override fun repositoryName(): String = unwrap(this).getRepositoryName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DockerImageDestination { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination): + DockerImageDestination = CdkObjectWrappers.wrap(cdkObject) as? DockerImageDestination ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DockerImageDestination): + software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DockerImageDestination + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageSource.kt new file mode 100644 index 0000000000..0114a39390 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/DockerImageSource.kt @@ -0,0 +1,547 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for how to produce a Docker image from a source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * DockerImageSource dockerImageSource = DockerImageSource.builder() + * .cacheDisabled(false) + * .cacheFrom(List.of(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build())) + * .cacheTo(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build()) + * .directory("directory") + * .dockerBuildArgs(Map.of( + * "dockerBuildArgsKey", "dockerBuildArgs")) + * .dockerBuildSecrets(Map.of( + * "dockerBuildSecretsKey", "dockerBuildSecrets")) + * .dockerBuildSsh("dockerBuildSsh") + * .dockerBuildTarget("dockerBuildTarget") + * .dockerFile("dockerFile") + * .dockerOutputs(List.of("dockerOutputs")) + * .executable(List.of("executable")) + * .networkMode("networkMode") + * .platform("platform") + * .build(); + * ``` + */ +public interface DockerImageSource { + /** + * Disable the cache and pass `--no-cache` to the `docker build` command. + * + * Default: - cache is used + */ + public fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() + + /** + * Cache from options to pass to the `docker build` command. + * + * Default: - no cache from options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + public fun cacheFrom(): List = + unwrap(this).getCacheFrom()?.map(DockerCacheOption::wrap) ?: emptyList() + + /** + * Cache to options to pass to the `docker build` command. + * + * Default: - no cache to options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + public fun cacheTo(): DockerCacheOption? = unwrap(this).getCacheTo()?.let(DockerCacheOption::wrap) + + /** + * The directory containing the Docker image build instructions. + * + * This path is relative to the asset manifest location. + * + * Default: - Exactly one of `directory` and `executable` is required + */ + public fun directory(): String? = unwrap(this).getDirectory() + + /** + * Additional build arguments. + * + * Only allowed when `directory` is set. + * + * Default: - No additional build arguments + */ + public fun dockerBuildArgs(): Map = unwrap(this).getDockerBuildArgs() ?: + emptyMap() + + /** + * Additional build secrets. + * + * Only allowed when `directory` is set. + * + * Default: - No additional build secrets + */ + public fun dockerBuildSecrets(): Map = unwrap(this).getDockerBuildSecrets() ?: + emptyMap() + + /** + * SSH agent socket or keys. + * + * Requires building with docker buildkit. + * + * Default: - No ssh flag is set + */ + public fun dockerBuildSsh(): String? = unwrap(this).getDockerBuildSsh() + + /** + * Target build stage in a Dockerfile with multiple build stages. + * + * Only allowed when `directory` is set. + * + * Default: - The last stage in the Dockerfile + */ + public fun dockerBuildTarget(): String? = unwrap(this).getDockerBuildTarget() + + /** + * The name of the file with build instructions. + * + * Only allowed when `directory` is set. + * + * Default: "Dockerfile" + */ + public fun dockerFile(): String? = unwrap(this).getDockerFile() + + /** + * Outputs. + * + * Default: - no outputs are passed to the build command (default outputs are used) + * + * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) + */ + public fun dockerOutputs(): List = unwrap(this).getDockerOutputs() ?: emptyList() + + /** + * A command-line executable that returns the name of a local Docker image on stdout after being + * run. + * + * Default: - Exactly one of `directory` and `executable` is required + */ + public fun executable(): List = unwrap(this).getExecutable() ?: emptyList() + + /** + * Networking mode for the RUN commands during build. *Requires Docker Engine API v1.25+*. + * + * Specify this property to build images on a specific networking mode. + * + * Default: - no networking mode specified + */ + public fun networkMode(): String? = unwrap(this).getNetworkMode() + + /** + * Platform to build for. *Requires Docker Buildx*. + * + * Specify this property to build images on a specific platform/architecture. + * + * Default: - current machine platform + */ + public fun platform(): String? = unwrap(this).getPlatform() + + /** + * A builder for [DockerImageSource] + */ + @CdkDslMarker + public interface Builder { + /** + * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. + */ + public fun cacheDisabled(cacheDisabled: Boolean) + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + public fun cacheFrom(cacheFrom: List) + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + public fun cacheFrom(vararg cacheFrom: DockerCacheOption) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + public fun cacheTo(cacheTo: DockerCacheOption) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7896b64a65f5674dc57a15b7bbb6c91655e53afcebae1df26b9008a3c4166ac4") + public fun cacheTo(cacheTo: DockerCacheOption.Builder.() -> Unit) + + /** + * @param directory The directory containing the Docker image build instructions. + * This path is relative to the asset manifest location. + */ + public fun directory(directory: String) + + /** + * @param dockerBuildArgs Additional build arguments. + * Only allowed when `directory` is set. + */ + public fun dockerBuildArgs(dockerBuildArgs: Map) + + /** + * @param dockerBuildSecrets Additional build secrets. + * Only allowed when `directory` is set. + */ + public fun dockerBuildSecrets(dockerBuildSecrets: Map) + + /** + * @param dockerBuildSsh SSH agent socket or keys. + * Requires building with docker buildkit. + */ + public fun dockerBuildSsh(dockerBuildSsh: String) + + /** + * @param dockerBuildTarget Target build stage in a Dockerfile with multiple build stages. + * Only allowed when `directory` is set. + */ + public fun dockerBuildTarget(dockerBuildTarget: String) + + /** + * @param dockerFile The name of the file with build instructions. + * Only allowed when `directory` is set. + */ + public fun dockerFile(dockerFile: String) + + /** + * @param dockerOutputs Outputs. + */ + public fun dockerOutputs(dockerOutputs: List) + + /** + * @param dockerOutputs Outputs. + */ + public fun dockerOutputs(vararg dockerOutputs: String) + + /** + * @param executable A command-line executable that returns the name of a local Docker image on + * stdout after being run. + */ + public fun executable(executable: List) + + /** + * @param executable A command-line executable that returns the name of a local Docker image on + * stdout after being run. + */ + public fun executable(vararg executable: String) + + /** + * @param networkMode Networking mode for the RUN commands during build. *Requires Docker Engine + * API v1.25+*. + * Specify this property to build images on a specific networking mode. + */ + public fun networkMode(networkMode: String) + + /** + * @param platform Platform to build for. *Requires Docker Buildx*. + * Specify this property to build images on a specific platform/architecture. + */ + public fun platform(platform: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.DockerImageSource.Builder = + software.amazon.awscdk.cloud_assembly_schema.DockerImageSource.builder() + + /** + * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. + */ + override fun cacheDisabled(cacheDisabled: Boolean) { + cdkBuilder.cacheDisabled(cacheDisabled) + } + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + override fun cacheFrom(cacheFrom: List) { + cdkBuilder.cacheFrom(cacheFrom.map(DockerCacheOption.Companion::unwrap)) + } + + /** + * @param cacheFrom Cache from options to pass to the `docker build` command. + */ + override fun cacheFrom(vararg cacheFrom: DockerCacheOption): Unit = + cacheFrom(cacheFrom.toList()) + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + override fun cacheTo(cacheTo: DockerCacheOption) { + cdkBuilder.cacheTo(cacheTo.let(DockerCacheOption.Companion::unwrap)) + } + + /** + * @param cacheTo Cache to options to pass to the `docker build` command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7896b64a65f5674dc57a15b7bbb6c91655e53afcebae1df26b9008a3c4166ac4") + override fun cacheTo(cacheTo: DockerCacheOption.Builder.() -> Unit): Unit = + cacheTo(DockerCacheOption(cacheTo)) + + /** + * @param directory The directory containing the Docker image build instructions. + * This path is relative to the asset manifest location. + */ + override fun directory(directory: String) { + cdkBuilder.directory(directory) + } + + /** + * @param dockerBuildArgs Additional build arguments. + * Only allowed when `directory` is set. + */ + override fun dockerBuildArgs(dockerBuildArgs: Map) { + cdkBuilder.dockerBuildArgs(dockerBuildArgs) + } + + /** + * @param dockerBuildSecrets Additional build secrets. + * Only allowed when `directory` is set. + */ + override fun dockerBuildSecrets(dockerBuildSecrets: Map) { + cdkBuilder.dockerBuildSecrets(dockerBuildSecrets) + } + + /** + * @param dockerBuildSsh SSH agent socket or keys. + * Requires building with docker buildkit. + */ + override fun dockerBuildSsh(dockerBuildSsh: String) { + cdkBuilder.dockerBuildSsh(dockerBuildSsh) + } + + /** + * @param dockerBuildTarget Target build stage in a Dockerfile with multiple build stages. + * Only allowed when `directory` is set. + */ + override fun dockerBuildTarget(dockerBuildTarget: String) { + cdkBuilder.dockerBuildTarget(dockerBuildTarget) + } + + /** + * @param dockerFile The name of the file with build instructions. + * Only allowed when `directory` is set. + */ + override fun dockerFile(dockerFile: String) { + cdkBuilder.dockerFile(dockerFile) + } + + /** + * @param dockerOutputs Outputs. + */ + override fun dockerOutputs(dockerOutputs: List) { + cdkBuilder.dockerOutputs(dockerOutputs) + } + + /** + * @param dockerOutputs Outputs. + */ + override fun dockerOutputs(vararg dockerOutputs: String): Unit = + dockerOutputs(dockerOutputs.toList()) + + /** + * @param executable A command-line executable that returns the name of a local Docker image on + * stdout after being run. + */ + override fun executable(executable: List) { + cdkBuilder.executable(executable) + } + + /** + * @param executable A command-line executable that returns the name of a local Docker image on + * stdout after being run. + */ + override fun executable(vararg executable: String): Unit = executable(executable.toList()) + + /** + * @param networkMode Networking mode for the RUN commands during build. *Requires Docker Engine + * API v1.25+*. + * Specify this property to build images on a specific networking mode. + */ + override fun networkMode(networkMode: String) { + cdkBuilder.networkMode(networkMode) + } + + /** + * @param platform Platform to build for. *Requires Docker Buildx*. + * Specify this property to build images on a specific platform/architecture. + */ + override fun platform(platform: String) { + cdkBuilder.platform(platform) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.DockerImageSource = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageSource, + ) : CdkObject(cdkObject), + DockerImageSource { + /** + * Disable the cache and pass `--no-cache` to the `docker build` command. + * + * Default: - cache is used + */ + override fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() + + /** + * Cache from options to pass to the `docker build` command. + * + * Default: - no cache from options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + override fun cacheFrom(): List = + unwrap(this).getCacheFrom()?.map(DockerCacheOption::wrap) ?: emptyList() + + /** + * Cache to options to pass to the `docker build` command. + * + * Default: - no cache to options are passed to the build command + * + * [Documentation](https://docs.docker.com/build/cache/backends/) + */ + override fun cacheTo(): DockerCacheOption? = + unwrap(this).getCacheTo()?.let(DockerCacheOption::wrap) + + /** + * The directory containing the Docker image build instructions. + * + * This path is relative to the asset manifest location. + * + * Default: - Exactly one of `directory` and `executable` is required + */ + override fun directory(): String? = unwrap(this).getDirectory() + + /** + * Additional build arguments. + * + * Only allowed when `directory` is set. + * + * Default: - No additional build arguments + */ + override fun dockerBuildArgs(): Map = unwrap(this).getDockerBuildArgs() ?: + emptyMap() + + /** + * Additional build secrets. + * + * Only allowed when `directory` is set. + * + * Default: - No additional build secrets + */ + override fun dockerBuildSecrets(): Map = unwrap(this).getDockerBuildSecrets() ?: + emptyMap() + + /** + * SSH agent socket or keys. + * + * Requires building with docker buildkit. + * + * Default: - No ssh flag is set + */ + override fun dockerBuildSsh(): String? = unwrap(this).getDockerBuildSsh() + + /** + * Target build stage in a Dockerfile with multiple build stages. + * + * Only allowed when `directory` is set. + * + * Default: - The last stage in the Dockerfile + */ + override fun dockerBuildTarget(): String? = unwrap(this).getDockerBuildTarget() + + /** + * The name of the file with build instructions. + * + * Only allowed when `directory` is set. + * + * Default: "Dockerfile" + */ + override fun dockerFile(): String? = unwrap(this).getDockerFile() + + /** + * Outputs. + * + * Default: - no outputs are passed to the build command (default outputs are used) + * + * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) + */ + override fun dockerOutputs(): List = unwrap(this).getDockerOutputs() ?: emptyList() + + /** + * A command-line executable that returns the name of a local Docker image on stdout after being + * run. + * + * Default: - Exactly one of `directory` and `executable` is required + */ + override fun executable(): List = unwrap(this).getExecutable() ?: emptyList() + + /** + * Networking mode for the RUN commands during build. *Requires Docker Engine API v1.25+*. + * + * Specify this property to build images on a specific networking mode. + * + * Default: - no networking mode specified + */ + override fun networkMode(): String? = unwrap(this).getNetworkMode() + + /** + * Platform to build for. *Requires Docker Buildx*. + * + * Specify this property to build images on a specific platform/architecture. + * + * Default: - current machine platform + */ + override fun platform(): String? = unwrap(this).getPlatform() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DockerImageSource { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.DockerImageSource): + DockerImageSource = CdkObjectWrappers.wrap(cdkObject) as? DockerImageSource ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DockerImageSource): + software.amazon.awscdk.cloud_assembly_schema.DockerImageSource = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.DockerImageSource + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/EndpointServiceAvailabilityZonesContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/EndpointServiceAvailabilityZonesContextQuery.kt new file mode 100644 index 0000000000..5b2e5dac61 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/EndpointServiceAvailabilityZonesContextQuery.kt @@ -0,0 +1,203 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query to endpoint service context provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * EndpointServiceAvailabilityZonesContextQuery endpointServiceAvailabilityZonesContextQuery = + * EndpointServiceAvailabilityZonesContextQuery.builder() + * .account("account") + * .region("region") + * .serviceName("serviceName") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface EndpointServiceAvailabilityZonesContextQuery : ContextLookupRoleOptions { + /** + * Query service name. + */ + public fun serviceName(): String + + /** + * A builder for [EndpointServiceAvailabilityZonesContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + + /** + * @param serviceName Query service name. + */ + public fun serviceName(serviceName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery.Builder + = + software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param serviceName Query service name. + */ + override fun serviceName(serviceName: String) { + cdkBuilder.serviceName(serviceName) + } + + public fun build(): + software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery, + ) : CdkObject(cdkObject), + EndpointServiceAvailabilityZonesContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + + /** + * Query service name. + */ + override fun serviceName(): String = unwrap(this).getServiceName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + EndpointServiceAvailabilityZonesContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery): + EndpointServiceAvailabilityZonesContextQuery = CdkObjectWrappers.wrap(cdkObject) as? + EndpointServiceAvailabilityZonesContextQuery ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EndpointServiceAvailabilityZonesContextQuery): + software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.EndpointServiceAvailabilityZonesContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAsset.kt new file mode 100644 index 0000000000..24a07e913a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAsset.kt @@ -0,0 +1,133 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * A file asset. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * FileAsset fileAsset = FileAsset.builder() + * .destinations(Map.of( + * "destinationsKey", FileDestination.builder() + * .bucketName("bucketName") + * .objectKey("objectKey") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build())) + * .source(FileSource.builder() + * .executable(List.of("executable")) + * .packaging(FileAssetPackaging.FILE) + * .path("path") + * .build()) + * .build(); + * ``` + */ +public interface FileAsset { + /** + * Destinations for this file asset. + */ + public fun destinations(): Map + + /** + * Source description for file assets. + */ + public fun source(): FileSource + + /** + * A builder for [FileAsset] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinations Destinations for this file asset. + */ + public fun destinations(destinations: Map) + + /** + * @param source Source description for file assets. + */ + public fun source(source: FileSource) + + /** + * @param source Source description for file assets. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b90eed0812c8402390ad71c61f4a9fc46bde0597a6d2a4278da7cb3c6b912434") + public fun source(source: FileSource.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.FileAsset.Builder = + software.amazon.awscdk.cloud_assembly_schema.FileAsset.builder() + + /** + * @param destinations Destinations for this file asset. + */ + override fun destinations(destinations: Map) { + cdkBuilder.destinations(destinations.mapValues{FileDestination.unwrap(it.value)}) + } + + /** + * @param source Source description for file assets. + */ + override fun source(source: FileSource) { + cdkBuilder.source(source.let(FileSource.Companion::unwrap)) + } + + /** + * @param source Source description for file assets. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b90eed0812c8402390ad71c61f4a9fc46bde0597a6d2a4278da7cb3c6b912434") + override fun source(source: FileSource.Builder.() -> Unit): Unit = source(FileSource(source)) + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.FileAsset = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAsset, + ) : CdkObject(cdkObject), + FileAsset { + /** + * Destinations for this file asset. + */ + override fun destinations(): Map = + unwrap(this).getDestinations().mapValues{FileDestination.wrap(it.value)} + + /** + * Source description for file assets. + */ + override fun source(): FileSource = unwrap(this).getSource().let(FileSource::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FileAsset { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAsset): FileAsset + = CdkObjectWrappers.wrap(cdkObject) as? FileAsset ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FileAsset): software.amazon.awscdk.cloud_assembly_schema.FileAsset + = (wrapped as CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.FileAsset + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetMetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetMetadataEntry.kt new file mode 100644 index 0000000000..5ffb3a510b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetMetadataEntry.kt @@ -0,0 +1,216 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Metadata Entry spec for files. + * + * Example: + * + * ``` + * Map<String, String> entry = Map.of( + * "packaging", "file", + * "s3BucketParameter", "bucket-parameter", + * "s3KeyParamenter", "key-parameter", + * "artifactHashParameter", "hash-parameter"); + * ``` + */ +public interface FileAssetMetadataEntry { + /** + * The name of the parameter where the hash of the bundled asset should be passed in. + */ + public fun artifactHashParameter(): String + + /** + * Logical identifier for the asset. + */ + public fun id(): String + + /** + * Requested packaging style. + */ + public fun packaging(): String + + /** + * Path on disk to the asset. + */ + public fun path(): String + + /** + * Name of parameter where S3 bucket should be passed in. + */ + public fun s3BucketParameter(): String + + /** + * Name of parameter where S3 key should be passed in. + */ + public fun s3KeyParameter(): String + + /** + * The hash of the asset source. + */ + public fun sourceHash(): String + + /** + * A builder for [FileAssetMetadataEntry] + */ + @CdkDslMarker + public interface Builder { + /** + * @param artifactHashParameter The name of the parameter where the hash of the bundled asset + * should be passed in. + */ + public fun artifactHashParameter(artifactHashParameter: String) + + /** + * @param id Logical identifier for the asset. + */ + public fun id(id: String) + + /** + * @param packaging Requested packaging style. + */ + public fun packaging(packaging: String) + + /** + * @param path Path on disk to the asset. + */ + public fun path(path: String) + + /** + * @param s3BucketParameter Name of parameter where S3 bucket should be passed in. + */ + public fun s3BucketParameter(s3BucketParameter: String) + + /** + * @param s3KeyParameter Name of parameter where S3 key should be passed in. + */ + public fun s3KeyParameter(s3KeyParameter: String) + + /** + * @param sourceHash The hash of the asset source. + */ + public fun sourceHash(sourceHash: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry.Builder = + software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry.builder() + + /** + * @param artifactHashParameter The name of the parameter where the hash of the bundled asset + * should be passed in. + */ + override fun artifactHashParameter(artifactHashParameter: String) { + cdkBuilder.artifactHashParameter(artifactHashParameter) + } + + /** + * @param id Logical identifier for the asset. + */ + override fun id(id: String) { + cdkBuilder.id(id) + } + + /** + * @param packaging Requested packaging style. + */ + override fun packaging(packaging: String) { + cdkBuilder.packaging(packaging) + } + + /** + * @param path Path on disk to the asset. + */ + override fun path(path: String) { + cdkBuilder.path(path) + } + + /** + * @param s3BucketParameter Name of parameter where S3 bucket should be passed in. + */ + override fun s3BucketParameter(s3BucketParameter: String) { + cdkBuilder.s3BucketParameter(s3BucketParameter) + } + + /** + * @param s3KeyParameter Name of parameter where S3 key should be passed in. + */ + override fun s3KeyParameter(s3KeyParameter: String) { + cdkBuilder.s3KeyParameter(s3KeyParameter) + } + + /** + * @param sourceHash The hash of the asset source. + */ + override fun sourceHash(sourceHash: String) { + cdkBuilder.sourceHash(sourceHash) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry, + ) : CdkObject(cdkObject), + FileAssetMetadataEntry { + /** + * The name of the parameter where the hash of the bundled asset should be passed in. + */ + override fun artifactHashParameter(): String = unwrap(this).getArtifactHashParameter() + + /** + * Logical identifier for the asset. + */ + override fun id(): String = unwrap(this).getId() + + /** + * Requested packaging style. + */ + override fun packaging(): String = unwrap(this).getPackaging() + + /** + * Path on disk to the asset. + */ + override fun path(): String = unwrap(this).getPath() + + /** + * Name of parameter where S3 bucket should be passed in. + */ + override fun s3BucketParameter(): String = unwrap(this).getS3BucketParameter() + + /** + * Name of parameter where S3 key should be passed in. + */ + override fun s3KeyParameter(): String = unwrap(this).getS3KeyParameter() + + /** + * The hash of the asset source. + */ + override fun sourceHash(): String = unwrap(this).getSourceHash() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FileAssetMetadataEntry { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry): + FileAssetMetadataEntry = CdkObjectWrappers.wrap(cdkObject) as? FileAssetMetadataEntry ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FileAssetMetadataEntry): + software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.FileAssetMetadataEntry + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetPackaging.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetPackaging.kt new file mode 100644 index 0000000000..7f6909107a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileAssetPackaging.kt @@ -0,0 +1,24 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class FileAssetPackaging( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging, +) { + FILE(software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging.FILE), + ZIP_DIRECTORY(software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging): + FileAssetPackaging = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging.FILE -> + FileAssetPackaging.FILE + software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY -> + FileAssetPackaging.ZIP_DIRECTORY + } + + internal fun unwrap(wrapped: FileAssetPackaging): + software.amazon.awscdk.cloud_assembly_schema.FileAssetPackaging = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileDestination.kt new file mode 100644 index 0000000000..2c53b4c321 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileDestination.kt @@ -0,0 +1,201 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Where in S3 a file asset needs to be published. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * FileDestination fileDestination = FileDestination.builder() + * .bucketName("bucketName") + * .objectKey("objectKey") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .assumeRoleArn("assumeRoleArn") + * .assumeRoleExternalId("assumeRoleExternalId") + * .region("region") + * .build(); + * ``` + */ +public interface FileDestination : AwsDestination { + /** + * The name of the bucket. + */ + public fun bucketName(): String + + /** + * The destination object key. + */ + public fun objectKey(): String + + /** + * A builder for [FileDestination] + */ + @CdkDslMarker + public interface Builder { + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + public fun assumeRoleArn(assumeRoleArn: String) + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun assumeRoleExternalId(assumeRoleExternalId: String) + + /** + * @param bucketName The name of the bucket. + */ + public fun bucketName(bucketName: String) + + /** + * @param objectKey The destination object key. + */ + public fun objectKey(objectKey: String) + + /** + * @param region The region where this asset will need to be published. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.FileDestination.Builder = + software.amazon.awscdk.cloud_assembly_schema.FileDestination.builder() + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the role. + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param assumeRoleArn The role that needs to be assumed while publishing this asset. + */ + override fun assumeRoleArn(assumeRoleArn: String) { + cdkBuilder.assumeRoleArn(assumeRoleArn) + } + + /** + * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun assumeRoleExternalId(assumeRoleExternalId: String) { + cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) + } + + /** + * @param bucketName The name of the bucket. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + /** + * @param objectKey The destination object key. + */ + override fun objectKey(objectKey: String) { + cdkBuilder.objectKey(objectKey) + } + + /** + * @param region The region where this asset will need to be published. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.FileDestination = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileDestination, + ) : CdkObject(cdkObject), + FileDestination { + /** + * Additional options to pass to STS when assuming the role. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The role that needs to be assumed while publishing this asset. + * + * Default: - No role will be assumed + */ + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() + + /** + * The name of the bucket. + */ + override fun bucketName(): String = unwrap(this).getBucketName() + + /** + * The destination object key. + */ + override fun objectKey(): String = unwrap(this).getObjectKey() + + /** + * The region where this asset will need to be published. + * + * Default: - Current region + */ + override fun region(): String? = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FileDestination { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileDestination): + FileDestination = CdkObjectWrappers.wrap(cdkObject) as? FileDestination ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FileDestination): + software.amazon.awscdk.cloud_assembly_schema.FileDestination = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.FileDestination + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileSource.kt new file mode 100644 index 0000000000..e5f4749cd7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/FileSource.kt @@ -0,0 +1,162 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Describe the source of a file asset. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * FileSource fileSource = FileSource.builder() + * .executable(List.of("executable")) + * .packaging(FileAssetPackaging.FILE) + * .path("path") + * .build(); + * ``` + */ +public interface FileSource { + /** + * External command which will produce the file asset to upload. + * + * Default: - Exactly one of `executable` and `path` is required. + */ + public fun executable(): List = unwrap(this).getExecutable() ?: emptyList() + + /** + * Packaging method. + * + * Only allowed when `path` is specified. + * + * Default: FILE + */ + public fun packaging(): FileAssetPackaging? = + unwrap(this).getPackaging()?.let(FileAssetPackaging::wrap) + + /** + * The filesystem object to upload. + * + * This path is relative to the asset manifest location. + * + * Default: - Exactly one of `executable` and `path` is required. + */ + public fun path(): String? = unwrap(this).getPath() + + /** + * A builder for [FileSource] + */ + @CdkDslMarker + public interface Builder { + /** + * @param executable External command which will produce the file asset to upload. + */ + public fun executable(executable: List) + + /** + * @param executable External command which will produce the file asset to upload. + */ + public fun executable(vararg executable: String) + + /** + * @param packaging Packaging method. + * Only allowed when `path` is specified. + */ + public fun packaging(packaging: FileAssetPackaging) + + /** + * @param path The filesystem object to upload. + * This path is relative to the asset manifest location. + */ + public fun path(path: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.FileSource.Builder = + software.amazon.awscdk.cloud_assembly_schema.FileSource.builder() + + /** + * @param executable External command which will produce the file asset to upload. + */ + override fun executable(executable: List) { + cdkBuilder.executable(executable) + } + + /** + * @param executable External command which will produce the file asset to upload. + */ + override fun executable(vararg executable: String): Unit = executable(executable.toList()) + + /** + * @param packaging Packaging method. + * Only allowed when `path` is specified. + */ + override fun packaging(packaging: FileAssetPackaging) { + cdkBuilder.packaging(packaging.let(FileAssetPackaging.Companion::unwrap)) + } + + /** + * @param path The filesystem object to upload. + * This path is relative to the asset manifest location. + */ + override fun path(path: String) { + cdkBuilder.path(path) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.FileSource = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileSource, + ) : CdkObject(cdkObject), + FileSource { + /** + * External command which will produce the file asset to upload. + * + * Default: - Exactly one of `executable` and `path` is required. + */ + override fun executable(): List = unwrap(this).getExecutable() ?: emptyList() + + /** + * Packaging method. + * + * Only allowed when `path` is specified. + * + * Default: FILE + */ + override fun packaging(): FileAssetPackaging? = + unwrap(this).getPackaging()?.let(FileAssetPackaging::wrap) + + /** + * The filesystem object to upload. + * + * This path is relative to the asset manifest location. + * + * Default: - Exactly one of `executable` and `path` is required. + */ + override fun path(): String? = unwrap(this).getPath() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FileSource { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.FileSource): + FileSource = CdkObjectWrappers.wrap(cdkObject) as? FileSource ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FileSource): + software.amazon.awscdk.cloud_assembly_schema.FileSource = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.cloud_assembly_schema.FileSource + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Hooks.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Hooks.kt new file mode 100644 index 0000000000..da6e9d17dc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Hooks.kt @@ -0,0 +1,208 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Commands to run at predefined points during the integration test workflow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Hooks hooks = Hooks.builder() + * .postDeploy(List.of("postDeploy")) + * .postDestroy(List.of("postDestroy")) + * .preDeploy(List.of("preDeploy")) + * .preDestroy(List.of("preDestroy")) + * .build(); + * ``` + */ +public interface Hooks { + /** + * Commands to run prior after deploying the cdk stacks in the integration test. + * + * Default: - no commands + */ + public fun postDeploy(): List = unwrap(this).getPostDeploy() ?: emptyList() + + /** + * Commands to run after destroying the cdk stacks in the integration test. + * + * Default: - no commands + */ + public fun postDestroy(): List = unwrap(this).getPostDestroy() ?: emptyList() + + /** + * Commands to run prior to deploying the cdk stacks in the integration test. + * + * Default: - no commands + */ + public fun preDeploy(): List = unwrap(this).getPreDeploy() ?: emptyList() + + /** + * Commands to run prior to destroying the cdk stacks in the integration test. + * + * Default: - no commands + */ + public fun preDestroy(): List = unwrap(this).getPreDestroy() ?: emptyList() + + /** + * A builder for [Hooks] + */ + @CdkDslMarker + public interface Builder { + /** + * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration + * test. + */ + public fun postDeploy(postDeploy: List) + + /** + * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration + * test. + */ + public fun postDeploy(vararg postDeploy: String) + + /** + * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. + */ + public fun postDestroy(postDestroy: List) + + /** + * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. + */ + public fun postDestroy(vararg postDestroy: String) + + /** + * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. + */ + public fun preDeploy(preDeploy: List) + + /** + * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. + */ + public fun preDeploy(vararg preDeploy: String) + + /** + * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. + */ + public fun preDestroy(preDestroy: List) + + /** + * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. + */ + public fun preDestroy(vararg preDestroy: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.Hooks.Builder = + software.amazon.awscdk.cloud_assembly_schema.Hooks.builder() + + /** + * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration + * test. + */ + override fun postDeploy(postDeploy: List) { + cdkBuilder.postDeploy(postDeploy) + } + + /** + * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration + * test. + */ + override fun postDeploy(vararg postDeploy: String): Unit = postDeploy(postDeploy.toList()) + + /** + * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. + */ + override fun postDestroy(postDestroy: List) { + cdkBuilder.postDestroy(postDestroy) + } + + /** + * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. + */ + override fun postDestroy(vararg postDestroy: String): Unit = postDestroy(postDestroy.toList()) + + /** + * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. + */ + override fun preDeploy(preDeploy: List) { + cdkBuilder.preDeploy(preDeploy) + } + + /** + * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. + */ + override fun preDeploy(vararg preDeploy: String): Unit = preDeploy(preDeploy.toList()) + + /** + * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. + */ + override fun preDestroy(preDestroy: List) { + cdkBuilder.preDestroy(preDestroy) + } + + /** + * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. + */ + override fun preDestroy(vararg preDestroy: String): Unit = preDestroy(preDestroy.toList()) + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.Hooks = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.Hooks, + ) : CdkObject(cdkObject), + Hooks { + /** + * Commands to run prior after deploying the cdk stacks in the integration test. + * + * Default: - no commands + */ + override fun postDeploy(): List = unwrap(this).getPostDeploy() ?: emptyList() + + /** + * Commands to run after destroying the cdk stacks in the integration test. + * + * Default: - no commands + */ + override fun postDestroy(): List = unwrap(this).getPostDestroy() ?: emptyList() + + /** + * Commands to run prior to deploying the cdk stacks in the integration test. + * + * Default: - no commands + */ + override fun preDeploy(): List = unwrap(this).getPreDeploy() ?: emptyList() + + /** + * Commands to run prior to destroying the cdk stacks in the integration test. + * + * Default: - no commands + */ + override fun preDestroy(): List = unwrap(this).getPreDestroy() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): Hooks { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.Hooks): Hooks = + CdkObjectWrappers.wrap(cdkObject) as? Hooks ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: Hooks): software.amazon.awscdk.cloud_assembly_schema.Hooks = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.Hooks + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/HostedZoneContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/HostedZoneContextQuery.kt new file mode 100644 index 0000000000..5cf773dab7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/HostedZoneContextQuery.kt @@ -0,0 +1,263 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query to hosted zone context provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * HostedZoneContextQuery hostedZoneContextQuery = HostedZoneContextQuery.builder() + * .account("account") + * .domainName("domainName") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .privateZone(false) + * .vpcId("vpcId") + * .build(); + * ``` + */ +public interface HostedZoneContextQuery : ContextLookupRoleOptions { + /** + * The domain name e.g. example.com to lookup. + */ + public fun domainName(): String + + /** + * True if the zone you want to find is a private hosted zone. + * + * Default: false + */ + public fun privateZone(): Boolean? = unwrap(this).getPrivateZone() + + /** + * The VPC ID to that the private zone must be associated with. + * + * If you provide VPC ID and privateZone is false, this will return no results + * and raise an error. + * + * Default: - Required if privateZone=true + */ + public fun vpcId(): String? = unwrap(this).getVpcId() + + /** + * A builder for [HostedZoneContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param domainName The domain name e.g. example.com to lookup. + */ + public fun domainName(domainName: String) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param privateZone True if the zone you want to find is a private hosted zone. + */ + public fun privateZone(privateZone: Boolean) + + /** + * @param region Query region. + */ + public fun region(region: String) + + /** + * @param vpcId The VPC ID to that the private zone must be associated with. + * If you provide VPC ID and privateZone is false, this will return no results + * and raise an error. + */ + public fun vpcId(vpcId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param domainName The domain name e.g. example.com to lookup. + */ + override fun domainName(domainName: String) { + cdkBuilder.domainName(domainName) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param privateZone True if the zone you want to find is a private hosted zone. + */ + override fun privateZone(privateZone: Boolean) { + cdkBuilder.privateZone(privateZone) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param vpcId The VPC ID to that the private zone must be associated with. + * If you provide VPC ID and privateZone is false, this will return no results + * and raise an error. + */ + override fun vpcId(vpcId: String) { + cdkBuilder.vpcId(vpcId) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery, + ) : CdkObject(cdkObject), + HostedZoneContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The domain name e.g. example.com to lookup. + */ + override fun domainName(): String = unwrap(this).getDomainName() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * True if the zone you want to find is a private hosted zone. + * + * Default: false + */ + override fun privateZone(): Boolean? = unwrap(this).getPrivateZone() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + + /** + * The VPC ID to that the private zone must be associated with. + * + * If you provide VPC ID and privateZone is false, this will return no results + * and raise an error. + * + * Default: - Required if privateZone=true + */ + override fun vpcId(): String? = unwrap(this).getVpcId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): HostedZoneContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery): + HostedZoneContextQuery = CdkObjectWrappers.wrap(cdkObject) as? HostedZoneContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: HostedZoneContextQuery): + software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.HostedZoneContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/IntegManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/IntegManifest.kt new file mode 100644 index 0000000000..947cd09dca --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/IntegManifest.kt @@ -0,0 +1,287 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Definitions for the integration testing manifest. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * IntegManifest integManifest = IntegManifest.builder() + * .testCases(Map.of( + * "testCasesKey", TestCase.builder() + * .stacks(List.of("stacks")) + * // the properties below are optional + * .allowDestroy(List.of("allowDestroy")) + * .assertionStack("assertionStack") + * .assertionStackName("assertionStackName") + * .cdkCommandOptions(CdkCommands.builder() + * .deploy(DeployCommand.builder() + * .args(DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .destroy(DestroyCommand.builder() + * .args(DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .build()) + * .diffAssets(false) + * .hooks(Hooks.builder() + * .postDeploy(List.of("postDeploy")) + * .postDestroy(List.of("postDestroy")) + * .preDeploy(List.of("preDeploy")) + * .preDestroy(List.of("preDestroy")) + * .build()) + * .regions(List.of("regions")) + * .stackUpdateWorkflow(false) + * .build())) + * .version("version") + * // the properties below are optional + * .enableLookups(false) + * .synthContext(Map.of( + * "synthContextKey", "synthContext")) + * .build(); + * ``` + */ +public interface IntegManifest { + /** + * Enable lookups for this test. + * + * If lookups are enabled + * then `stackUpdateWorkflow` must be set to false. + * Lookups should only be enabled when you are explicitely testing + * lookups. + * + * Default: false + */ + public fun enableLookups(): Boolean? = unwrap(this).getEnableLookups() + + /** + * Additional context to use when performing a synth. + * + * Any context provided here will override + * any default context + * + * Default: - no additional context + */ + public fun synthContext(): Map = unwrap(this).getSynthContext() ?: emptyMap() + + /** + * test cases. + */ + public fun testCases(): Map + + /** + * Version of the manifest. + */ + public fun version(): String + + /** + * A builder for [IntegManifest] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enableLookups Enable lookups for this test. + * If lookups are enabled + * then `stackUpdateWorkflow` must be set to false. + * Lookups should only be enabled when you are explicitely testing + * lookups. + */ + public fun enableLookups(enableLookups: Boolean) + + /** + * @param synthContext Additional context to use when performing a synth. + * Any context provided here will override + * any default context + */ + public fun synthContext(synthContext: Map) + + /** + * @param testCases test cases. + */ + public fun testCases(testCases: Map) + + /** + * @param version Version of the manifest. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.IntegManifest.Builder = + software.amazon.awscdk.cloud_assembly_schema.IntegManifest.builder() + + /** + * @param enableLookups Enable lookups for this test. + * If lookups are enabled + * then `stackUpdateWorkflow` must be set to false. + * Lookups should only be enabled when you are explicitely testing + * lookups. + */ + override fun enableLookups(enableLookups: Boolean) { + cdkBuilder.enableLookups(enableLookups) + } + + /** + * @param synthContext Additional context to use when performing a synth. + * Any context provided here will override + * any default context + */ + override fun synthContext(synthContext: Map) { + cdkBuilder.synthContext(synthContext) + } + + /** + * @param testCases test cases. + */ + override fun testCases(testCases: Map) { + cdkBuilder.testCases(testCases.mapValues{TestCase.unwrap(it.value)}) + } + + /** + * @param version Version of the manifest. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.IntegManifest = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.IntegManifest, + ) : CdkObject(cdkObject), + IntegManifest { + /** + * Enable lookups for this test. + * + * If lookups are enabled + * then `stackUpdateWorkflow` must be set to false. + * Lookups should only be enabled when you are explicitely testing + * lookups. + * + * Default: false + */ + override fun enableLookups(): Boolean? = unwrap(this).getEnableLookups() + + /** + * Additional context to use when performing a synth. + * + * Any context provided here will override + * any default context + * + * Default: - no additional context + */ + override fun synthContext(): Map = unwrap(this).getSynthContext() ?: emptyMap() + + /** + * test cases. + */ + override fun testCases(): Map = + unwrap(this).getTestCases().mapValues{TestCase.wrap(it.value)} + + /** + * Version of the manifest. + */ + override fun version(): String = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IntegManifest { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.IntegManifest): + IntegManifest = CdkObjectWrappers.wrap(cdkObject) as? IntegManifest ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IntegManifest): + software.amazon.awscdk.cloud_assembly_schema.IntegManifest = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.IntegManifest + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/KeyContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/KeyContextQuery.kt new file mode 100644 index 0000000000..fb54bfaef1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/KeyContextQuery.kt @@ -0,0 +1,196 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query input for looking up a KMS Key. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * KeyContextQuery keyContextQuery = KeyContextQuery.builder() + * .account("account") + * .aliasName("aliasName") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface KeyContextQuery : ContextLookupRoleOptions { + /** + * Alias name used to search the Key. + */ + public fun aliasName(): String + + /** + * A builder for [KeyContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param aliasName Alias name used to search the Key. + */ + public fun aliasName(aliasName: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param aliasName Alias name used to search the Key. + */ + override fun aliasName(aliasName: String) { + cdkBuilder.aliasName(aliasName) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery, + ) : CdkObject(cdkObject), + KeyContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Alias name used to search the Key. + */ + override fun aliasName(): String = unwrap(this).getAliasName() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): KeyContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery): + KeyContextQuery = CdkObjectWrappers.wrap(cdkObject) as? KeyContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: KeyContextQuery): + software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.KeyContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerContextQuery.kt new file mode 100644 index 0000000000..a7cf8ef090 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerContextQuery.kt @@ -0,0 +1,251 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Query input for looking up a load balancer. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * LoadBalancerContextQuery loadBalancerContextQuery = LoadBalancerContextQuery.builder() + * .account("account") + * .loadBalancerType(LoadBalancerType.NETWORK) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .loadBalancerArn("loadBalancerArn") + * .loadBalancerTags(List.of(Tag.builder() + * .key("key") + * .value("value") + * .build())) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface LoadBalancerContextQuery : LoadBalancerFilter { + /** + * A builder for [LoadBalancerContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + public fun loadBalancerArn(loadBalancerArn: String) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(loadBalancerTags: List) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(vararg loadBalancerTags: Tag) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + public fun loadBalancerType(loadBalancerType: LoadBalancerType) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + override fun loadBalancerArn(loadBalancerArn: String) { + cdkBuilder.loadBalancerArn(loadBalancerArn) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(loadBalancerTags: List) { + cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = + loadBalancerTags(loadBalancerTags.toList()) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + override fun loadBalancerType(loadBalancerType: LoadBalancerType) { + cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery, + ) : CdkObject(cdkObject), + LoadBalancerContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * Find by load balancer's ARN. + * + * Default: - does not search by load balancer arn + */ + override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() + + /** + * Match load balancer tags. + * + * Default: - does not match load balancers by tags + */ + override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) + ?: emptyList() + + /** + * Filter load balancers by their type. + */ + override fun loadBalancerType(): LoadBalancerType = + unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LoadBalancerContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery): + LoadBalancerContextQuery = CdkObjectWrappers.wrap(cdkObject) as? LoadBalancerContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LoadBalancerContextQuery): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerFilter.kt new file mode 100644 index 0000000000..86b015a187 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerFilter.kt @@ -0,0 +1,268 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Filters for selecting load balancers. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * LoadBalancerFilter loadBalancerFilter = LoadBalancerFilter.builder() + * .account("account") + * .loadBalancerType(LoadBalancerType.NETWORK) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .loadBalancerArn("loadBalancerArn") + * .loadBalancerTags(List.of(Tag.builder() + * .key("key") + * .value("value") + * .build())) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface LoadBalancerFilter : ContextLookupRoleOptions { + /** + * Find by load balancer's ARN. + * + * Default: - does not search by load balancer arn + */ + public fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() + + /** + * Match load balancer tags. + * + * Default: - does not match load balancers by tags + */ + public fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) ?: + emptyList() + + /** + * Filter load balancers by their type. + */ + public fun loadBalancerType(): LoadBalancerType + + /** + * A builder for [LoadBalancerFilter] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + public fun loadBalancerArn(loadBalancerArn: String) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(loadBalancerTags: List) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(vararg loadBalancerTags: Tag) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + public fun loadBalancerType(loadBalancerType: LoadBalancerType) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter.Builder + = software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + override fun loadBalancerArn(loadBalancerArn: String) { + cdkBuilder.loadBalancerArn(loadBalancerArn) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(loadBalancerTags: List) { + cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = + loadBalancerTags(loadBalancerTags.toList()) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + override fun loadBalancerType(loadBalancerType: LoadBalancerType) { + cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter, + ) : CdkObject(cdkObject), + LoadBalancerFilter { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * Find by load balancer's ARN. + * + * Default: - does not search by load balancer arn + */ + override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() + + /** + * Match load balancer tags. + * + * Default: - does not match load balancers by tags + */ + override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) + ?: emptyList() + + /** + * Filter load balancers by their type. + */ + override fun loadBalancerType(): LoadBalancerType = + unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LoadBalancerFilter { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter): + LoadBalancerFilter = CdkObjectWrappers.wrap(cdkObject) as? LoadBalancerFilter ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LoadBalancerFilter): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.LoadBalancerFilter + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerContextQuery.kt new file mode 100644 index 0000000000..361fe6f368 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerContextQuery.kt @@ -0,0 +1,337 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Query input for looking up a load balancer listener. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * LoadBalancerListenerContextQuery loadBalancerListenerContextQuery = + * LoadBalancerListenerContextQuery.builder() + * .account("account") + * .loadBalancerType(LoadBalancerType.NETWORK) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .listenerArn("listenerArn") + * .listenerPort(123) + * .listenerProtocol(LoadBalancerListenerProtocol.HTTP) + * .loadBalancerArn("loadBalancerArn") + * .loadBalancerTags(List.of(Tag.builder() + * .key("key") + * .value("value") + * .build())) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface LoadBalancerListenerContextQuery : LoadBalancerFilter { + /** + * Find by listener's arn. + * + * Default: - does not find by listener arn + */ + public fun listenerArn(): String? = unwrap(this).getListenerArn() + + /** + * Filter listeners by listener port. + * + * Default: - does not filter by a listener port + */ + public fun listenerPort(): Number? = unwrap(this).getListenerPort() + + /** + * Filter by listener protocol. + * + * Default: - does not filter by listener protocol + */ + public fun listenerProtocol(): LoadBalancerListenerProtocol? = + unwrap(this).getListenerProtocol()?.let(LoadBalancerListenerProtocol::wrap) + + /** + * A builder for [LoadBalancerListenerContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param listenerArn Find by listener's arn. + */ + public fun listenerArn(listenerArn: String) + + /** + * @param listenerPort Filter listeners by listener port. + */ + public fun listenerPort(listenerPort: Number) + + /** + * @param listenerProtocol Filter by listener protocol. + */ + public fun listenerProtocol(listenerProtocol: LoadBalancerListenerProtocol) + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + public fun loadBalancerArn(loadBalancerArn: String) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(loadBalancerTags: List) + + /** + * @param loadBalancerTags Match load balancer tags. + */ + public fun loadBalancerTags(vararg loadBalancerTags: Tag) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + public fun loadBalancerType(loadBalancerType: LoadBalancerType) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param listenerArn Find by listener's arn. + */ + override fun listenerArn(listenerArn: String) { + cdkBuilder.listenerArn(listenerArn) + } + + /** + * @param listenerPort Filter listeners by listener port. + */ + override fun listenerPort(listenerPort: Number) { + cdkBuilder.listenerPort(listenerPort) + } + + /** + * @param listenerProtocol Filter by listener protocol. + */ + override fun listenerProtocol(listenerProtocol: LoadBalancerListenerProtocol) { + cdkBuilder.listenerProtocol(listenerProtocol.let(LoadBalancerListenerProtocol.Companion::unwrap)) + } + + /** + * @param loadBalancerArn Find by load balancer's ARN. + */ + override fun loadBalancerArn(loadBalancerArn: String) { + cdkBuilder.loadBalancerArn(loadBalancerArn) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(loadBalancerTags: List) { + cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) + } + + /** + * @param loadBalancerTags Match load balancer tags. + */ + override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = + loadBalancerTags(loadBalancerTags.toList()) + + /** + * @param loadBalancerType Filter load balancers by their type. + */ + override fun loadBalancerType(loadBalancerType: LoadBalancerType) { + cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery, + ) : CdkObject(cdkObject), + LoadBalancerListenerContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * Find by listener's arn. + * + * Default: - does not find by listener arn + */ + override fun listenerArn(): String? = unwrap(this).getListenerArn() + + /** + * Filter listeners by listener port. + * + * Default: - does not filter by a listener port + */ + override fun listenerPort(): Number? = unwrap(this).getListenerPort() + + /** + * Filter by listener protocol. + * + * Default: - does not filter by listener protocol + */ + override fun listenerProtocol(): LoadBalancerListenerProtocol? = + unwrap(this).getListenerProtocol()?.let(LoadBalancerListenerProtocol::wrap) + + /** + * Find by load balancer's ARN. + * + * Default: - does not search by load balancer arn + */ + override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() + + /** + * Match load balancer tags. + * + * Default: - does not match load balancers by tags + */ + override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) + ?: emptyList() + + /** + * Filter load balancers by their type. + */ + override fun loadBalancerType(): LoadBalancerType = + unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LoadBalancerListenerContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery): + LoadBalancerListenerContextQuery = CdkObjectWrappers.wrap(cdkObject) as? + LoadBalancerListenerContextQuery ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: LoadBalancerListenerContextQuery): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerProtocol.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerProtocol.kt new file mode 100644 index 0000000000..d4809bb5a3 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerListenerProtocol.kt @@ -0,0 +1,38 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class LoadBalancerListenerProtocol( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol, +) { + HTTP(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.HTTP), + HTTPS(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.HTTPS), + TCP(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TCP), + TLS(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TLS), + UDP(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.UDP), + TCP_UDP(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TCP_UDP), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol): + LoadBalancerListenerProtocol = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.HTTP -> + LoadBalancerListenerProtocol.HTTP + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.HTTPS -> + LoadBalancerListenerProtocol.HTTPS + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TCP -> + LoadBalancerListenerProtocol.TCP + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TLS -> + LoadBalancerListenerProtocol.TLS + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.UDP -> + LoadBalancerListenerProtocol.UDP + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol.TCP_UDP -> + LoadBalancerListenerProtocol.TCP_UDP + } + + internal fun unwrap(wrapped: LoadBalancerListenerProtocol): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerListenerProtocol = + wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerType.kt new file mode 100644 index 0000000000..07aa03f1e7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadBalancerType.kt @@ -0,0 +1,24 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class LoadBalancerType( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType, +) { + NETWORK(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType.NETWORK), + APPLICATION(software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType.APPLICATION), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType): + LoadBalancerType = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType.NETWORK -> + LoadBalancerType.NETWORK + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType.APPLICATION -> + LoadBalancerType.APPLICATION + } + + internal fun unwrap(wrapped: LoadBalancerType): + software.amazon.awscdk.cloud_assembly_schema.LoadBalancerType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadManifestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadManifestOptions.kt new file mode 100644 index 0000000000..6d1403c07a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/LoadManifestOptions.kt @@ -0,0 +1,173 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.Unit + +/** + * Options for the loadManifest operation. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * LoadManifestOptions loadManifestOptions = LoadManifestOptions.builder() + * .skipEnumCheck(false) + * .skipVersionCheck(false) + * .topoSort(false) + * .build(); + * ``` + */ +public interface LoadManifestOptions { + /** + * Skip enum checks. + * + * This means you may read enum values you don't know about yet. Make sure to always + * check the values of enums you encounter in the manifest. + * + * Default: false + */ + public fun skipEnumCheck(): Boolean? = unwrap(this).getSkipEnumCheck() + + /** + * Skip the version check. + * + * This means you may read a newer cloud assembly than the CX API is designed + * to support, and your application may not be aware of all features that in use + * in the Cloud Assembly. + * + * Default: false + */ + public fun skipVersionCheck(): Boolean? = unwrap(this).getSkipVersionCheck() + + /** + * Topologically sort all artifacts. + * + * This parameter is only respected by the constructor of `CloudAssembly`. The + * property lives here for backwards compatibility reasons. + * + * Default: true + */ + public fun topoSort(): Boolean? = unwrap(this).getTopoSort() + + /** + * A builder for [LoadManifestOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param skipEnumCheck Skip enum checks. + * This means you may read enum values you don't know about yet. Make sure to always + * check the values of enums you encounter in the manifest. + */ + public fun skipEnumCheck(skipEnumCheck: Boolean) + + /** + * @param skipVersionCheck Skip the version check. + * This means you may read a newer cloud assembly than the CX API is designed + * to support, and your application may not be aware of all features that in use + * in the Cloud Assembly. + */ + public fun skipVersionCheck(skipVersionCheck: Boolean) + + /** + * @param topoSort Topologically sort all artifacts. + * This parameter is only respected by the constructor of `CloudAssembly`. The + * property lives here for backwards compatibility reasons. + */ + public fun topoSort(topoSort: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions.Builder + = software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions.builder() + + /** + * @param skipEnumCheck Skip enum checks. + * This means you may read enum values you don't know about yet. Make sure to always + * check the values of enums you encounter in the manifest. + */ + override fun skipEnumCheck(skipEnumCheck: Boolean) { + cdkBuilder.skipEnumCheck(skipEnumCheck) + } + + /** + * @param skipVersionCheck Skip the version check. + * This means you may read a newer cloud assembly than the CX API is designed + * to support, and your application may not be aware of all features that in use + * in the Cloud Assembly. + */ + override fun skipVersionCheck(skipVersionCheck: Boolean) { + cdkBuilder.skipVersionCheck(skipVersionCheck) + } + + /** + * @param topoSort Topologically sort all artifacts. + * This parameter is only respected by the constructor of `CloudAssembly`. The + * property lives here for backwards compatibility reasons. + */ + override fun topoSort(topoSort: Boolean) { + cdkBuilder.topoSort(topoSort) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions, + ) : CdkObject(cdkObject), + LoadManifestOptions { + /** + * Skip enum checks. + * + * This means you may read enum values you don't know about yet. Make sure to always + * check the values of enums you encounter in the manifest. + * + * Default: false + */ + override fun skipEnumCheck(): Boolean? = unwrap(this).getSkipEnumCheck() + + /** + * Skip the version check. + * + * This means you may read a newer cloud assembly than the CX API is designed + * to support, and your application may not be aware of all features that in use + * in the Cloud Assembly. + * + * Default: false + */ + override fun skipVersionCheck(): Boolean? = unwrap(this).getSkipVersionCheck() + + /** + * Topologically sort all artifacts. + * + * This parameter is only respected by the constructor of `CloudAssembly`. The + * property lives here for backwards compatibility reasons. + * + * Default: true + */ + override fun topoSort(): Boolean? = unwrap(this).getTopoSort() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LoadManifestOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions): + LoadManifestOptions = CdkObjectWrappers.wrap(cdkObject) as? LoadManifestOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LoadManifestOptions): + software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.LoadManifestOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Manifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Manifest.kt new file mode 100644 index 0000000000..293e3118be --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Manifest.kt @@ -0,0 +1,60 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Protocol utility class. + */ +public open class Manifest( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.Manifest, +) : CdkObject(cdkObject) { + public companion object { + public fun loadAssemblyManifest(filePath: String): AssemblyManifest = + software.amazon.awscdk.cloud_assembly_schema.Manifest.loadAssemblyManifest(filePath).let(AssemblyManifest::wrap) + + public fun loadAssemblyManifest(filePath: String, options: LoadManifestOptions): + AssemblyManifest = + software.amazon.awscdk.cloud_assembly_schema.Manifest.loadAssemblyManifest(filePath, + options.let(LoadManifestOptions.Companion::unwrap)).let(AssemblyManifest::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("24846e6ab1d65096878f923e2386bc2b1a5581fa516cc3e23a1b8a8087c1c1df") + public fun loadAssemblyManifest(filePath: String, + options: LoadManifestOptions.Builder.() -> Unit): AssemblyManifest = + loadAssemblyManifest(filePath, LoadManifestOptions(options)) + + public fun loadAssetManifest(filePath: String): AssetManifest = + software.amazon.awscdk.cloud_assembly_schema.Manifest.loadAssetManifest(filePath).let(AssetManifest::wrap) + + public fun loadIntegManifest(filePath: String): IntegManifest = + software.amazon.awscdk.cloud_assembly_schema.Manifest.loadIntegManifest(filePath).let(IntegManifest::wrap) + + public fun saveAssemblyManifest(manifest: AssemblyManifest, filePath: String) { + software.amazon.awscdk.cloud_assembly_schema.Manifest.saveAssemblyManifest(manifest.let(AssemblyManifest.Companion::unwrap), + filePath) + } + + public fun saveAssetManifest(manifest: AssetManifest, filePath: String) { + software.amazon.awscdk.cloud_assembly_schema.Manifest.saveAssetManifest(manifest.let(AssetManifest.Companion::unwrap), + filePath) + } + + public fun saveIntegManifest(manifest: IntegManifest, filePath: String) { + software.amazon.awscdk.cloud_assembly_schema.Manifest.saveIntegManifest(manifest.let(IntegManifest.Companion::unwrap), + filePath) + } + + public fun version(): String = software.amazon.awscdk.cloud_assembly_schema.Manifest.version() + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.Manifest): Manifest = + Manifest(cdkObject) + + internal fun unwrap(wrapped: Manifest): software.amazon.awscdk.cloud_assembly_schema.Manifest = + wrapped.cdkObject as software.amazon.awscdk.cloud_assembly_schema.Manifest + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MetadataEntry.kt new file mode 100644 index 0000000000..266959aa3b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MetadataEntry.kt @@ -0,0 +1,224 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * A metadata entry in a cloud assembly artifact. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * MetadataEntry metadataEntry = MetadataEntry.builder() + * .type("type") + * // the properties below are optional + * .data("data") + * .trace(List.of("trace")) + * .build(); + * ``` + */ +public interface MetadataEntry { + /** + * The data. + * + * Default: - no data. + */ + public fun `data`(): Any? = unwrap(this).getData() + + /** + * A stack trace for when the entry was created. + * + * Default: - no trace. + */ + public fun trace(): List = unwrap(this).getTrace() ?: emptyList() + + /** + * The type of the metadata entry. + */ + public fun type(): String + + /** + * A builder for [MetadataEntry] + */ + @CdkDslMarker + public interface Builder { + /** + * @param data The data. + */ + public fun `data`(`data`: String) + + /** + * @param data The data. + */ + public fun `data`(`data`: FileAssetMetadataEntry) + + /** + * @param data The data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7a0a0a8ac82574bcb7e4b57091163a6b5a3bf036f1228b6c1be58bf24c8d89fe") + public fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit) + + /** + * @param data The data. + */ + public fun `data`(`data`: ContainerImageAssetMetadataEntry) + + /** + * @param data The data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3065cb63a8f19cadc4adfe4f9b3a803124adbea1cc4dd69d202081e25b319d41") + public fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit) + + /** + * @param data The data. + */ + public fun `data`(`data`: List) + + /** + * @param data The data. + */ + public fun `data`(vararg `data`: Tag) + + /** + * @param trace A stack trace for when the entry was created. + */ + public fun trace(trace: List) + + /** + * @param trace A stack trace for when the entry was created. + */ + public fun trace(vararg trace: String) + + /** + * @param type The type of the metadata entry. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.MetadataEntry.Builder = + software.amazon.awscdk.cloud_assembly_schema.MetadataEntry.builder() + + /** + * @param data The data. + */ + override fun `data`(`data`: String) { + cdkBuilder.`data`(`data`) + } + + /** + * @param data The data. + */ + override fun `data`(`data`: FileAssetMetadataEntry) { + cdkBuilder.`data`(`data`.let(FileAssetMetadataEntry.Companion::unwrap)) + } + + /** + * @param data The data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7a0a0a8ac82574bcb7e4b57091163a6b5a3bf036f1228b6c1be58bf24c8d89fe") + override fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit): Unit = + `data`(FileAssetMetadataEntry(`data`)) + + /** + * @param data The data. + */ + override fun `data`(`data`: ContainerImageAssetMetadataEntry) { + cdkBuilder.`data`(`data`.let(ContainerImageAssetMetadataEntry.Companion::unwrap)) + } + + /** + * @param data The data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3065cb63a8f19cadc4adfe4f9b3a803124adbea1cc4dd69d202081e25b319d41") + override fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit): Unit = + `data`(ContainerImageAssetMetadataEntry(`data`)) + + /** + * @param data The data. + */ + override fun `data`(`data`: List) { + cdkBuilder.`data`(`data`.map(Tag.Companion::unwrap)) + } + + /** + * @param data The data. + */ + override fun `data`(vararg `data`: Tag): Unit = `data`(`data`.toList()) + + /** + * @param trace A stack trace for when the entry was created. + */ + override fun trace(trace: List) { + cdkBuilder.trace(trace) + } + + /** + * @param trace A stack trace for when the entry was created. + */ + override fun trace(vararg trace: String): Unit = trace(trace.toList()) + + /** + * @param type The type of the metadata entry. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.MetadataEntry = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.MetadataEntry, + ) : CdkObject(cdkObject), + MetadataEntry { + /** + * The data. + * + * Default: - no data. + */ + override fun `data`(): Any? = unwrap(this).getData() + + /** + * A stack trace for when the entry was created. + * + * Default: - no trace. + */ + override fun trace(): List = unwrap(this).getTrace() ?: emptyList() + + /** + * The type of the metadata entry. + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MetadataEntry { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.MetadataEntry): + MetadataEntry = CdkObjectWrappers.wrap(cdkObject) as? MetadataEntry ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MetadataEntry): + software.amazon.awscdk.cloud_assembly_schema.MetadataEntry = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.MetadataEntry + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MissingContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MissingContext.kt new file mode 100644 index 0000000000..a7636cafb1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/MissingContext.kt @@ -0,0 +1,425 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Represents a missing piece of context. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * MissingContext missingContext = MissingContext.builder() + * .key("key") + * .props(AmiContextQuery.builder() + * .account("account") + * .filters(Map.of( + * "filtersKey", List.of("filters"))) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .owners(List.of("owners")) + * .build()) + * .provider(ContextProvider.AMI_PROVIDER) + * .build(); + * ``` + */ +public interface MissingContext { + /** + * The missing context key. + */ + public fun key(): String + + /** + * A set of provider-specific options. + */ + public fun props(): Any + + /** + * The provider from which we expect this context key to be obtained. + */ + public fun provider(): ContextProvider + + /** + * A builder for [MissingContext] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key The missing context key. + */ + public fun key(key: String) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: AmiContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ef0a83c7eed847f10cee8a1f1c7d6af1c27a79846385632e9cc5b7802e04119c") + public fun props(props: AmiContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: AvailabilityZonesContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6e2159ffb9e7188b6acb651d835c103c06fd3aeb33439affa4bc7db0df969421") + public fun props(props: AvailabilityZonesContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: HostedZoneContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c019cde4f67d672783b9bff0b2602944a718f1460fe76d7e7dc9853d691604d5") + public fun props(props: HostedZoneContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: SSMParameterContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e81820fa050aed06ea53c34e3a9d5cf0a2d442ac7c6b438199d044e9998eb1cd") + public fun props(props: SSMParameterContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: VpcContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ca4ded334c5c170b3465854e19d8f8704c72b23725344b9b10c4f9314e9f447d") + public fun props(props: VpcContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: EndpointServiceAvailabilityZonesContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3f24b01731ed95002aa7bd835e5c44867cbb3c3e1904d19de54260c99b00dfb8") + public fun props(props: EndpointServiceAvailabilityZonesContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: LoadBalancerContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d6d1013d8b92e975f7783ad580d575ea15255739c6ce95da4060964d0ab50a82") + public fun props(props: LoadBalancerContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: LoadBalancerListenerContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("213f7a900934aa378f1c5aedf140b6101b514fd766a649b82a28f5c72f7618c1") + public fun props(props: LoadBalancerListenerContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: SecurityGroupContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("201becd931643596563f256180bcbe2cd7492e2723513cb7213fbdc616dda127") + public fun props(props: SecurityGroupContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: KeyContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d95473f43c50367d266fb9490a73e778b09df9a3be0848c5ecd7808d0de2c0ef") + public fun props(props: KeyContextQuery.Builder.() -> Unit) + + /** + * @param props A set of provider-specific options. + */ + public fun props(props: PluginContextQuery) + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6ac22198a863419c7a49965ff9cd2ea224d48950b80429e5c569a08673381100") + public fun props(props: PluginContextQuery.Builder.() -> Unit) + + /** + * @param provider The provider from which we expect this context key to be obtained. + */ + public fun provider(provider: ContextProvider) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.MissingContext.Builder = + software.amazon.awscdk.cloud_assembly_schema.MissingContext.builder() + + /** + * @param key The missing context key. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: AmiContextQuery) { + cdkBuilder.props(props.let(AmiContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ef0a83c7eed847f10cee8a1f1c7d6af1c27a79846385632e9cc5b7802e04119c") + override fun props(props: AmiContextQuery.Builder.() -> Unit): Unit = + props(AmiContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: AvailabilityZonesContextQuery) { + cdkBuilder.props(props.let(AvailabilityZonesContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6e2159ffb9e7188b6acb651d835c103c06fd3aeb33439affa4bc7db0df969421") + override fun props(props: AvailabilityZonesContextQuery.Builder.() -> Unit): Unit = + props(AvailabilityZonesContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: HostedZoneContextQuery) { + cdkBuilder.props(props.let(HostedZoneContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c019cde4f67d672783b9bff0b2602944a718f1460fe76d7e7dc9853d691604d5") + override fun props(props: HostedZoneContextQuery.Builder.() -> Unit): Unit = + props(HostedZoneContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: SSMParameterContextQuery) { + cdkBuilder.props(props.let(SSMParameterContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e81820fa050aed06ea53c34e3a9d5cf0a2d442ac7c6b438199d044e9998eb1cd") + override fun props(props: SSMParameterContextQuery.Builder.() -> Unit): Unit = + props(SSMParameterContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: VpcContextQuery) { + cdkBuilder.props(props.let(VpcContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ca4ded334c5c170b3465854e19d8f8704c72b23725344b9b10c4f9314e9f447d") + override fun props(props: VpcContextQuery.Builder.() -> Unit): Unit = + props(VpcContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: EndpointServiceAvailabilityZonesContextQuery) { + cdkBuilder.props(props.let(EndpointServiceAvailabilityZonesContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3f24b01731ed95002aa7bd835e5c44867cbb3c3e1904d19de54260c99b00dfb8") + override fun props(props: EndpointServiceAvailabilityZonesContextQuery.Builder.() -> Unit): Unit + = props(EndpointServiceAvailabilityZonesContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: LoadBalancerContextQuery) { + cdkBuilder.props(props.let(LoadBalancerContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d6d1013d8b92e975f7783ad580d575ea15255739c6ce95da4060964d0ab50a82") + override fun props(props: LoadBalancerContextQuery.Builder.() -> Unit): Unit = + props(LoadBalancerContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: LoadBalancerListenerContextQuery) { + cdkBuilder.props(props.let(LoadBalancerListenerContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("213f7a900934aa378f1c5aedf140b6101b514fd766a649b82a28f5c72f7618c1") + override fun props(props: LoadBalancerListenerContextQuery.Builder.() -> Unit): Unit = + props(LoadBalancerListenerContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: SecurityGroupContextQuery) { + cdkBuilder.props(props.let(SecurityGroupContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("201becd931643596563f256180bcbe2cd7492e2723513cb7213fbdc616dda127") + override fun props(props: SecurityGroupContextQuery.Builder.() -> Unit): Unit = + props(SecurityGroupContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: KeyContextQuery) { + cdkBuilder.props(props.let(KeyContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d95473f43c50367d266fb9490a73e778b09df9a3be0848c5ecd7808d0de2c0ef") + override fun props(props: KeyContextQuery.Builder.() -> Unit): Unit = + props(KeyContextQuery(props)) + + /** + * @param props A set of provider-specific options. + */ + override fun props(props: PluginContextQuery) { + cdkBuilder.props(props.let(PluginContextQuery.Companion::unwrap)) + } + + /** + * @param props A set of provider-specific options. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6ac22198a863419c7a49965ff9cd2ea224d48950b80429e5c569a08673381100") + override fun props(props: PluginContextQuery.Builder.() -> Unit): Unit = + props(PluginContextQuery(props)) + + /** + * @param provider The provider from which we expect this context key to be obtained. + */ + override fun provider(provider: ContextProvider) { + cdkBuilder.provider(provider.let(ContextProvider.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.MissingContext = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.MissingContext, + ) : CdkObject(cdkObject), + MissingContext { + /** + * The missing context key. + */ + override fun key(): String = unwrap(this).getKey() + + /** + * A set of provider-specific options. + */ + override fun props(): Any = unwrap(this).getProps() + + /** + * The provider from which we expect this context key to be obtained. + */ + override fun provider(): ContextProvider = unwrap(this).getProvider().let(ContextProvider::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MissingContext { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.MissingContext): + MissingContext = CdkObjectWrappers.wrap(cdkObject) as? MissingContext ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MissingContext): + software.amazon.awscdk.cloud_assembly_schema.MissingContext = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.MissingContext + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/NestedCloudAssemblyProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/NestedCloudAssemblyProperties.kt new file mode 100644 index 0000000000..ba50e44c42 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/NestedCloudAssemblyProperties.kt @@ -0,0 +1,113 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Artifact properties for nested cloud assemblies. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * NestedCloudAssemblyProperties nestedCloudAssemblyProperties = + * NestedCloudAssemblyProperties.builder() + * .directoryName("directoryName") + * // the properties below are optional + * .displayName("displayName") + * .build(); + * ``` + */ +public interface NestedCloudAssemblyProperties { + /** + * Relative path to the nested cloud assembly. + */ + public fun directoryName(): String + + /** + * Display name for the cloud assembly. + * + * Default: - The artifact ID + */ + public fun displayName(): String? = unwrap(this).getDisplayName() + + /** + * A builder for [NestedCloudAssemblyProperties] + */ + @CdkDslMarker + public interface Builder { + /** + * @param directoryName Relative path to the nested cloud assembly. + */ + public fun directoryName(directoryName: String) + + /** + * @param displayName Display name for the cloud assembly. + */ + public fun displayName(displayName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties.Builder = + software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties.builder() + + /** + * @param directoryName Relative path to the nested cloud assembly. + */ + override fun directoryName(directoryName: String) { + cdkBuilder.directoryName(directoryName) + } + + /** + * @param displayName Display name for the cloud assembly. + */ + override fun displayName(displayName: String) { + cdkBuilder.displayName(displayName) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties, + ) : CdkObject(cdkObject), + NestedCloudAssemblyProperties { + /** + * Relative path to the nested cloud assembly. + */ + override fun directoryName(): String = unwrap(this).getDirectoryName() + + /** + * Display name for the cloud assembly. + * + * Default: - The artifact ID + */ + override fun displayName(): String? = unwrap(this).getDisplayName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NestedCloudAssemblyProperties { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties): + NestedCloudAssemblyProperties = CdkObjectWrappers.wrap(cdkObject) as? + NestedCloudAssemblyProperties ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NestedCloudAssemblyProperties): + software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/PluginContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/PluginContextQuery.kt new file mode 100644 index 0000000000..008a30c1ca --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/PluginContextQuery.kt @@ -0,0 +1,84 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Query input for plugins. + * + * This alternate branch is necessary because it needs to be able to escape all type checking + * we do on on the cloud assembly -- we cannot know the properties that will be used a priori. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * PluginContextQuery pluginContextQuery = PluginContextQuery.builder() + * .pluginName("pluginName") + * .build(); + * ``` + */ +public interface PluginContextQuery { + /** + * The name of the plugin. + */ + public fun pluginName(): String + + /** + * A builder for [PluginContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param pluginName The name of the plugin. + */ + public fun pluginName(pluginName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery.Builder + = software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery.builder() + + /** + * @param pluginName The name of the plugin. + */ + override fun pluginName(pluginName: String) { + cdkBuilder.pluginName(pluginName) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery, + ) : CdkObject(cdkObject), + PluginContextQuery { + /** + * The name of the plugin. + */ + override fun pluginName(): String = unwrap(this).getPluginName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PluginContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery): + PluginContextQuery = CdkObjectWrappers.wrap(cdkObject) as? PluginContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PluginContextQuery): + software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.PluginContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RequireApproval.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RequireApproval.kt new file mode 100644 index 0000000000..3a0973970e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RequireApproval.kt @@ -0,0 +1,26 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +public enum class RequireApproval( + private val cdkObject: software.amazon.awscdk.cloud_assembly_schema.RequireApproval, +) { + NEVER(software.amazon.awscdk.cloud_assembly_schema.RequireApproval.NEVER), + ANYCHANGE(software.amazon.awscdk.cloud_assembly_schema.RequireApproval.ANYCHANGE), + BROADENING(software.amazon.awscdk.cloud_assembly_schema.RequireApproval.BROADENING), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.RequireApproval): + RequireApproval = when (cdkObject) { + software.amazon.awscdk.cloud_assembly_schema.RequireApproval.NEVER -> RequireApproval.NEVER + software.amazon.awscdk.cloud_assembly_schema.RequireApproval.ANYCHANGE -> + RequireApproval.ANYCHANGE + software.amazon.awscdk.cloud_assembly_schema.RequireApproval.BROADENING -> + RequireApproval.BROADENING + } + + internal fun unwrap(wrapped: RequireApproval): + software.amazon.awscdk.cloud_assembly_schema.RequireApproval = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RuntimeInfo.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RuntimeInfo.kt new file mode 100644 index 0000000000..279ec07ba0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/RuntimeInfo.kt @@ -0,0 +1,84 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Information about the application's runtime components. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * RuntimeInfo runtimeInfo = RuntimeInfo.builder() + * .libraries(Map.of( + * "librariesKey", "libraries")) + * .build(); + * ``` + */ +public interface RuntimeInfo { + /** + * The list of libraries loaded in the application, associated with their versions. + */ + public fun libraries(): Map + + /** + * A builder for [RuntimeInfo] + */ + @CdkDslMarker + public interface Builder { + /** + * @param libraries The list of libraries loaded in the application, associated with their + * versions. + */ + public fun libraries(libraries: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo.Builder = + software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo.builder() + + /** + * @param libraries The list of libraries loaded in the application, associated with their + * versions. + */ + override fun libraries(libraries: Map) { + cdkBuilder.libraries(libraries) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo, + ) : CdkObject(cdkObject), + RuntimeInfo { + /** + * The list of libraries loaded in the application, associated with their versions. + */ + override fun libraries(): Map = unwrap(this).getLibraries() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuntimeInfo { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo): + RuntimeInfo = CdkObjectWrappers.wrap(cdkObject) as? RuntimeInfo ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuntimeInfo): + software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.cloud_assembly_schema.RuntimeInfo + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SSMParameterContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SSMParameterContextQuery.kt new file mode 100644 index 0000000000..f8a5dd5a44 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SSMParameterContextQuery.kt @@ -0,0 +1,199 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query to SSM Parameter Context Provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * SSMParameterContextQuery sSMParameterContextQuery = SSMParameterContextQuery.builder() + * .account("account") + * .parameterName("parameterName") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .build(); + * ``` + */ +public interface SSMParameterContextQuery : ContextLookupRoleOptions { + /** + * Parameter name to query. + */ + public fun parameterName(): String + + /** + * A builder for [SSMParameterContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param parameterName Parameter name to query. + */ + public fun parameterName(parameterName: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param parameterName Parameter name to query. + */ + override fun parameterName(parameterName: String) { + cdkBuilder.parameterName(parameterName) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery, + ) : CdkObject(cdkObject), + SSMParameterContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Parameter name to query. + */ + override fun parameterName(): String = unwrap(this).getParameterName() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SSMParameterContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery): + SSMParameterContextQuery = CdkObjectWrappers.wrap(cdkObject) as? SSMParameterContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SSMParameterContextQuery): + software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.SSMParameterContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SecurityGroupContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SecurityGroupContextQuery.kt new file mode 100644 index 0000000000..0da5e0a5cd --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/SecurityGroupContextQuery.kt @@ -0,0 +1,257 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query input for looking up a security group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * SecurityGroupContextQuery securityGroupContextQuery = SecurityGroupContextQuery.builder() + * .account("account") + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .securityGroupId("securityGroupId") + * .securityGroupName("securityGroupName") + * .vpcId("vpcId") + * .build(); + * ``` + */ +public interface SecurityGroupContextQuery : ContextLookupRoleOptions { + /** + * Security group id. + * + * Default: - None + */ + public fun securityGroupId(): String? = unwrap(this).getSecurityGroupId() + + /** + * Security group name. + * + * Default: - None + */ + public fun securityGroupName(): String? = unwrap(this).getSecurityGroupName() + + /** + * VPC ID. + * + * Default: - None + */ + public fun vpcId(): String? = unwrap(this).getVpcId() + + /** + * A builder for [SecurityGroupContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + + /** + * @param securityGroupId Security group id. + */ + public fun securityGroupId(securityGroupId: String) + + /** + * @param securityGroupName Security group name. + */ + public fun securityGroupName(securityGroupName: String) + + /** + * @param vpcId VPC ID. + */ + public fun vpcId(vpcId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param securityGroupId Security group id. + */ + override fun securityGroupId(securityGroupId: String) { + cdkBuilder.securityGroupId(securityGroupId) + } + + /** + * @param securityGroupName Security group name. + */ + override fun securityGroupName(securityGroupName: String) { + cdkBuilder.securityGroupName(securityGroupName) + } + + /** + * @param vpcId VPC ID. + */ + override fun vpcId(vpcId: String) { + cdkBuilder.vpcId(vpcId) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery, + ) : CdkObject(cdkObject), + SecurityGroupContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + + /** + * Security group id. + * + * Default: - None + */ + override fun securityGroupId(): String? = unwrap(this).getSecurityGroupId() + + /** + * Security group name. + * + * Default: - None + */ + override fun securityGroupName(): String? = unwrap(this).getSecurityGroupName() + + /** + * VPC ID. + * + * Default: - None + */ + override fun vpcId(): String? = unwrap(this).getVpcId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SecurityGroupContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery): + SecurityGroupContextQuery = CdkObjectWrappers.wrap(cdkObject) as? SecurityGroupContextQuery + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SecurityGroupContextQuery): + software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.cloud_assembly_schema.SecurityGroupContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Tag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Tag.kt new file mode 100644 index 0000000000..eddc4d776f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/Tag.kt @@ -0,0 +1,129 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Metadata Entry spec for stack tag. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Tag tag = Tag.builder() + * .key("key") + * .value("value") + * .build(); + * ``` + */ +public interface Tag { + /** + * Tag key. + * + * (In the actual file on disk this will be cased as "Key", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + public fun key(): String + + /** + * Tag value. + * + * (In the actual file on disk this will be cased as "Value", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + public fun `value`(): String + + /** + * A builder for [Tag] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key Tag key. + * (In the actual file on disk this will be cased as "Key", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + public fun key(key: String) + + /** + * @param value Tag value. + * (In the actual file on disk this will be cased as "Value", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.Tag.Builder = + software.amazon.awscdk.cloud_assembly_schema.Tag.builder() + + /** + * @param key Tag key. + * (In the actual file on disk this will be cased as "Key", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param value Tag value. + * (In the actual file on disk this will be cased as "Value", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.Tag = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.Tag, + ) : CdkObject(cdkObject), + Tag { + /** + * Tag key. + * + * (In the actual file on disk this will be cased as "Key", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * Tag value. + * + * (In the actual file on disk this will be cased as "Value", and the structure is + * patched to match this structure upon loading: + * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) + */ + override fun `value`(): String = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): Tag { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.Tag): Tag = + CdkObjectWrappers.wrap(cdkObject) as? Tag ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: Tag): software.amazon.awscdk.cloud_assembly_schema.Tag = (wrapped + as CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.Tag + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestCase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestCase.kt new file mode 100644 index 0000000000..ca6c882c0e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestCase.kt @@ -0,0 +1,477 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Represents an integration test case. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * TestCase testCase = TestCase.builder() + * .stacks(List.of("stacks")) + * // the properties below are optional + * .allowDestroy(List.of("allowDestroy")) + * .assertionStack("assertionStack") + * .assertionStackName("assertionStackName") + * .cdkCommandOptions(CdkCommands.builder() + * .deploy(DeployCommand.builder() + * .args(DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .destroy(DestroyCommand.builder() + * .args(DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .build()) + * .diffAssets(false) + * .hooks(Hooks.builder() + * .postDeploy(List.of("postDeploy")) + * .postDestroy(List.of("postDestroy")) + * .preDeploy(List.of("preDeploy")) + * .preDestroy(List.of("preDestroy")) + * .build()) + * .regions(List.of("regions")) + * .stackUpdateWorkflow(false) + * .build(); + * ``` + */ +public interface TestCase : TestOptions { + /** + * The node id of the stack that contains assertions. + * + * This is the value that can be used to deploy the stack with the CDK CLI + * + * Default: - no assertion stack + */ + public fun assertionStack(): String? = unwrap(this).getAssertionStack() + + /** + * The name of the stack that contains assertions. + * + * Default: - no assertion stack + */ + public fun assertionStackName(): String? = unwrap(this).getAssertionStackName() + + /** + * Stacks that should be tested as part of this test case The stackNames will be passed as args to + * the cdk commands so dependent stacks will be automatically deployed unless `exclusively` is + * passed. + */ + public fun stacks(): List + + /** + * A builder for [TestCase] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + public fun allowDestroy(allowDestroy: List) + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + public fun allowDestroy(vararg allowDestroy: String) + + /** + * @param assertionStack The node id of the stack that contains assertions. + * This is the value that can be used to deploy the stack with the CDK CLI + */ + public fun assertionStack(assertionStack: String) + + /** + * @param assertionStackName The name of the stack that contains assertions. + */ + public fun assertionStackName(assertionStackName: String) + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + public fun cdkCommandOptions(cdkCommandOptions: CdkCommands) + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a71a75c52e943ac74fe942aada2acfb166c8e3f60d8499a088d7c7ff79bc86c0") + public fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit) + + /** + * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can + * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes + * *should* be included. + * For example + * any tests involving custom resources or bundling + */ + public fun diffAssets(diffAssets: Boolean) + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + public fun hooks(hooks: Hooks) + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ce906a0f8ec29ce54f6599173a3a981724f5a9ba9dba1d05a0c6ef31fde5779a") + public fun hooks(hooks: Hooks.Builder.() -> Unit) + + /** + * @param regions Limit deployment to these regions. + */ + public fun regions(regions: List) + + /** + * @param regions Limit deployment to these regions. + */ + public fun regions(vararg regions: String) + + /** + * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to + * false to test scenarios that are not possible to test as part of the update workflow. + */ + public fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) + + /** + * @param stacks Stacks that should be tested as part of this test case The stackNames will be + * passed as args to the cdk commands so dependent stacks will be automatically deployed unless + * `exclusively` is passed. + */ + public fun stacks(stacks: List) + + /** + * @param stacks Stacks that should be tested as part of this test case The stackNames will be + * passed as args to the cdk commands so dependent stacks will be automatically deployed unless + * `exclusively` is passed. + */ + public fun stacks(vararg stacks: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.TestCase.Builder = + software.amazon.awscdk.cloud_assembly_schema.TestCase.builder() + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + override fun allowDestroy(allowDestroy: List) { + cdkBuilder.allowDestroy(allowDestroy) + } + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + override fun allowDestroy(vararg allowDestroy: String): Unit = + allowDestroy(allowDestroy.toList()) + + /** + * @param assertionStack The node id of the stack that contains assertions. + * This is the value that can be used to deploy the stack with the CDK CLI + */ + override fun assertionStack(assertionStack: String) { + cdkBuilder.assertionStack(assertionStack) + } + + /** + * @param assertionStackName The name of the stack that contains assertions. + */ + override fun assertionStackName(assertionStackName: String) { + cdkBuilder.assertionStackName(assertionStackName) + } + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + override fun cdkCommandOptions(cdkCommandOptions: CdkCommands) { + cdkBuilder.cdkCommandOptions(cdkCommandOptions.let(CdkCommands.Companion::unwrap)) + } + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a71a75c52e943ac74fe942aada2acfb166c8e3f60d8499a088d7c7ff79bc86c0") + override fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit): Unit = + cdkCommandOptions(CdkCommands(cdkCommandOptions)) + + /** + * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can + * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes + * *should* be included. + * For example + * any tests involving custom resources or bundling + */ + override fun diffAssets(diffAssets: Boolean) { + cdkBuilder.diffAssets(diffAssets) + } + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + override fun hooks(hooks: Hooks) { + cdkBuilder.hooks(hooks.let(Hooks.Companion::unwrap)) + } + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ce906a0f8ec29ce54f6599173a3a981724f5a9ba9dba1d05a0c6ef31fde5779a") + override fun hooks(hooks: Hooks.Builder.() -> Unit): Unit = hooks(Hooks(hooks)) + + /** + * @param regions Limit deployment to these regions. + */ + override fun regions(regions: List) { + cdkBuilder.regions(regions) + } + + /** + * @param regions Limit deployment to these regions. + */ + override fun regions(vararg regions: String): Unit = regions(regions.toList()) + + /** + * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to + * false to test scenarios that are not possible to test as part of the update workflow. + */ + override fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) { + cdkBuilder.stackUpdateWorkflow(stackUpdateWorkflow) + } + + /** + * @param stacks Stacks that should be tested as part of this test case The stackNames will be + * passed as args to the cdk commands so dependent stacks will be automatically deployed unless + * `exclusively` is passed. + */ + override fun stacks(stacks: List) { + cdkBuilder.stacks(stacks) + } + + /** + * @param stacks Stacks that should be tested as part of this test case The stackNames will be + * passed as args to the cdk commands so dependent stacks will be automatically deployed unless + * `exclusively` is passed. + */ + override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.TestCase = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.TestCase, + ) : CdkObject(cdkObject), + TestCase { + /** + * List of CloudFormation resource types in this stack that can be destroyed as part of an + * update without failing the test. + * + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + * + * Default: - do not allow destruction of any resources on update + */ + override fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() + + /** + * The node id of the stack that contains assertions. + * + * This is the value that can be used to deploy the stack with the CDK CLI + * + * Default: - no assertion stack + */ + override fun assertionStack(): String? = unwrap(this).getAssertionStack() + + /** + * The name of the stack that contains assertions. + * + * Default: - no assertion stack + */ + override fun assertionStackName(): String? = unwrap(this).getAssertionStackName() + + /** + * Additional options to use for each CDK command. + * + * Default: - runner default options + */ + override fun cdkCommandOptions(): CdkCommands? = + unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) + + /** + * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of + * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. + * + * For example + * any tests involving custom resources or bundling + * + * Default: false + */ + override fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() + + /** + * Additional commands to run at predefined points in the test workflow. + * + * e.g. { postDeploy: ['yarn', 'test'] } + * + * Default: - no hooks + */ + override fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) + + /** + * Limit deployment to these regions. + * + * Default: - can run in any region + */ + override fun regions(): List = unwrap(this).getRegions() ?: emptyList() + + /** + * Run update workflow on this test case This should only be set to false to test scenarios that + * are not possible to test as part of the update workflow. + * + * Default: true + */ + override fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() + + /** + * Stacks that should be tested as part of this test case The stackNames will be passed as args + * to the cdk commands so dependent stacks will be automatically deployed unless `exclusively` is + * passed. + */ + override fun stacks(): List = unwrap(this).getStacks() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TestCase { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.TestCase): TestCase = + CdkObjectWrappers.wrap(cdkObject) as? TestCase ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TestCase): software.amazon.awscdk.cloud_assembly_schema.TestCase = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.TestCase + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestOptions.kt new file mode 100644 index 0000000000..16f57336cd --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TestOptions.kt @@ -0,0 +1,431 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * The set of options to control the workflow of the test runner. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * TestOptions testOptions = TestOptions.builder() + * .allowDestroy(List.of("allowDestroy")) + * .cdkCommandOptions(CdkCommands.builder() + * .deploy(DeployCommand.builder() + * .args(DeployOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .changeSetName("changeSetName") + * .ci(false) + * .color(false) + * .concurrency(123) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .execute(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .notificationArns(List.of("notificationArns")) + * .output("output") + * .outputsFile("outputsFile") + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .requireApproval(RequireApproval.NEVER) + * .reuseAssets(List.of("reuseAssets")) + * .roleArn("roleArn") + * .rollback(false) + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .toolkitStackName("toolkitStackName") + * .trace(false) + * .usePreviousParameters(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .destroy(DestroyCommand.builder() + * .args(DestroyOptions.builder() + * .all(false) + * .app("app") + * .assetMetadata(false) + * .caBundlePath("caBundlePath") + * .color(false) + * .context(Map.of( + * "contextKey", "context")) + * .debug(false) + * .ec2Creds(false) + * .exclusively(false) + * .force(false) + * .ignoreErrors(false) + * .json(false) + * .lookups(false) + * .notices(false) + * .output("output") + * .pathMetadata(false) + * .profile("profile") + * .proxy("proxy") + * .roleArn("roleArn") + * .stacks(List.of("stacks")) + * .staging(false) + * .strict(false) + * .trace(false) + * .verbose(false) + * .versionReporting(false) + * .build()) + * .enabled(false) + * .expectedMessage("expectedMessage") + * .expectError(false) + * .build()) + * .build()) + * .diffAssets(false) + * .hooks(Hooks.builder() + * .postDeploy(List.of("postDeploy")) + * .postDestroy(List.of("postDestroy")) + * .preDeploy(List.of("preDeploy")) + * .preDestroy(List.of("preDestroy")) + * .build()) + * .regions(List.of("regions")) + * .stackUpdateWorkflow(false) + * .build(); + * ``` + */ +public interface TestOptions { + /** + * List of CloudFormation resource types in this stack that can be destroyed as part of an update + * without failing the test. + * + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + * + * Default: - do not allow destruction of any resources on update + */ + public fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() + + /** + * Additional options to use for each CDK command. + * + * Default: - runner default options + */ + public fun cdkCommandOptions(): CdkCommands? = + unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) + + /** + * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of + * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. + * + * For example + * any tests involving custom resources or bundling + * + * Default: false + */ + public fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() + + /** + * Additional commands to run at predefined points in the test workflow. + * + * e.g. { postDeploy: ['yarn', 'test'] } + * + * Default: - no hooks + */ + public fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) + + /** + * Limit deployment to these regions. + * + * Default: - can run in any region + */ + public fun regions(): List = unwrap(this).getRegions() ?: emptyList() + + /** + * Run update workflow on this test case This should only be set to false to test scenarios that + * are not possible to test as part of the update workflow. + * + * Default: true + */ + public fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() + + /** + * A builder for [TestOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + public fun allowDestroy(allowDestroy: List) + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + public fun allowDestroy(vararg allowDestroy: String) + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + public fun cdkCommandOptions(cdkCommandOptions: CdkCommands) + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9086cd76246946debdec833c9dc73289eff21d21babfa5cde6c766fb310dfe6c") + public fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit) + + /** + * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can + * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes + * *should* be included. + * For example + * any tests involving custom resources or bundling + */ + public fun diffAssets(diffAssets: Boolean) + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + public fun hooks(hooks: Hooks) + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a84ba96c46a45d3b641e36b210d49ece01c6073e935b063ee6a435f37087992c") + public fun hooks(hooks: Hooks.Builder.() -> Unit) + + /** + * @param regions Limit deployment to these regions. + */ + public fun regions(regions: List) + + /** + * @param regions Limit deployment to these regions. + */ + public fun regions(vararg regions: String) + + /** + * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to + * false to test scenarios that are not possible to test as part of the update workflow. + */ + public fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.TestOptions.Builder = + software.amazon.awscdk.cloud_assembly_schema.TestOptions.builder() + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + override fun allowDestroy(allowDestroy: List) { + cdkBuilder.allowDestroy(allowDestroy) + } + + /** + * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed + * as part of an update without failing the test. + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + */ + override fun allowDestroy(vararg allowDestroy: String): Unit = + allowDestroy(allowDestroy.toList()) + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + override fun cdkCommandOptions(cdkCommandOptions: CdkCommands) { + cdkBuilder.cdkCommandOptions(cdkCommandOptions.let(CdkCommands.Companion::unwrap)) + } + + /** + * @param cdkCommandOptions Additional options to use for each CDK command. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9086cd76246946debdec833c9dc73289eff21d21babfa5cde6c766fb310dfe6c") + override fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit): Unit = + cdkCommandOptions(CdkCommands(cdkCommandOptions)) + + /** + * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can + * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes + * *should* be included. + * For example + * any tests involving custom resources or bundling + */ + override fun diffAssets(diffAssets: Boolean) { + cdkBuilder.diffAssets(diffAssets) + } + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + override fun hooks(hooks: Hooks) { + cdkBuilder.hooks(hooks.let(Hooks.Companion::unwrap)) + } + + /** + * @param hooks Additional commands to run at predefined points in the test workflow. + * e.g. { postDeploy: ['yarn', 'test'] } + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a84ba96c46a45d3b641e36b210d49ece01c6073e935b063ee6a435f37087992c") + override fun hooks(hooks: Hooks.Builder.() -> Unit): Unit = hooks(Hooks(hooks)) + + /** + * @param regions Limit deployment to these regions. + */ + override fun regions(regions: List) { + cdkBuilder.regions(regions) + } + + /** + * @param regions Limit deployment to these regions. + */ + override fun regions(vararg regions: String): Unit = regions(regions.toList()) + + /** + * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to + * false to test scenarios that are not possible to test as part of the update workflow. + */ + override fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) { + cdkBuilder.stackUpdateWorkflow(stackUpdateWorkflow) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.TestOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.TestOptions, + ) : CdkObject(cdkObject), + TestOptions { + /** + * List of CloudFormation resource types in this stack that can be destroyed as part of an + * update without failing the test. + * + * This list should only include resources that for this specific + * integration test we are sure will not cause errors or an outage if + * destroyed. For example, maybe we know that a new resource will be created + * first before the old resource is destroyed which prevents any outage. + * + * e.g. ['AWS::IAM::Role'] + * + * Default: - do not allow destruction of any resources on update + */ + override fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() + + /** + * Additional options to use for each CDK command. + * + * Default: - runner default options + */ + override fun cdkCommandOptions(): CdkCommands? = + unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) + + /** + * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of + * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. + * + * For example + * any tests involving custom resources or bundling + * + * Default: false + */ + override fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() + + /** + * Additional commands to run at predefined points in the test workflow. + * + * e.g. { postDeploy: ['yarn', 'test'] } + * + * Default: - no hooks + */ + override fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) + + /** + * Limit deployment to these regions. + * + * Default: - can run in any region + */ + override fun regions(): List = unwrap(this).getRegions() ?: emptyList() + + /** + * Run update workflow on this test case This should only be set to false to test scenarios that + * are not possible to test as part of the update workflow. + * + * Default: true + */ + override fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TestOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.TestOptions): + TestOptions = CdkObjectWrappers.wrap(cdkObject) as? TestOptions ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TestOptions): + software.amazon.awscdk.cloud_assembly_schema.TestOptions = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.cloud_assembly_schema.TestOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TreeArtifactProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TreeArtifactProperties.kt new file mode 100644 index 0000000000..050580c8d3 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/TreeArtifactProperties.kt @@ -0,0 +1,83 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Artifact properties for the Construct Tree Artifact. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * TreeArtifactProperties treeArtifactProperties = TreeArtifactProperties.builder() + * .file("file") + * .build(); + * ``` + */ +public interface TreeArtifactProperties { + /** + * Filename of the tree artifact. + */ + public fun `file`(): String + + /** + * A builder for [TreeArtifactProperties] + */ + @CdkDslMarker + public interface Builder { + /** + * @param file Filename of the tree artifact. + */ + public fun `file`(`file`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties.Builder = + software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties.builder() + + /** + * @param file Filename of the tree artifact. + */ + override fun `file`(`file`: String) { + cdkBuilder.`file`(`file`) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties, + ) : CdkObject(cdkObject), + TreeArtifactProperties { + /** + * Filename of the tree artifact. + */ + override fun `file`(): String = unwrap(this).getFile() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TreeArtifactProperties { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties): + TreeArtifactProperties = CdkObjectWrappers.wrap(cdkObject) as? TreeArtifactProperties ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TreeArtifactProperties): + software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.TreeArtifactProperties + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/VpcContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/VpcContextQuery.kt new file mode 100644 index 0000000000..750d0437d5 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloud_assembly_schema/VpcContextQuery.kt @@ -0,0 +1,325 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloud_assembly_schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Query input for looking up a VPC. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; + * Object assumeRoleAdditionalOptions; + * VpcContextQuery vpcContextQuery = VpcContextQuery.builder() + * .account("account") + * .filter(Map.of( + * "filterKey", "filter")) + * .region("region") + * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) + * .lookupRoleArn("lookupRoleArn") + * .lookupRoleExternalId("lookupRoleExternalId") + * .returnAsymmetricSubnets(false) + * .returnVpnGateways(false) + * .subnetGroupNameTag("subnetGroupNameTag") + * .build(); + * ``` + */ +public interface VpcContextQuery : ContextLookupRoleOptions { + /** + * Filters to apply to the VPC. + * + * Filter parameters are the same as passed to DescribeVpcs. + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) + */ + public fun filter(): Map + + /** + * Whether to populate the subnetGroups field of the `VpcContextResponse`, which contains + * potentially asymmetric subnet groups. + * + * Default: false + */ + public fun returnAsymmetricSubnets(): Boolean? = unwrap(this).getReturnAsymmetricSubnets() + + /** + * Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`, which contains the + * VPN Gateway ID, if one exists. + * + * You can explicitly + * disable this in order to avoid the lookup if you know the VPC does not have + * a VPN Gatway attached. + * + * Default: true + */ + public fun returnVpnGateways(): Boolean? = unwrap(this).getReturnVpnGateways() + + /** + * Optional tag for subnet group name. + * + * If not provided, we'll look at the aws-cdk:subnet-name tag. + * If the subnet does not have the specified tag, + * we'll use its type as the name. + * + * Default: 'aws-cdk:subnet-name' + */ + public fun subnetGroupNameTag(): String? = unwrap(this).getSubnetGroupNameTag() + + /** + * A builder for [VpcContextQuery] + */ + @CdkDslMarker + public interface Builder { + /** + * @param account Query account. + */ + public fun account(account: String) + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + /** + * @param filter Filters to apply to the VPC. + * Filter parameters are the same as passed to DescribeVpcs. + */ + public fun filter(filter: Map) + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + public fun lookupRoleArn(lookupRoleArn: String) + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + /** + * @param region Query region. + */ + public fun region(region: String) + + /** + * @param returnAsymmetricSubnets Whether to populate the subnetGroups field of the + * `VpcContextResponse`, which contains potentially asymmetric subnet groups. + */ + public fun returnAsymmetricSubnets(returnAsymmetricSubnets: Boolean) + + /** + * @param returnVpnGateways Whether to populate the `vpnGatewayId` field of the + * `VpcContextResponse`, which contains the VPN Gateway ID, if one exists. + * You can explicitly + * disable this in order to avoid the lookup if you know the VPC does not have + * a VPN Gatway attached. + */ + public fun returnVpnGateways(returnVpnGateways: Boolean) + + /** + * @param subnetGroupNameTag Optional tag for subnet group name. + * If not provided, we'll look at the aws-cdk:subnet-name tag. + * If the subnet does not have the specified tag, + * we'll use its type as the name. + */ + public fun subnetGroupNameTag(subnetGroupNameTag: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery.Builder = + software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery.builder() + + /** + * @param account Query account. + */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + /** + * @param assumeRoleAdditionalOptions Additional options to pass to STS when assuming the lookup + * role. + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param filter Filters to apply to the VPC. + * Filter parameters are the same as passed to DescribeVpcs. + */ + override fun filter(filter: Map) { + cdkBuilder.filter(filter) + } + + /** + * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. + */ + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + /** + * @param lookupRoleExternalId The ExternalId that needs to be supplied while assuming this + * role. + */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + /** + * @param region Query region. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param returnAsymmetricSubnets Whether to populate the subnetGroups field of the + * `VpcContextResponse`, which contains potentially asymmetric subnet groups. + */ + override fun returnAsymmetricSubnets(returnAsymmetricSubnets: Boolean) { + cdkBuilder.returnAsymmetricSubnets(returnAsymmetricSubnets) + } + + /** + * @param returnVpnGateways Whether to populate the `vpnGatewayId` field of the + * `VpcContextResponse`, which contains the VPN Gateway ID, if one exists. + * You can explicitly + * disable this in order to avoid the lookup if you know the VPC does not have + * a VPN Gatway attached. + */ + override fun returnVpnGateways(returnVpnGateways: Boolean) { + cdkBuilder.returnVpnGateways(returnVpnGateways) + } + + /** + * @param subnetGroupNameTag Optional tag for subnet group name. + * If not provided, we'll look at the aws-cdk:subnet-name tag. + * If the subnet does not have the specified tag, + * we'll use its type as the name. + */ + override fun subnetGroupNameTag(subnetGroupNameTag: String) { + cdkBuilder.subnetGroupNameTag(subnetGroupNameTag) + } + + public fun build(): software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery, + ) : CdkObject(cdkObject), + VpcContextQuery { + /** + * Query account. + */ + override fun account(): String = unwrap(this).getAccount() + + /** + * Additional options to pass to STS when assuming the lookup role. + * + * * `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + /** + * Filters to apply to the VPC. + * + * Filter parameters are the same as passed to DescribeVpcs. + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) + */ + override fun filter(): Map = unwrap(this).getFilter() ?: emptyMap() + + /** + * The ARN of the role that should be used to look up the missing values. + * + * Default: - None + */ + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + /** + * The ExternalId that needs to be supplied while assuming this role. + * + * Default: - No ExternalId will be supplied + */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + /** + * Query region. + */ + override fun region(): String = unwrap(this).getRegion() + + /** + * Whether to populate the subnetGroups field of the `VpcContextResponse`, which contains + * potentially asymmetric subnet groups. + * + * Default: false + */ + override fun returnAsymmetricSubnets(): Boolean? = unwrap(this).getReturnAsymmetricSubnets() + + /** + * Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`, which contains the + * VPN Gateway ID, if one exists. + * + * You can explicitly + * disable this in order to avoid the lookup if you know the VPC does not have + * a VPN Gatway attached. + * + * Default: true + */ + override fun returnVpnGateways(): Boolean? = unwrap(this).getReturnVpnGateways() + + /** + * Optional tag for subnet group name. + * + * If not provided, we'll look at the aws-cdk:subnet-name tag. + * If the subnet does not have the specified tag, + * we'll use its type as the name. + * + * Default: 'aws-cdk:subnet-name' + */ + override fun subnetGroupNameTag(): String? = unwrap(this).getSubnetGroupNameTag() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VpcContextQuery { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery): + VpcContextQuery = CdkObjectWrappers.wrap(cdkObject) as? VpcContextQuery ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: VpcContextQuery): + software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloud_assembly_schema.VpcContextQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AmiContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AmiContextQuery.kt index bc99296354..8bc8983d43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AmiContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AmiContextQuery.kt @@ -5,94 +5,33 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map -/** - * Query to AMI context provider. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AmiContextQuery amiContextQuery = AmiContextQuery.builder() - * .account("account") - * .filters(Map.of( - * "filtersKey", List.of("filters"))) - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .owners(List.of("owners")) - * .build(); - * ``` - */ -public interface AmiContextQuery { - /** - * Account to query. - */ - public fun account(): String - - /** - * Filters to DescribeImages call. - */ +public interface AmiContextQuery : ContextLookupRoleOptions { public fun filters(): Map> - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Owners to DescribeImages call. - * - * Default: - All owners - */ public fun owners(): List = unwrap(this).getOwners() ?: emptyList() - /** - * Region to query. - */ - public fun region(): String - - /** - * A builder for [AmiContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Account to query. - */ public fun account(account: String) - /** - * @param filters Filters to DescribeImages call. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun filters(filters: Map>) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param owners Owners to DescribeImages call. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun owners(owners: List) - /** - * @param owners Owners to DescribeImages call. - */ public fun owners(vararg owners: String) - /** - * @param region Region to query. - */ public fun region(region: String) } @@ -100,42 +39,32 @@ public interface AmiContextQuery { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.AmiContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.AmiContextQuery.builder() - /** - * @param account Account to query. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param filters Filters to DescribeImages call. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun filters(filters: Map>) { cdkBuilder.filters(filters) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param owners Owners to DescribeImages call. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun owners(owners: List) { cdkBuilder.owners(owners) } - /** - * @param owners Owners to DescribeImages call. - */ override fun owners(vararg owners: String): Unit = owners(owners.toList()) - /** - * @param region Region to query. - */ override fun region(region: String) { cdkBuilder.region(region) } @@ -146,34 +75,21 @@ public interface AmiContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AmiContextQuery, - ) : CdkObject(cdkObject), AmiContextQuery { - /** - * Account to query. - */ + ) : CdkObject(cdkObject), + AmiContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * Filters to DescribeImages call. - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun filters(): Map> = unwrap(this).getFilters() ?: emptyMap() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Owners to DescribeImages call. - * - * Default: - All owners - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun owners(): List = unwrap(this).getOwners() ?: emptyList() - /** - * Region to query. - */ override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ArtifactManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ArtifactManifest.kt index bc4835b560..1a829080ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ArtifactManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ArtifactManifest.kt @@ -12,181 +12,56 @@ import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * A manifest for a single artifact within the cloud assembly. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * ArtifactManifest artifactManifest = ArtifactManifest.builder() - * .type(ArtifactType.NONE) - * // the properties below are optional - * .dependencies(List.of("dependencies")) - * .displayName("displayName") - * .environment("environment") - * .metadata(Map.of( - * "metadataKey", List.of(MetadataEntry.builder() - * .type("type") - * // the properties below are optional - * .data("data") - * .trace(List.of("trace")) - * .build()))) - * .properties(AwsCloudFormationStackProperties.builder() - * .templateFile("templateFile") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") - * .lookupRole(BootstrapRole.builder() - * .arn("arn") - * // the properties below are optional - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build()) - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .requiresBootstrapStackVersion(123) - * .stackName("stackName") - * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") - * .tags(Map.of( - * "tagsKey", "tags")) - * .terminationProtection(false) - * .validateOnSynth(false) - * .build()) - * .build(); - * ``` - */ public interface ArtifactManifest { - /** - * IDs of artifacts that must be deployed before this artifact. - * - * Default: - no dependencies. - */ public fun dependencies(): List = unwrap(this).getDependencies() ?: emptyList() - /** - * A string that represents this artifact. - * - * Should only be used in user interfaces. - * - * Default: - no display name - */ public fun displayName(): String? = unwrap(this).getDisplayName() - /** - * The environment into which this artifact is deployed. - * - * Default: - no envrionment. - */ public fun environment(): String? = unwrap(this).getEnvironment() - /** - * Associated metadata. - * - * Default: - no metadata. - */ public fun metadata(): Map> = unwrap(this).getMetadata()?.mapValues{it.value.map(MetadataEntry::wrap)} ?: emptyMap() - /** - * The set of properties for this artifact (depends on type). - * - * Default: - no properties. - */ public fun properties(): Any? = unwrap(this).getProperties() - /** - * The type of artifact. - */ public fun type(): ArtifactType - /** - * A builder for [ArtifactManifest] - */ @CdkDslMarker public interface Builder { - /** - * @param dependencies IDs of artifacts that must be deployed before this artifact. - */ public fun dependencies(dependencies: List) - /** - * @param dependencies IDs of artifacts that must be deployed before this artifact. - */ public fun dependencies(vararg dependencies: String) - /** - * @param displayName A string that represents this artifact. - * Should only be used in user interfaces. - */ public fun displayName(displayName: String) - /** - * @param environment The environment into which this artifact is deployed. - */ public fun environment(environment: String) - /** - * @param metadata Associated metadata. - */ public fun metadata(metadata: Map>) - /** - * @param properties The set of properties for this artifact (depends on type). - */ public fun properties(properties: AwsCloudFormationStackProperties) - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a9cd88ece8befdc19b37573af4b6c9ee97784ee34c7291444edc318e75ea25c6") public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) - /** - * @param properties The set of properties for this artifact (depends on type). - */ public fun properties(properties: AssetManifestProperties) - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ee0ebde54971d0249092385447cb2b381d07277ce72ceb0f74f7a3eaa1fe4c29") public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) - /** - * @param properties The set of properties for this artifact (depends on type). - */ public fun properties(properties: TreeArtifactProperties) - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("47793dc3eb10e0d0626e3b0aa0cf9c28e466764aeba5fa5edc25e3214336a9b0") public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) - /** - * @param properties The set of properties for this artifact (depends on type). - */ public fun properties(properties: NestedCloudAssemblyProperties) - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d46dae78e7b3afa168d770b9d51e110746b9cc92d5dde476a945f005261b5f64") public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) - /** - * @param type The type of artifact. - */ public fun type(type: ArtifactType) } @@ -194,104 +69,61 @@ public interface ArtifactManifest { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.ArtifactManifest.Builder = software.amazon.awscdk.cloudassembly.schema.ArtifactManifest.builder() - /** - * @param dependencies IDs of artifacts that must be deployed before this artifact. - */ override fun dependencies(dependencies: List) { cdkBuilder.dependencies(dependencies) } - /** - * @param dependencies IDs of artifacts that must be deployed before this artifact. - */ override fun dependencies(vararg dependencies: String): Unit = dependencies(dependencies.toList()) - /** - * @param displayName A string that represents this artifact. - * Should only be used in user interfaces. - */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) } - /** - * @param environment The environment into which this artifact is deployed. - */ override fun environment(environment: String) { cdkBuilder.environment(environment) } - /** - * @param metadata Associated metadata. - */ override fun metadata(metadata: Map>) { cdkBuilder.metadata(metadata.mapValues{it.value.map(MetadataEntry.Companion::unwrap) }) } - /** - * @param properties The set of properties for this artifact (depends on type). - */ override fun properties(properties: AwsCloudFormationStackProperties) { cdkBuilder.properties(properties.let(AwsCloudFormationStackProperties.Companion::unwrap)) } - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a9cd88ece8befdc19b37573af4b6c9ee97784ee34c7291444edc318e75ea25c6") override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = properties(AwsCloudFormationStackProperties(properties)) - /** - * @param properties The set of properties for this artifact (depends on type). - */ override fun properties(properties: AssetManifestProperties) { cdkBuilder.properties(properties.let(AssetManifestProperties.Companion::unwrap)) } - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ee0ebde54971d0249092385447cb2b381d07277ce72ceb0f74f7a3eaa1fe4c29") override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = properties(AssetManifestProperties(properties)) - /** - * @param properties The set of properties for this artifact (depends on type). - */ override fun properties(properties: TreeArtifactProperties) { cdkBuilder.properties(properties.let(TreeArtifactProperties.Companion::unwrap)) } - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("47793dc3eb10e0d0626e3b0aa0cf9c28e466764aeba5fa5edc25e3214336a9b0") override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = properties(TreeArtifactProperties(properties)) - /** - * @param properties The set of properties for this artifact (depends on type). - */ override fun properties(properties: NestedCloudAssemblyProperties) { cdkBuilder.properties(properties.let(NestedCloudAssemblyProperties.Companion::unwrap)) } - /** - * @param properties The set of properties for this artifact (depends on type). - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d46dae78e7b3afa168d770b9d51e110746b9cc92d5dde476a945f005261b5f64") override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = properties(NestedCloudAssemblyProperties(properties)) - /** - * @param type The type of artifact. - */ override fun type(type: ArtifactType) { cdkBuilder.type(type.let(ArtifactType.Companion::unwrap)) } @@ -302,48 +134,19 @@ public interface ArtifactManifest { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.ArtifactManifest, - ) : CdkObject(cdkObject), ArtifactManifest { - /** - * IDs of artifacts that must be deployed before this artifact. - * - * Default: - no dependencies. - */ + ) : CdkObject(cdkObject), + ArtifactManifest { override fun dependencies(): List = unwrap(this).getDependencies() ?: emptyList() - /** - * A string that represents this artifact. - * - * Should only be used in user interfaces. - * - * Default: - no display name - */ override fun displayName(): String? = unwrap(this).getDisplayName() - /** - * The environment into which this artifact is deployed. - * - * Default: - no envrionment. - */ override fun environment(): String? = unwrap(this).getEnvironment() - /** - * Associated metadata. - * - * Default: - no metadata. - */ override fun metadata(): Map> = unwrap(this).getMetadata()?.mapValues{it.value.map(MetadataEntry::wrap)} ?: emptyMap() - /** - * The set of properties for this artifact (depends on type). - * - * Default: - no properties. - */ override fun properties(): Any? = unwrap(this).getProperties() - /** - * The type of artifact. - */ override fun type(): ArtifactType = unwrap(this).getType().let(ArtifactType::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssemblyManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssemblyManifest.kt index 941d6adbe3..2645559deb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssemblyManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssemblyManifest.kt @@ -11,148 +11,31 @@ import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * A manifest which describes the cloud assembly. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AssemblyManifest assemblyManifest = AssemblyManifest.builder() - * .version("version") - * // the properties below are optional - * .artifacts(Map.of( - * "artifactsKey", ArtifactManifest.builder() - * .type(ArtifactType.NONE) - * // the properties below are optional - * .dependencies(List.of("dependencies")) - * .displayName("displayName") - * .environment("environment") - * .metadata(Map.of( - * "metadataKey", List.of(MetadataEntry.builder() - * .type("type") - * // the properties below are optional - * .data("data") - * .trace(List.of("trace")) - * .build()))) - * .properties(AwsCloudFormationStackProperties.builder() - * .templateFile("templateFile") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") - * .lookupRole(BootstrapRole.builder() - * .arn("arn") - * // the properties below are optional - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build()) - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .requiresBootstrapStackVersion(123) - * .stackName("stackName") - * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") - * .tags(Map.of( - * "tagsKey", "tags")) - * .terminationProtection(false) - * .validateOnSynth(false) - * .build()) - * .build())) - * .missing(List.of(MissingContext.builder() - * .key("key") - * .props(AmiContextQuery.builder() - * .account("account") - * .filters(Map.of( - * "filtersKey", List.of("filters"))) - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .owners(List.of("owners")) - * .build()) - * .provider(ContextProvider.AMI_PROVIDER) - * .build())) - * .runtime(RuntimeInfo.builder() - * .libraries(Map.of( - * "librariesKey", "libraries")) - * .build()) - * .build(); - * ``` - */ public interface AssemblyManifest { - /** - * The set of artifacts in this assembly. - * - * Default: - no artifacts. - */ public fun artifacts(): Map = unwrap(this).getArtifacts()?.mapValues{ArtifactManifest.wrap(it.value)} ?: emptyMap() - /** - * Missing context information. - * - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - * - * Default: - no missing context. - */ public fun missing(): List = unwrap(this).getMissing()?.map(MissingContext::wrap) ?: emptyList() - /** - * Runtime information. - * - * Default: - no info. - */ public fun runtime(): RuntimeInfo? = unwrap(this).getRuntime()?.let(RuntimeInfo::wrap) - /** - * Protocol version. - */ public fun version(): String - /** - * A builder for [AssemblyManifest] - */ @CdkDslMarker public interface Builder { - /** - * @param artifacts The set of artifacts in this assembly. - */ public fun artifacts(artifacts: Map) - /** - * @param missing Missing context information. - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - */ public fun missing(missing: List) - /** - * @param missing Missing context information. - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - */ public fun missing(vararg missing: MissingContext) - /** - * @param runtime Runtime information. - */ public fun runtime(runtime: RuntimeInfo) - /** - * @param runtime Runtime information. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2fbe00ae4a039ff3c7f57bbb0cdea243308a2334a847904cd126a6e8b6a47d86") public fun runtime(runtime: RuntimeInfo.Builder.() -> Unit) - /** - * @param version Protocol version. - */ public fun version(version: String) } @@ -160,47 +43,25 @@ public interface AssemblyManifest { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.AssemblyManifest.Builder = software.amazon.awscdk.cloudassembly.schema.AssemblyManifest.builder() - /** - * @param artifacts The set of artifacts in this assembly. - */ override fun artifacts(artifacts: Map) { cdkBuilder.artifacts(artifacts.mapValues{ArtifactManifest.unwrap(it.value)}) } - /** - * @param missing Missing context information. - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - */ override fun missing(missing: List) { cdkBuilder.missing(missing.map(MissingContext.Companion::unwrap)) } - /** - * @param missing Missing context information. - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - */ override fun missing(vararg missing: MissingContext): Unit = missing(missing.toList()) - /** - * @param runtime Runtime information. - */ override fun runtime(runtime: RuntimeInfo) { cdkBuilder.runtime(runtime.let(RuntimeInfo.Companion::unwrap)) } - /** - * @param runtime Runtime information. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2fbe00ae4a039ff3c7f57bbb0cdea243308a2334a847904cd126a6e8b6a47d86") override fun runtime(runtime: RuntimeInfo.Builder.() -> Unit): Unit = runtime(RuntimeInfo(runtime)) - /** - * @param version Protocol version. - */ override fun version(version: String) { cdkBuilder.version(version) } @@ -211,36 +72,16 @@ public interface AssemblyManifest { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AssemblyManifest, - ) : CdkObject(cdkObject), AssemblyManifest { - /** - * The set of artifacts in this assembly. - * - * Default: - no artifacts. - */ + ) : CdkObject(cdkObject), + AssemblyManifest { override fun artifacts(): Map = unwrap(this).getArtifacts()?.mapValues{ArtifactManifest.wrap(it.value)} ?: emptyMap() - /** - * Missing context information. - * - * If this field has values, it means that the - * cloud assembly is not complete and should not be deployed. - * - * Default: - no missing context. - */ override fun missing(): List = unwrap(this).getMissing()?.map(MissingContext::wrap) ?: emptyList() - /** - * Runtime information. - * - * Default: - no info. - */ override fun runtime(): RuntimeInfo? = unwrap(this).getRuntime()?.let(RuntimeInfo::wrap) - /** - * Protocol version. - */ override fun version(): String = unwrap(this).getVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifest.kt index a360bf46e1..213d01ac7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifest.kt @@ -9,117 +9,21 @@ import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Definitions for the asset manifest. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AssetManifest assetManifest = AssetManifest.builder() - * .version("version") - * // the properties below are optional - * .dockerImages(Map.of( - * "dockerImagesKey", DockerImageAsset.builder() - * .destinations(Map.of( - * "destinationsKey", DockerImageDestination.builder() - * .imageTag("imageTag") - * .repositoryName("repositoryName") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build())) - * .source(DockerImageSource.builder() - * .cacheDisabled(false) - * .cacheFrom(List.of(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build())) - * .cacheTo(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build()) - * .directory("directory") - * .dockerBuildArgs(Map.of( - * "dockerBuildArgsKey", "dockerBuildArgs")) - * .dockerBuildSecrets(Map.of( - * "dockerBuildSecretsKey", "dockerBuildSecrets")) - * .dockerBuildSsh("dockerBuildSsh") - * .dockerBuildTarget("dockerBuildTarget") - * .dockerFile("dockerFile") - * .dockerOutputs(List.of("dockerOutputs")) - * .executable(List.of("executable")) - * .networkMode("networkMode") - * .platform("platform") - * .build()) - * .build())) - * .files(Map.of( - * "filesKey", FileAsset.builder() - * .destinations(Map.of( - * "destinationsKey", FileDestination.builder() - * .bucketName("bucketName") - * .objectKey("objectKey") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build())) - * .source(FileSource.builder() - * .executable(List.of("executable")) - * .packaging(FileAssetPackaging.FILE) - * .path("path") - * .build()) - * .build())) - * .build(); - * ``` - */ public interface AssetManifest { - /** - * The Docker image assets in this manifest. - * - * Default: - No Docker images - */ public fun dockerImages(): Map = unwrap(this).getDockerImages()?.mapValues{DockerImageAsset.wrap(it.value)} ?: emptyMap() - /** - * The file assets in this manifest. - * - * Default: - No files - */ public fun files(): Map = unwrap(this).getFiles()?.mapValues{FileAsset.wrap(it.value)} ?: emptyMap() - /** - * Version of the manifest. - */ public fun version(): String - /** - * A builder for [AssetManifest] - */ @CdkDslMarker public interface Builder { - /** - * @param dockerImages The Docker image assets in this manifest. - */ public fun dockerImages(dockerImages: Map) - /** - * @param files The file assets in this manifest. - */ public fun files(files: Map) - /** - * @param version Version of the manifest. - */ public fun version(version: String) } @@ -127,23 +31,14 @@ public interface AssetManifest { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.AssetManifest.Builder = software.amazon.awscdk.cloudassembly.schema.AssetManifest.builder() - /** - * @param dockerImages The Docker image assets in this manifest. - */ override fun dockerImages(dockerImages: Map) { cdkBuilder.dockerImages(dockerImages.mapValues{DockerImageAsset.unwrap(it.value)}) } - /** - * @param files The file assets in this manifest. - */ override fun files(files: Map) { cdkBuilder.files(files.mapValues{FileAsset.unwrap(it.value)}) } - /** - * @param version Version of the manifest. - */ override fun version(version: String) { cdkBuilder.version(version) } @@ -154,26 +49,14 @@ public interface AssetManifest { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AssetManifest, - ) : CdkObject(cdkObject), AssetManifest { - /** - * The Docker image assets in this manifest. - * - * Default: - No Docker images - */ + ) : CdkObject(cdkObject), + AssetManifest { override fun dockerImages(): Map = unwrap(this).getDockerImages()?.mapValues{DockerImageAsset.wrap(it.value)} ?: emptyMap() - /** - * The file assets in this manifest. - * - * Default: - No files - */ override fun files(): Map = unwrap(this).getFiles()?.mapValues{FileAsset.wrap(it.value)} ?: emptyMap() - /** - * Version of the manifest. - */ override fun version(): String = unwrap(this).getVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestOptions.kt index 616577532b..b55c5180cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestOptions.kt @@ -9,64 +9,17 @@ import kotlin.Number import kotlin.String import kotlin.Unit -/** - * Configuration options for the Asset Manifest. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AssetManifestOptions assetManifestOptions = AssetManifestOptions.builder() - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build(); - * ``` - */ public interface AssetManifestOptions { - /** - * SSM parameter where the bootstrap stack version number can be found. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - * - * Default: - Bootstrap stack version number looked up - */ public fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * Version of bootstrap stack required to deploy this stack. - * - * Default: - Version 1 (basic modern bootstrap stack) - */ public fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() - /** - * A builder for [AssetManifestOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) } @@ -74,23 +27,10 @@ public interface AssetManifestOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.AssetManifestOptions.Builder = software.amazon.awscdk.cloudassembly.schema.AssetManifestOptions.builder() - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) } - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) } @@ -101,26 +41,11 @@ public interface AssetManifestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AssetManifestOptions, - ) : CdkObject(cdkObject), AssetManifestOptions { - /** - * SSM parameter where the bootstrap stack version number can be found. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - * - * Default: - Bootstrap stack version number looked up - */ + ) : CdkObject(cdkObject), + AssetManifestOptions { override fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * Version of bootstrap stack required to deploy this stack. - * - * Default: - Version 1 (basic modern bootstrap stack) - */ override fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestProperties.kt index f04713e8dd..13d9f06f58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssetManifestProperties.kt @@ -9,54 +9,15 @@ import kotlin.Number import kotlin.String import kotlin.Unit -/** - * Artifact properties for the Asset Manifest. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AssetManifestProperties assetManifestProperties = AssetManifestProperties.builder() - * .file("file") - * // the properties below are optional - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build(); - * ``` - */ public interface AssetManifestProperties : AssetManifestOptions { - /** - * Filename of the asset manifest. - */ public fun `file`(): String - /** - * A builder for [AssetManifestProperties] - */ @CdkDslMarker public interface Builder { - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) - /** - * @param file Filename of the asset manifest. - */ public fun `file`(`file`: String) - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) } @@ -65,30 +26,14 @@ public interface AssetManifestProperties : AssetManifestOptions { software.amazon.awscdk.cloudassembly.schema.AssetManifestProperties.Builder = software.amazon.awscdk.cloudassembly.schema.AssetManifestProperties.builder() - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) } - /** - * @param file Filename of the asset manifest. - */ override fun `file`(`file`: String) { cdkBuilder.`file`(`file`) } - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) } @@ -99,31 +44,13 @@ public interface AssetManifestProperties : AssetManifestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AssetManifestProperties, - ) : CdkObject(cdkObject), AssetManifestProperties { - /** - * SSM parameter where the bootstrap stack version number can be found. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - * - * Default: - Bootstrap stack version number looked up - */ + ) : CdkObject(cdkObject), + AssetManifestProperties { override fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * Filename of the asset manifest. - */ override fun `file`(): String = unwrap(this).getFile() - /** - * Version of bootstrap stack required to deploy this stack. - * - * Default: - Version 1 (basic modern bootstrap stack) - */ override fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AvailabilityZonesContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AvailabilityZonesContextQuery.kt index 9450a5d2ba..a95546e886 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AvailabilityZonesContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AvailabilityZonesContextQuery.kt @@ -5,63 +5,22 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query to availability zone context provider. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AvailabilityZonesContextQuery availabilityZonesContextQuery = - * AvailabilityZonesContextQuery.builder() - * .account("account") - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ -public interface AvailabilityZonesContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * A builder for [AvailabilityZonesContextQuery] - */ +public interface AvailabilityZonesContextQuery : ContextLookupRoleOptions { @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) } @@ -70,23 +29,22 @@ public interface AvailabilityZonesContextQuery { software.amazon.awscdk.cloudassembly.schema.AvailabilityZonesContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.AvailabilityZonesContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } @@ -97,22 +55,17 @@ public interface AvailabilityZonesContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AvailabilityZonesContextQuery, - ) : CdkObject(cdkObject), AvailabilityZonesContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + AvailabilityZonesContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsCloudFormationStackProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsCloudFormationStackProperties.kt index 53166b09e1..162a719dcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsCloudFormationStackProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsCloudFormationStackProperties.kt @@ -5,240 +5,86 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * Artifact properties for CloudFormation stacks. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AwsCloudFormationStackProperties awsCloudFormationStackProperties = - * AwsCloudFormationStackProperties.builder() - * .templateFile("templateFile") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") - * .lookupRole(BootstrapRole.builder() - * .arn("arn") - * // the properties below are optional - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build()) - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .requiresBootstrapStackVersion(123) - * .stackName("stackName") - * .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") - * .tags(Map.of( - * "tagsKey", "tags")) - * .terminationProtection(false) - * .validateOnSynth(false) - * .build(); - * ``` - */ public interface AwsCloudFormationStackProperties { - /** - * The role that needs to be assumed to deploy the stack. - * - * Default: - No role is assumed (current credentials are used) - */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + public fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * External ID to use when assuming role for cloudformation deployments. - * - * Default: - No external ID - */ public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * SSM parameter where the bootstrap stack version number can be found. - * - * Only used if `requiresBootstrapStackVersion` is set. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - * - * Default: - Bootstrap stack version number looked up - */ public fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * The role that is passed to CloudFormation to execute the change set. - * - * Default: - No role is passed (currently assumed role/credentials are used) - */ public fun cloudFormationExecutionRoleArn(): String? = unwrap(this).getCloudFormationExecutionRoleArn() - /** - * The role to use to look up values from the target AWS account. - * - * Default: - No role is assumed (current credentials are used) - */ public fun lookupRole(): BootstrapRole? = unwrap(this).getLookupRole()?.let(BootstrapRole::wrap) - /** - * Values for CloudFormation stack parameters that should be passed when the stack is deployed. - * - * Default: - No parameters - */ + public fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() + public fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() - /** - * Version of bootstrap stack required to deploy this stack. - * - * Default: - No bootstrap stack required - */ public fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() - /** - * The name to use for the CloudFormation stack. - * - * Default: - name derived from artifact ID - */ public fun stackName(): String? = unwrap(this).getStackName() - /** - * If the stack template has already been included in the asset manifest, its asset URL. - * - * Default: - Not uploaded yet, upload just before deploying - */ public fun stackTemplateAssetObjectUrl(): String? = unwrap(this).getStackTemplateAssetObjectUrl() - /** - * Values for CloudFormation stack tags that should be passed when the stack is deployed. - * - * Default: - No tags - */ public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() - /** - * A file relative to the assembly root which contains the CloudFormation template for this stack. - */ public fun templateFile(): String - /** - * Whether to enable termination protection for this stack. - * - * Default: false - */ public fun terminationProtection(): Boolean? = unwrap(this).getTerminationProtection() - /** - * Whether this stack should be validated by the CLI after synthesis. - * - * Default: - false - */ public fun validateOnSynth(): Boolean? = unwrap(this).getValidateOnSynth() - /** - * A builder for [AwsCloudFormationStackProperties] - */ @CdkDslMarker public interface Builder { - /** - * @param assumeRoleArn The role that needs to be assumed to deploy the stack. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun assumeRoleArn(assumeRoleArn: String) - /** - * @param assumeRoleExternalId External ID to use when assuming role for cloudformation - * deployments. - */ public fun assumeRoleExternalId(assumeRoleExternalId: String) - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * Only used if `requiresBootstrapStackVersion` is set. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) - /** - * @param cloudFormationExecutionRoleArn The role that is passed to CloudFormation to execute - * the change set. - */ public fun cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn: String) - /** - * @param lookupRole The role to use to look up values from the target AWS account. - */ public fun lookupRole(lookupRole: BootstrapRole) - /** - * @param lookupRole The role to use to look up values from the target AWS account. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("66cdfd634382a91730ba398609c925c72c2a679ff6839ff6fe17d526b3ed399a") public fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit) - /** - * @param parameters Values for CloudFormation stack parameters that should be passed when the - * stack is deployed. - */ + public fun notificationArns(notificationArns: List) + + public fun notificationArns(vararg notificationArns: String) + public fun parameters(parameters: Map) - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) - /** - * @param stackName The name to use for the CloudFormation stack. - */ public fun stackName(stackName: String) - /** - * @param stackTemplateAssetObjectUrl If the stack template has already been included in the - * asset manifest, its asset URL. - */ public fun stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl: String) - /** - * @param tags Values for CloudFormation stack tags that should be passed when the stack is - * deployed. - */ public fun tags(tags: Map) - /** - * @param templateFile A file relative to the assembly root which contains the CloudFormation - * template for this stack. - */ public fun templateFile(templateFile: String) - /** - * @param terminationProtection Whether to enable termination protection for this stack. - */ public fun terminationProtection(terminationProtection: Boolean) - /** - * @param validateOnSynth Whether this stack should be validated by the CLI after synthesis. - */ public fun validateOnSynth(validateOnSynth: Boolean) } @@ -247,116 +93,70 @@ public interface AwsCloudFormationStackProperties { software.amazon.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties.Builder = software.amazon.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties.builder() - /** - * @param assumeRoleArn The role that needs to be assumed to deploy the stack. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun assumeRoleArn(assumeRoleArn: String) { cdkBuilder.assumeRoleArn(assumeRoleArn) } - /** - * @param assumeRoleExternalId External ID to use when assuming role for cloudformation - * deployments. - */ override fun assumeRoleExternalId(assumeRoleExternalId: String) { cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) } - /** - * @param bootstrapStackVersionSsmParameter SSM parameter where the bootstrap stack version - * number can be found. - * Only used if `requiresBootstrapStackVersion` is set. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - */ override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) } - /** - * @param cloudFormationExecutionRoleArn The role that is passed to CloudFormation to execute - * the change set. - */ override fun cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn: String) { cdkBuilder.cloudFormationExecutionRoleArn(cloudFormationExecutionRoleArn) } - /** - * @param lookupRole The role to use to look up values from the target AWS account. - */ override fun lookupRole(lookupRole: BootstrapRole) { cdkBuilder.lookupRole(lookupRole.let(BootstrapRole.Companion::unwrap)) } - /** - * @param lookupRole The role to use to look up values from the target AWS account. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("66cdfd634382a91730ba398609c925c72c2a679ff6839ff6fe17d526b3ed399a") override fun lookupRole(lookupRole: BootstrapRole.Builder.() -> Unit): Unit = lookupRole(BootstrapRole(lookupRole)) - /** - * @param parameters Values for CloudFormation stack parameters that should be passed when the - * stack is deployed. - */ + override fun notificationArns(notificationArns: List) { + cdkBuilder.notificationArns(notificationArns) + } + + override fun notificationArns(vararg notificationArns: String): Unit = + notificationArns(notificationArns.toList()) + override fun parameters(parameters: Map) { cdkBuilder.parameters(parameters) } - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to deploy this - * stack. - */ override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) } - /** - * @param stackName The name to use for the CloudFormation stack. - */ override fun stackName(stackName: String) { cdkBuilder.stackName(stackName) } - /** - * @param stackTemplateAssetObjectUrl If the stack template has already been included in the - * asset manifest, its asset URL. - */ override fun stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl: String) { cdkBuilder.stackTemplateAssetObjectUrl(stackTemplateAssetObjectUrl) } - /** - * @param tags Values for CloudFormation stack tags that should be passed when the stack is - * deployed. - */ override fun tags(tags: Map) { cdkBuilder.tags(tags) } - /** - * @param templateFile A file relative to the assembly root which contains the CloudFormation - * template for this stack. - */ override fun templateFile(templateFile: String) { cdkBuilder.templateFile(templateFile) } - /** - * @param terminationProtection Whether to enable termination protection for this stack. - */ override fun terminationProtection(terminationProtection: Boolean) { cdkBuilder.terminationProtection(terminationProtection) } - /** - * @param validateOnSynth Whether this stack should be validated by the CLI after synthesis. - */ override fun validateOnSynth(validateOnSynth: Boolean) { cdkBuilder.validateOnSynth(validateOnSynth) } @@ -367,108 +167,43 @@ public interface AwsCloudFormationStackProperties { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties, - ) : CdkObject(cdkObject), AwsCloudFormationStackProperties { - /** - * The role that needs to be assumed to deploy the stack. - * - * Default: - No role is assumed (current credentials are used) - */ + ) : CdkObject(cdkObject), + AwsCloudFormationStackProperties { + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * External ID to use when assuming role for cloudformation deployments. - * - * Default: - No external ID - */ override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * SSM parameter where the bootstrap stack version number can be found. - * - * Only used if `requiresBootstrapStackVersion` is set. - * - * * If this value is not set, the bootstrap stack name must be known at - * deployment time so the stack version can be looked up from the stack - * outputs. - * * If this value is set, the bootstrap stack can have any name because - * we won't need to look it up. - * - * Default: - Bootstrap stack version number looked up - */ override fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * The role that is passed to CloudFormation to execute the change set. - * - * Default: - No role is passed (currently assumed role/credentials are used) - */ override fun cloudFormationExecutionRoleArn(): String? = unwrap(this).getCloudFormationExecutionRoleArn() - /** - * The role to use to look up values from the target AWS account. - * - * Default: - No role is assumed (current credentials are used) - */ override fun lookupRole(): BootstrapRole? = unwrap(this).getLookupRole()?.let(BootstrapRole::wrap) - /** - * Values for CloudFormation stack parameters that should be passed when the stack is deployed. - * - * Default: - No parameters - */ + override fun notificationArns(): List = unwrap(this).getNotificationArns() ?: + emptyList() + override fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() - /** - * Version of bootstrap stack required to deploy this stack. - * - * Default: - No bootstrap stack required - */ override fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() - /** - * The name to use for the CloudFormation stack. - * - * Default: - name derived from artifact ID - */ override fun stackName(): String? = unwrap(this).getStackName() - /** - * If the stack template has already been included in the asset manifest, its asset URL. - * - * Default: - Not uploaded yet, upload just before deploying - */ override fun stackTemplateAssetObjectUrl(): String? = unwrap(this).getStackTemplateAssetObjectUrl() - /** - * Values for CloudFormation stack tags that should be passed when the stack is deployed. - * - * Default: - No tags - */ override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() - /** - * A file relative to the assembly root which contains the CloudFormation template for this - * stack. - */ override fun templateFile(): String = unwrap(this).getTemplateFile() - /** - * Whether to enable termination protection for this stack. - * - * Default: false - */ override fun terminationProtection(): Boolean? = unwrap(this).getTerminationProtection() - /** - * Whether this stack should be validated by the CLI after synthesis. - * - * Default: - false - */ override fun validateOnSynth(): Boolean? = unwrap(this).getValidateOnSynth() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsDestination.kt index 334954e504..b9cd8efd50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AwsDestination.kt @@ -5,66 +5,29 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Destination for assets that need to be uploaded to AWS. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * AwsDestination awsDestination = AwsDestination.builder() - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build(); - * ``` - */ public interface AwsDestination { - /** - * The role that needs to be assumed while publishing this asset. - * - * Default: - No role will be assumed - */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + public fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * The ExternalId that needs to be supplied while assuming this role. - * - * Default: - No ExternalId will be supplied - */ public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * The region where this asset will need to be published. - * - * Default: - Current region - */ public fun region(): String? = unwrap(this).getRegion() - /** - * A builder for [AwsDestination] - */ @CdkDslMarker public interface Builder { - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun assumeRoleArn(assumeRoleArn: String) - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ public fun assumeRoleExternalId(assumeRoleExternalId: String) - /** - * @param region The region where this asset will need to be published. - */ public fun region(region: String) } @@ -72,24 +35,18 @@ public interface AwsDestination { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.AwsDestination.Builder = software.amazon.awscdk.cloudassembly.schema.AwsDestination.builder() - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun assumeRoleArn(assumeRoleArn: String) { cdkBuilder.assumeRoleArn(assumeRoleArn) } - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ override fun assumeRoleExternalId(assumeRoleExternalId: String) { cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) } - /** - * @param region The region where this asset will need to be published. - */ override fun region(region: String) { cdkBuilder.region(region) } @@ -100,26 +57,15 @@ public interface AwsDestination { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.AwsDestination, - ) : CdkObject(cdkObject), AwsDestination { - /** - * The role that needs to be assumed while publishing this asset. - * - * Default: - No role will be assumed - */ + ) : CdkObject(cdkObject), + AwsDestination { + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * The ExternalId that needs to be supplied while assuming this role. - * - * Default: - No ExternalId will be supplied - */ override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * The region where this asset will need to be published. - * - * Default: - Current region - */ override fun region(): String? = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/BootstrapRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/BootstrapRole.kt index ecf4b8d075..e2ec25f1b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/BootstrapRole.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/BootstrapRole.kt @@ -5,80 +5,36 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Information needed to access an IAM role created as part of the bootstrap process. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * BootstrapRole bootstrapRole = BootstrapRole.builder() - * .arn("arn") - * // the properties below are optional - * .assumeRoleExternalId("assumeRoleExternalId") - * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") - * .requiresBootstrapStackVersion(123) - * .build(); - * ``` - */ public interface BootstrapRole { - /** - * The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. - */ public fun arn(): String - /** - * External ID to use when assuming the bootstrap role. - * - * Default: - No external ID - */ + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + public fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * Name of SSM parameter with bootstrap stack version. - * - * Default: - Discover SSM parameter by reading stack - */ public fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * Version of bootstrap stack required to use this role. - * - * Default: - No bootstrap stack required - */ public fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() - /** - * A builder for [BootstrapRole] - */ @CdkDslMarker public interface Builder { - /** - * @param arn The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. - */ public fun arn(arn: String) - /** - * @param assumeRoleExternalId External ID to use when assuming the bootstrap role. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun assumeRoleExternalId(assumeRoleExternalId: String) - /** - * @param bootstrapStackVersionSsmParameter Name of SSM parameter with bootstrap stack version. - */ public fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to use this role. - */ public fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) } @@ -86,30 +42,22 @@ public interface BootstrapRole { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.BootstrapRole.Builder = software.amazon.awscdk.cloudassembly.schema.BootstrapRole.builder() - /** - * @param arn The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. - */ override fun arn(arn: String) { cdkBuilder.arn(arn) } - /** - * @param assumeRoleExternalId External ID to use when assuming the bootstrap role. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun assumeRoleExternalId(assumeRoleExternalId: String) { cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) } - /** - * @param bootstrapStackVersionSsmParameter Name of SSM parameter with bootstrap stack version. - */ override fun bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter: String) { cdkBuilder.bootstrapStackVersionSsmParameter(bootstrapStackVersionSsmParameter) } - /** - * @param requiresBootstrapStackVersion Version of bootstrap stack required to use this role. - */ override fun requiresBootstrapStackVersion(requiresBootstrapStackVersion: Number) { cdkBuilder.requiresBootstrapStackVersion(requiresBootstrapStackVersion) } @@ -120,32 +68,18 @@ public interface BootstrapRole { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.BootstrapRole, - ) : CdkObject(cdkObject), BootstrapRole { - /** - * The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. - */ + ) : CdkObject(cdkObject), + BootstrapRole { override fun arn(): String = unwrap(this).getArn() - /** - * External ID to use when assuming the bootstrap role. - * - * Default: - No external ID - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * Name of SSM parameter with bootstrap stack version. - * - * Default: - Discover SSM parameter by reading stack - */ override fun bootstrapStackVersionSsmParameter(): String? = unwrap(this).getBootstrapStackVersionSsmParameter() - /** - * Version of bootstrap stack required to use this role. - * - * Default: - No bootstrap stack required - */ override fun requiresBootstrapStackVersion(): Number? = unwrap(this).getRequiresBootstrapStackVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommand.kt index 65cef7e23b..0a8cceb0cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommand.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommand.kt @@ -9,68 +9,19 @@ import kotlin.Boolean import kotlin.String import kotlin.Unit -/** - * Represents a cdk command i.e. `synth`, `deploy`, & `destroy`. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * CdkCommand cdkCommand = CdkCommand.builder() - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build(); - * ``` - */ public interface CdkCommand { - /** - * Whether or not to run this command as part of the workflow This can be used if you only want to - * test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in order - * to limit the test to synthesis. - * - * Default: true - */ public fun enabled(): Boolean? = unwrap(this).getEnabled() - /** - * If the runner should expect this command to fail. - * - * Default: false - */ public fun expectError(): Boolean? = unwrap(this).getExpectError() - /** - * This can be used in combination with `expectedError` to validate that a specific message is - * returned. - * - * Default: - do not validate message - */ public fun expectedMessage(): String? = unwrap(this).getExpectedMessage() - /** - * A builder for [CdkCommand] - */ @CdkDslMarker public interface Builder { - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ public fun enabled(enabled: Boolean) - /** - * @param expectError If the runner should expect this command to fail. - */ public fun expectError(expectError: Boolean) - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ public fun expectedMessage(expectedMessage: String) } @@ -78,26 +29,14 @@ public interface CdkCommand { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.CdkCommand.Builder = software.amazon.awscdk.cloudassembly.schema.CdkCommand.builder() - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } - /** - * @param expectError If the runner should expect this command to fail. - */ override fun expectError(expectError: Boolean) { cdkBuilder.expectError(expectError) } - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ override fun expectedMessage(expectedMessage: String) { cdkBuilder.expectedMessage(expectedMessage) } @@ -107,29 +46,12 @@ public interface CdkCommand { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.CdkCommand, - ) : CdkObject(cdkObject), CdkCommand { - /** - * Whether or not to run this command as part of the workflow This can be used if you only want - * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in - * order to limit the test to synthesis. - * - * Default: true - */ + ) : CdkObject(cdkObject), + CdkCommand { override fun enabled(): Boolean? = unwrap(this).getEnabled() - /** - * If the runner should expect this command to fail. - * - * Default: false - */ override fun expectError(): Boolean? = unwrap(this).getExpectError() - /** - * This can be used in combination with `expectedError` to validate that a specific message is - * returned. - * - * Default: - do not validate message - */ override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommands.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommands.kt index f4900809f0..75f9f7f333 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommands.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/CdkCommands.kt @@ -8,75 +8,21 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Unit import kotlin.jvm.JvmName -/** - * Options for specific cdk commands that are run as part of the integration test workflow. - * - * Example: - * - * ``` - * App app = new App(); - * Stack stackUnderTest = new Stack(app, "StackUnderTest"); - * Stack stack = new Stack(app, "stack"); - * IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") - * .testCases(List.of(stackUnderTest)) - * .diffAssets(true) - * .stackUpdateWorkflow(true) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .requireApproval(RequireApproval.NEVER) - * .json(true) - * .build()) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .force(true) - * .build()) - * .build()) - * .build()) - * .build(); - * ``` - */ public interface CdkCommands { - /** - * Options to for the cdk deploy command. - * - * Default: - default deploy options - */ public fun deploy(): DeployCommand? = unwrap(this).getDeploy()?.let(DeployCommand::wrap) - /** - * Options to for the cdk destroy command. - * - * Default: - default destroy options - */ public fun destroy(): DestroyCommand? = unwrap(this).getDestroy()?.let(DestroyCommand::wrap) - /** - * A builder for [CdkCommands] - */ @CdkDslMarker public interface Builder { - /** - * @param deploy Options to for the cdk deploy command. - */ public fun deploy(deploy: DeployCommand) - /** - * @param deploy Options to for the cdk deploy command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8b935ef39068b6f10b7dce2573cd5b75c591e12922f229a59f18bfaa88b423ce") public fun deploy(deploy: DeployCommand.Builder.() -> Unit) - /** - * @param destroy Options to for the cdk destroy command. - */ public fun destroy(destroy: DestroyCommand) - /** - * @param destroy Options to for the cdk destroy command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3f0399fe3e9eb59fa37191a75cc7eae2c72d3d577da6e528a9c1fe1b650562d4") public fun destroy(destroy: DestroyCommand.Builder.() -> Unit) @@ -86,31 +32,19 @@ public interface CdkCommands { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.CdkCommands.Builder = software.amazon.awscdk.cloudassembly.schema.CdkCommands.builder() - /** - * @param deploy Options to for the cdk deploy command. - */ override fun deploy(deploy: DeployCommand) { cdkBuilder.deploy(deploy.let(DeployCommand.Companion::unwrap)) } - /** - * @param deploy Options to for the cdk deploy command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8b935ef39068b6f10b7dce2573cd5b75c591e12922f229a59f18bfaa88b423ce") override fun deploy(deploy: DeployCommand.Builder.() -> Unit): Unit = deploy(DeployCommand(deploy)) - /** - * @param destroy Options to for the cdk destroy command. - */ override fun destroy(destroy: DestroyCommand) { cdkBuilder.destroy(destroy.let(DestroyCommand.Companion::unwrap)) } - /** - * @param destroy Options to for the cdk destroy command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3f0399fe3e9eb59fa37191a75cc7eae2c72d3d577da6e528a9c1fe1b650562d4") override fun destroy(destroy: DestroyCommand.Builder.() -> Unit): Unit = @@ -121,19 +55,10 @@ public interface CdkCommands { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.CdkCommands, - ) : CdkObject(cdkObject), CdkCommands { - /** - * Options to for the cdk deploy command. - * - * Default: - default deploy options - */ + ) : CdkObject(cdkObject), + CdkCommands { override fun deploy(): DeployCommand? = unwrap(this).getDeploy()?.let(DeployCommand::wrap) - /** - * Options to for the cdk destroy command. - * - * Default: - default destroy options - */ override fun destroy(): DestroyCommand? = unwrap(this).getDestroy()?.let(DestroyCommand::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetCacheOption.kt index fefd084fa5..ec2bf034bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetCacheOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetCacheOption.kt @@ -9,73 +9,15 @@ import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Options for configuring the Docker cache backend. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * ContainerImageAssetCacheOption containerImageAssetCacheOption = - * ContainerImageAssetCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build(); - * ``` - */ public interface ContainerImageAssetCacheOption { - /** - * Any parameters to pass into the docker cache backend configuration. - * - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - * - * Default: {} No options provided - * - * Example: - * - * ``` - * String branch; - * Map<String, Object> params = Map.of( - * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), - * "mode", "max"); - * ``` - */ public fun params(): Map = unwrap(this).getParams() ?: emptyMap() - /** - * The type of cache to use. - * - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - * - * Default: - unspecified - * - * Example: - * - * ``` - * "registry"; - * ``` - */ public fun type(): String - /** - * A builder for [ContainerImageAssetCacheOption] - */ @CdkDslMarker public interface Builder { - /** - * @param params Any parameters to pass into the docker cache backend configuration. - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - */ public fun params(params: Map) - /** - * @param type The type of cache to use. - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - */ public fun type(type: String) } @@ -84,18 +26,10 @@ public interface ContainerImageAssetCacheOption { software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetCacheOption.Builder = software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetCacheOption.builder() - /** - * @param params Any parameters to pass into the docker cache backend configuration. - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - */ override fun params(params: Map) { cdkBuilder.params(params) } - /** - * @param type The type of cache to use. - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - */ override fun type(type: String) { cdkBuilder.type(type) } @@ -106,38 +40,10 @@ public interface ContainerImageAssetCacheOption { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetCacheOption, - ) : CdkObject(cdkObject), ContainerImageAssetCacheOption { - /** - * Any parameters to pass into the docker cache backend configuration. - * - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - * - * Default: {} No options provided - * - * Example: - * - * ``` - * String branch; - * Map<String, Object> params = Map.of( - * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), - * "mode", "max"); - * ``` - */ + ) : CdkObject(cdkObject), + ContainerImageAssetCacheOption { override fun params(): Map = unwrap(this).getParams() ?: emptyMap() - /** - * The type of cache to use. - * - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - * - * Default: - unspecified - * - * Example: - * - * ``` - * "registry"; - * ``` - */ override fun type(): String = unwrap(this).getType() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetMetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetMetadataEntry.kt index 9dee0fadd8..7d35a8528c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetMetadataEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContainerImageAssetMetadataEntry.kt @@ -6,267 +6,98 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean +import kotlin.Deprecated import kotlin.String import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * Metadata Entry spec for container images. - * - * Example: - * - * ``` - * Map<String, String> entry = Map.of( - * "packaging", "container-image", - * "repositoryName", "repository-name", - * "imageTag", "tag"); - * ``` - */ public interface ContainerImageAssetMetadataEntry { - /** - * Build args to pass to the `docker build` command. - * - * Default: no build args are passed - */ public fun buildArgs(): Map = unwrap(this).getBuildArgs() ?: emptyMap() - /** - * Build secrets to pass to the `docker build` command. - * - * Default: no build secrets are passed - */ public fun buildSecrets(): Map = unwrap(this).getBuildSecrets() ?: emptyMap() - /** - * SSH agent socket or keys to pass to the `docker build` command. - * - * Default: no ssh arg is passed - */ public fun buildSsh(): String? = unwrap(this).getBuildSsh() - /** - * Disable the cache and pass `--no-cache` to the `docker build` command. - * - * Default: - cache is used - */ public fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() - /** - * Cache from options to pass to the `docker build` command. - * - * Default: - no cache from options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ public fun cacheFrom(): List = unwrap(this).getCacheFrom()?.map(ContainerImageAssetCacheOption::wrap) ?: emptyList() - /** - * Cache to options to pass to the `docker build` command. - * - * Default: - no cache to options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ public fun cacheTo(): ContainerImageAssetCacheOption? = unwrap(this).getCacheTo()?.let(ContainerImageAssetCacheOption::wrap) - /** - * Path to the Dockerfile (relative to the directory). - * - * Default: - no file is passed - */ public fun `file`(): String? = unwrap(this).getFile() - /** - * Logical identifier for the asset. - */ public fun id(): String - /** - * The docker image tag to use for tagging pushed images. - * - * This field is - * required if `imageParameterName` is ommited (otherwise, the app won't be - * able to find the image). - * - * Default: - this parameter is REQUIRED after 1.21.0 - */ + @Deprecated(message = "deprecated in CDK") + public fun imageNameParameter(): String? = unwrap(this).getImageNameParameter() + public fun imageTag(): String? = unwrap(this).getImageTag() - /** - * Networking mode for the RUN commands during build. - * - * Default: - no networking mode specified - */ public fun networkMode(): String? = unwrap(this).getNetworkMode() - /** - * Outputs to pass to the `docker build` command. - * - * Default: - no outputs are passed to the build command (default outputs are used) - * - * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) - */ public fun outputs(): List = unwrap(this).getOutputs() ?: emptyList() - /** - * Type of asset. - */ public fun packaging(): String - /** - * Path on disk to the asset. - */ public fun path(): String - /** - * Platform to build for. - * - * *Requires Docker Buildx*. - * - * Default: - current machine platform - */ public fun platform(): String? = unwrap(this).getPlatform() - /** - * ECR repository name, if omitted a default name based on the asset's ID is used instead. - * - * Specify this property if you need to statically address the - * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, - * without the registry and the tag parts. - * - * Default: - this parameter is REQUIRED after 1.21.0 - */ public fun repositoryName(): String? = unwrap(this).getRepositoryName() - /** - * The hash of the asset source. - */ public fun sourceHash(): String - /** - * Docker target to build to. - * - * Default: no build target - */ public fun target(): String? = unwrap(this).getTarget() - /** - * A builder for [ContainerImageAssetMetadataEntry] - */ @CdkDslMarker public interface Builder { - /** - * @param buildArgs Build args to pass to the `docker build` command. - */ public fun buildArgs(buildArgs: Map) - /** - * @param buildSecrets Build secrets to pass to the `docker build` command. - */ public fun buildSecrets(buildSecrets: Map) - /** - * @param buildSsh SSH agent socket or keys to pass to the `docker build` command. - */ public fun buildSsh(buildSsh: String) - /** - * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. - */ public fun cacheDisabled(cacheDisabled: Boolean) - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ public fun cacheFrom(cacheFrom: List) - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ public fun cacheFrom(vararg cacheFrom: ContainerImageAssetCacheOption) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ public fun cacheTo(cacheTo: ContainerImageAssetCacheOption) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8ca603f80b9a3c8c941eb94486e4795162ec40c4d222abc3466382e2e8ad353c") public fun cacheTo(cacheTo: ContainerImageAssetCacheOption.Builder.() -> Unit) - /** - * @param file Path to the Dockerfile (relative to the directory). - */ public fun `file`(`file`: String) - /** - * @param id Logical identifier for the asset. - */ public fun id(id: String) - /** - * @param imageTag The docker image tag to use for tagging pushed images. - * This field is - * required if `imageParameterName` is ommited (otherwise, the app won't be - * able to find the image). - */ + @Deprecated(message = "deprecated in CDK") + public fun imageNameParameter(imageNameParameter: String) + public fun imageTag(imageTag: String) - /** - * @param networkMode Networking mode for the RUN commands during build. - */ public fun networkMode(networkMode: String) - /** - * @param outputs Outputs to pass to the `docker build` command. - */ public fun outputs(outputs: List) - /** - * @param outputs Outputs to pass to the `docker build` command. - */ public fun outputs(vararg outputs: String) - /** - * @param packaging Type of asset. - */ public fun packaging(packaging: String) - /** - * @param path Path on disk to the asset. - */ public fun path(path: String) - /** - * @param platform Platform to build for. - * *Requires Docker Buildx*. - */ public fun platform(platform: String) - /** - * @param repositoryName ECR repository name, if omitted a default name based on the asset's ID - * is used instead. - * Specify this property if you need to statically address the - * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, - * without the registry and the tag parts. - */ public fun repositoryName(repositoryName: String) - /** - * @param sourceHash The hash of the asset source. - */ public fun sourceHash(sourceHash: String) - /** - * @param target Docker target to build to. - */ public fun target(target: String) } @@ -275,148 +106,85 @@ public interface ContainerImageAssetMetadataEntry { software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetMetadataEntry.Builder = software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetMetadataEntry.builder() - /** - * @param buildArgs Build args to pass to the `docker build` command. - */ override fun buildArgs(buildArgs: Map) { cdkBuilder.buildArgs(buildArgs) } - /** - * @param buildSecrets Build secrets to pass to the `docker build` command. - */ override fun buildSecrets(buildSecrets: Map) { cdkBuilder.buildSecrets(buildSecrets) } - /** - * @param buildSsh SSH agent socket or keys to pass to the `docker build` command. - */ override fun buildSsh(buildSsh: String) { cdkBuilder.buildSsh(buildSsh) } - /** - * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. - */ override fun cacheDisabled(cacheDisabled: Boolean) { cdkBuilder.cacheDisabled(cacheDisabled) } - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ override fun cacheFrom(cacheFrom: List) { cdkBuilder.cacheFrom(cacheFrom.map(ContainerImageAssetCacheOption.Companion::unwrap)) } - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ override fun cacheFrom(vararg cacheFrom: ContainerImageAssetCacheOption): Unit = cacheFrom(cacheFrom.toList()) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ override fun cacheTo(cacheTo: ContainerImageAssetCacheOption) { cdkBuilder.cacheTo(cacheTo.let(ContainerImageAssetCacheOption.Companion::unwrap)) } - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8ca603f80b9a3c8c941eb94486e4795162ec40c4d222abc3466382e2e8ad353c") override fun cacheTo(cacheTo: ContainerImageAssetCacheOption.Builder.() -> Unit): Unit = cacheTo(ContainerImageAssetCacheOption(cacheTo)) - /** - * @param file Path to the Dockerfile (relative to the directory). - */ override fun `file`(`file`: String) { cdkBuilder.`file`(`file`) } - /** - * @param id Logical identifier for the asset. - */ override fun id(id: String) { cdkBuilder.id(id) } - /** - * @param imageTag The docker image tag to use for tagging pushed images. - * This field is - * required if `imageParameterName` is ommited (otherwise, the app won't be - * able to find the image). - */ + @Deprecated(message = "deprecated in CDK") + override fun imageNameParameter(imageNameParameter: String) { + cdkBuilder.imageNameParameter(imageNameParameter) + } + override fun imageTag(imageTag: String) { cdkBuilder.imageTag(imageTag) } - /** - * @param networkMode Networking mode for the RUN commands during build. - */ override fun networkMode(networkMode: String) { cdkBuilder.networkMode(networkMode) } - /** - * @param outputs Outputs to pass to the `docker build` command. - */ override fun outputs(outputs: List) { cdkBuilder.outputs(outputs) } - /** - * @param outputs Outputs to pass to the `docker build` command. - */ override fun outputs(vararg outputs: String): Unit = outputs(outputs.toList()) - /** - * @param packaging Type of asset. - */ override fun packaging(packaging: String) { cdkBuilder.packaging(packaging) } - /** - * @param path Path on disk to the asset. - */ override fun path(path: String) { cdkBuilder.path(path) } - /** - * @param platform Platform to build for. - * *Requires Docker Buildx*. - */ override fun platform(platform: String) { cdkBuilder.platform(platform) } - /** - * @param repositoryName ECR repository name, if omitted a default name based on the asset's ID - * is used instead. - * Specify this property if you need to statically address the - * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, - * without the registry and the tag parts. - */ override fun repositoryName(repositoryName: String) { cdkBuilder.repositoryName(repositoryName) } - /** - * @param sourceHash The hash of the asset source. - */ override fun sourceHash(sourceHash: String) { cdkBuilder.sourceHash(sourceHash) } - /** - * @param target Docker target to build to. - */ override fun target(target: String) { cdkBuilder.target(target) } @@ -427,134 +195,45 @@ public interface ContainerImageAssetMetadataEntry { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.ContainerImageAssetMetadataEntry, - ) : CdkObject(cdkObject), ContainerImageAssetMetadataEntry { - /** - * Build args to pass to the `docker build` command. - * - * Default: no build args are passed - */ + ) : CdkObject(cdkObject), + ContainerImageAssetMetadataEntry { override fun buildArgs(): Map = unwrap(this).getBuildArgs() ?: emptyMap() - /** - * Build secrets to pass to the `docker build` command. - * - * Default: no build secrets are passed - */ override fun buildSecrets(): Map = unwrap(this).getBuildSecrets() ?: emptyMap() - /** - * SSH agent socket or keys to pass to the `docker build` command. - * - * Default: no ssh arg is passed - */ override fun buildSsh(): String? = unwrap(this).getBuildSsh() - /** - * Disable the cache and pass `--no-cache` to the `docker build` command. - * - * Default: - cache is used - */ override fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() - /** - * Cache from options to pass to the `docker build` command. - * - * Default: - no cache from options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ override fun cacheFrom(): List = unwrap(this).getCacheFrom()?.map(ContainerImageAssetCacheOption::wrap) ?: emptyList() - /** - * Cache to options to pass to the `docker build` command. - * - * Default: - no cache to options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ override fun cacheTo(): ContainerImageAssetCacheOption? = unwrap(this).getCacheTo()?.let(ContainerImageAssetCacheOption::wrap) - /** - * Path to the Dockerfile (relative to the directory). - * - * Default: - no file is passed - */ override fun `file`(): String? = unwrap(this).getFile() - /** - * Logical identifier for the asset. - */ override fun id(): String = unwrap(this).getId() - /** - * The docker image tag to use for tagging pushed images. - * - * This field is - * required if `imageParameterName` is ommited (otherwise, the app won't be - * able to find the image). - * - * Default: - this parameter is REQUIRED after 1.21.0 - */ + @Deprecated(message = "deprecated in CDK") + override fun imageNameParameter(): String? = unwrap(this).getImageNameParameter() + override fun imageTag(): String? = unwrap(this).getImageTag() - /** - * Networking mode for the RUN commands during build. - * - * Default: - no networking mode specified - */ override fun networkMode(): String? = unwrap(this).getNetworkMode() - /** - * Outputs to pass to the `docker build` command. - * - * Default: - no outputs are passed to the build command (default outputs are used) - * - * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) - */ override fun outputs(): List = unwrap(this).getOutputs() ?: emptyList() - /** - * Type of asset. - */ override fun packaging(): String = unwrap(this).getPackaging() - /** - * Path on disk to the asset. - */ override fun path(): String = unwrap(this).getPath() - /** - * Platform to build for. - * - * *Requires Docker Buildx*. - * - * Default: - current machine platform - */ override fun platform(): String? = unwrap(this).getPlatform() - /** - * ECR repository name, if omitted a default name based on the asset's ID is used instead. - * - * Specify this property if you need to statically address the - * image, e.g. from a Kubernetes Pod. Note, this is only the repository name, - * without the registry and the tag parts. - * - * Default: - this parameter is REQUIRED after 1.21.0 - */ override fun repositoryName(): String? = unwrap(this).getRepositoryName() - /** - * The hash of the asset source. - */ override fun sourceHash(): String = unwrap(this).getSourceHash() - /** - * Docker target to build to. - * - * Default: no build target - */ override fun target(): String? = unwrap(this).getTarget() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContextLookupRoleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContextLookupRoleOptions.kt new file mode 100644 index 0000000000..ef47008b58 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/ContextLookupRoleOptions.kt @@ -0,0 +1,98 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.cloudassembly.schema + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +public interface ContextLookupRoleOptions { + public fun account(): String + + public fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + public fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + public fun region(): String + + @CdkDslMarker + public interface Builder { + public fun account(account: String) + + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + + public fun lookupRoleArn(lookupRoleArn: String) + + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + public fun region(region: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions.Builder = + software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions.builder() + + override fun account(account: String) { + cdkBuilder.account(account) + } + + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + override fun region(region: String) { + cdkBuilder.region(region) + } + + public fun build(): software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions, + ) : CdkObject(cdkObject), + ContextLookupRoleOptions { + override fun account(): String = unwrap(this).getAccount() + + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + override fun region(): String = unwrap(this).getRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ContextLookupRoleOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions): + ContextLookupRoleOptions = CdkObjectWrappers.wrap(cdkObject) as? ContextLookupRoleOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContextLookupRoleOptions): + software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.cloudassembly.schema.ContextLookupRoleOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DefaultCdkOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DefaultCdkOptions.kt index 38884314fb..c13ba3644d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DefaultCdkOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DefaultCdkOptions.kt @@ -11,352 +11,101 @@ import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map -/** - * Default CDK CLI options that apply to all commands. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * DefaultCdkOptions defaultCdkOptions = DefaultCdkOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .color(false) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .output("output") - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .roleArn("roleArn") - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .trace(false) - * .verbose(false) - * .versionReporting(false) - * .build(); - * ``` - */ public interface DefaultCdkOptions { - /** - * Deploy all stacks. - * - * Requried if `stacks` is not set - * - * Default: - false - */ public fun all(): Boolean? = unwrap(this).getAll() - /** - * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or - * "cdk.out". - * - * Default: - read from cdk.json - */ public fun app(): String? = unwrap(this).getApp() - /** - * Include "aws:asset:*" CloudFormation metadata for resources that use assets. - * - * Default: true - */ public fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() - /** - * Path to CA certificate to use when validating HTTPS requests. - * - * Default: - read from AWS_CA_BUNDLE environment variable - */ public fun caBundlePath(): String? = unwrap(this).getCaBundlePath() - /** - * Show colors and other style from console output. - * - * Default: true - */ public fun color(): Boolean? = unwrap(this).getColor() - /** - * Additional context. - * - * Default: - no additional context - */ public fun context(): Map = unwrap(this).getContext() ?: emptyMap() - /** - * enable emission of additional debugging information, such as creation stack traces of tokens. - * - * Default: false - */ public fun debug(): Boolean? = unwrap(this).getDebug() - /** - * Force trying to fetch EC2 instance credentials. - * - * Default: - guess EC2 instance status - */ public fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() - /** - * Ignores synthesis errors, which will likely produce an invalid output. - * - * Default: false - */ public fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() - /** - * Use JSON output instead of YAML when templates are printed to STDOUT. - * - * Default: false - */ public fun json(): Boolean? = unwrap(this).getJson() - /** - * Perform context lookups. - * - * Synthesis fails if this is disabled and context lookups need - * to be performed - * - * Default: true - */ public fun lookups(): Boolean? = unwrap(this).getLookups() - /** - * Show relevant notices. - * - * Default: true - */ public fun notices(): Boolean? = unwrap(this).getNotices() - /** - * Emits the synthesized cloud assembly into a directory. - * - * Default: cdk.out - */ public fun output(): String? = unwrap(this).getOutput() - /** - * Include "aws:cdk:path" CloudFormation metadata for each resource. - * - * Default: true - */ public fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() - /** - * Use the indicated AWS profile as the default environment. - * - * Default: - no profile is used - */ public fun profile(): String? = unwrap(this).getProfile() - /** - * Use the indicated proxy. - * - * Will read from - * HTTPS_PROXY environment if specified - * - * Default: - no proxy - */ public fun proxy(): String? = unwrap(this).getProxy() - /** - * Role to pass to CloudFormation for deployment. - * - * Default: - use the bootstrap cfn-exec role - */ public fun roleArn(): String? = unwrap(this).getRoleArn() - /** - * List of stacks to deploy. - * - * Requried if `all` is not set - * - * Default: - [] - */ public fun stacks(): List = unwrap(this).getStacks() ?: emptyList() - /** - * Copy assets to the output directory. - * - * Needed for local debugging the source files with SAM CLI - * - * Default: false - */ public fun staging(): Boolean? = unwrap(this).getStaging() - /** - * Do not construct stacks with warnings. - * - * Default: false - */ public fun strict(): Boolean? = unwrap(this).getStrict() - /** - * Print trace for stack warnings. - * - * Default: false - */ public fun trace(): Boolean? = unwrap(this).getTrace() - /** - * show debug logs. - * - * Default: false - */ public fun verbose(): Boolean? = unwrap(this).getVerbose() - /** - * Include "AWS::CDK::Metadata" resource in synthesized templates. - * - * Default: true - */ public fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() - /** - * A builder for [DefaultCdkOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ public fun all(all: Boolean) - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ public fun app(app: String) - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ public fun assetMetadata(assetMetadata: Boolean) - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ public fun caBundlePath(caBundlePath: String) - /** - * @param color Show colors and other style from console output. - */ public fun color(color: Boolean) - /** - * @param context Additional context. - */ public fun context(context: Map) - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ public fun debug(debug: Boolean) - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ public fun ec2Creds(ec2Creds: Boolean) - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ public fun ignoreErrors(ignoreErrors: Boolean) - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ public fun json(json: Boolean) - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ public fun lookups(lookups: Boolean) - /** - * @param notices Show relevant notices. - */ public fun notices(notices: Boolean) - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ public fun output(output: String) - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ public fun pathMetadata(pathMetadata: Boolean) - /** - * @param profile Use the indicated AWS profile as the default environment. - */ public fun profile(profile: String) - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ public fun proxy(proxy: String) - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ public fun roleArn(roleArn: String) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(stacks: List) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(vararg stacks: String) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ public fun staging(staging: Boolean) - /** - * @param strict Do not construct stacks with warnings. - */ public fun strict(strict: Boolean) - /** - * @param trace Print trace for stack warnings. - */ public fun trace(trace: Boolean) - /** - * @param verbose show debug logs. - */ public fun verbose(verbose: Boolean) - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ public fun versionReporting(versionReporting: Boolean) } @@ -364,179 +113,96 @@ public interface DefaultCdkOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DefaultCdkOptions.Builder = software.amazon.awscdk.cloudassembly.schema.DefaultCdkOptions.builder() - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ override fun all(all: Boolean) { cdkBuilder.all(all) } - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ override fun app(app: String) { cdkBuilder.app(app) } - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ override fun assetMetadata(assetMetadata: Boolean) { cdkBuilder.assetMetadata(assetMetadata) } - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ override fun caBundlePath(caBundlePath: String) { cdkBuilder.caBundlePath(caBundlePath) } - /** - * @param color Show colors and other style from console output. - */ override fun color(color: Boolean) { cdkBuilder.color(color) } - /** - * @param context Additional context. - */ override fun context(context: Map) { cdkBuilder.context(context) } - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ override fun debug(debug: Boolean) { cdkBuilder.debug(debug) } - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ override fun ec2Creds(ec2Creds: Boolean) { cdkBuilder.ec2Creds(ec2Creds) } - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ override fun ignoreErrors(ignoreErrors: Boolean) { cdkBuilder.ignoreErrors(ignoreErrors) } - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ override fun json(json: Boolean) { cdkBuilder.json(json) } - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ override fun lookups(lookups: Boolean) { cdkBuilder.lookups(lookups) } - /** - * @param notices Show relevant notices. - */ override fun notices(notices: Boolean) { cdkBuilder.notices(notices) } - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ override fun output(output: String) { cdkBuilder.output(output) } - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ override fun pathMetadata(pathMetadata: Boolean) { cdkBuilder.pathMetadata(pathMetadata) } - /** - * @param profile Use the indicated AWS profile as the default environment. - */ override fun profile(profile: String) { cdkBuilder.profile(profile) } - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ override fun proxy(proxy: String) { cdkBuilder.proxy(proxy) } - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(stacks: List) { cdkBuilder.stacks(stacks) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ override fun staging(staging: Boolean) { cdkBuilder.staging(staging) } - /** - * @param strict Do not construct stacks with warnings. - */ override fun strict(strict: Boolean) { cdkBuilder.strict(strict) } - /** - * @param trace Print trace for stack warnings. - */ override fun trace(trace: Boolean) { cdkBuilder.trace(trace) } - /** - * @param verbose show debug logs. - */ override fun verbose(verbose: Boolean) { cdkBuilder.verbose(verbose) } - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ override fun versionReporting(versionReporting: Boolean) { cdkBuilder.versionReporting(versionReporting) } @@ -547,179 +213,52 @@ public interface DefaultCdkOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DefaultCdkOptions, - ) : CdkObject(cdkObject), DefaultCdkOptions { - /** - * Deploy all stacks. - * - * Requried if `stacks` is not set - * - * Default: - false - */ + ) : CdkObject(cdkObject), + DefaultCdkOptions { override fun all(): Boolean? = unwrap(this).getAll() - /** - * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" - * or "cdk.out". - * - * Default: - read from cdk.json - */ override fun app(): String? = unwrap(this).getApp() - /** - * Include "aws:asset:*" CloudFormation metadata for resources that use assets. - * - * Default: true - */ override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() - /** - * Path to CA certificate to use when validating HTTPS requests. - * - * Default: - read from AWS_CA_BUNDLE environment variable - */ override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() - /** - * Show colors and other style from console output. - * - * Default: true - */ override fun color(): Boolean? = unwrap(this).getColor() - /** - * Additional context. - * - * Default: - no additional context - */ override fun context(): Map = unwrap(this).getContext() ?: emptyMap() - /** - * enable emission of additional debugging information, such as creation stack traces of tokens. - * - * Default: false - */ override fun debug(): Boolean? = unwrap(this).getDebug() - /** - * Force trying to fetch EC2 instance credentials. - * - * Default: - guess EC2 instance status - */ override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() - /** - * Ignores synthesis errors, which will likely produce an invalid output. - * - * Default: false - */ override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() - /** - * Use JSON output instead of YAML when templates are printed to STDOUT. - * - * Default: false - */ override fun json(): Boolean? = unwrap(this).getJson() - /** - * Perform context lookups. - * - * Synthesis fails if this is disabled and context lookups need - * to be performed - * - * Default: true - */ override fun lookups(): Boolean? = unwrap(this).getLookups() - /** - * Show relevant notices. - * - * Default: true - */ override fun notices(): Boolean? = unwrap(this).getNotices() - /** - * Emits the synthesized cloud assembly into a directory. - * - * Default: cdk.out - */ override fun output(): String? = unwrap(this).getOutput() - /** - * Include "aws:cdk:path" CloudFormation metadata for each resource. - * - * Default: true - */ override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() - /** - * Use the indicated AWS profile as the default environment. - * - * Default: - no profile is used - */ override fun profile(): String? = unwrap(this).getProfile() - /** - * Use the indicated proxy. - * - * Will read from - * HTTPS_PROXY environment if specified - * - * Default: - no proxy - */ override fun proxy(): String? = unwrap(this).getProxy() - /** - * Role to pass to CloudFormation for deployment. - * - * Default: - use the bootstrap cfn-exec role - */ override fun roleArn(): String? = unwrap(this).getRoleArn() - /** - * List of stacks to deploy. - * - * Requried if `all` is not set - * - * Default: - [] - */ override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() - /** - * Copy assets to the output directory. - * - * Needed for local debugging the source files with SAM CLI - * - * Default: false - */ override fun staging(): Boolean? = unwrap(this).getStaging() - /** - * Do not construct stacks with warnings. - * - * Default: false - */ override fun strict(): Boolean? = unwrap(this).getStrict() - /** - * Print trace for stack warnings. - * - * Default: false - */ override fun trace(): Boolean? = unwrap(this).getTrace() - /** - * show debug logs. - * - * Default: false - */ override fun verbose(): Boolean? = unwrap(this).getVerbose() - /** - * Include "AWS::CDK::Metadata" resource in synthesized templates. - * - * Default: true - */ override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployCommand.kt index 0a7039967a..1aa8cc7af2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployCommand.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployCommand.kt @@ -10,79 +10,21 @@ import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName -/** - * Represents a cdk deploy command. - * - * Example: - * - * ``` - * App app = new App(); - * Stack stackUnderTest = new Stack(app, "StackUnderTest"); - * Stack stack = new Stack(app, "stack"); - * IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") - * .testCases(List.of(stackUnderTest)) - * .diffAssets(true) - * .stackUpdateWorkflow(true) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .requireApproval(RequireApproval.NEVER) - * .json(true) - * .build()) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .force(true) - * .build()) - * .build()) - * .build()) - * .build(); - * ``` - */ public interface DeployCommand : CdkCommand { - /** - * Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - * - * Default: - only default args are used - */ public fun args(): DeployOptions? = unwrap(this).getArgs()?.let(DeployOptions::wrap) - /** - * A builder for [DeployCommand] - */ @CdkDslMarker public interface Builder { - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ public fun args(args: DeployOptions) - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d8f9b2cbe8868946722f2598a0cf02dea231caa7b9e25e519c97fb88051665f4") public fun args(args: DeployOptions.Builder.() -> Unit) - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ public fun enabled(enabled: Boolean) - /** - * @param expectError If the runner should expect this command to fail. - */ public fun expectError(expectError: Boolean) - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ public fun expectedMessage(expectedMessage: String) } @@ -90,42 +32,22 @@ public interface DeployCommand : CdkCommand { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DeployCommand.Builder = software.amazon.awscdk.cloudassembly.schema.DeployCommand.builder() - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ override fun args(args: DeployOptions) { cdkBuilder.args(args.let(DeployOptions.Companion::unwrap)) } - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d8f9b2cbe8868946722f2598a0cf02dea231caa7b9e25e519c97fb88051665f4") override fun args(args: DeployOptions.Builder.() -> Unit): Unit = args(DeployOptions(args)) - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } - /** - * @param expectError If the runner should expect this command to fail. - */ override fun expectError(expectError: Boolean) { cdkBuilder.expectError(expectError) } - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ override fun expectedMessage(expectedMessage: String) { cdkBuilder.expectedMessage(expectedMessage) } @@ -136,37 +58,14 @@ public interface DeployCommand : CdkCommand { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DeployCommand, - ) : CdkObject(cdkObject), DeployCommand { - /** - * Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - * - * Default: - only default args are used - */ + ) : CdkObject(cdkObject), + DeployCommand { override fun args(): DeployOptions? = unwrap(this).getArgs()?.let(DeployOptions::wrap) - /** - * Whether or not to run this command as part of the workflow This can be used if you only want - * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in - * order to limit the test to synthesis. - * - * Default: true - */ override fun enabled(): Boolean? = unwrap(this).getEnabled() - /** - * If the runner should expect this command to fail. - * - * Default: false - */ override fun expectError(): Boolean? = unwrap(this).getExpectError() - /** - * This can be used in combination with `expectedError` to validate that a specific message is - * returned. - * - * Default: - do not validate message - */ override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployOptions.kt index 990b100938..dc57ca8885 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DeployOptions.kt @@ -12,360 +12,116 @@ import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map -/** - * Options to use with cdk deploy. - * - * Example: - * - * ``` - * App app = new App(); - * Stack stackUnderTest = new Stack(app, "StackUnderTest"); - * Stack stack = new Stack(app, "stack"); - * IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") - * .testCases(List.of(stackUnderTest)) - * .diffAssets(true) - * .stackUpdateWorkflow(true) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .requireApproval(RequireApproval.NEVER) - * .json(true) - * .build()) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .force(true) - * .build()) - * .build()) - * .build()) - * .build(); - * ``` - */ public interface DeployOptions : DefaultCdkOptions { - /** - * Optional name to use for the CloudFormation change set. - * - * If not provided, a name will be generated automatically. - * - * Default: - auto generate a name - */ public fun changeSetName(): String? = unwrap(this).getChangeSetName() - /** - * Whether we are on a CI system. - * - * Default: false - */ public fun ci(): Boolean? = unwrap(this).getCi() - /** - * Deploy multiple stacks in parallel. - * - * Default: 1 - */ public fun concurrency(): Number? = unwrap(this).getConcurrency() - /** - * Only perform action on the given stack. - * - * Default: false - */ public fun exclusively(): Boolean? = unwrap(this).getExclusively() - /** - * Whether to execute the ChangeSet Not providing `execute` parameter will result in execution of - * ChangeSet. - * - * Default: true - */ public fun execute(): Boolean? = unwrap(this).getExecute() - /** - * Always deploy, even if templates are identical. - * - * Default: false - */ public fun force(): Boolean? = unwrap(this).getForce() - /** - * ARNs of SNS topics that CloudFormation will notify with stack related events. - * - * Default: - no notifications - */ public fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() - /** - * Path to file where stack outputs will be written after a successful deploy as JSON. - * - * Default: - Outputs are not written to any file - */ public fun outputsFile(): String? = unwrap(this).getOutputsFile() - /** - * Additional parameters for CloudFormation at deploy time. - * - * Default: {} - */ public fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() - /** - * What kind of security changes require approval. - * - * Default: RequireApproval.Never - */ public fun requireApproval(): RequireApproval? = unwrap(this).getRequireApproval()?.let(RequireApproval::wrap) - /** - * Reuse the assets with the given asset IDs. - * - * Default: - do not reuse assets - */ public fun reuseAssets(): List = unwrap(this).getReuseAssets() ?: emptyList() - /** - * Rollback failed deployments. - * - * Default: true - */ public fun rollback(): Boolean? = unwrap(this).getRollback() - /** - * Name of the toolkit stack to use/deploy. - * - * Default: CDKToolkit - */ public fun toolkitStackName(): String? = unwrap(this).getToolkitStackName() - /** - * Use previous values for unspecified parameters. - * - * If not set, all parameters must be specified for every deployment. - * - * Default: true - */ public fun usePreviousParameters(): Boolean? = unwrap(this).getUsePreviousParameters() - /** - * A builder for [DeployOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ public fun all(all: Boolean) - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ public fun app(app: String) - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ public fun assetMetadata(assetMetadata: Boolean) - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ public fun caBundlePath(caBundlePath: String) - /** - * @param changeSetName Optional name to use for the CloudFormation change set. - * If not provided, a name will be generated automatically. - */ public fun changeSetName(changeSetName: String) - /** - * @param ci Whether we are on a CI system. - */ public fun ci(ci: Boolean) - /** - * @param color Show colors and other style from console output. - */ public fun color(color: Boolean) - /** - * @param concurrency Deploy multiple stacks in parallel. - */ public fun concurrency(concurrency: Number) - /** - * @param context Additional context. - */ public fun context(context: Map) - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ public fun debug(debug: Boolean) - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ public fun ec2Creds(ec2Creds: Boolean) - /** - * @param exclusively Only perform action on the given stack. - */ public fun exclusively(exclusively: Boolean) - /** - * @param execute Whether to execute the ChangeSet Not providing `execute` parameter will result - * in execution of ChangeSet. - */ public fun execute(execute: Boolean) - /** - * @param force Always deploy, even if templates are identical. - */ public fun force(force: Boolean) - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ public fun ignoreErrors(ignoreErrors: Boolean) - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ public fun json(json: Boolean) - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ public fun lookups(lookups: Boolean) - /** - * @param notices Show relevant notices. - */ public fun notices(notices: Boolean) - /** - * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related - * events. - */ public fun notificationArns(notificationArns: List) - /** - * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related - * events. - */ public fun notificationArns(vararg notificationArns: String) - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ public fun output(output: String) - /** - * @param outputsFile Path to file where stack outputs will be written after a successful deploy - * as JSON. - */ public fun outputsFile(outputsFile: String) - /** - * @param parameters Additional parameters for CloudFormation at deploy time. - */ public fun parameters(parameters: Map) - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ public fun pathMetadata(pathMetadata: Boolean) - /** - * @param profile Use the indicated AWS profile as the default environment. - */ public fun profile(profile: String) - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ public fun proxy(proxy: String) - /** - * @param requireApproval What kind of security changes require approval. - */ public fun requireApproval(requireApproval: RequireApproval) - /** - * @param reuseAssets Reuse the assets with the given asset IDs. - */ public fun reuseAssets(reuseAssets: List) - /** - * @param reuseAssets Reuse the assets with the given asset IDs. - */ public fun reuseAssets(vararg reuseAssets: String) - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ public fun roleArn(roleArn: String) - /** - * @param rollback Rollback failed deployments. - */ public fun rollback(rollback: Boolean) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(stacks: List) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(vararg stacks: String) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ public fun staging(staging: Boolean) - /** - * @param strict Do not construct stacks with warnings. - */ public fun strict(strict: Boolean) - /** - * @param toolkitStackName Name of the toolkit stack to use/deploy. - */ public fun toolkitStackName(toolkitStackName: String) - /** - * @param trace Print trace for stack warnings. - */ public fun trace(trace: Boolean) - /** - * @param usePreviousParameters Use previous values for unspecified parameters. - * If not set, all parameters must be specified for every deployment. - */ public fun usePreviousParameters(usePreviousParameters: Boolean) - /** - * @param verbose show debug logs. - */ public fun verbose(verbose: Boolean) - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ public fun versionReporting(versionReporting: Boolean) } @@ -373,294 +129,157 @@ public interface DeployOptions : DefaultCdkOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DeployOptions.Builder = software.amazon.awscdk.cloudassembly.schema.DeployOptions.builder() - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ override fun all(all: Boolean) { cdkBuilder.all(all) } - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ override fun app(app: String) { cdkBuilder.app(app) } - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ override fun assetMetadata(assetMetadata: Boolean) { cdkBuilder.assetMetadata(assetMetadata) } - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ override fun caBundlePath(caBundlePath: String) { cdkBuilder.caBundlePath(caBundlePath) } - /** - * @param changeSetName Optional name to use for the CloudFormation change set. - * If not provided, a name will be generated automatically. - */ override fun changeSetName(changeSetName: String) { cdkBuilder.changeSetName(changeSetName) } - /** - * @param ci Whether we are on a CI system. - */ override fun ci(ci: Boolean) { cdkBuilder.ci(ci) } - /** - * @param color Show colors and other style from console output. - */ override fun color(color: Boolean) { cdkBuilder.color(color) } - /** - * @param concurrency Deploy multiple stacks in parallel. - */ override fun concurrency(concurrency: Number) { cdkBuilder.concurrency(concurrency) } - /** - * @param context Additional context. - */ override fun context(context: Map) { cdkBuilder.context(context) } - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ override fun debug(debug: Boolean) { cdkBuilder.debug(debug) } - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ override fun ec2Creds(ec2Creds: Boolean) { cdkBuilder.ec2Creds(ec2Creds) } - /** - * @param exclusively Only perform action on the given stack. - */ override fun exclusively(exclusively: Boolean) { cdkBuilder.exclusively(exclusively) } - /** - * @param execute Whether to execute the ChangeSet Not providing `execute` parameter will result - * in execution of ChangeSet. - */ override fun execute(execute: Boolean) { cdkBuilder.execute(execute) } - /** - * @param force Always deploy, even if templates are identical. - */ override fun force(force: Boolean) { cdkBuilder.force(force) } - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ override fun ignoreErrors(ignoreErrors: Boolean) { cdkBuilder.ignoreErrors(ignoreErrors) } - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ override fun json(json: Boolean) { cdkBuilder.json(json) } - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ override fun lookups(lookups: Boolean) { cdkBuilder.lookups(lookups) } - /** - * @param notices Show relevant notices. - */ override fun notices(notices: Boolean) { cdkBuilder.notices(notices) } - /** - * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related - * events. - */ override fun notificationArns(notificationArns: List) { cdkBuilder.notificationArns(notificationArns) } - /** - * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related - * events. - */ override fun notificationArns(vararg notificationArns: String): Unit = notificationArns(notificationArns.toList()) - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ override fun output(output: String) { cdkBuilder.output(output) } - /** - * @param outputsFile Path to file where stack outputs will be written after a successful deploy - * as JSON. - */ override fun outputsFile(outputsFile: String) { cdkBuilder.outputsFile(outputsFile) } - /** - * @param parameters Additional parameters for CloudFormation at deploy time. - */ override fun parameters(parameters: Map) { cdkBuilder.parameters(parameters) } - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ override fun pathMetadata(pathMetadata: Boolean) { cdkBuilder.pathMetadata(pathMetadata) } - /** - * @param profile Use the indicated AWS profile as the default environment. - */ override fun profile(profile: String) { cdkBuilder.profile(profile) } - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ override fun proxy(proxy: String) { cdkBuilder.proxy(proxy) } - /** - * @param requireApproval What kind of security changes require approval. - */ override fun requireApproval(requireApproval: RequireApproval) { cdkBuilder.requireApproval(requireApproval.let(RequireApproval.Companion::unwrap)) } - /** - * @param reuseAssets Reuse the assets with the given asset IDs. - */ override fun reuseAssets(reuseAssets: List) { cdkBuilder.reuseAssets(reuseAssets) } - /** - * @param reuseAssets Reuse the assets with the given asset IDs. - */ override fun reuseAssets(vararg reuseAssets: String): Unit = reuseAssets(reuseAssets.toList()) - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) } - /** - * @param rollback Rollback failed deployments. - */ override fun rollback(rollback: Boolean) { cdkBuilder.rollback(rollback) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(stacks: List) { cdkBuilder.stacks(stacks) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ override fun staging(staging: Boolean) { cdkBuilder.staging(staging) } - /** - * @param strict Do not construct stacks with warnings. - */ override fun strict(strict: Boolean) { cdkBuilder.strict(strict) } - /** - * @param toolkitStackName Name of the toolkit stack to use/deploy. - */ override fun toolkitStackName(toolkitStackName: String) { cdkBuilder.toolkitStackName(toolkitStackName) } - /** - * @param trace Print trace for stack warnings. - */ override fun trace(trace: Boolean) { cdkBuilder.trace(trace) } - /** - * @param usePreviousParameters Use previous values for unspecified parameters. - * If not set, all parameters must be specified for every deployment. - */ override fun usePreviousParameters(usePreviousParameters: Boolean) { cdkBuilder.usePreviousParameters(usePreviousParameters) } - /** - * @param verbose show debug logs. - */ override fun verbose(verbose: Boolean) { cdkBuilder.verbose(verbose) } - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ override fun versionReporting(versionReporting: Boolean) { cdkBuilder.versionReporting(versionReporting) } @@ -671,284 +290,82 @@ public interface DeployOptions : DefaultCdkOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DeployOptions, - ) : CdkObject(cdkObject), DeployOptions { - /** - * Deploy all stacks. - * - * Requried if `stacks` is not set - * - * Default: - false - */ + ) : CdkObject(cdkObject), + DeployOptions { override fun all(): Boolean? = unwrap(this).getAll() - /** - * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" - * or "cdk.out". - * - * Default: - read from cdk.json - */ override fun app(): String? = unwrap(this).getApp() - /** - * Include "aws:asset:*" CloudFormation metadata for resources that use assets. - * - * Default: true - */ override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() - /** - * Path to CA certificate to use when validating HTTPS requests. - * - * Default: - read from AWS_CA_BUNDLE environment variable - */ override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() - /** - * Optional name to use for the CloudFormation change set. - * - * If not provided, a name will be generated automatically. - * - * Default: - auto generate a name - */ override fun changeSetName(): String? = unwrap(this).getChangeSetName() - /** - * Whether we are on a CI system. - * - * Default: false - */ override fun ci(): Boolean? = unwrap(this).getCi() - /** - * Show colors and other style from console output. - * - * Default: true - */ override fun color(): Boolean? = unwrap(this).getColor() - /** - * Deploy multiple stacks in parallel. - * - * Default: 1 - */ override fun concurrency(): Number? = unwrap(this).getConcurrency() - /** - * Additional context. - * - * Default: - no additional context - */ override fun context(): Map = unwrap(this).getContext() ?: emptyMap() - /** - * enable emission of additional debugging information, such as creation stack traces of tokens. - * - * Default: false - */ override fun debug(): Boolean? = unwrap(this).getDebug() - /** - * Force trying to fetch EC2 instance credentials. - * - * Default: - guess EC2 instance status - */ override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() - /** - * Only perform action on the given stack. - * - * Default: false - */ override fun exclusively(): Boolean? = unwrap(this).getExclusively() - /** - * Whether to execute the ChangeSet Not providing `execute` parameter will result in execution - * of ChangeSet. - * - * Default: true - */ override fun execute(): Boolean? = unwrap(this).getExecute() - /** - * Always deploy, even if templates are identical. - * - * Default: false - */ override fun force(): Boolean? = unwrap(this).getForce() - /** - * Ignores synthesis errors, which will likely produce an invalid output. - * - * Default: false - */ override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() - /** - * Use JSON output instead of YAML when templates are printed to STDOUT. - * - * Default: false - */ override fun json(): Boolean? = unwrap(this).getJson() - /** - * Perform context lookups. - * - * Synthesis fails if this is disabled and context lookups need - * to be performed - * - * Default: true - */ override fun lookups(): Boolean? = unwrap(this).getLookups() - /** - * Show relevant notices. - * - * Default: true - */ override fun notices(): Boolean? = unwrap(this).getNotices() - /** - * ARNs of SNS topics that CloudFormation will notify with stack related events. - * - * Default: - no notifications - */ override fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() - /** - * Emits the synthesized cloud assembly into a directory. - * - * Default: cdk.out - */ override fun output(): String? = unwrap(this).getOutput() - /** - * Path to file where stack outputs will be written after a successful deploy as JSON. - * - * Default: - Outputs are not written to any file - */ override fun outputsFile(): String? = unwrap(this).getOutputsFile() - /** - * Additional parameters for CloudFormation at deploy time. - * - * Default: {} - */ override fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() - /** - * Include "aws:cdk:path" CloudFormation metadata for each resource. - * - * Default: true - */ override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() - /** - * Use the indicated AWS profile as the default environment. - * - * Default: - no profile is used - */ override fun profile(): String? = unwrap(this).getProfile() - /** - * Use the indicated proxy. - * - * Will read from - * HTTPS_PROXY environment if specified - * - * Default: - no proxy - */ override fun proxy(): String? = unwrap(this).getProxy() - /** - * What kind of security changes require approval. - * - * Default: RequireApproval.Never - */ override fun requireApproval(): RequireApproval? = unwrap(this).getRequireApproval()?.let(RequireApproval::wrap) - /** - * Reuse the assets with the given asset IDs. - * - * Default: - do not reuse assets - */ override fun reuseAssets(): List = unwrap(this).getReuseAssets() ?: emptyList() - /** - * Role to pass to CloudFormation for deployment. - * - * Default: - use the bootstrap cfn-exec role - */ override fun roleArn(): String? = unwrap(this).getRoleArn() - /** - * Rollback failed deployments. - * - * Default: true - */ override fun rollback(): Boolean? = unwrap(this).getRollback() - /** - * List of stacks to deploy. - * - * Requried if `all` is not set - * - * Default: - [] - */ override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() - /** - * Copy assets to the output directory. - * - * Needed for local debugging the source files with SAM CLI - * - * Default: false - */ override fun staging(): Boolean? = unwrap(this).getStaging() - /** - * Do not construct stacks with warnings. - * - * Default: false - */ override fun strict(): Boolean? = unwrap(this).getStrict() - /** - * Name of the toolkit stack to use/deploy. - * - * Default: CDKToolkit - */ override fun toolkitStackName(): String? = unwrap(this).getToolkitStackName() - /** - * Print trace for stack warnings. - * - * Default: false - */ override fun trace(): Boolean? = unwrap(this).getTrace() - /** - * Use previous values for unspecified parameters. - * - * If not set, all parameters must be specified for every deployment. - * - * Default: true - */ override fun usePreviousParameters(): Boolean? = unwrap(this).getUsePreviousParameters() - /** - * show debug logs. - * - * Default: false - */ override fun verbose(): Boolean? = unwrap(this).getVerbose() - /** - * Include "AWS::CDK::Metadata" resource in synthesized templates. - * - * Default: true - */ override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyCommand.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyCommand.kt index 3a77fc949f..76a20e9c74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyCommand.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyCommand.kt @@ -10,79 +10,21 @@ import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName -/** - * Represents a cdk destroy command. - * - * Example: - * - * ``` - * App app = new App(); - * Stack stackUnderTest = new Stack(app, "StackUnderTest"); - * Stack stack = new Stack(app, "stack"); - * IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") - * .testCases(List.of(stackUnderTest)) - * .diffAssets(true) - * .stackUpdateWorkflow(true) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .requireApproval(RequireApproval.NEVER) - * .json(true) - * .build()) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .force(true) - * .build()) - * .build()) - * .build()) - * .build(); - * ``` - */ public interface DestroyCommand : CdkCommand { - /** - * Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - * - * Default: - only default args are used - */ public fun args(): DestroyOptions? = unwrap(this).getArgs()?.let(DestroyOptions::wrap) - /** - * A builder for [DestroyCommand] - */ @CdkDslMarker public interface Builder { - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ public fun args(args: DestroyOptions) - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e2116604710cd77aa15306e9dffd03e1a94fd9ae11ce16ff5d7d859163960e26") public fun args(args: DestroyOptions.Builder.() -> Unit) - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ public fun enabled(enabled: Boolean) - /** - * @param expectError If the runner should expect this command to fail. - */ public fun expectError(expectError: Boolean) - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ public fun expectedMessage(expectedMessage: String) } @@ -90,42 +32,22 @@ public interface DestroyCommand : CdkCommand { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DestroyCommand.Builder = software.amazon.awscdk.cloudassembly.schema.DestroyCommand.builder() - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ override fun args(args: DestroyOptions) { cdkBuilder.args(args.let(DestroyOptions.Companion::unwrap)) } - /** - * @param args Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e2116604710cd77aa15306e9dffd03e1a94fd9ae11ce16ff5d7d859163960e26") override fun args(args: DestroyOptions.Builder.() -> Unit): Unit = args(DestroyOptions(args)) - /** - * @param enabled Whether or not to run this command as part of the workflow This can be used if - * you only want to test some of the workflow for example enable `synth` and disable `deploy` & - * `destroy` in order to limit the test to synthesis. - */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } - /** - * @param expectError If the runner should expect this command to fail. - */ override fun expectError(expectError: Boolean) { cdkBuilder.expectError(expectError) } - /** - * @param expectedMessage This can be used in combination with `expectedError` to validate that - * a specific message is returned. - */ override fun expectedMessage(expectedMessage: String) { cdkBuilder.expectedMessage(expectedMessage) } @@ -136,37 +58,14 @@ public interface DestroyCommand : CdkCommand { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DestroyCommand, - ) : CdkObject(cdkObject), DestroyCommand { - /** - * Additional arguments to pass to the command This can be used to test specific CLI - * functionality. - * - * Default: - only default args are used - */ + ) : CdkObject(cdkObject), + DestroyCommand { override fun args(): DestroyOptions? = unwrap(this).getArgs()?.let(DestroyOptions::wrap) - /** - * Whether or not to run this command as part of the workflow This can be used if you only want - * to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in - * order to limit the test to synthesis. - * - * Default: true - */ override fun enabled(): Boolean? = unwrap(this).getEnabled() - /** - * If the runner should expect this command to fail. - * - * Default: false - */ override fun expectError(): Boolean? = unwrap(this).getExpectError() - /** - * This can be used in combination with `expectedError` to validate that a specific message is - * returned. - * - * Default: - do not validate message - */ override fun expectedMessage(): String? = unwrap(this).getExpectedMessage() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyOptions.kt index 61629452a5..861e42379e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DestroyOptions.kt @@ -11,194 +11,63 @@ import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map -/** - * Options to use with cdk destroy. - * - * Example: - * - * ``` - * App app = new App(); - * Stack stackUnderTest = new Stack(app, "StackUnderTest"); - * Stack stack = new Stack(app, "stack"); - * IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") - * .testCases(List.of(stackUnderTest)) - * .diffAssets(true) - * .stackUpdateWorkflow(true) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .requireApproval(RequireApproval.NEVER) - * .json(true) - * .build()) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .force(true) - * .build()) - * .build()) - * .build()) - * .build(); - * ``` - */ public interface DestroyOptions : DefaultCdkOptions { - /** - * Only destroy the given stack. - * - * Default: false - */ public fun exclusively(): Boolean? = unwrap(this).getExclusively() - /** - * Do not ask for permission before destroying stacks. - * - * Default: false - */ public fun force(): Boolean? = unwrap(this).getForce() - /** - * A builder for [DestroyOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ public fun all(all: Boolean) - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ public fun app(app: String) - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ public fun assetMetadata(assetMetadata: Boolean) - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ public fun caBundlePath(caBundlePath: String) - /** - * @param color Show colors and other style from console output. - */ public fun color(color: Boolean) - /** - * @param context Additional context. - */ public fun context(context: Map) - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ public fun debug(debug: Boolean) - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ public fun ec2Creds(ec2Creds: Boolean) - /** - * @param exclusively Only destroy the given stack. - */ public fun exclusively(exclusively: Boolean) - /** - * @param force Do not ask for permission before destroying stacks. - */ public fun force(force: Boolean) - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ public fun ignoreErrors(ignoreErrors: Boolean) - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ public fun json(json: Boolean) - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ public fun lookups(lookups: Boolean) - /** - * @param notices Show relevant notices. - */ public fun notices(notices: Boolean) - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ public fun output(output: String) - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ public fun pathMetadata(pathMetadata: Boolean) - /** - * @param profile Use the indicated AWS profile as the default environment. - */ public fun profile(profile: String) - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ public fun proxy(proxy: String) - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ public fun roleArn(roleArn: String) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(stacks: List) - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ public fun stacks(vararg stacks: String) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ public fun staging(staging: Boolean) - /** - * @param strict Do not construct stacks with warnings. - */ public fun strict(strict: Boolean) - /** - * @param trace Print trace for stack warnings. - */ public fun trace(trace: Boolean) - /** - * @param verbose show debug logs. - */ public fun verbose(verbose: Boolean) - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ public fun versionReporting(versionReporting: Boolean) } @@ -206,193 +75,104 @@ public interface DestroyOptions : DefaultCdkOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DestroyOptions.Builder = software.amazon.awscdk.cloudassembly.schema.DestroyOptions.builder() - /** - * @param all Deploy all stacks. - * Requried if `stacks` is not set - */ override fun all(all: Boolean) { cdkBuilder.all(all) } - /** - * @param app command-line for executing your app or a cloud assembly directory e.g. "node - * bin/my-app.js" or "cdk.out". - */ override fun app(app: String) { cdkBuilder.app(app) } - /** - * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use - * assets. - */ override fun assetMetadata(assetMetadata: Boolean) { cdkBuilder.assetMetadata(assetMetadata) } - /** - * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. - */ override fun caBundlePath(caBundlePath: String) { cdkBuilder.caBundlePath(caBundlePath) } - /** - * @param color Show colors and other style from console output. - */ override fun color(color: Boolean) { cdkBuilder.color(color) } - /** - * @param context Additional context. - */ override fun context(context: Map) { cdkBuilder.context(context) } - /** - * @param debug enable emission of additional debugging information, such as creation stack - * traces of tokens. - */ override fun debug(debug: Boolean) { cdkBuilder.debug(debug) } - /** - * @param ec2Creds Force trying to fetch EC2 instance credentials. - */ override fun ec2Creds(ec2Creds: Boolean) { cdkBuilder.ec2Creds(ec2Creds) } - /** - * @param exclusively Only destroy the given stack. - */ override fun exclusively(exclusively: Boolean) { cdkBuilder.exclusively(exclusively) } - /** - * @param force Do not ask for permission before destroying stacks. - */ override fun force(force: Boolean) { cdkBuilder.force(force) } - /** - * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. - */ override fun ignoreErrors(ignoreErrors: Boolean) { cdkBuilder.ignoreErrors(ignoreErrors) } - /** - * @param json Use JSON output instead of YAML when templates are printed to STDOUT. - */ override fun json(json: Boolean) { cdkBuilder.json(json) } - /** - * @param lookups Perform context lookups. - * Synthesis fails if this is disabled and context lookups need - * to be performed - */ override fun lookups(lookups: Boolean) { cdkBuilder.lookups(lookups) } - /** - * @param notices Show relevant notices. - */ override fun notices(notices: Boolean) { cdkBuilder.notices(notices) } - /** - * @param output Emits the synthesized cloud assembly into a directory. - */ override fun output(output: String) { cdkBuilder.output(output) } - /** - * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. - */ override fun pathMetadata(pathMetadata: Boolean) { cdkBuilder.pathMetadata(pathMetadata) } - /** - * @param profile Use the indicated AWS profile as the default environment. - */ override fun profile(profile: String) { cdkBuilder.profile(profile) } - /** - * @param proxy Use the indicated proxy. - * Will read from - * HTTPS_PROXY environment if specified - */ override fun proxy(proxy: String) { cdkBuilder.proxy(proxy) } - /** - * @param roleArn Role to pass to CloudFormation for deployment. - */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(stacks: List) { cdkBuilder.stacks(stacks) } - /** - * @param stacks List of stacks to deploy. - * Requried if `all` is not set - */ override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) - /** - * @param staging Copy assets to the output directory. - * Needed for local debugging the source files with SAM CLI - */ override fun staging(staging: Boolean) { cdkBuilder.staging(staging) } - /** - * @param strict Do not construct stacks with warnings. - */ override fun strict(strict: Boolean) { cdkBuilder.strict(strict) } - /** - * @param trace Print trace for stack warnings. - */ override fun trace(trace: Boolean) { cdkBuilder.trace(trace) } - /** - * @param verbose show debug logs. - */ override fun verbose(verbose: Boolean) { cdkBuilder.verbose(verbose) } - /** - * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. - */ override fun versionReporting(versionReporting: Boolean) { cdkBuilder.versionReporting(versionReporting) } @@ -403,193 +183,56 @@ public interface DestroyOptions : DefaultCdkOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DestroyOptions, - ) : CdkObject(cdkObject), DestroyOptions { - /** - * Deploy all stacks. - * - * Requried if `stacks` is not set - * - * Default: - false - */ + ) : CdkObject(cdkObject), + DestroyOptions { override fun all(): Boolean? = unwrap(this).getAll() - /** - * command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" - * or "cdk.out". - * - * Default: - read from cdk.json - */ override fun app(): String? = unwrap(this).getApp() - /** - * Include "aws:asset:*" CloudFormation metadata for resources that use assets. - * - * Default: true - */ override fun assetMetadata(): Boolean? = unwrap(this).getAssetMetadata() - /** - * Path to CA certificate to use when validating HTTPS requests. - * - * Default: - read from AWS_CA_BUNDLE environment variable - */ override fun caBundlePath(): String? = unwrap(this).getCaBundlePath() - /** - * Show colors and other style from console output. - * - * Default: true - */ override fun color(): Boolean? = unwrap(this).getColor() - /** - * Additional context. - * - * Default: - no additional context - */ override fun context(): Map = unwrap(this).getContext() ?: emptyMap() - /** - * enable emission of additional debugging information, such as creation stack traces of tokens. - * - * Default: false - */ override fun debug(): Boolean? = unwrap(this).getDebug() - /** - * Force trying to fetch EC2 instance credentials. - * - * Default: - guess EC2 instance status - */ override fun ec2Creds(): Boolean? = unwrap(this).getEc2Creds() - /** - * Only destroy the given stack. - * - * Default: false - */ override fun exclusively(): Boolean? = unwrap(this).getExclusively() - /** - * Do not ask for permission before destroying stacks. - * - * Default: false - */ override fun force(): Boolean? = unwrap(this).getForce() - /** - * Ignores synthesis errors, which will likely produce an invalid output. - * - * Default: false - */ override fun ignoreErrors(): Boolean? = unwrap(this).getIgnoreErrors() - /** - * Use JSON output instead of YAML when templates are printed to STDOUT. - * - * Default: false - */ override fun json(): Boolean? = unwrap(this).getJson() - /** - * Perform context lookups. - * - * Synthesis fails if this is disabled and context lookups need - * to be performed - * - * Default: true - */ override fun lookups(): Boolean? = unwrap(this).getLookups() - /** - * Show relevant notices. - * - * Default: true - */ override fun notices(): Boolean? = unwrap(this).getNotices() - /** - * Emits the synthesized cloud assembly into a directory. - * - * Default: cdk.out - */ override fun output(): String? = unwrap(this).getOutput() - /** - * Include "aws:cdk:path" CloudFormation metadata for each resource. - * - * Default: true - */ override fun pathMetadata(): Boolean? = unwrap(this).getPathMetadata() - /** - * Use the indicated AWS profile as the default environment. - * - * Default: - no profile is used - */ override fun profile(): String? = unwrap(this).getProfile() - /** - * Use the indicated proxy. - * - * Will read from - * HTTPS_PROXY environment if specified - * - * Default: - no proxy - */ override fun proxy(): String? = unwrap(this).getProxy() - /** - * Role to pass to CloudFormation for deployment. - * - * Default: - use the bootstrap cfn-exec role - */ override fun roleArn(): String? = unwrap(this).getRoleArn() - /** - * List of stacks to deploy. - * - * Requried if `all` is not set - * - * Default: - [] - */ override fun stacks(): List = unwrap(this).getStacks() ?: emptyList() - /** - * Copy assets to the output directory. - * - * Needed for local debugging the source files with SAM CLI - * - * Default: false - */ override fun staging(): Boolean? = unwrap(this).getStaging() - /** - * Do not construct stacks with warnings. - * - * Default: false - */ override fun strict(): Boolean? = unwrap(this).getStrict() - /** - * Print trace for stack warnings. - * - * Default: false - */ override fun trace(): Boolean? = unwrap(this).getTrace() - /** - * show debug logs. - * - * Default: false - */ override fun verbose(): Boolean? = unwrap(this).getVerbose() - /** - * Include "AWS::CDK::Metadata" resource in synthesized templates. - * - * Default: true - */ override fun versionReporting(): Boolean? = unwrap(this).getVersionReporting() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerCacheOption.kt index f038ef3c4a..d9ba24df39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerCacheOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerCacheOption.kt @@ -9,72 +9,15 @@ import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Options for configuring the Docker cache backend. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * DockerCacheOption dockerCacheOption = DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build(); - * ``` - */ public interface DockerCacheOption { - /** - * Any parameters to pass into the docker cache backend configuration. - * - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - * - * Default: {} No options provided - * - * Example: - * - * ``` - * String branch; - * Map<String, Object> params = Map.of( - * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), - * "mode", "max"); - * ``` - */ public fun params(): Map = unwrap(this).getParams() ?: emptyMap() - /** - * The type of cache to use. - * - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - * - * Default: - unspecified - * - * Example: - * - * ``` - * "registry"; - * ``` - */ public fun type(): String - /** - * A builder for [DockerCacheOption] - */ @CdkDslMarker public interface Builder { - /** - * @param params Any parameters to pass into the docker cache backend configuration. - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - */ public fun params(params: Map) - /** - * @param type The type of cache to use. - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - */ public fun type(type: String) } @@ -82,18 +25,10 @@ public interface DockerCacheOption { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DockerCacheOption.Builder = software.amazon.awscdk.cloudassembly.schema.DockerCacheOption.builder() - /** - * @param params Any parameters to pass into the docker cache backend configuration. - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - */ override fun params(params: Map) { cdkBuilder.params(params) } - /** - * @param type The type of cache to use. - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - */ override fun type(type: String) { cdkBuilder.type(type) } @@ -104,38 +39,10 @@ public interface DockerCacheOption { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DockerCacheOption, - ) : CdkObject(cdkObject), DockerCacheOption { - /** - * Any parameters to pass into the docker cache backend configuration. - * - * Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. - * - * Default: {} No options provided - * - * Example: - * - * ``` - * String branch; - * Map<String, Object> params = Map.of( - * "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), - * "mode", "max"); - * ``` - */ + ) : CdkObject(cdkObject), + DockerCacheOption { override fun params(): Map = unwrap(this).getParams() ?: emptyMap() - /** - * The type of cache to use. - * - * Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. - * - * Default: - unspecified - * - * Example: - * - * ``` - * "registry"; - * ``` - */ override fun type(): String = unwrap(this).getType() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageAsset.kt index a03ab3fc7a..440544285d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageAsset.kt @@ -10,84 +10,17 @@ import kotlin.Unit import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * A file asset. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * DockerImageAsset dockerImageAsset = DockerImageAsset.builder() - * .destinations(Map.of( - * "destinationsKey", DockerImageDestination.builder() - * .imageTag("imageTag") - * .repositoryName("repositoryName") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build())) - * .source(DockerImageSource.builder() - * .cacheDisabled(false) - * .cacheFrom(List.of(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build())) - * .cacheTo(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build()) - * .directory("directory") - * .dockerBuildArgs(Map.of( - * "dockerBuildArgsKey", "dockerBuildArgs")) - * .dockerBuildSecrets(Map.of( - * "dockerBuildSecretsKey", "dockerBuildSecrets")) - * .dockerBuildSsh("dockerBuildSsh") - * .dockerBuildTarget("dockerBuildTarget") - * .dockerFile("dockerFile") - * .dockerOutputs(List.of("dockerOutputs")) - * .executable(List.of("executable")) - * .networkMode("networkMode") - * .platform("platform") - * .build()) - * .build(); - * ``` - */ public interface DockerImageAsset { - /** - * Destinations for this file asset. - */ public fun destinations(): Map - /** - * Source description for file assets. - */ public fun source(): DockerImageSource - /** - * A builder for [DockerImageAsset] - */ @CdkDslMarker public interface Builder { - /** - * @param destinations Destinations for this file asset. - */ public fun destinations(destinations: Map) - /** - * @param source Source description for file assets. - */ public fun source(source: DockerImageSource) - /** - * @param source Source description for file assets. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("756babc8208a90f8ddf71a14f0b4381b6874e4c9ebd4c792ae2c30fd7b04dc62") public fun source(source: DockerImageSource.Builder.() -> Unit) @@ -97,23 +30,14 @@ public interface DockerImageAsset { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DockerImageAsset.Builder = software.amazon.awscdk.cloudassembly.schema.DockerImageAsset.builder() - /** - * @param destinations Destinations for this file asset. - */ override fun destinations(destinations: Map) { cdkBuilder.destinations(destinations.mapValues{DockerImageDestination.unwrap(it.value)}) } - /** - * @param source Source description for file assets. - */ override fun source(source: DockerImageSource) { cdkBuilder.source(source.let(DockerImageSource.Companion::unwrap)) } - /** - * @param source Source description for file assets. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("756babc8208a90f8ddf71a14f0b4381b6874e4c9ebd4c792ae2c30fd7b04dc62") override fun source(source: DockerImageSource.Builder.() -> Unit): Unit = @@ -125,16 +49,11 @@ public interface DockerImageAsset { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DockerImageAsset, - ) : CdkObject(cdkObject), DockerImageAsset { - /** - * Destinations for this file asset. - */ + ) : CdkObject(cdkObject), + DockerImageAsset { override fun destinations(): Map = unwrap(this).getDestinations().mapValues{DockerImageDestination.wrap(it.value)} - /** - * Source description for file assets. - */ override fun source(): DockerImageSource = unwrap(this).getSource().let(DockerImageSource::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageDestination.kt index c087ba844e..ba1d6a5b7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageDestination.kt @@ -5,68 +5,28 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Where to publish docker images. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * DockerImageDestination dockerImageDestination = DockerImageDestination.builder() - * .imageTag("imageTag") - * .repositoryName("repositoryName") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build(); - * ``` - */ public interface DockerImageDestination : AwsDestination { - /** - * Tag of the image to publish. - */ public fun imageTag(): String - /** - * Name of the ECR repository to publish to. - */ public fun repositoryName(): String - /** - * A builder for [DockerImageDestination] - */ @CdkDslMarker public interface Builder { - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun assumeRoleArn(assumeRoleArn: String) - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ public fun assumeRoleExternalId(assumeRoleExternalId: String) - /** - * @param imageTag Tag of the image to publish. - */ public fun imageTag(imageTag: String) - /** - * @param region The region where this asset will need to be published. - */ public fun region(region: String) - /** - * @param repositoryName Name of the ECR repository to publish to. - */ public fun repositoryName(repositoryName: String) } @@ -75,38 +35,26 @@ public interface DockerImageDestination : AwsDestination { software.amazon.awscdk.cloudassembly.schema.DockerImageDestination.Builder = software.amazon.awscdk.cloudassembly.schema.DockerImageDestination.builder() - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun assumeRoleArn(assumeRoleArn: String) { cdkBuilder.assumeRoleArn(assumeRoleArn) } - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ override fun assumeRoleExternalId(assumeRoleExternalId: String) { cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) } - /** - * @param imageTag Tag of the image to publish. - */ override fun imageTag(imageTag: String) { cdkBuilder.imageTag(imageTag) } - /** - * @param region The region where this asset will need to be published. - */ override fun region(region: String) { cdkBuilder.region(region) } - /** - * @param repositoryName Name of the ECR repository to publish to. - */ override fun repositoryName(repositoryName: String) { cdkBuilder.repositoryName(repositoryName) } @@ -117,36 +65,19 @@ public interface DockerImageDestination : AwsDestination { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DockerImageDestination, - ) : CdkObject(cdkObject), DockerImageDestination { - /** - * The role that needs to be assumed while publishing this asset. - * - * Default: - No role will be assumed - */ + ) : CdkObject(cdkObject), + DockerImageDestination { + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * The ExternalId that needs to be supplied while assuming this role. - * - * Default: - No ExternalId will be supplied - */ override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * Tag of the image to publish. - */ override fun imageTag(): String = unwrap(this).getImageTag() - /** - * The region where this asset will need to be published. - * - * Default: - Current region - */ override fun region(): String? = unwrap(this).getRegion() - /** - * Name of the ECR repository to publish to. - */ override fun repositoryName(): String = unwrap(this).getRepositoryName() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageSource.kt index 563ac9e743..f44868f133 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/DockerImageSource.kt @@ -12,263 +12,72 @@ import kotlin.collections.List import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * Properties for how to produce a Docker image from a source. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * DockerImageSource dockerImageSource = DockerImageSource.builder() - * .cacheDisabled(false) - * .cacheFrom(List.of(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build())) - * .cacheTo(DockerCacheOption.builder() - * .type("type") - * // the properties below are optional - * .params(Map.of( - * "paramsKey", "params")) - * .build()) - * .directory("directory") - * .dockerBuildArgs(Map.of( - * "dockerBuildArgsKey", "dockerBuildArgs")) - * .dockerBuildSecrets(Map.of( - * "dockerBuildSecretsKey", "dockerBuildSecrets")) - * .dockerBuildSsh("dockerBuildSsh") - * .dockerBuildTarget("dockerBuildTarget") - * .dockerFile("dockerFile") - * .dockerOutputs(List.of("dockerOutputs")) - * .executable(List.of("executable")) - * .networkMode("networkMode") - * .platform("platform") - * .build(); - * ``` - */ public interface DockerImageSource { - /** - * Disable the cache and pass `--no-cache` to the `docker build` command. - * - * Default: - cache is used - */ public fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() - /** - * Cache from options to pass to the `docker build` command. - * - * Default: - no cache from options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ public fun cacheFrom(): List = unwrap(this).getCacheFrom()?.map(DockerCacheOption::wrap) ?: emptyList() - /** - * Cache to options to pass to the `docker build` command. - * - * Default: - no cache to options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ public fun cacheTo(): DockerCacheOption? = unwrap(this).getCacheTo()?.let(DockerCacheOption::wrap) - /** - * The directory containing the Docker image build instructions. - * - * This path is relative to the asset manifest location. - * - * Default: - Exactly one of `directory` and `executable` is required - */ public fun directory(): String? = unwrap(this).getDirectory() - /** - * Additional build arguments. - * - * Only allowed when `directory` is set. - * - * Default: - No additional build arguments - */ public fun dockerBuildArgs(): Map = unwrap(this).getDockerBuildArgs() ?: emptyMap() - /** - * Additional build secrets. - * - * Only allowed when `directory` is set. - * - * Default: - No additional build secrets - */ public fun dockerBuildSecrets(): Map = unwrap(this).getDockerBuildSecrets() ?: emptyMap() - /** - * SSH agent socket or keys. - * - * Requires building with docker buildkit. - * - * Default: - No ssh flag is set - */ public fun dockerBuildSsh(): String? = unwrap(this).getDockerBuildSsh() - /** - * Target build stage in a Dockerfile with multiple build stages. - * - * Only allowed when `directory` is set. - * - * Default: - The last stage in the Dockerfile - */ public fun dockerBuildTarget(): String? = unwrap(this).getDockerBuildTarget() - /** - * The name of the file with build instructions. - * - * Only allowed when `directory` is set. - * - * Default: "Dockerfile" - */ public fun dockerFile(): String? = unwrap(this).getDockerFile() - /** - * Outputs. - * - * Default: - no outputs are passed to the build command (default outputs are used) - * - * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) - */ public fun dockerOutputs(): List = unwrap(this).getDockerOutputs() ?: emptyList() - /** - * A command-line executable that returns the name of a local Docker image on stdout after being - * run. - * - * Default: - Exactly one of `directory` and `executable` is required - */ public fun executable(): List = unwrap(this).getExecutable() ?: emptyList() - /** - * Networking mode for the RUN commands during build. *Requires Docker Engine API v1.25+*. - * - * Specify this property to build images on a specific networking mode. - * - * Default: - no networking mode specified - */ public fun networkMode(): String? = unwrap(this).getNetworkMode() - /** - * Platform to build for. *Requires Docker Buildx*. - * - * Specify this property to build images on a specific platform/architecture. - * - * Default: - current machine platform - */ public fun platform(): String? = unwrap(this).getPlatform() - /** - * A builder for [DockerImageSource] - */ @CdkDslMarker public interface Builder { - /** - * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. - */ public fun cacheDisabled(cacheDisabled: Boolean) - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ public fun cacheFrom(cacheFrom: List) - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ public fun cacheFrom(vararg cacheFrom: DockerCacheOption) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ public fun cacheTo(cacheTo: DockerCacheOption) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6351ac2eb73a01241d0b2f13b4100f776f02dce966026e6ef65f34569c1dd197") public fun cacheTo(cacheTo: DockerCacheOption.Builder.() -> Unit) - /** - * @param directory The directory containing the Docker image build instructions. - * This path is relative to the asset manifest location. - */ public fun directory(directory: String) - /** - * @param dockerBuildArgs Additional build arguments. - * Only allowed when `directory` is set. - */ public fun dockerBuildArgs(dockerBuildArgs: Map) - /** - * @param dockerBuildSecrets Additional build secrets. - * Only allowed when `directory` is set. - */ public fun dockerBuildSecrets(dockerBuildSecrets: Map) - /** - * @param dockerBuildSsh SSH agent socket or keys. - * Requires building with docker buildkit. - */ public fun dockerBuildSsh(dockerBuildSsh: String) - /** - * @param dockerBuildTarget Target build stage in a Dockerfile with multiple build stages. - * Only allowed when `directory` is set. - */ public fun dockerBuildTarget(dockerBuildTarget: String) - /** - * @param dockerFile The name of the file with build instructions. - * Only allowed when `directory` is set. - */ public fun dockerFile(dockerFile: String) - /** - * @param dockerOutputs Outputs. - */ public fun dockerOutputs(dockerOutputs: List) - /** - * @param dockerOutputs Outputs. - */ public fun dockerOutputs(vararg dockerOutputs: String) - /** - * @param executable A command-line executable that returns the name of a local Docker image on - * stdout after being run. - */ public fun executable(executable: List) - /** - * @param executable A command-line executable that returns the name of a local Docker image on - * stdout after being run. - */ public fun executable(vararg executable: String) - /** - * @param networkMode Networking mode for the RUN commands during build. *Requires Docker Engine - * API v1.25+*. - * Specify this property to build images on a specific networking mode. - */ public fun networkMode(networkMode: String) - /** - * @param platform Platform to build for. *Requires Docker Buildx*. - * Specify this property to build images on a specific platform/architecture. - */ public fun platform(platform: String) } @@ -276,129 +85,67 @@ public interface DockerImageSource { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.DockerImageSource.Builder = software.amazon.awscdk.cloudassembly.schema.DockerImageSource.builder() - /** - * @param cacheDisabled Disable the cache and pass `--no-cache` to the `docker build` command. - */ override fun cacheDisabled(cacheDisabled: Boolean) { cdkBuilder.cacheDisabled(cacheDisabled) } - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ override fun cacheFrom(cacheFrom: List) { cdkBuilder.cacheFrom(cacheFrom.map(DockerCacheOption.Companion::unwrap)) } - /** - * @param cacheFrom Cache from options to pass to the `docker build` command. - */ override fun cacheFrom(vararg cacheFrom: DockerCacheOption): Unit = cacheFrom(cacheFrom.toList()) - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ override fun cacheTo(cacheTo: DockerCacheOption) { cdkBuilder.cacheTo(cacheTo.let(DockerCacheOption.Companion::unwrap)) } - /** - * @param cacheTo Cache to options to pass to the `docker build` command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6351ac2eb73a01241d0b2f13b4100f776f02dce966026e6ef65f34569c1dd197") override fun cacheTo(cacheTo: DockerCacheOption.Builder.() -> Unit): Unit = cacheTo(DockerCacheOption(cacheTo)) - /** - * @param directory The directory containing the Docker image build instructions. - * This path is relative to the asset manifest location. - */ override fun directory(directory: String) { cdkBuilder.directory(directory) } - /** - * @param dockerBuildArgs Additional build arguments. - * Only allowed when `directory` is set. - */ override fun dockerBuildArgs(dockerBuildArgs: Map) { cdkBuilder.dockerBuildArgs(dockerBuildArgs) } - /** - * @param dockerBuildSecrets Additional build secrets. - * Only allowed when `directory` is set. - */ override fun dockerBuildSecrets(dockerBuildSecrets: Map) { cdkBuilder.dockerBuildSecrets(dockerBuildSecrets) } - /** - * @param dockerBuildSsh SSH agent socket or keys. - * Requires building with docker buildkit. - */ override fun dockerBuildSsh(dockerBuildSsh: String) { cdkBuilder.dockerBuildSsh(dockerBuildSsh) } - /** - * @param dockerBuildTarget Target build stage in a Dockerfile with multiple build stages. - * Only allowed when `directory` is set. - */ override fun dockerBuildTarget(dockerBuildTarget: String) { cdkBuilder.dockerBuildTarget(dockerBuildTarget) } - /** - * @param dockerFile The name of the file with build instructions. - * Only allowed when `directory` is set. - */ override fun dockerFile(dockerFile: String) { cdkBuilder.dockerFile(dockerFile) } - /** - * @param dockerOutputs Outputs. - */ override fun dockerOutputs(dockerOutputs: List) { cdkBuilder.dockerOutputs(dockerOutputs) } - /** - * @param dockerOutputs Outputs. - */ override fun dockerOutputs(vararg dockerOutputs: String): Unit = dockerOutputs(dockerOutputs.toList()) - /** - * @param executable A command-line executable that returns the name of a local Docker image on - * stdout after being run. - */ override fun executable(executable: List) { cdkBuilder.executable(executable) } - /** - * @param executable A command-line executable that returns the name of a local Docker image on - * stdout after being run. - */ override fun executable(vararg executable: String): Unit = executable(executable.toList()) - /** - * @param networkMode Networking mode for the RUN commands during build. *Requires Docker Engine - * API v1.25+*. - * Specify this property to build images on a specific networking mode. - */ override fun networkMode(networkMode: String) { cdkBuilder.networkMode(networkMode) } - /** - * @param platform Platform to build for. *Requires Docker Buildx*. - * Specify this property to build images on a specific platform/architecture. - */ override fun platform(platform: String) { cdkBuilder.platform(platform) } @@ -409,123 +156,36 @@ public interface DockerImageSource { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.DockerImageSource, - ) : CdkObject(cdkObject), DockerImageSource { - /** - * Disable the cache and pass `--no-cache` to the `docker build` command. - * - * Default: - cache is used - */ + ) : CdkObject(cdkObject), + DockerImageSource { override fun cacheDisabled(): Boolean? = unwrap(this).getCacheDisabled() - /** - * Cache from options to pass to the `docker build` command. - * - * Default: - no cache from options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ override fun cacheFrom(): List = unwrap(this).getCacheFrom()?.map(DockerCacheOption::wrap) ?: emptyList() - /** - * Cache to options to pass to the `docker build` command. - * - * Default: - no cache to options are passed to the build command - * - * [Documentation](https://docs.docker.com/build/cache/backends/) - */ override fun cacheTo(): DockerCacheOption? = unwrap(this).getCacheTo()?.let(DockerCacheOption::wrap) - /** - * The directory containing the Docker image build instructions. - * - * This path is relative to the asset manifest location. - * - * Default: - Exactly one of `directory` and `executable` is required - */ override fun directory(): String? = unwrap(this).getDirectory() - /** - * Additional build arguments. - * - * Only allowed when `directory` is set. - * - * Default: - No additional build arguments - */ override fun dockerBuildArgs(): Map = unwrap(this).getDockerBuildArgs() ?: emptyMap() - /** - * Additional build secrets. - * - * Only allowed when `directory` is set. - * - * Default: - No additional build secrets - */ override fun dockerBuildSecrets(): Map = unwrap(this).getDockerBuildSecrets() ?: emptyMap() - /** - * SSH agent socket or keys. - * - * Requires building with docker buildkit. - * - * Default: - No ssh flag is set - */ override fun dockerBuildSsh(): String? = unwrap(this).getDockerBuildSsh() - /** - * Target build stage in a Dockerfile with multiple build stages. - * - * Only allowed when `directory` is set. - * - * Default: - The last stage in the Dockerfile - */ override fun dockerBuildTarget(): String? = unwrap(this).getDockerBuildTarget() - /** - * The name of the file with build instructions. - * - * Only allowed when `directory` is set. - * - * Default: "Dockerfile" - */ override fun dockerFile(): String? = unwrap(this).getDockerFile() - /** - * Outputs. - * - * Default: - no outputs are passed to the build command (default outputs are used) - * - * [Documentation](https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs) - */ override fun dockerOutputs(): List = unwrap(this).getDockerOutputs() ?: emptyList() - /** - * A command-line executable that returns the name of a local Docker image on stdout after being - * run. - * - * Default: - Exactly one of `directory` and `executable` is required - */ override fun executable(): List = unwrap(this).getExecutable() ?: emptyList() - /** - * Networking mode for the RUN commands during build. *Requires Docker Engine API v1.25+*. - * - * Specify this property to build images on a specific networking mode. - * - * Default: - no networking mode specified - */ override fun networkMode(): String? = unwrap(this).getNetworkMode() - /** - * Platform to build for. *Requires Docker Buildx*. - * - * Specify this property to build images on a specific platform/architecture. - * - * Default: - current machine platform - */ override fun platform(): String? = unwrap(this).getPlatform() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/EndpointServiceAvailabilityZonesContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/EndpointServiceAvailabilityZonesContextQuery.kt index 3d103236a9..fdee4b3c09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/EndpointServiceAvailabilityZonesContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/EndpointServiceAvailabilityZonesContextQuery.kt @@ -5,74 +5,26 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query to endpoint service context provider. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * EndpointServiceAvailabilityZonesContextQuery endpointServiceAvailabilityZonesContextQuery = - * EndpointServiceAvailabilityZonesContextQuery.builder() - * .account("account") - * .region("region") - * .serviceName("serviceName") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ -public interface EndpointServiceAvailabilityZonesContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * Query service name. - */ +public interface EndpointServiceAvailabilityZonesContextQuery : ContextLookupRoleOptions { public fun serviceName(): String - /** - * A builder for [EndpointServiceAvailabilityZonesContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) - /** - * @param serviceName Query service name. - */ public fun serviceName(serviceName: String) } @@ -82,30 +34,26 @@ public interface EndpointServiceAvailabilityZonesContextQuery { = software.amazon.awscdk.cloudassembly.schema.EndpointServiceAvailabilityZonesContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } - /** - * @param serviceName Query service name. - */ override fun serviceName(serviceName: String) { cdkBuilder.serviceName(serviceName) } @@ -117,27 +65,19 @@ public interface EndpointServiceAvailabilityZonesContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.EndpointServiceAvailabilityZonesContextQuery, - ) : CdkObject(cdkObject), EndpointServiceAvailabilityZonesContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + EndpointServiceAvailabilityZonesContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() - /** - * Query service name. - */ override fun serviceName(): String = unwrap(this).getServiceName() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAsset.kt index 3f2a76de64..01342f4dda 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAsset.kt @@ -10,62 +10,17 @@ import kotlin.Unit import kotlin.collections.Map import kotlin.jvm.JvmName -/** - * A file asset. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * FileAsset fileAsset = FileAsset.builder() - * .destinations(Map.of( - * "destinationsKey", FileDestination.builder() - * .bucketName("bucketName") - * .objectKey("objectKey") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build())) - * .source(FileSource.builder() - * .executable(List.of("executable")) - * .packaging(FileAssetPackaging.FILE) - * .path("path") - * .build()) - * .build(); - * ``` - */ public interface FileAsset { - /** - * Destinations for this file asset. - */ public fun destinations(): Map - /** - * Source description for file assets. - */ public fun source(): FileSource - /** - * A builder for [FileAsset] - */ @CdkDslMarker public interface Builder { - /** - * @param destinations Destinations for this file asset. - */ public fun destinations(destinations: Map) - /** - * @param source Source description for file assets. - */ public fun source(source: FileSource) - /** - * @param source Source description for file assets. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("19d0ad16d7c314e6badf5fb4fef6a0ff156788b27b128f2855b3050ef7bd9afe") public fun source(source: FileSource.Builder.() -> Unit) @@ -75,23 +30,14 @@ public interface FileAsset { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.FileAsset.Builder = software.amazon.awscdk.cloudassembly.schema.FileAsset.builder() - /** - * @param destinations Destinations for this file asset. - */ override fun destinations(destinations: Map) { cdkBuilder.destinations(destinations.mapValues{FileDestination.unwrap(it.value)}) } - /** - * @param source Source description for file assets. - */ override fun source(source: FileSource) { cdkBuilder.source(source.let(FileSource.Companion::unwrap)) } - /** - * @param source Source description for file assets. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("19d0ad16d7c314e6badf5fb4fef6a0ff156788b27b128f2855b3050ef7bd9afe") override fun source(source: FileSource.Builder.() -> Unit): Unit = source(FileSource(source)) @@ -101,16 +47,11 @@ public interface FileAsset { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.FileAsset, - ) : CdkObject(cdkObject), FileAsset { - /** - * Destinations for this file asset. - */ + ) : CdkObject(cdkObject), + FileAsset { override fun destinations(): Map = unwrap(this).getDestinations().mapValues{FileDestination.wrap(it.value)} - /** - * Source description for file assets. - */ override fun source(): FileSource = unwrap(this).getSource().let(FileSource::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAssetMetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAssetMetadataEntry.kt index 13bb634e81..f67b2274bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAssetMetadataEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileAssetMetadataEntry.kt @@ -8,94 +8,35 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit -/** - * Metadata Entry spec for files. - * - * Example: - * - * ``` - * Map<String, String> entry = Map.of( - * "packaging", "file", - * "s3BucketParameter", "bucket-parameter", - * "s3KeyParamenter", "key-parameter", - * "artifactHashParameter", "hash-parameter"); - * ``` - */ public interface FileAssetMetadataEntry { - /** - * The name of the parameter where the hash of the bundled asset should be passed in. - */ public fun artifactHashParameter(): String - /** - * Logical identifier for the asset. - */ public fun id(): String - /** - * Requested packaging style. - */ public fun packaging(): String - /** - * Path on disk to the asset. - */ public fun path(): String - /** - * Name of parameter where S3 bucket should be passed in. - */ public fun s3BucketParameter(): String - /** - * Name of parameter where S3 key should be passed in. - */ public fun s3KeyParameter(): String - /** - * The hash of the asset source. - */ public fun sourceHash(): String - /** - * A builder for [FileAssetMetadataEntry] - */ @CdkDslMarker public interface Builder { - /** - * @param artifactHashParameter The name of the parameter where the hash of the bundled asset - * should be passed in. - */ public fun artifactHashParameter(artifactHashParameter: String) - /** - * @param id Logical identifier for the asset. - */ public fun id(id: String) - /** - * @param packaging Requested packaging style. - */ public fun packaging(packaging: String) - /** - * @param path Path on disk to the asset. - */ public fun path(path: String) - /** - * @param s3BucketParameter Name of parameter where S3 bucket should be passed in. - */ public fun s3BucketParameter(s3BucketParameter: String) - /** - * @param s3KeyParameter Name of parameter where S3 key should be passed in. - */ public fun s3KeyParameter(s3KeyParameter: String) - /** - * @param sourceHash The hash of the asset source. - */ public fun sourceHash(sourceHash: String) } @@ -104,52 +45,30 @@ public interface FileAssetMetadataEntry { software.amazon.awscdk.cloudassembly.schema.FileAssetMetadataEntry.Builder = software.amazon.awscdk.cloudassembly.schema.FileAssetMetadataEntry.builder() - /** - * @param artifactHashParameter The name of the parameter where the hash of the bundled asset - * should be passed in. - */ override fun artifactHashParameter(artifactHashParameter: String) { cdkBuilder.artifactHashParameter(artifactHashParameter) } - /** - * @param id Logical identifier for the asset. - */ override fun id(id: String) { cdkBuilder.id(id) } - /** - * @param packaging Requested packaging style. - */ override fun packaging(packaging: String) { cdkBuilder.packaging(packaging) } - /** - * @param path Path on disk to the asset. - */ override fun path(path: String) { cdkBuilder.path(path) } - /** - * @param s3BucketParameter Name of parameter where S3 bucket should be passed in. - */ override fun s3BucketParameter(s3BucketParameter: String) { cdkBuilder.s3BucketParameter(s3BucketParameter) } - /** - * @param s3KeyParameter Name of parameter where S3 key should be passed in. - */ override fun s3KeyParameter(s3KeyParameter: String) { cdkBuilder.s3KeyParameter(s3KeyParameter) } - /** - * @param sourceHash The hash of the asset source. - */ override fun sourceHash(sourceHash: String) { cdkBuilder.sourceHash(sourceHash) } @@ -160,40 +79,20 @@ public interface FileAssetMetadataEntry { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.FileAssetMetadataEntry, - ) : CdkObject(cdkObject), FileAssetMetadataEntry { - /** - * The name of the parameter where the hash of the bundled asset should be passed in. - */ + ) : CdkObject(cdkObject), + FileAssetMetadataEntry { override fun artifactHashParameter(): String = unwrap(this).getArtifactHashParameter() - /** - * Logical identifier for the asset. - */ override fun id(): String = unwrap(this).getId() - /** - * Requested packaging style. - */ override fun packaging(): String = unwrap(this).getPackaging() - /** - * Path on disk to the asset. - */ override fun path(): String = unwrap(this).getPath() - /** - * Name of parameter where S3 bucket should be passed in. - */ override fun s3BucketParameter(): String = unwrap(this).getS3BucketParameter() - /** - * Name of parameter where S3 key should be passed in. - */ override fun s3KeyParameter(): String = unwrap(this).getS3KeyParameter() - /** - * The hash of the asset source. - */ override fun sourceHash(): String = unwrap(this).getSourceHash() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileDestination.kt index 05fbf1d97f..8884bf6648 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileDestination.kt @@ -5,68 +5,28 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Where in S3 a file asset needs to be published. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * FileDestination fileDestination = FileDestination.builder() - * .bucketName("bucketName") - * .objectKey("objectKey") - * // the properties below are optional - * .assumeRoleArn("assumeRoleArn") - * .assumeRoleExternalId("assumeRoleExternalId") - * .region("region") - * .build(); - * ``` - */ public interface FileDestination : AwsDestination { - /** - * The name of the bucket. - */ public fun bucketName(): String - /** - * The destination object key. - */ public fun objectKey(): String - /** - * A builder for [FileDestination] - */ @CdkDslMarker public interface Builder { - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun assumeRoleArn(assumeRoleArn: String) - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ public fun assumeRoleExternalId(assumeRoleExternalId: String) - /** - * @param bucketName The name of the bucket. - */ public fun bucketName(bucketName: String) - /** - * @param objectKey The destination object key. - */ public fun objectKey(objectKey: String) - /** - * @param region The region where this asset will need to be published. - */ public fun region(region: String) } @@ -74,38 +34,26 @@ public interface FileDestination : AwsDestination { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.FileDestination.Builder = software.amazon.awscdk.cloudassembly.schema.FileDestination.builder() - /** - * @param assumeRoleArn The role that needs to be assumed while publishing this asset. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun assumeRoleArn(assumeRoleArn: String) { cdkBuilder.assumeRoleArn(assumeRoleArn) } - /** - * @param assumeRoleExternalId The ExternalId that needs to be supplied while assuming this - * role. - */ override fun assumeRoleExternalId(assumeRoleExternalId: String) { cdkBuilder.assumeRoleExternalId(assumeRoleExternalId) } - /** - * @param bucketName The name of the bucket. - */ override fun bucketName(bucketName: String) { cdkBuilder.bucketName(bucketName) } - /** - * @param objectKey The destination object key. - */ override fun objectKey(objectKey: String) { cdkBuilder.objectKey(objectKey) } - /** - * @param region The region where this asset will need to be published. - */ override fun region(region: String) { cdkBuilder.region(region) } @@ -116,36 +64,19 @@ public interface FileDestination : AwsDestination { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.FileDestination, - ) : CdkObject(cdkObject), FileDestination { - /** - * The role that needs to be assumed while publishing this asset. - * - * Default: - No role will be assumed - */ + ) : CdkObject(cdkObject), + FileDestination { + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun assumeRoleArn(): String? = unwrap(this).getAssumeRoleArn() - /** - * The ExternalId that needs to be supplied while assuming this role. - * - * Default: - No ExternalId will be supplied - */ override fun assumeRoleExternalId(): String? = unwrap(this).getAssumeRoleExternalId() - /** - * The name of the bucket. - */ override fun bucketName(): String = unwrap(this).getBucketName() - /** - * The destination object key. - */ override fun objectKey(): String = unwrap(this).getObjectKey() - /** - * The region where this asset will need to be published. - * - * Default: - Current region - */ override fun region(): String? = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileSource.kt index 5ada19ab90..a2dd1451c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/FileSource.kt @@ -9,74 +9,22 @@ import kotlin.String import kotlin.Unit import kotlin.collections.List -/** - * Describe the source of a file asset. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * FileSource fileSource = FileSource.builder() - * .executable(List.of("executable")) - * .packaging(FileAssetPackaging.FILE) - * .path("path") - * .build(); - * ``` - */ public interface FileSource { - /** - * External command which will produce the file asset to upload. - * - * Default: - Exactly one of `executable` and `path` is required. - */ public fun executable(): List = unwrap(this).getExecutable() ?: emptyList() - /** - * Packaging method. - * - * Only allowed when `path` is specified. - * - * Default: FILE - */ public fun packaging(): FileAssetPackaging? = unwrap(this).getPackaging()?.let(FileAssetPackaging::wrap) - /** - * The filesystem object to upload. - * - * This path is relative to the asset manifest location. - * - * Default: - Exactly one of `executable` and `path` is required. - */ public fun path(): String? = unwrap(this).getPath() - /** - * A builder for [FileSource] - */ @CdkDslMarker public interface Builder { - /** - * @param executable External command which will produce the file asset to upload. - */ public fun executable(executable: List) - /** - * @param executable External command which will produce the file asset to upload. - */ public fun executable(vararg executable: String) - /** - * @param packaging Packaging method. - * Only allowed when `path` is specified. - */ public fun packaging(packaging: FileAssetPackaging) - /** - * @param path The filesystem object to upload. - * This path is relative to the asset manifest location. - */ public fun path(path: String) } @@ -84,30 +32,16 @@ public interface FileSource { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.FileSource.Builder = software.amazon.awscdk.cloudassembly.schema.FileSource.builder() - /** - * @param executable External command which will produce the file asset to upload. - */ override fun executable(executable: List) { cdkBuilder.executable(executable) } - /** - * @param executable External command which will produce the file asset to upload. - */ override fun executable(vararg executable: String): Unit = executable(executable.toList()) - /** - * @param packaging Packaging method. - * Only allowed when `path` is specified. - */ override fun packaging(packaging: FileAssetPackaging) { cdkBuilder.packaging(packaging.let(FileAssetPackaging.Companion::unwrap)) } - /** - * @param path The filesystem object to upload. - * This path is relative to the asset manifest location. - */ override fun path(path: String) { cdkBuilder.path(path) } @@ -117,31 +51,13 @@ public interface FileSource { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.FileSource, - ) : CdkObject(cdkObject), FileSource { - /** - * External command which will produce the file asset to upload. - * - * Default: - Exactly one of `executable` and `path` is required. - */ + ) : CdkObject(cdkObject), + FileSource { override fun executable(): List = unwrap(this).getExecutable() ?: emptyList() - /** - * Packaging method. - * - * Only allowed when `path` is specified. - * - * Default: FILE - */ override fun packaging(): FileAssetPackaging? = unwrap(this).getPackaging()?.let(FileAssetPackaging::wrap) - /** - * The filesystem object to upload. - * - * This path is relative to the asset manifest location. - * - * Default: - Exactly one of `executable` and `path` is required. - */ override fun path(): String? = unwrap(this).getPath() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Hooks.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Hooks.kt index a18273540b..63f31458c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Hooks.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Hooks.kt @@ -9,97 +9,31 @@ import kotlin.String import kotlin.Unit import kotlin.collections.List -/** - * Commands to run at predefined points during the integration test workflow. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * Hooks hooks = Hooks.builder() - * .postDeploy(List.of("postDeploy")) - * .postDestroy(List.of("postDestroy")) - * .preDeploy(List.of("preDeploy")) - * .preDestroy(List.of("preDestroy")) - * .build(); - * ``` - */ public interface Hooks { - /** - * Commands to run prior after deploying the cdk stacks in the integration test. - * - * Default: - no commands - */ public fun postDeploy(): List = unwrap(this).getPostDeploy() ?: emptyList() - /** - * Commands to run after destroying the cdk stacks in the integration test. - * - * Default: - no commands - */ public fun postDestroy(): List = unwrap(this).getPostDestroy() ?: emptyList() - /** - * Commands to run prior to deploying the cdk stacks in the integration test. - * - * Default: - no commands - */ public fun preDeploy(): List = unwrap(this).getPreDeploy() ?: emptyList() - /** - * Commands to run prior to destroying the cdk stacks in the integration test. - * - * Default: - no commands - */ public fun preDestroy(): List = unwrap(this).getPreDestroy() ?: emptyList() - /** - * A builder for [Hooks] - */ @CdkDslMarker public interface Builder { - /** - * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration - * test. - */ public fun postDeploy(postDeploy: List) - /** - * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration - * test. - */ public fun postDeploy(vararg postDeploy: String) - /** - * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. - */ public fun postDestroy(postDestroy: List) - /** - * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. - */ public fun postDestroy(vararg postDestroy: String) - /** - * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. - */ public fun preDeploy(preDeploy: List) - /** - * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. - */ public fun preDeploy(vararg preDeploy: String) - /** - * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. - */ public fun preDestroy(preDestroy: List) - /** - * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. - */ public fun preDestroy(vararg preDestroy: String) } @@ -107,54 +41,28 @@ public interface Hooks { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.Hooks.Builder = software.amazon.awscdk.cloudassembly.schema.Hooks.builder() - /** - * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration - * test. - */ override fun postDeploy(postDeploy: List) { cdkBuilder.postDeploy(postDeploy) } - /** - * @param postDeploy Commands to run prior after deploying the cdk stacks in the integration - * test. - */ override fun postDeploy(vararg postDeploy: String): Unit = postDeploy(postDeploy.toList()) - /** - * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. - */ override fun postDestroy(postDestroy: List) { cdkBuilder.postDestroy(postDestroy) } - /** - * @param postDestroy Commands to run after destroying the cdk stacks in the integration test. - */ override fun postDestroy(vararg postDestroy: String): Unit = postDestroy(postDestroy.toList()) - /** - * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. - */ override fun preDeploy(preDeploy: List) { cdkBuilder.preDeploy(preDeploy) } - /** - * @param preDeploy Commands to run prior to deploying the cdk stacks in the integration test. - */ override fun preDeploy(vararg preDeploy: String): Unit = preDeploy(preDeploy.toList()) - /** - * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. - */ override fun preDestroy(preDestroy: List) { cdkBuilder.preDestroy(preDestroy) } - /** - * @param preDestroy Commands to run prior to destroying the cdk stacks in the integration test. - */ override fun preDestroy(vararg preDestroy: String): Unit = preDestroy(preDestroy.toList()) public fun build(): software.amazon.awscdk.cloudassembly.schema.Hooks = cdkBuilder.build() @@ -162,33 +70,14 @@ public interface Hooks { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.Hooks, - ) : CdkObject(cdkObject), Hooks { - /** - * Commands to run prior after deploying the cdk stacks in the integration test. - * - * Default: - no commands - */ + ) : CdkObject(cdkObject), + Hooks { override fun postDeploy(): List = unwrap(this).getPostDeploy() ?: emptyList() - /** - * Commands to run after destroying the cdk stacks in the integration test. - * - * Default: - no commands - */ override fun postDestroy(): List = unwrap(this).getPostDestroy() ?: emptyList() - /** - * Commands to run prior to deploying the cdk stacks in the integration test. - * - * Default: - no commands - */ override fun preDeploy(): List = unwrap(this).getPreDeploy() ?: emptyList() - /** - * Commands to run prior to destroying the cdk stacks in the integration test. - * - * Default: - no commands - */ override fun preDestroy(): List = unwrap(this).getPreDestroy() ?: emptyList() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/HostedZoneContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/HostedZoneContextQuery.kt index 7844b3f018..30c023bfb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/HostedZoneContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/HostedZoneContextQuery.kt @@ -5,105 +5,35 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Boolean import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query to hosted zone context provider. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * HostedZoneContextQuery hostedZoneContextQuery = HostedZoneContextQuery.builder() - * .account("account") - * .domainName("domainName") - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .privateZone(false) - * .vpcId("vpcId") - * .build(); - * ``` - */ -public interface HostedZoneContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * The domain name e.g. example.com to lookup. - */ +public interface HostedZoneContextQuery : ContextLookupRoleOptions { public fun domainName(): String - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * True if the zone you want to find is a private hosted zone. - * - * Default: false - */ public fun privateZone(): Boolean? = unwrap(this).getPrivateZone() - /** - * Query region. - */ - public fun region(): String - - /** - * The VPC ID to that the private zone must be associated with. - * - * If you provide VPC ID and privateZone is false, this will return no results - * and raise an error. - * - * Default: - Required if privateZone=true - */ public fun vpcId(): String? = unwrap(this).getVpcId() - /** - * A builder for [HostedZoneContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param domainName The domain name e.g. example.com to lookup. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun domainName(domainName: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param privateZone True if the zone you want to find is a private hosted zone. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun privateZone(privateZone: Boolean) - /** - * @param region Query region. - */ public fun region(region: String) - /** - * @param vpcId The VPC ID to that the private zone must be associated with. - * If you provide VPC ID and privateZone is false, this will return no results - * and raise an error. - */ public fun vpcId(vpcId: String) } @@ -112,46 +42,34 @@ public interface HostedZoneContextQuery { software.amazon.awscdk.cloudassembly.schema.HostedZoneContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.HostedZoneContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param domainName The domain name e.g. example.com to lookup. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun domainName(domainName: String) { cdkBuilder.domainName(domainName) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param privateZone True if the zone you want to find is a private hosted zone. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun privateZone(privateZone: Boolean) { cdkBuilder.privateZone(privateZone) } - /** - * @param region Query region. - */ override fun region(region: String) { cdkBuilder.region(region) } - /** - * @param vpcId The VPC ID to that the private zone must be associated with. - * If you provide VPC ID and privateZone is false, this will return no results - * and raise an error. - */ override fun vpcId(vpcId: String) { cdkBuilder.vpcId(vpcId) } @@ -162,44 +80,23 @@ public interface HostedZoneContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.HostedZoneContextQuery, - ) : CdkObject(cdkObject), HostedZoneContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + HostedZoneContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * The domain name e.g. example.com to lookup. - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun domainName(): String = unwrap(this).getDomainName() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * True if the zone you want to find is a private hosted zone. - * - * Default: false - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun privateZone(): Boolean? = unwrap(this).getPrivateZone() - /** - * Query region. - */ override fun region(): String = unwrap(this).getRegion() - /** - * The VPC ID to that the private zone must be associated with. - * - * If you provide VPC ID and privateZone is false, this will return no results - * and raise an error. - * - * Default: - Required if privateZone=true - */ override fun vpcId(): String? = unwrap(this).getVpcId() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/IntegManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/IntegManifest.kt index 55a4c03152..456e664ab2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/IntegManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/IntegManifest.kt @@ -10,184 +10,23 @@ import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Definitions for the integration testing manifest. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * IntegManifest integManifest = IntegManifest.builder() - * .testCases(Map.of( - * "testCasesKey", TestCase.builder() - * .stacks(List.of("stacks")) - * // the properties below are optional - * .allowDestroy(List.of("allowDestroy")) - * .assertionStack("assertionStack") - * .assertionStackName("assertionStackName") - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .changeSetName("changeSetName") - * .ci(false) - * .color(false) - * .concurrency(123) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .execute(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .notificationArns(List.of("notificationArns")) - * .output("output") - * .outputsFile("outputsFile") - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .requireApproval(RequireApproval.NEVER) - * .reuseAssets(List.of("reuseAssets")) - * .roleArn("roleArn") - * .rollback(false) - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .toolkitStackName("toolkitStackName") - * .trace(false) - * .usePreviousParameters(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .color(false) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .output("output") - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .roleArn("roleArn") - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .trace(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .build()) - * .diffAssets(false) - * .hooks(Hooks.builder() - * .postDeploy(List.of("postDeploy")) - * .postDestroy(List.of("postDestroy")) - * .preDeploy(List.of("preDeploy")) - * .preDestroy(List.of("preDestroy")) - * .build()) - * .regions(List.of("regions")) - * .stackUpdateWorkflow(false) - * .build())) - * .version("version") - * // the properties below are optional - * .enableLookups(false) - * .synthContext(Map.of( - * "synthContextKey", "synthContext")) - * .build(); - * ``` - */ public interface IntegManifest { - /** - * Enable lookups for this test. - * - * If lookups are enabled - * then `stackUpdateWorkflow` must be set to false. - * Lookups should only be enabled when you are explicitely testing - * lookups. - * - * Default: false - */ public fun enableLookups(): Boolean? = unwrap(this).getEnableLookups() - /** - * Additional context to use when performing a synth. - * - * Any context provided here will override - * any default context - * - * Default: - no additional context - */ public fun synthContext(): Map = unwrap(this).getSynthContext() ?: emptyMap() - /** - * test cases. - */ public fun testCases(): Map - /** - * Version of the manifest. - */ public fun version(): String - /** - * A builder for [IntegManifest] - */ @CdkDslMarker public interface Builder { - /** - * @param enableLookups Enable lookups for this test. - * If lookups are enabled - * then `stackUpdateWorkflow` must be set to false. - * Lookups should only be enabled when you are explicitely testing - * lookups. - */ public fun enableLookups(enableLookups: Boolean) - /** - * @param synthContext Additional context to use when performing a synth. - * Any context provided here will override - * any default context - */ public fun synthContext(synthContext: Map) - /** - * @param testCases test cases. - */ public fun testCases(testCases: Map) - /** - * @param version Version of the manifest. - */ public fun version(version: String) } @@ -195,36 +34,18 @@ public interface IntegManifest { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.IntegManifest.Builder = software.amazon.awscdk.cloudassembly.schema.IntegManifest.builder() - /** - * @param enableLookups Enable lookups for this test. - * If lookups are enabled - * then `stackUpdateWorkflow` must be set to false. - * Lookups should only be enabled when you are explicitely testing - * lookups. - */ override fun enableLookups(enableLookups: Boolean) { cdkBuilder.enableLookups(enableLookups) } - /** - * @param synthContext Additional context to use when performing a synth. - * Any context provided here will override - * any default context - */ override fun synthContext(synthContext: Map) { cdkBuilder.synthContext(synthContext) } - /** - * @param testCases test cases. - */ override fun testCases(testCases: Map) { cdkBuilder.testCases(testCases.mapValues{TestCase.unwrap(it.value)}) } - /** - * @param version Version of the manifest. - */ override fun version(version: String) { cdkBuilder.version(version) } @@ -235,38 +56,15 @@ public interface IntegManifest { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.IntegManifest, - ) : CdkObject(cdkObject), IntegManifest { - /** - * Enable lookups for this test. - * - * If lookups are enabled - * then `stackUpdateWorkflow` must be set to false. - * Lookups should only be enabled when you are explicitely testing - * lookups. - * - * Default: false - */ + ) : CdkObject(cdkObject), + IntegManifest { override fun enableLookups(): Boolean? = unwrap(this).getEnableLookups() - /** - * Additional context to use when performing a synth. - * - * Any context provided here will override - * any default context - * - * Default: - no additional context - */ override fun synthContext(): Map = unwrap(this).getSynthContext() ?: emptyMap() - /** - * test cases. - */ override fun testCases(): Map = unwrap(this).getTestCases().mapValues{TestCase.wrap(it.value)} - /** - * Version of the manifest. - */ override fun version(): String = unwrap(this).getVersion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/KeyContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/KeyContextQuery.kt index eaeaed79aa..cfc1c9b15b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/KeyContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/KeyContextQuery.kt @@ -5,73 +5,26 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query input for looking up a KMS Key. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * KeyContextQuery keyContextQuery = KeyContextQuery.builder() - * .account("account") - * .aliasName("aliasName") - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ -public interface KeyContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * Alias name used to search the Key. - */ +public interface KeyContextQuery : ContextLookupRoleOptions { public fun aliasName(): String - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * A builder for [KeyContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param aliasName Alias name used to search the Key. - */ public fun aliasName(aliasName: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) } @@ -79,30 +32,26 @@ public interface KeyContextQuery { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.KeyContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.KeyContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param aliasName Alias name used to search the Key. - */ override fun aliasName(aliasName: String) { cdkBuilder.aliasName(aliasName) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } @@ -113,27 +62,19 @@ public interface KeyContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.KeyContextQuery, - ) : CdkObject(cdkObject), KeyContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + KeyContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * Alias name used to search the Key. - */ override fun aliasName(): String = unwrap(this).getAliasName() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerContextQuery.kt index 4ff98639f3..9ecc37d444 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerContextQuery.kt @@ -5,89 +5,31 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.collections.Map -/** - * Query input for looking up a load balancer. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * LoadBalancerContextQuery loadBalancerContextQuery = LoadBalancerContextQuery.builder() - * .account("account") - * .loadBalancerType(LoadBalancerType.NETWORK) - * .region("region") - * // the properties below are optional - * .loadBalancerArn("loadBalancerArn") - * .loadBalancerTags(List.of(Tag.builder() - * .key("key") - * .value("value") - * .build())) - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ public interface LoadBalancerContextQuery : LoadBalancerFilter { - /** - * Query account. - */ - public fun account(): String - - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * A builder for [LoadBalancerContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun loadBalancerArn(loadBalancerArn: String) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(loadBalancerTags: List) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(vararg loadBalancerTags: Tag) - /** - * @param loadBalancerType Filter load balancers by their type. - */ public fun loadBalancerType(loadBalancerType: LoadBalancerType) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) } @@ -96,50 +38,37 @@ public interface LoadBalancerContextQuery : LoadBalancerFilter { software.amazon.awscdk.cloudassembly.schema.LoadBalancerContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.LoadBalancerContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun loadBalancerArn(loadBalancerArn: String) { cdkBuilder.loadBalancerArn(loadBalancerArn) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(loadBalancerTags: List) { cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = loadBalancerTags(loadBalancerTags.toList()) - /** - * @param loadBalancerType Filter load balancers by their type. - */ override fun loadBalancerType(loadBalancerType: LoadBalancerType) { cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } @@ -150,43 +79,25 @@ public interface LoadBalancerContextQuery : LoadBalancerFilter { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.LoadBalancerContextQuery, - ) : CdkObject(cdkObject), LoadBalancerContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + LoadBalancerContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * Find by load balancer's ARN. - * - * Default: - does not search by load balancer arn - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() - /** - * Match load balancer tags. - * - * Default: - does not match load balancers by tags - */ override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) ?: emptyList() - /** - * Filter load balancers by their type. - */ override fun loadBalancerType(): LoadBalancerType = unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerFilter.kt index ce46d3fc74..40529bc1b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerFilter.kt @@ -5,135 +5,106 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.collections.Map -/** - * Filters for selecting load balancers. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * LoadBalancerFilter loadBalancerFilter = LoadBalancerFilter.builder() - * .loadBalancerType(LoadBalancerType.NETWORK) - * // the properties below are optional - * .loadBalancerArn("loadBalancerArn") - * .loadBalancerTags(List.of(Tag.builder() - * .key("key") - * .value("value") - * .build())) - * .build(); - * ``` - */ -public interface LoadBalancerFilter { - /** - * Find by load balancer's ARN. - * - * Default: - does not search by load balancer arn - */ +public interface LoadBalancerFilter : ContextLookupRoleOptions { public fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() - /** - * Match load balancer tags. - * - * Default: - does not match load balancers by tags - */ public fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) ?: emptyList() - /** - * Filter load balancers by their type. - */ public fun loadBalancerType(): LoadBalancerType - /** - * A builder for [LoadBalancerFilter] - */ @CdkDslMarker public interface Builder { - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ + public fun account(account: String) + + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun loadBalancerArn(loadBalancerArn: String) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(loadBalancerTags: List) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(vararg loadBalancerTags: Tag) - /** - * @param loadBalancerType Filter load balancers by their type. - */ public fun loadBalancerType(loadBalancerType: LoadBalancerType) + + public fun lookupRoleArn(lookupRoleArn: String) + + public fun lookupRoleExternalId(lookupRoleExternalId: String) + + public fun region(region: String) } private class BuilderImpl : Builder { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.LoadBalancerFilter.Builder = software.amazon.awscdk.cloudassembly.schema.LoadBalancerFilter.builder() - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ + override fun account(account: String) { + cdkBuilder.account(account) + } + + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun loadBalancerArn(loadBalancerArn: String) { cdkBuilder.loadBalancerArn(loadBalancerArn) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(loadBalancerTags: List) { cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = loadBalancerTags(loadBalancerTags.toList()) - /** - * @param loadBalancerType Filter load balancers by their type. - */ override fun loadBalancerType(loadBalancerType: LoadBalancerType) { cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) } + override fun lookupRoleArn(lookupRoleArn: String) { + cdkBuilder.lookupRoleArn(lookupRoleArn) + } + + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + + override fun region(region: String) { + cdkBuilder.region(region) + } + public fun build(): software.amazon.awscdk.cloudassembly.schema.LoadBalancerFilter = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.LoadBalancerFilter, - ) : CdkObject(cdkObject), LoadBalancerFilter { - /** - * Find by load balancer's ARN. - * - * Default: - does not search by load balancer arn - */ + ) : CdkObject(cdkObject), + LoadBalancerFilter { + override fun account(): String = unwrap(this).getAccount() + + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() - /** - * Match load balancer tags. - * - * Default: - does not match load balancers by tags - */ override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) ?: emptyList() - /** - * Filter load balancers by their type. - */ override fun loadBalancerType(): LoadBalancerType = unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) + + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() + + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + + override fun region(): String = unwrap(this).getRegion() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerListenerContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerListenerContextQuery.kt index 2e1603d2ad..22936f19b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerListenerContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadBalancerListenerContextQuery.kt @@ -5,131 +5,45 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.collections.Map -/** - * Query input for looking up a load balancer listener. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * LoadBalancerListenerContextQuery loadBalancerListenerContextQuery = - * LoadBalancerListenerContextQuery.builder() - * .account("account") - * .loadBalancerType(LoadBalancerType.NETWORK) - * .region("region") - * // the properties below are optional - * .listenerArn("listenerArn") - * .listenerPort(123) - * .listenerProtocol(LoadBalancerListenerProtocol.HTTP) - * .loadBalancerArn("loadBalancerArn") - * .loadBalancerTags(List.of(Tag.builder() - * .key("key") - * .value("value") - * .build())) - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ public interface LoadBalancerListenerContextQuery : LoadBalancerFilter { - /** - * Query account. - */ - public fun account(): String - - /** - * Find by listener's arn. - * - * Default: - does not find by listener arn - */ public fun listenerArn(): String? = unwrap(this).getListenerArn() - /** - * Filter listeners by listener port. - * - * Default: - does not filter by a listener port - */ public fun listenerPort(): Number? = unwrap(this).getListenerPort() - /** - * Filter by listener protocol. - * - * Default: - does not filter by listener protocol - */ public fun listenerProtocol(): LoadBalancerListenerProtocol? = unwrap(this).getListenerProtocol()?.let(LoadBalancerListenerProtocol::wrap) - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * A builder for [LoadBalancerListenerContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param listenerArn Find by listener's arn. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun listenerArn(listenerArn: String) - /** - * @param listenerPort Filter listeners by listener port. - */ public fun listenerPort(listenerPort: Number) - /** - * @param listenerProtocol Filter by listener protocol. - */ public fun listenerProtocol(listenerProtocol: LoadBalancerListenerProtocol) - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ public fun loadBalancerArn(loadBalancerArn: String) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(loadBalancerTags: List) - /** - * @param loadBalancerTags Match load balancer tags. - */ public fun loadBalancerTags(vararg loadBalancerTags: Tag) - /** - * @param loadBalancerType Filter load balancers by their type. - */ public fun loadBalancerType(loadBalancerType: LoadBalancerType) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) } @@ -138,71 +52,49 @@ public interface LoadBalancerListenerContextQuery : LoadBalancerFilter { software.amazon.awscdk.cloudassembly.schema.LoadBalancerListenerContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.LoadBalancerListenerContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param listenerArn Find by listener's arn. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun listenerArn(listenerArn: String) { cdkBuilder.listenerArn(listenerArn) } - /** - * @param listenerPort Filter listeners by listener port. - */ override fun listenerPort(listenerPort: Number) { cdkBuilder.listenerPort(listenerPort) } - /** - * @param listenerProtocol Filter by listener protocol. - */ override fun listenerProtocol(listenerProtocol: LoadBalancerListenerProtocol) { cdkBuilder.listenerProtocol(listenerProtocol.let(LoadBalancerListenerProtocol.Companion::unwrap)) } - /** - * @param loadBalancerArn Find by load balancer's ARN. - */ override fun loadBalancerArn(loadBalancerArn: String) { cdkBuilder.loadBalancerArn(loadBalancerArn) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(loadBalancerTags: List) { cdkBuilder.loadBalancerTags(loadBalancerTags.map(Tag.Companion::unwrap)) } - /** - * @param loadBalancerTags Match load balancer tags. - */ override fun loadBalancerTags(vararg loadBalancerTags: Tag): Unit = loadBalancerTags(loadBalancerTags.toList()) - /** - * @param loadBalancerType Filter load balancers by their type. - */ override fun loadBalancerType(loadBalancerType: LoadBalancerType) { cdkBuilder.loadBalancerType(loadBalancerType.let(LoadBalancerType.Companion::unwrap)) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } @@ -213,65 +105,32 @@ public interface LoadBalancerListenerContextQuery : LoadBalancerFilter { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.LoadBalancerListenerContextQuery, - ) : CdkObject(cdkObject), LoadBalancerListenerContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + LoadBalancerListenerContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * Find by listener's arn. - * - * Default: - does not find by listener arn - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun listenerArn(): String? = unwrap(this).getListenerArn() - /** - * Filter listeners by listener port. - * - * Default: - does not filter by a listener port - */ override fun listenerPort(): Number? = unwrap(this).getListenerPort() - /** - * Filter by listener protocol. - * - * Default: - does not filter by listener protocol - */ override fun listenerProtocol(): LoadBalancerListenerProtocol? = unwrap(this).getListenerProtocol()?.let(LoadBalancerListenerProtocol::wrap) - /** - * Find by load balancer's ARN. - * - * Default: - does not search by load balancer arn - */ override fun loadBalancerArn(): String? = unwrap(this).getLoadBalancerArn() - /** - * Match load balancer tags. - * - * Default: - does not match load balancers by tags - */ override fun loadBalancerTags(): List = unwrap(this).getLoadBalancerTags()?.map(Tag::wrap) ?: emptyList() - /** - * Filter load balancers by their type. - */ override fun loadBalancerType(): LoadBalancerType = unwrap(this).getLoadBalancerType().let(LoadBalancerType::wrap) - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadManifestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadManifestOptions.kt index c1a6ac117f..6b90535a26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadManifestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/LoadManifestOptions.kt @@ -8,79 +8,19 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean import kotlin.Unit -/** - * Options for the loadManifest operation. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * LoadManifestOptions loadManifestOptions = LoadManifestOptions.builder() - * .skipEnumCheck(false) - * .skipVersionCheck(false) - * .topoSort(false) - * .build(); - * ``` - */ public interface LoadManifestOptions { - /** - * Skip enum checks. - * - * This means you may read enum values you don't know about yet. Make sure to always - * check the values of enums you encounter in the manifest. - * - * Default: false - */ public fun skipEnumCheck(): Boolean? = unwrap(this).getSkipEnumCheck() - /** - * Skip the version check. - * - * This means you may read a newer cloud assembly than the CX API is designed - * to support, and your application may not be aware of all features that in use - * in the Cloud Assembly. - * - * Default: false - */ public fun skipVersionCheck(): Boolean? = unwrap(this).getSkipVersionCheck() - /** - * Topologically sort all artifacts. - * - * This parameter is only respected by the constructor of `CloudAssembly`. The - * property lives here for backwards compatibility reasons. - * - * Default: true - */ public fun topoSort(): Boolean? = unwrap(this).getTopoSort() - /** - * A builder for [LoadManifestOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param skipEnumCheck Skip enum checks. - * This means you may read enum values you don't know about yet. Make sure to always - * check the values of enums you encounter in the manifest. - */ public fun skipEnumCheck(skipEnumCheck: Boolean) - /** - * @param skipVersionCheck Skip the version check. - * This means you may read a newer cloud assembly than the CX API is designed - * to support, and your application may not be aware of all features that in use - * in the Cloud Assembly. - */ public fun skipVersionCheck(skipVersionCheck: Boolean) - /** - * @param topoSort Topologically sort all artifacts. - * This parameter is only respected by the constructor of `CloudAssembly`. The - * property lives here for backwards compatibility reasons. - */ public fun topoSort(topoSort: Boolean) } @@ -88,30 +28,14 @@ public interface LoadManifestOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.LoadManifestOptions.Builder = software.amazon.awscdk.cloudassembly.schema.LoadManifestOptions.builder() - /** - * @param skipEnumCheck Skip enum checks. - * This means you may read enum values you don't know about yet. Make sure to always - * check the values of enums you encounter in the manifest. - */ override fun skipEnumCheck(skipEnumCheck: Boolean) { cdkBuilder.skipEnumCheck(skipEnumCheck) } - /** - * @param skipVersionCheck Skip the version check. - * This means you may read a newer cloud assembly than the CX API is designed - * to support, and your application may not be aware of all features that in use - * in the Cloud Assembly. - */ override fun skipVersionCheck(skipVersionCheck: Boolean) { cdkBuilder.skipVersionCheck(skipVersionCheck) } - /** - * @param topoSort Topologically sort all artifacts. - * This parameter is only respected by the constructor of `CloudAssembly`. The - * property lives here for backwards compatibility reasons. - */ override fun topoSort(topoSort: Boolean) { cdkBuilder.topoSort(topoSort) } @@ -122,36 +46,12 @@ public interface LoadManifestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.LoadManifestOptions, - ) : CdkObject(cdkObject), LoadManifestOptions { - /** - * Skip enum checks. - * - * This means you may read enum values you don't know about yet. Make sure to always - * check the values of enums you encounter in the manifest. - * - * Default: false - */ + ) : CdkObject(cdkObject), + LoadManifestOptions { override fun skipEnumCheck(): Boolean? = unwrap(this).getSkipEnumCheck() - /** - * Skip the version check. - * - * This means you may read a newer cloud assembly than the CX API is designed - * to support, and your application may not be aware of all features that in use - * in the Cloud Assembly. - * - * Default: false - */ override fun skipVersionCheck(): Boolean? = unwrap(this).getSkipVersionCheck() - /** - * Topologically sort all artifacts. - * - * This parameter is only respected by the constructor of `CloudAssembly`. The - * property lives here for backwards compatibility reasons. - * - * Default: true - */ override fun topoSort(): Boolean? = unwrap(this).getTopoSort() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Manifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Manifest.kt index e4dd07c015..58d2debf6b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Manifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Manifest.kt @@ -3,17 +3,19 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Deprecated import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName -/** - * Protocol utility class. - */ public open class Manifest( cdkObject: software.amazon.awscdk.cloudassembly.schema.Manifest, ) : CdkObject(cdkObject) { public companion object { + @Deprecated(message = "deprecated in CDK") + public fun load(filePath: String): AssemblyManifest = + software.amazon.awscdk.cloudassembly.schema.Manifest.load(filePath).let(AssemblyManifest::wrap) + public fun loadAssemblyManifest(filePath: String): AssemblyManifest = software.amazon.awscdk.cloudassembly.schema.Manifest.loadAssemblyManifest(filePath).let(AssemblyManifest::wrap) @@ -34,6 +36,12 @@ public open class Manifest( public fun loadIntegManifest(filePath: String): IntegManifest = software.amazon.awscdk.cloudassembly.schema.Manifest.loadIntegManifest(filePath).let(IntegManifest::wrap) + @Deprecated(message = "deprecated in CDK") + public fun save(manifest: AssemblyManifest, filePath: String) { + software.amazon.awscdk.cloudassembly.schema.Manifest.save(manifest.let(AssemblyManifest.Companion::unwrap), + filePath) + } + public fun saveAssemblyManifest(manifest: AssemblyManifest, filePath: String) { software.amazon.awscdk.cloudassembly.schema.Manifest.saveAssemblyManifest(manifest.let(AssemblyManifest.Companion::unwrap), filePath) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MetadataEntry.kt index 81e87d3bc0..b8ef76d5e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MetadataEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MetadataEntry.kt @@ -11,100 +11,37 @@ import kotlin.Unit import kotlin.collections.List import kotlin.jvm.JvmName -/** - * A metadata entry in a cloud assembly artifact. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * MetadataEntry metadataEntry = MetadataEntry.builder() - * .type("type") - * // the properties below are optional - * .data("data") - * .trace(List.of("trace")) - * .build(); - * ``` - */ public interface MetadataEntry { - /** - * The data. - * - * Default: - no data. - */ public fun `data`(): Any? = unwrap(this).getData() - /** - * A stack trace for when the entry was created. - * - * Default: - no trace. - */ public fun trace(): List = unwrap(this).getTrace() ?: emptyList() - /** - * The type of the metadata entry. - */ public fun type(): String - /** - * A builder for [MetadataEntry] - */ @CdkDslMarker public interface Builder { - /** - * @param data The data. - */ public fun `data`(`data`: String) - /** - * @param data The data. - */ public fun `data`(`data`: FileAssetMetadataEntry) - /** - * @param data The data. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("86b8f208b857e88412d1359f38853c3ae5d661b06abdaacd0549a45609abddb0") public fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit) - /** - * @param data The data. - */ public fun `data`(`data`: ContainerImageAssetMetadataEntry) - /** - * @param data The data. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("79a698355e266cc87029a7d07643320124b56005af8389155d624f552e106c4f") public fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit) - /** - * @param data The data. - */ public fun `data`(`data`: List) - /** - * @param data The data. - */ public fun `data`(vararg `data`: Tag) - /** - * @param trace A stack trace for when the entry was created. - */ public fun trace(trace: List) - /** - * @param trace A stack trace for when the entry was created. - */ public fun trace(vararg trace: String) - /** - * @param type The type of the metadata entry. - */ public fun type(type: String) } @@ -112,70 +49,40 @@ public interface MetadataEntry { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.MetadataEntry.Builder = software.amazon.awscdk.cloudassembly.schema.MetadataEntry.builder() - /** - * @param data The data. - */ override fun `data`(`data`: String) { cdkBuilder.`data`(`data`) } - /** - * @param data The data. - */ override fun `data`(`data`: FileAssetMetadataEntry) { cdkBuilder.`data`(`data`.let(FileAssetMetadataEntry.Companion::unwrap)) } - /** - * @param data The data. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("86b8f208b857e88412d1359f38853c3ae5d661b06abdaacd0549a45609abddb0") override fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit): Unit = `data`(FileAssetMetadataEntry(`data`)) - /** - * @param data The data. - */ override fun `data`(`data`: ContainerImageAssetMetadataEntry) { cdkBuilder.`data`(`data`.let(ContainerImageAssetMetadataEntry.Companion::unwrap)) } - /** - * @param data The data. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("79a698355e266cc87029a7d07643320124b56005af8389155d624f552e106c4f") override fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit): Unit = `data`(ContainerImageAssetMetadataEntry(`data`)) - /** - * @param data The data. - */ override fun `data`(`data`: List) { cdkBuilder.`data`(`data`.map(Tag.Companion::unwrap)) } - /** - * @param data The data. - */ override fun `data`(vararg `data`: Tag): Unit = `data`(`data`.toList()) - /** - * @param trace A stack trace for when the entry was created. - */ override fun trace(trace: List) { cdkBuilder.trace(trace) } - /** - * @param trace A stack trace for when the entry was created. - */ override fun trace(vararg trace: String): Unit = trace(trace.toList()) - /** - * @param type The type of the metadata entry. - */ override fun type(type: String) { cdkBuilder.type(type) } @@ -186,24 +93,12 @@ public interface MetadataEntry { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.MetadataEntry, - ) : CdkObject(cdkObject), MetadataEntry { - /** - * The data. - * - * Default: - no data. - */ + ) : CdkObject(cdkObject), + MetadataEntry { override fun `data`(): Any? = unwrap(this).getData() - /** - * A stack trace for when the entry was created. - * - * Default: - no trace. - */ override fun trace(): List = unwrap(this).getTrace() ?: emptyList() - /** - * The type of the metadata entry. - */ override fun type(): String = unwrap(this).getType() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MissingContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MissingContext.kt index aa28127d77..102373a285 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MissingContext.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/MissingContext.kt @@ -10,191 +10,83 @@ import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName -/** - * Represents a missing piece of context. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * MissingContext missingContext = MissingContext.builder() - * .key("key") - * .props(AmiContextQuery.builder() - * .account("account") - * .filters(Map.of( - * "filtersKey", List.of("filters"))) - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .owners(List.of("owners")) - * .build()) - * .provider(ContextProvider.AMI_PROVIDER) - * .build(); - * ``` - */ public interface MissingContext { - /** - * The missing context key. - */ public fun key(): String - /** - * A set of provider-specific options. - */ public fun props(): Any - /** - * The provider from which we expect this context key to be obtained. - */ public fun provider(): ContextProvider - /** - * A builder for [MissingContext] - */ @CdkDslMarker public interface Builder { - /** - * @param key The missing context key. - */ public fun key(key: String) - /** - * @param props A set of provider-specific options. - */ public fun props(props: AmiContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e9f8b3d899c475c0bb392580f6291c1c066e10177afe420e8e948ae93a3c01e9") public fun props(props: AmiContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: AvailabilityZonesContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ba984ab3bd4b846764d704a615b057e505efc8f2dca2e73294e61b470371f143") public fun props(props: AvailabilityZonesContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: HostedZoneContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f35eb1641577c54fc75172874c966e346effe20c11655f5a9410cffe70e4d05b") public fun props(props: HostedZoneContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: SSMParameterContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fcee8db55454c5bc417f5e375ead71e3565eeff7df5fc5777bb105b88191a653") public fun props(props: SSMParameterContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: VpcContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b9f2f0e0346c9bc8fa511fb6963add00d9d76e0d11c679f2cb8ad618b4e36e16") public fun props(props: VpcContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: EndpointServiceAvailabilityZonesContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7471e9a800f8e2fae024f840cf075b65fa2284e34348669322dc276c855bc1b2") public fun props(props: EndpointServiceAvailabilityZonesContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: LoadBalancerContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a1b7536058557f29d064b4014be9b3f5ef337b1b5a7480b16fc3ac33572cc0ef") public fun props(props: LoadBalancerContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: LoadBalancerListenerContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fe110973725cb41b3d31910beb3fe1da88d59ce9b7f1dd89a297732491ad5896") public fun props(props: LoadBalancerListenerContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: SecurityGroupContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("11dc672e44129fba782aa2c20996cd62cd66c422a6537b9cde8431a95f8e5ffc") public fun props(props: SecurityGroupContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: KeyContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7831cee57bf9fe073313dae582685932a01a35846484abcaaace6b15502d4fc4") public fun props(props: KeyContextQuery.Builder.() -> Unit) - /** - * @param props A set of provider-specific options. - */ public fun props(props: PluginContextQuery) - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("86bc6fa08f8cd1bfbdb4df757ffba40c111145bb3895924bd52a58d7b1c1fb7c") public fun props(props: PluginContextQuery.Builder.() -> Unit) - /** - * @param provider The provider from which we expect this context key to be obtained. - */ public fun provider(provider: ContextProvider) } @@ -202,181 +94,109 @@ public interface MissingContext { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.MissingContext.Builder = software.amazon.awscdk.cloudassembly.schema.MissingContext.builder() - /** - * @param key The missing context key. - */ override fun key(key: String) { cdkBuilder.key(key) } - /** - * @param props A set of provider-specific options. - */ override fun props(props: AmiContextQuery) { cdkBuilder.props(props.let(AmiContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e9f8b3d899c475c0bb392580f6291c1c066e10177afe420e8e948ae93a3c01e9") override fun props(props: AmiContextQuery.Builder.() -> Unit): Unit = props(AmiContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: AvailabilityZonesContextQuery) { cdkBuilder.props(props.let(AvailabilityZonesContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ba984ab3bd4b846764d704a615b057e505efc8f2dca2e73294e61b470371f143") override fun props(props: AvailabilityZonesContextQuery.Builder.() -> Unit): Unit = props(AvailabilityZonesContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: HostedZoneContextQuery) { cdkBuilder.props(props.let(HostedZoneContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f35eb1641577c54fc75172874c966e346effe20c11655f5a9410cffe70e4d05b") override fun props(props: HostedZoneContextQuery.Builder.() -> Unit): Unit = props(HostedZoneContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: SSMParameterContextQuery) { cdkBuilder.props(props.let(SSMParameterContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fcee8db55454c5bc417f5e375ead71e3565eeff7df5fc5777bb105b88191a653") override fun props(props: SSMParameterContextQuery.Builder.() -> Unit): Unit = props(SSMParameterContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: VpcContextQuery) { cdkBuilder.props(props.let(VpcContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b9f2f0e0346c9bc8fa511fb6963add00d9d76e0d11c679f2cb8ad618b4e36e16") override fun props(props: VpcContextQuery.Builder.() -> Unit): Unit = props(VpcContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: EndpointServiceAvailabilityZonesContextQuery) { cdkBuilder.props(props.let(EndpointServiceAvailabilityZonesContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7471e9a800f8e2fae024f840cf075b65fa2284e34348669322dc276c855bc1b2") override fun props(props: EndpointServiceAvailabilityZonesContextQuery.Builder.() -> Unit): Unit = props(EndpointServiceAvailabilityZonesContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: LoadBalancerContextQuery) { cdkBuilder.props(props.let(LoadBalancerContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a1b7536058557f29d064b4014be9b3f5ef337b1b5a7480b16fc3ac33572cc0ef") override fun props(props: LoadBalancerContextQuery.Builder.() -> Unit): Unit = props(LoadBalancerContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: LoadBalancerListenerContextQuery) { cdkBuilder.props(props.let(LoadBalancerListenerContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fe110973725cb41b3d31910beb3fe1da88d59ce9b7f1dd89a297732491ad5896") override fun props(props: LoadBalancerListenerContextQuery.Builder.() -> Unit): Unit = props(LoadBalancerListenerContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: SecurityGroupContextQuery) { cdkBuilder.props(props.let(SecurityGroupContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("11dc672e44129fba782aa2c20996cd62cd66c422a6537b9cde8431a95f8e5ffc") override fun props(props: SecurityGroupContextQuery.Builder.() -> Unit): Unit = props(SecurityGroupContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: KeyContextQuery) { cdkBuilder.props(props.let(KeyContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7831cee57bf9fe073313dae582685932a01a35846484abcaaace6b15502d4fc4") override fun props(props: KeyContextQuery.Builder.() -> Unit): Unit = props(KeyContextQuery(props)) - /** - * @param props A set of provider-specific options. - */ override fun props(props: PluginContextQuery) { cdkBuilder.props(props.let(PluginContextQuery.Companion::unwrap)) } - /** - * @param props A set of provider-specific options. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("86bc6fa08f8cd1bfbdb4df757ffba40c111145bb3895924bd52a58d7b1c1fb7c") override fun props(props: PluginContextQuery.Builder.() -> Unit): Unit = props(PluginContextQuery(props)) - /** - * @param provider The provider from which we expect this context key to be obtained. - */ override fun provider(provider: ContextProvider) { cdkBuilder.provider(provider.let(ContextProvider.Companion::unwrap)) } @@ -387,20 +207,12 @@ public interface MissingContext { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.MissingContext, - ) : CdkObject(cdkObject), MissingContext { - /** - * The missing context key. - */ + ) : CdkObject(cdkObject), + MissingContext { override fun key(): String = unwrap(this).getKey() - /** - * A set of provider-specific options. - */ override fun props(): Any = unwrap(this).getProps() - /** - * The provider from which we expect this context key to be obtained. - */ override fun provider(): ContextProvider = unwrap(this).getProvider().let(ContextProvider::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/NestedCloudAssemblyProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/NestedCloudAssemblyProperties.kt index 870b97cd38..dec2bc7c6b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/NestedCloudAssemblyProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/NestedCloudAssemblyProperties.kt @@ -8,49 +8,15 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit -/** - * Artifact properties for nested cloud assemblies. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * NestedCloudAssemblyProperties nestedCloudAssemblyProperties = - * NestedCloudAssemblyProperties.builder() - * .directoryName("directoryName") - * // the properties below are optional - * .displayName("displayName") - * .build(); - * ``` - */ public interface NestedCloudAssemblyProperties { - /** - * Relative path to the nested cloud assembly. - */ public fun directoryName(): String - /** - * Display name for the cloud assembly. - * - * Default: - The artifact ID - */ public fun displayName(): String? = unwrap(this).getDisplayName() - /** - * A builder for [NestedCloudAssemblyProperties] - */ @CdkDslMarker public interface Builder { - /** - * @param directoryName Relative path to the nested cloud assembly. - */ public fun directoryName(directoryName: String) - /** - * @param displayName Display name for the cloud assembly. - */ public fun displayName(displayName: String) } @@ -59,16 +25,10 @@ public interface NestedCloudAssemblyProperties { software.amazon.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties.Builder = software.amazon.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties.builder() - /** - * @param directoryName Relative path to the nested cloud assembly. - */ override fun directoryName(directoryName: String) { cdkBuilder.directoryName(directoryName) } - /** - * @param displayName Display name for the cloud assembly. - */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) } @@ -79,17 +39,10 @@ public interface NestedCloudAssemblyProperties { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties, - ) : CdkObject(cdkObject), NestedCloudAssemblyProperties { - /** - * Relative path to the nested cloud assembly. - */ + ) : CdkObject(cdkObject), + NestedCloudAssemblyProperties { override fun directoryName(): String = unwrap(this).getDirectoryName() - /** - * Display name for the cloud assembly. - * - * Default: - The artifact ID - */ override fun displayName(): String? = unwrap(this).getDisplayName() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/PluginContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/PluginContextQuery.kt index d87385a1cd..1bee404a41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/PluginContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/PluginContextQuery.kt @@ -8,37 +8,11 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit -/** - * Query input for plugins. - * - * This alternate branch is necessary because it needs to be able to escape all type checking - * we do on on the cloud assembly -- we cannot know the properties that will be used a priori. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * PluginContextQuery pluginContextQuery = PluginContextQuery.builder() - * .pluginName("pluginName") - * .build(); - * ``` - */ public interface PluginContextQuery { - /** - * The name of the plugin. - */ public fun pluginName(): String - /** - * A builder for [PluginContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param pluginName The name of the plugin. - */ public fun pluginName(pluginName: String) } @@ -46,9 +20,6 @@ public interface PluginContextQuery { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.PluginContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.PluginContextQuery.builder() - /** - * @param pluginName The name of the plugin. - */ override fun pluginName(pluginName: String) { cdkBuilder.pluginName(pluginName) } @@ -59,10 +30,8 @@ public interface PluginContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.PluginContextQuery, - ) : CdkObject(cdkObject), PluginContextQuery { - /** - * The name of the plugin. - */ + ) : CdkObject(cdkObject), + PluginContextQuery { override fun pluginName(): String = unwrap(this).getPluginName() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/RuntimeInfo.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/RuntimeInfo.kt index 14732008fb..99db3b0c32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/RuntimeInfo.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/RuntimeInfo.kt @@ -9,36 +9,11 @@ import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Information about the application's runtime components. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * RuntimeInfo runtimeInfo = RuntimeInfo.builder() - * .libraries(Map.of( - * "librariesKey", "libraries")) - * .build(); - * ``` - */ public interface RuntimeInfo { - /** - * The list of libraries loaded in the application, associated with their versions. - */ public fun libraries(): Map - /** - * A builder for [RuntimeInfo] - */ @CdkDslMarker public interface Builder { - /** - * @param libraries The list of libraries loaded in the application, associated with their - * versions. - */ public fun libraries(libraries: Map) } @@ -46,10 +21,6 @@ public interface RuntimeInfo { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.RuntimeInfo.Builder = software.amazon.awscdk.cloudassembly.schema.RuntimeInfo.builder() - /** - * @param libraries The list of libraries loaded in the application, associated with their - * versions. - */ override fun libraries(libraries: Map) { cdkBuilder.libraries(libraries) } @@ -59,10 +30,8 @@ public interface RuntimeInfo { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.RuntimeInfo, - ) : CdkObject(cdkObject), RuntimeInfo { - /** - * The list of libraries loaded in the application, associated with their versions. - */ + ) : CdkObject(cdkObject), + RuntimeInfo { override fun libraries(): Map = unwrap(this).getLibraries() ?: emptyMap() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SSMParameterContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SSMParameterContextQuery.kt index 38bf1c739f..d24707294d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SSMParameterContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SSMParameterContextQuery.kt @@ -5,73 +5,26 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query to SSM Parameter Context Provider. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * SSMParameterContextQuery sSMParameterContextQuery = SSMParameterContextQuery.builder() - * .account("account") - * .parameterName("parameterName") - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .build(); - * ``` - */ -public interface SSMParameterContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Parameter name to query. - */ +public interface SSMParameterContextQuery : ContextLookupRoleOptions { public fun parameterName(): String - /** - * Query region. - */ - public fun region(): String - - /** - * A builder for [SSMParameterContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param parameterName Parameter name to query. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun parameterName(parameterName: String) - /** - * @param region Query region. - */ public fun region(region: String) } @@ -80,30 +33,26 @@ public interface SSMParameterContextQuery { software.amazon.awscdk.cloudassembly.schema.SSMParameterContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.SSMParameterContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param parameterName Parameter name to query. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun parameterName(parameterName: String) { cdkBuilder.parameterName(parameterName) } - /** - * @param region Query region. - */ override fun region(region: String) { cdkBuilder.region(region) } @@ -114,27 +63,19 @@ public interface SSMParameterContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.SSMParameterContextQuery, - ) : CdkObject(cdkObject), SSMParameterContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + SSMParameterContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Parameter name to query. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun parameterName(): String = unwrap(this).getParameterName() - /** - * Query region. - */ override fun region(): String = unwrap(this).getRegion() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SecurityGroupContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SecurityGroupContextQuery.kt index c46ec80d06..a1126b6e4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SecurityGroupContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/SecurityGroupContextQuery.kt @@ -5,101 +5,34 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.Map -/** - * Query input for looking up a security group. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * SecurityGroupContextQuery securityGroupContextQuery = SecurityGroupContextQuery.builder() - * .account("account") - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .securityGroupId("securityGroupId") - * .securityGroupName("securityGroupName") - * .vpcId("vpcId") - * .build(); - * ``` - */ -public interface SecurityGroupContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * Security group id. - * - * Default: - None - */ +public interface SecurityGroupContextQuery : ContextLookupRoleOptions { public fun securityGroupId(): String? = unwrap(this).getSecurityGroupId() - /** - * Security group name. - * - * Default: - None - */ public fun securityGroupName(): String? = unwrap(this).getSecurityGroupName() - /** - * VPC ID. - * - * Default: - None - */ public fun vpcId(): String? = unwrap(this).getVpcId() - /** - * A builder for [SecurityGroupContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) - /** - * @param securityGroupId Security group id. - */ public fun securityGroupId(securityGroupId: String) - /** - * @param securityGroupName Security group name. - */ public fun securityGroupName(securityGroupName: String) - /** - * @param vpcId VPC ID. - */ public fun vpcId(vpcId: String) } @@ -108,44 +41,34 @@ public interface SecurityGroupContextQuery { software.amazon.awscdk.cloudassembly.schema.SecurityGroupContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.SecurityGroupContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } - /** - * @param securityGroupId Security group id. - */ override fun securityGroupId(securityGroupId: String) { cdkBuilder.securityGroupId(securityGroupId) } - /** - * @param securityGroupName Security group name. - */ override fun securityGroupName(securityGroupName: String) { cdkBuilder.securityGroupName(securityGroupName) } - /** - * @param vpcId VPC ID. - */ override fun vpcId(vpcId: String) { cdkBuilder.vpcId(vpcId) } @@ -156,43 +79,23 @@ public interface SecurityGroupContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.SecurityGroupContextQuery, - ) : CdkObject(cdkObject), SecurityGroupContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + SecurityGroupContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() - /** - * Security group id. - * - * Default: - None - */ override fun securityGroupId(): String? = unwrap(this).getSecurityGroupId() - /** - * Security group name. - * - * Default: - None - */ override fun securityGroupName(): String? = unwrap(this).getSecurityGroupName() - /** - * VPC ID. - * - * Default: - None - */ override fun vpcId(): String? = unwrap(this).getVpcId() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Tag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Tag.kt index f6d0506d05..5b92ab007e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Tag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/Tag.kt @@ -8,59 +8,15 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit -/** - * Metadata Entry spec for stack tag. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * Tag tag = Tag.builder() - * .key("key") - * .value("value") - * .build(); - * ``` - */ public interface Tag { - /** - * Tag key. - * - * (In the actual file on disk this will be cased as "Key", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ public fun key(): String - /** - * Tag value. - * - * (In the actual file on disk this will be cased as "Value", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ public fun `value`(): String - /** - * A builder for [Tag] - */ @CdkDslMarker public interface Builder { - /** - * @param key Tag key. - * (In the actual file on disk this will be cased as "Key", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ public fun key(key: String) - /** - * @param value Tag value. - * (In the actual file on disk this will be cased as "Value", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ public fun `value`(`value`: String) } @@ -68,22 +24,10 @@ public interface Tag { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.Tag.Builder = software.amazon.awscdk.cloudassembly.schema.Tag.builder() - /** - * @param key Tag key. - * (In the actual file on disk this will be cased as "Key", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ override fun key(key: String) { cdkBuilder.key(key) } - /** - * @param value Tag value. - * (In the actual file on disk this will be cased as "Value", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) } @@ -93,23 +37,10 @@ public interface Tag { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.Tag, - ) : CdkObject(cdkObject), Tag { - /** - * Tag key. - * - * (In the actual file on disk this will be cased as "Key", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ + ) : CdkObject(cdkObject), + Tag { override fun key(): String = unwrap(this).getKey() - /** - * Tag value. - * - * (In the actual file on disk this will be cased as "Value", and the structure is - * patched to match this structure upon loading: - * https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137) - */ override fun `value`(): String = unwrap(this).getValue() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestCase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestCase.kt index 461a1a7f85..51de5d5866 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestCase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestCase.kt @@ -11,241 +11,45 @@ import kotlin.Unit import kotlin.collections.List import kotlin.jvm.JvmName -/** - * Represents an integration test case. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * TestCase testCase = TestCase.builder() - * .stacks(List.of("stacks")) - * // the properties below are optional - * .allowDestroy(List.of("allowDestroy")) - * .assertionStack("assertionStack") - * .assertionStackName("assertionStackName") - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .changeSetName("changeSetName") - * .ci(false) - * .color(false) - * .concurrency(123) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .execute(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .notificationArns(List.of("notificationArns")) - * .output("output") - * .outputsFile("outputsFile") - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .requireApproval(RequireApproval.NEVER) - * .reuseAssets(List.of("reuseAssets")) - * .roleArn("roleArn") - * .rollback(false) - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .toolkitStackName("toolkitStackName") - * .trace(false) - * .usePreviousParameters(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .color(false) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .output("output") - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .roleArn("roleArn") - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .trace(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .build()) - * .diffAssets(false) - * .hooks(Hooks.builder() - * .postDeploy(List.of("postDeploy")) - * .postDestroy(List.of("postDestroy")) - * .preDeploy(List.of("preDeploy")) - * .preDestroy(List.of("preDestroy")) - * .build()) - * .regions(List.of("regions")) - * .stackUpdateWorkflow(false) - * .build(); - * ``` - */ public interface TestCase : TestOptions { - /** - * The node id of the stack that contains assertions. - * - * This is the value that can be used to deploy the stack with the CDK CLI - * - * Default: - no assertion stack - */ public fun assertionStack(): String? = unwrap(this).getAssertionStack() - /** - * The name of the stack that contains assertions. - * - * Default: - no assertion stack - */ public fun assertionStackName(): String? = unwrap(this).getAssertionStackName() - /** - * Stacks that should be tested as part of this test case The stackNames will be passed as args to - * the cdk commands so dependent stacks will be automatically deployed unless `exclusively` is - * passed. - */ public fun stacks(): List - /** - * A builder for [TestCase] - */ @CdkDslMarker public interface Builder { - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ public fun allowDestroy(allowDestroy: List) - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ public fun allowDestroy(vararg allowDestroy: String) - /** - * @param assertionStack The node id of the stack that contains assertions. - * This is the value that can be used to deploy the stack with the CDK CLI - */ public fun assertionStack(assertionStack: String) - /** - * @param assertionStackName The name of the stack that contains assertions. - */ public fun assertionStackName(assertionStackName: String) - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ public fun cdkCommandOptions(cdkCommandOptions: CdkCommands) - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("78c54b6490decdbe945db9fe2af6dceb91d6a44102b44cc0417752d78fac1daa") public fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit) - /** - * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can - * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes - * *should* be included. - * For example - * any tests involving custom resources or bundling - */ public fun diffAssets(diffAssets: Boolean) - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ public fun hooks(hooks: Hooks) - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b09638aa4be6b2b37d5e6eaca666f23376062bcc34cc8068feae02b6887c984a") public fun hooks(hooks: Hooks.Builder.() -> Unit) - /** - * @param regions Limit deployment to these regions. - */ public fun regions(regions: List) - /** - * @param regions Limit deployment to these regions. - */ public fun regions(vararg regions: String) - /** - * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to - * false to test scenarios that are not possible to test as part of the update workflow. - */ public fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) - /** - * @param stacks Stacks that should be tested as part of this test case The stackNames will be - * passed as args to the cdk commands so dependent stacks will be automatically deployed unless - * `exclusively` is passed. - */ public fun stacks(stacks: List) - /** - * @param stacks Stacks that should be tested as part of this test case The stackNames will be - * passed as args to the cdk commands so dependent stacks will be automatically deployed unless - * `exclusively` is passed. - */ public fun stacks(vararg stacks: String) } @@ -253,124 +57,56 @@ public interface TestCase : TestOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.TestCase.Builder = software.amazon.awscdk.cloudassembly.schema.TestCase.builder() - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ override fun allowDestroy(allowDestroy: List) { cdkBuilder.allowDestroy(allowDestroy) } - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ override fun allowDestroy(vararg allowDestroy: String): Unit = allowDestroy(allowDestroy.toList()) - /** - * @param assertionStack The node id of the stack that contains assertions. - * This is the value that can be used to deploy the stack with the CDK CLI - */ override fun assertionStack(assertionStack: String) { cdkBuilder.assertionStack(assertionStack) } - /** - * @param assertionStackName The name of the stack that contains assertions. - */ override fun assertionStackName(assertionStackName: String) { cdkBuilder.assertionStackName(assertionStackName) } - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ override fun cdkCommandOptions(cdkCommandOptions: CdkCommands) { cdkBuilder.cdkCommandOptions(cdkCommandOptions.let(CdkCommands.Companion::unwrap)) } - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("78c54b6490decdbe945db9fe2af6dceb91d6a44102b44cc0417752d78fac1daa") override fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit): Unit = cdkCommandOptions(CdkCommands(cdkCommandOptions)) - /** - * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can - * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes - * *should* be included. - * For example - * any tests involving custom resources or bundling - */ override fun diffAssets(diffAssets: Boolean) { cdkBuilder.diffAssets(diffAssets) } - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ override fun hooks(hooks: Hooks) { cdkBuilder.hooks(hooks.let(Hooks.Companion::unwrap)) } - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b09638aa4be6b2b37d5e6eaca666f23376062bcc34cc8068feae02b6887c984a") override fun hooks(hooks: Hooks.Builder.() -> Unit): Unit = hooks(Hooks(hooks)) - /** - * @param regions Limit deployment to these regions. - */ override fun regions(regions: List) { cdkBuilder.regions(regions) } - /** - * @param regions Limit deployment to these regions. - */ override fun regions(vararg regions: String): Unit = regions(regions.toList()) - /** - * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to - * false to test scenarios that are not possible to test as part of the update workflow. - */ override fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) { cdkBuilder.stackUpdateWorkflow(stackUpdateWorkflow) } - /** - * @param stacks Stacks that should be tested as part of this test case The stackNames will be - * passed as args to the cdk commands so dependent stacks will be automatically deployed unless - * `exclusively` is passed. - */ override fun stacks(stacks: List) { cdkBuilder.stacks(stacks) } - /** - * @param stacks Stacks that should be tested as part of this test case The stackNames will be - * passed as args to the cdk commands so dependent stacks will be automatically deployed unless - * `exclusively` is passed. - */ override fun stacks(vararg stacks: String): Unit = stacks(stacks.toList()) public fun build(): software.amazon.awscdk.cloudassembly.schema.TestCase = cdkBuilder.build() @@ -378,86 +114,25 @@ public interface TestCase : TestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.TestCase, - ) : CdkObject(cdkObject), TestCase { - /** - * List of CloudFormation resource types in this stack that can be destroyed as part of an - * update without failing the test. - * - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - * - * Default: - do not allow destruction of any resources on update - */ + ) : CdkObject(cdkObject), + TestCase { override fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() - /** - * The node id of the stack that contains assertions. - * - * This is the value that can be used to deploy the stack with the CDK CLI - * - * Default: - no assertion stack - */ override fun assertionStack(): String? = unwrap(this).getAssertionStack() - /** - * The name of the stack that contains assertions. - * - * Default: - no assertion stack - */ override fun assertionStackName(): String? = unwrap(this).getAssertionStackName() - /** - * Additional options to use for each CDK command. - * - * Default: - runner default options - */ override fun cdkCommandOptions(): CdkCommands? = unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) - /** - * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of - * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. - * - * For example - * any tests involving custom resources or bundling - * - * Default: false - */ override fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() - /** - * Additional commands to run at predefined points in the test workflow. - * - * e.g. { postDeploy: ['yarn', 'test'] } - * - * Default: - no hooks - */ override fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) - /** - * Limit deployment to these regions. - * - * Default: - can run in any region - */ override fun regions(): List = unwrap(this).getRegions() ?: emptyList() - /** - * Run update workflow on this test case This should only be set to false to test scenarios that - * are not possible to test as part of the update workflow. - * - * Default: true - */ override fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() - /** - * Stacks that should be tested as part of this test case The stackNames will be passed as args - * to the cdk commands so dependent stacks will be automatically deployed unless `exclusively` is - * passed. - */ override fun stacks(): List = unwrap(this).getStacks() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestOptions.kt index f6e6c54a25..039543775f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TestOptions.kt @@ -11,247 +11,44 @@ import kotlin.Unit import kotlin.collections.List import kotlin.jvm.JvmName -/** - * The set of options to control the workflow of the test runner. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * TestOptions testOptions = TestOptions.builder() - * .allowDestroy(List.of("allowDestroy")) - * .cdkCommandOptions(CdkCommands.builder() - * .deploy(DeployCommand.builder() - * .args(DeployOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .changeSetName("changeSetName") - * .ci(false) - * .color(false) - * .concurrency(123) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .execute(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .notificationArns(List.of("notificationArns")) - * .output("output") - * .outputsFile("outputsFile") - * .parameters(Map.of( - * "parametersKey", "parameters")) - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .requireApproval(RequireApproval.NEVER) - * .reuseAssets(List.of("reuseAssets")) - * .roleArn("roleArn") - * .rollback(false) - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .toolkitStackName("toolkitStackName") - * .trace(false) - * .usePreviousParameters(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .destroy(DestroyCommand.builder() - * .args(DestroyOptions.builder() - * .all(false) - * .app("app") - * .assetMetadata(false) - * .caBundlePath("caBundlePath") - * .color(false) - * .context(Map.of( - * "contextKey", "context")) - * .debug(false) - * .ec2Creds(false) - * .exclusively(false) - * .force(false) - * .ignoreErrors(false) - * .json(false) - * .lookups(false) - * .notices(false) - * .output("output") - * .pathMetadata(false) - * .profile("profile") - * .proxy("proxy") - * .roleArn("roleArn") - * .stacks(List.of("stacks")) - * .staging(false) - * .strict(false) - * .trace(false) - * .verbose(false) - * .versionReporting(false) - * .build()) - * .enabled(false) - * .expectedMessage("expectedMessage") - * .expectError(false) - * .build()) - * .build()) - * .diffAssets(false) - * .hooks(Hooks.builder() - * .postDeploy(List.of("postDeploy")) - * .postDestroy(List.of("postDestroy")) - * .preDeploy(List.of("preDeploy")) - * .preDestroy(List.of("preDestroy")) - * .build()) - * .regions(List.of("regions")) - * .stackUpdateWorkflow(false) - * .build(); - * ``` - */ public interface TestOptions { - /** - * List of CloudFormation resource types in this stack that can be destroyed as part of an update - * without failing the test. - * - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - * - * Default: - do not allow destruction of any resources on update - */ public fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() - /** - * Additional options to use for each CDK command. - * - * Default: - runner default options - */ public fun cdkCommandOptions(): CdkCommands? = unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) - /** - * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of - * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. - * - * For example - * any tests involving custom resources or bundling - * - * Default: false - */ public fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() - /** - * Additional commands to run at predefined points in the test workflow. - * - * e.g. { postDeploy: ['yarn', 'test'] } - * - * Default: - no hooks - */ public fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) - /** - * Limit deployment to these regions. - * - * Default: - can run in any region - */ public fun regions(): List = unwrap(this).getRegions() ?: emptyList() - /** - * Run update workflow on this test case This should only be set to false to test scenarios that - * are not possible to test as part of the update workflow. - * - * Default: true - */ public fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() - /** - * A builder for [TestOptions] - */ @CdkDslMarker public interface Builder { - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ public fun allowDestroy(allowDestroy: List) - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ public fun allowDestroy(vararg allowDestroy: String) - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ public fun cdkCommandOptions(cdkCommandOptions: CdkCommands) - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("55d79223df1e5416fab541b8be9b62f1aec79e85f12e56ec41cbd6c1628828f7") public fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit) - /** - * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can - * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes - * *should* be included. - * For example - * any tests involving custom resources or bundling - */ public fun diffAssets(diffAssets: Boolean) - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ public fun hooks(hooks: Hooks) - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c78c923bad27cd5e67dcb05c13043f91e75bc296b487f1688583d5fb620eeaa") public fun hooks(hooks: Hooks.Builder.() -> Unit) - /** - * @param regions Limit deployment to these regions. - */ public fun regions(regions: List) - /** - * @param regions Limit deployment to these regions. - */ public fun regions(vararg regions: String) - /** - * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to - * false to test scenarios that are not possible to test as part of the update workflow. - */ public fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) } @@ -259,91 +56,40 @@ public interface TestOptions { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.TestOptions.Builder = software.amazon.awscdk.cloudassembly.schema.TestOptions.builder() - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ override fun allowDestroy(allowDestroy: List) { cdkBuilder.allowDestroy(allowDestroy) } - /** - * @param allowDestroy List of CloudFormation resource types in this stack that can be destroyed - * as part of an update without failing the test. - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - */ override fun allowDestroy(vararg allowDestroy: String): Unit = allowDestroy(allowDestroy.toList()) - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ override fun cdkCommandOptions(cdkCommandOptions: CdkCommands) { cdkBuilder.cdkCommandOptions(cdkCommandOptions.let(CdkCommands.Companion::unwrap)) } - /** - * @param cdkCommandOptions Additional options to use for each CDK command. - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("55d79223df1e5416fab541b8be9b62f1aec79e85f12e56ec41cbd6c1628828f7") override fun cdkCommandOptions(cdkCommandOptions: CdkCommands.Builder.() -> Unit): Unit = cdkCommandOptions(CdkCommands(cdkCommandOptions)) - /** - * @param diffAssets Whether or not to include asset hashes in the diff Asset hashes can - * introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes - * *should* be included. - * For example - * any tests involving custom resources or bundling - */ override fun diffAssets(diffAssets: Boolean) { cdkBuilder.diffAssets(diffAssets) } - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ override fun hooks(hooks: Hooks) { cdkBuilder.hooks(hooks.let(Hooks.Companion::unwrap)) } - /** - * @param hooks Additional commands to run at predefined points in the test workflow. - * e.g. { postDeploy: ['yarn', 'test'] } - */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c78c923bad27cd5e67dcb05c13043f91e75bc296b487f1688583d5fb620eeaa") override fun hooks(hooks: Hooks.Builder.() -> Unit): Unit = hooks(Hooks(hooks)) - /** - * @param regions Limit deployment to these regions. - */ override fun regions(regions: List) { cdkBuilder.regions(regions) } - /** - * @param regions Limit deployment to these regions. - */ override fun regions(vararg regions: String): Unit = regions(regions.toList()) - /** - * @param stackUpdateWorkflow Run update workflow on this test case This should only be set to - * false to test scenarios that are not possible to test as part of the update workflow. - */ override fun stackUpdateWorkflow(stackUpdateWorkflow: Boolean) { cdkBuilder.stackUpdateWorkflow(stackUpdateWorkflow) } @@ -353,63 +99,19 @@ public interface TestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.TestOptions, - ) : CdkObject(cdkObject), TestOptions { - /** - * List of CloudFormation resource types in this stack that can be destroyed as part of an - * update without failing the test. - * - * This list should only include resources that for this specific - * integration test we are sure will not cause errors or an outage if - * destroyed. For example, maybe we know that a new resource will be created - * first before the old resource is destroyed which prevents any outage. - * - * e.g. ['AWS::IAM::Role'] - * - * Default: - do not allow destruction of any resources on update - */ + ) : CdkObject(cdkObject), + TestOptions { override fun allowDestroy(): List = unwrap(this).getAllowDestroy() ?: emptyList() - /** - * Additional options to use for each CDK command. - * - * Default: - runner default options - */ override fun cdkCommandOptions(): CdkCommands? = unwrap(this).getCdkCommandOptions()?.let(CdkCommands::wrap) - /** - * Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of - * unneccessary noise into tests, but there are some cases where asset hashes *should* be included. - * - * For example - * any tests involving custom resources or bundling - * - * Default: false - */ override fun diffAssets(): Boolean? = unwrap(this).getDiffAssets() - /** - * Additional commands to run at predefined points in the test workflow. - * - * e.g. { postDeploy: ['yarn', 'test'] } - * - * Default: - no hooks - */ override fun hooks(): Hooks? = unwrap(this).getHooks()?.let(Hooks::wrap) - /** - * Limit deployment to these regions. - * - * Default: - can run in any region - */ override fun regions(): List = unwrap(this).getRegions() ?: emptyList() - /** - * Run update workflow on this test case This should only be set to false to test scenarios that - * are not possible to test as part of the update workflow. - * - * Default: true - */ override fun stackUpdateWorkflow(): Boolean? = unwrap(this).getStackUpdateWorkflow() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TreeArtifactProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TreeArtifactProperties.kt index 1b6ff3a07d..c0c6e5430f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TreeArtifactProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/TreeArtifactProperties.kt @@ -8,34 +8,11 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit -/** - * Artifact properties for the Construct Tree Artifact. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * TreeArtifactProperties treeArtifactProperties = TreeArtifactProperties.builder() - * .file("file") - * .build(); - * ``` - */ public interface TreeArtifactProperties { - /** - * Filename of the tree artifact. - */ public fun `file`(): String - /** - * A builder for [TreeArtifactProperties] - */ @CdkDslMarker public interface Builder { - /** - * @param file Filename of the tree artifact. - */ public fun `file`(`file`: String) } @@ -44,9 +21,6 @@ public interface TreeArtifactProperties { software.amazon.awscdk.cloudassembly.schema.TreeArtifactProperties.Builder = software.amazon.awscdk.cloudassembly.schema.TreeArtifactProperties.builder() - /** - * @param file Filename of the tree artifact. - */ override fun `file`(`file`: String) { cdkBuilder.`file`(`file`) } @@ -57,10 +31,8 @@ public interface TreeArtifactProperties { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.TreeArtifactProperties, - ) : CdkObject(cdkObject), TreeArtifactProperties { - /** - * Filename of the tree artifact. - */ + ) : CdkObject(cdkObject), + TreeArtifactProperties { override fun `file`(): String = unwrap(this).getFile() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/VpcContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/VpcContextQuery.kt index 8d9375fb7a..9afadc8172 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/VpcContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/VpcContextQuery.kt @@ -5,138 +5,39 @@ package io.cloudshiftdev.awscdk.cloudassembly.schema import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.Map -/** - * Query input for looking up a VPC. - * - * Example: - * - * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; - * VpcContextQuery vpcContextQuery = VpcContextQuery.builder() - * .account("account") - * .filter(Map.of( - * "filterKey", "filter")) - * .region("region") - * // the properties below are optional - * .lookupRoleArn("lookupRoleArn") - * .returnAsymmetricSubnets(false) - * .returnVpnGateways(false) - * .subnetGroupNameTag("subnetGroupNameTag") - * .build(); - * ``` - */ -public interface VpcContextQuery { - /** - * Query account. - */ - public fun account(): String - - /** - * Filters to apply to the VPC. - * - * Filter parameters are the same as passed to DescribeVpcs. - * - * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) - */ +public interface VpcContextQuery : ContextLookupRoleOptions { public fun filter(): Map - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ - public fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - - /** - * Query region. - */ - public fun region(): String - - /** - * Whether to populate the subnetGroups field of the `VpcContextResponse`, which contains - * potentially asymmetric subnet groups. - * - * Default: false - */ public fun returnAsymmetricSubnets(): Boolean? = unwrap(this).getReturnAsymmetricSubnets() - /** - * Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`, which contains the - * VPN Gateway ID, if one exists. - * - * You can explicitly - * disable this in order to avoid the lookup if you know the VPC does not have - * a VPN Gatway attached. - * - * Default: true - */ public fun returnVpnGateways(): Boolean? = unwrap(this).getReturnVpnGateways() - /** - * Optional tag for subnet group name. - * - * If not provided, we'll look at the aws-cdk:subnet-name tag. - * If the subnet does not have the specified tag, - * we'll use its type as the name. - * - * Default: 'aws-cdk:subnet-name' - */ public fun subnetGroupNameTag(): String? = unwrap(this).getSubnetGroupNameTag() - /** - * A builder for [VpcContextQuery] - */ @CdkDslMarker public interface Builder { - /** - * @param account Query account. - */ public fun account(account: String) - /** - * @param filter Filters to apply to the VPC. - * Filter parameters are the same as passed to DescribeVpcs. - */ + public fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) + public fun filter(filter: Map) - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ public fun lookupRoleArn(lookupRoleArn: String) - /** - * @param region Query region. - */ + public fun lookupRoleExternalId(lookupRoleExternalId: String) + public fun region(region: String) - /** - * @param returnAsymmetricSubnets Whether to populate the subnetGroups field of the - * `VpcContextResponse`, which contains potentially asymmetric subnet groups. - */ public fun returnAsymmetricSubnets(returnAsymmetricSubnets: Boolean) - /** - * @param returnVpnGateways Whether to populate the `vpnGatewayId` field of the - * `VpcContextResponse`, which contains the VPN Gateway ID, if one exists. - * You can explicitly - * disable this in order to avoid the lookup if you know the VPC does not have - * a VPN Gatway attached. - */ public fun returnVpnGateways(returnVpnGateways: Boolean) - /** - * @param subnetGroupNameTag Optional tag for subnet group name. - * If not provided, we'll look at the aws-cdk:subnet-name tag. - * If the subnet does not have the specified tag, - * we'll use its type as the name. - */ public fun subnetGroupNameTag(subnetGroupNameTag: String) } @@ -144,60 +45,38 @@ public interface VpcContextQuery { private val cdkBuilder: software.amazon.awscdk.cloudassembly.schema.VpcContextQuery.Builder = software.amazon.awscdk.cloudassembly.schema.VpcContextQuery.builder() - /** - * @param account Query account. - */ override fun account(account: String) { cdkBuilder.account(account) } - /** - * @param filter Filters to apply to the VPC. - * Filter parameters are the same as passed to DescribeVpcs. - */ + override fun assumeRoleAdditionalOptions(assumeRoleAdditionalOptions: Map) { + cdkBuilder.assumeRoleAdditionalOptions(assumeRoleAdditionalOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + override fun filter(filter: Map) { cdkBuilder.filter(filter) } - /** - * @param lookupRoleArn The ARN of the role that should be used to look up the missing values. - */ override fun lookupRoleArn(lookupRoleArn: String) { cdkBuilder.lookupRoleArn(lookupRoleArn) } - /** - * @param region Query region. - */ + override fun lookupRoleExternalId(lookupRoleExternalId: String) { + cdkBuilder.lookupRoleExternalId(lookupRoleExternalId) + } + override fun region(region: String) { cdkBuilder.region(region) } - /** - * @param returnAsymmetricSubnets Whether to populate the subnetGroups field of the - * `VpcContextResponse`, which contains potentially asymmetric subnet groups. - */ override fun returnAsymmetricSubnets(returnAsymmetricSubnets: Boolean) { cdkBuilder.returnAsymmetricSubnets(returnAsymmetricSubnets) } - /** - * @param returnVpnGateways Whether to populate the `vpnGatewayId` field of the - * `VpcContextResponse`, which contains the VPN Gateway ID, if one exists. - * You can explicitly - * disable this in order to avoid the lookup if you know the VPC does not have - * a VPN Gatway attached. - */ override fun returnVpnGateways(returnVpnGateways: Boolean) { cdkBuilder.returnVpnGateways(returnVpnGateways) } - /** - * @param subnetGroupNameTag Optional tag for subnet group name. - * If not provided, we'll look at the aws-cdk:subnet-name tag. - * If the subnet does not have the specified tag, - * we'll use its type as the name. - */ override fun subnetGroupNameTag(subnetGroupNameTag: String) { cdkBuilder.subnetGroupNameTag(subnetGroupNameTag) } @@ -208,62 +87,25 @@ public interface VpcContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cloudassembly.schema.VpcContextQuery, - ) : CdkObject(cdkObject), VpcContextQuery { - /** - * Query account. - */ + ) : CdkObject(cdkObject), + VpcContextQuery { override fun account(): String = unwrap(this).getAccount() - /** - * Filters to apply to the VPC. - * - * Filter parameters are the same as passed to DescribeVpcs. - * - * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) - */ + override fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + override fun filter(): Map = unwrap(this).getFilter() ?: emptyMap() - /** - * The ARN of the role that should be used to look up the missing values. - * - * Default: - None - */ override fun lookupRoleArn(): String? = unwrap(this).getLookupRoleArn() - /** - * Query region. - */ + override fun lookupRoleExternalId(): String? = unwrap(this).getLookupRoleExternalId() + override fun region(): String = unwrap(this).getRegion() - /** - * Whether to populate the subnetGroups field of the `VpcContextResponse`, which contains - * potentially asymmetric subnet groups. - * - * Default: false - */ override fun returnAsymmetricSubnets(): Boolean? = unwrap(this).getReturnAsymmetricSubnets() - /** - * Whether to populate the `vpnGatewayId` field of the `VpcContextResponse`, which contains the - * VPN Gateway ID, if one exists. - * - * You can explicitly - * disable this in order to avoid the lookup if you know the VPC does not have - * a VPN Gatway attached. - * - * Default: true - */ override fun returnVpnGateways(): Boolean? = unwrap(this).getReturnVpnGateways() - /** - * Optional tag for subnet group name. - * - * If not provided, we'll look at the aws-cdk:subnet-name tag. - * If the subnet does not have the specified tag, - * we'll use its type as the name. - * - * Default: 'aws-cdk:subnet-name' - */ override fun subnetGroupNameTag(): String? = unwrap(this).getSubnetGroupNameTag() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/CfnIncludeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/CfnIncludeProps.kt index ed328bdacf..923f1ad63b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/CfnIncludeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/CfnIncludeProps.kt @@ -228,7 +228,8 @@ public interface CfnIncludeProps { private class Wrapper( cdkObject: software.amazon.awscdk.cloudformation.include.CfnIncludeProps, - ) : CdkObject(cdkObject), CfnIncludeProps { + ) : CdkObject(cdkObject), + CfnIncludeProps { /** * Specifies whether to allow cyclical references, effectively disregarding safeguards meant to * avoid undeployable templates. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/IncludedNestedStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/IncludedNestedStack.kt index cf14648558..74e9148afa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/IncludedNestedStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudformation/include/IncludedNestedStack.kt @@ -76,7 +76,8 @@ public interface IncludedNestedStack { private class Wrapper( cdkObject: software.amazon.awscdk.cloudformation.include.IncludedNestedStack, - ) : CdkObject(cdkObject), IncludedNestedStack { + ) : CdkObject(cdkObject), + IncludedNestedStack { /** * The CfnInclude that represents the template, which can be used to access Resources and other * template elements. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResource.kt index 7ef9d1bfe1..e44a78c4b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResource.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class AwsCustomResource( cdkObject: software.amazon.awscdk.customresources.AwsCustomResource, -) : CloudshiftdevConstructsConstruct(cdkObject), IGrantable { +) : CloudshiftdevConstructsConstruct(cdkObject), + IGrantable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResourceProps.kt index af749f3b94..65f70a1c06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsCustomResourceProps.kt @@ -528,7 +528,8 @@ public interface AwsCustomResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.AwsCustomResourceProps, - ) : CdkObject(cdkObject), AwsCustomResourceProps { + ) : CdkObject(cdkObject), + AwsCustomResourceProps { /** * A name for the singleton Lambda function implementing this custom resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsSdkCall.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsSdkCall.kt index d16ab5a972..d0d933c031 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsSdkCall.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/AwsSdkCall.kt @@ -386,7 +386,8 @@ public interface AwsSdkCall { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.AwsSdkCall, - ) : CdkObject(cdkObject), AwsSdkCall { + ) : CdkObject(cdkObject), + AwsSdkCall { /** * The service action to call. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceConfig.kt new file mode 100644 index 0000000000..c912397bc2 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceConfig.kt @@ -0,0 +1,72 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.customresources + +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.lambda.Runtime +import io.cloudshiftdev.awscdk.services.logs.RetentionDays +import io.cloudshiftdev.constructs.IConstruct + +/** + * Manages AWS-vended Custom Resources. + * + * This feature is currently experimental. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.customresources.*; + * CustomResourceConfig customResourceConfig = CustomResourceConfig.of(this); + * ``` + */ +public open class CustomResourceConfig( + cdkObject: software.amazon.awscdk.customresources.CustomResourceConfig, +) : CdkObject(cdkObject) { + /** + * Set the runtime version on AWS-vended custom resources lambdas. + * + * This feature is currently experimental. + * + * @param lambdaRuntime + */ + public open fun addLambdaRuntime(lambdaRuntime: Runtime) { + unwrap(this).addLambdaRuntime(lambdaRuntime.let(Runtime.Companion::unwrap)) + } + + /** + * Set the log retention of AWS-vended custom resource lambdas. + * + * This feature is currently experimental. + * + * @param rentention + */ + public open fun addLogRetentionLifetime(rentention: RetentionDays) { + unwrap(this).addLogRetentionLifetime(rentention.let(RetentionDays.Companion::unwrap)) + } + + /** + * Set the removal policy of AWS-vended custom resource logGroup. + * + * This feature is currently experimental. + * + * @param removalPolicy + */ + public open fun addRemovalPolicy(removalPolicy: RemovalPolicy) { + unwrap(this).addRemovalPolicy(removalPolicy.let(RemovalPolicy.Companion::unwrap)) + } + + public companion object { + public fun of(scope: IConstruct): CustomResourceConfig = + software.amazon.awscdk.customresources.CustomResourceConfig.of(scope.let(IConstruct.Companion::unwrap)).let(CustomResourceConfig::wrap) + + internal fun wrap(cdkObject: software.amazon.awscdk.customresources.CustomResourceConfig): + CustomResourceConfig = CustomResourceConfig(cdkObject) + + internal fun unwrap(wrapped: CustomResourceConfig): + software.amazon.awscdk.customresources.CustomResourceConfig = wrapped.cdkObject as + software.amazon.awscdk.customresources.CustomResourceConfig + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLambdaRuntime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLambdaRuntime.kt new file mode 100644 index 0000000000..c44e7d3b48 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLambdaRuntime.kt @@ -0,0 +1,53 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.customresources + +import io.cloudshiftdev.awscdk.IAspect +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.lambda.Runtime +import io.cloudshiftdev.constructs.IConstruct + +/** + * Manages lambda runtime for AWS-vended custom resources. + * + * This feature is currently experimental. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.lambda.*; + * import io.cloudshiftdev.awscdk.customresources.*; + * Runtime runtime; + * CustomResourceLambdaRuntime customResourceLambdaRuntime = new + * CustomResourceLambdaRuntime(runtime); + * ``` + */ +public open class CustomResourceLambdaRuntime( + cdkObject: software.amazon.awscdk.customresources.CustomResourceLambdaRuntime, +) : CdkObject(cdkObject), + IAspect { + public constructor(lambdaRuntime: Runtime) : + this(software.amazon.awscdk.customresources.CustomResourceLambdaRuntime(lambdaRuntime.let(Runtime.Companion::unwrap)) + ) + + /** + * All aspects can visit an IConstruct. + * + * @param node + */ + public override fun visit(node: IConstruct) { + unwrap(this).visit(node.let(IConstruct.Companion::unwrap)) + } + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.customresources.CustomResourceLambdaRuntime): + CustomResourceLambdaRuntime = CustomResourceLambdaRuntime(cdkObject) + + internal fun unwrap(wrapped: CustomResourceLambdaRuntime): + software.amazon.awscdk.customresources.CustomResourceLambdaRuntime = wrapped.cdkObject as + software.amazon.awscdk.customresources.CustomResourceLambdaRuntime + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLogRetention.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLogRetention.kt new file mode 100644 index 0000000000..c21c6b404d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceLogRetention.kt @@ -0,0 +1,51 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.customresources + +import io.cloudshiftdev.awscdk.IAspect +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.logs.RetentionDays +import io.cloudshiftdev.constructs.IConstruct + +/** + * Manages log retention for AWS-vended custom resources. + * + * This feature is currently experimental. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.logs.*; + * import io.cloudshiftdev.awscdk.customresources.*; + * CustomResourceLogRetention customResourceLogRetention = new + * CustomResourceLogRetention(RetentionDays.ONE_DAY); + * ``` + */ +public open class CustomResourceLogRetention( + cdkObject: software.amazon.awscdk.customresources.CustomResourceLogRetention, +) : CdkObject(cdkObject), + IAspect { + public constructor(setLogRetention: RetentionDays) : + this(software.amazon.awscdk.customresources.CustomResourceLogRetention(setLogRetention.let(RetentionDays.Companion::unwrap)) + ) + + /** + * All aspects can visit an IConstruct. + * + * @param node + */ + public override fun visit(node: IConstruct) { + unwrap(this).visit(node.let(IConstruct.Companion::unwrap)) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.customresources.CustomResourceLogRetention): + CustomResourceLogRetention = CustomResourceLogRetention(cdkObject) + + internal fun unwrap(wrapped: CustomResourceLogRetention): + software.amazon.awscdk.customresources.CustomResourceLogRetention = wrapped.cdkObject as + software.amazon.awscdk.customresources.CustomResourceLogRetention + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceRemovalPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceRemovalPolicy.kt new file mode 100644 index 0000000000..126bb5ca5c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/CustomResourceRemovalPolicy.kt @@ -0,0 +1,52 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.customresources + +import io.cloudshiftdev.awscdk.IAspect +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.constructs.IConstruct + +/** + * Manages removal policy for AWS-vended custom resources. + * + * This feature is currently experimental. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.customresources.*; + * CustomResourceRemovalPolicy customResourceRemovalPolicy = new + * CustomResourceRemovalPolicy(RemovalPolicy.DESTROY); + * ``` + */ +public open class CustomResourceRemovalPolicy( + cdkObject: software.amazon.awscdk.customresources.CustomResourceRemovalPolicy, +) : CdkObject(cdkObject), + IAspect { + public constructor(removalPolicy: RemovalPolicy) : + this(software.amazon.awscdk.customresources.CustomResourceRemovalPolicy(removalPolicy.let(RemovalPolicy.Companion::unwrap)) + ) + + /** + * All aspects can visit an IConstruct. + * + * @param node + */ + public override fun visit(node: IConstruct) { + unwrap(this).visit(node.let(IConstruct.Companion::unwrap)) + } + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.customresources.CustomResourceRemovalPolicy): + CustomResourceRemovalPolicy = CustomResourceRemovalPolicy(cdkObject) + + internal fun unwrap(wrapped: CustomResourceRemovalPolicy): + software.amazon.awscdk.customresources.CustomResourceRemovalPolicy = wrapped.cdkObject as + software.amazon.awscdk.customresources.CustomResourceRemovalPolicy + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LogOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LogOptions.kt index ff76a42c4f..e69a8426ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LogOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LogOptions.kt @@ -102,7 +102,8 @@ public interface LogOptions { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.LogOptions, - ) : CdkObject(cdkObject), LogOptions { + ) : CdkObject(cdkObject), + LogOptions { /** * The log group where the execution history events will be logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LoggingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LoggingProps.kt index 2ac069548b..c6dc0dcf1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LoggingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/LoggingProps.kt @@ -57,7 +57,8 @@ public interface LoggingProps { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.LoggingProps, - ) : CdkObject(cdkObject), LoggingProps { + ) : CdkObject(cdkObject), + LoggingProps { /** * Whether or not to log data associated with the API call response. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/PhysicalResourceIdReference.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/PhysicalResourceIdReference.kt index d8debb7d7f..4eaa5e3c7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/PhysicalResourceIdReference.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/PhysicalResourceIdReference.kt @@ -38,7 +38,8 @@ import kotlin.collections.List */ public open class PhysicalResourceIdReference( cdkObject: software.amazon.awscdk.customresources.PhysicalResourceIdReference, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { public constructor() : this(software.amazon.awscdk.customresources.PhysicalResourceIdReference() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/Provider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/Provider.kt index 65c3f98bc4..7455793c43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/Provider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/Provider.kt @@ -26,17 +26,20 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * Function onEvent; - * Function isComplete; - * Role myRole; - * Provider myProvider = Provider.Builder.create(this, "MyProvider") - * .onEventHandler(onEvent) - * .isCompleteHandler(isComplete) - * .logGroup(LogGroup.Builder.create(this, "MyProviderLogs") - * .retention(RetentionDays.ONE_DAY) - * .build()) - * .role(myRole) - * .providerFunctionName("the-lambda-name") + * // Create custom resource handler entrypoint + * Function handler = Function.Builder.create(this, "my-handler") + * .runtime(Runtime.NODEJS_20_X) + * .handler("index.handler") + * .code(Code.fromInline("\n exports.handler = async (event, context) => {\n return {\n + * PhysicalResourceId: '1234',\n NoEcho: true,\n Data: {\n mySecret: 'secret-value',\n + * hello: 'world',\n ghToken: 'gho_xxxxxxx',\n },\n };\n };")) + * .build(); + * // Provision a custom resource provider framework + * Provider provider = Provider.Builder.create(this, "my-provider") + * .onEventHandler(handler) + * .build(); + * CustomResource.Builder.create(this, "my-cr") + * .serviceToken(provider.getServiceToken()) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/ProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/ProviderProps.kt index 3cb16edcc3..92198aa363 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/ProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/ProviderProps.kt @@ -26,17 +26,20 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Function onEvent; - * Function isComplete; - * Role myRole; - * Provider myProvider = Provider.Builder.create(this, "MyProvider") - * .onEventHandler(onEvent) - * .isCompleteHandler(isComplete) - * .logGroup(LogGroup.Builder.create(this, "MyProviderLogs") - * .retention(RetentionDays.ONE_DAY) - * .build()) - * .role(myRole) - * .providerFunctionName("the-lambda-name") + * // Create custom resource handler entrypoint + * Function handler = Function.Builder.create(this, "my-handler") + * .runtime(Runtime.NODEJS_20_X) + * .handler("index.handler") + * .code(Code.fromInline("\n exports.handler = async (event, context) => {\n return {\n + * PhysicalResourceId: '1234',\n NoEcho: true,\n Data: {\n mySecret: 'secret-value',\n + * hello: 'world',\n ghToken: 'gho_xxxxxxx',\n },\n };\n };")) + * .build(); + * // Provision a custom resource provider framework + * Provider provider = Provider.Builder.create(this, "my-provider") + * .onEventHandler(handler) + * .build(); + * CustomResource.Builder.create(this, "my-cr") + * .serviceToken(provider.getServiceToken()) * .build(); * ``` */ @@ -489,7 +492,8 @@ public interface ProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.ProviderProps, - ) : CdkObject(cdkObject), ProviderProps { + ) : CdkObject(cdkObject), + ProviderProps { /** * Whether logging for the waiter state machine is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/SdkCallsPolicyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/SdkCallsPolicyOptions.kt index f815ca2d5a..94a9c71bd7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/SdkCallsPolicyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/SdkCallsPolicyOptions.kt @@ -111,7 +111,8 @@ public interface SdkCallsPolicyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.SdkCallsPolicyOptions, - ) : CdkObject(cdkObject), SdkCallsPolicyOptions { + ) : CdkObject(cdkObject), + SdkCallsPolicyOptions { /** * The resources that the calls will have access to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/WaiterStateMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/WaiterStateMachineProps.kt index 9de358cd98..a7f225953e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/WaiterStateMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/customresources/WaiterStateMachineProps.kt @@ -200,7 +200,8 @@ public interface WaiterStateMachineProps { private class Wrapper( cdkObject: software.amazon.awscdk.customresources.WaiterStateMachineProps, - ) : CdkObject(cdkObject), WaiterStateMachineProps { + ) : CdkObject(cdkObject), + WaiterStateMachineProps { /** * Backoff between attempts. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssemblyBuildOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssemblyBuildOptions.kt index a955a7ab2f..a28aed6226 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssemblyBuildOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssemblyBuildOptions.kt @@ -33,7 +33,8 @@ public interface AssemblyBuildOptions { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.AssemblyBuildOptions, - ) : CdkObject(cdkObject), AssemblyBuildOptions + ) : CdkObject(cdkObject), + AssemblyBuildOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): AssemblyBuildOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssetManifestArtifact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssetManifestArtifact.kt index f9014ba939..f342c45a48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssetManifestArtifact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AssetManifestArtifact.kt @@ -2,14 +2,14 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactType -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifestProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.TreeArtifactProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactType +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifestProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.TreeArtifactProperties import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any import kotlin.Boolean @@ -28,8 +28,9 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; * import io.cloudshiftdev.awscdk.cxapi.*; + * Object assumeRoleAdditionalOptions; * CloudAssembly cloudAssembly; * AssetManifestArtifact assetManifestArtifact = AssetManifestArtifact.Builder.create(cloudAssembly, * "name") @@ -48,6 +49,8 @@ import kotlin.jvm.JvmName * .properties(AwsCloudFormationStackProperties.builder() * .templateFile("templateFile") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -55,10 +58,13 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) * .build()) + * .notificationArns(List.of("notificationArns")) * .parameters(Map.of( * "parametersKey", "parameters")) * .requiresBootstrapStackVersion(123) @@ -184,7 +190,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e89b1c0dbdcc1d7fbcee4b8dadd2d45ae24784ce2b4ca84df7eb3dfc96e6c533") + @JvmName("366eb6a2ea0bfab55317cbb934c33b8be87ed9187776d5812d0ad2161bde70f6") public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) /** @@ -204,7 +210,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("ffa5c299805b5dfd99f5c3c76240d9f103d70c9537bcdbb4d8ec4de118be3964") + @JvmName("40a45ac470eed12f3e443fb7f2868afc6967438953a01513a2fb4a23fe9c8e26") public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) /** @@ -224,7 +230,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("1182e1aa860a90842ac5e0abac4487997ba1dbae6944e7dbe1530775dba29dd4") + @JvmName("e00b4323f20df3ee3c1016a6c4db2d554f32940c32c7d868c5b8b8cdc9a687ac") public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) /** @@ -244,7 +250,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("bc43cd0ebb4b7d7c81d5cf995bbc8bce4991ee762887b4e1d87718a8794f68e1") + @JvmName("d1d33e161dae163efe28cc346b9703ca30c8fa6011309bab510a2794427a25f3") public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) /** @@ -337,7 +343,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e89b1c0dbdcc1d7fbcee4b8dadd2d45ae24784ce2b4ca84df7eb3dfc96e6c533") + @JvmName("366eb6a2ea0bfab55317cbb934c33b8be87ed9187776d5812d0ad2161bde70f6") override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = properties(AwsCloudFormationStackProperties(properties)) @@ -360,7 +366,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("ffa5c299805b5dfd99f5c3c76240d9f103d70c9537bcdbb4d8ec4de118be3964") + @JvmName("40a45ac470eed12f3e443fb7f2868afc6967438953a01513a2fb4a23fe9c8e26") override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = properties(AssetManifestProperties(properties)) @@ -383,7 +389,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("1182e1aa860a90842ac5e0abac4487997ba1dbae6944e7dbe1530775dba29dd4") + @JvmName("e00b4323f20df3ee3c1016a6c4db2d554f32940c32c7d868c5b8b8cdc9a687ac") override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = properties(TreeArtifactProperties(properties)) @@ -406,7 +412,7 @@ public open class AssetManifestArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("bc43cd0ebb4b7d7c81d5cf995bbc8bce4991ee762887b4e1d87718a8794f68e1") + @JvmName("d1d33e161dae163efe28cc346b9703ca30c8fa6011309bab510a2794427a25f3") override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = properties(NestedCloudAssemblyProperties(properties)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AwsCloudFormationStackProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AwsCloudFormationStackProperties.kt index 1c7b8ac49b..b228ae8171 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AwsCloudFormationStackProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/AwsCloudFormationStackProperties.kt @@ -123,7 +123,8 @@ public interface AwsCloudFormationStackProperties { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.AwsCloudFormationStackProperties, - ) : CdkObject(cdkObject), AwsCloudFormationStackProperties { + ) : CdkObject(cdkObject), + AwsCloudFormationStackProperties { /** * Values for CloudFormation stack parameters that should be passed when the stack is deployed. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudArtifact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudArtifact.kt index b271a50a7a..26b7f7b88b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudArtifact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudArtifact.kt @@ -2,7 +2,7 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.String import kotlin.Unit @@ -17,8 +17,9 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; * import io.cloudshiftdev.awscdk.cxapi.*; + * Object assumeRoleAdditionalOptions; * CloudAssembly cloudAssembly; * CloudArtifact cloudArtifact = CloudArtifact.fromManifest(cloudAssembly, "MyCloudArtifact", * ArtifactManifest.builder() @@ -37,6 +38,8 @@ import kotlin.jvm.JvmName * .properties(AwsCloudFormationStackProperties.builder() * .templateFile("templateFile") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -44,10 +47,13 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) * .build()) + * .notificationArns(List.of("notificationArns")) * .parameters(Map.of( * "parametersKey", "parameters")) * .requiresBootstrapStackVersion(123) @@ -118,7 +124,7 @@ public open class CloudArtifact( id, artifact.let(ArtifactManifest.Companion::unwrap))?.let(CloudArtifact::wrap) @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("cf15c645a93890774d2fc564c09a4cc0b00096f48fca3019d1f567d1c659f93c") + @JvmName("0f5ce50809a53220163e245b0d4c56e7ff30df317fe38f32142e72defa856036") public fun fromManifest( assembly: CloudAssembly, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssembly.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssembly.kt index 3df32a375a..d5282d1536 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssembly.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssembly.kt @@ -2,9 +2,9 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssemblyManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.LoadManifestOptions -import io.cloudshiftdev.awscdk.cloudassembly.schema.RuntimeInfo +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssemblyManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.LoadManifestOptions +import io.cloudshiftdev.awscdk.cloud_assembly_schema.RuntimeInfo import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.Boolean diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilder.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilder.kt index 11e4742811..7890587658 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilder.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilder.kt @@ -2,8 +2,8 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.MissingContext +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MissingContext import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.String @@ -62,7 +62,7 @@ public open class CloudAssemblyBuilder( * @param manifest The artifact manifest. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("675b01db8d9bf2a391afcf443b03d940a509db958d216804c5778d90668c7b97") + @JvmName("378970138103824491091a5b67c2730d2438520ec175d693d3802b0eee86f4b3") public open fun addArtifact(id: String, manifest: ArtifactManifest.Builder.() -> Unit): Unit = addArtifact(id, ArtifactManifest(manifest)) @@ -81,7 +81,7 @@ public open class CloudAssemblyBuilder( * @param missing Missing context information. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("f747fa8aecc81d1edab6dea64b6458f0d9e4cdba1a866f78ef4f1afe4d8cda56") + @JvmName("39df1e8cb6348210f602ea2aaeb5b55b0ec4bbf53129bf65001a128cbbed4265") public open fun addMissing(missing: MissingContext.Builder.() -> Unit): Unit = addMissing(MissingContext(missing)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilderProps.kt index e22d13f93f..26b2408bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudAssemblyBuilderProps.kt @@ -79,7 +79,8 @@ public interface CloudAssemblyBuilderProps { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.CloudAssemblyBuilderProps, - ) : CdkObject(cdkObject), CloudAssemblyBuilderProps { + ) : CdkObject(cdkObject), + CloudAssemblyBuilderProps { /** * Use the given asset output directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudFormationStackArtifact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudFormationStackArtifact.kt index 43e4acb139..c5d5108108 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudFormationStackArtifact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/CloudFormationStackArtifact.kt @@ -2,14 +2,14 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactType -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifestProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.BootstrapRole -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.TreeArtifactProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactType +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifestProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.BootstrapRole +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.TreeArtifactProperties import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any import kotlin.Boolean @@ -26,8 +26,9 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; * import io.cloudshiftdev.awscdk.cxapi.*; + * Object assumeRoleAdditionalOptions; * CloudAssembly cloudAssembly; * CloudFormationStackArtifact cloudFormationStackArtifact = * CloudFormationStackArtifact.Builder.create(cloudAssembly, "artifactId") @@ -46,6 +47,8 @@ import kotlin.jvm.JvmName * .properties(AwsCloudFormationStackProperties.builder() * .templateFile("templateFile") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -53,10 +56,13 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) * .build()) + * .notificationArns(List.of("notificationArns")) * .parameters(Map.of( * "parametersKey", "parameters")) * .requiresBootstrapStackVersion(123) @@ -94,6 +100,21 @@ public open class CloudFormationStackArtifact( */ public open fun assets(): List = unwrap(this).getAssets() + /** + * Additional options to pass to STS when assuming the role for cloudformation deployments. + * + * * `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead. + * * `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead. + * * `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are + * transitive by default. + * + * Default: - No additional options. + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property) + */ + public open fun assumeRoleAdditionalOptions(): Map = + unwrap(this).getAssumeRoleAdditionalOptions() ?: emptyMap() + /** * The role that needs to be assumed to deploy the stack. * @@ -147,6 +168,11 @@ public open class CloudFormationStackArtifact( public open fun lookupRole(): BootstrapRole? = unwrap(this).getLookupRole()?.let(BootstrapRole::wrap) + /** + * SNS Topics that will receive stack events. + */ + public open fun notificationArns(): List = unwrap(this).getNotificationArns() + /** * The original name as defined in the CDK app. */ @@ -279,7 +305,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("92c205a9470ccdebd826cf4b31ac7003bef204a014ac9f284ba9ba1b499921e7") + @JvmName("45668b78dd17d0d02d89a60d7900618194636c10ae8549db1ef35cfd1387bef1") public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) /** @@ -299,7 +325,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("3dd6900b1f22ad585674a846e06f59419a9c370083cc0665c9791f83cad33009") + @JvmName("16df0c1131af55e38f3d796a61ddea4c3d2a04e6d0f360eab76de7f6fc168e28") public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) /** @@ -319,7 +345,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9c66db8a93c609f04a50a253bb6a43f9131a9bb64ae18a714133ee19623bf2d9") + @JvmName("c00aab7d9166672337d0759741b6805f50a4f8de3a7b9d189ec90917d0787514") public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) /** @@ -339,7 +365,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("89ceb4e9acb0af4e90262523f7c7c05de15be68a16458b25e519add9141b9d88") + @JvmName("17690bc98599dbd5f614c995d01a5abb6ff3c5baee413feb04295d604dcf684c") public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) /** @@ -433,7 +459,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("92c205a9470ccdebd826cf4b31ac7003bef204a014ac9f284ba9ba1b499921e7") + @JvmName("45668b78dd17d0d02d89a60d7900618194636c10ae8549db1ef35cfd1387bef1") override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = properties(AwsCloudFormationStackProperties(properties)) @@ -456,7 +482,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("3dd6900b1f22ad585674a846e06f59419a9c370083cc0665c9791f83cad33009") + @JvmName("16df0c1131af55e38f3d796a61ddea4c3d2a04e6d0f360eab76de7f6fc168e28") override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = properties(AssetManifestProperties(properties)) @@ -479,7 +505,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9c66db8a93c609f04a50a253bb6a43f9131a9bb64ae18a714133ee19623bf2d9") + @JvmName("c00aab7d9166672337d0759741b6805f50a4f8de3a7b9d189ec90917d0787514") override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = properties(TreeArtifactProperties(properties)) @@ -502,7 +528,7 @@ public open class CloudFormationStackArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("89ceb4e9acb0af4e90262523f7c7c05de15be68a16458b25e519add9141b9d88") + @JvmName("17690bc98599dbd5f614c995d01a5abb6ff3c5baee413feb04295d604dcf684c") override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = properties(NestedCloudAssemblyProperties(properties)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EndpointServiceAvailabilityZonesContextQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EndpointServiceAvailabilityZonesContextQuery.kt index d8947ee184..f1ff875d12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EndpointServiceAvailabilityZonesContextQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EndpointServiceAvailabilityZonesContextQuery.kt @@ -94,7 +94,8 @@ public interface EndpointServiceAvailabilityZonesContextQuery { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.EndpointServiceAvailabilityZonesContextQuery, - ) : CdkObject(cdkObject), EndpointServiceAvailabilityZonesContextQuery { + ) : CdkObject(cdkObject), + EndpointServiceAvailabilityZonesContextQuery { /** * Query account. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/Environment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/Environment.kt index 2c5d907cab..a988fe207b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/Environment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/Environment.kt @@ -91,7 +91,8 @@ public interface Environment { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.Environment, - ) : CdkObject(cdkObject), Environment { + ) : CdkObject(cdkObject), + Environment { /** * The AWS account this environment deploys into. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EnvironmentPlaceholderValues.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EnvironmentPlaceholderValues.kt index aed9e9e287..6e6a38e63f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EnvironmentPlaceholderValues.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/EnvironmentPlaceholderValues.kt @@ -93,7 +93,8 @@ public interface EnvironmentPlaceholderValues { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.EnvironmentPlaceholderValues, - ) : CdkObject(cdkObject), EnvironmentPlaceholderValues { + ) : CdkObject(cdkObject), + EnvironmentPlaceholderValues { /** * Return the account. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/IEnvironmentPlaceholderProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/IEnvironmentPlaceholderProvider.kt index ce6686eeba..f5756a3008 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/IEnvironmentPlaceholderProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/IEnvironmentPlaceholderProvider.kt @@ -27,7 +27,8 @@ public interface IEnvironmentPlaceholderProvider { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.IEnvironmentPlaceholderProvider, - ) : CdkObject(cdkObject), IEnvironmentPlaceholderProvider { + ) : CdkObject(cdkObject), + IEnvironmentPlaceholderProvider { /** * Return the account. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/KeyContextResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/KeyContextResponse.kt index 535243ba5c..ccff65d3fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/KeyContextResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/KeyContextResponse.kt @@ -55,7 +55,8 @@ public interface KeyContextResponse { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.KeyContextResponse, - ) : CdkObject(cdkObject), KeyContextResponse { + ) : CdkObject(cdkObject), + KeyContextResponse { /** * Id of the key. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerContextResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerContextResponse.kt index 35624433ca..dc847c2d57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerContextResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerContextResponse.kt @@ -158,7 +158,8 @@ public interface LoadBalancerContextResponse { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.LoadBalancerContextResponse, - ) : CdkObject(cdkObject), LoadBalancerContextResponse { + ) : CdkObject(cdkObject), + LoadBalancerContextResponse { /** * Type of IP address. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerIpAddressType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerIpAddressType.kt index 0dfe4d9c42..551a5e2188 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerIpAddressType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerIpAddressType.kt @@ -7,6 +7,7 @@ public enum class LoadBalancerIpAddressType( ) { IPV4(software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.IPV4), DUAL_STACK(software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.DUAL_STACK), + DUAL_STACK_WITHOUT_PUBLIC_IPV4(software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4), ; public companion object { @@ -15,6 +16,8 @@ public enum class LoadBalancerIpAddressType( software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.IPV4 -> LoadBalancerIpAddressType.IPV4 software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.DUAL_STACK -> LoadBalancerIpAddressType.DUAL_STACK + software.amazon.awscdk.cxapi.LoadBalancerIpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4 -> + LoadBalancerIpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4 } internal fun unwrap(wrapped: LoadBalancerIpAddressType): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerListenerContextResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerListenerContextResponse.kt index 3953d13cbe..526b2ac1da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerListenerContextResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/LoadBalancerListenerContextResponse.kt @@ -106,7 +106,8 @@ public interface LoadBalancerListenerContextResponse { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.LoadBalancerListenerContextResponse, - ) : CdkObject(cdkObject), LoadBalancerListenerContextResponse { + ) : CdkObject(cdkObject), + LoadBalancerListenerContextResponse { /** * The ARN of the listener. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/MetadataEntryResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/MetadataEntryResult.kt index 3ae29b6bc7..9e6ad46acd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/MetadataEntryResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/MetadataEntryResult.kt @@ -2,10 +2,10 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ContainerImageAssetMetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.FileAssetMetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.Tag +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ContainerImageAssetMetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.FileAssetMetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.Tag import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -56,7 +56,7 @@ public interface MetadataEntryResult : MetadataEntry { * @param data The data. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("21032671b9fd8716bfa04fb75b91a465e21e525e6bd0142e4ec3f68c59add044") + @JvmName("8569c4f1699cbd420cd28adb4870e6a3db2a0a77d8e7e45c56e02b4c4589ffbc") public fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit) /** @@ -68,7 +68,7 @@ public interface MetadataEntryResult : MetadataEntry { * @param data The data. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9f31e5c47b3e381ad8ea96d00aab02e299b353aa9c5ef9bfb5c2e428b3578437") + @JvmName("60eb9608a2a4e21c49517e87f8d6f05b0f12d8d2f5720571f428aa3c5e4a3ff9") public fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit) /** @@ -124,7 +124,7 @@ public interface MetadataEntryResult : MetadataEntry { * @param data The data. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("21032671b9fd8716bfa04fb75b91a465e21e525e6bd0142e4ec3f68c59add044") + @JvmName("8569c4f1699cbd420cd28adb4870e6a3db2a0a77d8e7e45c56e02b4c4589ffbc") override fun `data`(`data`: FileAssetMetadataEntry.Builder.() -> Unit): Unit = `data`(FileAssetMetadataEntry(`data`)) @@ -139,7 +139,7 @@ public interface MetadataEntryResult : MetadataEntry { * @param data The data. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9f31e5c47b3e381ad8ea96d00aab02e299b353aa9c5ef9bfb5c2e428b3578437") + @JvmName("60eb9608a2a4e21c49517e87f8d6f05b0f12d8d2f5720571f428aa3c5e4a3ff9") override fun `data`(`data`: ContainerImageAssetMetadataEntry.Builder.() -> Unit): Unit = `data`(ContainerImageAssetMetadataEntry(`data`)) @@ -186,7 +186,8 @@ public interface MetadataEntryResult : MetadataEntry { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.MetadataEntryResult, - ) : CdkObject(cdkObject), MetadataEntryResult { + ) : CdkObject(cdkObject), + MetadataEntryResult { /** * The data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/NestedCloudAssemblyArtifact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/NestedCloudAssemblyArtifact.kt index 4d34a99914..af78183730 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/NestedCloudAssemblyArtifact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/NestedCloudAssemblyArtifact.kt @@ -2,13 +2,13 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactType -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifestProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.TreeArtifactProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactType +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifestProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.TreeArtifactProperties import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any import kotlin.Boolean @@ -26,8 +26,9 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; * import io.cloudshiftdev.awscdk.cxapi.*; + * Object assumeRoleAdditionalOptions; * CloudAssembly cloudAssembly; * NestedCloudAssemblyArtifact nestedCloudAssemblyArtifact = * NestedCloudAssemblyArtifact.Builder.create(cloudAssembly, "name") @@ -46,6 +47,8 @@ import kotlin.jvm.JvmName * .properties(AwsCloudFormationStackProperties.builder() * .templateFile("templateFile") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -53,10 +56,13 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) * .build()) + * .notificationArns(List.of("notificationArns")) * .parameters(Map.of( * "parametersKey", "parameters")) * .requiresBootstrapStackVersion(123) @@ -179,7 +185,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("96bcbb184e451768106b6f3257a88b7eed0ad2c6d69a847c891ae86e79c2caaa") + @JvmName("e44f7afd2088b4b9dd84c8bfd40629f44dc01cdd51646d2a77a9f262678c6447") public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) /** @@ -199,7 +205,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("8d7709add77d497c9f5df7a50657dab1044e1eda730957b04d51c8933216402f") + @JvmName("1f1c61536a05dbac2da96a497b18800d9a131415e9667caec7cd283b7426d814") public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) /** @@ -219,7 +225,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("d2c4121c265fcedd8998f80de849166240f9d87a48132c18e05e23693421244a") + @JvmName("670d3c9f19c2c72991a5317d40b701c8814361aa7f0291fae70b998ca5423998") public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) /** @@ -239,7 +245,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("819747833b8339b5bc1d2c29e7c27851a4cf6462a17bb23412f9234bb42e411f") + @JvmName("a3e41b4ea4614eab80f28645b7d0d89d77c9fab840126bb4668c3ce4d651ac5b") public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) /** @@ -332,7 +338,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("96bcbb184e451768106b6f3257a88b7eed0ad2c6d69a847c891ae86e79c2caaa") + @JvmName("e44f7afd2088b4b9dd84c8bfd40629f44dc01cdd51646d2a77a9f262678c6447") override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = properties(AwsCloudFormationStackProperties(properties)) @@ -355,7 +361,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("8d7709add77d497c9f5df7a50657dab1044e1eda730957b04d51c8933216402f") + @JvmName("1f1c61536a05dbac2da96a497b18800d9a131415e9667caec7cd283b7426d814") override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = properties(AssetManifestProperties(properties)) @@ -378,7 +384,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("d2c4121c265fcedd8998f80de849166240f9d87a48132c18e05e23693421244a") + @JvmName("670d3c9f19c2c72991a5317d40b701c8814361aa7f0291fae70b998ca5423998") override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = properties(TreeArtifactProperties(properties)) @@ -401,7 +407,7 @@ public open class NestedCloudAssemblyArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("819747833b8339b5bc1d2c29e7c27851a4cf6462a17bb23412f9234bb42e411f") + @JvmName("a3e41b4ea4614eab80f28645b7d0d89d77c9fab840126bb4668c3ce4d651ac5b") override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = properties(NestedCloudAssemblyProperties(properties)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SecurityGroupContextResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SecurityGroupContextResponse.kt index 5276a1e456..d510481a91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SecurityGroupContextResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SecurityGroupContextResponse.kt @@ -86,7 +86,8 @@ public interface SecurityGroupContextResponse { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.SecurityGroupContextResponse, - ) : CdkObject(cdkObject), SecurityGroupContextResponse { + ) : CdkObject(cdkObject), + SecurityGroupContextResponse { /** * Whether the security group allows all outbound traffic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SynthesisMessage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SynthesisMessage.kt index c002154bfa..189a174189 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SynthesisMessage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/SynthesisMessage.kt @@ -2,7 +2,7 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -59,7 +59,7 @@ public interface SynthesisMessage { * @param entry the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9632d9a77fd16530e6e62a4bc87651a80c1d90b0739b16bdf07edfbaf8de3dc8") + @JvmName("3fb9897f1e8739f691d0e543a4253ce4eef9ea3a25f2c523ef7aff5489fd5375") public fun entry(entry: MetadataEntry.Builder.() -> Unit) /** @@ -88,7 +88,7 @@ public interface SynthesisMessage { * @param entry the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("9632d9a77fd16530e6e62a4bc87651a80c1d90b0739b16bdf07edfbaf8de3dc8") + @JvmName("3fb9897f1e8739f691d0e543a4253ce4eef9ea3a25f2c523ef7aff5489fd5375") override fun entry(entry: MetadataEntry.Builder.() -> Unit): Unit = entry(MetadataEntry(entry)) /** @@ -110,7 +110,8 @@ public interface SynthesisMessage { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.SynthesisMessage, - ) : CdkObject(cdkObject), SynthesisMessage { + ) : CdkObject(cdkObject), + SynthesisMessage { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/TreeCloudArtifact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/TreeCloudArtifact.kt index f1f6b4ef39..62ae3a3b5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/TreeCloudArtifact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/TreeCloudArtifact.kt @@ -2,13 +2,13 @@ package io.cloudshiftdev.awscdk.cxapi -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactManifest -import io.cloudshiftdev.awscdk.cloudassembly.schema.ArtifactType -import io.cloudshiftdev.awscdk.cloudassembly.schema.AssetManifestProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.MetadataEntry -import io.cloudshiftdev.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties -import io.cloudshiftdev.awscdk.cloudassembly.schema.TreeArtifactProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactManifest +import io.cloudshiftdev.awscdk.cloud_assembly_schema.ArtifactType +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AssetManifestProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.AwsCloudFormationStackProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.MetadataEntry +import io.cloudshiftdev.awscdk.cloud_assembly_schema.NestedCloudAssemblyProperties +import io.cloudshiftdev.awscdk.cloud_assembly_schema.TreeArtifactProperties import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any import kotlin.Boolean @@ -24,8 +24,9 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.cloudassembly.schema.*; + * import io.cloudshiftdev.awscdk.cloud_assembly_schema.*; * import io.cloudshiftdev.awscdk.cxapi.*; + * Object assumeRoleAdditionalOptions; * CloudAssembly cloudAssembly; * TreeCloudArtifact treeCloudArtifact = TreeCloudArtifact.Builder.create(cloudAssembly, "name") * .type(ArtifactType.NONE) @@ -43,6 +44,8 @@ import kotlin.jvm.JvmName * .properties(AwsCloudFormationStackProperties.builder() * .templateFile("templateFile") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleArn("assumeRoleArn") * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") @@ -50,10 +53,13 @@ import kotlin.jvm.JvmName * .lookupRole(BootstrapRole.builder() * .arn("arn") * // the properties below are optional + * .assumeRoleAdditionalOptions(Map.of( + * "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions)) * .assumeRoleExternalId("assumeRoleExternalId") * .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") * .requiresBootstrapStackVersion(123) * .build()) + * .notificationArns(List.of("notificationArns")) * .parameters(Map.of( * "parametersKey", "parameters")) * .requiresBootstrapStackVersion(123) @@ -160,7 +166,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e837c90fefdbc6b245ecbb8fb868adda0cb103621322b158b2b5d530b9a4fd8f") + @JvmName("a38744c51f346654a9344b79695ff0f38058aa7cfb0aea0f91d731c1dc9b83a5") public fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit) /** @@ -180,7 +186,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("0b35c2137597c284018bb71d75146cfd1ab20b146ce33bf20a2b982d96740800") + @JvmName("d3955b7003390a9bb086a623a4224dd3bc8f86c16e94bd75c2076acaa2807601") public fun properties(properties: AssetManifestProperties.Builder.() -> Unit) /** @@ -200,7 +206,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("eb00f0aad17348ccffbe8495fe60ce431ab96a636776c14d57d17eca9ec1aad3") + @JvmName("df764ab25290810489efce684f0ddb272ce0475b3757f0c6317c356ab08c41a4") public fun properties(properties: TreeArtifactProperties.Builder.() -> Unit) /** @@ -220,7 +226,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("896619724a089e10e64e1b0d16bd0a796828e5ca239724f6c763607aa381a921") + @JvmName("53343a9d06d88beb6a6e4012abb5c192e8c650f05b9919c2c476dfc7b7ebd003") public fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit) /** @@ -313,7 +319,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e837c90fefdbc6b245ecbb8fb868adda0cb103621322b158b2b5d530b9a4fd8f") + @JvmName("a38744c51f346654a9344b79695ff0f38058aa7cfb0aea0f91d731c1dc9b83a5") override fun properties(properties: AwsCloudFormationStackProperties.Builder.() -> Unit): Unit = properties(AwsCloudFormationStackProperties(properties)) @@ -336,7 +342,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("0b35c2137597c284018bb71d75146cfd1ab20b146ce33bf20a2b982d96740800") + @JvmName("d3955b7003390a9bb086a623a4224dd3bc8f86c16e94bd75c2076acaa2807601") override fun properties(properties: AssetManifestProperties.Builder.() -> Unit): Unit = properties(AssetManifestProperties(properties)) @@ -359,7 +365,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("eb00f0aad17348ccffbe8495fe60ce431ab96a636776c14d57d17eca9ec1aad3") + @JvmName("df764ab25290810489efce684f0ddb272ce0475b3757f0c6317c356ab08c41a4") override fun properties(properties: TreeArtifactProperties.Builder.() -> Unit): Unit = properties(TreeArtifactProperties(properties)) @@ -382,7 +388,7 @@ public open class TreeCloudArtifact( * @param properties The set of properties for this artifact (depends on type). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("896619724a089e10e64e1b0d16bd0a796828e5ca239724f6c763607aa381a921") + @JvmName("53343a9d06d88beb6a6e4012abb5c192e8c650f05b9919c2c476dfc7b7ebd003") override fun properties(properties: NestedCloudAssemblyProperties.Builder.() -> Unit): Unit = properties(NestedCloudAssemblyProperties(properties)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcContextResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcContextResponse.kt index 2de53a1a1b..d774a648ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcContextResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcContextResponse.kt @@ -548,7 +548,8 @@ public interface VpcContextResponse { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.VpcContextResponse, - ) : CdkObject(cdkObject), VpcContextResponse { + ) : CdkObject(cdkObject), + VpcContextResponse { /** * AZs. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnet.kt index c5b9674d8c..96b16aa880 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnet.kt @@ -114,7 +114,8 @@ public interface VpcSubnet { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.VpcSubnet, - ) : CdkObject(cdkObject), VpcSubnet { + ) : CdkObject(cdkObject), + VpcSubnet { /** * The code of the availability zone this subnet is in (for example, 'us-west-2a'). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnetGroup.kt index 74051bf113..a76eebb54b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cxapi/VpcSubnetGroup.kt @@ -124,7 +124,8 @@ public interface VpcSubnetGroup { private class Wrapper( cdkObject: software.amazon.awscdk.cxapi.VpcSubnetGroup, - ) : CdkObject(cdkObject), VpcSubnetGroup { + ) : CdkObject(cdkObject), + VpcSubnetGroup { /** * The name of the subnet group, determined by looking at the tags of of the subnets that belong * to it. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/AddStageOpts.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/AddStageOpts.kt index 0d56343bff..1bd5e8cb7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/AddStageOpts.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/AddStageOpts.kt @@ -24,8 +24,7 @@ import kotlin.collections.List * .build())) * .build()); * pipeline.addStage(prod, AddStageOpts.builder() - * .pre(List.of( - * new ManualApprovalStep("PromoteToProd"))) + * .pre(List.of(new ManualApprovalStep("PromoteToProd"))) * .build()); * ``` */ @@ -133,7 +132,8 @@ public interface AddStageOpts { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.AddStageOpts, - ) : CdkObject(cdkObject), AddStageOpts { + ) : CdkObject(cdkObject), + AddStageOpts { /** * Additional steps to run after all of the stacks in the stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildOptions.kt index c5c571ce68..21cf805189 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildOptions.kt @@ -407,7 +407,8 @@ public interface CodeBuildOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.CodeBuildOptions, - ) : CdkObject(cdkObject), CodeBuildOptions { + ) : CdkObject(cdkObject), + CodeBuildOptions { /** * Partial build environment, will be combined with other build environments that apply. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildStepProps.kt index 6803bbb045..67ec7a5f29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeBuildStepProps.kt @@ -666,7 +666,8 @@ public interface CodeBuildStepProps : ShellStepProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.CodeBuildStepProps, - ) : CdkObject(cdkObject), CodeBuildStepProps { + ) : CdkObject(cdkObject), + CodeBuildStepProps { /** * Custom execution role to be used for the Code Build Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeCommitSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeCommitSourceOptions.kt index 9d6e9d4f7d..f7cf9945d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeCommitSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodeCommitSourceOptions.kt @@ -146,7 +146,8 @@ public interface CodeCommitSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.CodeCommitSourceOptions, - ) : CdkObject(cdkObject), CodeCommitSourceOptions { + ) : CdkObject(cdkObject), + CodeCommitSourceOptions { /** * The action name used for this source in the CodePipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipeline.kt index b0b00abc65..a7849e7bba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipeline.kt @@ -26,22 +26,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // Modern API - * CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline") - * .selfMutation(false) + * Pipeline codePipeline; + * Artifact sourceArtifact = new Artifact("MySourceArtifact"); + * CodePipeline pipeline = CodePipeline.Builder.create(this, "Pipeline") + * .codePipeline(codePipeline) * .synth(ShellStep.Builder.create("Synth") - * .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder() - * .connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41") - * .build())) + * .input(CodePipelineFileSet.fromArtifact(sourceArtifact)) * .commands(List.of("npm ci", "npm run build", "npx cdk synth")) * .build()) * .build(); - * // Original API - * Artifact cloudAssemblyArtifact = new Artifact(); - * CdkPipeline originalPipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps() - * .selfMutating(false) - * .cloudAssemblyArtifact(cloudAssemblyArtifact) - * ); * ``` */ public open class CodePipeline( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineActionFactoryResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineActionFactoryResult.kt index 70f0b64c43..7121ee89cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineActionFactoryResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineActionFactoryResult.kt @@ -85,7 +85,8 @@ public interface CodePipelineActionFactoryResult { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.CodePipelineActionFactoryResult, - ) : CdkObject(cdkObject), CodePipelineActionFactoryResult { + ) : CdkObject(cdkObject), + CodePipelineActionFactoryResult { /** * If a CodeBuild project got created, the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineProps.kt index c8b446e9dc..63360762a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineProps.kt @@ -21,22 +21,15 @@ import kotlin.jvm.JvmName * Example: * * ``` - * // Modern API - * CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline") - * .selfMutation(false) + * Pipeline codePipeline; + * Artifact sourceArtifact = new Artifact("MySourceArtifact"); + * CodePipeline pipeline = CodePipeline.Builder.create(this, "Pipeline") + * .codePipeline(codePipeline) * .synth(ShellStep.Builder.create("Synth") - * .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder() - * .connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41") - * .build())) + * .input(CodePipelineFileSet.fromArtifact(sourceArtifact)) * .commands(List.of("npm ci", "npm run build", "npx cdk synth")) * .build()) * .build(); - * // Original API - * Artifact cloudAssemblyArtifact = new Artifact(); - * CdkPipeline originalPipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps() - * .selfMutating(false) - * .cloudAssemblyArtifact(cloudAssemblyArtifact) - * ); * ``` */ public interface CodePipelineProps { @@ -779,7 +772,8 @@ public interface CodePipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.CodePipelineProps, - ) : CdkObject(cdkObject), CodePipelineProps { + ) : CdkObject(cdkObject), + CodePipelineProps { /** * An existing S3 Bucket to use for storing the pipeline's artifact. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineSource.kt index 6256a57759..f38c801a19 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/CodePipelineSource.kt @@ -36,7 +36,8 @@ import io.cloudshiftdev.awscdk.services.ecr.IRepository as EcrIRepository */ public abstract class CodePipelineSource( cdkObject: software.amazon.awscdk.pipelines.CodePipelineSource, -) : Step(cdkObject), ICodePipelineActionFactory { +) : Step(cdkObject), + ICodePipelineActionFactory { /** * Whether or not this is a Source step. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConfirmPermissionsBroadening.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConfirmPermissionsBroadening.kt index d94e60318f..4d4b9b74ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConfirmPermissionsBroadening.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConfirmPermissionsBroadening.kt @@ -21,14 +21,14 @@ import kotlin.jvm.JvmName * CodePipeline pipeline; * MyApplicationStage stage = new MyApplicationStage(this, "MyApplication"); * pipeline.addStage(stage, AddStageOpts.builder() - * .pre(List.of( - * ConfirmPermissionsBroadening.Builder.create("Check").stage(stage).build())) + * .pre(List.of(ConfirmPermissionsBroadening.Builder.create("Check").stage(stage).build())) * .build()); * ``` */ public open class ConfirmPermissionsBroadening( cdkObject: software.amazon.awscdk.pipelines.ConfirmPermissionsBroadening, -) : Step(cdkObject), ICodePipelineActionFactory { +) : Step(cdkObject), + ICodePipelineActionFactory { public constructor(id: String, props: PermissionsBroadeningCheckProps) : this(software.amazon.awscdk.pipelines.ConfirmPermissionsBroadening(id, props.let(PermissionsBroadeningCheckProps.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConnectionSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConnectionSourceOptions.kt index dd606d85a5..7dc3308559 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConnectionSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ConnectionSourceOptions.kt @@ -172,7 +172,8 @@ public interface ConnectionSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ConnectionSourceOptions, - ) : CdkObject(cdkObject), ConnectionSourceOptions { + ) : CdkObject(cdkObject), + ConnectionSourceOptions { /** * The action name used for this source in the CodePipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ECRSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ECRSourceOptions.kt index 3e8307651d..846ebfc175 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ECRSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ECRSourceOptions.kt @@ -74,7 +74,8 @@ public interface ECRSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ECRSourceOptions, - ) : CdkObject(cdkObject), ECRSourceOptions { + ) : CdkObject(cdkObject), + ECRSourceOptions { /** * The action name used for this source in the CodePipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/EcrDockerCredentialOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/EcrDockerCredentialOptions.kt index bc7932efd5..0984e01c54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/EcrDockerCredentialOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/EcrDockerCredentialOptions.kt @@ -96,7 +96,8 @@ public interface EcrDockerCredentialOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.EcrDockerCredentialOptions, - ) : CdkObject(cdkObject), EcrDockerCredentialOptions { + ) : CdkObject(cdkObject), + EcrDockerCredentialOptions { /** * An IAM role to assume prior to accessing the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ExternalDockerCredentialOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ExternalDockerCredentialOptions.kt index 1e1c23aec5..a89796b350 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ExternalDockerCredentialOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ExternalDockerCredentialOptions.kt @@ -19,7 +19,9 @@ import kotlin.collections.List * ISecret dockerHubSecret = Secret.fromSecretCompleteArn(this, "DHSecret", "arn:aws:..."); * // Only the image asset publishing actions will be granted read access to the secret. * DockerCredential creds = DockerCredential.dockerHub(dockerHubSecret, - * ExternalDockerCredentialOptions.builder().usages(List.of(DockerCredentialUsage.ASSET_PUBLISHING)).build()); + * ExternalDockerCredentialOptions.builder() + * .usages(List.of(DockerCredentialUsage.ASSET_PUBLISHING)) + * .build()); * ``` */ public interface ExternalDockerCredentialOptions { @@ -134,7 +136,8 @@ public interface ExternalDockerCredentialOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ExternalDockerCredentialOptions, - ) : CdkObject(cdkObject), ExternalDockerCredentialOptions { + ) : CdkObject(cdkObject), + ExternalDockerCredentialOptions { /** * An IAM role to assume prior to accessing the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSet.kt index 95e149f3c5..8b0717ffe7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSet.kt @@ -27,7 +27,8 @@ import kotlin.String * { * // This is where you control what type of Action gets added to the * // CodePipeline - * stage.addAction(JenkinsAction.Builder.create() + * stage.addAction( + * JenkinsAction.Builder.create() * // Copy 'actionName' and 'runOrder' from the options * .actionName(options.getActionName()) * .runOrder(options.getRunOrder()) @@ -45,7 +46,8 @@ import kotlin.String */ public open class FileSet( cdkObject: software.amazon.awscdk.pipelines.FileSet, -) : CdkObject(cdkObject), IFileSetProducer { +) : CdkObject(cdkObject), + IFileSetProducer { public constructor(id: String) : this(software.amazon.awscdk.pipelines.FileSet(id) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSetLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSetLocation.kt index 5b75e61eac..e94b06b1d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSetLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/FileSetLocation.kt @@ -74,7 +74,8 @@ public interface FileSetLocation { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.FileSetLocation, - ) : CdkObject(cdkObject), FileSetLocation { + ) : CdkObject(cdkObject), + FileSetLocation { /** * The (relative) directory where the FileSet is found. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/GitHubSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/GitHubSourceOptions.kt index 8fa02f11bd..f25d2de818 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/GitHubSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/GitHubSourceOptions.kt @@ -148,7 +148,8 @@ public interface GitHubSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.GitHubSourceOptions, - ) : CdkObject(cdkObject), GitHubSourceOptions { + ) : CdkObject(cdkObject), + GitHubSourceOptions { /** * The action name used for this source in the CodePipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ICodePipelineActionFactory.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ICodePipelineActionFactory.kt index d52b7076f0..5ac410c62b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ICodePipelineActionFactory.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ICodePipelineActionFactory.kt @@ -42,7 +42,8 @@ public interface ICodePipelineActionFactory { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ICodePipelineActionFactory, - ) : CdkObject(cdkObject), ICodePipelineActionFactory { + ) : CdkObject(cdkObject), + ICodePipelineActionFactory { /** * Create the desired Action and add it to the pipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/IFileSetProducer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/IFileSetProducer.kt index 6fd02b8624..83c0c74cae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/IFileSetProducer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/IFileSetProducer.kt @@ -20,7 +20,8 @@ public interface IFileSetProducer { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.IFileSetProducer, - ) : CdkObject(cdkObject), IFileSetProducer { + ) : CdkObject(cdkObject), + IFileSetProducer { /** * The `FileSet` produced by this file set producer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStep.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStep.kt index 1e5e8445a1..5a44b4dba0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStep.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStep.kt @@ -28,8 +28,7 @@ import kotlin.Unit * .build())) * .build()); * pipeline.addStage(prod, AddStageOpts.builder() - * .pre(List.of( - * new ManualApprovalStep("PromoteToProd"))) + * .pre(List.of(new ManualApprovalStep("PromoteToProd"))) * .build()); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStepProps.kt index a69e3b1104..55adfe1b5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ManualApprovalStepProps.kt @@ -58,7 +58,8 @@ public interface ManualApprovalStepProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ManualApprovalStepProps, - ) : CdkObject(cdkObject), ManualApprovalStepProps { + ) : CdkObject(cdkObject), + ManualApprovalStepProps { /** * The comment to display with this manual approval. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PermissionsBroadeningCheckProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PermissionsBroadeningCheckProps.kt index a57b6c9699..ee7a00fdf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PermissionsBroadeningCheckProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PermissionsBroadeningCheckProps.kt @@ -18,8 +18,7 @@ import kotlin.Unit * CodePipeline pipeline; * MyApplicationStage stage = new MyApplicationStage(this, "MyApplication"); * pipeline.addStage(stage, AddStageOpts.builder() - * .pre(List.of( - * ConfirmPermissionsBroadening.Builder.create("Check").stage(stage).build())) + * .pre(List.of(ConfirmPermissionsBroadening.Builder.create("Check").stage(stage).build())) * .build()); * ``` */ @@ -82,7 +81,8 @@ public interface PermissionsBroadeningCheckProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.PermissionsBroadeningCheckProps, - ) : CdkObject(cdkObject), PermissionsBroadeningCheckProps { + ) : CdkObject(cdkObject), + PermissionsBroadeningCheckProps { /** * Topic to send notifications when a human needs to give manual confirmation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PipelineBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PipelineBaseProps.kt index 6112fea90f..9441e35892 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PipelineBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/PipelineBaseProps.kt @@ -71,7 +71,8 @@ public interface PipelineBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.PipelineBaseProps, - ) : CdkObject(cdkObject), PipelineBaseProps { + ) : CdkObject(cdkObject), + PipelineBaseProps { /** * The build step that produces the CDK Cloud Assembly. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ProduceActionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ProduceActionOptions.kt index 3faf3a95c5..c09691f760 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ProduceActionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ProduceActionOptions.kt @@ -39,6 +39,7 @@ import kotlin.jvm.JvmName * CodePipeline codePipeline; * Construct construct; * IFileSystemLocation fileSystemLocation; + * Fleet fleet; * LogGroup logGroup; * PolicyStatement policyStatement; * SecurityGroup securityGroup; @@ -70,6 +71,7 @@ import kotlin.jvm.JvmName * // the properties below are optional * .type(BuildEnvironmentVariableType.PLAINTEXT) * .build())) + * .fleet(fleet) * .privileged(false) * .build()) * .cache(cache) @@ -365,7 +367,8 @@ public interface ProduceActionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ProduceActionOptions, - ) : CdkObject(cdkObject), ProduceActionOptions { + ) : CdkObject(cdkObject), + ProduceActionOptions { /** * Name the action should get. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/S3SourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/S3SourceOptions.kt index ebff5f5dbe..29f089f2b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/S3SourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/S3SourceOptions.kt @@ -116,7 +116,8 @@ public interface S3SourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.S3SourceOptions, - ) : CdkObject(cdkObject), S3SourceOptions { + ) : CdkObject(cdkObject), + S3SourceOptions { /** * The action name used for this source in the CodePipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStep.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStep.kt index 4c04215983..6701bc4c1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStep.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStep.kt @@ -18,22 +18,15 @@ import kotlin.collections.Map * Example: * * ``` - * // Modern API - * CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline") - * .selfMutation(false) + * Pipeline codePipeline; + * Artifact sourceArtifact = new Artifact("MySourceArtifact"); + * CodePipeline pipeline = CodePipeline.Builder.create(this, "Pipeline") + * .codePipeline(codePipeline) * .synth(ShellStep.Builder.create("Synth") - * .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder() - * .connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41") - * .build())) + * .input(CodePipelineFileSet.fromArtifact(sourceArtifact)) * .commands(List.of("npm ci", "npm run build", "npx cdk synth")) * .build()) * .build(); - * // Original API - * Artifact cloudAssemblyArtifact = new Artifact(); - * CdkPipeline originalPipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps() - * .selfMutating(false) - * .cloudAssemblyArtifact(cloudAssemblyArtifact) - * ); * ``` */ public open class ShellStep( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStepProps.kt index 3ef60a95d6..5212f6b477 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/ShellStepProps.kt @@ -17,22 +17,15 @@ import kotlin.collections.Map * Example: * * ``` - * // Modern API - * CodePipeline modernPipeline = CodePipeline.Builder.create(this, "Pipeline") - * .selfMutation(false) + * Pipeline codePipeline; + * Artifact sourceArtifact = new Artifact("MySourceArtifact"); + * CodePipeline pipeline = CodePipeline.Builder.create(this, "Pipeline") + * .codePipeline(codePipeline) * .synth(ShellStep.Builder.create("Synth") - * .input(CodePipelineSource.connection("my-org/my-app", "main", ConnectionSourceOptions.builder() - * .connectionArn("arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41") - * .build())) + * .input(CodePipelineFileSet.fromArtifact(sourceArtifact)) * .commands(List.of("npm ci", "npm run build", "npx cdk synth")) * .build()) * .build(); - * // Original API - * Artifact cloudAssemblyArtifact = new Artifact(); - * CdkPipeline originalPipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps() - * .selfMutating(false) - * .cloudAssemblyArtifact(cloudAssemblyArtifact) - * ); * ``` */ public interface ShellStepProps { @@ -295,7 +288,8 @@ public interface ShellStepProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.ShellStepProps, - ) : CdkObject(cdkObject), ShellStepProps { + ) : CdkObject(cdkObject), + ShellStepProps { /** * Additional FileSets to put in other directories. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackAsset.kt index bd2dfbfbb1..26d56680fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackAsset.kt @@ -158,7 +158,8 @@ public interface StackAsset { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.StackAsset, - ) : CdkObject(cdkObject), StackAsset { + ) : CdkObject(cdkObject), + StackAsset { /** * Asset identifier. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackDeploymentProps.kt index a7439fa926..1c822ea14b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackDeploymentProps.kt @@ -274,7 +274,8 @@ public interface StackDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.StackDeploymentProps, - ) : CdkObject(cdkObject), StackDeploymentProps { + ) : CdkObject(cdkObject), + StackDeploymentProps { /** * Template path on disk to cloud assembly (cdk.out). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputReference.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputReference.kt index 87ee1000b0..bf6b6c683c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputReference.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputReference.kt @@ -21,12 +21,13 @@ import kotlin.String * } * public CodePipelineActionFactoryResult produceAction(IStage stage, ProduceActionOptions options) * { - * stage.addAction(LambdaInvokeAction.Builder.create() + * stage.addAction( + * LambdaInvokeAction.Builder.create() * .actionName(options.getActionName()) * .runOrder(options.getRunOrder()) * // Map the reference to the variable name the CDK has generated for you. - * .userParameters(Map.of("stackOutput", - * options.stackOutputsMap.toCodePipeline(this.stackOutputReference))) + * .userParameters(Map.of( + * "stackOutput", options.stackOutputsMap.toCodePipeline(this.stackOutputReference))) * .lambda(this.fn) * .build()); * return CodePipelineActionFactoryResult.builder().runOrdersConsumed(1).build(); diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputsMap.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputsMap.kt index 83f09b6b39..b4ad7d55b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputsMap.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackOutputsMap.kt @@ -6,7 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.String /** - * Translate stack outputs to Codepipline variable references. + * Translate stack outputs to CodePipeline variable references. * * Example: * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackSteps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackSteps.kt index aaa35a6f11..3713b0886c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackSteps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StackSteps.kt @@ -150,7 +150,8 @@ public interface StackSteps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.StackSteps, - ) : CdkObject(cdkObject), StackSteps { + ) : CdkObject(cdkObject), + StackSteps { /** * Steps that execute after stack is prepared but before stack is deployed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StageDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StageDeploymentProps.kt index 7b46d67156..2ded60a09a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StageDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/StageDeploymentProps.kt @@ -158,7 +158,8 @@ public interface StageDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.StageDeploymentProps, - ) : CdkObject(cdkObject), StageDeploymentProps { + ) : CdkObject(cdkObject), + StageDeploymentProps { /** * Additional steps to run after all of the stacks in the stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Step.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Step.kt index 2089c72a3c..f5b4e94a9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Step.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Step.kt @@ -33,7 +33,8 @@ import kotlin.collections.List * { * // This is where you control what type of Action gets added to the * // CodePipeline - * stage.addAction(JenkinsAction.Builder.create() + * stage.addAction( + * JenkinsAction.Builder.create() * // Copy 'actionName' and 'runOrder' from the options * .actionName(options.getActionName()) * .runOrder(options.getRunOrder()) @@ -51,7 +52,8 @@ import kotlin.collections.List */ public abstract class Step( cdkObject: software.amazon.awscdk.pipelines.Step, -) : CdkObject(cdkObject), IFileSetProducer { +) : CdkObject(cdkObject), + IFileSetProducer { /** * Add a dependency on another step. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Wave.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Wave.kt index 6aa343c129..895166c0ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Wave.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/Wave.kt @@ -19,10 +19,12 @@ import kotlin.jvm.JvmName * ``` * CodePipeline pipeline; * Wave europeWave = pipeline.addWave("Europe"); - * europeWave.addStage(MyApplicationStage.Builder.create(this, "Ireland") + * europeWave.addStage( + * MyApplicationStage.Builder.create(this, "Ireland") * .env(Environment.builder().region("eu-west-1").build()) * .build()); - * europeWave.addStage(MyApplicationStage.Builder.create(this, "Germany") + * europeWave.addStage( + * MyApplicationStage.Builder.create(this, "Germany") * .env(Environment.builder().region("eu-central-1").build()) * .build()); * ``` diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveOptions.kt index 6f5c465256..4651b662f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveOptions.kt @@ -113,7 +113,8 @@ public interface WaveOptions { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.WaveOptions, - ) : CdkObject(cdkObject), WaveOptions { + ) : CdkObject(cdkObject), + WaveOptions { /** * Additional steps to run after all of the stages in the wave. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveProps.kt index ea13e459c6..efa110da51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/pipelines/WaveProps.kt @@ -98,7 +98,8 @@ public interface WaveProps { private class Wrapper( cdkObject: software.amazon.awscdk.pipelines.WaveProps, - ) : CdkObject(cdkObject), WaveProps { + ) : CdkObject(cdkObject), + WaveProps { /** * Additional steps to run after all of the stages in the wave. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/Default.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/Default.kt index 69dd2ab708..c930c1c338 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/Default.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/Default.kt @@ -3,10 +3,18 @@ package io.cloudshiftdev.awscdk.regioninfo import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Deprecated import kotlin.String /** - * Provides default values for certain regional information points. + * (deprecated) Provides default values for certain regional information points. + * + * This class is no longer needed because service principals are no longer needed except in very + * specific cases + * that are handled in the IAM ServicePrincipal class. + * + * * Service principals are now globally `<SERVICE>.amazonaws.com`, use iam.ServicePrincipal + * instead. */ public open class Default( cdkObject: software.amazon.awscdk.regioninfo.Default, @@ -15,6 +23,7 @@ public open class Default( public val VPC_ENDPOINT_SERVICE_NAME_PREFIX: String = software.amazon.awscdk.regioninfo.Default.VPC_ENDPOINT_SERVICE_NAME_PREFIX + @Deprecated(message = "deprecated in CDK") public fun servicePrincipal( serviceFqn: String, region: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/FactName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/FactName.kt index 7455ed371e..d346aada66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/FactName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/FactName.kt @@ -3,6 +3,7 @@ package io.cloudshiftdev.awscdk.regioninfo import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Deprecated import kotlin.String /** @@ -48,6 +49,9 @@ public open class FactName( public val IS_OPT_IN_REGION: String = software.amazon.awscdk.regioninfo.FactName.IS_OPT_IN_REGION + public val LATEST_NODE_RUNTIME: String = + software.amazon.awscdk.regioninfo.FactName.LATEST_NODE_RUNTIME + public val PARTITION: String = software.amazon.awscdk.regioninfo.FactName.PARTITION public val S3_STATIC_WEBSITE_ENDPOINT: String = @@ -85,6 +89,7 @@ public open class FactName( software.amazon.awscdk.regioninfo.FactName.paramsAndSecretsLambdaLayer(version, architecture) + @Deprecated(message = "deprecated in CDK") public fun servicePrincipal(service: String): String = software.amazon.awscdk.regioninfo.FactName.servicePrincipal(service) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/IFact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/IFact.kt index a0a4d377ae..d52c97786e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/IFact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/IFact.kt @@ -29,7 +29,8 @@ public interface IFact { private class Wrapper( cdkObject: software.amazon.awscdk.regioninfo.IFact, - ) : CdkObject(cdkObject), IFact { + ) : CdkObject(cdkObject), + IFact { /** * The name of this fact. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/RegionInfo.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/RegionInfo.kt index 1c33693825..924db03eb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/RegionInfo.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/regioninfo/RegionInfo.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.regioninfo import io.cloudshiftdev.awscdk.common.CdkObject import kotlin.Boolean +import kotlin.Deprecated import kotlin.String import kotlin.collections.List import kotlin.collections.Map @@ -17,8 +18,7 @@ import kotlin.collections.Map * // Get the information for "eu-west-1": * RegionInfo region = RegionInfo.get("eu-west-1"); * // Access attributes: - * region.getS3StaticWebsiteEndpoint(); // s3-website-eu-west-1.amazonaws.com - * region.servicePrincipal("logs.amazonaws.com"); + * region.getS3StaticWebsiteEndpoint(); * ``` */ public open class RegionInfo( @@ -158,10 +158,12 @@ public open class RegionInfo( public open fun samlSignOnUrl(): String? = unwrap(this).getSamlSignOnUrl() /** - * The name of the service principal for a given service in this region. + * (deprecated) The name of the service principal for a given service in this region. * + * * Use `iam.ServicePrincipal.servicePrincipalName()` instead. * @param service the service name (e.g: s3.amazonaws.com). */ + @Deprecated(message = "deprecated in CDK") public open fun servicePrincipal(service: String): String? = unwrap(this).servicePrincipal(service) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzer.kt index e0c32744b7..2cc6288946 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzer.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnalyzer( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -552,7 +554,8 @@ public open class CfnAnalyzer( private class Wrapper( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty, - ) : CdkObject(cdkObject), AnalyzerConfigurationProperty { + ) : CdkObject(cdkObject), + AnalyzerConfigurationProperty { /** * Specifies the configuration of an unused access analyzer for an AWS organization or * account. @@ -685,7 +688,8 @@ public open class CfnAnalyzer( private class Wrapper( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer.ArchiveRuleProperty, - ) : CdkObject(cdkObject), ArchiveRuleProperty { + ) : CdkObject(cdkObject), + ArchiveRuleProperty { /** * The criteria for the rule. * @@ -899,7 +903,8 @@ public open class CfnAnalyzer( private class Wrapper( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * A "contains" condition to match for the rule. * @@ -1022,7 +1027,8 @@ public open class CfnAnalyzer( private class Wrapper( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty, - ) : CdkObject(cdkObject), UnusedAccessConfigurationProperty { + ) : CdkObject(cdkObject), + UnusedAccessConfigurationProperty { /** * The specified access age in days for which to generate findings for unused access. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzerProps.kt index 486c9401d1..b5dfc3a78f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/accessanalyzer/CfnAnalyzerProps.kt @@ -248,7 +248,8 @@ public interface CfnAnalyzerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.accessanalyzer.CfnAnalyzerProps, - ) : CdkObject(cdkObject), CfnAnalyzerProps { + ) : CdkObject(cdkObject), + CfnAnalyzerProps { /** * Contains information about the configuration of an unused access analyzer for an AWS * organization or account. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificate.kt index 397640ded2..4b06761a90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificate.kt @@ -144,7 +144,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -973,7 +974,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.ApiPassthroughProperty, - ) : CdkObject(cdkObject), ApiPassthroughProperty { + ) : CdkObject(cdkObject), + ApiPassthroughProperty { /** * Specifies X.509 extension information for a certificate. * @@ -1089,7 +1091,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.CustomAttributeProperty, - ) : CdkObject(cdkObject), CustomAttributeProperty { + ) : CdkObject(cdkObject), + CustomAttributeProperty { /** * Specifies the object identifier (OID) of the attribute type of the relative distinguished * name (RDN). @@ -1240,7 +1243,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.CustomExtensionProperty, - ) : CdkObject(cdkObject), CustomExtensionProperty { + ) : CdkObject(cdkObject), + CustomExtensionProperty { /** * Specifies the critical flag of the X.509 extension. * @@ -1357,7 +1361,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.EdiPartyNameProperty, - ) : CdkObject(cdkObject), EdiPartyNameProperty { + ) : CdkObject(cdkObject), + EdiPartyNameProperty { /** * Specifies the name assigner. * @@ -1475,7 +1480,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.ExtendedKeyUsageProperty, - ) : CdkObject(cdkObject), ExtendedKeyUsageProperty { + ) : CdkObject(cdkObject), + ExtendedKeyUsageProperty { /** * Specifies a custom `ExtendedKeyUsage` with an object identifier (OID). * @@ -1938,7 +1944,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.ExtensionsProperty, - ) : CdkObject(cdkObject), ExtensionsProperty { + ) : CdkObject(cdkObject), + ExtensionsProperty { /** * Contains a sequence of one or more policy information terms, each of which consists of an * object identifier (OID) and optional qualifiers. @@ -2365,7 +2372,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.GeneralNameProperty, - ) : CdkObject(cdkObject), GeneralNameProperty { + ) : CdkObject(cdkObject), + GeneralNameProperty { /** * Contains information about the certificate subject. * @@ -2792,7 +2800,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.KeyUsageProperty, - ) : CdkObject(cdkObject), KeyUsageProperty { + ) : CdkObject(cdkObject), + KeyUsageProperty { /** * Key can be used to sign CRLs. * @@ -2969,7 +2978,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.OtherNameProperty, - ) : CdkObject(cdkObject), OtherNameProperty { + ) : CdkObject(cdkObject), + OtherNameProperty { /** * Specifies an OID. * @@ -3124,7 +3134,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.PolicyInformationProperty, - ) : CdkObject(cdkObject), PolicyInformationProperty { + ) : CdkObject(cdkObject), + PolicyInformationProperty { /** * Specifies the object identifier (OID) of the certificate policy under which the certificate * was issued. @@ -3278,7 +3289,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.PolicyQualifierInfoProperty, - ) : CdkObject(cdkObject), PolicyQualifierInfoProperty { + ) : CdkObject(cdkObject), + PolicyQualifierInfoProperty { /** * Identifies the qualifier modifying a `CertPolicyId` . * @@ -3373,7 +3385,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.QualifierProperty, - ) : CdkObject(cdkObject), QualifierProperty { + ) : CdkObject(cdkObject), + QualifierProperty { /** * Contains a pointer to a certification practice statement (CPS) published by the CA. * @@ -3845,7 +3858,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.SubjectProperty, - ) : CdkObject(cdkObject), SubjectProperty { + ) : CdkObject(cdkObject), + SubjectProperty { /** * For CA and end-entity certificates in a private PKI, the common name (CN) can be any string * within the length limit. @@ -4070,7 +4084,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificate.ValidityProperty, - ) : CdkObject(cdkObject), ValidityProperty { + ) : CdkObject(cdkObject), + ValidityProperty { /** * Specifies whether the `Value` parameter represents days, months, or years. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthority.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthority.kt index 507a7773b1..b9a84de7f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthority.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthority.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificateAuthority( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -164,70 +166,30 @@ public open class CfnCertificateAuthority( } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol - * (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation - * information about certificates as requested by clients, and a CRL contains an updated list of - * certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS - * Private CA User Guide* . + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. */ public open fun revocationConfiguration(): Any? = unwrap(this).getRevocationConfiguration() /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol - * (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation - * information about certificates as requested by clients, and a CRL contains an updated list of - * certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS - * Private CA User Guide* . + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. */ public open fun revocationConfiguration(`value`: IResolvable) { unwrap(this).setRevocationConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol - * (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation - * information about certificates as requested by clients, and a CRL contains an updated list of - * certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS - * Private CA User Guide* . + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. */ public open fun revocationConfiguration(`value`: RevocationConfigurationProperty) { unwrap(this).setRevocationConfiguration(`value`.let(RevocationConfigurationProperty.Companion::unwrap)) } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol - * (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation - * information about certificates as requested by clients, and a CRL contains an updated list of - * certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS - * Private CA User Guide* . + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("872c32b575520dea0d4be4d42390262794c9658a7cb0ff2a4cf08e81a1dbdebf") @@ -398,134 +360,35 @@ public open class CfnCertificateAuthority( public fun keyStorageSecurityStandard(keyStorageSecurityStandard: String) /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ public fun revocationConfiguration(revocationConfiguration: IResolvable) /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ public fun revocationConfiguration(revocationConfiguration: RevocationConfigurationProperty) /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7b3e444ce362ba61faaa26b8350cddfed08d805dca8f5b73a4b307724c9fed74") @@ -706,138 +569,39 @@ public open class CfnCertificateAuthority( } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ override fun revocationConfiguration(revocationConfiguration: IResolvable) { cdkBuilder.revocationConfiguration(revocationConfiguration.let(IResolvable.Companion::unwrap)) } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ override fun revocationConfiguration(revocationConfiguration: RevocationConfigurationProperty) { cdkBuilder.revocationConfiguration(revocationConfiguration.let(RevocationConfigurationProperty.Companion::unwrap)) } /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7b3e444ce362ba61faaa26b8350cddfed08d805dca8f5b73a4b307724c9fed74") @@ -1141,7 +905,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.AccessDescriptionProperty, - ) : CdkObject(cdkObject), AccessDescriptionProperty { + ) : CdkObject(cdkObject), + AccessDescriptionProperty { /** * The location of `AccessDescription` information. * @@ -1263,7 +1028,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.AccessMethodProperty, - ) : CdkObject(cdkObject), AccessMethodProperty { + ) : CdkObject(cdkObject), + AccessMethodProperty { /** * Specifies the `AccessMethod` . * @@ -1707,7 +1473,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.CrlConfigurationProperty, - ) : CdkObject(cdkObject), CrlConfigurationProperty { + ) : CdkObject(cdkObject), + CrlConfigurationProperty { /** * Configures the default behavior of the CRL Distribution Point extension for certificates * issued by your CA. @@ -1938,7 +1705,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.CrlDistributionPointExtensionConfigurationProperty, - ) : CdkObject(cdkObject), CrlDistributionPointExtensionConfigurationProperty { + ) : CdkObject(cdkObject), + CrlDistributionPointExtensionConfigurationProperty { /** * Configures whether the CRL Distribution Point extension should be populated with the * default URL to the CRL. @@ -2188,7 +1956,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.CsrExtensionsProperty, - ) : CdkObject(cdkObject), CsrExtensionsProperty { + ) : CdkObject(cdkObject), + CsrExtensionsProperty { /** * Indicates the purpose of the certificate and of the key contained in the certificate. * @@ -2305,7 +2074,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.CustomAttributeProperty, - ) : CdkObject(cdkObject), CustomAttributeProperty { + ) : CdkObject(cdkObject), + CustomAttributeProperty { /** * Specifies the object identifier (OID) of the attribute type of the relative distinguished * name (RDN). @@ -2418,7 +2188,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.EdiPartyNameProperty, - ) : CdkObject(cdkObject), EdiPartyNameProperty { + ) : CdkObject(cdkObject), + EdiPartyNameProperty { /** * Specifies the name assigner. * @@ -2810,7 +2581,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.GeneralNameProperty, - ) : CdkObject(cdkObject), GeneralNameProperty { + ) : CdkObject(cdkObject), + GeneralNameProperty { /** * Contains information about the certificate subject. * @@ -3238,7 +3010,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.KeyUsageProperty, - ) : CdkObject(cdkObject), KeyUsageProperty { + ) : CdkObject(cdkObject), + KeyUsageProperty { /** * Key can be used to sign CRLs. * @@ -3462,7 +3235,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.OcspConfigurationProperty, - ) : CdkObject(cdkObject), OcspConfigurationProperty { + ) : CdkObject(cdkObject), + OcspConfigurationProperty { /** * Flag enabling use of the Online Certificate Status Protocol (OCSP) for validating * certificate revocation status. @@ -3585,7 +3359,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.OtherNameProperty, - ) : CdkObject(cdkObject), OtherNameProperty { + ) : CdkObject(cdkObject), + OtherNameProperty { /** * Specifies an OID. * @@ -3633,8 +3408,7 @@ public open class CfnCertificateAuthority( * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS * Private CA User Guide* . * - * - * The following requirements apply to revocation configurations. + * The following requirements and constraints apply to revocation configurations. * * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. @@ -3645,7 +3419,9 @@ public open class CfnCertificateAuthority( * restrictions on the use of special characters in a CNAME. * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol * prefix such as "http://" or "https://". - * + * * To revoke a certificate, delete the resource from your template, and call the AWS Private CA + * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) + * API and specify the resource's certificate authority ARN. * * Example: * @@ -3803,7 +3579,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.RevocationConfigurationProperty, - ) : CdkObject(cdkObject), RevocationConfigurationProperty { + ) : CdkObject(cdkObject), + RevocationConfigurationProperty { /** * Configuration of the certificate revocation list (CRL), if any, maintained by your private * CA. @@ -4261,7 +4038,8 @@ public open class CfnCertificateAuthority( private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthority.SubjectProperty, - ) : CdkObject(cdkObject), SubjectProperty { + ) : CdkObject(cdkObject), + SubjectProperty { /** * Fully qualified domain name (FQDN) associated with the certificate subject. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivation.kt index 30c691e0b1..13996d09a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivation.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificateAuthorityActivation( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthorityActivation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivationProps.kt index f48d964a33..9a4a3766f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityActivationProps.kt @@ -127,7 +127,8 @@ public interface CfnCertificateAuthorityActivationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthorityActivationProps, - ) : CdkObject(cdkObject), CfnCertificateAuthorityActivationProps { + ) : CdkObject(cdkObject), + CfnCertificateAuthorityActivationProps { /** * The Base64 PEM-encoded certificate authority certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityProps.kt index f60206b2e8..45aa85d9fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateAuthorityProps.kt @@ -85,32 +85,8 @@ public interface CfnCertificateAuthorityProps { public fun keyStorageSecurityStandard(): String? = unwrap(this).getKeyStorageSecurityStandard() /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol - * (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation - * information about certificates as requested by clients, and a CRL contains an updated list of - * certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the *AWS - * Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) */ @@ -216,87 +192,24 @@ public interface CfnCertificateAuthorityProps { public fun keyStorageSecurityStandard(keyStorageSecurityStandard: String) /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ public fun revocationConfiguration(revocationConfiguration: IResolvable) /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ public fun revocationConfiguration(revocationConfiguration: CfnCertificateAuthority.RevocationConfigurationProperty) /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2b01af94adf2e175ad0dd59a68765bc3e45738e6e3241377373ef3329455eb6") @@ -424,60 +337,18 @@ public interface CfnCertificateAuthorityProps { } /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ override fun revocationConfiguration(revocationConfiguration: IResolvable) { cdkBuilder.revocationConfiguration(revocationConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ override fun revocationConfiguration(revocationConfiguration: CfnCertificateAuthority.RevocationConfigurationProperty) { @@ -485,30 +356,9 @@ public interface CfnCertificateAuthorityProps { } /** - * @param revocationConfiguration Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". + * @param revocationConfiguration Information about the Online Certificate Status Protocol + * (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private + * CA. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2b01af94adf2e175ad0dd59a68765bc3e45738e6e3241377373ef3329455eb6") @@ -595,7 +445,8 @@ public interface CfnCertificateAuthorityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateAuthorityProps, - ) : CdkObject(cdkObject), CfnCertificateAuthorityProps { + ) : CdkObject(cdkObject), + CfnCertificateAuthorityProps { /** * Specifies information to be added to the extension section of the certificate signing request * (CSR). @@ -637,32 +488,8 @@ public interface CfnCertificateAuthorityProps { unwrap(this).getKeyStorageSecurityStandard() /** - * Certificate revocation information used by the - * [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html) - * and - * [UpdateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html) - * actions. Your private certificate authority (CA) can configure Online Certificate Status - * Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns - * validation information about certificates as requested by clients, and a CRL contains an updated - * list of certificates revoked by your CA. For more information, see - * [RevokeCertificate](https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html) - * in the *AWS Private CA API Reference* and [Setting up a certificate revocation - * method](https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html) in the - * *AWS Private CA User Guide* . - * - * - * The following requirements apply to revocation configurations. - * - * * A configuration disabling CRLs or OCSP must contain only the `Enabled=False` parameter, and - * will fail if other parameters such as `CustomCname` or `ExpirationInDays` are included. - * * In a CRL configuration, the `S3BucketName` parameter must conform to the [Amazon S3 bucket - * naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) . - * * A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must - * conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) - * restrictions on the use of special characters in a CNAME. - * * In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol - * prefix such as "http://" or "https://". - * + * Information about the Online Certificate Status Protocol (OCSP) configuration or certificate + * revocation list (CRL) created and maintained by your private CA. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html#cfn-acmpca-certificateauthority-revocationconfiguration) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateProps.kt index 756b4d5d1f..6643ec601c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnCertificateProps.kt @@ -491,7 +491,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * Specifies X.509 certificate information to be included in the issued certificate. An * `APIPassthrough` or `APICSRPassthrough` template variant must be selected, or else this diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermission.kt index fd5ab9a883..86c777efdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermission.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPermission( cdkObject: software.amazon.awscdk.services.acmpca.CfnPermission, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermissionProps.kt index 1ec6dd25cf..d61ed01673 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/CfnPermissionProps.kt @@ -144,7 +144,8 @@ public interface CfnPermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.CfnPermissionProps, - ) : CdkObject(cdkObject), CfnPermissionProps { + ) : CdkObject(cdkObject), + CfnPermissionProps { /** * The private CA actions that can be performed by the designated AWS service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/ICertificateAuthority.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/ICertificateAuthority.kt index 70aa39c552..f48cc2eda2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/ICertificateAuthority.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/acmpca/ICertificateAuthority.kt @@ -22,7 +22,8 @@ public interface ICertificateAuthority : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.acmpca.ICertificateAuthority, - ) : CdkObject(cdkObject), ICertificateAuthority { + ) : CdkObject(cdkObject), + ICertificateAuthority { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBroker.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBroker.kt index b4a2258aef..47237f1b0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBroker.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBroker.kt @@ -59,11 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.amazonmq.*; * CfnBroker cfnBroker = CfnBroker.Builder.create(this, "MyCfnBroker") - * .autoMinorVersionUpgrade(false) * .brokerName("brokerName") * .deploymentMode("deploymentMode") * .engineType("engineType") - * .engineVersion("engineVersion") * .hostInstanceType("hostInstanceType") * .publiclyAccessible(false) * .users(List.of(UserProperty.builder() @@ -76,6 +74,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * // the properties below are optional * .authenticationStrategy("authenticationStrategy") + * .autoMinorVersionUpgrade(false) * .configuration(ConfigurationIdProperty.builder() * .id("id") * .revision(123) @@ -87,6 +86,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .kmsKeyId("kmsKeyId") * .build()) + * .engineVersion("engineVersion") * .ldapServerMetadata(LdapServerMetadataProperty.builder() * .hosts(List.of("hosts")) * .roleBase("roleBase") @@ -124,7 +124,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBroker( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -228,7 +230,7 @@ public open class CfnBroker( * Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are * released and supported by Amazon MQ. */ - public open fun autoMinorVersionUpgrade(): Any = unwrap(this).getAutoMinorVersionUpgrade() + public open fun autoMinorVersionUpgrade(): Any? = unwrap(this).getAutoMinorVersionUpgrade() /** * Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are @@ -370,7 +372,7 @@ public open class CfnBroker( /** * The version of the broker engine. */ - public open fun engineVersion(): String = unwrap(this).getEngineVersion() + public open fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The version of the broker engine. @@ -1631,7 +1633,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.ConfigurationIdProperty, - ) : CdkObject(cdkObject), ConfigurationIdProperty { + ) : CdkObject(cdkObject), + ConfigurationIdProperty { /** * The unique ID that Amazon MQ generates for the configuration. * @@ -1769,7 +1772,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.EncryptionOptionsProperty, - ) : CdkObject(cdkObject), EncryptionOptionsProperty { + ) : CdkObject(cdkObject), + EncryptionOptionsProperty { /** * The customer master key (CMK) to use for the A AWS KMS (KMS). * @@ -2217,7 +2221,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.LdapServerMetadataProperty, - ) : CdkObject(cdkObject), LdapServerMetadataProperty { + ) : CdkObject(cdkObject), + LdapServerMetadataProperty { /** * Specifies the location of the LDAP server such as AWS Directory Service for Microsoft * Active Directory . @@ -2464,7 +2469,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.LogListProperty, - ) : CdkObject(cdkObject), LogListProperty { + ) : CdkObject(cdkObject), + LogListProperty { /** * Enables audit logging. * @@ -2597,7 +2603,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.MaintenanceWindowProperty, - ) : CdkObject(cdkObject), MaintenanceWindowProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowProperty { /** * The day of the week. * @@ -2711,7 +2718,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The key in a key-value pair. * @@ -2980,7 +2988,8 @@ public open class CfnBroker( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBroker.UserProperty, - ) : CdkObject(cdkObject), UserProperty { + ) : CdkObject(cdkObject), + UserProperty { /** * Enables access to the ActiveMQ web console for the ActiveMQ user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBrokerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBrokerProps.kt index 06ef3fe1a7..587ed386b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBrokerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnBrokerProps.kt @@ -23,11 +23,9 @@ import kotlin.jvm.JvmName * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.amazonmq.*; * CfnBrokerProps cfnBrokerProps = CfnBrokerProps.builder() - * .autoMinorVersionUpgrade(false) * .brokerName("brokerName") * .deploymentMode("deploymentMode") * .engineType("engineType") - * .engineVersion("engineVersion") * .hostInstanceType("hostInstanceType") * .publiclyAccessible(false) * .users(List.of(UserProperty.builder() @@ -40,6 +38,7 @@ import kotlin.jvm.JvmName * .build())) * // the properties below are optional * .authenticationStrategy("authenticationStrategy") + * .autoMinorVersionUpgrade(false) * .configuration(ConfigurationIdProperty.builder() * .id("id") * .revision(123) @@ -51,6 +50,7 @@ import kotlin.jvm.JvmName * // the properties below are optional * .kmsKeyId("kmsKeyId") * .build()) + * .engineVersion("engineVersion") * .ldapServerMetadata(LdapServerMetadataProperty.builder() * .hosts(List.of("hosts")) * .roleBase("roleBase") @@ -105,7 +105,7 @@ public interface CfnBrokerProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-autominorversionupgrade) */ - public fun autoMinorVersionUpgrade(): Any + public fun autoMinorVersionUpgrade(): Any? = unwrap(this).getAutoMinorVersionUpgrade() /** * The name of the broker. @@ -189,7 +189,7 @@ public interface CfnBrokerProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-engineversion) */ - public fun engineVersion(): String + public fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The broker's instance type. @@ -301,7 +301,7 @@ public interface CfnBrokerProps { /** * @param autoMinorVersionUpgrade Enables automatic upgrades to new minor versions for brokers, - * as new broker engine versions are released and supported by Amazon MQ. + * as new broker engine versions are released and supported by Amazon MQ. * Automatic upgrades occur during the scheduled maintenance window of the broker or after a * manual broker reboot. */ @@ -309,7 +309,7 @@ public interface CfnBrokerProps { /** * @param autoMinorVersionUpgrade Enables automatic upgrades to new minor versions for brokers, - * as new broker engine versions are released and supported by Amazon MQ. + * as new broker engine versions are released and supported by Amazon MQ. * Automatic upgrades occur during the scheduled maintenance window of the broker or after a * manual broker reboot. */ @@ -397,7 +397,7 @@ public interface CfnBrokerProps { public fun engineType(engineType: String) /** - * @param engineVersion The version of the broker engine. + * @param engineVersion The version of the broker engine. * For a list of supported engine versions, see * [Engine](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html) in the * *Amazon MQ Developer Guide* . @@ -593,7 +593,7 @@ public interface CfnBrokerProps { /** * @param autoMinorVersionUpgrade Enables automatic upgrades to new minor versions for brokers, - * as new broker engine versions are released and supported by Amazon MQ. + * as new broker engine versions are released and supported by Amazon MQ. * Automatic upgrades occur during the scheduled maintenance window of the broker or after a * manual broker reboot. */ @@ -603,7 +603,7 @@ public interface CfnBrokerProps { /** * @param autoMinorVersionUpgrade Enables automatic upgrades to new minor versions for brokers, - * as new broker engine versions are released and supported by Amazon MQ. + * as new broker engine versions are released and supported by Amazon MQ. * Automatic upgrades occur during the scheduled maintenance window of the broker or after a * manual broker reboot. */ @@ -713,7 +713,7 @@ public interface CfnBrokerProps { } /** - * @param engineVersion The version of the broker engine. + * @param engineVersion The version of the broker engine. * For a list of supported engine versions, see * [Engine](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html) in the * *Amazon MQ Developer Guide* . @@ -936,7 +936,8 @@ public interface CfnBrokerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnBrokerProps, - ) : CdkObject(cdkObject), CfnBrokerProps { + ) : CdkObject(cdkObject), + CfnBrokerProps { /** * Optional. * @@ -955,7 +956,7 @@ public interface CfnBrokerProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-autominorversionupgrade) */ - override fun autoMinorVersionUpgrade(): Any = unwrap(this).getAutoMinorVersionUpgrade() + override fun autoMinorVersionUpgrade(): Any? = unwrap(this).getAutoMinorVersionUpgrade() /** * The name of the broker. @@ -1039,7 +1040,7 @@ public interface CfnBrokerProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-engineversion) */ - override fun engineVersion(): String = unwrap(this).getEngineVersion() + override fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The broker's instance type. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfiguration.kt index bfc727a16d..728b5e23a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfiguration.kt @@ -35,11 +35,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnConfiguration cfnConfiguration = CfnConfiguration.Builder.create(this, "MyCfnConfiguration") * .data("data") * .engineType("engineType") - * .engineVersion("engineVersion") * .name("name") * // the properties below are optional * .authenticationStrategy("authenticationStrategy") * .description("description") + * .engineVersion("engineVersion") * .tags(List.of(TagsEntryProperty.builder() * .key("key") * .value("value") @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfiguration( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -140,7 +142,7 @@ public open class CfnConfiguration( /** * The version of the broker engine. */ - public open fun engineVersion(): String = unwrap(this).getEngineVersion() + public open fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The version of the broker engine. @@ -469,7 +471,8 @@ public open class CfnConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfiguration.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The key in a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociation.kt index c70c643914..fe3fd83de6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociation.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationAssociation( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfigurationAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -310,7 +311,8 @@ public open class CfnConfigurationAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfigurationAssociation.ConfigurationIdProperty, - ) : CdkObject(cdkObject), ConfigurationIdProperty { + ) : CdkObject(cdkObject), + ConfigurationIdProperty { /** * The unique ID that Amazon MQ generates for the configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociationProps.kt index 12230559e5..698bde087e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationAssociationProps.kt @@ -117,7 +117,8 @@ public interface CfnConfigurationAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfigurationAssociationProps, - ) : CdkObject(cdkObject), CfnConfigurationAssociationProps { + ) : CdkObject(cdkObject), + CfnConfigurationAssociationProps { /** * The broker to associate with a configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationProps.kt index 923b940431..06f574e0dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amazonmq/CfnConfigurationProps.kt @@ -21,11 +21,11 @@ import kotlin.collections.List * CfnConfigurationProps cfnConfigurationProps = CfnConfigurationProps.builder() * .data("data") * .engineType("engineType") - * .engineVersion("engineVersion") * .name("name") * // the properties below are optional * .authenticationStrategy("authenticationStrategy") * .description("description") + * .engineVersion("engineVersion") * .tags(List.of(TagsEntryProperty.builder() * .key("key") * .value("value") @@ -77,7 +77,7 @@ public interface CfnConfigurationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-engineversion) */ - public fun engineVersion(): String + public fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The name of the configuration. @@ -126,7 +126,7 @@ public interface CfnConfigurationProps { public fun engineType(engineType: String) /** - * @param engineVersion The version of the broker engine. + * @param engineVersion The version of the broker engine. * For a list of supported engine versions, see * [](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html) */ @@ -186,7 +186,7 @@ public interface CfnConfigurationProps { } /** - * @param engineVersion The version of the broker engine. + * @param engineVersion The version of the broker engine. * For a list of supported engine versions, see * [](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html) */ @@ -221,7 +221,8 @@ public interface CfnConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amazonmq.CfnConfigurationProps, - ) : CdkObject(cdkObject), CfnConfigurationProps { + ) : CdkObject(cdkObject), + CfnConfigurationProps { /** * Optional. * @@ -263,7 +264,7 @@ public interface CfnConfigurationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-engineversion) */ - override fun engineVersion(): String = unwrap(this).getEngineVersion() + override fun engineVersion(): String? = unwrap(this).getEngineVersion() /** * The name of the configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnApp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnApp.kt index 7f0584fc61..fc669d22e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnApp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnApp.kt @@ -62,6 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .username("username") * .build()) * .buildSpec("buildSpec") + * .cacheConfig(CacheConfigProperty.builder() + * .type("type") + * .build()) * .customHeaders("customHeaders") * .customRules(List.of(CustomRuleProperty.builder() * .source("source") @@ -91,7 +94,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApp( cdkObject: software.amazon.awscdk.services.amplify.CfnApp, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -207,6 +212,33 @@ public open class CfnApp( unwrap(this).setBuildSpec(`value`) } + /** + * The cache configuration for the Amplify app. + */ + public open fun cacheConfig(): Any? = unwrap(this).getCacheConfig() + + /** + * The cache configuration for the Amplify app. + */ + public open fun cacheConfig(`value`: IResolvable) { + unwrap(this).setCacheConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The cache configuration for the Amplify app. + */ + public open fun cacheConfig(`value`: CacheConfigProperty) { + unwrap(this).setCacheConfig(`value`.let(CacheConfigProperty.Companion::unwrap)) + } + + /** + * The cache configuration for the Amplify app. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f187e29782841bfc5ac88c2ec4036d6538eee77f7b0634a65170c391e0f0c8a7") + public open fun cacheConfig(`value`: CacheConfigProperty.Builder.() -> Unit): Unit = + cacheConfig(CacheConfigProperty(`value`)) + /** * The custom HTTP headers for an Amplify app. */ @@ -493,6 +525,41 @@ public open class CfnApp( */ public fun buildSpec(buildSpec: String) + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + public fun cacheConfig(cacheConfig: IResolvable) + + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + public fun cacheConfig(cacheConfig: CacheConfigProperty) + + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("521c6fc8926907c5eeb19f9119632538d1ab7beade283438a0e4e9300c2d5b59") + public fun cacheConfig(cacheConfig: CacheConfigProperty.Builder.() -> Unit) + /** * The custom HTTP headers for an Amplify app. * @@ -640,6 +707,13 @@ public open class CfnApp( * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original * SSR support only, set the platform type to `WEB_DYNAMIC` . * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform) * @param platform The platform for the Amplify app. */ @@ -784,6 +858,46 @@ public open class CfnApp( cdkBuilder.buildSpec(buildSpec) } + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + override fun cacheConfig(cacheConfig: IResolvable) { + cdkBuilder.cacheConfig(cacheConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + override fun cacheConfig(cacheConfig: CacheConfigProperty) { + cdkBuilder.cacheConfig(cacheConfig.let(CacheConfigProperty.Companion::unwrap)) + } + + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + * @param cacheConfig The cache configuration for the Amplify app. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("521c6fc8926907c5eeb19f9119632538d1ab7beade283438a0e4e9300c2d5b59") + override fun cacheConfig(cacheConfig: CacheConfigProperty.Builder.() -> Unit): Unit = + cacheConfig(CacheConfigProperty(cacheConfig)) + /** * The custom HTTP headers for an Amplify app. * @@ -954,6 +1068,13 @@ public open class CfnApp( * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original * SSR support only, set the platform type to `WEB_DYNAMIC` . * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform) * @param platform The platform for the Amplify app. */ @@ -1513,7 +1634,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnApp.AutoBranchCreationConfigProperty, - ) : CdkObject(cdkObject), AutoBranchCreationConfigProperty { + ) : CdkObject(cdkObject), + AutoBranchCreationConfigProperty { /** * Automated branch creation glob patterns for the Amplify app. * @@ -1751,7 +1873,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnApp.BasicAuthConfigProperty, - ) : CdkObject(cdkObject), BasicAuthConfigProperty { + ) : CdkObject(cdkObject), + BasicAuthConfigProperty { /** * Enables basic authorization for the Amplify app's branches. * @@ -1792,6 +1915,117 @@ public open class CfnApp( } } + /** + * Describes the cache configuration for an Amplify app. + * + * For more information about how Amplify applies an optimal cache configuration for your app + * based on the type of content that is being served, see [Managing cache + * configuration](https://docs.aws.amazon.com/amplify/latest/userguide/managing-cache-configuration) + * in the *Amplify User guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.amplify.*; + * CacheConfigProperty cacheConfigProperty = CacheConfigProperty.builder() + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html) + */ + public interface CacheConfigProperty { + /** + * The type of cache configuration to use for an Amplify app. + * + * The `AMPLIFY_MANAGED` cache configuration automatically applies an optimized cache + * configuration for your app based on its platform, routing rules, and rewrite rules. This is the + * default setting. + * + * The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the same as `AMPLIFY_MANAGED` , + * except that it excludes all cookies from the cache key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html#cfn-amplify-app-cacheconfig-type) + */ + public fun type(): String? = unwrap(this).getType() + + /** + * A builder for [CacheConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param type The type of cache configuration to use for an Amplify app. + * The `AMPLIFY_MANAGED` cache configuration automatically applies an optimized cache + * configuration for your app based on its platform, routing rules, and rewrite rules. This is + * the default setting. + * + * The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the same as `AMPLIFY_MANAGED` + * , except that it excludes all cookies from the cache key. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty.Builder = + software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty.builder() + + /** + * @param type The type of cache configuration to use for an Amplify app. + * The `AMPLIFY_MANAGED` cache configuration automatically applies an optimized cache + * configuration for your app based on its platform, routing rules, and rewrite rules. This is + * the default setting. + * + * The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the same as `AMPLIFY_MANAGED` + * , except that it excludes all cookies from the cache key. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty, + ) : CdkObject(cdkObject), + CacheConfigProperty { + /** + * The type of cache configuration to use for an Amplify app. + * + * The `AMPLIFY_MANAGED` cache configuration automatically applies an optimized cache + * configuration for your app based on its platform, routing rules, and rewrite rules. This is + * the default setting. + * + * The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the same as `AMPLIFY_MANAGED` + * , except that it excludes all cookies from the cache key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-cacheconfig.html#cfn-amplify-app-cacheconfig-type) + */ + override fun type(): String? = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CacheConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty): + CacheConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? CacheConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CacheConfigProperty): + software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty + } + } + /** * The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies. * @@ -1927,7 +2161,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnApp.CustomRuleProperty, - ) : CdkObject(cdkObject), CustomRuleProperty { + ) : CdkObject(cdkObject), + CustomRuleProperty { /** * The condition for a URL rewrite or redirect rule, such as a country code. * @@ -2056,7 +2291,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnApp.EnvironmentVariableProperty, - ) : CdkObject(cdkObject), EnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EnvironmentVariableProperty { /** * The environment variable name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnAppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnAppProps.kt index 43aefb6da4..38f0cb7b8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnAppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnAppProps.kt @@ -53,6 +53,9 @@ import kotlin.jvm.JvmName * .username("username") * .build()) * .buildSpec("buildSpec") + * .cacheConfig(CacheConfigProperty.builder() + * .type("type") + * .build()) * .customHeaders("customHeaders") * .customRules(List.of(CustomRuleProperty.builder() * .source("source") @@ -126,6 +129,16 @@ public interface CfnAppProps { */ public fun buildSpec(): String? = unwrap(this).getBuildSpec() + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + */ + public fun cacheConfig(): Any? = unwrap(this).getCacheConfig() + /** * The custom HTTP headers for an Amplify app. * @@ -210,6 +223,13 @@ public interface CfnAppProps { * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original SSR * support only, set the platform type to `WEB_DYNAMIC` . * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform) */ public fun platform(): String? = unwrap(this).getPlatform() @@ -298,6 +318,29 @@ public interface CfnAppProps { */ public fun buildSpec(buildSpec: String) + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + public fun cacheConfig(cacheConfig: IResolvable) + + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + public fun cacheConfig(cacheConfig: CfnApp.CacheConfigProperty) + + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("614caff08928827b55f5fb797769eb439bc2d9249162360ad7db313ff29cccc6") + public fun cacheConfig(cacheConfig: CfnApp.CacheConfigProperty.Builder.() -> Unit) + /** * @param customHeaders The custom HTTP headers for an Amplify app. */ @@ -396,6 +439,13 @@ public interface CfnAppProps { * For a static app, set the platform type to `WEB` . For a dynamic server-side rendered (SSR) * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original * SSR support only, set the platform type to `WEB_DYNAMIC` . + * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . */ public fun platform(platform: String) @@ -500,6 +550,34 @@ public interface CfnAppProps { cdkBuilder.buildSpec(buildSpec) } + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + override fun cacheConfig(cacheConfig: IResolvable) { + cdkBuilder.cacheConfig(cacheConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + override fun cacheConfig(cacheConfig: CfnApp.CacheConfigProperty) { + cdkBuilder.cacheConfig(cacheConfig.let(CfnApp.CacheConfigProperty.Companion::unwrap)) + } + + /** + * @param cacheConfig The cache configuration for the Amplify app. + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("614caff08928827b55f5fb797769eb439bc2d9249162360ad7db313ff29cccc6") + override fun cacheConfig(cacheConfig: CfnApp.CacheConfigProperty.Builder.() -> Unit): Unit = + cacheConfig(CfnApp.CacheConfigProperty(cacheConfig)) + /** * @param customHeaders The custom HTTP headers for an Amplify app. */ @@ -621,6 +699,13 @@ public interface CfnAppProps { * For a static app, set the platform type to `WEB` . For a dynamic server-side rendered (SSR) * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original * SSR support only, set the platform type to `WEB_DYNAMIC` . + * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . */ override fun platform(platform: String) { cdkBuilder.platform(platform) @@ -650,7 +735,8 @@ public interface CfnAppProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnAppProps, - ) : CdkObject(cdkObject), CfnAppProps { + ) : CdkObject(cdkObject), + CfnAppProps { /** * The personal access token for a GitHub repository for an Amplify app. * @@ -696,6 +782,16 @@ public interface CfnAppProps { */ override fun buildSpec(): String? = unwrap(this).getBuildSpec() + /** + * The cache configuration for the Amplify app. + * + * If you don't specify the cache configuration `type` , Amplify uses the default + * `AMPLIFY_MANAGED` setting. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-cacheconfig) + */ + override fun cacheConfig(): Any? = unwrap(this).getCacheConfig() + /** * The custom HTTP headers for an Amplify app. * @@ -780,6 +876,13 @@ public interface CfnAppProps { * app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original * SSR support only, set the platform type to `WEB_DYNAMIC` . * + * If you are deploying an SSG only app with Next.js version 14 or later, you must set the + * platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the + * application's build settings. For an example of the build specification settings, see [Amplify + * build settings for a Next.js 14 SSG + * application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) + * in the *Amplify Hosting User Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-platform) */ override fun platform(): String? = unwrap(this).getPlatform() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranch.kt index 97c179096d..5c89363fab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranch.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBranch( cdkObject: software.amazon.awscdk.services.amplify.CfnBranch, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -106,26 +108,34 @@ public open class CfnBranch( public open fun attrBranchName(): String = unwrap(this).getAttrBranchName() /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. + * + * Use for a backend created from an AWS CloudFormation stack. */ public open fun backend(): Any? = unwrap(this).getBackend() /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. + * + * Use for a backend created from an AWS CloudFormation stack. */ public open fun backend(`value`: IResolvable) { unwrap(this).setBackend(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. + * + * Use for a backend created from an AWS CloudFormation stack. */ public open fun backend(`value`: BackendProperty) { unwrap(this).setBackend(`value`.let(BackendProperty.Companion::unwrap)) } /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. + * + * Use for a backend created from an AWS CloudFormation stack. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f6972dc5b70fdec993fe4752c385a82a78e9b4405c4d956c1400f41c72ae0767") @@ -365,26 +375,41 @@ public open class CfnBranch( public fun appId(appId: String) /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ public fun backend(backend: IResolvable) /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ public fun backend(backend: BackendProperty) /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("99ab4a4914f072f0a0e0c21db94a5879d3b7a68a5b44fd2af1d426d83f87aef0") @@ -631,30 +656,45 @@ public open class CfnBranch( } /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ override fun backend(backend: IResolvable) { cdkBuilder.backend(backend.let(IResolvable.Companion::unwrap)) } /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ override fun backend(backend: BackendProperty) { cdkBuilder.backend(backend.let(BackendProperty.Companion::unwrap)) } /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("99ab4a4914f072f0a0e0c21db94a5879d3b7a68a5b44fd2af1d426d83f87aef0") @@ -943,7 +983,10 @@ public open class CfnBranch( } /** - * Describes the backend properties associated with an Amplify `Branch` . + * Describes the backend associated with an Amplify `Branch` . + * + * This property is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * Example: * @@ -995,7 +1038,8 @@ public open class CfnBranch( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnBranch.BackendProperty, - ) : CdkObject(cdkObject), BackendProperty { + ) : CdkObject(cdkObject), + BackendProperty { /** * The Amazon Resource Name (ARN) for the AWS CloudFormation stack. * @@ -1125,7 +1169,8 @@ public open class CfnBranch( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnBranch.BasicAuthConfigProperty, - ) : CdkObject(cdkObject), BasicAuthConfigProperty { + ) : CdkObject(cdkObject), + BasicAuthConfigProperty { /** * Enables basic authorization for the branch. * @@ -1240,7 +1285,8 @@ public open class CfnBranch( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnBranch.EnvironmentVariableProperty, - ) : CdkObject(cdkObject), EnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EnvironmentVariableProperty { /** * The environment variable name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranchProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranchProps.kt index 483cf05a8b..fed7cf0acd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranchProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnBranchProps.kt @@ -66,7 +66,11 @@ public interface CfnBranchProps { public fun appId(): String /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify + * Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) */ @@ -201,17 +205,26 @@ public interface CfnBranchProps { public fun appId(appId: String) /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ public fun backend(backend: IResolvable) /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ public fun backend(backend: CfnBranch.BackendProperty) /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5ca1e5a8e883f335ce3d4909bf2590b31a5a37227e08ef1959dba530961b7676") @@ -382,21 +395,30 @@ public interface CfnBranchProps { } /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ override fun backend(backend: IResolvable) { cdkBuilder.backend(backend.let(IResolvable.Companion::unwrap)) } /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ override fun backend(backend: CfnBranch.BackendProperty) { cdkBuilder.backend(backend.let(CfnBranch.BackendProperty.Companion::unwrap)) } /** - * @param backend Specifies the backend for a `Branch` of an Amplify app. + * @param backend The backend for a `Branch` of an Amplify app. Use for a backend created from + * an AWS CloudFormation stack. + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5ca1e5a8e883f335ce3d4909bf2590b31a5a37227e08ef1959dba530961b7676") @@ -596,7 +618,8 @@ public interface CfnBranchProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnBranchProps, - ) : CdkObject(cdkObject), CfnBranchProps { + ) : CdkObject(cdkObject), + CfnBranchProps { /** * The unique ID for an Amplify app. * @@ -605,7 +628,11 @@ public interface CfnBranchProps { override fun appId(): String = unwrap(this).getAppId() /** - * Specifies the backend for a `Branch` of an Amplify app. + * The backend for a `Branch` of an Amplify app. Use for a backend created from an AWS + * CloudFormation stack. + * + * This field is available to Amplify Gen 2 apps only. When you deploy an application with + * Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-backend) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomain.kt index e8d7b7d978..95c880f91f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomain.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.amplify.CfnDomain, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -708,7 +709,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnDomain.CertificateProperty, - ) : CdkObject(cdkObject), CertificateProperty { + ) : CdkObject(cdkObject), + CertificateProperty { /** * The Amazon resource name (ARN) for a custom certificate that you have already added to AWS * Certificate Manager in your AWS account . @@ -870,7 +872,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnDomain.CertificateSettingsProperty, - ) : CdkObject(cdkObject), CertificateSettingsProperty { + ) : CdkObject(cdkObject), + CertificateSettingsProperty { /** * The certificate type. * @@ -1000,7 +1003,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnDomain.SubDomainSettingProperty, - ) : CdkObject(cdkObject), SubDomainSettingProperty { + ) : CdkObject(cdkObject), + SubDomainSettingProperty { /** * The branch name setting for the subdomain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomainProps.kt index cb0d024dd3..c33b8759d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplify/CfnDomainProps.kt @@ -289,7 +289,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplify.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * The unique ID for an Amplify app. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponent.kt index 87a7e88857..216b3616fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponent.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnComponent( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.amplifyuibuilder.CfnComponent(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1570,7 +1572,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ActionParametersProperty, - ) : CdkObject(cdkObject), ActionParametersProperty { + ) : CdkObject(cdkObject), + ActionParametersProperty { /** * The HTML anchor link to the location to open. * @@ -1897,7 +1900,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValuePropertiesProperty, - ) : CdkObject(cdkObject), ComponentBindingPropertiesValuePropertiesProperty { + ) : CdkObject(cdkObject), + ComponentBindingPropertiesValuePropertiesProperty { /** * An Amazon S3 bucket. * @@ -2123,7 +2127,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty, - ) : CdkObject(cdkObject), ComponentBindingPropertiesValueProperty { + ) : CdkObject(cdkObject), + ComponentBindingPropertiesValueProperty { /** * Describes the properties to customize with data at runtime. * @@ -2733,7 +2738,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentChildProperty, - ) : CdkObject(cdkObject), ComponentChildProperty { + ) : CdkObject(cdkObject), + ComponentChildProperty { /** * The list of `ComponentChild` instances for this component. * @@ -3098,7 +3104,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentConditionPropertyProperty, - ) : CdkObject(cdkObject), ComponentConditionPropertyProperty { + ) : CdkObject(cdkObject), + ComponentConditionPropertyProperty { /** * The value to assign to the property if the condition is not met. * @@ -3376,7 +3383,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentDataConfigurationProperty, - ) : CdkObject(cdkObject), ComponentDataConfigurationProperty { + ) : CdkObject(cdkObject), + ComponentDataConfigurationProperty { /** * A list of IDs to use to bind data to a component. * @@ -3863,7 +3871,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentEventProperty, - ) : CdkObject(cdkObject), ComponentEventProperty { + ) : CdkObject(cdkObject), + ComponentEventProperty { /** * The action to perform when a specific event is raised. * @@ -3987,7 +3996,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentPropertyBindingPropertiesProperty, - ) : CdkObject(cdkObject), ComponentPropertyBindingPropertiesProperty { + ) : CdkObject(cdkObject), + ComponentPropertyBindingPropertiesProperty { /** * The data field to bind the property to. * @@ -4555,7 +4565,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentPropertyProperty, - ) : CdkObject(cdkObject), ComponentPropertyProperty { + ) : CdkObject(cdkObject), + ComponentPropertyProperty { /** * The information to bind the component property to data at runtime. * @@ -4783,7 +4794,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentVariantProperty, - ) : CdkObject(cdkObject), ComponentVariantProperty { + ) : CdkObject(cdkObject), + ComponentVariantProperty { /** * The properties of the component variant that can be overriden when customizing an instance * of the component. @@ -4895,7 +4907,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.FormBindingElementProperty, - ) : CdkObject(cdkObject), FormBindingElementProperty { + ) : CdkObject(cdkObject), + FormBindingElementProperty { /** * The name of the component to retrieve a value from. * @@ -5090,7 +5103,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.MutationActionSetStateParameterProperty, - ) : CdkObject(cdkObject), MutationActionSetStateParameterProperty { + ) : CdkObject(cdkObject), + MutationActionSetStateParameterProperty { /** * The name of the component that is being modified. * @@ -5333,7 +5347,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.PredicateProperty, - ) : CdkObject(cdkObject), PredicateProperty { + ) : CdkObject(cdkObject), + PredicateProperty { /** * A list of predicates to combine logically. * @@ -5470,7 +5485,8 @@ public open class CfnComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.SortPropertyProperty, - ) : CdkObject(cdkObject), SortPropertyProperty { + ) : CdkObject(cdkObject), + SortPropertyProperty { /** * The direction of the sort, either ascending or descending. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponentProps.kt index efff6a6f42..f706264f19 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnComponentProps.kt @@ -455,7 +455,8 @@ public interface CfnComponentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnComponentProps, - ) : CdkObject(cdkObject), CfnComponentProps { + ) : CdkObject(cdkObject), + CfnComponentProps { /** * The unique ID of the Amplify app associated with the component. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnForm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnForm.kt index 778d20479c..ed966707ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnForm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnForm.kt @@ -185,7 +185,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnForm( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.amplifyuibuilder.CfnForm(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1143,7 +1145,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldConfigProperty, - ) : CdkObject(cdkObject), FieldConfigProperty { + ) : CdkObject(cdkObject), + FieldConfigProperty { /** * Specifies whether to hide a field. * @@ -1710,7 +1713,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldInputConfigProperty, - ) : CdkObject(cdkObject), FieldInputConfigProperty { + ) : CdkObject(cdkObject), + FieldInputConfigProperty { /** * Specifies whether a field has a default value. * @@ -1938,7 +1942,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldPositionProperty, - ) : CdkObject(cdkObject), FieldPositionProperty { + ) : CdkObject(cdkObject), + FieldPositionProperty { /** * The field position is below the field specified by the string. * @@ -2132,7 +2137,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty, - ) : CdkObject(cdkObject), FieldValidationConfigurationProperty { + ) : CdkObject(cdkObject), + FieldValidationConfigurationProperty { /** * The validation to perform on a number value. * @@ -2439,7 +2445,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FileUploaderFieldConfigProperty, - ) : CdkObject(cdkObject), FileUploaderFieldConfigProperty { + ) : CdkObject(cdkObject), + FileUploaderFieldConfigProperty { /** * The file types that are allowed to be uploaded by the file uploader. * @@ -2657,7 +2664,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormButtonProperty, - ) : CdkObject(cdkObject), FormButtonProperty { + ) : CdkObject(cdkObject), + FormButtonProperty { /** * Describes the button's properties. * @@ -2916,7 +2924,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormCTAProperty, - ) : CdkObject(cdkObject), FormCTAProperty { + ) : CdkObject(cdkObject), + FormCTAProperty { /** * Displays a cancel button. * @@ -3044,7 +3053,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormDataTypeConfigProperty, - ) : CdkObject(cdkObject), FormDataTypeConfigProperty { + ) : CdkObject(cdkObject), + FormDataTypeConfigProperty { /** * The data source type, either an Amplify DataStore model or a custom data type. * @@ -3138,7 +3148,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormInputBindingPropertiesValuePropertiesProperty, - ) : CdkObject(cdkObject), FormInputBindingPropertiesValuePropertiesProperty { + ) : CdkObject(cdkObject), + FormInputBindingPropertiesValuePropertiesProperty { /** * An Amplify DataStore model. * @@ -3278,7 +3289,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormInputBindingPropertiesValueProperty, - ) : CdkObject(cdkObject), FormInputBindingPropertiesValueProperty { + ) : CdkObject(cdkObject), + FormInputBindingPropertiesValueProperty { /** * Describes the properties to customize with data at runtime. * @@ -3393,7 +3405,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormInputValuePropertyBindingPropertiesProperty, - ) : CdkObject(cdkObject), FormInputValuePropertyBindingPropertiesProperty { + ) : CdkObject(cdkObject), + FormInputValuePropertyBindingPropertiesProperty { /** * The data field to bind the property to. * @@ -3592,7 +3605,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormInputValuePropertyProperty, - ) : CdkObject(cdkObject), FormInputValuePropertyProperty { + ) : CdkObject(cdkObject), + FormInputValuePropertyProperty { /** * The information to bind fields to data at runtime. * @@ -3712,7 +3726,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormStyleConfigProperty, - ) : CdkObject(cdkObject), FormStyleConfigProperty { + ) : CdkObject(cdkObject), + FormStyleConfigProperty { /** * A reference to a design token to use to bind the form's style properties to an existing * theme. @@ -3930,7 +3945,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FormStyleProperty, - ) : CdkObject(cdkObject), FormStyleProperty { + ) : CdkObject(cdkObject), + FormStyleProperty { /** * The spacing for the horizontal gap. * @@ -4196,7 +4212,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.SectionalElementProperty, - ) : CdkObject(cdkObject), SectionalElementProperty { + ) : CdkObject(cdkObject), + SectionalElementProperty { /** * Excludes a sectional element that was generated by default for a specified data model. * @@ -4413,7 +4430,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.ValueMappingProperty, - ) : CdkObject(cdkObject), ValueMappingProperty { + ) : CdkObject(cdkObject), + ValueMappingProperty { /** * The value to display for the complex object. * @@ -4583,7 +4601,8 @@ public open class CfnForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnForm.ValueMappingsProperty, - ) : CdkObject(cdkObject), ValueMappingsProperty { + ) : CdkObject(cdkObject), + ValueMappingsProperty { /** * The information to bind fields to data at runtime. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnFormProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnFormProps.kt index 378fcac070..2aab6de903 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnFormProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnFormProps.kt @@ -532,7 +532,8 @@ public interface CfnFormProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnFormProps, - ) : CdkObject(cdkObject), CfnFormProps { + ) : CdkObject(cdkObject), + CfnFormProps { /** * The unique ID of the Amplify app associated with the form. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnTheme.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnTheme.kt index 3053442c6e..857d947787 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnTheme.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnTheme.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTheme( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnTheme, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.amplifyuibuilder.CfnTheme(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -523,7 +525,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnTheme.ThemeValueProperty, - ) : CdkObject(cdkObject), ThemeValueProperty { + ) : CdkObject(cdkObject), + ThemeValueProperty { /** * A list of key-value pairs that define the theme's properties. * @@ -662,7 +665,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnTheme.ThemeValuesProperty, - ) : CdkObject(cdkObject), ThemeValuesProperty { + ) : CdkObject(cdkObject), + ThemeValuesProperty { /** * The name of the property. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnThemeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnThemeProps.kt index 879a4a053d..c923c269e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnThemeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/amplifyuibuilder/CfnThemeProps.kt @@ -222,7 +222,8 @@ public interface CfnThemeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.amplifyuibuilder.CfnThemeProps, - ) : CdkObject(cdkObject), CfnThemeProps { + ) : CdkObject(cdkObject), + CfnThemeProps { /** * The unique ID for the Amplify app associated with the theme. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AccessLogDestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AccessLogDestinationConfig.kt index 51cea5f7f1..5aa582a064 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AccessLogDestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AccessLogDestinationConfig.kt @@ -57,7 +57,8 @@ public interface AccessLogDestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.AccessLogDestinationConfig, - ) : CdkObject(cdkObject), AccessLogDestinationConfig { + ) : CdkObject(cdkObject), + AccessLogDestinationConfig { /** * The Amazon Resource Name (ARN) of the destination resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AddApiKeyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AddApiKeyOptions.kt index 645d2752fa..5d0d45637d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AddApiKeyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AddApiKeyOptions.kt @@ -59,7 +59,8 @@ public interface AddApiKeyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.AddApiKeyOptions, - ) : CdkObject(cdkObject), AddApiKeyOptions { + ) : CdkObject(cdkObject), + AddApiKeyOptions { /** * Override the CloudFormation logical id of the AWS::ApiGateway::UsagePlanKey resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionConfig.kt index 99d1a80359..0b25987e8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionConfig.kt @@ -105,7 +105,8 @@ public interface ApiDefinitionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ApiDefinitionConfig, - ) : CdkObject(cdkObject), ApiDefinitionConfig { + ) : CdkObject(cdkObject), + ApiDefinitionConfig { /** * Inline specification (mutually exclusive with `s3Location`). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionS3Location.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionS3Location.kt index 50910905ec..187a9ed57c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionS3Location.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiDefinitionS3Location.kt @@ -96,7 +96,8 @@ public interface ApiDefinitionS3Location { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ApiDefinitionS3Location, - ) : CdkObject(cdkObject), ApiDefinitionS3Location { + ) : CdkObject(cdkObject), + ApiDefinitionS3Location { /** * The S3 bucket. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKey.kt index 1203423f24..bcd7b2ade5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKey.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApiKey( cdkObject: software.amazon.awscdk.services.apigateway.ApiKey, -) : Resource(cdkObject), IApiKey { +) : Resource(cdkObject), + IApiKey { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.ApiKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyOptions.kt index d9b8438485..0686892518 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyOptions.kt @@ -206,7 +206,8 @@ public interface ApiKeyOptions : ResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ApiKeyOptions, - ) : CdkObject(cdkObject), ApiKeyOptions { + ) : CdkObject(cdkObject), + ApiKeyOptions { /** * A name for the API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyProps.kt index bef11277f2..f018616332 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiKeyProps.kt @@ -365,7 +365,8 @@ public interface ApiKeyProps : ApiKeyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ApiKeyProps, - ) : CdkObject(cdkObject), ApiKeyProps { + ) : CdkObject(cdkObject), + ApiKeyProps { /** * A name for the API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiMappingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiMappingOptions.kt index cde93edf85..02019fc24f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiMappingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ApiMappingOptions.kt @@ -78,7 +78,8 @@ public interface ApiMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ApiMappingOptions, - ) : CdkObject(cdkObject), ApiMappingOptions { + ) : CdkObject(cdkObject), + ApiMappingOptions { /** * The api path name that callers of the API must provide in the URL after the domain name (e.g. * `example.com/base-path`). If you specify this property, it can't be an empty string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Authorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Authorizer.kt index 45456f1a5d..98005b2744 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Authorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Authorizer.kt @@ -14,7 +14,8 @@ import kotlin.String */ public abstract class Authorizer( cdkObject: software.amazon.awscdk.services.apigateway.Authorizer, -) : Resource(cdkObject), IAuthorizer { +) : Resource(cdkObject), + IAuthorizer { /** * The authorization type of this authorizer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AwsIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AwsIntegrationProps.kt index 48d8751f95..d52f5f0d1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AwsIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/AwsIntegrationProps.kt @@ -247,7 +247,8 @@ public interface AwsIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.AwsIntegrationProps, - ) : CdkObject(cdkObject), AwsIntegrationProps { + ) : CdkObject(cdkObject), + AwsIntegrationProps { /** * The AWS action to perform in the integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingOptions.kt index cfaa7ddc66..0fb7f20e21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingOptions.kt @@ -111,7 +111,8 @@ public interface BasePathMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.BasePathMappingOptions, - ) : CdkObject(cdkObject), BasePathMappingOptions { + ) : CdkObject(cdkObject), + BasePathMappingOptions { /** * Whether to attach the base path mapping to a stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingProps.kt index b597511976..bad2ce5f14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/BasePathMappingProps.kt @@ -123,7 +123,8 @@ public interface BasePathMappingProps : BasePathMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.BasePathMappingProps, - ) : CdkObject(cdkObject), BasePathMappingProps { + ) : CdkObject(cdkObject), + BasePathMappingProps { /** * Whether to attach the base path mapping to a stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccount.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccount.kt index 026fbedf37..3fecd43457 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccount.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccount.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccount( cdkObject: software.amazon.awscdk.services.apigateway.CfnAccount, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnAccount(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccountProps.kt index b17abc1a27..6d4b26df01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAccountProps.kt @@ -60,7 +60,8 @@ public interface CfnAccountProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnAccountProps, - ) : CdkObject(cdkObject), CfnAccountProps { + ) : CdkObject(cdkObject), + CfnAccountProps { /** * The ARN of an Amazon CloudWatch role for the current Account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKey.kt index c7a160586d..bc14494396 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKey.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiKey( cdkObject: software.amazon.awscdk.services.apigateway.CfnApiKey, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnApiKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -629,7 +631,8 @@ public open class CfnApiKey( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnApiKey.StageKeyProperty, - ) : CdkObject(cdkObject), StageKeyProperty { + ) : CdkObject(cdkObject), + StageKeyProperty { /** * The string identifier of the associated RestApi. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKeyProps.kt index 1e92efe6dc..cbb17d5cfc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnApiKeyProps.kt @@ -319,7 +319,8 @@ public interface CfnApiKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnApiKeyProps, - ) : CdkObject(cdkObject), CfnApiKeyProps { + ) : CdkObject(cdkObject), + CfnApiKeyProps { /** * An AWS Marketplace customer identifier, when integrating with the AWS SaaS Marketplace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizer.kt index 7abe2e603f..1f7ea00d0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizer.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAuthorizer( cdkObject: software.amazon.awscdk.services.apigateway.CfnAuthorizer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizerProps.kt index 2072d36840..82f13ce817 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnAuthorizerProps.kt @@ -391,7 +391,8 @@ public interface CfnAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnAuthorizerProps, - ) : CdkObject(cdkObject), CfnAuthorizerProps { + ) : CdkObject(cdkObject), + CfnAuthorizerProps { /** * Optional customer-defined field, used in OpenAPI imports and exports without functional * impact. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMapping.kt index 9e519915b1..b67f1d30ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMapping.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBasePathMapping( cdkObject: software.amazon.awscdk.services.apigateway.CfnBasePathMapping, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMappingProps.kt index 53f1779e6c..276e1bb44c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnBasePathMappingProps.kt @@ -143,7 +143,8 @@ public interface CfnBasePathMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnBasePathMappingProps, - ) : CdkObject(cdkObject), CfnBasePathMappingProps { + ) : CdkObject(cdkObject), + CfnBasePathMappingProps { /** * The base path name that callers of the API must provide as part of the URL after the domain * name. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificate.kt index 28a760b214..cae879f03c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificate.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClientCertificate( cdkObject: software.amazon.awscdk.services.apigateway.CfnClientCertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnClientCertificate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificateProps.kt index dc9ef3b444..64d6914e5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnClientCertificateProps.kt @@ -102,7 +102,8 @@ public interface CfnClientCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnClientCertificateProps, - ) : CdkObject(cdkObject), CfnClientCertificateProps { + ) : CdkObject(cdkObject), + CfnClientCertificateProps { /** * The description of the client certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeployment.kt index 78671d5995..b710cfe40e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeployment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeployment.kt @@ -95,7 +95,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeployment( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -541,7 +542,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment.AccessLogSettingProperty, - ) : CdkObject(cdkObject), AccessLogSettingProperty { + ) : CdkObject(cdkObject), + AccessLogSettingProperty { /** * The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose * delivery stream to receive access logs. @@ -725,7 +727,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment.CanarySettingProperty, - ) : CdkObject(cdkObject), CanarySettingProperty { + ) : CdkObject(cdkObject), + CanarySettingProperty { /** * The percent (0-100) of traffic diverted to a canary deployment. * @@ -917,7 +920,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment.DeploymentCanarySettingsProperty, - ) : CdkObject(cdkObject), DeploymentCanarySettingsProperty { + ) : CdkObject(cdkObject), + DeploymentCanarySettingsProperty { /** * The percentage (0.0-100.0) of traffic routed to the canary deployment. * @@ -1308,7 +1312,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment.MethodSettingProperty, - ) : CdkObject(cdkObject), MethodSettingProperty { + ) : CdkObject(cdkObject), + MethodSettingProperty { /** * Specifies whether the cached responses are encrypted. * @@ -2147,7 +2152,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeployment.StageDescriptionProperty, - ) : CdkObject(cdkObject), StageDescriptionProperty { + ) : CdkObject(cdkObject), + StageDescriptionProperty { /** * Specifies settings for logging access in this stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeploymentProps.kt index 430c0f5d2d..a45adb5c02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDeploymentProps.kt @@ -267,7 +267,8 @@ public interface CfnDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDeploymentProps, - ) : CdkObject(cdkObject), CfnDeploymentProps { + ) : CdkObject(cdkObject), + CfnDeploymentProps { /** * The input configuration for a canary deployment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPart.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPart.kt index 699cb12623..c1b4cdda88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPart.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPart.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDocumentationPart( cdkObject: software.amazon.awscdk.services.apigateway.CfnDocumentationPart, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -494,7 +495,8 @@ public open class CfnDocumentationPart( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDocumentationPart.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The HTTP verb of a method. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPartProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPartProps.kt index 600778e13b..c2c9038373 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPartProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationPartProps.kt @@ -150,7 +150,8 @@ public interface CfnDocumentationPartProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDocumentationPartProps, - ) : CdkObject(cdkObject), CfnDocumentationPartProps { + ) : CdkObject(cdkObject), + CfnDocumentationPartProps { /** * The location of the targeted API entity of the to-be-created documentation part. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersion.kt index 133ee9d8f9..994f78405a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersion.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDocumentationVersion( cdkObject: software.amazon.awscdk.services.apigateway.CfnDocumentationVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersionProps.kt index de062575f9..68c6c5fe67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDocumentationVersionProps.kt @@ -105,7 +105,8 @@ public interface CfnDocumentationVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDocumentationVersionProps, - ) : CdkObject(cdkObject), CfnDocumentationVersionProps { + ) : CdkObject(cdkObject), + CfnDocumentationVersionProps { /** * A description about the new documentation snapshot. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainName.kt index 45bd11220e..72b0855849 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainName.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomainName( cdkObject: software.amazon.awscdk.services.apigateway.CfnDomainName, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnDomainName(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -705,7 +707,8 @@ public open class CfnDomainName( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDomainName.EndpointConfigurationProperty, - ) : CdkObject(cdkObject), EndpointConfigurationProperty { + ) : CdkObject(cdkObject), + EndpointConfigurationProperty { /** * A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). * @@ -835,7 +838,8 @@ public open class CfnDomainName( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDomainName.MutualTlsAuthenticationProperty, - ) : CdkObject(cdkObject), MutualTlsAuthenticationProperty { + ) : CdkObject(cdkObject), + MutualTlsAuthenticationProperty { /** * An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example * `s3://bucket-name/key-name` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainNameProps.kt index a1851ac36b..31309c9c96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnDomainNameProps.kt @@ -352,7 +352,8 @@ public interface CfnDomainNameProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnDomainNameProps, - ) : CdkObject(cdkObject), CfnDomainNameProps { + ) : CdkObject(cdkObject), + CfnDomainNameProps { /** * The reference to an AWS -managed certificate that will be used by edge-optimized endpoint for * this domain name. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponse.kt index c7643cab3c..51fa401934 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponse.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGatewayResponse( cdkObject: software.amazon.awscdk.services.apigateway.CfnGatewayResponse, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponseProps.kt index c4ab92cf28..8dcf7c9b0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnGatewayResponseProps.kt @@ -180,7 +180,8 @@ public interface CfnGatewayResponseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnGatewayResponseProps, - ) : CdkObject(cdkObject), CfnGatewayResponseProps { + ) : CdkObject(cdkObject), + CfnGatewayResponseProps { /** * Response parameters (paths, query strings and headers) of the GatewayResponse as a * string-to-string map of key-value pairs. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethod.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethod.kt index a083805678..34d5ab50a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethod.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethod.kt @@ -88,7 +88,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMethod( cdkObject: software.amazon.awscdk.services.apigateway.CfnMethod, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1471,7 +1472,8 @@ public open class CfnMethod( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnMethod.IntegrationProperty, - ) : CdkObject(cdkObject), IntegrationProperty { + ) : CdkObject(cdkObject), + IntegrationProperty { /** * A list of request parameters whose values API Gateway caches. * @@ -1925,7 +1927,8 @@ public open class CfnMethod( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnMethod.IntegrationResponseProperty, - ) : CdkObject(cdkObject), IntegrationResponseProperty { + ) : CdkObject(cdkObject), + IntegrationResponseProperty { /** * Specifies how to handle response payload content type conversions. * @@ -2197,7 +2200,8 @@ public open class CfnMethod( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnMethod.MethodResponseProperty, - ) : CdkObject(cdkObject), MethodResponseProperty { + ) : CdkObject(cdkObject), + MethodResponseProperty { /** * Specifies the Model resources used for the response's content-type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethodProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethodProps.kt index cce21a7ca6..ce7bf3df03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethodProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnMethodProps.kt @@ -557,7 +557,8 @@ public interface CfnMethodProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnMethodProps, - ) : CdkObject(cdkObject), CfnMethodProps { + ) : CdkObject(cdkObject), + CfnMethodProps { /** * A boolean flag specifying whether a valid ApiKey is required to invoke this method. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModel.kt index 765e17e622..f3b1ad4f06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModel.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModel( cdkObject: software.amazon.awscdk.services.apigateway.CfnModel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModelProps.kt index 7c0b649f7e..666fab5530 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnModelProps.kt @@ -182,7 +182,8 @@ public interface CfnModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnModelProps, - ) : CdkObject(cdkObject), CfnModelProps { + ) : CdkObject(cdkObject), + CfnModelProps { /** * The content-type for the model. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidator.kt index 9f96cc1fc9..2bbe0508f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidator.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRequestValidator( cdkObject: software.amazon.awscdk.services.apigateway.CfnRequestValidator, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidatorProps.kt index 35ae3357ce..82a198ab5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidatorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRequestValidatorProps.kt @@ -159,7 +159,8 @@ public interface CfnRequestValidatorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnRequestValidatorProps, - ) : CdkObject(cdkObject), CfnRequestValidatorProps { + ) : CdkObject(cdkObject), + CfnRequestValidatorProps { /** * The name of this RequestValidator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResource.kt index c0b65c9d99..c3a3e94c6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResource.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResource( cdkObject: software.amazon.awscdk.services.apigateway.CfnResource, -) : io.cloudshiftdev.awscdk.CfnResource(cdkObject), IInspectable { +) : io.cloudshiftdev.awscdk.CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResourceProps.kt index 05df515823..59306bfd10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnResourceProps.kt @@ -100,7 +100,8 @@ public interface CfnResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnResourceProps, - ) : CdkObject(cdkObject), CfnResourceProps { + ) : CdkObject(cdkObject), + CfnResourceProps { /** * The parent resource's identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApi.kt index a47978df37..ddadc22af3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApi.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRestApi( cdkObject: software.amazon.awscdk.services.apigateway.CfnRestApi, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnRestApi(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1158,7 +1160,8 @@ public open class CfnRestApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnRestApi.EndpointConfigurationProperty, - ) : CdkObject(cdkObject), EndpointConfigurationProperty { + ) : CdkObject(cdkObject), + EndpointConfigurationProperty { /** * A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). * @@ -1324,7 +1327,8 @@ public open class CfnRestApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnRestApi.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The name of the S3 bucket where the OpenAPI file is stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApiProps.kt index 267aeea76c..e1a7960889 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnRestApiProps.kt @@ -656,7 +656,8 @@ public interface CfnRestApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnRestApiProps, - ) : CdkObject(cdkObject), CfnRestApiProps { + ) : CdkObject(cdkObject), + CfnRestApiProps { /** * The source of the API key for metering requests according to a usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStage.kt index 95b9c57f57..670b3a4541 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStage.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStage( cdkObject: software.amazon.awscdk.services.apigateway.CfnStage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1006,7 +1008,8 @@ public open class CfnStage( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnStage.AccessLogSettingProperty, - ) : CdkObject(cdkObject), AccessLogSettingProperty { + ) : CdkObject(cdkObject), + AccessLogSettingProperty { /** * The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose * delivery stream to receive access logs. @@ -1205,7 +1208,8 @@ public open class CfnStage( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnStage.CanarySettingProperty, - ) : CdkObject(cdkObject), CanarySettingProperty { + ) : CdkObject(cdkObject), + CanarySettingProperty { /** * The ID of the canary deployment. * @@ -1618,7 +1622,8 @@ public open class CfnStage( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnStage.MethodSettingProperty, - ) : CdkObject(cdkObject), MethodSettingProperty { + ) : CdkObject(cdkObject), + MethodSettingProperty { /** * Specifies whether the cached responses are encrypted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStageProps.kt index f513c18710..e52fe66cb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnStageProps.kt @@ -553,7 +553,8 @@ public interface CfnStageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnStageProps, - ) : CdkObject(cdkObject), CfnStageProps { + ) : CdkObject(cdkObject), + CfnStageProps { /** * Access log settings, including the access log format and access log destination ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlan.kt index 05167f87d6..a4c4f03e01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlan.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUsagePlan( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlan, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.CfnUsagePlan(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -637,7 +639,8 @@ public open class CfnUsagePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlan.ApiStageProperty, - ) : CdkObject(cdkObject), ApiStageProperty { + ) : CdkObject(cdkObject), + ApiStageProperty { /** * API Id of the associated API stage in a usage plan. * @@ -788,7 +791,8 @@ public open class CfnUsagePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlan.QuotaSettingsProperty, - ) : CdkObject(cdkObject), QuotaSettingsProperty { + ) : CdkObject(cdkObject), + QuotaSettingsProperty { /** * The target maximum number of requests that can be made in a given time period. * @@ -912,7 +916,8 @@ public open class CfnUsagePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlan.ThrottleSettingsProperty, - ) : CdkObject(cdkObject), ThrottleSettingsProperty { + ) : CdkObject(cdkObject), + ThrottleSettingsProperty { /** * The API target request burst rate limit. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKey.kt index b1739e40c9..0137c82e99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKey.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUsagePlanKey( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlanKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKeyProps.kt index 77b06bb8c0..4b4daeaf20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanKeyProps.kt @@ -103,7 +103,8 @@ public interface CfnUsagePlanKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlanKeyProps, - ) : CdkObject(cdkObject), CfnUsagePlanKeyProps { + ) : CdkObject(cdkObject), + CfnUsagePlanKeyProps { /** * The Id of the UsagePlanKey resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanProps.kt index 4260b9a4d7..1e902976e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnUsagePlanProps.kt @@ -281,7 +281,8 @@ public interface CfnUsagePlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnUsagePlanProps, - ) : CdkObject(cdkObject), CfnUsagePlanProps { + ) : CdkObject(cdkObject), + CfnUsagePlanProps { /** * The associated API stages of a usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLink.kt index d2f8b38c7e..b86fad925e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLink.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcLink( cdkObject: software.amazon.awscdk.services.apigateway.CfnVpcLink, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLinkProps.kt index b4373063d4..ed3fd98b74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CfnVpcLinkProps.kt @@ -152,7 +152,8 @@ public interface CfnVpcLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CfnVpcLinkProps, - ) : CdkObject(cdkObject), CfnVpcLinkProps { + ) : CdkObject(cdkObject), + CfnVpcLinkProps { /** * The description of the VPC link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizer.kt index 07a9ce38a8..b13fa97f24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizer.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CognitoUserPoolsAuthorizer( cdkObject: software.amazon.awscdk.services.apigateway.CognitoUserPoolsAuthorizer, -) : Authorizer(cdkObject), IAuthorizer { +) : Authorizer(cdkObject), + IAuthorizer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizerProps.kt index 72b0f4d9ca..affdaabc1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CognitoUserPoolsAuthorizerProps.kt @@ -155,7 +155,8 @@ public interface CognitoUserPoolsAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CognitoUserPoolsAuthorizerProps, - ) : CdkObject(cdkObject), CognitoUserPoolsAuthorizerProps { + ) : CdkObject(cdkObject), + CognitoUserPoolsAuthorizerProps { /** * An optional human friendly name for the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CorsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CorsOptions.kt index ae62694185..011d926881 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CorsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/CorsOptions.kt @@ -356,7 +356,8 @@ public interface CorsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.CorsOptions, - ) : CdkObject(cdkObject), CorsOptions { + ) : CdkObject(cdkObject), + CorsOptions { /** * The Access-Control-Allow-Credentials response header tells browsers whether to expose the * response to frontend JavaScript code when the request's credentials mode (Request.credentials) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DeploymentProps.kt index 7dff2d79eb..4ab66a22d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DeploymentProps.kt @@ -143,7 +143,8 @@ public interface DeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.DeploymentProps, - ) : CdkObject(cdkObject), DeploymentProps { + ) : CdkObject(cdkObject), + DeploymentProps { /** * The Rest API to deploy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainName.kt index 2f31b0a573..a6187affd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainName.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DomainName( cdkObject: software.amazon.awscdk.services.apigateway.DomainName, -) : Resource(cdkObject), IDomainName { +) : Resource(cdkObject), + IDomainName { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameAttributes.kt index a6b181cdec..662af0442d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameAttributes.kt @@ -99,7 +99,8 @@ public interface DomainNameAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.DomainNameAttributes, - ) : CdkObject(cdkObject), DomainNameAttributes { + ) : CdkObject(cdkObject), + DomainNameAttributes { /** * The domain name (e.g. `example.com`). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameOptions.kt index 6e5e59dac7..b5cb2f5ad4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameOptions.kt @@ -188,7 +188,8 @@ public interface DomainNameOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.DomainNameOptions, - ) : CdkObject(cdkObject), DomainNameOptions { + ) : CdkObject(cdkObject), + DomainNameOptions { /** * The base path name that callers of the API must provide in the URL after the domain name * (e.g. `example.com/base-path`). If you specify this property, it can't be an empty string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameProps.kt index db6d82968e..201c2bc675 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/DomainNameProps.kt @@ -171,7 +171,8 @@ public interface DomainNameProps : DomainNameOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.DomainNameProps, - ) : CdkObject(cdkObject), DomainNameProps { + ) : CdkObject(cdkObject), + DomainNameProps { /** * The base path name that callers of the API must provide in the URL after the domain name * (e.g. `example.com/base-path`). If you specify this property, it can't be an empty string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/EndpointConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/EndpointConfiguration.kt index ea76d8c372..5ea008ca47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/EndpointConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/EndpointConfiguration.kt @@ -101,7 +101,8 @@ public interface EndpointConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.EndpointConfiguration, - ) : CdkObject(cdkObject), EndpointConfiguration { + ) : CdkObject(cdkObject), + EndpointConfiguration { /** * A list of endpoint types of an API or its custom domain name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/FirehoseLogDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/FirehoseLogDestination.kt index fa48c38ae8..8d021e27da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/FirehoseLogDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/FirehoseLogDestination.kt @@ -32,7 +32,8 @@ import io.cloudshiftdev.awscdk.services.kinesisfirehose.CfnDeliveryStream */ public open class FirehoseLogDestination( cdkObject: software.amazon.awscdk.services.apigateway.FirehoseLogDestination, -) : CdkObject(cdkObject), IAccessLogDestination { +) : CdkObject(cdkObject), + IAccessLogDestination { public constructor(stream: CfnDeliveryStream) : this(software.amazon.awscdk.services.apigateway.FirehoseLogDestination(stream.let(CfnDeliveryStream.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponse.kt index 185a847641..ce1bdad53f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponse.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class GatewayResponse( cdkObject: software.amazon.awscdk.services.apigateway.GatewayResponse, -) : Resource(cdkObject), IGatewayResponse { +) : Resource(cdkObject), + IGatewayResponse { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseOptions.kt index b67504c807..7fe6261727 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseOptions.kt @@ -124,7 +124,8 @@ public interface GatewayResponseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.GatewayResponseOptions, - ) : CdkObject(cdkObject), GatewayResponseOptions { + ) : CdkObject(cdkObject), + GatewayResponseOptions { /** * Custom headers parameters for response. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseProps.kt index cb83a620bc..7f1fbdc9ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/GatewayResponseProps.kt @@ -114,7 +114,8 @@ public interface GatewayResponseProps : GatewayResponseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.GatewayResponseProps, - ) : CdkObject(cdkObject), GatewayResponseProps { + ) : CdkObject(cdkObject), + GatewayResponseProps { /** * Custom headers parameters for response. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/HttpIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/HttpIntegrationProps.kt index 3167c47ef5..7b6ebe4d02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/HttpIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/HttpIntegrationProps.kt @@ -142,7 +142,8 @@ public interface HttpIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.HttpIntegrationProps, - ) : CdkObject(cdkObject), HttpIntegrationProps { + ) : CdkObject(cdkObject), + HttpIntegrationProps { /** * HTTP method to use when invoking the backend URL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAccessLogDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAccessLogDestination.kt index ce8426e8bf..4d38b14a2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAccessLogDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAccessLogDestination.kt @@ -18,7 +18,8 @@ public interface IAccessLogDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IAccessLogDestination, - ) : CdkObject(cdkObject), IAccessLogDestination { + ) : CdkObject(cdkObject), + IAccessLogDestination { /** * Binds this destination to the RestApi Stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IApiKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IApiKey.kt index 66bf1190dc..456e99a661 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IApiKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IApiKey.kt @@ -28,7 +28,8 @@ public interface IApiKey : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IApiKey, - ) : CdkObject(cdkObject), IApiKey { + ) : CdkObject(cdkObject), + IApiKey { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAuthorizer.kt index 538029f2b6..9a2402f955 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IAuthorizer.kt @@ -23,7 +23,8 @@ public interface IAuthorizer { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IAuthorizer, - ) : CdkObject(cdkObject), IAuthorizer { + ) : CdkObject(cdkObject), + IAuthorizer { /** * The authorization type of this authorizer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IDomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IDomainName.kt index e2702abb7b..3fa52c87ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IDomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IDomainName.kt @@ -34,7 +34,8 @@ public interface IDomainName : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IDomainName, - ) : CdkObject(cdkObject), IDomainName { + ) : CdkObject(cdkObject), + IDomainName { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IGatewayResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IGatewayResponse.kt index aaa472d33f..b8a5ee226a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IGatewayResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IGatewayResponse.kt @@ -16,7 +16,8 @@ import io.cloudshiftdev.constructs.Node public interface IGatewayResponse : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IGatewayResponse, - ) : CdkObject(cdkObject), IGatewayResponse { + ) : CdkObject(cdkObject), + IGatewayResponse { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IModel.kt index e15ea63bc0..5c9ed4cad4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IModel.kt @@ -17,7 +17,8 @@ public interface IModel { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IModel, - ) : CdkObject(cdkObject), IModel { + ) : CdkObject(cdkObject), + IModel { /** * Returns the model name, such as 'myModel'. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRequestValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRequestValidator.kt index 13778c14ef..596506304d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRequestValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRequestValidator.kt @@ -22,7 +22,8 @@ public interface IRequestValidator : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IRequestValidator, - ) : CdkObject(cdkObject), IRequestValidator { + ) : CdkObject(cdkObject), + IRequestValidator { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IResource.kt index 6d9fe65534..583e405962 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IResource.kt @@ -232,7 +232,8 @@ public interface IResource : io.cloudshiftdev.awscdk.IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IResource, - ) : CdkObject(cdkObject), IResource { + ) : CdkObject(cdkObject), + IResource { /** * Adds an OPTIONS method to this resource which responds to Cross-Origin Resource Sharing * (CORS) preflight requests. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRestApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRestApi.kt index e54107d8be..2e925f1c39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRestApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IRestApi.kt @@ -114,7 +114,8 @@ public interface IRestApi : io.cloudshiftdev.awscdk.IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IRestApi, - ) : CdkObject(cdkObject), IRestApi { + ) : CdkObject(cdkObject), + IRestApi { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IStage.kt index 155aca6a36..c08438fccb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IStage.kt @@ -55,7 +55,8 @@ public interface IStage : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IStage, - ) : CdkObject(cdkObject), IStage { + ) : CdkObject(cdkObject), + IStage { /** * Add an ApiKey to this Stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IUsagePlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IUsagePlan.kt index e18d8e9ef0..1376a5e74d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IUsagePlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IUsagePlan.kt @@ -50,7 +50,8 @@ public interface IUsagePlan : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IUsagePlan, - ) : CdkObject(cdkObject), IUsagePlan { + ) : CdkObject(cdkObject), + IUsagePlan { /** * Adds an ApiKey. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IVpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IVpcLink.kt index fe5d1cd0da..c88aaecce9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IVpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IVpcLink.kt @@ -22,7 +22,8 @@ public interface IVpcLink : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IVpcLink, - ) : CdkObject(cdkObject), IVpcLink { + ) : CdkObject(cdkObject), + IVpcLink { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationConfig.kt index 1ace036fcc..462d7e5f3a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationConfig.kt @@ -201,7 +201,8 @@ public interface IntegrationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IntegrationConfig, - ) : CdkObject(cdkObject), IntegrationConfig { + ) : CdkObject(cdkObject), + IntegrationConfig { /** * This value is included in computing the Deployment's fingerprint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationOptions.kt index 57acb365ec..fc224e09a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationOptions.kt @@ -181,7 +181,12 @@ public interface IntegrationOptions { /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) */ @@ -302,7 +307,13 @@ public interface IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ public fun timeout(timeout: Duration) @@ -442,7 +453,13 @@ public interface IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ override fun timeout(timeout: Duration) { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) @@ -462,7 +479,8 @@ public interface IntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IntegrationOptions, - ) : CdkObject(cdkObject), IntegrationOptions { + ) : CdkObject(cdkObject), + IntegrationOptions { /** * A list of request parameters whose values are to be cached. * @@ -573,7 +591,12 @@ public interface IntegrationOptions { /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationProps.kt index 45e7fd43ee..07684d8443 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationProps.kt @@ -164,7 +164,8 @@ public interface IntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IntegrationProps, - ) : CdkObject(cdkObject), IntegrationProps { + ) : CdkObject(cdkObject), + IntegrationProps { /** * The integration's HTTP method type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationResponse.kt index 72631233a1..5b9ad2d611 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/IntegrationResponse.kt @@ -207,7 +207,8 @@ public interface IntegrationResponse { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.IntegrationResponse, - ) : CdkObject(cdkObject), IntegrationResponse { + ) : CdkObject(cdkObject), + IntegrationResponse { /** * Specifies how to handle request payload content type conversions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonSchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonSchema.kt index 57668dd241..4b0ba23087 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonSchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonSchema.kt @@ -901,7 +901,8 @@ public interface JsonSchema { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.JsonSchema, - ) : CdkObject(cdkObject), JsonSchema { + ) : CdkObject(cdkObject), + JsonSchema { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonWithStandardFieldProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonWithStandardFieldProps.kt index 67c4b0b9cd..92bd47eb1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonWithStandardFieldProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/JsonWithStandardFieldProps.kt @@ -224,7 +224,8 @@ public interface JsonWithStandardFieldProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.JsonWithStandardFieldProps, - ) : CdkObject(cdkObject), JsonWithStandardFieldProps { + ) : CdkObject(cdkObject), + JsonWithStandardFieldProps { /** * If this flag is enabled, the principal identifier of the caller will be output to the log. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaAuthorizerProps.kt index 67d67930bb..c6d7b90c89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaAuthorizerProps.kt @@ -165,7 +165,8 @@ public interface LambdaAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.LambdaAuthorizerProps, - ) : CdkObject(cdkObject), LambdaAuthorizerProps { + ) : CdkObject(cdkObject), + LambdaAuthorizerProps { /** * An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegration.kt index f0adb0de85..843001bc50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegration.kt @@ -232,7 +232,12 @@ public open class LambdaIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * @@ -459,7 +464,12 @@ public open class LambdaIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegrationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegrationOptions.kt index 2194e50425..7ab3f0b0bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegrationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaIntegrationOptions.kt @@ -171,7 +171,13 @@ public interface LambdaIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ public fun timeout(timeout: Duration) @@ -330,7 +336,13 @@ public interface LambdaIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ override fun timeout(timeout: Duration) { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) @@ -350,7 +362,8 @@ public interface LambdaIntegrationOptions : IntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.LambdaIntegrationOptions, - ) : CdkObject(cdkObject), LambdaIntegrationOptions { + ) : CdkObject(cdkObject), + LambdaIntegrationOptions { /** * Allow invoking method from AWS Console UI (for testing purposes). * @@ -482,7 +495,12 @@ public interface LambdaIntegrationOptions : IntegrationOptions { /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaRestApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaRestApiProps.kt index 03e72e3f84..0441e93cde 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaRestApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LambdaRestApiProps.kt @@ -669,7 +669,8 @@ public interface LambdaRestApiProps : RestApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.LambdaRestApiProps, - ) : CdkObject(cdkObject), LambdaRestApiProps { + ) : CdkObject(cdkObject), + LambdaRestApiProps { /** * The source of the API key for metering requests according to a usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LogGroupLogDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LogGroupLogDestination.kt index 9eeeafecfd..3db4d23d4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LogGroupLogDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/LogGroupLogDestination.kt @@ -25,7 +25,8 @@ import io.cloudshiftdev.awscdk.services.logs.ILogGroup */ public open class LogGroupLogDestination( cdkObject: software.amazon.awscdk.services.apigateway.LogGroupLogDestination, -) : CdkObject(cdkObject), IAccessLogDestination { +) : CdkObject(cdkObject), + IAccessLogDestination { public constructor(logGroup: ILogGroup) : this(software.amazon.awscdk.services.apigateway.LogGroupLogDestination(logGroup.let(ILogGroup.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MTLSConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MTLSConfig.kt index bc2c384984..b1995318ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MTLSConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MTLSConfig.kt @@ -101,7 +101,8 @@ public interface MTLSConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.MTLSConfig, - ) : CdkObject(cdkObject), MTLSConfig { + ) : CdkObject(cdkObject), + MTLSConfig { /** * The bucket that the trust store is hosted in. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodDeploymentOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodDeploymentOptions.kt index 5cf6bff818..93d91db5ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodDeploymentOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodDeploymentOptions.kt @@ -243,7 +243,8 @@ public interface MethodDeploymentOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.MethodDeploymentOptions, - ) : CdkObject(cdkObject), MethodDeploymentOptions { + ) : CdkObject(cdkObject), + MethodDeploymentOptions { /** * Indicates whether the cached responses are encrypted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodOptions.kt index cb050ae086..3d9639cb3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodOptions.kt @@ -430,7 +430,8 @@ public interface MethodOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.MethodOptions, - ) : CdkObject(cdkObject), MethodOptions { + ) : CdkObject(cdkObject), + MethodOptions { /** * Indicates whether the method requires clients to submit a valid API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodProps.kt index 9130d56962..ffd1156b8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodProps.kt @@ -181,7 +181,8 @@ public interface MethodProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.MethodProps, - ) : CdkObject(cdkObject), MethodProps { + ) : CdkObject(cdkObject), + MethodProps { /** * The HTTP method ("GET", "POST", "PUT", ...) that clients use to call this method. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodResponse.kt index eb1badd7f8..d8fba55f43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MethodResponse.kt @@ -133,7 +133,8 @@ public interface MethodResponse { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.MethodResponse, - ) : CdkObject(cdkObject), MethodResponse { + ) : CdkObject(cdkObject), + MethodResponse { /** * The resources used for the response's content type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MockIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MockIntegration.kt index 5b004c6bf2..ecb8f881a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MockIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/MockIntegration.kt @@ -253,7 +253,12 @@ public open class MockIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * @@ -450,7 +455,12 @@ public open class MockIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Model.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Model.kt index fbc44f7651..ecc2d6033c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Model.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/Model.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Model( cdkObject: software.amazon.awscdk.services.apigateway.Model, -) : Resource(cdkObject), IModel { +) : Resource(cdkObject), + IModel { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelOptions.kt index 026db08c67..feb8fe2982 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelOptions.kt @@ -178,7 +178,8 @@ public interface ModelOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ModelOptions, - ) : CdkObject(cdkObject), ModelOptions { + ) : CdkObject(cdkObject), + ModelOptions { /** * The content type for the model. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelProps.kt index a9d0a03c26..917f1facbf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ModelProps.kt @@ -197,7 +197,8 @@ public interface ModelProps : ModelOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ModelProps, - ) : CdkObject(cdkObject), ModelProps { + ) : CdkObject(cdkObject), + ModelProps { /** * The content type for the model. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceOptions.kt index 5b72569b40..7d2b673dfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceOptions.kt @@ -164,7 +164,8 @@ public interface ProxyResourceOptions : ResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ProxyResourceOptions, - ) : CdkObject(cdkObject), ProxyResourceOptions { + ) : CdkObject(cdkObject), + ProxyResourceOptions { /** * Adds an "ANY" method to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceProps.kt index b0ac6c4606..735b4eedac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ProxyResourceProps.kt @@ -222,7 +222,8 @@ public interface ProxyResourceProps : ProxyResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ProxyResourceProps, - ) : CdkObject(cdkObject), ProxyResourceProps { + ) : CdkObject(cdkObject), + ProxyResourceProps { /** * Adds an "ANY" method to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/QuotaSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/QuotaSettings.kt index c12d820645..a8e7a7b8f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/QuotaSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/QuotaSettings.kt @@ -103,7 +103,8 @@ public interface QuotaSettings { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.QuotaSettings, - ) : CdkObject(cdkObject), QuotaSettings { + ) : CdkObject(cdkObject), + QuotaSettings { /** * The maximum number of requests that users can make within the specified time period. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKey.kt index 620395f865..d3d69eac44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKey.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class RateLimitedApiKey( cdkObject: software.amazon.awscdk.services.apigateway.RateLimitedApiKey, -) : Resource(cdkObject), IApiKey { +) : Resource(cdkObject), + IApiKey { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.RateLimitedApiKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKeyProps.kt index 004b973185..3d653bc99b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RateLimitedApiKeyProps.kt @@ -378,7 +378,8 @@ public interface RateLimitedApiKeyProps : ApiKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RateLimitedApiKeyProps, - ) : CdkObject(cdkObject), RateLimitedApiKeyProps { + ) : CdkObject(cdkObject), + RateLimitedApiKeyProps { /** * A name for the API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizer.kt index 9aa787fbad..c37f93127b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizer.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class RequestAuthorizer( cdkObject: software.amazon.awscdk.services.apigateway.RequestAuthorizer, -) : Authorizer(cdkObject), IAuthorizer { +) : Authorizer(cdkObject), + IAuthorizer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizerProps.kt index 7ac5d56076..69986ca6d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestAuthorizerProps.kt @@ -209,7 +209,8 @@ public interface RequestAuthorizerProps : LambdaAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RequestAuthorizerProps, - ) : CdkObject(cdkObject), RequestAuthorizerProps { + ) : CdkObject(cdkObject), + RequestAuthorizerProps { /** * An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestContext.kt index 62df5c81e1..aa0c34b76e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestContext.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestContext.kt @@ -531,7 +531,8 @@ public interface RequestContext { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RequestContext, - ) : CdkObject(cdkObject), RequestContext { + ) : CdkObject(cdkObject), + RequestContext { /** * Represents the information of $context.identity.accountId. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidator.kt index 465e63aacd..7cc649b645 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidator.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class RequestValidator( cdkObject: software.amazon.awscdk.services.apigateway.RequestValidator, -) : Resource(cdkObject), IRequestValidator { +) : Resource(cdkObject), + IRequestValidator { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorOptions.kt index 4bd9863c52..b1c9a9e473 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorOptions.kt @@ -129,7 +129,8 @@ public interface RequestValidatorOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RequestValidatorOptions, - ) : CdkObject(cdkObject), RequestValidatorOptions { + ) : CdkObject(cdkObject), + RequestValidatorOptions { /** * The name of this request validator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorProps.kt index ec6805e67b..640179d04c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RequestValidatorProps.kt @@ -111,7 +111,8 @@ public interface RequestValidatorProps : RequestValidatorOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RequestValidatorProps, - ) : CdkObject(cdkObject), RequestValidatorProps { + ) : CdkObject(cdkObject), + RequestValidatorProps { /** * The name of this request validator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceAttributes.kt index 6b22789c2c..7cc23c83e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceAttributes.kt @@ -93,7 +93,8 @@ public interface ResourceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ResourceAttributes, - ) : CdkObject(cdkObject), ResourceAttributes { + ) : CdkObject(cdkObject), + ResourceAttributes { /** * The full path of this resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceBase.kt index 96c51470cb..eeacc99a0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceBase.kt @@ -13,7 +13,8 @@ import kotlin.jvm.JvmName */ public abstract class ResourceBase( cdkObject: software.amazon.awscdk.services.apigateway.ResourceBase, -) : io.cloudshiftdev.awscdk.Resource(cdkObject), IResource { +) : io.cloudshiftdev.awscdk.Resource(cdkObject), + IResource { /** * Adds an OPTIONS method to this resource which responds to Cross-Origin Resource Sharing (CORS) * preflight requests. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceOptions.kt index 4a81f7a4fb..ad5f641879 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceOptions.kt @@ -164,7 +164,8 @@ public interface ResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ResourceOptions, - ) : CdkObject(cdkObject), ResourceOptions { + ) : CdkObject(cdkObject), + ResourceOptions { /** * Adds a CORS preflight OPTIONS method to this resource and all child resources. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceProps.kt index 73fa0c5d4b..819d5bdaaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ResourceProps.kt @@ -223,7 +223,8 @@ public interface ResourceProps : ResourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ResourceProps, - ) : CdkObject(cdkObject), ResourceProps { + ) : CdkObject(cdkObject), + ResourceProps { /** * Adds a CORS preflight OPTIONS method to this resource and all child resources. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiAttributes.kt index eaa1a3da0e..a3b33a33c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiAttributes.kt @@ -231,7 +231,8 @@ public interface RestApiAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RestApiAttributes, - ) : CdkObject(cdkObject), RestApiAttributes { + ) : CdkObject(cdkObject), + RestApiAttributes { /** * The ID of the API Gateway RestApi. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBase.kt index ab894d5413..f03110f1ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBase.kt @@ -25,7 +25,8 @@ import kotlin.jvm.JvmName */ public abstract class RestApiBase( cdkObject: software.amazon.awscdk.services.apigateway.RestApiBase, -) : Resource(cdkObject), IRestApi { +) : Resource(cdkObject), + IRestApi { /** * Add an ApiKey to the deploymentStage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBaseProps.kt index b195fcd3a3..1c851791fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiBaseProps.kt @@ -544,7 +544,8 @@ public interface RestApiBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RestApiBaseProps, - ) : CdkObject(cdkObject), RestApiBaseProps { + ) : CdkObject(cdkObject), + RestApiBaseProps { /** * Automatically configure an AWS CloudWatch role for API Gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiProps.kt index fcee939eee..7f3bfddc58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/RestApiProps.kt @@ -650,7 +650,8 @@ public interface RestApiProps : ResourceOptions, RestApiBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.RestApiProps, - ) : CdkObject(cdkObject), RestApiProps { + ) : CdkObject(cdkObject), + RestApiProps { /** * The source of the API key for metering requests according to a usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegration.kt index 0e7061d50a..a73b0653f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegration.kt @@ -208,7 +208,12 @@ public open class SagemakerIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * @@ -407,7 +412,12 @@ public open class SagemakerIntegration( /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegrationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegrationOptions.kt index ed1615ac44..862bcc2eb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegrationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SagemakerIntegrationOptions.kt @@ -162,7 +162,13 @@ public interface SagemakerIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ public fun timeout(timeout: Duration) @@ -303,7 +309,13 @@ public interface SagemakerIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ override fun timeout(timeout: Duration) { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) @@ -323,7 +335,8 @@ public interface SagemakerIntegrationOptions : IntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.SagemakerIntegrationOptions, - ) : CdkObject(cdkObject), SagemakerIntegrationOptions { + ) : CdkObject(cdkObject), + SagemakerIntegrationOptions { /** * A list of request parameters whose values are to be cached. * @@ -434,7 +447,12 @@ public interface SagemakerIntegrationOptions : IntegrationOptions { /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SpecRestApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SpecRestApiProps.kt index a042d7592c..f0b05e5372 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SpecRestApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/SpecRestApiProps.kt @@ -395,7 +395,8 @@ public interface SpecRestApiProps : RestApiBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.SpecRestApiProps, - ) : CdkObject(cdkObject), SpecRestApiProps { + ) : CdkObject(cdkObject), + SpecRestApiProps { /** * An OpenAPI definition compatible with API Gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageAttributes.kt index c72d2468f9..7fe9195f5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageAttributes.kt @@ -74,7 +74,8 @@ public interface StageAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.StageAttributes, - ) : CdkObject(cdkObject), StageAttributes { + ) : CdkObject(cdkObject), + StageAttributes { /** * The RestApi that the stage belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageBase.kt index cd07eec5cf..407b3a1ef3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageBase.kt @@ -16,7 +16,8 @@ import kotlin.jvm.JvmName */ public abstract class StageBase( cdkObject: software.amazon.awscdk.services.apigateway.StageBase, -) : Resource(cdkObject), IStage { +) : Resource(cdkObject), + IStage { /** * Add an ApiKey to this stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageOptions.kt index b87546eed7..68ace30936 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageOptions.kt @@ -410,7 +410,8 @@ public interface StageOptions : MethodDeploymentOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.StageOptions, - ) : CdkObject(cdkObject), StageOptions { + ) : CdkObject(cdkObject), + StageOptions { /** * The CloudWatch Logs log group or Firehose delivery stream where to write access logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageProps.kt index 2afc92c22e..6b6c368977 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StageProps.kt @@ -353,7 +353,8 @@ public interface StageProps : StageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.StageProps, - ) : CdkObject(cdkObject), StageProps { + ) : CdkObject(cdkObject), + StageProps { /** * The CloudWatch Logs log group or Firehose delivery stream where to write access logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsExecutionIntegrationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsExecutionIntegrationOptions.kt index fd3125514a..80da36131a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsExecutionIntegrationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsExecutionIntegrationOptions.kt @@ -364,7 +364,13 @@ public interface StepFunctionsExecutionIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ public fun timeout(timeout: Duration) @@ -607,7 +613,13 @@ public interface StepFunctionsExecutionIntegrationOptions : IntegrationOptions { /** * @param timeout The maximum amount of time an integration will run before it returns without a * response. - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * * + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. */ override fun timeout(timeout: Duration) { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) @@ -636,7 +648,8 @@ public interface StepFunctionsExecutionIntegrationOptions : IntegrationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.StepFunctionsExecutionIntegrationOptions, - ) : CdkObject(cdkObject), StepFunctionsExecutionIntegrationOptions { + ) : CdkObject(cdkObject), + StepFunctionsExecutionIntegrationOptions { /** * If the whole authorizer object, including custom context values should be in the execution * input. @@ -831,7 +844,12 @@ public interface StepFunctionsExecutionIntegrationOptions : IntegrationOptions { /** * The maximum amount of time an integration will run before it returns without a response. * - * Must be between 50 milliseconds and 29 seconds. + * By default, the value must be between 50 milliseconds and 29 seconds. + * The upper bound can be increased for regional and private Rest APIs only, + * via a quota increase request for your acccount. + * This increase might require a reduction in your account-level throttle quota limit. + * See [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Amazon API + * Gateway quotas] for more details. * * Default: Duration.seconds(29) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsRestApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsRestApiProps.kt index e903b8c14f..d094078810 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsRestApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/StepFunctionsRestApiProps.kt @@ -908,7 +908,8 @@ public interface StepFunctionsRestApiProps : RestApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.StepFunctionsRestApiProps, - ) : CdkObject(cdkObject), StepFunctionsRestApiProps { + ) : CdkObject(cdkObject), + StepFunctionsRestApiProps { /** * The source of the API key for metering requests according to a usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottleSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottleSettings.kt index 98c4df964d..330200b754 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottleSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottleSettings.kt @@ -91,7 +91,8 @@ public interface ThrottleSettings { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ThrottleSettings, - ) : CdkObject(cdkObject), ThrottleSettings { + ) : CdkObject(cdkObject), + ThrottleSettings { /** * The maximum API request rate limit over a time ranging from one to a few seconds. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottlingPerMethod.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottlingPerMethod.kt index 80db5abfb7..ade476308d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottlingPerMethod.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/ThrottlingPerMethod.kt @@ -103,7 +103,8 @@ public interface ThrottlingPerMethod { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.ThrottlingPerMethod, - ) : CdkObject(cdkObject), ThrottlingPerMethod { + ) : CdkObject(cdkObject), + ThrottlingPerMethod { /** * [disable-awslint:ref-via-interface] The method for which you specify the throttling settings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizer.kt index b25a73e430..2766b818fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizer.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class TokenAuthorizer( cdkObject: software.amazon.awscdk.services.apigateway.TokenAuthorizer, -) : Authorizer(cdkObject), IAuthorizer { +) : Authorizer(cdkObject), + IAuthorizer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizerProps.kt index 8170cc3e92..8a9c0d671e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/TokenAuthorizerProps.kt @@ -173,7 +173,8 @@ public interface TokenAuthorizerProps : LambdaAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.TokenAuthorizerProps, - ) : CdkObject(cdkObject), TokenAuthorizerProps { + ) : CdkObject(cdkObject), + TokenAuthorizerProps { /** * An optional IAM role for APIGateway to assume before calling the Lambda-based authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlan.kt index 33b86ef13a..d2a0662732 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlan.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UsagePlan( cdkObject: software.amazon.awscdk.services.apigateway.UsagePlan, -) : Resource(cdkObject), IUsagePlan { +) : Resource(cdkObject), + IUsagePlan { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.UsagePlan(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanPerApiStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanPerApiStage.kt index b1e2914e19..732c0cf809 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanPerApiStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanPerApiStage.kt @@ -110,7 +110,8 @@ public interface UsagePlanPerApiStage { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.UsagePlanPerApiStage, - ) : CdkObject(cdkObject), UsagePlanPerApiStage { + ) : CdkObject(cdkObject), + UsagePlanPerApiStage { /** * Default: none */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanProps.kt index 90dc2ecd3a..5ad8d5237e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/UsagePlanProps.kt @@ -184,7 +184,8 @@ public interface UsagePlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.UsagePlanProps, - ) : CdkObject(cdkObject), UsagePlanProps { + ) : CdkObject(cdkObject), + UsagePlanProps { /** * API Stages to be associated with the usage plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLink.kt index d4d8e9567d..2c79ddfa37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLink.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VpcLink( cdkObject: software.amazon.awscdk.services.apigateway.VpcLink, -) : Resource(cdkObject), IVpcLink { +) : Resource(cdkObject), + IVpcLink { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigateway.VpcLink(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLinkProps.kt index 575c9824bb..2adabc6236 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigateway/VpcLinkProps.kt @@ -124,7 +124,8 @@ public interface VpcLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigateway.VpcLinkProps, - ) : CdkObject(cdkObject), VpcLinkProps { + ) : CdkObject(cdkObject), + VpcLinkProps { /** * The description of the VPC link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/AddRoutesOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/AddRoutesOptions.kt index 55632130b6..aef5bb50b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/AddRoutesOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/AddRoutesOptions.kt @@ -177,7 +177,8 @@ public interface AddRoutesOptions : BatchHttpRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.AddRoutesOptions, - ) : CdkObject(cdkObject), AddRoutesOptions { + ) : CdkObject(cdkObject), + AddRoutesOptions { /** * The list of OIDC scopes to include in the authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMapping.kt index 2b71120c51..5a41ee3fdd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMapping.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApiMapping( cdkObject: software.amazon.awscdk.services.apigatewayv2.ApiMapping, -) : Resource(cdkObject), IApiMapping { +) : Resource(cdkObject), + IApiMapping { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingAttributes.kt index d7061dc029..e9695bd9d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingAttributes.kt @@ -57,7 +57,8 @@ public interface ApiMappingAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.ApiMappingAttributes, - ) : CdkObject(cdkObject), ApiMappingAttributes { + ) : CdkObject(cdkObject), + ApiMappingAttributes { /** * The API mapping ID. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingProps.kt index c64bf475a3..17bdfbbea5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ApiMappingProps.kt @@ -125,7 +125,8 @@ public interface ApiMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.ApiMappingProps, - ) : CdkObject(cdkObject), ApiMappingProps { + ) : CdkObject(cdkObject), + ApiMappingProps { /** * The Api to which this mapping is applied. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/BatchHttpRouteOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/BatchHttpRouteOptions.kt index 14cb177467..fb513dd763 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/BatchHttpRouteOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/BatchHttpRouteOptions.kt @@ -59,7 +59,8 @@ public interface BatchHttpRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.BatchHttpRouteOptions, - ) : CdkObject(cdkObject), BatchHttpRouteOptions { + ) : CdkObject(cdkObject), + BatchHttpRouteOptions { /** * The integration to be configured on this route. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApi.kt index ba69b9fc16..bea5caf7f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApi.kt @@ -77,7 +77,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApi( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApi, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigatewayv2.CfnApi(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1156,7 +1158,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApi.BodyS3LocationProperty, - ) : CdkObject(cdkObject), BodyS3LocationProperty { + ) : CdkObject(cdkObject), + BodyS3LocationProperty { /** * The S3 bucket that contains the OpenAPI definition to import. * @@ -1457,7 +1460,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApi.CorsProperty, - ) : CdkObject(cdkObject), CorsProperty { + ) : CdkObject(cdkObject), + CorsProperty { /** * Specifies whether credentials are included in the CORS request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverrides.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverrides.kt index 554e9f4adb..3cb72cec79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverrides.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverrides.kt @@ -78,7 +78,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiGatewayManagedOverrides( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -524,7 +525,8 @@ public open class CfnApiGatewayManagedOverrides( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.AccessLogSettingsProperty, - ) : CdkObject(cdkObject), AccessLogSettingsProperty { + ) : CdkObject(cdkObject), + AccessLogSettingsProperty { /** * The ARN of the CloudWatch Logs log group to receive access logs. * @@ -710,7 +712,8 @@ public open class CfnApiGatewayManagedOverrides( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.IntegrationOverridesProperty, - ) : CdkObject(cdkObject), IntegrationOverridesProperty { + ) : CdkObject(cdkObject), + IntegrationOverridesProperty { /** * The description of the integration. * @@ -943,7 +946,8 @@ public open class CfnApiGatewayManagedOverrides( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.RouteOverridesProperty, - ) : CdkObject(cdkObject), RouteOverridesProperty { + ) : CdkObject(cdkObject), + RouteOverridesProperty { /** * The authorization scopes supported by this route. * @@ -1191,7 +1195,8 @@ public open class CfnApiGatewayManagedOverrides( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.RouteSettingsProperty, - ) : CdkObject(cdkObject), RouteSettingsProperty { + ) : CdkObject(cdkObject), + RouteSettingsProperty { /** * Specifies whether ( `true` ) or not ( `false` ) data trace logging is enabled for this * route. @@ -1508,7 +1513,8 @@ public open class CfnApiGatewayManagedOverrides( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.StageOverridesProperty, - ) : CdkObject(cdkObject), StageOverridesProperty { + ) : CdkObject(cdkObject), + StageOverridesProperty { /** * Settings for logging access in a stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverridesProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverridesProps.kt index bad4815191..13bd8ba1bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverridesProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiGatewayManagedOverridesProps.kt @@ -250,7 +250,8 @@ public interface CfnApiGatewayManagedOverridesProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverridesProps, - ) : CdkObject(cdkObject), CfnApiGatewayManagedOverridesProps { + ) : CdkObject(cdkObject), + CfnApiGatewayManagedOverridesProps { /** * The ID of the API for which to override the configuration of API Gateway-managed resources. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMapping.kt index 1a06e7ff7d..84c8224351 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMapping.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiMapping( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiMapping, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMappingProps.kt index 1ef7aa299a..32287aefd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiMappingProps.kt @@ -121,7 +121,8 @@ public interface CfnApiMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiMappingProps, - ) : CdkObject(cdkObject), CfnApiMappingProps { + ) : CdkObject(cdkObject), + CfnApiMappingProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiProps.kt index fa98f82363..fcbe383aee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnApiProps.kt @@ -682,7 +682,8 @@ public interface CfnApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnApiProps, - ) : CdkObject(cdkObject), CfnApiProps { + ) : CdkObject(cdkObject), + CfnApiProps { /** * An API key selection expression. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizer.kt index 5337189eff..ade2a8da07 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizer.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAuthorizer( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -850,7 +851,8 @@ public open class CfnAuthorizer( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer.JWTConfigurationProperty, - ) : CdkObject(cdkObject), JWTConfigurationProperty { + ) : CdkObject(cdkObject), + JWTConfigurationProperty { /** * A list of the intended recipients of the JWT. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizerProps.kt index 7141582e98..1ba6b58ddb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnAuthorizerProps.kt @@ -528,7 +528,8 @@ public interface CfnAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnAuthorizerProps, - ) : CdkObject(cdkObject), CfnAuthorizerProps { + ) : CdkObject(cdkObject), + CfnAuthorizerProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeployment.kt index 4ffcd4770b..f524527669 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeployment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeployment.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeployment( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDeployment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeploymentProps.kt index c763ce850e..bae3b54ff2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDeploymentProps.kt @@ -101,7 +101,8 @@ public interface CfnDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDeploymentProps, - ) : CdkObject(cdkObject), CfnDeploymentProps { + ) : CdkObject(cdkObject), + CfnDeploymentProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainName.kt index 828b84540a..32a8571c29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainName.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomainName( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDomainName, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -546,7 +548,8 @@ public open class CfnDomainName( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDomainName.DomainNameConfigurationProperty, - ) : CdkObject(cdkObject), DomainNameConfigurationProperty { + ) : CdkObject(cdkObject), + DomainNameConfigurationProperty { /** * An AWS -managed certificate that will be used by the edge-optimized endpoint for this * domain name. @@ -711,7 +714,8 @@ public open class CfnDomainName( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDomainName.MutualTlsAuthenticationProperty, - ) : CdkObject(cdkObject), MutualTlsAuthenticationProperty { + ) : CdkObject(cdkObject), + MutualTlsAuthenticationProperty { /** * An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, * `s3:// bucket-name / key-name` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainNameProps.kt index c3478bef17..81e0e9db8b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnDomainNameProps.kt @@ -201,7 +201,8 @@ public interface CfnDomainNameProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnDomainNameProps, - ) : CdkObject(cdkObject), CfnDomainNameProps { + ) : CdkObject(cdkObject), + CfnDomainNameProps { /** * The custom domain name for your API in Amazon API Gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegration.kt index 918b16930e..2d07dcc009 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegration.kt @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIntegration( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -93,6 +94,11 @@ public open class CfnIntegration( */ public open fun attrId(): String = unwrap(this).getAttrId() + /** + * The integration ID. + */ + public open fun attrIntegrationId(): String = unwrap(this).getAttrIntegrationId() + /** * The ID of the VPC link for a private integration. */ @@ -1079,7 +1085,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterListProperty, - ) : CdkObject(cdkObject), ResponseParameterListProperty { + ) : CdkObject(cdkObject), + ResponseParameterListProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparameterlist.html#cfn-apigatewayv2-integration-responseparameterlist-responseparameters) */ @@ -1105,6 +1112,118 @@ public open class CfnIntegration( } /** + * map of response parameter lists. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; + * ResponseParameterMapProperty responseParameterMapProperty = + * ResponseParameterMapProperty.builder() + * .responseParameters(List.of(ResponseParameterProperty.builder() + * .destination("destination") + * .source("source") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparametermap.html) + */ + public interface ResponseParameterMapProperty { + /** + * list of response parameters. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparametermap.html#cfn-apigatewayv2-integration-responseparametermap-responseparameters) + */ + public fun responseParameters(): Any? = unwrap(this).getResponseParameters() + + /** + * A builder for [ResponseParameterMapProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param responseParameters list of response parameters. + */ + public fun responseParameters(responseParameters: IResolvable) + + /** + * @param responseParameters list of response parameters. + */ + public fun responseParameters(responseParameters: List) + + /** + * @param responseParameters list of response parameters. + */ + public fun responseParameters(vararg responseParameters: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty.Builder + = + software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty.builder() + + /** + * @param responseParameters list of response parameters. + */ + override fun responseParameters(responseParameters: IResolvable) { + cdkBuilder.responseParameters(responseParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param responseParameters list of response parameters. + */ + override fun responseParameters(responseParameters: List) { + cdkBuilder.responseParameters(responseParameters.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param responseParameters list of response parameters. + */ + override fun responseParameters(vararg responseParameters: Any): Unit = + responseParameters(responseParameters.toList()) + + public fun build(): + software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty, + ) : CdkObject(cdkObject), + ResponseParameterMapProperty { + /** + * list of response parameters. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparametermap.html#cfn-apigatewayv2-integration-responseparametermap-responseparameters) + */ + override fun responseParameters(): Any? = unwrap(this).getResponseParameters() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ResponseParameterMapProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty): + ResponseParameterMapProperty = CdkObjectWrappers.wrap(cdkObject) as? + ResponseParameterMapProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ResponseParameterMapProperty): + software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterMapProperty + } + } + + /** + * response parameter. + * * Example: * * ``` @@ -1123,12 +1242,12 @@ public open class CfnIntegration( /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparameter.html#cfn-apigatewayv2-integration-responseparameter-destination) */ - public fun destination(): String + public fun destination(): String? = unwrap(this).getDestination() /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparameter.html#cfn-apigatewayv2-integration-responseparameter-source) */ - public fun source(): String + public fun source(): String? = unwrap(this).getSource() /** * A builder for [ResponseParameterProperty] @@ -1136,12 +1255,12 @@ public open class CfnIntegration( @CdkDslMarker public interface Builder { /** - * @param destination the value to be set. + * @param destination the value to be set. */ public fun destination(destination: String) /** - * @param source the value to be set. + * @param source the value to be set. */ public fun source(source: String) } @@ -1153,14 +1272,14 @@ public open class CfnIntegration( software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterProperty.builder() /** - * @param destination the value to be set. + * @param destination the value to be set. */ override fun destination(destination: String) { cdkBuilder.destination(destination) } /** - * @param source the value to be set. + * @param source the value to be set. */ override fun source(source: String) { cdkBuilder.source(source) @@ -1173,16 +1292,17 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration.ResponseParameterProperty, - ) : CdkObject(cdkObject), ResponseParameterProperty { + ) : CdkObject(cdkObject), + ResponseParameterProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparameter.html#cfn-apigatewayv2-integration-responseparameter-destination) */ - override fun destination(): String = unwrap(this).getDestination() + override fun destination(): String? = unwrap(this).getDestination() /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-responseparameter.html#cfn-apigatewayv2-integration-responseparameter-source) */ - override fun source(): String = unwrap(this).getSource() + override fun source(): String? = unwrap(this).getSource() } public companion object { @@ -1270,7 +1390,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegration.TlsConfigProperty, - ) : CdkObject(cdkObject), TlsConfigProperty { + ) : CdkObject(cdkObject), + TlsConfigProperty { /** * If you specify a server name, API Gateway uses it to verify the hostname on the * integration's certificate. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationProps.kt index 93e83213bc..e5ae06e99b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationProps.kt @@ -774,7 +774,8 @@ public interface CfnIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegrationProps, - ) : CdkObject(cdkObject), CfnIntegrationProps { + ) : CdkObject(cdkObject), + CfnIntegrationProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponse.kt index 9995ef0d8b..2cbdf30509 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponse.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIntegrationResponse( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegrationResponse, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponseProps.kt index 7c07aa691b..49a5001455 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnIntegrationResponseProps.kt @@ -261,7 +261,8 @@ public interface CfnIntegrationResponseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnIntegrationResponseProps, - ) : CdkObject(cdkObject), CfnIntegrationResponseProps { + ) : CdkObject(cdkObject), + CfnIntegrationResponseProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModel.kt index 171f8f8695..aa638059d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModel.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModel( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnModel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModelProps.kt index cd613dfa0e..4df2bb395f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnModelProps.kt @@ -147,7 +147,8 @@ public interface CfnModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnModelProps, - ) : CdkObject(cdkObject), CfnModelProps { + ) : CdkObject(cdkObject), + CfnModelProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRoute.kt index 27a2b46329..7c669bd725 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRoute.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoute( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -638,7 +639,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRoute.ParameterConstraintsProperty, - ) : CdkObject(cdkObject), ParameterConstraintsProperty { + ) : CdkObject(cdkObject), + ParameterConstraintsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-route-parameterconstraints.html#cfn-apigatewayv2-route-parameterconstraints-required) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteProps.kt index 278687132d..8ba2fff158 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteProps.kt @@ -362,7 +362,8 @@ public interface CfnRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRouteProps, - ) : CdkObject(cdkObject), CfnRouteProps { + ) : CdkObject(cdkObject), + CfnRouteProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponse.kt index 019271643b..e06c431587 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponse.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRouteResponse( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRouteResponse, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -395,7 +396,8 @@ public open class CfnRouteResponse( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRouteResponse.ParameterConstraintsProperty, - ) : CdkObject(cdkObject), ParameterConstraintsProperty { + ) : CdkObject(cdkObject), + ParameterConstraintsProperty { /** * Specifies whether the parameter is required. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponseProps.kt index a71e0cefb8..65e5940a55 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnRouteResponseProps.kt @@ -185,7 +185,8 @@ public interface CfnRouteResponseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnRouteResponseProps, - ) : CdkObject(cdkObject), CfnRouteResponseProps { + ) : CdkObject(cdkObject), + CfnRouteResponseProps { /** * The API identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStage.kt index 2a4316df30..b3a6543c27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStage.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStage( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnStage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -758,7 +760,8 @@ public open class CfnStage( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnStage.AccessLogSettingsProperty, - ) : CdkObject(cdkObject), AccessLogSettingsProperty { + ) : CdkObject(cdkObject), + AccessLogSettingsProperty { /** * The ARN of the CloudWatch Logs log group to receive access logs. * @@ -980,7 +983,8 @@ public open class CfnStage( private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnStage.RouteSettingsProperty, - ) : CdkObject(cdkObject), RouteSettingsProperty { + ) : CdkObject(cdkObject), + RouteSettingsProperty { /** * Specifies whether ( `true` ) or not ( `false` ) data trace logging is enabled for this * route. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStageProps.kt index 36cdfdbf4c..139d5dddb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnStageProps.kt @@ -399,7 +399,8 @@ public interface CfnStageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnStageProps, - ) : CdkObject(cdkObject), CfnStageProps { + ) : CdkObject(cdkObject), + CfnStageProps { /** * Settings for logging access in this stage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLink.kt index 062fa4d92a..a0a96a5b41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLink.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcLink( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnVpcLink, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLinkProps.kt index f852a6db2e..0cbfc7d343 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CfnVpcLinkProps.kt @@ -149,7 +149,8 @@ public interface CfnVpcLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CfnVpcLinkProps, - ) : CdkObject(cdkObject), CfnVpcLinkProps { + ) : CdkObject(cdkObject), + CfnVpcLinkProps { /** * The name of the VPC link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CorsPreflightOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CorsPreflightOptions.kt index 40d89b955c..668d43801d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CorsPreflightOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/CorsPreflightOptions.kt @@ -205,7 +205,8 @@ public interface CorsPreflightOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.CorsPreflightOptions, - ) : CdkObject(cdkObject), CorsPreflightOptions { + ) : CdkObject(cdkObject), + CorsPreflightOptions { /** * Specifies whether credentials are included in the CORS request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainMappingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainMappingOptions.kt index 976aa85c0b..fb0ea3843b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainMappingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainMappingOptions.kt @@ -85,7 +85,8 @@ public interface DomainMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.DomainMappingOptions, - ) : CdkObject(cdkObject), DomainMappingOptions { + ) : CdkObject(cdkObject), + DomainMappingOptions { /** * The domain name for the mapping. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainName.kt index 14d16d61bc..5a441d1be5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainName.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DomainName( cdkObject: software.amazon.awscdk.services.apigatewayv2.DomainName, -) : Resource(cdkObject), IDomainName { +) : Resource(cdkObject), + IDomainName { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameAttributes.kt index d67d73a5f7..b4487ca37b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameAttributes.kt @@ -97,7 +97,8 @@ public interface DomainNameAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.DomainNameAttributes, - ) : CdkObject(cdkObject), DomainNameAttributes { + ) : CdkObject(cdkObject), + DomainNameAttributes { /** * domain name string. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameProps.kt index eaaed2abab..61dc3e9f91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/DomainNameProps.kt @@ -180,7 +180,8 @@ public interface DomainNameProps : EndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.DomainNameProps, - ) : CdkObject(cdkObject), DomainNameProps { + ) : CdkObject(cdkObject), + DomainNameProps { /** * The ACM certificate for this domain name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/EndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/EndpointOptions.kt index 2cfa63bce2..ff65bf6a38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/EndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/EndpointOptions.kt @@ -169,7 +169,8 @@ public interface EndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.EndpointOptions, - ) : CdkObject(cdkObject), EndpointOptions { + ) : CdkObject(cdkObject), + EndpointOptions { /** * The ACM certificate for this domain name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/GrantInvokeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/GrantInvokeOptions.kt index 88b2d67eb9..ae2f4bb780 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/GrantInvokeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/GrantInvokeOptions.kt @@ -70,7 +70,8 @@ public interface GrantInvokeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.GrantInvokeOptions, - ) : CdkObject(cdkObject), GrantInvokeOptions { + ) : CdkObject(cdkObject), + GrantInvokeOptions { /** * The HTTP methods to allow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApi.kt index fbccd0d191..efd0f3d0ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApi.kt @@ -34,7 +34,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HttpApi( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpApi, -) : Resource(cdkObject), IHttpApi, IApi { +) : Resource(cdkObject), + IHttpApi, + IApi { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigatewayv2.HttpApi(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -559,6 +561,19 @@ public open class HttpApi( * default endpoint. */ public fun disableExecuteApiEndpoint(disableExecuteApiEndpoint: Boolean) + + /** + * Whether to set the default route selection expression for the API. + * + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + * + * Default: false + * + * @param routeSelectionExpression Whether to set the default route selection expression for the + * API. + */ + public fun routeSelectionExpression(routeSelectionExpression: Boolean) } private class BuilderImpl( @@ -723,6 +738,21 @@ public open class HttpApi( cdkBuilder.disableExecuteApiEndpoint(disableExecuteApiEndpoint) } + /** + * Whether to set the default route selection expression for the API. + * + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + * + * Default: false + * + * @param routeSelectionExpression Whether to set the default route selection expression for the + * API. + */ + override fun routeSelectionExpression(routeSelectionExpression: Boolean) { + cdkBuilder.routeSelectionExpression(routeSelectionExpression) + } + public fun build(): software.amazon.awscdk.services.apigatewayv2.HttpApi = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiAttributes.kt index 38d851e188..0038c14b60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiAttributes.kt @@ -79,7 +79,8 @@ public interface HttpApiAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpApiAttributes, - ) : CdkObject(cdkObject), HttpApiAttributes { + ) : CdkObject(cdkObject), + HttpApiAttributes { /** * The endpoint URL of the HttpApi. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiProps.kt index 86ddc97578..1646115412 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpApiProps.kt @@ -110,6 +110,16 @@ public interface HttpApiProps { */ public fun disableExecuteApiEndpoint(): Boolean? = unwrap(this).getDisableExecuteApiEndpoint() + /** + * Whether to set the default route selection expression for the API. + * + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + * + * Default: false + */ + public fun routeSelectionExpression(): Boolean? = unwrap(this).getRouteSelectionExpression() + /** * A builder for [HttpApiProps] */ @@ -190,6 +200,14 @@ public interface HttpApiProps { * this if you would like clients to use your custom domain name. */ public fun disableExecuteApiEndpoint(disableExecuteApiEndpoint: Boolean) + + /** + * @param routeSelectionExpression Whether to set the default route selection expression for the + * API. + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + */ + public fun routeSelectionExpression(routeSelectionExpression: Boolean) } private class BuilderImpl : Builder { @@ -294,13 +312,24 @@ public interface HttpApiProps { cdkBuilder.disableExecuteApiEndpoint(disableExecuteApiEndpoint) } + /** + * @param routeSelectionExpression Whether to set the default route selection expression for the + * API. + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + */ + override fun routeSelectionExpression(routeSelectionExpression: Boolean) { + cdkBuilder.routeSelectionExpression(routeSelectionExpression) + } + public fun build(): software.amazon.awscdk.services.apigatewayv2.HttpApiProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpApiProps, - ) : CdkObject(cdkObject), HttpApiProps { + ) : CdkObject(cdkObject), + HttpApiProps { /** * Name for the HTTP API resource. * @@ -378,6 +407,16 @@ public interface HttpApiProps { * Default: false execute-api endpoint enabled. */ override fun disableExecuteApiEndpoint(): Boolean? = unwrap(this).getDisableExecuteApiEndpoint() + + /** + * Whether to set the default route selection expression for the API. + * + * When enabled, "${request.method} ${request.path}" is set as the default route selection + * expression. + * + * Default: false + */ + override fun routeSelectionExpression(): Boolean? = unwrap(this).getRouteSelectionExpression() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizer.kt index 6a16f155cf..49aa3ee03b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizer.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HttpAuthorizer( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpAuthorizer, -) : Resource(cdkObject), IHttpAuthorizer { +) : Resource(cdkObject), + IHttpAuthorizer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerAttributes.kt index fdbe6cc64f..bcd1a43259 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerAttributes.kt @@ -91,7 +91,8 @@ public interface HttpAuthorizerAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpAuthorizerAttributes, - ) : CdkObject(cdkObject), HttpAuthorizerAttributes { + ) : CdkObject(cdkObject), + HttpAuthorizerAttributes { /** * Id of the Authorizer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerProps.kt index 4e03101d1d..4e1a876389 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpAuthorizerProps.kt @@ -285,7 +285,8 @@ public interface HttpAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpAuthorizerProps, - ) : CdkObject(cdkObject), HttpAuthorizerProps { + ) : CdkObject(cdkObject), + HttpAuthorizerProps { /** * Name of the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegration.kt index 30e12db0f9..5ef5e9900b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegration.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.apigatewayv2 +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.Resource import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.String @@ -17,6 +18,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * HttpApi httpApi; * IntegrationCredentials integrationCredentials; @@ -35,12 +37,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .parameterMapping(parameterMapping) * .payloadFormatVersion(payloadFormatVersion) * .secureServerName("secureServerName") + * .timeout(Duration.minutes(30)) * .build(); * ``` */ public open class HttpIntegration( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpIntegration, -) : Resource(cdkObject), IHttpIntegration { +) : Resource(cdkObject), + IHttpIntegration { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -178,6 +182,18 @@ public open class HttpIntegration( * @param secureServerName Specifies the TLS configuration for a private integration. */ public fun secureServerName(secureServerName: String) + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl( @@ -316,6 +332,20 @@ public open class HttpIntegration( cdkBuilder.secureServerName(secureServerName) } + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + * + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.apigatewayv2.HttpIntegration = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegrationProps.kt index 0a6e329ace..bcad2295e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpIntegrationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.apigatewayv2 +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -16,6 +17,7 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * HttpApi httpApi; * IntegrationCredentials integrationCredentials; @@ -34,6 +36,7 @@ import kotlin.Unit * .parameterMapping(parameterMapping) * .payloadFormatVersion(payloadFormatVersion) * .secureServerName("secureServerName") + * .timeout(Duration.minutes(30)) * .build(); * ``` */ @@ -130,6 +133,15 @@ public interface HttpIntegrationProps { */ public fun secureServerName(): String? = unwrap(this).getSecureServerName() + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * A builder for [HttpIntegrationProps] */ @@ -194,6 +206,13 @@ public interface HttpIntegrationProps { * @param secureServerName Specifies the TLS configuration for a private integration. */ public fun secureServerName(secureServerName: String) + + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) } private class BuilderImpl : Builder { @@ -283,13 +302,23 @@ public interface HttpIntegrationProps { cdkBuilder.secureServerName(secureServerName) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.apigatewayv2.HttpIntegrationProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpIntegrationProps, - ) : CdkObject(cdkObject), HttpIntegrationProps { + ) : CdkObject(cdkObject), + HttpIntegrationProps { /** * The ID of the VPC link for a private integration. * @@ -382,6 +411,15 @@ public interface HttpIntegrationProps { * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html) */ override fun secureServerName(): String? = unwrap(this).getSecureServerName() + + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpNoneAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpNoneAuthorizer.kt index 217445f92c..69dd7af196 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpNoneAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpNoneAuthorizer.kt @@ -48,7 +48,8 @@ import kotlin.jvm.JvmName */ public open class HttpNoneAuthorizer( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpNoneAuthorizer, -) : CdkObject(cdkObject), IHttpRouteAuthorizer { +) : CdkObject(cdkObject), + IHttpRouteAuthorizer { public constructor() : this(software.amazon.awscdk.services.apigatewayv2.HttpNoneAuthorizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRoute.kt index 0bd6a349cf..30d35bd77e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRoute.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HttpRoute( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRoute, -) : Resource(cdkObject), IHttpRoute { +) : Resource(cdkObject), + IHttpRoute { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerBindOptions.kt index c8f69a9bdd..29667215b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerBindOptions.kt @@ -79,7 +79,8 @@ public interface HttpRouteAuthorizerBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRouteAuthorizerBindOptions, - ) : CdkObject(cdkObject), HttpRouteAuthorizerBindOptions { + ) : CdkObject(cdkObject), + HttpRouteAuthorizerBindOptions { /** * The route to which the authorizer is being bound. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerConfig.kt index ee8b540230..4cae2da736 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteAuthorizerConfig.kt @@ -130,7 +130,8 @@ public interface HttpRouteAuthorizerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRouteAuthorizerConfig, - ) : CdkObject(cdkObject), HttpRouteAuthorizerConfig { + ) : CdkObject(cdkObject), + HttpRouteAuthorizerConfig { /** * The list of OIDC scopes to include in the authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationBindOptions.kt index 5ced7d1822..d4f474bcb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationBindOptions.kt @@ -86,7 +86,8 @@ public interface HttpRouteIntegrationBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegrationBindOptions, - ) : CdkObject(cdkObject), HttpRouteIntegrationBindOptions { + ) : CdkObject(cdkObject), + HttpRouteIntegrationBindOptions { /** * The route to which this is being bound. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationConfig.kt index 6cd739aaed..d22fa856aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteIntegrationConfig.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.apigatewayv2 +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -16,6 +17,7 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.apigatewayv2.*; * IntegrationCredentials integrationCredentials; * ParameterMapping parameterMapping; @@ -31,6 +33,7 @@ import kotlin.Unit * .parameterMapping(parameterMapping) * .secureServerName("secureServerName") * .subtype(HttpIntegrationSubtype.EVENTBRIDGE_PUT_EVENTS) + * .timeout(Duration.minutes(30)) * .uri("uri") * .build(); * ``` @@ -106,6 +109,15 @@ public interface HttpRouteIntegrationConfig { public fun subtype(): HttpIntegrationSubtype? = unwrap(this).getSubtype()?.let(HttpIntegrationSubtype::wrap) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * Integration type. */ @@ -167,6 +179,13 @@ public interface HttpRouteIntegrationConfig { */ public fun subtype(subtype: HttpIntegrationSubtype) + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + public fun timeout(timeout: Duration) + /** * @param type Integration type. */ @@ -243,6 +262,15 @@ public interface HttpRouteIntegrationConfig { cdkBuilder.subtype(subtype.let(HttpIntegrationSubtype.Companion::unwrap)) } + /** + * @param timeout The maximum amount of time an integration will run before it returns without a + * response. + * Must be between 50 milliseconds and 29 seconds. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param type Integration type. */ @@ -263,7 +291,8 @@ public interface HttpRouteIntegrationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegrationConfig, - ) : CdkObject(cdkObject), HttpRouteIntegrationConfig { + ) : CdkObject(cdkObject), + HttpRouteIntegrationConfig { /** * The ID of the VPC link for a private integration. * @@ -335,6 +364,15 @@ public interface HttpRouteIntegrationConfig { override fun subtype(): HttpIntegrationSubtype? = unwrap(this).getSubtype()?.let(HttpIntegrationSubtype::wrap) + /** + * The maximum amount of time an integration will run before it returns without a response. + * + * Must be between 50 milliseconds and 29 seconds. + * + * Default: Duration.seconds(29) + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * Integration type. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteProps.kt index e99d1a0cf8..514b4f631c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpRouteProps.kt @@ -156,7 +156,8 @@ public interface HttpRouteProps : BatchHttpRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpRouteProps, - ) : CdkObject(cdkObject), HttpRouteProps { + ) : CdkObject(cdkObject), + HttpRouteProps { /** * The list of OIDC scopes to include in the authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStage.kt index 352bb1c56c..42c21bf86b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStage.kt @@ -23,12 +23,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * HttpStage.Builder.create(this, "Stage") * .httpApi(api) * .stageName("beta") + * .description("My Stage") * .build(); * ``` */ public open class HttpStage( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpStage, -) : Resource(cdkObject), IHttpStage, IStage { +) : Resource(cdkObject), + IHttpStage, + IStage { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -276,6 +279,15 @@ public open class HttpStage( */ public fun autoDeploy(autoDeploy: Boolean) + /** + * The description for the API stage. + * + * Default: - no description + * + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * The options for custom domain and api mapping. * @@ -354,6 +366,17 @@ public open class HttpStage( cdkBuilder.autoDeploy(autoDeploy) } + /** + * The description for the API stage. + * + * Default: - no description + * + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageAttributes.kt index 3013e57ade..bdb68160e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageAttributes.kt @@ -70,7 +70,8 @@ public interface HttpStageAttributes : StageAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpStageAttributes, - ) : CdkObject(cdkObject), HttpStageAttributes { + ) : CdkObject(cdkObject), + HttpStageAttributes { /** * The API to which this stage is associated. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageOptions.kt index 44c07e2bb4..dc486e0466 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageOptions.kt @@ -50,6 +50,11 @@ public interface HttpStageOptions : StageOptions { */ public fun autoDeploy(autoDeploy: Boolean) + /** + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -92,6 +97,13 @@ public interface HttpStageOptions : StageOptions { cdkBuilder.autoDeploy(autoDeploy) } + /** + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -136,7 +148,8 @@ public interface HttpStageOptions : StageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpStageOptions, - ) : CdkObject(cdkObject), HttpStageOptions { + ) : CdkObject(cdkObject), + HttpStageOptions { /** * Whether updates to an API automatically trigger a new deployment. * @@ -144,6 +157,13 @@ public interface HttpStageOptions : StageOptions { */ override fun autoDeploy(): Boolean? = unwrap(this).getAutoDeploy() + /** + * The description for the API stage. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageProps.kt index b31a354cac..6c60594f36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/HttpStageProps.kt @@ -20,6 +20,7 @@ import kotlin.jvm.JvmName * HttpStage.Builder.create(this, "Stage") * .httpApi(api) * .stageName("beta") + * .description("My Stage") * .build(); * ``` */ @@ -39,6 +40,11 @@ public interface HttpStageProps : HttpStageOptions { */ public fun autoDeploy(autoDeploy: Boolean) + /** + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -86,6 +92,13 @@ public interface HttpStageProps : HttpStageOptions { cdkBuilder.autoDeploy(autoDeploy) } + /** + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -137,7 +150,8 @@ public interface HttpStageProps : HttpStageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.HttpStageProps, - ) : CdkObject(cdkObject), HttpStageProps { + ) : CdkObject(cdkObject), + HttpStageProps { /** * Whether updates to an API automatically trigger a new deployment. * @@ -145,6 +159,13 @@ public interface HttpStageProps : HttpStageOptions { */ override fun autoDeploy(): Boolean? = unwrap(this).getAutoDeploy() + /** + * The description for the API stage. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApi.kt index 79d20d91d6..a10ab782d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApi.kt @@ -63,7 +63,8 @@ public interface IApi : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IApi, - ) : CdkObject(cdkObject), IApi { + ) : CdkObject(cdkObject), + IApi { /** * The default endpoint for an API. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApiMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApiMapping.kt index 2bf6533765..78d9dcf3a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApiMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IApiMapping.kt @@ -24,7 +24,8 @@ public interface IApiMapping : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IApiMapping, - ) : CdkObject(cdkObject), IApiMapping { + ) : CdkObject(cdkObject), + IApiMapping { /** * ID of the api mapping. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IAuthorizer.kt index 13e76f854f..2b48169b7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IAuthorizer.kt @@ -22,7 +22,8 @@ public interface IAuthorizer : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IAuthorizer, - ) : CdkObject(cdkObject), IAuthorizer { + ) : CdkObject(cdkObject), + IAuthorizer { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IDomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IDomainName.kt index 0d218888a9..2456f2bdcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IDomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IDomainName.kt @@ -34,7 +34,8 @@ public interface IDomainName : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IDomainName, - ) : CdkObject(cdkObject), IDomainName { + ) : CdkObject(cdkObject), + IDomainName { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpApi.kt index a34d34a36b..79f7a45cb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpApi.kt @@ -314,7 +314,8 @@ public interface IHttpApi : IApi { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpApi, - ) : CdkObject(cdkObject), IHttpApi { + ) : CdkObject(cdkObject), + IHttpApi { /** * Add a new VpcLink. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpAuthorizer.kt index cc51606d55..808bda2b54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpAuthorizer.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IHttpAuthorizer : IAuthorizer { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpAuthorizer, - ) : CdkObject(cdkObject), IHttpAuthorizer { + ) : CdkObject(cdkObject), + IHttpAuthorizer { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpIntegration.kt index c32c10ba43..696abf77c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpIntegration.kt @@ -21,7 +21,8 @@ public interface IHttpIntegration : IIntegration { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpIntegration, - ) : CdkObject(cdkObject), IHttpIntegration { + ) : CdkObject(cdkObject), + IHttpIntegration { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRoute.kt index da431d28c9..e16ff707b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRoute.kt @@ -70,7 +70,8 @@ public interface IHttpRoute : IRoute { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpRoute, - ) : CdkObject(cdkObject), IHttpRoute { + ) : CdkObject(cdkObject), + IHttpRoute { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRouteAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRouteAuthorizer.kt index 330592c558..a559bff55a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRouteAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpRouteAuthorizer.kt @@ -30,7 +30,8 @@ public interface IHttpRouteAuthorizer { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpRouteAuthorizer, - ) : CdkObject(cdkObject), IHttpRouteAuthorizer { + ) : CdkObject(cdkObject), + IHttpRouteAuthorizer { /** * Bind this authorizer to a specified Http route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpStage.kt index ef0700c2a1..5689d88e80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IHttpStage.kt @@ -216,7 +216,8 @@ public interface IHttpStage : IStage { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IHttpStage, - ) : CdkObject(cdkObject), IHttpStage { + ) : CdkObject(cdkObject), + IHttpStage { /** * The API this stage is associated to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IIntegration.kt index 21a5f2ca2f..e6c43c57a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IIntegration.kt @@ -22,7 +22,8 @@ public interface IIntegration : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IIntegration, - ) : CdkObject(cdkObject), IIntegration { + ) : CdkObject(cdkObject), + IIntegration { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IMappingValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IMappingValue.kt index cf24ad3dbe..aa9bbacc3a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IMappingValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IMappingValue.kt @@ -17,7 +17,8 @@ public interface IMappingValue { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IMappingValue, - ) : CdkObject(cdkObject), IMappingValue { + ) : CdkObject(cdkObject), + IMappingValue { /** * Represents a Mapping Value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IRoute.kt index bfbf03d952..5e056a34f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IRoute.kt @@ -22,7 +22,8 @@ public interface IRoute : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IRoute, - ) : CdkObject(cdkObject), IRoute { + ) : CdkObject(cdkObject), + IRoute { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IStage.kt index 3c3e21073a..38ab7a8af4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IStage.kt @@ -65,7 +65,8 @@ public interface IStage : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IStage, - ) : CdkObject(cdkObject), IStage { + ) : CdkObject(cdkObject), + IStage { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IVpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IVpcLink.kt index 21f352def7..e6c7ed8405 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IVpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IVpcLink.kt @@ -28,7 +28,8 @@ public interface IVpcLink : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IVpcLink, - ) : CdkObject(cdkObject), IVpcLink { + ) : CdkObject(cdkObject), + IVpcLink { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketApi.kt index 1c2db4f9c0..2777861269 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketApi.kt @@ -20,7 +20,8 @@ import kotlin.jvm.JvmName public interface IWebSocketApi : IApi { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketApi, - ) : CdkObject(cdkObject), IWebSocketApi { + ) : CdkObject(cdkObject), + IWebSocketApi { /** * The default endpoint for an API. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketAuthorizer.kt index a855f101f1..640377f792 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketAuthorizer.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IWebSocketAuthorizer : IAuthorizer { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketAuthorizer, - ) : CdkObject(cdkObject), IWebSocketAuthorizer { + ) : CdkObject(cdkObject), + IWebSocketAuthorizer { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketIntegration.kt index 1be460f645..155d17f74a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketIntegration.kt @@ -21,7 +21,8 @@ public interface IWebSocketIntegration : IIntegration { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketIntegration, - ) : CdkObject(cdkObject), IWebSocketIntegration { + ) : CdkObject(cdkObject), + IWebSocketIntegration { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRoute.kt index cb25a50e77..365803087d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRoute.kt @@ -26,7 +26,8 @@ public interface IWebSocketRoute : IRoute { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketRoute, - ) : CdkObject(cdkObject), IWebSocketRoute { + ) : CdkObject(cdkObject), + IWebSocketRoute { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRouteAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRouteAuthorizer.kt index 72d3d341cf..32be76ba88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRouteAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketRouteAuthorizer.kt @@ -30,7 +30,8 @@ public interface IWebSocketRouteAuthorizer { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketRouteAuthorizer, - ) : CdkObject(cdkObject), IWebSocketRouteAuthorizer { + ) : CdkObject(cdkObject), + IWebSocketRouteAuthorizer { /** * Bind this authorizer to a specified WebSocket route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketStage.kt index 98a52f53e7..53bd396f0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/IWebSocketStage.kt @@ -34,7 +34,8 @@ public interface IWebSocketStage : IStage { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.IWebSocketStage, - ) : CdkObject(cdkObject), IWebSocketStage { + ) : CdkObject(cdkObject), + IWebSocketStage { /** * The API this stage is associated to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MTLSConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MTLSConfig.kt index 0cd31bc975..efc7ef52f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MTLSConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MTLSConfig.kt @@ -104,7 +104,8 @@ public interface MTLSConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.MTLSConfig, - ) : CdkObject(cdkObject), MTLSConfig { + ) : CdkObject(cdkObject), + MTLSConfig { /** * The bucket that the trust store is hosted in. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MappingValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MappingValue.kt index dda482ad74..71ac5aa6cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MappingValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/MappingValue.kt @@ -28,7 +28,8 @@ import kotlin.String */ public open class MappingValue( cdkObject: software.amazon.awscdk.services.apigatewayv2.MappingValue, -) : CdkObject(cdkObject), IMappingValue { +) : CdkObject(cdkObject), + IMappingValue { /** * Represents a Mapping Value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageAttributes.kt index 640a73d3b5..23f65934e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageAttributes.kt @@ -56,7 +56,8 @@ public interface StageAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.StageAttributes, - ) : CdkObject(cdkObject), StageAttributes { + ) : CdkObject(cdkObject), + StageAttributes { /** * The name of the stage. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageOptions.kt index 40d54f304d..94465ad979 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/StageOptions.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean +import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName @@ -23,6 +24,7 @@ import kotlin.jvm.JvmName * DomainName domainName; * StageOptions stageOptions = StageOptions.builder() * .autoDeploy(false) + * .description("description") * .domainMapping(DomainMappingOptions.builder() * .domainName(domainName) * // the properties below are optional @@ -43,6 +45,13 @@ public interface StageOptions { */ public fun autoDeploy(): Boolean? = unwrap(this).getAutoDeploy() + /** + * The description for the API stage. + * + * Default: - no description + */ + public fun description(): String? = unwrap(this).getDescription() + /** * The options for custom domain and api mapping. * @@ -68,6 +77,11 @@ public interface StageOptions { */ public fun autoDeploy(autoDeploy: Boolean) + /** + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -104,6 +118,13 @@ public interface StageOptions { cdkBuilder.autoDeploy(autoDeploy) } + /** + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -140,7 +161,8 @@ public interface StageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.StageOptions, - ) : CdkObject(cdkObject), StageOptions { + ) : CdkObject(cdkObject), + StageOptions { /** * Whether updates to an API automatically trigger a new deployment. * @@ -148,6 +170,13 @@ public interface StageOptions { */ override fun autoDeploy(): Boolean? = unwrap(this).getAutoDeploy() + /** + * The description for the API stage. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ThrottleSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ThrottleSettings.kt index 4fdfa6a4a8..52db339fcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ThrottleSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/ThrottleSettings.kt @@ -83,7 +83,8 @@ public interface ThrottleSettings { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.ThrottleSettings, - ) : CdkObject(cdkObject), ThrottleSettings { + ) : CdkObject(cdkObject), + ThrottleSettings { /** * The maximum API request rate limit over a time ranging from one to a few seconds. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLink.kt index a12110f601..8ce38c830f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLink.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VpcLink( cdkObject: software.amazon.awscdk.services.apigatewayv2.VpcLink, -) : Resource(cdkObject), IVpcLink { +) : Resource(cdkObject), + IVpcLink { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkAttributes.kt index ce4de5c31e..d6f3bf3f23 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkAttributes.kt @@ -75,7 +75,8 @@ public interface VpcLinkAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.VpcLinkAttributes, - ) : CdkObject(cdkObject), VpcLinkAttributes { + ) : CdkObject(cdkObject), + VpcLinkAttributes { /** * The VPC to which this VPC link is associated with. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkProps.kt index ce1799d681..e0677c5e99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/VpcLinkProps.kt @@ -149,7 +149,8 @@ public interface VpcLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.VpcLinkProps, - ) : CdkObject(cdkObject), VpcLinkProps { + ) : CdkObject(cdkObject), + VpcLinkProps { /** * A list of security groups for the VPC link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApi.kt index d228fb75ad..1ae5c9005f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApi.kt @@ -35,7 +35,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class WebSocketApi( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketApi, -) : Resource(cdkObject), IWebSocketApi, IApi { +) : Resource(cdkObject), + IWebSocketApi, + IApi { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apigatewayv2.WebSocketApi(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiAttributes.kt index be9e35b428..4adaf02348 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiAttributes.kt @@ -72,7 +72,8 @@ public interface WebSocketApiAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketApiAttributes, - ) : CdkObject(cdkObject), WebSocketApiAttributes { + ) : CdkObject(cdkObject), + WebSocketApiAttributes { /** * The endpoint URL of the WebSocketApi. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiProps.kt index 690c0bbfc8..025e9e5c3f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketApiProps.kt @@ -238,7 +238,8 @@ public interface WebSocketApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketApiProps, - ) : CdkObject(cdkObject), WebSocketApiProps { + ) : CdkObject(cdkObject), + WebSocketApiProps { /** * An API key selection expression. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizer.kt index de6cbbaa1e..e3ecde9785 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizer.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class WebSocketAuthorizer( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketAuthorizer, -) : Resource(cdkObject), IWebSocketAuthorizer { +) : Resource(cdkObject), + IWebSocketAuthorizer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerAttributes.kt index 553ac615e2..abf5cd18f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerAttributes.kt @@ -89,7 +89,8 @@ public interface WebSocketAuthorizerAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketAuthorizerAttributes, - ) : CdkObject(cdkObject), WebSocketAuthorizerAttributes { + ) : CdkObject(cdkObject), + WebSocketAuthorizerAttributes { /** * Id of the Authorizer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerProps.kt index 1df9fb4916..0efcbb1ca5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketAuthorizerProps.kt @@ -153,7 +153,8 @@ public interface WebSocketAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketAuthorizerProps, - ) : CdkObject(cdkObject), WebSocketAuthorizerProps { + ) : CdkObject(cdkObject), + WebSocketAuthorizerProps { /** * Name of the authorizer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegration.kt index 9c00b08dd5..4b8b270ff2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegration.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class WebSocketIntegration( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketIntegration, -) : Resource(cdkObject), IWebSocketIntegration { +) : Resource(cdkObject), + IWebSocketIntegration { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegrationProps.kt index 0ed1b9bacc..4e58848391 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegrationProps.kt @@ -308,7 +308,8 @@ public interface WebSocketIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketIntegrationProps, - ) : CdkObject(cdkObject), WebSocketIntegrationProps { + ) : CdkObject(cdkObject), + WebSocketIntegrationProps { /** * Specifies how to handle response payload content type conversions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketNoneAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketNoneAuthorizer.kt index 3e504de2d3..c8ee7ef625 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketNoneAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketNoneAuthorizer.kt @@ -20,7 +20,8 @@ import kotlin.jvm.JvmName */ public open class WebSocketNoneAuthorizer( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketNoneAuthorizer, -) : CdkObject(cdkObject), IWebSocketRouteAuthorizer { +) : CdkObject(cdkObject), + IWebSocketRouteAuthorizer { public constructor() : this(software.amazon.awscdk.services.apigatewayv2.WebSocketNoneAuthorizer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRoute.kt index 0b8af2d6dc..61cb172db6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRoute.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class WebSocketRoute( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRoute, -) : Resource(cdkObject), IWebSocketRoute { +) : Resource(cdkObject), + IWebSocketRoute { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerBindOptions.kt index f2efe55a76..9fdb35e1c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerBindOptions.kt @@ -80,7 +80,8 @@ public interface WebSocketRouteAuthorizerBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteAuthorizerBindOptions, - ) : CdkObject(cdkObject), WebSocketRouteAuthorizerBindOptions { + ) : CdkObject(cdkObject), + WebSocketRouteAuthorizerBindOptions { /** * The route to which the authorizer is being bound. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerConfig.kt index 83ea1398e8..121633a5a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteAuthorizerConfig.kt @@ -92,7 +92,8 @@ public interface WebSocketRouteAuthorizerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteAuthorizerConfig, - ) : CdkObject(cdkObject), WebSocketRouteAuthorizerConfig { + ) : CdkObject(cdkObject), + WebSocketRouteAuthorizerConfig { /** * The type of authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationBindOptions.kt index c34003ade0..ca101c7b37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationBindOptions.kt @@ -87,7 +87,8 @@ public interface WebSocketRouteIntegrationBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteIntegrationBindOptions, - ) : CdkObject(cdkObject), WebSocketRouteIntegrationBindOptions { + ) : CdkObject(cdkObject), + WebSocketRouteIntegrationBindOptions { /** * The route to which this is being bound. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationConfig.kt index 2262a85ca1..078365e6a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteIntegrationConfig.kt @@ -256,7 +256,8 @@ public interface WebSocketRouteIntegrationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteIntegrationConfig, - ) : CdkObject(cdkObject), WebSocketRouteIntegrationConfig { + ) : CdkObject(cdkObject), + WebSocketRouteIntegrationConfig { /** * Specifies how to handle response payload content type conversions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteOptions.kt index 6bb17de921..23760c5b95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteOptions.kt @@ -105,7 +105,8 @@ public interface WebSocketRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteOptions, - ) : CdkObject(cdkObject), WebSocketRouteOptions { + ) : CdkObject(cdkObject), + WebSocketRouteOptions { /** * The authorize to this route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteProps.kt index 058ba38449..ca3d2c2213 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketRouteProps.kt @@ -140,7 +140,8 @@ public interface WebSocketRouteProps : WebSocketRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketRouteProps, - ) : CdkObject(cdkObject), WebSocketRouteProps { + ) : CdkObject(cdkObject), + WebSocketRouteProps { /** * Whether the route requires an API Key to be provided. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStage.kt index 23fcc085e6..2a2eecf192 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStage.kt @@ -22,27 +22,23 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * ``` * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration; - * Function connectHandler; - * Function disconnectHandler; - * Function defaultHandler; - * WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi") - * .connectRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("ConnectIntegration", connectHandler)).build()) - * .disconnectRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("DisconnectIntegration", disconnectHandler)).build()) - * .defaultRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("DefaultIntegration", defaultHandler)).build()) - * .build(); + * Function messageHandler; + * WebSocketApi webSocketApi = new WebSocketApi(this, "mywsapi"); * WebSocketStage.Builder.create(this, "mystage") * .webSocketApi(webSocketApi) * .stageName("dev") * .autoDeploy(true) * .build(); + * webSocketApi.addRoute("sendMessage", WebSocketRouteOptions.builder() + * .integration(new WebSocketLambdaIntegration("SendMessageIntegration", messageHandler)) + * .build()); * ``` */ public open class WebSocketStage( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketStage, -) : Resource(cdkObject), IWebSocketStage, IStage { +) : Resource(cdkObject), + IWebSocketStage, + IStage { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -133,6 +129,15 @@ public open class WebSocketStage( */ public fun autoDeploy(autoDeploy: Boolean) + /** + * The description for the API stage. + * + * Default: - no description + * + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * The options for custom domain and api mapping. * @@ -206,6 +211,17 @@ public open class WebSocketStage( cdkBuilder.autoDeploy(autoDeploy) } + /** + * The description for the API stage. + * + * Default: - no description + * + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageAttributes.kt index af34ab9946..2c8a069ba6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageAttributes.kt @@ -71,7 +71,8 @@ public interface WebSocketStageAttributes : StageAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketStageAttributes, - ) : CdkObject(cdkObject), WebSocketStageAttributes { + ) : CdkObject(cdkObject), + WebSocketStageAttributes { /** * The API to which this stage is associated. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageProps.kt index 4afd7fa6ce..14948e32db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketStageProps.kt @@ -17,22 +17,16 @@ import kotlin.jvm.JvmName * * ``` * import io.cloudshiftdev.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration; - * Function connectHandler; - * Function disconnectHandler; - * Function defaultHandler; - * WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi") - * .connectRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("ConnectIntegration", connectHandler)).build()) - * .disconnectRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("DisconnectIntegration", disconnectHandler)).build()) - * .defaultRouteOptions(WebSocketRouteOptions.builder().integration(new - * WebSocketLambdaIntegration("DefaultIntegration", defaultHandler)).build()) - * .build(); + * Function messageHandler; + * WebSocketApi webSocketApi = new WebSocketApi(this, "mywsapi"); * WebSocketStage.Builder.create(this, "mystage") * .webSocketApi(webSocketApi) * .stageName("dev") * .autoDeploy(true) * .build(); + * webSocketApi.addRoute("sendMessage", WebSocketRouteOptions.builder() + * .integration(new WebSocketLambdaIntegration("SendMessageIntegration", messageHandler)) + * .build()); * ``` */ public interface WebSocketStageProps : StageOptions { @@ -56,6 +50,11 @@ public interface WebSocketStageProps : StageOptions { */ public fun autoDeploy(autoDeploy: Boolean) + /** + * @param description The description for the API stage. + */ + public fun description(description: String) + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -102,6 +101,13 @@ public interface WebSocketStageProps : StageOptions { cdkBuilder.autoDeploy(autoDeploy) } + /** + * @param description The description for the API stage. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param domainMapping The options for custom domain and api mapping. */ @@ -152,7 +158,8 @@ public interface WebSocketStageProps : StageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.apigatewayv2.WebSocketStageProps, - ) : CdkObject(cdkObject), WebSocketStageProps { + ) : CdkObject(cdkObject), + WebSocketStageProps { /** * Whether updates to an API automatically trigger a new deployment. * @@ -160,6 +167,13 @@ public interface WebSocketStageProps : StageOptions { */ override fun autoDeploy(): Boolean? = unwrap(this).getAutoDeploy() + /** + * The description for the API stage. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + /** * The options for custom domain and api mapping. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ActionProps.kt index e1fb786cdf..8113df9a9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ActionProps.kt @@ -176,7 +176,8 @@ public interface ActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ActionProps, - ) : CdkObject(cdkObject), ActionProps { + ) : CdkObject(cdkObject), + ActionProps { /** * The action points that will trigger the extension action. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Application.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Application.kt index 22043f42b8..6576774d87 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Application.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Application.kt @@ -33,7 +33,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Application( cdkObject: software.amazon.awscdk.services.appconfig.Application, -) : Resource(cdkObject), IApplication, IExtensible { +) : Resource(cdkObject), + IApplication, + IExtensible { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appconfig.Application(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ApplicationProps.kt index c9fc43b2bf..e51511f211 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ApplicationProps.kt @@ -78,7 +78,8 @@ public interface ApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ApplicationProps, - ) : CdkObject(cdkObject), ApplicationProps { + ) : CdkObject(cdkObject), + ApplicationProps { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplication.kt index a41ab18fb7..62a2a098a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplication.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.appconfig.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplicationProps.kt index b9c2245894..ed1186594f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnApplicationProps.kt @@ -127,7 +127,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * A description of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfile.kt index dabbe949c8..3f944e5921 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfile.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationProfile( cdkObject: software.amazon.awscdk.services.appconfig.CfnConfigurationProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -300,7 +302,7 @@ public open class CfnConfigurationProfile( * `secretsmanager` ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). * @@ -448,7 +450,7 @@ public open class CfnConfigurationProfile( * `secretsmanager` ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). * @@ -666,7 +668,8 @@ public open class CfnConfigurationProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnConfigurationProfile.ValidatorsProperty, - ) : CdkObject(cdkObject), ValidatorsProperty { + ) : CdkObject(cdkObject), + ValidatorsProperty { /** * Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfileProps.kt index 5d18369624..00a868d92b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnConfigurationProfileProps.kt @@ -79,7 +79,7 @@ public interface CfnConfigurationProfileProps { * ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). * @@ -172,7 +172,7 @@ public interface CfnConfigurationProfileProps { * `secretsmanager` ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). */ @@ -273,7 +273,7 @@ public interface CfnConfigurationProfileProps { * `secretsmanager` ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). */ @@ -355,7 +355,8 @@ public interface CfnConfigurationProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnConfigurationProfileProps, - ) : CdkObject(cdkObject), CfnConfigurationProfileProps { + ) : CdkObject(cdkObject), + CfnConfigurationProfileProps { /** * The application ID. * @@ -390,7 +391,7 @@ public interface CfnConfigurationProfileProps { * `secretsmanager` ://. * * For an Amazon S3 object, specify the URI in the following format: * `s3://<bucket>/<objectKey>` . Here is an example: - * `s3://my-bucket/my-app/us-east-1/my-config.json` + * `s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json` * * For an SSM document, specify either the document name in the format * `ssm-document://<document name>` or the Amazon Resource Name (ARN). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeployment.kt index 1c4cffbf1b..90f97d2bef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeployment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeployment.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeployment( cdkObject: software.amazon.awscdk.services.appconfig.CfnDeployment, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -628,7 +630,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnDeployment.DynamicExtensionParametersProperty, - ) : CdkObject(cdkObject), DynamicExtensionParametersProperty { + ) : CdkObject(cdkObject), + DynamicExtensionParametersProperty { /** * The ARN or ID of the extension for which you are inserting a dynamic parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentProps.kt index cf77ae79a6..d38cbc7250 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentProps.kt @@ -295,7 +295,8 @@ public interface CfnDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnDeploymentProps, - ) : CdkObject(cdkObject), CfnDeploymentProps { + ) : CdkObject(cdkObject), + CfnDeploymentProps { /** * The application ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategy.kt index 0d8e0d983c..083efd4af0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategy.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeploymentStrategy( cdkObject: software.amazon.awscdk.services.appconfig.CfnDeploymentStrategy, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategyProps.kt index 4abda36f3d..82bee159aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnDeploymentStrategyProps.kt @@ -321,7 +321,8 @@ public interface CfnDeploymentStrategyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnDeploymentStrategyProps, - ) : CdkObject(cdkObject), CfnDeploymentStrategyProps { + ) : CdkObject(cdkObject), + CfnDeploymentStrategyProps { /** * Total amount of time for a deployment to last. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironment.kt index 8574a7d0f7..725726e7c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironment.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.appconfig.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -449,7 +451,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnEnvironment.MonitorProperty, - ) : CdkObject(cdkObject), MonitorProperty { + ) : CdkObject(cdkObject), + MonitorProperty { /** * Amazon Resource Name (ARN) of the Amazon CloudWatch alarm. * @@ -551,7 +554,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnEnvironment.MonitorsProperty, - ) : CdkObject(cdkObject), MonitorsProperty { + ) : CdkObject(cdkObject), + MonitorsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-environment-monitors.html#cfn-appconfig-environment-monitors-alarmarn) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironmentProps.kt index e627df5ad1..932b4b6747 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnEnvironmentProps.kt @@ -194,7 +194,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * The application ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtension.kt index 965881ca16..6d0e2f3f4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtension.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExtension( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtension, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -554,7 +556,8 @@ public open class CfnExtension( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtension.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Information about actions defined in the extension. * @@ -741,7 +744,8 @@ public open class CfnExtension( private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtension.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * Information about the parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociation.kt index c2b8771b04..ed20a63411 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociation.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExtensionAssociation( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtensionAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appconfig.CfnExtensionAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociationProps.kt index ab2f1b0f48..a8093d8b41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionAssociationProps.kt @@ -202,7 +202,8 @@ public interface CfnExtensionAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtensionAssociationProps, - ) : CdkObject(cdkObject), CfnExtensionAssociationProps { + ) : CdkObject(cdkObject), + CfnExtensionAssociationProps { /** * The name, the ID, or the Amazon Resource Name (ARN) of the extension. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionProps.kt index 649cfd2553..6dddf84be2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnExtensionProps.kt @@ -242,7 +242,8 @@ public interface CfnExtensionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnExtensionProps, - ) : CdkObject(cdkObject), CfnExtensionProps { + ) : CdkObject(cdkObject), + CfnExtensionProps { /** * The actions defined in the extension. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersion.kt index 237b57a495..4baead14b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersion.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHostedConfigurationVersion( cdkObject: software.amazon.awscdk.services.appconfig.CfnHostedConfigurationVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -96,12 +97,12 @@ public open class CfnHostedConfigurationVersion( } /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. */ public open fun content(): String = unwrap(this).getContent() /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. */ public open fun content(`value`: String) { unwrap(this).setContent(`value`) @@ -189,10 +190,15 @@ public open class CfnHostedConfigurationVersion( public fun configurationProfileId(configurationProfileId: String) /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. + * + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-hostedconfigurationversion.html#cfn-appconfig-hostedconfigurationversion-content) - * @param content The content of the configuration or the configuration data. + * @param content The configuration data, as bytes. */ public fun content(content: String) @@ -268,10 +274,15 @@ public open class CfnHostedConfigurationVersion( } /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. + * + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-hostedconfigurationversion.html#cfn-appconfig-hostedconfigurationversion-content) - * @param content The content of the configuration or the configuration data. + * @param content The configuration data, as bytes. */ override fun content(content: String) { cdkBuilder.content(content) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersionProps.kt index 642d1bc539..dac7435ef3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersionProps.kt @@ -49,7 +49,12 @@ public interface CfnHostedConfigurationVersionProps { public fun configurationProfileId(): String /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. + * + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-hostedconfigurationversion.html#cfn-appconfig-hostedconfigurationversion-content) */ @@ -107,7 +112,10 @@ public interface CfnHostedConfigurationVersionProps { public fun configurationProfileId(configurationProfileId: String) /** - * @param content The content of the configuration or the configuration data. + * @param content The configuration data, as bytes. + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. */ public fun content(content: String) @@ -158,7 +166,10 @@ public interface CfnHostedConfigurationVersionProps { } /** - * @param content The content of the configuration or the configuration data. + * @param content The configuration data, as bytes. + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. */ override fun content(content: String) { cdkBuilder.content(content) @@ -204,7 +215,8 @@ public interface CfnHostedConfigurationVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.CfnHostedConfigurationVersionProps, - ) : CdkObject(cdkObject), CfnHostedConfigurationVersionProps { + ) : CdkObject(cdkObject), + CfnHostedConfigurationVersionProps { /** * The application ID. * @@ -220,7 +232,12 @@ public interface CfnHostedConfigurationVersionProps { override fun configurationProfileId(): String = unwrap(this).getConfigurationProfileId() /** - * The content of the configuration or the configuration data. + * The configuration data, as bytes. + * + * + * AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary + * formats like protocol buffers or compressed data. + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-hostedconfigurationversion.html#cfn-appconfig-hostedconfigurationversion-content) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationOptions.kt index 703f6b75a4..bdc73e2d38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationOptions.kt @@ -235,7 +235,8 @@ public interface ConfigurationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ConfigurationOptions, - ) : CdkObject(cdkObject), ConfigurationOptions { + ) : CdkObject(cdkObject), + ConfigurationOptions { /** * The list of environments to deploy the configuration to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationProps.kt index 5d663dbb8d..d2f0452815 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ConfigurationProps.kt @@ -196,7 +196,8 @@ public interface ConfigurationProps : ConfigurationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ConfigurationProps, - ) : CdkObject(cdkObject), ConfigurationProps { + ) : CdkObject(cdkObject), + ConfigurationProps { /** * The application associated with the configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategy.kt index 2762868376..4d079060d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategy.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DeploymentStrategy( cdkObject: software.amazon.awscdk.services.appconfig.DeploymentStrategy, -) : Resource(cdkObject), IDeploymentStrategy { +) : Resource(cdkObject), + IDeploymentStrategy { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategyProps.kt index 3a99abe4a1..d7c91fa148 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/DeploymentStrategyProps.kt @@ -109,7 +109,8 @@ public interface DeploymentStrategyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.DeploymentStrategyProps, - ) : CdkObject(cdkObject), DeploymentStrategyProps { + ) : CdkObject(cdkObject), + DeploymentStrategyProps { /** * A name for the deployment strategy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Environment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Environment.kt index 43bd2e9d54..9d5a70920f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Environment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Environment.kt @@ -5,6 +5,8 @@ package io.cloudshiftdev.awscdk.services.appconfig import io.cloudshiftdev.awscdk.Resource import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.Grant +import io.cloudshiftdev.awscdk.services.iam.IGrantable import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -38,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Environment( cdkObject: software.amazon.awscdk.services.appconfig.Environment, -) : Resource(cdkObject), IEnvironment, IExtensible { +) : Resource(cdkObject), + IEnvironment, + IExtensible { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -116,6 +120,26 @@ public open class Environment( */ public override fun environmentId(): String = unwrap(this).getEnvironmentId() + /** + * Adds an IAM policy statement associated with this environment to an IAM principal's policy. + * + * @param grantee + * @param actions + */ + public override fun grant(grantee: IGrantable, vararg actions: String): Grant = + unwrap(this).grant(grantee.let(IGrantable.Companion::unwrap), + *actions.map{CdkObjectWrappers.unwrap(it) as String}.toTypedArray()).let(Grant::wrap) + + /** + * Permits an IAM principal to perform read operations on this environment's configurations. + * + * Actions: GetLatestConfiguration, StartConfigurationSession. + * + * @param identity + */ + public override fun grantReadConfig(identity: IGrantable): Grant = + unwrap(this).grantReadConfig(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * The monitors for the environment. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentAttributes.kt index 54627a00f0..89cfef1aeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentAttributes.kt @@ -149,7 +149,8 @@ public interface EnvironmentAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.EnvironmentAttributes, - ) : CdkObject(cdkObject), EnvironmentAttributes { + ) : CdkObject(cdkObject), + EnvironmentAttributes { /** * The application associated with the environment. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentOptions.kt index b64705657a..b71473ca53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentOptions.kt @@ -111,7 +111,8 @@ public interface EnvironmentOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.EnvironmentOptions, - ) : CdkObject(cdkObject), EnvironmentOptions { + ) : CdkObject(cdkObject), + EnvironmentOptions { /** * The description of the environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentProps.kt index fbcd5ae3f2..d39fe34139 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EnvironmentProps.kt @@ -111,7 +111,8 @@ public interface EnvironmentProps : EnvironmentOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.EnvironmentProps, - ) : CdkObject(cdkObject), EnvironmentProps { + ) : CdkObject(cdkObject), + EnvironmentProps { /** * The application to be associated with the environment. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EventBridgeDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EventBridgeDestination.kt index f13ebb8199..318c24e3d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EventBridgeDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/EventBridgeDestination.kt @@ -24,7 +24,8 @@ import kotlin.String */ public open class EventBridgeDestination( cdkObject: software.amazon.awscdk.services.appconfig.EventBridgeDestination, -) : CdkObject(cdkObject), IEventDestination { +) : CdkObject(cdkObject), + IEventDestination { public constructor(bus: IEventBus) : this(software.amazon.awscdk.services.appconfig.EventBridgeDestination(bus.let(IEventBus.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensibleBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensibleBase.kt index 36812aa305..6e3d0859e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensibleBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensibleBase.kt @@ -28,7 +28,8 @@ import kotlin.jvm.JvmName */ public open class ExtensibleBase( cdkObject: software.amazon.awscdk.services.appconfig.ExtensibleBase, -) : CdkObject(cdkObject), IExtensible { +) : CdkObject(cdkObject), + IExtensible { public constructor(scope: Construct, resourceArn: String) : this(software.amazon.awscdk.services.appconfig.ExtensibleBase(scope.let(Construct.Companion::unwrap), resourceArn) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Extension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Extension.kt index 95ac4ac93e..bad3df62a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Extension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/Extension.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Extension( cdkObject: software.amazon.awscdk.services.appconfig.Extension, -) : Resource(cdkObject), IExtension { +) : Resource(cdkObject), + IExtension { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionAttributes.kt index 568971d4e8..2df967aef7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionAttributes.kt @@ -168,7 +168,8 @@ public interface ExtensionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ExtensionAttributes, - ) : CdkObject(cdkObject), ExtensionAttributes { + ) : CdkObject(cdkObject), + ExtensionAttributes { /** * The actions of the extension. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionOptions.kt index 87a87c123a..e1635685fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionOptions.kt @@ -142,7 +142,8 @@ public interface ExtensionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ExtensionOptions, - ) : CdkObject(cdkObject), ExtensionOptions { + ) : CdkObject(cdkObject), + ExtensionOptions { /** * A description of the extension. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionProps.kt index f721a012fc..bb1168f78b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/ExtensionProps.kt @@ -134,7 +134,8 @@ public interface ExtensionProps : ExtensionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.ExtensionProps, - ) : CdkObject(cdkObject), ExtensionProps { + ) : CdkObject(cdkObject), + ExtensionProps { /** * The actions for the extension. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfiguration.kt index 361bd2c45f..dc61a8d6ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfiguration.kt @@ -32,7 +32,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HostedConfiguration( cdkObject: software.amazon.awscdk.services.appconfig.HostedConfiguration, -) : CloudshiftdevConstructsConstruct(cdkObject), IConfiguration, IExtensible { +) : CloudshiftdevConstructsConstruct(cdkObject), + IConfiguration, + IExtensible { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationOptions.kt index 81d384e6e8..4e5b81d39a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationOptions.kt @@ -238,7 +238,8 @@ public interface HostedConfigurationOptions : ConfigurationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.HostedConfigurationOptions, - ) : CdkObject(cdkObject), HostedConfigurationOptions { + ) : CdkObject(cdkObject), + HostedConfigurationOptions { /** * The content of the hosted configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationProps.kt index 90ed094c44..ac5b154a84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/HostedConfigurationProps.kt @@ -237,7 +237,8 @@ public interface HostedConfigurationProps : ConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.HostedConfigurationProps, - ) : CdkObject(cdkObject), HostedConfigurationProps { + ) : CdkObject(cdkObject), + HostedConfigurationProps { /** * The application associated with the configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IApplication.kt index f08b7c457b..89d1f274dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IApplication.kt @@ -377,7 +377,8 @@ public interface IApplication : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IApplication, - ) : CdkObject(cdkObject), IApplication { + ) : CdkObject(cdkObject), + IApplication { /** * Adds an environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IConfiguration.kt index e15ddf8ff1..4efe4f4081 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IConfiguration.kt @@ -69,7 +69,8 @@ public interface IConfiguration : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IConfiguration, - ) : CdkObject(cdkObject), IConfiguration { + ) : CdkObject(cdkObject), + IConfiguration { /** * The application associated with the configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IDeploymentStrategy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IDeploymentStrategy.kt index 9034fc68b2..b9dde7c900 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IDeploymentStrategy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IDeploymentStrategy.kt @@ -58,7 +58,8 @@ public interface IDeploymentStrategy : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IDeploymentStrategy, - ) : CdkObject(cdkObject), IDeploymentStrategy { + ) : CdkObject(cdkObject), + IDeploymentStrategy { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEnvironment.kt index 351370bd66..ec94fcb6bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEnvironment.kt @@ -8,6 +8,8 @@ import io.cloudshiftdev.awscdk.ResourceEnvironment import io.cloudshiftdev.awscdk.Stack import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.Grant +import io.cloudshiftdev.awscdk.services.iam.IGrantable import io.cloudshiftdev.constructs.Node import kotlin.String import kotlin.Unit @@ -71,6 +73,24 @@ public interface IEnvironment : IResource { */ public fun environmentId(): String + /** + * Adds an IAM policy statement associated with this environment to an IAM principal's policy. + * + * @param grantee the principal (no-op if undefined). + * @param actions the set of actions to allow (i.e., 'appconfig:GetLatestConfiguration', + * 'appconfig:StartConfigurationSession', etc.). + */ + public fun grant(grantee: IGrantable, vararg actions: String): Grant + + /** + * Permits an IAM principal to perform read operations on this environment's configurations. + * + * Actions: GetLatestConfiguration, StartConfigurationSession. + * + * @param grantee Principal to grant read rights to. + */ + public fun grantReadConfig(grantee: IGrantable): Grant + /** * The monitors for the environment. */ @@ -335,7 +355,8 @@ public interface IEnvironment : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IEnvironment, - ) : CdkObject(cdkObject), IEnvironment { + ) : CdkObject(cdkObject), + IEnvironment { /** * Creates a deployment of the supplied configuration to this environment. * @@ -426,6 +447,27 @@ public interface IEnvironment : IResource { */ override fun environmentId(): String = unwrap(this).getEnvironmentId() + /** + * Adds an IAM policy statement associated with this environment to an IAM principal's policy. + * + * @param grantee the principal (no-op if undefined). + * @param actions the set of actions to allow (i.e., 'appconfig:GetLatestConfiguration', + * 'appconfig:StartConfigurationSession', etc.). + */ + override fun grant(grantee: IGrantable, vararg actions: String): Grant = + unwrap(this).grant(grantee.let(IGrantable.Companion::unwrap), + *actions.map{CdkObjectWrappers.unwrap(it) as String}.toTypedArray()).let(Grant::wrap) + + /** + * Permits an IAM principal to perform read operations on this environment's configurations. + * + * Actions: GetLatestConfiguration, StartConfigurationSession. + * + * @param grantee Principal to grant read rights to. + */ + override fun grantReadConfig(grantee: IGrantable): Grant = + unwrap(this).grantReadConfig(grantee.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * The monitors for the environment. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEventDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEventDestination.kt index 1def619676..846d95762a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEventDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IEventDestination.kt @@ -29,7 +29,8 @@ public interface IEventDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IEventDestination, - ) : CdkObject(cdkObject), IEventDestination { + ) : CdkObject(cdkObject), + IEventDestination { /** * The URI of the extension event destination. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtensible.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtensible.kt index 14bcdc6b08..d5907f37ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtensible.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtensible.kt @@ -271,7 +271,8 @@ public interface IExtensible { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IExtensible, - ) : CdkObject(cdkObject), IExtensible { + ) : CdkObject(cdkObject), + IExtensible { /** * Adds an extension association to the derived resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtension.kt index 15d9f3e5d2..5667460b5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IExtension.kt @@ -60,7 +60,8 @@ public interface IExtension : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IExtension, - ) : CdkObject(cdkObject), IExtension { + ) : CdkObject(cdkObject), + IExtension { /** * The actions for the extension. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IValidator.kt index a9ecfeb82f..37cb3676a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/IValidator.kt @@ -22,7 +22,8 @@ public interface IValidator { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.IValidator, - ) : CdkObject(cdkObject), IValidator { + ) : CdkObject(cdkObject), + IValidator { /** * The content of the validator. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/JsonSchemaValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/JsonSchemaValidator.kt index 955eb1b05b..b6aa570f22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/JsonSchemaValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/JsonSchemaValidator.kt @@ -24,7 +24,8 @@ import kotlin.String */ public abstract class JsonSchemaValidator( cdkObject: software.amazon.awscdk.services.appconfig.JsonSchemaValidator, -) : CdkObject(cdkObject), IValidator { +) : CdkObject(cdkObject), + IValidator { /** * The content of the validator. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaDestination.kt index 7191e88cea..42d3112f95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaDestination.kt @@ -25,7 +25,8 @@ import kotlin.String */ public open class LambdaDestination( cdkObject: software.amazon.awscdk.services.appconfig.LambdaDestination, -) : CdkObject(cdkObject), IEventDestination { +) : CdkObject(cdkObject), + IEventDestination { public constructor(func: IFunction) : this(software.amazon.awscdk.services.appconfig.LambdaDestination(func.let(IFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaValidator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaValidator.kt index e3d7e20cec..be8de434a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaValidator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/LambdaValidator.kt @@ -25,7 +25,8 @@ import kotlin.String */ public abstract class LambdaValidator( cdkObject: software.amazon.awscdk.services.appconfig.LambdaValidator, -) : CdkObject(cdkObject), IValidator { +) : CdkObject(cdkObject), + IValidator { /** * The content of the validator. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/RolloutStrategyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/RolloutStrategyProps.kt index c09bfb3fce..f489941583 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/RolloutStrategyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/RolloutStrategyProps.kt @@ -132,7 +132,8 @@ public interface RolloutStrategyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.RolloutStrategyProps, - ) : CdkObject(cdkObject), RolloutStrategyProps { + ) : CdkObject(cdkObject), + RolloutStrategyProps { /** * The deployment duration of the deployment strategy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SnsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SnsDestination.kt index 9dc9e49235..71593345f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SnsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SnsDestination.kt @@ -25,7 +25,8 @@ import kotlin.String */ public open class SnsDestination( cdkObject: software.amazon.awscdk.services.appconfig.SnsDestination, -) : CdkObject(cdkObject), IEventDestination { +) : CdkObject(cdkObject), + IEventDestination { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.appconfig.SnsDestination(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfiguration.kt index d8a227dfe9..3c4e7e8be6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfiguration.kt @@ -32,7 +32,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SourcedConfiguration( cdkObject: software.amazon.awscdk.services.appconfig.SourcedConfiguration, -) : CloudshiftdevConstructsConstruct(cdkObject), IConfiguration, IExtensible { +) : CloudshiftdevConstructsConstruct(cdkObject), + IConfiguration, + IExtensible { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -533,7 +535,8 @@ public open class SourcedConfiguration( /** * The IAM role to retrieve the configuration. * - * Default: - A role is generated. + * Default: - Auto generated if location type is not ConfigurationSourceType.CODE_PIPELINE + * otherwise no role specified. * * @param retrievalRole The IAM role to retrieve the configuration. */ @@ -684,7 +687,8 @@ public open class SourcedConfiguration( /** * The IAM role to retrieve the configuration. * - * Default: - A role is generated. + * Default: - Auto generated if location type is not ConfigurationSourceType.CODE_PIPELINE + * otherwise no role specified. * * @param retrievalRole The IAM role to retrieve the configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationOptions.kt index 9ad8651b87..df0b25a026 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationOptions.kt @@ -247,7 +247,8 @@ public interface SourcedConfigurationOptions : ConfigurationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.SourcedConfigurationOptions, - ) : CdkObject(cdkObject), SourcedConfigurationOptions { + ) : CdkObject(cdkObject), + SourcedConfigurationOptions { /** * The list of environments to deploy the configuration to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationProps.kt index a1fa1f15f0..181e4f4d84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SourcedConfigurationProps.kt @@ -37,7 +37,8 @@ public interface SourcedConfigurationProps : ConfigurationProps { /** * The IAM role to retrieve the configuration. * - * Default: - A role is generated. + * Default: - Auto generated if location type is not ConfigurationSourceType.CODE_PIPELINE + * otherwise no role specified. */ public fun retrievalRole(): IRole? = unwrap(this).getRetrievalRole()?.let(IRole::wrap) @@ -244,7 +245,8 @@ public interface SourcedConfigurationProps : ConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appconfig.SourcedConfigurationProps, - ) : CdkObject(cdkObject), SourcedConfigurationProps { + ) : CdkObject(cdkObject), + SourcedConfigurationProps { /** * The application associated with the configuration. */ @@ -303,7 +305,8 @@ public interface SourcedConfigurationProps : ConfigurationProps { /** * The IAM role to retrieve the configuration. * - * Default: - A role is generated. + * Default: - Auto generated if location type is not ConfigurationSourceType.CODE_PIPELINE + * otherwise no role specified. */ override fun retrievalRole(): IRole? = unwrap(this).getRetrievalRole()?.let(IRole::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SqsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SqsDestination.kt index 59bb5d99bc..39e1a24d82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SqsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/SqsDestination.kt @@ -25,7 +25,8 @@ import kotlin.String */ public open class SqsDestination( cdkObject: software.amazon.awscdk.services.appconfig.SqsDestination, -) : CdkObject(cdkObject), IEventDestination { +) : CdkObject(cdkObject), + IEventDestination { public constructor(queue: IQueue) : this(software.amazon.awscdk.services.appconfig.SqsDestination(queue.let(IQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnector.kt index 585c3c6155..707cb99128 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnector.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnector( cdkObject: software.amazon.awscdk.services.appflow.CfnConnector, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -388,7 +389,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnector.ConnectorProvisioningConfigProperty, - ) : CdkObject(cdkObject), ConnectorProvisioningConfigProperty { + ) : CdkObject(cdkObject), + ConnectorProvisioningConfigProperty { /** * Contains information about the configuration of the lambda which is being registered as the * connector. @@ -474,7 +476,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnector.LambdaConnectorProvisioningConfigProperty, - ) : CdkObject(cdkObject), LambdaConnectorProvisioningConfigProperty { + ) : CdkObject(cdkObject), + LambdaConnectorProvisioningConfigProperty { /** * Lambda ARN of the connector being registered. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfile.kt index 5475dd5eaf..88e2221c51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfile.kt @@ -299,7 +299,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectorProfile( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -705,7 +706,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.AmplitudeConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), AmplitudeConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + AmplitudeConnectorProfileCredentialsProperty { /** * A unique alphanumeric identifier used to authenticate a user, developer, or calling program * to your API. @@ -817,7 +819,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ApiKeyCredentialsProperty, - ) : CdkObject(cdkObject), ApiKeyCredentialsProperty { + ) : CdkObject(cdkObject), + ApiKeyCredentialsProperty { /** * The API key required for API key authentication. * @@ -927,7 +930,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.BasicAuthCredentialsProperty, - ) : CdkObject(cdkObject), BasicAuthCredentialsProperty { + ) : CdkObject(cdkObject), + BasicAuthCredentialsProperty { /** * The password to use to connect to a resource. * @@ -1043,7 +1047,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty, - ) : CdkObject(cdkObject), ConnectorOAuthRequestProperty { + ) : CdkObject(cdkObject), + ConnectorOAuthRequestProperty { /** * The code provided by the connector when it has been authenticated via the connected app. * @@ -1468,7 +1473,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfileConfigProperty, - ) : CdkObject(cdkObject), ConnectorProfileConfigProperty { + ) : CdkObject(cdkObject), + ConnectorProfileConfigProperty { /** * The connector-specific credentials required by each connector. * @@ -2558,7 +2564,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), ConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + ConnectorProfileCredentialsProperty { /** * The connector-specific credentials required when using Amplitude. * @@ -3481,7 +3488,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), ConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + ConnectorProfilePropertiesProperty { /** * The properties required by the custom connector. * @@ -3690,7 +3698,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.CustomAuthCredentialsProperty, - ) : CdkObject(cdkObject), CustomAuthCredentialsProperty { + ) : CdkObject(cdkObject), + CustomAuthCredentialsProperty { /** * A map that holds custom authentication credentials. * @@ -4000,7 +4009,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.CustomConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), CustomConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + CustomConnectorProfileCredentialsProperty { /** * The API keys required for the authentication of the user. * @@ -4183,7 +4193,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.CustomConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), CustomConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + CustomConnectorProfilePropertiesProperty { /** * The OAuth 2.0 properties required for OAuth 2.0 authentication. * @@ -4307,7 +4318,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.DatadogConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), DatadogConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + DatadogConnectorProfileCredentialsProperty { /** * A unique alphanumeric identifier used to authenticate a user, developer, or calling program * to your API. @@ -4403,7 +4415,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.DatadogConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), DatadogConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + DatadogConnectorProfilePropertiesProperty { /** * The location of the Datadog resource. * @@ -4487,7 +4500,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.DynatraceConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), DynatraceConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + DynatraceConnectorProfileCredentialsProperty { /** * The API tokens used by Dynatrace API to authenticate various API calls. * @@ -4571,7 +4585,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.DynatraceConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), DynatraceConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + DynatraceConnectorProfilePropertiesProperty { /** * The location of the Dynatrace resource. * @@ -4784,7 +4799,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.GoogleAnalyticsConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), GoogleAnalyticsConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + GoogleAnalyticsConnectorProfileCredentialsProperty { /** * The credentials used to access protected Google Analytics resources. * @@ -4960,7 +4976,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.InforNexusConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), InforNexusConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + InforNexusConnectorProfileCredentialsProperty { /** * The Access Key portion of the credentials. * @@ -5065,7 +5082,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.InforNexusConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), InforNexusConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + InforNexusConnectorProfilePropertiesProperty { /** * The location of the Infor Nexus resource. * @@ -5251,7 +5269,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.MarketoConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), MarketoConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + MarketoConnectorProfileCredentialsProperty { /** * The credentials used to access protected Marketo resources. * @@ -5357,7 +5376,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.MarketoConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), MarketoConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + MarketoConnectorProfilePropertiesProperty { /** * The location of the Marketo resource. * @@ -5550,7 +5570,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.OAuth2CredentialsProperty, - ) : CdkObject(cdkObject), OAuth2CredentialsProperty { + ) : CdkObject(cdkObject), + OAuth2CredentialsProperty { /** * The access token used to access the connector on your behalf. * @@ -5728,7 +5749,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.OAuth2PropertiesProperty, - ) : CdkObject(cdkObject), OAuth2PropertiesProperty { + ) : CdkObject(cdkObject), + OAuth2PropertiesProperty { /** * The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. * @@ -5939,7 +5961,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.OAuthCredentialsProperty, - ) : CdkObject(cdkObject), OAuthCredentialsProperty { + ) : CdkObject(cdkObject), + OAuthCredentialsProperty { /** * The access token used to access protected SAPOData resources. * @@ -6103,7 +6126,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.OAuthPropertiesProperty, - ) : CdkObject(cdkObject), OAuthPropertiesProperty { + ) : CdkObject(cdkObject), + OAuthPropertiesProperty { /** * The authorization code url required to redirect to SAP Login Page to fetch authorization * code for OAuth type authentication. @@ -6294,7 +6318,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.PardotConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), PardotConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + PardotConnectorProfileCredentialsProperty { /** * The credentials used to access protected Salesforce Pardot resources. * @@ -6455,7 +6480,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.PardotConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), PardotConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + PardotConnectorProfilePropertiesProperty { /** * The business unit id of Salesforce Pardot instance. * @@ -6573,7 +6599,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.RedshiftConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), RedshiftConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + RedshiftConnectorProfileCredentialsProperty { /** * The password that corresponds to the user name. * @@ -6876,7 +6903,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.RedshiftConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), RedshiftConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + RedshiftConnectorProfilePropertiesProperty { /** * A name for the associated Amazon S3 bucket. * @@ -7117,7 +7145,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SAPODataConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), SAPODataConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + SAPODataConnectorProfileCredentialsProperty { /** * The SAPOData basic authentication credentials. * @@ -7404,7 +7433,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SAPODataConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), SAPODataConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + SAPODataConnectorProfilePropertiesProperty { /** * The location of the SAPOData resource. * @@ -7726,7 +7756,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), SalesforceConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + SalesforceConnectorProfileCredentialsProperty { /** * The credentials used to access protected Salesforce resources. * @@ -8071,7 +8102,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SalesforceConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), SalesforceConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + SalesforceConnectorProfilePropertiesProperty { /** * The location of the Salesforce resource. * @@ -8273,7 +8305,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), ServiceNowConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + ServiceNowConnectorProfileCredentialsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-servicenowconnectorprofilecredentials.html#cfn-appflow-connectorprofile-servicenowconnectorprofilecredentials-oauth2credentials) */ @@ -8369,7 +8402,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ServiceNowConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), ServiceNowConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + ServiceNowConnectorProfilePropertiesProperty { /** * The location of the ServiceNow resource. * @@ -8456,7 +8490,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SingularConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), SingularConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + SingularConnectorProfileCredentialsProperty { /** * A unique alphanumeric identifier used to authenticate a user, developer, or calling program * to your API. @@ -8643,7 +8678,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SlackConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), SlackConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + SlackConnectorProfileCredentialsProperty { /** * The credentials used to access protected Slack resources. * @@ -8749,7 +8785,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SlackConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), SlackConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + SlackConnectorProfilePropertiesProperty { /** * The location of the Slack resource. * @@ -8853,7 +8890,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SnowflakeConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), SnowflakeConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + SnowflakeConnectorProfileCredentialsProperty { /** * The password that corresponds to the user name. * @@ -9076,7 +9114,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.SnowflakeConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), SnowflakeConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + SnowflakeConnectorProfilePropertiesProperty { /** * The name of the account. * @@ -9205,7 +9244,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.TrendmicroConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), TrendmicroConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + TrendmicroConnectorProfileCredentialsProperty { /** * The Secret Access Key portion of the credentials. * @@ -9309,7 +9349,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.VeevaConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), VeevaConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + VeevaConnectorProfileCredentialsProperty { /** * The password that corresponds to the user name. * @@ -9400,7 +9441,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.VeevaConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), VeevaConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + VeevaConnectorProfilePropertiesProperty { /** * The location of the Veeva resource. * @@ -9586,7 +9628,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ZendeskConnectorProfileCredentialsProperty, - ) : CdkObject(cdkObject), ZendeskConnectorProfileCredentialsProperty { + ) : CdkObject(cdkObject), + ZendeskConnectorProfileCredentialsProperty { /** * The credentials used to access protected Zendesk resources. * @@ -9692,7 +9735,8 @@ public open class CfnConnectorProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfile.ZendeskConnectorProfilePropertiesProperty, - ) : CdkObject(cdkObject), ZendeskConnectorProfilePropertiesProperty { + ) : CdkObject(cdkObject), + ZendeskConnectorProfilePropertiesProperty { /** * The location of the Zendesk resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfileProps.kt index 94aaa77e71..498faedc78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProfileProps.kt @@ -451,7 +451,8 @@ public interface CfnConnectorProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProfileProps, - ) : CdkObject(cdkObject), CfnConnectorProfileProps { + ) : CdkObject(cdkObject), + CfnConnectorProfileProps { /** * Indicates the connection mode and if it is public or private. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProps.kt index 1a2c5aaf20..3266e1ef49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnConnectorProps.kt @@ -160,7 +160,8 @@ public interface CfnConnectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnConnectorProps, - ) : CdkObject(cdkObject), CfnConnectorProps { + ) : CdkObject(cdkObject), + CfnConnectorProps { /** * The label used for registering the connector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlow.kt index 1e8de858a1..f9b3954f13 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlow.kt @@ -336,7 +336,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlow( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1163,7 +1165,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.AggregationConfigProperty, - ) : CdkObject(cdkObject), AggregationConfigProperty { + ) : CdkObject(cdkObject), + AggregationConfigProperty { /** * Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave * them unaggregated. @@ -1259,7 +1262,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.AmplitudeSourcePropertiesProperty, - ) : CdkObject(cdkObject), AmplitudeSourcePropertiesProperty { + ) : CdkObject(cdkObject), + AmplitudeSourcePropertiesProperty { /** * The object specified in the Amplitude flow source. * @@ -1664,7 +1668,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ConnectorOperatorProperty, - ) : CdkObject(cdkObject), ConnectorOperatorProperty { + ) : CdkObject(cdkObject), + ConnectorOperatorProperty { /** * The operation to be performed on the provided Amplitude source fields. * @@ -2019,7 +2024,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.CustomConnectorDestinationPropertiesProperty, - ) : CdkObject(cdkObject), CustomConnectorDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + CustomConnectorDestinationPropertiesProperty { /** * The custom properties that are specific to the connector when it's used as a destination in * the flow. @@ -2229,7 +2235,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.CustomConnectorSourcePropertiesProperty, - ) : CdkObject(cdkObject), CustomConnectorSourcePropertiesProperty { + ) : CdkObject(cdkObject), + CustomConnectorSourcePropertiesProperty { /** * Custom properties that are required to use the custom connector as a source. * @@ -2363,7 +2370,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.DataTransferApiProperty, - ) : CdkObject(cdkObject), DataTransferApiProperty { + ) : CdkObject(cdkObject), + DataTransferApiProperty { /** * The name of the connector application API. * @@ -2459,7 +2467,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.DatadogSourcePropertiesProperty, - ) : CdkObject(cdkObject), DatadogSourcePropertiesProperty { + ) : CdkObject(cdkObject), + DatadogSourcePropertiesProperty { /** * The object specified in the Datadog flow source. * @@ -3165,7 +3174,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.DestinationConnectorPropertiesProperty, - ) : CdkObject(cdkObject), DestinationConnectorPropertiesProperty { + ) : CdkObject(cdkObject), + DestinationConnectorPropertiesProperty { /** * The properties that are required to query the custom Connector. * @@ -3554,7 +3564,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.DestinationFlowConfigProperty, - ) : CdkObject(cdkObject), DestinationFlowConfigProperty { + ) : CdkObject(cdkObject), + DestinationFlowConfigProperty { /** * The API version that the destination connector uses. * @@ -3661,7 +3672,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.DynatraceSourcePropertiesProperty, - ) : CdkObject(cdkObject), DynatraceSourcePropertiesProperty { + ) : CdkObject(cdkObject), + DynatraceSourcePropertiesProperty { /** * The object specified in the Dynatrace flow source. * @@ -3805,7 +3817,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ErrorHandlingConfigProperty, - ) : CdkObject(cdkObject), ErrorHandlingConfigProperty { + ) : CdkObject(cdkObject), + ErrorHandlingConfigProperty { /** * Specifies the name of the Amazon S3 bucket. * @@ -3957,7 +3970,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.EventBridgeDestinationPropertiesProperty, - ) : CdkObject(cdkObject), EventBridgeDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + EventBridgeDestinationPropertiesProperty { /** * The object specified in the Amplitude flow source. * @@ -4085,7 +4099,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.GlueDataCatalogProperty, - ) : CdkObject(cdkObject), GlueDataCatalogProperty { + ) : CdkObject(cdkObject), + GlueDataCatalogProperty { /** * A string containing the value for the tag. * @@ -4182,7 +4197,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.GoogleAnalyticsSourcePropertiesProperty, - ) : CdkObject(cdkObject), GoogleAnalyticsSourcePropertiesProperty { + ) : CdkObject(cdkObject), + GoogleAnalyticsSourcePropertiesProperty { /** * The object specified in the Google Analytics flow source. * @@ -4268,7 +4284,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.IncrementalPullConfigProperty, - ) : CdkObject(cdkObject), IncrementalPullConfigProperty { + ) : CdkObject(cdkObject), + IncrementalPullConfigProperty { /** * A field that specifies the date time or timestamp field as the criteria to use when * importing incremental records from the source. @@ -4352,7 +4369,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.InforNexusSourcePropertiesProperty, - ) : CdkObject(cdkObject), InforNexusSourcePropertiesProperty { + ) : CdkObject(cdkObject), + InforNexusSourcePropertiesProperty { /** * The object specified in the Infor Nexus flow source. * @@ -4436,7 +4454,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.LookoutMetricsDestinationPropertiesProperty, - ) : CdkObject(cdkObject), LookoutMetricsDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + LookoutMetricsDestinationPropertiesProperty { /** * The object specified in the Amazon Lookout for Metrics flow destination. * @@ -4603,7 +4622,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.MarketoDestinationPropertiesProperty, - ) : CdkObject(cdkObject), MarketoDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + MarketoDestinationPropertiesProperty { /** * The settings that determine how Amazon AppFlow handles an error when placing data in the * destination. @@ -4698,7 +4718,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.MarketoSourcePropertiesProperty, - ) : CdkObject(cdkObject), MarketoSourcePropertiesProperty { + ) : CdkObject(cdkObject), + MarketoSourcePropertiesProperty { /** * The object specified in the Marketo flow source. * @@ -4820,7 +4841,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.MetadataCatalogConfigProperty, - ) : CdkObject(cdkObject), MetadataCatalogConfigProperty { + ) : CdkObject(cdkObject), + MetadataCatalogConfigProperty { /** * Specifies the configuration that Amazon AppFlow uses when it catalogs your data with the * AWS Glue Data Catalog . @@ -4903,7 +4925,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.PardotSourcePropertiesProperty, - ) : CdkObject(cdkObject), PardotSourcePropertiesProperty { + ) : CdkObject(cdkObject), + PardotSourcePropertiesProperty { /** * The object specified in the Salesforce Pardot flow source. * @@ -5082,7 +5105,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.PrefixConfigProperty, - ) : CdkObject(cdkObject), PrefixConfigProperty { + ) : CdkObject(cdkObject), + PrefixConfigProperty { /** * Specifies whether the destination file path includes either or both of the following * elements:. @@ -5317,7 +5341,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.RedshiftDestinationPropertiesProperty, - ) : CdkObject(cdkObject), RedshiftDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + RedshiftDestinationPropertiesProperty { /** * The object key for the bucket in which Amazon AppFlow places the destination files. * @@ -5519,7 +5544,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.S3DestinationPropertiesProperty, - ) : CdkObject(cdkObject), S3DestinationPropertiesProperty { + ) : CdkObject(cdkObject), + S3DestinationPropertiesProperty { /** * The Amazon S3 bucket name in which Amazon AppFlow places the transferred data. * @@ -5616,7 +5642,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.S3InputFormatConfigProperty, - ) : CdkObject(cdkObject), S3InputFormatConfigProperty { + ) : CdkObject(cdkObject), + S3InputFormatConfigProperty { /** * The file type that Amazon AppFlow gets from your Amazon S3 bucket. * @@ -5888,7 +5915,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.S3OutputFormatConfigProperty, - ) : CdkObject(cdkObject), S3OutputFormatConfigProperty { + ) : CdkObject(cdkObject), + S3OutputFormatConfigProperty { /** * The aggregation settings that you can use to customize the output format of your flow data. * @@ -6080,7 +6108,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.S3SourcePropertiesProperty, - ) : CdkObject(cdkObject), S3SourcePropertiesProperty { + ) : CdkObject(cdkObject), + S3SourcePropertiesProperty { /** * The Amazon S3 bucket name where the source files are stored. * @@ -6398,7 +6427,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SAPODataDestinationPropertiesProperty, - ) : CdkObject(cdkObject), SAPODataDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + SAPODataDestinationPropertiesProperty { /** * The settings that determine how Amazon AppFlow handles an error when placing data in the * destination. @@ -6519,7 +6549,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SAPODataPaginationConfigProperty, - ) : CdkObject(cdkObject), SAPODataPaginationConfigProperty { + ) : CdkObject(cdkObject), + SAPODataPaginationConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-sapodatapaginationconfig.html#cfn-appflow-flow-sapodatapaginationconfig-maxpagesize) */ @@ -6598,7 +6629,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SAPODataParallelismConfigProperty, - ) : CdkObject(cdkObject), SAPODataParallelismConfigProperty { + ) : CdkObject(cdkObject), + SAPODataParallelismConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-sapodataparallelismconfig.html#cfn-appflow-flow-sapodataparallelismconfig-maxparallelism) */ @@ -6782,7 +6814,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SAPODataSourcePropertiesProperty, - ) : CdkObject(cdkObject), SAPODataSourcePropertiesProperty { + ) : CdkObject(cdkObject), + SAPODataSourcePropertiesProperty { /** * The object path specified in the SAPOData flow source. * @@ -7129,7 +7162,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SalesforceDestinationPropertiesProperty, - ) : CdkObject(cdkObject), SalesforceDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + SalesforceDestinationPropertiesProperty { /** * Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers data to * Salesforce. @@ -7457,7 +7491,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SalesforceSourcePropertiesProperty, - ) : CdkObject(cdkObject), SalesforceSourcePropertiesProperty { + ) : CdkObject(cdkObject), + SalesforceSourcePropertiesProperty { /** * Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers data from * Salesforce. @@ -7786,7 +7821,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ScheduledTriggerPropertiesProperty, - ) : CdkObject(cdkObject), ScheduledTriggerPropertiesProperty { + ) : CdkObject(cdkObject), + ScheduledTriggerPropertiesProperty { /** * Specifies whether a scheduled flow has an incremental data transfer or a complete data * transfer for each flow run. @@ -7939,7 +7975,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ServiceNowSourcePropertiesProperty, - ) : CdkObject(cdkObject), ServiceNowSourcePropertiesProperty { + ) : CdkObject(cdkObject), + ServiceNowSourcePropertiesProperty { /** * The object specified in the ServiceNow flow source. * @@ -8022,7 +8059,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SingularSourcePropertiesProperty, - ) : CdkObject(cdkObject), SingularSourcePropertiesProperty { + ) : CdkObject(cdkObject), + SingularSourcePropertiesProperty { /** * The object specified in the Singular flow source. * @@ -8104,7 +8142,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SlackSourcePropertiesProperty, - ) : CdkObject(cdkObject), SlackSourcePropertiesProperty { + ) : CdkObject(cdkObject), + SlackSourcePropertiesProperty { /** * The object specified in the Slack flow source. * @@ -8314,7 +8353,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SnowflakeDestinationPropertiesProperty, - ) : CdkObject(cdkObject), SnowflakeDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + SnowflakeDestinationPropertiesProperty { /** * The object key for the destination bucket in which Amazon AppFlow places the files. * @@ -9281,7 +9321,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SourceConnectorPropertiesProperty, - ) : CdkObject(cdkObject), SourceConnectorPropertiesProperty { + ) : CdkObject(cdkObject), + SourceConnectorPropertiesProperty { /** * Specifies the information that is required for querying Amplitude. * @@ -9729,7 +9770,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SourceFlowConfigProperty, - ) : CdkObject(cdkObject), SourceFlowConfigProperty { + ) : CdkObject(cdkObject), + SourceFlowConfigProperty { /** * The API version of the connector when it's used as a source in the flow. * @@ -9869,7 +9911,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.SuccessResponseHandlingConfigProperty, - ) : CdkObject(cdkObject), SuccessResponseHandlingConfigProperty { + ) : CdkObject(cdkObject), + SuccessResponseHandlingConfigProperty { /** * The name of the Amazon S3 bucket. * @@ -9981,7 +10024,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.TaskPropertiesObjectProperty, - ) : CdkObject(cdkObject), TaskPropertiesObjectProperty { + ) : CdkObject(cdkObject), + TaskPropertiesObjectProperty { /** * The task property key. * @@ -10251,7 +10295,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.TaskProperty, - ) : CdkObject(cdkObject), TaskProperty { + ) : CdkObject(cdkObject), + TaskProperty { /** * The operation to be performed on the provided source fields. * @@ -10365,7 +10410,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.TrendmicroSourcePropertiesProperty, - ) : CdkObject(cdkObject), TrendmicroSourcePropertiesProperty { + ) : CdkObject(cdkObject), + TrendmicroSourcePropertiesProperty { /** * The object specified in the Trend Micro flow source. * @@ -10524,7 +10570,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.TriggerConfigProperty, - ) : CdkObject(cdkObject), TriggerConfigProperty { + ) : CdkObject(cdkObject), + TriggerConfigProperty { /** * Specifies the configuration details of a schedule-triggered flow as defined by the user. * @@ -10713,7 +10760,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.UpsolverDestinationPropertiesProperty, - ) : CdkObject(cdkObject), UpsolverDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + UpsolverDestinationPropertiesProperty { /** * The Upsolver Amazon S3 bucket name in which Amazon AppFlow places the transferred data. * @@ -10932,7 +10980,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.UpsolverS3OutputFormatConfigProperty, - ) : CdkObject(cdkObject), UpsolverS3OutputFormatConfigProperty { + ) : CdkObject(cdkObject), + UpsolverS3OutputFormatConfigProperty { /** * The aggregation settings that you can use to customize the output format of your flow data. * @@ -11159,7 +11208,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.VeevaSourcePropertiesProperty, - ) : CdkObject(cdkObject), VeevaSourcePropertiesProperty { + ) : CdkObject(cdkObject), + VeevaSourcePropertiesProperty { /** * The document type specified in the Veeva document extract flow. * @@ -11412,7 +11462,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ZendeskDestinationPropertiesProperty, - ) : CdkObject(cdkObject), ZendeskDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + ZendeskDestinationPropertiesProperty { /** * The settings that determine how Amazon AppFlow handles an error when placing data in the * destination. @@ -11523,7 +11574,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlow.ZendeskSourcePropertiesProperty, - ) : CdkObject(cdkObject), ZendeskSourcePropertiesProperty { + ) : CdkObject(cdkObject), + ZendeskSourcePropertiesProperty { /** * The object specified in the Zendesk flow source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlowProps.kt index 3ae90dd6ba..69f1ae44a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appflow/CfnFlowProps.kt @@ -749,7 +749,8 @@ public interface CfnFlowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appflow.CfnFlowProps, - ) : CdkObject(cdkObject), CfnFlowProps { + ) : CdkObject(cdkObject), + CfnFlowProps { /** * A user-entered description of the flow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplication.kt index b2966a232a..8c4518b8e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplication.kt @@ -39,8 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .description("description") * .name("name") - * // the properties below are optional * .namespace("namespace") + * // the properties below are optional * .permissions(List.of("permissions")) * .tags(List.of(CfnTag.builder() * .key("key") @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.appintegrations.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -150,7 +152,7 @@ public open class CfnApplication( /** * The namespace of the application. */ - public open fun namespace(): String? = unwrap(this).getNamespace() + public open fun namespace(): String = unwrap(this).getNamespace() /** * The namespace of the application. @@ -518,7 +520,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnApplication.ApplicationSourceConfigProperty, - ) : CdkObject(cdkObject), ApplicationSourceConfigProperty { + ) : CdkObject(cdkObject), + ApplicationSourceConfigProperty { /** * The external URL source for the application. * @@ -632,7 +635,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnApplication.ExternalUrlConfigProperty, - ) : CdkObject(cdkObject), ExternalUrlConfigProperty { + ) : CdkObject(cdkObject), + ExternalUrlConfigProperty { /** * The URL to access the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplicationProps.kt index fb7312664f..e271d62005 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnApplicationProps.kt @@ -32,8 +32,8 @@ import kotlin.jvm.JvmName * .build()) * .description("description") * .name("name") - * // the properties below are optional * .namespace("namespace") + * // the properties below are optional * .permissions(List.of("permissions")) * .tags(List.of(CfnTag.builder() * .key("key") @@ -71,7 +71,7 @@ public interface CfnApplicationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appintegrations-application.html#cfn-appintegrations-application-namespace) */ - public fun namespace(): String? = unwrap(this).getNamespace() + public fun namespace(): String /** * The configuration of events or requests that the application has access to. @@ -127,7 +127,7 @@ public interface CfnApplicationProps { public fun name(name: String) /** - * @param namespace The namespace of the application. + * @param namespace The namespace of the application. */ public fun namespace(namespace: String) @@ -204,7 +204,7 @@ public interface CfnApplicationProps { } /** - * @param namespace The namespace of the application. + * @param namespace The namespace of the application. */ override fun namespace(namespace: String) { cdkBuilder.namespace(namespace) @@ -244,7 +244,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The configuration for where the application should be loaded from. * @@ -271,7 +272,7 @@ public interface CfnApplicationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appintegrations-application.html#cfn-appintegrations-application-namespace) */ - override fun namespace(): String? = unwrap(this).getNamespace() + override fun namespace(): String = unwrap(this).getNamespace() /** * The configuration of events or requests that the application has access to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegration.kt index 323bacbeca..c6b378d68c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegration.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataIntegration( cdkObject: software.amazon.awscdk.services.appintegrations.CfnDataIntegration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -621,7 +623,8 @@ public open class CfnDataIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnDataIntegration.FileConfigurationProperty, - ) : CdkObject(cdkObject), FileConfigurationProperty { + ) : CdkObject(cdkObject), + FileConfigurationProperty { /** * Restrictions for what files should be pulled from the source. * @@ -754,7 +757,8 @@ public open class CfnDataIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnDataIntegration.ScheduleConfigProperty, - ) : CdkObject(cdkObject), ScheduleConfigProperty { + ) : CdkObject(cdkObject), + ScheduleConfigProperty { /** * The start date for objects to import in the first flow run as an Unix/epoch timestamp in * milliseconds or in ISO-8601 format. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegrationProps.kt index c698b7982f..fd6b8a006b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnDataIntegrationProps.kt @@ -306,7 +306,8 @@ public interface CfnDataIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnDataIntegrationProps, - ) : CdkObject(cdkObject), CfnDataIntegrationProps { + ) : CdkObject(cdkObject), + CfnDataIntegrationProps { /** * A description of the DataIntegration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegration.kt index eb0f94eb2a..e857c43a75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegration.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventIntegration( cdkObject: software.amazon.awscdk.services.appintegrations.CfnEventIntegration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -427,7 +429,8 @@ public open class CfnEventIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnEventIntegration.EventFilterProperty, - ) : CdkObject(cdkObject), EventFilterProperty { + ) : CdkObject(cdkObject), + EventFilterProperty { /** * The source of the events. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegrationProps.kt index 5dedf30b42..862a6970fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appintegrations/CfnEventIntegrationProps.kt @@ -206,7 +206,8 @@ public interface CfnEventIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appintegrations.CfnEventIntegrationProps, - ) : CdkObject(cdkObject), CfnEventIntegrationProps { + ) : CdkObject(cdkObject), + CfnEventIntegrationProps { /** * The event integration description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/AdjustmentTier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/AdjustmentTier.kt index a8815defb0..ded51c9c0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/AdjustmentTier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/AdjustmentTier.kt @@ -128,7 +128,8 @@ public interface AdjustmentTier { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.AdjustmentTier, - ) : CdkObject(cdkObject), AdjustmentTier { + ) : CdkObject(cdkObject), + AdjustmentTier { /** * What number to adjust the capacity with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseScalableAttributeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseScalableAttributeProps.kt index c11dec610d..ec8a082221 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseScalableAttributeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseScalableAttributeProps.kt @@ -143,7 +143,8 @@ public interface BaseScalableAttributeProps : EnableScalingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.BaseScalableAttributeProps, - ) : CdkObject(cdkObject), BaseScalableAttributeProps { + ) : CdkObject(cdkObject), + BaseScalableAttributeProps { /** * Scalable dimension of the attribute. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseTargetTrackingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseTargetTrackingProps.kt index 773d8c825d..83a5ac47c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseTargetTrackingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BaseTargetTrackingProps.kt @@ -156,7 +156,8 @@ public interface BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.BaseTargetTrackingProps, - ) : CdkObject(cdkObject), BaseTargetTrackingProps { + ) : CdkObject(cdkObject), + BaseTargetTrackingProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicStepScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicStepScalingPolicyProps.kt index 716669f776..6d96390a15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicStepScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicStepScalingPolicyProps.kt @@ -288,7 +288,8 @@ public interface BasicStepScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.BasicStepScalingPolicyProps, - ) : CdkObject(cdkObject), BasicStepScalingPolicyProps { + ) : CdkObject(cdkObject), + BasicStepScalingPolicyProps { /** * How the adjustment numbers inside 'intervals' are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicTargetTrackingScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicTargetTrackingScalingPolicyProps.kt index 0ba0036579..819405fd2f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicTargetTrackingScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/BasicTargetTrackingScalingPolicyProps.kt @@ -227,7 +227,8 @@ public interface BasicTargetTrackingScalingPolicyProps : BaseTargetTrackingProps private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.BasicTargetTrackingScalingPolicyProps, - ) : CdkObject(cdkObject), BasicTargetTrackingScalingPolicyProps { + ) : CdkObject(cdkObject), + BasicTargetTrackingScalingPolicyProps { /** * A custom metric for application autoscaling. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTarget.kt index 429256859d..ffef98c29c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTarget.kt @@ -74,7 +74,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScalableTarget( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -311,6 +312,8 @@ public open class CfnScalableTarget( * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid) * @param resourceId The identifier of the resource associated with the scalable target. @@ -345,11 +348,11 @@ public open class CfnScalableTarget( * * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -384,6 +387,8 @@ public open class CfnScalableTarget( * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension) * @param scalableDimension The scalable dimension associated with the scalable target. @@ -582,6 +587,8 @@ public open class CfnScalableTarget( * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid) * @param resourceId The identifier of the resource associated with the scalable target. @@ -620,11 +627,11 @@ public open class CfnScalableTarget( * * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -659,6 +666,8 @@ public open class CfnScalableTarget( * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension) * @param scalableDimension The scalable dimension associated with the scalable target. @@ -891,7 +900,8 @@ public open class CfnScalableTarget( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget.ScalableTargetActionProperty, - ) : CdkObject(cdkObject), ScalableTargetActionProperty { + ) : CdkObject(cdkObject), + ScalableTargetActionProperty { /** * The maximum capacity. * @@ -1227,7 +1237,8 @@ public open class CfnScalableTarget( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget.ScheduledActionProperty, - ) : CdkObject(cdkObject), ScheduledActionProperty { + ) : CdkObject(cdkObject), + ScheduledActionProperty { /** * The date and time that the action is scheduled to end, in UTC. * @@ -1493,7 +1504,8 @@ public open class CfnScalableTarget( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget.SuspendedStateProperty, - ) : CdkObject(cdkObject), SuspendedStateProperty { + ) : CdkObject(cdkObject), + SuspendedStateProperty { /** * Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTargetProps.kt index 6531150c7c..33c72efa11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalableTargetProps.kt @@ -121,6 +121,8 @@ public interface CfnScalableTargetProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid) */ @@ -152,10 +154,10 @@ public interface CfnScalableTargetProps { * * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -189,6 +191,8 @@ public interface CfnScalableTargetProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension) */ @@ -297,6 +301,8 @@ public interface CfnScalableTargetProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . */ public fun resourceId(resourceId: String) @@ -322,11 +328,11 @@ public interface CfnScalableTargetProps { * @param scalableDimension The scalable dimension associated with the scalable target. * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -361,6 +367,8 @@ public interface CfnScalableTargetProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. */ public fun scalableDimension(scalableDimension: String) @@ -514,6 +522,8 @@ public interface CfnScalableTargetProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . */ override fun resourceId(resourceId: String) { cdkBuilder.resourceId(resourceId) @@ -543,11 +553,11 @@ public interface CfnScalableTargetProps { * @param scalableDimension The scalable dimension associated with the scalable target. * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -582,6 +592,8 @@ public interface CfnScalableTargetProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. */ override fun scalableDimension(scalableDimension: String) { cdkBuilder.scalableDimension(scalableDimension) @@ -684,7 +696,8 @@ public interface CfnScalableTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalableTargetProps, - ) : CdkObject(cdkObject), CfnScalableTargetProps { + ) : CdkObject(cdkObject), + CfnScalableTargetProps { /** * The maximum value that you plan to scale out to. * @@ -754,6 +767,8 @@ public interface CfnScalableTargetProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid) */ @@ -785,11 +800,11 @@ public interface CfnScalableTargetProps { * * This string consists of the service namespace, resource type, and scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -824,6 +839,8 @@ public interface CfnScalableTargetProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicy.kt index 4864c12107..f8ae205648 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicy.kt @@ -102,7 +102,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScalingPolicy( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -353,6 +354,8 @@ public open class CfnScalingPolicy( * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-resourceid) * @param resourceId The identifier of the resource associated with the scaling policy. @@ -363,11 +366,11 @@ public open class CfnScalingPolicy( * The scalable dimension. This string consists of the service namespace, resource type, and * scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -402,6 +405,8 @@ public open class CfnScalingPolicy( * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalabledimension) * @param scalableDimension The scalable dimension. This string consists of the service @@ -584,6 +589,8 @@ public open class CfnScalingPolicy( * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-resourceid) * @param resourceId The identifier of the resource associated with the scaling policy. @@ -596,11 +603,11 @@ public open class CfnScalingPolicy( * The scalable dimension. This string consists of the service namespace, resource type, and * scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -635,6 +642,8 @@ public open class CfnScalingPolicy( * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalabledimension) * @param scalableDimension The scalable dimension. This string consists of the service @@ -1076,7 +1085,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.CustomizedMetricSpecificationProperty, - ) : CdkObject(cdkObject), CustomizedMetricSpecificationProperty { + ) : CdkObject(cdkObject), + CustomizedMetricSpecificationProperty { /** * The dimensions of the metric. * @@ -1232,7 +1242,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The name of the dimension. * @@ -1417,7 +1428,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.PredefinedMetricSpecificationProperty, - ) : CdkObject(cdkObject), PredefinedMetricSpecificationProperty { + ) : CdkObject(cdkObject), + PredefinedMetricSpecificationProperty { /** * The metric type. * @@ -1642,7 +1654,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.StepAdjustmentProperty, - ) : CdkObject(cdkObject), StepAdjustmentProperty { + ) : CdkObject(cdkObject), + StepAdjustmentProperty { /** * The lower bound for the difference between the alarm threshold and the CloudWatch metric. * @@ -1931,7 +1944,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.StepScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), StepScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + StepScalingPolicyConfigurationProperty { /** * Specifies whether the `ScalingAdjustment` value in the `StepAdjustment` property is an * absolute number or a percentage of the current capacity. @@ -2296,7 +2310,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty, - ) : CdkObject(cdkObject), TargetTrackingMetricDataQueryProperty { + ) : CdkObject(cdkObject), + TargetTrackingMetricDataQueryProperty { /** * The math expression to perform on the returned data, if this object is performing a math * expression. @@ -2456,7 +2471,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricDimensionProperty, - ) : CdkObject(cdkObject), TargetTrackingMetricDimensionProperty { + ) : CdkObject(cdkObject), + TargetTrackingMetricDimensionProperty { /** * The name of the dimension. * @@ -2676,7 +2692,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricProperty, - ) : CdkObject(cdkObject), TargetTrackingMetricProperty { + ) : CdkObject(cdkObject), + TargetTrackingMetricProperty { /** * The dimensions for the metric. * @@ -2938,7 +2955,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty, - ) : CdkObject(cdkObject), TargetTrackingMetricStatProperty { + ) : CdkObject(cdkObject), + TargetTrackingMetricStatProperty { /** * The CloudWatch metric to return, including the metric name, namespace, and dimensions. * @@ -3353,7 +3371,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingScalingPolicyConfigurationProperty { /** * A customized metric. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicyProps.kt index 56b07b49e8..b83d9ce6ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CfnScalingPolicyProps.kt @@ -161,6 +161,8 @@ public interface CfnScalingPolicyProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-resourceid) */ @@ -170,10 +172,10 @@ public interface CfnScalingPolicyProps { * The scalable dimension. This string consists of the service namespace, resource type, and * scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -207,6 +209,8 @@ public interface CfnScalingPolicyProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalabledimension) */ @@ -324,17 +328,19 @@ public interface CfnScalingPolicyProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . */ public fun resourceId(resourceId: String) /** * @param scalableDimension The scalable dimension. This string consists of the service * namespace, resource type, and scaling property. - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -369,6 +375,8 @@ public interface CfnScalingPolicyProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. */ public fun scalableDimension(scalableDimension: String) @@ -508,6 +516,8 @@ public interface CfnScalingPolicyProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . */ override fun resourceId(resourceId: String) { cdkBuilder.resourceId(resourceId) @@ -516,11 +526,11 @@ public interface CfnScalingPolicyProps { /** * @param scalableDimension The scalable dimension. This string consists of the service * namespace, resource type, and scaling property. - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -555,6 +565,8 @@ public interface CfnScalingPolicyProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. */ override fun scalableDimension(scalableDimension: String) { cdkBuilder.scalableDimension(scalableDimension) @@ -639,7 +651,8 @@ public interface CfnScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicyProps, - ) : CdkObject(cdkObject), CfnScalingPolicyProps { + ) : CdkObject(cdkObject), + CfnScalingPolicyProps { /** * The name of the scaling policy. * @@ -716,6 +729,8 @@ public interface CfnScalingPolicyProps { * the resource ID. Example: `endpoint/my-end-point/variant/KMeansClustering` . * * SageMaker inference component - The resource type is `inference-component` and the unique * identifier is the resource ID. Example: `inference-component/my-inference-component` . + * * Pool of WorkSpaces - The resource type is `workspacespool` and the unique identifier is the + * pool ID. Example: `workspacespool/wspool-123456` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-resourceid) */ @@ -725,11 +740,11 @@ public interface CfnScalingPolicyProps { * The scalable dimension. This string consists of the service namespace, resource type, and * scaling property. * - * * `ecs:service:DesiredCount` - The desired task count of an ECS service. + * * `ecs:service:DesiredCount` - The task count of an ECS service. * * `elasticmapreduce:instancegroup:InstanceCount` - The instance count of an EMR Instance * Group. * * `ec2:spot-fleet-request:TargetCapacity` - The target capacity of a Spot Fleet. - * * `appstream:fleet:DesiredCapacity` - The desired capacity of an AppStream 2.0 fleet. + * * `appstream:fleet:DesiredCapacity` - The capacity of an AppStream 2.0 fleet. * * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB table. * * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity for a DynamoDB table. * * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity for a DynamoDB global @@ -764,6 +779,8 @@ public interface CfnScalingPolicyProps { * SageMaker serverless endpoint. * * `sagemaker:inference-component:DesiredCopyCount` - The number of copies across an endpoint * for a SageMaker inference component. + * * `workspaces:workspacespool:DesiredUserSessions` - The number of user sessions for the + * WorkSpaces in the pool. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-scalabledimension) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CronOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CronOptions.kt index 8d30968444..a7049376bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CronOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/CronOptions.kt @@ -177,7 +177,8 @@ public interface CronOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.CronOptions, - ) : CdkObject(cdkObject), CronOptions { + ) : CdkObject(cdkObject), + CronOptions { /** * The day of the month to run this rule at. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/EnableScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/EnableScalingProps.kt index d4054cc639..e7d9a3e250 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/EnableScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/EnableScalingProps.kt @@ -92,7 +92,8 @@ public interface EnableScalingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.EnableScalingProps, - ) : CdkObject(cdkObject), EnableScalingProps { + ) : CdkObject(cdkObject), + EnableScalingProps { /** * Maximum capacity to scale to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/IScalableTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/IScalableTarget.kt index 13b6eac654..d52fa9d2c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/IScalableTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/IScalableTarget.kt @@ -22,7 +22,8 @@ public interface IScalableTarget : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.IScalableTarget, - ) : CdkObject(cdkObject), IScalableTarget { + ) : CdkObject(cdkObject), + IScalableTarget { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/PredefinedMetric.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/PredefinedMetric.kt index a889fe33d6..86048729a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/PredefinedMetric.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/PredefinedMetric.kt @@ -30,6 +30,9 @@ public enum class PredefinedMetric( ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.ELASTICACHE_REPLICA_ENGINE_CPU_UTILIZATION), ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE), ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE), + SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION), + SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION), + WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION(software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION), ; public companion object { @@ -86,6 +89,12 @@ public enum class PredefinedMetric( PredefinedMetric.ELASTICACHE_DATABASE_MEMORY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE -> PredefinedMetric.ELASTICACHE_DATABASE_CAPACITY_USAGE_COUNTED_FOR_EVICT_PERCENTAGE + software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION -> + PredefinedMetric.SAGEMAKER_INFERENCE_COMPONENT_CONCURRENT_REQUESTS_PER_COPY_HIGH_RESOLUTION + software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION -> + PredefinedMetric.SAGEMAKER_VARIANT_CONCURRENT_REQUESTS_PER_MODEL_HIGH_RESOLUTION + software.amazon.awscdk.services.applicationautoscaling.PredefinedMetric.WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION -> + PredefinedMetric.WORKSPACES_AVERAGE_USER_SESSIONS_CAPACITY_UTILIZATION } internal fun unwrap(wrapped: PredefinedMetric): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTarget.kt index 39ce9758a0..967a97248c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTarget.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ScalableTarget( cdkObject: software.amazon.awscdk.services.applicationautoscaling.ScalableTarget, -) : Resource(cdkObject), IScalableTarget { +) : Resource(cdkObject), + IScalableTarget { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTargetProps.kt index 4e41ea2d53..af486e721e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalableTargetProps.kt @@ -197,7 +197,8 @@ public interface ScalableTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.ScalableTargetProps, - ) : CdkObject(cdkObject), ScalableTargetProps { + ) : CdkObject(cdkObject), + ScalableTargetProps { /** * The maximum value that Application Auto Scaling can use to scale a target during a scaling * activity. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingInterval.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingInterval.kt index b8c81e3eb2..5b857226c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingInterval.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingInterval.kt @@ -131,7 +131,8 @@ public interface ScalingInterval { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.ScalingInterval, - ) : CdkObject(cdkObject), ScalingInterval { + ) : CdkObject(cdkObject), + ScalingInterval { /** * The capacity adjustment to apply in this interval. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingSchedule.kt index 1298bcbf7b..06056745f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/ScalingSchedule.kt @@ -201,7 +201,8 @@ public interface ScalingSchedule { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.ScalingSchedule, - ) : CdkObject(cdkObject), ScalingSchedule { + ) : CdkObject(cdkObject), + ScalingSchedule { /** * When this scheduled action expires. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingActionProps.kt index f7d16bd735..9755c4db0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingActionProps.kt @@ -192,7 +192,8 @@ public interface StepScalingActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.StepScalingActionProps, - ) : CdkObject(cdkObject), StepScalingActionProps { + ) : CdkObject(cdkObject), + StepScalingActionProps { /** * How the adjustment numbers are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingPolicyProps.kt index 9328921d5e..f5186ede76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/StepScalingPolicyProps.kt @@ -236,7 +236,8 @@ public interface StepScalingPolicyProps : BasicStepScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.StepScalingPolicyProps, - ) : CdkObject(cdkObject), StepScalingPolicyProps { + ) : CdkObject(cdkObject), + StepScalingPolicyProps { /** * How the adjustment numbers inside 'intervals' are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/TargetTrackingScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/TargetTrackingScalingPolicyProps.kt index 954130a44e..070282ce3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/TargetTrackingScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationautoscaling/TargetTrackingScalingPolicyProps.kt @@ -211,7 +211,8 @@ public interface TargetTrackingScalingPolicyProps : BasicTargetTrackingScalingPo private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationautoscaling.TargetTrackingScalingPolicyProps, - ) : CdkObject(cdkObject), TargetTrackingScalingPolicyProps { + ) : CdkObject(cdkObject), + TargetTrackingScalingPolicyProps { /** * A custom metric for application autoscaling. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplication.kt index 7216e96049..0b12cd0367 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplication.kt @@ -77,6 +77,22 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -98,6 +114,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -143,6 +165,22 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -164,6 +202,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -203,7 +247,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -507,6 +553,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -515,6 +564,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -523,6 +575,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -727,6 +782,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -737,6 +795,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -747,6 +808,9 @@ public open class CfnApplication( /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) * @param componentMonitoringSettings The monitoring settings of the components. */ @@ -1013,7 +1077,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.AlarmMetricProperty, - ) : CdkObject(cdkObject), AlarmMetricProperty { + ) : CdkObject(cdkObject), + AlarmMetricProperty { /** * The name of the metric to be monitored for the component. * @@ -1121,7 +1186,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.AlarmProperty, - ) : CdkObject(cdkObject), AlarmProperty { + ) : CdkObject(cdkObject), + AlarmProperty { /** * The name of the CloudWatch alarm to be monitored for the component. * @@ -1199,6 +1265,22 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1220,6 +1302,12 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1346,7 +1434,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.ComponentConfigurationProperty, - ) : CdkObject(cdkObject), ComponentConfigurationProperty { + ) : CdkObject(cdkObject), + ComponentConfigurationProperty { /** * The configuration settings. * @@ -1432,6 +1521,22 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1453,6 +1558,12 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1498,6 +1609,22 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1519,6 +1646,12 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1539,6 +1672,8 @@ public open class CfnApplication( /** * The ARN of the component. * + * Either the component ARN or the component name is required. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-componentmonitoringsetting.html#cfn-applicationinsights-application-componentmonitoringsetting-componentarn) */ public fun componentArn(): String? = unwrap(this).getComponentArn() @@ -1563,6 +1698,8 @@ public open class CfnApplication( /** * The name of the component. * + * Either the component ARN or the component name is required. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-componentmonitoringsetting.html#cfn-applicationinsights-application-componentmonitoringsetting-componentname) */ public fun componentName(): String? = unwrap(this).getComponentName() @@ -1605,6 +1742,7 @@ public open class CfnApplication( public interface Builder { /** * @param componentArn The ARN of the component. + * Either the component ARN or the component name is required. */ public fun componentArn(componentArn: String) @@ -1625,6 +1763,7 @@ public open class CfnApplication( /** * @param componentName The name of the component. + * Either the component ARN or the component name is required. */ public fun componentName(componentName: String) @@ -1691,6 +1830,7 @@ public open class CfnApplication( /** * @param componentArn The ARN of the component. + * Either the component ARN or the component name is required. */ override fun componentArn(componentArn: String) { cdkBuilder.componentArn(componentArn) @@ -1715,6 +1855,7 @@ public open class CfnApplication( /** * @param componentName The name of the component. + * Either the component ARN or the component name is required. */ override fun componentName(componentName: String) { cdkBuilder.componentName(componentName) @@ -1795,10 +1936,13 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.ComponentMonitoringSettingProperty, - ) : CdkObject(cdkObject), ComponentMonitoringSettingProperty { + ) : CdkObject(cdkObject), + ComponentMonitoringSettingProperty { /** * The ARN of the component. * + * Either the component ARN or the component name is required. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-componentmonitoringsetting.html#cfn-applicationinsights-application-componentmonitoringsetting-componentarn) */ override fun componentArn(): String? = unwrap(this).getComponentArn() @@ -1824,6 +1968,8 @@ public open class CfnApplication( /** * The name of the component. * + * Either the component ARN or the component name is required. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-componentmonitoringsetting.html#cfn-applicationinsights-application-componentmonitoringsetting-componentname) */ override fun componentName(): String? = unwrap(this).getComponentName() @@ -1924,6 +2070,22 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -1985,6 +2147,29 @@ public open class CfnApplication( */ public fun logs(): Any? = unwrap(this).getLogs() + /** + * The NetWeaver Prometheus Exporter Settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-netweaverprometheusexporter) + */ + public fun netWeaverPrometheusExporter(): Any? = unwrap(this).getNetWeaverPrometheusExporter() + + /** + * A list of processes to monitor for the component. + * + * Only Windows EC2 instances can have a processes section. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-processes) + */ + public fun processes(): Any? = unwrap(this).getProcesses() + + /** + * The SQL prometheus exporter settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-sqlserverprometheusexporter) + */ + public fun sqlServerPrometheusExporter(): Any? = unwrap(this).getSqlServerPrometheusExporter() + /** * A list of Windows Events to monitor for the component. * @@ -2108,6 +2293,62 @@ public open class CfnApplication( */ public fun logs(vararg logs: Any) + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + public fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: IResolvable) + + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + public + fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: NetWeaverPrometheusExporterProperty) + + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9519c8440a725a03e69aab7dadf680a338b947013076d83ce8f3062378bd9209") + public + fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: NetWeaverPrometheusExporterProperty.Builder.() -> Unit) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(processes: IResolvable) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(processes: List) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(vararg processes: Any) + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + public fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: IResolvable) + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + public + fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: SQLServerPrometheusExporterProperty) + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e2744e9a795d4b99f9b263fe804c115e7b06df88360c857b02942d50d18d2982") + public + fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: SQLServerPrometheusExporterProperty.Builder.() -> Unit) + /** * @param windowsEvents A list of Windows Events to monitor for the component. * Only Amazon EC2 instances running on Windows can use `WindowsEvents` . @@ -2271,6 +2512,78 @@ public open class CfnApplication( */ override fun logs(vararg logs: Any): Unit = logs(logs.toList()) + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + override fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: IResolvable) { + cdkBuilder.netWeaverPrometheusExporter(netWeaverPrometheusExporter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + override + fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: NetWeaverPrometheusExporterProperty) { + cdkBuilder.netWeaverPrometheusExporter(netWeaverPrometheusExporter.let(NetWeaverPrometheusExporterProperty.Companion::unwrap)) + } + + /** + * @param netWeaverPrometheusExporter The NetWeaver Prometheus Exporter Settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9519c8440a725a03e69aab7dadf680a338b947013076d83ce8f3062378bd9209") + override + fun netWeaverPrometheusExporter(netWeaverPrometheusExporter: NetWeaverPrometheusExporterProperty.Builder.() -> Unit): + Unit = + netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty(netWeaverPrometheusExporter)) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(processes: IResolvable) { + cdkBuilder.processes(processes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(processes: List) { + cdkBuilder.processes(processes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(vararg processes: Any): Unit = processes(processes.toList()) + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + override fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: IResolvable) { + cdkBuilder.sqlServerPrometheusExporter(sqlServerPrometheusExporter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + override + fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: SQLServerPrometheusExporterProperty) { + cdkBuilder.sqlServerPrometheusExporter(sqlServerPrometheusExporter.let(SQLServerPrometheusExporterProperty.Companion::unwrap)) + } + + /** + * @param sqlServerPrometheusExporter The SQL prometheus exporter settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e2744e9a795d4b99f9b263fe804c115e7b06df88360c857b02942d50d18d2982") + override + fun sqlServerPrometheusExporter(sqlServerPrometheusExporter: SQLServerPrometheusExporterProperty.Builder.() -> Unit): + Unit = + sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty(sqlServerPrometheusExporter)) + /** * @param windowsEvents A list of Windows Events to monitor for the component. * Only Amazon EC2 instances running on Windows can use `WindowsEvents` . @@ -2301,7 +2614,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.ConfigurationDetailsProperty, - ) : CdkObject(cdkObject), ConfigurationDetailsProperty { + ) : CdkObject(cdkObject), + ConfigurationDetailsProperty { /** * A list of metrics to monitor for the component. * @@ -2351,6 +2665,31 @@ public open class CfnApplication( */ override fun logs(): Any? = unwrap(this).getLogs() + /** + * The NetWeaver Prometheus Exporter Settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-netweaverprometheusexporter) + */ + override fun netWeaverPrometheusExporter(): Any? = + unwrap(this).getNetWeaverPrometheusExporter() + + /** + * A list of processes to monitor for the component. + * + * Only Windows EC2 instances can have a processes section. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-processes) + */ + override fun processes(): Any? = unwrap(this).getProcesses() + + /** + * The SQL prometheus exporter settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-configurationdetails.html#cfn-applicationinsights-application-configurationdetails-sqlserverprometheusexporter) + */ + override fun sqlServerPrometheusExporter(): Any? = + unwrap(this).getSqlServerPrometheusExporter() + /** * A list of Windows Events to monitor for the component. * @@ -2466,7 +2805,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.CustomComponentProperty, - ) : CdkObject(cdkObject), CustomComponentProperty { + ) : CdkObject(cdkObject), + CustomComponentProperty { /** * The name of the component. * @@ -2565,7 +2905,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty, - ) : CdkObject(cdkObject), HAClusterPrometheusExporterProperty { + ) : CdkObject(cdkObject), + HAClusterPrometheusExporterProperty { /** * The target port to which Prometheus sends metrics. * @@ -2766,7 +3107,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.HANAPrometheusExporterProperty, - ) : CdkObject(cdkObject), HANAPrometheusExporterProperty { + ) : CdkObject(cdkObject), + HANAPrometheusExporterProperty { /** * Designates whether you agree to install the HANA DB client. * @@ -2935,7 +3277,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.JMXPrometheusExporterProperty, - ) : CdkObject(cdkObject), JMXPrometheusExporterProperty { + ) : CdkObject(cdkObject), + JMXPrometheusExporterProperty { /** * The host and port to connect to through remote JMX. * @@ -3087,7 +3430,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.LogPatternProperty, - ) : CdkObject(cdkObject), LogPatternProperty { + ) : CdkObject(cdkObject), + LogPatternProperty { /** * A regular expression that defines the log pattern. * @@ -3248,7 +3592,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.LogPatternSetProperty, - ) : CdkObject(cdkObject), LogPatternSetProperty { + ) : CdkObject(cdkObject), + LogPatternSetProperty { /** * A list of objects that define the log patterns that belong to `LogPatternSet` . * @@ -3480,7 +3825,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.LogProperty, - ) : CdkObject(cdkObject), LogProperty { + ) : CdkObject(cdkObject), + LogProperty { /** * The type of encoding of the logs to be monitored. * @@ -3555,6 +3901,410 @@ public open class CfnApplication( } } + /** + * The NetWeaver Prometheus Exporter Settings. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationinsights.*; + * NetWeaverPrometheusExporterProperty netWeaverPrometheusExporterProperty = + * NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html) + */ + public interface NetWeaverPrometheusExporterProperty { + /** + * SAP instance numbers for ASCS, ERS, and App Servers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-instancenumbers) + */ + public fun instanceNumbers(): List + + /** + * Prometheus exporter port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-prometheusport) + */ + public fun prometheusPort(): String? = unwrap(this).getPrometheusPort() + + /** + * SAP NetWeaver SID. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-sapsid) + */ + public fun sapsid(): String + + /** + * A builder for [NetWeaverPrometheusExporterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param instanceNumbers SAP instance numbers for ASCS, ERS, and App Servers. + */ + public fun instanceNumbers(instanceNumbers: List) + + /** + * @param instanceNumbers SAP instance numbers for ASCS, ERS, and App Servers. + */ + public fun instanceNumbers(vararg instanceNumbers: String) + + /** + * @param prometheusPort Prometheus exporter port. + */ + public fun prometheusPort(prometheusPort: String) + + /** + * @param sapsid SAP NetWeaver SID. + */ + public fun sapsid(sapsid: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty.Builder + = + software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty.builder() + + /** + * @param instanceNumbers SAP instance numbers for ASCS, ERS, and App Servers. + */ + override fun instanceNumbers(instanceNumbers: List) { + cdkBuilder.instanceNumbers(instanceNumbers) + } + + /** + * @param instanceNumbers SAP instance numbers for ASCS, ERS, and App Servers. + */ + override fun instanceNumbers(vararg instanceNumbers: String): Unit = + instanceNumbers(instanceNumbers.toList()) + + /** + * @param prometheusPort Prometheus exporter port. + */ + override fun prometheusPort(prometheusPort: String) { + cdkBuilder.prometheusPort(prometheusPort) + } + + /** + * @param sapsid SAP NetWeaver SID. + */ + override fun sapsid(sapsid: String) { + cdkBuilder.sapsid(sapsid) + } + + public fun build(): + software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty, + ) : CdkObject(cdkObject), + NetWeaverPrometheusExporterProperty { + /** + * SAP instance numbers for ASCS, ERS, and App Servers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-instancenumbers) + */ + override fun instanceNumbers(): List = unwrap(this).getInstanceNumbers() + + /** + * Prometheus exporter port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-prometheusport) + */ + override fun prometheusPort(): String? = unwrap(this).getPrometheusPort() + + /** + * SAP NetWeaver SID. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-netweaverprometheusexporter.html#cfn-applicationinsights-application-netweaverprometheusexporter-sapsid) + */ + override fun sapsid(): String = unwrap(this).getSapsid() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + NetWeaverPrometheusExporterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty): + NetWeaverPrometheusExporterProperty = CdkObjectWrappers.wrap(cdkObject) as? + NetWeaverPrometheusExporterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NetWeaverPrometheusExporterProperty): + software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty + } + } + + /** + * A process to be monitored for the component. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationinsights.*; + * ProcessProperty processProperty = ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html) + */ + public interface ProcessProperty { + /** + * A list of metrics to monitor for the component. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html#cfn-applicationinsights-application-process-alarmmetrics) + */ + public fun alarmMetrics(): Any + + /** + * The name of the process to be monitored for the component. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html#cfn-applicationinsights-application-process-processname) + */ + public fun processName(): String + + /** + * A builder for [ProcessProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + public fun alarmMetrics(alarmMetrics: IResolvable) + + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + public fun alarmMetrics(alarmMetrics: List) + + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + public fun alarmMetrics(vararg alarmMetrics: Any) + + /** + * @param processName The name of the process to be monitored for the component. + */ + public fun processName(processName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty.Builder + = + software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty.builder() + + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + override fun alarmMetrics(alarmMetrics: IResolvable) { + cdkBuilder.alarmMetrics(alarmMetrics.let(IResolvable.Companion::unwrap)) + } + + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + override fun alarmMetrics(alarmMetrics: List) { + cdkBuilder.alarmMetrics(alarmMetrics.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param alarmMetrics A list of metrics to monitor for the component. + */ + override fun alarmMetrics(vararg alarmMetrics: Any): Unit = + alarmMetrics(alarmMetrics.toList()) + + /** + * @param processName The name of the process to be monitored for the component. + */ + override fun processName(processName: String) { + cdkBuilder.processName(processName) + } + + public fun build(): + software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty, + ) : CdkObject(cdkObject), + ProcessProperty { + /** + * A list of metrics to monitor for the component. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html#cfn-applicationinsights-application-process-alarmmetrics) + */ + override fun alarmMetrics(): Any = unwrap(this).getAlarmMetrics() + + /** + * The name of the process to be monitored for the component. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-process.html#cfn-applicationinsights-application-process-processname) + */ + override fun processName(): String = unwrap(this).getProcessName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ProcessProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty): + ProcessProperty = CdkObjectWrappers.wrap(cdkObject) as? ProcessProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ProcessProperty): + software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty + } + } + + /** + * The SQL prometheus exporter settings. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationinsights.*; + * SQLServerPrometheusExporterProperty sQLServerPrometheusExporterProperty = + * SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html) + */ + public interface SQLServerPrometheusExporterProperty { + /** + * Prometheus exporter port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html#cfn-applicationinsights-application-sqlserverprometheusexporter-prometheusport) + */ + public fun prometheusPort(): String + + /** + * Secret name which managers SQL exporter connection. + * + * e.g. {"data_source_name": "sqlserver://:@localhost:1433"} + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html#cfn-applicationinsights-application-sqlserverprometheusexporter-sqlsecretname) + */ + public fun sqlSecretName(): String + + /** + * A builder for [SQLServerPrometheusExporterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param prometheusPort Prometheus exporter port. + */ + public fun prometheusPort(prometheusPort: String) + + /** + * @param sqlSecretName Secret name which managers SQL exporter connection. + * e.g. {"data_source_name": "sqlserver://:@localhost:1433"} + */ + public fun sqlSecretName(sqlSecretName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty.Builder + = + software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty.builder() + + /** + * @param prometheusPort Prometheus exporter port. + */ + override fun prometheusPort(prometheusPort: String) { + cdkBuilder.prometheusPort(prometheusPort) + } + + /** + * @param sqlSecretName Secret name which managers SQL exporter connection. + * e.g. {"data_source_name": "sqlserver://:@localhost:1433"} + */ + override fun sqlSecretName(sqlSecretName: String) { + cdkBuilder.sqlSecretName(sqlSecretName) + } + + public fun build(): + software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty, + ) : CdkObject(cdkObject), + SQLServerPrometheusExporterProperty { + /** + * Prometheus exporter port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html#cfn-applicationinsights-application-sqlserverprometheusexporter-prometheusport) + */ + override fun prometheusPort(): String = unwrap(this).getPrometheusPort() + + /** + * Secret name which managers SQL exporter connection. + * + * e.g. {"data_source_name": "sqlserver://:@localhost:1433"} + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-sqlserverprometheusexporter.html#cfn-applicationinsights-application-sqlserverprometheusexporter-sqlsecretname) + */ + override fun sqlSecretName(): String = unwrap(this).getSqlSecretName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SQLServerPrometheusExporterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty): + SQLServerPrometheusExporterProperty = CdkObjectWrappers.wrap(cdkObject) as? + SQLServerPrometheusExporterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SQLServerPrometheusExporterProperty): + software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty + } + } + /** * The `AWS::ApplicationInsights::Application SubComponentConfigurationDetails` property type * specifies the configuration settings of the sub-components. @@ -3578,6 +4328,12 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -3609,6 +4365,15 @@ public open class CfnApplication( */ public fun logs(): Any? = unwrap(this).getLogs() + /** + * A list of processes to monitor for the component. + * + * Only Windows EC2 instances can have a processes section. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-subcomponentconfigurationdetails.html#cfn-applicationinsights-application-subcomponentconfigurationdetails-processes) + */ + public fun processes(): Any? = unwrap(this).getProcesses() + /** * A list of Windows Events to monitor for the component. * @@ -3659,6 +4424,24 @@ public open class CfnApplication( */ public fun logs(vararg logs: Any) + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(processes: IResolvable) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(processes: List) + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + public fun processes(vararg processes: Any) + /** * @param windowsEvents A list of Windows Events to monitor for the component. * Only Amazon EC2 instances running on Windows can use `WindowsEvents` . @@ -3729,6 +4512,28 @@ public open class CfnApplication( */ override fun logs(vararg logs: Any): Unit = logs(logs.toList()) + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(processes: IResolvable) { + cdkBuilder.processes(processes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(processes: List) { + cdkBuilder.processes(processes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param processes A list of processes to monitor for the component. + * Only Windows EC2 instances can have a processes section. + */ + override fun processes(vararg processes: Any): Unit = processes(processes.toList()) + /** * @param windowsEvents A list of Windows Events to monitor for the component. * Only Amazon EC2 instances running on Windows can use `WindowsEvents` . @@ -3759,7 +4564,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty, - ) : CdkObject(cdkObject), SubComponentConfigurationDetailsProperty { + ) : CdkObject(cdkObject), + SubComponentConfigurationDetailsProperty { /** * A list of metrics to monitor for the component. * @@ -3778,6 +4584,15 @@ public open class CfnApplication( */ override fun logs(): Any? = unwrap(this).getLogs() + /** + * A list of processes to monitor for the component. + * + * Only Windows EC2 instances can have a processes section. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-subcomponentconfigurationdetails.html#cfn-applicationinsights-application-subcomponentconfigurationdetails-processes) + */ + override fun processes(): Any? = unwrap(this).getProcesses() + /** * A list of Windows Events to monitor for the component. * @@ -3831,6 +4646,12 @@ public open class CfnApplication( * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -3935,7 +4756,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty, - ) : CdkObject(cdkObject), SubComponentTypeConfigurationProperty { + ) : CdkObject(cdkObject), + SubComponentTypeConfigurationProperty { /** * The configuration settings of the sub-components. * @@ -4123,7 +4945,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplication.WindowsEventProperty, - ) : CdkObject(cdkObject), WindowsEventProperty { + ) : CdkObject(cdkObject), + WindowsEventProperty { /** * The levels of event to log. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplicationProps.kt index 1600151abe..bba1c17787 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationinsights/CfnApplicationProps.kt @@ -67,6 +67,22 @@ import kotlin.collections.List * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -88,6 +104,12 @@ import kotlin.collections.List * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -133,6 +155,22 @@ import kotlin.collections.List * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder() + * .instanceNumbers(List.of("instanceNumbers")) + * .sapsid("sapsid") + * // the properties below are optional + * .prometheusPort("prometheusPort") + * .build()) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) + * .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder() + * .prometheusPort("prometheusPort") + * .sqlSecretName("sqlSecretName") + * .build()) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -154,6 +192,12 @@ import kotlin.collections.List * .logPath("logPath") * .patternSet("patternSet") * .build())) + * .processes(List.of(ProcessProperty.builder() + * .alarmMetrics(List.of(AlarmMetricProperty.builder() + * .alarmMetricName("alarmMetricName") + * .build())) + * .processName("processName") + * .build())) * .windowsEvents(List.of(WindowsEventProperty.builder() * .eventLevels(List.of("eventLevels")) * .eventName("eventName") @@ -211,6 +255,9 @@ public interface CfnApplicationProps { /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring for + * all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) */ public fun componentMonitoringSettings(): Any? = unwrap(this).getComponentMonitoringSettings() @@ -308,16 +355,22 @@ public interface CfnApplicationProps { /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ public fun componentMonitoringSettings(componentMonitoringSettings: IResolvable) /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ public fun componentMonitoringSettings(componentMonitoringSettings: List) /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ public fun componentMonitoringSettings(vararg componentMonitoringSettings: Any) @@ -449,6 +502,8 @@ public interface CfnApplicationProps { /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ override fun componentMonitoringSettings(componentMonitoringSettings: IResolvable) { cdkBuilder.componentMonitoringSettings(componentMonitoringSettings.let(IResolvable.Companion::unwrap)) @@ -456,6 +511,8 @@ public interface CfnApplicationProps { /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ override fun componentMonitoringSettings(componentMonitoringSettings: List) { cdkBuilder.componentMonitoringSettings(componentMonitoringSettings.map{CdkObjectWrappers.unwrap(it)}) @@ -463,6 +520,8 @@ public interface CfnApplicationProps { /** * @param componentMonitoringSettings The monitoring settings of the components. + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . */ override fun componentMonitoringSettings(vararg componentMonitoringSettings: Any): Unit = componentMonitoringSettings(componentMonitoringSettings.toList()) @@ -587,7 +646,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.applicationinsights.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * If set to true, the managed policies for SSM and CW will be attached to the instance roles if * they are missing. @@ -607,6 +667,9 @@ public interface CfnApplicationProps { /** * The monitoring settings of the components. * + * Not required to set up default monitoring for all components. To set up default monitoring + * for all components, set `AutoConfigurationEnabled` to `true` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationinsights-application.html#cfn-applicationinsights-application-componentmonitoringsettings) */ override fun componentMonitoringSettings(): Any? = unwrap(this).getComponentMonitoringSettings() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjective.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjective.kt new file mode 100644 index 0000000000..620391473d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjective.kt @@ -0,0 +1,4030 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.applicationsignals + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates or updates a service level objective (SLO), which can help you ensure that your critical + * business operations are meeting customer expectations. + * + * Use SLOs to set and track specific target levels for the reliability and availability of your + * applications and services. SLOs use service level indicators (SLIs) to calculate whether the + * application is performing at the level that you want. + * + * Create an SLO to set a target for a service or operation’s availability or latency. CloudWatch + * measures this target frequently you can find whether it has been breached. + * + * The target performance quality that is defined for an SLO is the *attainment goal* . An + * attainment goal is the percentage of time or requests that the SLI is expected to meet the threshold + * over each time interval. For example, an attainment goal of 99.9% means that within your interval, + * you are targeting 99.9% of the periods to be in healthy state. + * + * When you create an SLO, you specify whether it is a *period-based SLO* or a *request-based SLO* . + * Each type of SLO has a different way of evaluating your application's performance against its + * attainment goal. + * + * * A *period-based SLO* uses defined *periods* of time within a specified total time interval. For + * each period of time, Application Signals determines whether the application met its goal. The + * attainment rate is calculated as the `number of good periods/number of total periods` . + * + * For example, for a period-based SLO, meeting an attainment goal of 99.9% means that within your + * interval, your application must meet its performance goal during at least 99.9% of the time periods. + * + * * A *request-based SLO* doesn't use pre-defined periods of time. Instead, the SLO measures + * `number of good requests/number of total requests` during the interval. At any time, you can find + * the ratio of good requests to total requests for the interval up to the time stamp that you specify, + * and measure that ratio against the goal set in your SLO. + * + * After you have created an SLO, you can retrieve error budget reports for it. An *error budget* is + * the amount of time or amount of requests that your application can be non-compliant with the SLO's + * goal, and still have your application meet the goal. + * + * * For a period-based SLO, the error budget starts at a number defined by the highest number of + * periods that can fail to meet the threshold, while still meeting the overall goal. The *remaining + * error budget* decreases with every failed period that is recorded. The error budget within one + * interval can never increase. + * + * For example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms every + * month translates to an error budget of 21.9 minutes of downtime per month. + * + * * For a request-based SLO, the remaining error budget is dynamic and can increase or decrease, + * depending on the ratio of good requests to total requests. + * + * When you call this operation, Application Signals creates the + * *AWSServiceRoleForCloudWatchApplicationSignals* service-linked role, if it doesn't already exist in + * your account. This service- linked role has the following permissions: + * + * * `xray:GetServiceGraph` + * * `logs:StartQuery` + * * `logs:GetQueryResults` + * * `cloudwatch:GetMetricData` + * * `cloudwatch:ListMetrics` + * * `tag:GetResources` + * * `autoscaling:DescribeAutoScalingGroups` + * + * You can easily set SLO targets for your applications that are discovered by Application Signals, + * using critical metrics such as latency and availability. You can also set SLOs against any + * CloudWatch metric or math expression that produces a time series. + * + * You cannot change from a period-based SLO to a request-based SLO, or change from a request-based + * SLO to a period-based SLO. + * + * For more information about SLOs, see [Service level objectives + * (SLOs)](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-ServiceLevelObjectives.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * CfnServiceLevelObjective cfnServiceLevelObjective = CfnServiceLevelObjective.Builder.create(this, + * "MyCfnServiceLevelObjective") + * .name("name") + * // the properties below are optional + * .description("description") + * .goal(GoalProperty.builder() + * .attainmentGoal(123) + * .interval(IntervalProperty.builder() + * .calendarInterval(CalendarIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .startTime(123) + * .build()) + * .rollingInterval(RollingIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .build()) + * .build()) + * .warningThreshold(123) + * .build()) + * .requestBasedSli(RequestBasedSliProperty.builder() + * .requestBasedSliMetric(RequestBasedSliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricType("metricType") + * .monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder() + * .badCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .goodCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * .operationName("operationName") + * .totalRequestCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * // the properties below are optional + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .build()) + * .sli(SliProperty.builder() + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .sliMetric(SliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricDataQueries(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .metricType("metricType") + * .operationName("operationName") + * .periodSeconds(123) + * .statistic("statistic") + * .build()) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html) + */ +public open class CfnServiceLevelObjective( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnServiceLevelObjectiveProps, + ) : + this(software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnServiceLevelObjectiveProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnServiceLevelObjectiveProps.Builder.() -> Unit, + ) : this(scope, id, CfnServiceLevelObjectiveProps(props) + ) + + /** + * The ARN of this SLO. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time that this SLO was created. + */ + public open fun attrCreatedTime(): Number = unwrap(this).getAttrCreatedTime() + + /** + * Displays whether this is a period-based SLO or a request-based SLO. + */ + public open fun attrEvaluationType(): String = unwrap(this).getAttrEvaluationType() + + /** + * The time that this SLO was most recently updated. + */ + public open fun attrLastUpdatedTime(): Number = unwrap(this).getAttrLastUpdatedTime() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * An optional description for this SLO. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * An optional description for this SLO. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + */ + public open fun goal(): Any? = unwrap(this).getGoal() + + /** + * This structure contains the attributes that determine the goal of an SLO. + */ + public open fun goal(`value`: IResolvable) { + unwrap(this).setGoal(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + */ + public open fun goal(`value`: GoalProperty) { + unwrap(this).setGoal(`value`.let(GoalProperty.Companion::unwrap)) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("aa6bcfd902000791ad13e327df68e926d9668e1656c871aa3f8450bdd32a2cb8") + public open fun goal(`value`: GoalProperty.Builder.() -> Unit): Unit = goal(GoalProperty(`value`)) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A name for this SLO. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A name for this SLO. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a request-based SLO. + */ + public open fun requestBasedSli(): Any? = unwrap(this).getRequestBasedSli() + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a request-based SLO. + */ + public open fun requestBasedSli(`value`: IResolvable) { + unwrap(this).setRequestBasedSli(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a request-based SLO. + */ + public open fun requestBasedSli(`value`: RequestBasedSliProperty) { + unwrap(this).setRequestBasedSli(`value`.let(RequestBasedSliProperty.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a request-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e647ed381bc3bbb7aff483cb78c4e9e654eaca034e3ba32784c8a6791db8a387") + public open fun requestBasedSli(`value`: RequestBasedSliProperty.Builder.() -> Unit): Unit = + requestBasedSli(RequestBasedSliProperty(`value`)) + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a period-based SLO. + */ + public open fun sli(): Any? = unwrap(this).getSli() + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a period-based SLO. + */ + public open fun sli(`value`: IResolvable) { + unwrap(this).setSli(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a period-based SLO. + */ + public open fun sli(`value`: SliProperty) { + unwrap(this).setSli(`value`.let(SliProperty.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a period-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("424c566889a591a72c8b0a73b7a40e1165e54abe884c884ff5ed0ef5d2ec9be4") + public open fun sli(`value`: SliProperty.Builder.() -> Unit): Unit = sli(SliProperty(`value`)) + + /** + * A list of key-value pairs to associate with the SLO. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A list of key-value pairs to associate with the SLO. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A list of key-value pairs to associate with the SLO. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.applicationsignals.CfnServiceLevelObjective]. + */ + @CdkDslMarker + public interface Builder { + /** + * An optional description for this SLO. + * + * Default: - "No description" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-description) + * @param description An optional description for this SLO. + */ + public fun description(description: String) + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + public fun goal(goal: IResolvable) + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + public fun goal(goal: GoalProperty) + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c8ad6ce6db124d50326efc75d49850dd75b48dec1b9861eaf5d99c8c83594a04") + public fun goal(goal: GoalProperty.Builder.() -> Unit) + + /** + * A name for this SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-name) + * @param name A name for this SLO. + */ + public fun name(name: String) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + public fun requestBasedSli(requestBasedSli: IResolvable) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + public fun requestBasedSli(requestBasedSli: RequestBasedSliProperty) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ba34371f44a1dc55bff04108b0fe8dbb17b8c87d323d4eb665b401f4c7de27cb") + public fun requestBasedSli(requestBasedSli: RequestBasedSliProperty.Builder.() -> Unit) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + public fun sli(sli: IResolvable) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + public fun sli(sli: SliProperty) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a8e30b6292deeb3544d91aa8c7e6006b7d2eca4069967bca8afa3d27095e924b") + public fun sli(sli: SliProperty.Builder.() -> Unit) + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + * @param tags A list of key-value pairs to associate with the SLO. + */ + public fun tags(tags: List) + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + * @param tags A list of key-value pairs to associate with the SLO. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.Builder = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.Builder.create(scope, + id) + + /** + * An optional description for this SLO. + * + * Default: - "No description" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-description) + * @param description An optional description for this SLO. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + override fun goal(goal: IResolvable) { + cdkBuilder.goal(goal.let(IResolvable.Companion::unwrap)) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + override fun goal(goal: GoalProperty) { + cdkBuilder.goal(goal.let(GoalProperty.Companion::unwrap)) + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + * @param goal This structure contains the attributes that determine the goal of an SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c8ad6ce6db124d50326efc75d49850dd75b48dec1b9861eaf5d99c8c83594a04") + override fun goal(goal: GoalProperty.Builder.() -> Unit): Unit = goal(GoalProperty(goal)) + + /** + * A name for this SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-name) + * @param name A name for this SLO. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + override fun requestBasedSli(requestBasedSli: IResolvable) { + cdkBuilder.requestBasedSli(requestBasedSli.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + override fun requestBasedSli(requestBasedSli: RequestBasedSliProperty) { + cdkBuilder.requestBasedSli(requestBasedSli.let(RequestBasedSliProperty.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ba34371f44a1dc55bff04108b0fe8dbb17b8c87d323d4eb665b401f4c7de27cb") + override fun requestBasedSli(requestBasedSli: RequestBasedSliProperty.Builder.() -> Unit): Unit + = requestBasedSli(RequestBasedSliProperty(requestBasedSli)) + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + override fun sli(sli: IResolvable) { + cdkBuilder.sli(sli.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + override fun sli(sli: SliProperty) { + cdkBuilder.sli(sli.let(SliProperty.Companion::unwrap)) + } + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a8e30b6292deeb3544d91aa8c7e6006b7d2eca4069967bca8afa3d27095e924b") + override fun sli(sli: SliProperty.Builder.() -> Unit): Unit = sli(SliProperty(sli)) + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + * @param tags A list of key-value pairs to associate with the SLO. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + * @param tags A list of key-value pairs to associate with the SLO. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective + = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnServiceLevelObjective { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnServiceLevelObjective(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective): + CfnServiceLevelObjective = CfnServiceLevelObjective(cdkObject) + + internal fun unwrap(wrapped: CfnServiceLevelObjective): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective = + wrapped.cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective + } + + /** + * If the interval for this service level objective is a calendar interval, this structure + * contains the interval specifications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * CalendarIntervalProperty calendarIntervalProperty = CalendarIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .startTime(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html) + */ + public interface CalendarIntervalProperty { + /** + * Specifies the duration of each calendar interval. + * + * For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one month, + * aligned with the calendar. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-duration) + */ + public fun duration(): Number + + /** + * Specifies the calendar interval unit. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit) + */ + public fun durationUnit(): String + + /** + * The date and time when you want the first interval to start. + * + * Be sure to choose a time that configures the intervals the way that you want. For example, if + * you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is + * a Monday at 6 a.m. + * + * When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: + * `1698778057` + * + * As soon as one calendar interval ends, another automatically begins. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime) + */ + public fun startTime(): Number + + /** + * A builder for [CalendarIntervalProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param duration Specifies the duration of each calendar interval. + * For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one + * month, aligned with the calendar. + */ + public fun duration(duration: Number) + + /** + * @param durationUnit Specifies the calendar interval unit. + */ + public fun durationUnit(durationUnit: String) + + /** + * @param startTime The date and time when you want the first interval to start. + * Be sure to choose a time that configures the intervals the way that you want. For example, + * if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time + * that is a Monday at 6 a.m. + * + * When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For + * example: `1698778057` + * + * As soon as one calendar interval ends, another automatically begins. + */ + public fun startTime(startTime: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty.builder() + + /** + * @param duration Specifies the duration of each calendar interval. + * For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one + * month, aligned with the calendar. + */ + override fun duration(duration: Number) { + cdkBuilder.duration(duration) + } + + /** + * @param durationUnit Specifies the calendar interval unit. + */ + override fun durationUnit(durationUnit: String) { + cdkBuilder.durationUnit(durationUnit) + } + + /** + * @param startTime The date and time when you want the first interval to start. + * Be sure to choose a time that configures the intervals the way that you want. For example, + * if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time + * that is a Monday at 6 a.m. + * + * When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For + * example: `1698778057` + * + * As soon as one calendar interval ends, another automatically begins. + */ + override fun startTime(startTime: Number) { + cdkBuilder.startTime(startTime) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty, + ) : CdkObject(cdkObject), + CalendarIntervalProperty { + /** + * Specifies the duration of each calendar interval. + * + * For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one + * month, aligned with the calendar. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-duration) + */ + override fun duration(): Number = unwrap(this).getDuration() + + /** + * Specifies the calendar interval unit. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit) + */ + override fun durationUnit(): String = unwrap(this).getDurationUnit() + + /** + * The date and time when you want the first interval to start. + * + * Be sure to choose a time that configures the intervals the way that you want. For example, + * if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time + * that is a Monday at 6 a.m. + * + * When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For + * example: `1698778057` + * + * As soon as one calendar interval ends, another automatically begins. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime) + */ + override fun startTime(): Number = unwrap(this).getStartTime() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CalendarIntervalProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty): + CalendarIntervalProperty = CdkObjectWrappers.wrap(cdkObject) as? CalendarIntervalProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CalendarIntervalProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty + } + } + + /** + * A dimension is a name/value pair that is part of the identity of a metric. + * + * Because dimensions are part of the unique identifier for a metric, whenever you add a unique + * name/value pair to one of your metrics, you are creating a new variation of that metric. For + * example, many Amazon EC2 metrics publish `InstanceId` as a dimension name, and the actual instance + * ID as the value for that dimension. + * + * You can assign up to 30 dimensions to a metric. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * DimensionProperty dimensionProperty = DimensionProperty.builder() + * .name("name") + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html) + */ + public interface DimensionProperty { + /** + * The name of the dimension. + * + * Dimension names must contain only ASCII characters, must include at least one non-whitespace + * character, and cannot start with a colon ( `:` ). ASCII control characters are not supported as + * part of dimension names. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html#cfn-applicationsignals-servicelevelobjective-dimension-name) + */ + public fun name(): String + + /** + * The value of the dimension. + * + * Dimension values must contain only ASCII characters and must include at least one + * non-whitespace character. ASCII control characters are not supported as part of dimension + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html#cfn-applicationsignals-servicelevelobjective-dimension-value) + */ + public fun `value`(): String + + /** + * A builder for [DimensionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the dimension. + * Dimension names must contain only ASCII characters, must include at least one + * non-whitespace character, and cannot start with a colon ( `:` ). ASCII control characters are + * not supported as part of dimension names. + */ + public fun name(name: String) + + /** + * @param value The value of the dimension. + * Dimension values must contain only ASCII characters and must include at least one + * non-whitespace character. ASCII control characters are not supported as part of dimension + * values. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty.builder() + + /** + * @param name The name of the dimension. + * Dimension names must contain only ASCII characters, must include at least one + * non-whitespace character, and cannot start with a colon ( `:` ). ASCII control characters are + * not supported as part of dimension names. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param value The value of the dimension. + * Dimension values must contain only ASCII characters and must include at least one + * non-whitespace character. ASCII control characters are not supported as part of dimension + * values. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty, + ) : CdkObject(cdkObject), + DimensionProperty { + /** + * The name of the dimension. + * + * Dimension names must contain only ASCII characters, must include at least one + * non-whitespace character, and cannot start with a colon ( `:` ). ASCII control characters are + * not supported as part of dimension names. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html#cfn-applicationsignals-servicelevelobjective-dimension-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The value of the dimension. + * + * Dimension values must contain only ASCII characters and must include at least one + * non-whitespace character. ASCII control characters are not supported as part of dimension + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html#cfn-applicationsignals-servicelevelobjective-dimension-value) + */ + override fun `value`(): String = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DimensionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty): + DimensionProperty = CdkObjectWrappers.wrap(cdkObject) as? DimensionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DimensionProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.DimensionProperty + } + } + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * GoalProperty goalProperty = GoalProperty.builder() + * .attainmentGoal(123) + * .interval(IntervalProperty.builder() + * .calendarInterval(CalendarIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .startTime(123) + * .build()) + * .rollingInterval(RollingIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .build()) + * .build()) + * .warningThreshold(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html) + */ + public interface GoalProperty { + /** + * The threshold that determines if the goal is being met. + * + * If this is a period-based SLO, the attainment goal is the percentage of good periods that + * meet the threshold requirements to the total periods within the interval. For example, an + * attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods + * to be in healthy state. + * + * If this is a request-based SLO, the attainment goal is the percentage of requests that must + * be successful to meet the attainment goal. + * + * If you omit this parameter, 99 is used to represent 99% as the attainment goal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-attainmentgoal) + */ + public fun attainmentGoal(): Number? = unwrap(this).getAttainmentGoal() + + /** + * The time period used to evaluate the SLO. It can be either a calendar interval or rolling + * interval. + * + * If you omit this parameter, a rolling interval of 7 days is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-interval) + */ + public fun interval(): Any? = unwrap(this).getInterval() + + /** + * The percentage of remaining budget over total budget that you want to get warnings for. + * + * If you omit this parameter, the default of 50.0 is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-warningthreshold) + */ + public fun warningThreshold(): Number? = unwrap(this).getWarningThreshold() + + /** + * A builder for [GoalProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attainmentGoal The threshold that determines if the goal is being met. + * If this is a period-based SLO, the attainment goal is the percentage of good periods that + * meet the threshold requirements to the total periods within the interval. For example, an + * attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the + * periods to be in healthy state. + * + * If this is a request-based SLO, the attainment goal is the percentage of requests that must + * be successful to meet the attainment goal. + * + * If you omit this parameter, 99 is used to represent 99% as the attainment goal. + */ + public fun attainmentGoal(attainmentGoal: Number) + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + public fun interval(interval: IResolvable) + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + public fun interval(interval: IntervalProperty) + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("32f282cbde9eaab94591b2248fadbdecdc9b1180104b975db69ddbe468d6fb5f") + public fun interval(interval: IntervalProperty.Builder.() -> Unit) + + /** + * @param warningThreshold The percentage of remaining budget over total budget that you want + * to get warnings for. + * If you omit this parameter, the default of 50.0 is used. + */ + public fun warningThreshold(warningThreshold: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty.builder() + + /** + * @param attainmentGoal The threshold that determines if the goal is being met. + * If this is a period-based SLO, the attainment goal is the percentage of good periods that + * meet the threshold requirements to the total periods within the interval. For example, an + * attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the + * periods to be in healthy state. + * + * If this is a request-based SLO, the attainment goal is the percentage of requests that must + * be successful to meet the attainment goal. + * + * If you omit this parameter, 99 is used to represent 99% as the attainment goal. + */ + override fun attainmentGoal(attainmentGoal: Number) { + cdkBuilder.attainmentGoal(attainmentGoal) + } + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + override fun interval(interval: IResolvable) { + cdkBuilder.interval(interval.let(IResolvable.Companion::unwrap)) + } + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + override fun interval(interval: IntervalProperty) { + cdkBuilder.interval(interval.let(IntervalProperty.Companion::unwrap)) + } + + /** + * @param interval The time period used to evaluate the SLO. It can be either a calendar + * interval or rolling interval. + * If you omit this parameter, a rolling interval of 7 days is used. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("32f282cbde9eaab94591b2248fadbdecdc9b1180104b975db69ddbe468d6fb5f") + override fun interval(interval: IntervalProperty.Builder.() -> Unit): Unit = + interval(IntervalProperty(interval)) + + /** + * @param warningThreshold The percentage of remaining budget over total budget that you want + * to get warnings for. + * If you omit this parameter, the default of 50.0 is used. + */ + override fun warningThreshold(warningThreshold: Number) { + cdkBuilder.warningThreshold(warningThreshold) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty, + ) : CdkObject(cdkObject), + GoalProperty { + /** + * The threshold that determines if the goal is being met. + * + * If this is a period-based SLO, the attainment goal is the percentage of good periods that + * meet the threshold requirements to the total periods within the interval. For example, an + * attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the + * periods to be in healthy state. + * + * If this is a request-based SLO, the attainment goal is the percentage of requests that must + * be successful to meet the attainment goal. + * + * If you omit this parameter, 99 is used to represent 99% as the attainment goal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-attainmentgoal) + */ + override fun attainmentGoal(): Number? = unwrap(this).getAttainmentGoal() + + /** + * The time period used to evaluate the SLO. It can be either a calendar interval or rolling + * interval. + * + * If you omit this parameter, a rolling interval of 7 days is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-interval) + */ + override fun interval(): Any? = unwrap(this).getInterval() + + /** + * The percentage of remaining budget over total budget that you want to get warnings for. + * + * If you omit this parameter, the default of 50.0 is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html#cfn-applicationsignals-servicelevelobjective-goal-warningthreshold) + */ + override fun warningThreshold(): Number? = unwrap(this).getWarningThreshold() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): GoalProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty): + GoalProperty = CdkObjectWrappers.wrap(cdkObject) as? GoalProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: GoalProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty + } + } + + /** + * The time period used to evaluate the SLO. + * + * It can be either a calendar interval or rolling interval. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * IntervalProperty intervalProperty = IntervalProperty.builder() + * .calendarInterval(CalendarIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .startTime(123) + * .build()) + * .rollingInterval(RollingIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html) + */ + public interface IntervalProperty { + /** + * If the interval is a calendar interval, this structure contains the interval specifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html#cfn-applicationsignals-servicelevelobjective-interval-calendarinterval) + */ + public fun calendarInterval(): Any? = unwrap(this).getCalendarInterval() + + /** + * If the interval is a rolling interval, this structure contains the interval specifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html#cfn-applicationsignals-servicelevelobjective-interval-rollinginterval) + */ + public fun rollingInterval(): Any? = unwrap(this).getRollingInterval() + + /** + * A builder for [IntervalProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + public fun calendarInterval(calendarInterval: IResolvable) + + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + public fun calendarInterval(calendarInterval: CalendarIntervalProperty) + + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a4d833aacc255893f0ec6c9ce725e9c7de1d6729085c3a474f97af1653d29f09") + public fun calendarInterval(calendarInterval: CalendarIntervalProperty.Builder.() -> Unit) + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + public fun rollingInterval(rollingInterval: IResolvable) + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + public fun rollingInterval(rollingInterval: RollingIntervalProperty) + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cb3beb98a9fcd1121f0abdc45b85d9a0f3adc4a958246d4532670b2e6547fe45") + public fun rollingInterval(rollingInterval: RollingIntervalProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty.builder() + + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + override fun calendarInterval(calendarInterval: IResolvable) { + cdkBuilder.calendarInterval(calendarInterval.let(IResolvable.Companion::unwrap)) + } + + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + override fun calendarInterval(calendarInterval: CalendarIntervalProperty) { + cdkBuilder.calendarInterval(calendarInterval.let(CalendarIntervalProperty.Companion::unwrap)) + } + + /** + * @param calendarInterval If the interval is a calendar interval, this structure contains the + * interval specifications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a4d833aacc255893f0ec6c9ce725e9c7de1d6729085c3a474f97af1653d29f09") + override fun calendarInterval(calendarInterval: CalendarIntervalProperty.Builder.() -> Unit): + Unit = calendarInterval(CalendarIntervalProperty(calendarInterval)) + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + override fun rollingInterval(rollingInterval: IResolvable) { + cdkBuilder.rollingInterval(rollingInterval.let(IResolvable.Companion::unwrap)) + } + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + override fun rollingInterval(rollingInterval: RollingIntervalProperty) { + cdkBuilder.rollingInterval(rollingInterval.let(RollingIntervalProperty.Companion::unwrap)) + } + + /** + * @param rollingInterval If the interval is a rolling interval, this structure contains the + * interval specifications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cb3beb98a9fcd1121f0abdc45b85d9a0f3adc4a958246d4532670b2e6547fe45") + override fun rollingInterval(rollingInterval: RollingIntervalProperty.Builder.() -> Unit): + Unit = rollingInterval(RollingIntervalProperty(rollingInterval)) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty, + ) : CdkObject(cdkObject), + IntervalProperty { + /** + * If the interval is a calendar interval, this structure contains the interval + * specifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html#cfn-applicationsignals-servicelevelobjective-interval-calendarinterval) + */ + override fun calendarInterval(): Any? = unwrap(this).getCalendarInterval() + + /** + * If the interval is a rolling interval, this structure contains the interval specifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html#cfn-applicationsignals-servicelevelobjective-interval-rollinginterval) + */ + override fun rollingInterval(): Any? = unwrap(this).getRollingInterval() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IntervalProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty): + IntervalProperty = CdkObjectWrappers.wrap(cdkObject) as? IntervalProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IntervalProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty + } + } + + /** + * Use this structure to define a metric or metric math expression that you want to use as for a + * service level objective. + * + * Each `MetricDataQuery` in the `MetricDataQueries` array specifies either a metric to retrieve, + * or a metric math expression to be performed on retrieved metrics. A single `MetricDataQueries` + * array can include as many as 20 `MetricDataQuery` structures in the array. The 20 structures can + * include as many as 10 structures that contain a `MetricStat` parameter to retrieve a metric, and + * as many as 10 structures that contain the `Expression` parameter to perform a math expression. Of + * those `Expression` structures, exactly one must have true as the value for `ReturnData` . The + * result of this expression used for the SLO. + * + * For more information about metric math expressions, see [Use metric + * math](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html) . + * + * Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` but + * not both. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * MetricDataQueryProperty metricDataQueryProperty = MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html) + */ + public interface MetricDataQueryProperty { + /** + * The ID of the account where this metric is located. + * + * If you are performing this operation in a monitoring account, use this to specify which + * source account to retrieve this metric from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-accountid) + */ + public fun accountId(): String? = unwrap(this).getAccountId() + + /** + * This field can contain a metric math expression to be performed on the other metrics that you + * are retrieving within this `MetricDataQueries` structure. + * + * A math expression can use the `Id` of the other metrics or queries to refer to those metrics, + * and can also use the `Id` of other expressions to use the result of those expressions. For more + * information about metric math expressions, see [Metric Math Syntax and + * Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + * in the *Amazon CloudWatch User Guide* . + * + * Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-expression) + */ + public fun expression(): String? = unwrap(this).getExpression() + + /** + * A short name used to tie this object to the results in the response. + * + * This `Id` must be unique within a `MetricDataQueries` array. If you are performing math + * expressions on this set of data, this name represents that data and can serve as a variable in + * the metric math expression. The valid characters are letters, numbers, and underscore. The first + * character must be a lowercase letter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-id) + */ + public fun id(): String + + /** + * A metric to be used directly for the SLO, or to be used in the math expression that will be + * used for the SLO. + * + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` but + * not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-metricstat) + */ + public fun metricStat(): Any? = unwrap(this).getMetricStat() + + /** + * Use this only if you are using a metric math expression for the SLO. + * + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-returndata) + */ + public fun returnData(): Any? = unwrap(this).getReturnData() + + /** + * A builder for [MetricDataQueryProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accountId The ID of the account where this metric is located. + * If you are performing this operation in a monitoring account, use this to specify which + * source account to retrieve this metric from. + */ + public fun accountId(accountId: String) + + /** + * @param expression This field can contain a metric math expression to be performed on the + * other metrics that you are retrieving within this `MetricDataQueries` structure. + * A math expression can use the `Id` of the other metrics or queries to refer to those + * metrics, and can also use the `Id` of other expressions to use the result of those + * expressions. For more information about metric math expressions, see [Metric Math Syntax and + * Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + * in the *Amazon CloudWatch User Guide* . + * + * Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + public fun expression(expression: String) + + /** + * @param id A short name used to tie this object to the results in the response. + * This `Id` must be unique within a `MetricDataQueries` array. If you are performing math + * expressions on this set of data, this name represents that data and can serve as a variable in + * the metric math expression. The valid characters are letters, numbers, and underscore. The + * first character must be a lowercase letter. + */ + public fun id(id: String) + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + public fun metricStat(metricStat: IResolvable) + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + public fun metricStat(metricStat: MetricStatProperty) + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("923a1f9634f7423f4a141f43f1a4bce47b0561d157e938d6f5022cbd11b65d71") + public fun metricStat(metricStat: MetricStatProperty.Builder.() -> Unit) + + /** + * @param returnData Use this only if you are using a metric math expression for the SLO. + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + */ + public fun returnData(returnData: Boolean) + + /** + * @param returnData Use this only if you are using a metric math expression for the SLO. + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + */ + public fun returnData(returnData: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty.builder() + + /** + * @param accountId The ID of the account where this metric is located. + * If you are performing this operation in a monitoring account, use this to specify which + * source account to retrieve this metric from. + */ + override fun accountId(accountId: String) { + cdkBuilder.accountId(accountId) + } + + /** + * @param expression This field can contain a metric math expression to be performed on the + * other metrics that you are retrieving within this `MetricDataQueries` structure. + * A math expression can use the `Id` of the other metrics or queries to refer to those + * metrics, and can also use the `Id` of other expressions to use the result of those + * expressions. For more information about metric math expressions, see [Metric Math Syntax and + * Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + * in the *Amazon CloudWatch User Guide* . + * + * Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param id A short name used to tie this object to the results in the response. + * This `Id` must be unique within a `MetricDataQueries` array. If you are performing math + * expressions on this set of data, this name represents that data and can serve as a variable in + * the metric math expression. The valid characters are letters, numbers, and underscore. The + * first character must be a lowercase letter. + */ + override fun id(id: String) { + cdkBuilder.id(id) + } + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + override fun metricStat(metricStat: IResolvable) { + cdkBuilder.metricStat(metricStat.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + override fun metricStat(metricStat: MetricStatProperty) { + cdkBuilder.metricStat(metricStat.let(MetricStatProperty.Companion::unwrap)) + } + + /** + * @param metricStat A metric to be used directly for the SLO, or to be used in the math + * expression that will be used for the SLO. + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("923a1f9634f7423f4a141f43f1a4bce47b0561d157e938d6f5022cbd11b65d71") + override fun metricStat(metricStat: MetricStatProperty.Builder.() -> Unit): Unit = + metricStat(MetricStatProperty(metricStat)) + + /** + * @param returnData Use this only if you are using a metric math expression for the SLO. + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + */ + override fun returnData(returnData: Boolean) { + cdkBuilder.returnData(returnData) + } + + /** + * @param returnData Use this only if you are using a metric math expression for the SLO. + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + */ + override fun returnData(returnData: IResolvable) { + cdkBuilder.returnData(returnData.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty, + ) : CdkObject(cdkObject), + MetricDataQueryProperty { + /** + * The ID of the account where this metric is located. + * + * If you are performing this operation in a monitoring account, use this to specify which + * source account to retrieve this metric from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-accountid) + */ + override fun accountId(): String? = unwrap(this).getAccountId() + + /** + * This field can contain a metric math expression to be performed on the other metrics that + * you are retrieving within this `MetricDataQueries` structure. + * + * A math expression can use the `Id` of the other metrics or queries to refer to those + * metrics, and can also use the `Id` of other expressions to use the result of those + * expressions. For more information about metric math expressions, see [Metric Math Syntax and + * Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + * in the *Amazon CloudWatch User Guide* . + * + * Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-expression) + */ + override fun expression(): String? = unwrap(this).getExpression() + + /** + * A short name used to tie this object to the results in the response. + * + * This `Id` must be unique within a `MetricDataQueries` array. If you are performing math + * expressions on this set of data, this name represents that data and can serve as a variable in + * the metric math expression. The valid characters are letters, numbers, and underscore. The + * first character must be a lowercase letter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-id) + */ + override fun id(): String = unwrap(this).getId() + + /** + * A metric to be used directly for the SLO, or to be used in the math expression that will be + * used for the SLO. + * + * Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` + * but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-metricstat) + */ + override fun metricStat(): Any? = unwrap(this).getMetricStat() + + /** + * Use this only if you are using a metric math expression for the SLO. + * + * Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For + * all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify + * `ReturnData` as `false` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html#cfn-applicationsignals-servicelevelobjective-metricdataquery-returndata) + */ + override fun returnData(): Any? = unwrap(this).getReturnData() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MetricDataQueryProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty): + MetricDataQueryProperty = CdkObjectWrappers.wrap(cdkObject) as? MetricDataQueryProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MetricDataQueryProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty + } + } + + /** + * This structure defines the metric used for a service level indicator, including the metric + * name, namespace, and dimensions. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * MetricProperty metricProperty = MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html) + */ + public interface MetricProperty { + /** + * An array of one or more dimensions to use to define the metric that you want to use. + * + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-dimensions) + */ + public fun dimensions(): Any? = unwrap(this).getDimensions() + + /** + * The name of the metric to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-metricname) + */ + public fun metricName(): String? = unwrap(this).getMetricName() + + /** + * The namespace of the metric. + * + * For more information, see + * [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-namespace) + */ + public fun namespace(): String? = unwrap(this).getNamespace() + + /** + * A builder for [MetricProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + public fun dimensions(dimensions: IResolvable) + + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + public fun dimensions(dimensions: List) + + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + public fun dimensions(vararg dimensions: Any) + + /** + * @param metricName The name of the metric to use. + */ + public fun metricName(metricName: String) + + /** + * @param namespace The namespace of the metric. + * For more information, see + * [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace) + * . + */ + public fun namespace(namespace: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty.builder() + + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + override fun dimensions(dimensions: IResolvable) { + cdkBuilder.dimensions(dimensions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + override fun dimensions(dimensions: List) { + cdkBuilder.dimensions(dimensions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param dimensions An array of one or more dimensions to use to define the metric that you + * want to use. + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + */ + override fun dimensions(vararg dimensions: Any): Unit = dimensions(dimensions.toList()) + + /** + * @param metricName The name of the metric to use. + */ + override fun metricName(metricName: String) { + cdkBuilder.metricName(metricName) + } + + /** + * @param namespace The namespace of the metric. + * For more information, see + * [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace) + * . + */ + override fun namespace(namespace: String) { + cdkBuilder.namespace(namespace) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty, + ) : CdkObject(cdkObject), + MetricProperty { + /** + * An array of one or more dimensions to use to define the metric that you want to use. + * + * For more information, see + * [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-dimensions) + */ + override fun dimensions(): Any? = unwrap(this).getDimensions() + + /** + * The name of the metric to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-metricname) + */ + override fun metricName(): String? = unwrap(this).getMetricName() + + /** + * The namespace of the metric. + * + * For more information, see + * [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html#cfn-applicationsignals-servicelevelobjective-metric-namespace) + */ + override fun namespace(): String? = unwrap(this).getNamespace() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MetricProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty): + MetricProperty = CdkObjectWrappers.wrap(cdkObject) as? MetricProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MetricProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty + } + } + + /** + * This structure defines the metric to be used as the service level indicator, along with the + * statistics, period, and unit. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * MetricStatProperty metricStatProperty = MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html) + */ + public interface MetricStatProperty { + /** + * The metric to use as the service level indicator, including the metric name, namespace, and + * dimensions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-metric) + */ + public fun metric(): Any + + /** + * The granularity, in seconds, to be used for the metric. + * + * For metrics with regular resolution, a period can be as short as one minute (60 seconds) and + * must be a multiple of 60. For high-resolution metrics that are collected at intervals of less + * than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution + * metrics are those metrics stored by a `PutMetricData` call that includes a `StorageResolution` + * of 1 second. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-period) + */ + public fun period(): Number + + /** + * The statistic to use for comparison to the threshold. + * + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-stat) + */ + public fun stat(): String + + /** + * If you omit `Unit` then all data that was collected with any unit is returned, along with the + * corresponding units that were specified when the data was reported to CloudWatch. + * + * If you specify a unit, the operation returns only data that was collected with that unit + * specified. If you specify a unit that does not match the data collected, the results of the + * operation are null. CloudWatch does not perform unit conversions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-unit) + */ + public fun unit(): String? = unwrap(this).getUnit() + + /** + * A builder for [MetricStatProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + public fun metric(metric: IResolvable) + + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + public fun metric(metric: MetricProperty) + + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d8f07d0e72d73c0b5b5f26bd053e6853b061599fe92ad9a9c995e095a7ab9295") + public fun metric(metric: MetricProperty.Builder.() -> Unit) + + /** + * @param period The granularity, in seconds, to be used for the metric. + * For metrics with regular resolution, a period can be as short as one minute (60 seconds) + * and must be a multiple of 60. For high-resolution metrics that are collected at intervals of + * less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. + * High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a + * `StorageResolution` of 1 second. + */ + public fun period(period: Number) + + /** + * @param stat The statistic to use for comparison to the threshold. + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + */ + public fun stat(stat: String) + + /** + * @param unit If you omit `Unit` then all data that was collected with any unit is returned, + * along with the corresponding units that were specified when the data was reported to + * CloudWatch. + * If you specify a unit, the operation returns only data that was collected with that unit + * specified. If you specify a unit that does not match the data collected, the results of the + * operation are null. CloudWatch does not perform unit conversions. + */ + public fun unit(unit: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty.builder() + + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + override fun metric(metric: IResolvable) { + cdkBuilder.metric(metric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + override fun metric(metric: MetricProperty) { + cdkBuilder.metric(metric.let(MetricProperty.Companion::unwrap)) + } + + /** + * @param metric The metric to use as the service level indicator, including the metric name, + * namespace, and dimensions. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d8f07d0e72d73c0b5b5f26bd053e6853b061599fe92ad9a9c995e095a7ab9295") + override fun metric(metric: MetricProperty.Builder.() -> Unit): Unit = + metric(MetricProperty(metric)) + + /** + * @param period The granularity, in seconds, to be used for the metric. + * For metrics with regular resolution, a period can be as short as one minute (60 seconds) + * and must be a multiple of 60. For high-resolution metrics that are collected at intervals of + * less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. + * High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a + * `StorageResolution` of 1 second. + */ + override fun period(period: Number) { + cdkBuilder.period(period) + } + + /** + * @param stat The statistic to use for comparison to the threshold. + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + */ + override fun stat(stat: String) { + cdkBuilder.stat(stat) + } + + /** + * @param unit If you omit `Unit` then all data that was collected with any unit is returned, + * along with the corresponding units that were specified when the data was reported to + * CloudWatch. + * If you specify a unit, the operation returns only data that was collected with that unit + * specified. If you specify a unit that does not match the data collected, the results of the + * operation are null. CloudWatch does not perform unit conversions. + */ + override fun unit(unit: String) { + cdkBuilder.unit(unit) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty, + ) : CdkObject(cdkObject), + MetricStatProperty { + /** + * The metric to use as the service level indicator, including the metric name, namespace, and + * dimensions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-metric) + */ + override fun metric(): Any = unwrap(this).getMetric() + + /** + * The granularity, in seconds, to be used for the metric. + * + * For metrics with regular resolution, a period can be as short as one minute (60 seconds) + * and must be a multiple of 60. For high-resolution metrics that are collected at intervals of + * less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. + * High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a + * `StorageResolution` of 1 second. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-period) + */ + override fun period(): Number = unwrap(this).getPeriod() + + /** + * The statistic to use for comparison to the threshold. + * + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-stat) + */ + override fun stat(): String = unwrap(this).getStat() + + /** + * If you omit `Unit` then all data that was collected with any unit is returned, along with + * the corresponding units that were specified when the data was reported to CloudWatch. + * + * If you specify a unit, the operation returns only data that was collected with that unit + * specified. If you specify a unit that does not match the data collected, the results of the + * operation are null. CloudWatch does not perform unit conversions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html#cfn-applicationsignals-servicelevelobjective-metricstat-unit) + */ + override fun unit(): String? = unwrap(this).getUnit() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MetricStatProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty): + MetricStatProperty = CdkObjectWrappers.wrap(cdkObject) as? MetricStatProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MetricStatProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricStatProperty + } + } + + /** + * This structure defines the metric that is used as the "good request" or "bad request" value for + * a request-based SLO. + * + * This value observed for the metric defined in `TotalRequestCountMetric` is divided by the + * number found for `MonitoredRequestCountMetric` to determine the percentage of successful requests + * that this SLO tracks. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * MonitoredRequestCountMetricProperty monitoredRequestCountMetricProperty = + * MonitoredRequestCountMetricProperty.builder() + * .badCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .goodCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html) + */ + public interface MonitoredRequestCountMetricProperty { + /** + * If you want to count "bad requests" to determine the percentage of successful requests for + * this request-based SLO, specify the metric to use as "bad requests" in this structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric) + */ + public fun badCountMetric(): Any? = unwrap(this).getBadCountMetric() + + /** + * If you want to count "good requests" to determine the percentage of successful requests for + * this request-based SLO, specify the metric to use as "good requests" in this structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric) + */ + public fun goodCountMetric(): Any? = unwrap(this).getGoodCountMetric() + + /** + * A builder for [MonitoredRequestCountMetricProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + public fun badCountMetric(badCountMetric: IResolvable) + + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + public fun badCountMetric(badCountMetric: List) + + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + public fun badCountMetric(vararg badCountMetric: Any) + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + public fun goodCountMetric(goodCountMetric: IResolvable) + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + public fun goodCountMetric(goodCountMetric: List) + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + public fun goodCountMetric(vararg goodCountMetric: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.builder() + + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + override fun badCountMetric(badCountMetric: IResolvable) { + cdkBuilder.badCountMetric(badCountMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + override fun badCountMetric(badCountMetric: List) { + cdkBuilder.badCountMetric(badCountMetric.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param badCountMetric If you want to count "bad requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "bad requests" in + * this structure. + */ + override fun badCountMetric(vararg badCountMetric: Any): Unit = + badCountMetric(badCountMetric.toList()) + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + override fun goodCountMetric(goodCountMetric: IResolvable) { + cdkBuilder.goodCountMetric(goodCountMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + override fun goodCountMetric(goodCountMetric: List) { + cdkBuilder.goodCountMetric(goodCountMetric.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param goodCountMetric If you want to count "good requests" to determine the percentage of + * successful requests for this request-based SLO, specify the metric to use as "good requests" + * in this structure. + */ + override fun goodCountMetric(vararg goodCountMetric: Any): Unit = + goodCountMetric(goodCountMetric.toList()) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty, + ) : CdkObject(cdkObject), + MonitoredRequestCountMetricProperty { + /** + * If you want to count "bad requests" to determine the percentage of successful requests for + * this request-based SLO, specify the metric to use as "bad requests" in this structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric) + */ + override fun badCountMetric(): Any? = unwrap(this).getBadCountMetric() + + /** + * If you want to count "good requests" to determine the percentage of successful requests for + * this request-based SLO, specify the metric to use as "good requests" in this structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric) + */ + override fun goodCountMetric(): Any? = unwrap(this).getGoodCountMetric() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + MonitoredRequestCountMetricProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty): + MonitoredRequestCountMetricProperty = CdkObjectWrappers.wrap(cdkObject) as? + MonitoredRequestCountMetricProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MonitoredRequestCountMetricProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty + } + } + + /** + * This structure contains the information about the metric that is used for a request-based SLO. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * RequestBasedSliMetricProperty requestBasedSliMetricProperty = + * RequestBasedSliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricType("metricType") + * .monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder() + * .badCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .goodCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * .operationName("operationName") + * .totalRequestCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html) + */ + public interface RequestBasedSliMetricProperty { + /** + * This is a string-to-string map that contains information about the type of object that this + * SLO is related to. + * + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` field + * is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-keyattributes) + */ + public fun keyAttributes(): Any? = unwrap(this).getKeyAttributes() + + /** + * If the SLO monitors either the `LATENCY` or `AVAILABILITY` metric that Application Signals + * collects, this field displays which of those metrics is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-metrictype) + */ + public fun metricType(): String? = unwrap(this).getMetricType() + + /** + * Use this structure to define the metric that you want to use as the "good request" or "bad + * request" value for a request-based SLO. + * + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-monitoredrequestcountmetric) + */ + public fun monitoredRequestCountMetric(): Any? = unwrap(this).getMonitoredRequestCountMetric() + + /** + * If the SLO monitors a specific operation of the service, this field displays that operation + * name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-operationname) + */ + public fun operationName(): String? = unwrap(this).getOperationName() + + /** + * This structure defines the metric that is used as the "total requests" number for a + * request-based SLO. + * + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-totalrequestcountmetric) + */ + public fun totalRequestCountMetric(): Any? = unwrap(this).getTotalRequestCountMetric() + + /** + * A builder for [RequestBasedSliMetricProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param keyAttributes This is a string-to-string map that contains information about the + * type of object that this SLO is related to. + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + public fun keyAttributes(keyAttributes: IResolvable) + + /** + * @param keyAttributes This is a string-to-string map that contains information about the + * type of object that this SLO is related to. + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + public fun keyAttributes(keyAttributes: Map) + + /** + * @param metricType If the SLO monitors either the `LATENCY` or `AVAILABILITY` metric that + * Application Signals collects, this field displays which of those metrics is used. + */ + public fun metricType(metricType: String) + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + public fun monitoredRequestCountMetric(monitoredRequestCountMetric: IResolvable) + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + public + fun monitoredRequestCountMetric(monitoredRequestCountMetric: MonitoredRequestCountMetricProperty) + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9cb391d6919914ca8c8b7f9ea8d900bd5df48e17fc14c24a13c4f9887e6e2fc") + public + fun monitoredRequestCountMetric(monitoredRequestCountMetric: MonitoredRequestCountMetricProperty.Builder.() -> Unit) + + /** + * @param operationName If the SLO monitors a specific operation of the service, this field + * displays that operation name. + */ + public fun operationName(operationName: String) + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + public fun totalRequestCountMetric(totalRequestCountMetric: IResolvable) + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + public fun totalRequestCountMetric(totalRequestCountMetric: List) + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + public fun totalRequestCountMetric(vararg totalRequestCountMetric: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty.builder() + + /** + * @param keyAttributes This is a string-to-string map that contains information about the + * type of object that this SLO is related to. + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + override fun keyAttributes(keyAttributes: IResolvable) { + cdkBuilder.keyAttributes(keyAttributes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param keyAttributes This is a string-to-string map that contains information about the + * type of object that this SLO is related to. + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + override fun keyAttributes(keyAttributes: Map) { + cdkBuilder.keyAttributes(keyAttributes) + } + + /** + * @param metricType If the SLO monitors either the `LATENCY` or `AVAILABILITY` metric that + * Application Signals collects, this field displays which of those metrics is used. + */ + override fun metricType(metricType: String) { + cdkBuilder.metricType(metricType) + } + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + override fun monitoredRequestCountMetric(monitoredRequestCountMetric: IResolvable) { + cdkBuilder.monitoredRequestCountMetric(monitoredRequestCountMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + override + fun monitoredRequestCountMetric(monitoredRequestCountMetric: MonitoredRequestCountMetricProperty) { + cdkBuilder.monitoredRequestCountMetric(monitoredRequestCountMetric.let(MonitoredRequestCountMetricProperty.Companion::unwrap)) + } + + /** + * @param monitoredRequestCountMetric Use this structure to define the metric that you want to + * use as the "good request" or "bad request" value for a request-based SLO. + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9cb391d6919914ca8c8b7f9ea8d900bd5df48e17fc14c24a13c4f9887e6e2fc") + override + fun monitoredRequestCountMetric(monitoredRequestCountMetric: MonitoredRequestCountMetricProperty.Builder.() -> Unit): + Unit = + monitoredRequestCountMetric(MonitoredRequestCountMetricProperty(monitoredRequestCountMetric)) + + /** + * @param operationName If the SLO monitors a specific operation of the service, this field + * displays that operation name. + */ + override fun operationName(operationName: String) { + cdkBuilder.operationName(operationName) + } + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + override fun totalRequestCountMetric(totalRequestCountMetric: IResolvable) { + cdkBuilder.totalRequestCountMetric(totalRequestCountMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + override fun totalRequestCountMetric(totalRequestCountMetric: List) { + cdkBuilder.totalRequestCountMetric(totalRequestCountMetric.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param totalRequestCountMetric This structure defines the metric that is used as the "total + * requests" number for a request-based SLO. + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + */ + override fun totalRequestCountMetric(vararg totalRequestCountMetric: Any): Unit = + totalRequestCountMetric(totalRequestCountMetric.toList()) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty, + ) : CdkObject(cdkObject), + RequestBasedSliMetricProperty { + /** + * This is a string-to-string map that contains information about the type of object that this + * SLO is related to. + * + * It can include the following fields. + * + * * `Type` designates the type of object that this SLO is related to. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-keyattributes) + */ + override fun keyAttributes(): Any? = unwrap(this).getKeyAttributes() + + /** + * If the SLO monitors either the `LATENCY` or `AVAILABILITY` metric that Application Signals + * collects, this field displays which of those metrics is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-metrictype) + */ + override fun metricType(): String? = unwrap(this).getMetricType() + + /** + * Use this structure to define the metric that you want to use as the "good request" or "bad + * request" value for a request-based SLO. + * + * This value observed for the metric defined in `TotalRequestCountMetric` will be divided by + * the number found for `MonitoredRequestCountMetric` to determine the percentage of successful + * requests that this SLO tracks. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-monitoredrequestcountmetric) + */ + override fun monitoredRequestCountMetric(): Any? = + unwrap(this).getMonitoredRequestCountMetric() + + /** + * If the SLO monitors a specific operation of the service, this field displays that operation + * name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-operationname) + */ + override fun operationName(): String? = unwrap(this).getOperationName() + + /** + * This structure defines the metric that is used as the "total requests" number for a + * request-based SLO. + * + * The number observed for this metric is divided by the number of "good requests" or "bad + * requests" that is observed for the metric defined in `MonitoredRequestCountMetric` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-totalrequestcountmetric) + */ + override fun totalRequestCountMetric(): Any? = unwrap(this).getTotalRequestCountMetric() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RequestBasedSliMetricProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty): + RequestBasedSliMetricProperty = CdkObjectWrappers.wrap(cdkObject) as? + RequestBasedSliMetricProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RequestBasedSliMetricProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty + } + } + + /** + * This structure contains information about the performance metric that a request-based SLO + * monitors. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * RequestBasedSliProperty requestBasedSliProperty = RequestBasedSliProperty.builder() + * .requestBasedSliMetric(RequestBasedSliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricType("metricType") + * .monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder() + * .badCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .goodCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * .operationName("operationName") + * .totalRequestCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * // the properties below are optional + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html) + */ + public interface RequestBasedSliProperty { + /** + * The arithmetic operation used when comparing the specified metric to the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-comparisonoperator) + */ + public fun comparisonOperator(): String? = unwrap(this).getComparisonOperator() + + /** + * This value is the threshold that the observed metric values of the SLI metric are compared + * to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-metricthreshold) + */ + public fun metricThreshold(): Number? = unwrap(this).getMetricThreshold() + + /** + * A structure that contains information about the metric that the SLO monitors. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-requestbasedslimetric) + */ + public fun requestBasedSliMetric(): Any + + /** + * A builder for [RequestBasedSliProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param comparisonOperator The arithmetic operation used when comparing the specified metric + * to the threshold. + */ + public fun comparisonOperator(comparisonOperator: String) + + /** + * @param metricThreshold This value is the threshold that the observed metric values of the + * SLI metric are compared to. + */ + public fun metricThreshold(metricThreshold: Number) + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + public fun requestBasedSliMetric(requestBasedSliMetric: IResolvable) + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + public fun requestBasedSliMetric(requestBasedSliMetric: RequestBasedSliMetricProperty) + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ca176a0d6d3856c643a2cf3e079e7b6db95d2ee1b612ce959f2a61a47a8ab5fc") + public + fun requestBasedSliMetric(requestBasedSliMetric: RequestBasedSliMetricProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty.builder() + + /** + * @param comparisonOperator The arithmetic operation used when comparing the specified metric + * to the threshold. + */ + override fun comparisonOperator(comparisonOperator: String) { + cdkBuilder.comparisonOperator(comparisonOperator) + } + + /** + * @param metricThreshold This value is the threshold that the observed metric values of the + * SLI metric are compared to. + */ + override fun metricThreshold(metricThreshold: Number) { + cdkBuilder.metricThreshold(metricThreshold) + } + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + override fun requestBasedSliMetric(requestBasedSliMetric: IResolvable) { + cdkBuilder.requestBasedSliMetric(requestBasedSliMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + override fun requestBasedSliMetric(requestBasedSliMetric: RequestBasedSliMetricProperty) { + cdkBuilder.requestBasedSliMetric(requestBasedSliMetric.let(RequestBasedSliMetricProperty.Companion::unwrap)) + } + + /** + * @param requestBasedSliMetric A structure that contains information about the metric that + * the SLO monitors. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ca176a0d6d3856c643a2cf3e079e7b6db95d2ee1b612ce959f2a61a47a8ab5fc") + override + fun requestBasedSliMetric(requestBasedSliMetric: RequestBasedSliMetricProperty.Builder.() -> Unit): + Unit = requestBasedSliMetric(RequestBasedSliMetricProperty(requestBasedSliMetric)) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty, + ) : CdkObject(cdkObject), + RequestBasedSliProperty { + /** + * The arithmetic operation used when comparing the specified metric to the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-comparisonoperator) + */ + override fun comparisonOperator(): String? = unwrap(this).getComparisonOperator() + + /** + * This value is the threshold that the observed metric values of the SLI metric are compared + * to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-metricthreshold) + */ + override fun metricThreshold(): Number? = unwrap(this).getMetricThreshold() + + /** + * A structure that contains information about the metric that the SLO monitors. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli-requestbasedslimetric) + */ + override fun requestBasedSliMetric(): Any = unwrap(this).getRequestBasedSliMetric() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RequestBasedSliProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty): + RequestBasedSliProperty = CdkObjectWrappers.wrap(cdkObject) as? RequestBasedSliProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RequestBasedSliProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty + } + } + + /** + * If the interval for this SLO is a rolling interval, this structure contains the interval + * specifications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * RollingIntervalProperty rollingIntervalProperty = RollingIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html) + */ + public interface RollingIntervalProperty { + /** + * Specifies the duration of each rolling interval. + * + * For example, if `Duration` is `7` and `DurationUnit` is `DAY` , each rolling interval is + * seven days. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html#cfn-applicationsignals-servicelevelobjective-rollinginterval-duration) + */ + public fun duration(): Number + + /** + * Specifies the rolling interval unit. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html#cfn-applicationsignals-servicelevelobjective-rollinginterval-durationunit) + */ + public fun durationUnit(): String + + /** + * A builder for [RollingIntervalProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param duration Specifies the duration of each rolling interval. + * For example, if `Duration` is `7` and `DurationUnit` is `DAY` , each rolling interval is + * seven days. + */ + public fun duration(duration: Number) + + /** + * @param durationUnit Specifies the rolling interval unit. + */ + public fun durationUnit(durationUnit: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty.builder() + + /** + * @param duration Specifies the duration of each rolling interval. + * For example, if `Duration` is `7` and `DurationUnit` is `DAY` , each rolling interval is + * seven days. + */ + override fun duration(duration: Number) { + cdkBuilder.duration(duration) + } + + /** + * @param durationUnit Specifies the rolling interval unit. + */ + override fun durationUnit(durationUnit: String) { + cdkBuilder.durationUnit(durationUnit) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty, + ) : CdkObject(cdkObject), + RollingIntervalProperty { + /** + * Specifies the duration of each rolling interval. + * + * For example, if `Duration` is `7` and `DurationUnit` is `DAY` , each rolling interval is + * seven days. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html#cfn-applicationsignals-servicelevelobjective-rollinginterval-duration) + */ + override fun duration(): Number = unwrap(this).getDuration() + + /** + * Specifies the rolling interval unit. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html#cfn-applicationsignals-servicelevelobjective-rollinginterval-durationunit) + */ + override fun durationUnit(): String = unwrap(this).getDurationUnit() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RollingIntervalProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty): + RollingIntervalProperty = CdkObjectWrappers.wrap(cdkObject) as? RollingIntervalProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RollingIntervalProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty + } + } + + /** + * Use this structure to specify the metric to be used for the SLO. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * SliMetricProperty sliMetricProperty = SliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricDataQueries(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .metricType("metricType") + * .operationName("operationName") + * .periodSeconds(123) + * .statistic("statistic") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html) + */ + public interface SliMetricProperty { + /** + * If this SLO is related to a metric collected by Application Signals, you must use this field + * to specify which service the SLO metric is related to. + * + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` field + * is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes) + */ + public fun keyAttributes(): Any? = unwrap(this).getKeyAttributes() + + /** + * If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math + * expression, use this structure to specify that metric or expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries) + */ + public fun metricDataQueries(): Any? = unwrap(this).getMetricDataQueries() + + /** + * If the SLO is to monitor either the `LATENCY` or `AVAILABILITY` metric that Application + * Signals collects, use this field to specify which of those metrics is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metrictype) + */ + public fun metricType(): String? = unwrap(this).getMetricType() + + /** + * If the SLO is to monitor a specific operation of the service, use this field to specify the + * name of that operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-operationname) + */ + public fun operationName(): String? = unwrap(this).getOperationName() + + /** + * The number of seconds to use as the period for SLO evaluation. + * + * Your application's performance is compared to the SLI during each period. For each period, + * the application is determined to have either achieved or not achieved the necessary performance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds) + */ + public fun periodSeconds(): Number? = unwrap(this).getPeriodSeconds() + + /** + * The statistic to use for comparison to the threshold. + * + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-statistic) + */ + public fun statistic(): String? = unwrap(this).getStatistic() + + /** + * A builder for [SliMetricProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param keyAttributes If this SLO is related to a metric collected by Application Signals, + * you must use this field to specify which service the SLO metric is related to. + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + public fun keyAttributes(keyAttributes: IResolvable) + + /** + * @param keyAttributes If this SLO is related to a metric collected by Application Signals, + * you must use this field to specify which service the SLO metric is related to. + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + public fun keyAttributes(keyAttributes: Map) + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + public fun metricDataQueries(metricDataQueries: IResolvable) + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + public fun metricDataQueries(metricDataQueries: List) + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + public fun metricDataQueries(vararg metricDataQueries: Any) + + /** + * @param metricType If the SLO is to monitor either the `LATENCY` or `AVAILABILITY` metric + * that Application Signals collects, use this field to specify which of those metrics is used. + */ + public fun metricType(metricType: String) + + /** + * @param operationName If the SLO is to monitor a specific operation of the service, use this + * field to specify the name of that operation. + */ + public fun operationName(operationName: String) + + /** + * @param periodSeconds The number of seconds to use as the period for SLO evaluation. + * Your application's performance is compared to the SLI during each period. For each period, + * the application is determined to have either achieved or not achieved the necessary + * performance. + */ + public fun periodSeconds(periodSeconds: Number) + + /** + * @param statistic The statistic to use for comparison to the threshold. + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + */ + public fun statistic(statistic: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty.builder() + + /** + * @param keyAttributes If this SLO is related to a metric collected by Application Signals, + * you must use this field to specify which service the SLO metric is related to. + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + override fun keyAttributes(keyAttributes: IResolvable) { + cdkBuilder.keyAttributes(keyAttributes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param keyAttributes If this SLO is related to a metric collected by Application Signals, + * you must use this field to specify which service the SLO metric is related to. + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + */ + override fun keyAttributes(keyAttributes: Map) { + cdkBuilder.keyAttributes(keyAttributes) + } + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + override fun metricDataQueries(metricDataQueries: IResolvable) { + cdkBuilder.metricDataQueries(metricDataQueries.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + override fun metricDataQueries(metricDataQueries: List) { + cdkBuilder.metricDataQueries(metricDataQueries.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param metricDataQueries If this SLO monitors a CloudWatch metric or the result of a + * CloudWatch metric math expression, use this structure to specify that metric or expression. + */ + override fun metricDataQueries(vararg metricDataQueries: Any): Unit = + metricDataQueries(metricDataQueries.toList()) + + /** + * @param metricType If the SLO is to monitor either the `LATENCY` or `AVAILABILITY` metric + * that Application Signals collects, use this field to specify which of those metrics is used. + */ + override fun metricType(metricType: String) { + cdkBuilder.metricType(metricType) + } + + /** + * @param operationName If the SLO is to monitor a specific operation of the service, use this + * field to specify the name of that operation. + */ + override fun operationName(operationName: String) { + cdkBuilder.operationName(operationName) + } + + /** + * @param periodSeconds The number of seconds to use as the period for SLO evaluation. + * Your application's performance is compared to the SLI during each period. For each period, + * the application is determined to have either achieved or not achieved the necessary + * performance. + */ + override fun periodSeconds(periodSeconds: Number) { + cdkBuilder.periodSeconds(periodSeconds) + } + + /** + * @param statistic The statistic to use for comparison to the threshold. + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + */ + override fun statistic(statistic: String) { + cdkBuilder.statistic(statistic) + } + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty, + ) : CdkObject(cdkObject), + SliMetricProperty { + /** + * If this SLO is related to a metric collected by Application Signals, you must use this + * field to specify which service the SLO metric is related to. + * + * To do so, you must specify at least the `Type` , `Name` , and `Environment` attributes. + * + * This is a string-to-string map. It can include the following fields. + * + * * `Type` designates the type of object this is. + * * `ResourceType` specifies the type of the resource. This field is used only when the value + * of the `Type` field is `Resource` or `AWS::Resource` . + * * `Name` specifies the name of the object. This is used only if the value of the `Type` + * field is `Service` , `RemoteService` , or `AWS::Service` . + * * `Identifier` identifies the resource objects of this resource. This is used only if the + * value of the `Type` field is `Resource` or `AWS::Resource` . + * * `Environment` specifies the location where this object is hosted, or what it belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes) + */ + override fun keyAttributes(): Any? = unwrap(this).getKeyAttributes() + + /** + * If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math + * expression, use this structure to specify that metric or expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries) + */ + override fun metricDataQueries(): Any? = unwrap(this).getMetricDataQueries() + + /** + * If the SLO is to monitor either the `LATENCY` or `AVAILABILITY` metric that Application + * Signals collects, use this field to specify which of those metrics is used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-metrictype) + */ + override fun metricType(): String? = unwrap(this).getMetricType() + + /** + * If the SLO is to monitor a specific operation of the service, use this field to specify the + * name of that operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-operationname) + */ + override fun operationName(): String? = unwrap(this).getOperationName() + + /** + * The number of seconds to use as the period for SLO evaluation. + * + * Your application's performance is compared to the SLI during each period. For each period, + * the application is determined to have either achieved or not achieved the necessary + * performance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds) + */ + override fun periodSeconds(): Number? = unwrap(this).getPeriodSeconds() + + /** + * The statistic to use for comparison to the threshold. + * + * It can be any CloudWatch statistic or extended statistic. For more information about + * statistics, see [CloudWatch statistics + * definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html#cfn-applicationsignals-servicelevelobjective-slimetric-statistic) + */ + override fun statistic(): String? = unwrap(this).getStatistic() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SliMetricProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty): + SliMetricProperty = CdkObjectWrappers.wrap(cdkObject) as? SliMetricProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SliMetricProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliMetricProperty + } + } + + /** + * This structure specifies the information about the service and the performance metric that an + * SLO is to monitor. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * SliProperty sliProperty = SliProperty.builder() + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .sliMetric(SliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricDataQueries(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .metricType("metricType") + * .operationName("operationName") + * .periodSeconds(123) + * .statistic("statistic") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html) + */ + public interface SliProperty { + /** + * The arithmetic operation to use when comparing the specified metric to the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-comparisonoperator) + */ + public fun comparisonOperator(): String + + /** + * The value that the SLI metric is compared to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-metricthreshold) + */ + public fun metricThreshold(): Number + + /** + * Use this structure to specify the metric to be used for the SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-slimetric) + */ + public fun sliMetric(): Any + + /** + * A builder for [SliProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param comparisonOperator The arithmetic operation to use when comparing the specified + * metric to the threshold. + */ + public fun comparisonOperator(comparisonOperator: String) + + /** + * @param metricThreshold The value that the SLI metric is compared to. + */ + public fun metricThreshold(metricThreshold: Number) + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + public fun sliMetric(sliMetric: IResolvable) + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + public fun sliMetric(sliMetric: SliMetricProperty) + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7169265480dcba48db20567a7d8a7727f7c8ba171b801acab3161141de11df84") + public fun sliMetric(sliMetric: SliMetricProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty.Builder + = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty.builder() + + /** + * @param comparisonOperator The arithmetic operation to use when comparing the specified + * metric to the threshold. + */ + override fun comparisonOperator(comparisonOperator: String) { + cdkBuilder.comparisonOperator(comparisonOperator) + } + + /** + * @param metricThreshold The value that the SLI metric is compared to. + */ + override fun metricThreshold(metricThreshold: Number) { + cdkBuilder.metricThreshold(metricThreshold) + } + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + override fun sliMetric(sliMetric: IResolvable) { + cdkBuilder.sliMetric(sliMetric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + override fun sliMetric(sliMetric: SliMetricProperty) { + cdkBuilder.sliMetric(sliMetric.let(SliMetricProperty.Companion::unwrap)) + } + + /** + * @param sliMetric Use this structure to specify the metric to be used for the SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7169265480dcba48db20567a7d8a7727f7c8ba171b801acab3161141de11df84") + override fun sliMetric(sliMetric: SliMetricProperty.Builder.() -> Unit): Unit = + sliMetric(SliMetricProperty(sliMetric)) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty, + ) : CdkObject(cdkObject), + SliProperty { + /** + * The arithmetic operation to use when comparing the specified metric to the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-comparisonoperator) + */ + override fun comparisonOperator(): String = unwrap(this).getComparisonOperator() + + /** + * The value that the SLI metric is compared to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-metricthreshold) + */ + override fun metricThreshold(): Number = unwrap(this).getMetricThreshold() + + /** + * Use this structure to specify the metric to be used for the SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html#cfn-applicationsignals-servicelevelobjective-sli-slimetric) + */ + override fun sliMetric(): Any = unwrap(this).getSliMetric() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SliProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty): + SliProperty = CdkObjectWrappers.wrap(cdkObject) as? SliProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SliProperty): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjectiveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjectiveProps.kt new file mode 100644 index 0000000000..62aaea9e55 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/applicationsignals/CfnServiceLevelObjectiveProps.kt @@ -0,0 +1,519 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.applicationsignals + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnServiceLevelObjective`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.applicationsignals.*; + * CfnServiceLevelObjectiveProps cfnServiceLevelObjectiveProps = + * CfnServiceLevelObjectiveProps.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .goal(GoalProperty.builder() + * .attainmentGoal(123) + * .interval(IntervalProperty.builder() + * .calendarInterval(CalendarIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .startTime(123) + * .build()) + * .rollingInterval(RollingIntervalProperty.builder() + * .duration(123) + * .durationUnit("durationUnit") + * .build()) + * .build()) + * .warningThreshold(123) + * .build()) + * .requestBasedSli(RequestBasedSliProperty.builder() + * .requestBasedSliMetric(RequestBasedSliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricType("metricType") + * .monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder() + * .badCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .goodCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * .operationName("operationName") + * .totalRequestCountMetric(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .build()) + * // the properties below are optional + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .build()) + * .sli(SliProperty.builder() + * .comparisonOperator("comparisonOperator") + * .metricThreshold(123) + * .sliMetric(SliMetricProperty.builder() + * .keyAttributes(Map.of( + * "keyAttributesKey", "keyAttributes")) + * .metricDataQueries(List.of(MetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .accountId("accountId") + * .expression("expression") + * .metricStat(MetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .dimensions(List.of(DimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .namespace("namespace") + * .build()) + * .period(123) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .metricType("metricType") + * .operationName("operationName") + * .periodSeconds(123) + * .statistic("statistic") + * .build()) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html) + */ +public interface CfnServiceLevelObjectiveProps { + /** + * An optional description for this SLO. + * + * Default: - "No description" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + */ + public fun goal(): Any? = unwrap(this).getGoal() + + /** + * A name for this SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-name) + */ + public fun name(): String + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + */ + public fun requestBasedSli(): Any? = unwrap(this).getRequestBasedSli() + + /** + * A structure containing information about the performance metric that this SLO monitors, if this + * is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + */ + public fun sli(): Any? = unwrap(this).getSli() + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnServiceLevelObjectiveProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description An optional description for this SLO. + */ + public fun description(description: String) + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + public fun goal(goal: IResolvable) + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + public fun goal(goal: CfnServiceLevelObjective.GoalProperty) + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a7d8e6fa676dacee31e34791ede9d863ce887b233f1872a37a794531b35a76af") + public fun goal(goal: CfnServiceLevelObjective.GoalProperty.Builder.() -> Unit) + + /** + * @param name A name for this SLO. + */ + public fun name(name: String) + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + public fun requestBasedSli(requestBasedSli: IResolvable) + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + public fun requestBasedSli(requestBasedSli: CfnServiceLevelObjective.RequestBasedSliProperty) + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("000f980b425d0b6891f6ef36960a0636e60afbc6da06a21ad970ba2fd73b78f9") + public + fun requestBasedSli(requestBasedSli: CfnServiceLevelObjective.RequestBasedSliProperty.Builder.() -> Unit) + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + public fun sli(sli: IResolvable) + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + public fun sli(sli: CfnServiceLevelObjective.SliProperty) + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c8470aec0aed83ad84a657d500f29ecab171b088c041f1b60ad5288eb501cab8") + public fun sli(sli: CfnServiceLevelObjective.SliProperty.Builder.() -> Unit) + + /** + * @param tags A list of key-value pairs to associate with the SLO. + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + */ + public fun tags(tags: List) + + /** + * @param tags A list of key-value pairs to associate with the SLO. + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps.Builder = + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps.builder() + + /** + * @param description An optional description for this SLO. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + override fun goal(goal: IResolvable) { + cdkBuilder.goal(goal.let(IResolvable.Companion::unwrap)) + } + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + override fun goal(goal: CfnServiceLevelObjective.GoalProperty) { + cdkBuilder.goal(goal.let(CfnServiceLevelObjective.GoalProperty.Companion::unwrap)) + } + + /** + * @param goal This structure contains the attributes that determine the goal of an SLO. + * This includes the time period for evaluation and the attainment threshold. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a7d8e6fa676dacee31e34791ede9d863ce887b233f1872a37a794531b35a76af") + override fun goal(goal: CfnServiceLevelObjective.GoalProperty.Builder.() -> Unit): Unit = + goal(CfnServiceLevelObjective.GoalProperty(goal)) + + /** + * @param name A name for this SLO. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + override fun requestBasedSli(requestBasedSli: IResolvable) { + cdkBuilder.requestBasedSli(requestBasedSli.let(IResolvable.Companion::unwrap)) + } + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + override + fun requestBasedSli(requestBasedSli: CfnServiceLevelObjective.RequestBasedSliProperty) { + cdkBuilder.requestBasedSli(requestBasedSli.let(CfnServiceLevelObjective.RequestBasedSliProperty.Companion::unwrap)) + } + + /** + * @param requestBasedSli A structure containing information about the performance metric that + * this SLO monitors, if this is a request-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("000f980b425d0b6891f6ef36960a0636e60afbc6da06a21ad970ba2fd73b78f9") + override + fun requestBasedSli(requestBasedSli: CfnServiceLevelObjective.RequestBasedSliProperty.Builder.() -> Unit): + Unit = requestBasedSli(CfnServiceLevelObjective.RequestBasedSliProperty(requestBasedSli)) + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + override fun sli(sli: IResolvable) { + cdkBuilder.sli(sli.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + override fun sli(sli: CfnServiceLevelObjective.SliProperty) { + cdkBuilder.sli(sli.let(CfnServiceLevelObjective.SliProperty.Companion::unwrap)) + } + + /** + * @param sli A structure containing information about the performance metric that this SLO + * monitors, if this is a period-based SLO. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c8470aec0aed83ad84a657d500f29ecab171b088c041f1b60ad5288eb501cab8") + override fun sli(sli: CfnServiceLevelObjective.SliProperty.Builder.() -> Unit): Unit = + sli(CfnServiceLevelObjective.SliProperty(sli)) + + /** + * @param tags A list of key-value pairs to associate with the SLO. + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A list of key-value pairs to associate with the SLO. + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps, + ) : CdkObject(cdkObject), + CfnServiceLevelObjectiveProps { + /** + * An optional description for this SLO. + * + * Default: - "No description" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * This structure contains the attributes that determine the goal of an SLO. + * + * This includes the time period for evaluation and the attainment threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-goal) + */ + override fun goal(): Any? = unwrap(this).getGoal() + + /** + * A name for this SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a request-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-requestbasedsli) + */ + override fun requestBasedSli(): Any? = unwrap(this).getRequestBasedSli() + + /** + * A structure containing information about the performance metric that this SLO monitors, if + * this is a period-based SLO. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-sli) + */ + override fun sli(): Any? = unwrap(this).getSli() + + /** + * A list of key-value pairs to associate with the SLO. + * + * You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO + * when you create the SLO, you must have the cloudwatch:TagResource permission. + * + * Tags can help you organize and categorize your resources. You can also use them to scope user + * permissions by granting a user permission to access or change only resources with certain tag + * values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html#cfn-applicationsignals-servicelevelobjective-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnServiceLevelObjectiveProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps): + CfnServiceLevelObjectiveProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnServiceLevelObjectiveProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnServiceLevelObjectiveProps): + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjectiveProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/AccessLogConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/AccessLogConfig.kt index 27e13b6792..ecce5e8788 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/AccessLogConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/AccessLogConfig.kt @@ -140,7 +140,8 @@ public interface AccessLogConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.AccessLogConfig, - ) : CdkObject(cdkObject), AccessLogConfig { + ) : CdkObject(cdkObject), + AccessLogConfig { /** * VirtualGateway CFN configuration for Access Logging. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendConfig.kt index 559d198d62..f356aed153 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendConfig.kt @@ -112,7 +112,8 @@ public interface BackendConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.BackendConfig, - ) : CdkObject(cdkObject), BackendConfig { + ) : CdkObject(cdkObject), + BackendConfig { /** * Config for a Virtual Service backend. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendDefaults.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendDefaults.kt index d04a91e3a8..c0b29d7806 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendDefaults.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/BackendDefaults.kt @@ -95,7 +95,8 @@ public interface BackendDefaults { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.BackendDefaults, - ) : CdkObject(cdkObject), BackendDefaults { + ) : CdkObject(cdkObject), + BackendDefaults { /** * TLS properties for Client policy for backend defaults. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRoute.kt index f43049c532..d4860649ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRoute.kt @@ -215,7 +215,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGatewayRoute( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -698,7 +700,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteHostnameMatchProperty, - ) : CdkObject(cdkObject), GatewayRouteHostnameMatchProperty { + ) : CdkObject(cdkObject), + GatewayRouteHostnameMatchProperty { /** * The exact host name to match on. * @@ -789,7 +792,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteHostnameRewriteProperty, - ) : CdkObject(cdkObject), GatewayRouteHostnameRewriteProperty { + ) : CdkObject(cdkObject), + GatewayRouteHostnameRewriteProperty { /** * The default target host name to write to. * @@ -983,7 +987,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteMetadataMatchProperty, - ) : CdkObject(cdkObject), GatewayRouteMetadataMatchProperty { + ) : CdkObject(cdkObject), + GatewayRouteMetadataMatchProperty { /** * The exact method header to be matched on. * @@ -1118,7 +1123,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteRangeMatchProperty, - ) : CdkObject(cdkObject), GatewayRouteRangeMatchProperty { + ) : CdkObject(cdkObject), + GatewayRouteRangeMatchProperty { /** * The end of the range. * @@ -1504,7 +1510,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteSpecProperty, - ) : CdkObject(cdkObject), GatewayRouteSpecProperty { + ) : CdkObject(cdkObject), + GatewayRouteSpecProperty { /** * An object that represents the specification of a gRPC gateway route. * @@ -1659,7 +1666,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteTargetProperty, - ) : CdkObject(cdkObject), GatewayRouteTargetProperty { + ) : CdkObject(cdkObject), + GatewayRouteTargetProperty { /** * The port number of the gateway route target. * @@ -1749,7 +1757,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteVirtualServiceProperty, - ) : CdkObject(cdkObject), GatewayRouteVirtualServiceProperty { + ) : CdkObject(cdkObject), + GatewayRouteVirtualServiceProperty { /** * The name of the virtual service that traffic is routed to. * @@ -1925,7 +1934,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty, - ) : CdkObject(cdkObject), GrpcGatewayRouteActionProperty { + ) : CdkObject(cdkObject), + GrpcGatewayRouteActionProperty { /** * The gateway route action to rewrite. * @@ -2144,7 +2154,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty, - ) : CdkObject(cdkObject), GrpcGatewayRouteMatchProperty { + ) : CdkObject(cdkObject), + GrpcGatewayRouteMatchProperty { /** * The gateway route host name to be matched on. * @@ -2343,7 +2354,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteMetadataProperty, - ) : CdkObject(cdkObject), GrpcGatewayRouteMetadataProperty { + ) : CdkObject(cdkObject), + GrpcGatewayRouteMetadataProperty { /** * Specify `True` to match anything except the match criteria. * @@ -2550,7 +2562,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty, - ) : CdkObject(cdkObject), GrpcGatewayRouteProperty { + ) : CdkObject(cdkObject), + GrpcGatewayRouteProperty { /** * An object that represents the action to take if a match is determined. * @@ -2669,7 +2682,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteRewriteProperty, - ) : CdkObject(cdkObject), GrpcGatewayRouteRewriteProperty { + ) : CdkObject(cdkObject), + GrpcGatewayRouteRewriteProperty { /** * The host name of the gateway route to rewrite. * @@ -2851,7 +2865,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteActionProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteActionProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteActionProperty { /** * The gateway route action to rewrite. * @@ -3055,7 +3070,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteHeaderMatchProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteHeaderMatchProperty { /** * The value sent by the client must match the specified value exactly. * @@ -3277,7 +3293,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteHeaderProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteHeaderProperty { /** * Specify `True` to match anything except the match criteria. * @@ -3637,7 +3654,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteMatchProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteMatchProperty { /** * The client request headers to match on. * @@ -3767,7 +3785,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty, - ) : CdkObject(cdkObject), HttpGatewayRoutePathRewriteProperty { + ) : CdkObject(cdkObject), + HttpGatewayRoutePathRewriteProperty { /** * The exact path to rewrite. * @@ -3873,7 +3892,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty, - ) : CdkObject(cdkObject), HttpGatewayRoutePrefixRewriteProperty { + ) : CdkObject(cdkObject), + HttpGatewayRoutePrefixRewriteProperty { /** * The default prefix used to replace the incoming route prefix when rewritten. * @@ -4091,7 +4111,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteProperty { /** * An object that represents the action to take if a match is determined. * @@ -4309,7 +4330,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpGatewayRouteRewriteProperty, - ) : CdkObject(cdkObject), HttpGatewayRouteRewriteProperty { + ) : CdkObject(cdkObject), + HttpGatewayRouteRewriteProperty { /** * The host name to rewrite. * @@ -4424,7 +4446,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpPathMatchProperty, - ) : CdkObject(cdkObject), HttpPathMatchProperty { + ) : CdkObject(cdkObject), + HttpPathMatchProperty { /** * The exact path to match on. * @@ -4514,7 +4537,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.HttpQueryParameterMatchProperty, - ) : CdkObject(cdkObject), HttpQueryParameterMatchProperty { + ) : CdkObject(cdkObject), + HttpQueryParameterMatchProperty { /** * The exact query parameter to match on. * @@ -4645,7 +4669,8 @@ public open class CfnGatewayRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRoute.QueryParameterProperty, - ) : CdkObject(cdkObject), QueryParameterProperty { + ) : CdkObject(cdkObject), + QueryParameterProperty { /** * The query parameter to match on. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRouteProps.kt index 0736045fa9..bac3227312 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnGatewayRouteProps.kt @@ -397,7 +397,8 @@ public interface CfnGatewayRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnGatewayRouteProps, - ) : CdkObject(cdkObject), CfnGatewayRouteProps { + ) : CdkObject(cdkObject), + CfnGatewayRouteProps { /** * The name of the gateway route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMesh.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMesh.kt index 06ae98a9c7..ff2cdd9b76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMesh.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMesh.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMesh( cdkObject: software.amazon.awscdk.services.appmesh.CfnMesh, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appmesh.CfnMesh(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -443,7 +445,8 @@ public open class CfnMesh( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnMesh.EgressFilterProperty, - ) : CdkObject(cdkObject), EgressFilterProperty { + ) : CdkObject(cdkObject), + EgressFilterProperty { /** * The egress filter type. * @@ -536,7 +539,8 @@ public open class CfnMesh( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnMesh.MeshServiceDiscoveryProperty, - ) : CdkObject(cdkObject), MeshServiceDiscoveryProperty { + ) : CdkObject(cdkObject), + MeshServiceDiscoveryProperty { /** * The IP version to use to control traffic within the mesh. * @@ -701,7 +705,8 @@ public open class CfnMesh( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnMesh.MeshSpecProperty, - ) : CdkObject(cdkObject), MeshSpecProperty { + ) : CdkObject(cdkObject), + MeshSpecProperty { /** * The egress filter rules for the service mesh. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMeshProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMeshProps.kt index f05285f037..9e37bc8f9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMeshProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnMeshProps.kt @@ -172,7 +172,8 @@ public interface CfnMeshProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnMeshProps, - ) : CdkObject(cdkObject), CfnMeshProps { + ) : CdkObject(cdkObject), + CfnMeshProps { /** * The name to use for the service mesh. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRoute.kt index ff61a04fdb..1d12c77a1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRoute.kt @@ -255,7 +255,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoute( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -742,7 +744,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.DurationProperty, - ) : CdkObject(cdkObject), DurationProperty { + ) : CdkObject(cdkObject), + DurationProperty { /** * A unit of time. * @@ -1016,7 +1019,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRetryPolicyProperty, - ) : CdkObject(cdkObject), GrpcRetryPolicyProperty { + ) : CdkObject(cdkObject), + GrpcRetryPolicyProperty { /** * Specify at least one of the valid values. * @@ -1170,7 +1174,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteActionProperty, - ) : CdkObject(cdkObject), GrpcRouteActionProperty { + ) : CdkObject(cdkObject), + GrpcRouteActionProperty { /** * An object that represents the targets that traffic is routed to when a request matches the * route. @@ -1353,7 +1358,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteMatchProperty, - ) : CdkObject(cdkObject), GrpcRouteMatchProperty { + ) : CdkObject(cdkObject), + GrpcRouteMatchProperty { /** * An object that represents the data to match from the request. * @@ -1571,7 +1577,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteMetadataMatchMethodProperty, - ) : CdkObject(cdkObject), GrpcRouteMetadataMatchMethodProperty { + ) : CdkObject(cdkObject), + GrpcRouteMetadataMatchMethodProperty { /** * The value sent by the client must match the specified value exactly. * @@ -1775,7 +1782,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteMetadataProperty, - ) : CdkObject(cdkObject), GrpcRouteMetadataProperty { + ) : CdkObject(cdkObject), + GrpcRouteMetadataProperty { /** * Specify `True` to match anything except the match criteria. * @@ -2085,7 +2093,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcRouteProperty, - ) : CdkObject(cdkObject), GrpcRouteProperty { + ) : CdkObject(cdkObject), + GrpcRouteProperty { /** * An object that represents the action to take if a match is determined. * @@ -2309,7 +2318,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.GrpcTimeoutProperty, - ) : CdkObject(cdkObject), GrpcTimeoutProperty { + ) : CdkObject(cdkObject), + GrpcTimeoutProperty { /** * An object that represents an idle timeout. * @@ -2517,7 +2527,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HeaderMatchMethodProperty, - ) : CdkObject(cdkObject), HeaderMatchMethodProperty { + ) : CdkObject(cdkObject), + HeaderMatchMethodProperty { /** * The value sent by the client must match the specified value exactly. * @@ -2645,7 +2656,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpPathMatchProperty, - ) : CdkObject(cdkObject), HttpPathMatchProperty { + ) : CdkObject(cdkObject), + HttpPathMatchProperty { /** * The exact path to match on. * @@ -2734,7 +2746,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpQueryParameterMatchProperty, - ) : CdkObject(cdkObject), HttpQueryParameterMatchProperty { + ) : CdkObject(cdkObject), + HttpQueryParameterMatchProperty { /** * The exact query parameter to match on. * @@ -2971,7 +2984,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpRetryPolicyProperty, - ) : CdkObject(cdkObject), HttpRetryPolicyProperty { + ) : CdkObject(cdkObject), + HttpRetryPolicyProperty { /** * Specify at least one of the following values. * @@ -3117,7 +3131,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteActionProperty, - ) : CdkObject(cdkObject), HttpRouteActionProperty { + ) : CdkObject(cdkObject), + HttpRouteActionProperty { /** * An object that represents the targets that traffic is routed to when a request matches the * route. @@ -3293,7 +3308,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteHeaderProperty, - ) : CdkObject(cdkObject), HttpRouteHeaderProperty { + ) : CdkObject(cdkObject), + HttpRouteHeaderProperty { /** * Specify `True` to match anything except the match criteria. * @@ -3626,7 +3642,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteMatchProperty, - ) : CdkObject(cdkObject), HttpRouteMatchProperty { + ) : CdkObject(cdkObject), + HttpRouteMatchProperty { /** * The client request headers to match on. * @@ -3982,7 +3999,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteProperty, - ) : CdkObject(cdkObject), HttpRouteProperty { + ) : CdkObject(cdkObject), + HttpRouteProperty { /** * An object that represents the action to take if a match is determined. * @@ -4206,7 +4224,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.HttpTimeoutProperty, - ) : CdkObject(cdkObject), HttpTimeoutProperty { + ) : CdkObject(cdkObject), + HttpTimeoutProperty { /** * An object that represents an idle timeout. * @@ -4324,7 +4343,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.MatchRangeProperty, - ) : CdkObject(cdkObject), MatchRangeProperty { + ) : CdkObject(cdkObject), + MatchRangeProperty { /** * The end of the range. * @@ -4461,7 +4481,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.QueryParameterProperty, - ) : CdkObject(cdkObject), QueryParameterProperty { + ) : CdkObject(cdkObject), + QueryParameterProperty { /** * The query parameter to match on. * @@ -4936,7 +4957,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.RouteSpecProperty, - ) : CdkObject(cdkObject), RouteSpecProperty { + ) : CdkObject(cdkObject), + RouteSpecProperty { /** * An object that represents the specification of a gRPC route. * @@ -5080,7 +5102,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.TcpRouteActionProperty, - ) : CdkObject(cdkObject), TcpRouteActionProperty { + ) : CdkObject(cdkObject), + TcpRouteActionProperty { /** * An object that represents the targets that traffic is routed to when a request matches the * route. @@ -5161,7 +5184,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.TcpRouteMatchProperty, - ) : CdkObject(cdkObject), TcpRouteMatchProperty { + ) : CdkObject(cdkObject), + TcpRouteMatchProperty { /** * The port number to match on. * @@ -5377,7 +5401,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.TcpRouteProperty, - ) : CdkObject(cdkObject), TcpRouteProperty { + ) : CdkObject(cdkObject), + TcpRouteProperty { /** * The action to take if a match is determined. * @@ -5515,7 +5540,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.TcpTimeoutProperty, - ) : CdkObject(cdkObject), TcpTimeoutProperty { + ) : CdkObject(cdkObject), + TcpTimeoutProperty { /** * An object that represents an idle timeout. * @@ -5644,7 +5670,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRoute.WeightedTargetProperty, - ) : CdkObject(cdkObject), WeightedTargetProperty { + ) : CdkObject(cdkObject), + WeightedTargetProperty { /** * The targeted port of the weighted object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRouteProps.kt index b7392b1485..4538dce972 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnRouteProps.kt @@ -446,7 +446,8 @@ public interface CfnRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnRouteProps, - ) : CdkObject(cdkObject), CfnRouteProps { + ) : CdkObject(cdkObject), + CfnRouteProps { /** * The name of the service mesh to create the route in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGateway.kt index e35dfed35a..4ba110f5dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGateway.kt @@ -173,7 +173,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualGateway( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -620,7 +622,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.JsonFormatRefProperty, - ) : CdkObject(cdkObject), JsonFormatRefProperty { + ) : CdkObject(cdkObject), + JsonFormatRefProperty { /** * The specified key for the JSON. * @@ -753,7 +756,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.LoggingFormatProperty, - ) : CdkObject(cdkObject), LoggingFormatProperty { + ) : CdkObject(cdkObject), + LoggingFormatProperty { /** * The logging format for JSON. * @@ -854,7 +858,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.SubjectAlternativeNameMatchersProperty, - ) : CdkObject(cdkObject), SubjectAlternativeNameMatchersProperty { + ) : CdkObject(cdkObject), + SubjectAlternativeNameMatchersProperty { /** * The values sent must match the specified values exactly. * @@ -967,7 +972,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.SubjectAlternativeNamesProperty, - ) : CdkObject(cdkObject), SubjectAlternativeNamesProperty { + ) : CdkObject(cdkObject), + SubjectAlternativeNamesProperty { /** * An object that represents the criteria for determining a SANs match. * @@ -1087,7 +1093,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayAccessLogProperty, - ) : CdkObject(cdkObject), VirtualGatewayAccessLogProperty { + ) : CdkObject(cdkObject), + VirtualGatewayAccessLogProperty { /** * The file object to send virtual gateway access logs to. * @@ -1232,7 +1239,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayBackendDefaultsProperty, - ) : CdkObject(cdkObject), VirtualGatewayBackendDefaultsProperty { + ) : CdkObject(cdkObject), + VirtualGatewayBackendDefaultsProperty { /** * A reference to an object that represents a client policy. * @@ -1381,7 +1389,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayClientPolicyProperty, - ) : CdkObject(cdkObject), VirtualGatewayClientPolicyProperty { + ) : CdkObject(cdkObject), + VirtualGatewayClientPolicyProperty { /** * A reference to an object that represents a Transport Layer Security (TLS) client policy. * @@ -1663,7 +1672,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayClientPolicyTlsProperty, - ) : CdkObject(cdkObject), VirtualGatewayClientPolicyTlsProperty { + ) : CdkObject(cdkObject), + VirtualGatewayClientPolicyTlsProperty { /** * A reference to an object that represents a virtual gateway's client's Transport Layer * Security (TLS) certificate. @@ -1882,7 +1892,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayClientTlsCertificateProperty, - ) : CdkObject(cdkObject), VirtualGatewayClientTlsCertificateProperty { + ) : CdkObject(cdkObject), + VirtualGatewayClientTlsCertificateProperty { /** * An object that represents a local file certificate. * @@ -2112,7 +2123,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualGatewayConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualGatewayConnectionPoolProperty { /** * An object that represents a type of connection pool. * @@ -2285,7 +2297,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty, - ) : CdkObject(cdkObject), VirtualGatewayFileAccessLogProperty { + ) : CdkObject(cdkObject), + VirtualGatewayFileAccessLogProperty { /** * The specified format for the virtual gateway access logs. * @@ -2386,7 +2399,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayGrpcConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualGatewayGrpcConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualGatewayGrpcConnectionPoolProperty { /** * Maximum number of inflight requests Envoy can concurrently support across hosts in upstream * cluster. @@ -2621,7 +2635,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty, - ) : CdkObject(cdkObject), VirtualGatewayHealthCheckPolicyProperty { + ) : CdkObject(cdkObject), + VirtualGatewayHealthCheckPolicyProperty { /** * The number of consecutive successful health checks that must occur before declaring the * listener healthy. @@ -2762,7 +2777,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayHttp2ConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualGatewayHttp2ConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualGatewayHttp2ConnectionPoolProperty { /** * Maximum number of inflight requests Envoy can concurrently support across hosts in upstream * cluster. @@ -2873,7 +2889,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayHttpConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualGatewayHttpConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualGatewayHttpConnectionPoolProperty { /** * Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts * in upstream cluster. @@ -3201,7 +3218,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerProperty { /** * The connection pool information for the listener. * @@ -3319,7 +3337,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsAcmCertificateProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsAcmCertificateProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsAcmCertificateProperty { /** * The Amazon Resource Name (ARN) for the certificate. * @@ -3544,7 +3563,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsCertificateProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsCertificateProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsCertificateProperty { /** * A reference to an object that represents an AWS Certificate Manager certificate. * @@ -3672,7 +3692,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsFileCertificateProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsFileCertificateProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsFileCertificateProperty { /** * The certificate chain for the certificate. * @@ -3906,7 +3927,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsProperty { /** * An object that represents a Transport Layer Security (TLS) certificate. * @@ -4018,7 +4040,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsSdsCertificateProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsSdsCertificateProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsSdsCertificateProperty { /** * A reference to an object that represents the name of the secret secret requested from the * Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a @@ -4211,7 +4234,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsValidationContextProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsValidationContextProperty { /** * A reference to an object that represents the SANs for a virtual gateway listener's * Transport Layer Security (TLS) validation context. @@ -4400,7 +4424,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextTrustProperty, - ) : CdkObject(cdkObject), VirtualGatewayListenerTlsValidationContextTrustProperty { + ) : CdkObject(cdkObject), + VirtualGatewayListenerTlsValidationContextTrustProperty { /** * An object that represents a Transport Layer Security (TLS) validation context trust for a * local file. @@ -4533,7 +4558,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayLoggingProperty, - ) : CdkObject(cdkObject), VirtualGatewayLoggingProperty { + ) : CdkObject(cdkObject), + VirtualGatewayLoggingProperty { /** * The access log configuration. * @@ -4640,7 +4666,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayPortMappingProperty, - ) : CdkObject(cdkObject), VirtualGatewayPortMappingProperty { + ) : CdkObject(cdkObject), + VirtualGatewayPortMappingProperty { /** * The port used for the port mapping. * @@ -4976,7 +5003,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewaySpecProperty, - ) : CdkObject(cdkObject), VirtualGatewaySpecProperty { + ) : CdkObject(cdkObject), + VirtualGatewaySpecProperty { /** * A reference to an object that represents the defaults for backends. * @@ -5088,7 +5116,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextAcmTrustProperty, - ) : CdkObject(cdkObject), VirtualGatewayTlsValidationContextAcmTrustProperty { + ) : CdkObject(cdkObject), + VirtualGatewayTlsValidationContextAcmTrustProperty { /** * One or more ACM Amazon Resource Name (ARN)s. * @@ -5178,7 +5207,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextFileTrustProperty, - ) : CdkObject(cdkObject), VirtualGatewayTlsValidationContextFileTrustProperty { + ) : CdkObject(cdkObject), + VirtualGatewayTlsValidationContextFileTrustProperty { /** * The certificate trust chain for a certificate stored on the file system of the virtual node * that the proxy is running on. @@ -5369,7 +5399,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextProperty, - ) : CdkObject(cdkObject), VirtualGatewayTlsValidationContextProperty { + ) : CdkObject(cdkObject), + VirtualGatewayTlsValidationContextProperty { /** * A reference to an object that represents the SANs for a virtual gateway's listener's * Transport Layer Security (TLS) validation context. @@ -5472,7 +5503,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextSdsTrustProperty, - ) : CdkObject(cdkObject), VirtualGatewayTlsValidationContextSdsTrustProperty { + ) : CdkObject(cdkObject), + VirtualGatewayTlsValidationContextSdsTrustProperty { /** * A reference to an object that represents the name of the secret for a virtual gateway's * Transport Layer Security (TLS) Secret Discovery Service validation context trust. @@ -5707,7 +5739,8 @@ public open class CfnVirtualGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextTrustProperty, - ) : CdkObject(cdkObject), VirtualGatewayTlsValidationContextTrustProperty { + ) : CdkObject(cdkObject), + VirtualGatewayTlsValidationContextTrustProperty { /** * A reference to an object that represents a Transport Layer Security (TLS) validation * context trust for an AWS Certificate Manager certificate. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGatewayProps.kt index c9bc2e9f7c..cfb61c4531 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualGatewayProps.kt @@ -333,7 +333,8 @@ public interface CfnVirtualGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualGatewayProps, - ) : CdkObject(cdkObject), CfnVirtualGatewayProps { + ) : CdkObject(cdkObject), + CfnVirtualGatewayProps { /** * The name of the service mesh that the virtual gateway resides in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNode.kt index 1e822212e9..5ccef1695d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNode.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNode.kt @@ -302,7 +302,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualNode( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -766,7 +768,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.AccessLogProperty, - ) : CdkObject(cdkObject), AccessLogProperty { + ) : CdkObject(cdkObject), + AccessLogProperty { /** * The file object to send virtual node access logs to. * @@ -881,7 +884,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.AwsCloudMapInstanceAttributeProperty, - ) : CdkObject(cdkObject), AwsCloudMapInstanceAttributeProperty { + ) : CdkObject(cdkObject), + AwsCloudMapInstanceAttributeProperty { /** * The name of an AWS Cloud Map service instance attribute key. * @@ -1089,7 +1093,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty, - ) : CdkObject(cdkObject), AwsCloudMapServiceDiscoveryProperty { + ) : CdkObject(cdkObject), + AwsCloudMapServiceDiscoveryProperty { /** * A string map that contains attributes with values that you can use to filter instances by * any custom attribute that you specified when you registered the instance. @@ -1259,7 +1264,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.BackendDefaultsProperty, - ) : CdkObject(cdkObject), BackendDefaultsProperty { + ) : CdkObject(cdkObject), + BackendDefaultsProperty { /** * A reference to an object that represents a client policy. * @@ -1405,7 +1411,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.BackendProperty, - ) : CdkObject(cdkObject), BackendProperty { + ) : CdkObject(cdkObject), + BackendProperty { /** * Specifies a virtual service to use as a backend. * @@ -1551,7 +1558,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ClientPolicyProperty, - ) : CdkObject(cdkObject), ClientPolicyProperty { + ) : CdkObject(cdkObject), + ClientPolicyProperty { /** * A reference to an object that represents a Transport Layer Security (TLS) client policy. * @@ -1813,7 +1821,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ClientPolicyTlsProperty, - ) : CdkObject(cdkObject), ClientPolicyTlsProperty { + ) : CdkObject(cdkObject), + ClientPolicyTlsProperty { /** * A reference to an object that represents a client's TLS certificate. * @@ -2026,7 +2035,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ClientTlsCertificateProperty, - ) : CdkObject(cdkObject), ClientTlsCertificateProperty { + ) : CdkObject(cdkObject), + ClientTlsCertificateProperty { /** * An object that represents a local file certificate. * @@ -2168,7 +2178,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty, - ) : CdkObject(cdkObject), DnsServiceDiscoveryProperty { + ) : CdkObject(cdkObject), + DnsServiceDiscoveryProperty { /** * Specifies the DNS service discovery hostname for the virtual node. * @@ -2285,7 +2296,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.DurationProperty, - ) : CdkObject(cdkObject), DurationProperty { + ) : CdkObject(cdkObject), + DurationProperty { /** * A unit of time. * @@ -2461,7 +2473,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.FileAccessLogProperty, - ) : CdkObject(cdkObject), FileAccessLogProperty { + ) : CdkObject(cdkObject), + FileAccessLogProperty { /** * The specified format for the logs. * @@ -2684,7 +2697,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.GrpcTimeoutProperty, - ) : CdkObject(cdkObject), GrpcTimeoutProperty { + ) : CdkObject(cdkObject), + GrpcTimeoutProperty { /** * An object that represents an idle timeout. * @@ -2929,7 +2943,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.HealthCheckProperty, - ) : CdkObject(cdkObject), HealthCheckProperty { + ) : CdkObject(cdkObject), + HealthCheckProperty { /** * The number of consecutive successful health checks that must occur before declaring * listener healthy. @@ -3187,7 +3202,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.HttpTimeoutProperty, - ) : CdkObject(cdkObject), HttpTimeoutProperty { + ) : CdkObject(cdkObject), + HttpTimeoutProperty { /** * An object that represents an idle timeout. * @@ -3303,7 +3319,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.JsonFormatRefProperty, - ) : CdkObject(cdkObject), JsonFormatRefProperty { + ) : CdkObject(cdkObject), + JsonFormatRefProperty { /** * The specified key for the JSON. * @@ -3768,7 +3785,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerProperty, - ) : CdkObject(cdkObject), ListenerProperty { + ) : CdkObject(cdkObject), + ListenerProperty { /** * The connection pool information for the listener. * @@ -4085,7 +4103,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTimeoutProperty, - ) : CdkObject(cdkObject), ListenerTimeoutProperty { + ) : CdkObject(cdkObject), + ListenerTimeoutProperty { /** * An object that represents types of timeouts. * @@ -4202,7 +4221,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsAcmCertificateProperty, - ) : CdkObject(cdkObject), ListenerTlsAcmCertificateProperty { + ) : CdkObject(cdkObject), + ListenerTlsAcmCertificateProperty { /** * The Amazon Resource Name (ARN) for the certificate. * @@ -4425,7 +4445,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsCertificateProperty, - ) : CdkObject(cdkObject), ListenerTlsCertificateProperty { + ) : CdkObject(cdkObject), + ListenerTlsCertificateProperty { /** * A reference to an object that represents an AWS Certificate Manager certificate. * @@ -4550,7 +4571,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty, - ) : CdkObject(cdkObject), ListenerTlsFileCertificateProperty { + ) : CdkObject(cdkObject), + ListenerTlsFileCertificateProperty { /** * The certificate chain for the certificate. * @@ -4784,7 +4806,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsProperty, - ) : CdkObject(cdkObject), ListenerTlsProperty { + ) : CdkObject(cdkObject), + ListenerTlsProperty { /** * A reference to an object that represents a listener's Transport Layer Security (TLS) * certificate. @@ -4896,7 +4919,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty, - ) : CdkObject(cdkObject), ListenerTlsSdsCertificateProperty { + ) : CdkObject(cdkObject), + ListenerTlsSdsCertificateProperty { /** * A reference to an object that represents the name of the secret requested from the Secret * Discovery Service provider representing Transport Layer Security (TLS) materials like a @@ -5085,7 +5109,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsValidationContextProperty, - ) : CdkObject(cdkObject), ListenerTlsValidationContextProperty { + ) : CdkObject(cdkObject), + ListenerTlsValidationContextProperty { /** * A reference to an object that represents the SANs for a listener's Transport Layer Security * (TLS) validation context. @@ -5270,7 +5295,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ListenerTlsValidationContextTrustProperty, - ) : CdkObject(cdkObject), ListenerTlsValidationContextTrustProperty { + ) : CdkObject(cdkObject), + ListenerTlsValidationContextTrustProperty { /** * An object that represents a Transport Layer Security (TLS) validation context trust for a * local file. @@ -5406,7 +5432,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.LoggingFormatProperty, - ) : CdkObject(cdkObject), LoggingFormatProperty { + ) : CdkObject(cdkObject), + LoggingFormatProperty { /** * The logging format for JSON. * @@ -5532,7 +5559,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.LoggingProperty, - ) : CdkObject(cdkObject), LoggingProperty { + ) : CdkObject(cdkObject), + LoggingProperty { /** * The access log configuration for a virtual node. * @@ -5739,7 +5767,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.OutlierDetectionProperty, - ) : CdkObject(cdkObject), OutlierDetectionProperty { + ) : CdkObject(cdkObject), + OutlierDetectionProperty { /** * The base amount of time for which a host is ejected. * @@ -5867,7 +5896,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.PortMappingProperty, - ) : CdkObject(cdkObject), PortMappingProperty { + ) : CdkObject(cdkObject), + PortMappingProperty { /** * The port used for the port mapping. * @@ -6045,7 +6075,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.ServiceDiscoveryProperty, - ) : CdkObject(cdkObject), ServiceDiscoveryProperty { + ) : CdkObject(cdkObject), + ServiceDiscoveryProperty { /** * Specifies any AWS Cloud Map information for the virtual node. * @@ -6146,7 +6177,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.SubjectAlternativeNameMatchersProperty, - ) : CdkObject(cdkObject), SubjectAlternativeNameMatchersProperty { + ) : CdkObject(cdkObject), + SubjectAlternativeNameMatchersProperty { /** * The values sent must match the specified values exactly. * @@ -6259,7 +6291,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.SubjectAlternativeNamesProperty, - ) : CdkObject(cdkObject), SubjectAlternativeNamesProperty { + ) : CdkObject(cdkObject), + SubjectAlternativeNamesProperty { /** * An object that represents the criteria for determining a SANs match. * @@ -6384,7 +6417,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TcpTimeoutProperty, - ) : CdkObject(cdkObject), TcpTimeoutProperty { + ) : CdkObject(cdkObject), + TcpTimeoutProperty { /** * An object that represents an idle timeout. * @@ -6482,7 +6516,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TlsValidationContextAcmTrustProperty, - ) : CdkObject(cdkObject), TlsValidationContextAcmTrustProperty { + ) : CdkObject(cdkObject), + TlsValidationContextAcmTrustProperty { /** * One or more ACM Amazon Resource Name (ARN)s. * @@ -6571,7 +6606,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty, - ) : CdkObject(cdkObject), TlsValidationContextFileTrustProperty { + ) : CdkObject(cdkObject), + TlsValidationContextFileTrustProperty { /** * The certificate trust chain for a certificate stored on the file system of the virtual node * that the proxy is running on. @@ -6806,7 +6842,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TlsValidationContextProperty, - ) : CdkObject(cdkObject), TlsValidationContextProperty { + ) : CdkObject(cdkObject), + TlsValidationContextProperty { /** * A reference to an object that represents the SANs for a Transport Layer Security (TLS) * validation context. @@ -6912,7 +6949,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty, - ) : CdkObject(cdkObject), TlsValidationContextSdsTrustProperty { + ) : CdkObject(cdkObject), + TlsValidationContextSdsTrustProperty { /** * A reference to an object that represents the name of the secret for a Transport Layer * Security (TLS) Secret Discovery Service validation context trust. @@ -7145,7 +7183,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.TlsValidationContextTrustProperty, - ) : CdkObject(cdkObject), TlsValidationContextTrustProperty { + ) : CdkObject(cdkObject), + TlsValidationContextTrustProperty { /** * A reference to an object that represents a Transport Layer Security (TLS) validation * context trust for an AWS Certificate Manager certificate. @@ -7429,7 +7468,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualNodeConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualNodeConnectionPoolProperty { /** * An object that represents a type of connection pool. * @@ -7537,7 +7577,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeGrpcConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualNodeGrpcConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualNodeGrpcConnectionPoolProperty { /** * Maximum number of inflight requests Envoy can concurrently support across hosts in upstream * cluster. @@ -7625,7 +7666,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeHttp2ConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualNodeHttp2ConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualNodeHttp2ConnectionPoolProperty { /** * Maximum number of inflight requests Envoy can concurrently support across hosts in upstream * cluster. @@ -7736,7 +7778,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeHttpConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualNodeHttpConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualNodeHttpConnectionPoolProperty { /** * Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts * in upstream cluster. @@ -8319,7 +8362,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeSpecProperty, - ) : CdkObject(cdkObject), VirtualNodeSpecProperty { + ) : CdkObject(cdkObject), + VirtualNodeSpecProperty { /** * A reference to an object that represents the defaults for backends. * @@ -8445,7 +8489,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualNodeTcpConnectionPoolProperty, - ) : CdkObject(cdkObject), VirtualNodeTcpConnectionPoolProperty { + ) : CdkObject(cdkObject), + VirtualNodeTcpConnectionPoolProperty { /** * Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts * in upstream cluster. @@ -8637,7 +8682,8 @@ public open class CfnVirtualNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNode.VirtualServiceBackendProperty, - ) : CdkObject(cdkObject), VirtualServiceBackendProperty { + ) : CdkObject(cdkObject), + VirtualServiceBackendProperty { /** * A reference to an object that represents the client policy for a backend. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNodeProps.kt index cc03b50510..ac8e0d4910 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualNodeProps.kt @@ -447,7 +447,8 @@ public interface CfnVirtualNodeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualNodeProps, - ) : CdkObject(cdkObject), CfnVirtualNodeProps { + ) : CdkObject(cdkObject), + CfnVirtualNodeProps { /** * The name of the service mesh to create the virtual node in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouter.kt index ae85205019..c10a214906 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouter.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualRouter( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualRouter, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -515,7 +517,8 @@ public open class CfnVirtualRouter( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualRouter.PortMappingProperty, - ) : CdkObject(cdkObject), PortMappingProperty { + ) : CdkObject(cdkObject), + PortMappingProperty { /** * The port used for the port mapping. * @@ -637,7 +640,8 @@ public open class CfnVirtualRouter( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualRouter.VirtualRouterListenerProperty, - ) : CdkObject(cdkObject), VirtualRouterListenerProperty { + ) : CdkObject(cdkObject), + VirtualRouterListenerProperty { /** * The port mapping information for the listener. * @@ -752,7 +756,8 @@ public open class CfnVirtualRouter( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualRouter.VirtualRouterSpecProperty, - ) : CdkObject(cdkObject), VirtualRouterSpecProperty { + ) : CdkObject(cdkObject), + VirtualRouterSpecProperty { /** * The listeners that the virtual router is expected to receive inbound traffic from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouterProps.kt index 98db710f7a..b395835ce0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualRouterProps.kt @@ -227,7 +227,8 @@ public interface CfnVirtualRouterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualRouterProps, - ) : CdkObject(cdkObject), CfnVirtualRouterProps { + ) : CdkObject(cdkObject), + CfnVirtualRouterProps { /** * The name of the service mesh to create the virtual router in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualService.kt index c058a479d4..af9e0e261f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualService.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualService( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -495,7 +497,8 @@ public open class CfnVirtualService( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualService.VirtualNodeServiceProviderProperty, - ) : CdkObject(cdkObject), VirtualNodeServiceProviderProperty { + ) : CdkObject(cdkObject), + VirtualNodeServiceProviderProperty { /** * The name of the virtual node that is acting as a service provider. * @@ -581,7 +584,8 @@ public open class CfnVirtualService( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualService.VirtualRouterServiceProviderProperty, - ) : CdkObject(cdkObject), VirtualRouterServiceProviderProperty { + ) : CdkObject(cdkObject), + VirtualRouterServiceProviderProperty { /** * The name of the virtual router that is acting as a service provider. * @@ -745,7 +749,8 @@ public open class CfnVirtualService( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualService.VirtualServiceProviderProperty, - ) : CdkObject(cdkObject), VirtualServiceProviderProperty { + ) : CdkObject(cdkObject), + VirtualServiceProviderProperty { /** * The virtual node associated with a virtual service. * @@ -876,7 +881,8 @@ public open class CfnVirtualService( private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualService.VirtualServiceSpecProperty, - ) : CdkObject(cdkObject), VirtualServiceSpecProperty { + ) : CdkObject(cdkObject), + VirtualServiceSpecProperty { /** * The App Mesh object that is acting as the provider for a virtual service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualServiceProps.kt index e0e75e965d..67777a001b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CfnVirtualServiceProps.kt @@ -229,7 +229,8 @@ public interface CfnVirtualServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CfnVirtualServiceProps, - ) : CdkObject(cdkObject), CfnVirtualServiceProps { + ) : CdkObject(cdkObject), + CfnVirtualServiceProps { /** * The name of the service mesh to create the virtual service in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CommonGatewayRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CommonGatewayRouteSpecOptions.kt index a02c2036a2..97166263ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CommonGatewayRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/CommonGatewayRouteSpecOptions.kt @@ -70,7 +70,8 @@ public interface CommonGatewayRouteSpecOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.CommonGatewayRouteSpecOptions, - ) : CdkObject(cdkObject), CommonGatewayRouteSpecOptions { + ) : CdkObject(cdkObject), + CommonGatewayRouteSpecOptions { /** * The priority for the gateway route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRoute.kt index 00822738d9..f5768c8449 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRoute.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class GatewayRoute( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRoute, -) : Resource(cdkObject), IGatewayRoute { +) : Resource(cdkObject), + IGatewayRoute { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteAttributes.kt index 96d86beaa3..d03ab828fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteAttributes.kt @@ -75,7 +75,8 @@ public interface GatewayRouteAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRouteAttributes, - ) : CdkObject(cdkObject), GatewayRouteAttributes { + ) : CdkObject(cdkObject), + GatewayRouteAttributes { /** * The name of the GatewayRoute. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteBaseProps.kt index c71eafdc8c..cbd759b98b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteBaseProps.kt @@ -81,7 +81,8 @@ public interface GatewayRouteBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRouteBaseProps, - ) : CdkObject(cdkObject), GatewayRouteBaseProps { + ) : CdkObject(cdkObject), + GatewayRouteBaseProps { /** * The name of the GatewayRoute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteHostnameMatchConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteHostnameMatchConfig.kt index 0e1e271462..89f3ec5e78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteHostnameMatchConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteHostnameMatchConfig.kt @@ -78,7 +78,8 @@ public interface GatewayRouteHostnameMatchConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRouteHostnameMatchConfig, - ) : CdkObject(cdkObject), GatewayRouteHostnameMatchConfig { + ) : CdkObject(cdkObject), + GatewayRouteHostnameMatchConfig { /** * GatewayRoute CFN configuration for host name match. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteProps.kt index d59a6550c8..a1d0ac67a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteProps.kt @@ -85,7 +85,8 @@ public interface GatewayRouteProps : GatewayRouteBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRouteProps, - ) : CdkObject(cdkObject), GatewayRouteProps { + ) : CdkObject(cdkObject), + GatewayRouteProps { /** * The name of the GatewayRoute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteSpecConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteSpecConfig.kt index 748db48065..f63b5b5241 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteSpecConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GatewayRouteSpecConfig.kt @@ -338,7 +338,8 @@ public interface GatewayRouteSpecConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GatewayRouteSpecConfig, - ) : CdkObject(cdkObject), GatewayRouteSpecConfig { + ) : CdkObject(cdkObject), + GatewayRouteSpecConfig { /** * The spec for a grpc gateway route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcConnectionPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcConnectionPool.kt index 7f5a0bdc01..261530c57d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcConnectionPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcConnectionPool.kt @@ -81,7 +81,8 @@ public interface GrpcConnectionPool { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcConnectionPool, - ) : CdkObject(cdkObject), GrpcConnectionPool { + ) : CdkObject(cdkObject), + GrpcConnectionPool { /** * The maximum requests in the pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayListenerOptions.kt index f6b24c812c..6d0a3e580c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayListenerOptions.kt @@ -180,7 +180,8 @@ public interface GrpcGatewayListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcGatewayListenerOptions, - ) : CdkObject(cdkObject), GrpcGatewayListenerOptions { + ) : CdkObject(cdkObject), + GrpcGatewayListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteMatch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteMatch.kt index 2e0184d71d..b865152caa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteMatch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteMatch.kt @@ -166,7 +166,8 @@ public interface GrpcGatewayRouteMatch { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcGatewayRouteMatch, - ) : CdkObject(cdkObject), GrpcGatewayRouteMatch { + ) : CdkObject(cdkObject), + GrpcGatewayRouteMatch { /** * Create host name based gRPC gateway route match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteSpecOptions.kt index 31be080378..5e88b58971 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcGatewayRouteSpecOptions.kt @@ -112,7 +112,8 @@ public interface GrpcGatewayRouteSpecOptions : CommonGatewayRouteSpecOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcGatewayRouteSpecOptions, - ) : CdkObject(cdkObject), GrpcGatewayRouteSpecOptions { + ) : CdkObject(cdkObject), + GrpcGatewayRouteSpecOptions { /** * The criterion for determining a request match for this GatewayRoute. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcHealthCheckOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcHealthCheckOptions.kt index f9d9302b99..e5e47c7810 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcHealthCheckOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcHealthCheckOptions.kt @@ -126,7 +126,8 @@ public interface GrpcHealthCheckOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcHealthCheckOptions, - ) : CdkObject(cdkObject), GrpcHealthCheckOptions { + ) : CdkObject(cdkObject), + GrpcHealthCheckOptions { /** * The number of consecutive successful health checks that must occur before declaring listener * healthy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRetryPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRetryPolicy.kt index 68cd985340..e0565f9f6e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRetryPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRetryPolicy.kt @@ -188,7 +188,8 @@ public interface GrpcRetryPolicy : HttpRetryPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcRetryPolicy, - ) : CdkObject(cdkObject), GrpcRetryPolicy { + ) : CdkObject(cdkObject), + GrpcRetryPolicy { /** * gRPC events on which to retry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteMatch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteMatch.kt index b7fa8e2f62..74554b688a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteMatch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteMatch.kt @@ -147,7 +147,8 @@ public interface GrpcRouteMatch { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcRouteMatch, - ) : CdkObject(cdkObject), GrpcRouteMatch { + ) : CdkObject(cdkObject), + GrpcRouteMatch { /** * Create metadata based gRPC route match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteSpecOptions.kt index 115c77ad51..7aee3c1251 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcRouteSpecOptions.kt @@ -200,7 +200,8 @@ public interface GrpcRouteSpecOptions : RouteSpecOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcRouteSpecOptions, - ) : CdkObject(cdkObject), GrpcRouteSpecOptions { + ) : CdkObject(cdkObject), + GrpcRouteSpecOptions { /** * The criterion for determining a request match for this Route. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcTimeout.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcTimeout.kt index ed991fa680..51c226595e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcTimeout.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcTimeout.kt @@ -90,7 +90,8 @@ public interface GrpcTimeout { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcTimeout, - ) : CdkObject(cdkObject), GrpcTimeout { + ) : CdkObject(cdkObject), + GrpcTimeout { /** * Represents an idle timeout. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcVirtualNodeListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcVirtualNodeListenerOptions.kt index 06dd714f11..45e19532b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcVirtualNodeListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/GrpcVirtualNodeListenerOptions.kt @@ -249,7 +249,8 @@ public interface GrpcVirtualNodeListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.GrpcVirtualNodeListenerOptions, - ) : CdkObject(cdkObject), GrpcVirtualNodeListenerOptions { + ) : CdkObject(cdkObject), + GrpcVirtualNodeListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HeaderMatchConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HeaderMatchConfig.kt index b71f6a74a3..0220dce8cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HeaderMatchConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HeaderMatchConfig.kt @@ -85,7 +85,8 @@ public interface HeaderMatchConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HeaderMatchConfig, - ) : CdkObject(cdkObject), HeaderMatchConfig { + ) : CdkObject(cdkObject), + HeaderMatchConfig { /** * Route CFN configuration for the route header match. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckBindOptions.kt index a4fe4b7951..07be920958 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckBindOptions.kt @@ -58,7 +58,8 @@ public interface HealthCheckBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HealthCheckBindOptions, - ) : CdkObject(cdkObject), HealthCheckBindOptions { + ) : CdkObject(cdkObject), + HealthCheckBindOptions { /** * Port for Health Check interface. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckConfig.kt index 3b63b42340..8d35553201 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HealthCheckConfig.kt @@ -137,7 +137,8 @@ public interface HealthCheckConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HealthCheckConfig, - ) : CdkObject(cdkObject), HealthCheckConfig { + ) : CdkObject(cdkObject), + HealthCheckConfig { /** * VirtualGateway CFN configuration for Health Checks. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2ConnectionPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2ConnectionPool.kt index 54d650110e..6ed250bd24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2ConnectionPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2ConnectionPool.kt @@ -58,7 +58,8 @@ public interface Http2ConnectionPool { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.Http2ConnectionPool, - ) : CdkObject(cdkObject), Http2ConnectionPool { + ) : CdkObject(cdkObject), + Http2ConnectionPool { /** * The maximum requests in the pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2GatewayListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2GatewayListenerOptions.kt index 229b41a070..fe265a3cf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2GatewayListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2GatewayListenerOptions.kt @@ -180,7 +180,8 @@ public interface Http2GatewayListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.Http2GatewayListenerOptions, - ) : CdkObject(cdkObject), Http2GatewayListenerOptions { + ) : CdkObject(cdkObject), + Http2GatewayListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2VirtualNodeListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2VirtualNodeListenerOptions.kt index a6eec84fbb..73b13dc392 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2VirtualNodeListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Http2VirtualNodeListenerOptions.kt @@ -247,7 +247,8 @@ public interface Http2VirtualNodeListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.Http2VirtualNodeListenerOptions, - ) : CdkObject(cdkObject), Http2VirtualNodeListenerOptions { + ) : CdkObject(cdkObject), + Http2VirtualNodeListenerOptions { /** * Connection pool for http2 listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpConnectionPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpConnectionPool.kt index 506f8f086b..512b8ef273 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpConnectionPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpConnectionPool.kt @@ -100,7 +100,8 @@ public interface HttpConnectionPool { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpConnectionPool, - ) : CdkObject(cdkObject), HttpConnectionPool { + ) : CdkObject(cdkObject), + HttpConnectionPool { /** * The maximum connections in the pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayListenerOptions.kt index 8fc305928a..484c2e8465 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayListenerOptions.kt @@ -165,7 +165,8 @@ public interface HttpGatewayListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpGatewayListenerOptions, - ) : CdkObject(cdkObject), HttpGatewayListenerOptions { + ) : CdkObject(cdkObject), + HttpGatewayListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteMatch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteMatch.kt index dc76ba5041..5af83bb6e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteMatch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteMatch.kt @@ -228,7 +228,8 @@ public interface HttpGatewayRouteMatch { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpGatewayRouteMatch, - ) : CdkObject(cdkObject), HttpGatewayRouteMatch { + ) : CdkObject(cdkObject), + HttpGatewayRouteMatch { /** * Specifies the client request headers to match on. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRoutePathMatchConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRoutePathMatchConfig.kt index 9928a3cd0a..3a12693504 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRoutePathMatchConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRoutePathMatchConfig.kt @@ -203,7 +203,8 @@ public interface HttpGatewayRoutePathMatchConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpGatewayRoutePathMatchConfig, - ) : CdkObject(cdkObject), HttpGatewayRoutePathMatchConfig { + ) : CdkObject(cdkObject), + HttpGatewayRoutePathMatchConfig { /** * Gateway route configuration for matching on the prefix of the URL path of the request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteSpecOptions.kt index a80f5562d0..af5865eb1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpGatewayRouteSpecOptions.kt @@ -122,7 +122,8 @@ public interface HttpGatewayRouteSpecOptions : CommonGatewayRouteSpecOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpGatewayRouteSpecOptions, - ) : CdkObject(cdkObject), HttpGatewayRouteSpecOptions { + ) : CdkObject(cdkObject), + HttpGatewayRouteSpecOptions { /** * The criterion for determining a request match for this GatewayRoute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpHealthCheckOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpHealthCheckOptions.kt index ee4c2688e8..a67f0750cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpHealthCheckOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpHealthCheckOptions.kt @@ -157,7 +157,8 @@ public interface HttpHealthCheckOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpHealthCheckOptions, - ) : CdkObject(cdkObject), HttpHealthCheckOptions { + ) : CdkObject(cdkObject), + HttpHealthCheckOptions { /** * The number of consecutive successful health checks that must occur before declaring listener * healthy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRetryPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRetryPolicy.kt index 0413977d1c..c8913a4d0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRetryPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRetryPolicy.kt @@ -179,7 +179,8 @@ public interface HttpRetryPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpRetryPolicy, - ) : CdkObject(cdkObject), HttpRetryPolicy { + ) : CdkObject(cdkObject), + HttpRetryPolicy { /** * Specify HTTP events on which to retry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteMatch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteMatch.kt index 6307603b32..cc804fe971 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteMatch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteMatch.kt @@ -208,7 +208,8 @@ public interface HttpRouteMatch { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpRouteMatch, - ) : CdkObject(cdkObject), HttpRouteMatch { + ) : CdkObject(cdkObject), + HttpRouteMatch { /** * Specifies the client request headers to match on. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRoutePathMatchConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRoutePathMatchConfig.kt index db0b4bca5b..3237430ec1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRoutePathMatchConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRoutePathMatchConfig.kt @@ -104,7 +104,8 @@ public interface HttpRoutePathMatchConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpRoutePathMatchConfig, - ) : CdkObject(cdkObject), HttpRoutePathMatchConfig { + ) : CdkObject(cdkObject), + HttpRoutePathMatchConfig { /** * Route configuration for matching on the prefix of the URL path of the request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteSpecOptions.kt index b5c4fa55b8..cc4ca9a0fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpRouteSpecOptions.kt @@ -205,7 +205,8 @@ public interface HttpRouteSpecOptions : RouteSpecOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpRouteSpecOptions, - ) : CdkObject(cdkObject), HttpRouteSpecOptions { + ) : CdkObject(cdkObject), + HttpRouteSpecOptions { /** * The criterion for determining a request match for this Route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpTimeout.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpTimeout.kt index ea75fa3bb3..eb59e773d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpTimeout.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpTimeout.kt @@ -102,7 +102,8 @@ public interface HttpTimeout { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpTimeout, - ) : CdkObject(cdkObject), HttpTimeout { + ) : CdkObject(cdkObject), + HttpTimeout { /** * Represents an idle timeout. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpVirtualNodeListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpVirtualNodeListenerOptions.kt index 9a8e20e5f2..47b4f50486 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpVirtualNodeListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/HttpVirtualNodeListenerOptions.kt @@ -232,7 +232,8 @@ public interface HttpVirtualNodeListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.HttpVirtualNodeListenerOptions, - ) : CdkObject(cdkObject), HttpVirtualNodeListenerOptions { + ) : CdkObject(cdkObject), + HttpVirtualNodeListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IGatewayRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IGatewayRoute.kt index 6ac3d8dc0b..fab4c02f73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IGatewayRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IGatewayRoute.kt @@ -32,7 +32,8 @@ public interface IGatewayRoute : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IGatewayRoute, - ) : CdkObject(cdkObject), IGatewayRoute { + ) : CdkObject(cdkObject), + IGatewayRoute { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IMesh.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IMesh.kt index e140a460c3..3fd378d697 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IMesh.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IMesh.kt @@ -136,7 +136,8 @@ public interface IMesh : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IMesh, - ) : CdkObject(cdkObject), IMesh { + ) : CdkObject(cdkObject), + IMesh { /** * Creates a new VirtualGateway in this Mesh. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IRoute.kt index 9ee029e79d..2250f0802f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IRoute.kt @@ -32,7 +32,8 @@ public interface IRoute : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IRoute, - ) : CdkObject(cdkObject), IRoute { + ) : CdkObject(cdkObject), + IRoute { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualGateway.kt index ca33bfe38f..3644e06071 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualGateway.kt @@ -62,7 +62,8 @@ public interface IVirtualGateway : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IVirtualGateway, - ) : CdkObject(cdkObject), IVirtualGateway { + ) : CdkObject(cdkObject), + IVirtualGateway { /** * Utility method to add a new GatewayRoute to the VirtualGateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualNode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualNode.kt index e807a1e5cb..a05441a3d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualNode.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualNode.kt @@ -45,7 +45,8 @@ public interface IVirtualNode : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IVirtualNode, - ) : CdkObject(cdkObject), IVirtualNode { + ) : CdkObject(cdkObject), + IVirtualNode { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualRouter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualRouter.kt index 25b732b15d..2fdedb01ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualRouter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualRouter.kt @@ -52,7 +52,8 @@ public interface IVirtualRouter : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IVirtualRouter, - ) : CdkObject(cdkObject), IVirtualRouter { + ) : CdkObject(cdkObject), + IVirtualRouter { /** * Add a single route to the router. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualService.kt index 26aeca533b..ac3771bae0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/IVirtualService.kt @@ -32,7 +32,8 @@ public interface IVirtualService : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.IVirtualService, - ) : CdkObject(cdkObject), IVirtualService { + ) : CdkObject(cdkObject), + IVirtualService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ListenerTlsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ListenerTlsOptions.kt index aa7c40638d..613f564bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ListenerTlsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ListenerTlsOptions.kt @@ -146,7 +146,8 @@ public interface ListenerTlsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.ListenerTlsOptions, - ) : CdkObject(cdkObject), ListenerTlsOptions { + ) : CdkObject(cdkObject), + ListenerTlsOptions { /** * Represents TLS certificate. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/LoggingFormatConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/LoggingFormatConfig.kt index 6b1226b46a..df914215fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/LoggingFormatConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/LoggingFormatConfig.kt @@ -81,7 +81,8 @@ public interface LoggingFormatConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.LoggingFormatConfig, - ) : CdkObject(cdkObject), LoggingFormatConfig { + ) : CdkObject(cdkObject), + LoggingFormatConfig { /** * CFN configuration for Access Logging Format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Mesh.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Mesh.kt index b6d54fd3ad..918fb8c3ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Mesh.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Mesh.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Mesh( cdkObject: software.amazon.awscdk.services.appmesh.Mesh, -) : Resource(cdkObject), IMesh { +) : Resource(cdkObject), + IMesh { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appmesh.Mesh(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshProps.kt index 48ef2df0fa..088e0d8f22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshProps.kt @@ -120,7 +120,8 @@ public interface MeshProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.MeshProps, - ) : CdkObject(cdkObject), MeshProps { + ) : CdkObject(cdkObject), + MeshProps { /** * Egress filter to be applied to the Mesh. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshServiceDiscovery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshServiceDiscovery.kt index dcdca15fe1..b60e7f5aa3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshServiceDiscovery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MeshServiceDiscovery.kt @@ -63,7 +63,8 @@ public interface MeshServiceDiscovery { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.MeshServiceDiscovery, - ) : CdkObject(cdkObject), MeshServiceDiscovery { + ) : CdkObject(cdkObject), + MeshServiceDiscovery { /** * IP preference applied to all Virtual Nodes in the Mesh. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MutualTlsValidation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MutualTlsValidation.kt index d8bdf86bb9..cda7959ee2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MutualTlsValidation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/MutualTlsValidation.kt @@ -116,7 +116,8 @@ public interface MutualTlsValidation { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.MutualTlsValidation, - ) : CdkObject(cdkObject), MutualTlsValidation { + ) : CdkObject(cdkObject), + MutualTlsValidation { /** * Represents the subject alternative names (SANs) secured by the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/OutlierDetection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/OutlierDetection.kt index afc0c6664f..2142381777 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/OutlierDetection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/OutlierDetection.kt @@ -130,7 +130,8 @@ public interface OutlierDetection { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.OutlierDetection, - ) : CdkObject(cdkObject), OutlierDetection { + ) : CdkObject(cdkObject), + OutlierDetection { /** * The base amount of time for which a host is ejected. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/QueryParameterMatchConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/QueryParameterMatchConfig.kt index 4774e908df..3e291c1d1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/QueryParameterMatchConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/QueryParameterMatchConfig.kt @@ -80,7 +80,8 @@ public interface QueryParameterMatchConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.QueryParameterMatchConfig, - ) : CdkObject(cdkObject), QueryParameterMatchConfig { + ) : CdkObject(cdkObject), + QueryParameterMatchConfig { /** * Route CFN configuration for route query parameter match. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Route.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Route.kt index dfa4ff8c64..22d9cd409f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Route.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/Route.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Route( cdkObject: software.amazon.awscdk.services.appmesh.Route, -) : Resource(cdkObject), IRoute { +) : Resource(cdkObject), + IRoute { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteAttributes.kt index c70d47c321..e7cddccdc8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteAttributes.kt @@ -74,7 +74,8 @@ public interface RouteAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.RouteAttributes, - ) : CdkObject(cdkObject), RouteAttributes { + ) : CdkObject(cdkObject), + RouteAttributes { /** * The name of the Route. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteBaseProps.kt index 5517a37ad0..61c17a7b03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteBaseProps.kt @@ -85,7 +85,8 @@ public interface RouteBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.RouteBaseProps, - ) : CdkObject(cdkObject), RouteBaseProps { + ) : CdkObject(cdkObject), + RouteBaseProps { /** * The name of the route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteProps.kt index 59a986d38c..c0c635fa9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteProps.kt @@ -103,7 +103,8 @@ public interface RouteProps : RouteBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.RouteProps, - ) : CdkObject(cdkObject), RouteProps { + ) : CdkObject(cdkObject), + RouteProps { /** * The service mesh to define the route in. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecConfig.kt index f5f82a6691..204480729f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecConfig.kt @@ -405,7 +405,8 @@ public interface RouteSpecConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.RouteSpecConfig, - ) : CdkObject(cdkObject), RouteSpecConfig { + ) : CdkObject(cdkObject), + RouteSpecConfig { /** * The spec for a grpc route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecOptionsBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecOptionsBase.kt index 5d00e3334e..1fb578080f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecOptionsBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/RouteSpecOptionsBase.kt @@ -67,7 +67,8 @@ public interface RouteSpecOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.RouteSpecOptionsBase, - ) : CdkObject(cdkObject), RouteSpecOptionsBase { + ) : CdkObject(cdkObject), + RouteSpecOptionsBase { /** * The priority for the route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ServiceDiscoveryConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ServiceDiscoveryConfig.kt index cceaf76a0b..d1291c47e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ServiceDiscoveryConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/ServiceDiscoveryConfig.kt @@ -126,7 +126,8 @@ public interface ServiceDiscoveryConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.ServiceDiscoveryConfig, - ) : CdkObject(cdkObject), ServiceDiscoveryConfig { + ) : CdkObject(cdkObject), + ServiceDiscoveryConfig { /** * Cloud Map based Service Discovery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/SubjectAlternativeNamesMatcherConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/SubjectAlternativeNamesMatcherConfig.kt index 7107f83d6a..e758fb1a82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/SubjectAlternativeNamesMatcherConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/SubjectAlternativeNamesMatcherConfig.kt @@ -84,7 +84,8 @@ public interface SubjectAlternativeNamesMatcherConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.SubjectAlternativeNamesMatcherConfig, - ) : CdkObject(cdkObject), SubjectAlternativeNamesMatcherConfig { + ) : CdkObject(cdkObject), + SubjectAlternativeNamesMatcherConfig { /** * VirtualNode CFN configuration for subject alternative names secured by the certificate. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpConnectionPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpConnectionPool.kt index 2295ce4306..babdde264f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpConnectionPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpConnectionPool.kt @@ -58,7 +58,8 @@ public interface TcpConnectionPool { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TcpConnectionPool, - ) : CdkObject(cdkObject), TcpConnectionPool { + ) : CdkObject(cdkObject), + TcpConnectionPool { /** * The maximum connections in the pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpHealthCheckOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpHealthCheckOptions.kt index 2cb34f71c4..c9f87ed448 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpHealthCheckOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpHealthCheckOptions.kt @@ -126,7 +126,8 @@ public interface TcpHealthCheckOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TcpHealthCheckOptions, - ) : CdkObject(cdkObject), TcpHealthCheckOptions { + ) : CdkObject(cdkObject), + TcpHealthCheckOptions { /** * The number of consecutive successful health checks that must occur before declaring listener * healthy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpRouteSpecOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpRouteSpecOptions.kt index 51041b04b0..b91ad57553 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpRouteSpecOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpRouteSpecOptions.kt @@ -137,7 +137,8 @@ public interface TcpRouteSpecOptions : RouteSpecOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TcpRouteSpecOptions, - ) : CdkObject(cdkObject), TcpRouteSpecOptions { + ) : CdkObject(cdkObject), + TcpRouteSpecOptions { /** * The priority for the route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpTimeout.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpTimeout.kt index 61db89ee55..d07f9f8ecd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpTimeout.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpTimeout.kt @@ -62,7 +62,8 @@ public interface TcpTimeout { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TcpTimeout, - ) : CdkObject(cdkObject), TcpTimeout { + ) : CdkObject(cdkObject), + TcpTimeout { /** * Represents an idle timeout. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpVirtualNodeListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpVirtualNodeListenerOptions.kt index 162b5b957c..1c4b000686 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpVirtualNodeListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TcpVirtualNodeListenerOptions.kt @@ -246,7 +246,8 @@ public interface TcpVirtualNodeListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TcpVirtualNodeListenerOptions, - ) : CdkObject(cdkObject), TcpVirtualNodeListenerOptions { + ) : CdkObject(cdkObject), + TcpVirtualNodeListenerOptions { /** * Connection pool for http listeners. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsCertificateConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsCertificateConfig.kt index a20556a7a2..118f73e696 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsCertificateConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsCertificateConfig.kt @@ -84,7 +84,8 @@ public interface TlsCertificateConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TlsCertificateConfig, - ) : CdkObject(cdkObject), TlsCertificateConfig { + ) : CdkObject(cdkObject), + TlsCertificateConfig { /** * The CFN shape for a TLS certificate. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsClientPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsClientPolicy.kt index 4dad62826d..fe4932431b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsClientPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsClientPolicy.kt @@ -173,7 +173,8 @@ public interface TlsClientPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TlsClientPolicy, - ) : CdkObject(cdkObject), TlsClientPolicy { + ) : CdkObject(cdkObject), + TlsClientPolicy { /** * Whether the policy is enforced. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidation.kt index df6bae47ab..b6f6b3002d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidation.kt @@ -106,7 +106,8 @@ public interface TlsValidation { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TlsValidation, - ) : CdkObject(cdkObject), TlsValidation { + ) : CdkObject(cdkObject), + TlsValidation { /** * Represents the subject alternative names (SANs) secured by the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidationTrustConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidationTrustConfig.kt index 3207a8f593..d03abd0d88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidationTrustConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/TlsValidationTrustConfig.kt @@ -90,7 +90,8 @@ public interface TlsValidationTrustConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.TlsValidationTrustConfig, - ) : CdkObject(cdkObject), TlsValidationTrustConfig { + ) : CdkObject(cdkObject), + TlsValidationTrustConfig { /** * VirtualNode CFN configuration for client policy's TLS Validation Trust. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGateway.kt index 7985ebe70c..974aa1dafd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGateway.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VirtualGateway( cdkObject: software.amazon.awscdk.services.appmesh.VirtualGateway, -) : Resource(cdkObject), IVirtualGateway { +) : Resource(cdkObject), + IVirtualGateway { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayAttributes.kt index 51439f021c..5a3080ff46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayAttributes.kt @@ -75,7 +75,8 @@ public interface VirtualGatewayAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualGatewayAttributes, - ) : CdkObject(cdkObject), VirtualGatewayAttributes { + ) : CdkObject(cdkObject), + VirtualGatewayAttributes { /** * The Mesh that the VirtualGateway belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayBaseProps.kt index b93c3a3373..6372e30268 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayBaseProps.kt @@ -160,7 +160,8 @@ public interface VirtualGatewayBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualGatewayBaseProps, - ) : CdkObject(cdkObject), VirtualGatewayBaseProps { + ) : CdkObject(cdkObject), + VirtualGatewayBaseProps { /** * Access Logging Configuration for the VirtualGateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayListenerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayListenerConfig.kt index 00c3602ae3..9955f48738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayListenerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayListenerConfig.kt @@ -136,7 +136,8 @@ public interface VirtualGatewayListenerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualGatewayListenerConfig, - ) : CdkObject(cdkObject), VirtualGatewayListenerConfig { + ) : CdkObject(cdkObject), + VirtualGatewayListenerConfig { /** * Single listener config for a VirtualGateway. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayProps.kt index e758a5630c..7e433e5982 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualGatewayProps.kt @@ -157,7 +157,8 @@ public interface VirtualGatewayProps : VirtualGatewayBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualGatewayProps, - ) : CdkObject(cdkObject), VirtualGatewayProps { + ) : CdkObject(cdkObject), + VirtualGatewayProps { /** * Access Logging Configuration for the VirtualGateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNode.kt index 393d28ca0e..2e15782982 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNode.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNode.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VirtualNode( cdkObject: software.amazon.awscdk.services.appmesh.VirtualNode, -) : Resource(cdkObject), IVirtualNode { +) : Resource(cdkObject), + IVirtualNode { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeAttributes.kt index 33bf71ee6d..5302199af6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeAttributes.kt @@ -73,7 +73,8 @@ public interface VirtualNodeAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualNodeAttributes, - ) : CdkObject(cdkObject), VirtualNodeAttributes { + ) : CdkObject(cdkObject), + VirtualNodeAttributes { /** * The Mesh that the VirtualNode belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeBaseProps.kt index 1efed70055..8ee85e963f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeBaseProps.kt @@ -214,7 +214,8 @@ public interface VirtualNodeBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualNodeBaseProps, - ) : CdkObject(cdkObject), VirtualNodeBaseProps { + ) : CdkObject(cdkObject), + VirtualNodeBaseProps { /** * Access Logging Configuration for the virtual node. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeListenerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeListenerConfig.kt index 6f04f93045..735c28ba14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeListenerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeListenerConfig.kt @@ -186,7 +186,8 @@ public interface VirtualNodeListenerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualNodeListenerConfig, - ) : CdkObject(cdkObject), VirtualNodeListenerConfig { + ) : CdkObject(cdkObject), + VirtualNodeListenerConfig { /** * Single listener config for a VirtualNode. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeProps.kt index c747d765ed..13d6802bce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualNodeProps.kt @@ -192,7 +192,8 @@ public interface VirtualNodeProps : VirtualNodeBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualNodeProps, - ) : CdkObject(cdkObject), VirtualNodeProps { + ) : CdkObject(cdkObject), + VirtualNodeProps { /** * Access Logging Configuration for the virtual node. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouter.kt index 6fc847ce7a..8e6007cca6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouter.kt @@ -23,7 +23,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VirtualRouter( cdkObject: software.amazon.awscdk.services.appmesh.VirtualRouter, -) : Resource(cdkObject), IVirtualRouter { +) : Resource(cdkObject), + IVirtualRouter { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterAttributes.kt index c1b9bd5733..cff5186cf1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterAttributes.kt @@ -75,7 +75,8 @@ public interface VirtualRouterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualRouterAttributes, - ) : CdkObject(cdkObject), VirtualRouterAttributes { + ) : CdkObject(cdkObject), + VirtualRouterAttributes { /** * The Mesh which the VirtualRouter belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterBaseProps.kt index 6ae03bf4b4..2564debff7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterBaseProps.kt @@ -88,7 +88,8 @@ public interface VirtualRouterBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualRouterBaseProps, - ) : CdkObject(cdkObject), VirtualRouterBaseProps { + ) : CdkObject(cdkObject), + VirtualRouterBaseProps { /** * Listener specification for the VirtualRouter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterListenerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterListenerConfig.kt index 2b24e1fe57..3131417838 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterListenerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterListenerConfig.kt @@ -78,7 +78,8 @@ public interface VirtualRouterListenerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualRouterListenerConfig, - ) : CdkObject(cdkObject), VirtualRouterListenerConfig { + ) : CdkObject(cdkObject), + VirtualRouterListenerConfig { /** * Single listener config for a VirtualRouter. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterProps.kt index a0ca784c73..fa7507644f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualRouterProps.kt @@ -99,7 +99,8 @@ public interface VirtualRouterProps : VirtualRouterBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualRouterProps, - ) : CdkObject(cdkObject), VirtualRouterProps { + ) : CdkObject(cdkObject), + VirtualRouterProps { /** * Listener specification for the VirtualRouter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualService.kt index 6e50a04a79..1f6bd4f9d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualService.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VirtualService( cdkObject: software.amazon.awscdk.services.appmesh.VirtualService, -) : Resource(cdkObject), IVirtualService { +) : Resource(cdkObject), + IVirtualService { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceAttributes.kt index 8b4411a9da..884d0ffcbf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceAttributes.kt @@ -78,7 +78,8 @@ public interface VirtualServiceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualServiceAttributes, - ) : CdkObject(cdkObject), VirtualServiceAttributes { + ) : CdkObject(cdkObject), + VirtualServiceAttributes { /** * The Mesh which the VirtualService belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceBackendOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceBackendOptions.kt index be0aff1f80..c8d71bd901 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceBackendOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceBackendOptions.kt @@ -89,7 +89,8 @@ public interface VirtualServiceBackendOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualServiceBackendOptions, - ) : CdkObject(cdkObject), VirtualServiceBackendOptions { + ) : CdkObject(cdkObject), + VirtualServiceBackendOptions { /** * TLS properties for Client policy for the backend. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProps.kt index 9d7de12398..7d24343968 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProps.kt @@ -94,7 +94,8 @@ public interface VirtualServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualServiceProps, - ) : CdkObject(cdkObject), VirtualServiceProps { + ) : CdkObject(cdkObject), + VirtualServiceProps { /** * The name of the VirtualService. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProviderConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProviderConfig.kt index 87272207d8..52c16134ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProviderConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/VirtualServiceProviderConfig.kt @@ -148,7 +148,8 @@ public interface VirtualServiceProviderConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.VirtualServiceProviderConfig, - ) : CdkObject(cdkObject), VirtualServiceProviderConfig { + ) : CdkObject(cdkObject), + VirtualServiceProviderConfig { /** * Mesh the Provider is using. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/WeightedTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/WeightedTarget.kt index 6928aa6f50..cefda8d896 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/WeightedTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appmesh/WeightedTarget.kt @@ -97,7 +97,8 @@ public interface WeightedTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.appmesh.WeightedTarget, - ) : CdkObject(cdkObject), WeightedTarget { + ) : CdkObject(cdkObject), + WeightedTarget { /** * The port to match from the request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfiguration.kt index 61d7b9e842..58280ed4fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfiguration.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAutoScalingConfiguration( cdkObject: software.amazon.awscdk.services.apprunner.CfnAutoScalingConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apprunner.CfnAutoScalingConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfigurationProps.kt index e10707a5dd..4de34e9d5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnAutoScalingConfigurationProps.kt @@ -203,7 +203,8 @@ public interface CfnAutoScalingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnAutoScalingConfigurationProps, - ) : CdkObject(cdkObject), CfnAutoScalingConfigurationProps { + ) : CdkObject(cdkObject), + CfnAutoScalingConfigurationProps { /** * The customer-provided auto scaling configuration name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfiguration.kt index 5239ebafa6..2545f4c4d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfiguration.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnObservabilityConfiguration( cdkObject: software.amazon.awscdk.services.apprunner.CfnObservabilityConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.apprunner.CfnObservabilityConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -458,7 +460,8 @@ public open class CfnObservabilityConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnObservabilityConfiguration.TraceConfigurationProperty, - ) : CdkObject(cdkObject), TraceConfigurationProperty { + ) : CdkObject(cdkObject), + TraceConfigurationProperty { /** * The implementation provider chosen for tracing App Runner services. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfigurationProps.kt index 3eae03af19..a219011b5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnObservabilityConfigurationProps.kt @@ -225,7 +225,8 @@ public interface CfnObservabilityConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnObservabilityConfigurationProps, - ) : CdkObject(cdkObject), CfnObservabilityConfigurationProps { + ) : CdkObject(cdkObject), + CfnObservabilityConfigurationProps { /** * A name for the observability configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnService.kt index 4a7c85f239..bb63f1fee4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnService.kt @@ -134,7 +134,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnService( cdkObject: software.amazon.awscdk.services.apprunner.CfnService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1087,7 +1089,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.AuthenticationConfigurationProperty, - ) : CdkObject(cdkObject), AuthenticationConfigurationProperty { + ) : CdkObject(cdkObject), + AuthenticationConfigurationProperty { /** * The Amazon Resource Name (ARN) of the IAM role that grants the App Runner service access to * a source repository. @@ -1284,7 +1287,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.CodeConfigurationProperty, - ) : CdkObject(cdkObject), CodeConfigurationProperty { + ) : CdkObject(cdkObject), + CodeConfigurationProperty { /** * The basic configuration for building and running the App Runner service. * @@ -1632,7 +1636,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.CodeConfigurationValuesProperty, - ) : CdkObject(cdkObject), CodeConfigurationValuesProperty { + ) : CdkObject(cdkObject), + CodeConfigurationValuesProperty { /** * The command App Runner runs to build your application. * @@ -1942,7 +1947,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.CodeRepositoryProperty, - ) : CdkObject(cdkObject), CodeRepositoryProperty { + ) : CdkObject(cdkObject), + CodeRepositoryProperty { /** * Configuration for building and running the service from a source code repository. * @@ -2090,7 +2096,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.EgressConfigurationProperty, - ) : CdkObject(cdkObject), EgressConfigurationProperty { + ) : CdkObject(cdkObject), + EgressConfigurationProperty { /** * The type of egress configuration. * @@ -2188,7 +2195,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The ARN of the KMS key that's used for encryption. * @@ -2421,7 +2429,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.HealthCheckConfigurationProperty, - ) : CdkObject(cdkObject), HealthCheckConfigurationProperty { + ) : CdkObject(cdkObject), + HealthCheckConfigurationProperty { /** * The number of consecutive checks that must succeed before App Runner decides that the * service is healthy. @@ -2765,7 +2774,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.ImageConfigurationProperty, - ) : CdkObject(cdkObject), ImageConfigurationProperty { + ) : CdkObject(cdkObject), + ImageConfigurationProperty { /** * The port that your application listens to in the container. * @@ -2984,7 +2994,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.ImageRepositoryProperty, - ) : CdkObject(cdkObject), ImageRepositoryProperty { + ) : CdkObject(cdkObject), + ImageRepositoryProperty { /** * Configuration for running the identified image. * @@ -3115,7 +3126,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.IngressConfigurationProperty, - ) : CdkObject(cdkObject), IngressConfigurationProperty { + ) : CdkObject(cdkObject), + IngressConfigurationProperty { /** * Specifies whether your App Runner service is publicly accessible. * @@ -3258,7 +3270,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.InstanceConfigurationProperty, - ) : CdkObject(cdkObject), InstanceConfigurationProperty { + ) : CdkObject(cdkObject), + InstanceConfigurationProperty { /** * The number of CPU units reserved for each instance of your App Runner service. * @@ -3379,7 +3392,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.KeyValuePairProperty, - ) : CdkObject(cdkObject), KeyValuePairProperty { + ) : CdkObject(cdkObject), + KeyValuePairProperty { /** * The key name string to map to a value. * @@ -3606,7 +3620,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * Network configuration settings for outbound message traffic. * @@ -3781,7 +3796,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.ServiceObservabilityConfigurationProperty, - ) : CdkObject(cdkObject), ServiceObservabilityConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceObservabilityConfigurationProperty { /** * The Amazon Resource Name (ARN) of the observability configuration that is associated with * the service. @@ -3912,7 +3928,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.SourceCodeVersionProperty, - ) : CdkObject(cdkObject), SourceCodeVersionProperty { + ) : CdkObject(cdkObject), + SourceCodeVersionProperty { /** * The type of version identifier. * @@ -4274,7 +4291,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnService.SourceConfigurationProperty, - ) : CdkObject(cdkObject), SourceConfigurationProperty { + ) : CdkObject(cdkObject), + SourceConfigurationProperty { /** * Describes the resources that are needed to authenticate access to some source repositories. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnServiceProps.kt index 577493d1e3..1f3160a0e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnServiceProps.kt @@ -598,7 +598,8 @@ public interface CfnServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnServiceProps, - ) : CdkObject(cdkObject), CfnServiceProps { + ) : CdkObject(cdkObject), + CfnServiceProps { /** * The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that * you want to associate with your service. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnector.kt index 196f8a4161..59e5b1e943 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnector.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcConnector( cdkObject: software.amazon.awscdk.services.apprunner.CfnVpcConnector, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnectorProps.kt index cab9f64ac2..6f2c412989 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcConnectorProps.kt @@ -236,7 +236,8 @@ public interface CfnVpcConnectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnVpcConnectorProps, - ) : CdkObject(cdkObject), CfnVpcConnectorProps { + ) : CdkObject(cdkObject), + CfnVpcConnectorProps { /** * A list of IDs of security groups that App Runner should use for access to AWS resources under * the specified subnets. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnection.kt index e828590189..2ca01e0a25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnection.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcIngressConnection( cdkObject: software.amazon.awscdk.services.apprunner.CfnVpcIngressConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -463,7 +465,8 @@ public open class CfnVpcIngressConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnVpcIngressConnection.IngressVpcConfigurationProperty, - ) : CdkObject(cdkObject), IngressVpcConfigurationProperty { + ) : CdkObject(cdkObject), + IngressVpcConfigurationProperty { /** * The ID of the VPC endpoint that your App Runner service connects to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnectionProps.kt index 7e9320cf83..d5590c55fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apprunner/CfnVpcIngressConnectionProps.kt @@ -197,7 +197,8 @@ public interface CfnVpcIngressConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.apprunner.CfnVpcIngressConnectionProps, - ) : CdkObject(cdkObject), CfnVpcIngressConnectionProps { + ) : CdkObject(cdkObject), + CfnVpcIngressConnectionProps { /** * Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint * that are used to create the VPC Ingress Connection resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlock.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlock.kt index c0df6206a9..49508b2fd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlock.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlock.kt @@ -78,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAppBlock( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlock, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -663,7 +665,8 @@ public open class CfnAppBlock( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlock.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The S3 bucket of the app block. * @@ -845,7 +848,8 @@ public open class CfnAppBlock( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlock.ScriptDetailsProperty, - ) : CdkObject(cdkObject), ScriptDetailsProperty { + ) : CdkObject(cdkObject), + ScriptDetailsProperty { /** * The parameters used in the run path for the script. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilder.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilder.kt index b530dfbd54..8ca3751b1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilder.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilder.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAppBlockBuilder( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlockBuilder, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -735,7 +737,8 @@ public open class CfnAppBlockBuilder( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlockBuilder.AccessEndpointProperty, - ) : CdkObject(cdkObject), AccessEndpointProperty { + ) : CdkObject(cdkObject), + AccessEndpointProperty { /** * The type of interface endpoint. * @@ -879,7 +882,8 @@ public open class CfnAppBlockBuilder( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlockBuilder.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The identifiers of the security groups for the fleet or image builder. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilderProps.kt index 5db02c52f1..d35b412e74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockBuilderProps.kt @@ -374,7 +374,8 @@ public interface CfnAppBlockBuilderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlockBuilderProps, - ) : CdkObject(cdkObject), CfnAppBlockBuilderProps { + ) : CdkObject(cdkObject), + CfnAppBlockBuilderProps { /** * The access endpoints of the app block builder. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockProps.kt index d7865be2d0..a4285bed99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnAppBlockProps.kt @@ -333,7 +333,8 @@ public interface CfnAppBlockProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnAppBlockProps, - ) : CdkObject(cdkObject), CfnAppBlockProps { + ) : CdkObject(cdkObject), + CfnAppBlockProps { /** * The description of the app block. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplication.kt index d6982f2ad7..ba130188e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplication.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.appstream.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -744,7 +746,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnApplication.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The S3 bucket of the S3 object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociation.kt index 700c9e4eda..6f42dd472d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociation.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationEntitlementAssociation( cdkObject: software.amazon.awscdk.services.appstream.CfnApplicationEntitlementAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociationProps.kt index c901c65ce2..579f62bbe0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationEntitlementAssociationProps.kt @@ -104,7 +104,8 @@ public interface CfnApplicationEntitlementAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnApplicationEntitlementAssociationProps, - ) : CdkObject(cdkObject), CfnApplicationEntitlementAssociationProps { + ) : CdkObject(cdkObject), + CfnApplicationEntitlementAssociationProps { /** * The identifier of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociation.kt index e58fa0160f..894bca8f62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociation.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationFleetAssociation( cdkObject: software.amazon.awscdk.services.appstream.CfnApplicationFleetAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociationProps.kt index e907bc80e4..b5a4959d53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationFleetAssociationProps.kt @@ -83,7 +83,8 @@ public interface CfnApplicationFleetAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnApplicationFleetAssociationProps, - ) : CdkObject(cdkObject), CfnApplicationFleetAssociationProps { + ) : CdkObject(cdkObject), + CfnApplicationFleetAssociationProps { /** * The ARN of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationProps.kt index d85a30487b..72baacf7c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnApplicationProps.kt @@ -389,7 +389,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The app block ARN with which the application should be associated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfig.kt index 4d3a60f661..f0215618e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfig.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDirectoryConfig( cdkObject: software.amazon.awscdk.services.appstream.CfnDirectoryConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -562,7 +563,8 @@ public open class CfnDirectoryConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnDirectoryConfig.CertificateBasedAuthPropertiesProperty, - ) : CdkObject(cdkObject), CertificateBasedAuthPropertiesProperty { + ) : CdkObject(cdkObject), + CertificateBasedAuthPropertiesProperty { /** * The ARN of the AWS Certificate Manager Private CA resource. * @@ -691,7 +693,8 @@ public open class CfnDirectoryConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty, - ) : CdkObject(cdkObject), ServiceAccountCredentialsProperty { + ) : CdkObject(cdkObject), + ServiceAccountCredentialsProperty { /** * The user name of the account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfigProps.kt index f12453296a..deb2ac64ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnDirectoryConfigProps.kt @@ -281,7 +281,8 @@ public interface CfnDirectoryConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnDirectoryConfigProps, - ) : CdkObject(cdkObject), CfnDirectoryConfigProps { + ) : CdkObject(cdkObject), + CfnDirectoryConfigProps { /** * The certificate-based authentication properties used to authenticate SAML 2.0 Identity * Provider (IdP) user identities to Active Directory domain-joined streaming instances. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlement.kt index 721ba2abc1..2e5ee9873c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlement.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEntitlement( cdkObject: software.amazon.awscdk.services.appstream.CfnEntitlement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -428,7 +429,8 @@ public open class CfnEntitlement( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnEntitlement.AttributeProperty, - ) : CdkObject(cdkObject), AttributeProperty { + ) : CdkObject(cdkObject), + AttributeProperty { /** * A supported AWS IAM SAML PrincipalTag attribute that is matched to a value when a user * identity federates to an AppStream 2.0 SAML application. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlementProps.kt index eb1b0b633e..eb481b87dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnEntitlementProps.kt @@ -169,7 +169,8 @@ public interface CfnEntitlementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnEntitlementProps, - ) : CdkObject(cdkObject), CfnEntitlementProps { + ) : CdkObject(cdkObject), + CfnEntitlementProps { /** * Specifies whether to entitle all apps or only selected apps. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleet.kt index bbb72d3839..18ddcf7e09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleet.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.appstream.CfnFleet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1486,7 +1488,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnFleet.ComputeCapacityProperty, - ) : CdkObject(cdkObject), ComputeCapacityProperty { + ) : CdkObject(cdkObject), + ComputeCapacityProperty { /** * The desired number of streaming instances. * @@ -1606,7 +1609,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnFleet.DomainJoinInfoProperty, - ) : CdkObject(cdkObject), DomainJoinInfoProperty { + ) : CdkObject(cdkObject), + DomainJoinInfoProperty { /** * The fully qualified name of the directory (for example, corp.example.com). * @@ -1714,7 +1718,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnFleet.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The S3 bucket of the S3 object. * @@ -1853,7 +1858,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnFleet.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The identifiers of the security groups for the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleetProps.kt index 50c5e9cb6b..2ad5354f56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnFleetProps.kt @@ -961,7 +961,8 @@ public interface CfnFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * The desired capacity for the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilder.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilder.kt index b13fa20927..904ecf2eb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilder.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilder.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImageBuilder( cdkObject: software.amazon.awscdk.services.appstream.CfnImageBuilder, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -958,7 +960,8 @@ public open class CfnImageBuilder( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnImageBuilder.AccessEndpointProperty, - ) : CdkObject(cdkObject), AccessEndpointProperty { + ) : CdkObject(cdkObject), + AccessEndpointProperty { /** * The type of interface endpoint. * @@ -1073,7 +1076,8 @@ public open class CfnImageBuilder( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnImageBuilder.DomainJoinInfoProperty, - ) : CdkObject(cdkObject), DomainJoinInfoProperty { + ) : CdkObject(cdkObject), + DomainJoinInfoProperty { /** * The fully qualified name of the directory (for example, corp.example.com). * @@ -1214,7 +1218,8 @@ public open class CfnImageBuilder( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnImageBuilder.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The identifiers of the security groups for the image builder. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilderProps.kt index ce0f2a13af..87d730728e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnImageBuilderProps.kt @@ -581,7 +581,8 @@ public interface CfnImageBuilderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnImageBuilderProps, - ) : CdkObject(cdkObject), CfnImageBuilderProps { + ) : CdkObject(cdkObject), + CfnImageBuilderProps { /** * The list of virtual private cloud (VPC) interface endpoint objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStack.kt index f3b91c178f..d576ac640f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStack.kt @@ -77,7 +77,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStack( cdkObject: software.amazon.awscdk.services.appstream.CfnStack, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appstream.CfnStack(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1098,7 +1100,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStack.AccessEndpointProperty, - ) : CdkObject(cdkObject), AccessEndpointProperty { + ) : CdkObject(cdkObject), + AccessEndpointProperty { /** * The type of interface endpoint. * @@ -1233,7 +1236,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStack.ApplicationSettingsProperty, - ) : CdkObject(cdkObject), ApplicationSettingsProperty { + ) : CdkObject(cdkObject), + ApplicationSettingsProperty { /** * Enables or disables persistent application settings for users during their streaming * sessions. @@ -1376,7 +1380,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStack.StorageConnectorProperty, - ) : CdkObject(cdkObject), StorageConnectorProperty { + ) : CdkObject(cdkObject), + StorageConnectorProperty { /** * The type of storage connector. * @@ -1477,7 +1482,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStack.StreamingExperienceSettingsProperty, - ) : CdkObject(cdkObject), StreamingExperienceSettingsProperty { + ) : CdkObject(cdkObject), + StreamingExperienceSettingsProperty { /** * The preferred protocol that you want to use while streaming your application. * @@ -1625,7 +1631,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStack.UserSettingProperty, - ) : CdkObject(cdkObject), UserSettingProperty { + ) : CdkObject(cdkObject), + UserSettingProperty { /** * The action that is enabled or disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociation.kt index bbcac9cdcb..30e726afb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociation.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStackFleetAssociation( cdkObject: software.amazon.awscdk.services.appstream.CfnStackFleetAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociationProps.kt index 92fcb04562..476113591d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackFleetAssociationProps.kt @@ -108,7 +108,8 @@ public interface CfnStackFleetAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStackFleetAssociationProps, - ) : CdkObject(cdkObject), CfnStackFleetAssociationProps { + ) : CdkObject(cdkObject), + CfnStackFleetAssociationProps { /** * The name of the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackProps.kt index b2d2c46799..cccbf447ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackProps.kt @@ -587,7 +587,8 @@ public interface CfnStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStackProps, - ) : CdkObject(cdkObject), CfnStackProps { + ) : CdkObject(cdkObject), + CfnStackProps { /** * The list of virtual private cloud (VPC) interface endpoint objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociation.kt index 3151911529..d2bea82e27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociation.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStackUserAssociation( cdkObject: software.amazon.awscdk.services.appstream.CfnStackUserAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociationProps.kt index 8d37c68235..70425160e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnStackUserAssociationProps.kt @@ -156,7 +156,8 @@ public interface CfnStackUserAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnStackUserAssociationProps, - ) : CdkObject(cdkObject), CfnStackUserAssociationProps { + ) : CdkObject(cdkObject), + CfnStackUserAssociationProps { /** * The authentication type for the user who is associated with the stack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUser.kt index a8df3b613c..0a44dd0664 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUser.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.appstream.CfnUser, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUserProps.kt index 8bf5d460ce..c5416c34ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appstream/CfnUserProps.kt @@ -177,7 +177,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appstream.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * The authentication type for the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ApiKeyConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ApiKeyConfig.kt index 28ae5633e8..a71f165f6d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ApiKeyConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ApiKeyConfig.kt @@ -107,7 +107,8 @@ public interface ApiKeyConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ApiKeyConfig, - ) : CdkObject(cdkObject), ApiKeyConfig { + ) : CdkObject(cdkObject), + ApiKeyConfig { /** * Description of API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunction.kt index 564902d586..26d654c7eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunction.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.services.appsync import io.cloudshiftdev.awscdk.Resource import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName @@ -31,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class AppsyncFunction( cdkObject: software.amazon.awscdk.services.appsync.AppsyncFunction, -) : Resource(cdkObject), IAppsyncFunction { +) : Resource(cdkObject), + IAppsyncFunction { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -106,6 +108,19 @@ public open class AppsyncFunction( */ public fun description(description: String) + /** + * The maximum number of resolver request inputs that will be sent to a single AWS Lambda + * function in a BatchInvoke operation. + * + * Can only be set when using LambdaDataSource. + * + * Default: - No max batch size + * + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + */ + public fun maxBatchSize(maxBatchSize: Number) + /** * the name of the AppSync Function. * @@ -188,6 +203,21 @@ public open class AppsyncFunction( cdkBuilder.description(description) } + /** + * The maximum number of resolver request inputs that will be sent to a single AWS Lambda + * function in a BatchInvoke operation. + * + * Can only be set when using LambdaDataSource. + * + * Default: - No max batch size + * + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + */ + override fun maxBatchSize(maxBatchSize: Number) { + cdkBuilder.maxBatchSize(maxBatchSize) + } + /** * the name of the AppSync Function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionAttributes.kt index 97fc86384d..1f5d422bea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionAttributes.kt @@ -57,7 +57,8 @@ public interface AppsyncFunctionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.AppsyncFunctionAttributes, - ) : CdkObject(cdkObject), AppsyncFunctionAttributes { + ) : CdkObject(cdkObject), + AppsyncFunctionAttributes { /** * the ARN of the AppSync function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionProps.kt index 38d26481f3..56ebdd3a56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionProps.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.appsync import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number import kotlin.String import kotlin.Unit @@ -60,6 +61,13 @@ public interface AppsyncFunctionProps : BaseAppsyncFunctionProps { */ public fun description(description: String) + /** + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + * Can only be set when using LambdaDataSource. + */ + public fun maxBatchSize(maxBatchSize: Number) + /** * @param name the name of the AppSync Function. */ @@ -113,6 +121,15 @@ public interface AppsyncFunctionProps : BaseAppsyncFunctionProps { cdkBuilder.description(description) } + /** + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + * Can only be set when using LambdaDataSource. + */ + override fun maxBatchSize(maxBatchSize: Number) { + cdkBuilder.maxBatchSize(maxBatchSize) + } + /** * @param name the name of the AppSync Function. */ @@ -147,7 +164,8 @@ public interface AppsyncFunctionProps : BaseAppsyncFunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.AppsyncFunctionProps, - ) : CdkObject(cdkObject), AppsyncFunctionProps { + ) : CdkObject(cdkObject), + AppsyncFunctionProps { /** * the GraphQL Api linked to this AppSync Function. */ @@ -173,6 +191,16 @@ public interface AppsyncFunctionProps : BaseAppsyncFunctionProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The maximum number of resolver request inputs that will be sent to a single AWS Lambda + * function in a BatchInvoke operation. + * + * Can only be set when using LambdaDataSource. + * + * Default: - No max batch size + */ + override fun maxBatchSize(): Number? = unwrap(this).getMaxBatchSize() + /** * the name of the AppSync Function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationConfig.kt index 4b69270418..8e5fb7b34d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationConfig.kt @@ -119,7 +119,8 @@ public interface AuthorizationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.AuthorizationConfig, - ) : CdkObject(cdkObject), AuthorizationConfig { + ) : CdkObject(cdkObject), + AuthorizationConfig { /** * Additional authorization modes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationMode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationMode.kt index 251db1026c..d76690ad33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationMode.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AuthorizationMode.kt @@ -228,7 +228,8 @@ public interface AuthorizationMode { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.AuthorizationMode, - ) : CdkObject(cdkObject), AuthorizationMode { + ) : CdkObject(cdkObject), + AuthorizationMode { /** * If authorizationType is `AuthorizationType.API_KEY`, this option can be configured. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AwsIamConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AwsIamConfig.kt index 6f2a7897f5..76abdadd6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AwsIamConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AwsIamConfig.kt @@ -85,7 +85,8 @@ public interface AwsIamConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.AwsIamConfig, - ) : CdkObject(cdkObject), AwsIamConfig { + ) : CdkObject(cdkObject), + AwsIamConfig { /** * The signing region for AWS IAM authorization. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSource.kt index ad3d84bfb4..c5b6adc014 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSource.kt @@ -14,7 +14,8 @@ import io.cloudshiftdev.awscdk.services.iam.IPrincipal */ public abstract class BackedDataSource( cdkObject: software.amazon.awscdk.services.appsync.BackedDataSource, -) : BaseDataSource(cdkObject), IGrantable { +) : BaseDataSource(cdkObject), + IGrantable { /** * the principal of the data source to be IGrantable. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSourceProps.kt index cf1012e3e4..d1bb8aea49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BackedDataSourceProps.kt @@ -104,7 +104,8 @@ public interface BackedDataSourceProps : BaseDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.BackedDataSourceProps, - ) : CdkObject(cdkObject), BackedDataSourceProps { + ) : CdkObject(cdkObject), + BackedDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseAppsyncFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseAppsyncFunctionProps.kt index 803d37dc16..c58798375d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseAppsyncFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseAppsyncFunctionProps.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.appsync import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number import kotlin.String import kotlin.Unit @@ -25,6 +26,7 @@ import kotlin.Unit * // the properties below are optional * .code(code) * .description("description") + * .maxBatchSize(123) * .requestMappingTemplate(mappingTemplate) * .responseMappingTemplate(mappingTemplate) * .runtime(functionRuntime) @@ -46,6 +48,16 @@ public interface BaseAppsyncFunctionProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * The maximum number of resolver request inputs that will be sent to a single AWS Lambda function + * in a BatchInvoke operation. + * + * Can only be set when using LambdaDataSource. + * + * Default: - No max batch size + */ + public fun maxBatchSize(): Number? = unwrap(this).getMaxBatchSize() + /** * the name of the AppSync Function. */ @@ -89,6 +101,13 @@ public interface BaseAppsyncFunctionProps { */ public fun description(description: String) + /** + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + * Can only be set when using LambdaDataSource. + */ + public fun maxBatchSize(maxBatchSize: Number) + /** * @param name the name of the AppSync Function. */ @@ -128,6 +147,15 @@ public interface BaseAppsyncFunctionProps { cdkBuilder.description(description) } + /** + * @param maxBatchSize The maximum number of resolver request inputs that will be sent to a + * single AWS Lambda function in a BatchInvoke operation. + * Can only be set when using LambdaDataSource. + */ + override fun maxBatchSize(maxBatchSize: Number) { + cdkBuilder.maxBatchSize(maxBatchSize) + } + /** * @param name the name of the AppSync Function. */ @@ -162,7 +190,8 @@ public interface BaseAppsyncFunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.BaseAppsyncFunctionProps, - ) : CdkObject(cdkObject), BaseAppsyncFunctionProps { + ) : CdkObject(cdkObject), + BaseAppsyncFunctionProps { /** * The function code. * @@ -177,6 +206,16 @@ public interface BaseAppsyncFunctionProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The maximum number of resolver request inputs that will be sent to a single AWS Lambda + * function in a BatchInvoke operation. + * + * Can only be set when using LambdaDataSource. + * + * Default: - No max batch size + */ + override fun maxBatchSize(): Number? = unwrap(this).getMaxBatchSize() + /** * the name of the AppSync Function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseDataSourceProps.kt index 2da4e2dcfd..efa61b945b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseDataSourceProps.kt @@ -98,7 +98,8 @@ public interface BaseDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.BaseDataSourceProps, - ) : CdkObject(cdkObject), BaseDataSourceProps { + ) : CdkObject(cdkObject), + BaseDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseResolverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseResolverProps.kt index b8d5eae684..333adfd8b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseResolverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/BaseResolverProps.kt @@ -271,7 +271,8 @@ public interface BaseResolverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.BaseResolverProps, - ) : CdkObject(cdkObject), BaseResolverProps { + ) : CdkObject(cdkObject), + BaseResolverProps { /** * The caching configuration for this resolver. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CachingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CachingConfig.kt index 2ba28b10f5..0d5af6333d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CachingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CachingConfig.kt @@ -104,7 +104,8 @@ public interface CachingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CachingConfig, - ) : CdkObject(cdkObject), CachingConfig { + ) : CdkObject(cdkObject), + CachingConfig { /** * The caching keys for a resolver that has caching enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCache.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCache.kt index d9874d30ed..f14c0236a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCache.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCache.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiCache( cdkObject: software.amazon.awscdk.services.appsync.CfnApiCache, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCacheProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCacheProps.kt index c3d45c81f2..49c6f99a9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCacheProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiCacheProps.kt @@ -320,7 +320,8 @@ public interface CfnApiCacheProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnApiCacheProps, - ) : CdkObject(cdkObject), CfnApiCacheProps { + ) : CdkObject(cdkObject), + CfnApiCacheProps { /** * Caching behavior. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKey.kt index 0c40536da5..e4a336d2ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKey.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiKey( cdkObject: software.amazon.awscdk.services.appsync.CfnApiKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKeyProps.kt index 2875e0783d..62f254da59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnApiKeyProps.kt @@ -105,7 +105,8 @@ public interface CfnApiKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnApiKeyProps, - ) : CdkObject(cdkObject), CfnApiKeyProps { + ) : CdkObject(cdkObject), + CfnApiKeyProps { /** * Unique AWS AppSync GraphQL API ID for this API key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSource.kt index 3c0e8eeded..0a1fb8d051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSource.kt @@ -94,7 +94,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1183,7 +1184,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.AuthorizationConfigProperty, - ) : CdkObject(cdkObject), AuthorizationConfigProperty { + ) : CdkObject(cdkObject), + AuthorizationConfigProperty { /** * The authorization type that the HTTP endpoint requires. * @@ -1300,7 +1302,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.AwsIamConfigProperty, - ) : CdkObject(cdkObject), AwsIamConfigProperty { + ) : CdkObject(cdkObject), + AwsIamConfigProperty { /** * The signing Region for AWS Identity and Access Management authorization. * @@ -1430,7 +1433,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.DeltaSyncConfigProperty, - ) : CdkObject(cdkObject), DeltaSyncConfigProperty { + ) : CdkObject(cdkObject), + DeltaSyncConfigProperty { /** * The number of minutes that an Item is stored in the data source. * @@ -1674,7 +1678,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty, - ) : CdkObject(cdkObject), DynamoDBConfigProperty { + ) : CdkObject(cdkObject), + DynamoDBConfigProperty { /** * The AWS Region. * @@ -1813,7 +1818,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.ElasticsearchConfigProperty, - ) : CdkObject(cdkObject), ElasticsearchConfigProperty { + ) : CdkObject(cdkObject), + ElasticsearchConfigProperty { /** * The AWS Region. * @@ -1910,7 +1916,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.EventBridgeConfigProperty, - ) : CdkObject(cdkObject), EventBridgeConfigProperty { + ) : CdkObject(cdkObject), + EventBridgeConfigProperty { /** * The event bus pipeline's ARN. * @@ -2054,7 +2061,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.HttpConfigProperty, - ) : CdkObject(cdkObject), HttpConfigProperty { + ) : CdkObject(cdkObject), + HttpConfigProperty { /** * The authorization configuration. * @@ -2146,7 +2154,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.LambdaConfigProperty, - ) : CdkObject(cdkObject), LambdaConfigProperty { + ) : CdkObject(cdkObject), + LambdaConfigProperty { /** * The ARN for the Lambda function. * @@ -2254,7 +2263,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.OpenSearchServiceConfigProperty, - ) : CdkObject(cdkObject), OpenSearchServiceConfigProperty { + ) : CdkObject(cdkObject), + OpenSearchServiceConfigProperty { /** * The AWS Region. * @@ -2430,7 +2440,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.RdsHttpEndpointConfigProperty, - ) : CdkObject(cdkObject), RdsHttpEndpointConfigProperty { + ) : CdkObject(cdkObject), + RdsHttpEndpointConfigProperty { /** * AWS Region for RDS HTTP endpoint. * @@ -2603,7 +2614,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSource.RelationalDatabaseConfigProperty, - ) : CdkObject(cdkObject), RelationalDatabaseConfigProperty { + ) : CdkObject(cdkObject), + RelationalDatabaseConfigProperty { /** * Information about the Amazon RDS resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSourceProps.kt index 38a0e2fad2..b3cfe0b8a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDataSourceProps.kt @@ -683,7 +683,8 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** * Unique AWS AppSync GraphQL API identifier where this data source will be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainName.kt index 9a43caf286..7c4e363d09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainName.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomainName( cdkObject: software.amazon.awscdk.services.appsync.CfnDomainName, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociation.kt index 09abdc0410..36049b04e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociation.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomainNameApiAssociation( cdkObject: software.amazon.awscdk.services.appsync.CfnDomainNameApiAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociationProps.kt index 0dae1015a3..b521f9e596 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameApiAssociationProps.kt @@ -82,7 +82,8 @@ public interface CfnDomainNameApiAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDomainNameApiAssociationProps, - ) : CdkObject(cdkObject), CfnDomainNameApiAssociationProps { + ) : CdkObject(cdkObject), + CfnDomainNameApiAssociationProps { /** * The API ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameProps.kt index 51523ef81c..6cc9f366d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnDomainNameProps.kt @@ -105,7 +105,8 @@ public interface CfnDomainNameProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnDomainNameProps, - ) : CdkObject(cdkObject), CfnDomainNameProps { + ) : CdkObject(cdkObject), + CfnDomainNameProps { /** * The Amazon Resource Name (ARN) of the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfiguration.kt index 83f743fd7f..213b5b3cd1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfiguration.kt @@ -76,7 +76,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunctionConfiguration( cdkObject: software.amazon.awscdk.services.appsync.CfnFunctionConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -845,7 +846,8 @@ public open class CfnFunctionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnFunctionConfiguration.AppSyncRuntimeProperty, - ) : CdkObject(cdkObject), AppSyncRuntimeProperty { + ) : CdkObject(cdkObject), + AppSyncRuntimeProperty { /** * The `name` of the runtime to use. * @@ -941,7 +943,8 @@ public open class CfnFunctionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnFunctionConfiguration.LambdaConflictHandlerConfigProperty, - ) : CdkObject(cdkObject), LambdaConflictHandlerConfigProperty { + ) : CdkObject(cdkObject), + LambdaConflictHandlerConfigProperty { /** * The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * @@ -1133,7 +1136,8 @@ public open class CfnFunctionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnFunctionConfiguration.SyncConfigProperty, - ) : CdkObject(cdkObject), SyncConfigProperty { + ) : CdkObject(cdkObject), + SyncConfigProperty { /** * The Conflict Detection strategy to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfigurationProps.kt index 4c7d1e7b47..51449ee0f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnFunctionConfigurationProps.kt @@ -457,7 +457,8 @@ public interface CfnFunctionConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnFunctionConfigurationProps, - ) : CdkObject(cdkObject), CfnFunctionConfigurationProps { + ) : CdkObject(cdkObject), + CfnFunctionConfigurationProps { /** * The AWS AppSync GraphQL API that you want to attach using this function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApi.kt index da2c2634c6..415d9cf7a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApi.kt @@ -107,7 +107,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGraphQLApi( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1578,7 +1580,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.AdditionalAuthenticationProviderProperty, - ) : CdkObject(cdkObject), AdditionalAuthenticationProviderProperty { + ) : CdkObject(cdkObject), + AdditionalAuthenticationProviderProperty { /** * The authentication type for API key, AWS Identity and Access Management , OIDC, Amazon * Cognito user pools , or AWS Lambda . @@ -1733,7 +1736,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.CognitoUserPoolConfigProperty, - ) : CdkObject(cdkObject), CognitoUserPoolConfigProperty { + ) : CdkObject(cdkObject), + CognitoUserPoolConfigProperty { /** * A regular expression for validating the incoming Amazon Cognito user pool app client ID. * @@ -1977,7 +1981,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.EnhancedMetricsConfigProperty, - ) : CdkObject(cdkObject), EnhancedMetricsConfigProperty { + ) : CdkObject(cdkObject), + EnhancedMetricsConfigProperty { /** * Controls how data source metrics will be emitted to CloudWatch. Data source metrics * include:. @@ -2198,7 +2203,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.LambdaAuthorizerConfigProperty, - ) : CdkObject(cdkObject), LambdaAuthorizerConfigProperty { + ) : CdkObject(cdkObject), + LambdaAuthorizerConfigProperty { /** * The number of seconds a response should be cached for. * @@ -2297,16 +2303,28 @@ public open class CfnGraphQLApi( public fun excludeVerboseContent(): Any? = unwrap(this).getExcludeVerboseContent() /** - * The field logging level. Values can be NONE, ERROR, or ALL. + * The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL. * * * *NONE* : No field-level logs are captured. - * * *ERROR* : Logs the following information only for the fields that are in error: + * * *ERROR* : Logs the following information *only* for the fields that are in the error + * category: * * The error section in the server response. * * Field-level errors. * * The generated request/response functions that got resolved for error fields. + * * *INFO* : Logs the following information *only* for the fields that are in the info and + * error categories: + * * Info-level messages. + * * The user messages sent through `$util.log.info` and `console.log` . + * * Field-level tracing and mapping logs are not shown. + * * *DEBUG* : Logs the following information *only* for the fields that are in the debug, info, + * and error categories: + * * Debug-level messages. + * * The user messages sent through `$util.log.info` , `$util.log.debug` , `console.log` , and + * `console.debug` . + * * Field-level tracing and mapping logs are not shown. * * *ALL* : The following information is logged for all fields in the query: * * Field-level tracing information. - * * The generated request/response functions that got resolved for each field. + * * The generated request/response functions that were resolved for each field. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-fieldloglevel) */ @@ -2336,15 +2354,28 @@ public open class CfnGraphQLApi( public fun excludeVerboseContent(excludeVerboseContent: IResolvable) /** - * @param fieldLogLevel The field logging level. Values can be NONE, ERROR, or ALL. + * @param fieldLogLevel The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or + * ALL. * * *NONE* : No field-level logs are captured. - * * *ERROR* : Logs the following information only for the fields that are in error: + * * *ERROR* : Logs the following information *only* for the fields that are in the error + * category: * * The error section in the server response. * * Field-level errors. * * The generated request/response functions that got resolved for error fields. + * * *INFO* : Logs the following information *only* for the fields that are in the info and + * error categories: + * * Info-level messages. + * * The user messages sent through `$util.log.info` and `console.log` . + * * Field-level tracing and mapping logs are not shown. + * * *DEBUG* : Logs the following information *only* for the fields that are in the debug, + * info, and error categories: + * * Debug-level messages. + * * The user messages sent through `$util.log.info` , `$util.log.debug` , `console.log` , and + * `console.debug` . + * * Field-level tracing and mapping logs are not shown. * * *ALL* : The following information is logged for all fields in the query: * * Field-level tracing information. - * * The generated request/response functions that got resolved for each field. + * * The generated request/response functions that were resolved for each field. */ public fun fieldLogLevel(fieldLogLevel: String) } @@ -2379,15 +2410,28 @@ public open class CfnGraphQLApi( } /** - * @param fieldLogLevel The field logging level. Values can be NONE, ERROR, or ALL. + * @param fieldLogLevel The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or + * ALL. * * *NONE* : No field-level logs are captured. - * * *ERROR* : Logs the following information only for the fields that are in error: + * * *ERROR* : Logs the following information *only* for the fields that are in the error + * category: * * The error section in the server response. * * Field-level errors. * * The generated request/response functions that got resolved for error fields. + * * *INFO* : Logs the following information *only* for the fields that are in the info and + * error categories: + * * Info-level messages. + * * The user messages sent through `$util.log.info` and `console.log` . + * * Field-level tracing and mapping logs are not shown. + * * *DEBUG* : Logs the following information *only* for the fields that are in the debug, + * info, and error categories: + * * Debug-level messages. + * * The user messages sent through `$util.log.info` , `$util.log.debug` , `console.log` , and + * `console.debug` . + * * Field-level tracing and mapping logs are not shown. * * *ALL* : The following information is logged for all fields in the query: * * Field-level tracing information. - * * The generated request/response functions that got resolved for each field. + * * The generated request/response functions that were resolved for each field. */ override fun fieldLogLevel(fieldLogLevel: String) { cdkBuilder.fieldLogLevel(fieldLogLevel) @@ -2399,7 +2443,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.LogConfigProperty, - ) : CdkObject(cdkObject), LogConfigProperty { + ) : CdkObject(cdkObject), + LogConfigProperty { /** * The service role that AWS AppSync will assume to publish to Amazon CloudWatch Logs in your * account. @@ -2417,16 +2462,28 @@ public open class CfnGraphQLApi( override fun excludeVerboseContent(): Any? = unwrap(this).getExcludeVerboseContent() /** - * The field logging level. Values can be NONE, ERROR, or ALL. + * The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL. * * * *NONE* : No field-level logs are captured. - * * *ERROR* : Logs the following information only for the fields that are in error: + * * *ERROR* : Logs the following information *only* for the fields that are in the error + * category: * * The error section in the server response. * * Field-level errors. * * The generated request/response functions that got resolved for error fields. + * * *INFO* : Logs the following information *only* for the fields that are in the info and + * error categories: + * * Info-level messages. + * * The user messages sent through `$util.log.info` and `console.log` . + * * Field-level tracing and mapping logs are not shown. + * * *DEBUG* : Logs the following information *only* for the fields that are in the debug, + * info, and error categories: + * * Debug-level messages. + * * The user messages sent through `$util.log.info` , `$util.log.debug` , `console.log` , and + * `console.debug` . + * * Field-level tracing and mapping logs are not shown. * * *ALL* : The following information is logged for all fields in the query: * * Field-level tracing information. - * * The generated request/response functions that got resolved for each field. + * * The generated request/response functions that were resolved for each field. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-fieldloglevel) */ @@ -2586,7 +2643,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.OpenIDConnectConfigProperty, - ) : CdkObject(cdkObject), OpenIDConnectConfigProperty { + ) : CdkObject(cdkObject), + OpenIDConnectConfigProperty { /** * The number of milliseconds that a token is valid after being authenticated. * @@ -2773,7 +2831,8 @@ public open class CfnGraphQLApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApi.UserPoolConfigProperty, - ) : CdkObject(cdkObject), UserPoolConfigProperty { + ) : CdkObject(cdkObject), + UserPoolConfigProperty { /** * A regular expression for validating the incoming Amazon Cognito user pool app client ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApiProps.kt index d10d9d36c5..4f4df23d2f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLApiProps.kt @@ -875,7 +875,8 @@ public interface CfnGraphQLApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLApiProps, - ) : CdkObject(cdkObject), CfnGraphQLApiProps { + ) : CdkObject(cdkObject), + CfnGraphQLApiProps { /** * A list of additional authentication providers for the `GraphqlApi` API. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchema.kt index 009be06ead..2e81a9204d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchema.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGraphQLSchema( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLSchema, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchemaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchemaProps.kt index e4a1702ebf..eab29e12d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchemaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnGraphQLSchemaProps.kt @@ -118,7 +118,8 @@ public interface CfnGraphQLSchemaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnGraphQLSchemaProps, - ) : CdkObject(cdkObject), CfnGraphQLSchemaProps { + ) : CdkObject(cdkObject), + CfnGraphQLSchemaProps { /** * The AWS AppSync GraphQL API identifier to which you want to apply this schema. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolver.kt index d5cc1cd63b..3901a90822 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolver.kt @@ -86,7 +86,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolver( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1048,7 +1049,8 @@ public open class CfnResolver( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver.AppSyncRuntimeProperty, - ) : CdkObject(cdkObject), AppSyncRuntimeProperty { + ) : CdkObject(cdkObject), + AppSyncRuntimeProperty { /** * The `name` of the runtime to use. * @@ -1185,7 +1187,8 @@ public open class CfnResolver( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver.CachingConfigProperty, - ) : CdkObject(cdkObject), CachingConfigProperty { + ) : CdkObject(cdkObject), + CachingConfigProperty { /** * The caching keys for a resolver that has caching activated. * @@ -1282,7 +1285,8 @@ public open class CfnResolver( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver.LambdaConflictHandlerConfigProperty, - ) : CdkObject(cdkObject), LambdaConflictHandlerConfigProperty { + ) : CdkObject(cdkObject), + LambdaConflictHandlerConfigProperty { /** * The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * @@ -1377,7 +1381,8 @@ public open class CfnResolver( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver.PipelineConfigProperty, - ) : CdkObject(cdkObject), PipelineConfigProperty { + ) : CdkObject(cdkObject), + PipelineConfigProperty { /** * A list of `Function` objects. * @@ -1566,7 +1571,8 @@ public open class CfnResolver( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolver.SyncConfigProperty, - ) : CdkObject(cdkObject), SyncConfigProperty { + ) : CdkObject(cdkObject), + SyncConfigProperty { /** * The Conflict Detection strategy to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolverProps.kt index 2aa1f33448..8b7ea739d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnResolverProps.kt @@ -588,7 +588,8 @@ public interface CfnResolverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnResolverProps, - ) : CdkObject(cdkObject), CfnResolverProps { + ) : CdkObject(cdkObject), + CfnResolverProps { /** * The AWS AppSync GraphQL API to which you want to attach this resolver. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociation.kt index 49ec4dbf78..0555efc14a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociation.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSourceApiAssociation( cdkObject: software.amazon.awscdk.services.appsync.CfnSourceApiAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.appsync.CfnSourceApiAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -453,7 +454,8 @@ public open class CfnSourceApiAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnSourceApiAssociation.SourceApiAssociationConfigProperty, - ) : CdkObject(cdkObject), SourceApiAssociationConfigProperty { + ) : CdkObject(cdkObject), + SourceApiAssociationConfigProperty { /** * The property that indicates which merging option is enabled in the source API association. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociationProps.kt index ec5a9ddc70..a984453a8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CfnSourceApiAssociationProps.kt @@ -179,7 +179,8 @@ public interface CfnSourceApiAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CfnSourceApiAssociationProps, - ) : CdkObject(cdkObject), CfnSourceApiAssociationProps { + ) : CdkObject(cdkObject), + CfnSourceApiAssociationProps { /** * The description field of the association configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CodeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CodeConfig.kt index 17681aa2b7..949f286c1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CodeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/CodeConfig.kt @@ -77,7 +77,8 @@ public interface CodeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.CodeConfig, - ) : CdkObject(cdkObject), CodeConfig { + ) : CdkObject(cdkObject), + CodeConfig { /** * Inline code (mutually exclusive with `s3Location`). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DataSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DataSourceOptions.kt index 2282688efb..b79f5e7e0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DataSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DataSourceOptions.kt @@ -78,7 +78,8 @@ public interface DataSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.DataSourceOptions, - ) : CdkObject(cdkObject), DataSourceOptions { + ) : CdkObject(cdkObject), + DataSourceOptions { /** * The description of the data source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DomainOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DomainOptions.kt index 4faa2e20ce..005606979a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DomainOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DomainOptions.kt @@ -101,7 +101,8 @@ public interface DomainOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.DomainOptions, - ) : CdkObject(cdkObject), DomainOptions { + ) : CdkObject(cdkObject), + DomainOptions { /** * The certificate to use with the domain name. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DynamoDbDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DynamoDbDataSourceProps.kt index c39f584902..d11aa593e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DynamoDbDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/DynamoDbDataSourceProps.kt @@ -161,7 +161,8 @@ public interface DynamoDbDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.DynamoDbDataSourceProps, - ) : CdkObject(cdkObject), DynamoDbDataSourceProps { + ) : CdkObject(cdkObject), + DynamoDbDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ElasticsearchDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ElasticsearchDataSourceProps.kt index 6bed95bbe3..4b7a0ed639 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ElasticsearchDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ElasticsearchDataSourceProps.kt @@ -127,7 +127,8 @@ public interface ElasticsearchDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ElasticsearchDataSourceProps, - ) : CdkObject(cdkObject), ElasticsearchDataSourceProps { + ) : CdkObject(cdkObject), + ElasticsearchDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/EventBridgeDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/EventBridgeDataSourceProps.kt index 99839ad2de..e7e43c8dce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/EventBridgeDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/EventBridgeDataSourceProps.kt @@ -119,7 +119,8 @@ public interface EventBridgeDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.EventBridgeDataSourceProps, - ) : CdkObject(cdkObject), EventBridgeDataSourceProps { + ) : CdkObject(cdkObject), + EventBridgeDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedDataSourceProps.kt index fe56e3b4a4..8d7b398840 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedDataSourceProps.kt @@ -467,7 +467,8 @@ public interface ExtendedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ExtendedDataSourceProps, - ) : CdkObject(cdkObject), ExtendedDataSourceProps { + ) : CdkObject(cdkObject), + ExtendedDataSourceProps { /** * configuration for DynamoDB Datasource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedResolverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedResolverProps.kt index 030de102c0..31ed92c91e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedResolverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ExtendedResolverProps.kt @@ -215,7 +215,8 @@ public interface ExtendedResolverProps : BaseResolverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ExtendedResolverProps, - ) : CdkObject(cdkObject), ExtendedResolverProps { + ) : CdkObject(cdkObject), + ExtendedResolverProps { /** * The caching configuration for this resolver. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/FieldLogLevel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/FieldLogLevel.kt index b9008ecf9c..6235a7d291 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/FieldLogLevel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/FieldLogLevel.kt @@ -7,6 +7,8 @@ public enum class FieldLogLevel( ) { NONE(software.amazon.awscdk.services.appsync.FieldLogLevel.NONE), ERROR(software.amazon.awscdk.services.appsync.FieldLogLevel.ERROR), + INFO(software.amazon.awscdk.services.appsync.FieldLogLevel.INFO), + DEBUG(software.amazon.awscdk.services.appsync.FieldLogLevel.DEBUG), ALL(software.amazon.awscdk.services.appsync.FieldLogLevel.ALL), ; @@ -15,6 +17,8 @@ public enum class FieldLogLevel( FieldLogLevel = when (cdkObject) { software.amazon.awscdk.services.appsync.FieldLogLevel.NONE -> FieldLogLevel.NONE software.amazon.awscdk.services.appsync.FieldLogLevel.ERROR -> FieldLogLevel.ERROR + software.amazon.awscdk.services.appsync.FieldLogLevel.INFO -> FieldLogLevel.INFO + software.amazon.awscdk.services.appsync.FieldLogLevel.DEBUG -> FieldLogLevel.DEBUG software.amazon.awscdk.services.appsync.FieldLogLevel.ALL -> FieldLogLevel.ALL } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiAttributes.kt index 32b917031c..f5790493a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiAttributes.kt @@ -157,7 +157,8 @@ public interface GraphqlApiAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.GraphqlApiAttributes, - ) : CdkObject(cdkObject), GraphqlApiAttributes { + ) : CdkObject(cdkObject), + GraphqlApiAttributes { /** * The GraphQl endpoint arn for the GraphQL API. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiBase.kt index 9e9069ebe2..ef856ef9bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiBase.kt @@ -28,7 +28,8 @@ import io.cloudshiftdev.awscdk.services.opensearchservice.IDomain as Opensearchs */ public abstract class GraphqlApiBase( cdkObject: software.amazon.awscdk.services.appsync.GraphqlApiBase, -) : Resource(cdkObject), IGraphqlApi { +) : Resource(cdkObject), + IGraphqlApi { /** * add a new DynamoDB data source to this API. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiProps.kt index 35edb1c9d1..0e6116baf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/GraphqlApiProps.kt @@ -396,7 +396,8 @@ public interface GraphqlApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.GraphqlApiProps, - ) : CdkObject(cdkObject), GraphqlApiProps { + ) : CdkObject(cdkObject), + GraphqlApiProps { /** * Optional authorization configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceOptions.kt index 6a1cb7ad90..2ced95b90b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceOptions.kt @@ -116,7 +116,8 @@ public interface HttpDataSourceOptions : DataSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.HttpDataSourceOptions, - ) : CdkObject(cdkObject), HttpDataSourceOptions { + ) : CdkObject(cdkObject), + HttpDataSourceOptions { /** * The authorization config in case the HTTP endpoint requires authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceProps.kt index 5687a63970..c883151158 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/HttpDataSourceProps.kt @@ -141,7 +141,8 @@ public interface HttpDataSourceProps : BaseDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.HttpDataSourceProps, - ) : CdkObject(cdkObject), HttpDataSourceProps { + ) : CdkObject(cdkObject), + HttpDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IAppsyncFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IAppsyncFunction.kt index 6bd1cb4c27..48c173a62e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IAppsyncFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IAppsyncFunction.kt @@ -27,7 +27,8 @@ public interface IAppsyncFunction : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.IAppsyncFunction, - ) : CdkObject(cdkObject), IAppsyncFunction { + ) : CdkObject(cdkObject), + IAppsyncFunction { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IGraphqlApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IGraphqlApi.kt index 1cfbe11c56..a25963a9ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IGraphqlApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/IGraphqlApi.kt @@ -531,7 +531,8 @@ public interface IGraphqlApi : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.IGraphqlApi, - ) : CdkObject(cdkObject), IGraphqlApi { + ) : CdkObject(cdkObject), + IGraphqlApi { /** * add a new DynamoDB data source to this API. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchema.kt index a713e9baf2..46292c31c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchema.kt @@ -44,7 +44,8 @@ public interface ISchema { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ISchema, - ) : CdkObject(cdkObject), ISchema { + ) : CdkObject(cdkObject), + ISchema { /** * Binds a schema string to a GraphQlApi. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchemaConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchemaConfig.kt index 68cc89dfac..1dcb432a0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchemaConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISchemaConfig.kt @@ -34,7 +34,8 @@ public interface ISchemaConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ISchemaConfig, - ) : CdkObject(cdkObject), ISchemaConfig { + ) : CdkObject(cdkObject), + ISchemaConfig { /** * The ID of the api the schema is bound to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISourceApiAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISourceApiAssociation.kt index e2a3fdfbdd..a0bc41a0d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISourceApiAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ISourceApiAssociation.kt @@ -37,7 +37,8 @@ public interface ISourceApiAssociation : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ISourceApiAssociation, - ) : CdkObject(cdkObject), ISourceApiAssociation { + ) : CdkObject(cdkObject), + ISourceApiAssociation { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaAuthorizerConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaAuthorizerConfig.kt index c3bbc45d73..d26f89f062 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaAuthorizerConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaAuthorizerConfig.kt @@ -114,7 +114,8 @@ public interface LambdaAuthorizerConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.LambdaAuthorizerConfig, - ) : CdkObject(cdkObject), LambdaAuthorizerConfig { + ) : CdkObject(cdkObject), + LambdaAuthorizerConfig { /** * The authorizer lambda function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaDataSourceProps.kt index 8955c457a1..4f9221136f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LambdaDataSourceProps.kt @@ -118,7 +118,8 @@ public interface LambdaDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.LambdaDataSourceProps, - ) : CdkObject(cdkObject), LambdaDataSourceProps { + ) : CdkObject(cdkObject), + LambdaDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LogConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LogConfig.kt index 5c23b4e0ac..b66fd95e95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LogConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/LogConfig.kt @@ -19,14 +19,14 @@ import kotlin.Unit * * ``` * import io.cloudshiftdev.awscdk.services.logs.*; - * LogConfig logConfig = LogConfig.builder() - * .retention(RetentionDays.ONE_WEEK) - * .build(); * GraphqlApi.Builder.create(this, "api") * .authorizationConfig(AuthorizationConfig.builder().build()) * .name("myApi") * .definition(Definition.fromFile(join(__dirname, "myApi.graphql"))) - * .logConfig(logConfig) + * .logConfig(LogConfig.builder() + * .fieldLogLevel(FieldLogLevel.INFO) + * .retention(RetentionDays.ONE_WEEK) + * .build()) * .build(); * ``` */ @@ -145,7 +145,8 @@ public interface LogConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.LogConfig, - ) : CdkObject(cdkObject), LogConfig { + ) : CdkObject(cdkObject), + LogConfig { /** * exclude verbose content. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/NoneDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/NoneDataSourceProps.kt index fa0df1d915..5682fe2c51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/NoneDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/NoneDataSourceProps.kt @@ -79,7 +79,8 @@ public interface NoneDataSourceProps : BaseDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.NoneDataSourceProps, - ) : CdkObject(cdkObject), NoneDataSourceProps { + ) : CdkObject(cdkObject), + NoneDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenIdConnectConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenIdConnectConfig.kt index 8211864c8c..ac639896db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenIdConnectConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenIdConnectConfig.kt @@ -147,7 +147,8 @@ public interface OpenIdConnectConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.OpenIdConnectConfig, - ) : CdkObject(cdkObject), OpenIdConnectConfig { + ) : CdkObject(cdkObject), + OpenIdConnectConfig { /** * The client identifier of the Relying party at the OpenID identity provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenSearchDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenSearchDataSourceProps.kt index 31e67a9e6e..0c912dc9d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenSearchDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/OpenSearchDataSourceProps.kt @@ -119,7 +119,8 @@ public interface OpenSearchDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.OpenSearchDataSourceProps, - ) : CdkObject(cdkObject), OpenSearchDataSourceProps { + ) : CdkObject(cdkObject), + OpenSearchDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourceProps.kt index 8a65f2a43f..7c9fea3e0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourceProps.kt @@ -159,7 +159,8 @@ public interface RdsDataSourceProps : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.RdsDataSourceProps, - ) : CdkObject(cdkObject), RdsDataSourceProps { + ) : CdkObject(cdkObject), + RdsDataSourceProps { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourcePropsV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourcePropsV2.kt index df3e0b5282..3340ef2340 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourcePropsV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RdsDataSourcePropsV2.kt @@ -159,7 +159,8 @@ public interface RdsDataSourcePropsV2 : BackedDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.RdsDataSourcePropsV2, - ) : CdkObject(cdkObject), RdsDataSourcePropsV2 { + ) : CdkObject(cdkObject), + RdsDataSourcePropsV2 { /** * The API to attach this data source to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ResolverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ResolverProps.kt index cee4aa00ac..c683d10a29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ResolverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/ResolverProps.kt @@ -209,7 +209,8 @@ public interface ResolverProps : ExtendedResolverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.ResolverProps, - ) : CdkObject(cdkObject), ResolverProps { + ) : CdkObject(cdkObject), + ResolverProps { /** * The API this resolver is attached to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RuntimeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RuntimeConfig.kt index 47388aeaa4..0cfb0946cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RuntimeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/RuntimeConfig.kt @@ -73,7 +73,8 @@ public interface RuntimeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.RuntimeConfig, - ) : CdkObject(cdkObject), RuntimeConfig { + ) : CdkObject(cdkObject), + RuntimeConfig { /** * The name of the runtime. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaBindOptions.kt index d612e5abfa..337e909e84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaBindOptions.kt @@ -39,7 +39,8 @@ public interface SchemaBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SchemaBindOptions, - ) : CdkObject(cdkObject), SchemaBindOptions + ) : CdkObject(cdkObject), + SchemaBindOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): SchemaBindOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaFile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaFile.kt index 88bf797944..d5aeb64424 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaFile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaFile.kt @@ -51,7 +51,8 @@ import kotlin.jvm.JvmName */ public open class SchemaFile( cdkObject: software.amazon.awscdk.services.appsync.SchemaFile, -) : CdkObject(cdkObject), ISchema { +) : CdkObject(cdkObject), + ISchema { public constructor(options: SchemaProps) : this(software.amazon.awscdk.services.appsync.SchemaFile(options.let(SchemaProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaProps.kt index 9a47f7f725..f832c5a496 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SchemaProps.kt @@ -89,7 +89,8 @@ public interface SchemaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SchemaProps, - ) : CdkObject(cdkObject), SchemaProps { + ) : CdkObject(cdkObject), + SchemaProps { /** * The file path for the schema. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApi.kt index d02325943e..5afa6ed03f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApi.kt @@ -95,7 +95,8 @@ public interface SourceApi { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SourceApi, - ) : CdkObject(cdkObject), SourceApi { + ) : CdkObject(cdkObject), + SourceApi { /** * Description of the Source API asssociation. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociation.kt index e4c3a35a96..ce2c8b536b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociation.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SourceApiAssociation( cdkObject: software.amazon.awscdk.services.appsync.SourceApiAssociation, -) : Resource(cdkObject), ISourceApiAssociation { +) : Resource(cdkObject), + ISourceApiAssociation { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationAttributes.kt index 01e2b37d99..6fdfacf241 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationAttributes.kt @@ -95,7 +95,8 @@ public interface SourceApiAssociationAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SourceApiAssociationAttributes, - ) : CdkObject(cdkObject), SourceApiAssociationAttributes { + ) : CdkObject(cdkObject), + SourceApiAssociationAttributes { /** * The association arn. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationProps.kt index c2f0b8286f..a13394efc3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiAssociationProps.kt @@ -144,7 +144,8 @@ public interface SourceApiAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SourceApiAssociationProps, - ) : CdkObject(cdkObject), SourceApiAssociationProps { + ) : CdkObject(cdkObject), + SourceApiAssociationProps { /** * The description of the source api association. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiOptions.kt index 139df9ae26..4bc1782f42 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/SourceApiOptions.kt @@ -108,7 +108,8 @@ public interface SourceApiOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.SourceApiOptions, - ) : CdkObject(cdkObject), SourceApiOptions { + ) : CdkObject(cdkObject), + SourceApiOptions { /** * IAM Role used to validate access to source APIs at runtime and to update the merged API * endpoint with the source API changes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/UserPoolConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/UserPoolConfig.kt index e11790a074..6c9e8804c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/UserPoolConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/UserPoolConfig.kt @@ -100,7 +100,8 @@ public interface UserPoolConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.appsync.UserPoolConfig, - ) : CdkObject(cdkObject), UserPoolConfig { + ) : CdkObject(cdkObject), + UserPoolConfig { /** * the optional app id regex. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCase.kt new file mode 100644 index 0000000000..cf050b4a7a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCase.kt @@ -0,0 +1,4160 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.apptest + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a test case for an application. + * + * For more information about test cases, see [Test + * cases](https://docs.aws.amazon.com/m2/latest/userguide/testing-test-cases.html) and [Application + * Testing concepts](https://docs.aws.amazon.com/m2/latest/userguide/concepts-apptest.html) in the *AWS + * Mainframe Modernization User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * CfnTestCase cfnTestCase = CfnTestCase.Builder.create(this, "MyCfnTestCase") + * .name("name") + * .steps(List.of(StepProperty.builder() + * .action(StepActionProperty.builder() + * .compareAction(CompareActionProperty.builder() + * .input(InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build()) + * // the properties below are optional + * .output(OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build()) + * .build()) + * .mainframeAction(MainframeActionProperty.builder() + * .actionType(MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build()) + * .resource("resource") + * // the properties below are optional + * .properties(MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build()) + * .build()) + * .resourceAction(ResourceActionProperty.builder() + * .cloudFormationAction(CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build()) + * .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build()) + * .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build()) + * .build()) + * .build()) + * .name("name") + * // the properties below are optional + * .description("description") + * .build())) + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html) + */ +public open class CfnTestCase( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnTestCaseProps, + ) : + this(software.amazon.awscdk.services.apptest.CfnTestCase(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnTestCaseProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnTestCaseProps.Builder.() -> Unit, + ) : this(scope, id, CfnTestCaseProps(props) + ) + + /** + * The creation time of the test case. + */ + public open fun attrCreationTime(): String = unwrap(this).getAttrCreationTime() + + /** + * The last update time of the test case. + */ + public open fun attrLastUpdateTime(): String = unwrap(this).getAttrLastUpdateTime() + + /** + * + */ + public open fun attrLatestVersion(): IResolvable = + unwrap(this).getAttrLatestVersion().let(IResolvable::wrap) + + /** + * The status of the test case. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * The Amazon Resource Name (ARN) of the test case. + */ + public open fun attrTestCaseArn(): String = unwrap(this).getAttrTestCaseArn() + + /** + * The response test case ID of the test case. + */ + public open fun attrTestCaseId(): String = unwrap(this).getAttrTestCaseId() + + /** + * The version of the test case. + */ + public open fun attrTestCaseVersion(): IResolvable = + unwrap(this).getAttrTestCaseVersion().let(IResolvable::wrap) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the test case. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the test case. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the test case. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the test case. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The steps in the test case. + */ + public open fun steps(): Any = unwrap(this).getSteps() + + /** + * The steps in the test case. + */ + public open fun steps(`value`: IResolvable) { + unwrap(this).setSteps(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The steps in the test case. + */ + public open fun steps(`value`: List) { + unwrap(this).setSteps(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The steps in the test case. + */ + public open fun steps(vararg `value`: Any): Unit = steps(`value`.toList()) + + /** + * The specified tags of the test case. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * The specified tags of the test case. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.apptest.CfnTestCase]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-description) + * @param description The description of the test case. + */ + public fun description(description: String) + + /** + * The name of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-name) + * @param name The name of the test case. + */ + public fun name(name: String) + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + public fun steps(steps: IResolvable) + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + public fun steps(steps: List) + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + public fun steps(vararg steps: Any) + + /** + * The specified tags of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-tags) + * @param tags The specified tags of the test case. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.apptest.CfnTestCase.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.Builder.create(scope, id) + + /** + * The description of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-description) + * @param description The description of the test case. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The name of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-name) + * @param name The name of the test case. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + override fun steps(steps: IResolvable) { + cdkBuilder.steps(steps.let(IResolvable.Companion::unwrap)) + } + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + override fun steps(steps: List) { + cdkBuilder.steps(steps.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + * @param steps The steps in the test case. + */ + override fun steps(vararg steps: Any): Unit = steps(steps.toList()) + + /** + * The specified tags of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-tags) + * @param tags The specified tags of the test case. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.apptest.CfnTestCase.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnTestCase { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnTestCase(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase): CfnTestCase = + CfnTestCase(cdkObject) + + internal fun unwrap(wrapped: CfnTestCase): software.amazon.awscdk.services.apptest.CfnTestCase = + wrapped.cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase + } + + /** + * Defines a batch. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * BatchProperty batchProperty = BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html) + */ + public interface BatchProperty { + /** + * The job name of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobname) + */ + public fun batchJobName(): String + + /** + * The batch job parameters of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobparameters) + */ + public fun batchJobParameters(): Any? = unwrap(this).getBatchJobParameters() + + /** + * The export data set names of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-exportdatasetnames) + */ + public fun exportDataSetNames(): List = unwrap(this).getExportDataSetNames() ?: + emptyList() + + /** + * A builder for [BatchProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param batchJobName The job name of the batch. + */ + public fun batchJobName(batchJobName: String) + + /** + * @param batchJobParameters The batch job parameters of the batch. + */ + public fun batchJobParameters(batchJobParameters: IResolvable) + + /** + * @param batchJobParameters The batch job parameters of the batch. + */ + public fun batchJobParameters(batchJobParameters: Map) + + /** + * @param exportDataSetNames The export data set names of the batch. + */ + public fun exportDataSetNames(exportDataSetNames: List) + + /** + * @param exportDataSetNames The export data set names of the batch. + */ + public fun exportDataSetNames(vararg exportDataSetNames: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty.builder() + + /** + * @param batchJobName The job name of the batch. + */ + override fun batchJobName(batchJobName: String) { + cdkBuilder.batchJobName(batchJobName) + } + + /** + * @param batchJobParameters The batch job parameters of the batch. + */ + override fun batchJobParameters(batchJobParameters: IResolvable) { + cdkBuilder.batchJobParameters(batchJobParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param batchJobParameters The batch job parameters of the batch. + */ + override fun batchJobParameters(batchJobParameters: Map) { + cdkBuilder.batchJobParameters(batchJobParameters) + } + + /** + * @param exportDataSetNames The export data set names of the batch. + */ + override fun exportDataSetNames(exportDataSetNames: List) { + cdkBuilder.exportDataSetNames(exportDataSetNames) + } + + /** + * @param exportDataSetNames The export data set names of the batch. + */ + override fun exportDataSetNames(vararg exportDataSetNames: String): Unit = + exportDataSetNames(exportDataSetNames.toList()) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty, + ) : CdkObject(cdkObject), + BatchProperty { + /** + * The job name of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobname) + */ + override fun batchJobName(): String = unwrap(this).getBatchJobName() + + /** + * The batch job parameters of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobparameters) + */ + override fun batchJobParameters(): Any? = unwrap(this).getBatchJobParameters() + + /** + * The export data set names of the batch. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-exportdatasetnames) + */ + override fun exportDataSetNames(): List = unwrap(this).getExportDataSetNames() ?: + emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): BatchProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty): + BatchProperty = CdkObjectWrappers.wrap(cdkObject) as? BatchProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: BatchProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.BatchProperty + } + } + + /** + * Specifies the CloudFormation action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * CloudFormationActionProperty cloudFormationActionProperty = + * CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html) + */ + public interface CloudFormationActionProperty { + /** + * The action type of the CloudFormation action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-actiontype) + */ + public fun actionType(): String? = unwrap(this).getActionType() + + /** + * The resource of the CloudFormation action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-resource) + */ + public fun resource(): String + + /** + * A builder for [CloudFormationActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionType The action type of the CloudFormation action. + */ + public fun actionType(actionType: String) + + /** + * @param resource The resource of the CloudFormation action. + */ + public fun resource(resource: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty.builder() + + /** + * @param actionType The action type of the CloudFormation action. + */ + override fun actionType(actionType: String) { + cdkBuilder.actionType(actionType) + } + + /** + * @param resource The resource of the CloudFormation action. + */ + override fun resource(resource: String) { + cdkBuilder.resource(resource) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty, + ) : CdkObject(cdkObject), + CloudFormationActionProperty { + /** + * The action type of the CloudFormation action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-actiontype) + */ + override fun actionType(): String? = unwrap(this).getActionType() + + /** + * The resource of the CloudFormation action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-resource) + */ + override fun resource(): String = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CloudFormationActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty): + CloudFormationActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + CloudFormationActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CloudFormationActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.CloudFormationActionProperty + } + } + + /** + * Compares the action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * CompareActionProperty compareActionProperty = CompareActionProperty.builder() + * .input(InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build()) + * // the properties below are optional + * .output(OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-compareaction.html) + */ + public interface CompareActionProperty { + /** + * The input of the compare action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-compareaction.html#cfn-apptest-testcase-compareaction-input) + */ + public fun input(): Any + + /** + * The output of the compare action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-compareaction.html#cfn-apptest-testcase-compareaction-output) + */ + public fun output(): Any? = unwrap(this).getOutput() + + /** + * A builder for [CompareActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param input The input of the compare action. + */ + public fun input(input: IResolvable) + + /** + * @param input The input of the compare action. + */ + public fun input(input: InputProperty) + + /** + * @param input The input of the compare action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7d4edfc09b8f498d6c0c655cbb1264a110e9e728ce5fd0eb6b6948244e35be3d") + public fun input(input: InputProperty.Builder.() -> Unit) + + /** + * @param output The output of the compare action. + */ + public fun output(output: IResolvable) + + /** + * @param output The output of the compare action. + */ + public fun output(output: OutputProperty) + + /** + * @param output The output of the compare action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d6523100d492627e37ddfe081427f4fe51ee132ffdb536b3dbd13d97943552a") + public fun output(output: OutputProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty.builder() + + /** + * @param input The input of the compare action. + */ + override fun input(input: IResolvable) { + cdkBuilder.input(input.let(IResolvable.Companion::unwrap)) + } + + /** + * @param input The input of the compare action. + */ + override fun input(input: InputProperty) { + cdkBuilder.input(input.let(InputProperty.Companion::unwrap)) + } + + /** + * @param input The input of the compare action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7d4edfc09b8f498d6c0c655cbb1264a110e9e728ce5fd0eb6b6948244e35be3d") + override fun input(input: InputProperty.Builder.() -> Unit): Unit = + input(InputProperty(input)) + + /** + * @param output The output of the compare action. + */ + override fun output(output: IResolvable) { + cdkBuilder.output(output.let(IResolvable.Companion::unwrap)) + } + + /** + * @param output The output of the compare action. + */ + override fun output(output: OutputProperty) { + cdkBuilder.output(output.let(OutputProperty.Companion::unwrap)) + } + + /** + * @param output The output of the compare action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d6523100d492627e37ddfe081427f4fe51ee132ffdb536b3dbd13d97943552a") + override fun output(output: OutputProperty.Builder.() -> Unit): Unit = + output(OutputProperty(output)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty, + ) : CdkObject(cdkObject), + CompareActionProperty { + /** + * The input of the compare action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-compareaction.html#cfn-apptest-testcase-compareaction-input) + */ + override fun input(): Any = unwrap(this).getInput() + + /** + * The output of the compare action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-compareaction.html#cfn-apptest-testcase-compareaction-output) + */ + override fun output(): Any? = unwrap(this).getOutput() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CompareActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty): + CompareActionProperty = CdkObjectWrappers.wrap(cdkObject) as? CompareActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CompareActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.CompareActionProperty + } + } + + /** + * Defines a data set. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * DataSetProperty dataSetProperty = DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html) + */ + public interface DataSetProperty { + /** + * The CCSID of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-ccsid) + */ + public fun ccsid(): String + + /** + * The format of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-format) + */ + public fun format(): String + + /** + * The length of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-length) + */ + public fun length(): Number + + /** + * The name of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-name) + */ + public fun name(): String + + /** + * The type of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-type) + */ + public fun type(): String + + /** + * A builder for [DataSetProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ccsid The CCSID of the data set. + */ + public fun ccsid(ccsid: String) + + /** + * @param format The format of the data set. + */ + public fun format(format: String) + + /** + * @param length The length of the data set. + */ + public fun length(length: Number) + + /** + * @param name The name of the data set. + */ + public fun name(name: String) + + /** + * @param type The type of the data set. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty.builder() + + /** + * @param ccsid The CCSID of the data set. + */ + override fun ccsid(ccsid: String) { + cdkBuilder.ccsid(ccsid) + } + + /** + * @param format The format of the data set. + */ + override fun format(format: String) { + cdkBuilder.format(format) + } + + /** + * @param length The length of the data set. + */ + override fun length(length: Number) { + cdkBuilder.length(length) + } + + /** + * @param name The name of the data set. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param type The type of the data set. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty, + ) : CdkObject(cdkObject), + DataSetProperty { + /** + * The CCSID of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-ccsid) + */ + override fun ccsid(): String = unwrap(this).getCcsid() + + /** + * The format of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-format) + */ + override fun format(): String = unwrap(this).getFormat() + + /** + * The length of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-length) + */ + override fun length(): Number = unwrap(this).getLength() + + /** + * The name of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The type of the data set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-dataset.html#cfn-apptest-testcase-dataset-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DataSetProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty): + DataSetProperty = CdkObjectWrappers.wrap(cdkObject) as? DataSetProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DataSetProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.DataSetProperty + } + } + + /** + * Defines the Change Data Capture (CDC) of the database. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * DatabaseCDCProperty databaseCDCProperty = DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-databasecdc.html) + */ + public interface DatabaseCDCProperty { + /** + * The source metadata of the database CDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-databasecdc.html#cfn-apptest-testcase-databasecdc-sourcemetadata) + */ + public fun sourceMetadata(): Any + + /** + * The target metadata of the database CDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-databasecdc.html#cfn-apptest-testcase-databasecdc-targetmetadata) + */ + public fun targetMetadata(): Any + + /** + * A builder for [DatabaseCDCProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + public fun sourceMetadata(sourceMetadata: IResolvable) + + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + public fun sourceMetadata(sourceMetadata: SourceDatabaseMetadataProperty) + + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66749d24db4a7f70a4637ee4b751d5fbbc3ea7fad7486734b76ffb41f8ee3174") + public fun sourceMetadata(sourceMetadata: SourceDatabaseMetadataProperty.Builder.() -> Unit) + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + public fun targetMetadata(targetMetadata: IResolvable) + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + public fun targetMetadata(targetMetadata: TargetDatabaseMetadataProperty) + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("425745a9430d64632705e8c16d3ab3458aadada79e9179f6870f8afa98049cdc") + public fun targetMetadata(targetMetadata: TargetDatabaseMetadataProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty.builder() + + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + override fun sourceMetadata(sourceMetadata: IResolvable) { + cdkBuilder.sourceMetadata(sourceMetadata.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + override fun sourceMetadata(sourceMetadata: SourceDatabaseMetadataProperty) { + cdkBuilder.sourceMetadata(sourceMetadata.let(SourceDatabaseMetadataProperty.Companion::unwrap)) + } + + /** + * @param sourceMetadata The source metadata of the database CDC. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66749d24db4a7f70a4637ee4b751d5fbbc3ea7fad7486734b76ffb41f8ee3174") + override + fun sourceMetadata(sourceMetadata: SourceDatabaseMetadataProperty.Builder.() -> Unit): + Unit = sourceMetadata(SourceDatabaseMetadataProperty(sourceMetadata)) + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + override fun targetMetadata(targetMetadata: IResolvable) { + cdkBuilder.targetMetadata(targetMetadata.let(IResolvable.Companion::unwrap)) + } + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + override fun targetMetadata(targetMetadata: TargetDatabaseMetadataProperty) { + cdkBuilder.targetMetadata(targetMetadata.let(TargetDatabaseMetadataProperty.Companion::unwrap)) + } + + /** + * @param targetMetadata The target metadata of the database CDC. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("425745a9430d64632705e8c16d3ab3458aadada79e9179f6870f8afa98049cdc") + override + fun targetMetadata(targetMetadata: TargetDatabaseMetadataProperty.Builder.() -> Unit): + Unit = targetMetadata(TargetDatabaseMetadataProperty(targetMetadata)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty, + ) : CdkObject(cdkObject), + DatabaseCDCProperty { + /** + * The source metadata of the database CDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-databasecdc.html#cfn-apptest-testcase-databasecdc-sourcemetadata) + */ + override fun sourceMetadata(): Any = unwrap(this).getSourceMetadata() + + /** + * The target metadata of the database CDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-databasecdc.html#cfn-apptest-testcase-databasecdc-targetmetadata) + */ + override fun targetMetadata(): Any = unwrap(this).getTargetMetadata() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DatabaseCDCProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty): + DatabaseCDCProperty = CdkObjectWrappers.wrap(cdkObject) as? DatabaseCDCProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DatabaseCDCProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.DatabaseCDCProperty + } + } + + /** + * Specifies a file metadata. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * FileMetadataProperty fileMetadataProperty = FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-filemetadata.html) + */ + public interface FileMetadataProperty { + /** + * The data sets of the file metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-filemetadata.html#cfn-apptest-testcase-filemetadata-datasets) + */ + public fun dataSets(): Any? = unwrap(this).getDataSets() + + /** + * The database CDC of the file metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-filemetadata.html#cfn-apptest-testcase-filemetadata-databasecdc) + */ + public fun databaseCdc(): Any? = unwrap(this).getDatabaseCdc() + + /** + * A builder for [FileMetadataProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dataSets The data sets of the file metadata. + */ + public fun dataSets(dataSets: IResolvable) + + /** + * @param dataSets The data sets of the file metadata. + */ + public fun dataSets(dataSets: List) + + /** + * @param dataSets The data sets of the file metadata. + */ + public fun dataSets(vararg dataSets: Any) + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + public fun databaseCdc(databaseCdc: IResolvable) + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + public fun databaseCdc(databaseCdc: DatabaseCDCProperty) + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d78dfcabeba03616e6144b03671d4c920d13017d1fc3224d29b36ff5a42fa041") + public fun databaseCdc(databaseCdc: DatabaseCDCProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty.builder() + + /** + * @param dataSets The data sets of the file metadata. + */ + override fun dataSets(dataSets: IResolvable) { + cdkBuilder.dataSets(dataSets.let(IResolvable.Companion::unwrap)) + } + + /** + * @param dataSets The data sets of the file metadata. + */ + override fun dataSets(dataSets: List) { + cdkBuilder.dataSets(dataSets.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param dataSets The data sets of the file metadata. + */ + override fun dataSets(vararg dataSets: Any): Unit = dataSets(dataSets.toList()) + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + override fun databaseCdc(databaseCdc: IResolvable) { + cdkBuilder.databaseCdc(databaseCdc.let(IResolvable.Companion::unwrap)) + } + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + override fun databaseCdc(databaseCdc: DatabaseCDCProperty) { + cdkBuilder.databaseCdc(databaseCdc.let(DatabaseCDCProperty.Companion::unwrap)) + } + + /** + * @param databaseCdc The database CDC of the file metadata. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d78dfcabeba03616e6144b03671d4c920d13017d1fc3224d29b36ff5a42fa041") + override fun databaseCdc(databaseCdc: DatabaseCDCProperty.Builder.() -> Unit): Unit = + databaseCdc(DatabaseCDCProperty(databaseCdc)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty, + ) : CdkObject(cdkObject), + FileMetadataProperty { + /** + * The data sets of the file metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-filemetadata.html#cfn-apptest-testcase-filemetadata-datasets) + */ + override fun dataSets(): Any? = unwrap(this).getDataSets() + + /** + * The database CDC of the file metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-filemetadata.html#cfn-apptest-testcase-filemetadata-databasecdc) + */ + override fun databaseCdc(): Any? = unwrap(this).getDatabaseCdc() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FileMetadataProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty): + FileMetadataProperty = CdkObjectWrappers.wrap(cdkObject) as? FileMetadataProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FileMetadataProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.FileMetadataProperty + } + } + + /** + * Specifies the input file. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * InputFileProperty inputFileProperty = InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html) + */ + public interface InputFileProperty { + /** + * The file metadata of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-filemetadata) + */ + public fun fileMetadata(): Any + + /** + * The source location of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-sourcelocation) + */ + public fun sourceLocation(): String + + /** + * The target location of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-targetlocation) + */ + public fun targetLocation(): String + + /** + * A builder for [InputFileProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param fileMetadata The file metadata of the input file. + */ + public fun fileMetadata(fileMetadata: IResolvable) + + /** + * @param fileMetadata The file metadata of the input file. + */ + public fun fileMetadata(fileMetadata: FileMetadataProperty) + + /** + * @param fileMetadata The file metadata of the input file. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77102f9773221e40bd8d881eca6eabd4a6830a955191c8d43ec4898a6b0edd78") + public fun fileMetadata(fileMetadata: FileMetadataProperty.Builder.() -> Unit) + + /** + * @param sourceLocation The source location of the input file. + */ + public fun sourceLocation(sourceLocation: String) + + /** + * @param targetLocation The target location of the input file. + */ + public fun targetLocation(targetLocation: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty.builder() + + /** + * @param fileMetadata The file metadata of the input file. + */ + override fun fileMetadata(fileMetadata: IResolvable) { + cdkBuilder.fileMetadata(fileMetadata.let(IResolvable.Companion::unwrap)) + } + + /** + * @param fileMetadata The file metadata of the input file. + */ + override fun fileMetadata(fileMetadata: FileMetadataProperty) { + cdkBuilder.fileMetadata(fileMetadata.let(FileMetadataProperty.Companion::unwrap)) + } + + /** + * @param fileMetadata The file metadata of the input file. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77102f9773221e40bd8d881eca6eabd4a6830a955191c8d43ec4898a6b0edd78") + override fun fileMetadata(fileMetadata: FileMetadataProperty.Builder.() -> Unit): Unit = + fileMetadata(FileMetadataProperty(fileMetadata)) + + /** + * @param sourceLocation The source location of the input file. + */ + override fun sourceLocation(sourceLocation: String) { + cdkBuilder.sourceLocation(sourceLocation) + } + + /** + * @param targetLocation The target location of the input file. + */ + override fun targetLocation(targetLocation: String) { + cdkBuilder.targetLocation(targetLocation) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty, + ) : CdkObject(cdkObject), + InputFileProperty { + /** + * The file metadata of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-filemetadata) + */ + override fun fileMetadata(): Any = unwrap(this).getFileMetadata() + + /** + * The source location of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-sourcelocation) + */ + override fun sourceLocation(): String = unwrap(this).getSourceLocation() + + /** + * The target location of the input file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-targetlocation) + */ + override fun targetLocation(): String = unwrap(this).getTargetLocation() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InputFileProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty): + InputFileProperty = CdkObjectWrappers.wrap(cdkObject) as? InputFileProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InputFileProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.InputFileProperty + } + } + + /** + * Specifies the input. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * InputProperty inputProperty = InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-input.html) + */ + public interface InputProperty { + /** + * The file in the input. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-input.html#cfn-apptest-testcase-input-file) + */ + public fun `file`(): Any + + /** + * A builder for [InputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param file The file in the input. + */ + public fun `file`(`file`: IResolvable) + + /** + * @param file The file in the input. + */ + public fun `file`(`file`: InputFileProperty) + + /** + * @param file The file in the input. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("26cc8ec6a3d524e0d92eb0634e023030efaf08098434d9f497c56c121543a617") + public fun `file`(`file`: InputFileProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty.builder() + + /** + * @param file The file in the input. + */ + override fun `file`(`file`: IResolvable) { + cdkBuilder.`file`(`file`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param file The file in the input. + */ + override fun `file`(`file`: InputFileProperty) { + cdkBuilder.`file`(`file`.let(InputFileProperty.Companion::unwrap)) + } + + /** + * @param file The file in the input. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("26cc8ec6a3d524e0d92eb0634e023030efaf08098434d9f497c56c121543a617") + override fun `file`(`file`: InputFileProperty.Builder.() -> Unit): Unit = + `file`(InputFileProperty(`file`)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty, + ) : CdkObject(cdkObject), + InputProperty { + /** + * The file in the input. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-input.html#cfn-apptest-testcase-input-file) + */ + override fun `file`(): Any = unwrap(this).getFile() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty): + InputProperty = CdkObjectWrappers.wrap(cdkObject) as? InputProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: InputProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.InputProperty + } + } + + /** + * Specifies the Mainframe Modernization managed action properties. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * M2ManagedActionPropertiesProperty m2ManagedActionPropertiesProperty = + * M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedactionproperties.html) + */ + public interface M2ManagedActionPropertiesProperty { + /** + * Force stops the Mainframe Modernization managed action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedactionproperties.html#cfn-apptest-testcase-m2managedactionproperties-forcestop) + */ + public fun forceStop(): Any? = unwrap(this).getForceStop() + + /** + * The import data set location of the Mainframe Modernization managed action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedactionproperties.html#cfn-apptest-testcase-m2managedactionproperties-importdatasetlocation) + */ + public fun importDataSetLocation(): String? = unwrap(this).getImportDataSetLocation() + + /** + * A builder for [M2ManagedActionPropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param forceStop Force stops the Mainframe Modernization managed action properties. + */ + public fun forceStop(forceStop: Boolean) + + /** + * @param forceStop Force stops the Mainframe Modernization managed action properties. + */ + public fun forceStop(forceStop: IResolvable) + + /** + * @param importDataSetLocation The import data set location of the Mainframe Modernization + * managed action properties. + */ + public fun importDataSetLocation(importDataSetLocation: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty.builder() + + /** + * @param forceStop Force stops the Mainframe Modernization managed action properties. + */ + override fun forceStop(forceStop: Boolean) { + cdkBuilder.forceStop(forceStop) + } + + /** + * @param forceStop Force stops the Mainframe Modernization managed action properties. + */ + override fun forceStop(forceStop: IResolvable) { + cdkBuilder.forceStop(forceStop.let(IResolvable.Companion::unwrap)) + } + + /** + * @param importDataSetLocation The import data set location of the Mainframe Modernization + * managed action properties. + */ + override fun importDataSetLocation(importDataSetLocation: String) { + cdkBuilder.importDataSetLocation(importDataSetLocation) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty, + ) : CdkObject(cdkObject), + M2ManagedActionPropertiesProperty { + /** + * Force stops the Mainframe Modernization managed action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedactionproperties.html#cfn-apptest-testcase-m2managedactionproperties-forcestop) + */ + override fun forceStop(): Any? = unwrap(this).getForceStop() + + /** + * The import data set location of the Mainframe Modernization managed action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedactionproperties.html#cfn-apptest-testcase-m2managedactionproperties-importdatasetlocation) + */ + override fun importDataSetLocation(): String? = unwrap(this).getImportDataSetLocation() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + M2ManagedActionPropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty): + M2ManagedActionPropertiesProperty = CdkObjectWrappers.wrap(cdkObject) as? + M2ManagedActionPropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: M2ManagedActionPropertiesProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedActionPropertiesProperty + } + } + + /** + * Specifies the Mainframe Modernization managed application action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * M2ManagedApplicationActionProperty m2ManagedApplicationActionProperty = + * M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html) + */ + public interface M2ManagedApplicationActionProperty { + /** + * The action type of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-actiontype) + */ + public fun actionType(): String + + /** + * The properties of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-properties) + */ + public fun properties(): Any? = unwrap(this).getProperties() + + /** + * The resource of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-resource) + */ + public fun resource(): String + + /** + * A builder for [M2ManagedApplicationActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionType The action type of the Mainframe Modernization managed application + * action. + */ + public fun actionType(actionType: String) + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + public fun properties(properties: IResolvable) + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + public fun properties(properties: M2ManagedActionPropertiesProperty) + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("944446da07e38844a68957c7b5492e431b43813cba9b75b759cd485a08407f80") + public fun properties(properties: M2ManagedActionPropertiesProperty.Builder.() -> Unit) + + /** + * @param resource The resource of the Mainframe Modernization managed application action. + */ + public fun resource(resource: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty.builder() + + /** + * @param actionType The action type of the Mainframe Modernization managed application + * action. + */ + override fun actionType(actionType: String) { + cdkBuilder.actionType(actionType) + } + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + override fun properties(properties: IResolvable) { + cdkBuilder.properties(properties.let(IResolvable.Companion::unwrap)) + } + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + override fun properties(properties: M2ManagedActionPropertiesProperty) { + cdkBuilder.properties(properties.let(M2ManagedActionPropertiesProperty.Companion::unwrap)) + } + + /** + * @param properties The properties of the Mainframe Modernization managed application action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("944446da07e38844a68957c7b5492e431b43813cba9b75b759cd485a08407f80") + override fun properties(properties: M2ManagedActionPropertiesProperty.Builder.() -> Unit): + Unit = properties(M2ManagedActionPropertiesProperty(properties)) + + /** + * @param resource The resource of the Mainframe Modernization managed application action. + */ + override fun resource(resource: String) { + cdkBuilder.resource(resource) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty, + ) : CdkObject(cdkObject), + M2ManagedApplicationActionProperty { + /** + * The action type of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-actiontype) + */ + override fun actionType(): String = unwrap(this).getActionType() + + /** + * The properties of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-properties) + */ + override fun properties(): Any? = unwrap(this).getProperties() + + /** + * The resource of the Mainframe Modernization managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2managedapplicationaction.html#cfn-apptest-testcase-m2managedapplicationaction-resource) + */ + override fun resource(): String = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + M2ManagedApplicationActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty): + M2ManagedApplicationActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + M2ManagedApplicationActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: M2ManagedApplicationActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.M2ManagedApplicationActionProperty + } + } + + /** + * Specifies the Mainframe Modernization non-managed application action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * M2NonManagedApplicationActionProperty m2NonManagedApplicationActionProperty = + * M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2nonmanagedapplicationaction.html) + */ + public interface M2NonManagedApplicationActionProperty { + /** + * The action type of the Mainframe Modernization non-managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2nonmanagedapplicationaction.html#cfn-apptest-testcase-m2nonmanagedapplicationaction-actiontype) + */ + public fun actionType(): String + + /** + * The resource of the Mainframe Modernization non-managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2nonmanagedapplicationaction.html#cfn-apptest-testcase-m2nonmanagedapplicationaction-resource) + */ + public fun resource(): String + + /** + * A builder for [M2NonManagedApplicationActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionType The action type of the Mainframe Modernization non-managed application + * action. + */ + public fun actionType(actionType: String) + + /** + * @param resource The resource of the Mainframe Modernization non-managed application action. + * + */ + public fun resource(resource: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty.builder() + + /** + * @param actionType The action type of the Mainframe Modernization non-managed application + * action. + */ + override fun actionType(actionType: String) { + cdkBuilder.actionType(actionType) + } + + /** + * @param resource The resource of the Mainframe Modernization non-managed application action. + * + */ + override fun resource(resource: String) { + cdkBuilder.resource(resource) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty, + ) : CdkObject(cdkObject), + M2NonManagedApplicationActionProperty { + /** + * The action type of the Mainframe Modernization non-managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2nonmanagedapplicationaction.html#cfn-apptest-testcase-m2nonmanagedapplicationaction-actiontype) + */ + override fun actionType(): String = unwrap(this).getActionType() + + /** + * The resource of the Mainframe Modernization non-managed application action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-m2nonmanagedapplicationaction.html#cfn-apptest-testcase-m2nonmanagedapplicationaction-resource) + */ + override fun resource(): String = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + M2NonManagedApplicationActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty): + M2NonManagedApplicationActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + M2NonManagedApplicationActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: M2NonManagedApplicationActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.M2NonManagedApplicationActionProperty + } + } + + /** + * Specifies the mainframe action properties. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * MainframeActionPropertiesProperty mainframeActionPropertiesProperty = + * MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactionproperties.html) + */ + public interface MainframeActionPropertiesProperty { + /** + * The DMS task ARN of the mainframe action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactionproperties.html#cfn-apptest-testcase-mainframeactionproperties-dmstaskarn) + */ + public fun dmsTaskArn(): String? = unwrap(this).getDmsTaskArn() + + /** + * A builder for [MainframeActionPropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dmsTaskArn The DMS task ARN of the mainframe action properties. + */ + public fun dmsTaskArn(dmsTaskArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty.builder() + + /** + * @param dmsTaskArn The DMS task ARN of the mainframe action properties. + */ + override fun dmsTaskArn(dmsTaskArn: String) { + cdkBuilder.dmsTaskArn(dmsTaskArn) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty, + ) : CdkObject(cdkObject), + MainframeActionPropertiesProperty { + /** + * The DMS task ARN of the mainframe action properties. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactionproperties.html#cfn-apptest-testcase-mainframeactionproperties-dmstaskarn) + */ + override fun dmsTaskArn(): String? = unwrap(this).getDmsTaskArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + MainframeActionPropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty): + MainframeActionPropertiesProperty = CdkObjectWrappers.wrap(cdkObject) as? + MainframeActionPropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MainframeActionPropertiesProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionPropertiesProperty + } + } + + /** + * Specifies the mainframe action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * MainframeActionProperty mainframeActionProperty = MainframeActionProperty.builder() + * .actionType(MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build()) + * .resource("resource") + * // the properties below are optional + * .properties(MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html) + */ + public interface MainframeActionProperty { + /** + * The action type of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-actiontype) + */ + public fun actionType(): Any + + /** + * The properties of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-properties) + */ + public fun properties(): Any? = unwrap(this).getProperties() + + /** + * The resource of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-resource) + */ + public fun resource(): String + + /** + * A builder for [MainframeActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionType The action type of the mainframe action. + */ + public fun actionType(actionType: IResolvable) + + /** + * @param actionType The action type of the mainframe action. + */ + public fun actionType(actionType: MainframeActionTypeProperty) + + /** + * @param actionType The action type of the mainframe action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d01d53070fad24bf9ae1410c1cb56a89948232314d70086636c653013ac34bbc") + public fun actionType(actionType: MainframeActionTypeProperty.Builder.() -> Unit) + + /** + * @param properties The properties of the mainframe action. + */ + public fun properties(properties: IResolvable) + + /** + * @param properties The properties of the mainframe action. + */ + public fun properties(properties: MainframeActionPropertiesProperty) + + /** + * @param properties The properties of the mainframe action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("92f2c77b8ba2c742b1d12629f73ae08234f27a2c02fa37f353dfb35335baeb00") + public fun properties(properties: MainframeActionPropertiesProperty.Builder.() -> Unit) + + /** + * @param resource The resource of the mainframe action. + */ + public fun resource(resource: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty.builder() + + /** + * @param actionType The action type of the mainframe action. + */ + override fun actionType(actionType: IResolvable) { + cdkBuilder.actionType(actionType.let(IResolvable.Companion::unwrap)) + } + + /** + * @param actionType The action type of the mainframe action. + */ + override fun actionType(actionType: MainframeActionTypeProperty) { + cdkBuilder.actionType(actionType.let(MainframeActionTypeProperty.Companion::unwrap)) + } + + /** + * @param actionType The action type of the mainframe action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d01d53070fad24bf9ae1410c1cb56a89948232314d70086636c653013ac34bbc") + override fun actionType(actionType: MainframeActionTypeProperty.Builder.() -> Unit): Unit = + actionType(MainframeActionTypeProperty(actionType)) + + /** + * @param properties The properties of the mainframe action. + */ + override fun properties(properties: IResolvable) { + cdkBuilder.properties(properties.let(IResolvable.Companion::unwrap)) + } + + /** + * @param properties The properties of the mainframe action. + */ + override fun properties(properties: MainframeActionPropertiesProperty) { + cdkBuilder.properties(properties.let(MainframeActionPropertiesProperty.Companion::unwrap)) + } + + /** + * @param properties The properties of the mainframe action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("92f2c77b8ba2c742b1d12629f73ae08234f27a2c02fa37f353dfb35335baeb00") + override fun properties(properties: MainframeActionPropertiesProperty.Builder.() -> Unit): + Unit = properties(MainframeActionPropertiesProperty(properties)) + + /** + * @param resource The resource of the mainframe action. + */ + override fun resource(resource: String) { + cdkBuilder.resource(resource) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty, + ) : CdkObject(cdkObject), + MainframeActionProperty { + /** + * The action type of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-actiontype) + */ + override fun actionType(): Any = unwrap(this).getActionType() + + /** + * The properties of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-properties) + */ + override fun properties(): Any? = unwrap(this).getProperties() + + /** + * The resource of the mainframe action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeaction.html#cfn-apptest-testcase-mainframeaction-resource) + */ + override fun resource(): String = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MainframeActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty): + MainframeActionProperty = CdkObjectWrappers.wrap(cdkObject) as? MainframeActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MainframeActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionProperty + } + } + + /** + * Specifies the mainframe action type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * MainframeActionTypeProperty mainframeActionTypeProperty = MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactiontype.html) + */ + public interface MainframeActionTypeProperty { + /** + * The batch of the mainframe action type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactiontype.html#cfn-apptest-testcase-mainframeactiontype-batch) + */ + public fun batch(): Any? = unwrap(this).getBatch() + + /** + * The tn3270 port of the mainframe action type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactiontype.html#cfn-apptest-testcase-mainframeactiontype-tn3270) + */ + public fun tn3270(): Any? = unwrap(this).getTn3270() + + /** + * A builder for [MainframeActionTypeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param batch The batch of the mainframe action type. + */ + public fun batch(batch: IResolvable) + + /** + * @param batch The batch of the mainframe action type. + */ + public fun batch(batch: BatchProperty) + + /** + * @param batch The batch of the mainframe action type. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b612ec102a58f696a4de03b1bd23ea02c5d30dec415ad34c868a2453a4012a1") + public fun batch(batch: BatchProperty.Builder.() -> Unit) + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + public fun tn3270(tn3270: IResolvable) + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + public fun tn3270(tn3270: TN3270Property) + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8793375e77a4a61aa1840f07e436fc5e616c2e0e2236e23842436a61d609a957") + public fun tn3270(tn3270: TN3270Property.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty.builder() + + /** + * @param batch The batch of the mainframe action type. + */ + override fun batch(batch: IResolvable) { + cdkBuilder.batch(batch.let(IResolvable.Companion::unwrap)) + } + + /** + * @param batch The batch of the mainframe action type. + */ + override fun batch(batch: BatchProperty) { + cdkBuilder.batch(batch.let(BatchProperty.Companion::unwrap)) + } + + /** + * @param batch The batch of the mainframe action type. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b612ec102a58f696a4de03b1bd23ea02c5d30dec415ad34c868a2453a4012a1") + override fun batch(batch: BatchProperty.Builder.() -> Unit): Unit = + batch(BatchProperty(batch)) + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + override fun tn3270(tn3270: IResolvable) { + cdkBuilder.tn3270(tn3270.let(IResolvable.Companion::unwrap)) + } + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + override fun tn3270(tn3270: TN3270Property) { + cdkBuilder.tn3270(tn3270.let(TN3270Property.Companion::unwrap)) + } + + /** + * @param tn3270 The tn3270 port of the mainframe action type. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8793375e77a4a61aa1840f07e436fc5e616c2e0e2236e23842436a61d609a957") + override fun tn3270(tn3270: TN3270Property.Builder.() -> Unit): Unit = + tn3270(TN3270Property(tn3270)) + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty, + ) : CdkObject(cdkObject), + MainframeActionTypeProperty { + /** + * The batch of the mainframe action type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactiontype.html#cfn-apptest-testcase-mainframeactiontype-batch) + */ + override fun batch(): Any? = unwrap(this).getBatch() + + /** + * The tn3270 port of the mainframe action type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-mainframeactiontype.html#cfn-apptest-testcase-mainframeactiontype-tn3270) + */ + override fun tn3270(): Any? = unwrap(this).getTn3270() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MainframeActionTypeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty): + MainframeActionTypeProperty = CdkObjectWrappers.wrap(cdkObject) as? + MainframeActionTypeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MainframeActionTypeProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.MainframeActionTypeProperty + } + } + + /** + * Specifies an output file. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * OutputFileProperty outputFileProperty = OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-outputfile.html) + */ + public interface OutputFileProperty { + /** + * The file location of the output file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-outputfile.html#cfn-apptest-testcase-outputfile-filelocation) + */ + public fun fileLocation(): String? = unwrap(this).getFileLocation() + + /** + * A builder for [OutputFileProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param fileLocation The file location of the output file. + */ + public fun fileLocation(fileLocation: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty.builder() + + /** + * @param fileLocation The file location of the output file. + */ + override fun fileLocation(fileLocation: String) { + cdkBuilder.fileLocation(fileLocation) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty, + ) : CdkObject(cdkObject), + OutputFileProperty { + /** + * The file location of the output file. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-outputfile.html#cfn-apptest-testcase-outputfile-filelocation) + */ + override fun fileLocation(): String? = unwrap(this).getFileLocation() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): OutputFileProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty): + OutputFileProperty = CdkObjectWrappers.wrap(cdkObject) as? OutputFileProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: OutputFileProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.OutputFileProperty + } + } + + /** + * Specifies an output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * OutputProperty outputProperty = OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-output.html) + */ + public interface OutputProperty { + /** + * The file of the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-output.html#cfn-apptest-testcase-output-file) + */ + public fun `file`(): Any + + /** + * A builder for [OutputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param file The file of the output. + */ + public fun `file`(`file`: IResolvable) + + /** + * @param file The file of the output. + */ + public fun `file`(`file`: OutputFileProperty) + + /** + * @param file The file of the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cecd242f1eda71e763716a9774a644f731d090b61ba23b97e7bc88b20ab78c3b") + public fun `file`(`file`: OutputFileProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty.builder() + + /** + * @param file The file of the output. + */ + override fun `file`(`file`: IResolvable) { + cdkBuilder.`file`(`file`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param file The file of the output. + */ + override fun `file`(`file`: OutputFileProperty) { + cdkBuilder.`file`(`file`.let(OutputFileProperty.Companion::unwrap)) + } + + /** + * @param file The file of the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cecd242f1eda71e763716a9774a644f731d090b61ba23b97e7bc88b20ab78c3b") + override fun `file`(`file`: OutputFileProperty.Builder.() -> Unit): Unit = + `file`(OutputFileProperty(`file`)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty, + ) : CdkObject(cdkObject), + OutputProperty { + /** + * The file of the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-output.html#cfn-apptest-testcase-output-file) + */ + override fun `file`(): Any = unwrap(this).getFile() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): OutputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty): + OutputProperty = CdkObjectWrappers.wrap(cdkObject) as? OutputProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: OutputProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.OutputProperty + } + } + + /** + * Specifies a resource action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * ResourceActionProperty resourceActionProperty = ResourceActionProperty.builder() + * .cloudFormationAction(CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build()) + * .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build()) + * .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html) + */ + public interface ResourceActionProperty { + /** + * The CloudFormation action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-cloudformationaction) + */ + public fun cloudFormationAction(): Any? = unwrap(this).getCloudFormationAction() + + /** + * The Mainframe Modernization managed application action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-m2managedapplicationaction) + */ + public fun m2ManagedApplicationAction(): Any? = unwrap(this).getM2ManagedApplicationAction() + + /** + * The Mainframe Modernization non-managed application action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-m2nonmanagedapplicationaction) + */ + public fun m2NonManagedApplicationAction(): Any? = + unwrap(this).getM2NonManagedApplicationAction() + + /** + * A builder for [ResourceActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + public fun cloudFormationAction(cloudFormationAction: IResolvable) + + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + public fun cloudFormationAction(cloudFormationAction: CloudFormationActionProperty) + + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0775a66d584d398931428bd4b7ea953f8ad2bd15a7fce84dea53c023b4227948") + public + fun cloudFormationAction(cloudFormationAction: CloudFormationActionProperty.Builder.() -> Unit) + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + public fun m2ManagedApplicationAction(m2ManagedApplicationAction: IResolvable) + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + public + fun m2ManagedApplicationAction(m2ManagedApplicationAction: M2ManagedApplicationActionProperty) + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("33ef903c6260d5dd886a0ee467682811185c48d5f661ca8dffb94b2ff48bbf39") + public + fun m2ManagedApplicationAction(m2ManagedApplicationAction: M2ManagedApplicationActionProperty.Builder.() -> Unit) + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + public fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: IResolvable) + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + public + fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: M2NonManagedApplicationActionProperty) + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6a94e10f8f972e82ae97d654862c6c766a8ff5bcf0d94b7386796bd653b1b5b4") + public + fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: M2NonManagedApplicationActionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty.builder() + + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + override fun cloudFormationAction(cloudFormationAction: IResolvable) { + cdkBuilder.cloudFormationAction(cloudFormationAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + override fun cloudFormationAction(cloudFormationAction: CloudFormationActionProperty) { + cdkBuilder.cloudFormationAction(cloudFormationAction.let(CloudFormationActionProperty.Companion::unwrap)) + } + + /** + * @param cloudFormationAction The CloudFormation action of the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0775a66d584d398931428bd4b7ea953f8ad2bd15a7fce84dea53c023b4227948") + override + fun cloudFormationAction(cloudFormationAction: CloudFormationActionProperty.Builder.() -> Unit): + Unit = cloudFormationAction(CloudFormationActionProperty(cloudFormationAction)) + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + override fun m2ManagedApplicationAction(m2ManagedApplicationAction: IResolvable) { + cdkBuilder.m2ManagedApplicationAction(m2ManagedApplicationAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + override + fun m2ManagedApplicationAction(m2ManagedApplicationAction: M2ManagedApplicationActionProperty) { + cdkBuilder.m2ManagedApplicationAction(m2ManagedApplicationAction.let(M2ManagedApplicationActionProperty.Companion::unwrap)) + } + + /** + * @param m2ManagedApplicationAction The Mainframe Modernization managed application action of + * the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("33ef903c6260d5dd886a0ee467682811185c48d5f661ca8dffb94b2ff48bbf39") + override + fun m2ManagedApplicationAction(m2ManagedApplicationAction: M2ManagedApplicationActionProperty.Builder.() -> Unit): + Unit = + m2ManagedApplicationAction(M2ManagedApplicationActionProperty(m2ManagedApplicationAction)) + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + override fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: IResolvable) { + cdkBuilder.m2NonManagedApplicationAction(m2NonManagedApplicationAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + override + fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: M2NonManagedApplicationActionProperty) { + cdkBuilder.m2NonManagedApplicationAction(m2NonManagedApplicationAction.let(M2NonManagedApplicationActionProperty.Companion::unwrap)) + } + + /** + * @param m2NonManagedApplicationAction The Mainframe Modernization non-managed application + * action of the resource action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6a94e10f8f972e82ae97d654862c6c766a8ff5bcf0d94b7386796bd653b1b5b4") + override + fun m2NonManagedApplicationAction(m2NonManagedApplicationAction: M2NonManagedApplicationActionProperty.Builder.() -> Unit): + Unit = + m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty(m2NonManagedApplicationAction)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty, + ) : CdkObject(cdkObject), + ResourceActionProperty { + /** + * The CloudFormation action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-cloudformationaction) + */ + override fun cloudFormationAction(): Any? = unwrap(this).getCloudFormationAction() + + /** + * The Mainframe Modernization managed application action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-m2managedapplicationaction) + */ + override fun m2ManagedApplicationAction(): Any? = unwrap(this).getM2ManagedApplicationAction() + + /** + * The Mainframe Modernization non-managed application action of the resource action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-resourceaction.html#cfn-apptest-testcase-resourceaction-m2nonmanagedapplicationaction) + */ + override fun m2NonManagedApplicationAction(): Any? = + unwrap(this).getM2NonManagedApplicationAction() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ResourceActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty): + ResourceActionProperty = CdkObjectWrappers.wrap(cdkObject) as? ResourceActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ResourceActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.ResourceActionProperty + } + } + + /** + * Specifies the script. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * ScriptProperty scriptProperty = ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html) + */ + public interface ScriptProperty { + /** + * The script location of the scripts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-scriptlocation) + */ + public fun scriptLocation(): String + + /** + * The type of the scripts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-type) + */ + public fun type(): String + + /** + * A builder for [ScriptProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param scriptLocation The script location of the scripts. + */ + public fun scriptLocation(scriptLocation: String) + + /** + * @param type The type of the scripts. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty.builder() + + /** + * @param scriptLocation The script location of the scripts. + */ + override fun scriptLocation(scriptLocation: String) { + cdkBuilder.scriptLocation(scriptLocation) + } + + /** + * @param type The type of the scripts. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty, + ) : CdkObject(cdkObject), + ScriptProperty { + /** + * The script location of the scripts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-scriptlocation) + */ + override fun scriptLocation(): String = unwrap(this).getScriptLocation() + + /** + * The type of the scripts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ScriptProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty): + ScriptProperty = CdkObjectWrappers.wrap(cdkObject) as? ScriptProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ScriptProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.ScriptProperty + } + } + + /** + * Specifies the source database metadata. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * SourceDatabaseMetadataProperty sourceDatabaseMetadataProperty = + * SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-sourcedatabasemetadata.html) + */ + public interface SourceDatabaseMetadataProperty { + /** + * The capture tool of the source database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-sourcedatabasemetadata.html#cfn-apptest-testcase-sourcedatabasemetadata-capturetool) + */ + public fun captureTool(): String + + /** + * The type of the source database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-sourcedatabasemetadata.html#cfn-apptest-testcase-sourcedatabasemetadata-type) + */ + public fun type(): String + + /** + * A builder for [SourceDatabaseMetadataProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param captureTool The capture tool of the source database metadata. + */ + public fun captureTool(captureTool: String) + + /** + * @param type The type of the source database metadata. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty.builder() + + /** + * @param captureTool The capture tool of the source database metadata. + */ + override fun captureTool(captureTool: String) { + cdkBuilder.captureTool(captureTool) + } + + /** + * @param type The type of the source database metadata. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty, + ) : CdkObject(cdkObject), + SourceDatabaseMetadataProperty { + /** + * The capture tool of the source database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-sourcedatabasemetadata.html#cfn-apptest-testcase-sourcedatabasemetadata-capturetool) + */ + override fun captureTool(): String = unwrap(this).getCaptureTool() + + /** + * The type of the source database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-sourcedatabasemetadata.html#cfn-apptest-testcase-sourcedatabasemetadata-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SourceDatabaseMetadataProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty): + SourceDatabaseMetadataProperty = CdkObjectWrappers.wrap(cdkObject) as? + SourceDatabaseMetadataProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SourceDatabaseMetadataProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.SourceDatabaseMetadataProperty + } + } + + /** + * Specifies a step action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * StepActionProperty stepActionProperty = StepActionProperty.builder() + * .compareAction(CompareActionProperty.builder() + * .input(InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build()) + * // the properties below are optional + * .output(OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build()) + * .build()) + * .mainframeAction(MainframeActionProperty.builder() + * .actionType(MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build()) + * .resource("resource") + * // the properties below are optional + * .properties(MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build()) + * .build()) + * .resourceAction(ResourceActionProperty.builder() + * .cloudFormationAction(CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build()) + * .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build()) + * .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html) + */ + public interface StepActionProperty { + /** + * The compare action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-compareaction) + */ + public fun compareAction(): Any? = unwrap(this).getCompareAction() + + /** + * The mainframe action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-mainframeaction) + */ + public fun mainframeAction(): Any? = unwrap(this).getMainframeAction() + + /** + * The resource action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-resourceaction) + */ + public fun resourceAction(): Any? = unwrap(this).getResourceAction() + + /** + * A builder for [StepActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param compareAction The compare action of the step action. + */ + public fun compareAction(compareAction: IResolvable) + + /** + * @param compareAction The compare action of the step action. + */ + public fun compareAction(compareAction: CompareActionProperty) + + /** + * @param compareAction The compare action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38230f0db88d60f407c2eef3f29aee7552f8c8492234dc866ce931c1e7d8343e") + public fun compareAction(compareAction: CompareActionProperty.Builder.() -> Unit) + + /** + * @param mainframeAction The mainframe action of the step action. + */ + public fun mainframeAction(mainframeAction: IResolvable) + + /** + * @param mainframeAction The mainframe action of the step action. + */ + public fun mainframeAction(mainframeAction: MainframeActionProperty) + + /** + * @param mainframeAction The mainframe action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("88fe29815036d357ae72af885721e9ba4fd008e52ffb90fadf442ece85bc0739") + public fun mainframeAction(mainframeAction: MainframeActionProperty.Builder.() -> Unit) + + /** + * @param resourceAction The resource action of the step action. + */ + public fun resourceAction(resourceAction: IResolvable) + + /** + * @param resourceAction The resource action of the step action. + */ + public fun resourceAction(resourceAction: ResourceActionProperty) + + /** + * @param resourceAction The resource action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e22dfab5bccda5871aa9fdb69cbf00b842a1a7bbdcf6253113a032d11aaa951b") + public fun resourceAction(resourceAction: ResourceActionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty.builder() + + /** + * @param compareAction The compare action of the step action. + */ + override fun compareAction(compareAction: IResolvable) { + cdkBuilder.compareAction(compareAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param compareAction The compare action of the step action. + */ + override fun compareAction(compareAction: CompareActionProperty) { + cdkBuilder.compareAction(compareAction.let(CompareActionProperty.Companion::unwrap)) + } + + /** + * @param compareAction The compare action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38230f0db88d60f407c2eef3f29aee7552f8c8492234dc866ce931c1e7d8343e") + override fun compareAction(compareAction: CompareActionProperty.Builder.() -> Unit): Unit = + compareAction(CompareActionProperty(compareAction)) + + /** + * @param mainframeAction The mainframe action of the step action. + */ + override fun mainframeAction(mainframeAction: IResolvable) { + cdkBuilder.mainframeAction(mainframeAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mainframeAction The mainframe action of the step action. + */ + override fun mainframeAction(mainframeAction: MainframeActionProperty) { + cdkBuilder.mainframeAction(mainframeAction.let(MainframeActionProperty.Companion::unwrap)) + } + + /** + * @param mainframeAction The mainframe action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("88fe29815036d357ae72af885721e9ba4fd008e52ffb90fadf442ece85bc0739") + override fun mainframeAction(mainframeAction: MainframeActionProperty.Builder.() -> Unit): + Unit = mainframeAction(MainframeActionProperty(mainframeAction)) + + /** + * @param resourceAction The resource action of the step action. + */ + override fun resourceAction(resourceAction: IResolvable) { + cdkBuilder.resourceAction(resourceAction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param resourceAction The resource action of the step action. + */ + override fun resourceAction(resourceAction: ResourceActionProperty) { + cdkBuilder.resourceAction(resourceAction.let(ResourceActionProperty.Companion::unwrap)) + } + + /** + * @param resourceAction The resource action of the step action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e22dfab5bccda5871aa9fdb69cbf00b842a1a7bbdcf6253113a032d11aaa951b") + override fun resourceAction(resourceAction: ResourceActionProperty.Builder.() -> Unit): Unit = + resourceAction(ResourceActionProperty(resourceAction)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty, + ) : CdkObject(cdkObject), + StepActionProperty { + /** + * The compare action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-compareaction) + */ + override fun compareAction(): Any? = unwrap(this).getCompareAction() + + /** + * The mainframe action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-mainframeaction) + */ + override fun mainframeAction(): Any? = unwrap(this).getMainframeAction() + + /** + * The resource action of the step action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-stepaction.html#cfn-apptest-testcase-stepaction-resourceaction) + */ + override fun resourceAction(): Any? = unwrap(this).getResourceAction() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StepActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty): + StepActionProperty = CdkObjectWrappers.wrap(cdkObject) as? StepActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: StepActionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.StepActionProperty + } + } + + /** + * Defines a step. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * StepProperty stepProperty = StepProperty.builder() + * .action(StepActionProperty.builder() + * .compareAction(CompareActionProperty.builder() + * .input(InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build()) + * // the properties below are optional + * .output(OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build()) + * .build()) + * .mainframeAction(MainframeActionProperty.builder() + * .actionType(MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build()) + * .resource("resource") + * // the properties below are optional + * .properties(MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build()) + * .build()) + * .resourceAction(ResourceActionProperty.builder() + * .cloudFormationAction(CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build()) + * .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build()) + * .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build()) + * .build()) + * .build()) + * .name("name") + * // the properties below are optional + * .description("description") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html) + */ + public interface StepProperty { + /** + * The action of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-action) + */ + public fun action(): Any + + /** + * The description of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-name) + */ + public fun name(): String + + /** + * A builder for [StepProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param action The action of the step. + */ + public fun action(action: IResolvable) + + /** + * @param action The action of the step. + */ + public fun action(action: StepActionProperty) + + /** + * @param action The action of the step. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d544d32141cd16c4048bf7a7d59815b9329ee697b9e039fd6b9fc1c58a9a7cf3") + public fun action(action: StepActionProperty.Builder.() -> Unit) + + /** + * @param description The description of the step. + */ + public fun description(description: String) + + /** + * @param name The name of the step. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty.builder() + + /** + * @param action The action of the step. + */ + override fun action(action: IResolvable) { + cdkBuilder.action(action.let(IResolvable.Companion::unwrap)) + } + + /** + * @param action The action of the step. + */ + override fun action(action: StepActionProperty) { + cdkBuilder.action(action.let(StepActionProperty.Companion::unwrap)) + } + + /** + * @param action The action of the step. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d544d32141cd16c4048bf7a7d59815b9329ee697b9e039fd6b9fc1c58a9a7cf3") + override fun action(action: StepActionProperty.Builder.() -> Unit): Unit = + action(StepActionProperty(action)) + + /** + * @param description The description of the step. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name The name of the step. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty, + ) : CdkObject(cdkObject), + StepProperty { + /** + * The action of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-action) + */ + override fun action(): Any = unwrap(this).getAction() + + /** + * The description of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the step. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-step.html#cfn-apptest-testcase-step-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StepProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty): + StepProperty = CdkObjectWrappers.wrap(cdkObject) as? StepProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StepProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.StepProperty + } + } + + /** + * Specifies the TN3270 protocol. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * TN3270Property tN3270Property = TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-tn3270.html) + */ + public interface TN3270Property { + /** + * The data set names of the TN3270 protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-tn3270.html#cfn-apptest-testcase-tn3270-exportdatasetnames) + */ + public fun exportDataSetNames(): List = unwrap(this).getExportDataSetNames() ?: + emptyList() + + /** + * The script of the TN3270 protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-tn3270.html#cfn-apptest-testcase-tn3270-script) + */ + public fun script(): Any + + /** + * A builder for [TN3270Property] + */ + @CdkDslMarker + public interface Builder { + /** + * @param exportDataSetNames The data set names of the TN3270 protocol. + */ + public fun exportDataSetNames(exportDataSetNames: List) + + /** + * @param exportDataSetNames The data set names of the TN3270 protocol. + */ + public fun exportDataSetNames(vararg exportDataSetNames: String) + + /** + * @param script The script of the TN3270 protocol. + */ + public fun script(script: IResolvable) + + /** + * @param script The script of the TN3270 protocol. + */ + public fun script(script: ScriptProperty) + + /** + * @param script The script of the TN3270 protocol. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("08c3ae5d104a7649bcced85d6a3fe3dce1a0ce9a24e68b5018459656144a8946") + public fun script(script: ScriptProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property.Builder = + software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property.builder() + + /** + * @param exportDataSetNames The data set names of the TN3270 protocol. + */ + override fun exportDataSetNames(exportDataSetNames: List) { + cdkBuilder.exportDataSetNames(exportDataSetNames) + } + + /** + * @param exportDataSetNames The data set names of the TN3270 protocol. + */ + override fun exportDataSetNames(vararg exportDataSetNames: String): Unit = + exportDataSetNames(exportDataSetNames.toList()) + + /** + * @param script The script of the TN3270 protocol. + */ + override fun script(script: IResolvable) { + cdkBuilder.script(script.let(IResolvable.Companion::unwrap)) + } + + /** + * @param script The script of the TN3270 protocol. + */ + override fun script(script: ScriptProperty) { + cdkBuilder.script(script.let(ScriptProperty.Companion::unwrap)) + } + + /** + * @param script The script of the TN3270 protocol. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("08c3ae5d104a7649bcced85d6a3fe3dce1a0ce9a24e68b5018459656144a8946") + override fun script(script: ScriptProperty.Builder.() -> Unit): Unit = + script(ScriptProperty(script)) + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property, + ) : CdkObject(cdkObject), + TN3270Property { + /** + * The data set names of the TN3270 protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-tn3270.html#cfn-apptest-testcase-tn3270-exportdatasetnames) + */ + override fun exportDataSetNames(): List = unwrap(this).getExportDataSetNames() ?: + emptyList() + + /** + * The script of the TN3270 protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-tn3270.html#cfn-apptest-testcase-tn3270-script) + */ + override fun script(): Any = unwrap(this).getScript() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TN3270Property { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property): + TN3270Property = CdkObjectWrappers.wrap(cdkObject) as? TN3270Property ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TN3270Property): + software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.apptest.CfnTestCase.TN3270Property + } + } + + /** + * Specifies a target database metadata. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * TargetDatabaseMetadataProperty targetDatabaseMetadataProperty = + * TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-targetdatabasemetadata.html) + */ + public interface TargetDatabaseMetadataProperty { + /** + * The capture tool of the target database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-targetdatabasemetadata.html#cfn-apptest-testcase-targetdatabasemetadata-capturetool) + */ + public fun captureTool(): String + + /** + * The type of the target database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-targetdatabasemetadata.html#cfn-apptest-testcase-targetdatabasemetadata-type) + */ + public fun type(): String + + /** + * A builder for [TargetDatabaseMetadataProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param captureTool The capture tool of the target database metadata. + */ + public fun captureTool(captureTool: String) + + /** + * @param type The type of the target database metadata. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty.builder() + + /** + * @param captureTool The capture tool of the target database metadata. + */ + override fun captureTool(captureTool: String) { + cdkBuilder.captureTool(captureTool) + } + + /** + * @param type The type of the target database metadata. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty, + ) : CdkObject(cdkObject), + TargetDatabaseMetadataProperty { + /** + * The capture tool of the target database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-targetdatabasemetadata.html#cfn-apptest-testcase-targetdatabasemetadata-capturetool) + */ + override fun captureTool(): String = unwrap(this).getCaptureTool() + + /** + * The type of the target database metadata. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-targetdatabasemetadata.html#cfn-apptest-testcase-targetdatabasemetadata-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TargetDatabaseMetadataProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty): + TargetDatabaseMetadataProperty = CdkObjectWrappers.wrap(cdkObject) as? + TargetDatabaseMetadataProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TargetDatabaseMetadataProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.TargetDatabaseMetadataProperty + } + } + + /** + * Specifies the latest version of a test case. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * TestCaseLatestVersionProperty testCaseLatestVersionProperty = + * TestCaseLatestVersionProperty.builder() + * .status("status") + * .version(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-testcaselatestversion.html) + */ + public interface TestCaseLatestVersionProperty { + /** + * The status of the test case latest version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-testcaselatestversion.html#cfn-apptest-testcase-testcaselatestversion-status) + */ + public fun status(): String + + /** + * The version of the test case latest version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-testcaselatestversion.html#cfn-apptest-testcase-testcaselatestversion-version) + */ + public fun version(): Number + + /** + * A builder for [TestCaseLatestVersionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param status The status of the test case latest version. + */ + public fun status(status: String) + + /** + * @param version The version of the test case latest version. + */ + public fun version(version: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty.Builder + = + software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty.builder() + + /** + * @param status The status of the test case latest version. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * @param version The version of the test case latest version. + */ + override fun version(version: Number) { + cdkBuilder.version(version) + } + + public fun build(): + software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty, + ) : CdkObject(cdkObject), + TestCaseLatestVersionProperty { + /** + * The status of the test case latest version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-testcaselatestversion.html#cfn-apptest-testcase-testcaselatestversion-status) + */ + override fun status(): String = unwrap(this).getStatus() + + /** + * The version of the test case latest version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-testcaselatestversion.html#cfn-apptest-testcase-testcaselatestversion-version) + */ + override fun version(): Number = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TestCaseLatestVersionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty): + TestCaseLatestVersionProperty = CdkObjectWrappers.wrap(cdkObject) as? + TestCaseLatestVersionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TestCaseLatestVersionProperty): + software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.apptest.CfnTestCase.TestCaseLatestVersionProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCaseProps.kt new file mode 100644 index 0000000000..20ef59fd58 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apptest/CfnTestCaseProps.kt @@ -0,0 +1,279 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.apptest + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnTestCase`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.apptest.*; + * CfnTestCaseProps cfnTestCaseProps = CfnTestCaseProps.builder() + * .name("name") + * .steps(List.of(StepProperty.builder() + * .action(StepActionProperty.builder() + * .compareAction(CompareActionProperty.builder() + * .input(InputProperty.builder() + * .file(InputFileProperty.builder() + * .fileMetadata(FileMetadataProperty.builder() + * .databaseCdc(DatabaseCDCProperty.builder() + * .sourceMetadata(SourceDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .targetMetadata(TargetDatabaseMetadataProperty.builder() + * .captureTool("captureTool") + * .type("type") + * .build()) + * .build()) + * .dataSets(List.of(DataSetProperty.builder() + * .ccsid("ccsid") + * .format("format") + * .length(123) + * .name("name") + * .type("type") + * .build())) + * .build()) + * .sourceLocation("sourceLocation") + * .targetLocation("targetLocation") + * .build()) + * .build()) + * // the properties below are optional + * .output(OutputProperty.builder() + * .file(OutputFileProperty.builder() + * .fileLocation("fileLocation") + * .build()) + * .build()) + * .build()) + * .mainframeAction(MainframeActionProperty.builder() + * .actionType(MainframeActionTypeProperty.builder() + * .batch(BatchProperty.builder() + * .batchJobName("batchJobName") + * // the properties below are optional + * .batchJobParameters(Map.of( + * "batchJobParametersKey", "batchJobParameters")) + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .tn3270(TN3270Property.builder() + * .script(ScriptProperty.builder() + * .scriptLocation("scriptLocation") + * .type("type") + * .build()) + * // the properties below are optional + * .exportDataSetNames(List.of("exportDataSetNames")) + * .build()) + * .build()) + * .resource("resource") + * // the properties below are optional + * .properties(MainframeActionPropertiesProperty.builder() + * .dmsTaskArn("dmsTaskArn") + * .build()) + * .build()) + * .resourceAction(ResourceActionProperty.builder() + * .cloudFormationAction(CloudFormationActionProperty.builder() + * .resource("resource") + * // the properties below are optional + * .actionType("actionType") + * .build()) + * .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * // the properties below are optional + * .properties(M2ManagedActionPropertiesProperty.builder() + * .forceStop(false) + * .importDataSetLocation("importDataSetLocation") + * .build()) + * .build()) + * .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder() + * .actionType("actionType") + * .resource("resource") + * .build()) + * .build()) + * .build()) + * .name("name") + * // the properties below are optional + * .description("description") + * .build())) + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html) + */ +public interface CfnTestCaseProps { + /** + * The description of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-name) + */ + public fun name(): String + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + */ + public fun steps(): Any + + /** + * The specified tags of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnTestCaseProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the test case. + */ + public fun description(description: String) + + /** + * @param name The name of the test case. + */ + public fun name(name: String) + + /** + * @param steps The steps in the test case. + */ + public fun steps(steps: IResolvable) + + /** + * @param steps The steps in the test case. + */ + public fun steps(steps: List) + + /** + * @param steps The steps in the test case. + */ + public fun steps(vararg steps: Any) + + /** + * @param tags The specified tags of the test case. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.apptest.CfnTestCaseProps.Builder = + software.amazon.awscdk.services.apptest.CfnTestCaseProps.builder() + + /** + * @param description The description of the test case. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name The name of the test case. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param steps The steps in the test case. + */ + override fun steps(steps: IResolvable) { + cdkBuilder.steps(steps.let(IResolvable.Companion::unwrap)) + } + + /** + * @param steps The steps in the test case. + */ + override fun steps(steps: List) { + cdkBuilder.steps(steps.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param steps The steps in the test case. + */ + override fun steps(vararg steps: Any): Unit = steps(steps.toList()) + + /** + * @param tags The specified tags of the test case. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.apptest.CfnTestCaseProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.apptest.CfnTestCaseProps, + ) : CdkObject(cdkObject), + CfnTestCaseProps { + /** + * The description of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The steps in the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-steps) + */ + override fun steps(): Any = unwrap(this).getSteps() + + /** + * The specified tags of the test case. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html#cfn-apptest-testcase-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnTestCaseProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.apptest.CfnTestCaseProps): + CfnTestCaseProps = CdkObjectWrappers.wrap(cdkObject) as? CfnTestCaseProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnTestCaseProps): + software.amazon.awscdk.services.apptest.CfnTestCaseProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.apptest.CfnTestCaseProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespace.kt index 3668891aa2..0ccc3c1bf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespace.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRuleGroupsNamespace( cdkObject: software.amazon.awscdk.services.aps.CfnRuleGroupsNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespaceProps.kt index 95c1bab177..dc847562ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnRuleGroupsNamespaceProps.kt @@ -150,7 +150,8 @@ public interface CfnRuleGroupsNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnRuleGroupsNamespaceProps, - ) : CdkObject(cdkObject), CfnRuleGroupsNamespaceProps { + ) : CdkObject(cdkObject), + CfnRuleGroupsNamespaceProps { /** * The rules file used in the namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraper.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraper.kt index f0c3f86f41..943f25e07f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraper.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraper.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScraper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -565,7 +567,8 @@ public open class CfnScraper( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper.AmpConfigurationProperty, - ) : CdkObject(cdkObject), AmpConfigurationProperty { + ) : CdkObject(cdkObject), + AmpConfigurationProperty { /** * ARN of the Amazon Managed Service for Prometheus workspace. * @@ -680,7 +683,8 @@ public open class CfnScraper( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * The Amazon Managed Service for Prometheus workspace to send metrics to. * @@ -826,7 +830,8 @@ public open class CfnScraper( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper.EksConfigurationProperty, - ) : CdkObject(cdkObject), EksConfigurationProperty { + ) : CdkObject(cdkObject), + EksConfigurationProperty { /** * ARN of the Amazon EKS cluster. * @@ -925,7 +930,8 @@ public open class CfnScraper( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper.ScrapeConfigurationProperty, - ) : CdkObject(cdkObject), ScrapeConfigurationProperty { + ) : CdkObject(cdkObject), + ScrapeConfigurationProperty { /** * The base 64 encoded scrape configuration file. * @@ -1036,7 +1042,8 @@ public open class CfnScraper( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraper.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * The Amazon EKS cluster from which a scraper collects metrics. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraperProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraperProps.kt index 73f62a1276..bd686f6d54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraperProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnScraperProps.kt @@ -260,7 +260,8 @@ public interface CfnScraperProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnScraperProps, - ) : CdkObject(cdkObject), CfnScraperProps { + ) : CdkObject(cdkObject), + CfnScraperProps { /** * An optional user-assigned scraper alias. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspace.kt index 2103da82b0..55f335b590 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspace.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkspace( cdkObject: software.amazon.awscdk.services.aps.CfnWorkspace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.aps.CfnWorkspace(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -487,7 +489,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnWorkspace.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * The ARN of the CloudWatch log group to which the vended log data will be published. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspaceProps.kt index 27ddd3e9ea..5b7f0981be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/aps/CfnWorkspaceProps.kt @@ -249,7 +249,8 @@ public interface CfnWorkspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.aps.CfnWorkspaceProps, - ) : CdkObject(cdkObject), CfnWorkspaceProps { + ) : CdkObject(cdkObject), + CfnWorkspaceProps { /** * The alert manager definition, a YAML configuration for the alert manager in your Amazon * Managed Service for Prometheus workspace. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatus.kt new file mode 100644 index 0000000000..d3b78e2fde --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatus.kt @@ -0,0 +1,141 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.arczonalshift + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::ARCZonalShift::AutoshiftObserverNotificationStatus Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.arczonalshift.*; + * CfnAutoshiftObserverNotificationStatus cfnAutoshiftObserverNotificationStatus = + * CfnAutoshiftObserverNotificationStatus.Builder.create(this, + * "MyCfnAutoshiftObserverNotificationStatus") + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html) + */ +public open class CfnAutoshiftObserverNotificationStatus( + cdkObject: software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnAutoshiftObserverNotificationStatusProps, + ) : + this(software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnAutoshiftObserverNotificationStatusProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnAutoshiftObserverNotificationStatusProps.Builder.() -> Unit, + ) : this(scope, id, CfnAutoshiftObserverNotificationStatusProps(props) + ) + + /** + * User account id, used as part of the primary identifier for the resource. + */ + public open fun attrAccountId(): String = unwrap(this).getAttrAccountId() + + /** + * Region, used as part of the primary identifier for the resource. + */ + public open fun attrRegion(): String = unwrap(this).getAttrRegion() + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * + */ + public open fun status(): String = unwrap(this).getStatus() + + /** + * + */ + public open fun status(`value`: String) { + unwrap(this).setStatus(`value`) + } + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus]. + */ + @CdkDslMarker + public interface Builder { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html#cfn-arczonalshift-autoshiftobservernotificationstatus-status) + * @param status + */ + public fun status(status: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus.Builder + = + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus.Builder.create(scope, + id) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html#cfn-arczonalshift-autoshiftobservernotificationstatus-status) + * @param status + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnAutoshiftObserverNotificationStatus { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnAutoshiftObserverNotificationStatus(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus): + CfnAutoshiftObserverNotificationStatus = CfnAutoshiftObserverNotificationStatus(cdkObject) + + internal fun unwrap(wrapped: CfnAutoshiftObserverNotificationStatus): + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus = + wrapped.cdkObject as + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatus + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatusProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatusProps.kt new file mode 100644 index 0000000000..26f224f27d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnAutoshiftObserverNotificationStatusProps.kt @@ -0,0 +1,90 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.arczonalshift + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnAutoshiftObserverNotificationStatus`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.arczonalshift.*; + * CfnAutoshiftObserverNotificationStatusProps cfnAutoshiftObserverNotificationStatusProps = + * CfnAutoshiftObserverNotificationStatusProps.builder() + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html) + */ +public interface CfnAutoshiftObserverNotificationStatusProps { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html#cfn-arczonalshift-autoshiftobservernotificationstatus-status) + */ + public fun status(): String + + /** + * A builder for [CfnAutoshiftObserverNotificationStatusProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param status the value to be set. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps.Builder + = + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps.builder() + + /** + * @param status the value to be set. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps, + ) : CdkObject(cdkObject), + CfnAutoshiftObserverNotificationStatusProps { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-arczonalshift-autoshiftobservernotificationstatus.html#cfn-arczonalshift-autoshiftobservernotificationstatus-status) + */ + override fun status(): String = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + CfnAutoshiftObserverNotificationStatusProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps): + CfnAutoshiftObserverNotificationStatusProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnAutoshiftObserverNotificationStatusProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnAutoshiftObserverNotificationStatusProps): + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.arczonalshift.CfnAutoshiftObserverNotificationStatusProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfiguration.kt index 5fcf50b9bc..70bcd7a180 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfiguration.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnZonalAutoshiftConfiguration( cdkObject: software.amazon.awscdk.services.arczonalshift.CfnZonalAutoshiftConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -499,7 +500,8 @@ public open class CfnZonalAutoshiftConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.arczonalshift.CfnZonalAutoshiftConfiguration.ControlConditionProperty, - ) : CdkObject(cdkObject), ControlConditionProperty { + ) : CdkObject(cdkObject), + ControlConditionProperty { /** * The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control * condition for a practice run. @@ -829,7 +831,8 @@ public open class CfnZonalAutoshiftConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.arczonalshift.CfnZonalAutoshiftConfiguration.PracticeRunConfigurationProperty, - ) : CdkObject(cdkObject), PracticeRunConfigurationProperty { + ) : CdkObject(cdkObject), + PracticeRunConfigurationProperty { /** * An array of one or more dates that you can specify when AWS does not start practice runs * for a resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfigurationProps.kt index 5c28d02977..a929626235 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/arczonalshift/CfnZonalAutoshiftConfigurationProps.kt @@ -259,7 +259,8 @@ public interface CfnZonalAutoshiftConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.arczonalshift.CfnZonalAutoshiftConfigurationProps, - ) : CdkObject(cdkObject), CfnZonalAutoshiftConfigurationProps { + ) : CdkObject(cdkObject), + CfnZonalAutoshiftConfigurationProps { /** * A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've * specified for a practice run, as well as any blocked dates or blocked windows for the practice diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservation.kt index 1104527db7..71881722ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservation.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCapacityReservation( cdkObject: software.amazon.awscdk.services.athena.CfnCapacityReservation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -495,7 +497,8 @@ public open class CfnCapacityReservation( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnCapacityReservation.CapacityAssignmentConfigurationProperty, - ) : CdkObject(cdkObject), CapacityAssignmentConfigurationProperty { + ) : CdkObject(cdkObject), + CapacityAssignmentConfigurationProperty { /** * The list of assignments that make up the capacity assignment configuration. * @@ -589,7 +592,8 @@ public open class CfnCapacityReservation( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnCapacityReservation.CapacityAssignmentProperty, - ) : CdkObject(cdkObject), CapacityAssignmentProperty { + ) : CdkObject(cdkObject), + CapacityAssignmentProperty { /** * The list of workgroup names for the capacity assignment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservationProps.kt index c9cb4b1fd4..63aadb70c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnCapacityReservationProps.kt @@ -229,7 +229,8 @@ public interface CfnCapacityReservationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnCapacityReservationProps, - ) : CdkObject(cdkObject), CfnCapacityReservationProps { + ) : CdkObject(cdkObject), + CfnCapacityReservationProps { /** * Assigns Athena workgroups (and hence their queries) to capacity reservations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalog.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalog.kt index 48f0626c3b..6d21910fc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalog.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalog.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataCatalog( cdkObject: software.amazon.awscdk.services.athena.CfnDataCatalog, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalogProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalogProps.kt index fc1422c0b2..57785dbd47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalogProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnDataCatalogProps.kt @@ -316,7 +316,8 @@ public interface CfnDataCatalogProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnDataCatalogProps, - ) : CdkObject(cdkObject), CfnDataCatalogProps { + ) : CdkObject(cdkObject), + CfnDataCatalogProps { /** * A description of the data catalog. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQuery.kt index 75d309508b..de15090d54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQuery.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNamedQuery( cdkObject: software.amazon.awscdk.services.athena.CfnNamedQuery, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQueryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQueryProps.kt index 0161388fda..148fabaf3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQueryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnNamedQueryProps.kt @@ -141,7 +141,8 @@ public interface CfnNamedQueryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnNamedQueryProps, - ) : CdkObject(cdkObject), CfnNamedQueryProps { + ) : CdkObject(cdkObject), + CfnNamedQueryProps { /** * The database to which the query belongs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatement.kt index 84a29cd6bf..4a6a9f0e50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatement.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPreparedStatement( cdkObject: software.amazon.awscdk.services.athena.CfnPreparedStatement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatementProps.kt index dbfa890bb8..a1ef4b2ba9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnPreparedStatementProps.kt @@ -121,7 +121,8 @@ public interface CfnPreparedStatementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnPreparedStatementProps, - ) : CdkObject(cdkObject), CfnPreparedStatementProps { + ) : CdkObject(cdkObject), + CfnPreparedStatementProps { /** * The description of the prepared statement. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroup.kt index 585540c735..0449ecd690 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroup.kt @@ -115,7 +115,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkGroup( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -763,7 +765,8 @@ public open class CfnWorkGroup( /** * Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query - * results. + * results, including data files inserted by Athena as the result of statements like CTAS or INSERT + * INTO. * * When Athena stores query results in Amazon S3, the canned ACL is set with the `x-amz-acl` * request header. For more information about S3 Object Ownership, see [Object Ownership @@ -785,7 +788,8 @@ public open class CfnWorkGroup( */ public interface AclConfigurationProperty { /** - * The Amazon S3 canned ACL that Athena should specify when storing query results. + * The Amazon S3 canned ACL that Athena should specify when storing query results, including + * data files inserted by Athena as the result of statements like CTAS or INSERT INTO. * * Currently the only supported canned ACL is `BUCKET_OWNER_FULL_CONTROL` . If a query runs in a * workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL @@ -805,7 +809,8 @@ public open class CfnWorkGroup( public interface Builder { /** * @param s3AclOption The Amazon S3 canned ACL that Athena should specify when storing query - * results. + * results, including data files inserted by Athena as the result of statements like CTAS or + * INSERT INTO. * Currently the only supported canned ACL is `BUCKET_OWNER_FULL_CONTROL` . If a query runs in * a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL * specified in the workgroup's settings is used for all queries that run in the workgroup. For @@ -823,7 +828,8 @@ public open class CfnWorkGroup( /** * @param s3AclOption The Amazon S3 canned ACL that Athena should specify when storing query - * results. + * results, including data files inserted by Athena as the result of statements like CTAS or + * INSERT INTO. * Currently the only supported canned ACL is `BUCKET_OWNER_FULL_CONTROL` . If a query runs in * a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL * specified in the workgroup's settings is used for all queries that run in the workgroup. For @@ -842,9 +848,11 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.AclConfigurationProperty, - ) : CdkObject(cdkObject), AclConfigurationProperty { + ) : CdkObject(cdkObject), + AclConfigurationProperty { /** - * The Amazon S3 canned ACL that Athena should specify when storing query results. + * The Amazon S3 canned ACL that Athena should specify when storing query results, including + * data files inserted by Athena as the result of statements like CTAS or INSERT INTO. * * Currently the only supported canned ACL is `BUCKET_OWNER_FULL_CONTROL` . If a query runs in * a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL @@ -938,7 +946,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.CustomerContentEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), CustomerContentEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + CustomerContentEncryptionConfigurationProperty { /** * The customer managed KMS key that is used to encrypt the user's data stores in Athena. * @@ -1060,7 +1069,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys ( `SSE_S3` * ), server-side encryption with KMS-managed keys ( `SSE_KMS` ), or client-side encryption with @@ -1197,7 +1207,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.EngineVersionProperty, - ) : CdkObject(cdkObject), EngineVersionProperty { + ) : CdkObject(cdkObject), + EngineVersionProperty { /** * Read only. * @@ -1290,8 +1301,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then the * query uses the encryption configuration that is specified for the workgroup, and also uses the * location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-encryptionconfiguration) */ @@ -1321,9 +1332,8 @@ public open class CfnWorkGroup( * To run a query, you must specify the query results location using either a client-side * setting for individual queries or a location specified by the workgroup. If workgroup settings * override client-side settings, then the query uses the location specified for the workgroup. If - * no query location is set, Athena issues an error. For more information, see [Working with Query - * Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and + * no query location is set, Athena issues an error. For more information, see [Work with query + * results and recent queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and * `EnforceWorkGroupConfiguration` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-outputlocation) @@ -1373,8 +1383,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun encryptionConfiguration(encryptionConfiguration: IResolvable) @@ -1384,8 +1394,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) @@ -1395,8 +1405,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5203c5f393dec1aa3e91088a082705ed6f73eac66b6b62ee8a887ec08dd6f120") @@ -1423,10 +1433,9 @@ public open class CfnWorkGroup( * To run a query, you must specify the query results location using either a client-side * setting for individual queries or a location specified by the workgroup. If workgroup settings * override client-side settings, then the query uses the location specified for the workgroup. - * If no query location is set, Athena issues an error. For more information, see [Working with - * Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and - * `EnforceWorkGroupConfiguration` . + * If no query location is set, Athena issues an error. For more information, see [Work with + * query results and recent queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) + * and `EnforceWorkGroupConfiguration` . */ public fun outputLocation(outputLocation: String) } @@ -1479,8 +1488,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) @@ -1492,8 +1501,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) { @@ -1506,8 +1515,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5203c5f393dec1aa3e91088a082705ed6f73eac66b6b62ee8a887ec08dd6f120") @@ -1537,10 +1546,9 @@ public open class CfnWorkGroup( * To run a query, you must specify the query results location using either a client-side * setting for individual queries or a location specified by the workgroup. If workgroup settings * override client-side settings, then the query uses the location specified for the workgroup. - * If no query location is set, Athena issues an error. For more information, see [Working with - * Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and - * `EnforceWorkGroupConfiguration` . + * If no query location is set, Athena issues an error. For more information, see [Work with + * query results and recent queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) + * and `EnforceWorkGroupConfiguration` . */ override fun outputLocation(outputLocation: String) { cdkBuilder.outputLocation(outputLocation) @@ -1553,7 +1561,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.ResultConfigurationProperty, - ) : CdkObject(cdkObject), ResultConfigurationProperty { + ) : CdkObject(cdkObject), + ResultConfigurationProperty { /** * Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query * results. @@ -1574,8 +1583,8 @@ public open class CfnWorkGroup( * This is a client-side setting. If workgroup settings override client-side settings, then * the query uses the encryption configuration that is specified for the workgroup, and also uses * the location for storing query results specified in the workgroup. See - * `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * `EnforceWorkGroupConfiguration` and [Override client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-encryptionconfiguration) */ @@ -1605,10 +1614,9 @@ public open class CfnWorkGroup( * To run a query, you must specify the query results location using either a client-side * setting for individual queries or a location specified by the workgroup. If workgroup settings * override client-side settings, then the query uses the location specified for the workgroup. - * If no query location is set, Athena issues an error. For more information, see [Working with - * Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and - * `EnforceWorkGroupConfiguration` . + * If no query location is set, Athena issues an error. For more information, see [Work with + * query results and recent queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) + * and `EnforceWorkGroupConfiguration` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-outputlocation) */ @@ -1735,7 +1743,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeencryptionconfiguration) @@ -1763,8 +1771,8 @@ public open class CfnWorkGroup( * * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeoutputlocation) @@ -1868,7 +1876,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun removeEncryptionConfiguration(removeEncryptionConfiguration: Boolean) @@ -1880,7 +1888,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun removeEncryptionConfiguration(removeEncryptionConfiguration: IResolvable) @@ -1913,8 +1921,8 @@ public open class CfnWorkGroup( * ignored and set to null. * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun removeOutputLocation(removeOutputLocation: Boolean) @@ -1925,8 +1933,8 @@ public open class CfnWorkGroup( * ignored and set to null. * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun removeOutputLocation(removeOutputLocation: IResolvable) @@ -2049,7 +2057,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun removeEncryptionConfiguration(removeEncryptionConfiguration: Boolean) { @@ -2063,7 +2071,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun removeEncryptionConfiguration(removeEncryptionConfiguration: IResolvable) { @@ -2102,8 +2110,8 @@ public open class CfnWorkGroup( * ignored and set to null. * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun removeOutputLocation(removeOutputLocation: Boolean) { @@ -2116,8 +2124,8 @@ public open class CfnWorkGroup( * ignored and set to null. * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun removeOutputLocation(removeOutputLocation: IResolvable) { @@ -2131,7 +2139,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.ResultConfigurationUpdatesProperty, - ) : CdkObject(cdkObject), ResultConfigurationUpdatesProperty { + ) : CdkObject(cdkObject), + ResultConfigurationUpdatesProperty { /** * The ACL configuration for the query results. * @@ -2202,7 +2211,7 @@ public open class CfnWorkGroup( * If set to "false" or not set, and a value is present in the EncryptionConfiguration in * ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the * workgroup's ResultConfiguration will be updated with the new value. For more information, see - * [Workgroup Settings Override Client-Side + * [Override Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeencryptionconfiguration) @@ -2231,8 +2240,8 @@ public open class CfnWorkGroup( * * If set to "false" or not set, and a value is present in the OutputLocation in * ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's - * ResultConfiguration will be updated with the new value. For more information, see [Workgroup - * Settings Override Client-Side + * ResultConfiguration will be updated with the new value. For more information, see [Override + * Client-Side * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeoutputlocation) @@ -2341,9 +2350,9 @@ public open class CfnWorkGroup( /** * If set to "true", the settings for the workgroup override client-side settings. * - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-enforceworkgroupconfiguration) */ @@ -2392,8 +2401,8 @@ public open class CfnWorkGroup( * Specifies the location in Amazon S3 where query results are stored and the encryption option, * if any, used for query results. * - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-resultconfiguration) */ @@ -2449,18 +2458,18 @@ public open class CfnWorkGroup( /** * @param enforceWorkGroupConfiguration If set to "true", the settings for the workgroup * override client-side settings. - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun enforceWorkGroupConfiguration(enforceWorkGroupConfiguration: Boolean) /** * @param enforceWorkGroupConfiguration If set to "true", the settings for the workgroup * override client-side settings. - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ public fun enforceWorkGroupConfiguration(enforceWorkGroupConfiguration: IResolvable) @@ -2525,24 +2534,24 @@ public open class CfnWorkGroup( /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ public fun resultConfiguration(resultConfiguration: IResolvable) /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ public fun resultConfiguration(resultConfiguration: ResultConfigurationProperty) /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("004561fbbfbe6dec63a390996bb2a4f0182fb92a2a15d27e6386401a651aca7d") @@ -2611,9 +2620,9 @@ public open class CfnWorkGroup( /** * @param enforceWorkGroupConfiguration If set to "true", the settings for the workgroup * override client-side settings. - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun enforceWorkGroupConfiguration(enforceWorkGroupConfiguration: Boolean) { cdkBuilder.enforceWorkGroupConfiguration(enforceWorkGroupConfiguration) @@ -2622,9 +2631,9 @@ public open class CfnWorkGroup( /** * @param enforceWorkGroupConfiguration If set to "true", the settings for the workgroup * override client-side settings. - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . */ override fun enforceWorkGroupConfiguration(enforceWorkGroupConfiguration: IResolvable) { cdkBuilder.enforceWorkGroupConfiguration(enforceWorkGroupConfiguration.let(IResolvable.Companion::unwrap)) @@ -2706,8 +2715,8 @@ public open class CfnWorkGroup( /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ override fun resultConfiguration(resultConfiguration: IResolvable) { cdkBuilder.resultConfiguration(resultConfiguration.let(IResolvable.Companion::unwrap)) @@ -2716,8 +2725,8 @@ public open class CfnWorkGroup( /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ override fun resultConfiguration(resultConfiguration: ResultConfigurationProperty) { cdkBuilder.resultConfiguration(resultConfiguration.let(ResultConfigurationProperty.Companion::unwrap)) @@ -2726,8 +2735,8 @@ public open class CfnWorkGroup( /** * @param resultConfiguration Specifies the location in Amazon S3 where query results are * stored and the encryption option, if any, used for query results. - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("004561fbbfbe6dec63a390996bb2a4f0182fb92a2a15d27e6386401a651aca7d") @@ -2742,7 +2751,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.WorkGroupConfigurationProperty, - ) : CdkObject(cdkObject), WorkGroupConfigurationProperty { + ) : CdkObject(cdkObject), + WorkGroupConfigurationProperty { /** * Specifies a user defined JSON string that is passed to the session engine. * @@ -2778,9 +2788,9 @@ public open class CfnWorkGroup( /** * If set to "true", the settings for the workgroup override client-side settings. * - * If set to "false", client-side settings are used. For more information, see [Workgroup - * Settings Override Client-Side - * Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . + * If set to "false", client-side settings are used. For more information, see [Override + * client-side + * settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-enforceworkgroupconfiguration) */ @@ -2829,8 +2839,8 @@ public open class CfnWorkGroup( * Specifies the location in Amazon S3 where query results are stored and the encryption * option, if any, used for query results. * - * For more information, see [Working with Query Results, Output Files, and Query - * History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . + * For more information, see [Work with query results and recent + * queries](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-resultconfiguration) */ @@ -3356,7 +3366,8 @@ public open class CfnWorkGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroup.WorkGroupConfigurationUpdatesProperty, - ) : CdkObject(cdkObject), WorkGroupConfigurationUpdatesProperty { + ) : CdkObject(cdkObject), + WorkGroupConfigurationUpdatesProperty { /** * Additional Configuration that are passed to Athena Spark Calculations running in this * workgroup. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroupProps.kt index 26ae1e081e..a980370086 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/athena/CfnWorkGroupProps.kt @@ -424,7 +424,8 @@ public interface CfnWorkGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.athena.CfnWorkGroupProps, - ) : CdkObject(cdkObject), CfnWorkGroupProps { + ) : CdkObject(cdkObject), + CfnWorkGroupProps { /** * The workgroup description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessment.kt index 6681ed029d..d52c6e1c33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessment.kt @@ -85,7 +85,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssessment( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.auditmanager.CfnAssessment(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -874,7 +876,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.AWSAccountProperty, - ) : CdkObject(cdkObject), AWSAccountProperty { + ) : CdkObject(cdkObject), + AWSAccountProperty { /** * The email address that's associated with the AWS account . * @@ -970,7 +973,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.AWSServiceProperty, - ) : CdkObject(cdkObject), AWSServiceProperty { + ) : CdkObject(cdkObject), + AWSServiceProperty { /** * The name of the AWS service . * @@ -1074,7 +1078,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.AssessmentReportsDestinationProperty, - ) : CdkObject(cdkObject), AssessmentReportsDestinationProperty { + ) : CdkObject(cdkObject), + AssessmentReportsDestinationProperty { /** * The destination bucket where Audit Manager stores assessment reports. * @@ -1404,7 +1409,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.DelegationProperty, - ) : CdkObject(cdkObject), DelegationProperty { + ) : CdkObject(cdkObject), + DelegationProperty { /** * The identifier for the assessment that's associated with the delegation. * @@ -1609,7 +1615,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.RoleProperty, - ) : CdkObject(cdkObject), RoleProperty { + ) : CdkObject(cdkObject), + RoleProperty { /** * The Amazon Resource Name (ARN) of the IAM role. * @@ -1685,6 +1692,12 @@ public open class CfnAssessment( /** * The AWS services that are included in the scope of the assessment. * + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will show + * as empty. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-scope.html#cfn-auditmanager-assessment-scope-awsservices) */ public fun awsServices(): Any? = unwrap(this).getAwsServices() @@ -1711,16 +1724,28 @@ public open class CfnAssessment( /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ public fun awsServices(awsServices: IResolvable) /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ public fun awsServices(awsServices: List) /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ public fun awsServices(vararg awsServices: Any) } @@ -1751,6 +1776,10 @@ public open class CfnAssessment( /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ override fun awsServices(awsServices: IResolvable) { cdkBuilder.awsServices(awsServices.let(IResolvable.Companion::unwrap)) @@ -1758,6 +1787,10 @@ public open class CfnAssessment( /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ override fun awsServices(awsServices: List) { cdkBuilder.awsServices(awsServices.map{CdkObjectWrappers.unwrap(it)}) @@ -1765,6 +1798,10 @@ public open class CfnAssessment( /** * @param awsServices The AWS services that are included in the scope of the assessment. + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. */ override fun awsServices(vararg awsServices: Any): Unit = awsServices(awsServices.toList()) @@ -1774,7 +1811,8 @@ public open class CfnAssessment( private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessment.ScopeProperty, - ) : CdkObject(cdkObject), ScopeProperty { + ) : CdkObject(cdkObject), + ScopeProperty { /** * The AWS accounts that are included in the scope of the assessment. * @@ -1785,6 +1823,12 @@ public open class CfnAssessment( /** * The AWS services that are included in the scope of the assessment. * + * + * This API parameter is no longer supported. If you use this parameter to specify one or more + * AWS services , Audit Manager ignores this input. Instead, the value for `awsServices` will + * show as empty. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-scope.html#cfn-auditmanager-assessment-scope-awsservices) */ override fun awsServices(): Any? = unwrap(this).getAwsServices() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessmentProps.kt index 690c21bc5d..b3b8704d41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/auditmanager/CfnAssessmentProps.kt @@ -447,7 +447,8 @@ public interface CfnAssessmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.auditmanager.CfnAssessmentProps, - ) : CdkObject(cdkObject), CfnAssessmentProps { + ) : CdkObject(cdkObject), + CfnAssessmentProps { /** * The destination that evidence reports are stored in for the assessment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AdjustmentTier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AdjustmentTier.kt index 35071e9f9f..8702cebe0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AdjustmentTier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AdjustmentTier.kt @@ -127,7 +127,8 @@ public interface AdjustmentTier { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.AdjustmentTier, - ) : CdkObject(cdkObject), AdjustmentTier { + ) : CdkObject(cdkObject), + AdjustmentTier { /** * What number to adjust the capacity with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ApplyCloudFormationInitOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ApplyCloudFormationInitOptions.kt index 1819ebf5fa..3026d7090f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ApplyCloudFormationInitOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ApplyCloudFormationInitOptions.kt @@ -243,7 +243,8 @@ public interface ApplyCloudFormationInitOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ApplyCloudFormationInitOptions, - ) : CdkObject(cdkObject), ApplyCloudFormationInitOptions { + ) : CdkObject(cdkObject), + ApplyCloudFormationInitOptions { /** * ConfigSet to activate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroup.kt index 7c334e843f..7c1768ddc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroup.kt @@ -65,8 +65,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class AutoScalingGroup( cdkObject: software.amazon.awscdk.services.autoscaling.AutoScalingGroup, -) : Resource(cdkObject), ILoadBalancerTarget, IConnectable, IApplicationLoadBalancerTarget, - INetworkLoadBalancerTarget, IAutoScalingGroup { +) : Resource(cdkObject), + ILoadBalancerTarget, + IConnectable, + IApplicationLoadBalancerTarget, + INetworkLoadBalancerTarget, + IAutoScalingGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupProps.kt index 45a51ba377..41853d2187 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupProps.kt @@ -1164,7 +1164,8 @@ public interface AutoScalingGroupProps : CommonAutoScalingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.AutoScalingGroupProps, - ) : CdkObject(cdkObject), AutoScalingGroupProps { + ) : CdkObject(cdkObject), + AutoScalingGroupProps { /** * Whether the instances can initiate connections to anywhere by default. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupRequireImdsv2Aspect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupRequireImdsv2Aspect.kt index f29e85c33c..e95dfd2566 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupRequireImdsv2Aspect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/AutoScalingGroupRequireImdsv2Aspect.kt @@ -18,7 +18,8 @@ import io.cloudshiftdev.constructs.IConstruct */ public open class AutoScalingGroupRequireImdsv2Aspect( cdkObject: software.amazon.awscdk.services.autoscaling.AutoScalingGroupRequireImdsv2Aspect, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor() : this(software.amazon.awscdk.services.autoscaling.AutoScalingGroupRequireImdsv2Aspect() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BaseTargetTrackingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BaseTargetTrackingProps.kt index 10842f8948..7cdc6a2585 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BaseTargetTrackingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BaseTargetTrackingProps.kt @@ -122,7 +122,8 @@ public interface BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BaseTargetTrackingProps, - ) : CdkObject(cdkObject), BaseTargetTrackingProps { + ) : CdkObject(cdkObject), + BaseTargetTrackingProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicLifecycleHookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicLifecycleHookProps.kt index 45b565ddc3..8ff1c68aac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicLifecycleHookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicLifecycleHookProps.kt @@ -197,7 +197,8 @@ public interface BasicLifecycleHookProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BasicLifecycleHookProps, - ) : CdkObject(cdkObject), BasicLifecycleHookProps { + ) : CdkObject(cdkObject), + BasicLifecycleHookProps { /** * The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an * unexpected failure occurs. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicScheduledActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicScheduledActionProps.kt index 3a4bf3b609..0e583a8e93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicScheduledActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicScheduledActionProps.kt @@ -235,7 +235,8 @@ public interface BasicScheduledActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BasicScheduledActionProps, - ) : CdkObject(cdkObject), BasicScheduledActionProps { + ) : CdkObject(cdkObject), + BasicScheduledActionProps { /** * The new desired capacity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicStepScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicStepScalingPolicyProps.kt index 9bb9bf5f9c..7f0a4c9d2d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicStepScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicStepScalingPolicyProps.kt @@ -302,7 +302,8 @@ public interface BasicStepScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BasicStepScalingPolicyProps, - ) : CdkObject(cdkObject), BasicStepScalingPolicyProps { + ) : CdkObject(cdkObject), + BasicStepScalingPolicyProps { /** * How the adjustment numbers inside 'intervals' are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicTargetTrackingScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicTargetTrackingScalingPolicyProps.kt index c69bea273c..7763567ab5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicTargetTrackingScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BasicTargetTrackingScalingPolicyProps.kt @@ -216,7 +216,8 @@ public interface BasicTargetTrackingScalingPolicyProps : BaseTargetTrackingProps private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BasicTargetTrackingScalingPolicyProps, - ) : CdkObject(cdkObject), BasicTargetTrackingScalingPolicyProps { + ) : CdkObject(cdkObject), + BasicTargetTrackingScalingPolicyProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BindHookTargetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BindHookTargetOptions.kt index a6b3b568ba..4770f17e02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BindHookTargetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BindHookTargetOptions.kt @@ -91,7 +91,8 @@ public interface BindHookTargetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BindHookTargetOptions, - ) : CdkObject(cdkObject), BindHookTargetOptions { + ) : CdkObject(cdkObject), + BindHookTargetOptions { /** * The lifecycle hook to attach to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BlockDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BlockDevice.kt index 8fea3182b0..ff86ccecea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BlockDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/BlockDevice.kt @@ -87,7 +87,8 @@ public interface BlockDevice { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.BlockDevice, - ) : CdkObject(cdkObject), BlockDevice { + ) : CdkObject(cdkObject), + BlockDevice { /** * The device name exposed to the EC2 instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroup.kt index 1c4cfcaf32..df93ec974f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroup.kt @@ -207,7 +207,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAutoScalingGroup( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -617,8 +619,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the * *Amazon EC2 Auto Scaling User Guide*. @@ -632,8 +634,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the * *Amazon EC2 Auto Scaling User Guide*. @@ -649,8 +651,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the * *Amazon EC2 Auto Scaling User Guide*. @@ -666,8 +668,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the * *Amazon EC2 Auto Scaling User Guide*. @@ -1011,8 +1013,8 @@ public open class CfnAutoScalingGroup( /** * A comma-separated value string of one or more health check types. * - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check - * and cannot be disabled. For more information, see [Health checks for instances in an Auto + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . @@ -1361,8 +1363,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1372,8 +1374,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1385,8 +1387,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1396,8 +1398,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1410,8 +1412,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1421,8 +1423,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1872,8 +1874,8 @@ public open class CfnAutoScalingGroup( /** * A comma-separated value string of one or more health check types. * - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check - * and cannot be disabled. For more information, see [Health checks for instances in an Auto + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . @@ -2267,8 +2269,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2278,8 +2280,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2293,8 +2295,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2304,8 +2306,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2320,8 +2322,8 @@ public open class CfnAutoScalingGroup( * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2331,8 +2333,8 @@ public open class CfnAutoScalingGroup( * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -2689,7 +2691,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.AcceleratorCountRequestProperty, - ) : CdkObject(cdkObject), AcceleratorCountRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorCountRequestProperty { /** * The maximum value. * @@ -2803,7 +2806,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.AcceleratorTotalMemoryMiBRequestProperty, - ) : CdkObject(cdkObject), AcceleratorTotalMemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorTotalMemoryMiBRequestProperty { /** * The memory maximum in MiB. * @@ -2918,7 +2922,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.BaselineEbsBandwidthMbpsRequestProperty, - ) : CdkObject(cdkObject), BaselineEbsBandwidthMbpsRequestProperty { + ) : CdkObject(cdkObject), + BaselineEbsBandwidthMbpsRequestProperty { /** * The maximum value in Mbps. * @@ -3073,7 +3078,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.InstanceMaintenancePolicyProperty, - ) : CdkObject(cdkObject), InstanceMaintenancePolicyProperty { + ) : CdkObject(cdkObject), + InstanceMaintenancePolicyProperty { /** * Specifies the upper threshold as a percentage of the desired capacity of the Auto Scaling * group. @@ -4788,7 +4794,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.InstanceRequirementsProperty, - ) : CdkObject(cdkObject), InstanceRequirementsProperty { + ) : CdkObject(cdkObject), + InstanceRequirementsProperty { /** * The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for * an instance type. @@ -5585,7 +5592,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.InstancesDistributionProperty, - ) : CdkObject(cdkObject), InstancesDistributionProperty { + ) : CdkObject(cdkObject), + InstancesDistributionProperty { /** * The allocation strategy to apply to your On-Demand Instances when they are launched. * @@ -6211,7 +6219,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateOverridesProperty, - ) : CdkObject(cdkObject), LaunchTemplateOverridesProperty { + ) : CdkObject(cdkObject), + LaunchTemplateOverridesProperty { /** * The instance requirements. * @@ -6519,7 +6528,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty, - ) : CdkObject(cdkObject), LaunchTemplateProperty { + ) : CdkObject(cdkObject), + LaunchTemplateProperty { /** * The launch template. * @@ -6714,7 +6724,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), LaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateSpecificationProperty { /** * The ID of the launch template. * @@ -7027,7 +7038,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LifecycleHookSpecificationProperty, - ) : CdkObject(cdkObject), LifecycleHookSpecificationProperty { + ) : CdkObject(cdkObject), + LifecycleHookSpecificationProperty { /** * The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an * unexpected failure occurs. @@ -7202,7 +7214,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.MemoryGiBPerVCpuRequestProperty, - ) : CdkObject(cdkObject), MemoryGiBPerVCpuRequestProperty { + ) : CdkObject(cdkObject), + MemoryGiBPerVCpuRequestProperty { /** * The memory maximum in GiB. * @@ -7315,7 +7328,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.MemoryMiBRequestProperty, - ) : CdkObject(cdkObject), MemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + MemoryMiBRequestProperty { /** * The memory maximum in MiB. * @@ -7591,7 +7605,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.MetricsCollectionProperty, - ) : CdkObject(cdkObject), MetricsCollectionProperty { + ) : CdkObject(cdkObject), + MetricsCollectionProperty { /** * The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. * @@ -7898,7 +7913,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.MixedInstancesPolicyProperty, - ) : CdkObject(cdkObject), MixedInstancesPolicyProperty { + ) : CdkObject(cdkObject), + MixedInstancesPolicyProperty { /** * The instances distribution. * @@ -8022,7 +8038,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.NetworkBandwidthGbpsRequestProperty, - ) : CdkObject(cdkObject), NetworkBandwidthGbpsRequestProperty { + ) : CdkObject(cdkObject), + NetworkBandwidthGbpsRequestProperty { /** * The maximum amount of network bandwidth, in gigabits per second (Gbps). * @@ -8137,7 +8154,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.NetworkInterfaceCountRequestProperty, - ) : CdkObject(cdkObject), NetworkInterfaceCountRequestProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceCountRequestProperty { /** * The maximum number of network interfaces. * @@ -8313,7 +8331,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty, - ) : CdkObject(cdkObject), NotificationConfigurationProperty { + ) : CdkObject(cdkObject), + NotificationConfigurationProperty { /** * A list of event types that send a notification. Event types can include any of the * following types. @@ -8495,7 +8514,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.TagPropertyProperty, - ) : CdkObject(cdkObject), TagPropertyProperty { + ) : CdkObject(cdkObject), + TagPropertyProperty { /** * The tag key. * @@ -8620,7 +8640,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.TotalLocalStorageGBRequestProperty, - ) : CdkObject(cdkObject), TotalLocalStorageGBRequestProperty { + ) : CdkObject(cdkObject), + TotalLocalStorageGBRequestProperty { /** * The storage maximum in GB. * @@ -8733,7 +8754,8 @@ public open class CfnAutoScalingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.VCpuCountRequestProperty, - ) : CdkObject(cdkObject), VCpuCountRequestProperty { + ) : CdkObject(cdkObject), + VCpuCountRequestProperty { /** * The maximum number of vCPUs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroupProps.kt index 90b2962d66..6df98dee44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnAutoScalingGroupProps.kt @@ -321,8 +321,9 @@ public interface CfnAutoScalingGroupProps { /** * A comma-separated value string of one or more health check types. * - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check and - * cannot be disabled. For more information, see [Health checks for instances in an Auto Scaling + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto + * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . * @@ -480,8 +481,8 @@ public interface CfnAutoScalingGroupProps { * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the * *Amazon EC2 Auto Scaling User Guide*. @@ -750,8 +751,8 @@ public interface CfnAutoScalingGroupProps { /** * @param healthCheckType A comma-separated value string of one or more health check types. - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check - * and cannot be disabled. For more information, see [Health checks for instances in an Auto + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . @@ -1004,8 +1005,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1018,8 +1019,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1033,8 +1034,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1379,8 +1380,8 @@ public interface CfnAutoScalingGroupProps { /** * @param healthCheckType A comma-separated value string of one or more health check types. - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check - * and cannot be disabled. For more information, see [Health checks for instances in an Auto + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . @@ -1680,8 +1681,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1696,8 +1697,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1713,8 +1714,8 @@ public interface CfnAutoScalingGroupProps { * @param notificationConfiguration A structure that specifies an Amazon SNS notification * configuration for the `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. @@ -1920,7 +1921,8 @@ public interface CfnAutoScalingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroupProps, - ) : CdkObject(cdkObject), CfnAutoScalingGroupProps { + ) : CdkObject(cdkObject), + CfnAutoScalingGroupProps { /** * The name of the Auto Scaling group. This name must be unique per Region per account. * @@ -2066,8 +2068,8 @@ public interface CfnAutoScalingGroupProps { /** * A comma-separated value string of one or more health check types. * - * The valid values are `EC2` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health check - * and cannot be disabled. For more information, see [Health checks for instances in an Auto + * The valid values are `EC2` , `EBS` , `ELB` , and `VPC_LATTICE` . `EC2` is the default health + * check and cannot be disabled. For more information, see [Health checks for instances in an Auto * Scaling * group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html) * in the *Amazon EC2 Auto Scaling User Guide* . @@ -2227,8 +2229,8 @@ public interface CfnAutoScalingGroupProps { * (deprecated) A structure that specifies an Amazon SNS notification configuration for the * `NotificationConfigurations` property of the * [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) - * resource. For an example template snippet, see [Auto scaling template - * snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html). + * resource. For an example template snippet, see [Configure Amazon EC2 Auto Scaling + * resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html). * For more information, see [Get Amazon SNS notifications when your Auto Scaling group * scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in * the *Amazon EC2 Auto Scaling User Guide*. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfiguration.kt index c18bd6d5bb..44c37b8543 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfiguration.kt @@ -101,7 +101,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchConfiguration( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1598,7 +1599,8 @@ public open class CfnLaunchConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.BlockDeviceMappingProperty, - ) : CdkObject(cdkObject), BlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + BlockDeviceMappingProperty { /** * The device name assigned to the volume (for example, `/dev/sdh` or `xvdh` ). * @@ -2047,7 +2049,8 @@ public open class CfnLaunchConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.BlockDeviceProperty, - ) : CdkObject(cdkObject), BlockDeviceProperty { + ) : CdkObject(cdkObject), + BlockDeviceProperty { /** * Indicates whether the volume is deleted on instance termination. * @@ -2331,7 +2334,8 @@ public open class CfnLaunchConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.MetadataOptionsProperty, - ) : CdkObject(cdkObject), MetadataOptionsProperty { + ) : CdkObject(cdkObject), + MetadataOptionsProperty { /** * This parameter enables or disables the HTTP metadata endpoint on your instances. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfigurationProps.kt index 76e27af462..a3267780a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLaunchConfigurationProps.kt @@ -997,7 +997,8 @@ public interface CfnLaunchConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLaunchConfigurationProps, - ) : CdkObject(cdkObject), CfnLaunchConfigurationProps { + ) : CdkObject(cdkObject), + CfnLaunchConfigurationProps { /** * Specifies whether to assign a public IPv4 address to the group's instances. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHook.kt index dfb6078f9a..ca9f10c789 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHook.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLifecycleHook( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLifecycleHook, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHookProps.kt index e2b3d6fd8a..9d96b5faae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnLifecycleHookProps.kt @@ -271,7 +271,8 @@ public interface CfnLifecycleHookProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnLifecycleHookProps, - ) : CdkObject(cdkObject), CfnLifecycleHookProps { + ) : CdkObject(cdkObject), + CfnLifecycleHookProps { /** * The name of the Auto Scaling group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicy.kt index ce6b8159e2..19a7b40c90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicy.kt @@ -152,14 +152,34 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .targetValue(123) * // the properties below are optional * .customizedMetricSpecification(CustomizedMetricSpecificationProperty.builder() + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .metrics(List.of(TargetTrackingMetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .expression("expression") + * .label("label") + * .metricStat(TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() * .metricName("metricName") * .namespace("namespace") - * .statistic("statistic") * // the properties below are optional * .dimensions(List.of(MetricDimensionProperty.builder() * .name("name") * .value("value") * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .namespace("namespace") + * .statistic("statistic") * .unit("unit") * .build()) * .disableScaleIn(false) @@ -176,7 +196,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScalingPolicy( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1060,14 +1081,34 @@ public open class CfnScalingPolicy( * import io.cloudshiftdev.awscdk.services.autoscaling.*; * CustomizedMetricSpecificationProperty customizedMetricSpecificationProperty = * CustomizedMetricSpecificationProperty.builder() + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .metrics(List.of(TargetTrackingMetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .expression("expression") + * .label("label") + * .metricStat(TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() * .metricName("metricName") * .namespace("namespace") - * .statistic("statistic") * // the properties below are optional * .dimensions(List.of(MetricDimensionProperty.builder() * .name("name") * .value("value") * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .namespace("namespace") + * .statistic("statistic") * .unit("unit") * .build(); * ``` @@ -1096,21 +1137,30 @@ public open class CfnScalingPolicy( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metricname) */ - public fun metricName(): String + public fun metricName(): String? = unwrap(this).getMetricName() + + /** + * The metrics to include in the target tracking scaling policy, as a metric data query. + * + * This can include both raw metric and metric math expressions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metrics) + */ + public fun metrics(): Any? = unwrap(this).getMetrics() /** * The namespace of the metric. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-namespace) */ - public fun namespace(): String + public fun namespace(): String? = unwrap(this).getNamespace() /** * The statistic of the metric. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-statistic) */ - public fun statistic(): String + public fun statistic(): String? = unwrap(this).getStatistic() /** * The unit of the metric. @@ -1150,7 +1200,7 @@ public open class CfnScalingPolicy( public fun dimensions(vararg dimensions: Any) /** - * @param metricName The name of the metric. + * @param metricName The name of the metric. * To get the exact metric name, namespace, and dimensions, inspect the * [Metric](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html) * object that is returned by a call to @@ -1160,12 +1210,33 @@ public open class CfnScalingPolicy( public fun metricName(metricName: String) /** - * @param namespace The namespace of the metric. + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + public fun metrics(metrics: IResolvable) + + /** + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + public fun metrics(metrics: List) + + /** + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + public fun metrics(vararg metrics: Any) + + /** + * @param namespace The namespace of the metric. */ public fun namespace(namespace: String) /** - * @param statistic The statistic of the metric. + * @param statistic The statistic of the metric. */ public fun statistic(statistic: String) @@ -1210,7 +1281,7 @@ public open class CfnScalingPolicy( override fun dimensions(vararg dimensions: Any): Unit = dimensions(dimensions.toList()) /** - * @param metricName The name of the metric. + * @param metricName The name of the metric. * To get the exact metric name, namespace, and dimensions, inspect the * [Metric](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html) * object that is returned by a call to @@ -1222,14 +1293,39 @@ public open class CfnScalingPolicy( } /** - * @param namespace The namespace of the metric. + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + override fun metrics(metrics: IResolvable) { + cdkBuilder.metrics(metrics.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + override fun metrics(metrics: List) { + cdkBuilder.metrics(metrics.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param metrics The metrics to include in the target tracking scaling policy, as a metric + * data query. + * This can include both raw metric and metric math expressions. + */ + override fun metrics(vararg metrics: Any): Unit = metrics(metrics.toList()) + + /** + * @param namespace The namespace of the metric. */ override fun namespace(namespace: String) { cdkBuilder.namespace(namespace) } /** - * @param statistic The statistic of the metric. + * @param statistic The statistic of the metric. */ override fun statistic(statistic: String) { cdkBuilder.statistic(statistic) @@ -1252,7 +1348,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.CustomizedMetricSpecificationProperty, - ) : CdkObject(cdkObject), CustomizedMetricSpecificationProperty { + ) : CdkObject(cdkObject), + CustomizedMetricSpecificationProperty { /** * The dimensions of the metric. * @@ -1274,21 +1371,30 @@ public open class CfnScalingPolicy( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metricname) */ - override fun metricName(): String = unwrap(this).getMetricName() + override fun metricName(): String? = unwrap(this).getMetricName() + + /** + * The metrics to include in the target tracking scaling policy, as a metric data query. + * + * This can include both raw metric and metric math expressions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-metrics) + */ + override fun metrics(): Any? = unwrap(this).getMetrics() /** * The namespace of the metric. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-namespace) */ - override fun namespace(): String = unwrap(this).getNamespace() + override fun namespace(): String? = unwrap(this).getNamespace() /** * The statistic of the metric. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-statistic) */ - override fun statistic(): String = unwrap(this).getStatistic() + override fun statistic(): String? = unwrap(this).getStatistic() /** * The unit of the metric. @@ -1622,7 +1728,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricDataQueryProperty, - ) : CdkObject(cdkObject), MetricDataQueryProperty { + ) : CdkObject(cdkObject), + MetricDataQueryProperty { /** * The math expression to perform on the returned data, if this object is performing a math * expression. @@ -1780,7 +1887,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The name of the dimension. * @@ -1998,7 +2106,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricProperty, - ) : CdkObject(cdkObject), MetricProperty { + ) : CdkObject(cdkObject), + MetricProperty { /** * The dimensions for the metric. * @@ -2260,7 +2369,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricStatProperty, - ) : CdkObject(cdkObject), MetricStatProperty { + ) : CdkObject(cdkObject), + MetricStatProperty { /** * The CloudWatch metric to return, including the metric name, namespace, and dimensions. * @@ -2490,7 +2600,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredefinedMetricSpecificationProperty, - ) : CdkObject(cdkObject), PredefinedMetricSpecificationProperty { + ) : CdkObject(cdkObject), + PredefinedMetricSpecificationProperty { /** * The metric type. The following predefined metrics are available:. * @@ -2951,7 +3062,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingConfigurationProperty, - ) : CdkObject(cdkObject), PredictiveScalingConfigurationProperty { + ) : CdkObject(cdkObject), + PredictiveScalingConfigurationProperty { /** * Defines the behavior that should be applied if the forecast capacity approaches or exceeds * the maximum capacity of the Auto Scaling group. @@ -3177,7 +3289,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty, - ) : CdkObject(cdkObject), PredictiveScalingCustomizedCapacityMetricProperty { + ) : CdkObject(cdkObject), + PredictiveScalingCustomizedCapacityMetricProperty { /** * One or more metric data queries to provide the data points for a capacity metric. * @@ -3331,7 +3444,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty, - ) : CdkObject(cdkObject), PredictiveScalingCustomizedLoadMetricProperty { + ) : CdkObject(cdkObject), + PredictiveScalingCustomizedLoadMetricProperty { /** * One or more metric data queries to provide the data points for a load metric. * @@ -3486,7 +3600,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty, - ) : CdkObject(cdkObject), PredictiveScalingCustomizedScalingMetricProperty { + ) : CdkObject(cdkObject), + PredictiveScalingCustomizedScalingMetricProperty { /** * One or more metric data queries to provide the data points for a scaling metric. * @@ -4042,7 +4157,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty, - ) : CdkObject(cdkObject), PredictiveScalingMetricSpecificationProperty { + ) : CdkObject(cdkObject), + PredictiveScalingMetricSpecificationProperty { /** * The customized capacity metric specification. * @@ -4274,7 +4390,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty, - ) : CdkObject(cdkObject), PredictiveScalingPredefinedLoadMetricProperty { + ) : CdkObject(cdkObject), + PredictiveScalingPredefinedLoadMetricProperty { /** * The metric type. * @@ -4494,7 +4611,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty, - ) : CdkObject(cdkObject), PredictiveScalingPredefinedMetricPairProperty { + ) : CdkObject(cdkObject), + PredictiveScalingPredefinedMetricPairProperty { /** * Indicates which metrics to use. * @@ -4707,7 +4825,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty, - ) : CdkObject(cdkObject), PredictiveScalingPredefinedScalingMetricProperty { + ) : CdkObject(cdkObject), + PredictiveScalingPredefinedScalingMetricProperty { /** * The metric type. * @@ -4931,7 +5050,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.StepAdjustmentProperty, - ) : CdkObject(cdkObject), StepAdjustmentProperty { + ) : CdkObject(cdkObject), + StepAdjustmentProperty { /** * The lower bound for the difference between the alarm threshold and the CloudWatch metric. * @@ -5008,14 +5128,34 @@ public open class CfnScalingPolicy( * .targetValue(123) * // the properties below are optional * .customizedMetricSpecification(CustomizedMetricSpecificationProperty.builder() + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .metrics(List.of(TargetTrackingMetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .expression("expression") + * .label("label") + * .metricStat(TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() * .metricName("metricName") * .namespace("namespace") - * .statistic("statistic") * // the properties below are optional * .dimensions(List.of(MetricDimensionProperty.builder() * .name("name") * .value("value") * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .namespace("namespace") + * .statistic("statistic") * .unit("unit") * .build()) * .disableScaleIn(false) @@ -5256,7 +5396,8 @@ public open class CfnScalingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingConfigurationProperty { /** * A customized metric. * @@ -5321,4 +5462,603 @@ public open class CfnScalingPolicy( software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingConfigurationProperty } } + + /** + * The metric data to return. + * + * Also defines whether this call is returning data for one metric only, or whether it is + * performing a math expression on the values of returned metric statistics to create a new time + * series. A time series is a series of data points, each of which is associated with a timestamp. + * + * You can use `TargetTrackingMetricDataQuery` structures with a `PutScalingPolicy` operation when + * you specify a `TargetTrackingConfiguration` in the request. + * + * You can call for a single metric or perform math expressions on multiple metrics. Any + * expressions used in a metric specification must eventually return a single time series. + * + * For more information, see the [Create a target tracking scaling policy for Amazon EC2 Auto + * Scaling using metric + * math](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-target-tracking-metric-math.html) + * in the *Amazon EC2 Auto Scaling User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.autoscaling.*; + * TargetTrackingMetricDataQueryProperty targetTrackingMetricDataQueryProperty = + * TargetTrackingMetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .expression("expression") + * .label("label") + * .metricStat(TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .metricName("metricName") + * .namespace("namespace") + * // the properties below are optional + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html) + */ + public interface TargetTrackingMetricDataQueryProperty { + /** + * The math expression to perform on the returned data, if this object is performing a math + * expression. + * + * This expression can use the `Id` of the other metrics to refer to those metrics, and can also + * use the `Id` of other expressions to use the result of those expressions. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-expression) + */ + public fun expression(): String? = unwrap(this).getExpression() + + /** + * A short name that identifies the object's results in the response. + * + * This name must be unique among all `TargetTrackingMetricDataQuery` objects specified for a + * single scaling policy. If you are performing math expressions on this set of data, this name + * represents that data and can serve as a variable in the mathematical expression. The valid + * characters are letters, numbers, and underscores. The first character must be a lowercase + * letter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-id) + */ + public fun id(): String + + /** + * A human-readable label for this metric or expression. + * + * This is especially useful if this is a math expression, so that you know what the value + * represents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-label) + */ + public fun label(): String? = unwrap(this).getLabel() + + /** + * Information about the metric data to return. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-metricstat) + */ + public fun metricStat(): Any? = unwrap(this).getMetricStat() + + /** + * Indicates whether to return the timestamps and raw data values of this metric. + * + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for `ReturnData` + * for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-returndata) + */ + public fun returnData(): Any? = unwrap(this).getReturnData() + + /** + * A builder for [TargetTrackingMetricDataQueryProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param expression The math expression to perform on the returned data, if this object is + * performing a math expression. + * This expression can use the `Id` of the other metrics to refer to those metrics, and can + * also use the `Id` of other expressions to use the result of those expressions. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + public fun expression(expression: String) + + /** + * @param id A short name that identifies the object's results in the response. + * This name must be unique among all `TargetTrackingMetricDataQuery` objects specified for a + * single scaling policy. If you are performing math expressions on this set of data, this name + * represents that data and can serve as a variable in the mathematical expression. The valid + * characters are letters, numbers, and underscores. The first character must be a lowercase + * letter. + */ + public fun id(id: String) + + /** + * @param label A human-readable label for this metric or expression. + * This is especially useful if this is a math expression, so that you know what the value + * represents. + */ + public fun label(label: String) + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + public fun metricStat(metricStat: IResolvable) + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + public fun metricStat(metricStat: TargetTrackingMetricStatProperty) + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11f6218aea7a8b4148a7c87d3253ae417c9d055973eb7b70fbf2461603f086d9") + public fun metricStat(metricStat: TargetTrackingMetricStatProperty.Builder.() -> Unit) + + /** + * @param returnData Indicates whether to return the timestamps and raw data values of this + * metric. + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for + * `ReturnData` for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + */ + public fun returnData(returnData: Boolean) + + /** + * @param returnData Indicates whether to return the timestamps and raw data values of this + * metric. + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for + * `ReturnData` for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + */ + public fun returnData(returnData: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty.Builder + = + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty.builder() + + /** + * @param expression The math expression to perform on the returned data, if this object is + * performing a math expression. + * This expression can use the `Id` of the other metrics to refer to those metrics, and can + * also use the `Id` of other expressions to use the result of those expressions. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param id A short name that identifies the object's results in the response. + * This name must be unique among all `TargetTrackingMetricDataQuery` objects specified for a + * single scaling policy. If you are performing math expressions on this set of data, this name + * represents that data and can serve as a variable in the mathematical expression. The valid + * characters are letters, numbers, and underscores. The first character must be a lowercase + * letter. + */ + override fun id(id: String) { + cdkBuilder.id(id) + } + + /** + * @param label A human-readable label for this metric or expression. + * This is especially useful if this is a math expression, so that you know what the value + * represents. + */ + override fun label(label: String) { + cdkBuilder.label(label) + } + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + override fun metricStat(metricStat: IResolvable) { + cdkBuilder.metricStat(metricStat.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + override fun metricStat(metricStat: TargetTrackingMetricStatProperty) { + cdkBuilder.metricStat(metricStat.let(TargetTrackingMetricStatProperty.Companion::unwrap)) + } + + /** + * @param metricStat Information about the metric data to return. + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11f6218aea7a8b4148a7c87d3253ae417c9d055973eb7b70fbf2461603f086d9") + override fun metricStat(metricStat: TargetTrackingMetricStatProperty.Builder.() -> Unit): Unit + = metricStat(TargetTrackingMetricStatProperty(metricStat)) + + /** + * @param returnData Indicates whether to return the timestamps and raw data values of this + * metric. + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for + * `ReturnData` for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + */ + override fun returnData(returnData: Boolean) { + cdkBuilder.returnData(returnData) + } + + /** + * @param returnData Indicates whether to return the timestamps and raw data values of this + * metric. + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for + * `ReturnData` for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + */ + override fun returnData(returnData: IResolvable) { + cdkBuilder.returnData(returnData.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty, + ) : CdkObject(cdkObject), + TargetTrackingMetricDataQueryProperty { + /** + * The math expression to perform on the returned data, if this object is performing a math + * expression. + * + * This expression can use the `Id` of the other metrics to refer to those metrics, and can + * also use the `Id` of other expressions to use the result of those expressions. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-expression) + */ + override fun expression(): String? = unwrap(this).getExpression() + + /** + * A short name that identifies the object's results in the response. + * + * This name must be unique among all `TargetTrackingMetricDataQuery` objects specified for a + * single scaling policy. If you are performing math expressions on this set of data, this name + * represents that data and can serve as a variable in the mathematical expression. The valid + * characters are letters, numbers, and underscores. The first character must be a lowercase + * letter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-id) + */ + override fun id(): String = unwrap(this).getId() + + /** + * A human-readable label for this metric or expression. + * + * This is especially useful if this is a math expression, so that you know what the value + * represents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-label) + */ + override fun label(): String? = unwrap(this).getLabel() + + /** + * Information about the metric data to return. + * + * Conditional: Within each `TargetTrackingMetricDataQuery` object, you must specify either + * `Expression` or `MetricStat` , but not both. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-metricstat) + */ + override fun metricStat(): Any? = unwrap(this).getMetricStat() + + /** + * Indicates whether to return the timestamps and raw data values of this metric. + * + * If you use any math expressions, specify `true` for this value for only the final math + * expression that the metric specification is based on. You must specify `false` for + * `ReturnData` for all the other metrics and expressions used in the metric specification. + * + * If you are only retrieving metrics and not performing any math expressions, do not specify + * anything for `ReturnData` . This sets it to its default ( `true` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html#cfn-autoscaling-scalingpolicy-targettrackingmetricdataquery-returndata) + */ + override fun returnData(): Any? = unwrap(this).getReturnData() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TargetTrackingMetricDataQueryProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty): + TargetTrackingMetricDataQueryProperty = CdkObjectWrappers.wrap(cdkObject) as? + TargetTrackingMetricDataQueryProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TargetTrackingMetricDataQueryProperty): + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricDataQueryProperty + } + } + + /** + * This structure defines the CloudWatch metric to return, along with the statistic and unit. + * + * `TargetTrackingMetricStat` is a property of the `TargetTrackingMetricDataQuery` object. + * + * For more information about the CloudWatch terminology below, see [Amazon CloudWatch + * concepts](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) + * in the *Amazon CloudWatch User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.autoscaling.*; + * TargetTrackingMetricStatProperty targetTrackingMetricStatProperty = + * TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() + * .metricName("metricName") + * .namespace("namespace") + * // the properties below are optional + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html) + */ + public interface TargetTrackingMetricStatProperty { + /** + * The metric to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-metric) + */ + public fun metric(): Any + + /** + * The statistic to return. + * + * It can include any CloudWatch statistic or extended statistic. For a list of valid values, + * see the table in + * [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) + * in the *Amazon CloudWatch User Guide* . + * + * The most commonly used metric for scaling is `Average` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-stat) + */ + public fun stat(): String + + /** + * The unit to use for the returned data points. + * + * For a complete list of the units that CloudWatch supports, see the + * [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) + * data type in the *Amazon CloudWatch API Reference* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-unit) + */ + public fun unit(): String? = unwrap(this).getUnit() + + /** + * A builder for [TargetTrackingMetricStatProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param metric The metric to use. + */ + public fun metric(metric: IResolvable) + + /** + * @param metric The metric to use. + */ + public fun metric(metric: MetricProperty) + + /** + * @param metric The metric to use. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("25d2515ccb2f5e33fd222e74a08ccb48818bbe9bfaf0e4cab712bf42fd8b58fb") + public fun metric(metric: MetricProperty.Builder.() -> Unit) + + /** + * @param stat The statistic to return. + * It can include any CloudWatch statistic or extended statistic. For a list of valid values, + * see the table in + * [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) + * in the *Amazon CloudWatch User Guide* . + * + * The most commonly used metric for scaling is `Average` . + */ + public fun stat(stat: String) + + /** + * @param unit The unit to use for the returned data points. + * For a complete list of the units that CloudWatch supports, see the + * [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) + * data type in the *Amazon CloudWatch API Reference* . + */ + public fun unit(unit: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty.Builder + = + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty.builder() + + /** + * @param metric The metric to use. + */ + override fun metric(metric: IResolvable) { + cdkBuilder.metric(metric.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metric The metric to use. + */ + override fun metric(metric: MetricProperty) { + cdkBuilder.metric(metric.let(MetricProperty.Companion::unwrap)) + } + + /** + * @param metric The metric to use. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("25d2515ccb2f5e33fd222e74a08ccb48818bbe9bfaf0e4cab712bf42fd8b58fb") + override fun metric(metric: MetricProperty.Builder.() -> Unit): Unit = + metric(MetricProperty(metric)) + + /** + * @param stat The statistic to return. + * It can include any CloudWatch statistic or extended statistic. For a list of valid values, + * see the table in + * [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) + * in the *Amazon CloudWatch User Guide* . + * + * The most commonly used metric for scaling is `Average` . + */ + override fun stat(stat: String) { + cdkBuilder.stat(stat) + } + + /** + * @param unit The unit to use for the returned data points. + * For a complete list of the units that CloudWatch supports, see the + * [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) + * data type in the *Amazon CloudWatch API Reference* . + */ + override fun unit(unit: String) { + cdkBuilder.unit(unit) + } + + public fun build(): + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty, + ) : CdkObject(cdkObject), + TargetTrackingMetricStatProperty { + /** + * The metric to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-metric) + */ + override fun metric(): Any = unwrap(this).getMetric() + + /** + * The statistic to return. + * + * It can include any CloudWatch statistic or extended statistic. For a list of valid values, + * see the table in + * [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) + * in the *Amazon CloudWatch User Guide* . + * + * The most commonly used metric for scaling is `Average` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-stat) + */ + override fun stat(): String = unwrap(this).getStat() + + /** + * The unit to use for the returned data points. + * + * For a complete list of the units that CloudWatch supports, see the + * [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) + * data type in the *Amazon CloudWatch API Reference* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html#cfn-autoscaling-scalingpolicy-targettrackingmetricstat-unit) + */ + override fun unit(): String? = unwrap(this).getUnit() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TargetTrackingMetricStatProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty): + TargetTrackingMetricStatProperty = CdkObjectWrappers.wrap(cdkObject) as? + TargetTrackingMetricStatProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TargetTrackingMetricStatProperty): + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.TargetTrackingMetricStatProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicyProps.kt index c4a9453510..220fca8622 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScalingPolicyProps.kt @@ -137,14 +137,34 @@ import kotlin.jvm.JvmName * .targetValue(123) * // the properties below are optional * .customizedMetricSpecification(CustomizedMetricSpecificationProperty.builder() + * .dimensions(List.of(MetricDimensionProperty.builder() + * .name("name") + * .value("value") + * .build())) + * .metricName("metricName") + * .metrics(List.of(TargetTrackingMetricDataQueryProperty.builder() + * .id("id") + * // the properties below are optional + * .expression("expression") + * .label("label") + * .metricStat(TargetTrackingMetricStatProperty.builder() + * .metric(MetricProperty.builder() * .metricName("metricName") * .namespace("namespace") - * .statistic("statistic") * // the properties below are optional * .dimensions(List.of(MetricDimensionProperty.builder() * .name("name") * .value("value") * .build())) + * .build()) + * .stat("stat") + * // the properties below are optional + * .unit("unit") + * .build()) + * .returnData(false) + * .build())) + * .namespace("namespace") + * .statistic("statistic") * .unit("unit") * .build()) * .disableScaleIn(false) @@ -777,7 +797,8 @@ public interface CfnScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScalingPolicyProps, - ) : CdkObject(cdkObject), CfnScalingPolicyProps { + ) : CdkObject(cdkObject), + CfnScalingPolicyProps { /** * Specifies how the scaling adjustment is interpreted (for example, an absolute number or a * percentage). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledAction.kt index 0e24d7a86c..6b2a45a465 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledAction.kt @@ -63,7 +63,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScheduledAction( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScheduledAction, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledActionProps.kt index d12047ee32..2c0f319eec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnScheduledActionProps.kt @@ -284,7 +284,8 @@ public interface CfnScheduledActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnScheduledActionProps, - ) : CdkObject(cdkObject), CfnScheduledActionProps { + ) : CdkObject(cdkObject), + CfnScheduledActionProps { /** * The name of the Auto Scaling group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPool.kt index 9ac1b5a5a2..623068c8fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPool.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWarmPool( cdkObject: software.amazon.awscdk.services.autoscaling.CfnWarmPool, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -494,7 +495,8 @@ public open class CfnWarmPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnWarmPool.InstanceReusePolicyProperty, - ) : CdkObject(cdkObject), InstanceReusePolicyProperty { + ) : CdkObject(cdkObject), + InstanceReusePolicyProperty { /** * Specifies whether instances in the Auto Scaling group can be returned to the warm pool on * scale in. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPoolProps.kt index a4c587ffa6..5a1276cb38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CfnWarmPoolProps.kt @@ -258,7 +258,8 @@ public interface CfnWarmPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CfnWarmPoolProps, - ) : CdkObject(cdkObject), CfnWarmPoolProps { + ) : CdkObject(cdkObject), + CfnWarmPoolProps { /** * The name of the Auto Scaling group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CommonAutoScalingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CommonAutoScalingGroupProps.kt index ff6fb142b0..222bfe28cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CommonAutoScalingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CommonAutoScalingGroupProps.kt @@ -1093,7 +1093,8 @@ public interface CommonAutoScalingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CommonAutoScalingGroupProps, - ) : CdkObject(cdkObject), CommonAutoScalingGroupProps { + ) : CdkObject(cdkObject), + CommonAutoScalingGroupProps { /** * Whether the instances can initiate connections to anywhere by default. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CpuUtilizationScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CpuUtilizationScalingProps.kt index 9a888f85b4..84765ad806 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CpuUtilizationScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CpuUtilizationScalingProps.kt @@ -103,7 +103,8 @@ public interface CpuUtilizationScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CpuUtilizationScalingProps, - ) : CdkObject(cdkObject), CpuUtilizationScalingProps { + ) : CdkObject(cdkObject), + CpuUtilizationScalingProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CronOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CronOptions.kt index 95834604a8..e17c58d985 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CronOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/CronOptions.kt @@ -141,7 +141,8 @@ public interface CronOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.CronOptions, - ) : CdkObject(cdkObject), CronOptions { + ) : CdkObject(cdkObject), + CronOptions { /** * The day of the month to run this rule at. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptions.kt index 95728b1baa..f8aae88eb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptions.kt @@ -134,7 +134,8 @@ public interface EbsDeviceOptions : EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.EbsDeviceOptions, - ) : CdkObject(cdkObject), EbsDeviceOptions { + ) : CdkObject(cdkObject), + EbsDeviceOptions { /** * Indicates whether to delete the volume when the instance is terminated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptionsBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptionsBase.kt index 56cf4337fb..2b09cd3a16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptionsBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceOptionsBase.kt @@ -143,7 +143,8 @@ public interface EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.EbsDeviceOptionsBase, - ) : CdkObject(cdkObject), EbsDeviceOptionsBase { + ) : CdkObject(cdkObject), + EbsDeviceOptionsBase { /** * Indicates whether to delete the volume when the instance is terminated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceProps.kt index e5d23cb313..4ca995448f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceProps.kt @@ -139,7 +139,8 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.EbsDeviceProps, - ) : CdkObject(cdkObject), EbsDeviceProps { + ) : CdkObject(cdkObject), + EbsDeviceProps { /** * Indicates whether to delete the volume when the instance is terminated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceSnapshotOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceSnapshotOptions.kt index 487264a66d..d0daf0cc9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceSnapshotOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/EbsDeviceSnapshotOptions.kt @@ -128,7 +128,8 @@ public interface EbsDeviceSnapshotOptions : EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.EbsDeviceSnapshotOptions, - ) : CdkObject(cdkObject), EbsDeviceSnapshotOptions { + ) : CdkObject(cdkObject), + EbsDeviceSnapshotOptions { /** * Indicates whether to delete the volume when the instance is terminated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/Ec2HealthCheckOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/Ec2HealthCheckOptions.kt index 40be3e440c..7d400c194c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/Ec2HealthCheckOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/Ec2HealthCheckOptions.kt @@ -63,7 +63,8 @@ public interface Ec2HealthCheckOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.Ec2HealthCheckOptions, - ) : CdkObject(cdkObject), Ec2HealthCheckOptions { + ) : CdkObject(cdkObject), + Ec2HealthCheckOptions { /** * Specified the time Auto Scaling waits before checking the health status of an EC2 instance * that has come into service. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ElbHealthCheckOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ElbHealthCheckOptions.kt index a9bfc20dcf..37ef3e0b06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ElbHealthCheckOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ElbHealthCheckOptions.kt @@ -65,7 +65,8 @@ public interface ElbHealthCheckOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ElbHealthCheckOptions, - ) : CdkObject(cdkObject), ElbHealthCheckOptions { + ) : CdkObject(cdkObject), + ElbHealthCheckOptions { /** * Specified the time Auto Scaling waits before checking the health status of an EC2 instance * that has come into service. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/IAutoScalingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/IAutoScalingGroup.kt index 2640bac305..b8541f02c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/IAutoScalingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/IAutoScalingGroup.kt @@ -209,7 +209,8 @@ public interface IAutoScalingGroup : IResource, IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.IAutoScalingGroup, - ) : CdkObject(cdkObject), IAutoScalingGroup { + ) : CdkObject(cdkObject), + IAutoScalingGroup { /** * Send a message to either an SQS queue or SNS topic when instances launch or terminate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHook.kt index 3e4f227756..8b2ae976b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHook.kt @@ -25,7 +25,8 @@ public interface ILifecycleHook : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ILifecycleHook, - ) : CdkObject(cdkObject), ILifecycleHook { + ) : CdkObject(cdkObject), + ILifecycleHook { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHookTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHookTarget.kt index 118d143e77..5c91613a8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHookTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ILifecycleHookTarget.kt @@ -35,7 +35,8 @@ public interface ILifecycleHookTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ILifecycleHookTarget, - ) : CdkObject(cdkObject), ILifecycleHookTarget { + ) : CdkObject(cdkObject), + ILifecycleHookTarget { /** * Called when this object is used as the target of a lifecycle hook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/InstancesDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/InstancesDistribution.kt index c2fc3d748b..0fa227e1b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/InstancesDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/InstancesDistribution.kt @@ -297,7 +297,8 @@ public interface InstancesDistribution { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.InstancesDistribution, - ) : CdkObject(cdkObject), InstancesDistribution { + ) : CdkObject(cdkObject), + InstancesDistribution { /** * Indicates how to allocate instance types to fulfill On-Demand capacity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LaunchTemplateOverrides.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LaunchTemplateOverrides.kt index 2c3a45a2d1..c1e98370a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LaunchTemplateOverrides.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LaunchTemplateOverrides.kt @@ -320,7 +320,8 @@ public interface LaunchTemplateOverrides { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.LaunchTemplateOverrides, - ) : CdkObject(cdkObject), LaunchTemplateOverrides { + ) : CdkObject(cdkObject), + LaunchTemplateOverrides { /** * The instance requirements. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHook.kt index 4211f93662..7e650523de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHook.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LifecycleHook( cdkObject: software.amazon.awscdk.services.autoscaling.LifecycleHook, -) : Resource(cdkObject), ILifecycleHook { +) : Resource(cdkObject), + ILifecycleHook { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookProps.kt index 1d2362f819..0cec8d7119 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookProps.kt @@ -163,7 +163,8 @@ public interface LifecycleHookProps : BasicLifecycleHookProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.LifecycleHookProps, - ) : CdkObject(cdkObject), LifecycleHookProps { + ) : CdkObject(cdkObject), + LifecycleHookProps { /** * The AutoScalingGroup to add the lifecycle hook to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookTargetConfig.kt index 4823efc1d9..f4e16a8b7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/LifecycleHookTargetConfig.kt @@ -78,7 +78,8 @@ public interface LifecycleHookTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.LifecycleHookTargetConfig, - ) : CdkObject(cdkObject), LifecycleHookTargetConfig { + ) : CdkObject(cdkObject), + LifecycleHookTargetConfig { /** * The IRole that was used to bind the lifecycle hook to the target. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MetricTargetTrackingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MetricTargetTrackingProps.kt index 01e96d5e57..0cf7888277 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MetricTargetTrackingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MetricTargetTrackingProps.kt @@ -141,7 +141,8 @@ public interface MetricTargetTrackingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.MetricTargetTrackingProps, - ) : CdkObject(cdkObject), MetricTargetTrackingProps { + ) : CdkObject(cdkObject), + MetricTargetTrackingProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MixedInstancesPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MixedInstancesPolicy.kt index 16fcd098da..1f65ed7eed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MixedInstancesPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/MixedInstancesPolicy.kt @@ -162,7 +162,8 @@ public interface MixedInstancesPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.MixedInstancesPolicy, - ) : CdkObject(cdkObject), MixedInstancesPolicy { + ) : CdkObject(cdkObject), + MixedInstancesPolicy { /** * InstancesDistribution to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NetworkUtilizationScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NetworkUtilizationScalingProps.kt index 9789137b9a..23f3c26014 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NetworkUtilizationScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NetworkUtilizationScalingProps.kt @@ -108,7 +108,8 @@ public interface NetworkUtilizationScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.NetworkUtilizationScalingProps, - ) : CdkObject(cdkObject), NetworkUtilizationScalingProps { + ) : CdkObject(cdkObject), + NetworkUtilizationScalingProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NotificationConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NotificationConfiguration.kt index cf983d7116..65daed9ce0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NotificationConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/NotificationConfiguration.kt @@ -85,7 +85,8 @@ public interface NotificationConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.NotificationConfiguration, - ) : CdkObject(cdkObject), NotificationConfiguration { + ) : CdkObject(cdkObject), + NotificationConfiguration { /** * Which fleet scaling events triggers a notification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RenderSignalsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RenderSignalsOptions.kt index e0a259c82a..663d5d94ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RenderSignalsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RenderSignalsOptions.kt @@ -78,7 +78,8 @@ public interface RenderSignalsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.RenderSignalsOptions, - ) : CdkObject(cdkObject), RenderSignalsOptions { + ) : CdkObject(cdkObject), + RenderSignalsOptions { /** * The desiredCapacity of the ASG. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RequestCountScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RequestCountScalingProps.kt index 9b99fc8942..22d193a086 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RequestCountScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RequestCountScalingProps.kt @@ -105,7 +105,8 @@ public interface RequestCountScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.RequestCountScalingProps, - ) : CdkObject(cdkObject), RequestCountScalingProps { + ) : CdkObject(cdkObject), + RequestCountScalingProps { /** * Period after a scaling completes before another scaling activity can start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RollingUpdateOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RollingUpdateOptions.kt index f357037a85..24462c4110 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RollingUpdateOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/RollingUpdateOptions.kt @@ -203,7 +203,8 @@ public interface RollingUpdateOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.RollingUpdateOptions, - ) : CdkObject(cdkObject), RollingUpdateOptions { + ) : CdkObject(cdkObject), + RollingUpdateOptions { /** * The maximum number of instances that AWS CloudFormation updates at once. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScalingInterval.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScalingInterval.kt index b02adc5856..47dfd41dae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScalingInterval.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScalingInterval.kt @@ -130,7 +130,8 @@ public interface ScalingInterval { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ScalingInterval, - ) : CdkObject(cdkObject), ScalingInterval { + ) : CdkObject(cdkObject), + ScalingInterval { /** * The capacity adjustment to apply in this interval. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScheduledActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScheduledActionProps.kt index bc2270dd2e..d53b70adb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScheduledActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/ScheduledActionProps.kt @@ -188,7 +188,8 @@ public interface ScheduledActionProps : BasicScheduledActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.ScheduledActionProps, - ) : CdkObject(cdkObject), ScheduledActionProps { + ) : CdkObject(cdkObject), + ScheduledActionProps { /** * The AutoScalingGroup to apply the scheduled actions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/SignalsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/SignalsOptions.kt index 4969ed1831..afcfc2b856 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/SignalsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/SignalsOptions.kt @@ -100,7 +100,8 @@ public interface SignalsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.SignalsOptions, - ) : CdkObject(cdkObject), SignalsOptions { + ) : CdkObject(cdkObject), + SignalsOptions { /** * The percentage of signals that need to be successful. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingActionProps.kt index 08cebab203..1cd9222b4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingActionProps.kt @@ -183,7 +183,8 @@ public interface StepScalingActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.StepScalingActionProps, - ) : CdkObject(cdkObject), StepScalingActionProps { + ) : CdkObject(cdkObject), + StepScalingActionProps { /** * How the adjustment numbers are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingPolicyProps.kt index 70fd33336c..7edd18b96c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/StepScalingPolicyProps.kt @@ -244,7 +244,8 @@ public interface StepScalingPolicyProps : BasicStepScalingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.StepScalingPolicyProps, - ) : CdkObject(cdkObject), StepScalingPolicyProps { + ) : CdkObject(cdkObject), + StepScalingPolicyProps { /** * How the adjustment numbers inside 'intervals' are interpreted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/TargetTrackingScalingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/TargetTrackingScalingPolicyProps.kt index a5a4e70554..00826ee4c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/TargetTrackingScalingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/TargetTrackingScalingPolicyProps.kt @@ -194,7 +194,8 @@ public interface TargetTrackingScalingPolicyProps : BasicTargetTrackingScalingPo private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.TargetTrackingScalingPolicyProps, - ) : CdkObject(cdkObject), TargetTrackingScalingPolicyProps { + ) : CdkObject(cdkObject), + TargetTrackingScalingPolicyProps { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolOptions.kt index 79daffa2ef..6676290327 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolOptions.kt @@ -137,7 +137,8 @@ public interface WarmPoolOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.WarmPoolOptions, - ) : CdkObject(cdkObject), WarmPoolOptions { + ) : CdkObject(cdkObject), + WarmPoolOptions { /** * The maximum number of instances that are allowed to be in the warm pool or in any state * except Terminated for the Auto Scaling group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolProps.kt index 9371d07679..1eb04a915f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/WarmPoolProps.kt @@ -125,7 +125,8 @@ public interface WarmPoolProps : WarmPoolOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.WarmPoolProps, - ) : CdkObject(cdkObject), WarmPoolProps { + ) : CdkObject(cdkObject), + WarmPoolProps { /** * The Auto Scaling group to add the warm pool to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/Alarms.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/Alarms.kt index 68c9d0a54f..23815b4a03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/Alarms.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/Alarms.kt @@ -72,7 +72,8 @@ public interface Alarms { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.common.Alarms, - ) : CdkObject(cdkObject), Alarms { + ) : CdkObject(cdkObject), + Alarms { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ArbitraryIntervals.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ArbitraryIntervals.kt index b7cfb8d15c..c59bd08359 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ArbitraryIntervals.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ArbitraryIntervals.kt @@ -89,7 +89,8 @@ public interface ArbitraryIntervals { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.common.ArbitraryIntervals, - ) : CdkObject(cdkObject), ArbitraryIntervals { + ) : CdkObject(cdkObject), + ArbitraryIntervals { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/CompleteScalingInterval.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/CompleteScalingInterval.kt index b0410f4ac9..a1fec53bfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/CompleteScalingInterval.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/CompleteScalingInterval.kt @@ -92,7 +92,8 @@ public interface CompleteScalingInterval { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.common.CompleteScalingInterval, - ) : CdkObject(cdkObject), CompleteScalingInterval { + ) : CdkObject(cdkObject), + CompleteScalingInterval { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/IRandomGenerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/IRandomGenerator.kt index 9a21909340..d424f79fb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/IRandomGenerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/IRandomGenerator.kt @@ -24,7 +24,8 @@ public interface IRandomGenerator { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.common.IRandomGenerator, - ) : CdkObject(cdkObject), IRandomGenerator { + ) : CdkObject(cdkObject), + IRandomGenerator { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ScalingInterval.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ScalingInterval.kt index 82318b5792..b5d618b5fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ScalingInterval.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/common/ScalingInterval.kt @@ -131,7 +131,8 @@ public interface ScalingInterval { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscaling.common.ScalingInterval, - ) : CdkObject(cdkObject), ScalingInterval { + ) : CdkObject(cdkObject), + ScalingInterval { /** * The capacity adjustment to apply in this interval. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/FunctionHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/FunctionHook.kt index acf9d3ef76..bd4e667be0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/FunctionHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/FunctionHook.kt @@ -32,7 +32,8 @@ import kotlin.jvm.JvmName */ public open class FunctionHook( cdkObject: software.amazon.awscdk.services.autoscaling.hooktargets.FunctionHook, -) : CdkObject(cdkObject), ILifecycleHookTarget { +) : CdkObject(cdkObject), + ILifecycleHookTarget { public constructor(fn: IFunction) : this(software.amazon.awscdk.services.autoscaling.hooktargets.FunctionHook(fn.let(IFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/QueueHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/QueueHook.kt index 24571cd24a..300297257e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/QueueHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/QueueHook.kt @@ -27,7 +27,8 @@ import kotlin.jvm.JvmName */ public open class QueueHook( cdkObject: software.amazon.awscdk.services.autoscaling.hooktargets.QueueHook, -) : CdkObject(cdkObject), ILifecycleHookTarget { +) : CdkObject(cdkObject), + ILifecycleHookTarget { public constructor(queue: IQueue) : this(software.amazon.awscdk.services.autoscaling.hooktargets.QueueHook(queue.let(IQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/TopicHook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/TopicHook.kt index ba8f749eb3..cdbfbe4856 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/TopicHook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscaling/hooktargets/TopicHook.kt @@ -27,7 +27,8 @@ import kotlin.jvm.JvmName */ public open class TopicHook( cdkObject: software.amazon.awscdk.services.autoscaling.hooktargets.TopicHook, -) : CdkObject(cdkObject), ILifecycleHookTarget { +) : CdkObject(cdkObject), + ILifecycleHookTarget { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.autoscaling.hooktargets.TopicHook(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlan.kt index 0cb46a7d53..99a4451069 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlan.kt @@ -111,7 +111,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScalingPlan( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -556,7 +557,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.ApplicationSourceProperty, - ) : CdkObject(cdkObject), ApplicationSourceProperty { + ) : CdkObject(cdkObject), + ApplicationSourceProperty { /** * The Amazon Resource Name (ARN) of a CloudFormation stack. * @@ -814,7 +816,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.CustomizedLoadMetricSpecificationProperty, - ) : CdkObject(cdkObject), CustomizedLoadMetricSpecificationProperty { + ) : CdkObject(cdkObject), + CustomizedLoadMetricSpecificationProperty { /** * The dimensions of the metric. * @@ -1097,7 +1100,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.CustomizedScalingMetricSpecificationProperty, - ) : CdkObject(cdkObject), CustomizedScalingMetricSpecificationProperty { + ) : CdkObject(cdkObject), + CustomizedScalingMetricSpecificationProperty { /** * The dimensions of the metric. * @@ -1245,7 +1249,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The name of the dimension. * @@ -1429,7 +1434,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.PredefinedLoadMetricSpecificationProperty, - ) : CdkObject(cdkObject), PredefinedLoadMetricSpecificationProperty { + ) : CdkObject(cdkObject), + PredefinedLoadMetricSpecificationProperty { /** * The metric type. * @@ -1641,7 +1647,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.PredefinedScalingMetricSpecificationProperty, - ) : CdkObject(cdkObject), PredefinedScalingMetricSpecificationProperty { + ) : CdkObject(cdkObject), + PredefinedScalingMetricSpecificationProperty { /** * The metric type. * @@ -2480,7 +2487,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.ScalingInstructionProperty, - ) : CdkObject(cdkObject), ScalingInstructionProperty { + ) : CdkObject(cdkObject), + ScalingInstructionProperty { /** * The customized load metric to use for predictive scaling. * @@ -2784,7 +2792,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.TagFilterProperty, - ) : CdkObject(cdkObject), TagFilterProperty { + ) : CdkObject(cdkObject), + TagFilterProperty { /** * The tag key. * @@ -3167,7 +3176,8 @@ public open class CfnScalingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.TargetTrackingConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingConfigurationProperty { /** * A customized metric. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlanProps.kt index cda11eef3b..845570bb4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/autoscalingplans/CfnScalingPlanProps.kt @@ -211,7 +211,8 @@ public interface CfnScalingPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.autoscalingplans.CfnScalingPlanProps, - ) : CdkObject(cdkObject), CfnScalingPlanProps { + ) : CdkObject(cdkObject), + CfnScalingPlanProps { /** * A CloudFormation stack or a set of tags. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapability.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapability.kt index 5f1c290630..c2b36f9634 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapability.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapability.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCapability( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -591,7 +593,8 @@ public open class CfnCapability( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability.CapabilityConfigurationProperty, - ) : CdkObject(cdkObject), CapabilityConfigurationProperty { + ) : CdkObject(cdkObject), + CapabilityConfigurationProperty { /** * An EDI (electronic data interchange) configuration object. * @@ -846,7 +849,8 @@ public open class CfnCapability( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability.EdiConfigurationProperty, - ) : CdkObject(cdkObject), EdiConfigurationProperty { + ) : CdkObject(cdkObject), + EdiConfigurationProperty { /** * Contains the Amazon S3 bucket and prefix for the location of the input file, which is * contained in an `S3Location` object. @@ -1005,7 +1009,8 @@ public open class CfnCapability( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability.EdiTypeProperty, - ) : CdkObject(cdkObject), EdiTypeProperty { + ) : CdkObject(cdkObject), + EdiTypeProperty { /** * Returns the details for the EDI standard that is being used for the transformer. * @@ -1110,7 +1115,8 @@ public open class CfnCapability( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * Specifies the name of the Amazon S3 bucket. * @@ -1221,7 +1227,8 @@ public open class CfnCapability( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapability.X12DetailsProperty, - ) : CdkObject(cdkObject), X12DetailsProperty { + ) : CdkObject(cdkObject), + X12DetailsProperty { /** * Returns an enumerated type where each value identifies an X12 transaction set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapabilityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapabilityProps.kt index 453e6fd857..793ce15f4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapabilityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnCapabilityProps.kt @@ -266,7 +266,8 @@ public interface CfnCapabilityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnCapabilityProps, - ) : CdkObject(cdkObject), CfnCapabilityProps { + ) : CdkObject(cdkObject), + CfnCapabilityProps { /** * Specifies a structure that contains the details for a capability. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnership.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnership.kt index a0a9ae843b..5553c15f78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnership.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnership.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPartnership( cdkObject: software.amazon.awscdk.services.b2bi.CfnPartnership, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnershipProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnershipProps.kt index 2572c15a34..91295c6ce0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnershipProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnPartnershipProps.kt @@ -191,7 +191,8 @@ public interface CfnPartnershipProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnPartnershipProps, - ) : CdkObject(cdkObject), CfnPartnershipProps { + ) : CdkObject(cdkObject), + CfnPartnershipProps { /** * Returns one or more capabilities associated with this partnership. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfile.kt index b83eff9986..2c5ecf9910 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfile.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfile( cdkObject: software.amazon.awscdk.services.b2bi.CfnProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfileProps.kt index 051bc5adbe..c6a30fcdcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnProfileProps.kt @@ -177,7 +177,8 @@ public interface CfnProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnProfileProps, - ) : CdkObject(cdkObject), CfnProfileProps { + ) : CdkObject(cdkObject), + CfnProfileProps { /** * Returns the name for the business associated with this profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformer.kt index 7b259319ca..23db3b3946 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformer.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransformer( cdkObject: software.amazon.awscdk.services.b2bi.CfnTransformer, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -596,7 +598,8 @@ public open class CfnTransformer( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnTransformer.EdiTypeProperty, - ) : CdkObject(cdkObject), EdiTypeProperty { + ) : CdkObject(cdkObject), + EdiTypeProperty { /** * Returns the details for the EDI standard that is being used for the transformer. * @@ -712,7 +715,8 @@ public open class CfnTransformer( private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnTransformer.X12DetailsProperty, - ) : CdkObject(cdkObject), X12DetailsProperty { + ) : CdkObject(cdkObject), + X12DetailsProperty { /** * Returns an enumerated type where each value identifies an X12 transaction set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformerProps.kt index 5c65a5d5c0..e7bcc230ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/b2bi/CfnTransformerProps.kt @@ -274,7 +274,8 @@ public interface CfnTransformerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.b2bi.CfnTransformerProps, - ) : CdkObject(cdkObject), CfnTransformerProps { + ) : CdkObject(cdkObject), + CfnTransformerProps { /** * Returns the details for the EDI standard that is being used for the transformer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlan.kt index 30dea7f8a1..81d28b0609 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlan.kt @@ -24,7 +24,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class BackupPlan( cdkObject: software.amazon.awscdk.services.backup.BackupPlan, -) : Resource(cdkObject), IBackupPlan { +) : Resource(cdkObject), + IBackupPlan { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.backup.BackupPlan(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanCopyActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanCopyActionProps.kt index 1fac462a20..5c64453f3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanCopyActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanCopyActionProps.kt @@ -109,7 +109,8 @@ public interface BackupPlanCopyActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupPlanCopyActionProps, - ) : CdkObject(cdkObject), BackupPlanCopyActionProps { + ) : CdkObject(cdkObject), + BackupPlanCopyActionProps { /** * Specifies the duration after creation that a copied recovery point is deleted from the * destination vault. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanProps.kt index 8505f22b96..536906ac5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanProps.kt @@ -139,7 +139,8 @@ public interface BackupPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupPlanProps, - ) : CdkObject(cdkObject), BackupPlanProps { + ) : CdkObject(cdkObject), + BackupPlanProps { /** * The display name of the backup plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanRuleProps.kt index 4e906b446e..609dc10439 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupPlanRuleProps.kt @@ -296,7 +296,8 @@ public interface BackupPlanRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupPlanRuleProps, - ) : CdkObject(cdkObject), BackupPlanRuleProps { + ) : CdkObject(cdkObject), + BackupPlanRuleProps { /** * The backup vault where backups are. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelection.kt index 5ce77431f2..4151105051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelection.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class BackupSelection( cdkObject: software.amazon.awscdk.services.backup.BackupSelection, -) : Resource(cdkObject), IGrantable { +) : Resource(cdkObject), + IGrantable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionOptions.kt index 9647cda928..217c5bfba3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionOptions.kt @@ -205,7 +205,8 @@ public interface BackupSelectionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupSelectionOptions, - ) : CdkObject(cdkObject), BackupSelectionOptions { + ) : CdkObject(cdkObject), + BackupSelectionOptions { /** * Whether to automatically give restores permissions to the role that AWS Backup uses. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionProps.kt index e0fd443ea7..8db3be73fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupSelectionProps.kt @@ -163,7 +163,8 @@ public interface BackupSelectionProps : BackupSelectionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupSelectionProps, - ) : CdkObject(cdkObject), BackupSelectionProps { + ) : CdkObject(cdkObject), + BackupSelectionProps { /** * Whether to automatically give restores permissions to the role that AWS Backup uses. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVault.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVault.kt index d41eced6c4..8fe2445e40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVault.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVault.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class BackupVault( cdkObject: software.amazon.awscdk.services.backup.BackupVault, -) : Resource(cdkObject), IBackupVault { +) : Resource(cdkObject), + IBackupVault { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.backup.BackupVault(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVaultProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVaultProps.kt index d4fadc1d83..920b1f88c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVaultProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/BackupVaultProps.kt @@ -272,7 +272,8 @@ public interface BackupVaultProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.BackupVaultProps, - ) : CdkObject(cdkObject), BackupVaultProps { + ) : CdkObject(cdkObject), + BackupVaultProps { /** * A resource-based policy that is used to manage access permissions on the backup vault. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlan.kt index 88141c16f1..8aee457793 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlan.kt @@ -85,7 +85,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBackupPlan( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -421,7 +423,8 @@ public open class CfnBackupPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan.AdvancedBackupSettingResourceTypeProperty, - ) : CdkObject(cdkObject), AdvancedBackupSettingResourceTypeProperty { + ) : CdkObject(cdkObject), + AdvancedBackupSettingResourceTypeProperty { /** * The backup option for the resource. * @@ -652,7 +655,8 @@ public open class CfnBackupPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan.BackupPlanResourceTypeProperty, - ) : CdkObject(cdkObject), BackupPlanResourceTypeProperty { + ) : CdkObject(cdkObject), + BackupPlanResourceTypeProperty { /** * A list of backup options for each resource type. * @@ -1071,7 +1075,8 @@ public open class CfnBackupPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan.BackupRuleResourceTypeProperty, - ) : CdkObject(cdkObject), BackupRuleResourceTypeProperty { + ) : CdkObject(cdkObject), + BackupRuleResourceTypeProperty { /** * A value in minutes after a backup job is successfully started before it must be completed * or it is canceled by AWS Backup . @@ -1338,7 +1343,8 @@ public open class CfnBackupPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan.CopyActionResourceTypeProperty, - ) : CdkObject(cdkObject), CopyActionResourceTypeProperty { + ) : CdkObject(cdkObject), + CopyActionResourceTypeProperty { /** * An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the * copied backup. @@ -1512,7 +1518,8 @@ public open class CfnBackupPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlan.LifecycleResourceTypeProperty, - ) : CdkObject(cdkObject), LifecycleResourceTypeProperty { + ) : CdkObject(cdkObject), + LifecycleResourceTypeProperty { /** * Specifies the number of days after creation that a recovery point is deleted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlanProps.kt index 648185dc9a..04da82b3dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupPlanProps.kt @@ -155,7 +155,8 @@ public interface CfnBackupPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupPlanProps, - ) : CdkObject(cdkObject), CfnBackupPlanProps { + ) : CdkObject(cdkObject), + CfnBackupPlanProps { /** * Uniquely identifies the backup plan to be associated with the selection of resources. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelection.kt index f2578014a0..54237e3bda 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelection.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBackupSelection( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -622,7 +623,8 @@ public open class CfnBackupSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelection.BackupSelectionResourceTypeProperty, - ) : CdkObject(cdkObject), BackupSelectionResourceTypeProperty { + ) : CdkObject(cdkObject), + BackupSelectionResourceTypeProperty { /** * A list of conditions that you define to assign resources to your backup plans using tags. * @@ -801,7 +803,8 @@ public open class CfnBackupSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelection.ConditionParameterProperty, - ) : CdkObject(cdkObject), ConditionParameterProperty { + ) : CdkObject(cdkObject), + ConditionParameterProperty { /** * The key in a key-value pair. * @@ -949,7 +952,8 @@ public open class CfnBackupSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelection.ConditionResourceTypeProperty, - ) : CdkObject(cdkObject), ConditionResourceTypeProperty { + ) : CdkObject(cdkObject), + ConditionResourceTypeProperty { /** * The key in a key-value pair. * @@ -1267,7 +1271,8 @@ public open class CfnBackupSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelection.ConditionsProperty, - ) : CdkObject(cdkObject), ConditionsProperty { + ) : CdkObject(cdkObject), + ConditionsProperty { /** * Filters the values of your tagged resources for only those resources that you tagged with * the same value. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelectionProps.kt index 2b036ca818..26aa8b6f57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupSelectionProps.kt @@ -156,7 +156,8 @@ public interface CfnBackupSelectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupSelectionProps, - ) : CdkObject(cdkObject), CfnBackupSelectionProps { + ) : CdkObject(cdkObject), + CfnBackupSelectionProps { /** * Uniquely identifies a backup plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVault.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVault.kt index 7337be6a49..01d5394338 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVault.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVault.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBackupVault( cdkObject: software.amazon.awscdk.services.backup.CfnBackupVault, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -239,7 +241,7 @@ public open class CfnBackupVault( * The name of a logical container where backups are stored. * * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupvault.html#cfn-backup-backupvault-backupvaultname) * @param backupVaultName The name of a logical container where backups are stored. @@ -355,7 +357,7 @@ public open class CfnBackupVault( * The name of a logical container where backups are stored. * * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupvault.html#cfn-backup-backupvault-backupvaultname) * @param backupVaultName The name of a logical container where backups are stored. @@ -708,7 +710,8 @@ public open class CfnBackupVault( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupVault.LockConfigurationTypeProperty, - ) : CdkObject(cdkObject), LockConfigurationTypeProperty { + ) : CdkObject(cdkObject), + LockConfigurationTypeProperty { /** * The AWS Backup Vault Lock configuration that specifies the number of days before the lock * date. @@ -905,7 +908,8 @@ public open class CfnBackupVault( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupVault.NotificationObjectTypeProperty, - ) : CdkObject(cdkObject), NotificationObjectTypeProperty { + ) : CdkObject(cdkObject), + NotificationObjectTypeProperty { /** * An array of events that indicate the status of jobs to back up resources to the backup * vault. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVaultProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVaultProps.kt index b4f9f90023..6e4720e30e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVaultProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnBackupVaultProps.kt @@ -56,7 +56,7 @@ public interface CfnBackupVaultProps { * The name of a logical container where backups are stored. * * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupvault.html#cfn-backup-backupvault-backupvaultname) */ @@ -116,7 +116,7 @@ public interface CfnBackupVaultProps { /** * @param backupVaultName The name of a logical container where backups are stored. * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. */ public fun backupVaultName(backupVaultName: String) @@ -194,7 +194,7 @@ public interface CfnBackupVaultProps { /** * @param backupVaultName The name of a logical container where backups are stored. * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. */ override fun backupVaultName(backupVaultName: String) { cdkBuilder.backupVaultName(backupVaultName) @@ -279,7 +279,8 @@ public interface CfnBackupVaultProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnBackupVaultProps, - ) : CdkObject(cdkObject), CfnBackupVaultProps { + ) : CdkObject(cdkObject), + CfnBackupVaultProps { /** * A resource-based policy that is used to manage access permissions on the target backup vault. * @@ -291,7 +292,7 @@ public interface CfnBackupVaultProps { * The name of a logical container where backups are stored. * * Backup vaults are identified by names that are unique to the account used to create them and - * the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens. + * the AWS Region where they are created. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupvault.html#cfn-backup-backupvault-backupvaultname) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFramework.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFramework.kt index 6dbe97c2d6..2d4f44d8cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFramework.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFramework.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFramework( cdkObject: software.amazon.awscdk.services.backup.CfnFramework, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -456,7 +458,8 @@ public open class CfnFramework( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnFramework.ControlInputParameterProperty, - ) : CdkObject(cdkObject), ControlInputParameterProperty { + ) : CdkObject(cdkObject), + ControlInputParameterProperty { /** * The name of a parameter, for example, `BackupPlanFrequency` . * @@ -670,7 +673,8 @@ public open class CfnFramework( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnFramework.ControlScopeProperty, - ) : CdkObject(cdkObject), ControlScopeProperty { + ) : CdkObject(cdkObject), + ControlScopeProperty { /** * The ID of the only AWS resource that you want your control scope to contain. * @@ -865,7 +869,8 @@ public open class CfnFramework( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnFramework.FrameworkControlProperty, - ) : CdkObject(cdkObject), FrameworkControlProperty { + ) : CdkObject(cdkObject), + FrameworkControlProperty { /** * The name/value pairs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFrameworkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFrameworkProps.kt index cb9ed9f705..51d23dcf0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFrameworkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnFrameworkProps.kt @@ -195,7 +195,8 @@ public interface CfnFrameworkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnFrameworkProps, - ) : CdkObject(cdkObject), CfnFrameworkProps { + ) : CdkObject(cdkObject), + CfnFrameworkProps { /** * Contains detailed information about all of the controls of a framework. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlan.kt index ce465a529c..2d845a56dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlan.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReportPlan( cdkObject: software.amazon.awscdk.services.backup.CfnReportPlan, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -462,7 +464,8 @@ public open class CfnReportPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnReportPlan.ReportDeliveryChannelProperty, - ) : CdkObject(cdkObject), ReportDeliveryChannelProperty { + ) : CdkObject(cdkObject), + ReportDeliveryChannelProperty { /** * The format of your reports: `CSV` , `JSON` , or both. * @@ -707,7 +710,8 @@ public open class CfnReportPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnReportPlan.ReportSettingProperty, - ) : CdkObject(cdkObject), ReportSettingProperty { + ) : CdkObject(cdkObject), + ReportSettingProperty { /** * These are the accounts to be included in the report. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlanProps.kt index 7ed8c38fa5..d6540932fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnReportPlanProps.kt @@ -194,7 +194,8 @@ public interface CfnReportPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnReportPlanProps, - ) : CdkObject(cdkObject), CfnReportPlanProps { + ) : CdkObject(cdkObject), + CfnReportPlanProps { /** * Contains information about where and how to deliver your reports, specifically your Amazon S3 * bucket name, S3 key prefix, and the formats of your reports. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlan.kt index 06ccf94fa1..c51f5de2ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlan.kt @@ -47,6 +47,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .scheduleExpression("scheduleExpression") * // the properties below are optional * .scheduleExpressionTimezone("scheduleExpressionTimezone") + * .scheduleStatus("scheduleStatus") * .startWindowHours(123) * .tags(List.of(CfnTag.builder() * .key("key") @@ -59,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRestoreTestingPlan( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingPlan, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -165,6 +168,18 @@ public open class CfnRestoreTestingPlan( unwrap(this).setScheduleExpressionTimezone(`value`) } + /** + * + */ + public open fun scheduleStatus(): String? = unwrap(this).getScheduleStatus() + + /** + * + */ + public open fun scheduleStatus(`value`: String) { + unwrap(this).setScheduleStatus(`value`) + } + /** * Defaults to 24 hours. */ @@ -265,6 +280,12 @@ public open class CfnRestoreTestingPlan( */ public fun scheduleExpressionTimezone(scheduleExpressionTimezone: String) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus) + * @param scheduleStatus + */ + public fun scheduleStatus(scheduleStatus: String) + /** * Defaults to 24 hours. * @@ -387,6 +408,14 @@ public open class CfnRestoreTestingPlan( cdkBuilder.scheduleExpressionTimezone(scheduleExpressionTimezone) } + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus) + * @param scheduleStatus + */ + override fun scheduleStatus(scheduleStatus: String) { + cdkBuilder.scheduleStatus(scheduleStatus) + } + /** * Defaults to 24 hours. * @@ -685,7 +714,8 @@ public open class CfnRestoreTestingPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingPlan.RestoreTestingRecoveryPointSelectionProperty, - ) : CdkObject(cdkObject), RestoreTestingRecoveryPointSelectionProperty { + ) : CdkObject(cdkObject), + RestoreTestingRecoveryPointSelectionProperty { /** * Acceptable values include "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW". * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlanProps.kt index a42a5b950d..f9a5a23eb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingPlanProps.kt @@ -36,6 +36,7 @@ import kotlin.jvm.JvmName * .scheduleExpression("scheduleExpression") * // the properties below are optional * .scheduleExpressionTimezone("scheduleExpressionTimezone") + * .scheduleStatus("scheduleStatus") * .startWindowHours(123) * .tags(List.of(CfnTag.builder() * .key("key") @@ -82,6 +83,11 @@ public interface CfnRestoreTestingPlanProps { */ public fun scheduleExpressionTimezone(): String? = unwrap(this).getScheduleExpressionTimezone() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus) + */ + public fun scheduleStatus(): String? = unwrap(this).getScheduleStatus() + /** * Defaults to 24 hours. * @@ -151,6 +157,11 @@ public interface CfnRestoreTestingPlanProps { */ public fun scheduleExpressionTimezone(scheduleExpressionTimezone: String) + /** + * @param scheduleStatus the value to be set. + */ + public fun scheduleStatus(scheduleStatus: String) + /** * @param startWindowHours Defaults to 24 hours. * A value in hours after a restore test is scheduled before a job will be canceled if it @@ -236,6 +247,13 @@ public interface CfnRestoreTestingPlanProps { cdkBuilder.scheduleExpressionTimezone(scheduleExpressionTimezone) } + /** + * @param scheduleStatus the value to be set. + */ + override fun scheduleStatus(scheduleStatus: String) { + cdkBuilder.scheduleStatus(scheduleStatus) + } + /** * @param startWindowHours Defaults to 24 hours. * A value in hours after a restore test is scheduled before a job will be canceled if it @@ -270,7 +288,8 @@ public interface CfnRestoreTestingPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingPlanProps, - ) : CdkObject(cdkObject), CfnRestoreTestingPlanProps { + ) : CdkObject(cdkObject), + CfnRestoreTestingPlanProps { /** * The specified criteria to assign a set of resources, such as recovery point types or backup * vaults. @@ -307,6 +326,11 @@ public interface CfnRestoreTestingPlanProps { override fun scheduleExpressionTimezone(): String? = unwrap(this).getScheduleExpressionTimezone() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus) + */ + override fun scheduleStatus(): String? = unwrap(this).getScheduleStatus() + /** * Defaults to 24 hours. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelection.kt index 8c5e0bd79e..4b55231bf6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelection.kt @@ -74,7 +74,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRestoreTestingSelection( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingSelection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -670,7 +671,8 @@ public open class CfnRestoreTestingSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingSelection.KeyValueProperty, - ) : CdkObject(cdkObject), KeyValueProperty { + ) : CdkObject(cdkObject), + KeyValueProperty { /** * The tag key. * @@ -707,9 +709,6 @@ public open class CfnRestoreTestingSelection( /** * The conditions that you define for resources in your restore testing plan using tags. * - * For example, `"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },` . - * Condition operators are case sensitive. - * * Example: * * ``` @@ -865,7 +864,8 @@ public open class CfnRestoreTestingSelection( private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingSelection.ProtectedResourceConditionsProperty, - ) : CdkObject(cdkObject), ProtectedResourceConditionsProperty { + ) : CdkObject(cdkObject), + ProtectedResourceConditionsProperty { /** * Filters the values of your tagged resources for only those resources that you tagged with * the same value. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelectionProps.kt index 7b31a3b3e6..05ce32fa47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/CfnRestoreTestingSelectionProps.kt @@ -354,7 +354,8 @@ public interface CfnRestoreTestingSelectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.CfnRestoreTestingSelectionProps, - ) : CdkObject(cdkObject), CfnRestoreTestingSelectionProps { + ) : CdkObject(cdkObject), + CfnRestoreTestingSelectionProps { /** * The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target * resource; diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupPlan.kt index d9657309a1..91f46b49c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupPlan.kt @@ -22,7 +22,8 @@ public interface IBackupPlan : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.IBackupPlan, - ) : CdkObject(cdkObject), IBackupPlan { + ) : CdkObject(cdkObject), + IBackupPlan { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupVault.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupVault.kt index e6ca4a22a8..64cc990107 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupVault.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/IBackupVault.kt @@ -37,7 +37,8 @@ public interface IBackupVault : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.IBackupVault, - ) : CdkObject(cdkObject), IBackupVault { + ) : CdkObject(cdkObject), + IBackupVault { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/LockConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/LockConfiguration.kt index 4ca51d99e6..62f5dc4127 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/LockConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/LockConfiguration.kt @@ -158,7 +158,8 @@ public interface LockConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.LockConfiguration, - ) : CdkObject(cdkObject), LockConfiguration { + ) : CdkObject(cdkObject), + LockConfiguration { /** * The duration before the lock date. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/TagCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/TagCondition.kt index df92997fb9..613947e75c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/TagCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backup/TagCondition.kt @@ -110,7 +110,8 @@ public interface TagCondition { private class Wrapper( cdkObject: software.amazon.awscdk.services.backup.TagCondition, - ) : CdkObject(cdkObject), TagCondition { + ) : CdkObject(cdkObject), + TagCondition { /** * The key in a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisor.kt index 09c6c2263c..b032427bc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisor.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHypervisor( cdkObject: software.amazon.awscdk.services.backupgateway.CfnHypervisor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.backupgateway.CfnHypervisor(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisorProps.kt index e9c08c0e0a..68a745504b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/backupgateway/CfnHypervisorProps.kt @@ -204,7 +204,8 @@ public interface CfnHypervisorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.backupgateway.CfnHypervisorProps, - ) : CdkObject(cdkObject), CfnHypervisorProps { + ) : CdkObject(cdkObject), + CfnHypervisorProps { /** * The server host of the hypervisor. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironment.kt index 14bfb1e018..010e44704e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironment.kt @@ -171,6 +171,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * "tagsKey", "tags")) * .updateToLatestImageVersion(false) * .build()) + * .context("context") * .eksConfiguration(EksConfigurationProperty.builder() * .eksClusterArn("eksClusterArn") * .kubernetesNamespace("kubernetesNamespace") @@ -192,7 +193,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnComputeEnvironment( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -258,6 +261,18 @@ public open class CfnComputeEnvironment( public open fun computeResources(`value`: ComputeResourcesProperty.Builder.() -> Unit): Unit = computeResources(ComputeResourcesProperty(`value`)) + /** + * Reserved. + */ + public open fun context(): String? = unwrap(this).getContext() + + /** + * Reserved. + */ + public open fun context(`value`: String) { + unwrap(this).setContext(`value`) + } + /** * The details for the Amazon EKS cluster that supports the compute environment. */ @@ -473,6 +488,14 @@ public open class CfnComputeEnvironment( @JvmName("e68d3d39757a2bb02d27a14eaf143cce0c2876be80e425917f05c02c84205abb") public fun computeResources(computeResources: ComputeResourcesProperty.Builder.() -> Unit) + /** + * Reserved. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context) + * @param context Reserved. + */ + public fun context(context: String) + /** * The details for the Amazon EKS cluster that supports the compute environment. * @@ -836,6 +859,16 @@ public open class CfnComputeEnvironment( override fun computeResources(computeResources: ComputeResourcesProperty.Builder.() -> Unit): Unit = computeResources(ComputeResourcesProperty(computeResources)) + /** + * Reserved. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context) + * @param context Reserved. + */ + override fun context(context: String) { + cdkBuilder.context(context) + } + /** * The details for the Amazon EKS cluster that supports the compute environment. * @@ -2847,7 +2880,8 @@ public open class CfnComputeEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment.ComputeResourcesProperty, - ) : CdkObject(cdkObject), ComputeResourcesProperty { + ) : CdkObject(cdkObject), + ComputeResourcesProperty { /** * The allocation strategy to use for the compute resource if not enough instances of the best * fitting instance type can be allocated. @@ -3580,7 +3614,8 @@ public open class CfnComputeEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment.Ec2ConfigurationObjectProperty, - ) : CdkObject(cdkObject), Ec2ConfigurationObjectProperty { + ) : CdkObject(cdkObject), + Ec2ConfigurationObjectProperty { /** * The AMI ID used for instances launched in the compute environment that match the image * type. @@ -3777,7 +3812,8 @@ public open class CfnComputeEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment.EksConfigurationProperty, - ) : CdkObject(cdkObject), EksConfigurationProperty { + ) : CdkObject(cdkObject), + EksConfigurationProperty { /** * The Amazon Resource Name (ARN) of the Amazon EKS cluster. * @@ -3979,7 +4015,8 @@ public open class CfnComputeEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment.LaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), LaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateSpecificationProperty { /** * The ID of the launch template. * @@ -4151,7 +4188,8 @@ public open class CfnComputeEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironment.UpdatePolicyProperty, - ) : CdkObject(cdkObject), UpdatePolicyProperty { + ) : CdkObject(cdkObject), + UpdatePolicyProperty { /** * Specifies the job timeout (in minutes) when the compute environment infrastructure is * updated. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironmentProps.kt index 23e9ffcdcf..f743850cce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnComputeEnvironmentProps.kt @@ -58,6 +58,7 @@ import kotlin.jvm.JvmName * "tagsKey", "tags")) * .updateToLatestImageVersion(false) * .build()) + * .context("context") * .eksConfiguration(EksConfigurationProperty.builder() * .eksClusterArn("eksClusterArn") * .kubernetesNamespace("kubernetesNamespace") @@ -100,6 +101,13 @@ public interface CfnComputeEnvironmentProps { */ public fun computeResources(): Any? = unwrap(this).getComputeResources() + /** + * Reserved. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context) + */ + public fun context(): String? = unwrap(this).getContext() + /** * The details for the Amazon EKS cluster that supports the compute environment. * @@ -318,6 +326,11 @@ public interface CfnComputeEnvironmentProps { public fun computeResources(computeResources: CfnComputeEnvironment.ComputeResourcesProperty.Builder.() -> Unit) + /** + * @param context Reserved. + */ + public fun context(context: String) + /** * @param eksConfiguration The details for the Amazon EKS cluster that supports the compute * environment. @@ -606,6 +619,13 @@ public interface CfnComputeEnvironmentProps { fun computeResources(computeResources: CfnComputeEnvironment.ComputeResourcesProperty.Builder.() -> Unit): Unit = computeResources(CfnComputeEnvironment.ComputeResourcesProperty(computeResources)) + /** + * @param context Reserved. + */ + override fun context(context: String) { + cdkBuilder.context(context) + } + /** * @param eksConfiguration The details for the Amazon EKS cluster that supports the compute * environment. @@ -872,7 +892,8 @@ public interface CfnComputeEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnComputeEnvironmentProps, - ) : CdkObject(cdkObject), CfnComputeEnvironmentProps { + ) : CdkObject(cdkObject), + CfnComputeEnvironmentProps { /** * The name for your compute environment. * @@ -896,6 +917,13 @@ public interface CfnComputeEnvironmentProps { */ override fun computeResources(): Any? = unwrap(this).getComputeResources() + /** + * Reserved. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context) + */ + override fun context(): String? = unwrap(this).getContext() + /** * The details for the Amazon EKS cluster that supports the compute environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinition.kt index 773fe2e205..4eb696f407 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinition.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJobDefinition( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1224,7 +1226,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.AuthorizationConfigProperty, - ) : CdkObject(cdkObject), AuthorizationConfigProperty { + ) : CdkObject(cdkObject), + AuthorizationConfigProperty { /** * The Amazon EFS access point ID to use. * @@ -3073,7 +3076,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.ContainerPropertiesProperty, - ) : CdkObject(cdkObject), ContainerPropertiesProperty { + ) : CdkObject(cdkObject), + ContainerPropertiesProperty { /** * The command that's passed to the container. * @@ -3566,7 +3570,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.DeviceProperty, - ) : CdkObject(cdkObject), DeviceProperty { + ) : CdkObject(cdkObject), + DeviceProperty { /** * The path inside the container that's used to expose the host device. * @@ -3810,7 +3815,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EcsPropertiesProperty, - ) : CdkObject(cdkObject), EcsPropertiesProperty { + ) : CdkObject(cdkObject), + EcsPropertiesProperty { /** * An object that contains the properties for the Amazon ECS task definition of a job. * @@ -4465,7 +4471,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EcsTaskPropertiesProperty, - ) : CdkObject(cdkObject), EcsTaskPropertiesProperty { + ) : CdkObject(cdkObject), + EcsTaskPropertiesProperty { /** * This object is a list of containers. * @@ -4850,7 +4857,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EfsVolumeConfigurationProperty, - ) : CdkObject(cdkObject), EfsVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + EfsVolumeConfigurationProperty { /** * The authorization configuration details for the Amazon EFS file system. * @@ -5006,7 +5014,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerEnvironmentVariableProperty, - ) : CdkObject(cdkObject), EksContainerEnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EksContainerEnvironmentVariableProperty { /** * The name of the environment variable. * @@ -5686,7 +5695,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerProperty, - ) : CdkObject(cdkObject), EksContainerProperty { + ) : CdkObject(cdkObject), + EksContainerProperty { /** * An array of arguments to the entrypoint. * @@ -5953,7 +5963,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerVolumeMountProperty, - ) : CdkObject(cdkObject), EksContainerVolumeMountProperty { + ) : CdkObject(cdkObject), + EksContainerVolumeMountProperty { /** * The path on the container where the volume is mounted. * @@ -6169,7 +6180,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksPropertiesProperty, - ) : CdkObject(cdkObject), EksPropertiesProperty { + ) : CdkObject(cdkObject), + EksPropertiesProperty { /** * The properties for the Kubernetes pod resources of a job. * @@ -6296,7 +6308,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksSecretProperty, - ) : CdkObject(cdkObject), EksSecretProperty { + ) : CdkObject(cdkObject), + EksSecretProperty { /** * Specifies whether the secret or the secret's keys must be defined. * @@ -6614,7 +6627,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EksVolumeProperty, - ) : CdkObject(cdkObject), EksVolumeProperty { + ) : CdkObject(cdkObject), + EksVolumeProperty { /** * Specifies the configuration of a Kubernetes `emptyDir` volume. * @@ -6745,7 +6759,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EmptyDirProperty, - ) : CdkObject(cdkObject), EmptyDirProperty { + ) : CdkObject(cdkObject), + EmptyDirProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-emptydir.html#cfn-batch-jobdefinition-emptydir-medium) */ @@ -6848,7 +6863,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EnvironmentProperty, - ) : CdkObject(cdkObject), EnvironmentProperty { + ) : CdkObject(cdkObject), + EnvironmentProperty { /** * The name of the environment variable. * @@ -6943,7 +6959,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EphemeralStorageProperty, - ) : CdkObject(cdkObject), EphemeralStorageProperty { + ) : CdkObject(cdkObject), + EphemeralStorageProperty { /** * The total amount, in GiB, of ephemeral storage to set for the task. * @@ -7135,7 +7152,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.EvaluateOnExitProperty, - ) : CdkObject(cdkObject), EvaluateOnExitProperty { + ) : CdkObject(cdkObject), + EvaluateOnExitProperty { /** * Specifies the action to take if all of the specified conditions ( `onStatusReason` , * `onReason` , and `onExitCode` ) are met. @@ -7277,7 +7295,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.FargatePlatformConfigurationProperty, - ) : CdkObject(cdkObject), FargatePlatformConfigurationProperty { + ) : CdkObject(cdkObject), + FargatePlatformConfigurationProperty { /** * The AWS Fargate platform version where the jobs are running. * @@ -7361,7 +7380,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.HostPathProperty, - ) : CdkObject(cdkObject), HostPathProperty { + ) : CdkObject(cdkObject), + HostPathProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-hostpath.html#cfn-batch-jobdefinition-hostpath-path) */ @@ -7447,7 +7467,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.ImagePullSecretProperty, - ) : CdkObject(cdkObject), ImagePullSecretProperty { + ) : CdkObject(cdkObject), + ImagePullSecretProperty { /** * Provides a unique identifier for the `ImagePullSecret` . * @@ -8008,7 +8029,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.LinuxParametersProperty, - ) : CdkObject(cdkObject), LinuxParametersProperty { + ) : CdkObject(cdkObject), + LinuxParametersProperty { /** * Any of the host devices to expose to the container. * @@ -8478,7 +8500,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** * The log driver to use for the container. * @@ -8652,7 +8675,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.MetadataProperty, - ) : CdkObject(cdkObject), MetadataProperty { + ) : CdkObject(cdkObject), + MetadataProperty { /** * Key-value pairs used to identify, sort, and organize cube resources. * @@ -8798,7 +8822,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.MountPointsProperty, - ) : CdkObject(cdkObject), MountPointsProperty { + ) : CdkObject(cdkObject), + MountPointsProperty { /** * The path on the container where the host volume is mounted. * @@ -8919,7 +8944,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * Indicates whether the job has a public IP address. * @@ -8967,7 +8993,10 @@ public open class CfnJobDefinition( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.batch.*; + * Object labels; + * Object limits; * Object options; + * Object requests; * NodePropertiesProperty nodePropertiesProperty = NodePropertiesProperty.builder() * .mainNode(123) * .nodeRangeProperties(List.of(NodeRangePropertyProperty.builder() @@ -9168,6 +9197,96 @@ public open class CfnJobDefinition( * .build())) * .build())) * .build()) + * .eksProperties(EksPropertiesProperty.builder() + * .podProperties(PodPropertiesProperty.builder() + * .containers(List.of(EksContainerProperty.builder() + * .image("image") + * // the properties below are optional + * .args(List.of("args")) + * .command(List.of("command")) + * .env(List.of(EksContainerEnvironmentVariableProperty.builder() + * .name("name") + * // the properties below are optional + * .value("value") + * .build())) + * .imagePullPolicy("imagePullPolicy") + * .name("name") + * .resources(ResourcesProperty.builder() + * .limits(limits) + * .requests(requests) + * .build()) + * .securityContext(SecurityContextProperty.builder() + * .allowPrivilegeEscalation(false) + * .privileged(false) + * .readOnlyRootFilesystem(false) + * .runAsGroup(123) + * .runAsNonRoot(false) + * .runAsUser(123) + * .build()) + * .volumeMounts(List.of(EksContainerVolumeMountProperty.builder() + * .mountPath("mountPath") + * .name("name") + * .readOnly(false) + * .build())) + * .build())) + * .dnsPolicy("dnsPolicy") + * .hostNetwork(false) + * .imagePullSecrets(List.of(ImagePullSecretProperty.builder() + * .name("name") + * .build())) + * .initContainers(List.of(EksContainerProperty.builder() + * .image("image") + * // the properties below are optional + * .args(List.of("args")) + * .command(List.of("command")) + * .env(List.of(EksContainerEnvironmentVariableProperty.builder() + * .name("name") + * // the properties below are optional + * .value("value") + * .build())) + * .imagePullPolicy("imagePullPolicy") + * .name("name") + * .resources(ResourcesProperty.builder() + * .limits(limits) + * .requests(requests) + * .build()) + * .securityContext(SecurityContextProperty.builder() + * .allowPrivilegeEscalation(false) + * .privileged(false) + * .readOnlyRootFilesystem(false) + * .runAsGroup(123) + * .runAsNonRoot(false) + * .runAsUser(123) + * .build()) + * .volumeMounts(List.of(EksContainerVolumeMountProperty.builder() + * .mountPath("mountPath") + * .name("name") + * .readOnly(false) + * .build())) + * .build())) + * .metadata(MetadataProperty.builder() + * .labels(labels) + * .build()) + * .serviceAccountName("serviceAccountName") + * .shareProcessNamespace(false) + * .volumes(List.of(EksVolumeProperty.builder() + * .name("name") + * // the properties below are optional + * .emptyDir(EmptyDirProperty.builder() + * .medium("medium") + * .sizeLimit("sizeLimit") + * .build()) + * .hostPath(HostPathProperty.builder() + * .path("path") + * .build()) + * .secret(EksSecretProperty.builder() + * .secretName("secretName") + * // the properties below are optional + * .optional(false) + * .build()) + * .build())) + * .build()) + * .build()) * .instanceTypes(List.of("instanceTypes")) * .build())) * .numNodes(123) @@ -9286,7 +9405,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.NodePropertiesProperty, - ) : CdkObject(cdkObject), NodePropertiesProperty { + ) : CdkObject(cdkObject), + NodePropertiesProperty { /** * Specifies the node index for the main node of a multi-node parallel job. * @@ -9340,7 +9460,10 @@ public open class CfnJobDefinition( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.batch.*; + * Object labels; + * Object limits; * Object options; + * Object requests; * NodeRangePropertyProperty nodeRangePropertyProperty = NodeRangePropertyProperty.builder() * .targetNodes("targetNodes") * // the properties below are optional @@ -9539,6 +9662,96 @@ public open class CfnJobDefinition( * .build())) * .build())) * .build()) + * .eksProperties(EksPropertiesProperty.builder() + * .podProperties(PodPropertiesProperty.builder() + * .containers(List.of(EksContainerProperty.builder() + * .image("image") + * // the properties below are optional + * .args(List.of("args")) + * .command(List.of("command")) + * .env(List.of(EksContainerEnvironmentVariableProperty.builder() + * .name("name") + * // the properties below are optional + * .value("value") + * .build())) + * .imagePullPolicy("imagePullPolicy") + * .name("name") + * .resources(ResourcesProperty.builder() + * .limits(limits) + * .requests(requests) + * .build()) + * .securityContext(SecurityContextProperty.builder() + * .allowPrivilegeEscalation(false) + * .privileged(false) + * .readOnlyRootFilesystem(false) + * .runAsGroup(123) + * .runAsNonRoot(false) + * .runAsUser(123) + * .build()) + * .volumeMounts(List.of(EksContainerVolumeMountProperty.builder() + * .mountPath("mountPath") + * .name("name") + * .readOnly(false) + * .build())) + * .build())) + * .dnsPolicy("dnsPolicy") + * .hostNetwork(false) + * .imagePullSecrets(List.of(ImagePullSecretProperty.builder() + * .name("name") + * .build())) + * .initContainers(List.of(EksContainerProperty.builder() + * .image("image") + * // the properties below are optional + * .args(List.of("args")) + * .command(List.of("command")) + * .env(List.of(EksContainerEnvironmentVariableProperty.builder() + * .name("name") + * // the properties below are optional + * .value("value") + * .build())) + * .imagePullPolicy("imagePullPolicy") + * .name("name") + * .resources(ResourcesProperty.builder() + * .limits(limits) + * .requests(requests) + * .build()) + * .securityContext(SecurityContextProperty.builder() + * .allowPrivilegeEscalation(false) + * .privileged(false) + * .readOnlyRootFilesystem(false) + * .runAsGroup(123) + * .runAsNonRoot(false) + * .runAsUser(123) + * .build()) + * .volumeMounts(List.of(EksContainerVolumeMountProperty.builder() + * .mountPath("mountPath") + * .name("name") + * .readOnly(false) + * .build())) + * .build())) + * .metadata(MetadataProperty.builder() + * .labels(labels) + * .build()) + * .serviceAccountName("serviceAccountName") + * .shareProcessNamespace(false) + * .volumes(List.of(EksVolumeProperty.builder() + * .name("name") + * // the properties below are optional + * .emptyDir(EmptyDirProperty.builder() + * .medium("medium") + * .sizeLimit("sizeLimit") + * .build()) + * .hostPath(HostPathProperty.builder() + * .path("path") + * .build()) + * .secret(EksSecretProperty.builder() + * .secretName("secretName") + * // the properties below are optional + * .optional(false) + * .build()) + * .build())) + * .build()) + * .build()) * .instanceTypes(List.of("instanceTypes")) * .build(); * ``` @@ -9561,6 +9774,14 @@ public open class CfnJobDefinition( */ public fun ecsProperties(): Any? = unwrap(this).getEcsProperties() + /** + * This is an object that represents the properties of the node range for a multi-node parallel + * job. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-eksproperties) + */ + public fun eksProperties(): Any? = unwrap(this).getEksProperties() + /** * The instance types of the underlying host infrastructure of a multi-node parallel job. * @@ -9630,6 +9851,26 @@ public open class CfnJobDefinition( @JvmName("66d8ff9e0f4f24b1d9c32aa5170dfcbcdf49c358ce50e8c393906952bbdddbcf") public fun ecsProperties(ecsProperties: EcsPropertiesProperty.Builder.() -> Unit) + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + public fun eksProperties(eksProperties: IResolvable) + + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + public fun eksProperties(eksProperties: EksPropertiesProperty) + + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e13241449400f6de1ad5320c2fa6262ef6cf7523df6b83efc9d15c50eafca352") + public fun eksProperties(eksProperties: EksPropertiesProperty.Builder.() -> Unit) + /** * @param instanceTypes The instance types of the underlying host infrastructure of a * multi-node parallel job. @@ -9714,6 +9955,31 @@ public open class CfnJobDefinition( override fun ecsProperties(ecsProperties: EcsPropertiesProperty.Builder.() -> Unit): Unit = ecsProperties(EcsPropertiesProperty(ecsProperties)) + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + override fun eksProperties(eksProperties: IResolvable) { + cdkBuilder.eksProperties(eksProperties.let(IResolvable.Companion::unwrap)) + } + + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + override fun eksProperties(eksProperties: EksPropertiesProperty) { + cdkBuilder.eksProperties(eksProperties.let(EksPropertiesProperty.Companion::unwrap)) + } + + /** + * @param eksProperties This is an object that represents the properties of the node range for + * a multi-node parallel job. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e13241449400f6de1ad5320c2fa6262ef6cf7523df6b83efc9d15c50eafca352") + override fun eksProperties(eksProperties: EksPropertiesProperty.Builder.() -> Unit): Unit = + eksProperties(EksPropertiesProperty(eksProperties)) + /** * @param instanceTypes The instance types of the underlying host infrastructure of a * multi-node parallel job. @@ -9757,7 +10023,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.NodeRangePropertyProperty, - ) : CdkObject(cdkObject), NodeRangePropertyProperty { + ) : CdkObject(cdkObject), + NodeRangePropertyProperty { /** * The container details for the node range. * @@ -9773,6 +10040,14 @@ public open class CfnJobDefinition( */ override fun ecsProperties(): Any? = unwrap(this).getEcsProperties() + /** + * This is an object that represents the properties of the node range for a multi-node + * parallel job. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-eksproperties) + */ + override fun eksProperties(): Any? = unwrap(this).getEksProperties() + /** * The instance types of the underlying host infrastructure of a multi-node parallel job. * @@ -10436,7 +10711,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.PodPropertiesProperty, - ) : CdkObject(cdkObject), PodPropertiesProperty { + ) : CdkObject(cdkObject), + PodPropertiesProperty { /** * The properties of the container that's used on the Amazon EKS pod. * @@ -10619,7 +10895,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.RepositoryCredentialsProperty, - ) : CdkObject(cdkObject), RepositoryCredentialsProperty { + ) : CdkObject(cdkObject), + RepositoryCredentialsProperty { /** * The Amazon Resource Name (ARN) of the secret containing the private repository credentials. * @@ -10983,7 +11260,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.ResourceRequirementProperty, - ) : CdkObject(cdkObject), ResourceRequirementProperty { + ) : CdkObject(cdkObject), + ResourceRequirementProperty { /** * The type of resource to assign to a container. * @@ -11174,7 +11452,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.ResourcesProperty, - ) : CdkObject(cdkObject), ResourcesProperty { + ) : CdkObject(cdkObject), + ResourcesProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resources.html#cfn-batch-jobdefinition-resources-limits) */ @@ -11339,7 +11618,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.RetryStrategyProperty, - ) : CdkObject(cdkObject), RetryStrategyProperty { + ) : CdkObject(cdkObject), + RetryStrategyProperty { /** * The number of times to move a job to the `RUNNABLE` status. * @@ -11522,7 +11802,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.RuntimePlatformProperty, - ) : CdkObject(cdkObject), RuntimePlatformProperty { + ) : CdkObject(cdkObject), + RuntimePlatformProperty { /** * The vCPU architecture. The default value is `X86_64` . Valid values are `X86_64` and * `ARM64` . @@ -11689,7 +11970,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.SecretProperty, - ) : CdkObject(cdkObject), SecretProperty { + ) : CdkObject(cdkObject), + SecretProperty { /** * The name of the secret. * @@ -11920,7 +12202,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.SecurityContextProperty, - ) : CdkObject(cdkObject), SecurityContextProperty { + ) : CdkObject(cdkObject), + SecurityContextProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-securitycontext.html#cfn-batch-jobdefinition-securitycontext-allowprivilegeescalation) */ @@ -12073,7 +12356,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.TaskContainerDependencyProperty, - ) : CdkObject(cdkObject), TaskContainerDependencyProperty { + ) : CdkObject(cdkObject), + TaskContainerDependencyProperty { /** * The dependency condition of the container. The following are the available conditions and * their behavior:. @@ -13720,7 +14004,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.TaskContainerPropertiesProperty, - ) : CdkObject(cdkObject), TaskContainerPropertiesProperty { + ) : CdkObject(cdkObject), + TaskContainerPropertiesProperty { /** * The command that's passed to the container. * @@ -14111,7 +14396,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.TimeoutProperty, - ) : CdkObject(cdkObject), TimeoutProperty { + ) : CdkObject(cdkObject), + TimeoutProperty { /** * The job timeout time (in seconds) that's measured from the job attempt's `startedAt` * timestamp. @@ -14294,7 +14580,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.TmpfsProperty, - ) : CdkObject(cdkObject), TmpfsProperty { + ) : CdkObject(cdkObject), + TmpfsProperty { /** * The absolute file path in the container where the `tmpfs` volume is mounted. * @@ -14447,7 +14734,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.UlimitProperty, - ) : CdkObject(cdkObject), UlimitProperty { + ) : CdkObject(cdkObject), + UlimitProperty { /** * The hard limit for the `ulimit` type. * @@ -14580,7 +14868,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.VolumesHostProperty, - ) : CdkObject(cdkObject), VolumesHostProperty { + ) : CdkObject(cdkObject), + VolumesHostProperty { /** * The path on the host container instance that's presented to the container. * @@ -14875,7 +15164,8 @@ public open class CfnJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinition.VolumesProperty, - ) : CdkObject(cdkObject), VolumesProperty { + ) : CdkObject(cdkObject), + VolumesProperty { /** * This is used when you're using an Amazon Elastic File System file system for job storage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinitionProps.kt index 40a3a2ec42..d0b81f47fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobDefinitionProps.kt @@ -696,7 +696,8 @@ public interface CfnJobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobDefinitionProps, - ) : CdkObject(cdkObject), CfnJobDefinitionProps { + ) : CdkObject(cdkObject), + CfnJobDefinitionProps { /** * An object with properties specific to Amazon ECS-based jobs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueue.kt index 776c231aa7..fac0bd7a52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueue.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJobQueue( cdkObject: software.amazon.awscdk.services.batch.CfnJobQueue, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -681,7 +683,8 @@ public open class CfnJobQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobQueue.ComputeEnvironmentOrderProperty, - ) : CdkObject(cdkObject), ComputeEnvironmentOrderProperty { + ) : CdkObject(cdkObject), + ComputeEnvironmentOrderProperty { /** * The Amazon Resource Name (ARN) of the compute environment. * @@ -854,7 +857,8 @@ public open class CfnJobQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobQueue.JobStateTimeLimitActionProperty, - ) : CdkObject(cdkObject), JobStateTimeLimitActionProperty { + ) : CdkObject(cdkObject), + JobStateTimeLimitActionProperty { /** * The action to take when a job is at the head of the job queue in the specified state for * the specified period of time. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueueProps.kt index 673fecb5ee..d34b36ef52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnJobQueueProps.kt @@ -382,7 +382,8 @@ public interface CfnJobQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnJobQueueProps, - ) : CdkObject(cdkObject), CfnJobQueueProps { + ) : CdkObject(cdkObject), + CfnJobQueueProps { /** * The set of compute environments mapped to a job queue and their order relative to each other. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicy.kt index a5ab1c8d12..85167541b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicy.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchedulingPolicy( cdkObject: software.amazon.awscdk.services.batch.CfnSchedulingPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.batch.CfnSchedulingPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -494,7 +496,8 @@ public open class CfnSchedulingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnSchedulingPolicy.FairsharePolicyProperty, - ) : CdkObject(cdkObject), FairsharePolicyProperty { + ) : CdkObject(cdkObject), + FairsharePolicyProperty { /** * A value used to reserve some of the available maximum vCPU for fair share identifiers that * aren't already used. @@ -676,7 +679,8 @@ public open class CfnSchedulingPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnSchedulingPolicy.ShareAttributesProperty, - ) : CdkObject(cdkObject), ShareAttributesProperty { + ) : CdkObject(cdkObject), + ShareAttributesProperty { /** * A fair share identifier or fair share identifier prefix. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicyProps.kt index b7bea5afa7..27b9eb6cb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CfnSchedulingPolicyProps.kt @@ -176,7 +176,8 @@ public interface CfnSchedulingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CfnSchedulingPolicyProps, - ) : CdkObject(cdkObject), CfnSchedulingPolicyProps { + ) : CdkObject(cdkObject), + CfnSchedulingPolicyProps { /** * The fair share policy of the scheduling policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ComputeEnvironmentProps.kt index d76da0e19b..7fd290e463 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ComputeEnvironmentProps.kt @@ -139,7 +139,8 @@ public interface ComputeEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.ComputeEnvironmentProps, - ) : CdkObject(cdkObject), ComputeEnvironmentProps { + ) : CdkObject(cdkObject), + ComputeEnvironmentProps { /** * The name of the ComputeEnvironment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CustomReason.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CustomReason.kt index 7a433fcd5a..b9954cf1ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CustomReason.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/CustomReason.kt @@ -120,7 +120,8 @@ public interface CustomReason { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.CustomReason, - ) : CdkObject(cdkObject), CustomReason { + ) : CdkObject(cdkObject), + CustomReason { /** * A glob string that will match on the job exit code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Device.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Device.kt index b9e4a88844..c40c641dcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Device.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Device.kt @@ -115,7 +115,8 @@ public interface Device { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.Device, - ) : CdkObject(cdkObject), Device { + ) : CdkObject(cdkObject), + Device { /** * The path inside the container at which to expose the host device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsContainerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsContainerDefinitionProps.kt index e0ebf340f6..b3f734fa90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsContainerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsContainerDefinitionProps.kt @@ -388,7 +388,8 @@ public interface EcsContainerDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsContainerDefinitionProps, - ) : CdkObject(cdkObject), EcsContainerDefinitionProps { + ) : CdkObject(cdkObject), + EcsContainerDefinitionProps { /** * The command that's passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinition.kt index 16a592229e..d2062cbc77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinition.kt @@ -47,8 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsEc2ContainerDefinition( cdkObject: software.amazon.awscdk.services.batch.EcsEc2ContainerDefinition, -) : CloudshiftdevConstructsConstruct(cdkObject), IEcsEc2ContainerDefinition, IEcsContainerDefinition - { +) : CloudshiftdevConstructsConstruct(cdkObject), + IEcsEc2ContainerDefinition, + IEcsContainerDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinitionProps.kt index 3d91415436..0e0cf72077 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsEc2ContainerDefinitionProps.kt @@ -340,7 +340,8 @@ public interface EcsEc2ContainerDefinitionProps : EcsContainerDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsEc2ContainerDefinitionProps, - ) : CdkObject(cdkObject), EcsEc2ContainerDefinitionProps { + ) : CdkObject(cdkObject), + EcsEc2ContainerDefinitionProps { /** * The command that's passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinition.kt index 2012bb4f0d..ec363932e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinition.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsFargateContainerDefinition( cdkObject: software.amazon.awscdk.services.batch.EcsFargateContainerDefinition, -) : CloudshiftdevConstructsConstruct(cdkObject), IEcsFargateContainerDefinition, +) : CloudshiftdevConstructsConstruct(cdkObject), + IEcsFargateContainerDefinition, IEcsContainerDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinitionProps.kt index 4c76ff45ee..8681fbe2b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsFargateContainerDefinitionProps.kt @@ -370,7 +370,8 @@ public interface EcsFargateContainerDefinitionProps : EcsContainerDefinitionProp private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsFargateContainerDefinitionProps, - ) : CdkObject(cdkObject), EcsFargateContainerDefinitionProps { + ) : CdkObject(cdkObject), + EcsFargateContainerDefinitionProps { /** * Indicates whether the job has a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinition.kt index 31a0dcc0ff..68c49d3fae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinition.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsJobDefinition( cdkObject: software.amazon.awscdk.services.batch.EcsJobDefinition, -) : Resource(cdkObject), IJobDefinition { +) : Resource(cdkObject), + IJobDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinitionProps.kt index 0913187de2..3a4be5bcc9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsJobDefinitionProps.kt @@ -193,7 +193,8 @@ public interface EcsJobDefinitionProps : JobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsJobDefinitionProps, - ) : CdkObject(cdkObject), EcsJobDefinitionProps { + ) : CdkObject(cdkObject), + EcsJobDefinitionProps { /** * The container that this job will run. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImage.kt index b5fae97b5b..9221fa4133 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImage.kt @@ -80,7 +80,8 @@ public interface EcsMachineImage { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsMachineImage, - ) : CdkObject(cdkObject), EcsMachineImage { + ) : CdkObject(cdkObject), + EcsMachineImage { /** * The machine image to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImageType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImageType.kt index 01872d092f..cae3266c6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImageType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsMachineImageType.kt @@ -6,6 +6,7 @@ public enum class EcsMachineImageType( private val cdkObject: software.amazon.awscdk.services.batch.EcsMachineImageType, ) { ECS_AL2(software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2), + ECS_AL2023(software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2023), ECS_AL2_NVIDIA(software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2_NVIDIA), ; @@ -14,6 +15,8 @@ public enum class EcsMachineImageType( EcsMachineImageType = when (cdkObject) { software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2 -> EcsMachineImageType.ECS_AL2 + software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2023 -> + EcsMachineImageType.ECS_AL2023 software.amazon.awscdk.services.batch.EcsMachineImageType.ECS_AL2_NVIDIA -> EcsMachineImageType.ECS_AL2_NVIDIA } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsVolumeOptions.kt index 22d25d86bf..de81666063 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EcsVolumeOptions.kt @@ -95,7 +95,8 @@ public interface EcsVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EcsVolumeOptions, - ) : CdkObject(cdkObject), EcsVolumeOptions { + ) : CdkObject(cdkObject), + EcsVolumeOptions { /** * the path on the container where this volume is mounted. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EfsVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EfsVolumeOptions.kt index 14a62dd96f..2accfe2298 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EfsVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EfsVolumeOptions.kt @@ -247,7 +247,8 @@ public interface EfsVolumeOptions : EcsVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EfsVolumeOptions, - ) : CdkObject(cdkObject), EfsVolumeOptions { + ) : CdkObject(cdkObject), + EfsVolumeOptions { /** * The Amazon EFS access point ID to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinition.kt index 0d336c9870..9d4edb40da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinition.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EksContainerDefinition( cdkObject: software.amazon.awscdk.services.batch.EksContainerDefinition, -) : CloudshiftdevConstructsConstruct(cdkObject), IEksContainerDefinition { +) : CloudshiftdevConstructsConstruct(cdkObject), + IEksContainerDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinitionProps.kt index 95eee09171..3c0d08c070 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksContainerDefinitionProps.kt @@ -808,7 +808,8 @@ public interface EksContainerDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EksContainerDefinitionProps, - ) : CdkObject(cdkObject), EksContainerDefinitionProps { + ) : CdkObject(cdkObject), + EksContainerDefinitionProps { /** * An array of arguments to the entrypoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinition.kt index 3a653f34a6..68883e0564 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinition.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EksJobDefinition( cdkObject: software.amazon.awscdk.services.batch.EksJobDefinition, -) : Resource(cdkObject), IEksJobDefinition, IJobDefinition { +) : Resource(cdkObject), + IEksJobDefinition, + IJobDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinitionProps.kt index ac83277743..5e63ef0434 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksJobDefinitionProps.kt @@ -247,7 +247,8 @@ public interface EksJobDefinitionProps : JobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EksJobDefinitionProps, - ) : CdkObject(cdkObject), EksJobDefinitionProps { + ) : CdkObject(cdkObject), + EksJobDefinitionProps { /** * The container this Job Definition will run. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksMachineImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksMachineImage.kt index 7bd74790df..21ec9f6114 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksMachineImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksMachineImage.kt @@ -80,7 +80,8 @@ public interface EksMachineImage { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EksMachineImage, - ) : CdkObject(cdkObject), EksMachineImage { + ) : CdkObject(cdkObject), + EksMachineImage { /** * The machine image to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksVolumeOptions.kt index 55560181e8..fbad2c2fb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EksVolumeOptions.kt @@ -107,7 +107,8 @@ public interface EksVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EksVolumeOptions, - ) : CdkObject(cdkObject), EksVolumeOptions { + ) : CdkObject(cdkObject), + EksVolumeOptions { /** * The path on the container where the volume is mounted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EmptyDirVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EmptyDirVolumeOptions.kt index 1913799cdd..5385ff038b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EmptyDirVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/EmptyDirVolumeOptions.kt @@ -127,7 +127,8 @@ public interface EmptyDirVolumeOptions : EksVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.EmptyDirVolumeOptions, - ) : CdkObject(cdkObject), EmptyDirVolumeOptions { + ) : CdkObject(cdkObject), + EmptyDirVolumeOptions { /** * The storage type to use for this Volume. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicy.kt index 84cc8283dc..1394324006 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicy.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FairshareSchedulingPolicy( cdkObject: software.amazon.awscdk.services.batch.FairshareSchedulingPolicy, -) : Resource(cdkObject), IFairshareSchedulingPolicy, ISchedulingPolicy { +) : Resource(cdkObject), + IFairshareSchedulingPolicy, + ISchedulingPolicy { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.batch.FairshareSchedulingPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicyProps.kt index 37c8fca87a..7bcdc44114 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FairshareSchedulingPolicyProps.kt @@ -200,7 +200,8 @@ public interface FairshareSchedulingPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.FairshareSchedulingPolicyProps, - ) : CdkObject(cdkObject), FairshareSchedulingPolicyProps { + ) : CdkObject(cdkObject), + FairshareSchedulingPolicyProps { /** * Used to calculate the percentage of the maximum available vCPU to reserve for share * identifiers not present in the Queue. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironment.kt index 36e3a1f07c..4cc9dc7d6e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironment.kt @@ -44,8 +44,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FargateComputeEnvironment( cdkObject: software.amazon.awscdk.services.batch.FargateComputeEnvironment, -) : Resource(cdkObject), IFargateComputeEnvironment, IManagedComputeEnvironment, IComputeEnvironment - { +) : Resource(cdkObject), + IFargateComputeEnvironment, + IManagedComputeEnvironment, + IComputeEnvironment { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironmentProps.kt index 0042c1f1a0..f0d468aa3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/FargateComputeEnvironmentProps.kt @@ -313,7 +313,8 @@ public interface FargateComputeEnvironmentProps : ManagedComputeEnvironmentProps private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.FargateComputeEnvironmentProps, - ) : CdkObject(cdkObject), FargateComputeEnvironmentProps { + ) : CdkObject(cdkObject), + FargateComputeEnvironmentProps { /** * The name of the ComputeEnvironment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostPathVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostPathVolumeOptions.kt index 4422aa8d96..8784424d3c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostPathVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostPathVolumeOptions.kt @@ -117,7 +117,8 @@ public interface HostPathVolumeOptions : EksVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.HostPathVolumeOptions, - ) : CdkObject(cdkObject), HostPathVolumeOptions { + ) : CdkObject(cdkObject), + HostPathVolumeOptions { /** * The path of the file or directory on the host to mount into containers on the pod. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostVolumeOptions.kt index 8fbee40695..872aae6245 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/HostVolumeOptions.kt @@ -99,7 +99,8 @@ public interface HostVolumeOptions : EcsVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.HostVolumeOptions, - ) : CdkObject(cdkObject), HostVolumeOptions { + ) : CdkObject(cdkObject), + HostVolumeOptions { /** * the path on the container where this volume is mounted. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IComputeEnvironment.kt index 9263e94904..80ee51fca1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IComputeEnvironment.kt @@ -54,7 +54,8 @@ public interface IComputeEnvironment : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IComputeEnvironment, - ) : CdkObject(cdkObject), IComputeEnvironment { + ) : CdkObject(cdkObject), + IComputeEnvironment { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsContainerDefinition.kt index c119322c84..f0e683a764 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsContainerDefinition.kt @@ -136,7 +136,8 @@ public interface IEcsContainerDefinition : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IEcsContainerDefinition, - ) : CdkObject(cdkObject), IEcsContainerDefinition { + ) : CdkObject(cdkObject), + IEcsContainerDefinition { /** * Add a Volume to this container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsEc2ContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsEc2ContainerDefinition.kt index a4631f4514..5eab522b11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsEc2ContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsEc2ContainerDefinition.kt @@ -62,7 +62,8 @@ public interface IEcsEc2ContainerDefinition : IEcsContainerDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IEcsEc2ContainerDefinition, - ) : CdkObject(cdkObject), IEcsEc2ContainerDefinition { + ) : CdkObject(cdkObject), + IEcsEc2ContainerDefinition { /** * Add a ulimit to this container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsFargateContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsFargateContainerDefinition.kt index 7bff0737e2..11c1581527 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsFargateContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEcsFargateContainerDefinition.kt @@ -69,7 +69,8 @@ public interface IEcsFargateContainerDefinition : IEcsContainerDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IEcsFargateContainerDefinition, - ) : CdkObject(cdkObject), IEcsFargateContainerDefinition { + ) : CdkObject(cdkObject), + IEcsFargateContainerDefinition { /** * Add a Volume to this container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksContainerDefinition.kt index d7e868a655..c9f0771b84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksContainerDefinition.kt @@ -284,7 +284,8 @@ public interface IEksContainerDefinition : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IEksContainerDefinition, - ) : CdkObject(cdkObject), IEksContainerDefinition { + ) : CdkObject(cdkObject), + IEksContainerDefinition { /** * Mount a Volume to this container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksJobDefinition.kt index 614324de5c..1962348255 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IEksJobDefinition.kt @@ -61,7 +61,8 @@ public interface IEksJobDefinition : IJobDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IEksJobDefinition, - ) : CdkObject(cdkObject), IEksJobDefinition { + ) : CdkObject(cdkObject), + IEksJobDefinition { /** * Add a RetryStrategy to this JobDefinition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFairshareSchedulingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFairshareSchedulingPolicy.kt index b5f49a06ba..bf71bba7f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFairshareSchedulingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFairshareSchedulingPolicy.kt @@ -72,7 +72,8 @@ public interface IFairshareSchedulingPolicy : ISchedulingPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IFairshareSchedulingPolicy, - ) : CdkObject(cdkObject), IFairshareSchedulingPolicy { + ) : CdkObject(cdkObject), + IFairshareSchedulingPolicy { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFargateComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFargateComputeEnvironment.kt index b036f04252..0fec057f84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFargateComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IFargateComputeEnvironment.kt @@ -25,7 +25,8 @@ import kotlin.collections.List public interface IFargateComputeEnvironment : IManagedComputeEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IFargateComputeEnvironment, - ) : CdkObject(cdkObject), IFargateComputeEnvironment { + ) : CdkObject(cdkObject), + IFargateComputeEnvironment { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobDefinition.kt index af4e221416..f72066f967 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobDefinition.kt @@ -86,7 +86,8 @@ public interface IJobDefinition : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IJobDefinition, - ) : CdkObject(cdkObject), IJobDefinition { + ) : CdkObject(cdkObject), + IJobDefinition { /** * Add a RetryStrategy to this JobDefinition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobQueue.kt index c6196e842d..fe3af1cd39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IJobQueue.kt @@ -90,7 +90,8 @@ public interface IJobQueue : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IJobQueue, - ) : CdkObject(cdkObject), IJobQueue { + ) : CdkObject(cdkObject), + IJobQueue { /** * Add a `ComputeEnvironment` to this Queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedComputeEnvironment.kt index 9d6c76ad37..26e154ebdb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedComputeEnvironment.kt @@ -126,7 +126,8 @@ public interface IManagedComputeEnvironment : IComputeEnvironment, IConnectable, private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IManagedComputeEnvironment, - ) : CdkObject(cdkObject), IManagedComputeEnvironment { + ) : CdkObject(cdkObject), + IManagedComputeEnvironment { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedEc2EcsComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedEc2EcsComputeEnvironment.kt index 0636c56a21..bde0287f32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedEc2EcsComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IManagedEc2EcsComputeEnvironment.kt @@ -157,7 +157,8 @@ public interface IManagedEc2EcsComputeEnvironment : IManagedComputeEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IManagedEc2EcsComputeEnvironment, - ) : CdkObject(cdkObject), IManagedEc2EcsComputeEnvironment { + ) : CdkObject(cdkObject), + IManagedEc2EcsComputeEnvironment { /** * Add an instance class to this compute environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ISchedulingPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ISchedulingPolicy.kt index 6951805da9..2877f5f1dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ISchedulingPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ISchedulingPolicy.kt @@ -30,7 +30,8 @@ public interface ISchedulingPolicy : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.ISchedulingPolicy, - ) : CdkObject(cdkObject), ISchedulingPolicy { + ) : CdkObject(cdkObject), + ISchedulingPolicy { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IUnmanagedComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IUnmanagedComputeEnvironment.kt index 978bb1832d..6c145af89d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IUnmanagedComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/IUnmanagedComputeEnvironment.kt @@ -31,7 +31,8 @@ public interface IUnmanagedComputeEnvironment : IComputeEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.IUnmanagedComputeEnvironment, - ) : CdkObject(cdkObject), IUnmanagedComputeEnvironment { + ) : CdkObject(cdkObject), + IUnmanagedComputeEnvironment { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobDefinitionProps.kt index 530843d058..5b1893fbfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobDefinitionProps.kt @@ -205,7 +205,8 @@ public interface JobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.JobDefinitionProps, - ) : CdkObject(cdkObject), JobDefinitionProps { + ) : CdkObject(cdkObject), + JobDefinitionProps { /** * The name of this job definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueue.kt index 804a43bc3b..ace2e0b36d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueue.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class JobQueue( cdkObject: software.amazon.awscdk.services.batch.JobQueue, -) : Resource(cdkObject), IJobQueue { +) : Resource(cdkObject), + IJobQueue { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.batch.JobQueue(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -213,6 +214,28 @@ public open class JobQueue( */ public fun jobQueueName(jobQueueName: String) + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + * + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + public fun jobStateTimeLimitActions(jobStateTimeLimitActions: List) + + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + * + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + public fun jobStateTimeLimitActions(vararg jobStateTimeLimitActions: JobStateTimeLimitAction) + /** * The priority of the job queue. * @@ -325,6 +348,31 @@ public open class JobQueue( cdkBuilder.jobQueueName(jobQueueName) } + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + * + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + override fun jobStateTimeLimitActions(jobStateTimeLimitActions: List) { + cdkBuilder.jobStateTimeLimitActions(jobStateTimeLimitActions.map(JobStateTimeLimitAction.Companion::unwrap)) + } + + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + * + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + override fun jobStateTimeLimitActions(vararg jobStateTimeLimitActions: JobStateTimeLimitAction): + Unit = jobStateTimeLimitActions(jobStateTimeLimitActions.toList()) + /** * The priority of the job queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueueProps.kt index 76698e5f3d..c62ff652d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobQueueProps.kt @@ -78,6 +78,15 @@ public interface JobQueueProps { */ public fun jobQueueName(): String? = unwrap(this).getJobQueueName() + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + */ + public fun jobStateTimeLimitActions(): List = + unwrap(this).getJobStateTimeLimitActions()?.map(JobStateTimeLimitAction::wrap) ?: emptyList() + /** * The priority of the job queue. * @@ -157,6 +166,18 @@ public interface JobQueueProps { */ public fun jobQueueName(jobQueueName: String) + /** + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + public fun jobStateTimeLimitActions(jobStateTimeLimitActions: List) + + /** + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + public fun jobStateTimeLimitActions(vararg jobStateTimeLimitActions: JobStateTimeLimitAction) + /** * @param priority The priority of the job queue. * Job queues with a higher priority are evaluated first when associated with the same compute @@ -236,6 +257,21 @@ public interface JobQueueProps { cdkBuilder.jobQueueName(jobQueueName) } + /** + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + override fun jobStateTimeLimitActions(jobStateTimeLimitActions: List) { + cdkBuilder.jobStateTimeLimitActions(jobStateTimeLimitActions.map(JobStateTimeLimitAction.Companion::unwrap)) + } + + /** + * @param jobStateTimeLimitActions The set of actions that AWS Batch perform on jobs that remain + * at the head of the job queue in the specified state longer than specified times. + */ + override fun jobStateTimeLimitActions(vararg jobStateTimeLimitActions: JobStateTimeLimitAction): + Unit = jobStateTimeLimitActions(jobStateTimeLimitActions.toList()) + /** * @param priority The priority of the job queue. * Job queues with a higher priority are evaluated first when associated with the same compute @@ -261,7 +297,8 @@ public interface JobQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.JobQueueProps, - ) : CdkObject(cdkObject), JobQueueProps { + ) : CdkObject(cdkObject), + JobQueueProps { /** * The set of compute environments mapped to a job queue and their order relative to each other. * @@ -303,6 +340,16 @@ public interface JobQueueProps { */ override fun jobQueueName(): String? = unwrap(this).getJobQueueName() + /** + * The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in + * the specified state longer than specified times. + * + * Default: - no actions + */ + override fun jobStateTimeLimitActions(): List = + unwrap(this).getJobStateTimeLimitActions()?.map(JobStateTimeLimitAction::wrap) ?: + emptyList() + /** * The priority of the job queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitAction.kt new file mode 100644 index 0000000000..2e819a6f97 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitAction.kt @@ -0,0 +1,184 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.batch + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Unit + +/** + * Specifies an action that AWS Batch will take after the job has remained at the head of the queue + * in the specified state for longer than the specified time. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.batch.*; + * JobStateTimeLimitAction jobStateTimeLimitAction = JobStateTimeLimitAction.builder() + * .maxTime(Duration.minutes(30)) + * .reason(JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY) + * // the properties below are optional + * .action(JobStateTimeLimitActionsAction.CANCEL) + * .state(JobStateTimeLimitActionsState.RUNNABLE) + * .build(); + * ``` + */ +public interface JobStateTimeLimitAction { + /** + * The action to take when a job is at the head of the job queue in the specified state for the + * specified period of time. + * + * Default: JobStateTimeLimitActionsAction.CANCEL + */ + public fun action(): JobStateTimeLimitActionsAction? = + unwrap(this).getAction()?.let(JobStateTimeLimitActionsAction::wrap) + + /** + * The approximate amount of time, that must pass with the job in the specified state before the + * action is taken. + * + * The minimum value is 10 minutes and the maximum value is 24 hours. + */ + public fun maxTime(): Duration + + /** + * The reason to log for the action being taken. + * + * [Documentation](https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable) + */ + public fun reason(): JobStateTimeLimitActionsReason + + /** + * The state of the job needed to trigger the action. + * + * Default: JobStateTimeLimitActionsState.RUNNABLE + */ + public fun state(): JobStateTimeLimitActionsState? = + unwrap(this).getState()?.let(JobStateTimeLimitActionsState::wrap) + + /** + * A builder for [JobStateTimeLimitAction] + */ + @CdkDslMarker + public interface Builder { + /** + * @param action The action to take when a job is at the head of the job queue in the specified + * state for the specified period of time. + */ + public fun action(action: JobStateTimeLimitActionsAction) + + /** + * @param maxTime The approximate amount of time, that must pass with the job in the specified + * state before the action is taken. + * The minimum value is 10 minutes and the maximum value is 24 hours. + */ + public fun maxTime(maxTime: Duration) + + /** + * @param reason The reason to log for the action being taken. + */ + public fun reason(reason: JobStateTimeLimitActionsReason) + + /** + * @param state The state of the job needed to trigger the action. + */ + public fun state(state: JobStateTimeLimitActionsState) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.batch.JobStateTimeLimitAction.Builder = + software.amazon.awscdk.services.batch.JobStateTimeLimitAction.builder() + + /** + * @param action The action to take when a job is at the head of the job queue in the specified + * state for the specified period of time. + */ + override fun action(action: JobStateTimeLimitActionsAction) { + cdkBuilder.action(action.let(JobStateTimeLimitActionsAction.Companion::unwrap)) + } + + /** + * @param maxTime The approximate amount of time, that must pass with the job in the specified + * state before the action is taken. + * The minimum value is 10 minutes and the maximum value is 24 hours. + */ + override fun maxTime(maxTime: Duration) { + cdkBuilder.maxTime(maxTime.let(Duration.Companion::unwrap)) + } + + /** + * @param reason The reason to log for the action being taken. + */ + override fun reason(reason: JobStateTimeLimitActionsReason) { + cdkBuilder.reason(reason.let(JobStateTimeLimitActionsReason.Companion::unwrap)) + } + + /** + * @param state The state of the job needed to trigger the action. + */ + override fun state(state: JobStateTimeLimitActionsState) { + cdkBuilder.state(state.let(JobStateTimeLimitActionsState.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.batch.JobStateTimeLimitAction = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitAction, + ) : CdkObject(cdkObject), + JobStateTimeLimitAction { + /** + * The action to take when a job is at the head of the job queue in the specified state for the + * specified period of time. + * + * Default: JobStateTimeLimitActionsAction.CANCEL + */ + override fun action(): JobStateTimeLimitActionsAction? = + unwrap(this).getAction()?.let(JobStateTimeLimitActionsAction::wrap) + + /** + * The approximate amount of time, that must pass with the job in the specified state before the + * action is taken. + * + * The minimum value is 10 minutes and the maximum value is 24 hours. + */ + override fun maxTime(): Duration = unwrap(this).getMaxTime().let(Duration::wrap) + + /** + * The reason to log for the action being taken. + * + * [Documentation](https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable) + */ + override fun reason(): JobStateTimeLimitActionsReason = + unwrap(this).getReason().let(JobStateTimeLimitActionsReason::wrap) + + /** + * The state of the job needed to trigger the action. + * + * Default: JobStateTimeLimitActionsState.RUNNABLE + */ + override fun state(): JobStateTimeLimitActionsState? = + unwrap(this).getState()?.let(JobStateTimeLimitActionsState::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): JobStateTimeLimitAction { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitAction): + JobStateTimeLimitAction = CdkObjectWrappers.wrap(cdkObject) as? JobStateTimeLimitAction ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: JobStateTimeLimitAction): + software.amazon.awscdk.services.batch.JobStateTimeLimitAction = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.batch.JobStateTimeLimitAction + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsAction.kt new file mode 100644 index 0000000000..2536f59288 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsAction.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.batch + +public enum class JobStateTimeLimitActionsAction( + private val cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction, +) { + CANCEL(software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction.CANCEL), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction): + JobStateTimeLimitActionsAction = when (cdkObject) { + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction.CANCEL -> + JobStateTimeLimitActionsAction.CANCEL + } + + internal fun unwrap(wrapped: JobStateTimeLimitActionsAction): + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsReason.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsReason.kt new file mode 100644 index 0000000000..55217081d7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsReason.kt @@ -0,0 +1,28 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.batch + +public enum class JobStateTimeLimitActionsReason( + private val cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason, +) { + INSUFFICIENT_INSTANCE_CAPACITY(software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY), + COMPUTE_ENVIRONMENT_MAX_RESOURCE(software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.COMPUTE_ENVIRONMENT_MAX_RESOURCE), + JOB_RESOURCE_REQUIREMENT(software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.JOB_RESOURCE_REQUIREMENT), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason): + JobStateTimeLimitActionsReason = when (cdkObject) { + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY -> + JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.COMPUTE_ENVIRONMENT_MAX_RESOURCE -> + JobStateTimeLimitActionsReason.COMPUTE_ENVIRONMENT_MAX_RESOURCE + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason.JOB_RESOURCE_REQUIREMENT -> + JobStateTimeLimitActionsReason.JOB_RESOURCE_REQUIREMENT + } + + internal fun unwrap(wrapped: JobStateTimeLimitActionsReason): + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsState.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsState.kt new file mode 100644 index 0000000000..3564105d39 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/JobStateTimeLimitActionsState.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.batch + +public enum class JobStateTimeLimitActionsState( + private val cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsState, +) { + RUNNABLE(software.amazon.awscdk.services.batch.JobStateTimeLimitActionsState.RUNNABLE), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.batch.JobStateTimeLimitActionsState): + JobStateTimeLimitActionsState = when (cdkObject) { + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsState.RUNNABLE -> + JobStateTimeLimitActionsState.RUNNABLE + } + + internal fun unwrap(wrapped: JobStateTimeLimitActionsState): + software.amazon.awscdk.services.batch.JobStateTimeLimitActionsState = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/LinuxParametersProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/LinuxParametersProps.kt index e60af8f22a..a92b4f0028 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/LinuxParametersProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/LinuxParametersProps.kt @@ -169,7 +169,8 @@ public interface LinuxParametersProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.LinuxParametersProps, - ) : CdkObject(cdkObject), LinuxParametersProps { + ) : CdkObject(cdkObject), + LinuxParametersProps { /** * Specifies whether to run an init process inside the container that forwards signals and reaps * processes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedComputeEnvironmentProps.kt index 0552cc8a27..31bcbaadfc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedComputeEnvironmentProps.kt @@ -439,7 +439,8 @@ public interface ManagedComputeEnvironmentProps : ComputeEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.ManagedComputeEnvironmentProps, - ) : CdkObject(cdkObject), ManagedComputeEnvironmentProps { + ) : CdkObject(cdkObject), + ManagedComputeEnvironmentProps { /** * The name of the ComputeEnvironment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironment.kt index 0bc97a1a69..34068b0d29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironment.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ManagedEc2EcsComputeEnvironment( cdkObject: software.amazon.awscdk.services.batch.ManagedEc2EcsComputeEnvironment, -) : Resource(cdkObject), IManagedEc2EcsComputeEnvironment, IManagedComputeEnvironment, +) : Resource(cdkObject), + IManagedEc2EcsComputeEnvironment, + IManagedComputeEnvironment, IComputeEnvironment { public constructor( scope: CloudshiftdevConstructsConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironmentProps.kt index a6b39b7f18..cd4acf7c57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EcsComputeEnvironmentProps.kt @@ -675,7 +675,8 @@ public interface ManagedEc2EcsComputeEnvironmentProps : ManagedComputeEnvironmen private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.ManagedEc2EcsComputeEnvironmentProps, - ) : CdkObject(cdkObject), ManagedEc2EcsComputeEnvironmentProps { + ) : CdkObject(cdkObject), + ManagedEc2EcsComputeEnvironmentProps { /** * The allocation strategy to use if not enough instances of the best fitting instance type can * be allocated. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironment.kt index 81bc8517c7..1a497c15aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironment.kt @@ -90,7 +90,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ManagedEc2EksComputeEnvironment( cdkObject: software.amazon.awscdk.services.batch.ManagedEc2EksComputeEnvironment, -) : Resource(cdkObject), IManagedComputeEnvironment, IComputeEnvironment { +) : Resource(cdkObject), + IManagedComputeEnvironment, + IComputeEnvironment { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironmentProps.kt index 30365f2577..5cd99c9fbd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/ManagedEc2EksComputeEnvironmentProps.kt @@ -740,7 +740,8 @@ public interface ManagedEc2EksComputeEnvironmentProps : ManagedComputeEnvironmen private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.ManagedEc2EksComputeEnvironmentProps, - ) : CdkObject(cdkObject), ManagedEc2EksComputeEnvironmentProps { + ) : CdkObject(cdkObject), + ManagedEc2EksComputeEnvironmentProps { /** * The allocation strategy to use if not enough instances of the best fitting instance type can * be allocated. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeContainer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeContainer.kt index 610f0702ec..5167ab98af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeContainer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeContainer.kt @@ -116,7 +116,8 @@ public interface MultiNodeContainer { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.MultiNodeContainer, - ) : CdkObject(cdkObject), MultiNodeContainer { + ) : CdkObject(cdkObject), + MultiNodeContainer { /** * The container that this node range will run. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinition.kt index 6b67a6f771..255ece73bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinition.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class MultiNodeJobDefinition( cdkObject: software.amazon.awscdk.services.batch.MultiNodeJobDefinition, -) : Resource(cdkObject), IJobDefinition { +) : Resource(cdkObject), + IJobDefinition { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.batch.MultiNodeJobDefinition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinitionProps.kt index 22f5cd9e6c..75fe7a3352 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/MultiNodeJobDefinitionProps.kt @@ -258,7 +258,8 @@ public interface MultiNodeJobDefinitionProps : JobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.MultiNodeJobDefinitionProps, - ) : CdkObject(cdkObject), MultiNodeJobDefinitionProps { + ) : CdkObject(cdkObject), + MultiNodeJobDefinitionProps { /** * The containers that this multinode job will run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/OrderedComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/OrderedComputeEnvironment.kt index 02945ca7f7..94df7e33e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/OrderedComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/OrderedComputeEnvironment.kt @@ -77,7 +77,8 @@ public interface OrderedComputeEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.OrderedComputeEnvironment, - ) : CdkObject(cdkObject), OrderedComputeEnvironment { + ) : CdkObject(cdkObject), + OrderedComputeEnvironment { /** * The ComputeEnvironment to link to this JobQueue. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretPathVolumeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretPathVolumeOptions.kt index 04deb2caf5..e69d7ccc9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretPathVolumeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretPathVolumeOptions.kt @@ -134,7 +134,8 @@ public interface SecretPathVolumeOptions : EksVolumeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.SecretPathVolumeOptions, - ) : CdkObject(cdkObject), SecretPathVolumeOptions { + ) : CdkObject(cdkObject), + SecretPathVolumeOptions { /** * The path on the container where the volume is mounted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretVersionInfo.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretVersionInfo.kt index a7a66fbd68..49cfea1f58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretVersionInfo.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/SecretVersionInfo.kt @@ -77,7 +77,8 @@ public interface SecretVersionInfo { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.SecretVersionInfo, - ) : CdkObject(cdkObject), SecretVersionInfo { + ) : CdkObject(cdkObject), + SecretVersionInfo { /** * version id of the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Share.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Share.kt index 82e86c75c5..7ea0ad7e14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Share.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Share.kt @@ -126,7 +126,8 @@ public interface Share { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.Share, - ) : CdkObject(cdkObject), Share { + ) : CdkObject(cdkObject), + Share { /** * The identifier of this Share. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Tmpfs.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Tmpfs.kt index 4e7490fb6f..b476fa1ea0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Tmpfs.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Tmpfs.kt @@ -121,7 +121,8 @@ public interface Tmpfs { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.Tmpfs, - ) : CdkObject(cdkObject), Tmpfs { + ) : CdkObject(cdkObject), + Tmpfs { /** * The absolute file path where the tmpfs volume is to be mounted. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Ulimit.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Ulimit.kt index 638df8112f..6d7465288b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Ulimit.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/Ulimit.kt @@ -107,7 +107,8 @@ public interface Ulimit { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.Ulimit, - ) : CdkObject(cdkObject), Ulimit { + ) : CdkObject(cdkObject), + Ulimit { /** * The hard limit for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironment.kt index 3bbb293359..9778aa56ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironment.kt @@ -34,7 +34,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UnmanagedComputeEnvironment( cdkObject: software.amazon.awscdk.services.batch.UnmanagedComputeEnvironment, -) : Resource(cdkObject), IUnmanagedComputeEnvironment, IComputeEnvironment { +) : Resource(cdkObject), + IUnmanagedComputeEnvironment, + IComputeEnvironment { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.batch.UnmanagedComputeEnvironment(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironmentProps.kt index 2364dc477e..2e83cdb3fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/batch/UnmanagedComputeEnvironmentProps.kt @@ -141,7 +141,8 @@ public interface UnmanagedComputeEnvironmentProps : ComputeEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.batch.UnmanagedComputeEnvironmentProps, - ) : CdkObject(cdkObject), UnmanagedComputeEnvironmentProps { + ) : CdkObject(cdkObject), + UnmanagedComputeEnvironmentProps { /** * The name of the ComputeEnvironment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExport.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExport.kt index 792d2987ac..1ae9068034 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExport.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExport.kt @@ -90,7 +90,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExport( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -381,7 +383,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.DataQueryProperty, - ) : CdkObject(cdkObject), DataQueryProperty { + ) : CdkObject(cdkObject), + DataQueryProperty { /** * The query statement. * @@ -508,7 +511,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.DestinationConfigurationsProperty, - ) : CdkObject(cdkObject), DestinationConfigurationsProperty { + ) : CdkObject(cdkObject), + DestinationConfigurationsProperty { /** * An object that describes the destination of the data exports file. * @@ -802,7 +806,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.ExportProperty, - ) : CdkObject(cdkObject), ExportProperty { + ) : CdkObject(cdkObject), + ExportProperty { /** * The data query for this specific data export. * @@ -922,7 +927,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.RefreshCadenceProperty, - ) : CdkObject(cdkObject), RefreshCadenceProperty { + ) : CdkObject(cdkObject), + RefreshCadenceProperty { /** * The frequency that data exports are updated. * @@ -1025,7 +1031,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.ResourceTagProperty, - ) : CdkObject(cdkObject), ResourceTagProperty { + ) : CdkObject(cdkObject), + ResourceTagProperty { /** * The key that's associated with the tag. * @@ -1210,7 +1217,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.S3DestinationProperty, - ) : CdkObject(cdkObject), S3DestinationProperty { + ) : CdkObject(cdkObject), + S3DestinationProperty { /** * The name of the Amazon S3 bucket used as the destination of a data export file. * @@ -1384,7 +1392,8 @@ public open class CfnExport( private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExport.S3OutputConfigurationsProperty, - ) : CdkObject(cdkObject), S3OutputConfigurationsProperty { + ) : CdkObject(cdkObject), + S3OutputConfigurationsProperty { /** * The compression type for the data export. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExportProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExportProps.kt index 60ab1189f3..ce6bec531c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExportProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bcmdataexports/CfnExportProps.kt @@ -151,7 +151,8 @@ public interface CfnExportProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bcmdataexports.CfnExportProps, - ) : CdkObject(cdkObject), CfnExportProps { + ) : CdkObject(cdkObject), + CfnExportProps { /** * The details that are available for an export. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgent.kt index ae27873b63..5dc9633074 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgent.kt @@ -53,6 +53,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .actionGroupName("actionGroupName") * // the properties below are optional * .actionGroupExecutor(ActionGroupExecutorProperty.builder() + * .customControl("customControl") * .lambda("lambda") * .build()) * .actionGroupState("actionGroupState") @@ -64,6 +65,20 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .description("description") + * .functionSchema(FunctionSchemaProperty.builder() + * .functions(List.of(FunctionProperty.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .parameters(Map.of( + * "parametersKey", ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build())) + * .build())) + * .build()) * .parentActionGroupSignature("parentActionGroupSignature") * .skipResourceInUseCheckOnDelete(false) * .build())) @@ -72,6 +87,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .customerEncryptionKeyArn("customerEncryptionKeyArn") * .description("description") * .foundationModel("foundationModel") + * .guardrailConfiguration(GuardrailConfigurationProperty.builder() + * .guardrailIdentifier("guardrailIdentifier") + * .guardrailVersion("guardrailVersion") + * .build()) * .idleSessionTtlInSeconds(123) * .instruction("instruction") * .knowledgeBases(List.of(AgentKnowledgeBaseProperty.builder() @@ -110,7 +129,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAgent( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -294,6 +315,34 @@ public open class CfnAgent( unwrap(this).setFoundationModel(`value`) } + /** + * Details about the guardrail associated with the agent. + */ + public open fun guardrailConfiguration(): Any? = unwrap(this).getGuardrailConfiguration() + + /** + * Details about the guardrail associated with the agent. + */ + public open fun guardrailConfiguration(`value`: IResolvable) { + unwrap(this).setGuardrailConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Details about the guardrail associated with the agent. + */ + public open fun guardrailConfiguration(`value`: GuardrailConfigurationProperty) { + unwrap(this).setGuardrailConfiguration(`value`.let(GuardrailConfigurationProperty.Companion::unwrap)) + } + + /** + * Details about the guardrail associated with the agent. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("04049312d43b17b62d0851c33cd32642ec76160c8c5b6015e9019ca6c2e786e0") + public open + fun guardrailConfiguration(`value`: GuardrailConfigurationProperty.Builder.() -> Unit): Unit = + guardrailConfiguration(GuardrailConfigurationProperty(`value`)) + /** * The number of seconds for which Amazon Bedrock keeps information about a user's conversation * with the agent. @@ -419,19 +468,25 @@ public open class CfnAgent( } /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. */ public open fun testAliasTags(): Any? = unwrap(this).getTestAliasTags() /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. */ public open fun testAliasTags(`value`: IResolvable) { unwrap(this).setTestAliasTags(`value`.let(IResolvable.Companion::unwrap)) } /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. */ public open fun testAliasTags(`value`: Map) { unwrap(this).setTestAliasTags(`value`) @@ -539,6 +594,33 @@ public open class CfnAgent( */ public fun foundationModel(foundationModel: String) + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + public fun guardrailConfiguration(guardrailConfiguration: IResolvable) + + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + public fun guardrailConfiguration(guardrailConfiguration: GuardrailConfigurationProperty) + + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8418c91d52c1bd259d601e910d40b1c6737b53abf42d92d66f60f80fe319930c") + public + fun guardrailConfiguration(guardrailConfiguration: GuardrailConfigurationProperty.Builder.() -> Unit) + /** * The number of seconds for which Amazon Bedrock keeps information about a user's conversation * with the agent. @@ -668,18 +750,32 @@ public open class CfnAgent( public fun tags(tags: Map) /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. */ public fun testAliasTags(testAliasTags: IResolvable) /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. */ public fun testAliasTags(testAliasTags: Map) } @@ -806,6 +902,38 @@ public open class CfnAgent( cdkBuilder.foundationModel(foundationModel) } + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + override fun guardrailConfiguration(guardrailConfiguration: IResolvable) { + cdkBuilder.guardrailConfiguration(guardrailConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + override fun guardrailConfiguration(guardrailConfiguration: GuardrailConfigurationProperty) { + cdkBuilder.guardrailConfiguration(guardrailConfiguration.let(GuardrailConfigurationProperty.Companion::unwrap)) + } + + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8418c91d52c1bd259d601e910d40b1c6737b53abf42d92d66f60f80fe319930c") + override + fun guardrailConfiguration(guardrailConfiguration: GuardrailConfigurationProperty.Builder.() -> Unit): + Unit = guardrailConfiguration(GuardrailConfigurationProperty(guardrailConfiguration)) + /** * The number of seconds for which Amazon Bedrock keeps information about a user's conversation * with the agent. @@ -956,20 +1084,34 @@ public open class CfnAgent( } /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. */ override fun testAliasTags(testAliasTags: IResolvable) { cdkBuilder.testAliasTags(testAliasTags.let(IResolvable.Companion::unwrap)) } /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. */ override fun testAliasTags(testAliasTags: Map) { cdkBuilder.testAliasTags(testAliasTags) @@ -1136,7 +1278,8 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.APISchemaProperty, - ) : CdkObject(cdkObject), APISchemaProperty { + ) : CdkObject(cdkObject), + APISchemaProperty { /** * The JSON or YAML-formatted payload defining the OpenAPI schema for the action group. * @@ -1177,7 +1320,8 @@ public open class CfnAgent( /** * Contains details about the Lambda function containing the business logic that is carried out - * upon invoking the action. + * upon invoking the action or the custom control method for handling the information elicited from + * the user. * * Example: * @@ -1186,6 +1330,7 @@ public open class CfnAgent( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; * ActionGroupExecutorProperty actionGroupExecutorProperty = ActionGroupExecutorProperty.builder() + * .customControl("customControl") * .lambda("lambda") * .build(); * ``` @@ -1193,22 +1338,36 @@ public open class CfnAgent( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html) */ public interface ActionGroupExecutorProperty { + /** + * To return the action group invocation results directly in the `InvokeAgent` response, specify + * `RETURN_CONTROL` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-customcontrol) + */ + public fun customControl(): String? = unwrap(this).getCustomControl() + /** * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is * carried out upon invoking the action. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-lambda) */ - public fun lambda(): String + public fun lambda(): String? = unwrap(this).getLambda() /** * A builder for [ActionGroupExecutorProperty] */ @CdkDslMarker public interface Builder { + /** + * @param customControl To return the action group invocation results directly in the + * `InvokeAgent` response, specify `RETURN_CONTROL` . + */ + public fun customControl(customControl: String) + /** * @param lambda The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action. + * logic that is carried out upon invoking the action. */ public fun lambda(lambda: String) } @@ -1218,9 +1377,17 @@ public open class CfnAgent( software.amazon.awscdk.services.bedrock.CfnAgent.ActionGroupExecutorProperty.Builder = software.amazon.awscdk.services.bedrock.CfnAgent.ActionGroupExecutorProperty.builder() + /** + * @param customControl To return the action group invocation results directly in the + * `InvokeAgent` response, specify `RETURN_CONTROL` . + */ + override fun customControl(customControl: String) { + cdkBuilder.customControl(customControl) + } + /** * @param lambda The Amazon Resource Name (ARN) of the Lambda function containing the business - * logic that is carried out upon invoking the action. + * logic that is carried out upon invoking the action. */ override fun lambda(lambda: String) { cdkBuilder.lambda(lambda) @@ -1233,14 +1400,23 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.ActionGroupExecutorProperty, - ) : CdkObject(cdkObject), ActionGroupExecutorProperty { + ) : CdkObject(cdkObject), + ActionGroupExecutorProperty { + /** + * To return the action group invocation results directly in the `InvokeAgent` response, + * specify `RETURN_CONTROL` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-customcontrol) + */ + override fun customControl(): String? = unwrap(this).getCustomControl() + /** * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is * carried out upon invoking the action. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-actiongroupexecutor.html#cfn-bedrock-agent-actiongroupexecutor-lambda) */ - override fun lambda(): String = unwrap(this).getLambda() + override fun lambda(): String? = unwrap(this).getLambda() } public companion object { @@ -1274,6 +1450,7 @@ public open class CfnAgent( * .actionGroupName("actionGroupName") * // the properties below are optional * .actionGroupExecutor(ActionGroupExecutorProperty.builder() + * .customControl("customControl") * .lambda("lambda") * .build()) * .actionGroupState("actionGroupState") @@ -1285,6 +1462,20 @@ public open class CfnAgent( * .build()) * .build()) * .description("description") + * .functionSchema(FunctionSchemaProperty.builder() + * .functions(List.of(FunctionProperty.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .parameters(Map.of( + * "parametersKey", ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build())) + * .build())) + * .build()) * .parentActionGroupSignature("parentActionGroupSignature") * .skipResourceInUseCheckOnDelete(false) * .build(); @@ -1295,7 +1486,8 @@ public open class CfnAgent( public interface AgentActionGroupProperty { /** * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is - * carried out upon invoking the action. + * carried out upon invoking the action or the custom control method for handling the information + * elicited from the user. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-actiongroupexecutor) */ @@ -1336,6 +1528,15 @@ public open class CfnAgent( */ public fun description(): String? = unwrap(this).getDescription() + /** + * Defines functions that each define parameters that the agent needs to invoke from the user. + * + * Each function represents an action in an action group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-functionschema) + */ + public fun functionSchema(): Any? = unwrap(this).getFunctionSchema() + /** * If this field is set as `AMAZON.UserInput` , the agent can request the user for additional * information when trying to complete a task. The `description` , `apiSchema` , and @@ -1370,19 +1571,22 @@ public open class CfnAgent( public interface Builder { /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ public fun actionGroupExecutor(actionGroupExecutor: IResolvable) /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ public fun actionGroupExecutor(actionGroupExecutor: ActionGroupExecutorProperty) /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bbe9062ac1f596537a9de04683d855a04b2e8cd613ad96c21989601a932af6ab") @@ -1433,6 +1637,29 @@ public open class CfnAgent( */ public fun description(description: String) + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + public fun functionSchema(functionSchema: IResolvable) + + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + public fun functionSchema(functionSchema: FunctionSchemaProperty) + + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8ae6a932602ba614adb804ec413d8870487556f1dcdb132b461d7ab5eee1a9c6") + public fun functionSchema(functionSchema: FunctionSchemaProperty.Builder.() -> Unit) + /** * @param parentActionGroupSignature If this field is set as `AMAZON.UserInput` , the agent * can request the user for additional information when trying to complete a task. The @@ -1468,7 +1695,8 @@ public open class CfnAgent( /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ override fun actionGroupExecutor(actionGroupExecutor: IResolvable) { cdkBuilder.actionGroupExecutor(actionGroupExecutor.let(IResolvable.Companion::unwrap)) @@ -1476,7 +1704,8 @@ public open class CfnAgent( /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ override fun actionGroupExecutor(actionGroupExecutor: ActionGroupExecutorProperty) { cdkBuilder.actionGroupExecutor(actionGroupExecutor.let(ActionGroupExecutorProperty.Companion::unwrap)) @@ -1484,7 +1713,8 @@ public open class CfnAgent( /** * @param actionGroupExecutor The Amazon Resource Name (ARN) of the Lambda function containing - * the business logic that is carried out upon invoking the action. + * the business logic that is carried out upon invoking the action or the custom control method + * for handling the information elicited from the user. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bbe9062ac1f596537a9de04683d855a04b2e8cd613ad96c21989601a932af6ab") @@ -1547,6 +1777,34 @@ public open class CfnAgent( cdkBuilder.description(description) } + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + override fun functionSchema(functionSchema: IResolvable) { + cdkBuilder.functionSchema(functionSchema.let(IResolvable.Companion::unwrap)) + } + + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + override fun functionSchema(functionSchema: FunctionSchemaProperty) { + cdkBuilder.functionSchema(functionSchema.let(FunctionSchemaProperty.Companion::unwrap)) + } + + /** + * @param functionSchema Defines functions that each define parameters that the agent needs to + * invoke from the user. + * Each function represents an action in an action group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8ae6a932602ba614adb804ec413d8870487556f1dcdb132b461d7ab5eee1a9c6") + override fun functionSchema(functionSchema: FunctionSchemaProperty.Builder.() -> Unit): Unit = + functionSchema(FunctionSchemaProperty(functionSchema)) + /** * @param parentActionGroupSignature If this field is set as `AMAZON.UserInput` , the agent * can request the user for additional information when trying to complete a task. The @@ -1586,10 +1844,12 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.AgentActionGroupProperty, - ) : CdkObject(cdkObject), AgentActionGroupProperty { + ) : CdkObject(cdkObject), + AgentActionGroupProperty { /** * The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is - * carried out upon invoking the action. + * carried out upon invoking the action or the custom control method for handling the information + * elicited from the user. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-actiongroupexecutor) */ @@ -1630,6 +1890,15 @@ public open class CfnAgent( */ override fun description(): String? = unwrap(this).getDescription() + /** + * Defines functions that each define parameters that the agent needs to invoke from the user. + * + * Each function represents an action in an action group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-agentactiongroup.html#cfn-bedrock-agent-agentactiongroup-functionschema) + */ + override fun functionSchema(): Any? = unwrap(this).getFunctionSchema() + /** * If this field is set as `AMAZON.UserInput` , the agent can request the user for additional * information when trying to complete a task. The `description` , `apiSchema` , and @@ -1784,7 +2053,8 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.AgentKnowledgeBaseProperty, - ) : CdkObject(cdkObject), AgentKnowledgeBaseProperty { + ) : CdkObject(cdkObject), + AgentKnowledgeBaseProperty { /** * The description of the association between the agent and the knowledge base. * @@ -1828,13 +2098,22 @@ public open class CfnAgent( } /** - * Specifications about the inference parameters that were provided alongside the prompt. + * Defines parameters that the agent needs to invoke from the user to complete the function. * - * These are specified in the - * [PromptOverrideConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) - * object that was set when the agent was created or updated. For more information, see [Inference - * parameters for foundation - * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * Corresponds to an action in an action group. + * + * This data type is used in the following API operations: + * + * * [CreateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax) + * * [CreateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax) + * * [UpdateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax) + * * [UpdateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax) + * * [GetAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax) * * Example: * @@ -1842,157 +2121,579 @@ public open class CfnAgent( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * InferenceConfigurationProperty inferenceConfigurationProperty = - * InferenceConfigurationProperty.builder() - * .maximumLength(123) - * .stopSequences(List.of("stopSequences")) - * .temperature(123) - * .topK(123) - * .topP(123) + * FunctionProperty functionProperty = FunctionProperty.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .parameters(Map.of( + * "parametersKey", ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build())) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html) */ - public interface InferenceConfigurationProperty { - /** - * The maximum number of tokens allowed in the generated response. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-maximumlength) - */ - public fun maximumLength(): Number? = unwrap(this).getMaximumLength() - - /** - * A list of stop sequences. - * - * A stop sequence is a sequence of characters that causes the model to stop generating the - * response. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-stopsequences) - */ - public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() - + public interface FunctionProperty { /** - * The likelihood of the model selecting higher-probability options while generating a response. - * - * A lower value makes the model more likely to choose higher-probability options, while a - * higher value makes the model more likely to choose lower-probability options. + * A description of the function and its purpose. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-temperature) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-description) */ - public fun temperature(): Number? = unwrap(this).getTemperature() + public fun description(): String? = unwrap(this).getDescription() /** - * While generating a response, the model determines the probability of the following token at - * each point of generation. - * - * The value that you set for `topK` is the number of most-likely candidates from which the - * model chooses the next token in the sequence. For example, if you set `topK` to 50, the model - * selects the next token from among the top 50 most likely choices. + * A name for the function. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-topk) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-name) */ - public fun topK(): Number? = unwrap(this).getTopK() + public fun name(): String /** - * While generating a response, the model determines the probability of the following token at - * each point of generation. + * The parameters that the agent elicits from the user to fulfill the function. * - * The value that you set for `Top P` determines the number of most-likely candidates from which - * the model chooses the next token in the sequence. For example, if you set `topP` to 80, the - * model only selects the next token from the top 80% of the probability distribution of next - * tokens. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-topp) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-parameters) */ - public fun topP(): Number? = unwrap(this).getTopP() + public fun parameters(): Any? = unwrap(this).getParameters() /** - * A builder for [InferenceConfigurationProperty] + * A builder for [FunctionProperty] */ @CdkDslMarker public interface Builder { /** - * @param maximumLength The maximum number of tokens allowed in the generated response. - */ - public fun maximumLength(maximumLength: Number) - - /** - * @param stopSequences A list of stop sequences. - * A stop sequence is a sequence of characters that causes the model to stop generating the - * response. - */ - public fun stopSequences(stopSequences: List) - - /** - * @param stopSequences A list of stop sequences. - * A stop sequence is a sequence of characters that causes the model to stop generating the - * response. + * @param description A description of the function and its purpose. */ - public fun stopSequences(vararg stopSequences: String) + public fun description(description: String) /** - * @param temperature The likelihood of the model selecting higher-probability options while - * generating a response. - * A lower value makes the model more likely to choose higher-probability options, while a - * higher value makes the model more likely to choose lower-probability options. + * @param name A name for the function. */ - public fun temperature(temperature: Number) + public fun name(name: String) /** - * @param topK While generating a response, the model determines the probability of the - * following token at each point of generation. - * The value that you set for `topK` is the number of most-likely candidates from which the - * model chooses the next token in the sequence. For example, if you set `topK` to 50, the model - * selects the next token from among the top 50 most likely choices. + * @param parameters The parameters that the agent elicits from the user to fulfill the + * function. */ - public fun topK(topK: Number) + public fun parameters(parameters: IResolvable) /** - * @param topP While generating a response, the model determines the probability of the - * following token at each point of generation. - * The value that you set for `Top P` determines the number of most-likely candidates from - * which the model chooses the next token in the sequence. For example, if you set `topP` to 80, - * the model only selects the next token from the top 80% of the probability distribution of next - * tokens. + * @param parameters The parameters that the agent elicits from the user to fulfill the + * function. */ - public fun topP(topP: Number) + public fun parameters(parameters: Map) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnAgent.InferenceConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnAgent.InferenceConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty.builder() /** - * @param maximumLength The maximum number of tokens allowed in the generated response. + * @param description A description of the function and its purpose. */ - override fun maximumLength(maximumLength: Number) { - cdkBuilder.maximumLength(maximumLength) + override fun description(description: String) { + cdkBuilder.description(description) } /** - * @param stopSequences A list of stop sequences. - * A stop sequence is a sequence of characters that causes the model to stop generating the - * response. + * @param name A name for the function. */ - override fun stopSequences(stopSequences: List) { - cdkBuilder.stopSequences(stopSequences) + override fun name(name: String) { + cdkBuilder.name(name) } /** - * @param stopSequences A list of stop sequences. - * A stop sequence is a sequence of characters that causes the model to stop generating the - * response. + * @param parameters The parameters that the agent elicits from the user to fulfill the + * function. */ - override fun stopSequences(vararg stopSequences: String): Unit = - stopSequences(stopSequences.toList()) + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } /** - * @param temperature The likelihood of the model selecting higher-probability options while - * generating a response. + * @param parameters The parameters that the agent elicits from the user to fulfill the + * function. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty, + ) : CdkObject(cdkObject), + FunctionProperty { + /** + * A description of the function and its purpose. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A name for the function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The parameters that the agent elicits from the user to fulfill the function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-parameters) + */ + override fun parameters(): Any? = unwrap(this).getParameters() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FunctionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty): + FunctionProperty = CdkObjectWrappers.wrap(cdkObject) as? FunctionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FunctionProperty): + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty + } + } + + /** + * Defines functions that each define parameters that the agent needs to invoke from the user. + * + * Each function represents an action in an action group. + * + * This data type is used in the following API operations: + * + * * [CreateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax) + * * [CreateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax) + * * [UpdateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax) + * * [UpdateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax) + * * [GetAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FunctionSchemaProperty functionSchemaProperty = FunctionSchemaProperty.builder() + * .functions(List.of(FunctionProperty.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .parameters(Map.of( + * "parametersKey", ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build())) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html) + */ + public interface FunctionSchemaProperty { + /** + * A list of functions that each define an action in the action group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html#cfn-bedrock-agent-functionschema-functions) + */ + public fun functions(): Any + + /** + * A builder for [FunctionSchemaProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param functions A list of functions that each define an action in the action group. + */ + public fun functions(functions: IResolvable) + + /** + * @param functions A list of functions that each define an action in the action group. + */ + public fun functions(functions: List) + + /** + * @param functions A list of functions that each define an action in the action group. + */ + public fun functions(vararg functions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty.builder() + + /** + * @param functions A list of functions that each define an action in the action group. + */ + override fun functions(functions: IResolvable) { + cdkBuilder.functions(functions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param functions A list of functions that each define an action in the action group. + */ + override fun functions(functions: List) { + cdkBuilder.functions(functions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param functions A list of functions that each define an action in the action group. + */ + override fun functions(vararg functions: Any): Unit = functions(functions.toList()) + + public fun build(): software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty, + ) : CdkObject(cdkObject), + FunctionSchemaProperty { + /** + * A list of functions that each define an action in the action group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html#cfn-bedrock-agent-functionschema-functions) + */ + override fun functions(): Any = unwrap(this).getFunctions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FunctionSchemaProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty): + FunctionSchemaProperty = CdkObjectWrappers.wrap(cdkObject) as? FunctionSchemaProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FunctionSchemaProperty): + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnAgent.FunctionSchemaProperty + } + } + + /** + * Configuration information for a guardrail that you use with the + * [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html) + * operation. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * GuardrailConfigurationProperty guardrailConfigurationProperty = + * GuardrailConfigurationProperty.builder() + * .guardrailIdentifier("guardrailIdentifier") + * .guardrailVersion("guardrailVersion") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html) + */ + public interface GuardrailConfigurationProperty { + /** + * The identifier for the guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailidentifier) + */ + public fun guardrailIdentifier(): String? = unwrap(this).getGuardrailIdentifier() + + /** + * The version of the guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailversion) + */ + public fun guardrailVersion(): String? = unwrap(this).getGuardrailVersion() + + /** + * A builder for [GuardrailConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param guardrailIdentifier The identifier for the guardrail. + */ + public fun guardrailIdentifier(guardrailIdentifier: String) + + /** + * @param guardrailVersion The version of the guardrail. + */ + public fun guardrailVersion(guardrailVersion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty.builder() + + /** + * @param guardrailIdentifier The identifier for the guardrail. + */ + override fun guardrailIdentifier(guardrailIdentifier: String) { + cdkBuilder.guardrailIdentifier(guardrailIdentifier) + } + + /** + * @param guardrailVersion The version of the guardrail. + */ + override fun guardrailVersion(guardrailVersion: String) { + cdkBuilder.guardrailVersion(guardrailVersion) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty, + ) : CdkObject(cdkObject), + GuardrailConfigurationProperty { + /** + * The identifier for the guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailidentifier) + */ + override fun guardrailIdentifier(): String? = unwrap(this).getGuardrailIdentifier() + + /** + * The version of the guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailversion) + */ + override fun guardrailVersion(): String? = unwrap(this).getGuardrailVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): GuardrailConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty): + GuardrailConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + GuardrailConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: GuardrailConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnAgent.GuardrailConfigurationProperty + } + } + + /** + * Base inference parameters to pass to a model in a call to + * [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html) or + * [ConverseStream](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html) + * . For more information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * + * If you need to pass additional parameters that the model supports, use the + * `additionalModelRequestFields` request field in the call to `Converse` or `ConverseStream` . For + * more information, see [Model + * parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * InferenceConfigurationProperty inferenceConfigurationProperty = + * InferenceConfigurationProperty.builder() + * .maximumLength(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html) + */ + public interface InferenceConfigurationProperty { + /** + * The maximum number of tokens allowed in the generated response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-maximumlength) + */ + public fun maximumLength(): Number? = unwrap(this).getMaximumLength() + + /** + * A list of stop sequences. + * + * A stop sequence is a sequence of characters that causes the model to stop generating the + * response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-stopsequences) + */ + public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * The likelihood of the model selecting higher-probability options while generating a response. + * + * A lower value makes the model more likely to choose higher-probability options, while a + * higher value makes the model more likely to choose lower-probability options. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-temperature) + */ + public fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * While generating a response, the model determines the probability of the following token at + * each point of generation. + * + * The value that you set for `topK` is the number of most-likely candidates from which the + * model chooses the next token in the sequence. For example, if you set `topK` to 50, the model + * selects the next token from among the top 50 most likely choices. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-topk) + */ + public fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * For example, if you choose a value of 0.8 for `topP` , the model selects from the top 80% of + * the probability distribution of tokens that could be next in the sequence. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-topp) + */ + public fun topP(): Number? = unwrap(this).getTopP() + + /** + * A builder for [InferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maximumLength The maximum number of tokens allowed in the generated response. + */ + public fun maximumLength(maximumLength: Number) + + /** + * @param stopSequences A list of stop sequences. + * A stop sequence is a sequence of characters that causes the model to stop generating the + * response. + */ + public fun stopSequences(stopSequences: List) + + /** + * @param stopSequences A list of stop sequences. + * A stop sequence is a sequence of characters that causes the model to stop generating the + * response. + */ + public fun stopSequences(vararg stopSequences: String) + + /** + * @param temperature The likelihood of the model selecting higher-probability options while + * generating a response. + * A lower value makes the model more likely to choose higher-probability options, while a + * higher value makes the model more likely to choose lower-probability options. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + */ + public fun temperature(temperature: Number) + + /** + * @param topK While generating a response, the model determines the probability of the + * following token at each point of generation. + * The value that you set for `topK` is the number of most-likely candidates from which the + * model chooses the next token in the sequence. For example, if you set `topK` to 50, the model + * selects the next token from among the top 50 most likely choices. + */ + public fun topK(topK: Number) + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + * For example, if you choose a value of 0.8 for `topP` , the model selects from the top 80% + * of the probability distribution of tokens that could be next in the sequence. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + */ + public fun topP(topP: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnAgent.InferenceConfigurationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnAgent.InferenceConfigurationProperty.builder() + + /** + * @param maximumLength The maximum number of tokens allowed in the generated response. + */ + override fun maximumLength(maximumLength: Number) { + cdkBuilder.maximumLength(maximumLength) + } + + /** + * @param stopSequences A list of stop sequences. + * A stop sequence is a sequence of characters that causes the model to stop generating the + * response. + */ + override fun stopSequences(stopSequences: List) { + cdkBuilder.stopSequences(stopSequences) + } + + /** + * @param stopSequences A list of stop sequences. + * A stop sequence is a sequence of characters that causes the model to stop generating the + * response. + */ + override fun stopSequences(vararg stopSequences: String): Unit = + stopSequences(stopSequences.toList()) + + /** + * @param temperature The likelihood of the model selecting higher-probability options while + * generating a response. * A lower value makes the model more likely to choose higher-probability options, while a * higher value makes the model more likely to choose lower-probability options. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . */ override fun temperature(temperature: Number) { cdkBuilder.temperature(temperature) @@ -2010,12 +2711,14 @@ public open class CfnAgent( } /** - * @param topP While generating a response, the model determines the probability of the - * following token at each point of generation. - * The value that you set for `Top P` determines the number of most-likely candidates from - * which the model chooses the next token in the sequence. For example, if you set `topP` to 80, - * the model only selects the next token from the top 80% of the probability distribution of next - * tokens. + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + * For example, if you choose a value of 0.8 for `topP` , the model selects from the top 80% + * of the probability distribution of tokens that could be next in the sequence. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . */ override fun topP(topP: Number) { cdkBuilder.topP(topP) @@ -2028,7 +2731,8 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.InferenceConfigurationProperty, - ) : CdkObject(cdkObject), InferenceConfigurationProperty { + ) : CdkObject(cdkObject), + InferenceConfigurationProperty { /** * The maximum number of tokens allowed in the generated response. * @@ -2053,6 +2757,10 @@ public open class CfnAgent( * A lower value makes the model more likely to choose higher-probability options, while a * higher value makes the model more likely to choose lower-probability options. * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-temperature) */ override fun temperature(): Number? = unwrap(this).getTemperature() @@ -2070,13 +2778,14 @@ public open class CfnAgent( override fun topK(): Number? = unwrap(this).getTopK() /** - * While generating a response, the model determines the probability of the following token at - * each point of generation. + * The percentage of most-likely candidates that the model considers for the next token. * - * The value that you set for `Top P` determines the number of most-likely candidates from - * which the model chooses the next token in the sequence. For example, if you set `topP` to 80, - * the model only selects the next token from the top 80% of the probability distribution of next - * tokens. + * For example, if you choose a value of 0.8 for `topP` , the model selects from the top 80% + * of the probability distribution of tokens that could be next in the sequence. + * + * The default value is the default value for the model that you are using. For more + * information, see [Inference parameters for foundation + * models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html#cfn-bedrock-agent-inferenceconfiguration-topp) */ @@ -2101,6 +2810,179 @@ public open class CfnAgent( } } + /** + * Contains details about a parameter in a function for an action group. + * + * This data type is used in the following API operations: + * + * * [CreateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax) + * * [CreateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax) + * * [UpdateAgentActionGroup + * request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax) + * * [UpdateAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax) + * * [GetAgentActionGroup + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ParameterDetailProperty parameterDetailProperty = ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html) + */ + public interface ParameterDetailProperty { + /** + * A description of the parameter. + * + * Helps the foundation model determine how to elicit the parameters from the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * Whether the parameter is required for the agent to complete the function for action group + * invocation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-required) + */ + public fun required(): Any? = unwrap(this).getRequired() + + /** + * The data type of the parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-type) + */ + public fun type(): String + + /** + * A builder for [ParameterDetailProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A description of the parameter. + * Helps the foundation model determine how to elicit the parameters from the user. + */ + public fun description(description: String) + + /** + * @param required Whether the parameter is required for the agent to complete the function + * for action group invocation. + */ + public fun required(required: Boolean) + + /** + * @param required Whether the parameter is required for the agent to complete the function + * for action group invocation. + */ + public fun required(required: IResolvable) + + /** + * @param type The data type of the parameter. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty.builder() + + /** + * @param description A description of the parameter. + * Helps the foundation model determine how to elicit the parameters from the user. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param required Whether the parameter is required for the agent to complete the function + * for action group invocation. + */ + override fun required(required: Boolean) { + cdkBuilder.required(required) + } + + /** + * @param required Whether the parameter is required for the agent to complete the function + * for action group invocation. + */ + override fun required(required: IResolvable) { + cdkBuilder.required(required.let(IResolvable.Companion::unwrap)) + } + + /** + * @param type The data type of the parameter. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty, + ) : CdkObject(cdkObject), + ParameterDetailProperty { + /** + * A description of the parameter. + * + * Helps the foundation model determine how to elicit the parameters from the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * Whether the parameter is required for the agent to complete the function for action group + * invocation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-required) + */ + override fun required(): Any? = unwrap(this).getRequired() + + /** + * The data type of the parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html#cfn-bedrock-agent-parameterdetail-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParameterDetailProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty): + ParameterDetailProperty = CdkObjectWrappers.wrap(cdkObject) as? ParameterDetailProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParameterDetailProperty): + software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnAgent.ParameterDetailProperty + } + } + /** * Contains configurations to override a prompt template in one part of an agent sequence. * @@ -2137,7 +3019,10 @@ public open class CfnAgent( * * You can use placeholder variables in the base prompt template to customize the prompt. For * more information, see [Prompt template placeholder - * variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) . + * variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) . For + * more information, see [Configure the prompt + * templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptconfiguration.html#cfn-bedrock-agent-promptconfiguration-baseprompttemplate) */ @@ -2209,6 +3094,9 @@ public open class CfnAgent( * You can use placeholder variables in the base prompt template to customize the prompt. For * more information, see [Prompt template placeholder * variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) . + * For more information, see [Configure the prompt + * templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html) + * . */ public fun basePromptTemplate(basePromptTemplate: String) @@ -2288,6 +3176,9 @@ public open class CfnAgent( * You can use placeholder variables in the base prompt template to customize the prompt. For * more information, see [Prompt template placeholder * variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) . + * For more information, see [Configure the prompt + * templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html) + * . */ override fun basePromptTemplate(basePromptTemplate: String) { cdkBuilder.basePromptTemplate(basePromptTemplate) @@ -2377,13 +3268,17 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.PromptConfigurationProperty, - ) : CdkObject(cdkObject), PromptConfigurationProperty { + ) : CdkObject(cdkObject), + PromptConfigurationProperty { /** * Defines the prompt template with which to replace the default prompt template. * * You can use placeholder variables in the base prompt template to customize the prompt. For * more information, see [Prompt template placeholder * variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) . + * For more information, see [Configure the prompt + * templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptconfiguration.html#cfn-bedrock-agent-promptconfiguration-baseprompttemplate) */ @@ -2505,7 +3400,9 @@ public open class CfnAgent( * of the agent sequence. * * If you specify this field, at least one of the `promptConfigurations` must contain a - * `parserMode` value that is set to `OVERRIDDEN` . + * `parserMode` value that is set to `OVERRIDDEN` . For more information, see [Parser Lambda + * function in Amazon Bedrock + * Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptoverrideconfiguration.html#cfn-bedrock-agent-promptoverrideconfiguration-overridelambda) */ @@ -2530,7 +3427,9 @@ public open class CfnAgent( * @param overrideLambda The ARN of the Lambda function to use when parsing the raw foundation * model output in parts of the agent sequence. * If you specify this field, at least one of the `promptConfigurations` must contain a - * `parserMode` value that is set to `OVERRIDDEN` . + * `parserMode` value that is set to `OVERRIDDEN` . For more information, see [Parser Lambda + * function in Amazon Bedrock + * Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html) . */ public fun overrideLambda(overrideLambda: String) @@ -2569,7 +3468,9 @@ public open class CfnAgent( * @param overrideLambda The ARN of the Lambda function to use when parsing the raw foundation * model output in parts of the agent sequence. * If you specify this field, at least one of the `promptConfigurations` must contain a - * `parserMode` value that is set to `OVERRIDDEN` . + * `parserMode` value that is set to `OVERRIDDEN` . For more information, see [Parser Lambda + * function in Amazon Bedrock + * Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html) . */ override fun overrideLambda(overrideLambda: String) { cdkBuilder.overrideLambda(overrideLambda) @@ -2611,13 +3512,16 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.PromptOverrideConfigurationProperty, - ) : CdkObject(cdkObject), PromptOverrideConfigurationProperty { + ) : CdkObject(cdkObject), + PromptOverrideConfigurationProperty { /** * The ARN of the Lambda function to use when parsing the raw foundation model output in parts * of the agent sequence. * * If you specify this field, at least one of the `promptConfigurations` must contain a - * `parserMode` value that is set to `OVERRIDDEN` . + * `parserMode` value that is set to `OVERRIDDEN` . For more information, see [Parser Lambda + * function in Amazon Bedrock + * Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-promptoverrideconfiguration.html#cfn-bedrock-agent-promptoverrideconfiguration-overridelambda) */ @@ -2654,7 +3558,7 @@ public open class CfnAgent( } /** - * Contains information about the S3 object containing the resource. + * The identifier information for an Amazon S3 bucket. * * Example: * @@ -2679,7 +3583,7 @@ public open class CfnAgent( public fun s3BucketName(): String? = unwrap(this).getS3BucketName() /** - * The S3 object key containing the resource. + * The S3 object key for the S3 resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-s3identifier.html#cfn-bedrock-agent-s3identifier-s3objectkey) */ @@ -2696,7 +3600,7 @@ public open class CfnAgent( public fun s3BucketName(s3BucketName: String) /** - * @param s3ObjectKey The S3 object key containing the resource. + * @param s3ObjectKey The S3 object key for the S3 resource. */ public fun s3ObjectKey(s3ObjectKey: String) } @@ -2714,7 +3618,7 @@ public open class CfnAgent( } /** - * @param s3ObjectKey The S3 object key containing the resource. + * @param s3ObjectKey The S3 object key for the S3 resource. */ override fun s3ObjectKey(s3ObjectKey: String) { cdkBuilder.s3ObjectKey(s3ObjectKey) @@ -2726,7 +3630,8 @@ public open class CfnAgent( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgent.S3IdentifierProperty, - ) : CdkObject(cdkObject), S3IdentifierProperty { + ) : CdkObject(cdkObject), + S3IdentifierProperty { /** * The name of the S3 bucket. * @@ -2735,7 +3640,7 @@ public open class CfnAgent( override fun s3BucketName(): String? = unwrap(this).getS3BucketName() /** - * The S3 object key containing the resource. + * The S3 object key for the S3 resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-s3identifier.html#cfn-bedrock-agent-s3identifier-s3objectkey) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAlias.kt index 4591b94d96..c5e8325f15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAlias.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAgentAlias( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgentAlias, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -510,7 +512,8 @@ public open class CfnAgentAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgentAlias.AgentAliasHistoryEventProperty, - ) : CdkObject(cdkObject), AgentAliasHistoryEventProperty { + ) : CdkObject(cdkObject), + AgentAliasHistoryEventProperty { /** * The date that the alias stopped being associated to the version in the * `routingConfiguration` object. @@ -609,7 +612,8 @@ public open class CfnAgentAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgentAlias.AgentAliasRoutingConfigurationListItemProperty, - ) : CdkObject(cdkObject), AgentAliasRoutingConfigurationListItemProperty { + ) : CdkObject(cdkObject), + AgentAliasRoutingConfigurationListItemProperty { /** * The version of the agent with which the alias is associated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAliasProps.kt index 4085e2d260..348ededcce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentAliasProps.kt @@ -187,7 +187,8 @@ public interface CfnAgentAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgentAliasProps, - ) : CdkObject(cdkObject), CfnAgentAliasProps { + ) : CdkObject(cdkObject), + CfnAgentAliasProps { /** * The name of the alias of the agent. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentProps.kt index bd3aa6f1b5..5884d599c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnAgentProps.kt @@ -31,6 +31,7 @@ import kotlin.jvm.JvmName * .actionGroupName("actionGroupName") * // the properties below are optional * .actionGroupExecutor(ActionGroupExecutorProperty.builder() + * .customControl("customControl") * .lambda("lambda") * .build()) * .actionGroupState("actionGroupState") @@ -42,6 +43,20 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .description("description") + * .functionSchema(FunctionSchemaProperty.builder() + * .functions(List.of(FunctionProperty.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .parameters(Map.of( + * "parametersKey", ParameterDetailProperty.builder() + * .type("type") + * // the properties below are optional + * .description("description") + * .required(false) + * .build())) + * .build())) + * .build()) * .parentActionGroupSignature("parentActionGroupSignature") * .skipResourceInUseCheckOnDelete(false) * .build())) @@ -50,6 +65,10 @@ import kotlin.jvm.JvmName * .customerEncryptionKeyArn("customerEncryptionKeyArn") * .description("description") * .foundationModel("foundationModel") + * .guardrailConfiguration(GuardrailConfigurationProperty.builder() + * .guardrailIdentifier("guardrailIdentifier") + * .guardrailVersion("guardrailVersion") + * .build()) * .idleSessionTtlInSeconds(123) * .instruction("instruction") * .knowledgeBases(List.of(AgentKnowledgeBaseProperty.builder() @@ -143,6 +162,13 @@ public interface CfnAgentProps { */ public fun foundationModel(): String? = unwrap(this).getFoundationModel() + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + */ + public fun guardrailConfiguration(): Any? = unwrap(this).getGuardrailConfiguration() + /** * The number of seconds for which Amazon Bedrock keeps information about a user's conversation * with the agent. @@ -205,7 +231,13 @@ public interface CfnAgentProps { public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) */ @@ -274,6 +306,25 @@ public interface CfnAgentProps { */ public fun foundationModel(foundationModel: String) + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + public fun guardrailConfiguration(guardrailConfiguration: IResolvable) + + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + public + fun guardrailConfiguration(guardrailConfiguration: CfnAgent.GuardrailConfigurationProperty) + + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c95eb6d7cda004d60aac97fabd9b6792cafa76c86fb90a4d00c0f0f85d31cb54") + public + fun guardrailConfiguration(guardrailConfiguration: CfnAgent.GuardrailConfigurationProperty.Builder.() -> Unit) + /** * @param idleSessionTtlInSeconds The number of seconds for which Amazon Bedrock keeps * information about a user's conversation with the agent. @@ -357,12 +408,22 @@ public interface CfnAgentProps { public fun tags(tags: Map) /** - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) */ public fun testAliasTags(testAliasTags: IResolvable) /** - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) */ public fun testAliasTags(testAliasTags: Map) } @@ -447,6 +508,31 @@ public interface CfnAgentProps { cdkBuilder.foundationModel(foundationModel) } + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + override fun guardrailConfiguration(guardrailConfiguration: IResolvable) { + cdkBuilder.guardrailConfiguration(guardrailConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + override + fun guardrailConfiguration(guardrailConfiguration: CfnAgent.GuardrailConfigurationProperty) { + cdkBuilder.guardrailConfiguration(guardrailConfiguration.let(CfnAgent.GuardrailConfigurationProperty.Companion::unwrap)) + } + + /** + * @param guardrailConfiguration Details about the guardrail associated with the agent. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c95eb6d7cda004d60aac97fabd9b6792cafa76c86fb90a4d00c0f0f85d31cb54") + override + fun guardrailConfiguration(guardrailConfiguration: CfnAgent.GuardrailConfigurationProperty.Builder.() -> Unit): + Unit = + guardrailConfiguration(CfnAgent.GuardrailConfigurationProperty(guardrailConfiguration)) + /** * @param idleSessionTtlInSeconds The number of seconds for which Amazon Bedrock keeps * information about a user's conversation with the agent. @@ -551,14 +637,24 @@ public interface CfnAgentProps { } /** - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) */ override fun testAliasTags(testAliasTags: IResolvable) { cdkBuilder.testAliasTags(testAliasTags.let(IResolvable.Companion::unwrap)) } /** - * @param testAliasTags A map of tag keys and values. + * @param testAliasTags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) */ override fun testAliasTags(testAliasTags: Map) { cdkBuilder.testAliasTags(testAliasTags) @@ -569,7 +665,8 @@ public interface CfnAgentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnAgentProps, - ) : CdkObject(cdkObject), CfnAgentProps { + ) : CdkObject(cdkObject), + CfnAgentProps { /** * The action groups that belong to an agent. * @@ -626,6 +723,13 @@ public interface CfnAgentProps { */ override fun foundationModel(): String? = unwrap(this).getFoundationModel() + /** + * Details about the guardrail associated with the agent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration) + */ + override fun guardrailConfiguration(): Any? = unwrap(this).getGuardrailConfiguration() + /** * The number of seconds for which Amazon Bedrock keeps information about a user's conversation * with the agent. @@ -688,7 +792,13 @@ public interface CfnAgentProps { override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() /** - * A map of tag keys and values. + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-testaliastags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSource.kt index 55996e6306..5b1934ffba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSource.kt @@ -42,13 +42,103 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.bedrock.*; * CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource") * .dataSourceConfiguration(DataSourceConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .confluenceConfiguration(ConfluenceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(ConfluenceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostType("hostType") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(ConfluenceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) * .s3Configuration(S3DataSourceConfigurationProperty.builder() * .bucketArn("bucketArn") * // the properties below are optional * .bucketOwnerAccountId("bucketOwnerAccountId") * .inclusionPrefixes(List.of("inclusionPrefixes")) * .build()) + * .salesforceConfiguration(SalesforceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SalesforceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SalesforceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .sharePointConfiguration(SharePointDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SharePointSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .domain("domain") + * .hostType("hostType") + * .siteUrls(List.of("siteUrls")) + * // the properties below are optional + * .tenantId("tenantId") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SharePointCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .webConfiguration(WebDataSourceConfigurationProperty.builder() + * .sourceConfiguration(WebSourceConfigurationProperty.builder() + * .urlConfiguration(UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build()) + * .build()) + * // the properties below are optional + * .crawlerConfiguration(WebCrawlerConfigurationProperty.builder() + * .crawlerLimits(WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build()) + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .scope("scope") + * .build()) + * .build()) * .build()) * .knowledgeBaseId("knowledgeBaseId") * .name("name") @@ -66,6 +156,43 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .maxTokens(123) * .overlapPercentage(123) * .build()) + * .hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder() + * .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build())) + * .overlapTokens(123) + * .build()) + * .semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder() + * .breakpointPercentileThreshold(123) + * .bufferSize(123) + * .maxTokens(123) + * .build()) + * .build()) + * .customTransformationConfiguration(CustomTransformationConfigurationProperty.builder() + * .intermediateStorage(IntermediateStorageProperty.builder() + * .s3Location(S3LocationProperty.builder() + * .uri("uri") + * .build()) + * .build()) + * .transformations(List.of(TransformationProperty.builder() + * .stepToApply("stepToApply") + * .transformationFunction(TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .build()) + * .build())) + * .build()) + * .parsingConfiguration(ParsingConfigurationProperty.builder() + * .parsingStrategy("parsingStrategy") + * // the properties below are optional + * .bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder() + * .modelArn("modelArn") + * // the properties below are optional + * .parsingPrompt(ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build()) + * .build()) * .build()) * .build()) * .build(); @@ -75,7 +202,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -122,38 +250,38 @@ public open class CfnDataSource( public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. */ public open fun dataDeletionPolicy(): String? = unwrap(this).getDataDeletionPolicy() /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. */ public open fun dataDeletionPolicy(`value`: String) { unwrap(this).setDataDeletionPolicy(`value`) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. */ public open fun dataSourceConfiguration(): Any = unwrap(this).getDataSourceConfiguration() /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. */ public open fun dataSourceConfiguration(`value`: IResolvable) { unwrap(this).setDataSourceConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. */ public open fun dataSourceConfiguration(`value`: DataSourceConfigurationProperty) { unwrap(this).setDataSourceConfiguration(`value`.let(DataSourceConfigurationProperty.Companion::unwrap)) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("450511e416fa4de3cf65f957ddfb66669cb9320e233b58185f6c507112c24632") @@ -271,34 +399,34 @@ public open class CfnDataSource( @CdkDslMarker public interface Builder { /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy) - * @param dataDeletionPolicy The data deletion policy for a data source. + * @param dataDeletionPolicy The data deletion policy for the data source. */ public fun dataDeletionPolicy(dataDeletionPolicy: String) /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ public fun dataSourceConfiguration(dataSourceConfiguration: IResolvable) /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ public fun dataSourceConfiguration(dataSourceConfiguration: DataSourceConfigurationProperty) /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("91e233c010d47768c60bfdc0dba1f7f3220eeb3e31f346e31ef4d80aa4d9984b") @@ -401,40 +529,40 @@ public open class CfnDataSource( software.amazon.awscdk.services.bedrock.CfnDataSource.Builder.create(scope, id) /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy) - * @param dataDeletionPolicy The data deletion policy for a data source. + * @param dataDeletionPolicy The data deletion policy for the data source. */ override fun dataDeletionPolicy(dataDeletionPolicy: String) { cdkBuilder.dataDeletionPolicy(dataDeletionPolicy) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ override fun dataSourceConfiguration(dataSourceConfiguration: IResolvable) { cdkBuilder.dataSourceConfiguration(dataSourceConfiguration.let(IResolvable.Companion::unwrap)) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ override fun dataSourceConfiguration(dataSourceConfiguration: DataSourceConfigurationProperty) { cdkBuilder.dataSourceConfiguration(dataSourceConfiguration.let(DataSourceConfigurationProperty.Companion::unwrap)) } /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("91e233c010d47768c60bfdc0dba1f7f3220eeb3e31f346e31ef4d80aa4d9984b") @@ -571,6 +699,154 @@ public open class CfnDataSource( software.amazon.awscdk.services.bedrock.CfnDataSource } + /** + * Settings for a foundation model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) used to + * parse documents for a data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * BedrockFoundationModelConfigurationProperty bedrockFoundationModelConfigurationProperty = + * BedrockFoundationModelConfigurationProperty.builder() + * .modelArn("modelArn") + * // the properties below are optional + * .parsingPrompt(ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html) + */ + public interface BedrockFoundationModelConfigurationProperty { + /** + * The ARN of the foundation model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-modelarn) + */ + public fun modelArn(): String + + /** + * Instructions for interpreting the contents of a document. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-parsingprompt) + */ + public fun parsingPrompt(): Any? = unwrap(this).getParsingPrompt() + + /** + * A builder for [BedrockFoundationModelConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param modelArn The ARN of the foundation model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) . + */ + public fun modelArn(modelArn: String) + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + public fun parsingPrompt(parsingPrompt: IResolvable) + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + public fun parsingPrompt(parsingPrompt: ParsingPromptProperty) + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a47d3aca3254cc9e5cff51cd2647e9e6c06ae2aecbe6d8fec91bea541e216c6") + public fun parsingPrompt(parsingPrompt: ParsingPromptProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty.builder() + + /** + * @param modelArn The ARN of the foundation model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) . + */ + override fun modelArn(modelArn: String) { + cdkBuilder.modelArn(modelArn) + } + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + override fun parsingPrompt(parsingPrompt: IResolvable) { + cdkBuilder.parsingPrompt(parsingPrompt.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + override fun parsingPrompt(parsingPrompt: ParsingPromptProperty) { + cdkBuilder.parsingPrompt(parsingPrompt.let(ParsingPromptProperty.Companion::unwrap)) + } + + /** + * @param parsingPrompt Instructions for interpreting the contents of a document. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a47d3aca3254cc9e5cff51cd2647e9e6c06ae2aecbe6d8fec91bea541e216c6") + override fun parsingPrompt(parsingPrompt: ParsingPromptProperty.Builder.() -> Unit): Unit = + parsingPrompt(ParsingPromptProperty(parsingPrompt)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty, + ) : CdkObject(cdkObject), + BedrockFoundationModelConfigurationProperty { + /** + * The ARN of the foundation model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-modelarn) + */ + override fun modelArn(): String = unwrap(this).getModelArn() + + /** + * Instructions for interpreting the contents of a document. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-parsingprompt) + */ + override fun parsingPrompt(): Any? = unwrap(this).getParsingPrompt() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + BedrockFoundationModelConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty): + BedrockFoundationModelConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + BedrockFoundationModelConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: BedrockFoundationModelConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty + } + } + /** * Details about how to chunk the documents in the data source. * @@ -591,6 +867,17 @@ public open class CfnDataSource( * .maxTokens(123) * .overlapPercentage(123) * .build()) + * .hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder() + * .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build())) + * .overlapTokens(123) + * .build()) + * .semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder() + * .breakpointPercentileThreshold(123) + * .bufferSize(123) + * .maxTokens(123) + * .build()) * .build(); * ``` * @@ -607,6 +894,10 @@ public open class CfnDataSource( * * * `FIXED_SIZE` – Amazon Bedrock splits your source data into chunks of the approximate size * that you set in the `fixedSizeChunkingConfiguration` . + * * `HIERARCHICAL` – Split documents into layers of chunks where the first layer contains large + * chunks, and the second layer contains smaller chunks derived from the first layer. + * * `SEMANTIC` – Split documents into chunks based on groups of similar content derived with + * natural language processing. * * `NONE` – Amazon Bedrock treats each file as one chunk. If you choose this option, you may * want to pre-process your documents by splitting them into separate files. * @@ -624,6 +915,28 @@ public open class CfnDataSource( public fun fixedSizeChunkingConfiguration(): Any? = unwrap(this).getFixedSizeChunkingConfiguration() + /** + * Settings for hierarchical document chunking for a data source. + * + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-chunkingconfiguration.html#cfn-bedrock-datasource-chunkingconfiguration-hierarchicalchunkingconfiguration) + */ + public fun hierarchicalChunkingConfiguration(): Any? = + unwrap(this).getHierarchicalChunkingConfiguration() + + /** + * Settings for semantic document chunking for a data source. + * + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-chunkingconfiguration.html#cfn-bedrock-datasource-chunkingconfiguration-semanticchunkingconfiguration) + */ + public fun semanticChunkingConfiguration(): Any? = + unwrap(this).getSemanticChunkingConfiguration() + /** * A builder for [ChunkingConfigurationProperty] */ @@ -638,6 +951,10 @@ public open class CfnDataSource( * * * `FIXED_SIZE` – Amazon Bedrock splits your source data into chunks of the approximate size * that you set in the `fixedSizeChunkingConfiguration` . + * * `HIERARCHICAL` – Split documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * * `SEMANTIC` – Split documents into chunks based on groups of similar content derived with + * natural language processing. * * `NONE` – Amazon Bedrock treats each file as one chunk. If you choose this option, you may * want to pre-process your documents by splitting them into separate files. */ @@ -667,6 +984,62 @@ public open class CfnDataSource( @JvmName("d9c98baa96dc4757da95ec8608c2fcdc9e28b022502d051fe253ec992df9f7d5") public fun fixedSizeChunkingConfiguration(fixedSizeChunkingConfiguration: FixedSizeChunkingConfigurationProperty.Builder.() -> Unit) + + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + public fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: IResolvable) + + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + public + fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: HierarchicalChunkingConfigurationProperty) + + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b259398a82a54de3bfb5e5955e7f4fdff4f2dbe5f0886ebb67363677817e4b9b") + public + fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: HierarchicalChunkingConfigurationProperty.Builder.() -> Unit) + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + public fun semanticChunkingConfiguration(semanticChunkingConfiguration: IResolvable) + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + public + fun semanticChunkingConfiguration(semanticChunkingConfiguration: SemanticChunkingConfigurationProperty) + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66c1b56097b00bf8f96b60e7d5cd2ba9e0ff681073fc8f51c04e4d6f684b1993") + public + fun semanticChunkingConfiguration(semanticChunkingConfiguration: SemanticChunkingConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -684,6 +1057,10 @@ public open class CfnDataSource( * * * `FIXED_SIZE` – Amazon Bedrock splits your source data into chunks of the approximate size * that you set in the `fixedSizeChunkingConfiguration` . + * * `HIERARCHICAL` – Split documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * * `SEMANTIC` – Split documents into chunks based on groups of similar content derived with + * natural language processing. * * `NONE` – Amazon Bedrock treats each file as one chunk. If you choose this option, you may * want to pre-process your documents by splitting them into separate files. */ @@ -722,6 +1099,75 @@ public open class CfnDataSource( Unit = fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty(fixedSizeChunkingConfiguration)) + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + override + fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: IResolvable) { + cdkBuilder.hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + override + fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: HierarchicalChunkingConfigurationProperty) { + cdkBuilder.hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration.let(HierarchicalChunkingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param hierarchicalChunkingConfiguration Settings for hierarchical document chunking for a + * data source. + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b259398a82a54de3bfb5e5955e7f4fdff4f2dbe5f0886ebb67363677817e4b9b") + override + fun hierarchicalChunkingConfiguration(hierarchicalChunkingConfiguration: HierarchicalChunkingConfigurationProperty.Builder.() -> Unit): + Unit = + hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty(hierarchicalChunkingConfiguration)) + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + override fun semanticChunkingConfiguration(semanticChunkingConfiguration: IResolvable) { + cdkBuilder.semanticChunkingConfiguration(semanticChunkingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + override + fun semanticChunkingConfiguration(semanticChunkingConfiguration: SemanticChunkingConfigurationProperty) { + cdkBuilder.semanticChunkingConfiguration(semanticChunkingConfiguration.let(SemanticChunkingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param semanticChunkingConfiguration Settings for semantic document chunking for a data + * source. + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66c1b56097b00bf8f96b60e7d5cd2ba9e0ff681073fc8f51c04e4d6f684b1993") + override + fun semanticChunkingConfiguration(semanticChunkingConfiguration: SemanticChunkingConfigurationProperty.Builder.() -> Unit): + Unit = + semanticChunkingConfiguration(SemanticChunkingConfigurationProperty(semanticChunkingConfiguration)) + public fun build(): software.amazon.awscdk.services.bedrock.CfnDataSource.ChunkingConfigurationProperty = cdkBuilder.build() @@ -729,7 +1175,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ChunkingConfigurationProperty, - ) : CdkObject(cdkObject), ChunkingConfigurationProperty { + ) : CdkObject(cdkObject), + ChunkingConfigurationProperty { /** * Knowledge base can split your source data into chunks. * @@ -740,6 +1187,10 @@ public open class CfnDataSource( * * * `FIXED_SIZE` – Amazon Bedrock splits your source data into chunks of the approximate size * that you set in the `fixedSizeChunkingConfiguration` . + * * `HIERARCHICAL` – Split documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * * `SEMANTIC` – Split documents into chunks based on groups of similar content derived with + * natural language processing. * * `NONE` – Amazon Bedrock treats each file as one chunk. If you choose this option, you may * want to pre-process your documents by splitting them into separate files. * @@ -756,6 +1207,28 @@ public open class CfnDataSource( */ override fun fixedSizeChunkingConfiguration(): Any? = unwrap(this).getFixedSizeChunkingConfiguration() + + /** + * Settings for hierarchical document chunking for a data source. + * + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-chunkingconfiguration.html#cfn-bedrock-datasource-chunkingconfiguration-hierarchicalchunkingconfiguration) + */ + override fun hierarchicalChunkingConfiguration(): Any? = + unwrap(this).getHierarchicalChunkingConfiguration() + + /** + * Settings for semantic document chunking for a data source. + * + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-chunkingconfiguration.html#cfn-bedrock-datasource-chunkingconfiguration-semanticchunkingconfiguration) + */ + override fun semanticChunkingConfiguration(): Any? = + unwrap(this).getSemanticChunkingConfiguration() } public companion object { @@ -777,7 +1250,9 @@ public open class CfnDataSource( } /** - * Contains details about how a data source is stored. + * The configuration of the Confluence content. + * + * For example, configuring specific types of Confluence content. * * Example: * @@ -785,151 +1260,134 @@ public open class CfnDataSource( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * DataSourceConfigurationProperty dataSourceConfigurationProperty = - * DataSourceConfigurationProperty.builder() - * .s3Configuration(S3DataSourceConfigurationProperty.builder() - * .bucketArn("bucketArn") + * ConfluenceCrawlerConfigurationProperty confluenceCrawlerConfigurationProperty = + * ConfluenceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") * // the properties below are optional - * .bucketOwnerAccountId("bucketOwnerAccountId") - * .inclusionPrefixes(List.of("inclusionPrefixes")) + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) * .build()) - * .type("type") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencecrawlerconfiguration.html) */ - public interface DataSourceConfigurationProperty { + public interface ConfluenceCrawlerConfigurationProperty { /** - * Contains details about the configuration of the S3 object containing the data source. + * The configuration of filtering the Confluence content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-s3configuration) - */ - public fun s3Configuration(): Any - - /** - * The type of storage for the data source. + * For example, configuring regular expression patterns to include or exclude certain content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-type) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencecrawlerconfiguration.html#cfn-bedrock-datasource-confluencecrawlerconfiguration-filterconfiguration) */ - public fun type(): String + public fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() /** - * A builder for [DataSourceConfigurationProperty] + * A builder for [ConfluenceCrawlerConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ - public fun s3Configuration(s3Configuration: IResolvable) + public fun filterConfiguration(filterConfiguration: IResolvable) /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ - public fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty) + public fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("548e7ecb02258f6ed61d218f2d1f893be2816cedb6d9f9e52cbfac7678c73a90") + @JvmName("cc46b29068c39d7106c7415dcc7e230d249b8f5ed0a25097880a7fd0119148ce") public - fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty.Builder.() -> Unit) - - /** - * @param type The type of storage for the data source. - */ - public fun type(type: String) + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty.Builder + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty.builder() /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ - override fun s3Configuration(s3Configuration: IResolvable) { - cdkBuilder.s3Configuration(s3Configuration.let(IResolvable.Companion::unwrap)) + override fun filterConfiguration(filterConfiguration: IResolvable) { + cdkBuilder.filterConfiguration(filterConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ - override fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty) { - cdkBuilder.s3Configuration(s3Configuration.let(S3DataSourceConfigurationProperty.Companion::unwrap)) + override fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) { + cdkBuilder.filterConfiguration(filterConfiguration.let(CrawlFilterConfigurationProperty.Companion::unwrap)) } /** - * @param s3Configuration Contains details about the configuration of the S3 object containing - * the data source. + * @param filterConfiguration The configuration of filtering the Confluence content. + * For example, configuring regular expression patterns to include or exclude certain content. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("548e7ecb02258f6ed61d218f2d1f893be2816cedb6d9f9e52cbfac7678c73a90") + @JvmName("cc46b29068c39d7106c7415dcc7e230d249b8f5ed0a25097880a7fd0119148ce") override - fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty.Builder.() -> Unit): - Unit = s3Configuration(S3DataSourceConfigurationProperty(s3Configuration)) - - /** - * @param type The type of storage for the data source. - */ - override fun type(type: String) { - cdkBuilder.type(type) - } + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit): + Unit = filterConfiguration(CrawlFilterConfigurationProperty(filterConfiguration)) public fun build(): - software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty = - cdkBuilder.build() + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty + = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty, - ) : CdkObject(cdkObject), DataSourceConfigurationProperty { + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty, + ) : CdkObject(cdkObject), + ConfluenceCrawlerConfigurationProperty { /** - * Contains details about the configuration of the S3 object containing the data source. + * The configuration of filtering the Confluence content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-s3configuration) - */ - override fun s3Configuration(): Any = unwrap(this).getS3Configuration() - - /** - * The type of storage for the data source. + * For example, configuring regular expression patterns to include or exclude certain content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-type) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencecrawlerconfiguration.html#cfn-bedrock-datasource-confluencecrawlerconfiguration-filterconfiguration) */ - override fun type(): String = unwrap(this).getType() + override fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): DataSourceConfigurationProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfluenceCrawlerConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty): - DataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - DataSourceConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty): + ConfluenceCrawlerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfluenceCrawlerConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: DataSourceConfigurationProperty): - software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty = - (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty + internal fun unwrap(wrapped: ConfluenceCrawlerConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceCrawlerConfigurationProperty } } /** - * Configurations for when you choose fixed-size chunking. - * - * If you set the `chunkingStrategy` as `NONE` , exclude this field. + * The configuration information to connect to Confluence as your data source. * * Example: * @@ -937,112 +1395,205 @@ public open class CfnDataSource( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * FixedSizeChunkingConfigurationProperty fixedSizeChunkingConfigurationProperty = - * FixedSizeChunkingConfigurationProperty.builder() - * .maxTokens(123) - * .overlapPercentage(123) + * ConfluenceDataSourceConfigurationProperty confluenceDataSourceConfigurationProperty = + * ConfluenceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(ConfluenceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostType("hostType") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(ConfluenceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencedatasourceconfiguration.html) */ - public interface FixedSizeChunkingConfigurationProperty { + public interface ConfluenceDataSourceConfigurationProperty { /** - * The maximum number of tokens to include in a chunk. + * The configuration of the Confluence content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-maxtokens) + * For example, configuring specific types of Confluence content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencedatasourceconfiguration.html#cfn-bedrock-datasource-confluencedatasourceconfiguration-crawlerconfiguration) */ - public fun maxTokens(): Number + public fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() /** - * The percentage of overlap between adjacent chunks of a data source. + * The endpoint information to connect to your Confluence data source. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-overlappercentage) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencedatasourceconfiguration.html#cfn-bedrock-datasource-confluencedatasourceconfiguration-sourceconfiguration) */ - public fun overlapPercentage(): Number + public fun sourceConfiguration(): Any /** - * A builder for [FixedSizeChunkingConfigurationProperty] + * A builder for [ConfluenceDataSourceConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param maxTokens The maximum number of tokens to include in a chunk. + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. */ - public fun maxTokens(maxTokens: Number) + public fun crawlerConfiguration(crawlerConfiguration: IResolvable) /** - * @param overlapPercentage The percentage of overlap between adjacent chunks of a data + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. + */ + public fun crawlerConfiguration(crawlerConfiguration: ConfluenceCrawlerConfigurationProperty) + + /** + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b160e400f7bea3cf2a1ddb47dc98ffcc0a80e3b372240725bfa332a1c056372") + public + fun crawlerConfiguration(crawlerConfiguration: ConfluenceCrawlerConfigurationProperty.Builder.() -> Unit) + + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data * source. */ - public fun overlapPercentage(overlapPercentage: Number) + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data + * source. + */ + public fun sourceConfiguration(sourceConfiguration: ConfluenceSourceConfigurationProperty) + + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4d6d7a09a77a5783a1a3585a6211699f8948c562fc592cfb2fe32dd65ac9688e") + public + fun sourceConfiguration(sourceConfiguration: ConfluenceSourceConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty.builder() /** - * @param maxTokens The maximum number of tokens to include in a chunk. + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. */ - override fun maxTokens(maxTokens: Number) { - cdkBuilder.maxTokens(maxTokens) + override fun crawlerConfiguration(crawlerConfiguration: IResolvable) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param overlapPercentage The percentage of overlap between adjacent chunks of a data + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. + */ + override + fun crawlerConfiguration(crawlerConfiguration: ConfluenceCrawlerConfigurationProperty) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(ConfluenceCrawlerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The configuration of the Confluence content. + * For example, configuring specific types of Confluence content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b160e400f7bea3cf2a1ddb47dc98ffcc0a80e3b372240725bfa332a1c056372") + override + fun crawlerConfiguration(crawlerConfiguration: ConfluenceCrawlerConfigurationProperty.Builder.() -> Unit): + Unit = crawlerConfiguration(ConfluenceCrawlerConfigurationProperty(crawlerConfiguration)) + + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data * source. */ - override fun overlapPercentage(overlapPercentage: Number) { - cdkBuilder.overlapPercentage(overlapPercentage) + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data + * source. + */ + override fun sourceConfiguration(sourceConfiguration: ConfluenceSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(ConfluenceSourceConfigurationProperty.Companion::unwrap)) } + /** + * @param sourceConfiguration The endpoint information to connect to your Confluence data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4d6d7a09a77a5783a1a3585a6211699f8948c562fc592cfb2fe32dd65ac9688e") + override + fun sourceConfiguration(sourceConfiguration: ConfluenceSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(ConfluenceSourceConfigurationProperty(sourceConfiguration)) + public fun build(): - software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty, - ) : CdkObject(cdkObject), FixedSizeChunkingConfigurationProperty { + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + ConfluenceDataSourceConfigurationProperty { /** - * The maximum number of tokens to include in a chunk. + * The configuration of the Confluence content. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-maxtokens) + * For example, configuring specific types of Confluence content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencedatasourceconfiguration.html#cfn-bedrock-datasource-confluencedatasourceconfiguration-crawlerconfiguration) */ - override fun maxTokens(): Number = unwrap(this).getMaxTokens() + override fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() /** - * The percentage of overlap between adjacent chunks of a data source. + * The endpoint information to connect to your Confluence data source. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-overlappercentage) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencedatasourceconfiguration.html#cfn-bedrock-datasource-confluencedatasourceconfiguration-sourceconfiguration) */ - override fun overlapPercentage(): Number = unwrap(this).getOverlapPercentage() + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() } public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): - FixedSizeChunkingConfigurationProperty { + ConfluenceDataSourceConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty): - FixedSizeChunkingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - FixedSizeChunkingConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty): + ConfluenceDataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfluenceDataSourceConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: FixedSizeChunkingConfigurationProperty): - software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + internal fun unwrap(wrapped: ConfluenceDataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceDataSourceConfigurationProperty } } /** - * Contains information about the S3 configuration of the data source. + * The endpoint information to connect to your Confluence data source. * * Example: * @@ -1050,171 +1601,191 @@ public open class CfnDataSource( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * S3DataSourceConfigurationProperty s3DataSourceConfigurationProperty = - * S3DataSourceConfigurationProperty.builder() - * .bucketArn("bucketArn") - * // the properties below are optional - * .bucketOwnerAccountId("bucketOwnerAccountId") - * .inclusionPrefixes(List.of("inclusionPrefixes")) + * ConfluenceSourceConfigurationProperty confluenceSourceConfigurationProperty = + * ConfluenceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostType("hostType") + * .hostUrl("hostUrl") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html) */ - public interface S3DataSourceConfigurationProperty { + public interface ConfluenceSourceConfigurationProperty { /** - * The Amazon Resource Name (ARN) of the bucket that contains the data source. + * The supported authentication type to authenticate and connect to your Confluence instance. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketarn) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-authtype) */ - public fun bucketArn(): String + public fun authType(): String /** - * The bucket account owner ID for the S3 bucket. + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your Confluence instance URL. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketowneraccountid) + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Confluence connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-credentialssecretarn) */ - public fun bucketOwnerAccountId(): String? = unwrap(this).getBucketOwnerAccountId() + public fun credentialsSecretArn(): String /** - * A list of S3 prefixes that define the object containing the data sources. + * The supported host type, whether online/cloud or server/on-premises. * - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosttype) + */ + public fun hostType(): String + + /** + * The Confluence host URL or instance URL. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-inclusionprefixes) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosturl) */ - public fun inclusionPrefixes(): List = unwrap(this).getInclusionPrefixes() ?: - emptyList() + public fun hostUrl(): String /** - * A builder for [S3DataSourceConfigurationProperty] + * A builder for [ConfluenceSourceConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param bucketArn The Amazon Resource Name (ARN) of the bucket that contains the data - * source. + * @param authType The supported authentication type to authenticate and connect to your + * Confluence instance. */ - public fun bucketArn(bucketArn: String) + public fun authType(authType: String) /** - * @param bucketOwnerAccountId The bucket account owner ID for the S3 bucket. + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your Confluence instance URL. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Confluence connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector) + * . */ - public fun bucketOwnerAccountId(bucketOwnerAccountId: String) + public fun credentialsSecretArn(credentialsSecretArn: String) /** - * @param inclusionPrefixes A list of S3 prefixes that define the object containing the data - * sources. - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * @param hostType The supported host type, whether online/cloud or server/on-premises. */ - public fun inclusionPrefixes(inclusionPrefixes: List) + public fun hostType(hostType: String) /** - * @param inclusionPrefixes A list of S3 prefixes that define the object containing the data - * sources. - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * @param hostUrl The Confluence host URL or instance URL. */ - public fun inclusionPrefixes(vararg inclusionPrefixes: String) + public fun hostUrl(hostUrl: String) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty.Builder + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty.builder() /** - * @param bucketArn The Amazon Resource Name (ARN) of the bucket that contains the data - * source. + * @param authType The supported authentication type to authenticate and connect to your + * Confluence instance. */ - override fun bucketArn(bucketArn: String) { - cdkBuilder.bucketArn(bucketArn) + override fun authType(authType: String) { + cdkBuilder.authType(authType) } /** - * @param bucketOwnerAccountId The bucket account owner ID for the S3 bucket. + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your Confluence instance URL. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Confluence connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector) + * . */ - override fun bucketOwnerAccountId(bucketOwnerAccountId: String) { - cdkBuilder.bucketOwnerAccountId(bucketOwnerAccountId) + override fun credentialsSecretArn(credentialsSecretArn: String) { + cdkBuilder.credentialsSecretArn(credentialsSecretArn) } /** - * @param inclusionPrefixes A list of S3 prefixes that define the object containing the data - * sources. - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * @param hostType The supported host type, whether online/cloud or server/on-premises. */ - override fun inclusionPrefixes(inclusionPrefixes: List) { - cdkBuilder.inclusionPrefixes(inclusionPrefixes) + override fun hostType(hostType: String) { + cdkBuilder.hostType(hostType) } /** - * @param inclusionPrefixes A list of S3 prefixes that define the object containing the data - * sources. - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * @param hostUrl The Confluence host URL or instance URL. */ - override fun inclusionPrefixes(vararg inclusionPrefixes: String): Unit = - inclusionPrefixes(inclusionPrefixes.toList()) + override fun hostUrl(hostUrl: String) { + cdkBuilder.hostUrl(hostUrl) + } public fun build(): - software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty = - cdkBuilder.build() + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty + = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty, - ) : CdkObject(cdkObject), S3DataSourceConfigurationProperty { + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty, + ) : CdkObject(cdkObject), + ConfluenceSourceConfigurationProperty { /** - * The Amazon Resource Name (ARN) of the bucket that contains the data source. + * The supported authentication type to authenticate and connect to your Confluence instance. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketarn) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-authtype) */ - override fun bucketArn(): String = unwrap(this).getBucketArn() + override fun authType(): String = unwrap(this).getAuthType() /** - * The bucket account owner ID for the S3 bucket. + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your Confluence instance URL. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketowneraccountid) + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Confluence connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-credentialssecretarn) */ - override fun bucketOwnerAccountId(): String? = unwrap(this).getBucketOwnerAccountId() + override fun credentialsSecretArn(): String = unwrap(this).getCredentialsSecretArn() /** - * A list of S3 prefixes that define the object containing the data sources. + * The supported host type, whether online/cloud or server/on-premises. * - * For more information, see [Organizing objects using - * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosttype) + */ + override fun hostType(): String = unwrap(this).getHostType() + + /** + * The Confluence host URL or instance URL. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-inclusionprefixes) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-confluencesourceconfiguration.html#cfn-bedrock-datasource-confluencesourceconfiguration-hosturl) */ - override fun inclusionPrefixes(): List = unwrap(this).getInclusionPrefixes() ?: - emptyList() + override fun hostUrl(): String = unwrap(this).getHostUrl() } public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): - S3DataSourceConfigurationProperty { + ConfluenceSourceConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty): - S3DataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - S3DataSourceConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty): + ConfluenceSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfluenceSourceConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: S3DataSourceConfigurationProperty): - software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty = - (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty + internal fun unwrap(wrapped: ConfluenceSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.ConfluenceSourceConfigurationProperty } } /** - * Contains the configuration for server-side encryption. + * The configuration of filtering the data source content. + * + * For example, configuring regular expression patterns to include or exclude certain content. * * Example: * @@ -1222,85 +1793,176 @@ public open class CfnDataSource( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * ServerSideEncryptionConfigurationProperty serverSideEncryptionConfigurationProperty = - * ServerSideEncryptionConfigurationProperty.builder() - * .kmsKeyArn("kmsKeyArn") + * CrawlFilterConfigurationProperty crawlFilterConfigurationProperty = + * CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-crawlfilterconfiguration.html) */ - public interface ServerSideEncryptionConfigurationProperty { + public interface CrawlFilterConfigurationProperty { /** - * The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the resource. + * The configuration of filtering certain objects or content types of the data source. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html#cfn-bedrock-datasource-serversideencryptionconfiguration-kmskeyarn) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-crawlfilterconfiguration.html#cfn-bedrock-datasource-crawlfilterconfiguration-patternobjectfilter) */ - public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + public fun patternObjectFilter(): Any? = unwrap(this).getPatternObjectFilter() /** - * A builder for [ServerSideEncryptionConfigurationProperty] + * The type of filtering that you want to apply to certain objects or content of the data + * source. + * + * For example, the `PATTERN` type is regular expression patterns you can apply to filter your + * content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-crawlfilterconfiguration.html#cfn-bedrock-datasource-crawlfilterconfiguration-type) + */ + public fun type(): String + + /** + * A builder for [CrawlFilterConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the - * resource. + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. */ - public fun kmsKeyArn(kmsKeyArn: String) + public fun patternObjectFilter(patternObjectFilter: IResolvable) + + /** + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. + */ + public fun patternObjectFilter(patternObjectFilter: PatternObjectFilterConfigurationProperty) + + /** + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a86ab5cfd0bc42d0b9d16e98f1dd4cc5e5ee6e67d0ef503b6aedff93eee1d4c") + public + fun patternObjectFilter(patternObjectFilter: PatternObjectFilterConfigurationProperty.Builder.() -> Unit) + + /** + * @param type The type of filtering that you want to apply to certain objects or content of + * the data source. + * For example, the `PATTERN` type is regular expression patterns you can apply to filter your + * content. + */ + public fun type(type: String) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty.Builder + software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty.builder() /** - * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the - * resource. + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. */ - override fun kmsKeyArn(kmsKeyArn: String) { - cdkBuilder.kmsKeyArn(kmsKeyArn) + override fun patternObjectFilter(patternObjectFilter: IResolvable) { + cdkBuilder.patternObjectFilter(patternObjectFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. + */ + override + fun patternObjectFilter(patternObjectFilter: PatternObjectFilterConfigurationProperty) { + cdkBuilder.patternObjectFilter(patternObjectFilter.let(PatternObjectFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param patternObjectFilter The configuration of filtering certain objects or content types + * of the data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a86ab5cfd0bc42d0b9d16e98f1dd4cc5e5ee6e67d0ef503b6aedff93eee1d4c") + override + fun patternObjectFilter(patternObjectFilter: PatternObjectFilterConfigurationProperty.Builder.() -> Unit): + Unit = patternObjectFilter(PatternObjectFilterConfigurationProperty(patternObjectFilter)) + + /** + * @param type The type of filtering that you want to apply to certain objects or content of + * the data source. + * For example, the `PATTERN` type is regular expression patterns you can apply to filter your + * content. + */ + override fun type(type: String) { + cdkBuilder.type(type) } public fun build(): - software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty - = cdkBuilder.build() + software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty = + cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionConfigurationProperty { + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty, + ) : CdkObject(cdkObject), + CrawlFilterConfigurationProperty { /** - * The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the resource. + * The configuration of filtering certain objects or content types of the data source. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html#cfn-bedrock-datasource-serversideencryptionconfiguration-kmskeyarn) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-crawlfilterconfiguration.html#cfn-bedrock-datasource-crawlfilterconfiguration-patternobjectfilter) */ - override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + override fun patternObjectFilter(): Any? = unwrap(this).getPatternObjectFilter() + + /** + * The type of filtering that you want to apply to certain objects or content of the data + * source. + * + * For example, the `PATTERN` type is regular expression patterns you can apply to filter your + * content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-crawlfilterconfiguration.html#cfn-bedrock-datasource-crawlfilterconfiguration-type) + */ + override fun type(): String = unwrap(this).getType() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): - ServerSideEncryptionConfigurationProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): CrawlFilterConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty): - ServerSideEncryptionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - ServerSideEncryptionConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty): + CrawlFilterConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + CrawlFilterConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: ServerSideEncryptionConfigurationProperty): - software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty - = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty + internal fun unwrap(wrapped: CrawlFilterConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.CrawlFilterConfigurationProperty } } /** - * Contains details about how to ingest the documents in a data source. + * Settings for customizing steps in the data source content ingestion pipeline. + * + * You can configure the data source to process documents with a Lambda function after they are + * parsed and converted into chunks. When you add a post-chunking transformation, the service stores + * chunked documents in an S3 bucket and invokes a Lambda function to process them. + * + * To process chunked documents with a Lambda function, define an S3 bucket path for input and + * output objects, and a transformation that specifies the Lambda function to invoke. You can use the + * Lambda function to customize how chunks are split, and the metadata for each chunk. * * Example: * @@ -1308,132 +1970,4896 @@ public open class CfnDataSource( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.bedrock.*; - * VectorIngestionConfigurationProperty vectorIngestionConfigurationProperty = - * VectorIngestionConfigurationProperty.builder() - * .chunkingConfiguration(ChunkingConfigurationProperty.builder() - * .chunkingStrategy("chunkingStrategy") - * // the properties below are optional - * .fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty.builder() - * .maxTokens(123) - * .overlapPercentage(123) + * CustomTransformationConfigurationProperty customTransformationConfigurationProperty = + * CustomTransformationConfigurationProperty.builder() + * .intermediateStorage(IntermediateStorageProperty.builder() + * .s3Location(S3LocationProperty.builder() + * .uri("uri") + * .build()) + * .build()) + * .transformations(List.of(TransformationProperty.builder() + * .stepToApply("stepToApply") + * .transformationFunction(TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") * .build()) * .build()) + * .build())) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html) */ - public interface VectorIngestionConfigurationProperty { + public interface CustomTransformationConfigurationProperty { /** - * Details about how to chunk the documents in the data source. + * An S3 bucket path for input and output objects. * - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-intermediatestorage) + */ + public fun intermediateStorage(): Any + + /** + * A Lambda function that processes documents. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-chunkingconfiguration) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-transformations) */ - public fun chunkingConfiguration(): Any? = unwrap(this).getChunkingConfiguration() + public fun transformations(): Any /** - * A builder for [VectorIngestionConfigurationProperty] + * A builder for [CustomTransformationConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ - public fun chunkingConfiguration(chunkingConfiguration: IResolvable) + public fun intermediateStorage(intermediateStorage: IResolvable) /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ - public fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty) + public fun intermediateStorage(intermediateStorage: IntermediateStorageProperty) /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("c44d549c914ff158cdb23c41be0b341d8b85e7b602c0d8c95a2f8f31bc6da3c4") + @JvmName("449216620f77fa6f20dc41d09f3fc14c54ff75a42cd2ebdb6abd446ff380103b") public - fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty.Builder.() -> Unit) + fun intermediateStorage(intermediateStorage: IntermediateStorageProperty.Builder.() -> Unit) + + /** + * @param transformations A Lambda function that processes documents. + */ + public fun transformations(transformations: IResolvable) + + /** + * @param transformations A Lambda function that processes documents. + */ + public fun transformations(transformations: List) + + /** + * @param transformations A Lambda function that processes documents. + */ + public fun transformations(vararg transformations: Any) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty.Builder + software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty.Builder = - software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty.builder() + software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty.builder() /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ - override fun chunkingConfiguration(chunkingConfiguration: IResolvable) { - cdkBuilder.chunkingConfiguration(chunkingConfiguration.let(IResolvable.Companion::unwrap)) + override fun intermediateStorage(intermediateStorage: IResolvable) { + cdkBuilder.intermediateStorage(intermediateStorage.let(IResolvable.Companion::unwrap)) } /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ - override fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty) { - cdkBuilder.chunkingConfiguration(chunkingConfiguration.let(ChunkingConfigurationProperty.Companion::unwrap)) + override fun intermediateStorage(intermediateStorage: IntermediateStorageProperty) { + cdkBuilder.intermediateStorage(intermediateStorage.let(IntermediateStorageProperty.Companion::unwrap)) } /** - * @param chunkingConfiguration Details about how to chunk the documents in the data source. - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * @param intermediateStorage An S3 bucket path for input and output objects. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("c44d549c914ff158cdb23c41be0b341d8b85e7b602c0d8c95a2f8f31bc6da3c4") + @JvmName("449216620f77fa6f20dc41d09f3fc14c54ff75a42cd2ebdb6abd446ff380103b") override - fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty.Builder.() -> Unit): - Unit = chunkingConfiguration(ChunkingConfigurationProperty(chunkingConfiguration)) + fun intermediateStorage(intermediateStorage: IntermediateStorageProperty.Builder.() -> Unit): + Unit = intermediateStorage(IntermediateStorageProperty(intermediateStorage)) + + /** + * @param transformations A Lambda function that processes documents. + */ + override fun transformations(transformations: IResolvable) { + cdkBuilder.transformations(transformations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param transformations A Lambda function that processes documents. + */ + override fun transformations(transformations: List) { + cdkBuilder.transformations(transformations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param transformations A Lambda function that processes documents. + */ + override fun transformations(vararg transformations: Any): Unit = + transformations(transformations.toList()) public fun build(): - software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty, - ) : CdkObject(cdkObject), VectorIngestionConfigurationProperty { + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty, + ) : CdkObject(cdkObject), + CustomTransformationConfigurationProperty { /** - * Details about how to chunk the documents in the data source. + * An S3 bucket path for input and output objects. * - * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base - * that it belongs to is queried. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-intermediatestorage) + */ + override fun intermediateStorage(): Any = unwrap(this).getIntermediateStorage() + + /** + * A Lambda function that processes documents. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-chunkingconfiguration) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-transformations) */ - override fun chunkingConfiguration(): Any? = unwrap(this).getChunkingConfiguration() + override fun transformations(): Any = unwrap(this).getTransformations() } public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): - VectorIngestionConfigurationProperty { + CustomTransformationConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty): - VectorIngestionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - VectorIngestionConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty): + CustomTransformationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + CustomTransformationConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: VectorIngestionConfigurationProperty): - software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + internal fun unwrap(wrapped: CustomTransformationConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + software.amazon.awscdk.services.bedrock.CfnDataSource.CustomTransformationConfigurationProperty + } + } + + /** + * The connection configuration for the data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * DataSourceConfigurationProperty dataSourceConfigurationProperty = + * DataSourceConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .confluenceConfiguration(ConfluenceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(ConfluenceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostType("hostType") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(ConfluenceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .s3Configuration(S3DataSourceConfigurationProperty.builder() + * .bucketArn("bucketArn") + * // the properties below are optional + * .bucketOwnerAccountId("bucketOwnerAccountId") + * .inclusionPrefixes(List.of("inclusionPrefixes")) + * .build()) + * .salesforceConfiguration(SalesforceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SalesforceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SalesforceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .sharePointConfiguration(SharePointDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SharePointSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .domain("domain") + * .hostType("hostType") + * .siteUrls(List.of("siteUrls")) + * // the properties below are optional + * .tenantId("tenantId") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SharePointCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .webConfiguration(WebDataSourceConfigurationProperty.builder() + * .sourceConfiguration(WebSourceConfigurationProperty.builder() + * .urlConfiguration(UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build()) + * .build()) + * // the properties below are optional + * .crawlerConfiguration(WebCrawlerConfigurationProperty.builder() + * .crawlerLimits(WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build()) + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .scope("scope") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html) + */ + public interface DataSourceConfigurationProperty { + /** + * The configuration information to connect to Confluence as your data source. + * + * + * Confluence data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-confluenceconfiguration) + */ + public fun confluenceConfiguration(): Any? = unwrap(this).getConfluenceConfiguration() + + /** + * The configuration information to connect to Amazon S3 as your data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-s3configuration) + */ + public fun s3Configuration(): Any? = unwrap(this).getS3Configuration() + + /** + * The configuration information to connect to Salesforce as your data source. + * + * + * Salesforce data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-salesforceconfiguration) + */ + public fun salesforceConfiguration(): Any? = unwrap(this).getSalesforceConfiguration() + + /** + * The configuration information to connect to SharePoint as your data source. + * + * + * SharePoint data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-sharepointconfiguration) + */ + public fun sharePointConfiguration(): Any? = unwrap(this).getSharePointConfiguration() + + /** + * The type of data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-type) + */ + public fun type(): String + + /** + * The configuration of web URLs to crawl for your data source. You should be authorized to + * crawl the URLs. + * + * + * Crawling web URLs as your data source is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-webconfiguration) + */ + public fun webConfiguration(): Any? = unwrap(this).getWebConfiguration() + + /** + * A builder for [DataSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + public fun confluenceConfiguration(confluenceConfiguration: IResolvable) + + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + public + fun confluenceConfiguration(confluenceConfiguration: ConfluenceDataSourceConfigurationProperty) + + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1612bc316932bbfb47d1bf73d3595f289db8b1c8a7fa0df9ea3bd7c3f791c149") + public + fun confluenceConfiguration(confluenceConfiguration: ConfluenceDataSourceConfigurationProperty.Builder.() -> Unit) + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + public fun s3Configuration(s3Configuration: IResolvable) + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + public fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty) + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("548e7ecb02258f6ed61d218f2d1f893be2816cedb6d9f9e52cbfac7678c73a90") + public + fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty.Builder.() -> Unit) + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + public fun salesforceConfiguration(salesforceConfiguration: IResolvable) + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + public + fun salesforceConfiguration(salesforceConfiguration: SalesforceDataSourceConfigurationProperty) + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a013cae6113f39c2ef20a3136d295d33724194ca559e3533b58451405d81956e") + public + fun salesforceConfiguration(salesforceConfiguration: SalesforceDataSourceConfigurationProperty.Builder.() -> Unit) + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + public fun sharePointConfiguration(sharePointConfiguration: IResolvable) + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + public + fun sharePointConfiguration(sharePointConfiguration: SharePointDataSourceConfigurationProperty) + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("24bdad08248d1f7c094ca2e105d385ab5d07943be3ad2a295ddb1edc9f4719c4") + public + fun sharePointConfiguration(sharePointConfiguration: SharePointDataSourceConfigurationProperty.Builder.() -> Unit) + + /** + * @param type The type of data source. + */ + public fun type(type: String) + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + public fun webConfiguration(webConfiguration: IResolvable) + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + public fun webConfiguration(webConfiguration: WebDataSourceConfigurationProperty) + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2191a6af944679c6fed69f5c04d48f89054a5eac6797b632342f1cfa21c2e046") + public + fun webConfiguration(webConfiguration: WebDataSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty.builder() + + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + override fun confluenceConfiguration(confluenceConfiguration: IResolvable) { + cdkBuilder.confluenceConfiguration(confluenceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + override + fun confluenceConfiguration(confluenceConfiguration: ConfluenceDataSourceConfigurationProperty) { + cdkBuilder.confluenceConfiguration(confluenceConfiguration.let(ConfluenceDataSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param confluenceConfiguration The configuration information to connect to Confluence as + * your data source. + * + * Confluence data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1612bc316932bbfb47d1bf73d3595f289db8b1c8a7fa0df9ea3bd7c3f791c149") + override + fun confluenceConfiguration(confluenceConfiguration: ConfluenceDataSourceConfigurationProperty.Builder.() -> Unit): + Unit = + confluenceConfiguration(ConfluenceDataSourceConfigurationProperty(confluenceConfiguration)) + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + override fun s3Configuration(s3Configuration: IResolvable) { + cdkBuilder.s3Configuration(s3Configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + override fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty) { + cdkBuilder.s3Configuration(s3Configuration.let(S3DataSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3Configuration The configuration information to connect to Amazon S3 as your data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("548e7ecb02258f6ed61d218f2d1f893be2816cedb6d9f9e52cbfac7678c73a90") + override + fun s3Configuration(s3Configuration: S3DataSourceConfigurationProperty.Builder.() -> Unit): + Unit = s3Configuration(S3DataSourceConfigurationProperty(s3Configuration)) + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + override fun salesforceConfiguration(salesforceConfiguration: IResolvable) { + cdkBuilder.salesforceConfiguration(salesforceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + override + fun salesforceConfiguration(salesforceConfiguration: SalesforceDataSourceConfigurationProperty) { + cdkBuilder.salesforceConfiguration(salesforceConfiguration.let(SalesforceDataSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param salesforceConfiguration The configuration information to connect to Salesforce as + * your data source. + * + * Salesforce data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a013cae6113f39c2ef20a3136d295d33724194ca559e3533b58451405d81956e") + override + fun salesforceConfiguration(salesforceConfiguration: SalesforceDataSourceConfigurationProperty.Builder.() -> Unit): + Unit = + salesforceConfiguration(SalesforceDataSourceConfigurationProperty(salesforceConfiguration)) + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + override fun sharePointConfiguration(sharePointConfiguration: IResolvable) { + cdkBuilder.sharePointConfiguration(sharePointConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + override + fun sharePointConfiguration(sharePointConfiguration: SharePointDataSourceConfigurationProperty) { + cdkBuilder.sharePointConfiguration(sharePointConfiguration.let(SharePointDataSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sharePointConfiguration The configuration information to connect to SharePoint as + * your data source. + * + * SharePoint data source connector is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("24bdad08248d1f7c094ca2e105d385ab5d07943be3ad2a295ddb1edc9f4719c4") + override + fun sharePointConfiguration(sharePointConfiguration: SharePointDataSourceConfigurationProperty.Builder.() -> Unit): + Unit = + sharePointConfiguration(SharePointDataSourceConfigurationProperty(sharePointConfiguration)) + + /** + * @param type The type of data source. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + override fun webConfiguration(webConfiguration: IResolvable) { + cdkBuilder.webConfiguration(webConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + override fun webConfiguration(webConfiguration: WebDataSourceConfigurationProperty) { + cdkBuilder.webConfiguration(webConfiguration.let(WebDataSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param webConfiguration The configuration of web URLs to crawl for your data source. You + * should be authorized to crawl the URLs. + * + * Crawling web URLs as your data source is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2191a6af944679c6fed69f5c04d48f89054a5eac6797b632342f1cfa21c2e046") + override + fun webConfiguration(webConfiguration: WebDataSourceConfigurationProperty.Builder.() -> Unit): + Unit = webConfiguration(WebDataSourceConfigurationProperty(webConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + DataSourceConfigurationProperty { + /** + * The configuration information to connect to Confluence as your data source. + * + * + * Confluence data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-confluenceconfiguration) + */ + override fun confluenceConfiguration(): Any? = unwrap(this).getConfluenceConfiguration() + + /** + * The configuration information to connect to Amazon S3 as your data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-s3configuration) + */ + override fun s3Configuration(): Any? = unwrap(this).getS3Configuration() + + /** + * The configuration information to connect to Salesforce as your data source. + * + * + * Salesforce data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-salesforceconfiguration) + */ + override fun salesforceConfiguration(): Any? = unwrap(this).getSalesforceConfiguration() + + /** + * The configuration information to connect to SharePoint as your data source. + * + * + * SharePoint data source connector is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-sharepointconfiguration) + */ + override fun sharePointConfiguration(): Any? = unwrap(this).getSharePointConfiguration() + + /** + * The type of data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-type) + */ + override fun type(): String = unwrap(this).getType() + + /** + * The configuration of web URLs to crawl for your data source. You should be authorized to + * crawl the URLs. + * + * + * Crawling web URLs as your data source is in preview release and is subject to change. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-datasourceconfiguration.html#cfn-bedrock-datasource-datasourceconfiguration-webconfiguration) + */ + override fun webConfiguration(): Any? = unwrap(this).getWebConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DataSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty): + DataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + DataSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.DataSourceConfigurationProperty + } + } + + /** + * Configurations for when you choose fixed-size chunking. + * + * If you set the `chunkingStrategy` as `NONE` , exclude this field. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FixedSizeChunkingConfigurationProperty fixedSizeChunkingConfigurationProperty = + * FixedSizeChunkingConfigurationProperty.builder() + * .maxTokens(123) + * .overlapPercentage(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html) + */ + public interface FixedSizeChunkingConfigurationProperty { + /** + * The maximum number of tokens to include in a chunk. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-maxtokens) + */ + public fun maxTokens(): Number + + /** + * The percentage of overlap between adjacent chunks of a data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-overlappercentage) + */ + public fun overlapPercentage(): Number + + /** + * A builder for [FixedSizeChunkingConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens to include in a chunk. + */ + public fun maxTokens(maxTokens: Number) + + /** + * @param overlapPercentage The percentage of overlap between adjacent chunks of a data + * source. + */ + public fun overlapPercentage(overlapPercentage: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens to include in a chunk. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + /** + * @param overlapPercentage The percentage of overlap between adjacent chunks of a data + * source. + */ + override fun overlapPercentage(overlapPercentage: Number) { + cdkBuilder.overlapPercentage(overlapPercentage) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty, + ) : CdkObject(cdkObject), + FixedSizeChunkingConfigurationProperty { + /** + * The maximum number of tokens to include in a chunk. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-maxtokens) + */ + override fun maxTokens(): Number = unwrap(this).getMaxTokens() + + /** + * The percentage of overlap between adjacent chunks of a data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-fixedsizechunkingconfiguration.html#cfn-bedrock-datasource-fixedsizechunkingconfiguration-overlappercentage) + */ + override fun overlapPercentage(): Number = unwrap(this).getOverlapPercentage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FixedSizeChunkingConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty): + FixedSizeChunkingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FixedSizeChunkingConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FixedSizeChunkingConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty + } + } + + /** + * Settings for hierarchical document chunking for a data source. + * + * Hierarchical chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the first layer. + * + * You configure the number of tokens to overlap, or repeat across adjacent chunks. For example, + * if you set overlap tokens to 60, the last 60 tokens in the first chunk are also included at the + * beginning of the second chunk. For each layer, you must also configure the maximum number of + * tokens in a chunk. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * HierarchicalChunkingConfigurationProperty hierarchicalChunkingConfigurationProperty = + * HierarchicalChunkingConfigurationProperty.builder() + * .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build())) + * .overlapTokens(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html) + */ + public interface HierarchicalChunkingConfigurationProperty { + /** + * Token settings for each layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-levelconfigurations) + */ + public fun levelConfigurations(): Any + + /** + * The number of tokens to repeat across chunks in the same layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-overlaptokens) + */ + public fun overlapTokens(): Number + + /** + * A builder for [HierarchicalChunkingConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param levelConfigurations Token settings for each layer. + */ + public fun levelConfigurations(levelConfigurations: IResolvable) + + /** + * @param levelConfigurations Token settings for each layer. + */ + public fun levelConfigurations(levelConfigurations: List) + + /** + * @param levelConfigurations Token settings for each layer. + */ + public fun levelConfigurations(vararg levelConfigurations: Any) + + /** + * @param overlapTokens The number of tokens to repeat across chunks in the same layer. + */ + public fun overlapTokens(overlapTokens: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty.builder() + + /** + * @param levelConfigurations Token settings for each layer. + */ + override fun levelConfigurations(levelConfigurations: IResolvable) { + cdkBuilder.levelConfigurations(levelConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelConfigurations Token settings for each layer. + */ + override fun levelConfigurations(levelConfigurations: List) { + cdkBuilder.levelConfigurations(levelConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param levelConfigurations Token settings for each layer. + */ + override fun levelConfigurations(vararg levelConfigurations: Any): Unit = + levelConfigurations(levelConfigurations.toList()) + + /** + * @param overlapTokens The number of tokens to repeat across chunks in the same layer. + */ + override fun overlapTokens(overlapTokens: Number) { + cdkBuilder.overlapTokens(overlapTokens) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty, + ) : CdkObject(cdkObject), + HierarchicalChunkingConfigurationProperty { + /** + * Token settings for each layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-levelconfigurations) + */ + override fun levelConfigurations(): Any = unwrap(this).getLevelConfigurations() + + /** + * The number of tokens to repeat across chunks in the same layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-overlaptokens) + */ + override fun overlapTokens(): Number = unwrap(this).getOverlapTokens() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + HierarchicalChunkingConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty): + HierarchicalChunkingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + HierarchicalChunkingConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: HierarchicalChunkingConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingConfigurationProperty + } + } + + /** + * Token settings for a layer in a hierarchical chunking configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * HierarchicalChunkingLevelConfigurationProperty hierarchicalChunkingLevelConfigurationProperty = + * HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkinglevelconfiguration.html) + */ + public interface HierarchicalChunkingLevelConfigurationProperty { + /** + * The maximum number of tokens that a chunk can contain in this layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkinglevelconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkinglevelconfiguration-maxtokens) + */ + public fun maxTokens(): Number + + /** + * A builder for [HierarchicalChunkingLevelConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens that a chunk can contain in this layer. + */ + public fun maxTokens(maxTokens: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens that a chunk can contain in this layer. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty, + ) : CdkObject(cdkObject), + HierarchicalChunkingLevelConfigurationProperty { + /** + * The maximum number of tokens that a chunk can contain in this layer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkinglevelconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkinglevelconfiguration-maxtokens) + */ + override fun maxTokens(): Number = unwrap(this).getMaxTokens() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + HierarchicalChunkingLevelConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty): + HierarchicalChunkingLevelConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + HierarchicalChunkingLevelConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: HierarchicalChunkingLevelConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.HierarchicalChunkingLevelConfigurationProperty + } + } + + /** + * A location for storing content from data sources temporarily as it is processed by custom + * components in the ingestion pipeline. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * IntermediateStorageProperty intermediateStorageProperty = IntermediateStorageProperty.builder() + * .s3Location(S3LocationProperty.builder() + * .uri("uri") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-intermediatestorage.html) + */ + public interface IntermediateStorageProperty { + /** + * An S3 bucket path. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-intermediatestorage.html#cfn-bedrock-datasource-intermediatestorage-s3location) + */ + public fun s3Location(): Any + + /** + * A builder for [IntermediateStorageProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3Location An S3 bucket path. + */ + public fun s3Location(s3Location: IResolvable) + + /** + * @param s3Location An S3 bucket path. + */ + public fun s3Location(s3Location: S3LocationProperty) + + /** + * @param s3Location An S3 bucket path. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11f0f97d36fad6804c443016b968862e873abbede56c9de2a8f16b609972fef9") + public fun s3Location(s3Location: S3LocationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty.builder() + + /** + * @param s3Location An S3 bucket path. + */ + override fun s3Location(s3Location: IResolvable) { + cdkBuilder.s3Location(s3Location.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3Location An S3 bucket path. + */ + override fun s3Location(s3Location: S3LocationProperty) { + cdkBuilder.s3Location(s3Location.let(S3LocationProperty.Companion::unwrap)) + } + + /** + * @param s3Location An S3 bucket path. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11f0f97d36fad6804c443016b968862e873abbede56c9de2a8f16b609972fef9") + override fun s3Location(s3Location: S3LocationProperty.Builder.() -> Unit): Unit = + s3Location(S3LocationProperty(s3Location)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty, + ) : CdkObject(cdkObject), + IntermediateStorageProperty { + /** + * An S3 bucket path. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-intermediatestorage.html#cfn-bedrock-datasource-intermediatestorage-s3location) + */ + override fun s3Location(): Any = unwrap(this).getS3Location() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IntermediateStorageProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty): + IntermediateStorageProperty = CdkObjectWrappers.wrap(cdkObject) as? + IntermediateStorageProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IntermediateStorageProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.IntermediateStorageProperty + } + } + + /** + * Settings for parsing document contents. + * + * By default, the service converts the contents of each document into text before splitting it + * into chunks. To improve processing of PDF files with tables and images, you can configure the data + * source to convert the pages of text into images and use a model to describe the contents of each + * page. + * + * To use a model to parse PDF documents, set the parsing strategy to `BEDROCK_FOUNDATION_MODEL` + * and specify the model or [inference + * profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) to use + * by ARN. You can also override the default parsing prompt with instructions for how to interpret + * images and tables in your documents. The following models are supported. + * + * * Anthropic Claude 3 Sonnet - `anthropic.claude-3-sonnet-20240229-v1:0` + * * Anthropic Claude 3 Haiku - `anthropic.claude-3-haiku-20240307-v1:0` + * + * You can get the ARN of a model with the + * [ListFoundationModels](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html) + * action. Standard model usage charges apply for the foundation model parsing strategy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ParsingConfigurationProperty parsingConfigurationProperty = + * ParsingConfigurationProperty.builder() + * .parsingStrategy("parsingStrategy") + * // the properties below are optional + * .bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder() + * .modelArn("modelArn") + * // the properties below are optional + * .parsingPrompt(ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html) + */ + public interface ParsingConfigurationProperty { + /** + * Settings for a foundation model used to parse documents for a data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-bedrockfoundationmodelconfiguration) + */ + public fun bedrockFoundationModelConfiguration(): Any? = + unwrap(this).getBedrockFoundationModelConfiguration() + + /** + * The parsing strategy for the data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-parsingstrategy) + */ + public fun parsingStrategy(): String + + /** + * A builder for [ParsingConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + public + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: IResolvable) + + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + public + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: BedrockFoundationModelConfigurationProperty) + + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0ca0d63d2261f8329ba49af91b7a2211b1818236da7c3e615b8efc52551e174b") + public + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: BedrockFoundationModelConfigurationProperty.Builder.() -> Unit) + + /** + * @param parsingStrategy The parsing strategy for the data source. + */ + public fun parsingStrategy(parsingStrategy: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty.builder() + + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + override + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: IResolvable) { + cdkBuilder.bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + override + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: BedrockFoundationModelConfigurationProperty) { + cdkBuilder.bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration.let(BedrockFoundationModelConfigurationProperty.Companion::unwrap)) + } + + /** + * @param bedrockFoundationModelConfiguration Settings for a foundation model used to parse + * documents for a data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0ca0d63d2261f8329ba49af91b7a2211b1818236da7c3e615b8efc52551e174b") + override + fun bedrockFoundationModelConfiguration(bedrockFoundationModelConfiguration: BedrockFoundationModelConfigurationProperty.Builder.() -> Unit): + Unit = + bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty(bedrockFoundationModelConfiguration)) + + /** + * @param parsingStrategy The parsing strategy for the data source. + */ + override fun parsingStrategy(parsingStrategy: String) { + cdkBuilder.parsingStrategy(parsingStrategy) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty, + ) : CdkObject(cdkObject), + ParsingConfigurationProperty { + /** + * Settings for a foundation model used to parse documents for a data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-bedrockfoundationmodelconfiguration) + */ + override fun bedrockFoundationModelConfiguration(): Any? = + unwrap(this).getBedrockFoundationModelConfiguration() + + /** + * The parsing strategy for the data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-parsingstrategy) + */ + override fun parsingStrategy(): String = unwrap(this).getParsingStrategy() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParsingConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty): + ParsingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ParsingConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParsingConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty + } + } + + /** + * Instructions for interpreting the contents of a document. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ParsingPromptProperty parsingPromptProperty = ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingprompt.html) + */ + public interface ParsingPromptProperty { + /** + * Instructions for interpreting the contents of a document. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingprompt.html#cfn-bedrock-datasource-parsingprompt-parsingprompttext) + */ + public fun parsingPromptText(): String + + /** + * A builder for [ParsingPromptProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param parsingPromptText Instructions for interpreting the contents of a document. + */ + public fun parsingPromptText(parsingPromptText: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty.builder() + + /** + * @param parsingPromptText Instructions for interpreting the contents of a document. + */ + override fun parsingPromptText(parsingPromptText: String) { + cdkBuilder.parsingPromptText(parsingPromptText) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty, + ) : CdkObject(cdkObject), + ParsingPromptProperty { + /** + * Instructions for interpreting the contents of a document. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingprompt.html#cfn-bedrock-datasource-parsingprompt-parsingprompttext) + */ + override fun parsingPromptText(): String = unwrap(this).getParsingPromptText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParsingPromptProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty): + ParsingPromptProperty = CdkObjectWrappers.wrap(cdkObject) as? ParsingPromptProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParsingPromptProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingPromptProperty + } + } + + /** + * The configuration of filtering certain objects or content types of the data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PatternObjectFilterConfigurationProperty patternObjectFilterConfigurationProperty = + * PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilterconfiguration.html) + */ + public interface PatternObjectFilterConfigurationProperty { + /** + * The configuration of specific filters applied to your data source content. + * + * You can filter out or include certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilterconfiguration.html#cfn-bedrock-datasource-patternobjectfilterconfiguration-filters) + */ + public fun filters(): Any + + /** + * A builder for [PatternObjectFilterConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + public fun filters(filters: IResolvable) + + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + public fun filters(filters: List) + + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + public fun filters(vararg filters: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty.builder() + + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + override fun filters(filters: IResolvable) { + cdkBuilder.filters(filters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + override fun filters(filters: List) { + cdkBuilder.filters(filters.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param filters The configuration of specific filters applied to your data source content. + * You can filter out or include certain content. + */ + override fun filters(vararg filters: Any): Unit = filters(filters.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty, + ) : CdkObject(cdkObject), + PatternObjectFilterConfigurationProperty { + /** + * The configuration of specific filters applied to your data source content. + * + * You can filter out or include certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilterconfiguration.html#cfn-bedrock-datasource-patternobjectfilterconfiguration-filters) + */ + override fun filters(): Any = unwrap(this).getFilters() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PatternObjectFilterConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty): + PatternObjectFilterConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PatternObjectFilterConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PatternObjectFilterConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty + } + } + + /** + * The specific filters applied to your data source content. + * + * You can filter out or include certain content. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PatternObjectFilterProperty patternObjectFilterProperty = PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html) + */ + public interface PatternObjectFilterProperty { + /** + * A list of one or more exclusion regular expression patterns to exclude certain object types + * that adhere to the pattern. + * + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-exclusionfilters) + */ + public fun exclusionFilters(): List = unwrap(this).getExclusionFilters() ?: emptyList() + + /** + * A list of one or more inclusion regular expression patterns to include certain object types + * that adhere to the pattern. + * + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-inclusionfilters) + */ + public fun inclusionFilters(): List = unwrap(this).getInclusionFilters() ?: emptyList() + + /** + * The supported object type or content type of the data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-objecttype) + */ + public fun objectType(): String + + /** + * A builder for [PatternObjectFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + public fun exclusionFilters(exclusionFilters: List) + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + public fun exclusionFilters(vararg exclusionFilters: String) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + public fun inclusionFilters(inclusionFilters: List) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + public fun inclusionFilters(vararg inclusionFilters: String) + + /** + * @param objectType The supported object type or content type of the data source. + */ + public fun objectType(objectType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty.builder() + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + override fun exclusionFilters(exclusionFilters: List) { + cdkBuilder.exclusionFilters(exclusionFilters) + } + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + override fun exclusionFilters(vararg exclusionFilters: String): Unit = + exclusionFilters(exclusionFilters.toList()) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + override fun inclusionFilters(inclusionFilters: List) { + cdkBuilder.inclusionFilters(inclusionFilters) + } + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain object types that adhere to the pattern. + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + */ + override fun inclusionFilters(vararg inclusionFilters: String): Unit = + inclusionFilters(inclusionFilters.toList()) + + /** + * @param objectType The supported object type or content type of the data source. + */ + override fun objectType(objectType: String) { + cdkBuilder.objectType(objectType) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty, + ) : CdkObject(cdkObject), + PatternObjectFilterProperty { + /** + * A list of one or more exclusion regular expression patterns to exclude certain object types + * that adhere to the pattern. + * + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-exclusionfilters) + */ + override fun exclusionFilters(): List = unwrap(this).getExclusionFilters() ?: + emptyList() + + /** + * A list of one or more inclusion regular expression patterns to include certain object types + * that adhere to the pattern. + * + * If you specify an inclusion and exclusion filter/pattern and both match a document, the + * exclusion filter takes precedence and the document isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-inclusionfilters) + */ + override fun inclusionFilters(): List = unwrap(this).getInclusionFilters() ?: + emptyList() + + /** + * The supported object type or content type of the data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-patternobjectfilter.html#cfn-bedrock-datasource-patternobjectfilter-objecttype) + */ + override fun objectType(): String = unwrap(this).getObjectType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PatternObjectFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty): + PatternObjectFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? + PatternObjectFilterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PatternObjectFilterProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty + } + } + + /** + * The configuration information to connect to Amazon S3 as your data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * S3DataSourceConfigurationProperty s3DataSourceConfigurationProperty = + * S3DataSourceConfigurationProperty.builder() + * .bucketArn("bucketArn") + * // the properties below are optional + * .bucketOwnerAccountId("bucketOwnerAccountId") + * .inclusionPrefixes(List.of("inclusionPrefixes")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html) + */ + public interface S3DataSourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the S3 bucket that contains your data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketarn) + */ + public fun bucketArn(): String + + /** + * The account ID for the owner of the S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketowneraccountid) + */ + public fun bucketOwnerAccountId(): String? = unwrap(this).getBucketOwnerAccountId() + + /** + * A list of S3 prefixes to include certain files or content. + * + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-inclusionprefixes) + */ + public fun inclusionPrefixes(): List = unwrap(this).getInclusionPrefixes() ?: + emptyList() + + /** + * A builder for [S3DataSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketArn The Amazon Resource Name (ARN) of the S3 bucket that contains your data. + */ + public fun bucketArn(bucketArn: String) + + /** + * @param bucketOwnerAccountId The account ID for the owner of the S3 bucket. + */ + public fun bucketOwnerAccountId(bucketOwnerAccountId: String) + + /** + * @param inclusionPrefixes A list of S3 prefixes to include certain files or content. + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + */ + public fun inclusionPrefixes(inclusionPrefixes: List) + + /** + * @param inclusionPrefixes A list of S3 prefixes to include certain files or content. + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + */ + public fun inclusionPrefixes(vararg inclusionPrefixes: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty.builder() + + /** + * @param bucketArn The Amazon Resource Name (ARN) of the S3 bucket that contains your data. + */ + override fun bucketArn(bucketArn: String) { + cdkBuilder.bucketArn(bucketArn) + } + + /** + * @param bucketOwnerAccountId The account ID for the owner of the S3 bucket. + */ + override fun bucketOwnerAccountId(bucketOwnerAccountId: String) { + cdkBuilder.bucketOwnerAccountId(bucketOwnerAccountId) + } + + /** + * @param inclusionPrefixes A list of S3 prefixes to include certain files or content. + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + */ + override fun inclusionPrefixes(inclusionPrefixes: List) { + cdkBuilder.inclusionPrefixes(inclusionPrefixes) + } + + /** + * @param inclusionPrefixes A list of S3 prefixes to include certain files or content. + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + */ + override fun inclusionPrefixes(vararg inclusionPrefixes: String): Unit = + inclusionPrefixes(inclusionPrefixes.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + S3DataSourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the S3 bucket that contains your data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketarn) + */ + override fun bucketArn(): String = unwrap(this).getBucketArn() + + /** + * The account ID for the owner of the S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-bucketowneraccountid) + */ + override fun bucketOwnerAccountId(): String? = unwrap(this).getBucketOwnerAccountId() + + /** + * A list of S3 prefixes to include certain files or content. + * + * For more information, see [Organizing objects using + * prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-inclusionprefixes) + */ + override fun inclusionPrefixes(): List = unwrap(this).getInclusionPrefixes() ?: + emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + S3DataSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty): + S3DataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + S3DataSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3DataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.S3DataSourceConfigurationProperty + } + } + + /** + * An Amazon S3 location. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * S3LocationProperty s3LocationProperty = S3LocationProperty.builder() + * .uri("uri") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3location.html) + */ + public interface S3LocationProperty { + /** + * The location's URI. + * + * For example, `s3://my-bucket/chunk-processor/` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3location.html#cfn-bedrock-datasource-s3location-uri) + */ + public fun uri(): String + + /** + * A builder for [S3LocationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param uri The location's URI. + * For example, `s3://my-bucket/chunk-processor/` . + */ + public fun uri(uri: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty.builder() + + /** + * @param uri The location's URI. + * For example, `s3://my-bucket/chunk-processor/` . + */ + override fun uri(uri: String) { + cdkBuilder.uri(uri) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty, + ) : CdkObject(cdkObject), + S3LocationProperty { + /** + * The location's URI. + * + * For example, `s3://my-bucket/chunk-processor/` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3location.html#cfn-bedrock-datasource-s3location-uri) + */ + override fun uri(): String = unwrap(this).getUri() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3LocationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty): + S3LocationProperty = CdkObjectWrappers.wrap(cdkObject) as? S3LocationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3LocationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.S3LocationProperty + } + } + + /** + * The configuration of the Salesforce content. + * + * For example, configuring specific types of Salesforce content. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SalesforceCrawlerConfigurationProperty salesforceCrawlerConfigurationProperty = + * SalesforceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcecrawlerconfiguration.html) + */ + public interface SalesforceCrawlerConfigurationProperty { + /** + * The configuration of filtering the Salesforce content. + * + * For example, configuring regular expression patterns to include or exclude certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcecrawlerconfiguration.html#cfn-bedrock-datasource-salesforcecrawlerconfiguration-filterconfiguration) + */ + public fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + + /** + * A builder for [SalesforceCrawlerConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + public fun filterConfiguration(filterConfiguration: IResolvable) + + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + public fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) + + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cb3e2fe6e99c522298918d06da51dadb8018d29800aeeaed86747b57007052ff") + public + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty.builder() + + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + override fun filterConfiguration(filterConfiguration: IResolvable) { + cdkBuilder.filterConfiguration(filterConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + override fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) { + cdkBuilder.filterConfiguration(filterConfiguration.let(CrawlFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param filterConfiguration The configuration of filtering the Salesforce content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cb3e2fe6e99c522298918d06da51dadb8018d29800aeeaed86747b57007052ff") + override + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit): + Unit = filterConfiguration(CrawlFilterConfigurationProperty(filterConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty, + ) : CdkObject(cdkObject), + SalesforceCrawlerConfigurationProperty { + /** + * The configuration of filtering the Salesforce content. + * + * For example, configuring regular expression patterns to include or exclude certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcecrawlerconfiguration.html#cfn-bedrock-datasource-salesforcecrawlerconfiguration-filterconfiguration) + */ + override fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SalesforceCrawlerConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty): + SalesforceCrawlerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SalesforceCrawlerConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SalesforceCrawlerConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceCrawlerConfigurationProperty + } + } + + /** + * The configuration information to connect to Salesforce as your data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SalesforceDataSourceConfigurationProperty salesforceDataSourceConfigurationProperty = + * SalesforceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SalesforceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SalesforceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcedatasourceconfiguration.html) + */ + public interface SalesforceDataSourceConfigurationProperty { + /** + * The configuration of the Salesforce content. + * + * For example, configuring specific types of Salesforce content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcedatasourceconfiguration.html#cfn-bedrock-datasource-salesforcedatasourceconfiguration-crawlerconfiguration) + */ + public fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The endpoint information to connect to your Salesforce data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcedatasourceconfiguration.html#cfn-bedrock-datasource-salesforcedatasourceconfiguration-sourceconfiguration) + */ + public fun sourceConfiguration(): Any + + /** + * A builder for [SalesforceDataSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + public fun crawlerConfiguration(crawlerConfiguration: IResolvable) + + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + public fun crawlerConfiguration(crawlerConfiguration: SalesforceCrawlerConfigurationProperty) + + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d1a4a5bebd3702f118e20fe7d9b85d9e7229e1a81e0a94038696aa95b5bb535a") + public + fun crawlerConfiguration(crawlerConfiguration: SalesforceCrawlerConfigurationProperty.Builder.() -> Unit) + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + public fun sourceConfiguration(sourceConfiguration: SalesforceSourceConfigurationProperty) + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b0e116ceb2fad780b6bcc1b5e37fc1beb7b9d0670a7a283a6e56023cceb0f92") + public + fun sourceConfiguration(sourceConfiguration: SalesforceSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty.builder() + + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + override fun crawlerConfiguration(crawlerConfiguration: IResolvable) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + override + fun crawlerConfiguration(crawlerConfiguration: SalesforceCrawlerConfigurationProperty) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(SalesforceCrawlerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The configuration of the Salesforce content. + * For example, configuring specific types of Salesforce content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d1a4a5bebd3702f118e20fe7d9b85d9e7229e1a81e0a94038696aa95b5bb535a") + override + fun crawlerConfiguration(crawlerConfiguration: SalesforceCrawlerConfigurationProperty.Builder.() -> Unit): + Unit = crawlerConfiguration(SalesforceCrawlerConfigurationProperty(crawlerConfiguration)) + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + override fun sourceConfiguration(sourceConfiguration: SalesforceSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(SalesforceSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The endpoint information to connect to your Salesforce data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b0e116ceb2fad780b6bcc1b5e37fc1beb7b9d0670a7a283a6e56023cceb0f92") + override + fun sourceConfiguration(sourceConfiguration: SalesforceSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(SalesforceSourceConfigurationProperty(sourceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + SalesforceDataSourceConfigurationProperty { + /** + * The configuration of the Salesforce content. + * + * For example, configuring specific types of Salesforce content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcedatasourceconfiguration.html#cfn-bedrock-datasource-salesforcedatasourceconfiguration-crawlerconfiguration) + */ + override fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The endpoint information to connect to your Salesforce data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcedatasourceconfiguration.html#cfn-bedrock-datasource-salesforcedatasourceconfiguration-sourceconfiguration) + */ + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SalesforceDataSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty): + SalesforceDataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SalesforceDataSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SalesforceDataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceDataSourceConfigurationProperty + } + } + + /** + * The endpoint information to connect to your Salesforce data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SalesforceSourceConfigurationProperty salesforceSourceConfigurationProperty = + * SalesforceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostUrl("hostUrl") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html) + */ + public interface SalesforceSourceConfigurationProperty { + /** + * The supported authentication type to authenticate and connect to your Salesforce instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-authtype) + */ + public fun authType(): String + + /** + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your Salesforce instance URL. + * + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Salesforce connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-credentialssecretarn) + */ + public fun credentialsSecretArn(): String + + /** + * The Salesforce host URL or instance URL. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-hosturl) + */ + public fun hostUrl(): String + + /** + * A builder for [SalesforceSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param authType The supported authentication type to authenticate and connect to your + * Salesforce instance. + */ + public fun authType(authType: String) + + /** + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your Salesforce instance URL. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Salesforce connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector) + * . + */ + public fun credentialsSecretArn(credentialsSecretArn: String) + + /** + * @param hostUrl The Salesforce host URL or instance URL. + */ + public fun hostUrl(hostUrl: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty.builder() + + /** + * @param authType The supported authentication type to authenticate and connect to your + * Salesforce instance. + */ + override fun authType(authType: String) { + cdkBuilder.authType(authType) + } + + /** + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your Salesforce instance URL. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Salesforce connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector) + * . + */ + override fun credentialsSecretArn(credentialsSecretArn: String) { + cdkBuilder.credentialsSecretArn(credentialsSecretArn) + } + + /** + * @param hostUrl The Salesforce host URL or instance URL. + */ + override fun hostUrl(hostUrl: String) { + cdkBuilder.hostUrl(hostUrl) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty, + ) : CdkObject(cdkObject), + SalesforceSourceConfigurationProperty { + /** + * The supported authentication type to authenticate and connect to your Salesforce instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-authtype) + */ + override fun authType(): String = unwrap(this).getAuthType() + + /** + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your Salesforce instance URL. + * + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [Salesforce connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-credentialssecretarn) + */ + override fun credentialsSecretArn(): String = unwrap(this).getCredentialsSecretArn() + + /** + * The Salesforce host URL or instance URL. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-hosturl) + */ + override fun hostUrl(): String = unwrap(this).getHostUrl() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SalesforceSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty): + SalesforceSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SalesforceSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SalesforceSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SalesforceSourceConfigurationProperty + } + } + + /** + * The seed or starting point URL. + * + * You should be authorized to crawl the URL. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SeedUrlProperty seedUrlProperty = SeedUrlProperty.builder() + * .url("url") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-seedurl.html) + */ + public interface SeedUrlProperty { + /** + * A seed or starting point URL. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-seedurl.html#cfn-bedrock-datasource-seedurl-url) + */ + public fun url(): String + + /** + * A builder for [SeedUrlProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param url A seed or starting point URL. + */ + public fun url(url: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty.builder() + + /** + * @param url A seed or starting point URL. + */ + override fun url(url: String) { + cdkBuilder.url(url) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty, + ) : CdkObject(cdkObject), + SeedUrlProperty { + /** + * A seed or starting point URL. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-seedurl.html#cfn-bedrock-datasource-seedurl-url) + */ + override fun url(): String = unwrap(this).getUrl() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SeedUrlProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty): + SeedUrlProperty = CdkObjectWrappers.wrap(cdkObject) as? SeedUrlProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SeedUrlProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SeedUrlProperty + } + } + + /** + * Settings for semantic document chunking for a data source. + * + * Semantic chunking splits a document into into smaller documents based on groups of similar + * content derived from the text with natural language processing. + * + * With semantic chunking, each sentence is compared to the next to determine how similar they + * are. You specify a threshold in the form of a percentile, where adjacent sentences that are less + * similar than that percentage of sentence pairs are divided into separate chunks. For example, if + * you set the threshold to 90, then the 10 percent of sentence pairs that are least similar are + * split. So if you have 101 sentences, 100 sentence pairs are compared, and the 10 with the least + * similarity are split, creating 11 chunks. These chunks are further split if they exceed the max + * token size. + * + * You must also specify a buffer size, which determines whether sentences are compared in + * isolation, or within a moving context window that includes the previous and following sentence. + * For example, if you set the buffer size to `1` , the embedding for sentence 10 is derived from + * sentences 9, 10, and 11 combined. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SemanticChunkingConfigurationProperty semanticChunkingConfigurationProperty = + * SemanticChunkingConfigurationProperty.builder() + * .breakpointPercentileThreshold(123) + * .bufferSize(123) + * .maxTokens(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html) + */ + public interface SemanticChunkingConfigurationProperty { + /** + * The dissimilarity threshold for splitting chunks. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-breakpointpercentilethreshold) + */ + public fun breakpointPercentileThreshold(): Number + + /** + * The buffer size. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-buffersize) + */ + public fun bufferSize(): Number + + /** + * The maximum number of tokens that a chunk can contain. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-maxtokens) + */ + public fun maxTokens(): Number + + /** + * A builder for [SemanticChunkingConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param breakpointPercentileThreshold The dissimilarity threshold for splitting chunks. + */ + public fun breakpointPercentileThreshold(breakpointPercentileThreshold: Number) + + /** + * @param bufferSize The buffer size. + */ + public fun bufferSize(bufferSize: Number) + + /** + * @param maxTokens The maximum number of tokens that a chunk can contain. + */ + public fun maxTokens(maxTokens: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty.builder() + + /** + * @param breakpointPercentileThreshold The dissimilarity threshold for splitting chunks. + */ + override fun breakpointPercentileThreshold(breakpointPercentileThreshold: Number) { + cdkBuilder.breakpointPercentileThreshold(breakpointPercentileThreshold) + } + + /** + * @param bufferSize The buffer size. + */ + override fun bufferSize(bufferSize: Number) { + cdkBuilder.bufferSize(bufferSize) + } + + /** + * @param maxTokens The maximum number of tokens that a chunk can contain. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty, + ) : CdkObject(cdkObject), + SemanticChunkingConfigurationProperty { + /** + * The dissimilarity threshold for splitting chunks. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-breakpointpercentilethreshold) + */ + override fun breakpointPercentileThreshold(): Number = + unwrap(this).getBreakpointPercentileThreshold() + + /** + * The buffer size. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-buffersize) + */ + override fun bufferSize(): Number = unwrap(this).getBufferSize() + + /** + * The maximum number of tokens that a chunk can contain. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-maxtokens) + */ + override fun maxTokens(): Number = unwrap(this).getMaxTokens() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SemanticChunkingConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty): + SemanticChunkingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SemanticChunkingConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SemanticChunkingConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SemanticChunkingConfigurationProperty + } + } + + /** + * Contains the configuration for server-side encryption. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ServerSideEncryptionConfigurationProperty serverSideEncryptionConfigurationProperty = + * ServerSideEncryptionConfigurationProperty.builder() + * .kmsKeyArn("kmsKeyArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html) + */ + public interface ServerSideEncryptionConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html#cfn-bedrock-datasource-serversideencryptionconfiguration-kmskeyarn) + */ + public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * A builder for [ServerSideEncryptionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the + * resource. + */ + public fun kmsKeyArn(kmsKeyArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty.builder() + + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the + * resource. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty, + ) : CdkObject(cdkObject), + ServerSideEncryptionConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-serversideencryptionconfiguration.html#cfn-bedrock-datasource-serversideencryptionconfiguration-kmskeyarn) + */ + override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ServerSideEncryptionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty): + ServerSideEncryptionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ServerSideEncryptionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ServerSideEncryptionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty + } + } + + /** + * The configuration of the SharePoint content. + * + * For example, configuring specific types of SharePoint content. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SharePointCrawlerConfigurationProperty sharePointCrawlerConfigurationProperty = + * SharePointCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointcrawlerconfiguration.html) + */ + public interface SharePointCrawlerConfigurationProperty { + /** + * The configuration of filtering the SharePoint content. + * + * For example, configuring regular expression patterns to include or exclude certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointcrawlerconfiguration.html#cfn-bedrock-datasource-sharepointcrawlerconfiguration-filterconfiguration) + */ + public fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + + /** + * A builder for [SharePointCrawlerConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + public fun filterConfiguration(filterConfiguration: IResolvable) + + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + public fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) + + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6cf98b8cbad3c087be8c6c4663b83b3a702cdfdd349bff7ae96226cd896f1cd7") + public + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty.builder() + + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + override fun filterConfiguration(filterConfiguration: IResolvable) { + cdkBuilder.filterConfiguration(filterConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + override fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty) { + cdkBuilder.filterConfiguration(filterConfiguration.let(CrawlFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param filterConfiguration The configuration of filtering the SharePoint content. + * For example, configuring regular expression patterns to include or exclude certain content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6cf98b8cbad3c087be8c6c4663b83b3a702cdfdd349bff7ae96226cd896f1cd7") + override + fun filterConfiguration(filterConfiguration: CrawlFilterConfigurationProperty.Builder.() -> Unit): + Unit = filterConfiguration(CrawlFilterConfigurationProperty(filterConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty, + ) : CdkObject(cdkObject), + SharePointCrawlerConfigurationProperty { + /** + * The configuration of filtering the SharePoint content. + * + * For example, configuring regular expression patterns to include or exclude certain content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointcrawlerconfiguration.html#cfn-bedrock-datasource-sharepointcrawlerconfiguration-filterconfiguration) + */ + override fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SharePointCrawlerConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty): + SharePointCrawlerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SharePointCrawlerConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SharePointCrawlerConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointCrawlerConfigurationProperty + } + } + + /** + * The configuration information to connect to SharePoint as your data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SharePointDataSourceConfigurationProperty sharePointDataSourceConfigurationProperty = + * SharePointDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SharePointSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .domain("domain") + * .hostType("hostType") + * .siteUrls(List.of("siteUrls")) + * // the properties below are optional + * .tenantId("tenantId") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SharePointCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html) + */ + public interface SharePointDataSourceConfigurationProperty { + /** + * The configuration of the SharePoint content. + * + * For example, configuring specific types of SharePoint content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-crawlerconfiguration) + */ + public fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The endpoint information to connect to your SharePoint data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-sourceconfiguration) + */ + public fun sourceConfiguration(): Any + + /** + * A builder for [SharePointDataSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + public fun crawlerConfiguration(crawlerConfiguration: IResolvable) + + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + public fun crawlerConfiguration(crawlerConfiguration: SharePointCrawlerConfigurationProperty) + + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("31b434b7d52b4bc754f637c6b4cbdd3f5774e4f984807c7c0403b32201f7b415") + public + fun crawlerConfiguration(crawlerConfiguration: SharePointCrawlerConfigurationProperty.Builder.() -> Unit) + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + public fun sourceConfiguration(sourceConfiguration: SharePointSourceConfigurationProperty) + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e436fb07e856f66dfd0c5f5082d1328d43720e4b5de78e263f68e6b7e0954a6f") + public + fun sourceConfiguration(sourceConfiguration: SharePointSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty.builder() + + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + override fun crawlerConfiguration(crawlerConfiguration: IResolvable) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + override + fun crawlerConfiguration(crawlerConfiguration: SharePointCrawlerConfigurationProperty) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(SharePointCrawlerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The configuration of the SharePoint content. + * For example, configuring specific types of SharePoint content. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("31b434b7d52b4bc754f637c6b4cbdd3f5774e4f984807c7c0403b32201f7b415") + override + fun crawlerConfiguration(crawlerConfiguration: SharePointCrawlerConfigurationProperty.Builder.() -> Unit): + Unit = crawlerConfiguration(SharePointCrawlerConfigurationProperty(crawlerConfiguration)) + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + override fun sourceConfiguration(sourceConfiguration: SharePointSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(SharePointSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The endpoint information to connect to your SharePoint data + * source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e436fb07e856f66dfd0c5f5082d1328d43720e4b5de78e263f68e6b7e0954a6f") + override + fun sourceConfiguration(sourceConfiguration: SharePointSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(SharePointSourceConfigurationProperty(sourceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + SharePointDataSourceConfigurationProperty { + /** + * The configuration of the SharePoint content. + * + * For example, configuring specific types of SharePoint content. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-crawlerconfiguration) + */ + override fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The endpoint information to connect to your SharePoint data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-sourceconfiguration) + */ + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SharePointDataSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty): + SharePointDataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SharePointDataSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SharePointDataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointDataSourceConfigurationProperty + } + } + + /** + * The endpoint information to connect to your SharePoint data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * SharePointSourceConfigurationProperty sharePointSourceConfigurationProperty = + * SharePointSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .domain("domain") + * .hostType("hostType") + * .siteUrls(List.of("siteUrls")) + * // the properties below are optional + * .tenantId("tenantId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html) + */ + public interface SharePointSourceConfigurationProperty { + /** + * The supported authentication type to authenticate and connect to your SharePoint site/sites. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-authtype) + */ + public fun authType(): String + + /** + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your SharePoint site/sites. + * + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [SharePoint connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-credentialssecretarn) + */ + public fun credentialsSecretArn(): String + + /** + * The domain of your SharePoint instance or site URL/URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-domain) + */ + public fun domain(): String + + /** + * The supported host type, whether online/cloud or server/on-premises. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-hosttype) + */ + public fun hostType(): String + + /** + * A list of one or more SharePoint site URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-siteurls) + */ + public fun siteUrls(): List + + /** + * The identifier of your Microsoft 365 tenant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-tenantid) + */ + public fun tenantId(): String? = unwrap(this).getTenantId() + + /** + * A builder for [SharePointSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param authType The supported authentication type to authenticate and connect to your + * SharePoint site/sites. + */ + public fun authType(authType: String) + + /** + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your SharePoint site/sites. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [SharePoint connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector) + * . + */ + public fun credentialsSecretArn(credentialsSecretArn: String) + + /** + * @param domain The domain of your SharePoint instance or site URL/URLs. + */ + public fun domain(domain: String) + + /** + * @param hostType The supported host type, whether online/cloud or server/on-premises. + */ + public fun hostType(hostType: String) + + /** + * @param siteUrls A list of one or more SharePoint site URLs. + */ + public fun siteUrls(siteUrls: List) + + /** + * @param siteUrls A list of one or more SharePoint site URLs. + */ + public fun siteUrls(vararg siteUrls: String) + + /** + * @param tenantId The identifier of your Microsoft 365 tenant. + */ + public fun tenantId(tenantId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty.builder() + + /** + * @param authType The supported authentication type to authenticate and connect to your + * SharePoint site/sites. + */ + override fun authType(authType: String) { + cdkBuilder.authType(authType) + } + + /** + * @param credentialsSecretArn The Amazon Resource Name of an AWS Secrets Manager secret that + * stores your authentication credentials for your SharePoint site/sites. + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [SharePoint connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector) + * . + */ + override fun credentialsSecretArn(credentialsSecretArn: String) { + cdkBuilder.credentialsSecretArn(credentialsSecretArn) + } + + /** + * @param domain The domain of your SharePoint instance or site URL/URLs. + */ + override fun domain(domain: String) { + cdkBuilder.domain(domain) + } + + /** + * @param hostType The supported host type, whether online/cloud or server/on-premises. + */ + override fun hostType(hostType: String) { + cdkBuilder.hostType(hostType) + } + + /** + * @param siteUrls A list of one or more SharePoint site URLs. + */ + override fun siteUrls(siteUrls: List) { + cdkBuilder.siteUrls(siteUrls) + } + + /** + * @param siteUrls A list of one or more SharePoint site URLs. + */ + override fun siteUrls(vararg siteUrls: String): Unit = siteUrls(siteUrls.toList()) + + /** + * @param tenantId The identifier of your Microsoft 365 tenant. + */ + override fun tenantId(tenantId: String) { + cdkBuilder.tenantId(tenantId) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty, + ) : CdkObject(cdkObject), + SharePointSourceConfigurationProperty { + /** + * The supported authentication type to authenticate and connect to your SharePoint + * site/sites. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-authtype) + */ + override fun authType(): String = unwrap(this).getAuthType() + + /** + * The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication + * credentials for your SharePoint site/sites. + * + * For more information on the key-value pairs that must be included in your secret, depending + * on your authentication type, see [SharePoint connection + * configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-credentialssecretarn) + */ + override fun credentialsSecretArn(): String = unwrap(this).getCredentialsSecretArn() + + /** + * The domain of your SharePoint instance or site URL/URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-domain) + */ + override fun domain(): String = unwrap(this).getDomain() + + /** + * The supported host type, whether online/cloud or server/on-premises. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-hosttype) + */ + override fun hostType(): String = unwrap(this).getHostType() + + /** + * A list of one or more SharePoint site URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-siteurls) + */ + override fun siteUrls(): List = unwrap(this).getSiteUrls() + + /** + * The identifier of your Microsoft 365 tenant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointsourceconfiguration.html#cfn-bedrock-datasource-sharepointsourceconfiguration-tenantid) + */ + override fun tenantId(): String? = unwrap(this).getTenantId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SharePointSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty): + SharePointSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SharePointSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SharePointSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.SharePointSourceConfigurationProperty + } + } + + /** + * A Lambda function that processes documents. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TransformationFunctionProperty transformationFunctionProperty = + * TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationfunction.html) + */ + public interface TransformationFunctionProperty { + /** + * The Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationfunction.html#cfn-bedrock-datasource-transformationfunction-transformationlambdaconfiguration) + */ + public fun transformationLambdaConfiguration(): Any + + /** + * A builder for [TransformationFunctionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + public fun transformationLambdaConfiguration(transformationLambdaConfiguration: IResolvable) + + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + public + fun transformationLambdaConfiguration(transformationLambdaConfiguration: TransformationLambdaConfigurationProperty) + + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("73b96800404fdcf8eee7a1203ab28cf40fff91fb85ac388befb204737252fad3") + public + fun transformationLambdaConfiguration(transformationLambdaConfiguration: TransformationLambdaConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty.builder() + + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + override + fun transformationLambdaConfiguration(transformationLambdaConfiguration: IResolvable) { + cdkBuilder.transformationLambdaConfiguration(transformationLambdaConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + override + fun transformationLambdaConfiguration(transformationLambdaConfiguration: TransformationLambdaConfigurationProperty) { + cdkBuilder.transformationLambdaConfiguration(transformationLambdaConfiguration.let(TransformationLambdaConfigurationProperty.Companion::unwrap)) + } + + /** + * @param transformationLambdaConfiguration The Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("73b96800404fdcf8eee7a1203ab28cf40fff91fb85ac388befb204737252fad3") + override + fun transformationLambdaConfiguration(transformationLambdaConfiguration: TransformationLambdaConfigurationProperty.Builder.() -> Unit): + Unit = + transformationLambdaConfiguration(TransformationLambdaConfigurationProperty(transformationLambdaConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty, + ) : CdkObject(cdkObject), + TransformationFunctionProperty { + /** + * The Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationfunction.html#cfn-bedrock-datasource-transformationfunction-transformationlambdaconfiguration) + */ + override fun transformationLambdaConfiguration(): Any = + unwrap(this).getTransformationLambdaConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TransformationFunctionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty): + TransformationFunctionProperty = CdkObjectWrappers.wrap(cdkObject) as? + TransformationFunctionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TransformationFunctionProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationFunctionProperty + } + } + + /** + * A Lambda function that processes documents. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TransformationLambdaConfigurationProperty transformationLambdaConfigurationProperty = + * TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationlambdaconfiguration.html) + */ + public interface TransformationLambdaConfigurationProperty { + /** + * The function's ARN identifier. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationlambdaconfiguration.html#cfn-bedrock-datasource-transformationlambdaconfiguration-lambdaarn) + */ + public fun lambdaArn(): String + + /** + * A builder for [TransformationLambdaConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param lambdaArn The function's ARN identifier. + */ + public fun lambdaArn(lambdaArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty.builder() + + /** + * @param lambdaArn The function's ARN identifier. + */ + override fun lambdaArn(lambdaArn: String) { + cdkBuilder.lambdaArn(lambdaArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty, + ) : CdkObject(cdkObject), + TransformationLambdaConfigurationProperty { + /** + * The function's ARN identifier. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformationlambdaconfiguration.html#cfn-bedrock-datasource-transformationlambdaconfiguration-lambdaarn) + */ + override fun lambdaArn(): String = unwrap(this).getLambdaArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TransformationLambdaConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty): + TransformationLambdaConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + TransformationLambdaConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TransformationLambdaConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationLambdaConfigurationProperty + } + } + + /** + * A custom processing step for documents moving through a data source ingestion pipeline. + * + * To process documents after they have been converted into chunks, set the step to apply to + * `POST_CHUNKING` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TransformationProperty transformationProperty = TransformationProperty.builder() + * .stepToApply("stepToApply") + * .transformationFunction(TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformation.html) + */ + public interface TransformationProperty { + /** + * When the service applies the transformation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformation.html#cfn-bedrock-datasource-transformation-steptoapply) + */ + public fun stepToApply(): String + + /** + * A Lambda function that processes documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformation.html#cfn-bedrock-datasource-transformation-transformationfunction) + */ + public fun transformationFunction(): Any + + /** + * A builder for [TransformationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param stepToApply When the service applies the transformation. + */ + public fun stepToApply(stepToApply: String) + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + public fun transformationFunction(transformationFunction: IResolvable) + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + public fun transformationFunction(transformationFunction: TransformationFunctionProperty) + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6aa6e900d9c086a1e62954b674bf511e6014c644b9de3bea96fa7f54013d9d99") + public + fun transformationFunction(transformationFunction: TransformationFunctionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty.builder() + + /** + * @param stepToApply When the service applies the transformation. + */ + override fun stepToApply(stepToApply: String) { + cdkBuilder.stepToApply(stepToApply) + } + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + override fun transformationFunction(transformationFunction: IResolvable) { + cdkBuilder.transformationFunction(transformationFunction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + override fun transformationFunction(transformationFunction: TransformationFunctionProperty) { + cdkBuilder.transformationFunction(transformationFunction.let(TransformationFunctionProperty.Companion::unwrap)) + } + + /** + * @param transformationFunction A Lambda function that processes documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6aa6e900d9c086a1e62954b674bf511e6014c644b9de3bea96fa7f54013d9d99") + override + fun transformationFunction(transformationFunction: TransformationFunctionProperty.Builder.() -> Unit): + Unit = transformationFunction(TransformationFunctionProperty(transformationFunction)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty, + ) : CdkObject(cdkObject), + TransformationProperty { + /** + * When the service applies the transformation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformation.html#cfn-bedrock-datasource-transformation-steptoapply) + */ + override fun stepToApply(): String = unwrap(this).getStepToApply() + + /** + * A Lambda function that processes documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-transformation.html#cfn-bedrock-datasource-transformation-transformationfunction) + */ + override fun transformationFunction(): Any = unwrap(this).getTransformationFunction() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TransformationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty): + TransformationProperty = CdkObjectWrappers.wrap(cdkObject) as? TransformationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TransformationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.TransformationProperty + } + } + + /** + * The configuration of web URLs that you want to crawl. + * + * You should be authorized to crawl the URLs. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * UrlConfigurationProperty urlConfigurationProperty = UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-urlconfiguration.html) + */ + public interface UrlConfigurationProperty { + /** + * One or more seed or starting point URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-urlconfiguration.html#cfn-bedrock-datasource-urlconfiguration-seedurls) + */ + public fun seedUrls(): Any + + /** + * A builder for [UrlConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param seedUrls One or more seed or starting point URLs. + */ + public fun seedUrls(seedUrls: IResolvable) + + /** + * @param seedUrls One or more seed or starting point URLs. + */ + public fun seedUrls(seedUrls: List) + + /** + * @param seedUrls One or more seed or starting point URLs. + */ + public fun seedUrls(vararg seedUrls: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty.builder() + + /** + * @param seedUrls One or more seed or starting point URLs. + */ + override fun seedUrls(seedUrls: IResolvable) { + cdkBuilder.seedUrls(seedUrls.let(IResolvable.Companion::unwrap)) + } + + /** + * @param seedUrls One or more seed or starting point URLs. + */ + override fun seedUrls(seedUrls: List) { + cdkBuilder.seedUrls(seedUrls.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param seedUrls One or more seed or starting point URLs. + */ + override fun seedUrls(vararg seedUrls: Any): Unit = seedUrls(seedUrls.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty, + ) : CdkObject(cdkObject), + UrlConfigurationProperty { + /** + * One or more seed or starting point URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-urlconfiguration.html#cfn-bedrock-datasource-urlconfiguration-seedurls) + */ + override fun seedUrls(): Any = unwrap(this).getSeedUrls() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): UrlConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty): + UrlConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? UrlConfigurationProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: UrlConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.UrlConfigurationProperty + } + } + + /** + * Contains details about how to ingest the documents in a data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * VectorIngestionConfigurationProperty vectorIngestionConfigurationProperty = + * VectorIngestionConfigurationProperty.builder() + * .chunkingConfiguration(ChunkingConfigurationProperty.builder() + * .chunkingStrategy("chunkingStrategy") + * // the properties below are optional + * .fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty.builder() + * .maxTokens(123) + * .overlapPercentage(123) + * .build()) + * .hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder() + * .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build())) + * .overlapTokens(123) + * .build()) + * .semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder() + * .breakpointPercentileThreshold(123) + * .bufferSize(123) + * .maxTokens(123) + * .build()) + * .build()) + * .customTransformationConfiguration(CustomTransformationConfigurationProperty.builder() + * .intermediateStorage(IntermediateStorageProperty.builder() + * .s3Location(S3LocationProperty.builder() + * .uri("uri") + * .build()) + * .build()) + * .transformations(List.of(TransformationProperty.builder() + * .stepToApply("stepToApply") + * .transformationFunction(TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .build()) + * .build())) + * .build()) + * .parsingConfiguration(ParsingConfigurationProperty.builder() + * .parsingStrategy("parsingStrategy") + * // the properties below are optional + * .bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder() + * .modelArn("modelArn") + * // the properties below are optional + * .parsingPrompt(ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html) + */ + public interface VectorIngestionConfigurationProperty { + /** + * Details about how to chunk the documents in the data source. + * + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-chunkingconfiguration) + */ + public fun chunkingConfiguration(): Any? = unwrap(this).getChunkingConfiguration() + + /** + * A custom document transformer for parsed data source documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-customtransformationconfiguration) + */ + public fun customTransformationConfiguration(): Any? = + unwrap(this).getCustomTransformationConfiguration() + + /** + * A custom parser for data source documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-parsingconfiguration) + */ + public fun parsingConfiguration(): Any? = unwrap(this).getParsingConfiguration() + + /** + * A builder for [VectorIngestionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + public fun chunkingConfiguration(chunkingConfiguration: IResolvable) + + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + public fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty) + + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c44d549c914ff158cdb23c41be0b341d8b85e7b602c0d8c95a2f8f31bc6da3c4") + public + fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty.Builder.() -> Unit) + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + public fun customTransformationConfiguration(customTransformationConfiguration: IResolvable) + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + public + fun customTransformationConfiguration(customTransformationConfiguration: CustomTransformationConfigurationProperty) + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5f974569fcef9ebf6cdff9df315f920694990fcef748fc39e4939ed9c31c309d") + public + fun customTransformationConfiguration(customTransformationConfiguration: CustomTransformationConfigurationProperty.Builder.() -> Unit) + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + public fun parsingConfiguration(parsingConfiguration: IResolvable) + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + public fun parsingConfiguration(parsingConfiguration: ParsingConfigurationProperty) + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("992577a2f174620e35a00071c4b317dd3f21d37a965ade40f5bb4c5e912a2fab") + public + fun parsingConfiguration(parsingConfiguration: ParsingConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty.builder() + + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + override fun chunkingConfiguration(chunkingConfiguration: IResolvable) { + cdkBuilder.chunkingConfiguration(chunkingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + override fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty) { + cdkBuilder.chunkingConfiguration(chunkingConfiguration.let(ChunkingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param chunkingConfiguration Details about how to chunk the documents in the data source. + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c44d549c914ff158cdb23c41be0b341d8b85e7b602c0d8c95a2f8f31bc6da3c4") + override + fun chunkingConfiguration(chunkingConfiguration: ChunkingConfigurationProperty.Builder.() -> Unit): + Unit = chunkingConfiguration(ChunkingConfigurationProperty(chunkingConfiguration)) + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + override + fun customTransformationConfiguration(customTransformationConfiguration: IResolvable) { + cdkBuilder.customTransformationConfiguration(customTransformationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + override + fun customTransformationConfiguration(customTransformationConfiguration: CustomTransformationConfigurationProperty) { + cdkBuilder.customTransformationConfiguration(customTransformationConfiguration.let(CustomTransformationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param customTransformationConfiguration A custom document transformer for parsed data + * source documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5f974569fcef9ebf6cdff9df315f920694990fcef748fc39e4939ed9c31c309d") + override + fun customTransformationConfiguration(customTransformationConfiguration: CustomTransformationConfigurationProperty.Builder.() -> Unit): + Unit = + customTransformationConfiguration(CustomTransformationConfigurationProperty(customTransformationConfiguration)) + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + override fun parsingConfiguration(parsingConfiguration: IResolvable) { + cdkBuilder.parsingConfiguration(parsingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + override fun parsingConfiguration(parsingConfiguration: ParsingConfigurationProperty) { + cdkBuilder.parsingConfiguration(parsingConfiguration.let(ParsingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param parsingConfiguration A custom parser for data source documents. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("992577a2f174620e35a00071c4b317dd3f21d37a965ade40f5bb4c5e912a2fab") + override + fun parsingConfiguration(parsingConfiguration: ParsingConfigurationProperty.Builder.() -> Unit): + Unit = parsingConfiguration(ParsingConfigurationProperty(parsingConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty, + ) : CdkObject(cdkObject), + VectorIngestionConfigurationProperty { + /** + * Details about how to chunk the documents in the data source. + * + * A *chunk* refers to an excerpt from a data source that is returned when the knowledge base + * that it belongs to is queried. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-chunkingconfiguration) + */ + override fun chunkingConfiguration(): Any? = unwrap(this).getChunkingConfiguration() + + /** + * A custom document transformer for parsed data source documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-customtransformationconfiguration) + */ + override fun customTransformationConfiguration(): Any? = + unwrap(this).getCustomTransformationConfiguration() + + /** + * A custom parser for data source documents. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-parsingconfiguration) + */ + override fun parsingConfiguration(): Any? = unwrap(this).getParsingConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + VectorIngestionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty): + VectorIngestionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + VectorIngestionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: VectorIngestionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty + } + } + + /** + * The configuration of web URLs that you want to crawl. + * + * You should be authorized to crawl the URLs. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * WebCrawlerConfigurationProperty webCrawlerConfigurationProperty = + * WebCrawlerConfigurationProperty.builder() + * .crawlerLimits(WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build()) + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .scope("scope") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html) + */ + public interface WebCrawlerConfigurationProperty { + /** + * The configuration of crawl limits for the web URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-crawlerlimits) + */ + public fun crawlerLimits(): Any? = unwrap(this).getCrawlerLimits() + + /** + * A list of one or more exclusion regular expression patterns to exclude certain URLs. + * + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion + * filter takes precedence and the web content of the URL isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-exclusionfilters) + */ + public fun exclusionFilters(): List = unwrap(this).getExclusionFilters() ?: emptyList() + + /** + * A list of one or more inclusion regular expression patterns to include certain URLs. + * + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion + * filter takes precedence and the web content of the URL isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-inclusionfilters) + */ + public fun inclusionFilters(): List = unwrap(this).getInclusionFilters() ?: emptyList() + + /** + * The scope of what is crawled for your URLs. + * + * You can choose to crawl only web pages that belong to the same host or primary domain. For + * example, only web pages that contain the seed URL + * "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose to + * include sub domains in addition to the host or primary domain. For example, web pages that + * contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com". + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-scope) + */ + public fun scope(): String? = unwrap(this).getScope() + + /** + * A builder for [WebCrawlerConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + public fun crawlerLimits(crawlerLimits: IResolvable) + + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + public fun crawlerLimits(crawlerLimits: WebCrawlerLimitsProperty) + + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d2a1be4f11e9816ddf857db222b630b3e8055db7c0241bcba0b9daca03d34ea") + public fun crawlerLimits(crawlerLimits: WebCrawlerLimitsProperty.Builder.() -> Unit) + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + public fun exclusionFilters(exclusionFilters: List) + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + public fun exclusionFilters(vararg exclusionFilters: String) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + public fun inclusionFilters(inclusionFilters: List) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + public fun inclusionFilters(vararg inclusionFilters: String) + + /** + * @param scope The scope of what is crawled for your URLs. + * You can choose to crawl only web pages that belong to the same host or primary domain. For + * example, only web pages that contain the seed URL + * "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose + * to include sub domains in addition to the host or primary domain. For example, web pages that + * contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com". + */ + public fun scope(scope: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty.builder() + + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + override fun crawlerLimits(crawlerLimits: IResolvable) { + cdkBuilder.crawlerLimits(crawlerLimits.let(IResolvable.Companion::unwrap)) + } + + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + override fun crawlerLimits(crawlerLimits: WebCrawlerLimitsProperty) { + cdkBuilder.crawlerLimits(crawlerLimits.let(WebCrawlerLimitsProperty.Companion::unwrap)) + } + + /** + * @param crawlerLimits The configuration of crawl limits for the web URLs. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d2a1be4f11e9816ddf857db222b630b3e8055db7c0241bcba0b9daca03d34ea") + override fun crawlerLimits(crawlerLimits: WebCrawlerLimitsProperty.Builder.() -> Unit): Unit = + crawlerLimits(WebCrawlerLimitsProperty(crawlerLimits)) + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + override fun exclusionFilters(exclusionFilters: List) { + cdkBuilder.exclusionFilters(exclusionFilters) + } + + /** + * @param exclusionFilters A list of one or more exclusion regular expression patterns to + * exclude certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + override fun exclusionFilters(vararg exclusionFilters: String): Unit = + exclusionFilters(exclusionFilters.toList()) + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + override fun inclusionFilters(inclusionFilters: List) { + cdkBuilder.inclusionFilters(inclusionFilters) + } + + /** + * @param inclusionFilters A list of one or more inclusion regular expression patterns to + * include certain URLs. + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + */ + override fun inclusionFilters(vararg inclusionFilters: String): Unit = + inclusionFilters(inclusionFilters.toList()) + + /** + * @param scope The scope of what is crawled for your URLs. + * You can choose to crawl only web pages that belong to the same host or primary domain. For + * example, only web pages that contain the seed URL + * "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose + * to include sub domains in addition to the host or primary domain. For example, web pages that + * contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com". + */ + override fun scope(scope: String) { + cdkBuilder.scope(scope) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty, + ) : CdkObject(cdkObject), + WebCrawlerConfigurationProperty { + /** + * The configuration of crawl limits for the web URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-crawlerlimits) + */ + override fun crawlerLimits(): Any? = unwrap(this).getCrawlerLimits() + + /** + * A list of one or more exclusion regular expression patterns to exclude certain URLs. + * + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-exclusionfilters) + */ + override fun exclusionFilters(): List = unwrap(this).getExclusionFilters() ?: + emptyList() + + /** + * A list of one or more inclusion regular expression patterns to include certain URLs. + * + * If you specify an inclusion and exclusion filter/pattern and both match a URL, the + * exclusion filter takes precedence and the web content of the URL isn’t crawled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-inclusionfilters) + */ + override fun inclusionFilters(): List = unwrap(this).getInclusionFilters() ?: + emptyList() + + /** + * The scope of what is crawled for your URLs. + * + * You can choose to crawl only web pages that belong to the same host or primary domain. For + * example, only web pages that contain the seed URL + * "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose + * to include sub domains in addition to the host or primary domain. For example, web pages that + * contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com". + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-scope) + */ + override fun scope(): String? = unwrap(this).getScope() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): WebCrawlerConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty): + WebCrawlerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + WebCrawlerConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: WebCrawlerConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty + } + } + + /** + * The rate limits for the URLs that you want to crawl. + * + * You should be authorized to crawl the URLs. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * WebCrawlerLimitsProperty webCrawlerLimitsProperty = WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html) + */ + public interface WebCrawlerLimitsProperty { + /** + * The max rate at which pages are crawled, up to 300 per minute per host. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html#cfn-bedrock-datasource-webcrawlerlimits-ratelimit) + */ + public fun rateLimit(): Number? = unwrap(this).getRateLimit() + + /** + * A builder for [WebCrawlerLimitsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param rateLimit The max rate at which pages are crawled, up to 300 per minute per host. + */ + public fun rateLimit(rateLimit: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty.builder() + + /** + * @param rateLimit The max rate at which pages are crawled, up to 300 per minute per host. + */ + override fun rateLimit(rateLimit: Number) { + cdkBuilder.rateLimit(rateLimit) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty, + ) : CdkObject(cdkObject), + WebCrawlerLimitsProperty { + /** + * The max rate at which pages are crawled, up to 300 per minute per host. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerlimits.html#cfn-bedrock-datasource-webcrawlerlimits-ratelimit) + */ + override fun rateLimit(): Number? = unwrap(this).getRateLimit() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): WebCrawlerLimitsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty): + WebCrawlerLimitsProperty = CdkObjectWrappers.wrap(cdkObject) as? WebCrawlerLimitsProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: WebCrawlerLimitsProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerLimitsProperty + } + } + + /** + * The configuration details for the web data source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * WebDataSourceConfigurationProperty webDataSourceConfigurationProperty = + * WebDataSourceConfigurationProperty.builder() + * .sourceConfiguration(WebSourceConfigurationProperty.builder() + * .urlConfiguration(UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build()) + * .build()) + * // the properties below are optional + * .crawlerConfiguration(WebCrawlerConfigurationProperty.builder() + * .crawlerLimits(WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build()) + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .scope("scope") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webdatasourceconfiguration.html) + */ + public interface WebDataSourceConfigurationProperty { + /** + * The Web Crawler configuration details for the web data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webdatasourceconfiguration.html#cfn-bedrock-datasource-webdatasourceconfiguration-crawlerconfiguration) + */ + public fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The source configuration details for the web data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webdatasourceconfiguration.html#cfn-bedrock-datasource-webdatasourceconfiguration-sourceconfiguration) + */ + public fun sourceConfiguration(): Any + + /** + * A builder for [WebDataSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + public fun crawlerConfiguration(crawlerConfiguration: IResolvable) + + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + public fun crawlerConfiguration(crawlerConfiguration: WebCrawlerConfigurationProperty) + + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fcbcc73bb855ef883a68733a4be82abfe154a430e4d9410047e6e14300870117") + public + fun crawlerConfiguration(crawlerConfiguration: WebCrawlerConfigurationProperty.Builder.() -> Unit) + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + public fun sourceConfiguration(sourceConfiguration: WebSourceConfigurationProperty) + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("201ad0724113c8482ffb6d21bf45cd3523b1d5f6683baf1ffc5763898dd28605") + public + fun sourceConfiguration(sourceConfiguration: WebSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty.builder() + + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + override fun crawlerConfiguration(crawlerConfiguration: IResolvable) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + override fun crawlerConfiguration(crawlerConfiguration: WebCrawlerConfigurationProperty) { + cdkBuilder.crawlerConfiguration(crawlerConfiguration.let(WebCrawlerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param crawlerConfiguration The Web Crawler configuration details for the web data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fcbcc73bb855ef883a68733a4be82abfe154a430e4d9410047e6e14300870117") + override + fun crawlerConfiguration(crawlerConfiguration: WebCrawlerConfigurationProperty.Builder.() -> Unit): + Unit = crawlerConfiguration(WebCrawlerConfigurationProperty(crawlerConfiguration)) + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + override fun sourceConfiguration(sourceConfiguration: WebSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(WebSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sourceConfiguration The source configuration details for the web data source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("201ad0724113c8482ffb6d21bf45cd3523b1d5f6683baf1ffc5763898dd28605") + override + fun sourceConfiguration(sourceConfiguration: WebSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(WebSourceConfigurationProperty(sourceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty, + ) : CdkObject(cdkObject), + WebDataSourceConfigurationProperty { + /** + * The Web Crawler configuration details for the web data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webdatasourceconfiguration.html#cfn-bedrock-datasource-webdatasourceconfiguration-crawlerconfiguration) + */ + override fun crawlerConfiguration(): Any? = unwrap(this).getCrawlerConfiguration() + + /** + * The source configuration details for the web data source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webdatasourceconfiguration.html#cfn-bedrock-datasource-webdatasourceconfiguration-sourceconfiguration) + */ + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + WebDataSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty): + WebDataSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + WebDataSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: WebDataSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.WebDataSourceConfigurationProperty + } + } + + /** + * The configuration of the URL/URLs for the web content that you want to crawl. + * + * You should be authorized to crawl the URLs. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * WebSourceConfigurationProperty webSourceConfigurationProperty = + * WebSourceConfigurationProperty.builder() + * .urlConfiguration(UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-websourceconfiguration.html) + */ + public interface WebSourceConfigurationProperty { + /** + * The configuration of the URL/URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-websourceconfiguration.html#cfn-bedrock-datasource-websourceconfiguration-urlconfiguration) + */ + public fun urlConfiguration(): Any + + /** + * A builder for [WebSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + public fun urlConfiguration(urlConfiguration: IResolvable) + + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + public fun urlConfiguration(urlConfiguration: UrlConfigurationProperty) + + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d62e120ddb78ea1aad3e70dc5195695bde068001b4a43fba4f4f3c218c538689") + public fun urlConfiguration(urlConfiguration: UrlConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty.builder() + + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + override fun urlConfiguration(urlConfiguration: IResolvable) { + cdkBuilder.urlConfiguration(urlConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + override fun urlConfiguration(urlConfiguration: UrlConfigurationProperty) { + cdkBuilder.urlConfiguration(urlConfiguration.let(UrlConfigurationProperty.Companion::unwrap)) + } + + /** + * @param urlConfiguration The configuration of the URL/URLs. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d62e120ddb78ea1aad3e70dc5195695bde068001b4a43fba4f4f3c218c538689") + override fun urlConfiguration(urlConfiguration: UrlConfigurationProperty.Builder.() -> Unit): + Unit = urlConfiguration(UrlConfigurationProperty(urlConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty, + ) : CdkObject(cdkObject), + WebSourceConfigurationProperty { + /** + * The configuration of the URL/URLs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-websourceconfiguration.html#cfn-bedrock-datasource-websourceconfiguration-urlconfiguration) + */ + override fun urlConfiguration(): Any = unwrap(this).getUrlConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): WebSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty): + WebSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + WebSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: WebSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnDataSource.WebSourceConfigurationProperty } } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSourceProps.kt index 5a36b1ea4a..8bddbb0bad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnDataSourceProps.kt @@ -22,13 +22,103 @@ import kotlin.jvm.JvmName * import io.cloudshiftdev.awscdk.services.bedrock.*; * CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder() * .dataSourceConfiguration(DataSourceConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .confluenceConfiguration(ConfluenceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(ConfluenceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostType("hostType") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(ConfluenceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) * .s3Configuration(S3DataSourceConfigurationProperty.builder() * .bucketArn("bucketArn") * // the properties below are optional * .bucketOwnerAccountId("bucketOwnerAccountId") * .inclusionPrefixes(List.of("inclusionPrefixes")) * .build()) + * .salesforceConfiguration(SalesforceDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SalesforceSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .hostUrl("hostUrl") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SalesforceCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .sharePointConfiguration(SharePointDataSourceConfigurationProperty.builder() + * .sourceConfiguration(SharePointSourceConfigurationProperty.builder() + * .authType("authType") + * .credentialsSecretArn("credentialsSecretArn") + * .domain("domain") + * .hostType("hostType") + * .siteUrls(List.of("siteUrls")) + * // the properties below are optional + * .tenantId("tenantId") + * .build()) + * // the properties below are optional + * .crawlerConfiguration(SharePointCrawlerConfigurationProperty.builder() + * .filterConfiguration(CrawlFilterConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder() + * .filters(List.of(PatternObjectFilterProperty.builder() + * .objectType("objectType") + * // the properties below are optional + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .build())) + * .build()) + * .build()) + * .build()) + * .build()) + * .webConfiguration(WebDataSourceConfigurationProperty.builder() + * .sourceConfiguration(WebSourceConfigurationProperty.builder() + * .urlConfiguration(UrlConfigurationProperty.builder() + * .seedUrls(List.of(SeedUrlProperty.builder() + * .url("url") + * .build())) + * .build()) + * .build()) + * // the properties below are optional + * .crawlerConfiguration(WebCrawlerConfigurationProperty.builder() + * .crawlerLimits(WebCrawlerLimitsProperty.builder() + * .rateLimit(123) + * .build()) + * .exclusionFilters(List.of("exclusionFilters")) + * .inclusionFilters(List.of("inclusionFilters")) + * .scope("scope") + * .build()) + * .build()) * .build()) * .knowledgeBaseId("knowledgeBaseId") * .name("name") @@ -46,6 +136,43 @@ import kotlin.jvm.JvmName * .maxTokens(123) * .overlapPercentage(123) * .build()) + * .hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder() + * .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() + * .maxTokens(123) + * .build())) + * .overlapTokens(123) + * .build()) + * .semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder() + * .breakpointPercentileThreshold(123) + * .bufferSize(123) + * .maxTokens(123) + * .build()) + * .build()) + * .customTransformationConfiguration(CustomTransformationConfigurationProperty.builder() + * .intermediateStorage(IntermediateStorageProperty.builder() + * .s3Location(S3LocationProperty.builder() + * .uri("uri") + * .build()) + * .build()) + * .transformations(List.of(TransformationProperty.builder() + * .stepToApply("stepToApply") + * .transformationFunction(TransformationFunctionProperty.builder() + * .transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .build()) + * .build())) + * .build()) + * .parsingConfiguration(ParsingConfigurationProperty.builder() + * .parsingStrategy("parsingStrategy") + * // the properties below are optional + * .bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder() + * .modelArn("modelArn") + * // the properties below are optional + * .parsingPrompt(ParsingPromptProperty.builder() + * .parsingPromptText("parsingPromptText") + * .build()) + * .build()) * .build()) * .build()) * .build(); @@ -55,14 +182,14 @@ import kotlin.jvm.JvmName */ public interface CfnDataSourceProps { /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy) */ public fun dataDeletionPolicy(): String? = unwrap(this).getDataDeletionPolicy() /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) */ @@ -110,23 +237,23 @@ public interface CfnDataSourceProps { @CdkDslMarker public interface Builder { /** - * @param dataDeletionPolicy The data deletion policy for a data source. + * @param dataDeletionPolicy The data deletion policy for the data source. */ public fun dataDeletionPolicy(dataDeletionPolicy: String) /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ public fun dataSourceConfiguration(dataSourceConfiguration: IResolvable) /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ public fun dataSourceConfiguration(dataSourceConfiguration: CfnDataSource.DataSourceConfigurationProperty) /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a4c1c768982411da1bad8b5e946ce39b5959c643170f2361795c4a5af2844e4") @@ -199,21 +326,21 @@ public interface CfnDataSourceProps { software.amazon.awscdk.services.bedrock.CfnDataSourceProps.builder() /** - * @param dataDeletionPolicy The data deletion policy for a data source. + * @param dataDeletionPolicy The data deletion policy for the data source. */ override fun dataDeletionPolicy(dataDeletionPolicy: String) { cdkBuilder.dataDeletionPolicy(dataDeletionPolicy) } /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ override fun dataSourceConfiguration(dataSourceConfiguration: IResolvable) { cdkBuilder.dataSourceConfiguration(dataSourceConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ override fun dataSourceConfiguration(dataSourceConfiguration: CfnDataSource.DataSourceConfigurationProperty) { @@ -221,7 +348,7 @@ public interface CfnDataSourceProps { } /** - * @param dataSourceConfiguration Contains details about how the data source is stored. + * @param dataSourceConfiguration The connection configuration for the data source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a4c1c768982411da1bad8b5e946ce39b5959c643170f2361795c4a5af2844e4") @@ -314,16 +441,17 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** - * The data deletion policy for a data source. + * The data deletion policy for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy) */ override fun dataDeletionPolicy(): String? = unwrap(this).getDataDeletionPolicy() /** - * Contains details about how the data source is stored. + * The connection configuration for the data source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlow.kt new file mode 100644 index 0000000000..2d849a1e4b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlow.kt @@ -0,0 +1,6097 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a prompt flow that you can use to send an input through various steps to yield an output. + * + * You define a flow by configuring nodes, each of which corresponds to a step of the flow, and + * creating connections between the nodes to create paths to different outputs. You can define the flow + * in one of the following ways: + * + * * Define a + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * in the `Definition` property. + * * Provide the definition in the `DefinitionString` property as a JSON-formatted string matching + * the + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * property. + * * Provide an Amazon S3 location in the `DefinitionS3Location` property that matches the + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + * + * If you use the `DefinitionString` or `DefinitionS3Location` property, you can use the + * `DefinitionSubstitutions` property to define key-value pairs to replace at runtime. + * + * For more information, see [How it + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html) and [Create a + * prompt flow in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-create.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * CfnFlow cfnFlow = CfnFlow.Builder.create(this, "MyCfnFlow") + * .executionRoleArn("executionRoleArn") + * .name("name") + * // the properties below are optional + * .customerEncryptionKeyArn("customerEncryptionKeyArn") + * .definition(FlowDefinitionProperty.builder() + * .connections(List.of(FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build())) + * .nodes(List.of(FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build())) + * .build()) + * .definitionS3Location(S3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .definitionString("definitionString") + * .definitionSubstitutions(Map.of( + * "definitionSubstitutionsKey", "definitionSubstitutions")) + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .testAliasTags(Map.of( + * "testAliasTagsKey", "testAliasTags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html) + */ +public open class CfnFlow( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnFlow(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnFlowProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowProps.Builder.() -> Unit, + ) : this(scope, id, CfnFlowProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the flow. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The time at which the flow was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The unique identifier of the flow. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The status of the flow. The following statuses are possible:. + * + * * NotPrepared – The flow has been created or updated, but hasn't been prepared. If you just + * created the flow, you can't test it. If you updated the flow, the `DRAFT` version won't contain + * the latest changes for testing. Send a + * [PrepareFlow](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PrepareFlow.html) + * request to package the latest changes into the `DRAFT` version. + * * Preparing – The flow is being prepared so that the `DRAFT` version contains the latest + * changes for testing. + * * Prepared – The flow is prepared and the `DRAFT` version contains the latest changes for + * testing. + * * Failed – The last API operation that you invoked on the flow failed. Send a + * [GetFlow](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html) request + * and check the error message in the `validations` field. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * The time at which the flow was last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * List of flow validations. + */ + public open fun attrValidations(): IResolvable = + unwrap(this).getAttrValidations().let(IResolvable::wrap) + + /** + * The latest version of the flow. + */ + public open fun attrVersion(): String = unwrap(this).getAttrVersion() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + */ + public open fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + */ + public open fun customerEncryptionKeyArn(`value`: String) { + unwrap(this).setCustomerEncryptionKeyArn(`value`) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + */ + public open fun definition(): Any? = unwrap(this).getDefinition() + + /** + * The definition of the nodes and connections between the nodes in the flow. + */ + public open fun definition(`value`: IResolvable) { + unwrap(this).setDefinition(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + */ + public open fun definition(`value`: FlowDefinitionProperty) { + unwrap(this).setDefinition(`value`.let(FlowDefinitionProperty.Companion::unwrap)) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bb9912b5534f23c2dc1e78d7571157513947ad6ad249aedb9b8eab7383f6eb39") + public open fun definition(`value`: FlowDefinitionProperty.Builder.() -> Unit): Unit = + definition(FlowDefinitionProperty(`value`)) + + /** + * The Amazon S3 location of the flow definition. + */ + public open fun definitionS3Location(): Any? = unwrap(this).getDefinitionS3Location() + + /** + * The Amazon S3 location of the flow definition. + */ + public open fun definitionS3Location(`value`: IResolvable) { + unwrap(this).setDefinitionS3Location(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The Amazon S3 location of the flow definition. + */ + public open fun definitionS3Location(`value`: S3LocationProperty) { + unwrap(this).setDefinitionS3Location(`value`.let(S3LocationProperty.Companion::unwrap)) + } + + /** + * The Amazon S3 location of the flow definition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7c910a04a7cc09fbd585bcf8c558dba24c80440d9f64a527b208ff4653859f61") + public open fun definitionS3Location(`value`: S3LocationProperty.Builder.() -> Unit): Unit = + definitionS3Location(S3LocationProperty(`value`)) + + /** + * The definition of the flow as a JSON-formatted string. + */ + public open fun definitionString(): String? = unwrap(this).getDefinitionString() + + /** + * The definition of the flow as a JSON-formatted string. + */ + public open fun definitionString(`value`: String) { + unwrap(this).setDefinitionString(`value`) + } + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + */ + public open fun definitionSubstitutions(): Any? = unwrap(this).getDefinitionSubstitutions() + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + */ + public open fun definitionSubstitutions(`value`: IResolvable) { + unwrap(this).setDefinitionSubstitutions(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + */ + public open fun definitionSubstitutions(`value`: Map) { + unwrap(this).setDefinitionSubstitutions(`value`.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * A description of the flow. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A description of the flow. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + */ + public open fun executionRoleArn(): String = unwrap(this).getExecutionRoleArn() + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + */ + public open fun executionRoleArn(`value`: String) { + unwrap(this).setExecutionRoleArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the flow. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the flow. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A map of tag keys and values. + */ + public open fun testAliasTags(): Any? = unwrap(this).getTestAliasTags() + + /** + * A map of tag keys and values. + */ + public open fun testAliasTags(`value`: IResolvable) { + unwrap(this).setTestAliasTags(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A map of tag keys and values. + */ + public open fun testAliasTags(`value`: Map) { + unwrap(this).setTestAliasTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnFlow]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-customerencryptionkeyarn) + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the flow + * is encrypted with. + */ + public fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + public fun definition(definition: IResolvable) + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + public fun definition(definition: FlowDefinitionProperty) + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd8a7a91cab22151f1c1f826f69dea3f7af0ef51470781009cbb857c56d3e7af") + public fun definition(definition: FlowDefinitionProperty.Builder.() -> Unit) + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + public fun definitionS3Location(definitionS3Location: IResolvable) + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + public fun definitionS3Location(definitionS3Location: S3LocationProperty) + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ffe0f102315503698f67bf49684954e26831df8ff6377c3acad7d45c50145fc4") + public fun definitionS3Location(definitionS3Location: S3LocationProperty.Builder.() -> Unit) + + /** + * The definition of the flow as a JSON-formatted string. + * + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionstring) + * @param definitionString The definition of the flow as a JSON-formatted string. + */ + public fun definitionString(definitionString: String) + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + */ + public fun definitionSubstitutions(definitionSubstitutions: IResolvable) + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + */ + public fun definitionSubstitutions(definitionSubstitutions: Map) + + /** + * A description of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-description) + * @param description A description of the flow. + */ + public fun description(description: String) + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + * + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the + * Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-executionrolearn) + * @param executionRoleArn The Amazon Resource Name (ARN) of the service role with permissions + * to create a flow. + */ + public fun executionRoleArn(executionRoleArn: String) + + /** + * The name of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-name) + * @param name The name of the flow. + */ + public fun name(name: String) + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + public fun tags(tags: Map) + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + * @param testAliasTags A map of tag keys and values. + */ + public fun testAliasTags(testAliasTags: IResolvable) + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + * @param testAliasTags A map of tag keys and values. + */ + public fun testAliasTags(testAliasTags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlow.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.Builder.create(scope, id) + + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-customerencryptionkeyarn) + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the flow + * is encrypted with. + */ + override fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) { + cdkBuilder.customerEncryptionKeyArn(customerEncryptionKeyArn) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + override fun definition(definition: IResolvable) { + cdkBuilder.definition(definition.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + override fun definition(definition: FlowDefinitionProperty) { + cdkBuilder.definition(definition.let(FlowDefinitionProperty.Companion::unwrap)) + } + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd8a7a91cab22151f1c1f826f69dea3f7af0ef51470781009cbb857c56d3e7af") + override fun definition(definition: FlowDefinitionProperty.Builder.() -> Unit): Unit = + definition(FlowDefinitionProperty(definition)) + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + override fun definitionS3Location(definitionS3Location: IResolvable) { + cdkBuilder.definitionS3Location(definitionS3Location.let(IResolvable.Companion::unwrap)) + } + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + override fun definitionS3Location(definitionS3Location: S3LocationProperty) { + cdkBuilder.definitionS3Location(definitionS3Location.let(S3LocationProperty.Companion::unwrap)) + } + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ffe0f102315503698f67bf49684954e26831df8ff6377c3acad7d45c50145fc4") + override fun definitionS3Location(definitionS3Location: S3LocationProperty.Builder.() -> Unit): + Unit = definitionS3Location(S3LocationProperty(definitionS3Location)) + + /** + * The definition of the flow as a JSON-formatted string. + * + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionstring) + * @param definitionString The definition of the flow as a JSON-formatted string. + */ + override fun definitionString(definitionString: String) { + cdkBuilder.definitionString(definitionString) + } + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + */ + override fun definitionSubstitutions(definitionSubstitutions: IResolvable) { + cdkBuilder.definitionSubstitutions(definitionSubstitutions.let(IResolvable.Companion::unwrap)) + } + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + */ + override fun definitionSubstitutions(definitionSubstitutions: Map) { + cdkBuilder.definitionSubstitutions(definitionSubstitutions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * A description of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-description) + * @param description A description of the flow. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + * + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the + * Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-executionrolearn) + * @param executionRoleArn The Amazon Resource Name (ARN) of the service role with permissions + * to create a flow. + */ + override fun executionRoleArn(executionRoleArn: String) { + cdkBuilder.executionRoleArn(executionRoleArn) + } + + /** + * The name of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-name) + * @param name The name of the flow. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + * @param testAliasTags A map of tag keys and values. + */ + override fun testAliasTags(testAliasTags: IResolvable) { + cdkBuilder.testAliasTags(testAliasTags.let(IResolvable.Companion::unwrap)) + } + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + * @param testAliasTags A map of tag keys and values. + */ + override fun testAliasTags(testAliasTags: Map) { + cdkBuilder.testAliasTags(testAliasTags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnFlow.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnFlow { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnFlow(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow): CfnFlow = + CfnFlow(cdkObject) + + internal fun unwrap(wrapped: CfnFlow): software.amazon.awscdk.services.bedrock.CfnFlow = + wrapped.cdkObject as software.amazon.awscdk.services.bedrock.CfnFlow + } + + /** + * Defines an agent node in your flow. + * + * You specify the agent to invoke at this point in the flow. For more information, see [Node + * types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * AgentFlowNodeConfigurationProperty agentFlowNodeConfigurationProperty = + * AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-agentflownodeconfiguration.html) + */ + public interface AgentFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the alias of the agent to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-agentflownodeconfiguration.html#cfn-bedrock-flow-agentflownodeconfiguration-agentaliasarn) + */ + public fun agentAliasArn(): String + + /** + * A builder for [AgentFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param agentAliasArn The Amazon Resource Name (ARN) of the alias of the agent to invoke. + */ + public fun agentAliasArn(agentAliasArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty.builder() + + /** + * @param agentAliasArn The Amazon Resource Name (ARN) of the alias of the agent to invoke. + */ + override fun agentAliasArn(agentAliasArn: String) { + cdkBuilder.agentAliasArn(agentAliasArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + AgentFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the alias of the agent to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-agentflownodeconfiguration.html#cfn-bedrock-flow-agentflownodeconfiguration-agentaliasarn) + */ + override fun agentAliasArn(): String = unwrap(this).getAgentAliasArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + AgentFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty): + AgentFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + AgentFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AgentFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.AgentFlowNodeConfigurationProperty + } + } + + /** + * Defines a condition node in your flow. + * + * You can specify conditions that determine which node comes next in the flow. For more + * information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ConditionFlowNodeConfigurationProperty conditionFlowNodeConfigurationProperty = + * ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-conditionflownodeconfiguration.html) + */ + public interface ConditionFlowNodeConfigurationProperty { + /** + * An array of conditions. + * + * Each member contains the name of a condition and an expression that defines the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-conditionflownodeconfiguration.html#cfn-bedrock-flow-conditionflownodeconfiguration-conditions) + */ + public fun conditions(): Any + + /** + * A builder for [ConditionFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(conditions: List) + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(vararg conditions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty.builder() + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + ConditionFlowNodeConfigurationProperty { + /** + * An array of conditions. + * + * Each member contains the name of a condition and an expression that defines the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-conditionflownodeconfiguration.html#cfn-bedrock-flow-conditionflownodeconfiguration-conditions) + */ + override fun conditions(): Any = unwrap(this).getConditions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConditionFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty): + ConditionFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConditionFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConditionFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty + } + } + + /** + * Defines a condition in the condition node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConditionProperty flowConditionProperty = FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowcondition.html) + */ + public interface FlowConditionProperty { + /** + * Defines the condition. + * + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowcondition.html#cfn-bedrock-flow-flowcondition-expression) + */ + public fun expression(): String? = unwrap(this).getExpression() + + /** + * A name for the condition that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowcondition.html#cfn-bedrock-flow-flowcondition-name) + */ + public fun name(): String + + /** + * A builder for [FlowConditionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param expression Defines the condition. + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + */ + public fun expression(expression: String) + + /** + * @param name A name for the condition that you can reference. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty.builder() + + /** + * @param expression Defines the condition. + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param name A name for the condition that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty, + ) : CdkObject(cdkObject), + FlowConditionProperty { + /** + * Defines the condition. + * + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowcondition.html#cfn-bedrock-flow-flowcondition-expression) + */ + override fun expression(): String? = unwrap(this).getExpression() + + /** + * A name for the condition that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowcondition.html#cfn-bedrock-flow-flowcondition-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowConditionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty): + FlowConditionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowConditionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConditionProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionProperty + } + } + + /** + * The configuration of a connection between a condition node and another node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConditionalConnectionConfigurationProperty flowConditionalConnectionConfigurationProperty = + * FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconditionalconnectionconfiguration.html) + */ + public interface FlowConditionalConnectionConfigurationProperty { + /** + * The condition that triggers this connection. + * + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in the + * Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconditionalconnectionconfiguration.html#cfn-bedrock-flow-flowconditionalconnectionconfiguration-condition) + */ + public fun condition(): String + + /** + * A builder for [FlowConditionalConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param condition The condition that triggers this connection. + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + */ + public fun condition(condition: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty.builder() + + /** + * @param condition The condition that triggers this connection. + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + */ + override fun condition(condition: String) { + cdkBuilder.condition(condition) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowConditionalConnectionConfigurationProperty { + /** + * The condition that triggers this connection. + * + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconditionalconnectionconfiguration.html#cfn-bedrock-flow-flowconditionalconnectionconfiguration-condition) + */ + override fun condition(): String = unwrap(this).getCondition() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowConditionalConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty): + FlowConditionalConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowConditionalConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConditionalConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConditionalConnectionConfigurationProperty + } + } + + /** + * The configuration of the connection. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConnectionConfigurationProperty flowConnectionConfigurationProperty = + * FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnectionconfiguration.html) + */ + public interface FlowConnectionConfigurationProperty { + /** + * The configuration of a connection originating from a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnectionconfiguration.html#cfn-bedrock-flow-flowconnectionconfiguration-conditional) + */ + public fun conditional(): Any? = unwrap(this).getConditional() + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnectionconfiguration.html#cfn-bedrock-flow-flowconnectionconfiguration-data) + */ + public fun `data`(): Any? = unwrap(this).getData() + + /** + * A builder for [FlowConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + public fun conditional(conditional: IResolvable) + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + public fun conditional(conditional: FlowConditionalConnectionConfigurationProperty) + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b918bfbec3a05265cd61377bed07b33a6d62b0a11765e8ac572fa980904870f4") + public + fun conditional(conditional: FlowConditionalConnectionConfigurationProperty.Builder.() -> Unit) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + public fun `data`(`data`: IResolvable) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + public fun `data`(`data`: FlowDataConnectionConfigurationProperty) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3a4074f1e502f30ff011aebc05800e440d0aee33eb0f20c6751d817b46960077") + public fun `data`(`data`: FlowDataConnectionConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty.builder() + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + override fun conditional(conditional: IResolvable) { + cdkBuilder.conditional(conditional.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + override fun conditional(conditional: FlowConditionalConnectionConfigurationProperty) { + cdkBuilder.conditional(conditional.let(FlowConditionalConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b918bfbec3a05265cd61377bed07b33a6d62b0a11765e8ac572fa980904870f4") + override + fun conditional(conditional: FlowConditionalConnectionConfigurationProperty.Builder.() -> Unit): + Unit = conditional(FlowConditionalConnectionConfigurationProperty(conditional)) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + override fun `data`(`data`: IResolvable) { + cdkBuilder.`data`(`data`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + override fun `data`(`data`: FlowDataConnectionConfigurationProperty) { + cdkBuilder.`data`(`data`.let(FlowDataConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3a4074f1e502f30ff011aebc05800e440d0aee33eb0f20c6751d817b46960077") + override fun `data`(`data`: FlowDataConnectionConfigurationProperty.Builder.() -> Unit): Unit + = `data`(FlowDataConnectionConfigurationProperty(`data`)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowConnectionConfigurationProperty { + /** + * The configuration of a connection originating from a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnectionconfiguration.html#cfn-bedrock-flow-flowconnectionconfiguration-conditional) + */ + override fun conditional(): Any? = unwrap(this).getConditional() + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnectionconfiguration.html#cfn-bedrock-flow-flowconnectionconfiguration-data) + */ + override fun `data`(): Any? = unwrap(this).getData() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty): + FlowConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionConfigurationProperty + } + } + + /** + * Contains information about a connection between two nodes in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConnectionProperty flowConnectionProperty = FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html) + */ + public interface FlowConnectionProperty { + /** + * The configuration of the connection. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-configuration) + */ + public fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * A name for the connection that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-name) + */ + public fun name(): String + + /** + * The node that the connection starts at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-source) + */ + public fun source(): String + + /** + * The node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-target) + */ + public fun target(): String + + /** + * Whether the source node that the connection begins from is a condition node ( `Conditional` ) + * or not ( `Data` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-type) + */ + public fun type(): String + + /** + * A builder for [FlowConnectionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configuration The configuration of the connection. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration The configuration of the connection. + */ + public fun configuration(configuration: FlowConnectionConfigurationProperty) + + /** + * @param configuration The configuration of the connection. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("85b76b679a07b1300d1554d54ec5b195e4242416f10fa20f20e9ff863c22a195") + public + fun configuration(configuration: FlowConnectionConfigurationProperty.Builder.() -> Unit) + + /** + * @param name A name for the connection that you can reference. + */ + public fun name(name: String) + + /** + * @param source The node that the connection starts at. + */ + public fun source(source: String) + + /** + * @param target The node that the connection ends at. + */ + public fun target(target: String) + + /** + * @param type Whether the source node that the connection begins from is a condition node ( + * `Conditional` ) or not ( `Data` ). + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty.builder() + + /** + * @param configuration The configuration of the connection. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration The configuration of the connection. + */ + override fun configuration(configuration: FlowConnectionConfigurationProperty) { + cdkBuilder.configuration(configuration.let(FlowConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration The configuration of the connection. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("85b76b679a07b1300d1554d54ec5b195e4242416f10fa20f20e9ff863c22a195") + override + fun configuration(configuration: FlowConnectionConfigurationProperty.Builder.() -> Unit): + Unit = configuration(FlowConnectionConfigurationProperty(configuration)) + + /** + * @param name A name for the connection that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param source The node that the connection starts at. + */ + override fun source(source: String) { + cdkBuilder.source(source) + } + + /** + * @param target The node that the connection ends at. + */ + override fun target(target: String) { + cdkBuilder.target(target) + } + + /** + * @param type Whether the source node that the connection begins from is a condition node ( + * `Conditional` ) or not ( `Data` ). + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty, + ) : CdkObject(cdkObject), + FlowConnectionProperty { + /** + * The configuration of the connection. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-configuration) + */ + override fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * A name for the connection that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The node that the connection starts at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-source) + */ + override fun source(): String = unwrap(this).getSource() + + /** + * The node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-target) + */ + override fun target(): String = unwrap(this).getTarget() + + /** + * Whether the source node that the connection begins from is a condition node ( `Conditional` + * ) or not ( `Data` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowConnectionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty): + FlowConnectionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowConnectionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConnectionProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowConnectionProperty + } + } + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowDataConnectionConfigurationProperty flowDataConnectionConfigurationProperty = + * FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdataconnectionconfiguration.html) + */ + public interface FlowDataConnectionConfigurationProperty { + /** + * The name of the output in the source node that the connection begins from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdataconnectionconfiguration.html#cfn-bedrock-flow-flowdataconnectionconfiguration-sourceoutput) + */ + public fun sourceOutput(): String + + /** + * The name of the input in the target node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdataconnectionconfiguration.html#cfn-bedrock-flow-flowdataconnectionconfiguration-targetinput) + */ + public fun targetInput(): String + + /** + * A builder for [FlowDataConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sourceOutput The name of the output in the source node that the connection begins + * from. + */ + public fun sourceOutput(sourceOutput: String) + + /** + * @param targetInput The name of the input in the target node that the connection ends at. + */ + public fun targetInput(targetInput: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty.builder() + + /** + * @param sourceOutput The name of the output in the source node that the connection begins + * from. + */ + override fun sourceOutput(sourceOutput: String) { + cdkBuilder.sourceOutput(sourceOutput) + } + + /** + * @param targetInput The name of the input in the target node that the connection ends at. + */ + override fun targetInput(targetInput: String) { + cdkBuilder.targetInput(targetInput) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowDataConnectionConfigurationProperty { + /** + * The name of the output in the source node that the connection begins from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdataconnectionconfiguration.html#cfn-bedrock-flow-flowdataconnectionconfiguration-sourceoutput) + */ + override fun sourceOutput(): String = unwrap(this).getSourceOutput() + + /** + * The name of the input in the target node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdataconnectionconfiguration.html#cfn-bedrock-flow-flowdataconnectionconfiguration-targetinput) + */ + override fun targetInput(): String = unwrap(this).getTargetInput() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowDataConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty): + FlowDataConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowDataConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowDataConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDataConnectionConfigurationProperty + } + } + + /** + * The definition of the nodes and connections between nodes in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowDefinitionProperty flowDefinitionProperty = FlowDefinitionProperty.builder() + * .connections(List.of(FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build())) + * .nodes(List.of(FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + */ + public interface FlowDefinitionProperty { + /** + * An array of connection definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html#cfn-bedrock-flow-flowdefinition-connections) + */ + public fun connections(): Any? = unwrap(this).getConnections() + + /** + * An array of node definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html#cfn-bedrock-flow-flowdefinition-nodes) + */ + public fun nodes(): Any? = unwrap(this).getNodes() + + /** + * A builder for [FlowDefinitionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(connections: IResolvable) + + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(connections: List) + + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(vararg connections: Any) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(nodes: IResolvable) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(nodes: List) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(vararg nodes: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty.builder() + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(connections: IResolvable) { + cdkBuilder.connections(connections.let(IResolvable.Companion::unwrap)) + } + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(connections: List) { + cdkBuilder.connections(connections.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(vararg connections: Any): Unit = connections(connections.toList()) + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(nodes: IResolvable) { + cdkBuilder.nodes(nodes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(nodes: List) { + cdkBuilder.nodes(nodes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(vararg nodes: Any): Unit = nodes(nodes.toList()) + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty, + ) : CdkObject(cdkObject), + FlowDefinitionProperty { + /** + * An array of connection definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html#cfn-bedrock-flow-flowdefinition-connections) + */ + override fun connections(): Any? = unwrap(this).getConnections() + + /** + * An array of node definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html#cfn-bedrock-flow-flowdefinition-nodes) + */ + override fun nodes(): Any? = unwrap(this).getNodes() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowDefinitionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty): + FlowDefinitionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowDefinitionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowDefinitionProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowDefinitionProperty + } + } + + /** + * Contains configurations for a node in your flow. + * + * For more information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowNodeConfigurationProperty flowNodeConfigurationProperty = + * FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html) + */ + public interface FlowNodeConfigurationProperty { + /** + * Contains configurations for an agent node in your flow. + * + * Invokes an alias of an agent and returns the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-agent) + */ + public fun agent(): Any? = unwrap(this).getAgent() + + /** + * Contains configurations for a collector node in your flow. + * + * Collects an iteration of inputs and consolidates them into an array of outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-collector) + */ + public fun collector(): Any? = unwrap(this).getCollector() + + /** + * Contains configurations for a Condition node in your flow. + * + * Defines conditions that lead to different branches of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-condition) + */ + public fun condition(): Any? = unwrap(this).getCondition() + + /** + * Contains configurations for an input flow node in your flow. + * + * The first node in the flow. `inputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-input) + */ + public fun input(): Any? = unwrap(this).getInput() + + /** + * Contains configurations for an iterator node in your flow. + * + * Takes an input that is an array and iteratively sends each item of the array as an output to + * the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each member + * of the array. To return only one response, you can include a collector node downstream from the + * iterator node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-iterator) + */ + public fun iterator(): Any? = unwrap(this).getIterator() + + /** + * Contains configurations for a knowledge base node in your flow. + * + * Queries a knowledge base and returns the retrieved results or generated response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-knowledgebase) + */ + public fun knowledgeBase(): Any? = unwrap(this).getKnowledgeBase() + + /** + * Contains configurations for a Lambda function node in your flow. + * + * Invokes an AWS Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-lambdafunction) + */ + public fun lambdaFunction(): Any? = unwrap(this).getLambdaFunction() + + /** + * Contains configurations for a Lex node in your flow. + * + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-lex) + */ + public fun lex(): Any? = unwrap(this).getLex() + + /** + * Contains configurations for an output flow node in your flow. + * + * The last node in the flow. `outputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-output) + */ + public fun output(): Any? = unwrap(this).getOutput() + + /** + * Contains configurations for a prompt node in your flow. + * + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-prompt) + */ + public fun prompt(): Any? = unwrap(this).getPrompt() + + /** + * Contains configurations for a Retrieval node in your flow. + * + * Retrieves data from an Amazon S3 location and returns it as the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-retrieval) + */ + public fun retrieval(): Any? = unwrap(this).getRetrieval() + + /** + * Contains configurations for a Storage node in your flow. + * + * Stores an input in an Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-storage) + */ + public fun storage(): Any? = unwrap(this).getStorage() + + /** + * A builder for [FlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + public fun agent(agent: IResolvable) + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + public fun agent(agent: AgentFlowNodeConfigurationProperty) + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("619acf463d1b3ebcd4ff309cab8c2b5a1abcae02ca23247ed0eadb43f17d01b0") + public fun agent(agent: AgentFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param collector Contains configurations for a collector node in your flow. + * Collects an iteration of inputs and consolidates them into an array of outputs. + */ + public fun collector(collector: Any) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + public fun condition(condition: IResolvable) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + public fun condition(condition: ConditionFlowNodeConfigurationProperty) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f846f2c8dd0e3474c40ea04293f21251f9b90067d9566892608d779ed792dd6d") + public fun condition(condition: ConditionFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param input Contains configurations for an input flow node in your flow. + * The first node in the flow. `inputs` can't be specified for this node. + */ + public fun input(input: Any) + + /** + * @param iterator Contains configurations for an iterator node in your flow. + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + */ + public fun iterator(iterator: Any) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + public fun knowledgeBase(knowledgeBase: IResolvable) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + public fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("25141d0a178025401067d32b26414c5fc96fe9be0498057c0aafc7280a4d4ae4") + public + fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + public fun lambdaFunction(lambdaFunction: IResolvable) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + public fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4237e1347c9bdc9bd05c4ac7e3ecb35e9f698314044c859d5fefb3a25a3f8de3") + public + fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + public fun lex(lex: IResolvable) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + public fun lex(lex: LexFlowNodeConfigurationProperty) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5553dcf393090dcc197c5be2beb5f6063dd6677efb35717411dcd848f91b9efe") + public fun lex(lex: LexFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param output Contains configurations for an output flow node in your flow. + * The last node in the flow. `outputs` can't be specified for this node. + */ + public fun output(output: Any) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + public fun prompt(prompt: IResolvable) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + public fun prompt(prompt: PromptFlowNodeConfigurationProperty) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5debac002e8ac80f7844a9564e8beefac1959e07dd903ce4d7a86246103ef529") + public fun prompt(prompt: PromptFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + public fun retrieval(retrieval: IResolvable) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + public fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9d37f7218587ea6dcd7e1eec62aa87d882025b15f8f7aedd55622f82d6b6483f") + public fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + public fun storage(storage: IResolvable) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + public fun storage(storage: StorageFlowNodeConfigurationProperty) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("40f852e20d8113ba32413735a11a0d1f65a3d6e22b14343cd9c8ed0ca348fc44") + public fun storage(storage: StorageFlowNodeConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty.builder() + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + override fun agent(agent: IResolvable) { + cdkBuilder.agent(agent.let(IResolvable.Companion::unwrap)) + } + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + override fun agent(agent: AgentFlowNodeConfigurationProperty) { + cdkBuilder.agent(agent.let(AgentFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("619acf463d1b3ebcd4ff309cab8c2b5a1abcae02ca23247ed0eadb43f17d01b0") + override fun agent(agent: AgentFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + agent(AgentFlowNodeConfigurationProperty(agent)) + + /** + * @param collector Contains configurations for a collector node in your flow. + * Collects an iteration of inputs and consolidates them into an array of outputs. + */ + override fun collector(collector: Any) { + cdkBuilder.collector(collector) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + override fun condition(condition: IResolvable) { + cdkBuilder.condition(condition.let(IResolvable.Companion::unwrap)) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + override fun condition(condition: ConditionFlowNodeConfigurationProperty) { + cdkBuilder.condition(condition.let(ConditionFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f846f2c8dd0e3474c40ea04293f21251f9b90067d9566892608d779ed792dd6d") + override fun condition(condition: ConditionFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = condition(ConditionFlowNodeConfigurationProperty(condition)) + + /** + * @param input Contains configurations for an input flow node in your flow. + * The first node in the flow. `inputs` can't be specified for this node. + */ + override fun input(input: Any) { + cdkBuilder.input(input) + } + + /** + * @param iterator Contains configurations for an iterator node in your flow. + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + */ + override fun iterator(iterator: Any) { + cdkBuilder.iterator(iterator) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + override fun knowledgeBase(knowledgeBase: IResolvable) { + cdkBuilder.knowledgeBase(knowledgeBase.let(IResolvable.Companion::unwrap)) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + override fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty) { + cdkBuilder.knowledgeBase(knowledgeBase.let(KnowledgeBaseFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("25141d0a178025401067d32b26414c5fc96fe9be0498057c0aafc7280a4d4ae4") + override + fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty(knowledgeBase)) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + override fun lambdaFunction(lambdaFunction: IResolvable) { + cdkBuilder.lambdaFunction(lambdaFunction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + override fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty) { + cdkBuilder.lambdaFunction(lambdaFunction.let(LambdaFunctionFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4237e1347c9bdc9bd05c4ac7e3ecb35e9f698314044c859d5fefb3a25a3f8de3") + override + fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty(lambdaFunction)) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + override fun lex(lex: IResolvable) { + cdkBuilder.lex(lex.let(IResolvable.Companion::unwrap)) + } + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + override fun lex(lex: LexFlowNodeConfigurationProperty) { + cdkBuilder.lex(lex.let(LexFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5553dcf393090dcc197c5be2beb5f6063dd6677efb35717411dcd848f91b9efe") + override fun lex(lex: LexFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + lex(LexFlowNodeConfigurationProperty(lex)) + + /** + * @param output Contains configurations for an output flow node in your flow. + * The last node in the flow. `outputs` can't be specified for this node. + */ + override fun output(output: Any) { + cdkBuilder.output(output) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + override fun prompt(prompt: IResolvable) { + cdkBuilder.prompt(prompt.let(IResolvable.Companion::unwrap)) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + override fun prompt(prompt: PromptFlowNodeConfigurationProperty) { + cdkBuilder.prompt(prompt.let(PromptFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5debac002e8ac80f7844a9564e8beefac1959e07dd903ce4d7a86246103ef529") + override fun prompt(prompt: PromptFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + prompt(PromptFlowNodeConfigurationProperty(prompt)) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + override fun retrieval(retrieval: IResolvable) { + cdkBuilder.retrieval(retrieval.let(IResolvable.Companion::unwrap)) + } + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + override fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty) { + cdkBuilder.retrieval(retrieval.let(RetrievalFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9d37f7218587ea6dcd7e1eec62aa87d882025b15f8f7aedd55622f82d6b6483f") + override fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = retrieval(RetrievalFlowNodeConfigurationProperty(retrieval)) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + override fun storage(storage: IResolvable) { + cdkBuilder.storage(storage.let(IResolvable.Companion::unwrap)) + } + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + override fun storage(storage: StorageFlowNodeConfigurationProperty) { + cdkBuilder.storage(storage.let(StorageFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("40f852e20d8113ba32413735a11a0d1f65a3d6e22b14343cd9c8ed0ca348fc44") + override fun storage(storage: StorageFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + storage(StorageFlowNodeConfigurationProperty(storage)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + FlowNodeConfigurationProperty { + /** + * Contains configurations for an agent node in your flow. + * + * Invokes an alias of an agent and returns the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-agent) + */ + override fun agent(): Any? = unwrap(this).getAgent() + + /** + * Contains configurations for a collector node in your flow. + * + * Collects an iteration of inputs and consolidates them into an array of outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-collector) + */ + override fun collector(): Any? = unwrap(this).getCollector() + + /** + * Contains configurations for a Condition node in your flow. + * + * Defines conditions that lead to different branches of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-condition) + */ + override fun condition(): Any? = unwrap(this).getCondition() + + /** + * Contains configurations for an input flow node in your flow. + * + * The first node in the flow. `inputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-input) + */ + override fun input(): Any? = unwrap(this).getInput() + + /** + * Contains configurations for an iterator node in your flow. + * + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-iterator) + */ + override fun iterator(): Any? = unwrap(this).getIterator() + + /** + * Contains configurations for a knowledge base node in your flow. + * + * Queries a knowledge base and returns the retrieved results or generated response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-knowledgebase) + */ + override fun knowledgeBase(): Any? = unwrap(this).getKnowledgeBase() + + /** + * Contains configurations for a Lambda function node in your flow. + * + * Invokes an AWS Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-lambdafunction) + */ + override fun lambdaFunction(): Any? = unwrap(this).getLambdaFunction() + + /** + * Contains configurations for a Lex node in your flow. + * + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-lex) + */ + override fun lex(): Any? = unwrap(this).getLex() + + /** + * Contains configurations for an output flow node in your flow. + * + * The last node in the flow. `outputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-output) + */ + override fun output(): Any? = unwrap(this).getOutput() + + /** + * Contains configurations for a prompt node in your flow. + * + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-prompt) + */ + override fun prompt(): Any? = unwrap(this).getPrompt() + + /** + * Contains configurations for a Retrieval node in your flow. + * + * Retrieves data from an Amazon S3 location and returns it as the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-retrieval) + */ + override fun retrieval(): Any? = unwrap(this).getRetrieval() + + /** + * Contains configurations for a Storage node in your flow. + * + * Stores an input in an Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-storage) + */ + override fun storage(): Any? = unwrap(this).getStorage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty): + FlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for an input to a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowNodeInputProperty flowNodeInputProperty = FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html) + */ + public interface FlowNodeInputProperty { + /** + * An expression that formats the input for the node. + * + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-expression) + */ + public fun expression(): String + + /** + * A name for the input that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-name) + */ + public fun name(): String + + /** + * The data type of the input. + * + * If the input doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeInputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param expression An expression that formats the input for the node. + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + */ + public fun expression(expression: String) + + /** + * @param name A name for the input that you can reference. + */ + public fun name(name: String) + + /** + * @param type The data type of the input. + * If the input doesn't match this type at runtime, a validation error will be thrown. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty.builder() + + /** + * @param expression An expression that formats the input for the node. + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param name A name for the input that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param type The data type of the input. + * If the input doesn't match this type at runtime, a validation error will be thrown. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty, + ) : CdkObject(cdkObject), + FlowNodeInputProperty { + /** + * An expression that formats the input for the node. + * + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-expression) + */ + override fun expression(): String = unwrap(this).getExpression() + + /** + * A name for the input that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The data type of the input. + * + * If the input doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeInputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty): + FlowNodeInputProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeInputProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeInputProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeInputProperty + } + } + + /** + * Contains configurations for an output from a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowNodeOutputProperty flowNodeOutputProperty = FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeoutput.html) + */ + public interface FlowNodeOutputProperty { + /** + * A name for the output that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeoutput.html#cfn-bedrock-flow-flownodeoutput-name) + */ + public fun name(): String + + /** + * The data type of the output. + * + * If the output doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeoutput.html#cfn-bedrock-flow-flownodeoutput-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeOutputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name A name for the output that you can reference. + */ + public fun name(name: String) + + /** + * @param type The data type of the output. + * If the output doesn't match this type at runtime, a validation error will be thrown. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty.builder() + + /** + * @param name A name for the output that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param type The data type of the output. + * If the output doesn't match this type at runtime, a validation error will be thrown. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty, + ) : CdkObject(cdkObject), + FlowNodeOutputProperty { + /** + * A name for the output that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeoutput.html#cfn-bedrock-flow-flownodeoutput-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The data type of the output. + * + * If the output doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeoutput.html#cfn-bedrock-flow-flownodeoutput-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeOutputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty): + FlowNodeOutputProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeOutputProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeOutputProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeOutputProperty + } + } + + /** + * Contains configurations about a node in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowNodeProperty flowNodeProperty = FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html) + */ + public interface FlowNodeProperty { + /** + * Contains configurations for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-configuration) + */ + public fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * An array of objects, each of which contains information about an input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-inputs) + */ + public fun inputs(): Any? = unwrap(this).getInputs() + + /** + * A name for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-name) + */ + public fun name(): String + + /** + * A list of objects, each of which contains information about an output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-outputs) + */ + public fun outputs(): Any? = unwrap(this).getOutputs() + + /** + * The type of node. + * + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configuration Contains configurations for the node. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration Contains configurations for the node. + */ + public fun configuration(configuration: FlowNodeConfigurationProperty) + + /** + * @param configuration Contains configurations for the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f73d6eeec65444cf4483408136f21c263577319bc4a5045cb5bc07cce0e63b40") + public fun configuration(configuration: FlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(inputs: IResolvable) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(inputs: List) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(vararg inputs: Any) + + /** + * @param name A name for the node. + */ + public fun name(name: String) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(outputs: IResolvable) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(outputs: List) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(vararg outputs: Any) + + /** + * @param type The type of node. + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty.builder() + + /** + * @param configuration Contains configurations for the node. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration Contains configurations for the node. + */ + override fun configuration(configuration: FlowNodeConfigurationProperty) { + cdkBuilder.configuration(configuration.let(FlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration Contains configurations for the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f73d6eeec65444cf4483408136f21c263577319bc4a5045cb5bc07cce0e63b40") + override fun configuration(configuration: FlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = configuration(FlowNodeConfigurationProperty(configuration)) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(inputs: IResolvable) { + cdkBuilder.inputs(inputs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(inputs: List) { + cdkBuilder.inputs(inputs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(vararg inputs: Any): Unit = inputs(inputs.toList()) + + /** + * @param name A name for the node. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(outputs: IResolvable) { + cdkBuilder.outputs(outputs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(outputs: List) { + cdkBuilder.outputs(outputs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(vararg outputs: Any): Unit = outputs(outputs.toList()) + + /** + * @param type The type of node. + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty, + ) : CdkObject(cdkObject), + FlowNodeProperty { + /** + * Contains configurations for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-configuration) + */ + override fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * An array of objects, each of which contains information about an input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-inputs) + */ + override fun inputs(): Any? = unwrap(this).getInputs() + + /** + * A name for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A list of objects, each of which contains information about an output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-outputs) + */ + override fun outputs(): Any? = unwrap(this).getOutputs() + + /** + * The type of node. + * + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownode.html#cfn-bedrock-flow-flownode-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty): + FlowNodeProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty + } + } + + /** + * Contains information about validation of the flow. + * + * This data type is used in the following API operations: + * + * * [GetFlow + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html#API_agent_GetFlow_ResponseSyntax) + * * [GetFlowVersion + * response](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlowVersion.html#API_agent_GetFlowVersion_ResponseSyntax) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowValidationProperty flowValidationProperty = FlowValidationProperty.builder() + * .message("message") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowvalidation.html) + */ + public interface FlowValidationProperty { + /** + * A message describing the validation error. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowvalidation.html#cfn-bedrock-flow-flowvalidation-message) + */ + public fun message(): String + + /** + * A builder for [FlowValidationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param message A message describing the validation error. + */ + public fun message(message: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty.builder() + + /** + * @param message A message describing the validation error. + */ + override fun message(message: String) { + cdkBuilder.message(message) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty, + ) : CdkObject(cdkObject), + FlowValidationProperty { + /** + * A message describing the validation error. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowvalidation.html#cfn-bedrock-flow-flowvalidation-message) + */ + override fun message(): String = unwrap(this).getMessage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowValidationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty): + FlowValidationProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowValidationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowValidationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.FlowValidationProperty + } + } + + /** + * Contains configurations for a knowledge base node in a flow. + * + * This node takes a query as the input and returns, as the output, the retrieved responses + * directly (as an array) or a response generated based on the retrieved responses. For more + * information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * KnowledgeBaseFlowNodeConfigurationProperty knowledgeBaseFlowNodeConfigurationProperty = + * KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html) + */ + public interface KnowledgeBaseFlowNodeConfigurationProperty { + /** + * The unique identifier of the knowledge base to query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flow-knowledgebaseflownodeconfiguration-knowledgebaseid) + */ + public fun knowledgeBaseId(): String + + /** + * The unique identifier of the model to use to generate a response from the query results. + * + * Omit this field if you want to return the retrieved results as an array. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flow-knowledgebaseflownodeconfiguration-modelid) + */ + public fun modelId(): String? = unwrap(this).getModelId() + + /** + * A builder for [KnowledgeBaseFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param knowledgeBaseId The unique identifier of the knowledge base to query. + */ + public fun knowledgeBaseId(knowledgeBaseId: String) + + /** + * @param modelId The unique identifier of the model to use to generate a response from the + * query results. + * Omit this field if you want to return the retrieved results as an array. + */ + public fun modelId(modelId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty.builder() + + /** + * @param knowledgeBaseId The unique identifier of the knowledge base to query. + */ + override fun knowledgeBaseId(knowledgeBaseId: String) { + cdkBuilder.knowledgeBaseId(knowledgeBaseId) + } + + /** + * @param modelId The unique identifier of the model to use to generate a response from the + * query results. + * Omit this field if you want to return the retrieved results as an array. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + KnowledgeBaseFlowNodeConfigurationProperty { + /** + * The unique identifier of the knowledge base to query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flow-knowledgebaseflownodeconfiguration-knowledgebaseid) + */ + override fun knowledgeBaseId(): String = unwrap(this).getKnowledgeBaseId() + + /** + * The unique identifier of the model to use to generate a response from the query results. + * + * Omit this field if you want to return the retrieved results as an array. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flow-knowledgebaseflownodeconfiguration-modelid) + */ + override fun modelId(): String? = unwrap(this).getModelId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + KnowledgeBaseFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty): + KnowledgeBaseFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + KnowledgeBaseFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: KnowledgeBaseFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a Lambda function node in the flow. + * + * You specify the Lambda function to invoke and the inputs into the function. The output is the + * response that is defined in the Lambda function. For more information, see [Node types in Amazon + * Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the + * Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * LambdaFunctionFlowNodeConfigurationProperty lambdaFunctionFlowNodeConfigurationProperty = + * LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lambdafunctionflownodeconfiguration.html) + */ + public interface LambdaFunctionFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Lambda function to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lambdafunctionflownodeconfiguration.html#cfn-bedrock-flow-lambdafunctionflownodeconfiguration-lambdaarn) + */ + public fun lambdaArn(): String + + /** + * A builder for [LambdaFunctionFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param lambdaArn The Amazon Resource Name (ARN) of the Lambda function to invoke. + */ + public fun lambdaArn(lambdaArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty.builder() + + /** + * @param lambdaArn The Amazon Resource Name (ARN) of the Lambda function to invoke. + */ + override fun lambdaArn(lambdaArn: String) { + cdkBuilder.lambdaArn(lambdaArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + LambdaFunctionFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Lambda function to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lambdafunctionflownodeconfiguration.html#cfn-bedrock-flow-lambdafunctionflownodeconfiguration-lambdaarn) + */ + override fun lambdaArn(): String = unwrap(this).getLambdaArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + LambdaFunctionFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty): + LambdaFunctionFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + LambdaFunctionFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: LambdaFunctionFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a Lex node in the flow. + * + * You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns + * as the output the intent identified by the Amazon Lex bot. For more information, see [Node types + * in Amazon Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in + * the Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * LexFlowNodeConfigurationProperty lexFlowNodeConfigurationProperty = + * LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lexflownodeconfiguration.html) + */ + public interface LexFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lexflownodeconfiguration.html#cfn-bedrock-flow-lexflownodeconfiguration-botaliasarn) + */ + public fun botAliasArn(): String + + /** + * The Region to invoke the Amazon Lex bot in. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lexflownodeconfiguration.html#cfn-bedrock-flow-lexflownodeconfiguration-localeid) + */ + public fun localeId(): String + + /** + * A builder for [LexFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param botAliasArn The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + */ + public fun botAliasArn(botAliasArn: String) + + /** + * @param localeId The Region to invoke the Amazon Lex bot in. + */ + public fun localeId(localeId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty.builder() + + /** + * @param botAliasArn The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + */ + override fun botAliasArn(botAliasArn: String) { + cdkBuilder.botAliasArn(botAliasArn) + } + + /** + * @param localeId The Region to invoke the Amazon Lex bot in. + */ + override fun localeId(localeId: String) { + cdkBuilder.localeId(localeId) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + LexFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lexflownodeconfiguration.html#cfn-bedrock-flow-lexflownodeconfiguration-botaliasarn) + */ + override fun botAliasArn(): String = unwrap(this).getBotAliasArn() + + /** + * The Region to invoke the Amazon Lex bot in. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-lexflownodeconfiguration.html#cfn-bedrock-flow-lexflownodeconfiguration-localeid) + */ + override fun localeId(): String = unwrap(this).getLocaleId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LexFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty): + LexFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + LexFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: LexFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.LexFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a prompt node in the flow. + * + * You can use a prompt from Prompt management or you can define one in this node. If the prompt + * contains variables, the inputs into this node will fill in the variables. The output from this + * node is the response generated by the model. For more information, see [Node types in Amazon + * Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the + * Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeConfigurationProperty promptFlowNodeConfigurationProperty = + * PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html) + */ + public interface PromptFlowNodeConfigurationProperty { + /** + * Specifies whether the prompt is from Prompt management or defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html#cfn-bedrock-flow-promptflownodeconfiguration-sourceconfiguration) + */ + public fun sourceConfiguration(): Any + + /** + * A builder for [PromptFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + public fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty) + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("253365db9fcffebf761610fac8367f9299029865913fa4f8f1e997d2cd5520aa") + public + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty.builder() + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + override + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(PromptFlowNodeSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("253365db9fcffebf761610fac8367f9299029865913fa4f8f1e997d2cd5520aa") + override + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(PromptFlowNodeSourceConfigurationProperty(sourceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeConfigurationProperty { + /** + * Specifies whether the prompt is from Prompt management or defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html#cfn-bedrock-flow-promptflownodeconfiguration-sourceconfiguration) + */ + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty): + PromptFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a prompt defined inline in the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeInlineConfigurationProperty promptFlowNodeInlineConfigurationProperty = + * PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html) + */ + public interface PromptFlowNodeInlineConfigurationProperty { + /** + * Contains inference configurations for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-inferenceconfiguration) + */ + public fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model to run inference with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-modelid) + */ + public fun modelId(): String + + /** + * Contains a prompt and variables in the prompt that can be replaced with values at runtime. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-templateconfiguration) + */ + public fun templateConfiguration(): Any + + /** + * The type of prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-templatetype) + */ + public fun templateType(): String + + /** + * A builder for [PromptFlowNodeInlineConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + public fun inferenceConfiguration(inferenceConfiguration: IResolvable) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("22093073a38c032e9fe70409375416d7ebf982c51dac5992364ea0e76bba75c0") + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit) + + /** + * @param modelId The unique identifier of the model to run inference with. + */ + public fun modelId(modelId: String) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + public fun templateConfiguration(templateConfiguration: IResolvable) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + public fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bf02a55c1255e074ff00ec2b089b35343e3244be9995b056b3de41df1ae1ce44") + public + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit) + + /** + * @param templateType The type of prompt template. + */ + public fun templateType(templateType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty.builder() + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + override fun inferenceConfiguration(inferenceConfiguration: IResolvable) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(PromptInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("22093073a38c032e9fe70409375416d7ebf982c51dac5992364ea0e76bba75c0") + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit): + Unit = + inferenceConfiguration(PromptInferenceConfigurationProperty(inferenceConfiguration)) + + /** + * @param modelId The unique identifier of the model to run inference with. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + override fun templateConfiguration(templateConfiguration: IResolvable) { + cdkBuilder.templateConfiguration(templateConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) { + cdkBuilder.templateConfiguration(templateConfiguration.let(PromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bf02a55c1255e074ff00ec2b089b35343e3244be9995b056b3de41df1ae1ce44") + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit): + Unit = templateConfiguration(PromptTemplateConfigurationProperty(templateConfiguration)) + + /** + * @param templateType The type of prompt template. + */ + override fun templateType(templateType: String) { + cdkBuilder.templateType(templateType) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeInlineConfigurationProperty { + /** + * Contains inference configurations for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-inferenceconfiguration) + */ + override fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model to run inference with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-modelid) + */ + override fun modelId(): String = unwrap(this).getModelId() + + /** + * Contains a prompt and variables in the prompt that can be replaced with values at runtime. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-templateconfiguration) + */ + override fun templateConfiguration(): Any = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeinlineconfiguration.html#cfn-bedrock-flow-promptflownodeinlineconfiguration-templatetype) + */ + override fun templateType(): String = unwrap(this).getTemplateType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeInlineConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty): + PromptFlowNodeInlineConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeInlineConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeInlineConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeInlineConfigurationProperty + } + } + + /** + * Contains configurations for a prompt from Prompt management to use in a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeResourceConfigurationProperty promptFlowNodeResourceConfigurationProperty = + * PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownoderesourceconfiguration.html) + */ + public interface PromptFlowNodeResourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownoderesourceconfiguration.html#cfn-bedrock-flow-promptflownoderesourceconfiguration-promptarn) + */ + public fun promptArn(): String + + /** + * A builder for [PromptFlowNodeResourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param promptArn The Amazon Resource Name (ARN) of the prompt from Prompt management. + */ + public fun promptArn(promptArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty.builder() + + /** + * @param promptArn The Amazon Resource Name (ARN) of the prompt from Prompt management. + */ + override fun promptArn(promptArn: String) { + cdkBuilder.promptArn(promptArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeResourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownoderesourceconfiguration.html#cfn-bedrock-flow-promptflownoderesourceconfiguration-promptarn) + */ + override fun promptArn(): String = unwrap(this).getPromptArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeResourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty): + PromptFlowNodeResourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeResourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeResourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty + } + } + + /** + * Contains configurations for a prompt and whether it is from Prompt management or defined + * inline. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeSourceConfigurationProperty promptFlowNodeSourceConfigurationProperty = + * PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodesourceconfiguration.html) + */ + public interface PromptFlowNodeSourceConfigurationProperty { + /** + * Contains configurations for a prompt that is defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodesourceconfiguration.html#cfn-bedrock-flow-promptflownodesourceconfiguration-inline) + */ + public fun `inline`(): Any? = unwrap(this).getInline() + + /** + * Contains configurations for a prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodesourceconfiguration.html#cfn-bedrock-flow-promptflownodesourceconfiguration-resource) + */ + public fun resource(): Any? = unwrap(this).getResource() + + /** + * A builder for [PromptFlowNodeSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + public fun `inline`(`inline`: IResolvable) + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + public fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty) + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("454b797b680587d8d88010f73976a62608550354e2481b020808d8525dd6468a") + public fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty.Builder.() -> Unit) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + public fun resource(resource: IResolvable) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + public fun resource(resource: PromptFlowNodeResourceConfigurationProperty) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fece7ea2e82e5638c803085f00832cfa6fc0ba53e8c020eb97ad906afee8395d") + public fun resource(resource: PromptFlowNodeResourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty.builder() + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + override fun `inline`(`inline`: IResolvable) { + cdkBuilder.`inline`(`inline`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + override fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty) { + cdkBuilder.`inline`(`inline`.let(PromptFlowNodeInlineConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("454b797b680587d8d88010f73976a62608550354e2481b020808d8525dd6468a") + override fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty.Builder.() -> Unit): + Unit = `inline`(PromptFlowNodeInlineConfigurationProperty(`inline`)) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + override fun resource(resource: IResolvable) { + cdkBuilder.resource(resource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + override fun resource(resource: PromptFlowNodeResourceConfigurationProperty) { + cdkBuilder.resource(resource.let(PromptFlowNodeResourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fece7ea2e82e5638c803085f00832cfa6fc0ba53e8c020eb97ad906afee8395d") + override + fun resource(resource: PromptFlowNodeResourceConfigurationProperty.Builder.() -> Unit): + Unit = resource(PromptFlowNodeResourceConfigurationProperty(resource)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeSourceConfigurationProperty { + /** + * Contains configurations for a prompt that is defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodesourceconfiguration.html#cfn-bedrock-flow-promptflownodesourceconfiguration-inline) + */ + override fun `inline`(): Any? = unwrap(this).getInline() + + /** + * Contains configurations for a prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodesourceconfiguration.html#cfn-bedrock-flow-promptflownodesourceconfiguration-resource) + */ + override fun resource(): Any? = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty): + PromptFlowNodeSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptFlowNodeSourceConfigurationProperty + } + } + + /** + * Contains inference configurations for the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = + * PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinferenceconfiguration.html) + */ + public interface PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinferenceconfiguration.html#cfn-bedrock-flow-promptinferenceconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: PromptModelInferenceConfigurationProperty) + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a9b75262a4c933f9f0c9300bc2d689436c6c6a84043ec679a22f50dddd903545") + public fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty.builder() + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: PromptModelInferenceConfigurationProperty) { + cdkBuilder.text(text.let(PromptModelInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a9b75262a4c933f9f0c9300bc2d689436c6c6a84043ec679a22f50dddd903545") + override fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit): Unit = + text(PromptModelInferenceConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinferenceconfiguration.html#cfn-bedrock-flow-promptinferenceconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty): + PromptInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInferenceConfigurationProperty + } + } + + /** + * Contains information about a variable in the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInputVariableProperty promptInputVariableProperty = PromptInputVariableProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinputvariable.html) + */ + public interface PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinputvariable.html#cfn-bedrock-flow-promptinputvariable-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A builder for [PromptInputVariableProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the variable. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty.builder() + + /** + * @param name The name of the variable. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty, + ) : CdkObject(cdkObject), + PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptinputvariable.html#cfn-bedrock-flow-promptinputvariable-name) + */ + override fun name(): String? = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptInputVariableProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty): + PromptInputVariableProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInputVariableProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInputVariableProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptInputVariableProperty + } + } + + /** + * Contains inference configurations related to model inference for a prompt. + * + * For more information, see [Inference + * parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptModelInferenceConfigurationProperty promptModelInferenceConfigurationProperty = + * PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html) + */ + public interface PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-maxtokens) + */ + public fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-stopsequences) + */ + public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-temperature) + */ + public fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-topk) + */ + public fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-topp) + */ + public fun topP(): Number? = unwrap(this).getTopP() + + /** + * A builder for [PromptModelInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + public fun maxTokens(maxTokens: Number) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(stopSequences: List) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(vararg stopSequences: String) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + public fun temperature(temperature: Number) + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + public fun topK(topK: Number) + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + public fun topP(topP: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(stopSequences: List) { + cdkBuilder.stopSequences(stopSequences) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(vararg stopSequences: String): Unit = + stopSequences(stopSequences.toList()) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + override fun temperature(temperature: Number) { + cdkBuilder.temperature(temperature) + } + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + override fun topK(topK: Number) { + cdkBuilder.topK(topK) + } + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + override fun topP(topP: Number) { + cdkBuilder.topP(topP) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-maxtokens) + */ + override fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-stopsequences) + */ + override fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-temperature) + */ + override fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-topk) + */ + override fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-topp) + */ + override fun topP(): Number? = unwrap(this).getTopP() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptModelInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty): + PromptModelInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptModelInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptModelInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptModelInferenceConfigurationProperty + } + } + + /** + * Contains the message for a prompt. + * + * For more information, see [Prompt management in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptTemplateConfigurationProperty promptTemplateConfigurationProperty = + * PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-prompttemplateconfiguration.html) + */ + public interface PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-prompttemplateconfiguration.html#cfn-bedrock-flow-prompttemplateconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: TextPromptTemplateConfigurationProperty) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ea1d46d0bd3345d31f7e83047391e145fc4b3bda204297c65ef403852cec3b3c") + public fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty.builder() + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: TextPromptTemplateConfigurationProperty) { + cdkBuilder.text(text.let(TextPromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ea1d46d0bd3345d31f7e83047391e145fc4b3bda204297c65ef403852cec3b3c") + override fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit): Unit = + text(TextPromptTemplateConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-prompttemplateconfiguration.html#cfn-bedrock-flow-prompttemplateconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty): + PromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.PromptTemplateConfigurationProperty + } + } + + /** + * Contains configurations for a Retrieval node in a flow. + * + * This node retrieves data from the Amazon S3 location that you specify and returns it as the + * output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeConfigurationProperty retrievalFlowNodeConfigurationProperty = + * RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeconfiguration.html) + */ + public interface RetrievalFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for retrieving data to return as the output + * from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeconfiguration.html#cfn-bedrock-flow-retrievalflownodeconfiguration-serviceconfiguration) + */ + public fun serviceConfiguration(): Any + + /** + * A builder for [RetrievalFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + public fun serviceConfiguration(serviceConfiguration: IResolvable) + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + public + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty) + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1c23df3b09b13eb0b2da4aa3af7a8d974a630939b17d1ecebf9785593eb04296") + public + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty.builder() + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + override fun serviceConfiguration(serviceConfiguration: IResolvable) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + override + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(RetrievalFlowNodeServiceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1c23df3b09b13eb0b2da4aa3af7a8d974a630939b17d1ecebf9785593eb04296") + override + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty.Builder.() -> Unit): + Unit = + serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty(serviceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for retrieving data to return as the output + * from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeconfiguration.html#cfn-bedrock-flow-retrievalflownodeconfiguration-serviceconfiguration) + */ + override fun serviceConfiguration(): Any = unwrap(this).getServiceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty): + RetrievalFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as the + * output from the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeS3ConfigurationProperty retrievalFlowNodeS3ConfigurationProperty = + * RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodes3configuration.html) + */ + public interface RetrievalFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket from which to retrieve data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodes3configuration.html#cfn-bedrock-flow-retrievalflownodes3configuration-bucketname) + */ + public fun bucketName(): String + + /** + * A builder for [RetrievalFlowNodeS3ConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketName The name of the Amazon S3 bucket from which to retrieve data. + */ + public fun bucketName(bucketName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty.builder() + + /** + * @param bucketName The name of the Amazon S3 bucket from which to retrieve data. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket from which to retrieve data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodes3configuration.html#cfn-bedrock-flow-retrievalflownodes3configuration-bucketname) + */ + override fun bucketName(): String = unwrap(this).getBucketName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeS3ConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty): + RetrievalFlowNodeS3ConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeS3ConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeS3ConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty + } + } + + /** + * Contains configurations for the service to use for retrieving data to return as the output from + * the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeServiceConfigurationProperty retrievalFlowNodeServiceConfigurationProperty = + * RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeserviceconfiguration.html) + */ + public interface RetrievalFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as + * the output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flow-retrievalflownodeserviceconfiguration-s3) + */ + public fun s3(): Any? = unwrap(this).getS3() + + /** + * A builder for [RetrievalFlowNodeServiceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + public fun s3(s3: IResolvable) + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + public fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty) + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6f5975a0f283a15e66d0fe7deaf95aca2541a999b306aba3372f36ff2311c3d0") + public fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty.builder() + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + override fun s3(s3: IResolvable) { + cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + override fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty) { + cdkBuilder.s3(s3.let(RetrievalFlowNodeS3ConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6f5975a0f283a15e66d0fe7deaf95aca2541a999b306aba3372f36ff2311c3d0") + override fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty.Builder.() -> Unit): Unit = + s3(RetrievalFlowNodeS3ConfigurationProperty(s3)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as + * the output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flow-retrievalflownodeserviceconfiguration-s3) + */ + override fun s3(): Any? = unwrap(this).getS3() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeServiceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty): + RetrievalFlowNodeServiceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeServiceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeServiceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty + } + } + + /** + * The S3 location of the flow definition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * S3LocationProperty s3LocationProperty = S3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html) + */ + public interface S3LocationProperty { + /** + * The S3 bucket containing the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-bucket) + */ + public fun bucket(): String + + /** + * The object key for the S3 location containing the definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-key) + */ + public fun key(): String + + /** + * The Amazon S3 location from which to retrieve data for an S3 retrieve node or to which to + * store data for an S3 storage node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-version) + */ + public fun version(): String? = unwrap(this).getVersion() + + /** + * A builder for [S3LocationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucket The S3 bucket containing the flow definition. + */ + public fun bucket(bucket: String) + + /** + * @param key The object key for the S3 location containing the definition. + */ + public fun key(key: String) + + /** + * @param version The Amazon S3 location from which to retrieve data for an S3 retrieve node + * or to which to store data for an S3 storage node. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty.builder() + + /** + * @param bucket The S3 bucket containing the flow definition. + */ + override fun bucket(bucket: String) { + cdkBuilder.bucket(bucket) + } + + /** + * @param key The object key for the S3 location containing the definition. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param version The Amazon S3 location from which to retrieve data for an S3 retrieve node + * or to which to store data for an S3 storage node. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty, + ) : CdkObject(cdkObject), + S3LocationProperty { + /** + * The S3 bucket containing the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-bucket) + */ + override fun bucket(): String = unwrap(this).getBucket() + + /** + * The object key for the S3 location containing the definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-key) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The Amazon S3 location from which to retrieve data for an S3 retrieve node or to which to + * store data for an S3 storage node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-s3location.html#cfn-bedrock-flow-s3location-version) + */ + override fun version(): String? = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3LocationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty): + S3LocationProperty = CdkObjectWrappers.wrap(cdkObject) as? S3LocationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3LocationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnFlow.S3LocationProperty + } + } + + /** + * Contains configurations for a Storage node in a flow. + * + * This node stores the input in an Amazon S3 location that you specify. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeConfigurationProperty storageFlowNodeConfigurationProperty = + * StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeconfiguration.html) + */ + public interface StorageFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for storing the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeconfiguration.html#cfn-bedrock-flow-storageflownodeconfiguration-serviceconfiguration) + */ + public fun serviceConfiguration(): Any + + /** + * A builder for [StorageFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + public fun serviceConfiguration(serviceConfiguration: IResolvable) + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + public + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty) + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a08060d53194f3039089fc827172e86f1a6ea21751339d7897da6121b14f7833") + public + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty.builder() + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + override fun serviceConfiguration(serviceConfiguration: IResolvable) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + override + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(StorageFlowNodeServiceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a08060d53194f3039089fc827172e86f1a6ea21751339d7897da6121b14f7833") + override + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty.Builder.() -> Unit): + Unit = + serviceConfiguration(StorageFlowNodeServiceConfigurationProperty(serviceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for storing the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeconfiguration.html#cfn-bedrock-flow-storageflownodeconfiguration-serviceconfiguration) + */ + override fun serviceConfiguration(): Any = unwrap(this).getServiceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty): + StorageFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for the Amazon S3 location in which to store the input into the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeS3ConfigurationProperty storageFlowNodeS3ConfigurationProperty = + * StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodes3configuration.html) + */ + public interface StorageFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodes3configuration.html#cfn-bedrock-flow-storageflownodes3configuration-bucketname) + */ + public fun bucketName(): String + + /** + * A builder for [StorageFlowNodeS3ConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketName The name of the Amazon S3 bucket in which to store the input into the + * node. + */ + public fun bucketName(bucketName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty.builder() + + /** + * @param bucketName The name of the Amazon S3 bucket in which to store the input into the + * node. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodes3configuration.html#cfn-bedrock-flow-storageflownodes3configuration-bucketname) + */ + override fun bucketName(): String = unwrap(this).getBucketName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeS3ConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty): + StorageFlowNodeS3ConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeS3ConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeS3ConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty + } + } + + /** + * Contains configurations for the service to use for storing the input into the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeServiceConfigurationProperty storageFlowNodeServiceConfigurationProperty = + * StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeserviceconfiguration.html) + */ + public interface StorageFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeserviceconfiguration.html#cfn-bedrock-flow-storageflownodeserviceconfiguration-s3) + */ + public fun s3(): Any? = unwrap(this).getS3() + + /** + * A builder for [StorageFlowNodeServiceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + public fun s3(s3: IResolvable) + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + public fun s3(s3: StorageFlowNodeS3ConfigurationProperty) + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("04b0ad991e60d8e9f355555588815d52b0cc3b23a067231cd571ef2355344bed") + public fun s3(s3: StorageFlowNodeS3ConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty.builder() + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + override fun s3(s3: IResolvable) { + cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + override fun s3(s3: StorageFlowNodeS3ConfigurationProperty) { + cdkBuilder.s3(s3.let(StorageFlowNodeS3ConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("04b0ad991e60d8e9f355555588815d52b0cc3b23a067231cd571ef2355344bed") + override fun s3(s3: StorageFlowNodeS3ConfigurationProperty.Builder.() -> Unit): Unit = + s3(StorageFlowNodeS3ConfigurationProperty(s3)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location in which to store the input into the + * node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeserviceconfiguration.html#cfn-bedrock-flow-storageflownodeserviceconfiguration-s3) + */ + override fun s3(): Any? = unwrap(this).getS3() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeServiceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty): + StorageFlowNodeServiceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeServiceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeServiceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty + } + } + + /** + * Contains configurations for a text prompt template. + * + * To include a variable, enclose a word in double curly braces as in `{{variable}}` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TextPromptTemplateConfigurationProperty textPromptTemplateConfigurationProperty = + * TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-textprompttemplateconfiguration.html) + */ + public interface TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-textprompttemplateconfiguration.html#cfn-bedrock-flow-textprompttemplateconfiguration-inputvariables) + */ + public fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-textprompttemplateconfiguration.html#cfn-bedrock-flow-textprompttemplateconfiguration-text) + */ + public fun text(): String + + /** + * A builder for [TextPromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: IResolvable) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: List) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(vararg inputVariables: Any) + + /** + * @param text The message for the prompt. + */ + public fun text(text: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty.builder() + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: IResolvable) { + cdkBuilder.inputVariables(inputVariables.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: List) { + cdkBuilder.inputVariables(inputVariables.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(vararg inputVariables: Any): Unit = + inputVariables(inputVariables.toList()) + + /** + * @param text The message for the prompt. + */ + override fun text(text: String) { + cdkBuilder.text(text) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-textprompttemplateconfiguration.html#cfn-bedrock-flow-textprompttemplateconfiguration-inputvariables) + */ + override fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-textprompttemplateconfiguration.html#cfn-bedrock-flow-textprompttemplateconfiguration-text) + */ + override fun text(): String = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TextPromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty): + TextPromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + TextPromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TextPromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlow.TextPromptTemplateConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAlias.kt new file mode 100644 index 0000000000..aa8d5affbb --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAlias.kt @@ -0,0 +1,465 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an alias of a flow for deployment. + * + * For more information, see [Deploy a flow in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnFlowAlias cfnFlowAlias = CfnFlowAlias.Builder.create(this, "MyCfnFlowAlias") + * .flowArn("flowArn") + * .name("name") + * .routingConfiguration(List.of(FlowAliasRoutingConfigurationListItemProperty.builder() + * .flowVersion("flowVersion") + * .build())) + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html) + */ +public open class CfnFlowAlias( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAlias, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowAliasProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnFlowAlias(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnFlowAliasProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowAliasProps.Builder.() -> Unit, + ) : this(scope, id, CfnFlowAliasProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the alias. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The time at which the alias was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The unique identifier of the flow. + */ + public open fun attrFlowId(): String = unwrap(this).getAttrFlowId() + + /** + * The unique identifier of the alias of the flow. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The time at which the alias was last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A description of the alias. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A description of the alias. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the alias. + */ + public open fun flowArn(): String = unwrap(this).getFlowArn() + + /** + * The Amazon Resource Name (ARN) of the alias. + */ + public open fun flowArn(`value`: String) { + unwrap(this).setFlowArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the alias. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the alias. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * A list of configurations about the versions that the alias maps to. + */ + public open fun routingConfiguration(): Any = unwrap(this).getRoutingConfiguration() + + /** + * A list of configurations about the versions that the alias maps to. + */ + public open fun routingConfiguration(`value`: IResolvable) { + unwrap(this).setRoutingConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A list of configurations about the versions that the alias maps to. + */ + public open fun routingConfiguration(`value`: List) { + unwrap(this).setRoutingConfiguration(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A list of configurations about the versions that the alias maps to. + */ + public open fun routingConfiguration(vararg `value`: Any): Unit = + routingConfiguration(`value`.toList()) + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnFlowAlias]. + */ + @CdkDslMarker + public interface Builder { + /** + * A description of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-description) + * @param description A description of the alias. + */ + public fun description(description: String) + + /** + * The Amazon Resource Name (ARN) of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-flowarn) + * @param flowArn The Amazon Resource Name (ARN) of the alias. + */ + public fun flowArn(flowArn: String) + + /** + * The name of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-name) + * @param name The name of the alias. + */ + public fun name(name: String) + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + public fun routingConfiguration(routingConfiguration: IResolvable) + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + public fun routingConfiguration(routingConfiguration: List) + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + public fun routingConfiguration(vararg routingConfiguration: Any) + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlowAlias.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowAlias.Builder.create(scope, id) + + /** + * A description of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-description) + * @param description A description of the alias. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The Amazon Resource Name (ARN) of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-flowarn) + * @param flowArn The Amazon Resource Name (ARN) of the alias. + */ + override fun flowArn(flowArn: String) { + cdkBuilder.flowArn(flowArn) + } + + /** + * The name of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-name) + * @param name The name of the alias. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + override fun routingConfiguration(routingConfiguration: IResolvable) { + cdkBuilder.routingConfiguration(routingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + override fun routingConfiguration(routingConfiguration: List) { + cdkBuilder.routingConfiguration(routingConfiguration.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + */ + override fun routingConfiguration(vararg routingConfiguration: Any): Unit = + routingConfiguration(routingConfiguration.toList()) + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowAlias = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnFlowAlias.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnFlowAlias { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnFlowAlias(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAlias): CfnFlowAlias + = CfnFlowAlias(cdkObject) + + internal fun unwrap(wrapped: CfnFlowAlias): software.amazon.awscdk.services.bedrock.CfnFlowAlias + = wrapped.cdkObject as software.amazon.awscdk.services.bedrock.CfnFlowAlias + } + + /** + * Contains information about a version that the alias maps to. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowAliasRoutingConfigurationListItemProperty flowAliasRoutingConfigurationListItemProperty = + * FlowAliasRoutingConfigurationListItemProperty.builder() + * .flowVersion("flowVersion") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasroutingconfigurationlistitem.html) + */ + public interface FlowAliasRoutingConfigurationListItemProperty { + /** + * The version that the alias maps to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasroutingconfigurationlistitem.html#cfn-bedrock-flowalias-flowaliasroutingconfigurationlistitem-flowversion) + */ + public fun flowVersion(): String? = unwrap(this).getFlowVersion() + + /** + * A builder for [FlowAliasRoutingConfigurationListItemProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param flowVersion The version that the alias maps to. + */ + public fun flowVersion(flowVersion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty.builder() + + /** + * @param flowVersion The version that the alias maps to. + */ + override fun flowVersion(flowVersion: String) { + cdkBuilder.flowVersion(flowVersion) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, + ) : CdkObject(cdkObject), + FlowAliasRoutingConfigurationListItemProperty { + /** + * The version that the alias maps to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasroutingconfigurationlistitem.html#cfn-bedrock-flowalias-flowaliasroutingconfigurationlistitem-flowversion) + */ + override fun flowVersion(): String? = unwrap(this).getFlowVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowAliasRoutingConfigurationListItemProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty): + FlowAliasRoutingConfigurationListItemProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowAliasRoutingConfigurationListItemProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowAliasRoutingConfigurationListItemProperty): + software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAliasProps.kt new file mode 100644 index 0000000000..ce22c85dc3 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowAliasProps.kt @@ -0,0 +1,264 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnFlowAlias`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnFlowAliasProps cfnFlowAliasProps = CfnFlowAliasProps.builder() + * .flowArn("flowArn") + * .name("name") + * .routingConfiguration(List.of(FlowAliasRoutingConfigurationListItemProperty.builder() + * .flowVersion("flowVersion") + * .build())) + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html) + */ +public interface CfnFlowAliasProps { + /** + * A description of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-flowarn) + */ + public fun flowArn(): String + + /** + * The name of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-name) + */ + public fun name(): String + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + */ + public fun routingConfiguration(): Any + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnFlowAliasProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A description of the alias. + */ + public fun description(description: String) + + /** + * @param flowArn The Amazon Resource Name (ARN) of the alias. + */ + public fun flowArn(flowArn: String) + + /** + * @param name The name of the alias. + */ + public fun name(name: String) + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + public fun routingConfiguration(routingConfiguration: IResolvable) + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + public fun routingConfiguration(routingConfiguration: List) + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + public fun routingConfiguration(vararg routingConfiguration: Any) + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlowAliasProps.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowAliasProps.builder() + + /** + * @param description A description of the alias. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param flowArn The Amazon Resource Name (ARN) of the alias. + */ + override fun flowArn(flowArn: String) { + cdkBuilder.flowArn(flowArn) + } + + /** + * @param name The name of the alias. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + override fun routingConfiguration(routingConfiguration: IResolvable) { + cdkBuilder.routingConfiguration(routingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + override fun routingConfiguration(routingConfiguration: List) { + cdkBuilder.routingConfiguration(routingConfiguration.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param routingConfiguration A list of configurations about the versions that the alias maps + * to. + * Currently, you can only specify one. + */ + override fun routingConfiguration(vararg routingConfiguration: Any): Unit = + routingConfiguration(routingConfiguration.toList()) + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowAliasProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAliasProps, + ) : CdkObject(cdkObject), + CfnFlowAliasProps { + /** + * A description of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-flowarn) + */ + override fun flowArn(): String = unwrap(this).getFlowArn() + + /** + * The name of the alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A list of configurations about the versions that the alias maps to. + * + * Currently, you can only specify one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-routingconfiguration) + */ + override fun routingConfiguration(): Any = unwrap(this).getRoutingConfiguration() + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnFlowAliasProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowAliasProps): + CfnFlowAliasProps = CdkObjectWrappers.wrap(cdkObject) as? CfnFlowAliasProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnFlowAliasProps): + software.amazon.awscdk.services.bedrock.CfnFlowAliasProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.bedrock.CfnFlowAliasProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowProps.kt new file mode 100644 index 0000000000..ce2392a9a4 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowProps.kt @@ -0,0 +1,617 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnFlow`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * CfnFlowProps cfnFlowProps = CfnFlowProps.builder() + * .executionRoleArn("executionRoleArn") + * .name("name") + * // the properties below are optional + * .customerEncryptionKeyArn("customerEncryptionKeyArn") + * .definition(FlowDefinitionProperty.builder() + * .connections(List.of(FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build())) + * .nodes(List.of(FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build())) + * .build()) + * .definitionS3Location(S3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .definitionString("definitionString") + * .definitionSubstitutions(Map.of( + * "definitionSubstitutionsKey", "definitionSubstitutions")) + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .testAliasTags(Map.of( + * "testAliasTagsKey", "testAliasTags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html) + */ +public interface CfnFlowProps { + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-customerencryptionkeyarn) + */ + public fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + */ + public fun definition(): Any? = unwrap(this).getDefinition() + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + */ + public fun definitionS3Location(): Any? = unwrap(this).getDefinitionS3Location() + + /** + * The definition of the flow as a JSON-formatted string. + * + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionstring) + */ + public fun definitionString(): String? = unwrap(this).getDefinitionString() + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. Only + * supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + */ + public fun definitionSubstitutions(): Any? = unwrap(this).getDefinitionSubstitutions() + + /** + * A description of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + * + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the Amazon + * Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-executionrolearn) + */ + public fun executionRoleArn(): String + + /** + * The name of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-name) + */ + public fun name(): String + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + */ + public fun testAliasTags(): Any? = unwrap(this).getTestAliasTags() + + /** + * A builder for [CfnFlowProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the flow + * is encrypted with. + */ + public fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + public fun definition(definition: IResolvable) + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + public fun definition(definition: CfnFlow.FlowDefinitionProperty) + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b44461e6f081662d0b758fc27725257844f027e3911b9bd262d00e8397a4d026") + public fun definition(definition: CfnFlow.FlowDefinitionProperty.Builder.() -> Unit) + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + public fun definitionS3Location(definitionS3Location: IResolvable) + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + public fun definitionS3Location(definitionS3Location: CfnFlow.S3LocationProperty) + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("534bdb112aa12d670ceb2aa30506d4c9d7c21e5e24d7eaaef8cc4e19a371b18a") + public + fun definitionS3Location(definitionS3Location: CfnFlow.S3LocationProperty.Builder.() -> Unit) + + /** + * @param definitionString The definition of the flow as a JSON-formatted string. + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + */ + public fun definitionString(definitionString: String) + + /** + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + */ + public fun definitionSubstitutions(definitionSubstitutions: IResolvable) + + /** + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + */ + public fun definitionSubstitutions(definitionSubstitutions: Map) + + /** + * @param description A description of the flow. + */ + public fun description(description: String) + + /** + * @param executionRoleArn The Amazon Resource Name (ARN) of the service role with permissions + * to create a flow. + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the + * Amazon Bedrock User Guide. + */ + public fun executionRoleArn(executionRoleArn: String) + + /** + * @param name The name of the flow. + */ + public fun name(name: String) + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + public fun tags(tags: Map) + + /** + * @param testAliasTags A map of tag keys and values. + */ + public fun testAliasTags(testAliasTags: IResolvable) + + /** + * @param testAliasTags A map of tag keys and values. + */ + public fun testAliasTags(testAliasTags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlowProps.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowProps.builder() + + /** + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the flow + * is encrypted with. + */ + override fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) { + cdkBuilder.customerEncryptionKeyArn(customerEncryptionKeyArn) + } + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + override fun definition(definition: IResolvable) { + cdkBuilder.definition(definition.let(IResolvable.Companion::unwrap)) + } + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + override fun definition(definition: CfnFlow.FlowDefinitionProperty) { + cdkBuilder.definition(definition.let(CfnFlow.FlowDefinitionProperty.Companion::unwrap)) + } + + /** + * @param definition The definition of the nodes and connections between the nodes in the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b44461e6f081662d0b758fc27725257844f027e3911b9bd262d00e8397a4d026") + override fun definition(definition: CfnFlow.FlowDefinitionProperty.Builder.() -> Unit): Unit = + definition(CfnFlow.FlowDefinitionProperty(definition)) + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + override fun definitionS3Location(definitionS3Location: IResolvable) { + cdkBuilder.definitionS3Location(definitionS3Location.let(IResolvable.Companion::unwrap)) + } + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + override fun definitionS3Location(definitionS3Location: CfnFlow.S3LocationProperty) { + cdkBuilder.definitionS3Location(definitionS3Location.let(CfnFlow.S3LocationProperty.Companion::unwrap)) + } + + /** + * @param definitionS3Location The Amazon S3 location of the flow definition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("534bdb112aa12d670ceb2aa30506d4c9d7c21e5e24d7eaaef8cc4e19a371b18a") + override + fun definitionS3Location(definitionS3Location: CfnFlow.S3LocationProperty.Builder.() -> Unit): + Unit = definitionS3Location(CfnFlow.S3LocationProperty(definitionS3Location)) + + /** + * @param definitionString The definition of the flow as a JSON-formatted string. + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + */ + override fun definitionString(definitionString: String) { + cdkBuilder.definitionString(definitionString) + } + + /** + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + */ + override fun definitionSubstitutions(definitionSubstitutions: IResolvable) { + cdkBuilder.definitionSubstitutions(definitionSubstitutions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param definitionSubstitutions A map that specifies the mappings for placeholder variables in + * the prompt flow definition. + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + */ + override fun definitionSubstitutions(definitionSubstitutions: Map) { + cdkBuilder.definitionSubstitutions(definitionSubstitutions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param description A description of the flow. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param executionRoleArn The Amazon Resource Name (ARN) of the service role with permissions + * to create a flow. + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the + * Amazon Bedrock User Guide. + */ + override fun executionRoleArn(executionRoleArn: String) { + cdkBuilder.executionRoleArn(executionRoleArn) + } + + /** + * @param name The name of the flow. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * @param testAliasTags A map of tag keys and values. + */ + override fun testAliasTags(testAliasTags: IResolvable) { + cdkBuilder.testAliasTags(testAliasTags.let(IResolvable.Companion::unwrap)) + } + + /** + * @param testAliasTags A map of tag keys and values. + */ + override fun testAliasTags(testAliasTags: Map) { + cdkBuilder.testAliasTags(testAliasTags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowProps, + ) : CdkObject(cdkObject), + CfnFlowProps { + /** + * The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-customerencryptionkeyarn) + */ + override fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The definition of the nodes and connections between the nodes in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definition) + */ + override fun definition(): Any? = unwrap(this).getDefinition() + + /** + * The Amazon S3 location of the flow definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitions3location) + */ + override fun definitionS3Location(): Any? = unwrap(this).getDefinitionS3Location() + + /** + * The definition of the flow as a JSON-formatted string. + * + * The string must match the format in + * [FlowDefinition](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowdefinition.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionstring) + */ + override fun definitionString(): String? = unwrap(this).getDefinitionString() + + /** + * A map that specifies the mappings for placeholder variables in the prompt flow definition. + * + * This enables the customer to inject values obtained at runtime. Variables can be template + * parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. + * Only supported with the `DefinitionString` and `DefinitionS3Location` fields. + * + * Substitutions must follow the syntax: `${key_name}` or `${variable_1,variable_2,...}` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-definitionsubstitutions) + */ + override fun definitionSubstitutions(): Any? = unwrap(this).getDefinitionSubstitutions() + + /** + * A description of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + * + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the + * Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-executionrolearn) + */ + override fun executionRoleArn(): String = unwrap(this).getExecutionRoleArn() + + /** + * The name of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html#cfn-bedrock-flow-testaliastags) + */ + override fun testAliasTags(): Any? = unwrap(this).getTestAliasTags() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnFlowProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowProps): CfnFlowProps + = CdkObjectWrappers.wrap(cdkObject) as? CfnFlowProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnFlowProps): software.amazon.awscdk.services.bedrock.CfnFlowProps + = (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnFlowProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersion.kt new file mode 100644 index 0000000000..ce6c0a8da0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersion.kt @@ -0,0 +1,5260 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a version of the flow that you can deploy. + * + * For more information, see [Deploy a flow in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnFlowVersion cfnFlowVersion = CfnFlowVersion.Builder.create(this, "MyCfnFlowVersion") + * .flowArn("flowArn") + * // the properties below are optional + * .description("description") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html) + */ +public open class CfnFlowVersion( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowVersionProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnFlowVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnFlowVersionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFlowVersionProps.Builder.() -> Unit, + ) : this(scope, id, CfnFlowVersionProps(props) + ) + + /** + * The time at the version was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * A KMS key ARN. + */ + public open fun attrCustomerEncryptionKeyArn(): String = + unwrap(this).getAttrCustomerEncryptionKeyArn() + + /** + * Flow definition. + */ + public open fun attrDefinition(): IResolvable = + unwrap(this).getAttrDefinition().let(IResolvable::wrap) + + /** + * The Amazon Resource Name (ARN) of the service role with permissions to create a flow. + * + * For more information, see [Create a service row for + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the Amazon + * Bedrock User Guide. + */ + public open fun attrExecutionRoleArn(): String = unwrap(this).getAttrExecutionRoleArn() + + /** + * The unique identifier of the flow. + */ + public open fun attrFlowId(): String = unwrap(this).getAttrFlowId() + + /** + * The name of the flow. + */ + public open fun attrName(): String = unwrap(this).getAttrName() + + /** + * The status of the flow. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * The version of the flow. + */ + public open fun attrVersion(): String = unwrap(this).getAttrVersion() + + /** + * The description of the flow version. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the flow version. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + public open fun flowArn(): String = unwrap(this).getFlowArn() + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + public open fun flowArn(`value`: String) { + unwrap(this).setFlowArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnFlowVersion]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the flow version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-description) + * @param description The description of the flow version. + */ + public fun description(description: String) + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-flowarn) + * @param flowArn The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + public fun flowArn(flowArn: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlowVersion.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.Builder.create(scope, id) + + /** + * The description of the flow version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-description) + * @param description The description of the flow version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-flowarn) + * @param flowArn The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + override fun flowArn(flowArn: String) { + cdkBuilder.flowArn(flowArn) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowVersion = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnFlowVersion { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnFlowVersion(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion): + CfnFlowVersion = CfnFlowVersion(cdkObject) + + internal fun unwrap(wrapped: CfnFlowVersion): + software.amazon.awscdk.services.bedrock.CfnFlowVersion = wrapped.cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion + } + + /** + * Defines an agent node in your flow. + * + * You specify the agent to invoke at this point in the flow. For more information, see [Node + * types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * AgentFlowNodeConfigurationProperty agentFlowNodeConfigurationProperty = + * AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-agentflownodeconfiguration.html) + */ + public interface AgentFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the alias of the agent to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-agentflownodeconfiguration.html#cfn-bedrock-flowversion-agentflownodeconfiguration-agentaliasarn) + */ + public fun agentAliasArn(): String + + /** + * A builder for [AgentFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param agentAliasArn The Amazon Resource Name (ARN) of the alias of the agent to invoke. + */ + public fun agentAliasArn(agentAliasArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty.builder() + + /** + * @param agentAliasArn The Amazon Resource Name (ARN) of the alias of the agent to invoke. + */ + override fun agentAliasArn(agentAliasArn: String) { + cdkBuilder.agentAliasArn(agentAliasArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + AgentFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the alias of the agent to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-agentflownodeconfiguration.html#cfn-bedrock-flowversion-agentflownodeconfiguration-agentaliasarn) + */ + override fun agentAliasArn(): String = unwrap(this).getAgentAliasArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + AgentFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty): + AgentFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + AgentFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AgentFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty + } + } + + /** + * Defines a condition node in your flow. + * + * You can specify conditions that determine which node comes next in the flow. For more + * information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ConditionFlowNodeConfigurationProperty conditionFlowNodeConfigurationProperty = + * ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-conditionflownodeconfiguration.html) + */ + public interface ConditionFlowNodeConfigurationProperty { + /** + * An array of conditions. + * + * Each member contains the name of a condition and an expression that defines the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-conditionflownodeconfiguration.html#cfn-bedrock-flowversion-conditionflownodeconfiguration-conditions) + */ + public fun conditions(): Any + + /** + * A builder for [ConditionFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(conditions: List) + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + public fun conditions(vararg conditions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty.builder() + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions An array of conditions. + * Each member contains the name of a condition and an expression that defines the condition. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + ConditionFlowNodeConfigurationProperty { + /** + * An array of conditions. + * + * Each member contains the name of a condition and an expression that defines the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-conditionflownodeconfiguration.html#cfn-bedrock-flowversion-conditionflownodeconfiguration-conditions) + */ + override fun conditions(): Any = unwrap(this).getConditions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConditionFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty): + ConditionFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConditionFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConditionFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty + } + } + + /** + * Defines a condition in the condition node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConditionProperty flowConditionProperty = FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html) + */ + public interface FlowConditionProperty { + /** + * Defines the condition. + * + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html#cfn-bedrock-flowversion-flowcondition-expression) + */ + public fun expression(): String? = unwrap(this).getExpression() + + /** + * A name for the condition that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html#cfn-bedrock-flowversion-flowcondition-name) + */ + public fun name(): String + + /** + * A builder for [FlowConditionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param expression Defines the condition. + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + */ + public fun expression(expression: String) + + /** + * @param name A name for the condition that you can reference. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty.builder() + + /** + * @param expression Defines the condition. + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param name A name for the condition that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty, + ) : CdkObject(cdkObject), + FlowConditionProperty { + /** + * Defines the condition. + * + * You must refer to at least one of the inputs in the condition. For more information, expand + * the Condition node section in [Node types in prompt + * flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html#cfn-bedrock-flowversion-flowcondition-expression) + */ + override fun expression(): String? = unwrap(this).getExpression() + + /** + * A name for the condition that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowcondition.html#cfn-bedrock-flowversion-flowcondition-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowConditionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty): + FlowConditionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowConditionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConditionProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionProperty + } + } + + /** + * The configuration of a connection between a condition node and another node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConditionalConnectionConfigurationProperty flowConditionalConnectionConfigurationProperty = + * FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconditionalconnectionconfiguration.html) + */ + public interface FlowConditionalConnectionConfigurationProperty { + /** + * The condition that triggers this connection. + * + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in the + * Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconditionalconnectionconfiguration.html#cfn-bedrock-flowversion-flowconditionalconnectionconfiguration-condition) + */ + public fun condition(): String + + /** + * A builder for [FlowConditionalConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param condition The condition that triggers this connection. + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + */ + public fun condition(condition: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty.builder() + + /** + * @param condition The condition that triggers this connection. + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + */ + override fun condition(condition: String) { + cdkBuilder.condition(condition) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowConditionalConnectionConfigurationProperty { + /** + * The condition that triggers this connection. + * + * For more information about how to write conditions, see the *Condition* node type in the + * [Node types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) topic in + * the Amazon Bedrock User Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconditionalconnectionconfiguration.html#cfn-bedrock-flowversion-flowconditionalconnectionconfiguration-condition) + */ + override fun condition(): String = unwrap(this).getCondition() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowConditionalConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty): + FlowConditionalConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowConditionalConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConditionalConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConditionalConnectionConfigurationProperty + } + } + + /** + * The configuration of the connection. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConnectionConfigurationProperty flowConnectionConfigurationProperty = + * FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html) + */ + public interface FlowConnectionConfigurationProperty { + /** + * The configuration of a connection originating from a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-conditional) + */ + public fun conditional(): Any? = unwrap(this).getConditional() + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-data) + */ + public fun `data`(): Any? = unwrap(this).getData() + + /** + * A builder for [FlowConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + public fun conditional(conditional: IResolvable) + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + public fun conditional(conditional: FlowConditionalConnectionConfigurationProperty) + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47211eebd84a71d189de5aa7ae5018e9e3dc67eb88568e70f20ee7e2df70b7b2") + public + fun conditional(conditional: FlowConditionalConnectionConfigurationProperty.Builder.() -> Unit) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + public fun `data`(`data`: IResolvable) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + public fun `data`(`data`: FlowDataConnectionConfigurationProperty) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("06cc2bc985378c886de9c86064872679df435665aa7171b3553899355d4563ec") + public fun `data`(`data`: FlowDataConnectionConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty.builder() + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + override fun conditional(conditional: IResolvable) { + cdkBuilder.conditional(conditional.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + override fun conditional(conditional: FlowConditionalConnectionConfigurationProperty) { + cdkBuilder.conditional(conditional.let(FlowConditionalConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param conditional The configuration of a connection originating from a Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47211eebd84a71d189de5aa7ae5018e9e3dc67eb88568e70f20ee7e2df70b7b2") + override + fun conditional(conditional: FlowConditionalConnectionConfigurationProperty.Builder.() -> Unit): + Unit = conditional(FlowConditionalConnectionConfigurationProperty(conditional)) + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + override fun `data`(`data`: IResolvable) { + cdkBuilder.`data`(`data`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + override fun `data`(`data`: FlowDataConnectionConfigurationProperty) { + cdkBuilder.`data`(`data`.let(FlowDataConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param data The configuration of a connection originating from a node that isn't a + * Condition node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("06cc2bc985378c886de9c86064872679df435665aa7171b3553899355d4563ec") + override fun `data`(`data`: FlowDataConnectionConfigurationProperty.Builder.() -> Unit): Unit + = `data`(FlowDataConnectionConfigurationProperty(`data`)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowConnectionConfigurationProperty { + /** + * The configuration of a connection originating from a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-conditional) + */ + override fun conditional(): Any? = unwrap(this).getConditional() + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-data) + */ + override fun `data`(): Any? = unwrap(this).getData() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty): + FlowConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionConfigurationProperty + } + } + + /** + * Contains information about a connection between two nodes in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowConnectionProperty flowConnectionProperty = FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html) + */ + public interface FlowConnectionProperty { + /** + * The configuration of the connection. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-configuration) + */ + public fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * A name for the connection that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-name) + */ + public fun name(): String + + /** + * The node that the connection starts at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-source) + */ + public fun source(): String + + /** + * The node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-target) + */ + public fun target(): String + + /** + * Whether the source node that the connection begins from is a condition node ( `Conditional` ) + * or not ( `Data` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-type) + */ + public fun type(): String + + /** + * A builder for [FlowConnectionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configuration The configuration of the connection. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration The configuration of the connection. + */ + public fun configuration(configuration: FlowConnectionConfigurationProperty) + + /** + * @param configuration The configuration of the connection. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f5bf8a4efcfdeba0234b124d7285ec87889d10c5c18df186b6ccf122a85eabb") + public + fun configuration(configuration: FlowConnectionConfigurationProperty.Builder.() -> Unit) + + /** + * @param name A name for the connection that you can reference. + */ + public fun name(name: String) + + /** + * @param source The node that the connection starts at. + */ + public fun source(source: String) + + /** + * @param target The node that the connection ends at. + */ + public fun target(target: String) + + /** + * @param type Whether the source node that the connection begins from is a condition node ( + * `Conditional` ) or not ( `Data` ). + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty.builder() + + /** + * @param configuration The configuration of the connection. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration The configuration of the connection. + */ + override fun configuration(configuration: FlowConnectionConfigurationProperty) { + cdkBuilder.configuration(configuration.let(FlowConnectionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration The configuration of the connection. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f5bf8a4efcfdeba0234b124d7285ec87889d10c5c18df186b6ccf122a85eabb") + override + fun configuration(configuration: FlowConnectionConfigurationProperty.Builder.() -> Unit): + Unit = configuration(FlowConnectionConfigurationProperty(configuration)) + + /** + * @param name A name for the connection that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param source The node that the connection starts at. + */ + override fun source(source: String) { + cdkBuilder.source(source) + } + + /** + * @param target The node that the connection ends at. + */ + override fun target(target: String) { + cdkBuilder.target(target) + } + + /** + * @param type Whether the source node that the connection begins from is a condition node ( + * `Conditional` ) or not ( `Data` ). + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty, + ) : CdkObject(cdkObject), + FlowConnectionProperty { + /** + * The configuration of the connection. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-configuration) + */ + override fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * A name for the connection that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The node that the connection starts at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-source) + */ + override fun source(): String = unwrap(this).getSource() + + /** + * The node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-target) + */ + override fun target(): String = unwrap(this).getTarget() + + /** + * Whether the source node that the connection begins from is a condition node ( `Conditional` + * ) or not ( `Data` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowConnectionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty): + FlowConnectionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowConnectionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowConnectionProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowConnectionProperty + } + } + + /** + * The configuration of a connection originating from a node that isn't a Condition node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowDataConnectionConfigurationProperty flowDataConnectionConfigurationProperty = + * FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html) + */ + public interface FlowDataConnectionConfigurationProperty { + /** + * The name of the output in the source node that the connection begins from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-sourceoutput) + */ + public fun sourceOutput(): String + + /** + * The name of the input in the target node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-targetinput) + */ + public fun targetInput(): String + + /** + * A builder for [FlowDataConnectionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sourceOutput The name of the output in the source node that the connection begins + * from. + */ + public fun sourceOutput(sourceOutput: String) + + /** + * @param targetInput The name of the input in the target node that the connection ends at. + */ + public fun targetInput(targetInput: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty.builder() + + /** + * @param sourceOutput The name of the output in the source node that the connection begins + * from. + */ + override fun sourceOutput(sourceOutput: String) { + cdkBuilder.sourceOutput(sourceOutput) + } + + /** + * @param targetInput The name of the input in the target node that the connection ends at. + */ + override fun targetInput(targetInput: String) { + cdkBuilder.targetInput(targetInput) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty, + ) : CdkObject(cdkObject), + FlowDataConnectionConfigurationProperty { + /** + * The name of the output in the source node that the connection begins from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-sourceoutput) + */ + override fun sourceOutput(): String = unwrap(this).getSourceOutput() + + /** + * The name of the input in the target node that the connection ends at. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-targetinput) + */ + override fun targetInput(): String = unwrap(this).getTargetInput() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + FlowDataConnectionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty): + FlowDataConnectionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowDataConnectionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowDataConnectionConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDataConnectionConfigurationProperty + } + } + + /** + * The definition of the nodes and connections between nodes in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowDefinitionProperty flowDefinitionProperty = FlowDefinitionProperty.builder() + * .connections(List.of(FlowConnectionProperty.builder() + * .name("name") + * .source("source") + * .target("target") + * .type("type") + * // the properties below are optional + * .configuration(FlowConnectionConfigurationProperty.builder() + * .conditional(FlowConditionalConnectionConfigurationProperty.builder() + * .condition("condition") + * .build()) + * .data(FlowDataConnectionConfigurationProperty.builder() + * .sourceOutput("sourceOutput") + * .targetInput("targetInput") + * .build()) + * .build()) + * .build())) + * .nodes(List.of(FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html) + */ + public interface FlowDefinitionProperty { + /** + * An array of connection definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html#cfn-bedrock-flowversion-flowdefinition-connections) + */ + public fun connections(): Any? = unwrap(this).getConnections() + + /** + * An array of node definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html#cfn-bedrock-flowversion-flowdefinition-nodes) + */ + public fun nodes(): Any? = unwrap(this).getNodes() + + /** + * A builder for [FlowDefinitionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(connections: IResolvable) + + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(connections: List) + + /** + * @param connections An array of connection definitions in the flow. + */ + public fun connections(vararg connections: Any) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(nodes: IResolvable) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(nodes: List) + + /** + * @param nodes An array of node definitions in the flow. + */ + public fun nodes(vararg nodes: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty.builder() + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(connections: IResolvable) { + cdkBuilder.connections(connections.let(IResolvable.Companion::unwrap)) + } + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(connections: List) { + cdkBuilder.connections(connections.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param connections An array of connection definitions in the flow. + */ + override fun connections(vararg connections: Any): Unit = connections(connections.toList()) + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(nodes: IResolvable) { + cdkBuilder.nodes(nodes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(nodes: List) { + cdkBuilder.nodes(nodes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param nodes An array of node definitions in the flow. + */ + override fun nodes(vararg nodes: Any): Unit = nodes(nodes.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty, + ) : CdkObject(cdkObject), + FlowDefinitionProperty { + /** + * An array of connection definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html#cfn-bedrock-flowversion-flowdefinition-connections) + */ + override fun connections(): Any? = unwrap(this).getConnections() + + /** + * An array of node definitions in the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdefinition.html#cfn-bedrock-flowversion-flowdefinition-nodes) + */ + override fun nodes(): Any? = unwrap(this).getNodes() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowDefinitionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty): + FlowDefinitionProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowDefinitionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowDefinitionProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty + } + } + + /** + * Contains configurations for a node in your flow. + * + * For more information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowNodeConfigurationProperty flowNodeConfigurationProperty = + * FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html) + */ + public interface FlowNodeConfigurationProperty { + /** + * Contains configurations for an agent node in your flow. + * + * Invokes an alias of an agent and returns the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-agent) + */ + public fun agent(): Any? = unwrap(this).getAgent() + + /** + * Contains configurations for a collector node in your flow. + * + * Collects an iteration of inputs and consolidates them into an array of outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-collector) + */ + public fun collector(): Any? = unwrap(this).getCollector() + + /** + * Contains configurations for a Condition node in your flow. + * + * Defines conditions that lead to different branches of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-condition) + */ + public fun condition(): Any? = unwrap(this).getCondition() + + /** + * Contains configurations for an input flow node in your flow. + * + * The first node in the flow. `inputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-input) + */ + public fun input(): Any? = unwrap(this).getInput() + + /** + * Contains configurations for an iterator node in your flow. + * + * Takes an input that is an array and iteratively sends each item of the array as an output to + * the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each member + * of the array. To return only one response, you can include a collector node downstream from the + * iterator node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-iterator) + */ + public fun iterator(): Any? = unwrap(this).getIterator() + + /** + * Contains configurations for a knowledge base node in your flow. + * + * Queries a knowledge base and returns the retrieved results or generated response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-knowledgebase) + */ + public fun knowledgeBase(): Any? = unwrap(this).getKnowledgeBase() + + /** + * Contains configurations for a Lambda function node in your flow. + * + * Invokes an AWS Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-lambdafunction) + */ + public fun lambdaFunction(): Any? = unwrap(this).getLambdaFunction() + + /** + * Contains configurations for a Lex node in your flow. + * + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-lex) + */ + public fun lex(): Any? = unwrap(this).getLex() + + /** + * Contains configurations for an output flow node in your flow. + * + * The last node in the flow. `outputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-output) + */ + public fun output(): Any? = unwrap(this).getOutput() + + /** + * Contains configurations for a prompt node in your flow. + * + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-prompt) + */ + public fun prompt(): Any? = unwrap(this).getPrompt() + + /** + * Contains configurations for a Retrieval node in your flow. + * + * Retrieves data from an Amazon S3 location and returns it as the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-retrieval) + */ + public fun retrieval(): Any? = unwrap(this).getRetrieval() + + /** + * Contains configurations for a Storage node in your flow. + * + * Stores an input in an Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-storage) + */ + public fun storage(): Any? = unwrap(this).getStorage() + + /** + * A builder for [FlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + public fun agent(agent: IResolvable) + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + public fun agent(agent: AgentFlowNodeConfigurationProperty) + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ad185bad7d4492d9a0da83ef091b3d9ae9c516c3760ae74d3ed7e539c12a9b5f") + public fun agent(agent: AgentFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param collector Contains configurations for a collector node in your flow. + * Collects an iteration of inputs and consolidates them into an array of outputs. + */ + public fun collector(collector: Any) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + public fun condition(condition: IResolvable) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + public fun condition(condition: ConditionFlowNodeConfigurationProperty) + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("045924595e2feaa22ecebc836af784b7107df129a1ad68829224b14dac702d71") + public fun condition(condition: ConditionFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param input Contains configurations for an input flow node in your flow. + * The first node in the flow. `inputs` can't be specified for this node. + */ + public fun input(input: Any) + + /** + * @param iterator Contains configurations for an iterator node in your flow. + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + */ + public fun iterator(iterator: Any) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + public fun knowledgeBase(knowledgeBase: IResolvable) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + public fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty) + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c1a46ba72807beb6a92072e9e98c7299a3eae731dd00a0b1abb52a11b00965ba") + public + fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + public fun lambdaFunction(lambdaFunction: IResolvable) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + public fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9f225e8e35ab5a4e9dc83f68bbb7ebc88b77fdf8966ae182934d8e446fa08b1c") + public + fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + public fun lex(lex: IResolvable) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + public fun lex(lex: LexFlowNodeConfigurationProperty) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f277d79e4905009a0b1d2bd0b58733b58693aa4a7bfcb45cd6571bbb8ea6a239") + public fun lex(lex: LexFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param output Contains configurations for an output flow node in your flow. + * The last node in the flow. `outputs` can't be specified for this node. + */ + public fun output(output: Any) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + public fun prompt(prompt: IResolvable) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + public fun prompt(prompt: PromptFlowNodeConfigurationProperty) + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("410aa0f0e87e018314ab13e103639d778006a51f5d6b8a9754f2f43f549dbea2") + public fun prompt(prompt: PromptFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + public fun retrieval(retrieval: IResolvable) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + public fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1cb91628f1bbb2ee78a545ca90a7329489b44a4a63f55bba94c6a1f7308fc4c2") + public fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + public fun storage(storage: IResolvable) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + public fun storage(storage: StorageFlowNodeConfigurationProperty) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("985a38093a9ef306cc4cba876d38c795bd53922fae43404cad8274ed9c55ef76") + public fun storage(storage: StorageFlowNodeConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty.builder() + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + override fun agent(agent: IResolvable) { + cdkBuilder.agent(agent.let(IResolvable.Companion::unwrap)) + } + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + override fun agent(agent: AgentFlowNodeConfigurationProperty) { + cdkBuilder.agent(agent.let(AgentFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param agent Contains configurations for an agent node in your flow. + * Invokes an alias of an agent and returns the response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ad185bad7d4492d9a0da83ef091b3d9ae9c516c3760ae74d3ed7e539c12a9b5f") + override fun agent(agent: AgentFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + agent(AgentFlowNodeConfigurationProperty(agent)) + + /** + * @param collector Contains configurations for a collector node in your flow. + * Collects an iteration of inputs and consolidates them into an array of outputs. + */ + override fun collector(collector: Any) { + cdkBuilder.collector(collector) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + override fun condition(condition: IResolvable) { + cdkBuilder.condition(condition.let(IResolvable.Companion::unwrap)) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + override fun condition(condition: ConditionFlowNodeConfigurationProperty) { + cdkBuilder.condition(condition.let(ConditionFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param condition Contains configurations for a Condition node in your flow. + * Defines conditions that lead to different branches of the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("045924595e2feaa22ecebc836af784b7107df129a1ad68829224b14dac702d71") + override fun condition(condition: ConditionFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = condition(ConditionFlowNodeConfigurationProperty(condition)) + + /** + * @param input Contains configurations for an input flow node in your flow. + * The first node in the flow. `inputs` can't be specified for this node. + */ + override fun input(input: Any) { + cdkBuilder.input(input) + } + + /** + * @param iterator Contains configurations for an iterator node in your flow. + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + */ + override fun iterator(iterator: Any) { + cdkBuilder.iterator(iterator) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + override fun knowledgeBase(knowledgeBase: IResolvable) { + cdkBuilder.knowledgeBase(knowledgeBase.let(IResolvable.Companion::unwrap)) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + override fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty) { + cdkBuilder.knowledgeBase(knowledgeBase.let(KnowledgeBaseFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param knowledgeBase Contains configurations for a knowledge base node in your flow. + * Queries a knowledge base and returns the retrieved results or generated response. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c1a46ba72807beb6a92072e9e98c7299a3eae731dd00a0b1abb52a11b00965ba") + override + fun knowledgeBase(knowledgeBase: KnowledgeBaseFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty(knowledgeBase)) + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + override fun lambdaFunction(lambdaFunction: IResolvable) { + cdkBuilder.lambdaFunction(lambdaFunction.let(IResolvable.Companion::unwrap)) + } + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + override fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty) { + cdkBuilder.lambdaFunction(lambdaFunction.let(LambdaFunctionFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param lambdaFunction Contains configurations for a Lambda function node in your flow. + * Invokes an AWS Lambda function. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9f225e8e35ab5a4e9dc83f68bbb7ebc88b77fdf8966ae182934d8e446fa08b1c") + override + fun lambdaFunction(lambdaFunction: LambdaFunctionFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty(lambdaFunction)) + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + override fun lex(lex: IResolvable) { + cdkBuilder.lex(lex.let(IResolvable.Companion::unwrap)) + } + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + override fun lex(lex: LexFlowNodeConfigurationProperty) { + cdkBuilder.lex(lex.let(LexFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param lex Contains configurations for a Lex node in your flow. + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f277d79e4905009a0b1d2bd0b58733b58693aa4a7bfcb45cd6571bbb8ea6a239") + override fun lex(lex: LexFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + lex(LexFlowNodeConfigurationProperty(lex)) + + /** + * @param output Contains configurations for an output flow node in your flow. + * The last node in the flow. `outputs` can't be specified for this node. + */ + override fun output(output: Any) { + cdkBuilder.output(output) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + override fun prompt(prompt: IResolvable) { + cdkBuilder.prompt(prompt.let(IResolvable.Companion::unwrap)) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + override fun prompt(prompt: PromptFlowNodeConfigurationProperty) { + cdkBuilder.prompt(prompt.let(PromptFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param prompt Contains configurations for a prompt node in your flow. + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("410aa0f0e87e018314ab13e103639d778006a51f5d6b8a9754f2f43f549dbea2") + override fun prompt(prompt: PromptFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + prompt(PromptFlowNodeConfigurationProperty(prompt)) + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + override fun retrieval(retrieval: IResolvable) { + cdkBuilder.retrieval(retrieval.let(IResolvable.Companion::unwrap)) + } + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + override fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty) { + cdkBuilder.retrieval(retrieval.let(RetrievalFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param retrieval Contains configurations for a Retrieval node in your flow. + * Retrieves data from an Amazon S3 location and returns it as the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1cb91628f1bbb2ee78a545ca90a7329489b44a4a63f55bba94c6a1f7308fc4c2") + override fun retrieval(retrieval: RetrievalFlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = retrieval(RetrievalFlowNodeConfigurationProperty(retrieval)) + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + override fun storage(storage: IResolvable) { + cdkBuilder.storage(storage.let(IResolvable.Companion::unwrap)) + } + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + override fun storage(storage: StorageFlowNodeConfigurationProperty) { + cdkBuilder.storage(storage.let(StorageFlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param storage Contains configurations for a Storage node in your flow. + * Stores an input in an Amazon S3 location. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("985a38093a9ef306cc4cba876d38c795bd53922fae43404cad8274ed9c55ef76") + override fun storage(storage: StorageFlowNodeConfigurationProperty.Builder.() -> Unit): Unit = + storage(StorageFlowNodeConfigurationProperty(storage)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + FlowNodeConfigurationProperty { + /** + * Contains configurations for an agent node in your flow. + * + * Invokes an alias of an agent and returns the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-agent) + */ + override fun agent(): Any? = unwrap(this).getAgent() + + /** + * Contains configurations for a collector node in your flow. + * + * Collects an iteration of inputs and consolidates them into an array of outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-collector) + */ + override fun collector(): Any? = unwrap(this).getCollector() + + /** + * Contains configurations for a Condition node in your flow. + * + * Defines conditions that lead to different branches of the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-condition) + */ + override fun condition(): Any? = unwrap(this).getCondition() + + /** + * Contains configurations for an input flow node in your flow. + * + * The first node in the flow. `inputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-input) + */ + override fun input(): Any? = unwrap(this).getInput() + + /** + * Contains configurations for an iterator node in your flow. + * + * Takes an input that is an array and iteratively sends each item of the array as an output + * to the following node. The size of the array is also returned in the output. + * + * The output flow node at the end of the flow iteration will return a response for each + * member of the array. To return only one response, you can include a collector node downstream + * from the iterator node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-iterator) + */ + override fun iterator(): Any? = unwrap(this).getIterator() + + /** + * Contains configurations for a knowledge base node in your flow. + * + * Queries a knowledge base and returns the retrieved results or generated response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-knowledgebase) + */ + override fun knowledgeBase(): Any? = unwrap(this).getKnowledgeBase() + + /** + * Contains configurations for a Lambda function node in your flow. + * + * Invokes an AWS Lambda function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-lambdafunction) + */ + override fun lambdaFunction(): Any? = unwrap(this).getLambdaFunction() + + /** + * Contains configurations for a Lex node in your flow. + * + * Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-lex) + */ + override fun lex(): Any? = unwrap(this).getLex() + + /** + * Contains configurations for an output flow node in your flow. + * + * The last node in the flow. `outputs` can't be specified for this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-output) + */ + override fun output(): Any? = unwrap(this).getOutput() + + /** + * Contains configurations for a prompt node in your flow. + * + * Runs a prompt and generates the model response as the output. You can use a prompt from + * Prompt management or you can configure one in this node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-prompt) + */ + override fun prompt(): Any? = unwrap(this).getPrompt() + + /** + * Contains configurations for a Retrieval node in your flow. + * + * Retrieves data from an Amazon S3 location and returns it as the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-retrieval) + */ + override fun retrieval(): Any? = unwrap(this).getRetrieval() + + /** + * Contains configurations for a Storage node in your flow. + * + * Stores an input in an Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-storage) + */ + override fun storage(): Any? = unwrap(this).getStorage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty): + FlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for an input to a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowNodeInputProperty flowNodeInputProperty = FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html) + */ + public interface FlowNodeInputProperty { + /** + * An expression that formats the input for the node. + * + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-expression) + */ + public fun expression(): String + + /** + * A name for the input that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-name) + */ + public fun name(): String + + /** + * The data type of the input. + * + * If the input doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeInputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param expression An expression that formats the input for the node. + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + */ + public fun expression(expression: String) + + /** + * @param name A name for the input that you can reference. + */ + public fun name(name: String) + + /** + * @param type The data type of the input. + * If the input doesn't match this type at runtime, a validation error will be thrown. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty.builder() + + /** + * @param expression An expression that formats the input for the node. + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + */ + override fun expression(expression: String) { + cdkBuilder.expression(expression) + } + + /** + * @param name A name for the input that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param type The data type of the input. + * If the input doesn't match this type at runtime, a validation error will be thrown. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty, + ) : CdkObject(cdkObject), + FlowNodeInputProperty { + /** + * An expression that formats the input for the node. + * + * For an explanation of how to create expressions, see [Expressions in Prompt flows in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-expression) + */ + override fun expression(): String = unwrap(this).getExpression() + + /** + * A name for the input that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The data type of the input. + * + * If the input doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeInputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty): + FlowNodeInputProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeInputProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeInputProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeInputProperty + } + } + + /** + * Contains configurations for an output from a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FlowNodeOutputProperty flowNodeOutputProperty = FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html) + */ + public interface FlowNodeOutputProperty { + /** + * A name for the output that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html#cfn-bedrock-flowversion-flownodeoutput-name) + */ + public fun name(): String + + /** + * The data type of the output. + * + * If the output doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html#cfn-bedrock-flowversion-flownodeoutput-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeOutputProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name A name for the output that you can reference. + */ + public fun name(name: String) + + /** + * @param type The data type of the output. + * If the output doesn't match this type at runtime, a validation error will be thrown. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty.builder() + + /** + * @param name A name for the output that you can reference. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param type The data type of the output. + * If the output doesn't match this type at runtime, a validation error will be thrown. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty, + ) : CdkObject(cdkObject), + FlowNodeOutputProperty { + /** + * A name for the output that you can reference. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html#cfn-bedrock-flowversion-flownodeoutput-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The data type of the output. + * + * If the output doesn't match this type at runtime, a validation error will be thrown. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeoutput.html#cfn-bedrock-flowversion-flownodeoutput-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeOutputProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty): + FlowNodeOutputProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeOutputProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeOutputProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeOutputProperty + } + } + + /** + * Contains configurations about a node in the flow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * Object collector; + * Object input; + * Object iterator; + * Object output; + * FlowNodeProperty flowNodeProperty = FlowNodeProperty.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .configuration(FlowNodeConfigurationProperty.builder() + * .agent(AgentFlowNodeConfigurationProperty.builder() + * .agentAliasArn("agentAliasArn") + * .build()) + * .collector(collector) + * .condition(ConditionFlowNodeConfigurationProperty.builder() + * .conditions(List.of(FlowConditionProperty.builder() + * .name("name") + * // the properties below are optional + * .expression("expression") + * .build())) + * .build()) + * .input(input) + * .iterator(iterator) + * .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build()) + * .lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build()) + * .lex(LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build()) + * .output(output) + * .prompt(PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build()) + * .retrieval(RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .storage(StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build()) + * .build()) + * .inputs(List.of(FlowNodeInputProperty.builder() + * .expression("expression") + * .name("name") + * .type("type") + * .build())) + * .outputs(List.of(FlowNodeOutputProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html) + */ + public interface FlowNodeProperty { + /** + * Contains configurations for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-configuration) + */ + public fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * An array of objects, each of which contains information about an input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-inputs) + */ + public fun inputs(): Any? = unwrap(this).getInputs() + + /** + * A name for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-name) + */ + public fun name(): String + + /** + * A list of objects, each of which contains information about an output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-outputs) + */ + public fun outputs(): Any? = unwrap(this).getOutputs() + + /** + * The type of node. + * + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-type) + */ + public fun type(): String + + /** + * A builder for [FlowNodeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configuration Contains configurations for the node. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration Contains configurations for the node. + */ + public fun configuration(configuration: FlowNodeConfigurationProperty) + + /** + * @param configuration Contains configurations for the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47645a2afa9076813f619515aa779065e5ee3b846d206cf4b605343592ae176d") + public fun configuration(configuration: FlowNodeConfigurationProperty.Builder.() -> Unit) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(inputs: IResolvable) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(inputs: List) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + public fun inputs(vararg inputs: Any) + + /** + * @param name A name for the node. + */ + public fun name(name: String) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(outputs: IResolvable) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(outputs: List) + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + public fun outputs(vararg outputs: Any) + + /** + * @param type The type of node. + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty.builder() + + /** + * @param configuration Contains configurations for the node. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration Contains configurations for the node. + */ + override fun configuration(configuration: FlowNodeConfigurationProperty) { + cdkBuilder.configuration(configuration.let(FlowNodeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration Contains configurations for the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47645a2afa9076813f619515aa779065e5ee3b846d206cf4b605343592ae176d") + override fun configuration(configuration: FlowNodeConfigurationProperty.Builder.() -> Unit): + Unit = configuration(FlowNodeConfigurationProperty(configuration)) + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(inputs: IResolvable) { + cdkBuilder.inputs(inputs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(inputs: List) { + cdkBuilder.inputs(inputs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputs An array of objects, each of which contains information about an input into + * the node. + */ + override fun inputs(vararg inputs: Any): Unit = inputs(inputs.toList()) + + /** + * @param name A name for the node. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(outputs: IResolvable) { + cdkBuilder.outputs(outputs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(outputs: List) { + cdkBuilder.outputs(outputs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param outputs A list of objects, each of which contains information about an output from + * the node. + */ + override fun outputs(vararg outputs: Any): Unit = outputs(outputs.toList()) + + /** + * @param type The type of node. + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty, + ) : CdkObject(cdkObject), + FlowNodeProperty { + /** + * Contains configurations for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-configuration) + */ + override fun configuration(): Any? = unwrap(this).getConfiguration() + + /** + * An array of objects, each of which contains information about an input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-inputs) + */ + override fun inputs(): Any? = unwrap(this).getInputs() + + /** + * A name for the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A list of objects, each of which contains information about an output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-outputs) + */ + override fun outputs(): Any? = unwrap(this).getOutputs() + + /** + * The type of node. + * + * This value must match the name of the key that you provide in the configuration you provide + * in the `FlowNodeConfiguration` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownode.html#cfn-bedrock-flowversion-flownode-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FlowNodeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty): + FlowNodeProperty = CdkObjectWrappers.wrap(cdkObject) as? FlowNodeProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FlowNodeProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowNodeProperty + } + } + + /** + * Contains configurations for a knowledge base node in a flow. + * + * This node takes a query as the input and returns, as the output, the retrieved responses + * directly (as an array) or a response generated based on the retrieved responses. For more + * information, see [Node types in Amazon Bedrock + * works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon + * Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * KnowledgeBaseFlowNodeConfigurationProperty knowledgeBaseFlowNodeConfigurationProperty = + * KnowledgeBaseFlowNodeConfigurationProperty.builder() + * .knowledgeBaseId("knowledgeBaseId") + * // the properties below are optional + * .modelId("modelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html) + */ + public interface KnowledgeBaseFlowNodeConfigurationProperty { + /** + * The unique identifier of the knowledge base to query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flowversion-knowledgebaseflownodeconfiguration-knowledgebaseid) + */ + public fun knowledgeBaseId(): String + + /** + * The unique identifier of the model to use to generate a response from the query results. + * + * Omit this field if you want to return the retrieved results as an array. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flowversion-knowledgebaseflownodeconfiguration-modelid) + */ + public fun modelId(): String? = unwrap(this).getModelId() + + /** + * A builder for [KnowledgeBaseFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param knowledgeBaseId The unique identifier of the knowledge base to query. + */ + public fun knowledgeBaseId(knowledgeBaseId: String) + + /** + * @param modelId The unique identifier of the model to use to generate a response from the + * query results. + * Omit this field if you want to return the retrieved results as an array. + */ + public fun modelId(modelId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty.builder() + + /** + * @param knowledgeBaseId The unique identifier of the knowledge base to query. + */ + override fun knowledgeBaseId(knowledgeBaseId: String) { + cdkBuilder.knowledgeBaseId(knowledgeBaseId) + } + + /** + * @param modelId The unique identifier of the model to use to generate a response from the + * query results. + * Omit this field if you want to return the retrieved results as an array. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + KnowledgeBaseFlowNodeConfigurationProperty { + /** + * The unique identifier of the knowledge base to query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flowversion-knowledgebaseflownodeconfiguration-knowledgebaseid) + */ + override fun knowledgeBaseId(): String = unwrap(this).getKnowledgeBaseId() + + /** + * The unique identifier of the model to use to generate a response from the query results. + * + * Omit this field if you want to return the retrieved results as an array. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flowversion-knowledgebaseflownodeconfiguration-modelid) + */ + override fun modelId(): String? = unwrap(this).getModelId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + KnowledgeBaseFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty): + KnowledgeBaseFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + KnowledgeBaseFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: KnowledgeBaseFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a Lambda function node in the flow. + * + * You specify the Lambda function to invoke and the inputs into the function. The output is the + * response that is defined in the Lambda function. For more information, see [Node types in Amazon + * Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the + * Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * LambdaFunctionFlowNodeConfigurationProperty lambdaFunctionFlowNodeConfigurationProperty = + * LambdaFunctionFlowNodeConfigurationProperty.builder() + * .lambdaArn("lambdaArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html) + */ + public interface LambdaFunctionFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Lambda function to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html#cfn-bedrock-flowversion-lambdafunctionflownodeconfiguration-lambdaarn) + */ + public fun lambdaArn(): String + + /** + * A builder for [LambdaFunctionFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param lambdaArn The Amazon Resource Name (ARN) of the Lambda function to invoke. + */ + public fun lambdaArn(lambdaArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty.builder() + + /** + * @param lambdaArn The Amazon Resource Name (ARN) of the Lambda function to invoke. + */ + override fun lambdaArn(lambdaArn: String) { + cdkBuilder.lambdaArn(lambdaArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + LambdaFunctionFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Lambda function to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html#cfn-bedrock-flowversion-lambdafunctionflownodeconfiguration-lambdaarn) + */ + override fun lambdaArn(): String = unwrap(this).getLambdaArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + LambdaFunctionFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty): + LambdaFunctionFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + LambdaFunctionFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: LambdaFunctionFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a Lex node in the flow. + * + * You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns + * as the output the intent identified by the Amazon Lex bot. For more information, see [Node types + * in Amazon Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in + * the Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * LexFlowNodeConfigurationProperty lexFlowNodeConfigurationProperty = + * LexFlowNodeConfigurationProperty.builder() + * .botAliasArn("botAliasArn") + * .localeId("localeId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html) + */ + public interface LexFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-botaliasarn) + */ + public fun botAliasArn(): String + + /** + * The Region to invoke the Amazon Lex bot in. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-localeid) + */ + public fun localeId(): String + + /** + * A builder for [LexFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param botAliasArn The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + */ + public fun botAliasArn(botAliasArn: String) + + /** + * @param localeId The Region to invoke the Amazon Lex bot in. + */ + public fun localeId(localeId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty.builder() + + /** + * @param botAliasArn The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + */ + override fun botAliasArn(botAliasArn: String) { + cdkBuilder.botAliasArn(botAliasArn) + } + + /** + * @param localeId The Region to invoke the Amazon Lex bot in. + */ + override fun localeId(localeId: String) { + cdkBuilder.localeId(localeId) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + LexFlowNodeConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-botaliasarn) + */ + override fun botAliasArn(): String = unwrap(this).getBotAliasArn() + + /** + * The Region to invoke the Amazon Lex bot in. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-localeid) + */ + override fun localeId(): String = unwrap(this).getLocaleId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LexFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty): + LexFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + LexFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: LexFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.LexFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a prompt node in the flow. + * + * You can use a prompt from Prompt management or you can define one in this node. If the prompt + * contains variables, the inputs into this node will fill in the variables. The output from this + * node is the response generated by the model. For more information, see [Node types in Amazon + * Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the + * Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeConfigurationProperty promptFlowNodeConfigurationProperty = + * PromptFlowNodeConfigurationProperty.builder() + * .sourceConfiguration(PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html) + */ + public interface PromptFlowNodeConfigurationProperty { + /** + * Specifies whether the prompt is from Prompt management or defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html#cfn-bedrock-flowversion-promptflownodeconfiguration-sourceconfiguration) + */ + public fun sourceConfiguration(): Any + + /** + * A builder for [PromptFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + public fun sourceConfiguration(sourceConfiguration: IResolvable) + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + public fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty) + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ad1f45d5e9d7dd2626e480f20ab521227ce46632649c5ffccf8a3b8e381e285d") + public + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty.builder() + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + override fun sourceConfiguration(sourceConfiguration: IResolvable) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + override + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty) { + cdkBuilder.sourceConfiguration(sourceConfiguration.let(PromptFlowNodeSourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param sourceConfiguration Specifies whether the prompt is from Prompt management or + * defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ad1f45d5e9d7dd2626e480f20ab521227ce46632649c5ffccf8a3b8e381e285d") + override + fun sourceConfiguration(sourceConfiguration: PromptFlowNodeSourceConfigurationProperty.Builder.() -> Unit): + Unit = sourceConfiguration(PromptFlowNodeSourceConfigurationProperty(sourceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeConfigurationProperty { + /** + * Specifies whether the prompt is from Prompt management or defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html#cfn-bedrock-flowversion-promptflownodeconfiguration-sourceconfiguration) + */ + override fun sourceConfiguration(): Any = unwrap(this).getSourceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty): + PromptFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for a prompt defined inline in the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeInlineConfigurationProperty promptFlowNodeInlineConfigurationProperty = + * PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html) + */ + public interface PromptFlowNodeInlineConfigurationProperty { + /** + * Contains inference configurations for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-inferenceconfiguration) + */ + public fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model to run inference with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-modelid) + */ + public fun modelId(): String + + /** + * Contains a prompt and variables in the prompt that can be replaced with values at runtime. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-templateconfiguration) + */ + public fun templateConfiguration(): Any + + /** + * The type of prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-templatetype) + */ + public fun templateType(): String + + /** + * A builder for [PromptFlowNodeInlineConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + public fun inferenceConfiguration(inferenceConfiguration: IResolvable) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("88db33b17a8eb11e9029db4eae69f9c035aeb402bf23819d19cfd36cf0ae5b50") + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit) + + /** + * @param modelId The unique identifier of the model to run inference with. + */ + public fun modelId(modelId: String) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + public fun templateConfiguration(templateConfiguration: IResolvable) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + public fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4d47ea7e3433a81a153c54dd95f3b08856ff64ef3408d13c58b95174a4a203a4") + public + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit) + + /** + * @param templateType The type of prompt template. + */ + public fun templateType(templateType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty.builder() + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + override fun inferenceConfiguration(inferenceConfiguration: IResolvable) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(PromptInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("88db33b17a8eb11e9029db4eae69f9c035aeb402bf23819d19cfd36cf0ae5b50") + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit): + Unit = + inferenceConfiguration(PromptInferenceConfigurationProperty(inferenceConfiguration)) + + /** + * @param modelId The unique identifier of the model to run inference with. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + override fun templateConfiguration(templateConfiguration: IResolvable) { + cdkBuilder.templateConfiguration(templateConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) { + cdkBuilder.templateConfiguration(templateConfiguration.let(PromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains a prompt and variables in the prompt that can be + * replaced with values at runtime. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4d47ea7e3433a81a153c54dd95f3b08856ff64ef3408d13c58b95174a4a203a4") + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit): + Unit = templateConfiguration(PromptTemplateConfigurationProperty(templateConfiguration)) + + /** + * @param templateType The type of prompt template. + */ + override fun templateType(templateType: String) { + cdkBuilder.templateType(templateType) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeInlineConfigurationProperty { + /** + * Contains inference configurations for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-inferenceconfiguration) + */ + override fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model to run inference with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-modelid) + */ + override fun modelId(): String = unwrap(this).getModelId() + + /** + * Contains a prompt and variables in the prompt that can be replaced with values at runtime. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-templateconfiguration) + */ + override fun templateConfiguration(): Any = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeinlineconfiguration.html#cfn-bedrock-flowversion-promptflownodeinlineconfiguration-templatetype) + */ + override fun templateType(): String = unwrap(this).getTemplateType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeInlineConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty): + PromptFlowNodeInlineConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeInlineConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeInlineConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeInlineConfigurationProperty + } + } + + /** + * Contains configurations for a prompt from Prompt management to use in a node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeResourceConfigurationProperty promptFlowNodeResourceConfigurationProperty = + * PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownoderesourceconfiguration.html) + */ + public interface PromptFlowNodeResourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownoderesourceconfiguration.html#cfn-bedrock-flowversion-promptflownoderesourceconfiguration-promptarn) + */ + public fun promptArn(): String + + /** + * A builder for [PromptFlowNodeResourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param promptArn The Amazon Resource Name (ARN) of the prompt from Prompt management. + */ + public fun promptArn(promptArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty.builder() + + /** + * @param promptArn The Amazon Resource Name (ARN) of the prompt from Prompt management. + */ + override fun promptArn(promptArn: String) { + cdkBuilder.promptArn(promptArn) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeResourceConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of the prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownoderesourceconfiguration.html#cfn-bedrock-flowversion-promptflownoderesourceconfiguration-promptarn) + */ + override fun promptArn(): String = unwrap(this).getPromptArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeResourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty): + PromptFlowNodeResourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeResourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeResourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty + } + } + + /** + * Contains configurations for a prompt and whether it is from Prompt management or defined + * inline. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptFlowNodeSourceConfigurationProperty promptFlowNodeSourceConfigurationProperty = + * PromptFlowNodeSourceConfigurationProperty.builder() + * .inline(PromptFlowNodeInlineConfigurationProperty.builder() + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .build()) + * .resource(PromptFlowNodeResourceConfigurationProperty.builder() + * .promptArn("promptArn") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html) + */ + public interface PromptFlowNodeSourceConfigurationProperty { + /** + * Contains configurations for a prompt that is defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-inline) + */ + public fun `inline`(): Any? = unwrap(this).getInline() + + /** + * Contains configurations for a prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-resource) + */ + public fun resource(): Any? = unwrap(this).getResource() + + /** + * A builder for [PromptFlowNodeSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + public fun `inline`(`inline`: IResolvable) + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + public fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty) + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1d6e6824bfc6ddfa15886de2fd7482f3359a3d3d0e692aec4af62196a9581159") + public fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty.Builder.() -> Unit) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + public fun resource(resource: IResolvable) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + public fun resource(resource: PromptFlowNodeResourceConfigurationProperty) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e4028242501aa7b40c4e74c9f0a9b170e27cb04ccc5ca835d8bbec47f40c4eeb") + public fun resource(resource: PromptFlowNodeResourceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty.builder() + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + override fun `inline`(`inline`: IResolvable) { + cdkBuilder.`inline`(`inline`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + override fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty) { + cdkBuilder.`inline`(`inline`.let(PromptFlowNodeInlineConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inline Contains configurations for a prompt that is defined inline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1d6e6824bfc6ddfa15886de2fd7482f3359a3d3d0e692aec4af62196a9581159") + override fun `inline`(`inline`: PromptFlowNodeInlineConfigurationProperty.Builder.() -> Unit): + Unit = `inline`(PromptFlowNodeInlineConfigurationProperty(`inline`)) + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + override fun resource(resource: IResolvable) { + cdkBuilder.resource(resource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + override fun resource(resource: PromptFlowNodeResourceConfigurationProperty) { + cdkBuilder.resource(resource.let(PromptFlowNodeResourceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param resource Contains configurations for a prompt from Prompt management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e4028242501aa7b40c4e74c9f0a9b170e27cb04ccc5ca835d8bbec47f40c4eeb") + override + fun resource(resource: PromptFlowNodeResourceConfigurationProperty.Builder.() -> Unit): + Unit = resource(PromptFlowNodeResourceConfigurationProperty(resource)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptFlowNodeSourceConfigurationProperty { + /** + * Contains configurations for a prompt that is defined inline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-inline) + */ + override fun `inline`(): Any? = unwrap(this).getInline() + + /** + * Contains configurations for a prompt from Prompt management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-resource) + */ + override fun resource(): Any? = unwrap(this).getResource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptFlowNodeSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty): + PromptFlowNodeSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptFlowNodeSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptFlowNodeSourceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty + } + } + + /** + * Contains inference configurations for the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = + * PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinferenceconfiguration.html) + */ + public interface PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinferenceconfiguration.html#cfn-bedrock-flowversion-promptinferenceconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: PromptModelInferenceConfigurationProperty) + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("18f1bcb18bbd77aa99512d47e20cbbac1b042c94788f5bcca6945ec3e3264d36") + public fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty.builder() + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: PromptModelInferenceConfigurationProperty) { + cdkBuilder.text(text.let(PromptModelInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("18f1bcb18bbd77aa99512d47e20cbbac1b042c94788f5bcca6945ec3e3264d36") + override fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit): Unit = + text(PromptModelInferenceConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinferenceconfiguration.html#cfn-bedrock-flowversion-promptinferenceconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty): + PromptInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInferenceConfigurationProperty + } + } + + /** + * Contains information about a variable in the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInputVariableProperty promptInputVariableProperty = PromptInputVariableProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinputvariable.html) + */ + public interface PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinputvariable.html#cfn-bedrock-flowversion-promptinputvariable-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A builder for [PromptInputVariableProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the variable. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty.builder() + + /** + * @param name The name of the variable. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty, + ) : CdkObject(cdkObject), + PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptinputvariable.html#cfn-bedrock-flowversion-promptinputvariable-name) + */ + override fun name(): String? = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptInputVariableProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty): + PromptInputVariableProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInputVariableProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInputVariableProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptInputVariableProperty + } + } + + /** + * Contains inference configurations related to model inference for a prompt. + * + * For more information, see [Inference + * parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptModelInferenceConfigurationProperty promptModelInferenceConfigurationProperty = + * PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html) + */ + public interface PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-maxtokens) + */ + public fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-stopsequences) + */ + public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-temperature) + */ + public fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topk) + */ + public fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topp) + */ + public fun topP(): Number? = unwrap(this).getTopP() + + /** + * A builder for [PromptModelInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + public fun maxTokens(maxTokens: Number) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(stopSequences: List) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(vararg stopSequences: String) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + public fun temperature(temperature: Number) + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + public fun topK(topK: Number) + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + public fun topP(topP: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(stopSequences: List) { + cdkBuilder.stopSequences(stopSequences) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(vararg stopSequences: String): Unit = + stopSequences(stopSequences.toList()) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + override fun temperature(temperature: Number) { + cdkBuilder.temperature(temperature) + } + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + override fun topK(topK: Number) { + cdkBuilder.topK(topK) + } + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + override fun topP(topP: Number) { + cdkBuilder.topP(topP) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-maxtokens) + */ + override fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-stopsequences) + */ + override fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-temperature) + */ + override fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topk) + */ + override fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topp) + */ + override fun topP(): Number? = unwrap(this).getTopP() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptModelInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty): + PromptModelInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptModelInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptModelInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptModelInferenceConfigurationProperty + } + } + + /** + * Contains the message for a prompt. + * + * For more information, see [Prompt management in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptTemplateConfigurationProperty promptTemplateConfigurationProperty = + * PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html) + */ + public interface PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html#cfn-bedrock-flowversion-prompttemplateconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: TextPromptTemplateConfigurationProperty) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b343be77157f91d13a7a4923e4e390f7c980cb77acbaf6b81f104d24868377e8") + public fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty.builder() + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: TextPromptTemplateConfigurationProperty) { + cdkBuilder.text(text.let(TextPromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b343be77157f91d13a7a4923e4e390f7c980cb77acbaf6b81f104d24868377e8") + override fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit): Unit = + text(TextPromptTemplateConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html#cfn-bedrock-flowversion-prompttemplateconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty): + PromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty + } + } + + /** + * Contains configurations for a Retrieval node in a flow. + * + * This node retrieves data from the Amazon S3 location that you specify and returns it as the + * output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeConfigurationProperty retrievalFlowNodeConfigurationProperty = + * RetrievalFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeconfiguration.html) + */ + public interface RetrievalFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for retrieving data to return as the output + * from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeconfiguration-serviceconfiguration) + */ + public fun serviceConfiguration(): Any + + /** + * A builder for [RetrievalFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + public fun serviceConfiguration(serviceConfiguration: IResolvable) + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + public + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty) + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("09bf12ed3bc21cccf63e923d2ca73e62bd3c8290499e036c322d75ad83734f82") + public + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty.builder() + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + override fun serviceConfiguration(serviceConfiguration: IResolvable) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + override + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(RetrievalFlowNodeServiceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for retrieving + * data to return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("09bf12ed3bc21cccf63e923d2ca73e62bd3c8290499e036c322d75ad83734f82") + override + fun serviceConfiguration(serviceConfiguration: RetrievalFlowNodeServiceConfigurationProperty.Builder.() -> Unit): + Unit = + serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty(serviceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for retrieving data to return as the output + * from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeconfiguration-serviceconfiguration) + */ + override fun serviceConfiguration(): Any = unwrap(this).getServiceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty): + RetrievalFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as the + * output from the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeS3ConfigurationProperty retrievalFlowNodeS3ConfigurationProperty = + * RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodes3configuration.html) + */ + public interface RetrievalFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket from which to retrieve data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodes3configuration.html#cfn-bedrock-flowversion-retrievalflownodes3configuration-bucketname) + */ + public fun bucketName(): String + + /** + * A builder for [RetrievalFlowNodeS3ConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketName The name of the Amazon S3 bucket from which to retrieve data. + */ + public fun bucketName(bucketName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty.builder() + + /** + * @param bucketName The name of the Amazon S3 bucket from which to retrieve data. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket from which to retrieve data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodes3configuration.html#cfn-bedrock-flowversion-retrievalflownodes3configuration-bucketname) + */ + override fun bucketName(): String = unwrap(this).getBucketName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeS3ConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty): + RetrievalFlowNodeS3ConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeS3ConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeS3ConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty + } + } + + /** + * Contains configurations for the service to use for retrieving data to return as the output from + * the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * RetrievalFlowNodeServiceConfigurationProperty retrievalFlowNodeServiceConfigurationProperty = + * RetrievalFlowNodeServiceConfigurationProperty.builder() + * .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeserviceconfiguration.html) + */ + public interface RetrievalFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as + * the output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeserviceconfiguration-s3) + */ + public fun s3(): Any? = unwrap(this).getS3() + + /** + * A builder for [RetrievalFlowNodeServiceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + public fun s3(s3: IResolvable) + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + public fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty) + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("135a6a93b3ae7fb21234a5ca63e70aad41c15c80673649ad862626fbdb144fee") + public fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty.builder() + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + override fun s3(s3: IResolvable) { + cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + override fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty) { + cdkBuilder.s3(s3.let(RetrievalFlowNodeS3ConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location from which to retrieve data to + * return as the output from the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("135a6a93b3ae7fb21234a5ca63e70aad41c15c80673649ad862626fbdb144fee") + override fun s3(s3: RetrievalFlowNodeS3ConfigurationProperty.Builder.() -> Unit): Unit = + s3(RetrievalFlowNodeS3ConfigurationProperty(s3)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty, + ) : CdkObject(cdkObject), + RetrievalFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location from which to retrieve data to return as + * the output from the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeserviceconfiguration-s3) + */ + override fun s3(): Any? = unwrap(this).getS3() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + RetrievalFlowNodeServiceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty): + RetrievalFlowNodeServiceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RetrievalFlowNodeServiceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RetrievalFlowNodeServiceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty + } + } + + /** + * Contains configurations for a Storage node in a flow. + * + * This node stores the input in an Amazon S3 location that you specify. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeConfigurationProperty storageFlowNodeConfigurationProperty = + * StorageFlowNodeConfigurationProperty.builder() + * .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeconfiguration.html) + */ + public interface StorageFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for storing the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeconfiguration.html#cfn-bedrock-flowversion-storageflownodeconfiguration-serviceconfiguration) + */ + public fun serviceConfiguration(): Any + + /** + * A builder for [StorageFlowNodeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + public fun serviceConfiguration(serviceConfiguration: IResolvable) + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + public + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty) + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ccab3e8fa5677d87d44231f7829d24f1bae4fad0c62927089f06354143a27646") + public + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty.builder() + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + override fun serviceConfiguration(serviceConfiguration: IResolvable) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + override + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty) { + cdkBuilder.serviceConfiguration(serviceConfiguration.let(StorageFlowNodeServiceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param serviceConfiguration Contains configurations for the service to use for storing the + * input into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ccab3e8fa5677d87d44231f7829d24f1bae4fad0c62927089f06354143a27646") + override + fun serviceConfiguration(serviceConfiguration: StorageFlowNodeServiceConfigurationProperty.Builder.() -> Unit): + Unit = + serviceConfiguration(StorageFlowNodeServiceConfigurationProperty(serviceConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeConfigurationProperty { + /** + * Contains configurations for the service to use for storing the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeconfiguration.html#cfn-bedrock-flowversion-storageflownodeconfiguration-serviceconfiguration) + */ + override fun serviceConfiguration(): Any = unwrap(this).getServiceConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty): + StorageFlowNodeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty + } + } + + /** + * Contains configurations for the Amazon S3 location in which to store the input into the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeS3ConfigurationProperty storageFlowNodeS3ConfigurationProperty = + * StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodes3configuration.html) + */ + public interface StorageFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodes3configuration.html#cfn-bedrock-flowversion-storageflownodes3configuration-bucketname) + */ + public fun bucketName(): String + + /** + * A builder for [StorageFlowNodeS3ConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketName The name of the Amazon S3 bucket in which to store the input into the + * node. + */ + public fun bucketName(bucketName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty.builder() + + /** + * @param bucketName The name of the Amazon S3 bucket in which to store the input into the + * node. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeS3ConfigurationProperty { + /** + * The name of the Amazon S3 bucket in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodes3configuration.html#cfn-bedrock-flowversion-storageflownodes3configuration-bucketname) + */ + override fun bucketName(): String = unwrap(this).getBucketName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeS3ConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty): + StorageFlowNodeS3ConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeS3ConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeS3ConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty + } + } + + /** + * Contains configurations for the service to use for storing the input into the node. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * StorageFlowNodeServiceConfigurationProperty storageFlowNodeServiceConfigurationProperty = + * StorageFlowNodeServiceConfigurationProperty.builder() + * .s3(StorageFlowNodeS3ConfigurationProperty.builder() + * .bucketName("bucketName") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeserviceconfiguration.html) + */ + public interface StorageFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location in which to store the input into the node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeserviceconfiguration.html#cfn-bedrock-flowversion-storageflownodeserviceconfiguration-s3) + */ + public fun s3(): Any? = unwrap(this).getS3() + + /** + * A builder for [StorageFlowNodeServiceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + public fun s3(s3: IResolvable) + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + public fun s3(s3: StorageFlowNodeS3ConfigurationProperty) + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1d2c4d247c8e832fe0af5754deda6ad3b1fd7cd59c429537d8a086dc08ded00") + public fun s3(s3: StorageFlowNodeS3ConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty.builder() + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + override fun s3(s3: IResolvable) { + cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + override fun s3(s3: StorageFlowNodeS3ConfigurationProperty) { + cdkBuilder.s3(s3.let(StorageFlowNodeS3ConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3 Contains configurations for the Amazon S3 location in which to store the input + * into the node. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1d2c4d247c8e832fe0af5754deda6ad3b1fd7cd59c429537d8a086dc08ded00") + override fun s3(s3: StorageFlowNodeS3ConfigurationProperty.Builder.() -> Unit): Unit = + s3(StorageFlowNodeS3ConfigurationProperty(s3)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty, + ) : CdkObject(cdkObject), + StorageFlowNodeServiceConfigurationProperty { + /** + * Contains configurations for the Amazon S3 location in which to store the input into the + * node. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeserviceconfiguration.html#cfn-bedrock-flowversion-storageflownodeserviceconfiguration-s3) + */ + override fun s3(): Any? = unwrap(this).getS3() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + StorageFlowNodeServiceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty): + StorageFlowNodeServiceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + StorageFlowNodeServiceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StorageFlowNodeServiceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty + } + } + + /** + * Contains configurations for a text prompt template. + * + * To include a variable, enclose a word in double curly braces as in `{{variable}}` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TextPromptTemplateConfigurationProperty textPromptTemplateConfigurationProperty = + * TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html) + */ + public interface TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-inputvariables) + */ + public fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-text) + */ + public fun text(): String + + /** + * A builder for [TextPromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: IResolvable) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: List) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(vararg inputVariables: Any) + + /** + * @param text The message for the prompt. + */ + public fun text(text: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty.builder() + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: IResolvable) { + cdkBuilder.inputVariables(inputVariables.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: List) { + cdkBuilder.inputVariables(inputVariables.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(vararg inputVariables: Any): Unit = + inputVariables(inputVariables.toList()) + + /** + * @param text The message for the prompt. + */ + override fun text(text: String) { + cdkBuilder.text(text) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-inputvariables) + */ + override fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-textprompttemplateconfiguration.html#cfn-bedrock-flowversion-textprompttemplateconfiguration-text) + */ + override fun text(): String = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TextPromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty): + TextPromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + TextPromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TextPromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersionProps.kt new file mode 100644 index 0000000000..4701c85aad --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowVersionProps.kt @@ -0,0 +1,115 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnFlowVersion`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnFlowVersionProps cfnFlowVersionProps = CfnFlowVersionProps.builder() + * .flowArn("flowArn") + * // the properties below are optional + * .description("description") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html) + */ +public interface CfnFlowVersionProps { + /** + * The description of the flow version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-flowarn) + */ + public fun flowArn(): String + + /** + * A builder for [CfnFlowVersionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the flow version. + */ + public fun description(description: String) + + /** + * @param flowArn The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + public fun flowArn(flowArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnFlowVersionProps.Builder = + software.amazon.awscdk.services.bedrock.CfnFlowVersionProps.builder() + + /** + * @param description The description of the flow version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param flowArn The Amazon Resource Name (ARN) of the flow that the version belongs to. + */ + override fun flowArn(flowArn: String) { + cdkBuilder.flowArn(flowArn) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnFlowVersionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersionProps, + ) : CdkObject(cdkObject), + CfnFlowVersionProps { + /** + * The description of the flow version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the flow that the version belongs to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowversion.html#cfn-bedrock-flowversion-flowarn) + */ + override fun flowArn(): String = unwrap(this).getFlowArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnFlowVersionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnFlowVersionProps): + CfnFlowVersionProps = CdkObjectWrappers.wrap(cdkObject) as? CfnFlowVersionProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnFlowVersionProps): + software.amazon.awscdk.services.bedrock.CfnFlowVersionProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnFlowVersionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrail.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrail.kt index 5b08861dc4..016f87db41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrail.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrail.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -24,10 +25,24 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Creates a guardrail to block topics and to implement safeguards for your generative AI * applications. * - * You can configure denied topics to disallow undesirable topics and content filters to block - * harmful content in model inputs and responses. For more information, see [Guardrails for Amazon - * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) in the *Amazon - * Bedrock User Guide* + * You can configure the following policies in a guardrail to avoid undesirable and harmful content, + * filter out denied topics and words, and remove sensitive information for privacy protection. + * + * * *Content filters* - Adjust filter strengths to block input prompts or model responses + * containing harmful content. + * * *Denied topics* - Define a set of topics that are undesirable in the context of your + * application. These topics will be blocked if detected in user queries or model responses. + * * *Word filters* - Configure filters to block undesirable words, phrases, and profanity. Such + * words can include offensive terms, competitor names etc. + * * *Sensitive information filters* - Block or mask sensitive information such as personally + * identifiable information (PII) or custom regex in user inputs and model responses. + * + * In addition to the above policies, you can also configure the messages to be returned to the user + * if a user input or model response is in violation of the policies defined in the guardrail. + * + * For more information, see [Amazon Bedrock + * Guardrails](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) in the *Amazon + * Bedrock User Guide* . * * Example: * @@ -47,6 +62,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .type("type") * .build())) * .build()) + * .contextualGroundingPolicyConfig(ContextualGroundingPolicyConfigProperty.builder() + * .filtersConfig(List.of(ContextualGroundingFilterConfigProperty.builder() + * .threshold(123) + * .type("type") + * .build())) + * .build()) * .description("description") * .kmsKeyArn("kmsKeyArn") * .sensitiveInformationPolicyConfig(SensitiveInformationPolicyConfigProperty.builder() @@ -90,7 +111,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGuardrail( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -113,15 +136,15 @@ public open class CfnGuardrail( public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() /** - * List of failure recommendations. + * Appears if the `status` of the guardrail is `FAILED` . + * + * A list of recommendations to carry out before retrying the request. */ public open fun attrFailureRecommendations(): List = unwrap(this).getAttrFailureRecommendations() /** - * The Amazon Resource Name (ARN) of the guardrail. - * - * This a the primary identifier for the guardrail. + * The ARN of the guardrail. */ public open fun attrGuardrailArn(): String = unwrap(this).getAttrGuardrailArn() @@ -131,12 +154,14 @@ public open class CfnGuardrail( public open fun attrGuardrailId(): String = unwrap(this).getAttrGuardrailId() /** - * Status of the guardrail. + * The status of the guardrail. */ public open fun attrStatus(): String = unwrap(this).getAttrStatus() /** - * List of status reasons. + * Appears if the `status` is `FAILED` . + * + * A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted. */ public open fun attrStatusReasons(): List = unwrap(this).getAttrStatusReasons() @@ -146,7 +171,9 @@ public open class CfnGuardrail( public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() /** - * The version of the guardrail. + * The version of the guardrail that was created. + * + * This value will always be `DRAFT` . */ public open fun attrVersion(): String = unwrap(this).getAttrVersion() @@ -181,32 +208,62 @@ public open class CfnGuardrail( unwrap(this).getCdkTagManager().let(TagManager::wrap) /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. */ public open fun contentPolicyConfig(): Any? = unwrap(this).getContentPolicyConfig() /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. */ public open fun contentPolicyConfig(`value`: IResolvable) { unwrap(this).setContentPolicyConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. */ public open fun contentPolicyConfig(`value`: ContentPolicyConfigProperty) { unwrap(this).setContentPolicyConfig(`value`.let(ContentPolicyConfigProperty.Companion::unwrap)) } /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("836bfed449265982733dc263dfc92823bd3a7d91647fe58dfa4d4d249cd0adec") public open fun contentPolicyConfig(`value`: ContentPolicyConfigProperty.Builder.() -> Unit): Unit = contentPolicyConfig(ContentPolicyConfigProperty(`value`)) + /** + * Contextual grounding policy config for a guardrail. + */ + public open fun contextualGroundingPolicyConfig(): Any? = + unwrap(this).getContextualGroundingPolicyConfig() + + /** + * Contextual grounding policy config for a guardrail. + */ + public open fun contextualGroundingPolicyConfig(`value`: IResolvable) { + unwrap(this).setContextualGroundingPolicyConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Contextual grounding policy config for a guardrail. + */ + public open + fun contextualGroundingPolicyConfig(`value`: ContextualGroundingPolicyConfigProperty) { + unwrap(this).setContextualGroundingPolicyConfig(`value`.let(ContextualGroundingPolicyConfigProperty.Companion::unwrap)) + } + + /** + * Contextual grounding policy config for a guardrail. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("725daf8e4bf7436fc6e39d1e95274bfc1c2b0fdc2d58eb2788cd0248461ef0a6") + public open + fun contextualGroundingPolicyConfig(`value`: ContextualGroundingPolicyConfigProperty.Builder.() -> Unit): + Unit = contextualGroundingPolicyConfig(ContextualGroundingPolicyConfigProperty(`value`)) + /** * A description of the guardrail. */ @@ -229,12 +286,12 @@ public open class CfnGuardrail( } /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. */ public open fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. */ public open fun kmsKeyArn(`value`: String) { unwrap(this).setKmsKeyArn(`value`) @@ -253,20 +310,20 @@ public open class CfnGuardrail( } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. */ public open fun sensitiveInformationPolicyConfig(): Any? = unwrap(this).getSensitiveInformationPolicyConfig() /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. */ public open fun sensitiveInformationPolicyConfig(`value`: IResolvable) { unwrap(this).setSensitiveInformationPolicyConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. */ public open fun sensitiveInformationPolicyConfig(`value`: SensitiveInformationPolicyConfigProperty) { @@ -274,7 +331,7 @@ public open class CfnGuardrail( } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1430238e16c96d0407665d530b2092c5eac29b5c0e4bc4ecf11123fa431090e1") @@ -283,49 +340,43 @@ public open class CfnGuardrail( Unit = sensitiveInformationPolicyConfig(SensitiveInformationPolicyConfigProperty(`value`)) /** - * Metadata that you can assign to a guardrail as key-value pairs. - * - * For more information, see the following resources:. + * The tags that you want to attach to the guardrail. */ public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * Metadata that you can assign to a guardrail as key-value pairs. - * - * For more information, see the following resources:. + * The tags that you want to attach to the guardrail. */ public open fun tags(`value`: List) { unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) } /** - * Metadata that you can assign to a guardrail as key-value pairs. - * - * For more information, see the following resources:. + * The tags that you want to attach to the guardrail. */ public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. */ public open fun topicPolicyConfig(): Any? = unwrap(this).getTopicPolicyConfig() /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. */ public open fun topicPolicyConfig(`value`: IResolvable) { unwrap(this).setTopicPolicyConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. */ public open fun topicPolicyConfig(`value`: TopicPolicyConfigProperty) { unwrap(this).setTopicPolicyConfig(`value`.let(TopicPolicyConfigProperty.Companion::unwrap)) } /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5ba657d356ea1ca4be58a1680d2ef214d3dd654edaffd6adb93b480342de9c49") @@ -333,26 +384,26 @@ public open class CfnGuardrail( topicPolicyConfig(TopicPolicyConfigProperty(`value`)) /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. */ public open fun wordPolicyConfig(): Any? = unwrap(this).getWordPolicyConfig() /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. */ public open fun wordPolicyConfig(`value`: IResolvable) { unwrap(this).setWordPolicyConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. */ public open fun wordPolicyConfig(`value`: WordPolicyConfigProperty) { unwrap(this).setWordPolicyConfig(`value`.let(WordPolicyConfigProperty.Companion::unwrap)) } /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c7b9126a900a926685b39e9a2a38a8a88ee7b9fe43884e6d9b643e5dc91209fa") @@ -382,32 +433,60 @@ public open class CfnGuardrail( public fun blockedOutputsMessaging(blockedOutputsMessaging: String) /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ public fun contentPolicyConfig(contentPolicyConfig: IResolvable) /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ public fun contentPolicyConfig(contentPolicyConfig: ContentPolicyConfigProperty) /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03b17022fb2875d609f1791da309213d727f5e6080ed6b6bde7b0869ef6ef9b3") public fun contentPolicyConfig(contentPolicyConfig: ContentPolicyConfigProperty.Builder.() -> Unit) + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + public fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: IResolvable) + + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + public + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: ContextualGroundingPolicyConfigProperty) + + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a5836fee2ed9d4c6012c64df1e336ab300329ed54a9ecff62fdc791cbfb1e435") + public + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: ContextualGroundingPolicyConfigProperty.Builder.() -> Unit) + /** * A description of the guardrail. * @@ -417,10 +496,10 @@ public open class CfnGuardrail( public fun description(description: String) /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-kmskeyarn) - * @param kmsKeyArn The ARN of the AWS KMS key used to encrypt the guardrail. + * @param kmsKeyArn The ARN of the AWS KMS key that you use to encrypt the guardrail. */ public fun kmsKeyArn(kmsKeyArn: String) @@ -433,27 +512,30 @@ public open class CfnGuardrail( public fun name(name: String) /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ public fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: IResolvable) /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ public fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: SensitiveInformationPolicyConfigProperty) /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("790c853f6a08ea46769870ce2e94698cc54cf2ded40abbb7b69d3b84141d6ea9") @@ -461,82 +543,68 @@ public open class CfnGuardrail( fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: SensitiveInformationPolicyConfigProperty.Builder.() -> Unit) /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. + * @param tags The tags that you want to attach to the guardrail. */ public fun tags(tags: List) /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. + * @param tags The tags that you want to attach to the guardrail. */ public fun tags(vararg tags: CfnTag) /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ public fun topicPolicyConfig(topicPolicyConfig: IResolvable) /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ public fun topicPolicyConfig(topicPolicyConfig: TopicPolicyConfigProperty) /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("31939df4bdf47d4ac59ed66a726b769c45a6db1b4bc903f6f5848296ae470c06") public fun topicPolicyConfig(topicPolicyConfig: TopicPolicyConfigProperty.Builder.() -> Unit) /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ public fun wordPolicyConfig(wordPolicyConfig: IResolvable) /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ public fun wordPolicyConfig(wordPolicyConfig: WordPolicyConfigProperty) /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fc8cdf4b0b9d898325a9268e16c40ea4ad57171a31bffc49ec90bdc3f7222db5") @@ -572,30 +640,30 @@ public open class CfnGuardrail( } /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ override fun contentPolicyConfig(contentPolicyConfig: IResolvable) { cdkBuilder.contentPolicyConfig(contentPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ override fun contentPolicyConfig(contentPolicyConfig: ContentPolicyConfigProperty) { cdkBuilder.contentPolicyConfig(contentPolicyConfig.let(ContentPolicyConfigProperty.Companion::unwrap)) } /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03b17022fb2875d609f1791da309213d727f5e6080ed6b6bde7b0869ef6ef9b3") @@ -603,6 +671,40 @@ public open class CfnGuardrail( fun contentPolicyConfig(contentPolicyConfig: ContentPolicyConfigProperty.Builder.() -> Unit): Unit = contentPolicyConfig(ContentPolicyConfigProperty(contentPolicyConfig)) + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + override fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: IResolvable) { + cdkBuilder.contextualGroundingPolicyConfig(contextualGroundingPolicyConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + override + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: ContextualGroundingPolicyConfigProperty) { + cdkBuilder.contextualGroundingPolicyConfig(contextualGroundingPolicyConfig.let(ContextualGroundingPolicyConfigProperty.Companion::unwrap)) + } + + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a5836fee2ed9d4c6012c64df1e336ab300329ed54a9ecff62fdc791cbfb1e435") + override + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: ContextualGroundingPolicyConfigProperty.Builder.() -> Unit): + Unit = + contextualGroundingPolicyConfig(ContextualGroundingPolicyConfigProperty(contextualGroundingPolicyConfig)) + /** * A description of the guardrail. * @@ -614,10 +716,10 @@ public open class CfnGuardrail( } /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-kmskeyarn) - * @param kmsKeyArn The ARN of the AWS KMS key used to encrypt the guardrail. + * @param kmsKeyArn The ARN of the AWS KMS key that you use to encrypt the guardrail. */ override fun kmsKeyArn(kmsKeyArn: String) { cdkBuilder.kmsKeyArn(kmsKeyArn) @@ -634,20 +736,22 @@ public open class CfnGuardrail( } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ override fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: IResolvable) { cdkBuilder.sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ override fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: SensitiveInformationPolicyConfigProperty) { @@ -655,10 +759,11 @@ public open class CfnGuardrail( } /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("790c853f6a08ea46769870ce2e94698cc54cf2ded40abbb7b69d3b84141d6ea9") @@ -668,62 +773,48 @@ public open class CfnGuardrail( sensitiveInformationPolicyConfig(SensitiveInformationPolicyConfigProperty(sensitiveInformationPolicyConfig)) /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. + * @param tags The tags that you want to attach to the guardrail. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. + * @param tags The tags that you want to attach to the guardrail. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ override fun topicPolicyConfig(topicPolicyConfig: IResolvable) { cdkBuilder.topicPolicyConfig(topicPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ override fun topicPolicyConfig(topicPolicyConfig: TopicPolicyConfigProperty) { cdkBuilder.topicPolicyConfig(topicPolicyConfig.let(TopicPolicyConfigProperty.Companion::unwrap)) } /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("31939df4bdf47d4ac59ed66a726b769c45a6db1b4bc903f6f5848296ae470c06") @@ -731,30 +822,30 @@ public open class CfnGuardrail( Unit = topicPolicyConfig(TopicPolicyConfigProperty(topicPolicyConfig)) /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ override fun wordPolicyConfig(wordPolicyConfig: IResolvable) { cdkBuilder.wordPolicyConfig(wordPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ override fun wordPolicyConfig(wordPolicyConfig: WordPolicyConfigProperty) { cdkBuilder.wordPolicyConfig(wordPolicyConfig.let(WordPolicyConfigProperty.Companion::unwrap)) } /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fc8cdf4b0b9d898325a9268e16c40ea4ad57171a31bffc49ec90bdc3f7222db5") @@ -785,7 +876,32 @@ public open class CfnGuardrail( } /** - * Content filter config in content policy. + * Contains filter strengths for harmful content. + * + * Guardrails support the following content filters to detect and filter harmful user inputs and + * FM-generated outputs. + * + * * *Hate* – Describes language or a statement that discriminates, criticizes, insults, + * denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, + * gender, religion, sexual orientation, ability, and national origin). + * * *Insults* – Describes language or a statement that includes demeaning, humiliating, mocking, + * insulting, or belittling language. This type of language is also labeled as bullying. + * * *Sexual* – Describes language or a statement that indicates sexual interest, activity, or + * arousal using direct or indirect references to body parts, physical traits, or sex. + * * *Violence* – Describes language or a statement that includes glorification of or threats to + * inflict physical pain, hurt, or injury toward a person, group or thing. + * + * Content filtering depends on the confidence classification of user inputs and FM responses + * across each of the four harmful categories. All input and output statements are classified into + * one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if + * a statement is classified as *Hate* with HIGH confidence, the likelihood of the statement + * representing hateful content is high. A single statement can be classified across multiple + * categories with varying confidence levels. For example, a single statement can be classified as + * *Hate* with HIGH confidence, *Insults* with LOW confidence, *Sexual* with NONE confidence, and + * *Violence* with MEDIUM confidence. + * + * For more information, see [Guardrails content + * filters](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-filters.html) . * * Example: * @@ -804,21 +920,27 @@ public open class CfnGuardrail( */ public interface ContentFilterConfigProperty { /** - * Strength for filters. + * The strength of the content filter to apply to prompts. + * + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputstrength) */ public fun inputStrength(): String /** - * Strength for filters. + * The strength of the content filter to apply to model responses. + * + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputstrength) */ public fun outputStrength(): String /** - * Type of filter in content policy. + * The harmful category that the content filter is applied to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-type) */ @@ -830,17 +952,21 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param inputStrength Strength for filters. + * @param inputStrength The strength of the content filter to apply to prompts. + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. */ public fun inputStrength(inputStrength: String) /** - * @param outputStrength Strength for filters. + * @param outputStrength The strength of the content filter to apply to model responses. + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. */ public fun outputStrength(outputStrength: String) /** - * @param type Type of filter in content policy. + * @param type The harmful category that the content filter is applied to. */ public fun type(type: String) } @@ -851,21 +977,25 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentFilterConfigProperty.builder() /** - * @param inputStrength Strength for filters. + * @param inputStrength The strength of the content filter to apply to prompts. + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. */ override fun inputStrength(inputStrength: String) { cdkBuilder.inputStrength(inputStrength) } /** - * @param outputStrength Strength for filters. + * @param outputStrength The strength of the content filter to apply to model responses. + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. */ override fun outputStrength(outputStrength: String) { cdkBuilder.outputStrength(outputStrength) } /** - * @param type Type of filter in content policy. + * @param type The harmful category that the content filter is applied to. */ override fun type(type: String) { cdkBuilder.type(type) @@ -878,23 +1008,30 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentFilterConfigProperty, - ) : CdkObject(cdkObject), ContentFilterConfigProperty { + ) : CdkObject(cdkObject), + ContentFilterConfigProperty { /** - * Strength for filters. + * The strength of the content filter to apply to prompts. + * + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-inputstrength) */ override fun inputStrength(): String = unwrap(this).getInputStrength() /** - * Strength for filters. + * The strength of the content filter to apply to model responses. + * + * As you increase the filter strength, the likelihood of filtering harmful content increases + * and the probability of seeing harmful content in your application reduces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-outputstrength) */ override fun outputStrength(): String = unwrap(this).getOutputStrength() /** - * Type of filter in content policy. + * The harmful category that the content filter is applied to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html#cfn-bedrock-guardrail-contentfilterconfig-type) */ @@ -920,7 +1057,7 @@ public open class CfnGuardrail( } /** - * Content policy config for a guardrail. + * Contains details about how to handle harmful content. * * Example: * @@ -941,7 +1078,8 @@ public open class CfnGuardrail( */ public interface ContentPolicyConfigProperty { /** - * List of content filter configs in content policy. + * Contains the type of the content filter and how strongly it should apply to prompts and model + * responses. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-filtersconfig) */ @@ -953,17 +1091,20 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ public fun filtersConfig(filtersConfig: IResolvable) /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ public fun filtersConfig(filtersConfig: List) /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ public fun filtersConfig(vararg filtersConfig: Any) } @@ -974,21 +1115,24 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentPolicyConfigProperty.builder() /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ override fun filtersConfig(filtersConfig: IResolvable) { cdkBuilder.filtersConfig(filtersConfig.let(IResolvable.Companion::unwrap)) } /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ override fun filtersConfig(filtersConfig: List) { cdkBuilder.filtersConfig(filtersConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param filtersConfig List of content filter configs in content policy. + * @param filtersConfig Contains the type of the content filter and how strongly it should + * apply to prompts and model responses. */ override fun filtersConfig(vararg filtersConfig: Any): Unit = filtersConfig(filtersConfig.toList()) @@ -1000,9 +1144,11 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContentPolicyConfigProperty, - ) : CdkObject(cdkObject), ContentPolicyConfigProperty { + ) : CdkObject(cdkObject), + ContentPolicyConfigProperty { /** - * List of content filter configs in content policy. + * Contains the type of the content filter and how strongly it should apply to prompts and + * model responses. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-filtersconfig) */ @@ -1028,7 +1174,230 @@ public open class CfnGuardrail( } /** - * A managed words config. + * The filter configuration details for the guardrails contextual grounding filter. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ContextualGroundingFilterConfigProperty contextualGroundingFilterConfigProperty = + * ContextualGroundingFilterConfigProperty.builder() + * .threshold(123) + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html) + */ + public interface ContextualGroundingFilterConfigProperty { + /** + * The threshold details for the guardrails contextual grounding filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-threshold) + */ + public fun threshold(): Number + + /** + * The filter details for the guardrails contextual grounding filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-type) + */ + public fun type(): String + + /** + * A builder for [ContextualGroundingFilterConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param threshold The threshold details for the guardrails contextual grounding filter. + */ + public fun threshold(threshold: Number) + + /** + * @param type The filter details for the guardrails contextual grounding filter. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty.builder() + + /** + * @param threshold The threshold details for the guardrails contextual grounding filter. + */ + override fun threshold(threshold: Number) { + cdkBuilder.threshold(threshold) + } + + /** + * @param type The filter details for the guardrails contextual grounding filter. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty, + ) : CdkObject(cdkObject), + ContextualGroundingFilterConfigProperty { + /** + * The threshold details for the guardrails contextual grounding filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-threshold) + */ + override fun threshold(): Number = unwrap(this).getThreshold() + + /** + * The filter details for the guardrails contextual grounding filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingfilterconfig.html#cfn-bedrock-guardrail-contextualgroundingfilterconfig-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ContextualGroundingFilterConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty): + ContextualGroundingFilterConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ContextualGroundingFilterConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContextualGroundingFilterConfigProperty): + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty + } + } + + /** + * The policy configuration details for the guardrails contextual grounding policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * ContextualGroundingPolicyConfigProperty contextualGroundingPolicyConfigProperty = + * ContextualGroundingPolicyConfigProperty.builder() + * .filtersConfig(List.of(ContextualGroundingFilterConfigProperty.builder() + * .threshold(123) + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingpolicyconfig.html) + */ + public interface ContextualGroundingPolicyConfigProperty { + /** + * List of contextual grounding filter configs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingpolicyconfig.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig-filtersconfig) + */ + public fun filtersConfig(): Any + + /** + * A builder for [ContextualGroundingPolicyConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + public fun filtersConfig(filtersConfig: IResolvable) + + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + public fun filtersConfig(filtersConfig: List) + + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + public fun filtersConfig(vararg filtersConfig: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty.builder() + + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + override fun filtersConfig(filtersConfig: IResolvable) { + cdkBuilder.filtersConfig(filtersConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + override fun filtersConfig(filtersConfig: List) { + cdkBuilder.filtersConfig(filtersConfig.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param filtersConfig List of contextual grounding filter configs. + */ + override fun filtersConfig(vararg filtersConfig: Any): Unit = + filtersConfig(filtersConfig.toList()) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty, + ) : CdkObject(cdkObject), + ContextualGroundingPolicyConfigProperty { + /** + * List of contextual grounding filter configs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contextualgroundingpolicyconfig.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig-filtersconfig) + */ + override fun filtersConfig(): Any = unwrap(this).getFiltersConfig() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ContextualGroundingPolicyConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty): + ContextualGroundingPolicyConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ContextualGroundingPolicyConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ContextualGroundingPolicyConfigProperty): + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty + } + } + + /** + * The managed word list to configure for the guardrail. * * Example: * @@ -1045,7 +1414,7 @@ public open class CfnGuardrail( */ public interface ManagedWordsConfigProperty { /** - * Options for managed words. + * The managed word type to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-type) */ @@ -1057,7 +1426,7 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param type Options for managed words. + * @param type The managed word type to configure for the guardrail. */ public fun type(type: String) } @@ -1068,7 +1437,7 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.ManagedWordsConfigProperty.builder() /** - * @param type Options for managed words. + * @param type The managed word type to configure for the guardrail. */ override fun type(type: String) { cdkBuilder.type(type) @@ -1081,9 +1450,10 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.ManagedWordsConfigProperty, - ) : CdkObject(cdkObject), ManagedWordsConfigProperty { + ) : CdkObject(cdkObject), + ManagedWordsConfigProperty { /** - * Options for managed words. + * The managed word type to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html#cfn-bedrock-guardrail-managedwordsconfig-type) */ @@ -1109,7 +1479,7 @@ public open class CfnGuardrail( } /** - * Pii entity configuration. + * The PII entity to configure for the guardrail. * * Example: * @@ -1127,14 +1497,197 @@ public open class CfnGuardrail( */ public interface PiiEntityConfigProperty { /** - * Options for sensitive information action. + * Configure guardrail action when the PII entity is detected. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-action) */ public fun action(): String /** - * The currently supported PII entities. + * Configure guardrail type when the PII entity is detected. + * + * The following PIIs are used to block or mask sensitive information: + * + * * *General* + * * *ADDRESS* + * + * A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An + * address can include information such as the street, building, location, city, state, country, + * county, zip code, precinct, and neighborhood. + * + * * *AGE* + * + * An individual's age, including the quantity and unit of time. For example, in the phrase "I + * am 40 years old," Guarrails recognizes "40 years" as an age. + * + * * *NAME* + * + * An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or + * Miss. guardrails doesn't apply this entity type to names that are part of organizations or + * addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, + * and it recognizes "Jane Doe Street" as an address. + * + * * *EMAIL* + * + * An email address, such as *marymajor@email.com* . + * + * * *PHONE* + * + * A phone number. This entity type also includes fax and pager numbers. + * + * * *USERNAME* + * + * A user name that identifies an account, such as a login name, screen name, nick name, or + * handle. + * + * * *PASSWORD* + * + * An alphanumeric string that is used as a password, such as "* *very20special#pass** ". + * + * * *DRIVER_ID* + * + * The number assigned to a driver's license, which is an official document permitting an + * individual to operate one or more motorized vehicles on a public road. A driver's license number + * consists of alphanumeric characters. + * + * * *LICENSE_PLATE* + * + * A license plate for a vehicle is issued by the state or country where the vehicle is + * registered. The format for passenger vehicles is typically five to eight digits, consisting of + * upper-case letters and numbers. The format varies depending on the location of the issuing state + * or country. + * + * * *VEHICLE_IDENTIFICATION_NUMBER* + * + * A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format + * are defined in the *ISO 3779* specification. Each country has specific codes and formats for + * VINs. + * + * * *Finance* + * * *REDIT_DEBIT_CARD_CVV* + * + * A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover + * credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit + * numeric code. + * + * * *CREDIT_DEBIT_CARD_EXPIRY* + * + * The expiration date for a credit or debit card. This number is usually four digits long and + * is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as + * *01/21* , *01/2021* , and *Jan 2021* . + * + * * *CREDIT_DEBIT_CARD_NUMBER* + * + * The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. + * However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four + * digits are present. + * + * * *PIN* + * + * A four-digit personal identification number (PIN) with which you can access your bank + * account. + * + * * *INTERNATIONAL_BANK_ACCOUNT_NUMBER* + * + * An International Bank Account Number has specific formats in each country. For more + * information, see + * [www.iban.com/structure](https://docs.aws.amazon.com/https://www.iban.com/structure) . + * + * * *SWIFT_CODE* + * + * A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular + * bank or branch. Banks use these codes for money transfers such as international wire transfers. + * + * SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, + * while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office. + * + * * *IT* + * * *IP_ADDRESS* + * + * An IPv4 address, such as *198.51.100.0* . + * + * * *MAC_ADDRESS* + * + * A *media access control* (MAC) address is a unique identifier assigned to a network interface + * controller (NIC). + * + * * *URL* + * + * A web address, such as *www.example.com* . + * + * * *AWS_ACCESS_KEY* + * + * A unique identifier that's associated with a secret access key; you use the access key ID and + * secret access key to sign programmatic AWS requests cryptographically. + * + * * *AWS_SECRET_KEY* + * + * A unique identifier that's associated with an access key. You use the access key ID and + * secret access key to sign programmatic AWS requests cryptographically. + * + * * *USA specific* + * * *US_BANK_ACCOUNT_NUMBER* + * + * A US bank account number, which is typically 10 to 12 digits long. + * + * * *US_BANK_ROUTING_NUMBER* + * + * A US bank account routing number. These are typically nine digits long, + * + * * *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* + * + * A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with + * a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space or a + * dash after the third and forth digits. + * + * * *US_PASSPORT_NUMBER* + * + * A US passport number. Passport numbers range from six to nine alphanumeric characters. + * + * * *US_SOCIAL_SECURITY_NUMBER* + * + * A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, + * permanent residents, and temporary working residents. + * + * * *Canada specific* + * * *CA_HEALTH_NUMBER* + * + * A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to + * access healthcare benefits. + * + * * *CA_SOCIAL_INSURANCE_NUMBER* + * + * A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for + * individuals to access government programs and benefits. + * + * The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be + * validated through a simple check-digit process called the [Luhn + * algorithm](https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm) . + * + * * *UK Specific* + * * *UK_NATIONAL_HEALTH_SERVICE_NUMBER* + * + * A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The + * current system formats the 10-digit number with spaces after the third and sixth digits. The + * final digit is an error-detecting checksum. + * + * * *UK_NATIONAL_INSURANCE_NUMBER* + * + * A UK National Insurance Number (NINO) provides individuals with access to National Insurance + * (social security) benefits. It is also used for some purposes in the UK tax system. + * + * The number is nine digits long and starts with two letters, followed by six numbers and one + * letter. A NINO can be formatted with a space or a dash after the two letters and after the + * second, forth, and sixth digits. + * + * * *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* + * + * A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a + * business. + * + * * *Custom* + * * *Regex filter* - You can use a regular expressions to define patterns for a guardrail to + * recognize and act upon such as serial number, booking ID etc.. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-type) */ @@ -1146,12 +1699,196 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param action Options for sensitive information action. + * @param action Configure guardrail action when the PII entity is detected. */ public fun action(action: String) /** - * @param type The currently supported PII entities. + * @param type Configure guardrail type when the PII entity is detected. + * The following PIIs are used to block or mask sensitive information: + * + * * *General* + * * *ADDRESS* + * + * A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". + * An address can include information such as the street, building, location, city, state, + * country, county, zip code, precinct, and neighborhood. + * + * * *AGE* + * + * An individual's age, including the quantity and unit of time. For example, in the phrase "I + * am 40 years old," Guarrails recognizes "40 years" as an age. + * + * * *NAME* + * + * An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or + * Miss. guardrails doesn't apply this entity type to names that are part of organizations or + * addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, + * and it recognizes "Jane Doe Street" as an address. + * + * * *EMAIL* + * + * An email address, such as *marymajor@email.com* . + * + * * *PHONE* + * + * A phone number. This entity type also includes fax and pager numbers. + * + * * *USERNAME* + * + * A user name that identifies an account, such as a login name, screen name, nick name, or + * handle. + * + * * *PASSWORD* + * + * An alphanumeric string that is used as a password, such as "* *very20special#pass** ". + * + * * *DRIVER_ID* + * + * The number assigned to a driver's license, which is an official document permitting an + * individual to operate one or more motorized vehicles on a public road. A driver's license + * number consists of alphanumeric characters. + * + * * *LICENSE_PLATE* + * + * A license plate for a vehicle is issued by the state or country where the vehicle is + * registered. The format for passenger vehicles is typically five to eight digits, consisting of + * upper-case letters and numbers. The format varies depending on the location of the issuing + * state or country. + * + * * *VEHICLE_IDENTIFICATION_NUMBER* + * + * A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format + * are defined in the *ISO 3779* specification. Each country has specific codes and formats for + * VINs. + * + * * *Finance* + * * *REDIT_DEBIT_CARD_CVV* + * + * A three-digit card verification code (CVV) that is present on VISA, MasterCard, and + * Discover credit and debit cards. For American Express credit or debit cards, the CVV is a + * four-digit numeric code. + * + * * *CREDIT_DEBIT_CARD_EXPIRY* + * + * The expiration date for a credit or debit card. This number is usually four digits long and + * is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as + * *01/21* , *01/2021* , and *Jan 2021* . + * + * * *CREDIT_DEBIT_CARD_NUMBER* + * + * The number for a credit or debit card. These numbers can vary from 13 to 16 digits in + * length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the + * last four digits are present. + * + * * *PIN* + * + * A four-digit personal identification number (PIN) with which you can access your bank + * account. + * + * * *INTERNATIONAL_BANK_ACCOUNT_NUMBER* + * + * An International Bank Account Number has specific formats in each country. For more + * information, see + * [www.iban.com/structure](https://docs.aws.amazon.com/https://www.iban.com/structure) . + * + * * *SWIFT_CODE* + * + * A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a + * particular bank or branch. Banks use these codes for money transfers such as international + * wire transfers. + * + * SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific + * branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or + * primary office. + * + * * *IT* + * * *IP_ADDRESS* + * + * An IPv4 address, such as *198.51.100.0* . + * + * * *MAC_ADDRESS* + * + * A *media access control* (MAC) address is a unique identifier assigned to a network + * interface controller (NIC). + * + * * *URL* + * + * A web address, such as *www.example.com* . + * + * * *AWS_ACCESS_KEY* + * + * A unique identifier that's associated with a secret access key; you use the access key ID + * and secret access key to sign programmatic AWS requests cryptographically. + * + * * *AWS_SECRET_KEY* + * + * A unique identifier that's associated with an access key. You use the access key ID and + * secret access key to sign programmatic AWS requests cryptographically. + * + * * *USA specific* + * * *US_BANK_ACCOUNT_NUMBER* + * + * A US bank account number, which is typically 10 to 12 digits long. + * + * * *US_BANK_ROUTING_NUMBER* + * + * A US bank account routing number. These are typically nine digits long, + * + * * *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* + * + * A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts + * with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space + * or a dash after the third and forth digits. + * + * * *US_PASSPORT_NUMBER* + * + * A US passport number. Passport numbers range from six to nine alphanumeric characters. + * + * * *US_SOCIAL_SECURITY_NUMBER* + * + * A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, + * permanent residents, and temporary working residents. + * + * * *Canada specific* + * * *CA_HEALTH_NUMBER* + * + * A Canadian Health Service Number is a 10-digit unique identifier, required for individuals + * to access healthcare benefits. + * + * * *CA_SOCIAL_INSURANCE_NUMBER* + * + * A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for + * individuals to access government programs and benefits. + * + * The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be + * validated through a simple check-digit process called the [Luhn + * algorithm](https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm) . + * + * * *UK Specific* + * * *UK_NATIONAL_HEALTH_SERVICE_NUMBER* + * + * A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The + * current system formats the 10-digit number with spaces after the third and sixth digits. The + * final digit is an error-detecting checksum. + * + * * *UK_NATIONAL_INSURANCE_NUMBER* + * + * A UK National Insurance Number (NINO) provides individuals with access to National + * Insurance (social security) benefits. It is also used for some purposes in the UK tax system. + * + * The number is nine digits long and starts with two letters, followed by six numbers and one + * letter. A NINO can be formatted with a space or a dash after the two letters and after the + * second, forth, and sixth digits. + * + * * *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* + * + * A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a + * business. + * + * * *Custom* + * * *Regex filter* - You can use a regular expressions to define patterns for a guardrail to + * recognize and act upon such as serial number, booking ID etc.. */ public fun type(type: String) } @@ -1162,14 +1899,198 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.PiiEntityConfigProperty.builder() /** - * @param action Options for sensitive information action. + * @param action Configure guardrail action when the PII entity is detected. */ override fun action(action: String) { cdkBuilder.action(action) } /** - * @param type The currently supported PII entities. + * @param type Configure guardrail type when the PII entity is detected. + * The following PIIs are used to block or mask sensitive information: + * + * * *General* + * * *ADDRESS* + * + * A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". + * An address can include information such as the street, building, location, city, state, + * country, county, zip code, precinct, and neighborhood. + * + * * *AGE* + * + * An individual's age, including the quantity and unit of time. For example, in the phrase "I + * am 40 years old," Guarrails recognizes "40 years" as an age. + * + * * *NAME* + * + * An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or + * Miss. guardrails doesn't apply this entity type to names that are part of organizations or + * addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, + * and it recognizes "Jane Doe Street" as an address. + * + * * *EMAIL* + * + * An email address, such as *marymajor@email.com* . + * + * * *PHONE* + * + * A phone number. This entity type also includes fax and pager numbers. + * + * * *USERNAME* + * + * A user name that identifies an account, such as a login name, screen name, nick name, or + * handle. + * + * * *PASSWORD* + * + * An alphanumeric string that is used as a password, such as "* *very20special#pass** ". + * + * * *DRIVER_ID* + * + * The number assigned to a driver's license, which is an official document permitting an + * individual to operate one or more motorized vehicles on a public road. A driver's license + * number consists of alphanumeric characters. + * + * * *LICENSE_PLATE* + * + * A license plate for a vehicle is issued by the state or country where the vehicle is + * registered. The format for passenger vehicles is typically five to eight digits, consisting of + * upper-case letters and numbers. The format varies depending on the location of the issuing + * state or country. + * + * * *VEHICLE_IDENTIFICATION_NUMBER* + * + * A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format + * are defined in the *ISO 3779* specification. Each country has specific codes and formats for + * VINs. + * + * * *Finance* + * * *REDIT_DEBIT_CARD_CVV* + * + * A three-digit card verification code (CVV) that is present on VISA, MasterCard, and + * Discover credit and debit cards. For American Express credit or debit cards, the CVV is a + * four-digit numeric code. + * + * * *CREDIT_DEBIT_CARD_EXPIRY* + * + * The expiration date for a credit or debit card. This number is usually four digits long and + * is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as + * *01/21* , *01/2021* , and *Jan 2021* . + * + * * *CREDIT_DEBIT_CARD_NUMBER* + * + * The number for a credit or debit card. These numbers can vary from 13 to 16 digits in + * length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the + * last four digits are present. + * + * * *PIN* + * + * A four-digit personal identification number (PIN) with which you can access your bank + * account. + * + * * *INTERNATIONAL_BANK_ACCOUNT_NUMBER* + * + * An International Bank Account Number has specific formats in each country. For more + * information, see + * [www.iban.com/structure](https://docs.aws.amazon.com/https://www.iban.com/structure) . + * + * * *SWIFT_CODE* + * + * A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a + * particular bank or branch. Banks use these codes for money transfers such as international + * wire transfers. + * + * SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific + * branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or + * primary office. + * + * * *IT* + * * *IP_ADDRESS* + * + * An IPv4 address, such as *198.51.100.0* . + * + * * *MAC_ADDRESS* + * + * A *media access control* (MAC) address is a unique identifier assigned to a network + * interface controller (NIC). + * + * * *URL* + * + * A web address, such as *www.example.com* . + * + * * *AWS_ACCESS_KEY* + * + * A unique identifier that's associated with a secret access key; you use the access key ID + * and secret access key to sign programmatic AWS requests cryptographically. + * + * * *AWS_SECRET_KEY* + * + * A unique identifier that's associated with an access key. You use the access key ID and + * secret access key to sign programmatic AWS requests cryptographically. + * + * * *USA specific* + * * *US_BANK_ACCOUNT_NUMBER* + * + * A US bank account number, which is typically 10 to 12 digits long. + * + * * *US_BANK_ROUTING_NUMBER* + * + * A US bank account routing number. These are typically nine digits long, + * + * * *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* + * + * A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts + * with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space + * or a dash after the third and forth digits. + * + * * *US_PASSPORT_NUMBER* + * + * A US passport number. Passport numbers range from six to nine alphanumeric characters. + * + * * *US_SOCIAL_SECURITY_NUMBER* + * + * A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, + * permanent residents, and temporary working residents. + * + * * *Canada specific* + * * *CA_HEALTH_NUMBER* + * + * A Canadian Health Service Number is a 10-digit unique identifier, required for individuals + * to access healthcare benefits. + * + * * *CA_SOCIAL_INSURANCE_NUMBER* + * + * A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for + * individuals to access government programs and benefits. + * + * The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be + * validated through a simple check-digit process called the [Luhn + * algorithm](https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm) . + * + * * *UK Specific* + * * *UK_NATIONAL_HEALTH_SERVICE_NUMBER* + * + * A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The + * current system formats the 10-digit number with spaces after the third and sixth digits. The + * final digit is an error-detecting checksum. + * + * * *UK_NATIONAL_INSURANCE_NUMBER* + * + * A UK National Insurance Number (NINO) provides individuals with access to National + * Insurance (social security) benefits. It is also used for some purposes in the UK tax system. + * + * The number is nine digits long and starts with two letters, followed by six numbers and one + * letter. A NINO can be formatted with a space or a dash after the two letters and after the + * second, forth, and sixth digits. + * + * * *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* + * + * A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a + * business. + * + * * *Custom* + * * *Regex filter* - You can use a regular expressions to define patterns for a guardrail to + * recognize and act upon such as serial number, booking ID etc.. */ override fun type(type: String) { cdkBuilder.type(type) @@ -1182,16 +2103,202 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.PiiEntityConfigProperty, - ) : CdkObject(cdkObject), PiiEntityConfigProperty { + ) : CdkObject(cdkObject), + PiiEntityConfigProperty { /** - * Options for sensitive information action. + * Configure guardrail action when the PII entity is detected. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-action) */ override fun action(): String = unwrap(this).getAction() /** - * The currently supported PII entities. + * Configure guardrail type when the PII entity is detected. + * + * The following PIIs are used to block or mask sensitive information: + * + * * *General* + * * *ADDRESS* + * + * A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". + * An address can include information such as the street, building, location, city, state, + * country, county, zip code, precinct, and neighborhood. + * + * * *AGE* + * + * An individual's age, including the quantity and unit of time. For example, in the phrase "I + * am 40 years old," Guarrails recognizes "40 years" as an age. + * + * * *NAME* + * + * An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or + * Miss. guardrails doesn't apply this entity type to names that are part of organizations or + * addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, + * and it recognizes "Jane Doe Street" as an address. + * + * * *EMAIL* + * + * An email address, such as *marymajor@email.com* . + * + * * *PHONE* + * + * A phone number. This entity type also includes fax and pager numbers. + * + * * *USERNAME* + * + * A user name that identifies an account, such as a login name, screen name, nick name, or + * handle. + * + * * *PASSWORD* + * + * An alphanumeric string that is used as a password, such as "* *very20special#pass** ". + * + * * *DRIVER_ID* + * + * The number assigned to a driver's license, which is an official document permitting an + * individual to operate one or more motorized vehicles on a public road. A driver's license + * number consists of alphanumeric characters. + * + * * *LICENSE_PLATE* + * + * A license plate for a vehicle is issued by the state or country where the vehicle is + * registered. The format for passenger vehicles is typically five to eight digits, consisting of + * upper-case letters and numbers. The format varies depending on the location of the issuing + * state or country. + * + * * *VEHICLE_IDENTIFICATION_NUMBER* + * + * A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format + * are defined in the *ISO 3779* specification. Each country has specific codes and formats for + * VINs. + * + * * *Finance* + * * *REDIT_DEBIT_CARD_CVV* + * + * A three-digit card verification code (CVV) that is present on VISA, MasterCard, and + * Discover credit and debit cards. For American Express credit or debit cards, the CVV is a + * four-digit numeric code. + * + * * *CREDIT_DEBIT_CARD_EXPIRY* + * + * The expiration date for a credit or debit card. This number is usually four digits long and + * is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as + * *01/21* , *01/2021* , and *Jan 2021* . + * + * * *CREDIT_DEBIT_CARD_NUMBER* + * + * The number for a credit or debit card. These numbers can vary from 13 to 16 digits in + * length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the + * last four digits are present. + * + * * *PIN* + * + * A four-digit personal identification number (PIN) with which you can access your bank + * account. + * + * * *INTERNATIONAL_BANK_ACCOUNT_NUMBER* + * + * An International Bank Account Number has specific formats in each country. For more + * information, see + * [www.iban.com/structure](https://docs.aws.amazon.com/https://www.iban.com/structure) . + * + * * *SWIFT_CODE* + * + * A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a + * particular bank or branch. Banks use these codes for money transfers such as international + * wire transfers. + * + * SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific + * branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or + * primary office. + * + * * *IT* + * * *IP_ADDRESS* + * + * An IPv4 address, such as *198.51.100.0* . + * + * * *MAC_ADDRESS* + * + * A *media access control* (MAC) address is a unique identifier assigned to a network + * interface controller (NIC). + * + * * *URL* + * + * A web address, such as *www.example.com* . + * + * * *AWS_ACCESS_KEY* + * + * A unique identifier that's associated with a secret access key; you use the access key ID + * and secret access key to sign programmatic AWS requests cryptographically. + * + * * *AWS_SECRET_KEY* + * + * A unique identifier that's associated with an access key. You use the access key ID and + * secret access key to sign programmatic AWS requests cryptographically. + * + * * *USA specific* + * * *US_BANK_ACCOUNT_NUMBER* + * + * A US bank account number, which is typically 10 to 12 digits long. + * + * * *US_BANK_ROUTING_NUMBER* + * + * A US bank account routing number. These are typically nine digits long, + * + * * *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* + * + * A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts + * with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space + * or a dash after the third and forth digits. + * + * * *US_PASSPORT_NUMBER* + * + * A US passport number. Passport numbers range from six to nine alphanumeric characters. + * + * * *US_SOCIAL_SECURITY_NUMBER* + * + * A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, + * permanent residents, and temporary working residents. + * + * * *Canada specific* + * * *CA_HEALTH_NUMBER* + * + * A Canadian Health Service Number is a 10-digit unique identifier, required for individuals + * to access healthcare benefits. + * + * * *CA_SOCIAL_INSURANCE_NUMBER* + * + * A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for + * individuals to access government programs and benefits. + * + * The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be + * validated through a simple check-digit process called the [Luhn + * algorithm](https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm) . + * + * * *UK Specific* + * * *UK_NATIONAL_HEALTH_SERVICE_NUMBER* + * + * A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The + * current system formats the 10-digit number with spaces after the third and sixth digits. The + * final digit is an error-detecting checksum. + * + * * *UK_NATIONAL_INSURANCE_NUMBER* + * + * A UK National Insurance Number (NINO) provides individuals with access to National + * Insurance (social security) benefits. It is also used for some purposes in the UK tax system. + * + * The number is nine digits long and starts with two letters, followed by six numbers and one + * letter. A NINO can be formatted with a space or a dash after the two letters and after the + * second, forth, and sixth digits. + * + * * *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* + * + * A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a + * business. + * + * * *Custom* + * * *Regex filter* - You can use a regular expressions to define patterns for a guardrail to + * recognize and act upon such as serial number, booking ID etc.. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html#cfn-bedrock-guardrail-piientityconfig-type) */ @@ -1217,7 +2324,7 @@ public open class CfnGuardrail( } /** - * A regex configuration. + * The regular expression to configure for the guardrail. * * Example: * @@ -1238,28 +2345,28 @@ public open class CfnGuardrail( */ public interface RegexConfigProperty { /** - * Options for sensitive information action. + * The guardrail action to configure when matching regular expression is detected. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-action) */ public fun action(): String /** - * The regex description. + * The description of the regular expression to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-description) */ public fun description(): String? = unwrap(this).getDescription() /** - * The regex name. + * The name of the regular expression to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-name) */ public fun name(): String /** - * The regex pattern. + * The regular expression pattern to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-pattern) */ @@ -1271,22 +2378,24 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param action Options for sensitive information action. + * @param action The guardrail action to configure when matching regular expression is + * detected. */ public fun action(action: String) /** - * @param description The regex description. + * @param description The description of the regular expression to configure for the + * guardrail. */ public fun description(description: String) /** - * @param name The regex name. + * @param name The name of the regular expression to configure for the guardrail. */ public fun name(name: String) /** - * @param pattern The regex pattern. + * @param pattern The regular expression pattern to configure for the guardrail. */ public fun pattern(pattern: String) } @@ -1297,28 +2406,30 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.RegexConfigProperty.builder() /** - * @param action Options for sensitive information action. + * @param action The guardrail action to configure when matching regular expression is + * detected. */ override fun action(action: String) { cdkBuilder.action(action) } /** - * @param description The regex description. + * @param description The description of the regular expression to configure for the + * guardrail. */ override fun description(description: String) { cdkBuilder.description(description) } /** - * @param name The regex name. + * @param name The name of the regular expression to configure for the guardrail. */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param pattern The regex pattern. + * @param pattern The regular expression pattern to configure for the guardrail. */ override fun pattern(pattern: String) { cdkBuilder.pattern(pattern) @@ -1330,30 +2441,31 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.RegexConfigProperty, - ) : CdkObject(cdkObject), RegexConfigProperty { + ) : CdkObject(cdkObject), + RegexConfigProperty { /** - * Options for sensitive information action. + * The guardrail action to configure when matching regular expression is detected. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-action) */ override fun action(): String = unwrap(this).getAction() /** - * The regex description. + * The description of the regular expression to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-description) */ override fun description(): String? = unwrap(this).getDescription() /** - * The regex name. + * The name of the regular expression to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-name) */ override fun name(): String = unwrap(this).getName() /** - * The regex pattern. + * The regular expression pattern to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html#cfn-bedrock-guardrail-regexconfig-pattern) */ @@ -1379,7 +2491,7 @@ public open class CfnGuardrail( } /** - * Sensitive information policy config for a guardrail. + * Contains details about PII entities and regular expressions to configure for the guardrail. * * Example: * @@ -1407,14 +2519,14 @@ public open class CfnGuardrail( */ public interface SensitiveInformationPolicyConfigProperty { /** - * List of entities. + * A list of PII entities to configure to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-piientitiesconfig) */ public fun piiEntitiesConfig(): Any? = unwrap(this).getPiiEntitiesConfig() /** - * List of regex. + * A list of regular expressions to configure to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-regexesconfig) */ @@ -1426,32 +2538,32 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ public fun piiEntitiesConfig(piiEntitiesConfig: IResolvable) /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ public fun piiEntitiesConfig(piiEntitiesConfig: List) /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ public fun piiEntitiesConfig(vararg piiEntitiesConfig: Any) /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ public fun regexesConfig(regexesConfig: IResolvable) /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ public fun regexesConfig(regexesConfig: List) /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ public fun regexesConfig(vararg regexesConfig: Any) } @@ -1463,41 +2575,41 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty.builder() /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ override fun piiEntitiesConfig(piiEntitiesConfig: IResolvable) { cdkBuilder.piiEntitiesConfig(piiEntitiesConfig.let(IResolvable.Companion::unwrap)) } /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ override fun piiEntitiesConfig(piiEntitiesConfig: List) { cdkBuilder.piiEntitiesConfig(piiEntitiesConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param piiEntitiesConfig List of entities. + * @param piiEntitiesConfig A list of PII entities to configure to the guardrail. */ override fun piiEntitiesConfig(vararg piiEntitiesConfig: Any): Unit = piiEntitiesConfig(piiEntitiesConfig.toList()) /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ override fun regexesConfig(regexesConfig: IResolvable) { cdkBuilder.regexesConfig(regexesConfig.let(IResolvable.Companion::unwrap)) } /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ override fun regexesConfig(regexesConfig: List) { cdkBuilder.regexesConfig(regexesConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param regexesConfig List of regex. + * @param regexesConfig A list of regular expressions to configure to the guardrail. */ override fun regexesConfig(vararg regexesConfig: Any): Unit = regexesConfig(regexesConfig.toList()) @@ -1509,16 +2621,17 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.SensitiveInformationPolicyConfigProperty, - ) : CdkObject(cdkObject), SensitiveInformationPolicyConfigProperty { + ) : CdkObject(cdkObject), + SensitiveInformationPolicyConfigProperty { /** - * List of entities. + * A list of PII entities to configure to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-piientitiesconfig) */ override fun piiEntitiesConfig(): Any? = unwrap(this).getPiiEntitiesConfig() /** - * List of regex. + * A list of regular expressions to configure to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig-regexesconfig) */ @@ -1545,7 +2658,7 @@ public open class CfnGuardrail( } /** - * Topic config in topic policy. + * Details about topics for the guardrail to identify and deny. * * Example: * @@ -1566,28 +2679,29 @@ public open class CfnGuardrail( */ public interface TopicConfigProperty { /** - * Definition of topic in topic policy. + * A definition of the topic to deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-definition) */ public fun definition(): String /** - * List of text examples. + * A list of prompts, each of which is an example of a prompt that can be categorized as + * belonging to the topic. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-examples) */ public fun examples(): List = unwrap(this).getExamples() ?: emptyList() /** - * Name of topic in topic policy. + * The name of the topic to deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-name) */ public fun name(): String /** - * Type of topic in a policy. + * Specifies to deny the topic. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-type) */ @@ -1599,27 +2713,29 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param definition Definition of topic in topic policy. + * @param definition A definition of the topic to deny. */ public fun definition(definition: String) /** - * @param examples List of text examples. + * @param examples A list of prompts, each of which is an example of a prompt that can be + * categorized as belonging to the topic. */ public fun examples(examples: List) /** - * @param examples List of text examples. + * @param examples A list of prompts, each of which is an example of a prompt that can be + * categorized as belonging to the topic. */ public fun examples(vararg examples: String) /** - * @param name Name of topic in topic policy. + * @param name The name of the topic to deny. */ public fun name(name: String) /** - * @param type Type of topic in a policy. + * @param type Specifies to deny the topic. */ public fun type(type: String) } @@ -1630,33 +2746,35 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.TopicConfigProperty.builder() /** - * @param definition Definition of topic in topic policy. + * @param definition A definition of the topic to deny. */ override fun definition(definition: String) { cdkBuilder.definition(definition) } /** - * @param examples List of text examples. + * @param examples A list of prompts, each of which is an example of a prompt that can be + * categorized as belonging to the topic. */ override fun examples(examples: List) { cdkBuilder.examples(examples) } /** - * @param examples List of text examples. + * @param examples A list of prompts, each of which is an example of a prompt that can be + * categorized as belonging to the topic. */ override fun examples(vararg examples: String): Unit = examples(examples.toList()) /** - * @param name Name of topic in topic policy. + * @param name The name of the topic to deny. */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param type Type of topic in a policy. + * @param type Specifies to deny the topic. */ override fun type(type: String) { cdkBuilder.type(type) @@ -1668,30 +2786,32 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.TopicConfigProperty, - ) : CdkObject(cdkObject), TopicConfigProperty { + ) : CdkObject(cdkObject), + TopicConfigProperty { /** - * Definition of topic in topic policy. + * A definition of the topic to deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-definition) */ override fun definition(): String = unwrap(this).getDefinition() /** - * List of text examples. + * A list of prompts, each of which is an example of a prompt that can be categorized as + * belonging to the topic. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-examples) */ override fun examples(): List = unwrap(this).getExamples() ?: emptyList() /** - * Name of topic in topic policy. + * The name of the topic to deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-name) */ override fun name(): String = unwrap(this).getName() /** - * Type of topic in a policy. + * Specifies to deny the topic. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html#cfn-bedrock-guardrail-topicconfig-type) */ @@ -1717,7 +2837,7 @@ public open class CfnGuardrail( } /** - * Topic policy config for a guardrail. + * Contains details about topics that the guardrail should identify and deny. * * Example: * @@ -1740,7 +2860,7 @@ public open class CfnGuardrail( */ public interface TopicPolicyConfigProperty { /** - * List of topic configs in topic policy. + * A list of policies related to topics that the guardrail should deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html#cfn-bedrock-guardrail-topicpolicyconfig-topicsconfig) */ @@ -1752,17 +2872,17 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ public fun topicsConfig(topicsConfig: IResolvable) /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ public fun topicsConfig(topicsConfig: List) /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ public fun topicsConfig(vararg topicsConfig: Any) } @@ -1773,21 +2893,21 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.TopicPolicyConfigProperty.builder() /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ override fun topicsConfig(topicsConfig: IResolvable) { cdkBuilder.topicsConfig(topicsConfig.let(IResolvable.Companion::unwrap)) } /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ override fun topicsConfig(topicsConfig: List) { cdkBuilder.topicsConfig(topicsConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param topicsConfig List of topic configs in topic policy. + * @param topicsConfig A list of policies related to topics that the guardrail should deny. */ override fun topicsConfig(vararg topicsConfig: Any): Unit = topicsConfig(topicsConfig.toList()) @@ -1799,9 +2919,10 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.TopicPolicyConfigProperty, - ) : CdkObject(cdkObject), TopicPolicyConfigProperty { + ) : CdkObject(cdkObject), + TopicPolicyConfigProperty { /** - * List of topic configs in topic policy. + * A list of policies related to topics that the guardrail should deny. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html#cfn-bedrock-guardrail-topicpolicyconfig-topicsconfig) */ @@ -1827,7 +2948,7 @@ public open class CfnGuardrail( } /** - * A custom word config. + * A word to configure for the guardrail. * * Example: * @@ -1844,7 +2965,7 @@ public open class CfnGuardrail( */ public interface WordConfigProperty { /** - * The custom word text. + * Text of the word configured for the guardrail to block. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-text) */ @@ -1856,7 +2977,7 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param text The custom word text. + * @param text Text of the word configured for the guardrail to block. */ public fun text(text: String) } @@ -1867,7 +2988,7 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.WordConfigProperty.builder() /** - * @param text The custom word text. + * @param text Text of the word configured for the guardrail to block. */ override fun text(text: String) { cdkBuilder.text(text) @@ -1879,9 +3000,10 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.WordConfigProperty, - ) : CdkObject(cdkObject), WordConfigProperty { + ) : CdkObject(cdkObject), + WordConfigProperty { /** - * The custom word text. + * Text of the word configured for the guardrail to block. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-text) */ @@ -1907,7 +3029,7 @@ public open class CfnGuardrail( } /** - * Word policy config for a guardrail. + * Contains details about the word policy to configured for the guardrail. * * Example: * @@ -1929,14 +3051,14 @@ public open class CfnGuardrail( */ public interface WordPolicyConfigProperty { /** - * A config for the list of managed words. + * A list of managed words to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-managedwordlistsconfig) */ public fun managedWordListsConfig(): Any? = unwrap(this).getManagedWordListsConfig() /** - * List of custom word configs. + * A list of words to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-wordsconfig) */ @@ -1948,32 +3070,32 @@ public open class CfnGuardrail( @CdkDslMarker public interface Builder { /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ public fun managedWordListsConfig(managedWordListsConfig: IResolvable) /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ public fun managedWordListsConfig(managedWordListsConfig: List) /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ public fun managedWordListsConfig(vararg managedWordListsConfig: Any) /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ public fun wordsConfig(wordsConfig: IResolvable) /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ public fun wordsConfig(wordsConfig: List) /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ public fun wordsConfig(vararg wordsConfig: Any) } @@ -1984,41 +3106,41 @@ public open class CfnGuardrail( software.amazon.awscdk.services.bedrock.CfnGuardrail.WordPolicyConfigProperty.builder() /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ override fun managedWordListsConfig(managedWordListsConfig: IResolvable) { cdkBuilder.managedWordListsConfig(managedWordListsConfig.let(IResolvable.Companion::unwrap)) } /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ override fun managedWordListsConfig(managedWordListsConfig: List) { cdkBuilder.managedWordListsConfig(managedWordListsConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param managedWordListsConfig A config for the list of managed words. + * @param managedWordListsConfig A list of managed words to configure for the guardrail. */ override fun managedWordListsConfig(vararg managedWordListsConfig: Any): Unit = managedWordListsConfig(managedWordListsConfig.toList()) /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ override fun wordsConfig(wordsConfig: IResolvable) { cdkBuilder.wordsConfig(wordsConfig.let(IResolvable.Companion::unwrap)) } /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ override fun wordsConfig(wordsConfig: List) { cdkBuilder.wordsConfig(wordsConfig.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param wordsConfig List of custom word configs. + * @param wordsConfig A list of words to configure for the guardrail. */ override fun wordsConfig(vararg wordsConfig: Any): Unit = wordsConfig(wordsConfig.toList()) @@ -2029,16 +3151,17 @@ public open class CfnGuardrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrail.WordPolicyConfigProperty, - ) : CdkObject(cdkObject), WordPolicyConfigProperty { + ) : CdkObject(cdkObject), + WordPolicyConfigProperty { /** - * A config for the list of managed words. + * A list of managed words to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-managedwordlistsconfig) */ override fun managedWordListsConfig(): Any? = unwrap(this).getManagedWordListsConfig() /** - * List of custom word configs. + * A list of words to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html#cfn-bedrock-guardrail-wordpolicyconfig-wordsconfig) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailProps.kt index a8e244333a..716958be12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailProps.kt @@ -34,6 +34,12 @@ import kotlin.jvm.JvmName * .type("type") * .build())) * .build()) + * .contextualGroundingPolicyConfig(ContextualGroundingPolicyConfigProperty.builder() + * .filtersConfig(List.of(ContextualGroundingFilterConfigProperty.builder() + * .threshold(123) + * .type("type") + * .build())) + * .build()) * .description("description") * .kmsKeyArn("kmsKeyArn") * .sensitiveInformationPolicyConfig(SensitiveInformationPolicyConfigProperty.builder() @@ -91,12 +97,20 @@ public interface CfnGuardrailProps { public fun blockedOutputsMessaging(): String /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) */ public fun contentPolicyConfig(): Any? = unwrap(this).getContentPolicyConfig() + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + */ + public fun contextualGroundingPolicyConfig(): Any? = + unwrap(this).getContextualGroundingPolicyConfig() + /** * A description of the guardrail. * @@ -105,7 +119,7 @@ public interface CfnGuardrailProps { public fun description(): String? = unwrap(this).getDescription() /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-kmskeyarn) */ @@ -119,7 +133,7 @@ public interface CfnGuardrailProps { public fun name(): String /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) */ @@ -127,27 +141,21 @@ public interface CfnGuardrailProps { unwrap(this).getSensitiveInformationPolicyConfig() /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) */ public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) */ public fun topicPolicyConfig(): Any? = unwrap(this).getTopicPolicyConfig() /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) */ @@ -170,30 +178,49 @@ public interface CfnGuardrailProps { public fun blockedOutputsMessaging(blockedOutputsMessaging: String) /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ public fun contentPolicyConfig(contentPolicyConfig: IResolvable) /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ public fun contentPolicyConfig(contentPolicyConfig: CfnGuardrail.ContentPolicyConfigProperty) /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("19815e8cf27c365dd7acbd9be8297ec6895dc93c9b34a926909bf6655b7c33c5") public fun contentPolicyConfig(contentPolicyConfig: CfnGuardrail.ContentPolicyConfigProperty.Builder.() -> Unit) + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + public fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: IResolvable) + + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + public + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: CfnGuardrail.ContextualGroundingPolicyConfigProperty) + + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("89ba7bd404745ce6d658d412796eebcd10533b9d6092cf55a3fb98fe06496ce3") + public + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: CfnGuardrail.ContextualGroundingPolicyConfigProperty.Builder.() -> Unit) + /** * @param description A description of the guardrail. */ public fun description(description: String) /** - * @param kmsKeyArn The ARN of the AWS KMS key used to encrypt the guardrail. + * @param kmsKeyArn The ARN of the AWS KMS key that you use to encrypt the guardrail. */ public fun kmsKeyArn(kmsKeyArn: String) @@ -203,18 +230,21 @@ public interface CfnGuardrailProps { public fun name(name: String) /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ public fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: IResolvable) /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ public fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: CfnGuardrail.SensitiveInformationPolicyConfigProperty) /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1765821b1324a8bdfa728ab15a49281c39381141ae1e0273c5af259dc9024bfb") @@ -222,37 +252,27 @@ public interface CfnGuardrailProps { fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: CfnGuardrail.SensitiveInformationPolicyConfigProperty.Builder.() -> Unit) /** - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * @param tags The tags that you want to attach to the guardrail. */ public fun tags(tags: List) /** - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * @param tags The tags that you want to attach to the guardrail. */ public fun tags(vararg tags: CfnTag) /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ public fun topicPolicyConfig(topicPolicyConfig: IResolvable) /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ public fun topicPolicyConfig(topicPolicyConfig: CfnGuardrail.TopicPolicyConfigProperty) /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f85221bfe449356beba2aab06bf7dcc9a622f38a9cac8373194669d0739ea42c") @@ -260,17 +280,17 @@ public interface CfnGuardrailProps { fun topicPolicyConfig(topicPolicyConfig: CfnGuardrail.TopicPolicyConfigProperty.Builder.() -> Unit) /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ public fun wordPolicyConfig(wordPolicyConfig: IResolvable) /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ public fun wordPolicyConfig(wordPolicyConfig: CfnGuardrail.WordPolicyConfigProperty) /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7563028a04f12c14dbc0898cb326fc098049ccd11d81aad99acf0e4a94f39bbb") @@ -298,14 +318,14 @@ public interface CfnGuardrailProps { } /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ override fun contentPolicyConfig(contentPolicyConfig: IResolvable) { cdkBuilder.contentPolicyConfig(contentPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ override fun contentPolicyConfig(contentPolicyConfig: CfnGuardrail.ContentPolicyConfigProperty) { @@ -313,7 +333,7 @@ public interface CfnGuardrailProps { } /** - * @param contentPolicyConfig Content policy config for a guardrail. + * @param contentPolicyConfig The content filter policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("19815e8cf27c365dd7acbd9be8297ec6895dc93c9b34a926909bf6655b7c33c5") @@ -321,6 +341,31 @@ public interface CfnGuardrailProps { fun contentPolicyConfig(contentPolicyConfig: CfnGuardrail.ContentPolicyConfigProperty.Builder.() -> Unit): Unit = contentPolicyConfig(CfnGuardrail.ContentPolicyConfigProperty(contentPolicyConfig)) + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + override fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: IResolvable) { + cdkBuilder.contextualGroundingPolicyConfig(contextualGroundingPolicyConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + override + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: CfnGuardrail.ContextualGroundingPolicyConfigProperty) { + cdkBuilder.contextualGroundingPolicyConfig(contextualGroundingPolicyConfig.let(CfnGuardrail.ContextualGroundingPolicyConfigProperty.Companion::unwrap)) + } + + /** + * @param contextualGroundingPolicyConfig Contextual grounding policy config for a guardrail. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("89ba7bd404745ce6d658d412796eebcd10533b9d6092cf55a3fb98fe06496ce3") + override + fun contextualGroundingPolicyConfig(contextualGroundingPolicyConfig: CfnGuardrail.ContextualGroundingPolicyConfigProperty.Builder.() -> Unit): + Unit = + contextualGroundingPolicyConfig(CfnGuardrail.ContextualGroundingPolicyConfigProperty(contextualGroundingPolicyConfig)) + /** * @param description A description of the guardrail. */ @@ -329,7 +374,7 @@ public interface CfnGuardrailProps { } /** - * @param kmsKeyArn The ARN of the AWS KMS key used to encrypt the guardrail. + * @param kmsKeyArn The ARN of the AWS KMS key that you use to encrypt the guardrail. */ override fun kmsKeyArn(kmsKeyArn: String) { cdkBuilder.kmsKeyArn(kmsKeyArn) @@ -343,14 +388,16 @@ public interface CfnGuardrailProps { } /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ override fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: IResolvable) { cdkBuilder.sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ override fun sensitiveInformationPolicyConfig(sensitiveInformationPolicyConfig: CfnGuardrail.SensitiveInformationPolicyConfigProperty) { @@ -358,7 +405,8 @@ public interface CfnGuardrailProps { } /** - * @param sensitiveInformationPolicyConfig Sensitive information policy config for a guardrail. + * @param sensitiveInformationPolicyConfig The sensitive information policy to configure for the + * guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1765821b1324a8bdfa728ab15a49281c39381141ae1e0273c5af259dc9024bfb") @@ -368,43 +416,33 @@ public interface CfnGuardrailProps { sensitiveInformationPolicyConfig(CfnGuardrail.SensitiveInformationPolicyConfigProperty(sensitiveInformationPolicyConfig)) /** - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * @param tags The tags that you want to attach to the guardrail. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags Metadata that you can assign to a guardrail as key-value pairs. For more - * information, see the following resources:. - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * @param tags The tags that you want to attach to the guardrail. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ override fun topicPolicyConfig(topicPolicyConfig: IResolvable) { cdkBuilder.topicPolicyConfig(topicPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ override fun topicPolicyConfig(topicPolicyConfig: CfnGuardrail.TopicPolicyConfigProperty) { cdkBuilder.topicPolicyConfig(topicPolicyConfig.let(CfnGuardrail.TopicPolicyConfigProperty.Companion::unwrap)) } /** - * @param topicPolicyConfig Topic policy config for a guardrail. + * @param topicPolicyConfig The topic policies to configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f85221bfe449356beba2aab06bf7dcc9a622f38a9cac8373194669d0739ea42c") @@ -413,21 +451,21 @@ public interface CfnGuardrailProps { Unit = topicPolicyConfig(CfnGuardrail.TopicPolicyConfigProperty(topicPolicyConfig)) /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ override fun wordPolicyConfig(wordPolicyConfig: IResolvable) { cdkBuilder.wordPolicyConfig(wordPolicyConfig.let(IResolvable.Companion::unwrap)) } /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ override fun wordPolicyConfig(wordPolicyConfig: CfnGuardrail.WordPolicyConfigProperty) { cdkBuilder.wordPolicyConfig(wordPolicyConfig.let(CfnGuardrail.WordPolicyConfigProperty.Companion::unwrap)) } /** - * @param wordPolicyConfig Word policy config for a guardrail. + * @param wordPolicyConfig The word policy you configure for the guardrail. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7563028a04f12c14dbc0898cb326fc098049ccd11d81aad99acf0e4a94f39bbb") @@ -441,7 +479,8 @@ public interface CfnGuardrailProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrailProps, - ) : CdkObject(cdkObject), CfnGuardrailProps { + ) : CdkObject(cdkObject), + CfnGuardrailProps { /** * The message to return when the guardrail blocks a prompt. * @@ -457,12 +496,20 @@ public interface CfnGuardrailProps { override fun blockedOutputsMessaging(): String = unwrap(this).getBlockedOutputsMessaging() /** - * Content policy config for a guardrail. + * The content filter policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contentpolicyconfig) */ override fun contentPolicyConfig(): Any? = unwrap(this).getContentPolicyConfig() + /** + * Contextual grounding policy config for a guardrail. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-contextualgroundingpolicyconfig) + */ + override fun contextualGroundingPolicyConfig(): Any? = + unwrap(this).getContextualGroundingPolicyConfig() + /** * A description of the guardrail. * @@ -471,7 +518,7 @@ public interface CfnGuardrailProps { override fun description(): String? = unwrap(this).getDescription() /** - * The ARN of the AWS KMS key used to encrypt the guardrail. + * The ARN of the AWS KMS key that you use to encrypt the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-kmskeyarn) */ @@ -485,7 +532,7 @@ public interface CfnGuardrailProps { override fun name(): String = unwrap(this).getName() /** - * Sensitive information policy config for a guardrail. + * The sensitive information policy to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-sensitiveinformationpolicyconfig) */ @@ -493,27 +540,21 @@ public interface CfnGuardrailProps { unwrap(this).getSensitiveInformationPolicyConfig() /** - * Metadata that you can assign to a guardrail as key-value pairs. For more information, see the - * following resources:. - * - * * [Tag naming limits and - * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - * * [Tagging best - * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * The tags that you want to attach to the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-tags) */ override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * Topic policy config for a guardrail. + * The topic policies to configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-topicpolicyconfig) */ override fun topicPolicyConfig(): Any? = unwrap(this).getTopicPolicyConfig() /** - * Word policy config for a guardrail. + * The word policy you configure for the guardrail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#cfn-bedrock-guardrail-wordpolicyconfig) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersion.kt new file mode 100644 index 0000000000..4514f676a9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersion.kt @@ -0,0 +1,181 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a version of the guardrail. + * + * Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, + * or to compare the configuration with another version. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnGuardrailVersion cfnGuardrailVersion = CfnGuardrailVersion.Builder.create(this, + * "MyCfnGuardrailVersion") + * .guardrailIdentifier("guardrailIdentifier") + * // the properties below are optional + * .description("description") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html) + */ +public open class CfnGuardrailVersion( + cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrailVersion, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnGuardrailVersionProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnGuardrailVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnGuardrailVersionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnGuardrailVersionProps.Builder.() -> Unit, + ) : this(scope, id, CfnGuardrailVersionProps(props) + ) + + /** + * The ARN of the guardrail. + */ + public open fun attrGuardrailArn(): String = unwrap(this).getAttrGuardrailArn() + + /** + * The unique identifier of the guardrail. + */ + public open fun attrGuardrailId(): String = unwrap(this).getAttrGuardrailId() + + /** + * The version of the guardrail. + */ + public open fun attrVersion(): String = unwrap(this).getAttrVersion() + + /** + * A description of the guardrail version. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A description of the guardrail version. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The unique identifier of the guardrail. + */ + public open fun guardrailIdentifier(): String = unwrap(this).getGuardrailIdentifier() + + /** + * The unique identifier of the guardrail. + */ + public open fun guardrailIdentifier(`value`: String) { + unwrap(this).setGuardrailIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnGuardrailVersion]. + */ + @CdkDslMarker + public interface Builder { + /** + * A description of the guardrail version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-description) + * @param description A description of the guardrail version. + */ + public fun description(description: String) + + /** + * The unique identifier of the guardrail. + * + * This can be an ID or the ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-guardrailidentifier) + * @param guardrailIdentifier The unique identifier of the guardrail. + */ + public fun guardrailIdentifier(guardrailIdentifier: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnGuardrailVersion.Builder = + software.amazon.awscdk.services.bedrock.CfnGuardrailVersion.Builder.create(scope, id) + + /** + * A description of the guardrail version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-description) + * @param description A description of the guardrail version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The unique identifier of the guardrail. + * + * This can be an ID or the ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-guardrailidentifier) + * @param guardrailIdentifier The unique identifier of the guardrail. + */ + override fun guardrailIdentifier(guardrailIdentifier: String) { + cdkBuilder.guardrailIdentifier(guardrailIdentifier) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnGuardrailVersion = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnGuardrailVersion.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnGuardrailVersion { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnGuardrailVersion(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrailVersion): + CfnGuardrailVersion = CfnGuardrailVersion(cdkObject) + + internal fun unwrap(wrapped: CfnGuardrailVersion): + software.amazon.awscdk.services.bedrock.CfnGuardrailVersion = wrapped.cdkObject as + software.amazon.awscdk.services.bedrock.CfnGuardrailVersion + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersionProps.kt new file mode 100644 index 0000000000..4c5b7b6775 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnGuardrailVersionProps.kt @@ -0,0 +1,121 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnGuardrailVersion`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnGuardrailVersionProps cfnGuardrailVersionProps = CfnGuardrailVersionProps.builder() + * .guardrailIdentifier("guardrailIdentifier") + * // the properties below are optional + * .description("description") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html) + */ +public interface CfnGuardrailVersionProps { + /** + * A description of the guardrail version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The unique identifier of the guardrail. + * + * This can be an ID or the ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-guardrailidentifier) + */ + public fun guardrailIdentifier(): String + + /** + * A builder for [CfnGuardrailVersionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A description of the guardrail version. + */ + public fun description(description: String) + + /** + * @param guardrailIdentifier The unique identifier of the guardrail. + * This can be an ID or the ARN. + */ + public fun guardrailIdentifier(guardrailIdentifier: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps.Builder + = software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps.builder() + + /** + * @param description A description of the guardrail version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param guardrailIdentifier The unique identifier of the guardrail. + * This can be an ID or the ARN. + */ + override fun guardrailIdentifier(guardrailIdentifier: String) { + cdkBuilder.guardrailIdentifier(guardrailIdentifier) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps, + ) : CdkObject(cdkObject), + CfnGuardrailVersionProps { + /** + * A description of the guardrail version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The unique identifier of the guardrail. + * + * This can be an ID or the ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html#cfn-bedrock-guardrailversion-guardrailidentifier) + */ + override fun guardrailIdentifier(): String = unwrap(this).getGuardrailIdentifier() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnGuardrailVersionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps): + CfnGuardrailVersionProps = CdkObjectWrappers.wrap(cdkObject) as? CfnGuardrailVersionProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnGuardrailVersionProps): + software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnGuardrailVersionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBase.kt index 7055f7634e..a6b7a33183 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBase.kt @@ -12,6 +12,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -55,6 +56,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .type("type") * .vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationProperty.builder() * .embeddingModelArn("embeddingModelArn") + * // the properties below are optional + * .embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder() + * .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build()) + * .build()) * .build()) * .build()) * .name("name") @@ -105,7 +112,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKnowledgeBase( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -538,7 +547,226 @@ public open class CfnKnowledgeBase( } /** - * Contains details about the embeddings configuration of the knowledge base. + * The vector configuration details for the Bedrock embeddings model. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * BedrockEmbeddingModelConfigurationProperty bedrockEmbeddingModelConfigurationProperty = + * BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-bedrockembeddingmodelconfiguration.html) + */ + public interface BedrockEmbeddingModelConfigurationProperty { + /** + * The dimensions details for the vector configuration used on the Bedrock embeddings model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-bedrockembeddingmodelconfiguration.html#cfn-bedrock-knowledgebase-bedrockembeddingmodelconfiguration-dimensions) + */ + public fun dimensions(): Number? = unwrap(this).getDimensions() + + /** + * A builder for [BedrockEmbeddingModelConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dimensions The dimensions details for the vector configuration used on the Bedrock + * embeddings model. + */ + public fun dimensions(dimensions: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty.builder() + + /** + * @param dimensions The dimensions details for the vector configuration used on the Bedrock + * embeddings model. + */ + override fun dimensions(dimensions: Number) { + cdkBuilder.dimensions(dimensions) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty, + ) : CdkObject(cdkObject), + BedrockEmbeddingModelConfigurationProperty { + /** + * The dimensions details for the vector configuration used on the Bedrock embeddings model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-bedrockembeddingmodelconfiguration.html#cfn-bedrock-knowledgebase-bedrockembeddingmodelconfiguration-dimensions) + */ + override fun dimensions(): Number? = unwrap(this).getDimensions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + BedrockEmbeddingModelConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty): + BedrockEmbeddingModelConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + BedrockEmbeddingModelConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: BedrockEmbeddingModelConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty + } + } + + /** + * The configuration details for the embeddings model. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * EmbeddingModelConfigurationProperty embeddingModelConfigurationProperty = + * EmbeddingModelConfigurationProperty.builder() + * .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-embeddingmodelconfiguration.html) + */ + public interface EmbeddingModelConfigurationProperty { + /** + * The vector configuration details on the Bedrock embeddings model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-embeddingmodelconfiguration.html#cfn-bedrock-knowledgebase-embeddingmodelconfiguration-bedrockembeddingmodelconfiguration) + */ + public fun bedrockEmbeddingModelConfiguration(): Any? = + unwrap(this).getBedrockEmbeddingModelConfiguration() + + /** + * A builder for [EmbeddingModelConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + public fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: IResolvable) + + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + public + fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: BedrockEmbeddingModelConfigurationProperty) + + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("72420c2fbd5dfcb0301b963bf5b5e58a81e45f21a5f5cf40293b13daaedff8e4") + public + fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: BedrockEmbeddingModelConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty.builder() + + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + override + fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: IResolvable) { + cdkBuilder.bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + override + fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: BedrockEmbeddingModelConfigurationProperty) { + cdkBuilder.bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration.let(BedrockEmbeddingModelConfigurationProperty.Companion::unwrap)) + } + + /** + * @param bedrockEmbeddingModelConfiguration The vector configuration details on the Bedrock + * embeddings model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("72420c2fbd5dfcb0301b963bf5b5e58a81e45f21a5f5cf40293b13daaedff8e4") + override + fun bedrockEmbeddingModelConfiguration(bedrockEmbeddingModelConfiguration: BedrockEmbeddingModelConfigurationProperty.Builder.() -> Unit): + Unit = + bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty(bedrockEmbeddingModelConfiguration)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty, + ) : CdkObject(cdkObject), + EmbeddingModelConfigurationProperty { + /** + * The vector configuration details on the Bedrock embeddings model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-embeddingmodelconfiguration.html#cfn-bedrock-knowledgebase-embeddingmodelconfiguration-bedrockembeddingmodelconfiguration) + */ + override fun bedrockEmbeddingModelConfiguration(): Any? = + unwrap(this).getBedrockEmbeddingModelConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + EmbeddingModelConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty): + EmbeddingModelConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + EmbeddingModelConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EmbeddingModelConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty + } + } + + /** + * Configurations to apply to a knowledge base attached to the agent during query. + * + * For more information, see [Knowledge base retrieval + * configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html#session-state-kb) + * . * * Example: * @@ -551,6 +779,12 @@ public open class CfnKnowledgeBase( * .type("type") * .vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationProperty.builder() * .embeddingModelArn("embeddingModelArn") + * // the properties below are optional + * .embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder() + * .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build()) + * .build()) * .build()) * .build(); * ``` @@ -655,7 +889,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, - ) : CdkObject(cdkObject), KnowledgeBaseConfigurationProperty { + ) : CdkObject(cdkObject), + KnowledgeBaseConfigurationProperty { /** * The type of data that the data source is converted into for the knowledge base. * @@ -832,7 +1067,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty, - ) : CdkObject(cdkObject), OpenSearchServerlessConfigurationProperty { + ) : CdkObject(cdkObject), + OpenSearchServerlessConfigurationProperty { /** * The Amazon Resource Name (ARN) of the OpenSearch Service vector store. * @@ -981,7 +1217,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.OpenSearchServerlessFieldMappingProperty, - ) : CdkObject(cdkObject), OpenSearchServerlessFieldMappingProperty { + ) : CdkObject(cdkObject), + OpenSearchServerlessFieldMappingProperty { /** * The name of the field in which Amazon Bedrock stores metadata about the vector store. * @@ -1186,7 +1423,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.PineconeConfigurationProperty, - ) : CdkObject(cdkObject), PineconeConfigurationProperty { + ) : CdkObject(cdkObject), + PineconeConfigurationProperty { /** * The endpoint URL for your index management page. * @@ -1319,7 +1557,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.PineconeFieldMappingProperty, - ) : CdkObject(cdkObject), PineconeFieldMappingProperty { + ) : CdkObject(cdkObject), + PineconeFieldMappingProperty { /** * The name of the field in which Amazon Bedrock stores metadata about the vector store. * @@ -1534,7 +1773,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.RdsConfigurationProperty, - ) : CdkObject(cdkObject), RdsConfigurationProperty { + ) : CdkObject(cdkObject), + RdsConfigurationProperty { /** * The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that * is linked to your Amazon RDS database. @@ -1717,7 +1957,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.RdsFieldMappingProperty, - ) : CdkObject(cdkObject), RdsFieldMappingProperty { + ) : CdkObject(cdkObject), + RdsFieldMappingProperty { /** * The name of the field in which Amazon Bedrock stores metadata about the vector store. * @@ -2036,7 +2277,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.StorageConfigurationProperty, - ) : CdkObject(cdkObject), StorageConfigurationProperty { + ) : CdkObject(cdkObject), + StorageConfigurationProperty { /** * Contains the storage configuration of the knowledge base in Amazon OpenSearch Service. * @@ -2100,6 +2342,12 @@ public open class CfnKnowledgeBase( * VectorKnowledgeBaseConfigurationProperty vectorKnowledgeBaseConfigurationProperty = * VectorKnowledgeBaseConfigurationProperty.builder() * .embeddingModelArn("embeddingModelArn") + * // the properties below are optional + * .embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder() + * .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build()) + * .build()) * .build(); * ``` * @@ -2114,6 +2362,13 @@ public open class CfnKnowledgeBase( */ public fun embeddingModelArn(): String + /** + * The embeddings model configuration details for the vector model used in Knowledge Base. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelconfiguration) + */ + public fun embeddingModelConfiguration(): Any? = unwrap(this).getEmbeddingModelConfiguration() + /** * A builder for [VectorKnowledgeBaseConfigurationProperty] */ @@ -2124,6 +2379,28 @@ public open class CfnKnowledgeBase( * embeddings for the knowledge base. */ public fun embeddingModelArn(embeddingModelArn: String) + + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + public fun embeddingModelConfiguration(embeddingModelConfiguration: IResolvable) + + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + public + fun embeddingModelConfiguration(embeddingModelConfiguration: EmbeddingModelConfigurationProperty) + + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38170d9af7d2c9e074ba25342b9b34f11f5d34e34d36410e027a205a972027e6") + public + fun embeddingModelConfiguration(embeddingModelConfiguration: EmbeddingModelConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -2140,6 +2417,34 @@ public open class CfnKnowledgeBase( cdkBuilder.embeddingModelArn(embeddingModelArn) } + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + override fun embeddingModelConfiguration(embeddingModelConfiguration: IResolvable) { + cdkBuilder.embeddingModelConfiguration(embeddingModelConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + override + fun embeddingModelConfiguration(embeddingModelConfiguration: EmbeddingModelConfigurationProperty) { + cdkBuilder.embeddingModelConfiguration(embeddingModelConfiguration.let(EmbeddingModelConfigurationProperty.Companion::unwrap)) + } + + /** + * @param embeddingModelConfiguration The embeddings model configuration details for the + * vector model used in Knowledge Base. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38170d9af7d2c9e074ba25342b9b34f11f5d34e34d36410e027a205a972027e6") + override + fun embeddingModelConfiguration(embeddingModelConfiguration: EmbeddingModelConfigurationProperty.Builder.() -> Unit): + Unit = + embeddingModelConfiguration(EmbeddingModelConfigurationProperty(embeddingModelConfiguration)) + public fun build(): software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty = cdkBuilder.build() @@ -2147,7 +2452,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty, - ) : CdkObject(cdkObject), VectorKnowledgeBaseConfigurationProperty { + ) : CdkObject(cdkObject), + VectorKnowledgeBaseConfigurationProperty { /** * The Amazon Resource Name (ARN) of the model used to create vector embeddings for the * knowledge base. @@ -2155,6 +2461,14 @@ public open class CfnKnowledgeBase( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn) */ override fun embeddingModelArn(): String = unwrap(this).getEmbeddingModelArn() + + /** + * The embeddings model configuration details for the vector model used in Knowledge Base. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelconfiguration) + */ + override fun embeddingModelConfiguration(): Any? = + unwrap(this).getEmbeddingModelConfiguration() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBaseProps.kt index 9f56b9c889..64a340137d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnKnowledgeBaseProps.kt @@ -26,6 +26,12 @@ import kotlin.jvm.JvmName * .type("type") * .vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationProperty.builder() * .embeddingModelArn("embeddingModelArn") + * // the properties below are optional + * .embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder() + * .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() + * .dimensions(123) + * .build()) + * .build()) * .build()) * .build()) * .name("name") @@ -300,7 +306,8 @@ public interface CfnKnowledgeBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.CfnKnowledgeBaseProps, - ) : CdkObject(cdkObject), CfnKnowledgeBaseProps { + ) : CdkObject(cdkObject), + CfnKnowledgeBaseProps { /** * The description of the knowledge base. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPrompt.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPrompt.kt new file mode 100644 index 0000000000..d63bc1d956 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPrompt.kt @@ -0,0 +1,1595 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a prompt in your prompt library that you can add to a flow. + * + * For more information, see [Prompt management in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) , [Create a + * prompt using Prompt + * management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html) and + * [Prompt flows in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows.html) in + * the Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnPrompt cfnPrompt = CfnPrompt.Builder.create(this, "MyCfnPrompt") + * .name("name") + * // the properties below are optional + * .customerEncryptionKeyArn("customerEncryptionKeyArn") + * .defaultVariant("defaultVariant") + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .variants(List.of(PromptVariantProperty.builder() + * .name("name") + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .text("text") + * .textS3Location(TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .build()) + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html) + */ +public open class CfnPrompt( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPromptProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnPrompt(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnPromptProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPromptProps.Builder.() -> Unit, + ) : this(scope, id, CfnPromptProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version + * in the request). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The time at which the prompt was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The unique identifier of the prompt. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The time at which the prompt was last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * The version of the prompt that this summary applies to. + */ + public open fun attrVersion(): String = unwrap(this).getAttrVersion() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + */ + public open fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + */ + public open fun customerEncryptionKeyArn(`value`: String) { + unwrap(this).setCustomerEncryptionKeyArn(`value`) + } + + /** + * The name of the default variant for the prompt. + */ + public open fun defaultVariant(): String? = unwrap(this).getDefaultVariant() + + /** + * The name of the default variant for the prompt. + */ + public open fun defaultVariant(`value`: String) { + unwrap(this).setDefaultVariant(`value`) + } + + /** + * The description of the prompt. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the prompt. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the prompt. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the prompt. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Metadata that you can assign to a resource as key-value pairs. + * + * For more information, see the following resources:. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + */ + public open fun variants(): Any? = unwrap(this).getVariants() + + /** + * A list of objects, each containing details about a variant of the prompt. + */ + public open fun variants(`value`: IResolvable) { + unwrap(this).setVariants(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + */ + public open fun variants(`value`: List) { + unwrap(this).setVariants(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + */ + public open fun variants(vararg `value`: Any): Unit = variants(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnPrompt]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-customerencryptionkeyarn) + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the prompt + * is encrypted with. + */ + public fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) + + /** + * The name of the default variant for the prompt. + * + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-defaultvariant) + * @param defaultVariant The name of the default variant for the prompt. + */ + public fun defaultVariant(defaultVariant: String) + + /** + * The description of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-description) + * @param description The description of the prompt. + */ + public fun description(description: String) + + /** + * The name of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-name) + * @param name The name of the prompt. + */ + public fun name(name: String) + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + public fun tags(tags: Map) + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(variants: IResolvable) + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(variants: List) + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(vararg variants: Any) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnPrompt.Builder = + software.amazon.awscdk.services.bedrock.CfnPrompt.Builder.create(scope, id) + + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-customerencryptionkeyarn) + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the prompt + * is encrypted with. + */ + override fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) { + cdkBuilder.customerEncryptionKeyArn(customerEncryptionKeyArn) + } + + /** + * The name of the default variant for the prompt. + * + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-defaultvariant) + * @param defaultVariant The name of the default variant for the prompt. + */ + override fun defaultVariant(defaultVariant: String) { + cdkBuilder.defaultVariant(defaultVariant) + } + + /** + * The description of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-description) + * @param description The description of the prompt. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The name of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-name) + * @param name The name of the prompt. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-tags) + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(variants: IResolvable) { + cdkBuilder.variants(variants.let(IResolvable.Companion::unwrap)) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(variants: List) { + cdkBuilder.variants(variants.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(vararg variants: Any): Unit = variants(variants.toList()) + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPrompt = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnPrompt.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnPrompt { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnPrompt(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt): CfnPrompt = + CfnPrompt(cdkObject) + + internal fun unwrap(wrapped: CfnPrompt): software.amazon.awscdk.services.bedrock.CfnPrompt = + wrapped.cdkObject as software.amazon.awscdk.services.bedrock.CfnPrompt + } + + /** + * Contains inference configurations for the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = + * PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html) + */ + public interface PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html#cfn-bedrock-prompt-promptinferenceconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: PromptModelInferenceConfigurationProperty) + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ab599a4b78a1bf3e23ad8b9ea15d050ccc01528c07661c74cfa41231f8a3dedc") + public fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty.builder() + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: PromptModelInferenceConfigurationProperty) { + cdkBuilder.text(text.let(PromptModelInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ab599a4b78a1bf3e23ad8b9ea15d050ccc01528c07661c74cfa41231f8a3dedc") + override fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit): Unit = + text(PromptModelInferenceConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html#cfn-bedrock-prompt-promptinferenceconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty): + PromptInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInferenceConfigurationProperty + } + } + + /** + * Contains information about a variable in the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInputVariableProperty promptInputVariableProperty = PromptInputVariableProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinputvariable.html) + */ + public interface PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinputvariable.html#cfn-bedrock-prompt-promptinputvariable-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A builder for [PromptInputVariableProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the variable. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty.builder() + + /** + * @param name The name of the variable. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty, + ) : CdkObject(cdkObject), + PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinputvariable.html#cfn-bedrock-prompt-promptinputvariable-name) + */ + override fun name(): String? = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptInputVariableProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty): + PromptInputVariableProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInputVariableProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInputVariableProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptInputVariableProperty + } + } + + /** + * Contains inference configurations related to model inference for a prompt. + * + * For more information, see [Inference + * parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptModelInferenceConfigurationProperty promptModelInferenceConfigurationProperty = + * PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html) + */ + public interface PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-maxtokens) + */ + public fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-stopsequences) + */ + public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-temperature) + */ + public fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-topk) + */ + public fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-topp) + */ + public fun topP(): Number? = unwrap(this).getTopP() + + /** + * A builder for [PromptModelInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + public fun maxTokens(maxTokens: Number) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(stopSequences: List) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(vararg stopSequences: String) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + public fun temperature(temperature: Number) + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + public fun topK(topK: Number) + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + public fun topP(topP: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(stopSequences: List) { + cdkBuilder.stopSequences(stopSequences) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(vararg stopSequences: String): Unit = + stopSequences(stopSequences.toList()) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + override fun temperature(temperature: Number) { + cdkBuilder.temperature(temperature) + } + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + override fun topK(topK: Number) { + cdkBuilder.topK(topK) + } + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + override fun topP(topP: Number) { + cdkBuilder.topP(topP) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-maxtokens) + */ + override fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-stopsequences) + */ + override fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-temperature) + */ + override fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-topk) + */ + override fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-topp) + */ + override fun topP(): Number? = unwrap(this).getTopP() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptModelInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty): + PromptModelInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptModelInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptModelInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty + } + } + + /** + * Contains the message for a prompt. + * + * For more information, see [Prompt management in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptTemplateConfigurationProperty promptTemplateConfigurationProperty = + * PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .text("text") + * .textS3Location(TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html) + */ + public interface PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html#cfn-bedrock-prompt-prompttemplateconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: TextPromptTemplateConfigurationProperty) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("554107c324cc7377756d6996f21ba0e9883d0fe2fecc8d558b6268f3effb0fa1") + public fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty.builder() + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: TextPromptTemplateConfigurationProperty) { + cdkBuilder.text(text.let(TextPromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("554107c324cc7377756d6996f21ba0e9883d0fe2fecc8d558b6268f3effb0fa1") + override fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit): Unit = + text(TextPromptTemplateConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html#cfn-bedrock-prompt-prompttemplateconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty): + PromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptTemplateConfigurationProperty + } + } + + /** + * Contains details about a variant of the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptVariantProperty promptVariantProperty = PromptVariantProperty.builder() + * .name("name") + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .text("text") + * .textS3Location(TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html) + */ + public interface PromptVariantProperty { + /** + * Contains inference configurations for the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-inferenceconfiguration) + */ + public fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model with which to run inference on the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-modelid) + */ + public fun modelId(): String? = unwrap(this).getModelId() + + /** + * The name of the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-name) + */ + public fun name(): String + + /** + * Contains configurations for the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templateconfiguration) + */ + public fun templateConfiguration(): Any? = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templatetype) + */ + public fun templateType(): String + + /** + * A builder for [PromptVariantProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + public fun inferenceConfiguration(inferenceConfiguration: IResolvable) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("90dbe0e59146cb52dc591b153c5872cdeeb89cca8ca46eb283039cb48af6d817") + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit) + + /** + * @param modelId The unique identifier of the model with which to run inference on the + * prompt. + */ + public fun modelId(modelId: String) + + /** + * @param name The name of the prompt variant. + */ + public fun name(name: String) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + public fun templateConfiguration(templateConfiguration: IResolvable) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + public fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5758586513ea834b3c833df383cab1d46ccf68ff3294044c3168cd548c90393e") + public + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit) + + /** + * @param templateType The type of prompt template to use. + */ + public fun templateType(templateType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty.builder() + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + override fun inferenceConfiguration(inferenceConfiguration: IResolvable) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(PromptInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("90dbe0e59146cb52dc591b153c5872cdeeb89cca8ca46eb283039cb48af6d817") + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit): + Unit = + inferenceConfiguration(PromptInferenceConfigurationProperty(inferenceConfiguration)) + + /** + * @param modelId The unique identifier of the model with which to run inference on the + * prompt. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + /** + * @param name The name of the prompt variant. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + override fun templateConfiguration(templateConfiguration: IResolvable) { + cdkBuilder.templateConfiguration(templateConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) { + cdkBuilder.templateConfiguration(templateConfiguration.let(PromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5758586513ea834b3c833df383cab1d46ccf68ff3294044c3168cd548c90393e") + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit): + Unit = templateConfiguration(PromptTemplateConfigurationProperty(templateConfiguration)) + + /** + * @param templateType The type of prompt template to use. + */ + override fun templateType(templateType: String) { + cdkBuilder.templateType(templateType) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty, + ) : CdkObject(cdkObject), + PromptVariantProperty { + /** + * Contains inference configurations for the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-inferenceconfiguration) + */ + override fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model with which to run inference on the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-modelid) + */ + override fun modelId(): String? = unwrap(this).getModelId() + + /** + * The name of the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Contains configurations for the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templateconfiguration) + */ + override fun templateConfiguration(): Any? = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templatetype) + */ + override fun templateType(): String = unwrap(this).getTemplateType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptVariantProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty): + PromptVariantProperty = CdkObjectWrappers.wrap(cdkObject) as? PromptVariantProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptVariantProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.PromptVariantProperty + } + } + + /** + * Contains configurations for a text prompt template. + * + * To include a variable, enclose a word in double curly braces as in `{{variable}}` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TextPromptTemplateConfigurationProperty textPromptTemplateConfigurationProperty = + * TextPromptTemplateConfigurationProperty.builder() + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .text("text") + * .textS3Location(TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html) + */ + public interface TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-inputvariables) + */ + public fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-text) + */ + public fun text(): String? = unwrap(this).getText() + + /** + * The Amazon S3 location of the prompt text. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-texts3location) + */ + public fun textS3Location(): Any? = unwrap(this).getTextS3Location() + + /** + * A builder for [TextPromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: IResolvable) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: List) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(vararg inputVariables: Any) + + /** + * @param text The message for the prompt. + */ + public fun text(text: String) + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + public fun textS3Location(textS3Location: IResolvable) + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + public fun textS3Location(textS3Location: TextS3LocationProperty) + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("02427a56088d9207e758c07379af97595ff46441a363782bde2a8f9c67a84ce4") + public fun textS3Location(textS3Location: TextS3LocationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty.builder() + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: IResolvable) { + cdkBuilder.inputVariables(inputVariables.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: List) { + cdkBuilder.inputVariables(inputVariables.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(vararg inputVariables: Any): Unit = + inputVariables(inputVariables.toList()) + + /** + * @param text The message for the prompt. + */ + override fun text(text: String) { + cdkBuilder.text(text) + } + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + override fun textS3Location(textS3Location: IResolvable) { + cdkBuilder.textS3Location(textS3Location.let(IResolvable.Companion::unwrap)) + } + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + override fun textS3Location(textS3Location: TextS3LocationProperty) { + cdkBuilder.textS3Location(textS3Location.let(TextS3LocationProperty.Companion::unwrap)) + } + + /** + * @param textS3Location The Amazon S3 location of the prompt text. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("02427a56088d9207e758c07379af97595ff46441a363782bde2a8f9c67a84ce4") + override fun textS3Location(textS3Location: TextS3LocationProperty.Builder.() -> Unit): Unit = + textS3Location(TextS3LocationProperty(textS3Location)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-inputvariables) + */ + override fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-text) + */ + override fun text(): String? = unwrap(this).getText() + + /** + * The Amazon S3 location of the prompt text. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html#cfn-bedrock-prompt-textprompttemplateconfiguration-texts3location) + */ + override fun textS3Location(): Any? = unwrap(this).getTextS3Location() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TextPromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty): + TextPromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + TextPromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TextPromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty + } + } + + /** + * The Amazon S3 location of the prompt text. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TextS3LocationProperty textS3LocationProperty = TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html) + */ + public interface TextS3LocationProperty { + /** + * The Amazon S3 bucket containing the prompt text. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-bucket) + */ + public fun bucket(): String + + /** + * The object key for the Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-key) + */ + public fun key(): String + + /** + * The version of the Amazon S3 location to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-version) + */ + public fun version(): String? = unwrap(this).getVersion() + + /** + * A builder for [TextS3LocationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucket The Amazon S3 bucket containing the prompt text. + */ + public fun bucket(bucket: String) + + /** + * @param key The object key for the Amazon S3 location. + */ + public fun key(key: String) + + /** + * @param version The version of the Amazon S3 location to use. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty.builder() + + /** + * @param bucket The Amazon S3 bucket containing the prompt text. + */ + override fun bucket(bucket: String) { + cdkBuilder.bucket(bucket) + } + + /** + * @param key The object key for the Amazon S3 location. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param version The version of the Amazon S3 location to use. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty, + ) : CdkObject(cdkObject), + TextS3LocationProperty { + /** + * The Amazon S3 bucket containing the prompt text. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-bucket) + */ + override fun bucket(): String = unwrap(this).getBucket() + + /** + * The object key for the Amazon S3 location. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-key) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The version of the Amazon S3 location to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-version) + */ + override fun version(): String? = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TextS3LocationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty): + TextS3LocationProperty = CdkObjectWrappers.wrap(cdkObject) as? TextS3LocationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TextS3LocationProperty): + software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPrompt.TextS3LocationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptProps.kt new file mode 100644 index 0000000000..693ae08954 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptProps.kt @@ -0,0 +1,314 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnPrompt`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnPromptProps cfnPromptProps = CfnPromptProps.builder() + * .name("name") + * // the properties below are optional + * .customerEncryptionKeyArn("customerEncryptionKeyArn") + * .defaultVariant("defaultVariant") + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .variants(List.of(PromptVariantProperty.builder() + * .name("name") + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .text("text") + * .textS3Location(TextS3LocationProperty.builder() + * .bucket("bucket") + * .key("key") + * // the properties below are optional + * .version("version") + * .build()) + * .build()) + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html) + */ +public interface CfnPromptProps { + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-customerencryptionkeyarn) + */ + public fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The name of the default variant for the prompt. + * + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-defaultvariant) + */ + public fun defaultVariant(): String? = unwrap(this).getDefaultVariant() + + /** + * The description of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-name) + */ + public fun name(): String + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + */ + public fun variants(): Any? = unwrap(this).getVariants() + + /** + * A builder for [CfnPromptProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the prompt + * is encrypted with. + */ + public fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) + + /** + * @param defaultVariant The name of the default variant for the prompt. + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + */ + public fun defaultVariant(defaultVariant: String) + + /** + * @param description The description of the prompt. + */ + public fun description(description: String) + + /** + * @param name The name of the prompt. + */ + public fun name(name: String) + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + public fun tags(tags: Map) + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(variants: IResolvable) + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(variants: List) + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + public fun variants(vararg variants: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnPromptProps.Builder = + software.amazon.awscdk.services.bedrock.CfnPromptProps.builder() + + /** + * @param customerEncryptionKeyArn The Amazon Resource Name (ARN) of the KMS key that the prompt + * is encrypted with. + */ + override fun customerEncryptionKeyArn(customerEncryptionKeyArn: String) { + cdkBuilder.customerEncryptionKeyArn(customerEncryptionKeyArn) + } + + /** + * @param defaultVariant The name of the default variant for the prompt. + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + */ + override fun defaultVariant(defaultVariant: String) { + cdkBuilder.defaultVariant(defaultVariant) + } + + /** + * @param description The description of the prompt. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name The name of the prompt. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Metadata that you can assign to a resource as key-value pairs. For more + * information, see the following resources:. + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(variants: IResolvable) { + cdkBuilder.variants(variants.let(IResolvable.Companion::unwrap)) + } + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(variants: List) { + cdkBuilder.variants(variants.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param variants A list of objects, each containing details about a variant of the prompt. + */ + override fun variants(vararg variants: Any): Unit = variants(variants.toList()) + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPromptProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptProps, + ) : CdkObject(cdkObject), + CfnPromptProps { + /** + * The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-customerencryptionkeyarn) + */ + override fun customerEncryptionKeyArn(): String? = unwrap(this).getCustomerEncryptionKeyArn() + + /** + * The name of the default variant for the prompt. + * + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-defaultvariant) + */ + override fun defaultVariant(): String? = unwrap(this).getDefaultVariant() + + /** + * The description of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Metadata that you can assign to a resource as key-value pairs. For more information, see the + * following resources:. + * + * * [Tag naming limits and + * requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) + * * [Tagging best + * practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A list of objects, each containing details about a variant of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#cfn-bedrock-prompt-variants) + */ + override fun variants(): Any? = unwrap(this).getVariants() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnPromptProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptProps): + CfnPromptProps = CdkObjectWrappers.wrap(cdkObject) as? CfnPromptProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnPromptProps): + software.amazon.awscdk.services.bedrock.CfnPromptProps = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersion.kt new file mode 100644 index 0000000000..b178464114 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersion.kt @@ -0,0 +1,1223 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a static snapshot of your prompt that can be deployed to production. + * + * For more information, see [Deploy prompts using Prompt management by creating + * versions](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html) in the + * Amazon Bedrock User Guide. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnPromptVersion cfnPromptVersion = CfnPromptVersion.Builder.create(this, "MyCfnPromptVersion") + * .promptArn("promptArn") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html) + */ +public open class CfnPromptVersion( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPromptVersionProps, + ) : + this(software.amazon.awscdk.services.bedrock.CfnPromptVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnPromptVersionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPromptVersionProps.Builder.() -> Unit, + ) : this(scope, id, CfnPromptVersionProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version + * in the request). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The time at which the prompt was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * A KMS key ARN. + */ + public open fun attrCustomerEncryptionKeyArn(): String = + unwrap(this).getAttrCustomerEncryptionKeyArn() + + /** + * The name of the default variant for the prompt. + * + * This value must match the `name` field in the relevant + * [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + * object. + */ + public open fun attrDefaultVariant(): String = unwrap(this).getAttrDefaultVariant() + + /** + * The name of the prompt. + */ + public open fun attrName(): String = unwrap(this).getAttrName() + + /** + * The unique identifier of the prompt. + */ + public open fun attrPromptId(): String = unwrap(this).getAttrPromptId() + + /** + * The time at which the prompt was last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * A list of objects, each containing details about a variant of the prompt. + */ + public open fun attrVariants(): IResolvable = + unwrap(this).getAttrVariants().let(IResolvable::wrap) + + /** + * The version of the prompt that this summary applies to. + */ + public open fun attrVersion(): String = unwrap(this).getAttrVersion() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the prompt version. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the prompt version. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + */ + public open fun promptArn(): String = unwrap(this).getPromptArn() + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + */ + public open fun promptArn(`value`: String) { + unwrap(this).setPromptArn(`value`) + } + + /** + * A map of tag keys and values. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A map of tag keys and values. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.bedrock.CfnPromptVersion]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the prompt version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-description) + * @param description The description of the prompt version. + */ + public fun description(description: String) + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-promptarn) + * @param promptArn The Amazon Resource Name (ARN) of the version of the prompt. + */ + public fun promptArn(promptArn: String) + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags) + * @param tags A map of tag keys and values. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnPromptVersion.Builder = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.Builder.create(scope, id) + + /** + * The description of the prompt version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-description) + * @param description The description of the prompt version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-promptarn) + * @param promptArn The Amazon Resource Name (ARN) of the version of the prompt. + */ + override fun promptArn(promptArn: String) { + cdkBuilder.promptArn(promptArn) + } + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags) + * @param tags A map of tag keys and values. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPromptVersion = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnPromptVersion { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnPromptVersion(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion): + CfnPromptVersion = CfnPromptVersion(cdkObject) + + internal fun unwrap(wrapped: CfnPromptVersion): + software.amazon.awscdk.services.bedrock.CfnPromptVersion = wrapped.cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion + } + + /** + * Contains inference configurations for the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = + * PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinferenceconfiguration.html) + */ + public interface PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinferenceconfiguration.html#cfn-bedrock-promptversion-promptinferenceconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains inference configurations for a text prompt. + */ + public fun text(text: PromptModelInferenceConfigurationProperty) + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1eb3a70c9d2984900cb6bee00162680f72f000cb6a9d54b041db25acab42fa13") + public fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty.builder() + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + override fun text(text: PromptModelInferenceConfigurationProperty) { + cdkBuilder.text(text.let(PromptModelInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains inference configurations for a text prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1eb3a70c9d2984900cb6bee00162680f72f000cb6a9d54b041db25acab42fa13") + override fun text(text: PromptModelInferenceConfigurationProperty.Builder.() -> Unit): Unit = + text(PromptModelInferenceConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptInferenceConfigurationProperty { + /** + * Contains inference configurations for a text prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinferenceconfiguration.html#cfn-bedrock-promptversion-promptinferenceconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty): + PromptInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty + } + } + + /** + * Contains information about a variable in the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptInputVariableProperty promptInputVariableProperty = PromptInputVariableProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinputvariable.html) + */ + public interface PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinputvariable.html#cfn-bedrock-promptversion-promptinputvariable-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A builder for [PromptInputVariableProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the variable. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty.builder() + + /** + * @param name The name of the variable. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty, + ) : CdkObject(cdkObject), + PromptInputVariableProperty { + /** + * The name of the variable. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinputvariable.html#cfn-bedrock-promptversion-promptinputvariable-name) + */ + override fun name(): String? = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptInputVariableProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty): + PromptInputVariableProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptInputVariableProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptInputVariableProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptInputVariableProperty + } + } + + /** + * Contains inference configurations related to model inference for a prompt. + * + * For more information, see [Inference + * parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-parameters.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptModelInferenceConfigurationProperty promptModelInferenceConfigurationProperty = + * PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html) + */ + public interface PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-maxtokens) + */ + public fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-stopsequences) + */ + public fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-temperature) + */ + public fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-topk) + */ + public fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-topp) + */ + public fun topP(): Number? = unwrap(this).getTopP() + + /** + * A builder for [PromptModelInferenceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + public fun maxTokens(maxTokens: Number) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(stopSequences: List) + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + public fun stopSequences(vararg stopSequences: String) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + public fun temperature(temperature: Number) + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + public fun topK(topK: Number) + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + public fun topP(topP: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty.builder() + + /** + * @param maxTokens The maximum number of tokens to return in the response. + */ + override fun maxTokens(maxTokens: Number) { + cdkBuilder.maxTokens(maxTokens) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(stopSequences: List) { + cdkBuilder.stopSequences(stopSequences) + } + + /** + * @param stopSequences A list of strings that define sequences after which the model will + * stop generating. + */ + override fun stopSequences(vararg stopSequences: String): Unit = + stopSequences(stopSequences.toList()) + + /** + * @param temperature Controls the randomness of the response. + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + */ + override fun temperature(temperature: Number) { + cdkBuilder.temperature(temperature) + } + + /** + * @param topK The number of most-likely candidates that the model considers for the next + * token during generation. + */ + override fun topK(topK: Number) { + cdkBuilder.topK(topK) + } + + /** + * @param topP The percentage of most-likely candidates that the model considers for the next + * token. + */ + override fun topP(topP: Number) { + cdkBuilder.topP(topP) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty, + ) : CdkObject(cdkObject), + PromptModelInferenceConfigurationProperty { + /** + * The maximum number of tokens to return in the response. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-maxtokens) + */ + override fun maxTokens(): Number? = unwrap(this).getMaxTokens() + + /** + * A list of strings that define sequences after which the model will stop generating. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-stopsequences) + */ + override fun stopSequences(): List = unwrap(this).getStopSequences() ?: emptyList() + + /** + * Controls the randomness of the response. + * + * Choose a lower value for more predictable outputs and a higher value for more surprising + * outputs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-temperature) + */ + override fun temperature(): Number? = unwrap(this).getTemperature() + + /** + * The number of most-likely candidates that the model considers for the next token during + * generation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-topk) + */ + override fun topK(): Number? = unwrap(this).getTopK() + + /** + * The percentage of most-likely candidates that the model considers for the next token. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-topp) + */ + override fun topP(): Number? = unwrap(this).getTopP() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptModelInferenceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty): + PromptModelInferenceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptModelInferenceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptModelInferenceConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty + } + } + + /** + * Contains the message for a prompt. + * + * For more information, see [Prompt management in Amazon + * Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptTemplateConfigurationProperty promptTemplateConfigurationProperty = + * PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-prompttemplateconfiguration.html) + */ + public interface PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-prompttemplateconfiguration.html#cfn-bedrock-promptversion-prompttemplateconfiguration-text) + */ + public fun text(): Any + + /** + * A builder for [PromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: IResolvable) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + public fun text(text: TextPromptTemplateConfigurationProperty) + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5372db2b1583522d3cfbd1721ee81551b34949523229af53be68a69b3267d3ae") + public fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty.builder() + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: IResolvable) { + cdkBuilder.text(text.let(IResolvable.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + override fun text(text: TextPromptTemplateConfigurationProperty) { + cdkBuilder.text(text.let(TextPromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param text Contains configurations for the text in a message for a prompt. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5372db2b1583522d3cfbd1721ee81551b34949523229af53be68a69b3267d3ae") + override fun text(text: TextPromptTemplateConfigurationProperty.Builder.() -> Unit): Unit = + text(TextPromptTemplateConfigurationProperty(text)) + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + PromptTemplateConfigurationProperty { + /** + * Contains configurations for the text in a message for a prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-prompttemplateconfiguration.html#cfn-bedrock-promptversion-prompttemplateconfiguration-text) + */ + override fun text(): Any = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty): + PromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty + } + } + + /** + * Contains details about a variant of the prompt. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * PromptVariantProperty promptVariantProperty = PromptVariantProperty.builder() + * .name("name") + * .templateType("templateType") + * // the properties below are optional + * .inferenceConfiguration(PromptInferenceConfigurationProperty.builder() + * .text(PromptModelInferenceConfigurationProperty.builder() + * .maxTokens(123) + * .stopSequences(List.of("stopSequences")) + * .temperature(123) + * .topK(123) + * .topP(123) + * .build()) + * .build()) + * .modelId("modelId") + * .templateConfiguration(PromptTemplateConfigurationProperty.builder() + * .text(TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html) + */ + public interface PromptVariantProperty { + /** + * Contains inference configurations for the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-inferenceconfiguration) + */ + public fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model with which to run inference on the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-modelid) + */ + public fun modelId(): String? = unwrap(this).getModelId() + + /** + * The name of the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-name) + */ + public fun name(): String + + /** + * Contains configurations for the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templateconfiguration) + */ + public fun templateConfiguration(): Any? = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templatetype) + */ + public fun templateType(): String + + /** + * A builder for [PromptVariantProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + public fun inferenceConfiguration(inferenceConfiguration: IResolvable) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e958ca8723d42817e5bf41dd33f11961f16f53ad6632b4cef4e9561900dc9187") + public + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit) + + /** + * @param modelId The unique identifier of the model with which to run inference on the + * prompt. + */ + public fun modelId(modelId: String) + + /** + * @param name The name of the prompt variant. + */ + public fun name(name: String) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + public fun templateConfiguration(templateConfiguration: IResolvable) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + public fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fd43c246455bc988caccf0f0c2809d2caf1170f715eb08f94e6fea0e78046a9f") + public + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit) + + /** + * @param templateType The type of prompt template to use. + */ + public fun templateType(templateType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty.Builder = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty.builder() + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + override fun inferenceConfiguration(inferenceConfiguration: IResolvable) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty) { + cdkBuilder.inferenceConfiguration(inferenceConfiguration.let(PromptInferenceConfigurationProperty.Companion::unwrap)) + } + + /** + * @param inferenceConfiguration Contains inference configurations for the prompt variant. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e958ca8723d42817e5bf41dd33f11961f16f53ad6632b4cef4e9561900dc9187") + override + fun inferenceConfiguration(inferenceConfiguration: PromptInferenceConfigurationProperty.Builder.() -> Unit): + Unit = + inferenceConfiguration(PromptInferenceConfigurationProperty(inferenceConfiguration)) + + /** + * @param modelId The unique identifier of the model with which to run inference on the + * prompt. + */ + override fun modelId(modelId: String) { + cdkBuilder.modelId(modelId) + } + + /** + * @param name The name of the prompt variant. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + override fun templateConfiguration(templateConfiguration: IResolvable) { + cdkBuilder.templateConfiguration(templateConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty) { + cdkBuilder.templateConfiguration(templateConfiguration.let(PromptTemplateConfigurationProperty.Companion::unwrap)) + } + + /** + * @param templateConfiguration Contains configurations for the prompt template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fd43c246455bc988caccf0f0c2809d2caf1170f715eb08f94e6fea0e78046a9f") + override + fun templateConfiguration(templateConfiguration: PromptTemplateConfigurationProperty.Builder.() -> Unit): + Unit = templateConfiguration(PromptTemplateConfigurationProperty(templateConfiguration)) + + /** + * @param templateType The type of prompt template to use. + */ + override fun templateType(templateType: String) { + cdkBuilder.templateType(templateType) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty, + ) : CdkObject(cdkObject), + PromptVariantProperty { + /** + * Contains inference configurations for the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-inferenceconfiguration) + */ + override fun inferenceConfiguration(): Any? = unwrap(this).getInferenceConfiguration() + + /** + * The unique identifier of the model with which to run inference on the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-modelid) + */ + override fun modelId(): String? = unwrap(this).getModelId() + + /** + * The name of the prompt variant. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Contains configurations for the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templateconfiguration) + */ + override fun templateConfiguration(): Any? = unwrap(this).getTemplateConfiguration() + + /** + * The type of prompt template to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templatetype) + */ + override fun templateType(): String = unwrap(this).getTemplateType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PromptVariantProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty): + PromptVariantProperty = CdkObjectWrappers.wrap(cdkObject) as? PromptVariantProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PromptVariantProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty + } + } + + /** + * Contains configurations for a text prompt template. + * + * To include a variable, enclose a word in double curly braces as in `{{variable}}` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * TextPromptTemplateConfigurationProperty textPromptTemplateConfigurationProperty = + * TextPromptTemplateConfigurationProperty.builder() + * .text("text") + * // the properties below are optional + * .inputVariables(List.of(PromptInputVariableProperty.builder() + * .name("name") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html) + */ + public interface TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-inputvariables) + */ + public fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-text) + */ + public fun text(): String + + /** + * A builder for [TextPromptTemplateConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: IResolvable) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(inputVariables: List) + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + public fun inputVariables(vararg inputVariables: Any) + + /** + * @param text The message for the prompt. + */ + public fun text(text: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty.Builder + = + software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty.builder() + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: IResolvable) { + cdkBuilder.inputVariables(inputVariables.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(inputVariables: List) { + cdkBuilder.inputVariables(inputVariables.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputVariables An array of the variables in the prompt template. + */ + override fun inputVariables(vararg inputVariables: Any): Unit = + inputVariables(inputVariables.toList()) + + /** + * @param text The message for the prompt. + */ + override fun text(text: String) { + cdkBuilder.text(text) + } + + public fun build(): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty, + ) : CdkObject(cdkObject), + TextPromptTemplateConfigurationProperty { + /** + * An array of the variables in the prompt template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-inputvariables) + */ + override fun inputVariables(): Any? = unwrap(this).getInputVariables() + + /** + * The message for the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html#cfn-bedrock-promptversion-textprompttemplateconfiguration-text) + */ + override fun text(): String = unwrap(this).getText() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TextPromptTemplateConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty): + TextPromptTemplateConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + TextPromptTemplateConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TextPromptTemplateConfigurationProperty): + software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersionProps.kt new file mode 100644 index 0000000000..b459152a42 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnPromptVersionProps.kt @@ -0,0 +1,144 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.bedrock + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnPromptVersion`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * CfnPromptVersionProps cfnPromptVersionProps = CfnPromptVersionProps.builder() + * .promptArn("promptArn") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html) + */ +public interface CfnPromptVersionProps { + /** + * The description of the prompt version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-promptarn) + */ + public fun promptArn(): String + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnPromptVersionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the prompt version. + */ + public fun description(description: String) + + /** + * @param promptArn The Amazon Resource Name (ARN) of the version of the prompt. + */ + public fun promptArn(promptArn: String) + + /** + * @param tags A map of tag keys and values. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.bedrock.CfnPromptVersionProps.Builder = + software.amazon.awscdk.services.bedrock.CfnPromptVersionProps.builder() + + /** + * @param description The description of the prompt version. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param promptArn The Amazon Resource Name (ARN) of the version of the prompt. + */ + override fun promptArn(promptArn: String) { + cdkBuilder.promptArn(promptArn) + } + + /** + * @param tags A map of tag keys and values. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.bedrock.CfnPromptVersionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersionProps, + ) : CdkObject(cdkObject), + CfnPromptVersionProps { + /** + * The description of the prompt version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon Resource Name (ARN) of the version of the prompt. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-promptarn) + */ + override fun promptArn(): String = unwrap(this).getPromptArn() + + /** + * A map of tag keys and values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnPromptVersionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.CfnPromptVersionProps): + CfnPromptVersionProps = CdkObjectWrappers.wrap(cdkObject) as? CfnPromptVersionProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnPromptVersionProps): + software.amazon.awscdk.services.bedrock.CfnPromptVersionProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.bedrock.CfnPromptVersionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModel.kt index b6c6524617..9e5e58d6df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModel.kt @@ -13,15 +13,21 @@ import kotlin.String * * ``` * import io.cloudshiftdev.awscdk.services.bedrock.*; - * FoundationModel.fromFoundationModelId(this, "Model", - * FoundationModelIdentifier.ANTHROPIC_CLAUDE_V2); + * FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", + * FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); + * BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model") + * .model(model) + * .input(BedrockInvokeModelInputProps.builder().s3InputUri(JsonPath.stringAt("$.prompt")).build()) + * .output(BedrockInvokeModelOutputProps.builder().s3OutputUri(JsonPath.stringAt("$.prompt")).build()) + * .build(); * ``` * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html) */ public open class FoundationModel( cdkObject: software.amazon.awscdk.services.bedrock.FoundationModel, -) : CdkObject(cdkObject), IModel { +) : CdkObject(cdkObject), + IModel { /** * The foundation model ARN. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModelIdentifier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModelIdentifier.kt index 2f7049d23e..bee65797e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModelIdentifier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/FoundationModelIdentifier.kt @@ -12,8 +12,13 @@ import kotlin.String * * ``` * import io.cloudshiftdev.awscdk.services.bedrock.*; - * FoundationModel.fromFoundationModelId(this, "Model", - * FoundationModelIdentifier.ANTHROPIC_CLAUDE_V2); + * FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", + * FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); + * BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model") + * .model(model) + * .input(BedrockInvokeModelInputProps.builder().s3InputUri(JsonPath.stringAt("$.prompt")).build()) + * .output(BedrockInvokeModelOutputProps.builder().s3OutputUri(JsonPath.stringAt("$.prompt")).build()) + * .build(); * ``` * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html) @@ -34,6 +39,9 @@ public open class FoundationModelIdentifier( public val AI21_J2_GRANDE_INSTRUCT: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AI21_J2_GRANDE_INSTRUCT) + public val AI21_J2_JAMBA_INSTRUCT_V1_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AI21_J2_JAMBA_INSTRUCT_V1_0) + public val AI21_J2_JUMBO_INSTRUCT: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AI21_J2_JUMBO_INSTRUCT) @@ -49,6 +57,9 @@ public open class FoundationModelIdentifier( public val AI21_LABS_JURASSIC_2_ULTRA_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AI21_LABS_JURASSIC_2_ULTRA_V1) + public val AI21_LABS_JURASSIC_2_ULTRA_V1_0_8_K: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AI21_LABS_JURASSIC_2_ULTRA_V1_0_8_K) + public val AMAZON_TITAN_EMBED_G1_TEXT_02: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_EMBED_G1_TEXT_02) @@ -58,6 +69,12 @@ public open class FoundationModelIdentifier( public val AMAZON_TITAN_EMBED_TEXT_V1_2_8_K: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_EMBED_TEXT_V1_2_8_K) + public val AMAZON_TITAN_EMBED_TEXT_V2_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_EMBED_TEXT_V2_0) + + public val AMAZON_TITAN_EMBED_TEXT_V2_0_8_K: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_EMBED_TEXT_V2_0_8_K) + public val AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1) @@ -67,6 +84,9 @@ public open class FoundationModelIdentifier( public val AMAZON_TITAN_IMAGE_GENERATOR_V1_0: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_IMAGE_GENERATOR_V1_0) + public val AMAZON_TITAN_IMAGE_GENERATOR_V2_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_IMAGE_GENERATOR_V2_0) + public val AMAZON_TITAN_MULTIMODAL_EMBEDDINGS_G1_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_MULTIMODAL_EMBEDDINGS_G1_V1) @@ -76,15 +96,24 @@ public open class FoundationModelIdentifier( public val AMAZON_TITAN_TEXT_G1_EXPRESS_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1) + public val AMAZON_TITAN_TEXT_G1_LITE_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_LITE_V1) + public val AMAZON_TITAN_TEXT_LITE_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_LITE_V1) public val AMAZON_TITAN_TEXT_LITE_V1_0_4_K: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_LITE_V1_0_4_K) + public val AMAZON_TITAN_TEXT_PREMIER_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_PREMIER_V1) + public val AMAZON_TITAN_TG1_LARGE: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.AMAZON_TITAN_TG1_LARGE) + public val ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0) + public val ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0) @@ -139,6 +168,12 @@ public open class FoundationModelIdentifier( public val COHERE_COMMAND_LIGHT_V14: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_COMMAND_LIGHT_V14) + public val COHERE_COMMAND_R_PLUS_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_COMMAND_R_PLUS_V1) + + public val COHERE_COMMAND_R_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_COMMAND_R_V1) + public val COHERE_COMMAND_TEXT_V14_7_4_K: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_COMMAND_TEXT_V14_7_4_K) @@ -148,9 +183,15 @@ public open class FoundationModelIdentifier( public val COHERE_EMBED_ENGLISH_V3: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_EMBED_ENGLISH_V3) + public val COHERE_EMBED_ENGLISH_V3_0_512: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_EMBED_ENGLISH_V3_0_512) + public val COHERE_EMBED_MULTILINGUAL_V3: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_EMBED_MULTILINGUAL_V3) + public val COHERE_EMBED_MULTILINGUAL_V3_0_512: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.COHERE_EMBED_MULTILINGUAL_V3_0_512) + public val META_LLAMA_2_13_B_CHAT_V1_0_4_K: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_2_13_B_CHAT_V1_0_4_K) @@ -175,12 +216,39 @@ public open class FoundationModelIdentifier( public val META_LLAMA_2_CHAT_70_B_V1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_2_CHAT_70_B_V1) + public val META_LLAMA_3_1_405_INSTRUCT_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_3_1_405_INSTRUCT_V1) + + public val META_LLAMA_3_1_70_INSTRUCT_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_3_1_70_INSTRUCT_V1) + + public val META_LLAMA_3_1_8_B_INSTRUCT_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_3_1_8_B_INSTRUCT_V1) + + public val META_LLAMA_3_70_INSTRUCT_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_3_70_INSTRUCT_V1) + + public val META_LLAMA_3_8_B_INSTRUCT_V1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.META_LLAMA_3_8_B_INSTRUCT_V1) + + public val MISTRAL_LARGE_2_V0_1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.MISTRAL_LARGE_2_V0_1) + + public val MISTRAL_LARGE_V0_1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.MISTRAL_LARGE_V0_1) + public val MISTRAL_MISTRAL_7_B_INSTRUCT_V0_2: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.MISTRAL_MISTRAL_7_B_INSTRUCT_V0_2) public val MISTRAL_MIXTRAL_8_X7_B_INSTRUCT_V0_1: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.MISTRAL_MIXTRAL_8_X7_B_INSTRUCT_V0_1) + public val MISTRAL_SMALL_V0_1: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.MISTRAL_SMALL_V0_1) + + public val STABILITY_SD3_LARGE_V1_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.STABILITY_SD3_LARGE_V1_0) + public val STABILITY_STABLE_DIFFUSION_XL: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.STABILITY_STABLE_DIFFUSION_XL) @@ -193,6 +261,12 @@ public open class FoundationModelIdentifier( public val STABILITY_STABLE_DIFFUSION_XL_V1_0: FoundationModelIdentifier = FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.STABILITY_STABLE_DIFFUSION_XL_V1_0) + public val STABILITY_STABLE_IMAGE_CORE_V1_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.STABILITY_STABLE_IMAGE_CORE_V1_0) + + public val STABILITY_STABLE_IMAGE_ULTRA_V1_0: FoundationModelIdentifier = + FoundationModelIdentifier.wrap(software.amazon.awscdk.services.bedrock.FoundationModelIdentifier.STABILITY_STABLE_IMAGE_ULTRA_V1_0) + internal fun wrap(cdkObject: software.amazon.awscdk.services.bedrock.FoundationModelIdentifier): FoundationModelIdentifier = FoundationModelIdentifier(cdkObject) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/IModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/IModel.kt index 66c122337b..d379379d61 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/IModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/IModel.kt @@ -21,7 +21,8 @@ public interface IModel { private class Wrapper( cdkObject: software.amazon.awscdk.services.bedrock.IModel, - ) : CdkObject(cdkObject), IModel { + ) : CdkObject(cdkObject), + IModel { /** * The ARN of the model. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/ProvisionedModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/ProvisionedModel.kt index a06f5a0958..090e7d8856 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/ProvisionedModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/ProvisionedModel.kt @@ -26,7 +26,8 @@ import kotlin.String */ public open class ProvisionedModel( cdkObject: software.amazon.awscdk.services.bedrock.ProvisionedModel, -) : CdkObject(cdkObject), IModel { +) : CdkObject(cdkObject), + IModel { /** * The ARN of the provisioned model. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroup.kt index b491911069..c1b25bbd13 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroup.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBillingGroup( cdkObject: software.amazon.awscdk.services.billingconductor.CfnBillingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -614,7 +616,8 @@ public open class CfnBillingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnBillingGroup.AccountGroupingProperty, - ) : CdkObject(cdkObject), AccountGroupingProperty { + ) : CdkObject(cdkObject), + AccountGroupingProperty { /** * Specifies if this billing group will automatically associate newly added AWS accounts that * join your consolidated billing family. @@ -711,7 +714,8 @@ public open class CfnBillingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnBillingGroup.ComputationPreferenceProperty, - ) : CdkObject(cdkObject), ComputationPreferenceProperty { + ) : CdkObject(cdkObject), + ComputationPreferenceProperty { /** * The Amazon Resource Name (ARN) of the pricing plan used to compute the AWS charges for a * billing group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroupProps.kt index a03a1c3fe5..5db2880d50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnBillingGroupProps.kt @@ -261,7 +261,8 @@ public interface CfnBillingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnBillingGroupProps, - ) : CdkObject(cdkObject), CfnBillingGroupProps { + ) : CdkObject(cdkObject), + CfnBillingGroupProps { /** * The set of accounts that will be under the billing group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItem.kt index a6bfd6181a..a145c0d02f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItem.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomLineItem( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -633,7 +635,8 @@ public open class CfnCustomLineItem( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.BillingPeriodRangeProperty, - ) : CdkObject(cdkObject), BillingPeriodRangeProperty { + ) : CdkObject(cdkObject), + BillingPeriodRangeProperty { /** * The exclusive end billing period that defines a billing period range where a custom line is * applied. @@ -895,7 +898,8 @@ public open class CfnCustomLineItem( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.CustomLineItemChargeDetailsProperty, - ) : CdkObject(cdkObject), CustomLineItemChargeDetailsProperty { + ) : CdkObject(cdkObject), + CustomLineItemChargeDetailsProperty { /** * A `CustomLineItemFlatChargeDetails` that describes the charge details of a flat custom line * item. @@ -1004,7 +1008,8 @@ public open class CfnCustomLineItem( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty, - ) : CdkObject(cdkObject), CustomLineItemFlatChargeDetailsProperty { + ) : CdkObject(cdkObject), + CustomLineItemFlatChargeDetailsProperty { /** * The custom line item's fixed charge value in USD. * @@ -1132,7 +1137,8 @@ public open class CfnCustomLineItem( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty, - ) : CdkObject(cdkObject), CustomLineItemPercentageChargeDetailsProperty { + ) : CdkObject(cdkObject), + CustomLineItemPercentageChargeDetailsProperty { /** * A list of resource ARNs to associate to the percentage custom line item. * @@ -1302,7 +1308,8 @@ public open class CfnCustomLineItem( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.LineItemFilterProperty, - ) : CdkObject(cdkObject), LineItemFilterProperty { + ) : CdkObject(cdkObject), + LineItemFilterProperty { /** * The attribute of the line item filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItemProps.kt index e9faee2473..b096824141 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnCustomLineItemProps.kt @@ -300,7 +300,8 @@ public interface CfnCustomLineItemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnCustomLineItemProps, - ) : CdkObject(cdkObject), CfnCustomLineItemProps { + ) : CdkObject(cdkObject), + CfnCustomLineItemProps { /** * The AWS account in which this custom line item will be applied to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlan.kt index 6f89dc8ba6..16e1420d1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlan.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPricingPlan( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingPlan, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlanProps.kt index bf7ff5ab41..b133141162 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingPlanProps.kt @@ -148,7 +148,8 @@ public interface CfnPricingPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingPlanProps, - ) : CdkObject(cdkObject), CfnPricingPlanProps { + ) : CdkObject(cdkObject), + CfnPricingPlanProps { /** * The pricing plan description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRule.kt index b7101e4e73..b679bc4406 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRule.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPricingRule( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -652,7 +654,8 @@ public open class CfnPricingRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingRule.FreeTierProperty, - ) : CdkObject(cdkObject), FreeTierProperty { + ) : CdkObject(cdkObject), + FreeTierProperty { /** * Activate or deactivate AWS Free Tier. * @@ -762,7 +765,8 @@ public open class CfnPricingRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingRule.TieringProperty, - ) : CdkObject(cdkObject), TieringProperty { + ) : CdkObject(cdkObject), + TieringProperty { /** * The possible AWS Free Tier configurations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRuleProps.kt index 154f15dcf5..ac01c1f90e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/billingconductor/CfnPricingRuleProps.kt @@ -339,7 +339,8 @@ public interface CfnPricingRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.billingconductor.CfnPricingRuleProps, - ) : CdkObject(cdkObject), CfnPricingRuleProps { + ) : CdkObject(cdkObject), + CfnPricingRuleProps { /** * The seller of services provided by AWS , their affiliates, or third-party providers selling * services via AWS Marketplace . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudget.kt index 42d1b98a06..35a2aea09a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudget.kt @@ -87,6 +87,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .subscriptionType("subscriptionType") * .build())) * .build())) + * .resourceTags(List.of(ResourceTagProperty.builder() + * .key("key") + * // the properties below are optional + * .value("value") + * .build())) * .build(); * ``` * @@ -94,7 +99,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBudget( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -178,6 +184,30 @@ public open class CfnBudget( public open fun notificationsWithSubscribers(vararg `value`: Any): Unit = notificationsWithSubscribers(`value`.toList()) + /** + * An optional list of tags to associate with the specified budget. + */ + public open fun resourceTags(): Any? = unwrap(this).getResourceTags() + + /** + * An optional list of tags to associate with the specified budget. + */ + public open fun resourceTags(`value`: IResolvable) { + unwrap(this).setResourceTags(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An optional list of tags to associate with the specified budget. + */ + public open fun resourceTags(`value`: List) { + unwrap(this).setResourceTags(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An optional list of tags to associate with the specified budget. + */ + public open fun resourceTags(vararg `value`: Any): Unit = resourceTags(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.budgets.CfnBudget]. */ @@ -244,6 +274,36 @@ public open class CfnBudget( * @param notificationsWithSubscribers A notification that you want to associate with a budget. */ public fun notificationsWithSubscribers(vararg notificationsWithSubscribers: Any) + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + public fun resourceTags(resourceTags: IResolvable) + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + public fun resourceTags(resourceTags: List) + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + public fun resourceTags(vararg resourceTags: Any) } private class BuilderImpl( @@ -325,6 +385,40 @@ public open class CfnBudget( override fun notificationsWithSubscribers(vararg notificationsWithSubscribers: Any): Unit = notificationsWithSubscribers(notificationsWithSubscribers.toList()) + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + override fun resourceTags(resourceTags: IResolvable) { + cdkBuilder.resourceTags(resourceTags.let(IResolvable.Companion::unwrap)) + } + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + override fun resourceTags(resourceTags: List) { + cdkBuilder.resourceTags(resourceTags.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget. + */ + override fun resourceTags(vararg resourceTags: Any): Unit = resourceTags(resourceTags.toList()) + public fun build(): software.amazon.awscdk.services.budgets.CfnBudget = cdkBuilder.build() } @@ -462,7 +556,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.AutoAdjustDataProperty, - ) : CdkObject(cdkObject), AutoAdjustDataProperty { + ) : CdkObject(cdkObject), + AutoAdjustDataProperty { /** * The string that defines whether your budget auto-adjusts based on historical or forecasted * data. @@ -1125,7 +1220,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.BudgetDataProperty, - ) : CdkObject(cdkObject), BudgetDataProperty { + ) : CdkObject(cdkObject), + BudgetDataProperty { /** * Determine the budget amount for an auto-adjusting budget. * @@ -1737,7 +1833,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.CostTypesProperty, - ) : CdkObject(cdkObject), CostTypesProperty { + ) : CdkObject(cdkObject), + CostTypesProperty { /** * Specifies whether a budget includes credits. * @@ -1933,7 +2030,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.HistoricalOptionsProperty, - ) : CdkObject(cdkObject), HistoricalOptionsProperty { + ) : CdkObject(cdkObject), + HistoricalOptionsProperty { /** * The number of budget periods included in the moving-average calculation that determines * your auto-adjusted budget amount. @@ -2122,7 +2220,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.NotificationProperty, - ) : CdkObject(cdkObject), NotificationProperty { + ) : CdkObject(cdkObject), + NotificationProperty { /** * The comparison that's used for this notification. * @@ -2318,7 +2417,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.NotificationWithSubscribersProperty, - ) : CdkObject(cdkObject), NotificationWithSubscribersProperty { + ) : CdkObject(cdkObject), + NotificationWithSubscribersProperty { /** * The notification that's associated with a budget. * @@ -2353,6 +2453,115 @@ public open class CfnBudget( } } + /** + * The tag structure that contains a tag key and value. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.budgets.*; + * ResourceTagProperty resourceTagProperty = ResourceTagProperty.builder() + * .key("key") + * // the properties below are optional + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-resourcetag.html) + */ + public interface ResourceTagProperty { + /** + * The key that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-resourcetag.html#cfn-budgets-budget-resourcetag-key) + */ + public fun key(): String + + /** + * The value that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-resourcetag.html#cfn-budgets-budget-resourcetag-value) + */ + public fun `value`(): String? = unwrap(this).getValue() + + /** + * A builder for [ResourceTagProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key The key that's associated with the tag. + */ + public fun key(key: String) + + /** + * @param value The value that's associated with the tag. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty.Builder = + software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty.builder() + + /** + * @param key The key that's associated with the tag. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param value The value that's associated with the tag. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty, + ) : CdkObject(cdkObject), + ResourceTagProperty { + /** + * The key that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-resourcetag.html#cfn-budgets-budget-resourcetag-key) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The value that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-resourcetag.html#cfn-budgets-budget-resourcetag-value) + */ + override fun `value`(): String? = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ResourceTagProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty): + ResourceTagProperty = CdkObjectWrappers.wrap(cdkObject) as? ResourceTagProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ResourceTagProperty): + software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.budgets.CfnBudget.ResourceTagProperty + } + } + /** * The amount of cost or usage that's measured for a budget. * @@ -2442,7 +2651,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.SpendProperty, - ) : CdkObject(cdkObject), SpendProperty { + ) : CdkObject(cdkObject), + SpendProperty { /** * The cost or usage amount that's associated with a budget forecast, actual spend, or budget * threshold. @@ -2563,7 +2773,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.SubscriberProperty, - ) : CdkObject(cdkObject), SubscriberProperty { + ) : CdkObject(cdkObject), + SubscriberProperty { /** * The address that AWS sends budget notifications to, either an SNS topic or an email. * @@ -2734,7 +2945,8 @@ public open class CfnBudget( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudget.TimePeriodProperty, - ) : CdkObject(cdkObject), TimePeriodProperty { + ) : CdkObject(cdkObject), + TimePeriodProperty { /** * The end date for a budget. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetProps.kt index cb3ff0b85b..b3a9f75b1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetProps.kt @@ -73,6 +73,11 @@ import kotlin.jvm.JvmName * .subscriptionType("subscriptionType") * .build())) * .build())) + * .resourceTags(List.of(ResourceTagProperty.builder() + * .key("key") + * // the properties below are optional + * .value("value") + * .build())) * .build(); * ``` * @@ -97,6 +102,15 @@ public interface CfnBudgetProps { */ public fun notificationsWithSubscribers(): Any? = unwrap(this).getNotificationsWithSubscribers() + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + */ + public fun resourceTags(): Any? = unwrap(this).getResourceTags() + /** * A builder for [CfnBudgetProps] */ @@ -142,6 +156,24 @@ public interface CfnBudgetProps { * `CreateBudget` call, AWS creates the notifications and subscribers for you. */ public fun notificationsWithSubscribers(vararg notificationsWithSubscribers: Any) + + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + public fun resourceTags(resourceTags: IResolvable) + + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + public fun resourceTags(resourceTags: List) + + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + public fun resourceTags(vararg resourceTags: Any) } private class BuilderImpl : Builder { @@ -199,12 +231,35 @@ public interface CfnBudgetProps { override fun notificationsWithSubscribers(vararg notificationsWithSubscribers: Any): Unit = notificationsWithSubscribers(notificationsWithSubscribers.toList()) + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + override fun resourceTags(resourceTags: IResolvable) { + cdkBuilder.resourceTags(resourceTags.let(IResolvable.Companion::unwrap)) + } + + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + override fun resourceTags(resourceTags: List) { + cdkBuilder.resourceTags(resourceTags.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param resourceTags An optional list of tags to associate with the specified budget. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + override fun resourceTags(vararg resourceTags: Any): Unit = resourceTags(resourceTags.toList()) + public fun build(): software.amazon.awscdk.services.budgets.CfnBudgetProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetProps, - ) : CdkObject(cdkObject), CfnBudgetProps { + ) : CdkObject(cdkObject), + CfnBudgetProps { /** * The budget object that you want to create. * @@ -223,6 +278,15 @@ public interface CfnBudgetProps { */ override fun notificationsWithSubscribers(): Any? = unwrap(this).getNotificationsWithSubscribers() + + /** + * An optional list of tags to associate with the specified budget. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-resourcetags) + */ + override fun resourceTags(): Any? = unwrap(this).getResourceTags() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsAction.kt index 65c61eaaf3..5da7539c3f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsAction.kt @@ -5,6 +5,8 @@ package io.cloudshiftdev.awscdk.services.budgets import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -65,6 +67,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * // the properties below are optional * .approvalModel("approvalModel") + * .resourceTags(List.of(ResourceTagProperty.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -72,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBudgetsAction( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -157,6 +165,12 @@ public open class CfnBudgetsAction( unwrap(this).setBudgetName(`value`) } + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * Specifies all of the type-specific parameters. */ @@ -217,6 +231,25 @@ public open class CfnBudgetsAction( unwrap(this).setNotificationType(`value`) } + /** + * An optional list of tags to associate with the specified budget action. + */ + public open fun resourceTags(): List = + unwrap(this).getResourceTags()?.map(ResourceTagProperty::wrap) ?: emptyList() + + /** + * An optional list of tags to associate with the specified budget action. + */ + public open fun resourceTags(`value`: List) { + unwrap(this).setResourceTags(`value`.map(ResourceTagProperty.Companion::unwrap)) + } + + /** + * An optional list of tags to associate with the specified budget action. + */ + public open fun resourceTags(vararg `value`: ResourceTagProperty): Unit = + resourceTags(`value`.toList()) + /** * A list of subscribers. */ @@ -345,6 +378,26 @@ public open class CfnBudgetsAction( */ public fun notificationType(notificationType: String) + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget action. + */ + public fun resourceTags(resourceTags: List) + + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget action. + */ + public fun resourceTags(vararg resourceTags: ResourceTagProperty) + /** * A list of subscribers. * @@ -496,6 +549,29 @@ public open class CfnBudgetsAction( cdkBuilder.notificationType(notificationType) } + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget action. + */ + override fun resourceTags(resourceTags: List) { + cdkBuilder.resourceTags(resourceTags.map(ResourceTagProperty.Companion::unwrap)) + } + + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + * @param resourceTags An optional list of tags to associate with the specified budget action. + */ + override fun resourceTags(vararg resourceTags: ResourceTagProperty): Unit = + resourceTags(resourceTags.toList()) + /** * A list of subscribers. * @@ -623,7 +699,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.ActionThresholdProperty, - ) : CdkObject(cdkObject), ActionThresholdProperty { + ) : CdkObject(cdkObject), + ActionThresholdProperty { /** * The type of threshold for a notification. * @@ -863,7 +940,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.DefinitionProperty, - ) : CdkObject(cdkObject), DefinitionProperty { + ) : CdkObject(cdkObject), + DefinitionProperty { /** * The AWS Identity and Access Management ( IAM ) action definition details. * @@ -1068,7 +1146,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.IamActionDefinitionProperty, - ) : CdkObject(cdkObject), IamActionDefinitionProperty { + ) : CdkObject(cdkObject), + IamActionDefinitionProperty { /** * A list of groups to be attached. * @@ -1122,6 +1201,115 @@ public open class CfnBudgetsAction( } } + /** + * The tag structure that contains a tag key and value. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.budgets.*; + * ResourceTagProperty resourceTagProperty = ResourceTagProperty.builder() + * .key("key") + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html) + */ + public interface ResourceTagProperty { + /** + * The key that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html#cfn-budgets-budgetsaction-resourcetag-key) + */ + public fun key(): String + + /** + * The value that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html#cfn-budgets-budgetsaction-resourcetag-value) + */ + public fun `value`(): String + + /** + * A builder for [ResourceTagProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key The key that's associated with the tag. + */ + public fun key(key: String) + + /** + * @param value The value that's associated with the tag. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty.Builder = + software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty.builder() + + /** + * @param key The key that's associated with the tag. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param value The value that's associated with the tag. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty, + ) : CdkObject(cdkObject), + ResourceTagProperty { + /** + * The key that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html#cfn-budgets-budgetsaction-resourcetag-key) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The value that's associated with the tag. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html#cfn-budgets-budgetsaction-resourcetag-value) + */ + override fun `value`(): String = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ResourceTagProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty): + ResourceTagProperty = CdkObjectWrappers.wrap(cdkObject) as? ResourceTagProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ResourceTagProperty): + software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.budgets.CfnBudgetsAction.ResourceTagProperty + } + } + /** * The service control policies (SCP) action definition details. * @@ -1207,7 +1395,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.ScpActionDefinitionProperty, - ) : CdkObject(cdkObject), ScpActionDefinitionProperty { + ) : CdkObject(cdkObject), + ScpActionDefinitionProperty { /** * The policy ID attached. * @@ -1346,7 +1535,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.SsmActionDefinitionProperty, - ) : CdkObject(cdkObject), SsmActionDefinitionProperty { + ) : CdkObject(cdkObject), + SsmActionDefinitionProperty { /** * The EC2 and RDS instance IDs. * @@ -1475,7 +1665,8 @@ public open class CfnBudgetsAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsAction.SubscriberProperty, - ) : CdkObject(cdkObject), SubscriberProperty { + ) : CdkObject(cdkObject), + SubscriberProperty { /** * The address that AWS sends budget notifications to, either an SNS topic or an email. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsActionProps.kt index 39822f5ec2..899be3f302 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/budgets/CfnBudgetsActionProps.kt @@ -54,6 +54,10 @@ import kotlin.jvm.JvmName * .build())) * // the properties below are optional * .approvalModel("approvalModel") + * .resourceTags(List.of(ResourceTagProperty.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -116,6 +120,16 @@ public interface CfnBudgetsActionProps { */ public fun notificationType(): String + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + */ + public fun resourceTags(): List = + unwrap(this).getResourceTags()?.map(CfnBudgetsAction.ResourceTagProperty::wrap) ?: emptyList() + /** * A list of subscribers. * @@ -192,6 +206,18 @@ public interface CfnBudgetsActionProps { */ public fun notificationType(notificationType: String) + /** + * @param resourceTags An optional list of tags to associate with the specified budget action. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + public fun resourceTags(resourceTags: List) + + /** + * @param resourceTags An optional list of tags to associate with the specified budget action. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + public fun resourceTags(vararg resourceTags: CfnBudgetsAction.ResourceTagProperty) + /** * @param subscribers A list of subscribers. */ @@ -296,6 +322,21 @@ public interface CfnBudgetsActionProps { cdkBuilder.notificationType(notificationType) } + /** + * @param resourceTags An optional list of tags to associate with the specified budget action. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + override fun resourceTags(resourceTags: List) { + cdkBuilder.resourceTags(resourceTags.map(CfnBudgetsAction.ResourceTagProperty.Companion::unwrap)) + } + + /** + * @param resourceTags An optional list of tags to associate with the specified budget action. + * Each tag consists of a key and a value, and each key must be unique for the resource. + */ + override fun resourceTags(vararg resourceTags: CfnBudgetsAction.ResourceTagProperty): Unit = + resourceTags(resourceTags.toList()) + /** * @param subscribers A list of subscribers. */ @@ -321,7 +362,8 @@ public interface CfnBudgetsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.budgets.CfnBudgetsActionProps, - ) : CdkObject(cdkObject), CfnBudgetsActionProps { + ) : CdkObject(cdkObject), + CfnBudgetsActionProps { /** * The trigger threshold of the action. * @@ -378,6 +420,17 @@ public interface CfnBudgetsActionProps { */ override fun notificationType(): String = unwrap(this).getNotificationType() + /** + * An optional list of tags to associate with the specified budget action. + * + * Each tag consists of a key and a value, and each key must be unique for the resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html#cfn-budgets-budgetsaction-resourcetags) + */ + override fun resourceTags(): List = + unwrap(this).getResourceTags()?.map(CfnBudgetsAction.ResourceTagProperty::wrap) ?: + emptyList() + /** * A list of subscribers. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspace.kt index 3d77335fbc..cdb48a2c28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspace.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKeyspace( cdkObject: software.amazon.awscdk.services.cassandra.CfnKeyspace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cassandra.CfnKeyspace(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -502,7 +504,8 @@ public open class CfnKeyspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnKeyspace.ReplicationSpecificationProperty, - ) : CdkObject(cdkObject), ReplicationSpecificationProperty { + ) : CdkObject(cdkObject), + ReplicationSpecificationProperty { /** * Specifies the AWS Regions that the keyspace is replicated in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspaceProps.kt index 7a59538ece..a3a3e5d6ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnKeyspaceProps.kt @@ -240,7 +240,8 @@ public interface CfnKeyspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnKeyspaceProps, - ) : CdkObject(cdkObject), CfnKeyspaceProps { + ) : CdkObject(cdkObject), + CfnKeyspaceProps { /** * The name of the keyspace to be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTable.kt index 464c57651b..bc410e177f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTable.kt @@ -132,7 +132,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTable( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1584,7 +1586,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.AutoScalingSettingProperty, - ) : CdkObject(cdkObject), AutoScalingSettingProperty { + ) : CdkObject(cdkObject), + AutoScalingSettingProperty { /** * This optional parameter enables auto scaling for the table if set to `false` . * @@ -1804,7 +1807,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.AutoScalingSpecificationProperty, - ) : CdkObject(cdkObject), AutoScalingSpecificationProperty { + ) : CdkObject(cdkObject), + AutoScalingSpecificationProperty { /** * The auto scaling settings for the table's read capacity. * @@ -2002,7 +2006,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.BillingModeProperty, - ) : CdkObject(cdkObject), BillingModeProperty { + ) : CdkObject(cdkObject), + BillingModeProperty { /** * The billing mode for the table:. * @@ -2166,7 +2171,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.ClusteringKeyColumnProperty, - ) : CdkObject(cdkObject), ClusteringKeyColumnProperty { + ) : CdkObject(cdkObject), + ClusteringKeyColumnProperty { /** * The name and data type of this clustering key column. * @@ -2305,7 +2311,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.ColumnProperty, - ) : CdkObject(cdkObject), ColumnProperty { + ) : CdkObject(cdkObject), + ColumnProperty { /** * The name of the column. * @@ -2453,7 +2460,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.EncryptionSpecificationProperty, - ) : CdkObject(cdkObject), EncryptionSpecificationProperty { + ) : CdkObject(cdkObject), + EncryptionSpecificationProperty { /** * The encryption at rest options for the table. * @@ -2595,7 +2603,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.ProvisionedThroughputProperty, - ) : CdkObject(cdkObject), ProvisionedThroughputProperty { + ) : CdkObject(cdkObject), + ProvisionedThroughputProperty { /** * The amount of read capacity that's provisioned for the table. * @@ -2791,7 +2800,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.ReplicaSpecificationProperty, - ) : CdkObject(cdkObject), ReplicaSpecificationProperty { + ) : CdkObject(cdkObject), + ReplicaSpecificationProperty { /** * The read capacity auto scaling settings for the multi-Region table in the specified AWS * Region. @@ -2938,7 +2948,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.ScalingPolicyProperty, - ) : CdkObject(cdkObject), ScalingPolicyProperty { + ) : CdkObject(cdkObject), + ScalingPolicyProperty { /** * The auto scaling policy that scales a table based on the ratio of consumed to provisioned * capacity. @@ -3158,7 +3169,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingScalingPolicyConfigurationProperty { /** * Specifies if `scale-in` is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTableProps.kt index a2a1fcc048..391ce08842 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cassandra/CfnTableProps.kt @@ -943,7 +943,8 @@ public interface CfnTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cassandra.CfnTableProps, - ) : CdkObject(cdkObject), CfnTableProps { + ) : CdkObject(cdkObject), + CfnTableProps { /** * The optional auto scaling capacity settings for a table in provisioned capacity mode. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitor.kt index 591fb7f35e..8426da2f86 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitor.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnomalyMonitor( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalyMonitor, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -424,7 +425,8 @@ public open class CfnAnomalyMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalyMonitor.ResourceTagProperty, - ) : CdkObject(cdkObject), ResourceTagProperty { + ) : CdkObject(cdkObject), + ResourceTagProperty { /** * The key that's associated with the tag. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitorProps.kt index 6217f0943b..eac0d1f17f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalyMonitorProps.kt @@ -182,7 +182,8 @@ public interface CfnAnomalyMonitorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalyMonitorProps, - ) : CdkObject(cdkObject), CfnAnomalyMonitorProps { + ) : CdkObject(cdkObject), + CfnAnomalyMonitorProps { /** * The dimensions to evaluate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscription.kt index 3881d39326..1a19825501 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscription.kt @@ -66,7 +66,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnomalySubscription( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalySubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -644,7 +645,8 @@ public open class CfnAnomalySubscription( private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalySubscription.ResourceTagProperty, - ) : CdkObject(cdkObject), ResourceTagProperty { + ) : CdkObject(cdkObject), + ResourceTagProperty { /** * The key that's associated with the tag. * @@ -775,7 +777,8 @@ public open class CfnAnomalySubscription( private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalySubscription.SubscriberProperty, - ) : CdkObject(cdkObject), SubscriberProperty { + ) : CdkObject(cdkObject), + SubscriberProperty { /** * The email address or SNS Topic Amazon Resource Name (ARN), depending on the `Type` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscriptionProps.kt index 92a1da7a89..86ba6f0860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnAnomalySubscriptionProps.kt @@ -332,7 +332,8 @@ public interface CfnAnomalySubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnAnomalySubscriptionProps, - ) : CdkObject(cdkObject), CfnAnomalySubscriptionProps { + ) : CdkObject(cdkObject), + CfnAnomalySubscriptionProps { /** * The frequency that anomaly notifications are sent. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategory.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategory.kt index 3b10d16992..3ab4452ce4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategory.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategory.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCostCategory( cdkObject: software.amazon.awscdk.services.ce.CfnCostCategory, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategoryProps.kt index d20f3d1175..c68b8b2f8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ce/CfnCostCategoryProps.kt @@ -154,7 +154,8 @@ public interface CfnCostCategoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ce.CfnCostCategoryProps, - ) : CdkObject(cdkObject), CfnCostCategoryProps { + ) : CdkObject(cdkObject), + CfnCostCategoryProps { /** * The default value for the cost category. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/Certificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/Certificate.kt index d2842c3013..a3fe223b08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/Certificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/Certificate.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Certificate( cdkObject: software.amazon.awscdk.services.certificatemanager.Certificate, -) : Resource(cdkObject), ICertificate { +) : Resource(cdkObject), + ICertificate { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificateProps.kt index 6a7e1eccd4..101792f477 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificateProps.kt @@ -217,7 +217,8 @@ public interface CertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CertificateProps, - ) : CdkObject(cdkObject), CertificateProps { + ) : CdkObject(cdkObject), + CertificateProps { /** * The Certificate name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificationValidationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificationValidationProps.kt index 40ca489fb0..e1524b2643 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificationValidationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CertificationValidationProps.kt @@ -129,7 +129,8 @@ public interface CertificationValidationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CertificationValidationProps, - ) : CdkObject(cdkObject), CertificationValidationProps { + ) : CdkObject(cdkObject), + CertificationValidationProps { /** * Hosted zone to use for DNS validation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccount.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccount.kt index dc17fc0910..d090678423 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccount.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccount.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccount( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnAccount, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -297,7 +298,8 @@ public open class CfnAccount( private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnAccount.ExpiryEventsConfigurationProperty, - ) : CdkObject(cdkObject), ExpiryEventsConfigurationProperty { + ) : CdkObject(cdkObject), + ExpiryEventsConfigurationProperty { /** * This option specifies the number of days prior to certificate expiration when ACM starts * generating `EventBridge` events. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccountProps.kt index 2eb58032e8..a20c9e3403 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnAccountProps.kt @@ -125,7 +125,8 @@ public interface CfnAccountProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnAccountProps, - ) : CdkObject(cdkObject), CfnAccountProps { + ) : CdkObject(cdkObject), + CfnAccountProps { /** * Object containing expiration events options associated with an AWS account . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificate.kt index 28a5b71fc5..61011bd4d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificate.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnCertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -876,7 +878,8 @@ public open class CfnCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnCertificate.DomainValidationOptionProperty, - ) : CdkObject(cdkObject), DomainValidationOptionProperty { + ) : CdkObject(cdkObject), + DomainValidationOptionProperty { /** * A fully qualified domain name (FQDN) in the certificate request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificateProps.kt index 7e7221fe29..b54ee7cd80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/CfnCertificateProps.kt @@ -478,7 +478,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to * issue the certificate. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificate.kt index 836619832b..6056170d96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificate.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DnsValidatedCertificate( cdkObject: software.amazon.awscdk.services.certificatemanager.DnsValidatedCertificate, -) : Resource(cdkObject), ICertificate, ITaggable { +) : Resource(cdkObject), + ICertificate, + ITaggable { @Deprecated(message = "deprecated in CDK") public constructor( scope: CloudshiftdevConstructsConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificateProps.kt index 81f598feae..eca76fa2fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/DnsValidatedCertificateProps.kt @@ -313,7 +313,8 @@ public interface DnsValidatedCertificateProps : CertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.DnsValidatedCertificateProps, - ) : CdkObject(cdkObject), DnsValidatedCertificateProps { + ) : CdkObject(cdkObject), + DnsValidatedCertificateProps { /** * The Certificate name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/ICertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/ICertificate.kt index 55f5bc55ec..04562ae222 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/ICertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/ICertificate.kt @@ -64,7 +64,8 @@ public interface ICertificate : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.ICertificate, - ) : CdkObject(cdkObject), ICertificate { + ) : CdkObject(cdkObject), + ICertificate { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificate.kt index 73cc0aa916..95f0f22dc1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificate.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PrivateCertificate( cdkObject: software.amazon.awscdk.services.certificatemanager.PrivateCertificate, -) : Resource(cdkObject), ICertificate { +) : Resource(cdkObject), + ICertificate { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificateProps.kt index f3919ec864..55736c92a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/certificatemanager/PrivateCertificateProps.kt @@ -155,7 +155,8 @@ public interface PrivateCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.certificatemanager.PrivateCertificateProps, - ) : CdkObject(cdkObject), PrivateCertificateProps { + ) : CdkObject(cdkObject), + PrivateCertificateProps { /** * Private certificate authority (CA) that will be used to issue the certificate. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfiguration.kt index 79afa30f2e..8ab57443df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfiguration.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.chatbot import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any @@ -44,6 +47,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .guardrailPolicies(List.of("guardrailPolicies")) * .loggingLevel("loggingLevel") * .snsTopicArns(List.of("snsTopicArns")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .userRoleRequired(false) * .build(); * ``` @@ -52,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMicrosoftTeamsChannelConfiguration( cdkObject: software.amazon.awscdk.services.chatbot.CfnMicrosoftTeamsChannelConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -74,6 +83,12 @@ public open class CfnMicrosoftTeamsChannelConfiguration( */ public open fun attrArn(): String = unwrap(this).getAttrArn() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The name of the configuration. */ @@ -159,6 +174,23 @@ public open class CfnMicrosoftTeamsChannelConfiguration( */ public open fun snsTopicArns(vararg `value`: String): Unit = snsTopicArns(`value`.toList()) + /** + * The tags to add to the configuration. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to the configuration. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to the configuration. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * The ID of the Microsoft Team authorized with AWS Chatbot . */ @@ -290,12 +322,28 @@ public open class CfnMicrosoftTeamsChannelConfiguration( */ public fun snsTopicArns(vararg snsTopicArns: String) + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + public fun tags(tags: List) + + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + public fun tags(vararg tags: CfnTag) + /** * The ID of the Microsoft Team authorized with AWS Chatbot . * * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in * the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more - * details, see steps 1-4 in [Get started with Microsoft + * details, see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . * @@ -442,12 +490,30 @@ public open class CfnMicrosoftTeamsChannelConfiguration( override fun snsTopicArns(vararg snsTopicArns: String): Unit = snsTopicArns(snsTopicArns.toList()) + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * The ID of the Microsoft Team authorized with AWS Chatbot . * * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in * the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more - * details, see steps 1-4 in [Get started with Microsoft + * details, see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfigurationProps.kt index d486ec4efa..12d745d804 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnMicrosoftTeamsChannelConfigurationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.chatbot +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -32,6 +33,10 @@ import kotlin.collections.List * .guardrailPolicies(List.of("guardrailPolicies")) * .loggingLevel("loggingLevel") * .snsTopicArns(List.of("snsTopicArns")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .userRoleRequired(false) * .build(); * ``` @@ -85,12 +90,19 @@ public interface CfnMicrosoftTeamsChannelConfigurationProps { */ public fun snsTopicArns(): List = unwrap(this).getSnsTopicArns() ?: emptyList() + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The ID of the Microsoft Team authorized with AWS Chatbot . * * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the * AWS Chatbot console. Then you can copy and paste the team ID from the console. For more details, - * see steps 1-4 in [Get started with Microsoft + * see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . * @@ -178,11 +190,21 @@ public interface CfnMicrosoftTeamsChannelConfigurationProps { */ public fun snsTopicArns(vararg snsTopicArns: String) + /** + * @param tags The tags to add to the configuration. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to the configuration. + */ + public fun tags(vararg tags: CfnTag) + /** * @param teamId The ID of the Microsoft Team authorized with AWS Chatbot . * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in * the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more - * details, see steps 1-4 in [Get started with Microsoft + * details, see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . */ @@ -276,11 +298,23 @@ public interface CfnMicrosoftTeamsChannelConfigurationProps { override fun snsTopicArns(vararg snsTopicArns: String): Unit = snsTopicArns(snsTopicArns.toList()) + /** + * @param tags The tags to add to the configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to the configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * @param teamId The ID of the Microsoft Team authorized with AWS Chatbot . * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in * the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more - * details, see steps 1-4 in [Get started with Microsoft + * details, see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . */ @@ -331,7 +365,8 @@ public interface CfnMicrosoftTeamsChannelConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.chatbot.CfnMicrosoftTeamsChannelConfigurationProps, - ) : CdkObject(cdkObject), CfnMicrosoftTeamsChannelConfigurationProps { + ) : CdkObject(cdkObject), + CfnMicrosoftTeamsChannelConfigurationProps { /** * The name of the configuration. * @@ -379,12 +414,19 @@ public interface CfnMicrosoftTeamsChannelConfigurationProps { */ override fun snsTopicArns(): List = unwrap(this).getSnsTopicArns() ?: emptyList() + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The ID of the Microsoft Team authorized with AWS Chatbot . * * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in * the AWS Chatbot console. Then you can copy and paste the team ID from the console. For more - * details, see steps 1-4 in [Get started with Microsoft + * details, see steps 1-3 in [Get started with Microsoft * Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) * in the *AWS Chatbot Administrator Guide* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfiguration.kt index 4f4ef7a646..474fcc4e01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfiguration.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.chatbot import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.Any @@ -42,6 +45,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .guardrailPolicies(List.of("guardrailPolicies")) * .loggingLevel("loggingLevel") * .snsTopicArns(List.of("snsTopicArns")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .userRoleRequired(false) * .build(); * ``` @@ -50,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSlackChannelConfiguration( cdkObject: software.amazon.awscdk.services.chatbot.CfnSlackChannelConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -72,6 +81,12 @@ public open class CfnSlackChannelConfiguration( */ public open fun attrArn(): String = unwrap(this).getAttrArn() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The name of the configuration. */ @@ -181,6 +196,23 @@ public open class CfnSlackChannelConfiguration( */ public open fun snsTopicArns(vararg `value`: String): Unit = snsTopicArns(`value`.toList()) + /** + * The tags to add to the configuration. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to the configuration. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to the configuration. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * Enables use of a user role requirement in your chat configuration. */ @@ -263,7 +295,7 @@ public open class CfnSlackChannelConfiguration( * The ID of the Slack channel. * * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid) * @param slackChannelId The ID of the Slack channel. @@ -275,9 +307,9 @@ public open class CfnSlackChannelConfiguration( * * To get the workspace ID, you must perform the initial authorization flow with Slack in the * AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more - * details, see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * details, see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS + * Chatbot User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid) * @param slackWorkspaceId The ID of the Slack workspace authorized with AWS Chatbot . @@ -300,6 +332,22 @@ public open class CfnSlackChannelConfiguration( */ public fun snsTopicArns(vararg snsTopicArns: String) + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + public fun tags(tags: List) + + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + public fun tags(vararg tags: CfnTag) + /** * Enables use of a user role requirement in your chat configuration. * @@ -397,7 +445,7 @@ public open class CfnSlackChannelConfiguration( * The ID of the Slack channel. * * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid) * @param slackChannelId The ID of the Slack channel. @@ -411,9 +459,9 @@ public open class CfnSlackChannelConfiguration( * * To get the workspace ID, you must perform the initial authorization flow with Slack in the * AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more - * details, see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * details, see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS + * Chatbot User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid) * @param slackWorkspaceId The ID of the Slack workspace authorized with AWS Chatbot . @@ -441,6 +489,24 @@ public open class CfnSlackChannelConfiguration( override fun snsTopicArns(vararg snsTopicArns: String): Unit = snsTopicArns(snsTopicArns.toList()) + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + * @param tags The tags to add to the configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * Enables use of a user role requirement in your chat configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfigurationProps.kt index 83f5c449d8..6d3a669cec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/CfnSlackChannelConfigurationProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.chatbot +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -31,6 +32,10 @@ import kotlin.collections.List * .guardrailPolicies(List.of("guardrailPolicies")) * .loggingLevel("loggingLevel") * .snsTopicArns(List.of("snsTopicArns")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .userRoleRequired(false) * .build(); * ``` @@ -81,7 +86,7 @@ public interface CfnSlackChannelConfigurationProps { * The ID of the Slack channel. * * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid) */ @@ -92,9 +97,9 @@ public interface CfnSlackChannelConfigurationProps { * * To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS * Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, - * see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS Chatbot + * User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid) */ @@ -107,6 +112,13 @@ public interface CfnSlackChannelConfigurationProps { */ public fun snsTopicArns(): List = unwrap(this).getSnsTopicArns() ?: emptyList() + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * Enables use of a user role requirement in your chat configuration. * @@ -156,7 +168,7 @@ public interface CfnSlackChannelConfigurationProps { /** * @param slackChannelId The ID of the Slack channel. * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . */ public fun slackChannelId(slackChannelId: String) @@ -164,9 +176,9 @@ public interface CfnSlackChannelConfigurationProps { * @param slackWorkspaceId The ID of the Slack workspace authorized with AWS Chatbot . * To get the workspace ID, you must perform the initial authorization flow with Slack in the * AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more - * details, see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * details, see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS + * Chatbot User Guide* . */ public fun slackWorkspaceId(slackWorkspaceId: String) @@ -180,6 +192,16 @@ public interface CfnSlackChannelConfigurationProps { */ public fun snsTopicArns(vararg snsTopicArns: String) + /** + * @param tags The tags to add to the configuration. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to the configuration. + */ + public fun tags(vararg tags: CfnTag) + /** * @param userRoleRequired Enables use of a user role requirement in your chat configuration. */ @@ -240,7 +262,7 @@ public interface CfnSlackChannelConfigurationProps { /** * @param slackChannelId The ID of the Slack channel. * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . */ override fun slackChannelId(slackChannelId: String) { cdkBuilder.slackChannelId(slackChannelId) @@ -250,9 +272,9 @@ public interface CfnSlackChannelConfigurationProps { * @param slackWorkspaceId The ID of the Slack workspace authorized with AWS Chatbot . * To get the workspace ID, you must perform the initial authorization flow with Slack in the * AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more - * details, see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * details, see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS + * Chatbot User Guide* . */ override fun slackWorkspaceId(slackWorkspaceId: String) { cdkBuilder.slackWorkspaceId(slackWorkspaceId) @@ -271,6 +293,18 @@ public interface CfnSlackChannelConfigurationProps { override fun snsTopicArns(vararg snsTopicArns: String): Unit = snsTopicArns(snsTopicArns.toList()) + /** + * @param tags The tags to add to the configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to the configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * @param userRoleRequired Enables use of a user role requirement in your chat configuration. */ @@ -291,7 +325,8 @@ public interface CfnSlackChannelConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.chatbot.CfnSlackChannelConfigurationProps, - ) : CdkObject(cdkObject), CfnSlackChannelConfigurationProps { + ) : CdkObject(cdkObject), + CfnSlackChannelConfigurationProps { /** * The name of the configuration. * @@ -336,7 +371,7 @@ public interface CfnSlackChannelConfigurationProps { * The ID of the Slack channel. * * To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy - * Link. The channel ID is the 9-character string at the end of the URL. For example, `ABCBBLZZZ` . + * Link. The channel ID is the character string at the end of the URL. For example, `ABCBBLZZZ` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid) */ @@ -347,9 +382,9 @@ public interface CfnSlackChannelConfigurationProps { * * To get the workspace ID, you must perform the initial authorization flow with Slack in the * AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more - * details, see steps 1-4 in [Setting Up AWS Chatbot with - * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) in the - * *AWS Chatbot User Guide* . + * details, see steps 1-3 in [Tutorial: Get started with + * Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html) in the *AWS + * Chatbot User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid) */ @@ -362,6 +397,13 @@ public interface CfnSlackChannelConfigurationProps { */ override fun snsTopicArns(): List = unwrap(this).getSnsTopicArns() ?: emptyList() + /** + * The tags to add to the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * Enables use of a user role requirement in your chat configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/ISlackChannelConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/ISlackChannelConfiguration.kt index 6512290a54..64f8ac1e2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/ISlackChannelConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/ISlackChannelConfiguration.kt @@ -88,7 +88,8 @@ public interface ISlackChannelConfiguration : IResource, IGrantable, INotificati private class Wrapper( cdkObject: software.amazon.awscdk.services.chatbot.ISlackChannelConfiguration, - ) : CdkObject(cdkObject), ISlackChannelConfiguration { + ) : CdkObject(cdkObject), + ISlackChannelConfiguration { /** * Adds a statement to the IAM role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfiguration.kt index 6afeeb8b98..d3f2e03878 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfiguration.kt @@ -14,6 +14,7 @@ import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.logs.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -40,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SlackChannelConfiguration( cdkObject: software.amazon.awscdk.services.chatbot.SlackChannelConfiguration, -) : Resource(cdkObject), ISlackChannelConfiguration { +) : Resource(cdkObject), + ISlackChannelConfiguration { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -296,6 +298,15 @@ public open class SlackChannelConfiguration( * @param slackWorkspaceId The ID of the Slack workspace authorized with AWS Chatbot. */ public fun slackWorkspaceId(slackWorkspaceId: String) + + /** + * Enables use of a user role requirement in your chat configuration. + * + * Default: false + * + * @param userRoleRequired Enables use of a user role requirement in your chat configuration. + */ + public fun userRoleRequired(userRoleRequired: Boolean) } private class BuilderImpl( @@ -474,6 +485,17 @@ public open class SlackChannelConfiguration( cdkBuilder.slackWorkspaceId(slackWorkspaceId) } + /** + * Enables use of a user role requirement in your chat configuration. + * + * Default: false + * + * @param userRoleRequired Enables use of a user role requirement in your chat configuration. + */ + override fun userRoleRequired(userRoleRequired: Boolean) { + cdkBuilder.userRoleRequired(userRoleRequired) + } + public fun build(): software.amazon.awscdk.services.chatbot.SlackChannelConfiguration = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfigurationProps.kt index 9b727ec831..4ca5f8e26b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/chatbot/SlackChannelConfigurationProps.kt @@ -10,6 +10,7 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.logs.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -123,6 +124,13 @@ public interface SlackChannelConfigurationProps { */ public fun slackWorkspaceId(): String + /** + * Enables use of a user role requirement in your chat configuration. + * + * Default: false + */ + public fun userRoleRequired(): Boolean? = unwrap(this).getUserRoleRequired() + /** * A builder for [SlackChannelConfigurationProps] */ @@ -214,6 +222,11 @@ public interface SlackChannelConfigurationProps { * Guide. */ public fun slackWorkspaceId(slackWorkspaceId: String) + + /** + * @param userRoleRequired Enables use of a user role requirement in your chat configuration. + */ + public fun userRoleRequired(userRoleRequired: Boolean) } private class BuilderImpl : Builder { @@ -331,13 +344,21 @@ public interface SlackChannelConfigurationProps { cdkBuilder.slackWorkspaceId(slackWorkspaceId) } + /** + * @param userRoleRequired Enables use of a user role requirement in your chat configuration. + */ + override fun userRoleRequired(userRoleRequired: Boolean) { + cdkBuilder.userRoleRequired(userRoleRequired) + } + public fun build(): software.amazon.awscdk.services.chatbot.SlackChannelConfigurationProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.chatbot.SlackChannelConfigurationProps, - ) : CdkObject(cdkObject), SlackChannelConfigurationProps { + ) : CdkObject(cdkObject), + SlackChannelConfigurationProps { /** * A list of IAM managed policies that are applied as channel guardrails. * @@ -430,6 +451,13 @@ public interface SlackChannelConfigurationProps { * [Documentation](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro) */ override fun slackWorkspaceId(): String = unwrap(this).getSlackWorkspaceId() + + /** + * Enables use of a user role requirement in your chat configuration. + * + * Default: false + */ + override fun userRoleRequired(): Boolean? = unwrap(this).getUserRoleRequired() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplate.kt index 2ba8af51f5..c8a2cb4bdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplate.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnalysisTemplate( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnAnalysisTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -639,7 +641,8 @@ public open class CfnAnalysisTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnAnalysisTemplate.AnalysisParameterProperty, - ) : CdkObject(cdkObject), AnalysisParameterProperty { + ) : CdkObject(cdkObject), + AnalysisParameterProperty { /** * Optional. * @@ -752,7 +755,8 @@ public open class CfnAnalysisTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnAnalysisTemplate.AnalysisSchemaProperty, - ) : CdkObject(cdkObject), AnalysisSchemaProperty { + ) : CdkObject(cdkObject), + AnalysisSchemaProperty { /** * The tables referenced in the analysis schema. * @@ -834,7 +838,8 @@ public open class CfnAnalysisTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnAnalysisTemplate.AnalysisSourceProperty, - ) : CdkObject(cdkObject), AnalysisSourceProperty { + ) : CdkObject(cdkObject), + AnalysisSourceProperty { /** * The query text. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplateProps.kt index 6a42f825fe..dd3a653a4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnAnalysisTemplateProps.kt @@ -273,7 +273,8 @@ public interface CfnAnalysisTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnAnalysisTemplateProps, - ) : CdkObject(cdkObject), CfnAnalysisTemplateProps { + ) : CdkObject(cdkObject), + CfnAnalysisTemplateProps { /** * The parameters of the analysis template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaboration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaboration.kt index 609d22c4b7..4d2716caf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaboration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaboration.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCollaboration( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaboration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -891,7 +893,8 @@ public open class CfnCollaboration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaboration.DataEncryptionMetadataProperty, - ) : CdkObject(cdkObject), DataEncryptionMetadataProperty { + ) : CdkObject(cdkObject), + DataEncryptionMetadataProperty { /** * Indicates whether encrypted tables can contain cleartext data ( `TRUE` ) or are to * cryptographically process every column ( `FALSE` ). @@ -1136,7 +1139,8 @@ public open class CfnCollaboration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaboration.MemberSpecificationProperty, - ) : CdkObject(cdkObject), MemberSpecificationProperty { + ) : CdkObject(cdkObject), + MemberSpecificationProperty { /** * The identifier used to reference members of the collaboration. * @@ -1284,7 +1288,8 @@ public open class CfnCollaboration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaboration.PaymentConfigurationProperty, - ) : CdkObject(cdkObject), PaymentConfigurationProperty { + ) : CdkObject(cdkObject), + PaymentConfigurationProperty { /** * The collaboration member's payment responsibilities set by the collaboration creator for * query compute costs. @@ -1426,7 +1431,8 @@ public open class CfnCollaboration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaboration.QueryComputePaymentConfigProperty, - ) : CdkObject(cdkObject), QueryComputePaymentConfigProperty { + ) : CdkObject(cdkObject), + QueryComputePaymentConfigProperty { /** * Indicates whether the collaboration creator has configured the collaboration member to pay * for query compute costs ( `TRUE` ) or has not configured the collaboration member to pay for diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaborationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaborationProps.kt index 990792cce4..921f7edad1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaborationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnCollaborationProps.kt @@ -404,7 +404,8 @@ public interface CfnCollaborationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnCollaborationProps, - ) : CdkObject(cdkObject), CfnCollaborationProps { + ) : CdkObject(cdkObject), + CfnCollaborationProps { /** * A display name of the collaboration creator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTable.kt index 0fe57dd6d3..395845afac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTable.kt @@ -59,23 +59,27 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build()) * .custom(AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build()) * .list(AnalysisRuleListProperty.builder() * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build()) * .build()) @@ -94,7 +98,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfiguredTable( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -141,26 +147,26 @@ public open class CfnConfiguredTable( } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. */ public open fun analysisRules(): Any? = unwrap(this).getAnalysisRules() /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. */ public open fun analysisRules(`value`: IResolvable) { unwrap(this).setAnalysisRules(`value`.let(IResolvable.Companion::unwrap)) } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. */ public open fun analysisRules(`value`: List) { unwrap(this).setAnalysisRules(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. */ public open fun analysisRules(vararg `value`: Any): Unit = analysisRules(`value`.toList()) @@ -297,26 +303,26 @@ public open class CfnConfiguredTable( public fun analysisMethod(analysisMethod: String) /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(analysisRules: IResolvable) /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(analysisRules: List) /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(vararg analysisRules: Any) @@ -428,30 +434,30 @@ public open class CfnConfiguredTable( } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(analysisRules: IResolvable) { cdkBuilder.analysisRules(analysisRules.let(IResolvable.Companion::unwrap)) } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(analysisRules: List) { cdkBuilder.analysisRules(analysisRules.map{CdkObjectWrappers.unwrap(it)}) } /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(vararg analysisRules: Any): Unit = analysisRules(analysisRules.toList()) @@ -643,7 +649,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AggregateColumnProperty, - ) : CdkObject(cdkObject), AggregateColumnProperty { + ) : CdkObject(cdkObject), + AggregateColumnProperty { /** * Column names in configured table of aggregate columns. * @@ -790,7 +797,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AggregationConstraintProperty, - ) : CdkObject(cdkObject), AggregationConstraintProperty { + ) : CdkObject(cdkObject), + AggregationConstraintProperty { /** * Column in aggregation constraint for which there must be a minimum number of distinct * values in an output row for it to be in the query output. @@ -862,6 +870,7 @@ public open class CfnConfiguredTable( * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build(); @@ -870,6 +879,17 @@ public open class CfnConfiguredTable( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisruleaggregation.html) */ public interface AnalysisRuleAggregationProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied to + * the output of the direct query. + * + * The `additionalAnalyses` parameter is currently supported for the list analysis rule ( + * `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisruleaggregation.html#cfn-cleanrooms-configuredtable-analysisruleaggregation-additionalanalyses) + */ + public fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The columns that query runners are allowed to use in aggregation queries. * @@ -932,6 +952,14 @@ public open class CfnConfiguredTable( */ @CdkDslMarker public interface Builder { + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + * The `additionalAnalyses` parameter is currently supported for the list analysis rule ( + * `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + public fun additionalAnalyses(additionalAnalyses: String) + /** * @param aggregateColumns The columns that query runners are allowed to use in aggregation * queries. @@ -1033,6 +1061,16 @@ public open class CfnConfiguredTable( = software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleAggregationProperty.builder() + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + * The `additionalAnalyses` parameter is currently supported for the list analysis rule ( + * `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + override fun additionalAnalyses(additionalAnalyses: String) { + cdkBuilder.additionalAnalyses(additionalAnalyses) + } + /** * @param aggregateColumns The columns that query runners are allowed to use in aggregation * queries. @@ -1157,7 +1195,19 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleAggregationProperty, - ) : CdkObject(cdkObject), AnalysisRuleAggregationProperty { + ) : CdkObject(cdkObject), + AnalysisRuleAggregationProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied + * to the output of the direct query. + * + * The `additionalAnalyses` parameter is currently supported for the list analysis rule ( + * `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisruleaggregation.html#cfn-cleanrooms-configuredtable-analysisruleaggregation-additionalanalyses) + */ + override fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The columns that query runners are allowed to use in aggregation queries. * @@ -1250,18 +1300,28 @@ public open class CfnConfiguredTable( * AnalysisRuleCustomProperty analysisRuleCustomProperty = AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build(); * ``` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html) */ public interface AnalysisRuleCustomProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied to + * the output of the direct query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html#cfn-cleanrooms-configuredtable-analysisrulecustom-additionalanalyses) + */ + public fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The ARN of the analysis templates that are allowed by the custom analysis rule. * @@ -1286,11 +1346,25 @@ public open class CfnConfiguredTable( */ public fun differentialPrivacy(): Any? = unwrap(this).getDifferentialPrivacy() + /** + * A list of columns that aren't allowed to be shown in the query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html#cfn-cleanrooms-configuredtable-analysisrulecustom-disallowedoutputcolumns) + */ + public fun disallowedOutputColumns(): List = unwrap(this).getDisallowedOutputColumns() + ?: emptyList() + /** * A builder for [AnalysisRuleCustomProperty] */ @CdkDslMarker public interface Builder { + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + */ + public fun additionalAnalyses(additionalAnalyses: String) + /** * @param allowedAnalyses The ARN of the analysis templates that are allowed by the custom * analysis rule. @@ -1334,6 +1408,18 @@ public open class CfnConfiguredTable( @JvmName("68525e7452b4a2f759a4506872d5696396f687bb0c04eda5fe6627d5d83f845c") public fun differentialPrivacy(differentialPrivacy: DifferentialPrivacyProperty.Builder.() -> Unit) + + /** + * @param disallowedOutputColumns A list of columns that aren't allowed to be shown in the + * query output. + */ + public fun disallowedOutputColumns(disallowedOutputColumns: List) + + /** + * @param disallowedOutputColumns A list of columns that aren't allowed to be shown in the + * query output. + */ + public fun disallowedOutputColumns(vararg disallowedOutputColumns: String) } private class BuilderImpl : Builder { @@ -1342,6 +1428,14 @@ public open class CfnConfiguredTable( = software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty.builder() + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + */ + override fun additionalAnalyses(additionalAnalyses: String) { + cdkBuilder.additionalAnalyses(additionalAnalyses) + } + /** * @param allowedAnalyses The ARN of the analysis templates that are allowed by the custom * analysis rule. @@ -1397,6 +1491,21 @@ public open class CfnConfiguredTable( fun differentialPrivacy(differentialPrivacy: DifferentialPrivacyProperty.Builder.() -> Unit): Unit = differentialPrivacy(DifferentialPrivacyProperty(differentialPrivacy)) + /** + * @param disallowedOutputColumns A list of columns that aren't allowed to be shown in the + * query output. + */ + override fun disallowedOutputColumns(disallowedOutputColumns: List) { + cdkBuilder.disallowedOutputColumns(disallowedOutputColumns) + } + + /** + * @param disallowedOutputColumns A list of columns that aren't allowed to be shown in the + * query output. + */ + override fun disallowedOutputColumns(vararg disallowedOutputColumns: String): Unit = + disallowedOutputColumns(disallowedOutputColumns.toList()) + public fun build(): software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty = cdkBuilder.build() @@ -1404,7 +1513,16 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty, - ) : CdkObject(cdkObject), AnalysisRuleCustomProperty { + ) : CdkObject(cdkObject), + AnalysisRuleCustomProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied + * to the output of the direct query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html#cfn-cleanrooms-configuredtable-analysisrulecustom-additionalanalyses) + */ + override fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The ARN of the analysis templates that are allowed by the custom analysis rule. * @@ -1428,6 +1546,14 @@ public open class CfnConfiguredTable( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html#cfn-cleanrooms-configuredtable-analysisrulecustom-differentialprivacy) */ override fun differentialPrivacy(): Any? = unwrap(this).getDifferentialPrivacy() + + /** + * A list of columns that aren't allowed to be shown in the query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulecustom.html#cfn-cleanrooms-configuredtable-analysisrulecustom-disallowedoutputcolumns) + */ + override fun disallowedOutputColumns(): List = + unwrap(this).getDisallowedOutputColumns() ?: emptyList() } public companion object { @@ -1461,6 +1587,7 @@ public open class CfnConfiguredTable( * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build(); * ``` @@ -1468,6 +1595,14 @@ public open class CfnConfiguredTable( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulelist.html) */ public interface AnalysisRuleListProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied to + * the output of the direct query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulelist.html#cfn-cleanrooms-configuredtable-analysisrulelist-additionalanalyses) + */ + public fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The logical operators (if any) that are to be used in an INNER JOIN match condition. * @@ -1498,6 +1633,12 @@ public open class CfnConfiguredTable( */ @CdkDslMarker public interface Builder { + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + */ + public fun additionalAnalyses(additionalAnalyses: String) + /** * @param allowedJoinOperators The logical operators (if any) that are to be used in an INNER * JOIN match condition. @@ -1541,6 +1682,14 @@ public open class CfnConfiguredTable( = software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleListProperty.builder() + /** + * @param additionalAnalyses An indicator as to whether additional analyses (such as AWS Clean + * Rooms ML) can be applied to the output of the direct query. + */ + override fun additionalAnalyses(additionalAnalyses: String) { + cdkBuilder.additionalAnalyses(additionalAnalyses) + } + /** * @param allowedJoinOperators The logical operators (if any) that are to be used in an INNER * JOIN match condition. @@ -1591,7 +1740,16 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleListProperty, - ) : CdkObject(cdkObject), AnalysisRuleListProperty { + ) : CdkObject(cdkObject), + AnalysisRuleListProperty { + /** + * An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied + * to the output of the direct query. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrulelist.html#cfn-cleanrooms-configuredtable-analysisrulelist-additionalanalyses) + */ + override fun additionalAnalyses(): String? = unwrap(this).getAdditionalAnalyses() + /** * The logical operators (if any) that are to be used in an INNER JOIN match condition. * @@ -1662,23 +1820,27 @@ public open class CfnConfiguredTable( * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build()) * .custom(AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build()) * .list(AnalysisRuleListProperty.builder() * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build()) * .build()) @@ -1774,7 +1936,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.AnalysisRuleProperty, - ) : CdkObject(cdkObject), AnalysisRuleProperty { + ) : CdkObject(cdkObject), + AnalysisRuleProperty { /** * A policy that describes the associated data usage limitations. * @@ -1834,23 +1997,27 @@ public open class CfnConfiguredTable( * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build()) * .custom(AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build()) * .list(AnalysisRuleListProperty.builder() * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build()) * .build()) @@ -1925,7 +2092,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyProperty, - ) : CdkObject(cdkObject), ConfiguredTableAnalysisRulePolicyProperty { + ) : CdkObject(cdkObject), + ConfiguredTableAnalysisRulePolicyProperty { /** * Controls on the query specifications that can be run on a configured table. * @@ -1978,23 +2146,27 @@ public open class CfnConfiguredTable( * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build()) * .custom(AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build()) * .list(AnalysisRuleListProperty.builder() * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build()) * .build(); @@ -2166,7 +2338,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyV1Property, - ) : CdkObject(cdkObject), ConfiguredTableAnalysisRulePolicyV1Property { + ) : CdkObject(cdkObject), + ConfiguredTableAnalysisRulePolicyV1Property { /** * Analysis rule type that enables only aggregation queries on a configured table. * @@ -2275,7 +2448,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.DifferentialPrivacyColumnProperty, - ) : CdkObject(cdkObject), DifferentialPrivacyColumnProperty { + ) : CdkObject(cdkObject), + DifferentialPrivacyColumnProperty { /** * The name of the column, such as user_id, that contains the unique identifier of your users, * whose privacy you want to protect. @@ -2410,7 +2584,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.DifferentialPrivacyProperty, - ) : CdkObject(cdkObject), DifferentialPrivacyProperty { + ) : CdkObject(cdkObject), + DifferentialPrivacyProperty { /** * The name of the column, such as user_id, that contains the unique identifier of your users, * whose privacy you want to protect. @@ -2516,7 +2691,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.GlueTableReferenceProperty, - ) : CdkObject(cdkObject), GlueTableReferenceProperty { + ) : CdkObject(cdkObject), + GlueTableReferenceProperty { /** * The name of the database the AWS Glue table belongs to. * @@ -2643,7 +2819,8 @@ public open class CfnConfiguredTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTable.TableReferenceProperty, - ) : CdkObject(cdkObject), TableReferenceProperty { + ) : CdkObject(cdkObject), + TableReferenceProperty { /** * If present, a reference to the AWS Glue table referred to by this table reference. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociation.kt index 1faf9ba928..e6d7b7c63f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociation.kt @@ -5,13 +5,18 @@ package io.cloudshiftdev.awscdk.services.cleanrooms import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggableV2 import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -33,6 +38,25 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .name("name") * .roleArn("roleArn") * // the properties below are optional + * .configuredTableAssociationAnalysisRules(List.of(ConfiguredTableAssociationAnalysisRuleProperty.builder() + * .policy(ConfiguredTableAssociationAnalysisRulePolicyProperty.builder() + * .v1(ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + * .aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .custom(ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .list(ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .build()) + * .build()) + * .type("type") + * .build())) * .description("description") * .tags(List.of(CfnTag.builder() * .key("key") @@ -45,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfiguredTableAssociation( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -84,6 +110,32 @@ public open class CfnConfiguredTableAssociation( public override fun cdkTagManager(): TagManager = unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** + * An analysis rule for a configured table association. + */ + public open fun configuredTableAssociationAnalysisRules(): Any? = + unwrap(this).getConfiguredTableAssociationAnalysisRules() + + /** + * An analysis rule for a configured table association. + */ + public open fun configuredTableAssociationAnalysisRules(`value`: IResolvable) { + unwrap(this).setConfiguredTableAssociationAnalysisRules(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An analysis rule for a configured table association. + */ + public open fun configuredTableAssociationAnalysisRules(`value`: List) { + unwrap(this).setConfiguredTableAssociationAnalysisRules(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An analysis rule for a configured table association. + */ + public open fun configuredTableAssociationAnalysisRules(vararg `value`: Any): Unit = + configuredTableAssociationAnalysisRules(`value`.toList()) + /** * A unique identifier for the configured table to be associated to. */ @@ -176,6 +228,48 @@ public open class CfnConfiguredTableAssociation( */ @CdkDslMarker public interface Builder { + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + public + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: IResolvable) + + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + public + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: List) + + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + public fun configuredTableAssociationAnalysisRules(vararg + configuredTableAssociationAnalysisRules: Any) + /** * A unique identifier for the configured table to be associated to. * @@ -258,6 +352,53 @@ public open class CfnConfiguredTableAssociation( software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.Builder.create(scope, id) + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + override + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: IResolvable) { + cdkBuilder.configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.let(IResolvable.Companion::unwrap)) + } + + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + override + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: List) { + cdkBuilder.configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + */ + override fun configuredTableAssociationAnalysisRules(vararg + configuredTableAssociationAnalysisRules: Any): Unit = + configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.toList()) + /** * A unique identifier for the configured table to be associated to. * @@ -367,4 +508,1022 @@ public open class CfnConfiguredTableAssociation( software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation = wrapped.cdkObject as software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation } + + /** + * The configured table association analysis rule applied to a configured table with the + * aggregation analysis rule. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRuleAggregationProperty + * configuredTableAssociationAnalysisRuleAggregationProperty = + * ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation.html) + */ + public interface ConfiguredTableAssociationAnalysisRuleAggregationProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on + * query output. + * + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule ( + * `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation-allowedadditionalanalyses) + */ + public fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with this + * configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation-allowedresultreceivers) + */ + public fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() ?: + emptyList() + + /** + * A builder for [ConfiguredTableAssociationAnalysisRuleAggregationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule + * ( `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + public fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule + * ( `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + public fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(allowedResultReceivers: List) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(vararg allowedResultReceivers: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule + * ( `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + override fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) { + cdkBuilder.allowedAdditionalAnalyses(allowedAdditionalAnalyses) + } + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule + * ( `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + */ + override fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String): Unit = + allowedAdditionalAnalyses(allowedAdditionalAnalyses.toList()) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(allowedResultReceivers: List) { + cdkBuilder.allowedResultReceivers(allowedResultReceivers) + } + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(vararg allowedResultReceivers: String): Unit = + allowedResultReceivers(allowedResultReceivers.toList()) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRuleAggregationProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis + * on query output. + * + * The `allowedAdditionalAnalyses` parameter is currently supported for the list analysis rule + * ( `AnalysisRuleList` ) and the custom analysis rule ( `AnalysisRuleCustom` ). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation-allowedadditionalanalyses) + */ + override fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with + * this configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisruleaggregation-allowedresultreceivers) + */ + override fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() + ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRuleAggregationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty): + ConfiguredTableAssociationAnalysisRuleAggregationProperty = + CdkObjectWrappers.wrap(cdkObject) as? + ConfiguredTableAssociationAnalysisRuleAggregationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRuleAggregationProperty): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleAggregationProperty + } + } + + /** + * The configured table association analysis rule applied to a configured table with the custom + * analysis rule. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRuleCustomProperty + * configuredTableAssociationAnalysisRuleCustomProperty = + * ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom.html) + */ + public interface ConfiguredTableAssociationAnalysisRuleCustomProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on + * query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom-allowedadditionalanalyses) + */ + public fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with this + * configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom-allowedresultreceivers) + */ + public fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() ?: + emptyList() + + /** + * A builder for [ConfiguredTableAssociationAnalysisRuleCustomProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + public fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + public fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(allowedResultReceivers: List) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(vararg allowedResultReceivers: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + override fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) { + cdkBuilder.allowedAdditionalAnalyses(allowedAdditionalAnalyses) + } + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + override fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String): Unit = + allowedAdditionalAnalyses(allowedAdditionalAnalyses.toList()) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(allowedResultReceivers: List) { + cdkBuilder.allowedResultReceivers(allowedResultReceivers) + } + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(vararg allowedResultReceivers: String): Unit = + allowedResultReceivers(allowedResultReceivers.toList()) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRuleCustomProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis + * on query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom-allowedadditionalanalyses) + */ + override fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with + * this configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulecustom-allowedresultreceivers) + */ + override fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() + ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRuleCustomProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty): + ConfiguredTableAssociationAnalysisRuleCustomProperty = CdkObjectWrappers.wrap(cdkObject) + as? ConfiguredTableAssociationAnalysisRuleCustomProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRuleCustomProperty): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleCustomProperty + } + } + + /** + * The configured table association analysis rule applied to a configured table with the list + * analysis rule. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRuleListProperty + * configuredTableAssociationAnalysisRuleListProperty = + * ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist.html) + */ + public interface ConfiguredTableAssociationAnalysisRuleListProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis on + * query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist-allowedadditionalanalyses) + */ + public fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with this + * configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist-allowedresultreceivers) + */ + public fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() ?: + emptyList() + + /** + * A builder for [ConfiguredTableAssociationAnalysisRuleListProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + public fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + public fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(allowedResultReceivers: List) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + public fun allowedResultReceivers(vararg allowedResultReceivers: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty.builder() + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + override fun allowedAdditionalAnalyses(allowedAdditionalAnalyses: List) { + cdkBuilder.allowedAdditionalAnalyses(allowedAdditionalAnalyses) + } + + /** + * @param allowedAdditionalAnalyses The list of resources or wildcards (ARNs) that are allowed + * to perform additional analysis on query output. + */ + override fun allowedAdditionalAnalyses(vararg allowedAdditionalAnalyses: String): Unit = + allowedAdditionalAnalyses(allowedAdditionalAnalyses.toList()) + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(allowedResultReceivers: List) { + cdkBuilder.allowedResultReceivers(allowedResultReceivers) + } + + /** + * @param allowedResultReceivers The list of collaboration members who are allowed to receive + * results of queries run with this configured table. + */ + override fun allowedResultReceivers(vararg allowedResultReceivers: String): Unit = + allowedResultReceivers(allowedResultReceivers.toList()) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRuleListProperty { + /** + * The list of resources or wildcards (ARNs) that are allowed to perform additional analysis + * on query output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist-allowedadditionalanalyses) + */ + override fun allowedAdditionalAnalyses(): List = + unwrap(this).getAllowedAdditionalAnalyses() ?: emptyList() + + /** + * The list of collaboration members who are allowed to receive results of queries run with + * this configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulelist-allowedresultreceivers) + */ + override fun allowedResultReceivers(): List = unwrap(this).getAllowedResultReceivers() + ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRuleListProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty): + ConfiguredTableAssociationAnalysisRuleListProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfiguredTableAssociationAnalysisRuleListProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRuleListProperty): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleListProperty + } + } + + /** + * Controls on the query specifications that can be run on an associated configured table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRulePolicyProperty + * configuredTableAssociationAnalysisRulePolicyProperty = + * ConfiguredTableAssociationAnalysisRulePolicyProperty.builder() + * .v1(ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + * .aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .custom(ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .list(ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicy.html) + */ + public interface ConfiguredTableAssociationAnalysisRulePolicyProperty { + /** + * The policy for the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicy.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicy-v1) + */ + public fun v1(): Any + + /** + * A builder for [ConfiguredTableAssociationAnalysisRulePolicyProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param v1 The policy for the configured table association analysis rule. + */ + public fun v1(v1: IResolvable) + + /** + * @param v1 The policy for the configured table association analysis rule. + */ + public fun v1(v1: ConfiguredTableAssociationAnalysisRulePolicyV1Property) + + /** + * @param v1 The policy for the configured table association analysis rule. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("211ce285034ad977ffafc429e3982971e9da3768221359b1809c2b9a53157675") + public fun v1(v1: ConfiguredTableAssociationAnalysisRulePolicyV1Property.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty.builder() + + /** + * @param v1 The policy for the configured table association analysis rule. + */ + override fun v1(v1: IResolvable) { + cdkBuilder.v1(v1.let(IResolvable.Companion::unwrap)) + } + + /** + * @param v1 The policy for the configured table association analysis rule. + */ + override fun v1(v1: ConfiguredTableAssociationAnalysisRulePolicyV1Property) { + cdkBuilder.v1(v1.let(ConfiguredTableAssociationAnalysisRulePolicyV1Property.Companion::unwrap)) + } + + /** + * @param v1 The policy for the configured table association analysis rule. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("211ce285034ad977ffafc429e3982971e9da3768221359b1809c2b9a53157675") + override + fun v1(v1: ConfiguredTableAssociationAnalysisRulePolicyV1Property.Builder.() -> Unit): + Unit = v1(ConfiguredTableAssociationAnalysisRulePolicyV1Property(v1)) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRulePolicyProperty { + /** + * The policy for the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicy.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicy-v1) + */ + override fun v1(): Any = unwrap(this).getV1() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRulePolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty): + ConfiguredTableAssociationAnalysisRulePolicyProperty = CdkObjectWrappers.wrap(cdkObject) + as? ConfiguredTableAssociationAnalysisRulePolicyProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRulePolicyProperty): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyProperty + } + } + + /** + * Controls on the query specifications that can be run on an associated configured table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRulePolicyV1Property + * configuredTableAssociationAnalysisRulePolicyV1Property = + * ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + * .aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .custom(ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .list(ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html) + */ + public interface ConfiguredTableAssociationAnalysisRulePolicyV1Property { + /** + * Analysis rule type that enables only aggregation queries on a configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-aggregation) + */ + public fun aggregation(): Any? = unwrap(this).getAggregation() + + /** + * Analysis rule type that enables the table owner to approve custom SQL queries on their + * configured tables. + * + * It supports differential privacy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-custom) + */ + public fun custom(): Any? = unwrap(this).getCustom() + + /** + * Analysis rule type that enables only list queries on a configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-list) + */ + public fun list(): Any? = unwrap(this).getList() + + /** + * A builder for [ConfiguredTableAssociationAnalysisRulePolicyV1Property] + */ + @CdkDslMarker + public interface Builder { + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + public fun aggregation(aggregation: IResolvable) + + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + public fun aggregation(aggregation: ConfiguredTableAssociationAnalysisRuleAggregationProperty) + + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2da8fd06ce5ec6e417da9c4e223237243448d1af2ed1ecb6952ca9bb80469141") + public + fun aggregation(aggregation: ConfiguredTableAssociationAnalysisRuleAggregationProperty.Builder.() -> Unit) + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + public fun custom(custom: IResolvable) + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + public fun custom(custom: ConfiguredTableAssociationAnalysisRuleCustomProperty) + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5c27198f9e906abccccef97e6831b9dc042f9a8f71306a0bc9263160272e6db0") + public + fun custom(custom: ConfiguredTableAssociationAnalysisRuleCustomProperty.Builder.() -> Unit) + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + public fun list(list: IResolvable) + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + public fun list(list: ConfiguredTableAssociationAnalysisRuleListProperty) + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("98f94f3412c38693c92e7a4cab6e988ca07f8a2bfa6b3834cdf49d891e178eaa") + public fun list(list: ConfiguredTableAssociationAnalysisRuleListProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + override fun aggregation(aggregation: IResolvable) { + cdkBuilder.aggregation(aggregation.let(IResolvable.Companion::unwrap)) + } + + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + override + fun aggregation(aggregation: ConfiguredTableAssociationAnalysisRuleAggregationProperty) { + cdkBuilder.aggregation(aggregation.let(ConfiguredTableAssociationAnalysisRuleAggregationProperty.Companion::unwrap)) + } + + /** + * @param aggregation Analysis rule type that enables only aggregation queries on a configured + * table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2da8fd06ce5ec6e417da9c4e223237243448d1af2ed1ecb6952ca9bb80469141") + override + fun aggregation(aggregation: ConfiguredTableAssociationAnalysisRuleAggregationProperty.Builder.() -> Unit): + Unit = aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty(aggregation)) + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + override fun custom(custom: IResolvable) { + cdkBuilder.custom(custom.let(IResolvable.Companion::unwrap)) + } + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + override fun custom(custom: ConfiguredTableAssociationAnalysisRuleCustomProperty) { + cdkBuilder.custom(custom.let(ConfiguredTableAssociationAnalysisRuleCustomProperty.Companion::unwrap)) + } + + /** + * @param custom Analysis rule type that enables the table owner to approve custom SQL queries + * on their configured tables. + * It supports differential privacy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5c27198f9e906abccccef97e6831b9dc042f9a8f71306a0bc9263160272e6db0") + override + fun custom(custom: ConfiguredTableAssociationAnalysisRuleCustomProperty.Builder.() -> Unit): + Unit = custom(ConfiguredTableAssociationAnalysisRuleCustomProperty(custom)) + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + override fun list(list: IResolvable) { + cdkBuilder.list(list.let(IResolvable.Companion::unwrap)) + } + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + override fun list(list: ConfiguredTableAssociationAnalysisRuleListProperty) { + cdkBuilder.list(list.let(ConfiguredTableAssociationAnalysisRuleListProperty.Companion::unwrap)) + } + + /** + * @param list Analysis rule type that enables only list queries on a configured table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("98f94f3412c38693c92e7a4cab6e988ca07f8a2bfa6b3834cdf49d891e178eaa") + override + fun list(list: ConfiguredTableAssociationAnalysisRuleListProperty.Builder.() -> Unit): + Unit = list(ConfiguredTableAssociationAnalysisRuleListProperty(list)) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRulePolicyV1Property { + /** + * Analysis rule type that enables only aggregation queries on a configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-aggregation) + */ + override fun aggregation(): Any? = unwrap(this).getAggregation() + + /** + * Analysis rule type that enables the table owner to approve custom SQL queries on their + * configured tables. + * + * It supports differential privacy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-custom) + */ + override fun custom(): Any? = unwrap(this).getCustom() + + /** + * Analysis rule type that enables only list queries on a configured table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrulepolicyv1-list) + */ + override fun list(): Any? = unwrap(this).getList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRulePolicyV1Property { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property): + ConfiguredTableAssociationAnalysisRulePolicyV1Property = CdkObjectWrappers.wrap(cdkObject) + as? ConfiguredTableAssociationAnalysisRulePolicyV1Property ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRulePolicyV1Property): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRulePolicyV1Property + } + } + + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as the + * *collaboration analysis rule* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * ConfiguredTableAssociationAnalysisRuleProperty configuredTableAssociationAnalysisRuleProperty = + * ConfiguredTableAssociationAnalysisRuleProperty.builder() + * .policy(ConfiguredTableAssociationAnalysisRulePolicyProperty.builder() + * .v1(ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + * .aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .custom(ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .list(ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .build()) + * .build()) + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html) + */ + public interface ConfiguredTableAssociationAnalysisRuleProperty { + /** + * The policy of the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-policy) + */ + public fun policy(): Any + + /** + * The type of the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-type) + */ + public fun type(): String + + /** + * A builder for [ConfiguredTableAssociationAnalysisRuleProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param policy The policy of the configured table association analysis rule. + */ + public fun policy(policy: IResolvable) + + /** + * @param policy The policy of the configured table association analysis rule. + */ + public fun policy(policy: ConfiguredTableAssociationAnalysisRulePolicyProperty) + + /** + * @param policy The policy of the configured table association analysis rule. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a172a509e56316027b3eb53176c81acbb72594877a434bb9108f7d85c19a5154") + public + fun policy(policy: ConfiguredTableAssociationAnalysisRulePolicyProperty.Builder.() -> Unit) + + /** + * @param type The type of the configured table association analysis rule. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty.builder() + + /** + * @param policy The policy of the configured table association analysis rule. + */ + override fun policy(policy: IResolvable) { + cdkBuilder.policy(policy.let(IResolvable.Companion::unwrap)) + } + + /** + * @param policy The policy of the configured table association analysis rule. + */ + override fun policy(policy: ConfiguredTableAssociationAnalysisRulePolicyProperty) { + cdkBuilder.policy(policy.let(ConfiguredTableAssociationAnalysisRulePolicyProperty.Companion::unwrap)) + } + + /** + * @param policy The policy of the configured table association analysis rule. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a172a509e56316027b3eb53176c81acbb72594877a434bb9108f7d85c19a5154") + override + fun policy(policy: ConfiguredTableAssociationAnalysisRulePolicyProperty.Builder.() -> Unit): + Unit = policy(ConfiguredTableAssociationAnalysisRulePolicyProperty(policy)) + + /** + * @param type The type of the configured table association analysis rule. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty, + ) : CdkObject(cdkObject), + ConfiguredTableAssociationAnalysisRuleProperty { + /** + * The policy of the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-policy) + */ + override fun policy(): Any = unwrap(this).getPolicy() + + /** + * The type of the configured table association analysis rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrule-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConfiguredTableAssociationAnalysisRuleProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty): + ConfiguredTableAssociationAnalysisRuleProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfiguredTableAssociationAnalysisRuleProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfiguredTableAssociationAnalysisRuleProperty): + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociation.ConfiguredTableAssociationAnalysisRuleProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociationProps.kt index 06c0b1914e..e120174d72 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableAssociationProps.kt @@ -3,9 +3,11 @@ package io.cloudshiftdev.awscdk.services.cleanrooms import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -26,6 +28,25 @@ import kotlin.collections.List * .name("name") * .roleArn("roleArn") * // the properties below are optional + * .configuredTableAssociationAnalysisRules(List.of(ConfiguredTableAssociationAnalysisRuleProperty.builder() + * .policy(ConfiguredTableAssociationAnalysisRulePolicyProperty.builder() + * .v1(ConfiguredTableAssociationAnalysisRulePolicyV1Property.builder() + * .aggregation(ConfiguredTableAssociationAnalysisRuleAggregationProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .custom(ConfiguredTableAssociationAnalysisRuleCustomProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .list(ConfiguredTableAssociationAnalysisRuleListProperty.builder() + * .allowedAdditionalAnalyses(List.of("allowedAdditionalAnalyses")) + * .allowedResultReceivers(List.of("allowedResultReceivers")) + * .build()) + * .build()) + * .build()) + * .type("type") + * .build())) * .description("description") * .tags(List.of(CfnTag.builder() * .key("key") @@ -37,6 +58,18 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html) */ public interface CfnConfiguredTableAssociationProps { + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as the + * *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + */ + public fun configuredTableAssociationAnalysisRules(): Any? = + unwrap(this).getConfiguredTableAssociationAnalysisRules() + /** * A unique identifier for the configured table to be associated to. * @@ -93,6 +126,36 @@ public interface CfnConfiguredTableAssociationProps { */ @CdkDslMarker public interface Builder { + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + public + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: IResolvable) + + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + public + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: List) + + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + public fun configuredTableAssociationAnalysisRules(vararg + configuredTableAssociationAnalysisRules: Any) + /** * @param configuredTableIdentifier A unique identifier for the configured table to be * associated to. @@ -146,6 +209,41 @@ public interface CfnConfiguredTableAssociationProps { software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociationProps.Builder = software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociationProps.builder() + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + override + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: IResolvable) { + cdkBuilder.configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + override + fun configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules: List) { + cdkBuilder.configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param configuredTableAssociationAnalysisRules An analysis rule for a configured table + * association. + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + */ + override fun configuredTableAssociationAnalysisRules(vararg + configuredTableAssociationAnalysisRules: Any): Unit = + configuredTableAssociationAnalysisRules(configuredTableAssociationAnalysisRules.toList()) + /** * @param configuredTableIdentifier A unique identifier for the configured table to be * associated to. @@ -212,7 +310,20 @@ public interface CfnConfiguredTableAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableAssociationProps, - ) : CdkObject(cdkObject), CfnConfiguredTableAssociationProps { + ) : CdkObject(cdkObject), + CfnConfiguredTableAssociationProps { + /** + * An analysis rule for a configured table association. + * + * This analysis rule specifies how data from the table can be used within its associated + * collaboration. In the console, the `ConfiguredTableAssociationAnalysisRule` is referred to as + * the *collaboration analysis rule* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtableassociation.html#cfn-cleanrooms-configuredtableassociation-configuredtableassociationanalysisrules) + */ + override fun configuredTableAssociationAnalysisRules(): Any? = + unwrap(this).getConfiguredTableAssociationAnalysisRules() + /** * A unique identifier for the configured table to be associated to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableProps.kt index cc73228f2c..9209cface5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnConfiguredTableProps.kt @@ -50,23 +50,27 @@ import kotlin.jvm.JvmName * .build())) * .scalarFunctions(List.of("scalarFunctions")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .joinRequired("joinRequired") * .build()) * .custom(AnalysisRuleCustomProperty.builder() * .allowedAnalyses(List.of("allowedAnalyses")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedAnalysisProviders(List.of("allowedAnalysisProviders")) * .differentialPrivacy(DifferentialPrivacyProperty.builder() * .columns(List.of(DifferentialPrivacyColumnProperty.builder() * .name("name") * .build())) * .build()) + * .disallowedOutputColumns(List.of("disallowedOutputColumns")) * .build()) * .list(AnalysisRuleListProperty.builder() * .joinColumns(List.of("joinColumns")) * .listColumns(List.of("listColumns")) * // the properties below are optional + * .additionalAnalyses("additionalAnalyses") * .allowedJoinOperators(List.of("allowedJoinOperators")) * .build()) * .build()) @@ -101,7 +105,7 @@ public interface CfnConfiguredTableProps { public fun analysisMethod(): String /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) */ @@ -163,17 +167,17 @@ public interface CfnConfiguredTableProps { public fun analysisMethod(analysisMethod: String) /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(analysisRules: IResolvable) /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(analysisRules: List) /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ public fun analysisRules(vararg analysisRules: Any) @@ -251,21 +255,21 @@ public interface CfnConfiguredTableProps { } /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(analysisRules: IResolvable) { cdkBuilder.analysisRules(analysisRules.let(IResolvable.Companion::unwrap)) } /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(analysisRules: List) { cdkBuilder.analysisRules(analysisRules.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param analysisRules The entire created analysis rule. + * @param analysisRules The analysis rule that was created for the configured table. */ override fun analysisRules(vararg analysisRules: Any): Unit = analysisRules(analysisRules.toList()) @@ -331,7 +335,8 @@ public interface CfnConfiguredTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnConfiguredTableProps, - ) : CdkObject(cdkObject), CfnConfiguredTableProps { + ) : CdkObject(cdkObject), + CfnConfiguredTableProps { /** * The columns within the underlying AWS Glue table that can be utilized within collaborations. * @@ -349,7 +354,7 @@ public interface CfnConfiguredTableProps { override fun analysisMethod(): String = unwrap(this).getAnalysisMethod() /** - * The entire created analysis rule. + * The analysis rule that was created for the configured table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-configuredtable.html#cfn-cleanrooms-configuredtable-analysisrules) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTable.kt new file mode 100644 index 0000000000..0e748f0f74 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTable.kt @@ -0,0 +1,805 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cleanrooms + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Describes information about the ID mapping table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * CfnIdMappingTable cfnIdMappingTable = CfnIdMappingTable.Builder.create(this, + * "MyCfnIdMappingTable") + * .inputReferenceConfig(IdMappingTableInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build()) + * .membershipIdentifier("membershipIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .kmsKeyArn("kmsKeyArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html) + */ +public open class CfnIdMappingTable( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnIdMappingTableProps, + ) : + this(software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnIdMappingTableProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnIdMappingTableProps.Builder.() -> Unit, + ) : this(scope, id, CfnIdMappingTableProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the ID mapping table. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The Amazon Resource Name (ARN) of the collaboration that contains this ID mapping table. + */ + public open fun attrCollaborationArn(): String = unwrap(this).getAttrCollaborationArn() + + /** + * + */ + public open fun attrCollaborationIdentifier(): String = + unwrap(this).getAttrCollaborationIdentifier() + + /** + * + */ + public open fun attrIdMappingTableIdentifier(): String = + unwrap(this).getAttrIdMappingTableIdentifier() + + /** + * + */ + public open fun attrInputReferenceProperties(): IResolvable = + unwrap(this).getAttrInputReferenceProperties().let(IResolvable::wrap) + + /** + * The Amazon Resource Name (ARN) of the membership resource for the ID mapping table. + */ + public open fun attrMembershipArn(): String = unwrap(this).getAttrMembershipArn() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the ID mapping table. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the ID mapping table. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The input reference configuration for the ID mapping table. + */ + public open fun inputReferenceConfig(): Any = unwrap(this).getInputReferenceConfig() + + /** + * The input reference configuration for the ID mapping table. + */ + public open fun inputReferenceConfig(`value`: IResolvable) { + unwrap(this).setInputReferenceConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID mapping table. + */ + public open fun inputReferenceConfig(`value`: IdMappingTableInputReferenceConfigProperty) { + unwrap(this).setInputReferenceConfig(`value`.let(IdMappingTableInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4939568b89477c0f6fac0759062652da8320758c368649a3f31f4f88c4f2db1b") + public open + fun inputReferenceConfig(`value`: IdMappingTableInputReferenceConfigProperty.Builder.() -> Unit): + Unit = inputReferenceConfig(IdMappingTableInputReferenceConfigProperty(`value`)) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + */ + public open fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + */ + public open fun kmsKeyArn(`value`: String) { + unwrap(this).setKmsKeyArn(`value`) + } + + /** + * The unique identifier of the membership resource for the ID mapping table. + */ + public open fun membershipIdentifier(): String = unwrap(this).getMembershipIdentifier() + + /** + * The unique identifier of the membership resource for the ID mapping table. + */ + public open fun membershipIdentifier(`value`: String) { + unwrap(this).setMembershipIdentifier(`value`) + } + + /** + * The name of the ID mapping table. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the ID mapping table. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * An optional label that you can assign to a resource when you create it. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * An optional label that you can assign to a resource when you create it. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * An optional label that you can assign to a resource when you create it. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.cleanrooms.CfnIdMappingTable]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-description) + * @param description The description of the ID mapping table. + */ + public fun description(description: String) + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + public fun inputReferenceConfig(inputReferenceConfig: IResolvable) + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + public + fun inputReferenceConfig(inputReferenceConfig: IdMappingTableInputReferenceConfigProperty) + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f6fde6ce51ee22aeb708d2ab2819fdc4fdb2cf7bc044023d088253ce3ed0605") + public + fun inputReferenceConfig(inputReferenceConfig: IdMappingTableInputReferenceConfigProperty.Builder.() -> Unit) + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * The unique identifier of the membership resource for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-membershipidentifier) + * @param membershipIdentifier The unique identifier of the membership resource for the ID + * mapping table. + */ + public fun membershipIdentifier(membershipIdentifier: String) + + /** + * The name of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-name) + * @param name The name of the ID mapping table. + */ + public fun name(name: String) + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + * @param tags An optional label that you can assign to a resource when you create it. + */ + public fun tags(tags: List) + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + * @param tags An optional label that you can assign to a resource when you create it. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.Builder = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.Builder.create(scope, id) + + /** + * The description of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-description) + * @param description The description of the ID mapping table. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + override fun inputReferenceConfig(inputReferenceConfig: IResolvable) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + override + fun inputReferenceConfig(inputReferenceConfig: IdMappingTableInputReferenceConfigProperty) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IdMappingTableInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f6fde6ce51ee22aeb708d2ab2819fdc4fdb2cf7bc044023d088253ce3ed0605") + override + fun inputReferenceConfig(inputReferenceConfig: IdMappingTableInputReferenceConfigProperty.Builder.() -> Unit): + Unit = + inputReferenceConfig(IdMappingTableInputReferenceConfigProperty(inputReferenceConfig)) + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * The unique identifier of the membership resource for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-membershipidentifier) + * @param membershipIdentifier The unique identifier of the membership resource for the ID + * mapping table. + */ + override fun membershipIdentifier(membershipIdentifier: String) { + cdkBuilder.membershipIdentifier(membershipIdentifier) + } + + /** + * The name of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-name) + * @param name The name of the ID mapping table. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + * @param tags An optional label that you can assign to a resource when you create it. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + * @param tags An optional label that you can assign to a resource when you create it. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnIdMappingTable { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnIdMappingTable(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable): + CfnIdMappingTable = CfnIdMappingTable(cdkObject) + + internal fun unwrap(wrapped: CfnIdMappingTable): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable = wrapped.cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable + } + + /** + * Provides the input reference configuration for the ID mapping table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * IdMappingTableInputReferenceConfigProperty idMappingTableInputReferenceConfigProperty = + * IdMappingTableInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig.html) + */ + public interface IdMappingTableInputReferenceConfigProperty { + /** + * The Amazon Resource Name (ARN) of the referenced resource in AWS Entity Resolution . + * + * Valid values are ID mapping workflow ARNs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig-inputreferencearn) + */ + public fun inputReferenceArn(): String + + /** + * When `TRUE` , AWS Clean Rooms manages permissions for the ID mapping table resource. + * + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig-manageresourcepolicies) + */ + public fun manageResourcePolicies(): Any + + /** + * A builder for [IdMappingTableInputReferenceConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputReferenceArn The Amazon Resource Name (ARN) of the referenced resource in AWS + * Entity Resolution . + * Valid values are ID mapping workflow ARNs. + */ + public fun inputReferenceArn(inputReferenceArn: String) + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * mapping table resource. + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + */ + public fun manageResourcePolicies(manageResourcePolicies: Boolean) + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * mapping table resource. + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + */ + public fun manageResourcePolicies(manageResourcePolicies: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty.builder() + + /** + * @param inputReferenceArn The Amazon Resource Name (ARN) of the referenced resource in AWS + * Entity Resolution . + * Valid values are ID mapping workflow ARNs. + */ + override fun inputReferenceArn(inputReferenceArn: String) { + cdkBuilder.inputReferenceArn(inputReferenceArn) + } + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * mapping table resource. + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + */ + override fun manageResourcePolicies(manageResourcePolicies: Boolean) { + cdkBuilder.manageResourcePolicies(manageResourcePolicies) + } + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * mapping table resource. + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + */ + override fun manageResourcePolicies(manageResourcePolicies: IResolvable) { + cdkBuilder.manageResourcePolicies(manageResourcePolicies.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty, + ) : CdkObject(cdkObject), + IdMappingTableInputReferenceConfigProperty { + /** + * The Amazon Resource Name (ARN) of the referenced resource in AWS Entity Resolution . + * + * Valid values are ID mapping workflow ARNs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig-inputreferencearn) + */ + override fun inputReferenceArn(): String = unwrap(this).getInputReferenceArn() + + /** + * When `TRUE` , AWS Clean Rooms manages permissions for the ID mapping table resource. + * + * When `FALSE` , the resource owner manages permissions for the ID mapping table resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceconfig-manageresourcepolicies) + */ + override fun manageResourcePolicies(): Any = unwrap(this).getManageResourcePolicies() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdMappingTableInputReferenceConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty): + IdMappingTableInputReferenceConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdMappingTableInputReferenceConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdMappingTableInputReferenceConfigProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty + } + } + + /** + * The input reference properties for the ID mapping table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * IdMappingTableInputReferencePropertiesProperty idMappingTableInputReferencePropertiesProperty = + * IdMappingTableInputReferencePropertiesProperty.builder() + * .idMappingTableInputSource(List.of(IdMappingTableInputSourceProperty.builder() + * .idNamespaceAssociationId("idNamespaceAssociationId") + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceproperties.html) + */ + public interface IdMappingTableInputReferencePropertiesProperty { + /** + * The input source of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceproperties.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceproperties-idmappingtableinputsource) + */ + public fun idMappingTableInputSource(): Any + + /** + * A builder for [IdMappingTableInputReferencePropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + public fun idMappingTableInputSource(idMappingTableInputSource: IResolvable) + + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + public fun idMappingTableInputSource(idMappingTableInputSource: List) + + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + public fun idMappingTableInputSource(vararg idMappingTableInputSource: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty.builder() + + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + override fun idMappingTableInputSource(idMappingTableInputSource: IResolvable) { + cdkBuilder.idMappingTableInputSource(idMappingTableInputSource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + override fun idMappingTableInputSource(idMappingTableInputSource: List) { + cdkBuilder.idMappingTableInputSource(idMappingTableInputSource.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param idMappingTableInputSource The input source of the ID mapping table. + */ + override fun idMappingTableInputSource(vararg idMappingTableInputSource: Any): Unit = + idMappingTableInputSource(idMappingTableInputSource.toList()) + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty, + ) : CdkObject(cdkObject), + IdMappingTableInputReferencePropertiesProperty { + /** + * The input source of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputreferenceproperties.html#cfn-cleanrooms-idmappingtable-idmappingtableinputreferenceproperties-idmappingtableinputsource) + */ + override fun idMappingTableInputSource(): Any = unwrap(this).getIdMappingTableInputSource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdMappingTableInputReferencePropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty): + IdMappingTableInputReferencePropertiesProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdMappingTableInputReferencePropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdMappingTableInputReferencePropertiesProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputReferencePropertiesProperty + } + } + + /** + * The input source of the ID mapping table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * IdMappingTableInputSourceProperty idMappingTableInputSourceProperty = + * IdMappingTableInputSourceProperty.builder() + * .idNamespaceAssociationId("idNamespaceAssociationId") + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputsource.html) + */ + public interface IdMappingTableInputSourceProperty { + /** + * The unique identifier of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputsource.html#cfn-cleanrooms-idmappingtable-idmappingtableinputsource-idnamespaceassociationid) + */ + public fun idNamespaceAssociationId(): String + + /** + * The type of the input source of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputsource.html#cfn-cleanrooms-idmappingtable-idmappingtableinputsource-type) + */ + public fun type(): String + + /** + * A builder for [IdMappingTableInputSourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idNamespaceAssociationId The unique identifier of the ID namespace association. + */ + public fun idNamespaceAssociationId(idNamespaceAssociationId: String) + + /** + * @param type The type of the input source of the ID mapping table. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty.builder() + + /** + * @param idNamespaceAssociationId The unique identifier of the ID namespace association. + */ + override fun idNamespaceAssociationId(idNamespaceAssociationId: String) { + cdkBuilder.idNamespaceAssociationId(idNamespaceAssociationId) + } + + /** + * @param type The type of the input source of the ID mapping table. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty, + ) : CdkObject(cdkObject), + IdMappingTableInputSourceProperty { + /** + * The unique identifier of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputsource.html#cfn-cleanrooms-idmappingtable-idmappingtableinputsource-idnamespaceassociationid) + */ + override fun idNamespaceAssociationId(): String = unwrap(this).getIdNamespaceAssociationId() + + /** + * The type of the input source of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idmappingtable-idmappingtableinputsource.html#cfn-cleanrooms-idmappingtable-idmappingtableinputsource-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdMappingTableInputSourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty): + IdMappingTableInputSourceProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdMappingTableInputSourceProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdMappingTableInputSourceProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTable.IdMappingTableInputSourceProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTableProps.kt new file mode 100644 index 0000000000..c16c82dc2c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdMappingTableProps.kt @@ -0,0 +1,299 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cleanrooms + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnIdMappingTable`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * CfnIdMappingTableProps cfnIdMappingTableProps = CfnIdMappingTableProps.builder() + * .inputReferenceConfig(IdMappingTableInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build()) + * .membershipIdentifier("membershipIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .kmsKeyArn("kmsKeyArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html) + */ +public interface CfnIdMappingTableProps { + /** + * The description of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + */ + public fun inputReferenceConfig(): Any + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-kmskeyarn) + */ + public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The unique identifier of the membership resource for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-membershipidentifier) + */ + public fun membershipIdentifier(): String + + /** + * The name of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-name) + */ + public fun name(): String + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnIdMappingTableProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the ID mapping table. + */ + public fun description(description: String) + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + public fun inputReferenceConfig(inputReferenceConfig: IResolvable) + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + public + fun inputReferenceConfig(inputReferenceConfig: CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty) + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47462f61f8583f200b9adf7c7eb5942edcef5c4bf950d4f503cd6993a1defe36") + public + fun inputReferenceConfig(inputReferenceConfig: CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty.Builder.() -> Unit) + + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * @param membershipIdentifier The unique identifier of the membership resource for the ID + * mapping table. + */ + public fun membershipIdentifier(membershipIdentifier: String) + + /** + * @param name The name of the ID mapping table. + */ + public fun name(name: String) + + /** + * @param tags An optional label that you can assign to a resource when you create it. + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + */ + public fun tags(tags: List) + + /** + * @param tags An optional label that you can assign to a resource when you create it. + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps.Builder = + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps.builder() + + /** + * @param description The description of the ID mapping table. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + override fun inputReferenceConfig(inputReferenceConfig: IResolvable) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + override + fun inputReferenceConfig(inputReferenceConfig: CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * @param inputReferenceConfig The input reference configuration for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("47462f61f8583f200b9adf7c7eb5942edcef5c4bf950d4f503cd6993a1defe36") + override + fun inputReferenceConfig(inputReferenceConfig: CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty.Builder.() -> Unit): + Unit = + inputReferenceConfig(CfnIdMappingTable.IdMappingTableInputReferenceConfigProperty(inputReferenceConfig)) + + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS KMS key. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * @param membershipIdentifier The unique identifier of the membership resource for the ID + * mapping table. + */ + override fun membershipIdentifier(membershipIdentifier: String) { + cdkBuilder.membershipIdentifier(membershipIdentifier) + } + + /** + * @param name The name of the ID mapping table. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags An optional label that you can assign to a resource when you create it. + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags An optional label that you can assign to a resource when you create it. + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps, + ) : CdkObject(cdkObject), + CfnIdMappingTableProps { + /** + * The description of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The input reference configuration for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-inputreferenceconfig) + */ + override fun inputReferenceConfig(): Any = unwrap(this).getInputReferenceConfig() + + /** + * The Amazon Resource Name (ARN) of the AWS KMS key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-kmskeyarn) + */ + override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The unique identifier of the membership resource for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-membershipidentifier) + */ + override fun membershipIdentifier(): String = unwrap(this).getMembershipIdentifier() + + /** + * The name of the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * An optional label that you can assign to a resource when you create it. + * + * Each tag consists of a key and an optional value, both of which you define. When you use + * tagging, you can also use tag-based access control in IAM policies to control access to this + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idmappingtable.html#cfn-cleanrooms-idmappingtable-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnIdMappingTableProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps): + CfnIdMappingTableProps = CdkObjectWrappers.wrap(cdkObject) as? CfnIdMappingTableProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnIdMappingTableProps): + software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.cleanrooms.CfnIdMappingTableProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociation.kt new file mode 100644 index 0000000000..cee78d97dc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociation.kt @@ -0,0 +1,888 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cleanrooms + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Provides information to create the ID namespace association. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * CfnIdNamespaceAssociation cfnIdNamespaceAssociation = + * CfnIdNamespaceAssociation.Builder.create(this, "MyCfnIdNamespaceAssociation") + * .inputReferenceConfig(IdNamespaceAssociationInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build()) + * .membershipIdentifier("membershipIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .idMappingConfig(IdMappingConfigProperty.builder() + * .allowUseAsDimensionColumn(false) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html) + */ +public open class CfnIdNamespaceAssociation( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnIdNamespaceAssociationProps, + ) : + this(software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnIdNamespaceAssociationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnIdNamespaceAssociationProps.Builder.() -> Unit, + ) : this(scope, id, CfnIdNamespaceAssociationProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the ID namespace association. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The Amazon Resource Name (ARN) of the collaboration that contains this ID namespace + * association. + */ + public open fun attrCollaborationArn(): String = unwrap(this).getAttrCollaborationArn() + + /** + * + */ + public open fun attrCollaborationIdentifier(): String = + unwrap(this).getAttrCollaborationIdentifier() + + /** + * + */ + public open fun attrIdNamespaceAssociationIdentifier(): String = + unwrap(this).getAttrIdNamespaceAssociationIdentifier() + + /** + * + */ + public open fun attrInputReferenceProperties(): IResolvable = + unwrap(this).getAttrInputReferenceProperties().let(IResolvable::wrap) + + /** + * The Amazon Resource Name (ARN) of the membership resource for this ID namespace association. + */ + public open fun attrMembershipArn(): String = unwrap(this).getAttrMembershipArn() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the ID namespace association. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the ID namespace association. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The configuration settings for the ID mapping table. + */ + public open fun idMappingConfig(): Any? = unwrap(this).getIdMappingConfig() + + /** + * The configuration settings for the ID mapping table. + */ + public open fun idMappingConfig(`value`: IResolvable) { + unwrap(this).setIdMappingConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The configuration settings for the ID mapping table. + */ + public open fun idMappingConfig(`value`: IdMappingConfigProperty) { + unwrap(this).setIdMappingConfig(`value`.let(IdMappingConfigProperty.Companion::unwrap)) + } + + /** + * The configuration settings for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ddf873a3f962a710e3204774c79f5df06fbbd95f2899a134309d3c2771a64de8") + public open fun idMappingConfig(`value`: IdMappingConfigProperty.Builder.() -> Unit): Unit = + idMappingConfig(IdMappingConfigProperty(`value`)) + + /** + * The input reference configuration for the ID namespace association. + */ + public open fun inputReferenceConfig(): Any = unwrap(this).getInputReferenceConfig() + + /** + * The input reference configuration for the ID namespace association. + */ + public open fun inputReferenceConfig(`value`: IResolvable) { + unwrap(this).setInputReferenceConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID namespace association. + */ + public open + fun inputReferenceConfig(`value`: IdNamespaceAssociationInputReferenceConfigProperty) { + unwrap(this).setInputReferenceConfig(`value`.let(IdNamespaceAssociationInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID namespace association. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5b7c998b64168441712f562c9e9e3bf72510bda0a9946a3b4f8f2143217687fc") + public open + fun inputReferenceConfig(`value`: IdNamespaceAssociationInputReferenceConfigProperty.Builder.() -> Unit): + Unit = inputReferenceConfig(IdNamespaceAssociationInputReferenceConfigProperty(`value`)) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The unique identifier of the membership that contains the ID namespace association. + */ + public open fun membershipIdentifier(): String = unwrap(this).getMembershipIdentifier() + + /** + * The unique identifier of the membership that contains the ID namespace association. + */ + public open fun membershipIdentifier(`value`: String) { + unwrap(this).setMembershipIdentifier(`value`) + } + + /** + * The name of this ID namespace association. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of this ID namespace association. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.cleanrooms.CfnIdNamespaceAssociation]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-description) + * @param description The description of the ID namespace association. + */ + public fun description(description: String) + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + public fun idMappingConfig(idMappingConfig: IResolvable) + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + public fun idMappingConfig(idMappingConfig: IdMappingConfigProperty) + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8af315196a9f2ff6ba218fa3802e818c07063970d4607c0a8c5d47937eb2d91b") + public fun idMappingConfig(idMappingConfig: IdMappingConfigProperty.Builder.() -> Unit) + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + public fun inputReferenceConfig(inputReferenceConfig: IResolvable) + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + public + fun inputReferenceConfig(inputReferenceConfig: IdNamespaceAssociationInputReferenceConfigProperty) + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("065666178761ee7b06da0fe67dd357e7b728a1cc03d777b0296c77e897b33d22") + public + fun inputReferenceConfig(inputReferenceConfig: IdNamespaceAssociationInputReferenceConfigProperty.Builder.() -> Unit) + + /** + * The unique identifier of the membership that contains the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-membershipidentifier) + * @param membershipIdentifier The unique identifier of the membership that contains the ID + * namespace association. + */ + public fun membershipIdentifier(membershipIdentifier: String) + + /** + * The name of this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-name) + * @param name The name of this ID namespace association. + */ + public fun name(name: String) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + * @param tags + */ + public fun tags(tags: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + * @param tags + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.Builder = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.Builder.create(scope, + id) + + /** + * The description of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-description) + * @param description The description of the ID namespace association. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + override fun idMappingConfig(idMappingConfig: IResolvable) { + cdkBuilder.idMappingConfig(idMappingConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + override fun idMappingConfig(idMappingConfig: IdMappingConfigProperty) { + cdkBuilder.idMappingConfig(idMappingConfig.let(IdMappingConfigProperty.Companion::unwrap)) + } + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8af315196a9f2ff6ba218fa3802e818c07063970d4607c0a8c5d47937eb2d91b") + override fun idMappingConfig(idMappingConfig: IdMappingConfigProperty.Builder.() -> Unit): Unit + = idMappingConfig(IdMappingConfigProperty(idMappingConfig)) + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + override fun inputReferenceConfig(inputReferenceConfig: IResolvable) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + override + fun inputReferenceConfig(inputReferenceConfig: IdNamespaceAssociationInputReferenceConfigProperty) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IdNamespaceAssociationInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("065666178761ee7b06da0fe67dd357e7b728a1cc03d777b0296c77e897b33d22") + override + fun inputReferenceConfig(inputReferenceConfig: IdNamespaceAssociationInputReferenceConfigProperty.Builder.() -> Unit): + Unit = + inputReferenceConfig(IdNamespaceAssociationInputReferenceConfigProperty(inputReferenceConfig)) + + /** + * The unique identifier of the membership that contains the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-membershipidentifier) + * @param membershipIdentifier The unique identifier of the membership that contains the ID + * namespace association. + */ + override fun membershipIdentifier(membershipIdentifier: String) { + cdkBuilder.membershipIdentifier(membershipIdentifier) + } + + /** + * The name of this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-name) + * @param name The name of this ID namespace association. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + * @param tags + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + * @param tags + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnIdNamespaceAssociation { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnIdNamespaceAssociation(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation): + CfnIdNamespaceAssociation = CfnIdNamespaceAssociation(cdkObject) + + internal fun unwrap(wrapped: CfnIdNamespaceAssociation): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation = wrapped.cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation + } + + /** + * The configuration settings for the ID mapping table. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * IdMappingConfigProperty idMappingConfigProperty = IdMappingConfigProperty.builder() + * .allowUseAsDimensionColumn(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idmappingconfig.html) + */ + public interface IdMappingConfigProperty { + /** + * An indicator as to whether you can use your column as a dimension column in the ID mapping + * table ( `TRUE` ) or not ( `FALSE` ). + * + * Default is `FALSE` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idmappingconfig.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig-allowuseasdimensioncolumn) + */ + public fun allowUseAsDimensionColumn(): Any + + /** + * A builder for [IdMappingConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param allowUseAsDimensionColumn An indicator as to whether you can use your column as a + * dimension column in the ID mapping table ( `TRUE` ) or not ( `FALSE` ). + * Default is `FALSE` . + */ + public fun allowUseAsDimensionColumn(allowUseAsDimensionColumn: Boolean) + + /** + * @param allowUseAsDimensionColumn An indicator as to whether you can use your column as a + * dimension column in the ID mapping table ( `TRUE` ) or not ( `FALSE` ). + * Default is `FALSE` . + */ + public fun allowUseAsDimensionColumn(allowUseAsDimensionColumn: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty.builder() + + /** + * @param allowUseAsDimensionColumn An indicator as to whether you can use your column as a + * dimension column in the ID mapping table ( `TRUE` ) or not ( `FALSE` ). + * Default is `FALSE` . + */ + override fun allowUseAsDimensionColumn(allowUseAsDimensionColumn: Boolean) { + cdkBuilder.allowUseAsDimensionColumn(allowUseAsDimensionColumn) + } + + /** + * @param allowUseAsDimensionColumn An indicator as to whether you can use your column as a + * dimension column in the ID mapping table ( `TRUE` ) or not ( `FALSE` ). + * Default is `FALSE` . + */ + override fun allowUseAsDimensionColumn(allowUseAsDimensionColumn: IResolvable) { + cdkBuilder.allowUseAsDimensionColumn(allowUseAsDimensionColumn.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty, + ) : CdkObject(cdkObject), + IdMappingConfigProperty { + /** + * An indicator as to whether you can use your column as a dimension column in the ID mapping + * table ( `TRUE` ) or not ( `FALSE` ). + * + * Default is `FALSE` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idmappingconfig.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig-allowuseasdimensioncolumn) + */ + override fun allowUseAsDimensionColumn(): Any = unwrap(this).getAllowUseAsDimensionColumn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IdMappingConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty): + IdMappingConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? IdMappingConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdMappingConfigProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdMappingConfigProperty + } + } + + /** + * Provides the information for the ID namespace association input reference configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * IdNamespaceAssociationInputReferenceConfigProperty + * idNamespaceAssociationInputReferenceConfigProperty = + * IdNamespaceAssociationInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig.html) + */ + public interface IdNamespaceAssociationInputReferenceConfigProperty { + /** + * The Amazon Resource Name (ARN) of the AWS Entity Resolution resource that is being associated + * to the collaboration. + * + * Valid resource ARNs are from the ID namespaces that you own. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig-inputreferencearn) + */ + public fun inputReferenceArn(): String + + /** + * When `TRUE` , AWS Clean Rooms manages permissions for the ID namespace association resource. + * + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig-manageresourcepolicies) + */ + public fun manageResourcePolicies(): Any + + /** + * A builder for [IdNamespaceAssociationInputReferenceConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputReferenceArn The Amazon Resource Name (ARN) of the AWS Entity Resolution + * resource that is being associated to the collaboration. + * Valid resource ARNs are from the ID namespaces that you own. + */ + public fun inputReferenceArn(inputReferenceArn: String) + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * namespace association resource. + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + */ + public fun manageResourcePolicies(manageResourcePolicies: Boolean) + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * namespace association resource. + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + */ + public fun manageResourcePolicies(manageResourcePolicies: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty.builder() + + /** + * @param inputReferenceArn The Amazon Resource Name (ARN) of the AWS Entity Resolution + * resource that is being associated to the collaboration. + * Valid resource ARNs are from the ID namespaces that you own. + */ + override fun inputReferenceArn(inputReferenceArn: String) { + cdkBuilder.inputReferenceArn(inputReferenceArn) + } + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * namespace association resource. + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + */ + override fun manageResourcePolicies(manageResourcePolicies: Boolean) { + cdkBuilder.manageResourcePolicies(manageResourcePolicies) + } + + /** + * @param manageResourcePolicies When `TRUE` , AWS Clean Rooms manages permissions for the ID + * namespace association resource. + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + */ + override fun manageResourcePolicies(manageResourcePolicies: IResolvable) { + cdkBuilder.manageResourcePolicies(manageResourcePolicies.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty, + ) : CdkObject(cdkObject), + IdNamespaceAssociationInputReferenceConfigProperty { + /** + * The Amazon Resource Name (ARN) of the AWS Entity Resolution resource that is being + * associated to the collaboration. + * + * Valid resource ARNs are from the ID namespaces that you own. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig-inputreferencearn) + */ + override fun inputReferenceArn(): String = unwrap(this).getInputReferenceArn() + + /** + * When `TRUE` , AWS Clean Rooms manages permissions for the ID namespace association + * resource. + * + * When `FALSE` , the resource owner manages permissions for the ID namespace association + * resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceconfig-manageresourcepolicies) + */ + override fun manageResourcePolicies(): Any = unwrap(this).getManageResourcePolicies() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdNamespaceAssociationInputReferenceConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty): + IdNamespaceAssociationInputReferenceConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdNamespaceAssociationInputReferenceConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdNamespaceAssociationInputReferenceConfigProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty + } + } + + /** + * Provides the information for the ID namespace association input reference properties. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * Object idMappingWorkflowsSupported; + * IdNamespaceAssociationInputReferencePropertiesProperty + * idNamespaceAssociationInputReferencePropertiesProperty = + * IdNamespaceAssociationInputReferencePropertiesProperty.builder() + * .idMappingWorkflowsSupported(List.of(idMappingWorkflowsSupported)) + * .idNamespaceType("idNamespaceType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties.html) + */ + public interface IdNamespaceAssociationInputReferencePropertiesProperty { + /** + * Defines how ID mapping workflows are supported for this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties-idmappingworkflowssupported) + */ + public fun idMappingWorkflowsSupported(): Any? = unwrap(this).getIdMappingWorkflowsSupported() + + /** + * The ID namespace type for this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties-idnamespacetype) + */ + public fun idNamespaceType(): String? = unwrap(this).getIdNamespaceType() + + /** + * A builder for [IdNamespaceAssociationInputReferencePropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + public fun idMappingWorkflowsSupported(idMappingWorkflowsSupported: List) + + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + public fun idMappingWorkflowsSupported(vararg idMappingWorkflowsSupported: Any) + + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + public fun idMappingWorkflowsSupported(idMappingWorkflowsSupported: IResolvable) + + /** + * @param idNamespaceType The ID namespace type for this ID namespace association. + */ + public fun idNamespaceType(idNamespaceType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty.Builder + = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty.builder() + + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + override fun idMappingWorkflowsSupported(idMappingWorkflowsSupported: List) { + cdkBuilder.idMappingWorkflowsSupported(idMappingWorkflowsSupported.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + override fun idMappingWorkflowsSupported(vararg idMappingWorkflowsSupported: Any): Unit = + idMappingWorkflowsSupported(idMappingWorkflowsSupported.toList()) + + /** + * @param idMappingWorkflowsSupported Defines how ID mapping workflows are supported for this + * ID namespace association. + */ + override fun idMappingWorkflowsSupported(idMappingWorkflowsSupported: IResolvable) { + cdkBuilder.idMappingWorkflowsSupported(idMappingWorkflowsSupported.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idNamespaceType The ID namespace type for this ID namespace association. + */ + override fun idNamespaceType(idNamespaceType: String) { + cdkBuilder.idNamespaceType(idNamespaceType) + } + + public fun build(): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty, + ) : CdkObject(cdkObject), + IdNamespaceAssociationInputReferencePropertiesProperty { + /** + * Defines how ID mapping workflows are supported for this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties-idmappingworkflowssupported) + */ + override fun idMappingWorkflowsSupported(): Any? = + unwrap(this).getIdMappingWorkflowsSupported() + + /** + * The ID namespace type for this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties.html#cfn-cleanrooms-idnamespaceassociation-idnamespaceassociationinputreferenceproperties-idnamespacetype) + */ + override fun idNamespaceType(): String? = unwrap(this).getIdNamespaceType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdNamespaceAssociationInputReferencePropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty): + IdNamespaceAssociationInputReferencePropertiesProperty = CdkObjectWrappers.wrap(cdkObject) + as? IdNamespaceAssociationInputReferencePropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdNamespaceAssociationInputReferencePropertiesProperty): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferencePropertiesProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociationProps.kt new file mode 100644 index 0000000000..8d1dda1601 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnIdNamespaceAssociationProps.kt @@ -0,0 +1,316 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cleanrooms + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnIdNamespaceAssociation`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cleanrooms.*; + * CfnIdNamespaceAssociationProps cfnIdNamespaceAssociationProps = + * CfnIdNamespaceAssociationProps.builder() + * .inputReferenceConfig(IdNamespaceAssociationInputReferenceConfigProperty.builder() + * .inputReferenceArn("inputReferenceArn") + * .manageResourcePolicies(false) + * .build()) + * .membershipIdentifier("membershipIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .idMappingConfig(IdMappingConfigProperty.builder() + * .allowUseAsDimensionColumn(false) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html) + */ +public interface CfnIdNamespaceAssociationProps { + /** + * The description of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + */ + public fun idMappingConfig(): Any? = unwrap(this).getIdMappingConfig() + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + */ + public fun inputReferenceConfig(): Any + + /** + * The unique identifier of the membership that contains the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-membershipidentifier) + */ + public fun membershipIdentifier(): String + + /** + * The name of this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-name) + */ + public fun name(): String + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnIdNamespaceAssociationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the ID namespace association. + */ + public fun description(description: String) + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + public fun idMappingConfig(idMappingConfig: IResolvable) + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + public fun idMappingConfig(idMappingConfig: CfnIdNamespaceAssociation.IdMappingConfigProperty) + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d59ce824c58624b987694a60c3b54220de074634c6a4e37f386cc237da0610a8") + public + fun idMappingConfig(idMappingConfig: CfnIdNamespaceAssociation.IdMappingConfigProperty.Builder.() -> Unit) + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + public fun inputReferenceConfig(inputReferenceConfig: IResolvable) + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + public + fun inputReferenceConfig(inputReferenceConfig: CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty) + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8db4ca3cb779a432fd08dce5fd44df1ebb45d24429640294d9825dda78283b80") + public + fun inputReferenceConfig(inputReferenceConfig: CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty.Builder.() -> Unit) + + /** + * @param membershipIdentifier The unique identifier of the membership that contains the ID + * namespace association. + */ + public fun membershipIdentifier(membershipIdentifier: String) + + /** + * @param name The name of this ID namespace association. + */ + public fun name(name: String) + + /** + * @param tags the value to be set. + */ + public fun tags(tags: List) + + /** + * @param tags the value to be set. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps.Builder = + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps.builder() + + /** + * @param description The description of the ID namespace association. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + override fun idMappingConfig(idMappingConfig: IResolvable) { + cdkBuilder.idMappingConfig(idMappingConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + override + fun idMappingConfig(idMappingConfig: CfnIdNamespaceAssociation.IdMappingConfigProperty) { + cdkBuilder.idMappingConfig(idMappingConfig.let(CfnIdNamespaceAssociation.IdMappingConfigProperty.Companion::unwrap)) + } + + /** + * @param idMappingConfig The configuration settings for the ID mapping table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d59ce824c58624b987694a60c3b54220de074634c6a4e37f386cc237da0610a8") + override + fun idMappingConfig(idMappingConfig: CfnIdNamespaceAssociation.IdMappingConfigProperty.Builder.() -> Unit): + Unit = idMappingConfig(CfnIdNamespaceAssociation.IdMappingConfigProperty(idMappingConfig)) + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + override fun inputReferenceConfig(inputReferenceConfig: IResolvable) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + override + fun inputReferenceConfig(inputReferenceConfig: CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty) { + cdkBuilder.inputReferenceConfig(inputReferenceConfig.let(CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty.Companion::unwrap)) + } + + /** + * @param inputReferenceConfig The input reference configuration for the ID namespace + * association. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8db4ca3cb779a432fd08dce5fd44df1ebb45d24429640294d9825dda78283b80") + override + fun inputReferenceConfig(inputReferenceConfig: CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty.Builder.() -> Unit): + Unit = + inputReferenceConfig(CfnIdNamespaceAssociation.IdNamespaceAssociationInputReferenceConfigProperty(inputReferenceConfig)) + + /** + * @param membershipIdentifier The unique identifier of the membership that contains the ID + * namespace association. + */ + override fun membershipIdentifier(membershipIdentifier: String) { + cdkBuilder.membershipIdentifier(membershipIdentifier) + } + + /** + * @param name The name of this ID namespace association. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags the value to be set. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags the value to be set. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps, + ) : CdkObject(cdkObject), + CfnIdNamespaceAssociationProps { + /** + * The description of the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The configuration settings for the ID mapping table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-idmappingconfig) + */ + override fun idMappingConfig(): Any? = unwrap(this).getIdMappingConfig() + + /** + * The input reference configuration for the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-inputreferenceconfig) + */ + override fun inputReferenceConfig(): Any = unwrap(this).getInputReferenceConfig() + + /** + * The unique identifier of the membership that contains the ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-membershipidentifier) + */ + override fun membershipIdentifier(): String = unwrap(this).getMembershipIdentifier() + + /** + * The name of this ID namespace association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-idnamespaceassociation.html#cfn-cleanrooms-idnamespaceassociation-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnIdNamespaceAssociationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps): + CfnIdNamespaceAssociationProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnIdNamespaceAssociationProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnIdNamespaceAssociationProps): + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cleanrooms.CfnIdNamespaceAssociationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembership.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembership.kt index 0010fcef1b..21a6f16d90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembership.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembership.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMembership( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -587,7 +589,8 @@ public open class CfnMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership.MembershipPaymentConfigurationProperty, - ) : CdkObject(cdkObject), MembershipPaymentConfigurationProperty { + ) : CdkObject(cdkObject), + MembershipPaymentConfigurationProperty { /** * The payment responsibilities accepted by the collaboration member for query compute costs. * @@ -640,7 +643,7 @@ public open class CfnMembership( */ public interface MembershipProtectedQueryOutputConfigurationProperty { /** - * Required configuration for a protected query with an `S3` output type. + * Required configuration for a protected query with an `s3` output type. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-membershipprotectedqueryoutputconfiguration.html#cfn-cleanrooms-membership-membershipprotectedqueryoutputconfiguration-s3) */ @@ -652,17 +655,17 @@ public open class CfnMembership( @CdkDslMarker public interface Builder { /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ public fun s3(s3: IResolvable) /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ public fun s3(s3: ProtectedQueryS3OutputConfigurationProperty) /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b2597a2165549dafd127ba9eee175ac3ddd48f847c4150eae23d54c4edf57e86") @@ -676,21 +679,21 @@ public open class CfnMembership( software.amazon.awscdk.services.cleanrooms.CfnMembership.MembershipProtectedQueryOutputConfigurationProperty.builder() /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ override fun s3(s3: IResolvable) { cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) } /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ override fun s3(s3: ProtectedQueryS3OutputConfigurationProperty) { cdkBuilder.s3(s3.let(ProtectedQueryS3OutputConfigurationProperty.Companion::unwrap)) } /** - * @param s3 Required configuration for a protected query with an `S3` output type. + * @param s3 Required configuration for a protected query with an `s3` output type. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b2597a2165549dafd127ba9eee175ac3ddd48f847c4150eae23d54c4edf57e86") @@ -704,9 +707,10 @@ public open class CfnMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership.MembershipProtectedQueryOutputConfigurationProperty, - ) : CdkObject(cdkObject), MembershipProtectedQueryOutputConfigurationProperty { + ) : CdkObject(cdkObject), + MembershipProtectedQueryOutputConfigurationProperty { /** - * Required configuration for a protected query with an `S3` output type. + * Required configuration for a protected query with an `s3` output type. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-membershipprotectedqueryoutputconfiguration.html#cfn-cleanrooms-membership-membershipprotectedqueryoutputconfiguration-s3) */ @@ -852,7 +856,8 @@ public open class CfnMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership.MembershipProtectedQueryResultConfigurationProperty, - ) : CdkObject(cdkObject), MembershipProtectedQueryResultConfigurationProperty { + ) : CdkObject(cdkObject), + MembershipProtectedQueryResultConfigurationProperty { /** * Configuration for protected query results. * @@ -1006,7 +1011,8 @@ public open class CfnMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership.MembershipQueryComputePaymentConfigProperty, - ) : CdkObject(cdkObject), MembershipQueryComputePaymentConfigProperty { + ) : CdkObject(cdkObject), + MembershipQueryComputePaymentConfigProperty { /** * Indicates whether the collaboration member has accepted to pay for query compute costs ( * `TRUE` ) or has not accepted to pay for query compute costs ( `FALSE` ). @@ -1141,7 +1147,8 @@ public open class CfnMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembership.ProtectedQueryS3OutputConfigurationProperty, - ) : CdkObject(cdkObject), ProtectedQueryS3OutputConfigurationProperty { + ) : CdkObject(cdkObject), + ProtectedQueryS3OutputConfigurationProperty { /** * The S3 bucket to unload the protected query results. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembershipProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembershipProps.kt index 0ec4f102f3..f7606b52d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembershipProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnMembershipProps.kt @@ -269,7 +269,8 @@ public interface CfnMembershipProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnMembershipProps, - ) : CdkObject(cdkObject), CfnMembershipProps { + ) : CdkObject(cdkObject), + CfnMembershipProps { /** * The unique ID for the associated collaboration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplate.kt index 189bf6d1c7..0eebe8c914 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplate.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrivacyBudgetTemplate( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnPrivacyBudgetTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -138,26 +140,26 @@ public open class CfnPrivacyBudgetTemplate( } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. */ public open fun parameters(): Any = unwrap(this).getParameters() /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. */ public open fun parameters(`value`: IResolvable) { unwrap(this).setParameters(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. */ public open fun parameters(`value`: ParametersProperty) { unwrap(this).setParameters(`value`.let(ParametersProperty.Companion::unwrap)) } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("17f1a856e6a243445ca1547fc7b18d136ee5d18d64120adf860743610bba9970") @@ -223,28 +225,28 @@ public open class CfnPrivacyBudgetTemplate( public fun membershipIdentifier(membershipIdentifier: String) /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ public fun parameters(parameters: IResolvable) /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ public fun parameters(parameters: ParametersProperty) /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -316,10 +318,10 @@ public open class CfnPrivacyBudgetTemplate( } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ override fun parameters(parameters: IResolvable) { @@ -327,10 +329,10 @@ public open class CfnPrivacyBudgetTemplate( } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ override fun parameters(parameters: ParametersProperty) { @@ -338,10 +340,10 @@ public open class CfnPrivacyBudgetTemplate( } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -406,7 +408,7 @@ public open class CfnPrivacyBudgetTemplate( } /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * Example: * @@ -487,7 +489,8 @@ public open class CfnPrivacyBudgetTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnPrivacyBudgetTemplate.ParametersProperty, - ) : CdkObject(cdkObject), ParametersProperty { + ) : CdkObject(cdkObject), + ParametersProperty { /** * The epsilon value that you want to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplateProps.kt index f6bced084a..6281a8a2a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanrooms/CfnPrivacyBudgetTemplateProps.kt @@ -65,7 +65,7 @@ public interface CfnPrivacyBudgetTemplateProps { public fun membershipIdentifier(): String /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) */ @@ -107,19 +107,19 @@ public interface CfnPrivacyBudgetTemplateProps { public fun membershipIdentifier(membershipIdentifier: String) /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ public fun parameters(parameters: IResolvable) /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ public fun parameters(parameters: CfnPrivacyBudgetTemplate.ParametersProperty) /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -171,7 +171,7 @@ public interface CfnPrivacyBudgetTemplateProps { } /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ override fun parameters(parameters: IResolvable) { @@ -179,7 +179,7 @@ public interface CfnPrivacyBudgetTemplateProps { } /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ override fun parameters(parameters: CfnPrivacyBudgetTemplate.ParametersProperty) { @@ -187,7 +187,7 @@ public interface CfnPrivacyBudgetTemplateProps { } /** - * @param parameters Specifies the epislon and noise parameters for the privacy budget template. + * @param parameters Specifies the epsilon and noise parameters for the privacy budget template. * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -223,7 +223,8 @@ public interface CfnPrivacyBudgetTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanrooms.CfnPrivacyBudgetTemplateProps, - ) : CdkObject(cdkObject), CfnPrivacyBudgetTemplateProps { + ) : CdkObject(cdkObject), + CfnPrivacyBudgetTemplateProps { /** * How often the privacy budget refreshes. * @@ -247,7 +248,7 @@ public interface CfnPrivacyBudgetTemplateProps { override fun membershipIdentifier(): String = unwrap(this).getMembershipIdentifier() /** - * Specifies the epislon and noise parameters for the privacy budget template. + * Specifies the epsilon and noise parameters for the privacy budget template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-privacybudgettemplate.html#cfn-cleanrooms-privacybudgettemplate-parameters) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDataset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDataset.kt index f434891878..e94060accc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDataset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDataset.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrainingDataset( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -544,7 +546,8 @@ public open class CfnTrainingDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset.ColumnSchemaProperty, - ) : CdkObject(cdkObject), ColumnSchemaProperty { + ) : CdkObject(cdkObject), + ColumnSchemaProperty { /** * The name of a column. * @@ -672,7 +675,8 @@ public open class CfnTrainingDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset.DataSourceProperty, - ) : CdkObject(cdkObject), DataSourceProperty { + ) : CdkObject(cdkObject), + DataSourceProperty { /** * A GlueDataSource object that defines the catalog ID, database name, and table name for the * training data. @@ -840,7 +844,8 @@ public open class CfnTrainingDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset.DatasetInputConfigProperty, - ) : CdkObject(cdkObject), DatasetInputConfigProperty { + ) : CdkObject(cdkObject), + DatasetInputConfigProperty { /** * A DataSource object that specifies the Glue data source for the training data. * @@ -995,7 +1000,8 @@ public open class CfnTrainingDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset.DatasetProperty, - ) : CdkObject(cdkObject), DatasetProperty { + ) : CdkObject(cdkObject), + DatasetProperty { /** * A DatasetInputConfig object that defines the data source and schema mapping. * @@ -1125,7 +1131,8 @@ public open class CfnTrainingDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDataset.GlueDataSourceProperty, - ) : CdkObject(cdkObject), GlueDataSourceProperty { + ) : CdkObject(cdkObject), + GlueDataSourceProperty { /** * The Glue catalog that contains the training data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDatasetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDatasetProps.kt index 6b4a16daf9..2af679fe09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDatasetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cleanroomsml/CfnTrainingDatasetProps.kt @@ -282,7 +282,8 @@ public interface CfnTrainingDatasetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cleanroomsml.CfnTrainingDatasetProps, - ) : CdkObject(cdkObject), CfnTrainingDatasetProps { + ) : CdkObject(cdkObject), + CfnTrainingDatasetProps { /** * The description of the training dataset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2.kt index ebd89045b6..6dc7fedb14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironmentEC2( cdkObject: software.amazon.awscdk.services.cloud9.CfnEnvironmentEC2, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -702,7 +704,8 @@ public open class CfnEnvironmentEC2( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloud9.CfnEnvironmentEC2.RepositoryProperty, - ) : CdkObject(cdkObject), RepositoryProperty { + ) : CdkObject(cdkObject), + RepositoryProperty { /** * The path within the development environment's default file system location to clone the AWS * CodeCommit repository into. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2Props.kt index 66a900ed91..3a2c83870b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloud9/CfnEnvironmentEC2Props.kt @@ -395,7 +395,8 @@ public interface CfnEnvironmentEC2Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloud9.CfnEnvironmentEC2Props, - ) : CdkObject(cdkObject), CfnEnvironmentEC2Props { + ) : CdkObject(cdkObject), + CfnEnvironmentEC2Props { /** * The number of minutes until the running instance is shut down after the environment was last * used. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResource.kt index 51e96959a9..d7c06650ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResource.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomResource( cdkObject: software.amazon.awscdk.services.cloudformation.CfnCustomResource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -80,12 +81,12 @@ public open class CfnCustomResource( } /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. */ public open fun serviceToken(): String = unwrap(this).getServiceToken() /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. */ public open fun serviceToken(`value`: String) { unwrap(this).setServiceToken(`value`) @@ -97,19 +98,15 @@ public open class CfnCustomResource( @CdkDslMarker public interface Builder { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken) - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. */ public fun serviceToken(serviceToken: String) } @@ -122,19 +119,15 @@ public open class CfnCustomResource( = software.amazon.awscdk.services.cloudformation.CfnCustomResource.Builder.create(scope, id) /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . - * - * All other properties are defined by the service provider. + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken) - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. */ override fun serviceToken(serviceToken: String) { cdkBuilder.serviceToken(serviceToken) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResourceProps.kt index 6fb0c03b0f..7a70190b12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnCustomResourceProps.kt @@ -26,13 +26,9 @@ import kotlin.Unit */ public interface CfnCustomResourceProps { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * @@ -46,13 +42,9 @@ public interface CfnCustomResourceProps { @CdkDslMarker public interface Builder { /** - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. + * The service token must be from the same Region as the stack. * * Updates aren't supported. */ @@ -65,13 +57,9 @@ public interface CfnCustomResourceProps { software.amazon.awscdk.services.cloudformation.CfnCustomResourceProps.builder() /** - * @param serviceToken Only one property is defined by AWS for a custom resource: `ServiceToken` - * . - * All other properties are defined by the service provider. - * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * @param serviceToken The service token, such as an Amazon SNS topic ARN or Lambda function + * ARN. + * The service token must be from the same Region as the stack. * * Updates aren't supported. */ @@ -85,15 +73,12 @@ public interface CfnCustomResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnCustomResourceProps, - ) : CdkObject(cdkObject), CfnCustomResourceProps { + ) : CdkObject(cdkObject), + CfnCustomResourceProps { /** - * Only one property is defined by AWS for a custom resource: `ServiceToken` . - * - * All other properties are defined by the service provider. + * The service token, such as an Amazon SNS topic ARN or Lambda function ARN. * - * The service token that was given to the template developer by the service provider to access - * the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be - * from the same Region in which you are creating the stack. + * The service token must be from the same Region as the stack. * * Updates aren't supported. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersion.kt index 84b01eb42e..fe3b49e0b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersion.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookDefaultVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnHookDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersionProps.kt index 0a033ea558..1cc5d0ab49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookDefaultVersionProps.kt @@ -113,7 +113,8 @@ public interface CfnHookDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookDefaultVersionProps, - ) : CdkObject(cdkObject), CfnHookDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnHookDefaultVersionProps { /** * The name of the hook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfig.kt index 80d73aeb79..69e6bfab15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfig.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookTypeConfig( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookTypeConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfigProps.kt index 4880863a42..ebbfc4033d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookTypeConfigProps.kt @@ -153,7 +153,8 @@ public interface CfnHookTypeConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookTypeConfigProps, - ) : CdkObject(cdkObject), CfnHookTypeConfigProps { + ) : CdkObject(cdkObject), + CfnHookTypeConfigProps { /** * Specifies the activated hook type configuration, in this AWS account and AWS Region . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersion.kt index 3a58c82c3a..5be4dc796c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersion.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHookVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -459,7 +460,8 @@ public open class CfnHookVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookVersion.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch Logs group to which CloudFormation sends error logging information * when invoking the extension's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersionProps.kt index 8095de521e..418c257975 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnHookVersionProps.kt @@ -239,7 +239,8 @@ public interface CfnHookVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnHookVersionProps, - ) : CdkObject(cdkObject), CfnHookVersionProps { + ) : CdkObject(cdkObject), + CfnHookVersionProps { /** * The Amazon Resource Name (ARN) of the task execution role that grants the hook permission. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacro.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacro.kt index 7e37935e72..faf9887112 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacro.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacro.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMacro( cdkObject: software.amazon.awscdk.services.cloudformation.CfnMacro, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacroProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacroProps.kt index 918177bac4..68a267476d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacroProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnMacroProps.kt @@ -154,7 +154,8 @@ public interface CfnMacroProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnMacroProps, - ) : CdkObject(cdkObject), CfnMacroProps { + ) : CdkObject(cdkObject), + CfnMacroProps { /** * A description of the macro. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersion.kt index 4a02b0f094..d0a85feac1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersion.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModuleDefaultVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnModuleDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnModuleDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersionProps.kt index 25b88b9b30..62cc0a8de4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleDefaultVersionProps.kt @@ -116,7 +116,8 @@ public interface CfnModuleDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnModuleDefaultVersionProps, - ) : CdkObject(cdkObject), CfnModuleDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnModuleDefaultVersionProps { /** * The Amazon Resource Name (ARN) of the module version to set as the default version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersion.kt index 0aefa6a863..36ec31a23c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersion.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModuleVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnModuleVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -93,7 +94,7 @@ public open class CfnModuleVersion( * * For more information about extension schemas, see [Resource Provider * Schema](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ public open fun attrSchema(): String = unwrap(this).getAttrSchema() @@ -113,7 +114,7 @@ public open class CfnModuleVersion( * Valid values include: * * * `PRIVATE` : The extension is only visible and usable within the account in which it is - * registered. AWS CloudFormation marks any extensions you register as `PRIVATE` . + * registered. CloudFormation marks any extensions you register as `PRIVATE` . * * `PUBLIC` : The extension is publicly visible and usable within any AWS account. */ public open fun attrVisibility(): String = unwrap(this).getAttrVisibility() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersionProps.kt index ae8844a224..94b47ebdb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnModuleVersionProps.kt @@ -107,7 +107,8 @@ public interface CfnModuleVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnModuleVersionProps, - ) : CdkObject(cdkObject), CfnModuleVersionProps { + ) : CdkObject(cdkObject), + CfnModuleVersionProps { /** * The name of the module being registered. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersion.kt index dc04c752b3..8857c6af1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersion.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublicTypeVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnPublicTypeVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnPublicTypeVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -218,7 +219,7 @@ public open class CfnPublicTypeVersion( * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) @@ -306,7 +307,7 @@ public open class CfnPublicTypeVersion( * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersionProps.kt index fbd5e21bc4..a8953b1d54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublicTypeVersionProps.kt @@ -72,7 +72,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) @@ -139,7 +139,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . */ public fun publicVersionNumber(publicVersionNumber: String) @@ -203,7 +203,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . */ override fun publicVersionNumber(publicVersionNumber: String) { @@ -232,7 +232,8 @@ public interface CfnPublicTypeVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnPublicTypeVersionProps, - ) : CdkObject(cdkObject), CfnPublicTypeVersionProps { + ) : CdkObject(cdkObject), + CfnPublicTypeVersionProps { /** * The Amazon Resource Number (ARN) of the extension. * @@ -276,7 +277,7 @@ public interface CfnPublicTypeVersionProps { * If you don't specify a version number, CloudFormation increments the version number by one * minor version release. * - * You cannot specify a version number the first time you publish a type. AWS CloudFormation + * You cannot specify a version number the first time you publish a type. CloudFormation * automatically sets the first version number to be `1.0.0` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publictypeversion.html#cfn-cloudformation-publictypeversion-publicversionnumber) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisher.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisher.kt index f7e3eb80d8..c2270f6889 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisher.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisher.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublisher( cdkObject: software.amazon.awscdk.services.cloudformation.CfnPublisher, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -175,7 +176,7 @@ public open class CfnPublisher( * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) * @param connectionArn If you are using a Bitbucket or GitHub account for identity @@ -233,7 +234,7 @@ public open class CfnPublisher( * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) * @param connectionArn If you are using a Bitbucket or GitHub account for identity diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisherProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisherProps.kt index c49c2f9d00..b72d8ba7e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisherProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnPublisherProps.kt @@ -48,7 +48,7 @@ public interface CfnPublisherProps { * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) */ @@ -82,7 +82,7 @@ public interface CfnPublisherProps { * verification, the Amazon Resource Name (ARN) for your connection to that account. * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ public fun connectionArn(connectionArn: String) } @@ -118,7 +118,7 @@ public interface CfnPublisherProps { * verification, the Amazon Resource Name (ARN) for your connection to that account. * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . */ override fun connectionArn(connectionArn: String) { cdkBuilder.connectionArn(connectionArn) @@ -130,7 +130,8 @@ public interface CfnPublisherProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnPublisherProps, - ) : CdkObject(cdkObject), CfnPublisherProps { + ) : CdkObject(cdkObject), + CfnPublisherProps { /** * Whether you accept the [Terms and * Conditions](https://docs.aws.amazon.com/https://cloudformation-registry-documents.s3.amazonaws.com/Terms_and_Conditions_for_AWS_CloudFormation_Registry_Publishers.pdf) @@ -149,7 +150,7 @@ public interface CfnPublisherProps { * * For more information, see [Registering your account to publish CloudFormation * extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) - * in the *CloudFormation CLI User Guide* . + * in the *AWS CloudFormation Command Line Interface (CLI) User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-publisher.html#cfn-cloudformation-publisher-connectionarn) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersion.kt index fc2923cf72..c28f41bbdc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersion.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceDefaultVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnResourceDefaultVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnResourceDefaultVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersionProps.kt index 30f9beedd2..0438dd453d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceDefaultVersionProps.kt @@ -124,7 +124,8 @@ public interface CfnResourceDefaultVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnResourceDefaultVersionProps, - ) : CdkObject(cdkObject), CfnResourceDefaultVersionProps { + ) : CdkObject(cdkObject), + CfnResourceDefaultVersionProps { /** * The name of the resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersion.kt index b950979d4d..bb59f519fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersion.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceVersion( cdkObject: software.amazon.awscdk.services.cloudformation.CfnResourceVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -92,7 +93,7 @@ public open class CfnResourceVersion( /** * For resource type extensions, the provisioning behavior of the resource type. * - * AWS CloudFormation determines the provisioning type during registration, based on the types of + * CloudFormation determines the provisioning type during registration, based on the types of * handlers in the schema handler package submitted. * * Valid values include: @@ -131,7 +132,7 @@ public open class CfnResourceVersion( * Valid values include: * * * `PRIVATE` : The extension is only visible and usable within the account in which it is - * registered. AWS CloudFormation marks any extensions you register as `PRIVATE` . + * registered. CloudFormation marks any extensions you register as `PRIVATE` . * * `PUBLIC` : The extension is publicly visible and usable within any AWS account. */ public open fun attrVisibility(): String = unwrap(this).getAttrVisibility() @@ -521,7 +522,8 @@ public open class CfnResourceVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnResourceVersion.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch logs group to which CloudFormation sends error logging information * when invoking the type's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersionProps.kt index 57c82eb155..9f59ac5e9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnResourceVersionProps.kt @@ -258,7 +258,8 @@ public interface CfnResourceVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnResourceVersionProps, - ) : CdkObject(cdkObject), CfnResourceVersionProps { + ) : CdkObject(cdkObject), + CfnResourceVersionProps { /** * The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the * resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStack.kt index 1b9cdceba1..69426c9709 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStack.kt @@ -107,7 +107,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStack( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStack, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnStack(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -193,20 +195,20 @@ public open class CfnStack( } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(): List = unwrap(this).getNotificationArns() ?: emptyList() /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(`value`: List) { unwrap(this).setNotificationArns(`value`) } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. */ public open fun notificationArns(vararg `value`: String): Unit = notificationArns(`value`.toList()) @@ -288,28 +290,24 @@ public open class CfnStack( @CdkDslMarker public interface Builder { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ public fun notificationArns(notificationArns: List) /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ public fun notificationArns(vararg notificationArns: String) @@ -364,8 +362,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -375,8 +373,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -425,30 +423,26 @@ public open class CfnStack( software.amazon.awscdk.services.cloudformation.CfnStack.Builder.create(scope, id) /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ override fun notificationArns(notificationArns: List) { cdkBuilder.notificationArns(notificationArns) } /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-notificationarns) - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. */ override fun notificationArns(vararg notificationArns: String): Unit = notificationArns(notificationArns.toList()) @@ -508,8 +502,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -521,8 +515,8 @@ public open class CfnStack( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) * @param tags Key-value pairs to associate with this stack. @@ -702,7 +696,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStack.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * User defined description associated with the output. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackProps.kt index 992e78f465..8b7d99f948 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackProps.kt @@ -40,7 +40,7 @@ import kotlin.collections.Map */ public interface CfnStackProps { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). @@ -74,7 +74,7 @@ public interface CfnStackProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A maximum + * CloudFormation also propagates these tags to the resources created in the stack. A maximum * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) @@ -117,16 +117,14 @@ public interface CfnStackProps { @CdkDslMarker public interface Builder { /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ public fun notificationArns(notificationArns: List) /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -172,15 +170,15 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ public fun tags(tags: List) /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ public fun tags(vararg tags: CfnTag) @@ -214,8 +212,7 @@ public interface CfnStackProps { software.amazon.awscdk.services.cloudformation.CfnStackProps.builder() /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -224,8 +221,7 @@ public interface CfnStackProps { } /** - * @param notificationArns The Amazon Simple Notification Service (Amazon SNS) topic ARNs to - * publish stack related events. + * @param notificationArns The Amazon SNS topic ARNs to publish stack related events. * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). */ @@ -276,8 +272,8 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) @@ -285,8 +281,8 @@ public interface CfnStackProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -324,10 +320,10 @@ public interface CfnStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackProps, - ) : CdkObject(cdkObject), CfnStackProps { + ) : CdkObject(cdkObject), + CfnStackProps { /** - * The Amazon Simple Notification Service (Amazon SNS) topic ARNs to publish stack related - * events. + * The Amazon SNS topic ARNs to publish stack related events. * * You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line * Interface (CLI). @@ -362,8 +358,8 @@ public interface CfnStackProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to the resources created in the stack. A - * maximum number of 50 tags can be specified. + * CloudFormation also propagates these tags to the resources created in the stack. A maximum + * number of 50 tags can be specified. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSet.kt index 91cfe97cc6..a6eca1ada1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSet.kt @@ -55,6 +55,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .executionRoleName("executionRoleName") * .managedExecution(managedExecution) * .operationPreferences(OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -93,7 +94,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStackSet( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -670,11 +673,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -684,11 +687,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1049,11 +1052,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1065,11 +1068,11 @@ public open class CfnStackSet( /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) * @param tags Key-value pairs to associate with this stack. @@ -1271,7 +1274,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.AutoDeploymentProperty, - ) : CdkObject(cdkObject), AutoDeploymentProperty { + ) : CdkObject(cdkObject), + AutoDeploymentProperty { /** * If set to `true` , StackSets automatically deploys additional stack instances to AWS * Organizations accounts that are added to a target organization or organizational unit (OU) in @@ -1342,16 +1346,11 @@ public open class CfnStackSet( * * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to update - * an entire OU and individual accounts from a different OU in one request, which used to be two - * separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` parameter. + * `UNION` is not supported for create operations when using StackSet as a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountfiltertype) */ @@ -1393,16 +1392,11 @@ public open class CfnStackSet( * additional accounts with provided OUs. * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. */ public fun accountFilterType(accountFilterType: String) @@ -1451,16 +1445,11 @@ public open class CfnStackSet( * additional accounts with provided OUs. * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. */ override fun accountFilterType(accountFilterType: String) { cdkBuilder.accountFilterType(accountFilterType) @@ -1513,23 +1502,19 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.DeploymentTargetsProperty, - ) : CdkObject(cdkObject), DeploymentTargetsProperty { + ) : CdkObject(cdkObject), + DeploymentTargetsProperty { /** * Limit deployment targets to individual accounts or include additional accounts with * provided OUs. * * The following is a list of possible values for the `AccountFilterType` operation. * - * * `INTERSECTION` : StackSets deploys to the accounts specified in `Accounts` parameter. - * * `DIFFERENCE` : StackSets excludes the accounts specified in `Accounts` parameter. This - * enables user to avoid certain accounts within an OU such as suspended accounts. - * * `UNION` : StackSets includes additional accounts deployment targets. - * - * This is the default value if `AccountFilterType` is not provided. This enables user to - * update an entire OU and individual accounts from a different OU in one request, which used to - * be two separate requests. - * - * * `NONE` : Deploys to all the accounts in specified organizational units (OU). + * * `INTERSECTION` : StackSet deploys to the accounts specified in the `Accounts` parameter. + * * `DIFFERENCE` : StackSet deploys to the OU, excluding the accounts specified in the + * `Accounts` parameter. + * * `UNION` StackSet deploys to the OU, and the accounts specified in the `Accounts` + * parameter. `UNION` is not supported for create operations when using StackSet as a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountfiltertype) */ @@ -1709,7 +1694,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.ManagedExecutionProperty, - ) : CdkObject(cdkObject), ManagedExecutionProperty { + ) : CdkObject(cdkObject), + ManagedExecutionProperty { /** * When `true` , StackSets performs non-conflicting operations concurrently and queues * conflicting operations. @@ -1765,6 +1751,7 @@ public open class CfnStackSet( * import io.cloudshiftdev.awscdk.services.cloudformation.*; * OperationPreferencesProperty operationPreferencesProperty = * OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -1777,6 +1764,26 @@ public open class CfnStackSet( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html) */ public interface OperationPreferencesProperty { + /** + * Specifies how the concurrency level behaves during the operation execution. + * + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to ensure + * the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. The initial + * actual concurrency is set to the lower of either the value of the `MaxConcurrentCount` , or the + * value of `FailureToleranceCount` +1. The actual concurrency is then reduced proportionally by + * the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of failures. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-concurrencymode) + */ + public fun concurrencyMode(): String? = unwrap(this).getConcurrencyMode() + /** * The number of accounts, per Region, for which this operation can fail before AWS * CloudFormation stops the operation in that Region. @@ -1867,6 +1874,25 @@ public open class CfnStackSet( */ @CdkDslMarker public interface Builder { + /** + * @param concurrencyMode Specifies how the concurrency level behaves during the operation + * execution. + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + */ + public fun concurrencyMode(concurrencyMode: String) + /** * @param failureToleranceCount The number of accounts, per Region, for which this operation * can fail before AWS CloudFormation stops the operation in that Region. @@ -1951,6 +1977,27 @@ public open class CfnStackSet( = software.amazon.awscdk.services.cloudformation.CfnStackSet.OperationPreferencesProperty.builder() + /** + * @param concurrencyMode Specifies how the concurrency level behaves during the operation + * execution. + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + */ + override fun concurrencyMode(concurrencyMode: String) { + cdkBuilder.concurrencyMode(concurrencyMode) + } + /** * @param failureToleranceCount The number of accounts, per Region, for which this operation * can fail before AWS CloudFormation stops the operation in that Region. @@ -2047,7 +2094,29 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.OperationPreferencesProperty, - ) : CdkObject(cdkObject), OperationPreferencesProperty { + ) : CdkObject(cdkObject), + OperationPreferencesProperty { + /** + * Specifies how the concurrency level behaves during the operation execution. + * + * * `STRICT_FAILURE_TOLERANCE` : This option dynamically lowers the concurrency level to + * ensure the number of failed accounts never exceeds the value of `FailureToleranceCount` +1. + * The initial actual concurrency is set to the lower of either the value of the + * `MaxConcurrentCount` , or the value of `FailureToleranceCount` +1. The actual concurrency is + * then reduced proportionally by the number of failures. This is the default behavior. + * + * If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is + * similar. + * + * * `SOFT_FAILURE_TOLERANCE` : This option decouples `FailureToleranceCount` from the actual + * concurrency. This allows stack set operations to run at the concurrency level set by the + * `MaxConcurrentCount` value, or `MaxConcurrentPercentage` , regardless of the number of + * failures. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html#cfn-cloudformation-stackset-operationpreferences-concurrencymode) + */ + override fun concurrencyMode(): String? = unwrap(this).getConcurrencyMode() + /** * The number of accounts, per Region, for which this operation can fail before AWS * CloudFormation stops the operation in that Region. @@ -2235,7 +2304,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * The key associated with the parameter. * @@ -2456,7 +2526,8 @@ public open class CfnStackSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSet.StackInstancesProperty, - ) : CdkObject(cdkObject), StackInstancesProperty { + ) : CdkObject(cdkObject), + StackInstancesProperty { /** * The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the * specified Regions. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSetProps.kt index d660874c8f..cdf2dd6e48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnStackSetProps.kt @@ -38,6 +38,7 @@ import kotlin.jvm.JvmName * .executionRoleName("executionRoleName") * .managedExecution(managedExecution) * .operationPreferences(OperationPreferencesProperty.builder() + * .concurrencyMode("concurrencyMode") * .failureToleranceCount(123) * .failureTolerancePercentage(123) * .maxConcurrentCount(123) @@ -241,11 +242,11 @@ public interface CfnStackSetProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can - * specify a maximum number of 50 tags. + * CloudFormation also propagates these tags to supported resources in the stack. You can specify + * a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If you - * specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) */ @@ -484,21 +485,21 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ public fun tags(tags: List) /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ public fun tags(vararg tags: CfnTag) @@ -767,11 +768,11 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) @@ -779,11 +780,11 @@ public interface CfnStackSetProps { /** * @param tags Key-value pairs to associate with this stack. - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -818,7 +819,8 @@ public interface CfnStackSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnStackSetProps, - ) : CdkObject(cdkObject), CfnStackSetProps { + ) : CdkObject(cdkObject), + CfnStackSetProps { /** * The Amazon Resource Number (ARN) of the IAM role to use to create this stack set. * @@ -985,11 +987,11 @@ public interface CfnStackSetProps { /** * Key-value pairs to associate with this stack. * - * AWS CloudFormation also propagates these tags to supported resources in the stack. You can + * CloudFormation also propagates these tags to supported resources in the stack. You can * specify a maximum number of 50 tags. * - * If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If - * you specify an empty value, AWS CloudFormation removes all associated tags. + * If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you + * specify an empty value, CloudFormation removes all associated tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stackset.html#cfn-cloudformation-stackset-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivation.kt index a3672e3b3a..3509577c6f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivation.kt @@ -29,7 +29,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * to specify configuration properties for the extension. For more information, see [Configuring * extensions at the account * level](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-private.html#registry-set-configuration) - * in the *CloudFormation User Guide* . + * in the *AWS CloudFormation User Guide* . * * Example: * @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTypeActivation( cdkObject: software.amazon.awscdk.services.cloudformation.CfnTypeActivation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnTypeActivation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -684,7 +685,8 @@ public open class CfnTypeActivation( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnTypeActivation.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The Amazon CloudWatch Logs group to which CloudFormation sends error logging information * when invoking the extension's handlers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivationProps.kt index ec7ab82635..12178b4df6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnTypeActivationProps.kt @@ -384,7 +384,8 @@ public interface CfnTypeActivationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnTypeActivationProps, - ) : CdkObject(cdkObject), CfnTypeActivationProps { + ) : CdkObject(cdkObject), + CfnTypeActivationProps { /** * Whether to automatically update the extension in this account and Region when a new *minor* * version is published by the extension publisher. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitCondition.kt index e715571f5b..28c916479b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitCondition.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWaitCondition( cdkObject: software.amazon.awscdk.services.cloudformation.CfnWaitCondition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnWaitCondition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandle.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandle.kt index 8cb3a38fda..aaa2bc9c1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandle.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandle.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWaitConditionHandle( cdkObject: software.amazon.awscdk.services.cloudformation.CfnWaitConditionHandle, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudformation.CfnWaitConditionHandle(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandleProps.kt index a1d598e160..1ec7390359 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionHandleProps.kt @@ -40,7 +40,8 @@ public interface CfnWaitConditionHandleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnWaitConditionHandleProps, - ) : CdkObject(cdkObject), CfnWaitConditionHandleProps + ) : CdkObject(cdkObject), + CfnWaitConditionHandleProps public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): CfnWaitConditionHandleProps { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionProps.kt index a311e5eda1..f64b70903a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudformation/CfnWaitConditionProps.kt @@ -174,7 +174,8 @@ public interface CfnWaitConditionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudformation.CfnWaitConditionProps, - ) : CdkObject(cdkObject), CfnWaitConditionProps { + ) : CdkObject(cdkObject), + CfnWaitConditionProps { /** * The number of success signals that CloudFormation must receive before it continues the stack * creation process. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AccessLevel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AccessLevel.kt new file mode 100644 index 0000000000..dce060a62f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AccessLevel.kt @@ -0,0 +1,24 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +public enum class AccessLevel( + private val cdkObject: software.amazon.awscdk.services.cloudfront.AccessLevel, +) { + READ(software.amazon.awscdk.services.cloudfront.AccessLevel.READ), + WRITE(software.amazon.awscdk.services.cloudfront.AccessLevel.WRITE), + DELETE(software.amazon.awscdk.services.cloudfront.AccessLevel.DELETE), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.AccessLevel): + AccessLevel = when (cdkObject) { + software.amazon.awscdk.services.cloudfront.AccessLevel.READ -> AccessLevel.READ + software.amazon.awscdk.services.cloudfront.AccessLevel.WRITE -> AccessLevel.WRITE + software.amazon.awscdk.services.cloudfront.AccessLevel.DELETE -> AccessLevel.DELETE + } + + internal fun unwrap(wrapped: AccessLevel): + software.amazon.awscdk.services.cloudfront.AccessLevel = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AddBehaviorOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AddBehaviorOptions.kt index d8df8edd48..bbf74ef959 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AddBehaviorOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/AddBehaviorOptions.kt @@ -358,7 +358,8 @@ public interface AddBehaviorOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.AddBehaviorOptions, - ) : CdkObject(cdkObject), AddBehaviorOptions { + ) : CdkObject(cdkObject), + AddBehaviorOptions { /** * HTTP methods to allow for this behavior. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Behavior.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Behavior.kt index 4c3d126001..fccdfa718b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Behavior.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Behavior.kt @@ -488,7 +488,8 @@ public interface Behavior { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.Behavior, - ) : CdkObject(cdkObject), Behavior { + ) : CdkObject(cdkObject), + Behavior { /** * The method this CloudFront distribution responds do. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/BehaviorOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/BehaviorOptions.kt index 261223a8d8..c0e360bcc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/BehaviorOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/BehaviorOptions.kt @@ -272,7 +272,8 @@ public interface BehaviorOptions : AddBehaviorOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.BehaviorOptions, - ) : CdkObject(cdkObject), BehaviorOptions { + ) : CdkObject(cdkObject), + BehaviorOptions { /** * HTTP methods to allow for this behavior. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicy.kt index a707666e40..8e33d38574 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicy.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CachePolicy( cdkObject: software.amazon.awscdk.services.cloudfront.CachePolicy, -) : Resource(cdkObject), ICachePolicy { +) : Resource(cdkObject), + ICachePolicy { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudfront.CachePolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -75,6 +76,8 @@ public open class CachePolicy( /** * A comment to describe the cache policy. * + * The comment cannot be longer than 128 characters. + * * Default: - no comment * * @param comment A comment to describe the cache policy. @@ -192,6 +195,8 @@ public open class CachePolicy( /** * A comment to describe the cache policy. * + * The comment cannot be longer than 128 characters. + * * Default: - no comment * * @param comment A comment to describe the cache policy. @@ -322,6 +327,12 @@ public open class CachePolicy( public val ELEMENTAL_MEDIA_PACKAGE: ICachePolicy = ICachePolicy.wrap(software.amazon.awscdk.services.cloudfront.CachePolicy.ELEMENTAL_MEDIA_PACKAGE) + public val USE_ORIGIN_CACHE_CONTROL_HEADERS: ICachePolicy = + ICachePolicy.wrap(software.amazon.awscdk.services.cloudfront.CachePolicy.USE_ORIGIN_CACHE_CONTROL_HEADERS) + + public val USE_ORIGIN_CACHE_CONTROL_HEADERS_QUERY_STRINGS: ICachePolicy = + ICachePolicy.wrap(software.amazon.awscdk.services.cloudfront.CachePolicy.USE_ORIGIN_CACHE_CONTROL_HEADERS_QUERY_STRINGS) + public fun fromCachePolicyId( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicyProps.kt index 090517f9b0..f024d0685b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CachePolicyProps.kt @@ -51,6 +51,8 @@ public interface CachePolicyProps { /** * A comment to describe the cache policy. * + * The comment cannot be longer than 128 characters. + * * Default: - no comment */ public fun comment(): String? = unwrap(this).getComment() @@ -137,6 +139,7 @@ public interface CachePolicyProps { /** * @param comment A comment to describe the cache policy. + * The comment cannot be longer than 128 characters. */ public fun comment(comment: String) @@ -203,6 +206,7 @@ public interface CachePolicyProps { /** * @param comment A comment to describe the cache policy. + * The comment cannot be longer than 128 characters. */ override fun comment(comment: String) { cdkBuilder.comment(comment) @@ -278,7 +282,8 @@ public interface CachePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CachePolicyProps, - ) : CdkObject(cdkObject), CachePolicyProps { + ) : CdkObject(cdkObject), + CachePolicyProps { /** * A unique name to identify the cache policy. * @@ -291,6 +296,8 @@ public interface CachePolicyProps { /** * A comment to describe the cache policy. * + * The comment cannot be longer than 128 characters. + * * Default: - no comment */ override fun comment(): String? = unwrap(this).getComment() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicy.kt index 35cc6af318..d32ec67e5e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicy.kt @@ -77,7 +77,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCachePolicy( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -561,7 +562,8 @@ public open class CfnCachePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy.CachePolicyConfigProperty, - ) : CdkObject(cdkObject), CachePolicyConfigProperty { + ) : CdkObject(cdkObject), + CachePolicyConfigProperty { /** * A comment to describe the cache policy. * @@ -783,7 +785,8 @@ public open class CfnCachePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy.CookiesConfigProperty, - ) : CdkObject(cdkObject), CookiesConfigProperty { + ) : CdkObject(cdkObject), + CookiesConfigProperty { /** * Determines whether any cookies in viewer requests are included in the cache key and in * requests that CloudFront sends to the origin. @@ -942,7 +945,8 @@ public open class CfnCachePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy.HeadersConfigProperty, - ) : CdkObject(cdkObject), HeadersConfigProperty { + ) : CdkObject(cdkObject), + HeadersConfigProperty { /** * Determines whether any HTTP headers are included in the cache key and in requests that * CloudFront sends to the origin. @@ -1514,7 +1518,8 @@ public open class CfnCachePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty, - ) : CdkObject(cdkObject), ParametersInCacheKeyAndForwardedToOriginProperty { + ) : CdkObject(cdkObject), + ParametersInCacheKeyAndForwardedToOriginProperty { /** * An object that determines whether any cookies in viewer requests (and if so, which cookies) * are included in the cache key and in requests that CloudFront sends to the origin. @@ -1751,7 +1756,8 @@ public open class CfnCachePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicy.QueryStringsConfigProperty, - ) : CdkObject(cdkObject), QueryStringsConfigProperty { + ) : CdkObject(cdkObject), + QueryStringsConfigProperty { /** * Determines whether any URL query strings in viewer requests are included in the cache key * and in requests that CloudFront sends to the origin. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicyProps.kt index d45232db0b..934568f68c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCachePolicyProps.kt @@ -118,7 +118,8 @@ public interface CfnCachePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCachePolicyProps, - ) : CdkObject(cdkObject), CfnCachePolicyProps { + ) : CdkObject(cdkObject), + CfnCachePolicyProps { /** * The cache policy configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentity.kt index a4fcaef2a7..543237881d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentity.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCloudFrontOriginAccessIdentity( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCloudFrontOriginAccessIdentity, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -291,7 +292,8 @@ public open class CfnCloudFrontOriginAccessIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty, - ) : CdkObject(cdkObject), CloudFrontOriginAccessIdentityConfigProperty { + ) : CdkObject(cdkObject), + CloudFrontOriginAccessIdentityConfigProperty { /** * A comment to describe the origin access identity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentityProps.kt index 472182962a..9cc71c119b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnCloudFrontOriginAccessIdentityProps.kt @@ -107,7 +107,8 @@ public interface CfnCloudFrontOriginAccessIdentityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnCloudFrontOriginAccessIdentityProps, - ) : CdkObject(cdkObject), CfnCloudFrontOriginAccessIdentityProps { + ) : CdkObject(cdkObject), + CfnCloudFrontOriginAccessIdentityProps { /** * The current configuration information for the identity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicy.kt index 2f8baa0413..2bc7629219 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicy.kt @@ -81,7 +81,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContinuousDeploymentPolicy( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -616,7 +617,8 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty, - ) : CdkObject(cdkObject), ContinuousDeploymentPolicyConfigProperty { + ) : CdkObject(cdkObject), + ContinuousDeploymentPolicyConfigProperty { /** * A Boolean that indicates whether this continuous deployment policy is enabled (in effect). * @@ -785,7 +787,8 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty, - ) : CdkObject(cdkObject), SessionStickinessConfigProperty { + ) : CdkObject(cdkObject), + SessionStickinessConfigProperty { /** * The amount of time after which you want sessions to cease if no requests are received. * @@ -905,7 +908,8 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty, - ) : CdkObject(cdkObject), SingleHeaderConfigProperty { + ) : CdkObject(cdkObject), + SingleHeaderConfigProperty { /** * The request header name that you want CloudFront to send to your staging distribution. * @@ -942,6 +946,16 @@ public open class CfnContinuousDeploymentPolicy( } /** + * Defines a single header policy for a CloudFront distribution. + * + * + * This property is legacy. We recommend that you use + * [TrafficConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html) + * and specify the + * [SingleHeaderConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleheaderconfig) + * property instead. + * + * * Example: * * ``` @@ -959,11 +973,15 @@ public open class CfnContinuousDeploymentPolicy( */ public interface SingleHeaderPolicyConfigProperty { /** + * The name of the HTTP header that CloudFront uses to configure for the single header policy. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig-header) */ public fun `header`(): String /** + * Specifies the value to assign to the header for a single header policy. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig-value) */ public fun `value`(): String @@ -974,12 +992,13 @@ public open class CfnContinuousDeploymentPolicy( @CdkDslMarker public interface Builder { /** - * @param header the value to be set. + * @param header The name of the HTTP header that CloudFront uses to configure for the single + * header policy. */ public fun `header`(`header`: String) /** - * @param value the value to be set. + * @param value Specifies the value to assign to the header for a single header policy. */ public fun `value`(`value`: String) } @@ -991,14 +1010,15 @@ public open class CfnContinuousDeploymentPolicy( software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty.builder() /** - * @param header the value to be set. + * @param header The name of the HTTP header that CloudFront uses to configure for the single + * header policy. */ override fun `header`(`header`: String) { cdkBuilder.`header`(`header`) } /** - * @param value the value to be set. + * @param value Specifies the value to assign to the header for a single header policy. */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) @@ -1011,13 +1031,18 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty, - ) : CdkObject(cdkObject), SingleHeaderPolicyConfigProperty { + ) : CdkObject(cdkObject), + SingleHeaderPolicyConfigProperty { /** + * The name of the HTTP header that CloudFront uses to configure for the single header policy. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig-header) */ override fun `header`(): String = unwrap(this).getHeader() /** + * Specifies the value to assign to the header for a single header policy. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderpolicyconfig-value) */ override fun `value`(): String = unwrap(this).getValue() @@ -1186,7 +1211,8 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleWeightConfigProperty, - ) : CdkObject(cdkObject), SingleWeightConfigProperty { + ) : CdkObject(cdkObject), + SingleWeightConfigProperty { /** * Session stickiness provides the ability to define multiple requests from a single viewer as * a single session. @@ -1228,6 +1254,17 @@ public open class CfnContinuousDeploymentPolicy( } /** + * Configure a policy that CloudFront uses to route requests to different origins or use different + * cache settings, based on the weight assigned to each option. + * + * + * This property is legacy. We recommend that you use + * [TrafficConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html) + * and specify the + * [SingleWeightConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleweightconfig) + * property instead. + * + * * Example: * * ``` @@ -1249,11 +1286,16 @@ public open class CfnContinuousDeploymentPolicy( */ public interface SingleWeightPolicyConfigProperty { /** + * Enable session stickiness for the associated origin or cache settings. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-sessionstickinessconfig) */ public fun sessionStickinessConfig(): Any? = unwrap(this).getSessionStickinessConfig() /** + * The percentage of requests that CloudFront will use to send to an associated origin or cache + * settings. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-weight) */ public fun weight(): Number @@ -1264,17 +1306,20 @@ public open class CfnContinuousDeploymentPolicy( @CdkDslMarker public interface Builder { /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ public fun sessionStickinessConfig(sessionStickinessConfig: IResolvable) /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ public fun sessionStickinessConfig(sessionStickinessConfig: SessionStickinessConfigProperty) /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("84a16445b31759c204e527d9438144fd1c2e1960ae5d2a6dc3696de87e89688d") @@ -1282,7 +1327,8 @@ public open class CfnContinuousDeploymentPolicy( fun sessionStickinessConfig(sessionStickinessConfig: SessionStickinessConfigProperty.Builder.() -> Unit) /** - * @param weight the value to be set. + * @param weight The percentage of requests that CloudFront will use to send to an associated + * origin or cache settings. */ public fun weight(weight: Number) } @@ -1294,14 +1340,16 @@ public open class CfnContinuousDeploymentPolicy( software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty.builder() /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ override fun sessionStickinessConfig(sessionStickinessConfig: IResolvable) { cdkBuilder.sessionStickinessConfig(sessionStickinessConfig.let(IResolvable.Companion::unwrap)) } /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ override fun sessionStickinessConfig(sessionStickinessConfig: SessionStickinessConfigProperty) { @@ -1309,7 +1357,8 @@ public open class CfnContinuousDeploymentPolicy( } /** - * @param sessionStickinessConfig the value to be set. + * @param sessionStickinessConfig Enable session stickiness for the associated origin or cache + * settings. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("84a16445b31759c204e527d9438144fd1c2e1960ae5d2a6dc3696de87e89688d") @@ -1318,7 +1367,8 @@ public open class CfnContinuousDeploymentPolicy( Unit = sessionStickinessConfig(SessionStickinessConfigProperty(sessionStickinessConfig)) /** - * @param weight the value to be set. + * @param weight The percentage of requests that CloudFront will use to send to an associated + * origin or cache settings. */ override fun weight(weight: Number) { cdkBuilder.weight(weight) @@ -1331,13 +1381,19 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty, - ) : CdkObject(cdkObject), SingleWeightPolicyConfigProperty { + ) : CdkObject(cdkObject), + SingleWeightPolicyConfigProperty { /** + * Enable session stickiness for the associated origin or cache settings. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-sessionstickinessconfig) */ override fun sessionStickinessConfig(): Any? = unwrap(this).getSessionStickinessConfig() /** + * The percentage of requests that CloudFront will use to send to an associated origin or + * cache settings. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-weight) */ override fun weight(): Number = unwrap(this).getWeight() @@ -1537,7 +1593,8 @@ public open class CfnContinuousDeploymentPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty, - ) : CdkObject(cdkObject), TrafficConfigProperty { + ) : CdkObject(cdkObject), + TrafficConfigProperty { /** * Determines which HTTP requests are sent to the staging distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicyProps.kt index a9a7eaf0a4..23bc55ca3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnContinuousDeploymentPolicyProps.kt @@ -136,7 +136,8 @@ public interface CfnContinuousDeploymentPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicyProps, - ) : CdkObject(cdkObject), CfnContinuousDeploymentPolicyProps { + ) : CdkObject(cdkObject), + CfnContinuousDeploymentPolicyProps { /** * Contains the configuration for a continuous deployment policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistribution.kt index 06c3b476b9..beff1ff386 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistribution.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDistribution( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1642,7 +1644,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.CacheBehaviorProperty, - ) : CdkObject(cdkObject), CacheBehaviorProperty { + ) : CdkObject(cdkObject), + CacheBehaviorProperty { /** * A complex type that controls which HTTP methods CloudFront processes and forwards to your * Amazon S3 bucket or your custom origin. @@ -2279,7 +2282,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.CookiesProperty, - ) : CdkObject(cdkObject), CookiesProperty { + ) : CdkObject(cdkObject), + CookiesProperty { /** * This field is deprecated. * @@ -2605,7 +2609,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.CustomErrorResponseProperty, - ) : CdkObject(cdkObject), CustomErrorResponseProperty { + ) : CdkObject(cdkObject), + CustomErrorResponseProperty { /** * The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status * code specified in `ErrorCode` . @@ -2976,7 +2981,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.CustomOriginConfigProperty, - ) : CdkObject(cdkObject), CustomOriginConfigProperty { + ) : CdkObject(cdkObject), + CustomOriginConfigProperty { /** * The HTTP port that CloudFront uses to connect to the origin. * @@ -4386,7 +4392,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.DefaultCacheBehaviorProperty, - ) : CdkObject(cdkObject), DefaultCacheBehaviorProperty { + ) : CdkObject(cdkObject), + DefaultCacheBehaviorProperty { /** * A complex type that controls which HTTP methods CloudFront processes and forwards to your * Amazon S3 bucket or your custom origin. @@ -4946,6 +4953,14 @@ public open class CfnDistribution( public fun cacheBehaviors(): Any? = unwrap(this).getCacheBehaviors() /** + * An alias for the CloudFront distribution's domain name. + * + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cnames) */ public fun cnamEs(): List = unwrap(this).getCnamEs() ?: emptyList() @@ -4987,6 +5002,15 @@ public open class CfnDistribution( public fun customErrorResponses(): Any? = unwrap(this).getCustomErrorResponses() /** + * The user-defined HTTP server that serves as the origin for content that CloudFront + * distributes. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customorigin) */ public fun customOrigin(): Any? = unwrap(this).getCustomOrigin() @@ -5114,6 +5138,8 @@ public open class CfnDistribution( /** * A complex type that contains information about origin groups for this distribution. * + * Specify a value for either the `Origins` or `OriginGroups` property. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origingroups) */ public fun originGroups(): Any? = unwrap(this).getOriginGroups() @@ -5121,6 +5147,8 @@ public open class CfnDistribution( /** * A complex type that contains information about origins for this distribution. * + * Specify a value for either the `Origins` or `OriginGroups` property. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins) */ public fun origins(): Any? = unwrap(this).getOrigins() @@ -5158,6 +5186,14 @@ public open class CfnDistribution( public fun restrictions(): Any? = unwrap(this).getRestrictions() /** + * The origin as an Amazon S3 bucket. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-s3origin) */ public fun s3Origin(): Any? = unwrap(this).getS3Origin() @@ -5237,12 +5273,20 @@ public open class CfnDistribution( public fun cacheBehaviors(vararg cacheBehaviors: Any) /** - * @param cnamEs the value to be set. + * @param cnamEs An alias for the CloudFront distribution's domain name. + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. */ public fun cnamEs(cnamEs: List) /** - * @param cnamEs the value to be set. + * @param cnamEs An alias for the CloudFront distribution's domain name. + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. */ public fun cnamEs(vararg cnamEs: String) @@ -5295,17 +5339,32 @@ public open class CfnDistribution( public fun customErrorResponses(vararg customErrorResponses: Any) /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ public fun customOrigin(customOrigin: IResolvable) /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ public fun customOrigin(customOrigin: LegacyCustomOriginProperty) /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("727a62ee2d654fbc3a1c3b7028a0c1e7cdb5dc3e7d19714972629cd0f8e2e5f0") @@ -5494,18 +5553,21 @@ public open class CfnDistribution( /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ public fun originGroups(originGroups: IResolvable) /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ public fun originGroups(originGroups: OriginGroupsProperty) /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5f59d2af37d5e0c1affac226dd716cf3cf68ab60464638dfe4625c532a25e3ad") @@ -5514,18 +5576,21 @@ public open class CfnDistribution( /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ public fun origins(origins: IResolvable) /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ public fun origins(origins: List) /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ public fun origins(vararg origins: Any) @@ -5569,17 +5634,29 @@ public open class CfnDistribution( public fun restrictions(restrictions: RestrictionsProperty.Builder.() -> Unit) /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ public fun s3Origin(s3Origin: IResolvable) /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ public fun s3Origin(s3Origin: LegacyS3OriginProperty) /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("634153888b6910f25984f15fc15a9cfd8cfcd431da7d237de24a0c3c46dccd4a") @@ -5680,14 +5757,22 @@ public open class CfnDistribution( cacheBehaviors(cacheBehaviors.toList()) /** - * @param cnamEs the value to be set. + * @param cnamEs An alias for the CloudFront distribution's domain name. + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. */ override fun cnamEs(cnamEs: List) { cdkBuilder.cnamEs(cnamEs) } /** - * @param cnamEs the value to be set. + * @param cnamEs An alias for the CloudFront distribution's domain name. + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. */ override fun cnamEs(vararg cnamEs: String): Unit = cnamEs(cnamEs.toList()) @@ -5749,21 +5834,36 @@ public open class CfnDistribution( customErrorResponses(customErrorResponses.toList()) /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ override fun customOrigin(customOrigin: IResolvable) { cdkBuilder.customOrigin(customOrigin.let(IResolvable.Companion::unwrap)) } /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ override fun customOrigin(customOrigin: LegacyCustomOriginProperty) { cdkBuilder.customOrigin(customOrigin.let(LegacyCustomOriginProperty.Companion::unwrap)) } /** - * @param customOrigin the value to be set. + * @param customOrigin The user-defined HTTP server that serves as the origin for content that + * CloudFront distributes. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("727a62ee2d654fbc3a1c3b7028a0c1e7cdb5dc3e7d19714972629cd0f8e2e5f0") @@ -5975,6 +6075,7 @@ public open class CfnDistribution( /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ override fun originGroups(originGroups: IResolvable) { cdkBuilder.originGroups(originGroups.let(IResolvable.Companion::unwrap)) @@ -5983,6 +6084,7 @@ public open class CfnDistribution( /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ override fun originGroups(originGroups: OriginGroupsProperty) { cdkBuilder.originGroups(originGroups.let(OriginGroupsProperty.Companion::unwrap)) @@ -5991,6 +6093,7 @@ public open class CfnDistribution( /** * @param originGroups A complex type that contains information about origin groups for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5f59d2af37d5e0c1affac226dd716cf3cf68ab60464638dfe4625c532a25e3ad") @@ -6000,6 +6103,7 @@ public open class CfnDistribution( /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ override fun origins(origins: IResolvable) { cdkBuilder.origins(origins.let(IResolvable.Companion::unwrap)) @@ -6008,6 +6112,7 @@ public open class CfnDistribution( /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ override fun origins(origins: List) { cdkBuilder.origins(origins.map{CdkObjectWrappers.unwrap(it)}) @@ -6016,6 +6121,7 @@ public open class CfnDistribution( /** * @param origins A complex type that contains information about origins for this * distribution. + * Specify a value for either the `Origins` or `OriginGroups` property. */ override fun origins(vararg origins: Any): Unit = origins(origins.toList()) @@ -6066,21 +6172,33 @@ public open class CfnDistribution( restrictions(RestrictionsProperty(restrictions)) /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ override fun s3Origin(s3Origin: IResolvable) { cdkBuilder.s3Origin(s3Origin.let(IResolvable.Companion::unwrap)) } /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ override fun s3Origin(s3Origin: LegacyS3OriginProperty) { cdkBuilder.s3Origin(s3Origin.let(LegacyS3OriginProperty.Companion::unwrap)) } /** - * @param s3Origin the value to be set. + * @param s3Origin The origin as an Amazon S3 bucket. + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("634153888b6910f25984f15fc15a9cfd8cfcd431da7d237de24a0c3c46dccd4a") @@ -6159,7 +6277,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.DistributionConfigProperty, - ) : CdkObject(cdkObject), DistributionConfigProperty { + ) : CdkObject(cdkObject), + DistributionConfigProperty { /** * A complex type that contains information about CNAMEs (alternate domain names), if any, for * this distribution. @@ -6176,6 +6295,14 @@ public open class CfnDistribution( override fun cacheBehaviors(): Any? = unwrap(this).getCacheBehaviors() /** + * An alias for the CloudFront distribution's domain name. + * + * + * This property is legacy. We recommend that you use + * [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cnames) */ override fun cnamEs(): List = unwrap(this).getCnamEs() ?: emptyList() @@ -6217,6 +6344,15 @@ public open class CfnDistribution( override fun customErrorResponses(): Any? = unwrap(this).getCustomErrorResponses() /** + * The user-defined HTTP server that serves as the origin for content that CloudFront + * distributes. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customorigin) */ override fun customOrigin(): Any? = unwrap(this).getCustomOrigin() @@ -6344,6 +6480,8 @@ public open class CfnDistribution( /** * A complex type that contains information about origin groups for this distribution. * + * Specify a value for either the `Origins` or `OriginGroups` property. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origingroups) */ override fun originGroups(): Any? = unwrap(this).getOriginGroups() @@ -6351,6 +6489,8 @@ public open class CfnDistribution( /** * A complex type that contains information about origins for this distribution. * + * Specify a value for either the `Origins` or `OriginGroups` property. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins) */ override fun origins(): Any? = unwrap(this).getOrigins() @@ -6388,6 +6528,14 @@ public open class CfnDistribution( override fun restrictions(): Any? = unwrap(this).getRestrictions() /** + * The origin as an Amazon S3 bucket. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-s3origin) */ override fun s3Origin(): Any? = unwrap(this).getS3Origin() @@ -7106,7 +7254,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.ForwardedValuesProperty, - ) : CdkObject(cdkObject), ForwardedValuesProperty { + ) : CdkObject(cdkObject), + ForwardedValuesProperty { /** * This field is deprecated. * @@ -7327,7 +7476,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.FunctionAssociationProperty, - ) : CdkObject(cdkObject), FunctionAssociationProperty { + ) : CdkObject(cdkObject), + FunctionAssociationProperty { /** * The event type of the function, either `viewer-request` or `viewer-response` . * @@ -7526,7 +7676,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.GeoRestrictionProperty, - ) : CdkObject(cdkObject), GeoRestrictionProperty { + ) : CdkObject(cdkObject), + GeoRestrictionProperty { /** * A complex type that contains a `Location` element for each country in which you want * CloudFront either to distribute your content ( `whitelist` ) or not distribute your content ( @@ -7753,7 +7904,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.LambdaFunctionAssociationProperty, - ) : CdkObject(cdkObject), LambdaFunctionAssociationProperty { + ) : CdkObject(cdkObject), + LambdaFunctionAssociationProperty { /** * Specifies the event type that triggers a Lambda@Edge function invocation. You can * specify the following values:. @@ -7817,6 +7969,19 @@ public open class CfnDistribution( } /** + * A custom origin. + * + * A custom origin is any origin that is *not* an Amazon S3 bucket, with one exception. An Amazon + * S3 bucket that is [configured with static website + * hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) *is* a custom + * origin. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * Example: * * ``` @@ -7837,11 +8002,17 @@ public open class CfnDistribution( */ public interface LegacyCustomOriginProperty { /** + * The domain name assigned to your CloudFront distribution. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname) */ public fun dnsName(): String /** + * The HTTP port that CloudFront uses to connect to the origin. + * + * Specify the HTTP port that the origin listens on. + * * Default: - 80 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport) @@ -7849,6 +8020,10 @@ public open class CfnDistribution( public fun httpPort(): Number? = unwrap(this).getHttpPort() /** + * The HTTPS port that CloudFront uses to connect to the origin. + * + * Specify the HTTPS port that the origin listens on. + * * Default: - 443 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport) @@ -7856,11 +8031,20 @@ public open class CfnDistribution( public fun httpsPort(): Number? = unwrap(this).getHttpsPort() /** + * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy) */ public fun originProtocolPolicy(): String /** + * The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin + * server over HTTPs. + * + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols) */ public fun originSslProtocols(): List @@ -7871,32 +8055,43 @@ public open class CfnDistribution( @CdkDslMarker public interface Builder { /** - * @param dnsName the value to be set. + * @param dnsName The domain name assigned to your CloudFront distribution. */ public fun dnsName(dnsName: String) /** - * @param httpPort the value to be set. + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + * Specify the HTTP port that the origin listens on. */ public fun httpPort(httpPort: Number) /** - * @param httpsPort the value to be set. + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + * Specify the HTTPS port that the origin listens on. */ public fun httpsPort(httpsPort: Number) /** - * @param originProtocolPolicy the value to be set. + * @param originProtocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to + * connect to the origin. */ public fun originProtocolPolicy(originProtocolPolicy: String) /** - * @param originSslProtocols the value to be set. + * @param originSslProtocols The minimum SSL/TLS protocol version that CloudFront uses when + * communicating with your origin server over HTTPs. + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . */ public fun originSslProtocols(originSslProtocols: List) /** - * @param originSslProtocols the value to be set. + * @param originSslProtocols The minimum SSL/TLS protocol version that CloudFront uses when + * communicating with your origin server over HTTPs. + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . */ public fun originSslProtocols(vararg originSslProtocols: String) } @@ -7908,42 +8103,53 @@ public open class CfnDistribution( software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyCustomOriginProperty.builder() /** - * @param dnsName the value to be set. + * @param dnsName The domain name assigned to your CloudFront distribution. */ override fun dnsName(dnsName: String) { cdkBuilder.dnsName(dnsName) } /** - * @param httpPort the value to be set. + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + * Specify the HTTP port that the origin listens on. */ override fun httpPort(httpPort: Number) { cdkBuilder.httpPort(httpPort) } /** - * @param httpsPort the value to be set. + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + * Specify the HTTPS port that the origin listens on. */ override fun httpsPort(httpsPort: Number) { cdkBuilder.httpsPort(httpsPort) } /** - * @param originProtocolPolicy the value to be set. + * @param originProtocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to + * connect to the origin. */ override fun originProtocolPolicy(originProtocolPolicy: String) { cdkBuilder.originProtocolPolicy(originProtocolPolicy) } /** - * @param originSslProtocols the value to be set. + * @param originSslProtocols The minimum SSL/TLS protocol version that CloudFront uses when + * communicating with your origin server over HTTPs. + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . */ override fun originSslProtocols(originSslProtocols: List) { cdkBuilder.originSslProtocols(originSslProtocols) } /** - * @param originSslProtocols the value to be set. + * @param originSslProtocols The minimum SSL/TLS protocol version that CloudFront uses when + * communicating with your origin server over HTTPs. + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . */ override fun originSslProtocols(vararg originSslProtocols: String): Unit = originSslProtocols(originSslProtocols.toList()) @@ -7955,13 +8161,20 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyCustomOriginProperty, - ) : CdkObject(cdkObject), LegacyCustomOriginProperty { + ) : CdkObject(cdkObject), + LegacyCustomOriginProperty { /** + * The domain name assigned to your CloudFront distribution. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname) */ override fun dnsName(): String = unwrap(this).getDnsName() /** + * The HTTP port that CloudFront uses to connect to the origin. + * + * Specify the HTTP port that the origin listens on. + * * Default: - 80 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport) @@ -7969,6 +8182,10 @@ public open class CfnDistribution( override fun httpPort(): Number? = unwrap(this).getHttpPort() /** + * The HTTPS port that CloudFront uses to connect to the origin. + * + * Specify the HTTPS port that the origin listens on. + * * Default: - 443 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport) @@ -7976,11 +8193,20 @@ public open class CfnDistribution( override fun httpsPort(): Number? = unwrap(this).getHttpsPort() /** + * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy) */ override fun originProtocolPolicy(): String = unwrap(this).getOriginProtocolPolicy() /** + * The minimum SSL/TLS protocol version that CloudFront uses when communicating with your + * origin server over HTTPs. + * + * For more information, see [Minimum Origin SSL + * Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) + * in the *Amazon CloudFront Developer Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols) */ override fun originSslProtocols(): List = unwrap(this).getOriginSslProtocols() @@ -8005,6 +8231,14 @@ public open class CfnDistribution( } /** + * The origin as an Amazon S3 bucket. + * + * + * This property is legacy. We recommend that you use + * [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) + * instead. + * + * * Example: * * ``` @@ -8022,11 +8256,24 @@ public open class CfnDistribution( */ public interface LegacyS3OriginProperty { /** + * The domain name assigned to your CloudFront distribution. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname) */ public fun dnsName(): String /** + * The CloudFront origin access identity to associate with the distribution. + * + * Use an origin access identity to configure the distribution so that end users can only access + * objects in an Amazon S3 through CloudFront . + * + * + * This property is legacy. We recommend that you use + * [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) + * instead. + * + * * Default: - "" * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity) @@ -8039,12 +8286,20 @@ public open class CfnDistribution( @CdkDslMarker public interface Builder { /** - * @param dnsName the value to be set. + * @param dnsName The domain name assigned to your CloudFront distribution. */ public fun dnsName(dnsName: String) /** - * @param originAccessIdentity the value to be set. + * @param originAccessIdentity The CloudFront origin access identity to associate with the + * distribution. + * Use an origin access identity to configure the distribution so that end users can only + * access objects in an Amazon S3 through CloudFront . + * + * + * This property is legacy. We recommend that you use + * [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) + * instead. */ public fun originAccessIdentity(originAccessIdentity: String) } @@ -8056,14 +8311,22 @@ public open class CfnDistribution( software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyS3OriginProperty.builder() /** - * @param dnsName the value to be set. + * @param dnsName The domain name assigned to your CloudFront distribution. */ override fun dnsName(dnsName: String) { cdkBuilder.dnsName(dnsName) } /** - * @param originAccessIdentity the value to be set. + * @param originAccessIdentity The CloudFront origin access identity to associate with the + * distribution. + * Use an origin access identity to configure the distribution so that end users can only + * access objects in an Amazon S3 through CloudFront . + * + * + * This property is legacy. We recommend that you use + * [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) + * instead. */ override fun originAccessIdentity(originAccessIdentity: String) { cdkBuilder.originAccessIdentity(originAccessIdentity) @@ -8076,13 +8339,27 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyS3OriginProperty, - ) : CdkObject(cdkObject), LegacyS3OriginProperty { + ) : CdkObject(cdkObject), + LegacyS3OriginProperty { /** + * The domain name assigned to your CloudFront distribution. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname) */ override fun dnsName(): String = unwrap(this).getDnsName() /** + * The CloudFront origin access identity to associate with the distribution. + * + * Use an origin access identity to configure the distribution so that end users can only + * access objects in an Amazon S3 through CloudFront . + * + * + * This property is legacy. We recommend that you use + * [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) + * instead. + * + * * Default: - "" * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity) @@ -8257,7 +8534,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.LoggingProperty, - ) : CdkObject(cdkObject), LoggingProperty { + ) : CdkObject(cdkObject), + LoggingProperty { /** * The Amazon S3 bucket to store the access logs in, for example, * `myawslogbucket.s3.amazonaws.com` . @@ -8399,7 +8677,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginCustomHeaderProperty, - ) : CdkObject(cdkObject), OriginCustomHeaderProperty { + ) : CdkObject(cdkObject), + OriginCustomHeaderProperty { /** * The name of a header that you want CloudFront to send to your origin. * @@ -8532,7 +8811,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty, - ) : CdkObject(cdkObject), OriginGroupFailoverCriteriaProperty { + ) : CdkObject(cdkObject), + OriginGroupFailoverCriteriaProperty { /** * The status codes that, when returned from the primary origin, will trigger CloudFront to * failover to the second origin. @@ -8616,7 +8896,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupMemberProperty, - ) : CdkObject(cdkObject), OriginGroupMemberProperty { + ) : CdkObject(cdkObject), + OriginGroupMemberProperty { /** * The ID for an origin in an origin group. * @@ -8742,7 +9023,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupMembersProperty, - ) : CdkObject(cdkObject), OriginGroupMembersProperty { + ) : CdkObject(cdkObject), + OriginGroupMembersProperty { /** * Items (origins) in an origin group. * @@ -8954,7 +9236,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupProperty, - ) : CdkObject(cdkObject), OriginGroupProperty { + ) : CdkObject(cdkObject), + OriginGroupProperty { /** * A complex type that contains information about the failover criteria for an origin group. * @@ -9106,7 +9389,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupsProperty, - ) : CdkObject(cdkObject), OriginGroupsProperty { + ) : CdkObject(cdkObject), + OriginGroupsProperty { /** * The items (origin groups) in a distribution. * @@ -9727,7 +10011,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginProperty, - ) : CdkObject(cdkObject), OriginProperty { + ) : CdkObject(cdkObject), + OriginProperty { /** * The number of times that CloudFront attempts to connect to the origin. * @@ -10008,7 +10293,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginShieldProperty, - ) : CdkObject(cdkObject), OriginShieldProperty { + ) : CdkObject(cdkObject), + OriginShieldProperty { /** * A flag that specifies whether Origin Shield is enabled. * @@ -10176,7 +10462,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.RestrictionsProperty, - ) : CdkObject(cdkObject), RestrictionsProperty { + ) : CdkObject(cdkObject), + RestrictionsProperty { /** * A complex type that controls the countries in which your content is distributed. * @@ -10347,7 +10634,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.S3OriginConfigProperty, - ) : CdkObject(cdkObject), S3OriginConfigProperty { + ) : CdkObject(cdkObject), + S3OriginConfigProperty { /** * If you're using origin access control (OAC) instead of origin access identity, specify an * empty `OriginAccessIdentity` element. @@ -10500,7 +10788,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.StatusCodesProperty, - ) : CdkObject(cdkObject), StatusCodesProperty { + ) : CdkObject(cdkObject), + StatusCodesProperty { /** * The items (status codes) for an origin group. * @@ -10946,7 +11235,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistribution.ViewerCertificateProperty, - ) : CdkObject(cdkObject), ViewerCertificateProperty { + ) : CdkObject(cdkObject), + ViewerCertificateProperty { /** * In CloudFormation, this field name is `AcmCertificateArn` . Note the different * capitalization. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistributionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistributionProps.kt index 6df80dea1c..926af4d56e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistributionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnDistributionProps.kt @@ -308,7 +308,8 @@ public interface CfnDistributionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnDistributionProps, - ) : CdkObject(cdkObject), CfnDistributionProps { + ) : CdkObject(cdkObject), + CfnDistributionProps { /** * The distribution's configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunction.kt index 1d2fe7c243..2de3fba2db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunction.kt @@ -68,7 +68,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunction( cdkObject: software.amazon.awscdk.services.cloudfront.CfnFunction, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -587,7 +588,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnFunction.FunctionConfigProperty, - ) : CdkObject(cdkObject), FunctionConfigProperty { + ) : CdkObject(cdkObject), + FunctionConfigProperty { /** * A comment to describe the function. * @@ -686,7 +688,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnFunction.FunctionMetadataProperty, - ) : CdkObject(cdkObject), FunctionMetadataProperty { + ) : CdkObject(cdkObject), + FunctionMetadataProperty { /** * The Amazon Resource Name (ARN) of the function. * @@ -771,7 +774,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnFunction.KeyValueStoreAssociationProperty, - ) : CdkObject(cdkObject), KeyValueStoreAssociationProperty { + ) : CdkObject(cdkObject), + KeyValueStoreAssociationProperty { /** * The Amazon Resource Name (ARN) of the key value store association. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunctionProps.kt index 4927b61108..f06df57cf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnFunctionProps.kt @@ -247,7 +247,8 @@ public interface CfnFunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnFunctionProps, - ) : CdkObject(cdkObject), CfnFunctionProps { + ) : CdkObject(cdkObject), + CfnFunctionProps { /** * A flag that determines whether to automatically publish the function to the `LIVE` stage when * it’s created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroup.kt index 6328ad1a71..79d1e77f1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroup.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKeyGroup( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -314,7 +315,8 @@ public open class CfnKeyGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyGroup.KeyGroupConfigProperty, - ) : CdkObject(cdkObject), KeyGroupConfigProperty { + ) : CdkObject(cdkObject), + KeyGroupConfigProperty { /** * A comment to describe the key group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroupProps.kt index cd222d8e27..66c161541b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyGroupProps.kt @@ -95,7 +95,8 @@ public interface CfnKeyGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyGroupProps, - ) : CdkObject(cdkObject), CfnKeyGroupProps { + ) : CdkObject(cdkObject), + CfnKeyGroupProps { /** * The key group configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStore.kt index 94b139a4ba..83e3bc3237 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStore.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKeyValueStore( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyValueStore, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -71,7 +72,11 @@ public open class CfnKeyValueStore( public open fun attrId(): String = unwrap(this).getAttrId() /** + * The current status of the key value store. * + * For more information, see [Key value store + * statuses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/kvs-with-functions-create.html#key-value-store-status) + * in the *.* */ public open fun attrStatus(): String = unwrap(this).getAttrStatus() @@ -342,7 +347,8 @@ public open class CfnKeyValueStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyValueStore.ImportSourceProperty, - ) : CdkObject(cdkObject), ImportSourceProperty { + ) : CdkObject(cdkObject), + ImportSourceProperty { /** * The Amazon Resource Name (ARN) of the import source for the key value store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStoreProps.kt index 1def8df462..2e6debc3f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnKeyValueStoreProps.kt @@ -135,7 +135,8 @@ public interface CfnKeyValueStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnKeyValueStoreProps, - ) : CdkObject(cdkObject), CfnKeyValueStoreProps { + ) : CdkObject(cdkObject), + CfnKeyValueStoreProps { /** * A comment for the key value store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscription.kt index 167743421c..79698b1974 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscription.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMonitoringSubscription( cdkObject: software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -334,7 +335,8 @@ public open class CfnMonitoringSubscription( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty, - ) : CdkObject(cdkObject), MonitoringSubscriptionProperty { + ) : CdkObject(cdkObject), + MonitoringSubscriptionProperty { /** * A subscription configuration for additional CloudWatch metrics. * @@ -421,7 +423,8 @@ public open class CfnMonitoringSubscription( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty, - ) : CdkObject(cdkObject), RealtimeMetricsSubscriptionConfigProperty { + ) : CdkObject(cdkObject), + RealtimeMetricsSubscriptionConfigProperty { /** * A flag that indicates whether additional CloudWatch metrics are enabled for a given * CloudFront distribution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscriptionProps.kt index 38563cbd3c..b5218ebd1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnMonitoringSubscriptionProps.kt @@ -127,7 +127,8 @@ public interface CfnMonitoringSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscriptionProps, - ) : CdkObject(cdkObject), CfnMonitoringSubscriptionProps { + ) : CdkObject(cdkObject), + CfnMonitoringSubscriptionProps { /** * The ID of the distribution that you are enabling metrics for. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControl.kt index 3a3cd80a77..58ed0cafa3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControl.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOriginAccessControl( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginAccessControl, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -431,7 +432,8 @@ public open class CfnOriginAccessControl( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty, - ) : CdkObject(cdkObject), OriginAccessControlConfigProperty { + ) : CdkObject(cdkObject), + OriginAccessControlConfigProperty { /** * A description of the origin access control. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControlProps.kt index 27164f975e..ac3a8d17b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginAccessControlProps.kt @@ -102,7 +102,8 @@ public interface CfnOriginAccessControlProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginAccessControlProps, - ) : CdkObject(cdkObject), CfnOriginAccessControlProps { + ) : CdkObject(cdkObject), + CfnOriginAccessControlProps { /** * The origin access control. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicy.kt index 6da0ed4fb3..31e570b94f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicy.kt @@ -69,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOriginRequestPolicy( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -356,7 +357,8 @@ public open class CfnOriginRequestPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty, - ) : CdkObject(cdkObject), CookiesConfigProperty { + ) : CdkObject(cdkObject), + CookiesConfigProperty { /** * Determines whether cookies in viewer requests are included in requests that CloudFront * sends to the origin. Valid values are:. @@ -531,7 +533,8 @@ public open class CfnOriginRequestPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty, - ) : CdkObject(cdkObject), HeadersConfigProperty { + ) : CdkObject(cdkObject), + HeadersConfigProperty { /** * Determines whether any HTTP headers are included in requests that CloudFront sends to the * origin. Valid values are:. @@ -844,7 +847,8 @@ public open class CfnOriginRequestPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty, - ) : CdkObject(cdkObject), OriginRequestPolicyConfigProperty { + ) : CdkObject(cdkObject), + OriginRequestPolicyConfigProperty { /** * A comment to describe the origin request policy. * @@ -1032,7 +1036,8 @@ public open class CfnOriginRequestPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty, - ) : CdkObject(cdkObject), QueryStringsConfigProperty { + ) : CdkObject(cdkObject), + QueryStringsConfigProperty { /** * Determines whether any URL query strings in viewer requests are included in requests that * CloudFront sends to the origin. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicyProps.kt index 79b26607cc..485222f81a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnOriginRequestPolicyProps.kt @@ -114,7 +114,8 @@ public interface CfnOriginRequestPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnOriginRequestPolicyProps, - ) : CdkObject(cdkObject), CfnOriginRequestPolicyProps { + ) : CdkObject(cdkObject), + CfnOriginRequestPolicyProps { /** * The origin request policy configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKey.kt index 72a6c1ee7c..a43cb2830d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKey.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublicKey( cdkObject: software.amazon.awscdk.services.cloudfront.CfnPublicKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -408,7 +409,8 @@ public open class CfnPublicKey( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnPublicKey.PublicKeyConfigProperty, - ) : CdkObject(cdkObject), PublicKeyConfigProperty { + ) : CdkObject(cdkObject), + PublicKeyConfigProperty { /** * A string included in the request to help make sure that the request can't be replayed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKeyProps.kt index 71dc518327..c53beefceb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnPublicKeyProps.kt @@ -131,7 +131,8 @@ public interface CfnPublicKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnPublicKeyProps, - ) : CdkObject(cdkObject), CfnPublicKeyProps { + ) : CdkObject(cdkObject), + CfnPublicKeyProps { /** * Configuration information about a public key that you can use with [signed URLs and signed * cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfig.kt index 46f9429237..d026746dbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfig.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRealtimeLogConfig( cdkObject: software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -473,7 +474,8 @@ public open class CfnRealtimeLogConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfig.EndPointProperty, - ) : CdkObject(cdkObject), EndPointProperty { + ) : CdkObject(cdkObject), + EndPointProperty { /** * Contains information about the Amazon Kinesis data stream where you are sending real-time * log data. @@ -602,7 +604,8 @@ public open class CfnRealtimeLogConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty, - ) : CdkObject(cdkObject), KinesisStreamConfigProperty { + ) : CdkObject(cdkObject), + KinesisStreamConfigProperty { /** * The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that * CloudFront can use to send real-time log data to your Kinesis data stream. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfigProps.kt index 2012f4410b..30b35f3727 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnRealtimeLogConfigProps.kt @@ -208,7 +208,8 @@ public interface CfnRealtimeLogConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfigProps, - ) : CdkObject(cdkObject), CfnRealtimeLogConfigProps { + ) : CdkObject(cdkObject), + CfnRealtimeLogConfigProps { /** * Contains information about the Amazon Kinesis data stream where you are sending real-time log * data for this real-time log configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicy.kt index 25f5ac75eb..a240302fb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicy.kt @@ -120,7 +120,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResponseHeadersPolicy( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -366,7 +367,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty, - ) : CdkObject(cdkObject), AccessControlAllowHeadersProperty { + ) : CdkObject(cdkObject), + AccessControlAllowHeadersProperty { /** * The list of HTTP header names. * @@ -518,7 +520,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty, - ) : CdkObject(cdkObject), AccessControlAllowMethodsProperty { + ) : CdkObject(cdkObject), + AccessControlAllowMethodsProperty { /** * The list of HTTP methods. Valid values are:. * @@ -634,7 +637,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty, - ) : CdkObject(cdkObject), AccessControlAllowOriginsProperty { + ) : CdkObject(cdkObject), + AccessControlAllowOriginsProperty { /** * The list of origins (domain names). * @@ -741,7 +745,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty, - ) : CdkObject(cdkObject), AccessControlExposeHeadersProperty { + ) : CdkObject(cdkObject), + AccessControlExposeHeadersProperty { /** * The list of HTTP headers. * @@ -876,7 +881,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty, - ) : CdkObject(cdkObject), ContentSecurityPolicyProperty { + ) : CdkObject(cdkObject), + ContentSecurityPolicyProperty { /** * The policy directives and their values that CloudFront includes as values for the * `Content-Security-Policy` HTTP response header. @@ -994,7 +1000,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty, - ) : CdkObject(cdkObject), ContentTypeOptionsProperty { + ) : CdkObject(cdkObject), + ContentTypeOptionsProperty { /** * A Boolean that determines whether CloudFront overrides the `X-Content-Type-Options` HTTP * response header received from the origin with the one specified in this response headers @@ -1522,7 +1529,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty, - ) : CdkObject(cdkObject), CorsConfigProperty { + ) : CdkObject(cdkObject), + CorsConfigProperty { /** * A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP * response header. @@ -1738,7 +1746,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty, - ) : CdkObject(cdkObject), CustomHeaderProperty { + ) : CdkObject(cdkObject), + CustomHeaderProperty { /** * The HTTP response header name. * @@ -1864,7 +1873,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty, - ) : CdkObject(cdkObject), CustomHeadersConfigProperty { + ) : CdkObject(cdkObject), + CustomHeadersConfigProperty { /** * The list of HTTP response headers and their values. * @@ -2005,7 +2015,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty, - ) : CdkObject(cdkObject), FrameOptionsProperty { + ) : CdkObject(cdkObject), + FrameOptionsProperty { /** * The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and * `SAMEORIGIN` . @@ -2185,7 +2196,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty, - ) : CdkObject(cdkObject), ReferrerPolicyProperty { + ) : CdkObject(cdkObject), + ReferrerPolicyProperty { /** * A Boolean that determines whether CloudFront overrides the `Referrer-Policy` HTTP response * header received from the origin with the one specified in this response headers policy. @@ -2289,7 +2301,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.RemoveHeaderProperty, - ) : CdkObject(cdkObject), RemoveHeaderProperty { + ) : CdkObject(cdkObject), + RemoveHeaderProperty { /** * The HTTP header name. * @@ -2396,7 +2409,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.RemoveHeadersConfigProperty, - ) : CdkObject(cdkObject), RemoveHeadersConfigProperty { + ) : CdkObject(cdkObject), + RemoveHeadersConfigProperty { /** * The list of HTTP header names. * @@ -2844,7 +2858,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty, - ) : CdkObject(cdkObject), ResponseHeadersPolicyConfigProperty { + ) : CdkObject(cdkObject), + ResponseHeadersPolicyConfigProperty { /** * A comment to describe the response headers policy. * @@ -3466,7 +3481,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty, - ) : CdkObject(cdkObject), SecurityHeadersConfigProperty { + ) : CdkObject(cdkObject), + SecurityHeadersConfigProperty { /** * The policy directives and their values that CloudFront includes as values for the * `Content-Security-Policy` HTTP response header. @@ -3679,7 +3695,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty, - ) : CdkObject(cdkObject), ServerTimingHeadersConfigProperty { + ) : CdkObject(cdkObject), + ServerTimingHeadersConfigProperty { /** * A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP * responses that it sends in response to requests that match a cache behavior that's associated @@ -3903,7 +3920,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty, - ) : CdkObject(cdkObject), StrictTransportSecurityProperty { + ) : CdkObject(cdkObject), + StrictTransportSecurityProperty { /** * A number that CloudFront uses as the value for the `max-age` directive in the * `Strict-Transport-Security` HTTP response header. @@ -4197,7 +4215,8 @@ public open class CfnResponseHeadersPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty, - ) : CdkObject(cdkObject), XSSProtectionProperty { + ) : CdkObject(cdkObject), + XSSProtectionProperty { /** * A Boolean that determines whether CloudFront includes the `mode=block` directive in the * `X-XSS-Protection` header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicyProps.kt index 14d0c72143..8a90cf0b17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnResponseHeadersPolicyProps.kt @@ -166,7 +166,8 @@ public interface CfnResponseHeadersPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicyProps, - ) : CdkObject(cdkObject), CfnResponseHeadersPolicyProps { + ) : CdkObject(cdkObject), + CfnResponseHeadersPolicyProps { /** * A response headers policy configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistribution.kt index 8e361c9a80..d6d78aeaab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistribution.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStreamingDistribution( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -445,7 +447,8 @@ public open class CfnStreamingDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.LoggingProperty, - ) : CdkObject(cdkObject), LoggingProperty { + ) : CdkObject(cdkObject), + LoggingProperty { /** * The Amazon S3 bucket to store the access logs in, for example, * `myawslogbucket.s3.amazonaws.com` . @@ -623,7 +626,8 @@ public open class CfnStreamingDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.S3OriginProperty, - ) : CdkObject(cdkObject), S3OriginProperty { + ) : CdkObject(cdkObject), + S3OriginProperty { /** * The DNS name of the Amazon S3 origin. * @@ -1032,7 +1036,8 @@ public open class CfnStreamingDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty, - ) : CdkObject(cdkObject), StreamingDistributionConfigProperty { + ) : CdkObject(cdkObject), + StreamingDistributionConfigProperty { /** * A complex type that contains information about CNAMEs (alternate domain names), if any, for * this streaming distribution. @@ -1240,7 +1245,8 @@ public open class CfnStreamingDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistribution.TrustedSignersProperty, - ) : CdkObject(cdkObject), TrustedSignersProperty { + ) : CdkObject(cdkObject), + TrustedSignersProperty { /** * An AWS account number that contains active CloudFront key pairs that CloudFront can use to * verify the signatures of signed URLs and signed cookies. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistributionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistributionProps.kt index 0a5d339e79..9f056f2121 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistributionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CfnStreamingDistributionProps.kt @@ -158,7 +158,8 @@ public interface CfnStreamingDistributionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CfnStreamingDistributionProps, - ) : CdkObject(cdkObject), CfnStreamingDistributionProps { + ) : CdkObject(cdkObject), + CfnStreamingDistributionProps { /** * The current configuration information for the RTMP distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistribution.kt index 914a60aebd..5a521ea440 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistribution.kt @@ -9,6 +9,7 @@ import io.cloudshiftdev.awscdk.services.iam.Grant import io.cloudshiftdev.awscdk.services.iam.IGrantable import io.cloudshiftdev.awscdk.services.s3.IBucket import kotlin.Boolean +import kotlin.Deprecated import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -17,8 +18,9 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Amazon CloudFront is a global content delivery network (CDN) service that securely delivers data, - * videos, applications, and APIs to your viewers with low latency and high transfer speeds. + * (deprecated) Amazon CloudFront is a global content delivery network (CDN) service that securely + * delivers data, videos, applications, and APIs to your viewers with low latency and high transfer + * speeds. * * CloudFront fronts user provided content and caches it at edge locations across the world. * @@ -37,7 +39,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build(); * ``` * - * This will create a CloudFront distribution that uses your S3Bucket as it's origin. + * This will create a CloudFront distribution that uses your S3Bucket as its origin. * * You can customize the distribution using additional properties from the * CloudFrontWebDistributionProps interface. @@ -60,10 +62,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .viewerCertificate(viewerCertificate) * .build(); * ``` + * + * @deprecated Use `Distribution` instead */ public open class CloudFrontWebDistribution( cdkObject: software.amazon.awscdk.services.cloudfront.CloudFrontWebDistribution, -) : Resource(cdkObject), IDistribution { +) : Resource(cdkObject), + IDistribution { + @Deprecated(message = "deprecated in CDK") public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -73,6 +79,7 @@ public open class CloudFrontWebDistribution( id, props.let(CloudFrontWebDistributionProps.Companion::unwrap)) ) + @Deprecated(message = "deprecated in CDK") public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -81,48 +88,57 @@ public open class CloudFrontWebDistribution( ) /** - * The domain name created by CloudFront for this distribution. + * (deprecated) The domain name created by CloudFront for this distribution. * * If you are using aliases for your distribution, this is the domainName your DNS records should * point to. * (In Route53, you could create an ALIAS record to this value, for example.) */ + @Deprecated(message = "deprecated in CDK") public override fun distributionDomainName(): String = unwrap(this).getDistributionDomainName() /** - * The distribution ID for this distribution. + * (deprecated) The distribution ID for this distribution. */ + @Deprecated(message = "deprecated in CDK") public override fun distributionId(): String = unwrap(this).getDistributionId() /** - * Adds an IAM policy statement associated with this distribution to an IAM principal's policy. + * (deprecated) Adds an IAM policy statement associated with this distribution to an IAM + * principal's policy. * * @param identity The principal. * @param actions The set of actions to allow (i.e. "cloudfront:ListInvalidations"). */ + @Deprecated(message = "deprecated in CDK") public override fun grant(identity: IGrantable, vararg actions: String): Grant = unwrap(this).grant(identity.let(IGrantable.Companion::unwrap), *actions.map{CdkObjectWrappers.unwrap(it) as String}.toTypedArray()).let(Grant::wrap) /** - * Grant to create invalidations for this bucket to an IAM principal (Role/Group/User). + * (deprecated) Grant to create invalidations for this bucket to an IAM principal + * (Role/Group/User). * * @param identity The principal. */ + @Deprecated(message = "deprecated in CDK") public override fun grantCreateInvalidation(identity: IGrantable): Grant = unwrap(this).grantCreateInvalidation(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) /** - * The logging bucket for this CloudFront distribution. + * (deprecated) The logging bucket for this CloudFront distribution. * * If logging is not enabled for this distribution - this property will be undefined. */ + @Deprecated(message = "deprecated in CDK") public open fun loggingBucket(): IBucket? = unwrap(this).getLoggingBucket()?.let(IBucket::wrap) /** - * A fluent builder for [io.cloudshiftdev.awscdk.services.cloudfront.CloudFrontWebDistribution]. + * (deprecated) A fluent builder for + * [io.cloudshiftdev.awscdk.services.cloudfront.CloudFrontWebDistribution]. */ @CdkDslMarker + @Deprecated(message = "deprecated in CDK") public interface Builder { /** * A comment for this distribution in the CloudFront console. @@ -526,6 +542,7 @@ public open class CloudFrontWebDistribution( } public companion object { + @Deprecated(message = "deprecated in CDK") public fun fromDistributionAttributes( scope: CloudshiftdevConstructsConstruct, id: String, @@ -535,6 +552,7 @@ public open class CloudFrontWebDistribution( id, attrs.let(CloudFrontWebDistributionAttributes.Companion::unwrap)).let(IDistribution::wrap) + @Deprecated(message = "deprecated in CDK") @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("80a9b75be6523c2010178c9d6779ba47e3ed66833189966b4162046ea7b0dfc4") public fun fromDistributionAttributes( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionAttributes.kt index 17aec9245b..1b49717e76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionAttributes.kt @@ -79,7 +79,8 @@ public interface CloudFrontWebDistributionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CloudFrontWebDistributionAttributes, - ) : CdkObject(cdkObject), CloudFrontWebDistributionAttributes { + ) : CdkObject(cdkObject), + CloudFrontWebDistributionAttributes { /** * The distribution ID for this distribution. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionProps.kt index fe131cae8d..67d239728b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CloudFrontWebDistributionProps.kt @@ -407,7 +407,8 @@ public interface CloudFrontWebDistributionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CloudFrontWebDistributionProps, - ) : CdkObject(cdkObject), CloudFrontWebDistributionProps { + ) : CdkObject(cdkObject), + CloudFrontWebDistributionProps { /** * A comment for this distribution in the CloudFront console. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CustomOriginConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CustomOriginConfig.kt index fc62505973..f22e303898 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CustomOriginConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/CustomOriginConfig.kt @@ -265,7 +265,8 @@ public interface CustomOriginConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.CustomOriginConfig, - ) : CdkObject(cdkObject), CustomOriginConfig { + ) : CdkObject(cdkObject), + CustomOriginConfig { /** * The SSL versions to use when interacting with the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Distribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Distribution.kt index e049181bbc..c742840f12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Distribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Distribution.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Distribution( cdkObject: software.amazon.awscdk.services.cloudfront.Distribution, -) : Resource(cdkObject), IDistribution { +) : Resource(cdkObject), + IDistribution { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -780,7 +781,12 @@ public open class Distribution( * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) @@ -796,7 +802,12 @@ public open class Distribution( * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) @@ -1087,7 +1098,12 @@ public open class Distribution( * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) @@ -1105,7 +1121,12 @@ public open class Distribution( * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionAttributes.kt index d5f07b9de5..907d00dfc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionAttributes.kt @@ -76,7 +76,8 @@ public interface DistributionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.DistributionAttributes, - ) : CdkObject(cdkObject), DistributionAttributes { + ) : CdkObject(cdkObject), + DistributionAttributes { /** * The distribution ID for this distribution. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionProps.kt index 83390b16cb..d836de9d4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/DistributionProps.kt @@ -83,7 +83,12 @@ public interface DistributionProps { * domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) @@ -290,7 +295,12 @@ public interface DistributionProps { * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. */ public fun domainNames(domainNames: List) @@ -300,7 +310,12 @@ public interface DistributionProps { * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. */ public fun domainNames(vararg domainNames: String) @@ -483,7 +498,12 @@ public interface DistributionProps { * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. */ override fun domainNames(domainNames: List) { cdkBuilder.domainNames(domainNames) @@ -495,7 +515,12 @@ public interface DistributionProps { * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. */ override fun domainNames(vararg domainNames: String): Unit = domainNames(domainNames.toList()) @@ -655,7 +680,8 @@ public interface DistributionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.DistributionProps, - ) : CdkObject(cdkObject), DistributionProps { + ) : CdkObject(cdkObject), + DistributionProps { /** * Additional behaviors for the distribution, mapped by the pathPattern that specifies which * requests to apply the behavior to. @@ -705,7 +731,12 @@ public interface DistributionProps { * cloudfront.net domain name, * you can add an alternate domain name to your distribution. If you attach a certificate to the * distribution, - * you must add (at least one of) the domain names of the certificate to this list. + * you should add (at least one of) the domain names of the certificate to this list. + * + * When you want to move a domain name between distributions, you can associate a certificate + * without specifying any domain names. + * For more information, see the *Moving an alternate domain name to a different distribution* + * section in the README. * * Default: - The distribution will only support the default generated name (e.g., * d111111abcdef8.cloudfront.net) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/EdgeLambda.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/EdgeLambda.kt index 8086285bd5..19539d518d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/EdgeLambda.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/EdgeLambda.kt @@ -113,7 +113,8 @@ public interface EdgeLambda { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.EdgeLambda, - ) : CdkObject(cdkObject), EdgeLambda { + ) : CdkObject(cdkObject), + EdgeLambda { /** * The type of event in response to which should the function be invoked. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ErrorResponse.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ErrorResponse.kt index 91b0a04687..6116965765 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ErrorResponse.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ErrorResponse.kt @@ -141,7 +141,8 @@ public interface ErrorResponse { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ErrorResponse, - ) : CdkObject(cdkObject), ErrorResponse { + ) : CdkObject(cdkObject), + ErrorResponse { /** * The HTTP status code for which you want to specify a custom error page and/or a caching * duration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FileCodeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FileCodeOptions.kt index 01f61f9d92..596f829489 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FileCodeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FileCodeOptions.kt @@ -56,7 +56,8 @@ public interface FileCodeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.FileCodeOptions, - ) : CdkObject(cdkObject), FileCodeOptions { + ) : CdkObject(cdkObject), + FileCodeOptions { /** * The path of the file to read the code from. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Function.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Function.kt index 73c952ee84..afb37569d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Function.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Function.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Function( cdkObject: software.amazon.awscdk.services.cloudfront.Function, -) : Resource(cdkObject), IFunction { +) : Resource(cdkObject), + IFunction { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAssociation.kt index 213d17c557..30a13fa407 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAssociation.kt @@ -76,7 +76,8 @@ public interface FunctionAssociation { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.FunctionAssociation, - ) : CdkObject(cdkObject), FunctionAssociation { + ) : CdkObject(cdkObject), + FunctionAssociation { /** * The type of event which should invoke the function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAttributes.kt index bfb3e4fc69..eaec025535 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionAttributes.kt @@ -95,7 +95,8 @@ public interface FunctionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.FunctionAttributes, - ) : CdkObject(cdkObject), FunctionAttributes { + ) : CdkObject(cdkObject), + FunctionAttributes { /** * The ARN of the function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionProps.kt index c3fd2167dc..d3055c2988 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/FunctionProps.kt @@ -165,7 +165,8 @@ public interface FunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.FunctionProps, - ) : CdkObject(cdkObject), FunctionProps { + ) : CdkObject(cdkObject), + FunctionProps { /** * A flag that determines whether to automatically publish the function to the LIVE stage when * it’s created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ICachePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ICachePolicy.kt index aea05d9a0e..94147030c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ICachePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ICachePolicy.kt @@ -17,7 +17,8 @@ public interface ICachePolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ICachePolicy, - ) : CdkObject(cdkObject), ICachePolicy { + ) : CdkObject(cdkObject), + ICachePolicy { /** * The ID of the cache policy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IDistribution.kt index 63eddc586b..c72d541d49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IDistribution.kt @@ -44,7 +44,8 @@ public interface IDistribution : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IDistribution, - ) : CdkObject(cdkObject), IDistribution { + ) : CdkObject(cdkObject), + IDistribution { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IFunction.kt index 48fe50b260..699a93ed36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IFunction.kt @@ -27,7 +27,8 @@ public interface IFunction : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IFunction, - ) : CdkObject(cdkObject), IFunction { + ) : CdkObject(cdkObject), + IFunction { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyGroup.kt index 3b16b19528..2853007097 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyGroup.kt @@ -22,7 +22,8 @@ public interface IKeyGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IKeyGroup, - ) : CdkObject(cdkObject), IKeyGroup { + ) : CdkObject(cdkObject), + IKeyGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyValueStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyValueStore.kt index ff1817d097..bb5398dab8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyValueStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IKeyValueStore.kt @@ -32,7 +32,8 @@ public interface IKeyValueStore : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IKeyValueStore, - ) : CdkObject(cdkObject), IKeyValueStore { + ) : CdkObject(cdkObject), + IKeyValueStore { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOrigin.kt index 93615124fc..b97a3a2afb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOrigin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOrigin.kt @@ -34,7 +34,8 @@ public interface IOrigin { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IOrigin, - ) : CdkObject(cdkObject), IOrigin { + ) : CdkObject(cdkObject), + IOrigin { /** * The method called when a given Origin is added (for the first time) to a Distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessControl.kt new file mode 100644 index 0000000000..ef0e2b27aa --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessControl.kt @@ -0,0 +1,78 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents a CloudFront Origin Access Control. + */ +public interface IOriginAccessControl : IResource { + /** + * The unique identifier of the origin access control. + */ + public fun originAccessControlId(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.IOriginAccessControl, + ) : CdkObject(cdkObject), + IOriginAccessControl { + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The unique identifier of the origin access control. + */ + override fun originAccessControlId(): String = unwrap(this).getOriginAccessControlId() + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.IOriginAccessControl): + IOriginAccessControl = CdkObjectWrappers.wrap(cdkObject) as? IOriginAccessControl ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IOriginAccessControl): + software.amazon.awscdk.services.cloudfront.IOriginAccessControl = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.cloudfront.IOriginAccessControl + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessIdentity.kt index a80d8526cf..385721426b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginAccessIdentity.kt @@ -34,7 +34,8 @@ public interface IOriginAccessIdentity : IResource, IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IOriginAccessIdentity, - ) : CdkObject(cdkObject), IOriginAccessIdentity { + ) : CdkObject(cdkObject), + IOriginAccessIdentity { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginRequestPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginRequestPolicy.kt index 037d31eeb5..d5a78e5e95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginRequestPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IOriginRequestPolicy.kt @@ -17,7 +17,8 @@ public interface IOriginRequestPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IOriginRequestPolicy, - ) : CdkObject(cdkObject), IOriginRequestPolicy { + ) : CdkObject(cdkObject), + IOriginRequestPolicy { /** * The ID of the origin request policy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IPublicKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IPublicKey.kt index f104a12727..d6501922ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IPublicKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IPublicKey.kt @@ -22,7 +22,8 @@ public interface IPublicKey : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IPublicKey, - ) : CdkObject(cdkObject), IPublicKey { + ) : CdkObject(cdkObject), + IPublicKey { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IRealtimeLogConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IRealtimeLogConfig.kt index 57526aaaf4..a6a5bd8b11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IRealtimeLogConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IRealtimeLogConfig.kt @@ -27,7 +27,8 @@ public interface IRealtimeLogConfig : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IRealtimeLogConfig, - ) : CdkObject(cdkObject), IRealtimeLogConfig { + ) : CdkObject(cdkObject), + IRealtimeLogConfig { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IResponseHeadersPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IResponseHeadersPolicy.kt index 76a2b666f1..488328480f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IResponseHeadersPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/IResponseHeadersPolicy.kt @@ -17,7 +17,8 @@ public interface IResponseHeadersPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.IResponseHeadersPolicy, - ) : CdkObject(cdkObject), IResponseHeadersPolicy { + ) : CdkObject(cdkObject), + IResponseHeadersPolicy { /** * The ID of the response headers policy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroup.kt index eb84a82450..1e95350334 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroup.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class KeyGroup( cdkObject: software.amazon.awscdk.services.cloudfront.KeyGroup, -) : Resource(cdkObject), IKeyGroup { +) : Resource(cdkObject), + IKeyGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroupProps.kt index 0cc794ed05..bce7538ccb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyGroupProps.kt @@ -114,7 +114,8 @@ public interface KeyGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.KeyGroupProps, - ) : CdkObject(cdkObject), KeyGroupProps { + ) : CdkObject(cdkObject), + KeyGroupProps { /** * A comment to describe the key group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStore.kt index 0519608ef7..74f63dca85 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStore.kt @@ -26,7 +26,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class KeyValueStore( cdkObject: software.amazon.awscdk.services.cloudfront.KeyValueStore, -) : Resource(cdkObject), IKeyValueStore { +) : Resource(cdkObject), + IKeyValueStore { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudfront.KeyValueStore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStoreProps.kt index 742c20efbf..8c6b66da7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/KeyValueStoreProps.kt @@ -110,7 +110,8 @@ public interface KeyValueStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.KeyValueStoreProps, - ) : CdkObject(cdkObject), KeyValueStoreProps { + ) : CdkObject(cdkObject), + KeyValueStoreProps { /** * A comment for the Key Value Store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LambdaFunctionAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LambdaFunctionAssociation.kt index 3b630ab9a5..2082cdf843 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LambdaFunctionAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LambdaFunctionAssociation.kt @@ -36,10 +36,10 @@ public interface LambdaFunctionAssociation { * Allows a Lambda function to have read access to the body content. * * Only valid for "request" event types (`ORIGIN_REQUEST` or `VIEWER_REQUEST`). - * See - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html * * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) */ public fun includeBody(): Boolean? = unwrap(this).getIncludeBody() @@ -62,8 +62,6 @@ public interface LambdaFunctionAssociation { /** * @param includeBody Allows a Lambda function to have read access to the body content. * Only valid for "request" event types (`ORIGIN_REQUEST` or `VIEWER_REQUEST`). - * See - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html */ public fun includeBody(includeBody: Boolean) @@ -89,8 +87,6 @@ public interface LambdaFunctionAssociation { /** * @param includeBody Allows a Lambda function to have read access to the body content. * Only valid for "request" event types (`ORIGIN_REQUEST` or `VIEWER_REQUEST`). - * See - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html */ override fun includeBody(includeBody: Boolean) { cdkBuilder.includeBody(includeBody) @@ -109,7 +105,8 @@ public interface LambdaFunctionAssociation { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.LambdaFunctionAssociation, - ) : CdkObject(cdkObject), LambdaFunctionAssociation { + ) : CdkObject(cdkObject), + LambdaFunctionAssociation { /** * The lambda event type defines at which event the lambda is called during the request * lifecycle. @@ -121,10 +118,10 @@ public interface LambdaFunctionAssociation { * Allows a Lambda function to have read access to the body content. * * Only valid for "request" event types (`ORIGIN_REQUEST` or `VIEWER_REQUEST`). - * See - * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html * * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) */ override fun includeBody(): Boolean? = unwrap(this).getIncludeBody() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LoggingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LoggingConfiguration.kt index 4599bd58f4..55934fe48f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LoggingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/LoggingConfiguration.kt @@ -102,7 +102,8 @@ public interface LoggingConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.LoggingConfiguration, - ) : CdkObject(cdkObject), LoggingConfiguration { + ) : CdkObject(cdkObject), + LoggingConfiguration { /** * Bucket to log requests to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlBaseProps.kt new file mode 100644 index 0000000000..d504f34721 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlBaseProps.kt @@ -0,0 +1,150 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Common properties for creating a Origin Access Control resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cloudfront.*; + * Signing signing; + * OriginAccessControlBaseProps originAccessControlBaseProps = + * OriginAccessControlBaseProps.builder() + * .description("description") + * .originAccessControlName("originAccessControlName") + * .signing(signing) + * .build(); + * ``` + */ +public interface OriginAccessControlBaseProps { + /** + * A description of the origin access control. + * + * Default: - no description + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * A name to identify the origin access control, with a maximum length of 64 characters. + * + * Default: - a generated name + */ + public fun originAccessControlName(): String? = unwrap(this).getOriginAccessControlName() + + /** + * Specifies which requests CloudFront signs and the signing protocol. + * + * Default: SIGV4_ALWAYS + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior) + */ + public fun signing(): Signing? = unwrap(this).getSigning()?.let(Signing::wrap) + + /** + * A builder for [OriginAccessControlBaseProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A description of the origin access control. + */ + public fun description(description: String) + + /** + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + public fun originAccessControlName(originAccessControlName: String) + + /** + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + public fun signing(signing: Signing) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps.Builder = + software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps.builder() + + /** + * @param description A description of the origin access control. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + override fun originAccessControlName(originAccessControlName: String) { + cdkBuilder.originAccessControlName(originAccessControlName) + } + + /** + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + override fun signing(signing: Signing) { + cdkBuilder.signing(signing.let(Signing.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps, + ) : CdkObject(cdkObject), + OriginAccessControlBaseProps { + /** + * A description of the origin access control. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A name to identify the origin access control, with a maximum length of 64 characters. + * + * Default: - a generated name + */ + override fun originAccessControlName(): String? = unwrap(this).getOriginAccessControlName() + + /** + * Specifies which requests CloudFront signs and the signing protocol. + * + * Default: SIGV4_ALWAYS + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior) + */ + override fun signing(): Signing? = unwrap(this).getSigning()?.let(Signing::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): OriginAccessControlBaseProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps): + OriginAccessControlBaseProps = CdkObjectWrappers.wrap(cdkObject) as? + OriginAccessControlBaseProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OriginAccessControlBaseProps): + software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.OriginAccessControlBaseProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlOriginType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlOriginType.kt new file mode 100644 index 0000000000..a9bed88947 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessControlOriginType.kt @@ -0,0 +1,31 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +public enum class OriginAccessControlOriginType( + private val cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType, +) { + S3(software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.S3), + LAMBDA(software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.LAMBDA), + MEDIASTORE(software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.MEDIASTORE), + MEDIAPACKAGEV2(software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.MEDIAPACKAGEV2), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType): + OriginAccessControlOriginType = when (cdkObject) { + software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.S3 -> + OriginAccessControlOriginType.S3 + software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.LAMBDA -> + OriginAccessControlOriginType.LAMBDA + software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.MEDIASTORE -> + OriginAccessControlOriginType.MEDIASTORE + software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType.MEDIAPACKAGEV2 -> + OriginAccessControlOriginType.MEDIAPACKAGEV2 + } + + internal fun unwrap(wrapped: OriginAccessControlOriginType): + software.amazon.awscdk.services.cloudfront.OriginAccessControlOriginType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentity.kt index 1693f4adc3..a553796627 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentity.kt @@ -18,18 +18,25 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.cloudfront.*; - * OriginAccessIdentity originAccessIdentity = OriginAccessIdentity.Builder.create(this, - * "MyOriginAccessIdentity") - * .comment("comment") + * Bucket myBucket = new Bucket(this, "myBucket"); + * OriginAccessIdentity myOai = OriginAccessIdentity.Builder.create(this, "myOAI") + * .comment("My custom OAI") + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessIdentity(myBucket, + * S3BucketOriginWithOAIProps.builder() + * .originAccessIdentity(myOai) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) * .build(); * ``` */ public open class OriginAccessIdentity( cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessIdentity, -) : Resource(cdkObject), IOriginAccessIdentity { +) : Resource(cdkObject), + IOriginAccessIdentity { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudfront.OriginAccessIdentity(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentityProps.kt index 2ababa7bd5..1ef64dd876 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginAccessIdentityProps.kt @@ -14,11 +14,18 @@ import kotlin.Unit * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.cloudfront.*; - * OriginAccessIdentityProps originAccessIdentityProps = OriginAccessIdentityProps.builder() - * .comment("comment") + * Bucket myBucket = new Bucket(this, "myBucket"); + * OriginAccessIdentity myOai = OriginAccessIdentity.Builder.create(this, "myOAI") + * .comment("My custom OAI") + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessIdentity(myBucket, + * S3BucketOriginWithOAIProps.builder() + * .originAccessIdentity(myOai) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) * .build(); * ``` */ @@ -59,7 +66,8 @@ public interface OriginAccessIdentityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginAccessIdentityProps, - ) : CdkObject(cdkObject), OriginAccessIdentityProps { + ) : CdkObject(cdkObject), + OriginAccessIdentityProps { /** * Any comments you want to include about the origin access identity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBase.kt index d91604d339..c137588c25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBase.kt @@ -14,7 +14,8 @@ import kotlin.jvm.JvmName */ public abstract class OriginBase( cdkObject: software.amazon.awscdk.services.cloudfront.OriginBase, -) : CdkObject(cdkObject), IOrigin { +) : CdkObject(cdkObject), + IOrigin { /** * Binds the origin to the associated Distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindConfig.kt index 0025253154..9ea32e9450 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindConfig.kt @@ -143,7 +143,8 @@ public interface OriginBindConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginBindConfig, - ) : CdkObject(cdkObject), OriginBindConfig { + ) : CdkObject(cdkObject), + OriginBindConfig { /** * The failover configuration for this Origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindOptions.kt index bf048429f2..f04ed63933 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginBindOptions.kt @@ -19,10 +19,21 @@ import kotlin.Unit * import io.cloudshiftdev.awscdk.services.cloudfront.*; * OriginBindOptions originBindOptions = OriginBindOptions.builder() * .originId("originId") + * // the properties below are optional + * .distributionId("distributionId") * .build(); * ``` */ public interface OriginBindOptions { + /** + * The identifier of the Distribution this Origin is used for. + * + * This is used to grant origin access permissions to the distribution for origin access control. + * + * Default: - no distribution id + */ + public fun distributionId(): String? = unwrap(this).getDistributionId() + /** * The identifier of this Origin, as assigned by the Distribution this Origin has been used added * to. @@ -34,6 +45,13 @@ public interface OriginBindOptions { */ @CdkDslMarker public interface Builder { + /** + * @param distributionId The identifier of the Distribution this Origin is used for. + * This is used to grant origin access permissions to the distribution for origin access + * control. + */ + public fun distributionId(distributionId: String) + /** * @param originId The identifier of this Origin, as assigned by the Distribution this Origin * has been used added to. @@ -45,6 +63,15 @@ public interface OriginBindOptions { private val cdkBuilder: software.amazon.awscdk.services.cloudfront.OriginBindOptions.Builder = software.amazon.awscdk.services.cloudfront.OriginBindOptions.builder() + /** + * @param distributionId The identifier of the Distribution this Origin is used for. + * This is used to grant origin access permissions to the distribution for origin access + * control. + */ + override fun distributionId(distributionId: String) { + cdkBuilder.distributionId(distributionId) + } + /** * @param originId The identifier of this Origin, as assigned by the Distribution this Origin * has been used added to. @@ -59,7 +86,18 @@ public interface OriginBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginBindOptions, - ) : CdkObject(cdkObject), OriginBindOptions { + ) : CdkObject(cdkObject), + OriginBindOptions { + /** + * The identifier of the Distribution this Origin is used for. + * + * This is used to grant origin access permissions to the distribution for origin access + * control. + * + * Default: - no distribution id + */ + override fun distributionId(): String? = unwrap(this).getDistributionId() + /** * The identifier of this Origin, as assigned by the Distribution this Origin has been used * added to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginFailoverConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginFailoverConfig.kt index 441e8b1879..f9cda17c88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginFailoverConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginFailoverConfig.kt @@ -93,7 +93,8 @@ public interface OriginFailoverConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginFailoverConfig, - ) : CdkObject(cdkObject), OriginFailoverConfig { + ) : CdkObject(cdkObject), + OriginFailoverConfig { /** * The origin to use as the fallback origin. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginOptions.kt index f92b705975..f3ef70e57b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginOptions.kt @@ -27,6 +27,7 @@ import kotlin.collections.Map * .connectionTimeout(Duration.minutes(30)) * .customHeaders(Map.of( * "customHeadersKey", "customHeaders")) + * .originAccessControlId("originAccessControlId") * .originId("originId") * .originShieldEnabled(false) * .originShieldRegion("originShieldRegion") @@ -61,6 +62,13 @@ public interface OriginOptions { */ public fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: emptyMap() + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + public fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * @@ -113,6 +121,12 @@ public interface OriginOptions { */ public fun customHeaders(customHeaders: Map) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -162,6 +176,14 @@ public interface OriginOptions { cdkBuilder.customHeaders(customHeaders) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -192,7 +214,8 @@ public interface OriginOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginOptions, - ) : CdkObject(cdkObject), OriginOptions { + ) : CdkObject(cdkObject), + OriginOptions { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -222,6 +245,13 @@ public interface OriginOptions { override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: emptyMap() + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginProps.kt index dfe4ed73a8..1e74f03948 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginProps.kt @@ -27,6 +27,7 @@ import kotlin.collections.Map * .connectionTimeout(Duration.minutes(30)) * .customHeaders(Map.of( * "customHeadersKey", "customHeaders")) + * .originAccessControlId("originAccessControlId") * .originId("originId") * .originPath("originPath") * .originShieldEnabled(false) @@ -70,6 +71,12 @@ public interface OriginProps : OriginOptions { */ public fun customHeaders(customHeaders: Map) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -126,6 +133,14 @@ public interface OriginProps : OriginOptions { cdkBuilder.customHeaders(customHeaders) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -164,7 +179,8 @@ public interface OriginProps : OriginOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginProps, - ) : CdkObject(cdkObject), OriginProps { + ) : CdkObject(cdkObject), + OriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -194,6 +210,13 @@ public interface OriginProps : OriginOptions { override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: emptyMap() + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicy.kt index 45545679e8..607725eaaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicy.kt @@ -27,7 +27,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class OriginRequestPolicy( cdkObject: software.amazon.awscdk.services.cloudfront.OriginRequestPolicy, -) : Resource(cdkObject), IOriginRequestPolicy { +) : Resource(cdkObject), + IOriginRequestPolicy { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudfront.OriginRequestPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicyProps.kt index c82bb94ffc..f02e130e6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/OriginRequestPolicyProps.kt @@ -158,7 +158,8 @@ public interface OriginRequestPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.OriginRequestPolicyProps, - ) : CdkObject(cdkObject), OriginRequestPolicyProps { + ) : CdkObject(cdkObject), + OriginRequestPolicyProps { /** * A comment to describe the origin request policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKey.kt index 1e48c364ff..db0e631419 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKey.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PublicKey( cdkObject: software.amazon.awscdk.services.cloudfront.PublicKey, -) : Resource(cdkObject), IPublicKey { +) : Resource(cdkObject), + IPublicKey { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKeyProps.kt index efc3a04e47..86a303736c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/PublicKeyProps.kt @@ -115,7 +115,8 @@ public interface PublicKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.PublicKeyProps, - ) : CdkObject(cdkObject), PublicKeyProps { + ) : CdkObject(cdkObject), + PublicKeyProps { /** * A comment to describe the public key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfig.kt index 94ec1d419c..1c129b178b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfig.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class RealtimeLogConfig( cdkObject: software.amazon.awscdk.services.cloudfront.RealtimeLogConfig, -) : Resource(cdkObject), IRealtimeLogConfig { +) : Resource(cdkObject), + IRealtimeLogConfig { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfigProps.kt index 9468cad29e..3e8c7a011d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/RealtimeLogConfigProps.kt @@ -148,7 +148,8 @@ public interface RealtimeLogConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.RealtimeLogConfigProps, - ) : CdkObject(cdkObject), RealtimeLogConfigProps { + ) : CdkObject(cdkObject), + RealtimeLogConfigProps { /** * Contains information about the Amazon Kinesis data stream where you are sending real-time log * data for this real-time log configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeader.kt index ecddd190ae..c1478c7480 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeader.kt @@ -99,7 +99,8 @@ public interface ResponseCustomHeader { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseCustomHeader, - ) : CdkObject(cdkObject), ResponseCustomHeader { + ) : CdkObject(cdkObject), + ResponseCustomHeader { /** * The HTTP response header name. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeadersBehavior.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeadersBehavior.kt index ceddd2e90e..2672ba14cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeadersBehavior.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseCustomHeadersBehavior.kt @@ -48,7 +48,7 @@ import kotlin.collections.List * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -107,7 +107,8 @@ public interface ResponseCustomHeadersBehavior { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseCustomHeadersBehavior, - ) : CdkObject(cdkObject), ResponseCustomHeadersBehavior { + ) : CdkObject(cdkObject), + ResponseCustomHeadersBehavior { /** * The list of HTTP response headers and their values. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentSecurityPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentSecurityPolicy.kt index 842f4c80aa..6849f1b40b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentSecurityPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentSecurityPolicy.kt @@ -49,7 +49,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -123,7 +123,8 @@ public interface ResponseHeadersContentSecurityPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersContentSecurityPolicy, - ) : CdkObject(cdkObject), ResponseHeadersContentSecurityPolicy { + ) : CdkObject(cdkObject), + ResponseHeadersContentSecurityPolicy { /** * The policy directives and their values that CloudFront includes as values for the * Content-Security-Policy HTTP response header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentTypeOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentTypeOptions.kt index b98f3d4b1c..591239a159 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentTypeOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersContentTypeOptions.kt @@ -48,7 +48,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -101,7 +101,8 @@ public interface ResponseHeadersContentTypeOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersContentTypeOptions, - ) : CdkObject(cdkObject), ResponseHeadersContentTypeOptions { + ) : CdkObject(cdkObject), + ResponseHeadersContentTypeOptions { /** * A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP * response header received from the origin with the one specified in this response headers policy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersCorsBehavior.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersCorsBehavior.kt index c37ed0fd6e..06dc516439 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersCorsBehavior.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersCorsBehavior.kt @@ -55,7 +55,7 @@ import kotlin.collections.List * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -301,7 +301,8 @@ public interface ResponseHeadersCorsBehavior { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersCorsBehavior, - ) : CdkObject(cdkObject), ResponseHeadersCorsBehavior { + ) : CdkObject(cdkObject), + ResponseHeadersCorsBehavior { /** * A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP * response header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersFrameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersFrameOptions.kt index 4717162583..e1a8f8fa3c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersFrameOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersFrameOptions.kt @@ -48,7 +48,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -118,7 +118,8 @@ public interface ResponseHeadersFrameOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersFrameOptions, - ) : CdkObject(cdkObject), ResponseHeadersFrameOptions { + ) : CdkObject(cdkObject), + ResponseHeadersFrameOptions { /** * The value of the X-Frame-Options HTTP response header. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicy.kt index 2b36914090..6b397250c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicy.kt @@ -51,7 +51,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -66,7 +66,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ResponseHeadersPolicy( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicy, -) : Resource(cdkObject), IResponseHeadersPolicy { +) : Resource(cdkObject), + IResponseHeadersPolicy { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicyProps.kt index 16e9403ea6..ad700d624e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersPolicyProps.kt @@ -50,7 +50,7 @@ import kotlin.jvm.JvmName * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -293,7 +293,8 @@ public interface ResponseHeadersPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps, - ) : CdkObject(cdkObject), ResponseHeadersPolicyProps { + ) : CdkObject(cdkObject), + ResponseHeadersPolicyProps { /** * A comment to describe the response headers policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersReferrerPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersReferrerPolicy.kt index 576c878779..bd61accc3f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersReferrerPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersReferrerPolicy.kt @@ -48,7 +48,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -118,7 +118,8 @@ public interface ResponseHeadersReferrerPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersReferrerPolicy, - ) : CdkObject(cdkObject), ResponseHeadersReferrerPolicy { + ) : CdkObject(cdkObject), + ResponseHeadersReferrerPolicy { /** * A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP response * header received from the origin with the one specified in this response headers policy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersStrictTransportSecurity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersStrictTransportSecurity.kt index 17935bb442..e2bc110bee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersStrictTransportSecurity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersStrictTransportSecurity.kt @@ -49,7 +49,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -167,7 +167,8 @@ public interface ResponseHeadersStrictTransportSecurity { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersStrictTransportSecurity, - ) : CdkObject(cdkObject), ResponseHeadersStrictTransportSecurity { + ) : CdkObject(cdkObject), + ResponseHeadersStrictTransportSecurity { /** * A number that CloudFront uses as the value for the max-age directive in the * Strict-Transport-Security HTTP response header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersXSSProtection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersXSSProtection.kt index 705db6d185..1411ebb7ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersXSSProtection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersXSSProtection.kt @@ -49,7 +49,7 @@ import kotlin.Unit * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -176,7 +176,8 @@ public interface ResponseHeadersXSSProtection { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseHeadersXSSProtection, - ) : CdkObject(cdkObject), ResponseHeadersXSSProtection { + ) : CdkObject(cdkObject), + ResponseHeadersXSSProtection { /** * A Boolean that determines whether CloudFront includes the mode=block directive in the * X-XSS-Protection header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseSecurityHeadersBehavior.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseSecurityHeadersBehavior.kt index 502d39d680..aee0039159 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseSecurityHeadersBehavior.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseSecurityHeadersBehavior.kt @@ -51,7 +51,7 @@ import kotlin.jvm.JvmName * .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build()) * .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build()) * .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build()) - * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri("https://example.com/csp-report").override(true).build()) + * .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(false).reportUri("https://example.com/csp-report").override(true).build()) * .build()) * .removeHeaders(List.of("Server")) * .serverTimingSamplingRate(50) @@ -332,7 +332,8 @@ public interface ResponseSecurityHeadersBehavior { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ResponseSecurityHeadersBehavior, - ) : CdkObject(cdkObject), ResponseSecurityHeadersBehavior { + ) : CdkObject(cdkObject), + ResponseSecurityHeadersBehavior { /** * The policy directives and their values that CloudFront includes as values for the * Content-Security-Policy HTTP response header. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControl.kt new file mode 100644 index 0000000000..9571db8e88 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControl.kt @@ -0,0 +1,171 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * An Origin Access Control for Amazon S3 origins. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * S3OriginAccessControl oac = S3OriginAccessControl.Builder.create(this, "MyOAC") + * .signing(Signing.SIGV4_NO_OVERRIDE) + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, + * S3BucketOriginWithOACProps.builder() + * .originAccessControl(oac) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) + * .build(); + * ``` + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) + */ +public open class S3OriginAccessControl( + cdkObject: software.amazon.awscdk.services.cloudfront.S3OriginAccessControl, +) : Resource(cdkObject), + IOriginAccessControl { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.cloudfront.S3OriginAccessControl(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: S3OriginAccessControlProps, + ) : + this(software.amazon.awscdk.services.cloudfront.S3OriginAccessControl(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(S3OriginAccessControlProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: S3OriginAccessControlProps.Builder.() -> Unit, + ) : this(scope, id, S3OriginAccessControlProps(props) + ) + + /** + * The unique identifier of this Origin Access Control. + */ + public override fun originAccessControlId(): String = unwrap(this).getOriginAccessControlId() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.cloudfront.S3OriginAccessControl]. + */ + @CdkDslMarker + public interface Builder { + /** + * A description of the origin access control. + * + * Default: - no description + * + * @param description A description of the origin access control. + */ + public fun description(description: String) + + /** + * A name to identify the origin access control, with a maximum length of 64 characters. + * + * Default: - a generated name + * + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + public fun originAccessControlName(originAccessControlName: String) + + /** + * Specifies which requests CloudFront signs and the signing protocol. + * + * Default: SIGV4_ALWAYS + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior) + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + public fun signing(signing: Signing) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.cloudfront.S3OriginAccessControl.Builder + = software.amazon.awscdk.services.cloudfront.S3OriginAccessControl.Builder.create(scope, id) + + /** + * A description of the origin access control. + * + * Default: - no description + * + * @param description A description of the origin access control. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * A name to identify the origin access control, with a maximum length of 64 characters. + * + * Default: - a generated name + * + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + override fun originAccessControlName(originAccessControlName: String) { + cdkBuilder.originAccessControlName(originAccessControlName) + } + + /** + * Specifies which requests CloudFront signs and the signing protocol. + * + * Default: SIGV4_ALWAYS + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior) + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + override fun signing(signing: Signing) { + cdkBuilder.signing(signing.let(Signing.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.cloudfront.S3OriginAccessControl = + cdkBuilder.build() + } + + public companion object { + public fun fromOriginAccessControlId( + scope: CloudshiftdevConstructsConstruct, + id: String, + originAccessControlId: String, + ): IOriginAccessControl = + software.amazon.awscdk.services.cloudfront.S3OriginAccessControl.fromOriginAccessControlId(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, originAccessControlId).let(IOriginAccessControl::wrap) + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): S3OriginAccessControl { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return S3OriginAccessControl(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.S3OriginAccessControl): + S3OriginAccessControl = S3OriginAccessControl(cdkObject) + + internal fun unwrap(wrapped: S3OriginAccessControl): + software.amazon.awscdk.services.cloudfront.S3OriginAccessControl = wrapped.cdkObject as + software.amazon.awscdk.services.cloudfront.S3OriginAccessControl + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControlProps.kt new file mode 100644 index 0000000000..196ea23c13 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginAccessControlProps.kt @@ -0,0 +1,130 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for creating a S3 Origin Access Control resource. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * S3OriginAccessControl oac = S3OriginAccessControl.Builder.create(this, "MyOAC") + * .signing(Signing.SIGV4_NO_OVERRIDE) + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, + * S3BucketOriginWithOACProps.builder() + * .originAccessControl(oac) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) + * .build(); + * ``` + */ +public interface S3OriginAccessControlProps : OriginAccessControlBaseProps { + /** + * A builder for [S3OriginAccessControlProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A description of the origin access control. + */ + public fun description(description: String) + + /** + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + public fun originAccessControlName(originAccessControlName: String) + + /** + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + public fun signing(signing: Signing) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps.Builder = + software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps.builder() + + /** + * @param description A description of the origin access control. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param originAccessControlName A name to identify the origin access control, with a maximum + * length of 64 characters. + */ + override fun originAccessControlName(originAccessControlName: String) { + cdkBuilder.originAccessControlName(originAccessControlName) + } + + /** + * @param signing Specifies which requests CloudFront signs and the signing protocol. + */ + override fun signing(signing: Signing) { + cdkBuilder.signing(signing.let(Signing.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps, + ) : CdkObject(cdkObject), + S3OriginAccessControlProps { + /** + * A description of the origin access control. + * + * Default: - no description + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A name to identify the origin access control, with a maximum length of 64 characters. + * + * Default: - a generated name + */ + override fun originAccessControlName(): String? = unwrap(this).getOriginAccessControlName() + + /** + * Specifies which requests CloudFront signs and the signing protocol. + * + * Default: SIGV4_ALWAYS + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior) + */ + override fun signing(): Signing? = unwrap(this).getSigning()?.let(Signing::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3OriginAccessControlProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps): + S3OriginAccessControlProps = CdkObjectWrappers.wrap(cdkObject) as? + S3OriginAccessControlProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3OriginAccessControlProps): + software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.S3OriginAccessControlProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginConfig.kt index 34e659f978..9bb23d3273 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/S3OriginConfig.kt @@ -149,7 +149,8 @@ public interface S3OriginConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.S3OriginConfig, - ) : CdkObject(cdkObject), S3OriginConfig { + ) : CdkObject(cdkObject), + S3OriginConfig { /** * The optional Origin Access Identity of the origin identity cloudfront will use when calling * your s3 bucket. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Signing.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Signing.kt new file mode 100644 index 0000000000..8eb5e3a398 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/Signing.kt @@ -0,0 +1,64 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +import io.cloudshiftdev.awscdk.common.CdkObject + +/** + * Options for how CloudFront signs requests. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * S3OriginAccessControl oac = S3OriginAccessControl.Builder.create(this, "MyOAC") + * .signing(Signing.SIGV4_NO_OVERRIDE) + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, + * S3BucketOriginWithOACProps.builder() + * .originAccessControl(oac) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) + * .build(); + * ``` + */ +public open class Signing( + cdkObject: software.amazon.awscdk.services.cloudfront.Signing, +) : CdkObject(cdkObject) { + public constructor(protocol: SigningProtocol, behavior: SigningBehavior) : + this(software.amazon.awscdk.services.cloudfront.Signing(protocol.let(SigningProtocol.Companion::unwrap), + behavior.let(SigningBehavior.Companion::unwrap)) + ) + + /** + * Which requests CloudFront signs. + */ + public open fun behavior(): SigningBehavior = + unwrap(this).getBehavior().let(SigningBehavior::wrap) + + /** + * The signing protocol. + */ + public open fun protocol(): SigningProtocol = + unwrap(this).getProtocol().let(SigningProtocol::wrap) + + public companion object { + public val NEVER: Signing = + Signing.wrap(software.amazon.awscdk.services.cloudfront.Signing.NEVER) + + public val SIGV4_ALWAYS: Signing = + Signing.wrap(software.amazon.awscdk.services.cloudfront.Signing.SIGV4_ALWAYS) + + public val SIGV4_NO_OVERRIDE: Signing = + Signing.wrap(software.amazon.awscdk.services.cloudfront.Signing.SIGV4_NO_OVERRIDE) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.Signing): Signing = + Signing(cdkObject) + + internal fun unwrap(wrapped: Signing): software.amazon.awscdk.services.cloudfront.Signing = + wrapped.cdkObject as software.amazon.awscdk.services.cloudfront.Signing + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningBehavior.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningBehavior.kt new file mode 100644 index 0000000000..e8519f9752 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningBehavior.kt @@ -0,0 +1,25 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +public enum class SigningBehavior( + private val cdkObject: software.amazon.awscdk.services.cloudfront.SigningBehavior, +) { + ALWAYS(software.amazon.awscdk.services.cloudfront.SigningBehavior.ALWAYS), + NEVER(software.amazon.awscdk.services.cloudfront.SigningBehavior.NEVER), + NO_OVERRIDE(software.amazon.awscdk.services.cloudfront.SigningBehavior.NO_OVERRIDE), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.SigningBehavior): + SigningBehavior = when (cdkObject) { + software.amazon.awscdk.services.cloudfront.SigningBehavior.ALWAYS -> SigningBehavior.ALWAYS + software.amazon.awscdk.services.cloudfront.SigningBehavior.NEVER -> SigningBehavior.NEVER + software.amazon.awscdk.services.cloudfront.SigningBehavior.NO_OVERRIDE -> + SigningBehavior.NO_OVERRIDE + } + + internal fun unwrap(wrapped: SigningBehavior): + software.amazon.awscdk.services.cloudfront.SigningBehavior = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningProtocol.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningProtocol.kt new file mode 100644 index 0000000000..d6a109abaa --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SigningProtocol.kt @@ -0,0 +1,20 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront + +public enum class SigningProtocol( + private val cdkObject: software.amazon.awscdk.services.cloudfront.SigningProtocol, +) { + SIGV4(software.amazon.awscdk.services.cloudfront.SigningProtocol.SIGV4), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.SigningProtocol): + SigningProtocol = when (cdkObject) { + software.amazon.awscdk.services.cloudfront.SigningProtocol.SIGV4 -> SigningProtocol.SIGV4 + } + + internal fun unwrap(wrapped: SigningProtocol): + software.amazon.awscdk.services.cloudfront.SigningProtocol = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SourceConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SourceConfiguration.kt index 964613a6dd..e023b89d94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SourceConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/SourceConfiguration.kt @@ -15,7 +15,7 @@ import kotlin.jvm.JvmName /** * A source configuration is a wrapper for CloudFront origins and behaviors. * - * An origin is what CloudFront will "be in front of" - that is, CloudFront will pull it's assets + * An origin is what CloudFront will "be in front of" - that is, CloudFront will pull its assets * from an origin. * * If you're using s3 as a source - pass the `s3Origin` property, otherwise, pass the @@ -431,7 +431,8 @@ public interface SourceConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.SourceConfiguration, - ) : CdkObject(cdkObject), SourceConfiguration { + ) : CdkObject(cdkObject), + SourceConfiguration { /** * The behaviors associated with this source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ViewerCertificateOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ViewerCertificateOptions.kt index 52c5aaa709..3cbc4851d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ViewerCertificateOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ViewerCertificateOptions.kt @@ -132,7 +132,8 @@ public interface ViewerCertificateOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.ViewerCertificateOptions, - ) : CdkObject(cdkObject), ViewerCertificateOptions { + ) : CdkObject(cdkObject), + ViewerCertificateOptions { /** * Domain names on the certificate (both main domain name and Subject Alternative names). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunction.kt index 4a6f940264..080221b414 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunction.kt @@ -23,6 +23,7 @@ import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig import io.cloudshiftdev.awscdk.services.lambda.Alias import io.cloudshiftdev.awscdk.services.lambda.AliasOptions +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.EventInvokeConfigOptions @@ -42,9 +43,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion import io.cloudshiftdev.awscdk.services.lambda.Permission +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -53,6 +56,7 @@ import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import io.cloudshiftdev.constructs.Node import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -97,7 +101,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EdgeFunction( cdkObject: software.amazon.awscdk.services.cloudfront.experimental.EdgeFunction, -) : Resource(cdkObject), IVersion { +) : Resource(cdkObject), + IVersion { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -310,6 +315,15 @@ public open class EdgeFunction( List = unwrap(this).grantInvokeCompositePrincipal(compositePrincipal.let(CompositePrincipal.Companion::unwrap)).map(Grant::wrap) + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param identity + */ + public override fun grantInvokeLatestVersion(identity: IGrantable): Grant = + unwrap(this).grantInvokeLatestVersion(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -318,6 +332,16 @@ public open class EdgeFunction( public override fun grantInvokeUrl(identity: IGrantable): Grant = unwrap(this).grantInvokeUrl(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param identity + * @param version + */ + public override fun grantInvokeVersion(identity: IGrantable, version: IVersion): Grant = + unwrap(this).grantInvokeVersion(identity.let(IGrantable.Companion::unwrap), + version.let(IVersion.Companion::unwrap)).let(Grant::wrap) + /** * The principal to grant permissions to. */ @@ -561,7 +585,23 @@ public open class EdgeFunction( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -571,7 +611,8 @@ public open class EdgeFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -589,14 +630,25 @@ public open class EdgeFunction( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -862,12 +914,14 @@ public open class EdgeFunction( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -1053,6 +1107,17 @@ public open class EdgeFunction( */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1168,14 +1233,25 @@ public open class EdgeFunction( public fun stackId(stackId: String) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -1281,7 +1357,25 @@ public open class EdgeFunction( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1291,7 +1385,8 @@ public open class EdgeFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -1313,16 +1408,29 @@ public open class EdgeFunction( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -1628,12 +1736,14 @@ public open class EdgeFunction( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1846,6 +1956,19 @@ public open class EdgeFunction( cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1978,16 +2101,29 @@ public open class EdgeFunction( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunctionProps.kt index 968ccfcbe2..9dfe3ad8ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/experimental/EdgeFunctionProps.kt @@ -15,6 +15,7 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.FileSystem @@ -27,9 +28,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LambdaInsightsVersion import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -37,6 +40,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -98,7 +102,19 @@ public interface EdgeFunctionProps : FunctionProps { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -116,9 +132,16 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -280,7 +303,9 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -403,6 +428,12 @@ public interface EdgeFunctionProps : FunctionProps { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -472,9 +503,16 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -542,7 +580,21 @@ public interface EdgeFunctionProps : FunctionProps { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -564,11 +616,20 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -770,7 +831,9 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -920,6 +983,14 @@ public interface EdgeFunctionProps : FunctionProps { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -1006,11 +1077,20 @@ public interface EdgeFunctionProps : FunctionProps { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1068,7 +1148,8 @@ public interface EdgeFunctionProps : FunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.experimental.EdgeFunctionProps, - ) : CdkObject(cdkObject), EdgeFunctionProps { + ) : CdkObject(cdkObject), + EdgeFunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1080,7 +1161,21 @@ public interface EdgeFunctionProps : FunctionProps { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1105,12 +1200,23 @@ public interface EdgeFunctionProps : FunctionProps { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1293,10 +1399,13 @@ public interface EdgeFunctionProps : FunctionProps { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1443,6 +1552,16 @@ public interface EdgeFunctionProps : FunctionProps { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1528,12 +1647,23 @@ public interface EdgeFunctionProps : FunctionProps { override fun stackId(): String? = unwrap(this).getStackId() /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOrigin.kt index 93a340a21f..119140c899 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOrigin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOrigin.kt @@ -104,6 +104,16 @@ public open class FunctionUrlOrigin( */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * A unique identifier for the origin. * @@ -237,6 +247,18 @@ public open class FunctionUrlOrigin( cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOriginProps.kt index 80f3196813..92212b8675 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/FunctionUrlOriginProps.kt @@ -29,6 +29,7 @@ import kotlin.collections.Map * .customHeaders(Map.of( * "customHeadersKey", "customHeaders")) * .keepaliveTimeout(Duration.minutes(30)) + * .originAccessControlId("originAccessControlId") * .originId("originId") * .originPath("originPath") * .originShieldEnabled(false) @@ -103,6 +104,12 @@ public interface FunctionUrlOriginProps : OriginProps { */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -186,6 +193,14 @@ public interface FunctionUrlOriginProps : OriginProps { cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -239,7 +254,8 @@ public interface FunctionUrlOriginProps : OriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.FunctionUrlOriginProps, - ) : CdkObject(cdkObject), FunctionUrlOriginProps { + ) : CdkObject(cdkObject), + FunctionUrlOriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -284,6 +300,13 @@ public interface FunctionUrlOriginProps : OriginProps { override fun keepaliveTimeout(): Duration? = unwrap(this).getKeepaliveTimeout()?.let(Duration::wrap) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOrigin.kt index 5449796126..261bcb97c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOrigin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOrigin.kt @@ -20,19 +20,19 @@ import kotlin.collections.Map * Example: * * ``` - * // Validating signed URLs or signed cookies with Trusted Key Groups - * // public key in PEM format - * String publicKey; - * PublicKey pubKey = PublicKey.Builder.create(this, "MyPubKey") - * .encodedKey(publicKey) + * // Adding realtime logs config to a Cloudfront Distribution on default behavior. + * import io.cloudshiftdev.awscdk.services.kinesis.*; + * Stream stream; + * RealtimeLogConfig realTimeConfig = RealtimeLogConfig.Builder.create(this, "realtimeLog") + * .endPoints(List.of(Endpoint.fromKinesisStream(stream))) + * .fields(List.of("timestamp", "c-ip", "time-to-first-byte", "sc-status")) + * .realtimeLogConfigName("my-delivery-stream") + * .samplingRate(100) * .build(); - * KeyGroup keyGroup = KeyGroup.Builder.create(this, "MyKeyGroup") - * .items(List.of(pubKey)) - * .build(); - * Distribution.Builder.create(this, "Dist") + * Distribution.Builder.create(this, "myCdn") * .defaultBehavior(BehaviorOptions.builder() * .origin(new HttpOrigin("www.example.com")) - * .trustedKeyGroups(List.of(keyGroup)) + * .realtimeLogConfig(realTimeConfig) * .build()) * .build(); * ``` @@ -129,6 +129,16 @@ public open class HttpOrigin( */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * A unique identifier for the origin. * @@ -312,6 +322,18 @@ public open class HttpOrigin( cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOriginProps.kt index 3b1ea1891d..3dc9a68048 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/HttpOriginProps.kt @@ -36,6 +36,7 @@ import kotlin.collections.Map * .httpPort(123) * .httpsPort(123) * .keepaliveTimeout(Duration.minutes(30)) + * .originAccessControlId("originAccessControlId") * .originId("originId") * .originPath("originPath") * .originShieldEnabled(false) @@ -153,6 +154,12 @@ public interface HttpOriginProps : OriginProps { */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -266,6 +273,14 @@ public interface HttpOriginProps : OriginProps { cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -340,7 +355,8 @@ public interface HttpOriginProps : OriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.HttpOriginProps, - ) : CdkObject(cdkObject), HttpOriginProps { + ) : CdkObject(cdkObject), + HttpOriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -399,6 +415,13 @@ public interface HttpOriginProps : OriginProps { override fun keepaliveTimeout(): Duration? = unwrap(this).getKeepaliveTimeout()?.let(Duration::wrap) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2Origin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2Origin.kt index 0f798c8e67..a11adb0160 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2Origin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2Origin.kt @@ -131,6 +131,16 @@ public open class LoadBalancerV2Origin( */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * A unique identifier for the origin. * @@ -315,6 +325,18 @@ public open class LoadBalancerV2Origin( cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2OriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2OriginProps.kt index a4c3a776d3..2f9223d078 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2OriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/LoadBalancerV2OriginProps.kt @@ -80,6 +80,12 @@ public interface LoadBalancerV2OriginProps : HttpOriginProps { */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -193,6 +199,14 @@ public interface LoadBalancerV2OriginProps : HttpOriginProps { cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -267,7 +281,8 @@ public interface LoadBalancerV2OriginProps : HttpOriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.LoadBalancerV2OriginProps, - ) : CdkObject(cdkObject), LoadBalancerV2OriginProps { + ) : CdkObject(cdkObject), + LoadBalancerV2OriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -326,6 +341,13 @@ public interface LoadBalancerV2OriginProps : HttpOriginProps { override fun keepaliveTimeout(): Duration? = unwrap(this).getKeepaliveTimeout()?.let(Duration::wrap) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroup.kt index 6e80bf1014..091282eaa3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroup.kt @@ -26,7 +26,7 @@ import kotlin.jvm.JvmName * Distribution.Builder.create(this, "myDist") * .defaultBehavior(BehaviorOptions.builder() * .origin(OriginGroup.Builder.create() - * .primaryOrigin(new S3Origin(myBucket)) + * .primaryOrigin(S3BucketOrigin.withOriginAccessControl(myBucket)) * .fallbackOrigin(new HttpOrigin("www.example.com")) * // optional, defaults to: 500, 502, 503 and 504 * .fallbackStatusCodes(List.of(404)) @@ -37,7 +37,8 @@ import kotlin.jvm.JvmName */ public open class OriginGroup( cdkObject: software.amazon.awscdk.services.cloudfront.origins.OriginGroup, -) : CdkObject(cdkObject), IOrigin { +) : CdkObject(cdkObject), + IOrigin { public constructor(props: OriginGroupProps) : this(software.amazon.awscdk.services.cloudfront.origins.OriginGroup(props.let(OriginGroupProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroupProps.kt index 2dc231bd96..eaaf07cf02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/OriginGroupProps.kt @@ -20,7 +20,7 @@ import kotlin.collections.List * Distribution.Builder.create(this, "myDist") * .defaultBehavior(BehaviorOptions.builder() * .origin(OriginGroup.Builder.create() - * .primaryOrigin(new S3Origin(myBucket)) + * .primaryOrigin(S3BucketOrigin.withOriginAccessControl(myBucket)) * .fallbackOrigin(new HttpOrigin("www.example.com")) * // optional, defaults to: 500, 502, 503 and 504 * .fallbackStatusCodes(List.of(404)) @@ -117,7 +117,8 @@ public interface OriginGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.OriginGroupProps, - ) : CdkObject(cdkObject), OriginGroupProps { + ) : CdkObject(cdkObject), + OriginGroupProps { /** * The fallback origin that should serve requests when the primary fails. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOrigin.kt index b9ee5a328f..1c9eca1ae6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOrigin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOrigin.kt @@ -100,6 +100,16 @@ public open class RestApiOrigin( */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * A unique identifier for the origin. * @@ -233,6 +243,18 @@ public open class RestApiOrigin( cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOriginProps.kt index 9ebcc6de8e..0c62b070f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/RestApiOriginProps.kt @@ -92,6 +92,12 @@ public interface RestApiOriginProps : OriginProps { */ public fun keepaliveTimeout(keepaliveTimeout: Duration) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -175,6 +181,14 @@ public interface RestApiOriginProps : OriginProps { cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originId A unique identifier for the origin. * This value must be unique within the distribution. @@ -228,7 +242,8 @@ public interface RestApiOriginProps : OriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.RestApiOriginProps, - ) : CdkObject(cdkObject), RestApiOriginProps { + ) : CdkObject(cdkObject), + RestApiOriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -273,6 +288,13 @@ public interface RestApiOriginProps : OriginProps { override fun keepaliveTimeout(): Duration? = unwrap(this).getKeepaliveTimeout()?.let(Duration::wrap) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * A unique identifier for the origin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOrigin.kt new file mode 100644 index 0000000000..9d7389b94d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOrigin.kt @@ -0,0 +1,88 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.cloudfront.IOrigin +import io.cloudshiftdev.awscdk.services.cloudfront.OriginBase +import io.cloudshiftdev.awscdk.services.cloudfront.OriginProps +import io.cloudshiftdev.awscdk.services.s3.IBucket +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * A S3 Bucket Origin. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(OriginGroup.Builder.create() + * .primaryOrigin(S3BucketOrigin.withOriginAccessControl(myBucket)) + * .fallbackOrigin(new HttpOrigin("www.example.com")) + * // optional, defaults to: 500, 502, 503 and 504 + * .fallbackStatusCodes(List.of(404)) + * .build()) + * .build()) + * .build(); + * ``` + */ +public abstract class S3BucketOrigin( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin, +) : OriginBase(cdkObject) { + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin, + ) : S3BucketOrigin(cdkObject) + + public companion object { + public fun withBucketDefaults(bucket: IBucket): IOrigin = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withBucketDefaults(bucket.let(IBucket.Companion::unwrap)).let(IOrigin::wrap) + + public fun withBucketDefaults(bucket: IBucket, props: OriginProps): IOrigin = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withBucketDefaults(bucket.let(IBucket.Companion::unwrap), + props.let(OriginProps.Companion::unwrap)).let(IOrigin::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b489afad66fb370818436b4024e90285303e4eb64d4340a999c500a94e18a879") + public fun withBucketDefaults(bucket: IBucket, props: OriginProps.Builder.() -> Unit): IOrigin = + withBucketDefaults(bucket, OriginProps(props)) + + public fun withOriginAccessControl(bucket: IBucket): IOrigin = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withOriginAccessControl(bucket.let(IBucket.Companion::unwrap)).let(IOrigin::wrap) + + public fun withOriginAccessControl(bucket: IBucket, props: S3BucketOriginWithOACProps): IOrigin + = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withOriginAccessControl(bucket.let(IBucket.Companion::unwrap), + props.let(S3BucketOriginWithOACProps.Companion::unwrap)).let(IOrigin::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9343acfa827680438d0e6030d792edb13be1688c6b0c1dc5a139767c9a38a0f8") + public fun withOriginAccessControl(bucket: IBucket, + props: S3BucketOriginWithOACProps.Builder.() -> Unit): IOrigin = + withOriginAccessControl(bucket, S3BucketOriginWithOACProps(props)) + + public fun withOriginAccessIdentity(bucket: IBucket): IOrigin = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withOriginAccessIdentity(bucket.let(IBucket.Companion::unwrap)).let(IOrigin::wrap) + + public fun withOriginAccessIdentity(bucket: IBucket, props: S3BucketOriginWithOAIProps): IOrigin + = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin.withOriginAccessIdentity(bucket.let(IBucket.Companion::unwrap), + props.let(S3BucketOriginWithOAIProps.Companion::unwrap)).let(IOrigin::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ab4042eec439125b22f0172657f28093b7161d64990e6a16b0553397d7bae8a0") + public fun withOriginAccessIdentity(bucket: IBucket, + props: S3BucketOriginWithOAIProps.Builder.() -> Unit): IOrigin = + withOriginAccessIdentity(bucket, S3BucketOriginWithOAIProps(props)) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin): + S3BucketOrigin = CdkObjectWrappers.wrap(cdkObject) as? S3BucketOrigin ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3BucketOrigin): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.cloudfront.origins.S3BucketOrigin + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginBaseProps.kt new file mode 100644 index 0000000000..aac62864b6 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginBaseProps.kt @@ -0,0 +1,267 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.cloudfront.OriginProps +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for configuring a origin using a standard S3 bucket. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.cloudfront.origins.*; + * S3BucketOriginBaseProps s3BucketOriginBaseProps = S3BucketOriginBaseProps.builder() + * .connectionAttempts(123) + * .connectionTimeout(Duration.minutes(30)) + * .customHeaders(Map.of( + * "customHeadersKey", "customHeaders")) + * .originAccessControlId("originAccessControlId") + * .originId("originId") + * .originPath("originPath") + * .originShieldEnabled(false) + * .originShieldRegion("originShieldRegion") + * .build(); + * ``` + */ +public interface S3BucketOriginBaseProps : OriginProps { + /** + * A builder for [S3BucketOriginBaseProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + public fun connectionAttempts(connectionAttempts: Number) + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + public fun connectionTimeout(connectionTimeout: Duration) + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + public fun customHeaders(customHeaders: Map) + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + public fun originId(originId: String) + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + public fun originPath(originPath: String) + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + public fun originShieldEnabled(originShieldEnabled: Boolean) + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + public fun originShieldRegion(originShieldRegion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps.Builder = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps.builder() + + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + override fun connectionAttempts(connectionAttempts: Number) { + cdkBuilder.connectionAttempts(connectionAttempts) + } + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + override fun connectionTimeout(connectionTimeout: Duration) { + cdkBuilder.connectionTimeout(connectionTimeout.let(Duration.Companion::unwrap)) + } + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + override fun customHeaders(customHeaders: Map) { + cdkBuilder.customHeaders(customHeaders) + } + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + override fun originId(originId: String) { + cdkBuilder.originId(originId) + } + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + override fun originPath(originPath: String) { + cdkBuilder.originPath(originPath) + } + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + override fun originShieldEnabled(originShieldEnabled: Boolean) { + cdkBuilder.originShieldEnabled(originShieldEnabled) + } + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + override fun originShieldRegion(originShieldRegion: String) { + cdkBuilder.originShieldRegion(originShieldRegion) + } + + public fun build(): software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps, + ) : CdkObject(cdkObject), + S3BucketOriginBaseProps { + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + */ + override fun connectionAttempts(): Number? = unwrap(this).getConnectionAttempts() + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + */ + override fun connectionTimeout(): Duration? = + unwrap(this).getConnectionTimeout()?.let(Duration::wrap) + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + */ + override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: + emptyMap() + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + */ + override fun originId(): String? = unwrap(this).getOriginId() + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + */ + override fun originPath(): String? = unwrap(this).getOriginPath() + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + */ + override fun originShieldEnabled(): Boolean? = unwrap(this).getOriginShieldEnabled() + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + */ + override fun originShieldRegion(): String? = unwrap(this).getOriginShieldRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3BucketOriginBaseProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps): + S3BucketOriginBaseProps = CdkObjectWrappers.wrap(cdkObject) as? S3BucketOriginBaseProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3BucketOriginBaseProps): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginBaseProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOACProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOACProps.kt new file mode 100644 index 0000000000..62598cc77c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOACProps.kt @@ -0,0 +1,333 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.cloudfront.AccessLevel +import io.cloudshiftdev.awscdk.services.cloudfront.IOriginAccessControl +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for configuring a S3 origin with OAC. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, + * S3BucketOriginWithOACProps.builder() + * .originAccessLevels(List.of(AccessLevel.READ, AccessLevel.WRITE, AccessLevel.DELETE)) + * .build()); + * ``` + */ +public interface S3BucketOriginWithOACProps : S3BucketOriginBaseProps { + /** + * An optional Origin Access Control. + * + * Default: - an Origin Access Control will be created. + */ + public fun originAccessControl(): IOriginAccessControl? = + unwrap(this).getOriginAccessControl()?.let(IOriginAccessControl::wrap) + + /** + * The level of permissions granted in the bucket policy and key policy (if applicable) to the + * CloudFront distribution. + * + * Default: [AccessLevel.READ] + */ + public fun originAccessLevels(): List = + unwrap(this).getOriginAccessLevels()?.map(AccessLevel::wrap) ?: emptyList() + + /** + * A builder for [S3BucketOriginWithOACProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + public fun connectionAttempts(connectionAttempts: Number) + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + public fun connectionTimeout(connectionTimeout: Duration) + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + public fun customHeaders(customHeaders: Map) + + /** + * @param originAccessControl An optional Origin Access Control. + */ + public fun originAccessControl(originAccessControl: IOriginAccessControl) + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + + /** + * @param originAccessLevels The level of permissions granted in the bucket policy and key + * policy (if applicable) to the CloudFront distribution. + */ + public fun originAccessLevels(originAccessLevels: List) + + /** + * @param originAccessLevels The level of permissions granted in the bucket policy and key + * policy (if applicable) to the CloudFront distribution. + */ + public fun originAccessLevels(vararg originAccessLevels: AccessLevel) + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + public fun originId(originId: String) + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + public fun originPath(originPath: String) + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + public fun originShieldEnabled(originShieldEnabled: Boolean) + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + public fun originShieldRegion(originShieldRegion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps.Builder = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps.builder() + + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + override fun connectionAttempts(connectionAttempts: Number) { + cdkBuilder.connectionAttempts(connectionAttempts) + } + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + override fun connectionTimeout(connectionTimeout: Duration) { + cdkBuilder.connectionTimeout(connectionTimeout.let(Duration.Companion::unwrap)) + } + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + override fun customHeaders(customHeaders: Map) { + cdkBuilder.customHeaders(customHeaders) + } + + /** + * @param originAccessControl An optional Origin Access Control. + */ + override fun originAccessControl(originAccessControl: IOriginAccessControl) { + cdkBuilder.originAccessControl(originAccessControl.let(IOriginAccessControl.Companion::unwrap)) + } + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + + /** + * @param originAccessLevels The level of permissions granted in the bucket policy and key + * policy (if applicable) to the CloudFront distribution. + */ + override fun originAccessLevels(originAccessLevels: List) { + cdkBuilder.originAccessLevels(originAccessLevels.map(AccessLevel.Companion::unwrap)) + } + + /** + * @param originAccessLevels The level of permissions granted in the bucket policy and key + * policy (if applicable) to the CloudFront distribution. + */ + override fun originAccessLevels(vararg originAccessLevels: AccessLevel): Unit = + originAccessLevels(originAccessLevels.toList()) + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + override fun originId(originId: String) { + cdkBuilder.originId(originId) + } + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + override fun originPath(originPath: String) { + cdkBuilder.originPath(originPath) + } + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + override fun originShieldEnabled(originShieldEnabled: Boolean) { + cdkBuilder.originShieldEnabled(originShieldEnabled) + } + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + override fun originShieldRegion(originShieldRegion: String) { + cdkBuilder.originShieldRegion(originShieldRegion) + } + + public fun build(): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps, + ) : CdkObject(cdkObject), + S3BucketOriginWithOACProps { + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + */ + override fun connectionAttempts(): Number? = unwrap(this).getConnectionAttempts() + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + */ + override fun connectionTimeout(): Duration? = + unwrap(this).getConnectionTimeout()?.let(Duration::wrap) + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + */ + override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: + emptyMap() + + /** + * An optional Origin Access Control. + * + * Default: - an Origin Access Control will be created. + */ + override fun originAccessControl(): IOriginAccessControl? = + unwrap(this).getOriginAccessControl()?.let(IOriginAccessControl::wrap) + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + + /** + * The level of permissions granted in the bucket policy and key policy (if applicable) to the + * CloudFront distribution. + * + * Default: [AccessLevel.READ] + */ + override fun originAccessLevels(): List = + unwrap(this).getOriginAccessLevels()?.map(AccessLevel::wrap) ?: emptyList() + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + */ + override fun originId(): String? = unwrap(this).getOriginId() + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + */ + override fun originPath(): String? = unwrap(this).getOriginPath() + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + */ + override fun originShieldEnabled(): Boolean? = unwrap(this).getOriginShieldEnabled() + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + */ + override fun originShieldRegion(): String? = unwrap(this).getOriginShieldRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3BucketOriginWithOACProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps): + S3BucketOriginWithOACProps = CdkObjectWrappers.wrap(cdkObject) as? + S3BucketOriginWithOACProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3BucketOriginWithOACProps): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOACProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOAIProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOAIProps.kt new file mode 100644 index 0000000000..8860819299 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3BucketOriginWithOAIProps.kt @@ -0,0 +1,294 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.cloudfront.IOriginAccessIdentity +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for configuring a S3 origin with OAI. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * OriginAccessIdentity myOai = OriginAccessIdentity.Builder.create(this, "myOAI") + * .comment("My custom OAI") + * .build(); + * IOrigin s3Origin = S3BucketOrigin.withOriginAccessIdentity(myBucket, + * S3BucketOriginWithOAIProps.builder() + * .originAccessIdentity(myOai) + * .build()); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(s3Origin) + * .build()) + * .build(); + * ``` + */ +public interface S3BucketOriginWithOAIProps : S3BucketOriginBaseProps { + /** + * An optional Origin Access Identity. + * + * Default: - an Origin Access Identity will be created. + */ + public fun originAccessIdentity(): IOriginAccessIdentity? = + unwrap(this).getOriginAccessIdentity()?.let(IOriginAccessIdentity::wrap) + + /** + * A builder for [S3BucketOriginWithOAIProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + public fun connectionAttempts(connectionAttempts: Number) + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + public fun connectionTimeout(connectionTimeout: Duration) + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + public fun customHeaders(customHeaders: Map) + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + + /** + * @param originAccessIdentity An optional Origin Access Identity. + */ + public fun originAccessIdentity(originAccessIdentity: IOriginAccessIdentity) + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + public fun originId(originId: String) + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + public fun originPath(originPath: String) + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + public fun originShieldEnabled(originShieldEnabled: Boolean) + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + public fun originShieldRegion(originShieldRegion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps.Builder = + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps.builder() + + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + override fun connectionAttempts(connectionAttempts: Number) { + cdkBuilder.connectionAttempts(connectionAttempts) + } + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + override fun connectionTimeout(connectionTimeout: Duration) { + cdkBuilder.connectionTimeout(connectionTimeout.let(Duration.Companion::unwrap)) + } + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + override fun customHeaders(customHeaders: Map) { + cdkBuilder.customHeaders(customHeaders) + } + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + + /** + * @param originAccessIdentity An optional Origin Access Identity. + */ + override fun originAccessIdentity(originAccessIdentity: IOriginAccessIdentity) { + cdkBuilder.originAccessIdentity(originAccessIdentity.let(IOriginAccessIdentity.Companion::unwrap)) + } + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + override fun originId(originId: String) { + cdkBuilder.originId(originId) + } + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + override fun originPath(originPath: String) { + cdkBuilder.originPath(originPath) + } + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + override fun originShieldEnabled(originShieldEnabled: Boolean) { + cdkBuilder.originShieldEnabled(originShieldEnabled) + } + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + override fun originShieldRegion(originShieldRegion: String) { + cdkBuilder.originShieldRegion(originShieldRegion) + } + + public fun build(): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps, + ) : CdkObject(cdkObject), + S3BucketOriginWithOAIProps { + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + */ + override fun connectionAttempts(): Number? = unwrap(this).getConnectionAttempts() + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + */ + override fun connectionTimeout(): Duration? = + unwrap(this).getConnectionTimeout()?.let(Duration::wrap) + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + */ + override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: + emptyMap() + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + + /** + * An optional Origin Access Identity. + * + * Default: - an Origin Access Identity will be created. + */ + override fun originAccessIdentity(): IOriginAccessIdentity? = + unwrap(this).getOriginAccessIdentity()?.let(IOriginAccessIdentity::wrap) + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + */ + override fun originId(): String? = unwrap(this).getOriginId() + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + */ + override fun originPath(): String? = unwrap(this).getOriginPath() + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + */ + override fun originShieldEnabled(): Boolean? = unwrap(this).getOriginShieldEnabled() + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + */ + override fun originShieldRegion(): String? = unwrap(this).getOriginShieldRegion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3BucketOriginWithOAIProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps): + S3BucketOriginWithOAIProps = CdkObjectWrappers.wrap(cdkObject) as? + S3BucketOriginWithOAIProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3BucketOriginWithOAIProps): + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.origins.S3BucketOriginWithOAIProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3Origin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3Origin.kt index 9a0c3d376f..ff93df9f80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3Origin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3Origin.kt @@ -11,6 +11,7 @@ import io.cloudshiftdev.awscdk.services.cloudfront.OriginBindConfig import io.cloudshiftdev.awscdk.services.cloudfront.OriginBindOptions import io.cloudshiftdev.constructs.Construct import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -20,7 +21,7 @@ import io.cloudshiftdev.awscdk.services.s3.IBucket as CloudshiftdevAwscdkService import software.amazon.awscdk.services.s3.IBucket as AmazonAwscdkServicesS3IBucket /** - * An Origin that is backed by an S3 bucket. + * (deprecated) An Origin that is backed by an S3 bucket. * * If the bucket is configured for website hosting, this origin will be configured to use the bucket * as an @@ -46,48 +47,60 @@ import software.amazon.awscdk.services.s3.IBucket as AmazonAwscdkServicesS3IBuck * .build()) * .build(); * ``` + * + * @deprecated Use `S3BucketOrigin` or `S3StaticWebsiteOrigin` instead. */ public open class S3Origin( cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3Origin, -) : CdkObject(cdkObject), IOrigin { +) : CdkObject(cdkObject), + IOrigin { + @Deprecated(message = "deprecated in CDK") public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket) : this(software.amazon.awscdk.services.cloudfront.origins.S3Origin(bucket.let(CloudshiftdevAwscdkServicesS3IBucket.Companion::unwrap)) ) + @Deprecated(message = "deprecated in CDK") public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket, props: S3OriginProps) : this(software.amazon.awscdk.services.cloudfront.origins.S3Origin(bucket.let(CloudshiftdevAwscdkServicesS3IBucket.Companion::unwrap), props.let(S3OriginProps.Companion::unwrap)) ) + @Deprecated(message = "deprecated in CDK") public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket, props: S3OriginProps.Builder.() -> Unit) : this(bucket, S3OriginProps(props) ) /** - * The method called when a given Origin is added (for the first time) to a Distribution. + * (deprecated) The method called when a given Origin is added (for the first time) to a + * Distribution. * * @param scope * @param options */ + @Deprecated(message = "deprecated in CDK") public override fun bind(scope: Construct, options: OriginBindOptions): OriginBindConfig = unwrap(this).bind(scope.let(Construct.Companion::unwrap), options.let(OriginBindOptions.Companion::unwrap)).let(OriginBindConfig::wrap) /** - * The method called when a given Origin is added (for the first time) to a Distribution. + * (deprecated) The method called when a given Origin is added (for the first time) to a + * Distribution. * * @param scope * @param options */ + @Deprecated(message = "deprecated in CDK") @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a4d8f445ceb4e4ebb177be4645de7fd3d72f0f5d66bcf420280cc1b7bc73b342") public override fun bind(scope: Construct, options: OriginBindOptions.Builder.() -> Unit): OriginBindConfig = bind(scope, OriginBindOptions(options)) /** - * A fluent builder for [io.cloudshiftdev.awscdk.services.cloudfront.origins.S3Origin]. + * (deprecated) A fluent builder for + * [io.cloudshiftdev.awscdk.services.cloudfront.origins.S3Origin]. */ @CdkDslMarker + @Deprecated(message = "deprecated in CDK") public interface Builder { /** * The number of times that CloudFront attempts to connect to the origin; @@ -125,6 +138,16 @@ public open class S3Origin( */ public fun customHeaders(customHeaders: Map) + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * An optional Origin Access Identity of the origin identity cloudfront will use when calling * your s3 bucket. @@ -232,6 +255,18 @@ public open class S3Origin( cdkBuilder.customHeaders(customHeaders) } + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * An optional Origin Access Identity of the origin identity cloudfront will use when calling * your s3 bucket. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3OriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3OriginProps.kt index 1eea19dd0f..ee8138e430 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3OriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3OriginProps.kt @@ -20,12 +20,23 @@ import kotlin.collections.Map * Example: * * ``` - * Bucket myBucket = new Bucket(this, "myBucket"); - * Distribution.Builder.create(this, "myDist") - * .defaultBehavior(BehaviorOptions.builder().origin(S3Origin.Builder.create(myBucket) + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.cloudfront.*; + * import io.cloudshiftdev.awscdk.services.cloudfront.origins.*; + * OriginAccessIdentity originAccessIdentity; + * S3OriginProps s3OriginProps = S3OriginProps.builder() + * .connectionAttempts(123) + * .connectionTimeout(Duration.minutes(30)) * .customHeaders(Map.of( - * "Foo", "bar")) - * .build()).build()) + * "customHeadersKey", "customHeaders")) + * .originAccessControlId("originAccessControlId") + * .originAccessIdentity(originAccessIdentity) + * .originId("originId") + * .originPath("originPath") + * .originShieldEnabled(false) + * .originShieldRegion("originShieldRegion") * .build(); * ``` */ @@ -64,6 +75,12 @@ public interface S3OriginProps : OriginProps { */ public fun customHeaders(customHeaders: Map) + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + /** * @param originAccessIdentity An optional Origin Access Identity of the origin identity * cloudfront will use when calling your s3 bucket. @@ -126,6 +143,14 @@ public interface S3OriginProps : OriginProps { cdkBuilder.customHeaders(customHeaders) } + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + /** * @param originAccessIdentity An optional Origin Access Identity of the origin identity * cloudfront will use when calling your s3 bucket. @@ -173,7 +198,8 @@ public interface S3OriginProps : OriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3OriginProps, - ) : CdkObject(cdkObject), S3OriginProps { + ) : CdkObject(cdkObject), + S3OriginProps { /** * The number of times that CloudFront attempts to connect to the origin; * @@ -203,6 +229,13 @@ public interface S3OriginProps : OriginProps { override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: emptyMap() + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + /** * An optional Origin Access Identity of the origin identity cloudfront will use when calling * your s3 bucket. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOrigin.kt new file mode 100644 index 0000000000..271fefcf04 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOrigin.kt @@ -0,0 +1,458 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.cloudfront.OriginProtocolPolicy +import io.cloudshiftdev.awscdk.services.cloudfront.OriginSslPolicy +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.awscdk.services.s3.IBucket as CloudshiftdevAwscdkServicesS3IBucket +import software.amazon.awscdk.services.s3.IBucket as AmazonAwscdkServicesS3IBucket + +/** + * An Origin for a S3 bucket configured as a website endpoint. + * + * Example: + * + * ``` + * Bucket myBucket = new Bucket(this, "myBucket"); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder().origin(new S3StaticWebsiteOrigin(myBucket)).build()) + * .build(); + * ``` + */ +public open class S3StaticWebsiteOrigin( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin, +) : HttpOrigin(cdkObject) { + public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket) : + this(software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin(bucket.let(CloudshiftdevAwscdkServicesS3IBucket.Companion::unwrap)) + ) + + public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket, + props: S3StaticWebsiteOriginProps) : + this(software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin(bucket.let(CloudshiftdevAwscdkServicesS3IBucket.Companion::unwrap), + props.let(S3StaticWebsiteOriginProps.Companion::unwrap)) + ) + + public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket, + props: S3StaticWebsiteOriginProps.Builder.() -> Unit) : this(bucket, + S3StaticWebsiteOriginProps(props) + ) + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin]. + */ + @CdkDslMarker + public interface Builder { + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + * + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + */ + public fun connectionAttempts(connectionAttempts: Number) + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + * + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + */ + public fun connectionTimeout(connectionTimeout: Duration) + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + * + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + public fun customHeaders(customHeaders: Map) + + /** + * The HTTP port that CloudFront uses to connect to the origin. + * + * Default: 80 + * + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + */ + public fun httpPort(httpPort: Number) + + /** + * The HTTPS port that CloudFront uses to connect to the origin. + * + * Default: 443 + * + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + */ + public fun httpsPort(httpsPort: Number) + + /** + * Specifies how long, in seconds, CloudFront persists its connection to the origin. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(5) + * + * @param keepaliveTimeout Specifies how long, in seconds, CloudFront persists its connection to + * the origin. + */ + public fun keepaliveTimeout(keepaliveTimeout: Duration) + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + * + * @param originId A unique identifier for the origin. + */ + public fun originId(originId: String) + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + * + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + */ + public fun originPath(originPath: String) + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + * + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + public fun originShieldEnabled(originShieldEnabled: Boolean) + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + public fun originShieldRegion(originShieldRegion: String) + + /** + * The SSL versions to use when interacting with the origin. + * + * Default: OriginSslPolicy.TLS_V1_2 + * + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + public fun originSslProtocols(originSslProtocols: List) + + /** + * The SSL versions to use when interacting with the origin. + * + * Default: OriginSslPolicy.TLS_V1_2 + * + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + public fun originSslProtocols(vararg originSslProtocols: OriginSslPolicy) + + /** + * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. + * + * Default: OriginProtocolPolicy.HTTPS_ONLY + * + * @param protocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + * to the origin. + */ + public fun protocolPolicy(protocolPolicy: OriginProtocolPolicy) + + /** + * Specifies how long, in seconds, CloudFront waits for a response from the origin, also known + * as the origin response timeout. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(30) + * + * @param readTimeout Specifies how long, in seconds, CloudFront waits for a response from the + * origin, also known as the origin response timeout. + */ + public fun readTimeout(readTimeout: Duration) + } + + private class BuilderImpl( + bucket: AmazonAwscdkServicesS3IBucket, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin.Builder = + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin.Builder.create(bucket) + + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + * + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + */ + override fun connectionAttempts(connectionAttempts: Number) { + cdkBuilder.connectionAttempts(connectionAttempts) + } + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + * + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + */ + override fun connectionTimeout(connectionTimeout: Duration) { + cdkBuilder.connectionTimeout(connectionTimeout.let(Duration.Companion::unwrap)) + } + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + * + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + override fun customHeaders(customHeaders: Map) { + cdkBuilder.customHeaders(customHeaders) + } + + /** + * The HTTP port that CloudFront uses to connect to the origin. + * + * Default: 80 + * + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + */ + override fun httpPort(httpPort: Number) { + cdkBuilder.httpPort(httpPort) + } + + /** + * The HTTPS port that CloudFront uses to connect to the origin. + * + * Default: 443 + * + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + */ + override fun httpsPort(httpsPort: Number) { + cdkBuilder.httpsPort(httpsPort) + } + + /** + * Specifies how long, in seconds, CloudFront persists its connection to the origin. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(5) + * + * @param keepaliveTimeout Specifies how long, in seconds, CloudFront persists its connection to + * the origin. + */ + override fun keepaliveTimeout(keepaliveTimeout: Duration) { + cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) + } + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + * + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + * + * @param originId A unique identifier for the origin. + */ + override fun originId(originId: String) { + cdkBuilder.originId(originId) + } + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + * + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + */ + override fun originPath(originPath: String) { + cdkBuilder.originPath(originPath) + } + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + * + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + override fun originShieldEnabled(originShieldEnabled: Boolean) { + cdkBuilder.originShieldEnabled(originShieldEnabled) + } + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + override fun originShieldRegion(originShieldRegion: String) { + cdkBuilder.originShieldRegion(originShieldRegion) + } + + /** + * The SSL versions to use when interacting with the origin. + * + * Default: OriginSslPolicy.TLS_V1_2 + * + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + override fun originSslProtocols(originSslProtocols: List) { + cdkBuilder.originSslProtocols(originSslProtocols.map(OriginSslPolicy.Companion::unwrap)) + } + + /** + * The SSL versions to use when interacting with the origin. + * + * Default: OriginSslPolicy.TLS_V1_2 + * + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + override fun originSslProtocols(vararg originSslProtocols: OriginSslPolicy): Unit = + originSslProtocols(originSslProtocols.toList()) + + /** + * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. + * + * Default: OriginProtocolPolicy.HTTPS_ONLY + * + * @param protocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + * to the origin. + */ + override fun protocolPolicy(protocolPolicy: OriginProtocolPolicy) { + cdkBuilder.protocolPolicy(protocolPolicy.let(OriginProtocolPolicy.Companion::unwrap)) + } + + /** + * Specifies how long, in seconds, CloudFront waits for a response from the origin, also known + * as the origin response timeout. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(30) + * + * @param readTimeout Specifies how long, in seconds, CloudFront waits for a response from the + * origin, also known as the origin response timeout. + */ + override fun readTimeout(readTimeout: Duration) { + cdkBuilder.readTimeout(readTimeout.let(Duration.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke(bucket: CloudshiftdevAwscdkServicesS3IBucket, + block: Builder.() -> Unit = {}): S3StaticWebsiteOrigin { + val builderImpl = BuilderImpl(CloudshiftdevAwscdkServicesS3IBucket.unwrap(bucket)) + return S3StaticWebsiteOrigin(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin): + S3StaticWebsiteOrigin = S3StaticWebsiteOrigin(cdkObject) + + internal fun unwrap(wrapped: S3StaticWebsiteOrigin): + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin = wrapped.cdkObject + as software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOrigin + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOriginProps.kt new file mode 100644 index 0000000000..8fb2f26a3b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/origins/S3StaticWebsiteOriginProps.kt @@ -0,0 +1,450 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.cloudfront.origins + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.cloudfront.OriginProtocolPolicy +import io.cloudshiftdev.awscdk.services.cloudfront.OriginSslPolicy +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for configuring a origin using a S3 bucket configured as a website endpoint. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.cloudfront.*; + * import io.cloudshiftdev.awscdk.services.cloudfront.origins.*; + * S3StaticWebsiteOriginProps s3StaticWebsiteOriginProps = S3StaticWebsiteOriginProps.builder() + * .connectionAttempts(123) + * .connectionTimeout(Duration.minutes(30)) + * .customHeaders(Map.of( + * "customHeadersKey", "customHeaders")) + * .httpPort(123) + * .httpsPort(123) + * .keepaliveTimeout(Duration.minutes(30)) + * .originAccessControlId("originAccessControlId") + * .originId("originId") + * .originPath("originPath") + * .originShieldEnabled(false) + * .originShieldRegion("originShieldRegion") + * .originSslProtocols(List.of(OriginSslPolicy.SSL_V3)) + * .protocolPolicy(OriginProtocolPolicy.HTTP_ONLY) + * .readTimeout(Duration.minutes(30)) + * .build(); + * ``` + */ +public interface S3StaticWebsiteOriginProps : HttpOriginProps { + /** + * A builder for [S3StaticWebsiteOriginProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + public fun connectionAttempts(connectionAttempts: Number) + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + public fun connectionTimeout(connectionTimeout: Duration) + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + public fun customHeaders(customHeaders: Map) + + /** + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + */ + public fun httpPort(httpPort: Number) + + /** + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + */ + public fun httpsPort(httpsPort: Number) + + /** + * @param keepaliveTimeout Specifies how long, in seconds, CloudFront persists its connection to + * the origin. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + */ + public fun keepaliveTimeout(keepaliveTimeout: Duration) + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + public fun originAccessControlId(originAccessControlId: String) + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + public fun originId(originId: String) + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + public fun originPath(originPath: String) + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + public fun originShieldEnabled(originShieldEnabled: Boolean) + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + public fun originShieldRegion(originShieldRegion: String) + + /** + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + public fun originSslProtocols(originSslProtocols: List) + + /** + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + public fun originSslProtocols(vararg originSslProtocols: OriginSslPolicy) + + /** + * @param protocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + * to the origin. + */ + public fun protocolPolicy(protocolPolicy: OriginProtocolPolicy) + + /** + * @param readTimeout Specifies how long, in seconds, CloudFront waits for a response from the + * origin, also known as the origin response timeout. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + */ + public fun readTimeout(readTimeout: Duration) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps.Builder = + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps.builder() + + /** + * @param connectionAttempts The number of times that CloudFront attempts to connect to the + * origin;. + * valid values are 1, 2, or 3 attempts. + */ + override fun connectionAttempts(connectionAttempts: Number) { + cdkBuilder.connectionAttempts(connectionAttempts) + } + + /** + * @param connectionTimeout The number of seconds that CloudFront waits when trying to establish + * a connection to the origin. + * Valid values are 1-10 seconds, inclusive. + */ + override fun connectionTimeout(connectionTimeout: Duration) { + cdkBuilder.connectionTimeout(connectionTimeout.let(Duration.Companion::unwrap)) + } + + /** + * @param customHeaders A list of HTTP header names and values that CloudFront adds to requests + * it sends to the origin. + */ + override fun customHeaders(customHeaders: Map) { + cdkBuilder.customHeaders(customHeaders) + } + + /** + * @param httpPort The HTTP port that CloudFront uses to connect to the origin. + */ + override fun httpPort(httpPort: Number) { + cdkBuilder.httpPort(httpPort) + } + + /** + * @param httpsPort The HTTPS port that CloudFront uses to connect to the origin. + */ + override fun httpsPort(httpsPort: Number) { + cdkBuilder.httpsPort(httpsPort) + } + + /** + * @param keepaliveTimeout Specifies how long, in seconds, CloudFront persists its connection to + * the origin. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + */ + override fun keepaliveTimeout(keepaliveTimeout: Duration) { + cdkBuilder.keepaliveTimeout(keepaliveTimeout.let(Duration.Companion::unwrap)) + } + + /** + * @param originAccessControlId The unique identifier of an origin access control for this + * origin. + */ + override fun originAccessControlId(originAccessControlId: String) { + cdkBuilder.originAccessControlId(originAccessControlId) + } + + /** + * @param originId A unique identifier for the origin. + * This value must be unique within the distribution. + */ + override fun originId(originId: String) { + cdkBuilder.originId(originId) + } + + /** + * @param originPath An optional path that CloudFront appends to the origin domain name when + * CloudFront requests content from the origin. + * Must begin, but not end, with '/' (e.g., '/production/images'). + */ + override fun originPath(originPath: String) { + cdkBuilder.originPath(originPath) + } + + /** + * @param originShieldEnabled Origin Shield is enabled by setting originShieldRegion to a valid + * region, after this to disable Origin Shield again you must set this flag to false. + */ + override fun originShieldEnabled(originShieldEnabled: Boolean) { + cdkBuilder.originShieldEnabled(originShieldEnabled) + } + + /** + * @param originShieldRegion When you enable Origin Shield in the AWS Region that has the lowest + * latency to your origin, you can get better network performance. + */ + override fun originShieldRegion(originShieldRegion: String) { + cdkBuilder.originShieldRegion(originShieldRegion) + } + + /** + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + override fun originSslProtocols(originSslProtocols: List) { + cdkBuilder.originSslProtocols(originSslProtocols.map(OriginSslPolicy.Companion::unwrap)) + } + + /** + * @param originSslProtocols The SSL versions to use when interacting with the origin. + */ + override fun originSslProtocols(vararg originSslProtocols: OriginSslPolicy): Unit = + originSslProtocols(originSslProtocols.toList()) + + /** + * @param protocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + * to the origin. + */ + override fun protocolPolicy(protocolPolicy: OriginProtocolPolicy) { + cdkBuilder.protocolPolicy(protocolPolicy.let(OriginProtocolPolicy.Companion::unwrap)) + } + + /** + * @param readTimeout Specifies how long, in seconds, CloudFront waits for a response from the + * origin, also known as the origin response timeout. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + */ + override fun readTimeout(readTimeout: Duration) { + cdkBuilder.readTimeout(readTimeout.let(Duration.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps, + ) : CdkObject(cdkObject), + S3StaticWebsiteOriginProps { + /** + * The number of times that CloudFront attempts to connect to the origin; + * + * valid values are 1, 2, or 3 attempts. + * + * Default: 3 + */ + override fun connectionAttempts(): Number? = unwrap(this).getConnectionAttempts() + + /** + * The number of seconds that CloudFront waits when trying to establish a connection to the + * origin. + * + * Valid values are 1-10 seconds, inclusive. + * + * Default: Duration.seconds(10) + */ + override fun connectionTimeout(): Duration? = + unwrap(this).getConnectionTimeout()?.let(Duration::wrap) + + /** + * A list of HTTP header names and values that CloudFront adds to requests it sends to the + * origin. + * + * Default: {} + */ + override fun customHeaders(): Map = unwrap(this).getCustomHeaders() ?: + emptyMap() + + /** + * The HTTP port that CloudFront uses to connect to the origin. + * + * Default: 80 + */ + override fun httpPort(): Number? = unwrap(this).getHttpPort() + + /** + * The HTTPS port that CloudFront uses to connect to the origin. + * + * Default: 443 + */ + override fun httpsPort(): Number? = unwrap(this).getHttpsPort() + + /** + * Specifies how long, in seconds, CloudFront persists its connection to the origin. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(5) + */ + override fun keepaliveTimeout(): Duration? = + unwrap(this).getKeepaliveTimeout()?.let(Duration::wrap) + + /** + * The unique identifier of an origin access control for this origin. + * + * Default: - no origin access control + */ + override fun originAccessControlId(): String? = unwrap(this).getOriginAccessControlId() + + /** + * A unique identifier for the origin. + * + * This value must be unique within the distribution. + * + * Default: - an originid will be generated for you + */ + override fun originId(): String? = unwrap(this).getOriginId() + + /** + * An optional path that CloudFront appends to the origin domain name when CloudFront requests + * content from the origin. + * + * Must begin, but not end, with '/' (e.g., '/production/images'). + * + * Default: '/' + */ + override fun originPath(): String? = unwrap(this).getOriginPath() + + /** + * Origin Shield is enabled by setting originShieldRegion to a valid region, after this to + * disable Origin Shield again you must set this flag to false. + * + * Default: - true + */ + override fun originShieldEnabled(): Boolean? = unwrap(this).getOriginShieldEnabled() + + /** + * When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, + * you can get better network performance. + * + * Default: - origin shield not enabled + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + */ + override fun originShieldRegion(): String? = unwrap(this).getOriginShieldRegion() + + /** + * The SSL versions to use when interacting with the origin. + * + * Default: OriginSslPolicy.TLS_V1_2 + */ + override fun originSslProtocols(): List = + unwrap(this).getOriginSslProtocols()?.map(OriginSslPolicy::wrap) ?: emptyList() + + /** + * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. + * + * Default: OriginProtocolPolicy.HTTPS_ONLY + */ + override fun protocolPolicy(): OriginProtocolPolicy? = + unwrap(this).getProtocolPolicy()?.let(OriginProtocolPolicy::wrap) + + /** + * Specifies how long, in seconds, CloudFront waits for a response from the origin, also known + * as the origin response timeout. + * + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the + * origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an + * error at deploy time. + * + * Default: Duration.seconds(30) + */ + override fun readTimeout(): Duration? = unwrap(this).getReadTimeout()?.let(Duration::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3StaticWebsiteOriginProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps): + S3StaticWebsiteOriginProps = CdkObjectWrappers.wrap(cdkObject) as? + S3StaticWebsiteOriginProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3StaticWebsiteOriginProps): + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.cloudfront.origins.S3StaticWebsiteOriginProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/AddEventSelectorOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/AddEventSelectorOptions.kt index 792ebc8712..0f0c3362d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/AddEventSelectorOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/AddEventSelectorOptions.kt @@ -137,7 +137,8 @@ public interface AddEventSelectorOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.AddEventSelectorOptions, - ) : CdkObject(cdkObject), AddEventSelectorOptions { + ) : CdkObject(cdkObject), + AddEventSelectorOptions { /** * An optional list of service event sources from which you do not want management events to be * logged on your trail. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannel.kt index 881ad87da8..5cbb81c15a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannel.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudtrail.CfnChannel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -423,7 +425,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnChannel.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * For channels used for a CloudTrail Lake integration, the location is the ARN of an event * data store that receives events from a channel. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannelProps.kt index ec1e43298a..a42a05b9d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnChannelProps.kt @@ -193,7 +193,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * One or more event data stores to which events arriving through a channel will be logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStore.kt index 2f0fb34702..e3f2b26b02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStore.kt @@ -71,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventDataStore( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnEventDataStore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudtrail.CfnEventDataStore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1370,7 +1372,8 @@ public open class CfnEventDataStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnEventDataStore.AdvancedEventSelectorProperty, - ) : CdkObject(cdkObject), AdvancedEventSelectorProperty { + ) : CdkObject(cdkObject), + AdvancedEventSelectorProperty { /** * Contains all selector statements in an advanced event selector. * @@ -1485,20 +1488,21 @@ public open class CfnEventDataStore( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` can * only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -1513,18 +1517,31 @@ public open class CfnEventDataStore( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -1538,6 +1555,7 @@ public open class CfnEventDataStore( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -1551,366 +1569,17 @@ public open class CfnEventDataStore( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use `Equals` * or `NotEquals` , the value must exactly match the ARN of a valid resource of the type you've - * specified in the template as the value of resources.type. + * specified in the template as the value of resources.type. To log all data events for all objects + * in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket ARN as the + * matching value. For information about filtering on the `resources.ARN` field, see [Filtering + * data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. * * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following formats. - * To log all data events for all objects in a specific S3 bucket, use the `StartsWith` operator, - * and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than and - * greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in one of the following formats. To log events on all objects in - * an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-eventdatastore-advancedfieldselector.html#cfn-cloudtrail-eventdatastore-advancedfieldselector-field) */ public fun `field`(): String @@ -2015,20 +1684,21 @@ public open class CfnEventDataStore( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -2043,18 +1713,31 @@ public open class CfnEventDataStore( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -2068,6 +1751,7 @@ public open class CfnEventDataStore( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -2081,369 +1765,15 @@ public open class CfnEventDataStore( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. - * - * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` */ public fun `field`(`field`: String) @@ -2569,20 +1899,21 @@ public open class CfnEventDataStore( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -2597,18 +1928,31 @@ public open class CfnEventDataStore( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -2622,6 +1966,7 @@ public open class CfnEventDataStore( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -2635,369 +1980,15 @@ public open class CfnEventDataStore( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. - * - * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` */ override fun `field`(`field`: String) { cdkBuilder.`field`(`field`) @@ -3067,7 +2058,8 @@ public open class CfnEventDataStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnEventDataStore.AdvancedFieldSelectorProperty, - ) : CdkObject(cdkObject), AdvancedFieldSelectorProperty { + ) : CdkObject(cdkObject), + AdvancedFieldSelectorProperty { /** * An operator that includes events that match the last few characters of the event record * field specified as the value of `Field` . @@ -3123,20 +2115,21 @@ public open class CfnEventDataStore( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -3151,18 +2144,31 @@ public open class CfnEventDataStore( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -3176,6 +2182,7 @@ public open class CfnEventDataStore( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -3189,370 +2196,17 @@ public open class CfnEventDataStore( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. * * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-eventdatastore-advancedfieldselector.html#cfn-cloudtrail-eventdatastore-advancedfieldselector-field) */ override fun `field`(): String = unwrap(this).getField() @@ -3682,7 +2336,8 @@ public open class CfnEventDataStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnEventDataStore.InsightSelectorProperty, - ) : CdkObject(cdkObject), InsightSelectorProperty { + ) : CdkObject(cdkObject), + InsightSelectorProperty { /** * The type of Insights events to log on an event data store. `ApiCallRateInsight` and * `ApiErrorRateInsight` are valid Insight types. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStoreProps.kt index c5a0b0b62b..2b1a3e27f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnEventDataStoreProps.kt @@ -882,7 +882,8 @@ public interface CfnEventDataStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnEventDataStoreProps, - ) : CdkObject(cdkObject), CfnEventDataStoreProps { + ) : CdkObject(cdkObject), + CfnEventDataStoreProps { /** * The advanced event selectors to use to select the events for the data store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicy.kt index fbc6327341..51ef9d153a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicy.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicyProps.kt index 7aef64c846..26d09081d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnResourcePolicyProps.kt @@ -111,7 +111,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based * policy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrail.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrail.kt index fc16043e45..f7cae2b9f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrail.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrail.kt @@ -81,7 +81,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrail( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -473,7 +475,14 @@ public open class CfnTrail( * * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn) * @param cloudWatchLogsLogGroupArn Specifies a log group name using an Amazon Resource Name @@ -487,6 +496,15 @@ public open class CfnTrail( * * You must use a role that exists in your account. * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn) * @param cloudWatchLogsRoleArn Specifies the role for the CloudWatch Logs endpoint to assume to * write to a user's log group. @@ -910,7 +928,14 @@ public open class CfnTrail( * * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn) * @param cloudWatchLogsLogGroupArn Specifies a log group name using an Amazon Resource Name @@ -926,6 +951,15 @@ public open class CfnTrail( * * You must use a role that exists in your account. * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn) * @param cloudWatchLogsRoleArn Specifies the role for the CloudWatch Logs endpoint to assume to * write to a user's log group. @@ -1490,7 +1524,8 @@ public open class CfnTrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedEventSelectorProperty, - ) : CdkObject(cdkObject), AdvancedEventSelectorProperty { + ) : CdkObject(cdkObject), + AdvancedEventSelectorProperty { /** * Contains all selector statements in an advanced event selector. * @@ -1605,20 +1640,21 @@ public open class CfnTrail( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` can * only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -1633,18 +1669,31 @@ public open class CfnTrail( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -1658,6 +1707,7 @@ public open class CfnTrail( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -1671,366 +1721,17 @@ public open class CfnTrail( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use `Equals` * or `NotEquals` , the value must exactly match the ARN of a valid resource of the type you've - * specified in the template as the value of resources.type. + * specified in the template as the value of resources.type. To log all data events for all objects + * in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket ARN as the + * matching value. For information about filtering on the `resources.ARN` field, see [Filtering + * data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. * * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following formats. - * To log all data events for all objects in a specific S3 bucket, use the `StartsWith` operator, - * and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than and - * greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in one of the following formats. To log events on all objects in - * an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-advancedfieldselector.html#cfn-cloudtrail-trail-advancedfieldselector-field) */ public fun `field`(): String @@ -2135,20 +1836,21 @@ public open class CfnTrail( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -2163,18 +1865,31 @@ public open class CfnTrail( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -2188,6 +1903,7 @@ public open class CfnTrail( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -2201,473 +1917,119 @@ public open class CfnTrail( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. + */ + public fun `field`(`field`: String) + + /** + * @param notEndsWith An operator that excludes events that match the last few characters of + * the event record field specified as the value of `Field` . + */ + public fun notEndsWith(notEndsWith: List) + + /** + * @param notEndsWith An operator that excludes events that match the last few characters of + * the event record field specified as the value of `Field` . + */ + public fun notEndsWith(vararg notEndsWith: String) + + /** + * @param notEquals An operator that excludes events that match the exact value of the event + * record field specified as the value of `Field` . + */ + public fun notEquals(notEquals: List) + + /** + * @param notEquals An operator that excludes events that match the exact value of the event + * record field specified as the value of `Field` . + */ + public fun notEquals(vararg notEquals: String) + + /** + * @param notStartsWith An operator that excludes events that match the first few characters + * of the event record field specified as the value of `Field` . + */ + public fun notStartsWith(notStartsWith: List) + + /** + * @param notStartsWith An operator that excludes events that match the first few characters + * of the event record field specified as the value of `Field` . + */ + public fun notStartsWith(vararg notStartsWith: String) + + /** + * @param startsWith An operator that includes events that match the first few characters of + * the event record field specified as the value of `Field` . + */ + public fun startsWith(startsWith: List) + + /** + * @param startsWith An operator that includes events that match the first few characters of + * the event record field specified as the value of `Field` . + */ + public fun startsWith(vararg startsWith: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedFieldSelectorProperty.Builder + = + software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedFieldSelectorProperty.builder() + + /** + * @param endsWith An operator that includes events that match the last few characters of the + * event record field specified as the value of `Field` . + */ + override fun endsWith(endsWith: List) { + cdkBuilder.endsWith(endsWith) + } + + /** + * @param endsWith An operator that includes events that match the last few characters of the + * event record field specified as the value of `Field` . + */ + override fun endsWith(vararg endsWith: String): Unit = endsWith(endsWith.toList()) + + /** + * @param equalTo An operator that includes events that match the exact value of the event + * record field specified as the value of `Field` . + * This is the only valid operator that you can use with the `readOnly` , `eventCategory` , + * and `resources.type` fields. + */ + override fun equalTo(equalTo: List) { + cdkBuilder.equalTo(equalTo) + } + + /** + * @param equalTo An operator that includes events that match the exact value of the event + * record field specified as the value of `Field` . + * This is the only valid operator that you can use with the `readOnly` , `eventCategory` , + * and `resources.type` fields. + */ + override fun equalTo(vararg equalTo: String): Unit = equalTo(equalTo.toList()) + + /** + * @param field A field in a CloudTrail event record on which to filter events to be logged. + * For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit + * Manager evidence, or events outside of AWS , the field is used only for selecting events as + * filtering is not supported. * + * For CloudTrail management events, supported fields include `readOnly` , `eventCategory` , + * and `eventSource` . * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` + * For CloudTrail data events, supported fields include `readOnly` , `eventCategory` , + * `eventName` , `resources.type` , and `resources.ARN` . * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` - */ - public fun `field`(`field`: String) - - /** - * @param notEndsWith An operator that excludes events that match the last few characters of - * the event record field specified as the value of `Field` . - */ - public fun notEndsWith(notEndsWith: List) - - /** - * @param notEndsWith An operator that excludes events that match the last few characters of - * the event record field specified as the value of `Field` . - */ - public fun notEndsWith(vararg notEndsWith: String) - - /** - * @param notEquals An operator that excludes events that match the exact value of the event - * record field specified as the value of `Field` . - */ - public fun notEquals(notEquals: List) - - /** - * @param notEquals An operator that excludes events that match the exact value of the event - * record field specified as the value of `Field` . - */ - public fun notEquals(vararg notEquals: String) - - /** - * @param notStartsWith An operator that excludes events that match the first few characters - * of the event record field specified as the value of `Field` . - */ - public fun notStartsWith(notStartsWith: List) - - /** - * @param notStartsWith An operator that excludes events that match the first few characters - * of the event record field specified as the value of `Field` . - */ - public fun notStartsWith(vararg notStartsWith: String) - - /** - * @param startsWith An operator that includes events that match the first few characters of - * the event record field specified as the value of `Field` . - */ - public fun startsWith(startsWith: List) - - /** - * @param startsWith An operator that includes events that match the first few characters of - * the event record field specified as the value of `Field` . - */ - public fun startsWith(vararg startsWith: String) - } - - private class BuilderImpl : Builder { - private val cdkBuilder: - software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedFieldSelectorProperty.Builder - = - software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedFieldSelectorProperty.builder() - - /** - * @param endsWith An operator that includes events that match the last few characters of the - * event record field specified as the value of `Field` . - */ - override fun endsWith(endsWith: List) { - cdkBuilder.endsWith(endsWith) - } - - /** - * @param endsWith An operator that includes events that match the last few characters of the - * event record field specified as the value of `Field` . - */ - override fun endsWith(vararg endsWith: String): Unit = endsWith(endsWith.toList()) - - /** - * @param equalTo An operator that includes events that match the exact value of the event - * record field specified as the value of `Field` . - * This is the only valid operator that you can use with the `readOnly` , `eventCategory` , - * and `resources.type` fields. - */ - override fun equalTo(equalTo: List) { - cdkBuilder.equalTo(equalTo) - } - - /** - * @param equalTo An operator that includes events that match the exact value of the event - * record field specified as the value of `Field` . - * This is the only valid operator that you can use with the `readOnly` , `eventCategory` , - * and `resources.type` fields. - */ - override fun equalTo(vararg equalTo: String): Unit = equalTo(equalTo.toList()) - - /** - * @param field A field in a CloudTrail event record on which to filter events to be logged. - * For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit - * Manager evidence, or events outside of AWS , the field is used only for selecting events as - * filtering is not supported. - * - * For CloudTrail management events, supported fields include `readOnly` , `eventCategory` , - * and `eventSource` . - * - * For CloudTrail data events, supported fields include `readOnly` , `eventCategory` , - * `eventName` , `resources.type` , and `resources.ARN` . - * - * For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit - * Manager evidence, or events outside of AWS , the only supported field is `eventCategory` . + * For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit + * Manager evidence, or events outside of AWS , the only supported field is `eventCategory` . * * * *`readOnly`* - Optional. Can be set to `Equals` a value of `true` or `false` . If you do * not add this field, CloudTrail logs both `read` and `write` events. A value of `true` logs @@ -2689,20 +2051,21 @@ public open class CfnTrail( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -2717,18 +2080,31 @@ public open class CfnTrail( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -2742,6 +2118,7 @@ public open class CfnTrail( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -2755,369 +2132,15 @@ public open class CfnTrail( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. - * - * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` */ override fun `field`(`field`: String) { cdkBuilder.`field`(`field`) @@ -3187,7 +2210,8 @@ public open class CfnTrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedFieldSelectorProperty, - ) : CdkObject(cdkObject), AdvancedFieldSelectorProperty { + ) : CdkObject(cdkObject), + AdvancedFieldSelectorProperty { /** * An operator that includes events that match the last few characters of the event record * field specified as the value of `Field` . @@ -3243,20 +2267,21 @@ public open class CfnTrail( * * For non- AWS events, the value must be `ActivityAuditLog` . * * *`resources.type`* - This field is required for CloudTrail data events. `resources.type` * can only use the `Equals` operator, and the value can be one of the following: - * * `AWS::DynamoDB::Table` - * * `AWS::Lambda::Function` - * * `AWS::S3::Object` * * `AWS::AppConfig::Configuration` * * `AWS::B2BI::Transformer` * * `AWS::Bedrock::AgentAlias` + * * `AWS::Bedrock::FlowAlias` + * * `AWS::Bedrock::Guardrail` * * `AWS::Bedrock::KnowledgeBase` * * `AWS::Cassandra::Table` * * `AWS::CloudFront::KeyValueStore` * * `AWS::CloudTrail::Channel` + * * `AWS::CloudWatch::Metric` * * `AWS::CodeWhisperer::Customization` * * `AWS::CodeWhisperer::Profile` * * `AWS::Cognito::IdentityPool` * * `AWS::DynamoDB::Stream` + * * `AWS::DynamoDB::Table` * * `AWS::EC2::Snapshot` * * `AWS::EMRWAL::Workspace` * * `AWS::FinSpace::Environment` @@ -3271,18 +2296,31 @@ public open class CfnTrail( * * `AWS::IoTTwinMaker::Entity` * * `AWS::IoTTwinMaker::Workspace` * * `AWS::KendraRanking::ExecutionPlan` + * * `AWS::Kinesis::Stream` + * * `AWS::Kinesis::StreamConsumer` * * `AWS::KinesisVideo::Stream` + * * `AWS::Lambda::Function` + * * `AWS::MachineLearning::MlModel` * * `AWS::ManagedBlockchain::Network` * * `AWS::ManagedBlockchain::Node` * * `AWS::MedicalImaging::Datastore` * * `AWS::NeptuneGraph::Graph` + * * `AWS::One::UKey` + * * `AWS::One::User` + * * `AWS::PaymentCryptography::Alias` + * * `AWS::PaymentCryptography::Key` * * `AWS::PCAConnectorAD::Connector` + * * `AWS::PCAConnectorSCEP::Connector` + * * `AWS::QApps:QApp` * * `AWS::QBusiness::Application` * * `AWS::QBusiness::DataSource` * * `AWS::QBusiness::Index` * * `AWS::QBusiness::WebExperience` * * `AWS::RDS::DBCluster` + * * `AWS::RUM::AppMonitor` * * `AWS::S3::AccessPoint` + * * `AWS::S3::Object` + * * `AWS::S3Express::Object` * * `AWS::S3ObjectLambda::AccessPoint` * * `AWS::S3Outposts::Object` * * `AWS::SageMaker::Endpoint` @@ -3296,6 +2334,7 @@ public open class CfnTrail( * * `AWS::SQS::Queue` * * `AWS::SSM::ManagedNode` * * `AWS::SSMMessages::ControlChannel` + * * `AWS::StepFunctions::StateMachine` * * `AWS::SWF::Domain` * * `AWS::ThinClient::Device` * * `AWS::ThinClient::Environment` @@ -3309,370 +2348,17 @@ public open class CfnTrail( * * * *`resources.ARN`* - You can use any operator with `resources.ARN` , but if you use * `Equals` or `NotEquals` , the value must exactly match the ARN of a valid resource of the type - * you've specified in the template as the value of resources.type. + * you've specified in the template as the value of resources.type. To log all data events for all + * objects in a specific S3 bucket, use the `StartsWith` operator, and include only the bucket + * ARN as the matching value. For information about filtering on the `resources.ARN` field, see + * [Filtering data events by + * resources.ARN](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn) + * in the *AWS CloudTrail User Guide* . * * * You can't use the `resources.ARN` field to filter resource types that do not have ARNs. * * - * The `resources.ARN` field can be set one of the following. - * - * If resources.type equals `AWS::S3::Object` , the ARN must be in one of the following - * formats. To log all data events for all objects in a specific S3 bucket, use the `StartsWith` - * operator, and include only the bucket ARN as the matching value. - * - * The trailing slash is intentional; do not exclude it. Replace the text between less than - * and greater than symbols (<>) with resource-specific information. - * - * * `arn:<partition>:s3:::<bucket_name>/` - * * `arn:<partition>:s3:::<bucket_name>/<object_path>/` - * - * When resources.type equals `AWS::DynamoDB::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>` - * - * When resources.type equals `AWS::Lambda::Function` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:lambda:<region>:<account_ID>:function:<function_name>` - * - * When resources.type equals `AWS::AppConfig::Configuration` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:appconfig:<region>:<account_ID>:application/<application_ID>/environment/<environment_ID>/configuration/<configuration_profile_ID>` - * - * When resources.type equals `AWS::B2BI::Transformer` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>` - * - * When resources.type equals `AWS::Bedrock::AgentAlias` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>` - * - * When resources.type equals `AWS::Bedrock::KnowledgeBase` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>` - * - * When resources.type equals `AWS::Cassandra::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>` - * - * When resources.type equals `AWS::CloudFront::KeyValueStore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>` - * - * When resources.type equals `AWS::CloudTrail::Channel` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cloudtrail:<region>:<account_ID>:channel/<channel_UUID>` - * - * When resources.type equals `AWS::CodeWhisperer::Customization` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>` - * - * When resources.type equals `AWS::CodeWhisperer::Profile` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:codewhisperer:<region>:<account_ID>:profile/<profile_ID>` - * - * When resources.type equals `AWS::Cognito::IdentityPool` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:cognito-identity:<region>:<account_ID>:identitypool/<identity_pool_ID>` - * - * When `resources.type` equals `AWS::DynamoDB::Stream` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>` - * - * When `resources.type` equals `AWS::EC2::Snapshot` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:ec2:<region>::snapshot/<snapshot_ID>` - * - * When `resources.type` equals `AWS::EMRWAL::Workspace` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>` - * - * When `resources.type` equals `AWS::FinSpace::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:finspace:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Glue::Table` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::ComponentVersion` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:components/<component_name>` - * - * When `resources.type` equals `AWS::GreengrassV2::Deployment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:greengrass:<region>:<account_ID>:deployments/<deployment_ID` - * - * When `resources.type` equals `AWS::GuardDuty::Detector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:guardduty:<region>:<account_ID>:detector/<detector_ID>` - * - * When `resources.type` equals `AWS::IoT::Certificate` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:cert/<certificate_ID>` - * - * When `resources.type` equals `AWS::IoT::Thing` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:iot:<region>:<account_ID>:thing/<thing_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::Asset` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:asset/<asset_ID>` - * - * When `resources.type` equals `AWS::IoTSiteWise::TimeSeries` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iotsitewise:<region>:<account_ID>:timeseries/<timeseries_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Entity` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>` - * - * When `resources.type` equals `AWS::IoTTwinMaker::Workspace` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>` - * - * When `resources.type` equals `AWS::KendraRanking::ExecutionPlan` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kendra-ranking:<region>:<account_ID>:rescore-execution-plan/<rescore_execution_plan_ID>` - * - * When `resources.type` equals `AWS::KinesisVideo::Stream` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Network` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:managedblockchain:::networks/<network_name>` - * - * When `resources.type` equals `AWS::ManagedBlockchain::Node` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:managedblockchain:<region>:<account_ID>:nodes/<node_ID>` - * - * When `resources.type` equals `AWS::MedicalImaging::Datastore` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:medical-imaging:<region>:<account_ID>:datastore/<data_store_ID>` - * - * When `resources.type` equals `AWS::NeptuneGraph::Graph` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>` - * - * When `resources.type` equals `AWS::PCAConnectorAD::Connector` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Application` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>` - * - * When `resources.type` equals `AWS::QBusiness::DataSource` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>` - * - * When `resources.type` equals `AWS::QBusiness::Index` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>` - * - * When `resources.type` equals `AWS::QBusiness::WebExperience` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>` - * - * When `resources.type` equals `AWS::RDS::DBCluster` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>` - * - * When `resources.type` equals `AWS::S3::AccessPoint` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats. To log events on all objects - * in an S3 access point, we recommend that you use only the access point ARN, don’t include the - * object path, and use the `StartsWith` or `NotStartsWith` operators. - * - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>` - * * - * `arn:<partition>:s3:<region>:<account_ID>:accesspoint/<access_point_name>/object/<object_path>` - * - * When `resources.type` equals `AWS::S3ObjectLambda::AccessPoint` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:s3-object-lambda:<region>:<account_ID>:accesspoint/<access_point_name>` - * - * When `resources.type` equals `AWS::S3Outposts::Object` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:s3-outposts:<region>:<account_ID>:<object_path>` - * - * When `resources.type` equals `AWS::SageMaker::Endpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>` - * - * When `resources.type` equals `AWS::SageMaker::ExperimentTrialComponent` , and the operator - * is set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:experiment-trial-component/<experiment_trial_component_name>` - * - * When `resources.type` equals `AWS::SageMaker::FeatureGroup` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sagemaker:<region>:<account_ID>:feature-group/<feature_group_name>` - * - * When `resources.type` equals `AWS::SCN::Instance` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Namespace` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>` - * - * When `resources.type` equals `AWS::ServiceDiscovery::Service` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>` - * - * When `resources.type` equals `AWS::SNS::PlatformEndpoint` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>` - * - * When `resources.type` equals `AWS::SNS::Topic` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>` - * - * When `resources.type` equals `AWS::SQS::Queue` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>` - * - * When `resources.type` equals `AWS::SSM::ManagedNode` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in one of the following formats: - * - * * - * `arn:<partition>:ssm:<region>:<account_ID>:managed-instance/<instance_ID>` - * * - * `arn:<partition>:ec2:<region>:<account_ID>:instance/<instance_ID>` - * - * When `resources.type` equals `AWS::SSMMessages::ControlChannel` , and the operator is set - * to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:ssmmessages:<region>:<account_ID>:control-channel/<channel_ID>` - * - * When `resources.type` equals `AWS::SWF::Domain` , and the operator is set to `Equals` or - * `NotEquals` , the ARN must be in the following format: - * - * * `arn:<partition>:swf:<region>:<account_ID>:domain/<domain_name>` - * - * When `resources.type` equals `AWS::ThinClient::Device` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>` - * - * When `resources.type` equals `AWS::ThinClient::Environment` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>` - * - * When `resources.type` equals `AWS::Timestream::Database` , and the operator is set to - * `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>` - * - * When `resources.type` equals `AWS::Timestream::Table` , and the operator is set to `Equals` - * or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>` - * - * When resources.type equals `AWS::VerifiedPermissions::PolicyStore` , and the operator is - * set to `Equals` or `NotEquals` , the ARN must be in the following format: - * - * * - * `arn:<partition>:verifiedpermissions:<region>:<account_ID>:policy-store/<policy_store_UUID>` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-advancedfieldselector.html#cfn-cloudtrail-trail-advancedfieldselector-field) */ override fun `field`(): String = unwrap(this).getField() @@ -3729,38 +2415,36 @@ public open class CfnTrail( } /** - * Data events provide information about the resource operations performed on or within a resource - * itself. - * - * These are also known as data plane operations. You can specify up to 250 data resources for a - * trail. - * - * Configure the `DataResource` to specify the resource type and resource ARNs for which you want - * to log data events. - * - * You can specify the following resource types in your event selectors for your trail: + * You can configure the `DataResource` in an `EventSelector` to log data events for the following + * three resource types:. * * * `AWS::DynamoDB::Table` * * `AWS::Lambda::Function` * * `AWS::S3::Object` * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) , + * you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. + * + * Configure the `DataResource` to specify the resource type and resource ARNs for which you want + * to log data events. + * * * The total number of allowed data resources is 250. This number can be distributed between 1 and * 5 event selectors, but the total cannot exceed 250 across all selectors for the trail. * - * If you are using advanced event selectors, the maximum total number of values for all - * conditions, across all advanced event selectors for the trail, is 500. - * * * The following example demonstrates how logging works when you configure logging of all data - * events for an S3 bucket named `bucket-1` . In this example, the CloudTrail user specified an empty - * prefix, and the option to log both `Read` and `Write` data events. + * events for a general purpose bucket named `amzn-s3-demo-bucket1` . In this example, the CloudTrail + * user specified an empty prefix, and the option to log both `Read` and `Write` data events. * - * * A user uploads an image file to `bucket-1` . + * * A user uploads an image file to `amzn-s3-demo-bucket1` . * * The `PutObject` API operation is an Amazon S3 object-level API. It is recorded as a data * event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, * events that occur on any object in that bucket are logged. The trail processes and logs the event. - * * A user uploads an object to an Amazon S3 bucket named `arn:aws:s3:::bucket-2` . + * * A user uploads an object to an Amazon S3 bucket named `arn:aws:s3:::amzn-s3-demo-bucket1` . * * The `PutObject` API operation occurred for an object in an S3 bucket that the CloudTrail user * didn't specify for the trail. The trail doesn’t log the event. * @@ -3825,11 +2509,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty object - * prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in this S3 - * bucket. + * prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for all objects + * in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -3886,11 +2570,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty - * object prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in - * this S3 bucket. + * object prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for + * all objects in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -3926,11 +2610,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty - * object prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in - * this S3 bucket. + * object prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for + * all objects in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -3989,11 +2673,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty - * object prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in - * this S3 bucket. + * object prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for + * all objects in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -4031,11 +2715,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty - * object prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in - * this S3 bucket. + * object prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for + * all objects in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -4065,7 +2749,8 @@ public open class CfnTrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail.DataResourceProperty, - ) : CdkObject(cdkObject), DataResourceProperty { + ) : CdkObject(cdkObject), + DataResourceProperty { /** * The resource type in which you want to log data events. * @@ -4097,11 +2782,11 @@ public open class CfnTrail( * * * * To log data events for all objects in an S3 bucket, specify the bucket and an empty - * object prefix such as `arn:aws:s3:::bucket-1/` . The trail logs data events for all objects in - * this S3 bucket. + * object prefix such as `arn:aws:s3:::amzn-s3-demo-bucket1/` . The trail logs data events for + * all objects in this S3 bucket. * * To log data events for specific objects, specify the S3 bucket and object prefix such as - * `arn:aws:s3:::bucket-1/example-images` . The trail logs data events for objects in this S3 - * bucket that match the prefix. + * `arn:aws:s3:::amzn-s3-demo-bucket1/example-images` . The trail logs data events for objects in + * this S3 bucket that match the prefix. * * To log data events for all Lambda functions in your AWS account , specify the prefix as * `arn:aws:lambda` . * @@ -4181,8 +2866,8 @@ public open class CfnTrail( */ public interface EventSelectorProperty { /** - * CloudTrail supports data event logging for Amazon S3 objects, AWS Lambda functions, and - * Amazon DynamoDB tables with basic event selectors. + * CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS + * Lambda functions, and Amazon DynamoDB tables with basic event selectors. * * You can specify up to 250 resources for an individual event selector, but the total number of * data resources cannot exceed 250 across all event selectors in a trail. This limit does not @@ -4194,6 +2879,14 @@ public open class CfnTrail( * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-dataresources) */ public fun dataResources(): Any? = unwrap(this).getDataResources() @@ -4249,8 +2942,9 @@ public open class CfnTrail( @CdkDslMarker public interface Builder { /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4260,12 +2954,20 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ public fun dataResources(dataResources: IResolvable) /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4275,12 +2977,20 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ public fun dataResources(dataResources: List) /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4290,6 +3000,13 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ public fun dataResources(vararg dataResources: Any) @@ -4364,8 +3081,9 @@ public open class CfnTrail( software.amazon.awscdk.services.cloudtrail.CfnTrail.EventSelectorProperty.builder() /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4375,14 +3093,22 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ override fun dataResources(dataResources: IResolvable) { cdkBuilder.dataResources(dataResources.let(IResolvable.Companion::unwrap)) } /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4392,14 +3118,22 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ override fun dataResources(dataResources: List) { cdkBuilder.dataResources(dataResources.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param dataResources CloudTrail supports data event logging for Amazon S3 objects, AWS - * Lambda functions, and Amazon DynamoDB tables with basic event selectors. + * @param dataResources CloudTrail supports data event logging for Amazon S3 objects in + * standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event + * selectors. * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not * apply if you configure resource logging for all data events. @@ -4409,6 +3143,13 @@ public open class CfnTrail( * and [Limits in AWS * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . + * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. */ override fun dataResources(vararg dataResources: Any): Unit = dataResources(dataResources.toList()) @@ -4492,10 +3233,11 @@ public open class CfnTrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail.EventSelectorProperty, - ) : CdkObject(cdkObject), EventSelectorProperty { + ) : CdkObject(cdkObject), + EventSelectorProperty { /** - * CloudTrail supports data event logging for Amazon S3 objects, AWS Lambda functions, and - * Amazon DynamoDB tables with basic event selectors. + * CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS + * Lambda functions, and Amazon DynamoDB tables with basic event selectors. * * You can specify up to 250 resources for an individual event selector, but the total number * of data resources cannot exceed 250 across all event selectors in a trail. This limit does not @@ -4507,6 +3249,14 @@ public open class CfnTrail( * CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) * in the *AWS CloudTrail User Guide* . * + * + * To log data events for all other resource types including objects stored in [directory + * buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) + * , you must use + * [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html) + * . You must also use `AdvancedEventSelectors` if you want to filter on the `eventName` field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-dataresources) */ override fun dataResources(): Any? = unwrap(this).getDataResources() @@ -4648,7 +3398,8 @@ public open class CfnTrail( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrail.InsightSelectorProperty, - ) : CdkObject(cdkObject), InsightSelectorProperty { + ) : CdkObject(cdkObject), + InsightSelectorProperty { /** * The type of Insights events to log on a trail. `ApiCallRateInsight` and * `ApiErrorRateInsight` are valid Insight types. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrailProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrailProps.kt index 026e374535..5431cfdb88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrailProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/CfnTrailProps.kt @@ -94,7 +94,14 @@ public interface CfnTrailProps { * * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` and + * `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn) */ @@ -105,6 +112,15 @@ public interface CfnTrailProps { * * You must use a role that exists in your account. * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` and + * `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn) */ public fun cloudWatchLogsRoleArn(): String? = unwrap(this).getCloudWatchLogsRoleArn() @@ -326,7 +342,13 @@ public interface CfnTrailProps { * (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . */ public fun cloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn: String) @@ -334,6 +356,14 @@ public interface CfnTrailProps { * @param cloudWatchLogsRoleArn Specifies the role for the CloudWatch Logs endpoint to assume to * write to a user's log group. * You must use a role that exists in your account. + * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . */ public fun cloudWatchLogsRoleArn(cloudWatchLogsRoleArn: String) @@ -643,7 +673,13 @@ public interface CfnTrailProps { * (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . */ override fun cloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn: String) { cdkBuilder.cloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn) @@ -653,6 +689,14 @@ public interface CfnTrailProps { * @param cloudWatchLogsRoleArn Specifies the role for the CloudWatch Logs endpoint to assume to * write to a user's log group. * You must use a role that exists in your account. + * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . */ override fun cloudWatchLogsRoleArn(cloudWatchLogsRoleArn: String) { cdkBuilder.cloudWatchLogsRoleArn(cloudWatchLogsRoleArn) @@ -961,7 +1005,8 @@ public interface CfnTrailProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.CfnTrailProps, - ) : CdkObject(cdkObject), CfnTrailProps { + ) : CdkObject(cdkObject), + CfnTrailProps { /** * Specifies the settings for advanced event selectors. * @@ -983,7 +1028,14 @@ public interface CfnTrailProps { * * You must use a log group that exists in your account. * - * Not required unless you specify `CloudWatchLogsRoleArn` . + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn) */ @@ -994,6 +1046,15 @@ public interface CfnTrailProps { * * You must use a role that exists in your account. * + * To enable CloudWatch Logs delivery, you must provide values for `CloudWatchLogsLogGroupArn` + * and `CloudWatchLogsRoleArn` . + * + * + * If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs + * delivery, you must set the values of the `CloudWatchLogsRoleArn` and `CloudWatchLogsLogGroupArn` + * fields to `""` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn) */ override fun cloudWatchLogsRoleArn(): String? = unwrap(this).getCloudWatchLogsRoleArn() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/S3EventSelector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/S3EventSelector.kt index b5a98c9d74..348540741b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/S3EventSelector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/S3EventSelector.kt @@ -80,7 +80,8 @@ public interface S3EventSelector { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.S3EventSelector, - ) : CdkObject(cdkObject), S3EventSelector { + ) : CdkObject(cdkObject), + S3EventSelector { /** * S3 bucket. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/TrailProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/TrailProps.kt index 50153cf7db..4d21b92f02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/TrailProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudtrail/TrailProps.kt @@ -466,7 +466,8 @@ public interface TrailProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudtrail.TrailProps, - ) : CdkObject(cdkObject), TrailProps { + ) : CdkObject(cdkObject), + TrailProps { /** * The Amazon S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Alarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Alarm.kt index 13a7b47dcd..d183faa98f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Alarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Alarm.kt @@ -63,7 +63,7 @@ public open class Alarm( /** * Trigger this action if the alarm fires. * - * Typically SnsAcion or AutoScalingAction. + * Typically SnsAction or AutoScalingAction. * * @param actions */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmActionConfig.kt index be8d581d26..8c5070c405 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmActionConfig.kt @@ -56,7 +56,8 @@ public interface AlarmActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.AlarmActionConfig, - ) : CdkObject(cdkObject), AlarmActionConfig { + ) : CdkObject(cdkObject), + AlarmActionConfig { /** * Return the ARN that should be used for a CloudWatch Alarm action. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmBase.kt index f69c6e597c..7241579a20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmBase.kt @@ -12,7 +12,8 @@ import kotlin.String */ public abstract class AlarmBase( cdkObject: software.amazon.awscdk.services.cloudwatch.AlarmBase, -) : Resource(cdkObject), IAlarm { +) : Resource(cdkObject), + IAlarm { /** * Trigger this action if the alarm fires. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmProps.kt index 7c9ccf8f2d..a68199622e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmProps.kt @@ -206,7 +206,8 @@ public interface AlarmProps : CreateAlarmOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.AlarmProps, - ) : CdkObject(cdkObject), AlarmProps { + ) : CdkObject(cdkObject), + AlarmProps { /** * Whether the actions for this alarm are enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmStatusWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmStatusWidgetProps.kt index 38477f956c..c8480c3139 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmStatusWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmStatusWidgetProps.kt @@ -207,7 +207,8 @@ public interface AlarmStatusWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.AlarmStatusWidgetProps, - ) : CdkObject(cdkObject), AlarmStatusWidgetProps { + ) : CdkObject(cdkObject), + AlarmStatusWidgetProps { /** * CloudWatch Alarms to show in widget. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmWidgetProps.kt index 51901abd90..15b6bca0cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/AlarmWidgetProps.kt @@ -140,7 +140,8 @@ public interface AlarmWidgetProps : MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.AlarmWidgetProps, - ) : CdkObject(cdkObject), AlarmWidgetProps { + ) : CdkObject(cdkObject), + AlarmWidgetProps { /** * The alarm to show. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarm.kt index 3a764ba446..75a88b7ed2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarm.kt @@ -98,7 +98,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlarm( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarm, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1468,7 +1470,8 @@ public open class CfnAlarm( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarm.DimensionProperty, - ) : CdkObject(cdkObject), DimensionProperty { + ) : CdkObject(cdkObject), + DimensionProperty { /** * The name of the dimension, from 1–255 characters in length. * @@ -1873,7 +1876,8 @@ public open class CfnAlarm( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarm.MetricDataQueryProperty, - ) : CdkObject(cdkObject), MetricDataQueryProperty { + ) : CdkObject(cdkObject), + MetricDataQueryProperty { /** * The ID of the account where the metrics are located, if this is a cross-account alarm. * @@ -2111,7 +2115,8 @@ public open class CfnAlarm( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarm.MetricProperty, - ) : CdkObject(cdkObject), MetricProperty { + ) : CdkObject(cdkObject), + MetricProperty { /** * The metric dimensions that you want to be used for the metric that the alarm will watch. * @@ -2371,7 +2376,8 @@ public open class CfnAlarm( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarm.MetricStatProperty, - ) : CdkObject(cdkObject), MetricStatProperty { + ) : CdkObject(cdkObject), + MetricStatProperty { /** * The metric to return, including the metric name, namespace, and dimensions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarmProps.kt index 31a4702d3f..808c30ae1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAlarmProps.kt @@ -980,7 +980,8 @@ public interface CfnAlarmProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAlarmProps, - ) : CdkObject(cdkObject), CfnAlarmProps { + ) : CdkObject(cdkObject), + CfnAlarmProps { /** * Indicates whether actions should be executed during any changes to the alarm state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetector.kt index df77a7492d..44a7f34274 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetector.kt @@ -98,7 +98,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnomalyDetector( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -902,7 +903,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.ConfigurationProperty, - ) : CdkObject(cdkObject), ConfigurationProperty { + ) : CdkObject(cdkObject), + ConfigurationProperty { /** * Specifies an array of time ranges to exclude from use when the anomaly detection model is * trained and updated. @@ -1038,7 +1040,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.DimensionProperty, - ) : CdkObject(cdkObject), DimensionProperty { + ) : CdkObject(cdkObject), + DimensionProperty { /** * The name of the dimension. * @@ -1161,7 +1164,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricCharacteristicsProperty, - ) : CdkObject(cdkObject), MetricCharacteristicsProperty { + ) : CdkObject(cdkObject), + MetricCharacteristicsProperty { /** * Set this parameter to true if values for this metric consistently include spikes that * should not be considered to be anomalies. @@ -1630,7 +1634,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricDataQueryProperty, - ) : CdkObject(cdkObject), MetricDataQueryProperty { + ) : CdkObject(cdkObject), + MetricDataQueryProperty { /** * The ID of the account where the metrics are located. * @@ -1902,7 +1907,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricMathAnomalyDetectorProperty, - ) : CdkObject(cdkObject), MetricMathAnomalyDetectorProperty { + ) : CdkObject(cdkObject), + MetricMathAnomalyDetectorProperty { /** * An array of metric data query structures that enables you to create an anomaly detector * based on the result of a metric math expression. @@ -2061,7 +2067,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricProperty, - ) : CdkObject(cdkObject), MetricProperty { + ) : CdkObject(cdkObject), + MetricProperty { /** * The dimensions for the metric. * @@ -2314,7 +2321,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricStatProperty, - ) : CdkObject(cdkObject), MetricStatProperty { + ) : CdkObject(cdkObject), + MetricStatProperty { /** * The metric to return, including the metric name, namespace, and dimensions. * @@ -2467,7 +2475,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.RangeProperty, - ) : CdkObject(cdkObject), RangeProperty { + ) : CdkObject(cdkObject), + RangeProperty { /** * The end time of the range to exclude. * @@ -2676,7 +2685,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty, - ) : CdkObject(cdkObject), SingleMetricAnomalyDetectorProperty { + ) : CdkObject(cdkObject), + SingleMetricAnomalyDetectorProperty { /** * If the CloudWatch metric that provides the time series that the anomaly detector uses as * input is in another account, specify that account ID here. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetectorProps.kt index 687472b4e8..6ac1861b58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnAnomalyDetectorProps.kt @@ -439,7 +439,8 @@ public interface CfnAnomalyDetectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetectorProps, - ) : CdkObject(cdkObject), CfnAnomalyDetectorProps { + ) : CdkObject(cdkObject), + CfnAnomalyDetectorProps { /** * Specifies details about how the anomaly detection model is to be trained, including time * ranges to exclude when training and updating the model. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarm.kt index f18958d491..535852499b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarm.kt @@ -72,7 +72,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCompositeAlarm( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarm, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarmProps.kt index 0ad49e4e61..cc17d24e12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnCompositeAlarmProps.kt @@ -564,7 +564,8 @@ public interface CfnCompositeAlarmProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarmProps, - ) : CdkObject(cdkObject), CfnCompositeAlarmProps { + ) : CdkObject(cdkObject), + CfnCompositeAlarmProps { /** * Indicates whether actions should be executed during any changes to the alarm state of the * composite alarm. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboard.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboard.kt index 8ad8ff7bef..f7157ee1ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboard.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboard.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDashboard( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnDashboard, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -53,11 +54,6 @@ public open class CfnDashboard( ) : this(scope, id, CfnDashboardProps(props) ) - /** - * - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * The detailed information about the dashboard in JSON format, including the widgets to include * and their location on the dashboard. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboardProps.kt index 30190f43e8..0ae300a80d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnDashboardProps.kt @@ -107,7 +107,8 @@ public interface CfnDashboardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnDashboardProps, - ) : CdkObject(cdkObject), CfnDashboardProps { + ) : CdkObject(cdkObject), + CfnDashboardProps { /** * The detailed information about the dashboard in JSON format, including the widgets to include * and their location on the dashboard. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRule.kt index ceb3f0a276..785b80c475 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRule.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInsightRule( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnInsightRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRuleProps.kt index 18dcb50acc..a681d9e63f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnInsightRuleProps.kt @@ -196,7 +196,8 @@ public interface CfnInsightRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnInsightRuleProps, - ) : CdkObject(cdkObject), CfnInsightRuleProps { + ) : CdkObject(cdkObject), + CfnInsightRuleProps { /** * The definition of the rule, as a JSON object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStream.kt index 4d50485cc7..dd889f638f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStream.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMetricStream( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnMetricStream, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1038,7 +1040,8 @@ public open class CfnMetricStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnMetricStream.MetricStreamFilterProperty, - ) : CdkObject(cdkObject), MetricStreamFilterProperty { + ) : CdkObject(cdkObject), + MetricStreamFilterProperty { /** * The names of the metrics to either include or exclude from the metric stream. * @@ -1208,7 +1211,8 @@ public open class CfnMetricStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnMetricStream.MetricStreamStatisticsConfigurationProperty, - ) : CdkObject(cdkObject), MetricStreamStatisticsConfigurationProperty { + ) : CdkObject(cdkObject), + MetricStreamStatisticsConfigurationProperty { /** * The additional statistics to stream for the metrics listed in `IncludeMetrics` . * @@ -1320,7 +1324,8 @@ public open class CfnMetricStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnMetricStream.MetricStreamStatisticsMetricProperty, - ) : CdkObject(cdkObject), MetricStreamStatisticsMetricProperty { + ) : CdkObject(cdkObject), + MetricStreamStatisticsMetricProperty { /** * The name of the metric. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStreamProps.kt index 17c27c235a..45611a16cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CfnMetricStreamProps.kt @@ -581,7 +581,8 @@ public interface CfnMetricStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CfnMetricStreamProps, - ) : CdkObject(cdkObject), CfnMetricStreamProps { + ) : CdkObject(cdkObject), + CfnMetricStreamProps { /** * If you specify this parameter, the stream sends metrics from all metric namespaces except for * the namespaces that you specify here. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Column.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Column.kt index 283765ac51..f447bffd30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Column.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Column.kt @@ -22,7 +22,8 @@ import kotlin.collections.List */ public open class Column( cdkObject: software.amazon.awscdk.services.cloudwatch.Column, -) : CdkObject(cdkObject), IWidget { +) : CdkObject(cdkObject), + IWidget { public constructor(widgets: IWidget) : this(software.amazon.awscdk.services.cloudwatch.Column(widgets.let(IWidget.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CommonMetricOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CommonMetricOptions.kt index 4131510f6d..fa8c4ba808 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CommonMetricOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CommonMetricOptions.kt @@ -309,7 +309,8 @@ public interface CommonMetricOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CommonMetricOptions, - ) : CdkObject(cdkObject), CommonMetricOptions { + ) : CdkObject(cdkObject), + CommonMetricOptions { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CompositeAlarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CompositeAlarmProps.kt index 65a96250b7..328ac47911 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CompositeAlarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CompositeAlarmProps.kt @@ -197,7 +197,8 @@ public interface CompositeAlarmProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CompositeAlarmProps, - ) : CdkObject(cdkObject), CompositeAlarmProps { + ) : CdkObject(cdkObject), + CompositeAlarmProps { /** * Whether the actions for this alarm are enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/ConcreteWidget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/ConcreteWidget.kt index b2dcbd48a8..56a356b77e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/ConcreteWidget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/ConcreteWidget.kt @@ -17,7 +17,8 @@ import kotlin.collections.Map */ public abstract class ConcreteWidget( cdkObject: software.amazon.awscdk.services.cloudwatch.ConcreteWidget, -) : CdkObject(cdkObject), IWidget { +) : CdkObject(cdkObject), + IWidget { /** * The amount of vertical grid units the widget will take up. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CreateAlarmOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CreateAlarmOptions.kt index 91723859e9..2aff11f4ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CreateAlarmOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CreateAlarmOptions.kt @@ -244,7 +244,8 @@ public interface CreateAlarmOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CreateAlarmOptions, - ) : CdkObject(cdkObject), CreateAlarmOptions { + ) : CdkObject(cdkObject), + CreateAlarmOptions { /** * Whether the actions for this alarm are enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CustomWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CustomWidgetProps.kt index ca1bc10469..8c02df8a09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CustomWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/CustomWidgetProps.kt @@ -196,7 +196,8 @@ public interface CustomWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.CustomWidgetProps, - ) : CdkObject(cdkObject), CustomWidgetProps { + ) : CdkObject(cdkObject), + CustomWidgetProps { /** * The Arn of the AWS Lambda function that returns HTML or JSON that will be displayed in the * widget. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardProps.kt index 1183127e75..a2b23bf778 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardProps.kt @@ -278,7 +278,8 @@ public interface DashboardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.DashboardProps, - ) : CdkObject(cdkObject), DashboardProps { + ) : CdkObject(cdkObject), + DashboardProps { /** * Name of the dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariable.kt index c0d5dc8604..cfaeb724d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariable.kt @@ -40,7 +40,8 @@ import kotlin.Unit */ public open class DashboardVariable( cdkObject: software.amazon.awscdk.services.cloudwatch.DashboardVariable, -) : CdkObject(cdkObject), IVariable { +) : CdkObject(cdkObject), + IVariable { public constructor(options: DashboardVariableOptions) : this(software.amazon.awscdk.services.cloudwatch.DashboardVariable(options.let(DashboardVariableOptions.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariableOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariableOptions.kt index 3e39ce2b0d..f38fade560 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariableOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/DashboardVariableOptions.kt @@ -203,7 +203,8 @@ public interface DashboardVariableOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.DashboardVariableOptions, - ) : CdkObject(cdkObject), DashboardVariableOptions { + ) : CdkObject(cdkObject), + DashboardVariableOptions { /** * Optional default value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Dimension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Dimension.kt index e183db9f23..9bd65874fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Dimension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Dimension.kt @@ -77,7 +77,8 @@ public interface Dimension { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.Dimension, - ) : CdkObject(cdkObject), Dimension { + ) : CdkObject(cdkObject), + Dimension { /** * Name of the dimension. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GaugeWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GaugeWidgetProps.kt index b4c864586d..9f7fb6c87c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GaugeWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GaugeWidgetProps.kt @@ -383,7 +383,8 @@ public interface GaugeWidgetProps : MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.GaugeWidgetProps, - ) : CdkObject(cdkObject), GaugeWidgetProps { + ) : CdkObject(cdkObject), + GaugeWidgetProps { /** * Annotations for the left Y axis. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GraphWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GraphWidgetProps.kt index a656bb4152..7cb63954ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GraphWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/GraphWidgetProps.kt @@ -541,7 +541,8 @@ public interface GraphWidgetProps : MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.GraphWidgetProps, - ) : CdkObject(cdkObject), GraphWidgetProps { + ) : CdkObject(cdkObject), + GraphWidgetProps { /** * The end of the time range to use for each widget independently from those of the dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/HorizontalAnnotation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/HorizontalAnnotation.kt index 5038531fec..fcee90d2f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/HorizontalAnnotation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/HorizontalAnnotation.kt @@ -142,7 +142,8 @@ public interface HorizontalAnnotation { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.HorizontalAnnotation, - ) : CdkObject(cdkObject), HorizontalAnnotation { + ) : CdkObject(cdkObject), + HorizontalAnnotation { /** * The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The * `Color` class has a set of standard colors that can be used here. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarm.kt index 2856ffbe53..6bab44b78b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarm.kt @@ -27,7 +27,8 @@ public interface IAlarm : IAlarmRule, IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IAlarm, - ) : CdkObject(cdkObject), IAlarm { + ) : CdkObject(cdkObject), + IAlarm { /** * Alarm ARN (i.e. arn:aws:cloudwatch:::alarm:Foo). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmAction.kt index 6c4c114576..d3073e9376 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmAction.kt @@ -20,7 +20,8 @@ public interface IAlarmAction { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IAlarmAction, - ) : CdkObject(cdkObject), IAlarmAction { + ) : CdkObject(cdkObject), + IAlarmAction { /** * Return the properties required to send alarm actions to this CloudWatch alarm. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmRule.kt index 3c4011b28a..03cb863b75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IAlarmRule.kt @@ -17,7 +17,8 @@ public interface IAlarmRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IAlarmRule, - ) : CdkObject(cdkObject), IAlarmRule { + ) : CdkObject(cdkObject), + IAlarmRule { /** * serialized representation of Alarm Rule to be used when building the Composite Alarm * resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IMetric.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IMetric.kt index f4e310b588..dd7db66721 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IMetric.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IMetric.kt @@ -41,7 +41,8 @@ public interface IMetric { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IMetric, - ) : CdkObject(cdkObject), IMetric { + ) : CdkObject(cdkObject), + IMetric { /** * Inspect the details of the metric object. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IVariable.kt index 21c8302606..d6aab9c4c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IVariable.kt @@ -17,7 +17,8 @@ public interface IVariable { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IVariable, - ) : CdkObject(cdkObject), IVariable { + ) : CdkObject(cdkObject), + IVariable { /** * Return the variable JSON for use in the dashboard. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IWidget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IWidget.kt index 93d06b34bb..39cb5bcb45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IWidget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/IWidget.kt @@ -53,7 +53,8 @@ public interface IWidget { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.IWidget, - ) : CdkObject(cdkObject), IWidget { + ) : CdkObject(cdkObject), + IWidget { /** * The amount of vertical grid units the widget will take up. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/LogQueryWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/LogQueryWidgetProps.kt index f47d47e25e..f437100f32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/LogQueryWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/LogQueryWidgetProps.kt @@ -227,7 +227,8 @@ public interface LogQueryWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.LogQueryWidgetProps, - ) : CdkObject(cdkObject), LogQueryWidgetProps { + ) : CdkObject(cdkObject), + LogQueryWidgetProps { /** * Height of the widget. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpression.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpression.kt index 705feeedb7..981d639ee6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpression.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpression.kt @@ -43,7 +43,8 @@ import kotlin.jvm.JvmName */ public open class MathExpression( cdkObject: software.amazon.awscdk.services.cloudwatch.MathExpression, -) : CdkObject(cdkObject), IMetric { +) : CdkObject(cdkObject), + IMetric { public constructor(props: MathExpressionProps) : this(software.amazon.awscdk.services.cloudwatch.MathExpression(props.let(MathExpressionProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionOptions.kt index 101eb85edc..a39e6615e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionOptions.kt @@ -225,7 +225,8 @@ public interface MathExpressionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MathExpressionOptions, - ) : CdkObject(cdkObject), MathExpressionOptions { + ) : CdkObject(cdkObject), + MathExpressionOptions { /** * Color for this metric when added to a Graph in a Dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionProps.kt index 2ee4ff9204..e141afe6a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MathExpressionProps.kt @@ -207,7 +207,8 @@ public interface MathExpressionProps : MathExpressionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MathExpressionProps, - ) : CdkObject(cdkObject), MathExpressionProps { + ) : CdkObject(cdkObject), + MathExpressionProps { /** * Color for this metric when added to a Graph in a Dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Metric.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Metric.kt index 39366d0910..7bdf06219f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Metric.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Metric.kt @@ -43,7 +43,8 @@ import kotlin.jvm.JvmName */ public open class Metric( cdkObject: software.amazon.awscdk.services.cloudwatch.Metric, -) : CdkObject(cdkObject), IMetric { +) : CdkObject(cdkObject), + IMetric { public constructor(props: MetricProps) : this(software.amazon.awscdk.services.cloudwatch.Metric(props.let(MetricProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricConfig.kt index d0d762c8f3..d7ee3dd000 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricConfig.kt @@ -172,7 +172,8 @@ public interface MetricConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricConfig, - ) : CdkObject(cdkObject), MetricConfig { + ) : CdkObject(cdkObject), + MetricConfig { /** * In case the metric is a math expression, the details of the math expression. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricExpressionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricExpressionConfig.kt index ccafb92dc0..5e99b14d5e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricExpressionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricExpressionConfig.kt @@ -138,7 +138,8 @@ public interface MetricExpressionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricExpressionConfig, - ) : CdkObject(cdkObject), MetricExpressionConfig { + ) : CdkObject(cdkObject), + MetricExpressionConfig { /** * Math expression for the metric. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricOptions.kt index 14145d729a..09c623bd68 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricOptions.kt @@ -216,7 +216,8 @@ public interface MetricOptions : CommonMetricOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricOptions, - ) : CdkObject(cdkObject), MetricOptions { + ) : CdkObject(cdkObject), + MetricOptions { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricProps.kt index cea9e6787e..2fb1ad3ee7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricProps.kt @@ -253,7 +253,8 @@ public interface MetricProps : CommonMetricOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricProps, - ) : CdkObject(cdkObject), MetricProps { + ) : CdkObject(cdkObject), + MetricProps { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricStatConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricStatConfig.kt index 5f251e807d..faeda9ddf1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricStatConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricStatConfig.kt @@ -232,7 +232,8 @@ public interface MetricStatConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricStatConfig, - ) : CdkObject(cdkObject), MetricStatConfig { + ) : CdkObject(cdkObject), + MetricStatConfig { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricWidgetProps.kt index 836725ecb0..fbf8e174a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/MetricWidgetProps.kt @@ -120,7 +120,8 @@ public interface MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.MetricWidgetProps, - ) : CdkObject(cdkObject), MetricWidgetProps { + ) : CdkObject(cdkObject), + MetricWidgetProps { /** * Height of the widget. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Row.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Row.kt index 33c80a5369..dec0f64e80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Row.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Row.kt @@ -22,7 +22,8 @@ import kotlin.collections.List */ public open class Row( cdkObject: software.amazon.awscdk.services.cloudwatch.Row, -) : CdkObject(cdkObject), IWidget { +) : CdkObject(cdkObject), + IWidget { public constructor(widgets: IWidget) : this(software.amazon.awscdk.services.cloudwatch.Row(widgets.let(IWidget.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SearchComponents.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SearchComponents.kt index 53051fb31c..b82f1ceb2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SearchComponents.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SearchComponents.kt @@ -136,7 +136,8 @@ public interface SearchComponents { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.SearchComponents, - ) : CdkObject(cdkObject), SearchComponents { + ) : CdkObject(cdkObject), + SearchComponents { /** * The list of dimensions to be used in the search expression. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SingleValueWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SingleValueWidgetProps.kt index 21a5272c88..fb8a86ad4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SingleValueWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SingleValueWidgetProps.kt @@ -284,7 +284,8 @@ public interface SingleValueWidgetProps : MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.SingleValueWidgetProps, - ) : CdkObject(cdkObject), SingleValueWidgetProps { + ) : CdkObject(cdkObject), + SingleValueWidgetProps { /** * The end of the time range to use for each widget independently from those of the dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Spacer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Spacer.kt index 48d7bf9d3e..0afdbe60ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Spacer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/Spacer.kt @@ -26,7 +26,8 @@ import kotlin.collections.List */ public open class Spacer( cdkObject: software.amazon.awscdk.services.cloudwatch.Spacer, -) : CdkObject(cdkObject), IWidget { +) : CdkObject(cdkObject), + IWidget { public constructor() : this(software.amazon.awscdk.services.cloudwatch.Spacer() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SpacerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SpacerProps.kt index dda7ec3d0e..7f4a7ce477 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SpacerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/SpacerProps.kt @@ -77,7 +77,8 @@ public interface SpacerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.SpacerProps, - ) : CdkObject(cdkObject), SpacerProps { + ) : CdkObject(cdkObject), + SpacerProps { /** * Height of the spacer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableSummaryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableSummaryProps.kt index 094261740c..77a8fbbe39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableSummaryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableSummaryProps.kt @@ -114,7 +114,8 @@ public interface TableSummaryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.TableSummaryProps, - ) : CdkObject(cdkObject), TableSummaryProps { + ) : CdkObject(cdkObject), + TableSummaryProps { /** * Summary columns. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableWidgetProps.kt index 341e3497ea..88b2946911 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TableWidgetProps.kt @@ -415,7 +415,8 @@ public interface TableWidgetProps : MetricWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.TableWidgetProps, - ) : CdkObject(cdkObject), TableWidgetProps { + ) : CdkObject(cdkObject), + TableWidgetProps { /** * The end of the time range to use for each widget independently from those of the dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TextWidgetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TextWidgetProps.kt index d51c94f52b..1efc165049 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TextWidgetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/TextWidgetProps.kt @@ -113,7 +113,8 @@ public interface TextWidgetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.TextWidgetProps, - ) : CdkObject(cdkObject), TextWidgetProps { + ) : CdkObject(cdkObject), + TextWidgetProps { /** * Background for the widget. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VariableValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VariableValue.kt index e39795cf30..2da6e513cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VariableValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VariableValue.kt @@ -82,7 +82,8 @@ public interface VariableValue { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.VariableValue, - ) : CdkObject(cdkObject), VariableValue { + ) : CdkObject(cdkObject), + VariableValue { /** * Optional label for the selected item. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VerticalAnnotation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VerticalAnnotation.kt index 639409700a..85e4192731 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VerticalAnnotation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/VerticalAnnotation.kt @@ -144,7 +144,8 @@ public interface VerticalAnnotation { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.VerticalAnnotation, - ) : CdkObject(cdkObject), VerticalAnnotation { + ) : CdkObject(cdkObject), + VerticalAnnotation { /** * The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The * `Color` class has a set of standard colors that can be used here. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/YAxisProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/YAxisProps.kt index c4fb5ba797..b26577b2fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/YAxisProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/YAxisProps.kt @@ -120,7 +120,8 @@ public interface YAxisProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cloudwatch.YAxisProps, - ) : CdkObject(cdkObject), YAxisProps { + ) : CdkObject(cdkObject), + YAxisProps { /** * The label. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/ApplicationScalingAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/ApplicationScalingAction.kt index 82e2b7cd82..f50d5840a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/ApplicationScalingAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/ApplicationScalingAction.kt @@ -26,7 +26,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class ApplicationScalingAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.ApplicationScalingAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(stepScalingAction: StepScalingAction) : this(software.amazon.awscdk.services.cloudwatch.actions.ApplicationScalingAction(stepScalingAction.let(StepScalingAction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/AutoScalingAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/AutoScalingAction.kt index 9d18196af2..caecc96e5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/AutoScalingAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/AutoScalingAction.kt @@ -25,7 +25,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class AutoScalingAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.AutoScalingAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(stepScalingAction: StepScalingAction) : this(software.amazon.awscdk.services.cloudwatch.actions.AutoScalingAction(stepScalingAction.let(StepScalingAction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/Ec2Action.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/Ec2Action.kt index 278a3b3098..2cce366922 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/Ec2Action.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/Ec2Action.kt @@ -23,7 +23,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class Ec2Action( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.Ec2Action, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(instanceAction: Ec2InstanceAction) : this(software.amazon.awscdk.services.cloudwatch.actions.Ec2Action(instanceAction.let(Ec2InstanceAction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/LambdaAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/LambdaAction.kt index fd77c6112a..c1e5aa1d30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/LambdaAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/LambdaAction.kt @@ -33,7 +33,8 @@ import kotlin.Any */ public open class LambdaAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.LambdaAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(lambdaFunction: Any) : this(software.amazon.awscdk.services.cloudwatch.actions.LambdaAction(lambdaFunction) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SnsAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SnsAction.kt index 164f024a1b..1b67d40095 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SnsAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SnsAction.kt @@ -23,7 +23,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class SnsAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.SnsAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.cloudwatch.actions.SnsAction(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmAction.kt index a7509a12cc..515bd161ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmAction.kt @@ -22,7 +22,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class SsmAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.SsmAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(severity: OpsItemSeverity) : this(software.amazon.awscdk.services.cloudwatch.actions.SsmAction(severity.let(OpsItemSeverity.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmIncidentAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmIncidentAction.kt index 16c7918a17..a23aea7927 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmIncidentAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudwatch/actions/SsmIncidentAction.kt @@ -23,7 +23,8 @@ import kotlin.String */ public open class SsmIncidentAction( cdkObject: software.amazon.awscdk.services.cloudwatch.actions.SsmIncidentAction, -) : CdkObject(cdkObject), IAlarmAction { +) : CdkObject(cdkObject), + IAlarmAction { public constructor(responsePlanName: String) : this(software.amazon.awscdk.services.cloudwatch.actions.SsmIncidentAction(responsePlanName) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomain.kt index de607190ce..ca0b8c39a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomain.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.codeartifact.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -103,12 +105,12 @@ public open class CfnDomain( } /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. */ public open fun encryptionKey(): String? = unwrap(this).getEncryptionKey() /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. */ public open fun encryptionKey(`value`: String) { unwrap(this).setEncryptionKey(`value`) @@ -172,11 +174,10 @@ public open class CfnDomain( public fun domainName(domainName: String) /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-domain.html#cfn-codeartifact-domain-encryptionkey) - * @param encryptionKey The ARN of an AWS Key Management Service (AWS KMS) key associated with a - * domain. + * @param encryptionKey The key used to encrypt the domain. */ public fun encryptionKey(encryptionKey: String) @@ -224,11 +225,10 @@ public open class CfnDomain( } /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-domain.html#cfn-codeartifact-domain-encryptionkey) - * @param encryptionKey The ARN of an AWS Key Management Service (AWS KMS) key associated with a - * domain. + * @param encryptionKey The key used to encrypt the domain. */ override fun encryptionKey(encryptionKey: String) { cdkBuilder.encryptionKey(encryptionKey) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomainProps.kt index 63cb869a36..056fdd2b9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnDomainProps.kt @@ -44,7 +44,7 @@ public interface CfnDomainProps { public fun domainName(): String /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-domain.html#cfn-codeartifact-domain-encryptionkey) */ @@ -75,8 +75,7 @@ public interface CfnDomainProps { public fun domainName(domainName: String) /** - * @param encryptionKey The ARN of an AWS Key Management Service (AWS KMS) key associated with a - * domain. + * @param encryptionKey The key used to encrypt the domain. */ public fun encryptionKey(encryptionKey: String) @@ -109,8 +108,7 @@ public interface CfnDomainProps { } /** - * @param encryptionKey The ARN of an AWS Key Management Service (AWS KMS) key associated with a - * domain. + * @param encryptionKey The key used to encrypt the domain. */ override fun encryptionKey(encryptionKey: String) { cdkBuilder.encryptionKey(encryptionKey) @@ -142,7 +140,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * A string that specifies the name of the requested domain. * @@ -151,7 +150,7 @@ public interface CfnDomainProps { override fun domainName(): String = unwrap(this).getDomainName() /** - * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. + * The key used to encrypt the domain. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-domain.html#cfn-codeartifact-domain-encryptionkey) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroup.kt index 1b0aba6c8c..566e38331e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroup.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPackageGroup( cdkObject: software.amazon.awscdk.services.codeartifact.CfnPackageGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -552,7 +554,8 @@ public open class CfnPackageGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnPackageGroup.OriginConfigurationProperty, - ) : CdkObject(cdkObject), OriginConfigurationProperty { + ) : CdkObject(cdkObject), + OriginConfigurationProperty { /** * The origin configuration settings that determine how package versions can enter * repositories. @@ -687,7 +690,8 @@ public open class CfnPackageGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnPackageGroup.RestrictionTypeProperty, - ) : CdkObject(cdkObject), RestrictionTypeProperty { + ) : CdkObject(cdkObject), + RestrictionTypeProperty { /** * The repositories to add to the allowed repositories list. * @@ -928,7 +932,8 @@ public open class CfnPackageGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnPackageGroup.RestrictionsProperty, - ) : CdkObject(cdkObject), RestrictionsProperty { + ) : CdkObject(cdkObject), + RestrictionsProperty { /** * The package group origin restriction setting for external, upstream repositories. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroupProps.kt index 9a94eb669d..79eeba6bf1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnPackageGroupProps.kt @@ -256,7 +256,8 @@ public interface CfnPackageGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnPackageGroupProps, - ) : CdkObject(cdkObject), CfnPackageGroupProps { + ) : CdkObject(cdkObject), + CfnPackageGroupProps { /** * The contact information of the package group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepository.kt index 54bcc244d5..7d2f761fbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepository.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepository( cdkObject: software.amazon.awscdk.services.codeartifact.CfnRepository, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -118,12 +120,14 @@ public open class CfnRepository( } /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. */ public open fun domainOwner(): String? = unwrap(this).getDomainOwner() /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. */ public open fun domainOwner(`value`: String) { unwrap(this).setDomainOwner(`value`) @@ -243,10 +247,14 @@ public open class CfnRepository( public fun domainName(domainName: String) /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. + * + * It does not include dashes or spaces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainowner) - * @param domainOwner The 12-digit account ID of the AWS account that owns the domain. + * @param domainOwner The 12-digit account number of the AWS account that owns the domain that + * contains the repository. */ public fun domainOwner(domainOwner: String) @@ -360,10 +368,14 @@ public open class CfnRepository( } /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. + * + * It does not include dashes or spaces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainowner) - * @param domainOwner The 12-digit account ID of the AWS account that owns the domain. + * @param domainOwner The 12-digit account number of the AWS account that owns the domain that + * contains the repository. */ override fun domainOwner(domainOwner: String) { cdkBuilder.domainOwner(domainOwner) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepositoryProps.kt index 641184b9ab..417f63a5c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeartifact/CfnRepositoryProps.kt @@ -55,7 +55,10 @@ public interface CfnRepositoryProps { public fun domainName(): String /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. + * + * It does not include dashes or spaces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainowner) */ @@ -121,7 +124,9 @@ public interface CfnRepositoryProps { public fun domainName(domainName: String) /** - * @param domainOwner The 12-digit account ID of the AWS account that owns the domain. + * @param domainOwner The 12-digit account number of the AWS account that owns the domain that + * contains the repository. + * It does not include dashes or spaces. */ public fun domainOwner(domainOwner: String) @@ -198,7 +203,9 @@ public interface CfnRepositoryProps { } /** - * @param domainOwner The 12-digit account ID of the AWS account that owns the domain. + * @param domainOwner The 12-digit account number of the AWS account that owns the domain that + * contains the repository. + * It does not include dashes or spaces. */ override fun domainOwner(domainOwner: String) { cdkBuilder.domainOwner(domainOwner) @@ -274,7 +281,8 @@ public interface CfnRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeartifact.CfnRepositoryProps, - ) : CdkObject(cdkObject), CfnRepositoryProps { + ) : CdkObject(cdkObject), + CfnRepositoryProps { /** * A text description of the repository. * @@ -290,7 +298,10 @@ public interface CfnRepositoryProps { override fun domainName(): String = unwrap(this).getDomainName() /** - * The 12-digit account ID of the AWS account that owns the domain. + * The 12-digit account number of the AWS account that owns the domain that contains the + * repository. + * + * It does not include dashes or spaces. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeartifact-repository.html#cfn-codeartifact-repository-domainowner) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Artifacts.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Artifacts.kt index 4f772f86be..44aa73acb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Artifacts.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Artifacts.kt @@ -31,7 +31,8 @@ import kotlin.jvm.JvmName */ public abstract class Artifacts( cdkObject: software.amazon.awscdk.services.codebuild.Artifacts, -) : CdkObject(cdkObject), IArtifacts { +) : CdkObject(cdkObject), + IArtifacts { /** * Callback when an Artifacts class is used in a CodeBuild Project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsConfig.kt index bdb00ddac2..f0d44a24ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsConfig.kt @@ -83,7 +83,8 @@ public interface ArtifactsConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ArtifactsConfig, - ) : CdkObject(cdkObject), ArtifactsConfig { + ) : CdkObject(cdkObject), + ArtifactsConfig { /** * The low-level CloudFormation artifacts property. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsProps.kt index 8a283bf4a3..563701cabf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ArtifactsProps.kt @@ -60,7 +60,8 @@ public interface ArtifactsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ArtifactsProps, - ) : CdkObject(cdkObject), ArtifactsProps { + ) : CdkObject(cdkObject), + ArtifactsProps { /** * The artifact identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BatchBuildConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BatchBuildConfig.kt index 6488b1be0d..bb9d72dab5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BatchBuildConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BatchBuildConfig.kt @@ -58,7 +58,8 @@ public interface BatchBuildConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BatchBuildConfig, - ) : CdkObject(cdkObject), BatchBuildConfig { + ) : CdkObject(cdkObject), + BatchBuildConfig { /** * The IAM batch service Role of this Project. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BindToCodePipelineOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BindToCodePipelineOptions.kt index 287de2a79d..4cd6a0629a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BindToCodePipelineOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BindToCodePipelineOptions.kt @@ -61,7 +61,8 @@ public interface BindToCodePipelineOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BindToCodePipelineOptions, - ) : CdkObject(cdkObject), BindToCodePipelineOptions { + ) : CdkObject(cdkObject), + BindToCodePipelineOptions { /** * The artifact bucket that will be used by the action that invokes this project. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceCredentialsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceCredentialsProps.kt index ece45e53f3..8dce1f76a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceCredentialsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceCredentialsProps.kt @@ -74,7 +74,8 @@ public interface BitBucketSourceCredentialsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BitBucketSourceCredentialsProps, - ) : CdkObject(cdkObject), BitBucketSourceCredentialsProps { + ) : CdkObject(cdkObject), + BitBucketSourceCredentialsProps { /** * Your BitBucket application password. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceProps.kt index f0bdc686c9..219a3f44c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BitBucketSourceProps.kt @@ -351,7 +351,8 @@ public interface BitBucketSourceProps : SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BitBucketSourceProps, - ) : CdkObject(cdkObject), BitBucketSourceProps { + ) : CdkObject(cdkObject), + BitBucketSourceProps { /** * The commit ID, pull request ID, branch name, or tag name that corresponds to the version of * the source code you want to build. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BucketCacheOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BucketCacheOptions.kt index 96db1f4b89..79d54745b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BucketCacheOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BucketCacheOptions.kt @@ -54,7 +54,8 @@ public interface BucketCacheOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BucketCacheOptions, - ) : CdkObject(cdkObject), BucketCacheOptions { + ) : CdkObject(cdkObject), + BucketCacheOptions { /** * The prefix to use to store the cache in the bucket. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironment.kt index f72b98aaf0..9df851ca63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironment.kt @@ -72,6 +72,20 @@ public interface BuildEnvironment { unwrap(this).getEnvironmentVariables()?.mapValues{BuildEnvironmentVariable.wrap(it.value)} ?: emptyMap() + /** + * Fleet resource for a reserved capacity CodeBuild project. + * + * Fleets allow for process builds or tests to run immediately and reduces build durations, + * by reserving compute resources for your projects. + * + * You will be charged for the resources in the fleet, even if they are idle. + * + * Default: - No fleet will be attached to the project, which will remain on-demand. + * + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html) + */ + public fun fleet(): IFleet? = unwrap(this).getFleet()?.let(IFleet::wrap) + /** * Indicates how the project builds Docker images. * @@ -119,6 +133,15 @@ public interface BuildEnvironment { */ public fun environmentVariables(environmentVariables: Map) + /** + * @param fleet Fleet resource for a reserved capacity CodeBuild project. + * Fleets allow for process builds or tests to run immediately and reduces build durations, + * by reserving compute resources for your projects. + * + * You will be charged for the resources in the fleet, even if they are idle. + */ + public fun fleet(fleet: IFleet) + /** * @param privileged Indicates how the project builds Docker images. * Specify true to enable @@ -172,6 +195,17 @@ public interface BuildEnvironment { cdkBuilder.environmentVariables(environmentVariables.mapValues{BuildEnvironmentVariable.unwrap(it.value)}) } + /** + * @param fleet Fleet resource for a reserved capacity CodeBuild project. + * Fleets allow for process builds or tests to run immediately and reduces build durations, + * by reserving compute resources for your projects. + * + * You will be charged for the resources in the fleet, even if they are idle. + */ + override fun fleet(fleet: IFleet) { + cdkBuilder.fleet(fleet.let(IFleet.Companion::unwrap)) + } + /** * @param privileged Indicates how the project builds Docker images. * Specify true to enable @@ -191,7 +225,8 @@ public interface BuildEnvironment { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BuildEnvironment, - ) : CdkObject(cdkObject), BuildEnvironment { + ) : CdkObject(cdkObject), + BuildEnvironment { /** * The image used for the builds. * @@ -223,6 +258,20 @@ public interface BuildEnvironment { unwrap(this).getEnvironmentVariables()?.mapValues{BuildEnvironmentVariable.wrap(it.value)} ?: emptyMap() + /** + * Fleet resource for a reserved capacity CodeBuild project. + * + * Fleets allow for process builds or tests to run immediately and reduces build durations, + * by reserving compute resources for your projects. + * + * You will be charged for the resources in the fleet, even if they are idle. + * + * Default: - No fleet will be attached to the project, which will remain on-demand. + * + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html) + */ + override fun fleet(): IFleet? = unwrap(this).getFleet()?.let(IFleet::wrap) + /** * Indicates how the project builds Docker images. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentCertificate.kt index f64c10aab7..419188bb2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentCertificate.kt @@ -81,7 +81,8 @@ public interface BuildEnvironmentCertificate { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BuildEnvironmentCertificate, - ) : CdkObject(cdkObject), BuildEnvironmentCertificate { + ) : CdkObject(cdkObject), + BuildEnvironmentCertificate { /** * The bucket where the certificate is. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentVariable.kt index 01889c914a..60d21f4052 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildEnvironmentVariable.kt @@ -129,7 +129,8 @@ public interface BuildEnvironmentVariable { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BuildEnvironmentVariable, - ) : CdkObject(cdkObject), BuildEnvironmentVariable { + ) : CdkObject(cdkObject), + BuildEnvironmentVariable { /** * The type of environment variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageBindOptions.kt index 3a3f5f5297..18bf39fed8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageBindOptions.kt @@ -36,7 +36,8 @@ public interface BuildImageBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BuildImageBindOptions, - ) : CdkObject(cdkObject), BuildImageBindOptions + ) : CdkObject(cdkObject), + BuildImageBindOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): BuildImageBindOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageConfig.kt index 2f774dc291..ca3080f3fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/BuildImageConfig.kt @@ -36,7 +36,8 @@ public interface BuildImageConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.BuildImageConfig, - ) : CdkObject(cdkObject), BuildImageConfig + ) : CdkObject(cdkObject), + BuildImageConfig public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): BuildImageConfig { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleet.kt index 813df34308..fc7555289d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleet.kt @@ -5,14 +5,19 @@ package io.cloudshiftdev.awscdk.services.codebuild import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggableV2 import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -30,7 +35,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .baseCapacity(123) * .computeType("computeType") * .environmentType("environmentType") + * .fleetServiceRole("fleetServiceRole") + * .fleetVpcConfig(VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .vpcId("vpcId") + * .build()) + * .imageId("imageId") * .name("name") + * .overflowBehavior("overflowBehavior") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -42,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.codebuild.CfnFleet, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codebuild.CfnFleet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -90,33 +105,80 @@ public open class CfnFleet( unwrap(this).getCdkTagManager().let(TagManager::wrap) /** - * Information about the compute resources the compute fleet uses. - * - * Available values include:. + * Updating this field is not allowed for `MAC_ARM` . */ public open fun computeType(): String? = unwrap(this).getComputeType() /** - * Information about the compute resources the compute fleet uses. - * - * Available values include:. + * Updating this field is not allowed for `MAC_ARM` . */ public open fun computeType(`value`: String) { unwrap(this).setComputeType(`value`) } /** - * The environment type of the compute fleet. + * Updating this field is not allowed for `MAC_ARM` . */ public open fun environmentType(): String? = unwrap(this).getEnvironmentType() /** - * The environment type of the compute fleet. + * Updating this field is not allowed for `MAC_ARM` . */ public open fun environmentType(`value`: String) { unwrap(this).setEnvironmentType(`value`) } + /** + * The service role associated with the compute fleet. + */ + public open fun fleetServiceRole(): String? = unwrap(this).getFleetServiceRole() + + /** + * The service role associated with the compute fleet. + */ + public open fun fleetServiceRole(`value`: String) { + unwrap(this).setFleetServiceRole(`value`) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + public open fun fleetVpcConfig(): Any? = unwrap(this).getFleetVpcConfig() + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + public open fun fleetVpcConfig(`value`: IResolvable) { + unwrap(this).setFleetVpcConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + public open fun fleetVpcConfig(`value`: VpcConfigProperty) { + unwrap(this).setFleetVpcConfig(`value`.let(VpcConfigProperty.Companion::unwrap)) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0ae880fbe2c1ab8b417e5fafe263789c3105b4e087fa381af6efbae306dd1cbe") + public open fun fleetVpcConfig(`value`: VpcConfigProperty.Builder.() -> Unit): Unit = + fleetVpcConfig(VpcConfigProperty(`value`)) + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + public open fun imageId(): String? = unwrap(this).getImageId() + + /** + * Updating this field is not allowed for `MAC_ARM` . + */ + public open fun imageId(`value`: String) { + unwrap(this).setImageId(`value`) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -138,6 +200,18 @@ public open class CfnFleet( unwrap(this).setName(`value`) } + /** + * The compute fleet overflow behavior. + */ + public open fun overflowBehavior(): String? = unwrap(this).getOverflowBehavior() + + /** + * The compute fleet overflow behavior. + */ + public open fun overflowBehavior(`value`: String) { + unwrap(this).setOverflowBehavior(`value`) + } + /** * A list of tag key and value pairs associated with this compute fleet. */ @@ -171,7 +245,9 @@ public open class CfnFleet( public fun baseCapacity(baseCapacity: Number) /** - * Information about the compute resources the compute fleet uses. Available values include:. + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the compute resources the compute fleet uses. Available values include: * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. @@ -205,12 +281,13 @@ public open class CfnFleet( * in the *AWS CodeBuild User Guide.* * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-computetype) - * @param computeType Information about the compute resources the compute fleet uses. Available - * values include:. + * @param computeType Updating this field is not allowed for `MAC_ARM` . */ public fun computeType(computeType: String) /** + * Updating this field is not allowed for `MAC_ARM` . + * * The environment type of the compute fleet. * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US @@ -236,10 +313,64 @@ public open class CfnFleet( * in the *AWS CodeBuild user guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-environmenttype) - * @param environmentType The environment type of the compute fleet. + * @param environmentType Updating this field is not allowed for `MAC_ARM` . */ public fun environmentType(environmentType: String) + /** + * The service role associated with the compute fleet. + * + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetservicerole) + * @param fleetServiceRole The service role associated with the compute fleet. + */ + public fun fleetServiceRole(fleetServiceRole: String) + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + public fun fleetVpcConfig(fleetVpcConfig: IResolvable) + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + public fun fleetVpcConfig(fleetVpcConfig: VpcConfigProperty) + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2364dacd7b4942e2f55e3813ce37e4e78473c73fbc2e69544b423c50f197c6c1") + public fun fleetVpcConfig(fleetVpcConfig: VpcConfigProperty.Builder.() -> Unit) + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * The Amazon Machine Image (AMI) of the compute fleet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-imageid) + * @param imageId Updating this field is not allowed for `MAC_ARM` . + */ + public fun imageId(imageId: String) + /** * The name of the compute fleet. * @@ -248,6 +379,27 @@ public open class CfnFleet( */ public fun name(name: String) + /** + * The compute fleet overflow behavior. + * + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For + * more information, see [Example policy statement to allow CodeBuild access to AWS services + * required to create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-overflowbehavior) + * @param overflowBehavior The compute fleet overflow behavior. + */ + public fun overflowBehavior(overflowBehavior: String) + /** * A list of tag key and value pairs associated with this compute fleet. * @@ -291,7 +443,9 @@ public open class CfnFleet( } /** - * Information about the compute resources the compute fleet uses. Available values include:. + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the compute resources the compute fleet uses. Available values include: * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. @@ -325,14 +479,15 @@ public open class CfnFleet( * in the *AWS CodeBuild User Guide.* * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-computetype) - * @param computeType Information about the compute resources the compute fleet uses. Available - * values include:. + * @param computeType Updating this field is not allowed for `MAC_ARM` . */ override fun computeType(computeType: String) { cdkBuilder.computeType(computeType) } /** + * Updating this field is not allowed for `MAC_ARM` . + * * The environment type of the compute fleet. * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US @@ -358,12 +513,75 @@ public open class CfnFleet( * in the *AWS CodeBuild user guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-environmenttype) - * @param environmentType The environment type of the compute fleet. + * @param environmentType Updating this field is not allowed for `MAC_ARM` . */ override fun environmentType(environmentType: String) { cdkBuilder.environmentType(environmentType) } + /** + * The service role associated with the compute fleet. + * + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetservicerole) + * @param fleetServiceRole The service role associated with the compute fleet. + */ + override fun fleetServiceRole(fleetServiceRole: String) { + cdkBuilder.fleetServiceRole(fleetServiceRole) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + override fun fleetVpcConfig(fleetVpcConfig: IResolvable) { + cdkBuilder.fleetVpcConfig(fleetVpcConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + override fun fleetVpcConfig(fleetVpcConfig: VpcConfigProperty) { + cdkBuilder.fleetVpcConfig(fleetVpcConfig.let(VpcConfigProperty.Companion::unwrap)) + } + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2364dacd7b4942e2f55e3813ce37e4e78473c73fbc2e69544b423c50f197c6c1") + override fun fleetVpcConfig(fleetVpcConfig: VpcConfigProperty.Builder.() -> Unit): Unit = + fleetVpcConfig(VpcConfigProperty(fleetVpcConfig)) + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * The Amazon Machine Image (AMI) of the compute fleet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-imageid) + * @param imageId Updating this field is not allowed for `MAC_ARM` . + */ + override fun imageId(imageId: String) { + cdkBuilder.imageId(imageId) + } + /** * The name of the compute fleet. * @@ -374,6 +592,29 @@ public open class CfnFleet( cdkBuilder.name(name) } + /** + * The compute fleet overflow behavior. + * + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For + * more information, see [Example policy statement to allow CodeBuild access to AWS services + * required to create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-overflowbehavior) + * @param overflowBehavior The compute fleet overflow behavior. + */ + override fun overflowBehavior(overflowBehavior: String) { + cdkBuilder.overflowBehavior(overflowBehavior) + } + /** * A list of tag key and value pairs associated with this compute fleet. * @@ -420,4 +661,161 @@ public open class CfnFleet( internal fun unwrap(wrapped: CfnFleet): software.amazon.awscdk.services.codebuild.CfnFleet = wrapped.cdkObject as software.amazon.awscdk.services.codebuild.CfnFleet } + + /** + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codebuild.*; + * VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .vpcId("vpcId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html) + */ + public interface VpcConfigProperty { + /** + * A list of one or more security groups IDs in your Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-securitygroupids) + */ + public fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() ?: emptyList() + + /** + * A list of one or more subnet IDs in your Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-subnets) + */ + public fun subnets(): List = unwrap(this).getSubnets() ?: emptyList() + + /** + * The ID of the Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-vpcid) + */ + public fun vpcId(): String? = unwrap(this).getVpcId() + + /** + * A builder for [VpcConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param securityGroupIds A list of one or more security groups IDs in your Amazon VPC. + */ + public fun securityGroupIds(securityGroupIds: List) + + /** + * @param securityGroupIds A list of one or more security groups IDs in your Amazon VPC. + */ + public fun securityGroupIds(vararg securityGroupIds: String) + + /** + * @param subnets A list of one or more subnet IDs in your Amazon VPC. + */ + public fun subnets(subnets: List) + + /** + * @param subnets A list of one or more subnet IDs in your Amazon VPC. + */ + public fun subnets(vararg subnets: String) + + /** + * @param vpcId The ID of the Amazon VPC. + */ + public fun vpcId(vpcId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty.Builder = + software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty.builder() + + /** + * @param securityGroupIds A list of one or more security groups IDs in your Amazon VPC. + */ + override fun securityGroupIds(securityGroupIds: List) { + cdkBuilder.securityGroupIds(securityGroupIds) + } + + /** + * @param securityGroupIds A list of one or more security groups IDs in your Amazon VPC. + */ + override fun securityGroupIds(vararg securityGroupIds: String): Unit = + securityGroupIds(securityGroupIds.toList()) + + /** + * @param subnets A list of one or more subnet IDs in your Amazon VPC. + */ + override fun subnets(subnets: List) { + cdkBuilder.subnets(subnets) + } + + /** + * @param subnets A list of one or more subnet IDs in your Amazon VPC. + */ + override fun subnets(vararg subnets: String): Unit = subnets(subnets.toList()) + + /** + * @param vpcId The ID of the Amazon VPC. + */ + override fun vpcId(vpcId: String) { + cdkBuilder.vpcId(vpcId) + } + + public fun build(): software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty, + ) : CdkObject(cdkObject), + VpcConfigProperty { + /** + * A list of one or more security groups IDs in your Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-securitygroupids) + */ + override fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() ?: + emptyList() + + /** + * A list of one or more subnet IDs in your Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-subnets) + */ + override fun subnets(): List = unwrap(this).getSubnets() ?: emptyList() + + /** + * The ID of the Amazon VPC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-vpcconfig.html#cfn-codebuild-fleet-vpcconfig-vpcid) + */ + override fun vpcId(): String? = unwrap(this).getVpcId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VpcConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty): + VpcConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? VpcConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: VpcConfigProperty): + software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.codebuild.CfnFleet.VpcConfigProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleetProps.kt index 7c325ddca6..b7d4da0963 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnFleetProps.kt @@ -3,13 +3,16 @@ package io.cloudshiftdev.awscdk.services.codebuild import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a `CfnFleet`. @@ -24,7 +27,15 @@ import kotlin.collections.List * .baseCapacity(123) * .computeType("computeType") * .environmentType("environmentType") + * .fleetServiceRole("fleetServiceRole") + * .fleetVpcConfig(VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .vpcId("vpcId") + * .build()) + * .imageId("imageId") * .name("name") + * .overflowBehavior("overflowBehavior") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -44,7 +55,9 @@ public interface CfnFleetProps { public fun baseCapacity(): Number? = unwrap(this).getBaseCapacity() /** - * Information about the compute resources the compute fleet uses. Available values include:. + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the compute resources the compute fleet uses. Available values include: * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. @@ -82,6 +95,8 @@ public interface CfnFleetProps { public fun computeType(): String? = unwrap(this).getComputeType() /** + * Updating this field is not allowed for `MAC_ARM` . + * * The environment type of the compute fleet. * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US @@ -109,6 +124,35 @@ public interface CfnFleetProps { */ public fun environmentType(): String? = unwrap(this).getEnvironmentType() + /** + * The service role associated with the compute fleet. + * + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetservicerole) + */ + public fun fleetServiceRole(): String? = unwrap(this).getFleetServiceRole() + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + */ + public fun fleetVpcConfig(): Any? = unwrap(this).getFleetVpcConfig() + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * The Amazon Machine Image (AMI) of the compute fleet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-imageid) + */ + public fun imageId(): String? = unwrap(this).getImageId() + /** * The name of the compute fleet. * @@ -116,6 +160,26 @@ public interface CfnFleetProps { */ public fun name(): String? = unwrap(this).getName() + /** + * The compute fleet overflow behavior. + * + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, + * make sure that you add the required VPC permissions to your project service role. For more + * information, see [Example policy statement to allow CodeBuild access to AWS services required to + * create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-overflowbehavior) + */ + public fun overflowBehavior(): String? = unwrap(this).getOverflowBehavior() + /** * A list of tag key and value pairs associated with this compute fleet. * @@ -137,8 +201,9 @@ public interface CfnFleetProps { public fun baseCapacity(baseCapacity: Number) /** - * @param computeType Information about the compute resources the compute fleet uses. Available - * values include:. + * @param computeType Updating this field is not allowed for `MAC_ARM` . + * Information about the compute resources the compute fleet uses. Available values include: + * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. * * `BUILD_GENERAL1_LARGE` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your @@ -173,7 +238,9 @@ public interface CfnFleetProps { public fun computeType(computeType: String) /** - * @param environmentType The environment type of the compute fleet. + * @param environmentType Updating this field is not allowed for `MAC_ARM` . + * The environment type of the compute fleet. + * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia * Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). @@ -198,11 +265,61 @@ public interface CfnFleetProps { */ public fun environmentType(environmentType: String) + /** + * @param fleetServiceRole The service role associated with the compute fleet. + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + */ + public fun fleetServiceRole(fleetServiceRole: String) + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + public fun fleetVpcConfig(fleetVpcConfig: IResolvable) + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + public fun fleetVpcConfig(fleetVpcConfig: CfnFleet.VpcConfigProperty) + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("96864873899211179322b87b275320a614a489c634c0f5bb1179b4e38eb01619") + public fun fleetVpcConfig(fleetVpcConfig: CfnFleet.VpcConfigProperty.Builder.() -> Unit) + + /** + * @param imageId Updating this field is not allowed for `MAC_ARM` . + * The Amazon Machine Image (AMI) of the compute fleet. + */ + public fun imageId(imageId: String) + /** * @param name The name of the compute fleet. */ public fun name(name: String) + /** + * @param overflowBehavior The compute fleet overflow behavior. + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For + * more information, see [Example policy statement to allow CodeBuild access to AWS services + * required to create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + */ + public fun overflowBehavior(overflowBehavior: String) + /** * @param tags A list of tag key and value pairs associated with this compute fleet. * These tags are available for use by AWS services that support AWS CodeBuild compute fleet @@ -231,8 +348,9 @@ public interface CfnFleetProps { } /** - * @param computeType Information about the compute resources the compute fleet uses. Available - * values include:. + * @param computeType Updating this field is not allowed for `MAC_ARM` . + * Information about the compute resources the compute fleet uses. Available values include: + * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. * * `BUILD_GENERAL1_LARGE` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your @@ -269,7 +387,9 @@ public interface CfnFleetProps { } /** - * @param environmentType The environment type of the compute fleet. + * @param environmentType Updating this field is not allowed for `MAC_ARM` . + * The environment type of the compute fleet. + * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US * East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia * Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). @@ -296,6 +416,49 @@ public interface CfnFleetProps { cdkBuilder.environmentType(environmentType) } + /** + * @param fleetServiceRole The service role associated with the compute fleet. + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + */ + override fun fleetServiceRole(fleetServiceRole: String) { + cdkBuilder.fleetServiceRole(fleetServiceRole) + } + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + override fun fleetVpcConfig(fleetVpcConfig: IResolvable) { + cdkBuilder.fleetVpcConfig(fleetVpcConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + override fun fleetVpcConfig(fleetVpcConfig: CfnFleet.VpcConfigProperty) { + cdkBuilder.fleetVpcConfig(fleetVpcConfig.let(CfnFleet.VpcConfigProperty.Companion::unwrap)) + } + + /** + * @param fleetVpcConfig Updating this field is not allowed for `MAC_ARM` . + * Information about the VPC configuration that AWS CodeBuild accesses. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("96864873899211179322b87b275320a614a489c634c0f5bb1179b4e38eb01619") + override fun fleetVpcConfig(fleetVpcConfig: CfnFleet.VpcConfigProperty.Builder.() -> Unit): Unit + = fleetVpcConfig(CfnFleet.VpcConfigProperty(fleetVpcConfig)) + + /** + * @param imageId Updating this field is not allowed for `MAC_ARM` . + * The Amazon Machine Image (AMI) of the compute fleet. + */ + override fun imageId(imageId: String) { + cdkBuilder.imageId(imageId) + } + /** * @param name The name of the compute fleet. */ @@ -303,6 +466,24 @@ public interface CfnFleetProps { cdkBuilder.name(name) } + /** + * @param overflowBehavior The compute fleet overflow behavior. + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For + * more information, see [Example policy statement to allow CodeBuild access to AWS services + * required to create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + */ + override fun overflowBehavior(overflowBehavior: String) { + cdkBuilder.overflowBehavior(overflowBehavior) + } + /** * @param tags A list of tag key and value pairs associated with this compute fleet. * These tags are available for use by AWS services that support AWS CodeBuild compute fleet @@ -324,7 +505,8 @@ public interface CfnFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * The initial number of machines allocated to the compute fleet, which defines the number of * builds that can run in parallel. @@ -334,7 +516,9 @@ public interface CfnFleetProps { override fun baseCapacity(): Number? = unwrap(this).getBaseCapacity() /** - * Information about the compute resources the compute fleet uses. Available values include:. + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the compute resources the compute fleet uses. Available values include: * * * `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds. * * `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds. @@ -372,6 +556,8 @@ public interface CfnFleetProps { override fun computeType(): String? = unwrap(this).getComputeType() /** + * Updating this field is not allowed for `MAC_ARM` . + * * The environment type of the compute fleet. * * * The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US @@ -400,6 +586,35 @@ public interface CfnFleetProps { */ override fun environmentType(): String? = unwrap(this).getEnvironmentType() + /** + * The service role associated with the compute fleet. + * + * For more information, see [Allow a user to add a permission policy for a fleet service + * role](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html) + * in the *AWS CodeBuild User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetservicerole) + */ + override fun fleetServiceRole(): String? = unwrap(this).getFleetServiceRole() + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * Information about the VPC configuration that AWS CodeBuild accesses. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-fleetvpcconfig) + */ + override fun fleetVpcConfig(): Any? = unwrap(this).getFleetVpcConfig() + + /** + * Updating this field is not allowed for `MAC_ARM` . + * + * The Amazon Machine Image (AMI) of the compute fleet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-imageid) + */ + override fun imageId(): String? = unwrap(this).getImageId() + /** * The name of the compute fleet. * @@ -407,6 +622,26 @@ public interface CfnFleetProps { */ override fun name(): String? = unwrap(this).getName() + /** + * The compute fleet overflow behavior. + * + * * For overflow behavior `QUEUE` , your overflow builds need to wait on the existing fleet + * instance to become available. + * * For overflow behavior `ON_DEMAND` , your overflow builds run on CodeBuild on-demand. + * + * + * If you choose to set your overflow behavior to on-demand while creating a VPC-connected + * fleet, make sure that you add the required VPC permissions to your project service role. For + * more information, see [Example policy statement to allow CodeBuild access to AWS services + * required to create a VPC network + * interface](https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface) + * . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-overflowbehavior) + */ + override fun overflowBehavior(): String? = unwrap(this).getOverflowBehavior() + /** * A list of tag key and value pairs associated with this compute fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProject.kt index ecf3a67afb..59aedc765f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProject.kt @@ -195,6 +195,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .excludeMatchedPattern(false) * .build()))) + * .scopeConfiguration(ScopeConfigurationProperty.builder() + * .name("name") + * .build()) * .webhook(false) * .build()) * .visibility("visibility") @@ -210,7 +213,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -672,14 +677,14 @@ public open class CfnProject( public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any - * related build that did not get marked as completed. + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out + * any related build that did not get marked as completed. */ public open fun timeoutInMinutes(): Number? = unwrap(this).getTimeoutInMinutes() /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any - * related build that did not get marked as completed. + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out + * any related build that did not get marked as completed. */ public open fun timeoutInMinutes(`value`: Number) { unwrap(this).setTimeoutInMinutes(`value`) @@ -1209,6 +1214,7 @@ public open class CfnProject( * the version of the source code you want to build. If a pull request ID is specified, it must use * the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -1250,13 +1256,13 @@ public open class CfnProject( public fun tags(vararg tags: CfnTag) /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out * any related build that did not get marked as completed. * * The default is 60 minutes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes) - * @param timeoutInMinutes How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to + * @param timeoutInMinutes How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to * wait before timing out any related build that did not get marked as completed. */ public fun timeoutInMinutes(timeoutInMinutes: Number) @@ -1871,6 +1877,7 @@ public open class CfnProject( * the version of the source code you want to build. If a pull request ID is specified, it must use * the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -1916,13 +1923,13 @@ public open class CfnProject( override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out * any related build that did not get marked as completed. * * The default is 60 minutes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes) - * @param timeoutInMinutes How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to + * @param timeoutInMinutes How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to * wait before timing out any related build that did not get marked as completed. */ override fun timeoutInMinutes(timeoutInMinutes: Number) { @@ -2544,7 +2551,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty, - ) : CdkObject(cdkObject), ArtifactsProperty { + ) : CdkObject(cdkObject), + ArtifactsProperty { /** * An identifier for this artifact definition. * @@ -2816,7 +2824,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.BatchRestrictionsProperty, - ) : CdkObject(cdkObject), BatchRestrictionsProperty { + ) : CdkObject(cdkObject), + BatchRestrictionsProperty { /** * An array of strings that specify the compute types that are allowed for the batch build. * @@ -2996,7 +3005,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.BuildStatusConfigProperty, - ) : CdkObject(cdkObject), BuildStatusConfigProperty { + ) : CdkObject(cdkObject), + BuildStatusConfigProperty { /** * Specifies the context of the build status CodeBuild sends to the source provider. * @@ -3180,7 +3190,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.CloudWatchLogsConfigProperty, - ) : CdkObject(cdkObject), CloudWatchLogsConfigProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsConfigProperty { /** * The group name of the logs in CloudWatch Logs. * @@ -3930,7 +3941,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.EnvironmentProperty, - ) : CdkObject(cdkObject), EnvironmentProperty { + ) : CdkObject(cdkObject), + EnvironmentProperty { /** * The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded * certificate for the build project. @@ -4281,7 +4293,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.EnvironmentVariableProperty, - ) : CdkObject(cdkObject), EnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EnvironmentVariableProperty { /** * The name or key of the environment variable. * @@ -4418,7 +4431,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.GitSubmodulesConfigProperty, - ) : CdkObject(cdkObject), GitSubmodulesConfigProperty { + ) : CdkObject(cdkObject), + GitSubmodulesConfigProperty { /** * Set to true to fetch Git submodules for your AWS CodeBuild build project. * @@ -4601,7 +4615,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.LogsConfigProperty, - ) : CdkObject(cdkObject), LogsConfigProperty { + ) : CdkObject(cdkObject), + LogsConfigProperty { /** * Information about CloudWatch Logs for a build project. * @@ -4854,7 +4869,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectBuildBatchConfigProperty, - ) : CdkObject(cdkObject), ProjectBuildBatchConfigProperty { + ) : CdkObject(cdkObject), + ProjectBuildBatchConfigProperty { /** * Specifies how build status reports are sent to the source provider for the batch build. * @@ -5191,7 +5207,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectCacheProperty, - ) : CdkObject(cdkObject), ProjectCacheProperty { + ) : CdkObject(cdkObject), + ProjectCacheProperty { /** * Information about the cache location:. * @@ -5475,7 +5492,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectFileSystemLocationProperty, - ) : CdkObject(cdkObject), ProjectFileSystemLocationProperty { + ) : CdkObject(cdkObject), + ProjectFileSystemLocationProperty { /** * The name used to access a file system created by Amazon EFS. * @@ -5611,7 +5629,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectFleetProperty, - ) : CdkObject(cdkObject), ProjectFleetProperty { + ) : CdkObject(cdkObject), + ProjectFleetProperty { /** * Specifies the compute fleet ARN for the build project. * @@ -5672,11 +5691,11 @@ public open class CfnProject( * The source version for the corresponding source identifier. If specified, must be one of:. * * * For CodeCommit: the commit ID, branch, or Git tag to use. - * * For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that - * corresponds to the version of the source code you want to build. If a pull request ID is - * specified, it must use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name - * is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD - * commit ID is used. + * * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to + * the version of the source code you want to build. If a pull request ID is specified, it must use + * the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name is specified, the + * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -5707,11 +5726,12 @@ public open class CfnProject( * @param sourceVersion The source version for the corresponding source identifier. If * specified, must be one of:. * * For CodeCommit: the commit ID, branch, or Git tag to use. - * * For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that - * corresponds to the version of the source code you want to build. If a pull request ID is - * specified, it must use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch - * name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's - * HEAD commit ID is used. + * * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to + * the version of the source code you want to build. If a pull request ID is specified, it must + * use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name is specified, + * the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is + * used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID * is used. If not specified, the default branch's HEAD commit ID is used. @@ -5744,11 +5764,12 @@ public open class CfnProject( * @param sourceVersion The source version for the corresponding source identifier. If * specified, must be one of:. * * For CodeCommit: the commit ID, branch, or Git tag to use. - * * For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that - * corresponds to the version of the source code you want to build. If a pull request ID is - * specified, it must use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch - * name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's - * HEAD commit ID is used. + * * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to + * the version of the source code you want to build. If a pull request ID is specified, it must + * use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name is specified, + * the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is + * used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID * is used. If not specified, the default branch's HEAD commit ID is used. @@ -5770,7 +5791,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectSourceVersionProperty, - ) : CdkObject(cdkObject), ProjectSourceVersionProperty { + ) : CdkObject(cdkObject), + ProjectSourceVersionProperty { /** * An identifier for a source in the build project. * @@ -5785,11 +5807,12 @@ public open class CfnProject( * The source version for the corresponding source identifier. If specified, must be one of:. * * * For CodeCommit: the commit ID, branch, or Git tag to use. - * * For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that - * corresponds to the version of the source code you want to build. If a pull request ID is - * specified, it must use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch - * name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's - * HEAD commit ID is used. + * * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to + * the version of the source code you want to build. If a pull request ID is specified, it must + * use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name is specified, + * the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is + * used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID * is used. If not specified, the default branch's HEAD commit ID is used. @@ -5847,6 +5870,9 @@ public open class CfnProject( * // the properties below are optional * .excludeMatchedPattern(false) * .build()))) + * .scopeConfiguration(ScopeConfigurationProperty.builder() + * .name("name") + * .build()) * .webhook(false) * .build(); * ``` @@ -5874,6 +5900,13 @@ public open class CfnProject( */ public fun filterGroups(): Any? = unwrap(this).getFilterGroups() + /** + * Contains configuration information about the scope for a webhook. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-scopeconfiguration) + */ + public fun scopeConfiguration(): Any? = unwrap(this).getScopeConfiguration() + /** * Specifies whether or not to begin automatically rebuilding the source code every time a code * change is pushed to the repository. @@ -5916,6 +5949,24 @@ public open class CfnProject( */ public fun filterGroups(vararg filterGroups: Any) + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + public fun scopeConfiguration(scopeConfiguration: IResolvable) + + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + public fun scopeConfiguration(scopeConfiguration: ScopeConfigurationProperty) + + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9016f025fff80034a3af9bcc8dadd66e2320a23cfe753073954f773c6b5b689") + public + fun scopeConfiguration(scopeConfiguration: ScopeConfigurationProperty.Builder.() -> Unit) + /** * @param webhook Specifies whether or not to begin automatically rebuilding the source code * every time a code change is pushed to the repository. @@ -5970,6 +6021,29 @@ public open class CfnProject( override fun filterGroups(vararg filterGroups: Any): Unit = filterGroups(filterGroups.toList()) + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + override fun scopeConfiguration(scopeConfiguration: IResolvable) { + cdkBuilder.scopeConfiguration(scopeConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + override fun scopeConfiguration(scopeConfiguration: ScopeConfigurationProperty) { + cdkBuilder.scopeConfiguration(scopeConfiguration.let(ScopeConfigurationProperty.Companion::unwrap)) + } + + /** + * @param scopeConfiguration Contains configuration information about the scope for a webhook. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9016f025fff80034a3af9bcc8dadd66e2320a23cfe753073954f773c6b5b689") + override + fun scopeConfiguration(scopeConfiguration: ScopeConfigurationProperty.Builder.() -> Unit): + Unit = scopeConfiguration(ScopeConfigurationProperty(scopeConfiguration)) + /** * @param webhook Specifies whether or not to begin automatically rebuilding the source code * every time a code change is pushed to the repository. @@ -5993,7 +6067,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ProjectTriggersProperty, - ) : CdkObject(cdkObject), ProjectTriggersProperty { + ) : CdkObject(cdkObject), + ProjectTriggersProperty { /** * Specifies the type of build this webhook will trigger. Allowed values are:. * @@ -6014,6 +6089,13 @@ public open class CfnProject( */ override fun filterGroups(): Any? = unwrap(this).getFilterGroups() + /** + * Contains configuration information about the scope for a webhook. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-scopeconfiguration) + */ + override fun scopeConfiguration(): Any? = unwrap(this).getScopeConfiguration() + /** * Specifies whether or not to begin automatically rebuilding the source code every time a * code change is pushed to the repository. @@ -6143,7 +6225,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.RegistryCredentialProperty, - ) : CdkObject(cdkObject), RegistryCredentialProperty { + ) : CdkObject(cdkObject), + RegistryCredentialProperty { /** * The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager . * @@ -6317,7 +6400,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.S3LogsConfigProperty, - ) : CdkObject(cdkObject), S3LogsConfigProperty { + ) : CdkObject(cdkObject), + S3LogsConfigProperty { /** * Set to true if you do not want your S3 build log output encrypted. * @@ -6366,14 +6450,98 @@ public open class CfnProject( } } + /** + * Contains configuration information about the scope for a webhook. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codebuild.*; + * ScopeConfigurationProperty scopeConfigurationProperty = ScopeConfigurationProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html) + */ + public interface ScopeConfigurationProperty { + /** + * The name of either the enterprise or organization that will send webhook events to CodeBuild + * , depending on if the webhook is a global or organization webhook respectively. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-name) + */ + public fun name(): String + + /** + * A builder for [ScopeConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of either the enterprise or organization that will send webhook events + * to CodeBuild , depending on if the webhook is a global or organization webhook respectively. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty.Builder = + software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty.builder() + + /** + * @param name The name of either the enterprise or organization that will send webhook events + * to CodeBuild , depending on if the webhook is a global or organization webhook respectively. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty, + ) : CdkObject(cdkObject), + ScopeConfigurationProperty { + /** + * The name of either the enterprise or organization that will send webhook events to + * CodeBuild , depending on if the webhook is a global or organization webhook respectively. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ScopeConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty): + ScopeConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ScopeConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ScopeConfigurationProperty): + software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.codebuild.CfnProject.ScopeConfigurationProperty + } + } + /** * `SourceAuth` is a property of the [AWS CodeBuild Project * Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html) * property type that specifies authorization settings for AWS CodeBuild to access the source code to * be built. * - * `SourceAuth` is for use by the CodeBuild console only. Do not get or set it directly. - * * Example: * * ``` @@ -6393,21 +6561,14 @@ public open class CfnProject( /** * The resource value that applies to the specified authorization type. * - * - * This data type is used by the AWS CodeBuild console only. - * - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-resource) */ public fun resource(): String? = unwrap(this).getResource() /** - * The authorization type to use. The only valid value is `OAUTH` , which represents the OAuth - * authorization type. - * - * - * This data type is used by the AWS CodeBuild console only. + * The authorization type to use. * + * Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type) */ @@ -6420,16 +6581,12 @@ public open class CfnProject( public interface Builder { /** * @param resource The resource value that applies to the specified authorization type. - * - * This data type is used by the AWS CodeBuild console only. */ public fun resource(resource: String) /** - * @param type The authorization type to use. The only valid value is `OAUTH` , which - * represents the OAuth authorization type. - * - * This data type is used by the AWS CodeBuild console only. + * @param type The authorization type to use. + * Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER. */ public fun type(type: String) } @@ -6441,18 +6598,14 @@ public open class CfnProject( /** * @param resource The resource value that applies to the specified authorization type. - * - * This data type is used by the AWS CodeBuild console only. */ override fun resource(resource: String) { cdkBuilder.resource(resource) } /** - * @param type The authorization type to use. The only valid value is `OAUTH` , which - * represents the OAuth authorization type. - * - * This data type is used by the AWS CodeBuild console only. + * @param type The authorization type to use. + * Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER. */ override fun type(type: String) { cdkBuilder.type(type) @@ -6464,25 +6617,19 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.SourceAuthProperty, - ) : CdkObject(cdkObject), SourceAuthProperty { + ) : CdkObject(cdkObject), + SourceAuthProperty { /** * The resource value that applies to the specified authorization type. * - * - * This data type is used by the AWS CodeBuild console only. - * - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-resource) */ override fun resource(): String? = unwrap(this).getResource() /** - * The authorization type to use. The only valid value is `OAUTH` , which represents the OAuth - * authorization type. - * - * - * This data type is used by the AWS CodeBuild console only. + * The authorization type to use. * + * Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type) */ @@ -6550,9 +6697,6 @@ public open class CfnProject( * Information about the authorization settings for AWS CodeBuild to access the source code to * be built. * - * This information is for the AWS CodeBuild console's use only. Your code should not get or set - * `Auth` directly. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-auth) */ public fun auth(): Any? = unwrap(this).getAuth() @@ -6709,24 +6853,18 @@ public open class CfnProject( /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ public fun auth(auth: IResolvable) /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ public fun auth(auth: SourceAuthProperty) /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e01b1a50446487485d9436e692397d44744f4240c10d85d6e14283a7bc9a2de4") @@ -6913,8 +7051,6 @@ public open class CfnProject( /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ override fun auth(auth: IResolvable) { cdkBuilder.auth(auth.let(IResolvable.Companion::unwrap)) @@ -6923,8 +7059,6 @@ public open class CfnProject( /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ override fun auth(auth: SourceAuthProperty) { cdkBuilder.auth(auth.let(SourceAuthProperty.Companion::unwrap)) @@ -6933,8 +7067,6 @@ public open class CfnProject( /** * @param auth Information about the authorization settings for AWS CodeBuild to access the * source code to be built. - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e01b1a50446487485d9436e692397d44744f4240c10d85d6e14283a7bc9a2de4") @@ -7148,14 +7280,12 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * Information about the authorization settings for AWS CodeBuild to access the source code to * be built. * - * This information is for the AWS CodeBuild console's use only. Your code should not get or - * set `Auth` directly. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-auth) */ override fun auth(): Any? = unwrap(this).getAuth() @@ -7454,7 +7584,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * A list of one or more security groups IDs in your Amazon VPC. * @@ -7568,8 +7699,8 @@ public open class CfnProject( * created, and pull request updated events. * * - * The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only. The `RELEASED` , - * `PRERELEASED` , and `WORKFLOW_JOB_QUEUED` work with GitHub only. + * Types `PULL_REQUEST_REOPENED` and `WORKFLOW_JOB_QUEUED` work with GitHub and GitHub + * Enterprise only. Types `RELEASED` and `PRERELEASED` work with GitHub only. * * * * ACTOR_ACCOUNT_ID @@ -7625,6 +7756,13 @@ public open class CfnProject( * Works with `RELEASED` and `PRERELEASED` events only. * * + * * REPOSITORY_NAME + * * A webhook triggers a build when the repository name matches the regular expression pattern. + * + * + * Works with GitHub global or organization webhooks only. + * + * * * WORKFLOW_NAME * * A webhook triggers a build when the workflow name matches the regular expression `pattern` * . @@ -7685,8 +7823,8 @@ public open class CfnProject( * created, and pull request updated events. * * - * The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only. The `RELEASED` , - * `PRERELEASED` , and `WORKFLOW_JOB_QUEUED` work with GitHub only. + * Types `PULL_REQUEST_REOPENED` and `WORKFLOW_JOB_QUEUED` work with GitHub and GitHub + * Enterprise only. Types `RELEASED` and `PRERELEASED` work with GitHub only. * * * * ACTOR_ACCOUNT_ID @@ -7743,6 +7881,14 @@ public open class CfnProject( * Works with `RELEASED` and `PRERELEASED` events only. * * + * * REPOSITORY_NAME + * * A webhook triggers a build when the repository name matches the regular expression + * pattern. + * + * + * Works with GitHub global or organization webhooks only. + * + * * * WORKFLOW_NAME * * A webhook triggers a build when the workflow name matches the regular expression * `pattern` . @@ -7807,8 +7953,8 @@ public open class CfnProject( * created, and pull request updated events. * * - * The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only. The `RELEASED` , - * `PRERELEASED` , and `WORKFLOW_JOB_QUEUED` work with GitHub only. + * Types `PULL_REQUEST_REOPENED` and `WORKFLOW_JOB_QUEUED` work with GitHub and GitHub + * Enterprise only. Types `RELEASED` and `PRERELEASED` work with GitHub only. * * * * ACTOR_ACCOUNT_ID @@ -7865,6 +8011,14 @@ public open class CfnProject( * Works with `RELEASED` and `PRERELEASED` events only. * * + * * REPOSITORY_NAME + * * A webhook triggers a build when the repository name matches the regular expression + * pattern. + * + * + * Works with GitHub global or organization webhooks only. + * + * * * WORKFLOW_NAME * * A webhook triggers a build when the workflow name matches the regular expression * `pattern` . @@ -7882,7 +8036,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProject.WebhookFilterProperty, - ) : CdkObject(cdkObject), WebhookFilterProperty { + ) : CdkObject(cdkObject), + WebhookFilterProperty { /** * Used to indicate that the `pattern` determines which webhook events do not trigger a build. * @@ -7924,8 +8079,8 @@ public open class CfnProject( * created, and pull request updated events. * * - * The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only. The `RELEASED` , - * `PRERELEASED` , and `WORKFLOW_JOB_QUEUED` work with GitHub only. + * Types `PULL_REQUEST_REOPENED` and `WORKFLOW_JOB_QUEUED` work with GitHub and GitHub + * Enterprise only. Types `RELEASED` and `PRERELEASED` work with GitHub only. * * * * ACTOR_ACCOUNT_ID @@ -7982,6 +8137,14 @@ public open class CfnProject( * Works with `RELEASED` and `PRERELEASED` events only. * * + * * REPOSITORY_NAME + * * A webhook triggers a build when the repository name matches the regular expression + * pattern. + * + * + * Works with GitHub global or organization webhooks only. + * + * * * WORKFLOW_NAME * * A webhook triggers a build when the workflow name matches the regular expression * `pattern` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProjectProps.kt index f138991219..ff30c329c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnProjectProps.kt @@ -181,6 +181,9 @@ import kotlin.jvm.JvmName * // the properties below are optional * .excludeMatchedPattern(false) * .build()))) + * .scopeConfiguration(ScopeConfigurationProperty.builder() + * .name("name") + * .build()) * .webhook(false) * .build()) * .visibility("visibility") @@ -373,6 +376,7 @@ public interface CfnProjectProps { * version of the source code you want to build. If a pull request ID is specified, it must use the * format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the * source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. * If not specified, the default branch's HEAD commit ID is used. @@ -399,8 +403,8 @@ public interface CfnProjectProps { public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any - * related build that did not get marked as completed. + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out + * any related build that did not get marked as completed. * * The default is 60 minutes. * @@ -730,6 +734,7 @@ public interface CfnProjectProps { * the version of the source code you want to build. If a pull request ID is specified, it must use * the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -760,7 +765,7 @@ public interface CfnProjectProps { public fun tags(vararg tags: CfnTag) /** - * @param timeoutInMinutes How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to + * @param timeoutInMinutes How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to * wait before timing out any related build that did not get marked as completed. * The default is 60 minutes. */ @@ -1185,6 +1190,7 @@ public interface CfnProjectProps { * the version of the source code you want to build. If a pull request ID is specified, it must use * the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -1219,7 +1225,7 @@ public interface CfnProjectProps { override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * @param timeoutInMinutes How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to + * @param timeoutInMinutes How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to * wait before timing out any related build that did not get marked as completed. * The default is 60 minutes. */ @@ -1304,7 +1310,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * `Artifacts` is a property of the * [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) @@ -1483,6 +1490,7 @@ public interface CfnProjectProps { * the version of the source code you want to build. If a pull request ID is specified, it must use * the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the * branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. + * * For GitLab: the commit ID, branch, or Git tag to use. * * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of * the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is * used. If not specified, the default branch's HEAD commit ID is used. @@ -1511,7 +1519,7 @@ public interface CfnProjectProps { override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out + * How long, in minutes, from 5 to 2160 (36 hours), for AWS CodeBuild to wait before timing out * any related build that did not get marked as completed. * * The default is 60 minutes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroup.kt index e294703ccf..4ba8dbda9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroup.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReportGroup( cdkObject: software.amazon.awscdk.services.codebuild.CfnReportGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -569,7 +571,8 @@ public open class CfnReportGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnReportGroup.ReportExportConfigProperty, - ) : CdkObject(cdkObject), ReportExportConfigProperty { + ) : CdkObject(cdkObject), + ReportExportConfigProperty { /** * The export configuration type. Valid values are:. * @@ -797,7 +800,8 @@ public open class CfnReportGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnReportGroup.S3ReportExportConfigProperty, - ) : CdkObject(cdkObject), S3ReportExportConfigProperty { + ) : CdkObject(cdkObject), + S3ReportExportConfigProperty { /** * The name of the S3 bucket where the raw data of a report are exported. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroupProps.kt index a2ee837620..a5b7ab599c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnReportGroupProps.kt @@ -261,7 +261,8 @@ public interface CfnReportGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnReportGroupProps, - ) : CdkObject(cdkObject), CfnReportGroupProps { + ) : CdkObject(cdkObject), + CfnReportGroupProps { /** * When deleting a report group, specifies if reports within the report group should be deleted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredential.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredential.kt index 047cebfb41..3e90fb6cf8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredential.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredential.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSourceCredential( cdkObject: software.amazon.awscdk.services.codebuild.CfnSourceCredential, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -132,7 +133,8 @@ public open class CfnSourceCredential( /** * The type of authentication used by the credentials. * - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype) * @param authType The type of authentication used by the credentials. @@ -152,7 +154,9 @@ public open class CfnSourceCredential( /** * For GitHub or GitHub Enterprise, this is the personal access token. * - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token) * @param token For GitHub or GitHub Enterprise, this is the personal access token. @@ -180,7 +184,8 @@ public open class CfnSourceCredential( /** * The type of authentication used by the credentials. * - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype) * @param authType The type of authentication used by the credentials. @@ -204,7 +209,9 @@ public open class CfnSourceCredential( /** * For GitHub or GitHub Enterprise, this is the personal access token. * - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token) * @param token For GitHub or GitHub Enterprise, this is the personal access token. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredentialProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredentialProps.kt index 20d7d4ae44..269d3f1876 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredentialProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CfnSourceCredentialProps.kt @@ -32,7 +32,8 @@ public interface CfnSourceCredentialProps { /** * The type of authentication used by the credentials. * - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype) */ @@ -50,7 +51,9 @@ public interface CfnSourceCredentialProps { /** * For GitHub or GitHub Enterprise, this is the personal access token. * - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token) */ @@ -72,7 +75,8 @@ public interface CfnSourceCredentialProps { public interface Builder { /** * @param authType The type of authentication used by the credentials. - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. */ public fun authType(authType: String) @@ -84,7 +88,9 @@ public interface CfnSourceCredentialProps { /** * @param token For GitHub or GitHub Enterprise, this is the personal access token. - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . */ public fun token(token: String) @@ -102,7 +108,8 @@ public interface CfnSourceCredentialProps { /** * @param authType The type of authentication used by the credentials. - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. */ override fun authType(authType: String) { cdkBuilder.authType(authType) @@ -118,7 +125,9 @@ public interface CfnSourceCredentialProps { /** * @param token For GitHub or GitHub Enterprise, this is the personal access token. - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . */ override fun token(token: String) { cdkBuilder.token(token) @@ -138,11 +147,13 @@ public interface CfnSourceCredentialProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CfnSourceCredentialProps, - ) : CdkObject(cdkObject), CfnSourceCredentialProps { + ) : CdkObject(cdkObject), + CfnSourceCredentialProps { /** * The type of authentication used by the credentials. * - * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. + * Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or + * SECRETS_MANAGER. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype) */ @@ -160,7 +171,9 @@ public interface CfnSourceCredentialProps { /** * For GitHub or GitHub Enterprise, this is the personal access token. * - * For Bitbucket, this is either the access token or the app password. + * For Bitbucket, this is either the access token or the app password. For the `authType` + * CODECONNECTIONS, this is the `connectionArn` . For the `authType` SECRETS_MANAGER, this is the + * `secretArn` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CloudWatchLoggingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CloudWatchLoggingOptions.kt index a46e4d3aa0..ee248a3892 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CloudWatchLoggingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CloudWatchLoggingOptions.kt @@ -100,7 +100,8 @@ public interface CloudWatchLoggingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CloudWatchLoggingOptions, - ) : CdkObject(cdkObject), CloudWatchLoggingOptions { + ) : CdkObject(cdkObject), + CloudWatchLoggingOptions { /** * The current status of the logs in Amazon CloudWatch Logs for a build project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CodeCommitSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CodeCommitSourceProps.kt index fa8f1cf8d7..9221f01a59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CodeCommitSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CodeCommitSourceProps.kt @@ -156,7 +156,8 @@ public interface CodeCommitSourceProps : SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CodeCommitSourceProps, - ) : CdkObject(cdkObject), CodeCommitSourceProps { + ) : CdkObject(cdkObject), + CodeCommitSourceProps { /** * The commit ID, pull request ID, branch name, or tag name that corresponds to the version of * the source code you want to build. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CommonProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CommonProjectProps.kt index 43e55937ca..f2f5fc8d02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CommonProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/CommonProjectProps.kt @@ -37,6 +37,7 @@ import kotlin.jvm.JvmName * BuildSpec buildSpec; * Cache cache; * IFileSystemLocation fileSystemLocation; + * Fleet fleet; * Key key; * LogGroup logGroup; * Role role; @@ -67,6 +68,7 @@ import kotlin.jvm.JvmName * // the properties below are optional * .type(BuildEnvironmentVariableType.PLAINTEXT) * .build())) + * .fleet(fleet) * .privileged(false) * .build()) * .environmentVariables(Map.of( @@ -105,6 +107,7 @@ import kotlin.jvm.JvmName * .subnetType(SubnetType.PRIVATE_ISOLATED) * .build()) * .timeout(Duration.minutes(30)) + * .visibility(ProjectVisibility.PUBLIC_READ) * .vpc(vpc) * .build(); * ``` @@ -321,8 +324,7 @@ public interface CommonProjectProps { * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) */ public fun subnetSelection(): SubnetSelection? = unwrap(this).getSubnetSelection()?.let(SubnetSelection::wrap) @@ -337,6 +339,14 @@ public interface CommonProjectProps { */ public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + */ + public fun visibility(): ProjectVisibility? = + unwrap(this).getVisibility()?.let(ProjectVisibility::wrap) + /** * VPC network to place codebuild network interfaces. * @@ -571,6 +581,11 @@ public interface CommonProjectProps { */ public fun timeout(timeout: Duration) + /** + * @param visibility Specifies the visibility of the project's builds. + */ + public fun visibility(visibility: ProjectVisibility) + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -847,6 +862,13 @@ public interface CommonProjectProps { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * @param visibility Specifies the visibility of the project's builds. + */ + override fun visibility(visibility: ProjectVisibility) { + cdkBuilder.visibility(visibility.let(ProjectVisibility.Companion::unwrap)) + } + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -861,7 +883,8 @@ public interface CommonProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.CommonProjectProps, - ) : CdkObject(cdkObject), CommonProjectProps { + ) : CdkObject(cdkObject), + CommonProjectProps { /** * Whether to allow the CodeBuild to send all network traffic. * @@ -1074,8 +1097,7 @@ public interface CommonProjectProps { * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) */ override fun subnetSelection(): SubnetSelection? = unwrap(this).getSubnetSelection()?.let(SubnetSelection::wrap) @@ -1090,6 +1112,14 @@ public interface CommonProjectProps { */ override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + */ + override fun visibility(): ProjectVisibility? = + unwrap(this).getVisibility()?.let(ProjectVisibility::wrap) + /** * VPC network to place codebuild network interfaces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/DockerImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/DockerImageOptions.kt index d3d128aa49..517550186f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/DockerImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/DockerImageOptions.kt @@ -10,7 +10,8 @@ import kotlin.Unit /** * The options when creating a CodeBuild Docker build image using - * `LinuxBuildImage.fromDockerRegistry` or `WindowsBuildImage.fromDockerRegistry`. + * `LinuxBuildImage.fromDockerRegistry`, `WindowsBuildImage.fromDockerRegistry`, or + * `MacBuildImage.fromDockerRegistry`. * * Example: * @@ -64,7 +65,8 @@ public interface DockerImageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.DockerImageOptions, - ) : CdkObject(cdkObject), DockerImageOptions { + ) : CdkObject(cdkObject), + DockerImageOptions { /** * The credentials, stored in Secrets Manager, used for accessing the repository holding the * image, if the repository is private. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EfsFileSystemLocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EfsFileSystemLocationProps.kt index eaa327f5ed..6eb432d84a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EfsFileSystemLocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EfsFileSystemLocationProps.kt @@ -118,7 +118,8 @@ public interface EfsFileSystemLocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.EfsFileSystemLocationProps, - ) : CdkObject(cdkObject), EfsFileSystemLocationProps { + ) : CdkObject(cdkObject), + EfsFileSystemLocationProps { /** * The name used to access a file system created by Amazon EFS. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EnvironmentType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EnvironmentType.kt new file mode 100644 index 0000000000..39db938b7f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EnvironmentType.kt @@ -0,0 +1,35 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +public enum class EnvironmentType( + private val cdkObject: software.amazon.awscdk.services.codebuild.EnvironmentType, +) { + ARM_CONTAINER(software.amazon.awscdk.services.codebuild.EnvironmentType.ARM_CONTAINER), + LINUX_CONTAINER(software.amazon.awscdk.services.codebuild.EnvironmentType.LINUX_CONTAINER), + LINUX_GPU_CONTAINER(software.amazon.awscdk.services.codebuild.EnvironmentType.LINUX_GPU_CONTAINER), + WINDOWS_SERVER_2019_CONTAINER(software.amazon.awscdk.services.codebuild.EnvironmentType.WINDOWS_SERVER_2019_CONTAINER), + WINDOWS_SERVER_2022_CONTAINER(software.amazon.awscdk.services.codebuild.EnvironmentType.WINDOWS_SERVER_2022_CONTAINER), + MAC_ARM(software.amazon.awscdk.services.codebuild.EnvironmentType.MAC_ARM), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.EnvironmentType): + EnvironmentType = when (cdkObject) { + software.amazon.awscdk.services.codebuild.EnvironmentType.ARM_CONTAINER -> + EnvironmentType.ARM_CONTAINER + software.amazon.awscdk.services.codebuild.EnvironmentType.LINUX_CONTAINER -> + EnvironmentType.LINUX_CONTAINER + software.amazon.awscdk.services.codebuild.EnvironmentType.LINUX_GPU_CONTAINER -> + EnvironmentType.LINUX_GPU_CONTAINER + software.amazon.awscdk.services.codebuild.EnvironmentType.WINDOWS_SERVER_2019_CONTAINER -> + EnvironmentType.WINDOWS_SERVER_2019_CONTAINER + software.amazon.awscdk.services.codebuild.EnvironmentType.WINDOWS_SERVER_2022_CONTAINER -> + EnvironmentType.WINDOWS_SERVER_2022_CONTAINER + software.amazon.awscdk.services.codebuild.EnvironmentType.MAC_ARM -> EnvironmentType.MAC_ARM + } + + internal fun unwrap(wrapped: EnvironmentType): + software.amazon.awscdk.services.codebuild.EnvironmentType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EventAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EventAction.kt index b7094f62e3..b714fd7b2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EventAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/EventAction.kt @@ -8,8 +8,12 @@ public enum class EventAction( PUSH(software.amazon.awscdk.services.codebuild.EventAction.PUSH), PULL_REQUEST_CREATED(software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_CREATED), PULL_REQUEST_UPDATED(software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_UPDATED), + PULL_REQUEST_CLOSED(software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_CLOSED), PULL_REQUEST_MERGED(software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_MERGED), PULL_REQUEST_REOPENED(software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_REOPENED), + RELEASED(software.amazon.awscdk.services.codebuild.EventAction.RELEASED), + PRERELEASED(software.amazon.awscdk.services.codebuild.EventAction.PRERELEASED), + WORKFLOW_JOB_QUEUED(software.amazon.awscdk.services.codebuild.EventAction.WORKFLOW_JOB_QUEUED), ; public companion object { @@ -20,10 +24,16 @@ public enum class EventAction( EventAction.PULL_REQUEST_CREATED software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_UPDATED -> EventAction.PULL_REQUEST_UPDATED + software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_CLOSED -> + EventAction.PULL_REQUEST_CLOSED software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_MERGED -> EventAction.PULL_REQUEST_MERGED software.amazon.awscdk.services.codebuild.EventAction.PULL_REQUEST_REOPENED -> EventAction.PULL_REQUEST_REOPENED + software.amazon.awscdk.services.codebuild.EventAction.RELEASED -> EventAction.RELEASED + software.amazon.awscdk.services.codebuild.EventAction.PRERELEASED -> EventAction.PRERELEASED + software.amazon.awscdk.services.codebuild.EventAction.WORKFLOW_JOB_QUEUED -> + EventAction.WORKFLOW_JOB_QUEUED } internal fun unwrap(wrapped: EventAction): software.amazon.awscdk.services.codebuild.EventAction diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FileSystemConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FileSystemConfig.kt index 113681e1de..86cb9cabf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FileSystemConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FileSystemConfig.kt @@ -81,7 +81,8 @@ public interface FileSystemConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.FileSystemConfig, - ) : CdkObject(cdkObject), FileSystemConfig { + ) : CdkObject(cdkObject), + FileSystemConfig { /** * File system location wrapper property. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FilterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FilterGroup.kt index a1de68d745..da562deb27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FilterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FilterGroup.kt @@ -24,7 +24,7 @@ import kotlin.String * .webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise * .webhookTriggersBatchBuild(true) // optional, default is false * .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("main").andCommitMessageIs("the - * commit message"))) + * commit message"), FilterGroup.inEventOf(EventAction.RELEASED).andBranchIs("main"))) * .build()); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Fleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Fleet.kt new file mode 100644 index 0000000000..f1e9522de0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Fleet.kt @@ -0,0 +1,206 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Number +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Fleet for a reserved capacity CodeBuild project. + * + * Fleets allow for process builds or tests to run immediately and reduces build durations, + * by reserving compute resources for your projects. + * + * You will be charged for the resources in the fleet, even if they are idle. + * + * Example: + * + * ``` + * Fleet fleet = Fleet.Builder.create(this, "Fleet") + * .computeType(FleetComputeType.MEDIUM) + * .environmentType(EnvironmentType.LINUX_CONTAINER) + * .baseCapacity(1) + * .build(); + * Project.Builder.create(this, "Project") + * .environment(BuildEnvironment.builder() + * .fleet(fleet) + * .buildImage(LinuxBuildImage.STANDARD_7_0) + * .build()) + * .build(); + * ``` + * + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html) + */ +public open class Fleet( + cdkObject: software.amazon.awscdk.services.codebuild.Fleet, +) : Resource(cdkObject), + IFleet { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: FleetProps, + ) : + this(software.amazon.awscdk.services.codebuild.Fleet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(FleetProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: FleetProps.Builder.() -> Unit, + ) : this(scope, id, FleetProps(props) + ) + + /** + * The compute type of the fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + */ + public override fun computeType(): FleetComputeType = + unwrap(this).getComputeType().let(FleetComputeType::wrap) + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + */ + public override fun environmentType(): EnvironmentType = + unwrap(this).getEnvironmentType().let(EnvironmentType::wrap) + + /** + * The ARN of the fleet. + */ + public override fun fleetArn(): String = unwrap(this).getFleetArn() + + /** + * The name of the fleet. + */ + public override fun fleetName(): String = unwrap(this).getFleetName() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.codebuild.Fleet]. + */ + @CdkDslMarker + public interface Builder { + /** + * The number of machines allocated to the compute fleet. Defines the number of builds that can + * run in parallel. + * + * Minimum value of 1. + * + * @param baseCapacity The number of machines allocated to the compute fleet. Defines the number + * of builds that can run in parallel. + */ + public fun baseCapacity(baseCapacity: Number) + + /** + * The instance type of the compute fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + * @param computeType The instance type of the compute fleet. + */ + public fun computeType(computeType: FleetComputeType) + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + * + * @param environmentType The build environment (operating system/architecture/accelerator) type + * made available to projects using this fleet. + */ + public fun environmentType(environmentType: EnvironmentType) + + /** + * The name of the Fleet. + * + * Default: - CloudFormation generated name + * + * @param fleetName The name of the Fleet. + */ + public fun fleetName(fleetName: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.codebuild.Fleet.Builder = + software.amazon.awscdk.services.codebuild.Fleet.Builder.create(scope, id) + + /** + * The number of machines allocated to the compute fleet. Defines the number of builds that can + * run in parallel. + * + * Minimum value of 1. + * + * @param baseCapacity The number of machines allocated to the compute fleet. Defines the number + * of builds that can run in parallel. + */ + override fun baseCapacity(baseCapacity: Number) { + cdkBuilder.baseCapacity(baseCapacity) + } + + /** + * The instance type of the compute fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + * @param computeType The instance type of the compute fleet. + */ + override fun computeType(computeType: FleetComputeType) { + cdkBuilder.computeType(computeType.let(FleetComputeType.Companion::unwrap)) + } + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + * + * @param environmentType The build environment (operating system/architecture/accelerator) type + * made available to projects using this fleet. + */ + override fun environmentType(environmentType: EnvironmentType) { + cdkBuilder.environmentType(environmentType.let(EnvironmentType.Companion::unwrap)) + } + + /** + * The name of the Fleet. + * + * Default: - CloudFormation generated name + * + * @param fleetName The name of the Fleet. + */ + override fun fleetName(fleetName: String) { + cdkBuilder.fleetName(fleetName) + } + + public fun build(): software.amazon.awscdk.services.codebuild.Fleet = cdkBuilder.build() + } + + public companion object { + public fun fromFleetArn( + scope: CloudshiftdevConstructsConstruct, + id: String, + fleetArn: String, + ): IFleet = + software.amazon.awscdk.services.codebuild.Fleet.fromFleetArn(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, fleetArn).let(IFleet::wrap) + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): Fleet { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return Fleet(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.Fleet): Fleet = + Fleet(cdkObject) + + internal fun unwrap(wrapped: Fleet): software.amazon.awscdk.services.codebuild.Fleet = + wrapped.cdkObject as software.amazon.awscdk.services.codebuild.Fleet + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetComputeType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetComputeType.kt new file mode 100644 index 0000000000..7a0b416d7b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetComputeType.kt @@ -0,0 +1,29 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +public enum class FleetComputeType( + private val cdkObject: software.amazon.awscdk.services.codebuild.FleetComputeType, +) { + SMALL(software.amazon.awscdk.services.codebuild.FleetComputeType.SMALL), + MEDIUM(software.amazon.awscdk.services.codebuild.FleetComputeType.MEDIUM), + LARGE(software.amazon.awscdk.services.codebuild.FleetComputeType.LARGE), + X_LARGE(software.amazon.awscdk.services.codebuild.FleetComputeType.X_LARGE), + X2_LARGE(software.amazon.awscdk.services.codebuild.FleetComputeType.X2_LARGE), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.FleetComputeType): + FleetComputeType = when (cdkObject) { + software.amazon.awscdk.services.codebuild.FleetComputeType.SMALL -> FleetComputeType.SMALL + software.amazon.awscdk.services.codebuild.FleetComputeType.MEDIUM -> FleetComputeType.MEDIUM + software.amazon.awscdk.services.codebuild.FleetComputeType.LARGE -> FleetComputeType.LARGE + software.amazon.awscdk.services.codebuild.FleetComputeType.X_LARGE -> FleetComputeType.X_LARGE + software.amazon.awscdk.services.codebuild.FleetComputeType.X2_LARGE -> + FleetComputeType.X2_LARGE + } + + internal fun unwrap(wrapped: FleetComputeType): + software.amazon.awscdk.services.codebuild.FleetComputeType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetProps.kt new file mode 100644 index 0000000000..d6468769c7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/FleetProps.kt @@ -0,0 +1,174 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.String +import kotlin.Unit + +/** + * Construction properties of a CodeBuild [Fleet]. + * + * Example: + * + * ``` + * Fleet fleet = Fleet.Builder.create(this, "Fleet") + * .computeType(FleetComputeType.MEDIUM) + * .environmentType(EnvironmentType.LINUX_CONTAINER) + * .baseCapacity(1) + * .build(); + * Project.Builder.create(this, "Project") + * .environment(BuildEnvironment.builder() + * .fleet(fleet) + * .buildImage(LinuxBuildImage.STANDARD_7_0) + * .build()) + * .build(); + * ``` + */ +public interface FleetProps { + /** + * The number of machines allocated to the compute fleet. Defines the number of builds that can run + * in parallel. + * + * Minimum value of 1. + */ + public fun baseCapacity(): Number + + /** + * The instance type of the compute fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + */ + public fun computeType(): FleetComputeType + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + */ + public fun environmentType(): EnvironmentType + + /** + * The name of the Fleet. + * + * Default: - CloudFormation generated name + */ + public fun fleetName(): String? = unwrap(this).getFleetName() + + /** + * A builder for [FleetProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param baseCapacity The number of machines allocated to the compute fleet. Defines the number + * of builds that can run in parallel. + * Minimum value of 1. + */ + public fun baseCapacity(baseCapacity: Number) + + /** + * @param computeType The instance type of the compute fleet. + */ + public fun computeType(computeType: FleetComputeType) + + /** + * @param environmentType The build environment (operating system/architecture/accelerator) type + * made available to projects using this fleet. + */ + public fun environmentType(environmentType: EnvironmentType) + + /** + * @param fleetName The name of the Fleet. + */ + public fun fleetName(fleetName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.codebuild.FleetProps.Builder = + software.amazon.awscdk.services.codebuild.FleetProps.builder() + + /** + * @param baseCapacity The number of machines allocated to the compute fleet. Defines the number + * of builds that can run in parallel. + * Minimum value of 1. + */ + override fun baseCapacity(baseCapacity: Number) { + cdkBuilder.baseCapacity(baseCapacity) + } + + /** + * @param computeType The instance type of the compute fleet. + */ + override fun computeType(computeType: FleetComputeType) { + cdkBuilder.computeType(computeType.let(FleetComputeType.Companion::unwrap)) + } + + /** + * @param environmentType The build environment (operating system/architecture/accelerator) type + * made available to projects using this fleet. + */ + override fun environmentType(environmentType: EnvironmentType) { + cdkBuilder.environmentType(environmentType.let(EnvironmentType.Companion::unwrap)) + } + + /** + * @param fleetName The name of the Fleet. + */ + override fun fleetName(fleetName: String) { + cdkBuilder.fleetName(fleetName) + } + + public fun build(): software.amazon.awscdk.services.codebuild.FleetProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codebuild.FleetProps, + ) : CdkObject(cdkObject), + FleetProps { + /** + * The number of machines allocated to the compute fleet. Defines the number of builds that can + * run in parallel. + * + * Minimum value of 1. + */ + override fun baseCapacity(): Number = unwrap(this).getBaseCapacity() + + /** + * The instance type of the compute fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + */ + override fun computeType(): FleetComputeType = + unwrap(this).getComputeType().let(FleetComputeType::wrap) + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + */ + override fun environmentType(): EnvironmentType = + unwrap(this).getEnvironmentType().let(EnvironmentType::wrap) + + /** + * The name of the Fleet. + * + * Default: - CloudFormation generated name + */ + override fun fleetName(): String? = unwrap(this).getFleetName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FleetProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.FleetProps): FleetProps = + CdkObjectWrappers.wrap(cdkObject) as? FleetProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FleetProps): software.amazon.awscdk.services.codebuild.FleetProps = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.codebuild.FleetProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceCredentialsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceCredentialsProps.kt index c1a9df1e6e..317c212953 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceCredentialsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceCredentialsProps.kt @@ -63,7 +63,8 @@ public interface GitHubEnterpriseSourceCredentialsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.GitHubEnterpriseSourceCredentialsProps, - ) : CdkObject(cdkObject), GitHubEnterpriseSourceCredentialsProps { + ) : CdkObject(cdkObject), + GitHubEnterpriseSourceCredentialsProps { /** * The personal access token to use when contacting the instance of the GitHub Enterprise API. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceProps.kt index 92b4cdcb7f..6ed718a82e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubEnterpriseSourceProps.kt @@ -354,7 +354,8 @@ public interface GitHubEnterpriseSourceProps : SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.GitHubEnterpriseSourceProps, - ) : CdkObject(cdkObject), GitHubEnterpriseSourceProps { + ) : CdkObject(cdkObject), + GitHubEnterpriseSourceProps { /** * The commit ID, pull request ID, branch name, or tag name that corresponds to the version of * the source code you want to build. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceCredentialsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceCredentialsProps.kt index 3a21bd5643..2d9eaf79ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceCredentialsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceCredentialsProps.kt @@ -54,7 +54,8 @@ public interface GitHubSourceCredentialsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.GitHubSourceCredentialsProps, - ) : CdkObject(cdkObject), GitHubSourceCredentialsProps { + ) : CdkObject(cdkObject), + GitHubSourceCredentialsProps { /** * The personal access token to use when contacting the GitHub API. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceProps.kt index 7298d235ae..4bf5bbfa2f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/GitHubSourceProps.kt @@ -354,7 +354,8 @@ public interface GitHubSourceProps : SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.GitHubSourceProps, - ) : CdkObject(cdkObject), GitHubSourceProps { + ) : CdkObject(cdkObject), + GitHubSourceProps { /** * The commit ID, pull request ID, branch name, or tag name that corresponds to the version of * the source code you want to build. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IArtifacts.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IArtifacts.kt index b9bf2cb78b..f955f40171 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IArtifacts.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IArtifacts.kt @@ -35,7 +35,8 @@ public interface IArtifacts { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IArtifacts, - ) : CdkObject(cdkObject), IArtifacts { + ) : CdkObject(cdkObject), + IArtifacts { /** * Callback when an Artifacts class is used in a CodeBuild Project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBindableBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBindableBuildImage.kt index 08ec6e3b0e..1ad5d450b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBindableBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBindableBuildImage.kt @@ -46,7 +46,8 @@ public interface IBindableBuildImage : IBuildImage { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IBindableBuildImage, - ) : CdkObject(cdkObject), IBindableBuildImage { + ) : CdkObject(cdkObject), + IBindableBuildImage { /** * Function that allows the build image access to the construct tree. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBuildImage.kt index 14a51d3398..cd8f29bcbb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IBuildImage.kt @@ -84,7 +84,8 @@ public interface IBuildImage { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IBuildImage, - ) : CdkObject(cdkObject), IBuildImage { + ) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFileSystemLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFileSystemLocation.kt index de5e2d71e5..f33a84de90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFileSystemLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFileSystemLocation.kt @@ -23,7 +23,8 @@ public interface IFileSystemLocation { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IFileSystemLocation, - ) : CdkObject(cdkObject), IFileSystemLocation { + ) : CdkObject(cdkObject), + IFileSystemLocation { /** * Called by the project when a file system is added so it can perform binding operations on * this file system location. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFleet.kt new file mode 100644 index 0000000000..22564fd8fc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IFleet.kt @@ -0,0 +1,114 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents a [Fleet] for a reserved capacity CodeBuild project. + */ +public interface IFleet : IResource { + /** + * The compute type of the fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + */ + public fun computeType(): FleetComputeType + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + */ + public fun environmentType(): EnvironmentType + + /** + * The ARN of the fleet. + */ + public fun fleetArn(): String + + /** + * The name of the fleet. + */ + public fun fleetName(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codebuild.IFleet, + ) : CdkObject(cdkObject), + IFleet { + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The compute type of the fleet. + * + * [Documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html) + */ + override fun computeType(): FleetComputeType = + unwrap(this).getComputeType().let(FleetComputeType::wrap) + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + /** + * The build environment (operating system/architecture/accelerator) type made available to + * projects using this fleet. + */ + override fun environmentType(): EnvironmentType = + unwrap(this).getEnvironmentType().let(EnvironmentType::wrap) + + /** + * The ARN of the fleet. + */ + override fun fleetArn(): String = unwrap(this).getFleetArn() + + /** + * The name of the fleet. + */ + override fun fleetName(): String = unwrap(this).getFleetName() + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.IFleet): IFleet = + CdkObjectWrappers.wrap(cdkObject) as? IFleet ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IFleet): software.amazon.awscdk.services.codebuild.IFleet = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.codebuild.IFleet + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IProject.kt index fd6af79353..98213ce7d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IProject.kt @@ -599,7 +599,8 @@ public interface IProject : IResource, IGrantable, IConnectable, INotificationRu private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IProject, - ) : CdkObject(cdkObject), IProject { + ) : CdkObject(cdkObject), + IProject { /** * @param policyStatement */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IReportGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IReportGroup.kt index abcf1ad70f..784aea11d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IReportGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/IReportGroup.kt @@ -37,7 +37,8 @@ public interface IReportGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.IReportGroup, - ) : CdkObject(cdkObject), IReportGroup { + ) : CdkObject(cdkObject), + IReportGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ISource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ISource.kt index f8a25cdf51..fc04c609a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ISource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ISource.kt @@ -37,7 +37,8 @@ public interface ISource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ISource, - ) : CdkObject(cdkObject), ISource { + ) : CdkObject(cdkObject), + ISource { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmBuildImage.kt index 35d0562cac..dcf2444c8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmBuildImage.kt @@ -33,7 +33,8 @@ import kotlin.jvm.JvmName */ public open class LinuxArmBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.LinuxArmBuildImage, -) : CdkObject(cdkObject), IBuildImage { +) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. @@ -78,8 +79,7 @@ public open class LinuxArmBuildImage( public override fun type(): String = unwrap(this).getType() /** - * Validates by checking the BuildEnvironment computeType as aarch64 images only support - * ComputeType.SMALL and ComputeType.LARGE. + * Validates by checking the BuildEnvironments' images are not Lambda ComputeTypes. * * @param buildEnvironment BuildEnvironment. */ @@ -87,8 +87,7 @@ public open class LinuxArmBuildImage( unwrap(this).validate(buildEnvironment.let(BuildEnvironment.Companion::unwrap)) /** - * Validates by checking the BuildEnvironment computeType as aarch64 images only support - * ComputeType.SMALL and ComputeType.LARGE. + * Validates by checking the BuildEnvironments' images are not Lambda ComputeTypes. * * @param buildEnvironment BuildEnvironment. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmLambdaBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmLambdaBuildImage.kt index e6326efb5a..ba987f02e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmLambdaBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxArmLambdaBuildImage.kt @@ -26,7 +26,8 @@ import kotlin.jvm.JvmName */ public open class LinuxArmLambdaBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.LinuxArmLambdaBuildImage, -) : CdkObject(cdkObject), IBuildImage { +) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. @@ -95,6 +96,9 @@ public open class LinuxArmLambdaBuildImage( public val AMAZON_LINUX_2023_CORRETTO_21: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_CORRETTO_21) + public val AMAZON_LINUX_2023_DOTNET_8: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_DOTNET_8) + public val AMAZON_LINUX_2023_NODE_20: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_NODE_20) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxBuildImage.kt index 72ddab4fc3..b8207ae5eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxBuildImage.kt @@ -55,7 +55,8 @@ import kotlin.jvm.JvmName */ public open class LinuxBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.LinuxBuildImage, -) : CdkObject(cdkObject), IBuildImage { +) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. @@ -142,6 +143,12 @@ public open class LinuxBuildImage( public val AMAZON_LINUX_2_ARM_3: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxBuildImage.AMAZON_LINUX_2_ARM_3) + public val AMAZON_LINUX_2_CORETTO_11: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxBuildImage.AMAZON_LINUX_2_CORETTO_11) + + public val AMAZON_LINUX_2_CORETTO_8: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxBuildImage.AMAZON_LINUX_2_CORETTO_8) + public val STANDARD_1_0: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxBuildImage.STANDARD_1_0) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxGpuBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxGpuBuildImage.kt index 51894e7bcc..64814a8ee9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxGpuBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxGpuBuildImage.kt @@ -30,7 +30,8 @@ import kotlin.jvm.JvmName */ public open class LinuxGpuBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.LinuxGpuBuildImage, -) : CdkObject(cdkObject), IBindableBuildImage { +) : CdkObject(cdkObject), + IBindableBuildImage { /** * Function that allows the build image access to the construct tree. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxLambdaBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxLambdaBuildImage.kt index 9df03e7a0b..fd558d8d3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxLambdaBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LinuxLambdaBuildImage.kt @@ -27,7 +27,8 @@ import kotlin.jvm.JvmName */ public open class LinuxLambdaBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.LinuxLambdaBuildImage, -) : CdkObject(cdkObject), IBuildImage { +) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. @@ -96,6 +97,9 @@ public open class LinuxLambdaBuildImage( public val AMAZON_LINUX_2023_CORRETTO_21: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxLambdaBuildImage.AMAZON_LINUX_2023_CORRETTO_21) + public val AMAZON_LINUX_2023_DOTNET_8: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxLambdaBuildImage.AMAZON_LINUX_2023_DOTNET_8) + public val AMAZON_LINUX_2023_NODE_20: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.LinuxLambdaBuildImage.AMAZON_LINUX_2023_NODE_20) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LoggingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LoggingOptions.kt index 94338df4e3..12493f8185 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LoggingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/LoggingOptions.kt @@ -110,7 +110,8 @@ public interface LoggingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.LoggingOptions, - ) : CdkObject(cdkObject), LoggingOptions { + ) : CdkObject(cdkObject), + LoggingOptions { /** * Information about Amazon CloudWatch Logs for a build project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/MacBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/MacBuildImage.kt new file mode 100644 index 0000000000..4ee550810b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/MacBuildImage.kt @@ -0,0 +1,196 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.ecr.IRepository +import io.cloudshiftdev.awscdk.services.ecr.assets.DockerImageAssetProps +import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret +import io.cloudshiftdev.constructs.Construct +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * A CodeBuild image running ARM MacOS. + * + * This class has a bunch of public constants that represent the most popular images. + * + * You can also specify a custom image using one of the static methods: + * + * * MacBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }]) + * * MacBuildImage.fromEcrRepository(repo[, tag]) + * * MacBuildImage.fromAsset(parent, id, props) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.codebuild.*; + * import io.cloudshiftdev.awscdk.services.ecr.assets.*; + * NetworkMode networkMode; + * Platform platform; + * IBuildImage macBuildImage = MacBuildImage.fromAsset(this, "MyMacBuildImage", + * DockerImageAssetProps.builder() + * .directory("directory") + * // the properties below are optional + * .assetName("assetName") + * .buildArgs(Map.of( + * "buildArgsKey", "buildArgs")) + * .buildSecrets(Map.of( + * "buildSecretsKey", "buildSecrets")) + * .buildSsh("buildSsh") + * .cacheDisabled(false) + * .cacheFrom(List.of(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build())) + * .cacheTo(DockerCacheOption.builder() + * .type("type") + * // the properties below are optional + * .params(Map.of( + * "paramsKey", "params")) + * .build()) + * .exclude(List.of("exclude")) + * .extraHash("extraHash") + * .file("file") + * .followSymlinks(SymlinkFollowMode.NEVER) + * .ignoreMode(IgnoreMode.GLOB) + * .invalidation(DockerImageAssetInvalidationOptions.builder() + * .buildArgs(false) + * .buildSecrets(false) + * .buildSsh(false) + * .extraHash(false) + * .file(false) + * .networkMode(false) + * .outputs(false) + * .platform(false) + * .repositoryName(false) + * .target(false) + * .build()) + * .networkMode(networkMode) + * .outputs(List.of("outputs")) + * .platform(platform) + * .target("target") + * .build()); + * ``` + * + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html) + */ +public open class MacBuildImage( + cdkObject: software.amazon.awscdk.services.codebuild.MacBuildImage, +) : CdkObject(cdkObject), + IBuildImage { + /** + * The default `ComputeType` to use with this image, if one was not specified in + * `BuildEnvironment#computeType` explicitly. + */ + public override fun defaultComputeType(): ComputeType = + unwrap(this).getDefaultComputeType().let(ComputeType::wrap) + + /** + * The Docker image identifier that the build environment uses. + */ + public override fun imageId(): String = unwrap(this).getImageId() + + /** + * The type of principal that CodeBuild will use to pull this build Docker image. + */ + public override fun imagePullPrincipalType(): ImagePullPrincipalType? = + unwrap(this).getImagePullPrincipalType()?.let(ImagePullPrincipalType::wrap) + + /** + * An optional ECR repository that the image is hosted in. + */ + public override fun repository(): IRepository? = + unwrap(this).getRepository()?.let(IRepository::wrap) + + /** + * Make a buildspec to run the indicated script. + * + * @param entrypoint + */ + public override fun runScriptBuildspec(entrypoint: String): BuildSpec = + unwrap(this).runScriptBuildspec(entrypoint).let(BuildSpec::wrap) + + /** + * The secretsManagerCredentials for access to a private registry. + */ + public override fun secretsManagerCredentials(): ISecret? = + unwrap(this).getSecretsManagerCredentials()?.let(ISecret::wrap) + + /** + * The type of build environment. + */ + public override fun type(): String = unwrap(this).getType() + + /** + * Allows the image a chance to validate whether the passed configuration is correct. + * + * @param buildEnvironment + */ + public override fun validate(buildEnvironment: BuildEnvironment): List = + unwrap(this).validate(buildEnvironment.let(BuildEnvironment.Companion::unwrap)) + + /** + * Allows the image a chance to validate whether the passed configuration is correct. + * + * @param buildEnvironment + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ff36d333164150adb92277700abb7153d45f26e16fa225966e7bf6fc0bedfcee") + public override fun validate(buildEnvironment: BuildEnvironment.Builder.() -> Unit): List + = validate(BuildEnvironment(buildEnvironment)) + + public companion object { + public val BASE_14: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.MacBuildImage.BASE_14) + + public fun fromAsset( + scope: Construct, + id: String, + props: DockerImageAssetProps, + ): IBuildImage = + software.amazon.awscdk.services.codebuild.MacBuildImage.fromAsset(scope.let(Construct.Companion::unwrap), + id, props.let(DockerImageAssetProps.Companion::unwrap)).let(IBuildImage::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66f4338ab15382a1d0a2efb8183796cd48bca3922530d07a2c878008262c08ef") + public fun fromAsset( + scope: Construct, + id: String, + props: DockerImageAssetProps.Builder.() -> Unit, + ): IBuildImage = fromAsset(scope, id, DockerImageAssetProps(props)) + + public fun fromDockerRegistry(name: String): IBuildImage = + software.amazon.awscdk.services.codebuild.MacBuildImage.fromDockerRegistry(name).let(IBuildImage::wrap) + + public fun fromDockerRegistry(name: String, options: DockerImageOptions): IBuildImage = + software.amazon.awscdk.services.codebuild.MacBuildImage.fromDockerRegistry(name, + options.let(DockerImageOptions.Companion::unwrap)).let(IBuildImage::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e9dfa00b9fda484ff06b60ab8b92ae7805fa8054bf1b7155a5e6cb7e59c4680f") + public fun fromDockerRegistry(name: String, options: DockerImageOptions.Builder.() -> Unit): + IBuildImage = fromDockerRegistry(name, DockerImageOptions(options)) + + public fun fromEcrRepository(repository: IRepository): IBuildImage = + software.amazon.awscdk.services.codebuild.MacBuildImage.fromEcrRepository(repository.let(IRepository.Companion::unwrap)).let(IBuildImage::wrap) + + public fun fromEcrRepository(repository: IRepository, tagOrDigest: String): IBuildImage = + software.amazon.awscdk.services.codebuild.MacBuildImage.fromEcrRepository(repository.let(IRepository.Companion::unwrap), + tagOrDigest).let(IBuildImage::wrap) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.MacBuildImage): + MacBuildImage = MacBuildImage(cdkObject) + + internal fun unwrap(wrapped: MacBuildImage): + software.amazon.awscdk.services.codebuild.MacBuildImage = wrapped.cdkObject as + software.amazon.awscdk.services.codebuild.MacBuildImage + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProject.kt index 73f1fe68aa..c81f5ff2db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProject.kt @@ -402,8 +402,7 @@ public open class PipelineProject( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ public fun subnetSelection(subnetSelection: SubnetSelection) @@ -429,8 +428,7 @@ public open class PipelineProject( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -450,6 +448,15 @@ public open class PipelineProject( */ public fun timeout(timeout: Duration) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + * + * @param visibility Specifies the visibility of the project's builds. + */ + public fun visibility(visibility: ProjectVisibility) + /** * VPC network to place codebuild network interfaces. * @@ -811,8 +818,7 @@ public open class PipelineProject( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ override fun subnetSelection(subnetSelection: SubnetSelection) { @@ -840,8 +846,7 @@ public open class PipelineProject( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -864,6 +869,17 @@ public open class PipelineProject( cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + * + * @param visibility Specifies the visibility of the project's builds. + */ + override fun visibility(visibility: ProjectVisibility) { + cdkBuilder.visibility(visibility.let(ProjectVisibility.Companion::unwrap)) + } + /** * VPC network to place codebuild network interfaces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProjectProps.kt index e34ae7a3c2..92542318b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/PipelineProjectProps.kt @@ -295,6 +295,11 @@ public interface PipelineProjectProps : CommonProjectProps { */ public fun timeout(timeout: Duration) + /** + * @param visibility Specifies the visibility of the project's builds. + */ + public fun visibility(visibility: ProjectVisibility) + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -571,6 +576,13 @@ public interface PipelineProjectProps : CommonProjectProps { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * @param visibility Specifies the visibility of the project's builds. + */ + override fun visibility(visibility: ProjectVisibility) { + cdkBuilder.visibility(visibility.let(ProjectVisibility.Companion::unwrap)) + } + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -585,7 +597,8 @@ public interface PipelineProjectProps : CommonProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.PipelineProjectProps, - ) : CdkObject(cdkObject), PipelineProjectProps { + ) : CdkObject(cdkObject), + PipelineProjectProps { /** * Whether to allow the CodeBuild to send all network traffic. * @@ -798,8 +811,7 @@ public interface PipelineProjectProps : CommonProjectProps { * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) */ override fun subnetSelection(): SubnetSelection? = unwrap(this).getSubnetSelection()?.let(SubnetSelection::wrap) @@ -814,6 +826,14 @@ public interface PipelineProjectProps : CommonProjectProps { */ override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + */ + override fun visibility(): ProjectVisibility? = + unwrap(this).getVisibility()?.let(ProjectVisibility::wrap) + /** * VPC network to place codebuild network interfaces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Project.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Project.kt index 285ec2be3d..2efa857ea6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Project.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Project.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Project( cdkObject: software.amazon.awscdk.services.codebuild.Project, -) : Resource(cdkObject), IProject { +) : Resource(cdkObject), + IProject { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1165,8 +1166,7 @@ public open class Project( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ public fun subnetSelection(subnetSelection: SubnetSelection) @@ -1192,8 +1192,7 @@ public open class Project( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1213,6 +1212,15 @@ public open class Project( */ public fun timeout(timeout: Duration) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + * + * @param visibility Specifies the visibility of the project's builds. + */ + public fun visibility(visibility: ProjectVisibility) + /** * VPC network to place codebuild network interfaces. * @@ -1659,8 +1667,7 @@ public open class Project( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ override fun subnetSelection(subnetSelection: SubnetSelection) { @@ -1688,8 +1695,7 @@ public open class Project( * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) * @param subnetSelection Where to place the network interfaces within the VPC. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1712,6 +1718,17 @@ public open class Project( cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + * + * @param visibility Specifies the visibility of the project's builds. + */ + override fun visibility(visibility: ProjectVisibility) { + cdkBuilder.visibility(visibility.let(ProjectVisibility.Companion::unwrap)) + } + /** * VPC network to place codebuild network interfaces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectNotifyOnOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectNotifyOnOptions.kt index bbd7887fec..564b207165 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectNotifyOnOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectNotifyOnOptions.kt @@ -25,6 +25,7 @@ import kotlin.collections.List * ProjectNotifyOnOptions projectNotifyOnOptions = ProjectNotifyOnOptions.builder() * .events(List.of(ProjectNotificationEvents.BUILD_FAILED)) * // the properties below are optional + * .createdBy("createdBy") * .detailType(DetailType.BASIC) * .enabled(false) * .notificationRuleName("notificationRuleName") @@ -47,6 +48,12 @@ public interface ProjectNotifyOnOptions : NotificationRuleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + public fun createdBy(createdBy: String) + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -88,6 +95,14 @@ public interface ProjectNotifyOnOptions : NotificationRuleOptions { private val cdkBuilder: software.amazon.awscdk.services.codebuild.ProjectNotifyOnOptions.Builder = software.amazon.awscdk.services.codebuild.ProjectNotifyOnOptions.builder() + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -138,7 +153,17 @@ public interface ProjectNotifyOnOptions : NotificationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ProjectNotifyOnOptions, - ) : CdkObject(cdkObject), ProjectNotifyOnOptions { + ) : CdkObject(cdkObject), + ProjectNotifyOnOptions { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + override fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectProps.kt index 16df02d089..4d6d72b7f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectProps.kt @@ -349,6 +349,11 @@ public interface ProjectProps : CommonProjectProps { */ public fun timeout(timeout: Duration) + /** + * @param visibility Specifies the visibility of the project's builds. + */ + public fun visibility(visibility: ProjectVisibility) + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -676,6 +681,13 @@ public interface ProjectProps : CommonProjectProps { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * @param visibility Specifies the visibility of the project's builds. + */ + override fun visibility(visibility: ProjectVisibility) { + cdkBuilder.visibility(visibility.let(ProjectVisibility.Companion::unwrap)) + } + /** * @param vpc VPC network to place codebuild network interfaces. * Specify this if the codebuild project needs to access resources in a VPC. @@ -689,7 +701,8 @@ public interface ProjectProps : CommonProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ProjectProps, - ) : CdkObject(cdkObject), ProjectProps { + ) : CdkObject(cdkObject), + ProjectProps { /** * Whether to allow the CodeBuild to send all network traffic. * @@ -947,8 +960,7 @@ public interface ProjectProps : CommonProjectProps { * * Default: - private subnets if available else public subnets * - * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html for - * more details.) + * [Documentation](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) */ override fun subnetSelection(): SubnetSelection? = unwrap(this).getSubnetSelection()?.let(SubnetSelection::wrap) @@ -963,6 +975,14 @@ public interface ProjectProps : CommonProjectProps { */ override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** + * Specifies the visibility of the project's builds. + * + * Default: - no visibility is set + */ + override fun visibility(): ProjectVisibility? = + unwrap(this).getVisibility()?.let(ProjectVisibility::wrap) + /** * VPC network to place codebuild network interfaces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectVisibility.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectVisibility.kt new file mode 100644 index 0000000000..b3e32e9500 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ProjectVisibility.kt @@ -0,0 +1,24 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codebuild + +public enum class ProjectVisibility( + private val cdkObject: software.amazon.awscdk.services.codebuild.ProjectVisibility, +) { + PUBLIC_READ(software.amazon.awscdk.services.codebuild.ProjectVisibility.PUBLIC_READ), + PRIVATE(software.amazon.awscdk.services.codebuild.ProjectVisibility.PRIVATE), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.codebuild.ProjectVisibility): + ProjectVisibility = when (cdkObject) { + software.amazon.awscdk.services.codebuild.ProjectVisibility.PUBLIC_READ -> + ProjectVisibility.PUBLIC_READ + software.amazon.awscdk.services.codebuild.ProjectVisibility.PRIVATE -> + ProjectVisibility.PRIVATE + } + + internal fun unwrap(wrapped: ProjectVisibility): + software.amazon.awscdk.services.codebuild.ProjectVisibility = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroup.kt index 69b34031a9..37f8b493f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroup.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ReportGroup( cdkObject: software.amazon.awscdk.services.codebuild.ReportGroup, -) : Resource(cdkObject), IReportGroup { +) : Resource(cdkObject), + IReportGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codebuild.ReportGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -81,6 +82,18 @@ public open class ReportGroup( */ @CdkDslMarker public interface Builder { + /** + * If true, deleting the report group force deletes the contents of the report group. + * + * If false, the report group must be empty before attempting to delete it. + * + * Default: false + * + * @param deleteReports If true, deleting the report group force deletes the contents of the + * report group. + */ + public fun deleteReports(deleteReports: Boolean) + /** * An optional S3 bucket to export the reports to. * @@ -144,6 +157,20 @@ public open class ReportGroup( private val cdkBuilder: software.amazon.awscdk.services.codebuild.ReportGroup.Builder = software.amazon.awscdk.services.codebuild.ReportGroup.Builder.create(scope, id) + /** + * If true, deleting the report group force deletes the contents of the report group. + * + * If false, the report group must be empty before attempting to delete it. + * + * Default: false + * + * @param deleteReports If true, deleting the report group force deletes the contents of the + * report group. + */ + override fun deleteReports(deleteReports: Boolean) { + cdkBuilder.deleteReports(deleteReports) + } + /** * An optional S3 bucket to export the reports to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroupProps.kt index 0c04672e24..9d9a8c09fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/ReportGroupProps.kt @@ -35,6 +35,15 @@ import kotlin.Unit * ``` */ public interface ReportGroupProps { + /** + * If true, deleting the report group force deletes the contents of the report group. + * + * If false, the report group must be empty before attempting to delete it. + * + * Default: false + */ + public fun deleteReports(): Boolean? = unwrap(this).getDeleteReports() + /** * An optional S3 bucket to export the reports to. * @@ -85,6 +94,13 @@ public interface ReportGroupProps { */ @CdkDslMarker public interface Builder { + /** + * @param deleteReports If true, deleting the report group force deletes the contents of the + * report group. + * If false, the report group must be empty before attempting to delete it. + */ + public fun deleteReports(deleteReports: Boolean) + /** * @param exportBucket An optional S3 bucket to export the reports to. */ @@ -121,6 +137,15 @@ public interface ReportGroupProps { private val cdkBuilder: software.amazon.awscdk.services.codebuild.ReportGroupProps.Builder = software.amazon.awscdk.services.codebuild.ReportGroupProps.builder() + /** + * @param deleteReports If true, deleting the report group force deletes the contents of the + * report group. + * If false, the report group must be empty before attempting to delete it. + */ + override fun deleteReports(deleteReports: Boolean) { + cdkBuilder.deleteReports(deleteReports) + } + /** * @param exportBucket An optional S3 bucket to export the reports to. */ @@ -168,7 +193,17 @@ public interface ReportGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.ReportGroupProps, - ) : CdkObject(cdkObject), ReportGroupProps { + ) : CdkObject(cdkObject), + ReportGroupProps { + /** + * If true, deleting the report group force deletes the contents of the report group. + * + * If false, the report group must be empty before attempting to delete it. + * + * Default: false + */ + override fun deleteReports(): Boolean? = unwrap(this).getDeleteReports() + /** * An optional S3 bucket to export the reports to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3ArtifactsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3ArtifactsProps.kt index 247d7449bf..ef96f49739 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3ArtifactsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3ArtifactsProps.kt @@ -209,7 +209,8 @@ public interface S3ArtifactsProps : ArtifactsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.S3ArtifactsProps, - ) : CdkObject(cdkObject), S3ArtifactsProps { + ) : CdkObject(cdkObject), + S3ArtifactsProps { /** * The name of the output bucket. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3LoggingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3LoggingOptions.kt index a14eecd64a..33a60d3a1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3LoggingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3LoggingOptions.kt @@ -116,7 +116,8 @@ public interface S3LoggingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.S3LoggingOptions, - ) : CdkObject(cdkObject), S3LoggingOptions { + ) : CdkObject(cdkObject), + S3LoggingOptions { /** * The S3 Bucket to send logs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3SourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3SourceProps.kt index a6153726a8..0f4919d93e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3SourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/S3SourceProps.kt @@ -107,7 +107,8 @@ public interface S3SourceProps : SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.S3SourceProps, - ) : CdkObject(cdkObject), S3SourceProps { + ) : CdkObject(cdkObject), + S3SourceProps { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Source.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Source.kt index 09b7022ea5..ee4daf9c59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Source.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/Source.kt @@ -27,7 +27,8 @@ import kotlin.jvm.JvmName */ public abstract class Source( cdkObject: software.amazon.awscdk.services.codebuild.Source, -) : CdkObject(cdkObject), ISource { +) : CdkObject(cdkObject), + ISource { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceConfig.kt index f3cbcaa329..38b4f50a49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceConfig.kt @@ -50,6 +50,9 @@ import kotlin.jvm.JvmName * // the properties below are optional * .excludeMatchedPattern(false) * .build()))) + * .scopeConfiguration(ScopeConfigurationProperty.builder() + * .name("name") + * .build()) * .webhook(false) * .build()) * .sourceVersion("sourceVersion") @@ -159,7 +162,8 @@ public interface SourceConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.SourceConfig, - ) : CdkObject(cdkObject), SourceConfig { + ) : CdkObject(cdkObject), + SourceConfig { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceProps.kt index f71f7d2f6a..aaf00161e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/SourceProps.kt @@ -59,7 +59,8 @@ public interface SourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.SourceProps, - ) : CdkObject(cdkObject), SourceProps { + ) : CdkObject(cdkObject), + SourceProps { /** * The source identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/UntrustedCodeBoundaryPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/UntrustedCodeBoundaryPolicyProps.kt index 094095dd98..f32424273f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/UntrustedCodeBoundaryPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/UntrustedCodeBoundaryPolicyProps.kt @@ -96,7 +96,8 @@ public interface UntrustedCodeBoundaryPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codebuild.UntrustedCodeBoundaryPolicyProps, - ) : CdkObject(cdkObject), UntrustedCodeBoundaryPolicyProps { + ) : CdkObject(cdkObject), + UntrustedCodeBoundaryPolicyProps { /** * Additional statements to add to the default set of statements. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsBuildImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsBuildImage.kt index 18e95d438a..e1d4f89dab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsBuildImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsBuildImage.kt @@ -44,7 +44,8 @@ import kotlin.jvm.JvmName */ public open class WindowsBuildImage( cdkObject: software.amazon.awscdk.services.codebuild.WindowsBuildImage, -) : CdkObject(cdkObject), IBuildImage { +) : CdkObject(cdkObject), + IBuildImage { /** * The default `ComputeType` to use with this image, if one was not specified in * `BuildEnvironment#computeType` explicitly. @@ -116,6 +117,9 @@ public open class WindowsBuildImage( public val WIN_SERVER_CORE_2019_BASE_3_0: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.WindowsBuildImage.WIN_SERVER_CORE_2019_BASE_3_0) + public val WIN_SERVER_CORE_2022_BASE_3_0: IBuildImage = + IBuildImage.wrap(software.amazon.awscdk.services.codebuild.WindowsBuildImage.WIN_SERVER_CORE_2022_BASE_3_0) + public val WINDOWS_BASE_2_0: IBuildImage = IBuildImage.wrap(software.amazon.awscdk.services.codebuild.WindowsBuildImage.WINDOWS_BASE_2_0) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsImageType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsImageType.kt index 8db0144c7b..10b03a8a75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsImageType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codebuild/WindowsImageType.kt @@ -7,6 +7,7 @@ public enum class WindowsImageType( ) { STANDARD(software.amazon.awscdk.services.codebuild.WindowsImageType.STANDARD), SERVER_2019(software.amazon.awscdk.services.codebuild.WindowsImageType.SERVER_2019), + SERVER_2022(software.amazon.awscdk.services.codebuild.WindowsImageType.SERVER_2022), ; public companion object { @@ -16,6 +17,8 @@ public enum class WindowsImageType( WindowsImageType.STANDARD software.amazon.awscdk.services.codebuild.WindowsImageType.SERVER_2019 -> WindowsImageType.SERVER_2019 + software.amazon.awscdk.services.codebuild.WindowsImageType.SERVER_2022 -> + WindowsImageType.SERVER_2022 } internal fun unwrap(wrapped: WindowsImageType): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepository.kt index ecfd106b30..cb27be54d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepository.kt @@ -23,6 +23,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * Creates a new, empty repository. * + * + * AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can + * continue to use the service as normal. [Learn + * more"](https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider) + * + * * Example: * * ``` @@ -63,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepository( cdkObject: software.amazon.awscdk.services.codecommit.CfnRepository, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -714,7 +722,8 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.CfnRepository.CodeProperty, - ) : CdkObject(cdkObject), CodeProperty { + ) : CdkObject(cdkObject), + CodeProperty { /** * Optional. * @@ -963,7 +972,8 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.CfnRepository.RepositoryTriggerProperty, - ) : CdkObject(cdkObject), RepositoryTriggerProperty { + ) : CdkObject(cdkObject), + RepositoryTriggerProperty { /** * The branches to be included in the trigger configuration. * @@ -1160,7 +1170,8 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.CfnRepository.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * The name of the Amazon S3 bucket that contains the ZIP file with the content that will be * committed to the new repository. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepositoryProps.kt index 4d89146843..3241cba685 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CfnRepositoryProps.kt @@ -356,7 +356,8 @@ public interface CfnRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.CfnRepositoryProps, - ) : CdkObject(cdkObject), CfnRepositoryProps { + ) : CdkObject(cdkObject), + CfnRepositoryProps { /** * Information about code to be committed to a repository after it is created in an AWS * CloudFormation stack. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CodeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CodeConfig.kt index e9c8f71959..5fb1acf4ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CodeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/CodeConfig.kt @@ -79,7 +79,8 @@ public interface CodeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.CodeConfig, - ) : CdkObject(cdkObject), CodeConfig { + ) : CdkObject(cdkObject), + CodeConfig { /** * represents the underlying code structure. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/IRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/IRepository.kt index 15b9ae0a54..8f3a05fcca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/IRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/IRepository.kt @@ -649,7 +649,8 @@ public interface IRepository : IResource, INotificationRuleSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.IRepository, - ) : CdkObject(cdkObject), IRepository { + ) : CdkObject(cdkObject), + IRepository { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/OnCommitOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/OnCommitOptions.kt index d0ee7b47d1..0c3d11af9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/OnCommitOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/OnCommitOptions.kt @@ -166,7 +166,8 @@ public interface OnCommitOptions : OnEventOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.OnCommitOptions, - ) : CdkObject(cdkObject), OnCommitOptions { + ) : CdkObject(cdkObject), + OnCommitOptions { /** * The branch to monitor. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/Repository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/Repository.kt index b8e8430fc2..df615747be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/Repository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/Repository.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Repository( cdkObject: software.amazon.awscdk.services.codecommit.Repository, -) : Resource(cdkObject), IRepository { +) : Resource(cdkObject), + IRepository { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryNotifyOnOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryNotifyOnOptions.kt index edb67ace76..e20c90a6bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryNotifyOnOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryNotifyOnOptions.kt @@ -25,6 +25,7 @@ import kotlin.collections.List * RepositoryNotifyOnOptions repositoryNotifyOnOptions = RepositoryNotifyOnOptions.builder() * .events(List.of(RepositoryNotificationEvents.COMMIT_COMMENT)) * // the properties below are optional + * .createdBy("createdBy") * .detailType(DetailType.BASIC) * .enabled(false) * .notificationRuleName("notificationRuleName") @@ -47,6 +48,12 @@ public interface RepositoryNotifyOnOptions : NotificationRuleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + public fun createdBy(createdBy: String) + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -89,6 +96,14 @@ public interface RepositoryNotifyOnOptions : NotificationRuleOptions { software.amazon.awscdk.services.codecommit.RepositoryNotifyOnOptions.Builder = software.amazon.awscdk.services.codecommit.RepositoryNotifyOnOptions.builder() + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -139,7 +154,17 @@ public interface RepositoryNotifyOnOptions : NotificationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.RepositoryNotifyOnOptions, - ) : CdkObject(cdkObject), RepositoryNotifyOnOptions { + ) : CdkObject(cdkObject), + RepositoryNotifyOnOptions { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + override fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryProps.kt index 518667e5a1..7c1a1f9129 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryProps.kt @@ -145,7 +145,8 @@ public interface RepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.RepositoryProps, - ) : CdkObject(cdkObject), RepositoryProps { + ) : CdkObject(cdkObject), + RepositoryProps { /** * The contents with which to initialize the repository after it has been created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryTriggerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryTriggerOptions.kt index c107de2e6c..55b004c71d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryTriggerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codecommit/RepositoryTriggerOptions.kt @@ -162,7 +162,8 @@ public interface RepositoryTriggerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codecommit.RepositoryTriggerOptions, - ) : CdkObject(cdkObject), RepositoryTriggerOptions { + ) : CdkObject(cdkObject), + RepositoryTriggerOptions { /** * The names of the branches in the AWS CodeCommit repository that contain events that you want * to include in the trigger. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnection.kt index 87ccc3b676..29463caaa2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnection.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnection( cdkObject: software.amazon.awscdk.services.codeconnections.CfnConnection, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnectionProps.kt index e665095eba..1748d1f175 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeconnections/CfnConnectionProps.kt @@ -143,7 +143,8 @@ public interface CfnConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeconnections.CfnConnectionProps, - ) : CdkObject(cdkObject), CfnConnectionProps { + ) : CdkObject(cdkObject), + CfnConnectionProps { /** * The name of the connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/AutoRollbackConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/AutoRollbackConfig.kt index 6f27f7466e..7d55bcfd5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/AutoRollbackConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/AutoRollbackConfig.kt @@ -53,6 +53,10 @@ import kotlin.Unit * .stoppedDeployment(true) // default: false * .deploymentInAlarm(true) * .build()) + * // whether the deployment group was configured to have CodeDeploy install a termination hook into + * an Auto Scaling group + * // default: false + * .terminationHook(true) * .build(); * ``` */ @@ -135,7 +139,8 @@ public interface AutoRollbackConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.AutoRollbackConfig, - ) : CdkObject(cdkObject), AutoRollbackConfig { + ) : CdkObject(cdkObject), + AutoRollbackConfig { /** * Whether to automatically roll back a deployment during which one of the configured CloudWatch * alarms for this Deployment Group went off. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfig.kt index 756068bf89..19d13d9751 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfig.kt @@ -13,7 +13,8 @@ import kotlin.String */ public abstract class BaseDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.BaseDeploymentConfig, -) : Resource(cdkObject), IBaseDeploymentConfig { +) : Resource(cdkObject), + IBaseDeploymentConfig { /** * The arn of the deployment config. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigOptions.kt index e45a93d432..eb4ece630f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigOptions.kt @@ -61,7 +61,8 @@ public interface BaseDeploymentConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.BaseDeploymentConfigOptions, - ) : CdkObject(cdkObject), BaseDeploymentConfigOptions { + ) : CdkObject(cdkObject), + BaseDeploymentConfigOptions { /** * The physical, human-readable name of the Deployment Configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigProps.kt index e9fb1d97a0..7c3d92f61b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseDeploymentConfigProps.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit +import kotlin.jvm.JvmName /** * Complete base deployment config properties that are required to be supplied by the implementation @@ -17,14 +18,21 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.codedeploy.*; * MinimumHealthyHosts minimumHealthyHosts; + * MinimumHealthyHostsPerZone minimumHealthyHostsPerZone; * TrafficRouting trafficRouting; * BaseDeploymentConfigProps baseDeploymentConfigProps = BaseDeploymentConfigProps.builder() * .computePlatform(ComputePlatform.SERVER) * .deploymentConfigName("deploymentConfigName") * .minimumHealthyHosts(minimumHealthyHosts) * .trafficRouting(trafficRouting) + * .zonalConfig(ZonalConfig.builder() + * .firstZoneMonitorDuration(Duration.minutes(30)) + * .minimumHealthyHostsPerZone(minimumHealthyHostsPerZone) + * .monitorDuration(Duration.minutes(30)) + * .build()) * .build(); * ``` */ @@ -56,6 +64,16 @@ public interface BaseDeploymentConfigProps : BaseDeploymentConfigOptions { public fun trafficRouting(): TrafficRouting? = unwrap(this).getTrafficRouting()?.let(TrafficRouting::wrap) + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config) + */ + public fun zonalConfig(): ZonalConfig? = unwrap(this).getZonalConfig()?.let(ZonalConfig::wrap) + /** * A builder for [BaseDeploymentConfigProps] */ @@ -84,6 +102,20 @@ public interface BaseDeploymentConfigProps : BaseDeploymentConfigOptions { * deployments. */ public fun trafficRouting(trafficRouting: TrafficRouting) + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + public fun zonalConfig(zonalConfig: ZonalConfig) + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eb7a849cfade0f91271990f34e884fc52ee6597fb27f4c8f449bcaa75fd211b7") + public fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -123,13 +155,31 @@ public interface BaseDeploymentConfigProps : BaseDeploymentConfigOptions { cdkBuilder.trafficRouting(trafficRouting.let(TrafficRouting.Companion::unwrap)) } + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + override fun zonalConfig(zonalConfig: ZonalConfig) { + cdkBuilder.zonalConfig(zonalConfig.let(ZonalConfig.Companion::unwrap)) + } + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eb7a849cfade0f91271990f34e884fc52ee6597fb27f4c8f449bcaa75fd211b7") + override fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit): Unit = + zonalConfig(ZonalConfig(zonalConfig)) + public fun build(): software.amazon.awscdk.services.codedeploy.BaseDeploymentConfigProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.BaseDeploymentConfigProps, - ) : CdkObject(cdkObject), BaseDeploymentConfigProps { + ) : CdkObject(cdkObject), + BaseDeploymentConfigProps { /** * The destination compute platform for the deployment. * @@ -163,6 +213,16 @@ public interface BaseDeploymentConfigProps : BaseDeploymentConfigOptions { */ override fun trafficRouting(): TrafficRouting? = unwrap(this).getTrafficRouting()?.let(TrafficRouting::wrap) + + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config) + */ + override fun zonalConfig(): ZonalConfig? = unwrap(this).getZonalConfig()?.let(ZonalConfig::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseTrafficShiftingConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseTrafficShiftingConfigProps.kt index 6067bfa4d0..99080c5738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseTrafficShiftingConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/BaseTrafficShiftingConfigProps.kt @@ -78,7 +78,8 @@ public interface BaseTrafficShiftingConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.BaseTrafficShiftingConfigProps, - ) : CdkObject(cdkObject), BaseTrafficShiftingConfigProps { + ) : CdkObject(cdkObject), + BaseTrafficShiftingConfigProps { /** * The amount of time between traffic shifts. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CanaryTrafficRoutingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CanaryTrafficRoutingConfig.kt index 8460f2b2a2..d0a6b98cb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CanaryTrafficRoutingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CanaryTrafficRoutingConfig.kt @@ -80,7 +80,8 @@ public interface CanaryTrafficRoutingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CanaryTrafficRoutingConfig, - ) : CdkObject(cdkObject), CanaryTrafficRoutingConfig { + ) : CdkObject(cdkObject), + CanaryTrafficRoutingConfig { /** * The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` * deployment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplication.kt index 2880a57cae..811f0030c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplication.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.codedeploy.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.CfnApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplicationProps.kt index d9395dff61..d81548fe99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnApplicationProps.kt @@ -146,7 +146,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * A name for the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfig.kt index 8d493faf0b..fbe23c435d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfig.kt @@ -65,7 +65,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -762,7 +763,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.MinimumHealthyHostsPerZoneProperty, - ) : CdkObject(cdkObject), MinimumHealthyHostsPerZoneProperty { + ) : CdkObject(cdkObject), + MinimumHealthyHostsPerZoneProperty { /** * The `type` associated with the `MinimumHealthyHostsPerZone` option. * @@ -944,7 +946,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.MinimumHealthyHostsProperty, - ) : CdkObject(cdkObject), MinimumHealthyHostsProperty { + ) : CdkObject(cdkObject), + MinimumHealthyHostsProperty { /** * The minimum healthy instance type:. * @@ -1086,7 +1089,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty, - ) : CdkObject(cdkObject), TimeBasedCanaryProperty { + ) : CdkObject(cdkObject), + TimeBasedCanaryProperty { /** * The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` * deployment. @@ -1207,7 +1211,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TimeBasedLinearProperty, - ) : CdkObject(cdkObject), TimeBasedLinearProperty { + ) : CdkObject(cdkObject), + TimeBasedLinearProperty { /** * The number of minutes between each incremental traffic shift of a `TimeBasedLinear` * deployment. @@ -1455,7 +1460,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty, - ) : CdkObject(cdkObject), TrafficRoutingConfigProperty { + ) : CdkObject(cdkObject), + TrafficRoutingConfigProperty { /** * A configuration that shifts traffic from one version of a Lambda function or ECS task set * to another in two increments. @@ -1791,7 +1797,8 @@ public open class CfnDeploymentConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.ZonalConfigProperty, - ) : CdkObject(cdkObject), ZonalConfigProperty { + ) : CdkObject(cdkObject), + ZonalConfigProperty { /** * The period of time, in seconds, that CodeDeploy must wait after completing a deployment to * the *first* Availability Zone. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfigProps.kt index 35783bb326..eafe53eb65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentConfigProps.kt @@ -475,7 +475,8 @@ public interface CfnDeploymentConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentConfigProps, - ) : CdkObject(cdkObject), CfnDeploymentConfigProps { + ) : CdkObject(cdkObject), + CfnDeploymentConfigProps { /** * The destination platform type for the deployment ( `Lambda` , `Server` , or `ECS` ). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroup.kt index f99f850427..3f38464b44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroup.kt @@ -171,7 +171,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeploymentGroup( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -2266,7 +2268,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.AlarmConfigurationProperty, - ) : CdkObject(cdkObject), AlarmConfigurationProperty { + ) : CdkObject(cdkObject), + AlarmConfigurationProperty { /** * A list of alarms configured for the deployment or deployment group. * @@ -2382,7 +2385,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.AlarmProperty, - ) : CdkObject(cdkObject), AlarmProperty { + ) : CdkObject(cdkObject), + AlarmProperty { /** * The name of the alarm. * @@ -2533,7 +2537,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.AutoRollbackConfigurationProperty, - ) : CdkObject(cdkObject), AutoRollbackConfigurationProperty { + ) : CdkObject(cdkObject), + AutoRollbackConfigurationProperty { /** * Indicates whether a defined automatic rollback configuration is currently enabled. * @@ -2792,7 +2797,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty, - ) : CdkObject(cdkObject), BlueGreenDeploymentConfigurationProperty { + ) : CdkObject(cdkObject), + BlueGreenDeploymentConfigurationProperty { /** * Information about the action to take when newly provisioned instances are ready to receive * traffic in a blue/green deployment. @@ -2953,7 +2959,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty, - ) : CdkObject(cdkObject), BlueInstanceTerminationOptionProperty { + ) : CdkObject(cdkObject), + BlueInstanceTerminationOptionProperty { /** * The action to take on instances in the original environment after a successful blue/green * deployment. @@ -3267,7 +3274,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.DeploymentProperty, - ) : CdkObject(cdkObject), DeploymentProperty { + ) : CdkObject(cdkObject), + DeploymentProperty { /** * A comment about the deployment. * @@ -3441,7 +3449,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.DeploymentReadyOptionProperty, - ) : CdkObject(cdkObject), DeploymentReadyOptionProperty { + ) : CdkObject(cdkObject), + DeploymentReadyOptionProperty { /** * Information about when to reroute traffic from an original environment to a replacement * environment in a blue/green deployment. @@ -3576,7 +3585,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.DeploymentStyleProperty, - ) : CdkObject(cdkObject), DeploymentStyleProperty { + ) : CdkObject(cdkObject), + DeploymentStyleProperty { /** * Indicates whether to route deployment traffic behind a load balancer. * @@ -3725,7 +3735,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.EC2TagFilterProperty, - ) : CdkObject(cdkObject), EC2TagFilterProperty { + ) : CdkObject(cdkObject), + EC2TagFilterProperty { /** * The tag filter key. * @@ -3879,7 +3890,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.EC2TagSetListObjectProperty, - ) : CdkObject(cdkObject), EC2TagSetListObjectProperty { + ) : CdkObject(cdkObject), + EC2TagSetListObjectProperty { /** * A list that contains other lists of Amazon EC2 instance tag groups. * @@ -4036,7 +4048,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.EC2TagSetProperty, - ) : CdkObject(cdkObject), EC2TagSetProperty { + ) : CdkObject(cdkObject), + EC2TagSetProperty { /** * The Amazon EC2 tags that are already applied to Amazon EC2 instances that you want to * include in the deployment group. @@ -4143,7 +4156,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.ECSServiceProperty, - ) : CdkObject(cdkObject), ECSServiceProperty { + ) : CdkObject(cdkObject), + ECSServiceProperty { /** * The name of the cluster that the Amazon ECS service is associated with. * @@ -4263,7 +4277,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.ELBInfoProperty, - ) : CdkObject(cdkObject), ELBInfoProperty { + ) : CdkObject(cdkObject), + ELBInfoProperty { /** * For blue/green deployments, the name of the load balancer that is used to route traffic * from original instances to replacement instances in a blue/green deployment. @@ -4386,7 +4401,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.GitHubLocationProperty, - ) : CdkObject(cdkObject), GitHubLocationProperty { + ) : CdkObject(cdkObject), + GitHubLocationProperty { /** * The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the * application revision. @@ -4491,7 +4507,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty, - ) : CdkObject(cdkObject), GreenFleetProvisioningOptionProperty { + ) : CdkObject(cdkObject), + GreenFleetProvisioningOptionProperty { /** * The method used to add instances to a replacement environment. * @@ -4821,7 +4838,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.LoadBalancerInfoProperty, - ) : CdkObject(cdkObject), LoadBalancerInfoProperty { + ) : CdkObject(cdkObject), + LoadBalancerInfoProperty { /** * An array that contains information about the load balancers to use for load balancing in a * deployment. @@ -4972,7 +4990,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.OnPremisesTagSetListObjectProperty, - ) : CdkObject(cdkObject), OnPremisesTagSetListObjectProperty { + ) : CdkObject(cdkObject), + OnPremisesTagSetListObjectProperty { /** * Information about groups of on-premises instance tags. * @@ -5132,7 +5151,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.OnPremisesTagSetProperty, - ) : CdkObject(cdkObject), OnPremisesTagSetProperty { + ) : CdkObject(cdkObject), + OnPremisesTagSetProperty { /** * A list that contains other lists of on-premises instance tag groups. * @@ -5349,7 +5369,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.RevisionLocationProperty, - ) : CdkObject(cdkObject), RevisionLocationProperty { + ) : CdkObject(cdkObject), + RevisionLocationProperty { /** * Information about the location of application artifacts stored in GitHub. * @@ -5570,7 +5591,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The name of the Amazon S3 bucket where the application revision is stored. * @@ -5754,7 +5776,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TagFilterProperty, - ) : CdkObject(cdkObject), TagFilterProperty { + ) : CdkObject(cdkObject), + TagFilterProperty { /** * The on-premises instance tag filter key. * @@ -5910,7 +5933,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupInfoProperty, - ) : CdkObject(cdkObject), TargetGroupInfoProperty { + ) : CdkObject(cdkObject), + TargetGroupInfoProperty { /** * For blue/green deployments, the name of the target group that instances in the original * environment are deregistered from, and instances in the replacement environment registered @@ -6169,7 +6193,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty, - ) : CdkObject(cdkObject), TargetGroupPairInfoProperty { + ) : CdkObject(cdkObject), + TargetGroupPairInfoProperty { /** * The path used by a load balancer to route production traffic when an Amazon ECS deployment * is complete. @@ -6297,7 +6322,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TrafficRouteProperty, - ) : CdkObject(cdkObject), TrafficRouteProperty { + ) : CdkObject(cdkObject), + TrafficRouteProperty { /** * The Amazon Resource Name (ARN) of one listener. * @@ -6436,7 +6462,8 @@ public open class CfnDeploymentGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TriggerConfigProperty, - ) : CdkObject(cdkObject), TriggerConfigProperty { + ) : CdkObject(cdkObject), + TriggerConfigProperty { /** * The event type or types that trigger notifications. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroupProps.kt index ea1c0c37ef..263b0d9e8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CfnDeploymentGroupProps.kt @@ -1358,7 +1358,8 @@ public interface CfnDeploymentGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CfnDeploymentGroupProps, - ) : CdkObject(cdkObject), CfnDeploymentGroupProps { + ) : CdkObject(cdkObject), + CfnDeploymentGroupProps { /** * Information about the Amazon CloudWatch alarms that are associated with the deployment group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfig.kt index 14853c4c15..839918c79a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfig.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CustomLambdaDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.CustomLambdaDeploymentConfig, -) : Resource(cdkObject), ILambdaDeploymentConfig { +) : Resource(cdkObject), + ILambdaDeploymentConfig { @Deprecated(message = "deprecated in CDK") public constructor( scope: CloudshiftdevConstructsConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfigProps.kt index cea850a99c..3227910444 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/CustomLambdaDeploymentConfigProps.kt @@ -166,7 +166,8 @@ public interface CustomLambdaDeploymentConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.CustomLambdaDeploymentConfigProps, - ) : CdkObject(cdkObject), CustomLambdaDeploymentConfigProps { + ) : CdkObject(cdkObject), + CustomLambdaDeploymentConfigProps { /** * (deprecated) The verbatim name of the deployment config. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplication.kt index 17e136ba64..fccead38c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplication.kt @@ -22,7 +22,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsApplication( cdkObject: software.amazon.awscdk.services.codedeploy.EcsApplication, -) : Resource(cdkObject), IEcsApplication { +) : Resource(cdkObject), + IEcsApplication { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.EcsApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplicationProps.kt index 3a999353e7..c1827167e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsApplicationProps.kt @@ -55,7 +55,8 @@ public interface EcsApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.EcsApplicationProps, - ) : CdkObject(cdkObject), EcsApplicationProps { + ) : CdkObject(cdkObject), + EcsApplicationProps { /** * The physical, human-readable name of the CodeDeploy Application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsBlueGreenDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsBlueGreenDeploymentConfig.kt index fa8c7b7b16..52450b212f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsBlueGreenDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsBlueGreenDeploymentConfig.kt @@ -314,7 +314,8 @@ public interface EcsBlueGreenDeploymentConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.EcsBlueGreenDeploymentConfig, - ) : CdkObject(cdkObject), EcsBlueGreenDeploymentConfig { + ) : CdkObject(cdkObject), + EcsBlueGreenDeploymentConfig { /** * The target group that will be associated with the 'blue' ECS task set during a blue-green * deployment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfig.kt index b2e3cc62ab..ae37820f38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfig.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.EcsDeploymentConfig, -) : BaseDeploymentConfig(cdkObject), IEcsDeploymentConfig { +) : BaseDeploymentConfig(cdkObject), + IEcsDeploymentConfig { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.EcsDeploymentConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfigProps.kt index a927b7fdeb..21a2006435 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentConfigProps.kt @@ -77,7 +77,8 @@ public interface EcsDeploymentConfigProps : BaseDeploymentConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.EcsDeploymentConfigProps, - ) : CdkObject(cdkObject), EcsDeploymentConfigProps { + ) : CdkObject(cdkObject), + EcsDeploymentConfigProps { /** * The physical, human-readable name of the Deployment Configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroup.kt index e0650657e8..60d0bcda1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroup.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsDeploymentGroup( cdkObject: software.amazon.awscdk.services.codedeploy.EcsDeploymentGroup, -) : Resource(cdkObject), IEcsDeploymentGroup { +) : Resource(cdkObject), + IEcsDeploymentGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupAttributes.kt index e4d1e4b99c..e053320281 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupAttributes.kt @@ -101,7 +101,8 @@ public interface EcsDeploymentGroupAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.EcsDeploymentGroupAttributes, - ) : CdkObject(cdkObject), EcsDeploymentGroupAttributes { + ) : CdkObject(cdkObject), + EcsDeploymentGroupAttributes { /** * The reference to the CodeDeploy ECS Application that this Deployment Group belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupProps.kt index 579427cdee..7901e275cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/EcsDeploymentGroupProps.kt @@ -325,7 +325,8 @@ public interface EcsDeploymentGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.EcsDeploymentGroupProps, - ) : CdkObject(cdkObject), EcsDeploymentGroupProps { + ) : CdkObject(cdkObject), + EcsDeploymentGroupProps { /** * The CloudWatch alarms associated with this Deployment Group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IBaseDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IBaseDeploymentConfig.kt index 67002fa383..89738afd34 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IBaseDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IBaseDeploymentConfig.kt @@ -23,7 +23,8 @@ public interface IBaseDeploymentConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IBaseDeploymentConfig, - ) : CdkObject(cdkObject), IBaseDeploymentConfig { + ) : CdkObject(cdkObject), + IBaseDeploymentConfig { /** * The ARN of the Deployment Configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsApplication.kt index c452a80ce6..9b5d143aec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsApplication.kt @@ -34,7 +34,8 @@ public interface IEcsApplication : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IEcsApplication, - ) : CdkObject(cdkObject), IEcsApplication { + ) : CdkObject(cdkObject), + IEcsApplication { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentConfig.kt index 8cd4204bd8..9cc01b4658 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentConfig.kt @@ -23,7 +23,8 @@ import kotlin.String public interface IEcsDeploymentConfig : IBaseDeploymentConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IEcsDeploymentConfig, - ) : CdkObject(cdkObject), IEcsDeploymentConfig { + ) : CdkObject(cdkObject), + IEcsDeploymentConfig { /** * The ARN of the Deployment Configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentGroup.kt index 7323de608d..07e5eb7031 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IEcsDeploymentGroup.kt @@ -37,7 +37,8 @@ public interface IEcsDeploymentGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IEcsDeploymentGroup, - ) : CdkObject(cdkObject), IEcsDeploymentGroup { + ) : CdkObject(cdkObject), + IEcsDeploymentGroup { /** * The reference to the CodeDeploy ECS Application that this Deployment Group belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaApplication.kt index b08b5c1131..9e91fa28b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaApplication.kt @@ -34,7 +34,8 @@ public interface ILambdaApplication : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ILambdaApplication, - ) : CdkObject(cdkObject), ILambdaApplication { + ) : CdkObject(cdkObject), + ILambdaApplication { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentConfig.kt index d97210ceeb..46746a75f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentConfig.kt @@ -23,7 +23,8 @@ import kotlin.String public interface ILambdaDeploymentConfig : IBaseDeploymentConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ILambdaDeploymentConfig, - ) : CdkObject(cdkObject), ILambdaDeploymentConfig { + ) : CdkObject(cdkObject), + ILambdaDeploymentConfig { /** * The ARN of the Deployment Configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentGroup.kt index 0158863331..684f7bd6a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ILambdaDeploymentGroup.kt @@ -37,7 +37,8 @@ public interface ILambdaDeploymentGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ILambdaDeploymentGroup, - ) : CdkObject(cdkObject), ILambdaDeploymentGroup { + ) : CdkObject(cdkObject), + ILambdaDeploymentGroup { /** * The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerApplication.kt index fd0c0af1fc..cb484c3738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerApplication.kt @@ -34,7 +34,8 @@ public interface IServerApplication : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IServerApplication, - ) : CdkObject(cdkObject), IServerApplication { + ) : CdkObject(cdkObject), + IServerApplication { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentConfig.kt index ea8127371b..5694450a82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentConfig.kt @@ -18,7 +18,8 @@ import kotlin.String public interface IServerDeploymentConfig : IBaseDeploymentConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IServerDeploymentConfig, - ) : CdkObject(cdkObject), IServerDeploymentConfig { + ) : CdkObject(cdkObject), + IServerDeploymentConfig { /** * The ARN of the Deployment Configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentGroup.kt index 4fcf5e1ee8..5636c6d7fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/IServerDeploymentGroup.kt @@ -51,7 +51,8 @@ public interface IServerDeploymentGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.IServerDeploymentGroup, - ) : CdkObject(cdkObject), IServerDeploymentGroup { + ) : CdkObject(cdkObject), + IServerDeploymentGroup { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/InstanceTagSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/InstanceTagSet.kt index 376c6a2337..c0d3548d85 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/InstanceTagSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/InstanceTagSet.kt @@ -56,6 +56,10 @@ import kotlin.collections.Map * .stoppedDeployment(true) // default: false * .deploymentInAlarm(true) * .build()) + * // whether the deployment group was configured to have CodeDeploy install a termination hook into + * an Auto Scaling group + * // default: false + * .terminationHook(true) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplication.kt index 1ece2ebc61..32f8ff40cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplication.kt @@ -22,7 +22,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LambdaApplication( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaApplication, -) : Resource(cdkObject), ILambdaApplication { +) : Resource(cdkObject), + ILambdaApplication { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.LambdaApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplicationProps.kt index 46a6072bfe..055f6053ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaApplicationProps.kt @@ -56,7 +56,8 @@ public interface LambdaApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaApplicationProps, - ) : CdkObject(cdkObject), LambdaApplicationProps { + ) : CdkObject(cdkObject), + LambdaApplicationProps { /** * The physical, human-readable name of the CodeDeploy Application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfig.kt index 11b8e8886d..cfb502d522 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfig.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LambdaDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfig, -) : BaseDeploymentConfig(cdkObject), ILambdaDeploymentConfig { +) : BaseDeploymentConfig(cdkObject), + ILambdaDeploymentConfig { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigImportProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigImportProps.kt index f71a6c7878..0f142203c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigImportProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigImportProps.kt @@ -63,7 +63,8 @@ public interface LambdaDeploymentConfigImportProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps, - ) : CdkObject(cdkObject), LambdaDeploymentConfigImportProps { + ) : CdkObject(cdkObject), + LambdaDeploymentConfigImportProps { /** * The physical, human-readable name of the custom CodeDeploy Lambda Deployment Configuration * that we are referencing. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigProps.kt index 94a0e83502..4b0240c4ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentConfigProps.kt @@ -85,7 +85,8 @@ public interface LambdaDeploymentConfigProps : BaseDeploymentConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigProps, - ) : CdkObject(cdkObject), LambdaDeploymentConfigProps { + ) : CdkObject(cdkObject), + LambdaDeploymentConfigProps { /** * The physical, human-readable name of the Deployment Configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroup.kt index 1e33af724a..720f22385d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroup.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LambdaDeploymentGroup( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroup, -) : Resource(cdkObject), ILambdaDeploymentGroup { +) : Resource(cdkObject), + ILambdaDeploymentGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupAttributes.kt index b2ca2340d3..870212b9a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupAttributes.kt @@ -102,7 +102,8 @@ public interface LambdaDeploymentGroupAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroupAttributes, - ) : CdkObject(cdkObject), LambdaDeploymentGroupAttributes { + ) : CdkObject(cdkObject), + LambdaDeploymentGroupAttributes { /** * The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupProps.kt index 1a25403b30..a1d99901cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LambdaDeploymentGroupProps.kt @@ -330,7 +330,8 @@ public interface LambdaDeploymentGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroupProps, - ) : CdkObject(cdkObject), LambdaDeploymentGroupProps { + ) : CdkObject(cdkObject), + LambdaDeploymentGroupProps { /** * The CloudWatch alarms associated with this Deployment Group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LinearTrafficRoutingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LinearTrafficRoutingConfig.kt index fc75b7fe1d..ec8fd37372 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LinearTrafficRoutingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/LinearTrafficRoutingConfig.kt @@ -80,7 +80,8 @@ public interface LinearTrafficRoutingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.LinearTrafficRoutingConfig, - ) : CdkObject(cdkObject), LinearTrafficRoutingConfig { + ) : CdkObject(cdkObject), + LinearTrafficRoutingConfig { /** * The number of minutes between each incremental traffic shift of a `TimeBasedLinear` * deployment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/MinimumHealthyHostsPerZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/MinimumHealthyHostsPerZone.kt new file mode 100644 index 0000000000..59de9e4d3f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/MinimumHealthyHostsPerZone.kt @@ -0,0 +1,43 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codedeploy + +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Number + +/** + * Minimum number of healthy hosts per availability zone for a server deployment. + * + * Example: + * + * ``` + * ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, + * "DeploymentConfiguration") + * .minimumHealthyHosts(MinimumHealthyHosts.count(2)) + * .zonalConfig(ZonalConfig.builder() + * .monitorDuration(Duration.minutes(30)) + * .firstZoneMonitorDuration(Duration.minutes(60)) + * .minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone.count(1)) + * .build()) + * .build(); + * ``` + */ +public open class MinimumHealthyHostsPerZone( + cdkObject: software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone, +) : CdkObject(cdkObject) { + public companion object { + public fun count(`value`: Number): MinimumHealthyHostsPerZone = + software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone.count(`value`).let(MinimumHealthyHostsPerZone::wrap) + + public fun percentage(`value`: Number): MinimumHealthyHostsPerZone = + software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone.percentage(`value`).let(MinimumHealthyHostsPerZone::wrap) + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone): + MinimumHealthyHostsPerZone = MinimumHealthyHostsPerZone(cdkObject) + + internal fun unwrap(wrapped: MinimumHealthyHostsPerZone): + software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone = wrapped.cdkObject as + software.amazon.awscdk.services.codedeploy.MinimumHealthyHostsPerZone + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplication.kt index 08683ea9eb..7bd5395013 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplication.kt @@ -22,7 +22,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ServerApplication( cdkObject: software.amazon.awscdk.services.codedeploy.ServerApplication, -) : Resource(cdkObject), IServerApplication { +) : Resource(cdkObject), + IServerApplication { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.ServerApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplicationProps.kt index a2b0fb2304..40cdda5b42 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerApplicationProps.kt @@ -56,7 +56,8 @@ public interface ServerApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ServerApplicationProps, - ) : CdkObject(cdkObject), ServerApplicationProps { + ) : CdkObject(cdkObject), + ServerApplicationProps { /** * The physical, human-readable name of the CodeDeploy Application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfig.kt index 5d89d3a139..e0eed88813 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfig.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.codedeploy import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.String import kotlin.Unit +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -14,15 +15,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, - * "CodeDeployDeploymentGroup") - * .deploymentConfig(ServerDeploymentConfig.ALL_AT_ONCE) + * ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, + * "DeploymentConfiguration") + * .deploymentConfigName("MyDeploymentConfiguration") // optional property + * // one of these is required, but both cannot be specified at the same time + * .minimumHealthyHosts(MinimumHealthyHosts.count(2)) * .build(); * ``` */ public open class ServerDeploymentConfig( cdkObject: software.amazon.awscdk.services.codedeploy.ServerDeploymentConfig, -) : BaseDeploymentConfig(cdkObject), IServerDeploymentConfig { +) : BaseDeploymentConfig(cdkObject), + IServerDeploymentConfig { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -60,6 +64,30 @@ public open class ServerDeploymentConfig( * @param minimumHealthyHosts Minimum number of healthy hosts. */ public fun minimumHealthyHosts(minimumHealthyHosts: MinimumHealthyHosts) + + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + public fun zonalConfig(zonalConfig: ZonalConfig) + + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3705e1ebbc3f8dae2c5941e11c4ec0aa14384b967b8548cf7b90bf02f9115f22") + public fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit) } private class BuilderImpl( @@ -91,6 +119,33 @@ public open class ServerDeploymentConfig( cdkBuilder.minimumHealthyHosts(minimumHealthyHosts.let(MinimumHealthyHosts.Companion::unwrap)) } + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + override fun zonalConfig(zonalConfig: ZonalConfig) { + cdkBuilder.zonalConfig(zonalConfig.let(ZonalConfig.Companion::unwrap)) + } + + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + * + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3705e1ebbc3f8dae2c5941e11c4ec0aa14384b967b8548cf7b90bf02f9115f22") + override fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit): Unit = + zonalConfig(ZonalConfig(zonalConfig)) + public fun build(): software.amazon.awscdk.services.codedeploy.ServerDeploymentConfig = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfigProps.kt index 2f8fb6cd5d..23b2c30278 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentConfigProps.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit +import kotlin.jvm.JvmName /** * Construction properties of `ServerDeploymentConfig`. @@ -28,6 +29,14 @@ public interface ServerDeploymentConfigProps : BaseDeploymentConfigOptions { */ public fun minimumHealthyHosts(): MinimumHealthyHosts + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + */ + public fun zonalConfig(): ZonalConfig? = unwrap(this).getZonalConfig()?.let(ZonalConfig::wrap) + /** * A builder for [ServerDeploymentConfigProps] */ @@ -43,6 +52,20 @@ public interface ServerDeploymentConfigProps : BaseDeploymentConfigOptions { * @param minimumHealthyHosts Minimum number of healthy hosts. */ public fun minimumHealthyHosts(minimumHealthyHosts: MinimumHealthyHosts) + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + public fun zonalConfig(zonalConfig: ZonalConfig) + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("89add2f760630fa9d78509219bf9a35f54a4cb9909e47cd9178b27e50776bf84") + public fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -65,13 +88,31 @@ public interface ServerDeploymentConfigProps : BaseDeploymentConfigOptions { cdkBuilder.minimumHealthyHosts(minimumHealthyHosts.let(MinimumHealthyHosts.Companion::unwrap)) } + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + override fun zonalConfig(zonalConfig: ZonalConfig) { + cdkBuilder.zonalConfig(zonalConfig.let(ZonalConfig.Companion::unwrap)) + } + + /** + * @param zonalConfig Configure CodeDeploy to deploy your application to one Availability Zone + * at a time within an AWS Region. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("89add2f760630fa9d78509219bf9a35f54a4cb9909e47cd9178b27e50776bf84") + override fun zonalConfig(zonalConfig: ZonalConfig.Builder.() -> Unit): Unit = + zonalConfig(ZonalConfig(zonalConfig)) + public fun build(): software.amazon.awscdk.services.codedeploy.ServerDeploymentConfigProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ServerDeploymentConfigProps, - ) : CdkObject(cdkObject), ServerDeploymentConfigProps { + ) : CdkObject(cdkObject), + ServerDeploymentConfigProps { /** * The physical, human-readable name of the Deployment Configuration. * @@ -84,6 +125,14 @@ public interface ServerDeploymentConfigProps : BaseDeploymentConfigOptions { */ override fun minimumHealthyHosts(): MinimumHealthyHosts = unwrap(this).getMinimumHealthyHosts().let(MinimumHealthyHosts::wrap) + + /** + * Configure CodeDeploy to deploy your application to one Availability Zone at a time within an + * AWS Region. + * + * Default: - deploy your application to a random selection of hosts across a Region + */ + override fun zonalConfig(): ZonalConfig? = unwrap(this).getZonalConfig()?.let(ZonalConfig::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroup.kt index 3ec40422dd..ec350d5d9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroup.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ServerDeploymentGroup( cdkObject: software.amazon.awscdk.services.codedeploy.ServerDeploymentGroup, -) : Resource(cdkObject), IServerDeploymentGroup { +) : Resource(cdkObject), + IServerDeploymentGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codedeploy.ServerDeploymentGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -325,6 +326,18 @@ public open class ServerDeploymentGroup( * @param role The service Role of this Deployment Group. */ public fun role(role: IRole) + + /** + * Indicates whether the deployment group was configured to have CodeDeploy install a + * termination hook into an Auto Scaling group. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors) + * @param terminationHook Indicates whether the deployment group was configured to have + * CodeDeploy install a termination hook into an Auto Scaling group. + */ + public fun terminationHook(terminationHook: Boolean) } private class BuilderImpl( @@ -577,6 +590,20 @@ public open class ServerDeploymentGroup( cdkBuilder.role(role.let(IRole.Companion::unwrap)) } + /** + * Indicates whether the deployment group was configured to have CodeDeploy install a + * termination hook into an Auto Scaling group. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors) + * @param terminationHook Indicates whether the deployment group was configured to have + * CodeDeploy install a termination hook into an Auto Scaling group. + */ + override fun terminationHook(terminationHook: Boolean) { + cdkBuilder.terminationHook(terminationHook) + } + public fun build(): software.amazon.awscdk.services.codedeploy.ServerDeploymentGroup = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupAttributes.kt index d460674637..a49f4f8708 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupAttributes.kt @@ -103,7 +103,8 @@ public interface ServerDeploymentGroupAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ServerDeploymentGroupAttributes, - ) : CdkObject(cdkObject), ServerDeploymentGroupAttributes { + ) : CdkObject(cdkObject), + ServerDeploymentGroupAttributes { /** * The reference to the CodeDeploy EC2/on-premise Application that this Deployment Group belongs * to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupProps.kt index 37e15aa4e7..823e2af18c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ServerDeploymentGroupProps.kt @@ -165,6 +165,16 @@ public interface ServerDeploymentGroupProps { */ public fun role(): IRole? = unwrap(this).getRole()?.let(IRole::wrap) + /** + * Indicates whether the deployment group was configured to have CodeDeploy install a termination + * hook into an Auto Scaling group. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors) + */ + public fun terminationHook(): Boolean? = unwrap(this).getTerminationHook() + /** * A builder for [ServerDeploymentGroupProps] */ @@ -296,6 +306,12 @@ public interface ServerDeploymentGroupProps { * @param role The service Role of this Deployment Group. */ public fun role(role: IRole) + + /** + * @param terminationHook Indicates whether the deployment group was configured to have + * CodeDeploy install a termination hook into an Auto Scaling group. + */ + public fun terminationHook(terminationHook: Boolean) } private class BuilderImpl : Builder { @@ -461,13 +477,22 @@ public interface ServerDeploymentGroupProps { cdkBuilder.role(role.let(IRole.Companion::unwrap)) } + /** + * @param terminationHook Indicates whether the deployment group was configured to have + * CodeDeploy install a termination hook into an Auto Scaling group. + */ + override fun terminationHook(terminationHook: Boolean) { + cdkBuilder.terminationHook(terminationHook) + } + public fun build(): software.amazon.awscdk.services.codedeploy.ServerDeploymentGroupProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.ServerDeploymentGroupProps, - ) : CdkObject(cdkObject), ServerDeploymentGroupProps { + ) : CdkObject(cdkObject), + ServerDeploymentGroupProps { /** * The CloudWatch alarms associated with this Deployment Group. * @@ -600,6 +625,16 @@ public interface ServerDeploymentGroupProps { * Default: - A new Role will be created. */ override fun role(): IRole? = unwrap(this).getRole()?.let(IRole::wrap) + + /** + * Indicates whether the deployment group was configured to have CodeDeploy install a + * termination hook into an Auto Scaling group. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors) + */ + override fun terminationHook(): Boolean? = unwrap(this).getTerminationHook() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedCanaryTrafficRoutingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedCanaryTrafficRoutingProps.kt index 11d8eae0eb..a093c0dfd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedCanaryTrafficRoutingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedCanaryTrafficRoutingProps.kt @@ -67,7 +67,8 @@ public interface TimeBasedCanaryTrafficRoutingProps : BaseTrafficShiftingConfigP private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.TimeBasedCanaryTrafficRoutingProps, - ) : CdkObject(cdkObject), TimeBasedCanaryTrafficRoutingProps { + ) : CdkObject(cdkObject), + TimeBasedCanaryTrafficRoutingProps { /** * The amount of time between traffic shifts. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedLinearTrafficRoutingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedLinearTrafficRoutingProps.kt index 977c4af14e..bdd88c48cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedLinearTrafficRoutingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TimeBasedLinearTrafficRoutingProps.kt @@ -69,7 +69,8 @@ public interface TimeBasedLinearTrafficRoutingProps : BaseTrafficShiftingConfigP private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.TimeBasedLinearTrafficRoutingProps, - ) : CdkObject(cdkObject), TimeBasedLinearTrafficRoutingProps { + ) : CdkObject(cdkObject), + TimeBasedLinearTrafficRoutingProps { /** * The amount of time between traffic shifts. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TrafficRoutingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TrafficRoutingConfig.kt index 9cfb7cd7c4..fda65d6c7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TrafficRoutingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/TrafficRoutingConfig.kt @@ -153,7 +153,8 @@ public interface TrafficRoutingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codedeploy.TrafficRoutingConfig, - ) : CdkObject(cdkObject), TrafficRoutingConfig { + ) : CdkObject(cdkObject), + TrafficRoutingConfig { /** * A configuration that shifts traffic from one version of a Lambda function or ECS task set to * another in two increments. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ZonalConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ZonalConfig.kt new file mode 100644 index 0000000000..ae0d4ac6ed --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codedeploy/ZonalConfig.kt @@ -0,0 +1,203 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.codedeploy + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Unit + +/** + * Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within + * an AWS Region. + * + * Example: + * + * ``` + * ServerDeploymentConfig deploymentConfig = ServerDeploymentConfig.Builder.create(this, + * "DeploymentConfiguration") + * .minimumHealthyHosts(MinimumHealthyHosts.count(2)) + * .zonalConfig(ZonalConfig.builder() + * .monitorDuration(Duration.minutes(30)) + * .firstZoneMonitorDuration(Duration.minutes(60)) + * .minimumHealthyHostsPerZone(MinimumHealthyHostsPerZone.count(1)) + * .build()) + * .build(); + * ``` + */ +public interface ZonalConfig { + /** + * The period of time that CodeDeploy must wait after completing a deployment to the first + * Availability Zone. + * + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + * + * Default: - the same value as `monitorDuration` + */ + public fun firstZoneMonitorDuration(): Duration? = + unwrap(this).getFirstZoneMonitorDuration()?.let(Duration::wrap) + + /** + * The number or percentage of instances that must remain available per Availability Zone during a + * deployment. + * + * This option works in conjunction with the `minimumHealthyHosts` option. + * + * Default: - 0 percent + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az) + */ + public fun minimumHealthyHostsPerZone(): MinimumHealthyHostsPerZone? = + unwrap(this).getMinimumHealthyHostsPerZone()?.let(MinimumHealthyHostsPerZone::wrap) + + /** + * The period of time that CodeDeploy must wait after completing a deployment to an Availability + * Zone. + * + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + * + * Default: - CodeDeploy starts deploying to the next Availability Zone immediately + */ + public fun monitorDuration(): Duration? = unwrap(this).getMonitorDuration()?.let(Duration::wrap) + + /** + * A builder for [ZonalConfig] + */ + @CdkDslMarker + public interface Builder { + /** + * @param firstZoneMonitorDuration The period of time that CodeDeploy must wait after completing + * a deployment to the first Availability Zone. + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + */ + public fun firstZoneMonitorDuration(firstZoneMonitorDuration: Duration) + + /** + * @param minimumHealthyHostsPerZone The number or percentage of instances that must remain + * available per Availability Zone during a deployment. + * This option works in conjunction with the `minimumHealthyHosts` option. + */ + public fun minimumHealthyHostsPerZone(minimumHealthyHostsPerZone: MinimumHealthyHostsPerZone) + + /** + * @param monitorDuration The period of time that CodeDeploy must wait after completing a + * deployment to an Availability Zone. + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + */ + public fun monitorDuration(monitorDuration: Duration) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.codedeploy.ZonalConfig.Builder = + software.amazon.awscdk.services.codedeploy.ZonalConfig.builder() + + /** + * @param firstZoneMonitorDuration The period of time that CodeDeploy must wait after completing + * a deployment to the first Availability Zone. + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + */ + override fun firstZoneMonitorDuration(firstZoneMonitorDuration: Duration) { + cdkBuilder.firstZoneMonitorDuration(firstZoneMonitorDuration.let(Duration.Companion::unwrap)) + } + + /** + * @param minimumHealthyHostsPerZone The number or percentage of instances that must remain + * available per Availability Zone during a deployment. + * This option works in conjunction with the `minimumHealthyHosts` option. + */ + override + fun minimumHealthyHostsPerZone(minimumHealthyHostsPerZone: MinimumHealthyHostsPerZone) { + cdkBuilder.minimumHealthyHostsPerZone(minimumHealthyHostsPerZone.let(MinimumHealthyHostsPerZone.Companion::unwrap)) + } + + /** + * @param monitorDuration The period of time that CodeDeploy must wait after completing a + * deployment to an Availability Zone. + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + */ + override fun monitorDuration(monitorDuration: Duration) { + cdkBuilder.monitorDuration(monitorDuration.let(Duration.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.codedeploy.ZonalConfig = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codedeploy.ZonalConfig, + ) : CdkObject(cdkObject), + ZonalConfig { + /** + * The period of time that CodeDeploy must wait after completing a deployment to the first + * Availability Zone. + * + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + * + * Default: - the same value as `monitorDuration` + */ + override fun firstZoneMonitorDuration(): Duration? = + unwrap(this).getFirstZoneMonitorDuration()?.let(Duration::wrap) + + /** + * The number or percentage of instances that must remain available per Availability Zone during + * a deployment. + * + * This option works in conjunction with the `minimumHealthyHosts` option. + * + * Default: - 0 percent + * + * [Documentation](https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az) + */ + override fun minimumHealthyHostsPerZone(): MinimumHealthyHostsPerZone? = + unwrap(this).getMinimumHealthyHostsPerZone()?.let(MinimumHealthyHostsPerZone::wrap) + + /** + * The period of time that CodeDeploy must wait after completing a deployment to an Availability + * Zone. + * + * Accepted Values: + * + * * 0 + * * Greater than or equal to 1 + * + * Default: - CodeDeploy starts deploying to the next Availability Zone immediately + */ + override fun monitorDuration(): Duration? = + unwrap(this).getMonitorDuration()?.let(Duration::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ZonalConfig { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.codedeploy.ZonalConfig): + ZonalConfig = CdkObjectWrappers.wrap(cdkObject) as? ZonalConfig ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ZonalConfig): + software.amazon.awscdk.services.codedeploy.ZonalConfig = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.codedeploy.ZonalConfig + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroup.kt index cf23688e37..90b8126d8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroup.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfilingGroup( cdkObject: software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -465,7 +467,8 @@ public open class CfnProfilingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroup.AgentPermissionsProperty, - ) : CdkObject(cdkObject), AgentPermissionsProperty { + ) : CdkObject(cdkObject), + AgentPermissionsProperty { /** * The principals for the agent permissions. * @@ -570,7 +573,8 @@ public open class CfnProfilingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroup.ChannelProperty, - ) : CdkObject(cdkObject), ChannelProperty { + ) : CdkObject(cdkObject), + ChannelProperty { /** * The channel ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroupProps.kt index 3dc94ae904..edcce9b960 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/CfnProfilingGroupProps.kt @@ -255,7 +255,8 @@ public interface CfnProfilingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroupProps, - ) : CdkObject(cdkObject), CfnProfilingGroupProps { + ) : CdkObject(cdkObject), + CfnProfilingGroupProps { /** * The agent permissions attached to this profiling group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/IProfilingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/IProfilingGroup.kt index c1667c8a84..72504eddc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/IProfilingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/IProfilingGroup.kt @@ -53,7 +53,8 @@ public interface IProfilingGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup, - ) : CdkObject(cdkObject), IProfilingGroup { + ) : CdkObject(cdkObject), + IProfilingGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroup.kt index fda98b5086..ef06ee180b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroup.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ProfilingGroup( cdkObject: software.amazon.awscdk.services.codeguruprofiler.ProfilingGroup, -) : Resource(cdkObject), IProfilingGroup { +) : Resource(cdkObject), + IProfilingGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codeguruprofiler.ProfilingGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroupProps.kt index 41b3eb33af..7a26308a6f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codeguruprofiler/ProfilingGroupProps.kt @@ -76,7 +76,8 @@ public interface ProfilingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codeguruprofiler.ProfilingGroupProps, - ) : CdkObject(cdkObject), ProfilingGroupProps { + ) : CdkObject(cdkObject), + ProfilingGroupProps { /** * The compute platform of the profiling group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociation.kt index 9d55daaef8..6c68be8c0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociation.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepositoryAssociation( cdkObject: software.amazon.awscdk.services.codegurureviewer.CfnRepositoryAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociationProps.kt index 772fe3239f..5c99490d92 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codegurureviewer/CfnRepositoryAssociationProps.kt @@ -279,7 +279,8 @@ public interface CfnRepositoryAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codegurureviewer.CfnRepositoryAssociationProps, - ) : CdkObject(cdkObject), CfnRepositoryAssociationProps { + ) : CdkObject(cdkObject), + CfnRepositoryAssociationProps { /** * The name of the bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Action.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Action.kt index d79e8ba0f5..09b0feaabb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Action.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Action.kt @@ -21,7 +21,8 @@ import kotlin.jvm.JvmName */ public abstract class Action( cdkObject: software.amazon.awscdk.services.codepipeline.Action, -) : CdkObject(cdkObject), IAction { +) : CdkObject(cdkObject), + IAction { /** * The simple properties of the Action, like its Owner, name, etc. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionArtifactBounds.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionArtifactBounds.kt index f36ab203cd..d383627e37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionArtifactBounds.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionArtifactBounds.kt @@ -117,7 +117,8 @@ public interface ActionArtifactBounds { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.ActionArtifactBounds, - ) : CdkObject(cdkObject), ActionArtifactBounds { + ) : CdkObject(cdkObject), + ActionArtifactBounds { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionBindOptions.kt index 3383df7dc6..657b0bb6b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionBindOptions.kt @@ -77,7 +77,8 @@ public interface ActionBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.ActionBindOptions, - ) : CdkObject(cdkObject), ActionBindOptions { + ) : CdkObject(cdkObject), + ActionBindOptions { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionConfig.kt index 863059c7bd..d3f6181ca7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionConfig.kt @@ -55,7 +55,8 @@ public interface ActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.ActionConfig, - ) : CdkObject(cdkObject), ActionConfig { + ) : CdkObject(cdkObject), + ActionConfig { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionProperties.kt index 3b1ed966c4..9a374a2633 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/ActionProperties.kt @@ -402,7 +402,8 @@ public interface ActionProperties { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.ActionProperties, - ) : CdkObject(cdkObject), ActionProperties { + ) : CdkObject(cdkObject), + ActionProperties { /** * The account the Action is supposed to live in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionType.kt index 9acad6c49d..5625eb7a76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionType.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomActionType( cdkObject: software.amazon.awscdk.services.codepipeline.CfnCustomActionType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -764,7 +766,8 @@ public open class CfnCustomActionType( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnCustomActionType.ArtifactDetailsProperty, - ) : CdkObject(cdkObject), ArtifactDetailsProperty { + ) : CdkObject(cdkObject), + ArtifactDetailsProperty { /** * The maximum number of artifacts allowed for the action type. * @@ -1095,7 +1098,8 @@ public open class CfnCustomActionType( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnCustomActionType.ConfigurationPropertiesProperty, - ) : CdkObject(cdkObject), ConfigurationPropertiesProperty { + ) : CdkObject(cdkObject), + ConfigurationPropertiesProperty { /** * The description of the action configuration property that is displayed to users. * @@ -1323,7 +1327,8 @@ public open class CfnCustomActionType( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnCustomActionType.SettingsProperty, - ) : CdkObject(cdkObject), SettingsProperty { + ) : CdkObject(cdkObject), + SettingsProperty { /** * The URL returned to the CodePipeline console that provides a deep link to the resources of * the external system, such as the configuration page for a CodeDeploy deployment group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionTypeProps.kt index 9b6b4e04b6..2813e48bb9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnCustomActionTypeProps.kt @@ -410,7 +410,8 @@ public interface CfnCustomActionTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnCustomActionTypeProps, - ) : CdkObject(cdkObject), CfnCustomActionTypeProps { + ) : CdkObject(cdkObject), + CfnCustomActionTypeProps { /** * The category of the custom action, such as a build action or a test action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipeline.kt index 3040042333..9206e31a99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipeline.kt @@ -68,10 +68,71 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .name("name") * // the properties below are optional + * .beforeEntry(BeforeEntryConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) * .blockers(List.of(BlockerDeclarationProperty.builder() * .name("name") * .type("type") * .build())) + * .onFailure(FailureConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .result("result") + * .build()) + * .onSuccess(SuccessConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) * .build())) * // the properties below are optional * .artifactStore(ArtifactStoreProperty.builder() @@ -153,7 +214,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipeline( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -221,11 +284,6 @@ public open class CfnPipeline( */ public open fun artifactStores(vararg `value`: Any): Unit = artifactStores(`value`.toList()) - /** - * - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * The version of the pipeline. * @@ -569,6 +627,8 @@ public open class CfnPipeline( * * The default mode is SUPERSEDED. * + * Default: - "SUPERSEDED" + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-executionmode) * @param executionMode The method that the pipeline will use to handle multiple executions. */ @@ -905,6 +965,8 @@ public open class CfnPipeline( * * The default mode is SUPERSEDED. * + * Default: - "SUPERSEDED" + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-executionmode) * @param executionMode The method that the pipeline will use to handle multiple executions. */ @@ -1660,7 +1722,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ActionDeclarationProperty, - ) : CdkObject(cdkObject), ActionDeclarationProperty { + ) : CdkObject(cdkObject), + ActionDeclarationProperty { /** * Specifies the action type and the provider of the action. * @@ -1968,7 +2031,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ActionTypeIdProperty, - ) : CdkObject(cdkObject), ActionTypeIdProperty { + ) : CdkObject(cdkObject), + ActionTypeIdProperty { /** * A category defines what kind of action can be taken in the stage, and constrains the * provider type for the action. @@ -2191,7 +2255,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ArtifactStoreMapProperty, - ) : CdkObject(cdkObject), ArtifactStoreMapProperty { + ) : CdkObject(cdkObject), + ArtifactStoreMapProperty { /** * Represents information about the S3 bucket where artifacts are stored for the pipeline. * @@ -2407,7 +2472,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ArtifactStoreProperty, - ) : CdkObject(cdkObject), ArtifactStoreProperty { + ) : CdkObject(cdkObject), + ArtifactStoreProperty { /** * The encryption key used to encrypt the data in the artifact store, such as an AWS Key * Management Service ( AWS KMS) key. @@ -2458,6 +2524,130 @@ public open class CfnPipeline( } } + /** + * The conditions for making checks for entry to a stage. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * Object configuration; + * BeforeEntryConditionsProperty beforeEntryConditionsProperty = + * BeforeEntryConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-beforeentryconditions.html) + */ + public interface BeforeEntryConditionsProperty { + /** + * The conditions that are configured as entry conditions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-beforeentryconditions.html#cfn-codepipeline-pipeline-beforeentryconditions-conditions) + */ + public fun conditions(): Any? = unwrap(this).getConditions() + + /** + * A builder for [BeforeEntryConditionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditions The conditions that are configured as entry conditions. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions The conditions that are configured as entry conditions. + */ + public fun conditions(conditions: List) + + /** + * @param conditions The conditions that are configured as entry conditions. + */ + public fun conditions(vararg conditions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty.Builder + = + software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty.builder() + + /** + * @param conditions The conditions that are configured as entry conditions. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions The conditions that are configured as entry conditions. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions The conditions that are configured as entry conditions. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + public fun build(): + software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty, + ) : CdkObject(cdkObject), + BeforeEntryConditionsProperty { + /** + * The conditions that are configured as entry conditions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-beforeentryconditions.html#cfn-codepipeline-pipeline-beforeentryconditions-conditions) + */ + override fun conditions(): Any? = unwrap(this).getConditions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): BeforeEntryConditionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty): + BeforeEntryConditionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + BeforeEntryConditionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: BeforeEntryConditionsProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.BeforeEntryConditionsProperty + } + } + /** * Reserved for future use. * @@ -2533,7 +2723,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.BlockerDeclarationProperty, - ) : CdkObject(cdkObject), BlockerDeclarationProperty { + ) : CdkObject(cdkObject), + BlockerDeclarationProperty { /** * Reserved for future use. * @@ -2567,6 +2758,159 @@ public open class CfnPipeline( } } + /** + * The condition for the stage. + * + * A condition is made up of the rules and the result for the condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * Object configuration; + * ConditionProperty conditionProperty = ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-condition.html) + */ + public interface ConditionProperty { + /** + * The action to be done when the condition is met. + * + * For example, rolling back an execution for a failure condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-condition.html#cfn-codepipeline-pipeline-condition-result) + */ + public fun result(): String? = unwrap(this).getResult() + + /** + * The rules that make up the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-condition.html#cfn-codepipeline-pipeline-condition-rules) + */ + public fun rules(): Any? = unwrap(this).getRules() + + /** + * A builder for [ConditionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param result The action to be done when the condition is met. + * For example, rolling back an execution for a failure condition. + */ + public fun result(result: String) + + /** + * @param rules The rules that make up the condition. + */ + public fun rules(rules: IResolvable) + + /** + * @param rules The rules that make up the condition. + */ + public fun rules(rules: List) + + /** + * @param rules The rules that make up the condition. + */ + public fun rules(vararg rules: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty.Builder = + software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty.builder() + + /** + * @param result The action to be done when the condition is met. + * For example, rolling back an execution for a failure condition. + */ + override fun result(result: String) { + cdkBuilder.result(result) + } + + /** + * @param rules The rules that make up the condition. + */ + override fun rules(rules: IResolvable) { + cdkBuilder.rules(rules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param rules The rules that make up the condition. + */ + override fun rules(rules: List) { + cdkBuilder.rules(rules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param rules The rules that make up the condition. + */ + override fun rules(vararg rules: Any): Unit = rules(rules.toList()) + + public fun build(): software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty, + ) : CdkObject(cdkObject), + ConditionProperty { + /** + * The action to be done when the condition is met. + * + * For example, rolling back an execution for a failure condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-condition.html#cfn-codepipeline-pipeline-condition-result) + */ + override fun result(): String? = unwrap(this).getResult() + + /** + * The rules that make up the condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-condition.html#cfn-codepipeline-pipeline-condition-rules) + */ + override fun rules(): Any? = unwrap(this).getRules() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ConditionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty): + ConditionProperty = CdkObjectWrappers.wrap(cdkObject) as? ConditionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConditionProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.ConditionProperty + } + } + /** * Represents information about the key used to encrypt data in the artifact store, such as an AWS * Key Management Service ( AWS KMS) key. @@ -2673,7 +3017,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.EncryptionKeyProperty, - ) : CdkObject(cdkObject), EncryptionKeyProperty { + ) : CdkObject(cdkObject), + EncryptionKeyProperty { /** * The ID used to identify the key. * @@ -2719,7 +3064,7 @@ public open class CfnPipeline( } /** - * The Git repository branches specified as filter criteria to start the pipeline. + * The configuration that specifies the result, such as rollback, to occur upon stage failure. * * Example: * @@ -2727,27 +3072,180 @@ public open class CfnPipeline( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.codepipeline.*; - * GitBranchFilterCriteriaProperty gitBranchFilterCriteriaProperty = - * GitBranchFilterCriteriaProperty.builder() - * .excludes(List.of("excludes")) - * .includes(List.of("includes")) + * Object configuration; + * FailureConditionsProperty failureConditionsProperty = FailureConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .result("result") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html) */ - public interface GitBranchFilterCriteriaProperty { + public interface FailureConditionsProperty { /** - * The list of patterns of Git branches that, when a commit is pushed, are to be excluded from - * starting the pipeline. + * The conditions that are configured as failure conditions. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html#cfn-codepipeline-pipeline-gitbranchfiltercriteria-excludes) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html#cfn-codepipeline-pipeline-failureconditions-conditions) */ - public fun excludes(): List = unwrap(this).getExcludes() ?: emptyList() + public fun conditions(): Any? = unwrap(this).getConditions() /** - * The list of patterns of Git branches that, when a commit is pushed, are to be included as - * criteria that starts the pipeline. + * The specified result for when the failure conditions are met, such as rolling back the stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html#cfn-codepipeline-pipeline-failureconditions-result) + */ + public fun result(): String? = unwrap(this).getResult() + + /** + * A builder for [FailureConditionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditions The conditions that are configured as failure conditions. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions The conditions that are configured as failure conditions. + */ + public fun conditions(conditions: List) + + /** + * @param conditions The conditions that are configured as failure conditions. + */ + public fun conditions(vararg conditions: Any) + + /** + * @param result The specified result for when the failure conditions are met, such as rolling + * back the stage. + */ + public fun result(result: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty.Builder + = + software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty.builder() + + /** + * @param conditions The conditions that are configured as failure conditions. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions The conditions that are configured as failure conditions. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions The conditions that are configured as failure conditions. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + /** + * @param result The specified result for when the failure conditions are met, such as rolling + * back the stage. + */ + override fun result(result: String) { + cdkBuilder.result(result) + } + + public fun build(): + software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty, + ) : CdkObject(cdkObject), + FailureConditionsProperty { + /** + * The conditions that are configured as failure conditions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html#cfn-codepipeline-pipeline-failureconditions-conditions) + */ + override fun conditions(): Any? = unwrap(this).getConditions() + + /** + * The specified result for when the failure conditions are met, such as rolling back the + * stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html#cfn-codepipeline-pipeline-failureconditions-result) + */ + override fun result(): String? = unwrap(this).getResult() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FailureConditionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty): + FailureConditionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + FailureConditionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FailureConditionsProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.FailureConditionsProperty + } + } + + /** + * The Git repository branches specified as filter criteria to start the pipeline. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * GitBranchFilterCriteriaProperty gitBranchFilterCriteriaProperty = + * GitBranchFilterCriteriaProperty.builder() + * .excludes(List.of("excludes")) + * .includes(List.of("includes")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html) + */ + public interface GitBranchFilterCriteriaProperty { + /** + * The list of patterns of Git branches that, when a commit is pushed, are to be excluded from + * starting the pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html#cfn-codepipeline-pipeline-gitbranchfiltercriteria-excludes) + */ + public fun excludes(): List = unwrap(this).getExcludes() ?: emptyList() + + /** + * The list of patterns of Git branches that, when a commit is pushed, are to be included as + * criteria that starts the pipeline. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitbranchfiltercriteria.html#cfn-codepipeline-pipeline-gitbranchfiltercriteria-includes) */ @@ -2824,7 +3322,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitBranchFilterCriteriaProperty, - ) : CdkObject(cdkObject), GitBranchFilterCriteriaProperty { + ) : CdkObject(cdkObject), + GitBranchFilterCriteriaProperty { /** * The list of patterns of Git branches that, when a commit is pushed, are to be excluded from * starting the pipeline. @@ -3059,7 +3558,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitConfigurationProperty, - ) : CdkObject(cdkObject), GitConfigurationProperty { + ) : CdkObject(cdkObject), + GitConfigurationProperty { /** * The field where the repository event that will start the pipeline is specified as pull * requests. @@ -3215,7 +3715,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitFilePathFilterCriteriaProperty, - ) : CdkObject(cdkObject), GitFilePathFilterCriteriaProperty { + ) : CdkObject(cdkObject), + GitFilePathFilterCriteriaProperty { /** * The list of patterns of Git repository file paths that, when a commit is pushed, are to be * excluded from starting the pipeline. @@ -3436,7 +3937,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitPullRequestFilterProperty, - ) : CdkObject(cdkObject), GitPullRequestFilterProperty { + ) : CdkObject(cdkObject), + GitPullRequestFilterProperty { /** * The field that specifies to filter on branches for the pull request trigger configuration. * @@ -3665,7 +4167,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitPushFilterProperty, - ) : CdkObject(cdkObject), GitPushFilterProperty { + ) : CdkObject(cdkObject), + GitPushFilterProperty { /** * The field that specifies to filter on branches for the push trigger configuration. * @@ -3814,7 +4317,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.GitTagFilterCriteriaProperty, - ) : CdkObject(cdkObject), GitTagFilterCriteriaProperty { + ) : CdkObject(cdkObject), + GitTagFilterCriteriaProperty { /** * The list of patterns of Git tags that, when pushed, are to be excluded from starting the * pipeline. @@ -3932,7 +4436,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.InputArtifactProperty, - ) : CdkObject(cdkObject), InputArtifactProperty { + ) : CdkObject(cdkObject), + InputArtifactProperty { /** * The name of the artifact to be worked on (for example, "My App"). * @@ -4042,7 +4547,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.OutputArtifactProperty, - ) : CdkObject(cdkObject), OutputArtifactProperty { + ) : CdkObject(cdkObject), + OutputArtifactProperty { /** * The name of the output of an artifact, such as "My App". * @@ -4225,7 +4731,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.PipelineTriggerDeclarationProperty, - ) : CdkObject(cdkObject), PipelineTriggerDeclarationProperty { + ) : CdkObject(cdkObject), + PipelineTriggerDeclarationProperty { /** * Provides the filter criteria and the source stage for the repository event that starts the * pipeline, such as Git tags. @@ -4263,7 +4770,10 @@ public open class CfnPipeline( } /** - * Represents information about a stage and its definition. + * Represents information about the rule to be created for an associated condition. + * + * An example would be creating a new rule for an entry condition, such as a rule that checks for + * a test result before allowing the run to enter the deployment stage. * * Example: * @@ -4272,192 +4782,938 @@ public open class CfnPipeline( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.codepipeline.*; * Object configuration; - * StageDeclarationProperty stageDeclarationProperty = StageDeclarationProperty.builder() - * .actions(List.of(ActionDeclarationProperty.builder() - * .actionTypeId(ActionTypeIdProperty.builder() - * .category("category") - * .owner("owner") - * .provider("provider") - * .version("version") - * .build()) - * .name("name") - * // the properties below are optional + * RuleDeclarationProperty ruleDeclarationProperty = RuleDeclarationProperty.builder() * .configuration(configuration) * .inputArtifacts(List.of(InputArtifactProperty.builder() * .name("name") * .build())) - * .namespace("namespace") - * .outputArtifacts(List.of(OutputArtifactProperty.builder() * .name("name") - * .build())) * .region("region") * .roleArn("roleArn") - * .runOrder(123) - * .timeoutInMinutes(123) - * .build())) - * .name("name") - * // the properties below are optional - * .blockers(List.of(BlockerDeclarationProperty.builder() - * .name("name") - * .type("type") - * .build())) + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html) */ - public interface StageDeclarationProperty { + public interface RuleDeclarationProperty { /** - * The actions included in a stage. + * The action configuration fields for the rule. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-actions) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-configuration) */ - public fun actions(): Any + public fun configuration(): Any? = unwrap(this).getConfiguration() /** - * Reserved for future use. + * The input artifacts fields for the rule, such as specifying an input file for the rule. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-blockers) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-inputartifacts) */ - public fun blockers(): Any? = unwrap(this).getBlockers() + public fun inputArtifacts(): Any? = unwrap(this).getInputArtifacts() /** - * The name of the stage. + * The name of the rule that is created for the condition, such as CheckAllResults. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-name) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-name) */ - public fun name(): String + public fun name(): String? = unwrap(this).getName() /** - * A builder for [StageDeclarationProperty] + * The Region for the condition associated with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-region) + */ + public fun region(): String? = unwrap(this).getRegion() + + /** + * The pipeline role ARN associated with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-rolearn) + */ + public fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * The ID for the rule type, which is made up of the combined values for category, owner, + * provider, and version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-ruletypeid) + */ + public fun ruleTypeId(): Any? = unwrap(this).getRuleTypeId() + + /** + * A builder for [RuleDeclarationProperty] */ @CdkDslMarker public interface Builder { /** - * @param actions The actions included in a stage. + * @param configuration The action configuration fields for the rule. */ - public fun actions(actions: IResolvable) + public fun configuration(configuration: Any) /** - * @param actions The actions included in a stage. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - public fun actions(actions: List) + public fun inputArtifacts(inputArtifacts: IResolvable) /** - * @param actions The actions included in a stage. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - public fun actions(vararg actions: Any) + public fun inputArtifacts(inputArtifacts: List) /** - * @param blockers Reserved for future use. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - public fun blockers(blockers: IResolvable) + public fun inputArtifacts(vararg inputArtifacts: Any) /** - * @param blockers Reserved for future use. + * @param name The name of the rule that is created for the condition, such as + * CheckAllResults. */ - public fun blockers(blockers: List) + public fun name(name: String) /** - * @param blockers Reserved for future use. + * @param region The Region for the condition associated with the rule. */ - public fun blockers(vararg blockers: Any) + public fun region(region: String) /** - * @param name The name of the stage. + * @param roleArn The pipeline role ARN associated with the rule. */ - public fun name(name: String) + public fun roleArn(roleArn: String) + + /** + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. + */ + public fun ruleTypeId(ruleTypeId: IResolvable) + + /** + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. + */ + public fun ruleTypeId(ruleTypeId: RuleTypeIdProperty) + + /** + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("61b2082f5015c0f123336765dcaa6a805691941bf3776ff63854afb715a827e1") + public fun ruleTypeId(ruleTypeId: RuleTypeIdProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty.Builder - = - software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty.builder() + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty.Builder = + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty.builder() /** - * @param actions The actions included in a stage. + * @param configuration The action configuration fields for the rule. */ - override fun actions(actions: IResolvable) { - cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) + override fun configuration(configuration: Any) { + cdkBuilder.configuration(configuration) } /** - * @param actions The actions included in a stage. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - override fun actions(actions: List) { - cdkBuilder.actions(actions.map{CdkObjectWrappers.unwrap(it)}) + override fun inputArtifacts(inputArtifacts: IResolvable) { + cdkBuilder.inputArtifacts(inputArtifacts.let(IResolvable.Companion::unwrap)) } /** - * @param actions The actions included in a stage. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - override fun actions(vararg actions: Any): Unit = actions(actions.toList()) + override fun inputArtifacts(inputArtifacts: List) { + cdkBuilder.inputArtifacts(inputArtifacts.map{CdkObjectWrappers.unwrap(it)}) + } /** - * @param blockers Reserved for future use. + * @param inputArtifacts The input artifacts fields for the rule, such as specifying an input + * file for the rule. */ - override fun blockers(blockers: IResolvable) { - cdkBuilder.blockers(blockers.let(IResolvable.Companion::unwrap)) + override fun inputArtifacts(vararg inputArtifacts: Any): Unit = + inputArtifacts(inputArtifacts.toList()) + + /** + * @param name The name of the rule that is created for the condition, such as + * CheckAllResults. + */ + override fun name(name: String) { + cdkBuilder.name(name) } /** - * @param blockers Reserved for future use. + * @param region The Region for the condition associated with the rule. */ - override fun blockers(blockers: List) { - cdkBuilder.blockers(blockers.map{CdkObjectWrappers.unwrap(it)}) + override fun region(region: String) { + cdkBuilder.region(region) } /** - * @param blockers Reserved for future use. + * @param roleArn The pipeline role ARN associated with the rule. */ - override fun blockers(vararg blockers: Any): Unit = blockers(blockers.toList()) + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } /** - * @param name The name of the stage. + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. */ - override fun name(name: String) { - cdkBuilder.name(name) + override fun ruleTypeId(ruleTypeId: IResolvable) { + cdkBuilder.ruleTypeId(ruleTypeId.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. + */ + override fun ruleTypeId(ruleTypeId: RuleTypeIdProperty) { + cdkBuilder.ruleTypeId(ruleTypeId.let(RuleTypeIdProperty.Companion::unwrap)) } + /** + * @param ruleTypeId The ID for the rule type, which is made up of the combined values for + * category, owner, provider, and version. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("61b2082f5015c0f123336765dcaa6a805691941bf3776ff63854afb715a827e1") + override fun ruleTypeId(ruleTypeId: RuleTypeIdProperty.Builder.() -> Unit): Unit = + ruleTypeId(RuleTypeIdProperty(ruleTypeId)) + public fun build(): - software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty = + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty, - ) : CdkObject(cdkObject), StageDeclarationProperty { + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty, + ) : CdkObject(cdkObject), + RuleDeclarationProperty { /** - * The actions included in a stage. + * The action configuration fields for the rule. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-actions) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-configuration) */ - override fun actions(): Any = unwrap(this).getActions() + override fun configuration(): Any? = unwrap(this).getConfiguration() /** - * Reserved for future use. + * The input artifacts fields for the rule, such as specifying an input file for the rule. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-blockers) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-inputartifacts) */ - override fun blockers(): Any? = unwrap(this).getBlockers() + override fun inputArtifacts(): Any? = unwrap(this).getInputArtifacts() /** - * The name of the stage. + * The name of the rule that is created for the condition, such as CheckAllResults. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-name) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-name) */ - override fun name(): String = unwrap(this).getName() - } + override fun name(): String? = unwrap(this).getName() - public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): StageDeclarationProperty { - val builderImpl = BuilderImpl() - return Wrapper(builderImpl.apply(block).build()) - } + /** + * The Region for the condition associated with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-region) + */ + override fun region(): String? = unwrap(this).getRegion() - internal - fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty): + /** + * The pipeline role ARN associated with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-rolearn) + */ + override fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * The ID for the rule type, which is made up of the combined values for category, owner, + * provider, and version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruledeclaration.html#cfn-codepipeline-pipeline-ruledeclaration-ruletypeid) + */ + override fun ruleTypeId(): Any? = unwrap(this).getRuleTypeId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleDeclarationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty): + RuleDeclarationProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleDeclarationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleDeclarationProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleDeclarationProperty + } + } + + /** + * The ID for the rule type, which is made up of the combined values for category, owner, + * provider, and version. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * RuleTypeIdProperty ruleTypeIdProperty = RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html) + */ + public interface RuleTypeIdProperty { + /** + * A category defines what kind of rule can be run in the stage, and constrains the provider + * type for the rule. + * + * The valid category is `Rule` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-category) + */ + public fun category(): String? = unwrap(this).getCategory() + + /** + * The creator of the rule being called. + * + * The valid value for the `Owner` field in the rule category is `AWS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-owner) + */ + public fun owner(): String? = unwrap(this).getOwner() + + /** + * The rule provider, such as the `DeploymentWindow` rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-provider) + */ + public fun provider(): String? = unwrap(this).getProvider() + + /** + * A string that describes the rule version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-version) + */ + public fun version(): String? = unwrap(this).getVersion() + + /** + * A builder for [RuleTypeIdProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param category A category defines what kind of rule can be run in the stage, and + * constrains the provider type for the rule. + * The valid category is `Rule` . + */ + public fun category(category: String) + + /** + * @param owner The creator of the rule being called. + * The valid value for the `Owner` field in the rule category is `AWS` . + */ + public fun owner(owner: String) + + /** + * @param provider The rule provider, such as the `DeploymentWindow` rule. + */ + public fun provider(provider: String) + + /** + * @param version A string that describes the rule version. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty.Builder = + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty.builder() + + /** + * @param category A category defines what kind of rule can be run in the stage, and + * constrains the provider type for the rule. + * The valid category is `Rule` . + */ + override fun category(category: String) { + cdkBuilder.category(category) + } + + /** + * @param owner The creator of the rule being called. + * The valid value for the `Owner` field in the rule category is `AWS` . + */ + override fun owner(owner: String) { + cdkBuilder.owner(owner) + } + + /** + * @param provider The rule provider, such as the `DeploymentWindow` rule. + */ + override fun provider(provider: String) { + cdkBuilder.provider(provider) + } + + /** + * @param version A string that describes the rule version. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty, + ) : CdkObject(cdkObject), + RuleTypeIdProperty { + /** + * A category defines what kind of rule can be run in the stage, and constrains the provider + * type for the rule. + * + * The valid category is `Rule` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-category) + */ + override fun category(): String? = unwrap(this).getCategory() + + /** + * The creator of the rule being called. + * + * The valid value for the `Owner` field in the rule category is `AWS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-owner) + */ + override fun owner(): String? = unwrap(this).getOwner() + + /** + * The rule provider, such as the `DeploymentWindow` rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-provider) + */ + override fun provider(): String? = unwrap(this).getProvider() + + /** + * A string that describes the rule version. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-ruletypeid.html#cfn-codepipeline-pipeline-ruletypeid-version) + */ + override fun version(): String? = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleTypeIdProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty): + RuleTypeIdProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleTypeIdProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleTypeIdProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.RuleTypeIdProperty + } + } + + /** + * Represents information about a stage and its definition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * Object configuration; + * StageDeclarationProperty stageDeclarationProperty = StageDeclarationProperty.builder() + * .actions(List.of(ActionDeclarationProperty.builder() + * .actionTypeId(ActionTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .name("name") + * // the properties below are optional + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .namespace("namespace") + * .outputArtifacts(List.of(OutputArtifactProperty.builder() + * .name("name") + * .build())) + * .region("region") + * .roleArn("roleArn") + * .runOrder(123) + * .timeoutInMinutes(123) + * .build())) + * .name("name") + * // the properties below are optional + * .beforeEntry(BeforeEntryConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) + * .blockers(List.of(BlockerDeclarationProperty.builder() + * .name("name") + * .type("type") + * .build())) + * .onFailure(FailureConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .result("result") + * .build()) + * .onSuccess(SuccessConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html) + */ + public interface StageDeclarationProperty { + /** + * The actions included in a stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-actions) + */ + public fun actions(): Any + + /** + * The method to use when a stage allows entry. + * + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-beforeentry) + */ + public fun beforeEntry(): Any? = unwrap(this).getBeforeEntry() + + /** + * Reserved for future use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-blockers) + */ + public fun blockers(): Any? = unwrap(this).getBlockers() + + /** + * The name of the stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-name) + */ + public fun name(): String + + /** + * The method to use when a stage has not completed successfully. + * + * For example, configuring this field for rollback will roll back a failed stage automatically + * to the last successful pipeline execution in the stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-onfailure) + */ + public fun onFailure(): Any? = unwrap(this).getOnFailure() + + /** + * The method to use when a stage has succeeded. + * + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-onsuccess) + */ + public fun onSuccess(): Any? = unwrap(this).getOnSuccess() + + /** + * A builder for [StageDeclarationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actions The actions included in a stage. + */ + public fun actions(actions: IResolvable) + + /** + * @param actions The actions included in a stage. + */ + public fun actions(actions: List) + + /** + * @param actions The actions included in a stage. + */ + public fun actions(vararg actions: Any) + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + public fun beforeEntry(beforeEntry: IResolvable) + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + public fun beforeEntry(beforeEntry: BeforeEntryConditionsProperty) + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8dbb1eab7fd97554a551465e01e2d90a907e6441fabdefbb53d7df95a84480be") + public fun beforeEntry(beforeEntry: BeforeEntryConditionsProperty.Builder.() -> Unit) + + /** + * @param blockers Reserved for future use. + */ + public fun blockers(blockers: IResolvable) + + /** + * @param blockers Reserved for future use. + */ + public fun blockers(blockers: List) + + /** + * @param blockers Reserved for future use. + */ + public fun blockers(vararg blockers: Any) + + /** + * @param name The name of the stage. + */ + public fun name(name: String) + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + public fun onFailure(onFailure: IResolvable) + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + public fun onFailure(onFailure: FailureConditionsProperty) + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c6e0dbf179ccee8d0ab2dabb47f8a736d9ad278bda6cb08974dc4dccb574cb9") + public fun onFailure(onFailure: FailureConditionsProperty.Builder.() -> Unit) + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + public fun onSuccess(onSuccess: IResolvable) + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + public fun onSuccess(onSuccess: SuccessConditionsProperty) + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b06be9ab8f13ba274fdd172a8d20effc92949b4f771014843c72951c2342466b") + public fun onSuccess(onSuccess: SuccessConditionsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty.Builder + = + software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty.builder() + + /** + * @param actions The actions included in a stage. + */ + override fun actions(actions: IResolvable) { + cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param actions The actions included in a stage. + */ + override fun actions(actions: List) { + cdkBuilder.actions(actions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param actions The actions included in a stage. + */ + override fun actions(vararg actions: Any): Unit = actions(actions.toList()) + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + override fun beforeEntry(beforeEntry: IResolvable) { + cdkBuilder.beforeEntry(beforeEntry.let(IResolvable.Companion::unwrap)) + } + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + override fun beforeEntry(beforeEntry: BeforeEntryConditionsProperty) { + cdkBuilder.beforeEntry(beforeEntry.let(BeforeEntryConditionsProperty.Companion::unwrap)) + } + + /** + * @param beforeEntry The method to use when a stage allows entry. + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8dbb1eab7fd97554a551465e01e2d90a907e6441fabdefbb53d7df95a84480be") + override fun beforeEntry(beforeEntry: BeforeEntryConditionsProperty.Builder.() -> Unit): Unit + = beforeEntry(BeforeEntryConditionsProperty(beforeEntry)) + + /** + * @param blockers Reserved for future use. + */ + override fun blockers(blockers: IResolvable) { + cdkBuilder.blockers(blockers.let(IResolvable.Companion::unwrap)) + } + + /** + * @param blockers Reserved for future use. + */ + override fun blockers(blockers: List) { + cdkBuilder.blockers(blockers.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param blockers Reserved for future use. + */ + override fun blockers(vararg blockers: Any): Unit = blockers(blockers.toList()) + + /** + * @param name The name of the stage. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + override fun onFailure(onFailure: IResolvable) { + cdkBuilder.onFailure(onFailure.let(IResolvable.Companion::unwrap)) + } + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + override fun onFailure(onFailure: FailureConditionsProperty) { + cdkBuilder.onFailure(onFailure.let(FailureConditionsProperty.Companion::unwrap)) + } + + /** + * @param onFailure The method to use when a stage has not completed successfully. + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c6e0dbf179ccee8d0ab2dabb47f8a736d9ad278bda6cb08974dc4dccb574cb9") + override fun onFailure(onFailure: FailureConditionsProperty.Builder.() -> Unit): Unit = + onFailure(FailureConditionsProperty(onFailure)) + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + override fun onSuccess(onSuccess: IResolvable) { + cdkBuilder.onSuccess(onSuccess.let(IResolvable.Companion::unwrap)) + } + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + override fun onSuccess(onSuccess: SuccessConditionsProperty) { + cdkBuilder.onSuccess(onSuccess.let(SuccessConditionsProperty.Companion::unwrap)) + } + + /** + * @param onSuccess The method to use when a stage has succeeded. + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b06be9ab8f13ba274fdd172a8d20effc92949b4f771014843c72951c2342466b") + override fun onSuccess(onSuccess: SuccessConditionsProperty.Builder.() -> Unit): Unit = + onSuccess(SuccessConditionsProperty(onSuccess)) + + public fun build(): + software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty, + ) : CdkObject(cdkObject), + StageDeclarationProperty { + /** + * The actions included in a stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-actions) + */ + override fun actions(): Any = unwrap(this).getActions() + + /** + * The method to use when a stage allows entry. + * + * For example, configuring this field for conditions will allow entry to the stage when the + * conditions are met. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-beforeentry) + */ + override fun beforeEntry(): Any? = unwrap(this).getBeforeEntry() + + /** + * Reserved for future use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-blockers) + */ + override fun blockers(): Any? = unwrap(this).getBlockers() + + /** + * The name of the stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The method to use when a stage has not completed successfully. + * + * For example, configuring this field for rollback will roll back a failed stage + * automatically to the last successful pipeline execution in the stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-onfailure) + */ + override fun onFailure(): Any? = unwrap(this).getOnFailure() + + /** + * The method to use when a stage has succeeded. + * + * For example, configuring this field for conditions will allow the stage to succeed when the + * conditions are met. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stagedeclaration.html#cfn-codepipeline-pipeline-stagedeclaration-onsuccess) + */ + override fun onSuccess(): Any? = unwrap(this).getOnSuccess() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StageDeclarationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty): StageDeclarationProperty = CdkObjectWrappers.wrap(cdkObject) as? StageDeclarationProperty ?: Wrapper(cdkObject) @@ -4553,7 +5809,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.StageTransitionProperty, - ) : CdkObject(cdkObject), StageTransitionProperty { + ) : CdkObject(cdkObject), + StageTransitionProperty { /** * The reason given to the user that a stage is disabled, such as waiting for manual approval * or manual tests. @@ -4591,6 +5848,129 @@ public open class CfnPipeline( } } + /** + * The conditions for making checks that, if met, succeed a stage. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.codepipeline.*; + * Object configuration; + * SuccessConditionsProperty successConditionsProperty = SuccessConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-successconditions.html) + */ + public interface SuccessConditionsProperty { + /** + * The conditions that are success conditions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-successconditions.html#cfn-codepipeline-pipeline-successconditions-conditions) + */ + public fun conditions(): Any? = unwrap(this).getConditions() + + /** + * A builder for [SuccessConditionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditions The conditions that are success conditions. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions The conditions that are success conditions. + */ + public fun conditions(conditions: List) + + /** + * @param conditions The conditions that are success conditions. + */ + public fun conditions(vararg conditions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty.Builder + = + software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty.builder() + + /** + * @param conditions The conditions that are success conditions. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions The conditions that are success conditions. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions The conditions that are success conditions. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + public fun build(): + software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty, + ) : CdkObject(cdkObject), + SuccessConditionsProperty { + /** + * The conditions that are success conditions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-successconditions.html#cfn-codepipeline-pipeline-successconditions-conditions) + */ + override fun conditions(): Any? = unwrap(this).getConditions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SuccessConditionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty): + SuccessConditionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SuccessConditionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SuccessConditionsProperty): + software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.codepipeline.CfnPipeline.SuccessConditionsProperty + } + } + /** * A variable declared at the pipeline level. * @@ -4694,7 +6074,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipeline.VariableDeclarationProperty, - ) : CdkObject(cdkObject), VariableDeclarationProperty { + ) : CdkObject(cdkObject), + VariableDeclarationProperty { /** * The value of a pipeline-level variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipelineProps.kt index 36105d35f3..bdbb21df34 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnPipelineProps.kt @@ -51,10 +51,71 @@ import kotlin.jvm.JvmName * .build())) * .name("name") * // the properties below are optional + * .beforeEntry(BeforeEntryConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) * .blockers(List.of(BlockerDeclarationProperty.builder() * .name("name") * .type("type") * .build())) + * .onFailure(FailureConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .result("result") + * .build()) + * .onSuccess(SuccessConditionsProperty.builder() + * .conditions(List.of(ConditionProperty.builder() + * .result("result") + * .rules(List.of(RuleDeclarationProperty.builder() + * .configuration(configuration) + * .inputArtifacts(List.of(InputArtifactProperty.builder() + * .name("name") + * .build())) + * .name("name") + * .region("region") + * .roleArn("roleArn") + * .ruleTypeId(RuleTypeIdProperty.builder() + * .category("category") + * .owner("owner") + * .provider("provider") + * .version("version") + * .build()) + * .build())) + * .build())) + * .build()) * .build())) * // the properties below are optional * .artifactStore(ArtifactStoreProperty.builder() @@ -175,6 +236,8 @@ public interface CfnPipelineProps { * * The default mode is SUPERSEDED. * + * Default: - "SUPERSEDED" + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-executionmode) */ public fun executionMode(): String? = unwrap(this).getExecutionMode() @@ -734,7 +797,8 @@ public interface CfnPipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnPipelineProps, - ) : CdkObject(cdkObject), CfnPipelineProps { + ) : CdkObject(cdkObject), + CfnPipelineProps { /** * The S3 bucket where artifacts for the pipeline are stored. * @@ -775,6 +839,8 @@ public interface CfnPipelineProps { * * The default mode is SUPERSEDED. * + * Default: - "SUPERSEDED" + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-executionmode) */ override fun executionMode(): String? = unwrap(this).getExecutionMode() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhook.kt index 123bb41104..9f7d313add 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhook.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebhook( cdkObject: software.amazon.awscdk.services.codepipeline.CfnWebhook, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -249,6 +250,16 @@ public open class CfnWebhook( /** * Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on * the GitHub Developer website. @@ -410,6 +421,16 @@ public open class CfnWebhook( /** * Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on * the GitHub Developer website. @@ -638,9 +659,18 @@ public open class CfnWebhook( public fun allowedIpRange(): String? = unwrap(this).getAllowedIpRange() /** - * The property used to configure GitHub authentication. + * The property used to configure GitHub authentication. For GITHUB_HMAC, only the `SecretToken` + * property must be set. + * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. * - * For GITHUB_HMAC, only the `SecretToken` property must be set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html#cfn-codepipeline-webhook-webhookauthconfiguration-secrettoken) */ @@ -660,8 +690,16 @@ public open class CfnWebhook( public fun allowedIpRange(allowedIpRange: String) /** - * @param secretToken The property used to configure GitHub authentication. - * For GITHUB_HMAC, only the `SecretToken` property must be set. + * @param secretToken The property used to configure GitHub authentication. For GITHUB_HMAC, + * only the `SecretToken` property must be set. + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same + * secret token across multiple webhooks. For optimal security, generate a unique secret token + * for each webhook you create. The secret token is an arbitrary string that you provide, which + * GitHub uses to compute and sign the webhook payloads sent to CodePipeline, for protecting the + * integrity and authenticity of the webhook payloads. Using your own credentials or reusing the + * same token across multiple webhooks can lead to security vulnerabilities. > If a secret + * token was provided, it will be redacted in the response. */ public fun secretToken(secretToken: String) } @@ -683,8 +721,16 @@ public open class CfnWebhook( } /** - * @param secretToken The property used to configure GitHub authentication. - * For GITHUB_HMAC, only the `SecretToken` property must be set. + * @param secretToken The property used to configure GitHub authentication. For GITHUB_HMAC, + * only the `SecretToken` property must be set. + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same + * secret token across multiple webhooks. For optimal security, generate a unique secret token + * for each webhook you create. The secret token is an arbitrary string that you provide, which + * GitHub uses to compute and sign the webhook payloads sent to CodePipeline, for protecting the + * integrity and authenticity of the webhook payloads. Using your own credentials or reusing the + * same token across multiple webhooks can lead to security vulnerabilities. > If a secret + * token was provided, it will be redacted in the response. */ override fun secretToken(secretToken: String) { cdkBuilder.secretToken(secretToken) @@ -697,7 +743,8 @@ public open class CfnWebhook( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnWebhook.WebhookAuthConfigurationProperty, - ) : CdkObject(cdkObject), WebhookAuthConfigurationProperty { + ) : CdkObject(cdkObject), + WebhookAuthConfigurationProperty { /** * The property used to configure acceptance of webhooks in an IP address range. * @@ -709,9 +756,18 @@ public open class CfnWebhook( override fun allowedIpRange(): String? = unwrap(this).getAllowedIpRange() /** - * The property used to configure GitHub authentication. + * The property used to configure GitHub authentication. For GITHUB_HMAC, only the + * `SecretToken` property must be set. + * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same + * secret token across multiple webhooks. For optimal security, generate a unique secret token + * for each webhook you create. The secret token is an arbitrary string that you provide, which + * GitHub uses to compute and sign the webhook payloads sent to CodePipeline, for protecting the + * integrity and authenticity of the webhook payloads. Using your own credentials or reusing the + * same token across multiple webhooks can lead to security vulnerabilities. > If a secret + * token was provided, it will be redacted in the response. * - * For GITHUB_HMAC, only the `SecretToken` property must be set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html#cfn-codepipeline-webhook-webhookauthconfiguration-secrettoken) */ @@ -852,7 +908,8 @@ public open class CfnWebhook( private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnWebhook.WebhookFilterRuleProperty, - ) : CdkObject(cdkObject), WebhookFilterRuleProperty { + ) : CdkObject(cdkObject), + WebhookFilterRuleProperty { /** * A JsonPath expression that is applied to the body/payload of the webhook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhookProps.kt index a3418e60cb..1cc7fd6e0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CfnWebhookProps.kt @@ -49,6 +49,16 @@ public interface CfnWebhookProps { /** * Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses to + * compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token across + * multiple webhooks can lead to security vulnerabilities. > If a secret token was provided, it + * will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on the * GitHub Developer website. @@ -132,6 +142,16 @@ public interface CfnWebhookProps { public interface Builder { /** * @param authentication Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on * the GitHub Developer website. @@ -240,6 +260,16 @@ public interface CfnWebhookProps { /** * @param authentication Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on * the GitHub Developer website. @@ -371,10 +401,21 @@ public interface CfnWebhookProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CfnWebhookProps, - ) : CdkObject(cdkObject), CfnWebhookProps { + ) : CdkObject(cdkObject), + CfnWebhookProps { /** * Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. * + * + * When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret + * token across multiple webhooks. For optimal security, generate a unique secret token for each + * webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses + * to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and + * authenticity of the webhook payloads. Using your own credentials or reusing the same token + * across multiple webhooks can lead to security vulnerabilities. > If a secret token was + * provided, it will be redacted in the response. + * + * * * For information about the authentication scheme implemented by GITHUB_HMAC, see [Securing * your webhooks](https://docs.aws.amazon.com/https://developer.github.com/webhooks/securing/) on * the GitHub Developer website. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonActionProps.kt index 4aba5f85a3..ed6cbbf655 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonActionProps.kt @@ -112,7 +112,8 @@ public interface CommonActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CommonActionProps, - ) : CdkObject(cdkObject), CommonActionProps { + ) : CdkObject(cdkObject), + CommonActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonAwsActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonAwsActionProps.kt index 0d440a1d32..544d8b0095 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonAwsActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CommonAwsActionProps.kt @@ -126,7 +126,8 @@ public interface CommonAwsActionProps : CommonActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CommonAwsActionProps, - ) : CdkObject(cdkObject), CommonAwsActionProps { + ) : CdkObject(cdkObject), + CommonAwsActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CrossRegionSupport.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CrossRegionSupport.kt index 8ae6426c2d..a367e0b4b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CrossRegionSupport.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CrossRegionSupport.kt @@ -90,7 +90,8 @@ public interface CrossRegionSupport { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CrossRegionSupport, - ) : CdkObject(cdkObject), CrossRegionSupport { + ) : CdkObject(cdkObject), + CrossRegionSupport { /** * The replication Bucket used by CodePipeline to operate in this region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionProperty.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionProperty.kt index 4856a683dd..fc4a3e28a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionProperty.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionProperty.kt @@ -189,7 +189,8 @@ public interface CustomActionProperty { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CustomActionProperty, - ) : CdkObject(cdkObject), CustomActionProperty { + ) : CdkObject(cdkObject), + CustomActionProperty { /** * The description of the property. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionRegistrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionRegistrationProps.kt index 3578e28643..ee66d855e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionRegistrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/CustomActionRegistrationProps.kt @@ -221,7 +221,8 @@ public interface CustomActionRegistrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.CustomActionRegistrationProps, - ) : CdkObject(cdkObject), CustomActionRegistrationProps { + ) : CdkObject(cdkObject), + CustomActionRegistrationProps { /** * The properties used for customizing the instance of your Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitConfiguration.kt index 2d58bad0e3..1c594ef195 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitConfiguration.kt @@ -184,7 +184,8 @@ public interface GitConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.GitConfiguration, - ) : CdkObject(cdkObject), GitConfiguration { + ) : CdkObject(cdkObject), + GitConfiguration { /** * The field where the repository event that will start the pipeline is specified as pull * requests. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPullRequestFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPullRequestFilter.kt index 5d165b5c17..bc3fa69ef8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPullRequestFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPullRequestFilter.kt @@ -304,7 +304,8 @@ public interface GitPullRequestFilter { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.GitPullRequestFilter, - ) : CdkObject(cdkObject), GitPullRequestFilter { + ) : CdkObject(cdkObject), + GitPullRequestFilter { /** * The list of patterns of Git branches that, when pull request events occurs, are to be * excluded from starting the pipeline. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPushFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPushFilter.kt index 551dd2b634..78f53f3773 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPushFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/GitPushFilter.kt @@ -153,7 +153,8 @@ public interface GitPushFilter { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.GitPushFilter, - ) : CdkObject(cdkObject), GitPushFilter { + ) : CdkObject(cdkObject), + GitPushFilter { /** * The list of patterns of Git tags that, when pushed, are to be excluded from starting the * pipeline. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IAction.kt index 82722f496d..292ad1bb05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IAction.kt @@ -105,7 +105,8 @@ public interface IAction { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.IAction, - ) : CdkObject(cdkObject), IAction { + ) : CdkObject(cdkObject), + IAction { /** * The simple properties of the Action, like its Owner, name, etc. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IPipeline.kt index b499457db6..eb31f5ad21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IPipeline.kt @@ -311,7 +311,8 @@ public interface IPipeline : IResource, INotificationRuleSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.IPipeline, - ) : CdkObject(cdkObject), IPipeline { + ) : CdkObject(cdkObject), + IPipeline { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IStage.kt index 56c8773304..b880cbe5d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/IStage.kt @@ -76,7 +76,8 @@ public interface IStage { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.IStage, - ) : CdkObject(cdkObject), IStage { + ) : CdkObject(cdkObject), + IStage { /** * The actions belonging to this stage. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Pipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Pipeline.kt index 0f2d12121c..cdf975c459 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Pipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/Pipeline.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Pipeline( cdkObject: software.amazon.awscdk.services.codepipeline.Pipeline, -) : Resource(cdkObject), IPipeline { +) : Resource(cdkObject), + IPipeline { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.codepipeline.Pipeline(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineNotifyOnOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineNotifyOnOptions.kt index e86caa0591..8d2dbe74be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineNotifyOnOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineNotifyOnOptions.kt @@ -25,6 +25,7 @@ import kotlin.collections.List * PipelineNotifyOnOptions pipelineNotifyOnOptions = PipelineNotifyOnOptions.builder() * .events(List.of(PipelineNotificationEvents.PIPELINE_EXECUTION_FAILED)) * // the properties below are optional + * .createdBy("createdBy") * .detailType(DetailType.BASIC) * .enabled(false) * .notificationRuleName("notificationRuleName") @@ -47,6 +48,12 @@ public interface PipelineNotifyOnOptions : NotificationRuleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + public fun createdBy(createdBy: String) + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -89,6 +96,14 @@ public interface PipelineNotifyOnOptions : NotificationRuleOptions { software.amazon.awscdk.services.codepipeline.PipelineNotifyOnOptions.Builder = software.amazon.awscdk.services.codepipeline.PipelineNotifyOnOptions.builder() + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -139,7 +154,17 @@ public interface PipelineNotifyOnOptions : NotificationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.PipelineNotifyOnOptions, - ) : CdkObject(cdkObject), PipelineNotifyOnOptions { + ) : CdkObject(cdkObject), + PipelineNotifyOnOptions { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + override fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineProps.kt index ce9280eeb2..e45ae1c310 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/PipelineProps.kt @@ -452,7 +452,8 @@ public interface PipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.PipelineProps, - ) : CdkObject(cdkObject), PipelineProps { + ) : CdkObject(cdkObject), + PipelineProps { /** * The S3 bucket used by this Pipeline to store artifacts. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageOptions.kt index 397f5f20db..bde827f792 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageOptions.kt @@ -147,7 +147,8 @@ public interface StageOptions : StageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.StageOptions, - ) : CdkObject(cdkObject), StageOptions { + ) : CdkObject(cdkObject), + StageOptions { /** * The list of Actions to create this Stage with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StagePlacement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StagePlacement.kt index f8134d1136..e116608cae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StagePlacement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StagePlacement.kt @@ -89,7 +89,8 @@ public interface StagePlacement { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.StagePlacement, - ) : CdkObject(cdkObject), StagePlacement { + ) : CdkObject(cdkObject), + StagePlacement { /** * Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it * had one). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageProps.kt index 6f4493b75c..cc9faf0f4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/StageProps.kt @@ -140,7 +140,8 @@ public interface StageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.StageProps, - ) : CdkObject(cdkObject), StageProps { + ) : CdkObject(cdkObject), + StageProps { /** * The list of Actions to create this Stage with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/TriggerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/TriggerProps.kt index a12ec0b16e..23313e4ff2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/TriggerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/TriggerProps.kt @@ -105,7 +105,8 @@ public interface TriggerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.TriggerProps, - ) : CdkObject(cdkObject), TriggerProps { + ) : CdkObject(cdkObject), + TriggerProps { /** * Provides the filter criteria and the source stage for the repository event that starts the * pipeline, such as Git tags. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/VariableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/VariableProps.kt index 0c5a6b06e5..43ea95a34a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/VariableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/VariableProps.kt @@ -122,7 +122,8 @@ public interface VariableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.VariableProps, - ) : CdkObject(cdkObject), VariableProps { + ) : CdkObject(cdkObject), + VariableProps { /** * The default value of a pipeline-level variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/AlexaSkillDeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/AlexaSkillDeployActionProps.kt index 7343805946..ed8ef0ef81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/AlexaSkillDeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/AlexaSkillDeployActionProps.kt @@ -201,7 +201,8 @@ public interface AlexaSkillDeployActionProps : CommonActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.AlexaSkillDeployActionProps, - ) : CdkObject(cdkObject), AlexaSkillDeployActionProps { + ) : CdkObject(cdkObject), + AlexaSkillDeployActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/BaseJenkinsProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/BaseJenkinsProvider.kt index 19e75eca5d..63b0132260 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/BaseJenkinsProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/BaseJenkinsProvider.kt @@ -12,7 +12,8 @@ import kotlin.String */ public abstract class BaseJenkinsProvider( cdkObject: software.amazon.awscdk.services.codepipeline.actions.BaseJenkinsProvider, -) : Construct(cdkObject), IJenkinsProvider { +) : Construct(cdkObject), + IJenkinsProvider { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateReplaceChangeSetActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateReplaceChangeSetActionProps.kt index 183ce85037..e7229fdc03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateReplaceChangeSetActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateReplaceChangeSetActionProps.kt @@ -663,7 +663,8 @@ public interface CloudFormationCreateReplaceChangeSetActionProps : CommonAwsActi private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationCreateReplaceChangeSetActionProps, - ) : CdkObject(cdkObject), CloudFormationCreateReplaceChangeSetActionProps { + ) : CdkObject(cdkObject), + CloudFormationCreateReplaceChangeSetActionProps { /** * The AWS account this Action is supposed to operate in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateUpdateStackActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateUpdateStackActionProps.kt index 16d8131fd1..ed7d9083bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateUpdateStackActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationCreateUpdateStackActionProps.kt @@ -662,7 +662,8 @@ public interface CloudFormationCreateUpdateStackActionProps : CommonAwsActionPro private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationCreateUpdateStackActionProps, - ) : CdkObject(cdkObject), CloudFormationCreateUpdateStackActionProps { + ) : CdkObject(cdkObject), + CloudFormationCreateUpdateStackActionProps { /** * The AWS account this Action is supposed to operate in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeleteStackActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeleteStackActionProps.kt index 35531127b6..73c36fec75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeleteStackActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeleteStackActionProps.kt @@ -617,7 +617,8 @@ public interface CloudFormationDeleteStackActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationDeleteStackActionProps, - ) : CdkObject(cdkObject), CloudFormationDeleteStackActionProps { + ) : CdkObject(cdkObject), + CloudFormationDeleteStackActionProps { /** * The AWS account this Action is supposed to operate in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackInstancesActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackInstancesActionProps.kt index 4fd379b955..4fa5f4c9de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackInstancesActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackInstancesActionProps.kt @@ -264,7 +264,8 @@ public interface CloudFormationDeployStackInstancesActionProps : CommonAwsAction private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationDeployStackInstancesActionProps, - ) : CdkObject(cdkObject), CloudFormationDeployStackInstancesActionProps { + ) : CdkObject(cdkObject), + CloudFormationDeployStackInstancesActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackSetActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackSetActionProps.kt index a8a1a214e5..782e2cb90e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackSetActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationDeployStackSetActionProps.kt @@ -442,7 +442,8 @@ public interface CloudFormationDeployStackSetActionProps : CommonAwsActionProps, private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationDeployStackSetActionProps, - ) : CdkObject(cdkObject), CloudFormationDeployStackSetActionProps { + ) : CdkObject(cdkObject), + CloudFormationDeployStackSetActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationExecuteChangeSetActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationExecuteChangeSetActionProps.kt index 6e0b8846a4..a8b802ec4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationExecuteChangeSetActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CloudFormationExecuteChangeSetActionProps.kt @@ -301,7 +301,8 @@ public interface CloudFormationExecuteChangeSetActionProps : CommonAwsActionProp private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CloudFormationExecuteChangeSetActionProps, - ) : CdkObject(cdkObject), CloudFormationExecuteChangeSetActionProps { + ) : CdkObject(cdkObject), + CloudFormationExecuteChangeSetActionProps { /** * The AWS account this Action is supposed to operate in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeBuildActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeBuildActionProps.kt index 150dd74885..5cd896cad2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeBuildActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeBuildActionProps.kt @@ -438,7 +438,8 @@ public interface CodeBuildActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeBuildActionProps, - ) : CdkObject(cdkObject), CodeBuildActionProps { + ) : CdkObject(cdkObject), + CodeBuildActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceActionProps.kt index 33cbb229da..63e4da82d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceActionProps.kt @@ -304,7 +304,8 @@ public interface CodeCommitSourceActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeCommitSourceActionProps, - ) : CdkObject(cdkObject), CodeCommitSourceActionProps { + ) : CdkObject(cdkObject), + CodeCommitSourceActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceVariables.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceVariables.kt index c15f836264..f08db7a243 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceVariables.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeCommitSourceVariables.kt @@ -152,7 +152,8 @@ public interface CodeCommitSourceVariables { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeCommitSourceVariables, - ) : CdkObject(cdkObject), CodeCommitSourceVariables { + ) : CdkObject(cdkObject), + CodeCommitSourceVariables { /** * The date the currently last commit on the tracked branch was authored, in ISO-8601 format. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsContainerImageInput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsContainerImageInput.kt index 0a00b523da..8368869053 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsContainerImageInput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsContainerImageInput.kt @@ -113,7 +113,8 @@ public interface CodeDeployEcsContainerImageInput { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeDeployEcsContainerImageInput, - ) : CdkObject(cdkObject), CodeDeployEcsContainerImageInput { + ) : CdkObject(cdkObject), + CodeDeployEcsContainerImageInput { /** * The artifact that contains an `imageDetails.json` file with the image URI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsDeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsDeployActionProps.kt index 2c51adb01a..a459db532f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsDeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployEcsDeployActionProps.kt @@ -377,7 +377,8 @@ public interface CodeDeployEcsDeployActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeDeployEcsDeployActionProps, - ) : CdkObject(cdkObject), CodeDeployEcsDeployActionProps { + ) : CdkObject(cdkObject), + CodeDeployEcsDeployActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployServerDeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployServerDeployActionProps.kt index d97523c5d7..187ff72419 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployServerDeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeDeployServerDeployActionProps.kt @@ -155,7 +155,8 @@ public interface CodeDeployServerDeployActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeDeployServerDeployActionProps, - ) : CdkObject(cdkObject), CodeDeployServerDeployActionProps { + ) : CdkObject(cdkObject), + CodeDeployServerDeployActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarConnectionsSourceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarConnectionsSourceActionProps.kt index ec19ff4826..8876bf4e21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarConnectionsSourceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarConnectionsSourceActionProps.kt @@ -289,7 +289,8 @@ public interface CodeStarConnectionsSourceActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeStarConnectionsSourceActionProps, - ) : CdkObject(cdkObject), CodeStarConnectionsSourceActionProps { + ) : CdkObject(cdkObject), + CodeStarConnectionsSourceActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarSourceVariables.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarSourceVariables.kt index 7622454f58..9da24f36ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarSourceVariables.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CodeStarSourceVariables.kt @@ -149,7 +149,8 @@ public interface CodeStarSourceVariables { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CodeStarSourceVariables, - ) : CdkObject(cdkObject), CodeStarSourceVariables { + ) : CdkObject(cdkObject), + CodeStarSourceVariables { /** * The date the currently last commit on the tracked branch was authored, in ISO-8601 format. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CommonCloudFormationStackSetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CommonCloudFormationStackSetOptions.kt index 7616e7e631..f9b578ead3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CommonCloudFormationStackSetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/CommonCloudFormationStackSetOptions.kt @@ -160,7 +160,8 @@ public interface CommonCloudFormationStackSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.CommonCloudFormationStackSetOptions, - ) : CdkObject(cdkObject), CommonCloudFormationStackSetOptions { + ) : CdkObject(cdkObject), + CommonCloudFormationStackSetOptions { /** * The percentage of accounts per Region for which this stack operation can fail before AWS * CloudFormation stops the operation in that Region. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceActionProps.kt index 50711b8824..628488ad90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceActionProps.kt @@ -174,7 +174,8 @@ public interface EcrSourceActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.EcrSourceActionProps, - ) : CdkObject(cdkObject), EcrSourceActionProps { + ) : CdkObject(cdkObject), + EcrSourceActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceVariables.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceVariables.kt index 8c7b4d56ad..ed653a6f3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceVariables.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcrSourceVariables.kt @@ -135,7 +135,8 @@ public interface EcrSourceVariables { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.EcrSourceVariables, - ) : CdkObject(cdkObject), EcrSourceVariables { + ) : CdkObject(cdkObject), + EcrSourceVariables { /** * The digest of the current image, in the form ':'. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcsDeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcsDeployActionProps.kt index fdfda8ed65..118268d747 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcsDeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/EcsDeployActionProps.kt @@ -251,7 +251,8 @@ public interface EcsDeployActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.EcsDeployActionProps, - ) : CdkObject(cdkObject), EcsDeployActionProps { + ) : CdkObject(cdkObject), + EcsDeployActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ElasticBeanstalkDeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ElasticBeanstalkDeployActionProps.kt index 139be1e33c..2567401408 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ElasticBeanstalkDeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ElasticBeanstalkDeployActionProps.kt @@ -169,7 +169,8 @@ public interface ElasticBeanstalkDeployActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.ElasticBeanstalkDeployActionProps, - ) : CdkObject(cdkObject), ElasticBeanstalkDeployActionProps { + ) : CdkObject(cdkObject), + ElasticBeanstalkDeployActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceActionProps.kt index 872a803236..e3a20af0a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceActionProps.kt @@ -259,7 +259,8 @@ public interface GitHubSourceActionProps : CommonActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.GitHubSourceActionProps, - ) : CdkObject(cdkObject), GitHubSourceActionProps { + ) : CdkObject(cdkObject), + GitHubSourceActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceVariables.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceVariables.kt index a8326b9bbe..be81047e6d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceVariables.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/GitHubSourceVariables.kt @@ -169,7 +169,8 @@ public interface GitHubSourceVariables { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.GitHubSourceVariables, - ) : CdkObject(cdkObject), GitHubSourceVariables { + ) : CdkObject(cdkObject), + GitHubSourceVariables { /** * The date the currently last commit on the tracked branch was authored, in ISO-8601 format. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ICustomEventRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ICustomEventRule.kt index 3f390db7f4..dec87db8e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ICustomEventRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ICustomEventRule.kt @@ -40,7 +40,8 @@ public interface ICustomEventRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.ICustomEventRule, - ) : CdkObject(cdkObject), ICustomEventRule { + ) : CdkObject(cdkObject), + ICustomEventRule { /** * Description. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/IJenkinsProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/IJenkinsProvider.kt index 258e73f4e9..d719f5da38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/IJenkinsProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/IJenkinsProvider.kt @@ -35,7 +35,8 @@ public interface IJenkinsProvider : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider, - ) : CdkObject(cdkObject), IJenkinsProvider { + ) : CdkObject(cdkObject), + IJenkinsProvider { override fun node(): Node = unwrap(this).getNode().let(Node::wrap) /** diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsActionProps.kt index c5021a8c78..5f87182860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsActionProps.kt @@ -202,7 +202,8 @@ public interface JenkinsActionProps : CommonActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.JenkinsActionProps, - ) : CdkObject(cdkObject), JenkinsActionProps { + ) : CdkObject(cdkObject), + JenkinsActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderAttributes.kt index 1e0b3af94f..1cfc3e084d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderAttributes.kt @@ -109,7 +109,8 @@ public interface JenkinsProviderAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.JenkinsProviderAttributes, - ) : CdkObject(cdkObject), JenkinsProviderAttributes { + ) : CdkObject(cdkObject), + JenkinsProviderAttributes { /** * The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of * your Jenkins project. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderProps.kt index 4d4fd0a3cd..944c4dbb79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/JenkinsProviderProps.kt @@ -152,7 +152,8 @@ public interface JenkinsProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.JenkinsProviderProps, - ) : CdkObject(cdkObject), JenkinsProviderProps { + ) : CdkObject(cdkObject), + JenkinsProviderProps { /** * Whether to immediately register a Jenkins Provider for the build category. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/LambdaInvokeActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/LambdaInvokeActionProps.kt index e6495a339e..3256f9b4c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/LambdaInvokeActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/LambdaInvokeActionProps.kt @@ -290,7 +290,8 @@ public interface LambdaInvokeActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.LambdaInvokeActionProps, - ) : CdkObject(cdkObject), LambdaInvokeActionProps { + ) : CdkObject(cdkObject), + LambdaInvokeActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ManualApprovalActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ManualApprovalActionProps.kt index 6188f782bf..07e61279c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ManualApprovalActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ManualApprovalActionProps.kt @@ -216,7 +216,8 @@ public interface ManualApprovalActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.ManualApprovalActionProps, - ) : CdkObject(cdkObject), ManualApprovalActionProps { + ) : CdkObject(cdkObject), + ManualApprovalActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/OrganizationsDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/OrganizationsDeploymentProps.kt index 70ce984f06..5f24f2021d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/OrganizationsDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/OrganizationsDeploymentProps.kt @@ -71,7 +71,8 @@ public interface OrganizationsDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.OrganizationsDeploymentProps, - ) : CdkObject(cdkObject), OrganizationsDeploymentProps { + ) : CdkObject(cdkObject), + OrganizationsDeploymentProps { /** * Automatically deploy to new accounts added to Organizational Units. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3DeployActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3DeployActionProps.kt index 376cffa4c7..bc77fb704c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3DeployActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3DeployActionProps.kt @@ -294,7 +294,8 @@ public interface S3DeployActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.S3DeployActionProps, - ) : CdkObject(cdkObject), S3DeployActionProps { + ) : CdkObject(cdkObject), + S3DeployActionProps { /** * The specified canned ACL to objects deployed to Amazon S3. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceActionProps.kt index f53fd916fd..186ebd3090 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceActionProps.kt @@ -216,7 +216,8 @@ public interface S3SourceActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.S3SourceActionProps, - ) : CdkObject(cdkObject), S3SourceActionProps { + ) : CdkObject(cdkObject), + S3SourceActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceVariables.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceVariables.kt index 214f3e405d..36b7dbe41f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceVariables.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/S3SourceVariables.kt @@ -75,7 +75,8 @@ public interface S3SourceVariables { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.S3SourceVariables, - ) : CdkObject(cdkObject), S3SourceVariables { + ) : CdkObject(cdkObject), + S3SourceVariables { /** * The e-tag of the S3 version of the object that triggered the build. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/SelfManagedDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/SelfManagedDeploymentProps.kt index 2ff197572d..9eb7433332 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/SelfManagedDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/SelfManagedDeploymentProps.kt @@ -141,7 +141,8 @@ public interface SelfManagedDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.SelfManagedDeploymentProps, - ) : CdkObject(cdkObject), SelfManagedDeploymentProps { + ) : CdkObject(cdkObject), + SelfManagedDeploymentProps { /** * The IAM role in the administrator account used to assume execution roles in the target * accounts. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ServiceCatalogDeployActionBeta1Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ServiceCatalogDeployActionBeta1Props.kt index c1e9ad6b2f..bb979f8aeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ServiceCatalogDeployActionBeta1Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ServiceCatalogDeployActionBeta1Props.kt @@ -192,7 +192,8 @@ public interface ServiceCatalogDeployActionBeta1Props : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.ServiceCatalogDeployActionBeta1Props, - ) : CdkObject(cdkObject), ServiceCatalogDeployActionBeta1Props { + ) : CdkObject(cdkObject), + ServiceCatalogDeployActionBeta1Props { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/StepFunctionsInvokeActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/StepFunctionsInvokeActionProps.kt index 27d404e1a7..90260ecb41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/StepFunctionsInvokeActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/StepFunctionsInvokeActionProps.kt @@ -209,7 +209,8 @@ public interface StepFunctionsInvokeActionProps : CommonAwsActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codepipeline.actions.StepFunctionsInvokeActionProps, - ) : CdkObject(cdkObject), StepFunctionsInvokeActionProps { + ) : CdkObject(cdkObject), + StepFunctionsInvokeActionProps { /** * The physical, human-readable name of the Action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepository.kt index d87645d0a4..4baf94046a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepository.kt @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGitHubRepository( cdkObject: software.amazon.awscdk.services.codestar.CfnGitHubRepository, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -607,7 +608,8 @@ public open class CfnGitHubRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.codestar.CfnGitHubRepository.CodeProperty, - ) : CdkObject(cdkObject), CodeProperty { + ) : CdkObject(cdkObject), + CodeProperty { /** * Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to * the repository. @@ -736,7 +738,8 @@ public open class CfnGitHubRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.codestar.CfnGitHubRepository.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * The name of the Amazon S3 bucket that contains the ZIP file with the content to be * committed to the new repository. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepositoryProps.kt index 9896e17ab3..09e084b61f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestar/CfnGitHubRepositoryProps.kt @@ -295,7 +295,8 @@ public interface CfnGitHubRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestar.CfnGitHubRepositoryProps, - ) : CdkObject(cdkObject), CfnGitHubRepositoryProps { + ) : CdkObject(cdkObject), + CfnGitHubRepositoryProps { /** * Information about code to be committed to a repository after it is created in an AWS * CloudFormation stack. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnection.kt index a533934203..b0169c211f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnection.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnection( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnectionProps.kt index 62292226d4..a8747b1497 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnConnectionProps.kt @@ -143,7 +143,8 @@ public interface CfnConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnConnectionProps, - ) : CdkObject(cdkObject), CfnConnectionProps { + ) : CdkObject(cdkObject), + CfnConnectionProps { /** * The name of the connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLink.kt index d370411537..c5c851cd75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLink.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepositoryLink( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnRepositoryLink, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLinkProps.kt index 2322fa54c4..8e7bce803c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnRepositoryLinkProps.kt @@ -165,7 +165,8 @@ public interface CfnRepositoryLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnRepositoryLinkProps, - ) : CdkObject(cdkObject), CfnRepositoryLinkProps { + ) : CdkObject(cdkObject), + CfnRepositoryLinkProps { /** * The Amazon Resource Name (ARN) of the connection associated with the repository link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfiguration.kt index ba8bbb0d66..87c595871a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfiguration.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSyncConfiguration( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnSyncConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfigurationProps.kt index 6c8fe8eaec..10117a2c6f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarconnections/CfnSyncConfigurationProps.kt @@ -217,7 +217,8 @@ public interface CfnSyncConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarconnections.CfnSyncConfigurationProps, - ) : CdkObject(cdkObject), CfnSyncConfigurationProps { + ) : CdkObject(cdkObject), + CfnSyncConfigurationProps { /** * The branch associated with a specific sync configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRule.kt index c035c35447..81c1ce1a8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRule.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNotificationRule( cdkObject: software.amazon.awscdk.services.codestarnotifications.CfnNotificationRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -665,7 +667,8 @@ public open class CfnNotificationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.CfnNotificationRule.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * The Amazon Resource Name (ARN) of the AWS Chatbot topic or AWS Chatbot client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRuleProps.kt index b3fa5e03c7..0d888e44fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/CfnNotificationRuleProps.kt @@ -353,7 +353,8 @@ public interface CfnNotificationRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.CfnNotificationRuleProps, - ) : CdkObject(cdkObject), CfnNotificationRuleProps { + ) : CdkObject(cdkObject), + CfnNotificationRuleProps { /** * The name or email alias of the person who created the notification rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRule.kt index 3e46366e43..c90adc9e5e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRule.kt @@ -32,7 +32,8 @@ public interface INotificationRule : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.INotificationRule, - ) : CdkObject(cdkObject), INotificationRule { + ) : CdkObject(cdkObject), + INotificationRule { /** * Adds target to notification rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleSource.kt index e77f6f2a6d..2e47dea666 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleSource.kt @@ -20,7 +20,8 @@ public interface INotificationRuleSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.INotificationRuleSource, - ) : CdkObject(cdkObject), INotificationRuleSource { + ) : CdkObject(cdkObject), + INotificationRuleSource { /** * Returns a source configuration for notification rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleTarget.kt index c6b3b55346..91f7e730ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/INotificationRuleTarget.kt @@ -20,7 +20,8 @@ public interface INotificationRuleTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.INotificationRuleTarget, - ) : CdkObject(cdkObject), INotificationRuleTarget { + ) : CdkObject(cdkObject), + INotificationRuleTarget { /** * Returns a target configuration for notification rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRule.kt index 80ca3a30b8..ae8482dc32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRule.kt @@ -34,13 +34,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .events(List.of("codebuild-project-build-state-succeeded", * "codebuild-project-build-state-failed")) * .targets(List.of(topic)) + * .notificationRuleName("MyNotificationRuleName") + * .enabled(true) // The default is true + * .detailType(DetailType.FULL) // The default is FULL + * .createdBy("Jone Doe") * .build(); * rule.addTarget(slack); * ``` */ public open class NotificationRule( cdkObject: software.amazon.awscdk.services.codestarnotifications.NotificationRule, -) : Resource(cdkObject), INotificationRule { +) : Resource(cdkObject), + INotificationRule { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -76,6 +81,17 @@ public open class NotificationRule( */ @CdkDslMarker public interface Builder { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + * + * @param createdBy The name or email alias of the person who created the notification rule. + */ + public fun createdBy(createdBy: String) + /** * The level of detail to include in the notifications for this resource. * @@ -173,6 +189,19 @@ public open class NotificationRule( software.amazon.awscdk.services.codestarnotifications.NotificationRule.Builder.create(scope, id) + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + * + * @param createdBy The name or email alias of the person who created the notification rule. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleOptions.kt index 608a26a0d5..c30c7e4138 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleOptions.kt @@ -19,6 +19,7 @@ import kotlin.Unit * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.codestarnotifications.*; * NotificationRuleOptions notificationRuleOptions = NotificationRuleOptions.builder() + * .createdBy("createdBy") * .detailType(DetailType.BASIC) * .enabled(false) * .notificationRuleName("notificationRuleName") @@ -26,6 +27,15 @@ import kotlin.Unit * ``` */ public interface NotificationRuleOptions { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + public fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * @@ -60,6 +70,12 @@ public interface NotificationRuleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + public fun createdBy(createdBy: String) + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -86,6 +102,14 @@ public interface NotificationRuleOptions { software.amazon.awscdk.services.codestarnotifications.NotificationRuleOptions.Builder = software.amazon.awscdk.services.codestarnotifications.NotificationRuleOptions.builder() + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -119,7 +143,17 @@ public interface NotificationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.NotificationRuleOptions, - ) : CdkObject(cdkObject), NotificationRuleOptions { + ) : CdkObject(cdkObject), + NotificationRuleOptions { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + override fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleProps.kt index d8591de2a0..6433844fed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleProps.kt @@ -33,6 +33,10 @@ import kotlin.collections.List * .events(List.of("codebuild-project-build-state-succeeded", * "codebuild-project-build-state-failed")) * .targets(List.of(topic)) + * .notificationRuleName("MyNotificationRuleName") + * .enabled(true) // The default is true + * .detailType(DetailType.FULL) // The default is FULL + * .createdBy("Jone Doe") * .build(); * rule.addTarget(slack); * ``` @@ -71,6 +75,12 @@ public interface NotificationRuleProps : NotificationRuleOptions { */ @CdkDslMarker public interface Builder { + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + public fun createdBy(createdBy: String) + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -129,6 +139,14 @@ public interface NotificationRuleProps : NotificationRuleOptions { software.amazon.awscdk.services.codestarnotifications.NotificationRuleProps.Builder = software.amazon.awscdk.services.codestarnotifications.NotificationRuleProps.builder() + /** + * @param createdBy The name or email alias of the person who created the notification rule. + * If not specified, it means that the creator's alias is not provided. + */ + override fun createdBy(createdBy: String) { + cdkBuilder.createdBy(createdBy) + } + /** * @param detailType The level of detail to include in the notifications for this resource. * BASIC will include only the contents of the event as it would appear in AWS CloudWatch. @@ -199,7 +217,17 @@ public interface NotificationRuleProps : NotificationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.NotificationRuleProps, - ) : CdkObject(cdkObject), NotificationRuleProps { + ) : CdkObject(cdkObject), + NotificationRuleProps { + /** + * The name or email alias of the person who created the notification rule. + * + * If not specified, it means that the creator's alias is not provided. + * + * Default: - No alias provided + */ + override fun createdBy(): String? = unwrap(this).getCreatedBy() + /** * The level of detail to include in the notifications for this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleSourceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleSourceConfig.kt index 781dd0bf84..ec18f18b0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleSourceConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleSourceConfig.kt @@ -59,7 +59,8 @@ public interface NotificationRuleSourceConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.NotificationRuleSourceConfig, - ) : CdkObject(cdkObject), NotificationRuleSourceConfig { + ) : CdkObject(cdkObject), + NotificationRuleSourceConfig { /** * The Amazon Resource Name (ARN) of the notification source. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleTargetConfig.kt index b1dff0743a..b00c131696 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codestarnotifications/NotificationRuleTargetConfig.kt @@ -83,7 +83,8 @@ public interface NotificationRuleTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.codestarnotifications.NotificationRuleTargetConfig, - ) : CdkObject(cdkObject), NotificationRuleTargetConfig { + ) : CdkObject(cdkObject), + NotificationRuleTargetConfig { /** * The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AttributeMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AttributeMapping.kt index edab6f5110..c9e23ba4cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AttributeMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AttributeMapping.kt @@ -406,7 +406,8 @@ public interface AttributeMapping { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.AttributeMapping, - ) : CdkObject(cdkObject), AttributeMapping { + ) : CdkObject(cdkObject), + AttributeMapping { /** * The user's postal address is a required attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AuthFlow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AuthFlow.kt index e783314d66..c17c653417 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AuthFlow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AuthFlow.kt @@ -117,7 +117,8 @@ public interface AuthFlow { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.AuthFlow, - ) : CdkObject(cdkObject), AuthFlow { + ) : CdkObject(cdkObject), + AuthFlow { /** * Enable admin based user password authentication flow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AutoVerifiedAttrs.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AutoVerifiedAttrs.kt index c1215e7aba..54fc1903cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AutoVerifiedAttrs.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/AutoVerifiedAttrs.kt @@ -87,7 +87,8 @@ public interface AutoVerifiedAttrs { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.AutoVerifiedAttrs, - ) : CdkObject(cdkObject), AutoVerifiedAttrs { + ) : CdkObject(cdkObject), + AutoVerifiedAttrs { /** * Whether the email address of the user should be auto verified at sign up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BaseUrlOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BaseUrlOptions.kt index 11e9021a3f..9a7ff58af9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BaseUrlOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BaseUrlOptions.kt @@ -57,7 +57,8 @@ public interface BaseUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.BaseUrlOptions, - ) : CdkObject(cdkObject), BaseUrlOptions { + ) : CdkObject(cdkObject), + BaseUrlOptions { /** * Whether to return the FIPS-compliant endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BooleanAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BooleanAttribute.kt index 0ce46c0ded..30272ce7fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BooleanAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/BooleanAttribute.kt @@ -35,7 +35,8 @@ import kotlin.Unit */ public open class BooleanAttribute( cdkObject: software.amazon.awscdk.services.cognito.BooleanAttribute, -) : CdkObject(cdkObject), ICustomAttribute { +) : CdkObject(cdkObject), + ICustomAttribute { public constructor() : this(software.amazon.awscdk.services.cognito.BooleanAttribute() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPool.kt index 20d845c025..8cb8e17c72 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPool.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.cognito import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -43,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentityPool( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPool, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,6 +114,12 @@ public open class CfnIdentityPool( */ public open fun attrName(): String = unwrap(this).getAttrName() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The events to configure. */ @@ -197,6 +208,25 @@ public open class CfnIdentityPool( unwrap(this).setIdentityPoolName(`value`) } + /** + * Tags to assign to the identity pool. + */ + public open fun identityPoolTags(): List = + unwrap(this).getIdentityPoolTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Tags to assign to the identity pool. + */ + public open fun identityPoolTags(`value`: List) { + unwrap(this).setIdentityPoolTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags to assign to the identity pool. + */ + public open fun identityPoolTags(vararg `value`: CfnTag): Unit = + identityPoolTags(`value`.toList()) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -410,6 +440,28 @@ public open class CfnIdentityPool( */ public fun identityPoolName(identityPoolName: String) + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + * @param identityPoolTags Tags to assign to the identity pool. + */ + public fun identityPoolTags(identityPoolTags: List) + + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + * @param identityPoolTags Tags to assign to the identity pool. + */ + public fun identityPoolTags(vararg identityPoolTags: CfnTag) + /** * The Amazon Resource Names (ARNs) of the OpenID connect providers. * @@ -634,6 +686,31 @@ public open class CfnIdentityPool( cdkBuilder.identityPoolName(identityPoolName) } + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + * @param identityPoolTags Tags to assign to the identity pool. + */ + override fun identityPoolTags(identityPoolTags: List) { + cdkBuilder.identityPoolTags(identityPoolTags.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + * @param identityPoolTags Tags to assign to the identity pool. + */ + override fun identityPoolTags(vararg identityPoolTags: CfnTag): Unit = + identityPoolTags(identityPoolTags.toList()) + /** * The Amazon Resource Names (ARNs) of the OpenID connect providers. * @@ -886,7 +963,8 @@ public open class CfnIdentityPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPool.CognitoIdentityProviderProperty, - ) : CdkObject(cdkObject), CognitoIdentityProviderProperty { + ) : CdkObject(cdkObject), + CognitoIdentityProviderProperty { /** * The client ID for the Amazon Cognito user pool. * @@ -1049,7 +1127,8 @@ public open class CfnIdentityPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPool.CognitoStreamsProperty, - ) : CdkObject(cdkObject), CognitoStreamsProperty { + ) : CdkObject(cdkObject), + CognitoStreamsProperty { /** * The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the * stream. @@ -1190,7 +1269,8 @@ public open class CfnIdentityPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPool.PushSyncProperty, - ) : CdkObject(cdkObject), PushSyncProperty { + ) : CdkObject(cdkObject), + PushSyncProperty { /** * The ARNs of the Amazon SNS platform applications that could be used by clients. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTag.kt index 9fd21245ac..09a00ceac2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTag.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentityPoolPrincipalTag( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolPrincipalTag, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTagProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTagProps.kt index 75584258b4..b0276dc482 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTagProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolPrincipalTagProps.kt @@ -159,7 +159,8 @@ public interface CfnIdentityPoolPrincipalTagProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolPrincipalTagProps, - ) : CdkObject(cdkObject), CfnIdentityPoolPrincipalTagProps { + ) : CdkObject(cdkObject), + CfnIdentityPoolPrincipalTagProps { /** * The identity pool that you want to associate with this principal tag map. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolProps.kt index 120464080c..1ca02ac926 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.cognito +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -94,6 +95,17 @@ public interface CfnIdentityPoolProps { */ public fun identityPoolName(): String? = unwrap(this).getIdentityPoolName() + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + */ + public fun identityPoolTags(): List = + unwrap(this).getIdentityPoolTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The Amazon Resource Names (ARNs) of the OpenID connect providers. * @@ -210,6 +222,20 @@ public interface CfnIdentityPoolProps { */ public fun identityPoolName(identityPoolName: String) + /** + * @param identityPoolTags Tags to assign to the identity pool. + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + */ + public fun identityPoolTags(identityPoolTags: List) + + /** + * @param identityPoolTags Tags to assign to the identity pool. + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + */ + public fun identityPoolTags(vararg identityPoolTags: CfnTag) + /** * @param openIdConnectProviderArns The Amazon Resource Names (ARNs) of the OpenID connect * providers. @@ -367,6 +393,23 @@ public interface CfnIdentityPoolProps { cdkBuilder.identityPoolName(identityPoolName) } + /** + * @param identityPoolTags Tags to assign to the identity pool. + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + */ + override fun identityPoolTags(identityPoolTags: List) { + cdkBuilder.identityPoolTags(identityPoolTags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param identityPoolTags Tags to assign to the identity pool. + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + */ + override fun identityPoolTags(vararg identityPoolTags: CfnTag): Unit = + identityPoolTags(identityPoolTags.toList()) + /** * @param openIdConnectProviderArns The Amazon Resource Names (ARNs) of the OpenID connect * providers. @@ -432,7 +475,8 @@ public interface CfnIdentityPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolProps, - ) : CdkObject(cdkObject), CfnIdentityPoolProps { + ) : CdkObject(cdkObject), + CfnIdentityPoolProps { /** * Enables the Basic (Classic) authentication flow. * @@ -497,6 +541,17 @@ public interface CfnIdentityPoolProps { */ override fun identityPoolName(): String? = unwrap(this).getIdentityPoolName() + /** + * Tags to assign to the identity pool. + * + * A tag is a label that you can apply to identity pools to categorize and manage them in + * different ways, such as by purpose, owner, environment, or other criteria. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-identitypooltags) + */ + override fun identityPoolTags(): List = + unwrap(this).getIdentityPoolTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The Amazon Resource Names (ARNs) of the OpenID connect providers. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachment.kt index 28130babc4..5291623cf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachment.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentityPoolRoleAttachment( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -423,7 +424,8 @@ public open class CfnIdentityPoolRoleAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment.MappingRuleProperty, - ) : CdkObject(cdkObject), MappingRuleProperty { + ) : CdkObject(cdkObject), + MappingRuleProperty { /** * The claim name that must be present in the token. * @@ -684,7 +686,8 @@ public open class CfnIdentityPoolRoleAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment.RoleMappingProperty, - ) : CdkObject(cdkObject), RoleMappingProperty { + ) : CdkObject(cdkObject), + RoleMappingProperty { /** * If you specify Token or Rules as the `Type` , `AmbiguousRoleResolution` is required. * @@ -843,7 +846,8 @@ public open class CfnIdentityPoolRoleAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment.RulesConfigurationTypeProperty, - ) : CdkObject(cdkObject), RulesConfigurationTypeProperty { + ) : CdkObject(cdkObject), + RulesConfigurationTypeProperty { /** * The rules. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachmentProps.kt index af15d4f01e..efc6e42517 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnIdentityPoolRoleAttachmentProps.kt @@ -191,7 +191,8 @@ public interface CfnIdentityPoolRoleAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachmentProps, - ) : CdkObject(cdkObject), CfnIdentityPoolRoleAttachmentProps { + ) : CdkObject(cdkObject), + CfnIdentityPoolRoleAttachmentProps { /** * An identity pool ID in the format `REGION:GUID` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfiguration.kt index bf47c853fd..ae87896249 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfiguration.kt @@ -18,7 +18,9 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * The logging parameters of a user pool. + * The logging parameters of a user pool, as returned in the response to a + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * request. * * Example: * @@ -35,7 +37,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logGroupArn("logGroupArn") * .build()) * .eventSource("eventSource") + * .firehoseConfiguration(FirehoseConfigurationProperty.builder() + * .streamArn("streamArn") + * .build()) * .logLevel("logLevel") + * .s3Configuration(S3ConfigurationProperty.builder() + * .bucketArn("bucketArn") + * .build()) * .build())) * .build(); * ``` @@ -44,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogDeliveryConfiguration( cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -76,36 +85,36 @@ public open class CfnLogDeliveryConfiguration( } /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. */ public open fun logConfigurations(): Any? = unwrap(this).getLogConfigurations() /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. */ public open fun logConfigurations(`value`: IResolvable) { unwrap(this).setLogConfigurations(`value`.let(IResolvable.Companion::unwrap)) } /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. */ public open fun logConfigurations(`value`: List) { unwrap(this).setLogConfigurations(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. */ public open fun logConfigurations(vararg `value`: Any): Unit = logConfigurations(`value`.toList()) /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. */ public open fun userPoolId(): String = unwrap(this).getUserPoolId() /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. */ public open fun userPoolId(`value`: String) { unwrap(this).setUserPoolId(`value`) @@ -117,34 +126,43 @@ public open class CfnLogDeliveryConfiguration( @CdkDslMarker public interface Builder { /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ public fun logConfigurations(logConfigurations: IResolvable) /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ public fun logConfigurations(logConfigurations: List) /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ public fun logConfigurations(vararg logConfigurations: Any) /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-userpoolid) - * @param userPoolId The ID of the user pool where you configured detailed activity logging. + * @param userPoolId The ID of the user pool where you configured logging. */ public fun userPoolId(userPoolId: String) } @@ -159,39 +177,48 @@ public open class CfnLogDeliveryConfiguration( id) /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ override fun logConfigurations(logConfigurations: IResolvable) { cdkBuilder.logConfigurations(logConfigurations.let(IResolvable.Companion::unwrap)) } /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ override fun logConfigurations(logConfigurations: List) { cdkBuilder.logConfigurations(logConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. */ override fun logConfigurations(vararg logConfigurations: Any): Unit = logConfigurations(logConfigurations.toList()) /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-userpoolid) - * @param userPoolId The ID of the user pool where you configured detailed activity logging. + * @param userPoolId The ID of the user pool where you configured logging. */ override fun userPoolId(userPoolId: String) { cdkBuilder.userPoolId(userPoolId) @@ -224,7 +251,14 @@ public open class CfnLogDeliveryConfiguration( } /** - * The CloudWatch logging destination of a user pool detailed activity logging configuration. + * Configuration for the CloudWatch log group destination of user pool detailed activity logging, + * or of user activity log export with advanced security features. + * + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . * * Example: * @@ -307,7 +341,8 @@ public open class CfnLogDeliveryConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.CloudWatchLogsConfigurationProperty, - ) : CdkObject(cdkObject), CloudWatchLogsConfigurationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsConfigurationProperty { /** * The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends * logs. @@ -346,7 +381,103 @@ public open class CfnLogDeliveryConfiguration( } /** - * The logging parameters of a user pool. + * Configuration for the Amazon Data Firehose stream destination of user activity log export with + * advanced security features. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cognito.*; + * FirehoseConfigurationProperty firehoseConfigurationProperty = + * FirehoseConfigurationProperty.builder() + * .streamArn("streamArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-firehoseconfiguration.html) + */ + public interface FirehoseConfigurationProperty { + /** + * The ARN of an Amazon Data Firehose stream that's the destination for advanced security + * features log export. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-firehoseconfiguration.html#cfn-cognito-logdeliveryconfiguration-firehoseconfiguration-streamarn) + */ + public fun streamArn(): String? = unwrap(this).getStreamArn() + + /** + * A builder for [FirehoseConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param streamArn The ARN of an Amazon Data Firehose stream that's the destination for + * advanced security features log export. + */ + public fun streamArn(streamArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty.Builder + = + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty.builder() + + /** + * @param streamArn The ARN of an Amazon Data Firehose stream that's the destination for + * advanced security features log export. + */ + override fun streamArn(streamArn: String) { + cdkBuilder.streamArn(streamArn) + } + + public fun build(): + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty, + ) : CdkObject(cdkObject), + FirehoseConfigurationProperty { + /** + * The ARN of an Amazon Data Firehose stream that's the destination for advanced security + * features log export. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-firehoseconfiguration.html#cfn-cognito-logdeliveryconfiguration-firehoseconfiguration-streamarn) + */ + override fun streamArn(): String? = unwrap(this).getStreamArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FirehoseConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty): + FirehoseConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + FirehoseConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FirehoseConfigurationProperty): + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty + } + } + + /** + * The configuration of user event logs to an external AWS service like Amazon Data Firehose, + * Amazon S3, or Amazon CloudWatch Logs. + * + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . * * Example: * @@ -359,7 +490,13 @@ public open class CfnLogDeliveryConfiguration( * .logGroupArn("logGroupArn") * .build()) * .eventSource("eventSource") + * .firehoseConfiguration(FirehoseConfigurationProperty.builder() + * .streamArn("streamArn") + * .build()) * .logLevel("logLevel") + * .s3Configuration(S3ConfigurationProperty.builder() + * .bucketArn("bucketArn") + * .build()) * .build(); * ``` * @@ -367,47 +504,97 @@ public open class CfnLogDeliveryConfiguration( */ public interface LogConfigurationProperty { /** - * The CloudWatch logging destination of a user pool detailed activity logging configuration. + * Configuration for the CloudWatch log group destination of user pool detailed activity + * logging, or of user activity log export with advanced security features. + * + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-cloudwatchlogsconfiguration) */ public fun cloudWatchLogsConfiguration(): Any? = unwrap(this).getCloudWatchLogsConfiguration() /** - * The source of events that your user pool sends for detailed activity logging. + * The source of events that your user pool sends for logging. + * + * To send error-level logs about user notification activity, set to `userNotification` . To + * send info-level logs about advanced security features user activity, set to `userAuthEvents` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-eventsource) */ public fun eventSource(): String? = unwrap(this).getEventSource() + /** + * Configuration for the Amazon Data Firehose stream destination of user activity log export + * with advanced security features. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-firehoseconfiguration) + */ + public fun firehoseConfiguration(): Any? = unwrap(this).getFirehoseConfiguration() + /** * The `errorlevel` selection of logs that a user pool sends for detailed activity logging. * + * To send `userNotification` activity with [information about message + * delivery](https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html) + * , choose `ERROR` with `CloudWatchLogsConfiguration` . To send `userAuthEvents` activity with + * user logs from advanced security features, choose `INFO` with one of + * `CloudWatchLogsConfiguration` , `FirehoseConfiguration` , or `S3Configuration` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-loglevel) */ public fun logLevel(): String? = unwrap(this).getLogLevel() + /** + * Configuration for the Amazon S3 bucket destination of user activity log export with advanced + * security features. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-s3configuration) + */ + public fun s3Configuration(): Any? = unwrap(this).getS3Configuration() + /** * A builder for [LogConfigurationProperty] */ @CdkDslMarker public interface Builder { /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ public fun cloudWatchLogsConfiguration(cloudWatchLogsConfiguration: IResolvable) /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ public fun cloudWatchLogsConfiguration(cloudWatchLogsConfiguration: CloudWatchLogsConfigurationProperty) /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1c72dbd13231f18ec304bbe35965e946d533d687a2d96901fa93fa1a35c6cc0d") @@ -415,16 +602,63 @@ public open class CfnLogDeliveryConfiguration( fun cloudWatchLogsConfiguration(cloudWatchLogsConfiguration: CloudWatchLogsConfigurationProperty.Builder.() -> Unit) /** - * @param eventSource The source of events that your user pool sends for detailed activity - * logging. + * @param eventSource The source of events that your user pool sends for logging. + * To send error-level logs about user notification activity, set to `userNotification` . To + * send info-level logs about advanced security features user activity, set to `userAuthEvents` . */ public fun eventSource(eventSource: String) + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + public fun firehoseConfiguration(firehoseConfiguration: IResolvable) + + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + public fun firehoseConfiguration(firehoseConfiguration: FirehoseConfigurationProperty) + + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9d2a3cc91104ab8b9f2fcc2767846cd8ef79a5a1e7e6d52f16005fd363a0fdfc") + public + fun firehoseConfiguration(firehoseConfiguration: FirehoseConfigurationProperty.Builder.() -> Unit) + /** * @param logLevel The `errorlevel` selection of logs that a user pool sends for detailed * activity logging. + * To send `userNotification` activity with [information about message + * delivery](https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html) + * , choose `ERROR` with `CloudWatchLogsConfiguration` . To send `userAuthEvents` activity with + * user logs from advanced security features, choose `INFO` with one of + * `CloudWatchLogsConfiguration` , `FirehoseConfiguration` , or `S3Configuration` . */ public fun logLevel(logLevel: String) + + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + public fun s3Configuration(s3Configuration: IResolvable) + + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + public fun s3Configuration(s3Configuration: S3ConfigurationProperty) + + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("70aeb6ab0d57c7f8f4989bc440112ed5e9586c7e17180aa3f909c0b89c399a98") + public fun s3Configuration(s3Configuration: S3ConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -434,16 +668,28 @@ public open class CfnLogDeliveryConfiguration( software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty.builder() /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ override fun cloudWatchLogsConfiguration(cloudWatchLogsConfiguration: IResolvable) { cdkBuilder.cloudWatchLogsConfiguration(cloudWatchLogsConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ override fun cloudWatchLogsConfiguration(cloudWatchLogsConfiguration: CloudWatchLogsConfigurationProperty) { @@ -451,8 +697,14 @@ public open class CfnLogDeliveryConfiguration( } /** - * @param cloudWatchLogsConfiguration The CloudWatch logging destination of a user pool - * detailed activity logging configuration. + * @param cloudWatchLogsConfiguration Configuration for the CloudWatch log group destination + * of user pool detailed activity logging, or of user activity log export with advanced security + * features. + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1c72dbd13231f18ec304bbe35965e946d533d687a2d96901fa93fa1a35c6cc0d") @@ -462,21 +714,78 @@ public open class CfnLogDeliveryConfiguration( cloudWatchLogsConfiguration(CloudWatchLogsConfigurationProperty(cloudWatchLogsConfiguration)) /** - * @param eventSource The source of events that your user pool sends for detailed activity - * logging. + * @param eventSource The source of events that your user pool sends for logging. + * To send error-level logs about user notification activity, set to `userNotification` . To + * send info-level logs about advanced security features user activity, set to `userAuthEvents` . */ override fun eventSource(eventSource: String) { cdkBuilder.eventSource(eventSource) } + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + override fun firehoseConfiguration(firehoseConfiguration: IResolvable) { + cdkBuilder.firehoseConfiguration(firehoseConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + override fun firehoseConfiguration(firehoseConfiguration: FirehoseConfigurationProperty) { + cdkBuilder.firehoseConfiguration(firehoseConfiguration.let(FirehoseConfigurationProperty.Companion::unwrap)) + } + + /** + * @param firehoseConfiguration Configuration for the Amazon Data Firehose stream destination + * of user activity log export with advanced security features. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9d2a3cc91104ab8b9f2fcc2767846cd8ef79a5a1e7e6d52f16005fd363a0fdfc") + override + fun firehoseConfiguration(firehoseConfiguration: FirehoseConfigurationProperty.Builder.() -> Unit): + Unit = firehoseConfiguration(FirehoseConfigurationProperty(firehoseConfiguration)) + /** * @param logLevel The `errorlevel` selection of logs that a user pool sends for detailed * activity logging. + * To send `userNotification` activity with [information about message + * delivery](https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html) + * , choose `ERROR` with `CloudWatchLogsConfiguration` . To send `userAuthEvents` activity with + * user logs from advanced security features, choose `INFO` with one of + * `CloudWatchLogsConfiguration` , `FirehoseConfiguration` , or `S3Configuration` . */ override fun logLevel(logLevel: String) { cdkBuilder.logLevel(logLevel) } + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + override fun s3Configuration(s3Configuration: IResolvable) { + cdkBuilder.s3Configuration(s3Configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + override fun s3Configuration(s3Configuration: S3ConfigurationProperty) { + cdkBuilder.s3Configuration(s3Configuration.let(S3ConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3Configuration Configuration for the Amazon S3 bucket destination of user activity + * log export with advanced security features. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("70aeb6ab0d57c7f8f4989bc440112ed5e9586c7e17180aa3f909c0b89c399a98") + override fun s3Configuration(s3Configuration: S3ConfigurationProperty.Builder.() -> Unit): + Unit = s3Configuration(S3ConfigurationProperty(s3Configuration)) + public fun build(): software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty = cdkBuilder.build() @@ -484,9 +793,17 @@ public open class CfnLogDeliveryConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** - * The CloudWatch logging destination of a user pool detailed activity logging configuration. + * Configuration for the CloudWatch log group destination of user pool detailed activity + * logging, or of user activity log export with advanced security features. + * + * This data type is a request parameter of + * [SetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetLogDeliveryConfiguration.html) + * and a response parameter of + * [GetLogDeliveryConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetLogDeliveryConfiguration.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-cloudwatchlogsconfiguration) */ @@ -494,18 +811,43 @@ public open class CfnLogDeliveryConfiguration( unwrap(this).getCloudWatchLogsConfiguration() /** - * The source of events that your user pool sends for detailed activity logging. + * The source of events that your user pool sends for logging. + * + * To send error-level logs about user notification activity, set to `userNotification` . To + * send info-level logs about advanced security features user activity, set to `userAuthEvents` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-eventsource) */ override fun eventSource(): String? = unwrap(this).getEventSource() + /** + * Configuration for the Amazon Data Firehose stream destination of user activity log export + * with advanced security features. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-firehoseconfiguration) + */ + override fun firehoseConfiguration(): Any? = unwrap(this).getFirehoseConfiguration() + /** * The `errorlevel` selection of logs that a user pool sends for detailed activity logging. * + * To send `userNotification` activity with [information about message + * delivery](https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html) + * , choose `ERROR` with `CloudWatchLogsConfiguration` . To send `userAuthEvents` activity with + * user logs from advanced security features, choose `INFO` with one of + * `CloudWatchLogsConfiguration` , `FirehoseConfiguration` , or `S3Configuration` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-loglevel) */ override fun logLevel(): String? = unwrap(this).getLogLevel() + + /** + * Configuration for the Amazon S3 bucket destination of user activity log export with + * advanced security features. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-logconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfiguration-s3configuration) + */ + override fun s3Configuration(): Any? = unwrap(this).getS3Configuration() } public companion object { @@ -525,4 +867,92 @@ public open class CfnLogDeliveryConfiguration( software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty } } + + /** + * Configuration for the Amazon S3 bucket destination of user activity log export with advanced + * security features. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cognito.*; + * S3ConfigurationProperty s3ConfigurationProperty = S3ConfigurationProperty.builder() + * .bucketArn("bucketArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-s3configuration.html) + */ + public interface S3ConfigurationProperty { + /** + * The ARN of an Amazon S3 bucket that's the destination for advanced security features log + * export. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-s3configuration.html#cfn-cognito-logdeliveryconfiguration-s3configuration-bucketarn) + */ + public fun bucketArn(): String? = unwrap(this).getBucketArn() + + /** + * A builder for [S3ConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketArn The ARN of an Amazon S3 bucket that's the destination for advanced + * security features log export. + */ + public fun bucketArn(bucketArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty.Builder + = + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty.builder() + + /** + * @param bucketArn The ARN of an Amazon S3 bucket that's the destination for advanced + * security features log export. + */ + override fun bucketArn(bucketArn: String) { + cdkBuilder.bucketArn(bucketArn) + } + + public fun build(): + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty, + ) : CdkObject(cdkObject), + S3ConfigurationProperty { + /** + * The ARN of an Amazon S3 bucket that's the destination for advanced security features log + * export. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-s3configuration.html#cfn-cognito-logdeliveryconfiguration-s3configuration-bucketarn) + */ + override fun bucketArn(): String? = unwrap(this).getBucketArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3ConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty): + S3ConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? S3ConfigurationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3ConfigurationProperty): + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfigurationProps.kt index cf9a145977..add18a3a5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnLogDeliveryConfigurationProps.kt @@ -29,7 +29,13 @@ import kotlin.collections.List * .logGroupArn("logGroupArn") * .build()) * .eventSource("eventSource") + * .firehoseConfiguration(FirehoseConfigurationProperty.builder() + * .streamArn("streamArn") + * .build()) * .logLevel("logLevel") + * .s3Configuration(S3ConfigurationProperty.builder() + * .bucketArn("bucketArn") + * .build()) * .build())) * .build(); * ``` @@ -38,14 +44,16 @@ import kotlin.collections.List */ public interface CfnLogDeliveryConfigurationProps { /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) */ public fun logConfigurations(): Any? = unwrap(this).getLogConfigurations() /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-userpoolid) */ @@ -57,22 +65,28 @@ public interface CfnLogDeliveryConfigurationProps { @CdkDslMarker public interface Builder { /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ public fun logConfigurations(logConfigurations: IResolvable) /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ public fun logConfigurations(logConfigurations: List) /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ public fun logConfigurations(vararg logConfigurations: Any) /** - * @param userPoolId The ID of the user pool where you configured detailed activity logging. + * @param userPoolId The ID of the user pool where you configured logging. */ public fun userPoolId(userPoolId: String) } @@ -83,27 +97,33 @@ public interface CfnLogDeliveryConfigurationProps { software.amazon.awscdk.services.cognito.CfnLogDeliveryConfigurationProps.builder() /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ override fun logConfigurations(logConfigurations: IResolvable) { cdkBuilder.logConfigurations(logConfigurations.let(IResolvable.Companion::unwrap)) } /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ override fun logConfigurations(logConfigurations: List) { cdkBuilder.logConfigurations(logConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param logConfigurations The detailed activity logging destination of a user pool. + * @param logConfigurations A logging destination of a user pool. + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. */ override fun logConfigurations(vararg logConfigurations: Any): Unit = logConfigurations(logConfigurations.toList()) /** - * @param userPoolId The ID of the user pool where you configured detailed activity logging. + * @param userPoolId The ID of the user pool where you configured logging. */ override fun userPoolId(userPoolId: String) { cdkBuilder.userPoolId(userPoolId) @@ -115,16 +135,20 @@ public interface CfnLogDeliveryConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnLogDeliveryConfigurationProps, - ) : CdkObject(cdkObject), CfnLogDeliveryConfigurationProps { + ) : CdkObject(cdkObject), + CfnLogDeliveryConfigurationProps { /** - * The detailed activity logging destination of a user pool. + * A logging destination of a user pool. + * + * User pools can have multiple logging destinations for message-delivery and user-activity + * logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-logconfigurations) */ override fun logConfigurations(): Any? = unwrap(this).getLogConfigurations() /** - * The ID of the user pool where you configured detailed activity logging. + * The ID of the user pool where you configured logging. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-logdeliveryconfiguration.html#cfn-cognito-logdeliveryconfiguration-userpoolid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPool.kt index 86b2344140..803c88653f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPool.kt @@ -64,6 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .challengeRequiredOnNewDevice(false) * .deviceOnlyRememberedOnUserPrompt(false) * .build()) + * .emailAuthenticationMessage("emailAuthenticationMessage") + * .emailAuthenticationSubject("emailAuthenticationSubject") * .emailConfiguration(EmailConfigurationProperty.builder() * .configurationSet("configurationSet") * .emailSendingAccount("emailSendingAccount") @@ -103,6 +105,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .policies(PoliciesProperty.builder() * .passwordPolicy(PasswordPolicyProperty.builder() * .minimumLength(123) + * .passwordHistorySize(123) * .requireLowercase(false) * .requireNumbers(false) * .requireSymbols(false) @@ -140,6 +143,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .caseSensitive(false) * .build()) * .userPoolAddOns(UserPoolAddOnsProperty.builder() + * .advancedSecurityAdditionalFlows(AdvancedSecurityAdditionalFlowsProperty.builder() + * .customAuthMode("customAuthMode") + * .build()) * .advancedSecurityMode("advancedSecurityMode") * .build()) * .userPoolName("userPoolName") @@ -159,7 +165,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPool( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cognito.CfnUserPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -214,26 +222,26 @@ public open class CfnUserPool( accountRecoverySetting(AccountRecoverySettingProperty(`value`)) /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. */ public open fun adminCreateUserConfig(): Any? = unwrap(this).getAdminCreateUserConfig() /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. */ public open fun adminCreateUserConfig(`value`: IResolvable) { unwrap(this).setAdminCreateUserConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. */ public open fun adminCreateUserConfig(`value`: AdminCreateUserConfigProperty) { unwrap(this).setAdminCreateUserConfig(`value`.let(AdminCreateUserConfigProperty.Companion::unwrap)) } /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a26247a0a20ec4848afe270346c20b8a0d598576ae427ad07d74f7e102cf7f6e") @@ -342,6 +350,32 @@ public open class CfnUserPool( public open fun deviceConfiguration(`value`: DeviceConfigurationProperty.Builder.() -> Unit): Unit = deviceConfiguration(DeviceConfigurationProperty(`value`)) + /** + * + */ + public open fun emailAuthenticationMessage(): String? = + unwrap(this).getEmailAuthenticationMessage() + + /** + * + */ + public open fun emailAuthenticationMessage(`value`: String) { + unwrap(this).setEmailAuthenticationMessage(`value`) + } + + /** + * + */ + public open fun emailAuthenticationSubject(): String? = + unwrap(this).getEmailAuthenticationSubject() + + /** + * + */ + public open fun emailAuthenticationSubject(`value`: String) { + unwrap(this).setEmailAuthenticationSubject(`value`) + } + /** * The email configuration of your user pool. */ @@ -420,26 +454,26 @@ public open class CfnUserPool( } /** - * The Lambda trigger configuration information for the new user pool. + * A collection of user pool Lambda triggers. */ public open fun lambdaConfig(): Any? = unwrap(this).getLambdaConfig() /** - * The Lambda trigger configuration information for the new user pool. + * A collection of user pool Lambda triggers. */ public open fun lambdaConfig(`value`: IResolvable) { unwrap(this).setLambdaConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * The Lambda trigger configuration information for the new user pool. + * A collection of user pool Lambda triggers. */ public open fun lambdaConfig(`value`: LambdaConfigProperty) { unwrap(this).setLambdaConfig(`value`.let(LambdaConfigProperty.Companion::unwrap)) } /** - * The Lambda trigger configuration information for the new user pool. + * A collection of user pool Lambda triggers. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("746fcba026dd44cfc248dcc3a74bb75dec1927c844a55e0c3cb65e4935ef3654") @@ -463,26 +497,34 @@ public open class CfnUserPool( } /** - * The policy associated with a user pool. + * A list of user pool policies. + * + * Contains the policy that sets password-complexity requirements. */ public open fun policies(): Any? = unwrap(this).getPolicies() /** - * The policy associated with a user pool. + * A list of user pool policies. + * + * Contains the policy that sets password-complexity requirements. */ public open fun policies(`value`: IResolvable) { unwrap(this).setPolicies(`value`.let(IResolvable.Companion::unwrap)) } /** - * The policy associated with a user pool. + * A list of user pool policies. + * + * Contains the policy that sets password-complexity requirements. */ public open fun policies(`value`: PoliciesProperty) { unwrap(this).setPolicies(`value`.let(PoliciesProperty.Companion::unwrap)) } /** - * The policy associated with a user pool. + * A list of user pool policies. + * + * Contains the policy that sets password-complexity requirements. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c8acea4f8e23426db34b7f27283cfb03e85ea58103fa10ce204a08d84d35d8da") @@ -711,31 +753,31 @@ public open class CfnUserPool( Unit = usernameConfiguration(UsernameConfigurationProperty(`value`)) /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. */ public open fun verificationMessageTemplate(): Any? = unwrap(this).getVerificationMessageTemplate() /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. */ public open fun verificationMessageTemplate(`value`: IResolvable) { unwrap(this).setVerificationMessageTemplate(`value`.let(IResolvable.Companion::unwrap)) } /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. */ public open fun verificationMessageTemplate(`value`: VerificationMessageTemplateProperty) { unwrap(this).setVerificationMessageTemplate(`value`.let(VerificationMessageTemplateProperty.Companion::unwrap)) } /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a739849a2934daad512588221e8cd348c058e98865835fc2950debe0c51ff649") @@ -797,26 +839,62 @@ public open class CfnUserPool( fun accountRecoverySetting(accountRecoverySetting: AccountRecoverySettingProperty.Builder.() -> Unit) /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ public fun adminCreateUserConfig(adminCreateUserConfig: IResolvable) /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ public fun adminCreateUserConfig(adminCreateUserConfig: AdminCreateUserConfigProperty) /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fc3fe1657f113035c8cfe9214c57b409c4a8c5814c069ddcd2b9042f8dbf7fcb") @@ -936,6 +1014,18 @@ public open class CfnUserPool( public fun deviceConfiguration(deviceConfiguration: DeviceConfigurationProperty.Builder.() -> Unit) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationmessage) + * @param emailAuthenticationMessage + */ + public fun emailAuthenticationMessage(emailAuthenticationMessage: String) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationsubject) + * @param emailAuthenticationSubject + */ + public fun emailAuthenticationSubject(emailAuthenticationSubject: String) + /** * The email configuration of your user pool. * @@ -1034,62 +1124,35 @@ public open class CfnUserPool( public fun enabledMfas(vararg enabledMfas: String) /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ public fun lambdaConfig(lambdaConfig: IResolvable) /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ public fun lambdaConfig(lambdaConfig: LambdaConfigProperty) /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ce9ebed52e53df7caf415c831c615f3e079dc4af05892a8d790b56ffbaf46753") @@ -1109,26 +1172,53 @@ public open class CfnUserPool( public fun mfaConfiguration(mfaConfiguration: String) /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ public fun policies(policies: IResolvable) /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ public fun policies(policies: PoliciesProperty) /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2314ae1357fcdad41bc2dff9235f62b786cb7031cd62319f510d5ece0d71b8d6") @@ -1429,33 +1519,48 @@ public open class CfnUserPool( fun usernameConfiguration(usernameConfiguration: UsernameConfigurationProperty.Builder.() -> Unit) /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ public fun verificationMessageTemplate(verificationMessageTemplate: IResolvable) /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ public fun verificationMessageTemplate(verificationMessageTemplate: VerificationMessageTemplateProperty) /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("562526c03ebc016af3ef3117fb389f2040d3aab89ab5facbe2931bdfdfa0cd7a") @@ -1524,30 +1629,66 @@ public open class CfnUserPool( Unit = accountRecoverySetting(AccountRecoverySettingProperty(accountRecoverySetting)) /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ override fun adminCreateUserConfig(adminCreateUserConfig: IResolvable) { cdkBuilder.adminCreateUserConfig(adminCreateUserConfig.let(IResolvable.Companion::unwrap)) } /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ override fun adminCreateUserConfig(adminCreateUserConfig: AdminCreateUserConfigProperty) { cdkBuilder.adminCreateUserConfig(adminCreateUserConfig.let(AdminCreateUserConfigProperty.Companion::unwrap)) } /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fc3fe1657f113035c8cfe9214c57b409c4a8c5814c069ddcd2b9042f8dbf7fcb") @@ -1681,6 +1822,22 @@ public open class CfnUserPool( fun deviceConfiguration(deviceConfiguration: DeviceConfigurationProperty.Builder.() -> Unit): Unit = deviceConfiguration(DeviceConfigurationProperty(deviceConfiguration)) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationmessage) + * @param emailAuthenticationMessage + */ + override fun emailAuthenticationMessage(emailAuthenticationMessage: String) { + cdkBuilder.emailAuthenticationMessage(emailAuthenticationMessage) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationsubject) + * @param emailAuthenticationSubject + */ + override fun emailAuthenticationSubject(emailAuthenticationSubject: String) { + cdkBuilder.emailAuthenticationSubject(emailAuthenticationSubject) + } + /** * The email configuration of your user pool. * @@ -1791,66 +1948,39 @@ public open class CfnUserPool( override fun enabledMfas(vararg enabledMfas: String): Unit = enabledMfas(enabledMfas.toList()) /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ override fun lambdaConfig(lambdaConfig: IResolvable) { cdkBuilder.lambdaConfig(lambdaConfig.let(IResolvable.Companion::unwrap)) } /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ override fun lambdaConfig(lambdaConfig: LambdaConfigProperty) { cdkBuilder.lambdaConfig(lambdaConfig.let(LambdaConfigProperty.Companion::unwrap)) } /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. + * @param lambdaConfig A collection of user pool Lambda triggers. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ce9ebed52e53df7caf415c831c615f3e079dc4af05892a8d790b56ffbaf46753") @@ -1873,30 +2003,57 @@ public open class CfnUserPool( } /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ override fun policies(policies: IResolvable) { cdkBuilder.policies(policies.let(IResolvable.Companion::unwrap)) } /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ override fun policies(policies: PoliciesProperty) { cdkBuilder.policies(policies.let(PoliciesProperty.Companion::unwrap)) } /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2314ae1357fcdad41bc2dff9235f62b786cb7031cd62319f510d5ece0d71b8d6") @@ -2234,24 +2391,34 @@ public open class CfnUserPool( Unit = usernameConfiguration(UsernameConfigurationProperty(usernameConfiguration)) /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ override fun verificationMessageTemplate(verificationMessageTemplate: IResolvable) { cdkBuilder.verificationMessageTemplate(verificationMessageTemplate.let(IResolvable.Companion::unwrap)) } /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ override fun verificationMessageTemplate(verificationMessageTemplate: VerificationMessageTemplateProperty) { @@ -2259,12 +2426,17 @@ public open class CfnUserPool( } /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("562526c03ebc016af3ef3117fb389f2040d3aab89ab5facbe2931bdfdfa0cd7a") @@ -2384,7 +2556,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.AccountRecoverySettingProperty, - ) : CdkObject(cdkObject), AccountRecoverySettingProperty { + ) : CdkObject(cdkObject), + AccountRecoverySettingProperty { /** * The list of `RecoveryOptionTypes` . * @@ -2436,9 +2609,12 @@ public open class CfnUserPool( */ public interface AdminCreateUserConfigProperty { /** - * Set to `True` if only the administrator is allowed to create user profiles. + * The setting for allowing self-service sign-up. * - * Set to `False` if users can sign themselves up via an app. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-allowadmincreateuseronly) */ @@ -2456,17 +2632,20 @@ public open class CfnUserPool( public fun inviteMessageTemplate(): Any? = unwrap(this).getInviteMessageTemplate() /** - * The user account expiration limit, in days, after which a new account that hasn't signed in - * is no longer usable. + * This parameter is no longer in use. * - * To reset the account after that time limit, you must call `AdminCreateUser` again, specifying - * `"RESEND"` for the `MessageAction` parameter. The default value for this parameter is 7. + * Configure the duration of temporary passwords with the `TemporaryPasswordValidityDays` + * parameter of + * [PasswordPolicyType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_PasswordPolicyType.html) + * . For older user pools that have a `UnusedAccountValidityDays` configuration, that value is + * effective until you set a value for `TemporaryPasswordValidityDays` . * + * The password expiration limit in days for administrator-created users. When this time + * expires, the user can't sign in with their temporary password. To reset the account after that + * time limit, you must call `AdminCreateUser` again, specifying `RESEND` for the `MessageAction` + * parameter. * - * If you set a value for `TemporaryPasswordValidityDays` in `PasswordPolicy` , that value will - * be used, and `UnusedAccountValidityDays` will be no longer be an available parameter for that - * user pool. - * + * The default value for this parameter is 7. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-unusedaccountvaliditydays) */ @@ -2478,16 +2657,20 @@ public open class CfnUserPool( @CdkDslMarker public interface Builder { /** - * @param allowAdminCreateUserOnly Set to `True` if only the administrator is allowed to - * create user profiles. - * Set to `False` if users can sign themselves up via an app. + * @param allowAdminCreateUserOnly The setting for allowing self-service sign-up. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. */ public fun allowAdminCreateUserOnly(allowAdminCreateUserOnly: Boolean) /** - * @param allowAdminCreateUserOnly Set to `True` if only the administrator is allowed to - * create user profiles. - * Set to `False` if users can sign themselves up via an app. + * @param allowAdminCreateUserOnly The setting for allowing self-service sign-up. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. */ public fun allowAdminCreateUserOnly(allowAdminCreateUserOnly: IResolvable) @@ -2522,16 +2705,19 @@ public open class CfnUserPool( fun inviteMessageTemplate(inviteMessageTemplate: InviteMessageTemplateProperty.Builder.() -> Unit) /** - * @param unusedAccountValidityDays The user account expiration limit, in days, after which a - * new account that hasn't signed in is no longer usable. - * To reset the account after that time limit, you must call `AdminCreateUser` again, - * specifying `"RESEND"` for the `MessageAction` parameter. The default value for this parameter - * is 7. + * @param unusedAccountValidityDays This parameter is no longer in use. + * Configure the duration of temporary passwords with the `TemporaryPasswordValidityDays` + * parameter of + * [PasswordPolicyType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_PasswordPolicyType.html) + * . For older user pools that have a `UnusedAccountValidityDays` configuration, that value is + * effective until you set a value for `TemporaryPasswordValidityDays` . * + * The password expiration limit in days for administrator-created users. When this time + * expires, the user can't sign in with their temporary password. To reset the account after that + * time limit, you must call `AdminCreateUser` again, specifying `RESEND` for the `MessageAction` + * parameter. * - * If you set a value for `TemporaryPasswordValidityDays` in `PasswordPolicy` , that value - * will be used, and `UnusedAccountValidityDays` will be no longer be an available parameter for - * that user pool. + * The default value for this parameter is 7. */ public fun unusedAccountValidityDays(unusedAccountValidityDays: Number) } @@ -2543,18 +2729,22 @@ public open class CfnUserPool( software.amazon.awscdk.services.cognito.CfnUserPool.AdminCreateUserConfigProperty.builder() /** - * @param allowAdminCreateUserOnly Set to `True` if only the administrator is allowed to - * create user profiles. - * Set to `False` if users can sign themselves up via an app. + * @param allowAdminCreateUserOnly The setting for allowing self-service sign-up. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. */ override fun allowAdminCreateUserOnly(allowAdminCreateUserOnly: Boolean) { cdkBuilder.allowAdminCreateUserOnly(allowAdminCreateUserOnly) } /** - * @param allowAdminCreateUserOnly Set to `True` if only the administrator is allowed to - * create user profiles. - * Set to `False` if users can sign themselves up via an app. + * @param allowAdminCreateUserOnly The setting for allowing self-service sign-up. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. */ override fun allowAdminCreateUserOnly(allowAdminCreateUserOnly: IResolvable) { cdkBuilder.allowAdminCreateUserOnly(allowAdminCreateUserOnly.let(IResolvable.Companion::unwrap)) @@ -2596,16 +2786,19 @@ public open class CfnUserPool( Unit = inviteMessageTemplate(InviteMessageTemplateProperty(inviteMessageTemplate)) /** - * @param unusedAccountValidityDays The user account expiration limit, in days, after which a - * new account that hasn't signed in is no longer usable. - * To reset the account after that time limit, you must call `AdminCreateUser` again, - * specifying `"RESEND"` for the `MessageAction` parameter. The default value for this parameter - * is 7. + * @param unusedAccountValidityDays This parameter is no longer in use. + * Configure the duration of temporary passwords with the `TemporaryPasswordValidityDays` + * parameter of + * [PasswordPolicyType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_PasswordPolicyType.html) + * . For older user pools that have a `UnusedAccountValidityDays` configuration, that value is + * effective until you set a value for `TemporaryPasswordValidityDays` . * + * The password expiration limit in days for administrator-created users. When this time + * expires, the user can't sign in with their temporary password. To reset the account after that + * time limit, you must call `AdminCreateUser` again, specifying `RESEND` for the `MessageAction` + * parameter. * - * If you set a value for `TemporaryPasswordValidityDays` in `PasswordPolicy` , that value - * will be used, and `UnusedAccountValidityDays` will be no longer be an available parameter for - * that user pool. + * The default value for this parameter is 7. */ override fun unusedAccountValidityDays(unusedAccountValidityDays: Number) { cdkBuilder.unusedAccountValidityDays(unusedAccountValidityDays) @@ -2618,11 +2811,15 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.AdminCreateUserConfigProperty, - ) : CdkObject(cdkObject), AdminCreateUserConfigProperty { + ) : CdkObject(cdkObject), + AdminCreateUserConfigProperty { /** - * Set to `True` if only the administrator is allowed to create user profiles. + * The setting for allowing self-service sign-up. * - * Set to `False` if users can sign themselves up via an app. + * When `true` , only administrators can create new user profiles. When `false` , users can + * register themselves and create a new user profile with the + * [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) + * operation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-allowadmincreateuseronly) */ @@ -2640,18 +2837,20 @@ public open class CfnUserPool( override fun inviteMessageTemplate(): Any? = unwrap(this).getInviteMessageTemplate() /** - * The user account expiration limit, in days, after which a new account that hasn't signed in - * is no longer usable. - * - * To reset the account after that time limit, you must call `AdminCreateUser` again, - * specifying `"RESEND"` for the `MessageAction` parameter. The default value for this parameter - * is 7. + * This parameter is no longer in use. * + * Configure the duration of temporary passwords with the `TemporaryPasswordValidityDays` + * parameter of + * [PasswordPolicyType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_PasswordPolicyType.html) + * . For older user pools that have a `UnusedAccountValidityDays` configuration, that value is + * effective until you set a value for `TemporaryPasswordValidityDays` . * - * If you set a value for `TemporaryPasswordValidityDays` in `PasswordPolicy` , that value - * will be used, and `UnusedAccountValidityDays` will be no longer be an available parameter for - * that user pool. + * The password expiration limit in days for administrator-created users. When this time + * expires, the user can't sign in with their temporary password. To reset the account after that + * time limit, you must call `AdminCreateUser` again, specifying `RESEND` for the `MessageAction` + * parameter. * + * The default value for this parameter is 7. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-unusedaccountvaliditydays) */ @@ -2677,6 +2876,85 @@ public open class CfnUserPool( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.cognito.*; + * AdvancedSecurityAdditionalFlowsProperty advancedSecurityAdditionalFlowsProperty = + * AdvancedSecurityAdditionalFlowsProperty.builder() + * .customAuthMode("customAuthMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-advancedsecurityadditionalflows.html) + */ + public interface AdvancedSecurityAdditionalFlowsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-advancedsecurityadditionalflows.html#cfn-cognito-userpool-advancedsecurityadditionalflows-customauthmode) + */ + public fun customAuthMode(): String? = unwrap(this).getCustomAuthMode() + + /** + * A builder for [AdvancedSecurityAdditionalFlowsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param customAuthMode the value to be set. + */ + public fun customAuthMode(customAuthMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty.Builder + = + software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty.builder() + + /** + * @param customAuthMode the value to be set. + */ + override fun customAuthMode(customAuthMode: String) { + cdkBuilder.customAuthMode(customAuthMode) + } + + public fun build(): + software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty, + ) : CdkObject(cdkObject), + AdvancedSecurityAdditionalFlowsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-advancedsecurityadditionalflows.html#cfn-cognito-userpool-advancedsecurityadditionalflows-customauthmode) + */ + override fun customAuthMode(): String? = unwrap(this).getCustomAuthMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + AdvancedSecurityAdditionalFlowsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty): + AdvancedSecurityAdditionalFlowsProperty = CdkObjectWrappers.wrap(cdkObject) as? + AdvancedSecurityAdditionalFlowsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AdvancedSecurityAdditionalFlowsProperty): + software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.cognito.CfnUserPool.AdvancedSecurityAdditionalFlowsProperty + } + } + /** * A custom email sender AWS Lambda trigger. * @@ -2763,7 +3041,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.CustomEmailSenderProperty, - ) : CdkObject(cdkObject), CustomEmailSenderProperty { + ) : CdkObject(cdkObject), + CustomEmailSenderProperty { /** * The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Cognito triggers to * send email notifications to users. @@ -2885,7 +3164,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.CustomSMSSenderProperty, - ) : CdkObject(cdkObject), CustomSMSSenderProperty { + ) : CdkObject(cdkObject), + CustomSMSSenderProperty { /** * The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Cognito triggers to * send SMS notifications to users. @@ -2948,6 +3228,14 @@ public open class CfnUserPool( * When you provide a value for any property of `DeviceConfiguration` , you activate the device * remembering for the user pool. * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . + * * * Example: * @@ -3117,7 +3405,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.DeviceConfigurationProperty, - ) : CdkObject(cdkObject), DeviceConfigurationProperty { + ) : CdkObject(cdkObject), + DeviceConfigurationProperty { /** * When true, a remembered device can sign in with device authentication instead of SMS and * time-based one-time password (TOTP) factors for multi-factor authentication (MFA). @@ -3507,7 +3796,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.EmailConfigurationProperty, - ) : CdkObject(cdkObject), EmailConfigurationProperty { + ) : CdkObject(cdkObject), + EmailConfigurationProperty { /** * The set of configuration rules that can be applied to emails sent using Amazon SES. * @@ -3630,7 +3920,7 @@ public open class CfnUserPool( } /** - * The message template to be used for the welcome message to new users. + * The template for the welcome message to new users. * * See also [Customizing User Invitation * Messages](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html#cognito-user-pool-settings-user-invitation-message-customization) @@ -3749,7 +4039,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.InviteMessageTemplateProperty, - ) : CdkObject(cdkObject), InviteMessageTemplateProperty { + ) : CdkObject(cdkObject), + InviteMessageTemplateProperty { /** * The message template for email messages. * @@ -3799,7 +4090,18 @@ public open class CfnUserPool( } /** - * Specifies the configuration for AWS Lambda triggers. + * A collection of user pool Lambda triggers. + * + * Amazon Cognito invokes triggers at several possible stages of user pool operations. Triggers + * can modify the outcome of the operations that invoked them. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * Example: * @@ -3838,7 +4140,10 @@ public open class CfnUserPool( */ public interface LambdaConfigProperty { /** - * Creates an authentication challenge. + * The configuration of a create auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-createauthchallenge) */ @@ -3852,7 +4157,12 @@ public open class CfnUserPool( public fun customEmailSender(): Any? = unwrap(this).getCustomEmailSender() /** - * A custom Message AWS Lambda trigger. + * A custom message Lambda trigger. + * + * This trigger is an opportunity to customize all SMS and email messages from your user pool. + * When a custom message trigger is active, your user pool routes all messages to a Lambda function + * that returns a runtime-customized message subject and body for your user pool to deliver to a + * user. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-custommessage) */ @@ -3866,7 +4176,10 @@ public open class CfnUserPool( public fun customSmsSender(): Any? = unwrap(this).getCustomSmsSender() /** - * Defines the authentication challenge. + * The configuration of a define auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-defineauthchallenge) */ @@ -3883,51 +4196,62 @@ public open class CfnUserPool( public fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() /** - * A post-authentication AWS Lambda trigger. + * The configuration of a [post authentication Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html) + * in a user pool. This trigger can take custom actions after a user signs in. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postauthentication) */ public fun postAuthentication(): String? = unwrap(this).getPostAuthentication() /** - * A post-confirmation AWS Lambda trigger. + * The configuration of a [post confirmation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html) + * in a user pool. This trigger can take custom actions after a user confirms their user account + * and their email address or phone number. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postconfirmation) */ public fun postConfirmation(): String? = unwrap(this).getPostConfirmation() /** - * A pre-authentication AWS Lambda trigger. + * The configuration of a [pre authentication + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html) + * in a user pool. This trigger can evaluate and modify user sign-in events. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-preauthentication) */ public fun preAuthentication(): String? = unwrap(this).getPreAuthentication() /** - * A pre-registration AWS Lambda trigger. + * The configuration of a [pre sign-up Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) + * in a user pool. This trigger evaluates new users and can bypass confirmation, [link a federated + * user + * profile](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html) + * , or block sign-up requests. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-presignup) */ public fun preSignUp(): String? = unwrap(this).getPreSignUp() /** - * The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda - * trigger. + * The legacy configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. * * Set this parameter for legacy purposes. If you also set an ARN in `PreTokenGenerationConfig` * , its value must be identical to `PreTokenGeneration` . For new instances of pre token * generation triggers, set the `LambdaArn` of `PreTokenGenerationConfig` . * - * You can set `` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-pretokengeneration) */ public fun preTokenGeneration(): String? = unwrap(this).getPreTokenGeneration() /** - * The detailed configuration of a pre token generation trigger. - * - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to + * The detailed configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical to * `PreTokenGenerationConfig` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-pretokengenerationconfig) @@ -3935,14 +4259,20 @@ public open class CfnUserPool( public fun preTokenGenerationConfig(): Any? = unwrap(this).getPreTokenGenerationConfig() /** - * The user migration Lambda config type. + * The configuration of a [migrate user Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html) + * in a user pool. This trigger can create user profiles when users sign in or attempt to reset + * their password with credentials that don't exist yet. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-usermigration) */ public fun userMigration(): String? = unwrap(this).getUserMigration() /** - * Verifies the authentication challenge response. + * The configuration of a verify auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-verifyauthchallengeresponse) */ @@ -3955,7 +4285,10 @@ public open class CfnUserPool( @CdkDslMarker public interface Builder { /** - * @param createAuthChallenge Creates an authentication challenge. + * @param createAuthChallenge The configuration of a create auth challenge Lambda trigger, one + * of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ public fun createAuthChallenge(createAuthChallenge: String) @@ -3977,7 +4310,11 @@ public open class CfnUserPool( public fun customEmailSender(customEmailSender: CustomEmailSenderProperty.Builder.() -> Unit) /** - * @param customMessage A custom Message AWS Lambda trigger. + * @param customMessage A custom message Lambda trigger. + * This trigger is an opportunity to customize all SMS and email messages from your user pool. + * When a custom message trigger is active, your user pool routes all messages to a Lambda + * function that returns a runtime-customized message subject and body for your user pool to + * deliver to a user. */ public fun customMessage(customMessage: String) @@ -3999,7 +4336,10 @@ public open class CfnUserPool( public fun customSmsSender(customSmsSender: CustomSMSSenderProperty.Builder.() -> Unit) /** - * @param defineAuthChallenge Defines the authentication challenge. + * @param defineAuthChallenge The configuration of a define auth challenge Lambda trigger, one + * of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ public fun defineAuthChallenge(defineAuthChallenge: String) @@ -4011,59 +4351,73 @@ public open class CfnUserPool( public fun kmsKeyId(kmsKeyId: String) /** - * @param postAuthentication A post-authentication AWS Lambda trigger. + * @param postAuthentication The configuration of a [post authentication Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html) + * in a user pool. This trigger can take custom actions after a user signs in. */ public fun postAuthentication(postAuthentication: String) /** - * @param postConfirmation A post-confirmation AWS Lambda trigger. + * @param postConfirmation The configuration of a [post confirmation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html) + * in a user pool. This trigger can take custom actions after a user confirms their user account + * and their email address or phone number. */ public fun postConfirmation(postConfirmation: String) /** - * @param preAuthentication A pre-authentication AWS Lambda trigger. + * @param preAuthentication The configuration of a [pre authentication + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html) + * in a user pool. This trigger can evaluate and modify user sign-in events. */ public fun preAuthentication(preAuthentication: String) /** - * @param preSignUp A pre-registration AWS Lambda trigger. + * @param preSignUp The configuration of a [pre sign-up Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) + * in a user pool. This trigger evaluates new users and can bypass confirmation, [link a + * federated user + * profile](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html) + * , or block sign-up requests. */ public fun preSignUp(preSignUp: String) /** - * @param preTokenGeneration The Amazon Resource Name (ARN) of the function that you want to - * assign to your Lambda trigger. + * @param preTokenGeneration The legacy configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. * Set this parameter for legacy purposes. If you also set an ARN in * `PreTokenGenerationConfig` , its value must be identical to `PreTokenGeneration` . For new * instances of pre token generation triggers, set the `LambdaArn` of `PreTokenGenerationConfig` * . - * - * You can set `` */ public fun preTokenGeneration(preTokenGeneration: String) /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ public fun preTokenGenerationConfig(preTokenGenerationConfig: IResolvable) /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ public fun preTokenGenerationConfig(preTokenGenerationConfig: PreTokenGenerationConfigProperty) /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2c425a8910dea4d16cc4bf204847a407cf8f4e8c879c77e5567cd60d70cc82e0") @@ -4071,12 +4425,18 @@ public open class CfnUserPool( fun preTokenGenerationConfig(preTokenGenerationConfig: PreTokenGenerationConfigProperty.Builder.() -> Unit) /** - * @param userMigration The user migration Lambda config type. + * @param userMigration The configuration of a [migrate user Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html) + * in a user pool. This trigger can create user profiles when users sign in or attempt to reset + * their password with credentials that don't exist yet. */ public fun userMigration(userMigration: String) /** - * @param verifyAuthChallengeResponse Verifies the authentication challenge response. + * @param verifyAuthChallengeResponse The configuration of a verify auth challenge Lambda + * trigger, one of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ public fun verifyAuthChallengeResponse(verifyAuthChallengeResponse: String) } @@ -4087,7 +4447,10 @@ public open class CfnUserPool( software.amazon.awscdk.services.cognito.CfnUserPool.LambdaConfigProperty.builder() /** - * @param createAuthChallenge Creates an authentication challenge. + * @param createAuthChallenge The configuration of a create auth challenge Lambda trigger, one + * of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ override fun createAuthChallenge(createAuthChallenge: String) { cdkBuilder.createAuthChallenge(createAuthChallenge) @@ -4117,7 +4480,11 @@ public open class CfnUserPool( Unit = customEmailSender(CustomEmailSenderProperty(customEmailSender)) /** - * @param customMessage A custom Message AWS Lambda trigger. + * @param customMessage A custom message Lambda trigger. + * This trigger is an opportunity to customize all SMS and email messages from your user pool. + * When a custom message trigger is active, your user pool routes all messages to a Lambda + * function that returns a runtime-customized message subject and body for your user pool to + * deliver to a user. */ override fun customMessage(customMessage: String) { cdkBuilder.customMessage(customMessage) @@ -4146,7 +4513,10 @@ public open class CfnUserPool( Unit = customSmsSender(CustomSMSSenderProperty(customSmsSender)) /** - * @param defineAuthChallenge Defines the authentication challenge. + * @param defineAuthChallenge The configuration of a define auth challenge Lambda trigger, one + * of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ override fun defineAuthChallenge(defineAuthChallenge: String) { cdkBuilder.defineAuthChallenge(defineAuthChallenge) @@ -4162,62 +4532,75 @@ public open class CfnUserPool( } /** - * @param postAuthentication A post-authentication AWS Lambda trigger. + * @param postAuthentication The configuration of a [post authentication Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html) + * in a user pool. This trigger can take custom actions after a user signs in. */ override fun postAuthentication(postAuthentication: String) { cdkBuilder.postAuthentication(postAuthentication) } /** - * @param postConfirmation A post-confirmation AWS Lambda trigger. + * @param postConfirmation The configuration of a [post confirmation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html) + * in a user pool. This trigger can take custom actions after a user confirms their user account + * and their email address or phone number. */ override fun postConfirmation(postConfirmation: String) { cdkBuilder.postConfirmation(postConfirmation) } /** - * @param preAuthentication A pre-authentication AWS Lambda trigger. + * @param preAuthentication The configuration of a [pre authentication + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html) + * in a user pool. This trigger can evaluate and modify user sign-in events. */ override fun preAuthentication(preAuthentication: String) { cdkBuilder.preAuthentication(preAuthentication) } /** - * @param preSignUp A pre-registration AWS Lambda trigger. + * @param preSignUp The configuration of a [pre sign-up Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) + * in a user pool. This trigger evaluates new users and can bypass confirmation, [link a + * federated user + * profile](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html) + * , or block sign-up requests. */ override fun preSignUp(preSignUp: String) { cdkBuilder.preSignUp(preSignUp) } /** - * @param preTokenGeneration The Amazon Resource Name (ARN) of the function that you want to - * assign to your Lambda trigger. + * @param preTokenGeneration The legacy configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. * Set this parameter for legacy purposes. If you also set an ARN in * `PreTokenGenerationConfig` , its value must be identical to `PreTokenGeneration` . For new * instances of pre token generation triggers, set the `LambdaArn` of `PreTokenGenerationConfig` * . - * - * You can set `` */ override fun preTokenGeneration(preTokenGeneration: String) { cdkBuilder.preTokenGeneration(preTokenGeneration) } /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ override fun preTokenGenerationConfig(preTokenGenerationConfig: IResolvable) { cdkBuilder.preTokenGenerationConfig(preTokenGenerationConfig.let(IResolvable.Companion::unwrap)) } /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ override fun preTokenGenerationConfig(preTokenGenerationConfig: PreTokenGenerationConfigProperty) { @@ -4225,10 +4608,11 @@ public open class CfnUserPool( } /** - * @param preTokenGenerationConfig The detailed configuration of a pre token generation - * trigger. - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * @param preTokenGenerationConfig The detailed configuration of a [pre token generation + * Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2c425a8910dea4d16cc4bf204847a407cf8f4e8c879c77e5567cd60d70cc82e0") @@ -4238,14 +4622,20 @@ public open class CfnUserPool( preTokenGenerationConfig(PreTokenGenerationConfigProperty(preTokenGenerationConfig)) /** - * @param userMigration The user migration Lambda config type. + * @param userMigration The configuration of a [migrate user Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html) + * in a user pool. This trigger can create user profiles when users sign in or attempt to reset + * their password with credentials that don't exist yet. */ override fun userMigration(userMigration: String) { cdkBuilder.userMigration(userMigration) } /** - * @param verifyAuthChallengeResponse Verifies the authentication challenge response. + * @param verifyAuthChallengeResponse The configuration of a verify auth challenge Lambda + * trigger, one of three triggers in the sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . */ override fun verifyAuthChallengeResponse(verifyAuthChallengeResponse: String) { cdkBuilder.verifyAuthChallengeResponse(verifyAuthChallengeResponse) @@ -4257,9 +4647,13 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.LambdaConfigProperty, - ) : CdkObject(cdkObject), LambdaConfigProperty { + ) : CdkObject(cdkObject), + LambdaConfigProperty { /** - * Creates an authentication challenge. + * The configuration of a create auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-createauthchallenge) */ @@ -4273,7 +4667,12 @@ public open class CfnUserPool( override fun customEmailSender(): Any? = unwrap(this).getCustomEmailSender() /** - * A custom Message AWS Lambda trigger. + * A custom message Lambda trigger. + * + * This trigger is an opportunity to customize all SMS and email messages from your user pool. + * When a custom message trigger is active, your user pool routes all messages to a Lambda + * function that returns a runtime-customized message subject and body for your user pool to + * deliver to a user. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-custommessage) */ @@ -4287,7 +4686,10 @@ public open class CfnUserPool( override fun customSmsSender(): Any? = unwrap(this).getCustomSmsSender() /** - * Defines the authentication challenge. + * The configuration of a define auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-defineauthchallenge) */ @@ -4304,67 +4706,84 @@ public open class CfnUserPool( override fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() /** - * A post-authentication AWS Lambda trigger. + * The configuration of a [post authentication Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html) + * in a user pool. This trigger can take custom actions after a user signs in. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postauthentication) */ override fun postAuthentication(): String? = unwrap(this).getPostAuthentication() /** - * A post-confirmation AWS Lambda trigger. + * The configuration of a [post confirmation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html) + * in a user pool. This trigger can take custom actions after a user confirms their user account + * and their email address or phone number. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-postconfirmation) */ override fun postConfirmation(): String? = unwrap(this).getPostConfirmation() /** - * A pre-authentication AWS Lambda trigger. + * The configuration of a [pre authentication + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html) + * in a user pool. This trigger can evaluate and modify user sign-in events. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-preauthentication) */ override fun preAuthentication(): String? = unwrap(this).getPreAuthentication() /** - * A pre-registration AWS Lambda trigger. + * The configuration of a [pre sign-up Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) + * in a user pool. This trigger evaluates new users and can bypass confirmation, [link a + * federated user + * profile](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html) + * , or block sign-up requests. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-presignup) */ override fun preSignUp(): String? = unwrap(this).getPreSignUp() /** - * The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda - * trigger. + * The legacy configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. * * Set this parameter for legacy purposes. If you also set an ARN in * `PreTokenGenerationConfig` , its value must be identical to `PreTokenGeneration` . For new * instances of pre token generation triggers, set the `LambdaArn` of `PreTokenGenerationConfig` * . * - * You can set `` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-pretokengeneration) */ override fun preTokenGeneration(): String? = unwrap(this).getPreTokenGeneration() /** - * The detailed configuration of a pre token generation trigger. - * - * If you also set an ARN in `PreTokenGeneration` , its value must be identical to - * `PreTokenGenerationConfig` . + * The detailed configuration of a [pre token generation Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html) + * in a user pool. If you also set an ARN in `PreTokenGeneration` , its value must be identical + * to `PreTokenGenerationConfig` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-pretokengenerationconfig) */ override fun preTokenGenerationConfig(): Any? = unwrap(this).getPreTokenGenerationConfig() /** - * The user migration Lambda config type. + * The configuration of a [migrate user Lambda + * trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html) + * in a user pool. This trigger can create user profiles when users sign in or attempt to reset + * their password with credentials that don't exist yet. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-usermigration) */ override fun userMigration(): String? = unwrap(this).getUserMigration() /** - * Verifies the authentication challenge response. + * The configuration of a verify auth challenge Lambda trigger, one of three triggers in the + * sequence of the [custom authentication challenge + * triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-verifyauthchallengeresponse) */ @@ -4391,7 +4810,17 @@ public open class CfnUserPool( } /** - * The minimum and maximum values of an attribute that is of the number data type. + * The minimum and maximum values of an attribute that is of the number type, for example + * `custom:age` . + * + * This data type is part of + * [SchemaAttributeType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SchemaAttributeType.html) + * . It defines the length constraints on number-type attributes that you configure in + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and displays the length constraints of all number-type attributes in the response to + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) * * Example: * @@ -4473,7 +4902,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.NumberAttributeConstraintsProperty, - ) : CdkObject(cdkObject), NumberAttributeConstraintsProperty { + ) : CdkObject(cdkObject), + NumberAttributeConstraintsProperty { /** * The maximum length of a number attribute value. * @@ -4512,7 +4942,16 @@ public open class CfnUserPool( } /** - * The password policy type. + * The password policy settings for a user pool, including complexity, history, and length + * requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * Example: * @@ -4522,6 +4961,7 @@ public open class CfnUserPool( * import io.cloudshiftdev.awscdk.services.cognito.*; * PasswordPolicyProperty passwordPolicyProperty = PasswordPolicyProperty.builder() * .minimumLength(123) + * .passwordHistorySize(123) * .requireLowercase(false) * .requireNumbers(false) * .requireSymbols(false) @@ -4543,32 +4983,50 @@ public open class CfnUserPool( public fun minimumLength(): Number? = unwrap(this).getMinimumLength() /** - * In the password policy that you have set, refers to whether you have required users to use at - * least one lowercase letter in their password. + * The number of previous passwords that you want Amazon Cognito to restrict each user from + * reusing. + * + * Users can't set a password that matches any of `n` previous passwords, where `n` is the value + * of `PasswordHistorySize` . + * + * Password history isn't enforced and isn't displayed in + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * responses when you set this value to `0` or don't provide it. To activate this setting, + * [advanced security + * features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) + * must be active in your user pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-passwordhistorysize) + */ + public fun passwordHistorySize(): Number? = unwrap(this).getPasswordHistorySize() + + /** + * The requirement in a password policy that users must include at least one lowercase letter in + * their password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirelowercase) */ public fun requireLowercase(): Any? = unwrap(this).getRequireLowercase() /** - * In the password policy that you have set, refers to whether you have required users to use at - * least one number in their password. + * The requirement in a password policy that users must include at least one number in their + * password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirenumbers) */ public fun requireNumbers(): Any? = unwrap(this).getRequireNumbers() /** - * In the password policy that you have set, refers to whether you have required users to use at - * least one symbol in their password. + * The requirement in a password policy that users must include at least one symbol in their + * password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requiresymbols) */ public fun requireSymbols(): Any? = unwrap(this).getRequireSymbols() /** - * In the password policy that you have set, refers to whether you have required users to use at - * least one uppercase letter in their password. + * The requirement in a password policy that users must include at least one uppercase letter in + * their password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requireuppercase) */ @@ -4603,50 +5061,65 @@ public open class CfnUserPool( public fun minimumLength(minimumLength: Number) /** - * @param requireLowercase In the password policy that you have set, refers to whether you - * have required users to use at least one lowercase letter in their password. + * @param passwordHistorySize The number of previous passwords that you want Amazon Cognito to + * restrict each user from reusing. + * Users can't set a password that matches any of `n` previous passwords, where `n` is the + * value of `PasswordHistorySize` . + * + * Password history isn't enforced and isn't displayed in + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * responses when you set this value to `0` or don't provide it. To activate this setting, + * [advanced security + * features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) + * must be active in your user pool. + */ + public fun passwordHistorySize(passwordHistorySize: Number) + + /** + * @param requireLowercase The requirement in a password policy that users must include at + * least one lowercase letter in their password. */ public fun requireLowercase(requireLowercase: Boolean) /** - * @param requireLowercase In the password policy that you have set, refers to whether you - * have required users to use at least one lowercase letter in their password. + * @param requireLowercase The requirement in a password policy that users must include at + * least one lowercase letter in their password. */ public fun requireLowercase(requireLowercase: IResolvable) /** - * @param requireNumbers In the password policy that you have set, refers to whether you have - * required users to use at least one number in their password. + * @param requireNumbers The requirement in a password policy that users must include at least + * one number in their password. */ public fun requireNumbers(requireNumbers: Boolean) /** - * @param requireNumbers In the password policy that you have set, refers to whether you have - * required users to use at least one number in their password. + * @param requireNumbers The requirement in a password policy that users must include at least + * one number in their password. */ public fun requireNumbers(requireNumbers: IResolvable) /** - * @param requireSymbols In the password policy that you have set, refers to whether you have - * required users to use at least one symbol in their password. + * @param requireSymbols The requirement in a password policy that users must include at least + * one symbol in their password. */ public fun requireSymbols(requireSymbols: Boolean) /** - * @param requireSymbols In the password policy that you have set, refers to whether you have - * required users to use at least one symbol in their password. + * @param requireSymbols The requirement in a password policy that users must include at least + * one symbol in their password. */ public fun requireSymbols(requireSymbols: IResolvable) /** - * @param requireUppercase In the password policy that you have set, refers to whether you - * have required users to use at least one uppercase letter in their password. + * @param requireUppercase The requirement in a password policy that users must include at + * least one uppercase letter in their password. */ public fun requireUppercase(requireUppercase: Boolean) /** - * @param requireUppercase In the password policy that you have set, refers to whether you - * have required users to use at least one uppercase letter in their password. + * @param requireUppercase The requirement in a password policy that users must include at + * least one uppercase letter in their password. */ public fun requireUppercase(requireUppercase: IResolvable) @@ -4678,64 +5151,81 @@ public open class CfnUserPool( } /** - * @param requireLowercase In the password policy that you have set, refers to whether you - * have required users to use at least one lowercase letter in their password. + * @param passwordHistorySize The number of previous passwords that you want Amazon Cognito to + * restrict each user from reusing. + * Users can't set a password that matches any of `n` previous passwords, where `n` is the + * value of `PasswordHistorySize` . + * + * Password history isn't enforced and isn't displayed in + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * responses when you set this value to `0` or don't provide it. To activate this setting, + * [advanced security + * features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) + * must be active in your user pool. + */ + override fun passwordHistorySize(passwordHistorySize: Number) { + cdkBuilder.passwordHistorySize(passwordHistorySize) + } + + /** + * @param requireLowercase The requirement in a password policy that users must include at + * least one lowercase letter in their password. */ override fun requireLowercase(requireLowercase: Boolean) { cdkBuilder.requireLowercase(requireLowercase) } /** - * @param requireLowercase In the password policy that you have set, refers to whether you - * have required users to use at least one lowercase letter in their password. + * @param requireLowercase The requirement in a password policy that users must include at + * least one lowercase letter in their password. */ override fun requireLowercase(requireLowercase: IResolvable) { cdkBuilder.requireLowercase(requireLowercase.let(IResolvable.Companion::unwrap)) } /** - * @param requireNumbers In the password policy that you have set, refers to whether you have - * required users to use at least one number in their password. + * @param requireNumbers The requirement in a password policy that users must include at least + * one number in their password. */ override fun requireNumbers(requireNumbers: Boolean) { cdkBuilder.requireNumbers(requireNumbers) } /** - * @param requireNumbers In the password policy that you have set, refers to whether you have - * required users to use at least one number in their password. + * @param requireNumbers The requirement in a password policy that users must include at least + * one number in their password. */ override fun requireNumbers(requireNumbers: IResolvable) { cdkBuilder.requireNumbers(requireNumbers.let(IResolvable.Companion::unwrap)) } /** - * @param requireSymbols In the password policy that you have set, refers to whether you have - * required users to use at least one symbol in their password. + * @param requireSymbols The requirement in a password policy that users must include at least + * one symbol in their password. */ override fun requireSymbols(requireSymbols: Boolean) { cdkBuilder.requireSymbols(requireSymbols) } /** - * @param requireSymbols In the password policy that you have set, refers to whether you have - * required users to use at least one symbol in their password. + * @param requireSymbols The requirement in a password policy that users must include at least + * one symbol in their password. */ override fun requireSymbols(requireSymbols: IResolvable) { cdkBuilder.requireSymbols(requireSymbols.let(IResolvable.Companion::unwrap)) } /** - * @param requireUppercase In the password policy that you have set, refers to whether you - * have required users to use at least one uppercase letter in their password. + * @param requireUppercase The requirement in a password policy that users must include at + * least one uppercase letter in their password. */ override fun requireUppercase(requireUppercase: Boolean) { cdkBuilder.requireUppercase(requireUppercase) } /** - * @param requireUppercase In the password policy that you have set, refers to whether you - * have required users to use at least one uppercase letter in their password. + * @param requireUppercase The requirement in a password policy that users must include at + * least one uppercase letter in their password. */ override fun requireUppercase(requireUppercase: IResolvable) { cdkBuilder.requireUppercase(requireUppercase.let(IResolvable.Companion::unwrap)) @@ -4762,7 +5252,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.PasswordPolicyProperty, - ) : CdkObject(cdkObject), PasswordPolicyProperty { + ) : CdkObject(cdkObject), + PasswordPolicyProperty { /** * The minimum length of the password in the policy that you have set. * @@ -4773,32 +5264,50 @@ public open class CfnUserPool( override fun minimumLength(): Number? = unwrap(this).getMinimumLength() /** - * In the password policy that you have set, refers to whether you have required users to use - * at least one lowercase letter in their password. + * The number of previous passwords that you want Amazon Cognito to restrict each user from + * reusing. + * + * Users can't set a password that matches any of `n` previous passwords, where `n` is the + * value of `PasswordHistorySize` . + * + * Password history isn't enforced and isn't displayed in + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * responses when you set this value to `0` or don't provide it. To activate this setting, + * [advanced security + * features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) + * must be active in your user pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-passwordhistorysize) + */ + override fun passwordHistorySize(): Number? = unwrap(this).getPasswordHistorySize() + + /** + * The requirement in a password policy that users must include at least one lowercase letter + * in their password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirelowercase) */ override fun requireLowercase(): Any? = unwrap(this).getRequireLowercase() /** - * In the password policy that you have set, refers to whether you have required users to use - * at least one number in their password. + * The requirement in a password policy that users must include at least one number in their + * password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requirenumbers) */ override fun requireNumbers(): Any? = unwrap(this).getRequireNumbers() /** - * In the password policy that you have set, refers to whether you have required users to use - * at least one symbol in their password. + * The requirement in a password policy that users must include at least one symbol in their + * password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requiresymbols) */ override fun requireSymbols(): Any? = unwrap(this).getRequireSymbols() /** - * In the password policy that you have set, refers to whether you have required users to use - * at least one uppercase letter in their password. + * The requirement in a password policy that users must include at least one uppercase letter + * in their password. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-requireuppercase) */ @@ -4841,7 +5350,15 @@ public open class CfnUserPool( } /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * Example: * @@ -4852,6 +5369,7 @@ public open class CfnUserPool( * PoliciesProperty policiesProperty = PoliciesProperty.builder() * .passwordPolicy(PasswordPolicyProperty.builder() * .minimumLength(123) + * .passwordHistorySize(123) * .requireLowercase(false) * .requireNumbers(false) * .requireSymbols(false) @@ -4865,7 +5383,8 @@ public open class CfnUserPool( */ public interface PoliciesProperty { /** - * The password policy. + * The password policy settings for a user pool, including complexity, history, and length + * requirements. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html#cfn-cognito-userpool-policies-passwordpolicy) */ @@ -4877,17 +5396,20 @@ public open class CfnUserPool( @CdkDslMarker public interface Builder { /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ public fun passwordPolicy(passwordPolicy: IResolvable) /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ public fun passwordPolicy(passwordPolicy: PasswordPolicyProperty) /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("397bfa55c66c4e794868359ddbcc20b3f495bd76ce469f761741f1d76a32bde2") @@ -4900,21 +5422,24 @@ public open class CfnUserPool( software.amazon.awscdk.services.cognito.CfnUserPool.PoliciesProperty.builder() /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ override fun passwordPolicy(passwordPolicy: IResolvable) { cdkBuilder.passwordPolicy(passwordPolicy.let(IResolvable.Companion::unwrap)) } /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ override fun passwordPolicy(passwordPolicy: PasswordPolicyProperty) { cdkBuilder.passwordPolicy(passwordPolicy.let(PasswordPolicyProperty.Companion::unwrap)) } /** - * @param passwordPolicy The password policy. + * @param passwordPolicy The password policy settings for a user pool, including complexity, + * history, and length requirements. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("397bfa55c66c4e794868359ddbcc20b3f495bd76ce469f761741f1d76a32bde2") @@ -4927,9 +5452,11 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.PoliciesProperty, - ) : CdkObject(cdkObject), PoliciesProperty { + ) : CdkObject(cdkObject), + PoliciesProperty { /** - * The password policy. + * The password policy settings for a user pool, including complexity, history, and length + * requirements. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html#cfn-cognito-userpool-policies-passwordpolicy) */ @@ -4957,6 +5484,14 @@ public open class CfnUserPool( /** * The properties of a pre token generation Lambda trigger. * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . + * * Example: * * ``` @@ -5047,7 +5582,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.PreTokenGenerationConfigProperty, - ) : CdkObject(cdkObject), PreTokenGenerationConfigProperty { + ) : CdkObject(cdkObject), + PreTokenGenerationConfigProperty { /** * The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda * trigger. @@ -5163,7 +5699,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.RecoveryOptionProperty, - ) : CdkObject(cdkObject), RecoveryOptionProperty { + ) : CdkObject(cdkObject), + RecoveryOptionProperty { /** * Specifies the recovery method for a user. * @@ -5205,9 +5742,17 @@ public open class CfnUserPool( * attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html) * . * - * Developer-only attributes are a legacy feature of user pools, are read-only to all app clients. - * You can create and update developer-only attributes only with IAM-authenticated API operations. - * Use app client read/write permissions instead. + * Developer-only `dev:` attributes are a legacy feature of user pools, and are read-only to all + * app clients. You can create and update developer-only attributes only with IAM-authenticated API + * operations. Use app client read/write permissions instead. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * Example: * @@ -5602,7 +6147,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.SchemaAttributeProperty, - ) : CdkObject(cdkObject), SchemaAttributeProperty { + ) : CdkObject(cdkObject), + SchemaAttributeProperty { /** * The data format of the values for your attribute. * @@ -5854,7 +6400,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.SmsConfigurationProperty, - ) : CdkObject(cdkObject), SmsConfigurationProperty { + ) : CdkObject(cdkObject), + SmsConfigurationProperty { /** * The external ID is a value. * @@ -5951,7 +6498,7 @@ public open class CfnUserPool( public fun maxLength(): String? = unwrap(this).getMaxLength() /** - * The minimum length. + * The minimum length of a string attribute value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html#cfn-cognito-userpool-stringattributeconstraints-minlength) */ @@ -5970,7 +6517,7 @@ public open class CfnUserPool( public fun maxLength(maxLength: String) /** - * @param minLength The minimum length. + * @param minLength The minimum length of a string attribute value. */ public fun minLength(minLength: String) } @@ -5991,7 +6538,7 @@ public open class CfnUserPool( } /** - * @param minLength The minimum length. + * @param minLength The minimum length of a string attribute value. */ override fun minLength(minLength: String) { cdkBuilder.minLength(minLength) @@ -6004,7 +6551,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.StringAttributeConstraintsProperty, - ) : CdkObject(cdkObject), StringAttributeConstraintsProperty { + ) : CdkObject(cdkObject), + StringAttributeConstraintsProperty { /** * The maximum length of a string attribute value. * @@ -6016,7 +6564,7 @@ public open class CfnUserPool( override fun maxLength(): String? = unwrap(this).getMaxLength() /** - * The minimum length. + * The minimum length of a string attribute value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html#cfn-cognito-userpool-stringattributeconstraints-minlength) */ @@ -6205,7 +6753,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.UserAttributeUpdateSettingsProperty, - ) : CdkObject(cdkObject), UserAttributeUpdateSettingsProperty { + ) : CdkObject(cdkObject), + UserAttributeUpdateSettingsProperty { /** * Requires that your user verifies their email address, phone number, or both before Amazon * Cognito updates the value of that attribute. @@ -6262,6 +6811,14 @@ public open class CfnUserPool( * pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) * . * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . + * * Example: * * ``` @@ -6269,6 +6826,9 @@ public open class CfnUserPool( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.cognito.*; * UserPoolAddOnsProperty userPoolAddOnsProperty = UserPoolAddOnsProperty.builder() + * .advancedSecurityAdditionalFlows(AdvancedSecurityAdditionalFlowsProperty.builder() + * .customAuthMode("customAuthMode") + * .build()) * .advancedSecurityMode("advancedSecurityMode") * .build(); * ``` @@ -6277,7 +6837,14 @@ public open class CfnUserPool( */ public interface UserPoolAddOnsProperty { /** - * The operating mode of advanced security features in your user pool. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecurityadditionalflows) + */ + public fun advancedSecurityAdditionalFlows(): Any? = + unwrap(this).getAdvancedSecurityAdditionalFlows() + + /** + * The operating mode of advanced security features for standard authentication types in your + * user pool, including username-password and secure remote password (SRP) authentication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecuritymode) */ @@ -6289,8 +6856,28 @@ public open class CfnUserPool( @CdkDslMarker public interface Builder { /** - * @param advancedSecurityMode The operating mode of advanced security features in your user - * pool. + * @param advancedSecurityAdditionalFlows the value to be set. + */ + public fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: IResolvable) + + /** + * @param advancedSecurityAdditionalFlows the value to be set. + */ + public + fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: AdvancedSecurityAdditionalFlowsProperty) + + /** + * @param advancedSecurityAdditionalFlows the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c88fdc674109bd078b0a05975904bd69d7fedf2979e8b7013328198e6d479b98") + public + fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: AdvancedSecurityAdditionalFlowsProperty.Builder.() -> Unit) + + /** + * @param advancedSecurityMode The operating mode of advanced security features for standard + * authentication types in your user pool, including username-password and secure remote password + * (SRP) authentication. */ public fun advancedSecurityMode(advancedSecurityMode: String) } @@ -6301,8 +6888,34 @@ public open class CfnUserPool( software.amazon.awscdk.services.cognito.CfnUserPool.UserPoolAddOnsProperty.builder() /** - * @param advancedSecurityMode The operating mode of advanced security features in your user - * pool. + * @param advancedSecurityAdditionalFlows the value to be set. + */ + override fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: IResolvable) { + cdkBuilder.advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows.let(IResolvable.Companion::unwrap)) + } + + /** + * @param advancedSecurityAdditionalFlows the value to be set. + */ + override + fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: AdvancedSecurityAdditionalFlowsProperty) { + cdkBuilder.advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows.let(AdvancedSecurityAdditionalFlowsProperty.Companion::unwrap)) + } + + /** + * @param advancedSecurityAdditionalFlows the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c88fdc674109bd078b0a05975904bd69d7fedf2979e8b7013328198e6d479b98") + override + fun advancedSecurityAdditionalFlows(advancedSecurityAdditionalFlows: AdvancedSecurityAdditionalFlowsProperty.Builder.() -> Unit): + Unit = + advancedSecurityAdditionalFlows(AdvancedSecurityAdditionalFlowsProperty(advancedSecurityAdditionalFlows)) + + /** + * @param advancedSecurityMode The operating mode of advanced security features for standard + * authentication types in your user pool, including username-password and secure remote password + * (SRP) authentication. */ override fun advancedSecurityMode(advancedSecurityMode: String) { cdkBuilder.advancedSecurityMode(advancedSecurityMode) @@ -6314,9 +6927,17 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.UserPoolAddOnsProperty, - ) : CdkObject(cdkObject), UserPoolAddOnsProperty { + ) : CdkObject(cdkObject), + UserPoolAddOnsProperty { /** - * The operating mode of advanced security features in your user pool. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecurityadditionalflows) + */ + override fun advancedSecurityAdditionalFlows(): Any? = + unwrap(this).getAdvancedSecurityAdditionalFlows() + + /** + * The operating mode of advanced security features for standard authentication types in your + * user pool, including username-password and secure remote password (SRP) authentication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecuritymode) */ @@ -6370,11 +6991,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, in * addition to the `username` attribute. * @@ -6396,11 +7017,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, * in addition to the `username` attribute. */ @@ -6415,11 +7036,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, * in addition to the `username` attribute. */ @@ -6441,11 +7062,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, * in addition to the `username` attribute. */ @@ -6462,11 +7083,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, * in addition to the `username` attribute. */ @@ -6481,7 +7102,8 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.UsernameConfigurationProperty, - ) : CdkObject(cdkObject), UsernameConfigurationProperty { + ) : CdkObject(cdkObject), + UsernameConfigurationProperty { /** * Specifies whether user name case sensitivity will be applied for all users in the user pool * through Amazon Cognito APIs. @@ -6492,11 +7114,11 @@ public open class CfnUserPool( * * Valid values include: * - * * **True** - Enables case sensitivity for all username input. When this option is set to - * `True` , users must sign in using the exact capitalization of their given username, such as + * * **true** - Enables case sensitivity for all username input. When this option is set to + * `true` , users must sign in using the exact capitalization of their given username, such as * “UserName”. This is the default value. - * * **False** - Enables case insensitivity for all username input. For example, when this - * option is set to `False` , users can sign in using `username` , `USERNAME` , or `UserName` . + * * **false** - Enables case insensitivity for all username input. For example, when this + * option is set to `false` , users can sign in using `username` , `USERNAME` , or `UserName` . * This option also enables both `preferred_username` and `email` alias to be case insensitive, * in addition to the `username` attribute. * @@ -6524,7 +7146,16 @@ public open class CfnUserPool( } /** - * The template for verification messages. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * Example: * @@ -6547,7 +7178,11 @@ public open class CfnUserPool( */ public interface VerificationMessageTemplateProperty { /** - * The default email option. + * The configuration of verification emails to contain a clickable link or a verification code. + * + * For link, your template body must contain link text in the format `{##Click here##}` . "Click + * here" in the example is a customizable string. For code, your template body must contain a code + * placeholder in the format `{####}` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-verificationmessagetemplate.html#cfn-cognito-userpool-verificationmessagetemplate-defaultemailoption) */ @@ -6618,7 +7253,11 @@ public open class CfnUserPool( @CdkDslMarker public interface Builder { /** - * @param defaultEmailOption The default email option. + * @param defaultEmailOption The configuration of verification emails to contain a clickable + * link or a verification code. + * For link, your template body must contain link text in the format `{##Click here##}` . + * "Click here" in the example is a customizable string. For code, your template body must + * contain a code placeholder in the format `{####}` . */ public fun defaultEmailOption(defaultEmailOption: String) @@ -6678,7 +7317,11 @@ public open class CfnUserPool( software.amazon.awscdk.services.cognito.CfnUserPool.VerificationMessageTemplateProperty.builder() /** - * @param defaultEmailOption The default email option. + * @param defaultEmailOption The configuration of verification emails to contain a clickable + * link or a verification code. + * For link, your template body must contain link text in the format `{##Click here##}` . + * "Click here" in the example is a customizable string. For code, your template body must + * contain a code placeholder in the format `{####}` . */ override fun defaultEmailOption(defaultEmailOption: String) { cdkBuilder.defaultEmailOption(defaultEmailOption) @@ -6749,9 +7392,15 @@ public open class CfnUserPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPool.VerificationMessageTemplateProperty, - ) : CdkObject(cdkObject), VerificationMessageTemplateProperty { + ) : CdkObject(cdkObject), + VerificationMessageTemplateProperty { /** - * The default email option. + * The configuration of verification emails to contain a clickable link or a verification + * code. + * + * For link, your template body must contain link text in the format `{##Click here##}` . + * "Click here" in the example is a customizable string. For code, your template body must + * contain a code placeholder in the format `{####}` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-verificationmessagetemplate.html#cfn-cognito-userpool-verificationmessagetemplate-defaultemailoption) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClient.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClient.kt index 71e720505b..5c7b1801ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClient.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClient.kt @@ -84,7 +84,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolClient( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolClient, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -261,15 +262,11 @@ public open class CfnUserPoolClient( /** * The default redirect URI. - * - * Must be in the `CallbackURLs` list. */ public open fun defaultRedirectUri(): String? = unwrap(this).getDefaultRedirectUri() /** * The default redirect URI. - * - * Must be in the `CallbackURLs` list. */ public open fun defaultRedirectUri(`value`: String) { unwrap(this).setDefaultRedirectUri(`value`) @@ -423,19 +420,19 @@ public open class CfnUserPoolClient( } /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. */ public open fun readAttributes(): List = unwrap(this).getReadAttributes() ?: emptyList() /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. */ public open fun readAttributes(`value`: List) { unwrap(this).setReadAttributes(`value`) } /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. */ public open fun readAttributes(vararg `value`: String): Unit = readAttributes(`value`.toList()) @@ -775,7 +772,10 @@ public open class CfnUserPoolClient( public fun clientName(clientName: String) /** - * The default redirect URI. Must be in the `CallbackURLs` list. + * The default redirect URI. + * + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. + * Must be in the `CallbackURLs` list. * * A redirect URI must: * @@ -783,8 +783,9 @@ public open class CfnUserPoolClient( * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes * only. @@ -792,7 +793,7 @@ public open class CfnUserPoolClient( * App callback URLs such as myapp://example are also supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-defaultredirecturi) - * @param defaultRedirectUri The default redirect URI. Must be in the `CallbackURLs` list. + * @param defaultRedirectUri The default redirect URI. */ public fun defaultRedirectUri(defaultRedirectUri: String) @@ -1006,7 +1007,7 @@ public open class CfnUserPoolClient( public fun preventUserExistenceErrors(preventUserExistenceErrors: String) /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when @@ -1016,18 +1017,18 @@ public open class CfnUserPoolClient( * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. */ public fun readAttributes(readAttributes: List) /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when @@ -1037,13 +1038,13 @@ public open class CfnUserPoolClient( * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. */ public fun readAttributes(vararg readAttributes: String) @@ -1469,7 +1470,10 @@ public open class CfnUserPoolClient( } /** - * The default redirect URI. Must be in the `CallbackURLs` list. + * The default redirect URI. + * + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. + * Must be in the `CallbackURLs` list. * * A redirect URI must: * @@ -1477,8 +1481,9 @@ public open class CfnUserPoolClient( * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes * only. @@ -1486,7 +1491,7 @@ public open class CfnUserPoolClient( * App callback URLs such as myapp://example are also supported. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-defaultredirecturi) - * @param defaultRedirectUri The default redirect URI. Must be in the `CallbackURLs` list. + * @param defaultRedirectUri The default redirect URI. */ override fun defaultRedirectUri(defaultRedirectUri: String) { cdkBuilder.defaultRedirectUri(defaultRedirectUri) @@ -1723,7 +1728,7 @@ public open class CfnUserPoolClient( } /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when @@ -1733,20 +1738,20 @@ public open class CfnUserPoolClient( * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. */ override fun readAttributes(readAttributes: List) { cdkBuilder.readAttributes(readAttributes) } /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when @@ -1756,13 +1761,13 @@ public open class CfnUserPoolClient( * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. */ override fun readAttributes(vararg readAttributes: String): Unit = readAttributes(readAttributes.toList()) @@ -1955,13 +1960,23 @@ public open class CfnUserPoolClient( } /** - * The Amazon Pinpoint analytics configuration necessary to collect metrics for a user pool. + * The settings for Amazon Pinpoint analytics configuration. * + * With an analytics configuration, your application can collect user-activity metrics for user + * notifications with a Amazon Pinpoint campaign. * - * In Regions where Amazon Pinpoint isn't available, user pools only support sending events to - * Amazon Pinpoint projects in us-east-1. In Regions where Amazon Pinpoint is available, user pools - * support sending events to Amazon Pinpoint projects within that same Region. + * Amazon Pinpoint isn't available in all AWS Regions. For a list of available Regions, see + * [Amazon Cognito and Amazon Pinpoint Region + * availability](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-pinpoint-integration.html#cognito-user-pools-find-region-mappings) + * . * + * This data type is a request parameter of + * [CreateUserPoolClient](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPoolClient.html) + * and + * [UpdateUserPoolClient](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPoolClient.html) + * , and a response parameter of + * [DescribeUserPoolClient](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPoolClient.html) + * . * * Example: * @@ -1993,22 +2008,24 @@ public open class CfnUserPoolClient( public fun applicationArn(): String? = unwrap(this).getApplicationArn() /** - * The application ID for an Amazon Pinpoint application. + * Your Amazon Pinpoint project ID. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-applicationid) */ public fun applicationId(): String? = unwrap(this).getApplicationId() /** - * The external ID. + * The [external + * ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) + * of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-externalid) */ public fun externalId(): String? = unwrap(this).getExternalId() /** - * The ARN of an AWS Identity and Access Management role that authorizes Amazon Cognito to - * publish events to Amazon Pinpoint analytics. + * The ARN of an AWS Identity and Access Management role that has the permissions required for + * Amazon Cognito to publish events to Amazon Pinpoint analytics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-rolearn) */ @@ -2035,18 +2052,20 @@ public open class CfnUserPoolClient( public fun applicationArn(applicationArn: String) /** - * @param applicationId The application ID for an Amazon Pinpoint application. + * @param applicationId Your Amazon Pinpoint project ID. */ public fun applicationId(applicationId: String) /** - * @param externalId The external ID. + * @param externalId The [external + * ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) + * of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint. */ public fun externalId(externalId: String) /** - * @param roleArn The ARN of an AWS Identity and Access Management role that authorizes Amazon - * Cognito to publish events to Amazon Pinpoint analytics. + * @param roleArn The ARN of an AWS Identity and Access Management role that has the + * permissions required for Amazon Cognito to publish events to Amazon Pinpoint analytics. */ public fun roleArn(roleArn: String) @@ -2079,22 +2098,24 @@ public open class CfnUserPoolClient( } /** - * @param applicationId The application ID for an Amazon Pinpoint application. + * @param applicationId Your Amazon Pinpoint project ID. */ override fun applicationId(applicationId: String) { cdkBuilder.applicationId(applicationId) } /** - * @param externalId The external ID. + * @param externalId The [external + * ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) + * of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint. */ override fun externalId(externalId: String) { cdkBuilder.externalId(externalId) } /** - * @param roleArn The ARN of an AWS Identity and Access Management role that authorizes Amazon - * Cognito to publish events to Amazon Pinpoint analytics. + * @param roleArn The ARN of an AWS Identity and Access Management role that has the + * permissions required for Amazon Cognito to publish events to Amazon Pinpoint analytics. */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) @@ -2123,7 +2144,8 @@ public open class CfnUserPoolClient( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolClient.AnalyticsConfigurationProperty, - ) : CdkObject(cdkObject), AnalyticsConfigurationProperty { + ) : CdkObject(cdkObject), + AnalyticsConfigurationProperty { /** * The Amazon Resource Name (ARN) of an Amazon Pinpoint project. * @@ -2135,22 +2157,24 @@ public open class CfnUserPoolClient( override fun applicationArn(): String? = unwrap(this).getApplicationArn() /** - * The application ID for an Amazon Pinpoint application. + * Your Amazon Pinpoint project ID. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-applicationid) */ override fun applicationId(): String? = unwrap(this).getApplicationId() /** - * The external ID. + * The [external + * ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) + * of the role that Amazon Cognito assumes to send analytics data to Amazon Pinpoint. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-externalid) */ override fun externalId(): String? = unwrap(this).getExternalId() /** - * The ARN of an AWS Identity and Access Management role that authorizes Amazon Cognito to - * publish events to Amazon Pinpoint analytics. + * The ARN of an AWS Identity and Access Management role that has the permissions required for + * Amazon Cognito to publish events to Amazon Pinpoint analytics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-rolearn) */ @@ -2205,10 +2229,9 @@ public open class CfnUserPoolClient( */ public interface TokenValidityUnitsProperty { /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the - * `AccessTokenValidity` parameter. + * A time unit for the value that you set in the `AccessTokenValidity` parameter. * - * The default `AccessTokenValidity` time unit is hours. `AccessTokenValidity` duration can + * The default `AccessTokenValidity` time unit is `hours` . `AccessTokenValidity` duration can * range from five minutes to one day. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-accesstoken) @@ -2216,21 +2239,19 @@ public open class CfnUserPoolClient( public fun accessToken(): String? = unwrap(this).getAccessToken() /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the - * `IdTokenValidity` parameter. + * A time unit for the value that you set in the `IdTokenValidity` parameter. * - * The default `IdTokenValidity` time unit is hours. `IdTokenValidity` duration can range from - * five minutes to one day. + * The default `IdTokenValidity` time unit is `hours` . `IdTokenValidity` duration can range + * from five minutes to one day. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-idtoken) */ public fun idToken(): String? = unwrap(this).getIdToken() /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in the - * `RefreshTokenValidity` parameter. + * A time unit for the value that you set in the `RefreshTokenValidity` parameter. * - * The default `RefreshTokenValidity` time unit is days. `RefreshTokenValidity` duration can + * The default `RefreshTokenValidity` time unit is `days` . `RefreshTokenValidity` duration can * range from 60 minutes to 10 years. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-refreshtoken) @@ -2243,26 +2264,25 @@ public open class CfnUserPoolClient( @CdkDslMarker public interface Builder { /** - * @param accessToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the value - * that you set in the `AccessTokenValidity` parameter. - * The default `AccessTokenValidity` time unit is hours. `AccessTokenValidity` duration can + * @param accessToken A time unit for the value that you set in the `AccessTokenValidity` + * parameter. + * The default `AccessTokenValidity` time unit is `hours` . `AccessTokenValidity` duration can * range from five minutes to one day. */ public fun accessToken(accessToken: String) /** - * @param idToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the value - * that you set in the `IdTokenValidity` parameter. - * The default `IdTokenValidity` time unit is hours. `IdTokenValidity` duration can range from - * five minutes to one day. + * @param idToken A time unit for the value that you set in the `IdTokenValidity` parameter. + * The default `IdTokenValidity` time unit is `hours` . `IdTokenValidity` duration can range + * from five minutes to one day. */ public fun idToken(idToken: String) /** - * @param refreshToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the - * value that you set in the `RefreshTokenValidity` parameter. - * The default `RefreshTokenValidity` time unit is days. `RefreshTokenValidity` duration can - * range from 60 minutes to 10 years. + * @param refreshToken A time unit for the value that you set in the `RefreshTokenValidity` + * parameter. + * The default `RefreshTokenValidity` time unit is `days` . `RefreshTokenValidity` duration + * can range from 60 minutes to 10 years. */ public fun refreshToken(refreshToken: String) } @@ -2274,9 +2294,9 @@ public open class CfnUserPoolClient( software.amazon.awscdk.services.cognito.CfnUserPoolClient.TokenValidityUnitsProperty.builder() /** - * @param accessToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the value - * that you set in the `AccessTokenValidity` parameter. - * The default `AccessTokenValidity` time unit is hours. `AccessTokenValidity` duration can + * @param accessToken A time unit for the value that you set in the `AccessTokenValidity` + * parameter. + * The default `AccessTokenValidity` time unit is `hours` . `AccessTokenValidity` duration can * range from five minutes to one day. */ override fun accessToken(accessToken: String) { @@ -2284,20 +2304,19 @@ public open class CfnUserPoolClient( } /** - * @param idToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the value - * that you set in the `IdTokenValidity` parameter. - * The default `IdTokenValidity` time unit is hours. `IdTokenValidity` duration can range from - * five minutes to one day. + * @param idToken A time unit for the value that you set in the `IdTokenValidity` parameter. + * The default `IdTokenValidity` time unit is `hours` . `IdTokenValidity` duration can range + * from five minutes to one day. */ override fun idToken(idToken: String) { cdkBuilder.idToken(idToken) } /** - * @param refreshToken A time unit of `seconds` , `minutes` , `hours` , or `days` for the - * value that you set in the `RefreshTokenValidity` parameter. - * The default `RefreshTokenValidity` time unit is days. `RefreshTokenValidity` duration can - * range from 60 minutes to 10 years. + * @param refreshToken A time unit for the value that you set in the `RefreshTokenValidity` + * parameter. + * The default `RefreshTokenValidity` time unit is `days` . `RefreshTokenValidity` duration + * can range from 60 minutes to 10 years. */ override fun refreshToken(refreshToken: String) { cdkBuilder.refreshToken(refreshToken) @@ -2310,12 +2329,12 @@ public open class CfnUserPoolClient( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolClient.TokenValidityUnitsProperty, - ) : CdkObject(cdkObject), TokenValidityUnitsProperty { + ) : CdkObject(cdkObject), + TokenValidityUnitsProperty { /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in - * the `AccessTokenValidity` parameter. + * A time unit for the value that you set in the `AccessTokenValidity` parameter. * - * The default `AccessTokenValidity` time unit is hours. `AccessTokenValidity` duration can + * The default `AccessTokenValidity` time unit is `hours` . `AccessTokenValidity` duration can * range from five minutes to one day. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-accesstoken) @@ -2323,22 +2342,20 @@ public open class CfnUserPoolClient( override fun accessToken(): String? = unwrap(this).getAccessToken() /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in - * the `IdTokenValidity` parameter. + * A time unit for the value that you set in the `IdTokenValidity` parameter. * - * The default `IdTokenValidity` time unit is hours. `IdTokenValidity` duration can range from - * five minutes to one day. + * The default `IdTokenValidity` time unit is `hours` . `IdTokenValidity` duration can range + * from five minutes to one day. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-idtoken) */ override fun idToken(): String? = unwrap(this).getIdToken() /** - * A time unit of `seconds` , `minutes` , `hours` , or `days` for the value that you set in - * the `RefreshTokenValidity` parameter. + * A time unit for the value that you set in the `RefreshTokenValidity` parameter. * - * The default `RefreshTokenValidity` time unit is days. `RefreshTokenValidity` duration can - * range from 60 minutes to 10 years. + * The default `RefreshTokenValidity` time unit is `days` . `RefreshTokenValidity` duration + * can range from 60 minutes to 10 years. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-tokenvalidityunits.html#cfn-cognito-userpoolclient-tokenvalidityunits-refreshtoken) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClientProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClientProps.kt index ca8e4426af..8c1b82470c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClientProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolClientProps.kt @@ -182,7 +182,10 @@ public interface CfnUserPoolClientProps { public fun clientName(): String? = unwrap(this).getClientName() /** - * The default redirect URI. Must be in the `CallbackURLs` list. + * The default redirect URI. + * + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. Must + * be in the `CallbackURLs` list. * * A redirect URI must: * @@ -190,8 +193,9 @@ public interface CfnUserPoolClientProps { * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only. * @@ -309,7 +313,7 @@ public interface CfnUserPoolClientProps { public fun preventUserExistenceErrors(): String? = unwrap(this).getPreventUserExistenceErrors() /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their own * attribute value for any attribute in this list. An example of this kind of activity is when your @@ -319,9 +323,9 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API response + * if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) */ @@ -590,15 +594,19 @@ public interface CfnUserPoolClientProps { public fun clientName(clientName: String) /** - * @param defaultRedirectUri The default redirect URI. Must be in the `CallbackURLs` list. + * @param defaultRedirectUri The default redirect URI. + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. + * Must be in the `CallbackURLs` list. + * * A redirect URI must: * * * Be an absolute URI. * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes * only. @@ -765,8 +773,8 @@ public interface CfnUserPoolClientProps { public fun preventUserExistenceErrors(preventUserExistenceErrors: String) /** - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when * your user selects a link to view their profile information. Your app makes a @@ -775,15 +783,15 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. */ public fun readAttributes(readAttributes: List) /** - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when * your user selects a link to view their profile information. Your app makes a @@ -792,9 +800,9 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. */ public fun readAttributes(vararg readAttributes: String) @@ -1124,15 +1132,19 @@ public interface CfnUserPoolClientProps { } /** - * @param defaultRedirectUri The default redirect URI. Must be in the `CallbackURLs` list. + * @param defaultRedirectUri The default redirect URI. + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. + * Must be in the `CallbackURLs` list. + * * A redirect URI must: * * * Be an absolute URI. * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes * only. @@ -1322,8 +1334,8 @@ public interface CfnUserPoolClientProps { } /** - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when * your user selects a link to view their profile information. Your app makes a @@ -1332,17 +1344,17 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. */ override fun readAttributes(readAttributes: List) { cdkBuilder.readAttributes(readAttributes) } /** - * @param readAttributes The list of user attributes that you want your app client to have - * read-only access to. + * @param readAttributes The list of user attributes that you want your app client to have read + * access to. * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when * your user selects a link to view their profile information. Your app makes a @@ -1351,9 +1363,9 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. */ override fun readAttributes(vararg readAttributes: String): Unit = readAttributes(readAttributes.toList()) @@ -1492,7 +1504,8 @@ public interface CfnUserPoolClientProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolClientProps, - ) : CdkObject(cdkObject), CfnUserPoolClientProps { + ) : CdkObject(cdkObject), + CfnUserPoolClientProps { /** * The access token time limit. * @@ -1616,7 +1629,10 @@ public interface CfnUserPoolClientProps { override fun clientName(): String? = unwrap(this).getClientName() /** - * The default redirect URI. Must be in the `CallbackURLs` list. + * The default redirect URI. + * + * In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. + * Must be in the `CallbackURLs` list. * * A redirect URI must: * @@ -1624,8 +1640,9 @@ public interface CfnUserPoolClientProps { * * Be registered with the authorization server. * * Not include a fragment component. * - * See [OAuth 2.0 - Redirection - * Endpoint](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6749#section-3.1.2) . + * For more information, see [Default redirect + * URI](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) + * . * * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes * only. @@ -1746,7 +1763,7 @@ public interface CfnUserPoolClientProps { unwrap(this).getPreventUserExistenceErrors() /** - * The list of user attributes that you want your app client to have read-only access to. + * The list of user attributes that you want your app client to have read access to. * * After your user authenticates in your app, their access token authorizes them to read their * own attribute value for any attribute in this list. An example of this kind of activity is when @@ -1756,9 +1773,9 @@ public interface CfnUserPoolClientProps { * * When you don't specify the `ReadAttributes` for your app client, your app can read the values * of `email_verified` , `phone_number_verified` , and the Standard attributes of your user pool. - * When your user pool has read access to these default attributes, `ReadAttributes` doesn't return - * any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have - * specified your own custom set of read attributes. + * When your user pool app client has read access to these default attributes, `ReadAttributes` + * doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API + * response if you have specified your own custom set of read attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomain.kt index 2f89a37a3b..298c610445 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomain.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolDomain( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolDomain, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -307,8 +308,13 @@ public open class CfnUserPoolDomain( } /** - * The configuration for a custom domain that hosts the sign-up and sign-in webpages for your - * application. + * The configuration for a hosted UI custom domain. + * + * This data type is a request parameter of + * [CreateUserPoolDomain](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPoolDomain.html) + * and + * [UpdateUserPoolDomain](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPoolDomain.html) + * . * * Example: * @@ -369,7 +375,8 @@ public open class CfnUserPoolDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolDomain.CustomDomainConfigTypeProperty, - ) : CdkObject(cdkObject), CustomDomainConfigTypeProperty { + ) : CdkObject(cdkObject), + CustomDomainConfigTypeProperty { /** * The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomainProps.kt index 2c044a4fbb..b3cf0bab72 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolDomainProps.kt @@ -173,7 +173,8 @@ public interface CfnUserPoolDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolDomainProps, - ) : CdkObject(cdkObject), CfnUserPoolDomainProps { + ) : CdkObject(cdkObject), + CfnUserPoolDomainProps { /** * The configuration for a custom domain that hosts the sign-up and sign-in pages for your * application. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroup.kt index 89db04eb0b..b891e7c718 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroup.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolGroup( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroupProps.kt index 18bca9d38e..3760cbed03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolGroupProps.kt @@ -183,7 +183,8 @@ public interface CfnUserPoolGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolGroupProps, - ) : CdkObject(cdkObject), CfnUserPoolGroupProps { + ) : CdkObject(cdkObject), + CfnUserPoolGroupProps { /** * A string containing the description of the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProvider.kt index 9c06cb972c..e6a757dc59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProvider.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolIdentityProvider( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolIdentityProvider, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProviderProps.kt index d9ea3dea5a..ebfbddacc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolIdentityProviderProps.kt @@ -430,7 +430,8 @@ public interface CfnUserPoolIdentityProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolIdentityProviderProps, - ) : CdkObject(cdkObject), CfnUserPoolIdentityProviderProps { + ) : CdkObject(cdkObject), + CfnUserPoolIdentityProviderProps { /** * A mapping of IdP attributes to standard and custom user pool attributes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolProps.kt index 72d75104bf..a118be7f22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolProps.kt @@ -45,6 +45,8 @@ import kotlin.jvm.JvmName * .challengeRequiredOnNewDevice(false) * .deviceOnlyRememberedOnUserPrompt(false) * .build()) + * .emailAuthenticationMessage("emailAuthenticationMessage") + * .emailAuthenticationSubject("emailAuthenticationSubject") * .emailConfiguration(EmailConfigurationProperty.builder() * .configurationSet("configurationSet") * .emailSendingAccount("emailSendingAccount") @@ -84,6 +86,7 @@ import kotlin.jvm.JvmName * .policies(PoliciesProperty.builder() * .passwordPolicy(PasswordPolicyProperty.builder() * .minimumLength(123) + * .passwordHistorySize(123) * .requireLowercase(false) * .requireNumbers(false) * .requireSymbols(false) @@ -121,6 +124,9 @@ import kotlin.jvm.JvmName * .caseSensitive(false) * .build()) * .userPoolAddOns(UserPoolAddOnsProperty.builder() + * .advancedSecurityAdditionalFlows(AdvancedSecurityAdditionalFlowsProperty.builder() + * .customAuthMode("customAuthMode") + * .build()) * .advancedSecurityMode("advancedSecurityMode") * .build()) * .userPoolName("userPoolName") @@ -153,7 +159,18 @@ public interface CfnUserPoolProps { public fun accountRecoverySetting(): Any? = unwrap(this).getAccountRecoverySetting() /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, and + * the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) */ @@ -210,6 +227,16 @@ public interface CfnUserPoolProps { */ public fun deviceConfiguration(): Any? = unwrap(this).getDeviceConfiguration() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationmessage) + */ + public fun emailAuthenticationMessage(): String? = unwrap(this).getEmailAuthenticationMessage() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationsubject) + */ + public fun emailAuthenticationSubject(): String? = unwrap(this).getEmailAuthenticationSubject() + /** * The email configuration of your user pool. * @@ -261,19 +288,10 @@ public interface CfnUserPoolProps { public fun enabledMfas(): List = unwrap(this).getEnabledMfas() ?: emptyList() /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) */ @@ -291,7 +309,15 @@ public interface CfnUserPoolProps { public fun mfaConfiguration(): String? = unwrap(this).getMfaConfiguration() /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) */ @@ -409,8 +435,13 @@ public interface CfnUserPoolProps { public fun usernameConfiguration(): Any? = unwrap(this).getUsernameConfiguration() /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) */ @@ -456,18 +487,48 @@ public interface CfnUserPoolProps { fun accountRecoverySetting(accountRecoverySetting: CfnUserPool.AccountRecoverySettingProperty.Builder.() -> Unit) /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ public fun adminCreateUserConfig(adminCreateUserConfig: IResolvable) /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ public fun adminCreateUserConfig(adminCreateUserConfig: CfnUserPool.AdminCreateUserConfigProperty) /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f794518daabdad2774e4c8975200c25b556f58d5765e61484e8e043a75a3aa32") @@ -548,6 +609,16 @@ public interface CfnUserPoolProps { public fun deviceConfiguration(deviceConfiguration: CfnUserPool.DeviceConfigurationProperty.Builder.() -> Unit) + /** + * @param emailAuthenticationMessage the value to be set. + */ + public fun emailAuthenticationMessage(emailAuthenticationMessage: String) + + /** + * @param emailAuthenticationSubject the value to be set. + */ + public fun emailAuthenticationSubject(emailAuthenticationSubject: String) + /** * @param emailConfiguration The email configuration of your user pool. * The email configuration type sets your preferred sending method, AWS Region, and sender for @@ -619,47 +690,23 @@ public interface CfnUserPoolProps { public fun enabledMfas(vararg enabledMfas: String) /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ public fun lambdaConfig(lambdaConfig: IResolvable) /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ public fun lambdaConfig(lambdaConfig: CfnUserPool.LambdaConfigProperty) /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("db420d077990a8f3f5f9aacfd7af72fcdea4ac8959a927526e1d56a2037fca89") @@ -675,17 +722,41 @@ public interface CfnUserPoolProps { public fun mfaConfiguration(mfaConfiguration: String) /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ public fun policies(policies: IResolvable) /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ public fun policies(policies: CfnUserPool.PoliciesProperty) /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("343a2a106aa51ec53bcbb198a72763d39c1daff0913054bb5997ab31e254fc8b") @@ -895,21 +966,33 @@ public interface CfnUserPoolProps { fun usernameConfiguration(usernameConfiguration: CfnUserPool.UsernameConfigurationProperty.Builder.() -> Unit) /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ public fun verificationMessageTemplate(verificationMessageTemplate: IResolvable) /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ public fun verificationMessageTemplate(verificationMessageTemplate: CfnUserPool.VerificationMessageTemplateProperty) /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3013e72971088221a7901816ff1cc9a02b7d294abd0f631b7d9bc30cb5c5116a") @@ -962,14 +1045,34 @@ public interface CfnUserPoolProps { accountRecoverySetting(CfnUserPool.AccountRecoverySettingProperty(accountRecoverySetting)) /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ override fun adminCreateUserConfig(adminCreateUserConfig: IResolvable) { cdkBuilder.adminCreateUserConfig(adminCreateUserConfig.let(IResolvable.Companion::unwrap)) } /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ override fun adminCreateUserConfig(adminCreateUserConfig: CfnUserPool.AdminCreateUserConfigProperty) { @@ -977,7 +1080,17 @@ public interface CfnUserPoolProps { } /** - * @param adminCreateUserConfig The configuration for creating a new user profile. + * @param adminCreateUserConfig The settings for administrator creation of users in a user pool. + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f794518daabdad2774e4c8975200c25b556f58d5765e61484e8e043a75a3aa32") @@ -1073,6 +1186,20 @@ public interface CfnUserPoolProps { fun deviceConfiguration(deviceConfiguration: CfnUserPool.DeviceConfigurationProperty.Builder.() -> Unit): Unit = deviceConfiguration(CfnUserPool.DeviceConfigurationProperty(deviceConfiguration)) + /** + * @param emailAuthenticationMessage the value to be set. + */ + override fun emailAuthenticationMessage(emailAuthenticationMessage: String) { + cdkBuilder.emailAuthenticationMessage(emailAuthenticationMessage) + } + + /** + * @param emailAuthenticationSubject the value to be set. + */ + override fun emailAuthenticationSubject(emailAuthenticationSubject: String) { + cdkBuilder.emailAuthenticationSubject(emailAuthenticationSubject) + } + /** * @param emailConfiguration The email configuration of your user pool. * The email configuration type sets your preferred sending method, AWS Region, and sender for @@ -1155,51 +1282,27 @@ public interface CfnUserPoolProps { override fun enabledMfas(vararg enabledMfas: String): Unit = enabledMfas(enabledMfas.toList()) /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ override fun lambdaConfig(lambdaConfig: IResolvable) { cdkBuilder.lambdaConfig(lambdaConfig.let(IResolvable.Companion::unwrap)) } /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ override fun lambdaConfig(lambdaConfig: CfnUserPool.LambdaConfigProperty) { cdkBuilder.lambdaConfig(lambdaConfig.let(CfnUserPool.LambdaConfigProperty.Companion::unwrap)) } /** - * @param lambdaConfig The Lambda trigger configuration information for the new user pool. - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * @param lambdaConfig A collection of user pool Lambda triggers. + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("db420d077990a8f3f5f9aacfd7af72fcdea4ac8959a927526e1d56a2037fca89") @@ -1218,21 +1321,45 @@ public interface CfnUserPoolProps { } /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ override fun policies(policies: IResolvable) { cdkBuilder.policies(policies.let(IResolvable.Companion::unwrap)) } /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ override fun policies(policies: CfnUserPool.PoliciesProperty) { cdkBuilder.policies(policies.let(CfnUserPool.PoliciesProperty.Companion::unwrap)) } /** - * @param policies The policy associated with a user pool. + * @param policies A list of user pool policies. Contains the policy that sets + * password-complexity requirements. + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("343a2a106aa51ec53bcbb198a72763d39c1daff0913054bb5997ab31e254fc8b") @@ -1481,16 +1608,24 @@ public interface CfnUserPoolProps { usernameConfiguration(CfnUserPool.UsernameConfigurationProperty(usernameConfiguration)) /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ override fun verificationMessageTemplate(verificationMessageTemplate: IResolvable) { cdkBuilder.verificationMessageTemplate(verificationMessageTemplate.let(IResolvable.Companion::unwrap)) } /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ override fun verificationMessageTemplate(verificationMessageTemplate: CfnUserPool.VerificationMessageTemplateProperty) { @@ -1498,8 +1633,12 @@ public interface CfnUserPoolProps { } /** - * @param verificationMessageTemplate The template for the verification message that the user - * sees when the app requests permission to access the user's information. + * @param verificationMessageTemplate The template for the verification message that your user + * pool delivers to users who set an email address or phone number attribute. + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3013e72971088221a7901816ff1cc9a02b7d294abd0f631b7d9bc30cb5c5116a") @@ -1514,7 +1653,8 @@ public interface CfnUserPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolProps, - ) : CdkObject(cdkObject), CfnUserPoolProps { + ) : CdkObject(cdkObject), + CfnUserPoolProps { /** * Use this setting to define which verified available method a user can use to recover their * password when they call `ForgotPassword` . @@ -1529,7 +1669,18 @@ public interface CfnUserPoolProps { override fun accountRecoverySetting(): Any? = unwrap(this).getAccountRecoverySetting() /** - * The configuration for creating a new user profile. + * The settings for administrator creation of users in a user pool. + * + * Contains settings for allowing user sign-up, customizing invitation messages to new users, + * and the amount of time before temporary passwords expire. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-admincreateuserconfig) */ @@ -1586,6 +1737,18 @@ public interface CfnUserPoolProps { */ override fun deviceConfiguration(): Any? = unwrap(this).getDeviceConfiguration() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationmessage) + */ + override fun emailAuthenticationMessage(): String? = + unwrap(this).getEmailAuthenticationMessage() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-emailauthenticationsubject) + */ + override fun emailAuthenticationSubject(): String? = + unwrap(this).getEmailAuthenticationSubject() + /** * The email configuration of your user pool. * @@ -1637,19 +1800,10 @@ public interface CfnUserPoolProps { override fun enabledMfas(): List = unwrap(this).getEnabledMfas() ?: emptyList() /** - * The Lambda trigger configuration information for the new user pool. - * - * - * In a push model, event sources (such as Amazon S3 and custom applications) need permission to - * invoke a function. So you must make an extra call to add permission for these event sources to - * invoke your Lambda function. - * - * For more information on using the Lambda API to add permission, see - * [AddPermission](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) . - * - * For adding permission using the AWS CLI , see - * [add-permission](https://docs.aws.amazon.com/cli/latest/reference/lambda/add-permission.html) . + * A collection of user pool Lambda triggers. * + * Amazon Cognito invokes triggers at several possible stages of authentication operations. + * Triggers can modify the outcome of the operations that invoked them. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-lambdaconfig) */ @@ -1667,7 +1821,15 @@ public interface CfnUserPoolProps { override fun mfaConfiguration(): String? = unwrap(this).getMfaConfiguration() /** - * The policy associated with a user pool. + * A list of user pool policies. Contains the policy that sets password-complexity requirements. + * + * This data type is a request and response parameter of + * [CreateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html) + * and + * [UpdateUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html) + * , and a response parameter of + * [DescribeUserPool](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-policies) */ @@ -1785,8 +1947,13 @@ public interface CfnUserPoolProps { override fun usernameConfiguration(): Any? = unwrap(this).getUsernameConfiguration() /** - * The template for the verification message that the user sees when the app requests permission - * to access the user's information. + * The template for the verification message that your user pool delivers to users who set an + * email address or phone number attribute. + * + * Set the email message type that corresponds to your `DefaultEmailOption` selection. For + * `CONFIRM_WITH_LINK` , specify an `EmailMessageByLink` and leave `EmailMessage` blank. For + * `CONFIRM_WITH_CODE` , specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you + * supply both parameters with either choice, Amazon Cognito returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServer.kt index 1102ea892a..e3bf1dbf66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServer.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolResourceServer( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -64,11 +65,6 @@ public open class CfnUserPoolResourceServer( ) : this(scope, id, CfnUserPoolResourceServerProps(props) ) - /** - * The resource ID. - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * A unique resource server identifier for the resource server. */ @@ -302,7 +298,18 @@ public open class CfnUserPoolResourceServer( } /** - * A resource server scope. + * One custom scope associated with a user pool resource server. + * + * This data type is a member of `ResourceServerScopeType` . For more information, see [Scopes, + * M2M, and API authorization with resource + * servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html) + * . + * + * This data type is a request parameter of + * [CreateResourceServer](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateResourceServer.html) + * and a response parameter of + * [DescribeResourceServer](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeResourceServer.html) + * . * * Example: * @@ -321,7 +328,7 @@ public open class CfnUserPoolResourceServer( */ public interface ResourceServerScopeTypeProperty { /** - * A description of the scope. + * A friendly description of a custom scope. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolresourceserver-resourceserverscopetype.html#cfn-cognito-userpoolresourceserver-resourceserverscopetype-scopedescription) */ @@ -330,6 +337,11 @@ public open class CfnUserPoolResourceServer( /** * The name of the scope. * + * Amazon Cognito renders custom scopes in the format `resourceServerIdentifier/ScopeName` . For + * example, if this parameter is `exampleScope` in the resource server with the identifier + * `exampleResourceServer` , you request and receive the scope `exampleResourceServer/exampleScope` + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolresourceserver-resourceserverscopetype.html#cfn-cognito-userpoolresourceserver-resourceserverscopetype-scopename) */ public fun scopeName(): String @@ -340,12 +352,16 @@ public open class CfnUserPoolResourceServer( @CdkDslMarker public interface Builder { /** - * @param scopeDescription A description of the scope. + * @param scopeDescription A friendly description of a custom scope. */ public fun scopeDescription(scopeDescription: String) /** * @param scopeName The name of the scope. + * Amazon Cognito renders custom scopes in the format `resourceServerIdentifier/ScopeName` . + * For example, if this parameter is `exampleScope` in the resource server with the identifier + * `exampleResourceServer` , you request and receive the scope + * `exampleResourceServer/exampleScope` . */ public fun scopeName(scopeName: String) } @@ -357,7 +373,7 @@ public open class CfnUserPoolResourceServer( software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer.ResourceServerScopeTypeProperty.builder() /** - * @param scopeDescription A description of the scope. + * @param scopeDescription A friendly description of a custom scope. */ override fun scopeDescription(scopeDescription: String) { cdkBuilder.scopeDescription(scopeDescription) @@ -365,6 +381,10 @@ public open class CfnUserPoolResourceServer( /** * @param scopeName The name of the scope. + * Amazon Cognito renders custom scopes in the format `resourceServerIdentifier/ScopeName` . + * For example, if this parameter is `exampleScope` in the resource server with the identifier + * `exampleResourceServer` , you request and receive the scope + * `exampleResourceServer/exampleScope` . */ override fun scopeName(scopeName: String) { cdkBuilder.scopeName(scopeName) @@ -377,9 +397,10 @@ public open class CfnUserPoolResourceServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer.ResourceServerScopeTypeProperty, - ) : CdkObject(cdkObject), ResourceServerScopeTypeProperty { + ) : CdkObject(cdkObject), + ResourceServerScopeTypeProperty { /** - * A description of the scope. + * A friendly description of a custom scope. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolresourceserver-resourceserverscopetype.html#cfn-cognito-userpoolresourceserver-resourceserverscopetype-scopedescription) */ @@ -388,6 +409,11 @@ public open class CfnUserPoolResourceServer( /** * The name of the scope. * + * Amazon Cognito renders custom scopes in the format `resourceServerIdentifier/ScopeName` . + * For example, if this parameter is `exampleScope` in the resource server with the identifier + * `exampleResourceServer` , you request and receive the scope + * `exampleResourceServer/exampleScope` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolresourceserver-resourceserverscopetype.html#cfn-cognito-userpoolresourceserver-resourceserverscopetype-scopename) */ override fun scopeName(): String = unwrap(this).getScopeName() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServerProps.kt index 6d746012c6..97dfb564a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolResourceServerProps.kt @@ -166,7 +166,8 @@ public interface CfnUserPoolResourceServerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolResourceServerProps, - ) : CdkObject(cdkObject), CfnUserPoolResourceServerProps { + ) : CdkObject(cdkObject), + CfnUserPoolResourceServerProps { /** * A unique resource server identifier for the resource server. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachment.kt index 8128147df9..f8ddd14165 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachment.kt @@ -98,7 +98,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolRiskConfigurationAttachment( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -116,23 +117,23 @@ public open class CfnUserPoolRiskConfigurationAttachment( ) /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object and - * `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. */ public open fun accountTakeoverRiskConfiguration(): Any? = unwrap(this).getAccountTakeoverRiskConfiguration() /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object and - * `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. */ public open fun accountTakeoverRiskConfiguration(`value`: IResolvable) { unwrap(this).setAccountTakeoverRiskConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object and - * `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. */ public open fun accountTakeoverRiskConfiguration(`value`: AccountTakeoverRiskConfigurationTypeProperty) { @@ -140,8 +141,8 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object and - * `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a2d693232dc81f90060219d90f0f03de79d833bbb55b26aa0ac11a65de8002d6") @@ -162,23 +163,23 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. */ public open fun compromisedCredentialsRiskConfiguration(): Any? = unwrap(this).getCompromisedCredentialsRiskConfiguration() /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. */ public open fun compromisedCredentialsRiskConfiguration(`value`: IResolvable) { unwrap(this).setCompromisedCredentialsRiskConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. */ public open fun compromisedCredentialsRiskConfiguration(`value`: CompromisedCredentialsRiskConfigurationTypeProperty) { @@ -186,8 +187,8 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e29eeb48e5960f8d9dcf803c25650c686eb50039e88d6d55c7735e6f3c6cc394") @@ -206,26 +207,30 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. */ public open fun riskExceptionConfiguration(): Any? = unwrap(this).getRiskExceptionConfiguration() /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. */ public open fun riskExceptionConfiguration(`value`: IResolvable) { unwrap(this).setRiskExceptionConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. */ public open fun riskExceptionConfiguration(`value`: RiskExceptionConfigurationTypeProperty) { unwrap(this).setRiskExceptionConfiguration(`value`.let(RiskExceptionConfigurationTypeProperty.Companion::unwrap)) } /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0ca2b19f1a4cca9563cf0441443606153b1460d769fb29c46a97b8e30b87f091") @@ -234,12 +239,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( Unit = riskExceptionConfiguration(RiskExceptionConfigurationTypeProperty(`value`)) /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. */ public open fun userPoolId(): String = unwrap(this).getUserPoolId() /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. */ public open fun userPoolId(`value`: String) { unwrap(this).setUserPoolId(`value`) @@ -252,36 +257,33 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ public fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: IResolvable) /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ public fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: AccountTakeoverRiskConfigurationTypeProperty) /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("721ca80ae4ed9e75bccc80f643c64dc5e542b0513fb094e43bea7d923222a6af") @@ -300,34 +302,34 @@ public open class CfnUserPoolRiskConfigurationAttachment( public fun clientId(clientId: String) /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ public fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: IResolvable) /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ public fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CompromisedCredentialsRiskConfigurationTypeProperty) /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d67967ce232d079c4e109c209c5a8c352c9d0c457a9de7ff64f55a6bbdf67b5d") @@ -335,27 +337,33 @@ public open class CfnUserPoolRiskConfigurationAttachment( fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CompromisedCredentialsRiskConfigurationTypeProperty.Builder.() -> Unit) /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ public fun riskExceptionConfiguration(riskExceptionConfiguration: IResolvable) /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ public fun riskExceptionConfiguration(riskExceptionConfiguration: RiskExceptionConfigurationTypeProperty) /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("18a81f7eda386fc8e080c1809ae323198c29d00eb41bfadf7af4b679c4a2e8d4") @@ -363,10 +371,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( fun riskExceptionConfiguration(riskExceptionConfiguration: RiskExceptionConfigurationTypeProperty.Builder.() -> Unit) /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-userpoolid) - * @param userPoolId The user pool ID. + * @param userPoolId The ID of the user pool that has the risk configuration applied. */ public fun userPoolId(userPoolId: String) } @@ -381,26 +389,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( id) /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ override fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: IResolvable) { cdkBuilder.accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration.let(IResolvable.Companion::unwrap)) } /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ override fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: AccountTakeoverRiskConfigurationTypeProperty) { @@ -408,13 +414,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("721ca80ae4ed9e75bccc80f643c64dc5e542b0513fb094e43bea7d923222a6af") @@ -437,12 +442,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ override fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: IResolvable) { @@ -450,12 +455,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ override fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CompromisedCredentialsRiskConfigurationTypeProperty) { @@ -463,12 +468,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d67967ce232d079c4e109c209c5a8c352c9d0c457a9de7ff64f55a6bbdf67b5d") @@ -478,20 +483,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( compromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationTypeProperty(compromisedCredentialsRiskConfiguration)) /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ override fun riskExceptionConfiguration(riskExceptionConfiguration: IResolvable) { cdkBuilder.riskExceptionConfiguration(riskExceptionConfiguration.let(IResolvable.Companion::unwrap)) } /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ override fun riskExceptionConfiguration(riskExceptionConfiguration: RiskExceptionConfigurationTypeProperty) { @@ -499,10 +508,12 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("18a81f7eda386fc8e080c1809ae323198c29d00eb41bfadf7af4b679c4a2e8d4") @@ -512,10 +523,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( riskExceptionConfiguration(RiskExceptionConfigurationTypeProperty(riskExceptionConfiguration)) /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-userpoolid) - * @param userPoolId The user pool ID. + * @param userPoolId The ID of the user pool that has the risk configuration applied. */ override fun userPoolId(userPoolId: String) { cdkBuilder.userPoolId(userPoolId) @@ -550,7 +561,16 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * Account takeover action type. + * The automated response to a risk level for adaptive authentication in full-function, or + * `ENFORCED` , mode. + * + * You can assign an action to each risk level that advanced security features evaluates. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -569,20 +589,27 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface AccountTakeoverActionTypeProperty { /** - * The action to take in response to the account takeover action. Valid values are as follows:. + * The action to take for the attempted account takeover action for the associated risk level. + * + * Valid values are as follows: * - * * `BLOCK` Choosing this action will block the request. - * * `MFA_IF_CONFIGURED` Present an MFA challenge if user has configured it, else allow the - * request. - * * `MFA_REQUIRED` Present an MFA challenge if user has configured it, else block the request. - * * `NO_ACTION` Allow the user to sign in. + * * `BLOCK` : Block the request. + * * `MFA_IF_CONFIGURED` : Present an MFA challenge if possible. MFA is possible if the user + * pool has active MFA methods that the user can set up. For example, if the user pool only + * supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't + * possible. If MFA setup isn't possible, allow the request. + * * `MFA_REQUIRED` : Present an MFA challenge if possible. Block the request if a user hasn't + * set up MFA. To sign in with required MFA, users must have an email address or phone number + * attribute, or a registered TOTP factor. + * * `NO_ACTION` : Take no action. Permit sign-in. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-eventaction) */ public fun eventAction(): String /** - * Flag specifying whether to send a notification. + * Determines whether Amazon Cognito sends a user a notification message when your user pools + * assesses a user's session at the associated risk level. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-notify) */ @@ -594,24 +621,31 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param eventAction The action to take in response to the account takeover action. Valid - * values are as follows:. - * * `BLOCK` Choosing this action will block the request. - * * `MFA_IF_CONFIGURED` Present an MFA challenge if user has configured it, else allow the - * request. - * * `MFA_REQUIRED` Present an MFA challenge if user has configured it, else block the - * request. - * * `NO_ACTION` Allow the user to sign in. + * @param eventAction The action to take for the attempted account takeover action for the + * associated risk level. + * Valid values are as follows: + * + * * `BLOCK` : Block the request. + * * `MFA_IF_CONFIGURED` : Present an MFA challenge if possible. MFA is possible if the user + * pool has active MFA methods that the user can set up. For example, if the user pool only + * supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't + * possible. If MFA setup isn't possible, allow the request. + * * `MFA_REQUIRED` : Present an MFA challenge if possible. Block the request if a user hasn't + * set up MFA. To sign in with required MFA, users must have an email address or phone number + * attribute, or a registered TOTP factor. + * * `NO_ACTION` : Take no action. Permit sign-in. */ public fun eventAction(eventAction: String) /** - * @param notify Flag specifying whether to send a notification. + * @param notify Determines whether Amazon Cognito sends a user a notification message when + * your user pools assesses a user's session at the associated risk level. */ public fun notify(notify: Boolean) /** - * @param notify Flag specifying whether to send a notification. + * @param notify Determines whether Amazon Cognito sends a user a notification message when + * your user pools assesses a user's session at the associated risk level. */ public fun notify(notify: IResolvable) } @@ -623,28 +657,35 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.builder() /** - * @param eventAction The action to take in response to the account takeover action. Valid - * values are as follows:. - * * `BLOCK` Choosing this action will block the request. - * * `MFA_IF_CONFIGURED` Present an MFA challenge if user has configured it, else allow the - * request. - * * `MFA_REQUIRED` Present an MFA challenge if user has configured it, else block the - * request. - * * `NO_ACTION` Allow the user to sign in. + * @param eventAction The action to take for the attempted account takeover action for the + * associated risk level. + * Valid values are as follows: + * + * * `BLOCK` : Block the request. + * * `MFA_IF_CONFIGURED` : Present an MFA challenge if possible. MFA is possible if the user + * pool has active MFA methods that the user can set up. For example, if the user pool only + * supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't + * possible. If MFA setup isn't possible, allow the request. + * * `MFA_REQUIRED` : Present an MFA challenge if possible. Block the request if a user hasn't + * set up MFA. To sign in with required MFA, users must have an email address or phone number + * attribute, or a registered TOTP factor. + * * `NO_ACTION` : Take no action. Permit sign-in. */ override fun eventAction(eventAction: String) { cdkBuilder.eventAction(eventAction) } /** - * @param notify Flag specifying whether to send a notification. + * @param notify Determines whether Amazon Cognito sends a user a notification message when + * your user pools assesses a user's session at the associated risk level. */ override fun notify(notify: Boolean) { cdkBuilder.notify(notify) } /** - * @param notify Flag specifying whether to send a notification. + * @param notify Determines whether Amazon Cognito sends a user a notification message when + * your user pools assesses a user's session at the associated risk level. */ override fun notify(notify: IResolvable) { cdkBuilder.notify(notify.let(IResolvable.Companion::unwrap)) @@ -657,24 +698,30 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty, - ) : CdkObject(cdkObject), AccountTakeoverActionTypeProperty { + ) : CdkObject(cdkObject), + AccountTakeoverActionTypeProperty { /** - * The action to take in response to the account takeover action. Valid values are as - * follows:. + * The action to take for the attempted account takeover action for the associated risk level. * - * * `BLOCK` Choosing this action will block the request. - * * `MFA_IF_CONFIGURED` Present an MFA challenge if user has configured it, else allow the - * request. - * * `MFA_REQUIRED` Present an MFA challenge if user has configured it, else block the - * request. - * * `NO_ACTION` Allow the user to sign in. + * Valid values are as follows: + * + * * `BLOCK` : Block the request. + * * `MFA_IF_CONFIGURED` : Present an MFA challenge if possible. MFA is possible if the user + * pool has active MFA methods that the user can set up. For example, if the user pool only + * supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't + * possible. If MFA setup isn't possible, allow the request. + * * `MFA_REQUIRED` : Present an MFA challenge if possible. Block the request if a user hasn't + * set up MFA. To sign in with required MFA, users must have an email address or phone number + * attribute, or a registered TOTP factor. + * * `NO_ACTION` : Take no action. Permit sign-in. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-eventaction) */ override fun eventAction(): String = unwrap(this).getEventAction() /** - * Flag specifying whether to send a notification. + * Determines whether Amazon Cognito sends a user a notification message when your user pools + * assesses a user's session at the associated risk level. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-notify) */ @@ -701,7 +748,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * Account takeover actions type. + * A list of account-takeover actions for each level of risk that Amazon Cognito might assess with + * advanced security features. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -730,21 +784,21 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface AccountTakeoverActionsTypeProperty { /** - * Action to take for a high risk. + * The action that you assign to a high-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-highaction) */ public fun highAction(): Any? = unwrap(this).getHighAction() /** - * Action to take for a low risk. + * The action that you assign to a low-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-lowaction) */ public fun lowAction(): Any? = unwrap(this).getLowAction() /** - * Action to take for a medium risk. + * The action that you assign to a medium-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-mediumaction) */ @@ -756,51 +810,60 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ public fun highAction(highAction: IResolvable) /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ public fun highAction(highAction: AccountTakeoverActionTypeProperty) /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("70360ca930418d113c3f4f29d74bc50c78c8d0a8793e26af75eb1c32ddf009d2") public fun highAction(highAction: AccountTakeoverActionTypeProperty.Builder.() -> Unit) /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ public fun lowAction(lowAction: IResolvable) /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ public fun lowAction(lowAction: AccountTakeoverActionTypeProperty) /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fb015d149cc8017ed15bddd8e6ff46fc0e53195f831d12fc31fe005305b98829") public fun lowAction(lowAction: AccountTakeoverActionTypeProperty.Builder.() -> Unit) /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ public fun mediumAction(mediumAction: IResolvable) /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ public fun mediumAction(mediumAction: AccountTakeoverActionTypeProperty) /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d0be028fa84e1ccf8a6615b4fb0fa99924be459f987b9f079eaf28bcdf633f50") @@ -814,21 +877,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionsTypeProperty.builder() /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ override fun highAction(highAction: IResolvable) { cdkBuilder.highAction(highAction.let(IResolvable.Companion::unwrap)) } /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ override fun highAction(highAction: AccountTakeoverActionTypeProperty) { cdkBuilder.highAction(highAction.let(AccountTakeoverActionTypeProperty.Companion::unwrap)) } /** - * @param highAction Action to take for a high risk. + * @param highAction The action that you assign to a high-risk assessment by advanced security + * features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("70360ca930418d113c3f4f29d74bc50c78c8d0a8793e26af75eb1c32ddf009d2") @@ -836,21 +902,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( Unit = highAction(AccountTakeoverActionTypeProperty(highAction)) /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ override fun lowAction(lowAction: IResolvable) { cdkBuilder.lowAction(lowAction.let(IResolvable.Companion::unwrap)) } /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ override fun lowAction(lowAction: AccountTakeoverActionTypeProperty) { cdkBuilder.lowAction(lowAction.let(AccountTakeoverActionTypeProperty.Companion::unwrap)) } /** - * @param lowAction Action to take for a low risk. + * @param lowAction The action that you assign to a low-risk assessment by advanced security + * features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fb015d149cc8017ed15bddd8e6ff46fc0e53195f831d12fc31fe005305b98829") @@ -858,21 +927,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( = lowAction(AccountTakeoverActionTypeProperty(lowAction)) /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ override fun mediumAction(mediumAction: IResolvable) { cdkBuilder.mediumAction(mediumAction.let(IResolvable.Companion::unwrap)) } /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ override fun mediumAction(mediumAction: AccountTakeoverActionTypeProperty) { cdkBuilder.mediumAction(mediumAction.let(AccountTakeoverActionTypeProperty.Companion::unwrap)) } /** - * @param mediumAction Action to take for a medium risk. + * @param mediumAction The action that you assign to a medium-risk assessment by advanced + * security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d0be028fa84e1ccf8a6615b4fb0fa99924be459f987b9f079eaf28bcdf633f50") @@ -886,23 +958,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionsTypeProperty, - ) : CdkObject(cdkObject), AccountTakeoverActionsTypeProperty { + ) : CdkObject(cdkObject), + AccountTakeoverActionsTypeProperty { /** - * Action to take for a high risk. + * The action that you assign to a high-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-highaction) */ override fun highAction(): Any? = unwrap(this).getHighAction() /** - * Action to take for a low risk. + * The action that you assign to a low-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-lowaction) */ override fun lowAction(): Any? = unwrap(this).getLowAction() /** - * Action to take for a medium risk. + * The action that you assign to a medium-risk assessment by advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-mediumaction) */ @@ -929,8 +1002,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * Configuration for mitigation actions and notification for different levels of risk detected for - * a potential account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -986,14 +1065,19 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface AccountTakeoverRiskConfigurationTypeProperty { /** - * Account takeover risk configuration actions. + * A list of account-takeover actions for each level of risk that Amazon Cognito might assess + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype-actions) */ public fun actions(): Any /** - * The notify configuration used to construct email notifications. + * The settings for composing and sending an email message when advanced security features + * assesses a risk level with adaptive authentication. + * + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito sends + * an email message using the method and template that you set with this data type. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype-notifyconfiguration) */ @@ -1005,34 +1089,46 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ public fun actions(actions: IResolvable) /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ public fun actions(actions: AccountTakeoverActionsTypeProperty) /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2c0e56172104dcc61cc0a874470d33913d309d539be3f24d6c0325b8d990990") public fun actions(actions: AccountTakeoverActionsTypeProperty.Builder.() -> Unit) /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ public fun notifyConfiguration(notifyConfiguration: IResolvable) /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ public fun notifyConfiguration(notifyConfiguration: NotifyConfigurationTypeProperty) /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("92517bde806b2d8246e6e681dd7ac5e32a2ea81f8ffd5c47a0953c0292176731") @@ -1047,21 +1143,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty.builder() /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ override fun actions(actions: IResolvable) { cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) } /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ override fun actions(actions: AccountTakeoverActionsTypeProperty) { cdkBuilder.actions(actions.let(AccountTakeoverActionsTypeProperty.Companion::unwrap)) } /** - * @param actions Account takeover risk configuration actions. + * @param actions A list of account-takeover actions for each level of risk that Amazon + * Cognito might assess with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2c0e56172104dcc61cc0a874470d33913d309d539be3f24d6c0325b8d990990") @@ -1069,21 +1168,30 @@ public open class CfnUserPoolRiskConfigurationAttachment( actions(AccountTakeoverActionsTypeProperty(actions)) /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ override fun notifyConfiguration(notifyConfiguration: IResolvable) { cdkBuilder.notifyConfiguration(notifyConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ override fun notifyConfiguration(notifyConfiguration: NotifyConfigurationTypeProperty) { cdkBuilder.notifyConfiguration(notifyConfiguration.let(NotifyConfigurationTypeProperty.Companion::unwrap)) } /** - * @param notifyConfiguration The notify configuration used to construct email notifications. + * @param notifyConfiguration The settings for composing and sending an email message when + * advanced security features assesses a risk level with adaptive authentication. + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("92517bde806b2d8246e6e681dd7ac5e32a2ea81f8ffd5c47a0953c0292176731") @@ -1098,16 +1206,22 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty, - ) : CdkObject(cdkObject), AccountTakeoverRiskConfigurationTypeProperty { + ) : CdkObject(cdkObject), + AccountTakeoverRiskConfigurationTypeProperty { /** - * Account takeover risk configuration actions. + * A list of account-takeover actions for each level of risk that Amazon Cognito might assess + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype-actions) */ override fun actions(): Any = unwrap(this).getActions() /** - * The notify configuration used to construct email notifications. + * The settings for composing and sending an email message when advanced security features + * assesses a risk level with adaptive authentication. + * + * When you choose to notify users in `AccountTakeoverRiskConfiguration` , Amazon Cognito + * sends an email message using the method and template that you set with this data type. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype-notifyconfiguration) */ @@ -1134,7 +1248,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials actions type. + * Settings for user pool actions when Amazon Cognito detects compromised credentials with + * advanced security features in full-function `ENFORCED` mode. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -1152,7 +1273,7 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface CompromisedCredentialsActionsTypeProperty { /** - * The event action. + * The action that Amazon Cognito takes when it detects compromised credentials. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype-eventaction) */ @@ -1164,7 +1285,8 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param eventAction The event action. + * @param eventAction The action that Amazon Cognito takes when it detects compromised + * credentials. */ public fun eventAction(eventAction: String) } @@ -1176,7 +1298,8 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty.builder() /** - * @param eventAction The event action. + * @param eventAction The action that Amazon Cognito takes when it detects compromised + * credentials. */ override fun eventAction(eventAction: String) { cdkBuilder.eventAction(eventAction) @@ -1189,9 +1312,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty, - ) : CdkObject(cdkObject), CompromisedCredentialsActionsTypeProperty { + ) : CdkObject(cdkObject), + CompromisedCredentialsActionsTypeProperty { /** - * The event action. + * The action that Amazon Cognito takes when it detects compromised credentials. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype-eventaction) */ @@ -1218,7 +1342,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The compromised credentials risk configuration type. + * Settings for compromised-credentials actions and authentication-event sources with advanced + * security features in full-function `ENFORCED` mode. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -1241,16 +1372,18 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface CompromisedCredentialsRiskConfigurationTypeProperty { /** - * The compromised credentials risk configuration actions. + * Settings for the actions that you want your user pool to take when Amazon Cognito detects + * compromised credentials. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype-actions) */ public fun actions(): Any /** - * Perform the action for these events. + * Settings for the sign-in activity where you want to configure compromised-credentials + * actions. * - * The default is to perform all events if no event filter is specified. + * Defaults to all events. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype-eventfilter) */ @@ -1262,31 +1395,36 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ public fun actions(actions: IResolvable) /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ public fun actions(actions: CompromisedCredentialsActionsTypeProperty) /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("10d7c10c415afdc9e4c831e0df67d2a60d7475d6b543b486081c0c73b3fce0e7") public fun actions(actions: CompromisedCredentialsActionsTypeProperty.Builder.() -> Unit) /** - * @param eventFilter Perform the action for these events. - * The default is to perform all events if no event filter is specified. + * @param eventFilter Settings for the sign-in activity where you want to configure + * compromised-credentials actions. + * Defaults to all events. */ public fun eventFilter(eventFilter: List) /** - * @param eventFilter Perform the action for these events. - * The default is to perform all events if no event filter is specified. + * @param eventFilter Settings for the sign-in activity where you want to configure + * compromised-credentials actions. + * Defaults to all events. */ public fun eventFilter(vararg eventFilter: String) } @@ -1298,21 +1436,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty.builder() /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ override fun actions(actions: IResolvable) { cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) } /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ override fun actions(actions: CompromisedCredentialsActionsTypeProperty) { cdkBuilder.actions(actions.let(CompromisedCredentialsActionsTypeProperty.Companion::unwrap)) } /** - * @param actions The compromised credentials risk configuration actions. + * @param actions Settings for the actions that you want your user pool to take when Amazon + * Cognito detects compromised credentials. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("10d7c10c415afdc9e4c831e0df67d2a60d7475d6b543b486081c0c73b3fce0e7") @@ -1320,16 +1461,18 @@ public open class CfnUserPoolRiskConfigurationAttachment( Unit = actions(CompromisedCredentialsActionsTypeProperty(actions)) /** - * @param eventFilter Perform the action for these events. - * The default is to perform all events if no event filter is specified. + * @param eventFilter Settings for the sign-in activity where you want to configure + * compromised-credentials actions. + * Defaults to all events. */ override fun eventFilter(eventFilter: List) { cdkBuilder.eventFilter(eventFilter) } /** - * @param eventFilter Perform the action for these events. - * The default is to perform all events if no event filter is specified. + * @param eventFilter Settings for the sign-in activity where you want to configure + * compromised-credentials actions. + * Defaults to all events. */ override fun eventFilter(vararg eventFilter: String): Unit = eventFilter(eventFilter.toList()) @@ -1340,18 +1483,21 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty, - ) : CdkObject(cdkObject), CompromisedCredentialsRiskConfigurationTypeProperty { + ) : CdkObject(cdkObject), + CompromisedCredentialsRiskConfigurationTypeProperty { /** - * The compromised credentials risk configuration actions. + * Settings for the actions that you want your user pool to take when Amazon Cognito detects + * compromised credentials. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype-actions) */ override fun actions(): Any = unwrap(this).getActions() /** - * Perform the action for these events. + * Settings for the sign-in activity where you want to configure compromised-credentials + * actions. * - * The default is to perform all events if no event filter is specified. + * Defaults to all events. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype-eventfilter) */ @@ -1378,7 +1524,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The notify configuration type. + * The configuration for Amazon SES email messages that advanced security features sends to a user + * when your adaptive authentication automated response has a *Notify* action. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -1417,14 +1570,15 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface NotifyConfigurationTypeProperty { /** - * Email template used when a detected risk event is blocked. + * The template for the email message that your user pool sends when a detected risk event is + * blocked. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-blockemail) */ public fun blockEmail(): Any? = unwrap(this).getBlockEmail() /** - * The email address that is sending the email. + * The email address that sends the email message. * * The address must be either individually verified with Amazon Simple Email Service, or from a * domain that has been verified with Amazon SES. @@ -1434,22 +1588,23 @@ public open class CfnUserPoolRiskConfigurationAttachment( public fun from(): String? = unwrap(this).getFrom() /** - * The multi-factor authentication (MFA) email template used when MFA is challenged as part of a - * detected risk. + * The template for the email message that your user pool sends when MFA is challenged in + * response to a detected risk. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-mfaemail) */ public fun mfaEmail(): Any? = unwrap(this).getMfaEmail() /** - * The email template used when a detected risk event is allowed. + * The template for the email message that your user pool sends when no action is taken in + * response to a detected risk. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-noactionemail) */ public fun noActionEmail(): Any? = unwrap(this).getNoActionEmail() /** - * The destination to which the receiver of an email should reply to. + * The reply-to email address of an email template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-replyto) */ @@ -1472,68 +1627,74 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ public fun blockEmail(blockEmail: IResolvable) /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ public fun blockEmail(blockEmail: NotifyEmailTypeProperty) /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4592ec4e009cfcb72b485c09a8e6e115c59fdca2e25084a6a4300e2859aa44e5") public fun blockEmail(blockEmail: NotifyEmailTypeProperty.Builder.() -> Unit) /** - * @param from The email address that is sending the email. + * @param from The email address that sends the email message. * The address must be either individually verified with Amazon Simple Email Service, or from * a domain that has been verified with Amazon SES. */ public fun from(from: String) /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ public fun mfaEmail(mfaEmail: IResolvable) /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ public fun mfaEmail(mfaEmail: NotifyEmailTypeProperty) /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ade55e72377cf33f6e0e8e3991da6d3d475dd44052b9b6c5e9a228ceb708c058") public fun mfaEmail(mfaEmail: NotifyEmailTypeProperty.Builder.() -> Unit) /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ public fun noActionEmail(noActionEmail: IResolvable) /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ public fun noActionEmail(noActionEmail: NotifyEmailTypeProperty) /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7e2f3d6291590c7dfd8efc873f1d0aa953980e8e9719ea7f682e29a72c97a7cb") public fun noActionEmail(noActionEmail: NotifyEmailTypeProperty.Builder.() -> Unit) /** - * @param replyTo The destination to which the receiver of an email should reply to. + * @param replyTo The reply-to email address of an email template. */ public fun replyTo(replyTo: String) @@ -1553,21 +1714,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.builder() /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ override fun blockEmail(blockEmail: IResolvable) { cdkBuilder.blockEmail(blockEmail.let(IResolvable.Companion::unwrap)) } /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ override fun blockEmail(blockEmail: NotifyEmailTypeProperty) { cdkBuilder.blockEmail(blockEmail.let(NotifyEmailTypeProperty.Companion::unwrap)) } /** - * @param blockEmail Email template used when a detected risk event is blocked. + * @param blockEmail The template for the email message that your user pool sends when a + * detected risk event is blocked. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4592ec4e009cfcb72b485c09a8e6e115c59fdca2e25084a6a4300e2859aa44e5") @@ -1575,7 +1739,7 @@ public open class CfnUserPoolRiskConfigurationAttachment( blockEmail(NotifyEmailTypeProperty(blockEmail)) /** - * @param from The email address that is sending the email. + * @param from The email address that sends the email message. * The address must be either individually verified with Amazon Simple Email Service, or from * a domain that has been verified with Amazon SES. */ @@ -1584,24 +1748,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ override fun mfaEmail(mfaEmail: IResolvable) { cdkBuilder.mfaEmail(mfaEmail.let(IResolvable.Companion::unwrap)) } /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ override fun mfaEmail(mfaEmail: NotifyEmailTypeProperty) { cdkBuilder.mfaEmail(mfaEmail.let(NotifyEmailTypeProperty.Companion::unwrap)) } /** - * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is - * challenged as part of a detected risk. + * @param mfaEmail The template for the email message that your user pool sends when MFA is + * challenged in response to a detected risk. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ade55e72377cf33f6e0e8e3991da6d3d475dd44052b9b6c5e9a228ceb708c058") @@ -1609,21 +1773,24 @@ public open class CfnUserPoolRiskConfigurationAttachment( mfaEmail(NotifyEmailTypeProperty(mfaEmail)) /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ override fun noActionEmail(noActionEmail: IResolvable) { cdkBuilder.noActionEmail(noActionEmail.let(IResolvable.Companion::unwrap)) } /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ override fun noActionEmail(noActionEmail: NotifyEmailTypeProperty) { cdkBuilder.noActionEmail(noActionEmail.let(NotifyEmailTypeProperty.Companion::unwrap)) } /** - * @param noActionEmail The email template used when a detected risk event is allowed. + * @param noActionEmail The template for the email message that your user pool sends when no + * action is taken in response to a detected risk. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7e2f3d6291590c7dfd8efc873f1d0aa953980e8e9719ea7f682e29a72c97a7cb") @@ -1631,7 +1798,7 @@ public open class CfnUserPoolRiskConfigurationAttachment( noActionEmail(NotifyEmailTypeProperty(noActionEmail)) /** - * @param replyTo The destination to which the receiver of an email should reply to. + * @param replyTo The reply-to email address of an email template. */ override fun replyTo(replyTo: String) { cdkBuilder.replyTo(replyTo) @@ -1654,16 +1821,18 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty, - ) : CdkObject(cdkObject), NotifyConfigurationTypeProperty { + ) : CdkObject(cdkObject), + NotifyConfigurationTypeProperty { /** - * Email template used when a detected risk event is blocked. + * The template for the email message that your user pool sends when a detected risk event is + * blocked. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-blockemail) */ override fun blockEmail(): Any? = unwrap(this).getBlockEmail() /** - * The email address that is sending the email. + * The email address that sends the email message. * * The address must be either individually verified with Amazon Simple Email Service, or from * a domain that has been verified with Amazon SES. @@ -1673,22 +1842,23 @@ public open class CfnUserPoolRiskConfigurationAttachment( override fun from(): String? = unwrap(this).getFrom() /** - * The multi-factor authentication (MFA) email template used when MFA is challenged as part of - * a detected risk. + * The template for the email message that your user pool sends when MFA is challenged in + * response to a detected risk. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-mfaemail) */ override fun mfaEmail(): Any? = unwrap(this).getMfaEmail() /** - * The email template used when a detected risk event is allowed. + * The template for the email message that your user pool sends when no action is taken in + * response to a detected risk. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-noactionemail) */ override fun noActionEmail(): Any? = unwrap(this).getNoActionEmail() /** - * The destination to which the receiver of an email should reply to. + * The reply-to email address of an email template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-replyto) */ @@ -1725,7 +1895,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The notify email type. + * The template for email messages that advanced security features sends to a user when your + * threat protection automated response has a *Notify* action. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -1745,21 +1922,27 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface NotifyEmailTypeProperty { /** - * The email HTML body. + * The body of an email notification formatted in HTML. + * + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-htmlbody) */ public fun htmlBody(): String? = unwrap(this).getHtmlBody() /** - * The email subject. + * The subject of the threat protection email notification. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-subject) */ public fun subject(): String /** - * The email text body. + * The body of an email notification formatted in plaintext. + * + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-textbody) */ @@ -1771,17 +1954,21 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param htmlBody The email HTML body. + * @param htmlBody The body of an email notification formatted in HTML. + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. */ public fun htmlBody(htmlBody: String) /** - * @param subject The email subject. + * @param subject The subject of the threat protection email notification. */ public fun subject(subject: String) /** - * @param textBody The email text body. + * @param textBody The body of an email notification formatted in plaintext. + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. */ public fun textBody(textBody: String) } @@ -1793,21 +1980,25 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty.builder() /** - * @param htmlBody The email HTML body. + * @param htmlBody The body of an email notification formatted in HTML. + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. */ override fun htmlBody(htmlBody: String) { cdkBuilder.htmlBody(htmlBody) } /** - * @param subject The email subject. + * @param subject The subject of the threat protection email notification. */ override fun subject(subject: String) { cdkBuilder.subject(subject) } /** - * @param textBody The email text body. + * @param textBody The body of an email notification formatted in plaintext. + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. */ override fun textBody(textBody: String) { cdkBuilder.textBody(textBody) @@ -1820,23 +2011,30 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty, - ) : CdkObject(cdkObject), NotifyEmailTypeProperty { + ) : CdkObject(cdkObject), + NotifyEmailTypeProperty { /** - * The email HTML body. + * The body of an email notification formatted in HTML. + * + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-htmlbody) */ override fun htmlBody(): String? = unwrap(this).getHtmlBody() /** - * The email subject. + * The subject of the threat protection email notification. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-subject) */ override fun subject(): String = unwrap(this).getSubject() /** - * The email text body. + * The body of an email notification formatted in plaintext. + * + * Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, + * respectively. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-textbody) */ @@ -1862,7 +2060,14 @@ public open class CfnUserPoolRiskConfigurationAttachment( } /** - * The type of the configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. + * + * This data type is a request parameter of + * [SetRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetRiskConfiguration.html) + * and a response parameter of + * [DescribeRiskConfiguration](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeRiskConfiguration.html) + * . * * Example: * @@ -1881,10 +2086,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( */ public interface RiskExceptionConfigurationTypeProperty { /** - * Overrides the risk decision to always block the pre-authentication requests. + * An always-block IP address list. * - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-blockediprangelist) */ @@ -1892,9 +2097,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( emptyList() /** - * Risk detection isn't performed on the IP addresses in this range list. + * An always-allow IP address list. * - * The IP range is in CIDR notation. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-skippediprangelist) */ @@ -1907,32 +2113,30 @@ public open class CfnUserPoolRiskConfigurationAttachment( @CdkDslMarker public interface Builder { /** - * @param blockedIpRangeList Overrides the risk decision to always block the - * pre-authentication requests. - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * @param blockedIpRangeList An always-block IP address list. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. */ public fun blockedIpRangeList(blockedIpRangeList: List) /** - * @param blockedIpRangeList Overrides the risk decision to always block the - * pre-authentication requests. - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * @param blockedIpRangeList An always-block IP address list. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. */ public fun blockedIpRangeList(vararg blockedIpRangeList: String) /** - * @param skippedIpRangeList Risk detection isn't performed on the IP addresses in this range - * list. - * The IP range is in CIDR notation. + * @param skippedIpRangeList An always-allow IP address list. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. */ public fun skippedIpRangeList(skippedIpRangeList: List) /** - * @param skippedIpRangeList Risk detection isn't performed on the IP addresses in this range - * list. - * The IP range is in CIDR notation. + * @param skippedIpRangeList An always-allow IP address list. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. */ public fun skippedIpRangeList(vararg skippedIpRangeList: String) } @@ -1944,37 +2148,35 @@ public open class CfnUserPoolRiskConfigurationAttachment( software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty.builder() /** - * @param blockedIpRangeList Overrides the risk decision to always block the - * pre-authentication requests. - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * @param blockedIpRangeList An always-block IP address list. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. */ override fun blockedIpRangeList(blockedIpRangeList: List) { cdkBuilder.blockedIpRangeList(blockedIpRangeList) } /** - * @param blockedIpRangeList Overrides the risk decision to always block the - * pre-authentication requests. - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * @param blockedIpRangeList An always-block IP address list. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. */ override fun blockedIpRangeList(vararg blockedIpRangeList: String): Unit = blockedIpRangeList(blockedIpRangeList.toList()) /** - * @param skippedIpRangeList Risk detection isn't performed on the IP addresses in this range - * list. - * The IP range is in CIDR notation. + * @param skippedIpRangeList An always-allow IP address list. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. */ override fun skippedIpRangeList(skippedIpRangeList: List) { cdkBuilder.skippedIpRangeList(skippedIpRangeList) } /** - * @param skippedIpRangeList Risk detection isn't performed on the IP addresses in this range - * list. - * The IP range is in CIDR notation. + * @param skippedIpRangeList An always-allow IP address list. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. */ override fun skippedIpRangeList(vararg skippedIpRangeList: String): Unit = skippedIpRangeList(skippedIpRangeList.toList()) @@ -1986,12 +2188,13 @@ public open class CfnUserPoolRiskConfigurationAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty, - ) : CdkObject(cdkObject), RiskExceptionConfigurationTypeProperty { + ) : CdkObject(cdkObject), + RiskExceptionConfigurationTypeProperty { /** - * Overrides the risk decision to always block the pre-authentication requests. + * An always-block IP address list. * - * The IP range is in CIDR notation, a compact representation of an IP address and its routing - * prefix. + * Overrides the risk decision and always blocks authentication requests. This parameter is + * displayed and set in CIDR notation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-blockediprangelist) */ @@ -1999,9 +2202,10 @@ public open class CfnUserPoolRiskConfigurationAttachment( emptyList() /** - * Risk detection isn't performed on the IP addresses in this range list. + * An always-allow IP address list. * - * The IP range is in CIDR notation. + * Risk detection isn't performed on the IP addresses in this range list. This parameter is + * displayed and set in CIDR notation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-skippediprangelist) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachmentProps.kt index 2085164984..8320dcf6d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolRiskConfigurationAttachmentProps.kt @@ -84,8 +84,8 @@ import kotlin.jvm.JvmName */ public interface CfnUserPoolRiskConfigurationAttachmentProps { /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object and - * `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) */ @@ -103,8 +103,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { public fun clientId(): String /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) */ @@ -112,14 +112,15 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { unwrap(this).getCompromisedCredentialsRiskConfiguration() /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) */ public fun riskExceptionConfiguration(): Any? = unwrap(this).getRiskExceptionConfiguration() /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-userpoolid) */ @@ -131,24 +132,21 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { @CdkDslMarker public interface Builder { /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ public fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: IResolvable) /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ public fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty) /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bb271e35416f61b857614270b74ca98b3886d0741f2eff8f638aedbce2ef7ca0") @@ -163,22 +161,22 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { public fun clientId(clientId: String) /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ public fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: IResolvable) /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ public fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty) /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("683ec85a0d5c3a7ccd5caf628278c5d85261b1299fa29aa29cf168b975643e5b") @@ -186,18 +184,21 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty.Builder.() -> Unit) /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ public fun riskExceptionConfiguration(riskExceptionConfiguration: IResolvable) /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ public fun riskExceptionConfiguration(riskExceptionConfiguration: CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty) /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ccd370c772a07343b844afc5a971eacca678c609610d5e9cc698a2638888c52e") @@ -205,7 +206,7 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { fun riskExceptionConfiguration(riskExceptionConfiguration: CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty.Builder.() -> Unit) /** - * @param userPoolId The user pool ID. + * @param userPoolId The ID of the user pool that has the risk configuration applied. */ public fun userPoolId(userPoolId: String) } @@ -217,18 +218,16 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachmentProps.builder() /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ override fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: IResolvable) { cdkBuilder.accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ override fun accountTakeoverRiskConfiguration(accountTakeoverRiskConfiguration: CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty) { @@ -236,9 +235,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { } /** - * @param accountTakeoverRiskConfiguration The account takeover risk configuration object, - * including the `NotifyConfiguration` object and `Actions` to take if there is an account - * takeover. + * @param accountTakeoverRiskConfiguration The settings for automated responses and notification + * templates for adaptive authentication with advanced security features. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bb271e35416f61b857614270b74ca98b3886d0741f2eff8f638aedbce2ef7ca0") @@ -257,8 +255,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { } /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ override fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: IResolvable) { @@ -266,8 +264,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { } /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ override fun compromisedCredentialsRiskConfiguration(compromisedCredentialsRiskConfiguration: CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty) { @@ -275,8 +273,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { } /** - * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration - * object, including the `EventFilter` and the `EventAction` . + * @param compromisedCredentialsRiskConfiguration Settings for compromised-credentials actions + * and authentication types with advanced security features in full-function `ENFORCED` mode. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("683ec85a0d5c3a7ccd5caf628278c5d85261b1299fa29aa29cf168b975643e5b") @@ -286,14 +284,16 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { compromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty(compromisedCredentialsRiskConfiguration)) /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ override fun riskExceptionConfiguration(riskExceptionConfiguration: IResolvable) { cdkBuilder.riskExceptionConfiguration(riskExceptionConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ override fun riskExceptionConfiguration(riskExceptionConfiguration: CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty) { @@ -301,7 +301,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { } /** - * @param riskExceptionConfiguration The configuration to override the risk decision. + * @param riskExceptionConfiguration Exceptions to the risk evaluation configuration, including + * always-allow and always-block IP address ranges. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ccd370c772a07343b844afc5a971eacca678c609610d5e9cc698a2638888c52e") @@ -311,7 +312,7 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { riskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty(riskExceptionConfiguration)) /** - * @param userPoolId The user pool ID. + * @param userPoolId The ID of the user pool that has the risk configuration applied. */ override fun userPoolId(userPoolId: String) { cdkBuilder.userPoolId(userPoolId) @@ -324,10 +325,11 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachmentProps, - ) : CdkObject(cdkObject), CfnUserPoolRiskConfigurationAttachmentProps { + ) : CdkObject(cdkObject), + CfnUserPoolRiskConfigurationAttachmentProps { /** - * The account takeover risk configuration object, including the `NotifyConfiguration` object - * and `Actions` to take if there is an account takeover. + * The settings for automated responses and notification templates for adaptive authentication + * with advanced security features. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfiguration) */ @@ -345,8 +347,8 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { override fun clientId(): String = unwrap(this).getClientId() /** - * The compromised credentials risk configuration object, including the `EventFilter` and the - * `EventAction` . + * Settings for compromised-credentials actions and authentication types with advanced security + * features in full-function `ENFORCED` mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfiguration) */ @@ -354,14 +356,15 @@ public interface CfnUserPoolRiskConfigurationAttachmentProps { unwrap(this).getCompromisedCredentialsRiskConfiguration() /** - * The configuration to override the risk decision. + * Exceptions to the risk evaluation configuration, including always-allow and always-block IP + * address ranges. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfiguration) */ override fun riskExceptionConfiguration(): Any? = unwrap(this).getRiskExceptionConfiguration() /** - * The user pool ID. + * The ID of the user pool that has the risk configuration applied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-userpoolid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachment.kt index ddfb46979d..d5a809dc46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachment.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolUICustomizationAttachment( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUICustomizationAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -66,11 +67,6 @@ public open class CfnUserPoolUICustomizationAttachment( ) : this(scope, id, CfnUserPoolUICustomizationAttachmentProps(props) ) - /** - * The resource ID. - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * The client ID for the client app. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachmentProps.kt index e4830fc091..76167598e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUICustomizationAttachmentProps.kt @@ -111,7 +111,8 @@ public interface CfnUserPoolUICustomizationAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUICustomizationAttachmentProps, - ) : CdkObject(cdkObject), CfnUserPoolUICustomizationAttachmentProps { + ) : CdkObject(cdkObject), + CfnUserPoolUICustomizationAttachmentProps { /** * The client ID for the client app. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUser.kt index ebc6760f2c..5bccfaed81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUser.kt @@ -51,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolUser( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUser, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -811,7 +812,13 @@ public open class CfnUserPoolUser( } /** - * Specifies whether the attribute is standard or custom. + * The name and value of a user attribute. + * + * This data type is a request parameter of + * [AdminUpdateUserAttributes](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html) + * and + * [UpdateUserAttributes](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html) + * . * * Example: * @@ -884,7 +891,8 @@ public open class CfnUserPoolUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUser.AttributeTypeProperty, - ) : CdkObject(cdkObject), AttributeTypeProperty { + ) : CdkObject(cdkObject), + AttributeTypeProperty { /** * The name of the attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserProps.kt index 53f82eb5b3..042a1a8b7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserProps.kt @@ -601,7 +601,8 @@ public interface CfnUserPoolUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUserProps, - ) : CdkObject(cdkObject), CfnUserPoolUserProps { + ) : CdkObject(cdkObject), + CfnUserPoolUserProps { /** * A map of custom key-value pairs that you can provide as input for any custom workflows that * this action triggers. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachment.kt index fc279de683..56affc28c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachment.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPoolUserToGroupAttachment( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUserToGroupAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachmentProps.kt index 9aace086fb..76ccaab0d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CfnUserPoolUserToGroupAttachmentProps.kt @@ -101,7 +101,8 @@ public interface CfnUserPoolUserToGroupAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CfnUserPoolUserToGroupAttachmentProps, - ) : CdkObject(cdkObject), CfnUserPoolUserToGroupAttachmentProps { + ) : CdkObject(cdkObject), + CfnUserPoolUserToGroupAttachmentProps { /** * The name of the group that you want to add your user to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CognitoDomainOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CognitoDomainOptions.kt index e1d21b431f..d0f272829f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CognitoDomainOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CognitoDomainOptions.kt @@ -69,7 +69,8 @@ public interface CognitoDomainOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CognitoDomainOptions, - ) : CdkObject(cdkObject), CognitoDomainOptions { + ) : CdkObject(cdkObject), + CognitoDomainOptions { /** * The prefix to the Cognito hosted domain name that will be associated with the user pool. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeConfig.kt index 18e2446ed1..cce7a2ca1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeConfig.kt @@ -180,7 +180,8 @@ public interface CustomAttributeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CustomAttributeConfig, - ) : CdkObject(cdkObject), CustomAttributeConfig { + ) : CdkObject(cdkObject), + CustomAttributeConfig { /** * The data type of the custom attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeProps.kt index b83ba60721..f7bd295f79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomAttributeProps.kt @@ -89,7 +89,8 @@ public interface CustomAttributeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CustomAttributeProps, - ) : CdkObject(cdkObject), CustomAttributeProps { + ) : CdkObject(cdkObject), + CustomAttributeProps { /** * Specifies whether the value of the attribute can be changed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomDomainOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomDomainOptions.kt index 97d732dfcb..1c2739b971 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomDomainOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/CustomDomainOptions.kt @@ -87,7 +87,8 @@ public interface CustomDomainOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.CustomDomainOptions, - ) : CdkObject(cdkObject), CustomDomainOptions { + ) : CdkObject(cdkObject), + CustomDomainOptions { /** * The certificate to associate with this domain. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DateTimeAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DateTimeAttribute.kt index 1091a5fa42..f809a319f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DateTimeAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DateTimeAttribute.kt @@ -35,7 +35,8 @@ import kotlin.Unit */ public open class DateTimeAttribute( cdkObject: software.amazon.awscdk.services.cognito.DateTimeAttribute, -) : CdkObject(cdkObject), ICustomAttribute { +) : CdkObject(cdkObject), + ICustomAttribute { public constructor() : this(software.amazon.awscdk.services.cognito.DateTimeAttribute() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DeviceTracking.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DeviceTracking.kt index f32228f7dd..353d57e45e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DeviceTracking.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/DeviceTracking.kt @@ -89,7 +89,8 @@ public interface DeviceTracking { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.DeviceTracking, - ) : CdkObject(cdkObject), DeviceTracking { + ) : CdkObject(cdkObject), + DeviceTracking { /** * Indicates whether a challenge is required on a new device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/EmailSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/EmailSettings.kt index dc0c1461a8..1a757271c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/EmailSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/EmailSettings.kt @@ -86,7 +86,8 @@ public interface EmailSettings { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.EmailSettings, - ) : CdkObject(cdkObject), EmailSettings { + ) : CdkObject(cdkObject), + EmailSettings { /** * The 'from' address on the emails received by the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ICustomAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ICustomAttribute.kt index 8768e13746..94794c6a2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ICustomAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ICustomAttribute.kt @@ -16,7 +16,8 @@ public interface ICustomAttribute { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.ICustomAttribute, - ) : CdkObject(cdkObject), ICustomAttribute { + ) : CdkObject(cdkObject), + ICustomAttribute { /** * Bind this custom attribute type to the values as expected by CloudFormation. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPool.kt index 0d48af34f7..f5e8b1adea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPool.kt @@ -123,9 +123,15 @@ public interface IUserPool : IResource { */ public fun userPoolId(): String + /** + * The provider name of this user pool resource. + */ + public fun userPoolProviderName(): String + private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.IUserPool, - ) : CdkObject(cdkObject), IUserPool { + ) : CdkObject(cdkObject), + IUserPool { /** * Add a new app client to this user pool. * @@ -276,6 +282,11 @@ public interface IUserPool : IResource { * The physical ID of this user pool resource. */ override fun userPoolId(): String = unwrap(this).getUserPoolId() + + /** + * The provider name of this user pool resource. + */ + override fun userPoolProviderName(): String = unwrap(this).getUserPoolProviderName() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolClient.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolClient.kt index 9cb8c37e55..1c3fcbdb68 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolClient.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolClient.kt @@ -30,7 +30,8 @@ public interface IUserPoolClient : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.IUserPoolClient, - ) : CdkObject(cdkObject), IUserPoolClient { + ) : CdkObject(cdkObject), + IUserPoolClient { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolDomain.kt index a8f5f6c7d8..293321dd81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolDomain.kt @@ -25,7 +25,8 @@ public interface IUserPoolDomain : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.IUserPoolDomain, - ) : CdkObject(cdkObject), IUserPoolDomain { + ) : CdkObject(cdkObject), + IUserPoolDomain { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolIdentityProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolIdentityProvider.kt index 3b699f9638..b883236afd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolIdentityProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolIdentityProvider.kt @@ -22,7 +22,8 @@ public interface IUserPoolIdentityProvider : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.IUserPoolIdentityProvider, - ) : CdkObject(cdkObject), IUserPoolIdentityProvider { + ) : CdkObject(cdkObject), + IUserPoolIdentityProvider { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolResourceServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolResourceServer.kt index 0590f734fc..2045dd3b61 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolResourceServer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/IUserPoolResourceServer.kt @@ -22,7 +22,8 @@ public interface IUserPoolResourceServer : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.IUserPoolResourceServer, - ) : CdkObject(cdkObject), IUserPoolResourceServer { + ) : CdkObject(cdkObject), + IUserPoolResourceServer { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/KeepOriginalAttrs.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/KeepOriginalAttrs.kt index 775581a504..2e794a30d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/KeepOriginalAttrs.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/KeepOriginalAttrs.kt @@ -86,7 +86,8 @@ public interface KeepOriginalAttrs { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.KeepOriginalAttrs, - ) : CdkObject(cdkObject), KeepOriginalAttrs { + ) : CdkObject(cdkObject), + KeepOriginalAttrs { /** * Whether the email address of the user should remain the original value until the new email * address is verified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/MfaSecondFactor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/MfaSecondFactor.kt index e1d2ee4714..6fc0877a4a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/MfaSecondFactor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/MfaSecondFactor.kt @@ -87,7 +87,8 @@ public interface MfaSecondFactor { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.MfaSecondFactor, - ) : CdkObject(cdkObject), MfaSecondFactor { + ) : CdkObject(cdkObject), + MfaSecondFactor { /** * The MFA token is a time-based one time password that is generated by a hardware or software * token. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttribute.kt index 8741de18df..0270e45c9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttribute.kt @@ -36,7 +36,8 @@ import kotlin.Unit */ public open class NumberAttribute( cdkObject: software.amazon.awscdk.services.cognito.NumberAttribute, -) : CdkObject(cdkObject), ICustomAttribute { +) : CdkObject(cdkObject), + ICustomAttribute { public constructor() : this(software.amazon.awscdk.services.cognito.NumberAttribute() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeConstraints.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeConstraints.kt index 468514604c..9deea89b89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeConstraints.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeConstraints.kt @@ -79,7 +79,8 @@ public interface NumberAttributeConstraints { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.NumberAttributeConstraints, - ) : CdkObject(cdkObject), NumberAttributeConstraints { + ) : CdkObject(cdkObject), + NumberAttributeConstraints { /** * Maximum value of this attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeProps.kt index 2c54c1f9f8..720089a483 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/NumberAttributeProps.kt @@ -100,7 +100,8 @@ public interface NumberAttributeProps : NumberAttributeConstraints, CustomAttrib private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.NumberAttributeProps, - ) : CdkObject(cdkObject), NumberAttributeProps { + ) : CdkObject(cdkObject), + NumberAttributeProps { /** * Maximum value of this attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthFlows.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthFlows.kt index 6b7eafd23b..5c795e7751 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthFlows.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthFlows.kt @@ -112,7 +112,8 @@ public interface OAuthFlows { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.OAuthFlows, - ) : CdkObject(cdkObject), OAuthFlows { + ) : CdkObject(cdkObject), + OAuthFlows { /** * Initiate an authorization code grant flow, which provides an authorization code as the * response. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthSettings.kt index bccae66bdf..da63e51462 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OAuthSettings.kt @@ -53,6 +53,26 @@ public interface OAuthSettings { */ public fun callbackUrls(): List = unwrap(this).getCallbackUrls() ?: emptyList() + /** + * The default redirect URI. Must be in the `callbackUrls` list. + * + * A redirect URI must: + * + * * Be an absolute URI + * * Be registered with the authorization server. + * * Not include a fragment component. + * + * Default: - no default redirect URI + * + * @see https://tools.ietf.org/html/rfc6749#section-3.1.2 + * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only. + * App callback URLs such as myapp://example are also supported. + */ + public fun defaultRedirectUri(): String? = unwrap(this).getDefaultRedirectUri() + /** * OAuth flows that are allowed with this client. * @@ -96,6 +116,16 @@ public interface OAuthSettings { */ public fun callbackUrls(vararg callbackUrls: String) + /** + * @param defaultRedirectUri The default redirect URI. Must be in the `callbackUrls` list. + * A redirect URI must: + * + * * Be an absolute URI + * * Be registered with the authorization server. + * * Not include a fragment component. + */ + public fun defaultRedirectUri(defaultRedirectUri: String) + /** * @param flows OAuth flows that are allowed with this client. */ @@ -146,6 +176,18 @@ public interface OAuthSettings { override fun callbackUrls(vararg callbackUrls: String): Unit = callbackUrls(callbackUrls.toList()) + /** + * @param defaultRedirectUri The default redirect URI. Must be in the `callbackUrls` list. + * A redirect URI must: + * + * * Be an absolute URI + * * Be registered with the authorization server. + * * Not include a fragment component. + */ + override fun defaultRedirectUri(defaultRedirectUri: String) { + cdkBuilder.defaultRedirectUri(defaultRedirectUri) + } + /** * @param flows OAuth flows that are allowed with this client. */ @@ -189,7 +231,8 @@ public interface OAuthSettings { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.OAuthSettings, - ) : CdkObject(cdkObject), OAuthSettings { + ) : CdkObject(cdkObject), + OAuthSettings { /** * List of allowed redirect URLs for the identity providers. * @@ -198,6 +241,28 @@ public interface OAuthSettings { */ override fun callbackUrls(): List = unwrap(this).getCallbackUrls() ?: emptyList() + /** + * The default redirect URI. Must be in the `callbackUrls` list. + * + * A redirect URI must: + * + * * Be an absolute URI + * * Be registered with the authorization server. + * * Not include a fragment component. + * + * Default: - no default redirect URI + * + * @see https://tools.ietf.org/html/rfc6749#section-3.1.2 + * Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes + * only. + * App callback URLs such as myapp://example are also supported. + */ + override fun defaultRedirectUri(): String? = unwrap(this).getDefaultRedirectUri() + /** * OAuth flows that are allowed with this client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OidcEndpoints.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OidcEndpoints.kt index d51f0b9d77..d097157ad6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OidcEndpoints.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/OidcEndpoints.kt @@ -109,7 +109,8 @@ public interface OidcEndpoints { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.OidcEndpoints, - ) : CdkObject(cdkObject), OidcEndpoints { + ) : CdkObject(cdkObject), + OidcEndpoints { /** * Authorization endpoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/PasswordPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/PasswordPolicy.kt index 55d3678e0a..d400d60014 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/PasswordPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/PasswordPolicy.kt @@ -173,7 +173,8 @@ public interface PasswordPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.PasswordPolicy, - ) : CdkObject(cdkObject), PasswordPolicy { + ) : CdkObject(cdkObject), + PasswordPolicy { /** * Minimum length required for a user's password. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ResourceServerScopeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ResourceServerScopeProps.kt index d2aef0a432..dcd444e933 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ResourceServerScopeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/ResourceServerScopeProps.kt @@ -93,7 +93,8 @@ public interface ResourceServerScopeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.ResourceServerScopeProps, - ) : CdkObject(cdkObject), ResourceServerScopeProps { + ) : CdkObject(cdkObject), + ResourceServerScopeProps { /** * A description of the scope. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInAliases.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInAliases.kt index fd30016508..0f2305405c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInAliases.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInAliases.kt @@ -121,7 +121,8 @@ public interface SignInAliases { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.SignInAliases, - ) : CdkObject(cdkObject), SignInAliases { + ) : CdkObject(cdkObject), + SignInAliases { /** * Whether a user is allowed to sign up or sign in with an email address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInUrlOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInUrlOptions.kt index bf6211a0c6..eff4e10b9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInUrlOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/SignInUrlOptions.kt @@ -96,7 +96,8 @@ public interface SignInUrlOptions : BaseUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.SignInUrlOptions, - ) : CdkObject(cdkObject), SignInUrlOptions { + ) : CdkObject(cdkObject), + SignInUrlOptions { /** * Whether to return the FIPS-compliant endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttribute.kt index 958aef8e30..40516cd3bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttribute.kt @@ -117,7 +117,8 @@ public interface StandardAttribute { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.StandardAttribute, - ) : CdkObject(cdkObject), StandardAttribute { + ) : CdkObject(cdkObject), + StandardAttribute { /** * Specifies whether the value of the attribute can be changed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributes.kt index fbe28ccc01..9133d5435d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributes.kt @@ -651,7 +651,8 @@ public interface StandardAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.StandardAttributes, - ) : CdkObject(cdkObject), StandardAttributes { + ) : CdkObject(cdkObject), + StandardAttributes { /** * The user's postal address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributesMask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributesMask.kt index dbb89b4053..f3ecb1cbf9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributesMask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StandardAttributesMask.kt @@ -411,7 +411,8 @@ public interface StandardAttributesMask { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.StandardAttributesMask, - ) : CdkObject(cdkObject), StandardAttributesMask { + ) : CdkObject(cdkObject), + StandardAttributesMask { /** * The user's postal address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttribute.kt index 591e2dbef5..b29dded1d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttribute.kt @@ -36,7 +36,8 @@ import kotlin.Unit */ public open class StringAttribute( cdkObject: software.amazon.awscdk.services.cognito.StringAttribute, -) : CdkObject(cdkObject), ICustomAttribute { +) : CdkObject(cdkObject), + ICustomAttribute { public constructor() : this(software.amazon.awscdk.services.cognito.StringAttribute() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeConstraints.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeConstraints.kt index c68ae0e5f3..2191f36e88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeConstraints.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeConstraints.kt @@ -79,7 +79,8 @@ public interface StringAttributeConstraints { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.StringAttributeConstraints, - ) : CdkObject(cdkObject), StringAttributeConstraints { + ) : CdkObject(cdkObject), + StringAttributeConstraints { /** * Maximum length of this attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeProps.kt index eb646eecb7..b837fb2d6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/StringAttributeProps.kt @@ -100,7 +100,8 @@ public interface StringAttributeProps : StringAttributeConstraints, CustomAttrib private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.StringAttributeProps, - ) : CdkObject(cdkObject), StringAttributeProps { + ) : CdkObject(cdkObject), + StringAttributeProps { /** * Maximum length of this attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserInvitationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserInvitationConfig.kt index 0bf214c715..b65a4a43d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserInvitationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserInvitationConfig.kt @@ -108,7 +108,8 @@ public interface UserInvitationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserInvitationConfig, - ) : CdkObject(cdkObject), UserInvitationConfig { + ) : CdkObject(cdkObject), + UserInvitationConfig { /** * The template to the email body that is sent to the user when an administrator signs them up * to the user pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPool.kt index 9d48727034..73cfb9f3ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPool.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPool( cdkObject: software.amazon.awscdk.services.cognito.UserPool, -) : Resource(cdkObject), IUserPool { +) : Resource(cdkObject), + IUserPool { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.cognito.UserPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -204,7 +205,7 @@ public open class UserPool( /** * User pool provider name. */ - public open fun userPoolProviderName(): String = unwrap(this).getUserPoolProviderName() + public override fun userPoolProviderName(): String = unwrap(this).getUserPoolProviderName() /** * User pool provider URL. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClient.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClient.kt index fc1240b808..0213be6154 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClient.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClient.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolClient( cdkObject: software.amazon.awscdk.services.cognito.UserPoolClient, -) : Resource(cdkObject), IUserPoolClient { +) : Resource(cdkObject), + IUserPoolClient { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -142,6 +143,21 @@ public open class UserPoolClient( */ public fun disableOAuth(disableOAuth: Boolean) + /** + * Enable the propagation of additional user context data. + * + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + * + * Default: false for new user pool clients + * + * [Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + */ + public + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) + /** * Enable token revocation for this client. * @@ -367,6 +383,23 @@ public open class UserPoolClient( cdkBuilder.disableOAuth(disableOAuth) } + /** + * Enable the propagation of additional user context data. + * + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + * + * Default: false for new user pool clients + * + * [Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + */ + override + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) { + cdkBuilder.enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData) + } + /** * Enable token revocation for this client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientOptions.kt index b79d9b9fb6..eac385bef8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientOptions.kt @@ -75,6 +75,19 @@ public interface UserPoolClientOptions { */ public fun disableOAuth(): Boolean? = unwrap(this).getDisableOAuth() + /** + * Enable the propagation of additional user context data. + * + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + * + * Default: false for new user pool clients + * + * [Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) + */ + public fun enablePropagateAdditionalUserContextData(): Boolean? = + unwrap(this).getEnablePropagateAdditionalUserContextData() + /** * Enable token revocation for this client. * @@ -212,6 +225,15 @@ public interface UserPoolClientOptions { */ public fun disableOAuth(disableOAuth: Boolean) + /** + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + */ + public + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) + /** * @param enableTokenRevocation Enable token revocation for this client. */ @@ -331,6 +353,17 @@ public interface UserPoolClientOptions { cdkBuilder.disableOAuth(disableOAuth) } + /** + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + */ + override + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) { + cdkBuilder.enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData) + } + /** * @param enableTokenRevocation Enable token revocation for this client. */ @@ -431,7 +464,8 @@ public interface UserPoolClientOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolClientOptions, - ) : CdkObject(cdkObject), UserPoolClientOptions { + ) : CdkObject(cdkObject), + UserPoolClientOptions { /** * Validity of the access token. * @@ -475,6 +509,19 @@ public interface UserPoolClientOptions { */ override fun disableOAuth(): Boolean? = unwrap(this).getDisableOAuth() + /** + * Enable the propagation of additional user context data. + * + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + * + * Default: false for new user pool clients + * + * [Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) + */ + override fun enablePropagateAdditionalUserContextData(): Boolean? = + unwrap(this).getEnablePropagateAdditionalUserContextData() + /** * Enable token revocation for this client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientProps.kt index 27ed8c64f6..d33e0beb21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolClientProps.kt @@ -70,6 +70,15 @@ public interface UserPoolClientProps : UserPoolClientOptions { */ public fun disableOAuth(disableOAuth: Boolean) + /** + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + */ + public + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) + /** * @param enableTokenRevocation Enable token revocation for this client. */ @@ -194,6 +203,17 @@ public interface UserPoolClientProps : UserPoolClientOptions { cdkBuilder.disableOAuth(disableOAuth) } + /** + * @param enablePropagateAdditionalUserContextData Enable the propagation of additional user + * context data. + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + */ + override + fun enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData: Boolean) { + cdkBuilder.enablePropagateAdditionalUserContextData(enablePropagateAdditionalUserContextData) + } + /** * @param enableTokenRevocation Enable token revocation for this client. */ @@ -301,7 +321,8 @@ public interface UserPoolClientProps : UserPoolClientOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolClientProps, - ) : CdkObject(cdkObject), UserPoolClientProps { + ) : CdkObject(cdkObject), + UserPoolClientProps { /** * Validity of the access token. * @@ -345,6 +366,19 @@ public interface UserPoolClientProps : UserPoolClientOptions { */ override fun disableOAuth(): Boolean? = unwrap(this).getDisableOAuth() + /** + * Enable the propagation of additional user context data. + * + * You can only activate enablePropagateAdditionalUserContextData in an app client that has a + * client secret. + * + * Default: false for new user pool clients + * + * [Documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint) + */ + override fun enablePropagateAdditionalUserContextData(): Boolean? = + unwrap(this).getEnablePropagateAdditionalUserContextData() + /** * Enable token revocation for this client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomain.kt index 54eed2d62b..0dbbcbcf86 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomain.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolDomain( cdkObject: software.amazon.awscdk.services.cognito.UserPoolDomain, -) : Resource(cdkObject), IUserPoolDomain { +) : Resource(cdkObject), + IUserPoolDomain { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainOptions.kt index 936a5728cb..6ba7630968 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainOptions.kt @@ -132,7 +132,8 @@ public interface UserPoolDomainOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolDomainOptions, - ) : CdkObject(cdkObject), UserPoolDomainOptions { + ) : CdkObject(cdkObject), + UserPoolDomainOptions { /** * Associate a cognito prefix domain with your user pool Either `customDomain` or * `cognitoDomain` must be specified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainProps.kt index 90eb6a03a3..3e89babdef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolDomainProps.kt @@ -161,7 +161,8 @@ public interface UserPoolDomainProps : UserPoolDomainOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolDomainProps, - ) : CdkObject(cdkObject), UserPoolDomainProps { + ) : CdkObject(cdkObject), + UserPoolDomainProps { /** * Associate a cognito prefix domain with your user pool Either `customDomain` or * `cognitoDomain` must be specified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazon.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazon.kt index b648dc7e5b..7631d95adc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazon.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazon.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolIdentityProviderAmazon( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAmazon, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazonProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazonProps.kt index c7b6d4766d..312bfdaa6d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazonProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAmazonProps.kt @@ -163,7 +163,8 @@ public interface UserPoolIdentityProviderAmazonProps : UserPoolIdentityProviderP private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAmazonProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderAmazonProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderAmazonProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderApple.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderApple.kt index d52e1921a3..41d5e976e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderApple.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderApple.kt @@ -3,7 +3,9 @@ package io.cloudshiftdev.awscdk.services.cognito import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.SecretValue import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Deprecated import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -19,14 +21,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.cognito.*; * ProviderAttribute providerAttribute; + * SecretValue secretValue; * UserPool userPool; * UserPoolIdentityProviderApple userPoolIdentityProviderApple = * UserPoolIdentityProviderApple.Builder.create(this, "MyUserPoolIdentityProviderApple") * .clientId("clientId") * .keyId("keyId") - * .privateKey("privateKey") * .teamId("teamId") * .userPool(userPool) * // the properties below are optional @@ -51,13 +54,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .timezone(providerAttribute) * .website(providerAttribute) * .build()) + * .privateKey("privateKey") + * .privateKeyValue(secretValue) * .scopes(List.of("scopes")) * .build(); * ``` */ public open class UserPoolIdentityProviderApple( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderApple, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -126,12 +132,25 @@ public open class UserPoolIdentityProviderApple( public fun keyId(keyId: String) /** - * The privateKey content for Apple APIs to authenticate the client. + * (deprecated) The privateKey content for Apple APIs to authenticate the client. * + * Default: none + * + * @deprecated use privateKeyValue * @param privateKey The privateKey content for Apple APIs to authenticate the client. */ + @Deprecated(message = "deprecated in CDK") public fun privateKey(privateKey: String) + /** + * The privateKey content for Apple APIs to authenticate the client. + * + * Default: none + * + * @param privateKeyValue The privateKey content for Apple APIs to authenticate the client. + */ + public fun privateKeyValue(privateKeyValue: SecretValue) + /** * The list of apple permissions to obtain for getting access to the apple profile. * @@ -227,14 +246,29 @@ public open class UserPoolIdentityProviderApple( } /** - * The privateKey content for Apple APIs to authenticate the client. + * (deprecated) The privateKey content for Apple APIs to authenticate the client. + * + * Default: none * + * @deprecated use privateKeyValue * @param privateKey The privateKey content for Apple APIs to authenticate the client. */ + @Deprecated(message = "deprecated in CDK") override fun privateKey(privateKey: String) { cdkBuilder.privateKey(privateKey) } + /** + * The privateKey content for Apple APIs to authenticate the client. + * + * Default: none + * + * @param privateKeyValue The privateKey content for Apple APIs to authenticate the client. + */ + override fun privateKeyValue(privateKeyValue: SecretValue) { + cdkBuilder.privateKeyValue(privateKeyValue.let(SecretValue.Companion::unwrap)) + } + /** * The list of apple permissions to obtain for getting access to the apple profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAppleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAppleProps.kt index 9be21ed897..7afe89863c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAppleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderAppleProps.kt @@ -2,9 +2,11 @@ package io.cloudshiftdev.awscdk.services.cognito +import io.cloudshiftdev.awscdk.SecretValue import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Deprecated import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -18,14 +20,15 @@ import kotlin.jvm.JvmName * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.cognito.*; * ProviderAttribute providerAttribute; + * SecretValue secretValue; * UserPool userPool; * UserPoolIdentityProviderAppleProps userPoolIdentityProviderAppleProps = * UserPoolIdentityProviderAppleProps.builder() * .clientId("clientId") * .keyId("keyId") - * .privateKey("privateKey") * .teamId("teamId") * .userPool(userPool) * // the properties below are optional @@ -50,6 +53,8 @@ import kotlin.jvm.JvmName * .timezone(providerAttribute) * .website(providerAttribute) * .build()) + * .privateKey("privateKey") + * .privateKeyValue(secretValue) * .scopes(List.of("scopes")) * .build(); * ``` @@ -68,10 +73,23 @@ public interface UserPoolIdentityProviderAppleProps : UserPoolIdentityProviderPr */ public fun keyId(): String + /** + * (deprecated) The privateKey content for Apple APIs to authenticate the client. + * + * Default: none + * + * @deprecated use privateKeyValue + */ + @Deprecated(message = "deprecated in CDK") + public fun privateKey(): String? = unwrap(this).getPrivateKey() + /** * The privateKey content for Apple APIs to authenticate the client. + * + * Default: none */ - public fun privateKey(): String + public fun privateKeyValue(): SecretValue? = + unwrap(this).getPrivateKeyValue()?.let(SecretValue::wrap) /** * The list of apple permissions to obtain for getting access to the apple profile. @@ -118,10 +136,17 @@ public interface UserPoolIdentityProviderAppleProps : UserPoolIdentityProviderPr public fun keyId(keyId: String) /** - * @param privateKey The privateKey content for Apple APIs to authenticate the client. + * @param privateKey The privateKey content for Apple APIs to authenticate the client. + * @deprecated use privateKeyValue */ + @Deprecated(message = "deprecated in CDK") public fun privateKey(privateKey: String) + /** + * @param privateKeyValue The privateKey content for Apple APIs to authenticate the client. + */ + public fun privateKeyValue(privateKeyValue: SecretValue) + /** * @param scopes The list of apple permissions to obtain for getting access to the apple * profile. @@ -183,12 +208,21 @@ public interface UserPoolIdentityProviderAppleProps : UserPoolIdentityProviderPr } /** - * @param privateKey The privateKey content for Apple APIs to authenticate the client. + * @param privateKey The privateKey content for Apple APIs to authenticate the client. + * @deprecated use privateKeyValue */ + @Deprecated(message = "deprecated in CDK") override fun privateKey(privateKey: String) { cdkBuilder.privateKey(privateKey) } + /** + * @param privateKeyValue The privateKey content for Apple APIs to authenticate the client. + */ + override fun privateKeyValue(privateKeyValue: SecretValue) { + cdkBuilder.privateKeyValue(privateKeyValue.let(SecretValue.Companion::unwrap)) + } + /** * @param scopes The list of apple permissions to obtain for getting access to the apple * profile. @@ -223,7 +257,8 @@ public interface UserPoolIdentityProviderAppleProps : UserPoolIdentityProviderPr private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAppleProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderAppleProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderAppleProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. @@ -246,10 +281,23 @@ public interface UserPoolIdentityProviderAppleProps : UserPoolIdentityProviderPr */ override fun keyId(): String = unwrap(this).getKeyId() + /** + * (deprecated) The privateKey content for Apple APIs to authenticate the client. + * + * Default: none + * + * @deprecated use privateKeyValue + */ + @Deprecated(message = "deprecated in CDK") + override fun privateKey(): String? = unwrap(this).getPrivateKey() + /** * The privateKey content for Apple APIs to authenticate the client. + * + * Default: none */ - override fun privateKey(): String = unwrap(this).getPrivateKey() + override fun privateKeyValue(): SecretValue? = + unwrap(this).getPrivateKeyValue()?.let(SecretValue::wrap) /** * The list of apple permissions to obtain for getting access to the apple profile. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebook.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebook.kt index fbeb3ef5d5..84d1f23290 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebook.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebook.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolIdentityProviderFacebook( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderFacebook, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebookProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebookProps.kt index 7f30dfff36..303eece700 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebookProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderFacebookProps.kt @@ -207,7 +207,8 @@ public interface UserPoolIdentityProviderFacebookProps : UserPoolIdentityProvide private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderFacebookProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderFacebookProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderFacebookProps { /** * The Facebook API version to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogle.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogle.kt index cac42a6ea6..4721f632df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogle.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogle.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolIdentityProviderGoogle( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderGoogle, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogleProps.kt index 59432b6120..706715b87e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderGoogleProps.kt @@ -201,7 +201,8 @@ public interface UserPoolIdentityProviderGoogleProps : UserPoolIdentityProviderP private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderGoogleProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderGoogleProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderGoogleProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidc.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidc.kt index 8b47c1b212..cb06633ff9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidc.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidc.kt @@ -65,7 +65,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolIdentityProviderOidc( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderOidc, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidcProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidcProps.kt index 00f955874c..395621dace 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidcProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderOidcProps.kt @@ -316,7 +316,8 @@ public interface UserPoolIdentityProviderOidcProps : UserPoolIdentityProviderPro private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderOidcProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderOidcProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderOidcProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderProps.kt index 6ed71a1dd9..da50249f06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderProps.kt @@ -122,7 +122,8 @@ public interface UserPoolIdentityProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSaml.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSaml.kt index fb7175e2b0..2480e8d055 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSaml.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSaml.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolIdentityProviderSaml( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderSaml, -) : Resource(cdkObject), IUserPoolIdentityProvider { +) : Resource(cdkObject), + IUserPoolIdentityProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSamlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSamlProps.kt index c3ebbd9603..a314c867e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSamlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolIdentityProviderSamlProps.kt @@ -255,7 +255,8 @@ public interface UserPoolIdentityProviderSamlProps : UserPoolIdentityProviderPro private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolIdentityProviderSamlProps, - ) : CdkObject(cdkObject), UserPoolIdentityProviderSamlProps { + ) : CdkObject(cdkObject), + UserPoolIdentityProviderSamlProps { /** * Mapping attributes from the identity provider to standard and custom attributes of the user * pool. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolProps.kt index a195196431..6584097c89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolProps.kt @@ -862,7 +862,8 @@ public interface UserPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolProps, - ) : CdkObject(cdkObject), UserPoolProps { + ) : CdkObject(cdkObject), + UserPoolProps { /** * How will a user be able to recover their account? * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServer.kt index ac6d703cc9..c92aad634d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServer.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class UserPoolResourceServer( cdkObject: software.amazon.awscdk.services.cognito.UserPoolResourceServer, -) : Resource(cdkObject), IUserPoolResourceServer { +) : Resource(cdkObject), + IUserPoolResourceServer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerOptions.kt index f08e25d1cc..848d102f5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerOptions.kt @@ -127,7 +127,8 @@ public interface UserPoolResourceServerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolResourceServerOptions, - ) : CdkObject(cdkObject), UserPoolResourceServerOptions { + ) : CdkObject(cdkObject), + UserPoolResourceServerOptions { /** * A unique resource server identifier for the resource server. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerProps.kt index c5a88bbaee..717991ea4c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolResourceServerProps.kt @@ -110,7 +110,8 @@ public interface UserPoolResourceServerProps : UserPoolResourceServerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolResourceServerProps, - ) : CdkObject(cdkObject), UserPoolResourceServerProps { + ) : CdkObject(cdkObject), + UserPoolResourceServerProps { /** * A unique resource server identifier for the resource server. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolSESOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolSESOptions.kt index 1038bac9bc..47a2d9fc66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolSESOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolSESOptions.kt @@ -186,7 +186,8 @@ public interface UserPoolSESOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolSESOptions, - ) : CdkObject(cdkObject), UserPoolSESOptions { + ) : CdkObject(cdkObject), + UserPoolSESOptions { /** * The name of a configuration set in Amazon SES that should be applied to emails sent via * Cognito. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolTriggers.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolTriggers.kt index 30740b1ab2..90d9d47d56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolTriggers.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserPoolTriggers.kt @@ -316,7 +316,8 @@ public interface UserPoolTriggers { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserPoolTriggers, - ) : CdkObject(cdkObject), UserPoolTriggers { + ) : CdkObject(cdkObject), + UserPoolTriggers { /** * Creates an authentication challenge. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserVerificationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserVerificationConfig.kt index 54b10c8bad..05dc4a9587 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserVerificationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cognito/UserVerificationConfig.kt @@ -177,7 +177,8 @@ public interface UserVerificationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.cognito.UserVerificationConfig, - ) : CdkObject(cdkObject), UserVerificationConfig { + ) : CdkObject(cdkObject), + UserVerificationConfig { /** * The email body template for the verification email sent to the user upon sign up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifier.kt index 2645bbf1fa..b339fbb353 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifier.kt @@ -89,7 +89,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDocumentClassifier( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1046,7 +1048,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.AugmentedManifestsListItemProperty, - ) : CdkObject(cdkObject), AugmentedManifestsListItemProperty { + ) : CdkObject(cdkObject), + AugmentedManifestsListItemProperty { /** * The JSON attribute that contains the annotations for your training documents. * @@ -1194,7 +1197,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.DocumentClassifierDocumentsProperty, - ) : CdkObject(cdkObject), DocumentClassifierDocumentsProperty { + ) : CdkObject(cdkObject), + DocumentClassifierDocumentsProperty { /** * The S3 URI location of the training documents specified in the S3Uri CSV file. * @@ -1650,7 +1654,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.DocumentClassifierInputDataConfigProperty, - ) : CdkObject(cdkObject), DocumentClassifierInputDataConfigProperty { + ) : CdkObject(cdkObject), + DocumentClassifierInputDataConfigProperty { /** * A list of augmented manifest files that provide training data for your custom model. * @@ -1890,7 +1895,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.DocumentClassifierOutputDataConfigProperty, - ) : CdkObject(cdkObject), DocumentClassifierOutputDataConfigProperty { + ) : CdkObject(cdkObject), + DocumentClassifierOutputDataConfigProperty { /** * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the * output results from an analysis job. @@ -2136,7 +2142,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.DocumentReaderConfigProperty, - ) : CdkObject(cdkObject), DocumentReaderConfigProperty { + ) : CdkObject(cdkObject), + DocumentReaderConfigProperty { /** * This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract * text from PDF files and image files. @@ -2348,7 +2355,8 @@ public open class CfnDocumentClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifier.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The ID number for a security group on an instance of your private VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifierProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifierProps.kt index 0f0ce66f60..7b62be0d39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifierProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnDocumentClassifierProps.kt @@ -578,7 +578,8 @@ public interface CfnDocumentClassifierProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnDocumentClassifierProps, - ) : CdkObject(cdkObject), CfnDocumentClassifierProps { + ) : CdkObject(cdkObject), + CfnDocumentClassifierProps { /** * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to * your input data. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheel.kt index b4760810b4..c11e3c8175 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheel.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlywheel( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -738,7 +740,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.DataSecurityConfigProperty, - ) : CdkObject(cdkObject), DataSecurityConfigProperty { + ) : CdkObject(cdkObject), + DataSecurityConfigProperty { /** * ID for the AWS KMS key that Amazon Comprehend uses to encrypt the data in the data lake. * @@ -885,7 +888,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.DocumentClassificationConfigProperty, - ) : CdkObject(cdkObject), DocumentClassificationConfigProperty { + ) : CdkObject(cdkObject), + DocumentClassificationConfigProperty { /** * One or more labels to associate with the custom classifier. * @@ -1000,7 +1004,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.EntityRecognitionConfigProperty, - ) : CdkObject(cdkObject), EntityRecognitionConfigProperty { + ) : CdkObject(cdkObject), + EntityRecognitionConfigProperty { /** * Up to 25 entity types that the model is trained to recognize. * @@ -1096,7 +1101,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.EntityTypesListItemProperty, - ) : CdkObject(cdkObject), EntityTypesListItemProperty { + ) : CdkObject(cdkObject), + EntityTypesListItemProperty { /** * An entity type within a labeled training dataset that Amazon Comprehend uses to train a * custom entity recognizer. @@ -1298,7 +1304,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.TaskConfigProperty, - ) : CdkObject(cdkObject), TaskConfigProperty { + ) : CdkObject(cdkObject), + TaskConfigProperty { /** * Configuration required for a document classification model. * @@ -1489,7 +1496,8 @@ public open class CfnFlywheel( private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheel.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The ID number for a security group on an instance of your private VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheelProps.kt index c620656696..00588c60fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/comprehend/CfnFlywheelProps.kt @@ -310,7 +310,8 @@ public interface CfnFlywheelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.comprehend.CfnFlywheelProps, - ) : CdkObject(cdkObject), CfnFlywheelProps { + ) : CdkObject(cdkObject), + CfnFlywheelProps { /** * The Amazon Resource Number (ARN) of the active model version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotated.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotated.kt index 66b64c62f8..f48e845d44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotated.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotated.kt @@ -73,6 +73,17 @@ public open class AccessKeysRotated( */ public fun description(description: String) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -141,6 +152,19 @@ public open class AccessKeysRotated( cdkBuilder.description(description) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotatedProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotatedProps.kt index 8a7792455e..33786450ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotatedProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/AccessKeysRotatedProps.kt @@ -21,11 +21,13 @@ import kotlin.collections.Map * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.config.*; + * EvaluationMode evaluationMode; * Object inputParameters; * RuleScope ruleScope; * AccessKeysRotatedProps accessKeysRotatedProps = AccessKeysRotatedProps.builder() * .configRuleName("configRuleName") * .description("description") + * .evaluationModes(evaluationMode) * .inputParameters(Map.of( * "inputParametersKey", inputParameters)) * .maxAge(Duration.minutes(30)) @@ -57,6 +59,12 @@ public interface AccessKeysRotatedProps : RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -97,6 +105,14 @@ public interface AccessKeysRotatedProps : RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -132,7 +148,8 @@ public interface AccessKeysRotatedProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.AccessKeysRotatedProps, - ) : CdkObject(cdkObject), AccessKeysRotatedProps { + ) : CdkObject(cdkObject), + AccessKeysRotatedProps { /** * A name for the AWS Config rule. * @@ -147,6 +164,16 @@ public interface AccessKeysRotatedProps : RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorization.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorization.kt index 539a674a71..9628bbba82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorization.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorization.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAggregationAuthorization( cdkObject: software.amazon.awscdk.services.config.CfnAggregationAuthorization, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorizationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorizationProps.kt index 8e37fcc06b..88c1ffa609 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorizationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnAggregationAuthorizationProps.kt @@ -120,7 +120,8 @@ public interface CfnAggregationAuthorizationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnAggregationAuthorizationProps, - ) : CdkObject(cdkObject), CfnAggregationAuthorizationProps { + ) : CdkObject(cdkObject), + CfnAggregationAuthorizationProps { /** * The 12-digit account ID of the account authorized to aggregate data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRule.kt index 31e5cbfdd4..64010c0f8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRule.kt @@ -114,7 +114,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigRule( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -890,7 +891,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.ComplianceProperty, - ) : CdkObject(cdkObject), ComplianceProperty { + ) : CdkObject(cdkObject), + ComplianceProperty { /** * Indicates whether an AWS resource or AWS Config rule is compliant. * @@ -1063,7 +1065,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.CustomPolicyDetailsProperty, - ) : CdkObject(cdkObject), CustomPolicyDetailsProperty { + ) : CdkObject(cdkObject), + CustomPolicyDetailsProperty { /** * The boolean expression for enabling debug logging for your AWS Config Custom Policy rule. * @@ -1173,7 +1176,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.EvaluationModeConfigurationProperty, - ) : CdkObject(cdkObject), EvaluationModeConfigurationProperty { + ) : CdkObject(cdkObject), + EvaluationModeConfigurationProperty { /** * The mode of an evaluation. * @@ -1367,7 +1371,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.ScopeProperty, - ) : CdkObject(cdkObject), ScopeProperty { + ) : CdkObject(cdkObject), + ScopeProperty { /** * The ID of the only AWS resource that you want to trigger an evaluation for the rule. * @@ -1610,7 +1615,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.SourceDetailProperty, - ) : CdkObject(cdkObject), SourceDetailProperty { + ) : CdkObject(cdkObject), + SourceDetailProperty { /** * The source of the event, such as an AWS service, that triggers AWS Config to evaluate your * AWS resources. @@ -1982,7 +1988,8 @@ public open class CfnConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRule.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * Provides the runtime system, policy definition, and whether debug logging is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRuleProps.kt index c0c8118b19..8d9673ebb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigRuleProps.kt @@ -469,7 +469,8 @@ public interface CfnConfigRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigRuleProps, - ) : CdkObject(cdkObject), CfnConfigRuleProps { + ) : CdkObject(cdkObject), + CfnConfigRuleProps { /** * Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of * contributors that affect the compliance. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregator.kt index 1898a2459f..22b6094300 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregator.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationAggregator( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationAggregator, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.config.CfnConfigurationAggregator(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -531,7 +533,8 @@ public open class CfnConfigurationAggregator( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationAggregator.AccountAggregationSourceProperty, - ) : CdkObject(cdkObject), AccountAggregationSourceProperty { + ) : CdkObject(cdkObject), + AccountAggregationSourceProperty { /** * The 12-digit account ID of the account being aggregated. * @@ -695,7 +698,8 @@ public open class CfnConfigurationAggregator( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationAggregator.OrganizationAggregationSourceProperty, - ) : CdkObject(cdkObject), OrganizationAggregationSourceProperty { + ) : CdkObject(cdkObject), + OrganizationAggregationSourceProperty { /** * If true, aggregate existing AWS Config regions and future regions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregatorProps.kt index cb468917dc..c1304242d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregatorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationAggregatorProps.kt @@ -217,7 +217,8 @@ public interface CfnConfigurationAggregatorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationAggregatorProps, - ) : CdkObject(cdkObject), CfnConfigurationAggregatorProps { + ) : CdkObject(cdkObject), + CfnConfigurationAggregatorProps { /** * Provides a list of source accounts and regions to be aggregated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorder.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorder.kt index 67b351e77b..0e4e7989fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorder.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorder.kt @@ -84,7 +84,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationRecorder( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -769,7 +770,8 @@ public open class CfnConfigurationRecorder( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder.ExclusionByResourceTypesProperty, - ) : CdkObject(cdkObject), ExclusionByResourceTypesProperty { + ) : CdkObject(cdkObject), + ExclusionByResourceTypesProperty { /** * A comma-separated list of resource types to exclude from recording by the configuration * recorder. @@ -2119,7 +2121,8 @@ public open class CfnConfigurationRecorder( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder.RecordingGroupProperty, - ) : CdkObject(cdkObject), RecordingGroupProperty { + ) : CdkObject(cdkObject), + RecordingGroupProperty { /** * Specifies whether AWS Config records configuration changes for all supported resource * types, excluding the global IAM resource types. @@ -2539,7 +2542,8 @@ public open class CfnConfigurationRecorder( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder.RecordingModeOverrideProperty, - ) : CdkObject(cdkObject), RecordingModeOverrideProperty { + ) : CdkObject(cdkObject), + RecordingModeOverrideProperty { /** * A description that you provide for the override. * @@ -2780,7 +2784,8 @@ public open class CfnConfigurationRecorder( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder.RecordingModeProperty, - ) : CdkObject(cdkObject), RecordingModeProperty { + ) : CdkObject(cdkObject), + RecordingModeProperty { /** * The default recording frequency that AWS Config uses to record configuration changes. * @@ -3087,7 +3092,8 @@ public open class CfnConfigurationRecorder( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorder.RecordingStrategyProperty, - ) : CdkObject(cdkObject), RecordingStrategyProperty { + ) : CdkObject(cdkObject), + RecordingStrategyProperty { /** * The recording strategy for the configuration recorder. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorderProps.kt index 2633282d47..ba2c5ed888 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConfigurationRecorderProps.kt @@ -498,7 +498,8 @@ public interface CfnConfigurationRecorderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConfigurationRecorderProps, - ) : CdkObject(cdkObject), CfnConfigurationRecorderProps { + ) : CdkObject(cdkObject), + CfnConfigurationRecorderProps { /** * The name of the configuration recorder. AWS Config automatically assigns the name of * "default" when creating the configuration recorder. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePack.kt index 88c26d5a42..302103289c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePack.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConformancePack( cdkObject: software.amazon.awscdk.services.config.CfnConformancePack, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -499,7 +500,8 @@ public open class CfnConformancePack( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConformancePack.ConformancePackInputParameterProperty, - ) : CdkObject(cdkObject), ConformancePackInputParameterProperty { + ) : CdkObject(cdkObject), + ConformancePackInputParameterProperty { /** * One part of a key-value pair. * @@ -643,7 +645,8 @@ public open class CfnConformancePack( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConformancePack.TemplateSSMDocumentDetailsProperty, - ) : CdkObject(cdkObject), TemplateSSMDocumentDetailsProperty { + ) : CdkObject(cdkObject), + TemplateSSMDocumentDetailsProperty { /** * The name or Amazon Resource Name (ARN) of the SSM document to use to create a conformance * pack. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePackProps.kt index 6443a58806..864efcffa9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnConformancePackProps.kt @@ -259,7 +259,8 @@ public interface CfnConformancePackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnConformancePackProps, - ) : CdkObject(cdkObject), CfnConformancePackProps { + ) : CdkObject(cdkObject), + CfnConformancePackProps { /** * A list of ConformancePackInputParameter objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannel.kt index db4e235c69..f2b69bbc88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannel.kt @@ -88,7 +88,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeliveryChannel( cdkObject: software.amazon.awscdk.services.config.CfnDeliveryChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -560,7 +561,8 @@ public open class CfnDeliveryChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnDeliveryChannel.ConfigSnapshotDeliveryPropertiesProperty, - ) : CdkObject(cdkObject), ConfigSnapshotDeliveryPropertiesProperty { + ) : CdkObject(cdkObject), + ConfigSnapshotDeliveryPropertiesProperty { /** * The frequency with which AWS Config delivers configuration snapshots. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannelProps.kt index 2d67abce60..6fe45f9fd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnDeliveryChannelProps.kt @@ -265,7 +265,8 @@ public interface CfnDeliveryChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnDeliveryChannelProps, - ) : CdkObject(cdkObject), CfnDeliveryChannelProps { + ) : CdkObject(cdkObject), + CfnDeliveryChannelProps { /** * The options for how often AWS Config delivers configuration snapshots to the Amazon S3 * bucket. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRule.kt index e2371aa8b2..31bb06b030 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRule.kt @@ -119,7 +119,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOrganizationConfigRule( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConfigRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -978,7 +979,8 @@ public open class CfnOrganizationConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty, - ) : CdkObject(cdkObject), OrganizationCustomPolicyRuleMetadataProperty { + ) : CdkObject(cdkObject), + OrganizationCustomPolicyRuleMetadataProperty { /** * A list of accounts that you can enable debug logging for your organization AWS Config * Custom Policy rule. @@ -1438,7 +1440,8 @@ public open class CfnOrganizationConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty, - ) : CdkObject(cdkObject), OrganizationCustomRuleMetadataProperty { + ) : CdkObject(cdkObject), + OrganizationCustomRuleMetadataProperty { /** * The description that you provide for your organization AWS Config rule. * @@ -1806,7 +1809,8 @@ public open class CfnOrganizationConfigRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationManagedRuleMetadataProperty, - ) : CdkObject(cdkObject), OrganizationManagedRuleMetadataProperty { + ) : CdkObject(cdkObject), + OrganizationManagedRuleMetadataProperty { /** * The description that you provide for your organization AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRuleProps.kt index 8777e5fbea..a4e738e9ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConfigRuleProps.kt @@ -325,7 +325,8 @@ public interface CfnOrganizationConfigRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConfigRuleProps, - ) : CdkObject(cdkObject), CfnOrganizationConfigRuleProps { + ) : CdkObject(cdkObject), + CfnOrganizationConfigRuleProps { /** * A comma-separated list of accounts excluded from organization AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePack.kt index fdaee30845..fc52c6c570 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePack.kt @@ -51,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOrganizationConformancePack( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConformancePack, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -516,7 +517,8 @@ public open class CfnOrganizationConformancePack( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConformancePack.ConformancePackInputParameterProperty, - ) : CdkObject(cdkObject), ConformancePackInputParameterProperty { + ) : CdkObject(cdkObject), + ConformancePackInputParameterProperty { /** * One part of a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePackProps.kt index a9081c6071..6f8a853a6d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnOrganizationConformancePackProps.kt @@ -259,7 +259,8 @@ public interface CfnOrganizationConformancePackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnOrganizationConformancePackProps, - ) : CdkObject(cdkObject), CfnOrganizationConformancePackProps { + ) : CdkObject(cdkObject), + CfnOrganizationConformancePackProps { /** * A list of `ConformancePackInputParameter` objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfiguration.kt index a4c657843c..04a5809440 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfiguration.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRemediationConfiguration( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -670,7 +671,8 @@ public open class CfnRemediationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration.ExecutionControlsProperty, - ) : CdkObject(cdkObject), ExecutionControlsProperty { + ) : CdkObject(cdkObject), + ExecutionControlsProperty { /** * A SsmControls object. * @@ -834,7 +836,8 @@ public open class CfnRemediationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration.RemediationParameterValueProperty, - ) : CdkObject(cdkObject), RemediationParameterValueProperty { + ) : CdkObject(cdkObject), + RemediationParameterValueProperty { /** * The value is dynamic and changes at run-time. * @@ -920,7 +923,8 @@ public open class CfnRemediationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration.ResourceValueProperty, - ) : CdkObject(cdkObject), ResourceValueProperty { + ) : CdkObject(cdkObject), + ResourceValueProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-resourcevalue.html#cfn-config-remediationconfiguration-resourcevalue-value) */ @@ -1043,7 +1047,8 @@ public open class CfnRemediationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration.SsmControlsProperty, - ) : CdkObject(cdkObject), SsmControlsProperty { + ) : CdkObject(cdkObject), + SsmControlsProperty { /** * The maximum percentage of remediation actions allowed to run in parallel on the * non-compliant resources for that specific rule. @@ -1176,7 +1181,8 @@ public open class CfnRemediationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfiguration.StaticValueProperty, - ) : CdkObject(cdkObject), StaticValueProperty { + ) : CdkObject(cdkObject), + StaticValueProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-staticvalue.html#cfn-config-remediationconfiguration-staticvalue-value) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfigurationProps.kt index 1ce68f6d1f..0521a9eed7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnRemediationConfigurationProps.kt @@ -365,7 +365,8 @@ public interface CfnRemediationConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnRemediationConfigurationProps, - ) : CdkObject(cdkObject), CfnRemediationConfigurationProps { + ) : CdkObject(cdkObject), + CfnRemediationConfigurationProps { /** * The remediation is triggered automatically. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQuery.kt index 9c005be4b6..8139ef9288 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQuery.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStoredQuery( cdkObject: software.amazon.awscdk.services.config.CfnStoredQuery, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQueryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQueryProps.kt index 61a08373ee..961e19d6e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQueryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CfnStoredQueryProps.kt @@ -146,7 +146,8 @@ public interface CfnStoredQueryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CfnStoredQueryProps, - ) : CdkObject(cdkObject), CfnStoredQueryProps { + ) : CdkObject(cdkObject), + CfnStoredQueryProps { /** * A unique description for the query. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheck.kt index 2c7efc4584..359a188506 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheck.kt @@ -79,6 +79,17 @@ public open class CloudFormationStackDriftDetectionCheck( */ public fun description(description: String) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -164,6 +175,19 @@ public open class CloudFormationStackDriftDetectionCheck( cdkBuilder.description(description) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheckProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheckProps.kt index f872fc7df7..13eaff4314 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheckProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackDriftDetectionCheckProps.kt @@ -63,6 +63,12 @@ public interface CloudFormationStackDriftDetectionCheckProps : RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -114,6 +120,14 @@ public interface CloudFormationStackDriftDetectionCheckProps : RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -162,7 +176,8 @@ public interface CloudFormationStackDriftDetectionCheckProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CloudFormationStackDriftDetectionCheckProps, - ) : CdkObject(cdkObject), CloudFormationStackDriftDetectionCheckProps { + ) : CdkObject(cdkObject), + CloudFormationStackDriftDetectionCheckProps { /** * A name for the AWS Config rule. * @@ -177,6 +192,16 @@ public interface CloudFormationStackDriftDetectionCheckProps : RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheck.kt index 8b389e12cb..970c5594f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheck.kt @@ -81,6 +81,17 @@ public open class CloudFormationStackNotificationCheck( */ public fun description(description: String) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -164,6 +175,19 @@ public open class CloudFormationStackNotificationCheck( cdkBuilder.description(description) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheckProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheckProps.kt index f832ecd8f8..104ca62a27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheckProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CloudFormationStackNotificationCheckProps.kt @@ -53,6 +53,12 @@ public interface CloudFormationStackNotificationCheckProps : RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -101,6 +107,14 @@ public interface CloudFormationStackNotificationCheckProps : RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -144,7 +158,8 @@ public interface CloudFormationStackNotificationCheckProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CloudFormationStackNotificationCheckProps, - ) : CdkObject(cdkObject), CloudFormationStackNotificationCheckProps { + ) : CdkObject(cdkObject), + CloudFormationStackNotificationCheckProps { /** * A name for the AWS Config rule. * @@ -159,6 +174,16 @@ public interface CloudFormationStackNotificationCheckProps : RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicy.kt index 119462843c..77ccf74a6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicy.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CustomPolicy( cdkObject: software.amazon.awscdk.services.config.CustomPolicy, -) : Resource(cdkObject), IRule { +) : Resource(cdkObject), + IRule { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -204,6 +205,17 @@ public open class CustomPolicy( */ public fun enableDebugLog(enableDebugLog: Boolean) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -283,6 +295,19 @@ public open class CustomPolicy( cdkBuilder.enableDebugLog(enableDebugLog) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicyProps.kt index 8f0fdd524a..2a0a062c3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomPolicyProps.kt @@ -64,6 +64,12 @@ public interface CustomPolicyProps : RuleProps { */ public fun enableDebugLog(enableDebugLog: Boolean) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -113,6 +119,14 @@ public interface CustomPolicyProps : RuleProps { cdkBuilder.enableDebugLog(enableDebugLog) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -149,7 +163,8 @@ public interface CustomPolicyProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CustomPolicyProps, - ) : CdkObject(cdkObject), CustomPolicyProps { + ) : CdkObject(cdkObject), + CustomPolicyProps { /** * A name for the AWS Config rule. * @@ -171,6 +186,16 @@ public interface CustomPolicyProps : RuleProps { */ override fun enableDebugLog(): Boolean? = unwrap(this).getEnableDebugLog() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRule.kt index a174993223..631b4b43ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRule.kt @@ -23,23 +23,26 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // Lambda function containing logic that evaluates compliance with the rule. - * Function evalComplianceFn = Function.Builder.create(this, "CustomFunction") - * .code(AssetCode.fromInline("exports.handler = (event) => console.log(event);")) - * .handler("index.handler") - * .runtime(Runtime.NODEJS_18_X) + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) * .build(); - * // A custom rule that runs on configuration changes of EC2 instances - * CustomRule customRule = CustomRule.Builder.create(this, "Custom") - * .configurationChanges(true) - * .lambdaFunction(evalComplianceFn) - * .ruleScope(RuleScope.fromResource(ResourceType.EC2_INSTANCE)) + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) * .build(); * ``` */ public open class CustomRule( cdkObject: software.amazon.awscdk.services.config.CustomRule, -) : Resource(cdkObject), IRule { +) : Resource(cdkObject), + IRule { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -205,6 +208,17 @@ public open class CustomRule( */ public fun description(description: String) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -291,6 +305,19 @@ public open class CustomRule( cdkBuilder.description(description) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRuleProps.kt index 93a66fd837..493ff6e6e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/CustomRuleProps.kt @@ -18,17 +18,19 @@ import kotlin.collections.Map * Example: * * ``` - * // Lambda function containing logic that evaluates compliance with the rule. - * Function evalComplianceFn = Function.Builder.create(this, "CustomFunction") - * .code(AssetCode.fromInline("exports.handler = (event) => console.log(event);")) - * .handler("index.handler") - * .runtime(Runtime.NODEJS_18_X) + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) * .build(); - * // A custom rule that runs on configuration changes of EC2 instances - * CustomRule customRule = CustomRule.Builder.create(this, "Custom") - * .configurationChanges(true) - * .lambdaFunction(evalComplianceFn) - * .ruleScope(RuleScope.fromResource(ResourceType.EC2_INSTANCE)) + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) * .build(); * ``` */ @@ -72,6 +74,12 @@ public interface CustomRuleProps : RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -124,6 +132,14 @@ public interface CustomRuleProps : RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -165,7 +181,8 @@ public interface CustomRuleProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.CustomRuleProps, - ) : CdkObject(cdkObject), CustomRuleProps { + ) : CdkObject(cdkObject), + CustomRuleProps { /** * A name for the AWS Config rule. * @@ -187,6 +204,16 @@ public interface CustomRuleProps : RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/EvaluationMode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/EvaluationMode.kt new file mode 100644 index 0000000000..71b44c006e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/EvaluationMode.kt @@ -0,0 +1,56 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.config + +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.String +import kotlin.collections.List + +/** + * The mode of evaluation for the rule. + * + * Example: + * + * ``` + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) + * .build(); + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) + * .build(); + * ``` + */ +public open class EvaluationMode( + cdkObject: software.amazon.awscdk.services.config.EvaluationMode, +) : CdkObject(cdkObject) { + /** + * The modes of evaluation for the rule. + */ + public open fun modes(): List = unwrap(this).getModes() + + public companion object { + public val DETECTIVE: EvaluationMode = + EvaluationMode.wrap(software.amazon.awscdk.services.config.EvaluationMode.DETECTIVE) + + public val DETECTIVE_AND_PROACTIVE: EvaluationMode = + EvaluationMode.wrap(software.amazon.awscdk.services.config.EvaluationMode.DETECTIVE_AND_PROACTIVE) + + public val PROACTIVE: EvaluationMode = + EvaluationMode.wrap(software.amazon.awscdk.services.config.EvaluationMode.PROACTIVE) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.config.EvaluationMode): + EvaluationMode = EvaluationMode(cdkObject) + + internal fun unwrap(wrapped: EvaluationMode): + software.amazon.awscdk.services.config.EvaluationMode = wrapped.cdkObject as + software.amazon.awscdk.services.config.EvaluationMode + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/IRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/IRule.kt index 9cb99817b6..f010ad4974 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/IRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/IRule.kt @@ -113,7 +113,8 @@ public interface IRule : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.IRule, - ) : CdkObject(cdkObject), IRule { + ) : CdkObject(cdkObject), + IRule { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRule.kt index df3cef8089..bf39494a1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRule.kt @@ -21,20 +21,26 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * ManagedRule.Builder.create(this, "AccessKeysRotated") - * .identifier(ManagedRuleIdentifiers.ACCESS_KEYS_ROTATED) - * .inputParameters(Map.of( - * "maxAccessKeyAge", 60)) - * // default is 24 hours - * .maximumExecutionFrequency(MaximumExecutionFrequency.TWELVE_HOURS) + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) + * .build(); + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) * .build(); * ``` */ public open class ManagedRule( cdkObject: software.amazon.awscdk.services.config.ManagedRule, -) : Resource(cdkObject), IRule { +) : Resource(cdkObject), + IRule { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -191,6 +197,17 @@ public open class ManagedRule( */ public fun description(description: String) + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * The identifier of the AWS managed rule. * @@ -258,6 +275,19 @@ public open class ManagedRule( cdkBuilder.description(description) } + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + * + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * The identifier of the AWS managed rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleIdentifiers.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleIdentifiers.kt index 2cb8ec5cfb..631c7dc619 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleIdentifiers.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleIdentifiers.kt @@ -11,14 +11,19 @@ import kotlin.String * Example: * * ``` - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * ManagedRule.Builder.create(this, "AccessKeysRotated") - * .identifier(ManagedRuleIdentifiers.ACCESS_KEYS_ROTATED) - * .inputParameters(Map.of( - * "maxAccessKeyAge", 60)) - * // default is 24 hours - * .maximumExecutionFrequency(MaximumExecutionFrequency.TWELVE_HOURS) + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) + * .build(); + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) * .build(); * ``` * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleProps.kt index 44efcc1d2a..625836bdaa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ManagedRuleProps.kt @@ -16,14 +16,19 @@ import kotlin.collections.Map * Example: * * ``` - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * // https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html - * ManagedRule.Builder.create(this, "AccessKeysRotated") - * .identifier(ManagedRuleIdentifiers.ACCESS_KEYS_ROTATED) - * .inputParameters(Map.of( - * "maxAccessKeyAge", 60)) - * // default is 24 hours - * .maximumExecutionFrequency(MaximumExecutionFrequency.TWELVE_HOURS) + * Function fn; + * String samplePolicyText; + * ManagedRule.Builder.create(this, "ManagedRule") + * .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED) + * .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE) + * .build(); + * CustomRule.Builder.create(this, "CustomRule") + * .lambdaFunction(fn) + * .evaluationModes(EvaluationMode.PROACTIVE) + * .build(); + * CustomPolicy.Builder.create(this, "CustomPolicy") + * .policyText(samplePolicyText) + * .evaluationModes(EvaluationMode.DETECTIVE) * .build(); * ``` */ @@ -50,6 +55,12 @@ public interface ManagedRuleProps : RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param identifier The identifier of the AWS managed rule. */ @@ -90,6 +101,14 @@ public interface ManagedRuleProps : RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param identifier The identifier of the AWS managed rule. */ @@ -124,7 +143,8 @@ public interface ManagedRuleProps : RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.ManagedRuleProps, - ) : CdkObject(cdkObject), ManagedRuleProps { + ) : CdkObject(cdkObject), + ManagedRuleProps { /** * A name for the AWS Config rule. * @@ -139,6 +159,16 @@ public interface ManagedRuleProps : RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * The identifier of the AWS managed rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ResourceType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ResourceType.kt index bbb1f39666..478d7e86dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ResourceType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/ResourceType.kt @@ -39,9 +39,21 @@ public open class ResourceType( public val ACM_CERTIFICATE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ACM_CERTIFICATE) + public val ACMPCA_CERTIFICATE_AUTHORITY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ACMPCA_CERTIFICATE_AUTHORITY) + + public val ACMPCA_CERTIFICATE_AUTHORITY_ACTIVATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ACMPCA_CERTIFICATE_AUTHORITY_ACTIVATION) + public val AMAZON_MQ_BROKER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AMAZON_MQ_BROKER) + public val AMPLIFY_APP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AMPLIFY_APP) + + public val AMPLIFY_BRANCH: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AMPLIFY_BRANCH) + public val APIGATEWAY_REST_API: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APIGATEWAY_REST_API) @@ -54,6 +66,57 @@ public open class ResourceType( public val APIGATEWAYV2_STAGE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APIGATEWAYV2_STAGE) + public val APP_CONFIG_DEPLOYMENT_STRATEGY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_CONFIG_DEPLOYMENT_STRATEGY) + + public val APP_CONFIG_HOSTED_CONFIGURATION_VERSION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_CONFIG_HOSTED_CONFIGURATION_VERSION) + + public val APP_FLOW_FLOW: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_FLOW_FLOW) + + public val APP_INTEGRATIONS_EVENT_INTEGRATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_INTEGRATIONS_EVENT_INTEGRATION) + + public val APP_MESH_GATEWAY_ROUTE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_GATEWAY_ROUTE) + + public val APP_MESH_MESH: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_MESH) + + public val APP_MESH_ROUTE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_ROUTE) + + public val APP_MESH_VIRTUAL_GATEWAY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_VIRTUAL_GATEWAY) + + public val APP_MESH_VIRTUAL_NODE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_VIRTUAL_NODE) + + public val APP_MESH_VIRTUAL_ROUTER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_VIRTUAL_ROUTER) + + public val APP_MESH_VIRTUAL_SERVICE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_MESH_VIRTUAL_SERVICE) + + public val APP_RUNNER_SERVICE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_RUNNER_SERVICE) + + public val APP_RUNNER_VPC_CONNECTOR: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_RUNNER_VPC_CONNECTOR) + + public val APP_STREAM_APPLICATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_STREAM_APPLICATION) + + public val APP_STREAM_DIRECTORY_CONFIG: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_STREAM_DIRECTORY_CONFIG) + + public val APP_STREAM_FLEET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_STREAM_FLEET) + + public val APP_STREAM_STACK: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APP_STREAM_STACK) + public val APPCONFIG_APPLICATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APPCONFIG_APPLICATION) @@ -66,6 +129,15 @@ public open class ResourceType( public val APPSYNC_GRAPHQL_API: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APPSYNC_GRAPHQL_API) + public val APS_RULE_GROUPS_NAMESPACE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.APS_RULE_GROUPS_NAMESPACE) + + public val ATHENA_PREPARED_STATEMENT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ATHENA_PREPARED_STATEMENT) + + public val AUDIT_MANAGER_ASSESSMENT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AUDIT_MANAGER_ASSESSMENT) + public val AUTO_SCALING_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AUTO_SCALING_GROUP) @@ -78,6 +150,9 @@ public open class ResourceType( public val AUTO_SCALING_SCHEDULED_ACTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AUTO_SCALING_SCHEDULED_ACTION) + public val AUTO_SCALING_WARM_POOL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.AUTO_SCALING_WARM_POOL) + public val BACKUP_BACKUP_PLAN: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.BACKUP_BACKUP_PLAN) @@ -99,6 +174,18 @@ public open class ResourceType( public val BATCH_JOB_QUEUE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.BATCH_JOB_QUEUE) + public val BATCH_SCHEDULING_POLICY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.BATCH_SCHEDULING_POLICY) + + public val BUDGETS_BUDGETS_ACTION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.BUDGETS_BUDGETS_ACTION) + + public val CASSANDRA_KEYSPACE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CASSANDRA_KEYSPACE) + + public val CLOUD_WATCH_METRIC_STREAM: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CLOUD_WATCH_METRIC_STREAM) + public val CLOUD9_ENVIRONMENT_EC2: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CLOUD9_ENVIRONMENT_EC2) @@ -120,6 +207,18 @@ public open class ResourceType( public val CLOUDWATCH_RUM_APP_MONITOR: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CLOUDWATCH_RUM_APP_MONITOR) + public val CODE_ARTIFACT_REPOSITORY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CODE_ARTIFACT_REPOSITORY) + + public val CODE_BUILD_REPORT_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CODE_BUILD_REPORT_GROUP) + + public val CODE_GURU_PROFILER_PROFILING_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CODE_GURU_PROFILER_PROFILING_GROUP) + + public val CODE_GURU_REVIEWER_REPOSITORY_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CODE_GURU_REVIEWER_REPOSITORY_ASSOCIATION) + public val CODEBUILD_PROJECT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CODEBUILD_PROJECT) @@ -141,6 +240,21 @@ public open class ResourceType( public val CONFIG_RESOURCE_COMPLIANCE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CONFIG_RESOURCE_COMPLIANCE) + public val CONNECT_INSTANCE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CONNECT_INSTANCE) + + public val CONNECT_PHONE_NUMBER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CONNECT_PHONE_NUMBER) + + public val CONNECT_QUICK_CONNECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CONNECT_QUICK_CONNECT) + + public val CUSTOMER_PROFILES_DOMAIN: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CUSTOMER_PROFILES_DOMAIN) + + public val CUSTOMER_PROFILES_OBJECT_TYPE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.CUSTOMER_PROFILES_OBJECT_TYPE) + public val DATASYNC_LOCATION_EFS: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DATASYNC_LOCATION_EFS) @@ -168,6 +282,18 @@ public open class ResourceType( public val DATASYNC_TASK: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DATASYNC_TASK) + public val DEVICE_FARM_INSTANCE_PROFILE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DEVICE_FARM_INSTANCE_PROFILE) + + public val DEVICE_FARM_PROJECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DEVICE_FARM_PROJECT) + + public val DEVICE_FARM_TEST_GRID_PROJECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DEVICE_FARM_TEST_GRID_PROJECT) + + public val DMS_ENDPOINT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DMS_ENDPOINT) + public val DMS_EVENT_SUBSCRIPTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.DMS_EVENT_SUBSCRIPTION) @@ -180,9 +306,24 @@ public open class ResourceType( public val EBS_VOLUME: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EBS_VOLUME) + public val EC2_CAPACITY_RESERVATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_CAPACITY_RESERVATION) + + public val EC2_CARRIER_GATEWAY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_CARRIER_GATEWAY) + + public val EC2_CLIENT_VPN_ENDPOINT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_CLIENT_VPN_ENDPOINT) + public val EC2_CUSTOMER_GATEWAY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_CUSTOMER_GATEWAY) + public val EC2_DHCP_OPTIONS: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_DHCP_OPTIONS) + + public val EC2_EC2_FLEET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_EC2_FLEET) + public val EC2_EGRESS_ONLY_INTERNET_GATEWAY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_EGRESS_ONLY_INTERNET_GATEWAY) @@ -201,6 +342,15 @@ public open class ResourceType( public val EC2_INTERNET_GATEWAY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_INTERNET_GATEWAY) + public val EC2_IPAM: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_IPAM) + + public val EC2_IPAM_POOL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_IPAM_POOL) + + public val EC2_IPAM_SCOPE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_IPAM_SCOPE) + public val EC2_LAUNCH_TEMPLATE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_LAUNCH_TEMPLATE) @@ -213,9 +363,15 @@ public open class ResourceType( public val EC2_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS) + public val EC2_NETWORK_INSIGHTS_PATH: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_NETWORK_INSIGHTS_PATH) + public val EC2_NETWORK_INTERFACE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_NETWORK_INTERFACE) + public val EC2_PREFIX_LIST: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_PREFIX_LIST) + public val EC2_REGISTERED_HA_INSTANCE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_REGISTERED_HA_INSTANCE) @@ -225,15 +381,36 @@ public open class ResourceType( public val EC2_SECURITY_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_SECURITY_GROUP) + public val EC2_SPOT_FLEET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_SPOT_FLEET) + public val EC2_SUBNET: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_SUBNET) + public val EC2_SUBNET_ROUTE_TABLE_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_SUBNET_ROUTE_TABLE_ASSOCIATION) + + public val EC2_TRAFFIC_MIRROR_FILTER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRAFFIC_MIRROR_FILTER) + + public val EC2_TRAFFIC_MIRROR_SESSION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRAFFIC_MIRROR_SESSION) + + public val EC2_TRAFFIC_MIRROR_TARGET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRAFFIC_MIRROR_TARGET) + public val EC2_TRANSIT_GATEWAY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRANSIT_GATEWAY) public val EC2_TRANSIT_GATEWAY_ATTACHMENT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRANSIT_GATEWAY_ATTACHMENT) + public val EC2_TRANSIT_GATEWAY_CONNECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRANSIT_GATEWAY_CONNECT) + + public val EC2_TRANSIT_GATEWAY_MULTICAST_DOMAIN: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRANSIT_GATEWAY_MULTICAST_DOMAIN) + public val EC2_TRANSIT_GATEWAY_ROUTE_TABLE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EC2_TRANSIT_GATEWAY_ROUTE_TABLE) @@ -258,12 +435,18 @@ public open class ResourceType( public val ECR_PUBLIC_REPOSITORY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECR_PUBLIC_REPOSITORY) + public val ECR_PULL_THROUGH_CACHE_RULE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECR_PULL_THROUGH_CACHE_RULE) + public val ECR_REGISTRY_POLICY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECR_REGISTRY_POLICY) public val ECR_REPOSITORY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECR_REPOSITORY) + public val ECS_CAPACITY_PROVIDER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECS_CAPACITY_PROVIDER) + public val ECS_CLUSTER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECS_CLUSTER) @@ -273,6 +456,9 @@ public open class ResourceType( public val ECS_TASK_DEFINITION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECS_TASK_DEFINITION) + public val ECS_TASK_SET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ECS_TASK_SET) + public val EFS_ACCESS_POINT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EFS_ACCESS_POINT) @@ -312,6 +498,9 @@ public open class ResourceType( public val EMR_SECURITY_CONFIGURATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EMR_SECURITY_CONFIGURATION) + public val EVENT_SCHEMAS_SCHEMA: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENT_SCHEMAS_SCHEMA) + public val EVENTBRIDGE_API_DESTINATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTBRIDGE_API_DESTINATION) @@ -324,6 +513,12 @@ public open class ResourceType( public val EVENTBRIDGE_EVENTBUS: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTBRIDGE_EVENTBUS) + public val EVENTS_CONNECTION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTS_CONNECTION) + + public val EVENTS_RULE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTS_RULE) + public val EVENTSCHEMAS_DISCOVERER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTSCHEMAS_DISCOVERER) @@ -333,9 +528,21 @@ public open class ResourceType( public val EVENTSCHEMAS_REGISTRY_POLICY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVENTSCHEMAS_REGISTRY_POLICY) + public val EVIDENTLY_LAUNCH: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVIDENTLY_LAUNCH) + + public val EVIDENTLY_PROJECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.EVIDENTLY_PROJECT) + public val FIS_EXPERIMENT_TEMPLATE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.FIS_EXPERIMENT_TEMPLATE) + public val FORECAST_DATASET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.FORECAST_DATASET) + + public val FORECAST_DATASET_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.FORECAST_DATASET_GROUP) + public val FRAUDDETECTOR_ENTITY_TYPE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.FRAUDDETECTOR_ENTITY_TYPE) @@ -366,6 +573,18 @@ public open class ResourceType( public val GLUE_ML_TRANSFORM: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GLUE_ML_TRANSFORM) + public val GRAFANA_WORKSPACE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GRAFANA_WORKSPACE) + + public val GREENGRASSV2_COMPONENT_VERSION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GREENGRASSV2_COMPONENT_VERSION) + + public val GROUND_STATION_CONFIG: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GROUND_STATION_CONFIG) + + public val GROUNDSTATION_MISSION_PROFILE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GROUNDSTATION_MISSION_PROFILE) + public val GUARDDUTY_DETECTOR: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GUARDDUTY_DETECTOR) @@ -378,21 +597,36 @@ public open class ResourceType( public val GUARDDUTY_THREAT_INTEL_SET: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.GUARDDUTY_THREAT_INTEL_SET) + public val HEALTH_LAKE_FHIR_DATASTORE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.HEALTH_LAKE_FHIR_DATASTORE) + public val IAM_ACCESSANALYZER_ANALYZER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_ACCESSANALYZER_ANALYZER) public val IAM_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_GROUP) + public val IAM_INSTANCE_PROFILE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_INSTANCE_PROFILE) + public val IAM_POLICY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_POLICY) public val IAM_ROLE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_ROLE) + public val IAM_SAML_PROVIDER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_SAML_PROVIDER) + + public val IAM_SERVER_CERTIFICATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_SERVER_CERTIFICATE) + public val IAM_USER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IAM_USER) + public val IMAGE_BUILDER_IMAGE_PIPELINE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IMAGE_BUILDER_IMAGE_PIPELINE) + public val IMAGEBUILDER_CONTAINER_RECIPE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IMAGEBUILDER_CONTAINER_RECIPE) @@ -402,6 +636,12 @@ public open class ResourceType( public val IMAGEBUILDER_INFRASTRUCTURE_CONFIGURATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IMAGEBUILDER_INFRASTRUCTURE_CONFIGURATION) + public val INSPECTORV2_FILTER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.INSPECTORV2_FILTER) + + public val IOT_ACCOUNT_AUDIT_CONFIGURATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_ACCOUNT_AUDIT_CONFIGURATION) + public val IOT_ANALYTICS_CHANNEL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_ANALYTICS_CHANNEL) @@ -417,6 +657,12 @@ public open class ResourceType( public val IOT_AUTHORIZER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_AUTHORIZER) + public val IOT_CA_CERTIFICATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_CA_CERTIFICATE) + + public val IOT_CUSTOM_METRIC: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_CUSTOM_METRIC) + public val IOT_DIMENSION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_DIMENSION) @@ -429,15 +675,27 @@ public open class ResourceType( public val IOT_EVENTS_INPUT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_EVENTS_INPUT) + public val IOT_FLEET_METRIC: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_FLEET_METRIC) + + public val IOT_JOB_TEMPLATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_JOB_TEMPLATE) + public val IOT_MITIGATION_ACTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_MITIGATION_ACTION) public val IOT_POLICY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_POLICY) + public val IOT_PROVISIONING_TEMPLATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_PROVISIONING_TEMPLATE) + public val IOT_ROLE_ALIAS: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_ROLE_ALIAS) + public val IOT_SCHEDULED_AUDIT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SCHEDULED_AUDIT) + public val IOT_SECURITY_PROFILE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SECURITY_PROFILE) @@ -447,18 +705,39 @@ public open class ResourceType( public val IOT_SITEWISE_DASHBOARD: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SITEWISE_DASHBOARD) + public val IOT_SITEWISE_GATEWAY: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SITEWISE_GATEWAY) + public val IOT_SITEWISE_PORTAL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SITEWISE_PORTAL) public val IOT_SITEWISE_PROJECT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_SITEWISE_PROJECT) + public val IOT_TWIN_MAKER_COMPONENT_TYPE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_TWIN_MAKER_COMPONENT_TYPE) + + public val IOT_TWIN_MAKER_SCENE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_TWIN_MAKER_SCENE) + + public val IOT_TWIN_MAKER_SYNC_JOB: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_TWIN_MAKER_SYNC_JOB) + public val IOT_TWINMAKER_ENTITY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_TWINMAKER_ENTITY) public val IOT_TWINMAKER_WORKSPACE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_TWINMAKER_WORKSPACE) + public val IOT_WIRELESS_FUOTA_TASK: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_WIRELESS_FUOTA_TASK) + + public val IOT_WIRELESS_MULTICAST_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_WIRELESS_MULTICAST_GROUP) + + public val IOT_WIRELESS_SERVICE_PROFILE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IOT_WIRELESS_SERVICE_PROFILE) + public val IVS_CHANNEL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IVS_CHANNEL) @@ -468,21 +747,48 @@ public open class ResourceType( public val IVS_RECORDING_CONFIGURATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.IVS_RECORDING_CONFIGURATION) + public val KAFKA_CONNECT_CONNECTOR: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KAFKA_CONNECT_CONNECTOR) + + public val KENDRA_INDEX: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KENDRA_INDEX) + public val KINESIS_ANALYTICS_V2_APPLICATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_ANALYTICS_V2_APPLICATION) + public val KINESIS_FIREHOSE_DELIVERY_STREAM: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_FIREHOSE_DELIVERY_STREAM) + public val KINESIS_STREAM: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_STREAM) public val KINESIS_STREAM_CONSUMER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_STREAM_CONSUMER) + public val KINESIS_VIDEO_SIGNALING_CHANNEL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_VIDEO_SIGNALING_CHANNEL) + + public val KINESIS_VIDEO_STREAM: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KINESIS_VIDEO_STREAM) + + public val KMS_ALIAS: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KMS_ALIAS) + public val KMS_KEY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.KMS_KEY) + public val LAMBDA_CODE_SIGNING_CONFIG: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LAMBDA_CODE_SIGNING_CONFIG) + public val LAMBDA_FUNCTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LAMBDA_FUNCTION) + public val LEX_BOT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LEX_BOT) + + public val LEX_BOT_ALIAS: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LEX_BOT_ALIAS) + public val LIGHTSAIL_BUCKET: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LIGHTSAIL_BUCKET) @@ -495,12 +801,42 @@ public open class ResourceType( public val LIGHTSAIL_STATIC_IP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LIGHTSAIL_STATIC_IP) + public val LOGS_DESTINATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LOGS_DESTINATION) + + public val LOOKOUT_METRICS_ALERT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LOOKOUT_METRICS_ALERT) + + public val LOOKOUT_VISION_PROJECT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.LOOKOUT_VISION_PROJECT) + + public val MEDIA_CONNECT_FLOW_SOURCE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIA_CONNECT_FLOW_SOURCE) + + public val MEDIA_PACKAGE_PACKAGING_CONFIGURATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIA_PACKAGE_PACKAGING_CONFIGURATION) + + public val MEDIACONNECT_FLOW_ENTITLEMENT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIACONNECT_FLOW_ENTITLEMENT) + + public val MEDIACONNECT_FLOW_VPC_INTERFACE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIACONNECT_FLOW_VPC_INTERFACE) + public val MEDIAPACKAGE_PACKAGING_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIAPACKAGE_PACKAGING_GROUP) + public val MEDIATAILOR_PLAYBACK_CONFIGURATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MEDIATAILOR_PLAYBACK_CONFIGURATION) + + public val MSK_BATCH_SCRAM_SECRET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MSK_BATCH_SCRAM_SECRET) + public val MSK_CLUSTER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MSK_CLUSTER) + public val MSK_CONFIGURATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.MSK_CONFIGURATION) + public val NETWORK_FIREWALL_FIREWALL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_FIREWALL_FIREWALL) @@ -510,9 +846,75 @@ public open class ResourceType( public val NETWORK_FIREWALL_RULE_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_FIREWALL_RULE_GROUP) + public val NETWORK_FIREWALL_TLS_INSPECTION_CONFIGURATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_FIREWALL_TLS_INSPECTION_CONFIGURATION) + + public val NETWORK_MANAGER_CONNECT_PEER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_CONNECT_PEER) + + public val NETWORK_MANAGER_CUSTOMER_GATEWAY_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_CUSTOMER_GATEWAY_ASSOCIATION) + + public val NETWORK_MANAGER_DEVICE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_DEVICE) + + public val NETWORK_MANAGER_GLOBAL_NETWORK: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_GLOBAL_NETWORK) + + public val NETWORK_MANAGER_LINK: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_LINK) + + public val NETWORK_MANAGER_LINK_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_LINK_ASSOCIATION) + + public val NETWORK_MANAGER_SITE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_SITE) + + public val NETWORK_MANAGER_TRANSIT_GATEWAY_REGISTRATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.NETWORK_MANAGER_TRANSIT_GATEWAY_REGISTRATION) + public val OPENSEARCH_DOMAIN: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.OPENSEARCH_DOMAIN) + public val PANORAMA_PACKAGE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PANORAMA_PACKAGE) + + public val PERSONALIZE_DATASET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PERSONALIZE_DATASET) + + public val PERSONALIZE_DATASET_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PERSONALIZE_DATASET_GROUP) + + public val PERSONALIZE_SCHEMA: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PERSONALIZE_SCHEMA) + + public val PERSONALIZE_SOLUTION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PERSONALIZE_SOLUTION) + + public val PINPOINT_APP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_APP) + + public val PINPOINT_APPLICATION_SETTINGS: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_APPLICATION_SETTINGS) + + public val PINPOINT_CAMPAIGN: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_CAMPAIGN) + + public val PINPOINT_EMAIL_CHANNEL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_EMAIL_CHANNEL) + + public val PINPOINT_EMAIL_TEMPLATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_EMAIL_TEMPLATE) + + public val PINPOINT_EVENT_STREAM: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_EVENT_STREAM) + + public val PINPOINT_IN_APP_TEMPLATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_IN_APP_TEMPLATE) + + public val PINPOINT_SEGMENT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.PINPOINT_SEGMENT) + public val QLDB_LEDGER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.QLDB_LEDGER) @@ -540,6 +942,9 @@ public open class ResourceType( public val RDS_GLOBAL_CLUSTER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.RDS_GLOBAL_CLUSTER) + public val RDS_OPTION_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.RDS_OPTION_GROUP) + public val REDSHIFT_CLUSTER: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.REDSHIFT_CLUSTER) @@ -558,15 +963,45 @@ public open class ResourceType( public val REDSHIFT_EVENT_SUBSCRIPTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.REDSHIFT_EVENT_SUBSCRIPTION) + public val REDSHIFT_SCHEDULED_ACTION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.REDSHIFT_SCHEDULED_ACTION) + + public val RESILIENCEHUB_APP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.RESILIENCEHUB_APP) + public val RESILIENCEHUB_RESILIENCY_POLICY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.RESILIENCEHUB_RESILIENCY_POLICY) + public val RESOURCE_EXPLORER2_INDEX: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.RESOURCE_EXPLORER2_INDEX) + + public val ROBO_MAKER_ROBOT_APPLICATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROBO_MAKER_ROBOT_APPLICATION) + + public val ROBO_MAKER_ROBOT_APPLICATION_VERSION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROBO_MAKER_ROBOT_APPLICATION_VERSION) + + public val ROBO_MAKER_SIMULATION_APPLICATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROBO_MAKER_SIMULATION_APPLICATION) + public val ROUTE53_HEALTH_CHECK: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_HEALTH_CHECK) public val ROUTE53_HOSTED_ZONE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_HOSTED_ZONE) + public val ROUTE53_RECOVERY_CONTROL_CLUSTER: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_CONTROL_CLUSTER) + + public val ROUTE53_RECOVERY_CONTROL_CONTROL_PANEL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_CONTROL_CONTROL_PANEL) + + public val ROUTE53_RECOVERY_CONTROL_ROUTING_CONTROL: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_CONTROL_ROUTING_CONTROL) + + public val ROUTE53_RECOVERY_CONTROL_SAFETY_RULE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_CONTROL_SAFETY_RULE) + public val ROUTE53_RECOVERY_READINESS_CELL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_READINESS_CELL) @@ -576,6 +1011,24 @@ public open class ResourceType( public val ROUTE53_RECOVERY_READINESS_RECOVERY_GROUP: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_READINESS_RECOVERY_GROUP) + public val ROUTE53_RECOVERY_READINESS_RESOURCE_SET: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RECOVERY_READINESS_RESOURCE_SET) + + public val ROUTE53_RESOLVER_FIREWALL_DOMAIN_LIST: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_FIREWALL_DOMAIN_LIST) + + public val ROUTE53_RESOLVER_FIREWALL_RULE_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_FIREWALL_RULE_GROUP) + + public val ROUTE53_RESOLVER_FIREWALL_RULE_GROUP_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_FIREWALL_RULE_GROUP_ASSOCIATION) + + public val ROUTE53_RESOLVER_QUERY_LOGGING_CONFIG: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_QUERY_LOGGING_CONFIG) + + public val ROUTE53_RESOLVER_QUERY_LOGGING_CONFIG_ASSOCIATION: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_QUERY_LOGGING_CONFIG_ASSOCIATION) + public val ROUTE53_RESOLVER_RESOLVER_ENDPOINT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_RESOLVER_ENDPOINT) @@ -585,6 +1038,9 @@ public open class ResourceType( public val ROUTE53_RESOLVER_RESOLVER_RULE_ASSOCIATION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.ROUTE53_RESOLVER_RESOLVER_RULE_ASSOCIATION) + public val S3_ACCESS_POINT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.S3_ACCESS_POINT) + public val S3_ACCOUNT_PUBLIC_ACCESS_BLOCK: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.S3_ACCOUNT_PUBLIC_ACCESS_BLOCK) @@ -594,9 +1050,24 @@ public open class ResourceType( public val S3_MULTIREGION_ACCESS_POINT: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.S3_MULTIREGION_ACCESS_POINT) + public val S3_STORAGE_LENS: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.S3_STORAGE_LENS) + + public val SAGE_MAKER_APP_IMAGE_CONFIG: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGE_MAKER_APP_IMAGE_CONFIG) + + public val SAGE_MAKER_IMAGE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGE_MAKER_IMAGE) + public val SAGEMAKER_CODE_REPOSITORY: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGEMAKER_CODE_REPOSITORY) + public val SAGEMAKER_DOMAIN: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGEMAKER_DOMAIN) + + public val SAGEMAKER_FEATURE_GROUP: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGEMAKER_FEATURE_GROUP) + public val SAGEMAKER_MODEL: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SAGEMAKER_MODEL) @@ -618,6 +1089,9 @@ public open class ResourceType( public val SERVICE_CATALOG_PORTFOLIO: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SERVICE_CATALOG_PORTFOLIO) + public val SERVICE_DISCOVERY_INSTANCE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SERVICE_DISCOVERY_INSTANCE) + public val SERVICEDISCOVERY_HTTP_NAMESPACE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SERVICEDISCOVERY_HTTP_NAMESPACE) @@ -648,6 +1122,9 @@ public open class ResourceType( public val SHIELD_REGIONAL_PROTECTION: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SHIELD_REGIONAL_PROTECTION) + public val SIGNER_SIGNING_PROFILE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SIGNER_SIGNING_PROFILE) + public val SNS_TOPIC: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SNS_TOPIC) @@ -672,6 +1149,15 @@ public open class ResourceType( public val SYSTEMS_MANAGER_PATCH_COMPLIANCE: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.SYSTEMS_MANAGER_PATCH_COMPLIANCE) + public val TRANSFER_AGREEMENT: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.TRANSFER_AGREEMENT) + + public val TRANSFER_CERTIFICATE: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.TRANSFER_CERTIFICATE) + + public val TRANSFER_CONNECTOR: ResourceType = + ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.TRANSFER_CONNECTOR) + public val TRANSFER_WORKFLOW: ResourceType = ResourceType.wrap(software.amazon.awscdk.services.config.ResourceType.TRANSFER_WORKFLOW) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/RuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/RuleProps.kt index 618b3bcfb8..949bef3598 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/RuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/config/RuleProps.kt @@ -19,11 +19,13 @@ import kotlin.collections.Map * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.config.*; + * EvaluationMode evaluationMode; * Object inputParameters; * RuleScope ruleScope; * RuleProps ruleProps = RuleProps.builder() * .configRuleName("configRuleName") * .description("description") + * .evaluationModes(evaluationMode) * .inputParameters(Map.of( * "inputParametersKey", inputParameters)) * .maximumExecutionFrequency(MaximumExecutionFrequency.ONE_HOUR) @@ -46,6 +48,16 @@ public interface RuleProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + public fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * @@ -84,6 +96,12 @@ public interface RuleProps { */ public fun description(description: String) + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + public fun evaluationModes(evaluationModes: EvaluationMode) + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -119,6 +137,14 @@ public interface RuleProps { cdkBuilder.description(description) } + /** + * @param evaluationModes The modes the AWS Config rule can be evaluated in. + * The valid values are distinct objects. + */ + override fun evaluationModes(evaluationModes: EvaluationMode) { + cdkBuilder.evaluationModes(evaluationModes.let(EvaluationMode.Companion::unwrap)) + } + /** * @param inputParameters Input parameter values that are passed to the AWS Config rule. */ @@ -146,7 +172,8 @@ public interface RuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.config.RuleProps, - ) : CdkObject(cdkObject), RuleProps { + ) : CdkObject(cdkObject), + RuleProps { /** * A name for the AWS Config rule. * @@ -161,6 +188,16 @@ public interface RuleProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The modes the AWS Config rule can be evaluated in. + * + * The valid values are distinct objects. + * + * Default: - Detective evaluation mode only + */ + override fun evaluationModes(): EvaluationMode? = + unwrap(this).getEvaluationModes()?.let(EvaluationMode::wrap) + /** * Input parameter values that are passed to the AWS Config rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatus.kt new file mode 100644 index 0000000000..51d4fbdb87 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatus.kt @@ -0,0 +1,431 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.connect + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Contains information about an agent status. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * CfnAgentStatus cfnAgentStatus = CfnAgentStatus.Builder.create(this, "MyCfnAgentStatus") + * .instanceArn("instanceArn") + * .name("name") + * .state("state") + * // the properties below are optional + * .description("description") + * .displayOrder(123) + * .resetOrderNumber(false) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html) + */ +public open class CfnAgentStatus( + cdkObject: software.amazon.awscdk.services.connect.CfnAgentStatus, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnAgentStatusProps, + ) : + this(software.amazon.awscdk.services.connect.CfnAgentStatus(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnAgentStatusProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnAgentStatusProps.Builder.() -> Unit, + ) : this(scope, id, CfnAgentStatusProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the agent status. + */ + public open fun attrAgentStatusArn(): String = unwrap(this).getAttrAgentStatusArn() + + /** + * The AWS Region where this resource was last modified. + */ + public open fun attrLastModifiedRegion(): String = unwrap(this).getAttrLastModifiedRegion() + + /** + * The timestamp when this resource was last modified. + */ + public open fun attrLastModifiedTime(): IResolvable = + unwrap(this).getAttrLastModifiedTime().let(IResolvable::wrap) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the agent status. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the agent status. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The display order of the agent status. + */ + public open fun displayOrder(): Number? = unwrap(this).getDisplayOrder() + + /** + * The display order of the agent status. + */ + public open fun displayOrder(`value`: Number) { + unwrap(this).setDisplayOrder(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the instance. + */ + public open fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * The Amazon Resource Name (ARN) of the instance. + */ + public open fun instanceArn(`value`: String) { + unwrap(this).setInstanceArn(`value`) + } + + /** + * The name of the agent status. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the agent status. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * A number indicating the reset order of the agent status. + */ + public open fun resetOrderNumber(): Any? = unwrap(this).getResetOrderNumber() + + /** + * A number indicating the reset order of the agent status. + */ + public open fun resetOrderNumber(`value`: Boolean) { + unwrap(this).setResetOrderNumber(`value`) + } + + /** + * A number indicating the reset order of the agent status. + */ + public open fun resetOrderNumber(`value`: IResolvable) { + unwrap(this).setResetOrderNumber(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The state of the agent status. + */ + public open fun state(): String = unwrap(this).getState() + + /** + * The state of the agent status. + */ + public open fun state(`value`: String) { + unwrap(this).setState(`value`) + } + + /** + * The tags used to organize, track, or control access for this resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for this resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for this resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The type of agent status. + */ + public open fun type(): String? = unwrap(this).getType() + + /** + * The type of agent status. + */ + public open fun type(`value`: String) { + unwrap(this).setType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.connect.CfnAgentStatus]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-description) + * @param description The description of the agent status. + */ + public fun description(description: String) + + /** + * The display order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-displayorder) + * @param displayOrder The display order of the agent status. + */ + public fun displayOrder(displayOrder: Number) + + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-instancearn) + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + public fun instanceArn(instanceArn: String) + + /** + * The name of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-name) + * @param name The name of the agent status. + */ + public fun name(name: String) + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + public fun resetOrderNumber(resetOrderNumber: Boolean) + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + public fun resetOrderNumber(resetOrderNumber: IResolvable) + + /** + * The state of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-state) + * @param state The state of the agent status. + */ + public fun state(state: String) + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + * @param tags The tags used to organize, track, or control access for this resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + * @param tags The tags used to organize, track, or control access for this resource. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The type of agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-type) + * @param type The type of agent status. + */ + public fun type(type: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.connect.CfnAgentStatus.Builder = + software.amazon.awscdk.services.connect.CfnAgentStatus.Builder.create(scope, id) + + /** + * The description of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-description) + * @param description The description of the agent status. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The display order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-displayorder) + * @param displayOrder The display order of the agent status. + */ + override fun displayOrder(displayOrder: Number) { + cdkBuilder.displayOrder(displayOrder) + } + + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-instancearn) + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * The name of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-name) + * @param name The name of the agent status. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + override fun resetOrderNumber(resetOrderNumber: Boolean) { + cdkBuilder.resetOrderNumber(resetOrderNumber) + } + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + override fun resetOrderNumber(resetOrderNumber: IResolvable) { + cdkBuilder.resetOrderNumber(resetOrderNumber.let(IResolvable.Companion::unwrap)) + } + + /** + * The state of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-state) + * @param state The state of the agent status. + */ + override fun state(state: String) { + cdkBuilder.state(state) + } + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + * @param tags The tags used to organize, track, or control access for this resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + * @param tags The tags used to organize, track, or control access for this resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The type of agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-type) + * @param type The type of agent status. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.connect.CfnAgentStatus = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.connect.CfnAgentStatus.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnAgentStatus { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnAgentStatus(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnAgentStatus): + CfnAgentStatus = CfnAgentStatus(cdkObject) + + internal fun unwrap(wrapped: CfnAgentStatus): + software.amazon.awscdk.services.connect.CfnAgentStatus = wrapped.cdkObject as + software.amazon.awscdk.services.connect.CfnAgentStatus + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatusProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatusProps.kt new file mode 100644 index 0000000000..58330f31d4 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnAgentStatusProps.kt @@ -0,0 +1,316 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.connect + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnAgentStatus`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * CfnAgentStatusProps cfnAgentStatusProps = CfnAgentStatusProps.builder() + * .instanceArn("instanceArn") + * .name("name") + * .state("state") + * // the properties below are optional + * .description("description") + * .displayOrder(123) + * .resetOrderNumber(false) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html) + */ +public interface CfnAgentStatusProps { + /** + * The description of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The display order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-displayorder) + */ + public fun displayOrder(): Number? = unwrap(this).getDisplayOrder() + + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-instancearn) + */ + public fun instanceArn(): String + + /** + * The name of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-name) + */ + public fun name(): String + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + */ + public fun resetOrderNumber(): Any? = unwrap(this).getResetOrderNumber() + + /** + * The state of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-state) + */ + public fun state(): String + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The type of agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-type) + */ + public fun type(): String? = unwrap(this).getType() + + /** + * A builder for [CfnAgentStatusProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the agent status. + */ + public fun description(description: String) + + /** + * @param displayOrder The display order of the agent status. + */ + public fun displayOrder(displayOrder: Number) + + /** + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + public fun instanceArn(instanceArn: String) + + /** + * @param name The name of the agent status. + */ + public fun name(name: String) + + /** + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + public fun resetOrderNumber(resetOrderNumber: Boolean) + + /** + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + public fun resetOrderNumber(resetOrderNumber: IResolvable) + + /** + * @param state The state of the agent status. + */ + public fun state(state: String) + + /** + * @param tags The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param type The type of agent status. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.connect.CfnAgentStatusProps.Builder = + software.amazon.awscdk.services.connect.CfnAgentStatusProps.builder() + + /** + * @param description The description of the agent status. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param displayOrder The display order of the agent status. + */ + override fun displayOrder(displayOrder: Number) { + cdkBuilder.displayOrder(displayOrder) + } + + /** + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * @param name The name of the agent status. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + override fun resetOrderNumber(resetOrderNumber: Boolean) { + cdkBuilder.resetOrderNumber(resetOrderNumber) + } + + /** + * @param resetOrderNumber A number indicating the reset order of the agent status. + */ + override fun resetOrderNumber(resetOrderNumber: IResolvable) { + cdkBuilder.resetOrderNumber(resetOrderNumber.let(IResolvable.Companion::unwrap)) + } + + /** + * @param state The state of the agent status. + */ + override fun state(state: String) { + cdkBuilder.state(state) + } + + /** + * @param tags The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param type The type of agent status. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.connect.CfnAgentStatusProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnAgentStatusProps, + ) : CdkObject(cdkObject), + CfnAgentStatusProps { + /** + * The description of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The display order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-displayorder) + */ + override fun displayOrder(): Number? = unwrap(this).getDisplayOrder() + + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-instancearn) + */ + override fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * The name of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A number indicating the reset order of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-resetordernumber) + */ + override fun resetOrderNumber(): Any? = unwrap(this).getResetOrderNumber() + + /** + * The state of the agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-state) + */ + override fun state(): String = unwrap(this).getState() + + /** + * The tags used to organize, track, or control access for this resource. + * + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The type of agent status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-agentstatus.html#cfn-connect-agentstatus-type) + */ + override fun type(): String? = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnAgentStatusProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnAgentStatusProps): + CfnAgentStatusProps = CdkObjectWrappers.wrap(cdkObject) as? CfnAgentStatusProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnAgentStatusProps): + software.amazon.awscdk.services.connect.CfnAgentStatusProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.connect.CfnAgentStatusProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOrigin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOrigin.kt index e5d1f23cbd..b9edb2c644 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOrigin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOrigin.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApprovedOrigin( cdkObject: software.amazon.awscdk.services.connect.CfnApprovedOrigin, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOriginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOriginProps.kt index b4135c2219..cb324de002 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOriginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnApprovedOriginProps.kt @@ -94,7 +94,8 @@ public interface CfnApprovedOriginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnApprovedOriginProps, - ) : CdkObject(cdkObject), CfnApprovedOriginProps { + ) : CdkObject(cdkObject), + CfnApprovedOriginProps { /** * The Amazon Resource Name (ARN) of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlow.kt index eef2351260..b15b365ceb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlow.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContactFlow( cdkObject: software.amazon.awscdk.services.connect.CfnContactFlow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModule.kt index 93dd9f9623..42b6adb62a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModule.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContactFlowModule( cdkObject: software.amazon.awscdk.services.connect.CfnContactFlowModule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModuleProps.kt index a0ba4b1db6..32eebf8692 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowModuleProps.kt @@ -193,7 +193,8 @@ public interface CfnContactFlowModuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnContactFlowModuleProps, - ) : CdkObject(cdkObject), CfnContactFlowModuleProps { + ) : CdkObject(cdkObject), + CfnContactFlowModuleProps { /** * The content of the flow module. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowProps.kt index 9a5ac403c6..8d2734f867 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnContactFlowProps.kt @@ -232,7 +232,8 @@ public interface CfnContactFlowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnContactFlowProps, - ) : CdkObject(cdkObject), CfnContactFlowProps { + ) : CdkObject(cdkObject), + CfnContactFlowProps { /** * The content of the flow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationForm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationForm.kt index ea31640345..544cb294b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationForm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationForm.kt @@ -116,7 +116,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEvaluationForm( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -729,7 +731,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormBaseItemProperty, - ) : CdkObject(cdkObject), EvaluationFormBaseItemProperty { + ) : CdkObject(cdkObject), + EvaluationFormBaseItemProperty { /** * A subsection or inner section of an item. * @@ -945,7 +948,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormItemProperty, - ) : CdkObject(cdkObject), EvaluationFormItemProperty { + ) : CdkObject(cdkObject), + EvaluationFormItemProperty { /** * The information of the question. * @@ -1066,7 +1070,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormNumericQuestionAutomationProperty, - ) : CdkObject(cdkObject), EvaluationFormNumericQuestionAutomationProperty { + ) : CdkObject(cdkObject), + EvaluationFormNumericQuestionAutomationProperty { /** * The property value of the automation. * @@ -1239,7 +1244,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty, - ) : CdkObject(cdkObject), EvaluationFormNumericQuestionOptionProperty { + ) : CdkObject(cdkObject), + EvaluationFormNumericQuestionOptionProperty { /** * The flag to mark the option as automatic fail. * @@ -1472,7 +1478,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormNumericQuestionPropertiesProperty, - ) : CdkObject(cdkObject), EvaluationFormNumericQuestionPropertiesProperty { + ) : CdkObject(cdkObject), + EvaluationFormNumericQuestionPropertiesProperty { /** * The automation properties of the numeric question. * @@ -1818,7 +1825,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormQuestionProperty, - ) : CdkObject(cdkObject), EvaluationFormQuestionProperty { + ) : CdkObject(cdkObject), + EvaluationFormQuestionProperty { /** * The instructions of the section. * @@ -2075,7 +2083,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty, - ) : CdkObject(cdkObject), EvaluationFormQuestionTypePropertiesProperty { + ) : CdkObject(cdkObject), + EvaluationFormQuestionTypePropertiesProperty { /** * The properties of the numeric question. * @@ -2353,7 +2362,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSectionProperty, - ) : CdkObject(cdkObject), EvaluationFormSectionProperty { + ) : CdkObject(cdkObject), + EvaluationFormSectionProperty { /** * The instructions of the section. * @@ -2514,7 +2524,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionAutomationOptionProperty, - ) : CdkObject(cdkObject), EvaluationFormSingleSelectQuestionAutomationOptionProperty { + ) : CdkObject(cdkObject), + EvaluationFormSingleSelectQuestionAutomationOptionProperty { /** * The automation option based on a rule category for the single select question. * @@ -2681,7 +2692,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionAutomationProperty, - ) : CdkObject(cdkObject), EvaluationFormSingleSelectQuestionAutomationProperty { + ) : CdkObject(cdkObject), + EvaluationFormSingleSelectQuestionAutomationProperty { /** * The identifier of the default answer option, when none of the automation options match the * criteria. @@ -2879,7 +2891,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionOptionProperty, - ) : CdkObject(cdkObject), EvaluationFormSingleSelectQuestionOptionProperty { + ) : CdkObject(cdkObject), + EvaluationFormSingleSelectQuestionOptionProperty { /** * The flag to mark the option as automatic fail. * @@ -3129,7 +3142,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSingleSelectQuestionPropertiesProperty, - ) : CdkObject(cdkObject), EvaluationFormSingleSelectQuestionPropertiesProperty { + ) : CdkObject(cdkObject), + EvaluationFormSingleSelectQuestionPropertiesProperty { /** * The display mode of the single select question. * @@ -3233,7 +3247,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.NumericQuestionPropertyValueAutomationProperty, - ) : CdkObject(cdkObject), NumericQuestionPropertyValueAutomationProperty { + ) : CdkObject(cdkObject), + NumericQuestionPropertyValueAutomationProperty { /** * The property label of the automation. * @@ -3344,7 +3359,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.ScoringStrategyProperty, - ) : CdkObject(cdkObject), ScoringStrategyProperty { + ) : CdkObject(cdkObject), + ScoringStrategyProperty { /** * The scoring mode of the evaluation form. * @@ -3519,7 +3535,8 @@ public open class CfnEvaluationForm( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationForm.SingleSelectQuestionRuleCategoryAutomationProperty, - ) : CdkObject(cdkObject), SingleSelectQuestionRuleCategoryAutomationProperty { + ) : CdkObject(cdkObject), + SingleSelectQuestionRuleCategoryAutomationProperty { /** * The category name, as defined in Rules. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationFormProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationFormProps.kt index eb870ad1a7..bc31ed5361 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationFormProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnEvaluationFormProps.kt @@ -374,7 +374,8 @@ public interface CfnEvaluationFormProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnEvaluationFormProps, - ) : CdkObject(cdkObject), CfnEvaluationFormProps { + ) : CdkObject(cdkObject), + CfnEvaluationFormProps { /** * The description of the evaluation form. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperation.kt index 4154ed05e6..b20bb4c273 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperation.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHoursOfOperation( cdkObject: software.amazon.awscdk.services.connect.CfnHoursOfOperation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -545,7 +547,8 @@ public open class CfnHoursOfOperation( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnHoursOfOperation.HoursOfOperationConfigProperty, - ) : CdkObject(cdkObject), HoursOfOperationConfigProperty { + ) : CdkObject(cdkObject), + HoursOfOperationConfigProperty { /** * The day that the hours of operation applies to. * @@ -662,7 +665,8 @@ public open class CfnHoursOfOperation( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnHoursOfOperation.HoursOfOperationTimeSliceProperty, - ) : CdkObject(cdkObject), HoursOfOperationTimeSliceProperty { + ) : CdkObject(cdkObject), + HoursOfOperationTimeSliceProperty { /** * The hours. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperationProps.kt index ddadb73246..0d9cba2cbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnHoursOfOperationProps.kt @@ -216,7 +216,8 @@ public interface CfnHoursOfOperationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnHoursOfOperationProps, - ) : CdkObject(cdkObject), CfnHoursOfOperationProps { + ) : CdkObject(cdkObject), + CfnHoursOfOperationProps { /** * Configuration information for the hours of operation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstance.kt index 5ee1f09c21..94ec814f02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstance.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstance( cdkObject: software.amazon.awscdk.services.connect.CfnInstance, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -654,7 +656,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstance.AttributesProperty, - ) : CdkObject(cdkObject), AttributesProperty { + ) : CdkObject(cdkObject), + AttributesProperty { /** * Boolean flag which enables AUTO_RESOLVE_BEST_VOICES on an instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceProps.kt index 2162b2b6a6..0bfce85390 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceProps.kt @@ -202,7 +202,8 @@ public interface CfnInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceProps, - ) : CdkObject(cdkObject), CfnInstanceProps { + ) : CdkObject(cdkObject), + CfnInstanceProps { /** * A toggle for an individual feature at the instance level. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfig.kt index bff725a891..0cc3e458f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfig.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceStorageConfig( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -667,7 +668,8 @@ public open class CfnInstanceStorageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig.EncryptionConfigProperty, - ) : CdkObject(cdkObject), EncryptionConfigProperty { + ) : CdkObject(cdkObject), + EncryptionConfigProperty { /** * The type of encryption. * @@ -765,7 +767,8 @@ public open class CfnInstanceStorageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig.KinesisFirehoseConfigProperty, - ) : CdkObject(cdkObject), KinesisFirehoseConfigProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseConfigProperty { /** * The Amazon Resource Name (ARN) of the delivery stream. * @@ -847,7 +850,8 @@ public open class CfnInstanceStorageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig.KinesisStreamConfigProperty, - ) : CdkObject(cdkObject), KinesisStreamConfigProperty { + ) : CdkObject(cdkObject), + KinesisStreamConfigProperty { /** * The Amazon Resource Name (ARN) of the data stream. * @@ -1010,7 +1014,8 @@ public open class CfnInstanceStorageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig.KinesisVideoStreamConfigProperty, - ) : CdkObject(cdkObject), KinesisVideoStreamConfigProperty { + ) : CdkObject(cdkObject), + KinesisVideoStreamConfigProperty { /** * The encryption configuration. * @@ -1181,7 +1186,8 @@ public open class CfnInstanceStorageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfig.S3ConfigProperty, - ) : CdkObject(cdkObject), S3ConfigProperty { + ) : CdkObject(cdkObject), + S3ConfigProperty { /** * The S3 bucket name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfigProps.kt index 8a07c8bc00..ac14d2c2af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnInstanceStorageConfigProps.kt @@ -335,7 +335,8 @@ public interface CfnInstanceStorageConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnInstanceStorageConfigProps, - ) : CdkObject(cdkObject), CfnInstanceStorageConfigProps { + ) : CdkObject(cdkObject), + CfnInstanceStorageConfigProps { /** * The Amazon Resource Name (ARN) of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociation.kt index b6a9351402..db388f470d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociation.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIntegrationAssociation( cdkObject: software.amazon.awscdk.services.connect.CfnIntegrationAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociationProps.kt index 7673eed394..60fb053326 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnIntegrationAssociationProps.kt @@ -126,7 +126,8 @@ public interface CfnIntegrationAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnIntegrationAssociationProps, - ) : CdkObject(cdkObject), CfnIntegrationAssociationProps { + ) : CdkObject(cdkObject), + CfnIntegrationAssociationProps { /** * The Amazon Resource Name (ARN) of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumber.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumber.kt index 4056d3d7a8..bc379cc30c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumber.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumber.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPhoneNumber( cdkObject: software.amazon.awscdk.services.connect.CfnPhoneNumber, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumberProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumberProps.kt index 1a4ced8e03..f30fd95dd0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumberProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPhoneNumberProps.kt @@ -221,7 +221,8 @@ public interface CfnPhoneNumberProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnPhoneNumberProps, - ) : CdkObject(cdkObject), CfnPhoneNumberProps { + ) : CdkObject(cdkObject), + CfnPhoneNumberProps { /** * The ISO country code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttribute.kt index 29fd6bce2a..745b3e395f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttribute.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPredefinedAttribute( cdkObject: software.amazon.awscdk.services.connect.CfnPredefinedAttribute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -323,7 +324,8 @@ public open class CfnPredefinedAttribute( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnPredefinedAttribute.ValuesProperty, - ) : CdkObject(cdkObject), ValuesProperty { + ) : CdkObject(cdkObject), + ValuesProperty { /** * Predefined attribute values of type string list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttributeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttributeProps.kt index 7fbe99da6b..1bfcb44f65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttributeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPredefinedAttributeProps.kt @@ -133,7 +133,8 @@ public interface CfnPredefinedAttributeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnPredefinedAttributeProps, - ) : CdkObject(cdkObject), CfnPredefinedAttributeProps { + ) : CdkObject(cdkObject), + CfnPredefinedAttributeProps { /** * The Amazon Resource Name (ARN) of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPrompt.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPrompt.kt index 83b74fb6bd..852a0f97d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPrompt.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPrompt.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrompt( cdkObject: software.amazon.awscdk.services.connect.CfnPrompt, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPromptProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPromptProps.kt index 701c878ac2..4af3d31dfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPromptProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnPromptProps.kt @@ -165,7 +165,8 @@ public interface CfnPromptProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnPromptProps, - ) : CdkObject(cdkObject), CfnPromptProps { + ) : CdkObject(cdkObject), + CfnPromptProps { /** * The description of the prompt. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueue.kt index e3174cf9cc..07f6d09538 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueue.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueue( cdkObject: software.amazon.awscdk.services.connect.CfnQueue, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -644,7 +646,8 @@ public open class CfnQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQueue.OutboundCallerConfigProperty, - ) : CdkObject(cdkObject), OutboundCallerConfigProperty { + ) : CdkObject(cdkObject), + OutboundCallerConfigProperty { /** * The caller ID name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueueProps.kt index ddb0bd49a9..7da399f22a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQueueProps.kt @@ -296,7 +296,8 @@ public interface CfnQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQueueProps, - ) : CdkObject(cdkObject), CfnQueueProps { + ) : CdkObject(cdkObject), + CfnQueueProps { /** * The description of the queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnect.kt index 9dc67b2e48..b77d89c182 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnect.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQuickConnect( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnect, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -432,7 +434,8 @@ public open class CfnQuickConnect( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnect.PhoneNumberQuickConnectConfigProperty, - ) : CdkObject(cdkObject), PhoneNumberQuickConnectConfigProperty { + ) : CdkObject(cdkObject), + PhoneNumberQuickConnectConfigProperty { /** * The phone number in E.164 format. * @@ -538,7 +541,8 @@ public open class CfnQuickConnect( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnect.QueueQuickConnectConfigProperty, - ) : CdkObject(cdkObject), QueueQuickConnectConfigProperty { + ) : CdkObject(cdkObject), + QueueQuickConnectConfigProperty { /** * The Amazon Resource Name (ARN) of the flow. * @@ -809,7 +813,8 @@ public open class CfnQuickConnect( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnect.QuickConnectConfigProperty, - ) : CdkObject(cdkObject), QuickConnectConfigProperty { + ) : CdkObject(cdkObject), + QuickConnectConfigProperty { /** * The phone configuration. * @@ -944,7 +949,8 @@ public open class CfnQuickConnect( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnect.UserQuickConnectConfigProperty, - ) : CdkObject(cdkObject), UserQuickConnectConfigProperty { + ) : CdkObject(cdkObject), + UserQuickConnectConfigProperty { /** * The Amazon Resource Name (ARN) of the flow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnectProps.kt index 3e27c19b07..e896d013ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnQuickConnectProps.kt @@ -209,7 +209,8 @@ public interface CfnQuickConnectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnQuickConnectProps, - ) : CdkObject(cdkObject), CfnQuickConnectProps { + ) : CdkObject(cdkObject), + CfnQuickConnectProps { /** * The description of the quick connect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfile.kt index 743cd52d49..927cc797c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfile.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoutingProfile( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -590,7 +592,8 @@ public open class CfnRoutingProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfile.CrossChannelBehaviorProperty, - ) : CdkObject(cdkObject), CrossChannelBehaviorProperty { + ) : CdkObject(cdkObject), + CrossChannelBehaviorProperty { /** * Specifies the other channels that can be routed to an agent handling their current channel. * @@ -783,7 +786,8 @@ public open class CfnRoutingProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfile.MediaConcurrencyProperty, - ) : CdkObject(cdkObject), MediaConcurrencyProperty { + ) : CdkObject(cdkObject), + MediaConcurrencyProperty { /** * The channels that agents can handle in the Contact Control Panel (CCP). * @@ -985,7 +989,8 @@ public open class CfnRoutingProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfile.RoutingProfileQueueConfigProperty, - ) : CdkObject(cdkObject), RoutingProfileQueueConfigProperty { + ) : CdkObject(cdkObject), + RoutingProfileQueueConfigProperty { /** * The delay, in seconds, a contact should be in the queue before they are routed to an * available agent. @@ -1114,7 +1119,8 @@ public open class CfnRoutingProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfile.RoutingProfileQueueReferenceProperty, - ) : CdkObject(cdkObject), RoutingProfileQueueReferenceProperty { + ) : CdkObject(cdkObject), + RoutingProfileQueueReferenceProperty { /** * The channels agents can handle in the Contact Control Panel (CCP) for this routing profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfileProps.kt index 2891875b9d..1aff15121a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRoutingProfileProps.kt @@ -304,7 +304,8 @@ public interface CfnRoutingProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRoutingProfileProps, - ) : CdkObject(cdkObject), CfnRoutingProfileProps { + ) : CdkObject(cdkObject), + CfnRoutingProfileProps { /** * Whether agents with this routing profile will have their routing order calculated based on * *time since their last inbound contact* or *longest idle time* . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRule.kt index e7fc517636..01fd56735b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRule.kt @@ -66,6 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .subject("subject") * .build())) + * .submitAutoEvaluationActions(List.of(SubmitAutoEvaluationActionProperty.builder() + * .evaluationFormArn("evaluationFormArn") + * .build())) * .taskActions(List.of(TaskActionProperty.builder() * .contactFlowArn("contactFlowArn") * .name("name") @@ -110,7 +113,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRule( cdkObject: software.amazon.awscdk.services.connect.CfnRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -578,6 +583,9 @@ public open class CfnRule( * // the properties below are optional * .subject("subject") * .build())) + * .submitAutoEvaluationActions(List.of(SubmitAutoEvaluationActionProperty.builder() + * .evaluationFormArn("evaluationFormArn") + * .build())) * .taskActions(List.of(TaskActionProperty.builder() * .contactFlowArn("contactFlowArn") * .name("name") @@ -643,6 +651,13 @@ public open class CfnRule( */ public fun sendNotificationActions(): Any? = unwrap(this).getSendNotificationActions() + /** + * This action will submit an auto contact evaluation when a rule is triggered. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-actions.html#cfn-connect-rule-actions-submitautoevaluationactions) + */ + public fun submitAutoEvaluationActions(): Any? = unwrap(this).getSubmitAutoEvaluationActions() + /** * Information about the task action. * @@ -746,6 +761,24 @@ public open class CfnRule( */ public fun sendNotificationActions(vararg sendNotificationActions: Any) + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + public fun submitAutoEvaluationActions(submitAutoEvaluationActions: IResolvable) + + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + public fun submitAutoEvaluationActions(submitAutoEvaluationActions: List) + + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + public fun submitAutoEvaluationActions(vararg submitAutoEvaluationActions: Any) + /** * @param taskActions Information about the task action. * This field is required if `TriggerEventSource` is one of the following values: @@ -894,6 +927,29 @@ public open class CfnRule( override fun sendNotificationActions(vararg sendNotificationActions: Any): Unit = sendNotificationActions(sendNotificationActions.toList()) + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + override fun submitAutoEvaluationActions(submitAutoEvaluationActions: IResolvable) { + cdkBuilder.submitAutoEvaluationActions(submitAutoEvaluationActions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + override fun submitAutoEvaluationActions(submitAutoEvaluationActions: List) { + cdkBuilder.submitAutoEvaluationActions(submitAutoEvaluationActions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param submitAutoEvaluationActions This action will submit an auto contact evaluation when + * a rule is triggered. + */ + override fun submitAutoEvaluationActions(vararg submitAutoEvaluationActions: Any): Unit = + submitAutoEvaluationActions(submitAutoEvaluationActions.toList()) + /** * @param taskActions Information about the task action. * This field is required if `TriggerEventSource` is one of the following values: @@ -945,7 +1001,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.ActionsProperty, - ) : CdkObject(cdkObject), ActionsProperty { + ) : CdkObject(cdkObject), + ActionsProperty { /** * Information about the contact category action. * @@ -984,6 +1041,14 @@ public open class CfnRule( */ override fun sendNotificationActions(): Any? = unwrap(this).getSendNotificationActions() + /** + * This action will submit an auto contact evaluation when a rule is triggered. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-actions.html#cfn-connect-rule-actions-submitautoevaluationactions) + */ + override fun submitAutoEvaluationActions(): Any? = + unwrap(this).getSubmitAutoEvaluationActions() + /** * Information about the task action. * @@ -1122,7 +1187,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.CreateCaseActionProperty, - ) : CdkObject(cdkObject), CreateCaseActionProperty { + ) : CdkObject(cdkObject), + CreateCaseActionProperty { /** * An array of case fields. * @@ -1209,7 +1275,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.EventBridgeActionProperty, - ) : CdkObject(cdkObject), EventBridgeActionProperty { + ) : CdkObject(cdkObject), + EventBridgeActionProperty { /** * The name. * @@ -1341,7 +1408,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.FieldProperty, - ) : CdkObject(cdkObject), FieldProperty { + ) : CdkObject(cdkObject), + FieldProperty { /** * The Id of the field. * @@ -1490,7 +1558,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.FieldValueProperty, - ) : CdkObject(cdkObject), FieldValueProperty { + ) : CdkObject(cdkObject), + FieldValueProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html#cfn-connect-rule-fieldvalue-booleanvalue) */ @@ -1639,7 +1708,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.NotificationRecipientTypeProperty, - ) : CdkObject(cdkObject), NotificationRecipientTypeProperty { + ) : CdkObject(cdkObject), + NotificationRecipientTypeProperty { /** * The Amazon Resource Name (ARN) of the user account. * @@ -1763,7 +1833,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.ReferenceProperty, - ) : CdkObject(cdkObject), ReferenceProperty { + ) : CdkObject(cdkObject), + ReferenceProperty { /** * The type of the reference. `DATE` must be of type Epoch timestamp. * @@ -1886,7 +1957,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.RuleTriggerEventSourceProperty, - ) : CdkObject(cdkObject), RuleTriggerEventSourceProperty { + ) : CdkObject(cdkObject), + RuleTriggerEventSourceProperty { /** * The name of the event source. * @@ -2119,7 +2191,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.SendNotificationActionProperty, - ) : CdkObject(cdkObject), SendNotificationActionProperty { + ) : CdkObject(cdkObject), + SendNotificationActionProperty { /** * Notification content. * @@ -2186,6 +2259,91 @@ public open class CfnRule( } } + /** + * The definition of submit auto evaluation action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * SubmitAutoEvaluationActionProperty submitAutoEvaluationActionProperty = + * SubmitAutoEvaluationActionProperty.builder() + * .evaluationFormArn("evaluationFormArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-submitautoevaluationaction.html) + */ + public interface SubmitAutoEvaluationActionProperty { + /** + * The Amazon Resource Name (ARN) of the evaluation form. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-submitautoevaluationaction.html#cfn-connect-rule-submitautoevaluationaction-evaluationformarn) + */ + public fun evaluationFormArn(): String + + /** + * A builder for [SubmitAutoEvaluationActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluationFormArn The Amazon Resource Name (ARN) of the evaluation form. + */ + public fun evaluationFormArn(evaluationFormArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty.Builder + = + software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty.builder() + + /** + * @param evaluationFormArn The Amazon Resource Name (ARN) of the evaluation form. + */ + override fun evaluationFormArn(evaluationFormArn: String) { + cdkBuilder.evaluationFormArn(evaluationFormArn) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty, + ) : CdkObject(cdkObject), + SubmitAutoEvaluationActionProperty { + /** + * The Amazon Resource Name (ARN) of the evaluation form. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-submitautoevaluationaction.html#cfn-connect-rule-submitautoevaluationaction-evaluationformarn) + */ + override fun evaluationFormArn(): String = unwrap(this).getEvaluationFormArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SubmitAutoEvaluationActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty): + SubmitAutoEvaluationActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + SubmitAutoEvaluationActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SubmitAutoEvaluationActionProperty): + software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnRule.SubmitAutoEvaluationActionProperty + } + } + /** * Information about the task action. * @@ -2350,7 +2508,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.TaskActionProperty, - ) : CdkObject(cdkObject), TaskActionProperty { + ) : CdkObject(cdkObject), + TaskActionProperty { /** * The Amazon Resource Name (ARN) of the flow. * @@ -2492,7 +2651,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRule.UpdateCaseActionProperty, - ) : CdkObject(cdkObject), UpdateCaseActionProperty { + ) : CdkObject(cdkObject), + UpdateCaseActionProperty { /** * An array of case fields. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRuleProps.kt index fc690b6836..f2633b7197 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnRuleProps.kt @@ -56,6 +56,9 @@ import kotlin.jvm.JvmName * // the properties below are optional * .subject("subject") * .build())) + * .submitAutoEvaluationActions(List.of(SubmitAutoEvaluationActionProperty.builder() + * .evaluationFormArn("evaluationFormArn") + * .build())) * .taskActions(List.of(TaskActionProperty.builder() * .contactFlowArn("contactFlowArn") * .name("name") @@ -323,7 +326,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * A list of actions to be run when the rule is triggered. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKey.kt index 6df97594a3..6045fa8d29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKey.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityKey( cdkObject: software.amazon.awscdk.services.connect.CfnSecurityKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKeyProps.kt index 30148570a5..c0dc740784 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityKeyProps.kt @@ -106,7 +106,8 @@ public interface CfnSecurityKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnSecurityKeyProps, - ) : CdkObject(cdkObject), CfnSecurityKeyProps { + ) : CdkObject(cdkObject), + CfnSecurityKeyProps { /** * The Amazon Resource Name (ARN) of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfile.kt index 498c71c6f6..fcb14d1507 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfile.kt @@ -22,6 +22,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * Creates a security profile. * + * For information about security profiles, see [Security + * Profiles](https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html) in + * the *Amazon Connect Administrator Guide* . For a mapping of the API name and user interface name of + * the security profile permissions, see [List of security profile + * permissions](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-list.html) . + * * Example: * * ``` @@ -57,7 +63,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityProfile( cdkObject: software.amazon.awscdk.services.connect.CfnSecurityProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -797,7 +805,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnSecurityProfile.ApplicationProperty, - ) : CdkObject(cdkObject), ApplicationProperty { + ) : CdkObject(cdkObject), + ApplicationProperty { /** * The permissions that the agent is granted on the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfileProps.kt index c7737ca5c7..ea177f3736 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnSecurityProfileProps.kt @@ -393,7 +393,8 @@ public interface CfnSecurityProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnSecurityProfileProps, - ) : CdkObject(cdkObject), CfnSecurityProfileProps { + ) : CdkObject(cdkObject), + CfnSecurityProfileProps { /** * The identifier of the hierarchy group that a security profile uses to restrict access to * resources in Amazon Connect. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplate.kt index e1ca3c7ec7..75ad725f2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplate.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTaskTemplate( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -765,7 +767,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.ConstraintsProperty, - ) : CdkObject(cdkObject), ConstraintsProperty { + ) : CdkObject(cdkObject), + ConstraintsProperty { /** * Lists the fields that are invisible to agents. * @@ -910,7 +913,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.DefaultFieldValueProperty, - ) : CdkObject(cdkObject), DefaultFieldValueProperty { + ) : CdkObject(cdkObject), + DefaultFieldValueProperty { /** * Default value for the field. * @@ -998,7 +1002,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.FieldIdentifierProperty, - ) : CdkObject(cdkObject), FieldIdentifierProperty { + ) : CdkObject(cdkObject), + FieldIdentifierProperty { /** * The name of the task template field. * @@ -1190,7 +1195,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.FieldProperty, - ) : CdkObject(cdkObject), FieldProperty { + ) : CdkObject(cdkObject), + FieldProperty { /** * The description of the field. * @@ -1326,7 +1332,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.InvisibleFieldInfoProperty, - ) : CdkObject(cdkObject), InvisibleFieldInfoProperty { + ) : CdkObject(cdkObject), + InvisibleFieldInfoProperty { /** * Identifier of the invisible field. * @@ -1437,7 +1444,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.ReadOnlyFieldInfoProperty, - ) : CdkObject(cdkObject), ReadOnlyFieldInfoProperty { + ) : CdkObject(cdkObject), + ReadOnlyFieldInfoProperty { /** * Identifier of the read-only field. * @@ -1548,7 +1556,8 @@ public open class CfnTaskTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplate.RequiredFieldInfoProperty, - ) : CdkObject(cdkObject), RequiredFieldInfoProperty { + ) : CdkObject(cdkObject), + RequiredFieldInfoProperty { /** * The unique identifier for the field. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplateProps.kt index cc45a4d7ad..13cb5651ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTaskTemplateProps.kt @@ -346,7 +346,8 @@ public interface CfnTaskTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTaskTemplateProps, - ) : CdkObject(cdkObject), CfnTaskTemplateProps { + ) : CdkObject(cdkObject), + CfnTaskTemplateProps { /** * A unique, case-sensitive identifier that you provide to ensure the idempotency of the * request. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroup.kt index 475611efa0..4cca4b3a92 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroup.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrafficDistributionGroup( cdkObject: software.amazon.awscdk.services.connect.CfnTrafficDistributionGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroupProps.kt index 690c688202..6d1972160b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnTrafficDistributionGroupProps.kt @@ -144,7 +144,8 @@ public interface CfnTrafficDistributionGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnTrafficDistributionGroupProps, - ) : CdkObject(cdkObject), CfnTrafficDistributionGroupProps { + ) : CdkObject(cdkObject), + CfnTrafficDistributionGroupProps { /** * The description of the traffic distribution group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUser.kt index e5b4f2fdb1..78d995de82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUser.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.connect.CfnUser, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -863,7 +865,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnUser.UserIdentityInfoProperty, - ) : CdkObject(cdkObject), UserIdentityInfoProperty { + ) : CdkObject(cdkObject), + UserIdentityInfoProperty { /** * The email address. * @@ -1083,7 +1086,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnUser.UserPhoneConfigProperty, - ) : CdkObject(cdkObject), UserPhoneConfigProperty { + ) : CdkObject(cdkObject), + UserPhoneConfigProperty { /** * The After Call Work (ACW) timeout setting, in seconds. * @@ -1253,7 +1257,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnUser.UserProficiencyProperty, - ) : CdkObject(cdkObject), UserProficiencyProperty { + ) : CdkObject(cdkObject), + UserProficiencyProperty { /** * The name of user’s proficiency. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroup.kt index 2eb89ebc1b..385db9fa33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroup.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserHierarchyGroup( cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroupProps.kt index 7be036e3d7..54b697a76d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyGroupProps.kt @@ -137,7 +137,8 @@ public interface CfnUserHierarchyGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyGroupProps, - ) : CdkObject(cdkObject), CfnUserHierarchyGroupProps { + ) : CdkObject(cdkObject), + CfnUserHierarchyGroupProps { /** * The Amazon Resource Name (ARN) of the user hierarchy group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructure.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructure.kt new file mode 100644 index 0000000000..bd9d23cf68 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructure.kt @@ -0,0 +1,1301 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.connect + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Contains information about a hierarchy structure. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * CfnUserHierarchyStructure cfnUserHierarchyStructure = + * CfnUserHierarchyStructure.Builder.create(this, "MyCfnUserHierarchyStructure") + * .instanceArn("instanceArn") + * // the properties below are optional + * .userHierarchyStructure(UserHierarchyStructureProperty.builder() + * .levelFive(LevelFiveProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelFour(LevelFourProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelOne(LevelOneProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelThree(LevelThreeProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelTwo(LevelTwoProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html) + */ +public open class CfnUserHierarchyStructure( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnUserHierarchyStructureProps, + ) : + this(software.amazon.awscdk.services.connect.CfnUserHierarchyStructure(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnUserHierarchyStructureProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnUserHierarchyStructureProps.Builder.() -> Unit, + ) : this(scope, id, CfnUserHierarchyStructureProps(props) + ) + + /** + * The identifier for the user hierarchy structure. + */ + public open fun attrUserHierarchyStructureArn(): String = + unwrap(this).getAttrUserHierarchyStructureArn() + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the instance. + */ + public open fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * The Amazon Resource Name (ARN) of the instance. + */ + public open fun instanceArn(`value`: String) { + unwrap(this).setInstanceArn(`value`) + } + + /** + * Contains information about a hierarchy structure. + */ + public open fun userHierarchyStructure(): Any? = unwrap(this).getUserHierarchyStructure() + + /** + * Contains information about a hierarchy structure. + */ + public open fun userHierarchyStructure(`value`: IResolvable) { + unwrap(this).setUserHierarchyStructure(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Contains information about a hierarchy structure. + */ + public open fun userHierarchyStructure(`value`: UserHierarchyStructureProperty) { + unwrap(this).setUserHierarchyStructure(`value`.let(UserHierarchyStructureProperty.Companion::unwrap)) + } + + /** + * Contains information about a hierarchy structure. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a3d9a0a00232bb8aac62303657597d0666b3294d08d99c79fd83730ad2545ccd") + public open + fun userHierarchyStructure(`value`: UserHierarchyStructureProperty.Builder.() -> Unit): Unit = + userHierarchyStructure(UserHierarchyStructureProperty(`value`)) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.connect.CfnUserHierarchyStructure]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-instancearn) + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + public fun instanceArn(instanceArn: String) + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + public fun userHierarchyStructure(userHierarchyStructure: IResolvable) + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + public fun userHierarchyStructure(userHierarchyStructure: UserHierarchyStructureProperty) + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9275a8fda88abe4afc4969810d23a16125bbf41bda2d16dbe10b0c62960632ce") + public + fun userHierarchyStructure(userHierarchyStructure: UserHierarchyStructureProperty.Builder.() -> Unit) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.Builder = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.Builder.create(scope, id) + + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-instancearn) + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + override fun userHierarchyStructure(userHierarchyStructure: IResolvable) { + cdkBuilder.userHierarchyStructure(userHierarchyStructure.let(IResolvable.Companion::unwrap)) + } + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + override fun userHierarchyStructure(userHierarchyStructure: UserHierarchyStructureProperty) { + cdkBuilder.userHierarchyStructure(userHierarchyStructure.let(UserHierarchyStructureProperty.Companion::unwrap)) + } + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9275a8fda88abe4afc4969810d23a16125bbf41bda2d16dbe10b0c62960632ce") + override + fun userHierarchyStructure(userHierarchyStructure: UserHierarchyStructureProperty.Builder.() -> Unit): + Unit = userHierarchyStructure(UserHierarchyStructureProperty(userHierarchyStructure)) + + public fun build(): software.amazon.awscdk.services.connect.CfnUserHierarchyStructure = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnUserHierarchyStructure { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnUserHierarchyStructure(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure): + CfnUserHierarchyStructure = CfnUserHierarchyStructure(cdkObject) + + internal fun unwrap(wrapped: CfnUserHierarchyStructure): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure = wrapped.cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure + } + + /** + * The update for level five. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * LevelFiveProperty levelFiveProperty = LevelFiveProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html) + */ + public interface LevelFiveProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-hierarchylevelarn) + */ + public fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-hierarchylevelid) + */ + public fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-name) + */ + public fun name(): String + + /** + * A builder for [LevelFiveProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + public fun hierarchyLevelArn(hierarchyLevelArn: String) + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + public fun hierarchyLevelId(hierarchyLevelId: String) + + /** + * @param name The name of the hierarchy level. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty.builder() + + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + override fun hierarchyLevelArn(hierarchyLevelArn: String) { + cdkBuilder.hierarchyLevelArn(hierarchyLevelArn) + } + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + override fun hierarchyLevelId(hierarchyLevelId: String) { + cdkBuilder.hierarchyLevelId(hierarchyLevelId) + } + + /** + * @param name The name of the hierarchy level. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty, + ) : CdkObject(cdkObject), + LevelFiveProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-hierarchylevelarn) + */ + override fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-hierarchylevelid) + */ + override fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfive.html#cfn-connect-userhierarchystructure-levelfive-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LevelFiveProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty): + LevelFiveProperty = CdkObjectWrappers.wrap(cdkObject) as? LevelFiveProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LevelFiveProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFiveProperty + } + } + + /** + * The update for level four. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * LevelFourProperty levelFourProperty = LevelFourProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html) + */ + public interface LevelFourProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelarn) + */ + public fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelid) + */ + public fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-name) + */ + public fun name(): String + + /** + * A builder for [LevelFourProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + public fun hierarchyLevelArn(hierarchyLevelArn: String) + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + public fun hierarchyLevelId(hierarchyLevelId: String) + + /** + * @param name The name of the hierarchy level. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty.builder() + + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + override fun hierarchyLevelArn(hierarchyLevelArn: String) { + cdkBuilder.hierarchyLevelArn(hierarchyLevelArn) + } + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + override fun hierarchyLevelId(hierarchyLevelId: String) { + cdkBuilder.hierarchyLevelId(hierarchyLevelId) + } + + /** + * @param name The name of the hierarchy level. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty, + ) : CdkObject(cdkObject), + LevelFourProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelarn) + */ + override fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelid) + */ + override fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LevelFourProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty): + LevelFourProperty = CdkObjectWrappers.wrap(cdkObject) as? LevelFourProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LevelFourProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelFourProperty + } + } + + /** + * Information about level one. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * LevelOneProperty levelOneProperty = LevelOneProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html) + */ + public interface LevelOneProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-hierarchylevelarn) + */ + public fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-hierarchylevelid) + */ + public fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-name) + */ + public fun name(): String + + /** + * A builder for [LevelOneProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + public fun hierarchyLevelArn(hierarchyLevelArn: String) + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + public fun hierarchyLevelId(hierarchyLevelId: String) + + /** + * @param name The name of the hierarchy level. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty.builder() + + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + override fun hierarchyLevelArn(hierarchyLevelArn: String) { + cdkBuilder.hierarchyLevelArn(hierarchyLevelArn) + } + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + override fun hierarchyLevelId(hierarchyLevelId: String) { + cdkBuilder.hierarchyLevelId(hierarchyLevelId) + } + + /** + * @param name The name of the hierarchy level. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty, + ) : CdkObject(cdkObject), + LevelOneProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-hierarchylevelarn) + */ + override fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-hierarchylevelid) + */ + override fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelone.html#cfn-connect-userhierarchystructure-levelone-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LevelOneProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty): + LevelOneProperty = CdkObjectWrappers.wrap(cdkObject) as? LevelOneProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LevelOneProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelOneProperty + } + } + + /** + * The update for level three. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * LevelThreeProperty levelThreeProperty = LevelThreeProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html) + */ + public interface LevelThreeProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-hierarchylevelarn) + */ + public fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-hierarchylevelid) + */ + public fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-name) + */ + public fun name(): String + + /** + * A builder for [LevelThreeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + public fun hierarchyLevelArn(hierarchyLevelArn: String) + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + public fun hierarchyLevelId(hierarchyLevelId: String) + + /** + * @param name The name of the hierarchy level. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty.builder() + + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + override fun hierarchyLevelArn(hierarchyLevelArn: String) { + cdkBuilder.hierarchyLevelArn(hierarchyLevelArn) + } + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + override fun hierarchyLevelId(hierarchyLevelId: String) { + cdkBuilder.hierarchyLevelId(hierarchyLevelId) + } + + /** + * @param name The name of the hierarchy level. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty, + ) : CdkObject(cdkObject), + LevelThreeProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-hierarchylevelarn) + */ + override fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-hierarchylevelid) + */ + override fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelthree.html#cfn-connect-userhierarchystructure-levelthree-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LevelThreeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty): + LevelThreeProperty = CdkObjectWrappers.wrap(cdkObject) as? LevelThreeProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LevelThreeProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelThreeProperty + } + } + + /** + * The update for level two. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * LevelTwoProperty levelTwoProperty = LevelTwoProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html) + */ + public interface LevelTwoProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-hierarchylevelarn) + */ + public fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-hierarchylevelid) + */ + public fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-name) + */ + public fun name(): String + + /** + * A builder for [LevelTwoProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + public fun hierarchyLevelArn(hierarchyLevelArn: String) + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + public fun hierarchyLevelId(hierarchyLevelId: String) + + /** + * @param name The name of the hierarchy level. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty.builder() + + /** + * @param hierarchyLevelArn The Amazon Resource Name (ARN) of the hierarchy level. + */ + override fun hierarchyLevelArn(hierarchyLevelArn: String) { + cdkBuilder.hierarchyLevelArn(hierarchyLevelArn) + } + + /** + * @param hierarchyLevelId The identifier of the hierarchy level. + */ + override fun hierarchyLevelId(hierarchyLevelId: String) { + cdkBuilder.hierarchyLevelId(hierarchyLevelId) + } + + /** + * @param name The name of the hierarchy level. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty, + ) : CdkObject(cdkObject), + LevelTwoProperty { + /** + * The Amazon Resource Name (ARN) of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-hierarchylevelarn) + */ + override fun hierarchyLevelArn(): String? = unwrap(this).getHierarchyLevelArn() + + /** + * The identifier of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-hierarchylevelid) + */ + override fun hierarchyLevelId(): String? = unwrap(this).getHierarchyLevelId() + + /** + * The name of the hierarchy level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-leveltwo.html#cfn-connect-userhierarchystructure-leveltwo-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): LevelTwoProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty): + LevelTwoProperty = CdkObjectWrappers.wrap(cdkObject) as? LevelTwoProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: LevelTwoProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.LevelTwoProperty + } + } + + /** + * Contains information about a hierarchy structure. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * UserHierarchyStructureProperty userHierarchyStructureProperty = + * UserHierarchyStructureProperty.builder() + * .levelFive(LevelFiveProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelFour(LevelFourProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelOne(LevelOneProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelThree(LevelThreeProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelTwo(LevelTwoProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html) + */ + public interface UserHierarchyStructureProperty { + /** + * Information about level five. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelfive) + */ + public fun levelFive(): Any? = unwrap(this).getLevelFive() + + /** + * The update for level four. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelfour) + */ + public fun levelFour(): Any? = unwrap(this).getLevelFour() + + /** + * The update for level one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelone) + */ + public fun levelOne(): Any? = unwrap(this).getLevelOne() + + /** + * The update for level three. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelthree) + */ + public fun levelThree(): Any? = unwrap(this).getLevelThree() + + /** + * The update for level two. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-leveltwo) + */ + public fun levelTwo(): Any? = unwrap(this).getLevelTwo() + + /** + * A builder for [UserHierarchyStructureProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param levelFive Information about level five. + */ + public fun levelFive(levelFive: IResolvable) + + /** + * @param levelFive Information about level five. + */ + public fun levelFive(levelFive: LevelFiveProperty) + + /** + * @param levelFive Information about level five. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1264f1291d0fec3141a0a19a7fc41b13fae34254c3deea908148d07be14afb4b") + public fun levelFive(levelFive: LevelFiveProperty.Builder.() -> Unit) + + /** + * @param levelFour The update for level four. + */ + public fun levelFour(levelFour: IResolvable) + + /** + * @param levelFour The update for level four. + */ + public fun levelFour(levelFour: LevelFourProperty) + + /** + * @param levelFour The update for level four. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1d064776af69b42749acd9cae74bebbf2485de013b0eb55b0befdecdc6429697") + public fun levelFour(levelFour: LevelFourProperty.Builder.() -> Unit) + + /** + * @param levelOne The update for level one. + */ + public fun levelOne(levelOne: IResolvable) + + /** + * @param levelOne The update for level one. + */ + public fun levelOne(levelOne: LevelOneProperty) + + /** + * @param levelOne The update for level one. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("850046aa9fe9762272a56a42b0d9cb33515f4f7be1b6e96448d82633e0cba9e0") + public fun levelOne(levelOne: LevelOneProperty.Builder.() -> Unit) + + /** + * @param levelThree The update for level three. + */ + public fun levelThree(levelThree: IResolvable) + + /** + * @param levelThree The update for level three. + */ + public fun levelThree(levelThree: LevelThreeProperty) + + /** + * @param levelThree The update for level three. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6af44162f6f59e33642862122d40af1233d0823eb5452a4d55d1bfa64b64457a") + public fun levelThree(levelThree: LevelThreeProperty.Builder.() -> Unit) + + /** + * @param levelTwo The update for level two. + */ + public fun levelTwo(levelTwo: IResolvable) + + /** + * @param levelTwo The update for level two. + */ + public fun levelTwo(levelTwo: LevelTwoProperty) + + /** + * @param levelTwo The update for level two. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3cc0aebb642447e5a1cb034d174ec8a54400e4f1c8271fde5ca88e8cfe587a27") + public fun levelTwo(levelTwo: LevelTwoProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty.Builder + = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty.builder() + + /** + * @param levelFive Information about level five. + */ + override fun levelFive(levelFive: IResolvable) { + cdkBuilder.levelFive(levelFive.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelFive Information about level five. + */ + override fun levelFive(levelFive: LevelFiveProperty) { + cdkBuilder.levelFive(levelFive.let(LevelFiveProperty.Companion::unwrap)) + } + + /** + * @param levelFive Information about level five. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1264f1291d0fec3141a0a19a7fc41b13fae34254c3deea908148d07be14afb4b") + override fun levelFive(levelFive: LevelFiveProperty.Builder.() -> Unit): Unit = + levelFive(LevelFiveProperty(levelFive)) + + /** + * @param levelFour The update for level four. + */ + override fun levelFour(levelFour: IResolvable) { + cdkBuilder.levelFour(levelFour.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelFour The update for level four. + */ + override fun levelFour(levelFour: LevelFourProperty) { + cdkBuilder.levelFour(levelFour.let(LevelFourProperty.Companion::unwrap)) + } + + /** + * @param levelFour The update for level four. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1d064776af69b42749acd9cae74bebbf2485de013b0eb55b0befdecdc6429697") + override fun levelFour(levelFour: LevelFourProperty.Builder.() -> Unit): Unit = + levelFour(LevelFourProperty(levelFour)) + + /** + * @param levelOne The update for level one. + */ + override fun levelOne(levelOne: IResolvable) { + cdkBuilder.levelOne(levelOne.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelOne The update for level one. + */ + override fun levelOne(levelOne: LevelOneProperty) { + cdkBuilder.levelOne(levelOne.let(LevelOneProperty.Companion::unwrap)) + } + + /** + * @param levelOne The update for level one. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("850046aa9fe9762272a56a42b0d9cb33515f4f7be1b6e96448d82633e0cba9e0") + override fun levelOne(levelOne: LevelOneProperty.Builder.() -> Unit): Unit = + levelOne(LevelOneProperty(levelOne)) + + /** + * @param levelThree The update for level three. + */ + override fun levelThree(levelThree: IResolvable) { + cdkBuilder.levelThree(levelThree.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelThree The update for level three. + */ + override fun levelThree(levelThree: LevelThreeProperty) { + cdkBuilder.levelThree(levelThree.let(LevelThreeProperty.Companion::unwrap)) + } + + /** + * @param levelThree The update for level three. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6af44162f6f59e33642862122d40af1233d0823eb5452a4d55d1bfa64b64457a") + override fun levelThree(levelThree: LevelThreeProperty.Builder.() -> Unit): Unit = + levelThree(LevelThreeProperty(levelThree)) + + /** + * @param levelTwo The update for level two. + */ + override fun levelTwo(levelTwo: IResolvable) { + cdkBuilder.levelTwo(levelTwo.let(IResolvable.Companion::unwrap)) + } + + /** + * @param levelTwo The update for level two. + */ + override fun levelTwo(levelTwo: LevelTwoProperty) { + cdkBuilder.levelTwo(levelTwo.let(LevelTwoProperty.Companion::unwrap)) + } + + /** + * @param levelTwo The update for level two. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3cc0aebb642447e5a1cb034d174ec8a54400e4f1c8271fde5ca88e8cfe587a27") + override fun levelTwo(levelTwo: LevelTwoProperty.Builder.() -> Unit): Unit = + levelTwo(LevelTwoProperty(levelTwo)) + + public fun build(): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty, + ) : CdkObject(cdkObject), + UserHierarchyStructureProperty { + /** + * Information about level five. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelfive) + */ + override fun levelFive(): Any? = unwrap(this).getLevelFive() + + /** + * The update for level four. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelfour) + */ + override fun levelFour(): Any? = unwrap(this).getLevelFour() + + /** + * The update for level one. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelone) + */ + override fun levelOne(): Any? = unwrap(this).getLevelOne() + + /** + * The update for level three. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-levelthree) + */ + override fun levelThree(): Any? = unwrap(this).getLevelThree() + + /** + * The update for level two. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure-leveltwo) + */ + override fun levelTwo(): Any? = unwrap(this).getLevelTwo() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): UserHierarchyStructureProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty): + UserHierarchyStructureProperty = CdkObjectWrappers.wrap(cdkObject) as? + UserHierarchyStructureProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: UserHierarchyStructureProperty): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructureProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructureProps.kt new file mode 100644 index 0000000000..5d854bbede --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserHierarchyStructureProps.kt @@ -0,0 +1,185 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.connect + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnUserHierarchyStructure`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.connect.*; + * CfnUserHierarchyStructureProps cfnUserHierarchyStructureProps = + * CfnUserHierarchyStructureProps.builder() + * .instanceArn("instanceArn") + * // the properties below are optional + * .userHierarchyStructure(UserHierarchyStructureProperty.builder() + * .levelFive(LevelFiveProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelFour(LevelFourProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelOne(LevelOneProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelThree(LevelThreeProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .levelTwo(LevelTwoProperty.builder() + * .name("name") + * // the properties below are optional + * .hierarchyLevelArn("hierarchyLevelArn") + * .hierarchyLevelId("hierarchyLevelId") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html) + */ +public interface CfnUserHierarchyStructureProps { + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-instancearn) + */ + public fun instanceArn(): String + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + */ + public fun userHierarchyStructure(): Any? = unwrap(this).getUserHierarchyStructure() + + /** + * A builder for [CfnUserHierarchyStructureProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + public fun instanceArn(instanceArn: String) + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + public fun userHierarchyStructure(userHierarchyStructure: IResolvable) + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + public + fun userHierarchyStructure(userHierarchyStructure: CfnUserHierarchyStructure.UserHierarchyStructureProperty) + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fabeaac781800f39a6c23779e69d54b61871d1bea40f2c6fb2223bbfefcf5584") + public + fun userHierarchyStructure(userHierarchyStructure: CfnUserHierarchyStructure.UserHierarchyStructureProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps.Builder = + software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps.builder() + + /** + * @param instanceArn The Amazon Resource Name (ARN) of the instance. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + override fun userHierarchyStructure(userHierarchyStructure: IResolvable) { + cdkBuilder.userHierarchyStructure(userHierarchyStructure.let(IResolvable.Companion::unwrap)) + } + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + override + fun userHierarchyStructure(userHierarchyStructure: CfnUserHierarchyStructure.UserHierarchyStructureProperty) { + cdkBuilder.userHierarchyStructure(userHierarchyStructure.let(CfnUserHierarchyStructure.UserHierarchyStructureProperty.Companion::unwrap)) + } + + /** + * @param userHierarchyStructure Contains information about a hierarchy structure. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fabeaac781800f39a6c23779e69d54b61871d1bea40f2c6fb2223bbfefcf5584") + override + fun userHierarchyStructure(userHierarchyStructure: CfnUserHierarchyStructure.UserHierarchyStructureProperty.Builder.() -> Unit): + Unit = + userHierarchyStructure(CfnUserHierarchyStructure.UserHierarchyStructureProperty(userHierarchyStructure)) + + public fun build(): software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps, + ) : CdkObject(cdkObject), + CfnUserHierarchyStructureProps { + /** + * The Amazon Resource Name (ARN) of the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-instancearn) + */ + override fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * Contains information about a hierarchy structure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-userhierarchystructure.html#cfn-connect-userhierarchystructure-userhierarchystructure) + */ + override fun userHierarchyStructure(): Any? = unwrap(this).getUserHierarchyStructure() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnUserHierarchyStructureProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps): + CfnUserHierarchyStructureProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnUserHierarchyStructureProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnUserHierarchyStructureProps): + software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.connect.CfnUserHierarchyStructureProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserProps.kt index e37efb1e45..99a991e523 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnUserProps.kt @@ -391,7 +391,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * The identifier of the user account in the directory used for identity management. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnView.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnView.kt index c84c658ef9..850d8c317a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnView.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnView.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnView( cdkObject: software.amazon.awscdk.services.connect.CfnView, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewProps.kt index 944ba6d7fc..0b6bf925b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewProps.kt @@ -187,7 +187,8 @@ public interface CfnViewProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnViewProps, - ) : CdkObject(cdkObject), CfnViewProps { + ) : CdkObject(cdkObject), + CfnViewProps { /** * A list of actions possible from the view. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersion.kt index 5acd28fc1c..f0fa0913bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersion.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnViewVersion( cdkObject: software.amazon.awscdk.services.connect.CfnViewVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersionProps.kt index d0ec070701..5287ffca08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connect/CfnViewVersionProps.kt @@ -111,7 +111,8 @@ public interface CfnViewVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connect.CfnViewVersionProps, - ) : CdkObject(cdkObject), CfnViewVersionProps { + ) : CdkObject(cdkObject), + CfnViewVersionProps { /** * The description of the view version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaign.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaign.kt index b2e673463d..4cc556e2c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaign.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaign.kt @@ -72,7 +72,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCampaign( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -493,7 +495,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.AgentlessDialerConfigProperty, - ) : CdkObject(cdkObject), AgentlessDialerConfigProperty { + ) : CdkObject(cdkObject), + AgentlessDialerConfigProperty { /** * The allocation of dialing capacity between multiple active campaigns. * @@ -621,7 +624,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty, - ) : CdkObject(cdkObject), AnswerMachineDetectionConfigProperty { + ) : CdkObject(cdkObject), + AnswerMachineDetectionConfigProperty { /** * Whether waiting for answer machine prompt is enabled. * @@ -850,7 +854,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.DialerConfigProperty, - ) : CdkObject(cdkObject), DialerConfigProperty { + ) : CdkObject(cdkObject), + DialerConfigProperty { /** * The configuration of the agentless dialer. * @@ -1047,7 +1052,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.OutboundCallConfigProperty, - ) : CdkObject(cdkObject), OutboundCallConfigProperty { + ) : CdkObject(cdkObject), + OutboundCallConfigProperty { /** * Whether answering machine detection has been enabled. * @@ -1177,7 +1183,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.PredictiveDialerConfigProperty, - ) : CdkObject(cdkObject), PredictiveDialerConfigProperty { + ) : CdkObject(cdkObject), + PredictiveDialerConfigProperty { /** * Bandwidth allocation for the predictive dialer. * @@ -1290,7 +1297,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaign.ProgressiveDialerConfigProperty, - ) : CdkObject(cdkObject), ProgressiveDialerConfigProperty { + ) : CdkObject(cdkObject), + ProgressiveDialerConfigProperty { /** * Bandwidth allocation for the progressive dialer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaignProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaignProps.kt index b230bbc738..5c377ef02e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaignProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/connectcampaigns/CfnCampaignProps.kt @@ -246,7 +246,8 @@ public interface CfnCampaignProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.connectcampaigns.CfnCampaignProps, - ) : CdkObject(cdkObject), CfnCampaignProps { + ) : CdkObject(cdkObject), + CfnCampaignProps { /** * The Amazon Resource Name (ARN) of the Amazon Connect instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaseline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaseline.kt index 8b9a2c78ba..f97c013155 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaseline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaseline.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnabledBaseline( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledBaseline, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -433,7 +435,8 @@ public open class CfnEnabledBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledBaseline.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * A string denoting the parameter key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaselineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaselineProps.kt index 52e85476a5..5ca67517c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaselineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledBaselineProps.kt @@ -195,7 +195,8 @@ public interface CfnEnabledBaselineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledBaselineProps, - ) : CdkObject(cdkObject), CfnEnabledBaselineProps { + ) : CdkObject(cdkObject), + CfnEnabledBaselineProps { /** * The specific `Baseline` enabled as part of the `EnabledBaseline` resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControl.kt index aea1bd88f6..364c8f8e5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControl.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnabledControl( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledControl, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -417,7 +419,8 @@ public open class CfnEnabledControl( private class Wrapper( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledControl.EnabledControlParameterProperty, - ) : CdkObject(cdkObject), EnabledControlParameterProperty { + ) : CdkObject(cdkObject), + EnabledControlParameterProperty { /** * The key of a key/value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControlProps.kt index 533bc86053..443218a743 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnEnabledControlProps.kt @@ -182,7 +182,8 @@ public interface CfnEnabledControlProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.controltower.CfnEnabledControlProps, - ) : CdkObject(cdkObject), CfnEnabledControlProps { + ) : CdkObject(cdkObject), + CfnEnabledControlProps { /** * The ARN of the control. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZone.kt index 77fb28c15d..68dcc38034 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZone.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLandingZone( cdkObject: software.amazon.awscdk.services.controltower.CfnLandingZone, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZoneProps.kt index cd2fe06276..4a714075c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/controltower/CfnLandingZoneProps.kt @@ -120,7 +120,8 @@ public interface CfnLandingZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.controltower.CfnLandingZoneProps, - ) : CdkObject(cdkObject), CfnLandingZoneProps { + ) : CdkObject(cdkObject), + CfnLandingZoneProps { /** * The landing zone manifest JSON text file that specifies the landing zone configurations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinition.kt index 00676268ac..e90c88edf3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinition.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReportDefinition( cdkObject: software.amazon.awscdk.services.cur.CfnReportDefinition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinitionProps.kt index aae3f5375b..7debf81e34 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cur/CfnReportDefinitionProps.kt @@ -357,7 +357,8 @@ public interface CfnReportDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.cur.CfnReportDefinitionProps, - ) : CdkObject(cdkObject), CfnReportDefinitionProps { + ) : CdkObject(cdkObject), + CfnReportDefinitionProps { /** * A list of manifests that you want AWS to create for this report. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinition.kt index dd590694b1..5a2b0c6d4c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinition.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCalculatedAttributeDefinition( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -647,7 +649,8 @@ public open class CfnCalculatedAttributeDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.AttributeDetailsProperty, - ) : CdkObject(cdkObject), AttributeDetailsProperty { + ) : CdkObject(cdkObject), + AttributeDetailsProperty { /** * Mathematical expression and a list of attribute items specified in that expression. * @@ -740,7 +743,8 @@ public open class CfnCalculatedAttributeDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.AttributeItemProperty, - ) : CdkObject(cdkObject), AttributeItemProperty { + ) : CdkObject(cdkObject), + AttributeItemProperty { /** * The unique name of the calculated attribute. * @@ -922,7 +926,8 @@ public open class CfnCalculatedAttributeDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.ConditionsProperty, - ) : CdkObject(cdkObject), ConditionsProperty { + ) : CdkObject(cdkObject), + ConditionsProperty { /** * The number of profile objects used for the calculated attribute. * @@ -1038,7 +1043,8 @@ public open class CfnCalculatedAttributeDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty, - ) : CdkObject(cdkObject), RangeProperty { + ) : CdkObject(cdkObject), + RangeProperty { /** * The unit of time. * @@ -1146,7 +1152,8 @@ public open class CfnCalculatedAttributeDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.ThresholdProperty, - ) : CdkObject(cdkObject), ThresholdProperty { + ) : CdkObject(cdkObject), + ThresholdProperty { /** * The operator of the threshold. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinitionProps.kt index e5510f09ea..ef4c20c769 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnCalculatedAttributeDefinitionProps.kt @@ -311,7 +311,8 @@ public interface CfnCalculatedAttributeDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinitionProps, - ) : CdkObject(cdkObject), CfnCalculatedAttributeDefinitionProps { + ) : CdkObject(cdkObject), + CfnCalculatedAttributeDefinitionProps { /** * Mathematical expression and a list of attribute items specified in that expression. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomain.kt index 934ea027b0..ccfc2bfa19 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomain.kt @@ -105,7 +105,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -790,7 +792,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.AttributeTypesSelectorProperty, - ) : CdkObject(cdkObject), AttributeTypesSelectorProperty { + ) : CdkObject(cdkObject), + AttributeTypesSelectorProperty { /** * The `Address` type. * @@ -1092,7 +1095,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.AutoMergingProperty, - ) : CdkObject(cdkObject), AutoMergingProperty { + ) : CdkObject(cdkObject), + AutoMergingProperty { /** * Determines how the auto-merging process should resolve conflicts between different * profiles. @@ -1235,7 +1239,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.ConflictResolutionProperty, - ) : CdkObject(cdkObject), ConflictResolutionProperty { + ) : CdkObject(cdkObject), + ConflictResolutionProperty { /** * How the auto-merging process should resolve conflicts between different profiles. * @@ -1350,7 +1355,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.ConsolidationProperty, - ) : CdkObject(cdkObject), ConsolidationProperty { + ) : CdkObject(cdkObject), + ConsolidationProperty { /** * A list of matching criteria. * @@ -1500,7 +1506,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.DomainStatsProperty, - ) : CdkObject(cdkObject), DomainStatsProperty { + ) : CdkObject(cdkObject), + DomainStatsProperty { /** * The number of profiles that you are currently paying for in the domain. * @@ -1638,7 +1645,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.ExportingConfigProperty, - ) : CdkObject(cdkObject), ExportingConfigProperty { + ) : CdkObject(cdkObject), + ExportingConfigProperty { /** * The S3 location where Identity Resolution Jobs write result files. * @@ -1739,7 +1747,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.JobScheduleProperty, - ) : CdkObject(cdkObject), JobScheduleProperty { + ) : CdkObject(cdkObject), + JobScheduleProperty { /** * The day when the Identity Resolution Job should run every week. * @@ -2015,7 +2024,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.MatchingProperty, - ) : CdkObject(cdkObject), MatchingProperty { + ) : CdkObject(cdkObject), + MatchingProperty { /** * Configuration information about the auto-merging process. * @@ -2133,7 +2143,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.MatchingRuleProperty, - ) : CdkObject(cdkObject), MatchingRuleProperty { + ) : CdkObject(cdkObject), + MatchingRuleProperty { /** * A single rule level of the `MatchRules` . * @@ -2542,7 +2553,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.RuleBasedMatchingProperty, - ) : CdkObject(cdkObject), RuleBasedMatchingProperty { + ) : CdkObject(cdkObject), + RuleBasedMatchingProperty { /** * Configures information about the `AttributeTypesSelector` where the rule-based identity * resolution uses to match profiles. @@ -2707,7 +2719,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomain.S3ExportingConfigProperty, - ) : CdkObject(cdkObject), S3ExportingConfigProperty { + ) : CdkObject(cdkObject), + S3ExportingConfigProperty { /** * The name of the S3 bucket where Identity Resolution Jobs write result files. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomainProps.kt index da919da5e6..bdeb7cc7c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnDomainProps.kt @@ -336,7 +336,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * The URL of the SQS dead letter queue, which is used for reporting errors associated with * ingesting data from third party applications. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStream.kt index 02f4dfe506..8c30e082d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStream.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventStream( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnEventStream, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -369,7 +371,8 @@ public open class CfnEventStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnEventStream.DestinationDetailsProperty, - ) : CdkObject(cdkObject), DestinationDetailsProperty { + ) : CdkObject(cdkObject), + DestinationDetailsProperty { /** * The status of enabling the Kinesis stream as a destination for export. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStreamProps.kt index 0529f8dbd2..9f673c614e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnEventStreamProps.kt @@ -141,7 +141,8 @@ public interface CfnEventStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnEventStreamProps, - ) : CdkObject(cdkObject), CfnEventStreamProps { + ) : CdkObject(cdkObject), + CfnEventStreamProps { /** * The unique name of the domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegration.kt index d0a9efd61f..e5e0c0e7e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegration.kt @@ -120,7 +120,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIntegration( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -643,7 +645,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.ConnectorOperatorProperty, - ) : CdkObject(cdkObject), ConnectorOperatorProperty { + ) : CdkObject(cdkObject), + ConnectorOperatorProperty { /** * The operation to be performed on the provided Marketo source fields. * @@ -1012,7 +1015,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.FlowDefinitionProperty, - ) : CdkObject(cdkObject), FlowDefinitionProperty { + ) : CdkObject(cdkObject), + FlowDefinitionProperty { /** * A description of the flow you want to create. * @@ -1137,7 +1141,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.IncrementalPullConfigProperty, - ) : CdkObject(cdkObject), IncrementalPullConfigProperty { + ) : CdkObject(cdkObject), + IncrementalPullConfigProperty { /** * A field that specifies the date time or timestamp field as the criteria to use when * importing incremental records from the source. @@ -1221,7 +1226,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.MarketoSourcePropertiesProperty, - ) : CdkObject(cdkObject), MarketoSourcePropertiesProperty { + ) : CdkObject(cdkObject), + MarketoSourcePropertiesProperty { /** * The object specified in the Marketo flow source. * @@ -1324,7 +1330,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.ObjectTypeMappingProperty, - ) : CdkObject(cdkObject), ObjectTypeMappingProperty { + ) : CdkObject(cdkObject), + ObjectTypeMappingProperty { /** * The key. * @@ -1436,7 +1443,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.S3SourcePropertiesProperty, - ) : CdkObject(cdkObject), S3SourcePropertiesProperty { + ) : CdkObject(cdkObject), + S3SourcePropertiesProperty { /** * The Amazon S3 bucket name where the source files are stored. * @@ -1600,7 +1608,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.SalesforceSourcePropertiesProperty, - ) : CdkObject(cdkObject), SalesforceSourcePropertiesProperty { + ) : CdkObject(cdkObject), + SalesforceSourcePropertiesProperty { /** * The flag that enables dynamic fetching of new (recently added) fields in the Salesforce * objects while running a flow. @@ -1836,7 +1845,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.ScheduledTriggerPropertiesProperty, - ) : CdkObject(cdkObject), ScheduledTriggerPropertiesProperty { + ) : CdkObject(cdkObject), + ScheduledTriggerPropertiesProperty { /** * Specifies whether a scheduled flow has an incremental data transfer or a complete data * transfer for each flow run. @@ -1967,7 +1977,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.ServiceNowSourcePropertiesProperty, - ) : CdkObject(cdkObject), ServiceNowSourcePropertiesProperty { + ) : CdkObject(cdkObject), + ServiceNowSourcePropertiesProperty { /** * The object specified in the ServiceNow flow source. * @@ -2295,7 +2306,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.SourceConnectorPropertiesProperty, - ) : CdkObject(cdkObject), SourceConnectorPropertiesProperty { + ) : CdkObject(cdkObject), + SourceConnectorPropertiesProperty { /** * The properties that are applied when Marketo is being used as a source. * @@ -2582,7 +2594,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.SourceFlowConfigProperty, - ) : CdkObject(cdkObject), SourceFlowConfigProperty { + ) : CdkObject(cdkObject), + SourceFlowConfigProperty { /** * The name of the Amazon AppFlow connector profile. * @@ -2712,7 +2725,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.TaskPropertiesMapProperty, - ) : CdkObject(cdkObject), TaskPropertiesMapProperty { + ) : CdkObject(cdkObject), + TaskPropertiesMapProperty { /** * The task property key. * @@ -2965,7 +2979,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.TaskProperty, - ) : CdkObject(cdkObject), TaskProperty { + ) : CdkObject(cdkObject), + TaskProperty { /** * The operation to be performed on the provided source fields. * @@ -3155,7 +3170,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.TriggerConfigProperty, - ) : CdkObject(cdkObject), TriggerConfigProperty { + ) : CdkObject(cdkObject), + TriggerConfigProperty { /** * Specifies the configuration details of a schedule-triggered flow that you define. * @@ -3292,7 +3308,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.TriggerPropertiesProperty, - ) : CdkObject(cdkObject), TriggerPropertiesProperty { + ) : CdkObject(cdkObject), + TriggerPropertiesProperty { /** * Specifies the configuration details of a schedule-triggered flow that you define. * @@ -3375,7 +3392,8 @@ public open class CfnIntegration( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegration.ZendeskSourcePropertiesProperty, - ) : CdkObject(cdkObject), ZendeskSourcePropertiesProperty { + ) : CdkObject(cdkObject), + ZendeskSourcePropertiesProperty { /** * The object specified in the Zendesk flow source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegrationProps.kt index efd11d9d42..1234838570 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnIntegrationProps.kt @@ -309,7 +309,8 @@ public interface CfnIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnIntegrationProps, - ) : CdkObject(cdkObject), CfnIntegrationProps { + ) : CdkObject(cdkObject), + CfnIntegrationProps { /** * The unique name of the domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectType.kt index 0a1b6e1d1d..1836e9101a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectType.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnObjectType( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -770,7 +772,8 @@ public open class CfnObjectType( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectType.FieldMapProperty, - ) : CdkObject(cdkObject), FieldMapProperty { + ) : CdkObject(cdkObject), + FieldMapProperty { /** * Name of the field. * @@ -904,7 +907,8 @@ public open class CfnObjectType( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectType.KeyMapProperty, - ) : CdkObject(cdkObject), KeyMapProperty { + ) : CdkObject(cdkObject), + KeyMapProperty { /** * Name of the key. * @@ -1048,7 +1052,8 @@ public open class CfnObjectType( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectType.ObjectTypeFieldProperty, - ) : CdkObject(cdkObject), ObjectTypeFieldProperty { + ) : CdkObject(cdkObject), + ObjectTypeFieldProperty { /** * The content type of the field. * @@ -1231,7 +1236,8 @@ public open class CfnObjectType( private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectType.ObjectTypeKeyProperty, - ) : CdkObject(cdkObject), ObjectTypeKeyProperty { + ) : CdkObject(cdkObject), + ObjectTypeKeyProperty { /** * The reference for the key name of the fields map. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectTypeProps.kt index d9287a718b..7476f7277e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/customerprofiles/CfnObjectTypeProps.kt @@ -391,7 +391,8 @@ public interface CfnObjectTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.customerprofiles.CfnObjectTypeProps, - ) : CdkObject(cdkObject), CfnObjectTypeProps { + ) : CdkObject(cdkObject), + CfnObjectTypeProps { /** * Indicates whether a profile should be created when data is received if one doesn’t exist for * an object of this type. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDataset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDataset.kt index 8c37eb60d7..2d621903f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDataset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDataset.kt @@ -128,7 +128,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataset( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -684,7 +686,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.CsvOptionsProperty, - ) : CdkObject(cdkObject), CsvOptionsProperty { + ) : CdkObject(cdkObject), + CsvOptionsProperty { /** * A single character that specifies the delimiter being used in the CSV file. * @@ -879,7 +882,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.DataCatalogInputDefinitionProperty, - ) : CdkObject(cdkObject), DataCatalogInputDefinitionProperty { + ) : CdkObject(cdkObject), + DataCatalogInputDefinitionProperty { /** * The unique identifier of the AWS account that holds the Data Catalog that stores the data. * @@ -1090,7 +1094,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.DatabaseInputDefinitionProperty, - ) : CdkObject(cdkObject), DatabaseInputDefinitionProperty { + ) : CdkObject(cdkObject), + DatabaseInputDefinitionProperty { /** * The table within the target database. * @@ -1375,7 +1380,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.DatasetParameterProperty, - ) : CdkObject(cdkObject), DatasetParameterProperty { + ) : CdkObject(cdkObject), + DatasetParameterProperty { /** * Optional boolean value that defines whether the captured value of this parameter should be * loaded as an additional column in the dataset. @@ -1552,7 +1558,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.DatetimeOptionsProperty, - ) : CdkObject(cdkObject), DatetimeOptionsProperty { + ) : CdkObject(cdkObject), + DatetimeOptionsProperty { /** * Required option, that defines the datetime format used for a date parameter in the Amazon * S3 path. @@ -1760,7 +1767,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.ExcelOptionsProperty, - ) : CdkObject(cdkObject), ExcelOptionsProperty { + ) : CdkObject(cdkObject), + ExcelOptionsProperty { /** * A variable that specifies whether the first row in the file is parsed as the header. * @@ -1912,7 +1920,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.FilesLimitProperty, - ) : CdkObject(cdkObject), FilesLimitProperty { + ) : CdkObject(cdkObject), + FilesLimitProperty { /** * The number of Amazon S3 files to select. * @@ -2074,7 +2083,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.FilterExpressionProperty, - ) : CdkObject(cdkObject), FilterExpressionProperty { + ) : CdkObject(cdkObject), + FilterExpressionProperty { /** * The expression which includes condition names followed by substitution variables, possibly * grouped and combined with other conditions. @@ -2187,7 +2197,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.FilterValueProperty, - ) : CdkObject(cdkObject), FilterValueProperty { + ) : CdkObject(cdkObject), + FilterValueProperty { /** * The value to be associated with the substitution variable. * @@ -2405,7 +2416,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.FormatOptionsProperty, - ) : CdkObject(cdkObject), FormatOptionsProperty { + ) : CdkObject(cdkObject), + FormatOptionsProperty { /** * Options that define how CSV input is to be interpreted by DataBrew. * @@ -2707,7 +2719,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.InputProperty, - ) : CdkObject(cdkObject), InputProperty { + ) : CdkObject(cdkObject), + InputProperty { /** * The AWS Glue Data Catalog parameters for the data. * @@ -2823,7 +2836,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.JsonOptionsProperty, - ) : CdkObject(cdkObject), JsonOptionsProperty { + ) : CdkObject(cdkObject), + JsonOptionsProperty { /** * A value that specifies whether JSON input contains embedded new line characters. * @@ -2907,7 +2921,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.MetadataProperty, - ) : CdkObject(cdkObject), MetadataProperty { + ) : CdkObject(cdkObject), + MetadataProperty { /** * The Amazon Resource Name (ARN) associated with the dataset. * @@ -3160,7 +3175,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.PathOptionsProperty, - ) : CdkObject(cdkObject), PathOptionsProperty { + ) : CdkObject(cdkObject), + PathOptionsProperty { /** * If provided, this structure imposes a limit on a number of files that should be selected. * @@ -3323,7 +3339,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.PathParameterProperty, - ) : CdkObject(cdkObject), PathParameterProperty { + ) : CdkObject(cdkObject), + PathParameterProperty { /** * The path parameter definition. * @@ -3432,7 +3449,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDataset.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The Amazon S3 bucket name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDatasetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDatasetProps.kt index 214bf9b467..d40095e6c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDatasetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnDatasetProps.kt @@ -358,7 +358,8 @@ public interface CfnDatasetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnDatasetProps, - ) : CdkObject(cdkObject), CfnDatasetProps { + ) : CdkObject(cdkObject), + CfnDatasetProps { /** * The file format of a dataset that is created from an Amazon S3 file or folder. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJob.kt index 91d48e3081..4abfd87a0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJob.kt @@ -171,7 +171,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJob( cdkObject: software.amazon.awscdk.services.databrew.CfnJob, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1451,7 +1453,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.AllowedStatisticsProperty, - ) : CdkObject(cdkObject), AllowedStatisticsProperty { + ) : CdkObject(cdkObject), + AllowedStatisticsProperty { /** * One or more column statistics to allow for columns that contain detected entities. * @@ -1553,7 +1556,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.ColumnSelectorProperty, - ) : CdkObject(cdkObject), ColumnSelectorProperty { + ) : CdkObject(cdkObject), + ColumnSelectorProperty { /** * The name of a column from a dataset. * @@ -1749,7 +1753,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.ColumnStatisticsConfigurationProperty, - ) : CdkObject(cdkObject), ColumnStatisticsConfigurationProperty { + ) : CdkObject(cdkObject), + ColumnStatisticsConfigurationProperty { /** * List of column selectors. * @@ -1845,7 +1850,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.CsvOutputOptionsProperty, - ) : CdkObject(cdkObject), CsvOutputOptionsProperty { + ) : CdkObject(cdkObject), + CsvOutputOptionsProperty { /** * A single character that specifies the delimiter used to create CSV job output. * @@ -2138,7 +2144,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.DataCatalogOutputProperty, - ) : CdkObject(cdkObject), DataCatalogOutputProperty { + ) : CdkObject(cdkObject), + DataCatalogOutputProperty { /** * The unique identifier of the AWS account that holds the Data Catalog that stores the data. * @@ -2351,7 +2358,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.DatabaseOutputProperty, - ) : CdkObject(cdkObject), DatabaseOutputProperty { + ) : CdkObject(cdkObject), + DatabaseOutputProperty { /** * Represents options that specify how and where DataBrew writes the database output generated * by recipe jobs. @@ -2512,7 +2520,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.DatabaseTableOutputOptionsProperty, - ) : CdkObject(cdkObject), DatabaseTableOutputOptionsProperty { + ) : CdkObject(cdkObject), + DatabaseTableOutputOptionsProperty { /** * A prefix for the name of a table DataBrew will create in the database. * @@ -2793,7 +2802,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.EntityDetectorConfigurationProperty, - ) : CdkObject(cdkObject), EntityDetectorConfigurationProperty { + ) : CdkObject(cdkObject), + EntityDetectorConfigurationProperty { /** * Configuration of statistics that are allowed to be run on columns that contain detected * entities. @@ -2963,7 +2973,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.JobSampleProperty, - ) : CdkObject(cdkObject), JobSampleProperty { + ) : CdkObject(cdkObject), + JobSampleProperty { /** * A value that determines whether the profile job is run on the entire dataset or a specified * number of rows. @@ -3098,7 +3109,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.OutputFormatOptionsProperty, - ) : CdkObject(cdkObject), OutputFormatOptionsProperty { + ) : CdkObject(cdkObject), + OutputFormatOptionsProperty { /** * Represents a set of options that define the structure of comma-separated value (CSV) job * output. @@ -3218,7 +3230,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.OutputLocationProperty, - ) : CdkObject(cdkObject), OutputLocationProperty { + ) : CdkObject(cdkObject), + OutputLocationProperty { /** * The Amazon S3 bucket name. * @@ -3530,7 +3543,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * The compression algorithm used to compress the output text of the job. * @@ -3926,7 +3940,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.ProfileConfigurationProperty, - ) : CdkObject(cdkObject), ProfileConfigurationProperty { + ) : CdkObject(cdkObject), + ProfileConfigurationProperty { /** * List of configurations for column evaluations. * @@ -4063,7 +4078,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.RecipeProperty, - ) : CdkObject(cdkObject), RecipeProperty { + ) : CdkObject(cdkObject), + RecipeProperty { /** * The unique name for the recipe. * @@ -4190,7 +4206,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The Amazon S3 bucket name. * @@ -4325,7 +4342,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.S3TableOutputOptionsProperty, - ) : CdkObject(cdkObject), S3TableOutputOptionsProperty { + ) : CdkObject(cdkObject), + S3TableOutputOptionsProperty { /** * Represents an Amazon S3 location (bucket name and object key) where DataBrew can write * output from a job. @@ -4439,7 +4457,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.StatisticOverrideProperty, - ) : CdkObject(cdkObject), StatisticOverrideProperty { + ) : CdkObject(cdkObject), + StatisticOverrideProperty { /** * A map that includes overrides of an evaluation’s parameters. * @@ -4595,7 +4614,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.StatisticsConfigurationProperty, - ) : CdkObject(cdkObject), StatisticsConfigurationProperty { + ) : CdkObject(cdkObject), + StatisticsConfigurationProperty { /** * List of included evaluations. * @@ -4724,7 +4744,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJob.ValidationConfigurationProperty, - ) : CdkObject(cdkObject), ValidationConfigurationProperty { + ) : CdkObject(cdkObject), + ValidationConfigurationProperty { /** * The Amazon Resource Name (ARN) for the ruleset to be validated in the profile job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJobProps.kt index 2f6ee8ac19..07c4c4e8a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnJobProps.kt @@ -862,7 +862,8 @@ public interface CfnJobProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnJobProps, - ) : CdkObject(cdkObject), CfnJobProps { + ) : CdkObject(cdkObject), + CfnJobProps { /** * One or more artifacts that represent the AWS Glue Data Catalog output from running the job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProject.kt index 24dc95ba34..361994b306 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProject.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.databrew.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -469,7 +471,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnProject.SampleProperty, - ) : CdkObject(cdkObject), SampleProperty { + ) : CdkObject(cdkObject), + SampleProperty { /** * The number of rows in the sample. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProjectProps.kt index 9399a0b745..a9ee5e56a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnProjectProps.kt @@ -227,7 +227,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The dataset that the project is to act upon. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipe.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipe.kt index b88441666e..851102ea27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipe.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipe.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRecipe( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -405,7 +407,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * The name of a valid DataBrew transformation to be performed on the data. * @@ -550,7 +553,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.ConditionExpressionProperty, - ) : CdkObject(cdkObject), ConditionExpressionProperty { + ) : CdkObject(cdkObject), + ConditionExpressionProperty { /** * A specific condition to apply to a recipe action. * @@ -754,7 +758,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.DataCatalogInputDefinitionProperty, - ) : CdkObject(cdkObject), DataCatalogInputDefinitionProperty { + ) : CdkObject(cdkObject), + DataCatalogInputDefinitionProperty { /** * The unique identifier of the AWS account that holds the Data Catalog that stores the data. * @@ -951,7 +956,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.InputProperty, - ) : CdkObject(cdkObject), InputProperty { + ) : CdkObject(cdkObject), + InputProperty { /** * The AWS Glue Data Catalog parameters for the data. * @@ -3227,7 +3233,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.RecipeParametersProperty, - ) : CdkObject(cdkObject), RecipeParametersProperty { + ) : CdkObject(cdkObject), + RecipeParametersProperty { /** * The name of an aggregation function to apply. * @@ -4147,7 +4154,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.RecipeStepProperty, - ) : CdkObject(cdkObject), RecipeStepProperty { + ) : CdkObject(cdkObject), + RecipeStepProperty { /** * The particular action to be performed in the recipe step. * @@ -4261,7 +4269,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The Amazon S3 bucket name. * @@ -4440,7 +4449,8 @@ public open class CfnRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipe.SecondaryInputProperty, - ) : CdkObject(cdkObject), SecondaryInputProperty { + ) : CdkObject(cdkObject), + SecondaryInputProperty { /** * The AWS Glue Data Catalog parameters for the data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipeProps.kt index 291b729736..177bd31a98 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRecipeProps.kt @@ -173,7 +173,8 @@ public interface CfnRecipeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRecipeProps, - ) : CdkObject(cdkObject), CfnRecipeProps { + ) : CdkObject(cdkObject), + CfnRecipeProps { /** * The description of the recipe. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRuleset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRuleset.kt index 053deaafa3..34f57d6feb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRuleset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRuleset.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRuleset( cdkObject: software.amazon.awscdk.services.databrew.CfnRuleset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -446,7 +448,8 @@ public open class CfnRuleset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRuleset.ColumnSelectorProperty, - ) : CdkObject(cdkObject), ColumnSelectorProperty { + ) : CdkObject(cdkObject), + ColumnSelectorProperty { /** * The name of a column from a dataset. * @@ -827,7 +830,8 @@ public open class CfnRuleset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRuleset.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The expression which includes column references, condition names followed by variable * references, possibly grouped and combined with other conditions. @@ -984,7 +988,8 @@ public open class CfnRuleset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRuleset.SubstitutionValueProperty, - ) : CdkObject(cdkObject), SubstitutionValueProperty { + ) : CdkObject(cdkObject), + SubstitutionValueProperty { /** * Value or column name. * @@ -1125,7 +1130,8 @@ public open class CfnRuleset( private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRuleset.ThresholdProperty, - ) : CdkObject(cdkObject), ThresholdProperty { + ) : CdkObject(cdkObject), + ThresholdProperty { /** * The type of a threshold. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRulesetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRulesetProps.kt index de29b90f1b..219a27f85d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRulesetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnRulesetProps.kt @@ -217,7 +217,8 @@ public interface CfnRulesetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnRulesetProps, - ) : CdkObject(cdkObject), CfnRulesetProps { + ) : CdkObject(cdkObject), + CfnRulesetProps { /** * The description of the ruleset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnSchedule.kt index 88ee233663..7af1109ab2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnSchedule.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchedule( cdkObject: software.amazon.awscdk.services.databrew.CfnSchedule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnScheduleProps.kt index eb505bc2f2..025ee537f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/databrew/CfnScheduleProps.kt @@ -156,7 +156,8 @@ public interface CfnScheduleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.databrew.CfnScheduleProps, - ) : CdkObject(cdkObject), CfnScheduleProps { + ) : CdkObject(cdkObject), + CfnScheduleProps { /** * The dates and times when the job is to run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipeline.kt index a6147d7262..62a23f26b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipeline.kt @@ -23,11 +23,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * The AWS::DataPipeline::Pipeline resource specifies a data pipeline that you can use to automate * the movement and transformation of data. * + * + * AWS Data Pipeline is no longer available to new customers. Existing customers of AWS Data + * Pipeline can continue to use the service as normal. [Learn + * more](https://docs.aws.amazon.com/big-data/migrate-workloads-from-aws-data-pipeline/) + * + * * In each pipeline, you define pipeline objects, such as activities, schedules, data nodes, and - * resources. For information about pipeline objects and components that you can use, see [Pipeline - * Object - * Reference](https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-pipeline-objects.html) - * in the *AWS Data Pipeline Developer Guide* . + * resources. * * The `AWS::DataPipeline::Pipeline` resource adds tasks, schedules, and preconditions to the * specified pipeline. You can use `PutPipelineDefinition` to populate a new pipeline. @@ -89,7 +92,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipeline( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -801,7 +806,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.FieldProperty, - ) : CdkObject(cdkObject), FieldProperty { + ) : CdkObject(cdkObject), + FieldProperty { /** * Specifies the name of a field for a particular object. * @@ -940,7 +946,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.ParameterAttributeProperty, - ) : CdkObject(cdkObject), ParameterAttributeProperty { + ) : CdkObject(cdkObject), + ParameterAttributeProperty { /** * The field identifier. * @@ -1073,7 +1080,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.ParameterObjectProperty, - ) : CdkObject(cdkObject), ParameterObjectProperty { + ) : CdkObject(cdkObject), + ParameterObjectProperty { /** * The attributes of the parameter object. * @@ -1181,7 +1189,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.ParameterValueProperty, - ) : CdkObject(cdkObject), ParameterValueProperty { + ) : CdkObject(cdkObject), + ParameterValueProperty { /** * The ID of the parameter value. * @@ -1340,7 +1349,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.PipelineObjectProperty, - ) : CdkObject(cdkObject), PipelineObjectProperty { + ) : CdkObject(cdkObject), + PipelineObjectProperty { /** * Key-value pairs that define the properties of the object. * @@ -1460,7 +1470,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipeline.PipelineTagProperty, - ) : CdkObject(cdkObject), PipelineTagProperty { + ) : CdkObject(cdkObject), + PipelineTagProperty { /** * The key name of a tag. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipelineProps.kt index a0f6ed5cda..6caab06fe6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datapipeline/CfnPipelineProps.kt @@ -359,7 +359,8 @@ public interface CfnPipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datapipeline.CfnPipelineProps, - ) : CdkObject(cdkObject), CfnPipelineProps { + ) : CdkObject(cdkObject), + CfnPipelineProps { /** * Indicates whether to validate and start the pipeline or stop an active pipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgent.kt index 4b9d78b48d..173d590ef4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgent.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAgent( cdkObject: software.amazon.awscdk.services.datasync.CfnAgent, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.datasync.CfnAgent(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -145,22 +147,19 @@ public open class CfnAgent( securityGroupArns(`value`.toList()) /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. */ public open fun subnetArns(): List = unwrap(this).getSubnetArns() ?: emptyList() /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. */ public open fun subnetArns(`value`: List) { unwrap(this).setSubnetArns(`value`) } /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. */ public open fun subnetArns(vararg `value`: String): Unit = subnetArns(`value`.toList()) @@ -207,7 +206,7 @@ public open class CfnAgent( /** * Specifies your DataSync agent's activation key. * - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-activationkey) @@ -218,7 +217,7 @@ public open class CfnAgent( /** * Specifies a name for your agent. * - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-agentname) * @param agentName Specifies a name for your agent. @@ -260,30 +259,24 @@ public open class CfnAgent( public fun securityGroupArns(vararg securityGroupArns: String) /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * */ public fun subnetArns(subnetArns: List) /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * */ public fun subnetArns(vararg subnetArns: String) @@ -341,7 +334,7 @@ public open class CfnAgent( /** * Specifies your DataSync agent's activation key. * - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-activationkey) @@ -354,7 +347,7 @@ public open class CfnAgent( /** * Specifies a name for your agent. * - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-agentname) * @param agentName Specifies a name for your agent. @@ -401,32 +394,26 @@ public open class CfnAgent( securityGroupArns(securityGroupArns.toList()) /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * */ override fun subnetArns(subnetArns: List) { cdkBuilder.subnetArns(subnetArns) } /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * */ override fun subnetArns(vararg subnetArns: String): Unit = subnetArns(subnetArns.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgentProps.kt index 36b819329c..bf84e5c171 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnAgentProps.kt @@ -38,7 +38,7 @@ public interface CfnAgentProps { /** * Specifies your DataSync agent's activation key. * - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-activationkey) @@ -48,7 +48,7 @@ public interface CfnAgentProps { /** * Specifies a name for your agent. * - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-agentname) */ @@ -70,12 +70,9 @@ public interface CfnAgentProps { public fun securityGroupArns(): List = unwrap(this).getSecurityGroupArns() ?: emptyList() /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) */ @@ -116,14 +113,14 @@ public interface CfnAgentProps { public interface Builder { /** * @param activationKey Specifies your DataSync agent's activation key. - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . */ public fun activationKey(activationKey: String) /** * @param agentName Specifies a name for your agent. - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. */ public fun agentName(agentName: String) @@ -152,20 +149,14 @@ public interface CfnAgentProps { public fun securityGroupArns(vararg securityGroupArns: String) /** - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * You can only specify one ARN. */ public fun subnetArns(subnetArns: List) /** - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * You can only specify one ARN. */ public fun subnetArns(vararg subnetArns: String) @@ -207,7 +198,7 @@ public interface CfnAgentProps { /** * @param activationKey Specifies your DataSync agent's activation key. - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . */ override fun activationKey(activationKey: String) { @@ -216,7 +207,7 @@ public interface CfnAgentProps { /** * @param agentName Specifies a name for your agent. - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. */ override fun agentName(agentName: String) { cdkBuilder.agentName(agentName) @@ -250,22 +241,16 @@ public interface CfnAgentProps { securityGroupArns(securityGroupArns.toList()) /** - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * You can only specify one ARN. */ override fun subnetArns(subnetArns: List) { cdkBuilder.subnetArns(subnetArns) } /** - * @param subnetArns Specifies the ARN of the subnet where you want to run your DataSync task - * when using a VPC endpoint. - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * @param subnetArns Specifies the ARN of the subnet where your VPC service endpoint is located. + * You can only specify one ARN. */ override fun subnetArns(vararg subnetArns: String): Unit = subnetArns(subnetArns.toList()) @@ -309,11 +294,12 @@ public interface CfnAgentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnAgentProps, - ) : CdkObject(cdkObject), CfnAgentProps { + ) : CdkObject(cdkObject), + CfnAgentProps { /** * Specifies your DataSync agent's activation key. * - * If you don't have an activation key, see [Activate your + * If you don't have an activation key, see [Activating your * agent](https://docs.aws.amazon.com/datasync/latest/userguide/activate-agent.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-activationkey) @@ -323,7 +309,7 @@ public interface CfnAgentProps { /** * Specifies a name for your agent. * - * You can see this name in the DataSync console. + * We recommend specifying a name that you can remember. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-agentname) */ @@ -346,12 +332,9 @@ public interface CfnAgentProps { emptyList() /** - * Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC - * endpoint. + * Specifies the ARN of the subnet where your VPC service endpoint is located. * - * This is the subnet where DataSync creates and manages the [network - * interfaces](https://docs.aws.amazon.com/datasync/latest/userguide/datasync-network.html#required-network-interfaces) - * for your transfer. You can only specify one ARN. + * You can only specify one ARN. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-agent.html#cfn-datasync-agent-subnetarns) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlob.kt index 5f94b564d2..b1d4bac1a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlob.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationAzureBlob( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationAzureBlob, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -658,7 +660,8 @@ public open class CfnLocationAzureBlob( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationAzureBlob.AzureBlobSasConfigurationProperty, - ) : CdkObject(cdkObject), AzureBlobSasConfigurationProperty { + ) : CdkObject(cdkObject), + AzureBlobSasConfigurationProperty { /** * Specifies a SAS token that provides permissions to access your Azure Blob Storage. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlobProps.kt index 95aac380c6..c24e8e557e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationAzureBlobProps.kt @@ -344,7 +344,8 @@ public interface CfnLocationAzureBlobProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationAzureBlobProps, - ) : CdkObject(cdkObject), CfnLocationAzureBlobProps { + ) : CdkObject(cdkObject), + CfnLocationAzureBlobProps { /** * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your * Azure Blob Storage container. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFS.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFS.kt index 84881a5788..59715e297d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFS.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFS.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationEFS( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationEFS, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -71,13 +73,13 @@ public open class CfnLocationEFS( ) /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. */ public open fun accessPointArn(): String? = unwrap(this).getAccessPointArn() /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. */ public open fun accessPointArn(`value`: String) { @@ -95,26 +97,30 @@ public open class CfnLocationEFS( public open fun attrLocationUri(): String = unwrap(this).getAttrLocationUri() /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public open fun ec2Config(): Any = unwrap(this).getEc2Config() /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public open fun ec2Config(`value`: IResolvable) { unwrap(this).setEc2Config(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public open fun ec2Config(`value`: Ec2ConfigProperty) { unwrap(this).setEc2Config(`value`.let(Ec2ConfigProperty.Companion::unwrap)) } /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bbd59d3aeac85bfa898c59dabe52bd2b32abca81026060441aa3ba9774e9c603") @@ -122,26 +128,26 @@ public open class CfnLocationEFS( ec2Config(Ec2ConfigProperty(`value`)) /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. */ public open fun efsFilesystemArn(): String? = unwrap(this).getEfsFilesystemArn() /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. */ public open fun efsFilesystemArn(`value`: String) { unwrap(this).setEfsFilesystemArn(`value`) } /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting - * the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access your + * Amazon EFS file system. */ public open fun fileSystemAccessRoleArn(): String? = unwrap(this).getFileSystemAccessRoleArn() /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting - * the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access your + * Amazon EFS file system. */ public open fun fileSystemAccessRoleArn(`value`: String) { unwrap(this).setFileSystemAccessRoleArn(`value`) @@ -149,13 +155,13 @@ public open class CfnLocationEFS( /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. */ public open fun inTransitEncryption(): String? = unwrap(this).getInTransitEncryption() /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. */ public open fun inTransitEncryption(`value`: String) { unwrap(this).setInTransitEncryption(`value`) @@ -211,72 +217,86 @@ public open class CfnLocationEFS( @CdkDslMarker public interface Builder { /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. * + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-accesspointarn) * @param accessPointArn Specifies the Amazon Resource Name (ARN) of the access point that - * DataSync uses to access the Amazon EFS file system. + * DataSync uses to mount your Amazon EFS file system. */ public fun accessPointArn(accessPointArn: String) /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public fun ec2Config(ec2Config: IResolvable) /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public fun ec2Config(ec2Config: Ec2ConfigProperty) /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b44d49eae9989a9a3a64e1bfb64a4bc4841f8daef030b2d3dd43278f1e25d57a") public fun ec2Config(ec2Config: Ec2ConfigProperty.Builder.() -> Unit) /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-efsfilesystemarn) - * @param efsFilesystemArn Specifies the ARN for the Amazon EFS file system. + * @param efsFilesystemArn Specifies the ARN for your Amazon EFS file system. */ public fun efsFilesystemArn(efsFilesystemArn: String) /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when - * mounting the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access + * your Amazon EFS file system. + * + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-filesystemaccessrolearn) * @param fileSystemAccessRoleArn Specifies an AWS Identity and Access Management (IAM) role - * that DataSync assumes when mounting the Amazon EFS file system. + * that allows DataSync to access your Amazon EFS file system. */ public fun fileSystemAccessRoleArn(fileSystemAccessRoleArn: String) /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. * * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-intransitencryption) * @param inTransitEncryption Specifies whether you want DataSync to use Transport Layer - * Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. + * Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. */ public fun inTransitEncryption(inTransitEncryption: String) @@ -284,12 +304,12 @@ public open class CfnLocationEFS( * Specifies a mount path for your Amazon EFS file system. * * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include - * subdirectories. - * - * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * location) on your file system. * + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for + * example, `/path/to/folder` ). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-subdirectory) * @param subdirectory Specifies a mount path for your Amazon EFS file system. @@ -329,45 +349,55 @@ public open class CfnLocationEFS( software.amazon.awscdk.services.datasync.CfnLocationEFS.Builder.create(scope, id) /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. * + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-accesspointarn) * @param accessPointArn Specifies the Amazon Resource Name (ARN) of the access point that - * DataSync uses to access the Amazon EFS file system. + * DataSync uses to mount your Amazon EFS file system. */ override fun accessPointArn(accessPointArn: String) { cdkBuilder.accessPointArn(accessPointArn) } /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ override fun ec2Config(ec2Config: IResolvable) { cdkBuilder.ec2Config(ec2Config.let(IResolvable.Companion::unwrap)) } /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ override fun ec2Config(ec2Config: Ec2ConfigProperty) { cdkBuilder.ec2Config(ec2Config.let(Ec2ConfigProperty.Companion::unwrap)) } /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b44d49eae9989a9a3a64e1bfb64a4bc4841f8daef030b2d3dd43278f1e25d57a") @@ -375,22 +405,26 @@ public open class CfnLocationEFS( ec2Config(Ec2ConfigProperty(ec2Config)) /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-efsfilesystemarn) - * @param efsFilesystemArn Specifies the ARN for the Amazon EFS file system. + * @param efsFilesystemArn Specifies the ARN for your Amazon EFS file system. */ override fun efsFilesystemArn(efsFilesystemArn: String) { cdkBuilder.efsFilesystemArn(efsFilesystemArn) } /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when - * mounting the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access + * your Amazon EFS file system. + * + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-filesystemaccessrolearn) * @param fileSystemAccessRoleArn Specifies an AWS Identity and Access Management (IAM) role - * that DataSync assumes when mounting the Amazon EFS file system. + * that allows DataSync to access your Amazon EFS file system. */ override fun fileSystemAccessRoleArn(fileSystemAccessRoleArn: String) { cdkBuilder.fileSystemAccessRoleArn(fileSystemAccessRoleArn) @@ -398,14 +432,14 @@ public open class CfnLocationEFS( /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. * * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-intransitencryption) * @param inTransitEncryption Specifies whether you want DataSync to use Transport Layer - * Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. + * Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. */ override fun inTransitEncryption(inTransitEncryption: String) { cdkBuilder.inTransitEncryption(inTransitEncryption) @@ -415,12 +449,12 @@ public open class CfnLocationEFS( * Specifies a mount path for your Amazon EFS file system. * * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include - * subdirectories. - * - * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * location) on your file system. * + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for + * example, `/path/to/folder` ). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-subdirectory) * @param subdirectory Specifies a mount path for your Amazon EFS file system. @@ -480,7 +514,8 @@ public open class CfnLocationEFS( } /** - * The subnet and security groups that AWS DataSync uses to access your Amazon EFS file system. + * The subnet and security groups that AWS DataSync uses to connect to one of your Amazon EFS file + * system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * Example: * @@ -599,7 +634,8 @@ public open class CfnLocationEFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationEFS.Ec2ConfigProperty, - ) : CdkObject(cdkObject), Ec2ConfigProperty { + ) : CdkObject(cdkObject), + Ec2ConfigProperty { /** * Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon * EFS file system's mount target. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFSProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFSProps.kt index b1461b27c3..71ea2a490b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFSProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationEFSProps.kt @@ -44,30 +44,39 @@ import kotlin.jvm.JvmName */ public interface CfnLocationEFSProps { /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. * + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-accesspointarn) */ public fun accessPointArn(): String? = unwrap(this).getAccessPointArn() /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) */ public fun ec2Config(): Any /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-efsfilesystemarn) */ public fun efsFilesystemArn(): String? = unwrap(this).getEfsFilesystemArn() /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting - * the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access your + * Amazon EFS file system. + * + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-filesystemaccessrolearn) */ @@ -75,7 +84,7 @@ public interface CfnLocationEFSProps { /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. * * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . @@ -88,11 +97,12 @@ public interface CfnLocationEFSProps { * Specifies a mount path for your Amazon EFS file system. * * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include subdirectories. - * - * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * location) on your file system. * + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for example, + * `/path/to/folder` ). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-subdirectory) */ @@ -115,44 +125,53 @@ public interface CfnLocationEFSProps { public interface Builder { /** * @param accessPointArn Specifies the Amazon Resource Name (ARN) of the access point that - * DataSync uses to access the Amazon EFS file system. + * DataSync uses to mount your Amazon EFS file system. + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . */ public fun accessPointArn(accessPointArn: String) /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public fun ec2Config(ec2Config: IResolvable) /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ public fun ec2Config(ec2Config: CfnLocationEFS.Ec2ConfigProperty) /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3af66aa99dca56cb35a3347bb145188a2ff6c86fa7d4f760b1442dcabf27da27") public fun ec2Config(ec2Config: CfnLocationEFS.Ec2ConfigProperty.Builder.() -> Unit) /** - * @param efsFilesystemArn Specifies the ARN for the Amazon EFS file system. + * @param efsFilesystemArn Specifies the ARN for your Amazon EFS file system. */ public fun efsFilesystemArn(efsFilesystemArn: String) /** * @param fileSystemAccessRoleArn Specifies an AWS Identity and Access Management (IAM) role - * that DataSync assumes when mounting the Amazon EFS file system. + * that allows DataSync to access your Amazon EFS file system. + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . */ public fun fileSystemAccessRoleArn(fileSystemAccessRoleArn: String) /** * @param inTransitEncryption Specifies whether you want DataSync to use Transport Layer - * Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. + * Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . */ @@ -161,11 +180,12 @@ public interface CfnLocationEFSProps { /** * @param subdirectory Specifies a mount path for your Amazon EFS file system. * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include - * subdirectories. - * + * location) on your file system. * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for + * example, `/path/to/folder` ). */ public fun subdirectory(subdirectory: String) @@ -192,31 +212,37 @@ public interface CfnLocationEFSProps { /** * @param accessPointArn Specifies the Amazon Resource Name (ARN) of the access point that - * DataSync uses to access the Amazon EFS file system. + * DataSync uses to mount your Amazon EFS file system. + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . */ override fun accessPointArn(accessPointArn: String) { cdkBuilder.accessPointArn(accessPointArn) } /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ override fun ec2Config(ec2Config: IResolvable) { cdkBuilder.ec2Config(ec2Config.let(IResolvable.Companion::unwrap)) } /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ override fun ec2Config(ec2Config: CfnLocationEFS.Ec2ConfigProperty) { cdkBuilder.ec2Config(ec2Config.let(CfnLocationEFS.Ec2ConfigProperty.Companion::unwrap)) } /** - * @param ec2Config Specifies the subnet and security groups DataSync uses to access your Amazon - * EFS file system. + * @param ec2Config Specifies the subnet and security groups DataSync uses to connect to one of + * your Amazon EFS file system's [mount + * targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3af66aa99dca56cb35a3347bb145188a2ff6c86fa7d4f760b1442dcabf27da27") @@ -224,7 +250,7 @@ public interface CfnLocationEFSProps { ec2Config(CfnLocationEFS.Ec2ConfigProperty(ec2Config)) /** - * @param efsFilesystemArn Specifies the ARN for the Amazon EFS file system. + * @param efsFilesystemArn Specifies the ARN for your Amazon EFS file system. */ override fun efsFilesystemArn(efsFilesystemArn: String) { cdkBuilder.efsFilesystemArn(efsFilesystemArn) @@ -232,7 +258,10 @@ public interface CfnLocationEFSProps { /** * @param fileSystemAccessRoleArn Specifies an AWS Identity and Access Management (IAM) role - * that DataSync assumes when mounting the Amazon EFS file system. + * that allows DataSync to access your Amazon EFS file system. + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . */ override fun fileSystemAccessRoleArn(fileSystemAccessRoleArn: String) { cdkBuilder.fileSystemAccessRoleArn(fileSystemAccessRoleArn) @@ -240,7 +269,7 @@ public interface CfnLocationEFSProps { /** * @param inTransitEncryption Specifies whether you want DataSync to use Transport Layer - * Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. + * Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . */ @@ -251,11 +280,12 @@ public interface CfnLocationEFSProps { /** * @param subdirectory Specifies a mount path for your Amazon EFS file system. * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include - * subdirectories. + * location) on your file system. * - * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for + * example, `/path/to/folder` ). */ override fun subdirectory(subdirectory: String) { cdkBuilder.subdirectory(subdirectory) @@ -285,32 +315,42 @@ public interface CfnLocationEFSProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationEFSProps, - ) : CdkObject(cdkObject), CfnLocationEFSProps { + ) : CdkObject(cdkObject), + CfnLocationEFSProps { /** - * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the + * Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your * Amazon EFS file system. * + * For more information, see [Accessing restricted file + * systems](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-accesspointarn) */ override fun accessPointArn(): String? = unwrap(this).getAccessPointArn() /** - * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. + * Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS + * file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-ec2config) */ override fun ec2Config(): Any = unwrap(this).getEc2Config() /** - * Specifies the ARN for the Amazon EFS file system. + * Specifies the ARN for your Amazon EFS file system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-efsfilesystemarn) */ override fun efsFilesystemArn(): String? = unwrap(this).getEfsFilesystemArn() /** - * Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when - * mounting the Amazon EFS file system. + * Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access + * your Amazon EFS file system. + * + * For information on creating this role, see [Creating a DataSync IAM role for file system + * access](https://docs.aws.amazon.com/datasync/latest/userguide/create-efs-location.html#create-efs-location-iam-role) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-filesystemaccessrolearn) */ @@ -318,7 +358,7 @@ public interface CfnLocationEFSProps { /** * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when - * it copies data to or from the Amazon EFS file system. + * it transfers data to or from your Amazon EFS file system. * * If you specify an access point using `AccessPointArn` or an IAM role using * `FileSystemAccessRoleArn` , you must set this parameter to `TLS1_2` . @@ -331,12 +371,12 @@ public interface CfnLocationEFSProps { * Specifies a mount path for your Amazon EFS file system. * * This is where DataSync reads or writes data (depending on if this is a source or destination - * location). By default, DataSync uses the root directory, but you can also include - * subdirectories. - * - * - * You must specify a value with forward slashes (for example, `/path/to/folder` ). + * location) on your file system. * + * By default, DataSync uses the root directory (or [access + * point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) if you provide one by + * using `AccessPointArn` ). You can also include subdirectories using forward slashes (for + * example, `/path/to/folder` ). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html#cfn-datasync-locationefs-subdirectory) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustre.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustre.kt index b5b5cdc8bc..9227f818a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustre.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustre.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationFSxLustre( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxLustre, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustreProps.kt index 6db6fccdae..d45075476b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxLustreProps.kt @@ -191,7 +191,8 @@ public interface CfnLocationFSxLustreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxLustreProps, - ) : CdkObject(cdkObject), CfnLocationFSxLustreProps { + ) : CdkObject(cdkObject), + CfnLocationFSxLustreProps { /** * The Amazon Resource Name (ARN) for the FSx for Lustre file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAP.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAP.kt index 2419479fa4..6f7d4eb23a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAP.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAP.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationFSxONTAP( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -582,7 +584,8 @@ public open class CfnLocationFSxONTAP( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP.NFSProperty, - ) : CdkObject(cdkObject), NFSProperty { + ) : CdkObject(cdkObject), + NFSProperty { /** * Specifies how DataSync can access a location using the NFS protocol. * @@ -706,7 +709,8 @@ public open class CfnLocationFSxONTAP( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP.NfsMountOptionsProperty, - ) : CdkObject(cdkObject), NfsMountOptionsProperty { + ) : CdkObject(cdkObject), + NfsMountOptionsProperty { /** * Specifies the NFS version that you want DataSync to use when mounting your NFS share. * @@ -901,7 +905,8 @@ public open class CfnLocationFSxONTAP( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP.ProtocolProperty, - ) : CdkObject(cdkObject), ProtocolProperty { + ) : CdkObject(cdkObject), + ProtocolProperty { /** * Specifies the Network File System (NFS) protocol configuration that DataSync uses to access * your FSx for ONTAP file system's storage virtual machine (SVM). @@ -1155,7 +1160,8 @@ public open class CfnLocationFSxONTAP( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP.SMBProperty, - ) : CdkObject(cdkObject), SMBProperty { + ) : CdkObject(cdkObject), + SMBProperty { /** * Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that * your storage virtual machine (SVM) belongs to. @@ -1348,7 +1354,8 @@ public open class CfnLocationFSxONTAP( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAP.SmbMountOptionsProperty, - ) : CdkObject(cdkObject), SmbMountOptionsProperty { + ) : CdkObject(cdkObject), + SmbMountOptionsProperty { /** * By default, DataSync automatically chooses an SMB protocol version based on negotiation * with your SMB file server. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAPProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAPProps.kt index 2bb6e174a4..ea3c60f86a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAPProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxONTAPProps.kt @@ -304,7 +304,8 @@ public interface CfnLocationFSxONTAPProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxONTAPProps, - ) : CdkObject(cdkObject), CfnLocationFSxONTAPProps { + ) : CdkObject(cdkObject), + CfnLocationFSxONTAPProps { /** * Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file * system. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFS.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFS.kt index 67cb197c8b..0c2b6f3872 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFS.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFS.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationFSxOpenZFS( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFS, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -522,7 +524,8 @@ public open class CfnLocationFSxOpenZFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFS.MountOptionsProperty, - ) : CdkObject(cdkObject), MountOptionsProperty { + ) : CdkObject(cdkObject), + MountOptionsProperty { /** * The specific NFS version that you want DataSync to use to mount your NFS share. * @@ -652,7 +655,8 @@ public open class CfnLocationFSxOpenZFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFS.NFSProperty, - ) : CdkObject(cdkObject), NFSProperty { + ) : CdkObject(cdkObject), + NFSProperty { /** * Represents the mount options that are available for DataSync to access an NFS location. * @@ -770,7 +774,8 @@ public open class CfnLocationFSxOpenZFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFS.ProtocolProperty, - ) : CdkObject(cdkObject), ProtocolProperty { + ) : CdkObject(cdkObject), + ProtocolProperty { /** * Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for * OpenZFS file system. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFSProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFSProps.kt index 9a54ec3848..d6d21bcb1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFSProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxOpenZFSProps.kt @@ -247,7 +247,8 @@ public interface CfnLocationFSxOpenZFSProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFSProps, - ) : CdkObject(cdkObject), CfnLocationFSxOpenZFSProps { + ) : CdkObject(cdkObject), + CfnLocationFSxOpenZFSProps { /** * The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindows.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindows.kt index 5f15d5bdb8..d93141f895 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindows.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindows.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationFSxWindows( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxWindows, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindowsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindowsProps.kt index 4c771e6e77..0b5ffe8593 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindowsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationFSxWindowsProps.kt @@ -281,7 +281,8 @@ public interface CfnLocationFSxWindowsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationFSxWindowsProps, - ) : CdkObject(cdkObject), CfnLocationFSxWindowsProps { + ) : CdkObject(cdkObject), + CfnLocationFSxWindowsProps { /** * Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File * Server file system belongs to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFS.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFS.kt index 22d1040572..872e3a0007 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFS.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFS.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationHDFS( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationHDFS, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -80,19 +82,19 @@ public open class CfnLocationHDFS( ) /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster. */ public open fun agentArns(): List = unwrap(this).getAgentArns() /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster. */ public open fun agentArns(`value`: List) { unwrap(this).setAgentArns(`value`) } /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster. */ public open fun agentArns(vararg `value`: String): Unit = agentArns(`value`.toList()) @@ -313,20 +315,22 @@ public open class CfnLocationHDFS( @CdkDslMarker public interface Builder { /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS + * cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ public fun agentArns(agentArns: List) /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS + * cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ public fun agentArns(vararg agentArns: String) @@ -547,22 +551,24 @@ public open class CfnLocationHDFS( software.amazon.awscdk.services.datasync.CfnLocationHDFS.Builder.create(scope, id) /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS + * cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ override fun agentArns(agentArns: List) { cdkBuilder.agentArns(agentArns) } /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS + * cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ override fun agentArns(vararg agentArns: String): Unit = agentArns(agentArns.toList()) @@ -914,7 +920,8 @@ public open class CfnLocationHDFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationHDFS.NameNodeProperty, - ) : CdkObject(cdkObject), NameNodeProperty { + ) : CdkObject(cdkObject), + NameNodeProperty { /** * The hostname of the NameNode in the HDFS cluster. * @@ -1050,7 +1057,8 @@ public open class CfnLocationHDFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationHDFS.QopConfigurationProperty, - ) : CdkObject(cdkObject), QopConfigurationProperty { + ) : CdkObject(cdkObject), + QopConfigurationProperty { /** * The data transfer protection setting configured on the HDFS cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFSProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFSProps.kt index 1cf551cf43..0a277ab94e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFSProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationHDFSProps.kt @@ -54,7 +54,7 @@ import kotlin.jvm.JvmName */ public interface CfnLocationHDFSProps { /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) */ @@ -184,14 +184,14 @@ public interface CfnLocationHDFSProps { @CdkDslMarker public interface Builder { /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ public fun agentArns(agentArns: List) /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ public fun agentArns(vararg agentArns: String) @@ -332,16 +332,16 @@ public interface CfnLocationHDFSProps { software.amazon.awscdk.services.datasync.CfnLocationHDFSProps.builder() /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ override fun agentArns(agentArns: List) { cdkBuilder.agentArns(agentArns) } /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents that are used to connect to - * the HDFS cluster. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect to + * your HDFS cluster. */ override fun agentArns(vararg agentArns: String): Unit = agentArns(agentArns.toList()) @@ -511,9 +511,11 @@ public interface CfnLocationHDFSProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationHDFSProps, - ) : CdkObject(cdkObject), CfnLocationHDFSProps { + ) : CdkObject(cdkObject), + CfnLocationHDFSProps { /** - * The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS + * cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFS.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFS.kt index 6c6d7911e8..48223e65c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFS.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFS.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationNFS( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationNFS, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -115,13 +117,13 @@ public open class CfnLocationNFS( mountOptions(MountOptionsProperty(`value`)) /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS * file server. */ public open fun onPremConfig(): Any = unwrap(this).getOnPremConfig() /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS * file server. */ public open fun onPremConfig(`value`: IResolvable) { @@ -129,7 +131,7 @@ public open class CfnLocationNFS( } /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS * file server. */ public open fun onPremConfig(`value`: OnPremConfigProperty) { @@ -137,7 +139,7 @@ public open class CfnLocationNFS( } /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS * file server. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -229,41 +231,44 @@ public open class CfnLocationNFS( public fun mountOptions(mountOptions: MountOptionsProperty.Builder.() -> Unit) /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ public fun onPremConfig(onPremConfig: IResolvable) /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ public fun onPremConfig(onPremConfig: OnPremConfigProperty) /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2cd9f0ae144cf14221414b6db7af184a49d45996e7a95573bd995075ba3c701f") @@ -358,45 +363,48 @@ public open class CfnLocationNFS( mountOptions(MountOptionsProperty(mountOptions)) /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ override fun onPremConfig(onPremConfig: IResolvable) { cdkBuilder.onPremConfig(onPremConfig.let(IResolvable.Companion::unwrap)) } /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ override fun onPremConfig(onPremConfig: OnPremConfigProperty) { cdkBuilder.onPremConfig(onPremConfig.let(OnPremConfigProperty.Companion::unwrap)) } /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2cd9f0ae144cf14221414b6db7af184a49d45996e7a95573bd995075ba3c701f") @@ -576,7 +584,8 @@ public open class CfnLocationNFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationNFS.MountOptionsProperty, - ) : CdkObject(cdkObject), MountOptionsProperty { + ) : CdkObject(cdkObject), + MountOptionsProperty { /** * Specifies the NFS version that you want DataSync to use when mounting your NFS share. * @@ -619,7 +628,7 @@ public open class CfnLocationNFS( } /** - * The AWS DataSync agents that are connecting to a Network File System (NFS) location. + * The AWS DataSync agents that can connect to your Network File System (NFS) file server. * * Example: * @@ -636,7 +645,12 @@ public open class CfnLocationNFS( */ public interface OnPremConfigProperty { /** - * The Amazon Resource Names (ARNs) of the agents connecting to a transfer location. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file + * server. + * + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationnfs-onpremconfig.html#cfn-datasync-locationnfs-onpremconfig-agentarns) */ @@ -648,14 +662,20 @@ public open class CfnLocationNFS( @CdkDslMarker public interface Builder { /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents connecting to a transfer - * location. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect + * to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ public fun agentArns(agentArns: List) /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents connecting to a transfer - * location. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect + * to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ public fun agentArns(vararg agentArns: String) } @@ -666,16 +686,22 @@ public open class CfnLocationNFS( software.amazon.awscdk.services.datasync.CfnLocationNFS.OnPremConfigProperty.builder() /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents connecting to a transfer - * location. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect + * to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ override fun agentArns(agentArns: List) { cdkBuilder.agentArns(agentArns) } /** - * @param agentArns The Amazon Resource Names (ARNs) of the agents connecting to a transfer - * location. + * @param agentArns The Amazon Resource Names (ARNs) of the DataSync agents that can connect + * to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ override fun agentArns(vararg agentArns: String): Unit = agentArns(agentArns.toList()) @@ -686,9 +712,15 @@ public open class CfnLocationNFS( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationNFS.OnPremConfigProperty, - ) : CdkObject(cdkObject), OnPremConfigProperty { + ) : CdkObject(cdkObject), + OnPremConfigProperty { /** - * The Amazon Resource Names (ARNs) of the agents connecting to a transfer location. + * The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file + * server. + * + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationnfs-onpremconfig.html#cfn-datasync-locationnfs-onpremconfig-agentarns) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFSProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFSProps.kt index 5456bf9af2..10d434f536 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFSProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationNFSProps.kt @@ -50,11 +50,12 @@ public interface CfnLocationNFSProps { public fun mountOptions(): Any? = unwrap(this).getMountOptions() /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) */ @@ -115,26 +116,29 @@ public interface CfnLocationNFSProps { public fun mountOptions(mountOptions: CfnLocationNFS.MountOptionsProperty.Builder.() -> Unit) /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ public fun onPremConfig(onPremConfig: IResolvable) /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ public fun onPremConfig(onPremConfig: CfnLocationNFS.OnPremConfigProperty) /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cf5703597528879642bf94644d82f6db8aa573618543415d79049ad5e417fa05") @@ -201,30 +205,33 @@ public interface CfnLocationNFSProps { Unit = mountOptions(CfnLocationNFS.MountOptionsProperty(mountOptions)) /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ override fun onPremConfig(onPremConfig: IResolvable) { cdkBuilder.onPremConfig(onPremConfig.let(IResolvable.Companion::unwrap)) } /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ override fun onPremConfig(onPremConfig: CfnLocationNFS.OnPremConfigProperty) { cdkBuilder.onPremConfig(onPremConfig.let(CfnLocationNFS.OnPremConfigProperty.Companion::unwrap)) } /** - * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that want - * to connect to your NFS file server. - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * @param onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can + * connect to your NFS file server. + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cf5703597528879642bf94644d82f6db8aa573618543415d79049ad5e417fa05") @@ -273,7 +280,8 @@ public interface CfnLocationNFSProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationNFSProps, - ) : CdkObject(cdkObject), CfnLocationNFSProps { + ) : CdkObject(cdkObject), + CfnLocationNFSProps { /** * Specifies the options that DataSync can use to mount your NFS file server. * @@ -282,11 +290,12 @@ public interface CfnLocationNFSProps { override fun mountOptions(): Any? = unwrap(this).getMountOptions() /** - * Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your - * NFS file server. + * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS + * file server. * - * You can specify more than one agent. For more information, see [Using multiple agents for - * transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) . + * You can specify more than one agent. For more information, see [Using multiple DataSync + * agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationnfs.html#cfn-datasync-locationnfs-onpremconfig) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorage.kt index 6ac387d413..c6c44c7ecf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorage.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationObjectStorage( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationObjectStorage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -84,22 +86,22 @@ public open class CfnLocationObjectStorage( } /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. */ public open fun agentArns(): List = unwrap(this).getAgentArns() /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. */ public open fun agentArns(`value`: List) { unwrap(this).setAgentArns(`value`) } /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. */ public open fun agentArns(vararg `value`: String): Unit = agentArns(`value`.toList()) @@ -251,22 +253,22 @@ public open class CfnLocationObjectStorage( public fun accessKey(accessKey: String) /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ public fun agentArns(agentArns: List) /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ public fun agentArns(vararg agentArns: String) @@ -402,24 +404,24 @@ public open class CfnLocationObjectStorage( } /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ override fun agentArns(agentArns: List) { cdkBuilder.agentArns(agentArns) } /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ override fun agentArns(vararg agentArns: String): Unit = agentArns(agentArns.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorageProps.kt index 7b8705de86..9227e02ea2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationObjectStorageProps.kt @@ -51,8 +51,8 @@ public interface CfnLocationObjectStorageProps { public fun accessKey(): String? = unwrap(this).getAccessKey() /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) */ @@ -156,13 +156,13 @@ public interface CfnLocationObjectStorageProps { /** * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ public fun agentArns(agentArns: List) /** * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ public fun agentArns(vararg agentArns: String) @@ -257,7 +257,7 @@ public interface CfnLocationObjectStorageProps { /** * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ override fun agentArns(agentArns: List) { cdkBuilder.agentArns(agentArns) @@ -265,7 +265,7 @@ public interface CfnLocationObjectStorageProps { /** * @param agentArns Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can - * securely connect with your location. + * connect with your object storage system. */ override fun agentArns(vararg agentArns: String): Unit = agentArns(agentArns.toList()) @@ -366,7 +366,8 @@ public interface CfnLocationObjectStorageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationObjectStorageProps, - ) : CdkObject(cdkObject), CfnLocationObjectStorageProps { + ) : CdkObject(cdkObject), + CfnLocationObjectStorageProps { /** * Specifies the access key (for example, a user name) if credentials are required to * authenticate with the object storage server. @@ -376,8 +377,8 @@ public interface CfnLocationObjectStorageProps { override fun accessKey(): String? = unwrap(this).getAccessKey() /** - * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect - * with your location. + * Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your + * object storage system. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3.kt index 69dfe8dbba..2d4af2ba59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationS3( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationS3, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -522,7 +524,8 @@ public open class CfnLocationS3( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationS3.S3ConfigProperty, - ) : CdkObject(cdkObject), S3ConfigProperty { + ) : CdkObject(cdkObject), + S3ConfigProperty { /** * Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3Props.kt index 529a82506f..fefbb561c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationS3Props.kt @@ -286,7 +286,8 @@ public interface CfnLocationS3Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationS3Props, - ) : CdkObject(cdkObject), CfnLocationS3Props { + ) : CdkObject(cdkObject), + CfnLocationS3Props { /** * The ARN of the Amazon S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMB.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMB.kt index 98e7ceffb1..5dcd5b9a3a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMB.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMB.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocationSMB( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationSMB, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -685,7 +687,8 @@ public open class CfnLocationSMB( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationSMB.MountOptionsProperty, - ) : CdkObject(cdkObject), MountOptionsProperty { + ) : CdkObject(cdkObject), + MountOptionsProperty { /** * By default, DataSync automatically chooses an SMB protocol version based on negotiation * with your SMB file server. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMBProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMBProps.kt index 9556bc742b..94c57e2f32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMBProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnLocationSMBProps.kt @@ -360,7 +360,8 @@ public interface CfnLocationSMBProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnLocationSMBProps, - ) : CdkObject(cdkObject), CfnLocationSMBProps { + ) : CdkObject(cdkObject), + CfnLocationSMBProps { /** * The Amazon Resource Names (ARNs) of agents to use for a Server Message Block (SMB) location. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystem.kt index 8ddb24a281..1e9d81ce1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystem.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageSystem( cdkObject: software.amazon.awscdk.services.datasync.CfnStorageSystem, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -675,7 +677,8 @@ public open class CfnStorageSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnStorageSystem.ServerConfigurationProperty, - ) : CdkObject(cdkObject), ServerConfigurationProperty { + ) : CdkObject(cdkObject), + ServerConfigurationProperty { /** * The domain name or IP address of your storage system's management interface. * @@ -790,7 +793,8 @@ public open class CfnStorageSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnStorageSystem.ServerCredentialsProperty, - ) : CdkObject(cdkObject), ServerCredentialsProperty { + ) : CdkObject(cdkObject), + ServerCredentialsProperty { /** * Specifies the password for your storage system's management interface. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystemProps.kt index f19ee0415e..a0945723f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnStorageSystemProps.kt @@ -329,7 +329,8 @@ public interface CfnStorageSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnStorageSystemProps, - ) : CdkObject(cdkObject), CfnStorageSystemProps { + ) : CdkObject(cdkObject), + CfnStorageSystemProps { /** * Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects to and reads * from your on-premises storage system's management interface. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTask.kt index c2d220b9c3..b4aa742e14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTask.kt @@ -120,7 +120,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTask( cdkObject: software.amazon.awscdk.services.datasync.CfnTask, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1165,7 +1167,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.DeletedProperty, - ) : CdkObject(cdkObject), DeletedProperty { + ) : CdkObject(cdkObject), + DeletedProperty { /** * Specifies whether you want your task report to include only what went wrong with your * transfer or a list of what succeeded and didn't. @@ -1279,7 +1282,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * Specifies the Amazon S3 bucket where DataSync uploads your task report. * @@ -1388,7 +1392,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.FilterRuleProperty, - ) : CdkObject(cdkObject), FilterRuleProperty { + ) : CdkObject(cdkObject), + FilterRuleProperty { /** * The type of filter rule to apply. * @@ -1634,7 +1639,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.ManifestConfigProperty, - ) : CdkObject(cdkObject), ManifestConfigProperty { + ) : CdkObject(cdkObject), + ManifestConfigProperty { /** * Specifies what DataSync uses the manifest for. * @@ -1834,7 +1840,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.ManifestConfigSourceS3Property, - ) : CdkObject(cdkObject), ManifestConfigSourceS3Property { + ) : CdkObject(cdkObject), + ManifestConfigSourceS3Property { /** * Specifies the AWS Identity and Access Management (IAM) role that allows DataSync to access * your manifest. @@ -2763,7 +2770,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.OptionsProperty, - ) : CdkObject(cdkObject), OptionsProperty { + ) : CdkObject(cdkObject), + OptionsProperty { /** * A file metadata value that shows the last time that a file was accessed (that is, when the * file was read or written to). @@ -3357,7 +3365,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.OverridesProperty, - ) : CdkObject(cdkObject), OverridesProperty { + ) : CdkObject(cdkObject), + OverridesProperty { /** * Specifies the level of reporting for the files, objects, and directories that DataSync * attempted to delete in your destination location. @@ -3496,7 +3505,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-s3.html#cfn-datasync-task-s3-bucketaccessrolearn) */ @@ -3591,7 +3601,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.SkippedProperty, - ) : CdkObject(cdkObject), SkippedProperty { + ) : CdkObject(cdkObject), + SkippedProperty { /** * Specifies whether you want your task report to include only what went wrong with your * transfer or a list of what succeeded and didn't. @@ -3710,7 +3721,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * Specifies the S3 bucket where you're hosting your manifest. * @@ -4034,7 +4046,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.TaskReportConfigProperty, - ) : CdkObject(cdkObject), TaskReportConfigProperty { + ) : CdkObject(cdkObject), + TaskReportConfigProperty { /** * Specifies the Amazon S3 bucket where DataSync uploads your task report. * @@ -4135,10 +4148,22 @@ public open class CfnTask( */ public interface TaskScheduleProperty { /** - * Specifies your task schedule by using a cron expression in UTC time. + * Specifies your task schedule by using a cron or rate expression. * - * For information about cron expression syntax, see the [*Amazon EventBridge User - * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) . + * Use cron expressions for task schedules that run on a specific time and day. For example, the + * following cron expression creates a task schedule that runs at 8 AM on the first Wednesday of + * every month: + * + * `cron(0 8 * * 3#1)` + * + * Use rate expressions for task schedules that run on a regular interval. For example, the + * following rate expression creates a task schedule that runs every 12 hours: + * + * `rate(12 hours)` + * + * For information about cron and rate expression syntax, see the [*Amazon EventBridge User + * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-scheduleexpression) */ @@ -4166,10 +4191,21 @@ public open class CfnTask( @CdkDslMarker public interface Builder { /** - * @param scheduleExpression Specifies your task schedule by using a cron expression in UTC - * time. - * For information about cron expression syntax, see the [*Amazon EventBridge User - * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) . + * @param scheduleExpression Specifies your task schedule by using a cron or rate expression. + * Use cron expressions for task schedules that run on a specific time and day. For example, + * the following cron expression creates a task schedule that runs at 8 AM on the first Wednesday + * of every month: + * + * `cron(0 8 * * 3#1)` + * + * Use rate expressions for task schedules that run on a regular interval. For example, the + * following rate expression creates a task schedule that runs every 12 hours: + * + * `rate(12 hours)` + * + * For information about cron and rate expression syntax, see the [*Amazon EventBridge User + * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html) + * . */ public fun scheduleExpression(scheduleExpression: String) @@ -4193,10 +4229,21 @@ public open class CfnTask( software.amazon.awscdk.services.datasync.CfnTask.TaskScheduleProperty.builder() /** - * @param scheduleExpression Specifies your task schedule by using a cron expression in UTC - * time. - * For information about cron expression syntax, see the [*Amazon EventBridge User - * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) . + * @param scheduleExpression Specifies your task schedule by using a cron or rate expression. + * Use cron expressions for task schedules that run on a specific time and day. For example, + * the following cron expression creates a task schedule that runs at 8 AM on the first Wednesday + * of every month: + * + * `cron(0 8 * * 3#1)` + * + * Use rate expressions for task schedules that run on a regular interval. For example, the + * following rate expression creates a task schedule that runs every 12 hours: + * + * `rate(12 hours)` + * + * For information about cron and rate expression syntax, see the [*Amazon EventBridge User + * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html) + * . */ override fun scheduleExpression(scheduleExpression: String) { cdkBuilder.scheduleExpression(scheduleExpression) @@ -4223,12 +4270,25 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.TaskScheduleProperty, - ) : CdkObject(cdkObject), TaskScheduleProperty { + ) : CdkObject(cdkObject), + TaskScheduleProperty { /** - * Specifies your task schedule by using a cron expression in UTC time. + * Specifies your task schedule by using a cron or rate expression. * - * For information about cron expression syntax, see the [*Amazon EventBridge User - * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) . + * Use cron expressions for task schedules that run on a specific time and day. For example, + * the following cron expression creates a task schedule that runs at 8 AM on the first Wednesday + * of every month: + * + * `cron(0 8 * * 3#1)` + * + * Use rate expressions for task schedules that run on a regular interval. For example, the + * following rate expression creates a task schedule that runs every 12 hours: + * + * `rate(12 hours)` + * + * For information about cron and rate expression syntax, see the [*Amazon EventBridge User + * Guide*](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html) + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-scheduleexpression) */ @@ -4332,7 +4392,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.TransferredProperty, - ) : CdkObject(cdkObject), TransferredProperty { + ) : CdkObject(cdkObject), + TransferredProperty { /** * Specifies whether you want your task report to include only what went wrong with your * transfer or a list of what succeeded and didn't. @@ -4426,7 +4487,8 @@ public open class CfnTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTask.VerifiedProperty, - ) : CdkObject(cdkObject), VerifiedProperty { + ) : CdkObject(cdkObject), + VerifiedProperty { /** * Specifies whether you want your task report to include only what went wrong with your * transfer or a list of what succeeded and didn't. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTaskProps.kt index b1dbd51e27..104ea97b57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datasync/CfnTaskProps.kt @@ -669,7 +669,8 @@ public interface CfnTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datasync.CfnTaskProps, - ) : CdkObject(cdkObject), CfnTaskProps { + ) : CdkObject(cdkObject), + CfnTaskProps { /** * Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring * your task. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSource.kt index 0819becbfe..a6b9bbf62c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSource.kt @@ -100,7 +100,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1017,7 +1018,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.DataSourceConfigurationInputProperty, - ) : CdkObject(cdkObject), DataSourceConfigurationInputProperty { + ) : CdkObject(cdkObject), + DataSourceConfigurationInputProperty { /** * The configuration of the AWS Glue data source. * @@ -1126,7 +1128,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.FilterExpressionProperty, - ) : CdkObject(cdkObject), FilterExpressionProperty { + ) : CdkObject(cdkObject), + FilterExpressionProperty { /** * The search filter expression. * @@ -1274,7 +1277,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.FormInputProperty, - ) : CdkObject(cdkObject), FormInputProperty { + ) : CdkObject(cdkObject), + FormInputProperty { /** * The content of the metadata form. * @@ -1476,7 +1480,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.GlueRunConfigurationInputProperty, - ) : CdkObject(cdkObject), GlueRunConfigurationInputProperty { + ) : CdkObject(cdkObject), + GlueRunConfigurationInputProperty { /** * Specifies whether to automatically import data quality metrics as part of the data source * run. @@ -1595,7 +1600,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RecommendationConfigurationProperty, - ) : CdkObject(cdkObject), RecommendationConfigurationProperty { + ) : CdkObject(cdkObject), + RecommendationConfigurationProperty { /** * Specifies whether automatic business name generation is to be enabled or not as part of the * recommendation configuration. @@ -1681,7 +1687,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RedshiftClusterStorageProperty, - ) : CdkObject(cdkObject), RedshiftClusterStorageProperty { + ) : CdkObject(cdkObject), + RedshiftClusterStorageProperty { /** * The name of an Amazon Redshift cluster. * @@ -1764,7 +1771,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RedshiftCredentialConfigurationProperty, - ) : CdkObject(cdkObject), RedshiftCredentialConfigurationProperty { + ) : CdkObject(cdkObject), + RedshiftCredentialConfigurationProperty { /** * The ARN of a secret manager for an Amazon Redshift cluster. * @@ -2032,7 +2040,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RedshiftRunConfigurationInputProperty, - ) : CdkObject(cdkObject), RedshiftRunConfigurationInputProperty { + ) : CdkObject(cdkObject), + RedshiftRunConfigurationInputProperty { /** * The data access role included in the configuration details of the Amazon Redshift data * source. @@ -2142,7 +2151,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RedshiftServerlessStorageProperty, - ) : CdkObject(cdkObject), RedshiftServerlessStorageProperty { + ) : CdkObject(cdkObject), + RedshiftServerlessStorageProperty { /** * The name of the Amazon Redshift Serverless workgroup. * @@ -2316,7 +2326,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RedshiftStorageProperty, - ) : CdkObject(cdkObject), RedshiftStorageProperty { + ) : CdkObject(cdkObject), + RedshiftStorageProperty { /** * The details of the Amazon Redshift cluster source. * @@ -2483,7 +2494,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.RelationalFilterConfigurationProperty, - ) : CdkObject(cdkObject), RelationalFilterConfigurationProperty { + ) : CdkObject(cdkObject), + RelationalFilterConfigurationProperty { /** * The database name specified in the relational filter configuration for the data source. * @@ -2602,7 +2614,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSource.ScheduleConfigurationProperty, - ) : CdkObject(cdkObject), ScheduleConfigurationProperty { + ) : CdkObject(cdkObject), + ScheduleConfigurationProperty { /** * The schedule of the data source runs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSourceProps.kt index e3eb6cc6ee..15f1d0d8e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDataSourceProps.kt @@ -480,7 +480,8 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** * The metadata forms attached to the assets that the data source works with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomain.kt index df1360669b..bd4c72fde7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomain.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.datazone.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -497,7 +499,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDomain.SingleSignOnProperty, - ) : CdkObject(cdkObject), SingleSignOnProperty { + ) : CdkObject(cdkObject), + SingleSignOnProperty { /** * The type of single sign-on in Amazon DataZone. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomainProps.kt index ace0389cce..b71139d3cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnDomainProps.kt @@ -219,7 +219,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * The description of the Amazon DataZone domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironment.kt index 65adf9304c..8b5545d945 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironment.kt @@ -29,11 +29,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.datazone.*; * CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment") * .domainIdentifier("domainIdentifier") - * .environmentProfileIdentifier("environmentProfileIdentifier") * .name("name") * .projectIdentifier("projectIdentifier") * // the properties below are optional * .description("description") + * .environmentAccountIdentifier("environmentAccountIdentifier") + * .environmentAccountRegion("environmentAccountRegion") + * .environmentProfileIdentifier("environmentProfileIdentifier") + * .environmentRoleArn("environmentRoleArn") * .glossaryTerms(List.of("glossaryTerms")) * .userParameters(List.of(EnvironmentParameterProperty.builder() * .name("name") @@ -46,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -148,11 +152,36 @@ public open class CfnEnvironment( unwrap(this).setDomainIdentifier(`value`) } + /** + * The identifier of the AWS account in which an environment exists. + */ + public open fun environmentAccountIdentifier(): String? = + unwrap(this).getEnvironmentAccountIdentifier() + + /** + * The identifier of the AWS account in which an environment exists. + */ + public open fun environmentAccountIdentifier(`value`: String) { + unwrap(this).setEnvironmentAccountIdentifier(`value`) + } + + /** + * The AWS Region in which an environment exists. + */ + public open fun environmentAccountRegion(): String? = unwrap(this).getEnvironmentAccountRegion() + + /** + * The AWS Region in which an environment exists. + */ + public open fun environmentAccountRegion(`value`: String) { + unwrap(this).setEnvironmentAccountRegion(`value`) + } + /** * The identifier of the environment profile that is used to create this Amazon DataZone * environment. */ - public open fun environmentProfileIdentifier(): String = + public open fun environmentProfileIdentifier(): String? = unwrap(this).getEnvironmentProfileIdentifier() /** @@ -163,6 +192,18 @@ public open class CfnEnvironment( unwrap(this).setEnvironmentProfileIdentifier(`value`) } + /** + * The ARN of the environment role. + */ + public open fun environmentRoleArn(): String? = unwrap(this).getEnvironmentRoleArn() + + /** + * The ARN of the environment role. + */ + public open fun environmentRoleArn(`value`: String) { + unwrap(this).setEnvironmentRoleArn(`value`) + } + /** * The glossary terms that can be used in this Amazon DataZone environment. */ @@ -259,6 +300,23 @@ public open class CfnEnvironment( */ public fun domainIdentifier(domainIdentifier: String) + /** + * The identifier of the AWS account in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountidentifier) + * @param environmentAccountIdentifier The identifier of the AWS account in which an environment + * exists. + */ + public fun environmentAccountIdentifier(environmentAccountIdentifier: String) + + /** + * The AWS Region in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountregion) + * @param environmentAccountRegion The AWS Region in which an environment exists. + */ + public fun environmentAccountRegion(environmentAccountRegion: String) + /** * The identifier of the environment profile that is used to create this Amazon DataZone * environment. @@ -269,6 +327,14 @@ public open class CfnEnvironment( */ public fun environmentProfileIdentifier(environmentProfileIdentifier: String) + /** + * The ARN of the environment role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentrolearn) + * @param environmentRoleArn The ARN of the environment role. + */ + public fun environmentRoleArn(environmentRoleArn: String) + /** * The glossary terms that can be used in this Amazon DataZone environment. * @@ -357,6 +423,27 @@ public open class CfnEnvironment( cdkBuilder.domainIdentifier(domainIdentifier) } + /** + * The identifier of the AWS account in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountidentifier) + * @param environmentAccountIdentifier The identifier of the AWS account in which an environment + * exists. + */ + override fun environmentAccountIdentifier(environmentAccountIdentifier: String) { + cdkBuilder.environmentAccountIdentifier(environmentAccountIdentifier) + } + + /** + * The AWS Region in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountregion) + * @param environmentAccountRegion The AWS Region in which an environment exists. + */ + override fun environmentAccountRegion(environmentAccountRegion: String) { + cdkBuilder.environmentAccountRegion(environmentAccountRegion) + } + /** * The identifier of the environment profile that is used to create this Amazon DataZone * environment. @@ -369,6 +456,16 @@ public open class CfnEnvironment( cdkBuilder.environmentProfileIdentifier(environmentProfileIdentifier) } + /** + * The ARN of the environment role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentrolearn) + * @param environmentRoleArn The ARN of the environment role. + */ + override fun environmentRoleArn(environmentRoleArn: String) { + cdkBuilder.environmentRoleArn(environmentRoleArn) + } + /** * The glossary terms that can be used in this Amazon DataZone environment. * @@ -540,7 +637,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironment.EnvironmentParameterProperty, - ) : CdkObject(cdkObject), EnvironmentParameterProperty { + ) : CdkObject(cdkObject), + EnvironmentParameterProperty { /** * The name of the environment parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActions.kt new file mode 100644 index 0000000000..5aa7a79cfc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActions.kt @@ -0,0 +1,452 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The details about the specified action configured for an environment. + * + * For example, the details of the specified console links for an analytics tool that is available + * in this environment. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnEnvironmentActions cfnEnvironmentActions = CfnEnvironmentActions.Builder.create(this, + * "MyCfnEnvironmentActions") + * .name("name") + * // the properties below are optional + * .description("description") + * .domainIdentifier("domainIdentifier") + * .environmentIdentifier("environmentIdentifier") + * .identifier("identifier") + * .parameters(AwsConsoleLinkParametersProperty.builder() + * .uri("uri") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html) + */ +public open class CfnEnvironmentActions( + cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActions, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEnvironmentActionsProps, + ) : + this(software.amazon.awscdk.services.datazone.CfnEnvironmentActions(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnEnvironmentActionsProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEnvironmentActionsProps.Builder.() -> Unit, + ) : this(scope, id, CfnEnvironmentActionsProps(props) + ) + + /** + * The Amazon DataZone domain ID of the environment action. + */ + public open fun attrDomainId(): String = unwrap(this).getAttrDomainId() + + /** + * The environment ID of the environment action. + */ + public open fun attrEnvironmentId(): String = unwrap(this).getAttrEnvironmentId() + + /** + * The ID of the environment action. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The description of the Amazon DataZone environment action. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the Amazon DataZone environment action. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The Amazon DataZone domain ID of the environment action. + */ + public open fun domainIdentifier(): String? = unwrap(this).getDomainIdentifier() + + /** + * The Amazon DataZone domain ID of the environment action. + */ + public open fun domainIdentifier(`value`: String) { + unwrap(this).setDomainIdentifier(`value`) + } + + /** + * The environment ID of the environment action. + */ + public open fun environmentIdentifier(): String? = unwrap(this).getEnvironmentIdentifier() + + /** + * The environment ID of the environment action. + */ + public open fun environmentIdentifier(`value`: String) { + unwrap(this).setEnvironmentIdentifier(`value`) + } + + /** + * The ID of the environment action. + */ + public open fun identifier(): String? = unwrap(this).getIdentifier() + + /** + * The ID of the environment action. + */ + public open fun identifier(`value`: String) { + unwrap(this).setIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the environment action. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the environment action. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The parameters of the console link specified as part of the environment action. + */ + public open fun parameters(): Any? = unwrap(this).getParameters() + + /** + * The parameters of the console link specified as part of the environment action. + */ + public open fun parameters(`value`: IResolvable) { + unwrap(this).setParameters(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The parameters of the console link specified as part of the environment action. + */ + public open fun parameters(`value`: AwsConsoleLinkParametersProperty) { + unwrap(this).setParameters(`value`.let(AwsConsoleLinkParametersProperty.Companion::unwrap)) + } + + /** + * The parameters of the console link specified as part of the environment action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd6d337866bc63257ccf94888fcf9a120a7d83c116526345a4d37a3cbfeadab8") + public open fun parameters(`value`: AwsConsoleLinkParametersProperty.Builder.() -> Unit): Unit = + parameters(AwsConsoleLinkParametersProperty(`value`)) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.datazone.CfnEnvironmentActions]. + */ + @CdkDslMarker + public interface Builder { + /** + * The description of the Amazon DataZone environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-description) + * @param description The description of the Amazon DataZone environment action. + */ + public fun description(description: String) + + /** + * The Amazon DataZone domain ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-domainidentifier) + * @param domainIdentifier The Amazon DataZone domain ID of the environment action. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * The environment ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-environmentidentifier) + * @param environmentIdentifier The environment ID of the environment action. + */ + public fun environmentIdentifier(environmentIdentifier: String) + + /** + * The ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-identifier) + * @param identifier The ID of the environment action. + */ + public fun identifier(identifier: String) + + /** + * The name of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-name) + * @param name The name of the environment action. + */ + public fun name(name: String) + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + public fun parameters(parameters: IResolvable) + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + public fun parameters(parameters: AwsConsoleLinkParametersProperty) + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("07f721f53aaaaa562d7534a76496b990cb9f6ff2c36fb208d27829fa9cbd4e72") + public fun parameters(parameters: AwsConsoleLinkParametersProperty.Builder.() -> Unit) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnEnvironmentActions.Builder = + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.Builder.create(scope, id) + + /** + * The description of the Amazon DataZone environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-description) + * @param description The description of the Amazon DataZone environment action. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The Amazon DataZone domain ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-domainidentifier) + * @param domainIdentifier The Amazon DataZone domain ID of the environment action. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * The environment ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-environmentidentifier) + * @param environmentIdentifier The environment ID of the environment action. + */ + override fun environmentIdentifier(environmentIdentifier: String) { + cdkBuilder.environmentIdentifier(environmentIdentifier) + } + + /** + * The ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-identifier) + * @param identifier The ID of the environment action. + */ + override fun identifier(identifier: String) { + cdkBuilder.identifier(identifier) + } + + /** + * The name of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-name) + * @param name The name of the environment action. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + override fun parameters(parameters: AwsConsoleLinkParametersProperty) { + cdkBuilder.parameters(parameters.let(AwsConsoleLinkParametersProperty.Companion::unwrap)) + } + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("07f721f53aaaaa562d7534a76496b990cb9f6ff2c36fb208d27829fa9cbd4e72") + override fun parameters(parameters: AwsConsoleLinkParametersProperty.Builder.() -> Unit): Unit = + parameters(AwsConsoleLinkParametersProperty(parameters)) + + public fun build(): software.amazon.awscdk.services.datazone.CfnEnvironmentActions = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnEnvironmentActions { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnEnvironmentActions(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActions): + CfnEnvironmentActions = CfnEnvironmentActions(cdkObject) + + internal fun unwrap(wrapped: CfnEnvironmentActions): + software.amazon.awscdk.services.datazone.CfnEnvironmentActions = wrapped.cdkObject as + software.amazon.awscdk.services.datazone.CfnEnvironmentActions + } + + /** + * The parameters of the console link specified as part of the environment action. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * AwsConsoleLinkParametersProperty awsConsoleLinkParametersProperty = + * AwsConsoleLinkParametersProperty.builder() + * .uri("uri") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-environmentactions-awsconsolelinkparameters.html) + */ + public interface AwsConsoleLinkParametersProperty { + /** + * The URI of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-environmentactions-awsconsolelinkparameters.html#cfn-datazone-environmentactions-awsconsolelinkparameters-uri) + */ + public fun uri(): String? = unwrap(this).getUri() + + /** + * A builder for [AwsConsoleLinkParametersProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param uri The URI of the console link specified as part of the environment action. + */ + public fun uri(uri: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty.Builder + = + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty.builder() + + /** + * @param uri The URI of the console link specified as part of the environment action. + */ + override fun uri(uri: String) { + cdkBuilder.uri(uri) + } + + public fun build(): + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty, + ) : CdkObject(cdkObject), + AwsConsoleLinkParametersProperty { + /** + * The URI of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-environmentactions-awsconsolelinkparameters.html#cfn-datazone-environmentactions-awsconsolelinkparameters-uri) + */ + override fun uri(): String? = unwrap(this).getUri() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AwsConsoleLinkParametersProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty): + AwsConsoleLinkParametersProperty = CdkObjectWrappers.wrap(cdkObject) as? + AwsConsoleLinkParametersProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AwsConsoleLinkParametersProperty): + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.datazone.CfnEnvironmentActions.AwsConsoleLinkParametersProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActionsProps.kt new file mode 100644 index 0000000000..2fb9e9ec7a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentActionsProps.kt @@ -0,0 +1,265 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnEnvironmentActions`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnEnvironmentActionsProps cfnEnvironmentActionsProps = CfnEnvironmentActionsProps.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .domainIdentifier("domainIdentifier") + * .environmentIdentifier("environmentIdentifier") + * .identifier("identifier") + * .parameters(AwsConsoleLinkParametersProperty.builder() + * .uri("uri") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html) + */ +public interface CfnEnvironmentActionsProps { + /** + * The description of the Amazon DataZone environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon DataZone domain ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-domainidentifier) + */ + public fun domainIdentifier(): String? = unwrap(this).getDomainIdentifier() + + /** + * The environment ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-environmentidentifier) + */ + public fun environmentIdentifier(): String? = unwrap(this).getEnvironmentIdentifier() + + /** + * The ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-identifier) + */ + public fun identifier(): String? = unwrap(this).getIdentifier() + + /** + * The name of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-name) + */ + public fun name(): String + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + */ + public fun parameters(): Any? = unwrap(this).getParameters() + + /** + * A builder for [CfnEnvironmentActionsProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description The description of the Amazon DataZone environment action. + */ + public fun description(description: String) + + /** + * @param domainIdentifier The Amazon DataZone domain ID of the environment action. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * @param environmentIdentifier The environment ID of the environment action. + */ + public fun environmentIdentifier(environmentIdentifier: String) + + /** + * @param identifier The ID of the environment action. + */ + public fun identifier(identifier: String) + + /** + * @param name The name of the environment action. + */ + public fun name(name: String) + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + public fun parameters(parameters: IResolvable) + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + public fun parameters(parameters: CfnEnvironmentActions.AwsConsoleLinkParametersProperty) + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("06e5e6d7c978e3cc4891b551f5d1024828f275b8604828aaf41f605e844c13fb") + public + fun parameters(parameters: CfnEnvironmentActions.AwsConsoleLinkParametersProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps.Builder = + software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps.builder() + + /** + * @param description The description of the Amazon DataZone environment action. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param domainIdentifier The Amazon DataZone domain ID of the environment action. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * @param environmentIdentifier The environment ID of the environment action. + */ + override fun environmentIdentifier(environmentIdentifier: String) { + cdkBuilder.environmentIdentifier(environmentIdentifier) + } + + /** + * @param identifier The ID of the environment action. + */ + override fun identifier(identifier: String) { + cdkBuilder.identifier(identifier) + } + + /** + * @param name The name of the environment action. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + override fun parameters(parameters: CfnEnvironmentActions.AwsConsoleLinkParametersProperty) { + cdkBuilder.parameters(parameters.let(CfnEnvironmentActions.AwsConsoleLinkParametersProperty.Companion::unwrap)) + } + + /** + * @param parameters The parameters of the console link specified as part of the environment + * action. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("06e5e6d7c978e3cc4891b551f5d1024828f275b8604828aaf41f605e844c13fb") + override + fun parameters(parameters: CfnEnvironmentActions.AwsConsoleLinkParametersProperty.Builder.() -> Unit): + Unit = parameters(CfnEnvironmentActions.AwsConsoleLinkParametersProperty(parameters)) + + public fun build(): software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps, + ) : CdkObject(cdkObject), + CfnEnvironmentActionsProps { + /** + * The description of the Amazon DataZone environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The Amazon DataZone domain ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-domainidentifier) + */ + override fun domainIdentifier(): String? = unwrap(this).getDomainIdentifier() + + /** + * The environment ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-environmentidentifier) + */ + override fun environmentIdentifier(): String? = unwrap(this).getEnvironmentIdentifier() + + /** + * The ID of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-identifier) + */ + override fun identifier(): String? = unwrap(this).getIdentifier() + + /** + * The name of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The parameters of the console link specified as part of the environment action. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentactions.html#cfn-datazone-environmentactions-parameters) + */ + override fun parameters(): Any? = unwrap(this).getParameters() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnEnvironmentActionsProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps): + CfnEnvironmentActionsProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnEnvironmentActionsProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnEnvironmentActionsProps): + software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.datazone.CfnEnvironmentActionsProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfiguration.kt index cb3f674b5e..b490318b06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfiguration.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironmentBlueprintConfiguration( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentBlueprintConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -486,7 +487,8 @@ public open class CfnEnvironmentBlueprintConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentBlueprintConfiguration.RegionalParameterProperty, - ) : CdkObject(cdkObject), RegionalParameterProperty { + ) : CdkObject(cdkObject), + RegionalParameterProperty { /** * A string to string map containing parameters for the region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfigurationProps.kt index f35feb0fea..3a67664c5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentBlueprintConfigurationProps.kt @@ -214,7 +214,8 @@ public interface CfnEnvironmentBlueprintConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentBlueprintConfigurationProps, - ) : CdkObject(cdkObject), CfnEnvironmentBlueprintConfigurationProps { + ) : CdkObject(cdkObject), + CfnEnvironmentBlueprintConfigurationProps { /** * The identifier of the Amazon DataZone domain in which an environment blueprint exists. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfile.kt index 29fc7f0f4b..e17ad62ce3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfile.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironmentProfile( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentProfile, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -514,7 +515,8 @@ public open class CfnEnvironmentProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentProfile.EnvironmentParameterProperty, - ) : CdkObject(cdkObject), EnvironmentParameterProperty { + ) : CdkObject(cdkObject), + EnvironmentParameterProperty { /** * The name specified in the environment parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfileProps.kt index 3eca6abd8c..03f841729d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProfileProps.kt @@ -235,7 +235,8 @@ public interface CfnEnvironmentProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentProfileProps, - ) : CdkObject(cdkObject), CfnEnvironmentProfileProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProfileProps { /** * The identifier of an AWS account in which an environment profile exists. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProps.kt index c0d3aa1037..44f9475fa1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnEnvironmentProps.kt @@ -22,11 +22,14 @@ import kotlin.collections.List * import io.cloudshiftdev.awscdk.services.datazone.*; * CfnEnvironmentProps cfnEnvironmentProps = CfnEnvironmentProps.builder() * .domainIdentifier("domainIdentifier") - * .environmentProfileIdentifier("environmentProfileIdentifier") * .name("name") * .projectIdentifier("projectIdentifier") * // the properties below are optional * .description("description") + * .environmentAccountIdentifier("environmentAccountIdentifier") + * .environmentAccountRegion("environmentAccountRegion") + * .environmentProfileIdentifier("environmentProfileIdentifier") + * .environmentRoleArn("environmentRoleArn") * .glossaryTerms(List.of("glossaryTerms")) * .userParameters(List.of(EnvironmentParameterProperty.builder() * .name("name") @@ -52,13 +55,36 @@ public interface CfnEnvironmentProps { */ public fun domainIdentifier(): String + /** + * The identifier of the AWS account in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountidentifier) + */ + public fun environmentAccountIdentifier(): String? = + unwrap(this).getEnvironmentAccountIdentifier() + + /** + * The AWS Region in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountregion) + */ + public fun environmentAccountRegion(): String? = unwrap(this).getEnvironmentAccountRegion() + /** * The identifier of the environment profile that is used to create this Amazon DataZone * environment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentprofileidentifier) */ - public fun environmentProfileIdentifier(): String + public fun environmentProfileIdentifier(): String? = + unwrap(this).getEnvironmentProfileIdentifier() + + /** + * The ARN of the environment role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentrolearn) + */ + public fun environmentRoleArn(): String? = unwrap(this).getEnvironmentRoleArn() /** * The glossary terms that can be used in this Amazon DataZone environment. @@ -104,12 +130,28 @@ public interface CfnEnvironmentProps { */ public fun domainIdentifier(domainIdentifier: String) + /** + * @param environmentAccountIdentifier The identifier of the AWS account in which an environment + * exists. + */ + public fun environmentAccountIdentifier(environmentAccountIdentifier: String) + + /** + * @param environmentAccountRegion The AWS Region in which an environment exists. + */ + public fun environmentAccountRegion(environmentAccountRegion: String) + /** * @param environmentProfileIdentifier The identifier of the environment profile that is used to - * create this Amazon DataZone environment. + * create this Amazon DataZone environment. */ public fun environmentProfileIdentifier(environmentProfileIdentifier: String) + /** + * @param environmentRoleArn The ARN of the environment role. + */ + public fun environmentRoleArn(environmentRoleArn: String) + /** * @param glossaryTerms The glossary terms that can be used in this Amazon DataZone environment. */ @@ -166,14 +208,36 @@ public interface CfnEnvironmentProps { cdkBuilder.domainIdentifier(domainIdentifier) } + /** + * @param environmentAccountIdentifier The identifier of the AWS account in which an environment + * exists. + */ + override fun environmentAccountIdentifier(environmentAccountIdentifier: String) { + cdkBuilder.environmentAccountIdentifier(environmentAccountIdentifier) + } + + /** + * @param environmentAccountRegion The AWS Region in which an environment exists. + */ + override fun environmentAccountRegion(environmentAccountRegion: String) { + cdkBuilder.environmentAccountRegion(environmentAccountRegion) + } + /** * @param environmentProfileIdentifier The identifier of the environment profile that is used to - * create this Amazon DataZone environment. + * create this Amazon DataZone environment. */ override fun environmentProfileIdentifier(environmentProfileIdentifier: String) { cdkBuilder.environmentProfileIdentifier(environmentProfileIdentifier) } + /** + * @param environmentRoleArn The ARN of the environment role. + */ + override fun environmentRoleArn(environmentRoleArn: String) { + cdkBuilder.environmentRoleArn(environmentRoleArn) + } + /** * @param glossaryTerms The glossary terms that can be used in this Amazon DataZone environment. */ @@ -228,7 +292,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * The description of the environment. * @@ -243,15 +308,37 @@ public interface CfnEnvironmentProps { */ override fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + /** + * The identifier of the AWS account in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountidentifier) + */ + override fun environmentAccountIdentifier(): String? = + unwrap(this).getEnvironmentAccountIdentifier() + + /** + * The AWS Region in which an environment exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentaccountregion) + */ + override fun environmentAccountRegion(): String? = unwrap(this).getEnvironmentAccountRegion() + /** * The identifier of the environment profile that is used to create this Amazon DataZone * environment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentprofileidentifier) */ - override fun environmentProfileIdentifier(): String = + override fun environmentProfileIdentifier(): String? = unwrap(this).getEnvironmentProfileIdentifier() + /** + * The ARN of the environment role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environment.html#cfn-datazone-environment-environmentrolearn) + */ + override fun environmentRoleArn(): String? = unwrap(this).getEnvironmentRoleArn() + /** * The glossary terms that can be used in this Amazon DataZone environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfile.kt new file mode 100644 index 0000000000..ff04fafba4 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfile.kt @@ -0,0 +1,206 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The details of a group profile in Amazon DataZone. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnGroupProfile cfnGroupProfile = CfnGroupProfile.Builder.create(this, "MyCfnGroupProfile") + * .domainIdentifier("domainIdentifier") + * .groupIdentifier("groupIdentifier") + * // the properties below are optional + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html) + */ +public open class CfnGroupProfile( + cdkObject: software.amazon.awscdk.services.datazone.CfnGroupProfile, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnGroupProfileProps, + ) : + this(software.amazon.awscdk.services.datazone.CfnGroupProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnGroupProfileProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnGroupProfileProps.Builder.() -> Unit, + ) : this(scope, id, CfnGroupProfileProps(props) + ) + + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + */ + public open fun attrDomainId(): String = unwrap(this).getAttrDomainId() + + /** + * The name of a group profile. + */ + public open fun attrGroupName(): String = unwrap(this).getAttrGroupName() + + /** + * The ID of a group profile. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + */ + public open fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + */ + public open fun domainIdentifier(`value`: String) { + unwrap(this).setDomainIdentifier(`value`) + } + + /** + * The ID of the group of a project member. + */ + public open fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * The ID of the group of a project member. + */ + public open fun groupIdentifier(`value`: String) { + unwrap(this).setGroupIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The status of a group profile. + */ + public open fun status(): String? = unwrap(this).getStatus() + + /** + * The status of a group profile. + */ + public open fun status(`value`: String) { + unwrap(this).setStatus(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.datazone.CfnGroupProfile]. + */ + @CdkDslMarker + public interface Builder { + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-domainidentifier) + * @param domainIdentifier The identifier of the Amazon DataZone domain in which a group profile + * exists. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-groupidentifier) + * @param groupIdentifier The ID of the group of a project member. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * The status of a group profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-status) + * @param status The status of a group profile. + */ + public fun status(status: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnGroupProfile.Builder = + software.amazon.awscdk.services.datazone.CfnGroupProfile.Builder.create(scope, id) + + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-domainidentifier) + * @param domainIdentifier The identifier of the Amazon DataZone domain in which a group profile + * exists. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-groupidentifier) + * @param groupIdentifier The ID of the group of a project member. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * The status of a group profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-status) + * @param status The status of a group profile. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnGroupProfile = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.datazone.CfnGroupProfile.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnGroupProfile { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnGroupProfile(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnGroupProfile): + CfnGroupProfile = CfnGroupProfile(cdkObject) + + internal fun unwrap(wrapped: CfnGroupProfile): + software.amazon.awscdk.services.datazone.CfnGroupProfile = wrapped.cdkObject as + software.amazon.awscdk.services.datazone.CfnGroupProfile + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfileProps.kt new file mode 100644 index 0000000000..6f6aea4e0c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnGroupProfileProps.kt @@ -0,0 +1,144 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnGroupProfile`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnGroupProfileProps cfnGroupProfileProps = CfnGroupProfileProps.builder() + * .domainIdentifier("domainIdentifier") + * .groupIdentifier("groupIdentifier") + * // the properties below are optional + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html) + */ +public interface CfnGroupProfileProps { + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-domainidentifier) + */ + public fun domainIdentifier(): String + + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-groupidentifier) + */ + public fun groupIdentifier(): String + + /** + * The status of a group profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-status) + */ + public fun status(): String? = unwrap(this).getStatus() + + /** + * A builder for [CfnGroupProfileProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param domainIdentifier The identifier of the Amazon DataZone domain in which a group profile + * exists. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * @param groupIdentifier The ID of the group of a project member. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * @param status The status of a group profile. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnGroupProfileProps.Builder = + software.amazon.awscdk.services.datazone.CfnGroupProfileProps.builder() + + /** + * @param domainIdentifier The identifier of the Amazon DataZone domain in which a group profile + * exists. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * @param groupIdentifier The ID of the group of a project member. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * @param status The status of a group profile. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnGroupProfileProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnGroupProfileProps, + ) : CdkObject(cdkObject), + CfnGroupProfileProps { + /** + * The identifier of the Amazon DataZone domain in which a group profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-domainidentifier) + */ + override fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-groupidentifier) + */ + override fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * The status of a group profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-status) + */ + override fun status(): String? = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnGroupProfileProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnGroupProfileProps): + CfnGroupProfileProps = CdkObjectWrappers.wrap(cdkObject) as? CfnGroupProfileProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnGroupProfileProps): + software.amazon.awscdk.services.datazone.CfnGroupProfileProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.datazone.CfnGroupProfileProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProject.kt index 115b8d862e..fac25b7717 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProject.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.datazone.CfnProject, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembership.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembership.kt new file mode 100644 index 0000000000..c0da8d377b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembership.kt @@ -0,0 +1,401 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::DataZone::ProjectMembership` resource adds a member to an Amazon DataZone project. + * + * Project members consume assets from the Amazon DataZone catalog and produce new assets using one + * or more analytical workflows. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnProjectMembership cfnProjectMembership = CfnProjectMembership.Builder.create(this, + * "MyCfnProjectMembership") + * .designation("designation") + * .domainIdentifier("domainIdentifier") + * .member(MemberProperty.builder() + * .groupIdentifier("groupIdentifier") + * .userIdentifier("userIdentifier") + * .build()) + * .projectIdentifier("projectIdentifier") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html) + */ +public open class CfnProjectMembership( + cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembership, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnProjectMembershipProps, + ) : + this(software.amazon.awscdk.services.datazone.CfnProjectMembership(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnProjectMembershipProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnProjectMembershipProps.Builder.() -> Unit, + ) : this(scope, id, CfnProjectMembershipProps(props) + ) + + /** + * The designated role of a project member. + */ + public open fun designation(): String = unwrap(this).getDesignation() + + /** + * The designated role of a project member. + */ + public open fun designation(`value`: String) { + unwrap(this).setDesignation(`value`) + } + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + */ + public open fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + */ + public open fun domainIdentifier(`value`: String) { + unwrap(this).setDomainIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The details about a project member. + */ + public open fun member(): Any = unwrap(this).getMember() + + /** + * The details about a project member. + */ + public open fun member(`value`: IResolvable) { + unwrap(this).setMember(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The details about a project member. + */ + public open fun member(`value`: MemberProperty) { + unwrap(this).setMember(`value`.let(MemberProperty.Companion::unwrap)) + } + + /** + * The details about a project member. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e7ab5b3968ef2e82af7d7d0ec6a4904ffb6cf66caa87ece05eb0b8e4fe95c4e3") + public open fun member(`value`: MemberProperty.Builder.() -> Unit): Unit = + member(MemberProperty(`value`)) + + /** + * The ID of the project for which this project membership was created. + */ + public open fun projectIdentifier(): String = unwrap(this).getProjectIdentifier() + + /** + * The ID of the project for which this project membership was created. + */ + public open fun projectIdentifier(`value`: String) { + unwrap(this).setProjectIdentifier(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.datazone.CfnProjectMembership]. + */ + @CdkDslMarker + public interface Builder { + /** + * The designated role of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-designation) + * @param designation The designated role of a project member. + */ + public fun designation(designation: String) + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-domainidentifier) + * @param domainIdentifier The ID of the Amazon DataZone domain in which project membership is + * created. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + public fun member(member: IResolvable) + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + public fun member(member: MemberProperty) + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1b2b4da8f6cdbf2dc3b01a814753d1c4baeff63777b990f5f2e30e0cbad36712") + public fun member(member: MemberProperty.Builder.() -> Unit) + + /** + * The ID of the project for which this project membership was created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-projectidentifier) + * @param projectIdentifier The ID of the project for which this project membership was created. + * + */ + public fun projectIdentifier(projectIdentifier: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnProjectMembership.Builder = + software.amazon.awscdk.services.datazone.CfnProjectMembership.Builder.create(scope, id) + + /** + * The designated role of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-designation) + * @param designation The designated role of a project member. + */ + override fun designation(designation: String) { + cdkBuilder.designation(designation) + } + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-domainidentifier) + * @param domainIdentifier The ID of the Amazon DataZone domain in which project membership is + * created. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + override fun member(member: IResolvable) { + cdkBuilder.member(member.let(IResolvable.Companion::unwrap)) + } + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + override fun member(member: MemberProperty) { + cdkBuilder.member(member.let(MemberProperty.Companion::unwrap)) + } + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + * @param member The details about a project member. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1b2b4da8f6cdbf2dc3b01a814753d1c4baeff63777b990f5f2e30e0cbad36712") + override fun member(member: MemberProperty.Builder.() -> Unit): Unit = + member(MemberProperty(member)) + + /** + * The ID of the project for which this project membership was created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-projectidentifier) + * @param projectIdentifier The ID of the project for which this project membership was created. + * + */ + override fun projectIdentifier(projectIdentifier: String) { + cdkBuilder.projectIdentifier(projectIdentifier) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnProjectMembership = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.datazone.CfnProjectMembership.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnProjectMembership { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnProjectMembership(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembership): + CfnProjectMembership = CfnProjectMembership(cdkObject) + + internal fun unwrap(wrapped: CfnProjectMembership): + software.amazon.awscdk.services.datazone.CfnProjectMembership = wrapped.cdkObject as + software.amazon.awscdk.services.datazone.CfnProjectMembership + } + + /** + * The details about a project member. + * + * Important - this data type is a UNION, so only one of the following members can be specified + * when used or returned. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * MemberProperty memberProperty = MemberProperty.builder() + * .groupIdentifier("groupIdentifier") + * .userIdentifier("userIdentifier") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectmembership-member.html) + */ + public interface MemberProperty { + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectmembership-member.html#cfn-datazone-projectmembership-member-groupidentifier) + */ + public fun groupIdentifier(): String? = unwrap(this).getGroupIdentifier() + + /** + * The user ID of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectmembership-member.html#cfn-datazone-projectmembership-member-useridentifier) + */ + public fun userIdentifier(): String? = unwrap(this).getUserIdentifier() + + /** + * A builder for [MemberProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param groupIdentifier The ID of the group of a project member. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * @param userIdentifier The user ID of a project member. + */ + public fun userIdentifier(userIdentifier: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty.Builder = + software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty.builder() + + /** + * @param groupIdentifier The ID of the group of a project member. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * @param userIdentifier The user ID of a project member. + */ + override fun userIdentifier(userIdentifier: String) { + cdkBuilder.userIdentifier(userIdentifier) + } + + public fun build(): + software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty, + ) : CdkObject(cdkObject), + MemberProperty { + /** + * The ID of the group of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectmembership-member.html#cfn-datazone-projectmembership-member-groupidentifier) + */ + override fun groupIdentifier(): String? = unwrap(this).getGroupIdentifier() + + /** + * The user ID of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectmembership-member.html#cfn-datazone-projectmembership-member-useridentifier) + */ + override fun userIdentifier(): String? = unwrap(this).getUserIdentifier() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MemberProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty): + MemberProperty = CdkObjectWrappers.wrap(cdkObject) as? MemberProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MemberProperty): + software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.datazone.CfnProjectMembership.MemberProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembershipProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembershipProps.kt new file mode 100644 index 0000000000..f5fc8c4b00 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectMembershipProps.kt @@ -0,0 +1,207 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnProjectMembership`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnProjectMembershipProps cfnProjectMembershipProps = CfnProjectMembershipProps.builder() + * .designation("designation") + * .domainIdentifier("domainIdentifier") + * .member(MemberProperty.builder() + * .groupIdentifier("groupIdentifier") + * .userIdentifier("userIdentifier") + * .build()) + * .projectIdentifier("projectIdentifier") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html) + */ +public interface CfnProjectMembershipProps { + /** + * The designated role of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-designation) + */ + public fun designation(): String + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-domainidentifier) + */ + public fun domainIdentifier(): String + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + */ + public fun member(): Any + + /** + * The ID of the project for which this project membership was created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-projectidentifier) + */ + public fun projectIdentifier(): String + + /** + * A builder for [CfnProjectMembershipProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param designation The designated role of a project member. + */ + public fun designation(designation: String) + + /** + * @param domainIdentifier The ID of the Amazon DataZone domain in which project membership is + * created. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * @param member The details about a project member. + */ + public fun member(member: IResolvable) + + /** + * @param member The details about a project member. + */ + public fun member(member: CfnProjectMembership.MemberProperty) + + /** + * @param member The details about a project member. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("76797a94a27a556a30815e8a983c2180a75194143dbc5ad1d409910b175617c8") + public fun member(member: CfnProjectMembership.MemberProperty.Builder.() -> Unit) + + /** + * @param projectIdentifier The ID of the project for which this project membership was created. + * + */ + public fun projectIdentifier(projectIdentifier: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnProjectMembershipProps.Builder = + software.amazon.awscdk.services.datazone.CfnProjectMembershipProps.builder() + + /** + * @param designation The designated role of a project member. + */ + override fun designation(designation: String) { + cdkBuilder.designation(designation) + } + + /** + * @param domainIdentifier The ID of the Amazon DataZone domain in which project membership is + * created. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * @param member The details about a project member. + */ + override fun member(member: IResolvable) { + cdkBuilder.member(member.let(IResolvable.Companion::unwrap)) + } + + /** + * @param member The details about a project member. + */ + override fun member(member: CfnProjectMembership.MemberProperty) { + cdkBuilder.member(member.let(CfnProjectMembership.MemberProperty.Companion::unwrap)) + } + + /** + * @param member The details about a project member. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("76797a94a27a556a30815e8a983c2180a75194143dbc5ad1d409910b175617c8") + override fun member(member: CfnProjectMembership.MemberProperty.Builder.() -> Unit): Unit = + member(CfnProjectMembership.MemberProperty(member)) + + /** + * @param projectIdentifier The ID of the project for which this project membership was created. + * + */ + override fun projectIdentifier(projectIdentifier: String) { + cdkBuilder.projectIdentifier(projectIdentifier) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnProjectMembershipProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembershipProps, + ) : CdkObject(cdkObject), + CfnProjectMembershipProps { + /** + * The designated role of a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-designation) + */ + override fun designation(): String = unwrap(this).getDesignation() + + /** + * The ID of the Amazon DataZone domain in which project membership is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-domainidentifier) + */ + override fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The details about a project member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-member) + */ + override fun member(): Any = unwrap(this).getMember() + + /** + * The ID of the project for which this project membership was created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-projectmembership.html#cfn-datazone-projectmembership-projectidentifier) + */ + override fun projectIdentifier(): String = unwrap(this).getProjectIdentifier() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnProjectMembershipProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnProjectMembershipProps): + CfnProjectMembershipProps = CdkObjectWrappers.wrap(cdkObject) as? CfnProjectMembershipProps + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnProjectMembershipProps): + software.amazon.awscdk.services.datazone.CfnProjectMembershipProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.datazone.CfnProjectMembershipProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectProps.kt index 4ee2ca75a5..10bc458976 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnProjectProps.kt @@ -133,7 +133,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The description of a project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTarget.kt index ec6664e25b..9342fde082 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTarget.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscriptionTarget( cdkObject: software.amazon.awscdk.services.datazone.CfnSubscriptionTarget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -604,7 +605,8 @@ public open class CfnSubscriptionTarget( private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnSubscriptionTarget.SubscriptionTargetFormProperty, - ) : CdkObject(cdkObject), SubscriptionTargetFormProperty { + ) : CdkObject(cdkObject), + SubscriptionTargetFormProperty { /** * The content of the subscription target configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTargetProps.kt index 67aff35020..ffdbcab767 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnSubscriptionTargetProps.kt @@ -279,7 +279,8 @@ public interface CfnSubscriptionTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.datazone.CfnSubscriptionTargetProps, - ) : CdkObject(cdkObject), CfnSubscriptionTargetProps { + ) : CdkObject(cdkObject), + CfnSubscriptionTargetProps { /** * The asset types included in the subscription target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfile.kt new file mode 100644 index 0000000000..7abb18fd94 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfile.kt @@ -0,0 +1,638 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The user type of the user for which the user profile is created. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnUserProfile cfnUserProfile = CfnUserProfile.Builder.create(this, "MyCfnUserProfile") + * .domainIdentifier("domainIdentifier") + * .userIdentifier("userIdentifier") + * // the properties below are optional + * .status("status") + * .userType("userType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html) + */ +public open class CfnUserProfile( + cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnUserProfileProps, + ) : + this(software.amazon.awscdk.services.datazone.CfnUserProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnUserProfileProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnUserProfileProps.Builder.() -> Unit, + ) : this(scope, id, CfnUserProfileProps(props) + ) + + /** + * + */ + public open fun attrDetails(): IResolvable = unwrap(this).getAttrDetails().let(IResolvable::wrap) + + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + */ + public open fun attrDomainId(): String = unwrap(this).getAttrDomainId() + + /** + * The ID of the user profile. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The type of the user profile. + */ + public open fun attrType(): String = unwrap(this).getAttrType() + + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + */ + public open fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + */ + public open fun domainIdentifier(`value`: String) { + unwrap(this).setDomainIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The status of the user profile. + */ + public open fun status(): String? = unwrap(this).getStatus() + + /** + * The status of the user profile. + */ + public open fun status(`value`: String) { + unwrap(this).setStatus(`value`) + } + + /** + * The identifier of the user for which the user profile is created. + */ + public open fun userIdentifier(): String = unwrap(this).getUserIdentifier() + + /** + * The identifier of the user for which the user profile is created. + */ + public open fun userIdentifier(`value`: String) { + unwrap(this).setUserIdentifier(`value`) + } + + /** + * The user type of the user for which the user profile is created. + */ + public open fun userType(): String? = unwrap(this).getUserType() + + /** + * The user type of the user for which the user profile is created. + */ + public open fun userType(`value`: String) { + unwrap(this).setUserType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.datazone.CfnUserProfile]. + */ + @CdkDslMarker + public interface Builder { + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-domainidentifier) + * @param domainIdentifier The identifier of a Amazon DataZone domain in which a user profile + * exists. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * The status of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-status) + * @param status The status of the user profile. + */ + public fun status(status: String) + + /** + * The identifier of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-useridentifier) + * @param userIdentifier The identifier of the user for which the user profile is created. + */ + public fun userIdentifier(userIdentifier: String) + + /** + * The user type of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-usertype) + * @param userType The user type of the user for which the user profile is created. + */ + public fun userType(userType: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnUserProfile.Builder = + software.amazon.awscdk.services.datazone.CfnUserProfile.Builder.create(scope, id) + + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-domainidentifier) + * @param domainIdentifier The identifier of a Amazon DataZone domain in which a user profile + * exists. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * The status of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-status) + * @param status The status of the user profile. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * The identifier of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-useridentifier) + * @param userIdentifier The identifier of the user for which the user profile is created. + */ + override fun userIdentifier(userIdentifier: String) { + cdkBuilder.userIdentifier(userIdentifier) + } + + /** + * The user type of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-usertype) + * @param userType The user type of the user for which the user profile is created. + */ + override fun userType(userType: String) { + cdkBuilder.userType(userType) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnUserProfile = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.datazone.CfnUserProfile.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnUserProfile { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnUserProfile(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile): + CfnUserProfile = CfnUserProfile(cdkObject) + + internal fun unwrap(wrapped: CfnUserProfile): + software.amazon.awscdk.services.datazone.CfnUserProfile = wrapped.cdkObject as + software.amazon.awscdk.services.datazone.CfnUserProfile + } + + /** + * The details of an IAM user profile in Amazon DataZone. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * IamUserProfileDetailsProperty iamUserProfileDetailsProperty = + * IamUserProfileDetailsProperty.builder() + * .arn("arn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-iamuserprofiledetails.html) + */ + public interface IamUserProfileDetailsProperty { + /** + * The ARN of an IAM user profile in Amazon DataZone. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-iamuserprofiledetails.html#cfn-datazone-userprofile-iamuserprofiledetails-arn) + */ + public fun arn(): String? = unwrap(this).getArn() + + /** + * A builder for [IamUserProfileDetailsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param arn The ARN of an IAM user profile in Amazon DataZone. + */ + public fun arn(arn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty.Builder + = + software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty.builder() + + /** + * @param arn The ARN of an IAM user profile in Amazon DataZone. + */ + override fun arn(arn: String) { + cdkBuilder.arn(arn) + } + + public fun build(): + software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty, + ) : CdkObject(cdkObject), + IamUserProfileDetailsProperty { + /** + * The ARN of an IAM user profile in Amazon DataZone. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-iamuserprofiledetails.html#cfn-datazone-userprofile-iamuserprofiledetails-arn) + */ + override fun arn(): String? = unwrap(this).getArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IamUserProfileDetailsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty): + IamUserProfileDetailsProperty = CdkObjectWrappers.wrap(cdkObject) as? + IamUserProfileDetailsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IamUserProfileDetailsProperty): + software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.datazone.CfnUserProfile.IamUserProfileDetailsProperty + } + } + + /** + * The single sign-on details of the user profile. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * SsoUserProfileDetailsProperty ssoUserProfileDetailsProperty = + * SsoUserProfileDetailsProperty.builder() + * .firstName("firstName") + * .lastName("lastName") + * .username("username") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html) + */ + public interface SsoUserProfileDetailsProperty { + /** + * The first name included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-firstname) + */ + public fun firstName(): String? = unwrap(this).getFirstName() + + /** + * The last name included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-lastname) + */ + public fun lastName(): String? = unwrap(this).getLastName() + + /** + * The username included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-username) + */ + public fun username(): String? = unwrap(this).getUsername() + + /** + * A builder for [SsoUserProfileDetailsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param firstName The first name included in the single sign-on details of the user profile. + */ + public fun firstName(firstName: String) + + /** + * @param lastName The last name included in the single sign-on details of the user profile. + */ + public fun lastName(lastName: String) + + /** + * @param username The username included in the single sign-on details of the user profile. + */ + public fun username(username: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty.Builder + = + software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty.builder() + + /** + * @param firstName The first name included in the single sign-on details of the user profile. + */ + override fun firstName(firstName: String) { + cdkBuilder.firstName(firstName) + } + + /** + * @param lastName The last name included in the single sign-on details of the user profile. + */ + override fun lastName(lastName: String) { + cdkBuilder.lastName(lastName) + } + + /** + * @param username The username included in the single sign-on details of the user profile. + */ + override fun username(username: String) { + cdkBuilder.username(username) + } + + public fun build(): + software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty, + ) : CdkObject(cdkObject), + SsoUserProfileDetailsProperty { + /** + * The first name included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-firstname) + */ + override fun firstName(): String? = unwrap(this).getFirstName() + + /** + * The last name included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-lastname) + */ + override fun lastName(): String? = unwrap(this).getLastName() + + /** + * The username included in the single sign-on details of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-ssouserprofiledetails.html#cfn-datazone-userprofile-ssouserprofiledetails-username) + */ + override fun username(): String? = unwrap(this).getUsername() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SsoUserProfileDetailsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty): + SsoUserProfileDetailsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SsoUserProfileDetailsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SsoUserProfileDetailsProperty): + software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.datazone.CfnUserProfile.SsoUserProfileDetailsProperty + } + } + + /** + * The details of the user profile in Amazon DataZone. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * UserProfileDetailsProperty userProfileDetailsProperty = UserProfileDetailsProperty.builder() + * .iam(IamUserProfileDetailsProperty.builder() + * .arn("arn") + * .build()) + * .sso(SsoUserProfileDetailsProperty.builder() + * .firstName("firstName") + * .lastName("lastName") + * .username("username") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-userprofiledetails.html) + */ + public interface UserProfileDetailsProperty { + /** + * The IAM details included in the user profile details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-userprofiledetails.html#cfn-datazone-userprofile-userprofiledetails-iam) + */ + public fun iam(): Any? = unwrap(this).getIam() + + /** + * The single sign-on details included in the user profile details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-userprofiledetails.html#cfn-datazone-userprofile-userprofiledetails-sso) + */ + public fun sso(): Any? = unwrap(this).getSso() + + /** + * A builder for [UserProfileDetailsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param iam The IAM details included in the user profile details. + */ + public fun iam(iam: IResolvable) + + /** + * @param iam The IAM details included in the user profile details. + */ + public fun iam(iam: IamUserProfileDetailsProperty) + + /** + * @param iam The IAM details included in the user profile details. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("df7eac159b70372dc1f7a3d35a8765996a25b859040d908e380e3fcd640c6d93") + public fun iam(iam: IamUserProfileDetailsProperty.Builder.() -> Unit) + + /** + * @param sso The single sign-on details included in the user profile details. + */ + public fun sso(sso: IResolvable) + + /** + * @param sso The single sign-on details included in the user profile details. + */ + public fun sso(sso: SsoUserProfileDetailsProperty) + + /** + * @param sso The single sign-on details included in the user profile details. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d17e15464cc5d973431be5e17079126c7c79a8febfb90d7cfd8161a2a05b0451") + public fun sso(sso: SsoUserProfileDetailsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty.Builder + = + software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty.builder() + + /** + * @param iam The IAM details included in the user profile details. + */ + override fun iam(iam: IResolvable) { + cdkBuilder.iam(iam.let(IResolvable.Companion::unwrap)) + } + + /** + * @param iam The IAM details included in the user profile details. + */ + override fun iam(iam: IamUserProfileDetailsProperty) { + cdkBuilder.iam(iam.let(IamUserProfileDetailsProperty.Companion::unwrap)) + } + + /** + * @param iam The IAM details included in the user profile details. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("df7eac159b70372dc1f7a3d35a8765996a25b859040d908e380e3fcd640c6d93") + override fun iam(iam: IamUserProfileDetailsProperty.Builder.() -> Unit): Unit = + iam(IamUserProfileDetailsProperty(iam)) + + /** + * @param sso The single sign-on details included in the user profile details. + */ + override fun sso(sso: IResolvable) { + cdkBuilder.sso(sso.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sso The single sign-on details included in the user profile details. + */ + override fun sso(sso: SsoUserProfileDetailsProperty) { + cdkBuilder.sso(sso.let(SsoUserProfileDetailsProperty.Companion::unwrap)) + } + + /** + * @param sso The single sign-on details included in the user profile details. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d17e15464cc5d973431be5e17079126c7c79a8febfb90d7cfd8161a2a05b0451") + override fun sso(sso: SsoUserProfileDetailsProperty.Builder.() -> Unit): Unit = + sso(SsoUserProfileDetailsProperty(sso)) + + public fun build(): + software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty, + ) : CdkObject(cdkObject), + UserProfileDetailsProperty { + /** + * The IAM details included in the user profile details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-userprofiledetails.html#cfn-datazone-userprofile-userprofiledetails-iam) + */ + override fun iam(): Any? = unwrap(this).getIam() + + /** + * The single sign-on details included in the user profile details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-userprofile-userprofiledetails.html#cfn-datazone-userprofile-userprofiledetails-sso) + */ + override fun sso(): Any? = unwrap(this).getSso() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): UserProfileDetailsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty): + UserProfileDetailsProperty = CdkObjectWrappers.wrap(cdkObject) as? + UserProfileDetailsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: UserProfileDetailsProperty): + software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.datazone.CfnUserProfile.UserProfileDetailsProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfileProps.kt new file mode 100644 index 0000000000..97dabca6ab --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/datazone/CfnUserProfileProps.kt @@ -0,0 +1,171 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.datazone + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnUserProfile`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.datazone.*; + * CfnUserProfileProps cfnUserProfileProps = CfnUserProfileProps.builder() + * .domainIdentifier("domainIdentifier") + * .userIdentifier("userIdentifier") + * // the properties below are optional + * .status("status") + * .userType("userType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html) + */ +public interface CfnUserProfileProps { + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-domainidentifier) + */ + public fun domainIdentifier(): String + + /** + * The status of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-status) + */ + public fun status(): String? = unwrap(this).getStatus() + + /** + * The identifier of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-useridentifier) + */ + public fun userIdentifier(): String + + /** + * The user type of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-usertype) + */ + public fun userType(): String? = unwrap(this).getUserType() + + /** + * A builder for [CfnUserProfileProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param domainIdentifier The identifier of a Amazon DataZone domain in which a user profile + * exists. + */ + public fun domainIdentifier(domainIdentifier: String) + + /** + * @param status The status of the user profile. + */ + public fun status(status: String) + + /** + * @param userIdentifier The identifier of the user for which the user profile is created. + */ + public fun userIdentifier(userIdentifier: String) + + /** + * @param userType The user type of the user for which the user profile is created. + */ + public fun userType(userType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.datazone.CfnUserProfileProps.Builder = + software.amazon.awscdk.services.datazone.CfnUserProfileProps.builder() + + /** + * @param domainIdentifier The identifier of a Amazon DataZone domain in which a user profile + * exists. + */ + override fun domainIdentifier(domainIdentifier: String) { + cdkBuilder.domainIdentifier(domainIdentifier) + } + + /** + * @param status The status of the user profile. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * @param userIdentifier The identifier of the user for which the user profile is created. + */ + override fun userIdentifier(userIdentifier: String) { + cdkBuilder.userIdentifier(userIdentifier) + } + + /** + * @param userType The user type of the user for which the user profile is created. + */ + override fun userType(userType: String) { + cdkBuilder.userType(userType) + } + + public fun build(): software.amazon.awscdk.services.datazone.CfnUserProfileProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfileProps, + ) : CdkObject(cdkObject), + CfnUserProfileProps { + /** + * The identifier of a Amazon DataZone domain in which a user profile exists. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-domainidentifier) + */ + override fun domainIdentifier(): String = unwrap(this).getDomainIdentifier() + + /** + * The status of the user profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-status) + */ + override fun status(): String? = unwrap(this).getStatus() + + /** + * The identifier of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-useridentifier) + */ + override fun userIdentifier(): String = unwrap(this).getUserIdentifier() + + /** + * The user type of the user for which the user profile is created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-userprofile.html#cfn-datazone-userprofile-usertype) + */ + override fun userType(): String? = unwrap(this).getUserType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnUserProfileProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.datazone.CfnUserProfileProps): + CfnUserProfileProps = CdkObjectWrappers.wrap(cdkObject) as? CfnUserProfileProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnUserProfileProps): + software.amazon.awscdk.services.datazone.CfnUserProfileProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.datazone.CfnUserProfileProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnCluster.kt index 7649da5bd2..0b4db7c068 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnCluster.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.dax.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -882,7 +884,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.dax.CfnCluster.SSESpecificationProperty, - ) : CdkObject(cdkObject), SSESpecificationProperty { + ) : CdkObject(cdkObject), + SSESpecificationProperty { /** * Indicates whether server-side encryption is enabled (true) or disabled (false) on the * cluster. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnClusterProps.kt index 1fa2a23f92..aa888621d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnClusterProps.kt @@ -511,7 +511,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dax.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has * been created or updated. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroup.kt index a4fad445ba..c8889b04f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroup.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnParameterGroup( cdkObject: software.amazon.awscdk.services.dax.CfnParameterGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.dax.CfnParameterGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroupProps.kt index ffd45db353..3e2230715f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnParameterGroupProps.kt @@ -125,7 +125,8 @@ public interface CfnParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dax.CfnParameterGroupProps, - ) : CdkObject(cdkObject), CfnParameterGroupProps { + ) : CdkObject(cdkObject), + CfnParameterGroupProps { /** * A description of the parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroup.kt index 697c252881..65b0f85966 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroup.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetGroup( cdkObject: software.amazon.awscdk.services.dax.CfnSubnetGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroupProps.kt index a5e62ba2a1..9769114ea0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnSubnetGroupProps.kt @@ -111,7 +111,8 @@ public interface CfnSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dax.CfnSubnetGroupProps, - ) : CdkObject(cdkObject), CfnSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnSubnetGroupProps { /** * The description of the subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarm.kt index d6e02596bd..e05de0e5a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarm.kt @@ -3,11 +3,15 @@ package io.cloudshiftdev.awscdk.services.deadline import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.String import kotlin.Unit +import kotlin.collections.List import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -29,6 +33,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .description("description") * .kmsKeyArn("kmsKeyArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -36,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFarm( cdkObject: software.amazon.awscdk.services.deadline.CfnFarm, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -63,6 +73,12 @@ public open class CfnFarm( */ public open fun attrFarmId(): String = unwrap(this).getAttrFarmId() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * A description of the farm that helps identify what the farm is used for. */ @@ -108,6 +124,23 @@ public open class CfnFarm( unwrap(this).setKmsKeyArn(`value`) } + /** + * The tags to add to your farm. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to your farm. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your farm. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnFarm]. */ @@ -126,6 +159,11 @@ public open class CfnFarm( /** * The display name of the farm. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-displayname) * @param displayName The display name of the farm. */ @@ -138,6 +176,28 @@ public open class CfnFarm( * @param kmsKeyArn The ARN for the KMS key. */ public fun kmsKeyArn(kmsKeyArn: String) + + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + * @param tags The tags to add to your farm. + */ + public fun tags(tags: List) + + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + * @param tags The tags to add to your farm. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl( @@ -162,6 +222,11 @@ public open class CfnFarm( /** * The display name of the farm. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-displayname) * @param displayName The display name of the farm. */ @@ -179,6 +244,30 @@ public open class CfnFarm( cdkBuilder.kmsKeyArn(kmsKeyArn) } + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + * @param tags The tags to add to your farm. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + * @param tags The tags to add to your farm. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnFarm = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarmProps.kt index 62d71a9942..e3b0b4067b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFarmProps.kt @@ -2,11 +2,13 @@ package io.cloudshiftdev.awscdk.services.deadline +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.String import kotlin.Unit +import kotlin.collections.List /** * Properties for defining a `CfnFarm`. @@ -22,6 +24,10 @@ import kotlin.Unit * // the properties below are optional * .description("description") * .kmsKeyArn("kmsKeyArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -40,6 +46,11 @@ public interface CfnFarmProps { /** * The display name of the farm. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-displayname) */ public fun displayName(): String @@ -51,6 +62,16 @@ public interface CfnFarmProps { */ public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag + * values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * A builder for [CfnFarmProps] */ @@ -63,6 +84,9 @@ public interface CfnFarmProps { /** * @param displayName The display name of the farm. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ public fun displayName(displayName: String) @@ -70,6 +94,20 @@ public interface CfnFarmProps { * @param kmsKeyArn The ARN for the KMS key. */ public fun kmsKeyArn(kmsKeyArn: String) + + /** + * @param tags The tags to add to your farm. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to your farm. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl : Builder { @@ -85,6 +123,9 @@ public interface CfnFarmProps { /** * @param displayName The display name of the farm. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) @@ -97,12 +138,29 @@ public interface CfnFarmProps { cdkBuilder.kmsKeyArn(kmsKeyArn) } + /** + * @param tags The tags to add to your farm. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to your farm. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnFarmProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFarmProps, - ) : CdkObject(cdkObject), CfnFarmProps { + ) : CdkObject(cdkObject), + CfnFarmProps { /** * A description of the farm that helps identify what the farm is used for. * @@ -115,6 +173,11 @@ public interface CfnFarmProps { /** * The display name of the farm. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-displayname) */ override fun displayName(): String = unwrap(this).getDisplayName() @@ -125,6 +188,16 @@ public interface CfnFarmProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-kmskeyarn) */ override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The tags to add to your farm. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-farm.html#cfn-deadline-farm-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleet.kt index 4b95453e75..bfc12bf458 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleet.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.deadline import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -112,12 +115,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .displayName("displayName") + * .farmId("farmId") * .maxWorkerCount(123) * .roleArn("roleArn") * // the properties below are optional * .description("description") - * .farmId("farmId") * .minWorkerCount(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -125,7 +132,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -168,6 +177,12 @@ public open class CfnFleet( */ public open fun attrWorkerCount(): Number = unwrap(this).getAttrWorkerCount() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The configuration details for the fleet. */ @@ -222,7 +237,7 @@ public open class CfnFleet( /** * The farm ID. */ - public open fun farmId(): String? = unwrap(this).getFarmId() + public open fun farmId(): String = unwrap(this).getFarmId() /** * The farm ID. @@ -276,6 +291,23 @@ public open class CfnFleet( unwrap(this).setRoleArn(`value`) } + /** + * The tags to add to your fleet. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to your fleet. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your fleet. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnFleet]. */ @@ -320,6 +352,11 @@ public open class CfnFleet( /** * The display name of the fleet summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-displayname) * @param displayName The display name of the fleet summary to update. */ @@ -358,6 +395,28 @@ public open class CfnFleet( * @param roleArn The IAM role that workers in the fleet use when processing jobs. */ public fun roleArn(roleArn: String) + + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + * @param tags The tags to add to your fleet. + */ + public fun tags(tags: List) + + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + * @param tags The tags to add to your fleet. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl( @@ -413,6 +472,11 @@ public open class CfnFleet( /** * The display name of the fleet summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-displayname) * @param displayName The display name of the fleet summary to update. */ @@ -462,6 +526,30 @@ public open class CfnFleet( cdkBuilder.roleArn(roleArn) } + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + * @param tags The tags to add to your fleet. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + * @param tags The tags to add to your fleet. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnFleet = cdkBuilder.build() } @@ -561,7 +649,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.AcceleratorCountRangeProperty, - ) : CdkObject(cdkObject), AcceleratorCountRangeProperty { + ) : CdkObject(cdkObject), + AcceleratorCountRangeProperty { /** * The maximum GPU for the accelerator. * @@ -672,7 +761,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.AcceleratorTotalMemoryMiBRangeProperty, - ) : CdkObject(cdkObject), AcceleratorTotalMemoryMiBRangeProperty { + ) : CdkObject(cdkObject), + AcceleratorTotalMemoryMiBRangeProperty { /** * The maximum amount of memory to use for the accelerator, measured in MiB. * @@ -875,7 +965,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.CustomerManagedFleetConfigurationProperty, - ) : CdkObject(cdkObject), CustomerManagedFleetConfigurationProperty { + ) : CdkObject(cdkObject), + CustomerManagedFleetConfigurationProperty { /** * The AWS Auto Scaling mode for the customer managed fleet configuration. * @@ -1338,7 +1429,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.CustomerManagedWorkerCapabilitiesProperty, - ) : CdkObject(cdkObject), CustomerManagedWorkerCapabilitiesProperty { + ) : CdkObject(cdkObject), + CustomerManagedWorkerCapabilitiesProperty { /** * The range of the accelerator. * @@ -1522,7 +1614,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.Ec2EbsVolumeProperty, - ) : CdkObject(cdkObject), Ec2EbsVolumeProperty { + ) : CdkObject(cdkObject), + Ec2EbsVolumeProperty { /** * The IOPS per volume. * @@ -1665,7 +1758,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.FleetAmountCapabilityProperty, - ) : CdkObject(cdkObject), FleetAmountCapabilityProperty { + ) : CdkObject(cdkObject), + FleetAmountCapabilityProperty { /** * The maximum amount of the fleet worker capability. * @@ -1792,7 +1886,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.FleetAttributeCapabilityProperty, - ) : CdkObject(cdkObject), FleetAttributeCapabilityProperty { + ) : CdkObject(cdkObject), + FleetAttributeCapabilityProperty { /** * The name of the fleet attribute capability for the worker. * @@ -1952,7 +2047,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.FleetCapabilitiesProperty, - ) : CdkObject(cdkObject), FleetCapabilitiesProperty { + ) : CdkObject(cdkObject), + FleetCapabilitiesProperty { /** * Amount capabilities of the fleet. * @@ -2201,7 +2297,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.FleetConfigurationProperty, - ) : CdkObject(cdkObject), FleetConfigurationProperty { + ) : CdkObject(cdkObject), + FleetConfigurationProperty { /** * The customer managed fleets within a fleet configuration. * @@ -2309,7 +2406,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.MemoryMiBRangeProperty, - ) : CdkObject(cdkObject), MemoryMiBRangeProperty { + ) : CdkObject(cdkObject), + MemoryMiBRangeProperty { /** * The maximum amount of memory (in MiB). * @@ -2516,7 +2614,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.ServiceManagedEc2FleetConfigurationProperty, - ) : CdkObject(cdkObject), ServiceManagedEc2FleetConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceManagedEc2FleetConfigurationProperty { /** * The Amazon EC2 instance capabilities. * @@ -2945,7 +3044,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty, - ) : CdkObject(cdkObject), ServiceManagedEc2InstanceCapabilitiesProperty { + ) : CdkObject(cdkObject), + ServiceManagedEc2InstanceCapabilitiesProperty { /** * The allowable Amazon EC2 instance types. * @@ -3087,7 +3187,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.ServiceManagedEc2InstanceMarketOptionsProperty, - ) : CdkObject(cdkObject), ServiceManagedEc2InstanceMarketOptionsProperty { + ) : CdkObject(cdkObject), + ServiceManagedEc2InstanceMarketOptionsProperty { /** * The Amazon EC2 instance type. * @@ -3189,7 +3290,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleet.VCpuCountRangeProperty, - ) : CdkObject(cdkObject), VCpuCountRangeProperty { + ) : CdkObject(cdkObject), + VCpuCountRangeProperty { /** * The maximum amount of vCPU. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleetProps.kt index 6ec77d99d4..cd7f3d7d8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnFleetProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.deadline +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -10,6 +11,7 @@ import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName /** @@ -103,12 +105,16 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .displayName("displayName") + * .farmId("farmId") * .maxWorkerCount(123) * .roleArn("roleArn") * // the properties below are optional * .description("description") - * .farmId("farmId") * .minWorkerCount(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -134,6 +140,11 @@ public interface CfnFleetProps { /** * The display name of the fleet summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-displayname) */ public fun displayName(): String @@ -143,7 +154,7 @@ public interface CfnFleetProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-farmid) */ - public fun farmId(): String? = unwrap(this).getFarmId() + public fun farmId(): String /** * The maximum number of workers specified in the fleet. @@ -168,6 +179,16 @@ public interface CfnFleetProps { */ public fun roleArn(): String + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag + * values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * A builder for [CfnFleetProps] */ @@ -197,11 +218,14 @@ public interface CfnFleetProps { /** * @param displayName The display name of the fleet summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ public fun displayName(displayName: String) /** - * @param farmId The farm ID. + * @param farmId The farm ID. */ public fun farmId(farmId: String) @@ -219,6 +243,20 @@ public interface CfnFleetProps { * @param roleArn The IAM role that workers in the fleet use when processing jobs. */ public fun roleArn(roleArn: String) + + /** + * @param tags The tags to add to your fleet. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to your fleet. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl : Builder { @@ -257,13 +295,16 @@ public interface CfnFleetProps { /** * @param displayName The display name of the fleet summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) } /** - * @param farmId The farm ID. + * @param farmId The farm ID. */ override fun farmId(farmId: String) { cdkBuilder.farmId(farmId) @@ -290,12 +331,29 @@ public interface CfnFleetProps { cdkBuilder.roleArn(roleArn) } + /** + * @param tags The tags to add to your fleet. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to your fleet. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnFleetProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * The configuration details for the fleet. * @@ -315,6 +373,11 @@ public interface CfnFleetProps { /** * The display name of the fleet summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-displayname) */ override fun displayName(): String = unwrap(this).getDisplayName() @@ -324,7 +387,7 @@ public interface CfnFleetProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-farmid) */ - override fun farmId(): String? = unwrap(this).getFarmId() + override fun farmId(): String = unwrap(this).getFarmId() /** * The maximum number of workers specified in the fleet. @@ -348,6 +411,16 @@ public interface CfnFleetProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-rolearn) */ override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The tags to add to your fleet. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html#cfn-deadline-fleet-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpoint.kt index 25797bf2d3..ef219d4b6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpoint.kt @@ -3,7 +3,10 @@ package io.cloudshiftdev.awscdk.services.deadline import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import kotlin.String @@ -27,6 +30,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .securityGroupIds(List.of("securityGroupIds")) * .subnetIds(List.of("subnetIds")) * .vpcId("vpcId") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -34,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLicenseEndpoint( cdkObject: software.amazon.awscdk.services.deadline.CfnLicenseEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -76,6 +86,12 @@ public open class CfnLicenseEndpoint( */ public open fun attrStatusMessage(): String = unwrap(this).getAttrStatusMessage() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -120,6 +136,23 @@ public open class CfnLicenseEndpoint( */ public open fun subnetIds(vararg `value`: String): Unit = subnetIds(`value`.toList()) + /** + * The tags to add to your license endpoint. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to your license endpoint. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your license endpoint. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * The VCP(virtual private cloud) ID associated with the license endpoint. */ @@ -171,6 +204,28 @@ public open class CfnLicenseEndpoint( */ public fun subnetIds(vararg subnetIds: String) + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + * @param tags The tags to add to your license endpoint. + */ + public fun tags(tags: List) + + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + * @param tags The tags to add to your license endpoint. + */ + public fun tags(vararg tags: CfnTag) + /** * The VCP(virtual private cloud) ID associated with the license endpoint. * @@ -226,6 +281,30 @@ public open class CfnLicenseEndpoint( */ override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + * @param tags The tags to add to your license endpoint. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + * @param tags The tags to add to your license endpoint. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * The VCP(virtual private cloud) ID associated with the license endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpointProps.kt index 0bada4b1fc..a8d3a5800a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnLicenseEndpointProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.deadline +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -22,6 +23,11 @@ import kotlin.collections.List * .securityGroupIds(List.of("securityGroupIds")) * .subnetIds(List.of("subnetIds")) * .vpcId("vpcId") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -42,6 +48,16 @@ public interface CfnLicenseEndpointProps { */ public fun subnetIds(): List + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag + * values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The VCP(virtual private cloud) ID associated with the license endpoint. * @@ -76,6 +92,20 @@ public interface CfnLicenseEndpointProps { */ public fun subnetIds(vararg subnetIds: String) + /** + * @param tags The tags to add to your license endpoint. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to your license endpoint. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(vararg tags: CfnTag) + /** * @param vpcId The VCP(virtual private cloud) ID associated with the license endpoint. */ @@ -113,6 +143,22 @@ public interface CfnLicenseEndpointProps { */ override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) + /** + * @param tags The tags to add to your license endpoint. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to your license endpoint. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * @param vpcId The VCP(virtual private cloud) ID associated with the license endpoint. */ @@ -126,7 +172,8 @@ public interface CfnLicenseEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnLicenseEndpointProps, - ) : CdkObject(cdkObject), CfnLicenseEndpointProps { + ) : CdkObject(cdkObject), + CfnLicenseEndpointProps { /** * The identifier of the Amazon EC2 security group that controls access to the license endpoint. * @@ -141,6 +188,16 @@ public interface CfnLicenseEndpointProps { */ override fun subnetIds(): List = unwrap(this).getSubnetIds() + /** + * The tags to add to your license endpoint. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-licenseendpoint.html#cfn-deadline-licenseendpoint-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The VCP(virtual private cloud) ID associated with the license endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProduct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProduct.kt index d106bdcb26..1634b99858 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProduct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProduct.kt @@ -23,11 +23,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.deadline.*; * CfnMeteredProduct cfnMeteredProduct = CfnMeteredProduct.Builder.create(this, * "MyCfnMeteredProduct") - * .family("family") * .licenseEndpointId("licenseEndpointId") - * .port(123) * .productId("productId") - * .vendor("vendor") * .build(); * ``` * @@ -35,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMeteredProduct( cdkObject: software.amazon.awscdk.services.deadline.CfnMeteredProduct, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.deadline.CfnMeteredProduct(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -65,14 +63,17 @@ public open class CfnMeteredProduct( /** * The family to which the metered product belongs. */ - public open fun family(): String? = unwrap(this).getFamily() + public open fun attrFamily(): String = unwrap(this).getAttrFamily() /** - * The family to which the metered product belongs. + * The port on which the metered product should run. */ - public open fun family(`value`: String) { - unwrap(this).setFamily(`value`) - } + public open fun attrPort(): Number = unwrap(this).getAttrPort() + + /** + * The vendor. + */ + public open fun attrVendor(): String = unwrap(this).getAttrVendor() /** * Examines the CloudFormation resource and discloses attributes. @@ -95,18 +96,6 @@ public open class CfnMeteredProduct( unwrap(this).setLicenseEndpointId(`value`) } - /** - * The port on which the metered product should run. - */ - public open fun port(): Number? = unwrap(this).getPort() - - /** - * The port on which the metered product should run. - */ - public open fun port(`value`: Number) { - unwrap(this).setPort(`value`) - } - /** * The product ID. */ @@ -119,31 +108,11 @@ public open class CfnMeteredProduct( unwrap(this).setProductId(`value`) } - /** - * The vendor. - */ - public open fun vendor(): String? = unwrap(this).getVendor() - - /** - * The vendor. - */ - public open fun vendor(`value`: String) { - unwrap(this).setVendor(`value`) - } - /** * A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnMeteredProduct]. */ @CdkDslMarker public interface Builder { - /** - * The family to which the metered product belongs. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-family) - * @param family The family to which the metered product belongs. - */ - public fun family(family: String) - /** * The Amazon EC2 identifier of the license endpoint. * @@ -152,14 +121,6 @@ public open class CfnMeteredProduct( */ public fun licenseEndpointId(licenseEndpointId: String) - /** - * The port on which the metered product should run. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-port) - * @param port The port on which the metered product should run. - */ - public fun port(port: Number) - /** * The product ID. * @@ -167,14 +128,6 @@ public open class CfnMeteredProduct( * @param productId The product ID. */ public fun productId(productId: String) - - /** - * The vendor. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-vendor) - * @param vendor The vendor. - */ - public fun vendor(vendor: String) } private class BuilderImpl( @@ -184,16 +137,6 @@ public open class CfnMeteredProduct( private val cdkBuilder: software.amazon.awscdk.services.deadline.CfnMeteredProduct.Builder = software.amazon.awscdk.services.deadline.CfnMeteredProduct.Builder.create(scope, id) - /** - * The family to which the metered product belongs. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-family) - * @param family The family to which the metered product belongs. - */ - override fun family(family: String) { - cdkBuilder.family(family) - } - /** * The Amazon EC2 identifier of the license endpoint. * @@ -204,16 +147,6 @@ public open class CfnMeteredProduct( cdkBuilder.licenseEndpointId(licenseEndpointId) } - /** - * The port on which the metered product should run. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-port) - * @param port The port on which the metered product should run. - */ - override fun port(port: Number) { - cdkBuilder.port(port) - } - /** * The product ID. * @@ -224,16 +157,6 @@ public open class CfnMeteredProduct( cdkBuilder.productId(productId) } - /** - * The vendor. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-vendor) - * @param vendor The vendor. - */ - override fun vendor(vendor: String) { - cdkBuilder.vendor(vendor) - } - public fun build(): software.amazon.awscdk.services.deadline.CfnMeteredProduct = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProductProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProductProps.kt index 3cb01d78d7..d070c97c62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProductProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProductProps.kt @@ -5,7 +5,6 @@ package io.cloudshiftdev.awscdk.services.deadline import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers -import kotlin.Number import kotlin.String import kotlin.Unit @@ -19,24 +18,14 @@ import kotlin.Unit * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.deadline.*; * CfnMeteredProductProps cfnMeteredProductProps = CfnMeteredProductProps.builder() - * .family("family") * .licenseEndpointId("licenseEndpointId") - * .port(123) * .productId("productId") - * .vendor("vendor") * .build(); * ``` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html) */ public interface CfnMeteredProductProps { - /** - * The family to which the metered product belongs. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-family) - */ - public fun family(): String? = unwrap(this).getFamily() - /** * The Amazon EC2 identifier of the license endpoint. * @@ -44,13 +33,6 @@ public interface CfnMeteredProductProps { */ public fun licenseEndpointId(): String? = unwrap(this).getLicenseEndpointId() - /** - * The port on which the metered product should run. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-port) - */ - public fun port(): Number? = unwrap(this).getPort() - /** * The product ID. * @@ -58,55 +40,26 @@ public interface CfnMeteredProductProps { */ public fun productId(): String? = unwrap(this).getProductId() - /** - * The vendor. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-vendor) - */ - public fun vendor(): String? = unwrap(this).getVendor() - /** * A builder for [CfnMeteredProductProps] */ @CdkDslMarker public interface Builder { - /** - * @param family The family to which the metered product belongs. - */ - public fun family(family: String) - /** * @param licenseEndpointId The Amazon EC2 identifier of the license endpoint. */ public fun licenseEndpointId(licenseEndpointId: String) - /** - * @param port The port on which the metered product should run. - */ - public fun port(port: Number) - /** * @param productId The product ID. */ public fun productId(productId: String) - - /** - * @param vendor The vendor. - */ - public fun vendor(vendor: String) } private class BuilderImpl : Builder { private val cdkBuilder: software.amazon.awscdk.services.deadline.CfnMeteredProductProps.Builder = software.amazon.awscdk.services.deadline.CfnMeteredProductProps.builder() - /** - * @param family The family to which the metered product belongs. - */ - override fun family(family: String) { - cdkBuilder.family(family) - } - /** * @param licenseEndpointId The Amazon EC2 identifier of the license endpoint. */ @@ -114,13 +67,6 @@ public interface CfnMeteredProductProps { cdkBuilder.licenseEndpointId(licenseEndpointId) } - /** - * @param port The port on which the metered product should run. - */ - override fun port(port: Number) { - cdkBuilder.port(port) - } - /** * @param productId The product ID. */ @@ -128,27 +74,14 @@ public interface CfnMeteredProductProps { cdkBuilder.productId(productId) } - /** - * @param vendor The vendor. - */ - override fun vendor(vendor: String) { - cdkBuilder.vendor(vendor) - } - public fun build(): software.amazon.awscdk.services.deadline.CfnMeteredProductProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnMeteredProductProps, - ) : CdkObject(cdkObject), CfnMeteredProductProps { - /** - * The family to which the metered product belongs. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-family) - */ - override fun family(): String? = unwrap(this).getFamily() - + ) : CdkObject(cdkObject), + CfnMeteredProductProps { /** * The Amazon EC2 identifier of the license endpoint. * @@ -156,26 +89,12 @@ public interface CfnMeteredProductProps { */ override fun licenseEndpointId(): String? = unwrap(this).getLicenseEndpointId() - /** - * The port on which the metered product should run. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-port) - */ - override fun port(): Number? = unwrap(this).getPort() - /** * The product ID. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-productid) */ override fun productId(): String? = unwrap(this).getProductId() - - /** - * The vendor. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-meteredproduct.html#cfn-deadline-meteredproduct-vendor) - */ - override fun vendor(): String? = unwrap(this).getVendor() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitor.kt new file mode 100644 index 0000000000..9f1160d88a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitor.kt @@ -0,0 +1,268 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.deadline + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an AWS Deadline Cloud monitor that you can use to view your farms, queues, and fleets. + * + * After you submit a job, you can track the progress of the tasks and steps that make up the job, + * and then download the job's results. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.deadline.*; + * CfnMonitor cfnMonitor = CfnMonitor.Builder.create(this, "MyCfnMonitor") + * .displayName("displayName") + * .identityCenterInstanceArn("identityCenterInstanceArn") + * .roleArn("roleArn") + * .subdomain("subdomain") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html) + */ +public open class CfnMonitor( + cdkObject: software.amazon.awscdk.services.deadline.CfnMonitor, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMonitorProps, + ) : + this(software.amazon.awscdk.services.deadline.CfnMonitor(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMonitorProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMonitorProps.Builder.() -> Unit, + ) : this(scope, id, CfnMonitorProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the monitor. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The Amazon Resource Name (ARN) that the IAM Identity Center assigned to the monitor when it was + * created. + */ + public open fun attrIdentityCenterApplicationArn(): String = + unwrap(this).getAttrIdentityCenterApplicationArn() + + /** + * The unique identifier for the monitor. + */ + public open fun attrMonitorId(): String = unwrap(this).getAttrMonitorId() + + /** + * The complete URL of the monitor. + * + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + */ + public open fun attrUrl(): String = unwrap(this).getAttrUrl() + + /** + * The name of the monitor that displays on the Deadline Cloud console. + */ + public open fun displayName(): String = unwrap(this).getDisplayName() + + /** + * The name of the monitor that displays on the Deadline Cloud console. + */ + public open fun displayName(`value`: String) { + unwrap(this).setDisplayName(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + */ + public open fun identityCenterInstanceArn(): String = unwrap(this).getIdentityCenterInstanceArn() + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + */ + public open fun identityCenterInstanceArn(`value`: String) { + unwrap(this).setIdentityCenterInstanceArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + */ + public open fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + */ + public open fun roleArn(`value`: String) { + unwrap(this).setRoleArn(`value`) + } + + /** + * The subdomain used for the monitor URL. + */ + public open fun subdomain(): String = unwrap(this).getSubdomain() + + /** + * The subdomain used for the monitor URL. + */ + public open fun subdomain(`value`: String) { + unwrap(this).setSubdomain(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnMonitor]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the monitor that displays on the Deadline Cloud console. + * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-displayname) + * @param displayName The name of the monitor that displays on the Deadline Cloud console. + */ + public fun displayName(displayName: String) + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-identitycenterinstancearn) + * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center + * instance responsible for authenticating monitor users. + */ + public fun identityCenterInstanceArn(identityCenterInstanceArn: String) + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + * + * Users of the monitor use this role to access Deadline Cloud resources. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-rolearn) + * @param roleArn The Amazon Resource Name (ARN) of the IAM role for the monitor. + */ + public fun roleArn(roleArn: String) + + /** + * The subdomain used for the monitor URL. + * + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-subdomain) + * @param subdomain The subdomain used for the monitor URL. + */ + public fun subdomain(subdomain: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.deadline.CfnMonitor.Builder = + software.amazon.awscdk.services.deadline.CfnMonitor.Builder.create(scope, id) + + /** + * The name of the monitor that displays on the Deadline Cloud console. + * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-displayname) + * @param displayName The name of the monitor that displays on the Deadline Cloud console. + */ + override fun displayName(displayName: String) { + cdkBuilder.displayName(displayName) + } + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-identitycenterinstancearn) + * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center + * instance responsible for authenticating monitor users. + */ + override fun identityCenterInstanceArn(identityCenterInstanceArn: String) { + cdkBuilder.identityCenterInstanceArn(identityCenterInstanceArn) + } + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + * + * Users of the monitor use this role to access Deadline Cloud resources. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-rolearn) + * @param roleArn The Amazon Resource Name (ARN) of the IAM role for the monitor. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * The subdomain used for the monitor URL. + * + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-subdomain) + * @param subdomain The subdomain used for the monitor URL. + */ + override fun subdomain(subdomain: String) { + cdkBuilder.subdomain(subdomain) + } + + public fun build(): software.amazon.awscdk.services.deadline.CfnMonitor = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.deadline.CfnMonitor.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMonitor { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMonitor(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.deadline.CfnMonitor): CfnMonitor = + CfnMonitor(cdkObject) + + internal fun unwrap(wrapped: CfnMonitor): software.amazon.awscdk.services.deadline.CfnMonitor = + wrapped.cdkObject as software.amazon.awscdk.services.deadline.CfnMonitor + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitorProps.kt new file mode 100644 index 0000000000..ae2ac167f5 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMonitorProps.kt @@ -0,0 +1,200 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.deadline + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnMonitor`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.deadline.*; + * CfnMonitorProps cfnMonitorProps = CfnMonitorProps.builder() + * .displayName("displayName") + * .identityCenterInstanceArn("identityCenterInstanceArn") + * .roleArn("roleArn") + * .subdomain("subdomain") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html) + */ +public interface CfnMonitorProps { + /** + * The name of the monitor that displays on the Deadline Cloud console. + * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-displayname) + */ + public fun displayName(): String + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-identitycenterinstancearn) + */ + public fun identityCenterInstanceArn(): String + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + * + * Users of the monitor use this role to access Deadline Cloud resources. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-rolearn) + */ + public fun roleArn(): String + + /** + * The subdomain used for the monitor URL. + * + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-subdomain) + */ + public fun subdomain(): String + + /** + * A builder for [CfnMonitorProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param displayName The name of the monitor that displays on the Deadline Cloud console. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + */ + public fun displayName(displayName: String) + + /** + * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center + * instance responsible for authenticating monitor users. + */ + public fun identityCenterInstanceArn(identityCenterInstanceArn: String) + + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM role for the monitor. + * Users of the monitor use this role to access Deadline Cloud resources. + */ + public fun roleArn(roleArn: String) + + /** + * @param subdomain The subdomain used for the monitor URL. + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + */ + public fun subdomain(subdomain: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.deadline.CfnMonitorProps.Builder = + software.amazon.awscdk.services.deadline.CfnMonitorProps.builder() + + /** + * @param displayName The name of the monitor that displays on the Deadline Cloud console. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + */ + override fun displayName(displayName: String) { + cdkBuilder.displayName(displayName) + } + + /** + * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center + * instance responsible for authenticating monitor users. + */ + override fun identityCenterInstanceArn(identityCenterInstanceArn: String) { + cdkBuilder.identityCenterInstanceArn(identityCenterInstanceArn) + } + + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM role for the monitor. + * Users of the monitor use this role to access Deadline Cloud resources. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param subdomain The subdomain used for the monitor URL. + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + */ + override fun subdomain(subdomain: String) { + cdkBuilder.subdomain(subdomain) + } + + public fun build(): software.amazon.awscdk.services.deadline.CfnMonitorProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.deadline.CfnMonitorProps, + ) : CdkObject(cdkObject), + CfnMonitorProps { + /** + * The name of the monitor that displays on the Deadline Cloud console. + * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-displayname) + */ + override fun displayName(): String = unwrap(this).getDisplayName() + + /** + * The Amazon Resource Name (ARN) of the IAM Identity Center instance responsible for + * authenticating monitor users. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-identitycenterinstancearn) + */ + override fun identityCenterInstanceArn(): String = unwrap(this).getIdentityCenterInstanceArn() + + /** + * The Amazon Resource Name (ARN) of the IAM role for the monitor. + * + * Users of the monitor use this role to access Deadline Cloud resources. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The subdomain used for the monitor URL. + * + * The full URL of the monitor is subdomain.Region.deadlinecloud.amazonaws.com. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-monitor.html#cfn-deadline-monitor-subdomain) + */ + override fun subdomain(): String = unwrap(this).getSubdomain() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMonitorProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.deadline.CfnMonitorProps): + CfnMonitorProps = CdkObjectWrappers.wrap(cdkObject) as? CfnMonitorProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMonitorProps): + software.amazon.awscdk.services.deadline.CfnMonitorProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.deadline.CfnMonitorProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueue.kt index b0259eda2f..62feb48100 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueue.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.deadline import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -30,11 +33,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.deadline.*; * CfnQueue cfnQueue = CfnQueue.Builder.create(this, "MyCfnQueue") * .displayName("displayName") + * .farmId("farmId") * // the properties below are optional * .allowedStorageProfileIds(List.of("allowedStorageProfileIds")) * .defaultBudgetAction("defaultBudgetAction") * .description("description") - * .farmId("farmId") * .jobAttachmentSettings(JobAttachmentSettingsProperty.builder() * .rootPrefix("rootPrefix") * .s3BucketName("s3BucketName") @@ -53,6 +56,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .requiredFileSystemLocationNames(List.of("requiredFileSystemLocationNames")) * .roleArn("roleArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -60,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueue( cdkObject: software.amazon.awscdk.services.deadline.CfnQueue, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,6 +118,12 @@ public open class CfnQueue( */ public open fun attrQueueId(): String = unwrap(this).getAttrQueueId() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The default action taken on a queue summary if a budget wasn't configured. */ @@ -148,7 +163,7 @@ public open class CfnQueue( /** * The farm ID. */ - public open fun farmId(): String? = unwrap(this).getFarmId() + public open fun farmId(): String = unwrap(this).getFarmId() /** * The farm ID. @@ -253,6 +268,23 @@ public open class CfnQueue( unwrap(this).setRoleArn(`value`) } + /** + * The tags to add to your queue. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags to add to your queue. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your queue. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.deadline.CfnQueue]. */ @@ -303,6 +335,11 @@ public open class CfnQueue( /** * The display name of the queue summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-displayname) * @param displayName The display name of the queue summary to update. */ @@ -400,6 +437,28 @@ public open class CfnQueue( * jobs in this queue. */ public fun roleArn(roleArn: String) + + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + * @param tags The tags to add to your queue. + */ + public fun tags(tags: List) + + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + * @param tags The tags to add to your queue. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl( @@ -461,6 +520,11 @@ public open class CfnQueue( /** * The display name of the queue summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-displayname) * @param displayName The display name of the queue summary to update. */ @@ -578,6 +642,30 @@ public open class CfnQueue( cdkBuilder.roleArn(roleArn) } + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + * @param tags The tags to add to your queue. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + * @param tags The tags to add to your queue. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnQueue = cdkBuilder.build() } @@ -678,7 +766,8 @@ public open class CfnQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueue.JobAttachmentSettingsProperty, - ) : CdkObject(cdkObject), JobAttachmentSettingsProperty { + ) : CdkObject(cdkObject), + JobAttachmentSettingsProperty { /** * The root prefix. * @@ -869,7 +958,8 @@ public open class CfnQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueue.JobRunAsUserProperty, - ) : CdkObject(cdkObject), JobRunAsUserProperty { + ) : CdkObject(cdkObject), + JobRunAsUserProperty { /** * The user and group that the jobs in the queue run as. * @@ -984,7 +1074,8 @@ public open class CfnQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueue.PosixUserProperty, - ) : CdkObject(cdkObject), PosixUserProperty { + ) : CdkObject(cdkObject), + PosixUserProperty { /** * The name of the POSIX user's group. * @@ -1091,7 +1182,8 @@ public open class CfnQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueue.WindowsUserProperty, - ) : CdkObject(cdkObject), WindowsUserProperty { + ) : CdkObject(cdkObject), + WindowsUserProperty { /** * The password ARN for the Windows user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironment.kt index 426c310088..15764e31ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironment.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueueEnvironment( cdkObject: software.amazon.awscdk.services.deadline.CfnQueueEnvironment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -108,12 +109,12 @@ public open class CfnQueueEnvironment( } /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. */ public open fun template(): String = unwrap(this).getTemplate() /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. */ public open fun template(`value`: String) { unwrap(this).setTemplate(`value`) @@ -161,10 +162,10 @@ public open class CfnQueueEnvironment( public fun queueId(queueId: String) /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queueenvironment.html#cfn-deadline-queueenvironment-template) - * @param template A JSON or YAML template the describes the processing environment for the + * @param template A JSON or YAML template that describes the processing environment for the * queue. */ public fun template(template: String) @@ -217,10 +218,10 @@ public open class CfnQueueEnvironment( } /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queueenvironment.html#cfn-deadline-queueenvironment-template) - * @param template A JSON or YAML template the describes the processing environment for the + * @param template A JSON or YAML template that describes the processing environment for the * queue. */ override fun template(template: String) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironmentProps.kt index b664b10eab..b0ff6dab93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueEnvironmentProps.kt @@ -52,7 +52,7 @@ public interface CfnQueueEnvironmentProps { public fun queueId(): String /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queueenvironment.html#cfn-deadline-queueenvironment-template) */ @@ -86,7 +86,7 @@ public interface CfnQueueEnvironmentProps { public fun queueId(queueId: String) /** - * @param template A JSON or YAML template the describes the processing environment for the + * @param template A JSON or YAML template that describes the processing environment for the * queue. */ public fun template(template: String) @@ -125,7 +125,7 @@ public interface CfnQueueEnvironmentProps { } /** - * @param template A JSON or YAML template the describes the processing environment for the + * @param template A JSON or YAML template that describes the processing environment for the * queue. */ override fun template(template: String) { @@ -146,7 +146,8 @@ public interface CfnQueueEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueueEnvironmentProps, - ) : CdkObject(cdkObject), CfnQueueEnvironmentProps { + ) : CdkObject(cdkObject), + CfnQueueEnvironmentProps { /** * The identifier assigned to the farm that contains the queue. * @@ -169,7 +170,7 @@ public interface CfnQueueEnvironmentProps { override fun queueId(): String = unwrap(this).getQueueId() /** - * A JSON or YAML template the describes the processing environment for the queue. + * A JSON or YAML template that describes the processing environment for the queue. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queueenvironment.html#cfn-deadline-queueenvironment-template) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociation.kt index e43ea58ef5..e7ea7aa8e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociation.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueueFleetAssociation( cdkObject: software.amazon.awscdk.services.deadline.CfnQueueFleetAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociationProps.kt index 2144b3644b..4fb96bb499 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueFleetAssociationProps.kt @@ -102,7 +102,8 @@ public interface CfnQueueFleetAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueueFleetAssociationProps, - ) : CdkObject(cdkObject), CfnQueueFleetAssociationProps { + ) : CdkObject(cdkObject), + CfnQueueFleetAssociationProps { /** * The identifier of the farm that contains the queue and the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueProps.kt index 17bd7d5105..54e02ad8f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnQueueProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.deadline +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -23,11 +24,11 @@ import kotlin.jvm.JvmName * import io.cloudshiftdev.awscdk.services.deadline.*; * CfnQueueProps cfnQueueProps = CfnQueueProps.builder() * .displayName("displayName") + * .farmId("farmId") * // the properties below are optional * .allowedStorageProfileIds(List.of("allowedStorageProfileIds")) * .defaultBudgetAction("defaultBudgetAction") * .description("description") - * .farmId("farmId") * .jobAttachmentSettings(JobAttachmentSettingsProperty.builder() * .rootPrefix("rootPrefix") * .s3BucketName("s3BucketName") @@ -46,6 +47,10 @@ import kotlin.jvm.JvmName * .build()) * .requiredFileSystemLocationNames(List.of("requiredFileSystemLocationNames")) * .roleArn("roleArn") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -82,6 +87,11 @@ public interface CfnQueueProps { /** * The display name of the queue summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-displayname) */ public fun displayName(): String @@ -91,7 +101,7 @@ public interface CfnQueueProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-farmid) */ - public fun farmId(): String? = unwrap(this).getFarmId() + public fun farmId(): String /** * The job attachment settings. @@ -125,6 +135,16 @@ public interface CfnQueueProps { */ public fun roleArn(): String? = unwrap(this).getRoleArn() + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag + * values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * A builder for [CfnQueueProps] */ @@ -155,11 +175,14 @@ public interface CfnQueueProps { /** * @param displayName The display name of the queue summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ public fun displayName(displayName: String) /** - * @param farmId The farm ID. + * @param farmId The farm ID. */ public fun farmId(farmId: String) @@ -216,6 +239,20 @@ public interface CfnQueueProps { * jobs in this queue. */ public fun roleArn(roleArn: String) + + /** + * @param tags The tags to add to your queue. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to add to your queue. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl : Builder { @@ -254,13 +291,16 @@ public interface CfnQueueProps { /** * @param displayName The display name of the queue summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) } /** - * @param farmId The farm ID. + * @param farmId The farm ID. */ override fun farmId(farmId: String) { cdkBuilder.farmId(farmId) @@ -336,12 +376,29 @@ public interface CfnQueueProps { cdkBuilder.roleArn(roleArn) } + /** + * @param tags The tags to add to your queue. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags to add to your queue. + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.deadline.CfnQueueProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnQueueProps, - ) : CdkObject(cdkObject), CfnQueueProps { + ) : CdkObject(cdkObject), + CfnQueueProps { /** * The identifiers of the storage profiles that this queue can use to share assets between * workers using different operating systems. @@ -372,6 +429,11 @@ public interface CfnQueueProps { /** * The display name of the queue summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-displayname) */ override fun displayName(): String = unwrap(this).getDisplayName() @@ -381,7 +443,7 @@ public interface CfnQueueProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-farmid) */ - override fun farmId(): String? = unwrap(this).getFarmId() + override fun farmId(): String = unwrap(this).getFarmId() /** * The job attachment settings. @@ -414,6 +476,16 @@ public interface CfnQueueProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-rolearn) */ override fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * The tags to add to your queue. + * + * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but + * tag values can be empty strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-queue.html#cfn-deadline-queue-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfile.kt index e9bab03910..5e662f5580 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfile.kt @@ -29,9 +29,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnStorageProfile cfnStorageProfile = CfnStorageProfile.Builder.create(this, * "MyCfnStorageProfile") * .displayName("displayName") + * .farmId("farmId") * .osFamily("osFamily") * // the properties below are optional - * .farmId("farmId") * .fileSystemLocations(List.of(FileSystemLocationProperty.builder() * .name("name") * .path("path") @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageProfile( cdkObject: software.amazon.awscdk.services.deadline.CfnStorageProfile, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -81,7 +82,7 @@ public open class CfnStorageProfile( /** * The unique identifier of the farm that contains the storage profile. */ - public open fun farmId(): String? = unwrap(this).getFarmId() + public open fun farmId(): String = unwrap(this).getFarmId() /** * The unique identifier of the farm that contains the storage profile. @@ -144,6 +145,11 @@ public open class CfnStorageProfile( /** * The display name of the storage profile summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-displayname) * @param displayName The display name of the storage profile summary to update. */ @@ -203,6 +209,11 @@ public open class CfnStorageProfile( /** * The display name of the storage profile summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-displayname) * @param displayName The display name of the storage profile summary to update. */ @@ -382,7 +393,8 @@ public open class CfnStorageProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnStorageProfile.FileSystemLocationProperty, - ) : CdkObject(cdkObject), FileSystemLocationProperty { + ) : CdkObject(cdkObject), + FileSystemLocationProperty { /** * The location name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfileProps.kt index 99f29db406..604d8b63ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnStorageProfileProps.kt @@ -22,9 +22,9 @@ import kotlin.collections.List * import io.cloudshiftdev.awscdk.services.deadline.*; * CfnStorageProfileProps cfnStorageProfileProps = CfnStorageProfileProps.builder() * .displayName("displayName") + * .farmId("farmId") * .osFamily("osFamily") * // the properties below are optional - * .farmId("farmId") * .fileSystemLocations(List.of(FileSystemLocationProperty.builder() * .name("name") * .path("path") @@ -39,6 +39,11 @@ public interface CfnStorageProfileProps { /** * The display name of the storage profile summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-displayname) */ public fun displayName(): String @@ -48,7 +53,7 @@ public interface CfnStorageProfileProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-farmid) */ - public fun farmId(): String? = unwrap(this).getFarmId() + public fun farmId(): String /** * Operating system specific file system path to the storage location. @@ -71,11 +76,14 @@ public interface CfnStorageProfileProps { public interface Builder { /** * @param displayName The display name of the storage profile summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ public fun displayName(displayName: String) /** - * @param farmId The unique identifier of the farm that contains the storage profile. + * @param farmId The unique identifier of the farm that contains the storage profile. */ public fun farmId(farmId: String) @@ -109,13 +117,16 @@ public interface CfnStorageProfileProps { /** * @param displayName The display name of the storage profile summary to update. + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) } /** - * @param farmId The unique identifier of the farm that contains the storage profile. + * @param farmId The unique identifier of the farm that contains the storage profile. */ override fun farmId(farmId: String) { cdkBuilder.farmId(farmId) @@ -157,10 +168,16 @@ public interface CfnStorageProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.deadline.CfnStorageProfileProps, - ) : CdkObject(cdkObject), CfnStorageProfileProps { + ) : CdkObject(cdkObject), + CfnStorageProfileProps { /** * The display name of the storage profile summary to update. * + * + * This field can store any content. Escape or encode this content before displaying it on a + * webpage or any other system that might interpret the content of this field. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-displayname) */ override fun displayName(): String = unwrap(this).getDisplayName() @@ -170,7 +187,7 @@ public interface CfnStorageProfileProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-storageprofile.html#cfn-deadline-storageprofile-farmid) */ - override fun farmId(): String? = unwrap(this).getFarmId() + override fun farmId(): String = unwrap(this).getFarmId() /** * Operating system specific file system path to the storage location. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraph.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraph.kt index 3b901598af..42e26ec968 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraph.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraph.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGraph( cdkObject: software.amazon.awscdk.services.detective.CfnGraph, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.detective.CfnGraph(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraphProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraphProps.kt index 00c9a9d87f..0e9daab9b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraphProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnGraphProps.kt @@ -136,7 +136,8 @@ public interface CfnGraphProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.detective.CfnGraphProps, - ) : CdkObject(cdkObject), CfnGraphProps { + ) : CdkObject(cdkObject), + CfnGraphProps { /** * Indicates whether to automatically enable new organization accounts as member accounts in the * organization behavior graph. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitation.kt index 371eb1117d..ba26eb2efe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitation.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMemberInvitation( cdkObject: software.amazon.awscdk.services.detective.CfnMemberInvitation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitationProps.kt index a6fe6a3fb8..244d38c4de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnMemberInvitationProps.kt @@ -172,7 +172,8 @@ public interface CfnMemberInvitationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.detective.CfnMemberInvitationProps, - ) : CdkObject(cdkObject), CfnMemberInvitationProps { + ) : CdkObject(cdkObject), + CfnMemberInvitationProps { /** * Whether to send an invitation email to the member account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdmin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdmin.kt index 71a10ff181..6364066f64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdmin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdmin.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOrganizationAdmin( cdkObject: software.amazon.awscdk.services.detective.CfnOrganizationAdmin, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdminProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdminProps.kt index 0ee4d3e68f..94daa06514 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdminProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/detective/CfnOrganizationAdminProps.kt @@ -64,7 +64,8 @@ public interface CfnOrganizationAdminProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.detective.CfnOrganizationAdminProps, - ) : CdkObject(cdkObject), CfnOrganizationAdminProps { + ) : CdkObject(cdkObject), + CfnOrganizationAdminProps { /** * The AWS account identifier of the account to designate as the Detective administrator account * for the organization. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePool.kt index c7f1aaf37c..d4a3084f94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePool.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDevicePool( cdkObject: software.amazon.awscdk.services.devicefarm.CfnDevicePool, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -693,7 +695,8 @@ public open class CfnDevicePool( private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnDevicePool.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The rule's stringified attribute. For example, specify the value as `"\"abc\""` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePoolProps.kt index 298b1cb8fa..9acfedbb29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnDevicePoolProps.kt @@ -240,7 +240,8 @@ public interface CfnDevicePoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnDevicePoolProps, - ) : CdkObject(cdkObject), CfnDevicePoolProps { + ) : CdkObject(cdkObject), + CfnDevicePoolProps { /** * The device pool's description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfile.kt index 9752b2aeed..a5c17f390f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfile.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceProfile( cdkObject: software.amazon.awscdk.services.devicefarm.CfnInstanceProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfileProps.kt index 5eb0761b8f..b7ae65963b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnInstanceProfileProps.kt @@ -255,7 +255,8 @@ public interface CfnInstanceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnInstanceProfileProps, - ) : CdkObject(cdkObject), CfnInstanceProfileProps { + ) : CdkObject(cdkObject), + CfnInstanceProfileProps { /** * The description of the instance profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfile.kt index bd02ebfcd5..47cdb8bc5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfile.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkProfile( cdkObject: software.amazon.awscdk.services.devicefarm.CfnNetworkProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfileProps.kt index 9198b47ac7..1806744c8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnNetworkProfileProps.kt @@ -330,7 +330,8 @@ public interface CfnNetworkProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnNetworkProfileProps, - ) : CdkObject(cdkObject), CfnNetworkProfileProps { + ) : CdkObject(cdkObject), + CfnNetworkProfileProps { /** * The description of the network profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProject.kt index cfd1718cfe..9ce03a9e64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProject.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.devicefarm.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -505,7 +507,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnProject.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * A list of VPC security group IDs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProjectProps.kt index d03725c359..47c6f58415 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnProjectProps.kt @@ -189,7 +189,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * Sets the execution timeout value (in minutes) for a project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProject.kt index 1b165db8de..c8aa6f965b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProject.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTestGridProject( cdkObject: software.amazon.awscdk.services.devicefarm.CfnTestGridProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -508,7 +510,8 @@ public open class CfnTestGridProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnTestGridProject.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * A list of VPC security group IDs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProjectProps.kt index 7dd9642e90..c96b4024a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnTestGridProjectProps.kt @@ -187,7 +187,8 @@ public interface CfnTestGridProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnTestGridProjectProps, - ) : CdkObject(cdkObject), CfnTestGridProjectProps { + ) : CdkObject(cdkObject), + CfnTestGridProjectProps { /** * A human-readable description for the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfiguration.kt index bf5aed7863..63c4f4de9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfiguration.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCEConfiguration( cdkObject: software.amazon.awscdk.services.devicefarm.CfnVPCEConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfigurationProps.kt index 21843fd501..d50d8c2efb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devicefarm/CfnVPCEConfigurationProps.kt @@ -187,7 +187,8 @@ public interface CfnVPCEConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devicefarm.CfnVPCEConfigurationProps, - ) : CdkObject(cdkObject), CfnVPCEConfigurationProps { + ) : CdkObject(cdkObject), + CfnVPCEConfigurationProps { /** * The DNS name that Device Farm will use to map to the private service you want to access. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegration.kt index 0194d0f8d0..cc5520fc69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegration.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogAnomalyDetectionIntegration( cdkObject: software.amazon.awscdk.services.devopsguru.CfnLogAnomalyDetectionIntegration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.devopsguru.CfnLogAnomalyDetectionIntegration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegrationProps.kt index 5a03f3b0ee..66c8a1bc78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnLogAnomalyDetectionIntegrationProps.kt @@ -41,7 +41,8 @@ public interface CfnLogAnomalyDetectionIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnLogAnomalyDetectionIntegrationProps, - ) : CdkObject(cdkObject), CfnLogAnomalyDetectionIntegrationProps + ) : CdkObject(cdkObject), + CfnLogAnomalyDetectionIntegrationProps public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannel.kt index 8c6e928b93..853b0c160c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannel.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNotificationChannel( cdkObject: software.amazon.awscdk.services.devopsguru.CfnNotificationChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -471,7 +472,8 @@ public open class CfnNotificationChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnNotificationChannel.NotificationChannelConfigProperty, - ) : CdkObject(cdkObject), NotificationChannelConfigProperty { + ) : CdkObject(cdkObject), + NotificationChannelConfigProperty { /** * The filter configurations for the Amazon SNS notification topic you use with DevOps Guru. * @@ -654,7 +656,8 @@ public open class CfnNotificationChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnNotificationChannel.NotificationFilterConfigProperty, - ) : CdkObject(cdkObject), NotificationFilterConfigProperty { + ) : CdkObject(cdkObject), + NotificationFilterConfigProperty { /** * The events that you want to receive notifications for. * @@ -764,7 +767,8 @@ public open class CfnNotificationChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnNotificationChannel.SnsChannelConfigProperty, - ) : CdkObject(cdkObject), SnsChannelConfigProperty { + ) : CdkObject(cdkObject), + SnsChannelConfigProperty { /** * The Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannelProps.kt index 6b2f272b60..2bd890de2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnNotificationChannelProps.kt @@ -107,7 +107,8 @@ public interface CfnNotificationChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnNotificationChannelProps, - ) : CdkObject(cdkObject), CfnNotificationChannelProps { + ) : CdkObject(cdkObject), + CfnNotificationChannelProps { /** * A `NotificationChannelConfig` object that contains information about configured notification * channels. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollection.kt index 4bf2b94a2d..19e82831bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollection.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceCollection( cdkObject: software.amazon.awscdk.services.devopsguru.CfnResourceCollection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -294,7 +295,8 @@ public open class CfnResourceCollection( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnResourceCollection.CloudFormationCollectionFilterProperty, - ) : CdkObject(cdkObject), CloudFormationCollectionFilterProperty { + ) : CdkObject(cdkObject), + CloudFormationCollectionFilterProperty { /** * An array of CloudFormation stack names. * @@ -614,7 +616,8 @@ public open class CfnResourceCollection( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnResourceCollection.ResourceCollectionFilterProperty, - ) : CdkObject(cdkObject), ResourceCollectionFilterProperty { + ) : CdkObject(cdkObject), + ResourceCollectionFilterProperty { /** * Information about AWS CloudFormation stacks. * @@ -861,7 +864,8 @@ public open class CfnResourceCollection( private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnResourceCollection.TagCollectionProperty, - ) : CdkObject(cdkObject), TagCollectionProperty { + ) : CdkObject(cdkObject), + TagCollectionProperty { /** * An AWS tag *key* that is used to identify the AWS resources that DevOps Guru analyzes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollectionProps.kt index 7d6ba21b06..4db4b2b5f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/devopsguru/CfnResourceCollectionProps.kt @@ -110,7 +110,8 @@ public interface CfnResourceCollectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.devopsguru.CfnResourceCollectionProps, - ) : CdkObject(cdkObject), CfnResourceCollectionProps { + ) : CdkObject(cdkObject), + CfnResourceCollectionProps { /** * Information about a filter used to specify which AWS resources are analyzed for anomalous * behavior by DevOps Guru. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftAD.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftAD.kt index 4a8433acdf..25067a44de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftAD.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftAD.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMicrosoftAD( cdkObject: software.amazon.awscdk.services.directoryservice.CfnMicrosoftAD, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -632,7 +633,8 @@ public open class CfnMicrosoftAD( private class Wrapper( cdkObject: software.amazon.awscdk.services.directoryservice.CfnMicrosoftAD.VpcSettingsProperty, - ) : CdkObject(cdkObject), VpcSettingsProperty { + ) : CdkObject(cdkObject), + VpcSettingsProperty { /** * The identifiers of the subnets for the directory servers. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftADProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftADProps.kt index 05adf7abf0..c5a7e25866 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftADProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnMicrosoftADProps.kt @@ -317,7 +317,8 @@ public interface CfnMicrosoftADProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.directoryservice.CfnMicrosoftADProps, - ) : CdkObject(cdkObject), CfnMicrosoftADProps { + ) : CdkObject(cdkObject), + CfnMicrosoftADProps { /** * Specifies an alias for a directory and assigns the alias to the directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleAD.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleAD.kt index 87a9276346..26b945718c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleAD.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleAD.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSimpleAD( cdkObject: software.amazon.awscdk.services.directoryservice.CfnSimpleAD, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -683,7 +684,8 @@ public open class CfnSimpleAD( private class Wrapper( cdkObject: software.amazon.awscdk.services.directoryservice.CfnSimpleAD.VpcSettingsProperty, - ) : CdkObject(cdkObject), VpcSettingsProperty { + ) : CdkObject(cdkObject), + VpcSettingsProperty { /** * The identifiers of the subnets for the directory servers. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleADProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleADProps.kt index c8b63fcb37..eb8399fac2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleADProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/directoryservice/CfnSimpleADProps.kt @@ -345,7 +345,8 @@ public interface CfnSimpleADProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.directoryservice.CfnSimpleADProps, - ) : CdkObject(cdkObject), CfnSimpleADProps { + ) : CdkObject(cdkObject), + CfnSimpleADProps { /** * If set to `true` , specifies an alias for a directory and assigns the alias to the directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicy.kt index ac2984723f..0e786a7c0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicy.kt @@ -192,7 +192,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLifecyclePolicy( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.dlm.CfnLifecyclePolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1170,7 +1172,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * The rule for copying shared snapshots across Regions. * @@ -1313,7 +1316,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty, - ) : CdkObject(cdkObject), ArchiveRetainRuleProperty { + ) : CdkObject(cdkObject), + ArchiveRetainRuleProperty { /** * Information about retention period in the Amazon EBS Snapshots Archive. * @@ -1429,7 +1433,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ArchiveRuleProperty, - ) : CdkObject(cdkObject), ArchiveRuleProperty { + ) : CdkObject(cdkObject), + ArchiveRuleProperty { /** * Information about the retention period for the snapshot archiving rule. * @@ -1767,7 +1772,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CreateRuleProperty, - ) : CdkObject(cdkObject), CreateRuleProperty { + ) : CdkObject(cdkObject), + CreateRuleProperty { /** * The schedule, as a Cron expression. * @@ -2040,7 +2046,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyActionProperty, - ) : CdkObject(cdkObject), CrossRegionCopyActionProperty { + ) : CdkObject(cdkObject), + CrossRegionCopyActionProperty { /** * The encryption settings for the copied snapshot. * @@ -2175,7 +2182,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty, - ) : CdkObject(cdkObject), CrossRegionCopyDeprecateRuleProperty { + ) : CdkObject(cdkObject), + CrossRegionCopyDeprecateRuleProperty { /** * The period after which to deprecate the cross-Region AMI copies. * @@ -2306,7 +2314,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty, - ) : CdkObject(cdkObject), CrossRegionCopyRetainRuleProperty { + ) : CdkObject(cdkObject), + CrossRegionCopyRetainRuleProperty { /** * The amount of time to retain a cross-Region snapshot or AMI copy. * @@ -2682,7 +2691,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyRuleProperty, - ) : CdkObject(cdkObject), CrossRegionCopyRuleProperty { + ) : CdkObject(cdkObject), + CrossRegionCopyRuleProperty { /** * The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. * @@ -2889,7 +2899,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.DeprecateRuleProperty, - ) : CdkObject(cdkObject), DeprecateRuleProperty { + ) : CdkObject(cdkObject), + DeprecateRuleProperty { /** * If the schedule has a count-based retention rule, this parameter specifies the number of * oldest AMIs to deprecate. @@ -3048,7 +3059,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. * @@ -3232,7 +3244,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.EventParametersProperty, - ) : CdkObject(cdkObject), EventParametersProperty { + ) : CdkObject(cdkObject), + EventParametersProperty { /** * The snapshot description that can trigger the policy. * @@ -3395,7 +3408,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.EventSourceProperty, - ) : CdkObject(cdkObject), EventSourceProperty { + ) : CdkObject(cdkObject), + EventSourceProperty { /** * Information about the event. * @@ -3567,7 +3581,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ExclusionsProperty, - ) : CdkObject(cdkObject), ExclusionsProperty { + ) : CdkObject(cdkObject), + ExclusionsProperty { /** * *[Default policies for EBS snapshots only]* Indicates whether to exclude volumes that are * attached to instances as the boot volume. @@ -3748,7 +3763,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.FastRestoreRuleProperty, - ) : CdkObject(cdkObject), FastRestoreRuleProperty { + ) : CdkObject(cdkObject), + FastRestoreRuleProperty { /** * The Availability Zones in which to enable fast snapshot restore. * @@ -4017,7 +4033,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ParametersProperty, - ) : CdkObject(cdkObject), ParametersProperty { + ) : CdkObject(cdkObject), + ParametersProperty { /** * *[Custom snapshot policies that target instances only]* Indicates whether to exclude the * root volume from multi-volume snapshot sets. @@ -5095,7 +5112,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.PolicyDetailsProperty, - ) : CdkObject(cdkObject), PolicyDetailsProperty { + ) : CdkObject(cdkObject), + PolicyDetailsProperty { /** * *[Event-based policies only]* The actions to be performed when the event-based policy is * activated. @@ -5472,7 +5490,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetainRuleProperty, - ) : CdkObject(cdkObject), RetainRuleProperty { + ) : CdkObject(cdkObject), + RetainRuleProperty { /** * The number of snapshots to retain for each volume, up to a maximum of 1000. * @@ -5658,7 +5677,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty, - ) : CdkObject(cdkObject), RetentionArchiveTierProperty { + ) : CdkObject(cdkObject), + RetentionArchiveTierProperty { /** * The maximum number of snapshots to retain in the archive storage tier for each volume. * @@ -6413,7 +6433,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * *[Custom snapshot policies that target volumes only]* The snapshot archiving rule for the * schedule. @@ -6925,7 +6946,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ScriptProperty, - ) : CdkObject(cdkObject), ScriptProperty { + ) : CdkObject(cdkObject), + ScriptProperty { /** * Indicates whether Amazon Data Lifecycle Manager should default to crash-consistent * snapshots if the pre script fails. @@ -7151,7 +7173,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ShareRuleProperty, - ) : CdkObject(cdkObject), ShareRuleProperty { + ) : CdkObject(cdkObject), + ShareRuleProperty { /** * The IDs of the AWS accounts with which to share the snapshots. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicyProps.kt index 99adc9c411..ce1d6614d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dlm/CfnLifecyclePolicyProps.kt @@ -740,7 +740,8 @@ public interface CfnLifecyclePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dlm.CfnLifecyclePolicyProps, - ) : CdkObject(cdkObject), CfnLifecyclePolicyProps { + ) : CdkObject(cdkObject), + CfnLifecyclePolicyProps { /** * *[Default policies only]* Indicates whether the policy should copy tags from the source * resource to the snapshot or AMI. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificate.kt index 0223d1afa6..d1efc04768 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificate.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.dms.CfnCertificate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.dms.CfnCertificate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificateProps.kt index 30bd87487c..c42fd0c38b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnCertificateProps.kt @@ -112,7 +112,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * A customer-assigned name for the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProvider.kt index af1070539e..2e3a98daf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProvider.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataProvider( cdkObject: software.amazon.awscdk.services.dms.CfnDataProvider, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProviderProps.kt index 52049d56b7..343df96877 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnDataProviderProps.kt @@ -220,7 +220,8 @@ public interface CfnDataProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnDataProviderProps, - ) : CdkObject(cdkObject), CfnDataProviderProps { + ) : CdkObject(cdkObject), + CfnDataProviderProps { /** * The identifier of the data provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpoint.kt index dccd64fb25..5ba941590e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpoint.kt @@ -326,7 +326,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpoint( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -3212,7 +3214,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.DocDbSettingsProperty, - ) : CdkObject(cdkObject), DocDbSettingsProperty { + ) : CdkObject(cdkObject), + DocDbSettingsProperty { /** * Indicates the number of documents to preview to determine the document organization. * @@ -3360,7 +3363,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.DynamoDbSettingsProperty, - ) : CdkObject(cdkObject), DynamoDbSettingsProperty { + ) : CdkObject(cdkObject), + DynamoDbSettingsProperty { /** * The Amazon Resource Name (ARN) used by the service to access the IAM role. * @@ -3538,7 +3542,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.ElasticsearchSettingsProperty, - ) : CdkObject(cdkObject), ElasticsearchSettingsProperty { + ) : CdkObject(cdkObject), + ElasticsearchSettingsProperty { /** * The endpoint for the OpenSearch cluster. * @@ -4054,7 +4059,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.GcpMySQLSettingsProperty, - ) : CdkObject(cdkObject), GcpMySQLSettingsProperty { + ) : CdkObject(cdkObject), + GcpMySQLSettingsProperty { /** * Specifies a script to run immediately after AWS DMS connects to the endpoint. * @@ -4548,7 +4554,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.IbmDb2SettingsProperty, - ) : CdkObject(cdkObject), IbmDb2SettingsProperty { + ) : CdkObject(cdkObject), + IbmDb2SettingsProperty { /** * For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where * you want the replication to start. @@ -5323,7 +5330,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.KafkaSettingsProperty, - ) : CdkObject(cdkObject), KafkaSettingsProperty { + ) : CdkObject(cdkObject), + KafkaSettingsProperty { /** * A comma-separated list of one or more broker locations in your Kafka cluster that host your * Kafka instance. @@ -5972,7 +5980,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.KinesisSettingsProperty, - ) : CdkObject(cdkObject), KinesisSettingsProperty { + ) : CdkObject(cdkObject), + KinesisSettingsProperty { /** * Shows detailed control information for table definition, column definition, and table and * column changes in the Kinesis message output. @@ -6738,7 +6747,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.MicrosoftSqlServerSettingsProperty, - ) : CdkObject(cdkObject), MicrosoftSqlServerSettingsProperty { + ) : CdkObject(cdkObject), + MicrosoftSqlServerSettingsProperty { /** * The maximum size of the packets (in bytes) used to transfer data using BCP. * @@ -7333,7 +7343,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.MongoDbSettingsProperty, - ) : CdkObject(cdkObject), MongoDbSettingsProperty { + ) : CdkObject(cdkObject), + MongoDbSettingsProperty { /** * The authentication mechanism you use to access the MongoDB source endpoint. * @@ -7863,7 +7874,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.MySqlSettingsProperty, - ) : CdkObject(cdkObject), MySqlSettingsProperty { + ) : CdkObject(cdkObject), + MySqlSettingsProperty { /** * Specifies a script to run immediately after AWS DMS connects to the endpoint. * @@ -8257,7 +8269,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.NeptuneSettingsProperty, - ) : CdkObject(cdkObject), NeptuneSettingsProperty { + ) : CdkObject(cdkObject), + NeptuneSettingsProperty { /** * The number of milliseconds for AWS DMS to wait to retry a bulk-load of migrated graph data * to the Neptune target database before raising an error. @@ -8469,7 +8482,7 @@ public open class CfnEndpoint( public fun archivedLogDestId(): Number? = unwrap(this).getArchivedLogDestId() /** - * When this field is set to `Y` , AWS DMS only accesses the archived redo logs. + * When this field is set to `True` , AWS DMS only accesses the archived redo logs. * * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS DMS * user account needs to be granted ASM privileges. @@ -8803,12 +8816,12 @@ public open class CfnEndpoint( public fun useAlternateFolderForOnline(): Any? = unwrap(this).getUseAlternateFolderForOnline() /** - * Set this attribute to Y to capture change data using the Binary Reader utility. + * Set this attribute to True to capture change data using the Binary Reader utility. * - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon RDS - * for Oracle as the source, you set additional attributes. For more information about using this - * setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS DMS - * Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or + * AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . * @@ -8817,7 +8830,7 @@ public open class CfnEndpoint( public fun useBFile(): Any? = unwrap(this).getUseBFile() /** - * Set this attribute to Y to have AWS DMS use a direct path full load. + * Set this attribute to True to have AWS DMS use a direct path full load. * * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. @@ -8827,12 +8840,12 @@ public open class CfnEndpoint( public fun useDirectPathFullLoad(): Any? = unwrap(this).getUseDirectPathFullLoad() /** - * Set this attribute to Y to capture change data using the Oracle LogMiner utility (the + * Set this attribute to True to capture change data using the Oracle LogMiner utility (the * default). * - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . * @@ -8929,16 +8942,16 @@ public open class CfnEndpoint( public fun archivedLogDestId(archivedLogDestId: Number) /** - * @param archivedLogsOnly When this field is set to `Y` , AWS DMS only accesses the archived - * redo logs. + * @param archivedLogsOnly When this field is set to `True` , AWS DMS only accesses the + * archived redo logs. * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS * DMS user account needs to be granted ASM privileges. */ public fun archivedLogsOnly(archivedLogsOnly: Boolean) /** - * @param archivedLogsOnly When this field is set to `Y` , AWS DMS only accesses the archived - * redo logs. + * @param archivedLogsOnly When this field is set to `True` , AWS DMS only accesses the + * archived redo logs. * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS * DMS user account needs to be granted ASM privileges. */ @@ -9313,62 +9326,62 @@ public open class CfnEndpoint( public fun useAlternateFolderForOnline(useAlternateFolderForOnline: IResolvable) /** - * @param useBFile Set this attribute to Y to capture change data using the Binary Reader + * @param useBFile Set this attribute to True to capture change data using the Binary Reader * utility. - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon - * RDS for Oracle as the source, you set additional attributes. For more information about using - * this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS - * DMS Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner + * or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . */ public fun useBFile(useBFile: Boolean) /** - * @param useBFile Set this attribute to Y to capture change data using the Binary Reader + * @param useBFile Set this attribute to True to capture change data using the Binary Reader * utility. - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon - * RDS for Oracle as the source, you set additional attributes. For more information about using - * this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS - * DMS Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner + * or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . */ public fun useBFile(useBFile: IResolvable) /** - * @param useDirectPathFullLoad Set this attribute to Y to have AWS DMS use a direct path full - * load. + * @param useDirectPathFullLoad Set this attribute to True to have AWS DMS use a direct path + * full load. * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. */ public fun useDirectPathFullLoad(useDirectPathFullLoad: Boolean) /** - * @param useDirectPathFullLoad Set this attribute to Y to have AWS DMS use a direct path full - * load. + * @param useDirectPathFullLoad Set this attribute to True to have AWS DMS use a direct path + * full load. * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. */ public fun useDirectPathFullLoad(useDirectPathFullLoad: IResolvable) /** - * @param useLogminerReader Set this attribute to Y to capture change data using the Oracle + * @param useLogminerReader Set this attribute to True to capture change data using the Oracle * LogMiner utility (the default). - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . */ public fun useLogminerReader(useLogminerReader: Boolean) /** - * @param useLogminerReader Set this attribute to Y to capture change data using the Oracle + * @param useLogminerReader Set this attribute to True to capture change data using the Oracle * LogMiner utility (the default). - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . */ @@ -9477,8 +9490,8 @@ public open class CfnEndpoint( } /** - * @param archivedLogsOnly When this field is set to `Y` , AWS DMS only accesses the archived - * redo logs. + * @param archivedLogsOnly When this field is set to `True` , AWS DMS only accesses the + * archived redo logs. * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS * DMS user account needs to be granted ASM privileges. */ @@ -9487,8 +9500,8 @@ public open class CfnEndpoint( } /** - * @param archivedLogsOnly When this field is set to `Y` , AWS DMS only accesses the archived - * redo logs. + * @param archivedLogsOnly When this field is set to `True` , AWS DMS only accesses the + * archived redo logs. * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS * DMS user account needs to be granted ASM privileges. */ @@ -9933,12 +9946,12 @@ public open class CfnEndpoint( } /** - * @param useBFile Set this attribute to Y to capture change data using the Binary Reader + * @param useBFile Set this attribute to True to capture change data using the Binary Reader * utility. - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon - * RDS for Oracle as the source, you set additional attributes. For more information about using - * this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS - * DMS Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner + * or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . */ @@ -9947,12 +9960,12 @@ public open class CfnEndpoint( } /** - * @param useBFile Set this attribute to Y to capture change data using the Binary Reader + * @param useBFile Set this attribute to True to capture change data using the Binary Reader * utility. - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon - * RDS for Oracle as the source, you set additional attributes. For more information about using - * this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS - * DMS Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner + * or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . */ @@ -9961,8 +9974,8 @@ public open class CfnEndpoint( } /** - * @param useDirectPathFullLoad Set this attribute to Y to have AWS DMS use a direct path full - * load. + * @param useDirectPathFullLoad Set this attribute to True to have AWS DMS use a direct path + * full load. * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. */ @@ -9971,8 +9984,8 @@ public open class CfnEndpoint( } /** - * @param useDirectPathFullLoad Set this attribute to Y to have AWS DMS use a direct path full - * load. + * @param useDirectPathFullLoad Set this attribute to True to have AWS DMS use a direct path + * full load. * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. */ @@ -9981,11 +9994,11 @@ public open class CfnEndpoint( } /** - * @param useLogminerReader Set this attribute to Y to capture change data using the Oracle + * @param useLogminerReader Set this attribute to True to capture change data using the Oracle * LogMiner utility (the default). - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . */ @@ -9994,11 +10007,11 @@ public open class CfnEndpoint( } /** - * @param useLogminerReader Set this attribute to Y to capture change data using the Oracle + * @param useLogminerReader Set this attribute to True to capture change data using the Oracle * LogMiner utility (the default). - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . */ @@ -10022,7 +10035,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.OracleSettingsProperty, - ) : CdkObject(cdkObject), OracleSettingsProperty { + ) : CdkObject(cdkObject), + OracleSettingsProperty { /** * Set this attribute to `false` in order to use the Binary Reader to capture change data for * an Amazon RDS for Oracle as the source. @@ -10085,7 +10099,7 @@ public open class CfnEndpoint( override fun archivedLogDestId(): Number? = unwrap(this).getArchivedLogDestId() /** - * When this field is set to `Y` , AWS DMS only accesses the archived redo logs. + * When this field is set to `True` , AWS DMS only accesses the archived redo logs. * * If the archived redo logs are stored on Automatic Storage Management (ASM) only, the AWS * DMS user account needs to be granted ASM privileges. @@ -10420,12 +10434,12 @@ public open class CfnEndpoint( unwrap(this).getUseAlternateFolderForOnline() /** - * Set this attribute to Y to capture change data using the Binary Reader utility. + * Set this attribute to True to capture change data using the Binary Reader utility. * - * Set `UseLogminerReader` to N to set this attribute to Y. To use Binary Reader with Amazon - * RDS for Oracle as the source, you set additional attributes. For more information about using - * this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner or AWS - * DMS Binary Reader for + * Set `UseLogminerReader` to False to set this attribute to True. To use Binary Reader with + * Amazon RDS for Oracle as the source, you set additional attributes. For more information about + * using this setting with Oracle Automatic Storage Management (ASM), see [Using Oracle LogMiner + * or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * . * @@ -10434,7 +10448,7 @@ public open class CfnEndpoint( override fun useBFile(): Any? = unwrap(this).getUseBFile() /** - * Set this attribute to Y to have AWS DMS use a direct path full load. + * Set this attribute to True to have AWS DMS use a direct path full load. * * Specify this value to use the direct path protocol in the Oracle Call Interface (OCI). By * using this OCI protocol, you can bulk-load Oracle target tables during a full load. @@ -10444,12 +10458,12 @@ public open class CfnEndpoint( override fun useDirectPathFullLoad(): Any? = unwrap(this).getUseDirectPathFullLoad() /** - * Set this attribute to Y to capture change data using the Oracle LogMiner utility (the + * Set this attribute to True to capture change data using the Oracle LogMiner utility (the * default). * - * Set this attribute to N if you want to access the redo logs as a binary file. When you set - * `UseLogminerReader` to N, also set `UseBfile` to Y. For more information on this setting and - * using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for + * Set this attribute to False if you want to access the redo logs as a binary file. When you + * set `UseLogminerReader` to False, also set `UseBfile` to True. For more information on this + * setting and using Oracle ASM, see [Using Oracle LogMiner or AWS DMS Binary Reader for * CDC](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) * in the *AWS DMS User Guide* . * @@ -11163,7 +11177,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.PostgreSqlSettingsProperty, - ) : CdkObject(cdkObject), PostgreSqlSettingsProperty { + ) : CdkObject(cdkObject), + PostgreSqlSettingsProperty { /** * For use with change data capture (CDC) only, this attribute has AWS DMS bypass foreign keys * and user triggers to reduce the time it takes to bulk load data. @@ -11599,7 +11614,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.RedisSettingsProperty, - ) : CdkObject(cdkObject), RedisSettingsProperty { + ) : CdkObject(cdkObject), + RedisSettingsProperty { /** * The password provided with the `auth-role` and `auth-token` options of the `AuthType` * setting for a Redis target endpoint. @@ -12720,7 +12736,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.RedshiftSettingsProperty, - ) : CdkObject(cdkObject), RedshiftSettingsProperty { + ) : CdkObject(cdkObject), + RedshiftSettingsProperty { /** * A value that indicates to allow any date format, including invalid formats such as 00/00/00 * 00:00:00, to be loaded without generating an error. @@ -15239,7 +15256,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.S3SettingsProperty, - ) : CdkObject(cdkObject), S3SettingsProperty { + ) : CdkObject(cdkObject), + S3SettingsProperty { /** * An optional parameter that, when set to `true` or `y` , you can use to add column name * information to the .csv output file. @@ -16016,7 +16034,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpoint.SybaseSettingsProperty, - ) : CdkObject(cdkObject), SybaseSettingsProperty { + ) : CdkObject(cdkObject), + SybaseSettingsProperty { /** * The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted * entity and grants the required permissions to access the value in `SecretsManagerSecret` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpointProps.kt index 64a03fa821..8ba968f258 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEndpointProps.kt @@ -2121,7 +2121,8 @@ public interface CfnEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEndpointProps, - ) : CdkObject(cdkObject), CfnEndpointProps { + ) : CdkObject(cdkObject), + CfnEndpointProps { /** * The Amazon Resource Name (ARN) for the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscription.kt index b4b59f6bcf..9902a3f592 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscription.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventSubscription( cdkObject: software.amazon.awscdk.services.dms.CfnEventSubscription, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscriptionProps.kt index a573a1a737..4ff70385ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnEventSubscriptionProps.kt @@ -309,7 +309,8 @@ public interface CfnEventSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnEventSubscriptionProps, - ) : CdkObject(cdkObject), CfnEventSubscriptionProps { + ) : CdkObject(cdkObject), + CfnEventSubscriptionProps { /** * Indicates whether to activate the subscription. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfile.kt index 2c41e463fe..d06395c8ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfile.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceProfile( cdkObject: software.amazon.awscdk.services.dms.CfnInstanceProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.dms.CfnInstanceProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfileProps.kt index 92c12afafe..0060ab48e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnInstanceProfileProps.kt @@ -351,7 +351,8 @@ public interface CfnInstanceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnInstanceProfileProps, - ) : CdkObject(cdkObject), CfnInstanceProfileProps { + ) : CdkObject(cdkObject), + CfnInstanceProfileProps { /** * The Availability Zone where the instance profile runs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProject.kt index 4a397fb7d5..ae9bb3b922 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProject.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMigrationProject( cdkObject: software.amazon.awscdk.services.dms.CfnMigrationProject, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.dms.CfnMigrationProject(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -910,7 +912,8 @@ public open class CfnMigrationProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnMigrationProject.DataProviderDescriptorProperty, - ) : CdkObject(cdkObject), DataProviderDescriptorProperty { + ) : CdkObject(cdkObject), + DataProviderDescriptorProperty { /** * The Amazon Resource Name (ARN) of the data provider. * @@ -1037,7 +1040,8 @@ public open class CfnMigrationProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnMigrationProject.SchemaConversionApplicationAttributesProperty, - ) : CdkObject(cdkObject), SchemaConversionApplicationAttributesProperty { + ) : CdkObject(cdkObject), + SchemaConversionApplicationAttributesProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-migrationproject-schemaconversionapplicationattributes.html#cfn-dms-migrationproject-schemaconversionapplicationattributes-s3bucketpath) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProjectProps.kt index b55870ad60..94c17f7a31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnMigrationProjectProps.kt @@ -446,7 +446,8 @@ public interface CfnMigrationProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnMigrationProjectProps, - ) : CdkObject(cdkObject), CfnMigrationProjectProps { + ) : CdkObject(cdkObject), + CfnMigrationProjectProps { /** * A user-friendly description of the migration project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfig.kt index 820b510c20..2f67c11a75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfig.kt @@ -49,17 +49,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds")) * .build()) * .replicationConfigIdentifier("replicationConfigIdentifier") - * .replicationSettings(replicationSettings) * .replicationType("replicationType") - * .resourceIdentifier("resourceIdentifier") * .sourceEndpointArn("sourceEndpointArn") - * .supplementalSettings(supplementalSettings) * .tableMappings(tableMappings) + * .targetEndpointArn("targetEndpointArn") + * // the properties below are optional + * .replicationSettings(replicationSettings) + * .resourceIdentifier("resourceIdentifier") + * .supplementalSettings(supplementalSettings) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) - * .targetEndpointArn("targetEndpointArn") * .build(); * ``` * @@ -67,12 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationConfig( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationConfig, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { - public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : - this(software.amazon.awscdk.services.dms.CfnReplicationConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), - id) - ) - +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -90,7 +88,7 @@ public open class CfnReplicationConfig( ) /** - * The Amazon Resource Name (ARN) of the Replication Config. + * The Amazon Resource Name (ARN) of this AWS DMS Serverless replication configuration. */ public open fun attrReplicationConfigArn(): String = unwrap(this).getAttrReplicationConfigArn() @@ -103,7 +101,7 @@ public open class CfnReplicationConfig( /** * Configuration parameters for provisioning an AWS DMS Serverless replication. */ - public open fun computeConfig(): Any? = unwrap(this).getComputeConfig() + public open fun computeConfig(): Any = unwrap(this).getComputeConfig() /** * Configuration parameters for provisioning an AWS DMS Serverless replication. @@ -140,7 +138,7 @@ public open class CfnReplicationConfig( * A unique identifier that you want to use to create a `ReplicationConfigArn` that is returned as * part of the output from this action. */ - public open fun replicationConfigIdentifier(): String? = + public open fun replicationConfigIdentifier(): String = unwrap(this).getReplicationConfigIdentifier() /** @@ -168,7 +166,7 @@ public open class CfnReplicationConfig( /** * The type of AWS DMS Serverless replication to provision using this replication configuration. */ - public open fun replicationType(): String? = unwrap(this).getReplicationType() + public open fun replicationType(): String = unwrap(this).getReplicationType() /** * The type of AWS DMS Serverless replication to provision using this replication configuration. @@ -195,7 +193,7 @@ public open class CfnReplicationConfig( * The Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication * configuration. */ - public open fun sourceEndpointArn(): String? = unwrap(this).getSourceEndpointArn() + public open fun sourceEndpointArn(): String = unwrap(this).getSourceEndpointArn() /** * The Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication @@ -221,7 +219,7 @@ public open class CfnReplicationConfig( * JSON table mappings for AWS DMS Serverless replications that are provisioned using this * replication configuration. */ - public open fun tableMappings(): Any? = unwrap(this).getTableMappings() + public open fun tableMappings(): Any = unwrap(this).getTableMappings() /** * JSON table mappings for AWS DMS Serverless replications that are provisioned using this @@ -252,7 +250,7 @@ public open class CfnReplicationConfig( * The Amazon Resource Name (ARN) of the target endpoint for this AWS DMS serverless replication * configuration. */ - public open fun targetEndpointArn(): String? = unwrap(this).getTargetEndpointArn() + public open fun targetEndpointArn(): String = unwrap(this).getTargetEndpointArn() /** * The Amazon Resource Name (ARN) of the target endpoint for this AWS DMS serverless replication @@ -1012,7 +1010,8 @@ public open class CfnReplicationConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationConfig.ComputeConfigProperty, - ) : CdkObject(cdkObject), ComputeConfigProperty { + ) : CdkObject(cdkObject), + ComputeConfigProperty { /** * The Availability Zone where the AWS DMS Serverless replication using this configuration * will run. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfigProps.kt index 32d54a475d..51c7579c26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationConfigProps.kt @@ -39,17 +39,18 @@ import kotlin.jvm.JvmName * .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds")) * .build()) * .replicationConfigIdentifier("replicationConfigIdentifier") - * .replicationSettings(replicationSettings) * .replicationType("replicationType") - * .resourceIdentifier("resourceIdentifier") * .sourceEndpointArn("sourceEndpointArn") - * .supplementalSettings(supplementalSettings) * .tableMappings(tableMappings) + * .targetEndpointArn("targetEndpointArn") + * // the properties below are optional + * .replicationSettings(replicationSettings) + * .resourceIdentifier("resourceIdentifier") + * .supplementalSettings(supplementalSettings) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) - * .targetEndpointArn("targetEndpointArn") * .build(); * ``` * @@ -61,7 +62,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-computeconfig) */ - public fun computeConfig(): Any? = unwrap(this).getComputeConfig() + public fun computeConfig(): Any /** * A unique identifier that you want to use to create a `ReplicationConfigArn` that is returned as @@ -75,7 +76,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-replicationconfigidentifier) */ - public fun replicationConfigIdentifier(): String? = unwrap(this).getReplicationConfigIdentifier() + public fun replicationConfigIdentifier(): String /** * Optional JSON settings for AWS DMS Serverless replications that are provisioned using this @@ -100,7 +101,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-replicationtype) */ - public fun replicationType(): String? = unwrap(this).getReplicationType() + public fun replicationType(): String /** * Optional unique value or name that you set for a given resource that can be used to construct @@ -120,7 +121,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-sourceendpointarn) */ - public fun sourceEndpointArn(): String? = unwrap(this).getSourceEndpointArn() + public fun sourceEndpointArn(): String /** * Optional JSON settings for specifying supplemental data. @@ -142,7 +143,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-tablemappings) */ - public fun tableMappings(): Any? = unwrap(this).getTableMappings() + public fun tableMappings(): Any /** * One or more optional tags associated with resources used by the AWS DMS Serverless replication. @@ -160,7 +161,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-targetendpointarn) */ - public fun targetEndpointArn(): String? = unwrap(this).getTargetEndpointArn() + public fun targetEndpointArn(): String /** * A builder for [CfnReplicationConfigProps] @@ -169,19 +170,19 @@ public interface CfnReplicationConfigProps { public interface Builder { /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ public fun computeConfig(computeConfig: IResolvable) /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ public fun computeConfig(computeConfig: CfnReplicationConfig.ComputeConfigProperty) /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("48f0a1ddb325030aa58029aeabf6302e1a395a57e340bb964b54170359f95fe0") @@ -190,7 +191,7 @@ public interface CfnReplicationConfigProps { /** * @param replicationConfigIdentifier A unique identifier that you want to use to create a - * `ReplicationConfigArn` that is returned as part of the output from this action. + * `ReplicationConfigArn` that is returned as part of the output from this action. * You can then pass this output `ReplicationConfigArn` as the value of the * `ReplicationConfigArn` option for other actions to identify both AWS DMS Serverless replications * and replication configurations that you want those actions to operate on. For some actions, you @@ -210,7 +211,7 @@ public interface CfnReplicationConfigProps { /** * @param replicationType The type of AWS DMS Serverless replication to provision using this - * replication configuration. + * replication configuration. * Possible values: * * * `"full-load"` @@ -230,7 +231,7 @@ public interface CfnReplicationConfigProps { /** * @param sourceEndpointArn The Amazon Resource Name (ARN) of the source endpoint for this AWS - * DMS Serverless replication configuration. + * DMS Serverless replication configuration. */ public fun sourceEndpointArn(sourceEndpointArn: String) @@ -243,7 +244,7 @@ public interface CfnReplicationConfigProps { /** * @param tableMappings JSON table mappings for AWS DMS Serverless replications that are - * provisioned using this replication configuration. + * provisioned using this replication configuration. * For more information, see [Specifying table selection and transformations rules using * JSON](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.html) * . @@ -268,7 +269,7 @@ public interface CfnReplicationConfigProps { /** * @param targetEndpointArn The Amazon Resource Name (ARN) of the target endpoint for this AWS - * DMS serverless replication configuration. + * DMS serverless replication configuration. */ public fun targetEndpointArn(targetEndpointArn: String) } @@ -279,7 +280,7 @@ public interface CfnReplicationConfigProps { /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ override fun computeConfig(computeConfig: IResolvable) { cdkBuilder.computeConfig(computeConfig.let(IResolvable.Companion::unwrap)) @@ -287,7 +288,7 @@ public interface CfnReplicationConfigProps { /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ override fun computeConfig(computeConfig: CfnReplicationConfig.ComputeConfigProperty) { cdkBuilder.computeConfig(computeConfig.let(CfnReplicationConfig.ComputeConfigProperty.Companion::unwrap)) @@ -295,7 +296,7 @@ public interface CfnReplicationConfigProps { /** * @param computeConfig Configuration parameters for provisioning an AWS DMS Serverless - * replication. + * replication. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("48f0a1ddb325030aa58029aeabf6302e1a395a57e340bb964b54170359f95fe0") @@ -305,7 +306,7 @@ public interface CfnReplicationConfigProps { /** * @param replicationConfigIdentifier A unique identifier that you want to use to create a - * `ReplicationConfigArn` that is returned as part of the output from this action. + * `ReplicationConfigArn` that is returned as part of the output from this action. * You can then pass this output `ReplicationConfigArn` as the value of the * `ReplicationConfigArn` option for other actions to identify both AWS DMS Serverless replications * and replication configurations that you want those actions to operate on. For some actions, you @@ -329,7 +330,7 @@ public interface CfnReplicationConfigProps { /** * @param replicationType The type of AWS DMS Serverless replication to provision using this - * replication configuration. + * replication configuration. * Possible values: * * * `"full-load"` @@ -353,7 +354,7 @@ public interface CfnReplicationConfigProps { /** * @param sourceEndpointArn The Amazon Resource Name (ARN) of the source endpoint for this AWS - * DMS Serverless replication configuration. + * DMS Serverless replication configuration. */ override fun sourceEndpointArn(sourceEndpointArn: String) { cdkBuilder.sourceEndpointArn(sourceEndpointArn) @@ -370,7 +371,7 @@ public interface CfnReplicationConfigProps { /** * @param tableMappings JSON table mappings for AWS DMS Serverless replications that are - * provisioned using this replication configuration. + * provisioned using this replication configuration. * For more information, see [Specifying table selection and transformations rules using * JSON](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.html) * . @@ -399,7 +400,7 @@ public interface CfnReplicationConfigProps { /** * @param targetEndpointArn The Amazon Resource Name (ARN) of the target endpoint for this AWS - * DMS serverless replication configuration. + * DMS serverless replication configuration. */ override fun targetEndpointArn(targetEndpointArn: String) { cdkBuilder.targetEndpointArn(targetEndpointArn) @@ -411,13 +412,14 @@ public interface CfnReplicationConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationConfigProps, - ) : CdkObject(cdkObject), CfnReplicationConfigProps { + ) : CdkObject(cdkObject), + CfnReplicationConfigProps { /** * Configuration parameters for provisioning an AWS DMS Serverless replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-computeconfig) */ - override fun computeConfig(): Any? = unwrap(this).getComputeConfig() + override fun computeConfig(): Any = unwrap(this).getComputeConfig() /** * A unique identifier that you want to use to create a `ReplicationConfigArn` that is returned @@ -431,7 +433,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-replicationconfigidentifier) */ - override fun replicationConfigIdentifier(): String? = + override fun replicationConfigIdentifier(): String = unwrap(this).getReplicationConfigIdentifier() /** @@ -457,7 +459,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-replicationtype) */ - override fun replicationType(): String? = unwrap(this).getReplicationType() + override fun replicationType(): String = unwrap(this).getReplicationType() /** * Optional unique value or name that you set for a given resource that can be used to construct @@ -477,7 +479,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-sourceendpointarn) */ - override fun sourceEndpointArn(): String? = unwrap(this).getSourceEndpointArn() + override fun sourceEndpointArn(): String = unwrap(this).getSourceEndpointArn() /** * Optional JSON settings for specifying supplemental data. @@ -499,7 +501,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-tablemappings) */ - override fun tableMappings(): Any? = unwrap(this).getTableMappings() + override fun tableMappings(): Any = unwrap(this).getTableMappings() /** * One or more optional tags associated with resources used by the AWS DMS Serverless @@ -518,7 +520,7 @@ public interface CfnReplicationConfigProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationconfig.html#cfn-dms-replicationconfig-targetendpointarn) */ - override fun targetEndpointArn(): String? = unwrap(this).getTargetEndpointArn() + override fun targetEndpointArn(): String = unwrap(this).getTargetEndpointArn() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstance.kt index 46306e9574..c66c960610 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstance.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationInstance( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstanceProps.kt index c96c3b7f8f..ab0a2e4ba8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationInstanceProps.kt @@ -627,7 +627,8 @@ public interface CfnReplicationInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationInstanceProps, - ) : CdkObject(cdkObject), CfnReplicationInstanceProps { + ) : CdkObject(cdkObject), + CfnReplicationInstanceProps { /** * The amount of storage (in gigabytes) to be initially allocated for the replication instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroup.kt index 878dd44f09..f67f8c51fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroup.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationSubnetGroup( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroupProps.kt index 811f0e1fdc..ac87bd74ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationSubnetGroupProps.kt @@ -156,7 +156,8 @@ public interface CfnReplicationSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationSubnetGroupProps, - ) : CdkObject(cdkObject), CfnReplicationSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnReplicationSubnetGroupProps { /** * The description for the subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTask.kt index 687e209f78..f963a7e4d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTask.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationTask( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationTask, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTaskProps.kt index e5667d8851..b9bafb92ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dms/CfnReplicationTaskProps.kt @@ -482,7 +482,8 @@ public interface CfnReplicationTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dms.CfnReplicationTaskProps, - ) : CdkObject(cdkObject), CfnReplicationTaskProps { + ) : CdkObject(cdkObject), + CfnReplicationTaskProps { /** * Indicates when you want a change data capture (CDC) operation to start. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/BackupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/BackupProps.kt index 892c0eff54..12c1f953e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/BackupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/BackupProps.kt @@ -98,7 +98,8 @@ public interface BackupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.BackupProps, - ) : CdkObject(cdkObject), BackupProps { + ) : CdkObject(cdkObject), + BackupProps { /** * A daily time range in 24-hours UTC format in which backups preferably execute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBCluster.kt index 1366e39ba3..801560e948 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBCluster.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBCluster( cdkObject: software.amazon.awscdk.services.docdb.CfnDBCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.docdb.CfnDBCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroup.kt index 7c048b0982..5d5da7120d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroup.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBClusterParameterGroup( cdkObject: software.amazon.awscdk.services.docdb.CfnDBClusterParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroupProps.kt index 327d5a165e..6426e7a8f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterParameterGroupProps.kt @@ -180,7 +180,8 @@ public interface CfnDBClusterParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.CfnDBClusterParameterGroupProps, - ) : CdkObject(cdkObject), CfnDBClusterParameterGroupProps { + ) : CdkObject(cdkObject), + CfnDBClusterParameterGroupProps { /** * The description for the cluster parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterProps.kt index a37a600bfe..b7b4760316 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBClusterProps.kt @@ -998,7 +998,8 @@ public interface CfnDBClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.CfnDBClusterProps, - ) : CdkObject(cdkObject), CfnDBClusterProps { + ) : CdkObject(cdkObject), + CfnDBClusterProps { /** * A list of Amazon EC2 Availability Zones that instances in the cluster can be created in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstance.kt index c259be4102..83b89d9bc0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstance.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBInstance( cdkObject: software.amazon.awscdk.services.docdb.CfnDBInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstanceProps.kt index d99bdf4187..626b6be1aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBInstanceProps.kt @@ -494,7 +494,8 @@ public interface CfnDBInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.CfnDBInstanceProps, - ) : CdkObject(cdkObject), CfnDBInstanceProps { + ) : CdkObject(cdkObject), + CfnDBInstanceProps { /** * This parameter does not apply to Amazon DocumentDB. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroup.kt index 2683c82627..5aaac79935 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroup.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBSubnetGroup( cdkObject: software.amazon.awscdk.services.docdb.CfnDBSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroupProps.kt index 1dabb763cc..e451a2a7f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnDBSubnetGroupProps.kt @@ -161,7 +161,8 @@ public interface CfnDBSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.CfnDBSubnetGroupProps, - ) : CdkObject(cdkObject), CfnDBSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnDBSubnetGroupProps { /** * The description for the subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscription.kt index ed534cddc6..7d648424e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscription.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventSubscription( cdkObject: software.amazon.awscdk.services.docdb.CfnEventSubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscriptionProps.kt index 719658cfba..f7c9801f33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/CfnEventSubscriptionProps.kt @@ -295,7 +295,8 @@ public interface CfnEventSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.CfnEventSubscriptionProps, - ) : CdkObject(cdkObject), CfnEventSubscriptionProps { + ) : CdkObject(cdkObject), + CfnEventSubscriptionProps { /** * A Boolean value; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroup.kt index ddc075998d..8f3a52947d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroup.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ClusterParameterGroup( cdkObject: software.amazon.awscdk.services.docdb.ClusterParameterGroup, -) : Resource(cdkObject), IClusterParameterGroup { +) : Resource(cdkObject), + IClusterParameterGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroupProps.kt index 6c9b364c8e..0ee51568a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/ClusterParameterGroupProps.kt @@ -117,7 +117,8 @@ public interface ClusterParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.ClusterParameterGroupProps, - ) : CdkObject(cdkObject), ClusterParameterGroupProps { + ) : CdkObject(cdkObject), + ClusterParameterGroupProps { /** * The name of the cluster parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseCluster.kt index ff7cacaec1..b6a3b8c858 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseCluster.kt @@ -45,13 +45,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .subnetType(SubnetType.PUBLIC) * .build()) * .vpc(vpc) - * .caCertificate(CaCertificate.RDS_CA_RSA4096_G1) + * .removalPolicy(RemovalPolicy.SNAPSHOT) * .build(); * ``` */ public open class DatabaseCluster( cdkObject: software.amazon.awscdk.services.docdb.DatabaseCluster, -) : Resource(cdkObject), IDatabaseCluster { +) : Resource(cdkObject), + IDatabaseCluster { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -290,7 +291,7 @@ public open class DatabaseCluster( /** * What version of the database to start. * - * Default: - The default engine version. + * Default: - the latest major version * * @param engineVersion What version of the database to start. */ @@ -475,6 +476,18 @@ public open class DatabaseCluster( */ public fun storageEncrypted(storageEncrypted: Boolean) + /** + * The storage type of the DocDB cluster. + * + * I/O-optimized storage is supported starting with engine version 5.0.0. + * + * Default: StorageType.STANDARD + * + * [Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/release-notes.html#release-notes.11-21-2023) + * @param storageType The storage type of the DocDB cluster. + */ + public fun storageType(storageType: StorageType) + /** * What subnets to run the DocumentDB instances in. * @@ -636,7 +649,7 @@ public open class DatabaseCluster( /** * What version of the database to start. * - * Default: - The default engine version. + * Default: - the latest major version * * @param engineVersion What version of the database to start. */ @@ -854,6 +867,20 @@ public open class DatabaseCluster( cdkBuilder.storageEncrypted(storageEncrypted) } + /** + * The storage type of the DocDB cluster. + * + * I/O-optimized storage is supported starting with engine version 5.0.0. + * + * Default: StorageType.STANDARD + * + * [Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/release-notes.html#release-notes.11-21-2023) + * @param storageType The storage type of the DocDB cluster. + */ + override fun storageType(storageType: StorageType) { + cdkBuilder.storageType(storageType.let(StorageType.Companion::unwrap)) + } + /** * What subnets to run the DocumentDB instances in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterAttributes.kt index 2d24bd36a5..dd27d18d00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterAttributes.kt @@ -207,7 +207,8 @@ public interface DatabaseClusterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.DatabaseClusterAttributes, - ) : CdkObject(cdkObject), DatabaseClusterAttributes { + ) : CdkObject(cdkObject), + DatabaseClusterAttributes { /** * Cluster endpoint address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterProps.kt index 8a20374908..f1c87e2764 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseClusterProps.kt @@ -36,7 +36,7 @@ import kotlin.jvm.JvmName * .subnetType(SubnetType.PUBLIC) * .build()) * .vpc(vpc) - * .caCertificate(CaCertificate.RDS_CA_RSA4096_G1) + * .removalPolicy(RemovalPolicy.SNAPSHOT) * .build(); * ``` */ @@ -122,7 +122,7 @@ public interface DatabaseClusterProps { /** * What version of the database to start. * - * Default: - The default engine version. + * Default: - the latest major version */ public fun engineVersion(): String? = unwrap(this).getEngineVersion() @@ -272,6 +272,17 @@ public interface DatabaseClusterProps { */ public fun storageEncrypted(): Boolean? = unwrap(this).getStorageEncrypted() + /** + * The storage type of the DocDB cluster. + * + * I/O-optimized storage is supported starting with engine version 5.0.0. + * + * Default: StorageType.STANDARD + * + * [Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/release-notes.html#release-notes.11-21-2023) + */ + public fun storageType(): StorageType? = unwrap(this).getStorageType()?.let(StorageType::wrap) + /** * What subnets to run the DocumentDB instances in. * @@ -457,6 +468,12 @@ public interface DatabaseClusterProps { */ public fun storageEncrypted(storageEncrypted: Boolean) + /** + * @param storageType The storage type of the DocDB cluster. + * I/O-optimized storage is supported starting with engine version 5.0.0. + */ + public fun storageType(storageType: StorageType) + /** * @param vpc What subnets to run the DocumentDB instances in. * Must be at least 2 subnets in two different AZs. @@ -694,6 +711,14 @@ public interface DatabaseClusterProps { cdkBuilder.storageEncrypted(storageEncrypted) } + /** + * @param storageType The storage type of the DocDB cluster. + * I/O-optimized storage is supported starting with engine version 5.0.0. + */ + override fun storageType(storageType: StorageType) { + cdkBuilder.storageType(storageType.let(StorageType.Companion::unwrap)) + } + /** * @param vpc What subnets to run the DocumentDB instances in. * Must be at least 2 subnets in two different AZs. @@ -723,7 +748,8 @@ public interface DatabaseClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.DatabaseClusterProps, - ) : CdkObject(cdkObject), DatabaseClusterProps { + ) : CdkObject(cdkObject), + DatabaseClusterProps { /** * Backup settings. * @@ -805,7 +831,7 @@ public interface DatabaseClusterProps { /** * What version of the database to start. * - * Default: - The default engine version. + * Default: - the latest major version */ override fun engineVersion(): String? = unwrap(this).getEngineVersion() @@ -959,6 +985,17 @@ public interface DatabaseClusterProps { */ override fun storageEncrypted(): Boolean? = unwrap(this).getStorageEncrypted() + /** + * The storage type of the DocDB cluster. + * + * I/O-optimized storage is supported starting with engine version 5.0.0. + * + * Default: StorageType.STANDARD + * + * [Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/release-notes.html#release-notes.11-21-2023) + */ + override fun storageType(): StorageType? = unwrap(this).getStorageType()?.let(StorageType::wrap) + /** * What subnets to run the DocumentDB instances in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstance.kt index a33d549ea7..b87fc22597 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstance.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DatabaseInstance( cdkObject: software.amazon.awscdk.services.docdb.DatabaseInstance, -) : Resource(cdkObject), IDatabaseInstance { +) : Resource(cdkObject), + IDatabaseInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceAttributes.kt index c57eb29b74..74aa980e4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceAttributes.kt @@ -93,7 +93,8 @@ public interface DatabaseInstanceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.DatabaseInstanceAttributes, - ) : CdkObject(cdkObject), DatabaseInstanceAttributes { + ) : CdkObject(cdkObject), + DatabaseInstanceAttributes { /** * The endpoint address. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceProps.kt index 1b6e1c910e..ca2332744c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseInstanceProps.kt @@ -262,7 +262,8 @@ public interface DatabaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.DatabaseInstanceProps, - ) : CdkObject(cdkObject), DatabaseInstanceProps { + ) : CdkObject(cdkObject), + DatabaseInstanceProps { /** * Indicates that minor engine upgrades are applied automatically to the DB instance during the * maintenance window. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseSecretProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseSecretProps.kt index 896f70410d..fefcaee385 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseSecretProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/DatabaseSecretProps.kt @@ -138,7 +138,8 @@ public interface DatabaseSecretProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.DatabaseSecretProps, - ) : CdkObject(cdkObject), DatabaseSecretProps { + ) : CdkObject(cdkObject), + DatabaseSecretProps { /** * The KMS key to use to encrypt the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IClusterParameterGroup.kt index 8b92de675a..1b66269524 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IClusterParameterGroup.kt @@ -22,7 +22,8 @@ public interface IClusterParameterGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.IClusterParameterGroup, - ) : CdkObject(cdkObject), IClusterParameterGroup { + ) : CdkObject(cdkObject), + IClusterParameterGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseCluster.kt index 5941f17c9b..37a13b9057 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseCluster.kt @@ -52,7 +52,8 @@ public interface IDatabaseCluster : IResource, IConnectable, ISecretAttachmentTa private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.IDatabaseCluster, - ) : CdkObject(cdkObject), IDatabaseCluster { + ) : CdkObject(cdkObject), + IDatabaseCluster { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseInstance.kt index 98b7c16e73..947c7a9ff8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/IDatabaseInstance.kt @@ -42,7 +42,8 @@ public interface IDatabaseInstance : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.IDatabaseInstance, - ) : CdkObject(cdkObject), IDatabaseInstance { + ) : CdkObject(cdkObject), + IDatabaseInstance { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/Login.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/Login.kt index abbea2e2c0..fa6ea9441e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/Login.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/Login.kt @@ -26,7 +26,7 @@ import kotlin.Unit * .subnetType(SubnetType.PUBLIC) * .build()) * .vpc(vpc) - * .caCertificate(CaCertificate.RDS_CA_RSA4096_G1) + * .removalPolicy(RemovalPolicy.SNAPSHOT) * .build(); * ``` */ @@ -143,7 +143,8 @@ public interface Login { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.Login, - ) : CdkObject(cdkObject), Login { + ) : CdkObject(cdkObject), + Login { /** * Specifies characters to not include in generated passwords. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/RotationMultiUserOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/RotationMultiUserOptions.kt index 2c1ad886b0..8c79d53549 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/RotationMultiUserOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/RotationMultiUserOptions.kt @@ -132,7 +132,8 @@ public interface RotationMultiUserOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdb.RotationMultiUserOptions, - ) : CdkObject(cdkObject), RotationMultiUserOptions { + ) : CdkObject(cdkObject), + RotationMultiUserOptions { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/StorageType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/StorageType.kt new file mode 100644 index 0000000000..e953fd7d17 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdb/StorageType.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.docdb + +public enum class StorageType( + private val cdkObject: software.amazon.awscdk.services.docdb.StorageType, +) { + STANDARD(software.amazon.awscdk.services.docdb.StorageType.STANDARD), + IOPT1(software.amazon.awscdk.services.docdb.StorageType.IOPT1), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.docdb.StorageType): StorageType = + when (cdkObject) { + software.amazon.awscdk.services.docdb.StorageType.STANDARD -> StorageType.STANDARD + software.amazon.awscdk.services.docdb.StorageType.IOPT1 -> StorageType.IOPT1 + } + + internal fun unwrap(wrapped: StorageType): software.amazon.awscdk.services.docdb.StorageType = + wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnCluster.kt index e7f4669b05..30e068490a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnCluster.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.docdbelastic.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnClusterProps.kt index 78202e84ee..eec7dffbfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/docdbelastic/CfnClusterProps.kt @@ -499,7 +499,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.docdbelastic.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * The name of the Amazon DocumentDB elastic clusters administrator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Attribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Attribute.kt index 1865111f8b..3a705f93c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Attribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Attribute.kt @@ -77,7 +77,8 @@ public interface Attribute { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.Attribute, - ) : CdkObject(cdkObject), Attribute { + ) : CdkObject(cdkObject), + Attribute { /** * The name of an attribute. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/AutoscaledCapacityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/AutoscaledCapacityOptions.kt index f26e941faf..639be0e516 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/AutoscaledCapacityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/AutoscaledCapacityOptions.kt @@ -139,7 +139,8 @@ public interface AutoscaledCapacityOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.AutoscaledCapacityOptions, - ) : CdkObject(cdkObject), AutoscaledCapacityOptions { + ) : CdkObject(cdkObject), + AutoscaledCapacityOptions { /** * The maximum allowable capacity. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Billing.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Billing.kt index 23203b5159..f71a057ff3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Billing.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Billing.kt @@ -49,6 +49,14 @@ public abstract class Billing( public fun onDemand(): Billing = software.amazon.awscdk.services.dynamodb.Billing.onDemand().let(Billing::wrap) + public fun onDemand(props: MaxThroughputProps): Billing = + software.amazon.awscdk.services.dynamodb.Billing.onDemand(props.let(MaxThroughputProps.Companion::unwrap)).let(Billing::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b2f10a653d7a33f885f60c6b3ae383da96cc92eccf202c292466014846b0dd95") + public fun onDemand(props: MaxThroughputProps.Builder.() -> Unit): Billing = + onDemand(MaxThroughputProps(props)) + public fun provisioned(props: ThroughputProps): Billing = software.amazon.awscdk.services.dynamodb.Billing.provisioned(props.let(ThroughputProps.Companion::unwrap)).let(Billing::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTable.kt index 97b8b52c4a..2f72283d4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTable.kt @@ -277,7 +277,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGlobalTable( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -562,20 +563,20 @@ public open class CfnGlobalTable( = timeToLiveSpecification(TimeToLiveSpecificationProperty(`value`)) /** - * + * Sets the write request settings for a global table or a global secondary index. */ public open fun writeOnDemandThroughputSettings(): Any? = unwrap(this).getWriteOnDemandThroughputSettings() /** - * + * Sets the write request settings for a global table or a global secondary index. */ public open fun writeOnDemandThroughputSettings(`value`: IResolvable) { unwrap(this).setWriteOnDemandThroughputSettings(`value`.let(IResolvable.Companion::unwrap)) } /** - * + * Sets the write request settings for a global table or a global secondary index. */ public open fun writeOnDemandThroughputSettings(`value`: WriteOnDemandThroughputSettingsProperty) { @@ -583,7 +584,7 @@ public open class CfnGlobalTable( } /** - * + * Sets the write request settings for a global table or a global secondary index. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("299f4a5f85f8ece9cfd1c5c9ece7c37bb829428bb1f6dfb96dee1ea4794527ed") @@ -992,21 +993,36 @@ public open class CfnGlobalTable( fun timeToLiveSpecification(timeToLiveSpecification: TimeToLiveSpecificationProperty.Builder.() -> Unit) /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: WriteOnDemandThroughputSettingsProperty) /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8d369adffc4c078a8c2cc57564c544e31adfc18de47eb2a84db3a1dfb26a5ba7") @@ -1469,16 +1485,26 @@ public open class CfnGlobalTable( Unit = timeToLiveSpecification(TimeToLiveSpecificationProperty(timeToLiveSpecification)) /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) { cdkBuilder.writeOnDemandThroughputSettings(writeOnDemandThroughputSettings.let(IResolvable.Companion::unwrap)) } /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: WriteOnDemandThroughputSettingsProperty) { @@ -1486,8 +1512,13 @@ public open class CfnGlobalTable( } /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) - * @param writeOnDemandThroughputSettings + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8d369adffc4c078a8c2cc57564c544e31adfc18de47eb2a84db3a1dfb26a5ba7") @@ -1652,7 +1683,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.AttributeDefinitionProperty, - ) : CdkObject(cdkObject), AttributeDefinitionProperty { + ) : CdkObject(cdkObject), + AttributeDefinitionProperty { /** * A name for the attribute. * @@ -1909,7 +1941,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.CapacityAutoScalingSettingsProperty, - ) : CdkObject(cdkObject), CapacityAutoScalingSettingsProperty { + ) : CdkObject(cdkObject), + CapacityAutoScalingSettingsProperty { /** * The maximum provisioned capacity units for the global table. * @@ -2053,7 +2086,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ContributorInsightsSpecificationProperty, - ) : CdkObject(cdkObject), ContributorInsightsSpecificationProperty { + ) : CdkObject(cdkObject), + ContributorInsightsSpecificationProperty { /** * Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled * (false). @@ -2168,6 +2202,10 @@ public open class CfnGlobalTable( public fun projection(): Any /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-writeondemandthroughputsettings) */ public fun writeOnDemandThroughputSettings(): Any? = @@ -2264,18 +2302,24 @@ public open class CfnGlobalTable( public fun projection(projection: ProjectionProperty.Builder.() -> Unit) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: WriteOnDemandThroughputSettingsProperty) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("75bc700c6e6d1f0b234f7f279ab9bdd40651f966af3b0ae481f86f62bf711096") @@ -2403,14 +2447,18 @@ public open class CfnGlobalTable( projection(ProjectionProperty(projection)) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) { cdkBuilder.writeOnDemandThroughputSettings(writeOnDemandThroughputSettings.let(IResolvable.Companion::unwrap)) } /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: WriteOnDemandThroughputSettingsProperty) { @@ -2418,7 +2466,9 @@ public open class CfnGlobalTable( } /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table + * or a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("75bc700c6e6d1f0b234f7f279ab9bdd40651f966af3b0ae481f86f62bf711096") @@ -2469,7 +2519,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.GlobalSecondaryIndexProperty, - ) : CdkObject(cdkObject), GlobalSecondaryIndexProperty { + ) : CdkObject(cdkObject), + GlobalSecondaryIndexProperty { /** * The name of the global secondary index. * @@ -2509,6 +2560,10 @@ public open class CfnGlobalTable( override fun projection(): Any = unwrap(this).getProjection() /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-writeondemandthroughputsettings) */ override fun writeOnDemandThroughputSettings(): Any? = @@ -2664,7 +2719,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.KeySchemaProperty, - ) : CdkObject(cdkObject), KeySchemaProperty { + ) : CdkObject(cdkObject), + KeySchemaProperty { /** * The name of a key attribute. * @@ -2792,7 +2848,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.KinesisStreamSpecificationProperty, - ) : CdkObject(cdkObject), KinesisStreamSpecificationProperty { + ) : CdkObject(cdkObject), + KinesisStreamSpecificationProperty { /** * The precision for the time and date that the stream was created. * @@ -3071,7 +3128,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.LocalSecondaryIndexProperty, - ) : CdkObject(cdkObject), LocalSecondaryIndexProperty { + ) : CdkObject(cdkObject), + LocalSecondaryIndexProperty { /** * The name of the local secondary index. * @@ -3201,7 +3259,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty, - ) : CdkObject(cdkObject), PointInTimeRecoverySpecificationProperty { + ) : CdkObject(cdkObject), + PointInTimeRecoverySpecificationProperty { /** * Indicates whether point in time recovery is enabled (true) or disabled (false) on the * table. @@ -3356,7 +3415,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ProjectionProperty, - ) : CdkObject(cdkObject), ProjectionProperty { + ) : CdkObject(cdkObject), + ProjectionProperty { /** * Represents the non-key attribute names which will be projected into the index. * @@ -3403,6 +3463,10 @@ public open class CfnGlobalTable( } /** + * Sets the read request settings for a replica table or a replica global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * Example: * * ``` @@ -3419,6 +3483,8 @@ public open class CfnGlobalTable( */ public interface ReadOnDemandThroughputSettingsProperty { /** + * Maximum number of read request units for the specified replica of a global table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readondemandthroughputsettings.html#cfn-dynamodb-globaltable-readondemandthroughputsettings-maxreadrequestunits) */ public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() @@ -3429,7 +3495,8 @@ public open class CfnGlobalTable( @CdkDslMarker public interface Builder { /** - * @param maxReadRequestUnits the value to be set. + * @param maxReadRequestUnits Maximum number of read request units for the specified replica + * of a global table. */ public fun maxReadRequestUnits(maxReadRequestUnits: Number) } @@ -3441,7 +3508,8 @@ public open class CfnGlobalTable( software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReadOnDemandThroughputSettingsProperty.builder() /** - * @param maxReadRequestUnits the value to be set. + * @param maxReadRequestUnits Maximum number of read request units for the specified replica + * of a global table. */ override fun maxReadRequestUnits(maxReadRequestUnits: Number) { cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) @@ -3454,8 +3522,11 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReadOnDemandThroughputSettingsProperty, - ) : CdkObject(cdkObject), ReadOnDemandThroughputSettingsProperty { + ) : CdkObject(cdkObject), + ReadOnDemandThroughputSettingsProperty { /** + * Maximum number of read request units for the specified replica of a global table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readondemandthroughputsettings.html#cfn-dynamodb-globaltable-readondemandthroughputsettings-maxreadrequestunits) */ override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() @@ -3613,7 +3684,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty, - ) : CdkObject(cdkObject), ReadProvisionedThroughputSettingsProperty { + ) : CdkObject(cdkObject), + ReadProvisionedThroughputSettingsProperty { /** * Specifies auto scaling settings for the replica table or global secondary index. * @@ -3715,6 +3787,10 @@ public open class CfnGlobalTable( public fun indexName(): String /** + * Sets the read request settings for a replica global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html#cfn-dynamodb-globaltable-replicaglobalsecondaryindexspecification-readondemandthroughputsettings) */ public fun readOnDemandThroughputSettings(): Any? = @@ -3778,18 +3854,24 @@ public open class CfnGlobalTable( public fun indexName(indexName: String) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: IResolvable) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: ReadOnDemandThroughputSettingsProperty) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("afdf16d2798041a0b92d4ce57cbf89143ebabde09bf9c47543cd5c7117d71e89") @@ -3877,14 +3959,18 @@ public open class CfnGlobalTable( } /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: IResolvable) { cdkBuilder.readOnDemandThroughputSettings(readOnDemandThroughputSettings.let(IResolvable.Companion::unwrap)) } /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: ReadOnDemandThroughputSettingsProperty) { @@ -3892,7 +3978,9 @@ public open class CfnGlobalTable( } /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets the read request settings for a replica global + * secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("afdf16d2798041a0b92d4ce57cbf89143ebabde09bf9c47543cd5c7117d71e89") @@ -3937,7 +4025,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty, - ) : CdkObject(cdkObject), ReplicaGlobalSecondaryIndexSpecificationProperty { + ) : CdkObject(cdkObject), + ReplicaGlobalSecondaryIndexSpecificationProperty { /** * Updates the status for contributor insights for a specific table or index. * @@ -3962,6 +4051,10 @@ public open class CfnGlobalTable( override fun indexName(): String = unwrap(this).getIndexName() /** + * Sets the read request settings for a replica global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html#cfn-dynamodb-globaltable-replicaglobalsecondaryindexspecification-readondemandthroughputsettings) */ override fun readOnDemandThroughputSettings(): Any? = @@ -4065,7 +4158,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSSESpecificationProperty, - ) : CdkObject(cdkObject), ReplicaSSESpecificationProperty { + ) : CdkObject(cdkObject), + ReplicaSSESpecificationProperty { /** * The AWS KMS key that should be used for the AWS KMS encryption. * @@ -4237,6 +4331,8 @@ public open class CfnGlobalTable( unwrap(this).getPointInTimeRecoverySpecification() /** + * Sets read request settings for the replica table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-readondemandthroughputsettings) */ public fun readOnDemandThroughputSettings(): Any? = @@ -4423,18 +4519,18 @@ public open class CfnGlobalTable( fun pointInTimeRecoverySpecification(pointInTimeRecoverySpecification: PointInTimeRecoverySpecificationProperty.Builder.() -> Unit) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ public fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: IResolvable) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ public fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: ReadOnDemandThroughputSettingsProperty) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f7144966396cf4947837c85cdfeef9ac25a567337ea06f0ef3dc016f448d57d2") @@ -4726,14 +4822,14 @@ public open class CfnGlobalTable( pointInTimeRecoverySpecification(PointInTimeRecoverySpecificationProperty(pointInTimeRecoverySpecification)) /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ override fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: IResolvable) { cdkBuilder.readOnDemandThroughputSettings(readOnDemandThroughputSettings.let(IResolvable.Companion::unwrap)) } /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ override fun readOnDemandThroughputSettings(readOnDemandThroughputSettings: ReadOnDemandThroughputSettingsProperty) { @@ -4741,7 +4837,7 @@ public open class CfnGlobalTable( } /** - * @param readOnDemandThroughputSettings the value to be set. + * @param readOnDemandThroughputSettings Sets read request settings for the replica table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f7144966396cf4947837c85cdfeef9ac25a567337ea06f0ef3dc016f448d57d2") @@ -4931,7 +5027,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSpecificationProperty, - ) : CdkObject(cdkObject), ReplicaSpecificationProperty { + ) : CdkObject(cdkObject), + ReplicaSpecificationProperty { /** * The settings used to enable or disable CloudWatch Contributor Insights for the specified * replica. @@ -4980,6 +5077,8 @@ public open class CfnGlobalTable( unwrap(this).getPointInTimeRecoverySpecification() /** + * Sets read request settings for the replica table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-readondemandthroughputsettings) */ override fun readOnDemandThroughputSettings(): Any? = @@ -5273,7 +5372,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaStreamSpecificationProperty, - ) : CdkObject(cdkObject), ReplicaStreamSpecificationProperty { + ) : CdkObject(cdkObject), + ReplicaStreamSpecificationProperty { /** * A resource-based policy document that contains the permissions for the specified stream of * a DynamoDB global table replica. @@ -5441,7 +5541,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ResourcePolicyProperty, - ) : CdkObject(cdkObject), ResourcePolicyProperty { + ) : CdkObject(cdkObject), + ResourcePolicyProperty { /** * A resource-based policy document that contains permissions to add to the specified DynamoDB * table, its indexes, and stream. @@ -5602,7 +5703,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.SSESpecificationProperty, - ) : CdkObject(cdkObject), SSESpecificationProperty { + ) : CdkObject(cdkObject), + SSESpecificationProperty { /** * Indicates whether server-side encryption is performed using an AWS managed key or an AWS * owned key. @@ -5736,7 +5838,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.StreamSpecificationProperty, - ) : CdkObject(cdkObject), StreamSpecificationProperty { + ) : CdkObject(cdkObject), + StreamSpecificationProperty { /** * When an item in the table is modified, `StreamViewType` determines what information is * written to the stream for this table. @@ -5920,7 +6023,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingScalingPolicyConfigurationProperty { /** * Indicates whether scale in by the target tracking scaling policy is disabled. * @@ -6083,7 +6187,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.TimeToLiveSpecificationProperty, - ) : CdkObject(cdkObject), TimeToLiveSpecificationProperty { + ) : CdkObject(cdkObject), + TimeToLiveSpecificationProperty { /** * The name of the attribute used to store the expiration time for items in the table. * @@ -6123,6 +6228,10 @@ public open class CfnGlobalTable( } /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * Example: * * ``` @@ -6139,6 +6248,8 @@ public open class CfnGlobalTable( */ public interface WriteOnDemandThroughputSettingsProperty { /** + * Maximum number of write request settings for the specified replica of a global table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-writeondemandthroughputsettings.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings-maxwriterequestunits) */ public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() @@ -6149,7 +6260,8 @@ public open class CfnGlobalTable( @CdkDslMarker public interface Builder { /** - * @param maxWriteRequestUnits the value to be set. + * @param maxWriteRequestUnits Maximum number of write request settings for the specified + * replica of a global table. */ public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) } @@ -6161,7 +6273,8 @@ public open class CfnGlobalTable( software.amazon.awscdk.services.dynamodb.CfnGlobalTable.WriteOnDemandThroughputSettingsProperty.builder() /** - * @param maxWriteRequestUnits the value to be set. + * @param maxWriteRequestUnits Maximum number of write request settings for the specified + * replica of a global table. */ override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) @@ -6174,8 +6287,11 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.WriteOnDemandThroughputSettingsProperty, - ) : CdkObject(cdkObject), WriteOnDemandThroughputSettingsProperty { + ) : CdkObject(cdkObject), + WriteOnDemandThroughputSettingsProperty { /** + * Maximum number of write request settings for the specified replica of a global table. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-writeondemandthroughputsettings.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings-maxwriterequestunits) */ override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() @@ -6310,7 +6426,8 @@ public open class CfnGlobalTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTable.WriteProvisionedThroughputSettingsProperty, - ) : CdkObject(cdkObject), WriteProvisionedThroughputSettingsProperty { + ) : CdkObject(cdkObject), + WriteProvisionedThroughputSettingsProperty { /** * Specifies auto scaling settings for the replica table or global secondary index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTableProps.kt index 20af93151c..a5e5d5502c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnGlobalTableProps.kt @@ -321,6 +321,10 @@ public interface CfnGlobalTableProps { public fun timeToLiveSpecification(): Any? = unwrap(this).getTimeToLiveSpecification() /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) */ public fun writeOnDemandThroughputSettings(): Any? = @@ -607,18 +611,24 @@ public interface CfnGlobalTableProps { fun timeToLiveSpecification(timeToLiveSpecification: CfnGlobalTable.TimeToLiveSpecificationProperty.Builder.() -> Unit) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ public fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: CfnGlobalTable.WriteOnDemandThroughputSettingsProperty) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03ff940b187afcc4d415dbd175d3418a96cc698bd2755a5821b65ea8f65b9834") @@ -967,14 +977,18 @@ public interface CfnGlobalTableProps { timeToLiveSpecification(CfnGlobalTable.TimeToLiveSpecificationProperty(timeToLiveSpecification)) /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: IResolvable) { cdkBuilder.writeOnDemandThroughputSettings(writeOnDemandThroughputSettings.let(IResolvable.Companion::unwrap)) } /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ override fun writeOnDemandThroughputSettings(writeOnDemandThroughputSettings: CfnGlobalTable.WriteOnDemandThroughputSettingsProperty) { @@ -982,7 +996,9 @@ public interface CfnGlobalTableProps { } /** - * @param writeOnDemandThroughputSettings the value to be set. + * @param writeOnDemandThroughputSettings Sets the write request settings for a global table or + * a global secondary index. + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03ff940b187afcc4d415dbd175d3418a96cc698bd2755a5821b65ea8f65b9834") @@ -1032,7 +1048,8 @@ public interface CfnGlobalTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnGlobalTableProps, - ) : CdkObject(cdkObject), CfnGlobalTableProps { + ) : CdkObject(cdkObject), + CfnGlobalTableProps { /** * A list of attributes that describe the key schema for the global table and indexes. * @@ -1165,6 +1182,10 @@ public interface CfnGlobalTableProps { override fun timeToLiveSpecification(): Any? = unwrap(this).getTimeToLiveSpecification() /** + * Sets the write request settings for a global table or a global secondary index. + * + * You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeondemandthroughputsettings) */ override fun writeOnDemandThroughputSettings(): Any? = diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTable.kt index dda1017927..307f0b04b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTable.kt @@ -168,7 +168,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTable( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -435,26 +437,26 @@ public open class CfnTable( localSecondaryIndexes(`value`.toList()) /** - * + * Sets the maximum number of read and write units for the specified on-demand table. */ public open fun onDemandThroughput(): Any? = unwrap(this).getOnDemandThroughput() /** - * + * Sets the maximum number of read and write units for the specified on-demand table. */ public open fun onDemandThroughput(`value`: IResolvable) { unwrap(this).setOnDemandThroughput(`value`.let(IResolvable.Companion::unwrap)) } /** - * + * Sets the maximum number of read and write units for the specified on-demand table. */ public open fun onDemandThroughput(`value`: OnDemandThroughputProperty) { unwrap(this).setOnDemandThroughput(`value`.let(OnDemandThroughputProperty.Companion::unwrap)) } /** - * + * Sets the maximum number of read and write units for the specified on-demand table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c93adda1db198600681d4d1f3eccea6b279138abfc98c48df8f9700db8fe154c") @@ -1050,20 +1052,38 @@ public open class CfnTable( public fun localSecondaryIndexes(vararg localSecondaryIndexes: Any) /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ public fun onDemandThroughput(onDemandThroughput: IResolvable) /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ public fun onDemandThroughput(onDemandThroughput: OnDemandThroughputProperty) /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c6881b07c0f5d8cd3d66f6ea81853d9f53c08aefb6c5ca373298c0dee1bf8c5d") @@ -1796,24 +1816,42 @@ public open class CfnTable( localSecondaryIndexes(localSecondaryIndexes.toList()) /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ override fun onDemandThroughput(onDemandThroughput: IResolvable) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(IResolvable.Companion::unwrap)) } /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ override fun onDemandThroughput(onDemandThroughput: OnDemandThroughputProperty) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(OnDemandThroughputProperty.Companion::unwrap)) } /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) - * @param onDemandThroughput + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c6881b07c0f5d8cd3d66f6ea81853d9f53c08aefb6c5ca373298c0dee1bf8c5d") @@ -2274,7 +2312,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.AttributeDefinitionProperty, - ) : CdkObject(cdkObject), AttributeDefinitionProperty { + ) : CdkObject(cdkObject), + AttributeDefinitionProperty { /** * A name for the attribute. * @@ -2385,7 +2424,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.ContributorInsightsSpecificationProperty, - ) : CdkObject(cdkObject), ContributorInsightsSpecificationProperty { + ) : CdkObject(cdkObject), + ContributorInsightsSpecificationProperty { /** * Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled * (false). @@ -2518,7 +2558,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * The delimiter used for separating items in the CSV file being imported. * @@ -2629,6 +2670,11 @@ public open class CfnTable( public fun keySchema(): Any /** + * The maximum number of read and write units for the specified global secondary index. + * + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-ondemandthroughput) */ public fun onDemandThroughput(): Any? = unwrap(this).getOnDemandThroughput() @@ -2731,17 +2777,26 @@ public open class CfnTable( public fun keySchema(vararg keySchema: Any) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ public fun onDemandThroughput(onDemandThroughput: IResolvable) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ public fun onDemandThroughput(onDemandThroughput: OnDemandThroughputProperty) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cae04943fcb210d89eebb92f56cb35dc3b451709e92e9481802f625359c0f6ef") @@ -2893,21 +2948,30 @@ public open class CfnTable( override fun keySchema(vararg keySchema: Any): Unit = keySchema(keySchema.toList()) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ override fun onDemandThroughput(onDemandThroughput: IResolvable) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(IResolvable.Companion::unwrap)) } /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ override fun onDemandThroughput(onDemandThroughput: OnDemandThroughputProperty) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(OnDemandThroughputProperty.Companion::unwrap)) } /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput The maximum number of read and write units for the specified + * global secondary index. + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cae04943fcb210d89eebb92f56cb35dc3b451709e92e9481802f625359c0f6ef") @@ -2988,7 +3052,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.GlobalSecondaryIndexProperty, - ) : CdkObject(cdkObject), GlobalSecondaryIndexProperty { + ) : CdkObject(cdkObject), + GlobalSecondaryIndexProperty { /** * The settings used to enable or disable CloudWatch Contributor Insights for the specified * global secondary index. @@ -3026,6 +3091,11 @@ public open class CfnTable( override fun keySchema(): Any = unwrap(this).getKeySchema() /** + * The maximum number of read and write units for the specified global secondary index. + * + * If you use this parameter, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` + * , or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-ondemandthroughput) */ override fun onDemandThroughput(): Any? = unwrap(this).getOnDemandThroughput() @@ -3260,7 +3330,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.ImportSourceSpecificationProperty, - ) : CdkObject(cdkObject), ImportSourceSpecificationProperty { + ) : CdkObject(cdkObject), + ImportSourceSpecificationProperty { /** * Type of compression to be used on the input coming from the imported table. * @@ -3404,7 +3475,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.InputFormatOptionsProperty, - ) : CdkObject(cdkObject), InputFormatOptionsProperty { + ) : CdkObject(cdkObject), + InputFormatOptionsProperty { /** * The options for imported source files in CSV format. * @@ -3553,7 +3625,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.KeySchemaProperty, - ) : CdkObject(cdkObject), KeySchemaProperty { + ) : CdkObject(cdkObject), + KeySchemaProperty { /** * The name of a key attribute. * @@ -3685,7 +3758,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.KinesisStreamSpecificationProperty, - ) : CdkObject(cdkObject), KinesisStreamSpecificationProperty { + ) : CdkObject(cdkObject), + KinesisStreamSpecificationProperty { /** * The precision for the time and date that the stream was created. * @@ -3965,7 +4039,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.LocalSecondaryIndexProperty, - ) : CdkObject(cdkObject), LocalSecondaryIndexProperty { + ) : CdkObject(cdkObject), + LocalSecondaryIndexProperty { /** * The name of the local secondary index. * @@ -4024,6 +4099,11 @@ public open class CfnTable( } /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , or + * both. + * * Example: * * ``` @@ -4040,11 +4120,23 @@ public open class CfnTable( */ public interface OnDemandThroughputProperty { /** + * Maximum number of read request units for the specified table. + * + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxReadRequestUnits` as greater than or equal to 1. To remove the maximum `OnDemandThroughput` + * that is currently set on your table, set the value of `MaxReadRequestUnits` to -1. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html#cfn-dynamodb-table-ondemandthroughput-maxreadrequestunits) */ public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() /** + * Maximum number of write request units for the specified table. + * + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxWriteRequestUnits` as greater than or equal to 1. To remove the maximum `OnDemandThroughput` + * that is currently set on your table, set the value of `MaxWriteRequestUnits` to -1. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html#cfn-dynamodb-table-ondemandthroughput-maxwriterequestunits) */ public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() @@ -4055,12 +4147,20 @@ public open class CfnTable( @CdkDslMarker public interface Builder { /** - * @param maxReadRequestUnits the value to be set. + * @param maxReadRequestUnits Maximum number of read request units for the specified table. + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxReadRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxReadRequestUnits` to -1. */ public fun maxReadRequestUnits(maxReadRequestUnits: Number) /** - * @param maxWriteRequestUnits the value to be set. + * @param maxWriteRequestUnits Maximum number of write request units for the specified table. + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxWriteRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxWriteRequestUnits` to -1. */ public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) } @@ -4071,14 +4171,22 @@ public open class CfnTable( software.amazon.awscdk.services.dynamodb.CfnTable.OnDemandThroughputProperty.builder() /** - * @param maxReadRequestUnits the value to be set. + * @param maxReadRequestUnits Maximum number of read request units for the specified table. + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxReadRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxReadRequestUnits` to -1. */ override fun maxReadRequestUnits(maxReadRequestUnits: Number) { cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) } /** - * @param maxWriteRequestUnits the value to be set. + * @param maxWriteRequestUnits Maximum number of write request units for the specified table. + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxWriteRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxWriteRequestUnits` to -1. */ override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) @@ -4091,13 +4199,28 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.OnDemandThroughputProperty, - ) : CdkObject(cdkObject), OnDemandThroughputProperty { + ) : CdkObject(cdkObject), + OnDemandThroughputProperty { /** + * Maximum number of read request units for the specified table. + * + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxReadRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxReadRequestUnits` to -1. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html#cfn-dynamodb-table-ondemandthroughput-maxreadrequestunits) */ override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() /** + * Maximum number of write request units for the specified table. + * + * To specify a maximum `OnDemandThroughput` on your table, set the value of + * `MaxWriteRequestUnits` as greater than or equal to 1. To remove the maximum + * `OnDemandThroughput` that is currently set on your table, set the value of + * `MaxWriteRequestUnits` to -1. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html#cfn-dynamodb-table-ondemandthroughput-maxwriterequestunits) */ override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() @@ -4193,7 +4316,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.PointInTimeRecoverySpecificationProperty, - ) : CdkObject(cdkObject), PointInTimeRecoverySpecificationProperty { + ) : CdkObject(cdkObject), + PointInTimeRecoverySpecificationProperty { /** * Indicates whether point in time recovery is enabled (true) or disabled (false) on the * table. @@ -4348,7 +4472,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.ProjectionProperty, - ) : CdkObject(cdkObject), ProjectionProperty { + ) : CdkObject(cdkObject), + ProjectionProperty { /** * Represents the non-key attribute names which will be projected into the index. * @@ -4513,7 +4638,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.ProvisionedThroughputProperty, - ) : CdkObject(cdkObject), ProvisionedThroughputProperty { + ) : CdkObject(cdkObject), + ProvisionedThroughputProperty { /** * The maximum number of strongly consistent reads consumed per second before DynamoDB returns * a `ThrottlingException` . @@ -4676,7 +4802,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.ResourcePolicyProperty, - ) : CdkObject(cdkObject), ResourcePolicyProperty { + ) : CdkObject(cdkObject), + ResourcePolicyProperty { /** * A resource-based policy document that contains permissions to add to the specified DynamoDB * table, index, or both. @@ -4810,7 +4937,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.S3BucketSourceProperty, - ) : CdkObject(cdkObject), S3BucketSourceProperty { + ) : CdkObject(cdkObject), + S3BucketSourceProperty { /** * The S3 bucket that is being imported from. * @@ -4997,7 +5125,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.SSESpecificationProperty, - ) : CdkObject(cdkObject), SSESpecificationProperty { + ) : CdkObject(cdkObject), + SSESpecificationProperty { /** * The AWS KMS key that should be used for the AWS KMS encryption. * @@ -5263,7 +5392,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.StreamSpecificationProperty, - ) : CdkObject(cdkObject), StreamSpecificationProperty { + ) : CdkObject(cdkObject), + StreamSpecificationProperty { /** * Creates or updates a resource-based policy document that contains the permissions for * DynamoDB resources, such as a table's streams. @@ -5432,7 +5562,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTable.TimeToLiveSpecificationProperty, - ) : CdkObject(cdkObject), TimeToLiveSpecificationProperty { + ) : CdkObject(cdkObject), + TimeToLiveSpecificationProperty { /** * The name of the TTL attribute used to store the expiration time for items in the table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTableProps.kt index 30953c44d8..9914ee38e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CfnTableProps.kt @@ -262,6 +262,11 @@ public interface CfnTableProps { public fun localSecondaryIndexes(): Any? = unwrap(this).getLocalSecondaryIndexes() /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , or + * both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) */ public fun onDemandThroughput(): Any? = unwrap(this).getOnDemandThroughput() @@ -644,17 +649,26 @@ public interface CfnTableProps { public fun localSecondaryIndexes(vararg localSecondaryIndexes: Any) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ public fun onDemandThroughput(onDemandThroughput: IResolvable) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ public fun onDemandThroughput(onDemandThroughput: CfnTable.OnDemandThroughputProperty) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cc718963042c53d725537d46f01dd6981e8cf3c1c5ce260b1ef47d116d832b4e") @@ -1196,21 +1210,30 @@ public interface CfnTableProps { localSecondaryIndexes(localSecondaryIndexes.toList()) /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ override fun onDemandThroughput(onDemandThroughput: IResolvable) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(IResolvable.Companion::unwrap)) } /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ override fun onDemandThroughput(onDemandThroughput: CfnTable.OnDemandThroughputProperty) { cdkBuilder.onDemandThroughput(onDemandThroughput.let(CfnTable.OnDemandThroughputProperty.Companion::unwrap)) } /** - * @param onDemandThroughput the value to be set. + * @param onDemandThroughput Sets the maximum number of read and write units for the specified + * on-demand table. + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cc718963042c53d725537d46f01dd6981e8cf3c1c5ce260b1ef47d116d832b4e") @@ -1484,7 +1507,8 @@ public interface CfnTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CfnTableProps, - ) : CdkObject(cdkObject), CfnTableProps { + ) : CdkObject(cdkObject), + CfnTableProps { /** * A list of attributes that describe the key schema for the table and indexes. * @@ -1609,6 +1633,11 @@ public interface CfnTableProps { override fun localSecondaryIndexes(): Any? = unwrap(this).getLocalSecondaryIndexes() /** + * Sets the maximum number of read and write units for the specified on-demand table. + * + * If you use this property, you must specify `MaxReadRequestUnits` , `MaxWriteRequestUnits` , + * or both. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ondemandthroughput) */ override fun onDemandThroughput(): Any? = unwrap(this).getOnDemandThroughput() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CsvOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CsvOptions.kt index 9c150e1b69..762a497af4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CsvOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/CsvOptions.kt @@ -146,7 +146,8 @@ public interface CsvOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.CsvOptions, - ) : CdkObject(cdkObject), CsvOptions { + ) : CdkObject(cdkObject), + CsvOptions { /** * The delimiter used for separating items in the CSV file being imported. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/EnableScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/EnableScalingProps.kt index a3ffff4892..fa679307fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/EnableScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/EnableScalingProps.kt @@ -76,7 +76,8 @@ public interface EnableScalingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.EnableScalingProps, - ) : CdkObject(cdkObject), EnableScalingProps { + ) : CdkObject(cdkObject), + EnableScalingProps { /** * Maximum capacity to scale to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexProps.kt index 4b14b4e385..a16546a7da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexProps.kt @@ -27,6 +27,8 @@ import kotlin.jvm.JvmName * .type(AttributeType.BINARY) * .build()) * // the properties below are optional + * .maxReadRequestUnits(123) + * .maxWriteRequestUnits(123) * .nonKeyAttributes(List.of("nonKeyAttributes")) * .projectionType(ProjectionType.KEYS_ONLY) * .readCapacity(123) @@ -39,6 +41,24 @@ import kotlin.jvm.JvmName * ``` */ public interface GlobalSecondaryIndexProps : SecondaryIndexProps, SchemaOptions { + /** + * The maximum read request units for the global secondary index. + * + * Can only be provided if table billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The maximum write request units for the global secondary index. + * + * Can only be provided if table billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * The read capacity for the global secondary index. * @@ -67,6 +87,18 @@ public interface GlobalSecondaryIndexProps : SecondaryIndexProps, SchemaOptions */ public fun indexName(indexName: String) + /** + * @param maxReadRequestUnits The maximum read request units for the global secondary index. + * Can only be provided if table billingMode is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * @param maxWriteRequestUnits The maximum write request units for the global secondary index. + * Can only be provided if table billingMode is PAY_PER_REQUEST. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + /** * @param nonKeyAttributes The non-key attributes that are projected into the secondary index. */ @@ -131,6 +163,22 @@ public interface GlobalSecondaryIndexProps : SecondaryIndexProps, SchemaOptions cdkBuilder.indexName(indexName) } + /** + * @param maxReadRequestUnits The maximum read request units for the global secondary index. + * Can only be provided if table billingMode is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * @param maxWriteRequestUnits The maximum write request units for the global secondary index. + * Can only be provided if table billingMode is PAY_PER_REQUEST. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + /** * @param nonKeyAttributes The non-key attributes that are projected into the secondary index. */ @@ -202,12 +250,31 @@ public interface GlobalSecondaryIndexProps : SecondaryIndexProps, SchemaOptions private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.GlobalSecondaryIndexProps, - ) : CdkObject(cdkObject), GlobalSecondaryIndexProps { + ) : CdkObject(cdkObject), + GlobalSecondaryIndexProps { /** * The name of the secondary index. */ override fun indexName(): String = unwrap(this).getIndexName() + /** + * The maximum read request units for the global secondary index. + * + * Can only be provided if table billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The maximum write request units for the global secondary index. + * + * Can only be provided if table billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * The non-key attributes that are projected into the secondary index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexPropsV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexPropsV2.kt index 9655f23d1c..cdfd3e98ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexPropsV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/GlobalSecondaryIndexPropsV2.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.dynamodb import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -30,6 +31,24 @@ import kotlin.jvm.JvmName * ``` */ public interface GlobalSecondaryIndexPropsV2 : SecondaryIndexProps { + /** + * The maximum read request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table. + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The maximum write request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table. + */ + public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * Partition key attribute definition. */ @@ -70,6 +89,18 @@ public interface GlobalSecondaryIndexPropsV2 : SecondaryIndexProps { */ public fun indexName(indexName: String) + /** + * @param maxReadRequestUnits The maximum read request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * @param maxWriteRequestUnits The maximum write request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + /** * @param nonKeyAttributes The non-key attributes that are projected into the secondary index. */ @@ -134,6 +165,22 @@ public interface GlobalSecondaryIndexPropsV2 : SecondaryIndexProps { cdkBuilder.indexName(indexName) } + /** + * @param maxReadRequestUnits The maximum read request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * @param maxWriteRequestUnits The maximum write request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + /** * @param nonKeyAttributes The non-key attributes that are projected into the secondary index. */ @@ -205,12 +252,31 @@ public interface GlobalSecondaryIndexPropsV2 : SecondaryIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.GlobalSecondaryIndexPropsV2, - ) : CdkObject(cdkObject), GlobalSecondaryIndexPropsV2 { + ) : CdkObject(cdkObject), + GlobalSecondaryIndexPropsV2 { /** * The name of the secondary index. */ override fun indexName(): String = unwrap(this).getIndexName() + /** + * The maximum read request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table. + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The maximum write request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table. + */ + override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * The non-key attributes that are projected into the secondary index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/IScalableTableAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/IScalableTableAttribute.kt index 42593d5bb8..9b5c58bd13 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/IScalableTableAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/IScalableTableAttribute.kt @@ -49,7 +49,8 @@ public interface IScalableTableAttribute { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.IScalableTableAttribute, - ) : CdkObject(cdkObject), IScalableTableAttribute { + ) : CdkObject(cdkObject), + IScalableTableAttribute { /** * Add scheduled scaling for this scaling attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITable.kt index 20b0c09cf9..3d041d12f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITable.kt @@ -352,7 +352,8 @@ public interface ITable : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ITable, - ) : CdkObject(cdkObject), ITable { + ) : CdkObject(cdkObject), + ITable { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITableV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITableV2.kt index c47bccca8d..94ed078bf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITableV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ITableV2.kt @@ -30,7 +30,8 @@ public interface ITableV2 : ITable { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ITableV2, - ) : CdkObject(cdkObject), ITableV2 { + ) : CdkObject(cdkObject), + ITableV2 { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ImportSourceSpecification.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ImportSourceSpecification.kt index a2d400ed57..7fb27ed2ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ImportSourceSpecification.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ImportSourceSpecification.kt @@ -144,7 +144,8 @@ public interface ImportSourceSpecification { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ImportSourceSpecification, - ) : CdkObject(cdkObject), ImportSourceSpecification { + ) : CdkObject(cdkObject), + ImportSourceSpecification { /** * The S3 bucket that is being imported from. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/LocalSecondaryIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/LocalSecondaryIndexProps.kt index 7026856cf9..3311db96da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/LocalSecondaryIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/LocalSecondaryIndexProps.kt @@ -126,7 +126,8 @@ public interface LocalSecondaryIndexProps : SecondaryIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.LocalSecondaryIndexProps, - ) : CdkObject(cdkObject), LocalSecondaryIndexProps { + ) : CdkObject(cdkObject), + LocalSecondaryIndexProps { /** * The name of the secondary index. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/MaxThroughputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/MaxThroughputProps.kt new file mode 100644 index 0000000000..203a20de20 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/MaxThroughputProps.kt @@ -0,0 +1,120 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.dynamodb + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.Unit + +/** + * Properties used to configure maximum throughput for an on-demand table. + * + * Example: + * + * ``` + * TableV2 table = TableV2.Builder.create(this, "Table") + * .partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build()) + * .billing(Billing.onDemand(MaxThroughputProps.builder() + * .maxReadRequestUnits(100) + * .maxWriteRequestUnits(115) + * .build())) + * .build(); + * ``` + */ +public interface MaxThroughputProps { + /** + * The max read request units. + * + * Default: - if table mode is on-demand and this property is undefined, + * no maximum throughput limit will be put in place for read requests. + * This property is only applicable for tables using on-demand mode. + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The max write request units. + * + * Default: - if table mode is on-demand and this property is undefined, + * no maximum throughput limit will be put in place for write requests. + * This property is only applicable for tables using on-demand mode. + */ + public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + + /** + * A builder for [MaxThroughputProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maxReadRequestUnits The max read request units. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * @param maxWriteRequestUnits The max write request units. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.dynamodb.MaxThroughputProps.Builder = + software.amazon.awscdk.services.dynamodb.MaxThroughputProps.builder() + + /** + * @param maxReadRequestUnits The max read request units. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * @param maxWriteRequestUnits The max write request units. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + + public fun build(): software.amazon.awscdk.services.dynamodb.MaxThroughputProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.dynamodb.MaxThroughputProps, + ) : CdkObject(cdkObject), + MaxThroughputProps { + /** + * The max read request units. + * + * Default: - if table mode is on-demand and this property is undefined, + * no maximum throughput limit will be put in place for read requests. + * This property is only applicable for tables using on-demand mode. + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The max write request units. + * + * Default: - if table mode is on-demand and this property is undefined, + * no maximum throughput limit will be put in place for write requests. + * This property is only applicable for tables using on-demand mode. + */ + override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MaxThroughputProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.dynamodb.MaxThroughputProps): + MaxThroughputProps = CdkObjectWrappers.wrap(cdkObject) as? MaxThroughputProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MaxThroughputProps): + software.amazon.awscdk.services.dynamodb.MaxThroughputProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.dynamodb.MaxThroughputProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/OperationsMetricOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/OperationsMetricOptions.kt index 9838e8d5b1..09afa903f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/OperationsMetricOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/OperationsMetricOptions.kt @@ -243,7 +243,8 @@ public interface OperationsMetricOptions : SystemErrorsForOperationsMetricOption private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.OperationsMetricOptions, - ) : CdkObject(cdkObject), OperationsMetricOptions { + ) : CdkObject(cdkObject), + OperationsMetricOptions { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaGlobalSecondaryIndexOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaGlobalSecondaryIndexOptions.kt index b479eb41c7..f9064257ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaGlobalSecondaryIndexOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaGlobalSecondaryIndexOptions.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean +import kotlin.Number import kotlin.Unit /** @@ -60,6 +61,15 @@ public interface ReplicaGlobalSecondaryIndexOptions { */ public fun contributorInsights(): Boolean? = unwrap(this).getContributorInsights() + /** + * The maximum read request units for a specific global secondary index on a replica table. + * + * Note: This can only be configured if primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + /** * The read capacity for a specific global secondary index on a replica table. * @@ -80,6 +90,13 @@ public interface ReplicaGlobalSecondaryIndexOptions { */ public fun contributorInsights(contributorInsights: Boolean) + /** + * @param maxReadRequestUnits The maximum read request units for a specific global secondary + * index on a replica table. + * Note: This can only be configured if primary table billing is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + /** * @param readCapacity The read capacity for a specific global secondary index on a replica * table. @@ -101,6 +118,15 @@ public interface ReplicaGlobalSecondaryIndexOptions { cdkBuilder.contributorInsights(contributorInsights) } + /** + * @param maxReadRequestUnits The maximum read request units for a specific global secondary + * index on a replica table. + * Note: This can only be configured if primary table billing is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + /** * @param readCapacity The read capacity for a specific global secondary index on a replica * table. @@ -116,7 +142,8 @@ public interface ReplicaGlobalSecondaryIndexOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ReplicaGlobalSecondaryIndexOptions, - ) : CdkObject(cdkObject), ReplicaGlobalSecondaryIndexOptions { + ) : CdkObject(cdkObject), + ReplicaGlobalSecondaryIndexOptions { /** * Whether CloudWatch contributor insights is enabled for a specific global secondary index on a * replica table. @@ -125,6 +152,15 @@ public interface ReplicaGlobalSecondaryIndexOptions { */ override fun contributorInsights(): Boolean? = unwrap(this).getContributorInsights() + /** + * The maximum read request units for a specific global secondary index on a replica table. + * + * Note: This can only be configured if primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + /** * The read capacity for a specific global secondary index on a replica table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaTableProps.kt index 0a640cae37..27886f25cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ReplicaTableProps.kt @@ -6,12 +6,15 @@ import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import kotlin.Boolean +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List import kotlin.collections.Map +import kotlin.jvm.JvmName /** * Properties used to configure a replica table. @@ -40,6 +43,15 @@ public interface ReplicaTableProps : TableOptionsV2 { unwrap(this).getGlobalSecondaryIndexOptions()?.mapValues{ReplicaGlobalSecondaryIndexOptions.wrap(it.value)} ?: emptyMap() + /** + * The maxium read request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + /** * The read capacity. * @@ -81,6 +93,12 @@ public interface ReplicaTableProps : TableOptionsV2 { */ public fun kinesisStream(kinesisStream: IStream) + /** + * @param maxReadRequestUnits The maxium read request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + /** * @param pointInTimeRecovery Whether point-in-time recovery is enabled. */ @@ -97,6 +115,18 @@ public interface ReplicaTableProps : TableOptionsV2 { */ public fun region(region: String) + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5e81c0a5c30615a10c90f2beb8354b9e6323cb71e5ea34dda62cb5e785d0c397") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * @param tableClass The table class. */ @@ -147,6 +177,14 @@ public interface ReplicaTableProps : TableOptionsV2 { cdkBuilder.kinesisStream(kinesisStream.let(IStream.Companion::unwrap)) } + /** + * @param maxReadRequestUnits The maxium read request units. + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + /** * @param pointInTimeRecovery Whether point-in-time recovery is enabled. */ @@ -169,6 +207,21 @@ public interface ReplicaTableProps : TableOptionsV2 { cdkBuilder.region(region) } + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5e81c0a5c30615a10c90f2beb8354b9e6323cb71e5ea34dda62cb5e785d0c397") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * @param tableClass The table class. */ @@ -194,7 +247,8 @@ public interface ReplicaTableProps : TableOptionsV2 { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ReplicaTableProps, - ) : CdkObject(cdkObject), ReplicaTableProps { + ) : CdkObject(cdkObject), + ReplicaTableProps { /** * Whether CloudWatch contributor insights is enabled. * @@ -225,6 +279,15 @@ public interface ReplicaTableProps : TableOptionsV2 { */ override fun kinesisStream(): IStream? = unwrap(this).getKinesisStream()?.let(IStream::wrap) + /** + * The maxium read request units. + * + * Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. + * + * Default: - inherited from the primary table + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + /** * Whether point-in-time recovery is enabled. * @@ -246,6 +309,16 @@ public interface ReplicaTableProps : TableOptionsV2 { */ override fun region(): String = unwrap(this).getRegion() + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + */ + override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * The table class. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SchemaOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SchemaOptions.kt index 91eb64c6a0..5f79cd746f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SchemaOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SchemaOptions.kt @@ -111,7 +111,8 @@ public interface SchemaOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.SchemaOptions, - ) : CdkObject(cdkObject), SchemaOptions { + ) : CdkObject(cdkObject), + SchemaOptions { /** * Partition key attribute definition. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SecondaryIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SecondaryIndexProps.kt index c6ec6c6b5e..e0bc87084a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SecondaryIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SecondaryIndexProps.kt @@ -110,7 +110,8 @@ public interface SecondaryIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.SecondaryIndexProps, - ) : CdkObject(cdkObject), SecondaryIndexProps { + ) : CdkObject(cdkObject), + SecondaryIndexProps { /** * The name of the secondary index. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SystemErrorsForOperationsMetricOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SystemErrorsForOperationsMetricOptions.kt index 95a68c706a..3d359084ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SystemErrorsForOperationsMetricOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/SystemErrorsForOperationsMetricOptions.kt @@ -255,7 +255,8 @@ public interface SystemErrorsForOperationsMetricOptions : MetricOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.SystemErrorsForOperationsMetricOptions, - ) : CdkObject(cdkObject), SystemErrorsForOperationsMetricOptions { + ) : CdkObject(cdkObject), + SystemErrorsForOperationsMetricOptions { /** * Account which this metric comes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Table.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Table.kt index be1d1247eb..8e137608ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Table.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/Table.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.dynamodb import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.RemovalPolicy import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Boolean @@ -22,26 +23,25 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * import io.cloudshiftdev.awscdk.*; - * import io.cloudshiftdev.awscdk.services.s3.*; - * IBucket bucket; - * App app = new App(); - * Stack stack = new Stack(app, "Stack"); - * Table.Builder.create(stack, "Table") + * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; + * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.kms.Key; + * Function fn; + * Table table = Table.Builder.create(this, "Table") * .partitionKey(Attribute.builder() * .name("id") * .type(AttributeType.STRING) * .build()) - * .importSource(ImportSourceSpecification.builder() - * .compressionType(InputCompressionType.GZIP) - * .inputFormat(InputFormat.csv(CsvOptions.builder() - * .delimiter(",") - * .headerList(List.of("id", "name")) - * .build())) - * .bucket(bucket) - * .keyPrefix("prefix") - * .build()) + * .stream(StreamViewType.NEW_IMAGE) * .build(); + * // Your self managed KMS key + * IKey myKey = Key.fromKeyArn(this, "SourceBucketEncryptionKey", + * "arn:aws:kms:us-east-1:123456789012:key/<key-id>"); + * fn.addEventSource(DynamoEventSource.Builder.create(table) + * .startingPosition(StartingPosition.LATEST) + * .filters(List.of(FilterCriteria.filter(Map.of("eventName", FilterRule.isEqual("INSERT"))))) + * .filterEncryption(myKey) + * .build()); * ``` */ public open class Table( @@ -196,6 +196,39 @@ public open class Table( */ public override fun encryptionKey(): IKey? = unwrap(this).getEncryptionKey()?.let(IKey::wrap) + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-resourcepolicy.html) + */ + public override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-resourcepolicy.html) + */ + public override fun resourcePolicy(`value`: PolicyDocument) { + unwrap(this).setResourcePolicy(`value`.let(PolicyDocument.Companion::unwrap)) + } + + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-resourcepolicy.html) + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a422cdfbd7ab1eb4700fbb0990116f2f653f87b45d5d6a5ce2846099e124d0") + public override fun resourcePolicy(`value`: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(`value`)) + /** * Get schema attributes of table or index. * @@ -328,6 +361,34 @@ public open class Table( */ public fun kinesisStream(kinesisStream: IStream) + /** + * The maximum read request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + * + * @param maxReadRequestUnits The maximum read request units for the table. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * The write request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + * + * @param maxWriteRequestUnits The write request units for the table. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + /** * Partition key attribute definition. * @@ -403,6 +464,28 @@ public open class Table( */ public fun replicationTimeout(replicationTimeout: Duration) + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + * @param resourcePolicy Resource policy to assign to table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("71f4b00d83d7ce16c3636bbdeceecf6431cc6844d714f8831df7885b6bd11458") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * Sort key attribute definition. * @@ -462,7 +545,9 @@ public open class Table( public fun timeToLiveAttribute(timeToLiveAttribute: String) /** - * Indicates whether CloudFormation stack waits for replication to finish. + * [WARNING: Use this flag with caution, misusing this flag may cause deleting existing + * replicas, refer to the detailed documentation for more information] Indicates whether + * CloudFormation stack waits for replication to finish. * * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is @@ -483,8 +568,9 @@ public open class Table( * Default: true * * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-replicas) - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. */ public fun waitForReplicationToFinish(waitForReplicationToFinish: Boolean) @@ -620,6 +706,38 @@ public open class Table( cdkBuilder.kinesisStream(kinesisStream.let(IStream.Companion::unwrap)) } + /** + * The maximum read request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + * + * @param maxReadRequestUnits The maximum read request units for the table. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * The write request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + * + * @param maxWriteRequestUnits The write request units for the table. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + /** * Partition key attribute definition. * @@ -709,6 +827,31 @@ public open class Table( cdkBuilder.replicationTimeout(replicationTimeout.let(Duration.Companion::unwrap)) } + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + * @param resourcePolicy Resource policy to assign to table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("71f4b00d83d7ce16c3636bbdeceecf6431cc6844d714f8831df7885b6bd11458") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * Sort key attribute definition. * @@ -778,7 +921,9 @@ public open class Table( } /** - * Indicates whether CloudFormation stack waits for replication to finish. + * [WARNING: Use this flag with caution, misusing this flag may cause deleting existing + * replicas, refer to the detailed documentation for more information] Indicates whether + * CloudFormation stack waits for replication to finish. * * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is @@ -799,8 +944,9 @@ public open class Table( * Default: true * * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-replicas) - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. */ override fun waitForReplicationToFinish(waitForReplicationToFinish: Boolean) { cdkBuilder.waitForReplicationToFinish(waitForReplicationToFinish) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributes.kt index 83aadf9339..6a05b1b30a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributes.kt @@ -266,7 +266,8 @@ public interface TableAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TableAttributes, - ) : CdkObject(cdkObject), TableAttributes { + ) : CdkObject(cdkObject), + TableAttributes { /** * KMS encryption key, if this table uses a customer-managed encryption key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributesV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributesV2.kt index 7c789bde31..c30133ac56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributesV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableAttributesV2.kt @@ -264,7 +264,8 @@ public interface TableAttributesV2 { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TableAttributesV2, - ) : CdkObject(cdkObject), TableAttributesV2 { + ) : CdkObject(cdkObject), + TableAttributesV2 { /** * KMS encryption key for the table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBase.kt index cb6e613914..cae469c3c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBase.kt @@ -8,8 +8,12 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.cloudwatch.IMetric import io.cloudshiftdev.awscdk.services.cloudwatch.Metric import io.cloudshiftdev.awscdk.services.cloudwatch.MetricOptions +import io.cloudshiftdev.awscdk.services.iam.AddToResourcePolicyResult import io.cloudshiftdev.awscdk.services.iam.Grant import io.cloudshiftdev.awscdk.services.iam.IGrantable +import io.cloudshiftdev.awscdk.services.iam.IResourceWithPolicy +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument +import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Deprecated import kotlin.String @@ -21,7 +25,35 @@ import kotlin.jvm.JvmName */ public abstract class TableBase( cdkObject: software.amazon.awscdk.services.dynamodb.TableBase, -) : Resource(cdkObject), ITable { +) : Resource(cdkObject), + ITable, + IResourceWithPolicy { + /** + * Adds a statement to the resource policy associated with this file system. + * + * A resource policy will be automatically created upon the first call to `addToResourcePolicy`. + * + * Note that this does not work with imported file systems. + * + * @param statement The policy statement to add. + */ + public override fun addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult = + unwrap(this).addToResourcePolicy(statement.let(PolicyStatement.Companion::unwrap)).let(AddToResourcePolicyResult::wrap) + + /** + * Adds a statement to the resource policy associated with this file system. + * + * A resource policy will be automatically created upon the first call to `addToResourcePolicy`. + * + * Note that this does not work with imported file systems. + * + * @param statement The policy statement to add. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b93f8258425594b02debe63f0c120f198512d8431f5ae67b7fb7780e34fcbae2") + public override fun addToResourcePolicy(statement: PolicyStatement.Builder.() -> Unit): + AddToResourcePolicyResult = addToResourcePolicy(PolicyStatement(statement)) + /** * KMS encryption key, if this table uses a customer-managed encryption key. */ @@ -539,6 +571,27 @@ public abstract class TableBase( public override fun metricUserErrors(props: MetricOptions.Builder.() -> Unit): Metric = metricUserErrors(MetricOptions(props)) + /** + * Resource policy to assign to table. + */ + public open fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + + /** + * Resource policy to assign to table. + */ + public open fun resourcePolicy(`value`: PolicyDocument) { + unwrap(this).setResourcePolicy(`value`.let(PolicyDocument.Companion::unwrap)) + } + + /** + * Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a422cdfbd7ab1eb4700fbb0990116f2f653f87b45d5d6a5ce2846099e124d0") + public open fun resourcePolicy(`value`: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(`value`)) + /** * Arn of the dynamodb table. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBaseV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBaseV2.kt index 4370109cdf..8a102c2add 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBaseV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableBaseV2.kt @@ -8,8 +8,12 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.cloudwatch.IMetric import io.cloudshiftdev.awscdk.services.cloudwatch.Metric import io.cloudshiftdev.awscdk.services.cloudwatch.MetricOptions +import io.cloudshiftdev.awscdk.services.iam.AddToResourcePolicyResult import io.cloudshiftdev.awscdk.services.iam.Grant import io.cloudshiftdev.awscdk.services.iam.IGrantable +import io.cloudshiftdev.awscdk.services.iam.IResourceWithPolicy +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument +import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Deprecated import kotlin.String @@ -21,7 +25,35 @@ import kotlin.jvm.JvmName */ public abstract class TableBaseV2( cdkObject: software.amazon.awscdk.services.dynamodb.TableBaseV2, -) : Resource(cdkObject), ITableV2 { +) : Resource(cdkObject), + ITableV2, + IResourceWithPolicy { + /** + * Adds a statement to the resource policy associated with this file system. + * + * A resource policy will be automatically created upon the first call to `addToResourcePolicy`. + * + * Note that this does not work with imported file systems. + * + * @param statement The policy statement to add. + */ + public override fun addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult = + unwrap(this).addToResourcePolicy(statement.let(PolicyStatement.Companion::unwrap)).let(AddToResourcePolicyResult::wrap) + + /** + * Adds a statement to the resource policy associated with this file system. + * + * A resource policy will be automatically created upon the first call to `addToResourcePolicy`. + * + * Note that this does not work with imported file systems. + * + * @param statement The policy statement to add. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b93f8258425594b02debe63f0c120f198512d8431f5ae67b7fb7780e34fcbae2") + public override fun addToResourcePolicy(statement: PolicyStatement.Builder.() -> Unit): + AddToResourcePolicyResult = addToResourcePolicy(PolicyStatement(statement)) + /** * The KMS encryption key for the table. */ @@ -550,6 +582,27 @@ public abstract class TableBaseV2( public override fun metricUserErrors(props: MetricOptions.Builder.() -> Unit): Metric = metricUserErrors(MetricOptions(props)) + /** + * The resource policy for the table. + */ + public open fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + + /** + * The resource policy for the table. + */ + public open fun resourcePolicy(`value`: PolicyDocument) { + unwrap(this).setResourcePolicy(`value`.let(PolicyDocument.Companion::unwrap)) + } + + /** + * The resource policy for the table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a422cdfbd7ab1eb4700fbb0990116f2f653f87b45d5d6a5ce2846099e124d0") + public open fun resourcePolicy(`value`: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(`value`)) + /** * The ARN of the table. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptions.kt index f1483773c4..63296fa2fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptions.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.RemovalPolicy import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Boolean import kotlin.Number @@ -27,11 +28,13 @@ import kotlin.jvm.JvmName * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.iam.*; * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.s3.*; * Bucket bucket; * InputFormat inputFormat; * Key key; + * PolicyDocument policyDocument; * TableOptions tableOptions = TableOptions.builder() * .partitionKey(Attribute.builder() * .name("name") @@ -51,11 +54,14 @@ import kotlin.jvm.JvmName * .compressionType(InputCompressionType.GZIP) * .keyPrefix("keyPrefix") * .build()) + * .maxReadRequestUnits(123) + * .maxWriteRequestUnits(123) * .pointInTimeRecovery(false) * .readCapacity(123) * .removalPolicy(RemovalPolicy.DESTROY) * .replicationRegions(List.of("replicationRegions")) * .replicationTimeout(Duration.minutes(30)) + * .resourcePolicy(policyDocument) * .sortKey(Attribute.builder() * .name("name") * .type(AttributeType.BINARY) @@ -130,6 +136,30 @@ public interface TableOptions : SchemaOptions { public fun importSource(): ImportSourceSpecification? = unwrap(this).getImportSource()?.let(ImportSourceSpecification::wrap) + /** + * The maximum read request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + public fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The write request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + public fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * Whether point-in-time recovery is enabled. * @@ -173,6 +203,16 @@ public interface TableOptions : SchemaOptions { public fun replicationTimeout(): Duration? = unwrap(this).getReplicationTimeout()?.let(Duration::wrap) + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + */ + public fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * When an item in the table is modified, StreamViewType determines what information is written to * the stream for this table. @@ -196,7 +236,9 @@ public interface TableOptions : SchemaOptions { public fun timeToLiveAttribute(): String? = unwrap(this).getTimeToLiveAttribute() /** - * Indicates whether CloudFormation stack waits for replication to finish. + * [WARNING: Use this flag with caution, misusing this flag may cause deleting existing replicas, + * refer to the detailed documentation for more information] Indicates whether CloudFormation stack + * waits for replication to finish. * * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is @@ -288,6 +330,24 @@ public interface TableOptions : SchemaOptions { @JvmName("5b5a193033e54be623552e1517771253e336b6b48c749a3321b6da6737850e19") public fun importSource(importSource: ImportSourceSpecification.Builder.() -> Unit) + /** + * @param maxReadRequestUnits The maximum read request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * @param maxWriteRequestUnits The write request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + /** * @param partitionKey Partition key attribute definition. */ @@ -334,6 +394,18 @@ public interface TableOptions : SchemaOptions { */ public fun replicationTimeout(replicationTimeout: Duration) + /** + * @param resourcePolicy Resource policy to assign to table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8f8091b794a239a65d7d402d289204a9a1105f5a0d31d42b5ca329dd56bb756f") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * @param sortKey Sort key attribute definition. */ @@ -363,8 +435,9 @@ public interface TableOptions : SchemaOptions { public fun timeToLiveAttribute(timeToLiveAttribute: String) /** - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is * ignored if replicationRegions property is not set. @@ -461,6 +534,28 @@ public interface TableOptions : SchemaOptions { override fun importSource(importSource: ImportSourceSpecification.Builder.() -> Unit): Unit = importSource(ImportSourceSpecification(importSource)) + /** + * @param maxReadRequestUnits The maximum read request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * @param maxWriteRequestUnits The write request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + /** * @param partitionKey Partition key attribute definition. */ @@ -521,6 +616,21 @@ public interface TableOptions : SchemaOptions { cdkBuilder.replicationTimeout(replicationTimeout.let(Duration.Companion::unwrap)) } + /** + * @param resourcePolicy Resource policy to assign to table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8f8091b794a239a65d7d402d289204a9a1105f5a0d31d42b5ca329dd56bb756f") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * @param sortKey Sort key attribute definition. */ @@ -558,8 +668,9 @@ public interface TableOptions : SchemaOptions { } /** - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is * ignored if replicationRegions property is not set. @@ -596,7 +707,8 @@ public interface TableOptions : SchemaOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TableOptions, - ) : CdkObject(cdkObject), TableOptions { + ) : CdkObject(cdkObject), + TableOptions { /** * Specify how you are charged for read and write throughput and how you manage capacity. * @@ -659,6 +771,30 @@ public interface TableOptions : SchemaOptions { override fun importSource(): ImportSourceSpecification? = unwrap(this).getImportSource()?.let(ImportSourceSpecification::wrap) + /** + * The maximum read request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The write request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * Partition key attribute definition. */ @@ -707,6 +843,16 @@ public interface TableOptions : SchemaOptions { override fun replicationTimeout(): Duration? = unwrap(this).getReplicationTimeout()?.let(Duration::wrap) + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + */ + override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * Sort key attribute definition. * @@ -737,7 +883,9 @@ public interface TableOptions : SchemaOptions { override fun timeToLiveAttribute(): String? = unwrap(this).getTimeToLiveAttribute() /** - * Indicates whether CloudFormation stack waits for replication to finish. + * [WARNING: Use this flag with caution, misusing this flag may cause deleting existing + * replicas, refer to the detailed documentation for more information] Indicates whether + * CloudFormation stack waits for replication to finish. * * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptionsV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptionsV2.kt index e0559b9e45..80732f31e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptionsV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableOptionsV2.kt @@ -6,10 +6,12 @@ import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import kotlin.Boolean import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Options used to configure a DynamoDB table. @@ -20,13 +22,16 @@ import kotlin.collections.List * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.iam.*; * import io.cloudshiftdev.awscdk.services.kinesis.*; + * PolicyDocument policyDocument; * Stream stream; * TableOptionsV2 tableOptionsV2 = TableOptionsV2.builder() * .contributorInsights(false) * .deletionProtection(false) * .kinesisStream(stream) * .pointInTimeRecovery(false) + * .resourcePolicy(policyDocument) * .tableClass(TableClass.STANDARD) * .tags(List.of(CfnTag.builder() * .key("key") @@ -64,6 +69,16 @@ public interface TableOptionsV2 { */ public fun pointInTimeRecovery(): Boolean? = unwrap(this).getPointInTimeRecovery() + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + */ + public fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * The table class. * @@ -103,6 +118,18 @@ public interface TableOptionsV2 { */ public fun pointInTimeRecovery(pointInTimeRecovery: Boolean) + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("31d9374340158b2b3fe0d25aa45e06e7b7b0405e3e0f1deb28a433bf51c07dc4") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * @param tableClass The table class. */ @@ -151,6 +178,21 @@ public interface TableOptionsV2 { cdkBuilder.pointInTimeRecovery(pointInTimeRecovery) } + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("31d9374340158b2b3fe0d25aa45e06e7b7b0405e3e0f1deb28a433bf51c07dc4") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * @param tableClass The table class. */ @@ -175,7 +217,8 @@ public interface TableOptionsV2 { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TableOptionsV2, - ) : CdkObject(cdkObject), TableOptionsV2 { + ) : CdkObject(cdkObject), + TableOptionsV2 { /** * Whether CloudWatch contributor insights is enabled. * @@ -204,6 +247,16 @@ public interface TableOptionsV2 { */ override fun pointInTimeRecovery(): Boolean? = unwrap(this).getPointInTimeRecovery() + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + */ + override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * The table class. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableProps.kt index 50b523d4e5..16c052f004 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableProps.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.RemovalPolicy import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Boolean @@ -22,26 +23,25 @@ import kotlin.jvm.JvmName * Example: * * ``` - * import io.cloudshiftdev.awscdk.*; - * import io.cloudshiftdev.awscdk.services.s3.*; - * IBucket bucket; - * App app = new App(); - * Stack stack = new Stack(app, "Stack"); - * Table.Builder.create(stack, "Table") + * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; + * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.kms.Key; + * Function fn; + * Table table = Table.Builder.create(this, "Table") * .partitionKey(Attribute.builder() * .name("id") * .type(AttributeType.STRING) * .build()) - * .importSource(ImportSourceSpecification.builder() - * .compressionType(InputCompressionType.GZIP) - * .inputFormat(InputFormat.csv(CsvOptions.builder() - * .delimiter(",") - * .headerList(List.of("id", "name")) - * .build())) - * .bucket(bucket) - * .keyPrefix("prefix") - * .build()) + * .stream(StreamViewType.NEW_IMAGE) * .build(); + * // Your self managed KMS key + * IKey myKey = Key.fromKeyArn(this, "SourceBucketEncryptionKey", + * "arn:aws:kms:us-east-1:123456789012:key/<key-id>"); + * fn.addEventSource(DynamoEventSource.Builder.create(table) + * .startingPosition(StartingPosition.LATEST) + * .filters(List.of(FilterCriteria.filter(Map.of("eventName", FilterRule.isEqual("INSERT"))))) + * .filterEncryption(myKey) + * .build()); * ``` */ public interface TableProps : TableOptions { @@ -120,6 +120,24 @@ public interface TableProps : TableOptions { */ public fun kinesisStream(kinesisStream: IStream) + /** + * @param maxReadRequestUnits The maximum read request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + public fun maxReadRequestUnits(maxReadRequestUnits: Number) + + /** + * @param maxWriteRequestUnits The write request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + public fun maxWriteRequestUnits(maxWriteRequestUnits: Number) + /** * @param partitionKey Partition key attribute definition. */ @@ -166,6 +184,18 @@ public interface TableProps : TableOptions { */ public fun replicationTimeout(replicationTimeout: Duration) + /** + * @param resourcePolicy Resource policy to assign to table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5c26af735ddf30c9fc93de7c4bc50c809a8cf47af67690919eae5024b6403d32") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * @param sortKey Sort key attribute definition. */ @@ -200,8 +230,9 @@ public interface TableProps : TableOptions { public fun timeToLiveAttribute(timeToLiveAttribute: String) /** - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is * ignored if replicationRegions property is not set. @@ -305,6 +336,28 @@ public interface TableProps : TableOptions { cdkBuilder.kinesisStream(kinesisStream.let(IStream.Companion::unwrap)) } + /** + * @param maxReadRequestUnits The maximum read request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + override fun maxReadRequestUnits(maxReadRequestUnits: Number) { + cdkBuilder.maxReadRequestUnits(maxReadRequestUnits) + } + + /** + * @param maxWriteRequestUnits The write request units for the table. + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + */ + override fun maxWriteRequestUnits(maxWriteRequestUnits: Number) { + cdkBuilder.maxWriteRequestUnits(maxWriteRequestUnits) + } + /** * @param partitionKey Partition key attribute definition. */ @@ -365,6 +418,21 @@ public interface TableProps : TableOptions { cdkBuilder.replicationTimeout(replicationTimeout.let(Duration.Companion::unwrap)) } + /** + * @param resourcePolicy Resource policy to assign to table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * @param resourcePolicy Resource policy to assign to table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5c26af735ddf30c9fc93de7c4bc50c809a8cf47af67690919eae5024b6403d32") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * @param sortKey Sort key attribute definition. */ @@ -409,8 +477,9 @@ public interface TableProps : TableOptions { } /** - * @param waitForReplicationToFinish Indicates whether CloudFormation stack waits for - * replication to finish. + * @param waitForReplicationToFinish [WARNING: Use this flag with caution, misusing this flag + * may cause deleting existing replicas, refer to the detailed documentation for more information] + * Indicates whether CloudFormation stack waits for replication to finish. * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is * ignored if replicationRegions property is not set. @@ -447,7 +516,8 @@ public interface TableProps : TableOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TableProps, - ) : CdkObject(cdkObject), TableProps { + ) : CdkObject(cdkObject), + TableProps { /** * Specify how you are charged for read and write throughput and how you manage capacity. * @@ -517,6 +587,30 @@ public interface TableProps : TableOptions { */ override fun kinesisStream(): IStream? = unwrap(this).getKinesisStream()?.let(IStream::wrap) + /** + * The maximum read request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxReadRequestUnits(): Number? = unwrap(this).getMaxReadRequestUnits() + + /** + * The write request units for the table. + * + * Careful if you add Global Secondary Indexes, as + * those will share the table's maximum on-demand throughput. + * + * Can only be provided if billingMode is PAY_PER_REQUEST. + * + * Default: - on-demand throughput is disabled + */ + override fun maxWriteRequestUnits(): Number? = unwrap(this).getMaxWriteRequestUnits() + /** * Partition key attribute definition. */ @@ -565,6 +659,16 @@ public interface TableProps : TableOptions { override fun replicationTimeout(): Duration? = unwrap(this).getReplicationTimeout()?.let(Duration::wrap) + /** + * Resource policy to assign to table. + * + * Default: - No resource policy statement + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-resourcepolicy) + */ + override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * Sort key attribute definition. * @@ -602,7 +706,9 @@ public interface TableProps : TableOptions { override fun timeToLiveAttribute(): String? = unwrap(this).getTimeToLiveAttribute() /** - * Indicates whether CloudFormation stack waits for replication to finish. + * [WARNING: Use this flag with caution, misusing this flag may cause deleting existing + * replicas, refer to the detailed documentation for more information] Indicates whether + * CloudFormation stack waits for replication to finish. * * If set to false, the CloudFormation resource will mark the resource as * created and replication will be completed asynchronously. This property is diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TablePropsV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TablePropsV2.kt index 2db7e97624..63d377f468 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TablePropsV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TablePropsV2.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.RemovalPolicy import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import kotlin.Boolean import kotlin.String @@ -225,6 +226,18 @@ public interface TablePropsV2 : TableOptionsV2 { */ public fun replicas(vararg replicas: ReplicaTableProps) + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9dfea9d7a274daf54e22bb1703665720d060a86cf5bd785640b17537027e25e") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * @param sortKey Sort key attribute definition. */ @@ -387,6 +400,21 @@ public interface TablePropsV2 : TableOptionsV2 { */ override fun replicas(vararg replicas: ReplicaTableProps): Unit = replicas(replicas.toList()) + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b9dfea9d7a274daf54e22bb1703665720d060a86cf5bd785640b17537027e25e") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * @param sortKey Sort key attribute definition. */ @@ -439,7 +467,8 @@ public interface TablePropsV2 : TableOptionsV2 { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.TablePropsV2, - ) : CdkObject(cdkObject), TablePropsV2 { + ) : CdkObject(cdkObject), + TablePropsV2 { /** * The billing mode and capacity settings to apply to the table. * @@ -540,6 +569,16 @@ public interface TablePropsV2 : TableOptionsV2 { override fun replicas(): List = unwrap(this).getReplicas()?.map(ReplicaTableProps::wrap) ?: emptyList() + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + */ + override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + /** * Sort key attribute definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableV2.kt index a950f34fa1..c9141427a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/TableV2.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.dynamodb import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.RemovalPolicy import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.iam.PolicyDocument import io.cloudshiftdev.awscdk.services.kinesis.IStream import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Boolean @@ -137,6 +138,27 @@ public open class TableV2( public open fun replica(region: String): ITableV2 = unwrap(this).replica(region).let(ITableV2::wrap) + /** + * The resource policy for the table. + */ + public override fun resourcePolicy(): PolicyDocument? = + unwrap(this).getResourcePolicy()?.let(PolicyDocument::wrap) + + /** + * The resource policy for the table. + */ + public override fun resourcePolicy(`value`: PolicyDocument) { + unwrap(this).setResourcePolicy(`value`.let(PolicyDocument.Companion::unwrap)) + } + + /** + * The resource policy for the table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a422cdfbd7ab1eb4700fbb0990116f2f653f87b45d5d6a5ce2846099e124d0") + public override fun resourcePolicy(`value`: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(`value`)) + /** * The ARN of the table. */ @@ -324,6 +346,28 @@ public open class TableV2( */ public fun replicas(vararg replicas: ReplicaTableProps) + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + public fun resourcePolicy(resourcePolicy: PolicyDocument) + + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("353951006c280a7f9616b330147d1849c810391f67ccdbbfed1f34bccbf78f27") + public fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit) + /** * Sort key attribute definition. * @@ -586,6 +630,31 @@ public open class TableV2( */ override fun replicas(vararg replicas: ReplicaTableProps): Unit = replicas(replicas.toList()) + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + override fun resourcePolicy(resourcePolicy: PolicyDocument) { + cdkBuilder.resourcePolicy(resourcePolicy.let(PolicyDocument.Companion::unwrap)) + } + + /** + * Resource policy to assign to DynamoDB Table. + * + * Default: - No resource policy statements are added to the created table. + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-resourcepolicy) + * @param resourcePolicy Resource policy to assign to DynamoDB Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("353951006c280a7f9616b330147d1849c810391f67ccdbbfed1f34bccbf78f27") + override fun resourcePolicy(resourcePolicy: PolicyDocument.Builder.() -> Unit): Unit = + resourcePolicy(PolicyDocument(resourcePolicy)) + /** * Sort key attribute definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ThroughputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ThroughputProps.kt index 4b714bf458..55b4f8033c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ThroughputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/ThroughputProps.kt @@ -83,7 +83,8 @@ public interface ThroughputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.ThroughputProps, - ) : CdkObject(cdkObject), ThroughputProps { + ) : CdkObject(cdkObject), + ThroughputProps { /** * The read capacity. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/UtilizationScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/UtilizationScalingProps.kt index 900ec67d8a..732df199c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/UtilizationScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dynamodb/UtilizationScalingProps.kt @@ -123,7 +123,8 @@ public interface UtilizationScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.dynamodb.UtilizationScalingProps, - ) : CdkObject(cdkObject), UtilizationScalingProps { + ) : CdkObject(cdkObject), + UtilizationScalingProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclCidrConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclCidrConfig.kt index 0209577b8c..c379ed021d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclCidrConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclCidrConfig.kt @@ -73,7 +73,8 @@ public interface AclCidrConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AclCidrConfig, - ) : CdkObject(cdkObject), AclCidrConfig { + ) : CdkObject(cdkObject), + AclCidrConfig { /** * Ipv4 CIDR. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclIcmp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclIcmp.kt index 6a0f6e7408..166063b7a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclIcmp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclIcmp.kt @@ -93,7 +93,8 @@ public interface AclIcmp { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AclIcmp, - ) : CdkObject(cdkObject), AclIcmp { + ) : CdkObject(cdkObject), + AclIcmp { /** * The Internet Control Message Protocol (ICMP) code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclPortRange.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclPortRange.kt index 9d132e440d..14b06a4b79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclPortRange.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclPortRange.kt @@ -81,7 +81,8 @@ public interface AclPortRange { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AclPortRange, - ) : CdkObject(cdkObject), AclPortRange { + ) : CdkObject(cdkObject), + AclPortRange { /** * The first port in the range. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclTrafficConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclTrafficConfig.kt index edf97a02c3..f47cd0b243 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclTrafficConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclTrafficConfig.kt @@ -165,7 +165,8 @@ public interface AclTrafficConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AclTrafficConfig, - ) : CdkObject(cdkObject), AclTrafficConfig { + ) : CdkObject(cdkObject), + AclTrafficConfig { /** * The Internet Control Message Protocol (ICMP) code and type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AddRouteOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AddRouteOptions.kt index c5e8ace4e6..5368cac709 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AddRouteOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AddRouteOptions.kt @@ -149,7 +149,8 @@ public interface AddRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AddRouteOptions, - ) : CdkObject(cdkObject), AddRouteOptions { + ) : CdkObject(cdkObject), + AddRouteOptions { /** * IPv4 range this route applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateCidrRequest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateCidrRequest.kt index 8816d86240..764de1ab0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateCidrRequest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateCidrRequest.kt @@ -97,7 +97,8 @@ public interface AllocateCidrRequest { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AllocateCidrRequest, - ) : CdkObject(cdkObject), AllocateCidrRequest { + ) : CdkObject(cdkObject), + AllocateCidrRequest { /** * The Subnets to be allocated. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateIpv6CidrRequest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateIpv6CidrRequest.kt index f886e88e50..c0cbc7b3a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateIpv6CidrRequest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateIpv6CidrRequest.kt @@ -100,7 +100,8 @@ public interface AllocateIpv6CidrRequest { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AllocateIpv6CidrRequest, - ) : CdkObject(cdkObject), AllocateIpv6CidrRequest { + ) : CdkObject(cdkObject), + AllocateIpv6CidrRequest { /** * List of subnets allocated with IPv4 CIDRs. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateVpcIpv6CidrRequest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateVpcIpv6CidrRequest.kt index 448c420238..8e34ba6dd5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateVpcIpv6CidrRequest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocateVpcIpv6CidrRequest.kt @@ -77,7 +77,8 @@ public interface AllocateVpcIpv6CidrRequest { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AllocateVpcIpv6CidrRequest, - ) : CdkObject(cdkObject), AllocateVpcIpv6CidrRequest { + ) : CdkObject(cdkObject), + AllocateVpcIpv6CidrRequest { /** * The VPC construct to attach to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocatedSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocatedSubnet.kt index 06615055ed..ed099ad4aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocatedSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AllocatedSubnet.kt @@ -84,7 +84,8 @@ public interface AllocatedSubnet { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AllocatedSubnet, - ) : CdkObject(cdkObject), AllocatedSubnet { + ) : CdkObject(cdkObject), + AllocatedSubnet { /** * IPv4 CIDR Allocations for a Subnet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2022ImageSsmParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2022ImageSsmParameterProps.kt index a8d937d555..d6152c4215 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2022ImageSsmParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2022ImageSsmParameterProps.kt @@ -141,7 +141,8 @@ public interface AmazonLinux2022ImageSsmParameterProps : AmazonLinuxImageSsmPara private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinux2022ImageSsmParameterProps, - ) : CdkObject(cdkObject), AmazonLinux2022ImageSsmParameterProps { + ) : CdkObject(cdkObject), + AmazonLinux2022ImageSsmParameterProps { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2023ImageSsmParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2023ImageSsmParameterProps.kt index 09b37318ef..ced9d84462 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2023ImageSsmParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2023ImageSsmParameterProps.kt @@ -144,7 +144,8 @@ public interface AmazonLinux2023ImageSsmParameterProps : AmazonLinuxImageSsmPara private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinux2023ImageSsmParameterProps, - ) : CdkObject(cdkObject), AmazonLinux2023ImageSsmParameterProps { + ) : CdkObject(cdkObject), + AmazonLinux2023ImageSsmParameterProps { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2ImageSsmParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2ImageSsmParameterProps.kt index 75e4277bea..884ac5ed77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2ImageSsmParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinux2ImageSsmParameterProps.kt @@ -201,7 +201,8 @@ public interface AmazonLinux2ImageSsmParameterProps : AmazonLinuxImageSsmParamet private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinux2ImageSsmParameterProps, - ) : CdkObject(cdkObject), AmazonLinux2ImageSsmParameterProps { + ) : CdkObject(cdkObject), + AmazonLinux2ImageSsmParameterProps { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageProps.kt index 9c3cd7d39b..ea66ba57e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageProps.kt @@ -242,7 +242,8 @@ public interface AmazonLinuxImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinuxImageProps, - ) : CdkObject(cdkObject), AmazonLinuxImageProps { + ) : CdkObject(cdkObject), + AmazonLinuxImageProps { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBase.kt index b8baedd8fb..a2a7e1cd4c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBase.kt @@ -11,7 +11,8 @@ import io.cloudshiftdev.constructs.Construct */ public abstract class AmazonLinuxImageSsmParameterBase( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBase, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { /** * Return the image to use in the given context. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseOptions.kt index dab84cb612..bffcb83e26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseOptions.kt @@ -121,7 +121,8 @@ public interface AmazonLinuxImageSsmParameterBaseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBaseOptions, - ) : CdkObject(cdkObject), AmazonLinuxImageSsmParameterBaseOptions { + ) : CdkObject(cdkObject), + AmazonLinuxImageSsmParameterBaseOptions { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseProps.kt index 33a7d7a2cc..0c9a2caec2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterBaseProps.kt @@ -113,7 +113,8 @@ public interface AmazonLinuxImageSsmParameterBaseProps : AmazonLinuxImageSsmPara private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBaseProps, - ) : CdkObject(cdkObject), AmazonLinuxImageSsmParameterBaseProps { + ) : CdkObject(cdkObject), + AmazonLinuxImageSsmParameterBaseProps { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterCommonOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterCommonOptions.kt index 4e0b0654fd..7b7ed894f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterCommonOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AmazonLinuxImageSsmParameterCommonOptions.kt @@ -137,7 +137,8 @@ public interface AmazonLinuxImageSsmParameterCommonOptions : AmazonLinuxImageSsm private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterCommonOptions, - ) : CdkObject(cdkObject), AmazonLinuxImageSsmParameterCommonOptions { + ) : CdkObject(cdkObject), + AmazonLinuxImageSsmParameterCommonOptions { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ApplyCloudFormationInitOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ApplyCloudFormationInitOptions.kt index 48771bb33d..60915054c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ApplyCloudFormationInitOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ApplyCloudFormationInitOptions.kt @@ -301,7 +301,8 @@ public interface ApplyCloudFormationInitOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ApplyCloudFormationInitOptions, - ) : CdkObject(cdkObject), ApplyCloudFormationInitOptions { + ) : CdkObject(cdkObject), + ApplyCloudFormationInitOptions { /** * ConfigSet to activate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AttachInitOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AttachInitOptions.kt index 89b6e1b43b..c2dbdc7154 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AttachInitOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AttachInitOptions.kt @@ -315,7 +315,8 @@ public interface AttachInitOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AttachInitOptions, - ) : CdkObject(cdkObject), AttachInitOptions { + ) : CdkObject(cdkObject), + AttachInitOptions { /** * ConfigSet to activate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AwsIpamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AwsIpamProps.kt index c9374f733e..f578d32385 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AwsIpamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AwsIpamProps.kt @@ -103,7 +103,8 @@ public interface AwsIpamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.AwsIpamProps, - ) : CdkObject(cdkObject), AwsIpamProps { + ) : CdkObject(cdkObject), + AwsIpamProps { /** * Default length for Subnet ipv4 Network mask. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinux.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinux.kt index 0909f01dc7..c43d83e950 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinux.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinux.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class BastionHostLinux( cdkObject: software.amazon.awscdk.services.ec2.BastionHostLinux, -) : Resource(cdkObject), IInstance { +) : Resource(cdkObject), + IInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinuxProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinuxProps.kt index 0f7dba03f8..e065d7e67a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinuxProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BastionHostLinuxProps.kt @@ -348,7 +348,8 @@ public interface BastionHostLinuxProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.BastionHostLinuxProps, - ) : CdkObject(cdkObject), BastionHostLinuxProps { + ) : CdkObject(cdkObject), + BastionHostLinuxProps { /** * In which AZ to place the instance within the VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDevice.kt index e4f4d56f8f..4e097bd093 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDevice.kt @@ -118,7 +118,8 @@ public interface BlockDevice { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.BlockDevice, - ) : CdkObject(cdkObject), BlockDevice { + ) : CdkObject(cdkObject), + BlockDevice { /** * The device name exposed to the EC2 instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDeviceVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDeviceVolume.kt index 1b04e24920..2676060732 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDeviceVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/BlockDeviceVolume.kt @@ -21,10 +21,13 @@ import kotlin.jvm.JvmName * .vpc(vpc) * .instanceType(instanceType) * .machineImage(machineImage) - * .ebsOptimized(true) + * // ... * .blockDevices(List.of(BlockDevice.builder() - * .deviceName("/dev/xvda") - * .volume(BlockDeviceVolume.ebs(8)) + * .deviceName("/dev/sda1") + * .volume(BlockDeviceVolume.ebs(100, EbsDeviceOptions.builder() + * .volumeType(EbsDeviceVolumeType.GP3) + * .throughput(250) + * .build())) * .build())) * .build(); * ``` diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservation.kt index 709d66edbb..e0a1066dd6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservation.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCapacityReservation( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -880,7 +881,8 @@ public open class CfnCapacityReservation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservation.TagSpecificationProperty, - ) : CdkObject(cdkObject), TagSpecificationProperty { + ) : CdkObject(cdkObject), + TagSpecificationProperty { /** * The type of resource to tag. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleet.kt index af2be48e63..5ace57b494 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleet.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCapacityReservationFleet( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -265,7 +266,7 @@ public open class CfnCapacityReservationFleet( * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` * @@ -437,7 +438,7 @@ public open class CfnCapacityReservationFleet( * values are based on units that make sense for your workload. For more information, see [Total * target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservationfleet.html#cfn-ec2-capacityreservationfleet-totaltargetcapacity) * @param totalTargetCapacity The total number of capacity units to be reserved by the Capacity @@ -460,7 +461,7 @@ public open class CfnCapacityReservationFleet( * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` * @@ -658,7 +659,7 @@ public open class CfnCapacityReservationFleet( * values are based on units that make sense for your workload. For more information, see [Total * target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservationfleet.html#cfn-ec2-capacityreservationfleet-totaltargetcapacity) * @param totalTargetCapacity The total number of capacity units to be reserved by the Capacity @@ -774,7 +775,7 @@ public open class CfnCapacityReservationFleet( * prioritized for use. A lower value indicates a high priority. For more information, see * [Instance type * priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-instancetypespecification.html#cfn-ec2-capacityreservationfleet-instancetypespecification-priority) */ @@ -852,7 +853,7 @@ public open class CfnCapacityReservationFleet( * be prioritized for use. A lower value indicates a high priority. For more information, see * [Instance type * priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . */ public fun priority(priority: Number) @@ -939,7 +940,7 @@ public open class CfnCapacityReservationFleet( * be prioritized for use. A lower value indicates a high priority. For more information, see * [Instance type * priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . */ override fun priority(priority: Number) { cdkBuilder.priority(priority) @@ -966,7 +967,8 @@ public open class CfnCapacityReservationFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet.InstanceTypeSpecificationProperty, - ) : CdkObject(cdkObject), InstanceTypeSpecificationProperty { + ) : CdkObject(cdkObject), + InstanceTypeSpecificationProperty { /** * The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. * @@ -1020,7 +1022,7 @@ public open class CfnCapacityReservationFleet( * be prioritized for use. A lower value indicates a high priority. For more information, see * [Instance type * priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservationfleet-instancetypespecification.html#cfn-ec2-capacityreservationfleet-instancetypespecification-priority) */ @@ -1167,7 +1169,8 @@ public open class CfnCapacityReservationFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet.TagSpecificationProperty, - ) : CdkObject(cdkObject), TagSpecificationProperty { + ) : CdkObject(cdkObject), + TagSpecificationProperty { /** * The type of resource to tag on creation. Specify `capacity-reservation-fleet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleetProps.kt index 4d671f33c1..511cada42a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationFleetProps.kt @@ -60,7 +60,7 @@ public interface CfnCapacityReservationFleetProps { * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` * @@ -155,7 +155,7 @@ public interface CfnCapacityReservationFleetProps { * by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values * are based on units that make sense for your workload. For more information, see [Total target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservationfleet.html#cfn-ec2-capacityreservationfleet-totaltargetcapacity) */ @@ -172,7 +172,7 @@ public interface CfnCapacityReservationFleetProps { * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` */ @@ -289,7 +289,7 @@ public interface CfnCapacityReservationFleetProps { * values are based on units that make sense for your workload. For more information, see [Total * target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . */ public fun totalTargetCapacity(totalTargetCapacity: Number) } @@ -305,7 +305,7 @@ public interface CfnCapacityReservationFleetProps { * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` */ @@ -448,7 +448,7 @@ public interface CfnCapacityReservationFleetProps { * values are based on units that make sense for your workload. For more information, see [Total * target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . */ override fun totalTargetCapacity(totalTargetCapacity: Number) { cdkBuilder.totalTargetCapacity(totalTargetCapacity) @@ -460,7 +460,8 @@ public interface CfnCapacityReservationFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservationFleetProps, - ) : CdkObject(cdkObject), CfnCapacityReservationFleetProps { + ) : CdkObject(cdkObject), + CfnCapacityReservationFleetProps { /** * The strategy used by the Capacity Reservation Fleet to determine which of the specified * instance types to use. @@ -468,7 +469,7 @@ public interface CfnCapacityReservationFleetProps { * Currently, only the `prioritized` allocation strategy is supported. For more information, see * [Allocation * strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * Valid values: `prioritized` * @@ -564,7 +565,7 @@ public interface CfnCapacityReservationFleetProps { * values are based on units that make sense for your workload. For more information, see [Total * target * capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - * in the Amazon EC2 User Guide. + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservationfleet.html#cfn-ec2-capacityreservationfleet-totaltargetcapacity) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationProps.kt index 9e1edf9338..6d9bf2e9de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCapacityReservationProps.kt @@ -505,7 +505,8 @@ public interface CfnCapacityReservationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCapacityReservationProps, - ) : CdkObject(cdkObject), CfnCapacityReservationProps { + ) : CdkObject(cdkObject), + CfnCapacityReservationProps { /** * The Availability Zone in which to create the Capacity Reservation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGateway.kt index 1a3121e9bf..ec63020cac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGateway.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCarrierGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnCarrierGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGatewayProps.kt index 61aa9f68f9..9cfd708932 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCarrierGatewayProps.kt @@ -96,7 +96,8 @@ public interface CfnCarrierGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCarrierGatewayProps, - ) : CdkObject(cdkObject), CfnCarrierGatewayProps { + ) : CdkObject(cdkObject), + CfnCarrierGatewayProps { /** * The tags assigned to the carrier gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRule.kt index 9bf4e021ec..e875a158b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRule.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClientVpnAuthorizationRule( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnAuthorizationRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRuleProps.kt index ee169098d1..7f45cd53f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnAuthorizationRuleProps.kt @@ -178,7 +178,8 @@ public interface CfnClientVpnAuthorizationRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnAuthorizationRuleProps, - ) : CdkObject(cdkObject), CfnClientVpnAuthorizationRuleProps { + ) : CdkObject(cdkObject), + CfnClientVpnAuthorizationRuleProps { /** * The ID of the group to grant access to, for example, the Active Directory group or identity * provider (IdP) group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpoint.kt index 5ded0e4b9c..8e4b200154 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpoint.kt @@ -91,7 +91,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClientVpnEndpoint( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1212,7 +1213,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.CertificateAuthenticationRequestProperty, - ) : CdkObject(cdkObject), CertificateAuthenticationRequestProperty { + ) : CdkObject(cdkObject), + CertificateAuthenticationRequestProperty { /** * The ARN of the client certificate. * @@ -1494,7 +1496,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ClientAuthenticationRequestProperty, - ) : CdkObject(cdkObject), ClientAuthenticationRequestProperty { + ) : CdkObject(cdkObject), + ClientAuthenticationRequestProperty { /** * Information about the Active Directory to be used, if applicable. * @@ -1646,7 +1649,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ClientConnectOptionsProperty, - ) : CdkObject(cdkObject), ClientConnectOptionsProperty { + ) : CdkObject(cdkObject), + ClientConnectOptionsProperty { /** * Indicates whether client connect options are enabled. * @@ -1801,7 +1805,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty, - ) : CdkObject(cdkObject), ClientLoginBannerOptionsProperty { + ) : CdkObject(cdkObject), + ClientLoginBannerOptionsProperty { /** * Customizable text that will be displayed in a banner on AWS provided clients when a VPN * session is established. @@ -1958,7 +1963,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty, - ) : CdkObject(cdkObject), ConnectionLogOptionsProperty { + ) : CdkObject(cdkObject), + ConnectionLogOptionsProperty { /** * The name of the CloudWatch Logs log group. * @@ -2057,7 +2063,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.DirectoryServiceAuthenticationRequestProperty, - ) : CdkObject(cdkObject), DirectoryServiceAuthenticationRequestProperty { + ) : CdkObject(cdkObject), + DirectoryServiceAuthenticationRequestProperty { /** * The ID of the Active Directory to be used for authentication. * @@ -2164,7 +2171,8 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.FederatedAuthenticationRequestProperty, - ) : CdkObject(cdkObject), FederatedAuthenticationRequestProperty { + ) : CdkObject(cdkObject), + FederatedAuthenticationRequestProperty { /** * The Amazon Resource Name (ARN) of the IAM SAML identity provider. * @@ -2202,16 +2210,7 @@ public open class CfnClientVpnEndpoint( } /** - * The tags to apply to a resource when the resource is being created. - * - * When you specify a tag, you must specify the resource type to tag, otherwise the request will - * fail. - * - * - * The `Valid Values` lists all the resource types that can be tagged. However, the action you're - * using might not support tagging all of these resource types. If you try to tag a resource type - * that is unsupported for the action you're using, you'll get an error. - * + * Specifies the tags to apply to the Client VPN endpoint. * * Example: * @@ -2234,6 +2233,8 @@ public open class CfnClientVpnEndpoint( /** * The type of resource to tag. * + * To tag a Client VPN endpoint, `ResourceType` must be `client-vpn-endpoint` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-tagspecification.html#cfn-ec2-clientvpnendpoint-tagspecification-resourcetype) */ public fun resourceType(): String @@ -2252,6 +2253,7 @@ public open class CfnClientVpnEndpoint( public interface Builder { /** * @param resourceType The type of resource to tag. + * To tag a Client VPN endpoint, `ResourceType` must be `client-vpn-endpoint` . */ public fun resourceType(resourceType: String) @@ -2274,6 +2276,7 @@ public open class CfnClientVpnEndpoint( /** * @param resourceType The type of resource to tag. + * To tag a Client VPN endpoint, `ResourceType` must be `client-vpn-endpoint` . */ override fun resourceType(resourceType: String) { cdkBuilder.resourceType(resourceType) @@ -2298,10 +2301,13 @@ public open class CfnClientVpnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.TagSpecificationProperty, - ) : CdkObject(cdkObject), TagSpecificationProperty { + ) : CdkObject(cdkObject), + TagSpecificationProperty { /** * The type of resource to tag. * + * To tag a Client VPN endpoint, `ResourceType` must be `client-vpn-endpoint` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-tagspecification.html#cfn-ec2-clientvpnendpoint-tagspecification-resourcetype) */ override fun resourceType(): String = unwrap(this).getResourceType() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpointProps.kt index 139bb346f1..8f2c990853 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnEndpointProps.kt @@ -750,7 +750,8 @@ public interface CfnClientVpnEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnEndpointProps, - ) : CdkObject(cdkObject), CfnClientVpnEndpointProps { + ) : CdkObject(cdkObject), + CfnClientVpnEndpointProps { /** * Information about the authentication method to be used to authenticate clients. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRoute.kt index 17bfa6bc2f..471ed56daf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRoute.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClientVpnRoute( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRouteProps.kt index 92a5aef269..ddd13eda96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnRouteProps.kt @@ -149,7 +149,8 @@ public interface CfnClientVpnRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnRouteProps, - ) : CdkObject(cdkObject), CfnClientVpnRouteProps { + ) : CdkObject(cdkObject), + CfnClientVpnRouteProps { /** * The ID of the Client VPN endpoint to which to add the route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociation.kt index 1dfddd6248..1267c5d141 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociation.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClientVpnTargetNetworkAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnTargetNetworkAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociationProps.kt index db66902665..66594c4a24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnClientVpnTargetNetworkAssociationProps.kt @@ -83,7 +83,8 @@ public interface CfnClientVpnTargetNetworkAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnClientVpnTargetNetworkAssociationProps, - ) : CdkObject(cdkObject), CfnClientVpnTargetNetworkAssociationProps { + ) : CdkObject(cdkObject), + CfnClientVpnTargetNetworkAssociationProps { /** * The ID of the Client VPN endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGateway.kt index 0ff8d0c18e..3064231eec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGateway.kt @@ -31,6 +31,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .type("type") * // the properties below are optional * .bgpAsn(123) + * .bgpAsnExtended(123) * .certificateArn("certificateArn") * .deviceName("deviceName") * .tags(List.of(CfnTag.builder() @@ -44,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomerGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnCustomerGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -67,17 +70,29 @@ public open class CfnCustomerGateway( public open fun attrCustomerGatewayId(): String = unwrap(this).getAttrCustomerGatewayId() /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. */ public open fun bgpAsn(): Number? = unwrap(this).getBgpAsn() /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. */ public open fun bgpAsn(`value`: Number) { unwrap(this).setBgpAsn(`value`) } + /** + * For customer gateway devices that support BGP, specify the device's ASN. + */ + public open fun bgpAsnExtended(): Number? = unwrap(this).getBgpAsnExtended() + + /** + * For customer gateway devices that support BGP, specify the device's ASN. + */ + public open fun bgpAsnExtended(`value`: Number) { + unwrap(this).setBgpAsnExtended(`value`) + } + /** * The Amazon Resource Name (ARN) for the customer gateway certificate. */ @@ -164,17 +179,36 @@ public open class CfnCustomerGateway( @CdkDslMarker public interface Builder { /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . * * Default: 65000 * + * Valid values: `1` to `2,147,483,647` + * * Default: - 65000 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasn) - * @param bgpAsn For devices that support BGP, the customer gateway's BGP ASN. + * @param bgpAsn For customer gateway devices that support BGP, specify the device's ASN. */ public fun bgpAsn(bgpAsn: Number) + /** + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasnextended) + * @param bgpAsnExtended For customer gateway devices that support BGP, specify the device's + * ASN. + */ + public fun bgpAsnExtended(bgpAsnExtended: Number) + /** * The Amazon Resource Name (ARN) for the customer gateway certificate. * @@ -194,7 +228,9 @@ public open class CfnCustomerGateway( /** * IPv4 address for the customer gateway device's outside interface. * - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set + * to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If + * `OutsideIpAddressType` is set to `PublicIpv4` , you can use a public IPv4 address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-ipaddress) * @param ipAddress IPv4 address for the customer gateway device's outside interface. @@ -234,19 +270,40 @@ public open class CfnCustomerGateway( software.amazon.awscdk.services.ec2.CfnCustomerGateway.Builder.create(scope, id) /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . * * Default: 65000 * + * Valid values: `1` to `2,147,483,647` + * * Default: - 65000 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasn) - * @param bgpAsn For devices that support BGP, the customer gateway's BGP ASN. + * @param bgpAsn For customer gateway devices that support BGP, specify the device's ASN. */ override fun bgpAsn(bgpAsn: Number) { cdkBuilder.bgpAsn(bgpAsn) } + /** + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasnextended) + * @param bgpAsnExtended For customer gateway devices that support BGP, specify the device's + * ASN. + */ + override fun bgpAsnExtended(bgpAsnExtended: Number) { + cdkBuilder.bgpAsnExtended(bgpAsnExtended) + } + /** * The Amazon Resource Name (ARN) for the customer gateway certificate. * @@ -270,7 +327,9 @@ public open class CfnCustomerGateway( /** * IPv4 address for the customer gateway device's outside interface. * - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set + * to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If + * `OutsideIpAddressType` is set to `PublicIpv4` , you can use a public IPv4 address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-ipaddress) * @param ipAddress IPv4 address for the customer gateway device's outside interface. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGatewayProps.kt index 942f555d8d..ee6a5641f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnCustomerGatewayProps.kt @@ -25,6 +25,7 @@ import kotlin.collections.List * .type("type") * // the properties below are optional * .bgpAsn(123) + * .bgpAsnExtended(123) * .certificateArn("certificateArn") * .deviceName("deviceName") * .tags(List.of(CfnTag.builder() @@ -38,16 +39,33 @@ import kotlin.collections.List */ public interface CfnCustomerGatewayProps { /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If the + * ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . * * Default: 65000 * + * Valid values: `1` to `2,147,483,647` + * * Default: - 65000 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasn) */ public fun bgpAsn(): Number? = unwrap(this).getBgpAsn() + /** + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If the + * ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasnextended) + */ + public fun bgpAsnExtended(): Number? = unwrap(this).getBgpAsnExtended() + /** * The Amazon Resource Name (ARN) for the customer gateway certificate. * @@ -65,7 +83,9 @@ public interface CfnCustomerGatewayProps { /** * IPv4 address for the customer gateway device's outside interface. * - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set to + * `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If `OutsideIpAddressType` + * is set to `PublicIpv4` , you can use a public IPv4 address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-ipaddress) */ @@ -91,11 +111,26 @@ public interface CfnCustomerGatewayProps { @CdkDslMarker public interface Builder { /** - * @param bgpAsn For devices that support BGP, the customer gateway's BGP ASN. + * @param bgpAsn For customer gateway devices that support BGP, specify the device's ASN. + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * * Default: 65000 + * + * Valid values: `1` to `2,147,483,647` */ public fun bgpAsn(bgpAsn: Number) + /** + * @param bgpAsnExtended For customer gateway devices that support BGP, specify the device's + * ASN. + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + */ + public fun bgpAsnExtended(bgpAsnExtended: Number) + /** * @param certificateArn The Amazon Resource Name (ARN) for the customer gateway certificate. */ @@ -108,7 +143,9 @@ public interface CfnCustomerGatewayProps { /** * @param ipAddress IPv4 address for the customer gateway device's outside interface. - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set + * to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If + * `OutsideIpAddressType` is set to `PublicIpv4` , you can use a public IPv4 address. */ public fun ipAddress(ipAddress: String) @@ -133,13 +170,30 @@ public interface CfnCustomerGatewayProps { software.amazon.awscdk.services.ec2.CfnCustomerGatewayProps.builder() /** - * @param bgpAsn For devices that support BGP, the customer gateway's BGP ASN. + * @param bgpAsn For customer gateway devices that support BGP, specify the device's ASN. + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * * Default: 65000 + * + * Valid values: `1` to `2,147,483,647` */ override fun bgpAsn(bgpAsn: Number) { cdkBuilder.bgpAsn(bgpAsn) } + /** + * @param bgpAsnExtended For customer gateway devices that support BGP, specify the device's + * ASN. + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + */ + override fun bgpAsnExtended(bgpAsnExtended: Number) { + cdkBuilder.bgpAsnExtended(bgpAsnExtended) + } + /** * @param certificateArn The Amazon Resource Name (ARN) for the customer gateway certificate. */ @@ -156,7 +210,9 @@ public interface CfnCustomerGatewayProps { /** * @param ipAddress IPv4 address for the customer gateway device's outside interface. - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set + * to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If + * `OutsideIpAddressType` is set to `PublicIpv4` , you can use a public IPv4 address. */ override fun ipAddress(ipAddress: String) { cdkBuilder.ipAddress(ipAddress) @@ -187,18 +243,36 @@ public interface CfnCustomerGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnCustomerGatewayProps, - ) : CdkObject(cdkObject), CfnCustomerGatewayProps { + ) : CdkObject(cdkObject), + CfnCustomerGatewayProps { /** - * For devices that support BGP, the customer gateway's BGP ASN. + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . * * Default: 65000 * + * Valid values: `1` to `2,147,483,647` + * * Default: - 65000 * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasn) */ override fun bgpAsn(): Number? = unwrap(this).getBgpAsn() + /** + * For customer gateway devices that support BGP, specify the device's ASN. + * + * You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If + * the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . + * + * Valid values: `2,147,483,648` to `4,294,967,295` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-bgpasnextended) + */ + override fun bgpAsnExtended(): Number? = unwrap(this).getBgpAsnExtended() + /** * The Amazon Resource Name (ARN) for the customer gateway certificate. * @@ -216,7 +290,9 @@ public interface CfnCustomerGatewayProps { /** * IPv4 address for the customer gateway device's outside interface. * - * The address must be static. + * The address must be static. If `OutsideIpAddressType` in your VPN connection options is set + * to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If + * `OutsideIpAddressType` is set to `PublicIpv4` , you can use a public IPv4 address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html#cfn-ec2-customergateway-ipaddress) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptions.kt index 4adccd3f7e..8dcd2a9130 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptions.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDHCPOptions( cdkObject: software.amazon.awscdk.services.ec2.CfnDHCPOptions, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnDHCPOptions(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptionsProps.kt index fe3b375702..0c6a24780e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnDHCPOptionsProps.kt @@ -277,7 +277,8 @@ public interface CfnDHCPOptionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnDHCPOptionsProps, - ) : CdkObject(cdkObject), CfnDHCPOptionsProps { + ) : CdkObject(cdkObject), + CfnDHCPOptionsProps { /** * This value is used to complete unqualified DNS hostnames. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2Fleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2Fleet.kt index e95346dd07..f850c6930e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2Fleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2Fleet.kt @@ -29,7 +29,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * work best for your applications, and specify how Amazon EC2 should distribute your fleet capacity * within each purchasing model. For more information, see [Launching an EC2 * Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html) in the *Amazon EC2 User - * Guide for Linux Instances* . + * Guide* . * * Example: * @@ -172,7 +172,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEC2Fleet( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1180,7 +1181,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.AcceleratorCountRequestProperty, - ) : CdkObject(cdkObject), AcceleratorCountRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorCountRequestProperty { /** * The maximum number of accelerators. * @@ -1303,7 +1305,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.AcceleratorTotalMemoryMiBRequestProperty, - ) : CdkObject(cdkObject), AcceleratorTotalMemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorTotalMemoryMiBRequestProperty { /** * The maximum amount of accelerator memory, in MiB. * @@ -1430,7 +1433,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.BaselineEbsBandwidthMbpsRequestProperty, - ) : CdkObject(cdkObject), BaselineEbsBandwidthMbpsRequestProperty { + ) : CdkObject(cdkObject), + BaselineEbsBandwidthMbpsRequestProperty { /** * The maximum baseline bandwidth, in Mbps. * @@ -1596,7 +1600,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.CapacityRebalanceProperty, - ) : CdkObject(cdkObject), CapacityRebalanceProperty { + ) : CdkObject(cdkObject), + CapacityRebalanceProperty { /** * The replacement strategy to use. Only available for fleets of type `maintain` . * @@ -1745,7 +1750,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.CapacityReservationOptionsRequestProperty, - ) : CdkObject(cdkObject), CapacityReservationOptionsRequestProperty { + ) : CdkObject(cdkObject), + CapacityReservationOptionsRequestProperty { /** * Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. * @@ -2021,7 +2027,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty, - ) : CdkObject(cdkObject), FleetLaunchTemplateConfigRequestProperty { + ) : CdkObject(cdkObject), + FleetLaunchTemplateConfigRequestProperty { /** * The launch template to use. * @@ -2239,6 +2246,12 @@ public open class CfnEC2Fleet( /** * The number of units provided by the specified instance type. * + * These are the same units that you chose to set the target capacity in terms of instances, or + * a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is 1. + * * * When specifying weights, the price used in the `lowest-price` and `price-capacity-optimized` * allocation strategies is per *unit* hour (where the instance price is divided by the specified @@ -2356,6 +2369,13 @@ public open class CfnEC2Fleet( /** * @param weightedCapacity The number of units provided by the specified instance type. + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. + * * * When specifying weights, the price used in the `lowest-price` and * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price @@ -2493,6 +2513,13 @@ public open class CfnEC2Fleet( /** * @param weightedCapacity The number of units provided by the specified instance type. + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. + * * * When specifying weights, the price used in the `lowest-price` and * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price @@ -2511,7 +2538,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty, - ) : CdkObject(cdkObject), FleetLaunchTemplateOverridesRequestProperty { + ) : CdkObject(cdkObject), + FleetLaunchTemplateOverridesRequestProperty { /** * The Availability Zone in which to launch the instances. * @@ -2599,6 +2627,13 @@ public open class CfnEC2Fleet( /** * The number of units provided by the specified instance type. * + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. + * * * When specifying weights, the price used in the `lowest-price` and * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price @@ -2768,7 +2803,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty, - ) : CdkObject(cdkObject), FleetLaunchTemplateSpecificationRequestProperty { + ) : CdkObject(cdkObject), + FleetLaunchTemplateSpecificationRequestProperty { /** * The ID of the launch template. * @@ -3171,8 +3207,8 @@ public open class CfnEC2Fleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -3720,8 +3756,8 @@ public open class CfnEC2Fleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4398,8 +4434,8 @@ public open class CfnEC2Fleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4680,7 +4716,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.InstanceRequirementsRequestProperty, - ) : CdkObject(cdkObject), InstanceRequirementsRequestProperty { + ) : CdkObject(cdkObject), + InstanceRequirementsRequestProperty { /** * The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an * instance. @@ -4930,8 +4967,8 @@ public open class CfnEC2Fleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -5200,7 +5237,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.MaintenanceStrategiesProperty, - ) : CdkObject(cdkObject), MaintenanceStrategiesProperty { + ) : CdkObject(cdkObject), + MaintenanceStrategiesProperty { /** * The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an * elevated risk of being interrupted. @@ -5311,7 +5349,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty, - ) : CdkObject(cdkObject), MemoryGiBPerVCpuRequestProperty { + ) : CdkObject(cdkObject), + MemoryGiBPerVCpuRequestProperty { /** * The maximum amount of memory per vCPU, in GiB. * @@ -5430,7 +5469,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.MemoryMiBRequestProperty, - ) : CdkObject(cdkObject), MemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + MemoryMiBRequestProperty { /** * The maximum amount of memory, in MiB. * @@ -5561,7 +5601,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.NetworkBandwidthGbpsRequestProperty, - ) : CdkObject(cdkObject), NetworkBandwidthGbpsRequestProperty { + ) : CdkObject(cdkObject), + NetworkBandwidthGbpsRequestProperty { /** * The maximum amount of network bandwidth, in Gbps. * @@ -5684,7 +5725,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.NetworkInterfaceCountRequestProperty, - ) : CdkObject(cdkObject), NetworkInterfaceCountRequestProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceCountRequestProperty { /** * The maximum number of network interfaces. * @@ -5787,7 +5829,7 @@ public open class CfnEC2Fleet( * final cost might be higher than what you specified for `MaxTotalPrice` . For more information, * see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-maxtotalprice) @@ -5797,9 +5839,9 @@ public open class CfnEC2Fleet( /** * The minimum target capacity for On-Demand Instances in the fleet. * - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -5880,15 +5922,15 @@ public open class CfnEC2Fleet( * credits, your final cost might be higher than what you specified for `MaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ public fun maxTotalPrice(maxTotalPrice: String) /** * @param minTargetCapacity The minimum target capacity for On-Demand Instances in the fleet. - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -5985,7 +6027,7 @@ public open class CfnEC2Fleet( * credits, your final cost might be higher than what you specified for `MaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ override fun maxTotalPrice(maxTotalPrice: String) { cdkBuilder.maxTotalPrice(maxTotalPrice) @@ -5993,9 +6035,9 @@ public open class CfnEC2Fleet( /** * @param minTargetCapacity The minimum target capacity for On-Demand Instances in the fleet. - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -6047,7 +6089,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.OnDemandOptionsRequestProperty, - ) : CdkObject(cdkObject), OnDemandOptionsRequestProperty { + ) : CdkObject(cdkObject), + OnDemandOptionsRequestProperty { /** * The strategy that determines the order of the launch template overrides to use in * fulfilling On-Demand capacity. @@ -6083,7 +6126,7 @@ public open class CfnEC2Fleet( * credits, your final cost might be higher than what you specified for `MaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-maxtotalprice) @@ -6093,9 +6136,9 @@ public open class CfnEC2Fleet( /** * The minimum target capacity for On-Demand Instances in the fleet. * - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -6428,7 +6471,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.PlacementProperty, - ) : CdkObject(cdkObject), PlacementProperty { + ) : CdkObject(cdkObject), + PlacementProperty { /** * The affinity setting for the instance on the Dedicated Host. * @@ -6642,7 +6686,7 @@ public open class CfnEC2Fleet( * credits, and, if you use surplus credits, your final cost might be higher than what you * specified for `MaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-maxtotalprice) @@ -6652,9 +6696,9 @@ public open class CfnEC2Fleet( /** * The minimum target capacity for Spot Instances in the fleet. * - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -6762,15 +6806,15 @@ public open class CfnEC2Fleet( * credits, and, if you use surplus credits, your final cost might be higher than what you * specified for `MaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ public fun maxTotalPrice(maxTotalPrice: String) /** * @param minTargetCapacity The minimum target capacity for Spot Instances in the fleet. - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -6897,7 +6941,7 @@ public open class CfnEC2Fleet( * credits, and, if you use surplus credits, your final cost might be higher than what you * specified for `MaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ override fun maxTotalPrice(maxTotalPrice: String) { cdkBuilder.maxTotalPrice(maxTotalPrice) @@ -6905,9 +6949,9 @@ public open class CfnEC2Fleet( /** * @param minTargetCapacity The minimum target capacity for Spot Instances in the fleet. - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -6958,7 +7002,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.SpotOptionsRequestProperty, - ) : CdkObject(cdkObject), SpotOptionsRequestProperty { + ) : CdkObject(cdkObject), + SpotOptionsRequestProperty { /** * Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools * specified by the EC2 Fleet. @@ -7030,7 +7075,7 @@ public open class CfnEC2Fleet( * credits, and, if you use surplus credits, your final cost might be higher than what you * specified for `MaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-maxtotalprice) @@ -7040,9 +7085,9 @@ public open class CfnEC2Fleet( /** * The minimum target capacity for Spot Instances in the fleet. * - * If the minimum target capacity is not reached, the fleet launches no instances. + * If this minimum capacity isn't reached, no instances are launched. * - * Supported only for fleets of type `instant` . + * Constraints: Maximum value of `1000` . Supported only for fleets of type `instant` . * * At least one of the following must be specified: `SingleAvailabilityZone` | * `SingleInstanceType` @@ -7179,7 +7224,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.TagSpecificationProperty, - ) : CdkObject(cdkObject), TagSpecificationProperty { + ) : CdkObject(cdkObject), + TagSpecificationProperty { /** * The type of resource to tag. * @@ -7367,7 +7413,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.TargetCapacitySpecificationRequestProperty, - ) : CdkObject(cdkObject), TargetCapacitySpecificationRequestProperty { + ) : CdkObject(cdkObject), + TargetCapacitySpecificationRequestProperty { /** * The default target capacity type. * @@ -7511,7 +7558,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.TotalLocalStorageGBRequestProperty, - ) : CdkObject(cdkObject), TotalLocalStorageGBRequestProperty { + ) : CdkObject(cdkObject), + TotalLocalStorageGBRequestProperty { /** * The maximum amount of total local storage, in GB. * @@ -7633,7 +7681,8 @@ public open class CfnEC2Fleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2Fleet.VCpuCountRangeRequestProperty, - ) : CdkObject(cdkObject), VCpuCountRangeRequestProperty { + ) : CdkObject(cdkObject), + VCpuCountRangeRequestProperty { /** * The maximum number of vCPUs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2FleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2FleetProps.kt index 0ece62c908..b5d60e56cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2FleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEC2FleetProps.kt @@ -715,7 +715,8 @@ public interface CfnEC2FleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEC2FleetProps, - ) : CdkObject(cdkObject), CfnEC2FleetProps { + ) : CdkObject(cdkObject), + CfnEC2FleetProps { /** * Reserved. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIP.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIP.kt index 02d4c3fd1b..8825a6e135 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIP.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIP.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEIP( cdkObject: software.amazon.awscdk.services.ec2.CfnEIP, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnEIP(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociation.kt index f1f24b05a6..a12ec96f0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociation.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEIPAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnEIPAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnEIPAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -82,16 +83,12 @@ public open class CfnEIPAssociation( public open fun attrId(): String = unwrap(this).getAttrId() /** - * (deprecated) The Elastic IP address to associate with the instance. - * * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") public open fun eip(): String? = unwrap(this).getEip() /** - * (deprecated) The Elastic IP address to associate with the instance. - * * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -160,11 +157,9 @@ public open class CfnEIPAssociation( public fun allocationId(allocationId: String) /** - * (deprecated) The Elastic IP address to associate with the instance. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip) * @deprecated this property has been deprecated - * @param eip The Elastic IP address to associate with the instance. + * @param eip */ @Deprecated(message = "deprecated in CDK") public fun eip(eip: String) @@ -225,11 +220,9 @@ public open class CfnEIPAssociation( } /** - * (deprecated) The Elastic IP address to associate with the instance. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip) * @deprecated this property has been deprecated - * @param eip The Elastic IP address to associate with the instance. + * @param eip */ @Deprecated(message = "deprecated in CDK") override fun eip(eip: String) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociationProps.kt index 225999fd7c..791bdd1740 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPAssociationProps.kt @@ -40,8 +40,6 @@ public interface CfnEIPAssociationProps { public fun allocationId(): String? = unwrap(this).getAllocationId() /** - * (deprecated) The Elastic IP address to associate with the instance. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip) * @deprecated this property has been deprecated */ @@ -91,7 +89,7 @@ public interface CfnEIPAssociationProps { public fun allocationId(allocationId: String) /** - * @param eip The Elastic IP address to associate with the instance. + * @param eip the value to be set. * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -134,7 +132,7 @@ public interface CfnEIPAssociationProps { } /** - * @param eip The Elastic IP address to associate with the instance. + * @param eip the value to be set. * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -177,7 +175,8 @@ public interface CfnEIPAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEIPAssociationProps, - ) : CdkObject(cdkObject), CfnEIPAssociationProps { + ) : CdkObject(cdkObject), + CfnEIPAssociationProps { /** * The allocation ID. * @@ -188,8 +187,6 @@ public interface CfnEIPAssociationProps { override fun allocationId(): String? = unwrap(this).getAllocationId() /** - * (deprecated) The Elastic IP address to associate with the instance. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip) * @deprecated this property has been deprecated */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPProps.kt index 5fc0089b94..a34378db40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEIPProps.kt @@ -263,7 +263,8 @@ public interface CfnEIPProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEIPProps, - ) : CdkObject(cdkObject), CfnEIPProps { + ) : CdkObject(cdkObject), + CfnEIPProps { /** * The network ( `vpc` ). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGateway.kt index fe3c747908..3e428b79b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGateway.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEgressOnlyInternetGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnEgressOnlyInternetGateway, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGatewayProps.kt index 432b20b7e2..ebf0e0e2c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEgressOnlyInternetGatewayProps.kt @@ -62,7 +62,8 @@ public interface CfnEgressOnlyInternetGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEgressOnlyInternetGatewayProps, - ) : CdkObject(cdkObject), CfnEgressOnlyInternetGatewayProps { + ) : CdkObject(cdkObject), + CfnEgressOnlyInternetGatewayProps { /** * The ID of the VPC for which to create the egress-only internet gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociation.kt index 56239ae362..65610e4ecf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociation.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnclaveCertificateIamRoleAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnEnclaveCertificateIamRoleAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociationProps.kt index 8b15f00909..6b986796f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnEnclaveCertificateIamRoleAssociationProps.kt @@ -87,7 +87,8 @@ public interface CfnEnclaveCertificateIamRoleAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnEnclaveCertificateIamRoleAssociationProps, - ) : CdkObject(cdkObject), CfnEnclaveCertificateIamRoleAssociationProps { + ) : CdkObject(cdkObject), + CfnEnclaveCertificateIamRoleAssociationProps { /** * The ARN of the ACM certificate with which to associate the IAM role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLog.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLog.kt index 158da3b6f8..1da34b8780 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLog.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLog.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowLog( cdkObject: software.amazon.awscdk.services.ec2.CfnFlowLog, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -370,9 +372,8 @@ public open class CfnFlowLog( * must be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you - * specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 * @@ -557,9 +558,8 @@ public open class CfnFlowLog( * must be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you - * specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 * @@ -785,7 +785,8 @@ public open class CfnFlowLog( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnFlowLog.DestinationOptionsProperty, - ) : CdkObject(cdkObject), DestinationOptionsProperty { + ) : CdkObject(cdkObject), + DestinationOptionsProperty { /** * The format for the flow log. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLogProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLogProps.kt index b40770dde1..b9c8acf68d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLogProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnFlowLogProps.kt @@ -140,8 +140,8 @@ public interface CfnFlowLogProps { * be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 * @@ -265,9 +265,8 @@ public interface CfnFlowLogProps { * must be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you - * specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 */ @@ -399,9 +398,8 @@ public interface CfnFlowLogProps { * must be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you - * specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 */ @@ -451,7 +449,8 @@ public interface CfnFlowLogProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnFlowLogProps, - ) : CdkObject(cdkObject), CfnFlowLogProps { + ) : CdkObject(cdkObject), + CfnFlowLogProps { /** * The ARN of the IAM role that allows the service to publish flow logs across accounts. * @@ -547,9 +546,8 @@ public interface CfnFlowLogProps { * must be 60 seconds for transit gateway resource types. * * When a network interface is attached to a [Nitro-based - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * , the aggregation interval is always 60 seconds or less, regardless of the value that you - * specify. + * instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) , the + * aggregation interval is always 60 seconds or less, regardless of the value that you specify. * * Default: 600 * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociation.kt index 5d29cd7675..393be7be5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociation.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGatewayRouteTableAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnGatewayRouteTableAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociationProps.kt index 9d0060447a..85af35ee63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnGatewayRouteTableAssociationProps.kt @@ -82,7 +82,8 @@ public interface CfnGatewayRouteTableAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnGatewayRouteTableAssociationProps, - ) : CdkObject(cdkObject), CfnGatewayRouteTableAssociationProps { + ) : CdkObject(cdkObject), + CfnGatewayRouteTableAssociationProps { /** * The ID of the gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHost.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHost.kt index cd8db13502..893830507d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHost.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHost.kt @@ -18,7 +18,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * and reduce costs by allowing you to use your existing server-bound software licenses. For more * information, see [Dedicated * Hosts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) in the - * *Amazon EC2 User Guide for Linux Instances* . + * *Amazon EC2 User Guide* . * * Example: * @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHost( cdkObject: software.amazon.awscdk.services.ec2.CfnHost, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -197,7 +198,7 @@ public open class CfnHost( * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement) * @param autoPlacement Indicates whether the host accepts any untargeted instance launches that @@ -296,7 +297,7 @@ public open class CfnHost( * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement) * @param autoPlacement Indicates whether the host accepts any untargeted instance launches that diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHostProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHostProps.kt index 9072c22a0f..4a1a79f988 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHostProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnHostProps.kt @@ -49,7 +49,7 @@ public interface CfnHostProps { * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement) */ @@ -126,7 +126,7 @@ public interface CfnHostProps { * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` */ public fun autoPlacement(autoPlacement: String) @@ -191,7 +191,7 @@ public interface CfnHostProps { * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` */ override fun autoPlacement(autoPlacement: String) { cdkBuilder.autoPlacement(autoPlacement) @@ -255,7 +255,8 @@ public interface CfnHostProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnHostProps, - ) : CdkObject(cdkObject), CfnHostProps { + ) : CdkObject(cdkObject), + CfnHostProps { /** * The ID of the Outpost hardware asset on which the Dedicated Host is allocated. * @@ -272,7 +273,7 @@ public interface CfnHostProps { * affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) * in the *Amazon EC2 User Guide* . * - * Default: `on` + * Default: `off` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAM.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAM.kt index 7676396c20..852748683b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAM.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAM.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit @@ -42,6 +43,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.ec2.*; * CfnIPAM cfnIPAM = CfnIPAM.Builder.create(this, "MyCfnIPAM") * .description("description") + * .enablePrivateGua(false) * .operatingRegions(List.of(IpamOperatingRegionProperty.builder() * .regionName("regionName") * .build())) @@ -57,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAM( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAM, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnIPAM(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -134,6 +138,25 @@ public open class CfnIPAM( unwrap(this).setDescription(`value`) } + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + */ + public open fun enablePrivateGua(): Any? = unwrap(this).getEnablePrivateGua() + + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + */ + public open fun enablePrivateGua(`value`: Boolean) { + unwrap(this).setEnablePrivateGua(`value`) + } + + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + */ + public open fun enablePrivateGua(`value`: IResolvable) { + unwrap(this).setEnablePrivateGua(`value`.let(IResolvable.Companion::unwrap)) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -215,6 +238,28 @@ public open class CfnIPAM( */ public fun description(description: String) + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + */ + public fun enablePrivateGua(enablePrivateGua: Boolean) + + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + */ + public fun enablePrivateGua(enablePrivateGua: IResolvable) + /** * The operating Regions for an IPAM. * @@ -313,6 +358,32 @@ public open class CfnIPAM( cdkBuilder.description(description) } + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + */ + override fun enablePrivateGua(enablePrivateGua: Boolean) { + cdkBuilder.enablePrivateGua(enablePrivateGua) + } + + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + */ + override fun enablePrivateGua(enablePrivateGua: IResolvable) { + cdkBuilder.enablePrivateGua(enablePrivateGua.let(IResolvable.Companion::unwrap)) + } + /** * The operating Regions for an IPAM. * @@ -485,7 +556,8 @@ public open class CfnIPAM( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAM.IpamOperatingRegionProperty, - ) : CdkObject(cdkObject), IpamOperatingRegionProperty { + ) : CdkObject(cdkObject), + IpamOperatingRegionProperty { /** * The name of the operating Region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocation.kt index 29ad1911b9..a3436cbd45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocation.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMAllocation( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMAllocation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocationProps.kt index 3360a3dd7b..25c76f124d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMAllocationProps.kt @@ -166,7 +166,8 @@ public interface CfnIPAMAllocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMAllocationProps, - ) : CdkObject(cdkObject), CfnIPAMAllocationProps { + ) : CdkObject(cdkObject), + CfnIPAMAllocationProps { /** * The CIDR you would like to allocate from the IPAM pool. Note the following:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPool.kt index 91f65b8def..4ddc63d898 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPool.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMPool( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPool, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -559,12 +561,16 @@ public open class CfnIPAMPool( /** * The locale of the IPAM pool. * - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM - * pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, - * you cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be + * available for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region + * for the IPAM, you'll get an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-locale) * @param locale The locale of the IPAM pool. @@ -872,12 +878,16 @@ public open class CfnIPAMPool( /** * The locale of the IPAM pool. * - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM - * pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, - * you cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be + * available for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region + * for the IPAM, you'll get an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-locale) * @param locale The locale of the IPAM pool. @@ -1123,7 +1133,8 @@ public open class CfnIPAMPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPool.ProvisionedCidrProperty, - ) : CdkObject(cdkObject), ProvisionedCidrProperty { + ) : CdkObject(cdkObject), + ProvisionedCidrProperty { /** * The CIDR provisioned to the IPAM pool. * @@ -1267,7 +1278,8 @@ public open class CfnIPAMPool( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPool.SourceResourceProperty, - ) : CdkObject(cdkObject), SourceResourceProperty { + ) : CdkObject(cdkObject), + SourceResourceProperty { /** * The source resource ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidr.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidr.kt index a0f63fcbd6..83672b1d54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidr.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidr.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMPoolCidr( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPoolCidr, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidrProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidrProps.kt index d46ee57056..4b022b5597 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidrProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolCidrProps.kt @@ -122,7 +122,8 @@ public interface CfnIPAMPoolCidrProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPoolCidrProps, - ) : CdkObject(cdkObject), CfnIPAMPoolCidrProps { + ) : CdkObject(cdkObject), + CfnIPAMPoolCidrProps { /** * The CIDR provisioned to the IPAM pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolProps.kt index 3632e6de58..a3cc107a37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMPoolProps.kt @@ -153,12 +153,16 @@ public interface CfnIPAMPoolProps { /** * The locale of the IPAM pool. * - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM pool - * that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, you - * cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be available + * for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region for + * the IPAM, you'll get an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-locale) */ @@ -329,12 +333,16 @@ public interface CfnIPAMPoolProps { /** * @param locale The locale of the IPAM pool. - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM - * pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, - * you cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be + * available for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region + * for the IPAM, you'll get an error. */ public fun locale(locale: String) @@ -546,12 +554,16 @@ public interface CfnIPAMPoolProps { /** * @param locale The locale of the IPAM pool. - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM - * pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, - * you cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be + * available for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region + * for the IPAM, you'll get an error. */ override fun locale(locale: String) { cdkBuilder.locale(locale) @@ -661,7 +673,8 @@ public interface CfnIPAMPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMPoolProps, - ) : CdkObject(cdkObject), CfnIPAMPoolProps { + ) : CdkObject(cdkObject), + CfnIPAMPoolProps { /** * The address family of the pool. * @@ -756,12 +769,16 @@ public interface CfnIPAMPoolProps { /** * The locale of the IPAM pool. * - * In IPAM, the locale is the AWS Region where you want to make an IPAM pool available for - * allocations. Only resources in the same Region as the locale of the pool can get IP address - * allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM - * pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, - * you cannot modify it. If you choose an AWS Region for locale that has not been configured as an - * operating Region for the IPAM, you'll get an error. + * The locale for the pool should be one of the following: + * + * * An AWS Region where you want this IPAM pool to be available for allocations. + * * The network border group for an AWS Local Zone where you want this IPAM pool to be + * available for allocations ( [supported Local + * Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) ). + * This option is only available for IPAM IPv4 pools in the public scope. + * + * If you choose an AWS Region for locale that has not been configured as an operating Region + * for the IPAM, you'll get an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-locale) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMProps.kt index eb3dcfc75f..f5f16014fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMProps.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -23,6 +24,7 @@ import kotlin.collections.List * import io.cloudshiftdev.awscdk.services.ec2.*; * CfnIPAMProps cfnIPAMProps = CfnIPAMProps.builder() * .description("description") + * .enablePrivateGua(false) * .operatingRegions(List.of(IpamOperatingRegionProperty.builder() * .regionName("regionName") * .build())) @@ -44,6 +46,15 @@ public interface CfnIPAMProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + */ + public fun enablePrivateGua(): Any? = unwrap(this).getEnablePrivateGua() + /** * The operating Regions for an IPAM. * @@ -89,6 +100,20 @@ public interface CfnIPAMProps { */ public fun description(description: String) + /** + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + * This option is disabled by default. + */ + public fun enablePrivateGua(enablePrivateGua: Boolean) + + /** + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + * This option is disabled by default. + */ + public fun enablePrivateGua(enablePrivateGua: IResolvable) + /** * @param operatingRegions The operating Regions for an IPAM. * Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs. IPAM @@ -157,6 +182,24 @@ public interface CfnIPAMProps { cdkBuilder.description(description) } + /** + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + * This option is disabled by default. + */ + override fun enablePrivateGua(enablePrivateGua: Boolean) { + cdkBuilder.enablePrivateGua(enablePrivateGua) + } + + /** + * @param enablePrivateGua Enable this option to use your own GUA ranges as private IPv6 + * addresses. + * This option is disabled by default. + */ + override fun enablePrivateGua(enablePrivateGua: IResolvable) { + cdkBuilder.enablePrivateGua(enablePrivateGua.let(IResolvable.Companion::unwrap)) + } + /** * @param operatingRegions The operating Regions for an IPAM. * Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs. IPAM @@ -227,7 +270,8 @@ public interface CfnIPAMProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMProps, - ) : CdkObject(cdkObject), CfnIPAMProps { + ) : CdkObject(cdkObject), + CfnIPAMProps { /** * The description for the IPAM. * @@ -235,6 +279,15 @@ public interface CfnIPAMProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * Enable this option to use your own GUA ranges as private IPv6 addresses. + * + * This option is disabled by default. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipam.html#cfn-ec2-ipam-enableprivategua) + */ + override fun enablePrivateGua(): Any? = unwrap(this).getEnablePrivateGua() + /** * The operating Regions for an IPAM. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscovery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscovery.kt index c7240533cb..20d233e5dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscovery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscovery.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMResourceDiscovery( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscovery, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscovery(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -423,7 +425,8 @@ public open class CfnIPAMResourceDiscovery( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscovery.IpamOperatingRegionProperty, - ) : CdkObject(cdkObject), IpamOperatingRegionProperty { + ) : CdkObject(cdkObject), + IpamOperatingRegionProperty { /** * The name of the operating Region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociation.kt index 18c1184936..31a0218a65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociation.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMResourceDiscoveryAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscoveryAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociationProps.kt index 7b5504467c..747e0b472c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryAssociationProps.kt @@ -129,7 +129,8 @@ public interface CfnIPAMResourceDiscoveryAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscoveryAssociationProps, - ) : CdkObject(cdkObject), CfnIPAMResourceDiscoveryAssociationProps { + ) : CdkObject(cdkObject), + CfnIPAMResourceDiscoveryAssociationProps { /** * The IPAM ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryProps.kt index 04ac36f4a4..e607bb61b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMResourceDiscoveryProps.kt @@ -170,7 +170,8 @@ public interface CfnIPAMResourceDiscoveryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMResourceDiscoveryProps, - ) : CdkObject(cdkObject), CfnIPAMResourceDiscoveryProps { + ) : CdkObject(cdkObject), + CfnIPAMResourceDiscoveryProps { /** * The resource discovery description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScope.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScope.kt index b6422a5658..97ed8a791b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScope.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScope.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPAMScope( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMScope, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScopeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScopeProps.kt index 9654a31623..002ceb5034 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScopeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnIPAMScopeProps.kt @@ -131,7 +131,8 @@ public interface CfnIPAMScopeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnIPAMScopeProps, - ) : CdkObject(cdkObject), CfnIPAMScopeProps { + ) : CdkObject(cdkObject), + CfnIPAMScopeProps { /** * The description of the scope. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstance.kt index 99b87f4a91..b2fc92e5de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstance.kt @@ -160,7 +160,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstance( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1428,7 +1430,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -1444,7 +1446,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -1460,7 +1462,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -2573,7 +2575,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -2591,7 +2593,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -2609,7 +2611,7 @@ public open class CfnInstance( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -3402,9 +3404,9 @@ public open class CfnInstance( /** * Specifies input parameter values for an SSM document in AWS Systems Manager . * - * `AssociationParameter` is a property of the [Amazon EC2 Instance - * SsmAssociation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html) - * property. + * `AssociationParameter` is a property of the + * [SsmAssociation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociation.html) + * property type. * * Example: * @@ -3488,7 +3490,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.AssociationParameterProperty, - ) : CdkObject(cdkObject), AssociationParameterProperty { + ) : CdkObject(cdkObject), + AssociationParameterProperty { /** * The name of an input parameter that is in the associated SSM document. * @@ -3853,7 +3856,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.BlockDeviceMappingProperty, - ) : CdkObject(cdkObject), BlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + BlockDeviceMappingProperty { /** * The device name (for example, `/dev/sdh` or `xvdh` ). * @@ -4022,7 +4026,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.CpuOptionsProperty, - ) : CdkObject(cdkObject), CpuOptionsProperty { + ) : CdkObject(cdkObject), + CpuOptionsProperty { /** * The number of CPU cores for the instance. * @@ -4127,7 +4132,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.CreditSpecificationProperty, - ) : CdkObject(cdkObject), CreditSpecificationProperty { + ) : CdkObject(cdkObject), + CreditSpecificationProperty { /** * The credit option for CPU usage of the instance. * @@ -4161,9 +4167,9 @@ public open class CfnInstance( /** * Specifies a block device for an EBS volume. * - * `Ebs` is a property of the [Amazon EC2 - * BlockDeviceMapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html) - * property. + * `Ebs` is a property of the + * [BlockDeviceMapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-blockdevicemapping.html) + * property type. * * * After the instance is running, you can modify only the `DeleteOnTermination` parameters for the @@ -4676,7 +4682,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.EbsProperty, - ) : CdkObject(cdkObject), EbsProperty { + ) : CdkObject(cdkObject), + EbsProperty { /** * Indicates whether the EBS volume is deleted on instance termination. * @@ -4848,10 +4855,7 @@ public open class CfnInstance( * G4dn, or G5 instances. * * Specifies the type of Elastic GPU. An Elastic GPU is a GPU resource that you can attach to your - * Amazon EC2 instance to accelerate the graphics performance of your applications. For more - * information, see [Amazon EC2 Elastic - * GPUs](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html) in the *Amazon - * EC2 User Guide for Windows Instances* . + * Amazon EC2 instance to accelerate the graphics performance of your applications. * * `ElasticGpuSpecification` is a property of the * [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) @@ -4875,11 +4879,6 @@ public open class CfnInstance( /** * The type of Elastic Graphics accelerator. * - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html#cfn-ec2-instance-elasticgpuspecification-type) */ public fun type(): String @@ -4891,10 +4890,6 @@ public open class CfnInstance( public interface Builder { /** * @param type The type of Elastic Graphics accelerator. - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . */ public fun type(type: String) } @@ -4906,10 +4901,6 @@ public open class CfnInstance( /** * @param type The type of Elastic Graphics accelerator. - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . */ override fun type(type: String) { cdkBuilder.type(type) @@ -4922,15 +4913,11 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.ElasticGpuSpecificationProperty, - ) : CdkObject(cdkObject), ElasticGpuSpecificationProperty { + ) : CdkObject(cdkObject), + ElasticGpuSpecificationProperty { /** * The type of Elastic Graphics accelerator. * - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html#cfn-ec2-instance-elasticgpuspecification-type) */ override fun type(): String = unwrap(this).getType() @@ -5042,7 +5029,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.ElasticInferenceAcceleratorProperty, - ) : CdkObject(cdkObject), ElasticInferenceAcceleratorProperty { + ) : CdkObject(cdkObject), + ElasticInferenceAcceleratorProperty { /** * The number of elastic inference accelerators to attach to the instance. * @@ -5155,7 +5143,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.EnclaveOptionsProperty, - ) : CdkObject(cdkObject), EnclaveOptionsProperty { + ) : CdkObject(cdkObject), + EnclaveOptionsProperty { /** * If this parameter is set to `true` , the instance is enabled for AWS Nitro Enclaves; * @@ -5306,7 +5295,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.HibernationOptionsProperty, - ) : CdkObject(cdkObject), HibernationOptionsProperty { + ) : CdkObject(cdkObject), + HibernationOptionsProperty { /** * Set to `true` to enable your instance for hibernation. * @@ -5404,7 +5394,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.InstanceIpv6AddressProperty, - ) : CdkObject(cdkObject), InstanceIpv6AddressProperty { + ) : CdkObject(cdkObject), + InstanceIpv6AddressProperty { /** * The IPv6 address. * @@ -5568,7 +5559,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.LaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), LaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateSpecificationProperty { /** * The ID of the launch template. * @@ -5682,7 +5674,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.LicenseSpecificationProperty, - ) : CdkObject(cdkObject), LicenseSpecificationProperty { + ) : CdkObject(cdkObject), + LicenseSpecificationProperty { /** * The Amazon Resource Name (ARN) of the license configuration. * @@ -6268,7 +6261,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * Indicates whether to assign a carrier IP address to the network interface. * @@ -6449,7 +6443,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.NoDeviceProperty, - ) : CdkObject(cdkObject), NoDeviceProperty + ) : CdkObject(cdkObject), + NoDeviceProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): NoDeviceProperty { @@ -6654,7 +6649,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.PrivateDnsNameOptionsProperty, - ) : CdkObject(cdkObject), PrivateDnsNameOptionsProperty { + ) : CdkObject(cdkObject), + PrivateDnsNameOptionsProperty { /** * Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -6810,7 +6806,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.PrivateIpAddressSpecificationProperty, - ) : CdkObject(cdkObject), PrivateIpAddressSpecificationProperty { + ) : CdkObject(cdkObject), + PrivateIpAddressSpecificationProperty { /** * Indicates whether the private IPv4 address is the primary private IPv4 address. * @@ -6958,7 +6955,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.SsmAssociationProperty, - ) : CdkObject(cdkObject), SsmAssociationProperty { + ) : CdkObject(cdkObject), + SsmAssociationProperty { /** * The input parameter values to use with the associated SSM document. * @@ -6993,7 +6991,7 @@ public open class CfnInstance( } /** - * The current state of the instance. + * Describes the current state of an instance. * * Example: * @@ -7013,6 +7011,26 @@ public open class CfnInstance( /** * The state of the instance as a 16-bit unsigned integer. * + * The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values + * between 256 and 65,535. These numerical values are used for internal purposes and should be + * ignored. + * + * The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between + * 0 and 255. + * + * The valid values for instance-state-code will all be in the range of the low byte and they + * are: + * + * * `0` : `pending` + * * `16` : `running` + * * `32` : `shutting-down` + * * `48` : `terminated` + * * `64` : `stopping` + * * `80` : `stopped` + * + * You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in + * decimal. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-code) */ public fun code(): String? = unwrap(this).getCode() @@ -7031,6 +7049,25 @@ public open class CfnInstance( public interface Builder { /** * @param code The state of the instance as a 16-bit unsigned integer. + * The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values + * between 256 and 65,535. These numerical values are used for internal purposes and should be + * ignored. + * + * The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values + * between 0 and 255. + * + * The valid values for instance-state-code will all be in the range of the low byte and they + * are: + * + * * `0` : `pending` + * * `16` : `running` + * * `32` : `shutting-down` + * * `48` : `terminated` + * * `64` : `stopping` + * * `80` : `stopped` + * + * You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in + * decimal. */ public fun code(code: String) @@ -7046,6 +7083,25 @@ public open class CfnInstance( /** * @param code The state of the instance as a 16-bit unsigned integer. + * The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values + * between 256 and 65,535. These numerical values are used for internal purposes and should be + * ignored. + * + * The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values + * between 0 and 255. + * + * The valid values for instance-state-code will all be in the range of the low byte and they + * are: + * + * * `0` : `pending` + * * `16` : `running` + * * `32` : `shutting-down` + * * `48` : `terminated` + * * `64` : `stopping` + * * `80` : `stopped` + * + * You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in + * decimal. */ override fun code(code: String) { cdkBuilder.code(code) @@ -7064,10 +7120,31 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.StateProperty, - ) : CdkObject(cdkObject), StateProperty { + ) : CdkObject(cdkObject), + StateProperty { /** * The state of the instance as a 16-bit unsigned integer. * + * The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values + * between 256 and 65,535. These numerical values are used for internal purposes and should be + * ignored. + * + * The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values + * between 0 and 255. + * + * The valid values for instance-state-code will all be in the range of the low byte and they + * are: + * + * * `0` : `pending` + * * `16` : `running` + * * `32` : `shutting-down` + * * `48` : `terminated` + * * `64` : `stopping` + * * `80` : `stopped` + * + * You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in + * decimal. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-code) */ override fun code(): String? = unwrap(this).getCode() @@ -7175,7 +7252,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstance.VolumeProperty, - ) : CdkObject(cdkObject), VolumeProperty { + ) : CdkObject(cdkObject), + VolumeProperty { /** * The device name (for example, `/dev/sdh` or `xvdh` ). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpoint.kt index a007fff2de..b3bc4fdcb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpoint.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceConnectEndpoint( cdkObject: software.amazon.awscdk.services.ec2.CfnInstanceConnectEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -101,25 +103,25 @@ public open class CfnInstanceConnectEndpoint( } /** - * Indicates whether your client's IP address is preserved as the source. + * Indicates whether the client IP address is preserved as the source. * - * The value is `true` or `false` . + * The following are the possible values. */ public open fun preserveClientIp(): Any? = unwrap(this).getPreserveClientIp() /** - * Indicates whether your client's IP address is preserved as the source. + * Indicates whether the client IP address is preserved as the source. * - * The value is `true` or `false` . + * The following are the possible values. */ public open fun preserveClientIp(`value`: Boolean) { unwrap(this).setPreserveClientIp(`value`) } /** - * Indicates whether your client's IP address is preserved as the source. + * Indicates whether the client IP address is preserved as the source. * - * The value is `true` or `false` . + * The following are the possible values. */ public open fun preserveClientIp(`value`: IResolvable) { unwrap(this).setPreserveClientIp(`value`.let(IResolvable.Companion::unwrap)) @@ -188,34 +190,32 @@ public open class CfnInstanceConnectEndpoint( public fun clientToken(clientToken: String) /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. */ public fun preserveClientIp(preserveClientIp: Boolean) /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. */ public fun preserveClientIp(preserveClientIp: IResolvable) @@ -285,36 +285,34 @@ public open class CfnInstanceConnectEndpoint( } /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. */ override fun preserveClientIp(preserveClientIp: Boolean) { cdkBuilder.preserveClientIp(preserveClientIp) } /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. */ override fun preserveClientIp(preserveClientIp: IResolvable) { cdkBuilder.preserveClientIp(preserveClientIp.let(IResolvable.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpointProps.kt index 2f5353a911..8873e13eb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceConnectEndpointProps.kt @@ -47,13 +47,13 @@ public interface CfnInstanceConnectEndpointProps { public fun clientToken(): String? = unwrap(this).getClientToken() /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) */ @@ -95,24 +95,22 @@ public interface CfnInstanceConnectEndpointProps { public fun clientToken(clientToken: String) /** - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` */ public fun preserveClientIp(preserveClientIp: Boolean) /** - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` */ public fun preserveClientIp(preserveClientIp: IResolvable) @@ -160,26 +158,24 @@ public interface CfnInstanceConnectEndpointProps { } /** - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` */ override fun preserveClientIp(preserveClientIp: Boolean) { cdkBuilder.preserveClientIp(preserveClientIp) } /** - * @param preserveClientIp Indicates whether your client's IP address is preserved as the - * source. The value is `true` or `false` . - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * @param preserveClientIp Indicates whether the client IP address is preserved as the source. + * The following are the possible values. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` */ override fun preserveClientIp(preserveClientIp: IResolvable) { cdkBuilder.preserveClientIp(preserveClientIp.let(IResolvable.Companion::unwrap)) @@ -227,7 +223,8 @@ public interface CfnInstanceConnectEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstanceConnectEndpointProps, - ) : CdkObject(cdkObject), CfnInstanceConnectEndpointProps { + ) : CdkObject(cdkObject), + CfnInstanceConnectEndpointProps { /** * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * @@ -236,14 +233,13 @@ public interface CfnInstanceConnectEndpointProps { override fun clientToken(): String? = unwrap(this).getClientToken() /** - * Indicates whether your client's IP address is preserved as the source. The value is `true` or - * `false` . + * Indicates whether the client IP address is preserved as the source. The following are the + * possible values. * - * * If `true` , your client's IP address is used when you connect to a resource. - * * If `false` , the elastic network interface IP address is used when you connect to a - * resource. + * * `true` - Use the client IP address as the source. + * * `false` - Use the network interface IP address as the source. * - * Default: `true` + * Default: `false` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceconnectendpoint.html#cfn-ec2-instanceconnectendpoint-preserveclientip) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceProps.kt index ddde608e58..1985c5988c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInstanceProps.kt @@ -295,7 +295,7 @@ public interface CfnInstanceProps { * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -920,7 +920,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -932,7 +932,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -944,7 +944,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -1715,7 +1715,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -1729,7 +1729,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -1743,7 +1743,7 @@ public interface CfnInstanceProps { * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * @@ -2287,7 +2287,8 @@ public interface CfnInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInstanceProps, - ) : CdkObject(cdkObject), CfnInstanceProps { + ) : CdkObject(cdkObject), + CfnInstanceProps { /** * This property is reserved for internal use. * @@ -2438,7 +2439,7 @@ public interface CfnInstanceProps { * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 * User Guide* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGateway.kt index 69ce26024c..98661a35ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGateway.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInternetGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnInternetGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnInternetGateway(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGatewayProps.kt index 64f1dfcec1..d38371a17a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnInternetGatewayProps.kt @@ -74,7 +74,8 @@ public interface CfnInternetGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnInternetGatewayProps, - ) : CdkObject(cdkObject), CfnInternetGatewayProps { + ) : CdkObject(cdkObject), + CfnInternetGatewayProps { /** * Any tags to assign to the internet gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPair.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPair.kt index 2cd9ec268a..67d8441a2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPair.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPair.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKeyPair( cdkObject: software.amazon.awscdk.services.ec2.CfnKeyPair, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPairProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPairProps.kt index 5ff34c8b61..44f24a30aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPairProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnKeyPairProps.kt @@ -189,7 +189,8 @@ public interface CfnKeyPairProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnKeyPairProps, - ) : CdkObject(cdkObject), CfnKeyPairProps { + ) : CdkObject(cdkObject), + CfnKeyPairProps { /** * The format of the key pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplate.kt index 34b633ac9b..f3f46731ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplate.kt @@ -65,7 +65,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchTemplate( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -229,9 +230,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -244,9 +244,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -259,9 +258,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -332,9 +330,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -349,9 +346,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -366,9 +362,8 @@ public open class CfnLaunchTemplate( * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -497,7 +492,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorCountProperty, - ) : CdkObject(cdkObject), AcceleratorCountProperty { + ) : CdkObject(cdkObject), + AcceleratorCountProperty { /** * The maximum number of accelerators. * @@ -620,7 +616,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorTotalMemoryMiBProperty, - ) : CdkObject(cdkObject), AcceleratorTotalMemoryMiBProperty { + ) : CdkObject(cdkObject), + AcceleratorTotalMemoryMiBProperty { /** * The maximum amount of accelerator memory, in MiB. * @@ -747,7 +744,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.BaselineEbsBandwidthMbpsProperty, - ) : CdkObject(cdkObject), BaselineEbsBandwidthMbpsProperty { + ) : CdkObject(cdkObject), + BaselineEbsBandwidthMbpsProperty { /** * The maximum baseline bandwidth, in Mbps. * @@ -960,7 +958,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.BlockDeviceMappingProperty, - ) : CdkObject(cdkObject), BlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + BlockDeviceMappingProperty { /** * The device name (for example, /dev/sdh or xvdh). * @@ -1151,7 +1150,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.CapacityReservationSpecificationProperty, - ) : CdkObject(cdkObject), CapacityReservationSpecificationProperty { + ) : CdkObject(cdkObject), + CapacityReservationSpecificationProperty { /** * Indicates the instance's Capacity Reservation preferences. Possible preferences include:. * @@ -1278,7 +1278,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.CapacityReservationTargetProperty, - ) : CdkObject(cdkObject), CapacityReservationTargetProperty { + ) : CdkObject(cdkObject), + CapacityReservationTargetProperty { /** * The ID of the Capacity Reservation in which to run the instance. * @@ -1320,7 +1321,7 @@ public open class CfnLaunchTemplate( * * For more information, see [Connection tracking * timeouts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts) - * in the *Amazon Elastic Compute Cloud User Guide* . + * in the *Amazon EC2 User Guide* . * * Example: * @@ -1438,7 +1439,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.ConnectionTrackingSpecificationProperty, - ) : CdkObject(cdkObject), ConnectionTrackingSpecificationProperty { + ) : CdkObject(cdkObject), + ConnectionTrackingSpecificationProperty { /** * Timeout (in seconds) for idle TCP connections in an established state. * @@ -1604,7 +1606,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.CpuOptionsProperty, - ) : CdkObject(cdkObject), CpuOptionsProperty { + ) : CdkObject(cdkObject), + CpuOptionsProperty { /** * Indicates whether to enable the instance for AMD SEV-SNP. * @@ -1714,7 +1717,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.CreditSpecificationProperty, - ) : CdkObject(cdkObject), CreditSpecificationProperty { + ) : CdkObject(cdkObject), + CreditSpecificationProperty { /** * The credit option for CPU usage of a T instance. * @@ -2068,7 +2072,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.EbsProperty, - ) : CdkObject(cdkObject), EbsProperty { + ) : CdkObject(cdkObject), + EbsProperty { /** * Indicates whether the EBS volume is deleted on instance termination. * @@ -2206,11 +2211,6 @@ public open class CfnLaunchTemplate( /** * The type of Elastic Graphics accelerator. * - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-type) */ public fun type(): String? = unwrap(this).getType() @@ -2222,10 +2222,6 @@ public open class CfnLaunchTemplate( public interface Builder { /** * @param type The type of Elastic Graphics accelerator. - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . */ public fun type(type: String) } @@ -2238,10 +2234,6 @@ public open class CfnLaunchTemplate( /** * @param type The type of Elastic Graphics accelerator. - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . */ override fun type(type: String) { cdkBuilder.type(type) @@ -2254,15 +2246,11 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.ElasticGpuSpecificationProperty, - ) : CdkObject(cdkObject), ElasticGpuSpecificationProperty { + ) : CdkObject(cdkObject), + ElasticGpuSpecificationProperty { /** * The type of Elastic Graphics accelerator. * - * For more information about the values to specify for `Type` , see [Elastic Graphics - * Basics](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics) - * , specifically the Elastic Graphics accelerator column, in the *Amazon Elastic Compute Cloud - * User Guide for Windows Instances* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-type) */ override fun type(): String? = unwrap(this).getType() @@ -2414,7 +2402,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.EnaSrdSpecificationProperty, - ) : CdkObject(cdkObject), EnaSrdSpecificationProperty { + ) : CdkObject(cdkObject), + EnaSrdSpecificationProperty { /** * Indicates whether ENA Express is enabled for the network interface. * @@ -2531,7 +2520,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.EnaSrdUdpSpecificationProperty, - ) : CdkObject(cdkObject), EnaSrdUdpSpecificationProperty { + ) : CdkObject(cdkObject), + EnaSrdUdpSpecificationProperty { /** * Indicates whether UDP traffic to and from the instance uses ENA Express. * @@ -2636,7 +2626,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.EnclaveOptionsProperty, - ) : CdkObject(cdkObject), EnclaveOptionsProperty { + ) : CdkObject(cdkObject), + EnclaveOptionsProperty { /** * If this parameter is set to `true` , the instance is enabled for AWS Nitro Enclaves; * @@ -2751,7 +2742,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.HibernationOptionsProperty, - ) : CdkObject(cdkObject), HibernationOptionsProperty { + ) : CdkObject(cdkObject), + HibernationOptionsProperty { /** * If you set this parameter to `true` , the instance is enabled for hibernation. * @@ -2863,7 +2855,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.IamInstanceProfileProperty, - ) : CdkObject(cdkObject), IamInstanceProfileProperty { + ) : CdkObject(cdkObject), + IamInstanceProfileProperty { /** * The Amazon Resource Name (ARN) of the instance profile. * @@ -3010,7 +3003,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty, - ) : CdkObject(cdkObject), InstanceMarketOptionsProperty { + ) : CdkObject(cdkObject), + InstanceMarketOptionsProperty { /** * The market type. * @@ -3396,8 +3390,8 @@ public open class CfnLaunchTemplate( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -3940,8 +3934,8 @@ public open class CfnLaunchTemplate( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4604,8 +4598,8 @@ public open class CfnLaunchTemplate( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4872,7 +4866,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceRequirementsProperty, - ) : CdkObject(cdkObject), InstanceRequirementsProperty { + ) : CdkObject(cdkObject), + InstanceRequirementsProperty { /** * The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an * instance. @@ -5122,8 +5117,8 @@ public open class CfnLaunchTemplate( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -5317,9 +5312,9 @@ public open class CfnLaunchTemplate( /** * The IPv4 prefix. * - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv4prefixspecification.html#cfn-ec2-launchtemplate-ipv4prefixspecification-ipv4prefix) */ @@ -5332,9 +5327,9 @@ public open class CfnLaunchTemplate( public interface Builder { /** * @param ipv4Prefix The IPv4 prefix. - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ public fun ipv4Prefix(ipv4Prefix: String) } @@ -5347,9 +5342,9 @@ public open class CfnLaunchTemplate( /** * @param ipv4Prefix The IPv4 prefix. - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ override fun ipv4Prefix(ipv4Prefix: String) { cdkBuilder.ipv4Prefix(ipv4Prefix) @@ -5362,13 +5357,14 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.Ipv4PrefixSpecificationProperty, - ) : CdkObject(cdkObject), Ipv4PrefixSpecificationProperty { + ) : CdkObject(cdkObject), + Ipv4PrefixSpecificationProperty { /** * The IPv4 prefix. * - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv4prefixspecification.html#cfn-ec2-launchtemplate-ipv4prefixspecification-ipv4prefix) */ @@ -5456,7 +5452,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.Ipv6AddProperty, - ) : CdkObject(cdkObject), Ipv6AddProperty { + ) : CdkObject(cdkObject), + Ipv6AddProperty { /** * One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. * @@ -5545,7 +5542,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.Ipv6PrefixSpecificationProperty, - ) : CdkObject(cdkObject), Ipv6PrefixSpecificationProperty { + ) : CdkObject(cdkObject), + Ipv6PrefixSpecificationProperty { /** * The IPv6 prefix. * @@ -5817,9 +5815,9 @@ public open class CfnLaunchTemplate( /** * The CPU options for the instance. * - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions) */ @@ -5837,9 +5835,9 @@ public open class CfnLaunchTemplate( /** * Indicates whether to enable the instance for stop protection. * - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-disableapistop) */ @@ -5920,9 +5918,9 @@ public open class CfnLaunchTemplate( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your - * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * . For more information, see [Hibernate your Amazon EC2 + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 + * User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-hibernationoptions) */ @@ -5943,7 +5941,7 @@ public open class CfnLaunchTemplate( * * Valid formats: * - * * `ami-17characters00000` + * * `ami-0ac394d6a3example` * * `resolve:ssm:parameter-name` * * `resolve:ssm:parameter-name:version-number` * * `resolve:ssm:parameter-name:label` @@ -6022,9 +6020,9 @@ public open class CfnLaunchTemplate( public fun instanceRequirements(): Any? = unwrap(this).getInstanceRequirements() /** - * The instance type. For more information, see [Instance + * The instance type. For more information, see [Amazon EC2 instance * types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . * * If you specify `InstanceType` , you can't specify `InstanceRequirements` . * @@ -6078,7 +6076,7 @@ public open class CfnLaunchTemplate( * * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions) */ @@ -6124,7 +6122,7 @@ public open class CfnLaunchTemplate( * We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see * [User provided * kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ramdiskid) @@ -6156,10 +6154,7 @@ public open class CfnLaunchTemplate( public fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() /** - * The tags to apply to the resources that are created during instance launch. - * - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . + * The tags to apply to resources that are created during instance launch. * * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -6173,11 +6168,9 @@ public open class CfnLaunchTemplate( * The user data to make available to the instance. * * You must provide base64-encoded text. User data is limited to 16 KB. For more information, - * see [Run commands on your Linux instance at - * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) (Linux) or [Work - * with instance user - * data](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html) - * (Windows) in the *Amazon Elastic Compute Cloud User Guide* . + * see [Run commands on your Amazon EC2 instance at + * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) in the *Amazon EC2 + * User Guide* . * * If you are creating the launch template for use with AWS Batch , the user data must be * provided in the [MIME multi-part archive @@ -6240,25 +6233,25 @@ public open class CfnLaunchTemplate( /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ public fun cpuOptions(cpuOptions: IResolvable) /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ public fun cpuOptions(cpuOptions: CpuOptionsProperty) /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("259e3b5c06cb5bf8c8108e0c786375e6a9cea676a84ba635b0c1c801565c8c24") @@ -6287,17 +6280,17 @@ public open class CfnLaunchTemplate( /** * @param disableApiStop Indicates whether to enable the instance for stop protection. - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . */ public fun disableApiStop(disableApiStop: Boolean) /** * @param disableApiStop Indicates whether to enable the instance for stop protection. - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . */ public fun disableApiStop(disableApiStop: IResolvable) @@ -6453,9 +6446,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ public fun hibernationOptions(hibernationOptions: IResolvable) @@ -6463,9 +6456,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ public fun hibernationOptions(hibernationOptions: HibernationOptionsProperty) @@ -6473,9 +6466,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("28e8f416c301f684b2caa0ff660d3316808d2aaa191bdf45a914e96dabfbc4a0") @@ -6510,7 +6503,7 @@ public open class CfnLaunchTemplate( * * Valid formats: * - * * `ami-17characters00000` + * * `ami-0ac394d6a3example` * * `resolve:ssm:parameter-name` * * `resolve:ssm:parameter-name:version-number` * * `resolve:ssm:parameter-name:label` @@ -6683,9 +6676,9 @@ public open class CfnLaunchTemplate( fun instanceRequirements(instanceRequirements: InstanceRequirementsProperty.Builder.() -> Unit) /** - * @param instanceType The instance type. For more information, see [Instance + * @param instanceType The instance type. For more information, see [Amazon EC2 instance * types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . * If you specify `InstanceType` , you can't specify `InstanceRequirements` . */ public fun instanceType(instanceType: String) @@ -6748,7 +6741,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ public fun metadataOptions(metadataOptions: IResolvable) @@ -6756,7 +6749,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ public fun metadataOptions(metadataOptions: MetadataOptionsProperty) @@ -6764,7 +6757,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ac7fc838a77a9a6a23cb745f94ea114a1de9fd91a5d1d8d5c34039bb5f711bb2") @@ -6855,7 +6848,7 @@ public open class CfnLaunchTemplate( * We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, * see [User provided * kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ public fun ramDiskId(ramDiskId: String) @@ -6896,11 +6889,8 @@ public open class CfnLaunchTemplate( public fun securityGroups(vararg securityGroups: String) /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -6908,11 +6898,8 @@ public open class CfnLaunchTemplate( public fun tagSpecifications(tagSpecifications: IResolvable) /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -6920,11 +6907,8 @@ public open class CfnLaunchTemplate( public fun tagSpecifications(tagSpecifications: List) /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -6934,11 +6918,9 @@ public open class CfnLaunchTemplate( /** * @param userData The user data to make available to the instance. * You must provide base64-encoded text. User data is limited to 16 KB. For more information, - * see [Run commands on your Linux instance at - * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) (Linux) or [Work - * with instance user - * data](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html) - * (Windows) in the *Amazon Elastic Compute Cloud User Guide* . + * see [Run commands on your Amazon EC2 instance at + * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) in the *Amazon EC2 + * User Guide* . * * If you are creating the launch template for use with AWS Batch , the user data must be * provided in the [MIME multi-part archive @@ -7011,9 +6993,9 @@ public open class CfnLaunchTemplate( /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ override fun cpuOptions(cpuOptions: IResolvable) { cdkBuilder.cpuOptions(cpuOptions.let(IResolvable.Companion::unwrap)) @@ -7021,9 +7003,9 @@ public open class CfnLaunchTemplate( /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ override fun cpuOptions(cpuOptions: CpuOptionsProperty) { cdkBuilder.cpuOptions(cpuOptions.let(CpuOptionsProperty.Companion::unwrap)) @@ -7031,9 +7013,9 @@ public open class CfnLaunchTemplate( /** * @param cpuOptions The CPU options for the instance. - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("259e3b5c06cb5bf8c8108e0c786375e6a9cea676a84ba635b0c1c801565c8c24") @@ -7068,9 +7050,9 @@ public open class CfnLaunchTemplate( /** * @param disableApiStop Indicates whether to enable the instance for stop protection. - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . */ override fun disableApiStop(disableApiStop: Boolean) { cdkBuilder.disableApiStop(disableApiStop) @@ -7078,9 +7060,9 @@ public open class CfnLaunchTemplate( /** * @param disableApiStop Indicates whether to enable the instance for stop protection. - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . */ override fun disableApiStop(disableApiStop: IResolvable) { cdkBuilder.disableApiStop(disableApiStop.let(IResolvable.Companion::unwrap)) @@ -7261,9 +7243,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ override fun hibernationOptions(hibernationOptions: IResolvable) { cdkBuilder.hibernationOptions(hibernationOptions.let(IResolvable.Companion::unwrap)) @@ -7273,9 +7255,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ override fun hibernationOptions(hibernationOptions: HibernationOptionsProperty) { cdkBuilder.hibernationOptions(hibernationOptions.let(HibernationOptionsProperty.Companion::unwrap)) @@ -7285,9 +7267,9 @@ public open class CfnLaunchTemplate( * @param hibernationOptions Indicates whether an instance is enabled for hibernation. * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("28e8f416c301f684b2caa0ff660d3316808d2aaa191bdf45a914e96dabfbc4a0") @@ -7328,7 +7310,7 @@ public open class CfnLaunchTemplate( * * Valid formats: * - * * `ami-17characters00000` + * * `ami-0ac394d6a3example` * * `resolve:ssm:parameter-name` * * `resolve:ssm:parameter-name:version-number` * * `resolve:ssm:parameter-name:label` @@ -7515,9 +7497,9 @@ public open class CfnLaunchTemplate( Unit = instanceRequirements(InstanceRequirementsProperty(instanceRequirements)) /** - * @param instanceType The instance type. For more information, see [Instance + * @param instanceType The instance type. For more information, see [Amazon EC2 instance * types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . * If you specify `InstanceType` , you can't specify `InstanceRequirements` . */ override fun instanceType(instanceType: String) { @@ -7596,7 +7578,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ override fun metadataOptions(metadataOptions: IResolvable) { cdkBuilder.metadataOptions(metadataOptions.let(IResolvable.Companion::unwrap)) @@ -7606,7 +7588,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ override fun metadataOptions(metadataOptions: MetadataOptionsProperty) { cdkBuilder.metadataOptions(metadataOptions.let(MetadataOptionsProperty.Companion::unwrap)) @@ -7616,7 +7598,7 @@ public open class CfnLaunchTemplate( * @param metadataOptions The metadata options for the instance. * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ac7fc838a77a9a6a23cb745f94ea114a1de9fd91a5d1d8d5c34039bb5f711bb2") @@ -7728,7 +7710,7 @@ public open class CfnLaunchTemplate( * We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, * see [User provided * kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ override fun ramDiskId(ramDiskId: String) { cdkBuilder.ramDiskId(ramDiskId) @@ -7777,11 +7759,8 @@ public open class CfnLaunchTemplate( securityGroups(securityGroups.toList()) /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -7791,11 +7770,8 @@ public open class CfnLaunchTemplate( } /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -7805,11 +7781,8 @@ public open class CfnLaunchTemplate( } /** - * @param tagSpecifications The tags to apply to the resources that are created during - * instance launch. - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . - * + * @param tagSpecifications The tags to apply to resources that are created during instance + * launch. * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) * . @@ -7820,11 +7793,9 @@ public open class CfnLaunchTemplate( /** * @param userData The user data to make available to the instance. * You must provide base64-encoded text. User data is limited to 16 KB. For more information, - * see [Run commands on your Linux instance at - * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) (Linux) or [Work - * with instance user - * data](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html) - * (Windows) in the *Amazon Elastic Compute Cloud User Guide* . + * see [Run commands on your Amazon EC2 instance at + * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) in the *Amazon EC2 + * User Guide* . * * If you are creating the launch template for use with AWS Batch , the user data must be * provided in the [MIME multi-part archive @@ -7844,7 +7815,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LaunchTemplateDataProperty, - ) : CdkObject(cdkObject), LaunchTemplateDataProperty { + ) : CdkObject(cdkObject), + LaunchTemplateDataProperty { /** * The block device mapping. * @@ -7867,9 +7839,9 @@ public open class CfnLaunchTemplate( /** * The CPU options for the instance. * - * For more information, see [Optimizing CPU - * Options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in - * the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Optimize CPU + * options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in + * the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions) */ @@ -7887,9 +7859,9 @@ public open class CfnLaunchTemplate( /** * Indicates whether to enable the instance for stop protection. * - * For more information, see [Stop - * protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) - * in the *Amazon Elastic Compute Cloud User Guide* . + * For more information, see [Enable stop protection for your + * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-disableapistop) */ @@ -7972,9 +7944,9 @@ public open class CfnLaunchTemplate( * * This parameter is valid only if the instance meets the [hibernation * prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html) - * . For more information, see [Hibernate your + * . For more information, see [Hibernate your Amazon EC2 * instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-hibernationoptions) */ @@ -7995,7 +7967,7 @@ public open class CfnLaunchTemplate( * * Valid formats: * - * * `ami-17characters00000` + * * `ami-0ac394d6a3example` * * `resolve:ssm:parameter-name` * * `resolve:ssm:parameter-name:version-number` * * `resolve:ssm:parameter-name:label` @@ -8074,9 +8046,9 @@ public open class CfnLaunchTemplate( override fun instanceRequirements(): Any? = unwrap(this).getInstanceRequirements() /** - * The instance type. For more information, see [Instance + * The instance type. For more information, see [Amazon EC2 instance * types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * EC2 User Guide* . * * If you specify `InstanceType` , you can't specify `InstanceRequirements` . * @@ -8131,7 +8103,7 @@ public open class CfnLaunchTemplate( * * For more information, see [Instance metadata and user * data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions) */ @@ -8177,7 +8149,7 @@ public open class CfnLaunchTemplate( * We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, * see [User provided * kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ramdiskid) @@ -8210,10 +8182,7 @@ public open class CfnLaunchTemplate( override fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() /** - * The tags to apply to the resources that are created during instance launch. - * - * To tag a resource after it has been created, see - * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . + * The tags to apply to resources that are created during instance launch. * * To tag the launch template itself, use * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -8227,11 +8196,9 @@ public open class CfnLaunchTemplate( * The user data to make available to the instance. * * You must provide base64-encoded text. User data is limited to 16 KB. For more information, - * see [Run commands on your Linux instance at - * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) (Linux) or [Work - * with instance user - * data](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html) - * (Windows) in the *Amazon Elastic Compute Cloud User Guide* . + * see [Run commands on your Amazon EC2 instance at + * launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) in the *Amazon EC2 + * User Guide* . * * If you are creating the launch template for use with AWS Batch , the user data must be * provided in the [MIME multi-part archive @@ -8352,7 +8319,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty, - ) : CdkObject(cdkObject), LaunchTemplateElasticInferenceAcceleratorProperty { + ) : CdkObject(cdkObject), + LaunchTemplateElasticInferenceAcceleratorProperty { /** * The number of elastic inference accelerators to attach to the instance. * @@ -8394,6 +8362,11 @@ public open class CfnLaunchTemplate( /** * Specifies the tags to apply to the launch template during creation. * + * To specify the tags for the resources that are created during instance launch, use + * [AWS::EC2::LaunchTemplate + * TagSpecification](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html) + * . + * * `LaunchTemplateTagSpecification` is a property of * [AWS::EC2::LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) * . @@ -8420,7 +8393,7 @@ public open class CfnLaunchTemplate( /** * The type of resource. * - * To tag the launch template, `ResourceType` must be `launch-template` . + * To tag a launch template, `ResourceType` must be `launch-template` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatetagspecification.html#cfn-ec2-launchtemplate-launchtemplatetagspecification-resourcetype) */ @@ -8440,7 +8413,7 @@ public open class CfnLaunchTemplate( public interface Builder { /** * @param resourceType The type of resource. - * To tag the launch template, `ResourceType` must be `launch-template` . + * To tag a launch template, `ResourceType` must be `launch-template` . */ public fun resourceType(resourceType: String) @@ -8463,7 +8436,7 @@ public open class CfnLaunchTemplate( /** * @param resourceType The type of resource. - * To tag the launch template, `ResourceType` must be `launch-template` . + * To tag a launch template, `ResourceType` must be `launch-template` . */ override fun resourceType(resourceType: String) { cdkBuilder.resourceType(resourceType) @@ -8488,11 +8461,12 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LaunchTemplateTagSpecificationProperty, - ) : CdkObject(cdkObject), LaunchTemplateTagSpecificationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateTagSpecificationProperty { /** * The type of resource. * - * To tag the launch template, `ResourceType` must be `launch-template` . + * To tag a launch template, `ResourceType` must be `launch-template` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatetagspecification.html#cfn-ec2-launchtemplate-launchtemplatetagspecification-resourcetype) */ @@ -8585,7 +8559,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LicenseSpecificationProperty, - ) : CdkObject(cdkObject), LicenseSpecificationProperty { + ) : CdkObject(cdkObject), + LicenseSpecificationProperty { /** * The Amazon Resource Name (ARN) of the license configuration. * @@ -8668,7 +8643,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MaintenanceOptionsProperty, - ) : CdkObject(cdkObject), MaintenanceOptionsProperty { + ) : CdkObject(cdkObject), + MaintenanceOptionsProperty { /** * Disables the automatic recovery behavior of your instance or sets it to default. * @@ -8777,7 +8753,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MemoryGiBPerVCpuProperty, - ) : CdkObject(cdkObject), MemoryGiBPerVCpuProperty { + ) : CdkObject(cdkObject), + MemoryGiBPerVCpuProperty { /** * The maximum amount of memory per vCPU, in GiB. * @@ -8896,7 +8873,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MemoryMiBProperty, - ) : CdkObject(cdkObject), MemoryMiBProperty { + ) : CdkObject(cdkObject), + MemoryMiBProperty { /** * The maximum amount of memory, in MiB. * @@ -9168,7 +9146,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MetadataOptionsProperty, - ) : CdkObject(cdkObject), MetadataOptionsProperty { + ) : CdkObject(cdkObject), + MetadataOptionsProperty { /** * Enables or disables the HTTP metadata endpoint on your instances. * @@ -9335,7 +9314,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MonitoringProperty, - ) : CdkObject(cdkObject), MonitoringProperty { + ) : CdkObject(cdkObject), + MonitoringProperty { /** * Specify `true` to enable detailed monitoring. * @@ -9457,7 +9437,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.NetworkBandwidthGbpsProperty, - ) : CdkObject(cdkObject), NetworkBandwidthGbpsProperty { + ) : CdkObject(cdkObject), + NetworkBandwidthGbpsProperty { /** * The maximum amount of network bandwidth, in Gbps. * @@ -9579,7 +9560,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.NetworkInterfaceCountProperty, - ) : CdkObject(cdkObject), NetworkInterfaceCountProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceCountProperty { /** * The maximum number of network interfaces. * @@ -9752,8 +9734,8 @@ public open class CfnLaunchTemplate( * The type of network interface. * * To create an Elastic Fabric Adapter (EFA), specify `efa` . For more information, see [Elastic - * Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the *Amazon - * Elastic Compute Cloud User Guide* . + * Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the *Amazon EC2 + * User Guide* . * * If you are not creating an EFA, specify `interface` or omit this parameter. * @@ -10000,7 +9982,7 @@ public open class CfnLaunchTemplate( * @param interfaceType The type of network interface. * To create an Elastic Fabric Adapter (EFA), specify `efa` . For more information, see * [Elastic Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * If you are not creating an EFA, specify `interface` or omit this parameter. * @@ -10301,7 +10283,7 @@ public open class CfnLaunchTemplate( * @param interfaceType The type of network interface. * To create an Elastic Fabric Adapter (EFA), specify `efa` . For more information, see * [Elastic Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * If you are not creating an EFA, specify `interface` or omit this parameter. * @@ -10497,7 +10479,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * Associates a Carrier IP address with eth0 for a new network interface. * @@ -10574,7 +10557,7 @@ public open class CfnLaunchTemplate( * * To create an Elastic Fabric Adapter (EFA), specify `efa` . For more information, see * [Elastic Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * If you are not creating an EFA, specify `interface` or omit this parameter. * @@ -10956,7 +10939,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.PlacementProperty, - ) : CdkObject(cdkObject), PlacementProperty { + ) : CdkObject(cdkObject), + PlacementProperty { /** * The affinity setting for an instance on a Dedicated Host. * @@ -11202,7 +11186,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.PrivateDnsNameOptionsProperty, - ) : CdkObject(cdkObject), PrivateDnsNameOptionsProperty { + ) : CdkObject(cdkObject), + PrivateDnsNameOptionsProperty { /** * Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -11351,7 +11336,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.PrivateIpAddProperty, - ) : CdkObject(cdkObject), PrivateIpAddProperty { + ) : CdkObject(cdkObject), + PrivateIpAddProperty { /** * Indicates whether the private IPv4 address is the primary private IPv4 address. * @@ -11581,7 +11567,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.SpotOptionsProperty, - ) : CdkObject(cdkObject), SpotOptionsProperty { + ) : CdkObject(cdkObject), + SpotOptionsProperty { /** * Deprecated. * @@ -11660,7 +11647,7 @@ public open class CfnLaunchTemplate( } /** - * Specifies the tags to apply to a resource when the resource is created for the launch template. + * Specifies the tags to apply to resources that are created during instance launch. * * `TagSpecification` is a property type of * [`TagSpecifications`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) @@ -11691,11 +11678,10 @@ public open class CfnLaunchTemplate( /** * The type of resource to tag. * - * Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a - * launch template, you can specify tags for the following resource types only: `instance` | - * `volume` | `network-interface` | `spot-instances-request` . If the instance does not include the - * resource type that you specify, the instance launch fails. For example, not all instance types - * include a volume. + * You can specify tags for the following resource types only: `instance` | `volume` | + * `network-interface` | `spot-instances-request` . If the instance does not include the resource + * type that you specify, the instance launch fails. For example, not all instance types include a + * volume. * * To tag a resource after it has been created, see * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . @@ -11718,11 +11704,10 @@ public open class CfnLaunchTemplate( public interface Builder { /** * @param resourceType The type of resource to tag. - * Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a - * launch template, you can specify tags for the following resource types only: `instance` | - * `volume` | `network-interface` | `spot-instances-request` . If the instance does not include - * the resource type that you specify, the instance launch fails. For example, not all instance - * types include a volume. + * You can specify tags for the following resource types only: `instance` | `volume` | + * `network-interface` | `spot-instances-request` . If the instance does not include the resource + * type that you specify, the instance launch fails. For example, not all instance types include + * a volume. * * To tag a resource after it has been created, see * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . @@ -11747,11 +11732,10 @@ public open class CfnLaunchTemplate( /** * @param resourceType The type of resource to tag. - * Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a - * launch template, you can specify tags for the following resource types only: `instance` | - * `volume` | `network-interface` | `spot-instances-request` . If the instance does not include - * the resource type that you specify, the instance launch fails. For example, not all instance - * types include a volume. + * You can specify tags for the following resource types only: `instance` | `volume` | + * `network-interface` | `spot-instances-request` . If the instance does not include the resource + * type that you specify, the instance launch fails. For example, not all instance types include + * a volume. * * To tag a resource after it has been created, see * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . @@ -11779,15 +11763,15 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.TagSpecificationProperty, - ) : CdkObject(cdkObject), TagSpecificationProperty { + ) : CdkObject(cdkObject), + TagSpecificationProperty { /** * The type of resource to tag. * - * Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a - * launch template, you can specify tags for the following resource types only: `instance` | - * `volume` | `network-interface` | `spot-instances-request` . If the instance does not include - * the resource type that you specify, the instance launch fails. For example, not all instance - * types include a volume. + * You can specify tags for the following resource types only: `instance` | `volume` | + * `network-interface` | `spot-instances-request` . If the instance does not include the resource + * type that you specify, the instance launch fails. For example, not all instance types include + * a volume. * * To tag a resource after it has been created, see * [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html) . @@ -11905,7 +11889,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.TotalLocalStorageGBProperty, - ) : CdkObject(cdkObject), TotalLocalStorageGBProperty { + ) : CdkObject(cdkObject), + TotalLocalStorageGBProperty { /** * The maximum amount of total local storage, in GB. * @@ -12024,7 +12009,8 @@ public open class CfnLaunchTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplate.VCpuCountProperty, - ) : CdkObject(cdkObject), VCpuCountProperty { + ) : CdkObject(cdkObject), + VCpuCountProperty { /** * The maximum number of vCPUs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplateProps.kt index 6ac4954358..9ccef05ae9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLaunchTemplateProps.kt @@ -59,9 +59,8 @@ public interface CfnLaunchTemplateProps { * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) @@ -107,9 +106,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ public fun tagSpecifications(tagSpecifications: IResolvable) @@ -118,9 +116,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ public fun tagSpecifications(tagSpecifications: List) @@ -129,9 +126,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ public fun tagSpecifications(vararg tagSpecifications: Any) @@ -181,9 +177,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ override fun tagSpecifications(tagSpecifications: IResolvable) { @@ -194,9 +189,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ override fun tagSpecifications(tagSpecifications: List) { @@ -207,9 +201,8 @@ public interface CfnLaunchTemplateProps { * @param tagSpecifications The tags to apply to the launch template on creation. * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . */ override fun tagSpecifications(vararg tagSpecifications: Any): Unit = @@ -228,7 +221,8 @@ public interface CfnLaunchTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLaunchTemplateProps, - ) : CdkObject(cdkObject), CfnLaunchTemplateProps { + ) : CdkObject(cdkObject), + CfnLaunchTemplateProps { /** * The information for the launch template. * @@ -248,9 +242,8 @@ public interface CfnLaunchTemplateProps { * * To tag the launch template, the resource type must be `launch-template` . * - * To specify the tags for the resources that are created when an instance is launched, you must - * use - * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) + * To specify the tags for resources that are created during instance launch, use + * [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications) * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRoute.kt index eefd59d00b..461d77f549 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRoute.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocalGatewayRoute( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteProps.kt index 9a2517973b..f4b3cf7608 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteProps.kt @@ -122,7 +122,8 @@ public interface CfnLocalGatewayRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteProps, - ) : CdkObject(cdkObject), CfnLocalGatewayRouteProps { + ) : CdkObject(cdkObject), + CfnLocalGatewayRouteProps { /** * The CIDR block used for destination matches. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTable.kt index cc78046949..97c38056c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTable.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocalGatewayRouteTable( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableProps.kt index 9d77e47704..edf47a00e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableProps.kt @@ -118,7 +118,8 @@ public interface CfnLocalGatewayRouteTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTableProps, - ) : CdkObject(cdkObject), CfnLocalGatewayRouteTableProps { + ) : CdkObject(cdkObject), + CfnLocalGatewayRouteTableProps { /** * The ID of the local gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociation.kt index 47ba7de777..5559fa2feb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociation.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocalGatewayRouteTableVPCAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTableVPCAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociationProps.kt index 2282f49a2f..83b2e1f368 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVPCAssociationProps.kt @@ -119,7 +119,8 @@ public interface CfnLocalGatewayRouteTableVPCAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTableVPCAssociationProps, - ) : CdkObject(cdkObject), CfnLocalGatewayRouteTableVPCAssociationProps { + ) : CdkObject(cdkObject), + CfnLocalGatewayRouteTableVPCAssociationProps { /** * The ID of the local gateway route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation.kt index bda29b1716..f7086dfc87 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps.kt index c4e2611fdd..d5528faf1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps.kt @@ -121,7 +121,8 @@ public interface CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps, - ) : CdkObject(cdkObject), CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps { + ) : CdkObject(cdkObject), + CfnLocalGatewayRouteTableVirtualInterfaceGroupAssociationProps { /** * The ID of the local gateway route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGateway.kt index cdf8174199..d85fc8b772 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGateway.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNatGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnNatGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGatewayProps.kt index 5111b65c2a..1e1d7b756b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNatGatewayProps.kt @@ -357,7 +357,8 @@ public interface CfnNatGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNatGatewayProps, - ) : CdkObject(cdkObject), CfnNatGatewayProps { + ) : CdkObject(cdkObject), + CfnNatGatewayProps { /** * [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with * the NAT gateway. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAcl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAcl.kt index 5ec7287684..fe47a258b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAcl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAcl.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkAcl( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAcl, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntry.kt index 6e7e5343b5..92205e78df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntry.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkAclEntry( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAclEntry, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -689,7 +690,8 @@ public open class CfnNetworkAclEntry( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.IcmpProperty, - ) : CdkObject(cdkObject), IcmpProperty { + ) : CdkObject(cdkObject), + IcmpProperty { /** * The Internet Control Message Protocol (ICMP) code. * @@ -809,7 +811,8 @@ public open class CfnNetworkAclEntry( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.PortRangeProperty, - ) : CdkObject(cdkObject), PortRangeProperty { + ) : CdkObject(cdkObject), + PortRangeProperty { /** * The first port in the range. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntryProps.kt index e6351c9f65..92e9e3df18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclEntryProps.kt @@ -357,7 +357,8 @@ public interface CfnNetworkAclEntryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAclEntryProps, - ) : CdkObject(cdkObject), CfnNetworkAclEntryProps { + ) : CdkObject(cdkObject), + CfnNetworkAclEntryProps { /** * The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). You must * specify an IPv4 CIDR block or an IPv6 CIDR block. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclProps.kt index df4b75f6d7..437af97d59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkAclProps.kt @@ -95,7 +95,8 @@ public interface CfnNetworkAclProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkAclProps, - ) : CdkObject(cdkObject), CfnNetworkAclProps { + ) : CdkObject(cdkObject), + CfnNetworkAclProps { /** * The tags for the network ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScope.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScope.kt index 0403518381..991da80d34 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScope.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScope.kt @@ -126,7 +126,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInsightsAccessScope( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -633,7 +635,8 @@ public open class CfnNetworkInsightsAccessScope( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.AccessScopePathRequestProperty, - ) : CdkObject(cdkObject), AccessScopePathRequestProperty { + ) : CdkObject(cdkObject), + AccessScopePathRequestProperty { /** * The destination. * @@ -928,7 +931,8 @@ public open class CfnNetworkInsightsAccessScope( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty, - ) : CdkObject(cdkObject), PacketHeaderStatementRequestProperty { + ) : CdkObject(cdkObject), + PacketHeaderStatementRequestProperty { /** * The destination addresses. * @@ -1149,7 +1153,8 @@ public open class CfnNetworkInsightsAccessScope( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.PathStatementRequestProperty, - ) : CdkObject(cdkObject), PathStatementRequestProperty { + ) : CdkObject(cdkObject), + PathStatementRequestProperty { /** * The packet header statement. * @@ -1280,7 +1285,8 @@ public open class CfnNetworkInsightsAccessScope( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.ResourceStatementRequestProperty, - ) : CdkObject(cdkObject), ResourceStatementRequestProperty { + ) : CdkObject(cdkObject), + ResourceStatementRequestProperty { /** * The resource types. * @@ -1402,7 +1408,8 @@ public open class CfnNetworkInsightsAccessScope( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope.ThroughResourcesStatementRequestProperty, - ) : CdkObject(cdkObject), ThroughResourcesStatementRequestProperty { + ) : CdkObject(cdkObject), + ThroughResourcesStatementRequestProperty { /** * The resource statement. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysis.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysis.kt index 6dc7f1fba5..a5f0de6227 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysis.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysis.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInsightsAccessScopeAnalysis( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScopeAnalysis, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysisProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysisProps.kt index 346815dd1e..2ace844ca0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysisProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeAnalysisProps.kt @@ -99,7 +99,8 @@ public interface CfnNetworkInsightsAccessScopeAnalysisProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScopeAnalysisProps, - ) : CdkObject(cdkObject), CfnNetworkInsightsAccessScopeAnalysisProps { + ) : CdkObject(cdkObject), + CfnNetworkInsightsAccessScopeAnalysisProps { /** * The ID of the Network Access Scope. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeProps.kt index 63d9673d35..f5465533d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAccessScopeProps.kt @@ -236,7 +236,8 @@ public interface CfnNetworkInsightsAccessScopeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScopeProps, - ) : CdkObject(cdkObject), CfnNetworkInsightsAccessScopeProps { + ) : CdkObject(cdkObject), + CfnNetworkInsightsAccessScopeProps { /** * The paths to exclude. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysis.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysis.kt index af37721dd2..fe11725012 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysis.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysis.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInsightsAnalysis( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -552,7 +554,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AdditionalDetailProperty, - ) : CdkObject(cdkObject), AdditionalDetailProperty { + ) : CdkObject(cdkObject), + AdditionalDetailProperty { /** * The additional detail code. * @@ -675,7 +678,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AlternatePathHintProperty, - ) : CdkObject(cdkObject), AlternatePathHintProperty { + ) : CdkObject(cdkObject), + AlternatePathHintProperty { /** * The Amazon Resource Name (ARN) of the component. * @@ -906,7 +910,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisAclRuleProperty, - ) : CdkObject(cdkObject), AnalysisAclRuleProperty { + ) : CdkObject(cdkObject), + AnalysisAclRuleProperty { /** * The IPv4 address range, in CIDR notation. * @@ -1043,7 +1048,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisComponentProperty, - ) : CdkObject(cdkObject), AnalysisComponentProperty { + ) : CdkObject(cdkObject), + AnalysisComponentProperty { /** * The Amazon Resource Name (ARN) of the component. * @@ -1153,7 +1159,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisLoadBalancerListenerProperty, - ) : CdkObject(cdkObject), AnalysisLoadBalancerListenerProperty { + ) : CdkObject(cdkObject), + AnalysisLoadBalancerListenerProperty { /** * [Classic Load Balancers] The back-end port for the listener. * @@ -1334,7 +1341,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisLoadBalancerTargetProperty, - ) : CdkObject(cdkObject), AnalysisLoadBalancerTargetProperty { + ) : CdkObject(cdkObject), + AnalysisLoadBalancerTargetProperty { /** * The IP address. * @@ -1597,7 +1605,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisPacketHeaderProperty, - ) : CdkObject(cdkObject), AnalysisPacketHeaderProperty { + ) : CdkObject(cdkObject), + AnalysisPacketHeaderProperty { /** * The destination addresses. * @@ -1690,7 +1699,7 @@ public open class CfnNetworkInsightsAnalysis( public fun destinationCidr(): String? = unwrap(this).getDestinationCidr() /** - * The prefix of the AWS service . + * The prefix of the AWS service. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-analysisroutetableroute.html#cfn-ec2-networkinsightsanalysis-analysisroutetableroute-destinationprefixlistid) */ @@ -1778,7 +1787,7 @@ public open class CfnNetworkInsightsAnalysis( public fun destinationCidr(destinationCidr: String) /** - * @param destinationPrefixListId The prefix of the AWS service . + * @param destinationPrefixListId The prefix of the AWS service. */ public fun destinationPrefixListId(destinationPrefixListId: String) @@ -1848,7 +1857,7 @@ public open class CfnNetworkInsightsAnalysis( } /** - * @param destinationPrefixListId The prefix of the AWS service . + * @param destinationPrefixListId The prefix of the AWS service. */ override fun destinationPrefixListId(destinationPrefixListId: String) { cdkBuilder.destinationPrefixListId(destinationPrefixListId) @@ -1930,7 +1939,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty, - ) : CdkObject(cdkObject), AnalysisRouteTableRouteProperty { + ) : CdkObject(cdkObject), + AnalysisRouteTableRouteProperty { /** * The destination IPv4 address, in CIDR notation. * @@ -1939,7 +1949,7 @@ public open class CfnNetworkInsightsAnalysis( override fun destinationCidr(): String? = unwrap(this).getDestinationCidr() /** - * The prefix of the AWS service . + * The prefix of the AWS service. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-analysisroutetableroute.html#cfn-ec2-networkinsightsanalysis-analysisroutetableroute-destinationprefixlistid) */ @@ -2228,7 +2238,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.AnalysisSecurityGroupRuleProperty, - ) : CdkObject(cdkObject), AnalysisSecurityGroupRuleProperty { + ) : CdkObject(cdkObject), + AnalysisSecurityGroupRuleProperty { /** * The IPv4 address range, in CIDR notation. * @@ -4500,7 +4511,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.ExplanationProperty, - ) : CdkObject(cdkObject), ExplanationProperty { + ) : CdkObject(cdkObject), + ExplanationProperty { /** * The network ACL. * @@ -5955,7 +5967,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.PathComponentProperty, - ) : CdkObject(cdkObject), PathComponentProperty { + ) : CdkObject(cdkObject), + PathComponentProperty { /** * The network ACL rule. * @@ -6170,7 +6183,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.PortRangeProperty, - ) : CdkObject(cdkObject), PortRangeProperty { + ) : CdkObject(cdkObject), + PortRangeProperty { /** * The first port in the range. * @@ -6387,7 +6401,8 @@ public open class CfnNetworkInsightsAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty, - ) : CdkObject(cdkObject), TransitGatewayRouteTableRouteProperty { + ) : CdkObject(cdkObject), + TransitGatewayRouteTableRouteProperty { /** * The ID of the route attachment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysisProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysisProps.kt index a94bb2ae52..f519a0177c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysisProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsAnalysisProps.kt @@ -169,7 +169,8 @@ public interface CfnNetworkInsightsAnalysisProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsAnalysisProps, - ) : CdkObject(cdkObject), CfnNetworkInsightsAnalysisProps { + ) : CdkObject(cdkObject), + CfnNetworkInsightsAnalysisProps { /** * The member accounts that contain resources that the path can traverse. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPath.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPath.kt index 713da45b2e..785a80c112 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPath.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPath.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInsightsPath( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsPath, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -705,7 +707,8 @@ public open class CfnNetworkInsightsPath( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsPath.FilterPortRangeProperty, - ) : CdkObject(cdkObject), FilterPortRangeProperty { + ) : CdkObject(cdkObject), + FilterPortRangeProperty { /** * The first port in the range. * @@ -917,7 +920,8 @@ public open class CfnNetworkInsightsPath( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsPath.PathFilterProperty, - ) : CdkObject(cdkObject), PathFilterProperty { + ) : CdkObject(cdkObject), + PathFilterProperty { /** * The destination IPv4 address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPathProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPathProps.kt index 3b61c573aa..ebf2f9c8e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPathProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInsightsPathProps.kt @@ -370,7 +370,8 @@ public interface CfnNetworkInsightsPathProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInsightsPathProps, - ) : CdkObject(cdkObject), CfnNetworkInsightsPathProps { + ) : CdkObject(cdkObject), + CfnNetworkInsightsPathProps { /** * The ID or ARN of the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterface.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterface.kt index 8a03063917..e93ac2d3fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterface.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterface.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInterface( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1451,7 +1453,8 @@ public open class CfnNetworkInterface( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface.ConnectionTrackingSpecificationProperty, - ) : CdkObject(cdkObject), ConnectionTrackingSpecificationProperty { + ) : CdkObject(cdkObject), + ConnectionTrackingSpecificationProperty { /** * Timeout (in seconds) for idle TCP connections in an established state. * @@ -1557,7 +1560,8 @@ public open class CfnNetworkInterface( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface.InstanceIpv6AddressProperty, - ) : CdkObject(cdkObject), InstanceIpv6AddressProperty { + ) : CdkObject(cdkObject), + InstanceIpv6AddressProperty { /** * An IPv6 address to associate with the network interface. * @@ -1605,9 +1609,9 @@ public open class CfnNetworkInterface( /** * The IPv4 prefix. * - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-ipv4prefixspecification.html#cfn-ec2-networkinterface-ipv4prefixspecification-ipv4prefix) */ @@ -1620,9 +1624,9 @@ public open class CfnNetworkInterface( public interface Builder { /** * @param ipv4Prefix The IPv4 prefix. - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ public fun ipv4Prefix(ipv4Prefix: String) } @@ -1635,9 +1639,9 @@ public open class CfnNetworkInterface( /** * @param ipv4Prefix The IPv4 prefix. - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . */ override fun ipv4Prefix(ipv4Prefix: String) { cdkBuilder.ipv4Prefix(ipv4Prefix) @@ -1650,13 +1654,14 @@ public open class CfnNetworkInterface( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface.Ipv4PrefixSpecificationProperty, - ) : CdkObject(cdkObject), Ipv4PrefixSpecificationProperty { + ) : CdkObject(cdkObject), + Ipv4PrefixSpecificationProperty { /** * The IPv4 prefix. * - * For information, see [Assigning prefixes to Amazon EC2 network + * For information, see [Assigning prefixes to network * interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the - * *Amazon Elastic Compute Cloud User Guide* . + * *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-ipv4prefixspecification.html#cfn-ec2-networkinterface-ipv4prefixspecification-ipv4prefix) */ @@ -1747,7 +1752,8 @@ public open class CfnNetworkInterface( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface.Ipv6PrefixSpecificationProperty, - ) : CdkObject(cdkObject), Ipv6PrefixSpecificationProperty { + ) : CdkObject(cdkObject), + Ipv6PrefixSpecificationProperty { /** * The IPv6 prefix. * @@ -1877,7 +1883,8 @@ public open class CfnNetworkInterface( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty, - ) : CdkObject(cdkObject), PrivateIpAddressSpecificationProperty { + ) : CdkObject(cdkObject), + PrivateIpAddressSpecificationProperty { /** * Sets the private IP address as the primary private address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachment.kt index 883eb6d65e..75d25b9b46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachment.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInterfaceAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -508,7 +509,8 @@ public open class CfnNetworkInterfaceAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachment.EnaSrdSpecificationProperty, - ) : CdkObject(cdkObject), EnaSrdSpecificationProperty { + ) : CdkObject(cdkObject), + EnaSrdSpecificationProperty { /** * Indicates whether ENA Express is enabled for the network interface. * @@ -625,7 +627,8 @@ public open class CfnNetworkInterfaceAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachment.EnaSrdUdpSpecificationProperty, - ) : CdkObject(cdkObject), EnaSrdUdpSpecificationProperty { + ) : CdkObject(cdkObject), + EnaSrdUdpSpecificationProperty { /** * Indicates whether UDP traffic to and from the instance uses ENA Express. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachmentProps.kt index a8e79e6e39..63876cbe80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceAttachmentProps.kt @@ -218,7 +218,8 @@ public interface CfnNetworkInterfaceAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachmentProps, - ) : CdkObject(cdkObject), CfnNetworkInterfaceAttachmentProps { + ) : CdkObject(cdkObject), + CfnNetworkInterfaceAttachmentProps { /** * Whether to delete the network interface when the instance terminates. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermission.kt index a82b3f9e4e..db84e40af6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermission.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkInterfacePermission( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfacePermission, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermissionProps.kt index c0553db918..5afc8a823b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfacePermissionProps.kt @@ -102,7 +102,8 @@ public interface CfnNetworkInterfacePermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfacePermissionProps, - ) : CdkObject(cdkObject), CfnNetworkInterfacePermissionProps { + ) : CdkObject(cdkObject), + CfnNetworkInterfacePermissionProps { /** * The AWS account ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceProps.kt index 2929203d47..aed73b14c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkInterfaceProps.kt @@ -870,7 +870,8 @@ public interface CfnNetworkInterfaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkInterfaceProps, - ) : CdkObject(cdkObject), CfnNetworkInterfaceProps { + ) : CdkObject(cdkObject), + CfnNetworkInterfaceProps { /** * A connection tracking specification for the network interface. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscription.kt index 33630873c5..158f82967e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscription.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkPerformanceMetricSubscription( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkPerformanceMetricSubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscriptionProps.kt index 99841e9822..234aefae20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnNetworkPerformanceMetricSubscriptionProps.kt @@ -131,7 +131,8 @@ public interface CfnNetworkPerformanceMetricSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnNetworkPerformanceMetricSubscriptionProps, - ) : CdkObject(cdkObject), CfnNetworkPerformanceMetricSubscriptionProps { + ) : CdkObject(cdkObject), + CfnNetworkPerformanceMetricSubscriptionProps { /** * The Region or Availability Zone that's the target for the subscription. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroup.kt index d2002deabf..bcfe403063 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroup.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlacementGroup( cdkObject: software.amazon.awscdk.services.ec2.CfnPlacementGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnPlacementGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroupProps.kt index 729958346c..4d5c80c70b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPlacementGroupProps.kt @@ -147,7 +147,8 @@ public interface CfnPlacementGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnPlacementGroupProps, - ) : CdkObject(cdkObject), CfnPlacementGroupProps { + ) : CdkObject(cdkObject), + CfnPlacementGroupProps { /** * The number of partitions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixList.kt index 0c068f2351..843c13878b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixList.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrefixList( cdkObject: software.amazon.awscdk.services.ec2.CfnPrefixList, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -111,26 +113,26 @@ public open class CfnPrefixList( public open fun attrVersion(): Number = unwrap(this).getAttrVersion() /** - * One or more entries for the prefix list. + * The entries for the prefix list. */ public open fun entries(): Any? = unwrap(this).getEntries() /** - * One or more entries for the prefix list. + * The entries for the prefix list. */ public open fun entries(`value`: IResolvable) { unwrap(this).setEntries(`value`.let(IResolvable.Companion::unwrap)) } /** - * One or more entries for the prefix list. + * The entries for the prefix list. */ public open fun entries(`value`: List) { unwrap(this).setEntries(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * One or more entries for the prefix list. + * The entries for the prefix list. */ public open fun entries(vararg `value`: Any): Unit = entries(`value`.toList()) @@ -206,32 +208,34 @@ public open class CfnPrefixList( public fun addressFamily(addressFamily: String) /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(entries: IResolvable) /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(entries: List) /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(vararg entries: Any) /** * The maximum number of entries for the prefix list. * + * This property is required when you create a prefix list. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-maxentries) * @param maxEntries The maximum number of entries for the prefix list. */ @@ -284,36 +288,38 @@ public open class CfnPrefixList( } /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(entries: IResolvable) { cdkBuilder.entries(entries.let(IResolvable.Companion::unwrap)) } /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(entries: List) { cdkBuilder.entries(entries.map{CdkObjectWrappers.unwrap(it)}) } /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(vararg entries: Any): Unit = entries(entries.toList()) /** * The maximum number of entries for the prefix list. * + * This property is required when you create a prefix list. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-maxentries) * @param maxEntries The maximum number of entries for the prefix list. */ @@ -452,7 +458,8 @@ public open class CfnPrefixList( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnPrefixList.EntryProperty, - ) : CdkObject(cdkObject), EntryProperty { + ) : CdkObject(cdkObject), + EntryProperty { /** * The CIDR block. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixListProps.kt index b6e905f935..8eccd8f8a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnPrefixListProps.kt @@ -52,7 +52,7 @@ public interface CfnPrefixListProps { public fun addressFamily(): String /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) */ @@ -61,6 +61,8 @@ public interface CfnPrefixListProps { /** * The maximum number of entries for the prefix list. * + * This property is required when you create a prefix list. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-maxentries) */ public fun maxEntries(): Number? = unwrap(this).getMaxEntries() @@ -93,22 +95,23 @@ public interface CfnPrefixListProps { public fun addressFamily(addressFamily: String) /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(entries: IResolvable) /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(entries: List) /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ public fun entries(vararg entries: Any) /** * @param maxEntries The maximum number of entries for the prefix list. + * This property is required when you create a prefix list. */ public fun maxEntries(maxEntries: Number) @@ -142,26 +145,27 @@ public interface CfnPrefixListProps { } /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(entries: IResolvable) { cdkBuilder.entries(entries.let(IResolvable.Companion::unwrap)) } /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(entries: List) { cdkBuilder.entries(entries.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param entries One or more entries for the prefix list. + * @param entries The entries for the prefix list. */ override fun entries(vararg entries: Any): Unit = entries(entries.toList()) /** * @param maxEntries The maximum number of entries for the prefix list. + * This property is required when you create a prefix list. */ override fun maxEntries(maxEntries: Number) { cdkBuilder.maxEntries(maxEntries) @@ -192,7 +196,8 @@ public interface CfnPrefixListProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnPrefixListProps, - ) : CdkObject(cdkObject), CfnPrefixListProps { + ) : CdkObject(cdkObject), + CfnPrefixListProps { /** * The IP address type. * @@ -203,7 +208,7 @@ public interface CfnPrefixListProps { override fun addressFamily(): String = unwrap(this).getAddressFamily() /** - * One or more entries for the prefix list. + * The entries for the prefix list. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries) */ @@ -212,6 +217,8 @@ public interface CfnPrefixListProps { /** * The maximum number of entries for the prefix list. * + * This property is required when you create a prefix list. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-maxentries) */ override fun maxEntries(): Number? = unwrap(this).getMaxEntries() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRoute.kt index 124cb316e7..9f915f9b45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRoute.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoute( cdkObject: software.amazon.awscdk.services.ec2.CfnRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteProps.kt index f77807ee77..2c595840fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteProps.kt @@ -376,7 +376,8 @@ public interface CfnRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnRouteProps, - ) : CdkObject(cdkObject), CfnRouteProps { + ) : CdkObject(cdkObject), + CfnRouteProps { /** * The ID of the carrier gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTable.kt index e67f144509..33c20e75c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTable.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRouteTable( cdkObject: software.amazon.awscdk.services.ec2.CfnRouteTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTableProps.kt index bf15932fd3..32223f6bb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnRouteTableProps.kt @@ -95,7 +95,8 @@ public interface CfnRouteTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnRouteTableProps, - ) : CdkObject(cdkObject), CfnRouteTableProps { + ) : CdkObject(cdkObject), + CfnRouteTableProps { /** * Any tags assigned to the route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroup.kt index 7e3f9b5d78..23d75891e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroup.kt @@ -93,7 +93,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityGroup( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -111,7 +113,7 @@ public open class CfnSecurityGroup( ) /** - * The group ID of the specified security group, such as `sg-94b3a1f6` . + * The ID of the security group, such as `sg-94b3a1f6` . */ public open fun attrGroupId(): String = unwrap(this).getAttrGroupId() @@ -121,11 +123,7 @@ public open class CfnSecurityGroup( public open fun attrId(): String = unwrap(this).getAttrId() /** - * The physical ID of the VPC. - * - * You can obtain the physical ID by using a reference to an - * [AWS::EC2::VPC](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html) - * , such as: `{ "Ref" : "myVPC" }` . + * The ID of the VPC, such as `vpc-0669f8f9` . */ public open fun attrVpcId(): String = unwrap(this).getAttrVpcId() @@ -842,7 +840,8 @@ public open class CfnSecurityGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroup.EgressProperty, - ) : CdkObject(cdkObject), EgressProperty { + ) : CdkObject(cdkObject), + EgressProperty { /** * The IPv4 address range, in CIDR format. * @@ -1342,7 +1341,8 @@ public open class CfnSecurityGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroup.IngressProperty, - ) : CdkObject(cdkObject), IngressProperty { + ) : CdkObject(cdkObject), + IngressProperty { /** * The IPv4 address range, in CIDR format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgress.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgress.kt index 65143e166e..72f9438405 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgress.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgress.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityGroupEgress( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroupEgress, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgressProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgressProps.kt index 1c25187c37..69e852d650 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgressProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupEgressProps.kt @@ -338,7 +338,8 @@ public interface CfnSecurityGroupEgressProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroupEgressProps, - ) : CdkObject(cdkObject), CfnSecurityGroupEgressProps { + ) : CdkObject(cdkObject), + CfnSecurityGroupEgressProps { /** * The IPv4 address range, in CIDR format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngress.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngress.kt index ce42971037..23fba286e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngress.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngress.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityGroupIngress( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroupIngress, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngressProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngressProps.kt index 1c5ece58de..9c915398ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngressProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupIngressProps.kt @@ -450,7 +450,8 @@ public interface CfnSecurityGroupIngressProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroupIngressProps, - ) : CdkObject(cdkObject), CfnSecurityGroupIngressProps { + ) : CdkObject(cdkObject), + CfnSecurityGroupIngressProps { /** * The IPv4 address range, in CIDR format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupProps.kt index d2bd276d9f..aeb6f53038 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSecurityGroupProps.kt @@ -289,7 +289,8 @@ public interface CfnSecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSecurityGroupProps, - ) : CdkObject(cdkObject), CfnSecurityGroupProps { + ) : CdkObject(cdkObject), + CfnSecurityGroupProps { /** * A description for the security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccess.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccess.kt index 5a7ffd62ca..3e3a1de4c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccess.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccess.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSnapshotBlockPublicAccess( cdkObject: software.amazon.awscdk.services.ec2.CfnSnapshotBlockPublicAccess, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccessProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccessProps.kt index 170f24d50f..8e9060011c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccessProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSnapshotBlockPublicAccessProps.kt @@ -114,7 +114,8 @@ public interface CfnSnapshotBlockPublicAccessProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSnapshotBlockPublicAccessProps, - ) : CdkObject(cdkObject), CfnSnapshotBlockPublicAccessProps { + ) : CdkObject(cdkObject), + CfnSnapshotBlockPublicAccessProps { /** * The mode in which to enable block public access for snapshots for the Region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleet.kt index 71ec05041f..787fb44a23 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleet.kt @@ -295,7 +295,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSpotFleet( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -541,7 +542,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.AcceleratorCountRequestProperty, - ) : CdkObject(cdkObject), AcceleratorCountRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorCountRequestProperty { /** * The maximum number of accelerators. * @@ -664,7 +666,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty, - ) : CdkObject(cdkObject), AcceleratorTotalMemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + AcceleratorTotalMemoryMiBRequestProperty { /** * The maximum amount of accelerator memory, in MiB. * @@ -791,7 +794,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty, - ) : CdkObject(cdkObject), BaselineEbsBandwidthMbpsRequestProperty { + ) : CdkObject(cdkObject), + BaselineEbsBandwidthMbpsRequestProperty { /** * The maximum baseline bandwidth, in Mbps. * @@ -1028,7 +1032,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.BlockDeviceMappingProperty, - ) : CdkObject(cdkObject), BlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + BlockDeviceMappingProperty { /** * The device name (for example, `/dev/sdh` or `xvdh` ). * @@ -1145,7 +1150,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.ClassicLoadBalancerProperty, - ) : CdkObject(cdkObject), ClassicLoadBalancerProperty { + ) : CdkObject(cdkObject), + ClassicLoadBalancerProperty { /** * The name of the load balancer. * @@ -1255,7 +1261,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.ClassicLoadBalancersConfigProperty, - ) : CdkObject(cdkObject), ClassicLoadBalancersConfigProperty { + ) : CdkObject(cdkObject), + ClassicLoadBalancersConfigProperty { /** * One or more Classic Load Balancers. * @@ -1659,7 +1666,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.EbsBlockDeviceProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceProperty { /** * Indicates whether the EBS volume is deleted on instance termination. * @@ -1917,7 +1925,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), FleetLaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + FleetLaunchTemplateSpecificationProperty { /** * The ID of the launch template. * @@ -2022,7 +2031,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.GroupIdentifierProperty, - ) : CdkObject(cdkObject), GroupIdentifierProperty { + ) : CdkObject(cdkObject), + GroupIdentifierProperty { /** * The ID of the security group. * @@ -2105,7 +2115,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.IamInstanceProfileSpecificationProperty, - ) : CdkObject(cdkObject), IamInstanceProfileSpecificationProperty { + ) : CdkObject(cdkObject), + IamInstanceProfileSpecificationProperty { /** * The Amazon Resource Name (ARN) of the instance profile. * @@ -2187,7 +2198,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.InstanceIpv6AddressProperty, - ) : CdkObject(cdkObject), InstanceIpv6AddressProperty { + ) : CdkObject(cdkObject), + InstanceIpv6AddressProperty { /** * The IPv6 address. * @@ -2713,7 +2725,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty, - ) : CdkObject(cdkObject), InstanceNetworkInterfaceSpecificationProperty { + ) : CdkObject(cdkObject), + InstanceNetworkInterfaceSpecificationProperty { /** * Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. * @@ -3204,8 +3217,8 @@ public open class CfnSpotFleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -3753,8 +3766,8 @@ public open class CfnSpotFleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4431,8 +4444,8 @@ public open class CfnSpotFleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -4713,7 +4726,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.InstanceRequirementsRequestProperty, - ) : CdkObject(cdkObject), InstanceRequirementsRequestProperty { + ) : CdkObject(cdkObject), + InstanceRequirementsRequestProperty { /** * The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an * instance. @@ -4963,8 +4977,8 @@ public open class CfnSpotFleet( * * The parameter accepts an integer, which Amazon EC2 interprets as a percentage. * - * If you set `DesiredCapacityType` to `vcpu` or `memory-mib` , the price protection threshold - * is based on the per vCPU or per memory price instead of the per instance price. + * If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib` , the price protection + * threshold is based on the per vCPU or per memory price instead of the per instance price. * * * Only one of `SpotMaxPricePercentageOverLowestPrice` or @@ -5354,7 +5368,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.LaunchTemplateConfigProperty, - ) : CdkObject(cdkObject), LaunchTemplateConfigProperty { + ) : CdkObject(cdkObject), + LaunchTemplateConfigProperty { /** * The launch template to use. * @@ -5541,8 +5556,14 @@ public open class CfnSpotFleet( /** * The number of units provided by the specified instance type. * + * These are the same units that you chose to set the target capacity in terms of instances, or + * a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is 1. * - * When specifying weights, the price used in the `lowest-price` and `price-capacity-optimized` + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` * allocation strategies is per *unit* hour (where the instance price is divided by the specified * weight). However, if all the specified weights are above the requested `TargetCapacity` , * resulting in only 1 instance being launched, the price used is per *instance* hour. @@ -5641,12 +5662,18 @@ public open class CfnSpotFleet( /** * @param weightedCapacity The number of units provided by the specified instance type. + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. + * * - * When specifying weights, the price used in the `lowest-price` and - * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price - * is divided by the specified weight). However, if all the specified weights are above the - * requested `TargetCapacity` , resulting in only 1 instance being launched, the price used is - * per *instance* hour. + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. */ public fun weightedCapacity(weightedCapacity: Number) } @@ -5755,12 +5782,18 @@ public open class CfnSpotFleet( /** * @param weightedCapacity The number of units provided by the specified instance type. + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. * - * When specifying weights, the price used in the `lowest-price` and - * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price - * is divided by the specified weight). However, if all the specified weights are above the - * requested `TargetCapacity` , resulting in only 1 instance being launched, the price used is - * per *instance* hour. + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. */ override fun weightedCapacity(weightedCapacity: Number) { cdkBuilder.weightedCapacity(weightedCapacity) @@ -5773,7 +5806,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.LaunchTemplateOverridesProperty, - ) : CdkObject(cdkObject), LaunchTemplateOverridesProperty { + ) : CdkObject(cdkObject), + LaunchTemplateOverridesProperty { /** * The Availability Zone in which to launch the instances. * @@ -5847,12 +5881,18 @@ public open class CfnSpotFleet( /** * The number of units provided by the specified instance type. * + * These are the same units that you chose to set the target capacity in terms of instances, + * or a performance characteristic such as vCPUs, memory, or I/O. + * + * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the + * number of instances to the next whole number. If this value is not specified, the default is + * 1. + * * - * When specifying weights, the price used in the `lowest-price` and - * `price-capacity-optimized` allocation strategies is per *unit* hour (where the instance price - * is divided by the specified weight). However, if all the specified weights are above the - * requested `TargetCapacity` , resulting in only 1 instance being launched, the price used is - * per *instance* hour. + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-weightedcapacity) @@ -6021,7 +6061,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.LoadBalancersConfigProperty, - ) : CdkObject(cdkObject), LoadBalancersConfigProperty { + ) : CdkObject(cdkObject), + LoadBalancersConfigProperty { /** * The Classic Load Balancers. * @@ -6138,7 +6179,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.MemoryGiBPerVCpuRequestProperty, - ) : CdkObject(cdkObject), MemoryGiBPerVCpuRequestProperty { + ) : CdkObject(cdkObject), + MemoryGiBPerVCpuRequestProperty { /** * The maximum amount of memory per vCPU, in GiB. * @@ -6257,7 +6299,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.MemoryMiBRequestProperty, - ) : CdkObject(cdkObject), MemoryMiBRequestProperty { + ) : CdkObject(cdkObject), + MemoryMiBRequestProperty { /** * The maximum amount of memory, in MiB. * @@ -6385,7 +6428,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.NetworkBandwidthGbpsRequestProperty, - ) : CdkObject(cdkObject), NetworkBandwidthGbpsRequestProperty { + ) : CdkObject(cdkObject), + NetworkBandwidthGbpsRequestProperty { /** * The maximum amount of network bandwidth, in Gbps. * @@ -6508,7 +6552,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.NetworkInterfaceCountRequestProperty, - ) : CdkObject(cdkObject), NetworkInterfaceCountRequestProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceCountRequestProperty { /** * The maximum number of network interfaces. * @@ -6646,7 +6691,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.PrivateIpAddressSpecificationProperty, - ) : CdkObject(cdkObject), PrivateIpAddressSpecificationProperty { + ) : CdkObject(cdkObject), + PrivateIpAddressSpecificationProperty { /** * Indicates whether the private IPv4 address is the primary private IPv4 address. * @@ -6689,7 +6735,7 @@ public open class CfnSpotFleet( * * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . * * Example: * @@ -6814,7 +6860,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotCapacityRebalanceProperty, - ) : CdkObject(cdkObject), SpotCapacityRebalanceProperty { + ) : CdkObject(cdkObject), + SpotCapacityRebalanceProperty { /** * The replacement strategy to use. Only available for fleets of type `maintain` . * @@ -7176,6 +7223,13 @@ public open class CfnSpotFleet( * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, the default is 1. * + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetlaunchspecification.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacity) */ public fun weightedCapacity(): Number? = unwrap(this).getWeightedCapacity() @@ -7429,6 +7483,12 @@ public open class CfnSpotFleet( * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, the default is * 1. + * + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. */ public fun weightedCapacity(weightedCapacity: Number) } @@ -7743,6 +7803,12 @@ public open class CfnSpotFleet( * If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the * number of instances to the next whole number. If this value is not specified, the default is * 1. + * + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. */ override fun weightedCapacity(weightedCapacity: Number) { cdkBuilder.weightedCapacity(weightedCapacity) @@ -7755,7 +7821,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetLaunchSpecificationProperty, - ) : CdkObject(cdkObject), SpotFleetLaunchSpecificationProperty { + ) : CdkObject(cdkObject), + SpotFleetLaunchSpecificationProperty { /** * One or more block devices that are mapped to the Spot Instances. * @@ -7927,6 +7994,13 @@ public open class CfnSpotFleet( * number of instances to the next whole number. If this value is not specified, the default is * 1. * + * + * When specifying weights, the price used in the `lowestPrice` and `priceCapacityOptimized` + * allocation strategies is per *unit* hour (where the instance price is divided by the specified + * weight). However, if all the specified weights are above the requested `TargetCapacity` , + * resulting in only 1 instance being launched, the price used is per *instance* hour. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetlaunchspecification.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacity) */ override fun weightedCapacity(): Number? = unwrap(this).getWeightedCapacity() @@ -8025,7 +8099,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetMonitoringProperty, - ) : CdkObject(cdkObject), SpotFleetMonitoringProperty { + ) : CdkObject(cdkObject), + SpotFleetMonitoringProperty { /** * Enables monitoring for the instance. * @@ -8336,13 +8411,16 @@ public open class CfnSpotFleet( * same priority is applied when fulfilling On-Demand capacity. * * **diversified** - Spot Fleet requests instances from all of the Spot Instance pools that * you specify. - * * **lowestPrice** - Spot Fleet requests instances from the lowest priced Spot Instance pool - * that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot - * Instances come from the next lowest priced pool that has available capacity. If a pool runs out - * of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your - * request by drawing from the next lowest priced pool. To ensure that your desired capacity is - * met, you might receive Spot Instances from several pools. Because this strategy only considers - * instance price and not capacity availability, it might lead to high interruption rates. + * * **lowestPrice (not recommended)** - > We don't recommend the `lowestPrice` allocation + * strategy because it has the highest risk of interruption for your Spot Instances. + * + * Spot Fleet requests instances from the lowest priced Spot Instance pool that has available + * capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come + * from the next lowest priced pool that has available capacity. If a pool runs out of capacity + * before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by + * drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might + * receive Spot Instances from several pools. Because this strategy only considers instance price + * and not capacity availability, it might lead to high interruption rates. * * Default: `lowestPrice` * @@ -8375,9 +8453,9 @@ public open class CfnSpotFleet( * * For more information, see [Spot Fleet * Prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) - * in the *Amazon EC2 User Guide for Linux Instances* . Spot Fleet can terminate Spot Instances on - * your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if - * you set `TerminateInstancesWithExpiration` . + * in the *Amazon EC2 User Guide* . Spot Fleet can terminate Spot Instances on your behalf when you + * cancel its Spot Fleet request or when the Spot Fleet request expires, if you set + * `TerminateInstancesWithExpiration` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-iamfleetrole) */ @@ -8472,7 +8550,7 @@ public open class CfnSpotFleet( * your final cost might be higher than what you specified for `onDemandMaxTotalPrice` . For more * information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-ondemandmaxtotalprice) @@ -8522,7 +8600,7 @@ public open class CfnSpotFleet( * final cost might be higher than what you specified for `spotMaxTotalPrice` . For more * information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-spotmaxtotalprice) @@ -8655,14 +8733,16 @@ public open class CfnSpotFleet( * `prioritized` , the same priority is applied when fulfilling On-Demand capacity. * * **diversified** - Spot Fleet requests instances from all of the Spot Instance pools that * you specify. - * * **lowestPrice** - Spot Fleet requests instances from the lowest priced Spot Instance pool - * that has available capacity. If the lowest priced pool doesn't have available capacity, the - * Spot Instances come from the next lowest priced pool that has available capacity. If a pool - * runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to - * fulfill your request by drawing from the next lowest priced pool. To ensure that your desired - * capacity is met, you might receive Spot Instances from several pools. Because this strategy - * only considers instance price and not capacity availability, it might lead to high - * interruption rates. + * * **lowestPrice (not recommended)** - > We don't recommend the `lowestPrice` allocation + * strategy because it has the highest risk of interruption for your Spot Instances. + * + * Spot Fleet requests instances from the lowest priced Spot Instance pool that has available + * capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come + * from the next lowest priced pool that has available capacity. If a pool runs out of capacity + * before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by + * drawing from the next lowest priced pool. To ensure that your desired capacity is met, you + * might receive Spot Instances from several pools. Because this strategy only considers instance + * price and not capacity availability, it might lead to high interruption rates. * * Default: `lowestPrice` */ @@ -8687,9 +8767,9 @@ public open class CfnSpotFleet( * instances on your behalf. * For more information, see [Spot Fleet * Prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) - * in the *Amazon EC2 User Guide for Linux Instances* . Spot Fleet can terminate Spot Instances - * on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, - * if you set `TerminateInstancesWithExpiration` . + * in the *Amazon EC2 User Guide* . Spot Fleet can terminate Spot Instances on your behalf when + * you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set + * `TerminateInstancesWithExpiration` . */ public fun iamFleetRole(iamFleetRole: String) @@ -8815,7 +8895,7 @@ public open class CfnSpotFleet( * surplus credits, your final cost might be higher than what you specified for * `onDemandMaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ public fun onDemandMaxTotalPrice(onDemandMaxTotalPrice: String) @@ -8879,7 +8959,7 @@ public open class CfnSpotFleet( * credits, your final cost might be higher than what you specified for `spotMaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ public fun spotMaxTotalPrice(spotMaxTotalPrice: String) @@ -9024,14 +9104,16 @@ public open class CfnSpotFleet( * `prioritized` , the same priority is applied when fulfilling On-Demand capacity. * * **diversified** - Spot Fleet requests instances from all of the Spot Instance pools that * you specify. - * * **lowestPrice** - Spot Fleet requests instances from the lowest priced Spot Instance pool - * that has available capacity. If the lowest priced pool doesn't have available capacity, the - * Spot Instances come from the next lowest priced pool that has available capacity. If a pool - * runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to - * fulfill your request by drawing from the next lowest priced pool. To ensure that your desired - * capacity is met, you might receive Spot Instances from several pools. Because this strategy - * only considers instance price and not capacity availability, it might lead to high - * interruption rates. + * * **lowestPrice (not recommended)** - > We don't recommend the `lowestPrice` allocation + * strategy because it has the highest risk of interruption for your Spot Instances. + * + * Spot Fleet requests instances from the lowest priced Spot Instance pool that has available + * capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come + * from the next lowest priced pool that has available capacity. If a pool runs out of capacity + * before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by + * drawing from the next lowest priced pool. To ensure that your desired capacity is met, you + * might receive Spot Instances from several pools. Because this strategy only considers instance + * price and not capacity availability, it might lead to high interruption rates. * * Default: `lowestPrice` */ @@ -9062,9 +9144,9 @@ public open class CfnSpotFleet( * instances on your behalf. * For more information, see [Spot Fleet * Prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) - * in the *Amazon EC2 User Guide for Linux Instances* . Spot Fleet can terminate Spot Instances - * on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, - * if you set `TerminateInstancesWithExpiration` . + * in the *Amazon EC2 User Guide* . Spot Fleet can terminate Spot Instances on your behalf when + * you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set + * `TerminateInstancesWithExpiration` . */ override fun iamFleetRole(iamFleetRole: String) { cdkBuilder.iamFleetRole(iamFleetRole) @@ -9213,7 +9295,7 @@ public open class CfnSpotFleet( * surplus credits, your final cost might be higher than what you specified for * `onDemandMaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ override fun onDemandMaxTotalPrice(onDemandMaxTotalPrice: String) { cdkBuilder.onDemandMaxTotalPrice(onDemandMaxTotalPrice) @@ -9291,7 +9373,7 @@ public open class CfnSpotFleet( * credits, your final cost might be higher than what you specified for `spotMaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . */ override fun spotMaxTotalPrice(spotMaxTotalPrice: String) { cdkBuilder.spotMaxTotalPrice(spotMaxTotalPrice) @@ -9434,7 +9516,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetRequestConfigDataProperty, - ) : CdkObject(cdkObject), SpotFleetRequestConfigDataProperty { + ) : CdkObject(cdkObject), + SpotFleetRequestConfigDataProperty { /** * The strategy that determines how to allocate the target Spot Instance capacity across the * Spot Instance pools specified by the Spot Fleet launch configuration. @@ -9460,14 +9543,16 @@ public open class CfnSpotFleet( * `prioritized` , the same priority is applied when fulfilling On-Demand capacity. * * **diversified** - Spot Fleet requests instances from all of the Spot Instance pools that * you specify. - * * **lowestPrice** - Spot Fleet requests instances from the lowest priced Spot Instance pool - * that has available capacity. If the lowest priced pool doesn't have available capacity, the - * Spot Instances come from the next lowest priced pool that has available capacity. If a pool - * runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to - * fulfill your request by drawing from the next lowest priced pool. To ensure that your desired - * capacity is met, you might receive Spot Instances from several pools. Because this strategy - * only considers instance price and not capacity availability, it might lead to high - * interruption rates. + * * **lowestPrice (not recommended)** - > We don't recommend the `lowestPrice` allocation + * strategy because it has the highest risk of interruption for your Spot Instances. + * + * Spot Fleet requests instances from the lowest priced Spot Instance pool that has available + * capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come + * from the next lowest priced pool that has available capacity. If a pool runs out of capacity + * before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by + * drawing from the next lowest priced pool. To ensure that your desired capacity is met, you + * might receive Spot Instances from several pools. Because this strategy only considers instance + * price and not capacity availability, it might lead to high interruption rates. * * Default: `lowestPrice` * @@ -9500,9 +9585,9 @@ public open class CfnSpotFleet( * * For more information, see [Spot Fleet * Prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) - * in the *Amazon EC2 User Guide for Linux Instances* . Spot Fleet can terminate Spot Instances - * on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, - * if you set `TerminateInstancesWithExpiration` . + * in the *Amazon EC2 User Guide* . Spot Fleet can terminate Spot Instances on your behalf when + * you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set + * `TerminateInstancesWithExpiration` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-iamfleetrole) */ @@ -9598,7 +9683,7 @@ public open class CfnSpotFleet( * surplus credits, your final cost might be higher than what you specified for * `onDemandMaxTotalPrice` . For more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-ondemandmaxtotalprice) @@ -9649,7 +9734,7 @@ public open class CfnSpotFleet( * credits, your final cost might be higher than what you specified for `spotMaxTotalPrice` . For * more information, see [Surplus credits can incur * charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) - * in the *EC2 User Guide* . + * in the *Amazon EC2 User Guide* . * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-spotmaxtotalprice) @@ -9877,7 +9962,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty, - ) : CdkObject(cdkObject), SpotFleetTagSpecificationProperty { + ) : CdkObject(cdkObject), + SpotFleetTagSpecificationProperty { /** * The type of resource. * @@ -9945,7 +10031,7 @@ public open class CfnSpotFleet( * * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotmaintenancestrategies.html#cfn-ec2-spotfleet-spotmaintenancestrategies-capacityrebalance) */ @@ -9961,7 +10047,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ public fun capacityRebalance(capacityRebalance: IResolvable) @@ -9970,7 +10056,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ public fun capacityRebalance(capacityRebalance: SpotCapacityRebalanceProperty) @@ -9979,7 +10065,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2573a18d019a336fa9f65454022b27033103109b979f9370b6b039c2e26ba7e3") @@ -9998,7 +10084,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ override fun capacityRebalance(capacityRebalance: IResolvable) { cdkBuilder.capacityRebalance(capacityRebalance.let(IResolvable.Companion::unwrap)) @@ -10009,7 +10095,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ override fun capacityRebalance(capacityRebalance: SpotCapacityRebalanceProperty) { cdkBuilder.capacityRebalance(capacityRebalance.let(SpotCapacityRebalanceProperty.Companion::unwrap)) @@ -10020,7 +10106,7 @@ public open class CfnSpotFleet( * emits a signal that your Spot Instance is at an elevated risk of being interrupted. * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2573a18d019a336fa9f65454022b27033103109b979f9370b6b039c2e26ba7e3") @@ -10035,14 +10121,15 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty, - ) : CdkObject(cdkObject), SpotMaintenanceStrategiesProperty { + ) : CdkObject(cdkObject), + SpotMaintenanceStrategiesProperty { /** * The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot * Instance is at an elevated risk of being interrupted. * * For more information, see [Capacity * rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) - * in the *Amazon EC2 User Guide for Linux Instances* . + * in the *Amazon EC2 User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotmaintenancestrategies.html#cfn-ec2-spotfleet-spotmaintenancestrategies-capacityrebalance) */ @@ -10175,7 +10262,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotPlacementProperty, - ) : CdkObject(cdkObject), SpotPlacementProperty { + ) : CdkObject(cdkObject), + SpotPlacementProperty { /** * The Availability Zone. * @@ -10275,7 +10363,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.TargetGroupProperty, - ) : CdkObject(cdkObject), TargetGroupProperty { + ) : CdkObject(cdkObject), + TargetGroupProperty { /** * The Amazon Resource Name (ARN) of the target group. * @@ -10383,7 +10472,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.TargetGroupsConfigProperty, - ) : CdkObject(cdkObject), TargetGroupsConfigProperty { + ) : CdkObject(cdkObject), + TargetGroupsConfigProperty { /** * One or more target groups. * @@ -10494,7 +10584,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.TotalLocalStorageGBRequestProperty, - ) : CdkObject(cdkObject), TotalLocalStorageGBRequestProperty { + ) : CdkObject(cdkObject), + TotalLocalStorageGBRequestProperty { /** * The maximum amount of total local storage, in GB. * @@ -10616,7 +10707,8 @@ public open class CfnSpotFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleet.VCpuCountRangeRequestProperty, - ) : CdkObject(cdkObject), VCpuCountRangeRequestProperty { + ) : CdkObject(cdkObject), + VCpuCountRangeRequestProperty { /** * The maximum number of vCPUs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleetProps.kt index 4f8070962d..937d5eabc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSpotFleetProps.kt @@ -327,7 +327,8 @@ public interface CfnSpotFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSpotFleetProps, - ) : CdkObject(cdkObject), CfnSpotFleetProps { + ) : CdkObject(cdkObject), + CfnSpotFleetProps { /** * Describes the configuration of a Spot Fleet request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnet.kt index deaadaad89..2766d50ec5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnet.kt @@ -57,7 +57,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * subnetcount = subnetcount + 1; * } * Cluster cluster = Cluster.Builder.create(this, "hello-eks") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .vpc(vpc) * .ipFamily(IpFamily.IP_V6) * .vpcSubnets(List.of(SubnetSelection.builder().subnets(vpc.getPublicSubnets()).build())) @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnet( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -131,7 +133,7 @@ public open class CfnSubnet( public open fun attrCidrBlock(): String = unwrap(this).getAttrCidrBlock() /** - * + * The IPv6 CIDR blocks that are associated with the subnet. */ public open fun attrIpv6CidrBlocks(): List = unwrap(this).getAttrIpv6CidrBlocks() @@ -271,23 +273,6 @@ public open class CfnSubnet( unwrap(this).setIpv6CidrBlock(`value`) } - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - */ - public open fun ipv6CidrBlocks(): List = unwrap(this).getIpv6CidrBlocks() ?: emptyList() - - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - */ - public open fun ipv6CidrBlocks(`value`: List) { - unwrap(this).setIpv6CidrBlocks(`value`) - } - - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - */ - public open fun ipv6CidrBlocks(vararg `value`: String): Unit = ipv6CidrBlocks(`value`.toList()) - /** * An IPv6 IPAM pool ID for the subnet. */ @@ -479,10 +464,15 @@ public open class CfnSubnet( * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. @@ -493,10 +483,15 @@ public open class CfnSubnet( * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. @@ -541,22 +536,6 @@ public open class CfnSubnet( */ public fun ipv6CidrBlock(ipv6CidrBlock: String) - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - public fun ipv6CidrBlocks(ipv6CidrBlocks: List) - - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - public fun ipv6CidrBlocks(vararg ipv6CidrBlocks: String) - /** * An IPv6 IPAM pool ID for the subnet. * @@ -753,10 +732,15 @@ public open class CfnSubnet( * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. @@ -769,10 +753,15 @@ public open class CfnSubnet( * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. @@ -827,25 +816,6 @@ public open class CfnSubnet( cdkBuilder.ipv6CidrBlock(ipv6CidrBlock) } - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - override fun ipv6CidrBlocks(ipv6CidrBlocks: List) { - cdkBuilder.ipv6CidrBlocks(ipv6CidrBlocks) - } - - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - override fun ipv6CidrBlocks(vararg ipv6CidrBlocks: String): Unit = - ipv6CidrBlocks(ipv6CidrBlocks.toList()) - /** * An IPv6 IPAM pool ID for the subnet. * @@ -1150,7 +1120,8 @@ public open class CfnSubnet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnet.PrivateDnsNameOptionsOnLaunchProperty, - ) : CdkObject(cdkObject), PrivateDnsNameOptionsOnLaunchProperty { + ) : CdkObject(cdkObject), + PrivateDnsNameOptionsOnLaunchProperty { /** * Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlock.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlock.kt index eefd9d775d..62c7f628f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlock.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlock.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetCidrBlock( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetCidrBlock, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -59,6 +60,21 @@ public open class CfnSubnetCidrBlock( */ public open fun attrId(): String = unwrap(this).getAttrId() + /** + * The source that allocated the IP address space. + * + * `byoip` or `amazon` indicates public IP address space allocated by Amazon or space that you + * have allocated with Bring your own IP (BYOIP). `none` indicates private space. + */ + public open fun attrIpSource(): String = unwrap(this).getAttrIpSource() + + /** + * Public IPv6 addresses are those advertised on the internet from AWS . + * + * Private IP addresses are not and cannot be advertised on the internet from AWS . + */ + public open fun attrIpv6AddressAttribute(): String = unwrap(this).getAttrIpv6AddressAttribute() + /** * Examines the CloudFormation resource and discloses attributes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlockProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlockProps.kt index 13c1a63030..8bd648ead3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlockProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetCidrBlockProps.kt @@ -122,7 +122,8 @@ public interface CfnSubnetCidrBlockProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetCidrBlockProps, - ) : CdkObject(cdkObject), CfnSubnetCidrBlockProps { + ) : CdkObject(cdkObject), + CfnSubnetCidrBlockProps { /** * The IPv6 network range for the subnet, in CIDR notation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociation.kt index 85ca8833e0..eb753cd10c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociation.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetNetworkAclAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetNetworkAclAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociationProps.kt index 2ab801e56f..dbdc92e48b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetNetworkAclAssociationProps.kt @@ -82,7 +82,8 @@ public interface CfnSubnetNetworkAclAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetNetworkAclAssociationProps, - ) : CdkObject(cdkObject), CfnSubnetNetworkAclAssociationProps { + ) : CdkObject(cdkObject), + CfnSubnetNetworkAclAssociationProps { /** * The ID of the network ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetProps.kt index 8cc53605e3..9ef04b2fca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetProps.kt @@ -36,7 +36,6 @@ import kotlin.collections.List * .ipv4IpamPoolId("ipv4IpamPoolId") * .ipv4NetmaskLength(123) * .ipv6CidrBlock("ipv6CidrBlock") - * .ipv6CidrBlocks(List.of("ipv6CidrBlocks")) * .ipv6IpamPoolId("ipv6IpamPoolId") * .ipv6Native(false) * .ipv6NetmaskLength(123) @@ -92,10 +91,14 @@ public interface CfnSubnetProps { * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet containing + * the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a + * `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) */ public fun enableDns64(): Any? = unwrap(this).getEnableDns64() @@ -133,13 +136,6 @@ public interface CfnSubnetProps { */ public fun ipv6CidrBlock(): String? = unwrap(this).getIpv6CidrBlock() - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - */ - public fun ipv6CidrBlocks(): List = unwrap(this).getIpv6CidrBlocks() ?: emptyList() - /** * An IPv6 IPAM pool ID for the subnet. * @@ -257,8 +253,12 @@ public interface CfnSubnetProps { /** * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . */ public fun enableDns64(enableDns64: Boolean) @@ -266,8 +266,12 @@ public interface CfnSubnetProps { /** * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . */ public fun enableDns64(enableDns64: IResolvable) @@ -296,16 +300,6 @@ public interface CfnSubnetProps { */ public fun ipv6CidrBlock(ipv6CidrBlock: String) - /** - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - public fun ipv6CidrBlocks(ipv6CidrBlocks: List) - - /** - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - public fun ipv6CidrBlocks(vararg ipv6CidrBlocks: String) - /** * @param ipv6IpamPoolId An IPv6 IPAM pool ID for the subnet. */ @@ -435,8 +429,12 @@ public interface CfnSubnetProps { /** * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . */ override fun enableDns64(enableDns64: Boolean) { @@ -446,8 +444,12 @@ public interface CfnSubnetProps { /** * @param enableDns64 Indicates whether DNS queries made to the Amazon-provided DNS Resolver in * this subnet should return synthetic IPv6 addresses for IPv4-only destinations. - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . */ override fun enableDns64(enableDns64: IResolvable) { @@ -486,19 +488,6 @@ public interface CfnSubnetProps { cdkBuilder.ipv6CidrBlock(ipv6CidrBlock) } - /** - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - override fun ipv6CidrBlocks(ipv6CidrBlocks: List) { - cdkBuilder.ipv6CidrBlocks(ipv6CidrBlocks) - } - - /** - * @param ipv6CidrBlocks The IPv6 network ranges for the subnet, in CIDR notation. - */ - override fun ipv6CidrBlocks(vararg ipv6CidrBlocks: String): Unit = - ipv6CidrBlocks(ipv6CidrBlocks.toList()) - /** * @param ipv6IpamPoolId An IPv6 IPAM pool ID for the subnet. */ @@ -604,7 +593,8 @@ public interface CfnSubnetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetProps, - ) : CdkObject(cdkObject), CfnSubnetProps { + ) : CdkObject(cdkObject), + CfnSubnetProps { /** * Indicates whether a network interface created in this subnet receives an IPv6 address. The * default value is `false` . @@ -644,10 +634,15 @@ public interface CfnSubnetProps { * Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should * return synthetic IPv6 addresses for IPv4-only destinations. * - * For more information, see [DNS64 and - * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) + * + * You must first configure a NAT gateway in a public subnet (separate from the subnet + * containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should + * have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see [Configure + * DNS64 and + * NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) * in the *Amazon Virtual Private Cloud User Guide* . * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-enabledns64) */ override fun enableDns64(): Any? = unwrap(this).getEnableDns64() @@ -685,13 +680,6 @@ public interface CfnSubnetProps { */ override fun ipv6CidrBlock(): String? = unwrap(this).getIpv6CidrBlock() - /** - * The IPv6 network ranges for the subnet, in CIDR notation. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblocks) - */ - override fun ipv6CidrBlocks(): List = unwrap(this).getIpv6CidrBlocks() ?: emptyList() - /** * An IPv6 IPAM pool ID for the subnet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociation.kt index 8f622480d9..92061e5ed1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociation.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetRouteTableAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetRouteTableAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociationProps.kt index 512a14b673..aa9c7e3666 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnSubnetRouteTableAssociationProps.kt @@ -86,7 +86,8 @@ public interface CfnSubnetRouteTableAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnSubnetRouteTableAssociationProps, - ) : CdkObject(cdkObject), CfnSubnetRouteTableAssociationProps { + ) : CdkObject(cdkObject), + CfnSubnetRouteTableAssociationProps { /** * The ID of the route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilter.kt index ffc277db0d..2473b56ffd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilter.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrafficMirrorFilter( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilter, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilter(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterProps.kt index 3e53832b23..7e68f0a008 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterProps.kt @@ -136,7 +136,8 @@ public interface CfnTrafficMirrorFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterProps, - ) : CdkObject(cdkObject), CfnTrafficMirrorFilterProps { + ) : CdkObject(cdkObject), + CfnTrafficMirrorFilterProps { /** * The description of the Traffic Mirror filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRule.kt index cb01d6840a..3678b0f1f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRule.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.ec2 import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -13,6 +16,7 @@ import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -49,6 +53,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .fromPort(123) * .toPort(123) * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -56,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrafficMirrorFilterRule( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -78,6 +88,12 @@ public open class CfnTrafficMirrorFilterRule( */ public open fun attrId(): String = unwrap(this).getAttrId() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The description of the Traffic Mirror rule. */ @@ -213,6 +229,23 @@ public open class CfnTrafficMirrorFilterRule( public open fun sourcePortRange(`value`: TrafficMirrorPortRangeProperty.Builder.() -> Unit): Unit = sourcePortRange(TrafficMirrorPortRangeProperty(`value`)) + /** + * Tags on Traffic Mirroring filter rules. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Tags on Traffic Mirroring filter rules. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags on Traffic Mirroring filter rules. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * The type of traffic. */ @@ -350,6 +383,22 @@ public open class CfnTrafficMirrorFilterRule( @JvmName("2f857ab00af762cf044e690ee3f6928e738c828c0867a4415dc02afb4621b061") public fun sourcePortRange(sourcePortRange: TrafficMirrorPortRangeProperty.Builder.() -> Unit) + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + * @param tags Tags on Traffic Mirroring filter rules. + */ + public fun tags(tags: List) + + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + * @param tags Tags on Traffic Mirroring filter rules. + */ + public fun tags(vararg tags: CfnTag) + /** * The type of traffic. * @@ -505,6 +554,24 @@ public open class CfnTrafficMirrorFilterRule( fun sourcePortRange(sourcePortRange: TrafficMirrorPortRangeProperty.Builder.() -> Unit): Unit = sourcePortRange(TrafficMirrorPortRangeProperty(sourcePortRange)) + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + * @param tags Tags on Traffic Mirroring filter rules. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + * @param tags Tags on Traffic Mirroring filter rules. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * The type of traffic. * @@ -634,7 +701,8 @@ public open class CfnTrafficMirrorFilterRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty, - ) : CdkObject(cdkObject), TrafficMirrorPortRangeProperty { + ) : CdkObject(cdkObject), + TrafficMirrorPortRangeProperty { /** * The start of the Traffic Mirror port range. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRuleProps.kt index 63690ac41f..fc2e44be4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorFilterRuleProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.ec2 +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -10,6 +11,7 @@ import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName /** @@ -40,6 +42,10 @@ import kotlin.jvm.JvmName * .fromPort(123) * .toPort(123) * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -109,6 +115,13 @@ public interface CfnTrafficMirrorFilterRuleProps { */ public fun sourcePortRange(): Any? = unwrap(this).getSourcePortRange() + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The type of traffic. * @@ -201,6 +214,16 @@ public interface CfnTrafficMirrorFilterRuleProps { public fun sourcePortRange(sourcePortRange: CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty.Builder.() -> Unit) + /** + * @param tags Tags on Traffic Mirroring filter rules. + */ + public fun tags(tags: List) + + /** + * @param tags Tags on Traffic Mirroring filter rules. + */ + public fun tags(vararg tags: CfnTag) + /** * @param trafficDirection The type of traffic. */ @@ -314,6 +337,18 @@ public interface CfnTrafficMirrorFilterRuleProps { Unit = sourcePortRange(CfnTrafficMirrorFilterRule.TrafficMirrorPortRangeProperty(sourcePortRange)) + /** + * @param tags Tags on Traffic Mirroring filter rules. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags Tags on Traffic Mirroring filter rules. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** * @param trafficDirection The type of traffic. */ @@ -334,7 +369,8 @@ public interface CfnTrafficMirrorFilterRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRuleProps, - ) : CdkObject(cdkObject), CfnTrafficMirrorFilterRuleProps { + ) : CdkObject(cdkObject), + CfnTrafficMirrorFilterRuleProps { /** * The description of the Traffic Mirror rule. * @@ -398,6 +434,13 @@ public interface CfnTrafficMirrorFilterRuleProps { */ override fun sourcePortRange(): Any? = unwrap(this).getSourcePortRange() + /** + * Tags on Traffic Mirroring filter rules. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * The type of traffic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSession.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSession.kt index 93f8d10a25..24a8d75f30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSession.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSession.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrafficMirrorSession( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorSession, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -288,8 +290,8 @@ public open class CfnTrafficMirrorSession( * The VXLAN ID for the Traffic Mirror session. * * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html#cfn-ec2-trafficmirrorsession-virtualnetworkid) * @param virtualNetworkId The VXLAN ID for the Traffic Mirror session. @@ -404,8 +406,8 @@ public open class CfnTrafficMirrorSession( * The VXLAN ID for the Traffic Mirror session. * * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html#cfn-ec2-trafficmirrorsession-virtualnetworkid) * @param virtualNetworkId The VXLAN ID for the Traffic Mirror session. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSessionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSessionProps.kt index 267c2aad8b..78ef53d14f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSessionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorSessionProps.kt @@ -110,8 +110,8 @@ public interface CfnTrafficMirrorSessionProps { * The VXLAN ID for the Traffic Mirror session. * * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html#cfn-ec2-trafficmirrorsession-virtualnetworkid) */ @@ -180,8 +180,8 @@ public interface CfnTrafficMirrorSessionProps { /** * @param virtualNetworkId The VXLAN ID for the Traffic Mirror session. * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. */ public fun virtualNetworkId(virtualNetworkId: Number) } @@ -262,8 +262,8 @@ public interface CfnTrafficMirrorSessionProps { /** * @param virtualNetworkId The VXLAN ID for the Traffic Mirror session. * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. */ override fun virtualNetworkId(virtualNetworkId: Number) { cdkBuilder.virtualNetworkId(virtualNetworkId) @@ -275,7 +275,8 @@ public interface CfnTrafficMirrorSessionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorSessionProps, - ) : CdkObject(cdkObject), CfnTrafficMirrorSessionProps { + ) : CdkObject(cdkObject), + CfnTrafficMirrorSessionProps { /** * The description of the Traffic Mirror session. * @@ -346,8 +347,8 @@ public interface CfnTrafficMirrorSessionProps { * The VXLAN ID for the Traffic Mirror session. * * For more information about the VXLAN protocol, see [RFC - * 7348](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc7348) . If you do not specify a - * `VirtualNetworkId` , an account-wide unique id is chosen at random. + * 7348](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc7348) . If you do not + * specify a `VirtualNetworkId` , an account-wide unique ID is chosen at random. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html#cfn-ec2-trafficmirrorsession-virtualnetworkid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTarget.kt index eafd0a5b50..66ac7f8fc3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTarget.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrafficMirrorTarget( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorTarget, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnTrafficMirrorTarget(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTargetProps.kt index 02a072241e..4b00d1a031 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTrafficMirrorTargetProps.kt @@ -158,7 +158,8 @@ public interface CfnTrafficMirrorTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTrafficMirrorTargetProps, - ) : CdkObject(cdkObject), CfnTrafficMirrorTargetProps { + ) : CdkObject(cdkObject), + CfnTrafficMirrorTargetProps { /** * The description of the Traffic Mirror target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGateway.kt index d9df0a70a2..f588398e06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGateway.kt @@ -75,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnTransitGateway(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachment.kt index 9488d92af6..d3c8900ea7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachment.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -353,7 +355,6 @@ public open class CfnTransitGatewayAttachment( * .applianceModeSupport("applianceModeSupport") * .dnsSupport("dnsSupport") * .ipv6Support("ipv6Support") - * .securityGroupReferencingSupport("securityGroupReferencingSupport") * .build(); * ``` * @@ -387,24 +388,6 @@ public open class CfnTransitGatewayAttachment( */ public fun ipv6Support(): String? = unwrap(this).getIpv6Support() - /** - * Enables you to reference a security group across VPCs attached to a transit gateway (TGW). - * - * Use this option to simplify security group management and control of instance-to-instance - * traffic across VPCs that are connected by transit gateway. You can also use this option to - * migrate from VPC peering (which was the only option that supported security group referencing) - * to transit gateways (which now also support security group referencing). This option is disabled - * by default and there are no additional costs to use this feature. - * - * For important information about this feature, see [Create a transit - * gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) in the - * *AWS Transit Gateway Guide* . - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-securitygroupreferencingsupport) - */ - public fun securityGroupReferencingSupport(): String? = - unwrap(this).getSecurityGroupReferencingSupport() - /** * A builder for [OptionsProperty] */ @@ -427,21 +410,6 @@ public open class CfnTransitGatewayAttachment( * The default is `disable` . */ public fun ipv6Support(ipv6Support: String) - - /** - * @param securityGroupReferencingSupport Enables you to reference a security group across - * VPCs attached to a transit gateway (TGW). - * Use this option to simplify security group management and control of instance-to-instance - * traffic across VPCs that are connected by transit gateway. You can also use this option to - * migrate from VPC peering (which was the only option that supported security group referencing) - * to transit gateways (which now also support security group referencing). This option is - * disabled by default and there are no additional costs to use this feature. - * - * For important information about this feature, see [Create a transit - * gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) in - * the *AWS Transit Gateway Guide* . - */ - public fun securityGroupReferencingSupport(securityGroupReferencingSupport: String) } private class BuilderImpl : Builder { @@ -473,23 +441,6 @@ public open class CfnTransitGatewayAttachment( cdkBuilder.ipv6Support(ipv6Support) } - /** - * @param securityGroupReferencingSupport Enables you to reference a security group across - * VPCs attached to a transit gateway (TGW). - * Use this option to simplify security group management and control of instance-to-instance - * traffic across VPCs that are connected by transit gateway. You can also use this option to - * migrate from VPC peering (which was the only option that supported security group referencing) - * to transit gateways (which now also support security group referencing). This option is - * disabled by default and there are no additional costs to use this feature. - * - * For important information about this feature, see [Create a transit - * gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) in - * the *AWS Transit Gateway Guide* . - */ - override fun securityGroupReferencingSupport(securityGroupReferencingSupport: String) { - cdkBuilder.securityGroupReferencingSupport(securityGroupReferencingSupport) - } - public fun build(): software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachment.OptionsProperty = cdkBuilder.build() @@ -497,7 +448,8 @@ public open class CfnTransitGatewayAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachment.OptionsProperty, - ) : CdkObject(cdkObject), OptionsProperty { + ) : CdkObject(cdkObject), + OptionsProperty { /** * Enable or disable appliance mode support. * @@ -524,24 +476,6 @@ public open class CfnTransitGatewayAttachment( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-ipv6support) */ override fun ipv6Support(): String? = unwrap(this).getIpv6Support() - - /** - * Enables you to reference a security group across VPCs attached to a transit gateway (TGW). - * - * Use this option to simplify security group management and control of instance-to-instance - * traffic across VPCs that are connected by transit gateway. You can also use this option to - * migrate from VPC peering (which was the only option that supported security group referencing) - * to transit gateways (which now also support security group referencing). This option is - * disabled by default and there are no additional costs to use this feature. - * - * For important information about this feature, see [Create a transit - * gateway](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) in - * the *AWS Transit Gateway Guide* . - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-securitygroupreferencingsupport) - */ - override fun securityGroupReferencingSupport(): String? = - unwrap(this).getSecurityGroupReferencingSupport() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachmentProps.kt index 0d8e1e7c14..6b4982aee5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayAttachmentProps.kt @@ -186,7 +186,8 @@ public interface CfnTransitGatewayAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachmentProps, - ) : CdkObject(cdkObject), CfnTransitGatewayAttachmentProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayAttachmentProps { /** * The VPC attachment options. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnect.kt index ef9aa5f61f..766d5fda9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnect.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayConnect( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayConnect, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -380,7 +382,8 @@ public open class CfnTransitGatewayConnect( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty, - ) : CdkObject(cdkObject), TransitGatewayConnectOptionsProperty { + ) : CdkObject(cdkObject), + TransitGatewayConnectOptionsProperty { /** * The tunnel protocol. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnectProps.kt index 831a2e7f7d..488bf05dab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayConnectProps.kt @@ -162,7 +162,8 @@ public interface CfnTransitGatewayConnectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayConnectProps, - ) : CdkObject(cdkObject), CfnTransitGatewayConnectProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayConnectProps { /** * The Connect attachment options. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomain.kt index ef1f034c08..b23b83e5ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomain.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayMulticastDomain( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -365,7 +367,8 @@ public open class CfnTransitGatewayMulticastDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastDomain.OptionsProperty, - ) : CdkObject(cdkObject), OptionsProperty { + ) : CdkObject(cdkObject), + OptionsProperty { /** * Indicates whether to automatically accept cross-account subnet associations that are * associated with the transit gateway multicast domain. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociation.kt index 453a13b0d5..76c2c63dfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociation.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayMulticastDomainAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastDomainAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociationProps.kt index d9a1dbda46..460443f341 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainAssociationProps.kt @@ -106,7 +106,8 @@ public interface CfnTransitGatewayMulticastDomainAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastDomainAssociationProps, - ) : CdkObject(cdkObject), CfnTransitGatewayMulticastDomainAssociationProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayMulticastDomainAssociationProps { /** * The IDs of the subnets to associate with the transit gateway multicast domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainProps.kt index 2ee796c0c5..f3441c0fde 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastDomainProps.kt @@ -130,7 +130,8 @@ public interface CfnTransitGatewayMulticastDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastDomainProps, - ) : CdkObject(cdkObject), CfnTransitGatewayMulticastDomainProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayMulticastDomainProps { /** * The options for the transit gateway multicast domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMember.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMember.kt index 8c17514c96..11f6277780 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMember.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMember.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayMulticastGroupMember( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastGroupMember, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -84,7 +85,7 @@ public open class CfnTransitGatewayMulticastGroupMember( public open fun attrResourceType(): String = unwrap(this).getAttrResourceType() /** - * The type of source. + * */ public open fun attrSourceType(): String = unwrap(this).getAttrSourceType() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMemberProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMemberProps.kt index 76d271ca07..a2b3085717 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMemberProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupMemberProps.kt @@ -105,7 +105,8 @@ public interface CfnTransitGatewayMulticastGroupMemberProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastGroupMemberProps, - ) : CdkObject(cdkObject), CfnTransitGatewayMulticastGroupMemberProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayMulticastGroupMemberProps { /** * The IP address assigned to the transit gateway multicast group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSource.kt index 8357005e73..e833ed420d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSource.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayMulticastGroupSource( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastGroupSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -69,7 +70,7 @@ public open class CfnTransitGatewayMulticastGroupSource( unwrap(this).getAttrGroupSource().let(IResolvable::wrap) /** - * The type of group member, for example static. + * */ public open fun attrMemberType(): String = unwrap(this).getAttrMemberType() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSourceProps.kt index 6c5c080412..4367a626a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayMulticastGroupSourceProps.kt @@ -105,7 +105,8 @@ public interface CfnTransitGatewayMulticastGroupSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayMulticastGroupSourceProps, - ) : CdkObject(cdkObject), CfnTransitGatewayMulticastGroupSourceProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayMulticastGroupSourceProps { /** * The IP address assigned to the transit gateway multicast group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachment.kt index d0cf2b2686..6a870e2ccd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachment.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayPeeringAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayPeeringAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -404,7 +406,8 @@ public open class CfnTransitGatewayPeeringAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty, - ) : CdkObject(cdkObject), PeeringAttachmentStatusProperty { + ) : CdkObject(cdkObject), + PeeringAttachmentStatusProperty { /** * The status code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachmentProps.kt index e2f059cc6d..ea7bfcf6c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayPeeringAttachmentProps.kt @@ -158,7 +158,8 @@ public interface CfnTransitGatewayPeeringAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayPeeringAttachmentProps, - ) : CdkObject(cdkObject), CfnTransitGatewayPeeringAttachmentProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayPeeringAttachmentProps { /** * The ID of the AWS account that owns the transit gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayProps.kt index 1f5e8ccfb1..289f11b7dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayProps.kt @@ -344,7 +344,8 @@ public interface CfnTransitGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayProps, - ) : CdkObject(cdkObject), CfnTransitGatewayProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayProps { /** * A private Autonomous System Number (ASN) for the Amazon side of a BGP session. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRoute.kt index 8a96b4a8fd..6cb9df991c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRoute.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRoute( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -54,11 +55,6 @@ public open class CfnTransitGatewayRoute( ) : this(scope, id, CfnTransitGatewayRouteProps(props) ) - /** - * - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * Indicates whether to drop traffic that matches this route. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteProps.kt index 10a1f44537..22deacf985 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteProps.kt @@ -136,7 +136,8 @@ public interface CfnTransitGatewayRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRouteProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRouteProps { /** * Indicates whether to drop traffic that matches this route. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTable.kt index cc456c2ba8..79ddb33b4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTable.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRouteTable( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociation.kt index 81294e69d3..9decf29e60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociation.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRouteTableAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTableAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociationProps.kt index d8f09888f1..64120a1071 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableAssociationProps.kt @@ -83,7 +83,8 @@ public interface CfnTransitGatewayRouteTableAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTableAssociationProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRouteTableAssociationProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRouteTableAssociationProps { /** * The ID of the attachment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagation.kt index 705d767130..cae40bc8b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagation.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRouteTablePropagation( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTablePropagation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagationProps.kt index 73120c3a0e..6726e96375 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTablePropagationProps.kt @@ -83,7 +83,8 @@ public interface CfnTransitGatewayRouteTablePropagationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTablePropagationProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRouteTablePropagationProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRouteTablePropagationProps { /** * The ID of the attachment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableProps.kt index 640b16312e..32f4a76ec7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayRouteTableProps.kt @@ -98,7 +98,8 @@ public interface CfnTransitGatewayRouteTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTableProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRouteTableProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRouteTableProps { /** * Any tags assigned to the route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachment.kt index cfc87c1807..4898dffc7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachment.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayVpcAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -536,7 +538,8 @@ public open class CfnTransitGatewayVpcAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachment.OptionsProperty, - ) : CdkObject(cdkObject), OptionsProperty { + ) : CdkObject(cdkObject), + OptionsProperty { /** * Enable or disable appliance mode support. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachmentProps.kt index 8f1e66bf7e..b994156ac3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnTransitGatewayVpcAttachmentProps.kt @@ -238,7 +238,8 @@ public interface CfnTransitGatewayVpcAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachmentProps, - ) : CdkObject(cdkObject), CfnTransitGatewayVpcAttachmentProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayVpcAttachmentProps { /** * The IDs of one or more subnets to add. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPC.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPC.kt index a7b34be484..ea1c25193a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPC.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPC.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPC( cdkObject: software.amazon.awscdk.services.ec2.CfnVPC, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnVPC(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlock.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlock.kt index 17b57e89ae..b6644d987c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlock.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlock.kt @@ -51,7 +51,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * subnetcount = subnetcount + 1; * } * Cluster cluster = Cluster.Builder.create(this, "hello-eks") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .vpc(vpc) * .ipFamily(IpFamily.IP_V6) * .vpcSubnets(List.of(SubnetSelection.builder().subnets(vpc.getPublicSubnets()).build())) @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCCidrBlock( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCCidrBlock, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -104,6 +105,21 @@ public open class CfnVPCCidrBlock( */ public open fun attrId(): String = unwrap(this).getAttrId() + /** + * The source that allocated the IP address space. + * + * `byoip` or `amazon` indicates public IP address space allocated by Amazon or space that you + * have allocated with Bring your own IP (BYOIP). `none` indicates private space. + */ + public open fun attrIpSource(): String = unwrap(this).getAttrIpSource() + + /** + * Public IPv6 addresses are those advertised on the internet from AWS . + * + * Private IP addresses are not and cannot be advertised on the internet from AWS . + */ + public open fun attrIpv6AddressAttribute(): String = unwrap(this).getAttrIpv6AddressAttribute() + /** * An IPv4 CIDR block to associate with the VPC. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlockProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlockProps.kt index 371b13449d..58c4568b7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlockProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCCidrBlockProps.kt @@ -40,7 +40,7 @@ import kotlin.Unit * subnetcount = subnetcount + 1; * } * Cluster cluster = Cluster.Builder.create(this, "hello-eks") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .vpc(vpc) * .ipFamily(IpFamily.IP_V6) * .vpcSubnets(List.of(SubnetSelection.builder().subnets(vpc.getPublicSubnets()).build())) @@ -311,7 +311,8 @@ public interface CfnVPCCidrBlockProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCCidrBlockProps, - ) : CdkObject(cdkObject), CfnVPCCidrBlockProps { + ) : CdkObject(cdkObject), + CfnVPCCidrBlockProps { /** * Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociation.kt index 87c2f57fc3..a6928148a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociation.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCDHCPOptionsAssociation( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCDHCPOptionsAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociationProps.kt index c60dae3deb..4d2662eaa5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCDHCPOptionsAssociationProps.kt @@ -84,7 +84,8 @@ public interface CfnVPCDHCPOptionsAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCDHCPOptionsAssociationProps, - ) : CdkObject(cdkObject), CfnVPCDHCPOptionsAssociationProps { + ) : CdkObject(cdkObject), + CfnVPCDHCPOptionsAssociationProps { /** * The ID of the DHCP options set, or `default` to associate no DHCP options with the VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpoint.kt index 127ff2fa48..27488d1d55 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpoint.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCEndpoint( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotification.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotification.kt index 111908f794..f7951c279b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotification.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotification.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCEndpointConnectionNotification( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointConnectionNotification, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotificationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotificationProps.kt index 2c7b3020dc..1023c14ce4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotificationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointConnectionNotificationProps.kt @@ -142,7 +142,8 @@ public interface CfnVPCEndpointConnectionNotificationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointConnectionNotificationProps, - ) : CdkObject(cdkObject), CfnVPCEndpointConnectionNotificationProps { + ) : CdkObject(cdkObject), + CfnVPCEndpointConnectionNotificationProps { /** * The endpoint events for which to receive notifications. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointProps.kt index fea590f1c5..0f8581e900 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointProps.kt @@ -374,7 +374,8 @@ public interface CfnVPCEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointProps, - ) : CdkObject(cdkObject), CfnVPCEndpointProps { + ) : CdkObject(cdkObject), + CfnVPCEndpointProps { /** * An endpoint policy, which controls access to the service from the VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointService.kt index 5299049eb8..71cc6ace45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointService.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCEndpointService( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointService, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnVPCEndpointService(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissions.kt index 88ee6ceb60..e1ae5cb30a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissions.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCEndpointServicePermissions( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointServicePermissions, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissionsProps.kt index c3751e0eba..17b6c0d0cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServicePermissionsProps.kt @@ -116,7 +116,8 @@ public interface CfnVPCEndpointServicePermissionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointServicePermissionsProps, - ) : CdkObject(cdkObject), CfnVPCEndpointServicePermissionsProps { + ) : CdkObject(cdkObject), + CfnVPCEndpointServicePermissionsProps { /** * The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and * AWS accounts ). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServiceProps.kt index 479107471a..8191dfef69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCEndpointServiceProps.kt @@ -217,7 +217,8 @@ public interface CfnVPCEndpointServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCEndpointServiceProps, - ) : CdkObject(cdkObject), CfnVPCEndpointServiceProps { + ) : CdkObject(cdkObject), + CfnVPCEndpointServiceProps { /** * Indicates whether requests from service consumers to create an endpoint to your service must * be accepted. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachment.kt index 27a6d649fa..0510fc93ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachment.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCGatewayAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCGatewayAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachmentProps.kt index f41ba5ee5a..4564056f4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCGatewayAttachmentProps.kt @@ -110,7 +110,8 @@ public interface CfnVPCGatewayAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCGatewayAttachmentProps, - ) : CdkObject(cdkObject), CfnVPCGatewayAttachmentProps { + ) : CdkObject(cdkObject), + CfnVPCGatewayAttachmentProps { /** * The ID of the internet gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnection.kt index 972da57c79..f778cff862 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnection.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCPeeringConnection( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCPeeringConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnectionProps.kt index d5fd0b5de7..c2e58b4dd8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCPeeringConnectionProps.kt @@ -199,7 +199,8 @@ public interface CfnVPCPeeringConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCPeeringConnectionProps, - ) : CdkObject(cdkObject), CfnVPCPeeringConnectionProps { + ) : CdkObject(cdkObject), + CfnVPCPeeringConnectionProps { /** * The AWS account ID of the owner of the accepter VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCProps.kt index 0c631c9ff2..6155631e59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPCProps.kt @@ -350,7 +350,8 @@ public interface CfnVPCProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPCProps, - ) : CdkObject(cdkObject), CfnVPCProps { + ) : CdkObject(cdkObject), + CfnVPCProps { /** * The IPv4 network range for the VPC, in CIDR notation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnection.kt index 41f68d55c3..60ceb111d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnection.kt @@ -44,12 +44,20 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .customerGatewayId("customerGatewayId") * .type("type") * // the properties below are optional + * .enableAcceleration(false) + * .localIpv4NetworkCidr("localIpv4NetworkCidr") + * .localIpv6NetworkCidr("localIpv6NetworkCidr") + * .outsideIpAddressType("outsideIpAddressType") + * .remoteIpv4NetworkCidr("remoteIpv4NetworkCidr") + * .remoteIpv6NetworkCidr("remoteIpv6NetworkCidr") * .staticRoutesOnly(false) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) * .transitGatewayId("transitGatewayId") + * .transportTransitGatewayAttachmentId("transportTransitGatewayAttachmentId") + * .tunnelInsideIpVersion("tunnelInsideIpVersion") * .vpnGatewayId("vpnGatewayId") * .vpnTunnelOptionsSpecifications(List.of(VpnTunnelOptionsSpecificationProperty.builder() * .preSharedKey("preSharedKey") @@ -62,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPNConnection( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -96,6 +106,25 @@ public open class CfnVPNConnection( unwrap(this).setCustomerGatewayId(`value`) } + /** + * Indicate whether to enable acceleration for the VPN connection. + */ + public open fun enableAcceleration(): Any? = unwrap(this).getEnableAcceleration() + + /** + * Indicate whether to enable acceleration for the VPN connection. + */ + public open fun enableAcceleration(`value`: Boolean) { + unwrap(this).setEnableAcceleration(`value`) + } + + /** + * Indicate whether to enable acceleration for the VPN connection. + */ + public open fun enableAcceleration(`value`: IResolvable) { + unwrap(this).setEnableAcceleration(`value`.let(IResolvable.Companion::unwrap)) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -105,6 +134,66 @@ public open class CfnVPNConnection( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + */ + public open fun localIpv4NetworkCidr(): String? = unwrap(this).getLocalIpv4NetworkCidr() + + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + */ + public open fun localIpv4NetworkCidr(`value`: String) { + unwrap(this).setLocalIpv4NetworkCidr(`value`) + } + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + */ + public open fun localIpv6NetworkCidr(): String? = unwrap(this).getLocalIpv6NetworkCidr() + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + */ + public open fun localIpv6NetworkCidr(`value`: String) { + unwrap(this).setLocalIpv6NetworkCidr(`value`) + } + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + */ + public open fun outsideIpAddressType(): String? = unwrap(this).getOutsideIpAddressType() + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + */ + public open fun outsideIpAddressType(`value`: String) { + unwrap(this).setOutsideIpAddressType(`value`) + } + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + */ + public open fun remoteIpv4NetworkCidr(): String? = unwrap(this).getRemoteIpv4NetworkCidr() + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + */ + public open fun remoteIpv4NetworkCidr(`value`: String) { + unwrap(this).setRemoteIpv4NetworkCidr(`value`) + } + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + */ + public open fun remoteIpv6NetworkCidr(): String? = unwrap(this).getRemoteIpv6NetworkCidr() + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + */ + public open fun remoteIpv6NetworkCidr(`value`: String) { + unwrap(this).setRemoteIpv6NetworkCidr(`value`) + } + /** * Indicates whether the VPN connection uses static routes only. */ @@ -159,6 +248,31 @@ public open class CfnVPNConnection( unwrap(this).setTransitGatewayId(`value`) } + /** + * The transit gateway attachment ID to use for the VPN tunnel. + */ + public open fun transportTransitGatewayAttachmentId(): String? = + unwrap(this).getTransportTransitGatewayAttachmentId() + + /** + * The transit gateway attachment ID to use for the VPN tunnel. + */ + public open fun transportTransitGatewayAttachmentId(`value`: String) { + unwrap(this).setTransportTransitGatewayAttachmentId(`value`) + } + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + */ + public open fun tunnelInsideIpVersion(): String? = unwrap(this).getTunnelInsideIpVersion() + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + */ + public open fun tunnelInsideIpVersion(`value`: String) { + unwrap(this).setTunnelInsideIpVersion(`value`) + } + /** * The type of VPN connection. */ @@ -222,6 +336,81 @@ public open class CfnVPNConnection( */ public fun customerGatewayId(customerGatewayId: String) + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + */ + public fun enableAcceleration(enableAcceleration: Boolean) + + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + */ + public fun enableAcceleration(enableAcceleration: IResolvable) + + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv4networkcidr) + * @param localIpv4NetworkCidr The IPv4 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + */ + public fun localIpv4NetworkCidr(localIpv4NetworkCidr: String) + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv6networkcidr) + * @param localIpv6NetworkCidr The IPv6 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + */ + public fun localIpv6NetworkCidr(localIpv6NetworkCidr: String) + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + * + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-outsideipaddresstype) + * @param outsideIpAddressType The type of IPv4 address assigned to the outside interface of the + * customer gateway device. + */ + public fun outsideIpAddressType(outsideIpAddressType: String) + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv4networkcidr) + * @param remoteIpv4NetworkCidr The IPv4 CIDR on the AWS side of the VPN connection. + */ + public fun remoteIpv4NetworkCidr(remoteIpv4NetworkCidr: String) + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv6networkcidr) + * @param remoteIpv6NetworkCidr The IPv6 CIDR on the AWS side of the VPN connection. + */ + public fun remoteIpv6NetworkCidr(remoteIpv6NetworkCidr: String) + /** * Indicates whether the VPN connection uses static routes only. * @@ -274,6 +463,27 @@ public open class CfnVPNConnection( */ public fun transitGatewayId(transitGatewayId: String) + /** + * The transit gateway attachment ID to use for the VPN tunnel. + * + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-transporttransitgatewayattachmentid) + * @param transportTransitGatewayAttachmentId The transit gateway attachment ID to use for the + * VPN tunnel. + */ + public fun transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId: String) + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * + * Default: `ipv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-tunnelinsideipversion) + * @param tunnelInsideIpVersion Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + */ + public fun tunnelInsideIpVersion(tunnelInsideIpVersion: String) + /** * The type of VPN connection. * @@ -335,6 +545,95 @@ public open class CfnVPNConnection( cdkBuilder.customerGatewayId(customerGatewayId) } + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + */ + override fun enableAcceleration(enableAcceleration: Boolean) { + cdkBuilder.enableAcceleration(enableAcceleration) + } + + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + */ + override fun enableAcceleration(enableAcceleration: IResolvable) { + cdkBuilder.enableAcceleration(enableAcceleration.let(IResolvable.Companion::unwrap)) + } + + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv4networkcidr) + * @param localIpv4NetworkCidr The IPv4 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + */ + override fun localIpv4NetworkCidr(localIpv4NetworkCidr: String) { + cdkBuilder.localIpv4NetworkCidr(localIpv4NetworkCidr) + } + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv6networkcidr) + * @param localIpv6NetworkCidr The IPv6 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + */ + override fun localIpv6NetworkCidr(localIpv6NetworkCidr: String) { + cdkBuilder.localIpv6NetworkCidr(localIpv6NetworkCidr) + } + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + * + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-outsideipaddresstype) + * @param outsideIpAddressType The type of IPv4 address assigned to the outside interface of the + * customer gateway device. + */ + override fun outsideIpAddressType(outsideIpAddressType: String) { + cdkBuilder.outsideIpAddressType(outsideIpAddressType) + } + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv4networkcidr) + * @param remoteIpv4NetworkCidr The IPv4 CIDR on the AWS side of the VPN connection. + */ + override fun remoteIpv4NetworkCidr(remoteIpv4NetworkCidr: String) { + cdkBuilder.remoteIpv4NetworkCidr(remoteIpv4NetworkCidr) + } + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv6networkcidr) + * @param remoteIpv6NetworkCidr The IPv6 CIDR on the AWS side of the VPN connection. + */ + override fun remoteIpv6NetworkCidr(remoteIpv6NetworkCidr: String) { + cdkBuilder.remoteIpv6NetworkCidr(remoteIpv6NetworkCidr) + } + /** * Indicates whether the VPN connection uses static routes only. * @@ -395,6 +694,31 @@ public open class CfnVPNConnection( cdkBuilder.transitGatewayId(transitGatewayId) } + /** + * The transit gateway attachment ID to use for the VPN tunnel. + * + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-transporttransitgatewayattachmentid) + * @param transportTransitGatewayAttachmentId The transit gateway attachment ID to use for the + * VPN tunnel. + */ + override fun transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId: String) { + cdkBuilder.transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId) + } + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * + * Default: `ipv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-tunnelinsideipversion) + * @param tunnelInsideIpVersion Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + */ + override fun tunnelInsideIpVersion(tunnelInsideIpVersion: String) { + cdkBuilder.tunnelInsideIpVersion(tunnelInsideIpVersion) + } + /** * The type of VPN connection. * @@ -597,7 +921,8 @@ public open class CfnVPNConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNConnection.VpnTunnelOptionsSpecificationProperty, - ) : CdkObject(cdkObject), VpnTunnelOptionsSpecificationProperty { + ) : CdkObject(cdkObject), + VpnTunnelOptionsSpecificationProperty { /** * The pre-shared key (PSK) to establish initial authentication between the virtual private * gateway and customer gateway. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionProps.kt index 1b76d9e6d2..ac5177ced4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionProps.kt @@ -26,12 +26,20 @@ import kotlin.collections.List * .customerGatewayId("customerGatewayId") * .type("type") * // the properties below are optional + * .enableAcceleration(false) + * .localIpv4NetworkCidr("localIpv4NetworkCidr") + * .localIpv6NetworkCidr("localIpv6NetworkCidr") + * .outsideIpAddressType("outsideIpAddressType") + * .remoteIpv4NetworkCidr("remoteIpv4NetworkCidr") + * .remoteIpv6NetworkCidr("remoteIpv6NetworkCidr") * .staticRoutesOnly(false) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) * .transitGatewayId("transitGatewayId") + * .transportTransitGatewayAttachmentId("transportTransitGatewayAttachmentId") + * .tunnelInsideIpVersion("tunnelInsideIpVersion") * .vpnGatewayId("vpnGatewayId") * .vpnTunnelOptionsSpecifications(List.of(VpnTunnelOptionsSpecificationProperty.builder() * .preSharedKey("preSharedKey") @@ -50,6 +58,62 @@ public interface CfnVPNConnectionProps { */ public fun customerGatewayId(): String + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + */ + public fun enableAcceleration(): Any? = unwrap(this).getEnableAcceleration() + + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv4networkcidr) + */ + public fun localIpv4NetworkCidr(): String? = unwrap(this).getLocalIpv4NetworkCidr() + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv6networkcidr) + */ + public fun localIpv6NetworkCidr(): String? = unwrap(this).getLocalIpv6NetworkCidr() + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + * + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-outsideipaddresstype) + */ + public fun outsideIpAddressType(): String? = unwrap(this).getOutsideIpAddressType() + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv4networkcidr) + */ + public fun remoteIpv4NetworkCidr(): String? = unwrap(this).getRemoteIpv4NetworkCidr() + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv6networkcidr) + */ + public fun remoteIpv6NetworkCidr(): String? = unwrap(this).getRemoteIpv6NetworkCidr() + /** * Indicates whether the VPN connection uses static routes only. * @@ -78,6 +142,25 @@ public interface CfnVPNConnectionProps { */ public fun transitGatewayId(): String? = unwrap(this).getTransitGatewayId() + /** + * The transit gateway attachment ID to use for the VPN tunnel. + * + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-transporttransitgatewayattachmentid) + */ + public fun transportTransitGatewayAttachmentId(): String? = + unwrap(this).getTransportTransitGatewayAttachmentId() + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * + * Default: `ipv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-tunnelinsideipversion) + */ + public fun tunnelInsideIpVersion(): String? = unwrap(this).getTunnelInsideIpVersion() + /** * The type of VPN connection. * @@ -112,6 +195,53 @@ public interface CfnVPNConnectionProps { */ public fun customerGatewayId(customerGatewayId: String) + /** + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + * Default: `false` + */ + public fun enableAcceleration(enableAcceleration: Boolean) + + /** + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + * Default: `false` + */ + public fun enableAcceleration(enableAcceleration: IResolvable) + + /** + * @param localIpv4NetworkCidr The IPv4 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + * Default: `0.0.0.0/0` + */ + public fun localIpv4NetworkCidr(localIpv4NetworkCidr: String) + + /** + * @param localIpv6NetworkCidr The IPv6 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + * Default: `::/0` + */ + public fun localIpv6NetworkCidr(localIpv6NetworkCidr: String) + + /** + * @param outsideIpAddressType The type of IPv4 address assigned to the outside interface of the + * customer gateway device. + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + */ + public fun outsideIpAddressType(outsideIpAddressType: String) + + /** + * @param remoteIpv4NetworkCidr The IPv4 CIDR on the AWS side of the VPN connection. + * Default: `0.0.0.0/0` + */ + public fun remoteIpv4NetworkCidr(remoteIpv4NetworkCidr: String) + + /** + * @param remoteIpv6NetworkCidr The IPv6 CIDR on the AWS side of the VPN connection. + * Default: `::/0` + */ + public fun remoteIpv6NetworkCidr(remoteIpv6NetworkCidr: String) + /** * @param staticRoutesOnly Indicates whether the VPN connection uses static routes only. * Static routes must be used for devices that don't support BGP. @@ -146,6 +276,19 @@ public interface CfnVPNConnectionProps { */ public fun transitGatewayId(transitGatewayId: String) + /** + * @param transportTransitGatewayAttachmentId The transit gateway attachment ID to use for the + * VPN tunnel. + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + */ + public fun transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId: String) + + /** + * @param tunnelInsideIpVersion Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * Default: `ipv4` + */ + public fun tunnelInsideIpVersion(tunnelInsideIpVersion: String) + /** * @param type The type of VPN connection. */ @@ -185,6 +328,67 @@ public interface CfnVPNConnectionProps { cdkBuilder.customerGatewayId(customerGatewayId) } + /** + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + * Default: `false` + */ + override fun enableAcceleration(enableAcceleration: Boolean) { + cdkBuilder.enableAcceleration(enableAcceleration) + } + + /** + * @param enableAcceleration Indicate whether to enable acceleration for the VPN connection. + * Default: `false` + */ + override fun enableAcceleration(enableAcceleration: IResolvable) { + cdkBuilder.enableAcceleration(enableAcceleration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param localIpv4NetworkCidr The IPv4 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + * Default: `0.0.0.0/0` + */ + override fun localIpv4NetworkCidr(localIpv4NetworkCidr: String) { + cdkBuilder.localIpv4NetworkCidr(localIpv4NetworkCidr) + } + + /** + * @param localIpv6NetworkCidr The IPv6 CIDR on the customer gateway (on-premises) side of the + * VPN connection. + * Default: `::/0` + */ + override fun localIpv6NetworkCidr(localIpv6NetworkCidr: String) { + cdkBuilder.localIpv6NetworkCidr(localIpv6NetworkCidr) + } + + /** + * @param outsideIpAddressType The type of IPv4 address assigned to the outside interface of the + * customer gateway device. + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + */ + override fun outsideIpAddressType(outsideIpAddressType: String) { + cdkBuilder.outsideIpAddressType(outsideIpAddressType) + } + + /** + * @param remoteIpv4NetworkCidr The IPv4 CIDR on the AWS side of the VPN connection. + * Default: `0.0.0.0/0` + */ + override fun remoteIpv4NetworkCidr(remoteIpv4NetworkCidr: String) { + cdkBuilder.remoteIpv4NetworkCidr(remoteIpv4NetworkCidr) + } + + /** + * @param remoteIpv6NetworkCidr The IPv6 CIDR on the AWS side of the VPN connection. + * Default: `::/0` + */ + override fun remoteIpv6NetworkCidr(remoteIpv6NetworkCidr: String) { + cdkBuilder.remoteIpv6NetworkCidr(remoteIpv6NetworkCidr) + } + /** * @param staticRoutesOnly Indicates whether the VPN connection uses static routes only. * Static routes must be used for devices that don't support BGP. @@ -227,6 +431,23 @@ public interface CfnVPNConnectionProps { cdkBuilder.transitGatewayId(transitGatewayId) } + /** + * @param transportTransitGatewayAttachmentId The transit gateway attachment ID to use for the + * VPN tunnel. + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + */ + override fun transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId: String) { + cdkBuilder.transportTransitGatewayAttachmentId(transportTransitGatewayAttachmentId) + } + + /** + * @param tunnelInsideIpVersion Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * Default: `ipv4` + */ + override fun tunnelInsideIpVersion(tunnelInsideIpVersion: String) { + cdkBuilder.tunnelInsideIpVersion(tunnelInsideIpVersion) + } + /** * @param type The type of VPN connection. */ @@ -269,7 +490,8 @@ public interface CfnVPNConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNConnectionProps, - ) : CdkObject(cdkObject), CfnVPNConnectionProps { + ) : CdkObject(cdkObject), + CfnVPNConnectionProps { /** * The ID of the customer gateway at your end of the VPN connection. * @@ -277,6 +499,62 @@ public interface CfnVPNConnectionProps { */ override fun customerGatewayId(): String = unwrap(this).getCustomerGatewayId() + /** + * Indicate whether to enable acceleration for the VPN connection. + * + * Default: `false` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-enableacceleration) + */ + override fun enableAcceleration(): Any? = unwrap(this).getEnableAcceleration() + + /** + * The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv4networkcidr) + */ + override fun localIpv4NetworkCidr(): String? = unwrap(this).getLocalIpv4NetworkCidr() + + /** + * The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-localipv6networkcidr) + */ + override fun localIpv6NetworkCidr(): String? = unwrap(this).getLocalIpv6NetworkCidr() + + /** + * The type of IPv4 address assigned to the outside interface of the customer gateway device. + * + * Valid values: `PrivateIpv4` | `PublicIpv4` + * + * Default: `PublicIpv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-outsideipaddresstype) + */ + override fun outsideIpAddressType(): String? = unwrap(this).getOutsideIpAddressType() + + /** + * The IPv4 CIDR on the AWS side of the VPN connection. + * + * Default: `0.0.0.0/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv4networkcidr) + */ + override fun remoteIpv4NetworkCidr(): String? = unwrap(this).getRemoteIpv4NetworkCidr() + + /** + * The IPv6 CIDR on the AWS side of the VPN connection. + * + * Default: `::/0` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-remoteipv6networkcidr) + */ + override fun remoteIpv6NetworkCidr(): String? = unwrap(this).getRemoteIpv6NetworkCidr() + /** * Indicates whether the VPN connection uses static routes only. * @@ -305,6 +583,25 @@ public interface CfnVPNConnectionProps { */ override fun transitGatewayId(): String? = unwrap(this).getTransitGatewayId() + /** + * The transit gateway attachment ID to use for the VPN tunnel. + * + * Required if `OutsideIpAddressType` is set to `PrivateIpv4` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-transporttransitgatewayattachmentid) + */ + override fun transportTransitGatewayAttachmentId(): String? = + unwrap(this).getTransportTransitGatewayAttachmentId() + + /** + * Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + * + * Default: `ipv4` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html#cfn-ec2-vpnconnection-tunnelinsideipversion) + */ + override fun tunnelInsideIpVersion(): String? = unwrap(this).getTunnelInsideIpVersion() + /** * The type of VPN connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRoute.kt index 4345a42209..1cdc2fe25c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRoute.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPNConnectionRoute( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNConnectionRoute, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRouteProps.kt index ad50b7054f..cea88ef05b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNConnectionRouteProps.kt @@ -82,7 +82,8 @@ public interface CfnVPNConnectionRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNConnectionRouteProps, - ) : CdkObject(cdkObject), CfnVPNConnectionRouteProps { + ) : CdkObject(cdkObject), + CfnVPNConnectionRouteProps { /** * The CIDR block associated with the local subnet of the customer network. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGateway.kt index 2e03aed937..22a3e573e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGateway.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPNGateway( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayProps.kt index 46abee58f0..6ce65fdfb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayProps.kt @@ -118,7 +118,8 @@ public interface CfnVPNGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNGatewayProps, - ) : CdkObject(cdkObject), CfnVPNGatewayProps { + ) : CdkObject(cdkObject), + CfnVPNGatewayProps { /** * The private Autonomous System Number (ASN) for the Amazon side of a BGP session. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagation.kt index d4e1567333..548270d041 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagation.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPNGatewayRoutePropagation( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNGatewayRoutePropagation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagationProps.kt index e2f4f91933..75b65805f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVPNGatewayRoutePropagationProps.kt @@ -112,7 +112,8 @@ public interface CfnVPNGatewayRoutePropagationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVPNGatewayRoutePropagationProps, - ) : CdkObject(cdkObject), CfnVPNGatewayRoutePropagationProps { + ) : CdkObject(cdkObject), + CfnVPNGatewayRoutePropagationProps { /** * The ID of the route table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpoint.kt index 4f25186379..a9edef867a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpoint.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVerifiedAccessEndpoint( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -993,7 +995,8 @@ public open class CfnVerifiedAccessEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint.LoadBalancerOptionsProperty, - ) : CdkObject(cdkObject), LoadBalancerOptionsProperty { + ) : CdkObject(cdkObject), + LoadBalancerOptionsProperty { /** * The ARN of the load balancer. * @@ -1138,7 +1141,8 @@ public open class CfnVerifiedAccessEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty, - ) : CdkObject(cdkObject), NetworkInterfaceOptionsProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceOptionsProperty { /** * The ID of the network interface. * @@ -1280,7 +1284,8 @@ public open class CfnVerifiedAccessEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint.SseSpecificationProperty, - ) : CdkObject(cdkObject), SseSpecificationProperty { + ) : CdkObject(cdkObject), + SseSpecificationProperty { /** * Enable or disable the use of customer managed KMS keys for server side encryption. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpointProps.kt index 4a7717d043..d86ae93e60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessEndpointProps.kt @@ -493,7 +493,8 @@ public interface CfnVerifiedAccessEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpointProps, - ) : CdkObject(cdkObject), CfnVerifiedAccessEndpointProps { + ) : CdkObject(cdkObject), + CfnVerifiedAccessEndpointProps { /** * The DNS name for users to reach your application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroup.kt index a75df6d384..4bfbf073ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroup.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVerifiedAccessGroup( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -534,7 +536,8 @@ public open class CfnVerifiedAccessGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessGroup.SseSpecificationProperty, - ) : CdkObject(cdkObject), SseSpecificationProperty { + ) : CdkObject(cdkObject), + SseSpecificationProperty { /** * Enable or disable the use of customer managed KMS keys for server side encryption. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroupProps.kt index 1cde381217..8d68800501 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessGroupProps.kt @@ -225,7 +225,8 @@ public interface CfnVerifiedAccessGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessGroupProps, - ) : CdkObject(cdkObject), CfnVerifiedAccessGroupProps { + ) : CdkObject(cdkObject), + CfnVerifiedAccessGroupProps { /** * A description for the AWS Verified Access group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstance.kt index 98747def9a..249c275ede 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstance.kt @@ -72,7 +72,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVerifiedAccessInstance( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -616,7 +618,8 @@ public open class CfnVerifiedAccessInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance.CloudWatchLogsProperty, - ) : CdkObject(cdkObject), CloudWatchLogsProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsProperty { /** * Indicates whether logging is enabled. * @@ -737,7 +740,8 @@ public open class CfnVerifiedAccessInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance.KinesisDataFirehoseProperty, - ) : CdkObject(cdkObject), KinesisDataFirehoseProperty { + ) : CdkObject(cdkObject), + KinesisDataFirehoseProperty { /** * The ID of the delivery stream. * @@ -896,7 +900,8 @@ public open class CfnVerifiedAccessInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * The bucket name. * @@ -1191,7 +1196,8 @@ public open class CfnVerifiedAccessInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance.VerifiedAccessLogsProperty, - ) : CdkObject(cdkObject), VerifiedAccessLogsProperty { + ) : CdkObject(cdkObject), + VerifiedAccessLogsProperty { /** * CloudWatch Logs logging destination. * @@ -1389,7 +1395,8 @@ public open class CfnVerifiedAccessInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstance.VerifiedAccessTrustProviderProperty, - ) : CdkObject(cdkObject), VerifiedAccessTrustProviderProperty { + ) : CdkObject(cdkObject), + VerifiedAccessTrustProviderProperty { /** * A description for the AWS Verified Access trust provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstanceProps.kt index bd3fb94b8f..8ea9d5b1a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessInstanceProps.kt @@ -288,7 +288,8 @@ public interface CfnVerifiedAccessInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessInstanceProps, - ) : CdkObject(cdkObject), CfnVerifiedAccessInstanceProps { + ) : CdkObject(cdkObject), + CfnVerifiedAccessInstanceProps { /** * A description for the AWS Verified Access instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProvider.kt index d48768f66e..459d978d18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProvider.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVerifiedAccessTrustProvider( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessTrustProvider, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -694,7 +696,8 @@ public open class CfnVerifiedAccessTrustProvider( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessTrustProvider.DeviceOptionsProperty, - ) : CdkObject(cdkObject), DeviceOptionsProperty { + ) : CdkObject(cdkObject), + DeviceOptionsProperty { /** * The URL AWS Verified Access will use to verify the authenticity of the device tokens. * @@ -903,7 +906,8 @@ public open class CfnVerifiedAccessTrustProvider( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessTrustProvider.OidcOptionsProperty, - ) : CdkObject(cdkObject), OidcOptionsProperty { + ) : CdkObject(cdkObject), + OidcOptionsProperty { /** * The OIDC authorization endpoint. * @@ -1073,7 +1077,8 @@ public open class CfnVerifiedAccessTrustProvider( private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessTrustProvider.SseSpecificationProperty, - ) : CdkObject(cdkObject), SseSpecificationProperty { + ) : CdkObject(cdkObject), + SseSpecificationProperty { /** * Enable or disable the use of customer managed KMS keys for server side encryption. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProviderProps.kt index 32e29f165d..6250371a42 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVerifiedAccessTrustProviderProps.kt @@ -346,7 +346,8 @@ public interface CfnVerifiedAccessTrustProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVerifiedAccessTrustProviderProps, - ) : CdkObject(cdkObject), CfnVerifiedAccessTrustProviderProps { + ) : CdkObject(cdkObject), + CfnVerifiedAccessTrustProviderProps { /** * A description for the AWS Verified Access trust provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolume.kt index 6dda7edaca..f2ec593c19 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolume.kt @@ -83,7 +83,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVolume( cdkObject: software.amazon.awscdk.services.ec2.CfnVolume, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -387,8 +389,8 @@ public open class CfnVolume( * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On + * other instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is * 3,000 IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. @@ -638,8 +640,8 @@ public open class CfnVolume( * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On + * other instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is * 3,000 IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachment.kt index 1cf1566c50..64b11d5795 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachment.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVolumeAttachment( cdkObject: software.amazon.awscdk.services.ec2.CfnVolumeAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachmentProps.kt index 42cee8d8f7..e4c62d422c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeAttachmentProps.kt @@ -124,7 +124,8 @@ public interface CfnVolumeAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVolumeAttachmentProps, - ) : CdkObject(cdkObject), CfnVolumeAttachmentProps { + ) : CdkObject(cdkObject), + CfnVolumeAttachmentProps { /** * The device name (for example, `/dev/sdh` or `xvdh` ). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeProps.kt index 5df2b76d62..5a142e632e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CfnVolumeProps.kt @@ -99,8 +99,8 @@ public interface CfnVolumeProps { * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On other + * instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is 3,000 * IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. @@ -287,8 +287,8 @@ public interface CfnVolumeProps { * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On + * other instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is * 3,000 IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. @@ -474,8 +474,8 @@ public interface CfnVolumeProps { * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On + * other instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is * 3,000 IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. @@ -604,7 +604,8 @@ public interface CfnVolumeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CfnVolumeProps, - ) : CdkObject(cdkObject), CfnVolumeProps { + ) : CdkObject(cdkObject), + CfnVolumeProps { /** * Indicates whether the volume is auto-enabled for I/O operations. * @@ -658,8 +659,8 @@ public interface CfnVolumeProps { * * `io2` : 100 - 256,000 IOPS * * For `io2` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro - * System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances) - * . On other instances, you can achieve performance up to 32,000 IOPS. + * System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) . On + * other instances, you can achieve performance up to 32,000 IOPS. * * This parameter is required for `io1` and `io2` volumes. The default for `gp3` volumes is * 3,000 IOPS. This parameter is not supported for `gp2` , `st1` , `sc1` , or `standard` volumes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleOptions.kt index 42243c6644..2073e48425 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleOptions.kt @@ -105,7 +105,8 @@ public interface ClientVpnAuthorizationRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnAuthorizationRuleOptions, - ) : CdkObject(cdkObject), ClientVpnAuthorizationRuleOptions { + ) : CdkObject(cdkObject), + ClientVpnAuthorizationRuleOptions { /** * The IPv4 address range, in CIDR notation, of the network for which access is being * authorized. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleProps.kt index 5c1c3a2e2d..441446feea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnAuthorizationRuleProps.kt @@ -106,7 +106,8 @@ public interface ClientVpnAuthorizationRuleProps : ClientVpnAuthorizationRuleOpt private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnAuthorizationRuleProps, - ) : CdkObject(cdkObject), ClientVpnAuthorizationRuleProps { + ) : CdkObject(cdkObject), + ClientVpnAuthorizationRuleProps { /** * The IPv4 address range, in CIDR notation, of the network for which access is being * authorized. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpoint.kt index c80819a661..4f40398520 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpoint.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ClientVpnEndpoint( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnEndpoint, -) : Resource(cdkObject), IClientVpnEndpoint { +) : Resource(cdkObject), + IClientVpnEndpoint { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointAttributes.kt index 4d340bd83c..8c33484a0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointAttributes.kt @@ -87,7 +87,8 @@ public interface ClientVpnEndpointAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnEndpointAttributes, - ) : CdkObject(cdkObject), ClientVpnEndpointAttributes { + ) : CdkObject(cdkObject), + ClientVpnEndpointAttributes { /** * The endpoint ID. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointOptions.kt index 11be64919c..95c01de6d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointOptions.kt @@ -507,7 +507,8 @@ public interface ClientVpnEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnEndpointOptions, - ) : CdkObject(cdkObject), ClientVpnEndpointOptions { + ) : CdkObject(cdkObject), + ClientVpnEndpointOptions { /** * Whether to authorize all users to the VPC CIDR. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointProps.kt index 7135a3fd6f..32a9d014ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnEndpointProps.kt @@ -396,7 +396,8 @@ public interface ClientVpnEndpointProps : ClientVpnEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnEndpointProps, - ) : CdkObject(cdkObject), ClientVpnEndpointProps { + ) : CdkObject(cdkObject), + ClientVpnEndpointProps { /** * Whether to authorize all users to the VPC CIDR. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteOptions.kt index 3d4a15716f..c2d8b55bd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteOptions.kt @@ -119,7 +119,8 @@ public interface ClientVpnRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnRouteOptions, - ) : CdkObject(cdkObject), ClientVpnRouteOptions { + ) : CdkObject(cdkObject), + ClientVpnRouteOptions { /** * The IPv4 address range, in CIDR notation, of the route destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteProps.kt index d17ae97b2f..0b3b96b75b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ClientVpnRouteProps.kt @@ -114,7 +114,8 @@ public interface ClientVpnRouteProps : ClientVpnRouteOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ClientVpnRouteProps, - ) : CdkObject(cdkObject), ClientVpnRouteProps { + ) : CdkObject(cdkObject), + ClientVpnRouteProps { /** * The IPv4 address range, in CIDR notation, of the route destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CommonNetworkAclEntryOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CommonNetworkAclEntryOptions.kt index 2e1fc3a483..6fd5145c59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CommonNetworkAclEntryOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CommonNetworkAclEntryOptions.kt @@ -182,7 +182,8 @@ public interface CommonNetworkAclEntryOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CommonNetworkAclEntryOptions, - ) : CdkObject(cdkObject), CommonNetworkAclEntryOptions { + ) : CdkObject(cdkObject), + CommonNetworkAclEntryOptions { /** * The CIDR range to allow or deny. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigSetProps.kt index 7854d018d9..49362295c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigSetProps.kt @@ -103,7 +103,8 @@ public interface ConfigSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ConfigSetProps, - ) : CdkObject(cdkObject), ConfigSetProps { + ) : CdkObject(cdkObject), + ConfigSetProps { /** * The definitions of each config set. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigureNatOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigureNatOptions.kt index 190f4fb9e7..f547095b08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigureNatOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConfigureNatOptions.kt @@ -121,7 +121,8 @@ public interface ConfigureNatOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ConfigureNatOptions, - ) : CdkObject(cdkObject), ConfigureNatOptions { + ) : CdkObject(cdkObject), + ConfigureNatOptions { /** * The public subnets where the NAT providers need to be placed. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionRule.kt index 30031c381d..fd8675e7d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionRule.kt @@ -155,7 +155,8 @@ public interface ConnectionRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ConnectionRule, - ) : CdkObject(cdkObject), ConnectionRule { + ) : CdkObject(cdkObject), + ConnectionRule { /** * Description of this connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Connections.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Connections.kt index bf261208a9..8d6fe56d63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Connections.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Connections.kt @@ -39,7 +39,8 @@ import kotlin.jvm.JvmName */ public open class Connections( cdkObject: software.amazon.awscdk.services.ec2.Connections, -) : CdkObject(cdkObject), IConnectable { +) : CdkObject(cdkObject), + IConnectable { public constructor() : this(software.amazon.awscdk.services.ec2.Connections() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionsProps.kt index 5408578f33..0ba3f3c938 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ConnectionsProps.kt @@ -132,7 +132,8 @@ public interface ConnectionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ConnectionsProps, - ) : CdkObject(cdkObject), ConnectionsProps { + ) : CdkObject(cdkObject), + ConnectionsProps { /** * Default port range for initiating connections to and from this object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CreateIpv6CidrBlocksRequest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CreateIpv6CidrBlocksRequest.kt index 9da95a4979..3997a3cfc1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CreateIpv6CidrBlocksRequest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/CreateIpv6CidrBlocksRequest.kt @@ -96,7 +96,8 @@ public interface CreateIpv6CidrBlocksRequest { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.CreateIpv6CidrBlocksRequest, - ) : CdkObject(cdkObject), CreateIpv6CidrBlocksRequest { + ) : CdkObject(cdkObject), + CreateIpv6CidrBlocksRequest { /** * The IPv6 CIDR block string representation. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/DestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/DestinationOptions.kt index 5b86b4fb20..ee0bff23f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/DestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/DestinationOptions.kt @@ -81,7 +81,8 @@ public interface DestinationOptions : S3DestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.DestinationOptions, - ) : CdkObject(cdkObject), DestinationOptions { + ) : CdkObject(cdkObject), + DestinationOptions { /** * The format for the flow log. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptions.kt index 1e413c827a..80b241bc59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptions.kt @@ -16,12 +16,19 @@ import kotlin.Unit * Example: * * ``` - * BastionHostLinux host = BastionHostLinux.Builder.create(this, "BastionHost") + * Vpc vpc; + * InstanceType instanceType; + * IMachineImage machineImage; + * Instance.Builder.create(this, "Instance") * .vpc(vpc) + * .instanceType(instanceType) + * .machineImage(machineImage) + * // ... * .blockDevices(List.of(BlockDevice.builder() - * .deviceName("/dev/sdh") - * .volume(BlockDeviceVolume.ebs(10, EbsDeviceOptions.builder() - * .encrypted(true) + * .deviceName("/dev/sda1") + * .volume(BlockDeviceVolume.ebs(100, EbsDeviceOptions.builder() + * .volumeType(EbsDeviceVolumeType.GP3) + * .throughput(250) * .build())) * .build())) * .build(); @@ -84,6 +91,16 @@ public interface EbsDeviceOptions : EbsDeviceOptionsBase { */ public fun kmsKey(kmsKey: IKey) + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + public fun throughput(throughput: Number) + /** * @param volumeType The EBS volume type. */ @@ -130,6 +147,18 @@ public interface EbsDeviceOptions : EbsDeviceOptionsBase { cdkBuilder.kmsKey(kmsKey.let(IKey.Companion::unwrap)) } + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + override fun throughput(throughput: Number) { + cdkBuilder.throughput(throughput) + } + /** * @param volumeType The EBS volume type. */ @@ -142,7 +171,8 @@ public interface EbsDeviceOptions : EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.EbsDeviceOptions, - ) : CdkObject(cdkObject), EbsDeviceOptions { + ) : CdkObject(cdkObject), + EbsDeviceOptions { /** * Indicates whether to delete the volume when the instance is terminated. * @@ -187,6 +217,21 @@ public interface EbsDeviceOptions : EbsDeviceOptionsBase { */ override fun kmsKey(): IKey? = unwrap(this).getKmsKey()?.let(IKey::wrap) + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + override fun throughput(): Number? = unwrap(this).getThroughput() + /** * The EBS volume type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptionsBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptionsBase.kt index 991a570a70..3e4179844f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptionsBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceOptionsBase.kt @@ -21,6 +21,7 @@ import kotlin.Unit * EbsDeviceOptionsBase ebsDeviceOptionsBase = EbsDeviceOptionsBase.builder() * .deleteOnTermination(false) * .iops(123) + * .throughput(123) * .volumeType(EbsDeviceVolumeType.STANDARD) * .build(); * ``` @@ -47,6 +48,21 @@ public interface EbsDeviceOptionsBase { */ public fun iops(): Number? = unwrap(this).getIops() + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + public fun throughput(): Number? = unwrap(this).getThroughput() + /** * The EBS volume type. * @@ -79,6 +95,16 @@ public interface EbsDeviceOptionsBase { */ public fun iops(iops: Number) + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + public fun throughput(throughput: Number) + /** * @param volumeType The EBS volume type. */ @@ -108,6 +134,18 @@ public interface EbsDeviceOptionsBase { cdkBuilder.iops(iops) } + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + override fun throughput(throughput: Number) { + cdkBuilder.throughput(throughput) + } + /** * @param volumeType The EBS volume type. */ @@ -121,7 +159,8 @@ public interface EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.EbsDeviceOptionsBase, - ) : CdkObject(cdkObject), EbsDeviceOptionsBase { + ) : CdkObject(cdkObject), + EbsDeviceOptionsBase { /** * Indicates whether to delete the volume when the instance is terminated. * @@ -143,6 +182,21 @@ public interface EbsDeviceOptionsBase { */ override fun iops(): Number? = unwrap(this).getIops() + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + override fun throughput(): Number? = unwrap(this).getThroughput() + /** * The EBS volume type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceProps.kt index fa992246bd..2e2da5e2d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceProps.kt @@ -28,6 +28,7 @@ import kotlin.Unit * .iops(123) * .kmsKey(key) * .snapshotId("snapshotId") + * .throughput(123) * .volumeSize(123) * .volumeType(EbsDeviceVolumeType.STANDARD) * .build(); @@ -62,6 +63,21 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions, EbsDeviceOptions { */ public fun snapshotId(): String? = unwrap(this).getSnapshotId() + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + public override fun throughput(): Number? = unwrap(this).getThroughput() + /** * The EBS volume type. * @@ -112,6 +128,16 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions, EbsDeviceOptions { */ public fun snapshotId(snapshotId: String) + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + public fun throughput(throughput: Number) + /** * @param volumeSize The volume size, in Gibibytes (GiB). * If you specify volumeSize, it must be equal or greater than the size of the snapshot. @@ -171,6 +197,18 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions, EbsDeviceOptions { cdkBuilder.snapshotId(snapshotId) } + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + override fun throughput(throughput: Number) { + cdkBuilder.throughput(throughput) + } + /** * @param volumeSize The volume size, in Gibibytes (GiB). * If you specify volumeSize, it must be equal or greater than the size of the snapshot. @@ -191,7 +229,8 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions, EbsDeviceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.EbsDeviceProps, - ) : CdkObject(cdkObject), EbsDeviceProps { + ) : CdkObject(cdkObject), + EbsDeviceProps { /** * Indicates whether to delete the volume when the instance is terminated. * @@ -243,6 +282,21 @@ public interface EbsDeviceProps : EbsDeviceSnapshotOptions, EbsDeviceOptions { */ override fun snapshotId(): String? = unwrap(this).getSnapshotId() + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + override fun throughput(): Number? = unwrap(this).getThroughput() + /** * The volume size, in Gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceSnapshotOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceSnapshotOptions.kt index db8b69481a..210d3c7c94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceSnapshotOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EbsDeviceSnapshotOptions.kt @@ -21,6 +21,7 @@ import kotlin.Unit * EbsDeviceSnapshotOptions ebsDeviceSnapshotOptions = EbsDeviceSnapshotOptions.builder() * .deleteOnTermination(false) * .iops(123) + * .throughput(123) * .volumeSize(123) * .volumeType(EbsDeviceVolumeType.STANDARD) * .build(); @@ -56,6 +57,16 @@ public interface EbsDeviceSnapshotOptions : EbsDeviceOptionsBase { */ public fun iops(iops: Number) + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + public fun throughput(throughput: Number) + /** * @param volumeSize The volume size, in Gibibytes (GiB). * If you specify volumeSize, it must be equal or greater than the size of the snapshot. @@ -91,6 +102,18 @@ public interface EbsDeviceSnapshotOptions : EbsDeviceOptionsBase { cdkBuilder.iops(iops) } + /** + * @param throughput The throughput to provision for a `gp3` volume. + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + */ + override fun throughput(throughput: Number) { + cdkBuilder.throughput(throughput) + } + /** * @param volumeSize The volume size, in Gibibytes (GiB). * If you specify volumeSize, it must be equal or greater than the size of the snapshot. @@ -112,7 +135,8 @@ public interface EbsDeviceSnapshotOptions : EbsDeviceOptionsBase { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.EbsDeviceSnapshotOptions, - ) : CdkObject(cdkObject), EbsDeviceSnapshotOptions { + ) : CdkObject(cdkObject), + EbsDeviceSnapshotOptions { /** * Indicates whether to delete the volume when the instance is terminated. * @@ -134,6 +158,21 @@ public interface EbsDeviceSnapshotOptions : EbsDeviceOptionsBase { */ override fun iops(): Number? = unwrap(this).getIops() + /** + * The throughput to provision for a `gp3` volume. + * + * Valid Range: Minimum value of 125. Maximum value of 1000. + * + * `gp3` volumes deliver a consistent baseline throughput performance of 125 MiB/s. + * You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per + * provisioned IOPS. + * + * Default: - 125 MiB/s. + * + * [Documentation](https://docs.aws.amazon.com/ebs/latest/userguide/general-purpose.html#gp3-performance) + */ + override fun throughput(): Number? = unwrap(this).getThroughput() + /** * The volume size, in Gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EnableVpnGatewayOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EnableVpnGatewayOptions.kt index 363bfcdde6..f8f6f0048c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EnableVpnGatewayOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/EnableVpnGatewayOptions.kt @@ -112,7 +112,8 @@ public interface EnableVpnGatewayOptions : VpnGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.EnableVpnGatewayOptions, - ) : CdkObject(cdkObject), EnableVpnGatewayOptions { + ) : CdkObject(cdkObject), + EnableVpnGatewayOptions { /** * Explicitly specify an Asn or let aws pick an Asn for you. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ExecuteFileOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ExecuteFileOptions.kt index 371db58b84..41d87ab3fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ExecuteFileOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ExecuteFileOptions.kt @@ -83,7 +83,8 @@ public interface ExecuteFileOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ExecuteFileOptions, - ) : CdkObject(cdkObject), ExecuteFileOptions { + ) : CdkObject(cdkObject), + ExecuteFileOptions { /** * The arguments to be passed to the file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLog.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLog.kt index 0707db58a4..a3b45c0fbd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLog.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLog.kt @@ -27,7 +27,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FlowLog( cdkObject: software.amazon.awscdk.services.ec2.FlowLog, -) : Resource(cdkObject), IFlowLog { +) : Resource(cdkObject), + IFlowLog { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogDestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogDestinationConfig.kt index 079f10c729..91dc3c111f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogDestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogDestinationConfig.kt @@ -211,7 +211,8 @@ public interface FlowLogDestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.FlowLogDestinationConfig, - ) : CdkObject(cdkObject), FlowLogDestinationConfig { + ) : CdkObject(cdkObject), + FlowLogDestinationConfig { /** * The ARN of Kinesis Data Firehose delivery stream to publish the flow logs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogOptions.kt index 1c48c025aa..59af4c44b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogOptions.kt @@ -192,7 +192,8 @@ public interface FlowLogOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.FlowLogOptions, - ) : CdkObject(cdkObject), FlowLogOptions { + ) : CdkObject(cdkObject), + FlowLogOptions { /** * Specifies the type of destination to which the flow log data is to be published. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogProps.kt index 0803085af3..2a9d701f82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/FlowLogProps.kt @@ -178,7 +178,8 @@ public interface FlowLogProps : FlowLogOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.FlowLogProps, - ) : CdkObject(cdkObject), FlowLogProps { + ) : CdkObject(cdkObject), + FlowLogProps { /** * Specifies the type of destination to which the flow log data is to be published. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayConfig.kt index 6aa84c83ad..d550bb6074 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayConfig.kt @@ -73,7 +73,8 @@ public interface GatewayConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.GatewayConfig, - ) : CdkObject(cdkObject), GatewayConfig { + ) : CdkObject(cdkObject), + GatewayConfig { /** * Availability Zone. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpoint.kt index a3ffe2579b..2e9582b49a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpoint.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class GatewayVpcEndpoint( cdkObject: software.amazon.awscdk.services.ec2.GatewayVpcEndpoint, -) : VpcEndpoint(cdkObject), IGatewayVpcEndpoint { +) : VpcEndpoint(cdkObject), + IGatewayVpcEndpoint { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointAwsService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointAwsService.kt index 2b2060bd8a..4e1a7b3e93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointAwsService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointAwsService.kt @@ -37,7 +37,8 @@ import kotlin.String */ public open class GatewayVpcEndpointAwsService( cdkObject: software.amazon.awscdk.services.ec2.GatewayVpcEndpointAwsService, -) : CdkObject(cdkObject), IGatewayVpcEndpointService { +) : CdkObject(cdkObject), + IGatewayVpcEndpointService { public constructor(name: String) : this(software.amazon.awscdk.services.ec2.GatewayVpcEndpointAwsService(name) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointOptions.kt index 549e5581a8..96b17e59e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointOptions.kt @@ -124,7 +124,8 @@ public interface GatewayVpcEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.GatewayVpcEndpointOptions, - ) : CdkObject(cdkObject), GatewayVpcEndpointOptions { + ) : CdkObject(cdkObject), + GatewayVpcEndpointOptions { /** * The service to use for this gateway VPC endpoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointProps.kt index 408a06f496..031afebb12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GatewayVpcEndpointProps.kt @@ -14,25 +14,26 @@ import kotlin.collections.List * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.ec2.*; - * IGatewayVpcEndpointService gatewayVpcEndpointService; - * Subnet subnet; - * SubnetFilter subnetFilter; - * Vpc vpc; - * GatewayVpcEndpointProps gatewayVpcEndpointProps = GatewayVpcEndpointProps.builder() - * .service(gatewayVpcEndpointService) - * .vpc(vpc) - * // the properties below are optional - * .subnets(List.of(SubnetSelection.builder() - * .availabilityZones(List.of("availabilityZones")) - * .onePerAz(false) - * .subnetFilters(List.of(subnetFilter)) - * .subnetGroupName("subnetGroupName") + * Stack stack = new Stack(); + * VpcV2 myVpc = new VpcV2(this, "Vpc"); + * RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable") + * .vpc(myVpc) + * .build(); + * SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet") + * .vpc(myVpc) + * .availabilityZone("eu-west-2a") + * .ipv4CidrBlock(new IpCidr("10.0.0.0/24")) + * .subnetType(SubnetType.PRIVATE) + * .build(); + * GatewayVpcEndpoint dynamoEndpoint = GatewayVpcEndpoint.Builder.create(this, "DynamoEndpoint") + * .service(GatewayVpcEndpointAwsService.DYNAMODB) + * .vpc(myVpc) * .subnets(List.of(subnet)) - * .subnetType(SubnetType.PRIVATE_ISOLATED) - * .build())) + * .build(); + * Route.Builder.create(this, "DynamoDBRoute") + * .routeTable(routeTable) + * .destination("0.0.0.0/0") + * .target(Map.of("endpoint", dynamoEndpoint)) * .build(); * ``` */ @@ -112,7 +113,8 @@ public interface GatewayVpcEndpointProps : GatewayVpcEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.GatewayVpcEndpointProps, - ) : CdkObject(cdkObject), GatewayVpcEndpointProps { + ) : CdkObject(cdkObject), + GatewayVpcEndpointProps { /** * The service to use for this gateway VPC endpoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImage.kt index 20deaca0af..a568245c06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImage.kt @@ -37,7 +37,8 @@ import kotlin.collections.Map */ public open class GenericLinuxImage( cdkObject: software.amazon.awscdk.services.ec2.GenericLinuxImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor(amiMap: Map) : this(software.amazon.awscdk.services.ec2.GenericLinuxImage(amiMap) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImageProps.kt index 3f2d9178c4..855db23127 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericLinuxImageProps.kt @@ -58,7 +58,8 @@ public interface GenericLinuxImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.GenericLinuxImageProps, - ) : CdkObject(cdkObject), GenericLinuxImageProps { + ) : CdkObject(cdkObject), + GenericLinuxImageProps { /** * Initial user data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericSSMParameterImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericSSMParameterImage.kt index 7acc88d7a4..16a28ad05a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericSSMParameterImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericSSMParameterImage.kt @@ -29,7 +29,8 @@ import kotlin.String */ public open class GenericSSMParameterImage( cdkObject: software.amazon.awscdk.services.ec2.GenericSSMParameterImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor(parameterName: String, os: OperatingSystemType) : this(software.amazon.awscdk.services.ec2.GenericSSMParameterImage(parameterName, os.let(OperatingSystemType.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImage.kt index c02cb1179e..a8234554f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImage.kt @@ -29,7 +29,8 @@ import kotlin.collections.Map */ public open class GenericWindowsImage( cdkObject: software.amazon.awscdk.services.ec2.GenericWindowsImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor(amiMap: Map) : this(software.amazon.awscdk.services.ec2.GenericWindowsImage(amiMap) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImageProps.kt index f436dfd35e..937006c00b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/GenericWindowsImageProps.kt @@ -58,7 +58,8 @@ public interface GenericWindowsImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.GenericWindowsImageProps, - ) : CdkObject(cdkObject), GenericWindowsImageProps { + ) : CdkObject(cdkObject), + GenericWindowsImageProps { /** * Initial user data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnConnectionHandler.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnConnectionHandler.kt index 407951101d..a242e6dd0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnConnectionHandler.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnConnectionHandler.kt @@ -22,7 +22,8 @@ public interface IClientVpnConnectionHandler { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IClientVpnConnectionHandler, - ) : CdkObject(cdkObject), IClientVpnConnectionHandler { + ) : CdkObject(cdkObject), + IClientVpnConnectionHandler { /** * The ARN of the function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnEndpoint.kt index b76d4d3d8d..e541aed4c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IClientVpnEndpoint.kt @@ -28,7 +28,8 @@ public interface IClientVpnEndpoint : IResource, IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IClientVpnEndpoint, - ) : CdkObject(cdkObject), IClientVpnEndpoint { + ) : CdkObject(cdkObject), + IClientVpnEndpoint { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IConnectable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IConnectable.kt index a739196a8b..2944ed6dc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IConnectable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IConnectable.kt @@ -16,7 +16,8 @@ public interface IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IConnectable, - ) : CdkObject(cdkObject), IConnectable { + ) : CdkObject(cdkObject), + IConnectable { /** * The network connections associated with this resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IFlowLog.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IFlowLog.kt index c327816145..b6ec694edb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IFlowLog.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IFlowLog.kt @@ -22,7 +22,8 @@ public interface IFlowLog : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IFlowLog, - ) : CdkObject(cdkObject), IFlowLog { + ) : CdkObject(cdkObject), + IFlowLog { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpoint.kt index 412dd83e14..8c387188ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpoint.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IGatewayVpcEndpoint : IVpcEndpoint { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IGatewayVpcEndpoint, - ) : CdkObject(cdkObject), IGatewayVpcEndpoint { + ) : CdkObject(cdkObject), + IGatewayVpcEndpoint { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpointService.kt index b490b17948..827f5c4ba8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IGatewayVpcEndpointService.kt @@ -17,7 +17,8 @@ public interface IGatewayVpcEndpointService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IGatewayVpcEndpointService, - ) : CdkObject(cdkObject), IGatewayVpcEndpointService { + ) : CdkObject(cdkObject), + IGatewayVpcEndpointService { /** * The name of the service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInstance.kt index 2caa78a781..6d8ef12a3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInstance.kt @@ -53,7 +53,8 @@ public interface IInstance : IResource, IConnectable, IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IInstance, - ) : CdkObject(cdkObject), IInstance { + ) : CdkObject(cdkObject), + IInstance { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpoint.kt index 6031596ce3..867b0de671 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpoint.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IInterfaceVpcEndpoint : IVpcEndpoint, IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IInterfaceVpcEndpoint, - ) : CdkObject(cdkObject), IInterfaceVpcEndpoint { + ) : CdkObject(cdkObject), + IInterfaceVpcEndpoint { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpointService.kt index 69ac34e8eb..2053d9ae69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IInterfaceVpcEndpointService.kt @@ -29,7 +29,8 @@ public interface IInterfaceVpcEndpointService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IInterfaceVpcEndpointService, - ) : CdkObject(cdkObject), IInterfaceVpcEndpointService { + ) : CdkObject(cdkObject), + IInterfaceVpcEndpointService { /** * The name of the service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpAddresses.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpAddresses.kt index 8fcedb396e..d894f384c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpAddresses.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpAddresses.kt @@ -42,7 +42,8 @@ public interface IIpAddresses { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IIpAddresses, - ) : CdkObject(cdkObject), IIpAddresses { + ) : CdkObject(cdkObject), + IIpAddresses { /** * Called by the VPC to retrieve Subnet options from the Ipam. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpv6Addresses.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpv6Addresses.kt index 54d619c6a4..8828074b66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpv6Addresses.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IIpv6Addresses.kt @@ -95,7 +95,8 @@ public interface IIpv6Addresses { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IIpv6Addresses, - ) : CdkObject(cdkObject), IIpv6Addresses { + ) : CdkObject(cdkObject), + IIpv6Addresses { /** * Allocates Subnets IPv6 CIDRs. Called by VPC when creating subnets with IPv6 enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IKeyPair.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IKeyPair.kt index d19ac9f435..1b8778a050 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IKeyPair.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IKeyPair.kt @@ -27,7 +27,8 @@ public interface IKeyPair : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IKeyPair, - ) : CdkObject(cdkObject), IKeyPair { + ) : CdkObject(cdkObject), + IKeyPair { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ILaunchTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ILaunchTemplate.kt index 857ef5de2f..d444fba393 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ILaunchTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ILaunchTemplate.kt @@ -36,7 +36,8 @@ public interface ILaunchTemplate : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ILaunchTemplate, - ) : CdkObject(cdkObject), ILaunchTemplate { + ) : CdkObject(cdkObject), + ILaunchTemplate { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IMachineImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IMachineImage.kt index 47cf79ed13..64b4522ae0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IMachineImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IMachineImage.kt @@ -19,7 +19,8 @@ public interface IMachineImage { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IMachineImage, - ) : CdkObject(cdkObject), IMachineImage { + ) : CdkObject(cdkObject), + IMachineImage { /** * Return the image to use in the given context. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAcl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAcl.kt index 88d5ed0b6d..9de3289eb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAcl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAcl.kt @@ -43,7 +43,8 @@ public interface INetworkAcl : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.INetworkAcl, - ) : CdkObject(cdkObject), INetworkAcl { + ) : CdkObject(cdkObject), + INetworkAcl { /** * Add a new entry to the ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAclEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAclEntry.kt index 7224aab217..2a52ef03ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAclEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/INetworkAclEntry.kt @@ -21,7 +21,8 @@ public interface INetworkAclEntry : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.INetworkAclEntry, - ) : CdkObject(cdkObject), INetworkAclEntry { + ) : CdkObject(cdkObject), + INetworkAclEntry { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPeer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPeer.kt index 83b39fb51a..97fbd977f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPeer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPeer.kt @@ -34,7 +34,8 @@ public interface IPeer : IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IPeer, - ) : CdkObject(cdkObject), IPeer { + ) : CdkObject(cdkObject), + IPeer { /** * Whether the rule can be inlined into a SecurityGroup or not. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPlacementGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPlacementGroup.kt index 8454946146..552bf52b07 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPlacementGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPlacementGroup.kt @@ -64,7 +64,8 @@ public interface IPlacementGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IPlacementGroup, - ) : CdkObject(cdkObject), IPlacementGroup { + ) : CdkObject(cdkObject), + IPlacementGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrefixList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrefixList.kt index df98c02d47..deb362d4db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrefixList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrefixList.kt @@ -22,7 +22,8 @@ public interface IPrefixList : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IPrefixList, - ) : CdkObject(cdkObject), IPrefixList { + ) : CdkObject(cdkObject), + IPrefixList { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrivateSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrivateSubnet.kt index 81cd3ccd97..a344a4aae0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrivateSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPrivateSubnet.kt @@ -17,7 +17,8 @@ import kotlin.String public interface IPrivateSubnet : ISubnet { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IPrivateSubnet, - ) : CdkObject(cdkObject), IPrivateSubnet { + ) : CdkObject(cdkObject), + IPrivateSubnet { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPublicSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPublicSubnet.kt index 9bc70ed9a5..c732ca81fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPublicSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IPublicSubnet.kt @@ -17,7 +17,8 @@ import kotlin.String public interface IPublicSubnet : ISubnet { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IPublicSubnet, - ) : CdkObject(cdkObject), IPublicSubnet { + ) : CdkObject(cdkObject), + IPublicSubnet { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IRouteTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IRouteTable.kt index 1b407c8d12..0ccc9eba53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IRouteTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IRouteTable.kt @@ -17,7 +17,8 @@ public interface IRouteTable { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IRouteTable, - ) : CdkObject(cdkObject), IRouteTable { + ) : CdkObject(cdkObject), + IRouteTable { /** * Route table ID. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISecurityGroup.kt index 4457b2db08..bd3785e36c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISecurityGroup.kt @@ -181,7 +181,8 @@ public interface ISecurityGroup : IResource, IPeer { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ISecurityGroup, - ) : CdkObject(cdkObject), ISecurityGroup { + ) : CdkObject(cdkObject), + ISecurityGroup { /** * Add an egress rule for the current security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnet.kt index 6540991019..5226e50951 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnet.kt @@ -51,7 +51,8 @@ public interface ISubnet : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ISubnet, - ) : CdkObject(cdkObject), ISubnet { + ) : CdkObject(cdkObject), + ISubnet { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnetNetworkAclAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnetNetworkAclAssociation.kt index 7b5c7aa0d0..a601fa28d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnetNetworkAclAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ISubnetNetworkAclAssociation.kt @@ -22,7 +22,8 @@ public interface ISubnetNetworkAclAssociation : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.ISubnetNetworkAclAssociation, - ) : CdkObject(cdkObject), ISubnetNetworkAclAssociation { + ) : CdkObject(cdkObject), + ISubnetNetworkAclAssociation { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVolume.kt index 3b7096f70d..e45eed3dc0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVolume.kt @@ -165,7 +165,8 @@ public interface IVolume : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVolume, - ) : CdkObject(cdkObject), IVolume { + ) : CdkObject(cdkObject), + IVolume { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpc.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpc.kt index d49003ad4f..90fe7373ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpc.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpc.kt @@ -217,7 +217,8 @@ public interface IVpc : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpc, - ) : CdkObject(cdkObject), IVpc { + ) : CdkObject(cdkObject), + IVpc { /** * Adds a new client VPN endpoint to this VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpoint.kt index 86353b9733..4ad5b0a52b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpoint.kt @@ -22,7 +22,8 @@ public interface IVpcEndpoint : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpcEndpoint, - ) : CdkObject(cdkObject), IVpcEndpoint { + ) : CdkObject(cdkObject), + IVpcEndpoint { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointService.kt index c76c3e8445..be77c0cf0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointService.kt @@ -29,7 +29,8 @@ public interface IVpcEndpointService : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpcEndpointService, - ) : CdkObject(cdkObject), IVpcEndpointService { + ) : CdkObject(cdkObject), + IVpcEndpointService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointServiceLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointServiceLoadBalancer.kt index 0f045b82ec..49d485c1ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointServiceLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpcEndpointServiceLoadBalancer.kt @@ -17,7 +17,8 @@ public interface IVpcEndpointServiceLoadBalancer { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpcEndpointServiceLoadBalancer, - ) : CdkObject(cdkObject), IVpcEndpointServiceLoadBalancer { + ) : CdkObject(cdkObject), + IVpcEndpointServiceLoadBalancer { /** * The ARN of the load balancer that hosts the VPC Endpoint Service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnConnection.kt index 17c6edefe3..00c7682f39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnConnection.kt @@ -155,7 +155,8 @@ public interface IVpnConnection : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpnConnection, - ) : CdkObject(cdkObject), IVpnConnection { + ) : CdkObject(cdkObject), + IVpnConnection { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnGateway.kt index 40a5632530..7be7bc4b8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/IVpnGateway.kt @@ -22,7 +22,8 @@ public interface IVpnGateway : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.IVpnGateway, - ) : CdkObject(cdkObject), IVpnGateway { + ) : CdkObject(cdkObject), + IVpnGateway { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitCommandOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitCommandOptions.kt index a3d132c705..d5d7fb01ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitCommandOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitCommandOptions.kt @@ -218,7 +218,8 @@ public interface InitCommandOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitCommandOptions, - ) : CdkObject(cdkObject), InitCommandOptions { + ) : CdkObject(cdkObject), + InitCommandOptions { /** * The working directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileAssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileAssetOptions.kt index 9a1c8db706..6d7679db9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileAssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileAssetOptions.kt @@ -384,7 +384,8 @@ public interface InitFileAssetOptions : InitFileOptions, AssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitFileAssetOptions, - ) : CdkObject(cdkObject), InitFileAssetOptions { + ) : CdkObject(cdkObject), + InitFileAssetOptions { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileOptions.kt index 5d3c574577..8a068f5d83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitFileOptions.kt @@ -183,7 +183,8 @@ public interface InitFileOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitFileOptions, - ) : CdkObject(cdkObject), InitFileOptions { + ) : CdkObject(cdkObject), + InitFileOptions { /** * True if the inlined content (from a string or file) should be treated as base64 encoded. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitServiceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitServiceOptions.kt index c09a087fd2..d448406cb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitServiceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitServiceOptions.kt @@ -158,7 +158,8 @@ public interface InitServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitServiceOptions, - ) : CdkObject(cdkObject), InitServiceOptions { + ) : CdkObject(cdkObject), + InitServiceOptions { /** * Enable or disable this service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceAssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceAssetOptions.kt index a7eb2fb416..b1a6fc3ced 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceAssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceAssetOptions.kt @@ -316,7 +316,8 @@ public interface InitSourceAssetOptions : InitSourceOptions, AssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitSourceAssetOptions, - ) : CdkObject(cdkObject), InitSourceAssetOptions { + ) : CdkObject(cdkObject), + InitSourceAssetOptions { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceOptions.kt index 46c12f1efa..093e3793fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitSourceOptions.kt @@ -76,7 +76,8 @@ public interface InitSourceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitSourceOptions, - ) : CdkObject(cdkObject), InitSourceOptions { + ) : CdkObject(cdkObject), + InitSourceOptions { /** * Restart the given services after this archive has been extracted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitUserOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitUserOptions.kt index 459913b2b0..badf0c5a53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitUserOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InitUserOptions.kt @@ -125,7 +125,8 @@ public interface InitUserOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InitUserOptions, - ) : CdkObject(cdkObject), InitUserOptions { + ) : CdkObject(cdkObject), + InitUserOptions { /** * A list of group names. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Instance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Instance.kt index 0b0b1baca5..0fe9cbf9fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Instance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Instance.kt @@ -11,6 +11,7 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import kotlin.Boolean import kotlin.Deprecated +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -40,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Instance( cdkObject: software.amazon.awscdk.services.ec2.Instance, -) : Resource(cdkObject), IInstance { +) : Resource(cdkObject), + IInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -97,6 +99,58 @@ public open class Instance( unwrap(this).addUserData(*commands.map{CdkObjectWrappers.unwrap(it) as String}.toTypedArray()) } + /** + * Use a CloudFormation Init configuration at instance startup. + * + * This does the following: + * + * * Attaches the CloudFormation Init metadata to the Instance resource. + * * Add commands to the instance UserData to run `cfn-init` and `cfn-signal`. + * * Update the instance's CreationPolicy to wait for the `cfn-signal` commands. + * + * @param init + * @param options + */ + public open fun applyCloudFormationInit(`init`: CloudFormationInit) { + unwrap(this).applyCloudFormationInit(`init`.let(CloudFormationInit.Companion::unwrap)) + } + + /** + * Use a CloudFormation Init configuration at instance startup. + * + * This does the following: + * + * * Attaches the CloudFormation Init metadata to the Instance resource. + * * Add commands to the instance UserData to run `cfn-init` and `cfn-signal`. + * * Update the instance's CreationPolicy to wait for the `cfn-signal` commands. + * + * @param init + * @param options + */ + public open fun applyCloudFormationInit(`init`: CloudFormationInit, + options: ApplyCloudFormationInitOptions) { + unwrap(this).applyCloudFormationInit(`init`.let(CloudFormationInit.Companion::unwrap), + options.let(ApplyCloudFormationInitOptions.Companion::unwrap)) + } + + /** + * Use a CloudFormation Init configuration at instance startup. + * + * This does the following: + * + * * Attaches the CloudFormation Init metadata to the Instance resource. + * * Add commands to the instance UserData to run `cfn-init` and `cfn-signal`. + * * Update the instance's CreationPolicy to wait for the `cfn-signal` commands. + * + * @param init + * @param options + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c953b7fb8b3b572e9e845d958602b699096bd9927b367f8da6a49795d60b62b9") + public open fun applyCloudFormationInit(`init`: CloudFormationInit, + options: ApplyCloudFormationInitOptions.Builder.() -> Unit): Unit = + applyCloudFormationInit(`init`, ApplyCloudFormationInitOptions(options)) + /** * Allows specify security group connections for the instance. */ @@ -198,6 +252,8 @@ public open class Instance( * Whether to associate a public IP address to the primary network interface attached to this * instance. * + * You cannot specify this property and `ipv6AddressCount` at the same time. + * * Default: - public IP address is automatically assigned based on default behavior * * @param associatePublicIpAddress Whether to associate a public IP address to the primary @@ -286,6 +342,35 @@ public open class Instance( */ public fun ebsOptimized(ebsOptimized: Boolean) + /** + * Whether the instance is enabled for AWS Nitro Enclaves. + * + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD + * with at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html#nitro-enclave-reqs) + * @param enclaveEnabled Whether the instance is enabled for AWS Nitro Enclaves. + */ + public fun enclaveEnabled(enclaveEnabled: Boolean) + + /** + * Whether the instance is enabled for hibernation. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html) + * @param hibernationEnabled Whether the instance is enabled for hibernation. + */ + public fun hibernationEnabled(hibernationEnabled: Boolean) + /** * Apply the given CloudFormation Init configuration to the instance at startup. * @@ -319,6 +404,20 @@ public open class Instance( @JvmName("1255c73a191e21ad38f2985417965411599e1b4b9be46e0f44bce9e8798ce1a1") public fun initOptions(initOptions: ApplyCloudFormationInitOptions.Builder.() -> Unit) + /** + * Indicates whether an instance stops or terminates when you initiate shutdown from the + * instance (using the operating system command for system shutdown). + * + * Default: InstanceInitiatedShutdownBehavior.STOP + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) + * @param instanceInitiatedShutdownBehavior Indicates whether an instance stops or terminates + * when you initiate shutdown from the instance (using the operating system command for system + * shutdown). + */ + public + fun instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior: InstanceInitiatedShutdownBehavior) + /** * The name of the instance. * @@ -335,6 +434,20 @@ public open class Instance( */ public fun instanceType(instanceType: InstanceType) + /** + * The number of IPv6 addresses to associate with the primary network interface. + * + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + * + * Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0. + * + * @param ipv6AddressCount The number of IPv6 addresses to associate with the primary network + * interface. + */ + public fun ipv6AddressCount(ipv6AddressCount: Number) + /** * (deprecated) Name of SSH keypair to grant access to instance. * @@ -363,6 +476,15 @@ public open class Instance( */ public fun machineImage(machineImage: IMachineImage) + /** + * The placement group that you want to launch the instance into. + * + * Default: - no placement group will be used for this instance. + * + * @param placementGroup The placement group that you want to launch the instance into. + */ + public fun placementGroup(placementGroup: IPlacementGroup) + /** * Defines a private IP address to associate with an instance. * @@ -494,7 +616,7 @@ public open class Instance( * UserData, which will cause CloudFormation to replace it if the UserData * changes. * - * Default: - true iff `initOptions` is specified, false otherwise. + * Default: - true if `initOptions` is specified, false otherwise. * * @param userDataCausesReplacement Changes to the UserData force replacement. */ @@ -567,6 +689,8 @@ public open class Instance( * Whether to associate a public IP address to the primary network interface attached to this * instance. * + * You cannot specify this property and `ipv6AddressCount` at the same time. + * * Default: - public IP address is automatically assigned based on default behavior * * @param associatePublicIpAddress Whether to associate a public IP address to the primary @@ -668,6 +792,39 @@ public open class Instance( cdkBuilder.ebsOptimized(ebsOptimized) } + /** + * Whether the instance is enabled for AWS Nitro Enclaves. + * + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD + * with at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html#nitro-enclave-reqs) + * @param enclaveEnabled Whether the instance is enabled for AWS Nitro Enclaves. + */ + override fun enclaveEnabled(enclaveEnabled: Boolean) { + cdkBuilder.enclaveEnabled(enclaveEnabled) + } + + /** + * Whether the instance is enabled for hibernation. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html) + * @param hibernationEnabled Whether the instance is enabled for hibernation. + */ + override fun hibernationEnabled(hibernationEnabled: Boolean) { + cdkBuilder.hibernationEnabled(hibernationEnabled) + } + /** * Apply the given CloudFormation Init configuration to the instance at startup. * @@ -706,6 +863,22 @@ public open class Instance( override fun initOptions(initOptions: ApplyCloudFormationInitOptions.Builder.() -> Unit): Unit = initOptions(ApplyCloudFormationInitOptions(initOptions)) + /** + * Indicates whether an instance stops or terminates when you initiate shutdown from the + * instance (using the operating system command for system shutdown). + * + * Default: InstanceInitiatedShutdownBehavior.STOP + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) + * @param instanceInitiatedShutdownBehavior Indicates whether an instance stops or terminates + * when you initiate shutdown from the instance (using the operating system command for system + * shutdown). + */ + override + fun instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior: InstanceInitiatedShutdownBehavior) { + cdkBuilder.instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior.let(InstanceInitiatedShutdownBehavior.Companion::unwrap)) + } + /** * The name of the instance. * @@ -726,6 +899,22 @@ public open class Instance( cdkBuilder.instanceType(instanceType.let(InstanceType.Companion::unwrap)) } + /** + * The number of IPv6 addresses to associate with the primary network interface. + * + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + * + * Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0. + * + * @param ipv6AddressCount The number of IPv6 addresses to associate with the primary network + * interface. + */ + override fun ipv6AddressCount(ipv6AddressCount: Number) { + cdkBuilder.ipv6AddressCount(ipv6AddressCount) + } + /** * (deprecated) Name of SSH keypair to grant access to instance. * @@ -760,6 +949,17 @@ public open class Instance( cdkBuilder.machineImage(machineImage.let(IMachineImage.Companion::unwrap)) } + /** + * The placement group that you want to launch the instance into. + * + * Default: - no placement group will be used for this instance. + * + * @param placementGroup The placement group that you want to launch the instance into. + */ + override fun placementGroup(placementGroup: IPlacementGroup) { + cdkBuilder.placementGroup(placementGroup.let(IPlacementGroup.Companion::unwrap)) + } + /** * Defines a private IP address to associate with an instance. * @@ -909,7 +1109,7 @@ public open class Instance( * UserData, which will cause CloudFormation to replace it if the UserData * changes. * - * Default: - true iff `initOptions` is specified, false otherwise. + * Default: - true if `initOptions` is specified, false otherwise. * * @param userDataCausesReplacement Changes to the UserData force replacement. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceClass.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceClass.kt index f599d7d061..d461bdc69b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceClass.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceClass.kt @@ -77,6 +77,8 @@ public enum class InstanceClass( R7IZ(software.amazon.awscdk.services.ec2.InstanceClass.R7IZ), MEMORY7_AMD(software.amazon.awscdk.services.ec2.InstanceClass.MEMORY7_AMD), R7A(software.amazon.awscdk.services.ec2.InstanceClass.R7A), + MEMORY8_GRAVITON(software.amazon.awscdk.services.ec2.InstanceClass.MEMORY8_GRAVITON), + R8G(software.amazon.awscdk.services.ec2.InstanceClass.R8G), COMPUTE3(software.amazon.awscdk.services.ec2.InstanceClass.COMPUTE3), C3(software.amazon.awscdk.services.ec2.InstanceClass.C3), COMPUTE4(software.amazon.awscdk.services.ec2.InstanceClass.COMPUTE4), @@ -175,6 +177,8 @@ public enum class InstanceClass( G5(software.amazon.awscdk.services.ec2.InstanceClass.G5), GRAPHICS5_GRAVITON2(software.amazon.awscdk.services.ec2.InstanceClass.GRAPHICS5_GRAVITON2), G5G(software.amazon.awscdk.services.ec2.InstanceClass.G5G), + GRAPHICS6(software.amazon.awscdk.services.ec2.InstanceClass.GRAPHICS6), + G6(software.amazon.awscdk.services.ec2.InstanceClass.G6), PARALLEL2(software.amazon.awscdk.services.ec2.InstanceClass.PARALLEL2), P2(software.amazon.awscdk.services.ec2.InstanceClass.P2), PARALLEL3(software.amazon.awscdk.services.ec2.InstanceClass.PARALLEL3), @@ -227,6 +231,8 @@ public enum class InstanceClass( MAC2_M2(software.amazon.awscdk.services.ec2.InstanceClass.MAC2_M2), MACINTOSH2_M2_PRO(software.amazon.awscdk.services.ec2.InstanceClass.MACINTOSH2_M2_PRO), MAC2_M2PRO(software.amazon.awscdk.services.ec2.InstanceClass.MAC2_M2PRO), + MACINTOSH2_M1_ULTRA(software.amazon.awscdk.services.ec2.InstanceClass.MACINTOSH2_M1_ULTRA), + MAC2_M1ULTRA(software.amazon.awscdk.services.ec2.InstanceClass.MAC2_M1ULTRA), VIDEO_TRANSCODING1(software.amazon.awscdk.services.ec2.InstanceClass.VIDEO_TRANSCODING1), VT1(software.amazon.awscdk.services.ec2.InstanceClass.VT1), HIGH_PERFORMANCE_COMPUTING6_AMD(software.amazon.awscdk.services.ec2.InstanceClass.HIGH_PERFORMANCE_COMPUTING6_AMD), @@ -342,6 +348,9 @@ public enum class InstanceClass( software.amazon.awscdk.services.ec2.InstanceClass.R7IZ -> InstanceClass.R7IZ software.amazon.awscdk.services.ec2.InstanceClass.MEMORY7_AMD -> InstanceClass.MEMORY7_AMD software.amazon.awscdk.services.ec2.InstanceClass.R7A -> InstanceClass.R7A + software.amazon.awscdk.services.ec2.InstanceClass.MEMORY8_GRAVITON -> + InstanceClass.MEMORY8_GRAVITON + software.amazon.awscdk.services.ec2.InstanceClass.R8G -> InstanceClass.R8G software.amazon.awscdk.services.ec2.InstanceClass.COMPUTE3 -> InstanceClass.COMPUTE3 software.amazon.awscdk.services.ec2.InstanceClass.C3 -> InstanceClass.C3 software.amazon.awscdk.services.ec2.InstanceClass.COMPUTE4 -> InstanceClass.COMPUTE4 @@ -474,6 +483,8 @@ public enum class InstanceClass( software.amazon.awscdk.services.ec2.InstanceClass.GRAPHICS5_GRAVITON2 -> InstanceClass.GRAPHICS5_GRAVITON2 software.amazon.awscdk.services.ec2.InstanceClass.G5G -> InstanceClass.G5G + software.amazon.awscdk.services.ec2.InstanceClass.GRAPHICS6 -> InstanceClass.GRAPHICS6 + software.amazon.awscdk.services.ec2.InstanceClass.G6 -> InstanceClass.G6 software.amazon.awscdk.services.ec2.InstanceClass.PARALLEL2 -> InstanceClass.PARALLEL2 software.amazon.awscdk.services.ec2.InstanceClass.P2 -> InstanceClass.P2 software.amazon.awscdk.services.ec2.InstanceClass.PARALLEL3 -> InstanceClass.PARALLEL3 @@ -541,6 +552,9 @@ public enum class InstanceClass( software.amazon.awscdk.services.ec2.InstanceClass.MACINTOSH2_M2_PRO -> InstanceClass.MACINTOSH2_M2_PRO software.amazon.awscdk.services.ec2.InstanceClass.MAC2_M2PRO -> InstanceClass.MAC2_M2PRO + software.amazon.awscdk.services.ec2.InstanceClass.MACINTOSH2_M1_ULTRA -> + InstanceClass.MACINTOSH2_M1_ULTRA + software.amazon.awscdk.services.ec2.InstanceClass.MAC2_M1ULTRA -> InstanceClass.MAC2_M1ULTRA software.amazon.awscdk.services.ec2.InstanceClass.VIDEO_TRANSCODING1 -> InstanceClass.VIDEO_TRANSCODING1 software.amazon.awscdk.services.ec2.InstanceClass.VT1 -> InstanceClass.VT1 diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceProps.kt index 01b1e679ba..a6fdb27e53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceProps.kt @@ -9,6 +9,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.iam.IRole import kotlin.Boolean import kotlin.Deprecated +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -57,6 +58,8 @@ public interface InstanceProps { * Whether to associate a public IP address to the primary network interface attached to this * instance. * + * You cannot specify this property and `ipv6AddressCount` at the same time. + * * Default: - public IP address is automatically assigned based on default behavior */ public fun associatePublicIpAddress(): Boolean? = unwrap(this).getAssociatePublicIpAddress() @@ -116,6 +119,33 @@ public interface InstanceProps { */ public fun ebsOptimized(): Boolean? = unwrap(this).getEbsOptimized() + /** + * Whether the instance is enabled for AWS Nitro Enclaves. + * + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD with + * at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html#nitro-enclave-reqs) + */ + public fun enclaveEnabled(): Boolean? = unwrap(this).getEnclaveEnabled() + + /** + * Whether the instance is enabled for hibernation. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html) + */ + public fun hibernationEnabled(): Boolean? = unwrap(this).getHibernationEnabled() + /** * Apply the given CloudFormation Init configuration to the instance at startup. * @@ -133,6 +163,17 @@ public interface InstanceProps { public fun initOptions(): ApplyCloudFormationInitOptions? = unwrap(this).getInitOptions()?.let(ApplyCloudFormationInitOptions::wrap) + /** + * Indicates whether an instance stops or terminates when you initiate shutdown from the instance + * (using the operating system command for system shutdown). + * + * Default: InstanceInitiatedShutdownBehavior.STOP + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) + */ + public fun instanceInitiatedShutdownBehavior(): InstanceInitiatedShutdownBehavior? = + unwrap(this).getInstanceInitiatedShutdownBehavior()?.let(InstanceInitiatedShutdownBehavior::wrap) + /** * The name of the instance. * @@ -145,6 +186,17 @@ public interface InstanceProps { */ public fun instanceType(): InstanceType + /** + * The number of IPv6 addresses to associate with the primary network interface. + * + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + * + * Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0. + */ + public fun ipv6AddressCount(): Number? = unwrap(this).getIpv6AddressCount() + /** * (deprecated) Name of SSH keypair to grant access to instance. * @@ -168,6 +220,14 @@ public interface InstanceProps { */ public fun machineImage(): IMachineImage + /** + * The placement group that you want to launch the instance into. + * + * Default: - no placement group will be used for this instance. + */ + public fun placementGroup(): IPlacementGroup? = + unwrap(this).getPlacementGroup()?.let(IPlacementGroup::wrap) + /** * Defines a private IP address to associate with an instance. * @@ -282,7 +342,7 @@ public interface InstanceProps { * UserData, which will cause CloudFormation to replace it if the UserData * changes. * - * Default: - true iff `initOptions` is specified, false otherwise. + * Default: - true if `initOptions` is specified, false otherwise. */ public fun userDataCausesReplacement(): Boolean? = unwrap(this).getUserDataCausesReplacement() @@ -321,6 +381,7 @@ public interface InstanceProps { /** * @param associatePublicIpAddress Whether to associate a public IP address to the primary * network interface attached to this instance. + * You cannot specify this property and `ipv6AddressCount` at the same time. */ public fun associatePublicIpAddress(associatePublicIpAddress: Boolean) @@ -371,6 +432,23 @@ public interface InstanceProps { */ public fun ebsOptimized(ebsOptimized: Boolean) + /** + * @param enclaveEnabled Whether the instance is enabled for AWS Nitro Enclaves. + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD + * with at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + */ + public fun enclaveEnabled(enclaveEnabled: Boolean) + + /** + * @param hibernationEnabled Whether the instance is enabled for hibernation. + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + */ + public fun hibernationEnabled(hibernationEnabled: Boolean) + /** * @param init Apply the given CloudFormation Init configuration to the instance at startup. */ @@ -390,6 +468,14 @@ public interface InstanceProps { @JvmName("93ef9f027b11af4d08b697f78b8080ddc971b57648604223a8f564ca3a53ac30") public fun initOptions(initOptions: ApplyCloudFormationInitOptions.Builder.() -> Unit) + /** + * @param instanceInitiatedShutdownBehavior Indicates whether an instance stops or terminates + * when you initiate shutdown from the instance (using the operating system command for system + * shutdown). + */ + public + fun instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior: InstanceInitiatedShutdownBehavior) + /** * @param instanceName The name of the instance. */ @@ -400,6 +486,15 @@ public interface InstanceProps { */ public fun instanceType(instanceType: InstanceType) + /** + * @param ipv6AddressCount The number of IPv6 addresses to associate with the primary network + * interface. + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + */ + public fun ipv6AddressCount(ipv6AddressCount: Number) + /** * @param keyName Name of SSH keypair to grant access to instance. * @deprecated - Use `keyPair` instead - @@ -418,6 +513,11 @@ public interface InstanceProps { */ public fun machineImage(machineImage: IMachineImage) + /** + * @param placementGroup The placement group that you want to launch the instance into. + */ + public fun placementGroup(placementGroup: IPlacementGroup) + /** * @param privateIpAddress Defines a private IP address to associate with an instance. * Private IP should be available within the VPC that the instance is build within. @@ -542,6 +642,7 @@ public interface InstanceProps { /** * @param associatePublicIpAddress Whether to associate a public IP address to the primary * network interface attached to this instance. + * You cannot specify this property and `ipv6AddressCount` at the same time. */ override fun associatePublicIpAddress(associatePublicIpAddress: Boolean) { cdkBuilder.associatePublicIpAddress(associatePublicIpAddress) @@ -605,6 +706,27 @@ public interface InstanceProps { cdkBuilder.ebsOptimized(ebsOptimized) } + /** + * @param enclaveEnabled Whether the instance is enabled for AWS Nitro Enclaves. + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD + * with at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + */ + override fun enclaveEnabled(enclaveEnabled: Boolean) { + cdkBuilder.enclaveEnabled(enclaveEnabled) + } + + /** + * @param hibernationEnabled Whether the instance is enabled for hibernation. + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + */ + override fun hibernationEnabled(hibernationEnabled: Boolean) { + cdkBuilder.hibernationEnabled(hibernationEnabled) + } + /** * @param init Apply the given CloudFormation Init configuration to the instance at startup. */ @@ -629,6 +751,16 @@ public interface InstanceProps { override fun initOptions(initOptions: ApplyCloudFormationInitOptions.Builder.() -> Unit): Unit = initOptions(ApplyCloudFormationInitOptions(initOptions)) + /** + * @param instanceInitiatedShutdownBehavior Indicates whether an instance stops or terminates + * when you initiate shutdown from the instance (using the operating system command for system + * shutdown). + */ + override + fun instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior: InstanceInitiatedShutdownBehavior) { + cdkBuilder.instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior.let(InstanceInitiatedShutdownBehavior.Companion::unwrap)) + } + /** * @param instanceName The name of the instance. */ @@ -643,6 +775,17 @@ public interface InstanceProps { cdkBuilder.instanceType(instanceType.let(InstanceType.Companion::unwrap)) } + /** + * @param ipv6AddressCount The number of IPv6 addresses to associate with the primary network + * interface. + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + */ + override fun ipv6AddressCount(ipv6AddressCount: Number) { + cdkBuilder.ipv6AddressCount(ipv6AddressCount) + } + /** * @param keyName Name of SSH keypair to grant access to instance. * @deprecated - Use `keyPair` instead - @@ -667,6 +810,13 @@ public interface InstanceProps { cdkBuilder.machineImage(machineImage.let(IMachineImage.Companion::unwrap)) } + /** + * @param placementGroup The placement group that you want to launch the instance into. + */ + override fun placementGroup(placementGroup: IPlacementGroup) { + cdkBuilder.placementGroup(placementGroup.let(IPlacementGroup.Companion::unwrap)) + } + /** * @param privateIpAddress Defines a private IP address to associate with an instance. * Private IP should be available within the VPC that the instance is build within. @@ -795,7 +945,8 @@ public interface InstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InstanceProps, - ) : CdkObject(cdkObject), InstanceProps { + ) : CdkObject(cdkObject), + InstanceProps { /** * Whether the instance could initiate IPv6 connections to anywhere by default. * @@ -818,6 +969,8 @@ public interface InstanceProps { * Whether to associate a public IP address to the primary network interface attached to this * instance. * + * You cannot specify this property and `ipv6AddressCount` at the same time. + * * Default: - public IP address is automatically assigned based on default behavior */ override fun associatePublicIpAddress(): Boolean? = unwrap(this).getAssociatePublicIpAddress() @@ -877,6 +1030,33 @@ public interface InstanceProps { */ override fun ebsOptimized(): Boolean? = unwrap(this).getEbsOptimized() + /** + * Whether the instance is enabled for AWS Nitro Enclaves. + * + * Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD + * with at least 4 vCPUs + * or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, + * while the enclave itself supports only Linux OS. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html#nitro-enclave-reqs) + */ + override fun enclaveEnabled(): Boolean? = unwrap(this).getEnclaveEnabled() + + /** + * Whether the instance is enabled for hibernation. + * + * You can't set both `enclaveEnabled` and `hibernationEnabled` to true on the same instance. + * + * Default: - false + * + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html) + */ + override fun hibernationEnabled(): Boolean? = unwrap(this).getHibernationEnabled() + /** * Apply the given CloudFormation Init configuration to the instance at startup. * @@ -895,6 +1075,17 @@ public interface InstanceProps { override fun initOptions(): ApplyCloudFormationInitOptions? = unwrap(this).getInitOptions()?.let(ApplyCloudFormationInitOptions::wrap) + /** + * Indicates whether an instance stops or terminates when you initiate shutdown from the + * instance (using the operating system command for system shutdown). + * + * Default: InstanceInitiatedShutdownBehavior.STOP + * + * [Documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) + */ + override fun instanceInitiatedShutdownBehavior(): InstanceInitiatedShutdownBehavior? = + unwrap(this).getInstanceInitiatedShutdownBehavior()?.let(InstanceInitiatedShutdownBehavior::wrap) + /** * The name of the instance. * @@ -908,6 +1099,17 @@ public interface InstanceProps { override fun instanceType(): InstanceType = unwrap(this).getInstanceType().let(InstanceType::wrap) + /** + * The number of IPv6 addresses to associate with the primary network interface. + * + * Amazon EC2 chooses the IPv6 addresses from the range of your subnet. + * + * You cannot specify this property and `associatePublicIpAddress` at the same time. + * + * Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0. + */ + override fun ipv6AddressCount(): Number? = unwrap(this).getIpv6AddressCount() + /** * (deprecated) Name of SSH keypair to grant access to instance. * @@ -932,6 +1134,14 @@ public interface InstanceProps { override fun machineImage(): IMachineImage = unwrap(this).getMachineImage().let(IMachineImage::wrap) + /** + * The placement group that you want to launch the instance into. + * + * Default: - no placement group will be used for this instance. + */ + override fun placementGroup(): IPlacementGroup? = + unwrap(this).getPlacementGroup()?.let(IPlacementGroup::wrap) + /** * Defines a private IP address to associate with an instance. * @@ -1046,7 +1256,7 @@ public interface InstanceProps { * UserData, which will cause CloudFormation to replace it if the UserData * changes. * - * Default: - true iff `initOptions` is specified, false otherwise. + * Default: - true if `initOptions` is specified, false otherwise. */ override fun userDataCausesReplacement(): Boolean? = unwrap(this).getUserDataCausesReplacement() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2Aspect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2Aspect.kt index 66064cd833..a2fc189c5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2Aspect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2Aspect.kt @@ -28,7 +28,8 @@ import kotlin.Unit */ public open class InstanceRequireImdsv2Aspect( cdkObject: software.amazon.awscdk.services.ec2.InstanceRequireImdsv2Aspect, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor() : this(software.amazon.awscdk.services.ec2.InstanceRequireImdsv2Aspect() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2AspectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2AspectProps.kt index a50804a30f..c3b5de9698 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2AspectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InstanceRequireImdsv2AspectProps.kt @@ -98,7 +98,8 @@ public interface InstanceRequireImdsv2AspectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InstanceRequireImdsv2AspectProps, - ) : CdkObject(cdkObject), InstanceRequireImdsv2AspectProps { + ) : CdkObject(cdkObject), + InstanceRequireImdsv2AspectProps { /** * Whether warnings that would be raised when an Instance is associated with an existing Launch * Template should be suppressed or not. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpoint.kt index f598755d0e..0d1c94f670 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpoint.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class InterfaceVpcEndpoint( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint, -) : VpcEndpoint(cdkObject), IInterfaceVpcEndpoint { +) : VpcEndpoint(cdkObject), + IInterfaceVpcEndpoint { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAttributes.kt index e9de52c2e3..fec3c4d7c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAttributes.kt @@ -121,7 +121,8 @@ public interface InterfaceVpcEndpointAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAttributes, - ) : CdkObject(cdkObject), InterfaceVpcEndpointAttributes { + ) : CdkObject(cdkObject), + InterfaceVpcEndpointAttributes { /** * The port of the service of the interface VPC endpoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsService.kt index 080574f9ff..b986a279ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsService.kt @@ -41,7 +41,8 @@ import kotlin.Unit */ public open class InterfaceVpcEndpointAwsService( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService, -) : CdkObject(cdkObject), IInterfaceVpcEndpointService { +) : CdkObject(cdkObject), + IInterfaceVpcEndpointService { public constructor(name: String) : this(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService(name) ) @@ -152,9 +153,15 @@ public open class InterfaceVpcEndpointAwsService( public val AIRFLOW_API: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.AIRFLOW_API) + public val AIRFLOW_API_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.AIRFLOW_API_FIPS) + public val AIRFLOW_ENV: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.AIRFLOW_ENV) + public val AIRFLOW_ENV_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.AIRFLOW_ENV_FIPS) + public val AIRFLOW_OPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.AIRFLOW_OPS) @@ -233,6 +240,12 @@ public open class InterfaceVpcEndpointAwsService( public val BEDROCK_RUNTIME: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.BEDROCK_RUNTIME) + public val BILLING_AND_COST_MANAGEMENT_FREETIER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.BILLING_AND_COST_MANAGEMENT_FREETIER) + + public val BILLING_AND_COST_MANAGEMENT_TAX: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.BILLING_AND_COST_MANAGEMENT_TAX) + public val BILLING_CONDUCTOR: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.BILLING_CONDUCTOR) @@ -242,6 +255,9 @@ public open class InterfaceVpcEndpointAwsService( public val CLEAN_ROOMS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLEAN_ROOMS) + public val CLEAN_ROOMS_ML: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLEAN_ROOMS_ML) + public val CLOUD_CONTROL_API: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUD_CONTROL_API) @@ -275,6 +291,12 @@ public open class InterfaceVpcEndpointAwsService( public val CLOUDWATCH: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH) + public val CLOUDWATCH_APPLICATION_INSIGHTS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_APPLICATION_INSIGHTS) + + public val CLOUDWATCH_APPLICATION_SIGNALS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_APPLICATION_SIGNALS) + public val CLOUDWATCH_EVENTS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_EVENTS) @@ -302,6 +324,9 @@ public open class InterfaceVpcEndpointAwsService( public val CLOUDWATCH_SYNTHETICS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_SYNTHETICS) + public val CODE_CONNECTIONS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CODE_CONNECTIONS) + public val CODEARTIFACT_API: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CODEARTIFACT_API) @@ -362,6 +387,9 @@ public open class InterfaceVpcEndpointAwsService( public val COMPREHEND_MEDICAL: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.COMPREHEND_MEDICAL) + public val COMPUTE_OPTIMIZER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.COMPUTE_OPTIMIZER) + public val CONFIG: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CONFIG) @@ -383,9 +411,18 @@ public open class InterfaceVpcEndpointAwsService( public val CONNECT_WISDOM: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CONNECT_WISDOM) + public val CONTROL_CATALOG: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.CONTROL_CATALOG) + + public val COST_EXPLORER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.COST_EXPLORER) + public val DATA_EXCHANGE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DATA_EXCHANGE) + public val DATA_EXPORTS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DATA_EXPORTS) + public val DATABASE_MIGRATION_SERVICE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DATABASE_MIGRATION_SERVICE) @@ -398,6 +435,12 @@ public open class InterfaceVpcEndpointAwsService( public val DATAZONE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DATAZONE) + public val DEADLINE_CLOUD_MANAGEMENT: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DEADLINE_CLOUD_MANAGEMENT) + + public val DEADLINE_CLOUD_SCHEDULING: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DEADLINE_CLOUD_SCHEDULING) + public val DEVOPS_GURU: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.DEVOPS_GURU) @@ -476,6 +519,9 @@ public open class InterfaceVpcEndpointAwsService( public val EMR_SERVERLESS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.EMR_SERVERLESS) + public val EMR_SERVERLESS_LIVY: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.EMR_SERVERLESS_LIVY) + public val EMR_WAL: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.EMR_WAL) @@ -485,6 +531,9 @@ public open class InterfaceVpcEndpointAwsService( public val EVENTBRIDGE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.EVENTBRIDGE) + public val EVENTBRIDGE_SCHEMA_REGISTRY: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.EVENTBRIDGE_SCHEMA_REGISTRY) + public val FAULT_INJECTION_SIMULATOR: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.FAULT_INJECTION_SIMULATOR) @@ -530,21 +579,33 @@ public open class InterfaceVpcEndpointAwsService( public val GROUNDSTATION: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.GROUNDSTATION) + public val GUARDDUTY: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.GUARDDUTY) + public val GUARDDUTY_DATA: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.GUARDDUTY_DATA) public val GUARDDUTY_DATA_FIPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.GUARDDUTY_DATA_FIPS) + public val GUARDDUTY_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.GUARDDUTY_FIPS) + public val HEALTH_IMAGING: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.HEALTH_IMAGING) + public val HEALTH_IMAGING_DICOM: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.HEALTH_IMAGING_DICOM) + public val HEALTH_IMAGING_RUNTIME: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.HEALTH_IMAGING_RUNTIME) public val HEALTHLAKE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.HEALTHLAKE) + public val IAM: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.IAM) + public val IAM_IDENTITY_CENTER: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.IAM_IDENTITY_CENTER) @@ -620,6 +681,9 @@ public open class InterfaceVpcEndpointAwsService( public val KINESIS_STREAMS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.KINESIS_STREAMS) + public val KINESIS_STREAMS_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.KINESIS_STREAMS_FIPS) + public val KMS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.KMS) @@ -632,6 +696,9 @@ public open class InterfaceVpcEndpointAwsService( public val LAMBDA: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LAMBDA) + public val LAUNCH_WIZARD: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LAUNCH_WIZARD) + public val LEX_MODELS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LEX_MODELS) @@ -644,6 +711,12 @@ public open class InterfaceVpcEndpointAwsService( public val LICENSE_MANAGER_FIPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LICENSE_MANAGER_FIPS) + public val LICENSE_MANAGER_LINUX_SUBSCRIPTIONS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LICENSE_MANAGER_LINUX_SUBSCRIPTIONS) + + public val LICENSE_MANAGER_LINUX_SUBSCRIPTIONS_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LICENSE_MANAGER_LINUX_SUBSCRIPTIONS_FIPS) + public val LICENSE_MANAGER_USER_SUBSCRIPTIONS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.LICENSE_MANAGER_USER_SUBSCRIPTIONS) @@ -662,6 +735,9 @@ public open class InterfaceVpcEndpointAwsService( public val MAINFRAME_MODERNIZATION: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.MAINFRAME_MODERNIZATION) + public val MAINFRAME_MODERNIZATION_APP_TEST: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.MAINFRAME_MODERNIZATION_APP_TEST) + public val MANAGED_BLOCKCHAIN_BITCOIN_MAINNET: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.MANAGED_BLOCKCHAIN_BITCOIN_MAINNET) @@ -695,6 +771,12 @@ public open class InterfaceVpcEndpointAwsService( public val NEPTUNE_ANALYTICS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.NEPTUNE_ANALYTICS) + public val NETWORK_FIREWALL: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.NETWORK_FIREWALL) + + public val NETWORK_FIREWALL_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.NETWORK_FIREWALL_FIPS) + public val NIMBLE_STUDIO: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.NIMBLE_STUDIO) @@ -719,9 +801,18 @@ public open class InterfaceVpcEndpointAwsService( public val ORGANIZATIONS_FIPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.ORGANIZATIONS_FIPS) + public val OUTPOSTS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.OUTPOSTS) + public val PANORAMA: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PANORAMA) + public val PARALLEL_COMPUTING_SERVICE: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PARALLEL_COMPUTING_SERVICE) + + public val PARALLEL_COMPUTING_SERVICE_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PARALLEL_COMPUTING_SERVICE_FIPS) + public val PAYMENT_CRYPTOGRAPHY_CONTROLPLANE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PAYMENT_CRYPTOGRAPHY_CONTROLPLANE) @@ -746,6 +837,15 @@ public open class InterfaceVpcEndpointAwsService( public val PINPOINT_V1: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PINPOINT_V1) + public val PIPES: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PIPES) + + public val PIPES_DATA: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PIPES_DATA) + + public val PIPES_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PIPES_FIPS) + public val POLLY: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.POLLY) @@ -758,6 +858,9 @@ public open class InterfaceVpcEndpointAwsService( public val PRIVATE_CERTIFICATE_AUTHORITY_CONNECTOR_AD: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PRIVATE_CERTIFICATE_AUTHORITY_CONNECTOR_AD) + public val PRIVATE_CERTIFICATE_AUTHORITY_CONNECTOR_SCEP: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PRIVATE_CERTIFICATE_AUTHORITY_CONNECTOR_SCEP) + public val PROMETHEUS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PROMETHEUS) @@ -767,24 +870,60 @@ public open class InterfaceVpcEndpointAwsService( public val PROTON: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.PROTON) + public val Q_BUSSINESS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.Q_BUSSINESS) + + public val Q_DEVELOPER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.Q_DEVELOPER) + + public val Q_DEVELOPER_CODE_WHISPERER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.Q_DEVELOPER_CODE_WHISPERER) + + public val Q_DEVELOPER_QAPPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.Q_DEVELOPER_QAPPS) + + public val Q_USER_SUBSCRIPTIONS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.Q_USER_SUBSCRIPTIONS) + public val QLDB: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.QLDB) + public val QUICKSIGHT_WEBSITE: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.QUICKSIGHT_WEBSITE) + public val RDS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RDS) public val RDS_DATA: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RDS_DATA) + public val RDS_PERFORMANCE_INSIGHTS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RDS_PERFORMANCE_INSIGHTS) + + public val RDS_PERFORMANCE_INSIGHTS_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RDS_PERFORMANCE_INSIGHTS_FIPS) + + public val RECYCLE_BIN: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RECYCLE_BIN) + public val REDSHIFT: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT) public val REDSHIFT_DATA: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT_DATA) + public val REDSHIFT_DATA_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT_DATA_FIPS) + public val REDSHIFT_FIPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT_FIPS) + public val REDSHIFT_SERVERLESS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT_SERVERLESS) + + public val REDSHIFT_SERVERLESS_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REDSHIFT_SERVERLESS_FIPS) + public val REKOGNITION: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REKOGNITION) @@ -800,6 +939,9 @@ public open class InterfaceVpcEndpointAwsService( public val REPOST_SPACE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.REPOST_SPACE) + public val RESOURCE_ACCESS_MANAGER: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.RESOURCE_ACCESS_MANAGER) + public val ROBOMAKER: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.ROBOMAKER) @@ -851,6 +993,9 @@ public open class InterfaceVpcEndpointAwsService( public val SERVER_MIGRATION_SERVICE_FIPS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SERVER_MIGRATION_SERVICE_FIPS) + public val SERVERLESS_APPLICATION_REPOSITORY: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SERVERLESS_APPLICATION_REPOSITORY) + public val SERVICE_CATALOG: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SERVICE_CATALOG) @@ -878,12 +1023,18 @@ public open class InterfaceVpcEndpointAwsService( public val SSM_CONTACTS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SSM_CONTACTS) + public val SSM_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SSM_FIPS) + public val SSM_INCIDENTS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SSM_INCIDENTS) public val SSM_MESSAGES: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SSM_MESSAGES) + public val SSM_QUICK_SETUP: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.SSM_QUICK_SETUP) + public val STEP_FUNCTIONS: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.STEP_FUNCTIONS) @@ -917,6 +1068,9 @@ public open class InterfaceVpcEndpointAwsService( public val TIMESTREAM_INFLUXDB: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.TIMESTREAM_INFLUXDB) + public val TIMESTREAM_INFLUXDB_FIPS: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.TIMESTREAM_INFLUXDB_FIPS) + public val TRANSCRIBE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.TRANSCRIBE) @@ -941,6 +1095,9 @@ public open class InterfaceVpcEndpointAwsService( public val VPC_LATTICE: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.VPC_LATTICE) + public val WELL_ARCHITECTED_TOOL: InterfaceVpcEndpointAwsService = + InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.WELL_ARCHITECTED_TOOL) + public val WORKSPACES: InterfaceVpcEndpointAwsService = InterfaceVpcEndpointAwsService.wrap(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsService.WORKSPACES) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsServiceProps.kt index 2bb6f71331..43186b2071 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointAwsServiceProps.kt @@ -63,7 +63,8 @@ public interface InterfaceVpcEndpointAwsServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAwsServiceProps, - ) : CdkObject(cdkObject), InterfaceVpcEndpointAwsServiceProps { + ) : CdkObject(cdkObject), + InterfaceVpcEndpointAwsServiceProps { /** * If true, the service is a global endpoint and its name will not be prefixed with the stack's * region. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointOptions.kt index 86255ebcad..ee77b444b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointOptions.kt @@ -231,7 +231,8 @@ public interface InterfaceVpcEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointOptions, - ) : CdkObject(cdkObject), InterfaceVpcEndpointOptions { + ) : CdkObject(cdkObject), + InterfaceVpcEndpointOptions { /** * Limit to only those availability zones where the endpoint service can be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointProps.kt index d697ad1d56..5f3c290343 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointProps.kt @@ -183,7 +183,8 @@ public interface InterfaceVpcEndpointProps : InterfaceVpcEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointProps, - ) : CdkObject(cdkObject), InterfaceVpcEndpointProps { + ) : CdkObject(cdkObject), + InterfaceVpcEndpointProps { /** * Limit to only those availability zones where the endpoint service can be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointService.kt index 062f2764f9..92492c9d5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/InterfaceVpcEndpointService.kt @@ -28,7 +28,8 @@ import kotlin.String */ public open class InterfaceVpcEndpointService( cdkObject: software.amazon.awscdk.services.ec2.InterfaceVpcEndpointService, -) : CdkObject(cdkObject), IInterfaceVpcEndpointService { +) : CdkObject(cdkObject), + IInterfaceVpcEndpointService { public constructor(name: String) : this(software.amazon.awscdk.services.ec2.InterfaceVpcEndpointService(name) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPair.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPair.kt index 481499aa13..28ffd20296 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPair.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPair.kt @@ -26,7 +26,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class KeyPair( cdkObject: software.amazon.awscdk.services.ec2.KeyPair, -) : Resource(cdkObject), IKeyPair { +) : Resource(cdkObject), + IKeyPair { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.KeyPair(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairAttributes.kt index 5f2b9db6f1..17bc686e75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairAttributes.kt @@ -72,7 +72,8 @@ public interface KeyPairAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.KeyPairAttributes, - ) : CdkObject(cdkObject), KeyPairAttributes { + ) : CdkObject(cdkObject), + KeyPairAttributes { /** * The unique name of the key pair. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairProps.kt index 02bd25120c..eda478260b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/KeyPairProps.kt @@ -205,7 +205,8 @@ public interface KeyPairProps : ResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.KeyPairProps, - ) : CdkObject(cdkObject), KeyPairProps { + ) : CdkObject(cdkObject), + KeyPairProps { /** * The AWS account ID this resource belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplate.kt index 0f073dbf69..82126cd105 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplate.kt @@ -42,7 +42,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LaunchTemplate( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplate, -) : Resource(cdkObject), ILaunchTemplate, IGrantable, IConnectable { +) : Resource(cdkObject), + ILaunchTemplate, + IGrantable, + IConnectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.LaunchTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -470,6 +473,18 @@ public open class LaunchTemplate( * @param userData The AMI that will be used by instances. */ public fun userData(userData: UserData) + + /** + * A description for the first version of the launch template. + * + * The version description must be maximum 255 characters long. + * + * Default: - No description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-versiondescription) + * @param versionDescription A description for the first version of the launch template. + */ + public fun versionDescription(versionDescription: String) } private class BuilderImpl( @@ -856,6 +871,20 @@ public open class LaunchTemplate( cdkBuilder.userData(userData.let(UserData.Companion::unwrap)) } + /** + * A description for the first version of the launch template. + * + * The version description must be maximum 255 characters long. + * + * Default: - No description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-versiondescription) + * @param versionDescription A description for the first version of the launch template. + */ + override fun versionDescription(versionDescription: String) { + cdkBuilder.versionDescription(versionDescription) + } + public fun build(): software.amazon.awscdk.services.ec2.LaunchTemplate = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateAttributes.kt index f2c6d74308..c049a1550e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateAttributes.kt @@ -106,7 +106,8 @@ public interface LaunchTemplateAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplateAttributes, - ) : CdkObject(cdkObject), LaunchTemplateAttributes { + ) : CdkObject(cdkObject), + LaunchTemplateAttributes { /** * The identifier of the Launch Template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateProps.kt index 8d99ef11cb..d49f19965d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateProps.kt @@ -283,6 +283,17 @@ public interface LaunchTemplateProps { */ public fun userData(): UserData? = unwrap(this).getUserData()?.let(UserData::wrap) + /** + * A description for the first version of the launch template. + * + * The version description must be maximum 255 characters long. + * + * Default: - No description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-versiondescription) + */ + public fun versionDescription(): String? = unwrap(this).getVersionDescription() + /** * A builder for [LaunchTemplateProps] */ @@ -466,6 +477,12 @@ public interface LaunchTemplateProps { * @param userData The AMI that will be used by instances. */ public fun userData(userData: UserData) + + /** + * @param versionDescription A description for the first version of the launch template. + * The version description must be maximum 255 characters long. + */ + public fun versionDescription(versionDescription: String) } private class BuilderImpl : Builder { @@ -703,12 +720,21 @@ public interface LaunchTemplateProps { cdkBuilder.userData(userData.let(UserData.Companion::unwrap)) } + /** + * @param versionDescription A description for the first version of the launch template. + * The version description must be maximum 255 characters long. + */ + override fun versionDescription(versionDescription: String) { + cdkBuilder.versionDescription(versionDescription) + } + public fun build(): software.amazon.awscdk.services.ec2.LaunchTemplateProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplateProps, - ) : CdkObject(cdkObject), LaunchTemplateProps { + ) : CdkObject(cdkObject), + LaunchTemplateProps { /** * Whether instances should have a public IP addresses associated with them. * @@ -956,6 +982,17 @@ public interface LaunchTemplateProps { * machineImage; no UserData is created if a machineImage is not provided */ override fun userData(): UserData? = unwrap(this).getUserData()?.let(UserData::wrap) + + /** + * A description for the first version of the launch template. + * + * The version description must be maximum 255 characters long. + * + * Default: - No description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-versiondescription) + */ + override fun versionDescription(): String? = unwrap(this).getVersionDescription() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2Aspect.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2Aspect.kt index dbb1b72cbb..22fc5fc359 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2Aspect.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2Aspect.kt @@ -28,7 +28,8 @@ import kotlin.Unit */ public open class LaunchTemplateRequireImdsv2Aspect( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplateRequireImdsv2Aspect, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor() : this(software.amazon.awscdk.services.ec2.LaunchTemplateRequireImdsv2Aspect() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2AspectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2AspectProps.kt index 4f6b921dbd..35c415d20b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2AspectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateRequireImdsv2AspectProps.kt @@ -62,7 +62,8 @@ public interface LaunchTemplateRequireImdsv2AspectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplateRequireImdsv2AspectProps, - ) : CdkObject(cdkObject), LaunchTemplateRequireImdsv2AspectProps { + ) : CdkObject(cdkObject), + LaunchTemplateRequireImdsv2AspectProps { /** * Whether warning annotations from this Aspect should be suppressed or not. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateSpotOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateSpotOptions.kt index 0570a2e310..b913f67080 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateSpotOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LaunchTemplateSpotOptions.kt @@ -183,7 +183,8 @@ public interface LaunchTemplateSpotOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LaunchTemplateSpotOptions, - ) : CdkObject(cdkObject), LaunchTemplateSpotOptions { + ) : CdkObject(cdkObject), + LaunchTemplateSpotOptions { /** * Spot Instances with a defined duration (also known as Spot blocks) are designed not to be * interrupted and will run continuously for the duration you select. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LinuxUserDataOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LinuxUserDataOptions.kt index 503d760569..76afaef7a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LinuxUserDataOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LinuxUserDataOptions.kt @@ -58,7 +58,8 @@ public interface LinuxUserDataOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LinuxUserDataOptions, - ) : CdkObject(cdkObject), LinuxUserDataOptions { + ) : CdkObject(cdkObject), + LinuxUserDataOptions { /** * Shebang for the UserData script. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LocationPackageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LocationPackageOptions.kt index 2bddc80eb4..83ea8c835d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LocationPackageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LocationPackageOptions.kt @@ -96,7 +96,8 @@ public interface LocationPackageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LocationPackageOptions, - ) : CdkObject(cdkObject), LocationPackageOptions { + ) : CdkObject(cdkObject), + LocationPackageOptions { /** * Identifier key for this package. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LogFormat.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LogFormat.kt index 0f0b9df201..ec1e12aff5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LogFormat.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LogFormat.kt @@ -55,6 +55,36 @@ public open class LogFormat( public val DST_PORT: LogFormat = LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.DST_PORT) + public val ECS_CLUSTER_ARN: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_CLUSTER_ARN) + + public val ECS_CLUSTER_NAME: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_CLUSTER_NAME) + + public val ECS_CONTAINER_ID: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_CONTAINER_ID) + + public val ECS_CONTAINER_INSTANCE_ARN: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_CONTAINER_INSTANCE_ARN) + + public val ECS_CONTAINER_INSTANCE_ID: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_CONTAINER_INSTANCE_ID) + + public val ECS_SECOND_CONTAINER_ID: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_SECOND_CONTAINER_ID) + + public val ECS_SERVICE_NAME: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_SERVICE_NAME) + + public val ECS_TASK_ARN: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_TASK_ARN) + + public val ECS_TASK_DEFINITION_ARN: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_TASK_DEFINITION_ARN) + + public val ECS_TASK_ID: LogFormat = + LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.ECS_TASK_ID) + public val END_TIMESTAMP: LogFormat = LogFormat.wrap(software.amazon.awscdk.services.ec2.LogFormat.END_TIMESTAMP) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImage.kt index 4de19deaec..f2c06f5aab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImage.kt @@ -43,7 +43,8 @@ import kotlin.collections.Map */ public open class LookupMachineImage( cdkObject: software.amazon.awscdk.services.ec2.LookupMachineImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor(props: LookupMachineImageProps) : this(software.amazon.awscdk.services.ec2.LookupMachineImage(props.let(LookupMachineImageProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImageProps.kt index 960e043fa4..b5f1fda2b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/LookupMachineImageProps.kt @@ -173,7 +173,8 @@ public interface LookupMachineImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.LookupMachineImageProps, - ) : CdkObject(cdkObject), LookupMachineImageProps { + ) : CdkObject(cdkObject), + LookupMachineImageProps { /** * Additional filters on the AMI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MachineImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MachineImageConfig.kt index 9148a76c12..4431d3d9cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MachineImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MachineImageConfig.kt @@ -92,7 +92,8 @@ public interface MachineImageConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.MachineImageConfig, - ) : CdkObject(cdkObject), MachineImageConfig { + ) : CdkObject(cdkObject), + MachineImageConfig { /** * The AMI ID of the image to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartBodyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartBodyOptions.kt index a7553e8734..bd3fbc6247 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartBodyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartBodyOptions.kt @@ -116,7 +116,8 @@ public interface MultipartBodyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.MultipartBodyOptions, - ) : CdkObject(cdkObject), MultipartBodyOptions { + ) : CdkObject(cdkObject), + MultipartBodyOptions { /** * The body of message. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartUserDataOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartUserDataOptions.kt index fd63e2b8ff..cd5eb64e18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartUserDataOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/MultipartUserDataOptions.kt @@ -67,7 +67,8 @@ public interface MultipartUserDataOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.MultipartUserDataOptions, - ) : CdkObject(cdkObject), MultipartUserDataOptions { + ) : CdkObject(cdkObject), + MultipartUserDataOptions { /** * The string used to separate parts in multipart user data archive (it's like MIME boundary). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NamedPackageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NamedPackageOptions.kt index 469777abac..a053ae1b2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NamedPackageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NamedPackageOptions.kt @@ -101,7 +101,8 @@ public interface NamedPackageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.NamedPackageOptions, - ) : CdkObject(cdkObject), NamedPackageOptions { + ) : CdkObject(cdkObject), + NamedPackageOptions { /** * Restart the given services after this command has run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProps.kt index e65de903f8..a9f2c0b6c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProps.kt @@ -69,7 +69,8 @@ public interface NatGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.NatGatewayProps, - ) : CdkObject(cdkObject), NatGatewayProps { + ) : CdkObject(cdkObject), + NatGatewayProps { /** * EIP allocation IDs for the NAT gateways. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProvider.kt new file mode 100644 index 0000000000..dd1b306ccf --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatGatewayProvider.kt @@ -0,0 +1,143 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ec2 + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Provider for NAT Gateways. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ec2.*; + * NatGatewayProvider natGatewayProvider = NatGatewayProvider.Builder.create() + * .eipAllocationIds(List.of("eipAllocationIds")) + * .build(); + * ``` + */ +public open class NatGatewayProvider( + cdkObject: software.amazon.awscdk.services.ec2.NatGatewayProvider, +) : NatProvider(cdkObject) { + public constructor() : this(software.amazon.awscdk.services.ec2.NatGatewayProvider() + ) + + public constructor(props: NatGatewayProps) : + this(software.amazon.awscdk.services.ec2.NatGatewayProvider(props.let(NatGatewayProps.Companion::unwrap)) + ) + + public constructor(props: NatGatewayProps.Builder.() -> Unit) : this(NatGatewayProps(props) + ) + + /** + * Called by the VPC to configure NAT. + * + * Don't call this directly, the VPC will call it automatically. + * + * @param options + */ + public override fun configureNat(options: ConfigureNatOptions) { + unwrap(this).configureNat(options.let(ConfigureNatOptions.Companion::unwrap)) + } + + /** + * Called by the VPC to configure NAT. + * + * Don't call this directly, the VPC will call it automatically. + * + * @param options + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd4e1c7dc445ecccb0628de1d2dc0402a07b93c21145f259b74eb40763acacfd") + public override fun configureNat(options: ConfigureNatOptions.Builder.() -> Unit): Unit = + configureNat(ConfigureNatOptions(options)) + + /** + * Configures subnet with the gateway. + * + * Don't call this directly, the VPC will call it automatically. + * + * @param subnet + */ + public override fun configureSubnet(subnet: PrivateSubnet) { + unwrap(this).configureSubnet(subnet.let(PrivateSubnet.Companion::unwrap)) + } + + /** + * Return list of gateways spawned by the provider. + */ + public override fun configuredGateways(): List = + unwrap(this).getConfiguredGateways().map(GatewayConfig::wrap) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ec2.NatGatewayProvider]. + */ + @CdkDslMarker + public interface Builder { + /** + * EIP allocation IDs for the NAT gateways. + * + * Default: - No fixed EIPs allocated for the NAT gateways + * + * @param eipAllocationIds EIP allocation IDs for the NAT gateways. + */ + public fun eipAllocationIds(eipAllocationIds: List) + + /** + * EIP allocation IDs for the NAT gateways. + * + * Default: - No fixed EIPs allocated for the NAT gateways + * + * @param eipAllocationIds EIP allocation IDs for the NAT gateways. + */ + public fun eipAllocationIds(vararg eipAllocationIds: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ec2.NatGatewayProvider.Builder = + software.amazon.awscdk.services.ec2.NatGatewayProvider.Builder.create() + + /** + * EIP allocation IDs for the NAT gateways. + * + * Default: - No fixed EIPs allocated for the NAT gateways + * + * @param eipAllocationIds EIP allocation IDs for the NAT gateways. + */ + override fun eipAllocationIds(eipAllocationIds: List) { + cdkBuilder.eipAllocationIds(eipAllocationIds) + } + + /** + * EIP allocation IDs for the NAT gateways. + * + * Default: - No fixed EIPs allocated for the NAT gateways + * + * @param eipAllocationIds EIP allocation IDs for the NAT gateways. + */ + override fun eipAllocationIds(vararg eipAllocationIds: String): Unit = + eipAllocationIds(eipAllocationIds.toList()) + + public fun build(): software.amazon.awscdk.services.ec2.NatGatewayProvider = cdkBuilder.build() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NatGatewayProvider { + val builderImpl = BuilderImpl() + return NatGatewayProvider(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ec2.NatGatewayProvider): + NatGatewayProvider = NatGatewayProvider(cdkObject) + + internal fun unwrap(wrapped: NatGatewayProvider): + software.amazon.awscdk.services.ec2.NatGatewayProvider = wrapped.cdkObject as + software.amazon.awscdk.services.ec2.NatGatewayProvider + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProps.kt index 3441f509db..e2081a2968 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProps.kt @@ -314,7 +314,8 @@ public interface NatInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.NatInstanceProps, - ) : CdkObject(cdkObject), NatInstanceProps { + ) : CdkObject(cdkObject), + NatInstanceProps { /** * Specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProvider.kt index 3eea616ac6..f888f62ef7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProvider.kt @@ -30,7 +30,8 @@ import kotlin.jvm.JvmName */ public open class NatInstanceProvider( cdkObject: software.amazon.awscdk.services.ec2.NatInstanceProvider, -) : NatProvider(cdkObject), IConnectable { +) : NatProvider(cdkObject), + IConnectable { @Deprecated(message = "deprecated in CDK") public constructor(props: NatInstanceProps) : this(software.amazon.awscdk.services.ec2.NatInstanceProvider(props.let(NatInstanceProps.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProviderV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProviderV2.kt index f0c89d2d31..ddcdd7500f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProviderV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NatInstanceProviderV2.kt @@ -34,7 +34,8 @@ import kotlin.jvm.JvmName */ public open class NatInstanceProviderV2( cdkObject: software.amazon.awscdk.services.ec2.NatInstanceProviderV2, -) : NatProvider(cdkObject), IConnectable { +) : NatProvider(cdkObject), + IConnectable { public constructor(props: NatInstanceProps) : this(software.amazon.awscdk.services.ec2.NatInstanceProviderV2(props.let(NatInstanceProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAcl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAcl.kt index c26797054b..39c95c2728 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAcl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAcl.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class NetworkAcl( cdkObject: software.amazon.awscdk.services.ec2.NetworkAcl, -) : Resource(cdkObject), INetworkAcl { +) : Resource(cdkObject), + INetworkAcl { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntry.kt index 4e61874e2d..42031a9944 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntry.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class NetworkAclEntry( cdkObject: software.amazon.awscdk.services.ec2.NetworkAclEntry, -) : Resource(cdkObject), INetworkAclEntry { +) : Resource(cdkObject), + INetworkAclEntry { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntryProps.kt index 5824251b08..598ebf7fdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclEntryProps.kt @@ -153,7 +153,8 @@ public interface NetworkAclEntryProps : CommonNetworkAclEntryOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.NetworkAclEntryProps, - ) : CdkObject(cdkObject), NetworkAclEntryProps { + ) : CdkObject(cdkObject), + NetworkAclEntryProps { /** * The CIDR range to allow or deny. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclProps.kt index d04562cc8f..1fad9ab9ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/NetworkAclProps.kt @@ -141,7 +141,8 @@ public interface NetworkAclProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.NetworkAclProps, - ) : CdkObject(cdkObject), NetworkAclProps { + ) : CdkObject(cdkObject), + NetworkAclProps { /** * The name of the NetworkAcl. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroup.kt index 576a5d091e..761e4a9d7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroup.kt @@ -19,20 +19,22 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.ec2.*; - * PlacementGroup placementGroup = PlacementGroup.Builder.create(this, "MyPlacementGroup") - * .partitions(123) - * .placementGroupName("placementGroupName") - * .spreadLevel(PlacementGroupSpreadLevel.HOST) - * .strategy(PlacementGroupStrategy.CLUSTER) + * InstanceType instanceType; + * PlacementGroup pg = PlacementGroup.Builder.create(this, "test-pg") + * .strategy(PlacementGroupStrategy.SPREAD) + * .build(); + * Instance.Builder.create(this, "Instance") + * .vpc(vpc) + * .instanceType(instanceType) + * .machineImage(MachineImage.latestAmazonLinux2023()) + * .placementGroup(pg) * .build(); * ``` */ public open class PlacementGroup( cdkObject: software.amazon.awscdk.services.ec2.PlacementGroup, -) : Resource(cdkObject), IPlacementGroup { +) : Resource(cdkObject), + IPlacementGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.PlacementGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroupProps.kt index cb71dceec4..99c19609a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PlacementGroupProps.kt @@ -15,14 +15,15 @@ import kotlin.Unit * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.ec2.*; - * PlacementGroupProps placementGroupProps = PlacementGroupProps.builder() - * .partitions(123) - * .placementGroupName("placementGroupName") - * .spreadLevel(PlacementGroupSpreadLevel.HOST) - * .strategy(PlacementGroupStrategy.CLUSTER) + * InstanceType instanceType; + * PlacementGroup pg = PlacementGroup.Builder.create(this, "test-pg") + * .strategy(PlacementGroupStrategy.SPREAD) + * .build(); + * Instance.Builder.create(this, "Instance") + * .vpc(vpc) + * .instanceType(instanceType) + * .machineImage(MachineImage.latestAmazonLinux2023()) + * .placementGroup(pg) * .build(); * ``` */ @@ -163,7 +164,8 @@ public interface PlacementGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PlacementGroupProps, - ) : CdkObject(cdkObject), PlacementGroupProps { + ) : CdkObject(cdkObject), + PlacementGroupProps { /** * The number of partitions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PortProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PortProps.kt index 52a502bb94..d081edd957 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PortProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PortProps.kt @@ -115,7 +115,8 @@ public interface PortProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PortProps, - ) : CdkObject(cdkObject), PortProps { + ) : CdkObject(cdkObject), + PortProps { /** * The starting port for the range. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixList.kt index 11efb9d35f..c5593b89cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixList.kt @@ -24,7 +24,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PrefixList( cdkObject: software.amazon.awscdk.services.ec2.PrefixList, -) : Resource(cdkObject), IPrefixList { +) : Resource(cdkObject), + IPrefixList { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.PrefixList(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListOptions.kt index 5f0ba1fd7f..4206b6fdb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListOptions.kt @@ -57,7 +57,8 @@ public interface PrefixListOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PrefixListOptions, - ) : CdkObject(cdkObject), PrefixListOptions { + ) : CdkObject(cdkObject), + PrefixListOptions { /** * The maximum number of entries for the prefix list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListProps.kt index 17b980eb76..24280bb001 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrefixListProps.kt @@ -119,7 +119,8 @@ public interface PrefixListProps : PrefixListOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PrefixListProps, - ) : CdkObject(cdkObject), PrefixListProps { + ) : CdkObject(cdkObject), + PrefixListProps { /** * The address family of the prefix list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnet.kt index 17bf00165d..3a1ec4e6c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnet.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PrivateSubnet( cdkObject: software.amazon.awscdk.services.ec2.PrivateSubnet, -) : Subnet(cdkObject), IPrivateSubnet { +) : Subnet(cdkObject), + IPrivateSubnet { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetAttributes.kt index c854526e8c..e17ad804db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetAttributes.kt @@ -89,7 +89,8 @@ public interface PrivateSubnetAttributes : SubnetAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PrivateSubnetAttributes, - ) : CdkObject(cdkObject), PrivateSubnetAttributes { + ) : CdkObject(cdkObject), + PrivateSubnetAttributes { /** * The Availability Zone the subnet is located in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetProps.kt index 756acda21c..f5b4d52b1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PrivateSubnetProps.kt @@ -121,7 +121,8 @@ public interface PrivateSubnetProps : SubnetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PrivateSubnetProps, - ) : CdkObject(cdkObject), PrivateSubnetProps { + ) : CdkObject(cdkObject), + PrivateSubnetProps { /** * Indicates whether a network interface created in this subnet receives an IPv6 address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnet.kt index 08b0a6c42d..8a0fd5f104 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnet.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PublicSubnet( cdkObject: software.amazon.awscdk.services.ec2.PublicSubnet, -) : Subnet(cdkObject), IPublicSubnet { +) : Subnet(cdkObject), + IPublicSubnet { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetAttributes.kt index 37df2dde58..dbdef06325 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetAttributes.kt @@ -89,7 +89,8 @@ public interface PublicSubnetAttributes : SubnetAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PublicSubnetAttributes, - ) : CdkObject(cdkObject), PublicSubnetAttributes { + ) : CdkObject(cdkObject), + PublicSubnetAttributes { /** * The Availability Zone the subnet is located in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetProps.kt index dd41359b71..33df601854 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/PublicSubnetProps.kt @@ -121,7 +121,8 @@ public interface PublicSubnetProps : SubnetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.PublicSubnetProps, - ) : CdkObject(cdkObject), PublicSubnetProps { + ) : CdkObject(cdkObject), + PublicSubnetProps { /** * Indicates whether a network interface created in this subnet receives an IPv6 address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RequestedSubnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RequestedSubnet.kt index 92c0645c8c..4799bfc934 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RequestedSubnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RequestedSubnet.kt @@ -115,7 +115,8 @@ public interface RequestedSubnet { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.RequestedSubnet, - ) : CdkObject(cdkObject), RequestedSubnet { + ) : CdkObject(cdkObject), + RequestedSubnet { /** * The availability zone for the subnet. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ResolveSsmParameterAtLaunchImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ResolveSsmParameterAtLaunchImage.kt index 58a70ed010..57e3206c67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ResolveSsmParameterAtLaunchImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/ResolveSsmParameterAtLaunchImage.kt @@ -40,7 +40,8 @@ import kotlin.Unit */ public open class ResolveSsmParameterAtLaunchImage( cdkObject: software.amazon.awscdk.services.ec2.ResolveSsmParameterAtLaunchImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor(parameterName: String) : this(software.amazon.awscdk.services.ec2.ResolveSsmParameterAtLaunchImage(parameterName) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RuleScope.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RuleScope.kt index 06ab91216d..508042772a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RuleScope.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/RuleScope.kt @@ -74,7 +74,8 @@ public interface RuleScope { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.RuleScope, - ) : CdkObject(cdkObject), RuleScope { + ) : CdkObject(cdkObject), + RuleScope { /** * The construct ID to use for the rule. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DestinationOptions.kt index 59c7b7d1e8..36b2d4ceb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DestinationOptions.kt @@ -101,7 +101,8 @@ public interface S3DestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.S3DestinationOptions, - ) : CdkObject(cdkObject), S3DestinationOptions { + ) : CdkObject(cdkObject), + S3DestinationOptions { /** * The format for the flow log. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DownloadOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DownloadOptions.kt index 5cc8bc3592..a245ce3c5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DownloadOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/S3DownloadOptions.kt @@ -121,7 +121,8 @@ public interface S3DownloadOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.S3DownloadOptions, - ) : CdkObject(cdkObject), S3DownloadOptions { + ) : CdkObject(cdkObject), + S3DownloadOptions { /** * Name of the S3 bucket to download from. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroup.kt index 3f1f170a0d..d24cff1446 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroup.kt @@ -66,7 +66,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SecurityGroup( cdkObject: software.amazon.awscdk.services.ec2.SecurityGroup, -) : Resource(cdkObject), ISecurityGroup { +) : Resource(cdkObject), + ISecurityGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupImportOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupImportOptions.kt index e621085f8d..b62b1514b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupImportOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupImportOptions.kt @@ -125,7 +125,8 @@ public interface SecurityGroupImportOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SecurityGroupImportOptions, - ) : CdkObject(cdkObject), SecurityGroupImportOptions { + ) : CdkObject(cdkObject), + SecurityGroupImportOptions { /** * Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupProps.kt index 585fc745e8..14920eca30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SecurityGroupProps.kt @@ -226,7 +226,8 @@ public interface SecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SecurityGroupProps, - ) : CdkObject(cdkObject), SecurityGroupProps { + ) : CdkObject(cdkObject), + SecurityGroupProps { /** * Whether to allow all outbound ipv6 traffic by default. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SelectedSubnets.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SelectedSubnets.kt index 1b3f199ecd..ed3db6688b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SelectedSubnets.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SelectedSubnets.kt @@ -191,7 +191,8 @@ public interface SelectedSubnets { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SelectedSubnets, - ) : CdkObject(cdkObject), SelectedSubnets { + ) : CdkObject(cdkObject), + SelectedSubnets { /** * The respective AZs of each subnet. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SsmParameterImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SsmParameterImageOptions.kt index ef3268a517..223c95314c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SsmParameterImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SsmParameterImageOptions.kt @@ -182,7 +182,8 @@ public interface SsmParameterImageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SsmParameterImageOptions, - ) : CdkObject(cdkObject), SsmParameterImageOptions { + ) : CdkObject(cdkObject), + SsmParameterImageOptions { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Subnet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Subnet.kt index 97995c365c..691011e26b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Subnet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Subnet.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Subnet( cdkObject: software.amazon.awscdk.services.ec2.Subnet, -) : Resource(cdkObject), ISubnet { +) : Resource(cdkObject), + ISubnet { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetAttributes.kt index 989ba52a1d..115858bea2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetAttributes.kt @@ -113,7 +113,8 @@ public interface SubnetAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetAttributes, - ) : CdkObject(cdkObject), SubnetAttributes { + ) : CdkObject(cdkObject), + SubnetAttributes { /** * The Availability Zone the subnet is located in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetConfiguration.kt index 34863be780..a9ed1cbe5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetConfiguration.kt @@ -218,7 +218,8 @@ public interface SubnetConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetConfiguration, - ) : CdkObject(cdkObject), SubnetConfiguration { + ) : CdkObject(cdkObject), + SubnetConfiguration { /** * The number of leading 1 bits in the routing mask. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetIpamOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetIpamOptions.kt index 62937d069f..89e7096b29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetIpamOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetIpamOptions.kt @@ -70,7 +70,8 @@ public interface SubnetIpamOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetIpamOptions, - ) : CdkObject(cdkObject), SubnetIpamOptions { + ) : CdkObject(cdkObject), + SubnetIpamOptions { /** * CIDR Allocations for Subnets. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociation.kt index f518b5f0ce..91be4dafff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociation.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SubnetNetworkAclAssociation( cdkObject: software.amazon.awscdk.services.ec2.SubnetNetworkAclAssociation, -) : Resource(cdkObject), ISubnetNetworkAclAssociation { +) : Resource(cdkObject), + ISubnetNetworkAclAssociation { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociationProps.kt index 7281a07714..690ec48616 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetNetworkAclAssociationProps.kt @@ -105,7 +105,8 @@ public interface SubnetNetworkAclAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetNetworkAclAssociationProps, - ) : CdkObject(cdkObject), SubnetNetworkAclAssociationProps { + ) : CdkObject(cdkObject), + SubnetNetworkAclAssociationProps { /** * The Network ACL this association is defined for. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetProps.kt index 812a9c55f0..995f1a052f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetProps.kt @@ -163,7 +163,8 @@ public interface SubnetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetProps, - ) : CdkObject(cdkObject), SubnetProps { + ) : CdkObject(cdkObject), + SubnetProps { /** * Indicates whether a network interface created in this subnet receives an IPv6 address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetSelection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetSelection.kt index e1f6105197..6e11c0782f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetSelection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SubnetSelection.kt @@ -261,7 +261,8 @@ public interface SubnetSelection { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SubnetSelection, - ) : CdkObject(cdkObject), SubnetSelection { + ) : CdkObject(cdkObject), + SubnetSelection { /** * Select subnets only in the given AZs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SystemdConfigFileOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SystemdConfigFileOptions.kt index 0f251dfb96..506aa277aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SystemdConfigFileOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/SystemdConfigFileOptions.kt @@ -244,7 +244,8 @@ public interface SystemdConfigFileOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.SystemdConfigFileOptions, - ) : CdkObject(cdkObject), SystemdConfigFileOptions { + ) : CdkObject(cdkObject), + SystemdConfigFileOptions { /** * Start the service after the networking part of the OS comes up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Volume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Volume.kt index 9f0bf1d534..972a3ba26d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Volume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Volume.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Volume( cdkObject: software.amazon.awscdk.services.ec2.Volume, -) : Resource(cdkObject), IVolume { +) : Resource(cdkObject), + IVolume { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeAttributes.kt index e084f6ff1a..b8da0a7026 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeAttributes.kt @@ -99,7 +99,8 @@ public interface VolumeAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VolumeAttributes, - ) : CdkObject(cdkObject), VolumeAttributes { + ) : CdkObject(cdkObject), + VolumeAttributes { /** * The availability zone that the EBS Volume is contained within (ex: us-west-2a). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeProps.kt index 462d5e15ca..6e88be4f75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VolumeProps.kt @@ -458,7 +458,8 @@ public interface VolumeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VolumeProps, - ) : CdkObject(cdkObject), VolumeProps { + ) : CdkObject(cdkObject), + VolumeProps { /** * Indicates whether the volume is auto-enabled for I/O operations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Vpc.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Vpc.kt index e0c8166005..5c56d89d3c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Vpc.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/Vpc.kt @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Vpc( cdkObject: software.amazon.awscdk.services.ec2.Vpc, -) : Resource(cdkObject), IVpc { +) : Resource(cdkObject), + IVpc { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ec2.Vpc(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcAttributes.kt index 3bf29e2475..34447a72a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcAttributes.kt @@ -584,7 +584,8 @@ public interface VpcAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpcAttributes, - ) : CdkObject(cdkObject), VpcAttributes { + ) : CdkObject(cdkObject), + VpcAttributes { /** * List of availability zones for the subnets in this VPC. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpoint.kt index 26c879907d..36995c242b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpoint.kt @@ -15,7 +15,8 @@ import kotlin.jvm.JvmName */ public abstract class VpcEndpoint( cdkObject: software.amazon.awscdk.services.ec2.VpcEndpoint, -) : Resource(cdkObject), IVpcEndpoint { +) : Resource(cdkObject), + IVpcEndpoint { /** * Adds a statement to the policy document of the VPC endpoint. The statement must have a * Principal. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointService.kt index 07785b62bc..fb116c1c1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointService.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VpcEndpointService( cdkObject: software.amazon.awscdk.services.ec2.VpcEndpointService, -) : Resource(cdkObject), IVpcEndpointService { +) : Resource(cdkObject), + IVpcEndpointService { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -240,6 +241,9 @@ public open class VpcEndpointService( } public companion object { + public val DEFAULT_PREFIX: String = + software.amazon.awscdk.services.ec2.VpcEndpointService.DEFAULT_PREFIX + public operator fun invoke( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointServiceProps.kt index 5dab12c9ab..e2c0316815 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcEndpointServiceProps.kt @@ -169,7 +169,8 @@ public interface VpcEndpointServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpcEndpointServiceProps, - ) : CdkObject(cdkObject), VpcEndpointServiceProps { + ) : CdkObject(cdkObject), + VpcEndpointServiceProps { /** * Whether requests from service consumers to connect to the service through an endpoint must be * accepted. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcIpamOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcIpamOptions.kt index 5f75868a8a..84409b0d7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcIpamOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcIpamOptions.kt @@ -98,7 +98,8 @@ public interface VpcIpamOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpcIpamOptions, - ) : CdkObject(cdkObject), VpcIpamOptions { + ) : CdkObject(cdkObject), + VpcIpamOptions { /** * CIDR Block for Vpc. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcLookupOptions.kt index ac76a5276b..d1f610472c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcLookupOptions.kt @@ -250,7 +250,8 @@ public interface VpcLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpcLookupOptions, - ) : CdkObject(cdkObject), VpcLookupOptions { + ) : CdkObject(cdkObject), + VpcLookupOptions { /** * Whether to match the default VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcProps.kt index 3107661f41..26151c8393 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpcProps.kt @@ -857,7 +857,8 @@ public interface VpcProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpcProps, - ) : CdkObject(cdkObject), VpcProps { + ) : CdkObject(cdkObject), + VpcProps { /** * Availability zones this VPC spans. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionAttributes.kt index 899e1de03a..0d6fcae593 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionAttributes.kt @@ -111,7 +111,8 @@ public interface VpnConnectionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpnConnectionAttributes, - ) : CdkObject(cdkObject), VpnConnectionAttributes { + ) : CdkObject(cdkObject), + VpnConnectionAttributes { /** * The ASN of the customer gateway. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionBase.kt index c8d95e2a8e..5709630491 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionBase.kt @@ -17,7 +17,8 @@ import kotlin.jvm.JvmName */ public abstract class VpnConnectionBase( cdkObject: software.amazon.awscdk.services.ec2.VpnConnectionBase, -) : Resource(cdkObject), IVpnConnection { +) : Resource(cdkObject), + IVpnConnection { /** * The ASN of the customer gateway. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionOptions.kt index 076bdf5f99..9e569a1b7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionOptions.kt @@ -152,7 +152,8 @@ public interface VpnConnectionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpnConnectionOptions, - ) : CdkObject(cdkObject), VpnConnectionOptions { + ) : CdkObject(cdkObject), + VpnConnectionOptions { /** * The ASN of the customer gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionProps.kt index ec175e152a..9ade0a2ac7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnConnectionProps.kt @@ -149,7 +149,8 @@ public interface VpnConnectionProps : VpnConnectionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpnConnectionProps, - ) : CdkObject(cdkObject), VpnConnectionProps { + ) : CdkObject(cdkObject), + VpnConnectionProps { /** * The ASN of the customer gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGateway.kt index 7386a77a5b..402dd7d3d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGateway.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VpnGateway( cdkObject: software.amazon.awscdk.services.ec2.VpnGateway, -) : Resource(cdkObject), IVpnGateway { +) : Resource(cdkObject), + IVpnGateway { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGatewayProps.kt index bb4217364d..f122329545 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnGatewayProps.kt @@ -77,7 +77,8 @@ public interface VpnGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpnGatewayProps, - ) : CdkObject(cdkObject), VpnGatewayProps { + ) : CdkObject(cdkObject), + VpnGatewayProps { /** * Explicitly specify an Asn or let aws pick an Asn for you. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnTunnelOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnTunnelOption.kt index 7025b4c9f5..f7d43de470 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnTunnelOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/VpnTunnelOption.kt @@ -143,7 +143,8 @@ public interface VpnTunnelOption { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.VpnTunnelOption, - ) : CdkObject(cdkObject), VpnTunnelOption { + ) : CdkObject(cdkObject), + VpnTunnelOption { /** * (deprecated) The pre-shared key (PSK) to establish initial authentication between the virtual * private gateway and customer gateway. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsImageProps.kt index 72015b11ca..3885ec53dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsImageProps.kt @@ -57,7 +57,8 @@ public interface WindowsImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.WindowsImageProps, - ) : CdkObject(cdkObject), WindowsImageProps { + ) : CdkObject(cdkObject), + WindowsImageProps { /** * Initial user data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsUserDataOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsUserDataOptions.kt index ecee349950..7791588076 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsUserDataOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/WindowsUserDataOptions.kt @@ -76,7 +76,8 @@ public interface WindowsUserDataOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ec2.WindowsUserDataOptions, - ) : CdkObject(cdkObject), WindowsUserDataOptions { + ) : CdkObject(cdkObject), + WindowsUserDataOptions { /** * Set to true to set this userdata to persist through an instance reboot; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepository.kt index 555c151c4f..e0ce4dce6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepository.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublicRepository( cdkObject: software.amazon.awscdk.services.ecr.CfnPublicRepository, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecr.CfnPublicRepository(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -487,7 +489,8 @@ public open class CfnPublicRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnPublicRepository.RepositoryCatalogDataProperty, - ) : CdkObject(cdkObject), RepositoryCatalogDataProperty { + ) : CdkObject(cdkObject), + RepositoryCatalogDataProperty { /** * The longform description of the contents of the repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepositoryProps.kt index b5e8341670..11c2827a52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPublicRepositoryProps.kt @@ -194,7 +194,8 @@ public interface CfnPublicRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnPublicRepositoryProps, - ) : CdkObject(cdkObject), CfnPublicRepositoryProps { + ) : CdkObject(cdkObject), + CfnPublicRepositoryProps { /** * The details about the repository that are publicly visible in the Amazon ECR Public Gallery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRule.kt index 2dac84a793..4d5d0cdd44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRule.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPullThroughCacheRule( cdkObject: software.amazon.awscdk.services.ecr.CfnPullThroughCacheRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecr.CfnPullThroughCacheRule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRuleProps.kt index bd21d0d1ee..2503c966ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnPullThroughCacheRuleProps.kt @@ -129,7 +129,8 @@ public interface CfnPullThroughCacheRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnPullThroughCacheRuleProps, - ) : CdkObject(cdkObject), CfnPullThroughCacheRuleProps { + ) : CdkObject(cdkObject), + CfnPullThroughCacheRuleProps { /** * The ARN of the Secrets Manager secret associated with the pull through cache rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicy.kt index 8649f8a482..62eb74a098 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicy.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegistryPolicy( cdkObject: software.amazon.awscdk.services.ecr.CfnRegistryPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicyProps.kt index 6d3cb65969..ee15bf6927 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRegistryPolicyProps.kt @@ -61,7 +61,8 @@ public interface CfnRegistryPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRegistryPolicyProps, - ) : CdkObject(cdkObject), CfnRegistryPolicyProps { + ) : CdkObject(cdkObject), + CfnRegistryPolicyProps { /** * The JSON policy text for your registry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfiguration.kt index 8572fb0949..bc6443a67d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfiguration.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationConfiguration( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -313,7 +314,8 @@ public open class CfnReplicationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationConfigurationProperty, - ) : CdkObject(cdkObject), ReplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ReplicationConfigurationProperty { /** * An array of objects representing the replication destinations and repository filters for a * replication configuration. @@ -424,7 +426,8 @@ public open class CfnReplicationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationDestinationProperty, - ) : CdkObject(cdkObject), ReplicationDestinationProperty { + ) : CdkObject(cdkObject), + ReplicationDestinationProperty { /** * The Region to replicate to. * @@ -617,7 +620,8 @@ public open class CfnReplicationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationRuleProperty, - ) : CdkObject(cdkObject), ReplicationRuleProperty { + ) : CdkObject(cdkObject), + ReplicationRuleProperty { /** * An array of objects representing the destination for a replication rule. * @@ -747,7 +751,8 @@ public open class CfnReplicationConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.RepositoryFilterProperty, - ) : CdkObject(cdkObject), RepositoryFilterProperty { + ) : CdkObject(cdkObject), + RepositoryFilterProperty { /** * The repository filter details. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfigurationProps.kt index cae072ed01..23e9f91f44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnReplicationConfigurationProps.kt @@ -108,7 +108,8 @@ public interface CfnReplicationConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnReplicationConfigurationProps, - ) : CdkObject(cdkObject), CfnReplicationConfigurationProps { + ) : CdkObject(cdkObject), + CfnReplicationConfigurationProps { /** * The replication configuration for a registry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepository.kt index f2d83a9ef5..1ec1897f7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepository.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepository( cdkObject: software.amazon.awscdk.services.ecr.CfnRepository, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecr.CfnRepository(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -721,7 +723,7 @@ public open class CfnRepository( * * By default, when no encryption configuration is set or the `AES256` encryption type is used, * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your - * data at rest using an AES-256 encryption algorithm. This does not require any action on your part. + * data at rest using an AES256 encryption algorithm. This does not require any action on your part. * * For more control over the encryption of the contents of your repository, you can use * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service ( @@ -752,17 +754,21 @@ public open class CfnRepository( * If you use the `KMS` encryption type, the contents of the repository will be encrypted using * server-side encryption with AWS Key Management Service key stored in AWS KMS . When you use AWS * KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for Amazon ECR, - * or specify your own AWS KMS key, which you already created. For more information, see - * [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key Management - * Service (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default AWS + * managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-encryptionconfiguration.html#cfn-ecr-repository-encryptionconfiguration-encryptiontype) */ @@ -789,18 +795,21 @@ public open class CfnRepository( * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . */ public fun encryptionType(encryptionType: String) @@ -825,18 +834,21 @@ public open class CfnRepository( * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . */ override fun encryptionType(encryptionType: String) { cdkBuilder.encryptionType(encryptionType) @@ -860,25 +872,29 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepository.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The encryption type to use. * * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-encryptionconfiguration.html#cfn-ecr-repository-encryptionconfiguration-encryptiontype) */ @@ -1002,7 +1018,8 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty, - ) : CdkObject(cdkObject), ImageScanningConfigurationProperty { + ) : CdkObject(cdkObject), + ImageScanningConfigurationProperty { /** * The setting that determines whether images are scanned after being pushed to a repository. * @@ -1117,7 +1134,8 @@ public open class CfnRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty, - ) : CdkObject(cdkObject), LifecyclePolicyProperty { + ) : CdkObject(cdkObject), + LifecyclePolicyProperty { /** * The JSON repository policy text to apply to the repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplate.kt index afc8c04082..3a537f8e41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplate.kt @@ -18,8 +18,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * AWS::ECR::RepositoryCreationTemplate is used to create repository with configuration from a - * pre-defined template. + * The details of the repository creation template associated with the request. * * Example: * @@ -32,6 +31,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .appliedFor(List.of("appliedFor")) * .prefix("prefix") * // the properties below are optional + * .customRoleArn("customRoleArn") * .description("description") * .encryptionConfiguration(EncryptionConfigurationProperty.builder() * .encryptionType("encryptionType") @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRepositoryCreationTemplate( cdkObject: software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -70,13 +71,13 @@ public open class CfnRepositoryCreationTemplate( ) /** - * A list of enumerable Strings representing the repository creation scenarios that the template + * A list of enumerable Strings representing the repository creation scenarios that this template * will apply towards. */ public open fun appliedFor(): List = unwrap(this).getAppliedFor() /** - * A list of enumerable Strings representing the repository creation scenarios that the template + * A list of enumerable Strings representing the repository creation scenarios that this template * will apply towards. */ public open fun appliedFor(`value`: List) { @@ -84,62 +85,68 @@ public open class CfnRepositoryCreationTemplate( } /** - * A list of enumerable Strings representing the repository creation scenarios that the template + * A list of enumerable Strings representing the repository creation scenarios that this template * will apply towards. */ public open fun appliedFor(vararg `value`: String): Unit = appliedFor(`value`.toList()) /** - * Create timestamp of the template. + * The date and time, in JavaScript date format, when the repository creation template was + * created. */ public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() /** - * Update timestamp of the template. + * The date and time, in JavaScript date format, when the repository creation template was last + * updated. */ public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() /** - * The description of the template. + * The ARN of the role to be assumed by Amazon ECR. + */ + public open fun customRoleArn(): String? = unwrap(this).getCustomRoleArn() + + /** + * The ARN of the role to be assumed by Amazon ECR. + */ + public open fun customRoleArn(`value`: String) { + unwrap(this).setCustomRoleArn(`value`) + } + + /** + * The description associated with the repository creation template. */ public open fun description(): String? = unwrap(this).getDescription() /** - * The description of the template. + * The description associated with the repository creation template. */ public open fun description(`value`: String) { unwrap(this).setDescription(`value`) } /** - * The encryption configuration for the repository. - * - * This determines how the contents of your repository are encrypted at rest. + * The encryption configuration associated with the repository creation template. */ public open fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() /** - * The encryption configuration for the repository. - * - * This determines how the contents of your repository are encrypted at rest. + * The encryption configuration associated with the repository creation template. */ public open fun encryptionConfiguration(`value`: IResolvable) { unwrap(this).setEncryptionConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * The encryption configuration for the repository. - * - * This determines how the contents of your repository are encrypted at rest. + * The encryption configuration associated with the repository creation template. */ public open fun encryptionConfiguration(`value`: EncryptionConfigurationProperty) { unwrap(this).setEncryptionConfiguration(`value`.let(EncryptionConfigurationProperty.Companion::unwrap)) } /** - * The encryption configuration for the repository. - * - * This determines how the contents of your repository are encrypted at rest. + * The encryption configuration associated with the repository creation template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0615e622a0ea6b7667d6f0352968d9c0b77e1f2d4905736dec3072d9ba5ce92e") @@ -148,12 +155,12 @@ public open class CfnRepositoryCreationTemplate( = encryptionConfiguration(EncryptionConfigurationProperty(`value`)) /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. */ public open fun imageTagMutability(): String? = unwrap(this).getImageTagMutability() /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. */ public open fun imageTagMutability(`value`: String) { unwrap(this).setImageTagMutability(`value`) @@ -169,62 +176,62 @@ public open class CfnRepositoryCreationTemplate( } /** - * The JSON lifecycle policy text to apply to the repository. + * The lifecycle policy to use for repositories created using the template. */ public open fun lifecyclePolicy(): String? = unwrap(this).getLifecyclePolicy() /** - * The JSON lifecycle policy text to apply to the repository. + * The lifecycle policy to use for repositories created using the template. */ public open fun lifecyclePolicy(`value`: String) { unwrap(this).setLifecyclePolicy(`value`) } /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. */ public open fun prefix(): String = unwrap(this).getPrefix() /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. */ public open fun prefix(`value`: String) { unwrap(this).setPrefix(`value`) } /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. */ public open fun repositoryPolicy(): String? = unwrap(this).getRepositoryPolicy() /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. */ public open fun repositoryPolicy(`value`: String) { unwrap(this).setRepositoryPolicy(`value`) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. */ public open fun resourceTags(): Any? = unwrap(this).getResourceTags() /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. */ public open fun resourceTags(`value`: IResolvable) { unwrap(this).setResourceTags(`value`.let(IResolvable.Companion::unwrap)) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. */ public open fun resourceTags(`value`: List) { unwrap(this).setResourceTags(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. */ public open fun resourceTags(vararg `value`: Any): Unit = resourceTags(`value`.toList()) @@ -234,93 +241,73 @@ public open class CfnRepositoryCreationTemplate( @CdkDslMarker public interface Builder { /** - * A list of enumerable Strings representing the repository creation scenarios that the template - * will apply towards. + * A list of enumerable Strings representing the repository creation scenarios that this + * template will apply towards. + * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. */ public fun appliedFor(appliedFor: List) /** - * A list of enumerable Strings representing the repository creation scenarios that the template - * will apply towards. + * A list of enumerable Strings representing the repository creation scenarios that this + * template will apply towards. + * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. */ public fun appliedFor(vararg appliedFor: String) /** - * The description of the template. + * The ARN of the role to be assumed by Amazon ECR. + * + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this + * field isn't specified, Amazon ECR will use the service-linked role for the repository creation + * template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-customrolearn) + * @param customRoleArn The ARN of the role to be assumed by Amazon ECR. + */ + public fun customRoleArn(customRoleArn: String) + + /** + * The description associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-description) - * @param description The description of the template. + * @param description The description associated with the repository creation template. */ public fun description(description: String) /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ public fun encryptionConfiguration(encryptionConfiguration: IResolvable) /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("11bfe268586d293bebc28c5576956fc7f90e2692aa08fc8ec8cde003fcd52e83") @@ -328,64 +315,83 @@ public open class CfnRepositoryCreationTemplate( fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit) /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. + * + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + * will be immutable which will prevent them from being overwritten. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-imagetagmutability) - * @param imageTagMutability The image tag mutability setting for the repository. + * @param imageTagMutability The tag mutability setting for the repository. */ public fun imageTagMutability(imageTagMutability: String) /** - * The JSON lifecycle policy text to apply to the repository. - * - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * The lifecycle policy to use for repositories created using the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-lifecyclepolicy) - * @param lifecyclePolicy The JSON lifecycle policy text to apply to the repository. + * @param lifecyclePolicy The lifecycle policy to use for repositories created using the + * template. */ public fun lifecyclePolicy(lifecyclePolicy: String) /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-prefix) - * @param prefix The prefix use to match the repository name and apply the template. + * @param prefix The repository namespace prefix associated with the repository creation + * template. */ public fun prefix(prefix: String) /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. * - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * A repository policy is a permissions policy associated with a repository to control access + * permissions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-repositorypolicy) - * @param repositoryPolicy The JSON repository policy text to apply to the repository. + * @param repositoryPolicy he repository policy to apply to repositories created using the + * template. */ public fun repositoryPolicy(repositoryPolicy: String) /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ public fun resourceTags(resourceTags: IResolvable) /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ public fun resourceTags(resourceTags: List) /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ public fun resourceTags(vararg resourceTags: Any) } @@ -399,101 +405,83 @@ public open class CfnRepositoryCreationTemplate( software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplate.Builder.create(scope, id) /** - * A list of enumerable Strings representing the repository creation scenarios that the template - * will apply towards. + * A list of enumerable Strings representing the repository creation scenarios that this + * template will apply towards. + * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. */ override fun appliedFor(appliedFor: List) { cdkBuilder.appliedFor(appliedFor) } /** - * A list of enumerable Strings representing the repository creation scenarios that the template - * will apply towards. + * A list of enumerable Strings representing the repository creation scenarios that this + * template will apply towards. + * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. */ override fun appliedFor(vararg appliedFor: String): Unit = appliedFor(appliedFor.toList()) /** - * The description of the template. + * The ARN of the role to be assumed by Amazon ECR. + * + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this + * field isn't specified, Amazon ECR will use the service-linked role for the repository creation + * template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-customrolearn) + * @param customRoleArn The ARN of the role to be assumed by Amazon ECR. + */ + override fun customRoleArn(customRoleArn: String) { + cdkBuilder.customRoleArn(customRoleArn) + } + + /** + * The description associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-description) - * @param description The description of the template. + * @param description The description associated with the repository creation template. */ override fun description(description: String) { cdkBuilder.description(description) } /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) } /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) { cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfigurationProperty.Companion::unwrap)) } /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("11bfe268586d293bebc28c5576956fc7f90e2692aa08fc8ec8cde003fcd52e83") @@ -502,76 +490,95 @@ public open class CfnRepositoryCreationTemplate( Unit = encryptionConfiguration(EncryptionConfigurationProperty(encryptionConfiguration)) /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. + * + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + * will be immutable which will prevent them from being overwritten. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-imagetagmutability) - * @param imageTagMutability The image tag mutability setting for the repository. + * @param imageTagMutability The tag mutability setting for the repository. */ override fun imageTagMutability(imageTagMutability: String) { cdkBuilder.imageTagMutability(imageTagMutability) } /** - * The JSON lifecycle policy text to apply to the repository. - * - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * The lifecycle policy to use for repositories created using the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-lifecyclepolicy) - * @param lifecyclePolicy The JSON lifecycle policy text to apply to the repository. + * @param lifecyclePolicy The lifecycle policy to use for repositories created using the + * template. */ override fun lifecyclePolicy(lifecyclePolicy: String) { cdkBuilder.lifecyclePolicy(lifecyclePolicy) } /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-prefix) - * @param prefix The prefix use to match the repository name and apply the template. + * @param prefix The repository namespace prefix associated with the repository creation + * template. */ override fun prefix(prefix: String) { cdkBuilder.prefix(prefix) } /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. * - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * A repository policy is a permissions policy associated with a repository to control access + * permissions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-repositorypolicy) - * @param repositoryPolicy The JSON repository policy text to apply to the repository. + * @param repositoryPolicy he repository policy to apply to repositories created using the + * template. */ override fun repositoryPolicy(repositoryPolicy: String) { cdkBuilder.repositoryPolicy(repositoryPolicy) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ override fun resourceTags(resourceTags: IResolvable) { cdkBuilder.resourceTags(resourceTags.let(IResolvable.Companion::unwrap)) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ override fun resourceTags(resourceTags: List) { cdkBuilder.resourceTags(resourceTags.map{CdkObjectWrappers.unwrap(it)}) } /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. */ override fun resourceTags(vararg resourceTags: Any): Unit = resourceTags(resourceTags.toList()) @@ -606,7 +613,7 @@ public open class CfnRepositoryCreationTemplate( * * By default, when no encryption configuration is set or the `AES256` encryption type is used, * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your - * data at rest using an AES-256 encryption algorithm. This does not require any action on your part. + * data at rest using an AES256 encryption algorithm. This does not require any action on your part. * * For more control over the encryption of the contents of your repository, you can use * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service ( @@ -637,17 +644,21 @@ public open class CfnRepositoryCreationTemplate( * If you use the `KMS` encryption type, the contents of the repository will be encrypted using * server-side encryption with AWS Key Management Service key stored in AWS KMS . When you use AWS * KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for Amazon ECR, - * or specify your own AWS KMS key, which you already created. For more information, see - * [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key Management - * Service (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default AWS + * managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repositorycreationtemplate-encryptionconfiguration.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration-encryptiontype) */ @@ -674,18 +685,21 @@ public open class CfnRepositoryCreationTemplate( * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . */ public fun encryptionType(encryptionType: String) @@ -710,18 +724,21 @@ public open class CfnRepositoryCreationTemplate( * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . */ override fun encryptionType(encryptionType: String) { cdkBuilder.encryptionType(encryptionType) @@ -745,25 +762,29 @@ public open class CfnRepositoryCreationTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplate.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The encryption type to use. * * If you use the `KMS` encryption type, the contents of the repository will be encrypted * using server-side encryption with AWS Key Management Service key stored in AWS KMS . When you * use AWS KMS to encrypt your data, you can either use the default AWS managed AWS KMS key for - * Amazon ECR, or specify your own AWS KMS key, which you already created. For more information, - * see [Protecting data using server-side encryption with an AWS KMS key stored in AWS Key - * Management Service - * (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the - * *Amazon Simple Storage Service Console Developer Guide* . + * Amazon ECR, or specify your own AWS KMS key, which you already created. + * + * If you use the `KMS_DSSE` encryption type, the contents of the repository will be encrypted + * with two layers of encryption using server-side encryption with the AWS KMS Management Service + * key stored in AWS KMS . Similar to the `KMS` encryption type, you can either use the default + * AWS managed AWS KMS key for Amazon ECR, or specify your own AWS KMS key, which you've already + * created. * * If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon - * S3-managed encryption keys which encrypts the images in the repository using an AES-256 - * encryption algorithm. For more information, see [Protecting data using server-side encryption - * with Amazon S3-managed encryption keys - * (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in - * the *Amazon Simple Storage Service Console Developer Guide* . + * S3-managed encryption keys which encrypts the images in the repository using an AES256 + * encryption algorithm. + * + * For more information, see [Amazon ECR encryption at + * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the + * *Amazon Elastic Container Registry User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repositorycreationtemplate-encryptionconfiguration.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration-encryptiontype) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplateProps.kt index 175098979f..3208875172 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryCreationTemplateProps.kt @@ -26,6 +26,7 @@ import kotlin.jvm.JvmName * .appliedFor(List.of("appliedFor")) * .prefix("prefix") * // the properties below are optional + * .customRoleArn("customRoleArn") * .description("description") * .encryptionConfiguration(EncryptionConfigurationProperty.builder() * .encryptionType("encryptionType") @@ -46,74 +47,80 @@ import kotlin.jvm.JvmName */ public interface CfnRepositoryCreationTemplateProps { /** - * A list of enumerable Strings representing the repository creation scenarios that the template + * A list of enumerable Strings representing the repository creation scenarios that this template * will apply towards. * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) */ public fun appliedFor(): List /** - * The description of the template. + * The ARN of the role to be assumed by Amazon ECR. + * + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field + * isn't specified, Amazon ECR will use the service-linked role for the repository creation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-customrolearn) + */ + public fun customRoleArn(): String? = unwrap(this).getCustomRoleArn() + + /** + * The description associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-description) */ public fun description(): String? = unwrap(this).getDescription() /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your - * data at rest using an AES-256 encryption algorithm. This does not require any action on your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service ( - * AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) */ public fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. + * + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will + * be immutable which will prevent them from being overwritten. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-imagetagmutability) */ public fun imageTagMutability(): String? = unwrap(this).getImageTagMutability() /** - * The JSON lifecycle policy text to apply to the repository. - * - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * The lifecycle policy to use for repositories created using the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-lifecyclepolicy) */ public fun lifecyclePolicy(): String? = unwrap(this).getLifecyclePolicy() /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-prefix) */ public fun prefix(): String /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. * - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * A repository policy is a permissions policy associated with a repository to control access + * permissions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-repositorypolicy) */ public fun repositoryPolicy(): String? = unwrap(this).getRepositoryPolicy() /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have a + * maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) */ @@ -126,67 +133,47 @@ public interface CfnRepositoryCreationTemplateProps { public interface Builder { /** * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION */ public fun appliedFor(appliedFor: List) /** * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION */ public fun appliedFor(vararg appliedFor: String) /** - * @param description The description of the template. + * @param customRoleArn The ARN of the role to be assumed by Amazon ECR. + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this + * field isn't specified, Amazon ECR will use the service-linked role for the repository creation + * template. + */ + public fun customRoleArn(customRoleArn: String) + + /** + * @param description The description associated with the repository creation template. */ public fun description(description: String) /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ public fun encryptionConfiguration(encryptionConfiguration: IResolvable) /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ public fun encryptionConfiguration(encryptionConfiguration: CfnRepositoryCreationTemplate.EncryptionConfigurationProperty) /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cd019c1895592a4d64cf2c324d1c534de99fb7971c879d08793a0cc2a51e8c13") @@ -194,41 +181,57 @@ public interface CfnRepositoryCreationTemplateProps { fun encryptionConfiguration(encryptionConfiguration: CfnRepositoryCreationTemplate.EncryptionConfigurationProperty.Builder.() -> Unit) /** - * @param imageTagMutability The image tag mutability setting for the repository. + * @param imageTagMutability The tag mutability setting for the repository. + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + * will be immutable which will prevent them from being overwritten. */ public fun imageTagMutability(imageTagMutability: String) /** - * @param lifecyclePolicy The JSON lifecycle policy text to apply to the repository. - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * @param lifecyclePolicy The lifecycle policy to use for repositories created using the + * template. */ public fun lifecyclePolicy(lifecyclePolicy: String) /** - * @param prefix The prefix use to match the repository name and apply the template. + * @param prefix The repository namespace prefix associated with the repository creation + * template. */ public fun prefix(prefix: String) /** - * @param repositoryPolicy The JSON repository policy text to apply to the repository. - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * @param repositoryPolicy he repository policy to apply to repositories created using the + * template. + * A repository policy is a permissions policy associated with a repository to control access + * permissions. */ public fun repositoryPolicy(repositoryPolicy: String) /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ public fun resourceTags(resourceTags: IResolvable) /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ public fun resourceTags(resourceTags: List) /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ public fun resourceTags(vararg resourceTags: Any) } @@ -240,7 +243,8 @@ public interface CfnRepositoryCreationTemplateProps { /** * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION */ override fun appliedFor(appliedFor: List) { cdkBuilder.appliedFor(appliedFor) @@ -248,48 +252,39 @@ public interface CfnRepositoryCreationTemplateProps { /** * @param appliedFor A list of enumerable Strings representing the repository creation scenarios - * that the template will apply towards. + * that this template will apply towards. + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION */ override fun appliedFor(vararg appliedFor: String): Unit = appliedFor(appliedFor.toList()) /** - * @param description The description of the template. + * @param customRoleArn The ARN of the role to be assumed by Amazon ECR. + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this + * field isn't specified, Amazon ECR will use the service-linked role for the repository creation + * template. + */ + override fun customRoleArn(customRoleArn: String) { + cdkBuilder.customRoleArn(customRoleArn) + } + + /** + * @param description The description associated with the repository creation template. */ override fun description(description: String) { cdkBuilder.description(description) } /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ override fun encryptionConfiguration(encryptionConfiguration: CfnRepositoryCreationTemplate.EncryptionConfigurationProperty) { @@ -297,18 +292,8 @@ public interface CfnRepositoryCreationTemplateProps { } /** - * @param encryptionConfiguration The encryption configuration for the repository. This - * determines how the contents of your repository are encrypted at rest. - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * @param encryptionConfiguration The encryption configuration associated with the repository + * creation template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cd019c1895592a4d64cf2c324d1c534de99fb7971c879d08793a0cc2a51e8c13") @@ -318,53 +303,69 @@ public interface CfnRepositoryCreationTemplateProps { encryptionConfiguration(CfnRepositoryCreationTemplate.EncryptionConfigurationProperty(encryptionConfiguration)) /** - * @param imageTagMutability The image tag mutability setting for the repository. + * @param imageTagMutability The tag mutability setting for the repository. + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + * will be immutable which will prevent them from being overwritten. */ override fun imageTagMutability(imageTagMutability: String) { cdkBuilder.imageTagMutability(imageTagMutability) } /** - * @param lifecyclePolicy The JSON lifecycle policy text to apply to the repository. - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * @param lifecyclePolicy The lifecycle policy to use for repositories created using the + * template. */ override fun lifecyclePolicy(lifecyclePolicy: String) { cdkBuilder.lifecyclePolicy(lifecyclePolicy) } /** - * @param prefix The prefix use to match the repository name and apply the template. + * @param prefix The repository namespace prefix associated with the repository creation + * template. */ override fun prefix(prefix: String) { cdkBuilder.prefix(prefix) } /** - * @param repositoryPolicy The JSON repository policy text to apply to the repository. - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * @param repositoryPolicy he repository policy to apply to repositories created using the + * template. + * A repository policy is a permissions policy associated with a repository to control access + * permissions. */ override fun repositoryPolicy(repositoryPolicy: String) { cdkBuilder.repositoryPolicy(repositoryPolicy) } /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ override fun resourceTags(resourceTags: IResolvable) { cdkBuilder.resourceTags(resourceTags.let(IResolvable.Companion::unwrap)) } /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ override fun resourceTags(resourceTags: List) { cdkBuilder.resourceTags(resourceTags.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param resourceTags The tags attached to the resource. + * @param resourceTags The metadata to apply to the repository to help you categorize and + * organize. + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. */ override fun resourceTags(vararg resourceTags: Any): Unit = resourceTags(resourceTags.toList()) @@ -374,77 +375,84 @@ public interface CfnRepositoryCreationTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepositoryCreationTemplateProps, - ) : CdkObject(cdkObject), CfnRepositoryCreationTemplateProps { + ) : CdkObject(cdkObject), + CfnRepositoryCreationTemplateProps { /** - * A list of enumerable Strings representing the repository creation scenarios that the template - * will apply towards. + * A list of enumerable Strings representing the repository creation scenarios that this + * template will apply towards. + * + * The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-appliedfor) */ override fun appliedFor(): List = unwrap(this).getAppliedFor() /** - * The description of the template. + * The ARN of the role to be assumed by Amazon ECR. + * + * Amazon ECR will assume your supplied role when the customRoleArn is specified. When this + * field isn't specified, Amazon ECR will use the service-linked role for the repository creation + * template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-customrolearn) + */ + override fun customRoleArn(): String? = unwrap(this).getCustomRoleArn() + + /** + * The description associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-description) */ override fun description(): String? = unwrap(this).getDescription() /** - * The encryption configuration for the repository. This determines how the contents of your - * repository are encrypted at rest. - * - * By default, when no encryption configuration is set or the `AES256` encryption type is used, - * Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts - * your data at rest using an AES-256 encryption algorithm. This does not require any action on - * your part. - * - * For more control over the encryption of the contents of your repository, you can use - * server-side encryption with AWS Key Management Service key stored in AWS Key Management Service - * ( AWS KMS ) to encrypt your images. For more information, see [Amazon ECR encryption at - * rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the - * *Amazon Elastic Container Registry User Guide* . + * The encryption configuration associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-encryptionconfiguration) */ override fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() /** - * The image tag mutability setting for the repository. + * The tag mutability setting for the repository. + * + * If this parameter is omitted, the default setting of MUTABLE will be used which will allow + * image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository + * will be immutable which will prevent them from being overwritten. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-imagetagmutability) */ override fun imageTagMutability(): String? = unwrap(this).getImageTagMutability() /** - * The JSON lifecycle policy text to apply to the repository. - * - * For information about lifecycle policy syntax, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html + * The lifecycle policy to use for repositories created using the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-lifecyclepolicy) */ override fun lifecyclePolicy(): String? = unwrap(this).getLifecyclePolicy() /** - * The prefix use to match the repository name and apply the template. + * The repository namespace prefix associated with the repository creation template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-prefix) */ override fun prefix(): String = unwrap(this).getPrefix() /** - * The JSON repository policy text to apply to the repository. + * he repository policy to apply to repositories created using the template. * - * For more information, see - * https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html + * A repository policy is a permissions policy associated with a repository to control access + * permissions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-repositorypolicy) */ override fun repositoryPolicy(): String? = unwrap(this).getRepositoryPolicy() /** - * The tags attached to the resource. + * The metadata to apply to the repository to help you categorize and organize. + * + * Each tag consists of a key and an optional value, both of which you define. Tag keys can have + * a maximum character length of 128 characters, and tag values can have a maximum length of 256 + * characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-resourcetags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryProps.kt index 6acd3b7072..bb0313bce5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/CfnRepositoryProps.kt @@ -442,7 +442,8 @@ public interface CfnRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.CfnRepositoryProps, - ) : CdkObject(cdkObject), CfnRepositoryProps { + ) : CdkObject(cdkObject), + CfnRepositoryProps { /** * If true, deleting the repository force deletes the contents of the repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/IRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/IRepository.kt index 5edb676f9e..00923bc876 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/IRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/IRepository.kt @@ -300,7 +300,8 @@ public interface IRepository : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.IRepository, - ) : CdkObject(cdkObject), IRepository { + ) : CdkObject(cdkObject), + IRepository { /** * Add a policy statement to the repository's resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/LifecycleRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/LifecycleRule.kt index c0bc7b497d..e067f1114b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/LifecycleRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/LifecycleRule.kt @@ -290,7 +290,8 @@ public interface LifecycleRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.LifecycleRule, - ) : CdkObject(cdkObject), LifecycleRule { + ) : CdkObject(cdkObject), + LifecycleRule { /** * Describes the purpose of the rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnCloudTrailImagePushedOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnCloudTrailImagePushedOptions.kt index 45156666c1..276390ebe6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnCloudTrailImagePushedOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnCloudTrailImagePushedOptions.kt @@ -177,7 +177,8 @@ public interface OnCloudTrailImagePushedOptions : OnEventOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.OnCloudTrailImagePushedOptions, - ) : CdkObject(cdkObject), OnCloudTrailImagePushedOptions { + ) : CdkObject(cdkObject), + OnCloudTrailImagePushedOptions { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnImageScanCompletedOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnImageScanCompletedOptions.kt index d8ef3458ca..b156cd4e1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnImageScanCompletedOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/OnImageScanCompletedOptions.kt @@ -192,7 +192,8 @@ public interface OnImageScanCompletedOptions : OnEventOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.OnImageScanCompletedOptions, - ) : CdkObject(cdkObject), OnImageScanCompletedOptions { + ) : CdkObject(cdkObject), + OnImageScanCompletedOptions { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryAttributes.kt index 736f3969a4..2bfa421157 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryAttributes.kt @@ -72,7 +72,8 @@ public interface RepositoryAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.RepositoryAttributes, - ) : CdkObject(cdkObject), RepositoryAttributes { + ) : CdkObject(cdkObject), + RepositoryAttributes { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryBase.kt index 5365206878..85b0eac55d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryBase.kt @@ -22,7 +22,8 @@ import kotlin.jvm.JvmName */ public abstract class RepositoryBase( cdkObject: software.amazon.awscdk.services.ecr.RepositoryBase, -) : Resource(cdkObject), IRepository { +) : Resource(cdkObject), + IRepository { /** * Add a policy statement to the repository's resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryProps.kt index f6a22ab663..1f87c41029 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/RepositoryProps.kt @@ -312,7 +312,8 @@ public interface RepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.RepositoryProps, - ) : CdkObject(cdkObject), RepositoryProps { + ) : CdkObject(cdkObject), + RepositoryProps { /** * (deprecated) Whether all images should be automatically deleted when the repository is * removed from the stack or when the stack is deleted. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerCacheOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerCacheOption.kt index 193b07cf35..1e69bc134f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerCacheOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerCacheOption.kt @@ -104,7 +104,8 @@ public interface DockerCacheOption { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.assets.DockerCacheOption, - ) : CdkObject(cdkObject), DockerCacheOption { + ) : CdkObject(cdkObject), + DockerCacheOption { /** * Any parameters to pass into the docker cache backend configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetInvalidationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetInvalidationOptions.kt index 74213de349..0c3d08958a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetInvalidationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetInvalidationOptions.kt @@ -234,7 +234,8 @@ public interface DockerImageAssetInvalidationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.assets.DockerImageAssetInvalidationOptions, - ) : CdkObject(cdkObject), DockerImageAssetInvalidationOptions { + ) : CdkObject(cdkObject), + DockerImageAssetInvalidationOptions { /** * Use `buildArgs` while calculating the asset hash. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetOptions.kt index 1c65649b55..31bd15465e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetOptions.kt @@ -510,7 +510,8 @@ public interface DockerImageAssetOptions : FileFingerprintOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.assets.DockerImageAssetOptions, - ) : CdkObject(cdkObject), DockerImageAssetOptions { + ) : CdkObject(cdkObject), + DockerImageAssetOptions { /** * Unique identifier of the docker image asset and its potential revisions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetProps.kt index ba479607a0..0e47422a91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/DockerImageAssetProps.kt @@ -367,7 +367,8 @@ public interface DockerImageAssetProps : DockerImageAssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.assets.DockerImageAssetProps, - ) : CdkObject(cdkObject), DockerImageAssetProps { + ) : CdkObject(cdkObject), + DockerImageAssetProps { /** * Unique identifier of the docker image asset and its potential revisions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/TarballImageAssetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/TarballImageAssetProps.kt index 6de4cdce9a..7665e7796c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/TarballImageAssetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/assets/TarballImageAssetProps.kt @@ -65,7 +65,8 @@ public interface TarballImageAssetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecr.assets.TarballImageAssetProps, - ) : CdkObject(cdkObject), TarballImageAssetProps { + ) : CdkObject(cdkObject), + TarballImageAssetProps { /** * Absolute path to the tarball. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddAutoScalingGroupCapacityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddAutoScalingGroupCapacityOptions.kt index be70a3560c..ef5c757d21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddAutoScalingGroupCapacityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddAutoScalingGroupCapacityOptions.kt @@ -174,7 +174,8 @@ public interface AddAutoScalingGroupCapacityOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AddAutoScalingGroupCapacityOptions, - ) : CdkObject(cdkObject), AddAutoScalingGroupCapacityOptions { + ) : CdkObject(cdkObject), + AddAutoScalingGroupCapacityOptions { /** * Specifies whether the containers can access the container instance role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddCapacityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddCapacityOptions.kt index 843c4ebe3f..05a723ec88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddCapacityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AddCapacityOptions.kt @@ -882,7 +882,8 @@ public interface AddCapacityOptions : AddAutoScalingGroupCapacityOptions, private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AddCapacityOptions, - ) : CdkObject(cdkObject), AddCapacityOptions { + ) : CdkObject(cdkObject), + AddCapacityOptions { /** * Whether the instances can initiate connections to anywhere by default. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationConfigProps.kt index 1d5b64f553..6583858b81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationConfigProps.kt @@ -106,7 +106,8 @@ public interface AppMeshProxyConfigurationConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AppMeshProxyConfigurationConfigProps, - ) : CdkObject(cdkObject), AppMeshProxyConfigurationConfigProps { + ) : CdkObject(cdkObject), + AppMeshProxyConfigurationConfigProps { /** * The name of the container that will serve as the App Mesh proxy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationProps.kt index fcd269afc8..5bcb481553 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AppMeshProxyConfigurationProps.kt @@ -254,7 +254,8 @@ public interface AppMeshProxyConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AppMeshProxyConfigurationProps, - ) : CdkObject(cdkObject), AppMeshProxyConfigurationProps { + ) : CdkObject(cdkObject), + AppMeshProxyConfigurationProps { /** * The list of ports that the application uses. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProvider.kt index cf217e0b30..60baa8d19e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProvider.kt @@ -115,6 +115,12 @@ public open class AsgCapacityProvider( /** * The autoscaling group to add as a Capacity Provider. * + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. + * * @param autoScalingGroup The autoscaling group to add as a Capacity Provider. */ public fun autoScalingGroup(autoScalingGroup: IAutoScalingGroup) @@ -305,6 +311,12 @@ public open class AsgCapacityProvider( /** * The autoscaling group to add as a Capacity Provider. * + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. + * * @param autoScalingGroup The autoscaling group to add as a Capacity Provider. */ override fun autoScalingGroup(autoScalingGroup: IAutoScalingGroup) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProviderProps.kt index 6fedc0fe29..c7138e2f41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AsgCapacityProviderProps.kt @@ -45,6 +45,12 @@ import kotlin.Unit public interface AsgCapacityProviderProps : AddAutoScalingGroupCapacityOptions { /** * The autoscaling group to add as a Capacity Provider. + * + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. */ public fun autoScalingGroup(): IAutoScalingGroup @@ -151,6 +157,11 @@ public interface AsgCapacityProviderProps : AddAutoScalingGroupCapacityOptions { public interface Builder { /** * @param autoScalingGroup The autoscaling group to add as a Capacity Provider. + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. */ public fun autoScalingGroup(autoScalingGroup: IAutoScalingGroup) @@ -269,6 +280,11 @@ public interface AsgCapacityProviderProps : AddAutoScalingGroupCapacityOptions { /** * @param autoScalingGroup The autoscaling group to add as a Capacity Provider. + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. */ override fun autoScalingGroup(autoScalingGroup: IAutoScalingGroup) { cdkBuilder.autoScalingGroup(autoScalingGroup.let(IAutoScalingGroup.Companion::unwrap)) @@ -412,9 +428,16 @@ public interface AsgCapacityProviderProps : AddAutoScalingGroupCapacityOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AsgCapacityProviderProps, - ) : CdkObject(cdkObject), AsgCapacityProviderProps { + ) : CdkObject(cdkObject), + AsgCapacityProviderProps { /** * The autoscaling group to add as a Capacity Provider. + * + * Warning: When passing an imported resource using `AutoScalingGroup.fromAutoScalingGroupName` + * along with `enableManagedTerminationProtection: true`, + * the `AsgCapacityProvider` construct will not be able to enforce the option + * `newInstancesProtectedFromScaleIn` of the `AutoScalingGroup`. + * In this case the constructor of `AsgCapacityProvider` will throw an exception. */ override fun autoScalingGroup(): IAutoScalingGroup = unwrap(this).getAutoScalingGroup().let(IAutoScalingGroup::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssetImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssetImageProps.kt index 3eb1728a5e..ba7dcbfd83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssetImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssetImageProps.kt @@ -387,7 +387,8 @@ public interface AssetImageProps : DockerImageAssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AssetImageProps, - ) : CdkObject(cdkObject), AssetImageProps { + ) : CdkObject(cdkObject), + AssetImageProps { /** * Unique identifier of the docker image asset and its potential revisions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssociateCloudMapServiceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssociateCloudMapServiceOptions.kt index 31291e5bc3..65733e88bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssociateCloudMapServiceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AssociateCloudMapServiceOptions.kt @@ -96,7 +96,8 @@ public interface AssociateCloudMapServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AssociateCloudMapServiceOptions, - ) : CdkObject(cdkObject), AssociateCloudMapServiceOptions { + ) : CdkObject(cdkObject), + AssociateCloudMapServiceOptions { /** * The container to point to for a SRV record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AuthorizationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AuthorizationConfig.kt index e571582119..91c1690d4c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AuthorizationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AuthorizationConfig.kt @@ -100,7 +100,8 @@ public interface AuthorizationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AuthorizationConfig, - ) : CdkObject(cdkObject), AuthorizationConfig { + ) : CdkObject(cdkObject), + AuthorizationConfig { /** * The access point ID to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AwsLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AwsLogDriverProps.kt index f9162eed71..d4173e2cba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AwsLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/AwsLogDriverProps.kt @@ -245,7 +245,8 @@ public interface AwsLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.AwsLogDriverProps, - ) : CdkObject(cdkObject), AwsLogDriverProps { + ) : CdkObject(cdkObject), + AwsLogDriverProps { /** * This option defines a multiline start pattern in Python strftime format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseLogDriverProps.kt index a0104ad4b9..7723fde38e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseLogDriverProps.kt @@ -187,7 +187,8 @@ public interface BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.BaseLogDriverProps, - ) : CdkObject(cdkObject), BaseLogDriverProps { + ) : CdkObject(cdkObject), + BaseLogDriverProps { /** * The env option takes an array of keys. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseMountPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseMountPoint.kt index 4e8001ec5a..faa1a695af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseMountPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseMountPoint.kt @@ -81,7 +81,8 @@ public interface BaseMountPoint { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.BaseMountPoint, - ) : CdkObject(cdkObject), BaseMountPoint { + ) : CdkObject(cdkObject), + BaseMountPoint { /** * The path on the container to mount the host volume at. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseService.kt index a567fc3661..98d4a5f04e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseService.kt @@ -49,7 +49,10 @@ import kotlin.jvm.JvmName */ public abstract class BaseService( cdkObject: software.amazon.awscdk.services.ecs.BaseService, -) : Resource(cdkObject), IBaseService, IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget, +) : Resource(cdkObject), + IBaseService, + IApplicationLoadBalancerTarget, + INetworkLoadBalancerTarget, ILoadBalancerTarget { /** * Adds a volume to the Service. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceOptions.kt index 6316e7b837..caddbcc595 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceOptions.kt @@ -632,7 +632,8 @@ public interface BaseServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.BaseServiceOptions, - ) : CdkObject(cdkObject), BaseServiceOptions { + ) : CdkObject(cdkObject), + BaseServiceOptions { /** * A list of Capacity Provider strategies used to place a service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceProps.kt index 0179c7c795..373a28f0d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BaseServiceProps.kt @@ -95,10 +95,10 @@ public interface BaseServiceProps : BaseServiceOptions { * * LaunchType will be omitted if capacity provider strategies are specified on the service. * - * @see - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-capacityproviderstrategy + * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-capacityproviderstrategy * Valid values are: LaunchType.ECS or LaunchType.FARGATE or LaunchType.EXTERNAL */ public fun launchType(): LaunchType @@ -508,7 +508,8 @@ public interface BaseServiceProps : BaseServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.BaseServiceProps, - ) : CdkObject(cdkObject), BaseServiceProps { + ) : CdkObject(cdkObject), + BaseServiceProps { /** * A list of Capacity Provider strategies used to place a service. * @@ -604,10 +605,10 @@ public interface BaseServiceProps : BaseServiceOptions { * * LaunchType will be omitted if capacity provider strategies are specified on the service. * - * @see - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-capacityproviderstrategy + * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-capacityproviderstrategy * Valid values are: LaunchType.ECS or LaunchType.FARGATE or LaunchType.EXTERNAL */ override fun launchType(): LaunchType = unwrap(this).getLaunchType().let(LaunchType::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImage.kt index 1eb83fcb91..7b582a0ac4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImage.kt @@ -28,7 +28,8 @@ import kotlin.Unit */ public open class BottleRocketImage( cdkObject: software.amazon.awscdk.services.ecs.BottleRocketImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor() : this(software.amazon.awscdk.services.ecs.BottleRocketImage() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImageProps.kt index 1742c7ece2..607db9f2e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/BottleRocketImageProps.kt @@ -140,7 +140,8 @@ public interface BottleRocketImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.BottleRocketImageProps, - ) : CdkObject(cdkObject), BottleRocketImageProps { + ) : CdkObject(cdkObject), + BottleRocketImageProps { /** * The CPU architecture. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CapacityProviderStrategy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CapacityProviderStrategy.kt index be4de6c539..271749c4eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CapacityProviderStrategy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CapacityProviderStrategy.kt @@ -121,7 +121,8 @@ public interface CapacityProviderStrategy { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CapacityProviderStrategy, - ) : CdkObject(cdkObject), CapacityProviderStrategy { + ) : CdkObject(cdkObject), + CapacityProviderStrategy { /** * The base value designates how many tasks, at a minimum, to run on the specified capacity * provider. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProvider.kt index 36abf551ec..52d628ea7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProvider.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCapacityProvider( cdkObject: software.amazon.awscdk.services.ecs.CfnCapacityProvider, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -585,7 +587,8 @@ public open class CfnCapacityProvider( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty, - ) : CdkObject(cdkObject), AutoScalingGroupProviderProperty { + ) : CdkObject(cdkObject), + AutoScalingGroupProviderProperty { /** * The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling * group name. @@ -691,8 +694,7 @@ public open class CfnCapacityProvider( /** * The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. * - * The scale in process is not affected by this parameter. If this parameter is omitted, the - * default value of `10000` is used. + * If this parameter is omitted, the default value of `10000` is used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-managedscaling.html#cfn-ecs-capacityprovider-managedscaling-maximumscalingstepsize) */ @@ -750,8 +752,7 @@ public open class CfnCapacityProvider( /** * @param maximumScalingStepSize The maximum number of Amazon EC2 instances that Amazon ECS * will scale out at one time. - * The scale in process is not affected by this parameter. If this parameter is omitted, the - * default value of `10000` is used. + * If this parameter is omitted, the default value of `10000` is used. */ public fun maximumScalingStepSize(maximumScalingStepSize: Number) @@ -804,8 +805,7 @@ public open class CfnCapacityProvider( /** * @param maximumScalingStepSize The maximum number of Amazon EC2 instances that Amazon ECS * will scale out at one time. - * The scale in process is not affected by this parameter. If this parameter is omitted, the - * default value of `10000` is used. + * If this parameter is omitted, the default value of `10000` is used. */ override fun maximumScalingStepSize(maximumScalingStepSize: Number) { cdkBuilder.maximumScalingStepSize(maximumScalingStepSize) @@ -855,7 +855,8 @@ public open class CfnCapacityProvider( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCapacityProvider.ManagedScalingProperty, - ) : CdkObject(cdkObject), ManagedScalingProperty { + ) : CdkObject(cdkObject), + ManagedScalingProperty { /** * The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute * to CloudWatch metrics for Auto Scaling group. @@ -869,8 +870,7 @@ public open class CfnCapacityProvider( /** * The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. * - * The scale in process is not affected by this parameter. If this parameter is omitted, the - * default value of `10000` is used. + * If this parameter is omitted, the default value of `10000` is used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-capacityprovider-managedscaling.html#cfn-ecs-capacityprovider-managedscaling-maximumscalingstepsize) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProviderProps.kt index 9c7efb4927..00a5862ad3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCapacityProviderProps.kt @@ -230,7 +230,8 @@ public interface CfnCapacityProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCapacityProviderProps, - ) : CdkObject(cdkObject), CfnCapacityProviderProps { + ) : CdkObject(cdkObject), + CfnCapacityProviderProps { /** * The Auto Scaling group settings for the capacity provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCluster.kt index ba47ad710c..183439be91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnCluster.kt @@ -51,6 +51,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .logging("logging") * .build()) + * .managedStorageConfiguration(ManagedStorageConfigurationProperty.builder() + * .fargateEphemeralStorageKmsKeyId("fargateEphemeralStorageKmsKeyId") + * .kmsKeyId("kmsKeyId") + * .build()) * .build()) * .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder() * .base(123) @@ -71,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.CfnCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -155,26 +161,26 @@ public open class CfnCluster( public open fun clusterSettings(vararg `value`: Any): Unit = clusterSettings(`value`.toList()) /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. */ public open fun configuration(): Any? = unwrap(this).getConfiguration() /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. */ public open fun configuration(`value`: IResolvable) { unwrap(this).setConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. */ public open fun configuration(`value`: ClusterConfigurationProperty) { unwrap(this).setConfiguration(`value`.let(ClusterConfigurationProperty.Companion::unwrap)) } /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1e266837809905aa2bb30e14c304754921c7d70fc5aa7a9315dbba12185f3738") @@ -375,26 +381,26 @@ public open class CfnCluster( public fun clusterSettings(vararg clusterSettings: Any) /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ public fun configuration(configuration: IResolvable) /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ public fun configuration(configuration: ClusterConfigurationProperty) /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ecbb13bf8972c170b1b30b1e3eebd7a17f7ed6b44e3908d3af4d9a7b84873c18") @@ -668,30 +674,30 @@ public open class CfnCluster( clusterSettings(clusterSettings.toList()) /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ override fun configuration(configuration: IResolvable) { cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) } /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ override fun configuration(configuration: ClusterConfigurationProperty) { cdkBuilder.configuration(configuration.let(ClusterConfigurationProperty.Companion::unwrap)) } /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ecbb13bf8972c170b1b30b1e3eebd7a17f7ed6b44e3908d3af4d9a7b84873c18") @@ -1039,7 +1045,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.CapacityProviderStrategyItemProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyItemProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyItemProperty { /** * The *base* value designates how many tasks, at a minimum, to run on the specified capacity * provider. @@ -1103,7 +1110,7 @@ public open class CfnCluster( } /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * Example: * @@ -1124,6 +1131,10 @@ public open class CfnCluster( * .build()) * .logging("logging") * .build()) + * .managedStorageConfiguration(ManagedStorageConfigurationProperty.builder() + * .fargateEphemeralStorageKmsKeyId("fargateEphemeralStorageKmsKeyId") + * .kmsKeyId("kmsKeyId") + * .build()) * .build(); * ``` * @@ -1137,6 +1148,13 @@ public open class CfnCluster( */ public fun executeCommandConfiguration(): Any? = unwrap(this).getExecuteCommandConfiguration() + /** + * The details of the managed storage configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clusterconfiguration.html#cfn-ecs-cluster-clusterconfiguration-managedstorageconfiguration) + */ + public fun managedStorageConfiguration(): Any? = unwrap(this).getManagedStorageConfiguration() + /** * A builder for [ClusterConfigurationProperty] */ @@ -1160,6 +1178,25 @@ public open class CfnCluster( @JvmName("e2c142dbeb86944d2f38ed48264d7c5a153056a38a629e653a939c6de008408f") public fun executeCommandConfiguration(executeCommandConfiguration: ExecuteCommandConfigurationProperty.Builder.() -> Unit) + + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + public fun managedStorageConfiguration(managedStorageConfiguration: IResolvable) + + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + public + fun managedStorageConfiguration(managedStorageConfiguration: ManagedStorageConfigurationProperty) + + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1bbc874e7f6c60d3c5b5b98c1a6bf2524c3775852b3fa348bf185e307b58ddc1") + public + fun managedStorageConfiguration(managedStorageConfiguration: ManagedStorageConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -1192,6 +1229,31 @@ public open class CfnCluster( Unit = executeCommandConfiguration(ExecuteCommandConfigurationProperty(executeCommandConfiguration)) + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + override fun managedStorageConfiguration(managedStorageConfiguration: IResolvable) { + cdkBuilder.managedStorageConfiguration(managedStorageConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + override + fun managedStorageConfiguration(managedStorageConfiguration: ManagedStorageConfigurationProperty) { + cdkBuilder.managedStorageConfiguration(managedStorageConfiguration.let(ManagedStorageConfigurationProperty.Companion::unwrap)) + } + + /** + * @param managedStorageConfiguration The details of the managed storage configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1bbc874e7f6c60d3c5b5b98c1a6bf2524c3775852b3fa348bf185e307b58ddc1") + override + fun managedStorageConfiguration(managedStorageConfiguration: ManagedStorageConfigurationProperty.Builder.() -> Unit): + Unit = + managedStorageConfiguration(ManagedStorageConfigurationProperty(managedStorageConfiguration)) + public fun build(): software.amazon.awscdk.services.ecs.CfnCluster.ClusterConfigurationProperty = cdkBuilder.build() @@ -1199,7 +1261,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ClusterConfigurationProperty, - ) : CdkObject(cdkObject), ClusterConfigurationProperty { + ) : CdkObject(cdkObject), + ClusterConfigurationProperty { /** * The details of the execute command configuration. * @@ -1207,6 +1270,14 @@ public open class CfnCluster( */ override fun executeCommandConfiguration(): Any? = unwrap(this).getExecuteCommandConfiguration() + + /** + * The details of the managed storage configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clusterconfiguration.html#cfn-ecs-cluster-clusterconfiguration-managedstorageconfiguration) + */ + override fun managedStorageConfiguration(): Any? = + unwrap(this).getManagedStorageConfiguration() } public companion object { @@ -1333,7 +1404,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ClusterSettingsProperty, - ) : CdkObject(cdkObject), ClusterSettingsProperty { + ) : CdkObject(cdkObject), + ClusterSettingsProperty { /** * The name of the cluster setting. * @@ -1556,7 +1628,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandConfigurationProperty, - ) : CdkObject(cdkObject), ExecuteCommandConfigurationProperty { + ) : CdkObject(cdkObject), + ExecuteCommandConfigurationProperty { /** * Specify an AWS Key Management Service key ID to encrypt the data between the local client * and the container. @@ -1804,7 +1877,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ExecuteCommandLogConfigurationProperty, - ) : CdkObject(cdkObject), ExecuteCommandLogConfigurationProperty { + ) : CdkObject(cdkObject), + ExecuteCommandLogConfigurationProperty { /** * Determines whether to use encryption on the CloudWatch logs. * @@ -1873,6 +1947,122 @@ public open class CfnCluster( } } + /** + * The managed storage configuration for the cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ecs.*; + * ManagedStorageConfigurationProperty managedStorageConfigurationProperty = + * ManagedStorageConfigurationProperty.builder() + * .fargateEphemeralStorageKmsKeyId("fargateEphemeralStorageKmsKeyId") + * .kmsKeyId("kmsKeyId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html) + */ + public interface ManagedStorageConfigurationProperty { + /** + * Specify the AWS Key Management Service key ID for the Fargate ephemeral storage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html#cfn-ecs-cluster-managedstorageconfiguration-fargateephemeralstoragekmskeyid) + */ + public fun fargateEphemeralStorageKmsKeyId(): String? = + unwrap(this).getFargateEphemeralStorageKmsKeyId() + + /** + * Specify a AWS Key Management Service key ID to encrypt the managed storage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html#cfn-ecs-cluster-managedstorageconfiguration-kmskeyid) + */ + public fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + + /** + * A builder for [ManagedStorageConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param fargateEphemeralStorageKmsKeyId Specify the AWS Key Management Service key ID for + * the Fargate ephemeral storage. + */ + public fun fargateEphemeralStorageKmsKeyId(fargateEphemeralStorageKmsKeyId: String) + + /** + * @param kmsKeyId Specify a AWS Key Management Service key ID to encrypt the managed storage. + */ + public fun kmsKeyId(kmsKeyId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty.Builder + = + software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty.builder() + + /** + * @param fargateEphemeralStorageKmsKeyId Specify the AWS Key Management Service key ID for + * the Fargate ephemeral storage. + */ + override fun fargateEphemeralStorageKmsKeyId(fargateEphemeralStorageKmsKeyId: String) { + cdkBuilder.fargateEphemeralStorageKmsKeyId(fargateEphemeralStorageKmsKeyId) + } + + /** + * @param kmsKeyId Specify a AWS Key Management Service key ID to encrypt the managed storage. + */ + override fun kmsKeyId(kmsKeyId: String) { + cdkBuilder.kmsKeyId(kmsKeyId) + } + + public fun build(): + software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty, + ) : CdkObject(cdkObject), + ManagedStorageConfigurationProperty { + /** + * Specify the AWS Key Management Service key ID for the Fargate ephemeral storage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html#cfn-ecs-cluster-managedstorageconfiguration-fargateephemeralstoragekmskeyid) + */ + override fun fargateEphemeralStorageKmsKeyId(): String? = + unwrap(this).getFargateEphemeralStorageKmsKeyId() + + /** + * Specify a AWS Key Management Service key ID to encrypt the managed storage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-managedstorageconfiguration.html#cfn-ecs-cluster-managedstorageconfiguration-kmskeyid) + */ + override fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ManagedStorageConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty): + ManagedStorageConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ManagedStorageConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ManagedStorageConfigurationProperty): + software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ecs.CfnCluster.ManagedStorageConfigurationProperty + } + } + /** * Use this parameter to set a default Service Connect namespace. * @@ -2002,7 +2192,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnCluster.ServiceConnectDefaultsProperty, - ) : CdkObject(cdkObject), ServiceConnectDefaultsProperty { + ) : CdkObject(cdkObject), + ServiceConnectDefaultsProperty { /** * The namespace name or full Amazon Resource Name (ARN) of the AWS Cloud Map namespace that's * used when you create a service and don't specify a Service Connect configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociations.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociations.kt index ee985025ea..6d4cacba73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociations.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociations.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterCapacityProviderAssociations( cdkObject: software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociations, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -442,7 +443,8 @@ public open class CfnClusterCapacityProviderAssociations( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyProperty { /** * The *base* value designates how many tasks, at a minimum, to run on the specified capacity * provider. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociationsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociationsProps.kt index 20134375ba..abe5e08054 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociationsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterCapacityProviderAssociationsProps.kt @@ -151,7 +151,8 @@ public interface CfnClusterCapacityProviderAssociationsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociationsProps, - ) : CdkObject(cdkObject), CfnClusterCapacityProviderAssociationsProps { + ) : CdkObject(cdkObject), + CfnClusterCapacityProviderAssociationsProps { /** * The capacity providers to associate with the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterProps.kt index 4e6baf8bf3..c3498b2a26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnClusterProps.kt @@ -41,6 +41,10 @@ import kotlin.jvm.JvmName * .build()) * .logging("logging") * .build()) + * .managedStorageConfiguration(ManagedStorageConfigurationProperty.builder() + * .fargateEphemeralStorageKmsKeyId("fargateEphemeralStorageKmsKeyId") + * .kmsKeyId("kmsKeyId") + * .build()) * .build()) * .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder() * .base(123) @@ -107,7 +111,7 @@ public interface CfnClusterProps { public fun clusterSettings(): Any? = unwrap(this).getClusterSettings() /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) */ @@ -248,17 +252,17 @@ public interface CfnClusterProps { public fun clusterSettings(vararg clusterSettings: Any) /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ public fun configuration(configuration: IResolvable) /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ public fun configuration(configuration: CfnCluster.ClusterConfigurationProperty) /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7e6e99b1e2f459f41708260072121e7085e08fc6e0db3469037f419267c72f8c") @@ -475,21 +479,21 @@ public interface CfnClusterProps { clusterSettings(clusterSettings.toList()) /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ override fun configuration(configuration: IResolvable) { cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) } /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ override fun configuration(configuration: CfnCluster.ClusterConfigurationProperty) { cdkBuilder.configuration(configuration.let(CfnCluster.ClusterConfigurationProperty.Companion::unwrap)) } /** - * @param configuration The execute command configuration for the cluster. + * @param configuration The execute command and managed storage configuration for the cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7e6e99b1e2f459f41708260072121e7085e08fc6e0db3469037f419267c72f8c") @@ -631,7 +635,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * The short name of one or more capacity providers to associate with the cluster. * @@ -681,7 +686,7 @@ public interface CfnClusterProps { override fun clusterSettings(): Any? = unwrap(this).getClusterSettings() /** - * The execute command configuration for the cluster. + * The execute command and managed storage configuration for the cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSet.kt index 89099d3935..31c0187268 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSet.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrimaryTaskSet( cdkObject: software.amazon.awscdk.services.ecs.CfnPrimaryTaskSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSetProps.kt index 60421b1d31..562a671d48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnPrimaryTaskSetProps.kt @@ -108,7 +108,8 @@ public interface CfnPrimaryTaskSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnPrimaryTaskSetProps, - ) : CdkObject(cdkObject), CfnPrimaryTaskSetProps { + ) : CdkObject(cdkObject), + CfnPrimaryTaskSetProps { /** * The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that * the task set exists in. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnService.kt index f027196933..ae5af88056 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnService.kt @@ -29,13 +29,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * * The stack update fails if you change any properties that require replacement and at least one - * Amazon ECS Service Connect `ServiceConnectService` is configured. This is because AWS CloudFormation - * creates the replacement service first, but each `ServiceConnectService` must have a name that is - * unique in the namespace. > Starting April 15, 2023, AWS ; will not onboard new customers to - * Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options - * that offer better price and performance. After April 15, 2023, new customers will not be able to - * launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS , or Amazon EC2 . - * However, customers who have used Amazon EI at least once during the past 30-day period are + * Amazon ECS Service Connect `ServiceConnectConfiguration` property the is configured. This is because + * AWS CloudFormation creates the replacement service first, but each `ServiceConnectService` must have + * a name that is unique in the namespace. > Starting April 15, 2023, AWS ; will not onboard new + * customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads + * to options that offer better price and performance. After April 15, 2023, new customers will not be + * able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS , or Amazon EC2 + * . However, customers who have used Amazon EI at least once during the past 30-day period are * considered current customers and will be able to continue using the service. * * @@ -181,7 +181,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnService( cdkObject: software.amazon.awscdk.services.ecs.CfnService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.CfnService(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -2233,7 +2235,8 @@ public open class CfnService( /** * An object representing the networking details for a task or service. * - * For example `awsvpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}` + * For example `awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}` + * . * * Example: * @@ -2264,7 +2267,7 @@ public open class CfnService( * The IDs of the security groups associated with the task or service. * * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2277,7 +2280,7 @@ public open class CfnService( /** * The IDs of the subnets associated with the task or service. * - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2302,7 +2305,7 @@ public open class CfnService( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2312,7 +2315,7 @@ public open class CfnService( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2321,7 +2324,7 @@ public open class CfnService( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2330,7 +2333,7 @@ public open class CfnService( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2355,7 +2358,7 @@ public open class CfnService( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2367,7 +2370,7 @@ public open class CfnService( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2377,7 +2380,7 @@ public open class CfnService( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2388,7 +2391,7 @@ public open class CfnService( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2401,7 +2404,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.AwsVpcConfigurationProperty, - ) : CdkObject(cdkObject), AwsVpcConfigurationProperty { + ) : CdkObject(cdkObject), + AwsVpcConfigurationProperty { /** * Whether the task's elastic network interface receives a public IP address. * @@ -2415,7 +2419,7 @@ public open class CfnService( * The IDs of the security groups associated with the task or service. * * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -2428,7 +2432,7 @@ public open class CfnService( /** * The IDs of the subnets associated with the task or service. * - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -2627,7 +2631,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.CapacityProviderStrategyItemProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyItemProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyItemProperty { /** * The *base* value designates how many tasks, at a minimum, to run on the specified capacity * provider. @@ -2855,7 +2860,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.DeploymentAlarmsProperty, - ) : CdkObject(cdkObject), DeploymentAlarmsProperty { + ) : CdkObject(cdkObject), + DeploymentAlarmsProperty { /** * One or more CloudWatch alarm names. * @@ -3033,7 +3039,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.DeploymentCircuitBreakerProperty, - ) : CdkObject(cdkObject), DeploymentCircuitBreakerProperty { + ) : CdkObject(cdkObject), + DeploymentCircuitBreakerProperty { /** * Determines whether to use the deployment circuit breaker logic for the service. * @@ -3135,12 +3142,20 @@ public open class CfnService( * older tasks (provided that the cluster resources required to do this are available). The default * `maximumPercent` value for a service using the `REPLICA` service scheduler is 200%. * - * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types - * and tasks that use the EC2 launch type, the *maximum percent* value is set to the default value - * and is used to define the upper limit on the number of the tasks in the service that remain in - * the `RUNNING` state while the container instances are in the `DRAINING` state. If the tasks in - * the service use the Fargate launch type, the maximum percent value is not used, although it is - * returned when describing your service. + * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types, + * and tasks in the service use the EC2 launch type, the *maximum percent* value is set to the + * default value. The *maximum percent* value is used to define the upper limit on the number of + * the tasks in the service that remain in the `RUNNING` state while the container instances are in + * the `DRAINING` state. + * + * + * You can't specify a custom `maximumPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * + * If the tasks in the service use the Fargate launch type, the maximum percent value is not + * used, although it is returned when describing your service. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-maximumpercent) */ @@ -3189,11 +3204,19 @@ public open class CfnService( * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types * and is running tasks that use the EC2 launch type, the *minimum healthy percent* value is set to - * the default value and is used to define the lower limit on the number of the tasks in the - * service that remain in the `RUNNING` state while the container instances are in the `DRAINING` - * state. If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment - * types and is running tasks that use the Fargate launch type, the minimum healthy percent value - * is not used, although it is returned when describing your service. + * the default value. The *minimum healthy percent* value is used to define the lower limit on the + * number of the tasks in the service that remain in the `RUNNING` state while the container + * instances are in the `DRAINING` state. + * + * + * You can't specify a custom `minimumHealthyPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * + * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types + * and is running tasks that use the Fargate launch type, the minimum healthy percent value is not + * used, although it is returned when describing your service. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-minimumhealthypercent) */ @@ -3276,9 +3299,17 @@ public open class CfnService( * default `maximumPercent` value for a service using the `REPLICA` service scheduler is 200%. * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment - * types and tasks that use the EC2 launch type, the *maximum percent* value is set to the - * default value and is used to define the upper limit on the number of the tasks in the service - * that remain in the `RUNNING` state while the container instances are in the `DRAINING` state. + * types, and tasks in the service use the EC2 launch type, the *maximum percent* value is set to + * the default value. The *maximum percent* value is used to define the upper limit on the number + * of the tasks in the service that remain in the `RUNNING` state while the container instances + * are in the `DRAINING` state. + * + * + * You can't specify a custom `maximumPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * * If the tasks in the service use the Fargate launch type, the maximum percent value is not * used, although it is returned when describing your service. */ @@ -3326,11 +3357,19 @@ public open class CfnService( * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment * types and is running tasks that use the EC2 launch type, the *minimum healthy percent* value - * is set to the default value and is used to define the lower limit on the number of the tasks - * in the service that remain in the `RUNNING` state while the container instances are in the - * `DRAINING` state. If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` - * deployment types and is running tasks that use the Fargate launch type, the minimum healthy - * percent value is not used, although it is returned when describing your service. + * is set to the default value. The *minimum healthy percent* value is used to define the lower + * limit on the number of the tasks in the service that remain in the `RUNNING` state while the + * container instances are in the `DRAINING` state. + * + * + * You can't specify a custom `minimumHealthyPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * + * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment + * types and is running tasks that use the Fargate launch type, the minimum healthy percent value + * is not used, although it is returned when describing your service. */ public fun minimumHealthyPercent(minimumHealthyPercent: Number) } @@ -3423,9 +3462,17 @@ public open class CfnService( * default `maximumPercent` value for a service using the `REPLICA` service scheduler is 200%. * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment - * types and tasks that use the EC2 launch type, the *maximum percent* value is set to the - * default value and is used to define the upper limit on the number of the tasks in the service - * that remain in the `RUNNING` state while the container instances are in the `DRAINING` state. + * types, and tasks in the service use the EC2 launch type, the *maximum percent* value is set to + * the default value. The *maximum percent* value is used to define the upper limit on the number + * of the tasks in the service that remain in the `RUNNING` state while the container instances + * are in the `DRAINING` state. + * + * + * You can't specify a custom `maximumPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * * If the tasks in the service use the Fargate launch type, the maximum percent value is not * used, although it is returned when describing your service. */ @@ -3475,11 +3522,19 @@ public open class CfnService( * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment * types and is running tasks that use the EC2 launch type, the *minimum healthy percent* value - * is set to the default value and is used to define the lower limit on the number of the tasks - * in the service that remain in the `RUNNING` state while the container instances are in the - * `DRAINING` state. If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` - * deployment types and is running tasks that use the Fargate launch type, the minimum healthy - * percent value is not used, although it is returned when describing your service. + * is set to the default value. The *minimum healthy percent* value is used to define the lower + * limit on the number of the tasks in the service that remain in the `RUNNING` state while the + * container instances are in the `DRAINING` state. + * + * + * You can't specify a custom `minimumHealthyPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * + * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment + * types and is running tasks that use the Fargate launch type, the minimum healthy percent value + * is not used, although it is returned when describing your service. */ override fun minimumHealthyPercent(minimumHealthyPercent: Number) { cdkBuilder.minimumHealthyPercent(minimumHealthyPercent) @@ -3492,7 +3547,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.DeploymentConfigurationProperty, - ) : CdkObject(cdkObject), DeploymentConfigurationProperty { + ) : CdkObject(cdkObject), + DeploymentConfigurationProperty { /** * Information about the CloudWatch alarms. * @@ -3529,9 +3585,17 @@ public open class CfnService( * default `maximumPercent` value for a service using the `REPLICA` service scheduler is 200%. * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment - * types and tasks that use the EC2 launch type, the *maximum percent* value is set to the - * default value and is used to define the upper limit on the number of the tasks in the service - * that remain in the `RUNNING` state while the container instances are in the `DRAINING` state. + * types, and tasks in the service use the EC2 launch type, the *maximum percent* value is set to + * the default value. The *maximum percent* value is used to define the upper limit on the number + * of the tasks in the service that remain in the `RUNNING` state while the container instances + * are in the `DRAINING` state. + * + * + * You can't specify a custom `maximumPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * * If the tasks in the service use the Fargate launch type, the maximum percent value is not * used, although it is returned when describing your service. * @@ -3582,11 +3646,19 @@ public open class CfnService( * * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment * types and is running tasks that use the EC2 launch type, the *minimum healthy percent* value - * is set to the default value and is used to define the lower limit on the number of the tasks - * in the service that remain in the `RUNNING` state while the container instances are in the - * `DRAINING` state. If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` - * deployment types and is running tasks that use the Fargate launch type, the minimum healthy - * percent value is not used, although it is returned when describing your service. + * is set to the default value. The *minimum healthy percent* value is used to define the lower + * limit on the number of the tasks in the service that remain in the `RUNNING` state while the + * container instances are in the `DRAINING` state. + * + * + * You can't specify a custom `minimumHealthyPercent` value for a service that uses either the + * blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment types and has tasks that use the EC2 + * launch type. + * + * + * If a service is using either the blue/green ( `CODE_DEPLOY` ) or `EXTERNAL` deployment + * types and is running tasks that use the Fargate launch type, the minimum healthy percent value + * is not used, although it is returned when describing your service. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-minimumhealthypercent) */ @@ -3712,7 +3784,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.DeploymentControllerProperty, - ) : CdkObject(cdkObject), DeploymentControllerProperty { + ) : CdkObject(cdkObject), + DeploymentControllerProperty { /** * The deployment controller type to use. There are three deployment controller types * available:. @@ -3876,7 +3949,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.EBSTagSpecificationProperty, - ) : CdkObject(cdkObject), EBSTagSpecificationProperty { + ) : CdkObject(cdkObject), + EBSTagSpecificationProperty { /** * Determines whether to propagate the tags from the task definition to the Amazon EBS volume. * @@ -4136,7 +4210,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.LoadBalancerProperty, - ) : CdkObject(cdkObject), LoadBalancerProperty { + ) : CdkObject(cdkObject), + LoadBalancerProperty { /** * The name of the container (as it appears in a container definition) to associate with the * load balancer. @@ -4219,19 +4294,12 @@ public open class CfnService( /** * The log configuration for the container. * - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--log-driver` - * option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, the * container might use a different logging driver than the Docker daemon by specifying a log driver - * configuration in the container definition. For more information about the options for different - * supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in - * the Docker documentation. + * configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -4242,7 +4310,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , `fluentd` , - * `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and `awsfirelens` . + * `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your container * instance. @@ -4284,15 +4352,15 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , `fluentd` - * , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and `awsfirelens` . + * , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in + * the *Amazon Elastic Container Service Developer Guide* . * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent @@ -4341,17 +4409,16 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . - * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -4416,17 +4483,16 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . - * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -4496,7 +4562,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** * The log driver to use for the container. * @@ -4504,17 +4571,16 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . - * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -4680,7 +4746,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * The VPC subnets and security groups that are associated with a task. * @@ -4818,7 +4885,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.PlacementConstraintProperty, - ) : CdkObject(cdkObject), PlacementConstraintProperty { + ) : CdkObject(cdkObject), + PlacementConstraintProperty { /** * A cluster query language expression to apply to the constraint. * @@ -4972,7 +5040,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.PlacementStrategyProperty, - ) : CdkObject(cdkObject), PlacementStrategyProperty { + ) : CdkObject(cdkObject), + PlacementStrategyProperty { /** * The field to apply the placement strategy against. * @@ -5148,7 +5217,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.SecretProperty, - ) : CdkObject(cdkObject), SecretProperty { + ) : CdkObject(cdkObject), + SecretProperty { /** * The name of the secret. * @@ -5349,7 +5419,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceConnectClientAliasProperty, - ) : CdkObject(cdkObject), ServiceConnectClientAliasProperty { + ) : CdkObject(cdkObject), + ServiceConnectClientAliasProperty { /** * The `dnsName` is the name that you use in the applications of client tasks to connect to * this service. @@ -5480,19 +5551,12 @@ public open class CfnService( /** * The log configuration for the container. * - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, the * container might use a different logging driver than the Docker daemon by specifying a log driver - * configuration in the container definition. For more information about the options for different - * supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in - * the Docker documentation. + * configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5504,7 +5568,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , `fluentd` - * , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and `awsfirelens` . + * , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your container * instance. @@ -5573,19 +5637,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5597,8 +5654,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5617,19 +5673,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5641,8 +5690,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5661,19 +5709,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5685,8 +5726,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5787,19 +5827,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5811,8 +5844,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5833,19 +5865,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5857,8 +5882,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5879,19 +5903,12 @@ public open class CfnService( /** * @param logConfiguration The log configuration for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -5903,8 +5920,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -5996,7 +6012,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceConnectConfigurationProperty, - ) : CdkObject(cdkObject), ServiceConnectConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceConnectConfigurationProperty { /** * Specifies whether to use Service Connect with this service. * @@ -6007,19 +6024,12 @@ public open class CfnService( /** * The log configuration for the container. * - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [`docker - * run`](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/run/) . + * This parameter maps to `LogConfig` in the docker container create command and the + * `--log-driver` option to docker run. * * By default, containers use the same logging driver that the Docker daemon uses. However, * the container might use a different logging driver than the Docker daemon by specifying a log - * driver configuration in the container definition. For more information about the options for - * different supported log drivers, see [Configure logging - * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) - * in the Docker documentation. + * driver configuration in the container definition. * * Understand the following when specifying a log configuration for your containers. * @@ -6031,8 +6041,7 @@ public open class CfnService( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * * * This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. @@ -6485,7 +6494,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceConnectServiceProperty, - ) : CdkObject(cdkObject), ServiceConnectServiceProperty { + ) : CdkObject(cdkObject), + ServiceConnectServiceProperty { /** * The list of client aliases for this Service Connect service. * @@ -6576,7 +6586,7 @@ public open class CfnService( } /** - * An object that represents the AWS Private Certificate Authority certificate. + * The certificate root authority that secures your service. * * Example: * @@ -6631,7 +6641,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceConnectTlsCertificateAuthorityProperty, - ) : CdkObject(cdkObject), ServiceConnectTlsCertificateAuthorityProperty { + ) : CdkObject(cdkObject), + ServiceConnectTlsCertificateAuthorityProperty { /** * The ARN of the AWS Private Certificate Authority certificate. * @@ -6660,7 +6671,7 @@ public open class CfnService( } /** - * An object that represents the configuration for Service Connect TLS. + * The key that encrypts and decrypts your resources for Service Connect TLS. * * Example: * @@ -6793,7 +6804,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceConnectTlsConfigurationProperty, - ) : CdkObject(cdkObject), ServiceConnectTlsConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceConnectTlsConfigurationProperty { /** * The signer certificate authority. * @@ -7420,7 +7432,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceManagedEBSVolumeConfigurationProperty, - ) : CdkObject(cdkObject), ServiceManagedEBSVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceManagedEBSVolumeConfigurationProperty { /** * Indicates whether the volume should be encrypted. * @@ -7782,7 +7795,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceRegistryProperty, - ) : CdkObject(cdkObject), ServiceRegistryProperty { + ) : CdkObject(cdkObject), + ServiceRegistryProperty { /** * The container name value to be used for your service discovery service. * @@ -8012,7 +8026,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.ServiceVolumeConfigurationProperty, - ) : CdkObject(cdkObject), ServiceVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceVolumeConfigurationProperty { /** * The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your * behalf. @@ -8164,7 +8179,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnService.TimeoutConfigurationProperty, - ) : CdkObject(cdkObject), TimeoutConfigurationProperty { + ) : CdkObject(cdkObject), + TimeoutConfigurationProperty { /** * The amount of time in seconds a connection will stay active while idle. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnServiceProps.kt index 50e0d3f9bc..ae69e7ffa2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnServiceProps.kt @@ -1584,7 +1584,8 @@ public interface CfnServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnServiceProps, - ) : CdkObject(cdkObject), CfnServiceProps { + ) : CdkObject(cdkObject), + CfnServiceProps { /** * The capacity provider strategy to use for the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinition.kt index ed9c665685..0f70338ac4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinition.kt @@ -39,11 +39,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * *Amazon Elastic Container Service Developer Guide* . * * You can specify a Docker networking mode for the containers in your task definition with the - * `networkMode` parameter. The available network modes correspond to those described in [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#/network-settings) - * in the Docker run reference. If you specify the `awsvpc` network mode, the task is allocated an - * elastic network interface, and you must specify a `NetworkConfiguration` when you create a service - * or run a task with the task definition. For more information, see [Task + * `networkMode` parameter. If you specify the `awsvpc` network mode, the task is allocated an elastic + * network interface, and you must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * when you create a service or run a task with the task definition. For more information, see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the * *Amazon Elastic Container Service Developer Guide* . * @@ -157,6 +156,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .type("type") * .value("value") * .build())) + * .restartPolicy(RestartPolicyProperty.builder() + * .enabled(false) + * .ignoredExitCodes(List.of(123)) + * .restartAttemptPeriod(123) + * .build()) * .secrets(List.of(SecretProperty.builder() * .name("name") * .valueFrom("valueFrom") @@ -260,7 +264,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTaskDefinition( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.CfnTaskDefinition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -676,6 +682,9 @@ public open class CfnTaskDefinition( * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` + * CPU units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -733,9 +742,8 @@ public open class CfnTaskDefinition( * The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS * container agent permission to make AWS API calls on your behalf. * - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) * in the *Amazon Elastic Container Service Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn) @@ -800,14 +808,10 @@ public open class CfnTaskDefinition( * containers within the specified task share the same IPC resources. If `none` is specified, then * IPC resources within the containers of a task are private and not shared with other containers * in a task or on the container instance. If no value is specified, then the IPC resource - * namespace sharing depends on the Docker daemon setting on the container instance. For more - * information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * namespace sharing depends on the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -888,18 +892,16 @@ public open class CfnTaskDefinition( * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the - * task definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, + * see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode) * @param networkMode The Docker networking mode to use for the containers in the task. */ @@ -918,14 +920,10 @@ public open class CfnTaskDefinition( * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -1138,6 +1136,11 @@ public open class CfnTaskDefinition( * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) * in the *Amazon Elastic Container Service Developer Guide* . * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn) * @param taskRoleArn The short name or full Amazon Resource Name (ARN) of the AWS Identity and * Access Management role that grants containers in the task permission to call AWS APIs on your @@ -1255,6 +1258,9 @@ public open class CfnTaskDefinition( * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` + * CPU units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -1319,9 +1325,8 @@ public open class CfnTaskDefinition( * The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS * container agent permission to make AWS API calls on your behalf. * - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) * in the *Amazon Elastic Container Service Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn) @@ -1395,14 +1400,10 @@ public open class CfnTaskDefinition( * containers within the specified task share the same IPC resources. If `none` is specified, then * IPC resources within the containers of a task are private and not shared with other containers * in a task or on the container instance. If no value is specified, then the IPC resource - * namespace sharing depends on the Docker daemon setting on the container instance. For more - * information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * namespace sharing depends on the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -1487,18 +1488,16 @@ public open class CfnTaskDefinition( * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the - * task definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, + * see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode) * @param networkMode The Docker networking mode to use for the containers in the task. */ @@ -1519,14 +1518,10 @@ public open class CfnTaskDefinition( * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -1762,6 +1757,11 @@ public open class CfnTaskDefinition( * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) * in the *Amazon Elastic Container Service Developer Guide* . * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn) * @param taskRoleArn The short name or full Amazon Resource Name (ARN) of the AWS Identity and * Access Management role that grants containers in the task permission to call AWS APIs on your @@ -1960,7 +1960,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.AuthorizationConfigProperty, - ) : CdkObject(cdkObject), AuthorizationConfigProperty { + ) : CdkObject(cdkObject), + AuthorizationConfigProperty { /** * The Amazon EFS access point ID to use. * @@ -2122,6 +2123,11 @@ public open class CfnTaskDefinition( * .type("type") * .value("value") * .build())) + * .restartPolicy(RestartPolicyProperty.builder() + * .enabled(false) + * .ignoredExitCodes(List.of(123)) + * .restartAttemptPeriod(123) + * .build()) * .secrets(List.of(SecretProperty.builder() * .name("name") * .valueFrom("valueFrom") @@ -2152,15 +2158,9 @@ public open class CfnTaskDefinition( /** * The command that's passed to the container. * - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string in + * the array. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-command) */ @@ -2169,13 +2169,8 @@ public open class CfnTaskDefinition( /** * The number of `cpu` units reserved for the container. * - * This parameter maps to `CpuShares` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cpu-shares` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CpuShares` in the docker container create commandand the + * `--cpu-shares` option to docker run. * * This field is optional for tasks using the Fargate launch type, and the only requirement is * that the total amount of CPU reserved for all containers within a task be lower than the @@ -2197,19 +2192,19 @@ public open class CfnTaskDefinition( * tasks were 100% active all of the time, they would be limited to 512 CPU units. * * On Linux container instances, the Docker daemon on the container instance uses the CPU value - * to calculate the relative CPU share ratios for running containers. For more information, see - * [CPU share - * constraint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#cpu-share-constraint) - * in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is - * 2. However, the CPU parameter isn't required, and you can use CPU values below 2 in your - * container definitions. For CPU values below 2 (including null), the behavior varies based on - * your Amazon ECS container agent version: + * to calculate the relative CPU share ratios for running containers. The minimum valid CPU share + * value that the Linux kernel allows is 2, and the maximum valid CPU share value that the Linux + * kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU values + * below 2 or above 262144 in your container definitions. For CPU values below 2 (including null) + * or above 262144, the behavior varies based on your Amazon ECS container agent version: * * * *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to Docker * as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, * which the Linux kernel converts to two CPU shares. * * *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are passed * to Docker as 2. + * * *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are + * passed to Docker as 256, which is equivalent to 262144 CPU shares. * * On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. * Windows containers only have access to the specified amount of CPU that's described in the task @@ -2298,10 +2293,7 @@ public open class CfnTaskDefinition( /** * When this parameter is true, networking is off within the container. * - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -2314,13 +2306,8 @@ public open class CfnTaskDefinition( /** * A list of DNS search domains that are presented to the container. * - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -2333,13 +2320,8 @@ public open class CfnTaskDefinition( /** * A list of DNS servers that are presented to the container. * - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option to + * docker run. * * * This parameter is not supported for Windows containers. @@ -2352,15 +2334,10 @@ public open class CfnTaskDefinition( /** * A key/value map of labels to add to the container. * - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-dockerlabels) @@ -2370,9 +2347,7 @@ public open class CfnTaskDefinition( /** * A list of strings to provide custom configuration for multiple security systems. * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and * AppArmor multi-level security systems. @@ -2385,13 +2360,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in the * *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -2402,10 +2372,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" * @@ -2422,15 +2388,7 @@ public open class CfnTaskDefinition( * and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-entrypoint) */ @@ -2439,13 +2397,8 @@ public open class CfnTaskDefinition( /** * The environment variables to pass to a container. * - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option to + * docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -2459,15 +2412,11 @@ public open class CfnTaskDefinition( /** * A list of files containing the environment variables to pass to a container. * - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. Each * line in an environment file contains an environment variable in `VARIABLE=VALUE` format. Lines - * beginning with `#` are treated as comments and are ignored. For more information about the - * environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a container * definition, they take precedence over the variables contained within an environment file. If @@ -2504,13 +2453,8 @@ public open class CfnTaskDefinition( * A list of hostnames and IP address mappings to append to the `/etc/hosts` file on the * container. * - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--add-host` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` network @@ -2536,13 +2480,8 @@ public open class CfnTaskDefinition( /** * The container health check command and associated configuration parameters for the container. * - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-healthcheck) */ @@ -2551,13 +2490,8 @@ public open class CfnTaskDefinition( /** * The hostname to use for your container. * - * This parameter maps to `Hostname` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--hostname` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Hostname` in the docker container create command and the `--hostname` + * option to docker run. * * * The `hostname` parameter is not supported if you're using the `awsvpc` network mode. @@ -2574,13 +2508,8 @@ public open class CfnTaskDefinition( * registry are available. Other repositories are specified with either `*repository-url* / *image* * : *tag*` or `*repository-url* / *image* @ *digest*` . Up to 255 letters (uppercase and * lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs - * are allowed. This parameter maps to `Image` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `IMAGE` - * parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * are allowed. This parameter maps to `Image` in the docker container create command and the + * `IMAGE` parameter of docker run. * * * When a new task starts, the Amazon ECS container agent pulls the latest version of the * specified image and tag for the container to use. However, subsequent updates to a repository @@ -2605,13 +2534,8 @@ public open class CfnTaskDefinition( * When this parameter is `true` , you can deploy containerized applications that require * `stdin` or a `tty` to be allocated. * - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive) */ @@ -2623,16 +2547,8 @@ public open class CfnTaskDefinition( * * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -2662,18 +2578,13 @@ public open class CfnTaskDefinition( /** * The log configuration specification for the container. * - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that the + * Docker daemon uses. However, the container may use a different logging driver than the Docker + * daemon by specifying a log driver with this parameter in the container definition. To use a + * different logging driver for a container, the log system must be configured properly on the + * container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in * the Docker documentation. * @@ -2741,13 +2652,8 @@ public open class CfnTaskDefinition( * this soft limit. However, your container can consume more memory when it needs to, up to either * the hard limit specified with the `memory` parameter (if applicable), or all of the available * memory on the container instance, whichever comes first. This parameter maps to - * `MemoryReservation` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--memory-reservation` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * `MemoryReservation` in the docker container create command and the `--memory-reservation` option + * to docker run. * * If a task-level memory value is not specified, you must specify a non-zero integer for one or * both of `memory` or `memoryReservation` in a container definition. If you specify both, `memory` @@ -2774,13 +2680,8 @@ public open class CfnTaskDefinition( /** * The mount points for data volumes in your container. * - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be across @@ -2796,13 +2697,8 @@ public open class CfnTaskDefinition( * If you're linking multiple containers together in a task definition, the `name` of one * container can be entered in the `links` of another container to connect the containers. Up to * 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This - * parameter maps to `name` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--name` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * parameter maps to `name` in the docker container create command and the `--name` option to + * docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-name) */ @@ -2849,13 +2745,8 @@ public open class CfnTaskDefinition( * When this parameter is true, the container is given elevated privileges on the host container * instance (similar to the `root` user). * - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -2868,13 +2759,8 @@ public open class CfnTaskDefinition( /** * When this parameter is `true` , a TTY is allocated. * - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option to + * docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-pseudoterminal) */ @@ -2883,13 +2769,8 @@ public open class CfnTaskDefinition( /** * When this parameter is true, the container is given read-only access to its root file system. * - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -2915,6 +2796,19 @@ public open class CfnTaskDefinition( */ public fun resourceRequirements(): Any? = unwrap(this).getResourceRequirements() + /** + * The restart policy for a container. + * + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-restartpolicy) + */ + public fun restartPolicy(): Any? = unwrap(this).getRestartPolicy() + /** * The secrets to pass to the container. * @@ -2960,7 +2854,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the * *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-starttimeout) */ @@ -2976,8 +2870,8 @@ public open class CfnTaskDefinition( * * Linux platform version `1.3.0` or later. * * Windows platform version `1.0.0` or later. * - * The max stop timeout value is 120 seconds and if the parameter is not specified, the default - * value of 30 seconds is used. + * For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if + * the parameter is not specified, the default value of 30 seconds is used. * * For tasks that use the EC2 launch type, if the `stopTimeout` parameter isn't specified, the * value set for the Amazon ECS container agent configuration variable `ECS_CONTAINER_STOP_TIMEOUT` @@ -2996,7 +2890,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the * *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-stoptimeout) */ @@ -3005,14 +2899,9 @@ public open class CfnTaskDefinition( /** * A list of namespaced kernel parameters to set in the container. * - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer lived - * connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-systemcontrols) */ @@ -3045,13 +2934,8 @@ public open class CfnTaskDefinition( /** * The user to use inside the container. * - * This parameter maps to `User` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--user` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `User` in the docker container create command and the `--user` option + * to docker run. * * * When running tasks using the `host` network mode, don't run containers using the root user @@ -3079,13 +2963,8 @@ public open class CfnTaskDefinition( /** * Data volumes to mount from another container. * - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom) */ @@ -3094,13 +2973,8 @@ public open class CfnTaskDefinition( /** * The working directory to run commands inside the container in. * - * This parameter maps to `WorkingDir` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--workdir` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `WorkingDir` in the docker container create command and the + * `--workdir` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-workingdirectory) */ @@ -3113,41 +2987,24 @@ public open class CfnTaskDefinition( public interface Builder { /** * @param command The command that's passed to the container. - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string + * in the array. */ public fun command(command: List) /** * @param command The command that's passed to the container. - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string + * in the array. */ public fun command(vararg command: String) /** * @param cpu The number of `cpu` units reserved for the container. - * This parameter maps to `CpuShares` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cpu-shares` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CpuShares` in the docker container create commandand the + * `--cpu-shares` option to docker run. * * This field is optional for tasks using the Fargate launch type, and the only requirement is * that the total amount of CPU reserved for all containers within a task be lower than the @@ -3170,19 +3027,20 @@ public open class CfnTaskDefinition( * CPU units. * * On Linux container instances, the Docker daemon on the container instance uses the CPU - * value to calculate the relative CPU share ratios for running containers. For more information, - * see [CPU share - * constraint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#cpu-share-constraint) - * in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is - * 2. However, the CPU parameter isn't required, and you can use CPU values below 2 in your - * container definitions. For CPU values below 2 (including null), the behavior varies based on - * your Amazon ECS container agent version: + * value to calculate the relative CPU share ratios for running containers. The minimum valid CPU + * share value that the Linux kernel allows is 2, and the maximum valid CPU share value that the + * Linux kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU + * values below 2 or above 262144 in your container definitions. For CPU values below 2 + * (including null) or above 262144, the behavior varies based on your Amazon ECS container agent + * version: * * * *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to * Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to * Docker as 1, which the Linux kernel converts to two CPU shares. * * *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are * passed to Docker as 2. + * * *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are + * passed to Docker as 256, which is equivalent to 262144 CPU shares. * * On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. * Windows containers only have access to the specified amount of CPU that's described in the @@ -3365,10 +3223,7 @@ public open class CfnTaskDefinition( /** * @param disableNetworking When this parameter is true, networking is off within the * container. - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -3378,10 +3233,7 @@ public open class CfnTaskDefinition( /** * @param disableNetworking When this parameter is true, networking is off within the * container. - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -3390,13 +3242,8 @@ public open class CfnTaskDefinition( /** * @param dnsSearchDomains A list of DNS search domains that are presented to the container. - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -3405,13 +3252,8 @@ public open class CfnTaskDefinition( /** * @param dnsSearchDomains A list of DNS search domains that are presented to the container. - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -3420,13 +3262,8 @@ public open class CfnTaskDefinition( /** * @param dnsServers A list of DNS servers that are presented to the container. - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option + * to docker run. * * * This parameter is not supported for Windows containers. @@ -3435,13 +3272,8 @@ public open class CfnTaskDefinition( /** * @param dnsServers A list of DNS servers that are presented to the container. - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option + * to docker run. * * * This parameter is not supported for Windows containers. @@ -3450,30 +3282,20 @@ public open class CfnTaskDefinition( /** * @param dockerLabels A key/value map of labels to add to the container. - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` */ public fun dockerLabels(dockerLabels: IResolvable) /** * @param dockerLabels A key/value map of labels to add to the container. - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` */ public fun dockerLabels(dockerLabels: Map) @@ -3481,9 +3303,7 @@ public open class CfnTaskDefinition( /** * @param dockerSecurityOptions A list of strings to provide custom configuration for multiple * security systems. - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux * and AppArmor multi-level security systems. @@ -3496,13 +3316,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -3513,10 +3328,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" */ @@ -3525,9 +3336,7 @@ public open class CfnTaskDefinition( /** * @param dockerSecurityOptions A list of strings to provide custom configuration for multiple * security systems. - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux * and AppArmor multi-level security systems. @@ -3540,13 +3349,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -3557,10 +3361,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" */ @@ -3573,15 +3373,7 @@ public open class CfnTaskDefinition( * commands and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. */ public fun entryPoint(entryPoint: List) @@ -3592,27 +3384,14 @@ public open class CfnTaskDefinition( * commands and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. */ public fun entryPoint(vararg entryPoint: String) /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -3622,13 +3401,8 @@ public open class CfnTaskDefinition( /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -3638,13 +3412,8 @@ public open class CfnTaskDefinition( /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -3655,15 +3424,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -3678,15 +3443,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -3701,15 +3462,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -3758,13 +3515,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -3775,13 +3527,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -3792,13 +3539,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -3839,39 +3581,24 @@ public open class CfnTaskDefinition( /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ public fun healthCheck(healthCheck: IResolvable) /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ public fun healthCheck(healthCheck: HealthCheckProperty) /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4837bfb05965defb7163e5c30084bb5c602354f2849160a0750db163cca2bd1d") @@ -3879,13 +3606,8 @@ public open class CfnTaskDefinition( /** * @param hostname The hostname to use for your container. - * This parameter maps to `Hostname` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--hostname` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Hostname` in the docker container create command and the + * `--hostname` option to docker run. * * * The `hostname` parameter is not supported if you're using the `awsvpc` network mode. @@ -3898,13 +3620,8 @@ public open class CfnTaskDefinition( * registry are available. Other repositories are specified with either `*repository-url* / * *image* : *tag*` or `*repository-url* / *image* @ *digest*` . Up to 255 letters (uppercase * and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number - * signs are allowed. This parameter maps to `Image` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `IMAGE` - * parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * signs are allowed. This parameter maps to `Image` in the docker container create command and + * the `IMAGE` parameter of docker run. * * * When a new task starts, the Amazon ECS container agent pulls the latest version of the * specified image and tag for the container to use. However, subsequent updates to a repository @@ -3926,26 +3643,16 @@ public open class CfnTaskDefinition( /** * @param interactive When this parameter is `true` , you can deploy containerized * applications that require `stdin` or a `tty` to be allocated. - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. */ public fun interactive(interactive: Boolean) /** * @param interactive When this parameter is `true` , you can deploy containerized * applications that require `stdin` or a `tty` to be allocated. - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. */ public fun interactive(interactive: IResolvable) @@ -3954,16 +3661,8 @@ public open class CfnTaskDefinition( * the need for port mappings. * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -3978,16 +3677,8 @@ public open class CfnTaskDefinition( * the need for port mappings. * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -4031,18 +3722,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -4071,18 +3757,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -4111,18 +3792,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -4186,13 +3862,8 @@ public open class CfnTaskDefinition( * to this soft limit. However, your container can consume more memory when it needs to, up to * either the hard limit specified with the `memory` parameter (if applicable), or all of the * available memory on the container instance, whichever comes first. This parameter maps to - * `MemoryReservation` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--memory-reservation` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * `MemoryReservation` in the docker container create command and the `--memory-reservation` + * option to docker run. * * If a task-level memory value is not specified, you must specify a non-zero integer for one * or both of `memory` or `memoryReservation` in a container definition. If you specify both, @@ -4216,13 +3887,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -4232,13 +3898,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -4248,13 +3909,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -4267,13 +3923,8 @@ public open class CfnTaskDefinition( * If you're linking multiple containers together in a task definition, the `name` of one * container can be entered in the `links` of another container to connect the containers. Up to * 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This - * parameter maps to `name` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--name` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * parameter maps to `name` in the docker container create command and the `--name` option to + * docker run. */ public fun name(name: String) @@ -4379,13 +4030,8 @@ public open class CfnTaskDefinition( /** * @param privileged When this parameter is true, the container is given elevated privileges * on the host container instance (similar to the `root` user). - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -4395,13 +4041,8 @@ public open class CfnTaskDefinition( /** * @param privileged When this parameter is true, the container is given elevated privileges * on the host container instance (similar to the `root` user). - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -4410,38 +4051,23 @@ public open class CfnTaskDefinition( /** * @param pseudoTerminal When this parameter is `true` , a TTY is allocated. - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option + * to docker run. */ public fun pseudoTerminal(pseudoTerminal: Boolean) /** * @param pseudoTerminal When this parameter is `true` , a TTY is allocated. - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option + * to docker run. */ public fun pseudoTerminal(pseudoTerminal: IResolvable) /** * @param readonlyRootFilesystem When this parameter is true, the container is given read-only * access to its root file system. - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -4451,13 +4077,8 @@ public open class CfnTaskDefinition( /** * @param readonlyRootFilesystem When this parameter is true, the container is given read-only * access to its root file system. - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -4500,6 +4121,38 @@ public open class CfnTaskDefinition( */ public fun resourceRequirements(vararg resourceRequirements: Any) + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + public fun restartPolicy(restartPolicy: IResolvable) + + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + public fun restartPolicy(restartPolicy: RestartPolicyProperty) + + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("198a151cb8e21be1a8918576523d86983b03b7a600573a64cfaef9c0bd3b09be") + public fun restartPolicy(restartPolicy: RestartPolicyProperty.Builder.() -> Unit) + /** * @param secrets The secrets to pass to the container. * For more information, see [Specifying Sensitive @@ -4557,7 +4210,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. */ public fun startTimeout(startTimeout: Number) @@ -4570,8 +4223,8 @@ public open class CfnTaskDefinition( * * Linux platform version `1.3.0` or later. * * Windows platform version `1.0.0` or later. * - * The max stop timeout value is 120 seconds and if the parameter is not specified, the - * default value of 30 seconds is used. + * For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and + * if the parameter is not specified, the default value of 30 seconds is used. * * For tasks that use the EC2 launch type, if the `stopTimeout` parameter isn't specified, the * value set for the Amazon ECS container agent configuration variable @@ -4591,46 +4244,31 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. */ public fun stopTimeout(stopTimeout: Number) /** * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ public fun systemControls(systemControls: IResolvable) /** * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ public fun systemControls(systemControls: List) /** * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ public fun systemControls(vararg systemControls: Any) @@ -4696,13 +4334,8 @@ public open class CfnTaskDefinition( /** * @param user The user to use inside the container. - * This parameter maps to `User` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--user` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `User` in the docker container create command and the `--user` + * option to docker run. * * * When running tasks using the `host` network mode, don't run containers using the root user @@ -4726,49 +4359,29 @@ public open class CfnTaskDefinition( /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ public fun volumesFrom(volumesFrom: IResolvable) /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ public fun volumesFrom(volumesFrom: List) /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ public fun volumesFrom(vararg volumesFrom: Any) /** * @param workingDirectory The working directory to run commands inside the container in. - * This parameter maps to `WorkingDir` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--workdir` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `WorkingDir` in the docker container create command and the + * `--workdir` option to docker run. */ public fun workingDirectory(workingDirectory: String) } @@ -4781,15 +4394,9 @@ public open class CfnTaskDefinition( /** * @param command The command that's passed to the container. - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string + * in the array. */ override fun command(command: List) { cdkBuilder.command(command) @@ -4797,27 +4404,16 @@ public open class CfnTaskDefinition( /** * @param command The command that's passed to the container. - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string + * in the array. */ override fun command(vararg command: String): Unit = command(command.toList()) /** * @param cpu The number of `cpu` units reserved for the container. - * This parameter maps to `CpuShares` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cpu-shares` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CpuShares` in the docker container create commandand the + * `--cpu-shares` option to docker run. * * This field is optional for tasks using the Fargate launch type, and the only requirement is * that the total amount of CPU reserved for all containers within a task be lower than the @@ -4840,19 +4436,20 @@ public open class CfnTaskDefinition( * CPU units. * * On Linux container instances, the Docker daemon on the container instance uses the CPU - * value to calculate the relative CPU share ratios for running containers. For more information, - * see [CPU share - * constraint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#cpu-share-constraint) - * in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is - * 2. However, the CPU parameter isn't required, and you can use CPU values below 2 in your - * container definitions. For CPU values below 2 (including null), the behavior varies based on - * your Amazon ECS container agent version: + * value to calculate the relative CPU share ratios for running containers. The minimum valid CPU + * share value that the Linux kernel allows is 2, and the maximum valid CPU share value that the + * Linux kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU + * values below 2 or above 262144 in your container definitions. For CPU values below 2 + * (including null) or above 262144, the behavior varies based on your Amazon ECS container agent + * version: * * * *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to * Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to * Docker as 1, which the Linux kernel converts to two CPU shares. * * *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are * passed to Docker as 2. + * * *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are + * passed to Docker as 256, which is equivalent to 262144 CPU shares. * * On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. * Windows containers only have access to the specified amount of CPU that's described in the @@ -5044,10 +4641,7 @@ public open class CfnTaskDefinition( /** * @param disableNetworking When this parameter is true, networking is off within the * container. - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -5059,10 +4653,7 @@ public open class CfnTaskDefinition( /** * @param disableNetworking When this parameter is true, networking is off within the * container. - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -5073,13 +4664,8 @@ public open class CfnTaskDefinition( /** * @param dnsSearchDomains A list of DNS search domains that are presented to the container. - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -5090,13 +4676,8 @@ public open class CfnTaskDefinition( /** * @param dnsSearchDomains A list of DNS search domains that are presented to the container. - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -5106,13 +4687,8 @@ public open class CfnTaskDefinition( /** * @param dnsServers A list of DNS servers that are presented to the container. - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option + * to docker run. * * * This parameter is not supported for Windows containers. @@ -5123,13 +4699,8 @@ public open class CfnTaskDefinition( /** * @param dnsServers A list of DNS servers that are presented to the container. - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option + * to docker run. * * * This parameter is not supported for Windows containers. @@ -5138,15 +4709,10 @@ public open class CfnTaskDefinition( /** * @param dockerLabels A key/value map of labels to add to the container. - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` */ override fun dockerLabels(dockerLabels: IResolvable) { @@ -5155,15 +4721,10 @@ public open class CfnTaskDefinition( /** * @param dockerLabels A key/value map of labels to add to the container. - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` */ override fun dockerLabels(dockerLabels: Map) { @@ -5173,9 +4734,7 @@ public open class CfnTaskDefinition( /** * @param dockerSecurityOptions A list of strings to provide custom configuration for multiple * security systems. - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux * and AppArmor multi-level security systems. @@ -5188,13 +4747,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -5205,10 +4759,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" */ @@ -5219,9 +4769,7 @@ public open class CfnTaskDefinition( /** * @param dockerSecurityOptions A list of strings to provide custom configuration for multiple * security systems. - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux * and AppArmor multi-level security systems. @@ -5234,13 +4782,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -5251,10 +4794,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" */ @@ -5268,15 +4807,7 @@ public open class CfnTaskDefinition( * commands and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. */ override fun entryPoint(entryPoint: List) { cdkBuilder.entryPoint(entryPoint) @@ -5289,27 +4820,14 @@ public open class CfnTaskDefinition( * commands and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. */ override fun entryPoint(vararg entryPoint: String): Unit = entryPoint(entryPoint.toList()) /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -5321,13 +4839,8 @@ public open class CfnTaskDefinition( /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -5339,13 +4852,8 @@ public open class CfnTaskDefinition( /** * @param environment The environment variables to pass to a container. - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -5356,15 +4864,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -5381,15 +4885,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -5406,15 +4906,11 @@ public open class CfnTaskDefinition( /** * @param environmentFiles A list of files containing the environment variables to pass to a * container. - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -5468,13 +4964,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -5487,13 +4978,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -5506,13 +4992,8 @@ public open class CfnTaskDefinition( /** * @param extraHosts A list of hostnames and IP address mappings to append to the `/etc/hosts` * file on the container. - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -5558,13 +5039,8 @@ public open class CfnTaskDefinition( /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ override fun healthCheck(healthCheck: IResolvable) { cdkBuilder.healthCheck(healthCheck.let(IResolvable.Companion::unwrap)) @@ -5573,13 +5049,8 @@ public open class CfnTaskDefinition( /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ override fun healthCheck(healthCheck: HealthCheckProperty) { cdkBuilder.healthCheck(healthCheck.let(HealthCheckProperty.Companion::unwrap)) @@ -5588,13 +5059,8 @@ public open class CfnTaskDefinition( /** * @param healthCheck The container health check command and associated configuration * parameters for the container. - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4837bfb05965defb7163e5c30084bb5c602354f2849160a0750db163cca2bd1d") @@ -5603,13 +5069,8 @@ public open class CfnTaskDefinition( /** * @param hostname The hostname to use for your container. - * This parameter maps to `Hostname` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--hostname` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Hostname` in the docker container create command and the + * `--hostname` option to docker run. * * * The `hostname` parameter is not supported if you're using the `awsvpc` network mode. @@ -5624,13 +5085,8 @@ public open class CfnTaskDefinition( * registry are available. Other repositories are specified with either `*repository-url* / * *image* : *tag*` or `*repository-url* / *image* @ *digest*` . Up to 255 letters (uppercase * and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number - * signs are allowed. This parameter maps to `Image` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `IMAGE` - * parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * signs are allowed. This parameter maps to `Image` in the docker container create command and + * the `IMAGE` parameter of docker run. * * * When a new task starts, the Amazon ECS container agent pulls the latest version of the * specified image and tag for the container to use. However, subsequent updates to a repository @@ -5654,13 +5110,8 @@ public open class CfnTaskDefinition( /** * @param interactive When this parameter is `true` , you can deploy containerized * applications that require `stdin` or a `tty` to be allocated. - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. */ override fun interactive(interactive: Boolean) { cdkBuilder.interactive(interactive) @@ -5669,13 +5120,8 @@ public open class CfnTaskDefinition( /** * @param interactive When this parameter is `true` , you can deploy containerized * applications that require `stdin` or a `tty` to be allocated. - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. */ override fun interactive(interactive: IResolvable) { cdkBuilder.interactive(interactive.let(IResolvable.Companion::unwrap)) @@ -5686,16 +5132,8 @@ public open class CfnTaskDefinition( * the need for port mappings. * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -5712,16 +5150,8 @@ public open class CfnTaskDefinition( * the need for port mappings. * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -5770,18 +5200,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -5812,18 +5237,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -5854,18 +5274,13 @@ public open class CfnTaskDefinition( /** * @param logConfiguration The log configuration specification for the container. - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -5932,13 +5347,8 @@ public open class CfnTaskDefinition( * to this soft limit. However, your container can consume more memory when it needs to, up to * either the hard limit specified with the `memory` parameter (if applicable), or all of the * available memory on the container instance, whichever comes first. This parameter maps to - * `MemoryReservation` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--memory-reservation` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * `MemoryReservation` in the docker container create command and the `--memory-reservation` + * option to docker run. * * If a task-level memory value is not specified, you must specify a non-zero integer for one * or both of `memory` or `memoryReservation` in a container definition. If you specify both, @@ -5964,13 +5374,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -5982,13 +5387,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -6000,13 +5400,8 @@ public open class CfnTaskDefinition( /** * @param mountPoints The mount points for data volumes in your container. - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -6019,13 +5414,8 @@ public open class CfnTaskDefinition( * If you're linking multiple containers together in a task definition, the `name` of one * container can be entered in the `links` of another container to connect the containers. Up to * 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This - * parameter maps to `name` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--name` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * parameter maps to `name` in the docker container create command and the `--name` option to + * docker run. */ override fun name(name: String) { cdkBuilder.name(name) @@ -6138,13 +5528,8 @@ public open class CfnTaskDefinition( /** * @param privileged When this parameter is true, the container is given elevated privileges * on the host container instance (similar to the `root` user). - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -6156,13 +5541,8 @@ public open class CfnTaskDefinition( /** * @param privileged When this parameter is true, the container is given elevated privileges * on the host container instance (similar to the `root` user). - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -6173,13 +5553,8 @@ public open class CfnTaskDefinition( /** * @param pseudoTerminal When this parameter is `true` , a TTY is allocated. - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option + * to docker run. */ override fun pseudoTerminal(pseudoTerminal: Boolean) { cdkBuilder.pseudoTerminal(pseudoTerminal) @@ -6187,13 +5562,8 @@ public open class CfnTaskDefinition( /** * @param pseudoTerminal When this parameter is `true` , a TTY is allocated. - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option + * to docker run. */ override fun pseudoTerminal(pseudoTerminal: IResolvable) { cdkBuilder.pseudoTerminal(pseudoTerminal.let(IResolvable.Companion::unwrap)) @@ -6202,13 +5572,8 @@ public open class CfnTaskDefinition( /** * @param readonlyRootFilesystem When this parameter is true, the container is given read-only * access to its root file system. - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -6220,13 +5585,8 @@ public open class CfnTaskDefinition( /** * @param readonlyRootFilesystem When this parameter is true, the container is given read-only * access to its root file system. - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -6281,6 +5641,43 @@ public open class CfnTaskDefinition( override fun resourceRequirements(vararg resourceRequirements: Any): Unit = resourceRequirements(resourceRequirements.toList()) + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + override fun restartPolicy(restartPolicy: IResolvable) { + cdkBuilder.restartPolicy(restartPolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + override fun restartPolicy(restartPolicy: RestartPolicyProperty) { + cdkBuilder.restartPolicy(restartPolicy.let(RestartPolicyProperty.Companion::unwrap)) + } + + /** + * @param restartPolicy The restart policy for a container. + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("198a151cb8e21be1a8918576523d86983b03b7a600573a64cfaef9c0bd3b09be") + override fun restartPolicy(restartPolicy: RestartPolicyProperty.Builder.() -> Unit): Unit = + restartPolicy(RestartPolicyProperty(restartPolicy)) + /** * @param secrets The secrets to pass to the container. * For more information, see [Specifying Sensitive @@ -6342,7 +5739,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. */ override fun startTimeout(startTimeout: Number) { cdkBuilder.startTimeout(startTimeout) @@ -6357,8 +5754,8 @@ public open class CfnTaskDefinition( * * Linux platform version `1.3.0` or later. * * Windows platform version `1.0.0` or later. * - * The max stop timeout value is 120 seconds and if the parameter is not specified, the - * default value of 30 seconds is used. + * For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and + * if the parameter is not specified, the default value of 30 seconds is used. * * For tasks that use the EC2 launch type, if the `stopTimeout` parameter isn't specified, the * value set for the Amazon ECS container agent configuration variable @@ -6378,7 +5775,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. */ override fun stopTimeout(stopTimeout: Number) { cdkBuilder.stopTimeout(stopTimeout) @@ -6386,29 +5783,19 @@ public open class CfnTaskDefinition( /** * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ override fun systemControls(systemControls: IResolvable) { cdkBuilder.systemControls(systemControls.let(IResolvable.Companion::unwrap)) } - /** - * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + /** + * @param systemControls A list of namespaced kernel parameters to set in the container. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ override fun systemControls(systemControls: List) { cdkBuilder.systemControls(systemControls.map{CdkObjectWrappers.unwrap(it)}) @@ -6416,14 +5803,9 @@ public open class CfnTaskDefinition( /** * @param systemControls A list of namespaced kernel parameters to set in the container. - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. */ override fun systemControls(vararg systemControls: Any): Unit = systemControls(systemControls.toList()) @@ -6494,13 +5876,8 @@ public open class CfnTaskDefinition( /** * @param user The user to use inside the container. - * This parameter maps to `User` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--user` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `User` in the docker container create command and the `--user` + * option to docker run. * * * When running tasks using the `host` network mode, don't run containers using the root user @@ -6526,13 +5903,8 @@ public open class CfnTaskDefinition( /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ override fun volumesFrom(volumesFrom: IResolvable) { cdkBuilder.volumesFrom(volumesFrom.let(IResolvable.Companion::unwrap)) @@ -6540,13 +5912,8 @@ public open class CfnTaskDefinition( /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ override fun volumesFrom(volumesFrom: List) { cdkBuilder.volumesFrom(volumesFrom.map{CdkObjectWrappers.unwrap(it)}) @@ -6554,25 +5921,15 @@ public open class CfnTaskDefinition( /** * @param volumesFrom Data volumes to mount from another container. - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. */ override fun volumesFrom(vararg volumesFrom: Any): Unit = volumesFrom(volumesFrom.toList()) /** * @param workingDirectory The working directory to run commands inside the container in. - * This parameter maps to `WorkingDir` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--workdir` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `WorkingDir` in the docker container create command and the + * `--workdir` option to docker run. */ override fun workingDirectory(workingDirectory: String) { cdkBuilder.workingDirectory(workingDirectory) @@ -6585,19 +5942,14 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.ContainerDefinitionProperty, - ) : CdkObject(cdkObject), ContainerDefinitionProperty { + ) : CdkObject(cdkObject), + ContainerDefinitionProperty { /** * The command that's passed to the container. * - * This parameter maps to `Cmd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `COMMAND` - * parameter to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) - * . If there are multiple arguments, each argument is a separated string in the array. + * This parameter maps to `Cmd` in the docker container create command and the `COMMAND` + * parameter to docker run. If there are multiple arguments, each argument is a separated string + * in the array. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-command) */ @@ -6606,13 +5958,8 @@ public open class CfnTaskDefinition( /** * The number of `cpu` units reserved for the container. * - * This parameter maps to `CpuShares` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cpu-shares` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CpuShares` in the docker container create commandand the + * `--cpu-shares` option to docker run. * * This field is optional for tasks using the Fargate launch type, and the only requirement is * that the total amount of CPU reserved for all containers within a task be lower than the @@ -6635,19 +5982,20 @@ public open class CfnTaskDefinition( * CPU units. * * On Linux container instances, the Docker daemon on the container instance uses the CPU - * value to calculate the relative CPU share ratios for running containers. For more information, - * see [CPU share - * constraint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#cpu-share-constraint) - * in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is - * 2. However, the CPU parameter isn't required, and you can use CPU values below 2 in your - * container definitions. For CPU values below 2 (including null), the behavior varies based on - * your Amazon ECS container agent version: + * value to calculate the relative CPU share ratios for running containers. The minimum valid CPU + * share value that the Linux kernel allows is 2, and the maximum valid CPU share value that the + * Linux kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU + * values below 2 or above 262144 in your container definitions. For CPU values below 2 + * (including null) or above 262144, the behavior varies based on your Amazon ECS container agent + * version: * * * *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to * Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to * Docker as 1, which the Linux kernel converts to two CPU shares. * * *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are * passed to Docker as 2. + * * *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are + * passed to Docker as 256, which is equivalent to 262144 CPU shares. * * On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. * Windows containers only have access to the specified amount of CPU that's described in the @@ -6737,10 +6085,7 @@ public open class CfnTaskDefinition( /** * When this parameter is true, networking is off within the container. * - * This parameter maps to `NetworkDisabled` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * This parameter maps to `NetworkDisabled` in the docker container create command. * * * This parameter is not supported for Windows containers. @@ -6753,13 +6098,8 @@ public open class CfnTaskDefinition( /** * A list of DNS search domains that are presented to the container. * - * This parameter maps to `DnsSearch` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--dns-search` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `DnsSearch` in the docker container create command and the + * `--dns-search` option to docker run. * * * This parameter is not supported for Windows containers. @@ -6773,13 +6113,8 @@ public open class CfnTaskDefinition( /** * A list of DNS servers that are presented to the container. * - * This parameter maps to `Dns` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--dns` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Dns` in the docker container create command and the `--dns` option + * to docker run. * * * This parameter is not supported for Windows containers. @@ -6792,15 +6127,10 @@ public open class CfnTaskDefinition( /** * A key/value map of labels to add to the container. * - * This parameter maps to `Labels` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--label` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.18 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format + * This parameter maps to `Labels` in the docker container create command and the `--label` + * option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater + * on your container instance. To check the Docker Remote API version on your container instance, + * log in to your container instance and run the following command: `sudo docker version --format * '{{.Server.APIVersion}}'` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-dockerlabels) @@ -6810,9 +6140,7 @@ public open class CfnTaskDefinition( /** * A list of strings to provide custom configuration for multiple security systems. * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This field isn't valid for containers in tasks using the Fargate launch type. + * This field isn't valid for containers in tasks using the Fargate launch type. * * For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux * and AppArmor multi-level security systems. @@ -6825,13 +6153,8 @@ public open class CfnTaskDefinition( * Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * This parameter maps to `SecurityOpt` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--security-opt` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `SecurityOpt` in the docker container create command and the + * `--security-opt` option to docker run. * * * The Amazon ECS container agent running on a container instance must register with the @@ -6842,10 +6165,6 @@ public open class CfnTaskDefinition( * in the *Amazon Elastic Container Service Developer Guide* . * * - * For more information about valid values, see [Docker Run Security - * Configuration](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . - * * Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | * "credentialspec:CredentialSpecFilePath" * @@ -6862,15 +6181,7 @@ public open class CfnTaskDefinition( * commands and arguments as `command` array items instead. * * The entry point that's passed to the container. This parameter maps to `Entrypoint` in the - * [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--entrypoint` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For more information, see - * [https://docs.docker.com/engine/reference/builder/#entrypoint](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#entrypoint) - * . + * docker container create command and the `--entrypoint` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-entrypoint) */ @@ -6879,13 +6190,8 @@ public open class CfnTaskDefinition( /** * The environment variables to pass to a container. * - * This parameter maps to `Env` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--env` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Env` in the docker container create command and the `--env` option + * to docker run. * * * We don't recommend that you use plaintext environment variables for sensitive information, @@ -6899,15 +6205,11 @@ public open class CfnTaskDefinition( /** * A list of files containing the environment variables to pass to a container. * - * This parameter maps to the `--env-file` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--env-file` option to docker run. * * You can specify up to ten environment files. The file must have a `.env` file extension. * Each line in an environment file contains an environment variable in `VARIABLE=VALUE` format. - * Lines beginning with `#` are treated as comments and are ignored. For more information about - * the environment variable file syntax, see [Declare default environment variables in - * file](https://docs.aws.amazon.com/https://docs.docker.com/compose/env-file/) . + * Lines beginning with `#` are treated as comments and are ignored. * * If there are environment variables specified using the `environment` parameter in a * container definition, they take precedence over the variables contained within an environment @@ -6944,13 +6246,8 @@ public open class CfnTaskDefinition( * A list of hostnames and IP address mappings to append to the `/etc/hosts` file on the * container. * - * This parameter maps to `ExtraHosts` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--add-host` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ExtraHosts` in the docker container create command and the + * `--add-host` option to docker run. * * * This parameter isn't supported for Windows containers or tasks that use the `awsvpc` @@ -6977,13 +6274,8 @@ public open class CfnTaskDefinition( * The container health check command and associated configuration parameters for the * container. * - * This parameter maps to `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `HealthCheck` in the docker container create command and the + * `HEALTHCHECK` parameter of docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-healthcheck) */ @@ -6992,13 +6284,8 @@ public open class CfnTaskDefinition( /** * The hostname to use for your container. * - * This parameter maps to `Hostname` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--hostname` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Hostname` in the docker container create command and the + * `--hostname` option to docker run. * * * The `hostname` parameter is not supported if you're using the `awsvpc` network mode. @@ -7015,13 +6302,8 @@ public open class CfnTaskDefinition( * registry are available. Other repositories are specified with either `*repository-url* / * *image* : *tag*` or `*repository-url* / *image* @ *digest*` . Up to 255 letters (uppercase * and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number - * signs are allowed. This parameter maps to `Image` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `IMAGE` - * parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * signs are allowed. This parameter maps to `Image` in the docker container create command and + * the `IMAGE` parameter of docker run. * * * When a new task starts, the Amazon ECS container agent pulls the latest version of the * specified image and tag for the container to use. However, subsequent updates to a repository @@ -7046,13 +6328,8 @@ public open class CfnTaskDefinition( * When this parameter is `true` , you can deploy containerized applications that require * `stdin` or a `tty` to be allocated. * - * This parameter maps to `OpenStdin` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--interactive` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `OpenStdin` in the docker container create command and the + * `--interactive` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-interactive) */ @@ -7064,16 +6341,8 @@ public open class CfnTaskDefinition( * * This parameter is only supported if the network mode of a task definition is `bridge` . The * `name:internalName` construct is analogous to `name:alias` in Docker links. Up to 255 letters - * (uppercase and lowercase), numbers, underscores, and hyphens are allowed. For more information - * about linking Docker containers, go to [Legacy container - * links](https://docs.aws.amazon.com/https://docs.docker.com/network/links/) in the Docker - * documentation. This parameter maps to `Links` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--link` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps + * to `Links` in the docker container create command and the `--link` option to docker run. * * * This parameter is not supported for Windows containers. > Containers that are collocated @@ -7103,18 +6372,13 @@ public open class CfnTaskDefinition( /** * The log configuration specification for the container. * - * This parameter maps to `LogConfig` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--log-driver` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, - * containers use the same logging driver that the Docker daemon uses. However, the container may - * use a different logging driver than the Docker daemon by specifying a log driver with this - * parameter in the container definition. To use a different logging driver for a container, the - * log system must be configured properly on the container instance (or on a different log server - * for remote logging options). For more information on the options for different supported log - * drivers, see [Configure logging + * This parameter maps to `LogConfig` in the docker Create a container command and the + * `--log-driver` option to docker run. By default, containers use the same logging driver that + * the Docker daemon uses. However, the container may use a different logging driver than the + * Docker daemon by specifying a log driver with this parameter in the container definition. To + * use a different logging driver for a container, the log system must be configured properly on + * the container instance (or on a different log server for remote logging options). For more + * information on the options for different supported log drivers, see [Configure logging * drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) * in the Docker documentation. * @@ -7183,13 +6447,8 @@ public open class CfnTaskDefinition( * to this soft limit. However, your container can consume more memory when it needs to, up to * either the hard limit specified with the `memory` parameter (if applicable), or all of the * available memory on the container instance, whichever comes first. This parameter maps to - * `MemoryReservation` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--memory-reservation` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * `MemoryReservation` in the docker container create command and the `--memory-reservation` + * option to docker run. * * If a task-level memory value is not specified, you must specify a non-zero integer for one * or both of `memory` or `memoryReservation` in a container definition. If you specify both, @@ -7216,13 +6475,8 @@ public open class CfnTaskDefinition( /** * The mount points for data volumes in your container. * - * This parameter maps to `Volumes` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--volume` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Volumes` in the docker container create command and the `--volume` + * option to docker run. * * Windows containers can mount whole directories on the same drive as `$env:ProgramData` . * Windows containers can't mount directories on a different drive, and mount point can't be @@ -7238,13 +6492,8 @@ public open class CfnTaskDefinition( * If you're linking multiple containers together in a task definition, the `name` of one * container can be entered in the `links` of another container to connect the containers. Up to * 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This - * parameter maps to `name` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--name` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * parameter maps to `name` in the docker container create command and the `--name` option to + * docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-name) */ @@ -7291,13 +6540,8 @@ public open class CfnTaskDefinition( * When this parameter is true, the container is given elevated privileges on the host * container instance (similar to the `root` user). * - * This parameter maps to `Privileged` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--privileged` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Privileged` in the docker container create command and the + * `--privileged` option to docker run * * * This parameter is not supported for Windows containers or tasks run on AWS Fargate . @@ -7310,13 +6554,8 @@ public open class CfnTaskDefinition( /** * When this parameter is `true` , a TTY is allocated. * - * This parameter maps to `Tty` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--tty` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Tty` in the docker container create command and the `--tty` option + * to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-pseudoterminal) */ @@ -7326,13 +6565,8 @@ public open class CfnTaskDefinition( * When this parameter is true, the container is given read-only access to its root file * system. * - * This parameter maps to `ReadonlyRootfs` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--read-only` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `ReadonlyRootfs` in the docker container create command and the + * `--read-only` option to docker run. * * * This parameter is not supported for Windows containers. @@ -7358,6 +6592,19 @@ public open class CfnTaskDefinition( */ override fun resourceRequirements(): Any? = unwrap(this).getResourceRequirements() + /** + * The restart policy for a container. + * + * When you set up a restart policy, Amazon ECS can restart the container without needing to + * replace the task. For more information, see [Restart individual containers in Amazon ECS tasks + * with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-restartpolicy) + */ + override fun restartPolicy(): Any? = unwrap(this).getRestartPolicy() + /** * The secrets to pass to the container. * @@ -7403,7 +6650,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-starttimeout) */ @@ -7419,8 +6666,8 @@ public open class CfnTaskDefinition( * * Linux platform version `1.3.0` or later. * * Windows platform version `1.0.0` or later. * - * The max stop timeout value is 120 seconds and if the parameter is not specified, the - * default value of 30 seconds is used. + * For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and + * if the parameter is not specified, the default value of 30 seconds is used. * * For tasks that use the EC2 launch type, if the `stopTimeout` parameter isn't specified, the * value set for the Amazon ECS container agent configuration variable @@ -7440,7 +6687,7 @@ public open class CfnTaskDefinition( * AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in * the *Amazon Elastic Container Service Developer Guide* . * - * The valid values are 2-120 seconds. + * The valid values for Fargate are 2-120 seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-stoptimeout) */ @@ -7449,14 +6696,9 @@ public open class CfnTaskDefinition( /** * A list of namespaced kernel parameters to set in the container. * - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer - * lived connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-systemcontrols) */ @@ -7489,13 +6731,8 @@ public open class CfnTaskDefinition( /** * The user to use inside the container. * - * This parameter maps to `User` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--user` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `User` in the docker container create command and the `--user` + * option to docker run. * * * When running tasks using the `host` network mode, don't run containers using the root user @@ -7523,13 +6760,8 @@ public open class CfnTaskDefinition( /** * Data volumes to mount from another container. * - * This parameter maps to `VolumesFrom` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--volumes-from` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `VolumesFrom` in the docker container create command and the + * `--volumes-from` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom) */ @@ -7538,13 +6770,8 @@ public open class CfnTaskDefinition( /** * The working directory to run commands inside the container in. * - * This parameter maps to `WorkingDir` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--workdir` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `WorkingDir` in the docker container create command and the + * `--workdir` option to docker run. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-workingdirectory) */ @@ -7701,7 +6928,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.ContainerDependencyProperty, - ) : CdkObject(cdkObject), ContainerDependencyProperty { + ) : CdkObject(cdkObject), + ContainerDependencyProperty { /** * The dependency condition of the container. The following are the available conditions and * their behavior:. @@ -7861,7 +7089,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.DeviceProperty, - ) : CdkObject(cdkObject), DeviceProperty { + ) : CdkObject(cdkObject), + DeviceProperty { /** * The path inside the container at which to expose the host device. * @@ -7950,16 +7179,8 @@ public open class CfnTaskDefinition( * The driver value must match the driver name provided by Docker because it is used for task * placement. If the driver was installed using the Docker plugin CLI, use `docker plugin ls` to * retrieve the driver name from your container instance. If the driver was installed using another - * method, use Docker plugin discovery to retrieve the driver name. For more information, see - * [Docker plugin - * discovery](https://docs.aws.amazon.com/https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery) - * . This parameter maps to `Driver` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxdriver` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * method, use Docker plugin discovery to retrieve the driver name. This parameter maps to `Driver` + * in the docker container create command and the `xxdriver` option to docker volume create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driver) */ @@ -7968,13 +7189,8 @@ public open class CfnTaskDefinition( /** * A map of Docker driver-specific options passed through. * - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driveropts) */ @@ -7983,13 +7199,8 @@ public open class CfnTaskDefinition( /** * Custom metadata to add to your Docker volume. * - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-labels) */ @@ -8032,64 +7243,37 @@ public open class CfnTaskDefinition( * The driver value must match the driver name provided by Docker because it is used for task * placement. If the driver was installed using the Docker plugin CLI, use `docker plugin ls` to * retrieve the driver name from your container instance. If the driver was installed using - * another method, use Docker plugin discovery to retrieve the driver name. For more information, - * see [Docker plugin - * discovery](https://docs.aws.amazon.com/https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery) - * . This parameter maps to `Driver` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxdriver` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * another method, use Docker plugin discovery to retrieve the driver name. This parameter maps + * to `Driver` in the docker container create command and the `xxdriver` option to docker volume + * create. */ public fun driver(driver: String) /** * @param driverOpts A map of Docker driver-specific options passed through. - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. */ public fun driverOpts(driverOpts: IResolvable) /** * @param driverOpts A map of Docker driver-specific options passed through. - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. */ public fun driverOpts(driverOpts: Map) /** * @param labels Custom metadata to add to your Docker volume. - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. */ public fun labels(labels: IResolvable) /** * @param labels Custom metadata to add to your Docker volume. - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. */ public fun labels(labels: Map) @@ -8133,16 +7317,9 @@ public open class CfnTaskDefinition( * The driver value must match the driver name provided by Docker because it is used for task * placement. If the driver was installed using the Docker plugin CLI, use `docker plugin ls` to * retrieve the driver name from your container instance. If the driver was installed using - * another method, use Docker plugin discovery to retrieve the driver name. For more information, - * see [Docker plugin - * discovery](https://docs.aws.amazon.com/https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery) - * . This parameter maps to `Driver` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxdriver` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * another method, use Docker plugin discovery to retrieve the driver name. This parameter maps + * to `Driver` in the docker container create command and the `xxdriver` option to docker volume + * create. */ override fun driver(driver: String) { cdkBuilder.driver(driver) @@ -8150,13 +7327,8 @@ public open class CfnTaskDefinition( /** * @param driverOpts A map of Docker driver-specific options passed through. - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. */ override fun driverOpts(driverOpts: IResolvable) { cdkBuilder.driverOpts(driverOpts.let(IResolvable.Companion::unwrap)) @@ -8164,13 +7336,8 @@ public open class CfnTaskDefinition( /** * @param driverOpts A map of Docker driver-specific options passed through. - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. */ override fun driverOpts(driverOpts: Map) { cdkBuilder.driverOpts(driverOpts) @@ -8178,13 +7345,8 @@ public open class CfnTaskDefinition( /** * @param labels Custom metadata to add to your Docker volume. - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. */ override fun labels(labels: IResolvable) { cdkBuilder.labels(labels.let(IResolvable.Companion::unwrap)) @@ -8192,13 +7354,8 @@ public open class CfnTaskDefinition( /** * @param labels Custom metadata to add to your Docker volume. - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. */ override fun labels(labels: Map) { cdkBuilder.labels(labels) @@ -8221,7 +7378,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty, - ) : CdkObject(cdkObject), DockerVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + DockerVolumeConfigurationProperty { /** * If this value is `true` , the Docker volume is created if it doesn't already exist. * @@ -8239,16 +7397,9 @@ public open class CfnTaskDefinition( * The driver value must match the driver name provided by Docker because it is used for task * placement. If the driver was installed using the Docker plugin CLI, use `docker plugin ls` to * retrieve the driver name from your container instance. If the driver was installed using - * another method, use Docker plugin discovery to retrieve the driver name. For more information, - * see [Docker plugin - * discovery](https://docs.aws.amazon.com/https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery) - * . This parameter maps to `Driver` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxdriver` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * another method, use Docker plugin discovery to retrieve the driver name. This parameter maps + * to `Driver` in the docker container create command and the `xxdriver` option to docker volume + * create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driver) */ @@ -8257,13 +7408,8 @@ public open class CfnTaskDefinition( /** * A map of Docker driver-specific options passed through. * - * This parameter maps to `DriverOpts` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxopt` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `DriverOpts` in the docker create-volume command and the `xxopt` + * option to docker volume create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-driveropts) */ @@ -8272,13 +7418,8 @@ public open class CfnTaskDefinition( /** * Custom metadata to add to your Docker volume. * - * This parameter maps to `Labels` in the [Create a - * volume](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `xxlabel` - * option to [docker volume - * create](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/commandline/volume_create/) - * . + * This parameter maps to `Labels` in the docker container create command and the `xxlabel` + * option to docker volume create. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-labels) */ @@ -8556,7 +7697,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty, - ) : CdkObject(cdkObject), EFSVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + EFSVolumeConfigurationProperty { /** * The authorization configuration details for the Amazon EFS file system. * @@ -8741,7 +7883,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.EnvironmentFileProperty, - ) : CdkObject(cdkObject), EnvironmentFileProperty { + ) : CdkObject(cdkObject), + EnvironmentFileProperty { /** * The file type to use. * @@ -8848,7 +7991,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.EphemeralStorageProperty, - ) : CdkObject(cdkObject), EphemeralStorageProperty { + ) : CdkObject(cdkObject), + EphemeralStorageProperty { /** * The total amount, in GiB, of ephemeral storage to set for the task. * @@ -8878,6 +8022,16 @@ public open class CfnTaskDefinition( } /** + * The authorization configuration details for Amazon FSx for Windows File Server file system. + * + * See + * [FSxWindowsFileServerVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FSxWindowsFileServerVolumeConfiguration.html) + * in the *Amazon ECS API Reference* . + * + * For more information and the input format, see [Amazon FSx for Windows File Server + * Volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the + * *Amazon Elastic Container Service Developer Guide* . + * * Example: * * ``` @@ -8895,11 +8049,21 @@ public open class CfnTaskDefinition( */ public interface FSxAuthorizationConfigProperty { /** + * The authorization credential option to use. + * + * The authorization credential options can be provided using either the Amazon Resource Name + * (ARN) of an AWS Secrets Manager secret or SSM Parameter Store parameter. The ARN refers to the + * stored credentials. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-fsxauthorizationconfig.html#cfn-ecs-taskdefinition-fsxauthorizationconfig-credentialsparameter) */ public fun credentialsParameter(): String /** + * A fully qualified domain name hosted by an [AWS Directory + * Service](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) + * Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-fsxauthorizationconfig.html#cfn-ecs-taskdefinition-fsxauthorizationconfig-domain) */ public fun domain(): String @@ -8910,12 +8074,17 @@ public open class CfnTaskDefinition( @CdkDslMarker public interface Builder { /** - * @param credentialsParameter the value to be set. + * @param credentialsParameter The authorization credential option to use. + * The authorization credential options can be provided using either the Amazon Resource Name + * (ARN) of an AWS Secrets Manager secret or SSM Parameter Store parameter. The ARN refers to the + * stored credentials. */ public fun credentialsParameter(credentialsParameter: String) /** - * @param domain the value to be set. + * @param domain A fully qualified domain name hosted by an [AWS Directory + * Service](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) + * Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. */ public fun domain(domain: String) } @@ -8927,14 +8096,19 @@ public open class CfnTaskDefinition( software.amazon.awscdk.services.ecs.CfnTaskDefinition.FSxAuthorizationConfigProperty.builder() /** - * @param credentialsParameter the value to be set. + * @param credentialsParameter The authorization credential option to use. + * The authorization credential options can be provided using either the Amazon Resource Name + * (ARN) of an AWS Secrets Manager secret or SSM Parameter Store parameter. The ARN refers to the + * stored credentials. */ override fun credentialsParameter(credentialsParameter: String) { cdkBuilder.credentialsParameter(credentialsParameter) } /** - * @param domain the value to be set. + * @param domain A fully qualified domain name hosted by an [AWS Directory + * Service](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) + * Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. */ override fun domain(domain: String) { cdkBuilder.domain(domain) @@ -8947,13 +8121,24 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.FSxAuthorizationConfigProperty, - ) : CdkObject(cdkObject), FSxAuthorizationConfigProperty { + ) : CdkObject(cdkObject), + FSxAuthorizationConfigProperty { /** + * The authorization credential option to use. + * + * The authorization credential options can be provided using either the Amazon Resource Name + * (ARN) of an AWS Secrets Manager secret or SSM Parameter Store parameter. The ARN refers to the + * stored credentials. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-fsxauthorizationconfig.html#cfn-ecs-taskdefinition-fsxauthorizationconfig-credentialsparameter) */ override fun credentialsParameter(): String = unwrap(this).getCredentialsParameter() /** + * A fully qualified domain name hosted by an [AWS Directory + * Service](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) + * Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-fsxauthorizationconfig.html#cfn-ecs-taskdefinition-fsxauthorizationconfig-domain) */ override fun domain(): String = unwrap(this).getDomain() @@ -9122,7 +8307,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.FSxWindowsFileServerVolumeConfigurationProperty, - ) : CdkObject(cdkObject), FSxWindowsFileServerVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + FSxWindowsFileServerVolumeConfigurationProperty { /** * The authorization configuration details for the Amazon FSx for Windows File Server file * system. @@ -9305,7 +8491,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.FirelensConfigurationProperty, - ) : CdkObject(cdkObject), FirelensConfigurationProperty { + ) : CdkObject(cdkObject), + FirelensConfigurationProperty { /** * The options to use when configuring the log router. * @@ -9355,8 +8542,7 @@ public open class CfnTaskDefinition( * * Health check parameters that are specified in a container definition override any Docker health * checks that exist in the container image (such as those specified in a parent image or from the - * image's Dockerfile). This configuration maps to the `HEALTHCHECK` parameter of [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . + * image's Dockerfile). This configuration maps to the `HEALTHCHECK` parameter of docker run. * * * The Amazon ECS container agent only monitors and reports on the health checks specified in the @@ -9415,10 +8601,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-command) */ @@ -9489,10 +8672,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command */ public fun command(command: List) @@ -9512,10 +8692,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command */ public fun command(vararg command: String) @@ -9572,10 +8749,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command */ override fun command(command: List) { cdkBuilder.command(command) @@ -9597,10 +8771,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command */ override fun command(vararg command: String): Unit = command(command.toList()) @@ -9649,7 +8820,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.HealthCheckProperty, - ) : CdkObject(cdkObject), HealthCheckProperty { + ) : CdkObject(cdkObject), + HealthCheckProperty { /** * A string array representing the command that the container runs to determine if it is * healthy. @@ -9667,10 +8839,7 @@ public open class CfnTaskDefinition( * `CMD-SHELL, curl -f http://localhost/ || exit 1` * * An exit code of 0 indicates success, and non-zero exit code indicates failure. For more - * information, see `HealthCheck` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) . + * information, see `HealthCheck` in the docker container create command * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-command) */ @@ -9814,7 +8983,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.HostEntryProperty, - ) : CdkObject(cdkObject), HostEntryProperty { + ) : CdkObject(cdkObject), + HostEntryProperty { /** * The hostname to use in the `/etc/hosts` entry. * @@ -9930,7 +9100,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.HostVolumePropertiesProperty, - ) : CdkObject(cdkObject), HostVolumePropertiesProperty { + ) : CdkObject(cdkObject), + HostVolumePropertiesProperty { /** * When the `host` parameter is used, specify a `sourcePath` to declare the path on the host * container instance that's presented to the container. @@ -10056,7 +9227,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.InferenceAcceleratorProperty, - ) : CdkObject(cdkObject), InferenceAcceleratorProperty { + ) : CdkObject(cdkObject), + InferenceAcceleratorProperty { /** * The Elastic Inference accelerator device name. * @@ -10098,11 +9270,7 @@ public open class CfnTaskDefinition( * The Linux capabilities to add or remove from the default Docker configuration for a container * defined in the task definition. * - * For more information about the default capabilities and the non-default available capabilities, - * see [Runtime privilege and Linux - * capabilities](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) - * in the *Docker run reference* . For more detailed information about these Linux capabilities, see - * the + * For more detailed information about these Linux capabilities, see the * [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) * Linux manual page. * @@ -10125,13 +9293,8 @@ public open class CfnTaskDefinition( * The Linux capabilities for the container that have been added to the default configuration * provided by Docker. * - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--cap-add` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10152,13 +9315,8 @@ public open class CfnTaskDefinition( * The Linux capabilities for the container that have been removed from the default * configuration provided by Docker. * - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--cap-drop` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the `--cap-drop` + * option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10179,13 +9337,8 @@ public open class CfnTaskDefinition( /** * @param add The Linux capabilities for the container that have been added to the default * configuration provided by Docker. - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-add` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10204,13 +9357,8 @@ public open class CfnTaskDefinition( /** * @param add The Linux capabilities for the container that have been added to the default * configuration provided by Docker. - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-add` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10229,13 +9377,8 @@ public open class CfnTaskDefinition( /** * @param drop The Linux capabilities for the container that have been removed from the * default configuration provided by Docker. - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-drop` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the + * `--cap-drop` option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10250,13 +9393,8 @@ public open class CfnTaskDefinition( /** * @param drop The Linux capabilities for the container that have been removed from the * default configuration provided by Docker. - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-drop` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the + * `--cap-drop` option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10274,16 +9412,11 @@ public open class CfnTaskDefinition( software.amazon.awscdk.services.ecs.CfnTaskDefinition.KernelCapabilitiesProperty.Builder = software.amazon.awscdk.services.ecs.CfnTaskDefinition.KernelCapabilitiesProperty.builder() - /** - * @param add The Linux capabilities for the container that have been added to the default - * configuration provided by Docker. - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-add` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + /** + * @param add The Linux capabilities for the container that have been added to the default + * configuration provided by Docker. + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10304,13 +9437,8 @@ public open class CfnTaskDefinition( /** * @param add The Linux capabilities for the container that have been added to the default * configuration provided by Docker. - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-add` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10329,13 +9457,8 @@ public open class CfnTaskDefinition( /** * @param drop The Linux capabilities for the container that have been removed from the * default configuration provided by Docker. - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-drop` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the + * `--cap-drop` option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10352,13 +9475,8 @@ public open class CfnTaskDefinition( /** * @param drop The Linux capabilities for the container that have been removed from the * default configuration provided by Docker. - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-drop` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the + * `--cap-drop` option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10377,18 +9495,14 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.KernelCapabilitiesProperty, - ) : CdkObject(cdkObject), KernelCapabilitiesProperty { + ) : CdkObject(cdkObject), + KernelCapabilitiesProperty { /** * The Linux capabilities for the container that have been added to the default configuration * provided by Docker. * - * This parameter maps to `CapAdd` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-add` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapAdd` in the docker container create command and the `--cap-add` + * option to docker run. * * * Tasks launched on AWS Fargate only support adding the `SYS_PTRACE` kernel capability. @@ -10410,13 +9524,8 @@ public open class CfnTaskDefinition( * The Linux capabilities for the container that have been removed from the default * configuration provided by Docker. * - * This parameter maps to `CapDrop` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the - * `--cap-drop` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `CapDrop` in the docker container create command and the + * `--cap-drop` option to docker run. * * Valid values: `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | * "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | @@ -10530,7 +9639,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.KeyValuePairProperty, - ) : CdkObject(cdkObject), KeyValuePairProperty { + ) : CdkObject(cdkObject), + KeyValuePairProperty { /** * The name of the key-value pair. * @@ -10621,13 +9731,8 @@ public open class CfnTaskDefinition( /** * Any host devices to expose to the container. * - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10641,12 +9746,10 @@ public open class CfnTaskDefinition( /** * Run an `init` process inside the container that forwards signals and reaps processes. * - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote + * API version on your container instance, log in to your container instance and run the following + * command: `sudo docker version --format '{{.Server.APIVersion}}'` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-initprocessenabled) */ @@ -10655,9 +9758,8 @@ public open class CfnTaskDefinition( /** * The total amount of swap memory (in MiB) a container can use. * - * This parameter will be translated to the `--memory-swap` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * where the value would be the sum of the container memory plus the `maxSwap` value. + * This parameter will be translated to the `--memory-swap` option to docker run where the value + * would be the sum of the container memory plus the `maxSwap` value. * * If a `maxSwap` value of `0` is specified, the container will not use swap. Accepted values * are `0` or any positive integer. If the `maxSwap` parameter is omitted, the container will use @@ -10678,9 +9780,7 @@ public open class CfnTaskDefinition( /** * The value for the size (in MiB) of the `/dev/shm` volume. * - * This parameter maps to the `--shm-size` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--shm-size` option to docker run. * * * If you are using tasks that use the Fargate launch type, the `sharedMemorySize` parameter is @@ -10698,9 +9798,7 @@ public open class CfnTaskDefinition( * `swappiness` value of `100` will cause pages to be swapped very aggressively. Accepted values * are whole numbers between `0` and `100` . If the `swappiness` parameter is not specified, a * default value of `60` is used. If a value is not specified for `maxSwap` then this parameter is - * ignored. This parameter maps to the `--memory-swappiness` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * ignored. This parameter maps to the `--memory-swappiness` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `swappiness` parameter isn't @@ -10716,9 +9814,7 @@ public open class CfnTaskDefinition( /** * The container path, mount options, and size (in MiB) of the tmpfs mount. * - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -10765,13 +9861,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10781,13 +9872,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10797,13 +9883,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10814,32 +9895,27 @@ public open class CfnTaskDefinition( /** * @param initProcessEnabled Run an `init` process inside the container that forwards signals * and reaps processes. - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker + * Remote API version on your container instance, log in to your container instance and run the + * following command: `sudo docker version --format '{{.Server.APIVersion}}'` */ public fun initProcessEnabled(initProcessEnabled: Boolean) /** * @param initProcessEnabled Run an `init` process inside the container that forwards signals * and reaps processes. - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker + * Remote API version on your container instance, log in to your container instance and run the + * following command: `sudo docker version --format '{{.Server.APIVersion}}'` */ public fun initProcessEnabled(initProcessEnabled: IResolvable) /** * @param maxSwap The total amount of swap memory (in MiB) a container can use. - * This parameter will be translated to the `--memory-swap` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * where the value would be the sum of the container memory plus the `maxSwap` value. + * This parameter will be translated to the `--memory-swap` option to docker run where the + * value would be the sum of the container memory plus the `maxSwap` value. * * If a `maxSwap` value of `0` is specified, the container will not use swap. Accepted values * are `0` or any positive integer. If the `maxSwap` parameter is omitted, the container will use @@ -10856,9 +9932,7 @@ public open class CfnTaskDefinition( /** * @param sharedMemorySize The value for the size (in MiB) of the `/dev/shm` volume. - * This parameter maps to the `--shm-size` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--shm-size` option to docker run. * * * If you are using tasks that use the Fargate launch type, the `sharedMemorySize` parameter @@ -10872,9 +9946,8 @@ public open class CfnTaskDefinition( * A `swappiness` value of `100` will cause pages to be swapped very aggressively. Accepted * values are whole numbers between `0` and `100` . If the `swappiness` parameter is not * specified, a default value of `60` is used. If a value is not specified for `maxSwap` then - * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to docker + * run. * * * If you're using tasks that use the Fargate launch type, the `swappiness` parameter isn't @@ -10886,9 +9959,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -10898,9 +9969,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -10910,9 +9979,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -10962,13 +10029,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10980,13 +10042,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -10998,13 +10055,8 @@ public open class CfnTaskDefinition( /** * @param devices Any host devices to expose to the container. - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -11015,12 +10067,10 @@ public open class CfnTaskDefinition( /** * @param initProcessEnabled Run an `init` process inside the container that forwards signals * and reaps processes. - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker + * Remote API version on your container instance, log in to your container instance and run the + * following command: `sudo docker version --format '{{.Server.APIVersion}}'` */ override fun initProcessEnabled(initProcessEnabled: Boolean) { cdkBuilder.initProcessEnabled(initProcessEnabled) @@ -11029,12 +10079,10 @@ public open class CfnTaskDefinition( /** * @param initProcessEnabled Run an `init` process inside the container that forwards signals * and reaps processes. - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker + * Remote API version on your container instance, log in to your container instance and run the + * following command: `sudo docker version --format '{{.Server.APIVersion}}'` */ override fun initProcessEnabled(initProcessEnabled: IResolvable) { cdkBuilder.initProcessEnabled(initProcessEnabled.let(IResolvable.Companion::unwrap)) @@ -11042,9 +10090,8 @@ public open class CfnTaskDefinition( /** * @param maxSwap The total amount of swap memory (in MiB) a container can use. - * This parameter will be translated to the `--memory-swap` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * where the value would be the sum of the container memory plus the `maxSwap` value. + * This parameter will be translated to the `--memory-swap` option to docker run where the + * value would be the sum of the container memory plus the `maxSwap` value. * * If a `maxSwap` value of `0` is specified, the container will not use swap. Accepted values * are `0` or any positive integer. If the `maxSwap` parameter is omitted, the container will use @@ -11063,9 +10110,7 @@ public open class CfnTaskDefinition( /** * @param sharedMemorySize The value for the size (in MiB) of the `/dev/shm` volume. - * This parameter maps to the `--shm-size` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--shm-size` option to docker run. * * * If you are using tasks that use the Fargate launch type, the `sharedMemorySize` parameter @@ -11081,9 +10126,8 @@ public open class CfnTaskDefinition( * A `swappiness` value of `100` will cause pages to be swapped very aggressively. Accepted * values are whole numbers between `0` and `100` . If the `swappiness` parameter is not * specified, a default value of `60` is used. If a value is not specified for `maxSwap` then - * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to docker + * run. * * * If you're using tasks that use the Fargate launch type, the `swappiness` parameter isn't @@ -11097,9 +10141,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -11111,9 +10153,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -11125,9 +10165,7 @@ public open class CfnTaskDefinition( /** * @param tmpfs The container path, mount options, and size (in MiB) of the tmpfs mount. - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -11142,7 +10180,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.LinuxParametersProperty, - ) : CdkObject(cdkObject), LinuxParametersProperty { + ) : CdkObject(cdkObject), + LinuxParametersProperty { /** * The Linux capabilities for the container that are added to or dropped from the default * configuration provided by Docker. @@ -11159,13 +10198,8 @@ public open class CfnTaskDefinition( /** * Any host devices to expose to the container. * - * This parameter maps to `Devices` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--device` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to `Devices` in the docker container create command and the `--device` + * option to docker run. * * * If you're using tasks that use the Fargate launch type, the `devices` parameter isn't @@ -11179,12 +10213,10 @@ public open class CfnTaskDefinition( /** * Run an `init` process inside the container that forwards signals and reaps processes. * - * This parameter maps to the `--init` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . This parameter requires version 1.25 of the Docker Remote API or greater on your container - * instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: `sudo docker version --format - * '{{.Server.APIVersion}}'` + * This parameter maps to the `--init` option to docker run. This parameter requires version + * 1.25 of the Docker Remote API or greater on your container instance. To check the Docker + * Remote API version on your container instance, log in to your container instance and run the + * following command: `sudo docker version --format '{{.Server.APIVersion}}'` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-initprocessenabled) */ @@ -11193,9 +10225,8 @@ public open class CfnTaskDefinition( /** * The total amount of swap memory (in MiB) a container can use. * - * This parameter will be translated to the `--memory-swap` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * where the value would be the sum of the container memory plus the `maxSwap` value. + * This parameter will be translated to the `--memory-swap` option to docker run where the + * value would be the sum of the container memory plus the `maxSwap` value. * * If a `maxSwap` value of `0` is specified, the container will not use swap. Accepted values * are `0` or any positive integer. If the `maxSwap` parameter is omitted, the container will use @@ -11216,9 +10247,7 @@ public open class CfnTaskDefinition( /** * The value for the size (in MiB) of the `/dev/shm` volume. * - * This parameter maps to the `--shm-size` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--shm-size` option to docker run. * * * If you are using tasks that use the Fargate launch type, the `sharedMemorySize` parameter @@ -11236,9 +10265,8 @@ public open class CfnTaskDefinition( * A `swappiness` value of `100` will cause pages to be swapped very aggressively. Accepted * values are whole numbers between `0` and `100` . If the `swappiness` parameter is not * specified, a default value of `60` is used. If a value is not specified for `maxSwap` then - * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * this parameter is ignored. This parameter maps to the `--memory-swappiness` option to docker + * run. * * * If you're using tasks that use the Fargate launch type, the `swappiness` parameter isn't @@ -11254,9 +10282,7 @@ public open class CfnTaskDefinition( /** * The container path, mount options, and size (in MiB) of the tmpfs mount. * - * This parameter maps to the `--tmpfs` option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . + * This parameter maps to the `--tmpfs` option to docker run. * * * If you're using tasks that use the Fargate launch type, the `tmpfs` parameter isn't @@ -11318,15 +10344,15 @@ public open class CfnTaskDefinition( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , `fluentd` - * , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and `awsfirelens` . + * , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in + * the *Amazon Elastic Container Service Developer Guide* . * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent @@ -11375,17 +10401,16 @@ public open class CfnTaskDefinition( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . - * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -11450,17 +10475,16 @@ public open class CfnTaskDefinition( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . - * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -11531,7 +10555,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** * The log driver to use for the container. * @@ -11539,17 +10564,16 @@ public open class CfnTaskDefinition( * `awsfirelens` . * * For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs` , - * `fluentd` , `gelf` , `json-file` , `journald` , `logentries` , `syslog` , `splunk` , and - * `awsfirelens` . + * `fluentd` , `gelf` , `json-file` , `journald` , `syslog` , `splunk` , and `awsfirelens` . * - * For more information about using the `awslogs` log driver, see [Using the awslogs log - * driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the - * *Amazon Elastic Container Service Developer Guide* . - * - * For more information about using the `awsfirelens` log driver, see [Custom log - * routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in + * For more information about using the `awslogs` log driver, see [Send Amazon ECS logs to + * CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * For more information about using the `awsfirelens` log driver, see [Send Amazon ECS logs to + * an AWS service or AWS + * Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) . + * * * If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent * project that's [available on @@ -11725,7 +10749,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.MountPointProperty, - ) : CdkObject(cdkObject), MountPointProperty { + ) : CdkObject(cdkObject), + MountPointProperty { /** * The path on the container to mount the host volume at. * @@ -12253,7 +11278,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.PortMappingProperty, - ) : CdkObject(cdkObject), PortMappingProperty { + ) : CdkObject(cdkObject), + PortMappingProperty { /** * The application protocol that's used for the port mapping. * @@ -12678,7 +11704,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.ProxyConfigurationProperty, - ) : CdkObject(cdkObject), ProxyConfigurationProperty { + ) : CdkObject(cdkObject), + ProxyConfigurationProperty { /** * The name of the container that will serve as the App Mesh proxy. * @@ -12814,7 +11841,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.RepositoryCredentialsProperty, - ) : CdkObject(cdkObject), RepositoryCredentialsProperty { + ) : CdkObject(cdkObject), + RepositoryCredentialsProperty { /** * The Amazon Resource Name (ARN) of the secret containing the private repository credentials. * @@ -12876,8 +11904,6 @@ public open class CfnTaskDefinition( /** * The type of resource to assign to a container. * - * The supported values are `GPU` or `InferenceAccelerator` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-resourcerequirement.html#cfn-ecs-taskdefinition-resourcerequirement-type) */ public fun type(): String @@ -12885,12 +11911,12 @@ public open class CfnTaskDefinition( /** * The value for the specified resource type. * - * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS - * container agent reserves for the container. The number of GPUs that's reserved for all - * containers in a task can't exceed the number of available GPUs on the container instance that - * the task is launched on. + * When the type is `GPU` , the value is the number of physical `GPUs` the Amazon ECS container + * agent reserves for the container. The number of GPUs that's reserved for all containers in a + * task can't exceed the number of available GPUs on the container instance that the task is + * launched on. * - * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an + * When the type is `InferenceAccelerator` , the `value` matches the `deviceName` for an * [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) * specified in a task definition. * @@ -12905,18 +11931,17 @@ public open class CfnTaskDefinition( public interface Builder { /** * @param type The type of resource to assign to a container. - * The supported values are `GPU` or `InferenceAccelerator` . */ public fun type(type: String) /** * @param value The value for the specified resource type. - * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS + * When the type is `GPU` , the value is the number of physical `GPUs` the Amazon ECS * container agent reserves for the container. The number of GPUs that's reserved for all * containers in a task can't exceed the number of available GPUs on the container instance that * the task is launched on. * - * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an + * When the type is `InferenceAccelerator` , the `value` matches the `deviceName` for an * [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) * specified in a task definition. */ @@ -12931,7 +11956,6 @@ public open class CfnTaskDefinition( /** * @param type The type of resource to assign to a container. - * The supported values are `GPU` or `InferenceAccelerator` . */ override fun type(type: String) { cdkBuilder.type(type) @@ -12939,12 +11963,12 @@ public open class CfnTaskDefinition( /** * @param value The value for the specified resource type. - * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS + * When the type is `GPU` , the value is the number of physical `GPUs` the Amazon ECS * container agent reserves for the container. The number of GPUs that's reserved for all * containers in a task can't exceed the number of available GPUs on the container instance that * the task is launched on. * - * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an + * When the type is `InferenceAccelerator` , the `value` matches the `deviceName` for an * [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) * specified in a task definition. */ @@ -12959,12 +11983,11 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.ResourceRequirementProperty, - ) : CdkObject(cdkObject), ResourceRequirementProperty { + ) : CdkObject(cdkObject), + ResourceRequirementProperty { /** * The type of resource to assign to a container. * - * The supported values are `GPU` or `InferenceAccelerator` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-resourcerequirement.html#cfn-ecs-taskdefinition-resourcerequirement-type) */ override fun type(): String = unwrap(this).getType() @@ -12972,12 +11995,12 @@ public open class CfnTaskDefinition( /** * The value for the specified resource type. * - * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS + * When the type is `GPU` , the value is the number of physical `GPUs` the Amazon ECS * container agent reserves for the container. The number of GPUs that's reserved for all * containers in a task can't exceed the number of available GPUs on the container instance that * the task is launched on. * - * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an + * When the type is `InferenceAccelerator` , the `value` matches the `deviceName` for an * [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) * specified in a task definition. * @@ -13004,6 +12027,230 @@ public open class CfnTaskDefinition( } } + /** + * You can enable a restart policy for each container defined in your task definition, to overcome + * transient failures faster and maintain task availability. + * + * When you enable a restart policy for a container, Amazon ECS can restart the container if it + * exits, without needing to replace the task. For more information, see [Restart individual + * containers in Amazon ECS tasks with container restart + * policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + * in the *Amazon Elastic Container Service Developer Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ecs.*; + * RestartPolicyProperty restartPolicyProperty = RestartPolicyProperty.builder() + * .enabled(false) + * .ignoredExitCodes(List.of(123)) + * .restartAttemptPeriod(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html) + */ + public interface RestartPolicyProperty { + /** + * Specifies whether a restart policy is enabled for the container. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-enabled) + */ + public fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * A list of exit codes that Amazon ECS will ignore and not attempt a restart on. + * + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not ignore + * any exit codes. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-ignoredexitcodes) + */ + public fun ignoredExitCodes(): Any? = unwrap(this).getIgnoredExitCodes() + + /** + * A period of time (in seconds) that the container must run for before a restart can be + * attempted. + * + * A container can be restarted only once every `restartAttemptPeriod` seconds. If a container + * isn't able to run for this time period and exits early, it will not be restarted. You can set a + * minimum `restartAttemptPeriod` of 60 seconds and a maximum `restartAttemptPeriod` of 1800 + * seconds. By default, a container must run for 300 seconds before it can be restarted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-restartattemptperiod) + */ + public fun restartAttemptPeriod(): Number? = unwrap(this).getRestartAttemptPeriod() + + /** + * A builder for [RestartPolicyProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabled Specifies whether a restart policy is enabled for the container. + */ + public fun enabled(enabled: Boolean) + + /** + * @param enabled Specifies whether a restart policy is enabled for the container. + */ + public fun enabled(enabled: IResolvable) + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + public fun ignoredExitCodes(ignoredExitCodes: IResolvable) + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + public fun ignoredExitCodes(ignoredExitCodes: List) + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + public fun ignoredExitCodes(vararg ignoredExitCodes: Number) + + /** + * @param restartAttemptPeriod A period of time (in seconds) that the container must run for + * before a restart can be attempted. + * A container can be restarted only once every `restartAttemptPeriod` seconds. If a container + * isn't able to run for this time period and exits early, it will not be restarted. You can set + * a minimum `restartAttemptPeriod` of 60 seconds and a maximum `restartAttemptPeriod` of 1800 + * seconds. By default, a container must run for 300 seconds before it can be restarted. + */ + public fun restartAttemptPeriod(restartAttemptPeriod: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty.Builder = + software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty.builder() + + /** + * @param enabled Specifies whether a restart policy is enabled for the container. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param enabled Specifies whether a restart policy is enabled for the container. + */ + override fun enabled(enabled: IResolvable) { + cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + override fun ignoredExitCodes(ignoredExitCodes: IResolvable) { + cdkBuilder.ignoredExitCodes(ignoredExitCodes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + override fun ignoredExitCodes(ignoredExitCodes: List) { + cdkBuilder.ignoredExitCodes(ignoredExitCodes) + } + + /** + * @param ignoredExitCodes A list of exit codes that Amazon ECS will ignore and not attempt a + * restart on. + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + */ + override fun ignoredExitCodes(vararg ignoredExitCodes: Number): Unit = + ignoredExitCodes(ignoredExitCodes.toList()) + + /** + * @param restartAttemptPeriod A period of time (in seconds) that the container must run for + * before a restart can be attempted. + * A container can be restarted only once every `restartAttemptPeriod` seconds. If a container + * isn't able to run for this time period and exits early, it will not be restarted. You can set + * a minimum `restartAttemptPeriod` of 60 seconds and a maximum `restartAttemptPeriod` of 1800 + * seconds. By default, a container must run for 300 seconds before it can be restarted. + */ + override fun restartAttemptPeriod(restartAttemptPeriod: Number) { + cdkBuilder.restartAttemptPeriod(restartAttemptPeriod) + } + + public fun build(): + software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty, + ) : CdkObject(cdkObject), + RestartPolicyProperty { + /** + * Specifies whether a restart policy is enabled for the container. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-enabled) + */ + override fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * A list of exit codes that Amazon ECS will ignore and not attempt a restart on. + * + * You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not + * ignore any exit codes. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-ignoredexitcodes) + */ + override fun ignoredExitCodes(): Any? = unwrap(this).getIgnoredExitCodes() + + /** + * A period of time (in seconds) that the container must run for before a restart can be + * attempted. + * + * A container can be restarted only once every `restartAttemptPeriod` seconds. If a container + * isn't able to run for this time period and exits early, it will not be restarted. You can set + * a minimum `restartAttemptPeriod` of 60 seconds and a maximum `restartAttemptPeriod` of 1800 + * seconds. By default, a container must run for 300 seconds before it can be restarted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-restartpolicy.html#cfn-ecs-taskdefinition-restartpolicy-restartattemptperiod) + */ + override fun restartAttemptPeriod(): Number? = unwrap(this).getRestartAttemptPeriod() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RestartPolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty): + RestartPolicyProperty = CdkObjectWrappers.wrap(cdkObject) as? RestartPolicyProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RestartPolicyProperty): + software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty + } + } + /** * Information about the platform for the Amazon ECS service or task. * @@ -13092,7 +12339,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.RuntimePlatformProperty, - ) : CdkObject(cdkObject), RuntimePlatformProperty { + ) : CdkObject(cdkObject), + RuntimePlatformProperty { /** * The CPU architecture. * @@ -13261,7 +12509,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.SecretProperty, - ) : CdkObject(cdkObject), SecretProperty { + ) : CdkObject(cdkObject), + SecretProperty { /** * The name of the secret. * @@ -13315,14 +12564,9 @@ public open class CfnTaskDefinition( /** * A list of namespaced kernel parameters to set in the container. * - * This parameter maps to `Sysctls` in the [Create a - * container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - * section of the [Docker Remote - * API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the `--sysctl` - * option to [docker - * run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration) - * . For example, you can configure `net.ipv4.tcp_keepalive_time` setting to maintain longer lived - * connections. + * This parameter maps to `Sysctls` in the docker container create command and the `--sysctl` + * option to docker run. For example, you can configure `net.ipv4.tcp_keepalive_time` setting to + * maintain longer lived connections. * * We don't recommend that you specify network-related `systemControls` parameters for multiple * containers in a single task that also uses either the `awsvpc` or `host` network mode. Doing this @@ -13443,7 +12687,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.SystemControlProperty, - ) : CdkObject(cdkObject), SystemControlProperty { + ) : CdkObject(cdkObject), + SystemControlProperty { /** * The namespaced kernel parameter to set a `value` for. * @@ -13584,7 +12829,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty, - ) : CdkObject(cdkObject), TaskDefinitionPlacementConstraintProperty { + ) : CdkObject(cdkObject), + TaskDefinitionPlacementConstraintProperty { /** * A cluster query language expression to apply to the constraint. * @@ -13756,7 +13002,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.TmpfsProperty, - ) : CdkObject(cdkObject), TmpfsProperty { + ) : CdkObject(cdkObject), + TmpfsProperty { /** * The absolute file path where the tmpfs volume is to be mounted. * @@ -13808,8 +13055,8 @@ public open class CfnTaskDefinition( * Amazon ECS tasks hosted on AWS Fargate use the default resource limit values set by the * operating system with the exception of the `nofile` resource limit parameter which AWS Fargate * overrides. The `nofile` resource limit sets a restriction on the number of open files that a - * container can use. The default `nofile` soft limit is `1024` and the default hard limit is `65535` - * . + * container can use. The default `nofile` soft limit is `65535` and the default hard limit is + * `65535` . * * You can specify the `ulimit` settings for a container in a task definition. * @@ -13832,6 +13079,9 @@ public open class CfnTaskDefinition( /** * The hard limit for the `ulimit` type. * + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-ulimit.html#cfn-ecs-taskdefinition-ulimit-hardlimit) */ public fun hardLimit(): Number @@ -13846,6 +13096,9 @@ public open class CfnTaskDefinition( /** * The soft limit for the `ulimit` type. * + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-ulimit.html#cfn-ecs-taskdefinition-ulimit-softlimit) */ public fun softLimit(): Number @@ -13857,6 +13110,8 @@ public open class CfnTaskDefinition( public interface Builder { /** * @param hardLimit The hard limit for the `ulimit` type. + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . */ public fun hardLimit(hardLimit: Number) @@ -13867,6 +13122,8 @@ public open class CfnTaskDefinition( /** * @param softLimit The soft limit for the `ulimit` type. + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . */ public fun softLimit(softLimit: Number) } @@ -13878,6 +13135,8 @@ public open class CfnTaskDefinition( /** * @param hardLimit The hard limit for the `ulimit` type. + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . */ override fun hardLimit(hardLimit: Number) { cdkBuilder.hardLimit(hardLimit) @@ -13892,6 +13151,8 @@ public open class CfnTaskDefinition( /** * @param softLimit The soft limit for the `ulimit` type. + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . */ override fun softLimit(softLimit: Number) { cdkBuilder.softLimit(softLimit) @@ -13903,10 +13164,14 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.UlimitProperty, - ) : CdkObject(cdkObject), UlimitProperty { + ) : CdkObject(cdkObject), + UlimitProperty { /** * The hard limit for the `ulimit` type. * + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-ulimit.html#cfn-ecs-taskdefinition-ulimit-hardlimit) */ override fun hardLimit(): Number = unwrap(this).getHardLimit() @@ -13921,6 +13186,9 @@ public open class CfnTaskDefinition( /** * The soft limit for the `ulimit` type. * + * The value can be specified in bytes, seconds, or as a count, depending on the `type` of the + * `ulimit` . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-ulimit.html#cfn-ecs-taskdefinition-ulimit-softlimit) */ override fun softLimit(): Number = unwrap(this).getSoftLimit() @@ -14042,7 +13310,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.VolumeFromProperty, - ) : CdkObject(cdkObject), VolumeFromProperty { + ) : CdkObject(cdkObject), + VolumeFromProperty { /** * If this value is `true` , the container has read-only access to the volume. * @@ -14582,7 +13851,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinition.VolumeProperty, - ) : CdkObject(cdkObject), VolumeProperty { + ) : CdkObject(cdkObject), + VolumeProperty { /** * Indicates whether the volume should be configured at launch time. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinitionProps.kt index 9fdceadb62..1c4f2fdda0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskDefinitionProps.kt @@ -125,6 +125,11 @@ import kotlin.jvm.JvmName * .type("type") * .value("value") * .build())) + * .restartPolicy(RestartPolicyProperty.builder() + * .enabled(false) + * .ignoredExitCodes(List.of(123)) + * .restartAttemptPeriod(123) + * .build()) * .secrets(List.of(SecretProperty.builder() * .name("name") * .valueFrom("valueFrom") @@ -246,6 +251,9 @@ public interface CfnTaskDefinitionProps { * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` CPU + * units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -279,10 +287,9 @@ public interface CfnTaskDefinitionProps { * The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container * agent permission to make AWS API calls on your behalf. * - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) in - * the *Amazon Elastic Container Service Developer Guide* . + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) + * in the *Amazon Elastic Container Service Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn) */ @@ -322,13 +329,10 @@ public interface CfnTaskDefinitionProps { * specified task share the same IPC resources. If `none` is specified, then IPC resources within the * containers of a task are private and not shared with other containers in a task or on the * container instance. If no value is specified, then the IPC resource namespace sharing depends on - * the Docker daemon setting on the container instance. For more information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -406,18 +410,16 @@ public interface CfnTaskDefinitionProps { * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the task - * definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, see + * [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode) */ public fun networkMode(): String? = unwrap(this).getNetworkMode() @@ -435,14 +437,10 @@ public interface CfnTaskDefinitionProps { * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -534,6 +532,11 @@ public interface CfnTaskDefinitionProps { * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) in * the *Amazon Elastic Container Service Developer Guide* . * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn) */ public fun taskRoleArn(): String? = unwrap(this).getTaskRoleArn() @@ -591,6 +594,9 @@ public interface CfnTaskDefinitionProps { * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` + * CPU units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -636,9 +642,8 @@ public interface CfnTaskDefinitionProps { /** * @param executionRoleArn The Amazon Resource Name (ARN) of the task execution role that grants * the Amazon ECS container agent permission to make AWS API calls on your behalf. - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) * in the *Amazon Elastic Container Service Developer Guide* . */ public fun executionRoleArn(executionRoleArn: String) @@ -684,14 +689,10 @@ public interface CfnTaskDefinitionProps { * containers within the specified task share the same IPC resources. If `none` is specified, then * IPC resources within the containers of a task are private and not shared with other containers * in a task or on the container instance. If no value is specified, then the IPC resource - * namespace sharing depends on the Docker daemon setting on the container instance. For more - * information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * namespace sharing depends on the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -763,17 +764,15 @@ public interface CfnTaskDefinitionProps { * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the - * task definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, + * see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. - * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . */ public fun networkMode(networkMode: String) @@ -789,14 +788,10 @@ public interface CfnTaskDefinitionProps { * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -951,6 +946,10 @@ public interface CfnTaskDefinitionProps { * code to use the feature. For more information, see [Windows IAM roles for * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) * in the *Amazon Elastic Container Service Developer Guide* . + * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. */ public fun taskRoleArn(taskRoleArn: String) @@ -1030,6 +1029,9 @@ public interface CfnTaskDefinitionProps { * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` + * CPU units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -1082,9 +1084,8 @@ public interface CfnTaskDefinitionProps { /** * @param executionRoleArn The Amazon Resource Name (ARN) of the task execution role that grants * the Amazon ECS container agent permission to make AWS API calls on your behalf. - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) * in the *Amazon Elastic Container Service Developer Guide* . */ override fun executionRoleArn(executionRoleArn: String) { @@ -1139,14 +1140,10 @@ public interface CfnTaskDefinitionProps { * containers within the specified task share the same IPC resources. If `none` is specified, then * IPC resources within the containers of a task are private and not shared with other containers * in a task or on the container instance. If no value is specified, then the IPC resource - * namespace sharing depends on the Docker daemon setting on the container instance. For more - * information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * namespace sharing depends on the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -1222,17 +1219,15 @@ public interface CfnTaskDefinitionProps { * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the - * task definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, + * see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. - * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . */ override fun networkMode(networkMode: String) { cdkBuilder.networkMode(networkMode) @@ -1250,14 +1245,10 @@ public interface CfnTaskDefinitionProps { * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -1435,6 +1426,10 @@ public interface CfnTaskDefinitionProps { * code to use the feature. For more information, see [Windows IAM roles for * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) * in the *Amazon Elastic Container Service Developer Guide* . + * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. */ override fun taskRoleArn(taskRoleArn: String) { cdkBuilder.taskRoleArn(taskRoleArn) @@ -1483,7 +1478,8 @@ public interface CfnTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskDefinitionProps, - ) : CdkObject(cdkObject), CfnTaskDefinitionProps { + ) : CdkObject(cdkObject), + CfnTaskDefinitionProps { /** * A list of container definitions in JSON format that describe the different containers that * make up your task. @@ -1503,6 +1499,9 @@ public interface CfnTaskDefinitionProps { * Fargate launch type, this field is required. You must use one of the following values. The value * that you choose determines your range of valid values for the `memory` parameter. * + * If you use the EC2 launch type, this field is optional. Supported values are between `128` + * CPU units ( `0.125` vCPUs) and `10240` CPU units ( `10` vCPUs). + * * The CPU units cannot be less than 1 vCPU when you use Windows containers on Fargate. * * * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) @@ -1537,9 +1536,8 @@ public interface CfnTaskDefinitionProps { * The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS * container agent permission to make AWS API calls on your behalf. * - * The task execution IAM role is required depending on the requirements of your task. For more - * information, see [Amazon ECS task execution IAM - * role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + * For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon + * ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) * in the *Amazon Elastic Container Service Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn) @@ -1581,14 +1579,10 @@ public interface CfnTaskDefinitionProps { * containers within the specified task share the same IPC resources. If `none` is specified, then * IPC resources within the containers of a task are private and not shared with other containers * in a task or on the container instance. If no value is specified, then the IPC resource - * namespace sharing depends on the Docker daemon setting on the container instance. For more - * information, see [IPC - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) - * in the *Docker run reference* . + * namespace sharing depends on the Docker daemon setting on the container instance. * * If the `host` IPC mode is used, be aware that there is a heightened risk of undesired IPC - * namespace expose. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * namespace expose. * * If you are setting namespaced kernel parameters using `systemControls` for the containers in * the task, the following will apply to your IPC resource namespace. For more information, see @@ -1667,18 +1661,16 @@ public interface CfnTaskDefinitionProps { * * * If the network mode is `awsvpc` , the task is allocated an elastic network interface, and you - * must specify a `NetworkConfiguration` value when you create a service or run a task with the - * task definition. For more information, see [Task + * must specify a + * [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + * value when you create a service or run a task with the task definition. For more information, + * see [Task * Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in * the *Amazon Elastic Container Service Developer Guide* . * * If the network mode is `host` , you cannot run multiple instantiations of the same task on a * single container instance when port mappings are used. * - * For more information, see [Network - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#network-settings) - * in the *Docker run reference* . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode) */ override fun networkMode(): String? = unwrap(this).getNetworkMode() @@ -1696,14 +1688,10 @@ public interface CfnTaskDefinitionProps { * If `task` is specified, all containers within the specified task share the same process * namespace. * - * If no value is specified, the default is a private namespace for each container. For more - * information, see [PID - * settings](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#pid-settings---pid) - * in the *Docker run reference* . + * If no value is specified, the default is a private namespace for each container. * * If the `host` PID mode is used, there's a heightened risk of undesired process namespace - * exposure. For more information, see [Docker - * security](https://docs.aws.amazon.com/https://docs.docker.com/engine/security/security/) . + * exposure. * * * This parameter is not supported for Windows containers. > This parameter is only supported @@ -1795,6 +1783,11 @@ public interface CfnTaskDefinitionProps { * tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) * in the *Amazon Elastic Container Service Developer Guide* . * + * + * String validation is done on the ECS side. If an invalid string value is given for + * `TaskRoleArn` , it may cause the Cloudformation job to hang. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn) */ override fun taskRoleArn(): String? = unwrap(this).getTaskRoleArn() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSet.kt index 4fd703c825..f7f1f516c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSet.kt @@ -35,7 +35,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * latest revision of a task definition. * * - * For information about the maximum number of task sets and otther quotas, see [Amazon ECS service + * For information about the maximum number of task sets and other quotas, see [Amazon ECS service * quotas](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html) in the * *Amazon Elastic Container Service Developer Guide* . * @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTaskSet( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -871,7 +873,8 @@ public open class CfnTaskSet( /** * An object representing the networking details for a task or service. * - * For example `awsvpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}` + * For example `awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}` + * . * * Example: * @@ -903,7 +906,7 @@ public open class CfnTaskSet( * The IDs of the security groups associated with the task or service. * * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -916,7 +919,7 @@ public open class CfnTaskSet( /** * The IDs of the subnets associated with the task or service. * - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -941,7 +944,7 @@ public open class CfnTaskSet( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -951,7 +954,7 @@ public open class CfnTaskSet( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -960,7 +963,7 @@ public open class CfnTaskSet( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -969,7 +972,7 @@ public open class CfnTaskSet( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -994,7 +997,7 @@ public open class CfnTaskSet( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -1006,7 +1009,7 @@ public open class CfnTaskSet( /** * @param securityGroups The IDs of the security groups associated with the task or service. * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -1016,7 +1019,7 @@ public open class CfnTaskSet( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -1027,7 +1030,7 @@ public open class CfnTaskSet( /** * @param subnets The IDs of the subnets associated with the task or service. - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -1040,7 +1043,8 @@ public open class CfnTaskSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet.AwsVpcConfigurationProperty, - ) : CdkObject(cdkObject), AwsVpcConfigurationProperty { + ) : CdkObject(cdkObject), + AwsVpcConfigurationProperty { /** * Whether the task's elastic network interface receives a public IP address. * @@ -1054,7 +1058,7 @@ public open class CfnTaskSet( * The IDs of the security groups associated with the task or service. * * If you don't specify a security group, the default security group for the VPC is used. - * There's a limit of 5 security groups that can be specified per `AwsVpcConfiguration` . + * There's a limit of 5 security groups that can be specified per `awsvpcConfiguration` . * * * All specified security groups must be from the same VPC. @@ -1067,7 +1071,7 @@ public open class CfnTaskSet( /** * The IDs of the subnets associated with the task or service. * - * There's a limit of 16 subnets that can be specified per `AwsVpcConfiguration` . + * There's a limit of 16 subnets that can be specified per `awsvpcConfiguration` . * * * All specified subnets must be from the same VPC. @@ -1280,7 +1284,8 @@ public open class CfnTaskSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet.LoadBalancerProperty, - ) : CdkObject(cdkObject), LoadBalancerProperty { + ) : CdkObject(cdkObject), + LoadBalancerProperty { /** * The name of the container (as it appears in a container definition) to associate with the * load balancer. @@ -1461,7 +1466,8 @@ public open class CfnTaskSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * The VPC subnets and security groups that are associated with a task. * @@ -1572,7 +1578,8 @@ public open class CfnTaskSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet.ScaleProperty, - ) : CdkObject(cdkObject), ScaleProperty { + ) : CdkObject(cdkObject), + ScaleProperty { /** * The unit of measure for the scale value. * @@ -1777,7 +1784,8 @@ public open class CfnTaskSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSet.ServiceRegistryProperty, - ) : CdkObject(cdkObject), ServiceRegistryProperty { + ) : CdkObject(cdkObject), + ServiceRegistryProperty { /** * The container name value to be used for your service discovery service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSetProps.kt index 3c60eb59b7..328ab5e2b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CfnTaskSetProps.kt @@ -550,7 +550,8 @@ public interface CfnTaskSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CfnTaskSetProps, - ) : CdkObject(cdkObject), CfnTaskSetProps { + ) : CdkObject(cdkObject), + CfnTaskSetProps { /** * The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to * create the task set in. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapNamespaceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapNamespaceOptions.kt index 85dd277ce9..967e82ef0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapNamespaceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapNamespaceOptions.kt @@ -139,7 +139,8 @@ public interface CloudMapNamespaceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CloudMapNamespaceOptions, - ) : CdkObject(cdkObject), CloudMapNamespaceOptions { + ) : CdkObject(cdkObject), + CloudMapNamespaceOptions { /** * The name of the namespace, such as example.com. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapOptions.kt index 962deaeb50..263a17f05a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CloudMapOptions.kt @@ -198,7 +198,8 @@ public interface CloudMapOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CloudMapOptions, - ) : CdkObject(cdkObject), CloudMapOptions { + ) : CdkObject(cdkObject), + CloudMapOptions { /** * The service discovery namespace for the Cloud Map service to attach to the ECS service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Cluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Cluster.kt index 3d4d2cc8c7..f680bc16ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Cluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Cluster.kt @@ -28,29 +28,32 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * import io.cloudshiftdev.awscdk.Tags; - * Vpc vpc = Vpc.Builder.create(this, "Vpc").maxAzs(1).build(); - * Cluster cluster = Cluster.Builder.create(this, "EcsCluster").vpc(vpc).build(); - * FargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, "TaskDef") - * .memoryLimitMiB(512) - * .cpu(256) + * IVpc vpc = Vpc.fromLookup(this, "Vpc", VpcLookupOptions.builder() + * .isDefault(true) + * .build()); + * Cluster cluster = Cluster.Builder.create(this, "ECSCluster").vpc(vpc).build(); + * TaskDefinition taskDefinition = TaskDefinition.Builder.create(this, "TD") + * .compatibility(Compatibility.FARGATE) + * .cpu("256") + * .memoryMiB("512") * .build(); - * taskDefinition.addContainer("WebContainer", ContainerDefinitionOptions.builder() - * .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) + * taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder() + * .image(ContainerImage.fromRegistry("foo/bar")) * .build()); - * Tags.of(taskDefinition).add("my-tag", "my-tag-value"); - * ScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, - * "ScheduledFargateTask") + * EcsRunTask runTask = EcsRunTask.Builder.create(this, "Run") + * .integrationPattern(IntegrationPattern.RUN_JOB) * .cluster(cluster) * .taskDefinition(taskDefinition) - * .schedule(Schedule.expression("rate(1 minute)")) - * .propagateTags(PropagatedTagSource.TASK_DEFINITION) + * .launchTarget(new EcsFargateLaunchTarget()) + * .cpu("1024") + * .memoryMiB("1048") * .build(); * ``` */ public open class Cluster( cdkObject: software.amazon.awscdk.services.ecs.Cluster, -) : Resource(cdkObject), ICluster { +) : Resource(cdkObject), + ICluster { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.Cluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterAttributes.kt index 9c7c6e7176..ad81f786c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterAttributes.kt @@ -261,7 +261,8 @@ public interface ClusterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ClusterAttributes, - ) : CdkObject(cdkObject), ClusterAttributes { + ) : CdkObject(cdkObject), + ClusterAttributes { /** * Autoscaling group added to the cluster if capacity is added. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterProps.kt index a3154040f6..8102f9c635 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ClusterProps.kt @@ -256,7 +256,8 @@ public interface ClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ClusterProps, - ) : CdkObject(cdkObject), ClusterProps { + ) : CdkObject(cdkObject), + ClusterProps { /** * The ec2 capacity to add to the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionAttributes.kt index f27303247c..c42cf77db8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionAttributes.kt @@ -132,7 +132,8 @@ public interface CommonTaskDefinitionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CommonTaskDefinitionAttributes, - ) : CdkObject(cdkObject), CommonTaskDefinitionAttributes { + ) : CdkObject(cdkObject), + CommonTaskDefinitionAttributes { /** * The IAM role that grants containers and Fargate agents permission to make AWS API calls on * your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionProps.kt index 9c23d4709c..dea99deba4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CommonTaskDefinitionProps.kt @@ -217,7 +217,8 @@ public interface CommonTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CommonTaskDefinitionProps, - ) : CdkObject(cdkObject), CommonTaskDefinitionProps { + ) : CdkObject(cdkObject), + CommonTaskDefinitionProps { /** * The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs * on your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionOptions.kt index 55493d7709..4c77e87a68 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionOptions.kt @@ -1030,7 +1030,8 @@ public interface ContainerDefinitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ContainerDefinitionOptions, - ) : CdkObject(cdkObject), ContainerDefinitionOptions { + ) : CdkObject(cdkObject), + ContainerDefinitionOptions { /** * The command that is passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionProps.kt index 02e2665f18..aba7aa434d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDefinitionProps.kt @@ -795,7 +795,8 @@ public interface ContainerDefinitionProps : ContainerDefinitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ContainerDefinitionProps, - ) : CdkObject(cdkObject), ContainerDefinitionProps { + ) : CdkObject(cdkObject), + ContainerDefinitionProps { /** * The command that is passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDependency.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDependency.kt index 9182c9c620..8168344a1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDependency.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerDependency.kt @@ -88,7 +88,8 @@ public interface ContainerDependency { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ContainerDependency, - ) : CdkObject(cdkObject), ContainerDependency { + ) : CdkObject(cdkObject), + ContainerDependency { /** * The state the container needs to be in to satisfy the dependency and proceed with startup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerImageConfig.kt index 996536d6f5..8f10e52fcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerImageConfig.kt @@ -99,7 +99,8 @@ public interface ContainerImageConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ContainerImageConfig, - ) : CdkObject(cdkObject), ContainerImageConfig { + ) : CdkObject(cdkObject), + ContainerImageConfig { /** * Specifies the name of the container image. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerMountPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerMountPoint.kt index 27ead7c838..179f841805 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerMountPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ContainerMountPoint.kt @@ -94,7 +94,8 @@ public interface ContainerMountPoint : BaseMountPoint { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ContainerMountPoint, - ) : CdkObject(cdkObject), ContainerMountPoint { + ) : CdkObject(cdkObject), + ContainerMountPoint { /** * The path on the container to mount the host volume at. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CpuUtilizationScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CpuUtilizationScalingProps.kt index 3d74711589..79d39052ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CpuUtilizationScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CpuUtilizationScalingProps.kt @@ -127,7 +127,8 @@ public interface CpuUtilizationScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CpuUtilizationScalingProps, - ) : CdkObject(cdkObject), CpuUtilizationScalingProps { + ) : CdkObject(cdkObject), + CpuUtilizationScalingProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CredentialSpecConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CredentialSpecConfig.kt index f10f3b6674..ebc56c017a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CredentialSpecConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/CredentialSpecConfig.kt @@ -74,7 +74,8 @@ public interface CredentialSpecConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.CredentialSpecConfig, - ) : CdkObject(cdkObject), CredentialSpecConfig { + ) : CdkObject(cdkObject), + CredentialSpecConfig { /** * Location of the CredSpec file. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmConfig.kt index 7ad5fb08de..942ae57dd1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmConfig.kt @@ -96,7 +96,8 @@ public interface DeploymentAlarmConfig : DeploymentAlarmOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.DeploymentAlarmConfig, - ) : CdkObject(cdkObject), DeploymentAlarmConfig { + ) : CdkObject(cdkObject), + DeploymentAlarmConfig { /** * List of alarm names to monitor during deployments. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmOptions.kt index 19dffac6f7..74268e0d44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentAlarmOptions.kt @@ -74,7 +74,8 @@ public interface DeploymentAlarmOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.DeploymentAlarmOptions, - ) : CdkObject(cdkObject), DeploymentAlarmOptions { + ) : CdkObject(cdkObject), + DeploymentAlarmOptions { /** * Default rollback on alarm. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentCircuitBreaker.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentCircuitBreaker.kt index 4b2a87c5fc..a1f7d14ebc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentCircuitBreaker.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentCircuitBreaker.kt @@ -81,7 +81,8 @@ public interface DeploymentCircuitBreaker { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.DeploymentCircuitBreaker, - ) : CdkObject(cdkObject), DeploymentCircuitBreaker { + ) : CdkObject(cdkObject), + DeploymentCircuitBreaker { /** * Whether to enable the deployment circuit breaker logic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentController.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentController.kt index 3df26a7829..22532dc2f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentController.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DeploymentController.kt @@ -74,7 +74,8 @@ public interface DeploymentController { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.DeploymentController, - ) : CdkObject(cdkObject), DeploymentController { + ) : CdkObject(cdkObject), + DeploymentController { /** * The deployment controller type to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Device.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Device.kt index 070b497d1b..141c9932cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Device.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Device.kt @@ -115,7 +115,8 @@ public interface Device { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Device, - ) : CdkObject(cdkObject), Device { + ) : CdkObject(cdkObject), + Device { /** * The path inside the container at which to expose the host device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DockerVolumeConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DockerVolumeConfiguration.kt index 8eb48960b7..f15db461e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DockerVolumeConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/DockerVolumeConfiguration.kt @@ -147,7 +147,8 @@ public interface DockerVolumeConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.DockerVolumeConfiguration, - ) : CdkObject(cdkObject), DockerVolumeConfiguration { + ) : CdkObject(cdkObject), + DockerVolumeConfiguration { /** * Specifies whether the Docker volume should be created if it does not already exist. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EBSTagSpecification.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EBSTagSpecification.kt index 57b5a8bb04..3fd54c06a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EBSTagSpecification.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EBSTagSpecification.kt @@ -86,7 +86,8 @@ public interface EBSTagSpecification { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.EBSTagSpecification, - ) : CdkObject(cdkObject), EBSTagSpecification { + ) : CdkObject(cdkObject), + EBSTagSpecification { /** * Specifies whether to propagate the tags from the task definition or the service to the task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2Service.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2Service.kt index 8fe815afab..2af57b9304 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2Service.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2Service.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Ec2Service( cdkObject: software.amazon.awscdk.services.ecs.Ec2Service, -) : BaseService(cdkObject), IEc2Service { +) : BaseService(cdkObject), + IEc2Service { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceAttributes.kt index 9bd45c1f92..f172fa9f9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceAttributes.kt @@ -98,7 +98,8 @@ public interface Ec2ServiceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Ec2ServiceAttributes, - ) : CdkObject(cdkObject), Ec2ServiceAttributes { + ) : CdkObject(cdkObject), + Ec2ServiceAttributes { /** * The cluster that hosts the service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceProps.kt index 6de2745191..4e9888fed0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2ServiceProps.kt @@ -696,7 +696,8 @@ public interface Ec2ServiceProps : BaseServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Ec2ServiceProps, - ) : CdkObject(cdkObject), Ec2ServiceProps { + ) : CdkObject(cdkObject), + Ec2ServiceProps { /** * Specifies whether the task's elastic network interface receives a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinition.kt index 8f63e7ea08..78a452104e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinition.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Ec2TaskDefinition( cdkObject: software.amazon.awscdk.services.ecs.Ec2TaskDefinition, -) : TaskDefinition(cdkObject), IEc2TaskDefinition { +) : TaskDefinition(cdkObject), + IEc2TaskDefinition { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.Ec2TaskDefinition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionAttributes.kt index aac041bd25..ec9e401102 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionAttributes.kt @@ -100,7 +100,8 @@ public interface Ec2TaskDefinitionAttributes : CommonTaskDefinitionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Ec2TaskDefinitionAttributes, - ) : CdkObject(cdkObject), Ec2TaskDefinitionAttributes { + ) : CdkObject(cdkObject), + Ec2TaskDefinitionAttributes { /** * The IAM role that grants containers and Fargate agents permission to make AWS API calls on * your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionProps.kt index 4dea432c8b..281f39ac32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ec2TaskDefinitionProps.kt @@ -291,7 +291,8 @@ public interface Ec2TaskDefinitionProps : CommonTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Ec2TaskDefinitionProps, - ) : CdkObject(cdkObject), Ec2TaskDefinitionProps { + ) : CdkObject(cdkObject), + Ec2TaskDefinitionProps { /** * The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs * on your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImage.kt index 57673cadbc..5ce410feff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImage.kt @@ -42,7 +42,8 @@ import kotlin.jvm.JvmName */ public open class EcsOptimizedImage( cdkObject: software.amazon.awscdk.services.ecs.EcsOptimizedImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { /** * Return the correct image. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImageOptions.kt index 670ea9d3f2..8670f9e67f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsOptimizedImageOptions.kt @@ -98,7 +98,8 @@ public interface EcsOptimizedImageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.EcsOptimizedImageOptions, - ) : CdkObject(cdkObject), EcsOptimizedImageOptions { + ) : CdkObject(cdkObject), + EcsOptimizedImageOptions { /** * Whether the AMI ID is cached to be stable between deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsTarget.kt index 809da271b6..33bd356f43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EcsTarget.kt @@ -145,7 +145,8 @@ public interface EcsTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.EcsTarget, - ) : CdkObject(cdkObject), EcsTarget { + ) : CdkObject(cdkObject), + EcsTarget { /** * The name of the container. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EfsVolumeConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EfsVolumeConfiguration.kt index ca5b661c86..c4340f84bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EfsVolumeConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EfsVolumeConfiguration.kt @@ -188,7 +188,8 @@ public interface EfsVolumeConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.EfsVolumeConfiguration, - ) : CdkObject(cdkObject), EfsVolumeConfiguration { + ) : CdkObject(cdkObject), + EfsVolumeConfiguration { /** * The authorization configuration details for the Amazon EFS file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EnvironmentFileConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EnvironmentFileConfig.kt index 808fae38f3..9436ca5746 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EnvironmentFileConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/EnvironmentFileConfig.kt @@ -95,7 +95,8 @@ public interface EnvironmentFileConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.EnvironmentFileConfig, - ) : CdkObject(cdkObject), EnvironmentFileConfig { + ) : CdkObject(cdkObject), + EnvironmentFileConfig { /** * The type of environment file. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandConfiguration.kt index 5aa05548ac..7d46039944 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandConfiguration.kt @@ -146,7 +146,8 @@ public interface ExecuteCommandConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExecuteCommandConfiguration, - ) : CdkObject(cdkObject), ExecuteCommandConfiguration { + ) : CdkObject(cdkObject), + ExecuteCommandConfiguration { /** * The AWS Key Management Service key ID to encrypt the data between the local client and the * container. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandLogConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandLogConfiguration.kt index 74004ec437..3ee92fc35c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandLogConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExecuteCommandLogConfiguration.kt @@ -171,7 +171,8 @@ public interface ExecuteCommandLogConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExecuteCommandLogConfiguration, - ) : CdkObject(cdkObject), ExecuteCommandLogConfiguration { + ) : CdkObject(cdkObject), + ExecuteCommandLogConfiguration { /** * Whether or not to enable encryption on the CloudWatch logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalService.kt index 8fcb92eb47..6740aa7004 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalService.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ExternalService( cdkObject: software.amazon.awscdk.services.ecs.ExternalService, -) : BaseService(cdkObject), IExternalService { +) : BaseService(cdkObject), + IExternalService { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceAttributes.kt index 919af43d12..33377302ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceAttributes.kt @@ -98,7 +98,8 @@ public interface ExternalServiceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExternalServiceAttributes, - ) : CdkObject(cdkObject), ExternalServiceAttributes { + ) : CdkObject(cdkObject), + ExternalServiceAttributes { /** * The cluster that hosts the service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceProps.kt index 3312cbb901..b2fc01650c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalServiceProps.kt @@ -480,7 +480,8 @@ public interface ExternalServiceProps : BaseServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExternalServiceProps, - ) : CdkObject(cdkObject), ExternalServiceProps { + ) : CdkObject(cdkObject), + ExternalServiceProps { /** * A list of Capacity Provider strategies used to place a service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinition.kt index 3e629d202a..6e38b99775 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinition.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ExternalTaskDefinition( cdkObject: software.amazon.awscdk.services.ecs.ExternalTaskDefinition, -) : TaskDefinition(cdkObject), IExternalTaskDefinition { +) : TaskDefinition(cdkObject), + IExternalTaskDefinition { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.ExternalTaskDefinition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionAttributes.kt index 56175e467a..d0fa90fc8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionAttributes.kt @@ -102,7 +102,8 @@ public interface ExternalTaskDefinitionAttributes : CommonTaskDefinitionAttribut private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExternalTaskDefinitionAttributes, - ) : CdkObject(cdkObject), ExternalTaskDefinitionAttributes { + ) : CdkObject(cdkObject), + ExternalTaskDefinitionAttributes { /** * The IAM role that grants containers and Fargate agents permission to make AWS API calls on * your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionProps.kt index 7317cb43fe..4e790e1d35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ExternalTaskDefinitionProps.kt @@ -190,7 +190,8 @@ public interface ExternalTaskDefinitionProps : CommonTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ExternalTaskDefinitionProps, - ) : CdkObject(cdkObject), ExternalTaskDefinitionProps { + ) : CdkObject(cdkObject), + ExternalTaskDefinitionProps { /** * The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs * on your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateService.kt index d71d685315..987858454f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateService.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FargateService( cdkObject: software.amazon.awscdk.services.ecs.FargateService, -) : BaseService(cdkObject), IFargateService { +) : BaseService(cdkObject), + IFargateService { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceAttributes.kt index 5eb3f478c9..ec0ecdc90c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceAttributes.kt @@ -98,7 +98,8 @@ public interface FargateServiceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FargateServiceAttributes, - ) : CdkObject(cdkObject), FargateServiceAttributes { + ) : CdkObject(cdkObject), + FargateServiceAttributes { /** * The cluster that hosts the service. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceProps.kt index 20e52e32fd..529606d694 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateServiceProps.kt @@ -593,7 +593,8 @@ public interface FargateServiceProps : BaseServiceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FargateServiceProps, - ) : CdkObject(cdkObject), FargateServiceProps { + ) : CdkObject(cdkObject), + FargateServiceProps { /** * Specifies whether the task's elastic network interface receives a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinition.kt index bf96fac311..1b9c154b95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinition.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FargateTaskDefinition( cdkObject: software.amazon.awscdk.services.ecs.FargateTaskDefinition, -) : TaskDefinition(cdkObject), IFargateTaskDefinition { +) : TaskDefinition(cdkObject), + IFargateTaskDefinition { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ecs.FargateTaskDefinition(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionAttributes.kt index bf177bc895..cc3d408860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionAttributes.kt @@ -102,7 +102,8 @@ public interface FargateTaskDefinitionAttributes : CommonTaskDefinitionAttribute private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FargateTaskDefinitionAttributes, - ) : CdkObject(cdkObject), FargateTaskDefinitionAttributes { + ) : CdkObject(cdkObject), + FargateTaskDefinitionAttributes { /** * The IAM role that grants containers and Fargate agents permission to make AWS API calls on * your behalf. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionProps.kt index 0765226feb..eda33794f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FargateTaskDefinitionProps.kt @@ -425,7 +425,8 @@ public interface FargateTaskDefinitionProps : CommonTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FargateTaskDefinitionProps, - ) : CdkObject(cdkObject), FargateTaskDefinitionProps { + ) : CdkObject(cdkObject), + FargateTaskDefinitionProps { /** * The number of cpu units used by the task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FireLensLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FireLensLogDriverProps.kt index 369cf5977d..d0adad0999 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FireLensLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FireLensLogDriverProps.kt @@ -190,7 +190,8 @@ public interface FireLensLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FireLensLogDriverProps, - ) : CdkObject(cdkObject), FireLensLogDriverProps { + ) : CdkObject(cdkObject), + FireLensLogDriverProps { /** * The env option takes an array of keys. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensConfig.kt index 5b1af0a3de..ba69f5e02a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensConfig.kt @@ -98,7 +98,8 @@ public interface FirelensConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FirelensConfig, - ) : CdkObject(cdkObject), FirelensConfig { + ) : CdkObject(cdkObject), + FirelensConfig { /** * Firelens options. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterDefinitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterDefinitionOptions.kt index 2cdcabbe25..c7c5d17b7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterDefinitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterDefinitionOptions.kt @@ -813,7 +813,8 @@ public interface FirelensLogRouterDefinitionOptions : ContainerDefinitionOptions private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FirelensLogRouterDefinitionOptions, - ) : CdkObject(cdkObject), FirelensLogRouterDefinitionOptions { + ) : CdkObject(cdkObject), + FirelensLogRouterDefinitionOptions { /** * The command that is passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterProps.kt index ad193b28ac..85493f5bd8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensLogRouterProps.kt @@ -829,7 +829,8 @@ public interface FirelensLogRouterProps : ContainerDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FirelensLogRouterProps, - ) : CdkObject(cdkObject), FirelensLogRouterProps { + ) : CdkObject(cdkObject), + FirelensLogRouterProps { /** * The command that is passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensOptions.kt index 5325f0fef4..e336361312 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FirelensOptions.kt @@ -117,7 +117,8 @@ public interface FirelensOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FirelensOptions, - ) : CdkObject(cdkObject), FirelensOptions { + ) : CdkObject(cdkObject), + FirelensOptions { /** * Custom configuration file, s3 or file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FluentdLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FluentdLogDriverProps.kt index 96aae30188..0f9d3ebc4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FluentdLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/FluentdLogDriverProps.kt @@ -290,7 +290,8 @@ public interface FluentdLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.FluentdLogDriverProps, - ) : CdkObject(cdkObject), FluentdLogDriverProps { + ) : CdkObject(cdkObject), + FluentdLogDriverProps { /** * By default, the logging driver connects to localhost:24224. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GelfLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GelfLogDriverProps.kt index 2cea496f9d..83ddc3635c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GelfLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GelfLogDriverProps.kt @@ -277,7 +277,8 @@ public interface GelfLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.GelfLogDriverProps, - ) : CdkObject(cdkObject), GelfLogDriverProps { + ) : CdkObject(cdkObject), + GelfLogDriverProps { /** * The address of the GELF server. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GenericLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GenericLogDriverProps.kt index f26f703aa5..f631694d19 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GenericLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/GenericLogDriverProps.kt @@ -135,7 +135,8 @@ public interface GenericLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.GenericLogDriverProps, - ) : CdkObject(cdkObject), GenericLogDriverProps { + ) : CdkObject(cdkObject), + GenericLogDriverProps { /** * The log driver to use for the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/HealthCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/HealthCheck.kt index 9a6417f334..0651fc8933 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/HealthCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/HealthCheck.kt @@ -204,7 +204,8 @@ public interface HealthCheck { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.HealthCheck, - ) : CdkObject(cdkObject), HealthCheck { + ) : CdkObject(cdkObject), + HealthCheck { /** * A string array representing the command that the container runs to determine if it is * healthy. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Host.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Host.kt index 109ae7a320..34507dae50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Host.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Host.kt @@ -73,7 +73,8 @@ public interface Host { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Host, - ) : CdkObject(cdkObject), Host { + ) : CdkObject(cdkObject), + Host { /** * Specifies the path on the host container instance that is presented to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IBaseService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IBaseService.kt index 6b3b9efd42..06293e10ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IBaseService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IBaseService.kt @@ -21,7 +21,8 @@ public interface IBaseService : IService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IBaseService, - ) : CdkObject(cdkObject), IBaseService { + ) : CdkObject(cdkObject), + IBaseService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ICluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ICluster.kt index ce2d627723..5e14f3d12e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ICluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ICluster.kt @@ -65,7 +65,8 @@ public interface ICluster : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ICluster, - ) : CdkObject(cdkObject), ICluster { + ) : CdkObject(cdkObject), + ICluster { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2Service.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2Service.kt index 2742570113..7abadd6840 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2Service.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2Service.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IEc2Service : IService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IEc2Service, - ) : CdkObject(cdkObject), IEc2Service { + ) : CdkObject(cdkObject), + IEc2Service { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2TaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2TaskDefinition.kt index d46d64884a..0bc522222d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2TaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEc2TaskDefinition.kt @@ -18,7 +18,8 @@ import kotlin.String public interface IEc2TaskDefinition : ITaskDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IEc2TaskDefinition, - ) : CdkObject(cdkObject), IEc2TaskDefinition { + ) : CdkObject(cdkObject), + IEc2TaskDefinition { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEcsLoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEcsLoadBalancerTarget.kt index 663c9aaad8..114597b938 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEcsLoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IEcsLoadBalancerTarget.kt @@ -20,7 +20,8 @@ public interface IEcsLoadBalancerTarget : IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget, ILoadBalancerTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IEcsLoadBalancerTarget, - ) : CdkObject(cdkObject), IEcsLoadBalancerTarget { + ) : CdkObject(cdkObject), + IEcsLoadBalancerTarget { /** * Attach load-balanced target to a TargetGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalService.kt index e42342c913..1457a6409d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalService.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IExternalService : IService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IExternalService, - ) : CdkObject(cdkObject), IExternalService { + ) : CdkObject(cdkObject), + IExternalService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalTaskDefinition.kt index dff96a3c01..be1a3988ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IExternalTaskDefinition.kt @@ -18,7 +18,8 @@ import kotlin.String public interface IExternalTaskDefinition : ITaskDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IExternalTaskDefinition, - ) : CdkObject(cdkObject), IExternalTaskDefinition { + ) : CdkObject(cdkObject), + IExternalTaskDefinition { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateService.kt index 3bc8ec463e..23e086162f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateService.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IFargateService : IService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IFargateService, - ) : CdkObject(cdkObject), IFargateService { + ) : CdkObject(cdkObject), + IFargateService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateTaskDefinition.kt index 000809ed91..73f78d134d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IFargateTaskDefinition.kt @@ -18,7 +18,8 @@ import kotlin.String public interface IFargateTaskDefinition : ITaskDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IFargateTaskDefinition, - ) : CdkObject(cdkObject), IFargateTaskDefinition { + ) : CdkObject(cdkObject), + IFargateTaskDefinition { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IService.kt index a01966152c..2db27a8aad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/IService.kt @@ -27,7 +27,8 @@ public interface IService : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.IService, - ) : CdkObject(cdkObject), IService { + ) : CdkObject(cdkObject), + IService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinition.kt index e3f7bb970c..46437a8873 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinition.kt @@ -60,7 +60,8 @@ public interface ITaskDefinition : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ITaskDefinition, - ) : CdkObject(cdkObject), ITaskDefinition { + ) : CdkObject(cdkObject), + ITaskDefinition { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinitionExtension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinitionExtension.kt index 3b941a5a64..cce1e0f37d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinitionExtension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ITaskDefinitionExtension.kt @@ -24,7 +24,8 @@ public interface ITaskDefinitionExtension { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ITaskDefinitionExtension, - ) : CdkObject(cdkObject), ITaskDefinitionExtension { + ) : CdkObject(cdkObject), + ITaskDefinitionExtension { /** * Apply the extension to the given TaskDefinition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/InferenceAccelerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/InferenceAccelerator.kt index 94af4111ef..7cbc8aece5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/InferenceAccelerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/InferenceAccelerator.kt @@ -85,7 +85,8 @@ public interface InferenceAccelerator { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.InferenceAccelerator, - ) : CdkObject(cdkObject), InferenceAccelerator { + ) : CdkObject(cdkObject), + InferenceAccelerator { /** * The Elastic Inference accelerator device name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JournaldLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JournaldLogDriverProps.kt index 0a368068b9..79a4a89e7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JournaldLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JournaldLogDriverProps.kt @@ -149,7 +149,8 @@ public interface JournaldLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.JournaldLogDriverProps, - ) : CdkObject(cdkObject), JournaldLogDriverProps { + ) : CdkObject(cdkObject), + JournaldLogDriverProps { /** * The env option takes an array of keys. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JsonFileLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JsonFileLogDriverProps.kt index 45a690746e..7158349fd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JsonFileLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/JsonFileLogDriverProps.kt @@ -228,7 +228,8 @@ public interface JsonFileLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.JsonFileLogDriverProps, - ) : CdkObject(cdkObject), JsonFileLogDriverProps { + ) : CdkObject(cdkObject), + JsonFileLogDriverProps { /** * Toggles compression for rotated logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LinuxParametersProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LinuxParametersProps.kt index 0186f616bb..d70297a204 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LinuxParametersProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LinuxParametersProps.kt @@ -169,7 +169,8 @@ public interface LinuxParametersProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.LinuxParametersProps, - ) : CdkObject(cdkObject), LinuxParametersProps { + ) : CdkObject(cdkObject), + LinuxParametersProps { /** * Specifies whether to run an init process inside the container that forwards signals and reaps * processes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LoadBalancerTargetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LoadBalancerTargetOptions.kt index bf79fbbb3c..a9fa1fc6f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LoadBalancerTargetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LoadBalancerTargetOptions.kt @@ -110,7 +110,8 @@ public interface LoadBalancerTargetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.LoadBalancerTargetOptions, - ) : CdkObject(cdkObject), LoadBalancerTargetOptions { + ) : CdkObject(cdkObject), + LoadBalancerTargetOptions { /** * The name of the container. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LogDriverConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LogDriverConfig.kt index 1f13932020..5279603bc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LogDriverConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/LogDriverConfig.kt @@ -167,7 +167,8 @@ public interface LogDriverConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.LogDriverConfig, - ) : CdkObject(cdkObject), LogDriverConfig { + ) : CdkObject(cdkObject), + LogDriverConfig { /** * The log driver to use for the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MemoryUtilizationScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MemoryUtilizationScalingProps.kt index 2ffb63eb86..915e604851 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MemoryUtilizationScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MemoryUtilizationScalingProps.kt @@ -139,7 +139,8 @@ public interface MemoryUtilizationScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.MemoryUtilizationScalingProps, - ) : CdkObject(cdkObject), MemoryUtilizationScalingProps { + ) : CdkObject(cdkObject), + MemoryUtilizationScalingProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MountPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MountPoint.kt index 258a39e691..6558550fb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MountPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/MountPoint.kt @@ -90,7 +90,8 @@ public interface MountPoint : BaseMountPoint { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.MountPoint, - ) : CdkObject(cdkObject), MountPoint { + ) : CdkObject(cdkObject), + MountPoint { /** * The path on the container to mount the host volume at. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/PortMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/PortMapping.kt index 47c0ca20c2..e299edb2f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/PortMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/PortMapping.kt @@ -278,7 +278,8 @@ public interface PortMapping { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.PortMapping, - ) : CdkObject(cdkObject), PortMapping { + ) : CdkObject(cdkObject), + PortMapping { /** * The protocol used by Service Connect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RepositoryImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RepositoryImageProps.kt index 6f955c74d9..6f8def4213 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RepositoryImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RepositoryImageProps.kt @@ -64,7 +64,8 @@ public interface RepositoryImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.RepositoryImageProps, - ) : CdkObject(cdkObject), RepositoryImageProps { + ) : CdkObject(cdkObject), + RepositoryImageProps { /** * The secret to expose to the container that contains the credentials for the image repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RequestCountScalingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RequestCountScalingProps.kt index a117c55b37..fa5044f5ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RequestCountScalingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RequestCountScalingProps.kt @@ -143,7 +143,8 @@ public interface RequestCountScalingProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.RequestCountScalingProps, - ) : CdkObject(cdkObject), RequestCountScalingProps { + ) : CdkObject(cdkObject), + RequestCountScalingProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RuntimePlatform.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RuntimePlatform.kt index 6f66febac1..62510098fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RuntimePlatform.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/RuntimePlatform.kt @@ -85,7 +85,8 @@ public interface RuntimePlatform { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.RuntimePlatform, - ) : CdkObject(cdkObject), RuntimePlatform { + ) : CdkObject(cdkObject), + RuntimePlatform { /** * The CpuArchitecture for Fargate Runtime Platform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScalableTaskCountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScalableTaskCountProps.kt index dfdf2b6b5c..1ceb6fedfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScalableTaskCountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScalableTaskCountProps.kt @@ -124,7 +124,8 @@ public interface ScalableTaskCountProps : BaseScalableAttributeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ScalableTaskCountProps, - ) : CdkObject(cdkObject), ScalableTaskCountProps { + ) : CdkObject(cdkObject), + ScalableTaskCountProps { /** * Scalable dimension of the attribute. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScratchSpace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScratchSpace.kt index 346300aad5..9e60bac7ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScratchSpace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ScratchSpace.kt @@ -123,7 +123,8 @@ public interface ScratchSpace { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ScratchSpace, - ) : CdkObject(cdkObject), ScratchSpace { + ) : CdkObject(cdkObject), + ScratchSpace { /** * The path on the container to mount the scratch volume at. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SecretVersionInfo.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SecretVersionInfo.kt index 2554b45be6..6c5d66f034 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SecretVersionInfo.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SecretVersionInfo.kt @@ -97,7 +97,8 @@ public interface SecretVersionInfo { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.SecretVersionInfo, - ) : CdkObject(cdkObject), SecretVersionInfo { + ) : CdkObject(cdkObject), + SecretVersionInfo { /** * version id of the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectProps.kt index 4cbb7153e9..be04c409d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectProps.kt @@ -136,7 +136,8 @@ public interface ServiceConnectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ServiceConnectProps, - ) : CdkObject(cdkObject), ServiceConnectProps { + ) : CdkObject(cdkObject), + ServiceConnectProps { /** * The log driver configuration to use for the Service Connect agent logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectService.kt index 17b3661bdd..d1d7734a31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceConnectService.kt @@ -241,7 +241,8 @@ public interface ServiceConnectService { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ServiceConnectService, - ) : CdkObject(cdkObject), ServiceConnectService { + ) : CdkObject(cdkObject), + ServiceConnectService { /** * Optionally specifies an intermediate dns name to register in the CloudMap namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedEBSVolumeConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedEBSVolumeConfiguration.kt index e2c2fed3b7..6eff16f566 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedEBSVolumeConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedEBSVolumeConfiguration.kt @@ -373,7 +373,8 @@ public interface ServiceManagedEBSVolumeConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ServiceManagedEBSVolumeConfiguration, - ) : CdkObject(cdkObject), ServiceManagedEBSVolumeConfiguration { + ) : CdkObject(cdkObject), + ServiceManagedEBSVolumeConfiguration { /** * Indicates whether the volume should be encrypted. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedVolumeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedVolumeProps.kt index 78abff088e..668ace0cb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedVolumeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/ServiceManagedVolumeProps.kt @@ -129,7 +129,8 @@ public interface ServiceManagedVolumeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.ServiceManagedVolumeProps, - ) : CdkObject(cdkObject), ServiceManagedVolumeProps { + ) : CdkObject(cdkObject), + ServiceManagedVolumeProps { /** * Configuration for an Amazon Elastic Block Store (EBS) volume managed by ECS. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SplunkLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SplunkLogDriverProps.kt index a50b299c79..1ad99f51f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SplunkLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SplunkLogDriverProps.kt @@ -411,7 +411,8 @@ public interface SplunkLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.SplunkLogDriverProps, - ) : CdkObject(cdkObject), SplunkLogDriverProps { + ) : CdkObject(cdkObject), + SplunkLogDriverProps { /** * Name to use for validating server certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SyslogLogDriverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SyslogLogDriverProps.kt index d32f536fb0..0b1c58e053 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SyslogLogDriverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SyslogLogDriverProps.kt @@ -347,7 +347,8 @@ public interface SyslogLogDriverProps : BaseLogDriverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.SyslogLogDriverProps, - ) : CdkObject(cdkObject), SyslogLogDriverProps { + ) : CdkObject(cdkObject), + SyslogLogDriverProps { /** * The address of an external syslog server. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SystemControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SystemControl.kt index 7fe4e22b20..66e44d9f8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SystemControl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/SystemControl.kt @@ -73,7 +73,8 @@ public interface SystemControl { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.SystemControl, - ) : CdkObject(cdkObject), SystemControl { + ) : CdkObject(cdkObject), + SystemControl { /** * The namespaced kernel parameter for which to set a value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinition.kt index 0e727e014e..bb2e68f194 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinition.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class TaskDefinition( cdkObject: software.amazon.awscdk.services.ecs.TaskDefinition, -) : Resource(cdkObject), ITaskDefinition { +) : Resource(cdkObject), + ITaskDefinition { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionAttributes.kt index 61a8ee52cb..5b4877d9c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionAttributes.kt @@ -121,7 +121,8 @@ public interface TaskDefinitionAttributes : CommonTaskDefinitionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.TaskDefinitionAttributes, - ) : CdkObject(cdkObject), TaskDefinitionAttributes { + ) : CdkObject(cdkObject), + TaskDefinitionAttributes { /** * What launch types this task definition should be compatible with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionProps.kt index 253c41ca91..e210d452d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TaskDefinitionProps.kt @@ -593,7 +593,8 @@ public interface TaskDefinitionProps : CommonTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.TaskDefinitionProps, - ) : CdkObject(cdkObject), TaskDefinitionProps { + ) : CdkObject(cdkObject), + TaskDefinitionProps { /** * The task launch type compatiblity requirement. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Tmpfs.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Tmpfs.kt index 732ae19f77..b9fd450457 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Tmpfs.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Tmpfs.kt @@ -117,7 +117,8 @@ public interface Tmpfs { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Tmpfs, - ) : CdkObject(cdkObject), Tmpfs { + ) : CdkObject(cdkObject), + Tmpfs { /** * The absolute file path where the tmpfs volume is to be mounted. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TrackCustomMetricProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TrackCustomMetricProps.kt index 1bf1dc69f5..d91e647417 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TrackCustomMetricProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/TrackCustomMetricProps.kt @@ -160,7 +160,8 @@ public interface TrackCustomMetricProps : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.TrackCustomMetricProps, - ) : CdkObject(cdkObject), TrackCustomMetricProps { + ) : CdkObject(cdkObject), + TrackCustomMetricProps { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ulimit.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ulimit.kt index a534041c42..3cbde60beb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ulimit.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Ulimit.kt @@ -100,7 +100,8 @@ public interface Ulimit { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Ulimit, - ) : CdkObject(cdkObject), Ulimit { + ) : CdkObject(cdkObject), + Ulimit { /** * The hard limit for the ulimit type. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Volume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Volume.kt index 1c51c75e73..f1a9a4c210 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Volume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Volume.kt @@ -301,7 +301,8 @@ public interface Volume { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.Volume, - ) : CdkObject(cdkObject), Volume { + ) : CdkObject(cdkObject), + Volume { /** * Indicates if the volume should be configured at launch. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/VolumeFrom.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/VolumeFrom.kt index 935086d971..fcae8ffed1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/VolumeFrom.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/VolumeFrom.kt @@ -83,7 +83,8 @@ public interface VolumeFrom { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.VolumeFrom, - ) : CdkObject(cdkObject), VolumeFrom { + ) : CdkObject(cdkObject), + VolumeFrom { /** * Specifies whether the container has read-only access to the volume. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationListenerProps.kt index c2ebdb8c30..70c8ceba9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationListenerProps.kt @@ -165,7 +165,8 @@ public interface ApplicationListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationListenerProps, - ) : CdkObject(cdkObject), ApplicationListenerProps { + ) : CdkObject(cdkObject), + ApplicationListenerProps { /** * Certificate Manager certificate to associate with the load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2Service.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2Service.kt index 5b01ed6fc0..354602e69b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2Service.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2Service.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocol import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.SslPolicy import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean @@ -321,6 +322,15 @@ public open class ApplicationLoadBalancedEc2Service( */ public fun idleTimeout(idleTimeout: Duration) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + * + * @param ipAddressType The type of IP address to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * Listener port of the application load balancer that will serve traffic to the service. * @@ -895,6 +905,17 @@ public open class ApplicationLoadBalancedEc2Service( cdkBuilder.idleTimeout(idleTimeout.let(Duration.Companion::unwrap)) } + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + * + * @param ipAddressType The type of IP address to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * Listener port of the application load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2ServiceProps.kt index c1b3a1d0d0..109a2f6263 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedEc2ServiceProps.kt @@ -20,6 +20,7 @@ import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocol import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.SslPolicy import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean @@ -277,6 +278,11 @@ public interface ApplicationLoadBalancedEc2ServiceProps : ApplicationLoadBalance */ public fun idleTimeout(idleTimeout: Duration) + /** + * @param ipAddressType The type of IP address to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -632,6 +638,13 @@ public interface ApplicationLoadBalancedEc2ServiceProps : ApplicationLoadBalance cdkBuilder.idleTimeout(idleTimeout.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP address to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -864,7 +877,8 @@ public interface ApplicationLoadBalancedEc2ServiceProps : ApplicationLoadBalance private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedEc2ServiceProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancedEc2ServiceProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancedEc2ServiceProps { /** * A list of Capacity Provider strategies used to place a service. * @@ -1012,6 +1026,14 @@ public interface ApplicationLoadBalancedEc2ServiceProps : ApplicationLoadBalance */ override fun idleTimeout(): Duration? = unwrap(this).getIdleTimeout()?.let(Duration::wrap) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the application load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateService.kt index e3fe1d5a61..9fccef8854 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateService.kt @@ -22,6 +22,7 @@ import io.cloudshiftdev.awscdk.services.ecs.RuntimePlatform import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocol import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.SslPolicy import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean @@ -49,11 +50,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder() * .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) * .build()) - * .taskSubnets(SubnetSelection.builder() - * .subnets(List.of(Subnet.fromSubnetId(this, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0"))) - * .build()) - * .loadBalancerName("application-lb-name") * .build(); + * ScalableTaskCount scalableTarget = + * loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder() + * .minCapacity(1) + * .maxCapacity(20) + * .build()); + * scalableTarget.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder() + * .targetUtilizationPercent(50) + * .build()); + * scalableTarget.scaleOnMemoryUtilization("MemoryScaling", MemoryUtilizationScalingProps.builder() + * .targetUtilizationPercent(50) + * .build()); * ``` */ public open class ApplicationLoadBalancedFargateService( @@ -378,6 +386,15 @@ public open class ApplicationLoadBalancedFargateService( */ public fun idleTimeout(idleTimeout: Duration) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + * + * @param ipAddressType The type of IP address to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * Listener port of the application load balancer that will serve traffic to the service. * @@ -1041,6 +1058,17 @@ public open class ApplicationLoadBalancedFargateService( cdkBuilder.idleTimeout(idleTimeout.let(Duration.Companion::unwrap)) } + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + * + * @param ipAddressType The type of IP address to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * Listener port of the application load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateServiceProps.kt index d2f6cdbe22..0997de275f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedFargateServiceProps.kt @@ -23,6 +23,7 @@ import io.cloudshiftdev.awscdk.services.ecs.RuntimePlatform import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocol import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.SslPolicy import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean @@ -48,11 +49,18 @@ import kotlin.jvm.JvmName * .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder() * .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) * .build()) - * .taskSubnets(SubnetSelection.builder() - * .subnets(List.of(Subnet.fromSubnetId(this, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0"))) - * .build()) - * .loadBalancerName("application-lb-name") * .build(); + * ScalableTaskCount scalableTarget = + * loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder() + * .minCapacity(1) + * .maxCapacity(20) + * .build()); + * scalableTarget.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder() + * .targetUtilizationPercent(50) + * .build()); + * scalableTarget.scaleOnMemoryUtilization("MemoryScaling", MemoryUtilizationScalingProps.builder() + * .targetUtilizationPercent(50) + * .build()); * ``` */ public interface ApplicationLoadBalancedFargateServiceProps : @@ -264,6 +272,11 @@ public interface ApplicationLoadBalancedFargateServiceProps : */ public fun idleTimeout(idleTimeout: Duration) + /** + * @param ipAddressType The type of IP address to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -681,6 +694,13 @@ public interface ApplicationLoadBalancedFargateServiceProps : cdkBuilder.idleTimeout(idleTimeout.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP address to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -939,7 +959,8 @@ public interface ApplicationLoadBalancedFargateServiceProps : private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedFargateServiceProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancedFargateServiceProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancedFargateServiceProps { /** * Determines whether the service will be assigned a public IP address. * @@ -1116,6 +1137,14 @@ public interface ApplicationLoadBalancedFargateServiceProps : */ override fun idleTimeout(): Duration? = unwrap(this).getIdleTimeout()?.let(Duration::wrap) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the application load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedServiceBaseProps.kt index 8de99f7f81..422392c01a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedServiceBaseProps.kt @@ -17,6 +17,7 @@ import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocol import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.SslPolicy import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean @@ -88,6 +89,7 @@ import kotlin.jvm.JvmName * .enableExecuteCommand(false) * .healthCheckGracePeriod(Duration.minutes(30)) * .idleTimeout(Duration.minutes(30)) + * .ipAddressType(IpAddressType.IPV4) * .listenerPort(123) * .loadBalancer(applicationLoadBalancer) * .loadBalancerName("loadBalancerName") @@ -251,6 +253,14 @@ public interface ApplicationLoadBalancedServiceBaseProps { */ public fun idleTimeout(): Duration? = unwrap(this).getIdleTimeout()?.let(Duration::wrap) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + */ + public fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the application load balancer that will serve traffic to the service. * @@ -531,6 +541,11 @@ public interface ApplicationLoadBalancedServiceBaseProps { */ public fun idleTimeout(idleTimeout: Duration) + /** + * @param ipAddressType The type of IP address to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -807,6 +822,13 @@ public interface ApplicationLoadBalancedServiceBaseProps { cdkBuilder.idleTimeout(idleTimeout.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP address to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the application load balancer that will serve traffic to * the service. @@ -968,7 +990,8 @@ public interface ApplicationLoadBalancedServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBaseProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancedServiceBaseProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancedServiceBaseProps { /** * A list of Capacity Provider strategies used to place a service. * @@ -1095,6 +1118,14 @@ public interface ApplicationLoadBalancedServiceBaseProps { */ override fun idleTimeout(): Duration? = unwrap(this).getIdleTimeout()?.let(Duration::wrap) + /** + * The type of IP address to use. + * + * Default: - IpAddressType.IPV4 + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the application load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageOptions.kt index 8e85561b62..0433e4e90e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageOptions.kt @@ -473,7 +473,8 @@ public interface ApplicationLoadBalancedTaskImageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedTaskImageOptions, - ) : CdkObject(cdkObject), ApplicationLoadBalancedTaskImageOptions { + ) : CdkObject(cdkObject), + ApplicationLoadBalancedTaskImageOptions { /** * The command that's passed to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageProps.kt index 7bed41b031..43ca8d7d47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancedTaskImageProps.kt @@ -396,7 +396,8 @@ public interface ApplicationLoadBalancedTaskImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedTaskImageProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancedTaskImageProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancedTaskImageProps { /** * The container name value to be specified in the task definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancerProps.kt index 1cbdf43f32..7ddbd0c5a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationLoadBalancerProps.kt @@ -189,7 +189,8 @@ public interface ApplicationLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancerProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancerProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerProps { /** * The domain name for the service, e.g. "api.example.com.". * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsEc2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsEc2ServiceProps.kt index af2d984aae..591f74713c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsEc2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsEc2ServiceProps.kt @@ -523,7 +523,8 @@ public interface ApplicationMultipleTargetGroupsEc2ServiceProps : private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationMultipleTargetGroupsEc2ServiceProps, - ) : CdkObject(cdkObject), ApplicationMultipleTargetGroupsEc2ServiceProps { + ) : CdkObject(cdkObject), + ApplicationMultipleTargetGroupsEc2ServiceProps { /** * The options for configuring an Amazon ECS service to use service discovery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsFargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsFargateServiceProps.kt index 250116d769..fd215f2cc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsFargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsFargateServiceProps.kt @@ -550,7 +550,8 @@ public interface ApplicationMultipleTargetGroupsFargateServiceProps : private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationMultipleTargetGroupsFargateServiceProps, - ) : CdkObject(cdkObject), ApplicationMultipleTargetGroupsFargateServiceProps { + ) : CdkObject(cdkObject), + ApplicationMultipleTargetGroupsFargateServiceProps { /** * Determines whether the service will be assigned a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsServiceBaseProps.kt index dab96f0ff6..54523d4b64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationMultipleTargetGroupsServiceBaseProps.kt @@ -474,7 +474,8 @@ public interface ApplicationMultipleTargetGroupsServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationMultipleTargetGroupsServiceBaseProps, - ) : CdkObject(cdkObject), ApplicationMultipleTargetGroupsServiceBaseProps { + ) : CdkObject(cdkObject), + ApplicationMultipleTargetGroupsServiceBaseProps { /** * The options for configuring an Amazon ECS service to use service discovery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationTargetProps.kt index ed60b85a60..af2cac8875 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ApplicationTargetProps.kt @@ -209,7 +209,8 @@ public interface ApplicationTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ApplicationTargetProps, - ) : CdkObject(cdkObject), ApplicationTargetProps { + ) : CdkObject(cdkObject), + ApplicationTargetProps { /** * The port number of the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/FargateServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/FargateServiceBaseProps.kt index b4de59e654..55f787d1a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/FargateServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/FargateServiceBaseProps.kt @@ -347,7 +347,8 @@ public interface FargateServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.FargateServiceBaseProps, - ) : CdkObject(cdkObject), FargateServiceBaseProps { + ) : CdkObject(cdkObject), + FargateServiceBaseProps { /** * The number of cpu units used by the task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkListenerProps.kt index f4e3d99eb0..0c358da9ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkListenerProps.kt @@ -79,7 +79,8 @@ public interface NetworkListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkListenerProps, - ) : CdkObject(cdkObject), NetworkListenerProps { + ) : CdkObject(cdkObject), + NetworkListenerProps { /** * Name of the listener. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2Service.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2Service.kt index c6be64d43d..5bf4f2cf1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2Service.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2Service.kt @@ -16,6 +16,7 @@ import io.cloudshiftdev.awscdk.services.ecs.PlacementConstraint import io.cloudshiftdev.awscdk.services.ecs.PlacementStrategy import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean import kotlin.Number @@ -290,6 +291,19 @@ public open class NetworkLoadBalancedEc2Service( */ public fun healthCheckGracePeriod(healthCheckGracePeriod: Duration) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + * @param ipAddressType The type of IP addresses to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * Listener port of the network load balancer that will serve traffic to the service. * @@ -756,6 +770,21 @@ public open class NetworkLoadBalancedEc2Service( cdkBuilder.healthCheckGracePeriod(healthCheckGracePeriod.let(Duration.Companion::unwrap)) } + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + * @param ipAddressType The type of IP addresses to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * Listener port of the network load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2ServiceProps.kt index 60437d3d88..f6cdb0eafd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedEc2ServiceProps.kt @@ -17,6 +17,7 @@ import io.cloudshiftdev.awscdk.services.ecs.PlacementConstraint import io.cloudshiftdev.awscdk.services.ecs.PlacementStrategy import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean import kotlin.Number @@ -259,6 +260,13 @@ public interface NetworkLoadBalancedEc2ServiceProps : NetworkLoadBalancedService */ public fun healthCheckGracePeriod(healthCheckGracePeriod: Duration) + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -553,6 +561,15 @@ public interface NetworkLoadBalancedEc2ServiceProps : NetworkLoadBalancedService cdkBuilder.healthCheckGracePeriod(healthCheckGracePeriod.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -727,7 +744,8 @@ public interface NetworkLoadBalancedEc2ServiceProps : NetworkLoadBalancedService private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedEc2ServiceProps, - ) : CdkObject(cdkObject), NetworkLoadBalancedEc2ServiceProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancedEc2ServiceProps { /** * A list of Capacity Provider strategies used to place a service. * @@ -853,6 +871,19 @@ public interface NetworkLoadBalancedEc2ServiceProps : NetworkLoadBalancedService override fun healthCheckGracePeriod(): Duration? = unwrap(this).getHealthCheckGracePeriod()?.let(Duration::wrap) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the network load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateService.kt index c58f34f32f..1753a5d4e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateService.kt @@ -18,6 +18,7 @@ import io.cloudshiftdev.awscdk.services.ecs.ICluster import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.ecs.RuntimePlatform import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean import kotlin.Number @@ -322,6 +323,19 @@ public open class NetworkLoadBalancedFargateService( */ public fun healthCheckGracePeriod(healthCheckGracePeriod: Duration) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + * @param ipAddressType The type of IP addresses to use. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * Listener port of the network load balancer that will serve traffic to the service. * @@ -852,6 +866,21 @@ public open class NetworkLoadBalancedFargateService( cdkBuilder.healthCheckGracePeriod(healthCheckGracePeriod.let(Duration.Companion::unwrap)) } + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + * @param ipAddressType The type of IP addresses to use. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * Listener port of the network load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateServiceProps.kt index 445ec6ec27..04874a1483 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedFargateServiceProps.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.ecs.ICluster import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.ecs.RuntimePlatform import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean import kotlin.Number @@ -222,6 +223,13 @@ public interface NetworkLoadBalancedFargateServiceProps : NetworkLoadBalancedSer */ public fun healthCheckGracePeriod(healthCheckGracePeriod: Duration) + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -562,6 +570,15 @@ public interface NetworkLoadBalancedFargateServiceProps : NetworkLoadBalancedSer cdkBuilder.healthCheckGracePeriod(healthCheckGracePeriod.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -762,7 +779,8 @@ public interface NetworkLoadBalancedFargateServiceProps : NetworkLoadBalancedSer private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedFargateServiceProps, - ) : CdkObject(cdkObject), NetworkLoadBalancedFargateServiceProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancedFargateServiceProps { /** * Determines whether the service will be assigned a public IP address. * @@ -910,6 +928,19 @@ public interface NetworkLoadBalancedFargateServiceProps : NetworkLoadBalancedSer override fun healthCheckGracePeriod(): Duration? = unwrap(this).getHealthCheckGracePeriod()?.let(Duration::wrap) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the network load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedServiceBaseProps.kt index 24f515c475..a225451558 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedServiceBaseProps.kt @@ -14,6 +14,7 @@ import io.cloudshiftdev.awscdk.services.ecs.DeploymentController import io.cloudshiftdev.awscdk.services.ecs.ICluster import io.cloudshiftdev.awscdk.services.ecs.PropagatedTagSource import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IpAddressType import io.cloudshiftdev.awscdk.services.route53.IHostedZone import kotlin.Boolean import kotlin.Number @@ -80,6 +81,7 @@ import kotlin.jvm.JvmName * .enableECSManagedTags(false) * .enableExecuteCommand(false) * .healthCheckGracePeriod(Duration.minutes(30)) + * .ipAddressType(IpAddressType.IPV4) * .listenerPort(123) * .loadBalancer(networkLoadBalancer) * .maxHealthyPercent(123) @@ -213,6 +215,19 @@ public interface NetworkLoadBalancedServiceBaseProps { public fun healthCheckGracePeriod(): Duration? = unwrap(this).getHealthCheckGracePeriod()?.let(Duration::wrap) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + */ + public fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the network load balancer that will serve traffic to the service. * @@ -418,6 +433,13 @@ public interface NetworkLoadBalancedServiceBaseProps { */ public fun healthCheckGracePeriod(healthCheckGracePeriod: Duration) + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + public fun ipAddressType(ipAddressType: IpAddressType) + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -633,6 +655,15 @@ public interface NetworkLoadBalancedServiceBaseProps { cdkBuilder.healthCheckGracePeriod(healthCheckGracePeriod.let(Duration.Companion::unwrap)) } + /** + * @param ipAddressType The type of IP addresses to use. + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + */ + override fun ipAddressType(ipAddressType: IpAddressType) { + cdkBuilder.ipAddressType(ipAddressType.let(IpAddressType.Companion::unwrap)) + } + /** * @param listenerPort Listener port of the network load balancer that will serve traffic to the * service. @@ -736,7 +767,8 @@ public interface NetworkLoadBalancedServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedServiceBaseProps, - ) : CdkObject(cdkObject), NetworkLoadBalancedServiceBaseProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancedServiceBaseProps { /** * A list of Capacity Provider strategies used to place a service. * @@ -841,6 +873,19 @@ public interface NetworkLoadBalancedServiceBaseProps { override fun healthCheckGracePeriod(): Duration? = unwrap(this).getHealthCheckGracePeriod()?.let(Duration::wrap) + /** + * The type of IP addresses to use. + * + * If you want to add a UDP or TCP_UDP listener to the load balancer, + * you must choose IPv4. + * + * Default: IpAddressType.IPV4 + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html) + */ + override fun ipAddressType(): IpAddressType? = + unwrap(this).getIpAddressType()?.let(IpAddressType::wrap) + /** * Listener port of the network load balancer that will serve traffic to the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageOptions.kt index 2cb56f6968..00f4185113 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageOptions.kt @@ -314,7 +314,8 @@ public interface NetworkLoadBalancedTaskImageOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageOptions, - ) : CdkObject(cdkObject), NetworkLoadBalancedTaskImageOptions { + ) : CdkObject(cdkObject), + NetworkLoadBalancedTaskImageOptions { /** * The container name value to be specified in the task definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageProps.kt index ce9c46d798..0d8ce96151 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancedTaskImageProps.kt @@ -367,7 +367,8 @@ public interface NetworkLoadBalancedTaskImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageProps, - ) : CdkObject(cdkObject), NetworkLoadBalancedTaskImageProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancedTaskImageProps { /** * The container name value to be specified in the task definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancerProps.kt index 61f9297077..f5ec5c2e66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkLoadBalancerProps.kt @@ -158,7 +158,8 @@ public interface NetworkLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancerProps, - ) : CdkObject(cdkObject), NetworkLoadBalancerProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancerProps { /** * The domain name for the service, e.g. "api.example.com.". * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsEc2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsEc2ServiceProps.kt index d3c22791d2..ff883e40c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsEc2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsEc2ServiceProps.kt @@ -536,7 +536,8 @@ public interface NetworkMultipleTargetGroupsEc2ServiceProps : private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsEc2ServiceProps, - ) : CdkObject(cdkObject), NetworkMultipleTargetGroupsEc2ServiceProps { + ) : CdkObject(cdkObject), + NetworkMultipleTargetGroupsEc2ServiceProps { /** * The options for configuring an Amazon ECS service to use service discovery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsFargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsFargateServiceProps.kt index 83bbc8f89f..bd699717a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsFargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsFargateServiceProps.kt @@ -523,7 +523,8 @@ public interface NetworkMultipleTargetGroupsFargateServiceProps : private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsFargateServiceProps, - ) : CdkObject(cdkObject), NetworkMultipleTargetGroupsFargateServiceProps { + ) : CdkObject(cdkObject), + NetworkMultipleTargetGroupsFargateServiceProps { /** * Determines whether the service will be assigned a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsServiceBaseProps.kt index 0fa464487a..c2d28be99c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkMultipleTargetGroupsServiceBaseProps.kt @@ -467,7 +467,8 @@ public interface NetworkMultipleTargetGroupsServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsServiceBaseProps, - ) : CdkObject(cdkObject), NetworkMultipleTargetGroupsServiceBaseProps { + ) : CdkObject(cdkObject), + NetworkMultipleTargetGroupsServiceBaseProps { /** * The options for configuring an Amazon ECS service to use service discovery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkTargetProps.kt index 05153b07de..bce181e56d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/NetworkTargetProps.kt @@ -82,7 +82,8 @@ public interface NetworkTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.NetworkTargetProps, - ) : CdkObject(cdkObject), NetworkTargetProps { + ) : CdkObject(cdkObject), + NetworkTargetProps { /** * The port number of the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingEc2ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingEc2ServiceProps.kt index 2047624637..fac10c726d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingEc2ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingEc2ServiceProps.kt @@ -858,7 +858,8 @@ public interface QueueProcessingEc2ServiceProps : QueueProcessingServiceBaseProp private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.QueueProcessingEc2ServiceProps, - ) : CdkObject(cdkObject), QueueProcessingEc2ServiceProps { + ) : CdkObject(cdkObject), + QueueProcessingEc2ServiceProps { /** * A list of Capacity Provider strategies used to place a service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingFargateServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingFargateServiceProps.kt index 22b3b3a1bf..8636a6ee11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingFargateServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingFargateServiceProps.kt @@ -949,7 +949,8 @@ public interface QueueProcessingFargateServiceProps : QueueProcessingServiceBase private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.QueueProcessingFargateServiceProps, - ) : CdkObject(cdkObject), QueueProcessingFargateServiceProps { + ) : CdkObject(cdkObject), + QueueProcessingFargateServiceProps { /** * Specifies whether the task's elastic network interface receives a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingServiceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingServiceBaseProps.kt index 222ce4e16c..03721fb52e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingServiceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/QueueProcessingServiceBaseProps.kt @@ -904,7 +904,8 @@ public interface QueueProcessingServiceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.QueueProcessingServiceBaseProps, - ) : CdkObject(cdkObject), QueueProcessingServiceBaseProps { + ) : CdkObject(cdkObject), + QueueProcessingServiceBaseProps { /** * A list of Capacity Provider strategies used to place a service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskDefinitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskDefinitionOptions.kt index bb74d995f9..4a9cd634fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskDefinitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskDefinitionOptions.kt @@ -70,7 +70,8 @@ public interface ScheduledEc2TaskDefinitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledEc2TaskDefinitionOptions, - ) : CdkObject(cdkObject), ScheduledEc2TaskDefinitionOptions { + ) : CdkObject(cdkObject), + ScheduledEc2TaskDefinitionOptions { /** * The task definition to use for tasks in the service. One of image or taskDefinition must be * specified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskImageOptions.kt index 92256ea910..d3ee2b6c27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskImageOptions.kt @@ -86,6 +86,11 @@ public interface ScheduledEc2TaskImageOptions : ScheduledTaskImageProps { */ public fun command(vararg command: String) + /** + * @param containerName Optional name for the container added. + */ + public fun containerName(containerName: String) + /** * @param cpu The minimum number of CPU units to reserve for the container. */ @@ -152,6 +157,13 @@ public interface ScheduledEc2TaskImageOptions : ScheduledTaskImageProps { */ override fun command(vararg command: String): Unit = command(command.toList()) + /** + * @param containerName Optional name for the container added. + */ + override fun containerName(containerName: String) { + cdkBuilder.containerName(containerName) + } + /** * @param cpu The minimum number of CPU units to reserve for the container. */ @@ -218,7 +230,8 @@ public interface ScheduledEc2TaskImageOptions : ScheduledTaskImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledEc2TaskImageOptions, - ) : CdkObject(cdkObject), ScheduledEc2TaskImageOptions { + ) : CdkObject(cdkObject), + ScheduledEc2TaskImageOptions { /** * The command that is passed to the container. * @@ -228,6 +241,13 @@ public interface ScheduledEc2TaskImageOptions : ScheduledTaskImageProps { */ override fun command(): List = unwrap(this).getCommand() ?: emptyList() + /** + * Optional name for the container added. + * + * Default: - ScheduledContainer + */ + override fun containerName(): String? = unwrap(this).getContainerName() + /** * The minimum number of CPU units to reserve for the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskProps.kt index e589142032..0db251e682 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledEc2TaskProps.kt @@ -358,7 +358,8 @@ public interface ScheduledEc2TaskProps : ScheduledTaskBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledEc2TaskProps, - ) : CdkObject(cdkObject), ScheduledEc2TaskProps { + ) : CdkObject(cdkObject), + ScheduledEc2TaskProps { /** * The name of the cluster that hosts the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskDefinitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskDefinitionOptions.kt index 7c09116304..9ac64346c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskDefinitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskDefinitionOptions.kt @@ -70,7 +70,8 @@ public interface ScheduledFargateTaskDefinitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledFargateTaskDefinitionOptions, - ) : CdkObject(cdkObject), ScheduledFargateTaskDefinitionOptions { + ) : CdkObject(cdkObject), + ScheduledFargateTaskDefinitionOptions { /** * The task definition to use for tasks in the service. Image or taskDefinition must be * specified, but not both. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskImageOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskImageOptions.kt index c227b1ad70..e2dd4f4dc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskImageOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskImageOptions.kt @@ -24,20 +24,17 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Vpc vpc = Vpc.Builder.create(this, "Vpc").maxAzs(1).build(); - * Cluster cluster = Cluster.Builder.create(this, "EcsCluster").vpc(vpc).build(); + * Cluster cluster; * ScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, * "ScheduledFargateTask") * .cluster(cluster) * .scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions.builder() * .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) + * .containerName("customContainerName") * .memoryLimitMiB(512) * .build()) * .schedule(Schedule.expression("rate(1 minute)")) - * .tags(List.of(Tag.builder() - * .key("my-tag") - * .value("my-tag-value") - * .build())) + * .platformVersion(FargatePlatformVersion.LATEST) * .build(); * ``` */ @@ -60,6 +57,11 @@ public interface ScheduledFargateTaskImageOptions : ScheduledTaskImageProps, Far */ public fun command(vararg command: String) + /** + * @param containerName Optional name for the container added. + */ + public fun containerName(containerName: String) + /** * @param cpu The number of cpu units used by the task. * Valid values, which determines your range of valid values for the memory parameter: @@ -190,6 +192,13 @@ public interface ScheduledFargateTaskImageOptions : ScheduledTaskImageProps, Far */ override fun command(vararg command: String): Unit = command(command.toList()) + /** + * @param containerName Optional name for the container added. + */ + override fun containerName(containerName: String) { + cdkBuilder.containerName(containerName) + } + /** * @param cpu The number of cpu units used by the task. * Valid values, which determines your range of valid values for the memory parameter: @@ -328,7 +337,8 @@ public interface ScheduledFargateTaskImageOptions : ScheduledTaskImageProps, Far private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledFargateTaskImageOptions, - ) : CdkObject(cdkObject), ScheduledFargateTaskImageOptions { + ) : CdkObject(cdkObject), + ScheduledFargateTaskImageOptions { /** * The command that is passed to the container. * @@ -338,6 +348,13 @@ public interface ScheduledFargateTaskImageOptions : ScheduledTaskImageProps, Far */ override fun command(): List = unwrap(this).getCommand() ?: emptyList() + /** + * Optional name for the container added. + * + * Default: - ScheduledContainer + */ + override fun containerName(): String? = unwrap(this).getContainerName() + /** * The number of cpu units used by the task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskProps.kt index db55b4d21d..0f8505d4f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledFargateTaskProps.kt @@ -554,7 +554,8 @@ public interface ScheduledFargateTaskProps : ScheduledTaskBaseProps, FargateServ private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledFargateTaskProps, - ) : CdkObject(cdkObject), ScheduledFargateTaskProps { + ) : CdkObject(cdkObject), + ScheduledFargateTaskProps { /** * The name of the cluster that hosts the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskBaseProps.kt index d6438fcfde..98d27aa554 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskBaseProps.kt @@ -362,7 +362,8 @@ public interface ScheduledTaskBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledTaskBaseProps, - ) : CdkObject(cdkObject), ScheduledTaskBaseProps { + ) : CdkObject(cdkObject), + ScheduledTaskBaseProps { /** * The name of the cluster that hosts the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskImageProps.kt index 73941cb5d3..37a66eccf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/patterns/ScheduledTaskImageProps.kt @@ -28,6 +28,7 @@ import kotlin.collections.Map * .image(containerImage) * // the properties below are optional * .command(List.of("command")) + * .containerName("containerName") * .environment(Map.of( * "environmentKey", "environment")) * .logDriver(logDriver) @@ -46,6 +47,13 @@ public interface ScheduledTaskImageProps { */ public fun command(): List = unwrap(this).getCommand() ?: emptyList() + /** + * Optional name for the container added. + * + * Default: - ScheduledContainer + */ + public fun containerName(): String? = unwrap(this).getContainerName() + /** * The environment variables to pass to the container. * @@ -94,6 +102,11 @@ public interface ScheduledTaskImageProps { */ public fun command(vararg command: String) + /** + * @param containerName Optional name for the container added. + */ + public fun containerName(containerName: String) + /** * @param environment The environment variables to pass to the container. */ @@ -135,6 +148,13 @@ public interface ScheduledTaskImageProps { */ override fun command(vararg command: String): Unit = command(command.toList()) + /** + * @param containerName Optional name for the container added. + */ + override fun containerName(containerName: String) { + cdkBuilder.containerName(containerName) + } + /** * @param environment The environment variables to pass to the container. */ @@ -170,7 +190,8 @@ public interface ScheduledTaskImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ecs.patterns.ScheduledTaskImageProps, - ) : CdkObject(cdkObject), ScheduledTaskImageProps { + ) : CdkObject(cdkObject), + ScheduledTaskImageProps { /** * The command that is passed to the container. * @@ -180,6 +201,13 @@ public interface ScheduledTaskImageProps { */ override fun command(): List = unwrap(this).getCommand() ?: emptyList() + /** + * Optional name for the container added. + * + * Default: - ScheduledContainer + */ + override fun containerName(): String? = unwrap(this).getContainerName() + /** * The environment variables to pass to the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPoint.kt index 618e87d1c3..6d01ef8f5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPoint.kt @@ -27,7 +27,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class AccessPoint( cdkObject: software.amazon.awscdk.services.efs.AccessPoint, -) : Resource(cdkObject), IAccessPoint { +) : Resource(cdkObject), + IAccessPoint { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointAttributes.kt index 4f7307c196..1cd79976f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointAttributes.kt @@ -97,7 +97,8 @@ public interface AccessPointAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.AccessPointAttributes, - ) : CdkObject(cdkObject), AccessPointAttributes { + ) : CdkObject(cdkObject), + AccessPointAttributes { /** * The ARN of the AccessPoint One of this, or `accessPointId` is required. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointOptions.kt index 536500a3df..3b34442fb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointOptions.kt @@ -203,7 +203,8 @@ public interface AccessPointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.AccessPointOptions, - ) : CdkObject(cdkObject), AccessPointOptions { + ) : CdkObject(cdkObject), + AccessPointOptions { /** * Specifies the POSIX IDs and permissions to apply when creating the access point's root * directory. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointProps.kt index cdd8e38272..6b008d077a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/AccessPointProps.kt @@ -173,7 +173,8 @@ public interface AccessPointProps : AccessPointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.AccessPointProps, - ) : CdkObject(cdkObject), AccessPointProps { + ) : CdkObject(cdkObject), + AccessPointProps { /** * Specifies the POSIX IDs and permissions to apply when creating the access point's root * directory. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/Acl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/Acl.kt index 060de428ae..e5a4df9ae4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/Acl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/Acl.kt @@ -125,7 +125,8 @@ public interface Acl { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.Acl, - ) : CdkObject(cdkObject), Acl { + ) : CdkObject(cdkObject), + Acl { /** * Specifies the POSIX group ID to apply to the RootDirectory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPoint.kt index 5f81d8b3cf..638701584c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPoint.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPoint( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -566,7 +568,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPoint.AccessPointTagProperty, - ) : CdkObject(cdkObject), AccessPointTagProperty { + ) : CdkObject(cdkObject), + AccessPointTagProperty { /** * The tag key (String). * @@ -721,7 +724,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPoint.CreationInfoProperty, - ) : CdkObject(cdkObject), CreationInfoProperty { + ) : CdkObject(cdkObject), + CreationInfoProperty { /** * Specifies the POSIX group ID to apply to the `RootDirectory` . * @@ -878,7 +882,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPoint.PosixUserProperty, - ) : CdkObject(cdkObject), PosixUserProperty { + ) : CdkObject(cdkObject), + PosixUserProperty { /** * The POSIX group ID used for all file system operations using this access point. * @@ -1095,7 +1100,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPoint.RootDirectoryProperty, - ) : CdkObject(cdkObject), RootDirectoryProperty { + ) : CdkObject(cdkObject), + RootDirectoryProperty { /** * (Optional) Specifies the POSIX IDs and permissions to apply to the access point's * `RootDirectory` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPointProps.kt index f550d8d214..6b68b8bab1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnAccessPointProps.kt @@ -270,7 +270,8 @@ public interface CfnAccessPointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnAccessPointProps, - ) : CdkObject(cdkObject), CfnAccessPointProps { + ) : CdkObject(cdkObject), + CfnAccessPointProps { /** * An array of key-value pairs to apply to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystem.kt index 701edfe9e2..f4199ec929 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystem.kt @@ -75,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFileSystem( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.efs.CfnFileSystem(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1220,7 +1222,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.BackupPolicyProperty, - ) : CdkObject(cdkObject), BackupPolicyProperty { + ) : CdkObject(cdkObject), + BackupPolicyProperty { /** * Set the backup policy status for the file system. * @@ -1332,7 +1335,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.ElasticFileSystemTagProperty, - ) : CdkObject(cdkObject), ElasticFileSystemTagProperty { + ) : CdkObject(cdkObject), + ElasticFileSystemTagProperty { /** * The tag key (String). * @@ -1460,7 +1464,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.FileSystemProtectionProperty, - ) : CdkObject(cdkObject), FileSystemProtectionProperty { + ) : CdkObject(cdkObject), + FileSystemProtectionProperty { /** * The status of the file system's replication overwrite protection. * @@ -1637,7 +1642,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.LifecyclePolicyProperty, - ) : CdkObject(cdkObject), LifecyclePolicyProperty { + ) : CdkObject(cdkObject), + LifecyclePolicyProperty { /** * The number of days after files were last accessed in primary storage (the Standard storage * class) at which to move them to Archive storage. @@ -1783,7 +1789,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.ReplicationConfigurationProperty, - ) : CdkObject(cdkObject), ReplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ReplicationConfigurationProperty { /** * An array of destination objects. * @@ -1967,7 +1974,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystem.ReplicationDestinationProperty, - ) : CdkObject(cdkObject), ReplicationDestinationProperty { + ) : CdkObject(cdkObject), + ReplicationDestinationProperty { /** * For One Zone file systems, the replication configuration must specify the Availability Zone * in which the destination file system is located. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystemProps.kt index fd0c381cbc..2a842c3eb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnFileSystemProps.kt @@ -821,7 +821,8 @@ public interface CfnFileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnFileSystemProps, - ) : CdkObject(cdkObject), CfnFileSystemProps { + ) : CdkObject(cdkObject), + CfnFileSystemProps { /** * For One Zone file systems, specify the AWS Availability Zone in which to create the file * system. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTarget.kt index 6d3c925600..b3e414c6d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTarget.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMountTarget( cdkObject: software.amazon.awscdk.services.efs.CfnMountTarget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTargetProps.kt index 4845f2a8f7..23cf2155e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/CfnMountTargetProps.kt @@ -145,7 +145,8 @@ public interface CfnMountTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.CfnMountTargetProps, - ) : CdkObject(cdkObject), CfnMountTargetProps { + ) : CdkObject(cdkObject), + CfnMountTargetProps { /** * The ID of the file system for which to create the mount target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ExistingFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ExistingFileSystemProps.kt index 804df49f18..150650da75 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ExistingFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ExistingFileSystemProps.kt @@ -56,7 +56,8 @@ public interface ExistingFileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.ExistingFileSystemProps, - ) : CdkObject(cdkObject), ExistingFileSystemProps { + ) : CdkObject(cdkObject), + ExistingFileSystemProps { /** * The existing destination file system for the replication. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystem.kt index fea9a6c1a3..6bea79c8e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystem.kt @@ -51,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FileSystem( cdkObject: software.amazon.awscdk.services.efs.FileSystem, -) : Resource(cdkObject), IFileSystem { +) : Resource(cdkObject), + IFileSystem { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemAttributes.kt index da63bac198..88abff4b93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemAttributes.kt @@ -98,7 +98,8 @@ public interface FileSystemAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.FileSystemAttributes, - ) : CdkObject(cdkObject), FileSystemAttributes { + ) : CdkObject(cdkObject), + FileSystemAttributes { /** * The File System's Arn. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemProps.kt index 16e53032e3..2d0c3a31c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/FileSystemProps.kt @@ -513,7 +513,8 @@ public interface FileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.FileSystemProps, - ) : CdkObject(cdkObject), FileSystemProps { + ) : CdkObject(cdkObject), + FileSystemProps { /** * Allow access from anonymous client that doesn't use IAM authentication. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IAccessPoint.kt index 3331236b78..2b02e1207e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IAccessPoint.kt @@ -32,7 +32,8 @@ public interface IAccessPoint : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.IAccessPoint, - ) : CdkObject(cdkObject), IAccessPoint { + ) : CdkObject(cdkObject), + IAccessPoint { /** * The ARN of the AccessPoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IFileSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IFileSystem.kt index 8e5cd4c043..9723ece3f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IFileSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/IFileSystem.kt @@ -70,7 +70,8 @@ public interface IFileSystem : IConnectable, IResourceWithPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.IFileSystem, - ) : CdkObject(cdkObject), IFileSystem { + ) : CdkObject(cdkObject), + IFileSystem { /** * Add a statement to the resource's resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/OneZoneFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/OneZoneFileSystemProps.kt index dd784f121a..18774b6488 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/OneZoneFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/OneZoneFileSystemProps.kt @@ -102,7 +102,8 @@ public interface OneZoneFileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.OneZoneFileSystemProps, - ) : CdkObject(cdkObject), OneZoneFileSystemProps { + ) : CdkObject(cdkObject), + OneZoneFileSystemProps { /** * The availability zone name of the destination file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/PosixUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/PosixUser.kt index 1e47fc9c2b..27a401e95a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/PosixUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/PosixUser.kt @@ -132,7 +132,8 @@ public interface PosixUser { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.PosixUser, - ) : CdkObject(cdkObject), PosixUser { + ) : CdkObject(cdkObject), + PosixUser { /** * The POSIX group ID used for all file system operations using this access point. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/RegionalFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/RegionalFileSystemProps.kt index 1134ab55c8..1dca5684f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/RegionalFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/RegionalFileSystemProps.kt @@ -81,7 +81,8 @@ public interface RegionalFileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.RegionalFileSystemProps, - ) : CdkObject(cdkObject), RegionalFileSystemProps { + ) : CdkObject(cdkObject), + RegionalFileSystemProps { /** * AWS KMS key used to protect the encrypted file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ReplicationConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ReplicationConfigurationProps.kt index 71260dcf85..ab8485669c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ReplicationConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/efs/ReplicationConfigurationProps.kt @@ -129,7 +129,8 @@ public interface ReplicationConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.efs.ReplicationConfigurationProps, - ) : CdkObject(cdkObject), ReplicationConfigurationProps { + ) : CdkObject(cdkObject), + ReplicationConfigurationProps { /** * The availability zone name of the destination file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntry.kt new file mode 100644 index 0000000000..ca497eebfb --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntry.kt @@ -0,0 +1,244 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Represents an access entry in an Amazon EKS cluster. + * + * An access entry defines the permissions and scope for a user or role to access an Amazon EKS + * cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessPolicy accessPolicy; + * Cluster cluster; + * AccessEntry accessEntry = AccessEntry.Builder.create(this, "MyAccessEntry") + * .accessPolicies(List.of(accessPolicy)) + * .cluster(cluster) + * .principal("principal") + * // the properties below are optional + * .accessEntryName("accessEntryName") + * .accessEntryType(AccessEntryType.STANDARD) + * .build(); + * ``` + */ +public open class AccessEntry( + cdkObject: software.amazon.awscdk.services.eks.AccessEntry, +) : Resource(cdkObject), + IAccessEntry { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: AccessEntryProps, + ) : + this(software.amazon.awscdk.services.eks.AccessEntry(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(AccessEntryProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: AccessEntryProps.Builder.() -> Unit, + ) : this(scope, id, AccessEntryProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the access entry. + */ + public override fun accessEntryArn(): String = unwrap(this).getAccessEntryArn() + + /** + * The name of the access entry. + */ + public override fun accessEntryName(): String = unwrap(this).getAccessEntryName() + + /** + * Add the access policies for this entry. + * + * @param newAccessPolicies * The new access policies to add. + */ + public open fun addAccessPolicies(newAccessPolicies: List) { + unwrap(this).addAccessPolicies(newAccessPolicies.map(IAccessPolicy.Companion::unwrap)) + } + + /** + * Add the access policies for this entry. + * + * @param newAccessPolicies * The new access policies to add. + */ + public open fun addAccessPolicies(vararg newAccessPolicies: IAccessPolicy): Unit = + addAccessPolicies(newAccessPolicies.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.eks.AccessEntry]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the AccessEntry. + * + * Default: - No access entry name is provided + * + * @param accessEntryName The name of the AccessEntry. + */ + public fun accessEntryName(accessEntryName: String) + + /** + * The type of the AccessEntry. + * + * Default: STANDARD + * + * @param accessEntryType The type of the AccessEntry. + */ + public fun accessEntryType(accessEntryType: AccessEntryType) + + /** + * The access policies that define the permissions and scope for the access entry. + * + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + public fun accessPolicies(accessPolicies: List) + + /** + * The access policies that define the permissions and scope for the access entry. + * + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + public fun accessPolicies(vararg accessPolicies: IAccessPolicy) + + /** + * The Amazon EKS cluster to which the access entry applies. + * + * @param cluster The Amazon EKS cluster to which the access entry applies. + */ + public fun cluster(cluster: ICluster) + + /** + * The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry + * with. + * + * @param principal The Amazon Resource Name (ARN) of the principal (user or role) to associate + * the access entry with. + */ + public fun principal(principal: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessEntry.Builder = + software.amazon.awscdk.services.eks.AccessEntry.Builder.create(scope, id) + + /** + * The name of the AccessEntry. + * + * Default: - No access entry name is provided + * + * @param accessEntryName The name of the AccessEntry. + */ + override fun accessEntryName(accessEntryName: String) { + cdkBuilder.accessEntryName(accessEntryName) + } + + /** + * The type of the AccessEntry. + * + * Default: STANDARD + * + * @param accessEntryType The type of the AccessEntry. + */ + override fun accessEntryType(accessEntryType: AccessEntryType) { + cdkBuilder.accessEntryType(accessEntryType.let(AccessEntryType.Companion::unwrap)) + } + + /** + * The access policies that define the permissions and scope for the access entry. + * + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + override fun accessPolicies(accessPolicies: List) { + cdkBuilder.accessPolicies(accessPolicies.map(IAccessPolicy.Companion::unwrap)) + } + + /** + * The access policies that define the permissions and scope for the access entry. + * + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + override fun accessPolicies(vararg accessPolicies: IAccessPolicy): Unit = + accessPolicies(accessPolicies.toList()) + + /** + * The Amazon EKS cluster to which the access entry applies. + * + * @param cluster The Amazon EKS cluster to which the access entry applies. + */ + override fun cluster(cluster: ICluster) { + cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry + * with. + * + * @param principal The Amazon Resource Name (ARN) of the principal (user or role) to associate + * the access entry with. + */ + override fun principal(principal: String) { + cdkBuilder.principal(principal) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessEntry = cdkBuilder.build() + } + + public companion object { + public fun fromAccessEntryAttributes( + scope: CloudshiftdevConstructsConstruct, + id: String, + attrs: AccessEntryAttributes, + ): IAccessEntry = + software.amazon.awscdk.services.eks.AccessEntry.fromAccessEntryAttributes(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, attrs.let(AccessEntryAttributes.Companion::unwrap)).let(IAccessEntry::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b388e22987c78847bff28f06d6483dc541b55ec23743a313cdccdc5314353bbb") + public fun fromAccessEntryAttributes( + scope: CloudshiftdevConstructsConstruct, + id: String, + attrs: AccessEntryAttributes.Builder.() -> Unit, + ): IAccessEntry = fromAccessEntryAttributes(scope, id, AccessEntryAttributes(attrs)) + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): AccessEntry { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return AccessEntry(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessEntry): AccessEntry = + AccessEntry(cdkObject) + + internal fun unwrap(wrapped: AccessEntry): software.amazon.awscdk.services.eks.AccessEntry = + wrapped.cdkObject as software.amazon.awscdk.services.eks.AccessEntry + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryAttributes.kt new file mode 100644 index 0000000000..9357706c26 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryAttributes.kt @@ -0,0 +1,104 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Represents the attributes of an access entry. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessEntryAttributes accessEntryAttributes = AccessEntryAttributes.builder() + * .accessEntryArn("accessEntryArn") + * .accessEntryName("accessEntryName") + * .build(); + * ``` + */ +public interface AccessEntryAttributes { + /** + * The Amazon Resource Name (ARN) of the access entry. + */ + public fun accessEntryArn(): String + + /** + * The name of the access entry. + */ + public fun accessEntryName(): String + + /** + * A builder for [AccessEntryAttributes] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accessEntryArn The Amazon Resource Name (ARN) of the access entry. + */ + public fun accessEntryArn(accessEntryArn: String) + + /** + * @param accessEntryName The name of the access entry. + */ + public fun accessEntryName(accessEntryName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessEntryAttributes.Builder = + software.amazon.awscdk.services.eks.AccessEntryAttributes.builder() + + /** + * @param accessEntryArn The Amazon Resource Name (ARN) of the access entry. + */ + override fun accessEntryArn(accessEntryArn: String) { + cdkBuilder.accessEntryArn(accessEntryArn) + } + + /** + * @param accessEntryName The name of the access entry. + */ + override fun accessEntryName(accessEntryName: String) { + cdkBuilder.accessEntryName(accessEntryName) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessEntryAttributes = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AccessEntryAttributes, + ) : CdkObject(cdkObject), + AccessEntryAttributes { + /** + * The Amazon Resource Name (ARN) of the access entry. + */ + override fun accessEntryArn(): String = unwrap(this).getAccessEntryArn() + + /** + * The name of the access entry. + */ + override fun accessEntryName(): String = unwrap(this).getAccessEntryName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AccessEntryAttributes { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessEntryAttributes): + AccessEntryAttributes = CdkObjectWrappers.wrap(cdkObject) as? AccessEntryAttributes ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AccessEntryAttributes): + software.amazon.awscdk.services.eks.AccessEntryAttributes = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.eks.AccessEntryAttributes + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryProps.kt new file mode 100644 index 0000000000..dc9c9575a1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryProps.kt @@ -0,0 +1,206 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Represents the properties required to create an Amazon EKS access entry. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessPolicy accessPolicy; + * Cluster cluster; + * AccessEntryProps accessEntryProps = AccessEntryProps.builder() + * .accessPolicies(List.of(accessPolicy)) + * .cluster(cluster) + * .principal("principal") + * // the properties below are optional + * .accessEntryName("accessEntryName") + * .accessEntryType(AccessEntryType.STANDARD) + * .build(); + * ``` + */ +public interface AccessEntryProps { + /** + * The name of the AccessEntry. + * + * Default: - No access entry name is provided + */ + public fun accessEntryName(): String? = unwrap(this).getAccessEntryName() + + /** + * The type of the AccessEntry. + * + * Default: STANDARD + */ + public fun accessEntryType(): AccessEntryType? = + unwrap(this).getAccessEntryType()?.let(AccessEntryType::wrap) + + /** + * The access policies that define the permissions and scope for the access entry. + */ + public fun accessPolicies(): List + + /** + * The Amazon EKS cluster to which the access entry applies. + */ + public fun cluster(): ICluster + + /** + * The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry + * with. + */ + public fun principal(): String + + /** + * A builder for [AccessEntryProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accessEntryName The name of the AccessEntry. + */ + public fun accessEntryName(accessEntryName: String) + + /** + * @param accessEntryType The type of the AccessEntry. + */ + public fun accessEntryType(accessEntryType: AccessEntryType) + + /** + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + public fun accessPolicies(accessPolicies: List) + + /** + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + public fun accessPolicies(vararg accessPolicies: IAccessPolicy) + + /** + * @param cluster The Amazon EKS cluster to which the access entry applies. + */ + public fun cluster(cluster: ICluster) + + /** + * @param principal The Amazon Resource Name (ARN) of the principal (user or role) to associate + * the access entry with. + */ + public fun principal(principal: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessEntryProps.Builder = + software.amazon.awscdk.services.eks.AccessEntryProps.builder() + + /** + * @param accessEntryName The name of the AccessEntry. + */ + override fun accessEntryName(accessEntryName: String) { + cdkBuilder.accessEntryName(accessEntryName) + } + + /** + * @param accessEntryType The type of the AccessEntry. + */ + override fun accessEntryType(accessEntryType: AccessEntryType) { + cdkBuilder.accessEntryType(accessEntryType.let(AccessEntryType.Companion::unwrap)) + } + + /** + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + override fun accessPolicies(accessPolicies: List) { + cdkBuilder.accessPolicies(accessPolicies.map(IAccessPolicy.Companion::unwrap)) + } + + /** + * @param accessPolicies The access policies that define the permissions and scope for the + * access entry. + */ + override fun accessPolicies(vararg accessPolicies: IAccessPolicy): Unit = + accessPolicies(accessPolicies.toList()) + + /** + * @param cluster The Amazon EKS cluster to which the access entry applies. + */ + override fun cluster(cluster: ICluster) { + cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) + } + + /** + * @param principal The Amazon Resource Name (ARN) of the principal (user or role) to associate + * the access entry with. + */ + override fun principal(principal: String) { + cdkBuilder.principal(principal) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessEntryProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AccessEntryProps, + ) : CdkObject(cdkObject), + AccessEntryProps { + /** + * The name of the AccessEntry. + * + * Default: - No access entry name is provided + */ + override fun accessEntryName(): String? = unwrap(this).getAccessEntryName() + + /** + * The type of the AccessEntry. + * + * Default: STANDARD + */ + override fun accessEntryType(): AccessEntryType? = + unwrap(this).getAccessEntryType()?.let(AccessEntryType::wrap) + + /** + * The access policies that define the permissions and scope for the access entry. + */ + override fun accessPolicies(): List = + unwrap(this).getAccessPolicies().map(IAccessPolicy::wrap) + + /** + * The Amazon EKS cluster to which the access entry applies. + */ + override fun cluster(): ICluster = unwrap(this).getCluster().let(ICluster::wrap) + + /** + * The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry + * with. + */ + override fun principal(): String = unwrap(this).getPrincipal() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AccessEntryProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessEntryProps): + AccessEntryProps = CdkObjectWrappers.wrap(cdkObject) as? AccessEntryProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AccessEntryProps): + software.amazon.awscdk.services.eks.AccessEntryProps = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.eks.AccessEntryProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryType.kt new file mode 100644 index 0000000000..3ca7103f21 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessEntryType.kt @@ -0,0 +1,27 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +public enum class AccessEntryType( + private val cdkObject: software.amazon.awscdk.services.eks.AccessEntryType, +) { + STANDARD(software.amazon.awscdk.services.eks.AccessEntryType.STANDARD), + FARGATE_LINUX(software.amazon.awscdk.services.eks.AccessEntryType.FARGATE_LINUX), + EC2_LINUX(software.amazon.awscdk.services.eks.AccessEntryType.EC2_LINUX), + EC2_WINDOWS(software.amazon.awscdk.services.eks.AccessEntryType.EC2_WINDOWS), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessEntryType): + AccessEntryType = when (cdkObject) { + software.amazon.awscdk.services.eks.AccessEntryType.STANDARD -> AccessEntryType.STANDARD + software.amazon.awscdk.services.eks.AccessEntryType.FARGATE_LINUX -> + AccessEntryType.FARGATE_LINUX + software.amazon.awscdk.services.eks.AccessEntryType.EC2_LINUX -> AccessEntryType.EC2_LINUX + software.amazon.awscdk.services.eks.AccessEntryType.EC2_WINDOWS -> AccessEntryType.EC2_WINDOWS + } + + internal fun unwrap(wrapped: AccessEntryType): + software.amazon.awscdk.services.eks.AccessEntryType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicy.kt new file mode 100644 index 0000000000..d58b06ee81 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicy.kt @@ -0,0 +1,142 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Represents an Amazon EKS Access Policy that implements the IAccessPolicy interface. + * + * Example: + * + * ``` + * // AmazonEKSClusterAdminPolicy with `cluster` scope + * AccessPolicy.fromAccessPolicyName("AmazonEKSClusterAdminPolicy", + * AccessPolicyNameOptions.builder() + * .accessScopeType(AccessScopeType.CLUSTER) + * .build()); + * // AmazonEKSAdminPolicy with `namespace` scope + * AccessPolicy.fromAccessPolicyName("AmazonEKSAdminPolicy", AccessPolicyNameOptions.builder() + * .accessScopeType(AccessScopeType.NAMESPACE) + * .namespaces(List.of("foo", "bar")) + * .build()); + * ``` + */ +public open class AccessPolicy( + cdkObject: software.amazon.awscdk.services.eks.AccessPolicy, +) : CdkObject(cdkObject), + IAccessPolicy { + public constructor(props: AccessPolicyProps) : + this(software.amazon.awscdk.services.eks.AccessPolicy(props.let(AccessPolicyProps.Companion::unwrap)) + ) + + public constructor(props: AccessPolicyProps.Builder.() -> Unit) : this(AccessPolicyProps(props) + ) + + /** + * The scope of the access policy, which determines the level of access granted. + */ + public override fun accessScope(): AccessScope = + unwrap(this).getAccessScope().let(AccessScope::wrap) + + /** + * The access policy itself, which defines the specific permissions. + */ + public override fun policy(): String = unwrap(this).getPolicy() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.eks.AccessPolicy]. + */ + @CdkDslMarker + public interface Builder { + /** + * The scope of the access policy, which determines the level of access granted. + * + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + public fun accessScope(accessScope: AccessScope) + + /** + * The scope of the access policy, which determines the level of access granted. + * + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d7047007961666d97aa191fc78379a2b2a3b780f196c639fd6258f095df990e9") + public fun accessScope(accessScope: AccessScope.Builder.() -> Unit) + + /** + * The access policy itself, which defines the specific permissions. + * + * @param policy The access policy itself, which defines the specific permissions. + */ + public fun policy(policy: AccessPolicyArn) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessPolicy.Builder = + software.amazon.awscdk.services.eks.AccessPolicy.Builder.create() + + /** + * The scope of the access policy, which determines the level of access granted. + * + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + override fun accessScope(accessScope: AccessScope) { + cdkBuilder.accessScope(accessScope.let(AccessScope.Companion::unwrap)) + } + + /** + * The scope of the access policy, which determines the level of access granted. + * + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d7047007961666d97aa191fc78379a2b2a3b780f196c639fd6258f095df990e9") + override fun accessScope(accessScope: AccessScope.Builder.() -> Unit): Unit = + accessScope(AccessScope(accessScope)) + + /** + * The access policy itself, which defines the specific permissions. + * + * @param policy The access policy itself, which defines the specific permissions. + */ + override fun policy(policy: AccessPolicyArn) { + cdkBuilder.policy(policy.let(AccessPolicyArn.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessPolicy = cdkBuilder.build() + } + + public companion object { + public fun fromAccessPolicyName(policyName: String, options: AccessPolicyNameOptions): + IAccessPolicy = + software.amazon.awscdk.services.eks.AccessPolicy.fromAccessPolicyName(policyName, + options.let(AccessPolicyNameOptions.Companion::unwrap)).let(IAccessPolicy::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("edf5384f730db35bbf7ec4f054fc7aa30ef9a5579006bdc20c37e293723d2ba5") + public fun fromAccessPolicyName(policyName: String, + options: AccessPolicyNameOptions.Builder.() -> Unit): IAccessPolicy = + fromAccessPolicyName(policyName, AccessPolicyNameOptions(options)) + + public operator fun invoke(block: Builder.() -> Unit = {}): AccessPolicy { + val builderImpl = BuilderImpl() + return AccessPolicy(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessPolicy): AccessPolicy = + AccessPolicy(cdkObject) + + internal fun unwrap(wrapped: AccessPolicy): software.amazon.awscdk.services.eks.AccessPolicy = + wrapped.cdkObject as software.amazon.awscdk.services.eks.AccessPolicy + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyArn.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyArn.kt new file mode 100644 index 0000000000..5f07bc98d7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyArn.kt @@ -0,0 +1,69 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.String + +/** + * Represents an Amazon EKS Access Policy ARN. + * + * Amazon EKS Access Policies are used to control access to Amazon EKS clusters. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessPolicyArn accessPolicyArn = AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY; + * ``` + * + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html) + */ +public open class AccessPolicyArn( + cdkObject: software.amazon.awscdk.services.eks.AccessPolicyArn, +) : CdkObject(cdkObject) { + public constructor(policyName: String) : + this(software.amazon.awscdk.services.eks.AccessPolicyArn(policyName) + ) + + /** + * The Amazon Resource Name (ARN) of the access policy. + */ + public open fun policyArn(): String = unwrap(this).getPolicyArn() + + /** + * * The name of the Amazon EKS access policy. + * + * This is used to construct the policy ARN. + */ + public open fun policyName(): String = unwrap(this).getPolicyName() + + public companion object { + public val AMAZON_EKS_ADMIN_POLICY: AccessPolicyArn = + AccessPolicyArn.wrap(software.amazon.awscdk.services.eks.AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY) + + public val AMAZON_EKS_ADMIN_VIEW_POLICY: AccessPolicyArn = + AccessPolicyArn.wrap(software.amazon.awscdk.services.eks.AccessPolicyArn.AMAZON_EKS_ADMIN_VIEW_POLICY) + + public val AMAZON_EKS_CLUSTER_ADMIN_POLICY: AccessPolicyArn = + AccessPolicyArn.wrap(software.amazon.awscdk.services.eks.AccessPolicyArn.AMAZON_EKS_CLUSTER_ADMIN_POLICY) + + public val AMAZON_EKS_EDIT_POLICY: AccessPolicyArn = + AccessPolicyArn.wrap(software.amazon.awscdk.services.eks.AccessPolicyArn.AMAZON_EKS_EDIT_POLICY) + + public val AMAZON_EKS_VIEW_POLICY: AccessPolicyArn = + AccessPolicyArn.wrap(software.amazon.awscdk.services.eks.AccessPolicyArn.AMAZON_EKS_VIEW_POLICY) + + public fun of(policyName: String): AccessPolicyArn = + software.amazon.awscdk.services.eks.AccessPolicyArn.of(policyName).let(AccessPolicyArn::wrap) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessPolicyArn): + AccessPolicyArn = AccessPolicyArn(cdkObject) + + internal fun unwrap(wrapped: AccessPolicyArn): + software.amazon.awscdk.services.eks.AccessPolicyArn = wrapped.cdkObject as + software.amazon.awscdk.services.eks.AccessPolicyArn + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyNameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyNameOptions.kt new file mode 100644 index 0000000000..112cb64bdb --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyNameOptions.kt @@ -0,0 +1,134 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Represents the options required to create an Amazon EKS Access Policy using the + * `fromAccessPolicyName()` method. + * + * Example: + * + * ``` + * // AmazonEKSClusterAdminPolicy with `cluster` scope + * AccessPolicy.fromAccessPolicyName("AmazonEKSClusterAdminPolicy", + * AccessPolicyNameOptions.builder() + * .accessScopeType(AccessScopeType.CLUSTER) + * .build()); + * // AmazonEKSAdminPolicy with `namespace` scope + * AccessPolicy.fromAccessPolicyName("AmazonEKSAdminPolicy", AccessPolicyNameOptions.builder() + * .accessScopeType(AccessScopeType.NAMESPACE) + * .namespaces(List.of("foo", "bar")) + * .build()); + * ``` + */ +public interface AccessPolicyNameOptions { + /** + * The scope of the access policy. + * + * This determines the level of access granted by the policy. + */ + public fun accessScopeType(): AccessScopeType + + /** + * An optional array of Kubernetes namespaces to which the access policy applies. + * + * Default: - no specific namespaces for this scope + */ + public fun namespaces(): List = unwrap(this).getNamespaces() ?: emptyList() + + /** + * A builder for [AccessPolicyNameOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accessScopeType The scope of the access policy. + * This determines the level of access granted by the policy. + */ + public fun accessScopeType(accessScopeType: AccessScopeType) + + /** + * @param namespaces An optional array of Kubernetes namespaces to which the access policy + * applies. + */ + public fun namespaces(namespaces: List) + + /** + * @param namespaces An optional array of Kubernetes namespaces to which the access policy + * applies. + */ + public fun namespaces(vararg namespaces: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessPolicyNameOptions.Builder = + software.amazon.awscdk.services.eks.AccessPolicyNameOptions.builder() + + /** + * @param accessScopeType The scope of the access policy. + * This determines the level of access granted by the policy. + */ + override fun accessScopeType(accessScopeType: AccessScopeType) { + cdkBuilder.accessScopeType(accessScopeType.let(AccessScopeType.Companion::unwrap)) + } + + /** + * @param namespaces An optional array of Kubernetes namespaces to which the access policy + * applies. + */ + override fun namespaces(namespaces: List) { + cdkBuilder.namespaces(namespaces) + } + + /** + * @param namespaces An optional array of Kubernetes namespaces to which the access policy + * applies. + */ + override fun namespaces(vararg namespaces: String): Unit = namespaces(namespaces.toList()) + + public fun build(): software.amazon.awscdk.services.eks.AccessPolicyNameOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AccessPolicyNameOptions, + ) : CdkObject(cdkObject), + AccessPolicyNameOptions { + /** + * The scope of the access policy. + * + * This determines the level of access granted by the policy. + */ + override fun accessScopeType(): AccessScopeType = + unwrap(this).getAccessScopeType().let(AccessScopeType::wrap) + + /** + * An optional array of Kubernetes namespaces to which the access policy applies. + * + * Default: - no specific namespaces for this scope + */ + override fun namespaces(): List = unwrap(this).getNamespaces() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AccessPolicyNameOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessPolicyNameOptions): + AccessPolicyNameOptions = CdkObjectWrappers.wrap(cdkObject) as? AccessPolicyNameOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AccessPolicyNameOptions): + software.amazon.awscdk.services.eks.AccessPolicyNameOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.eks.AccessPolicyNameOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyProps.kt new file mode 100644 index 0000000000..6a5a4c06cb --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessPolicyProps.kt @@ -0,0 +1,127 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Properties for configuring an Amazon EKS Access Policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessPolicyArn accessPolicyArn; + * AccessPolicyProps accessPolicyProps = AccessPolicyProps.builder() + * .accessScope(AccessScope.builder() + * .type(AccessScopeType.NAMESPACE) + * // the properties below are optional + * .namespaces(List.of("namespaces")) + * .build()) + * .policy(accessPolicyArn) + * .build(); + * ``` + */ +public interface AccessPolicyProps { + /** + * The scope of the access policy, which determines the level of access granted. + */ + public fun accessScope(): AccessScope + + /** + * The access policy itself, which defines the specific permissions. + */ + public fun policy(): AccessPolicyArn + + /** + * A builder for [AccessPolicyProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + public fun accessScope(accessScope: AccessScope) + + /** + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4a6bde82872a0b1d0dd41f09edc9de912f75e8a75ee6cb7003724844770b19d3") + public fun accessScope(accessScope: AccessScope.Builder.() -> Unit) + + /** + * @param policy The access policy itself, which defines the specific permissions. + */ + public fun policy(policy: AccessPolicyArn) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessPolicyProps.Builder = + software.amazon.awscdk.services.eks.AccessPolicyProps.builder() + + /** + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + override fun accessScope(accessScope: AccessScope) { + cdkBuilder.accessScope(accessScope.let(AccessScope.Companion::unwrap)) + } + + /** + * @param accessScope The scope of the access policy, which determines the level of access + * granted. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4a6bde82872a0b1d0dd41f09edc9de912f75e8a75ee6cb7003724844770b19d3") + override fun accessScope(accessScope: AccessScope.Builder.() -> Unit): Unit = + accessScope(AccessScope(accessScope)) + + /** + * @param policy The access policy itself, which defines the specific permissions. + */ + override fun policy(policy: AccessPolicyArn) { + cdkBuilder.policy(policy.let(AccessPolicyArn.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessPolicyProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AccessPolicyProps, + ) : CdkObject(cdkObject), + AccessPolicyProps { + /** + * The scope of the access policy, which determines the level of access granted. + */ + override fun accessScope(): AccessScope = unwrap(this).getAccessScope().let(AccessScope::wrap) + + /** + * The access policy itself, which defines the specific permissions. + */ + override fun policy(): AccessPolicyArn = unwrap(this).getPolicy().let(AccessPolicyArn::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AccessPolicyProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessPolicyProps): + AccessPolicyProps = CdkObjectWrappers.wrap(cdkObject) as? AccessPolicyProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AccessPolicyProps): + software.amazon.awscdk.services.eks.AccessPolicyProps = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.eks.AccessPolicyProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScope.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScope.kt new file mode 100644 index 0000000000..4d4b8d952e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScope.kt @@ -0,0 +1,133 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Represents the scope of an access policy. + * + * The scope defines the namespaces or cluster-level access granted by the policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AccessScope accessScope = AccessScope.builder() + * .type(AccessScopeType.NAMESPACE) + * // the properties below are optional + * .namespaces(List.of("namespaces")) + * .build(); + * ``` + */ +public interface AccessScope { + /** + * A Kubernetes namespace that an access policy is scoped to. + * + * A value is required if you specified + * namespace for Type. + * + * Default: - no specific namespaces for this scope. + */ + public fun namespaces(): List = unwrap(this).getNamespaces() ?: emptyList() + + /** + * The scope type of the policy, either 'namespace' or 'cluster'. + */ + public fun type(): AccessScopeType + + /** + * A builder for [AccessScope] + */ + @CdkDslMarker + public interface Builder { + /** + * @param namespaces A Kubernetes namespace that an access policy is scoped to. + * A value is required if you specified + * namespace for Type. + */ + public fun namespaces(namespaces: List) + + /** + * @param namespaces A Kubernetes namespace that an access policy is scoped to. + * A value is required if you specified + * namespace for Type. + */ + public fun namespaces(vararg namespaces: String) + + /** + * @param type The scope type of the policy, either 'namespace' or 'cluster'. + */ + public fun type(type: AccessScopeType) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AccessScope.Builder = + software.amazon.awscdk.services.eks.AccessScope.builder() + + /** + * @param namespaces A Kubernetes namespace that an access policy is scoped to. + * A value is required if you specified + * namespace for Type. + */ + override fun namespaces(namespaces: List) { + cdkBuilder.namespaces(namespaces) + } + + /** + * @param namespaces A Kubernetes namespace that an access policy is scoped to. + * A value is required if you specified + * namespace for Type. + */ + override fun namespaces(vararg namespaces: String): Unit = namespaces(namespaces.toList()) + + /** + * @param type The scope type of the policy, either 'namespace' or 'cluster'. + */ + override fun type(type: AccessScopeType) { + cdkBuilder.type(type.let(AccessScopeType.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.eks.AccessScope = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AccessScope, + ) : CdkObject(cdkObject), + AccessScope { + /** + * A Kubernetes namespace that an access policy is scoped to. + * + * A value is required if you specified + * namespace for Type. + * + * Default: - no specific namespaces for this scope. + */ + override fun namespaces(): List = unwrap(this).getNamespaces() ?: emptyList() + + /** + * The scope type of the policy, either 'namespace' or 'cluster'. + */ + override fun type(): AccessScopeType = unwrap(this).getType().let(AccessScopeType::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AccessScope { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessScope): AccessScope = + CdkObjectWrappers.wrap(cdkObject) as? AccessScope ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AccessScope): software.amazon.awscdk.services.eks.AccessScope = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.eks.AccessScope + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScopeType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScopeType.kt new file mode 100644 index 0000000000..744d863eeb --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AccessScopeType.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +public enum class AccessScopeType( + private val cdkObject: software.amazon.awscdk.services.eks.AccessScopeType, +) { + NAMESPACE(software.amazon.awscdk.services.eks.AccessScopeType.NAMESPACE), + CLUSTER(software.amazon.awscdk.services.eks.AccessScopeType.CLUSTER), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AccessScopeType): + AccessScopeType = when (cdkObject) { + software.amazon.awscdk.services.eks.AccessScopeType.NAMESPACE -> AccessScopeType.NAMESPACE + software.amazon.awscdk.services.eks.AccessScopeType.CLUSTER -> AccessScopeType.CLUSTER + } + + internal fun unwrap(wrapped: AccessScopeType): + software.amazon.awscdk.services.eks.AccessScopeType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Addon.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Addon.kt new file mode 100644 index 0000000000..7131be319a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Addon.kt @@ -0,0 +1,207 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Represents an Amazon EKS Add-On. + * + * Example: + * + * ``` + * Cluster cluster; + * Addon.Builder.create(this, "Addon") + * .cluster(cluster) + * .addonName("aws-guardduty-agent") + * .addonVersion("v1.6.1") + * // whether to preserve the add-on software on your cluster but Amazon EKS stops managing any + * settings for the add-on. + * .preserveOnDelete(false) + * .build(); + * ``` + */ +public open class Addon( + cdkObject: software.amazon.awscdk.services.eks.Addon, +) : Resource(cdkObject), + IAddon { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: AddonProps, + ) : + this(software.amazon.awscdk.services.eks.Addon(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(AddonProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: AddonProps.Builder.() -> Unit, + ) : this(scope, id, AddonProps(props) + ) + + /** + * Arn of the addon. + */ + public override fun addonArn(): String = unwrap(this).getAddonArn() + + /** + * Name of the addon. + */ + public override fun addonName(): String = unwrap(this).getAddonName() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.eks.Addon]. + */ + @CdkDslMarker + public interface Builder { + /** + * Name of the Add-On. + * + * @param addonName Name of the Add-On. + */ + public fun addonName(addonName: String) + + /** + * Version of the Add-On. + * + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + * + * Default: the latest version. + * + * @param addonVersion Version of the Add-On. + */ + public fun addonVersion(addonVersion: String) + + /** + * The EKS cluster the Add-On is associated with. + * + * @param cluster The EKS cluster the Add-On is associated with. + */ + public fun cluster(cluster: ICluster) + + /** + * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops + * managing any settings for the add-on. + * + * If an IAM account is associated with the add-on, it isn't removed. + * + * Default: true + * + * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster + * but Amazon EKS stops managing any settings for the add-on. + */ + public fun preserveOnDelete(preserveOnDelete: Boolean) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.Addon.Builder = + software.amazon.awscdk.services.eks.Addon.Builder.create(scope, id) + + /** + * Name of the Add-On. + * + * @param addonName Name of the Add-On. + */ + override fun addonName(addonName: String) { + cdkBuilder.addonName(addonName) + } + + /** + * Version of the Add-On. + * + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + * + * Default: the latest version. + * + * @param addonVersion Version of the Add-On. + */ + override fun addonVersion(addonVersion: String) { + cdkBuilder.addonVersion(addonVersion) + } + + /** + * The EKS cluster the Add-On is associated with. + * + * @param cluster The EKS cluster the Add-On is associated with. + */ + override fun cluster(cluster: ICluster) { + cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) + } + + /** + * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops + * managing any settings for the add-on. + * + * If an IAM account is associated with the add-on, it isn't removed. + * + * Default: true + * + * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster + * but Amazon EKS stops managing any settings for the add-on. + */ + override fun preserveOnDelete(preserveOnDelete: Boolean) { + cdkBuilder.preserveOnDelete(preserveOnDelete) + } + + public fun build(): software.amazon.awscdk.services.eks.Addon = cdkBuilder.build() + } + + public companion object { + public fun fromAddonArn( + scope: CloudshiftdevConstructsConstruct, + id: String, + addonArn: String, + ): IAddon = + software.amazon.awscdk.services.eks.Addon.fromAddonArn(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, addonArn).let(IAddon::wrap) + + public fun fromAddonAttributes( + scope: CloudshiftdevConstructsConstruct, + id: String, + attrs: AddonAttributes, + ): IAddon = + software.amazon.awscdk.services.eks.Addon.fromAddonAttributes(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, attrs.let(AddonAttributes.Companion::unwrap)).let(IAddon::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6ff0b044df6eb43afba012c6e237e93207080143d79437502f8ec440b680d213") + public fun fromAddonAttributes( + scope: CloudshiftdevConstructsConstruct, + id: String, + attrs: AddonAttributes.Builder.() -> Unit, + ): IAddon = fromAddonAttributes(scope, id, AddonAttributes(attrs)) + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): Addon { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return Addon(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.Addon): Addon = + Addon(cdkObject) + + internal fun unwrap(wrapped: Addon): software.amazon.awscdk.services.eks.Addon = + wrapped.cdkObject as software.amazon.awscdk.services.eks.Addon + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonAttributes.kt new file mode 100644 index 0000000000..efad6a805b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonAttributes.kt @@ -0,0 +1,103 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Represents the attributes of an addon for an Amazon EKS cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * AddonAttributes addonAttributes = AddonAttributes.builder() + * .addonName("addonName") + * .clusterName("clusterName") + * .build(); + * ``` + */ +public interface AddonAttributes { + /** + * The name of the addon. + */ + public fun addonName(): String + + /** + * The name of the Amazon EKS cluster the addon is associated with. + */ + public fun clusterName(): String + + /** + * A builder for [AddonAttributes] + */ + @CdkDslMarker + public interface Builder { + /** + * @param addonName The name of the addon. + */ + public fun addonName(addonName: String) + + /** + * @param clusterName The name of the Amazon EKS cluster the addon is associated with. + */ + public fun clusterName(clusterName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AddonAttributes.Builder = + software.amazon.awscdk.services.eks.AddonAttributes.builder() + + /** + * @param addonName The name of the addon. + */ + override fun addonName(addonName: String) { + cdkBuilder.addonName(addonName) + } + + /** + * @param clusterName The name of the Amazon EKS cluster the addon is associated with. + */ + override fun clusterName(clusterName: String) { + cdkBuilder.clusterName(clusterName) + } + + public fun build(): software.amazon.awscdk.services.eks.AddonAttributes = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AddonAttributes, + ) : CdkObject(cdkObject), + AddonAttributes { + /** + * The name of the addon. + */ + override fun addonName(): String = unwrap(this).getAddonName() + + /** + * The name of the Amazon EKS cluster the addon is associated with. + */ + override fun clusterName(): String = unwrap(this).getClusterName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AddonAttributes { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AddonAttributes): + AddonAttributes = CdkObjectWrappers.wrap(cdkObject) as? AddonAttributes ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AddonAttributes): + software.amazon.awscdk.services.eks.AddonAttributes = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.eks.AddonAttributes + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonProps.kt new file mode 100644 index 0000000000..cd29c61d50 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AddonProps.kt @@ -0,0 +1,184 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.String +import kotlin.Unit + +/** + * Properties for creating an Amazon EKS Add-On. + * + * Example: + * + * ``` + * Cluster cluster; + * Addon.Builder.create(this, "Addon") + * .cluster(cluster) + * .addonName("aws-guardduty-agent") + * .addonVersion("v1.6.1") + * // whether to preserve the add-on software on your cluster but Amazon EKS stops managing any + * settings for the add-on. + * .preserveOnDelete(false) + * .build(); + * ``` + */ +public interface AddonProps { + /** + * Name of the Add-On. + */ + public fun addonName(): String + + /** + * Version of the Add-On. + * + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + * + * Default: the latest version. + */ + public fun addonVersion(): String? = unwrap(this).getAddonVersion() + + /** + * The EKS cluster the Add-On is associated with. + */ + public fun cluster(): ICluster + + /** + * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops + * managing any settings for the add-on. + * + * If an IAM account is associated with the add-on, it isn't removed. + * + * Default: true + */ + public fun preserveOnDelete(): Boolean? = unwrap(this).getPreserveOnDelete() + + /** + * A builder for [AddonProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param addonName Name of the Add-On. + */ + public fun addonName(addonName: String) + + /** + * @param addonVersion Version of the Add-On. + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + */ + public fun addonVersion(addonVersion: String) + + /** + * @param cluster The EKS cluster the Add-On is associated with. + */ + public fun cluster(cluster: ICluster) + + /** + * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster + * but Amazon EKS stops managing any settings for the add-on. + * If an IAM account is associated with the add-on, it isn't removed. + */ + public fun preserveOnDelete(preserveOnDelete: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.eks.AddonProps.Builder = + software.amazon.awscdk.services.eks.AddonProps.builder() + + /** + * @param addonName Name of the Add-On. + */ + override fun addonName(addonName: String) { + cdkBuilder.addonName(addonName) + } + + /** + * @param addonVersion Version of the Add-On. + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + */ + override fun addonVersion(addonVersion: String) { + cdkBuilder.addonVersion(addonVersion) + } + + /** + * @param cluster The EKS cluster the Add-On is associated with. + */ + override fun cluster(cluster: ICluster) { + cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) + } + + /** + * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster + * but Amazon EKS stops managing any settings for the add-on. + * If an IAM account is associated with the add-on, it isn't removed. + */ + override fun preserveOnDelete(preserveOnDelete: Boolean) { + cdkBuilder.preserveOnDelete(preserveOnDelete) + } + + public fun build(): software.amazon.awscdk.services.eks.AddonProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.AddonProps, + ) : CdkObject(cdkObject), + AddonProps { + /** + * Name of the Add-On. + */ + override fun addonName(): String = unwrap(this).getAddonName() + + /** + * Version of the Add-On. + * + * You can check all available versions with describe-addon-versons. + * For example, this lists all available versions for the `eks-pod-identity-agent` addon: + * $ aws eks describe-addon-versions --addon-name eks-pod-identity-agent \ + * --query 'addons[*].addonVersions[*].addonVersion' + * + * Default: the latest version. + */ + override fun addonVersion(): String? = unwrap(this).getAddonVersion() + + /** + * The EKS cluster the Add-On is associated with. + */ + override fun cluster(): ICluster = unwrap(this).getCluster().let(ICluster::wrap) + + /** + * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops + * managing any settings for the add-on. + * + * If an IAM account is associated with the add-on, it isn't removed. + * + * Default: true + */ + override fun preserveOnDelete(): Boolean? = unwrap(this).getPreserveOnDelete() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AddonProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AddonProps): AddonProps = + CdkObjectWrappers.wrap(cdkObject) as? AddonProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AddonProps): software.amazon.awscdk.services.eks.AddonProps = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.eks.AddonProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerOptions.kt index 6cdae3cfb6..52fdbedc9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerOptions.kt @@ -16,9 +16,9 @@ import kotlin.Unit * * ``` * Cluster.Builder.create(this, "HelloEKS") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .albController(AlbControllerOptions.builder() - * .version(AlbControllerVersion.V2_6_2) + * .version(AlbControllerVersion.V2_8_2) * .build()) * .build(); * ``` @@ -121,7 +121,8 @@ public interface AlbControllerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AlbControllerOptions, - ) : CdkObject(cdkObject), AlbControllerOptions { + ) : CdkObject(cdkObject), + AlbControllerOptions { /** * The IAM policy to apply to the service account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerProps.kt index ce44f271c0..6f46d41f1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerProps.kt @@ -115,7 +115,8 @@ public interface AlbControllerProps : AlbControllerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AlbControllerProps, - ) : CdkObject(cdkObject), AlbControllerProps { + ) : CdkObject(cdkObject), + AlbControllerProps { /** * [disable-awslint:ref-via-interface] Cluster to install the controller onto. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerVersion.kt index 1566ac8f92..0cfc5bdce8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AlbControllerVersion.kt @@ -15,9 +15,9 @@ import kotlin.String * * ``` * Cluster.Builder.create(this, "HelloEKS") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .albController(AlbControllerOptions.builder() - * .version(AlbControllerVersion.V2_6_2) + * .version(AlbControllerVersion.V2_8_2) * .build()) * .build(); * ``` @@ -125,6 +125,24 @@ public open class AlbControllerVersion( public val V2_6_2: AlbControllerVersion = AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_6_2) + public val V2_7_0: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_7_0) + + public val V2_7_1: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_7_1) + + public val V2_7_2: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_7_2) + + public val V2_8_0: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_8_0) + + public val V2_8_1: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_8_1) + + public val V2_8_2: AlbControllerVersion = + AlbControllerVersion.wrap(software.amazon.awscdk.services.eks.AlbControllerVersion.V2_8_2) + public fun of(version: String): AlbControllerVersion = software.amazon.awscdk.services.eks.AlbControllerVersion.of(version).let(AlbControllerVersion::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AuthenticationMode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AuthenticationMode.kt new file mode 100644 index 0000000000..b440a42e75 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AuthenticationMode.kt @@ -0,0 +1,26 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +public enum class AuthenticationMode( + private val cdkObject: software.amazon.awscdk.services.eks.AuthenticationMode, +) { + CONFIG_MAP(software.amazon.awscdk.services.eks.AuthenticationMode.CONFIG_MAP), + API_AND_CONFIG_MAP(software.amazon.awscdk.services.eks.AuthenticationMode.API_AND_CONFIG_MAP), + API(software.amazon.awscdk.services.eks.AuthenticationMode.API), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.AuthenticationMode): + AuthenticationMode = when (cdkObject) { + software.amazon.awscdk.services.eks.AuthenticationMode.CONFIG_MAP -> + AuthenticationMode.CONFIG_MAP + software.amazon.awscdk.services.eks.AuthenticationMode.API_AND_CONFIG_MAP -> + AuthenticationMode.API_AND_CONFIG_MAP + software.amazon.awscdk.services.eks.AuthenticationMode.API -> AuthenticationMode.API + } + + internal fun unwrap(wrapped: AuthenticationMode): + software.amazon.awscdk.services.eks.AuthenticationMode = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupCapacityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupCapacityOptions.kt index 5d939eac14..9b3e2c4332 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupCapacityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupCapacityOptions.kt @@ -855,7 +855,8 @@ public interface AutoScalingGroupCapacityOptions : CommonAutoScalingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AutoScalingGroupCapacityOptions, - ) : CdkObject(cdkObject), AutoScalingGroupCapacityOptions { + ) : CdkObject(cdkObject), + AutoScalingGroupCapacityOptions { /** * Whether the instances can initiate connections to anywhere by default. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupOptions.kt index abf94bfd4f..ef5d4eeb94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AutoScalingGroupOptions.kt @@ -173,7 +173,8 @@ public interface AutoScalingGroupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AutoScalingGroupOptions, - ) : CdkObject(cdkObject), AutoScalingGroupOptions { + ) : CdkObject(cdkObject), + AutoScalingGroupOptions { /** * Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the * node (invoke `/etc/eks/bootstrap.sh`) and associate it with the EKS cluster. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthMapping.kt index 553f65cccd..eac28eedd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthMapping.kt @@ -85,7 +85,8 @@ public interface AwsAuthMapping { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AwsAuthMapping, - ) : CdkObject(cdkObject), AwsAuthMapping { + ) : CdkObject(cdkObject), + AwsAuthMapping { /** * A list of groups within Kubernetes to which the role is mapped. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthProps.kt index bd1cd3e9ea..e23084f71e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/AwsAuthProps.kt @@ -59,7 +59,8 @@ public interface AwsAuthProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.AwsAuthProps, - ) : CdkObject(cdkObject), AwsAuthProps { + ) : CdkObject(cdkObject), + AwsAuthProps { /** * The EKS cluster to apply this configuration to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/BootstrapOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/BootstrapOptions.kt index bbbefd0cd7..03288f432c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/BootstrapOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/BootstrapOptions.kt @@ -192,7 +192,8 @@ public interface BootstrapOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.BootstrapOptions, - ) : CdkObject(cdkObject), BootstrapOptions { + ) : CdkObject(cdkObject), + BootstrapOptions { /** * Additional command line arguments to pass to the `/etc/eks/bootstrap.sh` command. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntry.kt index f195d599cd..d0e2c7b4e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntry.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessEntry( cdkObject: software.amazon.awscdk.services.eks.CfnAccessEntry, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -718,7 +720,8 @@ public open class CfnAccessEntry( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnAccessEntry.AccessPolicyProperty, - ) : CdkObject(cdkObject), AccessPolicyProperty { + ) : CdkObject(cdkObject), + AccessPolicyProperty { /** * The scope of an `AccessPolicy` that's associated to an `AccessEntry` . * @@ -842,7 +845,8 @@ public open class CfnAccessEntry( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnAccessEntry.AccessScopeProperty, - ) : CdkObject(cdkObject), AccessScopeProperty { + ) : CdkObject(cdkObject), + AccessScopeProperty { /** * A Kubernetes `namespace` that an access policy is scoped to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntryProps.kt index 0159346e25..7f2c2c3656 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAccessEntryProps.kt @@ -425,7 +425,8 @@ public interface CfnAccessEntryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnAccessEntryProps, - ) : CdkObject(cdkObject), CfnAccessEntryProps { + ) : CdkObject(cdkObject), + CfnAccessEntryProps { /** * The access policies to associate to the access entry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddon.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddon.kt index 81e4e3b804..ce0b203761 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddon.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddon.kt @@ -10,6 +10,8 @@ import io.cloudshiftdev.awscdk.ITaggable import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.Boolean import kotlin.String @@ -38,6 +40,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .addonVersion("addonVersion") * .configurationValues("configurationValues") + * .podIdentityAssociations(List.of(PodIdentityAssociationProperty.builder() + * .roleArn("roleArn") + * .serviceAccount("serviceAccount") + * .build())) * .preserveOnDelete(false) * .resolveConflicts("resolveConflicts") * .serviceAccountRoleArn("serviceAccountRoleArn") @@ -52,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAddon( cdkObject: software.amazon.awscdk.services.eks.CfnAddon, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -132,6 +140,31 @@ public open class CfnAddon( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * An array of Pod Identity Assocations owned by the Addon. + */ + public open fun podIdentityAssociations(): Any? = unwrap(this).getPodIdentityAssociations() + + /** + * An array of Pod Identity Assocations owned by the Addon. + */ + public open fun podIdentityAssociations(`value`: IResolvable) { + unwrap(this).setPodIdentityAssociations(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An array of Pod Identity Assocations owned by the Addon. + */ + public open fun podIdentityAssociations(`value`: List) { + unwrap(this).setPodIdentityAssociations(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An array of Pod Identity Assocations owned by the Addon. + */ + public open fun podIdentityAssociations(vararg `value`: Any): Unit = + podIdentityAssociations(`value`.toList()) + /** * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops * managing any settings for the add-on. @@ -238,6 +271,51 @@ public open class CfnAddon( */ public fun configurationValues(configurationValues: String) + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + public fun podIdentityAssociations(podIdentityAssociations: IResolvable) + + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + public fun podIdentityAssociations(podIdentityAssociations: List) + + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + public fun podIdentityAssociations(vararg podIdentityAssociations: Any) + /** * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops * managing any settings for the add-on. @@ -382,6 +460,56 @@ public open class CfnAddon( cdkBuilder.configurationValues(configurationValues) } + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + override fun podIdentityAssociations(podIdentityAssociations: IResolvable) { + cdkBuilder.podIdentityAssociations(podIdentityAssociations.let(IResolvable.Companion::unwrap)) + } + + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + override fun podIdentityAssociations(podIdentityAssociations: List) { + cdkBuilder.podIdentityAssociations(podIdentityAssociations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + */ + override fun podIdentityAssociations(vararg podIdentityAssociations: Any): Unit = + podIdentityAssociations(podIdentityAssociations.toList()) + /** * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops * managing any settings for the add-on. @@ -510,4 +638,132 @@ public open class CfnAddon( internal fun unwrap(wrapped: CfnAddon): software.amazon.awscdk.services.eks.CfnAddon = wrapped.cdkObject as software.amazon.awscdk.services.eks.CfnAddon } + + /** + * Amazon EKS Pod Identity associations provide the ability to manage credentials for your + * applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon + * EC2 instances. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * PodIdentityAssociationProperty podIdentityAssociationProperty = + * PodIdentityAssociationProperty.builder() + * .roleArn("roleArn") + * .serviceAccount("serviceAccount") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-addon-podidentityassociation.html) + */ + public interface PodIdentityAssociationProperty { + /** + * The Amazon Resource Name (ARN) of the IAM role to associate with the service account. + * + * The EKS Pod Identity agent manages credentials to assume this role for applications in the + * containers in the pods that use this service account. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-addon-podidentityassociation.html#cfn-eks-addon-podidentityassociation-rolearn) + */ + public fun roleArn(): String + + /** + * The name of the Kubernetes service account inside the cluster to associate the IAM + * credentials with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-addon-podidentityassociation.html#cfn-eks-addon-podidentityassociation-serviceaccount) + */ + public fun serviceAccount(): String + + /** + * A builder for [PodIdentityAssociationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM role to associate with the service + * account. + * The EKS Pod Identity agent manages credentials to assume this role for applications in the + * containers in the pods that use this service account. + */ + public fun roleArn(roleArn: String) + + /** + * @param serviceAccount The name of the Kubernetes service account inside the cluster to + * associate the IAM credentials with. + */ + public fun serviceAccount(serviceAccount: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty.Builder = + software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty.builder() + + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM role to associate with the service + * account. + * The EKS Pod Identity agent manages credentials to assume this role for applications in the + * containers in the pods that use this service account. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param serviceAccount The name of the Kubernetes service account inside the cluster to + * associate the IAM credentials with. + */ + override fun serviceAccount(serviceAccount: String) { + cdkBuilder.serviceAccount(serviceAccount) + } + + public fun build(): + software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty, + ) : CdkObject(cdkObject), + PodIdentityAssociationProperty { + /** + * The Amazon Resource Name (ARN) of the IAM role to associate with the service account. + * + * The EKS Pod Identity agent manages credentials to assume this role for applications in the + * containers in the pods that use this service account. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-addon-podidentityassociation.html#cfn-eks-addon-podidentityassociation-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The name of the Kubernetes service account inside the cluster to associate the IAM + * credentials with. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-addon-podidentityassociation.html#cfn-eks-addon-podidentityassociation-serviceaccount) + */ + override fun serviceAccount(): String = unwrap(this).getServiceAccount() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PodIdentityAssociationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty): + PodIdentityAssociationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PodIdentityAssociationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PodIdentityAssociationProperty): + software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddonProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddonProps.kt index 63e45b3615..da1baab798 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddonProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnAddonProps.kt @@ -28,6 +28,10 @@ import kotlin.collections.List * // the properties below are optional * .addonVersion("addonVersion") * .configurationValues("configurationValues") + * .podIdentityAssociations(List.of(PodIdentityAssociationProperty.builder() + * .roleArn("roleArn") + * .serviceAccount("serviceAccount") + * .build())) * .preserveOnDelete(false) * .resolveConflicts("resolveConflicts") * .serviceAccountRoleArn("serviceAccountRoleArn") @@ -69,6 +73,20 @@ public interface CfnAddonProps { */ public fun configurationValues(): String? = unwrap(this).getConfigurationValues() + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + */ + public fun podIdentityAssociations(): Any? = unwrap(this).getPodIdentityAssociations() + /** * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops * managing any settings for the add-on. @@ -158,6 +176,39 @@ public interface CfnAddonProps { */ public fun configurationValues(configurationValues: String) + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + public fun podIdentityAssociations(podIdentityAssociations: IResolvable) + + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + public fun podIdentityAssociations(podIdentityAssociations: List) + + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + public fun podIdentityAssociations(vararg podIdentityAssociations: Any) + /** * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster * but Amazon EKS stops managing any settings for the add-on. @@ -259,6 +310,44 @@ public interface CfnAddonProps { cdkBuilder.configurationValues(configurationValues) } + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + override fun podIdentityAssociations(podIdentityAssociations: IResolvable) { + cdkBuilder.podIdentityAssociations(podIdentityAssociations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + override fun podIdentityAssociations(podIdentityAssociations: List) { + cdkBuilder.podIdentityAssociations(podIdentityAssociations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param podIdentityAssociations An array of Pod Identity Assocations owned by the Addon. + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + */ + override fun podIdentityAssociations(vararg podIdentityAssociations: Any): Unit = + podIdentityAssociations(podIdentityAssociations.toList()) + /** * @param preserveOnDelete Specifying this option preserves the add-on software on your cluster * but Amazon EKS stops managing any settings for the add-on. @@ -342,7 +431,8 @@ public interface CfnAddonProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnAddonProps, - ) : CdkObject(cdkObject), CfnAddonProps { + ) : CdkObject(cdkObject), + CfnAddonProps { /** * The name of the add-on. * @@ -371,6 +461,20 @@ public interface CfnAddonProps { */ override fun configurationValues(): String? = unwrap(this).getConfigurationValues() + /** + * An array of Pod Identity Assocations owned by the Addon. + * + * Each EKS Pod Identity association maps a role to a service account in a namespace in the + * cluster. + * + * For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod + * Identity](https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html) in the EKS User + * Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-addon.html#cfn-eks-addon-podidentityassociations) + */ + override fun podIdentityAssociations(): Any? = unwrap(this).getPodIdentityAssociations() + /** * Specifying this option preserves the add-on software on your cluster but Amazon EKS stops * managing any settings for the add-on. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnCluster.kt index 2a06aec109..9c72835fce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnCluster.kt @@ -84,6 +84,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .authenticationMode("authenticationMode") * .bootstrapClusterCreatorAdminPermissions(false) * .build()) + * .bootstrapSelfManagedAddons(false) * .encryptionConfig(List.of(EncryptionConfigProperty.builder() * .provider(ProviderProperty.builder() * .keyArn("keyArn") @@ -115,6 +116,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .key("key") * .value("value") * .build())) + * .upgradePolicy(UpgradePolicyProperty.builder() + * .supportType("supportType") + * .build()) * .version("version") * .build(); * ``` @@ -123,7 +127,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.eks.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -230,6 +236,28 @@ public open class CfnCluster( public open fun attrOpenIdConnectIssuerUrl(): String = unwrap(this).getAttrOpenIdConnectIssuerUrl() + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + */ + public open fun bootstrapSelfManagedAddons(): Any? = unwrap(this).getBootstrapSelfManagedAddons() + + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + */ + public open fun bootstrapSelfManagedAddons(`value`: Boolean) { + unwrap(this).setBootstrapSelfManagedAddons(`value`) + } + + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + */ + public open fun bootstrapSelfManagedAddons(`value`: IResolvable) { + unwrap(this).setBootstrapSelfManagedAddons(`value`.let(IResolvable.Companion::unwrap)) + } + /** * The encryption configuration for the cluster. */ @@ -421,6 +449,33 @@ public open class CfnCluster( */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) + /** + * This value indicates if extended support is enabled or disabled for the cluster. + */ + public open fun upgradePolicy(): Any? = unwrap(this).getUpgradePolicy() + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + */ + public open fun upgradePolicy(`value`: IResolvable) { + unwrap(this).setUpgradePolicy(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + */ + public open fun upgradePolicy(`value`: UpgradePolicyProperty) { + unwrap(this).setUpgradePolicy(`value`.let(UpgradePolicyProperty.Companion::unwrap)) + } + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e69ccee578f12c8e9cb0abed5977b54f980bf5d1b6b05306d9b143cdbdaf1394") + public open fun upgradePolicy(`value`: UpgradePolicyProperty.Builder.() -> Unit): Unit = + upgradePolicy(UpgradePolicyProperty(`value`)) + /** * The desired Kubernetes version for your cluster. */ @@ -464,6 +519,36 @@ public open class CfnCluster( @JvmName("ec4c1a7d3a6de171eddcfa8c911dcb17d9b0926ae11adb71b6e5b373e025c017") public fun accessConfig(accessConfig: AccessConfigProperty.Builder.() -> Unit) + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + */ + public fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: Boolean) + + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + */ + public fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: IResolvable) + /** * The encryption configuration for the cluster. * @@ -691,6 +776,44 @@ public open class CfnCluster( */ public fun tags(vararg tags: CfnTag) + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + public fun upgradePolicy(upgradePolicy: IResolvable) + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + public fun upgradePolicy(upgradePolicy: UpgradePolicyProperty) + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("601ae62ea260d8c8be3a285492a900d0cbe0a0c0b9f0e2f85dc07038bd73d839") + public fun upgradePolicy(upgradePolicy: UpgradePolicyProperty.Builder.() -> Unit) + /** * The desired Kubernetes version for your cluster. * @@ -744,6 +867,40 @@ public open class CfnCluster( override fun accessConfig(accessConfig: AccessConfigProperty.Builder.() -> Unit): Unit = accessConfig(AccessConfigProperty(accessConfig)) + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + */ + override fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: Boolean) { + cdkBuilder.bootstrapSelfManagedAddons(bootstrapSelfManagedAddons) + } + + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + */ + override fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: IResolvable) { + cdkBuilder.bootstrapSelfManagedAddons(bootstrapSelfManagedAddons.let(IResolvable.Companion::unwrap)) + } + /** * The encryption configuration for the cluster. * @@ -1003,6 +1160,49 @@ public open class CfnCluster( */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + override fun upgradePolicy(upgradePolicy: IResolvable) { + cdkBuilder.upgradePolicy(upgradePolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + override fun upgradePolicy(upgradePolicy: UpgradePolicyProperty) { + cdkBuilder.upgradePolicy(upgradePolicy.let(UpgradePolicyProperty.Companion::unwrap)) + } + + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("601ae62ea260d8c8be3a285492a900d0cbe0a0c0b9f0e2f85dc07038bd73d839") + override fun upgradePolicy(upgradePolicy: UpgradePolicyProperty.Builder.() -> Unit): Unit = + upgradePolicy(UpgradePolicyProperty(upgradePolicy)) + /** * The desired Kubernetes version for your cluster. * @@ -1153,7 +1353,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.AccessConfigProperty, - ) : CdkObject(cdkObject), AccessConfigProperty { + ) : CdkObject(cdkObject), + AccessConfigProperty { /** * The desired authentication mode for the cluster. * @@ -1308,7 +1509,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.ClusterLoggingProperty, - ) : CdkObject(cdkObject), ClusterLoggingProperty { + ) : CdkObject(cdkObject), + ClusterLoggingProperty { /** * The enabled control plane logs for your cluster. All log types are disabled if the array is * empty. @@ -1407,7 +1609,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.ControlPlanePlacementProperty, - ) : CdkObject(cdkObject), ControlPlanePlacementProperty { + ) : CdkObject(cdkObject), + ControlPlanePlacementProperty { /** * The name of the placement group for the Kubernetes control plane instances. * @@ -1554,7 +1757,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.EncryptionConfigProperty, - ) : CdkObject(cdkObject), EncryptionConfigProperty { + ) : CdkObject(cdkObject), + EncryptionConfigProperty { /** * The encryption provider for the cluster. * @@ -1781,7 +1985,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.KubernetesNetworkConfigProperty, - ) : CdkObject(cdkObject), KubernetesNetworkConfigProperty { + ) : CdkObject(cdkObject), + KubernetesNetworkConfigProperty { /** * Specify which IP family is used to assign Kubernetes pod and service IP addresses. * @@ -1952,7 +2157,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.LoggingProperty, - ) : CdkObject(cdkObject), LoggingProperty { + ) : CdkObject(cdkObject), + LoggingProperty { /** * The cluster control plane logging configuration for your cluster. * @@ -2034,7 +2240,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.LoggingTypeConfigProperty, - ) : CdkObject(cdkObject), LoggingTypeConfigProperty { + ) : CdkObject(cdkObject), + LoggingTypeConfigProperty { /** * The name of the log type. * @@ -2268,7 +2475,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.OutpostConfigProperty, - ) : CdkObject(cdkObject), OutpostConfigProperty { + ) : CdkObject(cdkObject), + OutpostConfigProperty { /** * The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on * Outposts. @@ -2401,7 +2609,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.ProviderProperty, - ) : CdkObject(cdkObject), ProviderProperty { + ) : CdkObject(cdkObject), + ProviderProperty { /** * Amazon Resource Name (ARN) or alias of the KMS key. * @@ -2798,7 +3007,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnCluster.ResourcesVpcConfigProperty, - ) : CdkObject(cdkObject), ResourcesVpcConfigProperty { + ) : CdkObject(cdkObject), + ResourcesVpcConfigProperty { /** * Set this value to `true` to enable private access for your cluster's Kubernetes API server * endpoint. @@ -2891,4 +3101,85 @@ public open class CfnCluster( software.amazon.awscdk.services.eks.CfnCluster.ResourcesVpcConfigProperty } } + + /** + * An object representing the Upgrade Policy to use for the cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.eks.*; + * UpgradePolicyProperty upgradePolicyProperty = UpgradePolicyProperty.builder() + * .supportType("supportType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-upgradepolicy.html) + */ + public interface UpgradePolicyProperty { + /** + * Specify the support type for your cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-upgradepolicy.html#cfn-eks-cluster-upgradepolicy-supporttype) + */ + public fun supportType(): String? = unwrap(this).getSupportType() + + /** + * A builder for [UpgradePolicyProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param supportType Specify the support type for your cluster. + */ + public fun supportType(supportType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty.Builder = + software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty.builder() + + /** + * @param supportType Specify the support type for your cluster. + */ + override fun supportType(supportType: String) { + cdkBuilder.supportType(supportType) + } + + public fun build(): software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty, + ) : CdkObject(cdkObject), + UpgradePolicyProperty { + /** + * Specify the support type for your cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-upgradepolicy.html#cfn-eks-cluster-upgradepolicy-supporttype) + */ + override fun supportType(): String? = unwrap(this).getSupportType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): UpgradePolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty): + UpgradePolicyProperty = CdkObjectWrappers.wrap(cdkObject) as? UpgradePolicyProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: UpgradePolicyProperty): + software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.eks.CfnCluster.UpgradePolicyProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnClusterProps.kt index 52c025a36c..f39be2812b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnClusterProps.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -37,6 +38,7 @@ import kotlin.jvm.JvmName * .authenticationMode("authenticationMode") * .bootstrapClusterCreatorAdminPermissions(false) * .build()) + * .bootstrapSelfManagedAddons(false) * .encryptionConfig(List.of(EncryptionConfigProperty.builder() * .provider(ProviderProperty.builder() * .keyArn("keyArn") @@ -68,6 +70,9 @@ import kotlin.jvm.JvmName * .key("key") * .value("value") * .build())) + * .upgradePolicy(UpgradePolicyProperty.builder() + * .supportType("supportType") + * .build()) * .version("version") * .build(); * ``` @@ -82,6 +87,19 @@ public interface CfnClusterProps { */ public fun accessConfig(): Any? = unwrap(this).getAccessConfig() + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + */ + public fun bootstrapSelfManagedAddons(): Any? = unwrap(this).getBootstrapSelfManagedAddons() + /** * The encryption configuration for the cluster. * @@ -165,6 +183,16 @@ public interface CfnClusterProps { */ public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + */ + public fun upgradePolicy(): Any? = unwrap(this).getUpgradePolicy() + /** * The desired Kubernetes version for your cluster. * @@ -200,6 +228,26 @@ public interface CfnClusterProps { @JvmName("1db3433f0287bf06c66c1c5ca6c1dd41f89f3597d9ae877ce350be7da3102116") public fun accessConfig(accessConfig: CfnCluster.AccessConfigProperty.Builder.() -> Unit) + /** + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + */ + public fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: Boolean) + + /** + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + */ + public fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: IResolvable) + /** * @param encryptionConfig The encryption configuration for the cluster. */ @@ -360,6 +408,32 @@ public interface CfnClusterProps { */ public fun tags(vararg tags: CfnTag) + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + public fun upgradePolicy(upgradePolicy: IResolvable) + + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + public fun upgradePolicy(upgradePolicy: CfnCluster.UpgradePolicyProperty) + + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b4575816d8008e8e1ee5740e6ac42389be44347f8d3c7618e12a69a74dba5a5") + public fun upgradePolicy(upgradePolicy: CfnCluster.UpgradePolicyProperty.Builder.() -> Unit) + /** * @param version The desired Kubernetes version for your cluster. * If you don't specify a value here, the default version available in Amazon EKS is used. @@ -396,6 +470,30 @@ public interface CfnClusterProps { override fun accessConfig(accessConfig: CfnCluster.AccessConfigProperty.Builder.() -> Unit): Unit = accessConfig(CfnCluster.AccessConfigProperty(accessConfig)) + /** + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + */ + override fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: Boolean) { + cdkBuilder.bootstrapSelfManagedAddons(bootstrapSelfManagedAddons) + } + + /** + * @param bootstrapSelfManagedAddons If you set this value to `False` when creating a cluster, + * the default networking add-ons will not be installed. + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + */ + override fun bootstrapSelfManagedAddons(bootstrapSelfManagedAddons: IResolvable) { + cdkBuilder.bootstrapSelfManagedAddons(bootstrapSelfManagedAddons.let(IResolvable.Companion::unwrap)) + } + /** * @param encryptionConfig The encryption configuration for the cluster. */ @@ -588,6 +686,37 @@ public interface CfnClusterProps { */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + override fun upgradePolicy(upgradePolicy: IResolvable) { + cdkBuilder.upgradePolicy(upgradePolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + override fun upgradePolicy(upgradePolicy: CfnCluster.UpgradePolicyProperty) { + cdkBuilder.upgradePolicy(upgradePolicy.let(CfnCluster.UpgradePolicyProperty.Companion::unwrap)) + } + + /** + * @param upgradePolicy This value indicates if extended support is enabled or disabled for the + * cluster. + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b4575816d8008e8e1ee5740e6ac42389be44347f8d3c7618e12a69a74dba5a5") + override fun upgradePolicy(upgradePolicy: CfnCluster.UpgradePolicyProperty.Builder.() -> Unit): + Unit = upgradePolicy(CfnCluster.UpgradePolicyProperty(upgradePolicy)) + /** * @param version The desired Kubernetes version for your cluster. * If you don't specify a value here, the default version available in Amazon EKS is used. @@ -604,7 +733,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * The access configuration for the cluster. * @@ -612,6 +742,19 @@ public interface CfnClusterProps { */ override fun accessConfig(): Any? = unwrap(this).getAccessConfig() + /** + * If you set this value to `False` when creating a cluster, the default networking add-ons will + * not be installed. + * + * The default networking addons include vpc-cni, coredns, and kube-proxy. + * + * Use this option when you plan to install third-party alternative add-ons or self-manage the + * default networking add-ons. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-bootstrapselfmanagedaddons) + */ + override fun bootstrapSelfManagedAddons(): Any? = unwrap(this).getBootstrapSelfManagedAddons() + /** * The encryption configuration for the cluster. * @@ -695,6 +838,16 @@ public interface CfnClusterProps { */ override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** + * This value indicates if extended support is enabled or disabled for the cluster. + * + * [Learn more about EKS Extended Support in the EKS User + * Guide.](https://docs.aws.amazon.com/eks/latest/userguide/extended-support-control.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-upgradepolicy) + */ + override fun upgradePolicy(): Any? = unwrap(this).getUpgradePolicy() + /** * The desired Kubernetes version for your cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfile.kt index b21e98aede..2858b12499 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfile.kt @@ -84,7 +84,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFargateProfile( cdkObject: software.amazon.awscdk.services.eks.CfnFargateProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -559,7 +561,8 @@ public open class CfnFargateProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnFargateProfile.LabelProperty, - ) : CdkObject(cdkObject), LabelProperty { + ) : CdkObject(cdkObject), + LabelProperty { /** * Enter a key. * @@ -706,7 +709,8 @@ public open class CfnFargateProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnFargateProfile.SelectorProperty, - ) : CdkObject(cdkObject), SelectorProperty { + ) : CdkObject(cdkObject), + SelectorProperty { /** * The Kubernetes labels that the selector should match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfileProps.kt index 3cd8c34467..2a930b6a01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnFargateProfileProps.kt @@ -270,7 +270,8 @@ public interface CfnFargateProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnFargateProfileProps, - ) : CdkObject(cdkObject), CfnFargateProfileProps { + ) : CdkObject(cdkObject), + CfnFargateProfileProps { /** * The name of your cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfig.kt index 1a0476b83c..db9183b74d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfig.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentityProviderConfig( cdkObject: software.amazon.awscdk.services.eks.CfnIdentityProviderConfig, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -630,7 +632,8 @@ public open class CfnIdentityProviderConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnIdentityProviderConfig.OidcIdentityProviderConfigProperty, - ) : CdkObject(cdkObject), OidcIdentityProviderConfigProperty { + ) : CdkObject(cdkObject), + OidcIdentityProviderConfigProperty { /** * This is also known as *audience* . * @@ -789,7 +792,8 @@ public open class CfnIdentityProviderConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnIdentityProviderConfig.RequiredClaimProperty, - ) : CdkObject(cdkObject), RequiredClaimProperty { + ) : CdkObject(cdkObject), + RequiredClaimProperty { /** * The key to match from the token. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfigProps.kt index 4b46bf58d6..4fc0d9d109 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnIdentityProviderConfigProps.kt @@ -217,7 +217,8 @@ public interface CfnIdentityProviderConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnIdentityProviderConfigProps, - ) : CdkObject(cdkObject), CfnIdentityProviderConfigProps { + ) : CdkObject(cdkObject), + CfnIdentityProviderConfigProps { /** * The name of your cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroup.kt index 8b3ac5ba39..83afc1128a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroup.kt @@ -95,7 +95,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNodegroup( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1599,7 +1601,8 @@ public open class CfnNodegroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup.LaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), LaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateSpecificationProperty { /** * The ID of the launch template. * @@ -1787,7 +1790,8 @@ public open class CfnNodegroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup.RemoteAccessProperty, - ) : CdkObject(cdkObject), RemoteAccessProperty { + ) : CdkObject(cdkObject), + RemoteAccessProperty { /** * The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in * the managed node group. @@ -2001,7 +2005,8 @@ public open class CfnNodegroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup.ScalingConfigProperty, - ) : CdkObject(cdkObject), ScalingConfigProperty { + ) : CdkObject(cdkObject), + ScalingConfigProperty { /** * The current number of nodes that the managed node group should maintain. * @@ -2162,7 +2167,8 @@ public open class CfnNodegroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup.TaintProperty, - ) : CdkObject(cdkObject), TaintProperty { + ) : CdkObject(cdkObject), + TaintProperty { /** * The effect of the taint. * @@ -2291,7 +2297,8 @@ public open class CfnNodegroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroup.UpdateConfigProperty, - ) : CdkObject(cdkObject), UpdateConfigProperty { + ) : CdkObject(cdkObject), + UpdateConfigProperty { /** * The maximum number of nodes unavailable at once during a version update. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroupProps.kt index 3c8f5195c3..939d9987f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnNodegroupProps.kt @@ -995,7 +995,8 @@ public interface CfnNodegroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnNodegroupProps, - ) : CdkObject(cdkObject), CfnNodegroupProps { + ) : CdkObject(cdkObject), + CfnNodegroupProps { /** * The AMI type for your node group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociation.kt index b60f755851..3f2a0079a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociation.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPodIdentityAssociation( cdkObject: software.amazon.awscdk.services.eks.CfnPodIdentityAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociationProps.kt index 45b77937cf..cd4e99913f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CfnPodIdentityAssociationProps.kt @@ -237,7 +237,8 @@ public interface CfnPodIdentityAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CfnPodIdentityAssociationProps, - ) : CdkObject(cdkObject), CfnPodIdentityAssociationProps { + ) : CdkObject(cdkObject), + CfnPodIdentityAssociationProps { /** * The name of the cluster that the association is in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Cluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Cluster.kt index 808efcfb10..3a217fae08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Cluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Cluster.kt @@ -42,7 +42,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Vpc vpc; * Cluster.Builder.create(this, "MyCluster") * .kubectlMemory(Size.gibibytes(4)) - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .build(); * Cluster.fromClusterAttributes(this, "MyCluster", ClusterAttributes.builder() * .kubectlMemory(Size.gibibytes(4)) @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Cluster( cdkObject: software.amazon.awscdk.services.eks.Cluster, -) : Resource(cdkObject), ICluster { +) : Resource(cdkObject), + ICluster { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -314,6 +315,17 @@ public open class Cluster( public open fun albController(): AlbController? = unwrap(this).getAlbController()?.let(AlbController::wrap) + /** + * The authentication mode for the Amazon EKS cluster. + * + * The authentication mode determines how users and applications authenticate to the Kubernetes + * API server. + * + * Default: CONFIG_MAP. + */ + public override fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * Lazily creates the AwsAuth resource, which manages AWS authentication mapping. */ @@ -483,6 +495,40 @@ public open class Cluster( public open fun defaultNodegroup(): Nodegroup? = unwrap(this).getDefaultNodegroup()?.let(Nodegroup::wrap) + /** + * Retrieves the EKS Pod Identity Agent addon for the EKS cluster. + * + * The EKS Pod Identity Agent is responsible for managing the temporary credentials + * used by pods in the cluster to access AWS resources. It runs as a DaemonSet on + * each node and provides the necessary credentials to the pods based on their + * associated service account. + */ + public override fun eksPodIdentityAgent(): IAddon? = + unwrap(this).getEksPodIdentityAgent()?.let(IAddon::wrap) + + /** + * Grants the specified IAM principal access to the EKS cluster based on the provided access + * policies. + * + * This method creates an `AccessEntry` construct that grants the specified IAM principal the + * access permissions + * defined by the provided `IAccessPolicy` array. This allows the IAM principal to perform the + * actions permitted + * by the access policies within the EKS cluster. + * + * @param id * The ID of the `AccessEntry` construct to be created. + * @param principal * The IAM principal (role or user) to be granted access to the EKS cluster. + * @param accessPolicies * An array of `IAccessPolicy` objects that define the access permissions + * to be granted to the IAM principal. + */ + public open fun grantAccess( + id: String, + principal: String, + accessPolicies: List, + ) { + unwrap(this).grantAccess(id, principal, accessPolicies.map(IAccessPolicy.Companion::unwrap)) + } + /** * Fetch the load balancer address of an ingress backed by a load balancer. * @@ -673,6 +719,15 @@ public open class Cluster( @JvmName("8bbe068c46270cace75364fb602b5c014effada559e8728ea8145d8012378d9d") public fun albController(albController: AlbControllerOptions.Builder.() -> Unit) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + * + * @param authenticationMode The desired authentication mode for the cluster. + */ + public fun authenticationMode(authenticationMode: AuthenticationMode) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -688,6 +743,21 @@ public open class Cluster( */ public fun awscliLayer(awscliLayer: ILayerVersion) + /** + * Whether or not IAM principal of the cluster creator was set as a cluster admin access entry + * during cluster creation time. + * + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + * + * Default: true + * + * @param bootstrapClusterCreatorAdminPermissions Whether or not IAM principal of the cluster + * creator was set as a cluster admin access entry during cluster creation time. + */ + public + fun bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions: Boolean) + /** * Custom environment variables when interacting with the EKS endpoint to manage the cluster * lifecycle. @@ -1084,6 +1154,17 @@ public open class Cluster( override fun albController(albController: AlbControllerOptions.Builder.() -> Unit): Unit = albController(AlbControllerOptions(albController)) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + * + * @param authenticationMode The desired authentication mode for the cluster. + */ + override fun authenticationMode(authenticationMode: AuthenticationMode) { + cdkBuilder.authenticationMode(authenticationMode.let(AuthenticationMode.Companion::unwrap)) + } + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -1101,6 +1182,23 @@ public open class Cluster( cdkBuilder.awscliLayer(awscliLayer.let(ILayerVersion.Companion::unwrap)) } + /** + * Whether or not IAM principal of the cluster creator was set as a cluster admin access entry + * during cluster creation time. + * + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + * + * Default: true + * + * @param bootstrapClusterCreatorAdminPermissions Whether or not IAM principal of the cluster + * creator was set as a cluster admin access entry during cluster creation time. + */ + override + fun bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions: Boolean) { + cdkBuilder.bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions) + } + /** * Custom environment variables when interacting with the EKS endpoint to manage the cluster * lifecycle. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterAttributes.kt index 4b162c568e..cca0533e9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterAttributes.kt @@ -628,7 +628,8 @@ public interface ClusterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ClusterAttributes, - ) : CdkObject(cdkObject), ClusterAttributes { + ) : CdkObject(cdkObject), + ClusterAttributes { /** * An AWS Lambda layer that contains the `aws` CLI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterOptions.kt index a14d15e485..f34e126836 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterOptions.kt @@ -54,6 +54,7 @@ import kotlin.jvm.JvmName * .policy(policy) * .repository("repository") * .build()) + * .authenticationMode(AuthenticationMode.CONFIG_MAP) * .awscliLayer(layerVersion) * .clusterHandlerEnvironment(Map.of( * "clusterHandlerEnvironmentKey", "clusterHandlerEnvironment")) @@ -101,6 +102,14 @@ public interface ClusterOptions : CommonClusterOptions { public fun albController(): AlbControllerOptions? = unwrap(this).getAlbController()?.let(AlbControllerOptions::wrap) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + public fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -306,6 +315,11 @@ public interface ClusterOptions : CommonClusterOptions { @JvmName("7034d01a4cd6de485cd119ec0d7808acd3e9abdbff2eb3a14ac9c734cf630f02") public fun albController(albController: AlbControllerOptions.Builder.() -> Unit) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + public fun authenticationMode(authenticationMode: AuthenticationMode) + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -519,6 +533,13 @@ public interface ClusterOptions : CommonClusterOptions { override fun albController(albController: AlbControllerOptions.Builder.() -> Unit): Unit = albController(AlbControllerOptions(albController)) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + override fun authenticationMode(authenticationMode: AuthenticationMode) { + cdkBuilder.authenticationMode(authenticationMode.let(AuthenticationMode.Companion::unwrap)) + } + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -769,7 +790,8 @@ public interface ClusterOptions : CommonClusterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ClusterOptions, - ) : CdkObject(cdkObject), ClusterOptions { + ) : CdkObject(cdkObject), + ClusterOptions { /** * Install the AWS Load Balancer Controller onto the cluster. * @@ -780,6 +802,14 @@ public interface ClusterOptions : CommonClusterOptions { override fun albController(): AlbControllerOptions? = unwrap(this).getAlbController()?.let(AlbControllerOptions::wrap) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + override fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterProps.kt index 17c0e3acdc..049038fd28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ClusterProps.kt @@ -31,7 +31,7 @@ import kotlin.jvm.JvmName * Vpc vpc; * Cluster.Builder.create(this, "MyCluster") * .kubectlMemory(Size.gibibytes(4)) - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .build(); * Cluster.fromClusterAttributes(this, "MyCluster", ClusterAttributes.builder() * .kubectlMemory(Size.gibibytes(4)) @@ -41,6 +41,18 @@ import kotlin.jvm.JvmName * ``` */ public interface ClusterProps : ClusterOptions { + /** + * Whether or not IAM principal of the cluster creator was set as a cluster admin access entry + * during cluster creation time. + * + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + * + * Default: true + */ + public fun bootstrapClusterCreatorAdminPermissions(): Boolean? = + unwrap(this).getBootstrapClusterCreatorAdminPermissions() + /** * Number of instances to allocate as an initial capacity for this cluster. * @@ -104,6 +116,11 @@ public interface ClusterProps : ClusterOptions { @JvmName("58b259fd0fd4c6437511ab4b4e9b7577e84c77b191b58f90b8f88ea7c86ca441") public fun albController(albController: AlbControllerOptions.Builder.() -> Unit) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + public fun authenticationMode(authenticationMode: AuthenticationMode) + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -114,6 +131,15 @@ public interface ClusterProps : ClusterOptions { */ public fun awscliLayer(awscliLayer: ILayerVersion) + /** + * @param bootstrapClusterCreatorAdminPermissions Whether or not IAM principal of the cluster + * creator was set as a cluster admin access entry during cluster creation time. + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + */ + public + fun bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions: Boolean) + /** * @param clusterHandlerEnvironment Custom environment variables when interacting with the EKS * endpoint to manage the cluster lifecycle. @@ -350,6 +376,13 @@ public interface ClusterProps : ClusterOptions { override fun albController(albController: AlbControllerOptions.Builder.() -> Unit): Unit = albController(AlbControllerOptions(albController)) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + override fun authenticationMode(authenticationMode: AuthenticationMode) { + cdkBuilder.authenticationMode(authenticationMode.let(AuthenticationMode.Companion::unwrap)) + } + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -362,6 +395,17 @@ public interface ClusterProps : ClusterOptions { cdkBuilder.awscliLayer(awscliLayer.let(ILayerVersion.Companion::unwrap)) } + /** + * @param bootstrapClusterCreatorAdminPermissions Whether or not IAM principal of the cluster + * creator was set as a cluster admin access entry during cluster creation time. + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + */ + override + fun bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions: Boolean) { + cdkBuilder.bootstrapClusterCreatorAdminPermissions(bootstrapClusterCreatorAdminPermissions) + } + /** * @param clusterHandlerEnvironment Custom environment variables when interacting with the EKS * endpoint to manage the cluster lifecycle. @@ -643,7 +687,8 @@ public interface ClusterProps : ClusterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ClusterProps, - ) : CdkObject(cdkObject), ClusterProps { + ) : CdkObject(cdkObject), + ClusterProps { /** * Install the AWS Load Balancer Controller onto the cluster. * @@ -654,6 +699,14 @@ public interface ClusterProps : ClusterOptions { override fun albController(): AlbControllerOptions? = unwrap(this).getAlbController()?.let(AlbControllerOptions::wrap) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + override fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -668,6 +721,18 @@ public interface ClusterProps : ClusterOptions { override fun awscliLayer(): ILayerVersion? = unwrap(this).getAwscliLayer()?.let(ILayerVersion::wrap) + /** + * Whether or not IAM principal of the cluster creator was set as a cluster admin access entry + * during cluster creation time. + * + * Changing this value after the cluster has been created will result in the cluster being + * replaced. + * + * Default: true + */ + override fun bootstrapClusterCreatorAdminPermissions(): Boolean? = + unwrap(this).getBootstrapClusterCreatorAdminPermissions() + /** * Custom environment variables when interacting with the EKS endpoint to manage the cluster * lifecycle. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CommonClusterOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CommonClusterOptions.kt index 1810b03c83..96e2889f4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CommonClusterOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/CommonClusterOptions.kt @@ -263,7 +263,8 @@ public interface CommonClusterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.CommonClusterOptions, - ) : CdkObject(cdkObject), CommonClusterOptions { + ) : CdkObject(cdkObject), + CommonClusterOptions { /** * Name for the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImage.kt index ec90574c22..01a1ff12db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImage.kt @@ -28,7 +28,8 @@ import kotlin.Unit */ public open class EksOptimizedImage( cdkObject: software.amazon.awscdk.services.eks.EksOptimizedImage, -) : CdkObject(cdkObject), IMachineImage { +) : CdkObject(cdkObject), + IMachineImage { public constructor() : this(software.amazon.awscdk.services.eks.EksOptimizedImage() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImageProps.kt index ef3999c15a..69aed81a1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EksOptimizedImageProps.kt @@ -98,7 +98,8 @@ public interface EksOptimizedImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.EksOptimizedImageProps, - ) : CdkObject(cdkObject), EksOptimizedImageProps { + ) : CdkObject(cdkObject), + EksOptimizedImageProps { /** * What cpu architecture to retrieve the image for (arm64 or x86_64). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EndpointAccess.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EndpointAccess.kt index 6fd3a97b3a..e613851f02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EndpointAccess.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/EndpointAccess.kt @@ -13,7 +13,7 @@ import kotlin.String * * ``` * Cluster cluster = Cluster.Builder.create(this, "hello-eks") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .endpointAccess(EndpointAccess.PRIVATE) * .build(); * ``` diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateCluster.kt index 14227e23c3..0d40426806 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateCluster.kt @@ -30,7 +30,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * ``` * FargateCluster cluster = FargateCluster.Builder.create(this, "MyCluster") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .build(); * ``` */ @@ -86,6 +86,15 @@ public open class FargateCluster( @JvmName("528a333dd842b13c5cafad907c7593e4e97283440c6757fd7bf66f1e17707f07") public fun albController(albController: AlbControllerOptions.Builder.() -> Unit) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + * + * @param authenticationMode The desired authentication mode for the cluster. + */ + public fun authenticationMode(authenticationMode: AuthenticationMode) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -464,6 +473,17 @@ public open class FargateCluster( override fun albController(albController: AlbControllerOptions.Builder.() -> Unit): Unit = albController(AlbControllerOptions(albController)) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + * + * @param authenticationMode The desired authentication mode for the cluster. + */ + override fun authenticationMode(authenticationMode: AuthenticationMode) { + cdkBuilder.authenticationMode(authenticationMode.let(AuthenticationMode.Companion::unwrap)) + } + /** * An AWS Lambda layer that contains the `aws` CLI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateClusterProps.kt index 5d0e00530b..990b95c571 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateClusterProps.kt @@ -26,7 +26,7 @@ import kotlin.jvm.JvmName * * ``` * FargateCluster cluster = FargateCluster.Builder.create(this, "MyCluster") - * .version(KubernetesVersion.V1_29) + * .version(KubernetesVersion.V1_30) * .build(); * ``` */ @@ -57,6 +57,11 @@ public interface FargateClusterProps : ClusterOptions { @JvmName("e58739095a95218c766391be15067aab40d0198310a87115e063eea5d8b14dff") public fun albController(albController: AlbControllerOptions.Builder.() -> Unit) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + public fun authenticationMode(authenticationMode: AuthenticationMode) + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -282,6 +287,13 @@ public interface FargateClusterProps : ClusterOptions { override fun albController(albController: AlbControllerOptions.Builder.() -> Unit): Unit = albController(AlbControllerOptions(albController)) + /** + * @param authenticationMode The desired authentication mode for the cluster. + */ + override fun authenticationMode(authenticationMode: AuthenticationMode) { + cdkBuilder.authenticationMode(authenticationMode.let(AuthenticationMode.Companion::unwrap)) + } + /** * @param awscliLayer An AWS Lambda layer that contains the `aws` CLI. * The handler expects the layer to include the following executables: @@ -547,7 +559,8 @@ public interface FargateClusterProps : ClusterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.FargateClusterProps, - ) : CdkObject(cdkObject), FargateClusterProps { + ) : CdkObject(cdkObject), + FargateClusterProps { /** * Install the AWS Load Balancer Controller onto the cluster. * @@ -558,6 +571,14 @@ public interface FargateClusterProps : ClusterOptions { override fun albController(): AlbControllerOptions? = unwrap(this).getAlbController()?.let(AlbControllerOptions::wrap) + /** + * The desired authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + override fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfile.kt index 0d52d8c8ac..585f7a489d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfile.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FargateProfile( cdkObject: software.amazon.awscdk.services.eks.FargateProfile, -) : CloudshiftdevConstructsConstruct(cdkObject), ITaggable { +) : CloudshiftdevConstructsConstruct(cdkObject), + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileOptions.kt index fd89e3ad74..6edd924bdd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileOptions.kt @@ -234,7 +234,8 @@ public interface FargateProfileOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.FargateProfileOptions, - ) : CdkObject(cdkObject), FargateProfileOptions { + ) : CdkObject(cdkObject), + FargateProfileOptions { /** * The name of the Fargate profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileProps.kt index 451134ce23..b81d21e512 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/FargateProfileProps.kt @@ -200,7 +200,8 @@ public interface FargateProfileProps : FargateProfileOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.FargateProfileProps, - ) : CdkObject(cdkObject), FargateProfileProps { + ) : CdkObject(cdkObject), + FargateProfileProps { /** * The EKS cluster to apply the Fargate profile to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartOptions.kt index aaf72f0bb1..a78c61cb01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartOptions.kt @@ -321,7 +321,8 @@ public interface HelmChartOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.HelmChartOptions, - ) : CdkObject(cdkObject), HelmChartOptions { + ) : CdkObject(cdkObject), + HelmChartOptions { /** * Whether or not Helm should treat this operation as atomic; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartProps.kt index 34adeb71f9..bc59cd49f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/HelmChartProps.kt @@ -240,7 +240,8 @@ public interface HelmChartProps : HelmChartOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.HelmChartProps, - ) : CdkObject(cdkObject), HelmChartProps { + ) : CdkObject(cdkObject), + HelmChartProps { /** * Whether or not Helm should treat this operation as atomic; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessEntry.kt new file mode 100644 index 0000000000..08eea23c5a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessEntry.kt @@ -0,0 +1,89 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents an access entry in an Amazon EKS cluster. + * + * An access entry defines the permissions and scope for a user or role to access an Amazon EKS + * cluster. + */ +public interface IAccessEntry : IResource { + /** + * The Amazon Resource Name (ARN) of the access entry. + */ + public fun accessEntryArn(): String + + /** + * The name of the access entry. + */ + public fun accessEntryName(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.IAccessEntry, + ) : CdkObject(cdkObject), + IAccessEntry { + /** + * The Amazon Resource Name (ARN) of the access entry. + */ + override fun accessEntryArn(): String = unwrap(this).getAccessEntryArn() + + /** + * The name of the access entry. + */ + override fun accessEntryName(): String = unwrap(this).getAccessEntryName() + + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.IAccessEntry): IAccessEntry = + CdkObjectWrappers.wrap(cdkObject) as? IAccessEntry ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IAccessEntry): software.amazon.awscdk.services.eks.IAccessEntry = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.eks.IAccessEntry + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessPolicy.kt new file mode 100644 index 0000000000..d032afe852 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAccessPolicy.kt @@ -0,0 +1,46 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String + +/** + * Represents an access policy that defines the permissions and scope for a user or role to access + * an Amazon EKS cluster. + */ +public interface IAccessPolicy { + /** + * The scope of the access policy, which determines the level of access granted. + */ + public fun accessScope(): AccessScope + + /** + * The access policy itself, which defines the specific permissions. + */ + public fun policy(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.IAccessPolicy, + ) : CdkObject(cdkObject), + IAccessPolicy { + /** + * The scope of the access policy, which determines the level of access granted. + */ + override fun accessScope(): AccessScope = unwrap(this).getAccessScope().let(AccessScope::wrap) + + /** + * The access policy itself, which defines the specific permissions. + */ + override fun policy(): String = unwrap(this).getPolicy() + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.IAccessPolicy): IAccessPolicy = + CdkObjectWrappers.wrap(cdkObject) as? IAccessPolicy ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IAccessPolicy): software.amazon.awscdk.services.eks.IAccessPolicy = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.eks.IAccessPolicy + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAddon.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAddon.kt new file mode 100644 index 0000000000..89718e7ea1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IAddon.kt @@ -0,0 +1,86 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents an Amazon EKS Add-On. + */ +public interface IAddon : IResource { + /** + * ARN of the Add-On. + */ + public fun addonArn(): String + + /** + * Name of the Add-On. + */ + public fun addonName(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.eks.IAddon, + ) : CdkObject(cdkObject), + IAddon { + /** + * ARN of the Add-On. + */ + override fun addonArn(): String = unwrap(this).getAddonArn() + + /** + * Name of the Add-On. + */ + override fun addonName(): String = unwrap(this).getAddonName() + + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.IAddon): IAddon = + CdkObjectWrappers.wrap(cdkObject) as? IAddon ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IAddon): software.amazon.awscdk.services.eks.IAddon = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.eks.IAddon + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ICluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ICluster.kt index 26400b7175..81798160c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ICluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ICluster.kt @@ -130,6 +130,14 @@ public interface ICluster : IResource, IConnectable { public fun addServiceAccount(id: String, options: ServiceAccountOptions.Builder.() -> Unit): ServiceAccount + /** + * The authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + public fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -236,6 +244,21 @@ public interface ICluster : IResource, IConnectable { public fun connectAutoScalingGroupCapacity(autoScalingGroup: AutoScalingGroup, options: AutoScalingGroupOptions.Builder.() -> Unit) + /** + * The EKS Pod Identity Agent addon for the EKS cluster. + * + * The EKS Pod Identity Agent is responsible for managing the temporary credentials + * used by pods in the cluster to access AWS resources. It runs as a DaemonSet on + * each node and provides the necessary credentials to the pods based on their + * associated service account. + * + * This property returns the `CfnAddon` resource representing the EKS Pod Identity + * Agent addon. If the addon has not been created yet, it will be created and + * returned. + */ + public fun eksPodIdentityAgent(): IAddon? = + unwrap(this).getEksPodIdentityAgent()?.let(IAddon::wrap) + /** * Specify which IP family is used to assign Kubernetes pod and service IP addresses. * @@ -336,7 +359,8 @@ public interface ICluster : IResource, IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ICluster, - ) : CdkObject(cdkObject), ICluster { + ) : CdkObject(cdkObject), + ICluster { /** * Defines a CDK8s chart in this cluster. * @@ -463,6 +487,14 @@ public interface ICluster : IResource, IConnectable { unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) } + /** + * The authentication mode for the cluster. + * + * Default: AuthenticationMode.CONFIG_MAP + */ + override fun authenticationMode(): AuthenticationMode? = + unwrap(this).getAuthenticationMode()?.let(AuthenticationMode::wrap) + /** * An AWS Lambda layer that contains the `aws` CLI. * @@ -584,6 +616,21 @@ public interface ICluster : IResource, IConnectable { */ override fun connections(): Connections = unwrap(this).getConnections().let(Connections::wrap) + /** + * The EKS Pod Identity Agent addon for the EKS cluster. + * + * The EKS Pod Identity Agent is responsible for managing the temporary credentials + * used by pods in the cluster to access AWS resources. It runs as a DaemonSet on + * each node and provides the necessary credentials to the pods based on their + * associated service account. + * + * This property returns the `CfnAddon` resource representing the EKS Pod Identity + * Agent addon. If the addon has not been created yet, it will be created and + * returned. + */ + override fun eksPodIdentityAgent(): IAddon? = + unwrap(this).getEksPodIdentityAgent()?.let(IAddon::wrap) + /** * The environment this resource belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IKubectlProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IKubectlProvider.kt index 5363789a92..3e97591c83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IKubectlProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IKubectlProvider.kt @@ -30,7 +30,8 @@ public interface IKubectlProvider : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.IKubectlProvider, - ) : CdkObject(cdkObject), IKubectlProvider { + ) : CdkObject(cdkObject), + IKubectlProvider { /** * The IAM execution role of the handler. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/INodegroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/INodegroup.kt index 218e4c69fc..1b6ad70817 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/INodegroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/INodegroup.kt @@ -22,7 +22,8 @@ public interface INodegroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.INodegroup, - ) : CdkObject(cdkObject), INodegroup { + ) : CdkObject(cdkObject), + INodegroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IdentityType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IdentityType.kt new file mode 100644 index 0000000000..cfcfa4f9af --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IdentityType.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.eks + +public enum class IdentityType( + private val cdkObject: software.amazon.awscdk.services.eks.IdentityType, +) { + IRSA(software.amazon.awscdk.services.eks.IdentityType.IRSA), + POD_IDENTITY(software.amazon.awscdk.services.eks.IdentityType.POD_IDENTITY), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.eks.IdentityType): IdentityType = + when (cdkObject) { + software.amazon.awscdk.services.eks.IdentityType.IRSA -> IdentityType.IRSA + software.amazon.awscdk.services.eks.IdentityType.POD_IDENTITY -> IdentityType.POD_IDENTITY + } + + internal fun unwrap(wrapped: IdentityType): software.amazon.awscdk.services.eks.IdentityType = + wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IngressLoadBalancerAddressOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IngressLoadBalancerAddressOptions.kt index b6691c99e2..3624f5d86e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IngressLoadBalancerAddressOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/IngressLoadBalancerAddressOptions.kt @@ -68,7 +68,8 @@ public interface IngressLoadBalancerAddressOptions : ServiceLoadBalancerAddressO private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.IngressLoadBalancerAddressOptions, - ) : CdkObject(cdkObject), IngressLoadBalancerAddressOptions { + ) : CdkObject(cdkObject), + IngressLoadBalancerAddressOptions { /** * The namespace the service belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProvider.kt index 90c97b14cb..662346fa22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProvider.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class KubectlProvider( cdkObject: software.amazon.awscdk.services.eks.KubectlProvider, -) : NestedStack(cdkObject), IKubectlProvider { +) : NestedStack(cdkObject), + IKubectlProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderAttributes.kt index e98b4a99d3..823e3208f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderAttributes.kt @@ -106,7 +106,8 @@ public interface KubectlProviderAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubectlProviderAttributes, - ) : CdkObject(cdkObject), KubectlProviderAttributes { + ) : CdkObject(cdkObject), + KubectlProviderAttributes { /** * The custom resource provider's service token. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderProps.kt index 8b1e8a5974..edc7d3ce99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubectlProviderProps.kt @@ -56,7 +56,8 @@ public interface KubectlProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubectlProviderProps, - ) : CdkObject(cdkObject), KubectlProviderProps { + ) : CdkObject(cdkObject), + KubectlProviderProps { /** * The cluster to control. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestOptions.kt index 9fd25adbe0..92426a2a79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestOptions.kt @@ -172,7 +172,8 @@ public interface KubernetesManifestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubernetesManifestOptions, - ) : CdkObject(cdkObject), KubernetesManifestOptions { + ) : CdkObject(cdkObject), + KubernetesManifestOptions { /** * Automatically detect `Ingress` resources in the manifest and annotate them so they are picked * up by an ALB Ingress Controller. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestProps.kt index d067baeb26..29ad1ee159 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesManifestProps.kt @@ -264,7 +264,8 @@ public interface KubernetesManifestProps : KubernetesManifestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubernetesManifestProps, - ) : CdkObject(cdkObject), KubernetesManifestProps { + ) : CdkObject(cdkObject), + KubernetesManifestProps { /** * The EKS cluster to apply this manifest to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesObjectValueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesObjectValueProps.kt index fdb6b592bc..afca163ae9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesObjectValueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesObjectValueProps.kt @@ -167,7 +167,8 @@ public interface KubernetesObjectValueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubernetesObjectValueProps, - ) : CdkObject(cdkObject), KubernetesObjectValueProps { + ) : CdkObject(cdkObject), + KubernetesObjectValueProps { /** * The EKS cluster to fetch attributes from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesPatchProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesPatchProps.kt index 78fe4ed7e1..d069c74a26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesPatchProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesPatchProps.kt @@ -158,7 +158,8 @@ public interface KubernetesPatchProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.KubernetesPatchProps, - ) : CdkObject(cdkObject), KubernetesPatchProps { + ) : CdkObject(cdkObject), + KubernetesPatchProps { /** * The JSON object to pass to `kubectl patch` when the resource is created/updated. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesVersion.kt index d059bd48e7..4f02a7cbc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/KubernetesVersion.kt @@ -11,14 +11,16 @@ import kotlin.String * Example: * * ``` - * Cluster cluster = Cluster.Builder.create(this, "HelloEKS") - * .version(KubernetesVersion.V1_29) - * .defaultCapacity(0) + * // or + * Vpc vpc; + * Cluster.Builder.create(this, "MyCluster") + * .kubectlMemory(Size.gibibytes(4)) + * .version(KubernetesVersion.V1_30) * .build(); - * cluster.addNodegroupCapacity("custom-node-group", NodegroupOptions.builder() - * .instanceTypes(List.of(new InstanceType("m5.large"))) - * .minSize(4) - * .diskSize(100) + * Cluster.fromClusterAttributes(this, "MyCluster", ClusterAttributes.builder() + * .kubectlMemory(Size.gibibytes(4)) + * .vpc(vpc) + * .clusterName("cluster-name") * .build()); * ``` * @@ -81,6 +83,9 @@ public open class KubernetesVersion( public val V1_29: KubernetesVersion = KubernetesVersion.wrap(software.amazon.awscdk.services.eks.KubernetesVersion.V1_29) + public val V1_30: KubernetesVersion = + KubernetesVersion.wrap(software.amazon.awscdk.services.eks.KubernetesVersion.V1_30) + public fun of(version: String): KubernetesVersion = software.amazon.awscdk.services.eks.KubernetesVersion.of(version).let(KubernetesVersion::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/LaunchTemplateSpec.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/LaunchTemplateSpec.kt index fe71e51c87..17ee535e83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/LaunchTemplateSpec.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/LaunchTemplateSpec.kt @@ -85,7 +85,8 @@ public interface LaunchTemplateSpec { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.LaunchTemplateSpec, - ) : CdkObject(cdkObject), LaunchTemplateSpec { + ) : CdkObject(cdkObject), + LaunchTemplateSpec { /** * The Launch template ID. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Nodegroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Nodegroup.kt index 8109166c3c..990cad3cd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Nodegroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Nodegroup.kt @@ -82,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Nodegroup( cdkObject: software.amazon.awscdk.services.eks.Nodegroup, -) : Resource(cdkObject), INodegroup { +) : Resource(cdkObject), + INodegroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -198,8 +199,7 @@ public open class Nodegroup( * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) * @param instanceTypes The instance types to use for your node group. */ public fun instanceTypes(instanceTypes: List) @@ -209,8 +209,7 @@ public open class Nodegroup( * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) * @param instanceTypes The instance types to use for your node group. */ public fun instanceTypes(vararg instanceTypes: InstanceType) @@ -230,7 +229,7 @@ public open class Nodegroup( * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) * @param launchTemplateSpec Launch template specification used for the nodegroup. */ public fun launchTemplateSpec(launchTemplateSpec: LaunchTemplateSpec) @@ -240,7 +239,7 @@ public open class Nodegroup( * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) * @param launchTemplateSpec Launch template specification used for the nodegroup. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -534,8 +533,7 @@ public open class Nodegroup( * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) * @param instanceTypes The instance types to use for your node group. */ override fun instanceTypes(instanceTypes: List) { @@ -547,8 +545,7 @@ public open class Nodegroup( * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) * @param instanceTypes The instance types to use for your node group. */ override fun instanceTypes(vararg instanceTypes: InstanceType): Unit = @@ -571,7 +568,7 @@ public open class Nodegroup( * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) * @param launchTemplateSpec Launch template specification used for the nodegroup. */ override fun launchTemplateSpec(launchTemplateSpec: LaunchTemplateSpec) { @@ -583,7 +580,7 @@ public open class Nodegroup( * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) * @param launchTemplateSpec Launch template specification used for the nodegroup. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupOptions.kt index 3507df9969..1fe9cbd610 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupOptions.kt @@ -88,8 +88,7 @@ public interface NodegroupOptions { * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) */ public fun instanceTypes(): List = unwrap(this).getInstanceTypes()?.map(InstanceType::wrap) ?: emptyList() @@ -106,7 +105,7 @@ public interface NodegroupOptions { * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) */ public fun launchTemplateSpec(): LaunchTemplateSpec? = unwrap(this).getLaunchTemplateSpec()?.let(LaunchTemplateSpec::wrap) @@ -667,7 +666,8 @@ public interface NodegroupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.NodegroupOptions, - ) : CdkObject(cdkObject), NodegroupOptions { + ) : CdkObject(cdkObject), + NodegroupOptions { /** * The AMI type for your node group. * @@ -725,8 +725,7 @@ public interface NodegroupOptions { * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) */ override fun instanceTypes(): List = unwrap(this).getInstanceTypes()?.map(InstanceType::wrap) ?: emptyList() @@ -743,7 +742,7 @@ public interface NodegroupOptions { * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) */ override fun launchTemplateSpec(): LaunchTemplateSpec? = unwrap(this).getLaunchTemplateSpec()?.let(LaunchTemplateSpec::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupProps.kt index 18a9cc511f..2f3fed0cae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupProps.kt @@ -530,7 +530,8 @@ public interface NodegroupProps : NodegroupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.NodegroupProps, - ) : CdkObject(cdkObject), NodegroupProps { + ) : CdkObject(cdkObject), + NodegroupProps { /** * The AMI type for your node group. * @@ -593,8 +594,7 @@ public interface NodegroupProps : NodegroupOptions { * * Default: t3.medium will be used according to the cloudformation document. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes) */ override fun instanceTypes(): List = unwrap(this).getInstanceTypes()?.map(InstanceType::wrap) ?: emptyList() @@ -611,7 +611,7 @@ public interface NodegroupProps : NodegroupOptions { * * Default: - no launch template * - * [Documentation]( - https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) + * [Documentation](https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) */ override fun launchTemplateSpec(): LaunchTemplateSpec? = unwrap(this).getLaunchTemplateSpec()?.let(LaunchTemplateSpec::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupRemoteAccess.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupRemoteAccess.kt index 9faed49bda..ec2bda2e71 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupRemoteAccess.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/NodegroupRemoteAccess.kt @@ -123,7 +123,8 @@ public interface NodegroupRemoteAccess { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.NodegroupRemoteAccess, - ) : CdkObject(cdkObject), NodegroupRemoteAccess { + ) : CdkObject(cdkObject), + NodegroupRemoteAccess { /** * The security groups that are allowed SSH access (port 22) to the worker nodes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/OpenIdConnectProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/OpenIdConnectProviderProps.kt index 9da28f730b..948cfbfdeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/OpenIdConnectProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/OpenIdConnectProviderProps.kt @@ -94,7 +94,8 @@ public interface OpenIdConnectProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.OpenIdConnectProviderProps, - ) : CdkObject(cdkObject), OpenIdConnectProviderProps { + ) : CdkObject(cdkObject), + OpenIdConnectProviderProps { /** * The URL of the identity provider. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Selector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Selector.kt index 3e0c3645c4..9f0c82120c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Selector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/Selector.kt @@ -98,7 +98,8 @@ public interface Selector { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.Selector, - ) : CdkObject(cdkObject), Selector { + ) : CdkObject(cdkObject), + Selector { /** * The Kubernetes labels that the selector should match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccount.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccount.kt index e7e2a3dbbb..c26aaef484 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccount.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccount.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ServiceAccount( cdkObject: software.amazon.awscdk.services.eks.ServiceAccount, -) : CloudshiftdevConstructsConstruct(cdkObject), IPrincipal { +) : CloudshiftdevConstructsConstruct(cdkObject), + IPrincipal { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -129,6 +130,15 @@ public open class ServiceAccount( */ public fun cluster(cluster: ICluster) + /** + * The identity type to use for the service account. + * + * Default: IdentityType.IRSA + * + * @param identityType The identity type to use for the service account. + */ + public fun identityType(identityType: IdentityType) + /** * Additional labels of the service account. * @@ -190,6 +200,17 @@ public open class ServiceAccount( cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) } + /** + * The identity type to use for the service account. + * + * Default: IdentityType.IRSA + * + * @param identityType The identity type to use for the service account. + */ + override fun identityType(identityType: IdentityType) { + cdkBuilder.identityType(identityType.let(IdentityType.Companion::unwrap)) + } + /** * Additional labels of the service account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountOptions.kt index da548c5f14..0cf84aa59f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountOptions.kt @@ -34,6 +34,13 @@ public interface ServiceAccountOptions { */ public fun annotations(): Map = unwrap(this).getAnnotations() ?: emptyMap() + /** + * The identity type to use for the service account. + * + * Default: IdentityType.IRSA + */ + public fun identityType(): IdentityType? = unwrap(this).getIdentityType()?.let(IdentityType::wrap) + /** * Additional labels of the service account. * @@ -71,6 +78,11 @@ public interface ServiceAccountOptions { */ public fun annotations(annotations: Map) + /** + * @param identityType The identity type to use for the service account. + */ + public fun identityType(identityType: IdentityType) + /** * @param labels Additional labels of the service account. */ @@ -102,6 +114,13 @@ public interface ServiceAccountOptions { cdkBuilder.annotations(annotations) } + /** + * @param identityType The identity type to use for the service account. + */ + override fun identityType(identityType: IdentityType) { + cdkBuilder.identityType(identityType.let(IdentityType.Companion::unwrap)) + } + /** * @param labels Additional labels of the service account. */ @@ -133,7 +152,8 @@ public interface ServiceAccountOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ServiceAccountOptions, - ) : CdkObject(cdkObject), ServiceAccountOptions { + ) : CdkObject(cdkObject), + ServiceAccountOptions { /** * Additional annotations of the service account. * @@ -141,6 +161,14 @@ public interface ServiceAccountOptions { */ override fun annotations(): Map = unwrap(this).getAnnotations() ?: emptyMap() + /** + * The identity type to use for the service account. + * + * Default: IdentityType.IRSA + */ + override fun identityType(): IdentityType? = + unwrap(this).getIdentityType()?.let(IdentityType::wrap) + /** * Additional labels of the service account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountProps.kt index d7405576f7..5ebc2eccbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceAccountProps.kt @@ -15,19 +15,12 @@ import kotlin.collections.Map * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.eks.*; * Cluster cluster; - * ServiceAccountProps serviceAccountProps = ServiceAccountProps.builder() + * ServiceAccount.Builder.create(this, "ServiceAccount") * .cluster(cluster) - * // the properties below are optional - * .annotations(Map.of( - * "annotationsKey", "annotations")) - * .labels(Map.of( - * "labelsKey", "labels")) - * .name("name") - * .namespace("namespace") + * .name("test-sa") + * .namespace("default") + * .identityType(IdentityType.POD_IDENTITY) * .build(); * ``` */ @@ -52,6 +45,11 @@ public interface ServiceAccountProps : ServiceAccountOptions { */ public fun cluster(cluster: ICluster) + /** + * @param identityType The identity type to use for the service account. + */ + public fun identityType(identityType: IdentityType) + /** * @param labels Additional labels of the service account. */ @@ -90,6 +88,13 @@ public interface ServiceAccountProps : ServiceAccountOptions { cdkBuilder.cluster(cluster.let(ICluster.Companion::unwrap)) } + /** + * @param identityType The identity type to use for the service account. + */ + override fun identityType(identityType: IdentityType) { + cdkBuilder.identityType(identityType.let(IdentityType.Companion::unwrap)) + } + /** * @param labels Additional labels of the service account. */ @@ -120,7 +125,8 @@ public interface ServiceAccountProps : ServiceAccountOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ServiceAccountProps, - ) : CdkObject(cdkObject), ServiceAccountProps { + ) : CdkObject(cdkObject), + ServiceAccountProps { /** * Additional annotations of the service account. * @@ -133,6 +139,14 @@ public interface ServiceAccountProps : ServiceAccountOptions { */ override fun cluster(): ICluster = unwrap(this).getCluster().let(ICluster::wrap) + /** + * The identity type to use for the service account. + * + * Default: IdentityType.IRSA + */ + override fun identityType(): IdentityType? = + unwrap(this).getIdentityType()?.let(IdentityType::wrap) + /** * Additional labels of the service account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceLoadBalancerAddressOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceLoadBalancerAddressOptions.kt index 81ca5caefc..9e0f76f1b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceLoadBalancerAddressOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/ServiceLoadBalancerAddressOptions.kt @@ -82,7 +82,8 @@ public interface ServiceLoadBalancerAddressOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.ServiceLoadBalancerAddressOptions, - ) : CdkObject(cdkObject), ServiceLoadBalancerAddressOptions { + ) : CdkObject(cdkObject), + ServiceLoadBalancerAddressOptions { /** * The namespace the service belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/TaintSpec.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/TaintSpec.kt index e460cd5e1b..7a40373dde 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/TaintSpec.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eks/TaintSpec.kt @@ -97,7 +97,8 @@ public interface TaintSpec { private class Wrapper( cdkObject: software.amazon.awscdk.services.eks.TaintSpec, - ) : CdkObject(cdkObject), TaintSpec { + ) : CdkObject(cdkObject), + TaintSpec { /** * Effect type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheCluster.kt index 5397328560..c9abb42d27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheCluster.kt @@ -80,7 +80,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCacheCluster( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -101,7 +103,7 @@ public open class CfnCacheCluster( * The DNS hostname of the cache node. * * - * Redis (cluster mode disabled) replication groups don't have this attribute. Therefore, + * Redis OSS (cluster mode disabled) replication groups don't have this attribute. Therefore, * `Fn::GetAtt` returns a value for this attribute only if the replication group is clustered. * Otherwise, `Fn::GetAtt` fails. */ @@ -112,7 +114,7 @@ public open class CfnCacheCluster( * The port number of the configuration endpoint for the Memcached cache cluster. * * - * Redis (cluster mode disabled) replication groups don't have this attribute. Therefore, + * Redis OSS (cluster mode disabled) replication groups don't have this attribute. Therefore, * `Fn::GetAtt` returns a value for this attribute only if the replication group is clustered. * Otherwise, `Fn::GetAtt` fails. */ @@ -125,25 +127,25 @@ public open class CfnCacheCluster( public open fun attrId(): String = unwrap(this).getAttrId() /** - * The DNS address of the configuration endpoint for the Redis cache cluster. + * The DNS address of the configuration endpoint for the Redis OSS cache cluster. */ public open fun attrRedisEndpointAddress(): String = unwrap(this).getAttrRedisEndpointAddress() /** - * The port number of the configuration endpoint for the Redis cache cluster. + * The port number of the configuration endpoint for the Redis OSS cache cluster. */ public open fun attrRedisEndpointPort(): String = unwrap(this).getAttrRedisEndpointPort() /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(): Any? = unwrap(this).getAutoMinorVersionUpgrade() /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(`value`: Boolean) { @@ -151,8 +153,8 @@ public open class CfnCacheCluster( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(`value`: IResolvable) { @@ -406,13 +408,13 @@ public open class CfnCacheCluster( /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies - * a Redis RDB snapshot file stored in Amazon S3. + * a Redis OSS RDB snapshot file stored in Amazon S3. */ public open fun snapshotArns(): List = unwrap(this).getSnapshotArns() ?: emptyList() /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies - * a Redis RDB snapshot file stored in Amazon S3. + * a Redis OSS RDB snapshot file stored in Amazon S3. */ public open fun snapshotArns(`value`: List) { unwrap(this).setSnapshotArns(`value`) @@ -420,17 +422,17 @@ public open class CfnCacheCluster( /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies - * a Redis RDB snapshot file stored in Amazon S3. + * a Redis OSS RDB snapshot file stored in Amazon S3. */ public open fun snapshotArns(vararg `value`: String): Unit = snapshotArns(`value`.toList()) /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). */ public open fun snapshotName(): String? = unwrap(this).getSnapshotName() /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). */ public open fun snapshotName(`value`: String) { unwrap(this).setSnapshotName(`value`) @@ -529,25 +531,25 @@ public open class CfnCacheCluster( @CdkDslMarker public interface Builder { /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) @@ -644,10 +646,10 @@ public open class CfnCacheCluster( * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-cachenodetype) * @param cacheNodeType The compute and memory capacity of the nodes in the node group (shard). @@ -752,7 +754,7 @@ public open class CfnCacheCluster( /** * The network type you choose when modifying a cluster, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -789,7 +791,7 @@ public open class CfnCacheCluster( /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -924,7 +926,7 @@ public open class CfnCacheCluster( /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely - * identifies a Redis RDB snapshot file stored in Amazon S3. + * identifies a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. @@ -937,13 +939,13 @@ public open class CfnCacheCluster( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotarns) * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. */ public fun snapshotArns(snapshotArns: List) /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely - * identifies a Redis RDB snapshot file stored in Amazon S3. + * identifies a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. @@ -956,12 +958,12 @@ public open class CfnCacheCluster( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotarns) * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. */ public fun snapshotArns(vararg snapshotArns: String) /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). * * The snapshot status changes to `restoring` while the new node group (shard) is being created. * @@ -970,8 +972,8 @@ public open class CfnCacheCluster( * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotname) - * @param snapshotName The name of a Redis snapshot from which to restore data into the new node - * group (shard). + * @param snapshotName The name of a Redis OSS snapshot from which to restore data into the new + * node group (shard). */ public fun snapshotName(snapshotName: String) @@ -1075,13 +1077,13 @@ public open class CfnCacheCluster( software.amazon.awscdk.services.elasticache.CfnCacheCluster.Builder.create(scope, id) /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) { @@ -1089,13 +1091,13 @@ public open class CfnCacheCluster( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) { @@ -1196,10 +1198,10 @@ public open class CfnCacheCluster( * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-cachenodetype) * @param cacheNodeType The compute and memory capacity of the nodes in the node group (shard). @@ -1319,7 +1321,7 @@ public open class CfnCacheCluster( /** * The network type you choose when modifying a cluster, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1363,7 +1365,7 @@ public open class CfnCacheCluster( /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1513,7 +1515,7 @@ public open class CfnCacheCluster( /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely - * identifies a Redis RDB snapshot file stored in Amazon S3. + * identifies a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. @@ -1526,7 +1528,7 @@ public open class CfnCacheCluster( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotarns) * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. */ override fun snapshotArns(snapshotArns: List) { cdkBuilder.snapshotArns(snapshotArns) @@ -1534,7 +1536,7 @@ public open class CfnCacheCluster( /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely - * identifies a Redis RDB snapshot file stored in Amazon S3. + * identifies a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. @@ -1547,13 +1549,13 @@ public open class CfnCacheCluster( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotarns) * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. */ override fun snapshotArns(vararg snapshotArns: String): Unit = snapshotArns(snapshotArns.toList()) /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). * * The snapshot status changes to `restoring` while the new node group (shard) is being created. * @@ -1562,8 +1564,8 @@ public open class CfnCacheCluster( * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-snapshotname) - * @param snapshotName The name of a Redis snapshot from which to restore data into the new node - * group (shard). + * @param snapshotName The name of a Redis OSS snapshot from which to restore data into the new + * node group (shard). */ override fun snapshotName(snapshotName: String) { cdkBuilder.snapshotName(snapshotName) @@ -1757,7 +1759,8 @@ public open class CfnCacheCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheCluster.CloudWatchLogsDestinationDetailsProperty, - ) : CdkObject(cdkObject), CloudWatchLogsDestinationDetailsProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsDestinationDetailsProperty { /** * The name of the CloudWatch Logs log group. * @@ -1965,7 +1968,8 @@ public open class CfnCacheCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheCluster.DestinationDetailsProperty, - ) : CdkObject(cdkObject), DestinationDetailsProperty { + ) : CdkObject(cdkObject), + DestinationDetailsProperty { /** * The configuration details of the CloudWatch Logs destination. * @@ -2064,7 +2068,8 @@ public open class CfnCacheCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheCluster.KinesisFirehoseDestinationDetailsProperty, - ) : CdkObject(cdkObject), KinesisFirehoseDestinationDetailsProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseDestinationDetailsProperty { /** * The name of the Kinesis Data Firehose delivery stream. * @@ -2260,7 +2265,8 @@ public open class CfnCacheCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheCluster.LogDeliveryConfigurationRequestProperty, - ) : CdkObject(cdkObject), LogDeliveryConfigurationRequestProperty { + ) : CdkObject(cdkObject), + LogDeliveryConfigurationRequestProperty { /** * Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose * destination. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheClusterProps.kt index 683cd4e640..bac0a6eaf1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnCacheClusterProps.kt @@ -72,8 +72,8 @@ import kotlin.collections.List */ public interface CfnCacheClusterProps { /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) @@ -169,10 +169,10 @@ public interface CfnCacheClusterProps { * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-cachenodetype) */ @@ -257,7 +257,7 @@ public interface CfnCacheClusterProps { /** * The network type you choose when modifying a cluster, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro system](https://docs.aws.amazon.com/ec2/nitro/) * . * @@ -275,7 +275,7 @@ public interface CfnCacheClusterProps { /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro system](https://docs.aws.amazon.com/ec2/nitro/) * . * @@ -376,7 +376,7 @@ public interface CfnCacheClusterProps { /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies - * a Redis RDB snapshot file stored in Amazon S3. + * a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in the * ARN cannot contain any commas. @@ -392,7 +392,7 @@ public interface CfnCacheClusterProps { public fun snapshotArns(): List = unwrap(this).getSnapshotArns() ?: emptyList() /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). * * The snapshot status changes to `restoring` while the new node group (shard) is being created. * @@ -468,15 +468,15 @@ public interface CfnCacheClusterProps { @CdkDslMarker public interface Builder { /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) @@ -567,10 +567,10 @@ public interface CfnCacheClusterProps { * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. */ public fun cacheNodeType(cacheNodeType: String) @@ -641,7 +641,7 @@ public interface CfnCacheClusterProps { /** * @param ipDiscovery The network type you choose when modifying a cluster, either `ipv4` | * `ipv6` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -664,7 +664,7 @@ public interface CfnCacheClusterProps { /** * @param networkType Must be either `ipv4` | `ipv6` | `dual_stack` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -766,7 +766,7 @@ public interface CfnCacheClusterProps { /** * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. * @@ -780,7 +780,7 @@ public interface CfnCacheClusterProps { /** * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. * @@ -793,8 +793,8 @@ public interface CfnCacheClusterProps { public fun snapshotArns(vararg snapshotArns: String) /** - * @param snapshotName The name of a Redis snapshot from which to restore data into the new node - * group (shard). + * @param snapshotName The name of a Redis OSS snapshot from which to restore data into the new + * node group (shard). * The snapshot status changes to `restoring` while the new node group (shard) is being created. * * @@ -869,8 +869,8 @@ public interface CfnCacheClusterProps { = software.amazon.awscdk.services.elasticache.CfnCacheClusterProps.builder() /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) { @@ -878,8 +878,8 @@ public interface CfnCacheClusterProps { } /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) { @@ -974,10 +974,10 @@ public interface CfnCacheClusterProps { * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. */ override fun cacheNodeType(cacheNodeType: String) { cdkBuilder.cacheNodeType(cacheNodeType) @@ -1063,7 +1063,7 @@ public interface CfnCacheClusterProps { /** * @param ipDiscovery The network type you choose when modifying a cluster, either `ipv4` | * `ipv6` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -1093,7 +1093,7 @@ public interface CfnCacheClusterProps { /** * @param networkType Must be either `ipv4` | `ipv6` | `dual_stack` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -1210,7 +1210,7 @@ public interface CfnCacheClusterProps { /** * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. * @@ -1226,7 +1226,7 @@ public interface CfnCacheClusterProps { /** * @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN) - * that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. + * that uniquely identifies a Redis OSS RDB snapshot file stored in Amazon S3. * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. * @@ -1240,8 +1240,8 @@ public interface CfnCacheClusterProps { snapshotArns(snapshotArns.toList()) /** - * @param snapshotName The name of a Redis snapshot from which to restore data into the new node - * group (shard). + * @param snapshotName The name of a Redis OSS snapshot from which to restore data into the new + * node group (shard). * The snapshot status changes to `restoring` while the new node group (shard) is being created. * * @@ -1331,11 +1331,12 @@ public interface CfnCacheClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnCacheClusterProps, - ) : CdkObject(cdkObject), CfnCacheClusterProps { + ) : CdkObject(cdkObject), + CfnCacheClusterProps { /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-autominorversionupgrade) */ @@ -1431,10 +1432,10 @@ public interface CfnCacheClusterProps { * *Additional node type info* * * * All current generation instance types are created in Amazon VPC by default. - * * Redis append-only files (AOF) are not supported for T1 or T2 instances. - * * Redis Multi-AZ with automatic failover is not supported on T1 instances. - * * Redis configuration variables `appendonly` and `appendfsync` are not supported on Redis - * version 2.8.22 and later. + * * Redis OSS append-only files (AOF) are not supported for T1 or T2 instances. + * * Redis OSS Multi-AZ with automatic failover is not supported on T1 instances. + * * Redis OSS configuration variables `appendonly` and `appendfsync` are not supported on Redis + * OSS version 2.8.22 and later. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-cachecluster.html#cfn-elasticache-cachecluster-cachenodetype) */ @@ -1519,7 +1520,7 @@ public interface CfnCacheClusterProps { /** * The network type you choose when modifying a cluster, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1537,7 +1538,7 @@ public interface CfnCacheClusterProps { /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1639,7 +1640,7 @@ public interface CfnCacheClusterProps { /** * A single-element string list containing an Amazon Resource Name (ARN) that uniquely - * identifies a Redis RDB snapshot file stored in Amazon S3. + * identifies a Redis OSS RDB snapshot file stored in Amazon S3. * * The snapshot file is used to populate the node group (shard). The Amazon S3 object name in * the ARN cannot contain any commas. @@ -1655,7 +1656,7 @@ public interface CfnCacheClusterProps { override fun snapshotArns(): List = unwrap(this).getSnapshotArns() ?: emptyList() /** - * The name of a Redis snapshot from which to restore data into the new node group (shard). + * The name of a Redis OSS snapshot from which to restore data into the new node group (shard). * * The snapshot status changes to `restoring` while the new node group (shard) is being created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroup.kt index cee607c82d..c06c82c4f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroup.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGlobalReplicationGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -143,12 +144,12 @@ public open class CfnGlobalReplicationGroup( } /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. */ public open fun engineVersion(): String? = unwrap(this).getEngineVersion() /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. */ public open fun engineVersion(`value`: String) { unwrap(this).setEngineVersion(`value`) @@ -259,7 +260,7 @@ public open class CfnGlobalReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) @@ -272,7 +273,7 @@ public open class CfnGlobalReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) @@ -301,10 +302,10 @@ public open class CfnGlobalReplicationGroup( public fun cacheParameterGroupName(cacheParameterGroupName: String) /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-engineversion) - * @param engineVersion The Elasticache Redis engine version. + * @param engineVersion The Elasticache Redis OSS engine version. */ public fun engineVersion(engineVersion: String) @@ -396,7 +397,7 @@ public open class CfnGlobalReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) @@ -411,7 +412,7 @@ public open class CfnGlobalReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) @@ -446,10 +447,10 @@ public open class CfnGlobalReplicationGroup( } /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-engineversion) - * @param engineVersion The Elasticache Redis engine version. + * @param engineVersion The Elasticache Redis OSS engine version. */ override fun engineVersion(engineVersion: String) { cdkBuilder.engineVersion(engineVersion) @@ -668,7 +669,8 @@ public open class CfnGlobalReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty, - ) : CdkObject(cdkObject), GlobalReplicationGroupMemberProperty { + ) : CdkObject(cdkObject), + GlobalReplicationGroupMemberProperty { /** * The replication group id of the Global datastore member. * @@ -839,7 +841,8 @@ public open class CfnGlobalReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.RegionalConfigurationProperty, - ) : CdkObject(cdkObject), RegionalConfigurationProperty { + ) : CdkObject(cdkObject), + RegionalConfigurationProperty { /** * The name of the secondary cluster. * @@ -902,8 +905,8 @@ public open class CfnGlobalReplicationGroup( */ public interface ReshardingConfigurationProperty { /** - * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group - * these configuration values apply to. + * Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node + * group these configuration values apply to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-reshardingconfiguration.html#cfn-elasticache-globalreplicationgroup-reshardingconfiguration-nodegroupid) */ @@ -923,8 +926,8 @@ public open class CfnGlobalReplicationGroup( @CdkDslMarker public interface Builder { /** - * @param nodeGroupId Either the ElastiCache for Redis supplied 4-digit id or a user supplied - * id for the node group these configuration values apply to. + * @param nodeGroupId Either the ElastiCache (Redis OSS) supplied 4-digit id or a user + * supplied id for the node group these configuration values apply to. */ public fun nodeGroupId(nodeGroupId: String) @@ -948,8 +951,8 @@ public open class CfnGlobalReplicationGroup( software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.ReshardingConfigurationProperty.builder() /** - * @param nodeGroupId Either the ElastiCache for Redis supplied 4-digit id or a user supplied - * id for the node group these configuration values apply to. + * @param nodeGroupId Either the ElastiCache (Redis OSS) supplied 4-digit id or a user + * supplied id for the node group these configuration values apply to. */ override fun nodeGroupId(nodeGroupId: String) { cdkBuilder.nodeGroupId(nodeGroupId) @@ -977,9 +980,10 @@ public open class CfnGlobalReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.ReshardingConfigurationProperty, - ) : CdkObject(cdkObject), ReshardingConfigurationProperty { + ) : CdkObject(cdkObject), + ReshardingConfigurationProperty { /** - * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node + * Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node * group these configuration values apply to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-reshardingconfiguration.html#cfn-elasticache-globalreplicationgroup-reshardingconfiguration-nodegroupid) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroupProps.kt index 485ad28388..b86b83d0e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnGlobalReplicationGroupProps.kt @@ -55,7 +55,8 @@ public interface CfnGlobalReplicationGroupProps { * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication groups. + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication + * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) */ @@ -78,7 +79,7 @@ public interface CfnGlobalReplicationGroupProps { public fun cacheParameterGroupName(): String? = unwrap(this).getCacheParameterGroupName() /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-engineversion) */ @@ -131,7 +132,7 @@ public interface CfnGlobalReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. */ public fun automaticFailoverEnabled(automaticFailoverEnabled: Boolean) @@ -139,7 +140,7 @@ public interface CfnGlobalReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. */ public fun automaticFailoverEnabled(automaticFailoverEnabled: IResolvable) @@ -157,7 +158,7 @@ public interface CfnGlobalReplicationGroupProps { public fun cacheParameterGroupName(cacheParameterGroupName: String) /** - * @param engineVersion The Elasticache Redis engine version. + * @param engineVersion The Elasticache Redis OSS engine version. */ public fun engineVersion(engineVersion: String) @@ -216,7 +217,7 @@ public interface CfnGlobalReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. */ override fun automaticFailoverEnabled(automaticFailoverEnabled: Boolean) { @@ -226,7 +227,7 @@ public interface CfnGlobalReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. */ override fun automaticFailoverEnabled(automaticFailoverEnabled: IResolvable) { @@ -250,7 +251,7 @@ public interface CfnGlobalReplicationGroupProps { } /** - * @param engineVersion The Elasticache Redis engine version. + * @param engineVersion The Elasticache Redis OSS engine version. */ override fun engineVersion(engineVersion: String) { cdkBuilder.engineVersion(engineVersion) @@ -323,12 +324,13 @@ public interface CfnGlobalReplicationGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroupProps, - ) : CdkObject(cdkObject), CfnGlobalReplicationGroupProps { + ) : CdkObject(cdkObject), + CfnGlobalReplicationGroupProps { /** * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-automaticfailoverenabled) @@ -352,7 +354,7 @@ public interface CfnGlobalReplicationGroupProps { override fun cacheParameterGroupName(): String? = unwrap(this).getCacheParameterGroupName() /** - * The Elasticache Redis engine version. + * The Elasticache Redis OSS engine version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html#cfn-elasticache-globalreplicationgroup-engineversion) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroup.kt index 93bc3d8c34..4c00c147e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroup.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnParameterGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -65,9 +67,10 @@ public open class CfnParameterGroup( ) /** - * + * A user-specified name for the cache parameter group. */ - public open fun attrId(): String = unwrap(this).getAttrId() + public open fun attrCacheParameterGroupName(): String = + unwrap(this).getAttrCacheParameterGroupName() /** * The name of the cache parameter group family that this cache parameter group is compatible diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroupProps.kt index f96a07c372..37e40c29d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnParameterGroupProps.kt @@ -205,7 +205,8 @@ public interface CfnParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnParameterGroupProps, - ) : CdkObject(cdkObject), CfnParameterGroupProps { + ) : CdkObject(cdkObject), + CfnParameterGroupProps { /** * The name of the cache parameter group family that this cache parameter group is compatible * with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroup.kt index 2295d7a39d..db90ffafe4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroup.kt @@ -23,18 +23,18 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * The `AWS::ElastiCache::ReplicationGroup` resource creates an Amazon ElastiCache Redis replication - * group. + * The `AWS::ElastiCache::ReplicationGroup` resource creates an Amazon ElastiCache (Redis OSS) + * replication group. * - * A Redis (cluster mode disabled) replication group is a collection of cache clusters, where one of - * the clusters is a primary read-write cluster and the others are read-only replicas. + * A Redis OSS (cluster mode disabled) replication group is a collection of cache clusters, where + * one of the clusters is a primary read-write cluster and the others are read-only replicas. * - * A Redis (cluster mode enabled) cluster is comprised of from 1 to 90 shards (API/CLI: node + * A Redis OSS (cluster mode enabled) cluster is comprised of from 1 to 90 shards (API/CLI: node * groups). Each shard has a primary node and up to 5 read-only replica nodes. The configuration can * range from 90 shards and 0 replicas to 15 shards and 5 replicas, which is the maximum number or * replicas allowed. * - * The node or shard limit can be increased to a maximum of 500 per cluster if the Redis engine + * The node or shard limit can be increased to a maximum of 500 per cluster if the Redis OSS engine * version is 5.0.6 or higher. For example, you can choose to configure a 500 node cluster that ranges * between 83 shards (one primary and 5 replicas per shard) and 500 shards (single primary and no * replicas). Make sure there are enough available IP addresses to accommodate the increase. Common @@ -123,7 +123,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -163,9 +165,9 @@ public open class CfnReplicationGroup( * The DNS hostname of the cache node. * * - * Redis (cluster mode disabled) replication groups don't have this attribute. Therefore, + * Redis OSS (cluster mode disabled) replication groups don't have this attribute. Therefore, * `Fn::GetAtt` returns a value for this attribute only if the replication group is clustered. - * Otherwise, `Fn::GetAtt` fails. For Redis (cluster mode disabled) replication groups, use the + * Otherwise, `Fn::GetAtt` fails. For Redis OSS (cluster mode disabled) replication groups, use the * `PrimaryEndpoint` or `ReadEndpoint` attributes. */ public open fun attrConfigurationEndPointAddress(): String = @@ -245,15 +247,15 @@ public open class CfnReplicationGroup( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(): Any? = unwrap(this).getAutoMinorVersionUpgrade() /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(`value`: Boolean) { @@ -261,8 +263,8 @@ public open class CfnReplicationGroup( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. */ public open fun autoMinorVersionUpgrade(`value`: IResolvable) { @@ -504,13 +506,13 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. */ public open fun nodeGroupConfiguration(): Any? = unwrap(this).getNodeGroupConfiguration() /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. */ public open fun nodeGroupConfiguration(`value`: IResolvable) { unwrap(this).setNodeGroupConfiguration(`value`.let(IResolvable.Companion::unwrap)) @@ -518,7 +520,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. */ public open fun nodeGroupConfiguration(`value`: List) { unwrap(this).setNodeGroupConfiguration(`value`.map{CdkObjectWrappers.unwrap(it)}) @@ -526,7 +528,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. */ public open fun nodeGroupConfiguration(vararg `value`: Any): Unit = nodeGroupConfiguration(`value`.toList()) @@ -558,14 +560,14 @@ public open class CfnReplicationGroup( } /** - * An optional parameter that specifies the number of node groups (shards) for this Redis (cluster - * mode enabled) replication group. + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS + * (cluster mode enabled) replication group. */ public open fun numNodeGroups(): Number? = unwrap(this).getNumNodeGroups() /** - * An optional parameter that specifies the number of node groups (shards) for this Redis (cluster - * mode enabled) replication group. + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS + * (cluster mode enabled) replication group. */ public open fun numNodeGroups(`value`: Number) { unwrap(this).setNumNodeGroups(`value`) @@ -653,12 +655,16 @@ public open class CfnReplicationGroup( } /** + * The replication group identifier. * + * This parameter is stored as a lowercase string. */ public open fun replicationGroupId(): String? = unwrap(this).getReplicationGroupId() /** + * The replication group identifier. * + * This parameter is stored as a lowercase string. */ public open fun replicationGroupId(`value`: String) { unwrap(this).setReplicationGroupId(`value`) @@ -684,13 +690,13 @@ public open class CfnReplicationGroup( securityGroupIds(`value`.toList()) /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. */ public open fun snapshotArns(): List = unwrap(this).getSnapshotArns() ?: emptyList() /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. */ public open fun snapshotArns(`value`: List) { @@ -698,7 +704,7 @@ public open class CfnReplicationGroup( } /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. */ public open fun snapshotArns(vararg `value`: String): Unit = snapshotArns(`value`.toList()) @@ -838,7 +844,7 @@ public open class CfnReplicationGroup( * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -855,7 +861,7 @@ public open class CfnReplicationGroup( * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -869,7 +875,7 @@ public open class CfnReplicationGroup( * *Reserved parameter.* The password used to access a password protected server. * * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -900,25 +906,25 @@ public open class CfnReplicationGroup( public fun authToken(authToken: String) /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) @@ -927,7 +933,7 @@ public open class CfnReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -942,7 +948,7 @@ public open class CfnReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -1034,12 +1040,12 @@ public open class CfnReplicationGroup( * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use - * a default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname) @@ -1086,10 +1092,10 @@ public open class CfnReplicationGroup( * Enabled or Disabled. * * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. + * For more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode) @@ -1160,7 +1166,7 @@ public open class CfnReplicationGroup( /** * The network type you choose when creating a replication group, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1229,7 +1235,7 @@ public open class CfnReplicationGroup( /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -1240,7 +1246,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1253,13 +1259,13 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ public fun nodeGroupConfiguration(nodeGroupConfiguration: IResolvable) /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1272,13 +1278,13 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ public fun nodeGroupConfiguration(nodeGroupConfiguration: List) /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1291,7 +1297,7 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ public fun nodeGroupConfiguration(vararg nodeGroupConfiguration: Any) @@ -1327,10 +1333,10 @@ public open class CfnReplicationGroup( public fun numCacheClusters(numCacheClusters: Number) /** - * An optional parameter that specifies the number of node groups (shards) for this Redis + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS * (cluster mode enabled) replication group. * - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1343,7 +1349,7 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numnodegroups) * @param numNodeGroups An optional parameter that specifies the number of node groups (shards) - * for this Redis (cluster mode enabled) replication group. + * for this Redis OSS (cluster mode enabled) replication group. */ public fun numNodeGroups(numNodeGroups: Number) @@ -1462,8 +1468,17 @@ public open class CfnReplicationGroup( public fun replicationGroupDescription(replicationGroupDescription: String) /** + * The replication group identifier. This parameter is stored as a lowercase string. + * + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid) - * @param replicationGroupId + * @param replicationGroupId The replication group identifier. This parameter is stored as a + * lowercase string. */ public fun replicationGroupId(replicationGroupId: String) @@ -1492,7 +1507,7 @@ public open class CfnReplicationGroup( public fun securityGroupIds(vararg securityGroupIds: String) /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name @@ -1504,12 +1519,12 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns) * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. */ public fun snapshotArns(snapshotArns: List) /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name @@ -1521,7 +1536,7 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns) * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. */ public fun snapshotArns(vararg snapshotArns: String) @@ -1568,7 +1583,7 @@ public open class CfnReplicationGroup( /** * The cluster ID that is used as the daily snapshot source for the replication group. * - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid) * @param snapshottingClusterId The cluster ID that is used as the daily snapshot source for the @@ -1612,7 +1627,7 @@ public open class CfnReplicationGroup( * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1640,7 +1655,7 @@ public open class CfnReplicationGroup( * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1662,8 +1677,8 @@ public open class CfnReplicationGroup( * * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` * to `preferred` in the same request, to allow both encrypted and unencrypted connections at the - * same time. Once you migrate all your Redis clients to use encrypted connections you can modify - * the value to `required` to allow encrypted connections only. + * same time. Once you migrate all your Redis OSS clients to use encrypted connections you can + * modify the value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to * first set the `TransitEncryptionMode` to `preferred` , after that you can set @@ -1708,7 +1723,7 @@ public open class CfnReplicationGroup( * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1727,7 +1742,7 @@ public open class CfnReplicationGroup( * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1743,7 +1758,7 @@ public open class CfnReplicationGroup( * *Reserved parameter.* The password used to access a password protected server. * * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -1776,13 +1791,13 @@ public open class CfnReplicationGroup( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) { @@ -1790,13 +1805,13 @@ public open class CfnReplicationGroup( } /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) { @@ -1807,7 +1822,7 @@ public open class CfnReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -1824,7 +1839,7 @@ public open class CfnReplicationGroup( * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -1920,12 +1935,12 @@ public open class CfnReplicationGroup( * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use - * a default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname) @@ -1979,10 +1994,10 @@ public open class CfnReplicationGroup( * Enabled or Disabled. * * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. + * For more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode) @@ -2065,7 +2080,7 @@ public open class CfnReplicationGroup( /** * The network type you choose when creating a replication group, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -2147,7 +2162,7 @@ public open class CfnReplicationGroup( /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -2160,7 +2175,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2173,7 +2188,7 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ override fun nodeGroupConfiguration(nodeGroupConfiguration: IResolvable) { cdkBuilder.nodeGroupConfiguration(nodeGroupConfiguration.let(IResolvable.Companion::unwrap)) @@ -2181,7 +2196,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2194,7 +2209,7 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ override fun nodeGroupConfiguration(nodeGroupConfiguration: List) { cdkBuilder.nodeGroupConfiguration(nodeGroupConfiguration.map{CdkObjectWrappers.unwrap(it)}) @@ -2202,7 +2217,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2215,7 +2230,7 @@ public open class CfnReplicationGroup( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration) * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. */ override fun nodeGroupConfiguration(vararg nodeGroupConfiguration: Any): Unit = nodeGroupConfiguration(nodeGroupConfiguration.toList()) @@ -2256,10 +2271,10 @@ public open class CfnReplicationGroup( } /** - * An optional parameter that specifies the number of node groups (shards) for this Redis + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS * (cluster mode enabled) replication group. * - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2272,7 +2287,7 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numnodegroups) * @param numNodeGroups An optional parameter that specifies the number of node groups (shards) - * for this Redis (cluster mode enabled) replication group. + * for this Redis OSS (cluster mode enabled) replication group. */ override fun numNodeGroups(numNodeGroups: Number) { cdkBuilder.numNodeGroups(numNodeGroups) @@ -2406,8 +2421,17 @@ public open class CfnReplicationGroup( } /** + * The replication group identifier. This parameter is stored as a lowercase string. + * + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid) - * @param replicationGroupId + * @param replicationGroupId The replication group identifier. This parameter is stored as a + * lowercase string. */ override fun replicationGroupId(replicationGroupId: String) { cdkBuilder.replicationGroupId(replicationGroupId) @@ -2441,7 +2465,7 @@ public open class CfnReplicationGroup( securityGroupIds(securityGroupIds.toList()) /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name @@ -2453,14 +2477,14 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns) * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. */ override fun snapshotArns(snapshotArns: List) { cdkBuilder.snapshotArns(snapshotArns) } /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name @@ -2472,7 +2496,7 @@ public open class CfnReplicationGroup( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns) * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. */ override fun snapshotArns(vararg snapshotArns: String): Unit = snapshotArns(snapshotArns.toList()) @@ -2526,7 +2550,7 @@ public open class CfnReplicationGroup( /** * The cluster ID that is used as the daily snapshot source for the replication group. * - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid) * @param snapshottingClusterId The cluster ID that is used as the daily snapshot source for the @@ -2574,7 +2598,7 @@ public open class CfnReplicationGroup( * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -2604,7 +2628,7 @@ public open class CfnReplicationGroup( * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -2628,8 +2652,8 @@ public open class CfnReplicationGroup( * * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` * to `preferred` in the same request, to allow both encrypted and unencrypted connections at the - * same time. Once you migrate all your Redis clients to use encrypted connections you can modify - * the value to `required` to allow encrypted connections only. + * same time. Once you migrate all your Redis OSS clients to use encrypted connections you can + * modify the value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to * first set the `TransitEncryptionMode` to `preferred` , after that you can set @@ -2748,7 +2772,8 @@ public open class CfnReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup.CloudWatchLogsDestinationDetailsProperty, - ) : CdkObject(cdkObject), CloudWatchLogsDestinationDetailsProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsDestinationDetailsProperty { /** * The name of the CloudWatch Logs log group. * @@ -2956,7 +2981,8 @@ public open class CfnReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup.DestinationDetailsProperty, - ) : CdkObject(cdkObject), DestinationDetailsProperty { + ) : CdkObject(cdkObject), + DestinationDetailsProperty { /** * The configuration details of the CloudWatch Logs destination. * @@ -3055,7 +3081,8 @@ public open class CfnReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup.KinesisFirehoseDestinationDetailsProperty, - ) : CdkObject(cdkObject), KinesisFirehoseDestinationDetailsProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseDestinationDetailsProperty { /** * The name of the Kinesis Data Firehose delivery stream. * @@ -3251,7 +3278,8 @@ public open class CfnReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup.LogDeliveryConfigurationRequestProperty, - ) : CdkObject(cdkObject), LogDeliveryConfigurationRequestProperty { + ) : CdkObject(cdkObject), + LogDeliveryConfigurationRequestProperty { /** * Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose * destination. @@ -3306,7 +3334,7 @@ public open class CfnReplicationGroup( /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * Example: * @@ -3328,8 +3356,8 @@ public open class CfnReplicationGroup( */ public interface NodeGroupConfigurationProperty { /** - * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group - * these configuration values apply to. + * Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node + * group these configuration values apply to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-nodegroupid) */ @@ -3388,8 +3416,8 @@ public open class CfnReplicationGroup( @CdkDslMarker public interface Builder { /** - * @param nodeGroupId Either the ElastiCache for Redis supplied 4-digit id or a user supplied - * id for the node group these configuration values apply to. + * @param nodeGroupId Either the ElastiCache (Redis OSS) supplied 4-digit id or a user + * supplied id for the node group these configuration values apply to. */ public fun nodeGroupId(nodeGroupId: String) @@ -3447,8 +3475,8 @@ public open class CfnReplicationGroup( software.amazon.awscdk.services.elasticache.CfnReplicationGroup.NodeGroupConfigurationProperty.builder() /** - * @param nodeGroupId Either the ElastiCache for Redis supplied 4-digit id or a user supplied - * id for the node group these configuration values apply to. + * @param nodeGroupId Either the ElastiCache (Redis OSS) supplied 4-digit id or a user + * supplied id for the node group these configuration values apply to. */ override fun nodeGroupId(nodeGroupId: String) { cdkBuilder.nodeGroupId(nodeGroupId) @@ -3516,9 +3544,10 @@ public open class CfnReplicationGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroup.NodeGroupConfigurationProperty, - ) : CdkObject(cdkObject), NodeGroupConfigurationProperty { + ) : CdkObject(cdkObject), + NodeGroupConfigurationProperty { /** - * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node + * Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node * group these configuration values apply to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-nodegroupid) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroupProps.kt index 8f46ac067d..d212138ca8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnReplicationGroupProps.kt @@ -98,7 +98,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -111,7 +111,7 @@ public interface CfnReplicationGroupProps { * *Reserved parameter.* The password used to access a password protected server. * * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -140,8 +140,8 @@ public interface CfnReplicationGroupProps { public fun authToken(): String? = unwrap(this).getAuthToken() /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to - * opt-in to the next minor version upgrade campaign. This parameter is disabled for previous + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you want + * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous * versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) @@ -152,7 +152,8 @@ public interface CfnReplicationGroupProps { * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication groups. + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication + * groups. * * Default: false * @@ -239,12 +240,12 @@ public interface CfnReplicationGroupProps { * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a - * default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname) @@ -277,10 +278,10 @@ public interface CfnReplicationGroupProps { * Enabled or Disabled. * * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. For + * more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode) @@ -332,7 +333,7 @@ public interface CfnReplicationGroupProps { /** * The network type you choose when creating a replication group, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro system](https://docs.aws.amazon.com/ec2/nitro/) * . * @@ -367,7 +368,7 @@ public interface CfnReplicationGroupProps { /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro system](https://docs.aws.amazon.com/ec2/nitro/) * . * @@ -377,7 +378,7 @@ public interface CfnReplicationGroupProps { /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -420,10 +421,10 @@ public interface CfnReplicationGroupProps { public fun numCacheClusters(): Number? = unwrap(this).getNumCacheClusters() /** - * An optional parameter that specifies the number of node groups (shards) for this Redis (cluster - * mode enabled) replication group. + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS + * (cluster mode enabled) replication group. * - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -519,6 +520,14 @@ public interface CfnReplicationGroupProps { public fun replicationGroupDescription(): String /** + * The replication group identifier. This parameter is stored as a lowercase string. + * + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid) */ public fun replicationGroupId(): String? = unwrap(this).getReplicationGroupId() @@ -534,7 +543,7 @@ public interface CfnReplicationGroupProps { public fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() ?: emptyList() /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name in @@ -585,7 +594,7 @@ public interface CfnReplicationGroupProps { /** * The cluster ID that is used as the daily snapshot source for the replication group. * - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid) */ @@ -614,7 +623,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -634,7 +643,7 @@ public interface CfnReplicationGroupProps { * * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` to * `preferred` in the same request, to allow both encrypted and unencrypted connections at the same - * time. Once you migrate all your Redis clients to use encrypted connections you can modify the + * time. Once you migrate all your Redis OSS clients to use encrypted connections you can modify the * value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to first @@ -665,7 +674,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -678,7 +687,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -689,7 +698,7 @@ public interface CfnReplicationGroupProps { * @param authToken *Reserved parameter.* The password used to access a password protected * server. * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -715,15 +724,15 @@ public interface CfnReplicationGroupProps { public fun authToken(authToken: String) /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ public fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) @@ -731,7 +740,7 @@ public interface CfnReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -741,7 +750,7 @@ public interface CfnReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -825,12 +834,12 @@ public interface CfnReplicationGroupProps { * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use - * a default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . */ public fun cacheParameterGroupName(cacheParameterGroupName: String) @@ -861,10 +870,10 @@ public interface CfnReplicationGroupProps { /** * @param clusterMode Enabled or Disabled. * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. + * For more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . */ public fun clusterMode(clusterMode: String) @@ -913,7 +922,7 @@ public interface CfnReplicationGroupProps { /** * @param ipDiscovery The network type you choose when creating a replication group, either * `ipv4` | `ipv6` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -957,7 +966,7 @@ public interface CfnReplicationGroupProps { /** * @param networkType Must be either `ipv4` | `ipv6` | `dual_stack` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -966,7 +975,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -980,7 +989,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -994,7 +1003,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -1028,8 +1037,8 @@ public interface CfnReplicationGroupProps { /** * @param numNodeGroups An optional parameter that specifies the number of node groups (shards) - * for this Redis (cluster mode enabled) replication group. - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * for this Redis OSS (cluster mode enabled) replication group. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1131,7 +1140,13 @@ public interface CfnReplicationGroupProps { public fun replicationGroupDescription(replicationGroupDescription: String) /** - * @param replicationGroupId the value to be set. + * @param replicationGroupId The replication group identifier. This parameter is stored as a + * lowercase string. + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. */ public fun replicationGroupId(replicationGroupId: String) @@ -1153,7 +1168,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. * The snapshot files are used to populate the new replication group. The Amazon S3 object name * in the ARN cannot contain any commas. The new replication group will have the number of node * groups (console: shards) specified by the parameter *NumNodeGroups* or the number of node groups @@ -1165,7 +1180,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. * The snapshot files are used to populate the new replication group. The Amazon S3 object name * in the ARN cannot contain any commas. The new replication group will have the number of node * groups (console: shards) specified by the parameter *NumNodeGroups* or the number of node groups @@ -1205,7 +1220,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshottingClusterId The cluster ID that is used as the daily snapshot source for the * replication group. - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. */ public fun snapshottingClusterId(snapshottingClusterId: String) @@ -1237,7 +1252,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1260,7 +1275,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1276,8 +1291,8 @@ public interface CfnReplicationGroupProps { * in-transit encryption, with no downtime. * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` * to `preferred` in the same request, to allow both encrypted and unencrypted connections at the - * same time. Once you migrate all your Redis clients to use encrypted connections you can modify - * the value to `required` to allow encrypted connections only. + * same time. Once you migrate all your Redis OSS clients to use encrypted connections you can + * modify the value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to * first set the `TransitEncryptionMode` to `preferred` , after that you can set @@ -1309,7 +1324,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1324,7 +1339,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1337,7 +1352,7 @@ public interface CfnReplicationGroupProps { * @param authToken *Reserved parameter.* The password used to access a password protected * server. * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -1365,8 +1380,8 @@ public interface CfnReplicationGroupProps { } /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: Boolean) { @@ -1374,8 +1389,8 @@ public interface CfnReplicationGroupProps { } /** - * @param autoMinorVersionUpgrade If you are running Redis engine version 6.0 or later, set this - * parameter to yes if you want to opt-in to the next minor version upgrade campaign. This + * @param autoMinorVersionUpgrade If you are running Redis OSS engine version 6.0 or later, set + * this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This * parameter is disabled for previous versions. */ override fun autoMinorVersionUpgrade(autoMinorVersionUpgrade: IResolvable) { @@ -1385,7 +1400,7 @@ public interface CfnReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -1397,7 +1412,7 @@ public interface CfnReplicationGroupProps { /** * @param automaticFailoverEnabled Specifies whether a read-only replica is automatically * promoted to read/write primary if the existing primary fails. - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -1485,12 +1500,12 @@ public interface CfnReplicationGroupProps { * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use - * a default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . */ override fun cacheParameterGroupName(cacheParameterGroupName: String) { @@ -1528,10 +1543,10 @@ public interface CfnReplicationGroupProps { /** * @param clusterMode Enabled or Disabled. * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. + * For more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . */ override fun clusterMode(clusterMode: String) { @@ -1592,7 +1607,7 @@ public interface CfnReplicationGroupProps { /** * @param ipDiscovery The network type you choose when creating a replication group, either * `ipv4` | `ipv6` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -1649,7 +1664,7 @@ public interface CfnReplicationGroupProps { /** * @param networkType Must be either `ipv4` | `ipv6` | `dual_stack` . - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . */ @@ -1660,7 +1675,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -1676,7 +1691,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -1692,7 +1707,7 @@ public interface CfnReplicationGroupProps { /** * @param nodeGroupConfiguration `NodeGroupConfiguration` is a property of the * `AWS::ElastiCache::ReplicationGroup` resource that configures an Amazon ElastiCache - * (ElastiCache) Redis cluster node group. + * (ElastiCache) Redis OSS cluster node group. * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) * to `true` , you can update `NodeGroupConfiguration` without interruption. When @@ -1731,8 +1746,8 @@ public interface CfnReplicationGroupProps { /** * @param numNodeGroups An optional parameter that specifies the number of node groups (shards) - * for this Redis (cluster mode enabled) replication group. - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * for this Redis OSS (cluster mode enabled) replication group. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -1849,7 +1864,13 @@ public interface CfnReplicationGroupProps { } /** - * @param replicationGroupId the value to be set. + * @param replicationGroupId The replication group identifier. This parameter is stored as a + * lowercase string. + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. */ override fun replicationGroupId(replicationGroupId: String) { cdkBuilder.replicationGroupId(replicationGroupId) @@ -1876,7 +1897,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. * The snapshot files are used to populate the new replication group. The Amazon S3 object name * in the ARN cannot contain any commas. The new replication group will have the number of node * groups (console: shards) specified by the parameter *NumNodeGroups* or the number of node groups @@ -1890,7 +1911,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshotArns A list of Amazon Resource Names (ARN) that uniquely identify the Redis - * RDB snapshot files stored in Amazon S3. + * OSS RDB snapshot files stored in Amazon S3. * The snapshot files are used to populate the new replication group. The Amazon S3 object name * in the ARN cannot contain any commas. The new replication group will have the number of node * groups (console: shards) specified by the parameter *NumNodeGroups* or the number of node groups @@ -1937,7 +1958,7 @@ public interface CfnReplicationGroupProps { /** * @param snapshottingClusterId The cluster ID that is used as the daily snapshot source for the * replication group. - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. */ override fun snapshottingClusterId(snapshottingClusterId: String) { cdkBuilder.snapshottingClusterId(snapshottingClusterId) @@ -1973,7 +1994,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -1998,7 +2019,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -2016,8 +2037,8 @@ public interface CfnReplicationGroupProps { * in-transit encryption, with no downtime. * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` * to `preferred` in the same request, to allow both encrypted and unencrypted connections at the - * same time. Once you migrate all your Redis clients to use encrypted connections you can modify - * the value to `required` to allow encrypted connections only. + * same time. Once you migrate all your Redis OSS clients to use encrypted connections you can + * modify the value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to * first set the `TransitEncryptionMode` to `preferred` , after that you can set @@ -2048,7 +2069,8 @@ public interface CfnReplicationGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnReplicationGroupProps, - ) : CdkObject(cdkObject), CfnReplicationGroupProps { + ) : CdkObject(cdkObject), + CfnReplicationGroupProps { /** * A flag that enables encryption at rest when set to `true` . * @@ -2056,7 +2078,7 @@ public interface CfnReplicationGroupProps { * created. To enable encryption at rest on a replication group you must set * `AtRestEncryptionEnabled` to `true` when you create the replication group. * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -2069,7 +2091,7 @@ public interface CfnReplicationGroupProps { * *Reserved parameter.* The password used to access a password protected server. * * `AuthToken` can be specified only on replication groups where `TransitEncryptionEnabled` is - * `true` . For more information, see [Authenticating Users with the Redis AUTH + * `true` . For more information, see [Authenticating Users with the Redis OSS AUTH * Command](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html) . * * @@ -2098,9 +2120,9 @@ public interface CfnReplicationGroupProps { override fun authToken(): String? = unwrap(this).getAuthToken() /** - * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want - * to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous - * versions. + * If you are running Redis OSS engine version 6.0 or later, set this parameter to yes if you + * want to opt-in to the next minor version upgrade campaign. This parameter is disabled for + * previous versions. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade) */ @@ -2110,7 +2132,7 @@ public interface CfnReplicationGroupProps { * Specifies whether a read-only replica is automatically promoted to read/write primary if the * existing primary fails. * - * `AutomaticFailoverEnabled` must be enabled for Redis (cluster mode enabled) replication + * `AutomaticFailoverEnabled` must be enabled for Redis OSS (cluster mode enabled) replication * groups. * * Default: false @@ -2199,12 +2221,12 @@ public interface CfnReplicationGroupProps { * If this argument is omitted, the default cache parameter group for the specified engine is * used. * - * If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use - * a default parameter group, we recommend that you specify the parameter group by name. + * If you are running Redis OSS version 3.2.4 or later, only one node group (shard), and want to + * use a default parameter group, we recommend that you specify the parameter group by name. * - * * To create a Redis (cluster mode disabled) replication group, use + * * To create a Redis OSS (cluster mode disabled) replication group, use * `CacheParameterGroupName=default.redis3.2` . - * * To create a Redis (cluster mode enabled) replication group, use + * * To create a Redis OSS (cluster mode enabled) replication group, use * `CacheParameterGroupName=default.redis3.2.cluster.on` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname) @@ -2237,10 +2259,10 @@ public interface CfnReplicationGroupProps { * Enabled or Disabled. * * To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to - * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled - * and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you - * can then complete cluster mode configuration and set the cluster mode to Enabled. For more - * information, see [Modify cluster + * Compatible. Compatible mode allows your Redis OSS clients to connect using both cluster mode + * enabled and cluster mode disabled. After you migrate all Redis OSS clients to use cluster mode + * enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled. + * For more information, see [Modify cluster * mode](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/modify-cluster-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode) @@ -2292,7 +2314,7 @@ public interface CfnReplicationGroupProps { /** * The network type you choose when creating a replication group, either `ipv4` | `ipv6` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -2327,7 +2349,7 @@ public interface CfnReplicationGroupProps { /** * Must be either `ipv4` | `ipv6` | `dual_stack` . * - * IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine + * IPv6 is supported for workloads using Redis OSS engine version 6.2 onward or Memcached engine * version 1.6.6 on all instances built on the [Nitro * system](https://docs.aws.amazon.com/ec2/nitro/) . * @@ -2337,7 +2359,7 @@ public interface CfnReplicationGroupProps { /** * `NodeGroupConfiguration` is a property of the `AWS::ElastiCache::ReplicationGroup` resource - * that configures an Amazon ElastiCache (ElastiCache) Redis cluster node group. + * that configures an Amazon ElastiCache (ElastiCache) Redis OSS cluster node group. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2380,10 +2402,10 @@ public interface CfnReplicationGroupProps { override fun numCacheClusters(): Number? = unwrap(this).getNumCacheClusters() /** - * An optional parameter that specifies the number of node groups (shards) for this Redis + * An optional parameter that specifies the number of node groups (shards) for this Redis OSS * (cluster mode enabled) replication group. * - * For Redis (cluster mode disabled) either omit this parameter or set it to 1. + * For Redis OSS (cluster mode disabled) either omit this parameter or set it to 1. * * If you set * [UseOnlineResharding](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html#cfn-attributes-updatepolicy-useonlineresharding) @@ -2481,6 +2503,14 @@ public interface CfnReplicationGroupProps { unwrap(this).getReplicationGroupDescription() /** + * The replication group identifier. This parameter is stored as a lowercase string. + * + * Constraints: + * + * * A name must contain from 1 to 40 alphanumeric characters or hyphens. + * * The first character must be a letter. + * * A name cannot end with a hyphen or contain two consecutive hyphens. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid) */ override fun replicationGroupId(): String? = unwrap(this).getReplicationGroupId() @@ -2497,7 +2527,7 @@ public interface CfnReplicationGroupProps { emptyList() /** - * A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files + * A list of Amazon Resource Names (ARN) that uniquely identify the Redis OSS RDB snapshot files * stored in Amazon S3. * * The snapshot files are used to populate the new replication group. The Amazon S3 object name @@ -2548,7 +2578,7 @@ public interface CfnReplicationGroupProps { /** * The cluster ID that is used as the daily snapshot source for the replication group. * - * This parameter cannot be set for Redis (cluster mode enabled) replication groups. + * This parameter cannot be set for Redis OSS (cluster mode enabled) replication groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid) */ @@ -2577,7 +2607,7 @@ public interface CfnReplicationGroupProps { * * If you enable in-transit encryption, you must also specify a value for `CacheSubnetGroup` . * - * *Required:* Only available when creating a replication group in an Amazon VPC using redis + * *Required:* Only available when creating a replication group in an Amazon VPC using Redis OSS * version `3.2.6` or `4.x` onward. * * Default: `false` @@ -2597,8 +2627,8 @@ public interface CfnReplicationGroupProps { * * When setting `TransitEncryptionEnabled` to `true` , you can set your `TransitEncryptionMode` * to `preferred` in the same request, to allow both encrypted and unencrypted connections at the - * same time. Once you migrate all your Redis clients to use encrypted connections you can modify - * the value to `required` to allow encrypted connections only. + * same time. Once you migrate all your Redis OSS clients to use encrypted connections you can + * modify the value to `required` to allow encrypted connections only. * * Setting `TransitEncryptionMode` to `required` is a two-step process that requires you to * first set the `TransitEncryptionMode` to `preferred` , after that you can set diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroup.kt index a87b7b9e63..d2c6e203ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroup.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnSecurityGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngress.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngress.kt index b152568d56..bdc0a3cbfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngress.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngress.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityGroupIngress( cdkObject: software.amazon.awscdk.services.elasticache.CfnSecurityGroupIngress, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngressProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngressProps.kt index 80ccb2d038..a6936f8860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngressProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupIngressProps.kt @@ -110,7 +110,8 @@ public interface CfnSecurityGroupIngressProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnSecurityGroupIngressProps, - ) : CdkObject(cdkObject), CfnSecurityGroupIngressProps { + ) : CdkObject(cdkObject), + CfnSecurityGroupIngressProps { /** * The name of the Cache Security Group to authorize. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupProps.kt index 8b7edf77a5..9c6f60b48e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSecurityGroupProps.kt @@ -108,7 +108,8 @@ public interface CfnSecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnSecurityGroupProps, - ) : CdkObject(cdkObject), CfnSecurityGroupProps { + ) : CdkObject(cdkObject), + CfnSecurityGroupProps { /** * A description for the cache security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCache.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCache.kt index 4f503650c4..e477b7055a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCache.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCache.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServerlessCache( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCache, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -451,7 +453,7 @@ public open class CfnServerlessCache( * The daily time that a cache snapshot will be created. * * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-dailysnapshottime) * @param dailySnapshotTime The daily time that a cache snapshot will be created. @@ -619,7 +621,7 @@ public open class CfnServerlessCache( /** * The current setting for the number of serverless cache snapshots the system will retain. * - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-snapshotretentionlimit) * @param snapshotRetentionLimit The current setting for the number of serverless cache @@ -672,7 +674,7 @@ public open class CfnServerlessCache( /** * The identifier of the user group associated with the serverless cache. * - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-usergroupid) * @param userGroupId The identifier of the user group associated with the serverless cache. @@ -722,7 +724,7 @@ public open class CfnServerlessCache( * The daily time that a cache snapshot will be created. * * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-dailysnapshottime) * @param dailySnapshotTime The daily time that a cache snapshot will be created. @@ -920,7 +922,7 @@ public open class CfnServerlessCache( /** * The current setting for the number of serverless cache snapshots the system will retain. * - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-snapshotretentionlimit) * @param snapshotRetentionLimit The current setting for the number of serverless cache @@ -979,7 +981,7 @@ public open class CfnServerlessCache( /** * The identifier of the user group associated with the serverless cache. * - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-usergroupid) * @param userGroupId The identifier of the user group associated with the serverless cache. @@ -1156,7 +1158,8 @@ public open class CfnServerlessCache( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCache.CacheUsageLimitsProperty, - ) : CdkObject(cdkObject), CacheUsageLimitsProperty { + ) : CdkObject(cdkObject), + CacheUsageLimitsProperty { /** * The maximum data storage limit in the cache, expressed in Gigabytes. * @@ -1286,7 +1289,8 @@ public open class CfnServerlessCache( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCache.DataStorageProperty, - ) : CdkObject(cdkObject), DataStorageProperty { + ) : CdkObject(cdkObject), + DataStorageProperty { /** * The upper limit for data storage the cache is set to use. * @@ -1408,7 +1412,8 @@ public open class CfnServerlessCache( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCache.ECPUPerSecondProperty, - ) : CdkObject(cdkObject), ECPUPerSecondProperty { + ) : CdkObject(cdkObject), + ECPUPerSecondProperty { /** * The configuration for the maximum number of ECPUs the cache can consume per second. * @@ -1519,7 +1524,8 @@ public open class CfnServerlessCache( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCache.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * The DNS hostname of the cache node. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCacheProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCacheProps.kt index 7190e2938d..6d80152a76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCacheProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnServerlessCacheProps.kt @@ -78,7 +78,7 @@ public interface CfnServerlessCacheProps { * The daily time that a cache snapshot will be created. * * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-dailysnapshottime) */ @@ -163,7 +163,7 @@ public interface CfnServerlessCacheProps { /** * The current setting for the number of serverless cache snapshots the system will retain. * - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-snapshotretentionlimit) */ @@ -190,7 +190,7 @@ public interface CfnServerlessCacheProps { /** * The identifier of the user group associated with the serverless cache. * - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-usergroupid) */ @@ -222,7 +222,7 @@ public interface CfnServerlessCacheProps { /** * @param dailySnapshotTime The daily time that a cache snapshot will be created. * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. */ public fun dailySnapshotTime(dailySnapshotTime: String) @@ -333,7 +333,7 @@ public interface CfnServerlessCacheProps { /** * @param snapshotRetentionLimit The current setting for the number of serverless cache * snapshots the system will retain. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. */ public fun snapshotRetentionLimit(snapshotRetentionLimit: Number) @@ -365,7 +365,7 @@ public interface CfnServerlessCacheProps { /** * @param userGroupId The identifier of the user group associated with the serverless cache. - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. */ public fun userGroupId(userGroupId: String) } @@ -401,7 +401,7 @@ public interface CfnServerlessCacheProps { /** * @param dailySnapshotTime The daily time that a cache snapshot will be created. * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. */ override fun dailySnapshotTime(dailySnapshotTime: String) { cdkBuilder.dailySnapshotTime(dailySnapshotTime) @@ -542,7 +542,7 @@ public interface CfnServerlessCacheProps { /** * @param snapshotRetentionLimit The current setting for the number of serverless cache * snapshots the system will retain. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. */ override fun snapshotRetentionLimit(snapshotRetentionLimit: Number) { cdkBuilder.snapshotRetentionLimit(snapshotRetentionLimit) @@ -580,7 +580,7 @@ public interface CfnServerlessCacheProps { /** * @param userGroupId The identifier of the user group associated with the serverless cache. - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. */ override fun userGroupId(userGroupId: String) { cdkBuilder.userGroupId(userGroupId) @@ -592,7 +592,8 @@ public interface CfnServerlessCacheProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnServerlessCacheProps, - ) : CdkObject(cdkObject), CfnServerlessCacheProps { + ) : CdkObject(cdkObject), + CfnServerlessCacheProps { /** * The cache usage limit for the serverless cache. * @@ -604,7 +605,7 @@ public interface CfnServerlessCacheProps { * The daily time that a cache snapshot will be created. * * Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-dailysnapshottime) */ @@ -690,7 +691,7 @@ public interface CfnServerlessCacheProps { /** * The current setting for the number of serverless cache snapshots the system will retain. * - * Available for Redis only. + * Available for Redis OSS and Serverless Memcached only. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-snapshotretentionlimit) */ @@ -717,7 +718,7 @@ public interface CfnServerlessCacheProps { /** * The identifier of the user group associated with the serverless cache. * - * Available for Redis only. Default is NULL. + * Available for Redis OSS only. Default is NULL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-serverlesscache.html#cfn-elasticache-serverlesscache-usergroupid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroup.kt index e4ebbf40b9..5d52e39f56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroup.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroupProps.kt index b002f92e39..8669a08135 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnSubnetGroupProps.kt @@ -169,7 +169,8 @@ public interface CfnSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnSubnetGroupProps, - ) : CdkObject(cdkObject), CfnSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnSubnetGroupProps { /** * The name for the cache subnet group. This value is stored as a lowercase string. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUser.kt index 9c90797b41..a4fd971d61 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUser.kt @@ -21,8 +21,8 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * For Redis engine version 6.0 onwards: Creates a Redis user. For more information, see [Using Role - * Based Access Control + * For Redis OSS engine version 6.0 onwards: Creates a Redis OSS user. For more information, see + * [Using Role Based Access Control * (RBAC)](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html) . * * Example: @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.elasticache.CfnUser, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -172,20 +174,20 @@ public open class CfnUser( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -285,18 +287,18 @@ public open class CfnUser( public fun passwords(vararg passwords: String) /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(tags: List) /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(vararg tags: CfnTag) @@ -403,20 +405,20 @@ public open class CfnUser( override fun passwords(vararg passwords: String): Unit = passwords(passwords.toList()) /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -556,7 +558,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnUser.AuthenticationModeProperty, - ) : CdkObject(cdkObject), AuthenticationModeProperty { + ) : CdkObject(cdkObject), + AuthenticationModeProperty { /** * Specifies the passwords to use for authentication if `Type` is set to `password` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroup.kt index a6e62194b4..45eaf4a5c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroup.kt @@ -16,7 +16,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * For Redis engine version 6.0 onwards: Creates a Redis user group. For more information, see + * For Redis OSS engine version 6.0 onwards: Creates a Redis user group. For more information, see * [Using Role Based Access Control * (RBAC)](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html). * @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserGroup( cdkObject: software.amazon.awscdk.services.elasticache.CfnUserGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -98,20 +100,20 @@ public open class CfnUserGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An array of key-value pairs to apply to this user. + * The list of tags. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -158,18 +160,18 @@ public open class CfnUserGroup( public fun engine(engine: String) /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(tags: List) /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(vararg tags: CfnTag) @@ -220,20 +222,20 @@ public open class CfnUserGroup( } /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroupProps.kt index 3e07ad904c..6efbb49fc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserGroupProps.kt @@ -42,7 +42,7 @@ public interface CfnUserGroupProps { public fun engine(): String /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) */ @@ -75,12 +75,12 @@ public interface CfnUserGroupProps { public fun engine(engine: String) /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(tags: List) /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(vararg tags: CfnTag) @@ -114,14 +114,14 @@ public interface CfnUserGroupProps { } /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -152,7 +152,8 @@ public interface CfnUserGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnUserGroupProps, - ) : CdkObject(cdkObject), CfnUserGroupProps { + ) : CdkObject(cdkObject), + CfnUserGroupProps { /** * The current supported value is redis. * @@ -161,7 +162,7 @@ public interface CfnUserGroupProps { override fun engine(): String = unwrap(this).getEngine() /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-usergroup.html#cfn-elasticache-usergroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserProps.kt index 4f07692b84..f470daf41b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticache/CfnUserProps.kt @@ -85,7 +85,7 @@ public interface CfnUserProps { public fun passwords(): List = unwrap(this).getPasswords() ?: emptyList() /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) */ @@ -153,12 +153,12 @@ public interface CfnUserProps { public fun passwords(vararg passwords: String) /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(tags: List) /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ public fun tags(vararg tags: CfnTag) @@ -232,14 +232,14 @@ public interface CfnUserProps { override fun passwords(vararg passwords: String): Unit = passwords(passwords.toList()) /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An array of key-value pairs to apply to this user. + * @param tags The list of tags. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -263,7 +263,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticache.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * Access permissions string used for this user. * @@ -307,7 +308,7 @@ public interface CfnUserProps { override fun passwords(): List = unwrap(this).getPasswords() ?: emptyList() /** - * An array of key-value pairs to apply to this user. + * The list of tags. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplication.kt index 800d231e0e..65adb2b8b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplication.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplication, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticbeanstalk.CfnApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -456,7 +457,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty, - ) : CdkObject(cdkObject), ApplicationResourceLifecycleConfigProperty { + ) : CdkObject(cdkObject), + ApplicationResourceLifecycleConfigProperty { /** * The ARN of an IAM service role that Elastic Beanstalk has permission to assume. * @@ -662,7 +664,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.ApplicationVersionLifecycleConfigProperty, - ) : CdkObject(cdkObject), ApplicationVersionLifecycleConfigProperty { + ) : CdkObject(cdkObject), + ApplicationVersionLifecycleConfigProperty { /** * Specify a max age rule to restrict the length of time that application versions are * retained for an application. @@ -831,7 +834,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxAgeRuleProperty, - ) : CdkObject(cdkObject), MaxAgeRuleProperty { + ) : CdkObject(cdkObject), + MaxAgeRuleProperty { /** * Set to `true` to delete a version's source bundle from Amazon S3 when Elastic Beanstalk * deletes the application version. @@ -1006,7 +1010,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.MaxCountRuleProperty, - ) : CdkObject(cdkObject), MaxCountRuleProperty { + ) : CdkObject(cdkObject), + MaxCountRuleProperty { /** * Set to `true` to delete a version's source bundle from Amazon S3 when Elastic Beanstalk * deletes the application version. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationProps.kt index 59349d9684..35da540ee5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationProps.kt @@ -183,7 +183,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * A name for the Elastic Beanstalk application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersion.kt index dac59a4687..50b7523ab7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersion.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationVersion( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -390,7 +391,8 @@ public open class CfnApplicationVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationVersion.SourceBundleProperty, - ) : CdkObject(cdkObject), SourceBundleProperty { + ) : CdkObject(cdkObject), + SourceBundleProperty { /** * The Amazon S3 bucket where the data is located. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersionProps.kt index a8b0c19bfb..e896314e41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnApplicationVersionProps.kt @@ -161,7 +161,8 @@ public interface CfnApplicationVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationVersionProps, - ) : CdkObject(cdkObject), CfnApplicationVersionProps { + ) : CdkObject(cdkObject), + CfnApplicationVersionProps { /** * The name of the Elastic Beanstalk application that is associated with this application * version. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplate.kt index 6b52905e6c..e55ead0fd8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplate.kt @@ -68,7 +68,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationTemplate( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnConfigurationTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -759,7 +760,8 @@ public open class CfnConfigurationTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnConfigurationTemplate.ConfigurationOptionSettingProperty, - ) : CdkObject(cdkObject), ConfigurationOptionSettingProperty { + ) : CdkObject(cdkObject), + ConfigurationOptionSettingProperty { /** * A unique namespace that identifies the option's associated AWS resource. * @@ -892,7 +894,8 @@ public open class CfnConfigurationTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnConfigurationTemplate.SourceConfigurationProperty, - ) : CdkObject(cdkObject), SourceConfigurationProperty { + ) : CdkObject(cdkObject), + SourceConfigurationProperty { /** * The name of the application associated with the configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplateProps.kt index 808658708f..fb8b923dd6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnConfigurationTemplateProps.kt @@ -439,7 +439,8 @@ public interface CfnConfigurationTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnConfigurationTemplateProps, - ) : CdkObject(cdkObject), CfnConfigurationTemplateProps { + ) : CdkObject(cdkObject), + CfnConfigurationTemplateProps { /** * The name of the Elastic Beanstalk application to associate with this configuration template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironment.kt index 8eb3e05fc8..edba98ed41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironment.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -951,7 +953,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironment.OptionSettingProperty, - ) : CdkObject(cdkObject), OptionSettingProperty { + ) : CdkObject(cdkObject), + OptionSettingProperty { /** * A unique namespace that identifies the option's associated AWS resource. * @@ -1149,7 +1152,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironment.TierProperty, - ) : CdkObject(cdkObject), TierProperty { + ) : CdkObject(cdkObject), + TierProperty { /** * The name of this environment tier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironmentProps.kt index f9571191ee..23c870342e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticbeanstalk/CfnEnvironmentProps.kt @@ -560,7 +560,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * The name of the application that is associated with this environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancer.kt index 62aa1f7304..292f6e28f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancer.kt @@ -104,7 +104,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoadBalancer( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1692,7 +1694,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.AccessLoggingPolicyProperty, - ) : CdkObject(cdkObject), AccessLoggingPolicyProperty { + ) : CdkObject(cdkObject), + AccessLoggingPolicyProperty { /** * The interval for publishing the access logs. You can specify an interval of either 5 * minutes or 60 minutes. @@ -1831,7 +1834,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.AppCookieStickinessPolicyProperty, - ) : CdkObject(cdkObject), AppCookieStickinessPolicyProperty { + ) : CdkObject(cdkObject), + AppCookieStickinessPolicyProperty { /** * The name of the application cookie used for stickiness. * @@ -1960,7 +1964,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.ConnectionDrainingPolicyProperty, - ) : CdkObject(cdkObject), ConnectionDrainingPolicyProperty { + ) : CdkObject(cdkObject), + ConnectionDrainingPolicyProperty { /** * Specifies whether connection draining is enabled for the load balancer. * @@ -2053,7 +2058,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.ConnectionSettingsProperty, - ) : CdkObject(cdkObject), ConnectionSettingsProperty { + ) : CdkObject(cdkObject), + ConnectionSettingsProperty { /** * The time, in seconds, that the connection is allowed to be idle (no data has been sent over * the connection) before it is closed by the load balancer. @@ -2276,7 +2282,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.HealthCheckProperty, - ) : CdkObject(cdkObject), HealthCheckProperty { + ) : CdkObject(cdkObject), + HealthCheckProperty { /** * The number of consecutive health checks successes required before moving the instance to * the `Healthy` state. @@ -2444,7 +2451,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty, - ) : CdkObject(cdkObject), LBCookieStickinessPolicyProperty { + ) : CdkObject(cdkObject), + LBCookieStickinessPolicyProperty { /** * The time period, in seconds, after which the cookie should be considered stale. * @@ -2687,7 +2695,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.ListenersProperty, - ) : CdkObject(cdkObject), ListenersProperty { + ) : CdkObject(cdkObject), + ListenersProperty { /** * The port on which the instance is listening. * @@ -2959,7 +2968,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.PoliciesProperty, - ) : CdkObject(cdkObject), PoliciesProperty { + ) : CdkObject(cdkObject), + PoliciesProperty { /** * The policy attributes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancerProps.kt index 3888b74a96..739f5e9a44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/CfnLoadBalancerProps.kt @@ -943,7 +943,8 @@ public interface CfnLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancerProps, - ) : CdkObject(cdkObject), CfnLoadBalancerProps { + ) : CdkObject(cdkObject), + CfnLoadBalancerProps { /** * Information about where and how access logs are stored for the load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/HealthCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/HealthCheck.kt index 5ae022d6bb..f15cdecdef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/HealthCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/HealthCheck.kt @@ -193,7 +193,8 @@ public interface HealthCheck { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.HealthCheck, - ) : CdkObject(cdkObject), HealthCheck { + ) : CdkObject(cdkObject), + HealthCheck { /** * After how many successful checks is an instance considered healthy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ILoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ILoadBalancerTarget.kt index 5bfba00ebf..fa210392b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ILoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ILoadBalancerTarget.kt @@ -21,7 +21,8 @@ public interface ILoadBalancerTarget : IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.ILoadBalancerTarget, - ) : CdkObject(cdkObject), ILoadBalancerTarget { + ) : CdkObject(cdkObject), + ILoadBalancerTarget { /** * Attach load-balanced target to a classic ELB. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/InstanceTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/InstanceTarget.kt index 92afeb5a59..fef6d1b9cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/InstanceTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/InstanceTarget.kt @@ -28,7 +28,8 @@ import io.cloudshiftdev.awscdk.services.ec2.Instance */ public open class InstanceTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.InstanceTarget, -) : CdkObject(cdkObject), ILoadBalancerTarget { +) : CdkObject(cdkObject), + ILoadBalancerTarget { public constructor(instance: Instance) : this(software.amazon.awscdk.services.elasticloadbalancing.InstanceTarget(instance.let(Instance.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ListenerPort.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ListenerPort.kt index 27e6617fae..e75e0f53df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ListenerPort.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/ListenerPort.kt @@ -36,7 +36,8 @@ import kotlin.Unit */ public open class ListenerPort( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.ListenerPort, -) : CdkObject(cdkObject), IConnectable { +) : CdkObject(cdkObject), + IConnectable { public constructor(securityGroup: ISecurityGroup, defaultPort: Port) : this(software.amazon.awscdk.services.elasticloadbalancing.ListenerPort(securityGroup.let(ISecurityGroup.Companion::unwrap), defaultPort.let(Port.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancer.kt index 65e3a24b99..60b2cbdf3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancer.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LoadBalancer( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.LoadBalancer, -) : Resource(cdkObject), IConnectable { +) : Resource(cdkObject), + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerListener.kt index 7d334999a9..762ee820cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerListener.kt @@ -255,7 +255,8 @@ public interface LoadBalancerListener { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.LoadBalancerListener, - ) : CdkObject(cdkObject), LoadBalancerListener { + ) : CdkObject(cdkObject), + LoadBalancerListener { /** * Allow connections to the load balancer from the given set of connection peers. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerProps.kt index 3e55ee0a71..116d8a0392 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancing/LoadBalancerProps.kt @@ -325,7 +325,8 @@ public interface LoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancing.LoadBalancerProps, - ) : CdkObject(cdkObject), LoadBalancerProps { + ) : CdkObject(cdkObject), + LoadBalancerProps { /** * Enable Loadbalancer access logs Can be used to avoid manual work as aws console Required S3 * bucket name , enabled flag Can add interval for pushing log Can set bucket prefix in order to diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationActionProps.kt index a5c1f267d9..ff7594a77c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationActionProps.kt @@ -155,7 +155,8 @@ public interface AddApplicationActionProps : AddRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationActionProps, - ) : CdkObject(cdkObject), AddApplicationActionProps { + ) : CdkObject(cdkObject), + AddApplicationActionProps { /** * Action to perform. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetGroupsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetGroupsProps.kt index d3369d82ad..d34c8397a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetGroupsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetGroupsProps.kt @@ -122,7 +122,8 @@ public interface AddApplicationTargetGroupsProps : AddRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationTargetGroupsProps, - ) : CdkObject(cdkObject), AddApplicationTargetGroupsProps { + ) : CdkObject(cdkObject), + AddApplicationTargetGroupsProps { /** * Rule applies if matches the conditions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetsProps.kt index dd083cc768..151657f681 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddApplicationTargetsProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit @@ -55,6 +56,18 @@ public interface AddApplicationTargetsProps : AddRuleProps { public fun deregistrationDelay(): Duration? = unwrap(this).getDeregistrationDelay()?.let(Duration::wrap) + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + */ + public fun enableAnomalyMitigation(): Boolean? = unwrap(this).getEnableAnomalyMitigation() + /** * Health check configuration. * @@ -178,6 +191,13 @@ public interface AddApplicationTargetsProps : AddRuleProps { */ public fun deregistrationDelay(deregistrationDelay: Duration) + /** + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + */ + public fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) + /** * @param healthCheck Health check configuration. */ @@ -299,6 +319,15 @@ public interface AddApplicationTargetsProps : AddRuleProps { cdkBuilder.deregistrationDelay(deregistrationDelay.let(Duration.Companion::unwrap)) } + /** + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + */ + override fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) { + cdkBuilder.enableAnomalyMitigation(enableAnomalyMitigation) + } + /** * @param healthCheck Health check configuration. */ @@ -423,7 +452,8 @@ public interface AddApplicationTargetsProps : AddRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationTargetsProps, - ) : CdkObject(cdkObject), AddApplicationTargetsProps { + ) : CdkObject(cdkObject), + AddApplicationTargetsProps { /** * Rule applies if matches the conditions. * @@ -444,6 +474,18 @@ public interface AddApplicationTargetsProps : AddRuleProps { override fun deregistrationDelay(): Duration? = unwrap(this).getDeregistrationDelay()?.let(Duration::wrap) + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + */ + override fun enableAnomalyMitigation(): Boolean? = unwrap(this).getEnableAnomalyMitigation() + /** * Health check configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkActionProps.kt index b1ccd9cc24..ae2d61ce9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkActionProps.kt @@ -57,7 +57,8 @@ public interface AddNetworkActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddNetworkActionProps, - ) : CdkObject(cdkObject), AddNetworkActionProps { + ) : CdkObject(cdkObject), + AddNetworkActionProps { /** * Action to perform. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkTargetsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkTargetsProps.kt index f78a32b6e9..056e45b19c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkTargetsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddNetworkTargetsProps.kt @@ -64,7 +64,7 @@ public interface AddNetworkTargetsProps { public fun healthCheck(): HealthCheck? = unwrap(this).getHealthCheck()?.let(HealthCheck::wrap) /** - * The port on which the listener listens for requests. + * The port on which the target receives traffic. * * Default: Determined from protocol if known */ @@ -138,7 +138,7 @@ public interface AddNetworkTargetsProps { public fun healthCheck(healthCheck: HealthCheck.Builder.() -> Unit) /** - * @param port The port on which the listener listens for requests. + * @param port The port on which the target receives traffic. */ public fun port(port: Number) @@ -212,7 +212,7 @@ public interface AddNetworkTargetsProps { healthCheck(HealthCheck(healthCheck)) /** - * @param port The port on which the listener listens for requests. + * @param port The port on which the target receives traffic. */ override fun port(port: Number) { cdkBuilder.port(port) @@ -275,7 +275,8 @@ public interface AddNetworkTargetsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddNetworkTargetsProps, - ) : CdkObject(cdkObject), AddNetworkTargetsProps { + ) : CdkObject(cdkObject), + AddNetworkTargetsProps { /** * The amount of time for Elastic Load Balancing to wait before deregistering a target. * @@ -297,7 +298,7 @@ public interface AddNetworkTargetsProps { override fun healthCheck(): HealthCheck? = unwrap(this).getHealthCheck()?.let(HealthCheck::wrap) /** - * The port on which the listener listens for requests. + * The port on which the target receives traffic. * * Default: Determined from protocol if known */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddRuleProps.kt index 100eeda5d0..9cf7b95ca2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AddRuleProps.kt @@ -111,7 +111,8 @@ public interface AddRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps, - ) : CdkObject(cdkObject), AddRuleProps { + ) : CdkObject(cdkObject), + AddRuleProps { /** * Rule applies if matches the conditions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListener.kt index 807d39df5e..8be607cae2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListener.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApplicationListener( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListener, -) : BaseListener(cdkObject), IApplicationListener { +) : BaseListener(cdkObject), + IApplicationListener { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -206,6 +207,11 @@ public open class ApplicationListener( public open fun loadBalancer(): IApplicationLoadBalancer = unwrap(this).getLoadBalancer().let(IApplicationLoadBalancer::wrap) + /** + * The port of the listener. + */ + public open fun port(): Number = unwrap(this).getPort() + /** * Register that a connectable that has been added to this load balancer. * @@ -313,6 +319,28 @@ public open class ApplicationListener( */ public fun loadBalancer(loadBalancer: IApplicationLoadBalancer) + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + * @param mutualAuthentication The mutual authentication configuration information. + */ + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication) + + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("29c4fd215591a5d0edb40289bebf3bed640722d3baf0b52832fd4113b2918989") + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit) + /** * Allow anyone to connect to the load balancer on the listener port. * @@ -452,6 +480,32 @@ public open class ApplicationListener( cdkBuilder.loadBalancer(loadBalancer.let(IApplicationLoadBalancer.Companion::unwrap)) } + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + * @param mutualAuthentication The mutual authentication configuration information. + */ + override fun mutualAuthentication(mutualAuthentication: MutualAuthentication) { + cdkBuilder.mutualAuthentication(mutualAuthentication.let(MutualAuthentication.Companion::unwrap)) + } + + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("29c4fd215591a5d0edb40289bebf3bed640722d3baf0b52832fd4113b2918989") + override + fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit): + Unit = mutualAuthentication(MutualAuthentication(mutualAuthentication)) + /** * Allow anyone to connect to the load balancer on the listener port. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerAttributes.kt index 23342d294c..61af477341 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerAttributes.kt @@ -101,7 +101,8 @@ public interface ApplicationListenerAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerAttributes, - ) : CdkObject(cdkObject), ApplicationListenerAttributes { + ) : CdkObject(cdkObject), + ApplicationListenerAttributes { /** * The default port on which this listener is listening. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerCertificateProps.kt index 181f12110c..60ab665be8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerCertificateProps.kt @@ -101,7 +101,8 @@ public interface ApplicationListenerCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerCertificateProps, - ) : CdkObject(cdkObject), ApplicationListenerCertificateProps { + ) : CdkObject(cdkObject), + ApplicationListenerCertificateProps { /** * Certificates to attach. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerLookupOptions.kt index 9fb8adf19b..5e8bd351a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerLookupOptions.kt @@ -119,7 +119,8 @@ public interface ApplicationListenerLookupOptions : BaseListenerLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerLookupOptions, - ) : CdkObject(cdkObject), ApplicationListenerLookupOptions { + ) : CdkObject(cdkObject), + ApplicationListenerLookupOptions { /** * ARN of the listener to look up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerProps.kt index a45d00fec6..4c0cfe6dd7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerProps.kt @@ -9,6 +9,7 @@ import kotlin.Boolean import kotlin.Number import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a standalone ApplicationListener. @@ -23,12 +24,18 @@ import kotlin.collections.List * ApplicationTargetGroup applicationTargetGroup; * ListenerAction listenerAction; * ListenerCertificate listenerCertificate; + * TrustStore trustStore; * ApplicationListenerProps applicationListenerProps = ApplicationListenerProps.builder() * .loadBalancer(applicationLoadBalancer) * // the properties below are optional * .certificates(List.of(listenerCertificate)) * .defaultAction(listenerAction) * .defaultTargetGroups(List.of(applicationTargetGroup)) + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.OFF) + * .trustStore(trustStore) + * .build()) * .open(false) * .port(123) * .protocol(ApplicationProtocol.HTTP) @@ -95,6 +102,18 @@ public interface ApplicationListenerProps : BaseApplicationListenerProps { */ public fun loadBalancer(loadBalancer: IApplicationLoadBalancer) + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication) + + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f9c183903e3334d5fa952c535cba81e8c58cca0acfcb03c67dc57dc4fdc21e97") + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit) + /** * @param open Allow anyone to connect to the load balancer on the listener port. * If this is specified, the load balancer will be opened up to anyone who can reach it. @@ -186,6 +205,22 @@ public interface ApplicationListenerProps : BaseApplicationListenerProps { cdkBuilder.loadBalancer(loadBalancer.let(IApplicationLoadBalancer.Companion::unwrap)) } + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + override fun mutualAuthentication(mutualAuthentication: MutualAuthentication) { + cdkBuilder.mutualAuthentication(mutualAuthentication.let(MutualAuthentication.Companion::unwrap)) + } + + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f9c183903e3334d5fa952c535cba81e8c58cca0acfcb03c67dc57dc4fdc21e97") + override + fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit): + Unit = mutualAuthentication(MutualAuthentication(mutualAuthentication)) + /** * @param open Allow anyone to connect to the load balancer on the listener port. * If this is specified, the load balancer will be opened up to anyone who can reach it. @@ -228,7 +263,8 @@ public interface ApplicationListenerProps : BaseApplicationListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerProps, - ) : CdkObject(cdkObject), ApplicationListenerProps { + ) : CdkObject(cdkObject), + ApplicationListenerProps { /** * Certificate list of ACM cert ARNs. * @@ -274,6 +310,16 @@ public interface ApplicationListenerProps : BaseApplicationListenerProps { override fun loadBalancer(): IApplicationLoadBalancer = unwrap(this).getLoadBalancer().let(IApplicationLoadBalancer::wrap) + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + */ + override fun mutualAuthentication(): MutualAuthentication? = + unwrap(this).getMutualAuthentication()?.let(MutualAuthentication::wrap) + /** * Allow anyone to connect to the load balancer on the listener port. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerRuleProps.kt index 3a1fd0e859..f8cf1d1d2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationListenerRuleProps.kt @@ -160,7 +160,8 @@ public interface ApplicationListenerRuleProps : BaseApplicationListenerRuleProps private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerRuleProps, - ) : CdkObject(cdkObject), ApplicationListenerRuleProps { + ) : CdkObject(cdkObject), + ApplicationListenerRuleProps { /** * Action to perform when requests are received. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancer.kt index 3168235347..10977462d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancer.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApplicationLoadBalancer( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer, -) : BaseLoadBalancer(cdkObject), IApplicationLoadBalancer { +) : BaseLoadBalancer(cdkObject), + IApplicationLoadBalancer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -176,6 +177,36 @@ public open class ApplicationLoadBalancer( unwrap(this).logAccessLogs(bucket.let(IBucket.Companion::unwrap), prefix) } + /** + * Enable connection logging for this load balancer. + * + * A region must be specified on the stack containing the load balancer; you cannot enable logging + * on + * environment-agnostic stacks. + * + * [Documentation](https://docs.aws.amazon.com/cdk/latest/guide/environments.html) + * @param bucket + * @param prefix + */ + public open fun logConnectionLogs(bucket: IBucket) { + unwrap(this).logConnectionLogs(bucket.let(IBucket.Companion::unwrap)) + } + + /** + * Enable connection logging for this load balancer. + * + * A region must be specified on the stack containing the load balancer; you cannot enable logging + * on + * environment-agnostic stacks. + * + * [Documentation](https://docs.aws.amazon.com/cdk/latest/guide/environments.html) + * @param bucket + * @param prefix + */ + public open fun logConnectionLogs(bucket: IBucket, prefix: String) { + unwrap(this).logConnectionLogs(bucket.let(IBucket.Companion::unwrap), prefix) + } + /** * (deprecated) Return the given named metric for this Application Load Balancer. * @@ -1189,8 +1220,7 @@ public open class ApplicationLoadBalancer( * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) * @param crossZoneEnabled Indicates whether cross-zone load balancing is enabled. */ public fun crossZoneEnabled(crossZoneEnabled: Boolean) @@ -1411,8 +1441,7 @@ public open class ApplicationLoadBalancer( * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) * @param crossZoneEnabled Indicates whether cross-zone load balancing is enabled. */ override fun crossZoneEnabled(crossZoneEnabled: Boolean) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerAttributes.kt index 6d525cf6be..1a07d2cb36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerAttributes.kt @@ -172,7 +172,8 @@ public interface ApplicationLoadBalancerAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerAttributes, - ) : CdkObject(cdkObject), ApplicationLoadBalancerAttributes { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerAttributes { /** * ARN of the load balancer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerLookupOptions.kt index 8f21ace55e..677e9452a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerLookupOptions.kt @@ -65,7 +65,8 @@ public interface ApplicationLoadBalancerLookupOptions : BaseLoadBalancerLookupOp private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerLookupOptions, - ) : CdkObject(cdkObject), ApplicationLoadBalancerLookupOptions { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerLookupOptions { /** * Find by load balancer's ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerProps.kt index df4d59a57b..2c56376d2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerProps.kt @@ -450,7 +450,8 @@ public interface ApplicationLoadBalancerProps : BaseLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerProps, - ) : CdkObject(cdkObject), ApplicationLoadBalancerProps { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerProps { /** * The client keep alive duration. * @@ -467,8 +468,7 @@ public interface ApplicationLoadBalancerProps : BaseLoadBalancerProps { * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) */ override fun crossZoneEnabled(): Boolean? = unwrap(this).getCrossZoneEnabled() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerRedirectConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerRedirectConfig.kt index e5a1521032..6110a874b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerRedirectConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationLoadBalancerRedirectConfig.kt @@ -163,7 +163,8 @@ public interface ApplicationLoadBalancerRedirectConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancerRedirectConfig, - ) : CdkObject(cdkObject), ApplicationLoadBalancerRedirectConfig { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerRedirectConfig { /** * Allow anyone to connect to this listener. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroup.kt index db7c02141d..45415a92ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroup.kt @@ -11,6 +11,7 @@ import io.cloudshiftdev.awscdk.services.ec2.IConnectable import io.cloudshiftdev.awscdk.services.ec2.IVpc import io.cloudshiftdev.awscdk.services.ec2.Port import io.cloudshiftdev.constructs.IConstruct +import kotlin.Boolean import kotlin.Deprecated import kotlin.Number import kotlin.String @@ -39,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApplicationTargetGroup( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationTargetGroup, -) : TargetGroupBase(cdkObject), IApplicationTargetGroup { +) : TargetGroupBase(cdkObject), + IApplicationTargetGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationTargetGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -628,6 +630,19 @@ public open class ApplicationTargetGroup( */ public fun deregistrationDelay(deregistrationDelay: Duration) + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + */ + public fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) + /** * Health check configuration. * @@ -826,6 +841,21 @@ public open class ApplicationTargetGroup( cdkBuilder.deregistrationDelay(deregistrationDelay.let(Duration.Companion::unwrap)) } + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + */ + override fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) { + cdkBuilder.enableAnomalyMitigation(enableAnomalyMitigation) + } + /** * Health check configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroupProps.kt index 19938bb25b..94dde1bb51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ApplicationTargetGroupProps.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.ec2.IVpc +import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit @@ -20,20 +21,28 @@ import kotlin.jvm.JvmName * * ``` * Vpc vpc; + * // Target group with slow start mode enabled * ApplicationTargetGroup tg = ApplicationTargetGroup.Builder.create(this, "TG") - * .targetType(TargetType.IP) - * .port(50051) - * .protocol(ApplicationProtocol.HTTP) - * .protocolVersion(ApplicationProtocolVersion.GRPC) - * .healthCheck(HealthCheck.builder() - * .enabled(true) - * .healthyGrpcCodes("0-99") - * .build()) + * .targetType(TargetType.INSTANCE) + * .slowStart(Duration.seconds(60)) + * .port(80) * .vpc(vpc) * .build(); * ``` */ public interface ApplicationTargetGroupProps : BaseTargetGroupProps { + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + */ + public fun enableAnomalyMitigation(): Boolean? = unwrap(this).getEnableAnomalyMitigation() + /** * The load balancing algorithm to select targets for routing requests. * @@ -133,6 +142,13 @@ public interface ApplicationTargetGroupProps : BaseTargetGroupProps { */ public fun deregistrationDelay(deregistrationDelay: Duration) + /** + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + */ + public fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) + /** * @param healthCheck Health check configuration. */ @@ -249,6 +265,15 @@ public interface ApplicationTargetGroupProps : BaseTargetGroupProps { cdkBuilder.deregistrationDelay(deregistrationDelay.let(Duration.Companion::unwrap)) } + /** + * @param enableAnomalyMitigation Indicates whether anomaly mitigation is enabled. + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + */ + override fun enableAnomalyMitigation(enableAnomalyMitigation: Boolean) { + cdkBuilder.enableAnomalyMitigation(enableAnomalyMitigation) + } + /** * @param healthCheck Health check configuration. */ @@ -383,7 +408,8 @@ public interface ApplicationTargetGroupProps : BaseTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationTargetGroupProps, - ) : CdkObject(cdkObject), ApplicationTargetGroupProps { + ) : CdkObject(cdkObject), + ApplicationTargetGroupProps { /** * The amount of time for Elastic Load Balancing to wait before deregistering a target. * @@ -394,6 +420,18 @@ public interface ApplicationTargetGroupProps : BaseTargetGroupProps { override fun deregistrationDelay(): Duration? = unwrap(this).getDeregistrationDelay()?.let(Duration::wrap) + /** + * Indicates whether anomaly mitigation is enabled. + * + * Only available when `loadBalancingAlgorithmType` is + * `TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM` + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) + */ + override fun enableAnomalyMitigation(): Boolean? = unwrap(this).getEnableAnomalyMitigation() + /** * Health check configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AuthenticateOidcOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AuthenticateOidcOptions.kt index a2b7e56137..44e00fedb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AuthenticateOidcOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/AuthenticateOidcOptions.kt @@ -332,7 +332,8 @@ public interface AuthenticateOidcOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.AuthenticateOidcOptions, - ) : CdkObject(cdkObject), AuthenticateOidcOptions { + ) : CdkObject(cdkObject), + AuthenticateOidcOptions { /** * Allow HTTPS outbound traffic to communicate with the IdP. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerProps.kt index 4d39a31337..506fe56200 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerProps.kt @@ -9,6 +9,7 @@ import kotlin.Boolean import kotlin.Number import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Basic properties for an ApplicationListener. @@ -75,6 +76,16 @@ public interface BaseApplicationListenerProps { public fun defaultTargetGroups(): List = unwrap(this).getDefaultTargetGroups()?.map(IApplicationTargetGroup::wrap) ?: emptyList() + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + */ + public fun mutualAuthentication(): MutualAuthentication? = + unwrap(this).getMutualAuthentication()?.let(MutualAuthentication::wrap) + /** * Allow anyone to connect to the load balancer on the listener port. * @@ -160,6 +171,18 @@ public interface BaseApplicationListenerProps { */ public fun defaultTargetGroups(vararg defaultTargetGroups: IApplicationTargetGroup) + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication) + + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d66c2c3a9d7339ce4250b37e5f9e85df0ecc50c03cab47da792541973d06edc6") + public fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit) + /** * @param open Allow anyone to connect to the load balancer on the listener port. * If this is specified, the load balancer will be opened up to anyone who can reach it. @@ -245,6 +268,22 @@ public interface BaseApplicationListenerProps { override fun defaultTargetGroups(vararg defaultTargetGroups: IApplicationTargetGroup): Unit = defaultTargetGroups(defaultTargetGroups.toList()) + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + override fun mutualAuthentication(mutualAuthentication: MutualAuthentication) { + cdkBuilder.mutualAuthentication(mutualAuthentication.let(MutualAuthentication.Companion::unwrap)) + } + + /** + * @param mutualAuthentication The mutual authentication configuration information. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d66c2c3a9d7339ce4250b37e5f9e85df0ecc50c03cab47da792541973d06edc6") + override + fun mutualAuthentication(mutualAuthentication: MutualAuthentication.Builder.() -> Unit): + Unit = mutualAuthentication(MutualAuthentication(mutualAuthentication)) + /** * @param open Allow anyone to connect to the load balancer on the listener port. * If this is specified, the load balancer will be opened up to anyone who can reach it. @@ -287,7 +326,8 @@ public interface BaseApplicationListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseApplicationListenerProps, - ) : CdkObject(cdkObject), BaseApplicationListenerProps { + ) : CdkObject(cdkObject), + BaseApplicationListenerProps { /** * Certificate list of ACM cert ARNs. * @@ -327,6 +367,16 @@ public interface BaseApplicationListenerProps { override fun defaultTargetGroups(): List = unwrap(this).getDefaultTargetGroups()?.map(IApplicationTargetGroup::wrap) ?: emptyList() + /** + * The mutual authentication configuration information. + * + * Default: - No mutual authentication configuration + * + * [Documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html) + */ + override fun mutualAuthentication(): MutualAuthentication? = + unwrap(this).getMutualAuthentication()?.let(MutualAuthentication::wrap) + /** * Allow anyone to connect to the load balancer on the listener port. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerRuleProps.kt index 5e44d5b04d..bfabce37e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseApplicationListenerRuleProps.kt @@ -181,7 +181,8 @@ public interface BaseApplicationListenerRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseApplicationListenerRuleProps, - ) : CdkObject(cdkObject), BaseApplicationListenerRuleProps { + ) : CdkObject(cdkObject), + BaseApplicationListenerRuleProps { /** * Action to perform when requests are received. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListener.kt index 961f846dc2..f0c0e616e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListener.kt @@ -12,7 +12,8 @@ import kotlin.String */ public abstract class BaseListener( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseListener, -) : Resource(cdkObject), IListener { +) : Resource(cdkObject), + IListener { /** * ARN of the listener. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListenerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListenerLookupOptions.kt index 0d1f070c8a..4509294c73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListenerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseListenerLookupOptions.kt @@ -104,7 +104,8 @@ public interface BaseListenerLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseListenerLookupOptions, - ) : CdkObject(cdkObject), BaseListenerLookupOptions { + ) : CdkObject(cdkObject), + BaseListenerLookupOptions { /** * Filter listeners by listener port. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerLookupOptions.kt index 551490a490..ef5047bd80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerLookupOptions.kt @@ -85,7 +85,8 @@ public interface BaseLoadBalancerLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancerLookupOptions, - ) : CdkObject(cdkObject), BaseLoadBalancerLookupOptions { + ) : CdkObject(cdkObject), + BaseLoadBalancerLookupOptions { /** * Find by load balancer's ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerProps.kt index efcf812d8e..d2d7d734c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseLoadBalancerProps.kt @@ -51,8 +51,7 @@ public interface BaseLoadBalancerProps { * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) */ public fun crossZoneEnabled(): Boolean? = unwrap(this).getCrossZoneEnabled() @@ -215,15 +214,15 @@ public interface BaseLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancerProps, - ) : CdkObject(cdkObject), BaseLoadBalancerProps { + ) : CdkObject(cdkObject), + BaseLoadBalancerProps { /** * Indicates whether cross-zone load balancing is enabled. * * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) */ override fun crossZoneEnabled(): Boolean? = unwrap(this).getCrossZoneEnabled() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseNetworkListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseNetworkListenerProps.kt index da320225a5..323e75718d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseNetworkListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseNetworkListenerProps.kt @@ -274,7 +274,8 @@ public interface BaseNetworkListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseNetworkListenerProps, - ) : CdkObject(cdkObject), BaseNetworkListenerProps { + ) : CdkObject(cdkObject), + BaseNetworkListenerProps { /** * Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial * TLS handshake hello messages. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseTargetGroupProps.kt index 4646ab99c6..b1ceefa69b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/BaseTargetGroupProps.kt @@ -205,7 +205,8 @@ public interface BaseTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.BaseTargetGroupProps, - ) : CdkObject(cdkObject), BaseTargetGroupProps { + ) : CdkObject(cdkObject), + BaseTargetGroupProps { /** * The amount of time for Elastic Load Balancing to wait before deregistering a target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListener.kt index 757d610891..d8fdfb4ae3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListener.kt @@ -96,6 +96,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .certificates(List.of(CertificateProperty.builder() * .certificateArn("certificateArn") * .build())) + * .listenerAttributes(List.of(ListenerAttributeProperty.builder() + * .key("key") + * .value("value") + * .build())) * .mutualAuthentication(MutualAuthenticationProperty.builder() * .ignoreClientCertificateExpiry(false) * .mode("mode") @@ -111,7 +115,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnListener( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -215,6 +220,31 @@ public open class CfnListener( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * + */ + public open fun listenerAttributes(): Any? = unwrap(this).getListenerAttributes() + + /** + * + */ + public open fun listenerAttributes(`value`: IResolvable) { + unwrap(this).setListenerAttributes(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * + */ + public open fun listenerAttributes(`value`: List) { + unwrap(this).setListenerAttributes(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * + */ + public open fun listenerAttributes(vararg `value`: Any): Unit = + listenerAttributes(`value`.toList()) + /** * The Amazon Resource Name (ARN) of the load balancer. */ @@ -396,6 +426,24 @@ public open class CfnListener( */ public fun defaultActions(vararg defaultActions: Any) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + public fun listenerAttributes(listenerAttributes: IResolvable) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + public fun listenerAttributes(listenerAttributes: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + public fun listenerAttributes(vararg listenerAttributes: Any) + /** * The Amazon Resource Name (ARN) of the load balancer. * @@ -592,6 +640,29 @@ public open class CfnListener( override fun defaultActions(vararg defaultActions: Any): Unit = defaultActions(defaultActions.toList()) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + override fun listenerAttributes(listenerAttributes: IResolvable) { + cdkBuilder.listenerAttributes(listenerAttributes.let(IResolvable.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + override fun listenerAttributes(listenerAttributes: List) { + cdkBuilder.listenerAttributes(listenerAttributes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + * @param listenerAttributes + */ + override fun listenerAttributes(vararg listenerAttributes: Any): Unit = + listenerAttributes(listenerAttributes.toList()) + /** * The Amazon Resource Name (ARN) of the load balancer. * @@ -1203,7 +1274,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * [HTTPS listeners] Information for using Amazon Cognito to authenticate users. * @@ -1551,7 +1623,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.AuthenticateCognitoConfigProperty, - ) : CdkObject(cdkObject), AuthenticateCognitoConfigProperty { + ) : CdkObject(cdkObject), + AuthenticateCognitoConfigProperty { /** * The query parameters (up to 10) to include in the redirect request to the authorization * endpoint. @@ -2014,7 +2087,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.AuthenticateOidcConfigProperty, - ) : CdkObject(cdkObject), AuthenticateOidcConfigProperty { + ) : CdkObject(cdkObject), + AuthenticateOidcConfigProperty { /** * The query parameters (up to 10) to include in the redirect request to the authorization * endpoint. @@ -2199,7 +2273,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.CertificateProperty, - ) : CdkObject(cdkObject), CertificateProperty { + ) : CdkObject(cdkObject), + CertificateProperty { /** * The Amazon Resource Name (ARN) of the certificate. * @@ -2326,7 +2401,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.FixedResponseConfigProperty, - ) : CdkObject(cdkObject), FixedResponseConfigProperty { + ) : CdkObject(cdkObject), + FixedResponseConfigProperty { /** * The content type. * @@ -2523,7 +2599,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ForwardConfigProperty, - ) : CdkObject(cdkObject), ForwardConfigProperty { + ) : CdkObject(cdkObject), + ForwardConfigProperty { /** * Information about the target group stickiness for a rule. * @@ -2559,6 +2636,134 @@ public open class CfnListener( } } + /** + * Information about a listener attribute. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.*; + * ListenerAttributeProperty listenerAttributeProperty = ListenerAttributeProperty.builder() + * .key("key") + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html) + */ + public interface ListenerAttributeProperty { + /** + * The name of the attribute. + * + * The following attribute is supported by Network Load Balancers, and Gateway Load Balancers. + * + * * `tcp.idle_timeout.seconds` - The tcp idle timeout value, in seconds. The valid range is + * 60-6000 seconds. The default is 350 seconds. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-key) + */ + public fun key(): String? = unwrap(this).getKey() + + /** + * The value of the attribute. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-value) + */ + public fun `value`(): String? = unwrap(this).getValue() + + /** + * A builder for [ListenerAttributeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key The name of the attribute. + * The following attribute is supported by Network Load Balancers, and Gateway Load Balancers. + * + * * `tcp.idle_timeout.seconds` - The tcp idle timeout value, in seconds. The valid range is + * 60-6000 seconds. The default is 350 seconds. + */ + public fun key(key: String) + + /** + * @param value The value of the attribute. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty.Builder + = + software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty.builder() + + /** + * @param key The name of the attribute. + * The following attribute is supported by Network Load Balancers, and Gateway Load Balancers. + * + * * `tcp.idle_timeout.seconds` - The tcp idle timeout value, in seconds. The valid range is + * 60-6000 seconds. The default is 350 seconds. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param value The value of the attribute. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty, + ) : CdkObject(cdkObject), + ListenerAttributeProperty { + /** + * The name of the attribute. + * + * The following attribute is supported by Network Load Balancers, and Gateway Load Balancers. + * + * * `tcp.idle_timeout.seconds` - The tcp idle timeout value, in seconds. The valid range is + * 60-6000 seconds. The default is 350 seconds. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-key) + */ + override fun key(): String? = unwrap(this).getKey() + + /** + * The value of the attribute. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-value) + */ + override fun `value`(): String? = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ListenerAttributeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty): + ListenerAttributeProperty = CdkObjectWrappers.wrap(cdkObject) as? + ListenerAttributeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ListenerAttributeProperty): + software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ListenerAttributeProperty + } + } + /** * Specifies the configuration information for mutual authentication. * @@ -2676,7 +2881,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.MutualAuthenticationProperty, - ) : CdkObject(cdkObject), MutualAuthenticationProperty { + ) : CdkObject(cdkObject), + MutualAuthenticationProperty { /** * Indicates whether expired client certificates are ignored. * @@ -2921,7 +3127,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.RedirectConfigProperty, - ) : CdkObject(cdkObject), RedirectConfigProperty { + ) : CdkObject(cdkObject), + RedirectConfigProperty { /** * The hostname. * @@ -3092,7 +3299,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.TargetGroupStickinessConfigProperty, - ) : CdkObject(cdkObject), TargetGroupStickinessConfigProperty { + ) : CdkObject(cdkObject), + TargetGroupStickinessConfigProperty { /** * The time period, in seconds, during which requests from a client should be routed to the * same target group. @@ -3210,7 +3418,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.TargetGroupTupleProperty, - ) : CdkObject(cdkObject), TargetGroupTupleProperty { + ) : CdkObject(cdkObject), + TargetGroupTupleProperty { /** * The Amazon Resource Name (ARN) of the target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificate.kt index 2d1ec14cc8..ea444dfcd7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificate.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnListenerCertificate( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerCertificate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -286,7 +287,8 @@ public open class CfnListenerCertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerCertificate.CertificateProperty, - ) : CdkObject(cdkObject), CertificateProperty { + ) : CdkObject(cdkObject), + CertificateProperty { /** * The Amazon Resource Name (ARN) of the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificateProps.kt index a616629879..3681562da3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerCertificateProps.kt @@ -117,7 +117,8 @@ public interface CfnListenerCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerCertificateProps, - ) : CdkObject(cdkObject), CfnListenerCertificateProps { + ) : CdkObject(cdkObject), + CfnListenerCertificateProps { /** * The certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerProps.kt index 23bac8d6ac..7e07d298d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerProps.kt @@ -88,6 +88,10 @@ import kotlin.jvm.JvmName * .certificates(List.of(CertificateProperty.builder() * .certificateArn("certificateArn") * .build())) + * .listenerAttributes(List.of(ListenerAttributeProperty.builder() + * .key("key") + * .value("value") + * .build())) * .mutualAuthentication(MutualAuthenticationProperty.builder() * .ignoreClientCertificateExpiry(false) * .mode("mode") @@ -133,6 +137,11 @@ public interface CfnListenerProps { */ public fun defaultActions(): Any + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + */ + public fun listenerAttributes(): Any? = unwrap(this).getListenerAttributes() + /** * The Amazon Resource Name (ARN) of the load balancer. * @@ -259,6 +268,21 @@ public interface CfnListenerProps { */ public fun defaultActions(vararg defaultActions: Any) + /** + * @param listenerAttributes the value to be set. + */ + public fun listenerAttributes(listenerAttributes: IResolvable) + + /** + * @param listenerAttributes the value to be set. + */ + public fun listenerAttributes(listenerAttributes: List) + + /** + * @param listenerAttributes the value to be set. + */ + public fun listenerAttributes(vararg listenerAttributes: Any) + /** * @param loadBalancerArn The Amazon Resource Name (ARN) of the load balancer. */ @@ -397,6 +421,26 @@ public interface CfnListenerProps { override fun defaultActions(vararg defaultActions: Any): Unit = defaultActions(defaultActions.toList()) + /** + * @param listenerAttributes the value to be set. + */ + override fun listenerAttributes(listenerAttributes: IResolvable) { + cdkBuilder.listenerAttributes(listenerAttributes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param listenerAttributes the value to be set. + */ + override fun listenerAttributes(listenerAttributes: List) { + cdkBuilder.listenerAttributes(listenerAttributes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param listenerAttributes the value to be set. + */ + override fun listenerAttributes(vararg listenerAttributes: Any): Unit = + listenerAttributes(listenerAttributes.toList()) + /** * @param loadBalancerArn The Amazon Resource Name (ARN) of the load balancer. */ @@ -469,7 +513,8 @@ public interface CfnListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerProps, - ) : CdkObject(cdkObject), CfnListenerProps { + ) : CdkObject(cdkObject), + CfnListenerProps { /** * [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy. * @@ -501,6 +546,11 @@ public interface CfnListenerProps { */ override fun defaultActions(): Any = unwrap(this).getDefaultActions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes) + */ + override fun listenerAttributes(): Any? = unwrap(this).getListenerAttributes() + /** * The Amazon Resource Name (ARN) of the load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRule.kt index 95bf9dc880..cdee5e27e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRule.kt @@ -132,7 +132,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnListenerRule( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -987,7 +988,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * [HTTPS listeners] Information for using Amazon Cognito to authenticate users. * @@ -1335,7 +1337,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.AuthenticateCognitoConfigProperty, - ) : CdkObject(cdkObject), AuthenticateCognitoConfigProperty { + ) : CdkObject(cdkObject), + AuthenticateCognitoConfigProperty { /** * The query parameters (up to 10) to include in the redirect request to the authorization * endpoint. @@ -1798,7 +1801,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.AuthenticateOidcConfigProperty, - ) : CdkObject(cdkObject), AuthenticateOidcConfigProperty { + ) : CdkObject(cdkObject), + AuthenticateOidcConfigProperty { /** * The query parameters (up to 10) to include in the redirect request to the authorization * endpoint. @@ -2028,7 +2032,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.FixedResponseConfigProperty, - ) : CdkObject(cdkObject), FixedResponseConfigProperty { + ) : CdkObject(cdkObject), + FixedResponseConfigProperty { /** * The content type. * @@ -2225,7 +2230,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty, - ) : CdkObject(cdkObject), ForwardConfigProperty { + ) : CdkObject(cdkObject), + ForwardConfigProperty { /** * Information about the target group stickiness for a rule. * @@ -2357,7 +2363,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.HostHeaderConfigProperty, - ) : CdkObject(cdkObject), HostHeaderConfigProperty { + ) : CdkObject(cdkObject), + HostHeaderConfigProperty { /** * The host names. * @@ -2536,7 +2543,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.HttpHeaderConfigProperty, - ) : CdkObject(cdkObject), HttpHeaderConfigProperty { + ) : CdkObject(cdkObject), + HttpHeaderConfigProperty { /** * The name of the HTTP header field. * @@ -2691,7 +2699,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.HttpRequestMethodConfigProperty, - ) : CdkObject(cdkObject), HttpRequestMethodConfigProperty { + ) : CdkObject(cdkObject), + HttpRequestMethodConfigProperty { /** * The name of the request method. * @@ -2826,7 +2835,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.PathPatternConfigProperty, - ) : CdkObject(cdkObject), PathPatternConfigProperty { + ) : CdkObject(cdkObject), + PathPatternConfigProperty { /** * The path patterns to compare against the request URL. * @@ -2996,7 +3006,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.QueryStringConfigProperty, - ) : CdkObject(cdkObject), QueryStringConfigProperty { + ) : CdkObject(cdkObject), + QueryStringConfigProperty { /** * The key/value pairs or values to find in the query string. * @@ -3110,7 +3121,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.QueryStringKeyValueProperty, - ) : CdkObject(cdkObject), QueryStringKeyValueProperty { + ) : CdkObject(cdkObject), + QueryStringKeyValueProperty { /** * The key. * @@ -3347,7 +3359,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.RedirectConfigProperty, - ) : CdkObject(cdkObject), RedirectConfigProperty { + ) : CdkObject(cdkObject), + RedirectConfigProperty { /** * The hostname. * @@ -4014,7 +4027,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.RuleConditionProperty, - ) : CdkObject(cdkObject), RuleConditionProperty { + ) : CdkObject(cdkObject), + RuleConditionProperty { /** * The field in the HTTP request. The following are the possible values:. * @@ -4227,7 +4241,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.SourceIpConfigProperty, - ) : CdkObject(cdkObject), SourceIpConfigProperty { + ) : CdkObject(cdkObject), + SourceIpConfigProperty { /** * The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. * Wildcards are not supported. @@ -4354,7 +4369,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.TargetGroupStickinessConfigProperty, - ) : CdkObject(cdkObject), TargetGroupStickinessConfigProperty { + ) : CdkObject(cdkObject), + TargetGroupStickinessConfigProperty { /** * The time period, in seconds, during which requests from a client should be routed to the * same target group. @@ -4472,7 +4488,8 @@ public open class CfnListenerRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.TargetGroupTupleProperty, - ) : CdkObject(cdkObject), TargetGroupTupleProperty { + ) : CdkObject(cdkObject), + TargetGroupTupleProperty { /** * The Amazon Resource Name (ARN) of the target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRuleProps.kt index f1dc0e76d2..cc75d5d026 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnListenerRuleProps.kt @@ -319,7 +319,8 @@ public interface CfnListenerRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRuleProps, - ) : CdkObject(cdkObject), CfnListenerRuleProps { + ) : CdkObject(cdkObject), + CfnListenerRuleProps { /** * The actions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancer.kt index 7d4fda5654..771ab3d014 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancer.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoadBalancer( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancer(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -143,12 +145,12 @@ public open class CfnLoadBalancer( } /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. */ public open fun ipAddressType(): String? = unwrap(this).getIpAddressType() /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. */ public open fun ipAddressType(`value`: String) { unwrap(this).setIpAddressType(`value`) @@ -317,13 +319,25 @@ public open class CfnLoadBalancer( fun enforceSecurityGroupInboundRulesOnPrivateLinkTraffic(enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: String) /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. * - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only + * IPv4 addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` + * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting + * to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a + * load balancer with a UDP or TCP_UDP listener. + * + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) - * @param ipAddressType The IP address type. + * @param ipAddressType Note: Internal load balancers must use the `ipv4` IP address type. */ public fun ipAddressType(ipAddressType: String) @@ -589,13 +603,25 @@ public open class CfnLoadBalancer( } /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. + * + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only + * IPv4 addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` + * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting + * to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a + * load balancer with a UDP or TCP_UDP listener. * - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) - * @param ipAddressType The IP address type. + * @param ipAddressType Note: Internal load balancers must use the `ipv4` IP address type. */ override fun ipAddressType(ipAddressType: String) { cdkBuilder.ipAddressType(ipAddressType) @@ -1210,7 +1236,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancer.LoadBalancerAttributeProperty, - ) : CdkObject(cdkObject), LoadBalancerAttributeProperty { + ) : CdkObject(cdkObject), + LoadBalancerAttributeProperty { /** * The name of the attribute. * @@ -1449,7 +1476,8 @@ public open class CfnLoadBalancer( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancer.SubnetMappingProperty, - ) : CdkObject(cdkObject), SubnetMappingProperty { + ) : CdkObject(cdkObject), + SubnetMappingProperty { /** * [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing * load balancer. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancerProps.kt index 9784edf0eb..c2ceedd8c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnLoadBalancerProps.kt @@ -60,10 +60,22 @@ public interface CfnLoadBalancerProps { unwrap(this).getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic() /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. * - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` (for + * IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting to + * an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a load + * balancer with a UDP or TCP_UDP listener. + * + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) */ @@ -198,9 +210,21 @@ public interface CfnLoadBalancerProps { fun enforceSecurityGroupInboundRulesOnPrivateLinkTraffic(enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: String) /** - * @param ipAddressType The IP address type. - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * @param ipAddressType Note: Internal load balancers must use the `ipv4` IP address type. + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only + * IPv4 addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` + * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting + * to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a + * load balancer with a UDP or TCP_UDP listener. + * + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). */ public fun ipAddressType(ipAddressType: String) @@ -403,9 +427,21 @@ public interface CfnLoadBalancerProps { } /** - * @param ipAddressType The IP address type. - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * @param ipAddressType Note: Internal load balancers must use the `ipv4` IP address type. + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only + * IPv4 addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` + * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting + * to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a + * load balancer with a UDP or TCP_UDP listener. + * + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). */ override fun ipAddressType(ipAddressType: String) { cdkBuilder.ipAddressType(ipAddressType) @@ -622,7 +658,8 @@ public interface CfnLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancerProps, - ) : CdkObject(cdkObject), CfnLoadBalancerProps { + ) : CdkObject(cdkObject), + CfnLoadBalancerProps { /** * Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load * Balancer through AWS PrivateLink . @@ -633,10 +670,22 @@ public interface CfnLoadBalancerProps { unwrap(this).getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic() /** - * The IP address type. + * Note: Internal load balancers must use the `ipv4` IP address type. + * + * [Application Load Balancers] The IP address type. The possible values are `ipv4` (for only + * IPv4 addresses), `dualstack` (for IPv4 and IPv6 addresses), and `dualstack-without-public-ipv4` + * (for IPv6 only public addresses, with private IPv4 and IPv6 addresses). + * + * Note: Application Load Balancer authentication only supports IPv4 addresses when connecting + * to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load + * balancer cannot complete the authentication process, resulting in HTTP 500 errors. + * + * [Network Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). You can’t specify `dualstack` for a + * load balancer with a UDP or TCP_UDP listener. * - * The possible values are `ipv4` (for IPv4 addresses) and `dualstack` (for IPv4 and IPv6 - * addresses). You can’t specify `dualstack` for a load balancer with a UDP or TCP_UDP listener. + * [Gateway Load Balancers] The IP address type. The possible values are `ipv4` (for only IPv4 + * addresses) and `dualstack` (for IPv4 and IPv6 addresses). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroup.kt index 184b9949bd..9e62249f39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroup.kt @@ -77,7 +77,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTargetGroup( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -341,26 +343,26 @@ public open class CfnTargetGroup( public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) /** - * The attributes. + * The target group attributes. */ public open fun targetGroupAttributes(): Any? = unwrap(this).getTargetGroupAttributes() /** - * The attributes. + * The target group attributes. */ public open fun targetGroupAttributes(`value`: IResolvable) { unwrap(this).setTargetGroupAttributes(`value`.let(IResolvable.Companion::unwrap)) } /** - * The attributes. + * The target group attributes. */ public open fun targetGroupAttributes(`value`: List) { unwrap(this).setTargetGroupAttributes(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * The attributes. + * The target group attributes. */ public open fun targetGroupAttributes(vararg `value`: Any): Unit = targetGroupAttributes(`value`.toList()) @@ -655,26 +657,26 @@ public open class CfnTargetGroup( public fun tags(vararg tags: CfnTag) /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(targetGroupAttributes: IResolvable) /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(targetGroupAttributes: List) /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(vararg targetGroupAttributes: Any) @@ -1014,30 +1016,30 @@ public open class CfnTargetGroup( override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(targetGroupAttributes: IResolvable) { cdkBuilder.targetGroupAttributes(targetGroupAttributes.let(IResolvable.Companion::unwrap)) } /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(targetGroupAttributes: List) { cdkBuilder.targetGroupAttributes(targetGroupAttributes.map{CdkObjectWrappers.unwrap(it)}) } /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(vararg targetGroupAttributes: Any): Unit = targetGroupAttributes(targetGroupAttributes.toList()) @@ -1262,7 +1264,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroup.MatcherProperty, - ) : CdkObject(cdkObject), MatcherProperty { + ) : CdkObject(cdkObject), + MatcherProperty { /** * You can specify values between 0 and 99. * @@ -1491,7 +1494,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroup.TargetDescriptionProperty, - ) : CdkObject(cdkObject), TargetDescriptionProperty { + ) : CdkObject(cdkObject), + TargetDescriptionProperty { /** * An Availability Zone or `all` . * @@ -1953,7 +1957,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroup.TargetGroupAttributeProperty, - ) : CdkObject(cdkObject), TargetGroupAttributeProperty { + ) : CdkObject(cdkObject), + TargetGroupAttributeProperty { /** * The name of the attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroupProps.kt index 7deeabe6b1..5e61422a84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTargetGroupProps.kt @@ -217,7 +217,7 @@ public interface CfnTargetGroupProps { public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) */ @@ -423,17 +423,17 @@ public interface CfnTargetGroupProps { public fun tags(vararg tags: CfnTag) /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(targetGroupAttributes: IResolvable) /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(targetGroupAttributes: List) /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ public fun targetGroupAttributes(vararg targetGroupAttributes: Any) @@ -672,21 +672,21 @@ public interface CfnTargetGroupProps { override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(targetGroupAttributes: IResolvable) { cdkBuilder.targetGroupAttributes(targetGroupAttributes.let(IResolvable.Companion::unwrap)) } /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(targetGroupAttributes: List) { cdkBuilder.targetGroupAttributes(targetGroupAttributes.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param targetGroupAttributes The attributes. + * @param targetGroupAttributes The target group attributes. */ override fun targetGroupAttributes(vararg targetGroupAttributes: Any): Unit = targetGroupAttributes(targetGroupAttributes.toList()) @@ -753,7 +753,8 @@ public interface CfnTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTargetGroupProps, - ) : CdkObject(cdkObject), CfnTargetGroupProps { + ) : CdkObject(cdkObject), + CfnTargetGroupProps { /** * Indicates whether health checks are enabled. * @@ -909,7 +910,7 @@ public interface CfnTargetGroupProps { override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * The attributes. + * The target group attributes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStore.kt index 6b4abb2a83..efa5152d37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStore.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrustStore( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStore, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreProps.kt index 31dc493a18..4ab4a90b91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreProps.kt @@ -164,7 +164,8 @@ public interface CfnTrustStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreProps, - ) : CdkObject(cdkObject), CfnTrustStoreProps { + ) : CdkObject(cdkObject), + CfnTrustStoreProps { /** * The Amazon S3 bucket for the ca certificates bundle. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocation.kt index 47cb5e5c74..002b15244e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocation.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrustStoreRevocation( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreRevocation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreRevocation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -355,7 +356,8 @@ public open class CfnTrustStoreRevocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreRevocation.RevocationContentProperty, - ) : CdkObject(cdkObject), RevocationContentProperty { + ) : CdkObject(cdkObject), + RevocationContentProperty { /** * The type of revocation file. * @@ -519,7 +521,8 @@ public open class CfnTrustStoreRevocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreRevocation.TrustStoreRevocationProperty, - ) : CdkObject(cdkObject), TrustStoreRevocationProperty { + ) : CdkObject(cdkObject), + TrustStoreRevocationProperty { /** * The number of revoked certificates. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocationProps.kt index 813fcae974..4a1ed4f915 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/CfnTrustStoreRevocationProps.kt @@ -115,7 +115,8 @@ public interface CfnTrustStoreRevocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.CfnTrustStoreRevocationProps, - ) : CdkObject(cdkObject), CfnTrustStoreRevocationProps { + ) : CdkObject(cdkObject), + CfnTrustStoreRevocationProps { /** * The revocation file to add. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/FixedResponseOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/FixedResponseOptions.kt index dfe634d862..88e57bddf0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/FixedResponseOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/FixedResponseOptions.kt @@ -14,14 +14,26 @@ import kotlin.Unit * Example: * * ``` - * ApplicationListener listener; - * listener.addAction("Fixed", AddApplicationActionProps.builder() - * .priority(10) - * .conditions(List.of(ListenerCondition.pathPatterns(List.of("/ok")))) - * .action(ListenerAction.fixedResponse(200, FixedResponseOptions.builder() - * .contentType("text/plain") - * .messageBody("OK") - * .build())) + * import io.cloudshiftdev.awscdk.services.certificatemanager.*; + * Certificate certificate; + * ApplicationLoadBalancer lb; + * Bucket bucket; + * TrustStore trustStore = TrustStore.Builder.create(this, "Store") + * .bucket(bucket) + * .key("rootCA_cert.pem") + * .build(); + * lb.addListener("Listener", BaseApplicationListenerProps.builder() + * .port(443) + * .protocol(ApplicationProtocol.HTTPS) + * .certificates(List.of(certificate)) + * // mTLS settings + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY) + * .trustStore(trustStore) + * .build()) + * .defaultAction(ListenerAction.fixedResponse(200, + * FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build())) * .build()); * ``` */ @@ -85,7 +97,8 @@ public interface FixedResponseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.FixedResponseOptions, - ) : CdkObject(cdkObject), FixedResponseOptions { + ) : CdkObject(cdkObject), + FixedResponseOptions { /** * Content Type of the response. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ForwardOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ForwardOptions.kt index e86c741ced..0161267246 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ForwardOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ForwardOptions.kt @@ -65,7 +65,8 @@ public interface ForwardOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ForwardOptions, - ) : CdkObject(cdkObject), ForwardOptions { + ) : CdkObject(cdkObject), + ForwardOptions { /** * For how long clients should be directed to the same target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HealthCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HealthCheck.kt index 45f70c570f..838b8404c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HealthCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HealthCheck.kt @@ -318,7 +318,8 @@ public interface HealthCheck { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.HealthCheck, - ) : CdkObject(cdkObject), HealthCheck { + ) : CdkObject(cdkObject), + HealthCheck { /** * Indicates whether health checks are enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HttpCodeElb.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HttpCodeElb.kt index dfd41e514f..94a0aa8e8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HttpCodeElb.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/HttpCodeElb.kt @@ -8,6 +8,10 @@ public enum class HttpCodeElb( ELB_3XX_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_3XX_COUNT), ELB_4XX_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_4XX_COUNT), ELB_5XX_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_5XX_COUNT), + ELB_500_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_500_COUNT), + ELB_502_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_502_COUNT), + ELB_503_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_503_COUNT), + ELB_504_COUNT(software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_504_COUNT), ; public companion object { @@ -20,6 +24,14 @@ public enum class HttpCodeElb( HttpCodeElb.ELB_4XX_COUNT software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_5XX_COUNT -> HttpCodeElb.ELB_5XX_COUNT + software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_500_COUNT -> + HttpCodeElb.ELB_500_COUNT + software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_502_COUNT -> + HttpCodeElb.ELB_502_COUNT + software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_503_COUNT -> + HttpCodeElb.ELB_503_COUNT + software.amazon.awscdk.services.elasticloadbalancingv2.HttpCodeElb.ELB_504_COUNT -> + HttpCodeElb.ELB_504_COUNT } internal fun unwrap(wrapped: HttpCodeElb): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationListener.kt index c6bd51b5ec..be846f6962 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationListener.kt @@ -147,7 +147,8 @@ public interface IApplicationListener : IListener, IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener, - ) : CdkObject(cdkObject), IApplicationListener { + ) : CdkObject(cdkObject), + IApplicationListener { /** * Perform the given action on incoming requests. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancer.kt index 9f720bbea5..8f3880b646 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancer.kt @@ -74,7 +74,8 @@ public interface IApplicationLoadBalancer : ILoadBalancerV2, IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer, - ) : CdkObject(cdkObject), IApplicationLoadBalancer { + ) : CdkObject(cdkObject), + IApplicationLoadBalancer { /** * Add a new listener to this load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerMetrics.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerMetrics.kt index 36250b289c..81f291b7af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerMetrics.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerMetrics.kt @@ -785,7 +785,8 @@ public interface IApplicationLoadBalancerMetrics { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancerMetrics, - ) : CdkObject(cdkObject), IApplicationLoadBalancerMetrics { + ) : CdkObject(cdkObject), + IApplicationLoadBalancerMetrics { /** * The total number of concurrent TCP connections active from clients to the load balancer and * from the load balancer to targets. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerTarget.kt index 8e18a7d11f..ef38a09386 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationLoadBalancerTarget.kt @@ -22,7 +22,8 @@ public interface IApplicationLoadBalancerTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancerTarget, - ) : CdkObject(cdkObject), IApplicationLoadBalancerTarget { + ) : CdkObject(cdkObject), + IApplicationLoadBalancerTarget { /** * Attach load-balanced target to a TargetGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroup.kt index 4b95ab1802..b56c18a897 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroup.kt @@ -83,7 +83,8 @@ public interface IApplicationTargetGroup : ITargetGroup { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationTargetGroup, - ) : CdkObject(cdkObject), IApplicationTargetGroup { + ) : CdkObject(cdkObject), + IApplicationTargetGroup { /** * Add a load balancing target to this target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroupMetrics.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroupMetrics.kt index 4795812b1a..9ef82c1387 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroupMetrics.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IApplicationTargetGroupMetrics.kt @@ -351,7 +351,8 @@ public interface IApplicationTargetGroupMetrics { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationTargetGroupMetrics, - ) : CdkObject(cdkObject), IApplicationTargetGroupMetrics { + ) : CdkObject(cdkObject), + IApplicationTargetGroupMetrics { /** * Return the given named metric for this Network Target Group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListener.kt index ea82070dbd..0d1e70c5a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListener.kt @@ -22,7 +22,8 @@ public interface IListener : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IListener, - ) : CdkObject(cdkObject), IListener { + ) : CdkObject(cdkObject), + IListener { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerAction.kt index a799de0e24..2e66192861 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerAction.kt @@ -22,7 +22,8 @@ public interface IListenerAction { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IListenerAction, - ) : CdkObject(cdkObject), IListenerAction { + ) : CdkObject(cdkObject), + IListenerAction { /** * Render the listener default actions in this chain. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerCertificate.kt index 9c5416650c..8601e38f4e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IListenerCertificate.kt @@ -17,7 +17,8 @@ public interface IListenerCertificate { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.IListenerCertificate, - ) : CdkObject(cdkObject), IListenerCertificate { + ) : CdkObject(cdkObject), + IListenerCertificate { /** * The ARN of the certificate to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ILoadBalancerV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ILoadBalancerV2.kt index 7306bb75f5..22fbdd03b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ILoadBalancerV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ILoadBalancerV2.kt @@ -31,7 +31,8 @@ public interface ILoadBalancerV2 : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ILoadBalancerV2, - ) : CdkObject(cdkObject), ILoadBalancerV2 { + ) : CdkObject(cdkObject), + ILoadBalancerV2 { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkListener.kt index 0c910b3d74..15a8e7ec87 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkListener.kt @@ -16,7 +16,8 @@ import kotlin.String public interface INetworkListener : IListener { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkListener, - ) : CdkObject(cdkObject), INetworkListener { + ) : CdkObject(cdkObject), + INetworkListener { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancer.kt index 0015625e37..1931f16a0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancer.kt @@ -77,7 +77,8 @@ public interface INetworkLoadBalancer : ILoadBalancerV2, IVpcEndpointServiceLoad private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer, - ) : CdkObject(cdkObject), INetworkLoadBalancer { + ) : CdkObject(cdkObject), + INetworkLoadBalancer { /** * Add a listener to this load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerMetrics.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerMetrics.kt index e091e3c790..1e5d69aef6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerMetrics.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerMetrics.kt @@ -278,7 +278,8 @@ public interface INetworkLoadBalancerMetrics { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerMetrics, - ) : CdkObject(cdkObject), INetworkLoadBalancerMetrics { + ) : CdkObject(cdkObject), + INetworkLoadBalancerMetrics { /** * The total number of concurrent TCP flows (or connections) from clients to targets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerTarget.kt index 97cf5e8371..217154aec5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkLoadBalancerTarget.kt @@ -21,7 +21,8 @@ public interface INetworkLoadBalancerTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget, - ) : CdkObject(cdkObject), INetworkLoadBalancerTarget { + ) : CdkObject(cdkObject), + INetworkLoadBalancerTarget { /** * Attach load-balanced target to a TargetGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroup.kt index 6e882f781d..b5cd40ab0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroup.kt @@ -35,7 +35,8 @@ public interface INetworkTargetGroup : ITargetGroup { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup, - ) : CdkObject(cdkObject), INetworkTargetGroup { + ) : CdkObject(cdkObject), + INetworkTargetGroup { /** * Add a load balancing target to this target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroupMetrics.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroupMetrics.kt index 3c6884d335..1156e9b5da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroupMetrics.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/INetworkTargetGroupMetrics.kt @@ -106,7 +106,8 @@ public interface INetworkTargetGroupMetrics { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroupMetrics, - ) : CdkObject(cdkObject), INetworkTargetGroupMetrics { + ) : CdkObject(cdkObject), + INetworkTargetGroupMetrics { /** * Return the given named metric for this Network Target Group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITargetGroup.kt index 3bc5d12c2f..9100b5cfce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITargetGroup.kt @@ -36,7 +36,8 @@ public interface ITargetGroup : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ITargetGroup, - ) : CdkObject(cdkObject), ITargetGroup { + ) : CdkObject(cdkObject), + ITargetGroup { /** * A token representing a list of ARNs of the load balancers that route traffic to this target * group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITrustStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITrustStore.kt new file mode 100644 index 0000000000..922c60a59a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ITrustStore.kt @@ -0,0 +1,88 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents a Trust Store. + */ +public interface ITrustStore : IResource { + /** + * The ARN of the trust store. + */ + public fun trustStoreArn(): String + + /** + * The name of the trust store. + */ + public fun trustStoreName(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore, + ) : CdkObject(cdkObject), + ITrustStore { + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + + /** + * The ARN of the trust store. + */ + override fun trustStoreArn(): String = unwrap(this).getTrustStoreArn() + + /** + * The name of the trust store. + */ + override fun trustStoreName(): String = unwrap(this).getTrustStoreName() + } + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore): + ITrustStore = CdkObjectWrappers.wrap(cdkObject) as? ITrustStore ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ITrustStore): + software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IpAddressType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IpAddressType.kt index ccc1b879d4..68bf1b93c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IpAddressType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/IpAddressType.kt @@ -7,6 +7,7 @@ public enum class IpAddressType( ) { IPV4(software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType.IPV4), DUAL_STACK(software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType.DUAL_STACK), + DUAL_STACK_WITHOUT_PUBLIC_IPV4(software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4), ; public companion object { @@ -17,6 +18,8 @@ public enum class IpAddressType( IpAddressType.IPV4 software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType.DUAL_STACK -> IpAddressType.DUAL_STACK + software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4 -> + IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4 } internal fun unwrap(wrapped: IpAddressType): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerAction.kt index 2f50ae4b40..38c583bde7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerAction.kt @@ -29,26 +29,33 @@ import kotlin.jvm.JvmName * Example: * * ``` - * ApplicationListener listener; - * ApplicationTargetGroup myTargetGroup; - * listener.addAction("DefaultAction", AddApplicationActionProps.builder() - * .action(ListenerAction.authenticateOidc(AuthenticateOidcOptions.builder() - * .authorizationEndpoint("https://example.com/openid") - * // Other OIDC properties here - * .clientId("...") - * .clientSecret(SecretValue.secretsManager("...")) - * .issuer("...") - * .tokenEndpoint("...") - * .userInfoEndpoint("...") - * // Next - * .next(ListenerAction.forward(List.of(myTargetGroup))) - * .build())) + * import io.cloudshiftdev.awscdk.services.certificatemanager.*; + * Certificate certificate; + * ApplicationLoadBalancer lb; + * Bucket bucket; + * TrustStore trustStore = TrustStore.Builder.create(this, "Store") + * .bucket(bucket) + * .key("rootCA_cert.pem") + * .build(); + * lb.addListener("Listener", BaseApplicationListenerProps.builder() + * .port(443) + * .protocol(ApplicationProtocol.HTTPS) + * .certificates(List.of(certificate)) + * // mTLS settings + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY) + * .trustStore(trustStore) + * .build()) + * .defaultAction(ListenerAction.fixedResponse(200, + * FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build())) * .build()); * ``` */ public open class ListenerAction( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ListenerAction, -) : CdkObject(cdkObject), IListenerAction { +) : CdkObject(cdkObject), + IListenerAction { /** * Called when the action is being used in a listener. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerCertificate.kt index 1f6a79f632..83b849660f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/ListenerCertificate.kt @@ -20,7 +20,8 @@ import kotlin.String */ public open class ListenerCertificate( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.ListenerCertificate, -) : CdkObject(cdkObject), IListenerCertificate { +) : CdkObject(cdkObject), + IListenerCertificate { /** * The ARN of the certificate to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/LoadBalancerTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/LoadBalancerTargetProps.kt index f64df44260..1b3c97d3d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/LoadBalancerTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/LoadBalancerTargetProps.kt @@ -82,7 +82,8 @@ public interface LoadBalancerTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps, - ) : CdkObject(cdkObject), LoadBalancerTargetProps { + ) : CdkObject(cdkObject), + LoadBalancerTargetProps { /** * JSON representing the target's direct addition to the TargetGroup list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthentication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthentication.kt new file mode 100644 index 0000000000..b4fe7a15b5 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthentication.kt @@ -0,0 +1,173 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.Unit + +/** + * The mutual authentication configuration information. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.certificatemanager.*; + * Certificate certificate; + * ApplicationLoadBalancer lb; + * Bucket bucket; + * TrustStore trustStore = TrustStore.Builder.create(this, "Store") + * .bucket(bucket) + * .key("rootCA_cert.pem") + * .build(); + * lb.addListener("Listener", BaseApplicationListenerProps.builder() + * .port(443) + * .protocol(ApplicationProtocol.HTTPS) + * .certificates(List.of(certificate)) + * // mTLS settings + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY) + * .trustStore(trustStore) + * .build()) + * .defaultAction(ListenerAction.fixedResponse(200, + * FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build())) + * .build()); + * ``` + */ +public interface MutualAuthentication { + /** + * Indicates whether expired client certificates are ignored. + * + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + * + * Default: false + */ + public fun ignoreClientCertificateExpiry(): Boolean? = + unwrap(this).getIgnoreClientCertificateExpiry() + + /** + * The client certificate handling method. + * + * Default: MutualAuthenticationMode.OFF + */ + public fun mutualAuthenticationMode(): MutualAuthenticationMode? = + unwrap(this).getMutualAuthenticationMode()?.let(MutualAuthenticationMode::wrap) + + /** + * The trust store. + * + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + * + * Default: - no trust store + */ + public fun trustStore(): ITrustStore? = unwrap(this).getTrustStore()?.let(ITrustStore::wrap) + + /** + * A builder for [MutualAuthentication] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ignoreClientCertificateExpiry Indicates whether expired client certificates are + * ignored. + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + */ + public fun ignoreClientCertificateExpiry(ignoreClientCertificateExpiry: Boolean) + + /** + * @param mutualAuthenticationMode The client certificate handling method. + */ + public fun mutualAuthenticationMode(mutualAuthenticationMode: MutualAuthenticationMode) + + /** + * @param trustStore The trust store. + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + */ + public fun trustStore(trustStore: ITrustStore) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication.builder() + + /** + * @param ignoreClientCertificateExpiry Indicates whether expired client certificates are + * ignored. + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + */ + override fun ignoreClientCertificateExpiry(ignoreClientCertificateExpiry: Boolean) { + cdkBuilder.ignoreClientCertificateExpiry(ignoreClientCertificateExpiry) + } + + /** + * @param mutualAuthenticationMode The client certificate handling method. + */ + override fun mutualAuthenticationMode(mutualAuthenticationMode: MutualAuthenticationMode) { + cdkBuilder.mutualAuthenticationMode(mutualAuthenticationMode.let(MutualAuthenticationMode.Companion::unwrap)) + } + + /** + * @param trustStore The trust store. + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + */ + override fun trustStore(trustStore: ITrustStore) { + cdkBuilder.trustStore(trustStore.let(ITrustStore.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication, + ) : CdkObject(cdkObject), + MutualAuthentication { + /** + * Indicates whether expired client certificates are ignored. + * + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + * + * Default: false + */ + override fun ignoreClientCertificateExpiry(): Boolean? = + unwrap(this).getIgnoreClientCertificateExpiry() + + /** + * The client certificate handling method. + * + * Default: MutualAuthenticationMode.OFF + */ + override fun mutualAuthenticationMode(): MutualAuthenticationMode? = + unwrap(this).getMutualAuthenticationMode()?.let(MutualAuthenticationMode::wrap) + + /** + * The trust store. + * + * Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH + * + * Default: - no trust store + */ + override fun trustStore(): ITrustStore? = unwrap(this).getTrustStore()?.let(ITrustStore::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MutualAuthentication { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication): + MutualAuthentication = CdkObjectWrappers.wrap(cdkObject) as? MutualAuthentication ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MutualAuthentication): + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthentication + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthenticationMode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthenticationMode.kt new file mode 100644 index 0000000000..554b0adc48 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/MutualAuthenticationMode.kt @@ -0,0 +1,30 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +public enum class MutualAuthenticationMode( + private val cdkObject: + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode, +) { + OFF(software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.OFF), + PASS_THROUGH(software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.PASS_THROUGH), + VERIFY(software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.VERIFY), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode): + MutualAuthenticationMode = when (cdkObject) { + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.OFF -> + MutualAuthenticationMode.OFF + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.PASS_THROUGH -> + MutualAuthenticationMode.PASS_THROUGH + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode.VERIFY -> + MutualAuthenticationMode.VERIFY + } + + internal fun unwrap(wrapped: MutualAuthenticationMode): + software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode = + wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkForwardOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkForwardOptions.kt index 9d0fdbd469..46562cbf69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkForwardOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkForwardOptions.kt @@ -65,7 +65,8 @@ public interface NetworkForwardOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkForwardOptions, - ) : CdkObject(cdkObject), NetworkForwardOptions { + ) : CdkObject(cdkObject), + NetworkForwardOptions { /** * For how long clients should be directed to the same target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListener.kt index 35e1071106..a6c56a1679 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListener.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class NetworkListener( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkListener, -) : BaseListener(cdkObject), INetworkListener { +) : BaseListener(cdkObject), + INetworkListener { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerAction.kt index d6fbd14519..872ec092ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerAction.kt @@ -36,7 +36,8 @@ import kotlin.jvm.JvmName */ public open class NetworkListenerAction( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkListenerAction, -) : CdkObject(cdkObject), IListenerAction { +) : CdkObject(cdkObject), + IListenerAction { /** * Called when the action is being used in a listener. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerLookupOptions.kt index bbfe7de871..bac608765e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerLookupOptions.kt @@ -100,7 +100,8 @@ public interface NetworkListenerLookupOptions : BaseListenerLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkListenerLookupOptions, - ) : CdkObject(cdkObject), NetworkListenerLookupOptions { + ) : CdkObject(cdkObject), + NetworkListenerLookupOptions { /** * Filter listeners by listener port. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerProps.kt index aefd7929d7..b14331e814 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkListenerProps.kt @@ -220,7 +220,8 @@ public interface NetworkListenerProps : BaseNetworkListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkListenerProps, - ) : CdkObject(cdkObject), NetworkListenerProps { + ) : CdkObject(cdkObject), + NetworkListenerProps { /** * Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial * TLS handshake hello messages. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancer.kt index 119b112158..6bbcdb5e92 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancer.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class NetworkLoadBalancer( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancer, -) : BaseLoadBalancer(cdkObject), INetworkLoadBalancer { +) : BaseLoadBalancer(cdkObject), + INetworkLoadBalancer { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -481,8 +482,7 @@ public open class NetworkLoadBalancer( * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) * @param crossZoneEnabled Indicates whether cross-zone load balancing is enabled. */ public fun crossZoneEnabled(crossZoneEnabled: Boolean) @@ -622,8 +622,7 @@ public open class NetworkLoadBalancer( * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) * @param crossZoneEnabled Indicates whether cross-zone load balancing is enabled. */ override fun crossZoneEnabled(crossZoneEnabled: Boolean) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerAttributes.kt index 69b5d3fc41..82122225cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerAttributes.kt @@ -171,7 +171,8 @@ public interface NetworkLoadBalancerAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerAttributes, - ) : CdkObject(cdkObject), NetworkLoadBalancerAttributes { + ) : CdkObject(cdkObject), + NetworkLoadBalancerAttributes { /** * ARN of the load balancer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerLookupOptions.kt index 7e2a3661d8..d1387f4e92 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerLookupOptions.kt @@ -70,7 +70,8 @@ public interface NetworkLoadBalancerLookupOptions : BaseLoadBalancerLookupOption private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerLookupOptions, - ) : CdkObject(cdkObject), NetworkLoadBalancerLookupOptions { + ) : CdkObject(cdkObject), + NetworkLoadBalancerLookupOptions { /** * Find by load balancer's ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerProps.kt index c3c04185ff..40b0674b58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkLoadBalancerProps.kt @@ -260,7 +260,8 @@ public interface NetworkLoadBalancerProps : BaseLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerProps, - ) : CdkObject(cdkObject), NetworkLoadBalancerProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancerProps { /** * The AZ affinity routing policy. * @@ -277,8 +278,7 @@ public interface NetworkLoadBalancerProps : BaseLoadBalancerProps { * Default: - false for Network Load Balancers and true for Application Load Balancers. * This can not be `false` for Application Load Balancers. * - * [Documentation]( - - * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) + * [Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html) */ override fun crossZoneEnabled(): Boolean? = unwrap(this).getCrossZoneEnabled() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroup.kt index bac0d98e2c..dc262875fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroup.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class NetworkTargetGroup( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkTargetGroup, -) : TargetGroupBase(cdkObject), INetworkTargetGroup { +) : TargetGroupBase(cdkObject), + INetworkTargetGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroupProps.kt index 18a04a0157..da803f26f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkTargetGroupProps.kt @@ -310,7 +310,8 @@ public interface NetworkTargetGroupProps : BaseTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkTargetGroupProps, - ) : CdkObject(cdkObject), NetworkTargetGroupProps { + ) : CdkObject(cdkObject), + NetworkTargetGroupProps { /** * Indicates whether the load balancer terminates connections at the end of the deregistration * timeout. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkWeightedTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkWeightedTargetGroup.kt index 5ddac2c698..24e50b1ac8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkWeightedTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/NetworkWeightedTargetGroup.kt @@ -84,7 +84,8 @@ public interface NetworkWeightedTargetGroup { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.NetworkWeightedTargetGroup, - ) : CdkObject(cdkObject), NetworkWeightedTargetGroup { + ) : CdkObject(cdkObject), + NetworkWeightedTargetGroup { /** * The target group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/QueryStringCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/QueryStringCondition.kt index f19d5bcd23..08cc64663c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/QueryStringCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/QueryStringCondition.kt @@ -78,7 +78,8 @@ public interface QueryStringCondition { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.QueryStringCondition, - ) : CdkObject(cdkObject), QueryStringCondition { + ) : CdkObject(cdkObject), + QueryStringCondition { /** * The query string key for the condition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RedirectOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RedirectOptions.kt index ee417632fa..fe2b840502 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RedirectOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RedirectOptions.kt @@ -206,7 +206,8 @@ public interface RedirectOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.RedirectOptions, - ) : CdkObject(cdkObject), RedirectOptions { + ) : CdkObject(cdkObject), + RedirectOptions { /** * The hostname. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationContent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationContent.kt new file mode 100644 index 0000000000..4592f58f87 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationContent.kt @@ -0,0 +1,167 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.s3.IBucket +import kotlin.String +import kotlin.Unit + +/** + * Information about a revocation file. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.*; + * import io.cloudshiftdev.awscdk.services.s3.*; + * Bucket bucket; + * RevocationContent revocationContent = RevocationContent.builder() + * .bucket(bucket) + * .key("key") + * // the properties below are optional + * .revocationType(RevocationType.CRL) + * .version("version") + * .build(); + * ``` + */ +public interface RevocationContent { + /** + * The Amazon S3 bucket for the revocation file. + */ + public fun bucket(): IBucket + + /** + * The Amazon S3 path for the revocation file. + */ + public fun key(): String + + /** + * The type of revocation file. + * + * Default: RevocationType.CRL + */ + public fun revocationType(): RevocationType? = + unwrap(this).getRevocationType()?.let(RevocationType::wrap) + + /** + * The Amazon S3 object version of the revocation file. + * + * Default: - latest version + */ + public fun version(): String? = unwrap(this).getVersion() + + /** + * A builder for [RevocationContent] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucket The Amazon S3 bucket for the revocation file. + */ + public fun bucket(bucket: IBucket) + + /** + * @param key The Amazon S3 path for the revocation file. + */ + public fun key(key: String) + + /** + * @param revocationType The type of revocation file. + */ + public fun revocationType(revocationType: RevocationType) + + /** + * @param version The Amazon S3 object version of the revocation file. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent.builder() + + /** + * @param bucket The Amazon S3 bucket for the revocation file. + */ + override fun bucket(bucket: IBucket) { + cdkBuilder.bucket(bucket.let(IBucket.Companion::unwrap)) + } + + /** + * @param key The Amazon S3 path for the revocation file. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param revocationType The type of revocation file. + */ + override fun revocationType(revocationType: RevocationType) { + cdkBuilder.revocationType(revocationType.let(RevocationType.Companion::unwrap)) + } + + /** + * @param version The Amazon S3 object version of the revocation file. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent, + ) : CdkObject(cdkObject), + RevocationContent { + /** + * The Amazon S3 bucket for the revocation file. + */ + override fun bucket(): IBucket = unwrap(this).getBucket().let(IBucket::wrap) + + /** + * The Amazon S3 path for the revocation file. + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The type of revocation file. + * + * Default: RevocationType.CRL + */ + override fun revocationType(): RevocationType? = + unwrap(this).getRevocationType()?.let(RevocationType::wrap) + + /** + * The Amazon S3 object version of the revocation file. + * + * Default: - latest version + */ + override fun version(): String? = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RevocationContent { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent): + RevocationContent = CdkObjectWrappers.wrap(cdkObject) as? RevocationContent ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RevocationContent): + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationContent + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationType.kt new file mode 100644 index 0000000000..2e062ecde9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/RevocationType.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +public enum class RevocationType( + private val cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.RevocationType, +) { + CRL(software.amazon.awscdk.services.elasticloadbalancingv2.RevocationType.CRL), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.RevocationType): + RevocationType = when (cdkObject) { + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationType.CRL -> + RevocationType.CRL + } + + internal fun unwrap(wrapped: RevocationType): + software.amazon.awscdk.services.elasticloadbalancingv2.RevocationType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupAttributes.kt index 4cb813fcd8..bc8a091f8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupAttributes.kt @@ -77,7 +77,8 @@ public interface TargetGroupAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupAttributes, - ) : CdkObject(cdkObject), TargetGroupAttributes { + ) : CdkObject(cdkObject), + TargetGroupAttributes { /** * A Token representing the list of ARNs for the load balancer routing to this target group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupBase.kt index 23be9634cc..9a253070e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupBase.kt @@ -16,7 +16,8 @@ import kotlin.jvm.JvmName */ public abstract class TargetGroupBase( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupBase, -) : Construct(cdkObject), ITargetGroup { +) : Construct(cdkObject), + ITargetGroup { /** * Set a non-standard attribute on the target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupLoadBalancingAlgorithmType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupLoadBalancingAlgorithmType.kt index c46910c711..0276015685 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupLoadBalancingAlgorithmType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TargetGroupLoadBalancingAlgorithmType.kt @@ -8,6 +8,7 @@ public enum class TargetGroupLoadBalancingAlgorithmType( ) { ROUND_ROBIN(software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType.ROUND_ROBIN), LEAST_OUTSTANDING_REQUESTS(software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType.LEAST_OUTSTANDING_REQUESTS), + WEIGHTED_RANDOM(software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM), ; public companion object { @@ -18,6 +19,8 @@ public enum class TargetGroupLoadBalancingAlgorithmType( TargetGroupLoadBalancingAlgorithmType.ROUND_ROBIN software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType.LEAST_OUTSTANDING_REQUESTS -> TargetGroupLoadBalancingAlgorithmType.LEAST_OUTSTANDING_REQUESTS + software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM -> + TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM } internal fun unwrap(wrapped: TargetGroupLoadBalancingAlgorithmType): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStore.kt new file mode 100644 index 0000000000..0d6549b64c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStore.kt @@ -0,0 +1,202 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.s3.IBucket +import kotlin.Number +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * A new Trust Store. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.certificatemanager.*; + * Certificate certificate; + * ApplicationLoadBalancer lb; + * Bucket bucket; + * TrustStore trustStore = TrustStore.Builder.create(this, "Store") + * .bucket(bucket) + * .key("rootCA_cert.pem") + * .build(); + * lb.addListener("Listener", BaseApplicationListenerProps.builder() + * .port(443) + * .protocol(ApplicationProtocol.HTTPS) + * .certificates(List.of(certificate)) + * // mTLS settings + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY) + * .trustStore(trustStore) + * .build()) + * .defaultAction(ListenerAction.fixedResponse(200, + * FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build())) + * .build()); + * ``` + */ +public open class TrustStore( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore, +) : Resource(cdkObject), + ITrustStore { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: TrustStoreProps, + ) : + this(software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(TrustStoreProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: TrustStoreProps.Builder.() -> Unit, + ) : this(scope, id, TrustStoreProps(props) + ) + + /** + * The number of CA certificates in the trust store. + */ + public open fun numberOfCaCertificates(): Number = unwrap(this).getNumberOfCaCertificates() + + /** + * The status of the trust store. + */ + public open fun status(): String = unwrap(this).getStatus() + + /** + * The ARN of the trust store. + */ + public override fun trustStoreArn(): String = unwrap(this).getTrustStoreArn() + + /** + * The name of the trust store. + */ + public override fun trustStoreName(): String = unwrap(this).getTrustStoreName() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.TrustStore]. + */ + @CdkDslMarker + public interface Builder { + /** + * The bucket that the trust store is hosted in. + * + * @param bucket The bucket that the trust store is hosted in. + */ + public fun bucket(bucket: IBucket) + + /** + * The key in S3 to look at for the trust store. + * + * @param key The key in S3 to look at for the trust store. + */ + public fun key(key: String) + + /** + * The name of the trust store. + * + * Default: - Auto generated + * + * @param trustStoreName The name of the trust store. + */ + public fun trustStoreName(trustStoreName: String) + + /** + * The version of the S3 object that contains your truststore. + * + * To specify a version, you must have versioning enabled for the S3 bucket. + * + * Default: - latest version + * + * @param version The version of the S3 object that contains your truststore. + */ + public fun version(version: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore.Builder.create(scope, id) + + /** + * The bucket that the trust store is hosted in. + * + * @param bucket The bucket that the trust store is hosted in. + */ + override fun bucket(bucket: IBucket) { + cdkBuilder.bucket(bucket.let(IBucket.Companion::unwrap)) + } + + /** + * The key in S3 to look at for the trust store. + * + * @param key The key in S3 to look at for the trust store. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * The name of the trust store. + * + * Default: - Auto generated + * + * @param trustStoreName The name of the trust store. + */ + override fun trustStoreName(trustStoreName: String) { + cdkBuilder.trustStoreName(trustStoreName) + } + + /** + * The version of the S3 object that contains your truststore. + * + * To specify a version, you must have versioning enabled for the S3 bucket. + * + * Default: - latest version + * + * @param version The version of the S3 object that contains your truststore. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore = + cdkBuilder.build() + } + + public companion object { + public fun fromTrustStoreArn( + scope: CloudshiftdevConstructsConstruct, + id: String, + trustStoreArn: String, + ): ITrustStore = + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore.fromTrustStoreArn(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, trustStoreArn).let(ITrustStore::wrap) + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): TrustStore { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return TrustStore(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore): + TrustStore = TrustStore(cdkObject) + + internal fun unwrap(wrapped: TrustStore): + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore = wrapped.cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreProps.kt new file mode 100644 index 0000000000..f2002a5202 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreProps.kt @@ -0,0 +1,180 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.s3.IBucket +import kotlin.String +import kotlin.Unit + +/** + * Properties used for the Trust Store. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.certificatemanager.*; + * Certificate certificate; + * ApplicationLoadBalancer lb; + * Bucket bucket; + * TrustStore trustStore = TrustStore.Builder.create(this, "Store") + * .bucket(bucket) + * .key("rootCA_cert.pem") + * .build(); + * lb.addListener("Listener", BaseApplicationListenerProps.builder() + * .port(443) + * .protocol(ApplicationProtocol.HTTPS) + * .certificates(List.of(certificate)) + * // mTLS settings + * .mutualAuthentication(MutualAuthentication.builder() + * .ignoreClientCertificateExpiry(false) + * .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY) + * .trustStore(trustStore) + * .build()) + * .defaultAction(ListenerAction.fixedResponse(200, + * FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build())) + * .build()); + * ``` + */ +public interface TrustStoreProps { + /** + * The bucket that the trust store is hosted in. + */ + public fun bucket(): IBucket + + /** + * The key in S3 to look at for the trust store. + */ + public fun key(): String + + /** + * The name of the trust store. + * + * Default: - Auto generated + */ + public fun trustStoreName(): String? = unwrap(this).getTrustStoreName() + + /** + * The version of the S3 object that contains your truststore. + * + * To specify a version, you must have versioning enabled for the S3 bucket. + * + * Default: - latest version + */ + public fun version(): String? = unwrap(this).getVersion() + + /** + * A builder for [TrustStoreProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucket The bucket that the trust store is hosted in. + */ + public fun bucket(bucket: IBucket) + + /** + * @param key The key in S3 to look at for the trust store. + */ + public fun key(key: String) + + /** + * @param trustStoreName The name of the trust store. + */ + public fun trustStoreName(trustStoreName: String) + + /** + * @param version The version of the S3 object that contains your truststore. + * To specify a version, you must have versioning enabled for the S3 bucket. + */ + public fun version(version: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps.builder() + + /** + * @param bucket The bucket that the trust store is hosted in. + */ + override fun bucket(bucket: IBucket) { + cdkBuilder.bucket(bucket.let(IBucket.Companion::unwrap)) + } + + /** + * @param key The key in S3 to look at for the trust store. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param trustStoreName The name of the trust store. + */ + override fun trustStoreName(trustStoreName: String) { + cdkBuilder.trustStoreName(trustStoreName) + } + + /** + * @param version The version of the S3 object that contains your truststore. + * To specify a version, you must have versioning enabled for the S3 bucket. + */ + override fun version(version: String) { + cdkBuilder.version(version) + } + + public fun build(): software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps, + ) : CdkObject(cdkObject), + TrustStoreProps { + /** + * The bucket that the trust store is hosted in. + */ + override fun bucket(): IBucket = unwrap(this).getBucket().let(IBucket::wrap) + + /** + * The key in S3 to look at for the trust store. + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The name of the trust store. + * + * Default: - Auto generated + */ + override fun trustStoreName(): String? = unwrap(this).getTrustStoreName() + + /** + * The version of the S3 object that contains your truststore. + * + * To specify a version, you must have versioning enabled for the S3 bucket. + * + * Default: - latest version + */ + override fun version(): String? = unwrap(this).getVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TrustStoreProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps): + TrustStoreProps = CdkObjectWrappers.wrap(cdkObject) as? TrustStoreProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TrustStoreProps): + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocation.kt new file mode 100644 index 0000000000..8480833de0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocation.kt @@ -0,0 +1,136 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * A new Trust Store Revocation. + * + * Example: + * + * ``` + * TrustStore trustStore; + * Bucket bucket; + * TrustStoreRevocation.Builder.create(this, "Revocation") + * .trustStore(trustStore) + * .revocationContents(List.of(RevocationContent.builder() + * .revocationType(RevocationType.CRL) + * .bucket(bucket) + * .key("crl.pem") + * .build())) + * .build(); + * ``` + */ +public open class TrustStoreRevocation( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation, +) : Resource(cdkObject) { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: TrustStoreRevocationProps, + ) : + this(software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(TrustStoreRevocationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: TrustStoreRevocationProps.Builder.() -> Unit, + ) : this(scope, id, TrustStoreRevocationProps(props) + ) + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation]. + */ + @CdkDslMarker + public interface Builder { + /** + * The revocation file to add. + * + * @param revocationContents The revocation file to add. + */ + public fun revocationContents(revocationContents: List) + + /** + * The revocation file to add. + * + * @param revocationContents The revocation file to add. + */ + public fun revocationContents(vararg revocationContents: RevocationContent) + + /** + * The trust store. + * + * @param trustStore The trust store. + */ + public fun trustStore(trustStore: ITrustStore) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation.Builder.create(scope, + id) + + /** + * The revocation file to add. + * + * @param revocationContents The revocation file to add. + */ + override fun revocationContents(revocationContents: List) { + cdkBuilder.revocationContents(revocationContents.map(RevocationContent.Companion::unwrap)) + } + + /** + * The revocation file to add. + * + * @param revocationContents The revocation file to add. + */ + override fun revocationContents(vararg revocationContents: RevocationContent): Unit = + revocationContents(revocationContents.toList()) + + /** + * The trust store. + * + * @param trustStore The trust store. + */ + override fun trustStore(trustStore: ITrustStore) { + cdkBuilder.trustStore(trustStore.let(ITrustStore.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation + = cdkBuilder.build() + } + + public companion object { + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): TrustStoreRevocation { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return TrustStoreRevocation(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation): + TrustStoreRevocation = TrustStoreRevocation(cdkObject) + + internal fun unwrap(wrapped: TrustStoreRevocation): + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation = + wrapped.cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocation + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocationProps.kt new file mode 100644 index 0000000000..b31fc13504 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/TrustStoreRevocationProps.kt @@ -0,0 +1,123 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2 + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for the trust store revocation. + * + * Example: + * + * ``` + * TrustStore trustStore; + * Bucket bucket; + * TrustStoreRevocation.Builder.create(this, "Revocation") + * .trustStore(trustStore) + * .revocationContents(List.of(RevocationContent.builder() + * .revocationType(RevocationType.CRL) + * .bucket(bucket) + * .key("crl.pem") + * .build())) + * .build(); + * ``` + */ +public interface TrustStoreRevocationProps { + /** + * The revocation file to add. + */ + public fun revocationContents(): List + + /** + * The trust store. + */ + public fun trustStore(): ITrustStore + + /** + * A builder for [TrustStoreRevocationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param revocationContents The revocation file to add. + */ + public fun revocationContents(revocationContents: List) + + /** + * @param revocationContents The revocation file to add. + */ + public fun revocationContents(vararg revocationContents: RevocationContent) + + /** + * @param trustStore The trust store. + */ + public fun trustStore(trustStore: ITrustStore) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps.Builder = + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps.builder() + + /** + * @param revocationContents The revocation file to add. + */ + override fun revocationContents(revocationContents: List) { + cdkBuilder.revocationContents(revocationContents.map(RevocationContent.Companion::unwrap)) + } + + /** + * @param revocationContents The revocation file to add. + */ + override fun revocationContents(vararg revocationContents: RevocationContent): Unit = + revocationContents(revocationContents.toList()) + + /** + * @param trustStore The trust store. + */ + override fun trustStore(trustStore: ITrustStore) { + cdkBuilder.trustStore(trustStore.let(ITrustStore.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps, + ) : CdkObject(cdkObject), + TrustStoreRevocationProps { + /** + * The revocation file to add. + */ + override fun revocationContents(): List = + unwrap(this).getRevocationContents().map(RevocationContent::wrap) + + /** + * The trust store. + */ + override fun trustStore(): ITrustStore = unwrap(this).getTrustStore().let(ITrustStore::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TrustStoreRevocationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps): + TrustStoreRevocationProps = CdkObjectWrappers.wrap(cdkObject) as? TrustStoreRevocationProps + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TrustStoreRevocationProps): + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.TrustStoreRevocationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/WeightedTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/WeightedTargetGroup.kt index 32ab65ff2f..3cc1debba1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/WeightedTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/WeightedTargetGroup.kt @@ -83,7 +83,8 @@ public interface WeightedTargetGroup { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.WeightedTargetGroup, - ) : CdkObject(cdkObject), WeightedTargetGroup { + ) : CdkObject(cdkObject), + WeightedTargetGroup { /** * The target group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/actions/AuthenticateCognitoActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/actions/AuthenticateCognitoActionProps.kt index af0d393260..4573ecbcb9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/actions/AuthenticateCognitoActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/actions/AuthenticateCognitoActionProps.kt @@ -313,7 +313,8 @@ public interface AuthenticateCognitoActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.actions.AuthenticateCognitoActionProps, - ) : CdkObject(cdkObject), AuthenticateCognitoActionProps { + ) : CdkObject(cdkObject), + AuthenticateCognitoActionProps { /** * Allow HTTPS outbound traffic to communicate with the IdP. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbArnTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbArnTarget.kt index f0c7966d0e..a30033a262 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbArnTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbArnTarget.kt @@ -23,7 +23,8 @@ import kotlin.String */ public open class AlbArnTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbArnTarget, -) : CdkObject(cdkObject), INetworkLoadBalancerTarget { +) : CdkObject(cdkObject), + INetworkLoadBalancerTarget { public constructor(albArn: String, port: Number) : this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbArnTarget(albArn, port) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbListenerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbListenerTarget.kt new file mode 100644 index 0000000000..c0e47610e6 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbListenerTarget.kt @@ -0,0 +1,79 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.targets + +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.ApplicationListener +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup +import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps + +/** + * A single Application Load Balancer's listener as the target for load balancing. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.targets.*; + * import io.cloudshiftdev.awscdk.services.ecs.*; + * import io.cloudshiftdev.awscdk.services.ecs.patterns.*; + * Vpc vpc; + * FargateTaskDefinition task = FargateTaskDefinition.Builder.create(this, + * "Task").cpu(256).memoryLimitMiB(512).build(); + * task.addContainer("nginx", ContainerDefinitionOptions.builder() + * .image(ContainerImage.fromRegistry("public.ecr.aws/nginx/nginx:latest")) + * .portMappings(List.of(PortMapping.builder().containerPort(80).build())) + * .build()); + * ApplicationLoadBalancedFargateService svc = + * ApplicationLoadBalancedFargateService.Builder.create(this, "Service") + * .vpc(vpc) + * .taskDefinition(task) + * .publicLoadBalancer(false) + * .build(); + * NetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(this, "Nlb") + * .vpc(vpc) + * .crossZoneEnabled(true) + * .internetFacing(true) + * .build(); + * NetworkListener listener = nlb.addListener("listener", + * BaseNetworkListenerProps.builder().port(80).build()); + * listener.addTargets("Targets", AddNetworkTargetsProps.builder() + * .targets(List.of(new AlbListenerTarget(svc.getListener()))) + * .port(80) + * .build()); + * CfnOutput.Builder.create(this, "NlbEndpoint").value(String.format("http://%s", + * nlb.getLoadBalancerDnsName())).build(); + * ``` + */ +public open class AlbListenerTarget( + cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbListenerTarget, +) : AlbArnTarget(cdkObject) { + public constructor(albListener: ApplicationListener) : + this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbListenerTarget(albListener.let(ApplicationListener.Companion::unwrap)) + ) + + /** + * Register this ALB target with a load balancer. + * + * Don't call this, it is called automatically when you add the target to a + * load balancer. + * + * This adds dependency on albListener because creation of ALB listener and NLB can vary during + * runtime. + * More Details on - https://github.com/aws/aws-cdk/issues/17208 + * + * @param targetGroup + */ + public override fun attachToNetworkTargetGroup(targetGroup: INetworkTargetGroup): + LoadBalancerTargetProps = + unwrap(this).attachToNetworkTargetGroup(targetGroup.let(INetworkTargetGroup.Companion::unwrap)).let(LoadBalancerTargetProps::wrap) + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbListenerTarget): + AlbListenerTarget = AlbListenerTarget(cdkObject) + + internal fun unwrap(wrapped: AlbListenerTarget): + software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbListenerTarget = + wrapped.cdkObject as + software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbListenerTarget + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbTarget.kt index f432cfaa5a..948b363a5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/AlbTarget.kt @@ -3,48 +3,33 @@ package io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.targets import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer +import kotlin.Deprecated import kotlin.Number /** - * A single Application Load Balancer as the target for load balancing. + * (deprecated) A single Application Load Balancer as the target for load balancing. * * Example: * * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.*; * import io.cloudshiftdev.awscdk.services.elasticloadbalancingv2.targets.*; - * import io.cloudshiftdev.awscdk.services.ecs.*; - * import io.cloudshiftdev.awscdk.services.ecs.patterns.*; - * Vpc vpc; - * FargateTaskDefinition task = FargateTaskDefinition.Builder.create(this, - * "Task").cpu(256).memoryLimitMiB(512).build(); - * task.addContainer("nginx", ContainerDefinitionOptions.builder() - * .image(ContainerImage.fromRegistry("public.ecr.aws/nginx/nginx:latest")) - * .portMappings(List.of(PortMapping.builder().containerPort(80).build())) - * .build()); - * ApplicationLoadBalancedFargateService svc = - * ApplicationLoadBalancedFargateService.Builder.create(this, "Service") - * .vpc(vpc) - * .taskDefinition(task) - * .publicLoadBalancer(false) - * .build(); - * NetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(this, "Nlb") - * .vpc(vpc) - * .crossZoneEnabled(true) - * .internetFacing(true) - * .build(); - * NetworkListener listener = nlb.addListener("listener", - * BaseNetworkListenerProps.builder().port(80).build()); - * listener.addTargets("Targets", AddNetworkTargetsProps.builder() - * .targets(List.of(new AlbTarget(svc.getLoadBalancer(), 80))) - * .port(80) - * .build()); - * CfnOutput.Builder.create(this, "NlbEndpoint").value(String.format("http://%s", - * nlb.getLoadBalancerDnsName())).build(); + * ApplicationLoadBalancer applicationLoadBalancer; + * AlbTarget albTarget = new AlbTarget(applicationLoadBalancer, 123); * ``` + * + * @deprecated Use `AlbListenerTarget` instead or + * `AlbArnTarget` for an imported load balancer. This target does not automatically + * add a dependency between the ALB listener and resulting NLB target group, + * without which may cause stack deployments to fail if the NLB target group is provisioned + * before the listener has been fully created. */ public open class AlbTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbTarget, ) : AlbArnTarget(cdkObject) { + @Deprecated(message = "deprecated in CDK") public constructor(alb: IApplicationLoadBalancer, port: Number) : this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbTarget(alb.let(IApplicationLoadBalancer.Companion::unwrap), port) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/InstanceIdTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/InstanceIdTarget.kt index 0678fda537..5b387ade28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/InstanceIdTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/InstanceIdTarget.kt @@ -28,7 +28,9 @@ import kotlin.String */ public open class InstanceIdTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceIdTarget, -) : CdkObject(cdkObject), IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget { +) : CdkObject(cdkObject), + IApplicationLoadBalancerTarget, + INetworkLoadBalancerTarget { public constructor(instanceId: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceIdTarget(instanceId) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/IpTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/IpTarget.kt index 7d6bd6f6ad..664ee4d365 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/IpTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/IpTarget.kt @@ -33,7 +33,9 @@ import kotlin.String */ public open class IpTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.IpTarget, -) : CdkObject(cdkObject), IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget { +) : CdkObject(cdkObject), + IApplicationLoadBalancerTarget, + INetworkLoadBalancerTarget { public constructor(ipAddress: String) : this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.IpTarget(ipAddress) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/LambdaTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/LambdaTarget.kt index 18522e0ab9..a785a52029 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/LambdaTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticloadbalancingv2/targets/LambdaTarget.kt @@ -31,7 +31,8 @@ import io.cloudshiftdev.awscdk.services.lambda.IFunction */ public open class LambdaTarget( cdkObject: software.amazon.awscdk.services.elasticloadbalancingv2.targets.LambdaTarget, -) : CdkObject(cdkObject), IApplicationLoadBalancerTarget { +) : CdkObject(cdkObject), + IApplicationLoadBalancerTarget { public constructor(fn: IFunction) : this(software.amazon.awscdk.services.elasticloadbalancingv2.targets.LambdaTarget(fn.let(IFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/AdvancedSecurityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/AdvancedSecurityOptions.kt index 4033595a55..8c543d2105 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/AdvancedSecurityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/AdvancedSecurityOptions.kt @@ -148,7 +148,8 @@ public interface AdvancedSecurityOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.AdvancedSecurityOptions, - ) : CdkObject(cdkObject), AdvancedSecurityOptions { + ) : CdkObject(cdkObject), + AdvancedSecurityOptions { /** * (deprecated) ARN for the master user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CapacityConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CapacityConfig.kt index f5a086428a..41ec6a8b82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CapacityConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CapacityConfig.kt @@ -232,7 +232,8 @@ public interface CapacityConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CapacityConfig, - ) : CdkObject(cdkObject), CapacityConfig { + ) : CdkObject(cdkObject), + CapacityConfig { /** * (deprecated) The instance type for your data nodes, such as `m3.medium.elasticsearch`. For * valid values, see [Supported Instance diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomain.kt index 6948b2fb68..6359eb548c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomain.kt @@ -127,7 +127,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.elasticsearch.CfnDomain(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1788,7 +1790,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.AdvancedSecurityOptionsInputProperty, - ) : CdkObject(cdkObject), AdvancedSecurityOptionsInputProperty { + ) : CdkObject(cdkObject), + AdvancedSecurityOptionsInputProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-advancedsecurityoptionsinput.html#cfn-elasticsearch-domain-advancedsecurityoptionsinput-anonymousauthenabled) */ @@ -2016,7 +2019,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.CognitoOptionsProperty, - ) : CdkObject(cdkObject), CognitoOptionsProperty { + ) : CdkObject(cdkObject), + CognitoOptionsProperty { /** * Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. * @@ -2164,7 +2168,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.ColdStorageOptionsProperty, - ) : CdkObject(cdkObject), ColdStorageOptionsProperty { + ) : CdkObject(cdkObject), + ColdStorageOptionsProperty { /** * Whether to enable or disable cold storage on the domain. * @@ -2397,7 +2402,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.DomainEndpointOptionsProperty, - ) : CdkObject(cdkObject), DomainEndpointOptionsProperty { + ) : CdkObject(cdkObject), + DomainEndpointOptionsProperty { /** * The fully qualified URL for your custom endpoint. * @@ -2639,7 +2645,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.EBSOptionsProperty, - ) : CdkObject(cdkObject), EBSOptionsProperty { + ) : CdkObject(cdkObject), + EBSOptionsProperty { /** * Specifies whether Amazon EBS volumes are attached to data nodes in the OpenSearch Service * domain. @@ -3195,7 +3202,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.ElasticsearchClusterConfigProperty, - ) : CdkObject(cdkObject), ElasticsearchClusterConfigProperty { + ) : CdkObject(cdkObject), + ElasticsearchClusterConfigProperty { /** * Specifies cold storage options for the domain. * @@ -3432,7 +3440,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.EncryptionAtRestOptionsProperty, - ) : CdkObject(cdkObject), EncryptionAtRestOptionsProperty { + ) : CdkObject(cdkObject), + EncryptionAtRestOptionsProperty { /** * Specify `true` to enable encryption at rest. * @@ -3583,7 +3592,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.LogPublishingOptionProperty, - ) : CdkObject(cdkObject), LogPublishingOptionProperty { + ) : CdkObject(cdkObject), + LogPublishingOptionProperty { /** * Specifies the CloudWatch log group to publish to. * @@ -3741,7 +3751,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.MasterUserOptionsProperty, - ) : CdkObject(cdkObject), MasterUserOptionsProperty { + ) : CdkObject(cdkObject), + MasterUserOptionsProperty { /** * ARN for the master user. * @@ -3867,7 +3878,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.NodeToNodeEncryptionOptionsProperty, - ) : CdkObject(cdkObject), NodeToNodeEncryptionOptionsProperty { + ) : CdkObject(cdkObject), + NodeToNodeEncryptionOptionsProperty { /** * Specifies whether node-to-node encryption is enabled, as a Boolean. * @@ -3972,7 +3984,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.SnapshotOptionsProperty, - ) : CdkObject(cdkObject), SnapshotOptionsProperty { + ) : CdkObject(cdkObject), + SnapshotOptionsProperty { /** * The hour in UTC during which the service takes an automated daily snapshot of the indices * in the OpenSearch Service domain. @@ -4168,7 +4181,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.VPCOptionsProperty, - ) : CdkObject(cdkObject), VPCOptionsProperty { + ) : CdkObject(cdkObject), + VPCOptionsProperty { /** * The list of security group IDs that are associated with the VPC endpoints for the domain. * @@ -4288,7 +4302,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomain.ZoneAwarenessConfigProperty, - ) : CdkObject(cdkObject), ZoneAwarenessConfigProperty { + ) : CdkObject(cdkObject), + ZoneAwarenessConfigProperty { /** * If you enabled multiple Availability Zones (AZs), the number of AZs that you want the * domain to use. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomainProps.kt index ea5a61420d..cf07674954 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CfnDomainProps.kt @@ -985,7 +985,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * An AWS Identity and Access Management ( IAM ) policy document that specifies who can access * the OpenSearch Service domain and their permissions. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CognitoOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CognitoOptions.kt index 8f170cf1f0..de3a2a0d28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CognitoOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CognitoOptions.kt @@ -130,7 +130,8 @@ public interface CognitoOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CognitoOptions, - ) : CdkObject(cdkObject), CognitoOptions { + ) : CdkObject(cdkObject), + CognitoOptions { /** * (deprecated) The Amazon Cognito identity pool ID that you want Amazon ES to use for Kibana * authentication. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CustomEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CustomEndpointOptions.kt index 0401d54171..86fe03a628 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CustomEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/CustomEndpointOptions.kt @@ -122,7 +122,8 @@ public interface CustomEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.CustomEndpointOptions, - ) : CdkObject(cdkObject), CustomEndpointOptions { + ) : CdkObject(cdkObject), + CustomEndpointOptions { /** * (deprecated) The certificate to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/Domain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/Domain.kt index 0e0baa408f..70385e2bd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/Domain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/Domain.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Domain( cdkObject: software.amazon.awscdk.services.elasticsearch.Domain, -) : Resource(cdkObject), IDomain, IConnectable { +) : Resource(cdkObject), + IDomain, + IConnectable { @Deprecated(message = "deprecated in CDK") public constructor( scope: CloudshiftdevConstructsConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainAttributes.kt index f36c747e1f..88472f89f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainAttributes.kt @@ -92,7 +92,8 @@ public interface DomainAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.DomainAttributes, - ) : CdkObject(cdkObject), DomainAttributes { + ) : CdkObject(cdkObject), + DomainAttributes { /** * (deprecated) The ARN of the Elasticsearch domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainProps.kt index 7e6a97d611..083c2a1f44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainProps.kt @@ -986,7 +986,8 @@ public interface DomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.DomainProps, - ) : CdkObject(cdkObject), DomainProps { + ) : CdkObject(cdkObject), + DomainProps { /** * (deprecated) Domain Access policies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EbsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EbsOptions.kt index 27a5c2fc12..af15745c95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EbsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EbsOptions.kt @@ -209,7 +209,8 @@ public interface EbsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.EbsOptions, - ) : CdkObject(cdkObject), EbsOptions { + ) : CdkObject(cdkObject), + EbsOptions { /** * (deprecated) Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon ES * domain. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EncryptionAtRestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EncryptionAtRestOptions.kt index 7aa45cde70..a337a97b47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EncryptionAtRestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/EncryptionAtRestOptions.kt @@ -107,7 +107,8 @@ public interface EncryptionAtRestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.EncryptionAtRestOptions, - ) : CdkObject(cdkObject), EncryptionAtRestOptions { + ) : CdkObject(cdkObject), + EncryptionAtRestOptions { /** * (deprecated) Specify true to enable encryption at rest. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/IDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/IDomain.kt index 7fd3f3961b..2ccb8fee66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/IDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/IDomain.kt @@ -704,7 +704,8 @@ public interface IDomain : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.IDomain, - ) : CdkObject(cdkObject), IDomain { + ) : CdkObject(cdkObject), + IDomain { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/LoggingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/LoggingOptions.kt index 52944b6d6e..65816573f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/LoggingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/LoggingOptions.kt @@ -282,7 +282,8 @@ public interface LoggingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.LoggingOptions, - ) : CdkObject(cdkObject), LoggingOptions { + ) : CdkObject(cdkObject), + LoggingOptions { /** * (deprecated) Specify if Elasticsearch application logging should be set up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/ZoneAwarenessConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/ZoneAwarenessConfig.kt index eda769fa8c..8dd4690099 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/ZoneAwarenessConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/ZoneAwarenessConfig.kt @@ -141,7 +141,8 @@ public interface ZoneAwarenessConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.elasticsearch.ZoneAwarenessConfig, - ) : CdkObject(cdkObject), ZoneAwarenessConfig { + ) : CdkObject(cdkObject), + ZoneAwarenessConfig { /** * (deprecated) If you enabled multiple Availability Zones (AZs), the number of AZs that you * want the domain to use. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnCluster.kt index 325c74bb68..1f3a955860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnCluster.kt @@ -490,7 +490,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.emr.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -571,30 +573,26 @@ public open class CfnCluster( } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. */ public open fun autoTerminationPolicy(): Any? = unwrap(this).getAutoTerminationPolicy() /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. */ public open fun autoTerminationPolicy(`value`: IResolvable) { unwrap(this).setAutoTerminationPolicy(`value`.let(IResolvable.Companion::unwrap)) } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. */ public open fun autoTerminationPolicy(`value`: AutoTerminationPolicyProperty) { unwrap(this).setAutoTerminationPolicy(`value`.let(AutoTerminationPolicyProperty.Companion::unwrap)) } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d2aaccf20f9ad05b9e2a9b80c53a4e38b8470cf554bcd7d844f3217feba9c542") @@ -1077,41 +1075,38 @@ public open class CfnCluster( public fun autoScalingRole(autoScalingRole: String) /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ public fun autoTerminationPolicy(autoTerminationPolicy: IResolvable) /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ public fun autoTerminationPolicy(autoTerminationPolicy: AutoTerminationPolicyProperty) /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("04bf042f7c2a440d931875f8b70e08227df842d1d87d013acf0317b48810b609") @@ -1616,45 +1611,42 @@ public open class CfnCluster( } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ override fun autoTerminationPolicy(autoTerminationPolicy: IResolvable) { cdkBuilder.autoTerminationPolicy(autoTerminationPolicy.let(IResolvable.Companion::unwrap)) } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ override fun autoTerminationPolicy(autoTerminationPolicy: AutoTerminationPolicyProperty) { cdkBuilder.autoTerminationPolicy(autoTerminationPolicy.let(AutoTerminationPolicyProperty.Companion::unwrap)) } /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("04bf042f7c2a440d931875f8b70e08227df842d1d87d013acf0317b48810b609") @@ -2345,7 +2337,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ApplicationProperty, - ) : CdkObject(cdkObject), ApplicationProperty { + ) : CdkObject(cdkObject), + ApplicationProperty { /** * This option is for advanced users only. * @@ -2578,7 +2571,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.AutoScalingPolicyProperty, - ) : CdkObject(cdkObject), AutoScalingPolicyProperty { + ) : CdkObject(cdkObject), + AutoScalingPolicyProperty { /** * The upper and lower Amazon EC2 instance limits for an automatic scaling policy. * @@ -2681,7 +2675,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.AutoTerminationPolicyProperty, - ) : CdkObject(cdkObject), AutoTerminationPolicyProperty { + ) : CdkObject(cdkObject), + AutoTerminationPolicyProperty { /** * Specifies the amount of idle time in seconds after which the cluster automatically * terminates. @@ -2827,7 +2822,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.BootstrapActionConfigProperty, - ) : CdkObject(cdkObject), BootstrapActionConfigProperty { + ) : CdkObject(cdkObject), + BootstrapActionConfigProperty { /** * The name of the bootstrap action. * @@ -3139,7 +3135,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.CloudWatchAlarmDefinitionProperty, - ) : CdkObject(cdkObject), CloudWatchAlarmDefinitionProperty { + ) : CdkObject(cdkObject), + CloudWatchAlarmDefinitionProperty { /** * Determines how the metric specified by `MetricName` is compared to the value specified by * `Threshold` . @@ -3424,7 +3421,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ComputeLimitsProperty, - ) : CdkObject(cdkObject), ComputeLimitsProperty { + ) : CdkObject(cdkObject), + ComputeLimitsProperty { /** * The upper boundary of Amazon EC2 units. * @@ -3647,7 +3645,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ConfigurationProperty, - ) : CdkObject(cdkObject), ConfigurationProperty { + ) : CdkObject(cdkObject), + ConfigurationProperty { /** * The classification within a configuration. * @@ -3818,7 +3817,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.EbsBlockDeviceConfigProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceConfigProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceConfigProperty { /** * EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that * are requested for the EBS volume attached to an Amazon EC2 instance in the cluster. @@ -3980,7 +3980,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.EbsConfigurationProperty, - ) : CdkObject(cdkObject), EbsConfigurationProperty { + ) : CdkObject(cdkObject), + EbsConfigurationProperty { /** * An array of Amazon EBS volume specifications attached to a cluster instance. * @@ -4184,7 +4185,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.HadoopJarStepConfigProperty, - ) : CdkObject(cdkObject), HadoopJarStepConfigProperty { + ) : CdkObject(cdkObject), + HadoopJarStepConfigProperty { /** * A list of command line arguments passed to the JAR file's main function when executed. * @@ -4570,7 +4572,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.InstanceFleetConfigProperty, - ) : CdkObject(cdkObject), InstanceFleetConfigProperty { + ) : CdkObject(cdkObject), + InstanceFleetConfigProperty { /** * The instance type configurations that define the Amazon EC2 instances in the instance * fleet. @@ -4697,7 +4700,7 @@ public open class CfnCluster( public interface InstanceFleetProvisioningSpecificationsProperty { /** * The launch specification for On-Demand Instances in the instance fleet, which determines the - * allocation strategy. + * allocation strategy and capacity reservation options. * * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, @@ -4710,8 +4713,8 @@ public open class CfnCluster( public fun onDemandSpecification(): Any? = unwrap(this).getOnDemandSpecification() /** - * The launch specification for Spot instances in the fleet, which determines the defined - * duration, provisioning timeout behavior, and allocation strategy. + * The launch specification for Spot instances in the fleet, which determines the allocation + * strategy, defined duration, and provisioning timeout behavior. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetprovisioningspecifications.html#cfn-emr-cluster-instancefleetprovisioningspecifications-spotspecification) */ @@ -4724,7 +4727,7 @@ public open class CfnCluster( public interface Builder { /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4734,7 +4737,7 @@ public open class CfnCluster( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4745,7 +4748,7 @@ public open class CfnCluster( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4758,19 +4761,19 @@ public open class CfnCluster( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ public fun spotSpecification(spotSpecification: IResolvable) /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ public fun spotSpecification(spotSpecification: SpotProvisioningSpecificationProperty) /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("feb9c7ed9ccb5fa3fdaa636ef7684dde558d7eb0ffc5c6e55202ff3c6a0bea6a") @@ -4786,7 +4789,7 @@ public open class CfnCluster( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4798,7 +4801,7 @@ public open class CfnCluster( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4811,7 +4814,7 @@ public open class CfnCluster( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -4826,7 +4829,7 @@ public open class CfnCluster( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ override fun spotSpecification(spotSpecification: IResolvable) { cdkBuilder.spotSpecification(spotSpecification.let(IResolvable.Companion::unwrap)) @@ -4834,7 +4837,7 @@ public open class CfnCluster( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ override fun spotSpecification(spotSpecification: SpotProvisioningSpecificationProperty) { cdkBuilder.spotSpecification(spotSpecification.let(SpotProvisioningSpecificationProperty.Companion::unwrap)) @@ -4842,7 +4845,7 @@ public open class CfnCluster( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("feb9c7ed9ccb5fa3fdaa636ef7684dde558d7eb0ffc5c6e55202ff3c6a0bea6a") @@ -4857,10 +4860,11 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.InstanceFleetProvisioningSpecificationsProperty, - ) : CdkObject(cdkObject), InstanceFleetProvisioningSpecificationsProperty { + ) : CdkObject(cdkObject), + InstanceFleetProvisioningSpecificationsProperty { /** * The launch specification for On-Demand Instances in the instance fleet, which determines - * the allocation strategy. + * the allocation strategy and capacity reservation options. * * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, @@ -4873,8 +4877,8 @@ public open class CfnCluster( override fun onDemandSpecification(): Any? = unwrap(this).getOnDemandSpecification() /** - * The launch specification for Spot instances in the fleet, which determines the defined - * duration, provisioning timeout behavior, and allocation strategy. + * The launch specification for Spot instances in the fleet, which determines the allocation + * strategy, defined duration, and provisioning timeout behavior. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetprovisioningspecifications.html#cfn-emr-cluster-instancefleetprovisioningspecifications-spotspecification) */ @@ -5330,7 +5334,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.InstanceGroupConfigProperty, - ) : CdkObject(cdkObject), InstanceGroupConfigProperty { + ) : CdkObject(cdkObject), + InstanceGroupConfigProperty { /** * `AutoScalingPolicy` is a subproperty of the * [InstanceGroupConfig](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-jobflowinstancesconfig-instancegroupconfig.html) @@ -5728,7 +5733,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.InstanceTypeConfigProperty, - ) : CdkObject(cdkObject), InstanceTypeConfigProperty { + ) : CdkObject(cdkObject), + InstanceTypeConfigProperty { /** * The bid price for each Amazon EC2 Spot Instance type as defined by `InstanceType` . * @@ -7142,7 +7148,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.JobFlowInstancesConfigProperty, - ) : CdkObject(cdkObject), JobFlowInstancesConfigProperty { + ) : CdkObject(cdkObject), + JobFlowInstancesConfigProperty { /** * A list of additional Amazon EC2 security group IDs for the master node. * @@ -7524,7 +7531,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.KerberosAttributesProperty, - ) : CdkObject(cdkObject), KerberosAttributesProperty { + ) : CdkObject(cdkObject), + KerberosAttributesProperty { /** * The Active Directory password for `ADDomainJoinUser` . * @@ -7662,7 +7670,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.KeyValueProperty, - ) : CdkObject(cdkObject), KeyValueProperty { + ) : CdkObject(cdkObject), + KeyValueProperty { /** * The unique identifier of a key-value pair. * @@ -7809,7 +7818,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ManagedScalingPolicyProperty, - ) : CdkObject(cdkObject), ManagedScalingPolicyProperty { + ) : CdkObject(cdkObject), + ManagedScalingPolicyProperty { /** * The Amazon EC2 unit limits for a managed scaling policy. * @@ -7919,7 +7929,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The dimension name. * @@ -7981,8 +7992,9 @@ public open class CfnCluster( /** * Specifies the strategy to use in launching On-Demand instance fleets. * - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-ondemandprovisioningspecification.html#cfn-emr-cluster-ondemandprovisioningspecification-allocationstrategy) */ @@ -7996,8 +8008,9 @@ public open class CfnCluster( /** * @param allocationStrategy Specifies the strategy to use in launching On-Demand instance * fleets. - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . */ public fun allocationStrategy(allocationStrategy: String) } @@ -8011,8 +8024,9 @@ public open class CfnCluster( /** * @param allocationStrategy Specifies the strategy to use in launching On-Demand instance * fleets. - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . */ override fun allocationStrategy(allocationStrategy: String) { cdkBuilder.allocationStrategy(allocationStrategy) @@ -8025,12 +8039,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.OnDemandProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), OnDemandProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + OnDemandProvisioningSpecificationProperty { /** * Specifies the strategy to use in launching On-Demand instance fleets. * - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-ondemandprovisioningspecification.html#cfn-emr-cluster-ondemandprovisioningspecification-allocationstrategy) */ @@ -8149,7 +8165,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.PlacementGroupConfigProperty, - ) : CdkObject(cdkObject), PlacementGroupConfigProperty { + ) : CdkObject(cdkObject), + PlacementGroupConfigProperty { /** * Role of the instance in the cluster. * @@ -8251,7 +8268,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.PlacementTypeProperty, - ) : CdkObject(cdkObject), PlacementTypeProperty { + ) : CdkObject(cdkObject), + PlacementTypeProperty { /** * The Amazon EC2 Availability Zone for the cluster. * @@ -8406,7 +8424,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ScalingActionProperty, - ) : CdkObject(cdkObject), ScalingActionProperty { + ) : CdkObject(cdkObject), + ScalingActionProperty { /** * Not available for instance groups. * @@ -8535,7 +8554,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ScalingConstraintsProperty, - ) : CdkObject(cdkObject), ScalingConstraintsProperty { + ) : CdkObject(cdkObject), + ScalingConstraintsProperty { /** * The upper boundary of Amazon EC2 instances in an instance group beyond which scaling * activities are not allowed to grow. @@ -8783,7 +8803,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ScalingRuleProperty, - ) : CdkObject(cdkObject), ScalingRuleProperty { + ) : CdkObject(cdkObject), + ScalingRuleProperty { /** * The conditions that trigger an automatic scaling activity. * @@ -8949,7 +8970,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ScalingTriggerProperty, - ) : CdkObject(cdkObject), ScalingTriggerProperty { + ) : CdkObject(cdkObject), + ScalingTriggerProperty { /** * The definition of a CloudWatch metric alarm. * @@ -9069,7 +9091,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.ScriptBootstrapActionConfigProperty, - ) : CdkObject(cdkObject), ScriptBootstrapActionConfigProperty { + ) : CdkObject(cdkObject), + ScriptBootstrapActionConfigProperty { /** * A list of command line arguments to pass to the bootstrap action script. * @@ -9258,7 +9281,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.SimpleScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), SimpleScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + SimpleScalingPolicyConfigurationProperty { /** * The way in which Amazon EC2 instances are added (if `ScalingAdjustment` is a positive * number) or terminated (if `ScalingAdjustment` is a negative number) each time the scaling @@ -9352,7 +9376,8 @@ public open class CfnCluster( public interface SpotProvisioningSpecificationProperty { /** * Specifies one of the following strategies to launch Spot Instance fleets: - * `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` . + * `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` , and + * `capacity-optimized-prioritized` . * * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) @@ -9418,8 +9443,8 @@ public open class CfnCluster( public interface Builder { /** * @param allocationStrategy Specifies one of the following strategies to launch Spot Instance - * fleets: `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` - * . + * fleets: `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` + * , and `capacity-optimized-prioritized` . * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) * in the *Amazon EC2 User Guide for Linux Instances* . @@ -9475,8 +9500,8 @@ public open class CfnCluster( /** * @param allocationStrategy Specifies one of the following strategies to launch Spot Instance - * fleets: `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` - * . + * fleets: `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` + * , and `capacity-optimized-prioritized` . * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) * in the *Amazon EC2 User Guide for Linux Instances* . @@ -9538,10 +9563,12 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.SpotProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), SpotProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + SpotProvisioningSpecificationProperty { /** * Specifies one of the following strategies to launch Spot Instance fleets: - * `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` . + * `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` , and + * `capacity-optimized-prioritized` . * * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) @@ -9758,7 +9785,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.StepConfigProperty, - ) : CdkObject(cdkObject), StepConfigProperty { + ) : CdkObject(cdkObject), + StepConfigProperty { /** * The action to take when the cluster step fails. * @@ -9932,7 +9960,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnCluster.VolumeSpecificationProperty, - ) : CdkObject(cdkObject), VolumeSpecificationProperty { + ) : CdkObject(cdkObject), + VolumeSpecificationProperty { /** * The number of I/O operations per second (IOPS) that the volume supports. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnClusterProps.kt index 1549d23c9b..2040770a74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnClusterProps.kt @@ -497,11 +497,11 @@ public interface CfnClusterProps { public fun autoScalingRole(): String? = unwrap(this).getAutoScalingRole() /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) */ @@ -765,27 +765,27 @@ public interface CfnClusterProps { public fun autoScalingRole(autoScalingRole: String) /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ public fun autoTerminationPolicy(autoTerminationPolicy: IResolvable) /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ public fun autoTerminationPolicy(autoTerminationPolicy: CfnCluster.AutoTerminationPolicyProperty) /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8f3240acf26a1c9c7b4ba81bd6a1e25256e5be8202b4c67f86b93242c1944044") @@ -1124,20 +1124,20 @@ public interface CfnClusterProps { } /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ override fun autoTerminationPolicy(autoTerminationPolicy: IResolvable) { cdkBuilder.autoTerminationPolicy(autoTerminationPolicy.let(IResolvable.Companion::unwrap)) } /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ override fun autoTerminationPolicy(autoTerminationPolicy: CfnCluster.AutoTerminationPolicyProperty) { @@ -1145,10 +1145,10 @@ public interface CfnClusterProps { } /** - * @param autoTerminationPolicy An auto-termination policy defines the amount of idle time in - * seconds after which a cluster automatically terminates. - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * @param autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8f3240acf26a1c9c7b4ba81bd6a1e25256e5be8202b4c67f86b93242c1944044") @@ -1518,7 +1518,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * A JSON string for selecting additional features. * @@ -1546,11 +1547,11 @@ public interface CfnClusterProps { override fun autoScalingRole(): String? = unwrap(this).getAutoScalingRole() /** - * An auto-termination policy defines the amount of idle time in seconds after which a cluster - * automatically terminates. + * An auto-termination policy for an Amazon EMR cluster. * - * For alternative cluster termination options, see [Control cluster - * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) + * An auto-termination policy defines the amount of idle time in seconds after which a cluster + * automatically terminates. For alternative cluster termination options, see [Control cluster + * termination](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html#cfn-emr-cluster-autoterminationpolicy) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfig.kt index 01167f2adc..9c71169f80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfig.kt @@ -103,7 +103,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceFleetConfig( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -770,7 +771,8 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.ConfigurationProperty, - ) : CdkObject(cdkObject), ConfigurationProperty { + ) : CdkObject(cdkObject), + ConfigurationProperty { /** * The classification within a configuration. * @@ -945,7 +947,8 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.EbsBlockDeviceConfigProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceConfigProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceConfigProperty { /** * EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that * are requested for the EBS volume attached to an Amazon EC2 instance in the cluster. @@ -1107,7 +1110,8 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.EbsConfigurationProperty, - ) : CdkObject(cdkObject), EbsConfigurationProperty { + ) : CdkObject(cdkObject), + EbsConfigurationProperty { /** * An array of Amazon EBS volume specifications attached to a cluster instance. * @@ -1175,7 +1179,7 @@ public open class CfnInstanceFleetConfig( public interface InstanceFleetProvisioningSpecificationsProperty { /** * The launch specification for On-Demand Instances in the instance fleet, which determines the - * allocation strategy. + * allocation strategy and capacity reservation options. * * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, @@ -1188,8 +1192,8 @@ public open class CfnInstanceFleetConfig( public fun onDemandSpecification(): Any? = unwrap(this).getOnDemandSpecification() /** - * The launch specification for Spot instances in the fleet, which determines the defined - * duration, provisioning timeout behavior, and allocation strategy. + * The launch specification for Spot instances in the fleet, which determines the allocation + * strategy, defined duration, and provisioning timeout behavior. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-instancefleetprovisioningspecifications.html#cfn-emr-instancefleetconfig-instancefleetprovisioningspecifications-spotspecification) */ @@ -1202,7 +1206,7 @@ public open class CfnInstanceFleetConfig( public interface Builder { /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1212,7 +1216,7 @@ public open class CfnInstanceFleetConfig( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1223,7 +1227,7 @@ public open class CfnInstanceFleetConfig( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1236,19 +1240,19 @@ public open class CfnInstanceFleetConfig( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ public fun spotSpecification(spotSpecification: IResolvable) /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ public fun spotSpecification(spotSpecification: SpotProvisioningSpecificationProperty) /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("adf4fa6f990e98f7c46c7bfa05dc84b8118c0023a37aef58de9fc82d05931529") @@ -1264,7 +1268,7 @@ public open class CfnInstanceFleetConfig( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1276,7 +1280,7 @@ public open class CfnInstanceFleetConfig( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1289,7 +1293,7 @@ public open class CfnInstanceFleetConfig( /** * @param onDemandSpecification The launch specification for On-Demand Instances in the - * instance fleet, which determines the allocation strategy. + * instance fleet, which determines the allocation strategy and capacity reservation options. * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, * excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR @@ -1304,7 +1308,7 @@ public open class CfnInstanceFleetConfig( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ override fun spotSpecification(spotSpecification: IResolvable) { cdkBuilder.spotSpecification(spotSpecification.let(IResolvable.Companion::unwrap)) @@ -1312,7 +1316,7 @@ public open class CfnInstanceFleetConfig( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ override fun spotSpecification(spotSpecification: SpotProvisioningSpecificationProperty) { cdkBuilder.spotSpecification(spotSpecification.let(SpotProvisioningSpecificationProperty.Companion::unwrap)) @@ -1320,7 +1324,7 @@ public open class CfnInstanceFleetConfig( /** * @param spotSpecification The launch specification for Spot instances in the fleet, which - * determines the defined duration, provisioning timeout behavior, and allocation strategy. + * determines the allocation strategy, defined duration, and provisioning timeout behavior. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("adf4fa6f990e98f7c46c7bfa05dc84b8118c0023a37aef58de9fc82d05931529") @@ -1335,10 +1339,11 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty, - ) : CdkObject(cdkObject), InstanceFleetProvisioningSpecificationsProperty { + ) : CdkObject(cdkObject), + InstanceFleetProvisioningSpecificationsProperty { /** * The launch specification for On-Demand Instances in the instance fleet, which determines - * the allocation strategy. + * the allocation strategy and capacity reservation options. * * * The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, @@ -1351,8 +1356,8 @@ public open class CfnInstanceFleetConfig( override fun onDemandSpecification(): Any? = unwrap(this).getOnDemandSpecification() /** - * The launch specification for Spot instances in the fleet, which determines the defined - * duration, provisioning timeout behavior, and allocation strategy. + * The launch specification for Spot instances in the fleet, which determines the allocation + * strategy, defined duration, and provisioning timeout behavior. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-instancefleetprovisioningspecifications.html#cfn-emr-instancefleetconfig-instancefleetprovisioningspecifications-spotspecification) */ @@ -1716,7 +1721,8 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.InstanceTypeConfigProperty, - ) : CdkObject(cdkObject), InstanceTypeConfigProperty { + ) : CdkObject(cdkObject), + InstanceTypeConfigProperty { /** * The bid price for each Amazon EC2 Spot Instance type as defined by `InstanceType` . * @@ -1834,8 +1840,9 @@ public open class CfnInstanceFleetConfig( /** * Specifies the strategy to use in launching On-Demand instance fleets. * - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-ondemandprovisioningspecification.html#cfn-emr-instancefleetconfig-ondemandprovisioningspecification-allocationstrategy) */ @@ -1849,8 +1856,9 @@ public open class CfnInstanceFleetConfig( /** * @param allocationStrategy Specifies the strategy to use in launching On-Demand instance * fleets. - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . */ public fun allocationStrategy(allocationStrategy: String) } @@ -1864,8 +1872,9 @@ public open class CfnInstanceFleetConfig( /** * @param allocationStrategy Specifies the strategy to use in launching On-Demand instance * fleets. - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . */ override fun allocationStrategy(allocationStrategy: String) { cdkBuilder.allocationStrategy(allocationStrategy) @@ -1878,12 +1887,14 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), OnDemandProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + OnDemandProvisioningSpecificationProperty { /** * Specifies the strategy to use in launching On-Demand instance fleets. * - * Currently, the only option is `lowest-price` (the default), which launches the lowest price - * first. + * Available options are `lowest-price` and `prioritized` . `lowest-price` specifies to launch + * the instances with the lowest price first, and `prioritized` specifies that Amazon EMR should + * launch the instances with the highest priority first. The default is `lowest-price` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-ondemandprovisioningspecification.html#cfn-emr-instancefleetconfig-ondemandprovisioningspecification-allocationstrategy) */ @@ -1942,7 +1953,8 @@ public open class CfnInstanceFleetConfig( public interface SpotProvisioningSpecificationProperty { /** * Specifies one of the following strategies to launch Spot Instance fleets: - * `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` . + * `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` , and + * `capacity-optimized-prioritized` . * * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) @@ -2008,8 +2020,8 @@ public open class CfnInstanceFleetConfig( public interface Builder { /** * @param allocationStrategy Specifies one of the following strategies to launch Spot Instance - * fleets: `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` - * . + * fleets: `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` + * , and `capacity-optimized-prioritized` . * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) * in the *Amazon EC2 User Guide for Linux Instances* . @@ -2065,8 +2077,8 @@ public open class CfnInstanceFleetConfig( /** * @param allocationStrategy Specifies one of the following strategies to launch Spot Instance - * fleets: `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` - * . + * fleets: `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` + * , and `capacity-optimized-prioritized` . * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) * in the *Amazon EC2 User Guide for Linux Instances* . @@ -2128,10 +2140,12 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.SpotProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), SpotProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + SpotProvisioningSpecificationProperty { /** * Specifies one of the following strategies to launch Spot Instance fleets: - * `price-capacity-optimized` , `capacity-optimized` , `lowest-price` , or `diversified` . + * `capacity-optimized` , `price-capacity-optimized` , `lowest-price` , or `diversified` , and + * `capacity-optimized-prioritized` . * * For more information on the provisioning strategies, see [Allocation strategies for Spot * Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) @@ -2345,7 +2359,8 @@ public open class CfnInstanceFleetConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.VolumeSpecificationProperty, - ) : CdkObject(cdkObject), VolumeSpecificationProperty { + ) : CdkObject(cdkObject), + VolumeSpecificationProperty { /** * The number of I/O operations per second (IOPS) that the volume supports. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfigProps.kt index 5e871456aa..e29c0a9149 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceFleetConfigProps.kt @@ -404,7 +404,8 @@ public interface CfnInstanceFleetConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceFleetConfigProps, - ) : CdkObject(cdkObject), CfnInstanceFleetConfigProps { + ) : CdkObject(cdkObject), + CfnInstanceFleetConfigProps { /** * The unique identifier of the EMR cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfig.kt index 0267e94f65..eabb5da4fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfig.kt @@ -123,7 +123,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceGroupConfig( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -933,7 +934,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.AutoScalingPolicyProperty, - ) : CdkObject(cdkObject), AutoScalingPolicyProperty { + ) : CdkObject(cdkObject), + AutoScalingPolicyProperty { /** * The upper and lower Amazon EC2 instance limits for an automatic scaling policy. * @@ -1249,7 +1251,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.CloudWatchAlarmDefinitionProperty, - ) : CdkObject(cdkObject), CloudWatchAlarmDefinitionProperty { + ) : CdkObject(cdkObject), + CloudWatchAlarmDefinitionProperty { /** * Determines how the metric specified by `MetricName` is compared to the value specified by * `Threshold` . @@ -1507,7 +1510,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ConfigurationProperty, - ) : CdkObject(cdkObject), ConfigurationProperty { + ) : CdkObject(cdkObject), + ConfigurationProperty { /** * The classification within a configuration. * @@ -1680,7 +1684,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceConfigProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceConfigProperty { /** * EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that * are requested for the EBS volume attached to an Amazon EC2 instance in the cluster. @@ -1842,7 +1847,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.EbsConfigurationProperty, - ) : CdkObject(cdkObject), EbsConfigurationProperty { + ) : CdkObject(cdkObject), + EbsConfigurationProperty { /** * An array of Amazon EBS volume specifications attached to a cluster instance. * @@ -1957,7 +1963,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The dimension name. * @@ -2117,7 +2124,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingActionProperty, - ) : CdkObject(cdkObject), ScalingActionProperty { + ) : CdkObject(cdkObject), + ScalingActionProperty { /** * Not available for instance groups. * @@ -2248,7 +2256,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingConstraintsProperty, - ) : CdkObject(cdkObject), ScalingConstraintsProperty { + ) : CdkObject(cdkObject), + ScalingConstraintsProperty { /** * The upper boundary of Amazon EC2 instances in an instance group beyond which scaling * activities are not allowed to grow. @@ -2497,7 +2506,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingRuleProperty, - ) : CdkObject(cdkObject), ScalingRuleProperty { + ) : CdkObject(cdkObject), + ScalingRuleProperty { /** * The conditions that trigger an automatic scaling activity. * @@ -2666,7 +2676,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingTriggerProperty, - ) : CdkObject(cdkObject), ScalingTriggerProperty { + ) : CdkObject(cdkObject), + ScalingTriggerProperty { /** * The definition of a CloudWatch metric alarm. * @@ -2850,7 +2861,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), SimpleScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + SimpleScalingPolicyConfigurationProperty { /** * The way in which Amazon EC2 instances are added (if `ScalingAdjustment` is a positive * number) or terminated (if `ScalingAdjustment` is a negative number) each time the scaling @@ -3045,7 +3057,8 @@ public open class CfnInstanceGroupConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.VolumeSpecificationProperty, - ) : CdkObject(cdkObject), VolumeSpecificationProperty { + ) : CdkObject(cdkObject), + VolumeSpecificationProperty { /** * The number of I/O operations per second (IOPS) that the volume supports. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfigProps.kt index 68ee0d25c9..bea309e2bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnInstanceGroupConfigProps.kt @@ -477,7 +477,8 @@ public interface CfnInstanceGroupConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnInstanceGroupConfigProps, - ) : CdkObject(cdkObject), CfnInstanceGroupConfigProps { + ) : CdkObject(cdkObject), + CfnInstanceGroupConfigProps { /** * `AutoScalingPolicy` is a subproperty of `InstanceGroupConfig` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfiguration.kt index e94c1b3516..e99eb47540 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfiguration.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityConfiguration( cdkObject: software.amazon.awscdk.services.emr.CfnSecurityConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -136,6 +137,10 @@ public open class CfnSecurityConfiguration( /** * The security configuration details in JSON format. * + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration) * @param securityConfiguration The security configuration details in JSON format. */ @@ -162,6 +167,10 @@ public open class CfnSecurityConfiguration( /** * The security configuration details in JSON format. * + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration) * @param securityConfiguration The security configuration details in JSON format. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfigurationProps.kt index 1ada2f9f1b..06a79902ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnSecurityConfigurationProps.kt @@ -70,6 +70,10 @@ public interface CfnSecurityConfigurationProps { /** * The security configuration details in JSON format. * + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration) */ public fun securityConfiguration(): Any @@ -86,6 +90,9 @@ public interface CfnSecurityConfigurationProps { /** * @param securityConfiguration The security configuration details in JSON format. + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . */ public fun securityConfiguration(securityConfiguration: Any) } @@ -104,6 +111,9 @@ public interface CfnSecurityConfigurationProps { /** * @param securityConfiguration The security configuration details in JSON format. + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . */ override fun securityConfiguration(securityConfiguration: Any) { cdkBuilder.securityConfiguration(securityConfiguration) @@ -115,7 +125,8 @@ public interface CfnSecurityConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnSecurityConfigurationProps, - ) : CdkObject(cdkObject), CfnSecurityConfigurationProps { + ) : CdkObject(cdkObject), + CfnSecurityConfigurationProps { /** * The name of the security configuration. * @@ -126,6 +137,10 @@ public interface CfnSecurityConfigurationProps { /** * The security configuration details in JSON format. * + * For JSON parameters and examples, see [Use Security Configurations to Set Up Cluster + * Security](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html) + * in the *Amazon EMR Management Guide* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration) */ override fun securityConfiguration(): Any = unwrap(this).getSecurityConfiguration() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStep.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStep.kt index cfd4644194..12176c8eea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStep.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStep.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStep( cdkObject: software.amazon.awscdk.services.emr.CfnStep, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -496,7 +497,8 @@ public open class CfnStep( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnStep.HadoopJarStepConfigProperty, - ) : CdkObject(cdkObject), HadoopJarStepConfigProperty { + ) : CdkObject(cdkObject), + HadoopJarStepConfigProperty { /** * A list of command line arguments passed to the JAR file's main function when executed. * @@ -622,7 +624,8 @@ public open class CfnStep( private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnStep.KeyValueProperty, - ) : CdkObject(cdkObject), KeyValueProperty { + ) : CdkObject(cdkObject), + KeyValueProperty { /** * The unique identifier of a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStepProps.kt index cb6b18b07b..8fd017eeba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStepProps.kt @@ -185,7 +185,8 @@ public interface CfnStepProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnStepProps, - ) : CdkObject(cdkObject), CfnStepProps { + ) : CdkObject(cdkObject), + CfnStepProps { /** * This specifies what action to take when the cluster step fails. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudio.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudio.kt index 99dd2e1847..953e2fbc25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudio.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudio.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStudio( cdkObject: software.amazon.awscdk.services.emr.CfnStudio, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioProps.kt index 8ab4ed2223..2d4c1d11fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioProps.kt @@ -521,7 +521,8 @@ public interface CfnStudioProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnStudioProps, - ) : CdkObject(cdkObject), CfnStudioProps { + ) : CdkObject(cdkObject), + CfnStudioProps { /** * Specifies whether the Studio authenticates users using IAM Identity Center or IAM. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMapping.kt index a3c69518b3..94cac8d299 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMapping.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStudioSessionMapping( cdkObject: software.amazon.awscdk.services.emr.CfnStudioSessionMapping, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMappingProps.kt index aebd6309d2..265603eaa8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnStudioSessionMappingProps.kt @@ -155,7 +155,8 @@ public interface CfnStudioSessionMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnStudioSessionMappingProps, - ) : CdkObject(cdkObject), CfnStudioSessionMappingProps { + ) : CdkObject(cdkObject), + CfnStudioSessionMappingProps { /** * The name of the user or group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspace.kt index 744beae16a..b2814d039a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspace.kt @@ -16,9 +16,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * A WAL workspace is a logical container of write-ahead logs (WALs). - * - * All WALs in Amazon EMR WAL are encapsulated by a WAL workspace. + * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html. * * Example: * @@ -39,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWALWorkspace( cdkObject: software.amazon.awscdk.services.emr.CfnWALWorkspace, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.emr.CfnWALWorkspace(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -77,29 +77,29 @@ public open class CfnWALWorkspace( } /** - * You can add tags when you create a new workspace. + * An array of key-value pairs to apply to this resource. */ public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * You can add tags when you create a new workspace. + * An array of key-value pairs to apply to this resource. */ public open fun tags(`value`: List) { unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) } /** - * You can add tags when you create a new workspace. + * An array of key-value pairs to apply to this resource. */ public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) /** - * The name of the WAL workspace. + * The name of the emrwal container. */ public open fun walWorkspaceName(): String? = unwrap(this).getWalWorkspaceName() /** - * The name of the WAL workspace. + * The name of the emrwal container. */ public open fun walWorkspaceName(`value`: String) { unwrap(this).setWalWorkspaceName(`value`) @@ -111,38 +111,26 @@ public open class CfnWALWorkspace( @CdkDslMarker public interface Builder { /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) - * @param tags You can add tags when you create a new workspace. + * @param tags An array of key-value pairs to apply to this resource. */ public fun tags(tags: List) /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) - * @param tags You can add tags when you create a new workspace. + * @param tags An array of key-value pairs to apply to this resource. */ public fun tags(vararg tags: CfnTag) /** - * The name of the WAL workspace. + * The name of the emrwal container. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-walworkspacename) - * @param walWorkspaceName The name of the WAL workspace. + * @param walWorkspaceName The name of the emrwal container. */ public fun walWorkspaceName(walWorkspaceName: String) } @@ -155,40 +143,28 @@ public open class CfnWALWorkspace( software.amazon.awscdk.services.emr.CfnWALWorkspace.Builder.create(scope, id) /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) - * @param tags You can add tags when you create a new workspace. + * @param tags An array of key-value pairs to apply to this resource. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) - * @param tags You can add tags when you create a new workspace. + * @param tags An array of key-value pairs to apply to this resource. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * The name of the WAL workspace. + * The name of the emrwal container. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-walworkspacename) - * @param walWorkspaceName The name of the WAL workspace. + * @param walWorkspaceName The name of the emrwal container. */ override fun walWorkspaceName(walWorkspaceName: String) { cdkBuilder.walWorkspaceName(walWorkspaceName) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspaceProps.kt index 2fa08462fc..200251af56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emr/CfnWALWorkspaceProps.kt @@ -32,19 +32,14 @@ import kotlin.collections.List */ public interface CfnWALWorkspaceProps { /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. Instead, - * remove the tag and add a new one. For more information, see see [Tag your Amazon EMR WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) */ public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * The name of the WAL workspace. + * The name of the emrwal container. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-walworkspacename) */ @@ -56,27 +51,17 @@ public interface CfnWALWorkspaceProps { @CdkDslMarker public interface Builder { /** - * @param tags You can add tags when you create a new workspace. - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * @param tags An array of key-value pairs to apply to this resource. */ public fun tags(tags: List) /** - * @param tags You can add tags when you create a new workspace. - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * @param tags An array of key-value pairs to apply to this resource. */ public fun tags(vararg tags: CfnTag) /** - * @param walWorkspaceName The name of the WAL workspace. + * @param walWorkspaceName The name of the emrwal container. */ public fun walWorkspaceName(walWorkspaceName: String) } @@ -86,29 +71,19 @@ public interface CfnWALWorkspaceProps { software.amazon.awscdk.services.emr.CfnWALWorkspaceProps.builder() /** - * @param tags You can add tags when you create a new workspace. - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * @param tags An array of key-value pairs to apply to this resource. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags You can add tags when you create a new workspace. - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * @param tags An array of key-value pairs to apply to this resource. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) /** - * @param walWorkspaceName The name of the WAL workspace. + * @param walWorkspaceName The name of the emrwal container. */ override fun walWorkspaceName(walWorkspaceName: String) { cdkBuilder.walWorkspaceName(walWorkspaceName) @@ -120,22 +95,17 @@ public interface CfnWALWorkspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emr.CfnWALWorkspaceProps, - ) : CdkObject(cdkObject), CfnWALWorkspaceProps { + ) : CdkObject(cdkObject), + CfnWALWorkspaceProps { /** - * You can add tags when you create a new workspace. - * - * You can add, remove, or list tags from an active workspace, but you can't update tags. - * Instead, remove the tag and add a new one. For more information, see see [Tag your Amazon EMR - * WAL - * workspaces](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-wal.html#emr-hbase-wal-tagging) - * . + * An array of key-value pairs to apply to this resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-tags) */ override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * The name of the WAL workspace. + * The name of the emrwal container. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-walworkspace.html#cfn-emr-walworkspace-walworkspacename) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualCluster.kt index a49dec34cf..19adfd545f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualCluster.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualCluster( cdkObject: software.amazon.awscdk.services.emrcontainers.CfnVirtualCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -404,7 +406,8 @@ public open class CfnVirtualCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrcontainers.CfnVirtualCluster.ContainerInfoProperty, - ) : CdkObject(cdkObject), ContainerInfoProperty { + ) : CdkObject(cdkObject), + ContainerInfoProperty { /** * The information about the Amazon EKS cluster. * @@ -577,7 +580,8 @@ public open class CfnVirtualCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrcontainers.CfnVirtualCluster.ContainerProviderProperty, - ) : CdkObject(cdkObject), ContainerProviderProperty { + ) : CdkObject(cdkObject), + ContainerProviderProperty { /** * The ID of the container cluster. * @@ -696,7 +700,8 @@ public open class CfnVirtualCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrcontainers.CfnVirtualCluster.EksInfoProperty, - ) : CdkObject(cdkObject), EksInfoProperty { + ) : CdkObject(cdkObject), + EksInfoProperty { /** * The namespaces of the EKS cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualClusterProps.kt index 87af0b92b8..74c18dd542 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrcontainers/CfnVirtualClusterProps.kt @@ -173,7 +173,8 @@ public interface CfnVirtualClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emrcontainers.CfnVirtualClusterProps, - ) : CdkObject(cdkObject), CfnVirtualClusterProps { + ) : CdkObject(cdkObject), + CfnVirtualClusterProps { /** * The container provider of the virtual cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplication.kt index 7c91a8e36d..b93e704d73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplication.kt @@ -61,10 +61,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .memory("memory") * // the properties below are optional * .disk("disk") + * .diskType("diskType") * .build()) * .workerCount(123) * .build()) * .build())) + * .interactiveConfiguration(InteractiveConfigurationProperty.builder() + * .livyEndpointEnabled(false) + * .studioEnabled(false) + * .build()) * .maximumCapacity(MaximumAllowedResourcesProperty.builder() * .cpu("cpu") * .memory("memory") @@ -120,7 +125,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -278,6 +285,34 @@ public open class CfnApplication( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The interactive configuration object that enables the interactive use cases for an application. + */ + public open fun interactiveConfiguration(): Any? = unwrap(this).getInteractiveConfiguration() + + /** + * The interactive configuration object that enables the interactive use cases for an application. + */ + public open fun interactiveConfiguration(`value`: IResolvable) { + unwrap(this).setInteractiveConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The interactive configuration object that enables the interactive use cases for an application. + */ + public open fun interactiveConfiguration(`value`: InteractiveConfigurationProperty) { + unwrap(this).setInteractiveConfiguration(`value`.let(InteractiveConfigurationProperty.Companion::unwrap)) + } + + /** + * The interactive configuration object that enables the interactive use cases for an application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b4f77aaa497655a8265cb4687346667f8d9fabe0552393e935a522d0720e3ece") + public open + fun interactiveConfiguration(`value`: InteractiveConfigurationProperty.Builder.() -> Unit): + Unit = interactiveConfiguration(InteractiveConfigurationProperty(`value`)) + /** * The maximum capacity of the application. */ @@ -614,6 +649,39 @@ public open class CfnApplication( */ public fun initialCapacity(vararg initialCapacity: Any) + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + public fun interactiveConfiguration(interactiveConfiguration: IResolvable) + + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + public fun interactiveConfiguration(interactiveConfiguration: InteractiveConfigurationProperty) + + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c7353079fffd4f769f5419fa2b1e648f564465ea6d87460c246848a9eefd7611") + public + fun interactiveConfiguration(interactiveConfiguration: InteractiveConfigurationProperty.Builder.() -> Unit) + /** * The maximum capacity of the application. * @@ -992,6 +1060,45 @@ public open class CfnApplication( override fun initialCapacity(vararg initialCapacity: Any): Unit = initialCapacity(initialCapacity.toList()) + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + override fun interactiveConfiguration(interactiveConfiguration: IResolvable) { + cdkBuilder.interactiveConfiguration(interactiveConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + override + fun interactiveConfiguration(interactiveConfiguration: InteractiveConfigurationProperty) { + cdkBuilder.interactiveConfiguration(interactiveConfiguration.let(InteractiveConfigurationProperty.Companion::unwrap)) + } + + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c7353079fffd4f769f5419fa2b1e648f564465ea6d87460c246848a9eefd7611") + override + fun interactiveConfiguration(interactiveConfiguration: InteractiveConfigurationProperty.Builder.() -> Unit): + Unit = interactiveConfiguration(InteractiveConfigurationProperty(interactiveConfiguration)) + /** * The maximum capacity of the application. * @@ -1352,7 +1459,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.AutoStartConfigurationProperty, - ) : CdkObject(cdkObject), AutoStartConfigurationProperty { + ) : CdkObject(cdkObject), + AutoStartConfigurationProperty { /** * If set to true, the Application will automatically start. * @@ -1485,7 +1593,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.AutoStopConfigurationProperty, - ) : CdkObject(cdkObject), AutoStopConfigurationProperty { + ) : CdkObject(cdkObject), + AutoStopConfigurationProperty { /** * If set to true, the Application will automatically stop after being idle. * @@ -1528,7 +1637,7 @@ public open class CfnApplication( /** * The Amazon CloudWatch configuration for monitoring logs. * - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. * * Example: * @@ -1563,7 +1672,7 @@ public open class CfnApplication( /** * The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch - * Logs . + * Logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-encryptionkeyarn) */ @@ -1607,7 +1716,7 @@ public open class CfnApplication( /** * @param encryptionKeyArn The AWS Key Management Service (KMS) key ARN to encrypt the logs - * that you store in CloudWatch Logs . + * that you store in CloudWatch Logs. */ public fun encryptionKeyArn(encryptionKeyArn: String) @@ -1660,7 +1769,7 @@ public open class CfnApplication( /** * @param encryptionKeyArn The AWS Key Management Service (KMS) key ARN to encrypt the logs - * that you store in CloudWatch Logs . + * that you store in CloudWatch Logs. */ override fun encryptionKeyArn(encryptionKeyArn: String) { cdkBuilder.encryptionKeyArn(encryptionKeyArn) @@ -1707,7 +1816,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.CloudWatchLoggingConfigurationProperty, - ) : CdkObject(cdkObject), CloudWatchLoggingConfigurationProperty { + ) : CdkObject(cdkObject), + CloudWatchLoggingConfigurationProperty { /** * Enables CloudWatch logging. * @@ -1719,7 +1829,7 @@ public open class CfnApplication( /** * The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in - * CloudWatch Logs . + * CloudWatch Logs. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-encryptionkeyarn) */ @@ -1893,7 +2003,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.ConfigurationObjectProperty, - ) : CdkObject(cdkObject), ConfigurationObjectProperty { + ) : CdkObject(cdkObject), + ConfigurationObjectProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-classification) */ @@ -1991,7 +2102,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.ImageConfigurationInputProperty, - ) : CdkObject(cdkObject), ImageConfigurationInputProperty { + ) : CdkObject(cdkObject), + ImageConfigurationInputProperty { /** * The URI of an image in the Amazon ECR registry. * @@ -2037,6 +2149,7 @@ public open class CfnApplication( * .memory("memory") * // the properties below are optional * .disk("disk") + * .diskType("diskType") * .build()) * .workerCount(123) * .build()) @@ -2128,7 +2241,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.InitialCapacityConfigKeyValuePairProperty, - ) : CdkObject(cdkObject), InitialCapacityConfigKeyValuePairProperty { + ) : CdkObject(cdkObject), + InitialCapacityConfigKeyValuePairProperty { /** * Worker type for an analytics framework. * @@ -2177,6 +2291,7 @@ public open class CfnApplication( * .memory("memory") * // the properties below are optional * .disk("disk") + * .diskType("diskType") * .build()) * .workerCount(123) * .build(); @@ -2277,7 +2392,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.InitialCapacityConfigProperty, - ) : CdkObject(cdkObject), InitialCapacityConfigProperty { + ) : CdkObject(cdkObject), + InitialCapacityConfigProperty { /** * The resource configuration of the initial capacity configuration. * @@ -2311,6 +2427,160 @@ public open class CfnApplication( } } + /** + * The configuration to use to enable the different types of interactive use cases in an + * application. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.emrserverless.*; + * InteractiveConfigurationProperty interactiveConfigurationProperty = + * InteractiveConfigurationProperty.builder() + * .livyEndpointEnabled(false) + * .studioEnabled(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html) + */ + public interface InteractiveConfigurationProperty { + /** + * Enables an Apache Livy endpoint that you can connect to and run interactive jobs. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-livyendpointenabled) + */ + public fun livyEndpointEnabled(): Any? = unwrap(this).getLivyEndpointEnabled() + + /** + * Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a + * notebook. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-studioenabled) + */ + public fun studioEnabled(): Any? = unwrap(this).getStudioEnabled() + + /** + * A builder for [InteractiveConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param livyEndpointEnabled Enables an Apache Livy endpoint that you can connect to and run + * interactive jobs. + */ + public fun livyEndpointEnabled(livyEndpointEnabled: Boolean) + + /** + * @param livyEndpointEnabled Enables an Apache Livy endpoint that you can connect to and run + * interactive jobs. + */ + public fun livyEndpointEnabled(livyEndpointEnabled: IResolvable) + + /** + * @param studioEnabled Enables you to connect an application to Amazon EMR Studio to run + * interactive workloads in a notebook. + */ + public fun studioEnabled(studioEnabled: Boolean) + + /** + * @param studioEnabled Enables you to connect an application to Amazon EMR Studio to run + * interactive workloads in a notebook. + */ + public fun studioEnabled(studioEnabled: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty.Builder + = + software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty.builder() + + /** + * @param livyEndpointEnabled Enables an Apache Livy endpoint that you can connect to and run + * interactive jobs. + */ + override fun livyEndpointEnabled(livyEndpointEnabled: Boolean) { + cdkBuilder.livyEndpointEnabled(livyEndpointEnabled) + } + + /** + * @param livyEndpointEnabled Enables an Apache Livy endpoint that you can connect to and run + * interactive jobs. + */ + override fun livyEndpointEnabled(livyEndpointEnabled: IResolvable) { + cdkBuilder.livyEndpointEnabled(livyEndpointEnabled.let(IResolvable.Companion::unwrap)) + } + + /** + * @param studioEnabled Enables you to connect an application to Amazon EMR Studio to run + * interactive workloads in a notebook. + */ + override fun studioEnabled(studioEnabled: Boolean) { + cdkBuilder.studioEnabled(studioEnabled) + } + + /** + * @param studioEnabled Enables you to connect an application to Amazon EMR Studio to run + * interactive workloads in a notebook. + */ + override fun studioEnabled(studioEnabled: IResolvable) { + cdkBuilder.studioEnabled(studioEnabled.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty, + ) : CdkObject(cdkObject), + InteractiveConfigurationProperty { + /** + * Enables an Apache Livy endpoint that you can connect to and run interactive jobs. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-livyendpointenabled) + */ + override fun livyEndpointEnabled(): Any? = unwrap(this).getLivyEndpointEnabled() + + /** + * Enables you to connect an application to Amazon EMR Studio to run interactive workloads in + * a notebook. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-studioenabled) + */ + override fun studioEnabled(): Any? = unwrap(this).getStudioEnabled() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InteractiveConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty): + InteractiveConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + InteractiveConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: InteractiveConfigurationProperty): + software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.emrserverless.CfnApplication.InteractiveConfigurationProperty + } + } + /** * Example: * @@ -2393,7 +2663,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.LogTypeMapKeyValuePairProperty, - ) : CdkObject(cdkObject), LogTypeMapKeyValuePairProperty { + ) : CdkObject(cdkObject), + LogTypeMapKeyValuePairProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html#cfn-emrserverless-application-logtypemapkeyvaluepair-key) */ @@ -2524,7 +2795,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.ManagedPersistenceMonitoringConfigurationProperty, - ) : CdkObject(cdkObject), ManagedPersistenceMonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + ManagedPersistenceMonitoringConfigurationProperty { /** * Enables managed logging and defaults to true. * @@ -2662,7 +2934,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.MaximumAllowedResourcesProperty, - ) : CdkObject(cdkObject), MaximumAllowedResourcesProperty { + ) : CdkObject(cdkObject), + MaximumAllowedResourcesProperty { /** * The maximum allowed CPU for an application. * @@ -2741,7 +3014,7 @@ public open class CfnApplication( /** * The Amazon CloudWatch configuration for monitoring logs. * - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-cloudwatchloggingconfiguration) */ @@ -2771,14 +3044,14 @@ public open class CfnApplication( /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ public fun cloudWatchLoggingConfiguration(cloudWatchLoggingConfiguration: IResolvable) /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ public fun cloudWatchLoggingConfiguration(cloudWatchLoggingConfiguration: CloudWatchLoggingConfigurationProperty) @@ -2786,7 +3059,7 @@ public open class CfnApplication( /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ad1153ab61aa5057aecd5d7cafa7e097b24d047ba2769ca788886319ec68472f") @@ -2845,7 +3118,7 @@ public open class CfnApplication( /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ override fun cloudWatchLoggingConfiguration(cloudWatchLoggingConfiguration: IResolvable) { cdkBuilder.cloudWatchLoggingConfiguration(cloudWatchLoggingConfiguration.let(IResolvable.Companion::unwrap)) @@ -2854,7 +3127,7 @@ public open class CfnApplication( /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ override fun cloudWatchLoggingConfiguration(cloudWatchLoggingConfiguration: CloudWatchLoggingConfigurationProperty) { @@ -2864,7 +3137,7 @@ public open class CfnApplication( /** * @param cloudWatchLoggingConfiguration The Amazon CloudWatch configuration for monitoring * logs. - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ad1153ab61aa5057aecd5d7cafa7e097b24d047ba2769ca788886319ec68472f") @@ -2934,11 +3207,12 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.MonitoringConfigurationProperty, - ) : CdkObject(cdkObject), MonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + MonitoringConfigurationProperty { /** * The Amazon CloudWatch configuration for monitoring logs. * - * You can configure your jobs to send log information to CloudWatch . + * You can configure your jobs to send log information to CloudWatch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-cloudwatchloggingconfiguration) */ @@ -3076,7 +3350,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * The array of security group Ids for customer VPC connectivity. * @@ -3191,7 +3466,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.S3MonitoringConfigurationProperty, - ) : CdkObject(cdkObject), S3MonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + S3MonitoringConfigurationProperty { /** * The KMS key ARN to encrypt the logs published to the given Amazon S3 destination. * @@ -3238,6 +3514,7 @@ public open class CfnApplication( * .memory("memory") * // the properties below are optional * .disk("disk") + * .diskType("diskType") * .build(); * ``` * @@ -3262,6 +3539,15 @@ public open class CfnApplication( */ public fun disk(): String? = unwrap(this).getDisk() + /** + * Per worker DiskType resource. + * + * Shuffle optimized and Standard are only supported types and specifying diskType is optional + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disktype) + */ + public fun diskType(): String? = unwrap(this).getDiskType() + /** * Per worker memory resource. * @@ -3288,6 +3574,12 @@ public open class CfnApplication( */ public fun disk(disk: String) + /** + * @param diskType Per worker DiskType resource. + * Shuffle optimized and Standard are only supported types and specifying diskType is optional + */ + public fun diskType(diskType: String) + /** * @param memory Per worker memory resource. * GB is the only supported unit and specifying GB is optional. @@ -3317,6 +3609,14 @@ public open class CfnApplication( cdkBuilder.disk(disk) } + /** + * @param diskType Per worker DiskType resource. + * Shuffle optimized and Standard are only supported types and specifying diskType is optional + */ + override fun diskType(diskType: String) { + cdkBuilder.diskType(diskType) + } + /** * @param memory Per worker memory resource. * GB is the only supported unit and specifying GB is optional. @@ -3332,7 +3632,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.WorkerConfigurationProperty, - ) : CdkObject(cdkObject), WorkerConfigurationProperty { + ) : CdkObject(cdkObject), + WorkerConfigurationProperty { /** * Per worker CPU resource. * @@ -3351,6 +3652,15 @@ public open class CfnApplication( */ override fun disk(): String? = unwrap(this).getDisk() + /** + * Per worker DiskType resource. + * + * Shuffle optimized and Standard are only supported types and specifying diskType is optional + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disktype) + */ + override fun diskType(): String? = unwrap(this).getDiskType() + /** * Per worker memory resource. * @@ -3466,7 +3776,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplication.WorkerTypeSpecificationInputProperty, - ) : CdkObject(cdkObject), WorkerTypeSpecificationInputProperty { + ) : CdkObject(cdkObject), + WorkerTypeSpecificationInputProperty { /** * The image configuration for a worker type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplicationProps.kt index 39ce7fb93d..0501edc165 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/emrserverless/CfnApplicationProps.kt @@ -47,10 +47,15 @@ import kotlin.jvm.JvmName * .memory("memory") * // the properties below are optional * .disk("disk") + * .diskType("diskType") * .build()) * .workerCount(123) * .build()) * .build())) + * .interactiveConfiguration(InteractiveConfigurationProperty.builder() + * .livyEndpointEnabled(false) + * .studioEnabled(false) + * .build()) * .maximumCapacity(MaximumAllowedResourcesProperty.builder() * .cpu("cpu") * .memory("memory") @@ -141,6 +146,13 @@ public interface CfnApplicationProps { */ public fun initialCapacity(): Any? = unwrap(this).getInitialCapacity() + /** + * The interactive configuration object that enables the interactive use cases for an application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + */ + public fun interactiveConfiguration(): Any? = unwrap(this).getInteractiveConfiguration() + /** * The maximum capacity of the application. * @@ -306,6 +318,28 @@ public interface CfnApplicationProps { */ public fun initialCapacity(vararg initialCapacity: Any) + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + public fun interactiveConfiguration(interactiveConfiguration: IResolvable) + + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + public + fun interactiveConfiguration(interactiveConfiguration: CfnApplication.InteractiveConfigurationProperty) + + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e3de5df1f3fca8debaa4faee6ea31cc226b7b64a9a5a083c67fcdf8fc460e256") + public + fun interactiveConfiguration(interactiveConfiguration: CfnApplication.InteractiveConfigurationProperty.Builder.() -> Unit) + /** * @param maximumCapacity The maximum capacity of the application. * This is cumulative across all workers at any given point in time during the lifespan of the @@ -568,6 +602,34 @@ public interface CfnApplicationProps { override fun initialCapacity(vararg initialCapacity: Any): Unit = initialCapacity(initialCapacity.toList()) + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + override fun interactiveConfiguration(interactiveConfiguration: IResolvable) { + cdkBuilder.interactiveConfiguration(interactiveConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + override + fun interactiveConfiguration(interactiveConfiguration: CfnApplication.InteractiveConfigurationProperty) { + cdkBuilder.interactiveConfiguration(interactiveConfiguration.let(CfnApplication.InteractiveConfigurationProperty.Companion::unwrap)) + } + + /** + * @param interactiveConfiguration The interactive configuration object that enables the + * interactive use cases for an application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e3de5df1f3fca8debaa4faee6ea31cc226b7b64a9a5a083c67fcdf8fc460e256") + override + fun interactiveConfiguration(interactiveConfiguration: CfnApplication.InteractiveConfigurationProperty.Builder.() -> Unit): + Unit = + interactiveConfiguration(CfnApplication.InteractiveConfigurationProperty(interactiveConfiguration)) + /** * @param maximumCapacity The maximum capacity of the application. * This is cumulative across all workers at any given point in time during the lifespan of the @@ -756,7 +818,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.emrserverless.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The CPU architecture of an application. * @@ -793,6 +856,14 @@ public interface CfnApplicationProps { */ override fun initialCapacity(): Any? = unwrap(this).getInitialCapacity() + /** + * The interactive configuration object that enables the interactive use cases for an + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-interactiveconfiguration) + */ + override fun interactiveConfiguration(): Any? = unwrap(this).getInteractiveConfiguration() + /** * The maximum capacity of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflow.kt index 8e90e7ca39..6332c23308 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflow.kt @@ -47,6 +47,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(IdMappingRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModel("recordMatchingModel") + * // the properties below are optional + * .ruleDefinitionType("ruleDefinitionType") + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build()) * .inputSourceConfig(List.of(IdMappingWorkflowInputSourceProperty.builder() * .inputSourceArn("inputSourceArn") @@ -74,7 +84,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdMappingWorkflow( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -125,26 +137,26 @@ public open class CfnIdMappingWorkflow( } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. */ public open fun idMappingTechniques(): Any = unwrap(this).getIdMappingTechniques() /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. */ public open fun idMappingTechniques(`value`: IResolvable) { unwrap(this).setIdMappingTechniques(`value`.let(IResolvable.Companion::unwrap)) } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. */ public open fun idMappingTechniques(`value`: IdMappingTechniquesProperty) { unwrap(this).setIdMappingTechniques(`value`.let(IdMappingTechniquesProperty.Companion::unwrap)) } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0dcdc7b99155a327aacc2b9686f29ba8ddb2d40d91243b25a35673b625517f95") @@ -268,29 +280,29 @@ public open class CfnIdMappingWorkflow( public fun description(description: String) /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ public fun idMappingTechniques(idMappingTechniques: IResolvable) /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ public fun idMappingTechniques(idMappingTechniques: IdMappingTechniquesProperty) /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("adf133ccc4d3eb2dd97e1dc0865da29cc2840795e113f053f00da756e475a701") @@ -412,33 +424,33 @@ public open class CfnIdMappingWorkflow( } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ override fun idMappingTechniques(idMappingTechniques: IResolvable) { cdkBuilder.idMappingTechniques(idMappingTechniques.let(IResolvable.Companion::unwrap)) } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ override fun idMappingTechniques(idMappingTechniques: IdMappingTechniquesProperty) { cdkBuilder.idMappingTechniques(idMappingTechniques.let(IdMappingTechniquesProperty.Companion::unwrap)) } /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("adf133ccc4d3eb2dd97e1dc0865da29cc2840795e113f053f00da756e475a701") @@ -583,7 +595,275 @@ public open class CfnIdMappingWorkflow( } /** - * An object which defines the ID mapping techniques and provider configurations. + * An object that defines the list of matching rules to run in an ID mapping workflow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.entityresolution.*; + * IdMappingRuleBasedPropertiesProperty idMappingRuleBasedPropertiesProperty = + * IdMappingRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModel("recordMatchingModel") + * // the properties below are optional + * .ruleDefinitionType("ruleDefinitionType") + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html) + */ + public interface IdMappingRuleBasedPropertiesProperty { + /** + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value of + * the `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute + * type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-attributematchingmodel) + */ + public fun attributeMatchingModel(): String + + /** + * The type of matching record that is allowed to be used in an ID mapping workflow. + * + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source can be + * matched to the same record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , multiple records in the source can be + * matched to one record in the target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-recordmatchingmodel) + */ + public fun recordMatchingModel(): String + + /** + * The set of rules you can use in an ID mapping workflow. + * + * The limitations specified for the source or target to define the match rules must be + * compatible. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-ruledefinitiontype) + */ + public fun ruleDefinitionType(): String? = unwrap(this).getRuleDefinitionType() + + /** + * The rules that can be used for ID mapping. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-rules) + */ + public fun rules(): Any? = unwrap(this).getRules() + + /** + * A builder for [IdMappingRuleBasedPropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of the `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` + * attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + */ + public fun attributeMatchingModel(attributeMatchingModel: String) + + /** + * @param recordMatchingModel The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source can be + * matched to the same record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , multiple records in the source can be + * matched to one record in the target. + */ + public fun recordMatchingModel(recordMatchingModel: String) + + /** + * @param ruleDefinitionType The set of rules you can use in an ID mapping workflow. + * The limitations specified for the source or target to define the match rules must be + * compatible. + */ + public fun ruleDefinitionType(ruleDefinitionType: String) + + /** + * @param rules The rules that can be used for ID mapping. + */ + public fun rules(rules: IResolvable) + + /** + * @param rules The rules that can be used for ID mapping. + */ + public fun rules(rules: List) + + /** + * @param rules The rules that can be used for ID mapping. + */ + public fun rules(vararg rules: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty.Builder + = + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty.builder() + + /** + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of the `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` + * attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + */ + override fun attributeMatchingModel(attributeMatchingModel: String) { + cdkBuilder.attributeMatchingModel(attributeMatchingModel) + } + + /** + * @param recordMatchingModel The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source can be + * matched to the same record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , multiple records in the source can be + * matched to one record in the target. + */ + override fun recordMatchingModel(recordMatchingModel: String) { + cdkBuilder.recordMatchingModel(recordMatchingModel) + } + + /** + * @param ruleDefinitionType The set of rules you can use in an ID mapping workflow. + * The limitations specified for the source or target to define the match rules must be + * compatible. + */ + override fun ruleDefinitionType(ruleDefinitionType: String) { + cdkBuilder.ruleDefinitionType(ruleDefinitionType) + } + + /** + * @param rules The rules that can be used for ID mapping. + */ + override fun rules(rules: IResolvable) { + cdkBuilder.rules(rules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param rules The rules that can be used for ID mapping. + */ + override fun rules(rules: List) { + cdkBuilder.rules(rules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param rules The rules that can be used for ID mapping. + */ + override fun rules(vararg rules: Any): Unit = rules(rules.toList()) + + public fun build(): + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty, + ) : CdkObject(cdkObject), + IdMappingRuleBasedPropertiesProperty { + /** + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of the `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` + * attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-attributematchingmodel) + */ + override fun attributeMatchingModel(): String = unwrap(this).getAttributeMatchingModel() + + /** + * The type of matching record that is allowed to be used in an ID mapping workflow. + * + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source can be + * matched to the same record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , multiple records in the source can be + * matched to one record in the target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-recordmatchingmodel) + */ + override fun recordMatchingModel(): String = unwrap(this).getRecordMatchingModel() + + /** + * The set of rules you can use in an ID mapping workflow. + * + * The limitations specified for the source or target to define the match rules must be + * compatible. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-ruledefinitiontype) + */ + override fun ruleDefinitionType(): String? = unwrap(this).getRuleDefinitionType() + + /** + * The rules that can be used for ID mapping. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingrulebasedproperties.html#cfn-entityresolution-idmappingworkflow-idmappingrulebasedproperties-rules) + */ + override fun rules(): Any? = unwrap(this).getRules() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdMappingRuleBasedPropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty): + IdMappingRuleBasedPropertiesProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdMappingRuleBasedPropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdMappingRuleBasedPropertiesProperty): + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingRuleBasedPropertiesProperty + } + } + + /** + * An object which defines the ID mapping technique and any additional configurations. * * Example: * @@ -602,6 +882,16 @@ public open class CfnIdMappingWorkflow( * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(IdMappingRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModel("recordMatchingModel") + * // the properties below are optional + * .ruleDefinitionType("ruleDefinitionType") + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build(); * ``` * @@ -622,6 +912,13 @@ public open class CfnIdMappingWorkflow( */ public fun providerProperties(): Any? = unwrap(this).getProviderProperties() + /** + * An object which defines any additional configurations required by rule-based matching. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingtechniques.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques-rulebasedproperties) + */ + public fun ruleBasedProperties(): Any? = unwrap(this).getRuleBasedProperties() + /** * A builder for [IdMappingTechniquesProperty] */ @@ -652,6 +949,27 @@ public open class CfnIdMappingWorkflow( @JvmName("99e7e4a7a6322b76ecdd8c18747c700ce11a2af0f1fbf4624e4560278e5486a8") public fun providerProperties(providerProperties: ProviderPropertiesProperty.Builder.() -> Unit) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + public fun ruleBasedProperties(ruleBasedProperties: IResolvable) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + public fun ruleBasedProperties(ruleBasedProperties: IdMappingRuleBasedPropertiesProperty) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("820d6249557e752e1e01f9dd2767f40fe0c2d5dcda220ad3833b74a6b9cb182f") + public + fun ruleBasedProperties(ruleBasedProperties: IdMappingRuleBasedPropertiesProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -693,6 +1011,32 @@ public open class CfnIdMappingWorkflow( fun providerProperties(providerProperties: ProviderPropertiesProperty.Builder.() -> Unit): Unit = providerProperties(ProviderPropertiesProperty(providerProperties)) + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + override fun ruleBasedProperties(ruleBasedProperties: IResolvable) { + cdkBuilder.ruleBasedProperties(ruleBasedProperties.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + override fun ruleBasedProperties(ruleBasedProperties: IdMappingRuleBasedPropertiesProperty) { + cdkBuilder.ruleBasedProperties(ruleBasedProperties.let(IdMappingRuleBasedPropertiesProperty.Companion::unwrap)) + } + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("820d6249557e752e1e01f9dd2767f40fe0c2d5dcda220ad3833b74a6b9cb182f") + override + fun ruleBasedProperties(ruleBasedProperties: IdMappingRuleBasedPropertiesProperty.Builder.() -> Unit): + Unit = ruleBasedProperties(IdMappingRuleBasedPropertiesProperty(ruleBasedProperties)) + public fun build(): software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingTechniquesProperty = cdkBuilder.build() @@ -700,7 +1044,8 @@ public open class CfnIdMappingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingTechniquesProperty, - ) : CdkObject(cdkObject), IdMappingTechniquesProperty { + ) : CdkObject(cdkObject), + IdMappingTechniquesProperty { /** * The type of ID mapping. * @@ -714,6 +1059,13 @@ public open class CfnIdMappingWorkflow( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingtechniques.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques-providerproperties) */ override fun providerProperties(): Any? = unwrap(this).getProviderProperties() + + /** + * An object which defines any additional configurations required by rule-based matching. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingtechniques.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques-rulebasedproperties) + */ + override fun ruleBasedProperties(): Any? = unwrap(this).getRuleBasedProperties() } public companion object { @@ -756,7 +1108,8 @@ public open class CfnIdMappingWorkflow( */ public interface IdMappingWorkflowInputSourceProperty { /** - * An AWS Glue table ARN for the input source table. + * An AWS Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input source + * table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingworkflowinputsource.html#cfn-entityresolution-idmappingworkflow-idmappingworkflowinputsource-inputsourcearn) */ @@ -775,7 +1128,7 @@ public open class CfnIdMappingWorkflow( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingworkflowinputsource.html#cfn-entityresolution-idmappingworkflow-idmappingworkflowinputsource-type) */ @@ -787,7 +1140,8 @@ public open class CfnIdMappingWorkflow( @CdkDslMarker public interface Builder { /** - * @param inputSourceArn An AWS Glue table ARN for the input source table. + * @param inputSourceArn An AWS Glue table Amazon Resource Name (ARN) or a matching workflow + * ARN for the input source table. */ public fun inputSourceArn(inputSourceArn: String) @@ -802,8 +1156,7 @@ public open class CfnIdMappingWorkflow( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve - * to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. */ public fun type(type: String) } @@ -815,7 +1168,8 @@ public open class CfnIdMappingWorkflow( software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingWorkflowInputSourceProperty.builder() /** - * @param inputSourceArn An AWS Glue table ARN for the input source table. + * @param inputSourceArn An AWS Glue table Amazon Resource Name (ARN) or a matching workflow + * ARN for the input source table. */ override fun inputSourceArn(inputSourceArn: String) { cdkBuilder.inputSourceArn(inputSourceArn) @@ -834,8 +1188,7 @@ public open class CfnIdMappingWorkflow( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve - * to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. */ override fun type(type: String) { cdkBuilder.type(type) @@ -848,9 +1201,11 @@ public open class CfnIdMappingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingWorkflowInputSourceProperty, - ) : CdkObject(cdkObject), IdMappingWorkflowInputSourceProperty { + ) : CdkObject(cdkObject), + IdMappingWorkflowInputSourceProperty { /** - * An AWS Glue table ARN for the input source table. + * An AWS Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input + * source table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingworkflowinputsource.html#cfn-entityresolution-idmappingworkflow-idmappingworkflowinputsource-inputsourcearn) */ @@ -870,8 +1225,7 @@ public open class CfnIdMappingWorkflow( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve - * to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-idmappingworkflowinputsource.html#cfn-entityresolution-idmappingworkflow-idmappingworkflowinputsource-type) */ @@ -981,7 +1335,8 @@ public open class CfnIdMappingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IdMappingWorkflowOutputSourceProperty, - ) : CdkObject(cdkObject), IdMappingWorkflowOutputSourceProperty { + ) : CdkObject(cdkObject), + IdMappingWorkflowOutputSourceProperty { /** * Customer AWS KMS ARN for encryption at rest. * @@ -1080,7 +1435,8 @@ public open class CfnIdMappingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.IntermediateSourceConfigurationProperty, - ) : CdkObject(cdkObject), IntermediateSourceConfigurationProperty { + ) : CdkObject(cdkObject), + IntermediateSourceConfigurationProperty { /** * The Amazon S3 location (bucket and prefix). * @@ -1273,7 +1629,8 @@ public open class CfnIdMappingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.ProviderPropertiesProperty, - ) : CdkObject(cdkObject), ProviderPropertiesProperty { + ) : CdkObject(cdkObject), + ProviderPropertiesProperty { /** * The Amazon S3 location that temporarily stores your data while it processes. * @@ -1316,4 +1673,138 @@ public open class CfnIdMappingWorkflow( software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.ProviderPropertiesProperty } } + + /** + * An object containing `RuleName` , and `MatchingKeys` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.entityresolution.*; + * RuleProperty ruleProperty = RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-rule.html) + */ + public interface RuleProperty { + /** + * A list of `MatchingKeys` . + * + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered + * to match according to this rule if all of the `MatchingKeys` match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-rule.html#cfn-entityresolution-idmappingworkflow-rule-matchingkeys) + */ + public fun matchingKeys(): List + + /** + * A name for the matching rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-rule.html#cfn-entityresolution-idmappingworkflow-rule-rulename) + */ + public fun ruleName(): String + + /** + * A builder for [RuleProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + public fun matchingKeys(matchingKeys: List) + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + public fun matchingKeys(vararg matchingKeys: String) + + /** + * @param ruleName A name for the matching rule. + */ + public fun ruleName(ruleName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty.Builder + = + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty.builder() + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + override fun matchingKeys(matchingKeys: List) { + cdkBuilder.matchingKeys(matchingKeys) + } + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + override fun matchingKeys(vararg matchingKeys: String): Unit = + matchingKeys(matchingKeys.toList()) + + /** + * @param ruleName A name for the matching rule. + */ + override fun ruleName(ruleName: String) { + cdkBuilder.ruleName(ruleName) + } + + public fun build(): + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty, + ) : CdkObject(cdkObject), + RuleProperty { + /** + * A list of `MatchingKeys` . + * + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-rule.html#cfn-entityresolution-idmappingworkflow-rule-matchingkeys) + */ + override fun matchingKeys(): List = unwrap(this).getMatchingKeys() + + /** + * A name for the matching rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idmappingworkflow-rule.html#cfn-entityresolution-idmappingworkflow-rule-rulename) + */ + override fun ruleName(): String = unwrap(this).getRuleName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty): + RuleProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleProperty): + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflow.RuleProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflowProps.kt index cd09103e0e..6d72df0fed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdMappingWorkflowProps.kt @@ -34,6 +34,16 @@ import kotlin.jvm.JvmName * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(IdMappingRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModel("recordMatchingModel") + * // the properties below are optional + * .ruleDefinitionType("ruleDefinitionType") + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build()) * .inputSourceConfig(List.of(IdMappingWorkflowInputSourceProperty.builder() * .inputSourceArn("inputSourceArn") @@ -68,7 +78,7 @@ public interface CfnIdMappingWorkflowProps { public fun description(): String? = unwrap(this).getDescription() /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) */ @@ -126,21 +136,21 @@ public interface CfnIdMappingWorkflowProps { public fun description(description: String) /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ public fun idMappingTechniques(idMappingTechniques: IResolvable) /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ public fun idMappingTechniques(idMappingTechniques: CfnIdMappingWorkflow.IdMappingTechniquesProperty) /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9593406f44ebd4be37ba4b85dee9531e9059ac32c4256bb3cfad2cba55d5fb48") @@ -220,16 +230,16 @@ public interface CfnIdMappingWorkflowProps { } /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ override fun idMappingTechniques(idMappingTechniques: IResolvable) { cdkBuilder.idMappingTechniques(idMappingTechniques.let(IResolvable.Companion::unwrap)) } /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ override fun idMappingTechniques(idMappingTechniques: CfnIdMappingWorkflow.IdMappingTechniquesProperty) { @@ -237,8 +247,8 @@ public interface CfnIdMappingWorkflowProps { } /** - * @param idMappingTechniques An object which defines the `idMappingType` and the - * `providerProperties` . + * @param idMappingTechniques An object which defines the ID mapping technique and any + * additional configurations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9593406f44ebd4be37ba4b85dee9531e9059ac32c4256bb3cfad2cba55d5fb48") @@ -328,7 +338,8 @@ public interface CfnIdMappingWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdMappingWorkflowProps, - ) : CdkObject(cdkObject), CfnIdMappingWorkflowProps { + ) : CdkObject(cdkObject), + CfnIdMappingWorkflowProps { /** * A description of the workflow. * @@ -337,7 +348,7 @@ public interface CfnIdMappingWorkflowProps { override fun description(): String? = unwrap(this).getDescription() /** - * An object which defines the `idMappingType` and the `providerProperties` . + * An object which defines the ID mapping technique and any additional configurations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idmappingworkflow.html#cfn-entityresolution-idmappingworkflow-idmappingtechniques) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespace.kt index 4403cc0c37..fb4b4351e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespace.kt @@ -48,6 +48,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(NamespaceRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModels(List.of("recordMatchingModels")) + * .ruleDefinitionTypes(List.of("ruleDefinitionTypes")) + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build())) * .inputSourceConfig(List.of(IdNamespaceInputSourceProperty.builder() * .inputSourceArn("inputSourceArn") @@ -66,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdNamespace( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -347,7 +358,7 @@ public open class CfnIdNamespace( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idnamespace.html#cfn-entityresolution-idnamespace-type) * @param type The type of ID namespace. There are two types: `SOURCE` and `TARGET` . @@ -486,7 +497,7 @@ public open class CfnIdNamespace( * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idnamespace.html#cfn-entityresolution-idnamespace-type) * @param type The type of ID namespace. There are two types: `SOURCE` and `TARGET` . @@ -521,7 +532,7 @@ public open class CfnIdNamespace( } /** - * An object containing `IdMappingType` and `ProviderProperties` . + * An object containing `IdMappingType` , `ProviderProperties` , and `RuleBasedProperties` . * * Example: * @@ -539,6 +550,15 @@ public open class CfnIdNamespace( * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(NamespaceRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModels(List.of("recordMatchingModels")) + * .ruleDefinitionTypes(List.of("ruleDefinitionTypes")) + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build(); * ``` * @@ -559,6 +579,13 @@ public open class CfnIdNamespace( */ public fun providerProperties(): Any? = unwrap(this).getProviderProperties() + /** + * An object which defines any additional configurations required by rule-based matching. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties.html#cfn-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties-rulebasedproperties) + */ + public fun ruleBasedProperties(): Any? = unwrap(this).getRuleBasedProperties() + /** * A builder for [IdNamespaceIdMappingWorkflowPropertiesProperty] */ @@ -589,6 +616,27 @@ public open class CfnIdNamespace( @JvmName("78ad4e8085bdee3d62dad29fd5bb09ed9a22f0461305c03a444452386fd185e0") public fun providerProperties(providerProperties: NamespaceProviderPropertiesProperty.Builder.() -> Unit) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + public fun ruleBasedProperties(ruleBasedProperties: IResolvable) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + public fun ruleBasedProperties(ruleBasedProperties: NamespaceRuleBasedPropertiesProperty) + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a700a811b7510231362a5c6d97b3a9e9ee067505f69870f37003feeb7864965c") + public + fun ruleBasedProperties(ruleBasedProperties: NamespaceRuleBasedPropertiesProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -630,6 +678,32 @@ public open class CfnIdNamespace( fun providerProperties(providerProperties: NamespaceProviderPropertiesProperty.Builder.() -> Unit): Unit = providerProperties(NamespaceProviderPropertiesProperty(providerProperties)) + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + override fun ruleBasedProperties(ruleBasedProperties: IResolvable) { + cdkBuilder.ruleBasedProperties(ruleBasedProperties.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + override fun ruleBasedProperties(ruleBasedProperties: NamespaceRuleBasedPropertiesProperty) { + cdkBuilder.ruleBasedProperties(ruleBasedProperties.let(NamespaceRuleBasedPropertiesProperty.Companion::unwrap)) + } + + /** + * @param ruleBasedProperties An object which defines any additional configurations required + * by rule-based matching. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a700a811b7510231362a5c6d97b3a9e9ee067505f69870f37003feeb7864965c") + override + fun ruleBasedProperties(ruleBasedProperties: NamespaceRuleBasedPropertiesProperty.Builder.() -> Unit): + Unit = ruleBasedProperties(NamespaceRuleBasedPropertiesProperty(ruleBasedProperties)) + public fun build(): software.amazon.awscdk.services.entityresolution.CfnIdNamespace.IdNamespaceIdMappingWorkflowPropertiesProperty = cdkBuilder.build() @@ -637,7 +711,8 @@ public open class CfnIdNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.IdNamespaceIdMappingWorkflowPropertiesProperty, - ) : CdkObject(cdkObject), IdNamespaceIdMappingWorkflowPropertiesProperty { + ) : CdkObject(cdkObject), + IdNamespaceIdMappingWorkflowPropertiesProperty { /** * The type of ID mapping. * @@ -651,6 +726,13 @@ public open class CfnIdNamespace( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties.html#cfn-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties-providerproperties) */ override fun providerProperties(): Any? = unwrap(this).getProviderProperties() + + /** + * An object which defines any additional configurations required by rule-based matching. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties.html#cfn-entityresolution-idnamespace-idnamespaceidmappingworkflowproperties-rulebasedproperties) + */ + override fun ruleBasedProperties(): Any? = unwrap(this).getRuleBasedProperties() } public companion object { @@ -693,7 +775,8 @@ public open class CfnIdNamespace( */ public interface IdNamespaceInputSourceProperty { /** - * An AWS Glue table ARN for the input source table. + * An AWS Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input source + * table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceinputsource.html#cfn-entityresolution-idnamespace-idnamespaceinputsource-inputsourcearn) */ @@ -712,7 +795,8 @@ public open class CfnIdNamespace( @CdkDslMarker public interface Builder { /** - * @param inputSourceArn An AWS Glue table ARN for the input source table. + * @param inputSourceArn An AWS Glue table Amazon Resource Name (ARN) or a matching workflow + * ARN for the input source table. */ public fun inputSourceArn(inputSourceArn: String) @@ -729,7 +813,8 @@ public open class CfnIdNamespace( software.amazon.awscdk.services.entityresolution.CfnIdNamespace.IdNamespaceInputSourceProperty.builder() /** - * @param inputSourceArn An AWS Glue table ARN for the input source table. + * @param inputSourceArn An AWS Glue table Amazon Resource Name (ARN) or a matching workflow + * ARN for the input source table. */ override fun inputSourceArn(inputSourceArn: String) { cdkBuilder.inputSourceArn(inputSourceArn) @@ -749,9 +834,11 @@ public open class CfnIdNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.IdNamespaceInputSourceProperty, - ) : CdkObject(cdkObject), IdNamespaceInputSourceProperty { + ) : CdkObject(cdkObject), + IdNamespaceInputSourceProperty { /** - * An AWS Glue table ARN for the input source table. + * An AWS Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input + * source table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-idnamespaceinputsource.html#cfn-entityresolution-idnamespace-idnamespaceinputsource-inputsourcearn) */ @@ -877,7 +964,8 @@ public open class CfnIdNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceProviderPropertiesProperty, - ) : CdkObject(cdkObject), NamespaceProviderPropertiesProperty { + ) : CdkObject(cdkObject), + NamespaceProviderPropertiesProperty { /** * An object which defines any additional configurations required by the provider service. * @@ -911,4 +999,441 @@ public open class CfnIdNamespace( software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceProviderPropertiesProperty } } + + /** + * The rule-based properties of an ID namespace. + * + * These properties define how the ID namespace can be used in an ID mapping workflow. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.entityresolution.*; + * NamespaceRuleBasedPropertiesProperty namespaceRuleBasedPropertiesProperty = + * NamespaceRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModels(List.of("recordMatchingModels")) + * .ruleDefinitionTypes(List.of("ruleDefinitionTypes")) + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html) + */ + public interface NamespaceRuleBasedPropertiesProperty { + /** + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value of + * `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-attributematchingmodel) + */ + public fun attributeMatchingModel(): String? = unwrap(this).getAttributeMatchingModel() + + /** + * The type of matching record that is allowed to be used in an ID mapping workflow. + * + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is matched + * to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-recordmatchingmodels) + */ + public fun recordMatchingModels(): List = unwrap(this).getRecordMatchingModels() ?: + emptyList() + + /** + * The sets of rules you can use in an ID mapping workflow. + * + * The limitations specified for the source and target must be compatible. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-ruledefinitiontypes) + */ + public fun ruleDefinitionTypes(): List = unwrap(this).getRuleDefinitionTypes() ?: + emptyList() + + /** + * The rules for the ID namespace. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-rules) + */ + public fun rules(): Any? = unwrap(this).getRules() + + /** + * A builder for [NamespaceRuleBasedPropertiesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute + * type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + */ + public fun attributeMatchingModel(attributeMatchingModel: String) + + /** + * @param recordMatchingModels The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is + * matched to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + */ + public fun recordMatchingModels(recordMatchingModels: List) + + /** + * @param recordMatchingModels The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is + * matched to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + */ + public fun recordMatchingModels(vararg recordMatchingModels: String) + + /** + * @param ruleDefinitionTypes The sets of rules you can use in an ID mapping workflow. + * The limitations specified for the source and target must be compatible. + */ + public fun ruleDefinitionTypes(ruleDefinitionTypes: List) + + /** + * @param ruleDefinitionTypes The sets of rules you can use in an ID mapping workflow. + * The limitations specified for the source and target must be compatible. + */ + public fun ruleDefinitionTypes(vararg ruleDefinitionTypes: String) + + /** + * @param rules The rules for the ID namespace. + */ + public fun rules(rules: IResolvable) + + /** + * @param rules The rules for the ID namespace. + */ + public fun rules(rules: List) + + /** + * @param rules The rules for the ID namespace. + */ + public fun rules(vararg rules: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty.Builder + = + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty.builder() + + /** + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute + * type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + */ + override fun attributeMatchingModel(attributeMatchingModel: String) { + cdkBuilder.attributeMatchingModel(attributeMatchingModel) + } + + /** + * @param recordMatchingModels The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is + * matched to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + */ + override fun recordMatchingModels(recordMatchingModels: List) { + cdkBuilder.recordMatchingModels(recordMatchingModels) + } + + /** + * @param recordMatchingModels The type of matching record that is allowed to be used in an ID + * mapping workflow. + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is + * matched to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + */ + override fun recordMatchingModels(vararg recordMatchingModels: String): Unit = + recordMatchingModels(recordMatchingModels.toList()) + + /** + * @param ruleDefinitionTypes The sets of rules you can use in an ID mapping workflow. + * The limitations specified for the source and target must be compatible. + */ + override fun ruleDefinitionTypes(ruleDefinitionTypes: List) { + cdkBuilder.ruleDefinitionTypes(ruleDefinitionTypes) + } + + /** + * @param ruleDefinitionTypes The sets of rules you can use in an ID mapping workflow. + * The limitations specified for the source and target must be compatible. + */ + override fun ruleDefinitionTypes(vararg ruleDefinitionTypes: String): Unit = + ruleDefinitionTypes(ruleDefinitionTypes.toList()) + + /** + * @param rules The rules for the ID namespace. + */ + override fun rules(rules: IResolvable) { + cdkBuilder.rules(rules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param rules The rules for the ID namespace. + */ + override fun rules(rules: List) { + cdkBuilder.rules(rules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param rules The rules for the ID namespace. + */ + override fun rules(vararg rules: Any): Unit = rules(rules.toList()) + + public fun build(): + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty, + ) : CdkObject(cdkObject), + NamespaceRuleBasedPropertiesProperty { + /** + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A matches the value + * of `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute + * type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-attributematchingmodel) + */ + override fun attributeMatchingModel(): String? = unwrap(this).getAttributeMatchingModel() + + /** + * The type of matching record that is allowed to be used in an ID mapping workflow. + * + * If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is + * matched to one record in the target. + * + * If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are + * matched to one record in the target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-recordmatchingmodels) + */ + override fun recordMatchingModels(): List = unwrap(this).getRecordMatchingModels() ?: + emptyList() + + /** + * The sets of rules you can use in an ID mapping workflow. + * + * The limitations specified for the source and target must be compatible. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-ruledefinitiontypes) + */ + override fun ruleDefinitionTypes(): List = unwrap(this).getRuleDefinitionTypes() ?: + emptyList() + + /** + * The rules for the ID namespace. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-rules) + */ + override fun rules(): Any? = unwrap(this).getRules() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + NamespaceRuleBasedPropertiesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty): + NamespaceRuleBasedPropertiesProperty = CdkObjectWrappers.wrap(cdkObject) as? + NamespaceRuleBasedPropertiesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NamespaceRuleBasedPropertiesProperty): + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty + } + } + + /** + * An object containing `RuleName` , and `MatchingKeys` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.entityresolution.*; + * RuleProperty ruleProperty = RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-rule.html) + */ + public interface RuleProperty { + /** + * A list of `MatchingKeys` . + * + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered + * to match according to this rule if all of the `MatchingKeys` match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-rule.html#cfn-entityresolution-idnamespace-rule-matchingkeys) + */ + public fun matchingKeys(): List + + /** + * A name for the matching rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-rule.html#cfn-entityresolution-idnamespace-rule-rulename) + */ + public fun ruleName(): String + + /** + * A builder for [RuleProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + public fun matchingKeys(matchingKeys: List) + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + public fun matchingKeys(vararg matchingKeys: String) + + /** + * @param ruleName A name for the matching rule. + */ + public fun ruleName(ruleName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty.Builder = + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty.builder() + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + override fun matchingKeys(matchingKeys: List) { + cdkBuilder.matchingKeys(matchingKeys) + } + + /** + * @param matchingKeys A list of `MatchingKeys` . + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + */ + override fun matchingKeys(vararg matchingKeys: String): Unit = + matchingKeys(matchingKeys.toList()) + + /** + * @param ruleName A name for the matching rule. + */ + override fun ruleName(ruleName: String) { + cdkBuilder.ruleName(ruleName) + } + + public fun build(): + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty, + ) : CdkObject(cdkObject), + RuleProperty { + /** + * A list of `MatchingKeys` . + * + * The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are + * considered to match according to this rule if all of the `MatchingKeys` match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-rule.html#cfn-entityresolution-idnamespace-rule-matchingkeys) + */ + override fun matchingKeys(): List = unwrap(this).getMatchingKeys() + + /** + * A name for the matching rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-rule.html#cfn-entityresolution-idnamespace-rule-rulename) + */ + override fun ruleName(): String = unwrap(this).getRuleName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty): + RuleProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleProperty): + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.entityresolution.CfnIdNamespace.RuleProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespaceProps.kt index c44a0650b6..76c9473d4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnIdNamespaceProps.kt @@ -35,6 +35,15 @@ import kotlin.collections.List * .providerConfiguration(Map.of( * "providerConfigurationKey", "providerConfiguration")) * .build()) + * .ruleBasedProperties(NamespaceRuleBasedPropertiesProperty.builder() + * .attributeMatchingModel("attributeMatchingModel") + * .recordMatchingModels(List.of("recordMatchingModels")) + * .ruleDefinitionTypes(List.of("ruleDefinitionTypes")) + * .rules(List.of(RuleProperty.builder() + * .matchingKeys(List.of("matchingKeys")) + * .ruleName("ruleName") + * .build())) + * .build()) * .build())) * .inputSourceConfig(List.of(IdNamespaceInputSourceProperty.builder() * .inputSourceArn("inputSourceArn") @@ -104,7 +113,7 @@ public interface CfnIdNamespaceProps { * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idnamespace.html#cfn-entityresolution-idnamespace-type) */ @@ -183,7 +192,7 @@ public interface CfnIdNamespaceProps { * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. */ public fun type(type: String) } @@ -279,7 +288,7 @@ public interface CfnIdNamespaceProps { * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. */ override fun type(type: String) { cdkBuilder.type(type) @@ -291,7 +300,8 @@ public interface CfnIdNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnIdNamespaceProps, - ) : CdkObject(cdkObject), CfnIdNamespaceProps { + ) : CdkObject(cdkObject), + CfnIdNamespaceProps { /** * The description of the ID namespace. * @@ -344,7 +354,7 @@ public interface CfnIdNamespaceProps { * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID * mapping workflow. * - * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to. + * The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-idnamespace.html#cfn-entityresolution-idnamespace-type) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflow.kt index f23cff551c..6662ce0d41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflow.kt @@ -71,12 +71,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .matchingKeys(List.of("matchingKeys")) * .ruleName("ruleName") * .build())) + * // the properties below are optional + * .matchPurpose("matchPurpose") * .build()) * .build()) * .roleArn("roleArn") * .workflowName("workflowName") * // the properties below are optional * .description("description") + * .incrementalRunConfig(IncrementalRunConfigProperty.builder() + * .incrementalRunType("incrementalRunType") + * .build()) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -88,7 +93,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMatchingWorkflow( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -138,6 +145,33 @@ public open class CfnMatchingWorkflow( unwrap(this).setDescription(`value`) } + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + */ + public open fun incrementalRunConfig(): Any? = unwrap(this).getIncrementalRunConfig() + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + */ + public open fun incrementalRunConfig(`value`: IResolvable) { + unwrap(this).setIncrementalRunConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + */ + public open fun incrementalRunConfig(`value`: IncrementalRunConfigProperty) { + unwrap(this).setIncrementalRunConfig(`value`.let(IncrementalRunConfigProperty.Companion::unwrap)) + } + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("90ffe2e7f6db0307f2b6a6e31a31a4aef716d634071f1b20842a1b4037e06544") + public open fun incrementalRunConfig(`value`: IncrementalRunConfigProperty.Builder.() -> Unit): + Unit = incrementalRunConfig(IncrementalRunConfigProperty(`value`)) + /** * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` . */ @@ -281,6 +315,36 @@ public open class CfnMatchingWorkflow( */ public fun description(description: String) + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + public fun incrementalRunConfig(incrementalRunConfig: IResolvable) + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + public fun incrementalRunConfig(incrementalRunConfig: IncrementalRunConfigProperty) + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7aeed0f0a3a97eec4f77433dae8de7575dcffb0342a130911098750aeda84925") + public + fun incrementalRunConfig(incrementalRunConfig: IncrementalRunConfigProperty.Builder.() -> Unit) + /** * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` . * @@ -425,6 +489,41 @@ public open class CfnMatchingWorkflow( cdkBuilder.description(description) } + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + override fun incrementalRunConfig(incrementalRunConfig: IResolvable) { + cdkBuilder.incrementalRunConfig(incrementalRunConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + override fun incrementalRunConfig(incrementalRunConfig: IncrementalRunConfigProperty) { + cdkBuilder.incrementalRunConfig(incrementalRunConfig.let(IncrementalRunConfigProperty.Companion::unwrap)) + } + + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7aeed0f0a3a97eec4f77433dae8de7575dcffb0342a130911098750aeda84925") + override + fun incrementalRunConfig(incrementalRunConfig: IncrementalRunConfigProperty.Builder.() -> Unit): + Unit = incrementalRunConfig(IncrementalRunConfigProperty(incrementalRunConfig)) + /** * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` . * @@ -596,6 +695,96 @@ public open class CfnMatchingWorkflow( software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow } + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.entityresolution.*; + * IncrementalRunConfigProperty incrementalRunConfigProperty = + * IncrementalRunConfigProperty.builder() + * .incrementalRunType("incrementalRunType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-incrementalrunconfig.html) + */ + public interface IncrementalRunConfigProperty { + /** + * The type of incremental run. + * + * It takes only one value: `IMMEDIATE` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-incrementalrunconfig.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig-incrementalruntype) + */ + public fun incrementalRunType(): String + + /** + * A builder for [IncrementalRunConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param incrementalRunType The type of incremental run. + * It takes only one value: `IMMEDIATE` . + */ + public fun incrementalRunType(incrementalRunType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty.Builder + = + software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty.builder() + + /** + * @param incrementalRunType The type of incremental run. + * It takes only one value: `IMMEDIATE` . + */ + override fun incrementalRunType(incrementalRunType: String) { + cdkBuilder.incrementalRunType(incrementalRunType) + } + + public fun build(): + software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty, + ) : CdkObject(cdkObject), + IncrementalRunConfigProperty { + /** + * The type of incremental run. + * + * It takes only one value: `IMMEDIATE` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-incrementalrunconfig.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig-incrementalruntype) + */ + override fun incrementalRunType(): String = unwrap(this).getIncrementalRunType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IncrementalRunConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty): + IncrementalRunConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + IncrementalRunConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IncrementalRunConfigProperty): + software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty + } + } + /** * An object containing `InputSourceARN` , `SchemaName` , and `ApplyNormalization` . * @@ -726,7 +915,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.InputSourceProperty, - ) : CdkObject(cdkObject), InputSourceProperty { + ) : CdkObject(cdkObject), + InputSourceProperty { /** * Normalizes the attributes defined in the schema in the input data. * @@ -833,7 +1023,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.IntermediateSourceConfigurationProperty, - ) : CdkObject(cdkObject), IntermediateSourceConfigurationProperty { + ) : CdkObject(cdkObject), + IntermediateSourceConfigurationProperty { /** * The Amazon S3 location (bucket and prefix). * @@ -958,7 +1149,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.OutputAttributeProperty, - ) : CdkObject(cdkObject), OutputAttributeProperty { + ) : CdkObject(cdkObject), + OutputAttributeProperty { /** * Enables the ability to hash the column values in the output. * @@ -1198,7 +1390,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.OutputSourceProperty, - ) : CdkObject(cdkObject), OutputSourceProperty { + ) : CdkObject(cdkObject), + OutputSourceProperty { /** * Normalizes the attributes defined in the schema in the input data. * @@ -1418,7 +1611,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.ProviderPropertiesProperty, - ) : CdkObject(cdkObject), ProviderPropertiesProperty { + ) : CdkObject(cdkObject), + ProviderPropertiesProperty { /** * The Amazon S3 location that temporarily stores your data while it processes. * @@ -1489,6 +1683,8 @@ public open class CfnMatchingWorkflow( * .matchingKeys(List.of("matchingKeys")) * .ruleName("ruleName") * .build())) + * // the properties below are optional + * .matchPurpose("matchPurpose") * .build()) * .build(); * ``` @@ -1641,7 +1837,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.ResolutionTechniquesProperty, - ) : CdkObject(cdkObject), ResolutionTechniquesProperty { + ) : CdkObject(cdkObject), + ResolutionTechniquesProperty { /** * The properties of the provider service. * @@ -1686,8 +1883,9 @@ public open class CfnMatchingWorkflow( } /** - * An object which defines the list of matching rules to run and has a field `Rules` , which is a - * list of rule objects. + * An object which defines the list of matching rules to run in a matching workflow. + * + * RuleBasedProperties contain a `Rules` field, which is a list of rule objects. * * Example: * @@ -1701,6 +1899,8 @@ public open class CfnMatchingWorkflow( * .matchingKeys(List.of("matchingKeys")) * .ruleName("ruleName") * .build())) + * // the properties below are optional + * .matchPurpose("matchPurpose") * .build(); * ``` * @@ -1708,20 +1908,34 @@ public open class CfnMatchingWorkflow( */ public interface RuleBasedPropertiesProperty { /** - * The comparison type. + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A and the value of + * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` + * attribute type. * - * You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the AttributeMatchingModel. When - * choosing `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute - * type. For example, if the value of the `Email` field of Profile A and the value of - * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` type. - * When choosing `ONE_TO_ONE` ,the system can only match if the sub-types are exact matches. For - * example, only when the value of the `Email` field of Profile A and the value of the `Email` - * field of Profile B matches, the two profiles are matched on the `Email` type. + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rulebasedproperties.html#cfn-entityresolution-matchingworkflow-rulebasedproperties-attributematchingmodel) */ public fun attributeMatchingModel(): String + /** + * An indicator of whether to generate IDs and index the data or not. + * + * If you choose `IDENTIFIER_GENERATION` , the process generates IDs and indexes the data. + * + * If you choose `INDEXING` , the process indexes the data without generating IDs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rulebasedproperties.html#cfn-entityresolution-matchingworkflow-rulebasedproperties-matchpurpose) + */ + public fun matchPurpose(): String? = unwrap(this).getMatchPurpose() + /** * A list of `Rule` objects, each of which have fields `RuleName` and `MatchingKeys` . * @@ -1735,17 +1949,28 @@ public open class CfnMatchingWorkflow( @CdkDslMarker public interface Builder { /** - * @param attributeMatchingModel The comparison type. - * You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the AttributeMatchingModel. When - * choosing `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute - * type. For example, if the value of the `Email` field of Profile A and the value of - * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` type. - * When choosing `ONE_TO_ONE` ,the system can only match if the sub-types are exact matches. For - * example, only when the value of the `Email` field of Profile A and the value of the `Email` - * field of Profile B matches, the two profiles are matched on the `Email` type. + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A and the value of + * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` + * attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. */ public fun attributeMatchingModel(attributeMatchingModel: String) + /** + * @param matchPurpose An indicator of whether to generate IDs and index the data or not. + * If you choose `IDENTIFIER_GENERATION` , the process generates IDs and indexes the data. + * + * If you choose `INDEXING` , the process indexes the data without generating IDs. + */ + public fun matchPurpose(matchPurpose: String) + /** * @param rules A list of `Rule` objects, each of which have fields `RuleName` and * `MatchingKeys` . @@ -1772,19 +1997,32 @@ public open class CfnMatchingWorkflow( software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.RuleBasedPropertiesProperty.builder() /** - * @param attributeMatchingModel The comparison type. - * You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the AttributeMatchingModel. When - * choosing `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute - * type. For example, if the value of the `Email` field of Profile A and the value of - * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` type. - * When choosing `ONE_TO_ONE` ,the system can only match if the sub-types are exact matches. For - * example, only when the value of the `Email` field of Profile A and the value of the `Email` - * field of Profile B matches, the two profiles are matched on the `Email` type. + * @param attributeMatchingModel The comparison type. You can either choose `ONE_TO_ONE` or + * `MANY_TO_MANY` as the `attributeMatchingModel` . + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A and the value of + * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` + * attribute type. + * + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. */ override fun attributeMatchingModel(attributeMatchingModel: String) { cdkBuilder.attributeMatchingModel(attributeMatchingModel) } + /** + * @param matchPurpose An indicator of whether to generate IDs and index the data or not. + * If you choose `IDENTIFIER_GENERATION` , the process generates IDs and indexes the data. + * + * If you choose `INDEXING` , the process indexes the data without generating IDs. + */ + override fun matchPurpose(matchPurpose: String) { + cdkBuilder.matchPurpose(matchPurpose) + } + /** * @param rules A list of `Rule` objects, each of which have fields `RuleName` and * `MatchingKeys` . @@ -1814,22 +2052,37 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.RuleBasedPropertiesProperty, - ) : CdkObject(cdkObject), RuleBasedPropertiesProperty { + ) : CdkObject(cdkObject), + RuleBasedPropertiesProperty { /** - * The comparison type. + * The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the + * `attributeMatchingModel` . + * + * If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an + * attribute type. For example, if the value of the `Email` field of Profile A and the value of + * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` + * attribute type. * - * You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the AttributeMatchingModel. When - * choosing `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute - * type. For example, if the value of the `Email` field of Profile A and the value of - * `BusinessEmail` field of Profile B matches, the two profiles are matched on the `Email` type. - * When choosing `ONE_TO_ONE` ,the system can only match if the sub-types are exact matches. For - * example, only when the value of the `Email` field of Profile A and the value of the `Email` - * field of Profile B matches, the two profiles are matched on the `Email` type. + * If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an + * exact match. For example, for the `Email` attribute type, the system will only consider it a + * match if the value of the `Email` field of Profile A matches the value of the `Email` field of + * Profile B. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rulebasedproperties.html#cfn-entityresolution-matchingworkflow-rulebasedproperties-attributematchingmodel) */ override fun attributeMatchingModel(): String = unwrap(this).getAttributeMatchingModel() + /** + * An indicator of whether to generate IDs and index the data or not. + * + * If you choose `IDENTIFIER_GENERATION` , the process generates IDs and indexes the data. + * + * If you choose `INDEXING` , the process indexes the data without generating IDs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-rulebasedproperties.html#cfn-entityresolution-matchingworkflow-rulebasedproperties-matchpurpose) + */ + override fun matchPurpose(): String? = unwrap(this).getMatchPurpose() + /** * A list of `Rule` objects, each of which have fields `RuleName` and `MatchingKeys` . * @@ -1953,7 +2206,8 @@ public open class CfnMatchingWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflow.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * A list of `MatchingKeys` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflowProps.kt index 4722db977e..9dba41c976 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnMatchingWorkflowProps.kt @@ -57,12 +57,17 @@ import kotlin.jvm.JvmName * .matchingKeys(List.of("matchingKeys")) * .ruleName("ruleName") * .build())) + * // the properties below are optional + * .matchPurpose("matchPurpose") * .build()) * .build()) * .roleArn("roleArn") * .workflowName("workflowName") * // the properties below are optional * .description("description") + * .incrementalRunConfig(IncrementalRunConfigProperty.builder() + * .incrementalRunType("incrementalRunType") + * .build()) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -80,6 +85,13 @@ public interface CfnMatchingWorkflowProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + */ + public fun incrementalRunConfig(): Any? = unwrap(this).getIncrementalRunConfig() + /** * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` . * @@ -138,6 +150,28 @@ public interface CfnMatchingWorkflowProps { */ public fun description(description: String) + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + public fun incrementalRunConfig(incrementalRunConfig: IResolvable) + + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + public + fun incrementalRunConfig(incrementalRunConfig: CfnMatchingWorkflow.IncrementalRunConfigProperty) + + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("37d18e057de3f39c2db48aca6fdcecbc1661ec9881157ead6368bc8fd069f90c") + public + fun incrementalRunConfig(incrementalRunConfig: CfnMatchingWorkflow.IncrementalRunConfigProperty.Builder.() -> Unit) + /** * @param inputSourceConfig A list of `InputSource` objects, which have the fields * `InputSourceARN` and `SchemaName` . @@ -232,6 +266,34 @@ public interface CfnMatchingWorkflowProps { cdkBuilder.description(description) } + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + override fun incrementalRunConfig(incrementalRunConfig: IResolvable) { + cdkBuilder.incrementalRunConfig(incrementalRunConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + override + fun incrementalRunConfig(incrementalRunConfig: CfnMatchingWorkflow.IncrementalRunConfigProperty) { + cdkBuilder.incrementalRunConfig(incrementalRunConfig.let(CfnMatchingWorkflow.IncrementalRunConfigProperty.Companion::unwrap)) + } + + /** + * @param incrementalRunConfig An object which defines an incremental run type and has only + * `incrementalRunType` as a field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("37d18e057de3f39c2db48aca6fdcecbc1661ec9881157ead6368bc8fd069f90c") + override + fun incrementalRunConfig(incrementalRunConfig: CfnMatchingWorkflow.IncrementalRunConfigProperty.Builder.() -> Unit): + Unit = + incrementalRunConfig(CfnMatchingWorkflow.IncrementalRunConfigProperty(incrementalRunConfig)) + /** * @param inputSourceConfig A list of `InputSource` objects, which have the fields * `InputSourceARN` and `SchemaName` . @@ -341,7 +403,8 @@ public interface CfnMatchingWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnMatchingWorkflowProps, - ) : CdkObject(cdkObject), CfnMatchingWorkflowProps { + ) : CdkObject(cdkObject), + CfnMatchingWorkflowProps { /** * A description of the workflow. * @@ -349,6 +412,13 @@ public interface CfnMatchingWorkflowProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * An object which defines an incremental run type and has only `incrementalRunType` as a field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig) + */ + override fun incrementalRunConfig(): Any? = unwrap(this).getIncrementalRunConfig() + /** * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatement.kt index 4ff8351c22..73de38ee1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatement.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicyStatement( cdkObject: software.amazon.awscdk.services.entityresolution.CfnPolicyStatement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatementProps.kt index 3690252866..b748039ab6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnPolicyStatementProps.kt @@ -210,7 +210,8 @@ public interface CfnPolicyStatementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnPolicyStatementProps, - ) : CdkObject(cdkObject), CfnPolicyStatementProps { + ) : CdkObject(cdkObject), + CfnPolicyStatementProps { /** * The action that the principal can use on the resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMapping.kt index dd31d26853..de1b987350 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMapping.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -37,6 +38,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .type("type") * // the properties below are optional * .groupName("groupName") + * .hashed(false) * .matchKey("matchKey") * .subType("subType") * .build())) @@ -54,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchemaMapping( cdkObject: software.amazon.awscdk.services.entityresolution.CfnSchemaMapping, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -358,7 +362,8 @@ public open class CfnSchemaMapping( } /** - * An object containing `FieldName` , `Type` , `GroupName` , `MatchKey` , and `SubType` . + * An object containing `FieldName` , `Type` , `GroupName` , `MatchKey` , `Hashing` , and + * `SubType` . * * Example: * @@ -372,6 +377,7 @@ public open class CfnSchemaMapping( * .type("type") * // the properties below are optional * .groupName("groupName") + * .hashed(false) * .matchKey("matchKey") * .subType("subType") * .build(); @@ -399,14 +405,26 @@ public open class CfnSchemaMapping( */ public fun groupName(): String? = unwrap(this).getGroupName() + /** + * Indicates if the column values are hashed in the schema input. + * + * If the value is set to `TRUE` , the column values are hashed. If the value is set to `FALSE` + * , the column values are cleartext. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-schemamapping-schemainputattribute.html#cfn-entityresolution-schemamapping-schemainputattribute-hashed) + */ + public fun hashed(): Any? = unwrap(this).getHashed() + /** * A key that allows grouping of multiple input attributes into a unified matching group. * * For example, consider a scenario where the source table contains various addresses, such as * `business_address` and `shipping_address` . By assigning a `matchKey` called `address` to both * attributes, AWS Entity Resolution will match records across these fields to create a - * consolidated matching group. If no `matchKey` is specified for a column, it won't be utilized - * for matching purposes but will still be included in the output table. + * consolidated matching group. + * + * If no `matchKey` is specified for a column, it won't be utilized for matching purposes but + * will still be included in the output table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-schemamapping-schemainputattribute.html#cfn-entityresolution-schemamapping-schemainputattribute-matchkey) */ @@ -445,14 +463,30 @@ public open class CfnSchemaMapping( */ public fun groupName(groupName: String) + /** + * @param hashed Indicates if the column values are hashed in the schema input. + * If the value is set to `TRUE` , the column values are hashed. If the value is set to + * `FALSE` , the column values are cleartext. + */ + public fun hashed(hashed: Boolean) + + /** + * @param hashed Indicates if the column values are hashed in the schema input. + * If the value is set to `TRUE` , the column values are hashed. If the value is set to + * `FALSE` , the column values are cleartext. + */ + public fun hashed(hashed: IResolvable) + /** * @param matchKey A key that allows grouping of multiple input attributes into a unified * matching group. * For example, consider a scenario where the source table contains various addresses, such as * `business_address` and `shipping_address` . By assigning a `matchKey` called `address` to both * attributes, AWS Entity Resolution will match records across these fields to create a - * consolidated matching group. If no `matchKey` is specified for a column, it won't be utilized - * for matching purposes but will still be included in the output table. + * consolidated matching group. + * + * If no `matchKey` is specified for a column, it won't be utilized for matching purposes but + * will still be included in the output table. */ public fun matchKey(matchKey: String) @@ -491,14 +525,34 @@ public open class CfnSchemaMapping( cdkBuilder.groupName(groupName) } + /** + * @param hashed Indicates if the column values are hashed in the schema input. + * If the value is set to `TRUE` , the column values are hashed. If the value is set to + * `FALSE` , the column values are cleartext. + */ + override fun hashed(hashed: Boolean) { + cdkBuilder.hashed(hashed) + } + + /** + * @param hashed Indicates if the column values are hashed in the schema input. + * If the value is set to `TRUE` , the column values are hashed. If the value is set to + * `FALSE` , the column values are cleartext. + */ + override fun hashed(hashed: IResolvable) { + cdkBuilder.hashed(hashed.let(IResolvable.Companion::unwrap)) + } + /** * @param matchKey A key that allows grouping of multiple input attributes into a unified * matching group. * For example, consider a scenario where the source table contains various addresses, such as * `business_address` and `shipping_address` . By assigning a `matchKey` called `address` to both * attributes, AWS Entity Resolution will match records across these fields to create a - * consolidated matching group. If no `matchKey` is specified for a column, it won't be utilized - * for matching purposes but will still be included in the output table. + * consolidated matching group. + * + * If no `matchKey` is specified for a column, it won't be utilized for matching purposes but + * will still be included in the output table. */ override fun matchKey(matchKey: String) { cdkBuilder.matchKey(matchKey) @@ -525,7 +579,8 @@ public open class CfnSchemaMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnSchemaMapping.SchemaInputAttributeProperty, - ) : CdkObject(cdkObject), SchemaInputAttributeProperty { + ) : CdkObject(cdkObject), + SchemaInputAttributeProperty { /** * A string containing the field name. * @@ -545,14 +600,26 @@ public open class CfnSchemaMapping( */ override fun groupName(): String? = unwrap(this).getGroupName() + /** + * Indicates if the column values are hashed in the schema input. + * + * If the value is set to `TRUE` , the column values are hashed. If the value is set to + * `FALSE` , the column values are cleartext. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-schemamapping-schemainputattribute.html#cfn-entityresolution-schemamapping-schemainputattribute-hashed) + */ + override fun hashed(): Any? = unwrap(this).getHashed() + /** * A key that allows grouping of multiple input attributes into a unified matching group. * * For example, consider a scenario where the source table contains various addresses, such as * `business_address` and `shipping_address` . By assigning a `matchKey` called `address` to both * attributes, AWS Entity Resolution will match records across these fields to create a - * consolidated matching group. If no `matchKey` is specified for a column, it won't be utilized - * for matching purposes but will still be included in the output table. + * consolidated matching group. + * + * If no `matchKey` is specified for a column, it won't be utilized for matching purposes but + * will still be included in the output table. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-schemamapping-schemainputattribute.html#cfn-entityresolution-schemamapping-schemainputattribute-matchkey) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMappingProps.kt index a9efbb58fa..af1eb38617 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/entityresolution/CfnSchemaMappingProps.kt @@ -27,6 +27,7 @@ import kotlin.collections.List * .type("type") * // the properties below are optional * .groupName("groupName") + * .hashed(false) * .matchKey("matchKey") * .subType("subType") * .build())) @@ -188,7 +189,8 @@ public interface CfnSchemaMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.entityresolution.CfnSchemaMappingProps, - ) : CdkObject(cdkObject), CfnSchemaMappingProps { + ) : CdkObject(cdkObject), + CfnSchemaMappingProps { /** * A description of the schema. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestination.kt index cdbafa04aa..081f0d4d51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestination.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ApiDestination( cdkObject: software.amazon.awscdk.services.events.ApiDestination, -) : Resource(cdkObject), IApiDestination { +) : Resource(cdkObject), + IApiDestination { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationAttributes.kt index 87b679d855..a289d38b31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationAttributes.kt @@ -78,7 +78,8 @@ public interface ApiDestinationAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.ApiDestinationAttributes, - ) : CdkObject(cdkObject), ApiDestinationAttributes { + ) : CdkObject(cdkObject), + ApiDestinationAttributes { /** * The ARN of the Api Destination. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationProps.kt index 25fa7ec3c8..dee213462b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ApiDestinationProps.kt @@ -159,7 +159,8 @@ public interface ApiDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.ApiDestinationProps, - ) : CdkObject(cdkObject), ApiDestinationProps { + ) : CdkObject(cdkObject), + ApiDestinationProps { /** * The name for the API destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ArchiveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ArchiveProps.kt index 98d92f7a2e..854521109c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ArchiveProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ArchiveProps.kt @@ -141,7 +141,8 @@ public interface ArchiveProps : BaseArchiveProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.ArchiveProps, - ) : CdkObject(cdkObject), ArchiveProps { + ) : CdkObject(cdkObject), + ArchiveProps { /** * The name of the archive. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/BaseArchiveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/BaseArchiveProps.kt index 2abde2b8c9..9b579d437d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/BaseArchiveProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/BaseArchiveProps.kt @@ -18,6 +18,7 @@ import kotlin.jvm.JvmName * ``` * EventBus bus = EventBus.Builder.create(this, "bus") * .eventBusName("MyCustomEventBus") + * .description("MyCustomEventBus") * .build(); * bus.archive("MyArchive", BaseArchiveProps.builder() * .archiveName("MyCustomEventBusArchive") @@ -138,7 +139,8 @@ public interface BaseArchiveProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.BaseArchiveProps, - ) : CdkObject(cdkObject), BaseArchiveProps { + ) : CdkObject(cdkObject), + BaseArchiveProps { /** * The name of the archive. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestination.kt index a15c3a6b2f..5eb01a956a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestination.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApiDestination( cdkObject: software.amazon.awscdk.services.events.CfnApiDestination, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestinationProps.kt index f68fdfa8ae..1be2f8dd48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnApiDestinationProps.kt @@ -169,7 +169,8 @@ public interface CfnApiDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnApiDestinationProps, - ) : CdkObject(cdkObject), CfnApiDestinationProps { + ) : CdkObject(cdkObject), + CfnApiDestinationProps { /** * The ARN of the connection to use for the API destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchive.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchive.kt index 2e50549629..c91def73b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchive.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchive.kt @@ -21,6 +21,26 @@ import software.constructs.Construct as SoftwareConstructsConstruct * filter events sent to the archive, all events are sent to the archive except replayed events. * Replayed events are not sent to an archive. * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For more + * information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + * + * * Example: * * ``` @@ -42,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnArchive( cdkObject: software.amazon.awscdk.services.events.CfnArchive, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchiveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchiveProps.kt index c957da9056..8c49b94b16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchiveProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnArchiveProps.kt @@ -147,7 +147,8 @@ public interface CfnArchiveProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnArchiveProps, - ) : CdkObject(cdkObject), CfnArchiveProps { + ) : CdkObject(cdkObject), + CfnArchiveProps { /** * The name for the archive to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnection.kt index d53508bff2..44c6f157cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnection.kt @@ -32,7 +32,6 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.events.*; * CfnConnection cfnConnection = CfnConnection.Builder.create(this, "MyCfnConnection") * .authorizationType("authorizationType") - * // the properties below are optional * .authParameters(AuthParametersProperty.builder() * .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder() * .apiKeyName("apiKeyName") @@ -92,6 +91,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .build()) + * // the properties below are optional * .description("description") * .name("name") * .build(); @@ -101,7 +101,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnection( cdkObject: software.amazon.awscdk.services.events.CfnConnection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -132,7 +133,7 @@ public open class CfnConnection( * A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to * use to authorize with the endpoint. */ - public open fun authParameters(): Any? = unwrap(this).getAuthParameters() + public open fun authParameters(): Any = unwrap(this).getAuthParameters() /** * A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters to @@ -448,7 +449,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.ApiKeyAuthParametersProperty, - ) : CdkObject(cdkObject), ApiKeyAuthParametersProperty { + ) : CdkObject(cdkObject), + ApiKeyAuthParametersProperty { /** * The name of the API key to use for authorization. * @@ -773,7 +775,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.AuthParametersProperty, - ) : CdkObject(cdkObject), AuthParametersProperty { + ) : CdkObject(cdkObject), + AuthParametersProperty { /** * The API Key parameters to use for authorization. * @@ -896,7 +899,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.BasicAuthParametersProperty, - ) : CdkObject(cdkObject), BasicAuthParametersProperty { + ) : CdkObject(cdkObject), + BasicAuthParametersProperty { /** * The password associated with the user name to use for Basic authorization. * @@ -1006,7 +1010,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.ClientParametersProperty, - ) : CdkObject(cdkObject), ClientParametersProperty { + ) : CdkObject(cdkObject), + ClientParametersProperty { /** * The client ID to use for OAuth authorization. * @@ -1226,7 +1231,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.ConnectionHttpParametersProperty, - ) : CdkObject(cdkObject), ConnectionHttpParametersProperty { + ) : CdkObject(cdkObject), + ConnectionHttpParametersProperty { /** * Contains additional body string parameters for the connection. * @@ -1476,7 +1482,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.OAuthParametersProperty, - ) : CdkObject(cdkObject), OAuthParametersProperty { + ) : CdkObject(cdkObject), + OAuthParametersProperty { /** * The URL to the authorization endpoint when OAuth is specified as the authorization type. * @@ -1552,6 +1559,8 @@ public open class CfnConnection( /** * Specifies whether the value is secret. * + * Default: - true + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-parameter.html#cfn-events-connection-parameter-isvaluesecret) */ public fun isValueSecret(): Any? = unwrap(this).getIsValueSecret() @@ -1635,10 +1644,13 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnection.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * Specifies whether the value is secret. * + * Default: - true + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-parameter.html#cfn-events-connection-parameter-isvaluesecret) */ override fun isValueSecret(): Any? = unwrap(this).getIsValueSecret() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnectionProps.kt index 9e0cff6efb..1257f7506f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnConnectionProps.kt @@ -22,7 +22,6 @@ import kotlin.jvm.JvmName * import io.cloudshiftdev.awscdk.services.events.*; * CfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder() * .authorizationType("authorizationType") - * // the properties below are optional * .authParameters(AuthParametersProperty.builder() * .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder() * .apiKeyName("apiKeyName") @@ -82,6 +81,7 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .build()) + * // the properties below are optional * .description("description") * .name("name") * .build(); @@ -96,7 +96,7 @@ public interface CfnConnectionProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-connection.html#cfn-events-connection-authparameters) */ - public fun authParameters(): Any? = unwrap(this).getAuthParameters() + public fun authParameters(): Any /** * The type of authorization to use for the connection. @@ -130,19 +130,19 @@ public interface CfnConnectionProps { public interface Builder { /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ public fun authParameters(authParameters: IResolvable) /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ public fun authParameters(authParameters: CfnConnection.AuthParametersProperty) /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cf937ae1aa8f4c90c97e3448b625c5c03492ccadd908836c6f18632e7bbb3499") @@ -173,7 +173,7 @@ public interface CfnConnectionProps { /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ override fun authParameters(authParameters: IResolvable) { cdkBuilder.authParameters(authParameters.let(IResolvable.Companion::unwrap)) @@ -181,7 +181,7 @@ public interface CfnConnectionProps { /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ override fun authParameters(authParameters: CfnConnection.AuthParametersProperty) { cdkBuilder.authParameters(authParameters.let(CfnConnection.AuthParametersProperty.Companion::unwrap)) @@ -189,7 +189,7 @@ public interface CfnConnectionProps { /** * @param authParameters A `CreateConnectionAuthRequestParameters` object that contains the - * authorization parameters to use to authorize with the endpoint. + * authorization parameters to use to authorize with the endpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cf937ae1aa8f4c90c97e3448b625c5c03492ccadd908836c6f18632e7bbb3499") @@ -226,14 +226,15 @@ public interface CfnConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnConnectionProps, - ) : CdkObject(cdkObject), CfnConnectionProps { + ) : CdkObject(cdkObject), + CfnConnectionProps { /** * A `CreateConnectionAuthRequestParameters` object that contains the authorization parameters * to use to authorize with the endpoint. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-connection.html#cfn-events-connection-authparameters) */ - override fun authParameters(): Any? = unwrap(this).getAuthParameters() + override fun authParameters(): Any = unwrap(this).getAuthParameters() /** * The type of authorization to use for the connection. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpoint.kt index f5545ae423..d8858bb433 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpoint.kt @@ -24,7 +24,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * For more information about global endpoints, see [Making applications Regional-fault tolerant * with global endpoints and event * replication](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html) in - * the *Amazon EventBridge User Guide* . + * the **Amazon EventBridge User Guide** . * * Example: * @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpoint( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -571,7 +572,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.EndpointEventBusProperty, - ) : CdkObject(cdkObject), EndpointEventBusProperty { + ) : CdkObject(cdkObject), + EndpointEventBusProperty { /** * The ARN of the event bus the endpoint is associated with. * @@ -738,7 +740,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.FailoverConfigProperty, - ) : CdkObject(cdkObject), FailoverConfigProperty { + ) : CdkObject(cdkObject), + FailoverConfigProperty { /** * The main Region of the endpoint. * @@ -828,7 +831,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.PrimaryProperty, - ) : CdkObject(cdkObject), PrimaryProperty { + ) : CdkObject(cdkObject), + PrimaryProperty { /** * The ARN of the health check used by the endpoint to determine whether failover is * triggered. @@ -909,7 +913,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.ReplicationConfigProperty, - ) : CdkObject(cdkObject), ReplicationConfigProperty { + ) : CdkObject(cdkObject), + ReplicationConfigProperty { /** * The state of event replication. * @@ -1031,7 +1036,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.RoutingConfigProperty, - ) : CdkObject(cdkObject), RoutingConfigProperty { + ) : CdkObject(cdkObject), + RoutingConfigProperty { /** * The failover configuration for an endpoint. * @@ -1114,7 +1120,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpoint.SecondaryProperty, - ) : CdkObject(cdkObject), SecondaryProperty { + ) : CdkObject(cdkObject), + SecondaryProperty { /** * Defines the secondary Region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpointProps.kt index ae7f4576e7..a39834c95f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEndpointProps.kt @@ -278,7 +278,8 @@ public interface CfnEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEndpointProps, - ) : CdkObject(cdkObject), CfnEndpointProps { + ) : CdkObject(cdkObject), + CfnEndpointProps { /** * A description for the endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBus.kt index 7632ac6cf8..2b921f6302 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBus.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBus.kt @@ -5,14 +5,18 @@ package io.cloudshiftdev.awscdk.services.events import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggableV2 import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -40,7 +44,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnEventBus cfnEventBus = CfnEventBus.Builder.create(this, "MyCfnEventBus") * .name("name") * // the properties below are optional + * .deadLetterConfig(DeadLetterConfigProperty.builder() + * .arn("arn") + * .build()) + * .description("description") * .eventSourceName("eventSourceName") + * .kmsKeyIdentifier("kmsKeyIdentifier") * .policy(policy) * .tags(List.of(CfnTag.builder() * .key("key") @@ -53,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventBus( cdkObject: software.amazon.awscdk.services.events.CfnEventBus, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -92,6 +103,49 @@ public open class CfnEventBus( public override fun cdkTagManager(): TagManager = unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + */ + public open fun deadLetterConfig(): Any? = unwrap(this).getDeadLetterConfig() + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + */ + public open fun deadLetterConfig(`value`: IResolvable) { + unwrap(this).setDeadLetterConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + */ + public open fun deadLetterConfig(`value`: DeadLetterConfigProperty) { + unwrap(this).setDeadLetterConfig(`value`.let(DeadLetterConfigProperty.Companion::unwrap)) + } + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ad9d8f4092e91a69f655c27f57eacfe113c07a579779094ab803b244ad23ccbb") + public open fun deadLetterConfig(`value`: DeadLetterConfigProperty.Builder.() -> Unit): Unit = + deadLetterConfig(DeadLetterConfigProperty(`value`)) + + /** + * The event bus description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The event bus description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + /** * If you are creating a partner event bus, this specifies the partner event source that the new * event bus will be matched with. @@ -115,6 +169,20 @@ public open class CfnEventBus( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt events on this event bus. + */ + public open fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt events on this event bus. + */ + public open fun kmsKeyIdentifier(`value`: String) { + unwrap(this).setKmsKeyIdentifier(`value`) + } + /** * The name of the new event bus. */ @@ -163,6 +231,58 @@ public open class CfnEventBus( */ @CdkDslMarker public interface Builder { + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + public fun deadLetterConfig(deadLetterConfig: IResolvable) + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + public fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty) + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f31737b7d3b549dc98eb4b41fa2cecda7036ac88c739dce81a73969086234c6") + public fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty.Builder.() -> Unit) + + /** + * The event bus description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + * @param description The event bus description. + */ + public fun description(description: String) + /** * If you are creating a partner event bus, this specifies the partner event source that the new * event bus will be matched with. @@ -173,6 +293,45 @@ public open class CfnEventBus( */ public fun eventSourceName(eventSourceName: String) + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt events on this event bus. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-kmskeyidentifier) + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt events on this event bus. + */ + public fun kmsKeyIdentifier(kmsKeyIdentifier: String) + /** * The name of the new event bus. * @@ -222,6 +381,65 @@ public open class CfnEventBus( private val cdkBuilder: software.amazon.awscdk.services.events.CfnEventBus.Builder = software.amazon.awscdk.services.events.CfnEventBus.Builder.create(scope, id) + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + override fun deadLetterConfig(deadLetterConfig: IResolvable) { + cdkBuilder.deadLetterConfig(deadLetterConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + override fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty) { + cdkBuilder.deadLetterConfig(deadLetterConfig.let(DeadLetterConfigProperty.Companion::unwrap)) + } + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2f31737b7d3b549dc98eb4b41fa2cecda7036ac88c739dce81a73969086234c6") + override fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty.Builder.() -> Unit): + Unit = deadLetterConfig(DeadLetterConfigProperty(deadLetterConfig)) + + /** + * The event bus description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + * @param description The event bus description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * If you are creating a partner event bus, this specifies the partner event source that the new * event bus will be matched with. @@ -234,6 +452,47 @@ public open class CfnEventBus( cdkBuilder.eventSourceName(eventSourceName) } + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt events on this event bus. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-kmskeyidentifier) + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt events on this event bus. + */ + override fun kmsKeyIdentifier(kmsKeyIdentifier: String) { + cdkBuilder.kmsKeyIdentifier(kmsKeyIdentifier) + } + /** * The name of the new event bus. * @@ -303,4 +562,91 @@ public open class CfnEventBus( internal fun unwrap(wrapped: CfnEventBus): software.amazon.awscdk.services.events.CfnEventBus = wrapped.cdkObject as software.amazon.awscdk.services.events.CfnEventBus } + + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.events.*; + * DeadLetterConfigProperty deadLetterConfigProperty = DeadLetterConfigProperty.builder() + * .arn("arn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-deadletterconfig.html) + */ + public interface DeadLetterConfigProperty { + /** + * The ARN of the SQS queue specified as the target for the dead-letter queue. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-deadletterconfig.html#cfn-events-eventbus-deadletterconfig-arn) + */ + public fun arn(): String? = unwrap(this).getArn() + + /** + * A builder for [DeadLetterConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param arn The ARN of the SQS queue specified as the target for the dead-letter queue. + */ + public fun arn(arn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty.Builder = + software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty.builder() + + /** + * @param arn The ARN of the SQS queue specified as the target for the dead-letter queue. + */ + override fun arn(arn: String) { + cdkBuilder.arn(arn) + } + + public fun build(): + software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty, + ) : CdkObject(cdkObject), + DeadLetterConfigProperty { + /** + * The ARN of the SQS queue specified as the target for the dead-letter queue. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbus-deadletterconfig.html#cfn-events-eventbus-deadletterconfig-arn) + */ + override fun arn(): String? = unwrap(this).getArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DeadLetterConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty): + DeadLetterConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? DeadLetterConfigProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DeadLetterConfigProperty): + software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.events.CfnEventBus.DeadLetterConfigProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicy.kt index 0d3065394b..8d8fce289a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicy.kt @@ -20,8 +20,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Running `PutPermission` permits the specified AWS account or AWS organization to put events to * the specified *event bus* . * - * Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these events - * arriving to an event bus in your account. + * Amazon EventBridge rules in your account are triggered by these events arriving to an event bus + * in your account. * * For another account to send events to your account, that external account must have an * EventBridge rule with your account's event bus as a target. @@ -66,7 +66,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventBusPolicy( cdkObject: software.amazon.awscdk.services.events.CfnEventBusPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -597,7 +598,8 @@ public open class CfnEventBusPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEventBusPolicy.ConditionProperty, - ) : CdkObject(cdkObject), ConditionProperty { + ) : CdkObject(cdkObject), + ConditionProperty { /** * Specifies the key for the condition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicyProps.kt index 7136ed7be4..f0fd8b4a74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusPolicyProps.kt @@ -317,7 +317,8 @@ public interface CfnEventBusPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEventBusPolicyProps, - ) : CdkObject(cdkObject), CfnEventBusPolicyProps { + ) : CdkObject(cdkObject), + CfnEventBusPolicyProps { /** * The action that you are enabling the other account to perform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusProps.kt index 2e82aab202..6679e394d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnEventBusProps.kt @@ -3,6 +3,7 @@ package io.cloudshiftdev.awscdk.services.events import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -10,6 +11,7 @@ import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a `CfnEventBus`. @@ -24,7 +26,12 @@ import kotlin.collections.List * CfnEventBusProps cfnEventBusProps = CfnEventBusProps.builder() * .name("name") * // the properties below are optional + * .deadLetterConfig(DeadLetterConfigProperty.builder() + * .arn("arn") + * .build()) + * .description("description") * .eventSourceName("eventSourceName") + * .kmsKeyIdentifier("kmsKeyIdentifier") * .policy(policy) * .tags(List.of(CfnTag.builder() * .key("key") @@ -36,6 +43,25 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html) */ public interface CfnEventBusProps { + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + */ + public fun deadLetterConfig(): Any? = unwrap(this).getDeadLetterConfig() + + /** + * The event bus description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + */ + public fun description(): String? = unwrap(this).getDescription() + /** * If you are creating a partner event bus, this specifies the partner event source that the new * event bus will be matched with. @@ -44,6 +70,43 @@ public interface CfnEventBusProps { */ public fun eventSourceName(): String? = unwrap(this).getEventSourceName() + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt events on this event bus. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS Key + * Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-kmskeyidentifier) + */ + public fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + /** * The name of the new event bus. * @@ -78,12 +141,80 @@ public interface CfnEventBusProps { */ @CdkDslMarker public interface Builder { + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + public fun deadLetterConfig(deadLetterConfig: IResolvable) + + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + public fun deadLetterConfig(deadLetterConfig: CfnEventBus.DeadLetterConfigProperty) + + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("218c44d6c789c061790d0176044975ad92fb80b70ba3a171b64fb8664601178e") + public + fun deadLetterConfig(deadLetterConfig: CfnEventBus.DeadLetterConfigProperty.Builder.() -> Unit) + + /** + * @param description The event bus description. + */ + public fun description(description: String) + /** * @param eventSourceName If you are creating a partner event bus, this specifies the partner * event source that the new event bus will be matched with. */ public fun eventSourceName(eventSourceName: String) + /** + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt events on this event bus. + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + */ + public fun kmsKeyIdentifier(kmsKeyIdentifier: String) + /** * @param name The name of the new event bus. * Custom event bus names can't contain the `/` character, but you can use the `/` character in @@ -116,6 +247,48 @@ public interface CfnEventBusProps { private val cdkBuilder: software.amazon.awscdk.services.events.CfnEventBusProps.Builder = software.amazon.awscdk.services.events.CfnEventBusProps.builder() + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + override fun deadLetterConfig(deadLetterConfig: IResolvable) { + cdkBuilder.deadLetterConfig(deadLetterConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + override fun deadLetterConfig(deadLetterConfig: CfnEventBus.DeadLetterConfigProperty) { + cdkBuilder.deadLetterConfig(deadLetterConfig.let(CfnEventBus.DeadLetterConfigProperty.Companion::unwrap)) + } + + /** + * @param deadLetterConfig Configuration details of the Amazon SQS queue for EventBridge to use + * as a dead-letter queue (DLQ). + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("218c44d6c789c061790d0176044975ad92fb80b70ba3a171b64fb8664601178e") + override + fun deadLetterConfig(deadLetterConfig: CfnEventBus.DeadLetterConfigProperty.Builder.() -> Unit): + Unit = deadLetterConfig(CfnEventBus.DeadLetterConfigProperty(deadLetterConfig)) + + /** + * @param description The event bus description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param eventSourceName If you are creating a partner event bus, this specifies the partner * event source that the new event bus will be matched with. @@ -124,6 +297,41 @@ public interface CfnEventBusProps { cdkBuilder.eventSourceName(eventSourceName) } + /** + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt events on this event bus. + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + */ + override fun kmsKeyIdentifier(kmsKeyIdentifier: String) { + cdkBuilder.kmsKeyIdentifier(kmsKeyIdentifier) + } + /** * @param name The name of the new event bus. * Custom event bus names can't contain the `/` character, but you can use the `/` character in @@ -162,7 +370,27 @@ public interface CfnEventBusProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnEventBusProps, - ) : CdkObject(cdkObject), CfnEventBusProps { + ) : CdkObject(cdkObject), + CfnEventBusProps { + /** + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-deadletterconfig) + */ + override fun deadLetterConfig(): Any? = unwrap(this).getDeadLetterConfig() + + /** + * The event bus description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + */ + override fun description(): String? = unwrap(this).getDescription() + /** * If you are creating a partner event bus, this specifies the partner event source that the new * event bus will be matched with. @@ -171,6 +399,43 @@ public interface CfnEventBusProps { */ override fun eventSourceName(): String? = unwrap(this).getEventSourceName() + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt events on this event bus. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to + * encrypt events on the event bus. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * + * Archives and schema discovery are not supported for event buses encrypted using a customer + * managed key. EventBridge returns an error if: + * + * * You call + * `[CreateArchive](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateArchive.html)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[CreateDiscoverer](https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-discoverers.html#CreateDiscoverer)` + * on an event bus set to use a customer managed key for encryption. + * * You call + * `[UpdatedEventBus](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UpdatedEventBus.html)` + * to set a customer managed key on an event bus with an archives or schema discovery enabled. + * + * To enable archives or schema discovery on an event bus, choose to use an AWS owned key . For + * more information, see [Data encryption in + * EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the + * *Amazon EventBridge User Guide* . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-kmskeyidentifier) + */ + override fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + /** * The name of the new event bus. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRule.kt index 817313b3e5..11ea265845 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRule.kt @@ -203,7 +203,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRule( cdkObject: software.amazon.awscdk.services.events.CfnRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.events.CfnRule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -379,7 +380,7 @@ public open class CfnRule( * * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern) * @param eventPattern The event pattern of the rule. @@ -438,7 +439,7 @@ public open class CfnRule( * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -466,7 +467,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -491,7 +492,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -568,7 +569,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -593,7 +594,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -670,7 +671,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -695,7 +696,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -793,7 +794,7 @@ public open class CfnRule( * * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern) * @param eventPattern The event pattern of the rule. @@ -860,7 +861,7 @@ public open class CfnRule( * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -890,7 +891,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -915,7 +916,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -994,7 +995,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -1019,7 +1020,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -1098,7 +1099,7 @@ public open class CfnRule( * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -1123,7 +1124,7 @@ public open class CfnRule( * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -1276,7 +1277,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.AppSyncParametersProperty, - ) : CdkObject(cdkObject), AppSyncParametersProperty { + ) : CdkObject(cdkObject), + AppSyncParametersProperty { /** * The GraphQL operation; that is, the query, mutation, or subscription to be parsed and * executed by the GraphQL service. @@ -1453,7 +1455,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.AwsVpcConfigurationProperty, - ) : CdkObject(cdkObject), AwsVpcConfigurationProperty { + ) : CdkObject(cdkObject), + AwsVpcConfigurationProperty { /** * Specifies whether the task's elastic network interface receives a public IP address. * @@ -1564,7 +1567,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.BatchArrayPropertiesProperty, - ) : CdkObject(cdkObject), BatchArrayPropertiesProperty { + ) : CdkObject(cdkObject), + BatchArrayPropertiesProperty { /** * The size of the array, if this is an array batch job. * @@ -1823,7 +1827,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.BatchParametersProperty, - ) : CdkObject(cdkObject), BatchParametersProperty { + ) : CdkObject(cdkObject), + BatchParametersProperty { /** * The array properties for the submitted job, such as the size of the array. * @@ -1940,7 +1945,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.BatchRetryStrategyProperty, - ) : CdkObject(cdkObject), BatchRetryStrategyProperty { + ) : CdkObject(cdkObject), + BatchRetryStrategyProperty { /** * The number of times to attempt to retry, if the job fails. * @@ -2089,7 +2095,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.CapacityProviderStrategyItemProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyItemProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyItemProperty { /** * The base value designates how many tasks, at a minimum, to run on the specified capacity * provider. @@ -2140,7 +2147,12 @@ public open class CfnRule( } /** - * A `DeadLetterConfig` object that contains information about a dead-letter queue configuration. + * Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue + * (DLQ). + * + * For more information, see [Using dead-letter queues to process undelivered + * events](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq) + * in the *EventBridge User Guide* . * * Example: * @@ -2192,7 +2204,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.DeadLetterConfigProperty, - ) : CdkObject(cdkObject), DeadLetterConfigProperty { + ) : CdkObject(cdkObject), + DeadLetterConfigProperty { /** * The ARN of the SQS queue specified as the target for the dead-letter queue. * @@ -2914,7 +2927,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.EcsParametersProperty, - ) : CdkObject(cdkObject), EcsParametersProperty { + ) : CdkObject(cdkObject), + EcsParametersProperty { /** * The capacity provider strategy to use for the task. * @@ -3230,7 +3244,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.HttpParametersProperty, - ) : CdkObject(cdkObject), HttpParametersProperty { + ) : CdkObject(cdkObject), + HttpParametersProperty { /** * The headers that need to be sent as part of request invoking the API Gateway API or * EventBridge ApiDestination. @@ -3538,7 +3553,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.InputTransformerProperty, - ) : CdkObject(cdkObject), InputTransformerProperty { + ) : CdkObject(cdkObject), + InputTransformerProperty { /** * Map of JSON paths to be extracted from the event. * @@ -3696,7 +3712,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.KinesisParametersProperty, - ) : CdkObject(cdkObject), KinesisParametersProperty { + ) : CdkObject(cdkObject), + KinesisParametersProperty { /** * The JSON path to be extracted from the event and used as the partition key. * @@ -3831,7 +3848,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * Use this structure to specify the VPC subnets and security groups for the task, and whether * a public IP address is to be used. @@ -3960,7 +3978,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.PlacementConstraintProperty, - ) : CdkObject(cdkObject), PlacementConstraintProperty { + ) : CdkObject(cdkObject), + PlacementConstraintProperty { /** * A cluster query language expression to apply to the constraint. * @@ -4112,7 +4131,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.PlacementStrategyProperty, - ) : CdkObject(cdkObject), PlacementStrategyProperty { + ) : CdkObject(cdkObject), + PlacementStrategyProperty { /** * The field to apply the placement strategy against. * @@ -4398,7 +4418,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.RedshiftDataParametersProperty, - ) : CdkObject(cdkObject), RedshiftDataParametersProperty { + ) : CdkObject(cdkObject), + RedshiftDataParametersProperty { /** * The name of the database. * @@ -4564,7 +4585,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.RetryPolicyProperty, - ) : CdkObject(cdkObject), RetryPolicyProperty { + ) : CdkObject(cdkObject), + RetryPolicyProperty { /** * The maximum amount of time, in seconds, to continue to make retry attempts. * @@ -4689,7 +4711,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.RunCommandParametersProperty, - ) : CdkObject(cdkObject), RunCommandParametersProperty { + ) : CdkObject(cdkObject), + RunCommandParametersProperty { /** * Currently, we support including only one RunCommandTarget block, which specifies either an * array of InstanceIds or a tag. @@ -4810,7 +4833,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.RunCommandTargetProperty, - ) : CdkObject(cdkObject), RunCommandTargetProperty { + ) : CdkObject(cdkObject), + RunCommandTargetProperty { /** * Can be either `tag:` *tag-key* or `InstanceIds` . * @@ -4922,7 +4946,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.SageMakerPipelineParameterProperty, - ) : CdkObject(cdkObject), SageMakerPipelineParameterProperty { + ) : CdkObject(cdkObject), + SageMakerPipelineParameterProperty { /** * Name of parameter to start execution of a SageMaker Model Building Pipeline. * @@ -5046,7 +5071,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.SageMakerPipelineParametersProperty, - ) : CdkObject(cdkObject), SageMakerPipelineParametersProperty { + ) : CdkObject(cdkObject), + SageMakerPipelineParametersProperty { /** * List of Parameter names and values for SageMaker Model Building Pipeline execution. * @@ -5127,7 +5153,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.SqsParametersProperty, - ) : CdkObject(cdkObject), SqsParametersProperty { + ) : CdkObject(cdkObject), + SqsParametersProperty { /** * The FIFO message group ID to use as the target. * @@ -5237,7 +5264,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.TagProperty, - ) : CdkObject(cdkObject), TagProperty { + ) : CdkObject(cdkObject), + TagProperty { /** * A string you can use to assign a value. * @@ -6345,7 +6373,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRule.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * Contains the GraphQL operation to be parsed and executed, if the event target is an AWS * AppSync API. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRuleProps.kt index 03ff064e5c..335563f381 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CfnRuleProps.kt @@ -164,7 +164,7 @@ public interface CfnRuleProps { * * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern) */ @@ -217,7 +217,7 @@ public interface CfnRuleProps { * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -243,8 +243,8 @@ public interface CfnRuleProps { * * * For a list of services you can configure as targets for events, see [EventBridge - * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the *Amazon - * EventBridge User Guide* . + * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the **Amazon + * EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -268,7 +268,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -347,7 +347,7 @@ public interface CfnRuleProps { * @param eventPattern The event pattern of the rule. * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . */ public fun eventPattern(eventPattern: Any) @@ -390,7 +390,7 @@ public interface CfnRuleProps { * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -414,7 +414,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -439,7 +439,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -511,7 +511,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -536,7 +536,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -608,7 +608,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -633,7 +633,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -716,7 +716,7 @@ public interface CfnRuleProps { * @param eventPattern The event pattern of the rule. * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . */ override fun eventPattern(eventPattern: Any) { cdkBuilder.eventPattern(eventPattern) @@ -767,7 +767,7 @@ public interface CfnRuleProps { * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -793,7 +793,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -818,7 +818,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -892,7 +892,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -917,7 +917,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -991,7 +991,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -1016,7 +1016,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target @@ -1080,7 +1080,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * The description of the rule. * @@ -1102,7 +1103,7 @@ public interface CfnRuleProps { * * For more information, see [Events and Event * Patterns](https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern) */ @@ -1156,7 +1157,7 @@ public interface CfnRuleProps { * events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events) * in the *CloudTrail User Guide* , and [Filtering management events from AWS * services](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * This value is only valid for rules on the * [default](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses) @@ -1183,7 +1184,7 @@ public interface CfnRuleProps { * * For a list of services you can configure as targets for events, see [EventBridge * targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html) in the - * *Amazon EventBridge User Guide* . + * **Amazon EventBridge User Guide** . * * Creating rules with built-in targets is supported only in the AWS Management Console . The * built-in targets are: @@ -1208,7 +1209,7 @@ public interface CfnRuleProps { * * For more information, see [Authentication and Access * Control](https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) - * in the *Amazon EventBridge User Guide* . + * in the **Amazon EventBridge User Guide** . * * If another AWS account is in the same region and has granted you permission (using * `PutPermission` ), you can send events to that account. Set that account's event bus as a target diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Connection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Connection.kt index cb310175eb..b52f14c2c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Connection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Connection.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Connection( cdkObject: software.amazon.awscdk.services.events.Connection, -) : Resource(cdkObject), IConnection { +) : Resource(cdkObject), + IConnection { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionAttributes.kt index 3c9cab911d..9be1ae473b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionAttributes.kt @@ -92,7 +92,8 @@ public interface ConnectionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.ConnectionAttributes, - ) : CdkObject(cdkObject), ConnectionAttributes { + ) : CdkObject(cdkObject), + ConnectionAttributes { /** * The ARN of the connection created. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionProps.kt index b9ba086818..c09b342496 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/ConnectionProps.kt @@ -166,7 +166,8 @@ public interface ConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.ConnectionProps, - ) : CdkObject(cdkObject), ConnectionProps { + ) : CdkObject(cdkObject), + ConnectionProps { /** * The authorization type for the connection. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CronOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CronOptions.kt index cfa4a5f9a1..eb5157e365 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CronOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/CronOptions.kt @@ -158,7 +158,8 @@ public interface CronOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.CronOptions, - ) : CdkObject(cdkObject), CronOptions { + ) : CdkObject(cdkObject), + CronOptions { /** * The day of the month to run this rule at. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBus.kt index 0ff139d538..2f3301a2e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBus.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBus.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.services.iam.AddToResourcePolicyResult import io.cloudshiftdev.awscdk.services.iam.Grant import io.cloudshiftdev.awscdk.services.iam.IGrantable import io.cloudshiftdev.awscdk.services.iam.PolicyStatement +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName @@ -22,6 +23,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * ``` * EventBus bus = EventBus.Builder.create(this, "bus") * .eventBusName("MyCustomEventBus") + * .description("MyCustomEventBus") * .build(); * bus.archive("MyArchive", BaseArchiveProps.builder() * .archiveName("MyCustomEventBusArchive") @@ -35,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EventBus( cdkObject: software.amazon.awscdk.services.events.EventBus, -) : Resource(cdkObject), IEventBus { +) : Resource(cdkObject), + IEventBus { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.events.EventBus(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -138,6 +141,18 @@ public open class EventBus( */ @CdkDslMarker public interface Builder { + /** + * The event bus description. + * + * The description can be up to 512 characters long. + * + * Default: - no description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + * @param description The event bus description. + */ + public fun description(description: String) + /** * The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you * cannot set this. @@ -159,6 +174,15 @@ public open class EventBus( * Note: If 'eventBusName' is passed in, you cannot set this. */ public fun eventSourceName(eventSourceName: String) + + /** + * The customer managed key that encrypt events on this event bus. + * + * Default: - Use an AWS managed key + * + * @param kmsKey The customer managed key that encrypt events on this event bus. + */ + public fun kmsKey(kmsKey: IKey) } private class BuilderImpl( @@ -168,6 +192,20 @@ public open class EventBus( private val cdkBuilder: software.amazon.awscdk.services.events.EventBus.Builder = software.amazon.awscdk.services.events.EventBus.Builder.create(scope, id) + /** + * The event bus description. + * + * The description can be up to 512 characters long. + * + * Default: - no description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + * @param description The event bus description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you * cannot set this. @@ -194,6 +232,17 @@ public open class EventBus( cdkBuilder.eventSourceName(eventSourceName) } + /** + * The customer managed key that encrypt events on this event bus. + * + * Default: - Use an AWS managed key + * + * @param kmsKey The customer managed key that encrypt events on this event bus. + */ + override fun kmsKey(kmsKey: IKey) { + cdkBuilder.kmsKey(kmsKey.let(IKey.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.events.EventBus = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusAttributes.kt index 3420fe905f..87cd4190b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusAttributes.kt @@ -113,7 +113,8 @@ public interface EventBusAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.EventBusAttributes, - ) : CdkObject(cdkObject), EventBusAttributes { + ) : CdkObject(cdkObject), + EventBusAttributes { /** * The ARN of this event bus resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusPolicyProps.kt index dd66ade71c..944be4fc54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusPolicyProps.kt @@ -114,7 +114,8 @@ public interface EventBusPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.EventBusPolicyProps, - ) : CdkObject(cdkObject), EventBusPolicyProps { + ) : CdkObject(cdkObject), + EventBusPolicyProps { /** * The event bus to which the policy applies. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusProps.kt index d6d5d2cecb..a78b2f2ab4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventBusProps.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.events import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.String import kotlin.Unit @@ -15,22 +16,32 @@ import kotlin.Unit * * ``` * import io.cloudshiftdev.awscdk.services.events.*; - * EventBus eventBus = EventBus.Builder.create(this, "EventBus") - * .eventBusName("DomainEvents") + * EventBus myEventBus = EventBus.Builder.create(this, "EventBus") + * .eventBusName("MyEventBus1") * .build(); - * EventBridgePutEventsEntry eventEntry = EventBridgePutEventsEntry.builder() - * .eventBus(eventBus) - * .source("PetService") - * .detail(ScheduleTargetInput.fromObject(Map.of("Name", "Fluffy"))) - * .detailType("🐶") - * .build(); - * Schedule.Builder.create(this, "Schedule") - * .schedule(ScheduleExpression.rate(Duration.hours(1))) - * .target(EventBridgePutEvents.Builder.create(eventEntry).build()) + * EventBridgePutEvents.Builder.create(this, "Send an event to EventBridge") + * .entries(List.of(EventBridgePutEventsEntry.builder() + * .detail(TaskInput.fromObject(Map.of( + * "Message", "Hello from Step Functions!"))) + * .eventBus(myEventBus) + * .detailType("MessageFromStepFunctions") + * .source("step.functions") + * .build())) * .build(); * ``` */ public interface EventBusProps { + /** + * The event bus description. + * + * The description can be up to 512 characters long. + * + * Default: - no description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + */ + public fun description(): String? = unwrap(this).getDescription() + /** * The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot * set this. @@ -47,11 +58,24 @@ public interface EventBusProps { */ public fun eventSourceName(): String? = unwrap(this).getEventSourceName() + /** + * The customer managed key that encrypt events on this event bus. + * + * Default: - Use an AWS managed key + */ + public fun kmsKey(): IKey? = unwrap(this).getKmsKey()?.let(IKey::wrap) + /** * A builder for [EventBusProps] */ @CdkDslMarker public interface Builder { + /** + * @param description The event bus description. + * The description can be up to 512 characters long. + */ + public fun description(description: String) + /** * @param eventBusName The name of the event bus you are creating Note: If 'eventSourceName' is * passed in, you cannot set this. @@ -63,12 +87,25 @@ public interface EventBusProps { * Note: If 'eventBusName' is passed in, you cannot set this. */ public fun eventSourceName(eventSourceName: String) + + /** + * @param kmsKey The customer managed key that encrypt events on this event bus. + */ + public fun kmsKey(kmsKey: IKey) } private class BuilderImpl : Builder { private val cdkBuilder: software.amazon.awscdk.services.events.EventBusProps.Builder = software.amazon.awscdk.services.events.EventBusProps.builder() + /** + * @param description The event bus description. + * The description can be up to 512 characters long. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + /** * @param eventBusName The name of the event bus you are creating Note: If 'eventSourceName' is * passed in, you cannot set this. @@ -85,12 +122,31 @@ public interface EventBusProps { cdkBuilder.eventSourceName(eventSourceName) } + /** + * @param kmsKey The customer managed key that encrypt events on this event bus. + */ + override fun kmsKey(kmsKey: IKey) { + cdkBuilder.kmsKey(kmsKey.let(IKey.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.events.EventBusProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.events.EventBusProps, - ) : CdkObject(cdkObject), EventBusProps { + ) : CdkObject(cdkObject), + EventBusProps { + /** + * The event bus description. + * + * The description can be up to 512 characters long. + * + * Default: - no description + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-description) + */ + override fun description(): String? = unwrap(this).getDescription() + /** * The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you * cannot set this. @@ -106,6 +162,13 @@ public interface EventBusProps { * Default: - no partner event source */ override fun eventSourceName(): String? = unwrap(this).getEventSourceName() + + /** + * The customer managed key that encrypt events on this event bus. + * + * Default: - Use an AWS managed key + */ + override fun kmsKey(): IKey? = unwrap(this).getKmsKey()?.let(IKey::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventCommonOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventCommonOptions.kt index 5552df5667..9ad7662eff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventCommonOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventCommonOptions.kt @@ -174,7 +174,8 @@ public interface EventCommonOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.EventCommonOptions, - ) : CdkObject(cdkObject), EventCommonOptions { + ) : CdkObject(cdkObject), + EventCommonOptions { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventField.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventField.kt index aa5be29b3a..2fd9cd0565 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventField.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventField.kt @@ -28,7 +28,8 @@ import kotlin.collections.List */ public open class EventField( cdkObject: software.amazon.awscdk.services.events.EventField, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { /** * The creation stack of this resolvable which will be appended to errors thrown during * resolution. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventPattern.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventPattern.kt index 6d84c9c8d5..aed9e6bf6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventPattern.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/EventPattern.kt @@ -456,7 +456,8 @@ public interface EventPattern { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.EventPattern, - ) : CdkObject(cdkObject), EventPattern { + ) : CdkObject(cdkObject), + EventPattern { /** * The 12-digit number identifying an AWS account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IApiDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IApiDestination.kt index 6660f027f9..684739bfbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IApiDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IApiDestination.kt @@ -27,7 +27,8 @@ public interface IApiDestination : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.IApiDestination, - ) : CdkObject(cdkObject), IApiDestination { + ) : CdkObject(cdkObject), + IApiDestination { /** * The ARN of the Api Destination created. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IConnection.kt index 71694a580e..817286a11f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IConnection.kt @@ -32,7 +32,8 @@ public interface IConnection : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.IConnection, - ) : CdkObject(cdkObject), IConnection { + ) : CdkObject(cdkObject), + IConnection { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IEventBus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IEventBus.kt index 9621c02ed8..de2a29a926 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IEventBus.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IEventBus.kt @@ -75,7 +75,8 @@ public interface IEventBus : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.IEventBus, - ) : CdkObject(cdkObject), IEventBus { + ) : CdkObject(cdkObject), + IEventBus { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRule.kt index bc918db558..5ba329d01c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRule.kt @@ -28,7 +28,8 @@ public interface IRule : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.IRule, - ) : CdkObject(cdkObject), IRule { + ) : CdkObject(cdkObject), + IRule { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRuleTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRuleTarget.kt index 7afe4671f8..360b63ba82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRuleTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/IRuleTarget.kt @@ -32,7 +32,8 @@ public interface IRuleTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.IRuleTarget, - ) : CdkObject(cdkObject), IRuleTarget { + ) : CdkObject(cdkObject), + IRuleTarget { /** * Returns the rule target specification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Match.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Match.kt index 748ac14be9..09b0f62241 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Match.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Match.kt @@ -34,7 +34,8 @@ import kotlin.collections.List */ public open class Match( cdkObject: software.amazon.awscdk.services.events.Match, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { /** * A representation of this matcher as a list of strings. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OAuthAuthorizationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OAuthAuthorizationProps.kt index 9c3a4746fb..29042fe153 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OAuthAuthorizationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OAuthAuthorizationProps.kt @@ -191,7 +191,8 @@ public interface OAuthAuthorizationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.OAuthAuthorizationProps, - ) : CdkObject(cdkObject), OAuthAuthorizationProps { + ) : CdkObject(cdkObject), + OAuthAuthorizationProps { /** * The URL to the authorization endpoint. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OnEventOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OnEventOptions.kt index 234be356c6..d2d6f292fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OnEventOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/OnEventOptions.kt @@ -153,7 +153,8 @@ public interface OnEventOptions : EventCommonOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.OnEventOptions, - ) : CdkObject(cdkObject), OnEventOptions { + ) : CdkObject(cdkObject), + OnEventOptions { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Rule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Rule.kt index 6b8842dbc7..741bfd0c30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Rule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Rule.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Rule( cdkObject: software.amazon.awscdk.services.events.Rule, -) : Resource(cdkObject), IRule { +) : Resource(cdkObject), + IRule { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.events.Rule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleProps.kt index 9019081db9..eba4983dd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleProps.kt @@ -247,7 +247,8 @@ public interface RuleProps : EventCommonOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.RuleProps, - ) : CdkObject(cdkObject), RuleProps { + ) : CdkObject(cdkObject), + RuleProps { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetConfig.kt index 2f464fdd74..19e996d24b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetConfig.kt @@ -94,6 +94,16 @@ import kotlin.jvm.JvmName * .kinesisParameters(KinesisParametersProperty.builder() * .partitionKeyPath("partitionKeyPath") * .build()) + * .redshiftDataParameters(RedshiftDataParametersProperty.builder() + * .database("database") + * // the properties below are optional + * .dbUser("dbUser") + * .secretManagerArn("secretManagerArn") + * .sql("sql") + * .sqls(List.of("sqls")) + * .statementName("statementName") + * .withEvent(false) + * .build()) * .retryPolicy(RetryPolicyProperty.builder() * .maximumEventAgeInSeconds(123) * .maximumRetryAttempts(123) @@ -175,6 +185,14 @@ public interface RuleTargetConfig { public fun kinesisParameters(): CfnRule.KinesisParametersProperty? = unwrap(this).getKinesisParameters()?.let(CfnRule.KinesisParametersProperty::wrap) + /** + * Parameters used when the rule invokes Amazon Redshift Queries. + * + * Default: - no parameters set + */ + public fun redshiftDataParameters(): CfnRule.RedshiftDataParametersProperty? = + unwrap(this).getRedshiftDataParameters()?.let(CfnRule.RedshiftDataParametersProperty::wrap) + /** * A RetryPolicy object that includes information about the retry policy settings. * @@ -317,6 +335,20 @@ public interface RuleTargetConfig { public fun kinesisParameters(kinesisParameters: CfnRule.KinesisParametersProperty.Builder.() -> Unit) + /** + * @param redshiftDataParameters Parameters used when the rule invokes Amazon Redshift Queries. + */ + public + fun redshiftDataParameters(redshiftDataParameters: CfnRule.RedshiftDataParametersProperty) + + /** + * @param redshiftDataParameters Parameters used when the rule invokes Amazon Redshift Queries. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a0a924bfe5d6d9baa7fc8c0b1263ffa80e2ec38ea528ec68fdd2129b17aab7f") + public + fun redshiftDataParameters(redshiftDataParameters: CfnRule.RedshiftDataParametersProperty.Builder.() -> Unit) + /** * @param retryPolicy A RetryPolicy object that includes information about the retry policy * settings. @@ -501,6 +533,24 @@ public interface RuleTargetConfig { fun kinesisParameters(kinesisParameters: CfnRule.KinesisParametersProperty.Builder.() -> Unit): Unit = kinesisParameters(CfnRule.KinesisParametersProperty(kinesisParameters)) + /** + * @param redshiftDataParameters Parameters used when the rule invokes Amazon Redshift Queries. + */ + override + fun redshiftDataParameters(redshiftDataParameters: CfnRule.RedshiftDataParametersProperty) { + cdkBuilder.redshiftDataParameters(redshiftDataParameters.let(CfnRule.RedshiftDataParametersProperty.Companion::unwrap)) + } + + /** + * @param redshiftDataParameters Parameters used when the rule invokes Amazon Redshift Queries. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a0a924bfe5d6d9baa7fc8c0b1263ffa80e2ec38ea528ec68fdd2129b17aab7f") + override + fun redshiftDataParameters(redshiftDataParameters: CfnRule.RedshiftDataParametersProperty.Builder.() -> Unit): + Unit = + redshiftDataParameters(CfnRule.RedshiftDataParametersProperty(redshiftDataParameters)) + /** * @param retryPolicy A RetryPolicy object that includes information about the retry policy * settings. @@ -578,7 +628,8 @@ public interface RuleTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.RuleTargetConfig, - ) : CdkObject(cdkObject), RuleTargetConfig { + ) : CdkObject(cdkObject), + RuleTargetConfig { /** * Contains the GraphQL operation to be parsed and executed, if the event target is an AWS * AppSync API. @@ -641,6 +692,14 @@ public interface RuleTargetConfig { override fun kinesisParameters(): CfnRule.KinesisParametersProperty? = unwrap(this).getKinesisParameters()?.let(CfnRule.KinesisParametersProperty::wrap) + /** + * Parameters used when the rule invokes Amazon Redshift Queries. + * + * Default: - no parameters set + */ + override fun redshiftDataParameters(): CfnRule.RedshiftDataParametersProperty? = + unwrap(this).getRedshiftDataParameters()?.let(CfnRule.RedshiftDataParametersProperty::wrap) + /** * A RetryPolicy object that includes information about the retry policy settings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetInputProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetInputProperties.kt index 66012eaaaa..6898fe5350 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetInputProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/RuleTargetInputProperties.kt @@ -121,7 +121,8 @@ public interface RuleTargetInputProperties { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.RuleTargetInputProperties, - ) : CdkObject(cdkObject), RuleTargetInputProperties { + ) : CdkObject(cdkObject), + RuleTargetInputProperties { /** * Literal input to the target service (must be valid JSON). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Schedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Schedule.kt index 7a1b90dfef..1cae8ce657 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Schedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/Schedule.kt @@ -17,21 +17,16 @@ import kotlin.jvm.JvmName * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.ecs.*; - * ICluster cluster; - * TaskDefinition taskDefinition; + * import io.cloudshiftdev.awscdk.services.redshiftserverless.*; + * CfnWorkgroup workgroup; * Rule rule = Rule.Builder.create(this, "Rule") * .schedule(Schedule.rate(Duration.hours(1))) * .build(); - * rule.addTarget( - * EcsTask.Builder.create() - * .cluster(cluster) - * .taskDefinition(taskDefinition) - * .propagateTags(PropagatedTagSource.TASK_DEFINITION) - * .tags(List.of(Tag.builder() - * .key("my-tag") - * .value("my-tag-value") - * .build())) + * Queue dlq = new Queue(this, "DeadLetterQueue"); + * rule.addTarget(RedshiftQuery.Builder.create(workgroup.getAttrWorkgroupWorkgroupArn()) + * .database("dev") + * .deadLetterQueue(dlq) + * .sql(List.of("SELECT * FROM foo", "SELECT * FROM baz")) * .build()); * ``` * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestination.kt index ef75d949f8..966144cdbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestination.kt @@ -42,7 +42,8 @@ import software.amazon.awscdk.services.events.IApiDestination as AmazonAwscdkSer */ public open class ApiDestination( cdkObject: software.amazon.awscdk.services.events.targets.ApiDestination, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(apiDestination: CloudshiftdevAwscdkServicesEventsIApiDestination) : this(software.amazon.awscdk.services.events.targets.ApiDestination(apiDestination.let(CloudshiftdevAwscdkServicesEventsIApiDestination.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestinationProps.kt index 654c9a1d1a..343b58f9db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiDestinationProps.kt @@ -269,7 +269,8 @@ public interface ApiDestinationProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.ApiDestinationProps, - ) : CdkObject(cdkObject), ApiDestinationProps { + ) : CdkObject(cdkObject), + ApiDestinationProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGateway.kt index cd2f1d6384..d4720a7bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGateway.kt @@ -55,7 +55,8 @@ import software.amazon.awscdk.services.apigateway.IRestApi as AmazonAwscdkServic */ public open class ApiGateway( cdkObject: software.amazon.awscdk.services.events.targets.ApiGateway, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(restApi: CloudshiftdevAwscdkServicesApigatewayIRestApi) : this(software.amazon.awscdk.services.events.targets.ApiGateway(restApi.let(CloudshiftdevAwscdkServicesApigatewayIRestApi.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGatewayProps.kt index 2145120418..7f4a740491 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ApiGatewayProps.kt @@ -304,7 +304,8 @@ public interface ApiGatewayProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.ApiGatewayProps, - ) : CdkObject(cdkObject), ApiGatewayProps { + ) : CdkObject(cdkObject), + ApiGatewayProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSync.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSync.kt index aac7603c79..7b6a9b7288 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSync.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSync.kt @@ -44,7 +44,8 @@ import software.amazon.awscdk.services.appsync.IGraphqlApi as AmazonAwscdkServic */ public open class AppSync( cdkObject: software.amazon.awscdk.services.events.targets.AppSync, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(appsyncApi: CloudshiftdevAwscdkServicesAppsyncIGraphqlApi, props: AppSyncGraphQLApiProps) : this(software.amazon.awscdk.services.events.targets.AppSync(appsyncApi.let(CloudshiftdevAwscdkServicesAppsyncIGraphqlApi.Companion::unwrap), diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSyncGraphQLApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSyncGraphQLApiProps.kt index 40eaf1c6e1..1533841a35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSyncGraphQLApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AppSyncGraphQLApiProps.kt @@ -181,7 +181,8 @@ public interface AppSyncGraphQLApiProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.AppSyncGraphQLApiProps, - ) : CdkObject(cdkObject), AppSyncGraphQLApiProps { + ) : CdkObject(cdkObject), + AppSyncGraphQLApiProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApi.kt index 8bc40203cc..e1dc8cfa2c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApi.kt @@ -39,7 +39,8 @@ import kotlin.jvm.JvmName */ public open class AwsApi( cdkObject: software.amazon.awscdk.services.events.targets.AwsApi, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(props: AwsApiProps) : this(software.amazon.awscdk.services.events.targets.AwsApi(props.let(AwsApiProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiInput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiInput.kt index 24e4bad773..3ad39a1429 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiInput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiInput.kt @@ -162,7 +162,8 @@ public interface AwsApiInput { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.AwsApiInput, - ) : CdkObject(cdkObject), AwsApiInput { + ) : CdkObject(cdkObject), + AwsApiInput { /** * The service action to call. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiProps.kt index d846eedc15..32eee1f143 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/AwsApiProps.kt @@ -170,7 +170,8 @@ public interface AwsApiProps : AwsApiInput { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.AwsApiProps, - ) : CdkObject(cdkObject), AwsApiProps { + ) : CdkObject(cdkObject), + AwsApiProps { /** * The service action to call. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJob.kt index ea9840a1d5..9afa4f9ef7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJob.kt @@ -65,7 +65,8 @@ import software.constructs.IConstruct as SoftwareConstructsIConstruct */ public open class BatchJob( cdkObject: software.amazon.awscdk.services.events.targets.BatchJob, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor( jobQueueArn: String, jobQueueScope: CloudshiftdevConstructsIConstruct, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJobProps.kt index 1dc56fd9a8..a9655c4982 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/BatchJobProps.kt @@ -219,7 +219,8 @@ public interface BatchJobProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.BatchJobProps, - ) : CdkObject(cdkObject), BatchJobProps { + ) : CdkObject(cdkObject), + BatchJobProps { /** * The number of times to attempt to retry, if the job fails. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CloudWatchLogGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CloudWatchLogGroup.kt index 8edad9b926..aaf249866c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CloudWatchLogGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CloudWatchLogGroup.kt @@ -37,7 +37,8 @@ import software.amazon.awscdk.services.logs.ILogGroup as AmazonAwscdkServicesLog */ public open class CloudWatchLogGroup( cdkObject: software.amazon.awscdk.services.events.targets.CloudWatchLogGroup, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(logGroup: CloudshiftdevAwscdkServicesLogsILogGroup) : this(software.amazon.awscdk.services.events.targets.CloudWatchLogGroup(logGroup.let(CloudshiftdevAwscdkServicesLogsILogGroup.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProject.kt index f4c484386e..dd3dcf126a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProject.kt @@ -41,7 +41,8 @@ import software.amazon.awscdk.services.codebuild.IProject as AmazonAwscdkService */ public open class CodeBuildProject( cdkObject: software.amazon.awscdk.services.events.targets.CodeBuildProject, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(project: CloudshiftdevAwscdkServicesCodebuildIProject) : this(software.amazon.awscdk.services.events.targets.CodeBuildProject(project.let(CloudshiftdevAwscdkServicesCodebuildIProject.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProjectProps.kt index 6dbd1ca18c..37f1636665 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodeBuildProjectProps.kt @@ -159,7 +159,8 @@ public interface CodeBuildProjectProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.CodeBuildProjectProps, - ) : CdkObject(cdkObject), CodeBuildProjectProps { + ) : CdkObject(cdkObject), + CodeBuildProjectProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipeline.kt index 64240c1beb..4b7f9cdd0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipeline.kt @@ -35,7 +35,8 @@ import software.amazon.awscdk.services.codepipeline.IPipeline as AmazonAwscdkSer */ public open class CodePipeline( cdkObject: software.amazon.awscdk.services.events.targets.CodePipeline, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(pipeline: CloudshiftdevAwscdkServicesCodepipelineIPipeline) : this(software.amazon.awscdk.services.events.targets.CodePipeline(pipeline.let(CloudshiftdevAwscdkServicesCodepipelineIPipeline.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipelineTargetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipelineTargetOptions.kt index 82f50a0706..122edb1f8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipelineTargetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/CodePipelineTargetOptions.kt @@ -133,7 +133,8 @@ public interface CodePipelineTargetOptions : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.CodePipelineTargetOptions, - ) : CdkObject(cdkObject), CodePipelineTargetOptions { + ) : CdkObject(cdkObject), + CodePipelineTargetOptions { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ContainerOverride.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ContainerOverride.kt index aaa5d8b38a..9294e1cdff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ContainerOverride.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/ContainerOverride.kt @@ -180,7 +180,8 @@ public interface ContainerOverride { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.ContainerOverride, - ) : CdkObject(cdkObject), ContainerOverride { + ) : CdkObject(cdkObject), + ContainerOverride { /** * Command to run inside the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTask.kt index c4dacd341f..c46e5ff2de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTask.kt @@ -48,7 +48,8 @@ import kotlin.jvm.JvmName */ public open class EcsTask( cdkObject: software.amazon.awscdk.services.events.targets.EcsTask, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(props: EcsTaskProps) : this(software.amazon.awscdk.services.events.targets.EcsTask(props.let(EcsTaskProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTaskProps.kt index a73ed82179..5e5fddff99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EcsTaskProps.kt @@ -473,7 +473,8 @@ public interface EcsTaskProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.EcsTaskProps, - ) : CdkObject(cdkObject), EcsTaskProps { + ) : CdkObject(cdkObject), + EcsTaskProps { /** * Specifies whether the task's elastic network interface receives a public IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBus.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBus.kt index e08362c4dd..13876173be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBus.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBus.kt @@ -29,7 +29,8 @@ import software.amazon.awscdk.services.events.IEventBus as AmazonAwscdkServicesE */ public open class EventBus( cdkObject: software.amazon.awscdk.services.events.targets.EventBus, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(eventBus: CloudshiftdevAwscdkServicesEventsIEventBus) : this(software.amazon.awscdk.services.events.targets.EventBus(eventBus.let(CloudshiftdevAwscdkServicesEventsIEventBus.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBusProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBusProps.kt index b80e53f786..67a112cb71 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBusProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/EventBusProps.kt @@ -106,7 +106,8 @@ public interface EventBusProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.EventBusProps, - ) : CdkObject(cdkObject), EventBusProps { + ) : CdkObject(cdkObject), + EventBusProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/IDeliveryStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/IDeliveryStream.kt new file mode 100644 index 0000000000..f130eaba62 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/IDeliveryStream.kt @@ -0,0 +1,88 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.events.targets + +import io.cloudshiftdev.awscdk.IResource +import io.cloudshiftdev.awscdk.RemovalPolicy +import io.cloudshiftdev.awscdk.ResourceEnvironment +import io.cloudshiftdev.awscdk.Stack +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.constructs.Node +import kotlin.String + +/** + * Represents a Kinesis Data Firehose delivery stream. + */ +public interface IDeliveryStream : IResource { + /** + * The ARN of the delivery stream. + */ + public fun deliveryStreamArn(): String + + /** + * The name of the delivery stream. + */ + public fun deliveryStreamName(): String + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.events.targets.IDeliveryStream, + ) : CdkObject(cdkObject), + IDeliveryStream { + /** + * Apply the given removal policy to this resource. + * + * The Removal Policy controls what happens to this resource when it stops + * being managed by CloudFormation, either because you've removed it from the + * CDK application or because you've made a change that requires the resource + * to be replaced. + * + * The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS + * account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). + * + * @param policy + */ + override fun applyRemovalPolicy(policy: RemovalPolicy) { + unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) + } + + /** + * The ARN of the delivery stream. + */ + override fun deliveryStreamArn(): String = unwrap(this).getDeliveryStreamArn() + + /** + * The name of the delivery stream. + */ + override fun deliveryStreamName(): String = unwrap(this).getDeliveryStreamName() + + /** + * The environment this resource belongs to. + * + * For resources that are created and managed by the CDK + * (generally, those created by creating new class instances like Role, Bucket, etc.), + * this is always the same as the environment of the stack they belong to; + * however, for imported resources + * (those obtained from static methods like fromRoleArn, fromBucketName, etc.), + * that might be different than the stack they were imported into. + */ + override fun env(): ResourceEnvironment = unwrap(this).getEnv().let(ResourceEnvironment::wrap) + + override fun node(): Node = unwrap(this).getNode().let(Node::wrap) + + /** + * The stack in which this resource is defined. + */ + override fun stack(): Stack = unwrap(this).getStack().let(Stack::wrap) + } + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.events.targets.IDeliveryStream): + IDeliveryStream = CdkObjectWrappers.wrap(cdkObject) as? IDeliveryStream ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IDeliveryStream): + software.amazon.awscdk.services.events.targets.IDeliveryStream = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.events.targets.IDeliveryStream + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStream.kt index 546cc3e247..ad60681afa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStream.kt @@ -8,13 +8,14 @@ import io.cloudshiftdev.awscdk.services.events.IRule import io.cloudshiftdev.awscdk.services.events.IRuleTarget import io.cloudshiftdev.awscdk.services.events.RuleTargetConfig import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import kotlin.Deprecated import kotlin.String import kotlin.Unit import io.cloudshiftdev.awscdk.services.kinesisfirehose.CfnDeliveryStream as CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream import software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream as AmazonAwscdkServicesKinesisfirehoseCfnDeliveryStream /** - * Customize the Firehose Stream Event Target. + * (deprecated) Customize the Firehose Stream Event Target. * * Example: * @@ -31,49 +32,59 @@ import software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream as Amaz * .message(ruleTargetInput) * .build(); * ``` + * + * @deprecated Use KinesisFirehoseStreamV2 */ public open class KinesisFirehoseStream( cdkObject: software.amazon.awscdk.services.events.targets.KinesisFirehoseStream, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { + @Deprecated(message = "deprecated in CDK") public constructor(stream: CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream) : this(software.amazon.awscdk.services.events.targets.KinesisFirehoseStream(stream.let(CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream.Companion::unwrap)) ) + @Deprecated(message = "deprecated in CDK") public constructor(stream: CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream, props: KinesisFirehoseStreamProps) : this(software.amazon.awscdk.services.events.targets.KinesisFirehoseStream(stream.let(CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream.Companion::unwrap), props.let(KinesisFirehoseStreamProps.Companion::unwrap)) ) + @Deprecated(message = "deprecated in CDK") public constructor(stream: CloudshiftdevAwscdkServicesKinesisfirehoseCfnDeliveryStream, props: KinesisFirehoseStreamProps.Builder.() -> Unit) : this(stream, KinesisFirehoseStreamProps(props) ) /** - * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event - * Bridge event. + * (deprecated) Returns a RuleTarget that can be used to trigger this Firehose Stream as a result + * from a Event Bridge event. * * @param _rule * @param _id */ + @Deprecated(message = "deprecated in CDK") public override fun bind(rule: IRule): RuleTargetConfig = unwrap(this).bind(rule.let(IRule.Companion::unwrap)).let(RuleTargetConfig::wrap) /** - * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event - * Bridge event. + * (deprecated) Returns a RuleTarget that can be used to trigger this Firehose Stream as a result + * from a Event Bridge event. * * @param _rule * @param _id */ + @Deprecated(message = "deprecated in CDK") public override fun bind(rule: IRule, id: String): RuleTargetConfig = unwrap(this).bind(rule.let(IRule.Companion::unwrap), id).let(RuleTargetConfig::wrap) /** - * A fluent builder for [io.cloudshiftdev.awscdk.services.events.targets.KinesisFirehoseStream]. + * (deprecated) A fluent builder for + * [io.cloudshiftdev.awscdk.services.events.targets.KinesisFirehoseStream]. */ @CdkDslMarker + @Deprecated(message = "deprecated in CDK") public interface Builder { /** * The message to send to the stream. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamProps.kt index 66178907ce..aae1e37f08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamProps.kt @@ -65,7 +65,8 @@ public interface KinesisFirehoseStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps, - ) : CdkObject(cdkObject), KinesisFirehoseStreamProps { + ) : CdkObject(cdkObject), + KinesisFirehoseStreamProps { /** * The message to send to the stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamV2.kt new file mode 100644 index 0000000000..e9416bb9c0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisFirehoseStreamV2.kt @@ -0,0 +1,126 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.events.targets + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.events.IRule +import io.cloudshiftdev.awscdk.services.events.IRuleTarget +import io.cloudshiftdev.awscdk.services.events.RuleTargetConfig +import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import kotlin.String +import kotlin.Unit + +/** + * Customize the Firehose Stream Event Target V2 to support L2 Kinesis Delivery Stream instead of L1 + * Cfn Kinesis Delivery Stream. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.events.*; + * import io.cloudshiftdev.awscdk.services.events.targets.*; + * IDeliveryStream deliveryStream; + * RuleTargetInput ruleTargetInput; + * KinesisFirehoseStreamV2 kinesisFirehoseStreamV2 = + * KinesisFirehoseStreamV2.Builder.create(deliveryStream) + * .message(ruleTargetInput) + * .build(); + * ``` + */ +public open class KinesisFirehoseStreamV2( + cdkObject: software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2, +) : CdkObject(cdkObject), + IRuleTarget { + public constructor(stream: IDeliveryStream) : + this(software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2(stream.let(IDeliveryStream.Companion::unwrap)) + ) + + public constructor(stream: IDeliveryStream, props: KinesisFirehoseStreamProps) : + this(software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2(stream.let(IDeliveryStream.Companion::unwrap), + props.let(KinesisFirehoseStreamProps.Companion::unwrap)) + ) + + public constructor(stream: IDeliveryStream, props: KinesisFirehoseStreamProps.Builder.() -> Unit) + : this(stream, KinesisFirehoseStreamProps(props) + ) + + /** + * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event + * Bridge event. + * + * @param _rule + * @param _id + */ + public override fun bind(rule: IRule): RuleTargetConfig = + unwrap(this).bind(rule.let(IRule.Companion::unwrap)).let(RuleTargetConfig::wrap) + + /** + * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event + * Bridge event. + * + * @param _rule + * @param _id + */ + public override fun bind(rule: IRule, id: String): RuleTargetConfig = + unwrap(this).bind(rule.let(IRule.Companion::unwrap), id).let(RuleTargetConfig::wrap) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.events.targets.KinesisFirehoseStreamV2]. + */ + @CdkDslMarker + public interface Builder { + /** + * The message to send to the stream. + * + * Must be a valid JSON text passed to the target stream. + * + * Default: - the entire Event Bridge event + * + * @param message The message to send to the stream. + */ + public fun message(message: RuleTargetInput) + } + + private class BuilderImpl( + stream: software.amazon.awscdk.services.events.targets.IDeliveryStream, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2.Builder = + software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2.Builder.create(stream) + + /** + * The message to send to the stream. + * + * Must be a valid JSON text passed to the target stream. + * + * Default: - the entire Event Bridge event + * + * @param message The message to send to the stream. + */ + override fun message(message: RuleTargetInput) { + cdkBuilder.message(message.let(RuleTargetInput.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2 = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke(stream: IDeliveryStream, block: Builder.() -> Unit = {}): + KinesisFirehoseStreamV2 { + val builderImpl = BuilderImpl(IDeliveryStream.unwrap(stream)) + return KinesisFirehoseStreamV2(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2): + KinesisFirehoseStreamV2 = KinesisFirehoseStreamV2(cdkObject) + + internal fun unwrap(wrapped: KinesisFirehoseStreamV2): + software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2 = wrapped.cdkObject + as software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamV2 + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStream.kt index e3f7015945..04ddcfdf5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStream.kt @@ -2,12 +2,15 @@ package io.cloudshiftdev.awscdk.services.events.targets +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.services.events.IRule import io.cloudshiftdev.awscdk.services.events.IRuleTarget import io.cloudshiftdev.awscdk.services.events.RuleTargetConfig import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import io.cloudshiftdev.awscdk.services.sqs.IQueue +import kotlin.Number import kotlin.String import kotlin.Unit import io.cloudshiftdev.awscdk.services.kinesis.IStream as CloudshiftdevAwscdkServicesKinesisIStream @@ -27,7 +30,8 @@ import software.amazon.awscdk.services.kinesis.IStream as AmazonAwscdkServicesKi */ public open class KinesisStream( cdkObject: software.amazon.awscdk.services.events.targets.KinesisStream, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(stream: CloudshiftdevAwscdkServicesKinesisIStream) : this(software.amazon.awscdk.services.events.targets.KinesisStream(stream.let(CloudshiftdevAwscdkServicesKinesisIStream.Companion::unwrap)) ) @@ -66,6 +70,39 @@ public open class KinesisStream( */ @CdkDslMarker public interface Builder { + /** + * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a + * dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * + * The events not successfully delivered are automatically retried for a specified period of + * time, + * depending on the retry policy of the target. + * If an event is not delivered before all retry attempts are exhausted, it will be sent to the + * dead letter queue. + * + * Default: - no dead-letter queue + * + * @param deadLetterQueue The SQS queue to be used as deadLetterQueue. Check out the + * [considerations for using a dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * + */ + public fun deadLetterQueue(deadLetterQueue: IQueue) + + /** + * The maximum age of a request that Lambda sends to a function for processing. + * + * Minimum value of 60. + * Maximum value of 86400. + * + * Default: Duration.hours(24) + * + * @param maxEventAge The maximum age of a request that Lambda sends to a function for + * processing. + */ + public fun maxEventAge(maxEventAge: Duration) + /** * The message to send to the stream. * @@ -85,6 +122,19 @@ public open class KinesisStream( * @param partitionKeyPath Partition Key Path for records sent to this stream. */ public fun partitionKeyPath(partitionKeyPath: String) + + /** + * The maximum number of times to retry when the function returns an error. + * + * Minimum value of 0. + * Maximum value of 185. + * + * Default: 185 + * + * @param retryAttempts The maximum number of times to retry when the function returns an error. + * + */ + public fun retryAttempts(retryAttempts: Number) } private class BuilderImpl( @@ -93,6 +143,43 @@ public open class KinesisStream( private val cdkBuilder: software.amazon.awscdk.services.events.targets.KinesisStream.Builder = software.amazon.awscdk.services.events.targets.KinesisStream.Builder.create(stream) + /** + * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a + * dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * + * The events not successfully delivered are automatically retried for a specified period of + * time, + * depending on the retry policy of the target. + * If an event is not delivered before all retry attempts are exhausted, it will be sent to the + * dead letter queue. + * + * Default: - no dead-letter queue + * + * @param deadLetterQueue The SQS queue to be used as deadLetterQueue. Check out the + * [considerations for using a dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * + */ + override fun deadLetterQueue(deadLetterQueue: IQueue) { + cdkBuilder.deadLetterQueue(deadLetterQueue.let(IQueue.Companion::unwrap)) + } + + /** + * The maximum age of a request that Lambda sends to a function for processing. + * + * Minimum value of 60. + * Maximum value of 86400. + * + * Default: Duration.hours(24) + * + * @param maxEventAge The maximum age of a request that Lambda sends to a function for + * processing. + */ + override fun maxEventAge(maxEventAge: Duration) { + cdkBuilder.maxEventAge(maxEventAge.let(Duration.Companion::unwrap)) + } + /** * The message to send to the stream. * @@ -117,6 +204,21 @@ public open class KinesisStream( cdkBuilder.partitionKeyPath(partitionKeyPath) } + /** + * The maximum number of times to retry when the function returns an error. + * + * Minimum value of 0. + * Maximum value of 185. + * + * Default: 185 + * + * @param retryAttempts The maximum number of times to retry when the function returns an error. + * + */ + override fun retryAttempts(retryAttempts: Number) { + cdkBuilder.retryAttempts(retryAttempts) + } + public fun build(): software.amazon.awscdk.services.events.targets.KinesisStream = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStreamProps.kt index b85b2f9dbc..7fe5f630e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/KinesisStreamProps.kt @@ -2,10 +2,13 @@ package io.cloudshiftdev.awscdk.services.events.targets +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import io.cloudshiftdev.awscdk.services.sqs.IQueue +import kotlin.Number import kotlin.String import kotlin.Unit @@ -17,16 +20,22 @@ import kotlin.Unit * ``` * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; * import io.cloudshiftdev.awscdk.services.events.*; * import io.cloudshiftdev.awscdk.services.events.targets.*; + * import io.cloudshiftdev.awscdk.services.sqs.*; + * Queue queue; * RuleTargetInput ruleTargetInput; * KinesisStreamProps kinesisStreamProps = KinesisStreamProps.builder() + * .deadLetterQueue(queue) + * .maxEventAge(Duration.minutes(30)) * .message(ruleTargetInput) * .partitionKeyPath("partitionKeyPath") + * .retryAttempts(123) * .build(); * ``` */ -public interface KinesisStreamProps { +public interface KinesisStreamProps : TargetBaseProps { /** * The message to send to the stream. * @@ -48,6 +57,26 @@ public interface KinesisStreamProps { */ @CdkDslMarker public interface Builder { + /** + * @param deadLetterQueue The SQS queue to be used as deadLetterQueue. Check out the + * [considerations for using a dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * The events not successfully delivered are automatically retried for a specified period of + * time, + * depending on the retry policy of the target. + * If an event is not delivered before all retry attempts are exhausted, it will be sent to the + * dead letter queue. + */ + public fun deadLetterQueue(deadLetterQueue: IQueue) + + /** + * @param maxEventAge The maximum age of a request that Lambda sends to a function for + * processing. + * Minimum value of 60. + * Maximum value of 86400. + */ + public fun maxEventAge(maxEventAge: Duration) + /** * @param message The message to send to the stream. * Must be a valid JSON text passed to the target stream. @@ -58,6 +87,13 @@ public interface KinesisStreamProps { * @param partitionKeyPath Partition Key Path for records sent to this stream. */ public fun partitionKeyPath(partitionKeyPath: String) + + /** + * @param retryAttempts The maximum number of times to retry when the function returns an error. + * Minimum value of 0. + * Maximum value of 185. + */ + public fun retryAttempts(retryAttempts: Number) } private class BuilderImpl : Builder { @@ -65,6 +101,30 @@ public interface KinesisStreamProps { software.amazon.awscdk.services.events.targets.KinesisStreamProps.Builder = software.amazon.awscdk.services.events.targets.KinesisStreamProps.builder() + /** + * @param deadLetterQueue The SQS queue to be used as deadLetterQueue. Check out the + * [considerations for using a dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * The events not successfully delivered are automatically retried for a specified period of + * time, + * depending on the retry policy of the target. + * If an event is not delivered before all retry attempts are exhausted, it will be sent to the + * dead letter queue. + */ + override fun deadLetterQueue(deadLetterQueue: IQueue) { + cdkBuilder.deadLetterQueue(deadLetterQueue.let(IQueue.Companion::unwrap)) + } + + /** + * @param maxEventAge The maximum age of a request that Lambda sends to a function for + * processing. + * Minimum value of 60. + * Maximum value of 86400. + */ + override fun maxEventAge(maxEventAge: Duration) { + cdkBuilder.maxEventAge(maxEventAge.let(Duration.Companion::unwrap)) + } + /** * @param message The message to send to the stream. * Must be a valid JSON text passed to the target stream. @@ -80,13 +140,48 @@ public interface KinesisStreamProps { cdkBuilder.partitionKeyPath(partitionKeyPath) } + /** + * @param retryAttempts The maximum number of times to retry when the function returns an error. + * Minimum value of 0. + * Maximum value of 185. + */ + override fun retryAttempts(retryAttempts: Number) { + cdkBuilder.retryAttempts(retryAttempts) + } + public fun build(): software.amazon.awscdk.services.events.targets.KinesisStreamProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.KinesisStreamProps, - ) : CdkObject(cdkObject), KinesisStreamProps { + ) : CdkObject(cdkObject), + KinesisStreamProps { + /** + * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a + * dead-letter + * queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations). + * + * The events not successfully delivered are automatically retried for a specified period of + * time, + * depending on the retry policy of the target. + * If an event is not delivered before all retry attempts are exhausted, it will be sent to the + * dead letter queue. + * + * Default: - no dead-letter queue + */ + override fun deadLetterQueue(): IQueue? = unwrap(this).getDeadLetterQueue()?.let(IQueue::wrap) + + /** + * The maximum age of a request that Lambda sends to a function for processing. + * + * Minimum value of 60. + * Maximum value of 86400. + * + * Default: Duration.hours(24) + */ + override fun maxEventAge(): Duration? = unwrap(this).getMaxEventAge()?.let(Duration::wrap) + /** * The message to send to the stream. * @@ -102,6 +197,16 @@ public interface KinesisStreamProps { * Default: - eventId as the partition key */ override fun partitionKeyPath(): String? = unwrap(this).getPartitionKeyPath() + + /** + * The maximum number of times to retry when the function returns an error. + * + * Minimum value of 0. + * Maximum value of 185. + * + * Default: 185 + */ + override fun retryAttempts(): Number? = unwrap(this).getRetryAttempts() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunction.kt index 2cf5706bdd..490901f1d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunction.kt @@ -43,7 +43,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class LambdaFunction( cdkObject: software.amazon.awscdk.services.events.targets.LambdaFunction, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(handler: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.services.events.targets.LambdaFunction(handler.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunctionProps.kt index 4987cf85c6..508e7088e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LambdaFunctionProps.kt @@ -137,7 +137,8 @@ public interface LambdaFunctionProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.LambdaFunctionProps, - ) : CdkObject(cdkObject), LambdaFunctionProps { + ) : CdkObject(cdkObject), + LambdaFunctionProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupProps.kt index 3437f6b762..0016f56e7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupProps.kt @@ -182,7 +182,8 @@ public interface LogGroupProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.LogGroupProps, - ) : CdkObject(cdkObject), LogGroupProps { + ) : CdkObject(cdkObject), + LogGroupProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupTargetInputOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupTargetInputOptions.kt index dbffa9b439..598b50e988 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupTargetInputOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/LogGroupTargetInputOptions.kt @@ -97,7 +97,8 @@ public interface LogGroupTargetInputOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.LogGroupTargetInputOptions, - ) : CdkObject(cdkObject), LogGroupTargetInputOptions { + ) : CdkObject(cdkObject), + LogGroupTargetInputOptions { /** * The value provided here will be used in the Log "message" field. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQuery.kt new file mode 100644 index 0000000000..67e3443caf --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQuery.kt @@ -0,0 +1,347 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.events.targets + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.events.IRule +import io.cloudshiftdev.awscdk.services.events.IRuleTarget +import io.cloudshiftdev.awscdk.services.events.RuleTargetConfig +import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import io.cloudshiftdev.awscdk.services.iam.IRole +import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret +import io.cloudshiftdev.awscdk.services.sqs.IQueue +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Schedule an Amazon Redshift Query to be run, using the Redshift Data API. + * + * If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon + * Redshift console, append a `QS2-` prefix to both `statementName` and `ruleName`. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.redshiftserverless.*; + * CfnWorkgroup workgroup; + * Rule rule = Rule.Builder.create(this, "Rule") + * .schedule(Schedule.rate(Duration.hours(1))) + * .build(); + * Queue dlq = new Queue(this, "DeadLetterQueue"); + * rule.addTarget(RedshiftQuery.Builder.create(workgroup.getAttrWorkgroupWorkgroupArn()) + * .database("dev") + * .deadLetterQueue(dlq) + * .sql(List.of("SELECT * FROM foo", "SELECT * FROM baz")) + * .build()); + * ``` + */ +public open class RedshiftQuery( + cdkObject: software.amazon.awscdk.services.events.targets.RedshiftQuery, +) : CdkObject(cdkObject), + IRuleTarget { + public constructor(clusterArn: String, props: RedshiftQueryProps) : + this(software.amazon.awscdk.services.events.targets.RedshiftQuery(clusterArn, + props.let(RedshiftQueryProps.Companion::unwrap)) + ) + + public constructor(clusterArn: String, props: RedshiftQueryProps.Builder.() -> Unit) : + this(clusterArn, RedshiftQueryProps(props) + ) + + /** + * Returns the rule target specification. + * + * NOTE: Do not use the various `inputXxx` options. They can be set in a call to `addTarget`. + * + * @param rule + * @param _id + */ + public override fun bind(rule: IRule): RuleTargetConfig = + unwrap(this).bind(rule.let(IRule.Companion::unwrap)).let(RuleTargetConfig::wrap) + + /** + * Returns the rule target specification. + * + * NOTE: Do not use the various `inputXxx` options. They can be set in a call to `addTarget`. + * + * @param rule + * @param _id + */ + public override fun bind(rule: IRule, id: String): RuleTargetConfig = + unwrap(this).bind(rule.let(IRule.Companion::unwrap), id).let(RuleTargetConfig::wrap) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.events.targets.RedshiftQuery]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Redshift database to run the query against. + * + * @param database The Amazon Redshift database to run the query against. + */ + public fun database(database: String) + + /** + * The Amazon Redshift database user to run the query as. + * + * This is required when authenticating via temporary credentials. + * + * Default: - No Database user is specified + * + * @param dbUser The Amazon Redshift database user to run the query as. + */ + public fun dbUser(dbUser: String) + + /** + * The queue to be used as dead letter queue. + * + * Default: - No dead letter queue is specified + * + * @param deadLetterQueue The queue to be used as dead letter queue. + */ + public fun deadLetterQueue(deadLetterQueue: IQueue) + + /** + * The input to the state machine execution. + * + * Default: - the entire EventBridge event + * + * @param input The input to the state machine execution. + */ + public fun input(input: RuleTargetInput) + + /** + * The IAM role to be used to execute the SQL statement. + * + * Default: - a new role will be created. + * + * @param role The IAM role to be used to execute the SQL statement. + */ + public fun role(role: IRole) + + /** + * The secret containing the password for the database user. + * + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + * + * Default: - No secret is specified + * + * @param secret The secret containing the password for the database user. + */ + public fun secret(secret: ISecret) + + /** + * Should an event be sent back to Event Bridge when the SQL statement is executed. + * + * Default: false + * + * @param sendEventBridgeEvent Should an event be sent back to Event Bridge when the SQL + * statement is executed. + */ + public fun sendEventBridgeEvent(sendEventBridgeEvent: Boolean) + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + * + * @param sql The SQL queries to be executed. + */ + public fun sql(sql: List) + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + * + * @param sql The SQL queries to be executed. + */ + public fun sql(vararg sql: String) + + /** + * The name of the SQL statement. + * + * You can name the SQL statement for identitfication purposes. If you would like Amazon + * Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, + * append a `QS2-` prefix to the statement name. + * + * Default: - No statement name is specified + * + * @param statementName The name of the SQL statement. + */ + public fun statementName(statementName: String) + } + + private class BuilderImpl( + clusterArn: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.events.targets.RedshiftQuery.Builder = + software.amazon.awscdk.services.events.targets.RedshiftQuery.Builder.create(clusterArn) + + /** + * The Amazon Redshift database to run the query against. + * + * @param database The Amazon Redshift database to run the query against. + */ + override fun database(database: String) { + cdkBuilder.database(database) + } + + /** + * The Amazon Redshift database user to run the query as. + * + * This is required when authenticating via temporary credentials. + * + * Default: - No Database user is specified + * + * @param dbUser The Amazon Redshift database user to run the query as. + */ + override fun dbUser(dbUser: String) { + cdkBuilder.dbUser(dbUser) + } + + /** + * The queue to be used as dead letter queue. + * + * Default: - No dead letter queue is specified + * + * @param deadLetterQueue The queue to be used as dead letter queue. + */ + override fun deadLetterQueue(deadLetterQueue: IQueue) { + cdkBuilder.deadLetterQueue(deadLetterQueue.let(IQueue.Companion::unwrap)) + } + + /** + * The input to the state machine execution. + * + * Default: - the entire EventBridge event + * + * @param input The input to the state machine execution. + */ + override fun input(input: RuleTargetInput) { + cdkBuilder.input(input.let(RuleTargetInput.Companion::unwrap)) + } + + /** + * The IAM role to be used to execute the SQL statement. + * + * Default: - a new role will be created. + * + * @param role The IAM role to be used to execute the SQL statement. + */ + override fun role(role: IRole) { + cdkBuilder.role(role.let(IRole.Companion::unwrap)) + } + + /** + * The secret containing the password for the database user. + * + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + * + * Default: - No secret is specified + * + * @param secret The secret containing the password for the database user. + */ + override fun secret(secret: ISecret) { + cdkBuilder.secret(secret.let(ISecret.Companion::unwrap)) + } + + /** + * Should an event be sent back to Event Bridge when the SQL statement is executed. + * + * Default: false + * + * @param sendEventBridgeEvent Should an event be sent back to Event Bridge when the SQL + * statement is executed. + */ + override fun sendEventBridgeEvent(sendEventBridgeEvent: Boolean) { + cdkBuilder.sendEventBridgeEvent(sendEventBridgeEvent) + } + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + * + * @param sql The SQL queries to be executed. + */ + override fun sql(sql: List) { + cdkBuilder.sql(sql) + } + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + * + * @param sql The SQL queries to be executed. + */ + override fun sql(vararg sql: String): Unit = sql(sql.toList()) + + /** + * The name of the SQL statement. + * + * You can name the SQL statement for identitfication purposes. If you would like Amazon + * Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, + * append a `QS2-` prefix to the statement name. + * + * Default: - No statement name is specified + * + * @param statementName The name of the SQL statement. + */ + override fun statementName(statementName: String) { + cdkBuilder.statementName(statementName) + } + + public fun build(): software.amazon.awscdk.services.events.targets.RedshiftQuery = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke(clusterArn: String, block: Builder.() -> Unit = {}): RedshiftQuery { + val builderImpl = BuilderImpl(clusterArn) + return RedshiftQuery(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.events.targets.RedshiftQuery): + RedshiftQuery = RedshiftQuery(cdkObject) + + internal fun unwrap(wrapped: RedshiftQuery): + software.amazon.awscdk.services.events.targets.RedshiftQuery = wrapped.cdkObject as + software.amazon.awscdk.services.events.targets.RedshiftQuery + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQueryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQueryProps.kt new file mode 100644 index 0000000000..e620186821 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/RedshiftQueryProps.kt @@ -0,0 +1,381 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.events.targets + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.events.RuleTargetInput +import io.cloudshiftdev.awscdk.services.iam.IRole +import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret +import io.cloudshiftdev.awscdk.services.sqs.IQueue +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Configuration properties of an Amazon Redshift Query event. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.redshiftserverless.*; + * CfnWorkgroup workgroup; + * Rule rule = Rule.Builder.create(this, "Rule") + * .schedule(Schedule.rate(Duration.hours(1))) + * .build(); + * Queue dlq = new Queue(this, "DeadLetterQueue"); + * rule.addTarget(RedshiftQuery.Builder.create(workgroup.getAttrWorkgroupWorkgroupArn()) + * .database("dev") + * .deadLetterQueue(dlq) + * .sql(List.of("SELECT * FROM foo", "SELECT * FROM baz")) + * .build()); + * ``` + */ +public interface RedshiftQueryProps { + /** + * The Amazon Redshift database to run the query against. + */ + public fun database(): String + + /** + * The Amazon Redshift database user to run the query as. + * + * This is required when authenticating via temporary credentials. + * + * Default: - No Database user is specified + */ + public fun dbUser(): String? = unwrap(this).getDbUser() + + /** + * The queue to be used as dead letter queue. + * + * Default: - No dead letter queue is specified + */ + public fun deadLetterQueue(): IQueue? = unwrap(this).getDeadLetterQueue()?.let(IQueue::wrap) + + /** + * The input to the state machine execution. + * + * Default: - the entire EventBridge event + */ + public fun input(): RuleTargetInput? = unwrap(this).getInput()?.let(RuleTargetInput::wrap) + + /** + * The IAM role to be used to execute the SQL statement. + * + * Default: - a new role will be created. + */ + public fun role(): IRole? = unwrap(this).getRole()?.let(IRole::wrap) + + /** + * The secret containing the password for the database user. + * + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + * + * Default: - No secret is specified + */ + public fun secret(): ISecret? = unwrap(this).getSecret()?.let(ISecret::wrap) + + /** + * Should an event be sent back to Event Bridge when the SQL statement is executed. + * + * Default: false + */ + public fun sendEventBridgeEvent(): Boolean? = unwrap(this).getSendEventBridgeEvent() + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + */ + public fun sql(): List + + /** + * The name of the SQL statement. + * + * You can name the SQL statement for identitfication purposes. If you would like Amazon Redshift + * to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a `QS2-` + * prefix to the statement name. + * + * Default: - No statement name is specified + */ + public fun statementName(): String? = unwrap(this).getStatementName() + + /** + * A builder for [RedshiftQueryProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param database The Amazon Redshift database to run the query against. + */ + public fun database(database: String) + + /** + * @param dbUser The Amazon Redshift database user to run the query as. + * This is required when authenticating via temporary credentials. + */ + public fun dbUser(dbUser: String) + + /** + * @param deadLetterQueue The queue to be used as dead letter queue. + */ + public fun deadLetterQueue(deadLetterQueue: IQueue) + + /** + * @param input The input to the state machine execution. + */ + public fun input(input: RuleTargetInput) + + /** + * @param role The IAM role to be used to execute the SQL statement. + */ + public fun role(role: IRole) + + /** + * @param secret The secret containing the password for the database user. + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + */ + public fun secret(secret: ISecret) + + /** + * @param sendEventBridgeEvent Should an event be sent back to Event Bridge when the SQL + * statement is executed. + */ + public fun sendEventBridgeEvent(sendEventBridgeEvent: Boolean) + + /** + * @param sql The SQL queries to be executed. + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + */ + public fun sql(sql: List) + + /** + * @param sql The SQL queries to be executed. + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + */ + public fun sql(vararg sql: String) + + /** + * @param statementName The name of the SQL statement. + * You can name the SQL statement for identitfication purposes. If you would like Amazon + * Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, + * append a `QS2-` prefix to the statement name. + */ + public fun statementName(statementName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.events.targets.RedshiftQueryProps.Builder = + software.amazon.awscdk.services.events.targets.RedshiftQueryProps.builder() + + /** + * @param database The Amazon Redshift database to run the query against. + */ + override fun database(database: String) { + cdkBuilder.database(database) + } + + /** + * @param dbUser The Amazon Redshift database user to run the query as. + * This is required when authenticating via temporary credentials. + */ + override fun dbUser(dbUser: String) { + cdkBuilder.dbUser(dbUser) + } + + /** + * @param deadLetterQueue The queue to be used as dead letter queue. + */ + override fun deadLetterQueue(deadLetterQueue: IQueue) { + cdkBuilder.deadLetterQueue(deadLetterQueue.let(IQueue.Companion::unwrap)) + } + + /** + * @param input The input to the state machine execution. + */ + override fun input(input: RuleTargetInput) { + cdkBuilder.input(input.let(RuleTargetInput.Companion::unwrap)) + } + + /** + * @param role The IAM role to be used to execute the SQL statement. + */ + override fun role(role: IRole) { + cdkBuilder.role(role.let(IRole.Companion::unwrap)) + } + + /** + * @param secret The secret containing the password for the database user. + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + */ + override fun secret(secret: ISecret) { + cdkBuilder.secret(secret.let(ISecret.Companion::unwrap)) + } + + /** + * @param sendEventBridgeEvent Should an event be sent back to Event Bridge when the SQL + * statement is executed. + */ + override fun sendEventBridgeEvent(sendEventBridgeEvent: Boolean) { + cdkBuilder.sendEventBridgeEvent(sendEventBridgeEvent) + } + + /** + * @param sql The SQL queries to be executed. + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + */ + override fun sql(sql: List) { + cdkBuilder.sql(sql) + } + + /** + * @param sql The SQL queries to be executed. + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + */ + override fun sql(vararg sql: String): Unit = sql(sql.toList()) + + /** + * @param statementName The name of the SQL statement. + * You can name the SQL statement for identitfication purposes. If you would like Amazon + * Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, + * append a `QS2-` prefix to the statement name. + */ + override fun statementName(statementName: String) { + cdkBuilder.statementName(statementName) + } + + public fun build(): software.amazon.awscdk.services.events.targets.RedshiftQueryProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.events.targets.RedshiftQueryProps, + ) : CdkObject(cdkObject), + RedshiftQueryProps { + /** + * The Amazon Redshift database to run the query against. + */ + override fun database(): String = unwrap(this).getDatabase() + + /** + * The Amazon Redshift database user to run the query as. + * + * This is required when authenticating via temporary credentials. + * + * Default: - No Database user is specified + */ + override fun dbUser(): String? = unwrap(this).getDbUser() + + /** + * The queue to be used as dead letter queue. + * + * Default: - No dead letter queue is specified + */ + override fun deadLetterQueue(): IQueue? = unwrap(this).getDeadLetterQueue()?.let(IQueue::wrap) + + /** + * The input to the state machine execution. + * + * Default: - the entire EventBridge event + */ + override fun input(): RuleTargetInput? = unwrap(this).getInput()?.let(RuleTargetInput::wrap) + + /** + * The IAM role to be used to execute the SQL statement. + * + * Default: - a new role will be created. + */ + override fun role(): IRole? = unwrap(this).getRole()?.let(IRole::wrap) + + /** + * The secret containing the password for the database user. + * + * This is required when authenticating via Secrets Manager. + * If the full secret ARN is not specified, this will instead use the secret name. + * + * Default: - No secret is specified + */ + override fun secret(): ISecret? = unwrap(this).getSecret()?.let(ISecret::wrap) + + /** + * Should an event be sent back to Event Bridge when the SQL statement is executed. + * + * Default: false + */ + override fun sendEventBridgeEvent(): Boolean? = unwrap(this).getSendEventBridgeEvent() + + /** + * The SQL queries to be executed. + * + * Each query is run sequentially within a single transaction; the next query in the array will + * only execute after the previous one has successfully completed. + * + * * When multiple sql queries are included, this will use the `batchExecuteStatement` API. + * Therefore, if any statement fails, the entire transaction is rolled back. + * * If a single SQL statement is to be executed, this will use the `executeStatement` API. + * + * Default: - No SQL query is specified + */ + override fun sql(): List = unwrap(this).getSql() + + /** + * The name of the SQL statement. + * + * You can name the SQL statement for identitfication purposes. If you would like Amazon + * Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, + * append a `QS2-` prefix to the statement name. + * + * Default: - No statement name is specified + */ + override fun statementName(): String? = unwrap(this).getStatementName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RedshiftQueryProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.events.targets.RedshiftQueryProps): + RedshiftQueryProps = CdkObjectWrappers.wrap(cdkObject) as? RedshiftQueryProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RedshiftQueryProps): + software.amazon.awscdk.services.events.targets.RedshiftQueryProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.events.targets.RedshiftQueryProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachine.kt index 66184cd449..58e835f283 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachine.kt @@ -45,7 +45,8 @@ import software.amazon.awscdk.services.stepfunctions.IStateMachine as AmazonAwsc */ public open class SfnStateMachine( cdkObject: software.amazon.awscdk.services.events.targets.SfnStateMachine, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(machine: CloudshiftdevAwscdkServicesStepfunctionsIStateMachine) : this(software.amazon.awscdk.services.events.targets.SfnStateMachine(machine.let(CloudshiftdevAwscdkServicesStepfunctionsIStateMachine.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachineProps.kt index e79238a05a..32309d9a0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SfnStateMachineProps.kt @@ -154,7 +154,8 @@ public interface SfnStateMachineProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.SfnStateMachineProps, - ) : CdkObject(cdkObject), SfnStateMachineProps { + ) : CdkObject(cdkObject), + SfnStateMachineProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopic.kt index 60855d913d..3e132953c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopic.kt @@ -19,6 +19,9 @@ import software.amazon.awscdk.services.sns.ITopic as AmazonAwscdkServicesSnsITop /** * Use an SNS topic as a target for Amazon EventBridge rules. * + * If the topic is imported the required permissions to publish to that topic need to be set + * manually. + * * Example: * * ``` @@ -29,7 +32,8 @@ import software.amazon.awscdk.services.sns.ITopic as AmazonAwscdkServicesSnsITop */ public open class SnsTopic( cdkObject: software.amazon.awscdk.services.events.targets.SnsTopic, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(topic: CloudshiftdevAwscdkServicesSnsITopic) : this(software.amazon.awscdk.services.events.targets.SnsTopic(topic.let(CloudshiftdevAwscdkServicesSnsITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopicProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopicProps.kt index c93ef5cb92..50af9f8a48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopicProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SnsTopicProps.kt @@ -121,7 +121,8 @@ public interface SnsTopicProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.SnsTopicProps, - ) : CdkObject(cdkObject), SnsTopicProps { + ) : CdkObject(cdkObject), + SnsTopicProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueue.kt index 4515b80f22..775de9b5c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueue.kt @@ -28,7 +28,8 @@ import software.amazon.awscdk.services.sqs.IQueue as AmazonAwscdkServicesSqsIQue */ public open class SqsQueue( cdkObject: software.amazon.awscdk.services.events.targets.SqsQueue, -) : CdkObject(cdkObject), IRuleTarget { +) : CdkObject(cdkObject), + IRuleTarget { public constructor(queue: CloudshiftdevAwscdkServicesSqsIQueue) : this(software.amazon.awscdk.services.events.targets.SqsQueue(queue.let(CloudshiftdevAwscdkServicesSqsIQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueueProps.kt index fdad85e008..86e7c0750a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/SqsQueueProps.kt @@ -158,7 +158,8 @@ public interface SqsQueueProps : TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.SqsQueueProps, - ) : CdkObject(cdkObject), SqsQueueProps { + ) : CdkObject(cdkObject), + SqsQueueProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/Tag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/Tag.kt index c1962b34a5..91a0a30602 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/Tag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/Tag.kt @@ -75,7 +75,8 @@ public interface Tag { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.Tag, - ) : CdkObject(cdkObject), Tag { + ) : CdkObject(cdkObject), + Tag { /** * Key is the name of the tag. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TargetBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TargetBaseProps.kt index 9cb8d0ddf8..43a9bee081 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TargetBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TargetBaseProps.kt @@ -140,7 +140,8 @@ public interface TargetBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.TargetBaseProps, - ) : CdkObject(cdkObject), TargetBaseProps { + ) : CdkObject(cdkObject), + TargetBaseProps { /** * The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a * dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TaskEnvironmentVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TaskEnvironmentVariable.kt index 49a3b6f259..c45730bfbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TaskEnvironmentVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/events/targets/TaskEnvironmentVariable.kt @@ -83,7 +83,8 @@ public interface TaskEnvironmentVariable { private class Wrapper( cdkObject: software.amazon.awscdk.services.events.targets.TaskEnvironmentVariable, - ) : CdkObject(cdkObject), TaskEnvironmentVariable { + ) : CdkObject(cdkObject), + TaskEnvironmentVariable { /** * Name for the environment variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscoverer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscoverer.kt index 988be1c543..c12eee72b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscoverer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscoverer.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDiscoverer( cdkObject: software.amazon.awscdk.services.eventschemas.CfnDiscoverer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -398,7 +400,8 @@ public open class CfnDiscoverer( private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnDiscoverer.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The key of a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscovererProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscovererProps.kt index b5143ac023..137fe7e739 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscovererProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnDiscovererProps.kt @@ -158,7 +158,8 @@ public interface CfnDiscovererProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnDiscovererProps, - ) : CdkObject(cdkObject), CfnDiscovererProps { + ) : CdkObject(cdkObject), + CfnDiscovererProps { /** * Allows for the discovery of the event schemas that are sent to the event bus from another * account. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistry.kt index e4941a739d..7f4c88b74f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistry.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegistry( cdkObject: software.amazon.awscdk.services.eventschemas.CfnRegistry, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.eventschemas.CfnRegistry(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -311,7 +313,8 @@ public open class CfnRegistry( private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnRegistry.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The key of a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicy.kt index 795ff7c179..b26c8393ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicy.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegistryPolicy( cdkObject: software.amazon.awscdk.services.eventschemas.CfnRegistryPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicyProps.kt index 28be178647..a70035bbf8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryPolicyProps.kt @@ -104,7 +104,8 @@ public interface CfnRegistryPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnRegistryPolicyProps, - ) : CdkObject(cdkObject), CfnRegistryPolicyProps { + ) : CdkObject(cdkObject), + CfnRegistryPolicyProps { /** * A resource-based policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryProps.kt index 60407644ac..2c6c17b7ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnRegistryProps.kt @@ -115,7 +115,8 @@ public interface CfnRegistryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnRegistryProps, - ) : CdkObject(cdkObject), CfnRegistryProps { + ) : CdkObject(cdkObject), + CfnRegistryProps { /** * A description of the registry to be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchema.kt index 1181e6695e..918a093323 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchema.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchema( cdkObject: software.amazon.awscdk.services.eventschemas.CfnSchema, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -414,7 +416,8 @@ public open class CfnSchema( private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnSchema.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The key of a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchemaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchemaProps.kt index 3040a4d432..da3e6136d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchemaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/eventschemas/CfnSchemaProps.kt @@ -180,7 +180,8 @@ public interface CfnSchemaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.eventschemas.CfnSchemaProps, - ) : CdkObject(cdkObject), CfnSchemaProps { + ) : CdkObject(cdkObject), + CfnSchemaProps { /** * The source of the schema definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperiment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperiment.kt index 1540264d79..8a917a4e9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperiment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperiment.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExperiment( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1128,7 +1130,8 @@ public open class CfnExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment.MetricGoalObjectProperty, - ) : CdkObject(cdkObject), MetricGoalObjectProperty { + ) : CdkObject(cdkObject), + MetricGoalObjectProperty { /** * `INCREASE` means that a variation with a higher number for this metric is performing * better. @@ -1331,7 +1334,8 @@ public open class CfnExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment.OnlineAbConfigObjectProperty, - ) : CdkObject(cdkObject), OnlineAbConfigObjectProperty { + ) : CdkObject(cdkObject), + OnlineAbConfigObjectProperty { /** * The name of the variation that is to be the default variation that the other variations are * compared to. @@ -1506,7 +1510,8 @@ public open class CfnExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment.RunningStatusObjectProperty, - ) : CdkObject(cdkObject), RunningStatusObjectProperty { + ) : CdkObject(cdkObject), + RunningStatusObjectProperty { /** * If you are using AWS CloudFormation to start the experiment, use this field to specify when * the experiment is to end. @@ -1683,7 +1688,8 @@ public open class CfnExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment.TreatmentObjectProperty, - ) : CdkObject(cdkObject), TreatmentObjectProperty { + ) : CdkObject(cdkObject), + TreatmentObjectProperty { /** * The description of the treatment. * @@ -1816,7 +1822,8 @@ public open class CfnExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperiment.TreatmentToWeightProperty, - ) : CdkObject(cdkObject), TreatmentToWeightProperty { + ) : CdkObject(cdkObject), + TreatmentToWeightProperty { /** * The portion of experiment traffic to allocate to this treatment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperimentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperimentProps.kt index 3d413bdaef..454a52d70c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperimentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnExperimentProps.kt @@ -598,7 +598,8 @@ public interface CfnExperimentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnExperimentProps, - ) : CdkObject(cdkObject), CfnExperimentProps { + ) : CdkObject(cdkObject), + CfnExperimentProps { /** * An optional description of the experiment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeature.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeature.kt index 83a9bd4dbc..78dece17c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeature.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeature.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFeature( cdkObject: software.amazon.awscdk.services.evidently.CfnFeature, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -706,7 +708,8 @@ public open class CfnFeature( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnFeature.EntityOverrideProperty, - ) : CdkObject(cdkObject), EntityOverrideProperty { + ) : CdkObject(cdkObject), + EntityOverrideProperty { /** * The entity ID to be served the variation specified in `Variation` . * @@ -894,7 +897,8 @@ public open class CfnFeature( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnFeature.VariationObjectProperty, - ) : CdkObject(cdkObject), VariationObjectProperty { + ) : CdkObject(cdkObject), + VariationObjectProperty { /** * The value assigned to this variation, if the variation type is boolean. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeatureProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeatureProps.kt index 4d423c1f75..4f90b59c5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeatureProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnFeatureProps.kt @@ -411,7 +411,8 @@ public interface CfnFeatureProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnFeatureProps, - ) : CdkObject(cdkObject), CfnFeatureProps { + ) : CdkObject(cdkObject), + CfnFeatureProps { /** * The name of the variation to use as the default variation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunch.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunch.kt index 0c9a869697..d84a952a53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunch.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunch.kt @@ -91,7 +91,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunch( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -899,7 +901,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.ExecutionStatusObjectProperty, - ) : CdkObject(cdkObject), ExecutionStatusObjectProperty { + ) : CdkObject(cdkObject), + ExecutionStatusObjectProperty { /** * If you are using AWS CloudFormation to stop this launch, specify either `COMPLETED` or * `CANCELLED` here to indicate how to classify this experiment. @@ -1030,7 +1033,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.GroupToWeightProperty, - ) : CdkObject(cdkObject), GroupToWeightProperty { + ) : CdkObject(cdkObject), + GroupToWeightProperty { /** * The name of the launch group. * @@ -1190,7 +1194,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.LaunchGroupObjectProperty, - ) : CdkObject(cdkObject), LaunchGroupObjectProperty { + ) : CdkObject(cdkObject), + LaunchGroupObjectProperty { /** * A description of the launch group. * @@ -1396,7 +1401,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.MetricDefinitionObjectProperty, - ) : CdkObject(cdkObject), MetricDefinitionObjectProperty { + ) : CdkObject(cdkObject), + MetricDefinitionObjectProperty { /** * The entity, such as a user or session, that does an action that causes a metric value to be * recorded. @@ -1624,7 +1630,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.SegmentOverrideProperty, - ) : CdkObject(cdkObject), SegmentOverrideProperty { + ) : CdkObject(cdkObject), + SegmentOverrideProperty { /** * A number indicating the order to use to evaluate segment overrides, if there are more than * one. @@ -1891,7 +1898,8 @@ public open class CfnLaunch( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunch.StepConfigProperty, - ) : CdkObject(cdkObject), StepConfigProperty { + ) : CdkObject(cdkObject), + StepConfigProperty { /** * An array of structures that define how much launch traffic to allocate to each launch group * during this step of the launch. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunchProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunchProps.kt index 8c8f8a1be7..d825b32730 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunchProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnLaunchProps.kt @@ -476,7 +476,8 @@ public interface CfnLaunchProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnLaunchProps, - ) : CdkObject(cdkObject), CfnLaunchProps { + ) : CdkObject(cdkObject), + CfnLaunchProps { /** * An optional description for the launch. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProject.kt index d699cbd057..e880bcb0fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProject.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.evidently.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -684,7 +686,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnProject.AppConfigResourceObjectProperty, - ) : CdkObject(cdkObject), AppConfigResourceObjectProperty { + ) : CdkObject(cdkObject), + AppConfigResourceObjectProperty { /** * The ID of the AWS AppConfig application to use for client-side evaluation. * @@ -834,7 +837,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnProject.DataDeliveryObjectProperty, - ) : CdkObject(cdkObject), DataDeliveryObjectProperty { + ) : CdkObject(cdkObject), + DataDeliveryObjectProperty { /** * If the project stores evaluation events in CloudWatch Logs , this structure stores the log * group name. @@ -945,7 +949,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnProject.S3DestinationProperty, - ) : CdkObject(cdkObject), S3DestinationProperty { + ) : CdkObject(cdkObject), + S3DestinationProperty { /** * The name of the bucket in which Evidently stores evaluation events. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProjectProps.kt index 58bf4d6643..0863cdfce7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnProjectProps.kt @@ -413,7 +413,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * Use this parameter if the project will use *client-side evaluation powered by AWS AppConfig* * . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegment.kt index 00d64c0282..4e3c552daf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegment.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSegment( cdkObject: software.amazon.awscdk.services.evidently.CfnSegment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegmentProps.kt index 5f8eefaa2d..7c34584868 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/evidently/CfnSegmentProps.kt @@ -202,7 +202,8 @@ public interface CfnSegmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.evidently.CfnSegmentProps, - ) : CdkObject(cdkObject), CfnSegmentProps { + ) : CdkObject(cdkObject), + CfnSegmentProps { /** * An optional description for this segment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironment.kt index 76f547e759..42e016e863 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironment.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.finspace.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -674,7 +676,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.finspace.CfnEnvironment.AttributeMapItemsProperty, - ) : CdkObject(cdkObject), AttributeMapItemsProperty { + ) : CdkObject(cdkObject), + AttributeMapItemsProperty { /** * The key name of the tag. * @@ -936,7 +939,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.finspace.CfnEnvironment.FederationParametersProperty, - ) : CdkObject(cdkObject), FederationParametersProperty { + ) : CdkObject(cdkObject), + FederationParametersProperty { /** * The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity * provider configuration (IdP). @@ -1101,7 +1105,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.finspace.CfnEnvironment.SuperuserParametersProperty, - ) : CdkObject(cdkObject), SuperuserParametersProperty { + ) : CdkObject(cdkObject), + SuperuserParametersProperty { /** * The email address of the superuser. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironmentProps.kt index 01fc952468..bcd57f2283 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/finspace/CfnEnvironmentProps.kt @@ -316,7 +316,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.finspace.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * (deprecated) ARNs of FinSpace Data Bundles to install. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplate.kt index 48732e9d0b..174c369380 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplate.kt @@ -100,7 +100,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExperimentTemplate( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -683,7 +685,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.CloudWatchLogsConfigurationProperty, - ) : CdkObject(cdkObject), CloudWatchLogsConfigurationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsConfigurationProperty { /** * The Amazon Resource Name (ARN) of the destination Amazon CloudWatch Logs log group. * @@ -892,7 +895,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateActionProperty, - ) : CdkObject(cdkObject), ExperimentTemplateActionProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateActionProperty { /** * The ID of the action. * @@ -1025,7 +1029,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateExperimentOptionsProperty, - ) : CdkObject(cdkObject), ExperimentTemplateExperimentOptionsProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateExperimentOptionsProperty { /** * The account targeting setting for an experiment template. * @@ -1166,7 +1171,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty, - ) : CdkObject(cdkObject), ExperimentTemplateLogConfigurationProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateLogConfigurationProperty { /** * The configuration for experiment logging to CloudWatch Logs . * @@ -1290,7 +1296,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateStopConditionProperty, - ) : CdkObject(cdkObject), ExperimentTemplateStopConditionProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateStopConditionProperty { /** * The source for the stop condition. * @@ -1415,7 +1422,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateTargetFilterProperty, - ) : CdkObject(cdkObject), ExperimentTemplateTargetFilterProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateTargetFilterProperty { /** * The attribute path for the filter. * @@ -1676,7 +1684,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty, - ) : CdkObject(cdkObject), ExperimentTemplateTargetProperty { + ) : CdkObject(cdkObject), + ExperimentTemplateTargetProperty { /** * The filters to apply to identify target resources using specific attributes. * @@ -1814,7 +1823,8 @@ public open class CfnExperimentTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplate.S3ConfigurationProperty, - ) : CdkObject(cdkObject), S3ConfigurationProperty { + ) : CdkObject(cdkObject), + S3ConfigurationProperty { /** * The name of the destination bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplateProps.kt index d44029e03f..903f1dcf3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnExperimentTemplateProps.kt @@ -356,7 +356,8 @@ public interface CfnExperimentTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnExperimentTemplateProps, - ) : CdkObject(cdkObject), CfnExperimentTemplateProps { + ) : CdkObject(cdkObject), + CfnExperimentTemplateProps { /** * The actions for the experiment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfiguration.kt index 46e857c05b..315fc2e84b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfiguration.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTargetAccountConfiguration( cdkObject: software.amazon.awscdk.services.fis.CfnTargetAccountConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfigurationProps.kt index e7880a285e..4b0d9b7a1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fis/CfnTargetAccountConfigurationProps.kt @@ -123,7 +123,8 @@ public interface CfnTargetAccountConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fis.CfnTargetAccountConfigurationProps, - ) : CdkObject(cdkObject), CfnTargetAccountConfigurationProps { + ) : CdkObject(cdkObject), + CfnTargetAccountConfigurationProps { /** * The AWS account ID of the target account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannel.kt index 0c9ff77250..05db0af718 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannel.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNotificationChannel( cdkObject: software.amazon.awscdk.services.fms.CfnNotificationChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannelProps.kt index 4ce33be014..254ed34da6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnNotificationChannelProps.kt @@ -86,7 +86,8 @@ public interface CfnNotificationChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnNotificationChannelProps, - ) : CdkObject(cdkObject), CfnNotificationChannelProps { + ) : CdkObject(cdkObject), + CfnNotificationChannelProps { /** * The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall * Manager activity. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicy.kt index 24974edbe3..537ad176f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicy.kt @@ -23,28 +23,44 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * An AWS Firewall Manager policy. * - * Firewall Manager provides the following types of policies: + * A Firewall Manager policy is specific to the individual policy type. If you want to enforce + * multiple policy types across accounts, you can create multiple policies. You can create more than + * one policy for each type. * - * * An AWS Shield Advanced policy, which applies Shield Advanced protection to specified accounts - * and resources. - * * An AWS WAF policy (type WAFV2), which defines rule groups to run first in the corresponding AWS - * WAF web ACL and rule groups to run last in the web ACL. - * * An AWS WAF Classic policy, which defines a rule group. AWS WAF Classic doesn't support rule - * groups in Amazon CloudFront , so, to create AWS WAF Classic policies through CloudFront , you first - * need to create your rule groups outside of CloudFront . - * * A security group policy, which manages VPC security groups across your AWS organization. - * * An AWS Network Firewall policy, which provides firewall rules to filter network traffic in - * specified Amazon VPCs. - * * A DNS Firewall policy, which provides Amazon Route 53 Resolver DNS Firewall rules to filter DNS - * queries for specified Amazon VPCs. - * * A third-party firewall policy, which manages a third-party firewall service. + * If you add a new account to an organization that you created with AWS Organizations , Firewall + * Manager automatically applies the policy to the resources in that account that are within scope of + * the policy. * - * Each policy is specific to one of the types. If you want to enforce more than one policy type - * across accounts, create multiple policies. You can create multiple policies for each type. + * Policies require some setup to use. For more information, see the sections on prerequisites and + * getting started under [Firewall Manager + * prerequisites](https://docs.aws.amazon.com/waf/latest/developerguide/fms-prereq.html) . * - * These policies require some setup to use. For more information, see the sections on prerequisites - * and getting started under [AWS Firewall - * Manager](https://docs.aws.amazon.com/waf/latest/developerguide/fms-prereq.html) . + * Firewall Manager provides the following types of policies: + * + * * *AWS WAF policy* - This policy applies AWS WAF web ACL protections to specified accounts and + * resources. + * * *Shield Advanced policy* - This policy applies Shield Advanced protection to specified accounts + * and resources. + * * *Security Groups policy* - This type of policy gives you control over security groups that are + * in use throughout your organization in AWS Organizations and lets you enforce a baseline set of + * rules across your organization. + * * *Network ACL policy* - This type of policy gives you control over the network ACLs that are in + * use throughout your organization in AWS Organizations and lets you enforce a baseline set of first + * and last network ACL rules across your organization. + * * *Network Firewall policy* - This policy applies Network Firewall protection to your + * organization's VPCs. + * * *DNS Firewall policy* - This policy applies Amazon Route 53 Resolver DNS Firewall protections + * to your organization's VPCs. + * * *Third-party firewall policy* - This policy applies third-party firewall protections. + * Third-party firewalls are available by subscription through the AWS Marketplace console at [AWS + * Marketplace](https://docs.aws.amazon.com/marketplace) . + * * *Palo Alto Networks Cloud NGFW policy* - This policy applies Palo Alto Networks Cloud Next + * Generation Firewall (NGFW) protections and Palo Alto Networks Cloud NGFW rulestacks to your + * organization's VPCs. + * * *Fortigate CNF policy* - This policy applies Fortigate Cloud Native Firewall (CNF) protections. + * Fortigate CNF is a cloud-centered solution that blocks Zero-Day threats and secures cloud + * infrastructures with industry-leading advanced threat prevention, smart web application firewalls + * (WAF), and API protection. * * Example: * @@ -61,6 +77,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .managedServiceData("managedServiceData") * .policyOption(PolicyOptionProperty.builder() + * .networkAclCommonPolicy(NetworkAclCommonPolicyProperty.builder().build()) * .networkFirewallPolicy(NetworkFirewallPolicyProperty.builder() * .firewallDeploymentModel("firewallDeploymentModel") * .build()) @@ -98,7 +115,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicy( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -798,13 +817,14 @@ public open class CfnPolicy( * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and * `AWS::CloudFront::Distribution` . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , * and `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html#cfn-fms-policy-resourcetype) * @param resourceType The type of resource protected by or in scope of the policy. @@ -953,23 +973,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1128,23 +1147,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1304,23 +1322,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1824,13 +1841,14 @@ public open class CfnPolicy( * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and * `AWS::CloudFront::Distribution` . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , * and `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html#cfn-fms-policy-resourcetype) * @param resourceType The type of resource protected by or in scope of the policy. @@ -1988,23 +2006,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -2165,23 +2182,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -2343,23 +2359,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -2599,7 +2614,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.IEMapProperty, - ) : CdkObject(cdkObject), IEMapProperty { + ) : CdkObject(cdkObject), + IEMapProperty { /** * The account list for the map. * @@ -2630,6 +2646,68 @@ public open class CfnPolicy( } } + /** + * Defines a Firewall Manager network ACL policy. + * + * This is used in the `PolicyOption` of a `SecurityServicePolicyData` for a `Policy` , when the + * `SecurityServicePolicyData` type is set to `NETWORK_ACL_COMMON` . + * + * For information about network ACLs, see [Control traffic to subnets using network + * ACLs](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html) in the *Amazon + * Virtual Private Cloud User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.fms.*; + * NetworkAclCommonPolicyProperty networkAclCommonPolicyProperty = + * NetworkAclCommonPolicyProperty.builder().build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkaclcommonpolicy.html) + */ + public interface NetworkAclCommonPolicyProperty { + /** + * A builder for [NetworkAclCommonPolicyProperty] + */ + @CdkDslMarker + public interface Builder + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty.Builder = + software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty.builder() + + public fun build(): + software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty, + ) : CdkObject(cdkObject), + NetworkAclCommonPolicyProperty + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NetworkAclCommonPolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty): + NetworkAclCommonPolicyProperty = CdkObjectWrappers.wrap(cdkObject) as? + NetworkAclCommonPolicyProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NetworkAclCommonPolicyProperty): + software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.fms.CfnPolicy.NetworkAclCommonPolicyProperty + } + } + /** * Configures the firewall policy deployment model of AWS Network Firewall . * @@ -2702,7 +2780,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.NetworkFirewallPolicyProperty, - ) : CdkObject(cdkObject), NetworkFirewallPolicyProperty { + ) : CdkObject(cdkObject), + NetworkFirewallPolicyProperty { /** * Defines the deployment model to use for the firewall policy. * @@ -2744,6 +2823,7 @@ public open class CfnPolicy( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.fms.*; * PolicyOptionProperty policyOptionProperty = PolicyOptionProperty.builder() + * .networkAclCommonPolicy(NetworkAclCommonPolicyProperty.builder().build()) * .networkFirewallPolicy(NetworkFirewallPolicyProperty.builder() * .firewallDeploymentModel("firewallDeploymentModel") * .build()) @@ -2756,6 +2836,13 @@ public open class CfnPolicy( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-policyoption.html) */ public interface PolicyOptionProperty { + /** + * Defines a Firewall Manager network ACL policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-policyoption.html#cfn-fms-policy-policyoption-networkaclcommonpolicy) + */ + public fun networkAclCommonPolicy(): Any? = unwrap(this).getNetworkAclCommonPolicy() + /** * Defines the deployment model to use for the firewall policy. * @@ -2775,6 +2862,24 @@ public open class CfnPolicy( */ @CdkDslMarker public interface Builder { + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + public fun networkAclCommonPolicy(networkAclCommonPolicy: IResolvable) + + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + public fun networkAclCommonPolicy(networkAclCommonPolicy: NetworkAclCommonPolicyProperty) + + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("832d1428f3e9e43b4e71b1bcf58530ff7aaa56ec5227016b6a06f517c8328c44") + public + fun networkAclCommonPolicy(networkAclCommonPolicy: NetworkAclCommonPolicyProperty.Builder.() -> Unit) + /** * @param networkFirewallPolicy Defines the deployment model to use for the firewall policy. */ @@ -2821,6 +2926,29 @@ public open class CfnPolicy( software.amazon.awscdk.services.fms.CfnPolicy.PolicyOptionProperty.Builder = software.amazon.awscdk.services.fms.CfnPolicy.PolicyOptionProperty.builder() + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + override fun networkAclCommonPolicy(networkAclCommonPolicy: IResolvable) { + cdkBuilder.networkAclCommonPolicy(networkAclCommonPolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + override fun networkAclCommonPolicy(networkAclCommonPolicy: NetworkAclCommonPolicyProperty) { + cdkBuilder.networkAclCommonPolicy(networkAclCommonPolicy.let(NetworkAclCommonPolicyProperty.Companion::unwrap)) + } + + /** + * @param networkAclCommonPolicy Defines a Firewall Manager network ACL policy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("832d1428f3e9e43b4e71b1bcf58530ff7aaa56ec5227016b6a06f517c8328c44") + override + fun networkAclCommonPolicy(networkAclCommonPolicy: NetworkAclCommonPolicyProperty.Builder.() -> Unit): + Unit = networkAclCommonPolicy(NetworkAclCommonPolicyProperty(networkAclCommonPolicy)) + /** * @param networkFirewallPolicy Defines the deployment model to use for the firewall policy. */ @@ -2878,7 +3006,15 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.PolicyOptionProperty, - ) : CdkObject(cdkObject), PolicyOptionProperty { + ) : CdkObject(cdkObject), + PolicyOptionProperty { + /** + * Defines a Firewall Manager network ACL policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-policyoption.html#cfn-fms-policy-policyoption-networkaclcommonpolicy) + */ + override fun networkAclCommonPolicy(): Any? = unwrap(this).getNetworkAclCommonPolicy() + /** * Defines the deployment model to use for the firewall policy. * @@ -3002,7 +3138,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.PolicyTagProperty, - ) : CdkObject(cdkObject), PolicyTagProperty { + ) : CdkObject(cdkObject), + PolicyTagProperty { /** * Part of the key:value pair that defines a tag. * @@ -3121,7 +3258,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.ResourceTagProperty, - ) : CdkObject(cdkObject), ResourceTagProperty { + ) : CdkObject(cdkObject), + ResourceTagProperty { /** * The resource tag key. * @@ -3169,6 +3307,7 @@ public open class CfnPolicy( * // the properties below are optional * .managedServiceData("managedServiceData") * .policyOption(PolicyOptionProperty.builder() + * .networkAclCommonPolicy(NetworkAclCommonPolicyProperty.builder().build()) * .networkFirewallPolicy(NetworkFirewallPolicyProperty.builder() * .firewallDeploymentModel("firewallDeploymentModel") * .build()) @@ -3249,40 +3388,22 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions - * - * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", - * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, - * \"optimizeUnassociatedWebACL\":true|false}"` - * - * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` - * - * The default value for `automaticResponseStatus` is `IGNORED` . The value for - * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` . - * The default value for `overrideCustomerWebaclClassic` is `false` . - * - * For other resource types that you can protect with a Shield Advanced policy, this - * `ManagedServiceData` configuration is an empty string. - * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"\THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -3292,9 +3413,25 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `DISTRIBUTED` . * + * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions + * + * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", + * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false}"` + * + * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` + * + * The default value for `automaticResponseStatus` is `IGNORED` . The value for + * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` . + * The default value for `overrideCustomerWebaclClassic` is `false` . + * + * For other resource types that you can protect with a Shield Advanced policy, this + * `ManagedServiceData` configuration is an empty string. + * * * Example: `WAFV2` * - * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]},\"optimizeUnassociatedWebACL\":true}"` + * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"` * * In the `loggingConfiguration` , you can specify one `logDestinationConfigs` , you can * optionally provide up to 20 `redactedFields` , and the `RedactedFieldType` must be one of `URI` @@ -3435,29 +3572,11 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions - * - * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", - * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, - * \"optimizeUnassociatedWebACL\":true|false}"` - * - * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` - * - * The default value for `automaticResponseStatus` is `IGNORED` . The value for - * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` - * . The default value for `overrideCustomerWebaclClassic` is `false` . - * - * For other resource types that you can protect with a Shield Advanced policy, this - * `ManagedServiceData` configuration is an empty string. - * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", - * \"thirdPartyFirewall\":\"\THIRD_PARTY_FIREWALL_NAME\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * @@ -3465,11 +3584,10 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. - * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -3479,9 +3597,25 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `DISTRIBUTED` . * + * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions + * + * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", + * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false}"` + * + * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` + * + * The default value for `automaticResponseStatus` is `IGNORED` . The value for + * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` + * . The default value for `overrideCustomerWebaclClassic` is `false` . + * + * For other resource types that you can protect with a Shield Advanced policy, this + * `ManagedServiceData` configuration is an empty string. + * * * Example: `WAFV2` * - * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]},\"optimizeUnassociatedWebACL\":true}"` + * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"` * * In the `loggingConfiguration` , you can specify one `logDestinationConfigs` , you can * optionally provide up to 20 `redactedFields` , and the `RedactedFieldType` must be one of @@ -3630,29 +3764,11 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions - * - * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", - * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, - * \"optimizeUnassociatedWebACL\":true|false}"` - * - * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` - * - * The default value for `automaticResponseStatus` is `IGNORED` . The value for - * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` - * . The default value for `overrideCustomerWebaclClassic` is `false` . - * - * For other resource types that you can protect with a Shield Advanced policy, this - * `ManagedServiceData` configuration is an empty string. - * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", - * \"thirdPartyFirewall\":\"\THIRD_PARTY_FIREWALL_NAME\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * @@ -3660,11 +3776,10 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -3674,9 +3789,25 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `DISTRIBUTED` . * + * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions + * + * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", + * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false}"` + * + * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` + * + * The default value for `automaticResponseStatus` is `IGNORED` . The value for + * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` + * . The default value for `overrideCustomerWebaclClassic` is `false` . + * + * For other resource types that you can protect with a Shield Advanced policy, this + * `ManagedServiceData` configuration is an empty string. + * * * Example: `WAFV2` * - * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]},\"optimizeUnassociatedWebACL\":true}"` + * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"` * * In the `loggingConfiguration` , you can specify one `logDestinationConfigs` , you can * optionally provide up to 20 `redactedFields` , and the `RedactedFieldType` must be one of @@ -3768,7 +3899,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.SecurityServicePolicyDataProperty, - ) : CdkObject(cdkObject), SecurityServicePolicyDataProperty { + ) : CdkObject(cdkObject), + SecurityServicePolicyDataProperty { /** * Details about the service that are specific to the service type, in JSON format. * @@ -3836,29 +3968,11 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions - * - * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", - * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false, - * \"optimizeUnassociatedWebACL\":true|false}"` - * - * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": - * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` - * - * The default value for `automaticResponseStatus` is `IGNORED` . The value for - * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` - * . The default value for `overrideCustomerWebaclClassic` is `false` . - * - * For other resource types that you can protect with a Shield Advanced policy, this - * `ManagedServiceData` configuration is an empty string. - * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", - * \"thirdPartyFirewall\":\"\THIRD_PARTY_FIREWALL_NAME\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * @@ -3866,11 +3980,10 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the name of the third-party firewall. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -3880,9 +3993,25 @@ public open class CfnPolicy( * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `DISTRIBUTED` . * + * * Specification for `SHIELD_ADVANCED` for Amazon CloudFront distributions + * + * `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", + * \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false}"` + * + * For example: `"{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + * {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}"` + * + * The default value for `automaticResponseStatus` is `IGNORED` . The value for + * `automaticResponseAction` is only required when `automaticResponseStatus` is set to `ENABLED` + * . The default value for `overrideCustomerWebaclClassic` is `false` . + * + * For other resource types that you can protect with a Shield Advanced policy, this + * `ManagedServiceData` configuration is an empty string. + * * * Example: `WAFV2` * - * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]},\"optimizeUnassociatedWebACL\":true}"` + * `"{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}"` * * In the `loggingConfiguration` , you can specify one `logDestinationConfigs` , you can * optionally provide up to 20 `redactedFields` , and the `RedactedFieldType` must be one of @@ -4028,7 +4157,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicy.ThirdPartyFirewallPolicyProperty, - ) : CdkObject(cdkObject), ThirdPartyFirewallPolicyProperty { + ) : CdkObject(cdkObject), + ThirdPartyFirewallPolicyProperty { /** * Defines the deployment model to use for the third-party firewall policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicyProps.kt index d0df1debc4..90179c1a80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnPolicyProps.kt @@ -31,6 +31,7 @@ import kotlin.jvm.JvmName * // the properties below are optional * .managedServiceData("managedServiceData") * .policyOption(PolicyOptionProperty.builder() + * .networkAclCommonPolicy(NetworkAclCommonPolicyProperty.builder().build()) * .networkFirewallPolicy(NetworkFirewallPolicyProperty.builder() * .firewallDeploymentModel("firewallDeploymentModel") * .build()) @@ -210,13 +211,14 @@ public interface CfnPolicyProps { * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and `AWS::CloudFront::Distribution` * . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , and * `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html#cfn-fms-policy-resourcetype) */ @@ -329,23 +331,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -714,13 +715,14 @@ public interface CfnPolicyProps { * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and * `AWS::CloudFront::Distribution` . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , * and `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . */ public fun resourceType(resourceType: String) @@ -846,23 +848,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1017,23 +1018,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1189,23 +1189,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1612,13 +1611,14 @@ public interface CfnPolicyProps { * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and * `AWS::CloudFront::Distribution` . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , * and `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . */ override fun resourceType(resourceType: String) { cdkBuilder.resourceType(resourceType) @@ -1753,23 +1753,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -1926,23 +1925,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -2100,23 +2098,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, @@ -2219,7 +2216,8 @@ public interface CfnPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnPolicyProps, - ) : CdkObject(cdkObject), CfnPolicyProps { + ) : CdkObject(cdkObject), + CfnPolicyProps { /** * Used when deleting a policy. If `true` , Firewall Manager performs cleanup according to the * policy type. @@ -2363,13 +2361,14 @@ public interface CfnPolicyProps { * `AWS::ElasticLoadBalancingV2::LoadBalancer` . * * AWS WAF - `AWS::ApiGateway::Stage` , `AWS::ElasticLoadBalancingV2::LoadBalancer` , and * `AWS::CloudFront::Distribution` . - * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . - * * AWS Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , + * * Shield Advanced - `AWS::ElasticLoadBalancingV2::LoadBalancer` , * `AWS::ElasticLoadBalancing::LoadBalancer` , `AWS::EC2::EIP` , and * `AWS::CloudFront::Distribution` . + * * Network ACL - `AWS::EC2::Subnet` . + * * Security group usage audit - `AWS::EC2::SecurityGroup` . * * Security group content audit - `AWS::EC2::SecurityGroup` , `AWS::EC2::NetworkInterface` , * and `AWS::EC2::Instance` . - * * Security group usage audit - `AWS::EC2::SecurityGroup` . + * * DNS Firewall, AWS Network Firewall , and third-party firewall - `AWS::EC2::VPC` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html#cfn-fms-policy-resourcetype) */ @@ -2483,23 +2482,22 @@ public interface CfnPolicyProps { * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-networkfirewallpolicy.html) * to `DISTRIBUTED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Centralized deployment model + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * centralized deployment model * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. - * - * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", \"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\", - * \"thirdPartyFirewallConfig\":{ \"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{ \"type\":\"THIRD_PARTY_FIREWALL\", + * \"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\", \"thirdPartyFirewallConfig\":{ + * \"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{\"centralizedFirewallDeploymentModel\":{\"centralizedFirewallOrchestrationConfig\":{\"inspectionVpcIds\":[{\"resourceId\":\"vpc-1234\",\"accountId\":\"123456789011\"}],\"firewallCreationConfig\":{\"endpointLocation\":{\"availabilityZoneConfigList\":[{\"availabilityZoneId\":null,\"availabilityZoneName\":\"us-east-1a\",\"allowedIPV4CidrList\":[\"10.0.0.0/28\"]}]}},\"allowedIPV4CidrList\":[]}}}}"` * * To use the distributed deployment model, you must set * [FirewallDeploymentModel](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fms-policy-thirdpartyfirewallpolicy.html) * to `CENTRALIZED` . * - * * Example: `THIRD_PARTY_FIREWALL` - Distributed deployment model - * - * Replace `THIRD_PARTY_FIREWALL_NAME` with the third-party firewall name. + * * Example: `THIRD_PARTY_FIREWALL` - Palo Alto Networks Cloud Next-Generation Firewall + * distributed deployment model * - * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"THIRD_PARTY_FIREWALL_NAME\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] + * `"{\"type\":\"THIRD_PARTY_FIREWALL\",\"thirdPartyFirewall\":\"PALO_ALTO_NETWORKS_CLOUD_NGFW\",\"thirdPartyFirewallConfig\":{\"thirdPartyFirewallPolicyList\":[\"global-1\"] * },\"firewallDeploymentModel\":{ \"distributedFirewallDeploymentModel\":{ * \"distributedFirewallOrchestrationConfig\":{\"firewallCreationConfig\":{\"endpointLocation\":{ * \"availabilityZoneConfigList\":[ {\"availabilityZoneName\":\"${AvailabilityZone}\" } ] } }, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSet.kt index 7d31aafe34..a55e1bee29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSet.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceSet( cdkObject: software.amazon.awscdk.services.fms.CfnResourceSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -59,7 +61,10 @@ public open class CfnResourceSet( ) /** - * A Base62 ID. + * A unique identifier for the resource set. + * + * This ID is returned in the responses to create and list commands. You provide it to operations + * like update and delete. */ public open fun attrId(): String = unwrap(this).getAttrId() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSetProps.kt index ca2ebc417a..f232a44fb9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fms/CfnResourceSetProps.kt @@ -187,7 +187,8 @@ public interface CfnResourceSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fms.CfnResourceSetProps, - ) : CdkObject(cdkObject), CfnResourceSetProps { + ) : CdkObject(cdkObject), + CfnResourceSetProps { /** * A description of the resource set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDataset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDataset.kt index 147fa3dd34..ab9a257daf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDataset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDataset.kt @@ -19,6 +19,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * Creates an Amazon Forecast dataset. * + * + * Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast + * can continue to use the service as normal. [Learn + * more"](https://docs.aws.amazon.com/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/) + * + * * The information about the dataset that you provide helps Forecast understand how to consume the * data for model training. This includes the following: * @@ -73,7 +79,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataset( cdkObject: software.amazon.awscdk.services.forecast.CfnDataset, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -518,7 +525,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDataset.AttributesItemsProperty, - ) : CdkObject(cdkObject), AttributesItemsProperty { + ) : CdkObject(cdkObject), + AttributesItemsProperty { /** * Name of the dataset field. * @@ -638,7 +646,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDataset.EncryptionConfigProperty, - ) : CdkObject(cdkObject), EncryptionConfigProperty { + ) : CdkObject(cdkObject), + EncryptionConfigProperty { /** * The Amazon Resource Name (ARN) of the KMS key. * @@ -759,7 +768,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDataset.SchemaProperty, - ) : CdkObject(cdkObject), SchemaProperty { + ) : CdkObject(cdkObject), + SchemaProperty { /** * An array of attributes specifying the name and type of each field in a dataset. * @@ -878,7 +888,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDataset.TagsItemsProperty, - ) : CdkObject(cdkObject), TagsItemsProperty { + ) : CdkObject(cdkObject), + TagsItemsProperty { /** * The key name of the tag. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroup.kt index bc054fc87e..59094b0fb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroup.kt @@ -22,6 +22,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * the [UpdateDatasetGroup](https://docs.aws.amazon.com/forecast/latest/dg/API_UpdateDatasetGroup.html) * operation. * + * + * Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast + * can continue to use the service as normal. [Learn + * more"](https://docs.aws.amazon.com/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/) + * + * * After creating a dataset group and adding datasets, you use the dataset group when you create a * predictor. For more information, see [Dataset * groups](https://docs.aws.amazon.com/forecast/latest/dg/howitworks-datasets-groups.html) . @@ -59,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatasetGroup( cdkObject: software.amazon.awscdk.services.forecast.CfnDatasetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroupProps.kt index 3998db0888..f35c51d266 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetGroupProps.kt @@ -198,7 +198,8 @@ public interface CfnDatasetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDatasetGroupProps, - ) : CdkObject(cdkObject), CfnDatasetGroupProps { + ) : CdkObject(cdkObject), + CfnDatasetGroupProps { /** * An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the * dataset group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetProps.kt index 9f62ca84d9..fded8040ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/forecast/CfnDatasetProps.kt @@ -282,7 +282,8 @@ public interface CfnDatasetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.forecast.CfnDatasetProps, - ) : CdkObject(cdkObject), CfnDatasetProps { + ) : CdkObject(cdkObject), + CfnDatasetProps { /** * The frequency of data collection. This parameter is required for RELATED_TIME_SERIES * datasets. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetector.kt index 43a69b874e..8028abe8a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetector.kt @@ -129,7 +129,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDetector( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -975,7 +977,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.EntityTypeProperty, - ) : CdkObject(cdkObject), EntityTypeProperty { + ) : CdkObject(cdkObject), + EntityTypeProperty { /** * The entity type ARN. * @@ -1494,7 +1497,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.EventTypeProperty, - ) : CdkObject(cdkObject), EventTypeProperty { + ) : CdkObject(cdkObject), + EventTypeProperty { /** * The entity type ARN. * @@ -1984,7 +1988,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.EventVariableProperty, - ) : CdkObject(cdkObject), EventVariableProperty { + ) : CdkObject(cdkObject), + EventVariableProperty { /** * The event variable ARN. * @@ -2380,7 +2385,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.LabelProperty, - ) : CdkObject(cdkObject), LabelProperty { + ) : CdkObject(cdkObject), + LabelProperty { /** * The label ARN. * @@ -2517,7 +2523,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.ModelProperty, - ) : CdkObject(cdkObject), ModelProperty { + ) : CdkObject(cdkObject), + ModelProperty { /** * The ARN of the model. * @@ -2812,7 +2819,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.OutcomeProperty, - ) : CdkObject(cdkObject), OutcomeProperty { + ) : CdkObject(cdkObject), + OutcomeProperty { /** * The outcome ARN. * @@ -3223,7 +3231,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetector.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The rule ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetectorProps.kt index 7ee1a68ccf..04cd02ce31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetectorProps.kt @@ -440,7 +440,8 @@ public interface CfnDetectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnDetectorProps, - ) : CdkObject(cdkObject), CfnDetectorProps { + ) : CdkObject(cdkObject), + CfnDetectorProps { /** * The models to associate with this detector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityType.kt index 35c81def0b..68255727f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityType.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEntityType( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEntityType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityTypeProps.kt index 6bca6c3e6b..a8e0644f54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEntityTypeProps.kt @@ -120,7 +120,8 @@ public interface CfnEntityTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEntityTypeProps, - ) : CdkObject(cdkObject), CfnEntityTypeProps { + ) : CdkObject(cdkObject), + CfnEntityTypeProps { /** * The entity type description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventType.kt index dd14ab4aa5..1d9c4290eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventType.kt @@ -90,7 +90,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventType( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEventType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -809,7 +811,8 @@ public open class CfnEventType( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEventType.EntityTypeProperty, - ) : CdkObject(cdkObject), EntityTypeProperty { + ) : CdkObject(cdkObject), + EntityTypeProperty { /** * The entity type ARN. * @@ -1276,7 +1279,8 @@ public open class CfnEventType( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEventType.EventVariableProperty, - ) : CdkObject(cdkObject), EventVariableProperty { + ) : CdkObject(cdkObject), + EventVariableProperty { /** * The event variable ARN. * @@ -1670,7 +1674,8 @@ public open class CfnEventType( private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEventType.LabelProperty, - ) : CdkObject(cdkObject), LabelProperty { + ) : CdkObject(cdkObject), + LabelProperty { /** * The label ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventTypeProps.kt index 41dbb05a79..240bf6a86a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnEventTypeProps.kt @@ -302,7 +302,8 @@ public interface CfnEventTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnEventTypeProps, - ) : CdkObject(cdkObject), CfnEventTypeProps { + ) : CdkObject(cdkObject), + CfnEventTypeProps { /** * The event type description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabel.kt index cca25b6a24..0b736d325d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabel.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLabel( cdkObject: software.amazon.awscdk.services.frauddetector.CfnLabel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabelProps.kt index f0242d7c2e..456970bffb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnLabelProps.kt @@ -136,7 +136,8 @@ public interface CfnLabelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnLabelProps, - ) : CdkObject(cdkObject), CfnLabelProps { + ) : CdkObject(cdkObject), + CfnLabelProps { /** * The label description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnList.kt index 4de552f697..24d8232123 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnList.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnList( cdkObject: software.amazon.awscdk.services.frauddetector.CfnList, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnListProps.kt index 0c611b16dc..2150b497b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnListProps.kt @@ -189,7 +189,8 @@ public interface CfnListProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnListProps, - ) : CdkObject(cdkObject), CfnListProps { + ) : CdkObject(cdkObject), + CfnListProps { /** * The description of the list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcome.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcome.kt index 7fc0968f51..2586339087 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcome.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcome.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOutcome( cdkObject: software.amazon.awscdk.services.frauddetector.CfnOutcome, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcomeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcomeProps.kt index af288a68e1..9f2bf18b6d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcomeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnOutcomeProps.kt @@ -132,7 +132,8 @@ public interface CfnOutcomeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnOutcomeProps, - ) : CdkObject(cdkObject), CfnOutcomeProps { + ) : CdkObject(cdkObject), + CfnOutcomeProps { /** * The outcome description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariable.kt index ac1e3bcd3a..8cb6ca8d76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariable.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVariable( cdkObject: software.amazon.awscdk.services.frauddetector.CfnVariable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariableProps.kt index 581531d9cc..cd59f79722 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnVariableProps.kt @@ -261,7 +261,8 @@ public interface CfnVariableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.frauddetector.CfnVariableProps, - ) : CdkObject(cdkObject), CfnVariableProps { + ) : CdkObject(cdkObject), + CfnVariableProps { /** * The data source of the variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociation.kt index 2e1d76af78..29814f5dea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociation.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataRepositoryAssociation( cdkObject: software.amazon.awscdk.services.fsx.CfnDataRepositoryAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -272,7 +274,7 @@ public open class CfnDataRepositoryAssociation( /** * The path to the Amazon S3 data repository that will be linked to the file system. * - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-datarepositoryassociation.html#cfn-fsx-datarepositoryassociation-datarepositorypath) @@ -432,7 +434,7 @@ public open class CfnDataRepositoryAssociation( /** * The path to the Amazon S3 data repository that will be linked to the file system. * - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-datarepositoryassociation.html#cfn-fsx-datarepositoryassociation-datarepositorypath) @@ -706,7 +708,8 @@ public open class CfnDataRepositoryAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnDataRepositoryAssociation.AutoExportPolicyProperty, - ) : CdkObject(cdkObject), AutoExportPolicyProperty { + ) : CdkObject(cdkObject), + AutoExportPolicyProperty { /** * The `AutoExportPolicy` can have the following event values:. * @@ -855,7 +858,8 @@ public open class CfnDataRepositoryAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnDataRepositoryAssociation.AutoImportPolicyProperty, - ) : CdkObject(cdkObject), AutoImportPolicyProperty { + ) : CdkObject(cdkObject), + AutoImportPolicyProperty { /** * The `AutoImportPolicy` can have the following event values:. * @@ -1127,7 +1131,8 @@ public open class CfnDataRepositoryAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnDataRepositoryAssociation.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * Describes a data repository association's automatic export policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociationProps.kt index 604005d207..a5d1edd45f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnDataRepositoryAssociationProps.kt @@ -63,7 +63,7 @@ public interface CfnDataRepositoryAssociationProps { /** * The path to the Amazon S3 data repository that will be linked to the file system. * - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-datarepositoryassociation.html#cfn-fsx-datarepositoryassociation-datarepositorypath) @@ -155,7 +155,7 @@ public interface CfnDataRepositoryAssociationProps { /** * @param dataRepositoryPath The path to the Amazon S3 data repository that will be linked to * the file system. - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. */ public fun dataRepositoryPath(dataRepositoryPath: String) @@ -263,7 +263,7 @@ public interface CfnDataRepositoryAssociationProps { /** * @param dataRepositoryPath The path to the Amazon S3 data repository that will be linked to * the file system. - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. */ override fun dataRepositoryPath(dataRepositoryPath: String) { @@ -365,7 +365,8 @@ public interface CfnDataRepositoryAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnDataRepositoryAssociationProps, - ) : CdkObject(cdkObject), CfnDataRepositoryAssociationProps { + ) : CdkObject(cdkObject), + CfnDataRepositoryAssociationProps { /** * A boolean flag indicating whether an import data repository task to import metadata should * run after the data repository association is created. @@ -379,7 +380,7 @@ public interface CfnDataRepositoryAssociationProps { /** * The path to the Amazon S3 data repository that will be linked to the file system. * - * The path can be an S3 bucket or prefix in the format `s3://myBucket/myPrefix/` . This path + * The path can be an S3 bucket or prefix in the format `s3://bucket-name/prefix/` . This path * specifies where in the S3 data repository files will be imported from or exported to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-datarepositoryassociation.html#cfn-fsx-datarepositoryassociation-datarepositorypath) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystem.kt index 863d68e5e1..44b0773fb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystem.kt @@ -57,6 +57,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .exportPath("exportPath") * .importedFileChunkSize(123) * .importPath("importPath") + * .metadataConfiguration(MetadataConfigurationProperty.builder() + * .iops(123) + * .mode("mode") + * .build()) * .perUnitStorageThroughput(123) * .weeklyMaintenanceStartTime("weeklyMaintenanceStartTime") * .build()) @@ -157,7 +161,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFileSystem( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -236,14 +242,14 @@ public open class CfnFileSystem( } /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. */ public open fun fileSystemTypeVersion(): String? = unwrap(this).getFileSystemTypeVersion() /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. */ public open fun fileSystemTypeVersion(`value`: String) { unwrap(this).setFileSystemTypeVersion(`value`) @@ -498,26 +504,27 @@ public open class CfnFileSystem( public fun fileSystemType(fileSystemType: String) /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. * * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required - * when setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a + * metadata configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . - * - * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * Default value is `2.10` , except for the following deployments: * + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion) - * @param fileSystemTypeVersion (Optional) For FSx for Lustre file systems, sets the Lustre - * version for the file system that you're creating. + * @param fileSystemTypeVersion For FSx for Lustre file systems, sets the Lustre version for the + * file system that you're creating. */ public fun fileSystemTypeVersion(fileSystemTypeVersion: String) @@ -711,8 +718,10 @@ public open class CfnFileSystem( * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of * 3600 GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is * from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you @@ -891,26 +900,27 @@ public open class CfnFileSystem( } /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. * * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required - * when setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a + * metadata configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . - * - * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * Default value is `2.10` , except for the following deployments: * + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion) - * @param fileSystemTypeVersion (Optional) For FSx for Lustre file systems, sets the Lustre - * version for the file system that you're creating. + * @param fileSystemTypeVersion For FSx for Lustre file systems, sets the Lustre version for the + * file system that you're creating. */ override fun fileSystemTypeVersion(fileSystemTypeVersion: String) { cdkBuilder.fileSystemTypeVersion(fileSystemTypeVersion) @@ -1127,8 +1137,10 @@ public open class CfnFileSystem( * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of * 3600 GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is * from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you @@ -1471,7 +1483,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.AuditLogConfigurationProperty, - ) : CdkObject(cdkObject), AuditLogConfigurationProperty { + ) : CdkObject(cdkObject), + AuditLogConfigurationProperty { /** * The Amazon Resource Name (ARN) for the destination of the audit logs. * @@ -1682,7 +1695,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.ClientConfigurationsProperty, - ) : CdkObject(cdkObject), ClientConfigurationsProperty { + ) : CdkObject(cdkObject), + ClientConfigurationsProperty { /** * A value that specifies who can mount the file system. * @@ -1834,7 +1848,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.DiskIopsConfigurationProperty, - ) : CdkObject(cdkObject), DiskIopsConfigurationProperty { + ) : CdkObject(cdkObject), + DiskIopsConfigurationProperty { /** * The total number of SSD IOPS provisioned for the file system. * @@ -1896,6 +1911,10 @@ public open class CfnFileSystem( * .exportPath("exportPath") * .importedFileChunkSize(123) * .importPath("importPath") + * .metadataConfiguration(MetadataConfigurationProperty.builder() + * .iops(123) + * .mode("mode") + * .build()) * .perUnitStorageThroughput(123) * .weeklyMaintenanceStartTime("weeklyMaintenanceStartTime") * .build(); @@ -2005,9 +2024,11 @@ public open class CfnFileSystem( * * Choose `PERSISTENT_2` for longer-term storage and for latency-sensitive workloads that * require the highest levels of IOPS/throughput. `PERSISTENT_2` supports SSD storage, and offers - * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). `PERSISTENT_2` is available in a - * limited number of AWS Regions . For more information, and an up-to-date list of AWS Regions in - * which `PERSISTENT_2` is available, see [File system deployment options for FSx for + * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). You can optionally specify a metadata + * configuration mode for `PERSISTENT_2` which supports increasing metadata performance. + * `PERSISTENT_2` is available in a limited number of AWS Regions . For more information, and an + * up-to-date list of AWS Regions in which `PERSISTENT_2` is available, see [File system deployment + * options for FSx for * Lustre](https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-fsx-lustre.html#lustre-deployment-types) * in the *Amazon FSx for Lustre User Guide* . * @@ -2017,9 +2038,9 @@ public open class CfnFileSystem( * * * Encryption of data in transit is automatically turned on when you access `SCRATCH_2` , - * `PERSISTENT_1` and `PERSISTENT_2` file systems from Amazon EC2 instances that support automatic - * encryption in the AWS Regions where they are available. For more information about encryption in - * transit for FSx for Lustre file systems, see [Encrypting data in + * `PERSISTENT_1` , and `PERSISTENT_2` file systems from Amazon EC2 instances that support + * automatic encryption in the AWS Regions where they are available. For more information about + * encryption in transit for FSx for Lustre file systems, see [Encrypting data in * transit](https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html) in * the *Amazon FSx for Lustre User Guide* . * @@ -2104,6 +2125,11 @@ public open class CfnFileSystem( */ public fun importedFileChunkSize(): Number? = unwrap(this).getImportedFileChunkSize() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html#cfn-fsx-filesystem-lustreconfiguration-metadataconfiguration) + */ + public fun metadataConfiguration(): Any? = unwrap(this).getMetadataConfiguration() + /** * Required with `PERSISTENT_1` and `PERSISTENT_2` deployment types, provisions the amount of * read and write throughput for each 1 tebibyte (TiB) of file system storage capacity, in @@ -2246,9 +2272,11 @@ public open class CfnFileSystem( * * Choose `PERSISTENT_2` for longer-term storage and for latency-sensitive workloads that * require the highest levels of IOPS/throughput. `PERSISTENT_2` supports SSD storage, and offers - * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). `PERSISTENT_2` is available in a - * limited number of AWS Regions . For more information, and an up-to-date list of AWS Regions in - * which `PERSISTENT_2` is available, see [File system deployment options for FSx for + * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). You can optionally specify a metadata + * configuration mode for `PERSISTENT_2` which supports increasing metadata performance. + * `PERSISTENT_2` is available in a limited number of AWS Regions . For more information, and an + * up-to-date list of AWS Regions in which `PERSISTENT_2` is available, see [File system + * deployment options for FSx for * Lustre](https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-fsx-lustre.html#lustre-deployment-types) * in the *Amazon FSx for Lustre User Guide* . * @@ -2258,7 +2286,7 @@ public open class CfnFileSystem( * * * Encryption of data in transit is automatically turned on when you access `SCRATCH_2` , - * `PERSISTENT_1` and `PERSISTENT_2` file systems from Amazon EC2 instances that support + * `PERSISTENT_1` , and `PERSISTENT_2` file systems from Amazon EC2 instances that support * automatic encryption in the AWS Regions where they are available. For more information about * encryption in transit for FSx for Lustre file systems, see [Encrypting data in * transit](https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html) @@ -2329,6 +2357,24 @@ public open class CfnFileSystem( */ public fun importedFileChunkSize(importedFileChunkSize: Number) + /** + * @param metadataConfiguration the value to be set. + */ + public fun metadataConfiguration(metadataConfiguration: IResolvable) + + /** + * @param metadataConfiguration the value to be set. + */ + public fun metadataConfiguration(metadataConfiguration: MetadataConfigurationProperty) + + /** + * @param metadataConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7b1bcf8b5d5e207c49db638538a544c8de11b2cfd28342c58028855c26295682") + public + fun metadataConfiguration(metadataConfiguration: MetadataConfigurationProperty.Builder.() -> Unit) + /** * @param perUnitStorageThroughput Required with `PERSISTENT_1` and `PERSISTENT_2` deployment * types, provisions the amount of read and write throughput for each 1 tebibyte (TiB) of file @@ -2478,9 +2524,11 @@ public open class CfnFileSystem( * * Choose `PERSISTENT_2` for longer-term storage and for latency-sensitive workloads that * require the highest levels of IOPS/throughput. `PERSISTENT_2` supports SSD storage, and offers - * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). `PERSISTENT_2` is available in a - * limited number of AWS Regions . For more information, and an up-to-date list of AWS Regions in - * which `PERSISTENT_2` is available, see [File system deployment options for FSx for + * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). You can optionally specify a metadata + * configuration mode for `PERSISTENT_2` which supports increasing metadata performance. + * `PERSISTENT_2` is available in a limited number of AWS Regions . For more information, and an + * up-to-date list of AWS Regions in which `PERSISTENT_2` is available, see [File system + * deployment options for FSx for * Lustre](https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-fsx-lustre.html#lustre-deployment-types) * in the *Amazon FSx for Lustre User Guide* . * @@ -2490,7 +2538,7 @@ public open class CfnFileSystem( * * * Encryption of data in transit is automatically turned on when you access `SCRATCH_2` , - * `PERSISTENT_1` and `PERSISTENT_2` file systems from Amazon EC2 instances that support + * `PERSISTENT_1` , and `PERSISTENT_2` file systems from Amazon EC2 instances that support * automatic encryption in the AWS Regions where they are available. For more information about * encryption in transit for FSx for Lustre file systems, see [Encrypting data in * transit](https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html) @@ -2571,6 +2619,29 @@ public open class CfnFileSystem( cdkBuilder.importedFileChunkSize(importedFileChunkSize) } + /** + * @param metadataConfiguration the value to be set. + */ + override fun metadataConfiguration(metadataConfiguration: IResolvable) { + cdkBuilder.metadataConfiguration(metadataConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param metadataConfiguration the value to be set. + */ + override fun metadataConfiguration(metadataConfiguration: MetadataConfigurationProperty) { + cdkBuilder.metadataConfiguration(metadataConfiguration.let(MetadataConfigurationProperty.Companion::unwrap)) + } + + /** + * @param metadataConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7b1bcf8b5d5e207c49db638538a544c8de11b2cfd28342c58028855c26295682") + override + fun metadataConfiguration(metadataConfiguration: MetadataConfigurationProperty.Builder.() -> Unit): + Unit = metadataConfiguration(MetadataConfigurationProperty(metadataConfiguration)) + /** * @param perUnitStorageThroughput Required with `PERSISTENT_1` and `PERSISTENT_2` deployment * types, provisions the amount of read and write throughput for each 1 tebibyte (TiB) of file @@ -2612,7 +2683,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.LustreConfigurationProperty, - ) : CdkObject(cdkObject), LustreConfigurationProperty { + ) : CdkObject(cdkObject), + LustreConfigurationProperty { /** * (Optional) When you create your file system, your existing S3 objects appear as file and * directory listings. @@ -2714,9 +2786,11 @@ public open class CfnFileSystem( * * Choose `PERSISTENT_2` for longer-term storage and for latency-sensitive workloads that * require the highest levels of IOPS/throughput. `PERSISTENT_2` supports SSD storage, and offers - * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). `PERSISTENT_2` is available in a - * limited number of AWS Regions . For more information, and an up-to-date list of AWS Regions in - * which `PERSISTENT_2` is available, see [File system deployment options for FSx for + * higher `PerUnitStorageThroughput` (up to 1000 MB/s/TiB). You can optionally specify a metadata + * configuration mode for `PERSISTENT_2` which supports increasing metadata performance. + * `PERSISTENT_2` is available in a limited number of AWS Regions . For more information, and an + * up-to-date list of AWS Regions in which `PERSISTENT_2` is available, see [File system + * deployment options for FSx for * Lustre](https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-fsx-lustre.html#lustre-deployment-types) * in the *Amazon FSx for Lustre User Guide* . * @@ -2726,7 +2800,7 @@ public open class CfnFileSystem( * * * Encryption of data in transit is automatically turned on when you access `SCRATCH_2` , - * `PERSISTENT_1` and `PERSISTENT_2` file systems from Amazon EC2 instances that support + * `PERSISTENT_1` , and `PERSISTENT_2` file systems from Amazon EC2 instances that support * automatic encryption in the AWS Regions where they are available. For more information about * encryption in transit for FSx for Lustre file systems, see [Encrypting data in * transit](https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html) @@ -2813,6 +2887,11 @@ public open class CfnFileSystem( */ override fun importedFileChunkSize(): Number? = unwrap(this).getImportedFileChunkSize() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html#cfn-fsx-filesystem-lustreconfiguration-metadataconfiguration) + */ + override fun metadataConfiguration(): Any? = unwrap(this).getMetadataConfiguration() + /** * Required with `PERSISTENT_1` and `PERSISTENT_2` deployment types, provisions the amount of * read and write throughput for each 1 tebibyte (TiB) of file system storage capacity, in @@ -2869,6 +2948,106 @@ public open class CfnFileSystem( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.fsx.*; + * MetadataConfigurationProperty metadataConfigurationProperty = + * MetadataConfigurationProperty.builder() + * .iops(123) + * .mode("mode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-metadataconfiguration.html) + */ + public interface MetadataConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-metadataconfiguration.html#cfn-fsx-filesystem-metadataconfiguration-iops) + */ + public fun iops(): Number? = unwrap(this).getIops() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-metadataconfiguration.html#cfn-fsx-filesystem-metadataconfiguration-mode) + */ + public fun mode(): String? = unwrap(this).getMode() + + /** + * A builder for [MetadataConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param iops the value to be set. + */ + public fun iops(iops: Number) + + /** + * @param mode the value to be set. + */ + public fun mode(mode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty.Builder = + software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty.builder() + + /** + * @param iops the value to be set. + */ + override fun iops(iops: Number) { + cdkBuilder.iops(iops) + } + + /** + * @param mode the value to be set. + */ + override fun mode(mode: String) { + cdkBuilder.mode(mode) + } + + public fun build(): + software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty, + ) : CdkObject(cdkObject), + MetadataConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-metadataconfiguration.html#cfn-fsx-filesystem-metadataconfiguration-iops) + */ + override fun iops(): Number? = unwrap(this).getIops() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-metadataconfiguration.html#cfn-fsx-filesystem-metadataconfiguration-mode) + */ + override fun mode(): String? = unwrap(this).getMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MetadataConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty): + MetadataConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + MetadataConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MetadataConfigurationProperty): + software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.fsx.CfnFileSystem.MetadataConfigurationProperty + } + } + /** * The configuration object for mounting a file system. * @@ -2955,7 +3134,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.NfsExportsProperty, - ) : CdkObject(cdkObject), NfsExportsProperty { + ) : CdkObject(cdkObject), + NfsExportsProperty { /** * A list of configuration objects that contain the client and options for mounting the * OpenZFS file system. @@ -3040,11 +3220,15 @@ public open class CfnFileSystem( /** * Specifies the FSx for ONTAP file system deployment type to use in creating the file system. * - * * `MULTI_AZ_1` - (Default) A high availability file system configured for Multi-AZ redundancy - * to tolerate temporary Availability Zone (AZ) unavailability. - * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. + * * `MULTI_AZ_1` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for + * ONTAP file system. + * * `MULTI_AZ_2` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system. + * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. This is a + * first-generation FSx for ONTAP file system. * * `SINGLE_AZ_2` - A file system configured with multiple high-availability (HA) pairs for - * Single-AZ redundancy. + * Single-AZ redundancy. This is a second-generation FSx for ONTAP file system. * * For information about the use cases for Multi-AZ and Single-AZ deployments, refer to * [Choosing a file system deployment @@ -3086,24 +3270,30 @@ public open class CfnFileSystem( /** * Specifies how many high-availability (HA) pairs of file servers will power your file system. * - * Scale-up file systems are powered by 1 HA pair. The default value is 1. FSx for ONTAP - * scale-out file systems are powered by up to 12 HA pairs. The value of this property affects the - * values of `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, see - * [High-availability (HA) pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/HA-pairs.html) - * in the FSx for ONTAP user guide. + * First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file + * systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up to + * 12 HA pairs. The default value is 1. The value of this property affects the values of + * `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, see + * [High-availability (HA) + * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/administering-file-systems.html#HA-pairs) + * in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is + * disabled on file systems with more than 6 HA pairs. For more information, see [Using block + * storage + * protocols](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/supported-fsx-clients.html#using-block-storage) + * . * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions: * * * The value of `HAPairs` is less than 1 or greater than 12. * * The value of `HAPairs` is greater than 1 and the value of `DeploymentType` is `SINGLE_AZ_1` - * or `MULTI_AZ_1` . + * , `MULTI_AZ_1` , or `MULTI_AZ_2` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-ontapconfiguration.html#cfn-fsx-filesystem-ontapconfiguration-hapairs) */ public fun haPairs(): Number? = unwrap(this).getHaPairs() /** - * Required when `DeploymentType` is set to `MULTI_AZ_1` . + * Required when `DeploymentType` is set to `MULTI_AZ_1` or `MULTI_AZ_2` . * * This specifies the subnet in which you want the preferred file server to be located. * @@ -3155,19 +3345,19 @@ public open class CfnFileSystem( * You can define either the `ThroughputCapacityPerHAPair` or the `ThroughputCapacity` when * creating a file system, but not both. * - * This field and `ThroughputCapacity` are the same for scale-up file systems powered by one HA - * pair. + * This field and `ThroughputCapacity` are the same for file systems powered by one HA pair. * * * For `SINGLE_AZ_1` and `MULTI_AZ_1` file systems, valid values are 128, 256, 512, 1024, * 2048, or 4096 MBps. - * * For `SINGLE_AZ_2` file systems, valid values are 3072 or 6144 MBps. + * * For `SINGLE_AZ_2` , valid values are 1536, 3072, or 6144 MBps. + * * For `MULTI_AZ_2` , valid values are 384, 768, 1536, 3072, or 6144 MBps. * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions: * * * The value of `ThroughputCapacity` and `ThroughputCapacityPerHAPair` are not the same value * for file systems with one HA pair. * * The value of deployment type is `SINGLE_AZ_2` and `ThroughputCapacity` / - * `ThroughputCapacityPerHAPair` is a valid HA pair (a value between 2 and 12). + * `ThroughputCapacityPerHAPair` is not a valid HA pair (a value between 1 and 12). * * The value of `ThroughputCapacityPerHAPair` is not a valid value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-ontapconfiguration.html#cfn-fsx-filesystem-ontapconfiguration-throughputcapacityperhapair) @@ -3213,11 +3403,15 @@ public open class CfnFileSystem( /** * @param deploymentType Specifies the FSx for ONTAP file system deployment type to use in * creating the file system. - * * `MULTI_AZ_1` - (Default) A high availability file system configured for Multi-AZ - * redundancy to tolerate temporary Availability Zone (AZ) unavailability. - * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. + * * `MULTI_AZ_1` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for + * ONTAP file system. + * * `MULTI_AZ_2` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system. + * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. This is a + * first-generation FSx for ONTAP file system. * * `SINGLE_AZ_2` - A file system configured with multiple high-availability (HA) pairs for - * Single-AZ redundancy. + * Single-AZ redundancy. This is a second-generation FSx for ONTAP file system. * * For information about the use cases for Multi-AZ and Single-AZ deployments, refer to * [Choosing a file system deployment @@ -3263,24 +3457,30 @@ public open class CfnFileSystem( /** * @param haPairs Specifies how many high-availability (HA) pairs of file servers will power * your file system. - * Scale-up file systems are powered by 1 HA pair. The default value is 1. FSx for ONTAP - * scale-out file systems are powered by up to 12 HA pairs. The value of this property affects - * the values of `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, - * see [High-availability (HA) - * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/HA-pairs.html) in the FSx for ONTAP - * user guide. + * First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file + * systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up + * to 12 HA pairs. The default value is 1. The value of this property affects the values of + * `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, see + * [High-availability (HA) + * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/administering-file-systems.html#HA-pairs) + * in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is + * disabled on file systems with more than 6 HA pairs. For more information, see [Using block + * storage + * protocols](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/supported-fsx-clients.html#using-block-storage) + * . * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: * * * The value of `HAPairs` is less than 1 or greater than 12. * * The value of `HAPairs` is greater than 1 and the value of `DeploymentType` is - * `SINGLE_AZ_1` or `MULTI_AZ_1` . + * `SINGLE_AZ_1` , `MULTI_AZ_1` , or `MULTI_AZ_2` . */ public fun haPairs(haPairs: Number) /** - * @param preferredSubnetId Required when `DeploymentType` is set to `MULTI_AZ_1` . + * @param preferredSubnetId Required when `DeploymentType` is set to `MULTI_AZ_1` or + * `MULTI_AZ_2` . * This specifies the subnet in which you want the preferred file server to be located. */ public fun preferredSubnetId(preferredSubnetId: String) @@ -3338,12 +3538,12 @@ public open class CfnFileSystem( * You can define either the `ThroughputCapacityPerHAPair` or the `ThroughputCapacity` when * creating a file system, but not both. * - * This field and `ThroughputCapacity` are the same for scale-up file systems powered by one - * HA pair. + * This field and `ThroughputCapacity` are the same for file systems powered by one HA pair. * * * For `SINGLE_AZ_1` and `MULTI_AZ_1` file systems, valid values are 128, 256, 512, 1024, * 2048, or 4096 MBps. - * * For `SINGLE_AZ_2` file systems, valid values are 3072 or 6144 MBps. + * * For `SINGLE_AZ_2` , valid values are 1536, 3072, or 6144 MBps. + * * For `MULTI_AZ_2` , valid values are 384, 768, 1536, 3072, or 6144 MBps. * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: @@ -3351,7 +3551,7 @@ public open class CfnFileSystem( * * The value of `ThroughputCapacity` and `ThroughputCapacityPerHAPair` are not the same * value for file systems with one HA pair. * * The value of deployment type is `SINGLE_AZ_2` and `ThroughputCapacity` / - * `ThroughputCapacityPerHAPair` is a valid HA pair (a value between 2 and 12). + * `ThroughputCapacityPerHAPair` is not a valid HA pair (a value between 1 and 12). * * The value of `ThroughputCapacityPerHAPair` is not a valid value. */ public fun throughputCapacityPerHaPair(throughputCapacityPerHaPair: Number) @@ -3396,11 +3596,15 @@ public open class CfnFileSystem( /** * @param deploymentType Specifies the FSx for ONTAP file system deployment type to use in * creating the file system. - * * `MULTI_AZ_1` - (Default) A high availability file system configured for Multi-AZ - * redundancy to tolerate temporary Availability Zone (AZ) unavailability. - * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. + * * `MULTI_AZ_1` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for + * ONTAP file system. + * * `MULTI_AZ_2` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system. + * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. This is a + * first-generation FSx for ONTAP file system. * * `SINGLE_AZ_2` - A file system configured with multiple high-availability (HA) pairs for - * Single-AZ redundancy. + * Single-AZ redundancy. This is a second-generation FSx for ONTAP file system. * * For information about the use cases for Multi-AZ and Single-AZ deployments, refer to * [Choosing a file system deployment @@ -3457,26 +3661,32 @@ public open class CfnFileSystem( /** * @param haPairs Specifies how many high-availability (HA) pairs of file servers will power * your file system. - * Scale-up file systems are powered by 1 HA pair. The default value is 1. FSx for ONTAP - * scale-out file systems are powered by up to 12 HA pairs. The value of this property affects - * the values of `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, - * see [High-availability (HA) - * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/HA-pairs.html) in the FSx for ONTAP - * user guide. + * First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file + * systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up + * to 12 HA pairs. The default value is 1. The value of this property affects the values of + * `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, see + * [High-availability (HA) + * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/administering-file-systems.html#HA-pairs) + * in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is + * disabled on file systems with more than 6 HA pairs. For more information, see [Using block + * storage + * protocols](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/supported-fsx-clients.html#using-block-storage) + * . * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: * * * The value of `HAPairs` is less than 1 or greater than 12. * * The value of `HAPairs` is greater than 1 and the value of `DeploymentType` is - * `SINGLE_AZ_1` or `MULTI_AZ_1` . + * `SINGLE_AZ_1` , `MULTI_AZ_1` , or `MULTI_AZ_2` . */ override fun haPairs(haPairs: Number) { cdkBuilder.haPairs(haPairs) } /** - * @param preferredSubnetId Required when `DeploymentType` is set to `MULTI_AZ_1` . + * @param preferredSubnetId Required when `DeploymentType` is set to `MULTI_AZ_1` or + * `MULTI_AZ_2` . * This specifies the subnet in which you want the preferred file server to be located. */ override fun preferredSubnetId(preferredSubnetId: String) { @@ -3541,12 +3751,12 @@ public open class CfnFileSystem( * You can define either the `ThroughputCapacityPerHAPair` or the `ThroughputCapacity` when * creating a file system, but not both. * - * This field and `ThroughputCapacity` are the same for scale-up file systems powered by one - * HA pair. + * This field and `ThroughputCapacity` are the same for file systems powered by one HA pair. * * * For `SINGLE_AZ_1` and `MULTI_AZ_1` file systems, valid values are 128, 256, 512, 1024, * 2048, or 4096 MBps. - * * For `SINGLE_AZ_2` file systems, valid values are 3072 or 6144 MBps. + * * For `SINGLE_AZ_2` , valid values are 1536, 3072, or 6144 MBps. + * * For `MULTI_AZ_2` , valid values are 384, 768, 1536, 3072, or 6144 MBps. * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: @@ -3554,7 +3764,7 @@ public open class CfnFileSystem( * * The value of `ThroughputCapacity` and `ThroughputCapacityPerHAPair` are not the same * value for file systems with one HA pair. * * The value of deployment type is `SINGLE_AZ_2` and `ThroughputCapacity` / - * `ThroughputCapacityPerHAPair` is a valid HA pair (a value between 2 and 12). + * `ThroughputCapacityPerHAPair` is not a valid HA pair (a value between 1 and 12). * * The value of `ThroughputCapacityPerHAPair` is not a valid value. */ override fun throughputCapacityPerHaPair(throughputCapacityPerHaPair: Number) { @@ -3583,7 +3793,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.OntapConfigurationProperty, - ) : CdkObject(cdkObject), OntapConfigurationProperty { + ) : CdkObject(cdkObject), + OntapConfigurationProperty { /** * The number of days to retain automatic backups. * @@ -3609,11 +3820,15 @@ public open class CfnFileSystem( /** * Specifies the FSx for ONTAP file system deployment type to use in creating the file system. * - * * `MULTI_AZ_1` - (Default) A high availability file system configured for Multi-AZ - * redundancy to tolerate temporary Availability Zone (AZ) unavailability. - * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. + * * `MULTI_AZ_1` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for + * ONTAP file system. + * * `MULTI_AZ_2` - A high availability file system configured for Multi-AZ redundancy to + * tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system. + * * `SINGLE_AZ_1` - A file system configured for Single-AZ redundancy. This is a + * first-generation FSx for ONTAP file system. * * `SINGLE_AZ_2` - A file system configured with multiple high-availability (HA) pairs for - * Single-AZ redundancy. + * Single-AZ redundancy. This is a second-generation FSx for ONTAP file system. * * For information about the use cases for Multi-AZ and Single-AZ deployments, refer to * [Choosing a file system deployment @@ -3656,26 +3871,31 @@ public open class CfnFileSystem( * Specifies how many high-availability (HA) pairs of file servers will power your file * system. * - * Scale-up file systems are powered by 1 HA pair. The default value is 1. FSx for ONTAP - * scale-out file systems are powered by up to 12 HA pairs. The value of this property affects - * the values of `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, - * see [High-availability (HA) - * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/HA-pairs.html) in the FSx for ONTAP - * user guide. + * First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file + * systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up + * to 12 HA pairs. The default value is 1. The value of this property affects the values of + * `StorageCapacity` , `Iops` , and `ThroughputCapacity` . For more information, see + * [High-availability (HA) + * pairs](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/administering-file-systems.html#HA-pairs) + * in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is + * disabled on file systems with more than 6 HA pairs. For more information, see [Using block + * storage + * protocols](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/supported-fsx-clients.html#using-block-storage) + * . * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: * * * The value of `HAPairs` is less than 1 or greater than 12. * * The value of `HAPairs` is greater than 1 and the value of `DeploymentType` is - * `SINGLE_AZ_1` or `MULTI_AZ_1` . + * `SINGLE_AZ_1` , `MULTI_AZ_1` , or `MULTI_AZ_2` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-ontapconfiguration.html#cfn-fsx-filesystem-ontapconfiguration-hapairs) */ override fun haPairs(): Number? = unwrap(this).getHaPairs() /** - * Required when `DeploymentType` is set to `MULTI_AZ_1` . + * Required when `DeploymentType` is set to `MULTI_AZ_1` or `MULTI_AZ_2` . * * This specifies the subnet in which you want the preferred file server to be located. * @@ -3729,12 +3949,12 @@ public open class CfnFileSystem( * You can define either the `ThroughputCapacityPerHAPair` or the `ThroughputCapacity` when * creating a file system, but not both. * - * This field and `ThroughputCapacity` are the same for scale-up file systems powered by one - * HA pair. + * This field and `ThroughputCapacity` are the same for file systems powered by one HA pair. * * * For `SINGLE_AZ_1` and `MULTI_AZ_1` file systems, valid values are 128, 256, 512, 1024, * 2048, or 4096 MBps. - * * For `SINGLE_AZ_2` file systems, valid values are 3072 or 6144 MBps. + * * For `SINGLE_AZ_2` , valid values are 1536, 3072, or 6144 MBps. + * * For `MULTI_AZ_2` , valid values are 384, 768, 1536, 3072, or 6144 MBps. * * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following * conditions: @@ -3742,7 +3962,7 @@ public open class CfnFileSystem( * * The value of `ThroughputCapacity` and `ThroughputCapacityPerHAPair` are not the same * value for file systems with one HA pair. * * The value of deployment type is `SINGLE_AZ_2` and `ThroughputCapacity` / - * `ThroughputCapacityPerHAPair` is a valid HA pair (a value between 2 and 12). + * `ThroughputCapacityPerHAPair` is not a valid HA pair (a value between 1 and 12). * * The value of `ThroughputCapacityPerHAPair` is not a valid value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-ontapconfiguration.html#cfn-fsx-filesystem-ontapconfiguration-throughputcapacityperhapair) @@ -3884,25 +4104,25 @@ public open class CfnFileSystem( unwrap(this).getDailyAutomaticBackupStartTime() /** - * Specifies the file system deployment type. - * - * Single AZ deployment types are configured for redundancy within a single Availability Zone in - * an AWS Region . Valid values are the following: + * Specifies the file system deployment type. Valid values are the following:. * - * * `MULTI_AZ_1` - Creates file systems with high availability that are configured for Multi-AZ - * redundancy to tolerate temporary unavailability in Availability Zones (AZs). `Multi_AZ_1` is - * available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific - * (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) AWS Regions . - * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MB/s. - * `Single_AZ_1` is available in all AWS Regions where Amazon FSx for OpenZFS is available. + * * `MULTI_AZ_1` - Creates file systems with high availability and durability by replicating + * your data and supporting failover across multiple Availability Zones in the same AWS Region . + * * `SINGLE_AZ_HA_2` - Creates file systems with high availability and throughput capacities of + * 160 - 10,240 MB/s using an NVMe L2ARC cache by deploying a primary and standby file system + * within the same Availability Zone. + * * `SINGLE_AZ_HA_1` - Creates file systems with high availability and throughput capacities of + * 64 - 4,096 MB/s by deploying a primary and standby file system within the same Availability + * Zone. * * `SINGLE_AZ_2` - Creates file systems with throughput capacities of 160 - 10,240 MB/s using - * an NVMe L2ARC cache. `Single_AZ_2` is available only in the US East (N. Virginia), US East - * (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) - * AWS Regions . + * an NVMe L2ARC cache that automatically recover within a single Availability Zone. + * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MBs that + * automatically recover within a single Availability Zone. * - * For more information, see [Deployment type + * For a list of which AWS Regions each deployment type is available in, see [Deployment type * availability](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/availability-durability.html#available-aws-regions) - * and [File system + * . For more information on the differences in performance between deployment types, see [File + * system * performance](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance.html#zfs-fs-performance) * in the *Amazon FSx for OpenZFS User Guide* . * @@ -4073,24 +4293,25 @@ public open class CfnFileSystem( public fun dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime: String) /** - * @param deploymentType Specifies the file system deployment type. - * Single AZ deployment types are configured for redundancy within a single Availability Zone - * in an AWS Region . Valid values are the following: - * - * * `MULTI_AZ_1` - Creates file systems with high availability that are configured for - * Multi-AZ redundancy to tolerate temporary unavailability in Availability Zones (AZs). - * `Multi_AZ_1` is available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), - * Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) AWS Regions . - * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MB/s. - * `Single_AZ_1` is available in all AWS Regions where Amazon FSx for OpenZFS is available. + * @param deploymentType Specifies the file system deployment type. Valid values are the + * following:. + * * `MULTI_AZ_1` - Creates file systems with high availability and durability by replicating + * your data and supporting failover across multiple Availability Zones in the same AWS Region . + * * `SINGLE_AZ_HA_2` - Creates file systems with high availability and throughput capacities + * of 160 - 10,240 MB/s using an NVMe L2ARC cache by deploying a primary and standby file system + * within the same Availability Zone. + * * `SINGLE_AZ_HA_1` - Creates file systems with high availability and throughput capacities + * of 64 - 4,096 MB/s by deploying a primary and standby file system within the same Availability + * Zone. * * `SINGLE_AZ_2` - Creates file systems with throughput capacities of 160 - 10,240 MB/s - * using an NVMe L2ARC cache. `Single_AZ_2` is available only in the US East (N. Virginia), US - * East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe - * (Ireland) AWS Regions . + * using an NVMe L2ARC cache that automatically recover within a single Availability Zone. + * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MBs that + * automatically recover within a single Availability Zone. * - * For more information, see [Deployment type + * For a list of which AWS Regions each deployment type is available in, see [Deployment type * availability](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/availability-durability.html#available-aws-regions) - * and [File system + * . For more information on the differences in performance between deployment types, see [File + * system * performance](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance.html#zfs-fs-performance) * in the *Amazon FSx for OpenZFS User Guide* . */ @@ -4308,24 +4529,25 @@ public open class CfnFileSystem( } /** - * @param deploymentType Specifies the file system deployment type. - * Single AZ deployment types are configured for redundancy within a single Availability Zone - * in an AWS Region . Valid values are the following: - * - * * `MULTI_AZ_1` - Creates file systems with high availability that are configured for - * Multi-AZ redundancy to tolerate temporary unavailability in Availability Zones (AZs). - * `Multi_AZ_1` is available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), - * Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) AWS Regions . - * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MB/s. - * `Single_AZ_1` is available in all AWS Regions where Amazon FSx for OpenZFS is available. + * @param deploymentType Specifies the file system deployment type. Valid values are the + * following:. + * * `MULTI_AZ_1` - Creates file systems with high availability and durability by replicating + * your data and supporting failover across multiple Availability Zones in the same AWS Region . + * * `SINGLE_AZ_HA_2` - Creates file systems with high availability and throughput capacities + * of 160 - 10,240 MB/s using an NVMe L2ARC cache by deploying a primary and standby file system + * within the same Availability Zone. + * * `SINGLE_AZ_HA_1` - Creates file systems with high availability and throughput capacities + * of 64 - 4,096 MB/s by deploying a primary and standby file system within the same Availability + * Zone. * * `SINGLE_AZ_2` - Creates file systems with throughput capacities of 160 - 10,240 MB/s - * using an NVMe L2ARC cache. `Single_AZ_2` is available only in the US East (N. Virginia), US - * East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe - * (Ireland) AWS Regions . + * using an NVMe L2ARC cache that automatically recover within a single Availability Zone. + * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MBs that + * automatically recover within a single Availability Zone. * - * For more information, see [Deployment type + * For a list of which AWS Regions each deployment type is available in, see [Deployment type * availability](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/availability-durability.html#available-aws-regions) - * and [File system + * . For more information on the differences in performance between deployment types, see [File + * system * performance](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance.html#zfs-fs-performance) * in the *Amazon FSx for OpenZFS User Guide* . */ @@ -4499,7 +4721,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.OpenZFSConfigurationProperty, - ) : CdkObject(cdkObject), OpenZFSConfigurationProperty { + ) : CdkObject(cdkObject), + OpenZFSConfigurationProperty { /** * The number of days to retain automatic backups. * @@ -4549,25 +4772,25 @@ public open class CfnFileSystem( unwrap(this).getDailyAutomaticBackupStartTime() /** - * Specifies the file system deployment type. - * - * Single AZ deployment types are configured for redundancy within a single Availability Zone - * in an AWS Region . Valid values are the following: + * Specifies the file system deployment type. Valid values are the following:. * - * * `MULTI_AZ_1` - Creates file systems with high availability that are configured for - * Multi-AZ redundancy to tolerate temporary unavailability in Availability Zones (AZs). - * `Multi_AZ_1` is available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), - * Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) AWS Regions . - * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MB/s. - * `Single_AZ_1` is available in all AWS Regions where Amazon FSx for OpenZFS is available. + * * `MULTI_AZ_1` - Creates file systems with high availability and durability by replicating + * your data and supporting failover across multiple Availability Zones in the same AWS Region . + * * `SINGLE_AZ_HA_2` - Creates file systems with high availability and throughput capacities + * of 160 - 10,240 MB/s using an NVMe L2ARC cache by deploying a primary and standby file system + * within the same Availability Zone. + * * `SINGLE_AZ_HA_1` - Creates file systems with high availability and throughput capacities + * of 64 - 4,096 MB/s by deploying a primary and standby file system within the same Availability + * Zone. * * `SINGLE_AZ_2` - Creates file systems with throughput capacities of 160 - 10,240 MB/s - * using an NVMe L2ARC cache. `Single_AZ_2` is available only in the US East (N. Virginia), US - * East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe - * (Ireland) AWS Regions . + * using an NVMe L2ARC cache that automatically recover within a single Availability Zone. + * * `SINGLE_AZ_1` - Creates file systems with throughput capacities of 64 - 4,096 MBs that + * automatically recover within a single Availability Zone. * - * For more information, see [Deployment type + * For a list of which AWS Regions each deployment type is available in, see [Deployment type * availability](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/availability-durability.html#available-aws-regions) - * and [File system + * . For more information on the differences in performance between deployment types, see [File + * system * performance](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/performance.html#zfs-fs-performance) * in the *Amazon FSx for OpenZFS User Guide* . * @@ -5014,7 +5237,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.RootVolumeConfigurationProperty, - ) : CdkObject(cdkObject), RootVolumeConfigurationProperty { + ) : CdkObject(cdkObject), + RootVolumeConfigurationProperty { /** * A Boolean value indicating whether tags for the volume should be copied to snapshots of the * volume. @@ -5344,7 +5568,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.SelfManagedActiveDirectoryConfigurationProperty, - ) : CdkObject(cdkObject), SelfManagedActiveDirectoryConfigurationProperty { + ) : CdkObject(cdkObject), + SelfManagedActiveDirectoryConfigurationProperty { /** * A list of up to three IP addresses of DNS servers or domain controllers in the self-managed * AD directory. @@ -5533,7 +5758,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.UserAndGroupQuotasProperty, - ) : CdkObject(cdkObject), UserAndGroupQuotasProperty { + ) : CdkObject(cdkObject), + UserAndGroupQuotasProperty { /** * The ID of the user or group that the quota applies to. * @@ -6319,7 +6545,8 @@ public open class CfnFileSystem( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystem.WindowsConfigurationProperty, - ) : CdkObject(cdkObject), WindowsConfigurationProperty { + ) : CdkObject(cdkObject), + WindowsConfigurationProperty { /** * The ID for an existing AWS Managed Microsoft Active Directory (AD) instance that the file * system should join when it's created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystemProps.kt index a07995f71f..4c1e466119 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnFileSystemProps.kt @@ -41,6 +41,10 @@ import kotlin.jvm.JvmName * .exportPath("exportPath") * .importedFileChunkSize(123) * .importPath("importPath") + * .metadataConfiguration(MetadataConfigurationProperty.builder() + * .iops(123) + * .mode("mode") + * .build()) * .perUnitStorageThroughput(123) * .weeklyMaintenanceStartTime("weeklyMaintenanceStartTime") * .build()) @@ -160,22 +164,23 @@ public interface CfnFileSystemProps { public fun fileSystemType(): String /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. * * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required when - * setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . - * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . - * + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a metadata + * configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * Default value is `2.10` , except for the following deployments: * + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion) */ @@ -262,8 +267,10 @@ public interface CfnFileSystemProps { * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 * GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is from * 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you can @@ -359,20 +366,22 @@ public interface CfnFileSystemProps { public fun fileSystemType(fileSystemType: String) /** - * @param fileSystemTypeVersion (Optional) For FSx for Lustre file systems, sets the Lustre - * version for the file system that you're creating. + * @param fileSystemTypeVersion For FSx for Lustre file systems, sets the Lustre version for the + * file system that you're creating. * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required - * when setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a + * metadata configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . + * Default value is `2.10` , except for the following deployments: * - * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. */ public fun fileSystemTypeVersion(fileSystemTypeVersion: String) @@ -514,8 +523,10 @@ public interface CfnFileSystemProps { * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of * 3600 GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is * from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you @@ -648,20 +659,22 @@ public interface CfnFileSystemProps { } /** - * @param fileSystemTypeVersion (Optional) For FSx for Lustre file systems, sets the Lustre - * version for the file system that you're creating. + * @param fileSystemTypeVersion For FSx for Lustre file systems, sets the Lustre version for the + * file system that you're creating. * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required - * when setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . - * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a + * metadata configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * + * Default value is `2.10` , except for the following deployments: * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. */ override fun fileSystemTypeVersion(fileSystemTypeVersion: String) { cdkBuilder.fileSystemTypeVersion(fileSystemTypeVersion) @@ -827,8 +840,10 @@ public interface CfnFileSystemProps { * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of * 3600 GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is * from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you @@ -956,7 +971,8 @@ public interface CfnFileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnFileSystemProps, - ) : CdkObject(cdkObject), CfnFileSystemProps { + ) : CdkObject(cdkObject), + CfnFileSystemProps { /** * The ID of the file system backup that you are using to create a file system. * @@ -977,22 +993,23 @@ public interface CfnFileSystemProps { override fun fileSystemType(): String = unwrap(this).getFileSystemType() /** - * (Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that - * you're creating. + * For FSx for Lustre file systems, sets the Lustre version for the file system that you're + * creating. * * Valid values are `2.10` , `2.12` , and `2.15` : * - * * 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types. - * * 2.12 and 2.15 are supported by all Lustre deployment types. `2.12` or `2.15` is required - * when setting FSx for Lustre `DeploymentType` to `PERSISTENT_2` . - * - * Default value = `2.10` , except when `DeploymentType` is set to `PERSISTENT_2` , then the - * default is `2.12` . - * + * * `2.10` is supported by the Scratch and Persistent_1 Lustre deployment types. + * * `2.12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a + * metadata configuration mode. + * * `2.15` is supported by all Lustre deployment types and is recommended for all new file + * systems. * - * If you set `FileSystemTypeVersion` to `2.10` for a `PERSISTENT_2` Lustre deployment type, the - * `CreateFileSystem` operation fails. + * Default value is `2.10` , except for the following deployments: * + * * Default value is `2.12` when `DeploymentType` is set to `PERSISTENT_2` without a metadata + * configuration mode. + * * Default value is `2.15` when `DeploymentType` is set to `PERSISTENT_2` with a metadata + * configuration mode. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion) */ @@ -1081,8 +1098,10 @@ public interface CfnFileSystemProps { * * For `SCRATCH_1` deployment type, valid values are 1200 GiB, 2400 GiB, and increments of * 3600 GiB. * - * *FSx for ONTAP file systems* - The amount of storage capacity that you can configure is from - * 1024 GiB up to 196,608 GiB (192 TiB). + * *FSx for ONTAP file systems* - The amount of SSD storage capacity that you can configure + * depends on the value of the `HAPairs` property. The minimum value is calculated as 1,024 GiB * + * HAPairs and the maximum is calculated as 524,288 GiB * HAPairs, up to a maximum amount of SSD + * storage capacity of 1,048,576 GiB (1 pebibyte). * * *FSx for OpenZFS file systems* - The amount of storage capacity that you can configure is * from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshot.kt index c33a5ba190..a8d38d7ff8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshot.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSnapshot( cdkObject: software.amazon.awscdk.services.fsx.CfnSnapshot, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshotProps.kt index fb5629aad9..a18f31e07d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnSnapshotProps.kt @@ -115,7 +115,8 @@ public interface CfnSnapshotProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnSnapshotProps, - ) : CdkObject(cdkObject), CfnSnapshotProps { + ) : CdkObject(cdkObject), + CfnSnapshotProps { /** * The name of the snapshot. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachine.kt index d668268408..18a4b49e4a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachine.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageVirtualMachine( cdkObject: software.amazon.awscdk.services.fsx.CfnStorageVirtualMachine, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -607,7 +609,8 @@ public open class CfnStorageVirtualMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnStorageVirtualMachine.ActiveDirectoryConfigurationProperty, - ) : CdkObject(cdkObject), ActiveDirectoryConfigurationProperty { + ) : CdkObject(cdkObject), + ActiveDirectoryConfigurationProperty { /** * The NetBIOS name of the Active Directory computer object that will be created for your SVM. * @@ -883,7 +886,8 @@ public open class CfnStorageVirtualMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnStorageVirtualMachine.SelfManagedActiveDirectoryConfigurationProperty, - ) : CdkObject(cdkObject), SelfManagedActiveDirectoryConfigurationProperty { + ) : CdkObject(cdkObject), + SelfManagedActiveDirectoryConfigurationProperty { /** * A list of up to three IP addresses of DNS servers or domain controllers in the self-managed * AD directory. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachineProps.kt index 92308f7f82..d13b46ceef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnStorageVirtualMachineProps.kt @@ -276,7 +276,8 @@ public interface CfnStorageVirtualMachineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnStorageVirtualMachineProps, - ) : CdkObject(cdkObject), CfnStorageVirtualMachineProps { + ) : CdkObject(cdkObject), + CfnStorageVirtualMachineProps { /** * Describes the Microsoft Active Directory configuration to which the SVM is joined, if * applicable. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolume.kt index 6c451042b2..83d0cc1acf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolume.kt @@ -123,7 +123,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVolume( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -570,7 +572,7 @@ public open class CfnVolume( * Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X is - * a number between 1 and 6. + * a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support adding * more volumes. @@ -605,7 +607,7 @@ public open class CfnVolume( * conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X - * is a number between 1 and 6. + * is a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support * adding more volumes. @@ -623,7 +625,7 @@ public open class CfnVolume( * conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X - * is a number between 1 and 6. + * is a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support * adding more volumes. @@ -655,7 +657,7 @@ public open class CfnVolume( * conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X - * is a number between 1 and 6. + * is a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support * adding more volumes. @@ -675,7 +677,7 @@ public open class CfnVolume( * conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X - * is a number between 1 and 6. + * is a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support * adding more volumes. @@ -699,7 +701,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.AggregateConfigurationProperty, - ) : CdkObject(cdkObject), AggregateConfigurationProperty { + ) : CdkObject(cdkObject), + AggregateConfigurationProperty { /** * The list of aggregates that this volume resides on. * @@ -712,7 +715,7 @@ public open class CfnVolume( * conditions: * * * The strings in the value of `Aggregates` are not are not formatted as `aggrX` , where X - * is a number between 1 and 6. + * is a number between 1 and 12. * * The value of `Aggregates` contains aggregates that are not present. * * One or more of the aggregates supplied are too close to the volume limit to support * adding more volumes. @@ -863,7 +866,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.AutocommitPeriodProperty, - ) : CdkObject(cdkObject), AutocommitPeriodProperty { + ) : CdkObject(cdkObject), + AutocommitPeriodProperty { /** * Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock * volume. @@ -1055,7 +1059,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.ClientConfigurationsProperty, - ) : CdkObject(cdkObject), ClientConfigurationsProperty { + ) : CdkObject(cdkObject), + ClientConfigurationsProperty { /** * A value that specifies who can mount the file system. * @@ -1190,7 +1195,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.NfsExportsProperty, - ) : CdkObject(cdkObject), NfsExportsProperty { + ) : CdkObject(cdkObject), + NfsExportsProperty { /** * A list of configuration objects that contain the client and options for mounting the * OpenZFS file system. @@ -1319,8 +1325,8 @@ public open class CfnVolume( * destination of a NetApp SnapMirror relationship. * * For more information, see [Volume - * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-types) in the Amazon FSx for - * NetApp ONTAP User Guide. + * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-types) in + * the Amazon FSx for NetApp ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-ontapvolumetype) */ @@ -1331,9 +1337,7 @@ public open class CfnVolume( * * If a volume's security style is not specified, it is automatically set to the root volume's * security style. The security style determines the type of permissions that FSx for ONTAP uses to - * control data access. For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style) in the *Amazon - * FSx for NetApp ONTAP User Guide* . Specify one of the following values: + * control data access. Specify one of the following values: * * * `UNIX` if the file system is managed by a UNIX administrator, the majority of users are NFS * clients, and an application accessing the data uses a UNIX user as the service account. @@ -1345,8 +1349,8 @@ public open class CfnVolume( * in the NetApp Documentation Center. * * For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style.html) in the FSx - * for ONTAP User Guide. + * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-security-style) + * in the FSx for ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-securitystyle) */ @@ -1442,8 +1446,8 @@ public open class CfnVolume( * * FSx for ONTAP offers two styles of volumes that you can use for different purposes, FlexVol * and FlexGroup volumes. For more information, see [Volume - * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-styles.html) in the Amazon FSx - * for NetApp ONTAP User Guide. + * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-styles) + * in the Amazon FSx for NetApp ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-volumestyle) */ @@ -1501,8 +1505,8 @@ public open class CfnVolume( * the destination of a NetApp SnapMirror relationship. * * For more information, see [Volume - * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-types) in the Amazon FSx for - * NetApp ONTAP User Guide. + * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-types) + * in the Amazon FSx for NetApp ONTAP User Guide. */ public fun ontapVolumeType(ontapVolumeType: String) @@ -1510,9 +1514,7 @@ public open class CfnVolume( * @param securityStyle Specifies the security style for the volume. * If a volume's security style is not specified, it is automatically set to the root volume's * security style. The security style determines the type of permissions that FSx for ONTAP uses - * to control data access. For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style) in the *Amazon - * FSx for NetApp ONTAP User Guide* . Specify one of the following values: + * to control data access. Specify one of the following values: * * * `UNIX` if the file system is managed by a UNIX administrator, the majority of users are * NFS clients, and an application accessing the data uses a UNIX user as the service account. @@ -1525,8 +1527,8 @@ public open class CfnVolume( * in the NetApp Documentation Center. * * For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style.html) in the - * FSx for ONTAP User Guide. + * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-security-style) + * in the FSx for ONTAP User Guide. */ public fun securityStyle(securityStyle: String) @@ -1656,8 +1658,8 @@ public open class CfnVolume( * @param volumeStyle Use to specify the style of an ONTAP volume. * FSx for ONTAP offers two styles of volumes that you can use for different purposes, FlexVol * and FlexGroup volumes. For more information, see [Volume - * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-styles.html) in the Amazon - * FSx for NetApp ONTAP User Guide. + * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-styles) + * in the Amazon FSx for NetApp ONTAP User Guide. */ public fun volumeStyle(volumeStyle: String) } @@ -1723,8 +1725,8 @@ public open class CfnVolume( * the destination of a NetApp SnapMirror relationship. * * For more information, see [Volume - * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-types) in the Amazon FSx for - * NetApp ONTAP User Guide. + * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-types) + * in the Amazon FSx for NetApp ONTAP User Guide. */ override fun ontapVolumeType(ontapVolumeType: String) { cdkBuilder.ontapVolumeType(ontapVolumeType) @@ -1734,9 +1736,7 @@ public open class CfnVolume( * @param securityStyle Specifies the security style for the volume. * If a volume's security style is not specified, it is automatically set to the root volume's * security style. The security style determines the type of permissions that FSx for ONTAP uses - * to control data access. For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style) in the *Amazon - * FSx for NetApp ONTAP User Guide* . Specify one of the following values: + * to control data access. Specify one of the following values: * * * `UNIX` if the file system is managed by a UNIX administrator, the majority of users are * NFS clients, and an application accessing the data uses a UNIX user as the service account. @@ -1749,8 +1749,8 @@ public open class CfnVolume( * in the NetApp Documentation Center. * * For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style.html) in the - * FSx for ONTAP User Guide. + * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-security-style) + * in the FSx for ONTAP User Guide. */ override fun securityStyle(securityStyle: String) { cdkBuilder.securityStyle(securityStyle) @@ -1902,8 +1902,8 @@ public open class CfnVolume( * @param volumeStyle Use to specify the style of an ONTAP volume. * FSx for ONTAP offers two styles of volumes that you can use for different purposes, FlexVol * and FlexGroup volumes. For more information, see [Volume - * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-styles.html) in the Amazon - * FSx for NetApp ONTAP User Guide. + * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-styles) + * in the Amazon FSx for NetApp ONTAP User Guide. */ override fun volumeStyle(volumeStyle: String) { cdkBuilder.volumeStyle(volumeStyle) @@ -1915,7 +1915,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.OntapConfigurationProperty, - ) : CdkObject(cdkObject), OntapConfigurationProperty { + ) : CdkObject(cdkObject), + OntapConfigurationProperty { /** * Used to specify the configuration options for an FSx for ONTAP volume's storage aggregate * or aggregates. @@ -1954,8 +1955,8 @@ public open class CfnVolume( * the destination of a NetApp SnapMirror relationship. * * For more information, see [Volume - * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-types) in the Amazon FSx for - * NetApp ONTAP User Guide. + * types](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-types) + * in the Amazon FSx for NetApp ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-ontapvolumetype) */ @@ -1966,9 +1967,7 @@ public open class CfnVolume( * * If a volume's security style is not specified, it is automatically set to the root volume's * security style. The security style determines the type of permissions that FSx for ONTAP uses - * to control data access. For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style) in the *Amazon - * FSx for NetApp ONTAP User Guide* . Specify one of the following values: + * to control data access. Specify one of the following values: * * * `UNIX` if the file system is managed by a UNIX administrator, the majority of users are * NFS clients, and an application accessing the data uses a UNIX user as the service account. @@ -1981,8 +1980,8 @@ public open class CfnVolume( * in the NetApp Documentation Center. * * For more information, see [Volume security - * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-security-style.html) in the - * FSx for ONTAP User Guide. + * style](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-security-style) + * in the FSx for ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-securitystyle) */ @@ -2078,8 +2077,8 @@ public open class CfnVolume( * * FSx for ONTAP offers two styles of volumes that you can use for different purposes, FlexVol * and FlexGroup volumes. For more information, see [Volume - * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/volume-styles.html) in the Amazon - * FSx for NetApp ONTAP User Guide. + * styles](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-volumes.html#volume-styles) + * in the Amazon FSx for NetApp ONTAP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-volume-ontapconfiguration.html#cfn-fsx-volume-ontapconfiguration-volumestyle) */ @@ -2626,7 +2625,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.OpenZFSConfigurationProperty, - ) : CdkObject(cdkObject), OpenZFSConfigurationProperty { + ) : CdkObject(cdkObject), + OpenZFSConfigurationProperty { /** * A Boolean value indicating whether tags for the volume should be copied to snapshots. * @@ -2885,7 +2885,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.OriginSnapshotProperty, - ) : CdkObject(cdkObject), OriginSnapshotProperty { + ) : CdkObject(cdkObject), + OriginSnapshotProperty { /** * Specifies the strategy used when copying data from the snapshot to the new volume. * @@ -3057,7 +3058,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.RetentionPeriodProperty, - ) : CdkObject(cdkObject), RetentionPeriodProperty { + ) : CdkObject(cdkObject), + RetentionPeriodProperty { /** * Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. * @@ -3451,7 +3453,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.SnaplockConfigurationProperty, - ) : CdkObject(cdkObject), SnaplockConfigurationProperty { + ) : CdkObject(cdkObject), + SnaplockConfigurationProperty { /** * Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. * @@ -3785,7 +3788,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.SnaplockRetentionPeriodProperty, - ) : CdkObject(cdkObject), SnaplockRetentionPeriodProperty { + ) : CdkObject(cdkObject), + SnaplockRetentionPeriodProperty { /** * The retention period assigned to a write once, read many (WORM) file by default if an * explicit retention period is not set for an FSx for ONTAP SnapLock volume. @@ -3953,7 +3957,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.TieringPolicyProperty, - ) : CdkObject(cdkObject), TieringPolicyProperty { + ) : CdkObject(cdkObject), + TieringPolicyProperty { /** * Specifies the number of days that user data in a volume must remain inactive before it is * considered "cold" and moved to the capacity pool. @@ -4092,7 +4097,8 @@ public open class CfnVolume( private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolume.UserAndGroupQuotasProperty, - ) : CdkObject(cdkObject), UserAndGroupQuotasProperty { + ) : CdkObject(cdkObject), + UserAndGroupQuotasProperty { /** * The ID of the user or group that the quota applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolumeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolumeProps.kt index 60796028fb..9af952101f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolumeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/CfnVolumeProps.kt @@ -327,7 +327,8 @@ public interface CfnVolumeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.CfnVolumeProps, - ) : CdkObject(cdkObject), CfnVolumeProps { + ) : CdkObject(cdkObject), + CfnVolumeProps { /** * Specifies the ID of the volume backup to use to create a new volume. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTime.kt new file mode 100644 index 0000000000..94cd185dc1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTime.kt @@ -0,0 +1,102 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.fsx + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Number +import kotlin.String +import kotlin.Unit + +/** + * Class for scheduling a daily automatic backup time. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.*; + * Map<String, Object> lustreConfiguration = Map.of( + * // ... + * "automaticBackupRetention", Duration.days(3), // backup retention + * "copyTagsToBackups", true, // if true, tags are copied to backups + * "dailyAutomaticBackupStartTime", + * DailyAutomaticBackupStartTime.Builder.create().hour(11).minute(30).build()); + * ``` + */ +public open class DailyAutomaticBackupStartTime( + cdkObject: software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime, +) : CdkObject(cdkObject) { + public constructor(props: DailyAutomaticBackupStartTimeProps) : + this(software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime(props.let(DailyAutomaticBackupStartTimeProps.Companion::unwrap)) + ) + + public constructor(props: DailyAutomaticBackupStartTimeProps.Builder.() -> Unit) : + this(DailyAutomaticBackupStartTimeProps(props) + ) + + /** + * Converts an hour, and minute into HH:MM string. + */ + public open fun toTimestamp(): String = unwrap(this).toTimestamp() + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.fsx.DailyAutomaticBackupStartTime]. + */ + @CdkDslMarker + public interface Builder { + /** + * The hour of the day (from 0-23) for automatic backup starts. + * + * @param hour The hour of the day (from 0-23) for automatic backup starts. + */ + public fun hour(hour: Number) + + /** + * The minute of the hour (from 0-59) for automatic backup starts. + * + * @param minute The minute of the hour (from 0-59) for automatic backup starts. + */ + public fun minute(minute: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime.Builder = + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime.Builder.create() + + /** + * The hour of the day (from 0-23) for automatic backup starts. + * + * @param hour The hour of the day (from 0-23) for automatic backup starts. + */ + override fun hour(hour: Number) { + cdkBuilder.hour(hour) + } + + /** + * The minute of the hour (from 0-59) for automatic backup starts. + * + * @param minute The minute of the hour (from 0-59) for automatic backup starts. + */ + override fun minute(minute: Number) { + cdkBuilder.minute(minute) + } + + public fun build(): software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DailyAutomaticBackupStartTime { + val builderImpl = BuilderImpl() + return DailyAutomaticBackupStartTime(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime): + DailyAutomaticBackupStartTime = DailyAutomaticBackupStartTime(cdkObject) + + internal fun unwrap(wrapped: DailyAutomaticBackupStartTime): + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime = wrapped.cdkObject as + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTime + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTimeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTimeProps.kt new file mode 100644 index 0000000000..ee41affe22 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/DailyAutomaticBackupStartTimeProps.kt @@ -0,0 +1,107 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.fsx + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.Unit + +/** + * Properties required for setting up a daily automatic backup time. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.*; + * Map<String, Object> lustreConfiguration = Map.of( + * // ... + * "automaticBackupRetention", Duration.days(3), // backup retention + * "copyTagsToBackups", true, // if true, tags are copied to backups + * "dailyAutomaticBackupStartTime", + * DailyAutomaticBackupStartTime.Builder.create().hour(11).minute(30).build()); + * ``` + */ +public interface DailyAutomaticBackupStartTimeProps { + /** + * The hour of the day (from 0-23) for automatic backup starts. + */ + public fun hour(): Number + + /** + * The minute of the hour (from 0-59) for automatic backup starts. + */ + public fun minute(): Number + + /** + * A builder for [DailyAutomaticBackupStartTimeProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hour The hour of the day (from 0-23) for automatic backup starts. + */ + public fun hour(hour: Number) + + /** + * @param minute The minute of the hour (from 0-59) for automatic backup starts. + */ + public fun minute(minute: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps.Builder = + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps.builder() + + /** + * @param hour The hour of the day (from 0-23) for automatic backup starts. + */ + override fun hour(hour: Number) { + cdkBuilder.hour(hour) + } + + /** + * @param minute The minute of the hour (from 0-59) for automatic backup starts. + */ + override fun minute(minute: Number) { + cdkBuilder.minute(minute) + } + + public fun build(): software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps, + ) : CdkObject(cdkObject), + DailyAutomaticBackupStartTimeProps { + /** + * The hour of the day (from 0-23) for automatic backup starts. + */ + override fun hour(): Number = unwrap(this).getHour() + + /** + * The minute of the hour (from 0-59) for automatic backup starts. + */ + override fun minute(): Number = unwrap(this).getMinute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DailyAutomaticBackupStartTimeProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps): + DailyAutomaticBackupStartTimeProps = CdkObjectWrappers.wrap(cdkObject) as? + DailyAutomaticBackupStartTimeProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DailyAutomaticBackupStartTimeProps): + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.fsx.DailyAutomaticBackupStartTimeProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemAttributes.kt index a69c860805..233e40bbc0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemAttributes.kt @@ -109,7 +109,8 @@ public interface FileSystemAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.FileSystemAttributes, - ) : CdkObject(cdkObject), FileSystemAttributes { + ) : CdkObject(cdkObject), + FileSystemAttributes { /** * The DNS name assigned to this file system. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemBase.kt index 2ac18bfbee..d386169ace 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemBase.kt @@ -13,7 +13,8 @@ import kotlin.String */ public abstract class FileSystemBase( cdkObject: software.amazon.awscdk.services.fsx.FileSystemBase, -) : Resource(cdkObject), IFileSystem { +) : Resource(cdkObject), + IFileSystem { /** * The security groups/rules used to allow network connections to the file system. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemProps.kt index aae0f245c4..9cc36bd7b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/FileSystemProps.kt @@ -189,7 +189,8 @@ public interface FileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.FileSystemProps, - ) : CdkObject(cdkObject), FileSystemProps { + ) : CdkObject(cdkObject), + FileSystemProps { /** * The ID of the backup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/IFileSystem.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/IFileSystem.kt index 8460bc6b85..da49b71e9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/IFileSystem.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/IFileSystem.kt @@ -19,7 +19,8 @@ public interface IFileSystem : IConnectable { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.IFileSystem, - ) : CdkObject(cdkObject), IFileSystem { + ) : CdkObject(cdkObject), + IFileSystem { /** * The network connections associated with this resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreConfiguration.kt index 9bd839fdc8..56d1c89e54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreConfiguration.kt @@ -2,9 +2,11 @@ package io.cloudshiftdev.awscdk.services.fsx +import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit @@ -56,6 +58,34 @@ public interface LustreConfiguration { public fun autoImportPolicy(): LustreAutoImportPolicy? = unwrap(this).getAutoImportPolicy()?.let(LustreAutoImportPolicy::wrap) + /** + * The number of days to retain automatic backups. + * + * Setting this property to 0 disables automatic backups. + * You can retain automatic backups for a maximum of 90 days. + * + * Automatic Backups is not supported on scratch file systems. + * + * Default: Duration.days(0) + */ + public fun automaticBackupRetention(): Duration? = + unwrap(this).getAutomaticBackupRetention()?.let(Duration::wrap) + + /** + * A boolean flag indicating whether tags for the file system should be copied to backups. + * + * Default: - false + */ + public fun copyTagsToBackups(): Boolean? = unwrap(this).getCopyTagsToBackups() + + /** + * Start time for 30-minute daily automatic backup window in Coordinated Universal Time (UTC). + * + * Default: - no backup window + */ + public fun dailyAutomaticBackupStartTime(): DailyAutomaticBackupStartTime? = + unwrap(this).getDailyAutomaticBackupStartTime()?.let(DailyAutomaticBackupStartTime::wrap) + /** * Sets the data compression configuration for the file system. * @@ -155,6 +185,37 @@ public interface LustreConfiguration { */ public fun autoImportPolicy(autoImportPolicy: LustreAutoImportPolicy) + /** + * @param automaticBackupRetention The number of days to retain automatic backups. + * Setting this property to 0 disables automatic backups. + * You can retain automatic backups for a maximum of 90 days. + * + * Automatic Backups is not supported on scratch file systems. + */ + public fun automaticBackupRetention(automaticBackupRetention: Duration) + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the file system should be + * copied to backups. + */ + public fun copyTagsToBackups(copyTagsToBackups: Boolean) + + /** + * @param dailyAutomaticBackupStartTime Start time for 30-minute daily automatic backup window + * in Coordinated Universal Time (UTC). + */ + public + fun dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime: DailyAutomaticBackupStartTime) + + /** + * @param dailyAutomaticBackupStartTime Start time for 30-minute daily automatic backup window + * in Coordinated Universal Time (UTC). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("19e5f86627647ec5c7fa70811d55cee7c555c19a53ba2a8d7f8f069f3f223e98") + public + fun dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime: DailyAutomaticBackupStartTime.Builder.() -> Unit) + /** * @param dataCompressionType Sets the data compression configuration for the file system. * For more information, see [Lustre data @@ -250,6 +311,45 @@ public interface LustreConfiguration { cdkBuilder.autoImportPolicy(autoImportPolicy.let(LustreAutoImportPolicy.Companion::unwrap)) } + /** + * @param automaticBackupRetention The number of days to retain automatic backups. + * Setting this property to 0 disables automatic backups. + * You can retain automatic backups for a maximum of 90 days. + * + * Automatic Backups is not supported on scratch file systems. + */ + override fun automaticBackupRetention(automaticBackupRetention: Duration) { + cdkBuilder.automaticBackupRetention(automaticBackupRetention.let(Duration.Companion::unwrap)) + } + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the file system should be + * copied to backups. + */ + override fun copyTagsToBackups(copyTagsToBackups: Boolean) { + cdkBuilder.copyTagsToBackups(copyTagsToBackups) + } + + /** + * @param dailyAutomaticBackupStartTime Start time for 30-minute daily automatic backup window + * in Coordinated Universal Time (UTC). + */ + override + fun dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime: DailyAutomaticBackupStartTime) { + cdkBuilder.dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime.let(DailyAutomaticBackupStartTime.Companion::unwrap)) + } + + /** + * @param dailyAutomaticBackupStartTime Start time for 30-minute daily automatic backup window + * in Coordinated Universal Time (UTC). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("19e5f86627647ec5c7fa70811d55cee7c555c19a53ba2a8d7f8f069f3f223e98") + override + fun dailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime: DailyAutomaticBackupStartTime.Builder.() -> Unit): + Unit = + dailyAutomaticBackupStartTime(DailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime)) + /** * @param dataCompressionType Sets the data compression configuration for the file system. * For more information, see [Lustre data @@ -342,7 +442,8 @@ public interface LustreConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.LustreConfiguration, - ) : CdkObject(cdkObject), LustreConfiguration { + ) : CdkObject(cdkObject), + LustreConfiguration { /** * Available with `Scratch` and `Persistent_1` deployment types. * @@ -364,6 +465,34 @@ public interface LustreConfiguration { override fun autoImportPolicy(): LustreAutoImportPolicy? = unwrap(this).getAutoImportPolicy()?.let(LustreAutoImportPolicy::wrap) + /** + * The number of days to retain automatic backups. + * + * Setting this property to 0 disables automatic backups. + * You can retain automatic backups for a maximum of 90 days. + * + * Automatic Backups is not supported on scratch file systems. + * + * Default: Duration.days(0) + */ + override fun automaticBackupRetention(): Duration? = + unwrap(this).getAutomaticBackupRetention()?.let(Duration::wrap) + + /** + * A boolean flag indicating whether tags for the file system should be copied to backups. + * + * Default: - false + */ + override fun copyTagsToBackups(): Boolean? = unwrap(this).getCopyTagsToBackups() + + /** + * Start time for 30-minute daily automatic backup window in Coordinated Universal Time (UTC). + * + * Default: - no backup window + */ + override fun dailyAutomaticBackupStartTime(): DailyAutomaticBackupStartTime? = + unwrap(this).getDailyAutomaticBackupStartTime()?.let(DailyAutomaticBackupStartTime::wrap) + /** * Sets the data compression configuration for the file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreFileSystemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreFileSystemProps.kt index 744eab50ab..25c68acfa9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreFileSystemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreFileSystemProps.kt @@ -187,7 +187,8 @@ public interface LustreFileSystemProps : FileSystemProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.LustreFileSystemProps, - ) : CdkObject(cdkObject), LustreFileSystemProps { + ) : CdkObject(cdkObject), + LustreFileSystemProps { /** * The ID of the backup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTime.kt index 693608592f..891e8d13bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTime.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTime.kt @@ -9,7 +9,7 @@ import kotlin.String import kotlin.Unit /** - * Class for scheduling a weekly manitenance time. + * Class for scheduling a weekly maintenance time. * * Example: * @@ -54,9 +54,9 @@ public open class LustreMaintenanceTime( public fun day(day: Weekday) /** - * The hour of the day (from 0-24) for maintenance to be performed. + * The hour of the day (from 0-23) for maintenance to be performed. * - * @param hour The hour of the day (from 0-24) for maintenance to be performed. + * @param hour The hour of the day (from 0-23) for maintenance to be performed. */ public fun hour(hour: Number) @@ -82,9 +82,9 @@ public open class LustreMaintenanceTime( } /** - * The hour of the day (from 0-24) for maintenance to be performed. + * The hour of the day (from 0-23) for maintenance to be performed. * - * @param hour The hour of the day (from 0-24) for maintenance to be performed. + * @param hour The hour of the day (from 0-23) for maintenance to be performed. */ override fun hour(hour: Number) { cdkBuilder.hour(hour) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTimeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTimeProps.kt index fd37b263df..0414ebca02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTimeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/fsx/LustreMaintenanceTimeProps.kt @@ -31,7 +31,7 @@ public interface LustreMaintenanceTimeProps { public fun day(): Weekday /** - * The hour of the day (from 0-24) for maintenance to be performed. + * The hour of the day (from 0-23) for maintenance to be performed. */ public fun hour(): Number @@ -51,7 +51,7 @@ public interface LustreMaintenanceTimeProps { public fun day(day: Weekday) /** - * @param hour The hour of the day (from 0-24) for maintenance to be performed. + * @param hour The hour of the day (from 0-23) for maintenance to be performed. */ public fun hour(hour: Number) @@ -73,7 +73,7 @@ public interface LustreMaintenanceTimeProps { } /** - * @param hour The hour of the day (from 0-24) for maintenance to be performed. + * @param hour The hour of the day (from 0-23) for maintenance to be performed. */ override fun hour(hour: Number) { cdkBuilder.hour(hour) @@ -92,14 +92,15 @@ public interface LustreMaintenanceTimeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.fsx.LustreMaintenanceTimeProps, - ) : CdkObject(cdkObject), LustreMaintenanceTimeProps { + ) : CdkObject(cdkObject), + LustreMaintenanceTimeProps { /** * The day of the week for maintenance to be performed. */ override fun day(): Weekday = unwrap(this).getDay().let(Weekday::wrap) /** - * The hour of the day (from 0-24) for maintenance to be performed. + * The hour of the day (from 0-23) for maintenance to be performed. */ override fun hour(): Number = unwrap(this).getHour() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAlias.kt index 7777627ebd..005b389ebb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAlias.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlias( cdkObject: software.amazon.awscdk.services.gamelift.CfnAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -397,7 +398,8 @@ public open class CfnAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnAlias.RoutingStrategyProperty, - ) : CdkObject(cdkObject), RoutingStrategyProperty { + ) : CdkObject(cdkObject), + RoutingStrategyProperty { /** * A unique identifier for a fleet that the alias points to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAliasProps.kt index 75c96623f7..0646c03549 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnAliasProps.kt @@ -146,7 +146,8 @@ public interface CfnAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnAliasProps, - ) : CdkObject(cdkObject), CfnAliasProps { + ) : CdkObject(cdkObject), + CfnAliasProps { /** * A human-readable description of the alias. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuild.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuild.kt index 42e01b4fbd..c486474762 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuild.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuild.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBuild( cdkObject: software.amazon.awscdk.services.gamelift.CfnBuild, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.gamelift.CfnBuild(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -183,9 +184,12 @@ public open class CfnBuild( * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-operatingsystem) @@ -295,9 +299,12 @@ public open class CfnBuild( * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-operatingsystem) @@ -547,7 +554,8 @@ public open class CfnBuild( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnBuild.StorageLocationProperty, - ) : CdkObject(cdkObject), StorageLocationProperty { + ) : CdkObject(cdkObject), + StorageLocationProperty { /** * An Amazon S3 bucket identifier. The name of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuildProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuildProps.kt index 42c8fee71c..6edc17ea46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuildProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnBuildProps.kt @@ -56,9 +56,12 @@ public interface CfnBuildProps { * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For game + * servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game + * server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-operatingsystem) @@ -119,9 +122,12 @@ public interface CfnBuildProps { * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) */ public fun operatingSystem(operatingSystem: String) @@ -199,9 +205,12 @@ public interface CfnBuildProps { * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) */ override fun operatingSystem(operatingSystem: String) { cdkBuilder.operatingSystem(operatingSystem) @@ -275,7 +284,8 @@ public interface CfnBuildProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnBuildProps, - ) : CdkObject(cdkObject), CfnBuildProps { + ) : CdkObject(cdkObject), + CfnBuildProps { /** * A descriptive label that is associated with a build. * @@ -294,9 +304,12 @@ public interface CfnBuildProps { * build's operating system later. * * - * If you have active fleets using the Windows Server 2012 operating system, you can continue to - * create new builds using this OS until October 10, 2023, when Microsoft ends its support. All - * others must use Windows Server 2016 when creating new Windows-based builds. + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-operatingsystem) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinition.kt index e08226d2e3..c1ff265ef3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinition.kt @@ -96,7 +96,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContainerGroupDefinition( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -292,6 +294,15 @@ public open class CfnContainerGroupDefinition( /** * The platform required for all containers in the container group definition. * + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-operatingsystem) * @param operatingSystem The platform required for all containers in the container group * definition. @@ -422,6 +433,15 @@ public open class CfnContainerGroupDefinition( /** * The platform required for all containers in the container group definition. * + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-operatingsystem) * @param operatingSystem The platform required for all containers in the container group * definition. @@ -1247,7 +1267,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerDefinitionProperty, - ) : CdkObject(cdkObject), ContainerDefinitionProperty { + ) : CdkObject(cdkObject), + ContainerDefinitionProperty { /** * A command that's passed to the container on startup. * @@ -1528,7 +1549,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerDependencyProperty, - ) : CdkObject(cdkObject), ContainerDependencyProperty { + ) : CdkObject(cdkObject), + ContainerDependencyProperty { /** * The condition that the dependency container must reach before the dependent container can * start. Valid conditions include:. @@ -1654,7 +1676,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerEnvironmentProperty, - ) : CdkObject(cdkObject), ContainerEnvironmentProperty { + ) : CdkObject(cdkObject), + ContainerEnvironmentProperty { /** * The environment variable name. * @@ -1868,7 +1891,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerHealthCheckProperty, - ) : CdkObject(cdkObject), ContainerHealthCheckProperty { + ) : CdkObject(cdkObject), + ContainerHealthCheckProperty { /** * A string array that specifies the command that the container runs to determine if it's * healthy. @@ -2033,7 +2057,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.ContainerPortRangeProperty, - ) : CdkObject(cdkObject), ContainerPortRangeProperty { + ) : CdkObject(cdkObject), + ContainerPortRangeProperty { /** * A starting value for the range of allowed port numbers. * @@ -2151,7 +2176,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.MemoryLimitsProperty, - ) : CdkObject(cdkObject), MemoryLimitsProperty { + ) : CdkObject(cdkObject), + MemoryLimitsProperty { /** * The hard limit of memory to reserve for the container. * @@ -2267,7 +2293,8 @@ public open class CfnContainerGroupDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.PortConfigurationProperty, - ) : CdkObject(cdkObject), PortConfigurationProperty { + ) : CdkObject(cdkObject), + PortConfigurationProperty { /** * Specifies one or more ranges of ports on a container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinitionProps.kt index 55c56e4bbd..7e3d6e028d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnContainerGroupDefinitionProps.kt @@ -97,6 +97,15 @@ public interface CfnContainerGroupDefinitionProps { /** * The platform required for all containers in the container group definition. * + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For game + * servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game + * server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-operatingsystem) */ public fun operatingSystem(): String @@ -185,6 +194,13 @@ public interface CfnContainerGroupDefinitionProps { /** * @param operatingSystem The platform required for all containers in the container group * definition. + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) */ public fun operatingSystem(operatingSystem: String) @@ -277,6 +293,13 @@ public interface CfnContainerGroupDefinitionProps { /** * @param operatingSystem The platform required for all containers in the container group * definition. + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) */ override fun operatingSystem(operatingSystem: String) { cdkBuilder.operatingSystem(operatingSystem) @@ -345,7 +368,8 @@ public interface CfnContainerGroupDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinitionProps, - ) : CdkObject(cdkObject), CfnContainerGroupDefinitionProps { + ) : CdkObject(cdkObject), + CfnContainerGroupDefinitionProps { /** * The set of container definitions that are included in the container group. * @@ -365,6 +389,15 @@ public interface CfnContainerGroupDefinitionProps { /** * The platform required for all containers in the container group definition. * + * + * Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the [Amazon + * Linux 2 FAQs](https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/) . For + * game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the + * game server build to server SDK 5.x, and then deploy to AL2023 instances. See [Migrate to Amazon + * GameLift server SDK version + * 5.](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html) + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-operatingsystem) */ override fun operatingSystem(): String = unwrap(this).getOperatingSystem() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleet.kt index e358f0b2b3..eb71ce1241 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleet.kt @@ -125,7 +125,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -393,26 +394,30 @@ public open class CfnFleet( } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. */ public open fun locations(): Any? = unwrap(this).getLocations() /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. */ public open fun locations(`value`: IResolvable) { unwrap(this).setLocations(`value`.let(IResolvable.Companion::unwrap)) } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. */ public open fun locations(`value`: List) { unwrap(this).setLocations(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. */ public open fun locations(vararg `value`: Any): Unit = locations(`value`.toList()) @@ -1014,53 +1019,56 @@ public open class CfnFleet( public fun instanceRoleCredentialsProvider(instanceRoleCredentialsProvider: String) /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ public fun locations(locations: IResolvable) /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. - * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ public fun locations(locations: List) /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ public fun locations(vararg locations: Any) @@ -1751,57 +1759,60 @@ public open class CfnFleet( } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. - * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ override fun locations(locations: IResolvable) { cdkBuilder.locations(locations.let(IResolvable.Companion::unwrap)) } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ override fun locations(locations: List) { cdkBuilder.locations(locations.map{CdkObjectWrappers.unwrap(it)}) } /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. - * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. */ override fun locations(vararg locations: Any): Unit = locations(locations.toList()) @@ -2231,7 +2242,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.AnywhereConfigurationProperty, - ) : CdkObject(cdkObject), AnywhereConfigurationProperty { + ) : CdkObject(cdkObject), + AnywhereConfigurationProperty { /** * The cost to run your fleet per hour. * @@ -2337,7 +2349,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.CertificateConfigurationProperty, - ) : CdkObject(cdkObject), CertificateConfigurationProperty { + ) : CdkObject(cdkObject), + CertificateConfigurationProperty { /** * Indicates whether a TLS/SSL certificate is generated for a fleet. * @@ -2453,7 +2466,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ConnectionPortRangeProperty, - ) : CdkObject(cdkObject), ConnectionPortRangeProperty { + ) : CdkObject(cdkObject), + ConnectionPortRangeProperty { /** * Starting value for the port range. * @@ -2788,7 +2802,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ContainerGroupsConfigurationProperty, - ) : CdkObject(cdkObject), ContainerGroupsConfigurationProperty { + ) : CdkObject(cdkObject), + ContainerGroupsConfigurationProperty { /** * A set of ports to allow inbound traffic, including game clients, to connect to processes * running in the container fleet. @@ -2952,7 +2967,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ContainerGroupsPerInstanceProperty, - ) : CdkObject(cdkObject), ContainerGroupsPerInstanceProperty { + ) : CdkObject(cdkObject), + ContainerGroupsPerInstanceProperty { /** * The desired number of replica container groups to place on each fleet instance. * @@ -3141,7 +3157,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.IpPermissionProperty, - ) : CdkObject(cdkObject), IpPermissionProperty { + ) : CdkObject(cdkObject), + IpPermissionProperty { /** * A starting value for a range of allowed port numbers. * @@ -3328,7 +3345,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.LocationCapacityProperty, - ) : CdkObject(cdkObject), LocationCapacityProperty { + ) : CdkObject(cdkObject), + LocationCapacityProperty { /** * The number of Amazon EC2 instances you want to maintain in the specified fleet location. * @@ -3407,6 +3425,10 @@ public open class CfnFleet( /** * An AWS Region code, such as `us-west-2` . * + * For a list of supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-locationconfiguration.html#cfn-gamelift-fleet-locationconfiguration-location) */ public fun location(): String @@ -3435,6 +3457,9 @@ public open class CfnFleet( public interface Builder { /** * @param location An AWS Region code, such as `us-west-2` . + * For a list of supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) + * for managed hosting. */ public fun location(location: String) @@ -3493,6 +3518,9 @@ public open class CfnFleet( /** * @param location An AWS Region code, such as `us-west-2` . + * For a list of supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) + * for managed hosting. */ override fun location(location: String) { cdkBuilder.location(location) @@ -3557,10 +3585,15 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.LocationConfigurationProperty, - ) : CdkObject(cdkObject), LocationConfigurationProperty { + ) : CdkObject(cdkObject), + LocationConfigurationProperty { /** * An AWS Region code, such as `us-west-2` . * + * For a list of supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) + * for managed hosting. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-locationconfiguration.html#cfn-gamelift-fleet-locationconfiguration-location) */ override fun location(): String = unwrap(this).getLocation() @@ -3707,7 +3740,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ResourceCreationLimitPolicyProperty, - ) : CdkObject(cdkObject), ResourceCreationLimitPolicyProperty { + ) : CdkObject(cdkObject), + ResourceCreationLimitPolicyProperty { /** * A policy that puts limits on the number of game sessions that a player can create within a * specified span of time. @@ -3916,7 +3950,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.RuntimeConfigurationProperty, - ) : CdkObject(cdkObject), RuntimeConfigurationProperty { + ) : CdkObject(cdkObject), + RuntimeConfigurationProperty { /** * The maximum amount of time (in seconds) allowed to launch a new game session and have it * report ready to host players. @@ -4441,7 +4476,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ScalingPolicyProperty, - ) : CdkObject(cdkObject), ScalingPolicyProperty { + ) : CdkObject(cdkObject), + ScalingPolicyProperty { /** * Comparison operator to use when measuring a metric against the threshold value. * @@ -4743,7 +4779,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.ServerProcessProperty, - ) : CdkObject(cdkObject), ServerProcessProperty { + ) : CdkObject(cdkObject), + ServerProcessProperty { /** * The number of server processes using this configuration that run concurrently on each * instance or container.. @@ -4874,7 +4911,8 @@ public open class CfnFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleet.TargetConfigurationProperty, - ) : CdkObject(cdkObject), TargetConfigurationProperty { + ) : CdkObject(cdkObject), + TargetConfigurationProperty { /** * Desired value to use with a target-based scaling policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleetProps.kt index 97f789dea7..73445f661b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnFleetProps.kt @@ -293,15 +293,16 @@ public interface CfnFleetProps { unwrap(this).getInstanceRoleCredentialsProvider() /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the form - * of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with instances in - * the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one or + * more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of supported + * Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) */ @@ -730,41 +731,41 @@ public interface CfnFleetProps { public fun instanceRoleCredentialsProvider(instanceRoleCredentialsProvider: String) /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ public fun locations(locations: IResolvable) /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ public fun locations(locations: List) /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ public fun locations(vararg locations: Any) @@ -1271,45 +1272,45 @@ public interface CfnFleetProps { } /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ override fun locations(locations: IResolvable) { cdkBuilder.locations(locations.let(IResolvable.Companion::unwrap)) } /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ override fun locations(locations: List) { cdkBuilder.locations(locations.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param locations A set of remote locations to deploy additional instances to and manage as - * part of the fleet. - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. - * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * @param locations A set of remote locations to deploy additional instances to and manage as a + * multi-location fleet. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. */ override fun locations(vararg locations: Any): Unit = locations(locations.toList()) @@ -1560,7 +1561,8 @@ public interface CfnFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * Amazon GameLift Anywhere configuration options. * @@ -1740,15 +1742,16 @@ public interface CfnFleetProps { unwrap(this).getInstanceRoleCredentialsProvider() /** - * A set of remote locations to deploy additional instances to and manage as part of the fleet. - * - * This parameter can only be used when creating fleets in AWS Regions that support multiple - * locations. You can add any Amazon GameLift-supported AWS Region as a remote location, in the - * form of an AWS Region code, such as `us-west-2` or Local Zone code. To create a fleet with - * instances in the home Region only, don't set this parameter. + * A set of remote locations to deploy additional instances to and manage as a multi-location + * fleet. * - * When using this parameter, Amazon GameLift requires you to include your home location in the - * request. + * Use this parameter when creating a fleet in AWS Regions that support multiple locations. You + * can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one + * or more AWS Region codes, such as `us-west-2` , or Local Zone names. When using this parameter, + * Amazon GameLift requires you to include your home location in the request. For a list of + * supported Regions and Local Zones, see [Amazon GameLift service + * locations](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html) for + * managed hosting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-locations) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroup.kt index 35cd64a307..45e41e8eaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroup.kt @@ -103,7 +103,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGameServerGroup( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1217,7 +1219,8 @@ public open class CfnGameServerGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroup.AutoScalingPolicyProperty, - ) : CdkObject(cdkObject), AutoScalingPolicyProperty { + ) : CdkObject(cdkObject), + AutoScalingPolicyProperty { /** * Length of time, in seconds, it takes for a new instance to start new game server processes * and register with Amazon GameLift FleetIQ. @@ -1360,7 +1363,8 @@ public open class CfnGameServerGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroup.InstanceDefinitionProperty, - ) : CdkObject(cdkObject), InstanceDefinitionProperty { + ) : CdkObject(cdkObject), + InstanceDefinitionProperty { /** * An Amazon EC2 instance type designation. * @@ -1510,7 +1514,8 @@ public open class CfnGameServerGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroup.LaunchTemplateProperty, - ) : CdkObject(cdkObject), LaunchTemplateProperty { + ) : CdkObject(cdkObject), + LaunchTemplateProperty { /** * A unique identifier for an existing Amazon EC2 launch template. * @@ -1619,7 +1624,8 @@ public open class CfnGameServerGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroup.TargetTrackingConfigurationProperty, - ) : CdkObject(cdkObject), TargetTrackingConfigurationProperty { + ) : CdkObject(cdkObject), + TargetTrackingConfigurationProperty { /** * Desired value to use with a game server group target-based scaling policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroupProps.kt index f5f39dba63..363a58bfb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameServerGroupProps.kt @@ -712,7 +712,8 @@ public interface CfnGameServerGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameServerGroupProps, - ) : CdkObject(cdkObject), CfnGameServerGroupProps { + ) : CdkObject(cdkObject), + CfnGameServerGroupProps { /** * Configuration settings to define a scaling policy for the Auto Scaling group that is * optimized for game hosting. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueue.kt index b70765f5c9..ebf6299869 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueue.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGameSessionQueue( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -869,7 +871,8 @@ public open class CfnGameSessionQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-destination.html#cfn-gamelift-gamesessionqueue-destination-destinationarn) */ @@ -969,7 +972,8 @@ public open class CfnGameSessionQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.FilterConfigurationProperty, - ) : CdkObject(cdkObject), FilterConfigurationProperty { + ) : CdkObject(cdkObject), + FilterConfigurationProperty { /** * A list of locations to allow game session placement in, in the form of AWS Region codes * such as `us-west-2` . @@ -1066,7 +1070,8 @@ public open class CfnGameSessionQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.GameSessionQueueDestinationProperty, - ) : CdkObject(cdkObject), GameSessionQueueDestinationProperty { + ) : CdkObject(cdkObject), + GameSessionQueueDestinationProperty { /** * The Amazon Resource Name (ARN) that is assigned to fleet or fleet alias. * @@ -1192,7 +1197,8 @@ public open class CfnGameSessionQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.PlayerLatencyPolicyProperty, - ) : CdkObject(cdkObject), PlayerLatencyPolicyProperty { + ) : CdkObject(cdkObject), + PlayerLatencyPolicyProperty { /** * The maximum latency value that is allowed for any player, in milliseconds. * @@ -1423,7 +1429,8 @@ public open class CfnGameSessionQueue( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.PriorityConfigurationProperty, - ) : CdkObject(cdkObject), PriorityConfigurationProperty { + ) : CdkObject(cdkObject), + PriorityConfigurationProperty { /** * The prioritization order to use for fleet locations, when the `PriorityOrder` property * includes `LOCATION` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueueProps.kt index b040be580a..3cc419e1b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnGameSessionQueueProps.kt @@ -509,7 +509,8 @@ public interface CfnGameSessionQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnGameSessionQueueProps, - ) : CdkObject(cdkObject), CfnGameSessionQueueProps { + ) : CdkObject(cdkObject), + CfnGameSessionQueueProps { /** * Information to be added to all events that are related to this game session queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocation.kt index e3a1a24491..a913e242db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocation.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLocation( cdkObject: software.amazon.awscdk.services.gamelift.CfnLocation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -90,20 +92,20 @@ public open class CfnLocation( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -121,28 +123,28 @@ public open class CfnLocation( public fun locationName(locationName: String) /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-location.html#cfn-gamelift-location-tags) - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. */ public fun tags(tags: List) /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-location.html#cfn-gamelift-location-tags) - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. */ public fun tags(vararg tags: CfnTag) } @@ -165,30 +167,30 @@ public open class CfnLocation( } /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-location.html#cfn-gamelift-location-tags) - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-location.html#cfn-gamelift-location-tags) - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocationProps.kt index 5bef4319dc..28126a7db9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnLocationProps.kt @@ -40,10 +40,10 @@ public interface CfnLocationProps { public fun locationName(): String /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * @@ -62,18 +62,18 @@ public interface CfnLocationProps { public fun locationName(locationName: String) /** - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . */ public fun tags(tags: List) /** - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . */ @@ -92,9 +92,9 @@ public interface CfnLocationProps { } /** - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . */ @@ -103,9 +103,9 @@ public interface CfnLocationProps { } /** - * @param tags A list of labels to assign to the new matchmaking configuration resource. + * @param tags A list of labels to assign to the new resource. * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . */ @@ -117,7 +117,8 @@ public interface CfnLocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnLocationProps, - ) : CdkObject(cdkObject), CfnLocationProps { + ) : CdkObject(cdkObject), + CfnLocationProps { /** * A descriptive name for the custom location. * @@ -126,10 +127,10 @@ public interface CfnLocationProps { override fun locationName(): String = unwrap(this).getLocationName() /** - * A list of labels to assign to the new matchmaking configuration resource. + * A list of labels to assign to the new resource. * * Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource - * management, access management and cost allocation. For more information, see [Tagging AWS + * management, access management, and cost allocation. For more information, see [Tagging AWS * Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General * Rareference* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfiguration.kt index d47d43e36d..f8ad583bf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfiguration.kt @@ -71,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMatchmakingConfiguration( cdkObject: software.amazon.awscdk.services.gamelift.CfnMatchmakingConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1145,7 +1147,8 @@ public open class CfnMatchmakingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnMatchmakingConfiguration.GamePropertyProperty, - ) : CdkObject(cdkObject), GamePropertyProperty { + ) : CdkObject(cdkObject), + GamePropertyProperty { /** * The game property identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfigurationProps.kt index 2bf1f4c924..c0fcf3531b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingConfigurationProps.kt @@ -692,7 +692,8 @@ public interface CfnMatchmakingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnMatchmakingConfigurationProps, - ) : CdkObject(cdkObject), CfnMatchmakingConfigurationProps { + ) : CdkObject(cdkObject), + CfnMatchmakingConfigurationProps { /** * A flag that determines whether a match that was created with this configuration must be * accepted by the matched players. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSet.kt index bb14ca1bb5..b37a9a7278 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSet.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMatchmakingRuleSet( cdkObject: software.amazon.awscdk.services.gamelift.CfnMatchmakingRuleSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSetProps.kt index 5cb1b9a37f..308efde6af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnMatchmakingRuleSetProps.kt @@ -159,7 +159,8 @@ public interface CfnMatchmakingRuleSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnMatchmakingRuleSetProps, - ) : CdkObject(cdkObject), CfnMatchmakingRuleSetProps { + ) : CdkObject(cdkObject), + CfnMatchmakingRuleSetProps { /** * A unique identifier for the matchmaking rule set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScript.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScript.kt index 9ff1b06815..35dce92de1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScript.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScript.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScript( cdkObject: software.amazon.awscdk.services.gamelift.CfnScript, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -576,7 +578,8 @@ public open class CfnScript( private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnScript.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * An Amazon S3 bucket identifier. Thename of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScriptProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScriptProps.kt index 703021358e..4e71868db6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScriptProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/gamelift/CfnScriptProps.kt @@ -253,7 +253,8 @@ public interface CfnScriptProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.gamelift.CfnScriptProps, - ) : CdkObject(cdkObject), CfnScriptProps { + ) : CdkObject(cdkObject), + CfnScriptProps { /** * A descriptive label that is associated with a script. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Accelerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Accelerator.kt index 83091344e4..09c9163fb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Accelerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Accelerator.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Accelerator( cdkObject: software.amazon.awscdk.services.globalaccelerator.Accelerator, -) : Resource(cdkObject), IAccelerator { +) : Resource(cdkObject), + IAccelerator { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.globalaccelerator.Accelerator(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorAttributes.kt index 68e9b40c23..22ec3afbc9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorAttributes.kt @@ -162,7 +162,8 @@ public interface AcceleratorAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.AcceleratorAttributes, - ) : CdkObject(cdkObject), AcceleratorAttributes { + ) : CdkObject(cdkObject), + AcceleratorAttributes { /** * The ARN of the accelerator. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorProps.kt index 8c53e77246..8a0e87ee7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/AcceleratorProps.kt @@ -207,7 +207,8 @@ public interface AcceleratorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.AcceleratorProps, - ) : CdkObject(cdkObject), AcceleratorProps { + ) : CdkObject(cdkObject), + AcceleratorProps { /** * The name of the accelerator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAccelerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAccelerator.kt index 2443335252..498e493fe2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAccelerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAccelerator.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccelerator( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnAccelerator, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAcceleratorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAcceleratorProps.kt index 9d03638edf..cc7a878478 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAcceleratorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnAcceleratorProps.kt @@ -300,7 +300,8 @@ public interface CfnAcceleratorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnAcceleratorProps, - ) : CdkObject(cdkObject), CfnAcceleratorProps { + ) : CdkObject(cdkObject), + CfnAcceleratorProps { /** * Indicates whether the accelerator is enabled. The value is true or false. The default value * is true. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachment.kt index 0e149b198a..78b0fd988d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachment.kt @@ -55,8 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .principals(List.of("principals")) * .resources(List.of(ResourceProperty.builder() + * .cidr("cidr") * .endpointId("endpointId") - * // the properties below are optional * .region("region") * .build())) * .tags(List.of(CfnTag.builder() @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCrossAccountAttachment( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -386,8 +388,8 @@ public open class CfnCrossAccountAttachment( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.globalaccelerator.*; * ResourceProperty resourceProperty = ResourceProperty.builder() + * .cidr("cidr") * .endpointId("endpointId") - * // the properties below are optional * .region("region") * .build(); * ``` @@ -395,6 +397,20 @@ public open class CfnCrossAccountAttachment( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html) */ public interface ResourceProperty { + /** + * An IP address range, in CIDR format, that is specified as resource. + * + * The address must be provisioned and advertised in AWS Global Accelerator by following the + * bring your own IP address (BYOIP) process for Global Accelerator + * + * For more information, see [Bring your own IP addresses + * (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the AWS + * Global Accelerator Developer Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-cidr) + */ + public fun cidr(): String? = unwrap(this).getCidr() + /** * The endpoint ID for the endpoint that is specified as a AWS resource. * @@ -403,7 +419,7 @@ public open class CfnCrossAccountAttachment( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-endpointid) */ - public fun endpointId(): String + public fun endpointId(): String? = unwrap(this).getEndpointId() /** * The AWS Region where a shared endpoint resource is located. @@ -418,7 +434,18 @@ public open class CfnCrossAccountAttachment( @CdkDslMarker public interface Builder { /** - * @param endpointId The endpoint ID for the endpoint that is specified as a AWS resource. + * @param cidr An IP address range, in CIDR format, that is specified as resource. + * The address must be provisioned and advertised in AWS Global Accelerator by following the + * bring your own IP address (BYOIP) process for Global Accelerator + * + * For more information, see [Bring your own IP addresses + * (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the AWS + * Global Accelerator Developer Guide. + */ + public fun cidr(cidr: String) + + /** + * @param endpointId The endpoint ID for the endpoint that is specified as a AWS resource. * An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a * Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator. */ @@ -437,7 +464,20 @@ public open class CfnCrossAccountAttachment( software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachment.ResourceProperty.builder() /** - * @param endpointId The endpoint ID for the endpoint that is specified as a AWS resource. + * @param cidr An IP address range, in CIDR format, that is specified as resource. + * The address must be provisioned and advertised in AWS Global Accelerator by following the + * bring your own IP address (BYOIP) process for Global Accelerator + * + * For more information, see [Bring your own IP addresses + * (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the AWS + * Global Accelerator Developer Guide. + */ + override fun cidr(cidr: String) { + cdkBuilder.cidr(cidr) + } + + /** + * @param endpointId The endpoint ID for the endpoint that is specified as a AWS resource. * An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a * Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator. */ @@ -459,7 +499,22 @@ public open class CfnCrossAccountAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachment.ResourceProperty, - ) : CdkObject(cdkObject), ResourceProperty { + ) : CdkObject(cdkObject), + ResourceProperty { + /** + * An IP address range, in CIDR format, that is specified as resource. + * + * The address must be provisioned and advertised in AWS Global Accelerator by following the + * bring your own IP address (BYOIP) process for Global Accelerator + * + * For more information, see [Bring your own IP addresses + * (BYOIP)](https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in the AWS + * Global Accelerator Developer Guide. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-cidr) + */ + override fun cidr(): String? = unwrap(this).getCidr() + /** * The endpoint ID for the endpoint that is specified as a AWS resource. * @@ -468,7 +523,7 @@ public open class CfnCrossAccountAttachment( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-endpointid) */ - override fun endpointId(): String = unwrap(this).getEndpointId() + override fun endpointId(): String? = unwrap(this).getEndpointId() /** * The AWS Region where a shared endpoint resource is located. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachmentProps.kt index bd640831ba..9f0f199520 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnCrossAccountAttachmentProps.kt @@ -27,8 +27,8 @@ import kotlin.collections.List * // the properties below are optional * .principals(List.of("principals")) * .resources(List.of(ResourceProperty.builder() + * .cidr("cidr") * .endpointId("endpointId") - * // the properties below are optional * .region("region") * .build())) * .tags(List.of(CfnTag.builder() @@ -193,7 +193,8 @@ public interface CfnCrossAccountAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachmentProps, - ) : CdkObject(cdkObject), CfnCrossAccountAttachmentProps { + ) : CdkObject(cdkObject), + CfnCrossAccountAttachmentProps { /** * The name of the cross-account attachment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroup.kt index f1674bb0af..0d0bc9cc97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroup.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpointGroup( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -880,7 +881,8 @@ public open class CfnEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroup.EndpointConfigurationProperty, - ) : CdkObject(cdkObject), EndpointConfigurationProperty { + ) : CdkObject(cdkObject), + EndpointConfigurationProperty { /** * The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints * (resources) that can be added to accelerators and principals that have permission to add the @@ -1056,7 +1058,8 @@ public open class CfnEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroup.PortOverrideProperty, - ) : CdkObject(cdkObject), PortOverrideProperty { + ) : CdkObject(cdkObject), + PortOverrideProperty { /** * The endpoint port that you want a listener port to be mapped to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroupProps.kt index a48cb59c78..2bcde7d4ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnEndpointGroupProps.kt @@ -403,7 +403,8 @@ public interface CfnEndpointGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnEndpointGroupProps, - ) : CdkObject(cdkObject), CfnEndpointGroupProps { + ) : CdkObject(cdkObject), + CfnEndpointGroupProps { /** * The list of endpoint objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListener.kt index acadcb9a4c..1c3cd9b413 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListener.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnListener( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnListener, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -416,7 +417,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnListener.PortRangeProperty, - ) : CdkObject(cdkObject), PortRangeProperty { + ) : CdkObject(cdkObject), + PortRangeProperty { /** * The first port in the range of ports, inclusive. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListenerProps.kt index 0371511b81..890728aeb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/CfnListenerProps.kt @@ -216,7 +216,8 @@ public interface CfnListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.CfnListenerProps, - ) : CdkObject(cdkObject), CfnListenerProps { + ) : CdkObject(cdkObject), + CfnListenerProps { /** * The Amazon Resource Name (ARN) of your accelerator. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroup.kt index 64811b0ea2..7004816d0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroup.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EndpointGroup( cdkObject: software.amazon.awscdk.services.globalaccelerator.EndpointGroup, -) : Resource(cdkObject), IEndpointGroup { +) : Resource(cdkObject), + IEndpointGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupOptions.kt index 5241952dc4..adeefaafed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupOptions.kt @@ -290,7 +290,8 @@ public interface EndpointGroupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.EndpointGroupOptions, - ) : CdkObject(cdkObject), EndpointGroupOptions { + ) : CdkObject(cdkObject), + EndpointGroupOptions { /** * Name of the endpoint group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupProps.kt index f7561c11ec..ad8912b7ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/EndpointGroupProps.kt @@ -236,7 +236,8 @@ public interface EndpointGroupProps : EndpointGroupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.EndpointGroupProps, - ) : CdkObject(cdkObject), EndpointGroupProps { + ) : CdkObject(cdkObject), + EndpointGroupProps { /** * Name of the endpoint group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IAccelerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IAccelerator.kt index dd3ae19fee..bf26e8732f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IAccelerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IAccelerator.kt @@ -49,7 +49,8 @@ public interface IAccelerator : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.IAccelerator, - ) : CdkObject(cdkObject), IAccelerator { + ) : CdkObject(cdkObject), + IAccelerator { /** * The ARN of the accelerator. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpoint.kt index cf6f61157f..972e011e31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpoint.kt @@ -27,7 +27,8 @@ public interface IEndpoint { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.IEndpoint, - ) : CdkObject(cdkObject), IEndpoint { + ) : CdkObject(cdkObject), + IEndpoint { /** * The region where the endpoint is located. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpointGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpointGroup.kt index a9f95fe704..58d8358100 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpointGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IEndpointGroup.kt @@ -22,7 +22,8 @@ public interface IEndpointGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.IEndpointGroup, - ) : CdkObject(cdkObject), IEndpointGroup { + ) : CdkObject(cdkObject), + IEndpointGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IListener.kt index 68c8703ef2..833288c5a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/IListener.kt @@ -22,7 +22,8 @@ public interface IListener : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.IListener, - ) : CdkObject(cdkObject), IListener { + ) : CdkObject(cdkObject), + IListener { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Listener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Listener.kt index ba6dd9caf8..2f44b29e5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Listener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/Listener.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Listener( cdkObject: software.amazon.awscdk.services.globalaccelerator.Listener, -) : Resource(cdkObject), IListener { +) : Resource(cdkObject), + IListener { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerOptions.kt index 30d551207b..d1b03970f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerOptions.kt @@ -172,7 +172,8 @@ public interface ListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.ListenerOptions, - ) : CdkObject(cdkObject), ListenerOptions { + ) : CdkObject(cdkObject), + ListenerOptions { /** * Client affinity to direct all requests from a user to the same endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerProps.kt index c227b71beb..6ba30fb102 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/ListenerProps.kt @@ -143,7 +143,8 @@ public interface ListenerProps : ListenerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.ListenerProps, - ) : CdkObject(cdkObject), ListenerProps { + ) : CdkObject(cdkObject), + ListenerProps { /** * The accelerator for this listener. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortOverride.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortOverride.kt index c250b202c4..7467c08d38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortOverride.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortOverride.kt @@ -85,7 +85,8 @@ public interface PortOverride { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.PortOverride, - ) : CdkObject(cdkObject), PortOverride { + ) : CdkObject(cdkObject), + PortOverride { /** * The endpoint port that you want a listener port to be mapped to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortRange.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortRange.kt index 39d3659993..a305806c25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortRange.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/PortRange.kt @@ -77,7 +77,8 @@ public interface PortRange { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.PortRange, - ) : CdkObject(cdkObject), PortRange { + ) : CdkObject(cdkObject), + PortRange { /** * The first port in the range of ports, inclusive. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpoint.kt index 40687157ed..c54bd5d5aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpoint.kt @@ -34,7 +34,8 @@ import kotlin.Unit */ public open class RawEndpoint( cdkObject: software.amazon.awscdk.services.globalaccelerator.RawEndpoint, -) : CdkObject(cdkObject), IEndpoint { +) : CdkObject(cdkObject), + IEndpoint { public constructor(props: RawEndpointProps) : this(software.amazon.awscdk.services.globalaccelerator.RawEndpoint(props.let(RawEndpointProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpointProps.kt index 8ab4e3330d..42ec524ceb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/RawEndpointProps.kt @@ -150,7 +150,8 @@ public interface RawEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.RawEndpointProps, - ) : CdkObject(cdkObject), RawEndpointProps { + ) : CdkObject(cdkObject), + RawEndpointProps { /** * Identifier of the endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpoint.kt index e912ec5206..1183305a0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpoint.kt @@ -32,7 +32,8 @@ import software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBa */ public open class ApplicationLoadBalancerEndpoint( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpoint, -) : CdkObject(cdkObject), IEndpoint { +) : CdkObject(cdkObject), + IEndpoint { public constructor(loadBalancer: CloudshiftdevAwscdkServicesElasticloadbalancingv2IApplicationLoadBalancer) : diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpointOptions.kt index 2a9bfea0e2..400f4a15ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/ApplicationLoadBalancerEndpointOptions.kt @@ -104,7 +104,8 @@ public interface ApplicationLoadBalancerEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpointOptions, - ) : CdkObject(cdkObject), ApplicationLoadBalancerEndpointOptions { + ) : CdkObject(cdkObject), + ApplicationLoadBalancerEndpointOptions { /** * Forward the client IP address in an `X-Forwarded-For` header. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpoint.kt index ec8b5be99d..d85e7349e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpoint.kt @@ -30,7 +30,8 @@ import software.amazon.awscdk.services.ec2.CfnEIP as AmazonAwscdkServicesEc2CfnE */ public open class CfnEipEndpoint( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.CfnEipEndpoint, -) : CdkObject(cdkObject), IEndpoint { +) : CdkObject(cdkObject), + IEndpoint { public constructor(eip: CloudshiftdevAwscdkServicesEc2CfnEIP) : this(software.amazon.awscdk.services.globalaccelerator.endpoints.CfnEipEndpoint(eip.let(CloudshiftdevAwscdkServicesEc2CfnEIP.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpointProps.kt index 91b64a787c..0e9af35191 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/CfnEipEndpointProps.kt @@ -66,7 +66,8 @@ public interface CfnEipEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.CfnEipEndpointProps, - ) : CdkObject(cdkObject), CfnEipEndpointProps { + ) : CdkObject(cdkObject), + CfnEipEndpointProps { /** * Endpoint weight across all endpoints in the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpoint.kt index 1c30b2e77e..7dedda608b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpoint.kt @@ -32,7 +32,8 @@ import software.amazon.awscdk.services.ec2.IInstance as AmazonAwscdkServicesEc2I */ public open class InstanceEndpoint( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint, -) : CdkObject(cdkObject), IEndpoint { +) : CdkObject(cdkObject), + IEndpoint { public constructor(instance: CloudshiftdevAwscdkServicesEc2IInstance) : this(software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint(instance.let(CloudshiftdevAwscdkServicesEc2IInstance.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpointProps.kt index 6d75f3bfde..18269cfe0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/InstanceEndpointProps.kt @@ -103,7 +103,8 @@ public interface InstanceEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpointProps, - ) : CdkObject(cdkObject), InstanceEndpointProps { + ) : CdkObject(cdkObject), + InstanceEndpointProps { /** * Forward the client IP address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpoint.kt index a696ae950c..7b210c8c73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpoint.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.services.globalaccelerator.IEndpoint import kotlin.Any +import kotlin.Boolean import kotlin.Number import kotlin.String import kotlin.Unit @@ -48,7 +49,8 @@ import software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalanc */ public open class NetworkLoadBalancerEndpoint( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.NetworkLoadBalancerEndpoint, -) : CdkObject(cdkObject), IEndpoint { +) : CdkObject(cdkObject), + IEndpoint { public constructor(loadBalancer: CloudshiftdevAwscdkServicesElasticloadbalancingv2INetworkLoadBalancer) : @@ -87,6 +89,21 @@ public open class NetworkLoadBalancerEndpoint( */ @CdkDslMarker public interface Builder { + /** + * Forward the client IP address in an `X-Forwarded-For` header. + * + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + * + * Default: false + * + * @param preserveClientIp Forward the client IP address in an `X-Forwarded-For` header. + */ + public fun preserveClientIp(preserveClientIp: Boolean) + /** * Endpoint weight across all endpoints in the group. * @@ -107,6 +124,23 @@ public open class NetworkLoadBalancerEndpoint( = software.amazon.awscdk.services.globalaccelerator.endpoints.NetworkLoadBalancerEndpoint.Builder.create(loadBalancer) + /** + * Forward the client IP address in an `X-Forwarded-For` header. + * + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + * + * Default: false + * + * @param preserveClientIp Forward the client IP address in an `X-Forwarded-For` header. + */ + override fun preserveClientIp(preserveClientIp: Boolean) { + cdkBuilder.preserveClientIp(preserveClientIp) + } + /** * Endpoint weight across all endpoints in the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpointProps.kt index ccc4b4c049..267d3e2a9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/globalaccelerator/endpoints/NetworkLoadBalancerEndpointProps.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.globalaccelerator.endpoints import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean import kotlin.Number import kotlin.Unit @@ -20,11 +21,25 @@ import kotlin.Unit * .endpoints(List.of( * NetworkLoadBalancerEndpoint.Builder.create(nlb) * .weight(128) + * .preserveClientIp(true) * .build())) * .build()); * ``` */ public interface NetworkLoadBalancerEndpointProps { + /** + * Forward the client IP address in an `X-Forwarded-For` header. + * + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + * + * Default: false + */ + public fun preserveClientIp(): Boolean? = unwrap(this).getPreserveClientIp() + /** * Endpoint weight across all endpoints in the group. * @@ -39,6 +54,16 @@ public interface NetworkLoadBalancerEndpointProps { */ @CdkDslMarker public interface Builder { + /** + * @param preserveClientIp Forward the client IP address in an `X-Forwarded-For` header. + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + */ + public fun preserveClientIp(preserveClientIp: Boolean) + /** * @param weight Endpoint weight across all endpoints in the group. * Must be a value between 0 and 255. @@ -52,6 +77,18 @@ public interface NetworkLoadBalancerEndpointProps { = software.amazon.awscdk.services.globalaccelerator.endpoints.NetworkLoadBalancerEndpointProps.builder() + /** + * @param preserveClientIp Forward the client IP address in an `X-Forwarded-For` header. + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + */ + override fun preserveClientIp(preserveClientIp: Boolean) { + cdkBuilder.preserveClientIp(preserveClientIp) + } + /** * @param weight Endpoint weight across all endpoints in the group. * Must be a value between 0 and 255. @@ -67,7 +104,21 @@ public interface NetworkLoadBalancerEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.globalaccelerator.endpoints.NetworkLoadBalancerEndpointProps, - ) : CdkObject(cdkObject), NetworkLoadBalancerEndpointProps { + ) : CdkObject(cdkObject), + NetworkLoadBalancerEndpointProps { + /** + * Forward the client IP address in an `X-Forwarded-For` header. + * + * GlobalAccelerator will create Network Interfaces in your VPC in order + * to preserve the client IP address. + * + * Client IP address preservation is supported only in specific AWS Regions. + * See the GlobalAccelerator Developer Guide for a list. + * + * Default: false + */ + override fun preserveClientIp(): Boolean? = unwrap(this).getPreserveClientIp() + /** * Endpoint weight across all endpoints in the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifier.kt index 0f13bb48d3..b67b368fe1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifier.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClassifier( cdkObject: software.amazon.awscdk.services.glue.CfnClassifier, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.glue.CfnClassifier(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -784,7 +785,8 @@ public open class CfnClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnClassifier.CsvClassifierProperty, - ) : CdkObject(cdkObject), CsvClassifierProperty { + ) : CdkObject(cdkObject), + CsvClassifierProperty { /** * Enables the processing of files that contain only one column. * @@ -1010,7 +1012,8 @@ public open class CfnClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnClassifier.GrokClassifierProperty, - ) : CdkObject(cdkObject), GrokClassifierProperty { + ) : CdkObject(cdkObject), + GrokClassifierProperty { /** * An identifier of the data format that the classifier matches, such as Twitter, JSON, * Omniture logs, and so on. @@ -1149,7 +1152,8 @@ public open class CfnClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnClassifier.JsonClassifierProperty, - ) : CdkObject(cdkObject), JsonClassifierProperty { + ) : CdkObject(cdkObject), + JsonClassifierProperty { /** * A `JsonPath` string defining the JSON data for the classifier to classify. * @@ -1297,7 +1301,8 @@ public open class CfnClassifier( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnClassifier.XMLClassifierProperty, - ) : CdkObject(cdkObject), XMLClassifierProperty { + ) : CdkObject(cdkObject), + XMLClassifierProperty { /** * An identifier of the data format that the classifier matches. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifierProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifierProps.kt index b0f612104e..af4a40ada9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifierProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnClassifierProps.kt @@ -260,7 +260,8 @@ public interface CfnClassifierProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnClassifierProps, - ) : CdkObject(cdkObject), CfnClassifierProps { + ) : CdkObject(cdkObject), + CfnClassifierProps { /** * A classifier for comma-separated values (CSV). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnection.kt index b5da999a2c..0ae2adc9ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnection.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnection( cdkObject: software.amazon.awscdk.services.glue.CfnConnection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -320,6 +321,12 @@ public open class CfnConnection( * * * Required: `CONNECTION_URL` . * * Required: All of ( `USERNAME` , `PASSWORD` ) or `SECRET_ID` . + * * `SALESFORCE` - Designates a connection to Salesforce using OAuth authencation. + * * Requires the `AuthenticationConfiguration` member to be configured. + * * `VIEW_VALIDATION_REDSHIFT` - Designates a connection used for view validation by Amazon + * Redshift. + * * `VIEW_VALIDATION_ATHENA` - Designates a connection used for view validation by Amazon + * Athena. * * `NETWORK` - Designates a network connection to a data source within an Amazon Virtual * Private Cloud environment (Amazon VPC). * @@ -368,15 +375,13 @@ public open class CfnConnection( /** * The name of the connection. * - * Connection will not function as expected without a name. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-name) */ public fun name(): String? = unwrap(this).getName() /** - * A map of physical connection requirements, such as virtual private cloud (VPC) and - * `SecurityGroup` , that are needed to successfully make this connection. + * The physical connection requirements, such as virtual private cloud (VPC) and `SecurityGroup` + * , that are needed to successfully make this connection. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-physicalconnectionrequirements) */ @@ -428,6 +433,12 @@ public open class CfnConnection( * * * Required: `CONNECTION_URL` . * * Required: All of ( `USERNAME` , `PASSWORD` ) or `SECRET_ID` . + * * `SALESFORCE` - Designates a connection to Salesforce using OAuth authencation. + * * Requires the `AuthenticationConfiguration` member to be configured. + * * `VIEW_VALIDATION_REDSHIFT` - Designates a connection used for view validation by Amazon + * Redshift. + * * `VIEW_VALIDATION_ATHENA` - Designates a connection used for view validation by Amazon + * Athena. * * `NETWORK` - Designates a network connection to a data source within an Amazon Virtual * Private Cloud environment (Amazon VPC). * @@ -476,28 +487,27 @@ public open class CfnConnection( /** * @param name The name of the connection. - * Connection will not function as expected without a name. */ public fun name(name: String) /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ public fun physicalConnectionRequirements(physicalConnectionRequirements: IResolvable) /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ public fun physicalConnectionRequirements(physicalConnectionRequirements: PhysicalConnectionRequirementsProperty) /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -553,6 +563,12 @@ public open class CfnConnection( * * * Required: `CONNECTION_URL` . * * Required: All of ( `USERNAME` , `PASSWORD` ) or `SECRET_ID` . + * * `SALESFORCE` - Designates a connection to Salesforce using OAuth authencation. + * * Requires the `AuthenticationConfiguration` member to be configured. + * * `VIEW_VALIDATION_REDSHIFT` - Designates a connection used for view validation by Amazon + * Redshift. + * * `VIEW_VALIDATION_ATHENA` - Designates a connection used for view validation by Amazon + * Athena. * * `NETWORK` - Designates a network connection to a data source within an Amazon Virtual * Private Cloud environment (Amazon VPC). * @@ -608,15 +624,14 @@ public open class CfnConnection( /** * @param name The name of the connection. - * Connection will not function as expected without a name. */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ override fun physicalConnectionRequirements(physicalConnectionRequirements: IResolvable) { @@ -624,8 +639,8 @@ public open class CfnConnection( } /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ override @@ -634,8 +649,8 @@ public open class CfnConnection( } /** - * @param physicalConnectionRequirements A map of physical connection requirements, such as - * virtual private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this + * @param physicalConnectionRequirements The physical connection requirements, such as virtual + * private cloud (VPC) and `SecurityGroup` , that are needed to successfully make this * connection. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -651,7 +666,8 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnConnection.ConnectionInputProperty, - ) : CdkObject(cdkObject), ConnectionInputProperty { + ) : CdkObject(cdkObject), + ConnectionInputProperty { /** * These key-value pairs define parameters for the connection. * @@ -695,6 +711,12 @@ public open class CfnConnection( * * * Required: `CONNECTION_URL` . * * Required: All of ( `USERNAME` , `PASSWORD` ) or `SECRET_ID` . + * * `SALESFORCE` - Designates a connection to Salesforce using OAuth authencation. + * * Requires the `AuthenticationConfiguration` member to be configured. + * * `VIEW_VALIDATION_REDSHIFT` - Designates a connection used for view validation by Amazon + * Redshift. + * * `VIEW_VALIDATION_ATHENA` - Designates a connection used for view validation by Amazon + * Athena. * * `NETWORK` - Designates a network connection to a data source within an Amazon Virtual * Private Cloud environment (Amazon VPC). * @@ -745,14 +767,12 @@ public open class CfnConnection( /** * The name of the connection. * - * Connection will not function as expected without a name. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-name) */ override fun name(): String? = unwrap(this).getName() /** - * A map of physical connection requirements, such as virtual private cloud (VPC) and + * The physical connection requirements, such as virtual private cloud (VPC) and * `SecurityGroup` , that are needed to successfully make this connection. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-physicalconnectionrequirements) @@ -780,7 +800,7 @@ public open class CfnConnection( } /** - * Specifies the physical requirements for a connection. + * The OAuth client app in GetConnection response. * * Example: * @@ -802,9 +822,6 @@ public open class CfnConnection( /** * The connection's Availability Zone. * - * This field is redundant because the specified subnet implies the Availability Zone to be - * used. Currently the field must be populated, but it will be deprecated in the future. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-availabilityzone) */ public fun availabilityZone(): String? = unwrap(this).getAvailabilityZone() @@ -831,8 +848,6 @@ public open class CfnConnection( public interface Builder { /** * @param availabilityZone The connection's Availability Zone. - * This field is redundant because the specified subnet implies the Availability Zone to be - * used. Currently the field must be populated, but it will be deprecated in the future. */ public fun availabilityZone(availabilityZone: String) @@ -860,8 +875,6 @@ public open class CfnConnection( /** * @param availabilityZone The connection's Availability Zone. - * This field is redundant because the specified subnet implies the Availability Zone to be - * used. Currently the field must be populated, but it will be deprecated in the future. */ override fun availabilityZone(availabilityZone: String) { cdkBuilder.availabilityZone(availabilityZone) @@ -894,13 +907,11 @@ public open class CfnConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnConnection.PhysicalConnectionRequirementsProperty, - ) : CdkObject(cdkObject), PhysicalConnectionRequirementsProperty { + ) : CdkObject(cdkObject), + PhysicalConnectionRequirementsProperty { /** * The connection's Availability Zone. * - * This field is redundant because the specified subnet implies the Availability Zone to be - * used. Currently the field must be populated, but it will be deprecated in the future. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-availabilityzone) */ override fun availabilityZone(): String? = unwrap(this).getAvailabilityZone() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnectionProps.kt index d147f5788b..c12c385ab0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnConnectionProps.kt @@ -141,7 +141,8 @@ public interface CfnConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnConnectionProps, - ) : CdkObject(cdkObject), CfnConnectionProps { + ) : CdkObject(cdkObject), + CfnConnectionProps { /** * The ID of the data catalog to create the catalog object in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawler.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawler.kt index 3370b4c34d..26fa7d674d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawler.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawler.kt @@ -63,6 +63,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .jdbcTargets(List.of(JdbcTargetProperty.builder() * .connectionName("connectionName") + * .enableAdditionalMetadata(List.of("enableAdditionalMetadata")) * .exclusions(List.of("exclusions")) * .path("path") * .build())) @@ -109,7 +110,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCrawler( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1163,7 +1166,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.CatalogTargetProperty, - ) : CdkObject(cdkObject), CatalogTargetProperty { + ) : CdkObject(cdkObject), + CatalogTargetProperty { /** * The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the * crawl when using a `Catalog` connection type paired with a `NETWORK` Connection type. @@ -1381,7 +1385,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.DeltaTargetProperty, - ) : CdkObject(cdkObject), DeltaTargetProperty { + ) : CdkObject(cdkObject), + DeltaTargetProperty { /** * The name of the connection to use to connect to the Delta table target. * @@ -1483,7 +1488,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.DynamoDBTargetProperty, - ) : CdkObject(cdkObject), DynamoDBTargetProperty { + ) : CdkObject(cdkObject), + DynamoDBTargetProperty { /** * The name of the DynamoDB table to crawl. * @@ -1654,7 +1660,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.IcebergTargetProperty, - ) : CdkObject(cdkObject), IcebergTargetProperty { + ) : CdkObject(cdkObject), + IcebergTargetProperty { /** * The name of the connection to use to connect to the Iceberg target. * @@ -1716,6 +1723,7 @@ public open class CfnCrawler( * import io.cloudshiftdev.awscdk.services.glue.*; * JdbcTargetProperty jdbcTargetProperty = JdbcTargetProperty.builder() * .connectionName("connectionName") + * .enableAdditionalMetadata(List.of("enableAdditionalMetadata")) * .exclusions(List.of("exclusions")) * .path("path") * .build(); @@ -1731,6 +1739,19 @@ public open class CfnCrawler( */ public fun connectionName(): String? = unwrap(this).getConnectionName() + /** + * Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata in table responses. + * + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a + * column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-enableadditionalmetadata) + */ + public fun enableAdditionalMetadata(): List = unwrap(this).getEnableAdditionalMetadata() + ?: emptyList() + /** * A list of glob patterns used to exclude from the crawl. * @@ -1758,6 +1779,26 @@ public open class CfnCrawler( */ public fun connectionName(connectionName: String) + /** + * @param enableAdditionalMetadata Specify a value of `RAWTYPES` or `COMMENTS` to enable + * additional metadata in table responses. + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with + * a column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + */ + public fun enableAdditionalMetadata(enableAdditionalMetadata: List) + + /** + * @param enableAdditionalMetadata Specify a value of `RAWTYPES` or `COMMENTS` to enable + * additional metadata in table responses. + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with + * a column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + */ + public fun enableAdditionalMetadata(vararg enableAdditionalMetadata: String) + /** * @param exclusions A list of glob patterns used to exclude from the crawl. * For more information, see [Catalog Tables with a @@ -1790,6 +1831,29 @@ public open class CfnCrawler( cdkBuilder.connectionName(connectionName) } + /** + * @param enableAdditionalMetadata Specify a value of `RAWTYPES` or `COMMENTS` to enable + * additional metadata in table responses. + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with + * a column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + */ + override fun enableAdditionalMetadata(enableAdditionalMetadata: List) { + cdkBuilder.enableAdditionalMetadata(enableAdditionalMetadata) + } + + /** + * @param enableAdditionalMetadata Specify a value of `RAWTYPES` or `COMMENTS` to enable + * additional metadata in table responses. + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with + * a column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + */ + override fun enableAdditionalMetadata(vararg enableAdditionalMetadata: String): Unit = + enableAdditionalMetadata(enableAdditionalMetadata.toList()) + /** * @param exclusions A list of glob patterns used to exclude from the crawl. * For more information, see [Catalog Tables with a @@ -1819,7 +1883,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.JdbcTargetProperty, - ) : CdkObject(cdkObject), JdbcTargetProperty { + ) : CdkObject(cdkObject), + JdbcTargetProperty { /** * The name of the connection to use to connect to the JDBC target. * @@ -1827,6 +1892,20 @@ public open class CfnCrawler( */ override fun connectionName(): String? = unwrap(this).getConnectionName() + /** + * Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata in table + * responses. + * + * `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with + * a column or table in the database. + * + * If you do not need additional metadata, keep the field empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-enableadditionalmetadata) + */ + override fun enableAdditionalMetadata(): List = + unwrap(this).getEnableAdditionalMetadata() ?: emptyList() + /** * A list of glob patterns used to exclude from the crawl. * @@ -1959,7 +2038,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.LakeFormationConfigurationProperty, - ) : CdkObject(cdkObject), LakeFormationConfigurationProperty { + ) : CdkObject(cdkObject), + LakeFormationConfigurationProperty { /** * Required for cross account crawls. * @@ -2073,7 +2153,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.MongoDBTargetProperty, - ) : CdkObject(cdkObject), MongoDBTargetProperty { + ) : CdkObject(cdkObject), + MongoDBTargetProperty { /** * The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target. * @@ -2190,7 +2271,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.RecrawlPolicyProperty, - ) : CdkObject(cdkObject), RecrawlPolicyProperty { + ) : CdkObject(cdkObject), + RecrawlPolicyProperty { /** * Specifies whether to crawl the entire dataset again or to crawl only folders that were * added since the last crawler run. @@ -2418,7 +2500,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.S3TargetProperty, - ) : CdkObject(cdkObject), S3TargetProperty { + ) : CdkObject(cdkObject), + S3TargetProperty { /** * The name of a connection which allows a job or crawler to access data in Amazon S3 within * an Amazon Virtual Private Cloud environment (Amazon VPC). @@ -2553,7 +2636,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * A `cron` expression used to specify the schedule. * @@ -2710,7 +2794,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.SchemaChangePolicyProperty, - ) : CdkObject(cdkObject), SchemaChangePolicyProperty { + ) : CdkObject(cdkObject), + SchemaChangePolicyProperty { /** * The deletion behavior when the crawler finds a deleted object. * @@ -2795,6 +2880,7 @@ public open class CfnCrawler( * .build())) * .jdbcTargets(List.of(JdbcTargetProperty.builder() * .connectionName("connectionName") + * .enableAdditionalMetadata(List.of("enableAdditionalMetadata")) * .exclusions(List.of("exclusions")) * .path("path") * .build())) @@ -3125,7 +3211,8 @@ public open class CfnCrawler( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawler.TargetsProperty, - ) : CdkObject(cdkObject), TargetsProperty { + ) : CdkObject(cdkObject), + TargetsProperty { /** * Specifies AWS Glue Data Catalog targets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawlerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawlerProps.kt index 3d26358e41..bdd82a6517 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawlerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCrawlerProps.kt @@ -49,6 +49,7 @@ import kotlin.jvm.JvmName * .build())) * .jdbcTargets(List.of(JdbcTargetProperty.builder() * .connectionName("connectionName") + * .enableAdditionalMetadata(List.of("enableAdditionalMetadata")) * .exclusions(List.of("exclusions")) * .path("path") * .build())) @@ -611,7 +612,8 @@ public interface CfnCrawlerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCrawlerProps, - ) : CdkObject(cdkObject), CfnCrawlerProps { + ) : CdkObject(cdkObject), + CfnCrawlerProps { /** * A list of UTF-8 strings that specify the names of custom classifiers that are associated with * the crawler. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityType.kt index fe118f8429..d511131224 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityType.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomEntityType( cdkObject: software.amazon.awscdk.services.glue.CfnCustomEntityType, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.glue.CfnCustomEntityType(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityTypeProps.kt index 0093ae9ae8..4ed0366fe1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnCustomEntityTypeProps.kt @@ -163,7 +163,8 @@ public interface CfnCustomEntityTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnCustomEntityTypeProps, - ) : CdkObject(cdkObject), CfnCustomEntityTypeProps { + ) : CdkObject(cdkObject), + CfnCustomEntityTypeProps { /** * A list of context words. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettings.kt index 1f0f27f871..51742faebe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettings.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataCatalogEncryptionSettings( cdkObject: software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettings, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -379,7 +380,8 @@ public open class CfnDataCatalogEncryptionSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettings.ConnectionPasswordEncryptionProperty, - ) : CdkObject(cdkObject), ConnectionPasswordEncryptionProperty { + ) : CdkObject(cdkObject), + ConnectionPasswordEncryptionProperty { /** * An AWS KMS key that is used to encrypt the connection password. * @@ -599,7 +601,8 @@ public open class CfnDataCatalogEncryptionSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettings.DataCatalogEncryptionSettingsProperty, - ) : CdkObject(cdkObject), DataCatalogEncryptionSettingsProperty { + ) : CdkObject(cdkObject), + DataCatalogEncryptionSettingsProperty { /** * When connection password protection is enabled, the Data Catalog uses a customer-provided * key to encrypt the password as part of `CreateConnection` or `UpdateConnection` and store it @@ -738,7 +741,8 @@ public open class CfnDataCatalogEncryptionSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettings.EncryptionAtRestProperty, - ) : CdkObject(cdkObject), EncryptionAtRestProperty { + ) : CdkObject(cdkObject), + EncryptionAtRestProperty { /** * The encryption-at-rest mode for encrypting Data Catalog data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettingsProps.kt index 080da53181..2fdd20703d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataCatalogEncryptionSettingsProps.kt @@ -133,7 +133,8 @@ public interface CfnDataCatalogEncryptionSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataCatalogEncryptionSettingsProps, - ) : CdkObject(cdkObject), CfnDataCatalogEncryptionSettingsProps { + ) : CdkObject(cdkObject), + CfnDataCatalogEncryptionSettingsProps { /** * The ID of the Data Catalog in which the settings are created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRuleset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRuleset.kt index f0cbd40660..24d3ca7974 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRuleset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRuleset.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataQualityRuleset( cdkObject: software.amazon.awscdk.services.glue.CfnDataQualityRuleset, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.glue.CfnDataQualityRuleset(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -449,7 +451,8 @@ public open class CfnDataQualityRuleset( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataQualityRuleset.DataQualityTargetTableProperty, - ) : CdkObject(cdkObject), DataQualityTargetTableProperty { + ) : CdkObject(cdkObject), + DataQualityTargetTableProperty { /** * The name of the database where the AWS Glue table exists. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRulesetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRulesetProps.kt index 6a0ae3e9bd..037ae90f24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRulesetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDataQualityRulesetProps.kt @@ -203,7 +203,8 @@ public interface CfnDataQualityRulesetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDataQualityRulesetProps, - ) : CdkObject(cdkObject), CfnDataQualityRulesetProps { + ) : CdkObject(cdkObject), + CfnDataQualityRulesetProps { /** * Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid * creating or starting multiple instances of the same resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabase.kt index 38c5f4595d..e7d24807e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabase.kt @@ -55,6 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .region("region") * .build()) * .build()) + * // the properties below are optional + * .databaseName("databaseName") * .build(); * ``` * @@ -62,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatabase( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -79,11 +82,6 @@ public open class CfnDatabase( ) : this(scope, id, CfnDatabaseProps(props) ) - /** - * - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * The AWS account ID for the account in which to create the catalog object. */ @@ -123,6 +121,18 @@ public open class CfnDatabase( public open fun databaseInput(`value`: DatabaseInputProperty.Builder.() -> Unit): Unit = databaseInput(DatabaseInputProperty(`value`)) + /** + * The name of the catalog database. + */ + public open fun databaseName(): String? = unwrap(this).getDatabaseName() + + /** + * The name of the catalog database. + */ + public open fun databaseName(`value`: String) { + unwrap(this).setDatabaseName(`value`) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -175,6 +185,14 @@ public open class CfnDatabase( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("977dcab4f4d2d0a2cf36d1e9a7b5532875b1237f2589a2f57b19100e301a879b") public fun databaseInput(databaseInput: DatabaseInputProperty.Builder.() -> Unit) + + /** + * The name of the catalog database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databasename) + * @param databaseName The name of the catalog database. + */ + public fun databaseName(databaseName: String) } private class BuilderImpl( @@ -230,6 +248,16 @@ public open class CfnDatabase( override fun databaseInput(databaseInput: DatabaseInputProperty.Builder.() -> Unit): Unit = databaseInput(DatabaseInputProperty(databaseInput)) + /** + * The name of the catalog database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databasename) + * @param databaseName The name of the catalog database. + */ + override fun databaseName(databaseName: String) { + cdkBuilder.databaseName(databaseName) + } + public fun build(): software.amazon.awscdk.services.glue.CfnDatabase = cdkBuilder.build() } @@ -307,7 +335,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase.DataLakePrincipalProperty, - ) : CdkObject(cdkObject), DataLakePrincipalProperty { + ) : CdkObject(cdkObject), + DataLakePrincipalProperty { /** * An identifier for the AWS Lake Formation principal. * @@ -429,7 +458,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase.DatabaseIdentifierProperty, - ) : CdkObject(cdkObject), DatabaseIdentifierProperty { + ) : CdkObject(cdkObject), + DatabaseIdentifierProperty { /** * The ID of the Data Catalog in which the database resides. * @@ -765,7 +795,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase.DatabaseInputProperty, - ) : CdkObject(cdkObject), DatabaseInputProperty { + ) : CdkObject(cdkObject), + DatabaseInputProperty { /** * Creates a set of default permissions on the table for principals. * @@ -913,7 +944,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase.FederatedDatabaseProperty, - ) : CdkObject(cdkObject), FederatedDatabaseProperty { + ) : CdkObject(cdkObject), + FederatedDatabaseProperty { /** * The name of the connection to the external metastore. * @@ -1060,7 +1092,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabase.PrincipalPrivilegesProperty, - ) : CdkObject(cdkObject), PrincipalPrivilegesProperty { + ) : CdkObject(cdkObject), + PrincipalPrivilegesProperty { /** * The permissions that are granted to the principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabaseProps.kt index d318b09d40..4e3693a213 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDatabaseProps.kt @@ -44,6 +44,8 @@ import kotlin.jvm.JvmName * .region("region") * .build()) * .build()) + * // the properties below are optional + * .databaseName("databaseName") * .build(); * ``` * @@ -69,6 +71,13 @@ public interface CfnDatabaseProps { */ public fun databaseInput(): Any + /** + * The name of the catalog database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databasename) + */ + public fun databaseName(): String? = unwrap(this).getDatabaseName() + /** * A builder for [CfnDatabaseProps] */ @@ -98,6 +107,11 @@ public interface CfnDatabaseProps { @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3dc75074e2c37451f80d699516d33a089a9ef326bf074b07ded67c1d13231f51") public fun databaseInput(databaseInput: CfnDatabase.DatabaseInputProperty.Builder.() -> Unit) + + /** + * @param databaseName The name of the catalog database. + */ + public fun databaseName(databaseName: String) } private class BuilderImpl : Builder { @@ -136,12 +150,20 @@ public interface CfnDatabaseProps { override fun databaseInput(databaseInput: CfnDatabase.DatabaseInputProperty.Builder.() -> Unit): Unit = databaseInput(CfnDatabase.DatabaseInputProperty(databaseInput)) + /** + * @param databaseName The name of the catalog database. + */ + override fun databaseName(databaseName: String) { + cdkBuilder.databaseName(databaseName) + } + public fun build(): software.amazon.awscdk.services.glue.CfnDatabaseProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDatabaseProps, - ) : CdkObject(cdkObject), CfnDatabaseProps { + ) : CdkObject(cdkObject), + CfnDatabaseProps { /** * The AWS account ID for the account in which to create the catalog object. * @@ -160,6 +182,13 @@ public interface CfnDatabaseProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databaseinput) */ override fun databaseInput(): Any = unwrap(this).getDatabaseInput() + + /** + * The name of the catalog database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databasename) + */ + override fun databaseName(): String? = unwrap(this).getDatabaseName() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpoint.kt index 7fe1381ee8..65d5cde3ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpoint.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDevEndpoint( cdkObject: software.amazon.awscdk.services.glue.CfnDevEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpointProps.kt index af1f518740..62c14aa64f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnDevEndpointProps.kt @@ -569,7 +569,8 @@ public interface CfnDevEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnDevEndpointProps, - ) : CdkObject(cdkObject), CfnDevEndpointProps { + ) : CdkObject(cdkObject), + CfnDevEndpointProps { /** * A map of arguments used to configure the `DevEndpoint` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJob.kt index 1e3dbcf124..54e7efc993 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJob.kt @@ -58,6 +58,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .glueVersion("glueVersion") * .logUri("logUri") + * .maintenanceWindow("maintenanceWindow") * .maxCapacity(123) * .maxRetries(123) * .name("name") @@ -77,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJob( cdkObject: software.amazon.awscdk.services.glue.CfnJob, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -265,6 +268,18 @@ public open class CfnJob( unwrap(this).setLogUri(`value`) } + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + */ + public open fun maintenanceWindow(): String? = unwrap(this).getMaintenanceWindow() + + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + */ + public open fun maintenanceWindow(`value`: String) { + unwrap(this).setMaintenanceWindow(`value`) + } + /** * The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. */ @@ -569,7 +584,8 @@ public open class CfnJob( * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-glueversion) * @param glueVersion Glue version determines the versions of Apache Spark and Python that AWS @@ -585,6 +601,22 @@ public open class CfnJob( */ public fun logUri(logUri: String) + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + * + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be + * restarted between 10:00AM GMT to 1:00PM GMT. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maintenancewindow) + * @param maintenanceWindow This field specifies a day of the week and hour for a maintenance + * window for streaming jobs. + */ + public fun maintenanceWindow(maintenanceWindow: String) + /** * The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. * @@ -923,7 +955,8 @@ public open class CfnJob( * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-glueversion) * @param glueVersion Glue version determines the versions of Apache Spark and Python that AWS @@ -943,6 +976,24 @@ public open class CfnJob( cdkBuilder.logUri(logUri) } + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + * + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be + * restarted between 10:00AM GMT to 1:00PM GMT. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maintenancewindow) + * @param maintenanceWindow This field specifies a day of the week and hour for a maintenance + * window for streaming jobs. + */ + override fun maintenanceWindow(maintenanceWindow: String) { + cdkBuilder.maintenanceWindow(maintenanceWindow) + } + /** * The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. * @@ -1214,7 +1265,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnJob.ConnectionsListProperty, - ) : CdkObject(cdkObject), ConnectionsListProperty { + ) : CdkObject(cdkObject), + ConnectionsListProperty { /** * A list of connections used by the job. * @@ -1301,7 +1353,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnJob.ExecutionPropertyProperty, - ) : CdkObject(cdkObject), ExecutionPropertyProperty { + ) : CdkObject(cdkObject), + ExecutionPropertyProperty { /** * The maximum number of concurrent runs allowed for the job. * @@ -1473,7 +1526,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnJob.JobCommandProperty, - ) : CdkObject(cdkObject), JobCommandProperty { + ) : CdkObject(cdkObject), + JobCommandProperty { /** * The name of the job command. * @@ -1588,7 +1642,8 @@ public open class CfnJob( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnJob.NotificationPropertyProperty, - ) : CdkObject(cdkObject), NotificationPropertyProperty { + ) : CdkObject(cdkObject), + NotificationPropertyProperty { /** * After a job run starts, the number of minutes to wait before sending a job run delay * notification. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJobProps.kt index 69ab4e4aa6..e9418661e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnJobProps.kt @@ -45,6 +45,7 @@ import kotlin.jvm.JvmName * .build()) * .glueVersion("glueVersion") * .logUri("logUri") + * .maintenanceWindow("maintenanceWindow") * .maxCapacity(123) * .maxRetries(123) * .name("name") @@ -145,7 +146,8 @@ public interface CfnJobProps { * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-glueversion) */ @@ -158,6 +160,20 @@ public interface CfnJobProps { */ public fun logUri(): String? = unwrap(this).getLogUri() + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + * + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For instance, + * if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted + * between 10:00AM GMT to 1:00PM GMT. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maintenancewindow) + */ + public fun maintenanceWindow(): String? = unwrap(this).getMaintenanceWindow() + /** * The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. * @@ -391,7 +407,8 @@ public interface CfnJobProps { * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. */ public fun glueVersion(glueVersion: String) @@ -400,6 +417,18 @@ public interface CfnJobProps { */ public fun logUri(logUri: String) + /** + * @param maintenanceWindow This field specifies a day of the week and hour for a maintenance + * window for streaming jobs. + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be + * restarted between 10:00AM GMT to 1:00PM GMT. + */ + public fun maintenanceWindow(maintenanceWindow: String) + /** * @param maxCapacity The number of AWS Glue data processing units (DPUs) that can be allocated * when this job runs. @@ -648,7 +677,8 @@ public interface CfnJobProps { * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. */ override fun glueVersion(glueVersion: String) { cdkBuilder.glueVersion(glueVersion) @@ -661,6 +691,20 @@ public interface CfnJobProps { cdkBuilder.logUri(logUri) } + /** + * @param maintenanceWindow This field specifies a day of the week and hour for a maintenance + * window for streaming jobs. + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be + * restarted between 10:00AM GMT to 1:00PM GMT. + */ + override fun maintenanceWindow(maintenanceWindow: String) { + cdkBuilder.maintenanceWindow(maintenanceWindow) + } + /** * @param maxCapacity The number of AWS Glue data processing units (DPUs) that can be allocated * when this job runs. @@ -808,7 +852,8 @@ public interface CfnJobProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnJobProps, - ) : CdkObject(cdkObject), CfnJobProps { + ) : CdkObject(cdkObject), + CfnJobProps { /** * This parameter is no longer supported. Use `MaxCapacity` instead. * @@ -891,7 +936,8 @@ public interface CfnJobProps { * versions, see [Glue version](https://docs.aws.amazon.com/glue/latest/dg/add-job.html) in the * developer guide. * - * Jobs that are created without specifying a Glue version default to Glue 0.9. + * Jobs that are created without specifying a Glue version default to the latest Glue version + * available. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-glueversion) */ @@ -904,6 +950,20 @@ public interface CfnJobProps { */ override fun logUri(): String? = unwrap(this).getLogUri() + /** + * This field specifies a day of the week and hour for a maintenance window for streaming jobs. + * + * AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS + * Glue will need to restart your streaming jobs. + * + * AWS Glue will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be + * restarted between 10:00AM GMT to 1:00PM GMT. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maintenancewindow) + */ + override fun maintenanceWindow(): String? = unwrap(this).getMaintenanceWindow() + /** * The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransform.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransform.kt index 6aca6fcea8..e30e07b85b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransform.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransform.kt @@ -78,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMLTransform( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1139,7 +1141,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.FindMatchesParametersProperty, - ) : CdkObject(cdkObject), FindMatchesParametersProperty { + ) : CdkObject(cdkObject), + FindMatchesParametersProperty { /** * The value that is selected when tuning your transform for a balance between accuracy and * cost. @@ -1332,7 +1335,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.GlueTablesProperty, - ) : CdkObject(cdkObject), GlueTablesProperty { + ) : CdkObject(cdkObject), + GlueTablesProperty { /** * A unique identifier for the AWS Glue Data Catalog . * @@ -1468,7 +1472,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.InputRecordTablesProperty, - ) : CdkObject(cdkObject), InputRecordTablesProperty { + ) : CdkObject(cdkObject), + InputRecordTablesProperty { /** * The database and table in the AWS Glue Data Catalog that is used for input or output data. * @@ -1586,7 +1591,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.MLUserDataEncryptionProperty, - ) : CdkObject(cdkObject), MLUserDataEncryptionProperty { + ) : CdkObject(cdkObject), + MLUserDataEncryptionProperty { /** * The ID for the customer-provided KMS key. * @@ -1746,7 +1752,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.TransformEncryptionProperty, - ) : CdkObject(cdkObject), TransformEncryptionProperty { + ) : CdkObject(cdkObject), + TransformEncryptionProperty { /** * The encryption-at-rest settings of the transform that apply to accessing user data. * @@ -1906,7 +1913,8 @@ public open class CfnMLTransform( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransform.TransformParametersProperty, - ) : CdkObject(cdkObject), TransformParametersProperty { + ) : CdkObject(cdkObject), + TransformParametersProperty { /** * The parameters for the find matches algorithm. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransformProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransformProps.kt index a9cb4f3e77..ab24793221 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransformProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnMLTransformProps.kt @@ -643,7 +643,8 @@ public interface CfnMLTransformProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnMLTransformProps, - ) : CdkObject(cdkObject), CfnMLTransformProps { + ) : CdkObject(cdkObject), + CfnMLTransformProps { /** * A user-defined, long-form description text for the machine learning transform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartition.kt index 49ea02aeaf..6772e718b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartition.kt @@ -93,7 +93,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPartition( cdkObject: software.amazon.awscdk.services.glue.CfnPartition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -438,7 +439,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.ColumnProperty, - ) : CdkObject(cdkObject), ColumnProperty { + ) : CdkObject(cdkObject), + ColumnProperty { /** * A free-form text comment. * @@ -555,7 +557,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.OrderProperty, - ) : CdkObject(cdkObject), OrderProperty { + ) : CdkObject(cdkObject), + OrderProperty { /** * The name of the column. * @@ -797,7 +800,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.PartitionInputProperty, - ) : CdkObject(cdkObject), PartitionInputProperty { + ) : CdkObject(cdkObject), + PartitionInputProperty { /** * These key-value pairs define partition parameters. * @@ -952,7 +956,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.SchemaIdProperty, - ) : CdkObject(cdkObject), SchemaIdProperty { + ) : CdkObject(cdkObject), + SchemaIdProperty { /** * The name of the schema registry that contains the schema. * @@ -1140,7 +1145,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.SchemaReferenceProperty, - ) : CdkObject(cdkObject), SchemaReferenceProperty { + ) : CdkObject(cdkObject), + SchemaReferenceProperty { /** * A structure that contains schema identity fields. * @@ -1285,7 +1291,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.SerdeInfoProperty, - ) : CdkObject(cdkObject), SerdeInfoProperty { + ) : CdkObject(cdkObject), + SerdeInfoProperty { /** * Name of the SerDe. * @@ -1455,7 +1462,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.SkewedInfoProperty, - ) : CdkObject(cdkObject), SkewedInfoProperty { + ) : CdkObject(cdkObject), + SkewedInfoProperty { /** * A list of names of columns that contain skewed values. * @@ -2017,7 +2025,8 @@ public open class CfnPartition( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartition.StorageDescriptorProperty, - ) : CdkObject(cdkObject), StorageDescriptorProperty { + ) : CdkObject(cdkObject), + StorageDescriptorProperty { /** * A list of reducer grouping columns, clustering columns, and bucketing columns in the table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartitionProps.kt index 14ad5ef8e2..5e011156f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnPartitionProps.kt @@ -208,7 +208,8 @@ public interface CfnPartitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnPartitionProps, - ) : CdkObject(cdkObject), CfnPartitionProps { + ) : CdkObject(cdkObject), + CfnPartitionProps { /** * The AWS account ID of the catalog in which the partion is to be created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistry.kt index 18493ec7e7..7ba599c00b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistry.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegistry( cdkObject: software.amazon.awscdk.services.glue.CfnRegistry, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistryProps.kt index fa3d3686af..d667ae06c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnRegistryProps.kt @@ -119,7 +119,8 @@ public interface CfnRegistryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnRegistryProps, - ) : CdkObject(cdkObject), CfnRegistryProps { + ) : CdkObject(cdkObject), + CfnRegistryProps { /** * A description of the registry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchema.kt index d75c5133b4..5a8d3be822 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchema.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchema( cdkObject: software.amazon.awscdk.services.glue.CfnSchema, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -617,7 +619,8 @@ public open class CfnSchema( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchema.RegistryProperty, - ) : CdkObject(cdkObject), RegistryProperty { + ) : CdkObject(cdkObject), + RegistryProperty { /** * The Amazon Resource Name (ARN) of the registry. * @@ -734,7 +737,8 @@ public open class CfnSchema( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchema.SchemaVersionProperty, - ) : CdkObject(cdkObject), SchemaVersionProperty { + ) : CdkObject(cdkObject), + SchemaVersionProperty { /** * Indicates if this version is the latest version of the schema. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaProps.kt index 57d9bf59df..b4a34ac47c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaProps.kt @@ -311,7 +311,8 @@ public interface CfnSchemaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaProps, - ) : CdkObject(cdkObject), CfnSchemaProps { + ) : CdkObject(cdkObject), + CfnSchemaProps { /** * Specify the `VersionNumber` or the `IsLatest` for setting the checkpoint for the schema. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersion.kt index 7189d09379..a113273133 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersion.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchemaVersion( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -329,7 +330,8 @@ public open class CfnSchemaVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaVersion.SchemaProperty, - ) : CdkObject(cdkObject), SchemaProperty { + ) : CdkObject(cdkObject), + SchemaProperty { /** * The name of the registry where the schema is stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadata.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadata.kt index c295df7893..794118cbbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadata.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadata.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchemaVersionMetadata( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaVersionMetadata, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadataProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadataProps.kt index f8af5b4fa9..d211114e40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadataProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionMetadataProps.kt @@ -102,7 +102,8 @@ public interface CfnSchemaVersionMetadataProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaVersionMetadataProps, - ) : CdkObject(cdkObject), CfnSchemaVersionMetadataProps { + ) : CdkObject(cdkObject), + CfnSchemaVersionMetadataProps { /** * A metadata key in a key-value pair for metadata. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionProps.kt index ca475c7dfc..46b450b57a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSchemaVersionProps.kt @@ -114,7 +114,8 @@ public interface CfnSchemaVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSchemaVersionProps, - ) : CdkObject(cdkObject), CfnSchemaVersionProps { + ) : CdkObject(cdkObject), + CfnSchemaVersionProps { /** * The schema that includes the schema version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfiguration.kt index e7a833dc88..411365508c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfiguration.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityConfiguration( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -325,7 +326,8 @@ public open class CfnSecurityConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfiguration.CloudWatchEncryptionProperty, - ) : CdkObject(cdkObject), CloudWatchEncryptionProperty { + ) : CdkObject(cdkObject), + CloudWatchEncryptionProperty { /** * The encryption mode to use for CloudWatch data. * @@ -551,7 +553,8 @@ public open class CfnSecurityConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfiguration.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The encryption configuration for Amazon CloudWatch. * @@ -670,7 +673,8 @@ public open class CfnSecurityConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfiguration.JobBookmarksEncryptionProperty, - ) : CdkObject(cdkObject), JobBookmarksEncryptionProperty { + ) : CdkObject(cdkObject), + JobBookmarksEncryptionProperty { /** * The encryption mode to use for job bookmarks data. * @@ -782,7 +786,8 @@ public open class CfnSecurityConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfiguration.S3EncryptionProperty, - ) : CdkObject(cdkObject), S3EncryptionProperty { + ) : CdkObject(cdkObject), + S3EncryptionProperty { /** * The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfigurationProps.kt index 5745a30073..fb5aab612d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnSecurityConfigurationProps.kt @@ -136,7 +136,8 @@ public interface CfnSecurityConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnSecurityConfigurationProps, - ) : CdkObject(cdkObject), CfnSecurityConfigurationProps { + ) : CdkObject(cdkObject), + CfnSecurityConfigurationProps { /** * The encryption configuration associated with this security configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTable.kt index d5d5607146..73a0d01b3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTable.kt @@ -113,7 +113,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTable( cdkObject: software.amazon.awscdk.services.glue.CfnTable, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -513,7 +514,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.ColumnProperty, - ) : CdkObject(cdkObject), ColumnProperty { + ) : CdkObject(cdkObject), + ColumnProperty { /** * A free-form text comment. * @@ -633,7 +635,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.IcebergInputProperty, - ) : CdkObject(cdkObject), IcebergInputProperty { + ) : CdkObject(cdkObject), + IcebergInputProperty { /** * A required metadata operation. * @@ -760,7 +763,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.OpenTableFormatInputProperty, - ) : CdkObject(cdkObject), OpenTableFormatInputProperty { + ) : CdkObject(cdkObject), + OpenTableFormatInputProperty { /** * Specifies an `IcebergInput` structure that defines an Apache Iceberg metadata table. * @@ -862,7 +866,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.OrderProperty, - ) : CdkObject(cdkObject), OrderProperty { + ) : CdkObject(cdkObject), + OrderProperty { /** * The name of the column. * @@ -1000,7 +1005,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.SchemaIdProperty, - ) : CdkObject(cdkObject), SchemaIdProperty { + ) : CdkObject(cdkObject), + SchemaIdProperty { /** * The name of the schema registry that contains the schema. * @@ -1187,7 +1193,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.SchemaReferenceProperty, - ) : CdkObject(cdkObject), SchemaReferenceProperty { + ) : CdkObject(cdkObject), + SchemaReferenceProperty { /** * A structure that contains schema identity fields. * @@ -1332,7 +1339,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.SerdeInfoProperty, - ) : CdkObject(cdkObject), SerdeInfoProperty { + ) : CdkObject(cdkObject), + SerdeInfoProperty { /** * Name of the SerDe. * @@ -1500,7 +1508,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.SkewedInfoProperty, - ) : CdkObject(cdkObject), SkewedInfoProperty { + ) : CdkObject(cdkObject), + SkewedInfoProperty { /** * A list of names of columns that contain skewed values. * @@ -2055,7 +2064,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.StorageDescriptorProperty, - ) : CdkObject(cdkObject), StorageDescriptorProperty { + ) : CdkObject(cdkObject), + StorageDescriptorProperty { /** * A list of reducer grouping columns, clustering columns, and bucketing columns in the table. * @@ -2284,7 +2294,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.TableIdentifierProperty, - ) : CdkObject(cdkObject), TableIdentifierProperty { + ) : CdkObject(cdkObject), + TableIdentifierProperty { /** * The ID of the Data Catalog in which the table resides. * @@ -2807,7 +2818,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTable.TableInputProperty, - ) : CdkObject(cdkObject), TableInputProperty { + ) : CdkObject(cdkObject), + TableInputProperty { /** * A description of the table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizer.kt index 27d56b6c7b..ceb8fabd6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizer.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTableOptimizer( cdkObject: software.amazon.awscdk.services.glue.CfnTableOptimizer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -425,7 +426,8 @@ public open class CfnTableOptimizer( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTableOptimizer.TableOptimizerConfigurationProperty, - ) : CdkObject(cdkObject), TableOptimizerConfigurationProperty { + ) : CdkObject(cdkObject), + TableOptimizerConfigurationProperty { /** * Whether the table optimization is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizerProps.kt index e8a6e2c07c..ca0e50551a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableOptimizerProps.kt @@ -190,7 +190,8 @@ public interface CfnTableOptimizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTableOptimizerProps, - ) : CdkObject(cdkObject), CfnTableOptimizerProps { + ) : CdkObject(cdkObject), + CfnTableOptimizerProps { /** * The catalog ID of the table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableProps.kt index 26abfade29..8096cca918 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTableProps.kt @@ -256,7 +256,8 @@ public interface CfnTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTableProps, - ) : CdkObject(cdkObject), CfnTableProps { + ) : CdkObject(cdkObject), + CfnTableProps { /** * The ID of the Data Catalog in which to create the `Table` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTrigger.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTrigger.kt index 5af3ee9d3f..36824a7bd0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTrigger.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTrigger.kt @@ -78,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrigger( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -119,11 +121,6 @@ public open class CfnTrigger( */ public open fun actions(vararg `value`: Any): Unit = actions(`value`.toList()) - /** - * Reserved for future use. - */ - public open fun attrId(): String = unwrap(this).getAttrId() - /** * A description of this trigger. */ @@ -909,7 +906,8 @@ public open class CfnTrigger( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * The job arguments used when this trigger fires. * @@ -1128,7 +1126,8 @@ public open class CfnTrigger( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger.ConditionProperty, - ) : CdkObject(cdkObject), ConditionProperty { + ) : CdkObject(cdkObject), + ConditionProperty { /** * The state of the crawler to which this condition applies. * @@ -1269,7 +1268,8 @@ public open class CfnTrigger( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger.EventBatchingConditionProperty, - ) : CdkObject(cdkObject), EventBatchingConditionProperty { + ) : CdkObject(cdkObject), + EventBatchingConditionProperty { /** * Number of events that must be received from Amazon EventBridge before EventBridge event * trigger fires. @@ -1364,7 +1364,8 @@ public open class CfnTrigger( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger.NotificationPropertyProperty, - ) : CdkObject(cdkObject), NotificationPropertyProperty { + ) : CdkObject(cdkObject), + NotificationPropertyProperty { /** * After a job run starts, the number of minutes to wait before sending a job run delay * notification. @@ -1497,7 +1498,8 @@ public open class CfnTrigger( private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTrigger.PredicateProperty, - ) : CdkObject(cdkObject), PredicateProperty { + ) : CdkObject(cdkObject), + PredicateProperty { /** * A list of the conditions that determine when the trigger will fire. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTriggerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTriggerProps.kt index 8e4be6692e..4fa6489129 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTriggerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnTriggerProps.kt @@ -392,7 +392,8 @@ public interface CfnTriggerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnTriggerProps, - ) : CdkObject(cdkObject), CfnTriggerProps { + ) : CdkObject(cdkObject), + CfnTriggerProps { /** * The actions initiated by this trigger. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflow.kt index d67c52a2ef..09394b389d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflow.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkflow( cdkObject: software.amazon.awscdk.services.glue.CfnWorkflow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.glue.CfnWorkflow(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflowProps.kt index 339a41aa3f..2ab37eea16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/glue/CfnWorkflowProps.kt @@ -157,7 +157,8 @@ public interface CfnWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.glue.CfnWorkflowProps, - ) : CdkObject(cdkObject), CfnWorkflowProps { + ) : CdkObject(cdkObject), + CfnWorkflowProps { /** * A collection of properties to be used as part of each execution of the workflow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspace.kt index 7ab8e4609a..3659f751bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspace.kt @@ -84,7 +84,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkspace( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -333,12 +334,12 @@ public open class CfnWorkspace( notificationDestinations(`value`.toList()) /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. */ public open fun organizationRoleName(): String? = unwrap(this).getOrganizationRoleName() /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. */ public open fun organizationRoleName(`value`: String) { unwrap(this).setOrganizationRoleName(`value`) @@ -520,6 +521,8 @@ public open class CfnWorkspace( * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) * @param authenticationProviders Specifies whether this workspace uses SAML 2.0, AWS IAM * Identity Center , or both to authenticate users for using the Grafana console within a @@ -534,6 +537,8 @@ public open class CfnWorkspace( * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) * @param authenticationProviders Specifies whether this workspace uses SAML 2.0, AWS IAM * Identity Center , or both to authenticate users for using the Grafana console within a @@ -642,6 +647,8 @@ public open class CfnWorkspace( * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these @@ -653,6 +660,8 @@ public open class CfnWorkspace( * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these @@ -661,11 +670,11 @@ public open class CfnWorkspace( public fun notificationDestinations(vararg notificationDestinations: String) /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-organizationrolename) * @param organizationRoleName The name of the IAM role that is used to access resources through - * Organizations . + * Organizations. */ public fun organizationRoleName(organizationRoleName: String) @@ -883,6 +892,8 @@ public open class CfnWorkspace( * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) * @param authenticationProviders Specifies whether this workspace uses SAML 2.0, AWS IAM * Identity Center , or both to authenticate users for using the Grafana console within a @@ -899,6 +910,8 @@ public open class CfnWorkspace( * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) * @param authenticationProviders Specifies whether this workspace uses SAML 2.0, AWS IAM * Identity Center , or both to authenticate users for using the Grafana console within a @@ -1023,6 +1036,8 @@ public open class CfnWorkspace( * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these @@ -1036,6 +1051,8 @@ public open class CfnWorkspace( * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these @@ -1045,11 +1062,11 @@ public open class CfnWorkspace( notificationDestinations(notificationDestinations.toList()) /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-organizationrolename) * @param organizationRoleName The name of the IAM role that is used to access resources through - * Organizations . + * Organizations. */ override fun organizationRoleName(organizationRoleName: String) { cdkBuilder.organizationRoleName(organizationRoleName) @@ -1453,7 +1470,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.AssertionAttributesProperty, - ) : CdkObject(cdkObject), AssertionAttributesProperty { + ) : CdkObject(cdkObject), + AssertionAttributesProperty { /** * The name of the attribute within the SAML assertion to use as the email names for SAML * users. @@ -1598,7 +1616,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.IdpMetadataProperty, - ) : CdkObject(cdkObject), IdpMetadataProperty { + ) : CdkObject(cdkObject), + IdpMetadataProperty { /** * The URL of the location containing the IdP metadata. * @@ -1874,7 +1893,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.NetworkAccessControlProperty, - ) : CdkObject(cdkObject), NetworkAccessControlProperty { + ) : CdkObject(cdkObject), + NetworkAccessControlProperty { /** * An array of prefix list IDs. * @@ -2041,7 +2061,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.RoleValuesProperty, - ) : CdkObject(cdkObject), RoleValuesProperty { + ) : CdkObject(cdkObject), + RoleValuesProperty { /** * A list of groups from the SAML assertion attribute to grant the Grafana `Admin` role to. * @@ -2358,7 +2379,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.SamlConfigurationProperty, - ) : CdkObject(cdkObject), SamlConfigurationProperty { + ) : CdkObject(cdkObject), + SamlConfigurationProperty { /** * Lists which organizations defined in the SAML assertion are allowed to use the Amazon * Managed Grafana workspace. @@ -2585,7 +2607,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspace.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana * workspace to connect. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspaceProps.kt index 2a4305217b..18b5e1907e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/grafana/CfnWorkspaceProps.kt @@ -90,6 +90,8 @@ public interface CfnWorkspaceProps { * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) */ public fun authenticationProviders(): List @@ -154,13 +156,15 @@ public interface CfnWorkspaceProps { * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) */ public fun notificationDestinations(): List = unwrap(this).getNotificationDestinations() ?: emptyList() /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-organizationrolename) */ @@ -271,6 +275,7 @@ public interface CfnWorkspaceProps { * Identity Center , or both to authenticate users for using the Grafana console within a * workspace. For more information, see [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . + * *Allowed Values* : `AWS_SSO | SAML` */ public fun authenticationProviders(authenticationProviders: List) @@ -279,6 +284,7 @@ public interface CfnWorkspaceProps { * Identity Center , or both to authenticate users for using the Grafana console within a * workspace. For more information, see [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . + * *Allowed Values* : `AWS_SSO | SAML` */ public fun authenticationProviders(vararg authenticationProviders: String) @@ -350,6 +356,7 @@ public interface CfnWorkspaceProps { * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these * channels. + * *AllowedValues* : `SNS` */ public fun notificationDestinations(notificationDestinations: List) @@ -357,12 +364,13 @@ public interface CfnWorkspaceProps { * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these * channels. + * *AllowedValues* : `SNS` */ public fun notificationDestinations(vararg notificationDestinations: String) /** * @param organizationRoleName The name of the IAM role that is used to access resources through - * Organizations . + * Organizations. */ public fun organizationRoleName(organizationRoleName: String) @@ -507,6 +515,7 @@ public interface CfnWorkspaceProps { * Identity Center , or both to authenticate users for using the Grafana console within a * workspace. For more information, see [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . + * *Allowed Values* : `AWS_SSO | SAML` */ override fun authenticationProviders(authenticationProviders: List) { cdkBuilder.authenticationProviders(authenticationProviders) @@ -517,6 +526,7 @@ public interface CfnWorkspaceProps { * Identity Center , or both to authenticate users for using the Grafana console within a * workspace. For more information, see [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . + * *Allowed Values* : `AWS_SSO | SAML` */ override fun authenticationProviders(vararg authenticationProviders: String): Unit = authenticationProviders(authenticationProviders.toList()) @@ -605,6 +615,7 @@ public interface CfnWorkspaceProps { * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these * channels. + * *AllowedValues* : `SNS` */ override fun notificationDestinations(notificationDestinations: List) { cdkBuilder.notificationDestinations(notificationDestinations) @@ -614,13 +625,14 @@ public interface CfnWorkspaceProps { * @param notificationDestinations The AWS notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these * channels. + * *AllowedValues* : `SNS` */ override fun notificationDestinations(vararg notificationDestinations: String): Unit = notificationDestinations(notificationDestinations.toList()) /** * @param organizationRoleName The name of the IAM role that is used to access resources through - * Organizations . + * Organizations. */ override fun organizationRoleName(organizationRoleName: String) { cdkBuilder.organizationRoleName(organizationRoleName) @@ -775,7 +787,8 @@ public interface CfnWorkspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.grafana.CfnWorkspaceProps, - ) : CdkObject(cdkObject), CfnWorkspaceProps { + ) : CdkObject(cdkObject), + CfnWorkspaceProps { /** * Specifies whether the workspace can access AWS resources in this AWS account only, or whether * it can also access AWS resources in other accounts in the same organization. @@ -793,6 +806,8 @@ public interface CfnWorkspaceProps { * [User authentication in Amazon Managed * Grafana](https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html) . * + * *Allowed Values* : `AWS_SSO | SAML` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-authenticationproviders) */ override fun authenticationProviders(): List = unwrap(this).getAuthenticationProviders() @@ -857,13 +872,15 @@ public interface CfnWorkspaceProps { * The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles * and permissions for, to allow Amazon Managed Grafana to use these channels. * + * *AllowedValues* : `SNS` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-notificationdestinations) */ override fun notificationDestinations(): List = unwrap(this).getNotificationDestinations() ?: emptyList() /** - * The name of the IAM role that is used to access resources through Organizations . + * The name of the IAM role that is used to access resources through Organizations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html#cfn-grafana-workspace-organizationrolename) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinition.kt index fdfa5aa586..13fc23e26a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinition.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectorDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -518,7 +520,8 @@ public open class CfnConnectorDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinition.ConnectorDefinitionVersionProperty, - ) : CdkObject(cdkObject), ConnectorDefinitionVersionProperty { + ) : CdkObject(cdkObject), + ConnectorDefinitionVersionProperty { /** * The connectors in this version. * @@ -676,7 +679,8 @@ public open class CfnConnectorDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinition.ConnectorProperty, - ) : CdkObject(cdkObject), ConnectorProperty { + ) : CdkObject(cdkObject), + ConnectorProperty { /** * The Amazon Resource Name (ARN) of the connector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionProps.kt index aaa49ecdb4..775603f28c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionProps.kt @@ -254,7 +254,8 @@ public interface CfnConnectorDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinitionProps, - ) : CdkObject(cdkObject), CfnConnectorDefinitionProps { + ) : CdkObject(cdkObject), + CfnConnectorDefinitionProps { /** * The connector definition version to include when the connector definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersion.kt index 2ecab81335..300305af6b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersion.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectorDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -388,7 +389,8 @@ public open class CfnConnectorDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinitionVersion.ConnectorProperty, - ) : CdkObject(cdkObject), ConnectorProperty { + ) : CdkObject(cdkObject), + ConnectorProperty { /** * The Amazon Resource Name (ARN) of the connector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersionProps.kt index 2296403bbd..415c928126 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnConnectorDefinitionVersionProps.kt @@ -135,7 +135,8 @@ public interface CfnConnectorDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnConnectorDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnConnectorDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnConnectorDefinitionVersionProps { /** * The ID of the connector definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinition.kt index a03ef8c6ed..e6eb206307 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinition.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCoreDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -505,7 +507,8 @@ public open class CfnCoreDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinition.CoreDefinitionVersionProperty, - ) : CdkObject(cdkObject), CoreDefinitionVersionProperty { + ) : CdkObject(cdkObject), + CoreDefinitionVersionProperty { /** * The Greengrass core in this version. * @@ -696,7 +699,8 @@ public open class CfnCoreDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinition.CoreProperty, - ) : CdkObject(cdkObject), CoreProperty { + ) : CdkObject(cdkObject), + CoreProperty { /** * The Amazon Resource Name (ARN) of the device certificate for the core. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionProps.kt index f6623c0691..bd1922aae1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionProps.kt @@ -244,7 +244,8 @@ public interface CfnCoreDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinitionProps, - ) : CdkObject(cdkObject), CfnCoreDefinitionProps { + ) : CdkObject(cdkObject), + CfnCoreDefinitionProps { /** * The core definition version to include when the core definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersion.kt index 69fcd1bbf7..c166a0384c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersion.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCoreDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -414,7 +415,8 @@ public open class CfnCoreDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinitionVersion.CoreProperty, - ) : CdkObject(cdkObject), CoreProperty { + ) : CdkObject(cdkObject), + CoreProperty { /** * The ARN of the device certificate for the core. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersionProps.kt index 7153efa1ee..ad5bde51d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnCoreDefinitionVersionProps.kt @@ -125,7 +125,8 @@ public interface CfnCoreDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnCoreDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnCoreDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnCoreDefinitionVersionProps { /** * The ID of the core definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinition.kt index 27fb9e4685..a856cf3799 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinition.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeviceDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -498,7 +500,8 @@ public open class CfnDeviceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinition.DeviceDefinitionVersionProperty, - ) : CdkObject(cdkObject), DeviceDefinitionVersionProperty { + ) : CdkObject(cdkObject), + DeviceDefinitionVersionProperty { /** * The devices in this version. * @@ -681,7 +684,8 @@ public open class CfnDeviceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinition.DeviceProperty, - ) : CdkObject(cdkObject), DeviceProperty { + ) : CdkObject(cdkObject), + DeviceProperty { /** * The Amazon Resource Name (ARN) of the device certificate for the device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionProps.kt index cf03697801..dcf6bafe93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionProps.kt @@ -245,7 +245,8 @@ public interface CfnDeviceDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinitionProps, - ) : CdkObject(cdkObject), CfnDeviceDefinitionProps { + ) : CdkObject(cdkObject), + CfnDeviceDefinitionProps { /** * The device definition version to include when the device definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersion.kt index b5902d53f0..c2ea3dbd9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersion.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeviceDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -397,7 +398,8 @@ public open class CfnDeviceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinitionVersion.DeviceProperty, - ) : CdkObject(cdkObject), DeviceProperty { + ) : CdkObject(cdkObject), + DeviceProperty { /** * The ARN of the device certificate for the device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersionProps.kt index 929e7fed25..c36560bf41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnDeviceDefinitionVersionProps.kt @@ -117,7 +117,8 @@ public interface CfnDeviceDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnDeviceDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnDeviceDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnDeviceDefinitionVersionProps { /** * The ID of the device definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinition.kt index af586b8378..53554ea13a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinition.kt @@ -103,7 +103,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunctionDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -541,7 +543,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.DefaultConfigProperty, - ) : CdkObject(cdkObject), DefaultConfigProperty { + ) : CdkObject(cdkObject), + DefaultConfigProperty { /** * Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core. * @@ -814,7 +817,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.EnvironmentProperty, - ) : CdkObject(cdkObject), EnvironmentProperty { + ) : CdkObject(cdkObject), + EnvironmentProperty { /** * Indicates whether the function is allowed to access the `/sys` directory on the core * device, which allows the read device information from `/sys` . @@ -1180,7 +1184,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ExecutionProperty, - ) : CdkObject(cdkObject), ExecutionProperty { + ) : CdkObject(cdkObject), + ExecutionProperty { /** * The containerization that the Lambda function runs in. * @@ -1524,7 +1529,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionConfigurationProperty, - ) : CdkObject(cdkObject), FunctionConfigurationProperty { + ) : CdkObject(cdkObject), + FunctionConfigurationProperty { /** * The expected encoding type of the input payload for the function. * @@ -1792,7 +1798,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionDefinitionVersionProperty, - ) : CdkObject(cdkObject), FunctionDefinitionVersionProperty { + ) : CdkObject(cdkObject), + FunctionDefinitionVersionProperty { /** * The default configuration that applies to all Lambda functions in the group. * @@ -2004,7 +2011,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionProperty, - ) : CdkObject(cdkObject), FunctionProperty { + ) : CdkObject(cdkObject), + FunctionProperty { /** * The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced * Lambda function. @@ -2149,7 +2157,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty, - ) : CdkObject(cdkObject), ResourceAccessPolicyProperty { + ) : CdkObject(cdkObject), + ResourceAccessPolicyProperty { /** * The read-only or read-write access that the Lambda function has to the resource. * @@ -2286,7 +2295,8 @@ public open class CfnFunctionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.RunAsProperty, - ) : CdkObject(cdkObject), RunAsProperty { + ) : CdkObject(cdkObject), + RunAsProperty { /** * The group ID whose permissions are used to run the Lambda function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionProps.kt index ea4dde087e..699b68539f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionProps.kt @@ -285,7 +285,8 @@ public interface CfnFunctionDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionProps, - ) : CdkObject(cdkObject), CfnFunctionDefinitionProps { + ) : CdkObject(cdkObject), + CfnFunctionDefinitionProps { /** * The function definition version to include when the function definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersion.kt index 251d9fe606..ce05b64624 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersion.kt @@ -92,7 +92,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunctionDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -478,7 +479,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.DefaultConfigProperty, - ) : CdkObject(cdkObject), DefaultConfigProperty { + ) : CdkObject(cdkObject), + DefaultConfigProperty { /** * Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core. * @@ -751,7 +753,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.EnvironmentProperty, - ) : CdkObject(cdkObject), EnvironmentProperty { + ) : CdkObject(cdkObject), + EnvironmentProperty { /** * Indicates whether the function is allowed to access the `/sys` directory on the core * device, which allows the read device information from `/sys` . @@ -1117,7 +1120,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.ExecutionProperty, - ) : CdkObject(cdkObject), ExecutionProperty { + ) : CdkObject(cdkObject), + ExecutionProperty { /** * The containerization that the Lambda function runs in. * @@ -1461,7 +1465,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.FunctionConfigurationProperty, - ) : CdkObject(cdkObject), FunctionConfigurationProperty { + ) : CdkObject(cdkObject), + FunctionConfigurationProperty { /** * The expected encoding type of the input payload for the function. * @@ -1716,7 +1721,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.FunctionProperty, - ) : CdkObject(cdkObject), FunctionProperty { + ) : CdkObject(cdkObject), + FunctionProperty { /** * The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced * Lambda function. @@ -1861,7 +1867,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty, - ) : CdkObject(cdkObject), ResourceAccessPolicyProperty { + ) : CdkObject(cdkObject), + ResourceAccessPolicyProperty { /** * The read-only or read-write access that the Lambda function has to the resource. * @@ -1999,7 +2006,8 @@ public open class CfnFunctionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.RunAsProperty, - ) : CdkObject(cdkObject), RunAsProperty { + ) : CdkObject(cdkObject), + RunAsProperty { /** * The group ID whose permissions are used to run the Lambda function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersionProps.kt index ed2daee24d..90a607d5cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnFunctionDefinitionVersionProps.kt @@ -212,7 +212,8 @@ public interface CfnFunctionDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnFunctionDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnFunctionDefinitionVersionProps { /** * The default configuration that applies to all Lambda functions in the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroup.kt index 457df202cb..91e36ac8f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroup.kt @@ -95,7 +95,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.greengrass.CfnGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -681,7 +683,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnGroup.GroupVersionProperty, - ) : CdkObject(cdkObject), GroupVersionProperty { + ) : CdkObject(cdkObject), + GroupVersionProperty { /** * The Amazon Resource Name (ARN) of the connector definition version that contains the * connectors you want to deploy with the group version. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupProps.kt index 7d166a4f53..bb04df86c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupProps.kt @@ -269,7 +269,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * The group version to include when the group is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersion.kt index 5e214fb99e..3dd5ae42e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersion.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroupVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnGroupVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersionProps.kt index f2d7b2ab46..88456650a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnGroupVersionProps.kt @@ -234,7 +234,8 @@ public interface CfnGroupVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnGroupVersionProps, - ) : CdkObject(cdkObject), CfnGroupVersionProps { + ) : CdkObject(cdkObject), + CfnGroupVersionProps { /** * The Amazon Resource Name (ARN) of the connector definition version that contains the * connectors you want to deploy with the group version. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinition.kt index c452b4c1f0..cb5b6f9fba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinition.kt @@ -71,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoggerDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -500,7 +502,8 @@ public open class CfnLoggerDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinition.LoggerDefinitionVersionProperty, - ) : CdkObject(cdkObject), LoggerDefinitionVersionProperty { + ) : CdkObject(cdkObject), + LoggerDefinitionVersionProperty { /** * The loggers in this version. * @@ -712,7 +715,8 @@ public open class CfnLoggerDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinition.LoggerProperty, - ) : CdkObject(cdkObject), LoggerProperty { + ) : CdkObject(cdkObject), + LoggerProperty { /** * The source of the log event. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionProps.kt index 1ec0bd3941..a403ede127 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionProps.kt @@ -246,7 +246,8 @@ public interface CfnLoggerDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinitionProps, - ) : CdkObject(cdkObject), CfnLoggerDefinitionProps { + ) : CdkObject(cdkObject), + CfnLoggerDefinitionProps { /** * The logger definition version to include when the logger definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersion.kt index 8648c9b3c0..48631bb5c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersion.kt @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoggerDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -427,7 +428,8 @@ public open class CfnLoggerDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinitionVersion.LoggerProperty, - ) : CdkObject(cdkObject), LoggerProperty { + ) : CdkObject(cdkObject), + LoggerProperty { /** * The source of the log event. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersionProps.kt index 466ba01ee4..cf0cc0d92f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnLoggerDefinitionVersionProps.kt @@ -118,7 +118,8 @@ public interface CfnLoggerDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnLoggerDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnLoggerDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnLoggerDefinitionVersionProps { /** * The ID of the logger definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinition.kt index f0217a833a..86eb2ad480 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinition.kt @@ -111,7 +111,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -563,7 +565,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.GroupOwnerSettingProperty, - ) : CdkObject(cdkObject), GroupOwnerSettingProperty { + ) : CdkObject(cdkObject), + GroupOwnerSettingProperty { /** * Indicates whether to give the privileges of the Linux group that owns the resource to the * Lambda process. @@ -733,7 +736,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.LocalDeviceResourceDataProperty, - ) : CdkObject(cdkObject), LocalDeviceResourceDataProperty { + ) : CdkObject(cdkObject), + LocalDeviceResourceDataProperty { /** * Settings that define additional Linux OS group permissions to give to the Lambda function * process. @@ -920,7 +924,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.LocalVolumeResourceDataProperty, - ) : CdkObject(cdkObject), LocalVolumeResourceDataProperty { + ) : CdkObject(cdkObject), + LocalVolumeResourceDataProperty { /** * The absolute local path of the resource in the Lambda environment. * @@ -1324,7 +1329,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDataContainerProperty, - ) : CdkObject(cdkObject), ResourceDataContainerProperty { + ) : CdkObject(cdkObject), + ResourceDataContainerProperty { /** * Settings for a local device resource. * @@ -1520,7 +1526,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty, - ) : CdkObject(cdkObject), ResourceDefinitionVersionProperty { + ) : CdkObject(cdkObject), + ResourceDefinitionVersionProperty { /** * The resources in this version. * @@ -1648,7 +1655,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDownloadOwnerSettingProperty, - ) : CdkObject(cdkObject), ResourceDownloadOwnerSettingProperty { + ) : CdkObject(cdkObject), + ResourceDownloadOwnerSettingProperty { /** * The group owner of the machine learning resource. * @@ -1934,7 +1942,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceInstanceProperty, - ) : CdkObject(cdkObject), ResourceInstanceProperty { + ) : CdkObject(cdkObject), + ResourceInstanceProperty { /** * A descriptive or arbitrary ID for the resource. * @@ -2154,7 +2163,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.S3MachineLearningModelResourceDataProperty, - ) : CdkObject(cdkObject), S3MachineLearningModelResourceDataProperty { + ) : CdkObject(cdkObject), + S3MachineLearningModelResourceDataProperty { /** * The absolute local path of the resource inside the Lambda environment. * @@ -2367,7 +2377,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.SageMakerMachineLearningModelResourceDataProperty, - ) : CdkObject(cdkObject), SageMakerMachineLearningModelResourceDataProperty { + ) : CdkObject(cdkObject), + SageMakerMachineLearningModelResourceDataProperty { /** * The absolute local path of the resource inside the Lambda environment. * @@ -2529,7 +2540,8 @@ public open class CfnResourceDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinition.SecretsManagerSecretResourceDataProperty, - ) : CdkObject(cdkObject), SecretsManagerSecretResourceDataProperty { + ) : CdkObject(cdkObject), + SecretsManagerSecretResourceDataProperty { /** * The staging labels whose values you want to make available on the core, in addition to * `AWSCURRENT` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionProps.kt index 5e3c268229..f6830e93ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionProps.kt @@ -294,7 +294,8 @@ public interface CfnResourceDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionProps, - ) : CdkObject(cdkObject), CfnResourceDefinitionProps { + ) : CdkObject(cdkObject), + CfnResourceDefinitionProps { /** * The resource definition version to include when the resource definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersion.kt index fb772b9201..5777cffdd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersion.kt @@ -101,7 +101,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -399,7 +400,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.GroupOwnerSettingProperty, - ) : CdkObject(cdkObject), GroupOwnerSettingProperty { + ) : CdkObject(cdkObject), + GroupOwnerSettingProperty { /** * Indicates whether to give the privileges of the Linux group that owns the resource to the * Lambda process. @@ -569,7 +571,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.LocalDeviceResourceDataProperty, - ) : CdkObject(cdkObject), LocalDeviceResourceDataProperty { + ) : CdkObject(cdkObject), + LocalDeviceResourceDataProperty { /** * Settings that define additional Linux OS group permissions to give to the Lambda function * process. @@ -756,7 +759,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty, - ) : CdkObject(cdkObject), LocalVolumeResourceDataProperty { + ) : CdkObject(cdkObject), + LocalVolumeResourceDataProperty { /** * The absolute local path of the resource in the Lambda environment. * @@ -1160,7 +1164,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.ResourceDataContainerProperty, - ) : CdkObject(cdkObject), ResourceDataContainerProperty { + ) : CdkObject(cdkObject), + ResourceDataContainerProperty { /** * Settings for a local device resource. * @@ -1318,7 +1323,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty, - ) : CdkObject(cdkObject), ResourceDownloadOwnerSettingProperty { + ) : CdkObject(cdkObject), + ResourceDownloadOwnerSettingProperty { /** * The group owner of the machine learning resource. * @@ -1604,7 +1610,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.ResourceInstanceProperty, - ) : CdkObject(cdkObject), ResourceInstanceProperty { + ) : CdkObject(cdkObject), + ResourceInstanceProperty { /** * A descriptive or arbitrary ID for the resource. * @@ -1824,7 +1831,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty, - ) : CdkObject(cdkObject), S3MachineLearningModelResourceDataProperty { + ) : CdkObject(cdkObject), + S3MachineLearningModelResourceDataProperty { /** * The absolute local path of the resource inside the Lambda environment. * @@ -2037,7 +2045,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty, - ) : CdkObject(cdkObject), SageMakerMachineLearningModelResourceDataProperty { + ) : CdkObject(cdkObject), + SageMakerMachineLearningModelResourceDataProperty { /** * The absolute local path of the resource inside the Lambda environment. * @@ -2199,7 +2208,8 @@ public open class CfnResourceDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty, - ) : CdkObject(cdkObject), SecretsManagerSecretResourceDataProperty { + ) : CdkObject(cdkObject), + SecretsManagerSecretResourceDataProperty { /** * The staging labels whose values you want to make available on the core, in addition to * `AWSCURRENT` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersionProps.kt index ed1c7bac23..bebc4a8b1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnResourceDefinitionVersionProps.kt @@ -158,7 +158,8 @@ public interface CfnResourceDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnResourceDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnResourceDefinitionVersionProps { /** * The ID of the resource definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinition.kt index 0d40dbcdd3..32b904349e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinition.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscriptionDefinition( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -507,7 +509,8 @@ public open class CfnSubscriptionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinition.SubscriptionDefinitionVersionProperty, - ) : CdkObject(cdkObject), SubscriptionDefinitionVersionProperty { + ) : CdkObject(cdkObject), + SubscriptionDefinitionVersionProperty { /** * The subscriptions in this version. * @@ -681,7 +684,8 @@ public open class CfnSubscriptionDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinition.SubscriptionProperty, - ) : CdkObject(cdkObject), SubscriptionProperty { + ) : CdkObject(cdkObject), + SubscriptionProperty { /** * A descriptive or arbitrary ID for the subscription. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionProps.kt index eb930415f8..7bab252ef4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionProps.kt @@ -254,7 +254,8 @@ public interface CfnSubscriptionDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionProps, - ) : CdkObject(cdkObject), CfnSubscriptionDefinitionProps { + ) : CdkObject(cdkObject), + CfnSubscriptionDefinitionProps { /** * The subscription definition version to include when the subscription definition is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersion.kt index 8786c4236a..6f5a5361de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersion.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscriptionDefinitionVersion( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -390,7 +391,8 @@ public open class CfnSubscriptionDefinitionVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionVersion.SubscriptionProperty, - ) : CdkObject(cdkObject), SubscriptionProperty { + ) : CdkObject(cdkObject), + SubscriptionProperty { /** * A descriptive or arbitrary ID for the subscription. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersionProps.kt index c1e27ff551..e5e94245df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrass/CfnSubscriptionDefinitionVersionProps.kt @@ -120,7 +120,8 @@ public interface CfnSubscriptionDefinitionVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrass.CfnSubscriptionDefinitionVersionProps, - ) : CdkObject(cdkObject), CfnSubscriptionDefinitionVersionProps { + ) : CdkObject(cdkObject), + CfnSubscriptionDefinitionVersionProps { /** * The ID of the subscription definition associated with this version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersion.kt index c43348a34a..f716bdf068 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersion.kt @@ -121,7 +121,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnComponentVersion( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.greengrassv2.CfnComponentVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -501,7 +503,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.ComponentDependencyRequirementProperty, - ) : CdkObject(cdkObject), ComponentDependencyRequirementProperty { + ) : CdkObject(cdkObject), + ComponentDependencyRequirementProperty { /** * The type of this dependency. Choose from the following options:. * @@ -665,7 +668,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.ComponentPlatformProperty, - ) : CdkObject(cdkObject), ComponentPlatformProperty { + ) : CdkObject(cdkObject), + ComponentPlatformProperty { /** * A dictionary of attributes for the platform. * @@ -904,7 +908,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaContainerParamsProperty, - ) : CdkObject(cdkObject), LambdaContainerParamsProperty { + ) : CdkObject(cdkObject), + LambdaContainerParamsProperty { /** * The list of system devices that the container can access. * @@ -1079,7 +1084,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaDeviceMountProperty, - ) : CdkObject(cdkObject), LambdaDeviceMountProperty { + ) : CdkObject(cdkObject), + LambdaDeviceMountProperty { /** * Whether or not to add the component's system user as an owner of the device. * @@ -1215,7 +1221,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaEventSourceProperty, - ) : CdkObject(cdkObject), LambdaEventSourceProperty { + ) : CdkObject(cdkObject), + LambdaEventSourceProperty { /** * The topic to which to subscribe to receive event messages. * @@ -1707,7 +1714,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaExecutionParametersProperty, - ) : CdkObject(cdkObject), LambdaExecutionParametersProperty { + ) : CdkObject(cdkObject), + LambdaExecutionParametersProperty { /** * The map of environment variables that are available to the Lambda function when it runs. * @@ -2116,7 +2124,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty, - ) : CdkObject(cdkObject), LambdaFunctionRecipeSourceProperty { + ) : CdkObject(cdkObject), + LambdaFunctionRecipeSourceProperty { /** * The component versions on which this Lambda function component depends. * @@ -2319,7 +2328,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaLinuxProcessParamsProperty, - ) : CdkObject(cdkObject), LambdaLinuxProcessParamsProperty { + ) : CdkObject(cdkObject), + LambdaLinuxProcessParamsProperty { /** * The parameters for the container in which the Lambda function runs. * @@ -2504,7 +2514,8 @@ public open class CfnComponentVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaVolumeMountProperty, - ) : CdkObject(cdkObject), LambdaVolumeMountProperty { + ) : CdkObject(cdkObject), + LambdaVolumeMountProperty { /** * Whether or not to add the AWS IoT Greengrass user group as an owner of the volume. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersionProps.kt index 59d054a7f6..c6e12bc0b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnComponentVersionProps.kt @@ -246,7 +246,8 @@ public interface CfnComponentVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnComponentVersionProps, - ) : CdkObject(cdkObject), CfnComponentVersionProps { + ) : CdkObject(cdkObject), + CfnComponentVersionProps { /** * The recipe to use to create the component. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeployment.kt index 8c53d59698..d888644117 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeployment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeployment.kt @@ -121,7 +121,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeployment( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -775,7 +777,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.ComponentConfigurationUpdateProperty, - ) : CdkObject(cdkObject), ComponentConfigurationUpdateProperty { + ) : CdkObject(cdkObject), + ComponentConfigurationUpdateProperty { /** * A serialized JSON string that contains the configuration object to merge to target devices. * @@ -1074,7 +1077,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.ComponentDeploymentSpecificationProperty, - ) : CdkObject(cdkObject), ComponentDeploymentSpecificationProperty { + ) : CdkObject(cdkObject), + ComponentDeploymentSpecificationProperty { /** * The version of the component. * @@ -1353,7 +1357,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.ComponentRunWithProperty, - ) : CdkObject(cdkObject), ComponentRunWithProperty { + ) : CdkObject(cdkObject), + ComponentRunWithProperty { /** * The POSIX system user and (optional) group to use to run this component. * @@ -1558,7 +1563,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentComponentUpdatePolicyProperty, - ) : CdkObject(cdkObject), DeploymentComponentUpdatePolicyProperty { + ) : CdkObject(cdkObject), + DeploymentComponentUpdatePolicyProperty { /** * Whether or not to notify components and wait for components to become safe to update. * @@ -1692,7 +1698,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentConfigurationValidationPolicyProperty, - ) : CdkObject(cdkObject), DeploymentConfigurationValidationPolicyProperty { + ) : CdkObject(cdkObject), + DeploymentConfigurationValidationPolicyProperty { /** * The amount of time in seconds that a component can validate its configuration updates. * @@ -1954,7 +1961,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentIoTJobConfigurationProperty, - ) : CdkObject(cdkObject), DeploymentIoTJobConfigurationProperty { + ) : CdkObject(cdkObject), + DeploymentIoTJobConfigurationProperty { /** * The stop configuration for the job. * @@ -2198,7 +2206,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.DeploymentPoliciesProperty, - ) : CdkObject(cdkObject), DeploymentPoliciesProperty { + ) : CdkObject(cdkObject), + DeploymentPoliciesProperty { /** * The component update policy for the configuration deployment. * @@ -2336,7 +2345,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.IoTJobAbortConfigProperty, - ) : CdkObject(cdkObject), IoTJobAbortConfigProperty { + ) : CdkObject(cdkObject), + IoTJobAbortConfigProperty { /** * The list of criteria that define when and how to cancel the configuration deployment. * @@ -2494,7 +2504,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.IoTJobAbortCriteriaProperty, - ) : CdkObject(cdkObject), IoTJobAbortCriteriaProperty { + ) : CdkObject(cdkObject), + IoTJobAbortCriteriaProperty { /** * The action to perform when the criteria are met. * @@ -2660,7 +2671,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.IoTJobExecutionsRolloutConfigProperty, - ) : CdkObject(cdkObject), IoTJobExecutionsRolloutConfigProperty { + ) : CdkObject(cdkObject), + IoTJobExecutionsRolloutConfigProperty { /** * The exponential rate to increase the job rollout rate. * @@ -2806,7 +2818,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.IoTJobExponentialRolloutRateProperty, - ) : CdkObject(cdkObject), IoTJobExponentialRolloutRateProperty { + ) : CdkObject(cdkObject), + IoTJobExponentialRolloutRateProperty { /** * The minimum number of devices that receive a pending job notification, per minute, when the * job starts. @@ -2926,7 +2939,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.IoTJobTimeoutConfigProperty, - ) : CdkObject(cdkObject), IoTJobTimeoutConfigProperty { + ) : CdkObject(cdkObject), + IoTJobTimeoutConfigProperty { /** * The amount of time, in minutes, that devices have to complete the job. * @@ -3071,7 +3085,8 @@ public open class CfnDeployment( private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeployment.SystemResourceLimitsProperty, - ) : CdkObject(cdkObject), SystemResourceLimitsProperty { + ) : CdkObject(cdkObject), + SystemResourceLimitsProperty { /** * The maximum amount of CPU time that a component's processes can use on the core device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeploymentProps.kt index 6fb7dfc97a..b044f7251d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/greengrassv2/CfnDeploymentProps.kt @@ -383,7 +383,8 @@ public interface CfnDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.greengrassv2.CfnDeploymentProps, - ) : CdkObject(cdkObject), CfnDeploymentProps { + ) : CdkObject(cdkObject), + CfnDeploymentProps { /** * The components to deploy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfig.kt index e1eb27f087..22e0a8128b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfig.kt @@ -112,7 +112,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfig( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -477,7 +479,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.AntennaDownlinkConfigProperty, - ) : CdkObject(cdkObject), AntennaDownlinkConfigProperty { + ) : CdkObject(cdkObject), + AntennaDownlinkConfigProperty { /** * Defines the spectrum configuration. * @@ -701,7 +704,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.AntennaDownlinkDemodDecodeConfigProperty, - ) : CdkObject(cdkObject), AntennaDownlinkDemodDecodeConfigProperty { + ) : CdkObject(cdkObject), + AntennaDownlinkDemodDecodeConfigProperty { /** * Defines how the RF signal will be decoded. * @@ -928,7 +932,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.AntennaUplinkConfigProperty, - ) : CdkObject(cdkObject), AntennaUplinkConfigProperty { + ) : CdkObject(cdkObject), + AntennaUplinkConfigProperty { /** * Defines the spectrum configuration. * @@ -1520,7 +1525,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.ConfigDataProperty, - ) : CdkObject(cdkObject), ConfigDataProperty { + ) : CdkObject(cdkObject), + ConfigDataProperty { /** * Provides information for an antenna downlink config object. * @@ -1692,7 +1698,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.DataflowEndpointConfigProperty, - ) : CdkObject(cdkObject), DataflowEndpointConfigProperty { + ) : CdkObject(cdkObject), + DataflowEndpointConfigProperty { /** * The name of the dataflow endpoint to use during contacts. * @@ -1746,6 +1753,9 @@ public open class CfnConfig( */ public interface DecodeConfigProperty { /** + * The decoding settings are in JSON format and define a set of steps to perform to decode the + * data. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-decodeconfig.html#cfn-groundstation-config-decodeconfig-unvalidatedjson) */ public fun unvalidatedJson(): String? = unwrap(this).getUnvalidatedJson() @@ -1756,7 +1766,8 @@ public open class CfnConfig( @CdkDslMarker public interface Builder { /** - * @param unvalidatedJson the value to be set. + * @param unvalidatedJson The decoding settings are in JSON format and define a set of steps + * to perform to decode the data. */ public fun unvalidatedJson(unvalidatedJson: String) } @@ -1767,7 +1778,8 @@ public open class CfnConfig( software.amazon.awscdk.services.groundstation.CfnConfig.DecodeConfigProperty.builder() /** - * @param unvalidatedJson the value to be set. + * @param unvalidatedJson The decoding settings are in JSON format and define a set of steps + * to perform to decode the data. */ override fun unvalidatedJson(unvalidatedJson: String) { cdkBuilder.unvalidatedJson(unvalidatedJson) @@ -1780,8 +1792,12 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.DecodeConfigProperty, - ) : CdkObject(cdkObject), DecodeConfigProperty { + ) : CdkObject(cdkObject), + DecodeConfigProperty { /** + * The decoding settings are in JSON format and define a set of steps to perform to decode the + * data. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-decodeconfig.html#cfn-groundstation-config-decodeconfig-unvalidatedjson) */ override fun unvalidatedJson(): String? = unwrap(this).getUnvalidatedJson() @@ -1823,6 +1839,9 @@ public open class CfnConfig( */ public interface DemodulationConfigProperty { /** + * The demodulation settings are in JSON format and define parameters for demodulation, for + * example which modulation scheme (e.g. PSK, QPSK, etc.) and matched filter to use. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-demodulationconfig.html#cfn-groundstation-config-demodulationconfig-unvalidatedjson) */ public fun unvalidatedJson(): String? = unwrap(this).getUnvalidatedJson() @@ -1833,7 +1852,9 @@ public open class CfnConfig( @CdkDslMarker public interface Builder { /** - * @param unvalidatedJson the value to be set. + * @param unvalidatedJson The demodulation settings are in JSON format and define parameters + * for demodulation, for example which modulation scheme (e.g. PSK, QPSK, etc.) and matched + * filter to use. */ public fun unvalidatedJson(unvalidatedJson: String) } @@ -1845,7 +1866,9 @@ public open class CfnConfig( software.amazon.awscdk.services.groundstation.CfnConfig.DemodulationConfigProperty.builder() /** - * @param unvalidatedJson the value to be set. + * @param unvalidatedJson The demodulation settings are in JSON format and define parameters + * for demodulation, for example which modulation scheme (e.g. PSK, QPSK, etc.) and matched + * filter to use. */ override fun unvalidatedJson(unvalidatedJson: String) { cdkBuilder.unvalidatedJson(unvalidatedJson) @@ -1858,8 +1881,12 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.DemodulationConfigProperty, - ) : CdkObject(cdkObject), DemodulationConfigProperty { + ) : CdkObject(cdkObject), + DemodulationConfigProperty { /** + * The demodulation settings are in JSON format and define parameters for demodulation, for + * example which modulation scheme (e.g. PSK, QPSK, etc.) and matched filter to use. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-demodulationconfig.html#cfn-groundstation-config-demodulationconfig-unvalidatedjson) */ override fun unvalidatedJson(): String? = unwrap(this).getUnvalidatedJson() @@ -1960,7 +1987,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.EirpProperty, - ) : CdkObject(cdkObject), EirpProperty { + ) : CdkObject(cdkObject), + EirpProperty { /** * The units of the EIRP. * @@ -2083,7 +2111,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.FrequencyBandwidthProperty, - ) : CdkObject(cdkObject), FrequencyBandwidthProperty { + ) : CdkObject(cdkObject), + FrequencyBandwidthProperty { /** * The units of the bandwidth. * @@ -2202,7 +2231,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.FrequencyProperty, - ) : CdkObject(cdkObject), FrequencyProperty { + ) : CdkObject(cdkObject), + FrequencyProperty { /** * The units of the frequency. * @@ -2357,7 +2387,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.S3RecordingConfigProperty, - ) : CdkObject(cdkObject), S3RecordingConfigProperty { + ) : CdkObject(cdkObject), + S3RecordingConfigProperty { /** * S3 Bucket where the data is written. * @@ -2612,7 +2643,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.SpectrumConfigProperty, - ) : CdkObject(cdkObject), SpectrumConfigProperty { + ) : CdkObject(cdkObject), + SpectrumConfigProperty { /** * The bandwidth of the spectrum. AWS Ground Station currently has the following bandwidth * limitations:. @@ -2732,7 +2764,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.TrackingConfigProperty, - ) : CdkObject(cdkObject), TrackingConfigProperty { + ) : CdkObject(cdkObject), + TrackingConfigProperty { /** * Specifies whether or not to use autotrack. * @@ -2853,7 +2886,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.UplinkEchoConfigProperty, - ) : CdkObject(cdkObject), UplinkEchoConfigProperty { + ) : CdkObject(cdkObject), + UplinkEchoConfigProperty { /** * Defines the ARN of the uplink config to echo back to a dataflow endpoint. * @@ -3012,7 +3046,8 @@ public open class CfnConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfig.UplinkSpectrumConfigProperty, - ) : CdkObject(cdkObject), UplinkSpectrumConfigProperty { + ) : CdkObject(cdkObject), + UplinkSpectrumConfigProperty { /** * The center frequency of the spectrum. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfigProps.kt index 7aa4df2b78..f779bb1d00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnConfigProps.kt @@ -224,7 +224,8 @@ public interface CfnConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnConfigProps, - ) : CdkObject(cdkObject), CfnConfigProps { + ) : CdkObject(cdkObject), + CfnConfigProps { /** * Object containing the parameters of a config. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroup.kt index a3cda8c53d..4d707cb6f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroup.kt @@ -90,7 +90,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataflowEndpointGroup( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -396,6 +398,8 @@ public open class CfnDataflowEndpointGroup( } /** + * Information about AwsGroundStationAgentEndpoint. + * * Example: * * ``` @@ -431,26 +435,38 @@ public open class CfnDataflowEndpointGroup( */ public interface AwsGroundStationAgentEndpointProperty { /** + * The status of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-agentstatus) */ public fun agentStatus(): String? = unwrap(this).getAgentStatus() /** + * The results of the audit. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-auditresults) */ public fun auditResults(): String? = unwrap(this).getAuditResults() /** + * The egress address of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-egressaddress) */ public fun egressAddress(): Any? = unwrap(this).getEgressAddress() /** + * The ingress address of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-ingressaddress) */ public fun ingressAddress(): Any? = unwrap(this).getIngressAddress() /** + * Name string associated with AgentEndpoint. + * + * Used as a human-readable identifier for AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-name) */ public fun name(): String? = unwrap(this).getName() @@ -461,51 +477,52 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param agentStatus the value to be set. + * @param agentStatus The status of AgentEndpoint. */ public fun agentStatus(agentStatus: String) /** - * @param auditResults the value to be set. + * @param auditResults The results of the audit. */ public fun auditResults(auditResults: String) /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ public fun egressAddress(egressAddress: IResolvable) /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ public fun egressAddress(egressAddress: ConnectionDetailsProperty) /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("336c132b0d25f767d1059a3ea84a3fa7d3b066d284d3f891e76cf01c17b8e8b2") public fun egressAddress(egressAddress: ConnectionDetailsProperty.Builder.() -> Unit) /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ public fun ingressAddress(ingressAddress: IResolvable) /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ public fun ingressAddress(ingressAddress: RangedConnectionDetailsProperty) /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c53ea6ce13e333e8f4174ace094dcbce169eb410e806083728676510b763997") public fun ingressAddress(ingressAddress: RangedConnectionDetailsProperty.Builder.() -> Unit) /** - * @param name the value to be set. + * @param name Name string associated with AgentEndpoint. + * Used as a human-readable identifier for AgentEndpoint. */ public fun name(name: String) } @@ -517,35 +534,35 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.AwsGroundStationAgentEndpointProperty.builder() /** - * @param agentStatus the value to be set. + * @param agentStatus The status of AgentEndpoint. */ override fun agentStatus(agentStatus: String) { cdkBuilder.agentStatus(agentStatus) } /** - * @param auditResults the value to be set. + * @param auditResults The results of the audit. */ override fun auditResults(auditResults: String) { cdkBuilder.auditResults(auditResults) } /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ override fun egressAddress(egressAddress: IResolvable) { cdkBuilder.egressAddress(egressAddress.let(IResolvable.Companion::unwrap)) } /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ override fun egressAddress(egressAddress: ConnectionDetailsProperty) { cdkBuilder.egressAddress(egressAddress.let(ConnectionDetailsProperty.Companion::unwrap)) } /** - * @param egressAddress the value to be set. + * @param egressAddress The egress address of AgentEndpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("336c132b0d25f767d1059a3ea84a3fa7d3b066d284d3f891e76cf01c17b8e8b2") @@ -553,21 +570,21 @@ public open class CfnDataflowEndpointGroup( = egressAddress(ConnectionDetailsProperty(egressAddress)) /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ override fun ingressAddress(ingressAddress: IResolvable) { cdkBuilder.ingressAddress(ingressAddress.let(IResolvable.Companion::unwrap)) } /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ override fun ingressAddress(ingressAddress: RangedConnectionDetailsProperty) { cdkBuilder.ingressAddress(ingressAddress.let(RangedConnectionDetailsProperty.Companion::unwrap)) } /** - * @param ingressAddress the value to be set. + * @param ingressAddress The ingress address of AgentEndpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c53ea6ce13e333e8f4174ace094dcbce169eb410e806083728676510b763997") @@ -576,7 +593,8 @@ public open class CfnDataflowEndpointGroup( Unit = ingressAddress(RangedConnectionDetailsProperty(ingressAddress)) /** - * @param name the value to be set. + * @param name Name string associated with AgentEndpoint. + * Used as a human-readable identifier for AgentEndpoint. */ override fun name(name: String) { cdkBuilder.name(name) @@ -589,28 +607,41 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.AwsGroundStationAgentEndpointProperty, - ) : CdkObject(cdkObject), AwsGroundStationAgentEndpointProperty { + ) : CdkObject(cdkObject), + AwsGroundStationAgentEndpointProperty { /** + * The status of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-agentstatus) */ override fun agentStatus(): String? = unwrap(this).getAgentStatus() /** + * The results of the audit. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-auditresults) */ override fun auditResults(): String? = unwrap(this).getAuditResults() /** + * The egress address of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-egressaddress) */ override fun egressAddress(): Any? = unwrap(this).getEgressAddress() /** + * The ingress address of AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-ingressaddress) */ override fun ingressAddress(): Any? = unwrap(this).getIngressAddress() /** + * Name string associated with AgentEndpoint. + * + * Used as a human-readable identifier for AgentEndpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-name) */ override fun name(): String? = unwrap(this).getName() @@ -636,6 +667,8 @@ public open class CfnDataflowEndpointGroup( } /** + * Egress address of AgentEndpoint with an optional mtu. + * * Example: * * ``` @@ -655,11 +688,15 @@ public open class CfnDataflowEndpointGroup( */ public interface ConnectionDetailsProperty { /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-connectiondetails.html#cfn-groundstation-dataflowendpointgroup-connectiondetails-mtu) */ public fun mtu(): Number? = unwrap(this).getMtu() /** + * A socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-connectiondetails.html#cfn-groundstation-dataflowendpointgroup-connectiondetails-socketaddress) */ public fun socketAddress(): Any? = unwrap(this).getSocketAddress() @@ -670,22 +707,22 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. */ public fun mtu(mtu: Number) /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ public fun socketAddress(socketAddress: IResolvable) /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ public fun socketAddress(socketAddress: SocketAddressProperty) /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("81ed04a1adb8c8052f056c410ed46e12541ca7ba459450fe5089a62403e919be") @@ -699,28 +736,28 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.ConnectionDetailsProperty.builder() /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. */ override fun mtu(mtu: Number) { cdkBuilder.mtu(mtu) } /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ override fun socketAddress(socketAddress: IResolvable) { cdkBuilder.socketAddress(socketAddress.let(IResolvable.Companion::unwrap)) } /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ override fun socketAddress(socketAddress: SocketAddressProperty) { cdkBuilder.socketAddress(socketAddress.let(SocketAddressProperty.Companion::unwrap)) } /** - * @param socketAddress the value to be set. + * @param socketAddress A socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("81ed04a1adb8c8052f056c410ed46e12541ca7ba459450fe5089a62403e919be") @@ -734,13 +771,18 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.ConnectionDetailsProperty, - ) : CdkObject(cdkObject), ConnectionDetailsProperty { + ) : CdkObject(cdkObject), + ConnectionDetailsProperty { /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-connectiondetails.html#cfn-groundstation-dataflowendpointgroup-connectiondetails-mtu) */ override fun mtu(): Number? = unwrap(this).getMtu() /** + * A socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-connectiondetails.html#cfn-groundstation-dataflowendpointgroup-connectiondetails-socketaddress) */ override fun socketAddress(): Any? = unwrap(this).getSocketAddress() @@ -794,6 +836,10 @@ public open class CfnDataflowEndpointGroup( public fun address(): Any? = unwrap(this).getAddress() /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * + * Valid values are between 1400 and 1500. A default value of 1500 is used if not set. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-dataflowendpoint.html#cfn-groundstation-dataflowendpointgroup-dataflowendpoint-mtu) */ public fun mtu(): Number? = unwrap(this).getMtu() @@ -833,7 +879,8 @@ public open class CfnDataflowEndpointGroup( public fun address(address: SocketAddressProperty.Builder.() -> Unit) /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * Valid values are between 1400 and 1500. A default value of 1500 is used if not set. */ public fun mtu(mtu: Number) @@ -876,7 +923,8 @@ public open class CfnDataflowEndpointGroup( address(SocketAddressProperty(address)) /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * Valid values are between 1400 and 1500. A default value of 1500 is used if not set. */ override fun mtu(mtu: Number) { cdkBuilder.mtu(mtu) @@ -900,7 +948,8 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.DataflowEndpointProperty, - ) : CdkObject(cdkObject), DataflowEndpointProperty { + ) : CdkObject(cdkObject), + DataflowEndpointProperty { /** * The address and port of an endpoint. * @@ -909,6 +958,10 @@ public open class CfnDataflowEndpointGroup( override fun address(): Any? = unwrap(this).getAddress() /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * + * Valid values are between 1400 and 1500. A default value of 1500 is used if not set. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-dataflowendpoint.html#cfn-groundstation-dataflowendpointgroup-dataflowendpoint-mtu) */ override fun mtu(): Number? = unwrap(this).getMtu() @@ -996,6 +1049,8 @@ public open class CfnDataflowEndpointGroup( */ public interface EndpointDetailsProperty { /** + * An agent endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-endpointdetails.html#cfn-groundstation-dataflowendpointgroup-endpointdetails-awsgroundstationagentendpoint) */ public fun awsGroundStationAgentEndpoint(): Any? = @@ -1021,18 +1076,18 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ public fun awsGroundStationAgentEndpoint(awsGroundStationAgentEndpoint: IResolvable) /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ public fun awsGroundStationAgentEndpoint(awsGroundStationAgentEndpoint: AwsGroundStationAgentEndpointProperty) /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("edf47fab2f161f83d66b318160a181035ca11528d076564dc62e03d0642fe3c7") @@ -1081,14 +1136,14 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.EndpointDetailsProperty.builder() /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ override fun awsGroundStationAgentEndpoint(awsGroundStationAgentEndpoint: IResolvable) { cdkBuilder.awsGroundStationAgentEndpoint(awsGroundStationAgentEndpoint.let(IResolvable.Companion::unwrap)) } /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ override fun awsGroundStationAgentEndpoint(awsGroundStationAgentEndpoint: AwsGroundStationAgentEndpointProperty) { @@ -1096,7 +1151,7 @@ public open class CfnDataflowEndpointGroup( } /** - * @param awsGroundStationAgentEndpoint the value to be set. + * @param awsGroundStationAgentEndpoint An agent endpoint. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("edf47fab2f161f83d66b318160a181035ca11528d076564dc62e03d0642fe3c7") @@ -1156,8 +1211,11 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.EndpointDetailsProperty, - ) : CdkObject(cdkObject), EndpointDetailsProperty { + ) : CdkObject(cdkObject), + EndpointDetailsProperty { /** + * An agent endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-endpointdetails.html#cfn-groundstation-dataflowendpointgroup-endpointdetails-awsgroundstationagentendpoint) */ override fun awsGroundStationAgentEndpoint(): Any? = @@ -1197,6 +1255,8 @@ public open class CfnDataflowEndpointGroup( } /** + * An integer range that has a minimum and maximum value. + * * Example: * * ``` @@ -1213,11 +1273,15 @@ public open class CfnDataflowEndpointGroup( */ public interface IntegerRangeProperty { /** + * A maximum value. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-integerrange.html#cfn-groundstation-dataflowendpointgroup-integerrange-maximum) */ public fun maximum(): Number? = unwrap(this).getMaximum() /** + * A minimum value. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-integerrange.html#cfn-groundstation-dataflowendpointgroup-integerrange-minimum) */ public fun minimum(): Number? = unwrap(this).getMinimum() @@ -1228,12 +1292,12 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param maximum the value to be set. + * @param maximum A maximum value. */ public fun maximum(maximum: Number) /** - * @param minimum the value to be set. + * @param minimum A minimum value. */ public fun minimum(minimum: Number) } @@ -1245,14 +1309,14 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.IntegerRangeProperty.builder() /** - * @param maximum the value to be set. + * @param maximum A maximum value. */ override fun maximum(maximum: Number) { cdkBuilder.maximum(maximum) } /** - * @param minimum the value to be set. + * @param minimum A minimum value. */ override fun minimum(minimum: Number) { cdkBuilder.minimum(minimum) @@ -1265,13 +1329,18 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.IntegerRangeProperty, - ) : CdkObject(cdkObject), IntegerRangeProperty { + ) : CdkObject(cdkObject), + IntegerRangeProperty { /** + * A maximum value. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-integerrange.html#cfn-groundstation-dataflowendpointgroup-integerrange-maximum) */ override fun maximum(): Number? = unwrap(this).getMaximum() /** + * A minimum value. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-integerrange.html#cfn-groundstation-dataflowendpointgroup-integerrange-minimum) */ override fun minimum(): Number? = unwrap(this).getMinimum() @@ -1296,6 +1365,8 @@ public open class CfnDataflowEndpointGroup( } /** + * Ingress address of AgentEndpoint with a port range and an optional mtu. + * * Example: * * ``` @@ -1319,11 +1390,15 @@ public open class CfnDataflowEndpointGroup( */ public interface RangedConnectionDetailsProperty { /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedconnectiondetails.html#cfn-groundstation-dataflowendpointgroup-rangedconnectiondetails-mtu) */ public fun mtu(): Number? = unwrap(this).getMtu() /** + * A ranged socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedconnectiondetails.html#cfn-groundstation-dataflowendpointgroup-rangedconnectiondetails-socketaddress) */ public fun socketAddress(): Any? = unwrap(this).getSocketAddress() @@ -1334,22 +1409,22 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. */ public fun mtu(mtu: Number) /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ public fun socketAddress(socketAddress: IResolvable) /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ public fun socketAddress(socketAddress: RangedSocketAddressProperty) /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3fac8a1455459461b9b6773852bcd890d1366152e576998fba98b1cdb23f6e8a") @@ -1363,28 +1438,28 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.RangedConnectionDetailsProperty.builder() /** - * @param mtu the value to be set. + * @param mtu Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. */ override fun mtu(mtu: Number) { cdkBuilder.mtu(mtu) } /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ override fun socketAddress(socketAddress: IResolvable) { cdkBuilder.socketAddress(socketAddress.let(IResolvable.Companion::unwrap)) } /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ override fun socketAddress(socketAddress: RangedSocketAddressProperty) { cdkBuilder.socketAddress(socketAddress.let(RangedSocketAddressProperty.Companion::unwrap)) } /** - * @param socketAddress the value to be set. + * @param socketAddress A ranged socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3fac8a1455459461b9b6773852bcd890d1366152e576998fba98b1cdb23f6e8a") @@ -1398,13 +1473,18 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.RangedConnectionDetailsProperty, - ) : CdkObject(cdkObject), RangedConnectionDetailsProperty { + ) : CdkObject(cdkObject), + RangedConnectionDetailsProperty { /** + * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedconnectiondetails.html#cfn-groundstation-dataflowendpointgroup-rangedconnectiondetails-mtu) */ override fun mtu(): Number? = unwrap(this).getMtu() /** + * A ranged socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedconnectiondetails.html#cfn-groundstation-dataflowendpointgroup-rangedconnectiondetails-socketaddress) */ override fun socketAddress(): Any? = unwrap(this).getSocketAddress() @@ -1429,6 +1509,8 @@ public open class CfnDataflowEndpointGroup( } /** + * A socket address with a port range. + * * Example: * * ``` @@ -1448,11 +1530,15 @@ public open class CfnDataflowEndpointGroup( */ public interface RangedSocketAddressProperty { /** + * IPv4 socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedsocketaddress.html#cfn-groundstation-dataflowendpointgroup-rangedsocketaddress-name) */ public fun name(): String? = unwrap(this).getName() /** + * Port range of a socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedsocketaddress.html#cfn-groundstation-dataflowendpointgroup-rangedsocketaddress-portrange) */ public fun portRange(): Any? = unwrap(this).getPortRange() @@ -1463,22 +1549,22 @@ public open class CfnDataflowEndpointGroup( @CdkDslMarker public interface Builder { /** - * @param name the value to be set. + * @param name IPv4 socket address. */ public fun name(name: String) /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ public fun portRange(portRange: IResolvable) /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ public fun portRange(portRange: IntegerRangeProperty) /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cde4cf2cf5372804eb7a2b7a391279e90db97ba40d1079ce4579f149aee5dd89") @@ -1492,28 +1578,28 @@ public open class CfnDataflowEndpointGroup( software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.RangedSocketAddressProperty.builder() /** - * @param name the value to be set. + * @param name IPv4 socket address. */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ override fun portRange(portRange: IResolvable) { cdkBuilder.portRange(portRange.let(IResolvable.Companion::unwrap)) } /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ override fun portRange(portRange: IntegerRangeProperty) { cdkBuilder.portRange(portRange.let(IntegerRangeProperty.Companion::unwrap)) } /** - * @param portRange the value to be set. + * @param portRange Port range of a socket address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cde4cf2cf5372804eb7a2b7a391279e90db97ba40d1079ce4579f149aee5dd89") @@ -1527,13 +1613,18 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.RangedSocketAddressProperty, - ) : CdkObject(cdkObject), RangedSocketAddressProperty { + ) : CdkObject(cdkObject), + RangedSocketAddressProperty { /** + * IPv4 socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedsocketaddress.html#cfn-groundstation-dataflowendpointgroup-rangedsocketaddress-name) */ override fun name(): String? = unwrap(this).getName() /** + * Port range of a socket address. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-rangedsocketaddress.html#cfn-groundstation-dataflowendpointgroup-rangedsocketaddress-portrange) */ override fun portRange(): Any? = unwrap(this).getPortRange() @@ -1691,7 +1782,8 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.SecurityDetailsProperty, - ) : CdkObject(cdkObject), SecurityDetailsProperty { + ) : CdkObject(cdkObject), + SecurityDetailsProperty { /** * The ARN of a role which Ground Station has permission to assume, such as * `arn:aws:iam::1234567890:role/DataDeliveryServiceRole` . @@ -1813,7 +1905,8 @@ public open class CfnDataflowEndpointGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroup.SocketAddressProperty, - ) : CdkObject(cdkObject), SocketAddressProperty { + ) : CdkObject(cdkObject), + SocketAddressProperty { /** * The name of the endpoint, such as `Endpoint 1` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroupProps.kt index cea69e6344..ca3b1dfe55 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnDataflowEndpointGroupProps.kt @@ -227,7 +227,8 @@ public interface CfnDataflowEndpointGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnDataflowEndpointGroupProps, - ) : CdkObject(cdkObject), CfnDataflowEndpointGroupProps { + ) : CdkObject(cdkObject), + CfnDataflowEndpointGroupProps { /** * Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint * Group will be in a `POSTPASS` state. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfile.kt index 2b86607b3d..0e2b7cc593 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfile.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMissionProfile( cdkObject: software.amazon.awscdk.services.groundstation.CfnMissionProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -182,26 +184,26 @@ public open class CfnMissionProfile( } /** - * + * KMS key to use for encrypting streams. */ public open fun streamsKmsKey(): Any? = unwrap(this).getStreamsKmsKey() /** - * + * KMS key to use for encrypting streams. */ public open fun streamsKmsKey(`value`: IResolvable) { unwrap(this).setStreamsKmsKey(`value`.let(IResolvable.Companion::unwrap)) } /** - * + * KMS key to use for encrypting streams. */ public open fun streamsKmsKey(`value`: StreamsKmsKeyProperty) { unwrap(this).setStreamsKmsKey(`value`.let(StreamsKmsKeyProperty.Companion::unwrap)) } /** - * + * KMS key to use for encrypting streams. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1f3863d9084b4f2b76f507b753b13a5b0fe4dedbd1bc86cfb909b0c063605f13") @@ -209,12 +211,12 @@ public open class CfnMissionProfile( streamsKmsKey(StreamsKmsKeyProperty(`value`)) /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. */ public open fun streamsKmsRole(): String? = unwrap(this).getStreamsKmsRole() /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. */ public open fun streamsKmsRole(`value`: String) { unwrap(this).setStreamsKmsRole(`value`) @@ -332,31 +334,36 @@ public open class CfnMissionProfile( public fun name(name: String) /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ public fun streamsKmsKey(streamsKmsKey: IResolvable) /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ public fun streamsKmsKey(streamsKmsKey: StreamsKmsKeyProperty) /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a09ec7ec13e230f3f45aa7de99c440ccde072210f485be7f3c016e1744c5370") public fun streamsKmsKey(streamsKmsKey: StreamsKmsKeyProperty.Builder.() -> Unit) /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmsrole) - * @param streamsKmsRole The ARN of the KMS Key or Alias Key role used to define permissions on - * KMS Key usage. + * @param streamsKmsRole Role to use for encrypting streams with KMS key. */ public fun streamsKmsRole(streamsKmsRole: String) @@ -477,24 +484,30 @@ public open class CfnMissionProfile( } /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ override fun streamsKmsKey(streamsKmsKey: IResolvable) { cdkBuilder.streamsKmsKey(streamsKmsKey.let(IResolvable.Companion::unwrap)) } /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ override fun streamsKmsKey(streamsKmsKey: StreamsKmsKeyProperty) { cdkBuilder.streamsKmsKey(streamsKmsKey.let(StreamsKmsKeyProperty.Companion::unwrap)) } /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) - * @param streamsKmsKey + * @param streamsKmsKey KMS key to use for encrypting streams. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a09ec7ec13e230f3f45aa7de99c440ccde072210f485be7f3c016e1744c5370") @@ -502,11 +515,10 @@ public open class CfnMissionProfile( streamsKmsKey(StreamsKmsKeyProperty(streamsKmsKey)) /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmsrole) - * @param streamsKmsRole The ARN of the KMS Key or Alias Key role used to define permissions on - * KMS Key usage. + * @param streamsKmsRole Role to use for encrypting streams with KMS key. */ override fun streamsKmsRole(streamsKmsRole: String) { cdkBuilder.streamsKmsRole(streamsKmsRole) @@ -656,7 +668,8 @@ public open class CfnMissionProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnMissionProfile.DataflowEdgeProperty, - ) : CdkObject(cdkObject), DataflowEdgeProperty { + ) : CdkObject(cdkObject), + DataflowEdgeProperty { /** * The ARN of the destination for this dataflow edge. * @@ -697,6 +710,8 @@ public open class CfnMissionProfile( } /** + * KMS key info. + * * Example: * * ``` @@ -713,11 +728,15 @@ public open class CfnMissionProfile( */ public interface StreamsKmsKeyProperty { /** + * KMS Alias Arn. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmsaliasarn) */ public fun kmsAliasArn(): String? = unwrap(this).getKmsAliasArn() /** + * KMS Key Arn. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmskeyarn) */ public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() @@ -728,12 +747,12 @@ public open class CfnMissionProfile( @CdkDslMarker public interface Builder { /** - * @param kmsAliasArn the value to be set. + * @param kmsAliasArn KMS Alias Arn. */ public fun kmsAliasArn(kmsAliasArn: String) /** - * @param kmsKeyArn the value to be set. + * @param kmsKeyArn KMS Key Arn. */ public fun kmsKeyArn(kmsKeyArn: String) } @@ -745,14 +764,14 @@ public open class CfnMissionProfile( software.amazon.awscdk.services.groundstation.CfnMissionProfile.StreamsKmsKeyProperty.builder() /** - * @param kmsAliasArn the value to be set. + * @param kmsAliasArn KMS Alias Arn. */ override fun kmsAliasArn(kmsAliasArn: String) { cdkBuilder.kmsAliasArn(kmsAliasArn) } /** - * @param kmsKeyArn the value to be set. + * @param kmsKeyArn KMS Key Arn. */ override fun kmsKeyArn(kmsKeyArn: String) { cdkBuilder.kmsKeyArn(kmsKeyArn) @@ -765,13 +784,18 @@ public open class CfnMissionProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnMissionProfile.StreamsKmsKeyProperty, - ) : CdkObject(cdkObject), StreamsKmsKeyProperty { + ) : CdkObject(cdkObject), + StreamsKmsKeyProperty { /** + * KMS Alias Arn. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmsaliasarn) */ override fun kmsAliasArn(): String? = unwrap(this).getKmsAliasArn() /** + * KMS Key Arn. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmskeyarn) */ override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfileProps.kt index 9fead33883..31da080374 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/groundstation/CfnMissionProfileProps.kt @@ -93,12 +93,14 @@ public interface CfnMissionProfileProps { public fun name(): String /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) */ public fun streamsKmsKey(): Any? = unwrap(this).getStreamsKmsKey() /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmsrole) */ @@ -167,17 +169,17 @@ public interface CfnMissionProfileProps { public fun name(name: String) /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ public fun streamsKmsKey(streamsKmsKey: IResolvable) /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ public fun streamsKmsKey(streamsKmsKey: CfnMissionProfile.StreamsKmsKeyProperty) /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("117b35e3da185b448b5d987c3d2710e6ac6a0b3721dc9c7452a754f8b44e93a3") @@ -185,8 +187,7 @@ public interface CfnMissionProfileProps { fun streamsKmsKey(streamsKmsKey: CfnMissionProfile.StreamsKmsKeyProperty.Builder.() -> Unit) /** - * @param streamsKmsRole The ARN of the KMS Key or Alias Key role used to define permissions on - * KMS Key usage. + * @param streamsKmsRole Role to use for encrypting streams with KMS key. */ public fun streamsKmsRole(streamsKmsRole: String) @@ -268,21 +269,21 @@ public interface CfnMissionProfileProps { } /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ override fun streamsKmsKey(streamsKmsKey: IResolvable) { cdkBuilder.streamsKmsKey(streamsKmsKey.let(IResolvable.Companion::unwrap)) } /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ override fun streamsKmsKey(streamsKmsKey: CfnMissionProfile.StreamsKmsKeyProperty) { cdkBuilder.streamsKmsKey(streamsKmsKey.let(CfnMissionProfile.StreamsKmsKeyProperty.Companion::unwrap)) } /** - * @param streamsKmsKey the value to be set. + * @param streamsKmsKey KMS key to use for encrypting streams. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("117b35e3da185b448b5d987c3d2710e6ac6a0b3721dc9c7452a754f8b44e93a3") @@ -291,8 +292,7 @@ public interface CfnMissionProfileProps { Unit = streamsKmsKey(CfnMissionProfile.StreamsKmsKeyProperty(streamsKmsKey)) /** - * @param streamsKmsRole The ARN of the KMS Key or Alias Key role used to define permissions on - * KMS Key usage. + * @param streamsKmsRole Role to use for encrypting streams with KMS key. */ override fun streamsKmsRole(streamsKmsRole: String) { cdkBuilder.streamsKmsRole(streamsKmsRole) @@ -324,7 +324,8 @@ public interface CfnMissionProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.groundstation.CfnMissionProfileProps, - ) : CdkObject(cdkObject), CfnMissionProfileProps { + ) : CdkObject(cdkObject), + CfnMissionProfileProps { /** * Amount of time in seconds after a contact ends that you’d like to receive a Ground Station * Contact State Change indicating the pass has finished. @@ -370,12 +371,14 @@ public interface CfnMissionProfileProps { override fun name(): String = unwrap(this).getName() /** + * KMS key to use for encrypting streams. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmskey) */ override fun streamsKmsKey(): Any? = unwrap(this).getStreamsKmsKey() /** - * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. + * Role to use for encrypting streams with KMS key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-missionprofile.html#cfn-groundstation-missionprofile-streamskmsrole) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetector.kt index e2bf3946bd..8ac506a701 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetector.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDetector( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -91,7 +93,7 @@ public open class CfnDetector( ) /** - * + * The unique ID of the detector. */ public open fun attrId(): String = unwrap(this).getAttrId() @@ -675,7 +677,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNDataSourceConfigurationsProperty, - ) : CdkObject(cdkObject), CFNDataSourceConfigurationsProperty { + ) : CdkObject(cdkObject), + CFNDataSourceConfigurationsProperty { /** * Describes which Kubernetes data sources are enabled for a detector. * @@ -793,7 +796,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNFeatureAdditionalConfigurationProperty, - ) : CdkObject(cdkObject), CFNFeatureAdditionalConfigurationProperty { + ) : CdkObject(cdkObject), + CFNFeatureAdditionalConfigurationProperty { /** * Name of the additional configuration. * @@ -862,6 +866,10 @@ public open class CfnDetector( /** * Name of the feature. * + * For a list of allowed values, see + * [DetectorFeatureConfiguration](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DetectorFeatureConfiguration.html#guardduty-Type-DetectorFeatureConfiguration-name) + * in the *GuardDuty API Reference* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html#cfn-guardduty-detector-cfnfeatureconfiguration-name) */ public fun name(): String @@ -898,6 +906,9 @@ public open class CfnDetector( /** * @param name Name of the feature. + * For a list of allowed values, see + * [DetectorFeatureConfiguration](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DetectorFeatureConfiguration.html#guardduty-Type-DetectorFeatureConfiguration-name) + * in the *GuardDuty API Reference* . */ public fun name(name: String) @@ -938,6 +949,9 @@ public open class CfnDetector( /** * @param name Name of the feature. + * For a list of allowed values, see + * [DetectorFeatureConfiguration](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DetectorFeatureConfiguration.html#guardduty-Type-DetectorFeatureConfiguration-name) + * in the *GuardDuty API Reference* . */ override fun name(name: String) { cdkBuilder.name(name) @@ -957,7 +971,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNFeatureConfigurationProperty, - ) : CdkObject(cdkObject), CFNFeatureConfigurationProperty { + ) : CdkObject(cdkObject), + CFNFeatureConfigurationProperty { /** * Information about the additional configuration of a feature in your account. * @@ -968,6 +983,10 @@ public open class CfnDetector( /** * Name of the feature. * + * For a list of allowed values, see + * [DetectorFeatureConfiguration](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DetectorFeatureConfiguration.html#guardduty-Type-DetectorFeatureConfiguration-name) + * in the *GuardDuty API Reference* . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html#cfn-guardduty-detector-cfnfeatureconfiguration-name) */ override fun name(): String = unwrap(this).getName() @@ -1070,7 +1089,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNKubernetesAuditLogsConfigurationProperty, - ) : CdkObject(cdkObject), CFNKubernetesAuditLogsConfigurationProperty { + ) : CdkObject(cdkObject), + CFNKubernetesAuditLogsConfigurationProperty { /** * Describes whether Kubernetes audit logs are enabled as a data source for the detector. * @@ -1191,7 +1211,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNKubernetesConfigurationProperty, - ) : CdkObject(cdkObject), CFNKubernetesConfigurationProperty { + ) : CdkObject(cdkObject), + CFNKubernetesConfigurationProperty { /** * Describes whether Kubernetes audit logs are enabled as a data source for the detector. * @@ -1315,7 +1336,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNMalwareProtectionConfigurationProperty, - ) : CdkObject(cdkObject), CFNMalwareProtectionConfigurationProperty { + ) : CdkObject(cdkObject), + CFNMalwareProtectionConfigurationProperty { /** * Describes the configuration of Malware Protection for EC2 instances with findings. * @@ -1413,7 +1435,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNS3LogsConfigurationProperty, - ) : CdkObject(cdkObject), CFNS3LogsConfigurationProperty { + ) : CdkObject(cdkObject), + CFNS3LogsConfigurationProperty { /** * The status of S3 data event logs as a data source. * @@ -1510,7 +1533,8 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty, - ) : CdkObject(cdkObject), CFNScanEc2InstanceWithFindingsConfigurationProperty { + ) : CdkObject(cdkObject), + CFNScanEc2InstanceWithFindingsConfigurationProperty { /** * Describes the configuration for scanning EBS volumes as data source. * @@ -1557,14 +1581,14 @@ public open class CfnDetector( */ public interface TagItemProperty { /** - * The tag value. + * The tag key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-tagitem.html#cfn-guardduty-detector-tagitem-key) */ public fun key(): String /** - * The tag key. + * The tag value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-tagitem.html#cfn-guardduty-detector-tagitem-value) */ @@ -1576,12 +1600,12 @@ public open class CfnDetector( @CdkDslMarker public interface Builder { /** - * @param key The tag value. + * @param key The tag key. */ public fun key(key: String) /** - * @param value The tag key. + * @param value The tag value. */ public fun `value`(`value`: String) } @@ -1592,14 +1616,14 @@ public open class CfnDetector( software.amazon.awscdk.services.guardduty.CfnDetector.TagItemProperty.builder() /** - * @param key The tag value. + * @param key The tag key. */ override fun key(key: String) { cdkBuilder.key(key) } /** - * @param value The tag key. + * @param value The tag value. */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) @@ -1611,16 +1635,17 @@ public open class CfnDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetector.TagItemProperty, - ) : CdkObject(cdkObject), TagItemProperty { + ) : CdkObject(cdkObject), + TagItemProperty { /** - * The tag value. + * The tag key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-tagitem.html#cfn-guardduty-detector-tagitem-key) */ override fun key(): String = unwrap(this).getKey() /** - * The tag key. + * The tag value. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-tagitem.html#cfn-guardduty-detector-tagitem-value) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetectorProps.kt index 7461368c14..dc812a48e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnDetectorProps.kt @@ -286,7 +286,8 @@ public interface CfnDetectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnDetectorProps, - ) : CdkObject(cdkObject), CfnDetectorProps { + ) : CdkObject(cdkObject), + CfnDetectorProps { /** * Describes which data sources will be enabled for the detector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilter.kt index cda629d429..d3fdcbd881 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilter.kt @@ -33,6 +33,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.guardduty.*; * Object criterion; * CfnFilter cfnFilter = CfnFilter.Builder.create(this, "MyCfnFilter") + * .detectorId("detectorId") * .findingCriteria(FindingCriteriaProperty.builder() * .criterion(criterion) * .itemType(ConditionProperty.builder() @@ -50,11 +51,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .notEquals(List.of("notEquals")) * .build()) * .build()) + * .name("name") * // the properties below are optional * .action("action") * .description("description") - * .detectorId("detectorId") - * .name("name") * .rank(123) * .tags(List.of(CfnTag.builder() * .key("key") @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFilter( cdkObject: software.amazon.awscdk.services.guardduty.CfnFilter, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,12 +111,12 @@ public open class CfnFilter( } /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. */ - public open fun detectorId(): String? = unwrap(this).getDetectorId() + public open fun detectorId(): String = unwrap(this).getDetectorId() /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. */ public open fun detectorId(`value`: String) { unwrap(this).setDetectorId(`value`) @@ -159,7 +161,7 @@ public open class CfnFilter( /** * The name of the filter. */ - public open fun name(): String? = unwrap(this).getName() + public open fun name(): String = unwrap(this).getName() /** * The name of the filter. @@ -230,12 +232,16 @@ public open class CfnFilter( public fun description(description: String) /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter - * for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-detectorid) - * @param detectorId The ID of the detector belonging to the GuardDuty account that you want to - * create a filter for. + * @param detectorId The detector ID associated with the GuardDuty account for which you want to + * create a filter. */ public fun detectorId(detectorId: String) @@ -357,12 +363,16 @@ public open class CfnFilter( } /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter - * for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-detectorid) - * @param detectorId The ID of the detector belonging to the GuardDuty account that you want to - * create a filter for. + * @param detectorId The detector ID associated with the GuardDuty account for which you want to + * create a filter. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) @@ -840,7 +850,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnFilter.ConditionProperty, - ) : CdkObject(cdkObject), ConditionProperty { + ) : CdkObject(cdkObject), + ConditionProperty { /** * Represents the equal condition to apply to a single field when querying for findings. * @@ -999,8 +1010,8 @@ public open class CfnFilter( * * region * * severity * - * To filter on the basis of severity, API and CFN use the following input list for the - * condition: + * To filter on the basis of severity, the API and AWS CLI use the following input list for the + * `FindingCriteria` condition: * * * *Low* : `["1", "2", "3"]` * * *Medium* : `["4", "5", "6"]` @@ -1008,13 +1019,13 @@ public open class CfnFilter( * * For more information, see [Severity levels for GuardDuty * findings](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings.html#guardduty_findings-severity) - * . + * in the *Amazon GuardDuty User Guide* . * * * type * * updatedAt * - * Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on - * whether the value contains milliseconds. + * Type: ISO 8601 string format: `YYYY-MM-DDTHH:MM:SS.SSSZ` or `YYYY-MM-DDTHH:MM:SSZ` depending + * on whether the value contains milliseconds. * * * resource.accessKeyDetails.accessKeyId * * resource.accessKeyDetails.principalId @@ -1047,10 +1058,12 @@ public open class CfnFilter( * * service.action.awsApiCallAction.remoteIpDetails.city.cityName * * service.action.awsApiCallAction.remoteIpDetails.country.countryName * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 * * service.action.awsApiCallAction.remoteIpDetails.organization.asn * * service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg * * service.action.awsApiCallAction.serviceName * * service.action.dnsRequestAction.domain + * * service.action.dnsRequestAction.domainWithSuffix * * service.action.networkConnectionAction.blocked * * service.action.networkConnectionAction.connectionDirection * * service.action.networkConnectionAction.localPortDetails.port @@ -1058,13 +1071,19 @@ public open class CfnFilter( * * service.action.networkConnectionAction.remoteIpDetails.city.cityName * * service.action.networkConnectionAction.remoteIpDetails.country.countryName * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 * * service.action.networkConnectionAction.remoteIpDetails.organization.asn * * service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg * * service.action.networkConnectionAction.remotePortDetails.port * * service.action.awsApiCallAction.remoteAccountDetails.affiliated * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + * * service.action.kubernetesApiCallAction.namespace + * * service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn * * service.action.kubernetesApiCallAction.requestUri + * * service.action.kubernetesApiCallAction.statusCode * * service.action.networkConnectionAction.localIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.localIpDetails.ipAddressV6 * * service.action.networkConnectionAction.protocol * * service.action.awsApiCallAction.serviceName * * service.action.awsApiCallAction.remoteAccountDetails.accountId @@ -1080,6 +1099,7 @@ public open class CfnFilter( * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + * * service.malwareScanDetails.threats.name * * resource.ecsClusterDetails.name * * resource.ecsClusterDetails.taskDetails.containers.image * * resource.ecsClusterDetails.taskDetails.definitionArn @@ -1124,8 +1144,8 @@ public open class CfnFilter( * * region * * severity * - * To filter on the basis of severity, API and CFN use the following input list for the - * condition: + * To filter on the basis of severity, the API and AWS CLI use the following input list for + * the `FindingCriteria` condition: * * * *Low* : `["1", "2", "3"]` * * *Medium* : `["4", "5", "6"]` @@ -1133,13 +1153,13 @@ public open class CfnFilter( * * For more information, see [Severity levels for GuardDuty * findings](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings.html#guardduty_findings-severity) - * . + * in the *Amazon GuardDuty User Guide* . * * * type * * updatedAt * - * Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on - * whether the value contains milliseconds. + * Type: ISO 8601 string format: `YYYY-MM-DDTHH:MM:SS.SSSZ` or `YYYY-MM-DDTHH:MM:SSZ` + * depending on whether the value contains milliseconds. * * * resource.accessKeyDetails.accessKeyId * * resource.accessKeyDetails.principalId @@ -1172,10 +1192,12 @@ public open class CfnFilter( * * service.action.awsApiCallAction.remoteIpDetails.city.cityName * * service.action.awsApiCallAction.remoteIpDetails.country.countryName * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 * * service.action.awsApiCallAction.remoteIpDetails.organization.asn * * service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg * * service.action.awsApiCallAction.serviceName * * service.action.dnsRequestAction.domain + * * service.action.dnsRequestAction.domainWithSuffix * * service.action.networkConnectionAction.blocked * * service.action.networkConnectionAction.connectionDirection * * service.action.networkConnectionAction.localPortDetails.port @@ -1183,13 +1205,19 @@ public open class CfnFilter( * * service.action.networkConnectionAction.remoteIpDetails.city.cityName * * service.action.networkConnectionAction.remoteIpDetails.country.countryName * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 * * service.action.networkConnectionAction.remoteIpDetails.organization.asn * * service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg * * service.action.networkConnectionAction.remotePortDetails.port * * service.action.awsApiCallAction.remoteAccountDetails.affiliated * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + * * service.action.kubernetesApiCallAction.namespace + * * service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn * * service.action.kubernetesApiCallAction.requestUri + * * service.action.kubernetesApiCallAction.statusCode * * service.action.networkConnectionAction.localIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.localIpDetails.ipAddressV6 * * service.action.networkConnectionAction.protocol * * service.action.awsApiCallAction.serviceName * * service.action.awsApiCallAction.remoteAccountDetails.accountId @@ -1206,6 +1234,7 @@ public open class CfnFilter( * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity * * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + * * service.malwareScanDetails.threats.name * * resource.ecsClusterDetails.name * * resource.ecsClusterDetails.taskDetails.containers.image * * resource.ecsClusterDetails.taskDetails.definitionArn @@ -1261,8 +1290,8 @@ public open class CfnFilter( * * region * * severity * - * To filter on the basis of severity, API and CFN use the following input list for the - * condition: + * To filter on the basis of severity, the API and AWS CLI use the following input list for + * the `FindingCriteria` condition: * * * *Low* : `["1", "2", "3"]` * * *Medium* : `["4", "5", "6"]` @@ -1270,13 +1299,13 @@ public open class CfnFilter( * * For more information, see [Severity levels for GuardDuty * findings](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings.html#guardduty_findings-severity) - * . + * in the *Amazon GuardDuty User Guide* . * * * type * * updatedAt * - * Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on - * whether the value contains milliseconds. + * Type: ISO 8601 string format: `YYYY-MM-DDTHH:MM:SS.SSSZ` or `YYYY-MM-DDTHH:MM:SSZ` + * depending on whether the value contains milliseconds. * * * resource.accessKeyDetails.accessKeyId * * resource.accessKeyDetails.principalId @@ -1309,10 +1338,12 @@ public open class CfnFilter( * * service.action.awsApiCallAction.remoteIpDetails.city.cityName * * service.action.awsApiCallAction.remoteIpDetails.country.countryName * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 * * service.action.awsApiCallAction.remoteIpDetails.organization.asn * * service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg * * service.action.awsApiCallAction.serviceName * * service.action.dnsRequestAction.domain + * * service.action.dnsRequestAction.domainWithSuffix * * service.action.networkConnectionAction.blocked * * service.action.networkConnectionAction.connectionDirection * * service.action.networkConnectionAction.localPortDetails.port @@ -1320,13 +1351,19 @@ public open class CfnFilter( * * service.action.networkConnectionAction.remoteIpDetails.city.cityName * * service.action.networkConnectionAction.remoteIpDetails.country.countryName * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 * * service.action.networkConnectionAction.remoteIpDetails.organization.asn * * service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg * * service.action.networkConnectionAction.remotePortDetails.port * * service.action.awsApiCallAction.remoteAccountDetails.affiliated * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + * * service.action.kubernetesApiCallAction.namespace + * * service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn * * service.action.kubernetesApiCallAction.requestUri + * * service.action.kubernetesApiCallAction.statusCode * * service.action.networkConnectionAction.localIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.localIpDetails.ipAddressV6 * * service.action.networkConnectionAction.protocol * * service.action.awsApiCallAction.serviceName * * service.action.awsApiCallAction.remoteAccountDetails.accountId @@ -1343,6 +1380,7 @@ public open class CfnFilter( * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity * * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + * * service.malwareScanDetails.threats.name * * resource.ecsClusterDetails.name * * resource.ecsClusterDetails.taskDetails.containers.image * * resource.ecsClusterDetails.taskDetails.definitionArn @@ -1394,7 +1432,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnFilter.FindingCriteriaProperty, - ) : CdkObject(cdkObject), FindingCriteriaProperty { + ) : CdkObject(cdkObject), + FindingCriteriaProperty { /** * Represents a map of finding properties that match specified conditions and values when * querying findings. @@ -1408,8 +1447,8 @@ public open class CfnFilter( * * region * * severity * - * To filter on the basis of severity, API and CFN use the following input list for the - * condition: + * To filter on the basis of severity, the API and AWS CLI use the following input list for + * the `FindingCriteria` condition: * * * *Low* : `["1", "2", "3"]` * * *Medium* : `["4", "5", "6"]` @@ -1417,13 +1456,13 @@ public open class CfnFilter( * * For more information, see [Severity levels for GuardDuty * findings](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings.html#guardduty_findings-severity) - * . + * in the *Amazon GuardDuty User Guide* . * * * type * * updatedAt * - * Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on - * whether the value contains milliseconds. + * Type: ISO 8601 string format: `YYYY-MM-DDTHH:MM:SS.SSSZ` or `YYYY-MM-DDTHH:MM:SSZ` + * depending on whether the value contains milliseconds. * * * resource.accessKeyDetails.accessKeyId * * resource.accessKeyDetails.principalId @@ -1456,10 +1495,12 @@ public open class CfnFilter( * * service.action.awsApiCallAction.remoteIpDetails.city.cityName * * service.action.awsApiCallAction.remoteIpDetails.country.countryName * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 * * service.action.awsApiCallAction.remoteIpDetails.organization.asn * * service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg * * service.action.awsApiCallAction.serviceName * * service.action.dnsRequestAction.domain + * * service.action.dnsRequestAction.domainWithSuffix * * service.action.networkConnectionAction.blocked * * service.action.networkConnectionAction.connectionDirection * * service.action.networkConnectionAction.localPortDetails.port @@ -1467,13 +1508,19 @@ public open class CfnFilter( * * service.action.networkConnectionAction.remoteIpDetails.city.cityName * * service.action.networkConnectionAction.remoteIpDetails.country.countryName * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 * * service.action.networkConnectionAction.remoteIpDetails.organization.asn * * service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg * * service.action.networkConnectionAction.remotePortDetails.port * * service.action.awsApiCallAction.remoteAccountDetails.affiliated * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + * * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + * * service.action.kubernetesApiCallAction.namespace + * * service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn * * service.action.kubernetesApiCallAction.requestUri + * * service.action.kubernetesApiCallAction.statusCode * * service.action.networkConnectionAction.localIpDetails.ipAddressV4 + * * service.action.networkConnectionAction.localIpDetails.ipAddressV6 * * service.action.networkConnectionAction.protocol * * service.action.awsApiCallAction.serviceName * * service.action.awsApiCallAction.remoteAccountDetails.accountId @@ -1490,6 +1537,7 @@ public open class CfnFilter( * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity * * * service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + * * service.malwareScanDetails.threats.name * * resource.ecsClusterDetails.name * * resource.ecsClusterDetails.taskDetails.containers.image * * resource.ecsClusterDetails.taskDetails.definitionArn diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilterProps.kt index a7234162c5..e9c146aa82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnFilterProps.kt @@ -25,6 +25,7 @@ import kotlin.jvm.JvmName * import io.cloudshiftdev.awscdk.services.guardduty.*; * Object criterion; * CfnFilterProps cfnFilterProps = CfnFilterProps.builder() + * .detectorId("detectorId") * .findingCriteria(FindingCriteriaProperty.builder() * .criterion(criterion) * .itemType(ConditionProperty.builder() @@ -42,11 +43,10 @@ import kotlin.jvm.JvmName * .notEquals(List.of("notEquals")) * .build()) * .build()) + * .name("name") * // the properties below are optional * .action("action") * .description("description") - * .detectorId("detectorId") - * .name("name") * .rank(123) * .tags(List.of(CfnTag.builder() * .key("key") @@ -77,11 +77,16 @@ public interface CfnFilterProps { public fun description(): String? = unwrap(this).getDescription() /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-detectorid) */ - public fun detectorId(): String? = unwrap(this).getDetectorId() + public fun detectorId(): String /** * Represents the criteria to be used in the filter for querying findings. @@ -98,7 +103,7 @@ public interface CfnFilterProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-name) */ - public fun name(): String? = unwrap(this).getName() + public fun name(): String /** * Specifies the position of the filter in the list of current filters. @@ -148,8 +153,12 @@ public interface CfnFilterProps { public fun description(description: String) /** - * @param detectorId The ID of the detector belonging to the GuardDuty account that you want to - * create a filter for. + * @param detectorId The detector ID associated with the GuardDuty account for which you want to + * create a filter. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ public fun detectorId(detectorId: String) @@ -175,7 +184,7 @@ public interface CfnFilterProps { fun findingCriteria(findingCriteria: CfnFilter.FindingCriteriaProperty.Builder.() -> Unit) /** - * @param name The name of the filter. + * @param name The name of the filter. * Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A * whitespace is considered to be an invalid character. */ @@ -237,8 +246,12 @@ public interface CfnFilterProps { } /** - * @param detectorId The ID of the detector belonging to the GuardDuty account that you want to - * create a filter for. + * @param detectorId The detector ID associated with the GuardDuty account for which you want to + * create a filter. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) @@ -271,7 +284,7 @@ public interface CfnFilterProps { Unit = findingCriteria(CfnFilter.FindingCriteriaProperty(findingCriteria)) /** - * @param name The name of the filter. + * @param name The name of the filter. * Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A * whitespace is considered to be an invalid character. */ @@ -321,7 +334,8 @@ public interface CfnFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnFilterProps, - ) : CdkObject(cdkObject), CfnFilterProps { + ) : CdkObject(cdkObject), + CfnFilterProps { /** * Specifies the action that is to be applied to the findings that match the filter. * @@ -341,12 +355,16 @@ public interface CfnFilterProps { override fun description(): String? = unwrap(this).getDescription() /** - * The ID of the detector belonging to the GuardDuty account that you want to create a filter - * for. + * The detector ID associated with the GuardDuty account for which you want to create a filter. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-detectorid) */ - override fun detectorId(): String? = unwrap(this).getDetectorId() + override fun detectorId(): String = unwrap(this).getDetectorId() /** * Represents the criteria to be used in the filter for querying findings. @@ -363,7 +381,7 @@ public interface CfnFilterProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-name) */ - override fun name(): String? = unwrap(this).getName() + override fun name(): String = unwrap(this).getName() /** * Specifies the position of the filter in the list of current filters. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSet.kt index 2ff46e288e..1cb16e9738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSet.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPSet( cdkObject: software.amazon.awscdk.services.guardduty.CfnIPSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -90,12 +92,12 @@ public open class CfnIPSet( public open fun attrId(): String = unwrap(this).getAttrId() /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. */ public open fun detectorId(): String? = unwrap(this).getDetectorId() /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. */ public open fun detectorId(`value`: String) { unwrap(this).setDetectorId(`value`) @@ -191,11 +193,16 @@ public open class CfnIPSet( public fun activate(activate: IResolvable) /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-detectorid) - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create an IPSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create an IPSet. */ public fun detectorId(detectorId: String) @@ -282,11 +289,16 @@ public open class CfnIPSet( } /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-detectorid) - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create an IPSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create an IPSet. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSetProps.kt index acf9c2f5e3..694af9b5ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnIPSetProps.kt @@ -47,7 +47,12 @@ public interface CfnIPSetProps { public fun activate(): Any? = unwrap(this).getActivate() /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-detectorid) */ @@ -105,8 +110,12 @@ public interface CfnIPSetProps { public fun activate(activate: IResolvable) /** - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create an IPSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create an IPSet. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ public fun detectorId(detectorId: String) @@ -166,8 +175,12 @@ public interface CfnIPSetProps { } /** - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create an IPSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create an IPSet. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) @@ -222,7 +235,8 @@ public interface CfnIPSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnIPSetProps, - ) : CdkObject(cdkObject), CfnIPSetProps { + ) : CdkObject(cdkObject), + CfnIPSetProps { /** * Indicates whether or not GuardDuty uses the `IPSet` . * @@ -231,7 +245,12 @@ public interface CfnIPSetProps { override fun activate(): Any? = unwrap(this).getActivate() /** - * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-detectorid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlan.kt new file mode 100644 index 0000000000..bd867075bc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlan.kt @@ -0,0 +1,1158 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.guardduty + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a new Malware Protection plan for the protected resource. + * + * When you create a Malware Protection plan, the [AWS service terms for GuardDuty Malware + * Protection](https://docs.aws.amazon.com/service-terms/#87._Amazon_GuardDuty) will apply. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CfnMalwareProtectionPlan cfnMalwareProtectionPlan = CfnMalwareProtectionPlan.Builder.create(this, + * "MyCfnMalwareProtectionPlan") + * .protectedResource(CFNProtectedResourceProperty.builder() + * .s3Bucket(S3BucketProperty.builder() + * .bucketName("bucketName") + * .objectPrefixes(List.of("objectPrefixes")) + * .build()) + * .build()) + * .role("role") + * // the properties below are optional + * .actions(CFNActionsProperty.builder() + * .tagging(CFNTaggingProperty.builder() + * .status("status") + * .build()) + * .build()) + * .tags(List.of(TagItemProperty.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html) + */ +public open class CfnMalwareProtectionPlan( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMalwareProtectionPlanProps, + ) : + this(software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMalwareProtectionPlanProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMalwareProtectionPlanProps.Builder.() -> Unit, + ) : this(scope, id, CfnMalwareProtectionPlanProps(props) + ) + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + */ + public open fun actions(): Any? = unwrap(this).getActions() + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + */ + public open fun actions(`value`: IResolvable) { + unwrap(this).setActions(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + */ + public open fun actions(`value`: CFNActionsProperty) { + unwrap(this).setActions(`value`.let(CFNActionsProperty.Companion::unwrap)) + } + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e8c0f7354ca66ef473e6c2b11034c2402d7741907cc40b003aac91789e03e51f") + public open fun actions(`value`: CFNActionsProperty.Builder.() -> Unit): Unit = + actions(CFNActionsProperty(`value`)) + + /** + * Amazon Resource Name (ARN) associated with this Malware Protection plan. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The timestamp when the Malware Protection plan resource was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * A unique identifier associated with Malware Protection plan. + */ + public open fun attrMalwareProtectionPlanId(): String = + unwrap(this).getAttrMalwareProtectionPlanId() + + /** + * Status of the Malware Protection plan resource. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Status details associated with the Malware Protection plan resource status. + */ + public open fun attrStatusReasons(): IResolvable = + unwrap(this).getAttrStatusReasons().let(IResolvable::wrap) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * Information about the protected resource. + */ + public open fun protectedResource(): Any = unwrap(this).getProtectedResource() + + /** + * Information about the protected resource. + */ + public open fun protectedResource(`value`: IResolvable) { + unwrap(this).setProtectedResource(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Information about the protected resource. + */ + public open fun protectedResource(`value`: CFNProtectedResourceProperty) { + unwrap(this).setProtectedResource(`value`.let(CFNProtectedResourceProperty.Companion::unwrap)) + } + + /** + * Information about the protected resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("02d9ca2ecde150f650f4f14afddbe283cde885aadc27a8a166101610633f04ff") + public open fun protectedResource(`value`: CFNProtectedResourceProperty.Builder.() -> Unit): Unit + = protectedResource(CFNProtectedResourceProperty(`value`)) + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + */ + public open fun role(): String = unwrap(this).getRole() + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + */ + public open fun role(`value`: String) { + unwrap(this).setRole(`value`) + } + + /** + * The tags to be added to the created Malware Protection plan resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(TagItemProperty::wrap) + ?: emptyList() + + /** + * The tags to be added to the created Malware Protection plan resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(TagItemProperty.Companion::unwrap)) + } + + /** + * The tags to be added to the created Malware Protection plan resource. + */ + public open fun tags(vararg `value`: TagItemProperty): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.guardduty.CfnMalwareProtectionPlan]. + */ + @CdkDslMarker + public interface Builder { + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + public fun actions(actions: IResolvable) + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + public fun actions(actions: CFNActionsProperty) + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bd4189b419b8da58656eb1e11e86874cec3ad5b5bcc445a43930d8b49acb4084") + public fun actions(actions: CFNActionsProperty.Builder.() -> Unit) + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + public fun protectedResource(protectedResource: IResolvable) + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + public fun protectedResource(protectedResource: CFNProtectedResourceProperty) + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f037aad4bdfa558449e7b1bfc45d20485a525054d49c48d47d45d72f33c5b804") + public fun protectedResource(protectedResource: CFNProtectedResourceProperty.Builder.() -> Unit) + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + * + * To find the ARN of your IAM role, go to the IAM console, and select the role name for + * details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-role) + * @param role Amazon Resource Name (ARN) of the IAM role that includes the permissions required + * to scan and (optionally) add tags to the associated protected resource. + */ + public fun role(role: String) + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + * @param tags The tags to be added to the created Malware Protection plan resource. + */ + public fun tags(tags: List) + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + * @param tags The tags to be added to the created Malware Protection plan resource. + */ + public fun tags(vararg tags: TagItemProperty) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.Builder = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.Builder.create(scope, id) + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + override fun actions(actions: IResolvable) { + cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + override fun actions(actions: CFNActionsProperty) { + cdkBuilder.actions(actions.let(CFNActionsProperty.Companion::unwrap)) + } + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bd4189b419b8da58656eb1e11e86874cec3ad5b5bcc445a43930d8b49acb4084") + override fun actions(actions: CFNActionsProperty.Builder.() -> Unit): Unit = + actions(CFNActionsProperty(actions)) + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + override fun protectedResource(protectedResource: IResolvable) { + cdkBuilder.protectedResource(protectedResource.let(IResolvable.Companion::unwrap)) + } + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + override fun protectedResource(protectedResource: CFNProtectedResourceProperty) { + cdkBuilder.protectedResource(protectedResource.let(CFNProtectedResourceProperty.Companion::unwrap)) + } + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + * @param protectedResource Information about the protected resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f037aad4bdfa558449e7b1bfc45d20485a525054d49c48d47d45d72f33c5b804") + override + fun protectedResource(protectedResource: CFNProtectedResourceProperty.Builder.() -> Unit): + Unit = protectedResource(CFNProtectedResourceProperty(protectedResource)) + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + * + * To find the ARN of your IAM role, go to the IAM console, and select the role name for + * details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-role) + * @param role Amazon Resource Name (ARN) of the IAM role that includes the permissions required + * to scan and (optionally) add tags to the associated protected resource. + */ + override fun role(role: String) { + cdkBuilder.role(role) + } + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + * @param tags The tags to be added to the created Malware Protection plan resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(TagItemProperty.Companion::unwrap)) + } + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + * @param tags The tags to be added to the created Malware Protection plan resource. + */ + override fun tags(vararg tags: TagItemProperty): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMalwareProtectionPlan { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMalwareProtectionPlan(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan): + CfnMalwareProtectionPlan = CfnMalwareProtectionPlan(cdkObject) + + internal fun unwrap(wrapped: CfnMalwareProtectionPlan): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan = wrapped.cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan + } + + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CFNActionsProperty cFNActionsProperty = CFNActionsProperty.builder() + * .tagging(CFNTaggingProperty.builder() + * .status("status") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnactions.html) + */ + public interface CFNActionsProperty { + /** + * Contains information about tagging status of the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnactions.html#cfn-guardduty-malwareprotectionplan-cfnactions-tagging) + */ + public fun tagging(): Any? = unwrap(this).getTagging() + + /** + * A builder for [CFNActionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + public fun tagging(tagging: IResolvable) + + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + public fun tagging(tagging: CFNTaggingProperty) + + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c281def9bbb6496c4b813b7d710e2589cf14a4d4e5dda41796adc68a96c61a0") + public fun tagging(tagging: CFNTaggingProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty.builder() + + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + override fun tagging(tagging: IResolvable) { + cdkBuilder.tagging(tagging.let(IResolvable.Companion::unwrap)) + } + + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + override fun tagging(tagging: CFNTaggingProperty) { + cdkBuilder.tagging(tagging.let(CFNTaggingProperty.Companion::unwrap)) + } + + /** + * @param tagging Contains information about tagging status of the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c281def9bbb6496c4b813b7d710e2589cf14a4d4e5dda41796adc68a96c61a0") + override fun tagging(tagging: CFNTaggingProperty.Builder.() -> Unit): Unit = + tagging(CFNTaggingProperty(tagging)) + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty, + ) : CdkObject(cdkObject), + CFNActionsProperty { + /** + * Contains information about tagging status of the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnactions.html#cfn-guardduty-malwareprotectionplan-cfnactions-tagging) + */ + override fun tagging(): Any? = unwrap(this).getTagging() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CFNActionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty): + CFNActionsProperty = CdkObjectWrappers.wrap(cdkObject) as? CFNActionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CFNActionsProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNActionsProperty + } + } + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CFNProtectedResourceProperty cFNProtectedResourceProperty = + * CFNProtectedResourceProperty.builder() + * .s3Bucket(S3BucketProperty.builder() + * .bucketName("bucketName") + * .objectPrefixes(List.of("objectPrefixes")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnprotectedresource.html) + */ + public interface CFNProtectedResourceProperty { + /** + * Information about the protected S3 bucket resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnprotectedresource.html#cfn-guardduty-malwareprotectionplan-cfnprotectedresource-s3bucket) + */ + public fun s3Bucket(): Any + + /** + * A builder for [CFNProtectedResourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + public fun s3Bucket(s3Bucket: IResolvable) + + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + public fun s3Bucket(s3Bucket: S3BucketProperty) + + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fdeb8b153499c2946cfb0a83ce4891dc7b0e7aedfc8eaa2d311acc4b22575b69") + public fun s3Bucket(s3Bucket: S3BucketProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty.builder() + + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + override fun s3Bucket(s3Bucket: IResolvable) { + cdkBuilder.s3Bucket(s3Bucket.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + override fun s3Bucket(s3Bucket: S3BucketProperty) { + cdkBuilder.s3Bucket(s3Bucket.let(S3BucketProperty.Companion::unwrap)) + } + + /** + * @param s3Bucket Information about the protected S3 bucket resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fdeb8b153499c2946cfb0a83ce4891dc7b0e7aedfc8eaa2d311acc4b22575b69") + override fun s3Bucket(s3Bucket: S3BucketProperty.Builder.() -> Unit): Unit = + s3Bucket(S3BucketProperty(s3Bucket)) + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty, + ) : CdkObject(cdkObject), + CFNProtectedResourceProperty { + /** + * Information about the protected S3 bucket resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnprotectedresource.html#cfn-guardduty-malwareprotectionplan-cfnprotectedresource-s3bucket) + */ + override fun s3Bucket(): Any = unwrap(this).getS3Bucket() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CFNProtectedResourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty): + CFNProtectedResourceProperty = CdkObjectWrappers.wrap(cdkObject) as? + CFNProtectedResourceProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CFNProtectedResourceProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty + } + } + + /** + * Information about the status code and status details associated with the status of the Malware + * Protection plan. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CFNStatusReasonsProperty cFNStatusReasonsProperty = CFNStatusReasonsProperty.builder() + * .code("code") + * .message("message") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html) + */ + public interface CFNStatusReasonsProperty { + /** + * The status code of the Malware Protection plan. + * + * For more information, see [Malware Protection plan resource + * status](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-bucket-status-gdu.html) + * in the *GuardDuty User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html#cfn-guardduty-malwareprotectionplan-cfnstatusreasons-code) + */ + public fun code(): String? = unwrap(this).getCode() + + /** + * Issue message that specifies the reason. + * + * For information about potential troubleshooting steps, see [Troubleshooting Malware + * Protection for S3 status + * issues](https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html) + * in the *GuardDuty User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html#cfn-guardduty-malwareprotectionplan-cfnstatusreasons-message) + */ + public fun message(): String? = unwrap(this).getMessage() + + /** + * A builder for [CFNStatusReasonsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param code The status code of the Malware Protection plan. + * For more information, see [Malware Protection plan resource + * status](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-bucket-status-gdu.html) + * in the *GuardDuty User Guide* . + */ + public fun code(code: String) + + /** + * @param message Issue message that specifies the reason. + * For information about potential troubleshooting steps, see [Troubleshooting Malware + * Protection for S3 status + * issues](https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html) + * in the *GuardDuty User Guide* . + */ + public fun message(message: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty.builder() + + /** + * @param code The status code of the Malware Protection plan. + * For more information, see [Malware Protection plan resource + * status](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-bucket-status-gdu.html) + * in the *GuardDuty User Guide* . + */ + override fun code(code: String) { + cdkBuilder.code(code) + } + + /** + * @param message Issue message that specifies the reason. + * For information about potential troubleshooting steps, see [Troubleshooting Malware + * Protection for S3 status + * issues](https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html) + * in the *GuardDuty User Guide* . + */ + override fun message(message: String) { + cdkBuilder.message(message) + } + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty, + ) : CdkObject(cdkObject), + CFNStatusReasonsProperty { + /** + * The status code of the Malware Protection plan. + * + * For more information, see [Malware Protection plan resource + * status](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection-s3-bucket-status-gdu.html) + * in the *GuardDuty User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html#cfn-guardduty-malwareprotectionplan-cfnstatusreasons-code) + */ + override fun code(): String? = unwrap(this).getCode() + + /** + * Issue message that specifies the reason. + * + * For information about potential troubleshooting steps, see [Troubleshooting Malware + * Protection for S3 status + * issues](https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html) + * in the *GuardDuty User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfnstatusreasons.html#cfn-guardduty-malwareprotectionplan-cfnstatusreasons-message) + */ + override fun message(): String? = unwrap(this).getMessage() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CFNStatusReasonsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty): + CFNStatusReasonsProperty = CdkObjectWrappers.wrap(cdkObject) as? CFNStatusReasonsProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CFNStatusReasonsProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty + } + } + + /** + * Contains information about tagging status of the Malware Protection plan resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CFNTaggingProperty cFNTaggingProperty = CFNTaggingProperty.builder() + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfntagging.html) + */ + public interface CFNTaggingProperty { + /** + * Indicates whether or not you chose GuardDuty to add a predefined tag to the scanned S3 + * object. + * + * Potential values include `ENABLED` and `DISABLED` . These values are case-sensitive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfntagging.html#cfn-guardduty-malwareprotectionplan-cfntagging-status) + */ + public fun status(): String? = unwrap(this).getStatus() + + /** + * A builder for [CFNTaggingProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param status Indicates whether or not you chose GuardDuty to add a predefined tag to the + * scanned S3 object. + * Potential values include `ENABLED` and `DISABLED` . These values are case-sensitive. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty.builder() + + /** + * @param status Indicates whether or not you chose GuardDuty to add a predefined tag to the + * scanned S3 object. + * Potential values include `ENABLED` and `DISABLED` . These values are case-sensitive. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty, + ) : CdkObject(cdkObject), + CFNTaggingProperty { + /** + * Indicates whether or not you chose GuardDuty to add a predefined tag to the scanned S3 + * object. + * + * Potential values include `ENABLED` and `DISABLED` . These values are case-sensitive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfntagging.html#cfn-guardduty-malwareprotectionplan-cfntagging-status) + */ + override fun status(): String? = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CFNTaggingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty): + CFNTaggingProperty = CdkObjectWrappers.wrap(cdkObject) as? CFNTaggingProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CFNTaggingProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty + } + } + + /** + * Information about the protected S3 bucket resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * S3BucketProperty s3BucketProperty = S3BucketProperty.builder() + * .bucketName("bucketName") + * .objectPrefixes(List.of("objectPrefixes")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-s3bucket.html) + */ + public interface S3BucketProperty { + /** + * Name of the S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-s3bucket.html#cfn-guardduty-malwareprotectionplan-s3bucket-bucketname) + */ + public fun bucketName(): String? = unwrap(this).getBucketName() + + /** + * Information about the specified object prefixes. + * + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-s3bucket.html#cfn-guardduty-malwareprotectionplan-s3bucket-objectprefixes) + */ + public fun objectPrefixes(): List = unwrap(this).getObjectPrefixes() ?: emptyList() + + /** + * A builder for [S3BucketProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bucketName Name of the S3 bucket. + */ + public fun bucketName(bucketName: String) + + /** + * @param objectPrefixes Information about the specified object prefixes. + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + */ + public fun objectPrefixes(objectPrefixes: List) + + /** + * @param objectPrefixes Information about the specified object prefixes. + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + */ + public fun objectPrefixes(vararg objectPrefixes: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty.builder() + + /** + * @param bucketName Name of the S3 bucket. + */ + override fun bucketName(bucketName: String) { + cdkBuilder.bucketName(bucketName) + } + + /** + * @param objectPrefixes Information about the specified object prefixes. + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + */ + override fun objectPrefixes(objectPrefixes: List) { + cdkBuilder.objectPrefixes(objectPrefixes) + } + + /** + * @param objectPrefixes Information about the specified object prefixes. + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + */ + override fun objectPrefixes(vararg objectPrefixes: String): Unit = + objectPrefixes(objectPrefixes.toList()) + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty, + ) : CdkObject(cdkObject), + S3BucketProperty { + /** + * Name of the S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-s3bucket.html#cfn-guardduty-malwareprotectionplan-s3bucket-bucketname) + */ + override fun bucketName(): String? = unwrap(this).getBucketName() + + /** + * Information about the specified object prefixes. + * + * An S3 object will be scanned only if it belongs to any of the specified object prefixes. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-s3bucket.html#cfn-guardduty-malwareprotectionplan-s3bucket-objectprefixes) + */ + override fun objectPrefixes(): List = unwrap(this).getObjectPrefixes() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3BucketProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty): + S3BucketProperty = CdkObjectWrappers.wrap(cdkObject) as? S3BucketProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3BucketProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty + } + } + + /** + * Contains information about a tag. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * TagItemProperty tagItemProperty = TagItemProperty.builder() + * .key("key") + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-tagitem.html) + */ + public interface TagItemProperty { + /** + * The tag key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-tagitem.html#cfn-guardduty-malwareprotectionplan-tagitem-key) + */ + public fun key(): String + + /** + * The tag value. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-tagitem.html#cfn-guardduty-malwareprotectionplan-tagitem-value) + */ + public fun `value`(): String + + /** + * A builder for [TagItemProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param key The tag key. + */ + public fun key(key: String) + + /** + * @param value The tag value. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty.Builder + = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty.builder() + + /** + * @param key The tag key. + */ + override fun key(key: String) { + cdkBuilder.key(key) + } + + /** + * @param value The tag value. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty, + ) : CdkObject(cdkObject), + TagItemProperty { + /** + * The tag key. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-tagitem.html#cfn-guardduty-malwareprotectionplan-tagitem-key) + */ + override fun key(): String = unwrap(this).getKey() + + /** + * The tag value. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-tagitem.html#cfn-guardduty-malwareprotectionplan-tagitem-value) + */ + override fun `value`(): String = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TagItemProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty): + TagItemProperty = CdkObjectWrappers.wrap(cdkObject) as? TagItemProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TagItemProperty): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.TagItemProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlanProps.kt new file mode 100644 index 0000000000..1f7838a194 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMalwareProtectionPlanProps.kt @@ -0,0 +1,298 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.guardduty + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnMalwareProtectionPlan`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.guardduty.*; + * CfnMalwareProtectionPlanProps cfnMalwareProtectionPlanProps = + * CfnMalwareProtectionPlanProps.builder() + * .protectedResource(CFNProtectedResourceProperty.builder() + * .s3Bucket(S3BucketProperty.builder() + * .bucketName("bucketName") + * .objectPrefixes(List.of("objectPrefixes")) + * .build()) + * .build()) + * .role("role") + * // the properties below are optional + * .actions(CFNActionsProperty.builder() + * .tagging(CFNTaggingProperty.builder() + * .status("status") + * .build()) + * .build()) + * .tags(List.of(TagItemProperty.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html) + */ +public interface CfnMalwareProtectionPlanProps { + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + */ + public fun actions(): Any? = unwrap(this).getActions() + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + */ + public fun protectedResource(): Any + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + * + * To find the ARN of your IAM role, go to the IAM console, and select the role name for details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-role) + */ + public fun role(): String + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + */ + public fun tags(): List = + unwrap(this).getTags()?.map(CfnMalwareProtectionPlan.TagItemProperty::wrap) ?: emptyList() + + /** + * A builder for [CfnMalwareProtectionPlanProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + public fun actions(actions: IResolvable) + + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + public fun actions(actions: CfnMalwareProtectionPlan.CFNActionsProperty) + + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4b4f249b62a084616424a862579ab986215f5ca74bf22a473418ada4e51046f6") + public fun actions(actions: CfnMalwareProtectionPlan.CFNActionsProperty.Builder.() -> Unit) + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + public fun protectedResource(protectedResource: IResolvable) + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + public + fun protectedResource(protectedResource: CfnMalwareProtectionPlan.CFNProtectedResourceProperty) + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77ebef5c842efb59863ba666c537aab8a75c4e121440d975962f136cc283b086") + public + fun protectedResource(protectedResource: CfnMalwareProtectionPlan.CFNProtectedResourceProperty.Builder.() -> Unit) + + /** + * @param role Amazon Resource Name (ARN) of the IAM role that includes the permissions required + * to scan and (optionally) add tags to the associated protected resource. + * To find the ARN of your IAM role, go to the IAM console, and select the role name for + * details. + */ + public fun role(role: String) + + /** + * @param tags The tags to be added to the created Malware Protection plan resource. + * Each tag consists of a key and an optional value, both of which you need to specify. + */ + public fun tags(tags: List) + + /** + * @param tags The tags to be added to the created Malware Protection plan resource. + * Each tag consists of a key and an optional value, both of which you need to specify. + */ + public fun tags(vararg tags: CfnMalwareProtectionPlan.TagItemProperty) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps.Builder = + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps.builder() + + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + override fun actions(actions: IResolvable) { + cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + override fun actions(actions: CfnMalwareProtectionPlan.CFNActionsProperty) { + cdkBuilder.actions(actions.let(CfnMalwareProtectionPlan.CFNActionsProperty.Companion::unwrap)) + } + + /** + * @param actions Specifies the action that is to be applied to the Malware Protection plan + * resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4b4f249b62a084616424a862579ab986215f5ca74bf22a473418ada4e51046f6") + override fun actions(actions: CfnMalwareProtectionPlan.CFNActionsProperty.Builder.() -> Unit): + Unit = actions(CfnMalwareProtectionPlan.CFNActionsProperty(actions)) + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + override fun protectedResource(protectedResource: IResolvable) { + cdkBuilder.protectedResource(protectedResource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + override + fun protectedResource(protectedResource: CfnMalwareProtectionPlan.CFNProtectedResourceProperty) { + cdkBuilder.protectedResource(protectedResource.let(CfnMalwareProtectionPlan.CFNProtectedResourceProperty.Companion::unwrap)) + } + + /** + * @param protectedResource Information about the protected resource. + * Presently, `S3Bucket` is the only supported protected resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77ebef5c842efb59863ba666c537aab8a75c4e121440d975962f136cc283b086") + override + fun protectedResource(protectedResource: CfnMalwareProtectionPlan.CFNProtectedResourceProperty.Builder.() -> Unit): + Unit = + protectedResource(CfnMalwareProtectionPlan.CFNProtectedResourceProperty(protectedResource)) + + /** + * @param role Amazon Resource Name (ARN) of the IAM role that includes the permissions required + * to scan and (optionally) add tags to the associated protected resource. + * To find the ARN of your IAM role, go to the IAM console, and select the role name for + * details. + */ + override fun role(role: String) { + cdkBuilder.role(role) + } + + /** + * @param tags The tags to be added to the created Malware Protection plan resource. + * Each tag consists of a key and an optional value, both of which you need to specify. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnMalwareProtectionPlan.TagItemProperty.Companion::unwrap)) + } + + /** + * @param tags The tags to be added to the created Malware Protection plan resource. + * Each tag consists of a key and an optional value, both of which you need to specify. + */ + override fun tags(vararg tags: CfnMalwareProtectionPlan.TagItemProperty): Unit = + tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps, + ) : CdkObject(cdkObject), + CfnMalwareProtectionPlanProps { + /** + * Specifies the action that is to be applied to the Malware Protection plan resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-actions) + */ + override fun actions(): Any? = unwrap(this).getActions() + + /** + * Information about the protected resource. + * + * Presently, `S3Bucket` is the only supported protected resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-protectedresource) + */ + override fun protectedResource(): Any = unwrap(this).getProtectedResource() + + /** + * Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and + * (optionally) add tags to the associated protected resource. + * + * To find the ARN of your IAM role, go to the IAM console, and select the role name for + * details. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-role) + */ + override fun role(): String = unwrap(this).getRole() + + /** + * The tags to be added to the created Malware Protection plan resource. + * + * Each tag consists of a key and an optional value, both of which you need to specify. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-malwareprotectionplan.html#cfn-guardduty-malwareprotectionplan-tags) + */ + override fun tags(): List = + unwrap(this).getTags()?.map(CfnMalwareProtectionPlan.TagItemProperty::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMalwareProtectionPlanProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps): + CfnMalwareProtectionPlanProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMalwareProtectionPlanProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMalwareProtectionPlanProps): + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMaster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMaster.kt index 5addd7fd70..7509785fdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMaster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMaster.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMaster( cdkObject: software.amazon.awscdk.services.guardduty.CfnMaster, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -108,6 +109,11 @@ public open class CfnMaster( /** * The unique ID of the detector of the GuardDuty member account. * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-detectorid) * @param detectorId The unique ID of the detector of the GuardDuty member account. */ @@ -116,7 +122,9 @@ public open class CfnMaster( /** * The ID of the invitation that is sent to the account designated as a member account. * - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-invitationid) * @param invitationId The ID of the invitation that is sent to the account designated as a @@ -144,6 +152,11 @@ public open class CfnMaster( /** * The unique ID of the detector of the GuardDuty member account. * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-detectorid) * @param detectorId The unique ID of the detector of the GuardDuty member account. */ @@ -154,7 +167,9 @@ public open class CfnMaster( /** * The ID of the invitation that is sent to the account designated as a member account. * - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-invitationid) * @param invitationId The ID of the invitation that is sent to the account designated as a diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMasterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMasterProps.kt index 9d371bdd72..fb9a8d82f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMasterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMasterProps.kt @@ -31,6 +31,11 @@ public interface CfnMasterProps { /** * The unique ID of the detector of the GuardDuty member account. * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-detectorid) */ public fun detectorId(): String @@ -38,7 +43,9 @@ public interface CfnMasterProps { /** * The ID of the invitation that is sent to the account designated as a member account. * - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-invitationid) */ @@ -58,13 +65,19 @@ public interface CfnMasterProps { public interface Builder { /** * @param detectorId The unique ID of the detector of the GuardDuty member account. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ public fun detectorId(detectorId: String) /** * @param invitationId The ID of the invitation that is sent to the account designated as a * member account. - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . */ public fun invitationId(invitationId: String) @@ -81,6 +94,10 @@ public interface CfnMasterProps { /** * @param detectorId The unique ID of the detector of the GuardDuty member account. + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) @@ -89,7 +106,9 @@ public interface CfnMasterProps { /** * @param invitationId The ID of the invitation that is sent to the account designated as a * member account. - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . */ override fun invitationId(invitationId: String) { cdkBuilder.invitationId(invitationId) @@ -109,10 +128,16 @@ public interface CfnMasterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnMasterProps, - ) : CdkObject(cdkObject), CfnMasterProps { + ) : CdkObject(cdkObject), + CfnMasterProps { /** * The unique ID of the detector of the GuardDuty member account. * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-detectorid) */ override fun detectorId(): String = unwrap(this).getDetectorId() @@ -120,7 +145,9 @@ public interface CfnMasterProps { /** * The ID of the invitation that is sent to the account designated as a member account. * - * You can find the invitation ID by using the ListInvitation action of the GuardDuty API. + * You can find the invitation ID by running the + * [ListInvitations](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListInvitations.html) + * in the *GuardDuty API Reference* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-invitationid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMember.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMember.kt index b91c2a177a..c4907f9765 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMember.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMember.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMember( cdkObject: software.amazon.awscdk.services.guardduty.CfnMember, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMemberProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMemberProps.kt index 8596528944..6951fe6924 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMemberProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnMemberProps.kt @@ -201,7 +201,8 @@ public interface CfnMemberProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnMemberProps, - ) : CdkObject(cdkObject), CfnMemberProps { + ) : CdkObject(cdkObject), + CfnMemberProps { /** * The ID of the detector associated with the GuardDuty service to add the member to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSet.kt index 000531f70c..dc14ee7b3f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSet.kt @@ -22,7 +22,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * The `AWS::GuardDuty::ThreatIntelSet` resource specifies a new `ThreatIntelSet` . * * A `ThreatIntelSet` consists of known malicious IP addresses. GuardDuty generates findings based - * on the `ThreatIntelSet` when it is activated. + * on the `ThreatIntelSet` after it is activated. * * Example: * @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnThreatIntelSet( cdkObject: software.amazon.awscdk.services.guardduty.CfnThreatIntelSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -86,19 +88,19 @@ public open class CfnThreatIntelSet( } /** - * + * The unique ID of the `threatIntelSet` . */ public open fun attrId(): String = unwrap(this).getAttrId() /** - * The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet - * for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . */ public open fun detectorId(): String? = unwrap(this).getDetectorId() /** - * The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet - * for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . */ public open fun detectorId(`value`: String) { unwrap(this).setDetectorId(`value`) @@ -200,12 +202,17 @@ public open class CfnThreatIntelSet( public fun activate(activate: IResolvable) /** - * The unique ID of the detector of the GuardDuty account that you want to create a - * threatIntelSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid) - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create a threatIntelSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create a `ThreatIntelSet` . */ public fun detectorId(detectorId: String) @@ -296,12 +303,17 @@ public open class CfnThreatIntelSet( } /** - * The unique ID of the detector of the GuardDuty account that you want to create a - * threatIntelSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid) - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create a threatIntelSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create a `ThreatIntelSet` . */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSetProps.kt index 97fdaebe36..441831712a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/guardduty/CfnThreatIntelSetProps.kt @@ -47,8 +47,13 @@ public interface CfnThreatIntelSetProps { public fun activate(): Any? = unwrap(this).getActivate() /** - * The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet - * for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid) */ @@ -107,8 +112,12 @@ public interface CfnThreatIntelSetProps { public fun activate(activate: IResolvable) /** - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create a threatIntelSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create a `ThreatIntelSet` . + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ public fun detectorId(detectorId: String) @@ -170,8 +179,12 @@ public interface CfnThreatIntelSetProps { } /** - * @param detectorId The unique ID of the detector of the GuardDuty account that you want to - * create a threatIntelSet for. + * @param detectorId The unique ID of the detector of the GuardDuty account for which you want + * to create a `ThreatIntelSet` . + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. */ override fun detectorId(detectorId: String) { cdkBuilder.detectorId(detectorId) @@ -227,7 +240,8 @@ public interface CfnThreatIntelSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.guardduty.CfnThreatIntelSetProps, - ) : CdkObject(cdkObject), CfnThreatIntelSetProps { + ) : CdkObject(cdkObject), + CfnThreatIntelSetProps { /** * A Boolean value that indicates whether GuardDuty is to start using the uploaded * ThreatIntelSet. @@ -237,8 +251,13 @@ public interface CfnThreatIntelSetProps { override fun activate(): Any? = unwrap(this).getActivate() /** - * The unique ID of the detector of the GuardDuty account that you want to create a - * threatIntelSet for. + * The unique ID of the detector of the GuardDuty account for which you want to create a + * `ThreatIntelSet` . + * + * To find the `detectorId` in the current Region, see the + * Settings page in the GuardDuty console, or run the + * [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + * API. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastore.kt index b53751a0c5..211001471a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastore.kt @@ -35,7 +35,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatastore( cdkObject: software.amazon.awscdk.services.healthimaging.CfnDatastore, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.healthimaging.CfnDatastore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastoreProps.kt index 9201916668..dc54735da7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthimaging/CfnDatastoreProps.kt @@ -105,7 +105,8 @@ public interface CfnDatastoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.healthimaging.CfnDatastoreProps, - ) : CdkObject(cdkObject), CfnDatastoreProps { + ) : CdkObject(cdkObject), + CfnDatastoreProps { /** * The data store name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastore.kt index 043c50b00d..5c24fcdb46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastore.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFHIRDatastore( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -678,7 +680,8 @@ public open class CfnFHIRDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore.CreatedAtProperty, - ) : CdkObject(cdkObject), CreatedAtProperty { + ) : CdkObject(cdkObject), + CreatedAtProperty { /** * Nanoseconds. * @@ -908,7 +911,8 @@ public open class CfnFHIRDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore.IdentityProviderConfigurationProperty, - ) : CdkObject(cdkObject), IdentityProviderConfigurationProperty { + ) : CdkObject(cdkObject), + IdentityProviderConfigurationProperty { /** * The authorization strategy that you selected when you created the data store. * @@ -1071,7 +1075,8 @@ public open class CfnFHIRDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore.KmsEncryptionConfigProperty, - ) : CdkObject(cdkObject), KmsEncryptionConfigProperty { + ) : CdkObject(cdkObject), + KmsEncryptionConfigProperty { /** * The type of customer-managed-key(CMK) used for encryption. * @@ -1171,7 +1176,8 @@ public open class CfnFHIRDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore.PreloadDataConfigProperty, - ) : CdkObject(cdkObject), PreloadDataConfigProperty { + ) : CdkObject(cdkObject), + PreloadDataConfigProperty { /** * The type of preloaded data. * @@ -1294,7 +1300,8 @@ public open class CfnFHIRDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastore.SseConfigurationProperty, - ) : CdkObject(cdkObject), SseConfigurationProperty { + ) : CdkObject(cdkObject), + SseConfigurationProperty { /** * The server-side encryption key configuration for a customer provided encryption key (CMK). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastoreProps.kt index d153cb1bf5..acf31194bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/healthlake/CfnFHIRDatastoreProps.kt @@ -324,7 +324,8 @@ public interface CfnFHIRDatastoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.healthlake.CfnFHIRDatastoreProps, - ) : CdkObject(cdkObject), CfnFHIRDatastoreProps { + ) : CdkObject(cdkObject), + CfnFHIRDatastoreProps { /** * The user generated name for the data store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKey.kt index 5a6d57ae58..261244ee64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKey.kt @@ -27,7 +27,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class AccessKey( cdkObject: software.amazon.awscdk.services.iam.AccessKey, -) : Resource(cdkObject), IAccessKey { +) : Resource(cdkObject), + IAccessKey { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKeyProps.kt index a7eadc5940..9a45c14792 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AccessKeyProps.kt @@ -119,7 +119,8 @@ public interface AccessKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.AccessKeyProps, - ) : CdkObject(cdkObject), AccessKeyProps { + ) : CdkObject(cdkObject), + AccessKeyProps { /** * A CloudFormation-specific value that signifies the access key should be replaced/rotated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToPrincipalPolicyResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToPrincipalPolicyResult.kt index 7bccabbdea..93750ddaa7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToPrincipalPolicyResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToPrincipalPolicyResult.kt @@ -81,7 +81,8 @@ public interface AddToPrincipalPolicyResult { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.AddToPrincipalPolicyResult, - ) : CdkObject(cdkObject), AddToPrincipalPolicyResult { + ) : CdkObject(cdkObject), + AddToPrincipalPolicyResult { /** * Dependable which allows depending on the policy change being applied. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToResourcePolicyResult.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToResourcePolicyResult.kt index ca477c83a5..4389a4c666 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToResourcePolicyResult.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/AddToResourcePolicyResult.kt @@ -80,7 +80,8 @@ public interface AddToResourcePolicyResult { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.AddToResourcePolicyResult, - ) : CdkObject(cdkObject), AddToResourcePolicyResult { + ) : CdkObject(cdkObject), + AddToResourcePolicyResult { /** * Dependable which allows depending on the policy change being applied. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ArnPrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ArnPrincipal.kt index 183384f5ef..d34aa29949 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ArnPrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ArnPrincipal.kt @@ -16,15 +16,15 @@ import kotlin.String * ``` * // Option 2: create your custom mastersRole with scoped assumeBy arn as the Cluster prop. Switch * to this role from the AWS console. - * import io.cloudshiftdev.awscdk.cdk.lambdalayer.kubectl.v29.KubectlV29Layer; + * import io.cloudshiftdev.awscdk.cdk.lambdalayer.kubectl.v30.KubectlV30Layer; * Vpc vpc; * Role mastersRole = Role.Builder.create(this, "MastersRole") * .assumedBy(new ArnPrincipal("arn_for_trusted_principal")) * .build(); * Cluster cluster = Cluster.Builder.create(this, "EksCluster") * .vpc(vpc) - * .version(KubernetesVersion.V1_29) - * .kubectlLayer(new KubectlV29Layer(this, "KubectlLayer")) + * .version(KubernetesVersion.V1_30) + * .kubectlLayer(new KubectlV30Layer(this, "KubectlLayer")) * .mastersRole(mastersRole) * .build(); * mastersRole.addToPolicy(PolicyStatement.Builder.create() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKey.kt index a44cdac99d..90095bdd15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKey.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessKey( cdkObject: software.amazon.awscdk.services.iam.CfnAccessKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKeyProps.kt index 5626e3aecf..7cc7b6c79f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnAccessKeyProps.kt @@ -125,7 +125,8 @@ public interface CfnAccessKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnAccessKeyProps, - ) : CdkObject(cdkObject), CfnAccessKeyProps { + ) : CdkObject(cdkObject), + CfnAccessKeyProps { /** * This value is specific to CloudFormation and can only be *incremented* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroup.kt index f696bf5573..eb23e06e00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroup.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.iam.CfnGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.CfnGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -582,7 +583,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnGroup.PolicyProperty, - ) : CdkObject(cdkObject), PolicyProperty { + ) : CdkObject(cdkObject), + PolicyProperty { /** * The policy document. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicy.kt index df16a7e64d..4476d80f2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicy.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroupPolicy( cdkObject: software.amazon.awscdk.services.iam.CfnGroupPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicyProps.kt index ad2b789bbf..b4ead0feb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupPolicyProps.kt @@ -168,7 +168,8 @@ public interface CfnGroupPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnGroupPolicyProps, - ) : CdkObject(cdkObject), CfnGroupPolicyProps { + ) : CdkObject(cdkObject), + CfnGroupPolicyProps { /** * The name of the group to associate the policy with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupProps.kt index 5f0f09d78f..6c2865b5c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnGroupProps.kt @@ -369,7 +369,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * The name of the group to create. Do not include the path in this value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfile.kt index bee1b5f63b..05d13585d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfile.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceProfile( cdkObject: software.amazon.awscdk.services.iam.CfnInstanceProfile, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfileProps.kt index 4cc878a2ae..6ba64cbdb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnInstanceProfileProps.kt @@ -173,7 +173,8 @@ public interface CfnInstanceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnInstanceProfileProps, - ) : CdkObject(cdkObject), CfnInstanceProfileProps { + ) : CdkObject(cdkObject), + CfnInstanceProfileProps { /** * The name of the instance profile to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicy.kt index ab6f46285e..d9eca10eae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicy.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnManagedPolicy( cdkObject: software.amazon.awscdk.services.iam.CfnManagedPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -72,38 +73,28 @@ public open class CfnManagedPolicy( ) /** - * The number of principal entities (users, groups, and roles) that the policy is attached to. + * */ public open fun attrAttachmentCount(): Number = unwrap(this).getAttrAttachmentCount() /** - * The date and time, in [ISO 8601 date-time - * format](https://docs.aws.amazon.com/http://www.iso.org/iso/iso8601) , when the policy was created. + * */ public open fun attrCreateDate(): String = unwrap(this).getAttrCreateDate() /** - * The identifier for the version of the policy that is set as the default (operative) version. * - * For more information about policy versions, see [Versioning for managed - * policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) in the - * *IAM User Guide* . */ public open fun attrDefaultVersionId(): String = unwrap(this).getAttrDefaultVersionId() /** - * Specifies whether the policy can be attached to an IAM user, group, or role. + * */ public open fun attrIsAttachable(): IResolvable = unwrap(this).getAttrIsAttachable().let(IResolvable::wrap) /** - * The number of entities (users and roles) for which the policy is used as the permissions - * boundary. * - * For more information about permissions boundaries, see [Permissions boundaries for IAM - * identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) in - * the *IAM User Guide* . */ public open fun attrPermissionsBoundaryUsageCount(): Number = unwrap(this).getAttrPermissionsBoundaryUsageCount() @@ -114,22 +105,12 @@ public open class CfnManagedPolicy( public open fun attrPolicyArn(): String = unwrap(this).getAttrPolicyArn() /** - * The stable and unique string identifying the policy. * - * For more information about IDs, see [IAM - * identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM - * User Guide* . */ public open fun attrPolicyId(): String = unwrap(this).getAttrPolicyId() /** - * The date and time, in [ISO 8601 date-time - * format](https://docs.aws.amazon.com/http://www.iso.org/iso/iso8601) , when the policy was last - * updated. * - * When a policy has only one version, this field contains the date and time when the policy was - * created. When a policy has more than one version, this field contains the date and time when the - * most recent policy version was created. */ public open fun attrUpdateDate(): String = unwrap(this).getAttrUpdateDate() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicyProps.kt index 14325f5c95..75b34eb794 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnManagedPolicyProps.kt @@ -510,7 +510,8 @@ public interface CfnManagedPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnManagedPolicyProps, - ) : CdkObject(cdkObject), CfnManagedPolicyProps { + ) : CdkObject(cdkObject), + CfnManagedPolicyProps { /** * A friendly description of the policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProvider.kt index edb36fd6ee..5229c99378 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProvider.kt @@ -56,13 +56,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.iam.*; * CfnOIDCProvider cfnOIDCProvider = CfnOIDCProvider.Builder.create(this, "MyCfnOIDCProvider") - * .thumbprintList(List.of("thumbprintList")) - * // the properties below are optional * .clientIdList(List.of("clientIdList")) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) + * .thumbprintList(List.of("thumbprintList")) * .url("url") * .build(); * ``` @@ -71,7 +70,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOIDCProvider( cdkObject: software.amazon.awscdk.services.iam.CfnOIDCProvider, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.iam.CfnOIDCProvider(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -149,7 +155,7 @@ public open class CfnOIDCProvider( * A list of certificate thumbprints that are associated with the specified IAM OIDC provider * resource object. */ - public open fun thumbprintList(): List = unwrap(this).getThumbprintList() + public open fun thumbprintList(): List = unwrap(this).getThumbprintList() ?: emptyList() /** * A list of certificate thumbprints that are associated with the specified IAM OIDC provider @@ -242,6 +248,10 @@ public open class CfnOIDCProvider( * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) * @param thumbprintList A list of certificate thumbprints that are associated with the * specified IAM OIDC provider resource object. @@ -256,6 +266,10 @@ public open class CfnOIDCProvider( * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) * @param thumbprintList A list of certificate thumbprints that are associated with the * specified IAM OIDC provider resource object. @@ -347,6 +361,10 @@ public open class CfnOIDCProvider( * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) * @param thumbprintList A list of certificate thumbprints that are associated with the * specified IAM OIDC provider resource object. @@ -363,6 +381,10 @@ public open class CfnOIDCProvider( * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) * @param thumbprintList A list of certificate thumbprints that are associated with the * specified IAM OIDC provider resource object. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProviderProps.kt index e352a9f027..3c836a9e03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnOIDCProviderProps.kt @@ -20,13 +20,12 @@ import kotlin.collections.List * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.iam.*; * CfnOIDCProviderProps cfnOIDCProviderProps = CfnOIDCProviderProps.builder() - * .thumbprintList(List.of("thumbprintList")) - * // the properties below are optional * .clientIdList(List.of("clientIdList")) * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") * .build())) + * .thumbprintList(List.of("thumbprintList")) * .url("url") * .build(); * ``` @@ -65,9 +64,13 @@ public interface CfnOIDCProviderProps { * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider server + * certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) */ - public fun thumbprintList(): List + public fun thumbprintList(): List = unwrap(this).getThumbprintList() ?: emptyList() /** * The URL that the IAM OIDC provider resource object is associated with. @@ -121,19 +124,27 @@ public interface CfnOIDCProviderProps { /** * @param thumbprintList A list of certificate thumbprints that are associated with the - * specified IAM OIDC provider resource object. + * specified IAM OIDC provider resource object. * For more information, see * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . + * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. */ public fun thumbprintList(thumbprintList: List) /** * @param thumbprintList A list of certificate thumbprints that are associated with the - * specified IAM OIDC provider resource object. + * specified IAM OIDC provider resource object. * For more information, see * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . + * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. */ public fun thumbprintList(vararg thumbprintList: String) @@ -191,10 +202,14 @@ public interface CfnOIDCProviderProps { /** * @param thumbprintList A list of certificate thumbprints that are associated with the - * specified IAM OIDC provider resource object. + * specified IAM OIDC provider resource object. * For more information, see * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . + * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. */ override fun thumbprintList(thumbprintList: List) { cdkBuilder.thumbprintList(thumbprintList) @@ -202,10 +217,14 @@ public interface CfnOIDCProviderProps { /** * @param thumbprintList A list of certificate thumbprints that are associated with the - * specified IAM OIDC provider resource object. + * specified IAM OIDC provider resource object. * For more information, see * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . + * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. */ override fun thumbprintList(vararg thumbprintList: String): Unit = thumbprintList(thumbprintList.toList()) @@ -226,7 +245,8 @@ public interface CfnOIDCProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnOIDCProviderProps, - ) : CdkObject(cdkObject), CfnOIDCProviderProps { + ) : CdkObject(cdkObject), + CfnOIDCProviderProps { /** * A list of client IDs (also known as audiences) that are associated with the specified IAM * OIDC provider resource object. @@ -258,9 +278,13 @@ public interface CfnOIDCProviderProps { * [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html) * . * + * This property is optional. If it is not included, IAM will retrieve and use the top + * intermediate certificate authority (CA) thumbprint of the OpenID Connect identity provider + * server certificate. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-oidcprovider.html#cfn-iam-oidcprovider-thumbprintlist) */ - override fun thumbprintList(): List = unwrap(this).getThumbprintList() + override fun thumbprintList(): List = unwrap(this).getThumbprintList() ?: emptyList() /** * The URL that the IAM OIDC provider resource object is associated with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicy.kt index 3a4946fc14..d9ebaaf0f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicy.kt @@ -68,7 +68,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicy( cdkObject: software.amazon.awscdk.services.iam.CfnPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicyProps.kt index fa9d48aa40..9b506560a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnPolicyProps.kt @@ -335,7 +335,8 @@ public interface CfnPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnPolicyProps, - ) : CdkObject(cdkObject), CfnPolicyProps { + ) : CdkObject(cdkObject), + CfnPolicyProps { /** * The name of the group to associate the policy with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRole.kt index c90adbf121..724a563d21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRole.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRole.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRole( cdkObject: software.amazon.awscdk.services.iam.CfnRole, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -949,7 +951,8 @@ public open class CfnRole( private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnRole.PolicyProperty, - ) : CdkObject(cdkObject), PolicyProperty { + ) : CdkObject(cdkObject), + PolicyProperty { /** * The entire contents of the policy that defines permissions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicy.kt index 53bd5ba0f0..6b768971de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicy.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRolePolicy( cdkObject: software.amazon.awscdk.services.iam.CfnRolePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicyProps.kt index 2e8d4d7eab..6d8a4caacd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRolePolicyProps.kt @@ -168,7 +168,8 @@ public interface CfnRolePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnRolePolicyProps, - ) : CdkObject(cdkObject), CfnRolePolicyProps { + ) : CdkObject(cdkObject), + CfnRolePolicyProps { /** * The policy document. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRoleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRoleProps.kt index f4c1c29f81..a692928af1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRoleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnRoleProps.kt @@ -672,7 +672,8 @@ public interface CfnRoleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnRoleProps, - ) : CdkObject(cdkObject), CfnRoleProps { + ) : CdkObject(cdkObject), + CfnRoleProps { /** * The trust policy that is associated with this role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProvider.kt index 6dd5c71740..122d64eb7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProvider.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSAMLProvider( cdkObject: software.amazon.awscdk.services.iam.CfnSAMLProvider, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProviderProps.kt index 62400a5900..e68e880fa6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnSAMLProviderProps.kt @@ -187,7 +187,8 @@ public interface CfnSAMLProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnSAMLProviderProps, - ) : CdkObject(cdkObject), CfnSAMLProviderProps { + ) : CdkObject(cdkObject), + CfnSAMLProviderProps { /** * The name of the provider to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificate.kt index 17cfed93bd..cd508c1c11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificate.kt @@ -71,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServerCertificate( cdkObject: software.amazon.awscdk.services.iam.CfnServerCertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.CfnServerCertificate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificateProps.kt index e2129ee0cd..1d0df3bea3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServerCertificateProps.kt @@ -285,7 +285,8 @@ public interface CfnServerCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnServerCertificateProps, - ) : CdkObject(cdkObject), CfnServerCertificateProps { + ) : CdkObject(cdkObject), + CfnServerCertificateProps { /** * The contents of the public key certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRole.kt index 8b9b0b1067..8c287a71f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRole.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRole.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceLinkedRole( cdkObject: software.amazon.awscdk.services.iam.CfnServiceLinkedRole, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.CfnServiceLinkedRole(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRoleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRoleProps.kt index e805cd399b..8e0f7fc299 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRoleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnServiceLinkedRoleProps.kt @@ -144,7 +144,8 @@ public interface CfnServiceLinkedRoleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnServiceLinkedRoleProps, - ) : CdkObject(cdkObject), CfnServiceLinkedRoleProps { + ) : CdkObject(cdkObject), + CfnServiceLinkedRoleProps { /** * The service principal for the AWS service to which this role is attached. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUser.kt index 2defd806ab..926845f3c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUser.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.iam.CfnUser, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.CfnUser(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -967,7 +969,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnUser.LoginProfileProperty, - ) : CdkObject(cdkObject), LoginProfileProperty { + ) : CdkObject(cdkObject), + LoginProfileProperty { /** * The user's password. * @@ -1089,7 +1092,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnUser.PolicyProperty, - ) : CdkObject(cdkObject), PolicyProperty { + ) : CdkObject(cdkObject), + PolicyProperty { /** * The entire contents of the policy that defines permissions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicy.kt index 31ee703c9e..cf2db382ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicy.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserPolicy( cdkObject: software.amazon.awscdk.services.iam.CfnUserPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicyProps.kt index faa63b2237..f888c1d13f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserPolicyProps.kt @@ -168,7 +168,8 @@ public interface CfnUserPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnUserPolicyProps, - ) : CdkObject(cdkObject), CfnUserPolicyProps { + ) : CdkObject(cdkObject), + CfnUserPolicyProps { /** * The policy document. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserProps.kt index ba71523842..2e354e87bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserProps.kt @@ -664,7 +664,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * A list of group names to which you want to add the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAddition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAddition.kt index 7e5f4002f6..7ff94f7f57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAddition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAddition.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserToGroupAddition( cdkObject: software.amazon.awscdk.services.iam.CfnUserToGroupAddition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAdditionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAdditionProps.kt index 923d8a49e3..45620e9dd6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAdditionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnUserToGroupAdditionProps.kt @@ -104,7 +104,8 @@ public interface CfnUserToGroupAdditionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnUserToGroupAdditionProps, - ) : CdkObject(cdkObject), CfnUserToGroupAdditionProps { + ) : CdkObject(cdkObject), + CfnUserToGroupAdditionProps { /** * The name of the group to update. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADevice.kt index db9270fba3..0a8008a12e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADevice.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVirtualMFADevice( cdkObject: software.amazon.awscdk.services.iam.CfnVirtualMFADevice, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADeviceProps.kt index 8188a7cbf9..e624afc8d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CfnVirtualMFADeviceProps.kt @@ -239,7 +239,8 @@ public interface CfnVirtualMFADeviceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CfnVirtualMFADeviceProps, - ) : CdkObject(cdkObject), CfnVirtualMFADeviceProps { + ) : CdkObject(cdkObject), + CfnVirtualMFADeviceProps { /** * The path for the virtual MFA device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CommonGrantOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CommonGrantOptions.kt index e1274dde16..2d50aecd46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CommonGrantOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CommonGrantOptions.kt @@ -143,7 +143,8 @@ public interface CommonGrantOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CommonGrantOptions, - ) : CdkObject(cdkObject), CommonGrantOptions { + ) : CdkObject(cdkObject), + CommonGrantOptions { /** * The actions to grant. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CompositeDependable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CompositeDependable.kt index a1625f874e..6f87cdc068 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CompositeDependable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CompositeDependable.kt @@ -25,7 +25,8 @@ import io.cloudshiftdev.constructs.IDependable */ public open class CompositeDependable( cdkObject: software.amazon.awscdk.services.iam.CompositeDependable, -) : CdkObject(cdkObject), IDependable { +) : CdkObject(cdkObject), + IDependable { public constructor(dependables: IDependable) : this(software.amazon.awscdk.services.iam.CompositeDependable(dependables.let(IDependable.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CustomizeRolesOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CustomizeRolesOptions.kt index 168dfce217..5a21bc0588 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CustomizeRolesOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/CustomizeRolesOptions.kt @@ -113,7 +113,8 @@ public interface CustomizeRolesOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.CustomizeRolesOptions, - ) : CdkObject(cdkObject), CustomizeRolesOptions { + ) : CdkObject(cdkObject), + CustomizeRolesOptions { /** * Whether or not to synthesize the resource into the CFN template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleArnOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleArnOptions.kt index a5a63a8c52..ef7f76ee27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleArnOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleArnOptions.kt @@ -130,7 +130,8 @@ public interface FromRoleArnOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.FromRoleArnOptions, - ) : CdkObject(cdkObject), FromRoleArnOptions { + ) : CdkObject(cdkObject), + FromRoleArnOptions { /** * For immutable roles: add grants to resources instead of dropping them. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleNameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleNameOptions.kt index 82af7207d6..3e39d56cf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleNameOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/FromRoleNameOptions.kt @@ -99,7 +99,8 @@ public interface FromRoleNameOptions : FromRoleArnOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.FromRoleNameOptions, - ) : CdkObject(cdkObject), FromRoleNameOptions { + ) : CdkObject(cdkObject), + FromRoleNameOptions { /** * For immutable roles: add grants to resources instead of dropping them. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Grant.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Grant.kt index c474966813..bc4ab2b1c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Grant.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Grant.kt @@ -33,7 +33,8 @@ import software.constructs.IConstruct as SoftwareConstructsIConstruct */ public open class Grant( cdkObject: software.amazon.awscdk.services.iam.Grant, -) : CdkObject(cdkObject), IDependable { +) : CdkObject(cdkObject), + IDependable { /** * Make sure this grant is applied before the given constructs are deployed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalAndResourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalAndResourceOptions.kt index fb0faebdec..48fb753751 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalAndResourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalAndResourceOptions.kt @@ -203,7 +203,8 @@ public interface GrantOnPrincipalAndResourceOptions : CommonGrantOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.GrantOnPrincipalAndResourceOptions, - ) : CdkObject(cdkObject), GrantOnPrincipalAndResourceOptions { + ) : CdkObject(cdkObject), + GrantOnPrincipalAndResourceOptions { /** * The actions to grant. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalOptions.kt index 7a8be09df5..9c5eed27fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantOnPrincipalOptions.kt @@ -142,7 +142,8 @@ public interface GrantOnPrincipalOptions : CommonGrantOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.GrantOnPrincipalOptions, - ) : CdkObject(cdkObject), GrantOnPrincipalOptions { + ) : CdkObject(cdkObject), + GrantOnPrincipalOptions { /** * The actions to grant. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantWithResourceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantWithResourceOptions.kt index a0dcffff41..c74d5960da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantWithResourceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GrantWithResourceOptions.kt @@ -182,7 +182,8 @@ public interface GrantWithResourceOptions : CommonGrantOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.GrantWithResourceOptions, - ) : CdkObject(cdkObject), GrantWithResourceOptions { + ) : CdkObject(cdkObject), + GrantWithResourceOptions { /** * The actions to grant. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Group.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Group.kt index 59a61af469..85a0e53c2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Group.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Group.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Group( cdkObject: software.amazon.awscdk.services.iam.Group, -) : Resource(cdkObject), IGroup { +) : Resource(cdkObject), + IGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.Group(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GroupProps.kt index 7a51da951c..4e730a64bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/GroupProps.kt @@ -160,7 +160,8 @@ public interface GroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.GroupProps, - ) : CdkObject(cdkObject), GroupProps { + ) : CdkObject(cdkObject), + GroupProps { /** * A name for the IAM group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAccessKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAccessKey.kt index 211a4e4748..434f951587 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAccessKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAccessKey.kt @@ -30,7 +30,8 @@ public interface IAccessKey : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IAccessKey, - ) : CdkObject(cdkObject), IAccessKey { + ) : CdkObject(cdkObject), + IAccessKey { /** * The Access Key ID. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAssumeRolePrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAssumeRolePrincipal.kt index 0bd7dee481..beffa1b302 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAssumeRolePrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IAssumeRolePrincipal.kt @@ -43,7 +43,8 @@ public interface IAssumeRolePrincipal : IPrincipal { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IAssumeRolePrincipal, - ) : CdkObject(cdkObject), IAssumeRolePrincipal { + ) : CdkObject(cdkObject), + IAssumeRolePrincipal { /** * Add the principal to the AssumeRolePolicyDocument. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IComparablePrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IComparablePrincipal.kt index 329f1636ba..f470707ede 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IComparablePrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IComparablePrincipal.kt @@ -23,7 +23,8 @@ public interface IComparablePrincipal : IPrincipal { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IComparablePrincipal, - ) : CdkObject(cdkObject), IComparablePrincipal { + ) : CdkObject(cdkObject), + IComparablePrincipal { /** * Add to the policy of this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGrantable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGrantable.kt index 3de07ffd1d..0c0cf39f3a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGrantable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGrantable.kt @@ -16,7 +16,8 @@ public interface IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IGrantable, - ) : CdkObject(cdkObject), IGrantable { + ) : CdkObject(cdkObject), + IGrantable { /** * The principal to grant permissions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGroup.kt index 34e878e6df..be8623f8b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IGroup.kt @@ -30,7 +30,8 @@ public interface IGroup : IIdentity { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IGroup, - ) : CdkObject(cdkObject), IGroup { + ) : CdkObject(cdkObject), + IGroup { /** * Attaches a managed policy to this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IIdentity.kt index ddee4cfdc6..01fe4966b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IIdentity.kt @@ -36,7 +36,8 @@ public interface IIdentity : IPrincipal, IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IIdentity, - ) : CdkObject(cdkObject), IIdentity { + ) : CdkObject(cdkObject), + IIdentity { /** * Attaches a managed policy to this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IInstanceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IInstanceProfile.kt index 64c7705ece..69b8498a0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IInstanceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IInstanceProfile.kt @@ -32,7 +32,8 @@ public interface IInstanceProfile : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IInstanceProfile, - ) : CdkObject(cdkObject), IInstanceProfile { + ) : CdkObject(cdkObject), + IInstanceProfile { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IManagedPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IManagedPolicy.kt index 615d776884..76aa0d6de0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IManagedPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IManagedPolicy.kt @@ -17,7 +17,8 @@ public interface IManagedPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IManagedPolicy, - ) : CdkObject(cdkObject), IManagedPolicy { + ) : CdkObject(cdkObject), + IManagedPolicy { /** * The ARN of the managed policy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IOpenIdConnectProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IOpenIdConnectProvider.kt index 0e26a985bc..f44b6aeefd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IOpenIdConnectProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IOpenIdConnectProvider.kt @@ -27,7 +27,8 @@ public interface IOpenIdConnectProvider : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IOpenIdConnectProvider, - ) : CdkObject(cdkObject), IOpenIdConnectProvider { + ) : CdkObject(cdkObject), + IOpenIdConnectProvider { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPolicy.kt index 2ed2f7b457..7e533a43e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPolicy.kt @@ -24,7 +24,8 @@ public interface IPolicy : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IPolicy, - ) : CdkObject(cdkObject), IPolicy { + ) : CdkObject(cdkObject), + IPolicy { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPrincipal.kt index 4e90bb9fdd..7d20b5cfcf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IPrincipal.kt @@ -65,7 +65,8 @@ public interface IPrincipal : IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IPrincipal, - ) : CdkObject(cdkObject), IPrincipal { + ) : CdkObject(cdkObject), + IPrincipal { /** * Add to the policy of this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IResourceWithPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IResourceWithPolicy.kt index 0aa94ef26e..0bc03f6949 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IResourceWithPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IResourceWithPolicy.kt @@ -35,7 +35,8 @@ public interface IResourceWithPolicy : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IResourceWithPolicy, - ) : CdkObject(cdkObject), IResourceWithPolicy { + ) : CdkObject(cdkObject), + IResourceWithPolicy { /** * Add a statement to the resource's resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IRole.kt index 182bb76160..d53bc140e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IRole.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IRole.kt @@ -50,7 +50,8 @@ public interface IRole : IIdentity { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IRole, - ) : CdkObject(cdkObject), IRole { + ) : CdkObject(cdkObject), + IRole { /** * Attaches a managed policy to this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ISamlProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ISamlProvider.kt index f4260d4710..abb4bf6c23 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ISamlProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ISamlProvider.kt @@ -22,7 +22,8 @@ public interface ISamlProvider : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.ISamlProvider, - ) : CdkObject(cdkObject), ISamlProvider { + ) : CdkObject(cdkObject), + ISamlProvider { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IUser.kt index b351a18760..22a411c4d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/IUser.kt @@ -37,7 +37,8 @@ public interface IUser : IIdentity { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.IUser, - ) : CdkObject(cdkObject), IUser { + ) : CdkObject(cdkObject), + IUser { /** * Attaches a managed policy to this principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfile.kt index 9b888f271a..c3a41ce954 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfile.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class InstanceProfile( cdkObject: software.amazon.awscdk.services.iam.InstanceProfile, -) : Resource(cdkObject), IInstanceProfile { +) : Resource(cdkObject), + IInstanceProfile { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.InstanceProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileAttributes.kt index 2a1cb93d66..b942403dcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileAttributes.kt @@ -81,7 +81,8 @@ public interface InstanceProfileAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.InstanceProfileAttributes, - ) : CdkObject(cdkObject), InstanceProfileAttributes { + ) : CdkObject(cdkObject), + InstanceProfileAttributes { /** * The ARN of the InstanceProfile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileProps.kt index 9d34db6180..c32165c217 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/InstanceProfileProps.kt @@ -110,7 +110,8 @@ public interface InstanceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.InstanceProfileProps, - ) : CdkObject(cdkObject), InstanceProfileProps { + ) : CdkObject(cdkObject), + InstanceProfileProps { /** * The name of the InstanceProfile to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRole.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRole.kt index a42f26bb14..06b43ba247 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRole.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRole.kt @@ -51,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LazyRole( cdkObject: software.amazon.awscdk.services.iam.LazyRole, -) : Resource(cdkObject), IRole { +) : Resource(cdkObject), + IRole { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRoleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRoleProps.kt index 5e7e571139..ccf59f7df8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRoleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/LazyRoleProps.kt @@ -282,7 +282,8 @@ public interface LazyRoleProps : RoleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.LazyRoleProps, - ) : CdkObject(cdkObject), LazyRoleProps { + ) : CdkObject(cdkObject), + LazyRoleProps { /** * The IAM principal (i.e. `new ServicePrincipal('sns.amazonaws.com')`) which can assume this * role. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicy.kt index 5fd0d457e1..64105fe2e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicy.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ManagedPolicy( cdkObject: software.amazon.awscdk.services.iam.ManagedPolicy, -) : Resource(cdkObject), IManagedPolicy, IGrantable { +) : Resource(cdkObject), + IManagedPolicy, + IGrantable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.ManagedPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicyProps.kt index d4e1cc7a37..dc35bc7f8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ManagedPolicyProps.kt @@ -355,7 +355,8 @@ public interface ManagedPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.ManagedPolicyProps, - ) : CdkObject(cdkObject), ManagedPolicyProps { + ) : CdkObject(cdkObject), + ManagedPolicyProps { /** * A description of the managed policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProvider.kt index 0f359d1ab7..e25f5b4237 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProvider.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class OpenIdConnectProvider( cdkObject: software.amazon.awscdk.services.iam.OpenIdConnectProvider, -) : Resource(cdkObject), IOpenIdConnectProvider { +) : Resource(cdkObject), + IOpenIdConnectProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProviderProps.kt index 6c0a004b91..8256275c5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/OpenIdConnectProviderProps.kt @@ -271,7 +271,8 @@ public interface OpenIdConnectProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.OpenIdConnectProviderProps, - ) : CdkObject(cdkObject), OpenIdConnectProviderProps { + ) : CdkObject(cdkObject), + OpenIdConnectProviderProps { /** * A list of client IDs (also known as audiences). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Policy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Policy.kt index 4e6e5e0269..b806dcc597 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Policy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Policy.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Policy( cdkObject: software.amazon.awscdk.services.iam.Policy, -) : Resource(cdkObject), IPolicy, IGrantable { +) : Resource(cdkObject), + IPolicy, + IGrantable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.Policy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocument.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocument.kt index 09f1d636da..f18f5526a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocument.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocument.kt @@ -40,7 +40,8 @@ import kotlin.jvm.JvmName */ public open class PolicyDocument( cdkObject: software.amazon.awscdk.services.iam.PolicyDocument, -) : CdkObject(cdkObject), IResolvable { +) : CdkObject(cdkObject), + IResolvable { public constructor() : this(software.amazon.awscdk.services.iam.PolicyDocument() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocumentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocumentProps.kt index a17da619ac..dca85f2279 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocumentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyDocumentProps.kt @@ -148,7 +148,8 @@ public interface PolicyDocumentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.PolicyDocumentProps, - ) : CdkObject(cdkObject), PolicyDocumentProps { + ) : CdkObject(cdkObject), + PolicyDocumentProps { /** * Automatically assign Statement Ids to all statements. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyProps.kt index 6820e5451a..302ac0b3e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyProps.kt @@ -318,7 +318,8 @@ public interface PolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.PolicyProps, - ) : CdkObject(cdkObject), PolicyProps { + ) : CdkObject(cdkObject), + PolicyProps { /** * Initial PolicyDocument to use for this Policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatement.kt index 9ac0614e93..02025e324c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatement.kt @@ -19,17 +19,19 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Bucket destinationBucket; - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") - * .sources(List.of(Source.asset(join(__dirname, "source-files")))) - * .destinationBucket(destinationBucket) + * Bucket accessLogsBucket = Bucket.Builder.create(this, "AccessLogsBucket") + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) * .build(); - * deployment.handlerRole.addToPolicy( + * accessLogsBucket.addToResourcePolicy( * PolicyStatement.Builder.create() - * .actions(List.of("kms:Decrypt", "kms:DescribeKey")) - * .effect(Effect.ALLOW) - * .resources(List.of("<encryption key ARN>")) + * .actions(List.of("s3:*")) + * .resources(List.of(accessLogsBucket.getBucketArn(), accessLogsBucket.arnForObjects("*"))) + * .principals(List.of(new AnyPrincipal())) * .build()); + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .serverAccessLogsBucket(accessLogsBucket) + * .serverAccessLogsPrefix("logs") + * .build(); * ``` */ public open class PolicyStatement( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatementProps.kt index 409ab98e52..6a8fffe314 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PolicyStatementProps.kt @@ -17,17 +17,19 @@ import kotlin.collections.Map * Example: * * ``` - * Bucket destinationBucket; - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") - * .sources(List.of(Source.asset(join(__dirname, "source-files")))) - * .destinationBucket(destinationBucket) + * Bucket accessLogsBucket = Bucket.Builder.create(this, "AccessLogsBucket") + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) * .build(); - * deployment.handlerRole.addToPolicy( + * accessLogsBucket.addToResourcePolicy( * PolicyStatement.Builder.create() - * .actions(List.of("kms:Decrypt", "kms:DescribeKey")) - * .effect(Effect.ALLOW) - * .resources(List.of("<encryption key ARN>")) + * .actions(List.of("s3:*")) + * .resources(List.of(accessLogsBucket.getBucketArn(), accessLogsBucket.arnForObjects("*"))) + * .principals(List.of(new AnyPrincipal())) * .build()); + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .serverAccessLogsBucket(accessLogsBucket) + * .serverAccessLogsPrefix("logs") + * .build(); * ``` */ public interface PolicyStatementProps { @@ -297,7 +299,8 @@ public interface PolicyStatementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.PolicyStatementProps, - ) : CdkObject(cdkObject), PolicyStatementProps { + ) : CdkObject(cdkObject), + PolicyStatementProps { /** * List of actions to add to the statement. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PrincipalBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PrincipalBase.kt index fddddca6ba..d1ff312c44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PrincipalBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/PrincipalBase.kt @@ -30,7 +30,9 @@ import kotlin.jvm.JvmName */ public abstract class PrincipalBase( cdkObject: software.amazon.awscdk.services.iam.PrincipalBase, -) : CdkObject(cdkObject), IAssumeRolePrincipal, IComparablePrincipal { +) : CdkObject(cdkObject), + IAssumeRolePrincipal, + IComparablePrincipal { /** * Add the principal to the AssumeRolePolicyDocument. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Role.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Role.kt index e92fa29f35..575f95051e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Role.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/Role.kt @@ -25,20 +25,24 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * IChainable definition; - * Role role = Role.Builder.create(this, "Role") - * .assumedBy(new ServicePrincipal("lambda.amazonaws.com")) + * // Option 3: Create a new role that allows the account root principal to assume. Add this role in + * the `system:masters` and witch to this role from the AWS console. + * Cluster cluster; + * Role consoleReadOnlyRole = Role.Builder.create(this, "ConsoleReadOnlyRole") + * .assumedBy(new ArnPrincipal("arn_for_trusted_principal")) * .build(); - * StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine") - * .definitionBody(DefinitionBody.fromChainable(definition)) - * .build(); - * // Give role permission to get execution history of ALL executions for the state machine - * stateMachine.grantExecution(role, "states:GetExecutionHistory"); + * consoleReadOnlyRole.addToPolicy(PolicyStatement.Builder.create() + * .actions(List.of("eks:AccessKubernetesApi", "eks:Describe*", "eks:List*")) + * .resources(List.of(cluster.getClusterArn())) + * .build()); + * // Add this role to system:masters RBAC group + * cluster.awsAuth.addMastersRole(consoleReadOnlyRole); * ``` */ public open class Role( cdkObject: software.amazon.awscdk.services.iam.Role, -) : Resource(cdkObject), IRole { +) : Resource(cdkObject), + IRole { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/RoleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/RoleProps.kt index ac20397f36..e0b41dcf6e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/RoleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/RoleProps.kt @@ -390,7 +390,8 @@ public interface RoleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.RoleProps, - ) : CdkObject(cdkObject), RoleProps { + ) : CdkObject(cdkObject), + RoleProps { /** * The IAM principal (i.e. `new ServicePrincipal('sns.amazonaws.com')`) which can assume this * role. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProvider.kt index 04c9ad00e4..d9d0488066 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProvider.kt @@ -25,7 +25,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SamlProvider( cdkObject: software.amazon.awscdk.services.iam.SamlProvider, -) : Resource(cdkObject), ISamlProvider { +) : Resource(cdkObject), + ISamlProvider { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProviderProps.kt index 0f3f0de01b..c309b05e4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/SamlProviderProps.kt @@ -101,7 +101,8 @@ public interface SamlProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.SamlProviderProps, - ) : CdkObject(cdkObject), SamlProviderProps { + ) : CdkObject(cdkObject), + SamlProviderProps { /** * An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document * includes the issuer's name, expiration information, and keys that can be used to validate the diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipal.kt index b3099a5543..bbea1415e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipal.kt @@ -15,15 +15,15 @@ import kotlin.collections.Map * Example: * * ``` - * Role lambdaRole = Role.Builder.create(this, "Role") + * IChainable definition; + * Role role = Role.Builder.create(this, "Role") * .assumedBy(new ServicePrincipal("lambda.amazonaws.com")) - * .description("Example role...") * .build(); - * Stream stream = Stream.Builder.create(this, "MyEncryptedStream") - * .encryption(StreamEncryption.KMS) + * StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine") + * .definitionBody(DefinitionBody.fromChainable(definition)) * .build(); - * // give lambda permissions to read stream - * stream.grantRead(lambdaRole); + * // Give role permission to get execution history of ALL executions for the state machine + * stateMachine.grantExecution(role, "states:GetExecutionHistory"); * ``` */ public open class ServicePrincipal( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipalOpts.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipalOpts.kt index 6f0202534e..4a6c4c889d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipalOpts.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/ServicePrincipalOpts.kt @@ -145,7 +145,8 @@ public interface ServicePrincipalOpts { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.ServicePrincipalOpts, - ) : CdkObject(cdkObject), ServicePrincipalOpts { + ) : CdkObject(cdkObject), + ServicePrincipalOpts { /** * Additional conditions to add to the Service Principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipal.kt index d2187dcf3f..691fd83d0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipal.kt @@ -36,7 +36,8 @@ import kotlin.jvm.JvmName */ public open class UnknownPrincipal( cdkObject: software.amazon.awscdk.services.iam.UnknownPrincipal, -) : CdkObject(cdkObject), IPrincipal { +) : CdkObject(cdkObject), + IPrincipal { public constructor(props: UnknownPrincipalProps) : this(software.amazon.awscdk.services.iam.UnknownPrincipal(props.let(UnknownPrincipalProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipalProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipalProps.kt index 9a45dc8d7e..c2ac779258 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipalProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UnknownPrincipalProps.kt @@ -58,7 +58,8 @@ public interface UnknownPrincipalProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.UnknownPrincipalProps, - ) : CdkObject(cdkObject), UnknownPrincipalProps { + ) : CdkObject(cdkObject), + UnknownPrincipalProps { /** * The resource the role proxy is for. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/User.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/User.kt index efae069daf..54d4ea0cfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/User.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/User.kt @@ -30,7 +30,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class User( cdkObject: software.amazon.awscdk.services.iam.User, -) : Resource(cdkObject), IIdentity, IUser { +) : Resource(cdkObject), + IIdentity, + IUser { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iam.User(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserAttributes.kt index 091f9b9d80..67fb5f9783 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserAttributes.kt @@ -56,7 +56,8 @@ public interface UserAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.UserAttributes, - ) : CdkObject(cdkObject), UserAttributes { + ) : CdkObject(cdkObject), + UserAttributes { /** * The ARN of the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserProps.kt index 31b4ed8cb3..965028a13d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/UserProps.kt @@ -299,7 +299,8 @@ public interface UserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.UserProps, - ) : CdkObject(cdkObject), UserProps { + ) : CdkObject(cdkObject), + UserProps { /** * Groups to add this user to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/WithoutPolicyUpdatesOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/WithoutPolicyUpdatesOptions.kt index af8d6274aa..1dbfc4baa5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/WithoutPolicyUpdatesOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iam/WithoutPolicyUpdatesOptions.kt @@ -71,7 +71,8 @@ public interface WithoutPolicyUpdatesOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.iam.WithoutPolicyUpdatesOptions, - ) : CdkObject(cdkObject), WithoutPolicyUpdatesOptions { + ) : CdkObject(cdkObject), + WithoutPolicyUpdatesOptions { /** * Add grants to resources instead of dropping them. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroup.kt index c97fcc8344..39965eeb0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroup.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.identitystore.CfnGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -67,12 +68,12 @@ public open class CfnGroup( } /** - * A string containing the name of the group. + * The display name value for the group. */ public open fun displayName(): String = unwrap(this).getDisplayName() /** - * A string containing the name of the group. + * The display name value for the group. */ public open fun displayName(`value`: String) { unwrap(this).setDisplayName(`value`) @@ -113,12 +114,15 @@ public open class CfnGroup( public fun description(description: String) /** - * A string containing the name of the group. + * The display name value for the group. * - * This value is commonly displayed when the group is referenced. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-displayname) - * @param displayName A string containing the name of the group. + * @param displayName The display name value for the group. */ public fun displayName(displayName: String) @@ -149,12 +153,15 @@ public open class CfnGroup( } /** - * A string containing the name of the group. + * The display name value for the group. * - * This value is commonly displayed when the group is referenced. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-displayname) - * @param displayName A string containing the name of the group. + * @param displayName The display name value for the group. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembership.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembership.kt index 1a92f3a332..7a53fbbc74 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembership.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembership.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroupMembership( cdkObject: software.amazon.awscdk.services.identitystore.CfnGroupMembership, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -63,12 +64,12 @@ public open class CfnGroupMembership( public open fun attrMembershipId(): String = unwrap(this).getAttrMembershipId() /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. */ public open fun groupId(): String = unwrap(this).getGroupId() /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. */ public open fun groupId(`value`: String) { unwrap(this).setGroupId(`value`) @@ -128,10 +129,10 @@ public open class CfnGroupMembership( @CdkDslMarker public interface Builder { /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html#cfn-identitystore-groupmembership-groupid) - * @param groupId The unique identifier for a group in the identity store. + * @param groupId The identifier for a group in the identity store. */ public fun groupId(groupId: String) @@ -187,10 +188,10 @@ public open class CfnGroupMembership( = software.amazon.awscdk.services.identitystore.CfnGroupMembership.Builder.create(scope, id) /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html#cfn-identitystore-groupmembership-groupid) - * @param groupId The unique identifier for a group in the identity store. + * @param groupId The identifier for a group in the identity store. */ override fun groupId(groupId: String) { cdkBuilder.groupId(groupId) @@ -292,7 +293,7 @@ public open class CfnGroupMembership( */ public interface MemberIdProperty { /** - * The identifier for a user in the identity store. + * An object containing the identifiers of resources that can be members. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-identitystore-groupmembership-memberid.html#cfn-identitystore-groupmembership-memberid-userid) */ @@ -304,7 +305,7 @@ public open class CfnGroupMembership( @CdkDslMarker public interface Builder { /** - * @param userId The identifier for a user in the identity store. + * @param userId An object containing the identifiers of resources that can be members. */ public fun userId(userId: String) } @@ -316,7 +317,7 @@ public open class CfnGroupMembership( software.amazon.awscdk.services.identitystore.CfnGroupMembership.MemberIdProperty.builder() /** - * @param userId The identifier for a user in the identity store. + * @param userId An object containing the identifiers of resources that can be members. */ override fun userId(userId: String) { cdkBuilder.userId(userId) @@ -329,9 +330,10 @@ public open class CfnGroupMembership( private class Wrapper( cdkObject: software.amazon.awscdk.services.identitystore.CfnGroupMembership.MemberIdProperty, - ) : CdkObject(cdkObject), MemberIdProperty { + ) : CdkObject(cdkObject), + MemberIdProperty { /** - * The identifier for a user in the identity store. + * An object containing the identifiers of resources that can be members. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-identitystore-groupmembership-memberid.html#cfn-identitystore-groupmembership-memberid-userid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembershipProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembershipProps.kt index 5c469c2e31..25e2825165 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembershipProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupMembershipProps.kt @@ -33,7 +33,7 @@ import kotlin.jvm.JvmName */ public interface CfnGroupMembershipProps { /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html#cfn-identitystore-groupmembership-groupid) */ @@ -62,7 +62,7 @@ public interface CfnGroupMembershipProps { @CdkDslMarker public interface Builder { /** - * @param groupId The unique identifier for a group in the identity store. + * @param groupId The identifier for a group in the identity store. */ public fun groupId(groupId: String) @@ -101,7 +101,7 @@ public interface CfnGroupMembershipProps { software.amazon.awscdk.services.identitystore.CfnGroupMembershipProps.builder() /** - * @param groupId The unique identifier for a group in the identity store. + * @param groupId The identifier for a group in the identity store. */ override fun groupId(groupId: String) { cdkBuilder.groupId(groupId) @@ -148,9 +148,10 @@ public interface CfnGroupMembershipProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.identitystore.CfnGroupMembershipProps, - ) : CdkObject(cdkObject), CfnGroupMembershipProps { + ) : CdkObject(cdkObject), + CfnGroupMembershipProps { /** - * The unique identifier for a group in the identity store. + * The identifier for a group in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-groupmembership.html#cfn-identitystore-groupmembership-groupid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupProps.kt index 7adf298214..049b0e4fbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/identitystore/CfnGroupProps.kt @@ -36,9 +36,12 @@ public interface CfnGroupProps { public fun description(): String? = unwrap(this).getDescription() /** - * A string containing the name of the group. + * The display name value for the group. * - * This value is commonly displayed when the group is referenced. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-displayname) */ @@ -62,8 +65,11 @@ public interface CfnGroupProps { public fun description(description: String) /** - * @param displayName A string containing the name of the group. - * This value is commonly displayed when the group is referenced. + * @param displayName The display name value for the group. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. */ public fun displayName(displayName: String) @@ -85,8 +91,11 @@ public interface CfnGroupProps { } /** - * @param displayName A string containing the name of the group. - * This value is commonly displayed when the group is referenced. + * @param displayName The display name value for the group. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) @@ -105,7 +114,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.identitystore.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * A string containing the description of the group. * @@ -114,9 +124,12 @@ public interface CfnGroupProps { override fun description(): String? = unwrap(this).getDescription() /** - * A string containing the name of the group. + * The display name value for the group. * - * This value is commonly displayed when the group is referenced. + * The length limit is 1,024 characters. This value can consist of letters, accented characters, + * symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in + * this attribute. This value is specified at the time the group is created and stored as an + * attribute of the group object in the identity store. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-identitystore-group.html#cfn-identitystore-group-displayname) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponent.kt index 61cbbcbf9d..279a7687c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponent.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnComponent( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnComponent, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponentProps.kt index 1f6fdd68d7..2c3aa4a55b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnComponentProps.kt @@ -304,7 +304,8 @@ public interface CfnComponentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnComponentProps, - ) : CdkObject(cdkObject), CfnComponentProps { + ) : CdkObject(cdkObject), + CfnComponentProps { /** * The change description of the component. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipe.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipe.kt index 74872b9edf..1c9aef2311 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipe.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipe.kt @@ -85,7 +85,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContainerRecipe( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -977,7 +979,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.ComponentConfigurationProperty, - ) : CdkObject(cdkObject), ComponentConfigurationProperty { + ) : CdkObject(cdkObject), + ComponentConfigurationProperty { /** * The Amazon Resource Name (ARN) of the component. * @@ -1097,7 +1100,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.ComponentParameterProperty, - ) : CdkObject(cdkObject), ComponentParameterProperty { + ) : CdkObject(cdkObject), + ComponentParameterProperty { /** * The name of the component parameter to set. * @@ -1353,7 +1357,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.EbsInstanceBlockDeviceSpecificationProperty, - ) : CdkObject(cdkObject), EbsInstanceBlockDeviceSpecificationProperty { + ) : CdkObject(cdkObject), + EbsInstanceBlockDeviceSpecificationProperty { /** * Use to configure delete on termination of the associated device. * @@ -1582,7 +1587,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.InstanceBlockDeviceMappingProperty, - ) : CdkObject(cdkObject), InstanceBlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + InstanceBlockDeviceMappingProperty { /** * The device to which these mappings apply. * @@ -1755,7 +1761,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.InstanceConfigurationProperty, - ) : CdkObject(cdkObject), InstanceConfigurationProperty { + ) : CdkObject(cdkObject), + InstanceConfigurationProperty { /** * Defines the block devices to attach for building an instance from this Image Builder AMI. * @@ -1873,7 +1880,8 @@ public open class CfnContainerRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipe.TargetContainerRepositoryProperty, - ) : CdkObject(cdkObject), TargetContainerRepositoryProperty { + ) : CdkObject(cdkObject), + TargetContainerRepositoryProperty { /** * The name of the container repository where the output container image is stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipeProps.kt index a6d62f92b7..0a423e527a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnContainerRecipeProps.kt @@ -551,7 +551,8 @@ public interface CfnContainerRecipeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnContainerRecipeProps, - ) : CdkObject(cdkObject), CfnContainerRecipeProps { + ) : CdkObject(cdkObject), + CfnContainerRecipeProps { /** * Build and test components that are included in the container recipe. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfiguration.kt index 18bf5adb7b..1fa1ffc1e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfiguration.kt @@ -75,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDistributionConfiguration( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -575,7 +577,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.AmiDistributionConfigurationProperty, - ) : CdkObject(cdkObject), AmiDistributionConfigurationProperty { + ) : CdkObject(cdkObject), + AmiDistributionConfigurationProperty { /** * The tags to apply to AMIs distributed to this Region. * @@ -788,7 +791,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.ContainerDistributionConfigurationProperty, - ) : CdkObject(cdkObject), ContainerDistributionConfigurationProperty { + ) : CdkObject(cdkObject), + ContainerDistributionConfigurationProperty { /** * Tags that are attached to the container distribution configuration. * @@ -1119,7 +1123,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.DistributionProperty, - ) : CdkObject(cdkObject), DistributionProperty { + ) : CdkObject(cdkObject), + DistributionProperty { /** * The specific AMI settings, such as launch permissions and AMI tags. * @@ -1444,7 +1449,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.FastLaunchConfigurationProperty, - ) : CdkObject(cdkObject), FastLaunchConfigurationProperty { + ) : CdkObject(cdkObject), + FastLaunchConfigurationProperty { /** * The owner account ID for the fast-launch enabled Windows AMI. * @@ -1610,7 +1616,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.FastLaunchLaunchTemplateSpecificationProperty, - ) : CdkObject(cdkObject), FastLaunchLaunchTemplateSpecificationProperty { + ) : CdkObject(cdkObject), + FastLaunchLaunchTemplateSpecificationProperty { /** * The ID of the launch template to use for faster launching for a Windows AMI. * @@ -1712,7 +1719,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.FastLaunchSnapshotConfigurationProperty, - ) : CdkObject(cdkObject), FastLaunchSnapshotConfigurationProperty { + ) : CdkObject(cdkObject), + FastLaunchSnapshotConfigurationProperty { /** * The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows * AMI. @@ -1949,7 +1957,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.LaunchPermissionConfigurationProperty, - ) : CdkObject(cdkObject), LaunchPermissionConfigurationProperty { + ) : CdkObject(cdkObject), + LaunchPermissionConfigurationProperty { /** * The ARN for an AWS Organization that you want to share your AMI with. * @@ -2122,7 +2131,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.LaunchTemplateConfigurationProperty, - ) : CdkObject(cdkObject), LaunchTemplateConfigurationProperty { + ) : CdkObject(cdkObject), + LaunchTemplateConfigurationProperty { /** * The account ID that this configuration applies to. * @@ -2247,7 +2257,8 @@ public open class CfnDistributionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.TargetContainerRepositoryProperty, - ) : CdkObject(cdkObject), TargetContainerRepositoryProperty { + ) : CdkObject(cdkObject), + TargetContainerRepositoryProperty { /** * The name of the container repository where the output container image is stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfigurationProps.kt index 750b2ecf4f..ed456118cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnDistributionConfigurationProps.kt @@ -185,7 +185,8 @@ public interface CfnDistributionConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnDistributionConfigurationProps, - ) : CdkObject(cdkObject), CfnDistributionConfigurationProps { + ) : CdkObject(cdkObject), + CfnDistributionConfigurationProps { /** * The description of this distribution configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImage.kt index 5df441d015..ce79403df3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImage.kt @@ -72,7 +72,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImage( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -729,9 +731,9 @@ public open class CfnImage( */ public interface EcrConfigurationProperty { /** - * Tags for Image Builder to apply to the output container image that &INS; + * Tags for Image Builder to apply to the output container image that Amazon Inspector scans. * - * scans. Tags can help you identify and manage your scanned images. + * Tags can help you identify and manage your scanned images. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-ecrconfiguration.html#cfn-imagebuilder-image-ecrconfiguration-containertags) */ @@ -757,15 +759,15 @@ public open class CfnImage( public interface Builder { /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ public fun containerTags(containerTags: List) /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ public fun containerTags(vararg containerTags: String) @@ -787,8 +789,8 @@ public open class CfnImage( /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ override fun containerTags(containerTags: List) { cdkBuilder.containerTags(containerTags) @@ -796,8 +798,8 @@ public open class CfnImage( /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ override fun containerTags(vararg containerTags: String): Unit = containerTags(containerTags.toList()) @@ -821,11 +823,12 @@ public open class CfnImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage.EcrConfigurationProperty, - ) : CdkObject(cdkObject), EcrConfigurationProperty { + ) : CdkObject(cdkObject), + EcrConfigurationProperty { /** - * Tags for Image Builder to apply to the output container image that &INS; + * Tags for Image Builder to apply to the output container image that Amazon Inspector scans. * - * scans. Tags can help you identify and manage your scanned images. + * Tags can help you identify and manage your scanned images. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-ecrconfiguration.html#cfn-imagebuilder-image-ecrconfiguration-containertags) */ @@ -990,7 +993,8 @@ public open class CfnImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage.ImageScanningConfigurationProperty, - ) : CdkObject(cdkObject), ImageScanningConfigurationProperty { + ) : CdkObject(cdkObject), + ImageScanningConfigurationProperty { /** * Contains Amazon ECR settings for vulnerability scans. * @@ -1138,7 +1142,8 @@ public open class CfnImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage.ImageTestsConfigurationProperty, - ) : CdkObject(cdkObject), ImageTestsConfigurationProperty { + ) : CdkObject(cdkObject), + ImageTestsConfigurationProperty { /** * Determines if tests should run after building the image. * @@ -1342,7 +1347,8 @@ public open class CfnImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage.WorkflowConfigurationProperty, - ) : CdkObject(cdkObject), WorkflowConfigurationProperty { + ) : CdkObject(cdkObject), + WorkflowConfigurationProperty { /** * The action to take if the workflow fails. * @@ -1480,7 +1486,8 @@ public open class CfnImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImage.WorkflowParameterProperty, - ) : CdkObject(cdkObject), WorkflowParameterProperty { + ) : CdkObject(cdkObject), + WorkflowParameterProperty { /** * The name of the workflow parameter to set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipeline.kt index 6502114aea..a7e0ce98bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipeline.kt @@ -82,7 +82,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImagePipeline( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -922,9 +924,9 @@ public open class CfnImagePipeline( */ public interface EcrConfigurationProperty { /** - * Tags for Image Builder to apply to the output container image that &INS; + * Tags for Image Builder to apply to the output container image that Amazon Inspector scans. * - * scans. Tags can help you identify and manage your scanned images. + * Tags can help you identify and manage your scanned images. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-ecrconfiguration.html#cfn-imagebuilder-imagepipeline-ecrconfiguration-containertags) */ @@ -950,15 +952,15 @@ public open class CfnImagePipeline( public interface Builder { /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ public fun containerTags(containerTags: List) /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ public fun containerTags(vararg containerTags: String) @@ -981,8 +983,8 @@ public open class CfnImagePipeline( /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ override fun containerTags(containerTags: List) { cdkBuilder.containerTags(containerTags) @@ -990,8 +992,8 @@ public open class CfnImagePipeline( /** * @param containerTags Tags for Image Builder to apply to the output container image that - * &INS;. - * scans. Tags can help you identify and manage your scanned images. + * Amazon Inspector scans. + * Tags can help you identify and manage your scanned images. */ override fun containerTags(vararg containerTags: String): Unit = containerTags(containerTags.toList()) @@ -1015,11 +1017,12 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.EcrConfigurationProperty, - ) : CdkObject(cdkObject), EcrConfigurationProperty { + ) : CdkObject(cdkObject), + EcrConfigurationProperty { /** - * Tags for Image Builder to apply to the output container image that &INS; + * Tags for Image Builder to apply to the output container image that Amazon Inspector scans. * - * scans. Tags can help you identify and manage your scanned images. + * Tags can help you identify and manage your scanned images. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-ecrconfiguration.html#cfn-imagebuilder-imagepipeline-ecrconfiguration-containertags) */ @@ -1184,7 +1187,8 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.ImageScanningConfigurationProperty, - ) : CdkObject(cdkObject), ImageScanningConfigurationProperty { + ) : CdkObject(cdkObject), + ImageScanningConfigurationProperty { /** * Contains Amazon ECR settings for vulnerability scans. * @@ -1327,7 +1331,8 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.ImageTestsConfigurationProperty, - ) : CdkObject(cdkObject), ImageTestsConfigurationProperty { + ) : CdkObject(cdkObject), + ImageTestsConfigurationProperty { /** * Defines if tests should be executed when building this image. * @@ -1482,7 +1487,8 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * The condition configures when the pipeline should trigger a new image build. * @@ -1694,7 +1700,8 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.WorkflowConfigurationProperty, - ) : CdkObject(cdkObject), WorkflowConfigurationProperty { + ) : CdkObject(cdkObject), + WorkflowConfigurationProperty { /** * The action to take if the workflow fails. * @@ -1833,7 +1840,8 @@ public open class CfnImagePipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipeline.WorkflowParameterProperty, - ) : CdkObject(cdkObject), WorkflowParameterProperty { + ) : CdkObject(cdkObject), + WorkflowParameterProperty { /** * The name of the workflow parameter to set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipelineProps.kt index bb4eece9ac..398d772a5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImagePipelineProps.kt @@ -519,7 +519,8 @@ public interface CfnImagePipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImagePipelineProps, - ) : CdkObject(cdkObject), CfnImagePipelineProps { + ) : CdkObject(cdkObject), + CfnImagePipelineProps { /** * The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageProps.kt index a8835a9f74..ee1ad6d6e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageProps.kt @@ -395,7 +395,8 @@ public interface CfnImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageProps, - ) : CdkObject(cdkObject), CfnImageProps { + ) : CdkObject(cdkObject), + CfnImageProps { /** * The Amazon Resource Name (ARN) of the container recipe that defines how images are configured * and tested. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipe.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipe.kt index 33c6210775..a4d29a9acd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipe.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipe.kt @@ -80,7 +80,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImageRecipe( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -825,7 +827,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.AdditionalInstanceConfigurationProperty, - ) : CdkObject(cdkObject), AdditionalInstanceConfigurationProperty { + ) : CdkObject(cdkObject), + AdditionalInstanceConfigurationProperty { /** * Contains settings for the Systems Manager agent on your build instance. * @@ -985,7 +988,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.ComponentConfigurationProperty, - ) : CdkObject(cdkObject), ComponentConfigurationProperty { + ) : CdkObject(cdkObject), + ComponentConfigurationProperty { /** * The Amazon Resource Name (ARN) of the component. * @@ -1105,7 +1109,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.ComponentParameterProperty, - ) : CdkObject(cdkObject), ComponentParameterProperty { + ) : CdkObject(cdkObject), + ComponentParameterProperty { /** * The name of the component parameter to set. * @@ -1362,7 +1367,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty, - ) : CdkObject(cdkObject), EbsInstanceBlockDeviceSpecificationProperty { + ) : CdkObject(cdkObject), + EbsInstanceBlockDeviceSpecificationProperty { /** * Configures delete on termination of the associated device. * @@ -1601,7 +1607,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.InstanceBlockDeviceMappingProperty, - ) : CdkObject(cdkObject), InstanceBlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + InstanceBlockDeviceMappingProperty { /** * The device to which these mappings apply. * @@ -1741,7 +1748,8 @@ public open class CfnImageRecipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipe.SystemsManagerAgentProperty, - ) : CdkObject(cdkObject), SystemsManagerAgentProperty { + ) : CdkObject(cdkObject), + SystemsManagerAgentProperty { /** * Controls whether the Systems Manager agent is removed from your final build image, prior to * creating the new AMI. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipeProps.kt index 38d773e7b8..e66cfbd253 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnImageRecipeProps.kt @@ -384,7 +384,8 @@ public interface CfnImageRecipeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnImageRecipeProps, - ) : CdkObject(cdkObject), CfnImageRecipeProps { + ) : CdkObject(cdkObject), + CfnImageRecipeProps { /** * Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build * and test your image configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfiguration.kt index df3efdef97..6d181a112e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfiguration.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInfrastructureConfiguration( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -890,7 +892,8 @@ public open class CfnInfrastructureConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty, - ) : CdkObject(cdkObject), InstanceMetadataOptionsProperty { + ) : CdkObject(cdkObject), + InstanceMetadataOptionsProperty { /** * Limit the number of hops that an instance metadata request can traverse to reach its * destination. @@ -1024,7 +1027,8 @@ public open class CfnInfrastructureConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.LoggingProperty, - ) : CdkObject(cdkObject), LoggingProperty { + ) : CdkObject(cdkObject), + LoggingProperty { /** * The Amazon S3 logging configuration. * @@ -1126,7 +1130,8 @@ public open class CfnInfrastructureConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.S3LogsProperty, - ) : CdkObject(cdkObject), S3LogsProperty { + ) : CdkObject(cdkObject), + S3LogsProperty { /** * The S3 bucket in which to store the logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfigurationProps.kt index 25fa20ad9d..670a12b36d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnInfrastructureConfigurationProps.kt @@ -438,7 +438,8 @@ public interface CfnInfrastructureConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfigurationProps, - ) : CdkObject(cdkObject), CfnInfrastructureConfigurationProps { + ) : CdkObject(cdkObject), + CfnInfrastructureConfigurationProps { /** * The description of the infrastructure configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicy.kt index 62859c02cb..0420e4337b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicy.kt @@ -88,7 +88,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLifecyclePolicy( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -616,7 +617,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Specifies the resources that the lifecycle policy applies to. * @@ -876,7 +878,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.AmiExclusionRulesProperty, - ) : CdkObject(cdkObject), AmiExclusionRulesProperty { + ) : CdkObject(cdkObject), + AmiExclusionRulesProperty { /** * Configures whether public AMIs are excluded from the lifecycle action. * @@ -1069,7 +1072,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ExclusionRulesProperty, - ) : CdkObject(cdkObject), ExclusionRulesProperty { + ) : CdkObject(cdkObject), + ExclusionRulesProperty { /** * Lists configuration values that apply to AMIs that Image Builder should exclude from the * lifecycle action. @@ -1256,7 +1260,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * For age-based filters, this is the number of resources to keep on hand after the lifecycle * `DELETE` action is applied. @@ -1458,7 +1463,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.IncludeResourcesProperty, - ) : CdkObject(cdkObject), IncludeResourcesProperty { + ) : CdkObject(cdkObject), + IncludeResourcesProperty { /** * Specifies whether the lifecycle action should apply to distributed AMIs. * @@ -1587,7 +1593,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.LastLaunchedProperty, - ) : CdkObject(cdkObject), LastLaunchedProperty { + ) : CdkObject(cdkObject), + LastLaunchedProperty { /** * Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the * last instance launched from the AMI. @@ -1837,7 +1844,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.PolicyDetailProperty, - ) : CdkObject(cdkObject), PolicyDetailProperty { + ) : CdkObject(cdkObject), + PolicyDetailProperty { /** * Configuration details for the policy action. * @@ -1957,7 +1965,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.RecipeSelectionProperty, - ) : CdkObject(cdkObject), RecipeSelectionProperty { + ) : CdkObject(cdkObject), + RecipeSelectionProperty { /** * The name of an Image Builder recipe that the lifecycle policy uses for resource selection. * @@ -2116,7 +2125,8 @@ public open class CfnLifecyclePolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.ResourceSelectionProperty, - ) : CdkObject(cdkObject), ResourceSelectionProperty { + ) : CdkObject(cdkObject), + ResourceSelectionProperty { /** * A list of recipes that are used as selection criteria for the output images that the * lifecycle policy applies to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicyProps.kt index 542e77c530..cf3cd1b1ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnLifecyclePolicyProps.kt @@ -310,7 +310,8 @@ public interface CfnLifecyclePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicyProps, - ) : CdkObject(cdkObject), CfnLifecyclePolicyProps { + ) : CdkObject(cdkObject), + CfnLifecyclePolicyProps { /** * Optional description for the lifecycle policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflow.kt index 1d031892e3..23c4172c72 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflow.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkflow( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnWorkflow, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflowProps.kt index 5bf4fba584..727963b95e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/imagebuilder/CfnWorkflowProps.kt @@ -292,7 +292,8 @@ public interface CfnWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.imagebuilder.CfnWorkflowProps, - ) : CdkObject(cdkObject), CfnWorkflowProps { + ) : CdkObject(cdkObject), + CfnWorkflowProps { /** * Describes what change has been made in this version of the workflow, or what makes this * version different from other versions of the workflow. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTarget.kt index ee71ca54da..8d28435700 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTarget.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssessmentTarget( cdkObject: software.amazon.awscdk.services.inspector.CfnAssessmentTarget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.inspector.CfnAssessmentTarget(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTargetProps.kt index 4ec29efebf..eb3566b332 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTargetProps.kt @@ -94,7 +94,8 @@ public interface CfnAssessmentTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps, - ) : CdkObject(cdkObject), CfnAssessmentTargetProps { + ) : CdkObject(cdkObject), + CfnAssessmentTargetProps { /** * The name of the Amazon Inspector assessment target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplate.kt index ca0cccaacf..f6368f093d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplate.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssessmentTemplate( cdkObject: software.amazon.awscdk.services.inspector.CfnAssessmentTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplateProps.kt index f1982bfedb..02cf4a2cd6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnAssessmentTemplateProps.kt @@ -213,7 +213,8 @@ public interface CfnAssessmentTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.inspector.CfnAssessmentTemplateProps, - ) : CdkObject(cdkObject), CfnAssessmentTemplateProps { + ) : CdkObject(cdkObject), + CfnAssessmentTemplateProps { /** * The ARN of the assessment target to be included in the assessment template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroup.kt index c0f2143c6b..ceed60e6f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroup.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceGroup( cdkObject: software.amazon.awscdk.services.inspector.CfnResourceGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroupProps.kt index a09b53c471..6baba79b73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspector/CfnResourceGroupProps.kt @@ -116,7 +116,8 @@ public interface CfnResourceGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.inspector.CfnResourceGroupProps, - ) : CdkObject(cdkObject), CfnResourceGroupProps { + ) : CdkObject(cdkObject), + CfnResourceGroupProps { /** * The tags (key and value pairs) that will be associated with the resource group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfiguration.kt index 63357c26d1..b4dd857dcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfiguration.kt @@ -57,14 +57,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .securityLevel("securityLevel") - * .tags(Map.of( - * "tagsKey", "tags")) * .targets(CisTargetsProperty.builder() * .accountIds(List.of("accountIds")) * // the properties below are optional * .targetResourceTags(Map.of( * "targetResourceTagsKey", List.of("targetResourceTags"))) * .build()) + * // the properties below are optional + * .tags(Map.of( + * "tagsKey", "tags")) * .build(); * ``` * @@ -72,12 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCisScanConfiguration( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { - public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : - this(software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), - id) - ) - +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -117,7 +115,7 @@ public open class CfnCisScanConfiguration( /** * The name of the CIS scan configuration. */ - public open fun scanName(): String? = unwrap(this).getScanName() + public open fun scanName(): String = unwrap(this).getScanName() /** * The name of the CIS scan configuration. @@ -129,7 +127,7 @@ public open class CfnCisScanConfiguration( /** * The CIS scan configuration's schedule. */ - public open fun schedule(): Any? = unwrap(this).getSchedule() + public open fun schedule(): Any = unwrap(this).getSchedule() /** * The CIS scan configuration's schedule. @@ -156,7 +154,7 @@ public open class CfnCisScanConfiguration( /** * The CIS scan configuration's CIS Benchmark level. */ - public open fun securityLevel(): String? = unwrap(this).getSecurityLevel() + public open fun securityLevel(): String = unwrap(this).getSecurityLevel() /** * The CIS scan configuration's CIS Benchmark level. @@ -180,7 +178,7 @@ public open class CfnCisScanConfiguration( /** * The CIS scan configuration's targets. */ - public open fun targets(): Any? = unwrap(this).getTargets() + public open fun targets(): Any = unwrap(this).getTargets() /** * The CIS scan configuration's targets. @@ -512,7 +510,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.CisTargetsProperty, - ) : CdkObject(cdkObject), CisTargetsProperty { + ) : CdkObject(cdkObject), + CisTargetsProperty { /** * The CIS target account ids. * @@ -631,7 +630,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.DailyScheduleProperty, - ) : CdkObject(cdkObject), DailyScheduleProperty { + ) : CdkObject(cdkObject), + DailyScheduleProperty { /** * The schedule start time. * @@ -763,7 +763,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.MonthlyScheduleProperty, - ) : CdkObject(cdkObject), MonthlyScheduleProperty { + ) : CdkObject(cdkObject), + MonthlyScheduleProperty { /** * The monthly schedule's day. * @@ -1013,7 +1014,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * A daily schedule. * @@ -1135,7 +1137,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.TimeProperty, - ) : CdkObject(cdkObject), TimeProperty { + ) : CdkObject(cdkObject), + TimeProperty { /** * The time of day in 24-hour format (00:00). * @@ -1283,7 +1286,8 @@ public open class CfnCisScanConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.WeeklyScheduleProperty, - ) : CdkObject(cdkObject), WeeklyScheduleProperty { + ) : CdkObject(cdkObject), + WeeklyScheduleProperty { /** * The weekly schedule's days. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfigurationProps.kt index cdc58e48fb..a368b75b67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnCisScanConfigurationProps.kt @@ -49,14 +49,15 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .securityLevel("securityLevel") - * .tags(Map.of( - * "tagsKey", "tags")) * .targets(CisTargetsProperty.builder() * .accountIds(List.of("accountIds")) * // the properties below are optional * .targetResourceTags(Map.of( * "targetResourceTagsKey", List.of("targetResourceTags"))) * .build()) + * // the properties below are optional + * .tags(Map.of( + * "tagsKey", "tags")) * .build(); * ``` * @@ -68,21 +69,21 @@ public interface CfnCisScanConfigurationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-scanname) */ - public fun scanName(): String? = unwrap(this).getScanName() + public fun scanName(): String /** * The CIS scan configuration's schedule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-schedule) */ - public fun schedule(): Any? = unwrap(this).getSchedule() + public fun schedule(): Any /** * The CIS scan configuration's CIS Benchmark level. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-securitylevel) */ - public fun securityLevel(): String? = unwrap(this).getSecurityLevel() + public fun securityLevel(): String /** * The CIS scan configuration's tags. @@ -96,7 +97,7 @@ public interface CfnCisScanConfigurationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-targets) */ - public fun targets(): Any? = unwrap(this).getTargets() + public fun targets(): Any /** * A builder for [CfnCisScanConfigurationProps] @@ -104,29 +105,29 @@ public interface CfnCisScanConfigurationProps { @CdkDslMarker public interface Builder { /** - * @param scanName The name of the CIS scan configuration. + * @param scanName The name of the CIS scan configuration. */ public fun scanName(scanName: String) /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ public fun schedule(schedule: IResolvable) /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ public fun schedule(schedule: CfnCisScanConfiguration.ScheduleProperty) /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9e5d89b1f14380c623267eb6d54a690ab5b9f2db13c45d7ac3539f5c5dac0052") public fun schedule(schedule: CfnCisScanConfiguration.ScheduleProperty.Builder.() -> Unit) /** - * @param securityLevel The CIS scan configuration's CIS Benchmark level. + * @param securityLevel The CIS scan configuration's CIS Benchmark level. */ public fun securityLevel(securityLevel: String) @@ -136,17 +137,17 @@ public interface CfnCisScanConfigurationProps { public fun tags(tags: Map) /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ public fun targets(targets: IResolvable) /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ public fun targets(targets: CfnCisScanConfiguration.CisTargetsProperty) /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2d8ed6caf72d6da3ffd06074e11313246cd4fcd0567453d59b22ba1443286dff") @@ -159,28 +160,28 @@ public interface CfnCisScanConfigurationProps { software.amazon.awscdk.services.inspectorv2.CfnCisScanConfigurationProps.builder() /** - * @param scanName The name of the CIS scan configuration. + * @param scanName The name of the CIS scan configuration. */ override fun scanName(scanName: String) { cdkBuilder.scanName(scanName) } /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ override fun schedule(schedule: IResolvable) { cdkBuilder.schedule(schedule.let(IResolvable.Companion::unwrap)) } /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ override fun schedule(schedule: CfnCisScanConfiguration.ScheduleProperty) { cdkBuilder.schedule(schedule.let(CfnCisScanConfiguration.ScheduleProperty.Companion::unwrap)) } /** - * @param schedule The CIS scan configuration's schedule. + * @param schedule The CIS scan configuration's schedule. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9e5d89b1f14380c623267eb6d54a690ab5b9f2db13c45d7ac3539f5c5dac0052") @@ -188,7 +189,7 @@ public interface CfnCisScanConfigurationProps { Unit = schedule(CfnCisScanConfiguration.ScheduleProperty(schedule)) /** - * @param securityLevel The CIS scan configuration's CIS Benchmark level. + * @param securityLevel The CIS scan configuration's CIS Benchmark level. */ override fun securityLevel(securityLevel: String) { cdkBuilder.securityLevel(securityLevel) @@ -202,21 +203,21 @@ public interface CfnCisScanConfigurationProps { } /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ override fun targets(targets: IResolvable) { cdkBuilder.targets(targets.let(IResolvable.Companion::unwrap)) } /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ override fun targets(targets: CfnCisScanConfiguration.CisTargetsProperty) { cdkBuilder.targets(targets.let(CfnCisScanConfiguration.CisTargetsProperty.Companion::unwrap)) } /** - * @param targets The CIS scan configuration's targets. + * @param targets The CIS scan configuration's targets. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2d8ed6caf72d6da3ffd06074e11313246cd4fcd0567453d59b22ba1443286dff") @@ -229,27 +230,28 @@ public interface CfnCisScanConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnCisScanConfigurationProps, - ) : CdkObject(cdkObject), CfnCisScanConfigurationProps { + ) : CdkObject(cdkObject), + CfnCisScanConfigurationProps { /** * The name of the CIS scan configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-scanname) */ - override fun scanName(): String? = unwrap(this).getScanName() + override fun scanName(): String = unwrap(this).getScanName() /** * The CIS scan configuration's schedule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-schedule) */ - override fun schedule(): Any? = unwrap(this).getSchedule() + override fun schedule(): Any = unwrap(this).getSchedule() /** * The CIS scan configuration's CIS Benchmark level. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-securitylevel) */ - override fun securityLevel(): String? = unwrap(this).getSecurityLevel() + override fun securityLevel(): String = unwrap(this).getSecurityLevel() /** * The CIS scan configuration's tags. @@ -263,7 +265,7 @@ public interface CfnCisScanConfigurationProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-targets) */ - override fun targets(): Any? = unwrap(this).getTargets() + override fun targets(): Any = unwrap(this).getTargets() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilter.kt index 2ea17f797c..699c2dbca2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilter.kt @@ -189,7 +189,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFilter( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -503,7 +504,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.DateFilterProperty, - ) : CdkObject(cdkObject), DateFilterProperty { + ) : CdkObject(cdkObject), + DateFilterProperty { /** * A timestamp representing the end of the time period filtered on. * @@ -2067,7 +2069,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.FilterCriteriaProperty, - ) : CdkObject(cdkObject), FilterCriteriaProperty { + ) : CdkObject(cdkObject), + FilterCriteriaProperty { /** * Details of the AWS account IDs used to filter findings. * @@ -2398,7 +2401,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.MapFilterProperty, - ) : CdkObject(cdkObject), MapFilterProperty { + ) : CdkObject(cdkObject), + MapFilterProperty { /** * The operator to use when comparing values in the filter. * @@ -2512,7 +2516,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.NumberFilterProperty, - ) : CdkObject(cdkObject), NumberFilterProperty { + ) : CdkObject(cdkObject), + NumberFilterProperty { /** * The lowest number to be included in the filter. * @@ -2892,7 +2897,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.PackageFilterProperty, - ) : CdkObject(cdkObject), PackageFilterProperty { + ) : CdkObject(cdkObject), + PackageFilterProperty { /** * An object that contains details on the package architecture type to filter on. * @@ -3028,7 +3034,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.PortRangeFilterProperty, - ) : CdkObject(cdkObject), PortRangeFilterProperty { + ) : CdkObject(cdkObject), + PortRangeFilterProperty { /** * The port number the port range begins at. * @@ -3135,7 +3142,8 @@ public open class CfnFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilter.StringFilterProperty, - ) : CdkObject(cdkObject), StringFilterProperty { + ) : CdkObject(cdkObject), + StringFilterProperty { /** * The operator to use when comparing values in the filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilterProps.kt index 227bef3dce..2974a01e8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/inspectorv2/CfnFilterProps.kt @@ -301,7 +301,8 @@ public interface CfnFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.inspectorv2.CfnFilterProps, - ) : CdkObject(cdkObject), CfnFilterProps { + ) : CdkObject(cdkObject), + CfnFilterProps { /** * A description of the filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitor.kt index a3dcf16925..0ac166e5c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitor.kt @@ -88,7 +88,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMonitor( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1428,7 +1430,8 @@ public open class CfnMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitor.HealthEventsConfigProperty, - ) : CdkObject(cdkObject), HealthEventsConfigProperty { + ) : CdkObject(cdkObject), + HealthEventsConfigProperty { /** * The configuration that determines the threshold and other conditions for when Internet * Monitor creates a health event for a local availability issue. @@ -1582,7 +1585,8 @@ public open class CfnMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitor.InternetMeasurementsLogDeliveryProperty, - ) : CdkObject(cdkObject), InternetMeasurementsLogDeliveryProperty { + ) : CdkObject(cdkObject), + InternetMeasurementsLogDeliveryProperty { /** * The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements * to Amazon S3. @@ -1740,7 +1744,8 @@ public open class CfnMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty, - ) : CdkObject(cdkObject), LocalHealthEventsConfigProperty { + ) : CdkObject(cdkObject), + LocalHealthEventsConfigProperty { /** * The health event threshold percentage set for a local health score. * @@ -1900,7 +1905,8 @@ public open class CfnMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitor.S3ConfigProperty, - ) : CdkObject(cdkObject), S3ConfigProperty { + ) : CdkObject(cdkObject), + S3ConfigProperty { /** * The Amazon S3 bucket name for internet measurements publishing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitorProps.kt index 7ec7fc0daf..3b16498b46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/internetmonitor/CfnMonitorProps.kt @@ -805,7 +805,8 @@ public interface CfnMonitorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.internetmonitor.CfnMonitorProps, - ) : CdkObject(cdkObject), CfnMonitorProps { + ) : CdkObject(cdkObject), + CfnMonitorProps { /** * A complex type with the configuration information that determines the threshold and other * conditions for when Internet Monitor creates a health event for an overall performance or diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfiguration.kt index 817be42384..1d8e2e7105 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfiguration.kt @@ -102,7 +102,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccountAuditConfiguration( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -577,7 +578,8 @@ public open class CfnAccountAuditConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration.AuditCheckConfigurationProperty, - ) : CdkObject(cdkObject), AuditCheckConfigurationProperty { + ) : CdkObject(cdkObject), + AuditCheckConfigurationProperty { /** * True if this audit check is enabled for this account. * @@ -1694,7 +1696,8 @@ public open class CfnAccountAuditConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration.AuditCheckConfigurationsProperty, - ) : CdkObject(cdkObject), AuditCheckConfigurationsProperty { + ) : CdkObject(cdkObject), + AuditCheckConfigurationsProperty { /** * Checks the permissiveness of an authenticated Amazon Cognito identity pool role. * @@ -1949,7 +1952,8 @@ public open class CfnAccountAuditConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty, - ) : CdkObject(cdkObject), AuditNotificationTargetConfigurationsProperty { + ) : CdkObject(cdkObject), + AuditNotificationTargetConfigurationsProperty { /** * The `Sns` notification target. * @@ -2087,7 +2091,8 @@ public open class CfnAccountAuditConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfiguration.AuditNotificationTargetProperty, - ) : CdkObject(cdkObject), AuditNotificationTargetProperty { + ) : CdkObject(cdkObject), + AuditNotificationTargetProperty { /** * True if notifications to the target are enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfigurationProps.kt index 042f77b146..4797dc4b59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAccountAuditConfigurationProps.kt @@ -348,7 +348,8 @@ public interface CfnAccountAuditConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAccountAuditConfigurationProps, - ) : CdkObject(cdkObject), CfnAccountAuditConfigurationProps { + ) : CdkObject(cdkObject), + CfnAccountAuditConfigurationProps { /** * The ID of the account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizer.kt index be07204f05..842c928d30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizer.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAuthorizer( cdkObject: software.amazon.awscdk.services.iot.CfnAuthorizer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizerProps.kt index 43df410277..05f402245c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnAuthorizerProps.kt @@ -325,7 +325,8 @@ public interface CfnAuthorizerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnAuthorizerProps, - ) : CdkObject(cdkObject), CfnAuthorizerProps { + ) : CdkObject(cdkObject), + CfnAuthorizerProps { /** * The authorizer's Lambda function ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroup.kt index 2603de89e5..b39c0903b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroup.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBillingGroup( cdkObject: software.amazon.awscdk.services.iot.CfnBillingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnBillingGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -357,7 +359,8 @@ public open class CfnBillingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnBillingGroup.BillingGroupPropertiesProperty, - ) : CdkObject(cdkObject), BillingGroupPropertiesProperty { + ) : CdkObject(cdkObject), + BillingGroupPropertiesProperty { /** * The description of the billing group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroupProps.kt index 91429ab683..ae98da6343 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnBillingGroupProps.kt @@ -152,7 +152,8 @@ public interface CfnBillingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnBillingGroupProps, - ) : CdkObject(cdkObject), CfnBillingGroupProps { + ) : CdkObject(cdkObject), + CfnBillingGroupProps { /** * The name of the billing group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificate.kt index 1159ec6a03..ef3b80fc7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificate.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCACertificate( cdkObject: software.amazon.awscdk.services.iot.CfnCACertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -617,7 +619,8 @@ public open class CfnCACertificate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnCACertificate.RegistrationConfigProperty, - ) : CdkObject(cdkObject), RegistrationConfigProperty { + ) : CdkObject(cdkObject), + RegistrationConfigProperty { /** * The ARN of the role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificateProps.kt index 41677be375..f400e986d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCACertificateProps.kt @@ -314,7 +314,8 @@ public interface CfnCACertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnCACertificateProps, - ) : CdkObject(cdkObject), CfnCACertificateProps { + ) : CdkObject(cdkObject), + CfnCACertificateProps { /** * Whether the CA certificate is configured for auto registration of device certificates. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificate.kt index 2793b2b559..de4701e2b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificate.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.iot.CfnCertificate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProps.kt index 2adc368b37..4c9f56e4d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProps.kt @@ -198,7 +198,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * The CA certificate used to sign the device certificate being registered, not available when * CertificateMode is SNI_ONLY. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProvider.kt index 91de0b517e..b1cc62d3fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProvider.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificateProvider( cdkObject: software.amazon.awscdk.services.iot.CfnCertificateProvider, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProviderProps.kt index 18caeafe4c..bfcb338445 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCertificateProviderProps.kt @@ -157,7 +157,8 @@ public interface CfnCertificateProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnCertificateProviderProps, - ) : CdkObject(cdkObject), CfnCertificateProviderProps { + ) : CdkObject(cdkObject), + CfnCertificateProviderProps { /** * A list of the operations that the certificate provider will use to generate certificates. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetric.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetric.kt index 4978f7310f..13cd766481 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetric.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetric.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomMetric( cdkObject: software.amazon.awscdk.services.iot.CfnCustomMetric, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetricProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetricProps.kt index de06d30df2..309684e3b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetricProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnCustomMetricProps.kt @@ -164,7 +164,8 @@ public interface CfnCustomMetricProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnCustomMetricProps, - ) : CdkObject(cdkObject), CfnCustomMetricProps { + ) : CdkObject(cdkObject), + CfnCustomMetricProps { /** * The friendly name in the console for the custom metric. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimension.kt index 45cfcdded0..602650d76d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimension.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDimension( cdkObject: software.amazon.awscdk.services.iot.CfnDimension, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimensionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimensionProps.kt index 75049c4881..3d24136ff7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimensionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDimensionProps.kt @@ -161,7 +161,8 @@ public interface CfnDimensionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDimensionProps, - ) : CdkObject(cdkObject), CfnDimensionProps { + ) : CdkObject(cdkObject), + CfnDimensionProps { /** * A unique identifier for the dimension. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfiguration.kt index e1c4241594..30daac3a16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfiguration.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomainConfiguration( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnDomainConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -859,7 +861,8 @@ public open class CfnDomainConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfiguration.AuthorizerConfigProperty, - ) : CdkObject(cdkObject), AuthorizerConfigProperty { + ) : CdkObject(cdkObject), + AuthorizerConfigProperty { /** * A Boolean that specifies whether the domain configuration's authorization service can be * overridden. @@ -987,7 +990,8 @@ public open class CfnDomainConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfiguration.ServerCertificateConfigProperty, - ) : CdkObject(cdkObject), ServerCertificateConfigProperty { + ) : CdkObject(cdkObject), + ServerCertificateConfigProperty { /** * A Boolean value that indicates whether Online Certificate Status Protocol (OCSP) server * certificate check is enabled or not. @@ -1118,7 +1122,8 @@ public open class CfnDomainConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfiguration.ServerCertificateSummaryProperty, - ) : CdkObject(cdkObject), ServerCertificateSummaryProperty { + ) : CdkObject(cdkObject), + ServerCertificateSummaryProperty { /** * The ARN of the server certificate. * @@ -1224,7 +1229,8 @@ public open class CfnDomainConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfiguration.TlsConfigProperty, - ) : CdkObject(cdkObject), TlsConfigProperty { + ) : CdkObject(cdkObject), + TlsConfigProperty { /** * The security policy for a domain configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfigurationProps.kt index 018f1823da..c7fa3ad2ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnDomainConfigurationProps.kt @@ -466,7 +466,8 @@ public interface CfnDomainConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnDomainConfigurationProps, - ) : CdkObject(cdkObject), CfnDomainConfigurationProps { + ) : CdkObject(cdkObject), + CfnDomainConfigurationProps { /** * An object that specifies the authorization service for a domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetric.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetric.kt index 2bd6f7a220..6fadf73153 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetric.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetric.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleetMetric( cdkObject: software.amazon.awscdk.services.iot.CfnFleetMetric, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -611,7 +613,8 @@ public open class CfnFleetMetric( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnFleetMetric.AggregationTypeProperty, - ) : CdkObject(cdkObject), AggregationTypeProperty { + ) : CdkObject(cdkObject), + AggregationTypeProperty { /** * The name of the aggregation type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetricProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetricProps.kt index 9c1b82abdf..f6b44101ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetricProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnFleetMetricProps.kt @@ -299,7 +299,8 @@ public interface CfnFleetMetricProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnFleetMetricProps, - ) : CdkObject(cdkObject), CfnFleetMetricProps { + ) : CdkObject(cdkObject), + CfnFleetMetricProps { /** * The field to aggregate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplate.kt index fb20008a21..6c15cffe26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplate.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJobTemplate( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -853,7 +855,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.AbortConfigProperty, - ) : CdkObject(cdkObject), AbortConfigProperty { + ) : CdkObject(cdkObject), + AbortConfigProperty { /** * The list of criteria that determine when and how to abort the job. * @@ -1005,7 +1008,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.AbortCriteriaProperty, - ) : CdkObject(cdkObject), AbortCriteriaProperty { + ) : CdkObject(cdkObject), + AbortCriteriaProperty { /** * The type of job action to take to initiate the job abort. * @@ -1202,7 +1206,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.ExponentialRolloutRateProperty, - ) : CdkObject(cdkObject), ExponentialRolloutRateProperty { + ) : CdkObject(cdkObject), + ExponentialRolloutRateProperty { /** * The minimum number of things that will be notified of a pending job, per minute at the * start of job rollout. @@ -1337,7 +1342,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.JobExecutionsRetryConfigProperty, - ) : CdkObject(cdkObject), JobExecutionsRetryConfigProperty { + ) : CdkObject(cdkObject), + JobExecutionsRetryConfigProperty { /** * The list of criteria that determines how many retries are allowed for each failure type for * a job. @@ -1491,7 +1497,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.JobExecutionsRolloutConfigProperty, - ) : CdkObject(cdkObject), JobExecutionsRolloutConfigProperty { + ) : CdkObject(cdkObject), + JobExecutionsRolloutConfigProperty { /** * The rate of increase for a job rollout. * @@ -1606,7 +1613,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.MaintenanceWindowProperty, - ) : CdkObject(cdkObject), MaintenanceWindowProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowProperty { /** * Displays the duration of the next maintenance window. * @@ -1748,7 +1756,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.PresignedUrlConfigProperty, - ) : CdkObject(cdkObject), PresignedUrlConfigProperty { + ) : CdkObject(cdkObject), + PresignedUrlConfigProperty { /** * How long (in seconds) pre-signed URLs are valid. * @@ -1876,7 +1885,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.RateIncreaseCriteriaProperty, - ) : CdkObject(cdkObject), RateIncreaseCriteriaProperty { + ) : CdkObject(cdkObject), + RateIncreaseCriteriaProperty { /** * The threshold for number of notified things that will initiate the increase in rate of * rollout. @@ -1985,7 +1995,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.RetryCriteriaProperty, - ) : CdkObject(cdkObject), RetryCriteriaProperty { + ) : CdkObject(cdkObject), + RetryCriteriaProperty { /** * The type of job execution failures that can initiate a job retry. * @@ -2091,7 +2102,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplate.TimeoutConfigProperty, - ) : CdkObject(cdkObject), TimeoutConfigProperty { + ) : CdkObject(cdkObject), + TimeoutConfigProperty { /** * Specifies the amount of time, in minutes, this device has to finish execution of this job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplateProps.kt index 778be38239..c4f541395e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnJobTemplateProps.kt @@ -471,7 +471,8 @@ public interface CfnJobTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnJobTemplateProps, - ) : CdkObject(cdkObject), CfnJobTemplateProps { + ) : CdkObject(cdkObject), + CfnJobTemplateProps { /** * The criteria that determine when and how a job abort takes place. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLogging.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLogging.kt index 5d0885e645..12891b50ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLogging.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLogging.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogging( cdkObject: software.amazon.awscdk.services.iot.CfnLogging, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLoggingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLoggingProps.kt index b1aa0d3c8d..4a9a940820 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLoggingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnLoggingProps.kt @@ -103,7 +103,8 @@ public interface CfnLoggingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnLoggingProps, - ) : CdkObject(cdkObject), CfnLoggingProps { + ) : CdkObject(cdkObject), + CfnLoggingProps { /** * The account ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationAction.kt index d9e729b145..274cb1edb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationAction.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMitigationAction( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -777,7 +779,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.ActionParamsProperty, - ) : CdkObject(cdkObject), ActionParamsProperty { + ) : CdkObject(cdkObject), + ActionParamsProperty { /** * Specifies the group to which you want to add the devices. * @@ -970,7 +973,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.AddThingsToThingGroupParamsProperty, - ) : CdkObject(cdkObject), AddThingsToThingGroupParamsProperty { + ) : CdkObject(cdkObject), + AddThingsToThingGroupParamsProperty { /** * Specifies if this mitigation action can move the things that triggered the mitigation * action even if they are part of one or more dynamic thing groups. @@ -1086,7 +1090,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.EnableIoTLoggingParamsProperty, - ) : CdkObject(cdkObject), EnableIoTLoggingParamsProperty { + ) : CdkObject(cdkObject), + EnableIoTLoggingParamsProperty { /** * Specifies the type of information to be logged. * @@ -1178,7 +1183,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.PublishFindingToSnsParamsProperty, - ) : CdkObject(cdkObject), PublishFindingToSnsParamsProperty { + ) : CdkObject(cdkObject), + PublishFindingToSnsParamsProperty { /** * The ARN of the topic to which you want to publish the findings. * @@ -1266,7 +1272,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.ReplaceDefaultPolicyVersionParamsProperty, - ) : CdkObject(cdkObject), ReplaceDefaultPolicyVersionParamsProperty { + ) : CdkObject(cdkObject), + ReplaceDefaultPolicyVersionParamsProperty { /** * The name of the template to be applied. * @@ -1357,7 +1364,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.UpdateCACertificateParamsProperty, - ) : CdkObject(cdkObject), UpdateCACertificateParamsProperty { + ) : CdkObject(cdkObject), + UpdateCACertificateParamsProperty { /** * The action that you want to apply to the CA certificate. * @@ -1448,7 +1456,8 @@ public open class CfnMitigationAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationAction.UpdateDeviceCertificateParamsProperty, - ) : CdkObject(cdkObject), UpdateDeviceCertificateParamsProperty { + ) : CdkObject(cdkObject), + UpdateDeviceCertificateParamsProperty { /** * The action that you want to apply to the device certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationActionProps.kt index d29a711544..a779085954 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnMitigationActionProps.kt @@ -198,7 +198,8 @@ public interface CfnMitigationActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnMitigationActionProps, - ) : CdkObject(cdkObject), CfnMitigationActionProps { + ) : CdkObject(cdkObject), + CfnMitigationActionProps { /** * The friendly name of the mitigation action. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicy.kt index 421fcd2651..47d5015251 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicy.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicy( cdkObject: software.amazon.awscdk.services.iot.CfnPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachment.kt index ac878f7861..7d2b090b49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachment.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicyPrincipalAttachment( cdkObject: software.amazon.awscdk.services.iot.CfnPolicyPrincipalAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachmentProps.kt index e22bad58ab..f7868cf520 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyPrincipalAttachmentProps.kt @@ -85,7 +85,8 @@ public interface CfnPolicyPrincipalAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnPolicyPrincipalAttachmentProps, - ) : CdkObject(cdkObject), CfnPolicyPrincipalAttachmentProps { + ) : CdkObject(cdkObject), + CfnPolicyPrincipalAttachmentProps { /** * The name of the AWS IoT policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyProps.kt index 1a961640fd..2612f62137 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnPolicyProps.kt @@ -115,7 +115,8 @@ public interface CfnPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnPolicyProps, - ) : CdkObject(cdkObject), CfnPolicyProps { + ) : CdkObject(cdkObject), + CfnPolicyProps { /** * The JSON document that describes the policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplate.kt index e4fa4d5a30..d3286085f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplate.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProvisioningTemplate( cdkObject: software.amazon.awscdk.services.iot.CfnProvisioningTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -558,7 +560,8 @@ public open class CfnProvisioningTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnProvisioningTemplate.ProvisioningHookProperty, - ) : CdkObject(cdkObject), ProvisioningHookProperty { + ) : CdkObject(cdkObject), + ProvisioningHookProperty { /** * The payload that was sent to the target function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplateProps.kt index 3cd03fe92a..508b67fc3c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnProvisioningTemplateProps.kt @@ -274,7 +274,8 @@ public interface CfnProvisioningTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnProvisioningTemplateProps, - ) : CdkObject(cdkObject), CfnProvisioningTemplateProps { + ) : CdkObject(cdkObject), + CfnProvisioningTemplateProps { /** * The description of the fleet provisioning template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLogging.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLogging.kt index ae3eb17cce..f9c8da3f0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLogging.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLogging.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceSpecificLogging( cdkObject: software.amazon.awscdk.services.iot.CfnResourceSpecificLogging, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLoggingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLoggingProps.kt index 1a0d18585e..a012ae3065 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLoggingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnResourceSpecificLoggingProps.kt @@ -108,7 +108,8 @@ public interface CfnResourceSpecificLoggingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnResourceSpecificLoggingProps, - ) : CdkObject(cdkObject), CfnResourceSpecificLoggingProps { + ) : CdkObject(cdkObject), + CfnResourceSpecificLoggingProps { /** * The default log level.Valid Values: `DEBUG | INFO | ERROR | WARN | DISABLED`. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAlias.kt index 8f39dd5fdb..b92f769e9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAlias.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoleAlias( cdkObject: software.amazon.awscdk.services.iot.CfnRoleAlias, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAliasProps.kt index 9e1ba7257f..bf61271eaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnRoleAliasProps.kt @@ -154,7 +154,8 @@ public interface CfnRoleAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnRoleAliasProps, - ) : CdkObject(cdkObject), CfnRoleAliasProps { + ) : CdkObject(cdkObject), + CfnRoleAliasProps { /** * The number of seconds for which the credential is valid. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAudit.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAudit.kt index c4c1236c2e..0aae804b56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAudit.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAudit.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScheduledAudit( cdkObject: software.amazon.awscdk.services.iot.CfnScheduledAudit, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAuditProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAuditProps.kt index 18e1bef046..a2ec13f242 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAuditProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnScheduledAuditProps.kt @@ -300,7 +300,8 @@ public interface CfnScheduledAuditProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnScheduledAuditProps, - ) : CdkObject(cdkObject), CfnScheduledAuditProps { + ) : CdkObject(cdkObject), + CfnScheduledAuditProps { /** * The day of the month on which the scheduled audit is run (if the `frequency` is "MONTHLY"). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfile.kt index be4d942d61..0bb5d60eb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfile.kt @@ -104,7 +104,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityProfile( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnSecurityProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -765,7 +767,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.AlertTargetProperty, - ) : CdkObject(cdkObject), AlertTargetProperty { + ) : CdkObject(cdkObject), + AlertTargetProperty { /** * The Amazon Resource Name (ARN) of the notification target to which alerts are sent. * @@ -1132,7 +1135,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.BehaviorCriteriaProperty, - ) : CdkObject(cdkObject), BehaviorCriteriaProperty { + ) : CdkObject(cdkObject), + BehaviorCriteriaProperty { /** * The operator that relates the thing measured ( `metric` ) to the criteria (containing a * `value` or `statisticalThreshold` ). @@ -1518,7 +1522,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.BehaviorProperty, - ) : CdkObject(cdkObject), BehaviorProperty { + ) : CdkObject(cdkObject), + BehaviorProperty { /** * The criteria that determine if a device is behaving normally in regard to the `metric` . * @@ -1657,7 +1662,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.MachineLearningDetectionConfigProperty, - ) : CdkObject(cdkObject), MachineLearningDetectionConfigProperty { + ) : CdkObject(cdkObject), + MachineLearningDetectionConfigProperty { /** * The model confidence level. * @@ -1769,7 +1775,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The name of the dimension. * @@ -1949,7 +1956,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricToRetainProperty, - ) : CdkObject(cdkObject), MetricToRetainProperty { + ) : CdkObject(cdkObject), + MetricToRetainProperty { /** * The value indicates exporting metrics related to the `MetricToRetain` when it's true. * @@ -2222,7 +2230,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricValueProperty, - ) : CdkObject(cdkObject), MetricValueProperty { + ) : CdkObject(cdkObject), + MetricValueProperty { /** * If the `comparisonOperator` calls for a set of CIDRs, use this to specify that set to be * compared with the `metric` . @@ -2367,7 +2376,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricsExportConfigProperty, - ) : CdkObject(cdkObject), MetricsExportConfigProperty { + ) : CdkObject(cdkObject), + MetricsExportConfigProperty { /** * The MQTT topic that Device Defender Detect should publish messages to for metrics export. * @@ -2480,7 +2490,8 @@ public open class CfnSecurityProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfile.StatisticalThresholdProperty, - ) : CdkObject(cdkObject), StatisticalThresholdProperty { + ) : CdkObject(cdkObject), + StatisticalThresholdProperty { /** * The percentile that resolves to a threshold value by which compliance with a behavior is * determined. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfileProps.kt index 50aac7577d..57e0b4599f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSecurityProfileProps.kt @@ -408,7 +408,8 @@ public interface CfnSecurityProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSecurityProfileProps, - ) : CdkObject(cdkObject), CfnSecurityProfileProps { + ) : CdkObject(cdkObject), + CfnSecurityProfileProps { /** * A list of metrics whose data is retained (stored). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackage.kt index c438e3a3f1..53030d1ceb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackage.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSoftwarePackage( cdkObject: software.amazon.awscdk.services.iot.CfnSoftwarePackage, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnSoftwarePackage(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageProps.kt index db6d69a87e..762bc0d3d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageProps.kt @@ -111,7 +111,8 @@ public interface CfnSoftwarePackageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSoftwarePackageProps, - ) : CdkObject(cdkObject), CfnSoftwarePackageProps { + ) : CdkObject(cdkObject), + CfnSoftwarePackageProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-softwarepackage.html#cfn-iot-softwarepackage-description) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersion.kt index 771888c420..54a8bfbfaa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersion.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSoftwarePackageVersion( cdkObject: software.amazon.awscdk.services.iot.CfnSoftwarePackageVersion, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersionProps.kt index 111b09c70f..7fa13dd011 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnSoftwarePackageVersionProps.kt @@ -166,7 +166,8 @@ public interface CfnSoftwarePackageVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnSoftwarePackageVersionProps, - ) : CdkObject(cdkObject), CfnSoftwarePackageVersionProps { + ) : CdkObject(cdkObject), + CfnSoftwarePackageVersionProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-softwarepackageversion.html#cfn-iot-softwarepackageversion-attributes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThing.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThing.kt index 68baec1440..d358eb2a9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThing.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThing.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnThing( cdkObject: software.amazon.awscdk.services.iot.CfnThing, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnThing(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -335,7 +336,8 @@ public open class CfnThing( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty, - ) : CdkObject(cdkObject), AttributePayloadProperty { + ) : CdkObject(cdkObject), + AttributePayloadProperty { /** * A JSON string containing up to three key-value pair in JSON format. For example:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroup.kt index efb80a1984..0a8296b808 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroup.kt @@ -67,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnThingGroup( cdkObject: software.amazon.awscdk.services.iot.CfnThingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnThingGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -463,7 +465,8 @@ public open class CfnThingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingGroup.AttributePayloadProperty, - ) : CdkObject(cdkObject), AttributePayloadProperty { + ) : CdkObject(cdkObject), + AttributePayloadProperty { /** * A JSON string containing up to three key-value pair in JSON format. For example:. * @@ -597,7 +600,8 @@ public open class CfnThingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingGroup.ThingGroupPropertiesProperty, - ) : CdkObject(cdkObject), ThingGroupPropertiesProperty { + ) : CdkObject(cdkObject), + ThingGroupPropertiesProperty { /** * The thing group attributes in JSON format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroupProps.kt index 42fae4a749..61d6dc7562 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingGroupProps.kt @@ -206,7 +206,8 @@ public interface CfnThingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingGroupProps, - ) : CdkObject(cdkObject), CfnThingGroupProps { + ) : CdkObject(cdkObject), + CfnThingGroupProps { /** * The parent thing group name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachment.kt index 5da626f6e2..f5b7e93d7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachment.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnThingPrincipalAttachment( cdkObject: software.amazon.awscdk.services.iot.CfnThingPrincipalAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachmentProps.kt index 26d5a04f4a..e5dff1a72f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingPrincipalAttachmentProps.kt @@ -85,7 +85,8 @@ public interface CfnThingPrincipalAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingPrincipalAttachmentProps, - ) : CdkObject(cdkObject), CfnThingPrincipalAttachmentProps { + ) : CdkObject(cdkObject), + CfnThingPrincipalAttachmentProps { /** * The principal, which can be a certificate ARN (as returned from the `CreateCertificate` * operation) or an Amazon Cognito ID. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingProps.kt index ead28d034c..2f35a91955 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingProps.kt @@ -129,7 +129,8 @@ public interface CfnThingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingProps, - ) : CdkObject(cdkObject), CfnThingProps { + ) : CdkObject(cdkObject), + CfnThingProps { /** * A string that contains up to three key value pairs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingType.kt index e0bd67d636..6823bff0f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingType.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnThingType( cdkObject: software.amazon.awscdk.services.iot.CfnThingType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnThingType(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -490,7 +492,8 @@ public open class CfnThingType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingType.ThingTypePropertiesProperty, - ) : CdkObject(cdkObject), ThingTypePropertiesProperty { + ) : CdkObject(cdkObject), + ThingTypePropertiesProperty { /** * A list of searchable thing attribute names. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingTypeProps.kt index 4324154688..d996d4af63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnThingTypeProps.kt @@ -225,7 +225,8 @@ public interface CfnThingTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnThingTypeProps, - ) : CdkObject(cdkObject), CfnThingTypeProps { + ) : CdkObject(cdkObject), + CfnThingTypeProps { /** * Deprecates a thing type. You can not associate new things with deprecated thing type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRule.kt index efb49ca6eb..bc794a8e6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRule.kt @@ -471,7 +471,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopicRule( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -573,7 +575,7 @@ public open class CfnTopicRule( /** * The name of the rule. * - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-rulename) * @param ruleName The name of the rule. @@ -649,7 +651,7 @@ public open class CfnTopicRule( /** * The name of the rule. * - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-rulename) * @param ruleName The name of the rule. @@ -2078,7 +2080,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Change the state of a CloudWatch alarm. * @@ -2348,7 +2351,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.AssetPropertyTimestampProperty, - ) : CdkObject(cdkObject), AssetPropertyTimestampProperty { + ) : CdkObject(cdkObject), + AssetPropertyTimestampProperty { /** * Optional. * @@ -2551,7 +2555,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.AssetPropertyValueProperty, - ) : CdkObject(cdkObject), AssetPropertyValueProperty { + ) : CdkObject(cdkObject), + AssetPropertyValueProperty { /** * Optional. * @@ -2731,7 +2736,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.AssetPropertyVariantProperty, - ) : CdkObject(cdkObject), AssetPropertyVariantProperty { + ) : CdkObject(cdkObject), + AssetPropertyVariantProperty { /** * Optional. * @@ -2908,7 +2914,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchAlarmActionProperty, - ) : CdkObject(cdkObject), CloudwatchAlarmActionProperty { + ) : CdkObject(cdkObject), + CloudwatchAlarmActionProperty { /** * The CloudWatch alarm name. * @@ -3070,7 +3077,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchLogsActionProperty, - ) : CdkObject(cdkObject), CloudwatchLogsActionProperty { + ) : CdkObject(cdkObject), + CloudwatchLogsActionProperty { /** * Indicates whether batches of log records will be extracted and uploaded into CloudWatch. * @@ -3279,7 +3287,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchMetricActionProperty, - ) : CdkObject(cdkObject), CloudwatchMetricActionProperty { + ) : CdkObject(cdkObject), + CloudwatchMetricActionProperty { /** * The CloudWatch metric name. * @@ -3591,7 +3600,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBActionProperty, - ) : CdkObject(cdkObject), DynamoDBActionProperty { + ) : CdkObject(cdkObject), + DynamoDBActionProperty { /** * The hash key name. * @@ -3827,7 +3837,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBv2ActionProperty, - ) : CdkObject(cdkObject), DynamoDBv2ActionProperty { + ) : CdkObject(cdkObject), + DynamoDBv2ActionProperty { /** * Specifies the DynamoDB table to which the message data will be written. For example:. * @@ -4009,7 +4020,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.ElasticsearchActionProperty, - ) : CdkObject(cdkObject), ElasticsearchActionProperty { + ) : CdkObject(cdkObject), + ElasticsearchActionProperty { /** * The endpoint of your OpenSearch domain. * @@ -4227,7 +4239,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.FirehoseActionProperty, - ) : CdkObject(cdkObject), FirehoseActionProperty { + ) : CdkObject(cdkObject), + FirehoseActionProperty { /** * Whether to deliver the Kinesis Data Firehose stream as a batch by using * [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) @@ -4361,7 +4374,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.HttpActionHeaderProperty, - ) : CdkObject(cdkObject), HttpActionHeaderProperty { + ) : CdkObject(cdkObject), + HttpActionHeaderProperty { /** * The HTTP header key. * @@ -4592,7 +4606,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.HttpActionProperty, - ) : CdkObject(cdkObject), HttpActionProperty { + ) : CdkObject(cdkObject), + HttpActionProperty { /** * The authentication method to use when sending data to an HTTPS endpoint. * @@ -4748,7 +4763,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.HttpAuthorizationProperty, - ) : CdkObject(cdkObject), HttpAuthorizationProperty { + ) : CdkObject(cdkObject), + HttpAuthorizationProperty { /** * Use Sig V4 authorization. * @@ -4911,7 +4927,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.IotAnalyticsActionProperty, - ) : CdkObject(cdkObject), IotAnalyticsActionProperty { + ) : CdkObject(cdkObject), + IotAnalyticsActionProperty { /** * Whether to process the action as a batch. The default value is `false` . * @@ -5142,7 +5159,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.IotEventsActionProperty, - ) : CdkObject(cdkObject), IotEventsActionProperty { + ) : CdkObject(cdkObject), + IotEventsActionProperty { /** * Whether to process the event actions as a batch. The default value is `false` . * @@ -5334,7 +5352,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.IotSiteWiseActionProperty, - ) : CdkObject(cdkObject), IotSiteWiseActionProperty { + ) : CdkObject(cdkObject), + IotSiteWiseActionProperty { /** * A list of asset property value entries. * @@ -5449,7 +5468,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.KafkaActionHeaderProperty, - ) : CdkObject(cdkObject), KafkaActionHeaderProperty { + ) : CdkObject(cdkObject), + KafkaActionHeaderProperty { /** * The key of the Kafka header. * @@ -5676,7 +5696,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.KafkaActionProperty, - ) : CdkObject(cdkObject), KafkaActionProperty { + ) : CdkObject(cdkObject), + KafkaActionProperty { /** * Properties of the Apache Kafka producer client. * @@ -5832,7 +5853,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.KinesisActionProperty, - ) : CdkObject(cdkObject), KinesisActionProperty { + ) : CdkObject(cdkObject), + KinesisActionProperty { /** * The partition key. * @@ -5926,7 +5948,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.LambdaActionProperty, - ) : CdkObject(cdkObject), LambdaActionProperty { + ) : CdkObject(cdkObject), + LambdaActionProperty { /** * The ARN of the Lambda function. * @@ -6157,7 +6180,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.LocationActionProperty, - ) : CdkObject(cdkObject), LocationActionProperty { + ) : CdkObject(cdkObject), + LocationActionProperty { /** * The unique ID of the device providing the location data. * @@ -6356,7 +6380,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.OpenSearchActionProperty, - ) : CdkObject(cdkObject), OpenSearchActionProperty { + ) : CdkObject(cdkObject), + OpenSearchActionProperty { /** * The endpoint of your OpenSearch domain. * @@ -6620,7 +6645,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.PutAssetPropertyValueEntryProperty, - ) : CdkObject(cdkObject), PutAssetPropertyValueEntryProperty { + ) : CdkObject(cdkObject), + PutAssetPropertyValueEntryProperty { /** * The ID of the AWS IoT SiteWise asset. * @@ -6743,7 +6769,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.PutItemInputProperty, - ) : CdkObject(cdkObject), PutItemInputProperty { + ) : CdkObject(cdkObject), + PutItemInputProperty { /** * The table where the message data will be written. * @@ -7108,7 +7135,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.RepublishActionHeadersProperty, - ) : CdkObject(cdkObject), RepublishActionHeadersProperty { + ) : CdkObject(cdkObject), + RepublishActionHeadersProperty { /** * A UTF-8 encoded string that describes the content of the publishing message. * @@ -7392,7 +7420,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.RepublishActionProperty, - ) : CdkObject(cdkObject), RepublishActionProperty { + ) : CdkObject(cdkObject), + RepublishActionProperty { /** * MQTT Version 5.0 headers information. For more information, see * [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core @@ -7574,7 +7603,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.S3ActionProperty, - ) : CdkObject(cdkObject), S3ActionProperty { + ) : CdkObject(cdkObject), + S3ActionProperty { /** * The Amazon S3 bucket. * @@ -7722,7 +7752,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.SigV4AuthorizationProperty, - ) : CdkObject(cdkObject), SigV4AuthorizationProperty { + ) : CdkObject(cdkObject), + SigV4AuthorizationProperty { /** * The ARN of the signing role. * @@ -7873,7 +7904,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.SnsActionProperty, - ) : CdkObject(cdkObject), SnsActionProperty { + ) : CdkObject(cdkObject), + SnsActionProperty { /** * (Optional) The message format of the message to publish. * @@ -8025,7 +8057,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.SqsActionProperty, - ) : CdkObject(cdkObject), SqsActionProperty { + ) : CdkObject(cdkObject), + SqsActionProperty { /** * The URL of the Amazon SQS queue. * @@ -8175,7 +8208,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.StepFunctionsActionProperty, - ) : CdkObject(cdkObject), StepFunctionsActionProperty { + ) : CdkObject(cdkObject), + StepFunctionsActionProperty { /** * (Optional) A name will be given to the state machine execution consisting of this prefix * followed by a UUID. @@ -8298,7 +8332,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.TimestampProperty, - ) : CdkObject(cdkObject), TimestampProperty { + ) : CdkObject(cdkObject), + TimestampProperty { /** * The precision of the timestamp value that results from the expression described in `value` * . @@ -8540,7 +8575,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.TimestreamActionProperty, - ) : CdkObject(cdkObject), TimestreamActionProperty { + ) : CdkObject(cdkObject), + TimestreamActionProperty { /** * The name of an Amazon Timestream database that has the table to write records into. * @@ -8676,7 +8712,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.TimestreamDimensionProperty, - ) : CdkObject(cdkObject), TimestreamDimensionProperty { + ) : CdkObject(cdkObject), + TimestreamDimensionProperty { /** * The metadata dimension name. * @@ -8790,7 +8827,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.TimestreamTimestampProperty, - ) : CdkObject(cdkObject), TimestreamTimestampProperty { + ) : CdkObject(cdkObject), + TimestreamTimestampProperty { /** * The precision of the timestamp value that results from the expression described in `value` * . @@ -9468,7 +9506,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty, - ) : CdkObject(cdkObject), TopicRulePayloadProperty { + ) : CdkObject(cdkObject), + TopicRulePayloadProperty { /** * The actions associated with the rule. * @@ -9609,7 +9648,8 @@ public open class CfnTopicRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRule.UserPropertyProperty, - ) : CdkObject(cdkObject), UserPropertyProperty { + ) : CdkObject(cdkObject), + UserPropertyProperty { /** * A key to be specified in `UserProperty` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestination.kt index 5b6980fde3..34ecf60f20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestination.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopicRuleDestination( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRuleDestination, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iot.CfnTopicRuleDestination(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -408,7 +409,8 @@ public open class CfnTopicRuleDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRuleDestination.HttpUrlDestinationSummaryProperty, - ) : CdkObject(cdkObject), HttpUrlDestinationSummaryProperty { + ) : CdkObject(cdkObject), + HttpUrlDestinationSummaryProperty { /** * The URL used to confirm the HTTP topic rule destination URL. * @@ -576,7 +578,8 @@ public open class CfnTopicRuleDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRuleDestination.VpcDestinationPropertiesProperty, - ) : CdkObject(cdkObject), VpcDestinationPropertiesProperty { + ) : CdkObject(cdkObject), + VpcDestinationPropertiesProperty { /** * The ARN of a role that has permission to create and attach to elastic network interfaces * (ENIs). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestinationProps.kt index a09d36aee7..e089cfb29b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleDestinationProps.kt @@ -214,7 +214,8 @@ public interface CfnTopicRuleDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRuleDestinationProps, - ) : CdkObject(cdkObject), CfnTopicRuleDestinationProps { + ) : CdkObject(cdkObject), + CfnTopicRuleDestinationProps { /** * Properties of the HTTP URL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleProps.kt index 291c2d8e68..174b9e7a50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot/CfnTopicRuleProps.kt @@ -459,7 +459,7 @@ public interface CfnTopicRuleProps { /** * The name of the rule. * - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-rulename) */ @@ -494,7 +494,7 @@ public interface CfnTopicRuleProps { public interface Builder { /** * @param ruleName The name of the rule. - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` */ public fun ruleName(ruleName: String) @@ -545,7 +545,7 @@ public interface CfnTopicRuleProps { /** * @param ruleName The name of the rule. - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` */ override fun ruleName(ruleName: String) { cdkBuilder.ruleName(ruleName) @@ -603,11 +603,12 @@ public interface CfnTopicRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot.CfnTopicRuleProps, - ) : CdkObject(cdkObject), CfnTopicRuleProps { + ) : CdkObject(cdkObject), + CfnTopicRuleProps { /** * The name of the rule. * - * *Pattern* : `[a-zA-Z0-9:_-]+` + * *Pattern* : `^[a-zA-Z0-9_]+$` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-rulename) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDevice.kt index 99d4cbd104..3df55ddc62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDevice.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDevice( cdkObject: software.amazon.awscdk.services.iot1click.CfnDevice, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDeviceProps.kt index c0bf0ab45c..b6c12f9785 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnDeviceProps.kt @@ -99,7 +99,8 @@ public interface CfnDeviceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot1click.CfnDeviceProps, - ) : CdkObject(cdkObject), CfnDeviceProps { + ) : CdkObject(cdkObject), + CfnDeviceProps { /** * The ID of the device, such as `G030PX0312744DWM` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacement.kt index f1d5580f6e..6976aec0ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacement.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlacement( cdkObject: software.amazon.awscdk.services.iot1click.CfnPlacement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacementProps.kt index 0751f1195b..89e40ce250 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnPlacementProps.kt @@ -127,7 +127,8 @@ public interface CfnPlacementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot1click.CfnPlacementProps, - ) : CdkObject(cdkObject), CfnPlacementProps { + ) : CdkObject(cdkObject), + CfnPlacementProps { /** * The devices to associate with the placement, as defined by a mapping of zero or more * key-value pairs wherein the key is a template name and the value is a device ID. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProject.kt index ef1125df24..646f690dab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProject.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.iot1click.CfnProject, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -343,7 +344,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot1click.CfnProject.DeviceTemplateProperty, - ) : CdkObject(cdkObject), DeviceTemplateProperty { + ) : CdkObject(cdkObject), + DeviceTemplateProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-callbackoverrides) */ @@ -490,7 +492,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.iot1click.CfnProject.PlacementTemplateProperty, - ) : CdkObject(cdkObject), PlacementTemplateProperty { + ) : CdkObject(cdkObject), + PlacementTemplateProperty { /** * The default attributes (key-value pairs) to be applied to all placements using this * template. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProjectProps.kt index aecb03d513..9c8f616e67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iot1click/CfnProjectProps.kt @@ -142,7 +142,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iot1click.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The description of the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannel.kt index a257e03951..b511087b0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannel.kt @@ -63,7 +63,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotanalytics.CfnChannel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -539,7 +541,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnChannel.ChannelStorageProperty, - ) : CdkObject(cdkObject), ChannelStorageProperty { + ) : CdkObject(cdkObject), + ChannelStorageProperty { /** * Used to store channel data in an S3 bucket that you manage. * @@ -684,7 +687,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnChannel.CustomerManagedS3Property, - ) : CdkObject(cdkObject), CustomerManagedS3Property { + ) : CdkObject(cdkObject), + CustomerManagedS3Property { /** * The name of the S3 bucket in which channel data is stored. * @@ -819,7 +823,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnChannel.RetentionPeriodProperty, - ) : CdkObject(cdkObject), RetentionPeriodProperty { + ) : CdkObject(cdkObject), + RetentionPeriodProperty { /** * The number of days that message data is kept. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannelProps.kt index f3edc5906c..75e29322f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnChannelProps.kt @@ -223,7 +223,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * The name of the channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDataset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDataset.kt index c99df36a3e..e573ffdd4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDataset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDataset.kt @@ -131,7 +131,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataset( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1077,7 +1079,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * The name of the data set action by which data set contents are automatically created. * @@ -1347,7 +1350,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.ContainerActionProperty, - ) : CdkObject(cdkObject), ContainerActionProperty { + ) : CdkObject(cdkObject), + ContainerActionProperty { /** * The ARN of the role which gives permission to the system to access needed resources in * order to run the "containerAction". @@ -1572,7 +1576,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.DatasetContentDeliveryRuleDestinationProperty, - ) : CdkObject(cdkObject), DatasetContentDeliveryRuleDestinationProperty { + ) : CdkObject(cdkObject), + DatasetContentDeliveryRuleDestinationProperty { /** * Configuration information for delivery of dataset contents to AWS IoT Events . * @@ -1729,7 +1734,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.DatasetContentDeliveryRuleProperty, - ) : CdkObject(cdkObject), DatasetContentDeliveryRuleProperty { + ) : CdkObject(cdkObject), + DatasetContentDeliveryRuleProperty { /** * The destination to which dataset contents are delivered. * @@ -1823,7 +1829,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.DatasetContentVersionValueProperty, - ) : CdkObject(cdkObject), DatasetContentVersionValueProperty { + ) : CdkObject(cdkObject), + DatasetContentVersionValueProperty { /** * The name of the dataset whose latest contents are used as input to the notebook or * application. @@ -1955,7 +1962,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.DeltaTimeProperty, - ) : CdkObject(cdkObject), DeltaTimeProperty { + ) : CdkObject(cdkObject), + DeltaTimeProperty { /** * The number of seconds of estimated in-flight lag time of message data. * @@ -2087,7 +2095,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.DeltaTimeSessionWindowConfigurationProperty, - ) : CdkObject(cdkObject), DeltaTimeSessionWindowConfigurationProperty { + ) : CdkObject(cdkObject), + DeltaTimeSessionWindowConfigurationProperty { /** * A time interval. * @@ -2214,7 +2223,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * Used to limit data to that which has arrived since the last execution of the action. * @@ -2333,7 +2343,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.GlueConfigurationProperty, - ) : CdkObject(cdkObject), GlueConfigurationProperty { + ) : CdkObject(cdkObject), + GlueConfigurationProperty { /** * The name of the database in your AWS Glue Data Catalog in which the table is located. * @@ -2454,7 +2465,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.IotEventsDestinationConfigurationProperty, - ) : CdkObject(cdkObject), IotEventsDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + IotEventsDestinationConfigurationProperty { /** * The name of the AWS IoT Events input to which dataset contents are delivered. * @@ -2589,7 +2601,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.LateDataRuleConfigurationProperty, - ) : CdkObject(cdkObject), LateDataRuleConfigurationProperty { + ) : CdkObject(cdkObject), + LateDataRuleConfigurationProperty { /** * The information needed to configure a delta time session window. * @@ -2726,7 +2739,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.LateDataRuleProperty, - ) : CdkObject(cdkObject), LateDataRuleProperty { + ) : CdkObject(cdkObject), + LateDataRuleProperty { /** * The information needed to configure the late data rule. * @@ -2818,7 +2832,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.OutputFileUriValueProperty, - ) : CdkObject(cdkObject), OutputFileUriValueProperty { + ) : CdkObject(cdkObject), + OutputFileUriValueProperty { /** * The URI of the location where dataset contents are stored, usually the URI of a file in an * S3 bucket. @@ -2952,7 +2967,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.QueryActionProperty, - ) : CdkObject(cdkObject), QueryActionProperty { + ) : CdkObject(cdkObject), + QueryActionProperty { /** * Pre-filters applied to message data. * @@ -3072,7 +3088,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.ResourceConfigurationProperty, - ) : CdkObject(cdkObject), ResourceConfigurationProperty { + ) : CdkObject(cdkObject), + ResourceConfigurationProperty { /** * The type of the compute resource used to execute the `containerAction` . * @@ -3199,7 +3216,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.RetentionPeriodProperty, - ) : CdkObject(cdkObject), RetentionPeriodProperty { + ) : CdkObject(cdkObject), + RetentionPeriodProperty { /** * The number of days that message data is kept. * @@ -3443,7 +3461,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.S3DestinationConfigurationProperty, - ) : CdkObject(cdkObject), S3DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + S3DestinationConfigurationProperty { /** * The name of the S3 bucket to which dataset contents are delivered. * @@ -3575,7 +3594,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * The expression that defines when to trigger an update. * @@ -3745,7 +3765,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.TriggerProperty, - ) : CdkObject(cdkObject), TriggerProperty { + ) : CdkObject(cdkObject), + TriggerProperty { /** * The "Schedule" when the trigger is initiated. * @@ -3839,7 +3860,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.TriggeringDatasetProperty, - ) : CdkObject(cdkObject), TriggeringDatasetProperty { + ) : CdkObject(cdkObject), + TriggeringDatasetProperty { /** * The name of the data set whose content generation triggers the new data set content * generation. @@ -4081,7 +4103,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.VariableProperty, - ) : CdkObject(cdkObject), VariableProperty { + ) : CdkObject(cdkObject), + VariableProperty { /** * The value of the variable as a structure that specifies a dataset content version. * @@ -4228,7 +4251,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDataset.VersioningConfigurationProperty, - ) : CdkObject(cdkObject), VersioningConfigurationProperty { + ) : CdkObject(cdkObject), + VersioningConfigurationProperty { /** * How many versions of dataset contents are kept. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatasetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatasetProps.kt index 6eecf6fdd0..b76df8b969 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatasetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatasetProps.kt @@ -551,7 +551,8 @@ public interface CfnDatasetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatasetProps, - ) : CdkObject(cdkObject), CfnDatasetProps { + ) : CdkObject(cdkObject), + CfnDatasetProps { /** * The `DatasetAction` objects that automatically create the dataset contents. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastore.kt index 0859c89707..fa1ca33e3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastore.kt @@ -93,7 +93,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatastore( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotanalytics.CfnDatastore(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -760,7 +762,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.ColumnProperty, - ) : CdkObject(cdkObject), ColumnProperty { + ) : CdkObject(cdkObject), + ColumnProperty { /** * The name of the column. * @@ -909,7 +912,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.CustomerManagedS3Property, - ) : CdkObject(cdkObject), CustomerManagedS3Property { + ) : CdkObject(cdkObject), + CustomerManagedS3Property { /** * The name of the Amazon S3 bucket where your data is stored. * @@ -1043,7 +1047,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.CustomerManagedS3StorageProperty, - ) : CdkObject(cdkObject), CustomerManagedS3StorageProperty { + ) : CdkObject(cdkObject), + CustomerManagedS3StorageProperty { /** * The name of the Amazon S3 bucket where your data is stored. * @@ -1219,7 +1224,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.DatastorePartitionProperty, - ) : CdkObject(cdkObject), DatastorePartitionProperty { + ) : CdkObject(cdkObject), + DatastorePartitionProperty { /** * A partition dimension defined by an attribute. * @@ -1339,7 +1345,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.DatastorePartitionsProperty, - ) : CdkObject(cdkObject), DatastorePartitionsProperty { + ) : CdkObject(cdkObject), + DatastorePartitionsProperty { /** * A list of partition dimensions in a data store. * @@ -1571,7 +1578,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.DatastoreStorageProperty, - ) : CdkObject(cdkObject), DatastoreStorageProperty { + ) : CdkObject(cdkObject), + DatastoreStorageProperty { /** * Use this to store data store data in an S3 bucket that you manage. * @@ -1739,7 +1747,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.FileFormatConfigurationProperty, - ) : CdkObject(cdkObject), FileFormatConfigurationProperty { + ) : CdkObject(cdkObject), + FileFormatConfigurationProperty { /** * Contains the configuration information of the JSON format. * @@ -1873,7 +1882,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.IotSiteWiseMultiLayerStorageProperty, - ) : CdkObject(cdkObject), IotSiteWiseMultiLayerStorageProperty { + ) : CdkObject(cdkObject), + IotSiteWiseMultiLayerStorageProperty { /** * Stores data used by AWS IoT SiteWise in an Amazon S3 bucket that you manage. * @@ -1989,7 +1999,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.ParquetConfigurationProperty, - ) : CdkObject(cdkObject), ParquetConfigurationProperty { + ) : CdkObject(cdkObject), + ParquetConfigurationProperty { /** * Information needed to define a schema. * @@ -2072,7 +2083,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.PartitionProperty, - ) : CdkObject(cdkObject), PartitionProperty { + ) : CdkObject(cdkObject), + PartitionProperty { /** * The name of the attribute that defines a partition dimension. * @@ -2190,7 +2202,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.RetentionPeriodProperty, - ) : CdkObject(cdkObject), RetentionPeriodProperty { + ) : CdkObject(cdkObject), + RetentionPeriodProperty { /** * The number of days that message data is kept. * @@ -2314,7 +2327,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.SchemaDefinitionProperty, - ) : CdkObject(cdkObject), SchemaDefinitionProperty { + ) : CdkObject(cdkObject), + SchemaDefinitionProperty { /** * Specifies one or more columns that store your data. * @@ -2423,7 +2437,8 @@ public open class CfnDatastore( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastore.TimestampPartitionProperty, - ) : CdkObject(cdkObject), TimestampPartitionProperty { + ) : CdkObject(cdkObject), + TimestampPartitionProperty { /** * The attribute name of the partition defined by a timestamp. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastoreProps.kt index 10d5cca55f..85b4a33041 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnDatastoreProps.kt @@ -398,7 +398,8 @@ public interface CfnDatastoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnDatastoreProps, - ) : CdkObject(cdkObject), CfnDatastoreProps { + ) : CdkObject(cdkObject), + CfnDatastoreProps { /** * The name of the data store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipeline.kt index 4a170b41b5..3317922c77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipeline.kt @@ -119,7 +119,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipeline( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1008,7 +1010,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.ActivityProperty, - ) : CdkObject(cdkObject), ActivityProperty { + ) : CdkObject(cdkObject), + ActivityProperty { /** * Adds other attributes based on existing attributes in the message. * @@ -1229,7 +1232,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.AddAttributesProperty, - ) : CdkObject(cdkObject), AddAttributesProperty { + ) : CdkObject(cdkObject), + AddAttributesProperty { /** * A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new * attribute. @@ -1370,7 +1374,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.ChannelProperty, - ) : CdkObject(cdkObject), ChannelProperty { + ) : CdkObject(cdkObject), + ChannelProperty { /** * The name of the channel from which the messages are processed. * @@ -1484,7 +1489,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.DatastoreProperty, - ) : CdkObject(cdkObject), DatastoreProperty { + ) : CdkObject(cdkObject), + DatastoreProperty { /** * The name of the data store where processed messages are stored. * @@ -1659,7 +1665,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.DeviceRegistryEnrichProperty, - ) : CdkObject(cdkObject), DeviceRegistryEnrichProperty { + ) : CdkObject(cdkObject), + DeviceRegistryEnrichProperty { /** * The name of the attribute that is added to the message. * @@ -1852,7 +1859,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.DeviceShadowEnrichProperty, - ) : CdkObject(cdkObject), DeviceShadowEnrichProperty { + ) : CdkObject(cdkObject), + DeviceShadowEnrichProperty { /** * The name of the attribute that is added to the message. * @@ -2003,7 +2011,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * An expression that looks like an SQL WHERE clause that must return a Boolean value. * @@ -2165,7 +2174,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.LambdaProperty, - ) : CdkObject(cdkObject), LambdaProperty { + ) : CdkObject(cdkObject), + LambdaProperty { /** * The number of messages passed to the Lambda function for processing. * @@ -2332,7 +2342,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.MathProperty, - ) : CdkObject(cdkObject), MathProperty { + ) : CdkObject(cdkObject), + MathProperty { /** * The name of the attribute that contains the result of the math operation. * @@ -2485,7 +2496,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.RemoveAttributesProperty, - ) : CdkObject(cdkObject), RemoveAttributesProperty { + ) : CdkObject(cdkObject), + RemoveAttributesProperty { /** * A list of 1-50 attributes to remove from the message. * @@ -2632,7 +2644,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipeline.SelectAttributesProperty, - ) : CdkObject(cdkObject), SelectAttributesProperty { + ) : CdkObject(cdkObject), + SelectAttributesProperty { /** * A list of the attributes to select from the message. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipelineProps.kt index bf8ecafceb..c6581e16e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotanalytics/CfnPipelineProps.kt @@ -287,7 +287,8 @@ public interface CfnPipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotanalytics.CfnPipelineProps, - ) : CdkObject(cdkObject), CfnPipelineProps { + ) : CdkObject(cdkObject), + CfnPipelineProps { /** * A list of "PipelineActivity" objects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinition.kt index fc88102119..72dd71da2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinition.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSuiteDefinition( cdkObject: software.amazon.awscdk.services.iotcoredeviceadvisor.CfnSuiteDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -374,7 +376,8 @@ public open class CfnSuiteDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotcoredeviceadvisor.CfnSuiteDefinition.DeviceUnderTestProperty, - ) : CdkObject(cdkObject), DeviceUnderTestProperty { + ) : CdkObject(cdkObject), + DeviceUnderTestProperty { /** * Lists device's certificate ARN. * @@ -615,7 +618,8 @@ public open class CfnSuiteDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotcoredeviceadvisor.CfnSuiteDefinition.SuiteDefinitionConfigurationProperty, - ) : CdkObject(cdkObject), SuiteDefinitionConfigurationProperty { + ) : CdkObject(cdkObject), + SuiteDefinitionConfigurationProperty { /** * Gets the device permission ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinitionProps.kt index 4e41b9a004..9dc69627ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotcoredeviceadvisor/CfnSuiteDefinitionProps.kt @@ -201,7 +201,8 @@ public interface CfnSuiteDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotcoredeviceadvisor.CfnSuiteDefinitionProps, - ) : CdkObject(cdkObject), CfnSuiteDefinitionProps { + ) : CdkObject(cdkObject), + CfnSuiteDefinitionProps { /** * The configuration of the Suite Definition. Listed below are the required elements of the * `SuiteDefinitionConfiguration` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModel.kt index 2ea08e987e..f6964f29df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModel.kt @@ -168,7 +168,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlarmModel( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -823,7 +825,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AcknowledgeFlowProperty, - ) : CdkObject(cdkObject), AcknowledgeFlowProperty { + ) : CdkObject(cdkObject), + AcknowledgeFlowProperty { /** * The value must be `TRUE` or `FALSE` . * @@ -2139,7 +2142,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AlarmActionProperty, - ) : CdkObject(cdkObject), AlarmActionProperty { + ) : CdkObject(cdkObject), + AlarmActionProperty { /** * Defines an action to write to the Amazon DynamoDB table that you created. * @@ -2476,7 +2480,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AlarmCapabilitiesProperty, - ) : CdkObject(cdkObject), AlarmCapabilitiesProperty { + ) : CdkObject(cdkObject), + AlarmCapabilitiesProperty { /** * Specifies whether to get notified for alarm state changes. * @@ -2694,7 +2699,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AlarmEventActionsProperty, - ) : CdkObject(cdkObject), AlarmEventActionsProperty { + ) : CdkObject(cdkObject), + AlarmEventActionsProperty { /** * Specifies one or more supported actions to receive notifications when the alarm state * changes. @@ -2812,7 +2818,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AlarmRuleProperty, - ) : CdkObject(cdkObject), AlarmRuleProperty { + ) : CdkObject(cdkObject), + AlarmRuleProperty { /** * A rule that compares an input property value to a threshold value with a comparison * operator. @@ -2948,7 +2955,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AssetPropertyTimestampProperty, - ) : CdkObject(cdkObject), AssetPropertyTimestampProperty { + ) : CdkObject(cdkObject), + AssetPropertyTimestampProperty { /** * The nanosecond offset converted from `timeInSeconds` . * @@ -3172,7 +3180,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AssetPropertyValueProperty, - ) : CdkObject(cdkObject), AssetPropertyValueProperty { + ) : CdkObject(cdkObject), + AssetPropertyValueProperty { /** * The quality of the asset property value. * @@ -3381,7 +3390,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.AssetPropertyVariantProperty, - ) : CdkObject(cdkObject), AssetPropertyVariantProperty { + ) : CdkObject(cdkObject), + AssetPropertyVariantProperty { /** * The asset property value is a Boolean value that must be `'TRUE'` or `'FALSE'` . * @@ -3849,7 +3859,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.DynamoDBProperty, - ) : CdkObject(cdkObject), DynamoDBProperty { + ) : CdkObject(cdkObject), + DynamoDBProperty { /** * The name of the hash key (also called the partition key). * @@ -4145,7 +4156,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.DynamoDBv2Property, - ) : CdkObject(cdkObject), DynamoDBv2Property { + ) : CdkObject(cdkObject), + DynamoDBv2Property { /** * Information needed to configure the payload. * @@ -4325,7 +4337,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.FirehoseProperty, - ) : CdkObject(cdkObject), FirehoseProperty { + ) : CdkObject(cdkObject), + FirehoseProperty { /** * The name of the Kinesis Data Firehose delivery stream where the data is written. * @@ -4451,7 +4464,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.InitializationConfigurationProperty, - ) : CdkObject(cdkObject), InitializationConfigurationProperty { + ) : CdkObject(cdkObject), + InitializationConfigurationProperty { /** * The value must be `TRUE` or `FALSE` . * @@ -4593,7 +4607,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.IotEventsProperty, - ) : CdkObject(cdkObject), IotEventsProperty { + ) : CdkObject(cdkObject), + IotEventsProperty { /** * The name of the AWS IoT Events input where the data is sent. * @@ -4843,7 +4858,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.IotSiteWiseProperty, - ) : CdkObject(cdkObject), IotSiteWiseProperty { + ) : CdkObject(cdkObject), + IotSiteWiseProperty { /** * The ID of the asset that has the specified property. * @@ -5021,7 +5037,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.IotTopicPublishProperty, - ) : CdkObject(cdkObject), IotTopicPublishProperty { + ) : CdkObject(cdkObject), + IotTopicPublishProperty { /** * The MQTT topic of the message. * @@ -5169,7 +5186,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.LambdaProperty, - ) : CdkObject(cdkObject), LambdaProperty { + ) : CdkObject(cdkObject), + LambdaProperty { /** * The ARN of the Lambda function that is executed. * @@ -5296,7 +5314,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.PayloadProperty, - ) : CdkObject(cdkObject), PayloadProperty { + ) : CdkObject(cdkObject), + PayloadProperty { /** * The content of the payload. * @@ -5437,7 +5456,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.SimpleRuleProperty, - ) : CdkObject(cdkObject), SimpleRuleProperty { + ) : CdkObject(cdkObject), + SimpleRuleProperty { /** * The comparison operator. * @@ -5593,7 +5613,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.SnsProperty, - ) : CdkObject(cdkObject), SnsProperty { + ) : CdkObject(cdkObject), + SnsProperty { /** * You can configure the action payload when you send a message as an Amazon SNS push * notification. @@ -5781,7 +5802,8 @@ public open class CfnAlarmModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModel.SqsProperty, - ) : CdkObject(cdkObject), SqsProperty { + ) : CdkObject(cdkObject), + SqsProperty { /** * You can configure the action payload when you send a message to an Amazon SQS queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModelProps.kt index 5120dc5cf2..ee2c9eee89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnAlarmModelProps.kt @@ -489,7 +489,8 @@ public interface CfnAlarmModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnAlarmModelProps, - ) : CdkObject(cdkObject), CfnAlarmModelProps { + ) : CdkObject(cdkObject), + CfnAlarmModelProps { /** * Contains the configuration information of alarm state changes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModel.kt index 721513f2e6..32d3c9d4af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModel.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDetectorModel( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1334,7 +1336,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Information needed to clear the timer. * @@ -1573,7 +1576,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.AssetPropertyTimestampProperty, - ) : CdkObject(cdkObject), AssetPropertyTimestampProperty { + ) : CdkObject(cdkObject), + AssetPropertyTimestampProperty { /** * The nanosecond offset converted from `timeInSeconds` . * @@ -1797,7 +1801,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.AssetPropertyValueProperty, - ) : CdkObject(cdkObject), AssetPropertyValueProperty { + ) : CdkObject(cdkObject), + AssetPropertyValueProperty { /** * The quality of the asset property value. * @@ -2006,7 +2011,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.AssetPropertyVariantProperty, - ) : CdkObject(cdkObject), AssetPropertyVariantProperty { + ) : CdkObject(cdkObject), + AssetPropertyVariantProperty { /** * The asset property value is a Boolean value that must be `'TRUE'` or `'FALSE'` . * @@ -2116,7 +2122,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.ClearTimerProperty, - ) : CdkObject(cdkObject), ClearTimerProperty { + ) : CdkObject(cdkObject), + ClearTimerProperty { /** * The name of the timer to clear. * @@ -2235,7 +2242,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.DetectorModelDefinitionProperty, - ) : CdkObject(cdkObject), DetectorModelDefinitionProperty { + ) : CdkObject(cdkObject), + DetectorModelDefinitionProperty { /** * The state that is entered at the creation of each detector (instance). * @@ -2682,7 +2690,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.DynamoDBProperty, - ) : CdkObject(cdkObject), DynamoDBProperty { + ) : CdkObject(cdkObject), + DynamoDBProperty { /** * The name of the hash key (also called the partition key). * @@ -2979,7 +2988,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.DynamoDBv2Property, - ) : CdkObject(cdkObject), DynamoDBv2Property { + ) : CdkObject(cdkObject), + DynamoDBv2Property { /** * Information needed to configure the payload. * @@ -3257,7 +3267,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.EventProperty, - ) : CdkObject(cdkObject), EventProperty { + ) : CdkObject(cdkObject), + EventProperty { /** * The actions to be performed. * @@ -3443,7 +3454,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.FirehoseProperty, - ) : CdkObject(cdkObject), FirehoseProperty { + ) : CdkObject(cdkObject), + FirehoseProperty { /** * The name of the Kinesis Data Firehose delivery stream where the data is written. * @@ -3600,7 +3612,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.IotEventsProperty, - ) : CdkObject(cdkObject), IotEventsProperty { + ) : CdkObject(cdkObject), + IotEventsProperty { /** * The name of the AWS IoT Events input where the data is sent. * @@ -3851,7 +3864,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.IotSiteWiseProperty, - ) : CdkObject(cdkObject), IotSiteWiseProperty { + ) : CdkObject(cdkObject), + IotSiteWiseProperty { /** * The ID of the asset that has the specified property. * @@ -4030,7 +4044,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.IotTopicPublishProperty, - ) : CdkObject(cdkObject), IotTopicPublishProperty { + ) : CdkObject(cdkObject), + IotTopicPublishProperty { /** * The MQTT topic of the message. * @@ -4178,7 +4193,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.LambdaProperty, - ) : CdkObject(cdkObject), LambdaProperty { + ) : CdkObject(cdkObject), + LambdaProperty { /** * The ARN of the Lambda function that is executed. * @@ -4412,7 +4428,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.OnEnterProperty, - ) : CdkObject(cdkObject), OnEnterProperty { + ) : CdkObject(cdkObject), + OnEnterProperty { /** * Specifies the actions that are performed when the state is entered and the `condition` is * `TRUE` . @@ -4640,7 +4657,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.OnExitProperty, - ) : CdkObject(cdkObject), OnExitProperty { + ) : CdkObject(cdkObject), + OnExitProperty { /** * Specifies the `actions` that are performed when the state is exited and the `condition` is * `TRUE` . @@ -5030,7 +5048,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.OnInputProperty, - ) : CdkObject(cdkObject), OnInputProperty { + ) : CdkObject(cdkObject), + OnInputProperty { /** * Specifies the actions performed when the `condition` evaluates to TRUE. * @@ -5158,7 +5177,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.PayloadProperty, - ) : CdkObject(cdkObject), PayloadProperty { + ) : CdkObject(cdkObject), + PayloadProperty { /** * The content of the payload. * @@ -5255,7 +5275,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.ResetTimerProperty, - ) : CdkObject(cdkObject), ResetTimerProperty { + ) : CdkObject(cdkObject), + ResetTimerProperty { /** * The name of the timer to reset. * @@ -5397,7 +5418,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.SetTimerProperty, - ) : CdkObject(cdkObject), SetTimerProperty { + ) : CdkObject(cdkObject), + SetTimerProperty { /** * The duration of the timer, in seconds. * @@ -5520,7 +5542,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.SetVariableProperty, - ) : CdkObject(cdkObject), SetVariableProperty { + ) : CdkObject(cdkObject), + SetVariableProperty { /** * The new value of the variable. * @@ -5665,7 +5688,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.SnsProperty, - ) : CdkObject(cdkObject), SnsProperty { + ) : CdkObject(cdkObject), + SnsProperty { /** * You can configure the action payload when you send a message as an Amazon SNS push * notification. @@ -5853,7 +5877,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.SqsProperty, - ) : CdkObject(cdkObject), SqsProperty { + ) : CdkObject(cdkObject), + SqsProperty { /** * You can configure the action payload when you send a message to an Amazon SQS queue. * @@ -6099,7 +6124,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.StateProperty, - ) : CdkObject(cdkObject), StateProperty { + ) : CdkObject(cdkObject), + StateProperty { /** * When entering this state, perform these `actions` if the `condition` is TRUE. * @@ -6405,7 +6431,8 @@ public open class CfnDetectorModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModel.TransitionEventProperty, - ) : CdkObject(cdkObject), TransitionEventProperty { + ) : CdkObject(cdkObject), + TransitionEventProperty { /** * The actions to be performed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModelProps.kt index 682c20528f..97644581e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnDetectorModelProps.kt @@ -257,7 +257,8 @@ public interface CfnDetectorModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnDetectorModelProps, - ) : CdkObject(cdkObject), CfnDetectorModelProps { + ) : CdkObject(cdkObject), + CfnDetectorModelProps { /** * Information that defines how a detector operates. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInput.kt index 384200325e..f6567e27c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInput.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInput( cdkObject: software.amazon.awscdk.services.iotevents.CfnInput, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -410,7 +412,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnInput.AttributeProperty, - ) : CdkObject(cdkObject), AttributeProperty { + ) : CdkObject(cdkObject), + AttributeProperty { /** * An expression that specifies an attribute-value pair in a JSON structure. * @@ -556,7 +559,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnInput.InputDefinitionProperty, - ) : CdkObject(cdkObject), InputDefinitionProperty { + ) : CdkObject(cdkObject), + InputDefinitionProperty { /** * The attributes from the JSON payload that are made available by the input. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInputProps.kt index ef05ea7da7..9056d3e264 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotevents/CfnInputProps.kt @@ -186,7 +186,8 @@ public interface CfnInputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotevents.CfnInputProps, - ) : CdkObject(cdkObject), CfnInputProps { + ) : CdkObject(cdkObject), + CfnInputProps { /** * The definition of the input. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplication.kt index 82b7a81d93..40772d2030 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplication.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.iotfleethub.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplicationProps.kt index b510475f75..9e95f08a76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleethub/CfnApplicationProps.kt @@ -154,7 +154,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleethub.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * An optional description of the web application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaign.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaign.kt index 81294318d5..ea5f9d8c0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaign.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaign.kt @@ -58,6 +58,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .compression("compression") * .dataDestinationConfigs(List.of(DataDestinationConfigProperty.builder() + * .mqttTopicConfig(MqttTopicConfigProperty.builder() + * .executionRoleArn("executionRoleArn") + * .mqttTopicArn("mqttTopicArn") + * .build()) * .s3Config(S3ConfigProperty.builder() * .bucketArn("bucketArn") * // the properties below are optional @@ -82,6 +86,21 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .maxSampleCount(123) * .minimumSamplingIntervalMs(123) * .build())) + * .signalsToFetch(List.of(SignalFetchInformationProperty.builder() + * .actions(List.of("actions")) + * .fullyQualifiedName("fullyQualifiedName") + * .signalFetchConfig(SignalFetchConfigProperty.builder() + * .conditionBased(ConditionBasedSignalFetchConfigProperty.builder() + * .conditionExpression("conditionExpression") + * .triggerMode("triggerMode") + * .build()) + * .timeBased(TimeBasedSignalFetchConfigProperty.builder() + * .executionFrequencyMs(123) + * .build()) + * .build()) + * // the properties below are optional + * .conditionLanguageVersion(123) + * .build())) * .spoolingMode("spoolingMode") * .startTime("startTime") * .tags(List.of(CfnTag.builder() @@ -95,7 +114,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCampaign( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -358,6 +379,30 @@ public open class CfnCampaign( */ public open fun signalsToCollect(vararg `value`: Any): Unit = signalsToCollect(`value`.toList()) + /** + * + */ + public open fun signalsToFetch(): Any? = unwrap(this).getSignalsToFetch() + + /** + * + */ + public open fun signalsToFetch(`value`: IResolvable) { + unwrap(this).setSignalsToFetch(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * + */ + public open fun signalsToFetch(`value`: List) { + unwrap(this).setSignalsToFetch(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * + */ + public open fun signalsToFetch(vararg `value`: Any): Unit = signalsToFetch(`value`.toList()) + /** * (Optional) Whether to store collected data after a vehicle lost a connection with the cloud. */ @@ -683,6 +728,24 @@ public open class CfnCampaign( */ public fun signalsToCollect(vararg signalsToCollect: Any) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + public fun signalsToFetch(signalsToFetch: IResolvable) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + public fun signalsToFetch(signalsToFetch: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + public fun signalsToFetch(vararg signalsToFetch: Any) + /** * (Optional) Whether to store collected data after a vehicle lost a connection with the cloud. * @@ -1045,6 +1108,29 @@ public open class CfnCampaign( override fun signalsToCollect(vararg signalsToCollect: Any): Unit = signalsToCollect(signalsToCollect.toList()) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + override fun signalsToFetch(signalsToFetch: IResolvable) { + cdkBuilder.signalsToFetch(signalsToFetch.let(IResolvable.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + override fun signalsToFetch(signalsToFetch: List) { + cdkBuilder.signalsToFetch(signalsToFetch.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + * @param signalsToFetch + */ + override fun signalsToFetch(vararg signalsToFetch: Any): Unit = + signalsToFetch(signalsToFetch.toList()) + /** * (Optional) Whether to store collected data after a vehicle lost a connection with the cloud. * @@ -1297,7 +1383,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.CollectionSchemeProperty, - ) : CdkObject(cdkObject), CollectionSchemeProperty { + ) : CdkObject(cdkObject), + CollectionSchemeProperty { /** * (Optional) Information about a collection scheme that uses a simple logical expression to * recognize what data to collect. @@ -1481,7 +1568,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedCollectionSchemeProperty, - ) : CdkObject(cdkObject), ConditionBasedCollectionSchemeProperty { + ) : CdkObject(cdkObject), + ConditionBasedCollectionSchemeProperty { /** * (Optional) Specifies the version of the conditional expression language. * @@ -1541,6 +1629,108 @@ public open class CfnCampaign( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; + * ConditionBasedSignalFetchConfigProperty conditionBasedSignalFetchConfigProperty = + * ConditionBasedSignalFetchConfigProperty.builder() + * .conditionExpression("conditionExpression") + * .triggerMode("triggerMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html) + */ + public interface ConditionBasedSignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-conditionexpression) + */ + public fun conditionExpression(): String + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-triggermode) + */ + public fun triggerMode(): String + + /** + * A builder for [ConditionBasedSignalFetchConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditionExpression the value to be set. + */ + public fun conditionExpression(conditionExpression: String) + + /** + * @param triggerMode the value to be set. + */ + public fun triggerMode(triggerMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty.Builder + = + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty.builder() + + /** + * @param conditionExpression the value to be set. + */ + override fun conditionExpression(conditionExpression: String) { + cdkBuilder.conditionExpression(conditionExpression) + } + + /** + * @param triggerMode the value to be set. + */ + override fun triggerMode(triggerMode: String) { + cdkBuilder.triggerMode(triggerMode) + } + + public fun build(): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty, + ) : CdkObject(cdkObject), + ConditionBasedSignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-conditionexpression) + */ + override fun conditionExpression(): String = unwrap(this).getConditionExpression() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-triggermode) + */ + override fun triggerMode(): String = unwrap(this).getTriggerMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ConditionBasedSignalFetchConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty): + ConditionBasedSignalFetchConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConditionBasedSignalFetchConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConditionBasedSignalFetchConfigProperty): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty + } + } + /** * The destination where the AWS IoT FleetWise campaign sends data. * @@ -1554,6 +1744,10 @@ public open class CfnCampaign( * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; * DataDestinationConfigProperty dataDestinationConfigProperty = * DataDestinationConfigProperty.builder() + * .mqttTopicConfig(MqttTopicConfigProperty.builder() + * .executionRoleArn("executionRoleArn") + * .mqttTopicArn("mqttTopicArn") + * .build()) * .s3Config(S3ConfigProperty.builder() * .bucketArn("bucketArn") * // the properties below are optional @@ -1571,6 +1765,11 @@ public open class CfnCampaign( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html) */ public interface DataDestinationConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html#cfn-iotfleetwise-campaign-datadestinationconfig-mqtttopicconfig) + */ + public fun mqttTopicConfig(): Any? = unwrap(this).getMqttTopicConfig() + /** * (Optional) The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data. * @@ -1590,6 +1789,23 @@ public open class CfnCampaign( */ @CdkDslMarker public interface Builder { + /** + * @param mqttTopicConfig the value to be set. + */ + public fun mqttTopicConfig(mqttTopicConfig: IResolvable) + + /** + * @param mqttTopicConfig the value to be set. + */ + public fun mqttTopicConfig(mqttTopicConfig: MqttTopicConfigProperty) + + /** + * @param mqttTopicConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("56eb0f11ad367f66b034a2f29775d7135605ee5356c6e51b5c013a12de9e5188") + public fun mqttTopicConfig(mqttTopicConfig: MqttTopicConfigProperty.Builder.() -> Unit) + /** * @param s3Config (Optional) The Amazon S3 bucket where the AWS IoT FleetWise campaign sends * data. @@ -1637,6 +1853,28 @@ public open class CfnCampaign( = software.amazon.awscdk.services.iotfleetwise.CfnCampaign.DataDestinationConfigProperty.builder() + /** + * @param mqttTopicConfig the value to be set. + */ + override fun mqttTopicConfig(mqttTopicConfig: IResolvable) { + cdkBuilder.mqttTopicConfig(mqttTopicConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mqttTopicConfig the value to be set. + */ + override fun mqttTopicConfig(mqttTopicConfig: MqttTopicConfigProperty) { + cdkBuilder.mqttTopicConfig(mqttTopicConfig.let(MqttTopicConfigProperty.Companion::unwrap)) + } + + /** + * @param mqttTopicConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("56eb0f11ad367f66b034a2f29775d7135605ee5356c6e51b5c013a12de9e5188") + override fun mqttTopicConfig(mqttTopicConfig: MqttTopicConfigProperty.Builder.() -> Unit): + Unit = mqttTopicConfig(MqttTopicConfigProperty(mqttTopicConfig)) + /** * @param s3Config (Optional) The Amazon S3 bucket where the AWS IoT FleetWise campaign sends * data. @@ -1694,7 +1932,13 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.DataDestinationConfigProperty, - ) : CdkObject(cdkObject), DataDestinationConfigProperty { + ) : CdkObject(cdkObject), + DataDestinationConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html#cfn-iotfleetwise-campaign-datadestinationconfig-mqtttopicconfig) + */ + override fun mqttTopicConfig(): Any? = unwrap(this).getMqttTopicConfig() + /** * (Optional) The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data. * @@ -1728,6 +1972,105 @@ public open class CfnCampaign( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; + * MqttTopicConfigProperty mqttTopicConfigProperty = MqttTopicConfigProperty.builder() + * .executionRoleArn("executionRoleArn") + * .mqttTopicArn("mqttTopicArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html) + */ + public interface MqttTopicConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn) + */ + public fun executionRoleArn(): String + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn) + */ + public fun mqttTopicArn(): String + + /** + * A builder for [MqttTopicConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param executionRoleArn the value to be set. + */ + public fun executionRoleArn(executionRoleArn: String) + + /** + * @param mqttTopicArn the value to be set. + */ + public fun mqttTopicArn(mqttTopicArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty.Builder = + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty.builder() + + /** + * @param executionRoleArn the value to be set. + */ + override fun executionRoleArn(executionRoleArn: String) { + cdkBuilder.executionRoleArn(executionRoleArn) + } + + /** + * @param mqttTopicArn the value to be set. + */ + override fun mqttTopicArn(mqttTopicArn: String) { + cdkBuilder.mqttTopicArn(mqttTopicArn) + } + + public fun build(): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty, + ) : CdkObject(cdkObject), + MqttTopicConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn) + */ + override fun executionRoleArn(): String = unwrap(this).getExecutionRoleArn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn) + */ + override fun mqttTopicArn(): String = unwrap(this).getMqttTopicArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MqttTopicConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty): + MqttTopicConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? MqttTopicConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MqttTopicConfigProperty): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.MqttTopicConfigProperty + } + } + /** * The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data. * @@ -1901,7 +2244,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.S3ConfigProperty, - ) : CdkObject(cdkObject), S3ConfigProperty { + ) : CdkObject(cdkObject), + S3ConfigProperty { /** * The Amazon Resource Name (ARN) of the Amazon S3 bucket. * @@ -1968,6 +2312,361 @@ public open class CfnCampaign( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; + * SignalFetchConfigProperty signalFetchConfigProperty = SignalFetchConfigProperty.builder() + * .conditionBased(ConditionBasedSignalFetchConfigProperty.builder() + * .conditionExpression("conditionExpression") + * .triggerMode("triggerMode") + * .build()) + * .timeBased(TimeBasedSignalFetchConfigProperty.builder() + * .executionFrequencyMs(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html) + */ + public interface SignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-conditionbased) + */ + public fun conditionBased(): Any? = unwrap(this).getConditionBased() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-timebased) + */ + public fun timeBased(): Any? = unwrap(this).getTimeBased() + + /** + * A builder for [SignalFetchConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param conditionBased the value to be set. + */ + public fun conditionBased(conditionBased: IResolvable) + + /** + * @param conditionBased the value to be set. + */ + public fun conditionBased(conditionBased: ConditionBasedSignalFetchConfigProperty) + + /** + * @param conditionBased the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0792e8d6a50c4d84d0d00d2d7644caad0646ca0941c06c22932753e3b6794de8") + public + fun conditionBased(conditionBased: ConditionBasedSignalFetchConfigProperty.Builder.() -> Unit) + + /** + * @param timeBased the value to be set. + */ + public fun timeBased(timeBased: IResolvable) + + /** + * @param timeBased the value to be set. + */ + public fun timeBased(timeBased: TimeBasedSignalFetchConfigProperty) + + /** + * @param timeBased the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c4cf236a85c5ab84bc92f6aa9bc27c3c11b82c9ef1c7e9d1dcd9c5ad79ed595e") + public fun timeBased(timeBased: TimeBasedSignalFetchConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty.Builder + = + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty.builder() + + /** + * @param conditionBased the value to be set. + */ + override fun conditionBased(conditionBased: IResolvable) { + cdkBuilder.conditionBased(conditionBased.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditionBased the value to be set. + */ + override fun conditionBased(conditionBased: ConditionBasedSignalFetchConfigProperty) { + cdkBuilder.conditionBased(conditionBased.let(ConditionBasedSignalFetchConfigProperty.Companion::unwrap)) + } + + /** + * @param conditionBased the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0792e8d6a50c4d84d0d00d2d7644caad0646ca0941c06c22932753e3b6794de8") + override + fun conditionBased(conditionBased: ConditionBasedSignalFetchConfigProperty.Builder.() -> Unit): + Unit = conditionBased(ConditionBasedSignalFetchConfigProperty(conditionBased)) + + /** + * @param timeBased the value to be set. + */ + override fun timeBased(timeBased: IResolvable) { + cdkBuilder.timeBased(timeBased.let(IResolvable.Companion::unwrap)) + } + + /** + * @param timeBased the value to be set. + */ + override fun timeBased(timeBased: TimeBasedSignalFetchConfigProperty) { + cdkBuilder.timeBased(timeBased.let(TimeBasedSignalFetchConfigProperty.Companion::unwrap)) + } + + /** + * @param timeBased the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c4cf236a85c5ab84bc92f6aa9bc27c3c11b82c9ef1c7e9d1dcd9c5ad79ed595e") + override fun timeBased(timeBased: TimeBasedSignalFetchConfigProperty.Builder.() -> Unit): Unit + = timeBased(TimeBasedSignalFetchConfigProperty(timeBased)) + + public fun build(): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty, + ) : CdkObject(cdkObject), + SignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-conditionbased) + */ + override fun conditionBased(): Any? = unwrap(this).getConditionBased() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-timebased) + */ + override fun timeBased(): Any? = unwrap(this).getTimeBased() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SignalFetchConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty): + SignalFetchConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + SignalFetchConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SignalFetchConfigProperty): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchConfigProperty + } + } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; + * SignalFetchInformationProperty signalFetchInformationProperty = + * SignalFetchInformationProperty.builder() + * .actions(List.of("actions")) + * .fullyQualifiedName("fullyQualifiedName") + * .signalFetchConfig(SignalFetchConfigProperty.builder() + * .conditionBased(ConditionBasedSignalFetchConfigProperty.builder() + * .conditionExpression("conditionExpression") + * .triggerMode("triggerMode") + * .build()) + * .timeBased(TimeBasedSignalFetchConfigProperty.builder() + * .executionFrequencyMs(123) + * .build()) + * .build()) + * // the properties below are optional + * .conditionLanguageVersion(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html) + */ + public interface SignalFetchInformationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-actions) + */ + public fun actions(): List + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-conditionlanguageversion) + */ + public fun conditionLanguageVersion(): Number? = unwrap(this).getConditionLanguageVersion() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-fullyqualifiedname) + */ + public fun fullyQualifiedName(): String + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-signalfetchconfig) + */ + public fun signalFetchConfig(): Any + + /** + * A builder for [SignalFetchInformationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actions the value to be set. + */ + public fun actions(actions: List) + + /** + * @param actions the value to be set. + */ + public fun actions(vararg actions: String) + + /** + * @param conditionLanguageVersion the value to be set. + */ + public fun conditionLanguageVersion(conditionLanguageVersion: Number) + + /** + * @param fullyQualifiedName the value to be set. + */ + public fun fullyQualifiedName(fullyQualifiedName: String) + + /** + * @param signalFetchConfig the value to be set. + */ + public fun signalFetchConfig(signalFetchConfig: IResolvable) + + /** + * @param signalFetchConfig the value to be set. + */ + public fun signalFetchConfig(signalFetchConfig: SignalFetchConfigProperty) + + /** + * @param signalFetchConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fead850def1f2655988c799819e78891e79f097f3bd3834a5fcd8d5570211117") + public fun signalFetchConfig(signalFetchConfig: SignalFetchConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty.Builder + = + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty.builder() + + /** + * @param actions the value to be set. + */ + override fun actions(actions: List) { + cdkBuilder.actions(actions) + } + + /** + * @param actions the value to be set. + */ + override fun actions(vararg actions: String): Unit = actions(actions.toList()) + + /** + * @param conditionLanguageVersion the value to be set. + */ + override fun conditionLanguageVersion(conditionLanguageVersion: Number) { + cdkBuilder.conditionLanguageVersion(conditionLanguageVersion) + } + + /** + * @param fullyQualifiedName the value to be set. + */ + override fun fullyQualifiedName(fullyQualifiedName: String) { + cdkBuilder.fullyQualifiedName(fullyQualifiedName) + } + + /** + * @param signalFetchConfig the value to be set. + */ + override fun signalFetchConfig(signalFetchConfig: IResolvable) { + cdkBuilder.signalFetchConfig(signalFetchConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param signalFetchConfig the value to be set. + */ + override fun signalFetchConfig(signalFetchConfig: SignalFetchConfigProperty) { + cdkBuilder.signalFetchConfig(signalFetchConfig.let(SignalFetchConfigProperty.Companion::unwrap)) + } + + /** + * @param signalFetchConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fead850def1f2655988c799819e78891e79f097f3bd3834a5fcd8d5570211117") + override + fun signalFetchConfig(signalFetchConfig: SignalFetchConfigProperty.Builder.() -> Unit): + Unit = signalFetchConfig(SignalFetchConfigProperty(signalFetchConfig)) + + public fun build(): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty, + ) : CdkObject(cdkObject), + SignalFetchInformationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-actions) + */ + override fun actions(): List = unwrap(this).getActions() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-conditionlanguageversion) + */ + override fun conditionLanguageVersion(): Number? = unwrap(this).getConditionLanguageVersion() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-fullyqualifiedname) + */ + override fun fullyQualifiedName(): String = unwrap(this).getFullyQualifiedName() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-signalfetchconfig) + */ + override fun signalFetchConfig(): Any = unwrap(this).getSignalFetchConfig() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SignalFetchInformationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty): + SignalFetchInformationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SignalFetchInformationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SignalFetchInformationProperty): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalFetchInformationProperty + } + } + /** * Information about a signal. * @@ -2075,7 +2774,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.SignalInformationProperty, - ) : CdkObject(cdkObject), SignalInformationProperty { + ) : CdkObject(cdkObject), + SignalInformationProperty { /** * (Optional) The maximum number of samples to collect. * @@ -2186,7 +2886,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedCollectionSchemeProperty, - ) : CdkObject(cdkObject), TimeBasedCollectionSchemeProperty { + ) : CdkObject(cdkObject), + TimeBasedCollectionSchemeProperty { /** * The time period (in milliseconds) to decide how often to collect data. * @@ -2217,6 +2918,85 @@ public open class CfnCampaign( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotfleetwise.*; + * TimeBasedSignalFetchConfigProperty timeBasedSignalFetchConfigProperty = + * TimeBasedSignalFetchConfigProperty.builder() + * .executionFrequencyMs(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedsignalfetchconfig.html) + */ + public interface TimeBasedSignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-timebasedsignalfetchconfig-executionfrequencyms) + */ + public fun executionFrequencyMs(): Number + + /** + * A builder for [TimeBasedSignalFetchConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param executionFrequencyMs the value to be set. + */ + public fun executionFrequencyMs(executionFrequencyMs: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty.Builder + = + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty.builder() + + /** + * @param executionFrequencyMs the value to be set. + */ + override fun executionFrequencyMs(executionFrequencyMs: Number) { + cdkBuilder.executionFrequencyMs(executionFrequencyMs) + } + + public fun build(): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty, + ) : CdkObject(cdkObject), + TimeBasedSignalFetchConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-timebasedsignalfetchconfig-executionfrequencyms) + */ + override fun executionFrequencyMs(): Number = unwrap(this).getExecutionFrequencyMs() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + TimeBasedSignalFetchConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty): + TimeBasedSignalFetchConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + TimeBasedSignalFetchConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: TimeBasedSignalFetchConfigProperty): + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty + } + } + /** * The Amazon Timestream table where the AWS IoT FleetWise campaign sends data. * @@ -2300,7 +3080,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaign.TimestreamConfigProperty, - ) : CdkObject(cdkObject), TimestreamConfigProperty { + ) : CdkObject(cdkObject), + TimestreamConfigProperty { /** * The Amazon Resource Name (ARN) of the task execution role that grants AWS IoT FleetWise * permission to deliver data to the Amazon Timestream table. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaignProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaignProps.kt index de17e1eff4..0f6efc0cf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaignProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnCampaignProps.kt @@ -43,6 +43,10 @@ import kotlin.jvm.JvmName * // the properties below are optional * .compression("compression") * .dataDestinationConfigs(List.of(DataDestinationConfigProperty.builder() + * .mqttTopicConfig(MqttTopicConfigProperty.builder() + * .executionRoleArn("executionRoleArn") + * .mqttTopicArn("mqttTopicArn") + * .build()) * .s3Config(S3ConfigProperty.builder() * .bucketArn("bucketArn") * // the properties below are optional @@ -67,6 +71,21 @@ import kotlin.jvm.JvmName * .maxSampleCount(123) * .minimumSamplingIntervalMs(123) * .build())) + * .signalsToFetch(List.of(SignalFetchInformationProperty.builder() + * .actions(List.of("actions")) + * .fullyQualifiedName("fullyQualifiedName") + * .signalFetchConfig(SignalFetchConfigProperty.builder() + * .conditionBased(ConditionBasedSignalFetchConfigProperty.builder() + * .conditionExpression("conditionExpression") + * .triggerMode("triggerMode") + * .build()) + * .timeBased(TimeBasedSignalFetchConfigProperty.builder() + * .executionFrequencyMs(123) + * .build()) + * .build()) + * // the properties below are optional + * .conditionLanguageVersion(123) + * .build())) * .spoolingMode("spoolingMode") * .startTime("startTime") * .tags(List.of(CfnTag.builder() @@ -232,6 +251,11 @@ public interface CfnCampaignProps { */ public fun signalsToCollect(): Any? = unwrap(this).getSignalsToCollect() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + */ + public fun signalsToFetch(): Any? = unwrap(this).getSignalsToFetch() + /** * (Optional) Whether to store collected data after a vehicle lost a connection with the cloud. * @@ -454,6 +478,21 @@ public interface CfnCampaignProps { */ public fun signalsToCollect(vararg signalsToCollect: Any) + /** + * @param signalsToFetch the value to be set. + */ + public fun signalsToFetch(signalsToFetch: IResolvable) + + /** + * @param signalsToFetch the value to be set. + */ + public fun signalsToFetch(signalsToFetch: List) + + /** + * @param signalsToFetch the value to be set. + */ + public fun signalsToFetch(vararg signalsToFetch: Any) + /** * @param spoolingMode (Optional) Whether to store collected data after a vehicle lost a * connection with the cloud. @@ -706,6 +745,26 @@ public interface CfnCampaignProps { override fun signalsToCollect(vararg signalsToCollect: Any): Unit = signalsToCollect(signalsToCollect.toList()) + /** + * @param signalsToFetch the value to be set. + */ + override fun signalsToFetch(signalsToFetch: IResolvable) { + cdkBuilder.signalsToFetch(signalsToFetch.let(IResolvable.Companion::unwrap)) + } + + /** + * @param signalsToFetch the value to be set. + */ + override fun signalsToFetch(signalsToFetch: List) { + cdkBuilder.signalsToFetch(signalsToFetch.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param signalsToFetch the value to be set. + */ + override fun signalsToFetch(vararg signalsToFetch: Any): Unit = + signalsToFetch(signalsToFetch.toList()) + /** * @param spoolingMode (Optional) Whether to store collected data after a vehicle lost a * connection with the cloud. @@ -756,7 +815,8 @@ public interface CfnCampaignProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnCampaignProps, - ) : CdkObject(cdkObject), CfnCampaignProps { + ) : CdkObject(cdkObject), + CfnCampaignProps { /** * Specifies how to update a campaign. The action can be one of the following:. * @@ -911,6 +971,11 @@ public interface CfnCampaignProps { */ override fun signalsToCollect(): Any? = unwrap(this).getSignalsToCollect() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch) + */ + override fun signalsToFetch(): Any? = unwrap(this).getSignalsToFetch() + /** * (Optional) Whether to store collected data after a vehicle lost a connection with the cloud. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifest.kt index c31fd8b48e..b1c27fd7a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifest.kt @@ -103,7 +103,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDecoderManifest( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -635,7 +637,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.CanInterfaceProperty, - ) : CdkObject(cdkObject), CanInterfaceProperty { + ) : CdkObject(cdkObject), + CanInterfaceProperty { /** * The unique name of the interface. * @@ -827,7 +830,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.CanNetworkInterfaceProperty, - ) : CdkObject(cdkObject), CanNetworkInterfaceProperty { + ) : CdkObject(cdkObject), + CanNetworkInterfaceProperty { /** * Information about a network interface specified by the Controller Area Network (CAN) * protocol. @@ -1046,7 +1050,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.CanSignalDecoderProperty, - ) : CdkObject(cdkObject), CanSignalDecoderProperty { + ) : CdkObject(cdkObject), + CanSignalDecoderProperty { /** * Information about a single controller area network (CAN) signal and the messages it * receives and transmits. @@ -1300,7 +1305,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.CanSignalProperty, - ) : CdkObject(cdkObject), CanSignalProperty { + ) : CdkObject(cdkObject), + CanSignalProperty { /** * A multiplier used to decode the CAN message. * @@ -1555,7 +1561,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.NetworkInterfacesItemsProperty, - ) : CdkObject(cdkObject), NetworkInterfacesItemsProperty { + ) : CdkObject(cdkObject), + NetworkInterfacesItemsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-networkinterfacesitems.html#cfn-iotfleetwise-decodermanifest-networkinterfacesitems-caninterface) */ @@ -1775,7 +1782,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.ObdInterfaceProperty, - ) : CdkObject(cdkObject), ObdInterfaceProperty { + ) : CdkObject(cdkObject), + ObdInterfaceProperty { /** * (Optional) The maximum number message requests per diagnostic trouble code per second. * @@ -1994,7 +2002,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.ObdNetworkInterfaceProperty, - ) : CdkObject(cdkObject), ObdNetworkInterfaceProperty { + ) : CdkObject(cdkObject), + ObdNetworkInterfaceProperty { /** * The ID of the network interface. * @@ -2194,7 +2203,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.ObdSignalDecoderProperty, - ) : CdkObject(cdkObject), ObdSignalDecoderProperty { + ) : CdkObject(cdkObject), + ObdSignalDecoderProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-obdsignaldecoder.html#cfn-iotfleetwise-decodermanifest-obdsignaldecoder-fullyqualifiedname) */ @@ -2458,7 +2468,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.ObdSignalProperty, - ) : CdkObject(cdkObject), ObdSignalProperty { + ) : CdkObject(cdkObject), + ObdSignalProperty { /** * (Optional) The number of bits to mask in a message. * @@ -2744,7 +2755,8 @@ public open class CfnDecoderManifest( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifest.SignalDecodersItemsProperty, - ) : CdkObject(cdkObject), SignalDecodersItemsProperty { + ) : CdkObject(cdkObject), + SignalDecodersItemsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-signaldecodersitems.html#cfn-iotfleetwise-decodermanifest-signaldecodersitems-cansignal) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifestProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifestProps.kt index 5868fcbe3d..11efda9fb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifestProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnDecoderManifestProps.kt @@ -305,7 +305,8 @@ public interface CfnDecoderManifestProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnDecoderManifestProps, - ) : CdkObject(cdkObject), CfnDecoderManifestProps { + ) : CdkObject(cdkObject), + CfnDecoderManifestProps { /** * (Optional) A brief description of the decoder manifest. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleet.kt index 899f244ef0..156019a45c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleet.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnFleet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleetProps.kt index 4b41772362..42b07d2c05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnFleetProps.kt @@ -136,7 +136,8 @@ public interface CfnFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * (Optional) A brief description of the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifest.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifest.kt index 8b7af74846..223ed6d1fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifest.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifest.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelManifest( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnModelManifest, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifestProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifestProps.kt index 8bab3c7d9f..968f2e3029 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifestProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnModelManifestProps.kt @@ -198,7 +198,8 @@ public interface CfnModelManifestProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnModelManifestProps, - ) : CdkObject(cdkObject), CfnModelManifestProps { + ) : CdkObject(cdkObject), + CfnModelManifestProps { /** * (Optional) A brief description of the vehicle model. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalog.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalog.kt index dcb4ed77f5..716b31f93d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalog.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalog.kt @@ -91,7 +91,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSignalCatalog( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -716,7 +718,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.ActuatorProperty, - ) : CdkObject(cdkObject), ActuatorProperty { + ) : CdkObject(cdkObject), + ActuatorProperty { /** * (Optional) A list of possible values an actuator can take. * @@ -1026,7 +1029,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.AttributeProperty, - ) : CdkObject(cdkObject), AttributeProperty { + ) : CdkObject(cdkObject), + AttributeProperty { /** * (Optional) A list of possible values an attribute can be assigned. * @@ -1190,7 +1194,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.BranchProperty, - ) : CdkObject(cdkObject), BranchProperty { + ) : CdkObject(cdkObject), + BranchProperty { /** * (Optional) A brief description of the branch. * @@ -1368,7 +1373,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.NodeCountsProperty, - ) : CdkObject(cdkObject), NodeCountsProperty { + ) : CdkObject(cdkObject), + NodeCountsProperty { /** * (Optional) The total number of nodes in a vehicle network that represent actuators. * @@ -1757,7 +1763,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.NodeProperty, - ) : CdkObject(cdkObject), NodeProperty { + ) : CdkObject(cdkObject), + NodeProperty { /** * (Optional) Information about a node specified as an actuator. * @@ -2016,7 +2023,8 @@ public open class CfnSignalCatalog( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalog.SensorProperty, - ) : CdkObject(cdkObject), SensorProperty { + ) : CdkObject(cdkObject), + SensorProperty { /** * (Optional) A list of possible values a sensor can take. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalogProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalogProps.kt index 8d9928e8be..39ff56dc1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalogProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnSignalCatalogProps.kt @@ -265,7 +265,8 @@ public interface CfnSignalCatalogProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnSignalCatalogProps, - ) : CdkObject(cdkObject), CfnSignalCatalogProps { + ) : CdkObject(cdkObject), + CfnSignalCatalogProps { /** * (Optional) A brief description of the signal catalog. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicle.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicle.kt index 88f50e99f3..22a3ddc256 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicle.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicle.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVehicle( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnVehicle, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicleProps.kt index 74b20b22f3..e0af49139f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotfleetwise/CfnVehicleProps.kt @@ -206,7 +206,8 @@ public interface CfnVehicleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotfleetwise.CfnVehicleProps, - ) : CdkObject(cdkObject), CfnVehicleProps { + ) : CdkObject(cdkObject), + CfnVehicleProps { /** * (Optional) An option to create a new AWS IoT thing when creating a vehicle, or to validate an * existing thing as a vehicle. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicy.kt index bb9aa25978..c38f45b930 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicy.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPolicy( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -545,7 +546,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.AccessPolicyIdentityProperty, - ) : CdkObject(cdkObject), AccessPolicyIdentityProperty { + ) : CdkObject(cdkObject), + AccessPolicyIdentityProperty { /** * An IAM role identity. * @@ -722,7 +724,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.AccessPolicyResourceProperty, - ) : CdkObject(cdkObject), AccessPolicyResourceProperty { + ) : CdkObject(cdkObject), + AccessPolicyResourceProperty { /** * Identifies an AWS IoT SiteWise Monitor portal. * @@ -823,7 +826,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.IamRoleProperty, - ) : CdkObject(cdkObject), IamRoleProperty { + ) : CdkObject(cdkObject), + IamRoleProperty { /** * The ARN of the IAM role. * @@ -925,7 +929,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.IamUserProperty, - ) : CdkObject(cdkObject), IamUserProperty { + ) : CdkObject(cdkObject), + IamUserProperty { /** * The ARN of the IAM user. For more information, see [IAM * ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in the *IAM @@ -1012,7 +1017,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.PortalProperty, - ) : CdkObject(cdkObject), PortalProperty { + ) : CdkObject(cdkObject), + PortalProperty { /** * The ID of the portal. * @@ -1093,7 +1099,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.ProjectProperty, - ) : CdkObject(cdkObject), ProjectProperty { + ) : CdkObject(cdkObject), + ProjectProperty { /** * The ID of the project. * @@ -1173,7 +1180,8 @@ public open class CfnAccessPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.UserProperty, - ) : CdkObject(cdkObject), UserProperty { + ) : CdkObject(cdkObject), + UserProperty { /** * The IAM Identity Center ID of the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicyProps.kt index e6fa1fe4e7..c5edd24940 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAccessPolicyProps.kt @@ -204,7 +204,8 @@ public interface CfnAccessPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAccessPolicyProps, - ) : CdkObject(cdkObject), CfnAccessPolicyProps { + ) : CdkObject(cdkObject), + CfnAccessPolicyProps { /** * The identity for this access policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAsset.kt index ecddc45f9f..083c7cd031 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAsset.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAsset( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAsset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -674,7 +676,8 @@ public open class CfnAsset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAsset.AssetHierarchyProperty, - ) : CdkObject(cdkObject), AssetHierarchyProperty { + ) : CdkObject(cdkObject), + AssetHierarchyProperty { /** * The Id of the child asset. * @@ -939,7 +942,8 @@ public open class CfnAsset( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAsset.AssetPropertyProperty, - ) : CdkObject(cdkObject), AssetPropertyProperty { + ) : CdkObject(cdkObject), + AssetPropertyProperty { /** * The alias that identifies the property, such as an OPC-UA server data stream path (for * example, `/company/windfarm/3/turbine/7/temperature` ). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModel.kt index b3a1702e98..586624ea00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModel.kt @@ -194,7 +194,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssetModel( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -286,12 +288,12 @@ public open class CfnAssetModel( assetModelHierarchies(`value`.toList()) /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. */ public open fun assetModelName(): String = unwrap(this).getAssetModelName() /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. */ public open fun assetModelName(`value`: String) { unwrap(this).setAssetModelName(`value`) @@ -516,10 +518,10 @@ public open class CfnAssetModel( public fun assetModelHierarchies(vararg assetModelHierarchies: Any) /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-assetmodel.html#cfn-iotsitewise-assetmodel-assetmodelname) - * @param assetModelName A unique, friendly name for the asset model. + * @param assetModelName A unique name for the asset model. */ public fun assetModelName(assetModelName: String) @@ -765,10 +767,10 @@ public open class CfnAssetModel( assetModelHierarchies(assetModelHierarchies.toList()) /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-assetmodel.html#cfn-iotsitewise-assetmodel-assetmodelname) - * @param assetModelName A unique, friendly name for the asset model. + * @param assetModelName A unique name for the asset model. */ override fun assetModelName(assetModelName: String) { cdkBuilder.assetModelName(assetModelName) @@ -1288,7 +1290,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelCompositeModelProperty, - ) : CdkObject(cdkObject), AssetModelCompositeModelProperty { + ) : CdkObject(cdkObject), + AssetModelCompositeModelProperty { /** * The ID of a component model which is reused to create this composite model. * @@ -1666,7 +1669,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelHierarchyProperty, - ) : CdkObject(cdkObject), AssetModelHierarchyProperty { + ) : CdkObject(cdkObject), + AssetModelHierarchyProperty { /** * The ID of the asset model, in UUID format. * @@ -2084,7 +2088,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelPropertyProperty, - ) : CdkObject(cdkObject), AssetModelPropertyProperty { + ) : CdkObject(cdkObject), + AssetModelPropertyProperty { /** * The data type of the asset model property. * @@ -2252,7 +2257,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AttributeProperty, - ) : CdkObject(cdkObject), AttributeProperty { + ) : CdkObject(cdkObject), + AttributeProperty { /** * The default value of the asset model property attribute. * @@ -2397,7 +2403,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.ExpressionVariableProperty, - ) : CdkObject(cdkObject), ExpressionVariableProperty { + ) : CdkObject(cdkObject), + ExpressionVariableProperty { /** * The friendly name of the variable to be used in the expression. * @@ -2641,7 +2648,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.MetricProperty, - ) : CdkObject(cdkObject), MetricProperty { + ) : CdkObject(cdkObject), + MetricProperty { /** * The mathematical expression that defines the metric aggregation function. * @@ -2778,7 +2786,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.MetricWindowProperty, - ) : CdkObject(cdkObject), MetricWindowProperty { + ) : CdkObject(cdkObject), + MetricWindowProperty { /** * The tumbling time interval window. * @@ -2861,7 +2870,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty, - ) : CdkObject(cdkObject), PropertyPathDefinitionProperty { + ) : CdkObject(cdkObject), + PropertyPathDefinitionProperty { /** * The name of the path segment. * @@ -3188,7 +3198,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.PropertyTypeProperty, - ) : CdkObject(cdkObject), PropertyTypeProperty { + ) : CdkObject(cdkObject), + PropertyTypeProperty { /** * Specifies an asset attribute property. * @@ -3385,7 +3396,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.TransformProperty, - ) : CdkObject(cdkObject), TransformProperty { + ) : CdkObject(cdkObject), + TransformProperty { /** * The mathematical expression that defines the transformation function. * @@ -3639,7 +3651,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.TumblingWindowProperty, - ) : CdkObject(cdkObject), TumblingWindowProperty { + ) : CdkObject(cdkObject), + TumblingWindowProperty { /** * The time interval for the tumbling window. The interval time must be between 1 minute and 1 * week. @@ -4038,7 +4051,8 @@ public open class CfnAssetModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModel.VariableValueProperty, - ) : CdkObject(cdkObject), VariableValueProperty { + ) : CdkObject(cdkObject), + VariableValueProperty { /** * The external ID of the hierarchy being referenced. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModelProps.kt index 92635ba587..43e7291fe2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetModelProps.kt @@ -227,7 +227,7 @@ public interface CfnAssetModelProps { public fun assetModelHierarchies(): Any? = unwrap(this).getAssetModelHierarchies() /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-assetmodel.html#cfn-iotsitewise-assetmodel-assetmodelname) */ @@ -377,7 +377,7 @@ public interface CfnAssetModelProps { public fun assetModelHierarchies(vararg assetModelHierarchies: Any) /** - * @param assetModelName A unique, friendly name for the asset model. + * @param assetModelName A unique name for the asset model. */ public fun assetModelName(assetModelName: String) @@ -562,7 +562,7 @@ public interface CfnAssetModelProps { assetModelHierarchies(assetModelHierarchies.toList()) /** - * @param assetModelName A unique, friendly name for the asset model. + * @param assetModelName A unique name for the asset model. */ override fun assetModelName(assetModelName: String) { cdkBuilder.assetModelName(assetModelName) @@ -644,7 +644,8 @@ public interface CfnAssetModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetModelProps, - ) : CdkObject(cdkObject), CfnAssetModelProps { + ) : CdkObject(cdkObject), + CfnAssetModelProps { /** * The composite models that are part of this asset model. * @@ -700,7 +701,7 @@ public interface CfnAssetModelProps { override fun assetModelHierarchies(): Any? = unwrap(this).getAssetModelHierarchies() /** - * A unique, friendly name for the asset model. + * A unique name for the asset model. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-assetmodel.html#cfn-iotsitewise-assetmodel-assetmodelname) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetProps.kt index 6055128293..25f5659162 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnAssetProps.kt @@ -319,7 +319,8 @@ public interface CfnAssetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnAssetProps, - ) : CdkObject(cdkObject), CfnAssetProps { + ) : CdkObject(cdkObject), + CfnAssetProps { /** * The ID of the asset, in UUID format. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboard.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboard.kt index 5e55077d6b..bdc7900b7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboard.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboard.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDashboard( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnDashboard, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboardProps.kt index 0d2b62b152..609ac7d168 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnDashboardProps.kt @@ -182,7 +182,8 @@ public interface CfnDashboardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnDashboardProps, - ) : CdkObject(cdkObject), CfnDashboardProps { + ) : CdkObject(cdkObject), + CfnDashboardProps { /** * The dashboard definition specified in a JSON literal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGateway.kt index 5eb6834a1a..73279e4605 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGateway.kt @@ -43,6 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .greengrassV2(GreengrassV2Property.builder() * .coreDeviceThingName("coreDeviceThingName") * .build()) + * .siemensIe(SiemensIEProperty.builder() + * .iotCoreThingName("iotCoreThingName") + * .build()) * .build()) * // the properties below are optional * .gatewayCapabilitySummaries(List.of(GatewayCapabilitySummaryProperty.builder() @@ -61,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGateway( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,12 +114,12 @@ public open class CfnGateway( gatewayCapabilitySummaries(`value`.toList()) /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. */ public open fun gatewayName(): String = unwrap(this).getGatewayName() /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. */ public open fun gatewayName(`value`: String) { unwrap(this).setGatewayName(`value`) @@ -227,10 +232,10 @@ public open class CfnGateway( public fun gatewayCapabilitySummaries(vararg gatewayCapabilitySummaries: Any) /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayname) - * @param gatewayName A unique, friendly name for the gateway. + * @param gatewayName A unique name for the gateway. */ public fun gatewayName(gatewayName: String) @@ -346,10 +351,10 @@ public open class CfnGateway( gatewayCapabilitySummaries(gatewayCapabilitySummaries.toList()) /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayname) - * @param gatewayName A unique, friendly name for the gateway. + * @param gatewayName A unique name for the gateway. */ override fun gatewayName(gatewayName: String) { cdkBuilder.gatewayName(gatewayName) @@ -540,7 +545,8 @@ public open class CfnGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.GatewayCapabilitySummaryProperty, - ) : CdkObject(cdkObject), GatewayCapabilitySummaryProperty { + ) : CdkObject(cdkObject), + GatewayCapabilitySummaryProperty { /** * The JSON document that defines the configuration for the gateway capability. * @@ -598,6 +604,9 @@ public open class CfnGateway( * .greengrassV2(GreengrassV2Property.builder() * .coreDeviceThingName("coreDeviceThingName") * .build()) + * .siemensIe(SiemensIEProperty.builder() + * .iotCoreThingName("iotCoreThingName") + * .build()) * .build(); * ``` * @@ -618,6 +627,13 @@ public open class CfnGateway( */ public fun greengrassV2(): Any? = unwrap(this).getGreengrassV2() + /** + * A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge Device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewayplatform.html#cfn-iotsitewise-gateway-gatewayplatform-siemensie) + */ + public fun siemensIe(): Any? = unwrap(this).getSiemensIe() + /** * A builder for [GatewayPlatformProperty] */ @@ -656,6 +672,26 @@ public open class CfnGateway( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ca43a8bd608afed1919b0aedc0623e92dc59ed76e4674f3fb5a2b3b3450fd463") public fun greengrassV2(greengrassV2: GreengrassV2Property.Builder.() -> Unit) + + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + public fun siemensIe(siemensIe: IResolvable) + + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + public fun siemensIe(siemensIe: SiemensIEProperty) + + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8948bccacc1ab404edea7b7da29e3465a2acaf512fe64c4c08ffe92dff751198") + public fun siemensIe(siemensIe: SiemensIEProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -707,6 +743,31 @@ public open class CfnGateway( override fun greengrassV2(greengrassV2: GreengrassV2Property.Builder.() -> Unit): Unit = greengrassV2(GreengrassV2Property(greengrassV2)) + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + override fun siemensIe(siemensIe: IResolvable) { + cdkBuilder.siemensIe(siemensIe.let(IResolvable.Companion::unwrap)) + } + + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + override fun siemensIe(siemensIe: SiemensIEProperty) { + cdkBuilder.siemensIe(siemensIe.let(SiemensIEProperty.Companion::unwrap)) + } + + /** + * @param siemensIe A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8948bccacc1ab404edea7b7da29e3465a2acaf512fe64c4c08ffe92dff751198") + override fun siemensIe(siemensIe: SiemensIEProperty.Builder.() -> Unit): Unit = + siemensIe(SiemensIEProperty(siemensIe)) + public fun build(): software.amazon.awscdk.services.iotsitewise.CfnGateway.GatewayPlatformProperty = cdkBuilder.build() @@ -714,7 +775,8 @@ public open class CfnGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.GatewayPlatformProperty, - ) : CdkObject(cdkObject), GatewayPlatformProperty { + ) : CdkObject(cdkObject), + GatewayPlatformProperty { /** * A gateway that runs on AWS IoT Greengrass . * @@ -728,6 +790,13 @@ public open class CfnGateway( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewayplatform.html#cfn-iotsitewise-gateway-gatewayplatform-greengrassv2) */ override fun greengrassV2(): Any? = unwrap(this).getGreengrassV2() + + /** + * A AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge Device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewayplatform.html#cfn-iotsitewise-gateway-gatewayplatform-siemensie) + */ + override fun siemensIe(): Any? = unwrap(this).getSiemensIe() } public companion object { @@ -821,7 +890,8 @@ public open class CfnGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.GreengrassProperty, - ) : CdkObject(cdkObject), GreengrassProperty { + ) : CdkObject(cdkObject), + GreengrassProperty { /** * The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of * the Greengrass group. For more information about how to find a group's ARN, see @@ -915,7 +985,8 @@ public open class CfnGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.GreengrassV2Property, - ) : CdkObject(cdkObject), GreengrassV2Property { + ) : CdkObject(cdkObject), + GreengrassV2Property { /** * The name of the AWS IoT thing for your AWS IoT Greengrass V2 core device. * @@ -941,4 +1012,88 @@ public open class CfnGateway( software.amazon.awscdk.services.iotsitewise.CfnGateway.GreengrassV2Property } } + + /** + * Contains details for a AWS IoT SiteWise Edge gateway that runs on a Siemens Industrial Edge + * Device. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotsitewise.*; + * SiemensIEProperty siemensIEProperty = SiemensIEProperty.builder() + * .iotCoreThingName("iotCoreThingName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-siemensie.html) + */ + public interface SiemensIEProperty { + /** + * The name of the AWS IoT Thing for your AWS IoT SiteWise Edge gateway. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-siemensie.html#cfn-iotsitewise-gateway-siemensie-iotcorethingname) + */ + public fun iotCoreThingName(): String + + /** + * A builder for [SiemensIEProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param iotCoreThingName The name of the AWS IoT Thing for your AWS IoT SiteWise Edge + * gateway. + */ + public fun iotCoreThingName(iotCoreThingName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty.Builder = + software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty.builder() + + /** + * @param iotCoreThingName The name of the AWS IoT Thing for your AWS IoT SiteWise Edge + * gateway. + */ + override fun iotCoreThingName(iotCoreThingName: String) { + cdkBuilder.iotCoreThingName(iotCoreThingName) + } + + public fun build(): software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty, + ) : CdkObject(cdkObject), + SiemensIEProperty { + /** + * The name of the AWS IoT Thing for your AWS IoT SiteWise Edge gateway. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-siemensie.html#cfn-iotsitewise-gateway-siemensie-iotcorethingname) + */ + override fun iotCoreThingName(): String = unwrap(this).getIotCoreThingName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SiemensIEProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty): + SiemensIEProperty = CdkObjectWrappers.wrap(cdkObject) as? SiemensIEProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SiemensIEProperty): + software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.iotsitewise.CfnGateway.SiemensIEProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGatewayProps.kt index ac516ec4fb..2b0544120d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnGatewayProps.kt @@ -31,6 +31,9 @@ import kotlin.jvm.JvmName * .greengrassV2(GreengrassV2Property.builder() * .coreDeviceThingName("coreDeviceThingName") * .build()) + * .siemensIe(SiemensIEProperty.builder() + * .iotCoreThingName("iotCoreThingName") + * .build()) * .build()) * // the properties below are optional * .gatewayCapabilitySummaries(List.of(GatewayCapabilitySummaryProperty.builder() @@ -61,7 +64,7 @@ public interface CfnGatewayProps { public fun gatewayCapabilitySummaries(): Any? = unwrap(this).getGatewayCapabilitySummaries() /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayname) */ @@ -123,7 +126,7 @@ public interface CfnGatewayProps { public fun gatewayCapabilitySummaries(vararg gatewayCapabilitySummaries: Any) /** - * @param gatewayName A unique, friendly name for the gateway. + * @param gatewayName A unique name for the gateway. */ public fun gatewayName(gatewayName: String) @@ -205,7 +208,7 @@ public interface CfnGatewayProps { gatewayCapabilitySummaries(gatewayCapabilitySummaries.toList()) /** - * @param gatewayName A unique, friendly name for the gateway. + * @param gatewayName A unique name for the gateway. */ override fun gatewayName(gatewayName: String) { cdkBuilder.gatewayName(gatewayName) @@ -261,7 +264,8 @@ public interface CfnGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnGatewayProps, - ) : CdkObject(cdkObject), CfnGatewayProps { + ) : CdkObject(cdkObject), + CfnGatewayProps { /** * A list of gateway capability summaries that each contain a namespace and status. * @@ -275,7 +279,7 @@ public interface CfnGatewayProps { override fun gatewayCapabilitySummaries(): Any? = unwrap(this).getGatewayCapabilitySummaries() /** - * A unique, friendly name for the gateway. + * A unique name for the gateway. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-gateway.html#cfn-iotsitewise-gateway-gatewayname) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortal.kt index 03efc9d72b..33d6d949f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortal.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortal( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnPortal, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -612,7 +614,8 @@ public open class CfnPortal( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnPortal.AlarmsProperty, - ) : CdkObject(cdkObject), AlarmsProperty { + ) : CdkObject(cdkObject), + AlarmsProperty { /** * The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of * the IAM role that allows the alarm to perform actions and access AWS resources and services, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortalProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortalProps.kt index 1524e72055..b96db8b880 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortalProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnPortalProps.kt @@ -320,7 +320,8 @@ public interface CfnPortalProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnPortalProps, - ) : CdkObject(cdkObject), CfnPortalProps { + ) : CdkObject(cdkObject), + CfnPortalProps { /** * Contains the configuration information of an alarm created in an AWS IoT SiteWise Monitor * portal. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProject.kt index 127af2a01d..068d9612f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProject.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProjectProps.kt index b90432ae45..25a050ef81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotsitewise/CfnProjectProps.kt @@ -182,7 +182,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotsitewise.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * A list that contains the IDs of each asset associated with the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplate.kt index 13a68ccc7b..7623cd7376 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplate.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowTemplate( cdkObject: software.amazon.awscdk.services.iotthingsgraph.CfnFlowTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -277,7 +278,8 @@ public open class CfnFlowTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotthingsgraph.CfnFlowTemplate.DefinitionDocumentProperty, - ) : CdkObject(cdkObject), DefinitionDocumentProperty { + ) : CdkObject(cdkObject), + DefinitionDocumentProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotthingsgraph-flowtemplate-definitiondocument.html#cfn-iotthingsgraph-flowtemplate-definitiondocument-language) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplateProps.kt index 6640d5a18f..bd9ece1beb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotthingsgraph/CfnFlowTemplateProps.kt @@ -112,7 +112,8 @@ public interface CfnFlowTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotthingsgraph.CfnFlowTemplateProps, - ) : CdkObject(cdkObject), CfnFlowTemplateProps { + ) : CdkObject(cdkObject), + CfnFlowTemplateProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotthingsgraph-flowtemplate.html#cfn-iotthingsgraph-flowtemplate-compatiblenamespaceversion) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentType.kt index de72d701f9..69f72e4bb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentType.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentType.kt @@ -113,7 +113,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnComponentType( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -822,7 +824,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.CompositeComponentTypeProperty, - ) : CdkObject(cdkObject), CompositeComponentTypeProperty { + ) : CdkObject(cdkObject), + CompositeComponentTypeProperty { /** * The ID of the component type. * @@ -969,7 +972,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.DataConnectorProperty, - ) : CdkObject(cdkObject), DataConnectorProperty { + ) : CdkObject(cdkObject), + DataConnectorProperty { /** * A boolean value that specifies whether the data connector is native to IoT TwinMaker. * @@ -1236,7 +1240,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.DataTypeProperty, - ) : CdkObject(cdkObject), DataTypeProperty { + ) : CdkObject(cdkObject), + DataTypeProperty { /** * The allowed values for this data type. * @@ -1556,7 +1561,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.DataValueProperty, - ) : CdkObject(cdkObject), DataValueProperty { + ) : CdkObject(cdkObject), + DataValueProperty { /** * A boolean value. * @@ -1713,7 +1719,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.ErrorProperty, - ) : CdkObject(cdkObject), ErrorProperty { + ) : CdkObject(cdkObject), + ErrorProperty { /** * The component type error code. * @@ -1884,7 +1891,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.FunctionProperty, - ) : CdkObject(cdkObject), FunctionProperty { + ) : CdkObject(cdkObject), + FunctionProperty { /** * The data connector. * @@ -1981,7 +1989,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.LambdaFunctionProperty, - ) : CdkObject(cdkObject), LambdaFunctionProperty { + ) : CdkObject(cdkObject), + LambdaFunctionProperty { /** * The Lambda function ARN. * @@ -2360,7 +2369,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.PropertyDefinitionProperty, - ) : CdkObject(cdkObject), PropertyDefinitionProperty { + ) : CdkObject(cdkObject), + PropertyDefinitionProperty { /** * A mapping that specifies configuration information about the property. * @@ -2515,7 +2525,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.PropertyGroupProperty, - ) : CdkObject(cdkObject), PropertyGroupProperty { + ) : CdkObject(cdkObject), + PropertyGroupProperty { /** * The group type. * @@ -2626,7 +2637,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.RelationshipProperty, - ) : CdkObject(cdkObject), RelationshipProperty { + ) : CdkObject(cdkObject), + RelationshipProperty { /** * The type of the relationship. * @@ -2735,7 +2747,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.RelationshipValueProperty, - ) : CdkObject(cdkObject), RelationshipValueProperty { + ) : CdkObject(cdkObject), + RelationshipValueProperty { /** * The target component name. * @@ -2873,7 +2886,8 @@ public open class CfnComponentType( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentType.StatusProperty, - ) : CdkObject(cdkObject), StatusProperty { + ) : CdkObject(cdkObject), + StatusProperty { /** * The component type error. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentTypeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentTypeProps.kt index 3d4146a9c1..55b0b234f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentTypeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnComponentTypeProps.kt @@ -460,7 +460,8 @@ public interface CfnComponentTypeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnComponentTypeProps, - ) : CdkObject(cdkObject), CfnComponentTypeProps { + ) : CdkObject(cdkObject), + CfnComponentTypeProps { /** * The ID of the component type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntity.kt index f0b707e43e..8ea46c8479 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntity.kt @@ -115,7 +115,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEntity( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -821,7 +823,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.ComponentProperty, - ) : CdkObject(cdkObject), ComponentProperty { + ) : CdkObject(cdkObject), + ComponentProperty { /** * The name of the component. * @@ -1154,7 +1157,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.CompositeComponentProperty, - ) : CdkObject(cdkObject), CompositeComponentProperty { + ) : CdkObject(cdkObject), + CompositeComponentProperty { /** * The name of the component. * @@ -1452,7 +1456,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.DataTypeProperty, - ) : CdkObject(cdkObject), DataTypeProperty { + ) : CdkObject(cdkObject), + DataTypeProperty { /** * The allowed values. * @@ -1769,7 +1774,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.DataValueProperty, - ) : CdkObject(cdkObject), DataValueProperty { + ) : CdkObject(cdkObject), + DataValueProperty { /** * A boolean value. * @@ -2270,7 +2276,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.DefinitionProperty, - ) : CdkObject(cdkObject), DefinitionProperty { + ) : CdkObject(cdkObject), + DefinitionProperty { /** * The configuration. * @@ -2433,7 +2440,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.ErrorProperty, - ) : CdkObject(cdkObject), ErrorProperty { + ) : CdkObject(cdkObject), + ErrorProperty { /** * The entity error code. * @@ -2551,7 +2559,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.PropertyGroupProperty, - ) : CdkObject(cdkObject), PropertyGroupProperty { + ) : CdkObject(cdkObject), + PropertyGroupProperty { /** * The group type. * @@ -2699,7 +2708,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.PropertyProperty, - ) : CdkObject(cdkObject), PropertyProperty { + ) : CdkObject(cdkObject), + PropertyProperty { /** * An object that specifies information about a property. * @@ -2807,7 +2817,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.RelationshipProperty, - ) : CdkObject(cdkObject), RelationshipProperty { + ) : CdkObject(cdkObject), + RelationshipProperty { /** * The relationship type. * @@ -2915,7 +2926,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.RelationshipValueProperty, - ) : CdkObject(cdkObject), RelationshipValueProperty { + ) : CdkObject(cdkObject), + RelationshipValueProperty { /** * The target component name. * @@ -3027,7 +3039,8 @@ public open class CfnEntity( private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntity.StatusProperty, - ) : CdkObject(cdkObject), StatusProperty { + ) : CdkObject(cdkObject), + StatusProperty { /** * The error message. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntityProps.kt index 5d3f91c4ad..df415f330e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnEntityProps.kt @@ -327,7 +327,8 @@ public interface CfnEntityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnEntityProps, - ) : CdkObject(cdkObject), CfnEntityProps { + ) : CdkObject(cdkObject), + CfnEntityProps { /** * An object that maps strings to the components in the entity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnScene.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnScene.kt index 4a8721a91a..14c8d7609e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnScene.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnScene.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScene( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnScene, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSceneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSceneProps.kt index bdc2dddcec..c8f58132f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSceneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSceneProps.kt @@ -212,7 +212,8 @@ public interface CfnSceneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnSceneProps, - ) : CdkObject(cdkObject), CfnSceneProps { + ) : CdkObject(cdkObject), + CfnSceneProps { /** * A list of capabilities that the scene uses to render. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJob.kt index 6a4c737328..b75e74e7a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJob.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSyncJob( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnSyncJob, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJobProps.kt index df927d125d..42fc8eecd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnSyncJobProps.kt @@ -138,7 +138,8 @@ public interface CfnSyncJobProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnSyncJobProps, - ) : CdkObject(cdkObject), CfnSyncJobProps { + ) : CdkObject(cdkObject), + CfnSyncJobProps { /** * The SyncJob IAM role. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspace.kt index 365f9bd8fb..1a19feb436 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspace.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkspace( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnWorkspace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspaceProps.kt index f49b979b64..555b9395aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iottwinmaker/CfnWorkspaceProps.kt @@ -145,7 +145,8 @@ public interface CfnWorkspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iottwinmaker.CfnWorkspaceProps, - ) : CdkObject(cdkObject), CfnWorkspaceProps { + ) : CdkObject(cdkObject), + CfnWorkspaceProps { /** * The description of the workspace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestination.kt index 081b5e56e4..c59b32faa0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestination.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDestination( cdkObject: software.amazon.awscdk.services.iotwireless.CfnDestination, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestinationProps.kt index b9baeab6a7..e4d67935ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDestinationProps.kt @@ -186,7 +186,8 @@ public interface CfnDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnDestinationProps, - ) : CdkObject(cdkObject), CfnDestinationProps { + ) : CdkObject(cdkObject), + CfnDestinationProps { /** * The description of the new resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfile.kt index f7bf0a47eb..e6b33489a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfile.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeviceProfile( cdkObject: software.amazon.awscdk.services.iotwireless.CfnDeviceProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotwireless.CfnDeviceProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -820,7 +822,8 @@ public open class CfnDeviceProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnDeviceProfile.LoRaWANDeviceProfileProperty, - ) : CdkObject(cdkObject), LoRaWANDeviceProfileProperty { + ) : CdkObject(cdkObject), + LoRaWANDeviceProfileProperty { /** * The ClassBTimeout value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfileProps.kt index 9d419476ff..1ae3420114 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnDeviceProfileProps.kt @@ -172,7 +172,8 @@ public interface CfnDeviceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnDeviceProfileProps, - ) : CdkObject(cdkObject), CfnDeviceProfileProps { + ) : CdkObject(cdkObject), + CfnDeviceProfileProps { /** * LoRaWAN device profile object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTask.kt index 13a0e35ca3..cf6a51369c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTask.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFuotaTask( cdkObject: software.amazon.awscdk.services.iotwireless.CfnFuotaTask, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -612,7 +614,8 @@ public open class CfnFuotaTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnFuotaTask.LoRaWANProperty, - ) : CdkObject(cdkObject), LoRaWANProperty { + ) : CdkObject(cdkObject), + LoRaWANProperty { /** * The frequency band (RFRegion) value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTaskProps.kt index f13839da58..055072d33a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnFuotaTaskProps.kt @@ -304,7 +304,8 @@ public interface CfnFuotaTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnFuotaTaskProps, - ) : CdkObject(cdkObject), CfnFuotaTaskProps { + ) : CdkObject(cdkObject), + CfnFuotaTaskProps { /** * The ID of the multicast group to associate with a FUOTA task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroup.kt index 30de0c9601..78d8316613 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroup.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMulticastGroup( cdkObject: software.amazon.awscdk.services.iotwireless.CfnMulticastGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -541,7 +543,8 @@ public open class CfnMulticastGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnMulticastGroup.LoRaWANProperty, - ) : CdkObject(cdkObject), LoRaWANProperty { + ) : CdkObject(cdkObject), + LoRaWANProperty { /** * DlClass for LoRaWAN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroupProps.kt index 1c71587c01..defef7ec31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnMulticastGroupProps.kt @@ -223,7 +223,8 @@ public interface CfnMulticastGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnMulticastGroupProps, - ) : CdkObject(cdkObject), CfnMulticastGroupProps { + ) : CdkObject(cdkObject), + CfnMulticastGroupProps { /** * The ID of the wireless device to associate with a multicast group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfiguration.kt index 9cf20a3e63..bc21e43ffb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfiguration.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkAnalyzerConfiguration( cdkObject: software.amazon.awscdk.services.iotwireless.CfnNetworkAnalyzerConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -497,7 +499,8 @@ public open class CfnNetworkAnalyzerConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnNetworkAnalyzerConfiguration.TraceContentProperty, - ) : CdkObject(cdkObject), TraceContentProperty { + ) : CdkObject(cdkObject), + TraceContentProperty { /** * The log level for a log message. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfigurationProps.kt index 3ef0fd19b6..4033d184d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnNetworkAnalyzerConfigurationProps.kt @@ -229,7 +229,8 @@ public interface CfnNetworkAnalyzerConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnNetworkAnalyzerConfigurationProps, - ) : CdkObject(cdkObject), CfnNetworkAnalyzerConfigurationProps { + ) : CdkObject(cdkObject), + CfnNetworkAnalyzerConfigurationProps { /** * The description of the resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccount.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccount.kt index dbfc5fb367..417f00b04d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccount.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccount.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPartnerAccount( cdkObject: software.amazon.awscdk.services.iotwireless.CfnPartnerAccount, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotwireless.CfnPartnerAccount(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -644,7 +646,8 @@ public open class CfnPartnerAccount( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnPartnerAccount.SidewalkAccountInfoProperty, - ) : CdkObject(cdkObject), SidewalkAccountInfoProperty { + ) : CdkObject(cdkObject), + SidewalkAccountInfoProperty { /** * The Sidewalk application server private key. * @@ -773,7 +776,8 @@ public open class CfnPartnerAccount( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnPartnerAccount.SidewalkAccountInfoWithFingerprintProperty, - ) : CdkObject(cdkObject), SidewalkAccountInfoWithFingerprintProperty { + ) : CdkObject(cdkObject), + SidewalkAccountInfoWithFingerprintProperty { /** * The Sidewalk Amazon ID. * @@ -871,7 +875,8 @@ public open class CfnPartnerAccount( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnPartnerAccount.SidewalkUpdateAccountProperty, - ) : CdkObject(cdkObject), SidewalkUpdateAccountProperty { + ) : CdkObject(cdkObject), + SidewalkUpdateAccountProperty { /** * The new Sidewalk application server private key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccountProps.kt index 913a7ec826..70b8586c7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnPartnerAccountProps.kt @@ -315,7 +315,8 @@ public interface CfnPartnerAccountProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnPartnerAccountProps, - ) : CdkObject(cdkObject), CfnPartnerAccountProps { + ) : CdkObject(cdkObject), + CfnPartnerAccountProps { /** * Whether the partner account is linked to the AWS account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfile.kt index a915c98df6..dac23f63a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfile.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceProfile( cdkObject: software.amazon.awscdk.services.iotwireless.CfnServiceProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.iotwireless.CfnServiceProfile(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1037,7 +1039,8 @@ public open class CfnServiceProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnServiceProfile.LoRaWANServiceProfileProperty, - ) : CdkObject(cdkObject), LoRaWANServiceProfileProperty { + ) : CdkObject(cdkObject), + LoRaWANServiceProfileProperty { /** * The AddGWMetaData value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfileProps.kt index e1b4822963..fe3932f1f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnServiceProfileProps.kt @@ -173,7 +173,8 @@ public interface CfnServiceProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnServiceProfileProps, - ) : CdkObject(cdkObject), CfnServiceProfileProps { + ) : CdkObject(cdkObject), + CfnServiceProfileProps { /** * LoRaWAN service profile object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinition.kt index 8acc5e42fe..d4132be04f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinition.kt @@ -78,7 +78,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTaskDefinition( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -626,7 +628,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinition.LoRaWANGatewayVersionProperty, - ) : CdkObject(cdkObject), LoRaWANGatewayVersionProperty { + ) : CdkObject(cdkObject), + LoRaWANGatewayVersionProperty { /** * The model number of the wireless gateway. * @@ -845,7 +848,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinition.LoRaWANUpdateGatewayTaskCreateProperty, - ) : CdkObject(cdkObject), LoRaWANUpdateGatewayTaskCreateProperty { + ) : CdkObject(cdkObject), + LoRaWANUpdateGatewayTaskCreateProperty { /** * The version of the gateways that should receive the update. * @@ -1032,7 +1036,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinition.LoRaWANUpdateGatewayTaskEntryProperty, - ) : CdkObject(cdkObject), LoRaWANUpdateGatewayTaskEntryProperty { + ) : CdkObject(cdkObject), + LoRaWANUpdateGatewayTaskEntryProperty { /** * The version of the gateways that should receive the update. * @@ -1203,7 +1208,8 @@ public open class CfnTaskDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinition.UpdateWirelessGatewayTaskCreateProperty, - ) : CdkObject(cdkObject), UpdateWirelessGatewayTaskCreateProperty { + ) : CdkObject(cdkObject), + UpdateWirelessGatewayTaskCreateProperty { /** * The properties that relate to the LoRaWAN wireless gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinitionProps.kt index ab287e6c75..f694c48f79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnTaskDefinitionProps.kt @@ -301,7 +301,8 @@ public interface CfnTaskDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnTaskDefinitionProps, - ) : CdkObject(cdkObject), CfnTaskDefinitionProps { + ) : CdkObject(cdkObject), + CfnTaskDefinitionProps { /** * Whether to automatically create tasks using this task definition for all gateways with the * specified current version. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDevice.kt index ebfd6e2318..d79c3cabdc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDevice.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -55,6 +56,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .devEui("devEui") * .deviceProfileId("deviceProfileId") + * .fPorts(FPortsProperty.builder() + * .applications(List.of(ApplicationProperty.builder() + * .destinationName("destinationName") + * .fPort(123) + * .type("type") + * .build())) + * .build()) * .otaaV10X(OtaaV10xProperty.builder() * .appEui("appEui") * .appKey("appKey") @@ -80,7 +88,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWirelessDevice( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -648,7 +658,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.AbpV10xProperty, - ) : CdkObject(cdkObject), AbpV10xProperty { + ) : CdkObject(cdkObject), + AbpV10xProperty { /** * The DevAddr value. * @@ -788,7 +799,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.AbpV11Property, - ) : CdkObject(cdkObject), AbpV11Property { + ) : CdkObject(cdkObject), + AbpV11Property { /** * The DevAddr value. * @@ -822,6 +834,266 @@ public open class CfnWirelessDevice( } } + /** + * A list of optional LoRaWAN application information, which can be used for geolocation. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotwireless.*; + * ApplicationProperty applicationProperty = ApplicationProperty.builder() + * .destinationName("destinationName") + * .fPort(123) + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html) + */ + public interface ApplicationProperty { + /** + * The name of the position data destination that describes the IoT rule that processes the + * device's position data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-destinationname) + */ + public fun destinationName(): String? = unwrap(this).getDestinationName() + + /** + * The name of the new destination for the device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-fport) + */ + public fun fPort(): Number? = unwrap(this).getFPort() + + /** + * Application type, which can be specified to obtain real-time position information of your + * LoRaWAN device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-type) + */ + public fun type(): String? = unwrap(this).getType() + + /** + * A builder for [ApplicationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinationName The name of the position data destination that describes the IoT + * rule that processes the device's position data. + */ + public fun destinationName(destinationName: String) + + /** + * @param fPort The name of the new destination for the device. + */ + public fun fPort(fPort: Number) + + /** + * @param type Application type, which can be specified to obtain real-time position + * information of your LoRaWAN device. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty.Builder + = + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty.builder() + + /** + * @param destinationName The name of the position data destination that describes the IoT + * rule that processes the device's position data. + */ + override fun destinationName(destinationName: String) { + cdkBuilder.destinationName(destinationName) + } + + /** + * @param fPort The name of the new destination for the device. + */ + override fun fPort(fPort: Number) { + cdkBuilder.fPort(fPort) + } + + /** + * @param type Application type, which can be specified to obtain real-time position + * information of your LoRaWAN device. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty, + ) : CdkObject(cdkObject), + ApplicationProperty { + /** + * The name of the position data destination that describes the IoT rule that processes the + * device's position data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-destinationname) + */ + override fun destinationName(): String? = unwrap(this).getDestinationName() + + /** + * The name of the new destination for the device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-fport) + */ + override fun fPort(): Number? = unwrap(this).getFPort() + + /** + * Application type, which can be specified to obtain real-time position information of your + * LoRaWAN device. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-application.html#cfn-iotwireless-wirelessdevice-application-type) + */ + override fun type(): String? = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ApplicationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty): + ApplicationProperty = CdkObjectWrappers.wrap(cdkObject) as? ApplicationProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ApplicationProperty): + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.ApplicationProperty + } + } + + /** + * List of FPorts assigned for different LoRaWAN application packages to use. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.iotwireless.*; + * FPortsProperty fPortsProperty = FPortsProperty.builder() + * .applications(List.of(ApplicationProperty.builder() + * .destinationName("destinationName") + * .fPort(123) + * .type("type") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-fports.html) + */ + public interface FPortsProperty { + /** + * LoRaWAN application configuration, which can be used to perform geolocation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-fports.html#cfn-iotwireless-wirelessdevice-fports-applications) + */ + public fun applications(): Any? = unwrap(this).getApplications() + + /** + * A builder for [FPortsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + public fun applications(applications: IResolvable) + + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + public fun applications(applications: List) + + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + public fun applications(vararg applications: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty.Builder = + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty.builder() + + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + override fun applications(applications: IResolvable) { + cdkBuilder.applications(applications.let(IResolvable.Companion::unwrap)) + } + + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + override fun applications(applications: List) { + cdkBuilder.applications(applications.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param applications LoRaWAN application configuration, which can be used to perform + * geolocation. + */ + override fun applications(vararg applications: Any): Unit = + applications(applications.toList()) + + public fun build(): + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty, + ) : CdkObject(cdkObject), + FPortsProperty { + /** + * LoRaWAN application configuration, which can be used to perform geolocation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-fports.html#cfn-iotwireless-wirelessdevice-fports-applications) + */ + override fun applications(): Any? = unwrap(this).getApplications() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FPortsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty): + FPortsProperty = CdkObjectWrappers.wrap(cdkObject) as? FPortsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: FPortsProperty): + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.FPortsProperty + } + } + /** * LoRaWAN object for create functions. * @@ -850,6 +1122,13 @@ public open class CfnWirelessDevice( * .build()) * .devEui("devEui") * .deviceProfileId("deviceProfileId") + * .fPorts(FPortsProperty.builder() + * .applications(List.of(ApplicationProperty.builder() + * .destinationName("destinationName") + * .fPort(123) + * .type("type") + * .build())) + * .build()) * .otaaV10X(OtaaV10xProperty.builder() * .appEui("appEui") * .appKey("appKey") @@ -894,6 +1173,13 @@ public open class CfnWirelessDevice( */ public fun deviceProfileId(): String? = unwrap(this).getDeviceProfileId() + /** + * List of FPort assigned for different LoRaWAN application packages to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-lorawandevice.html#cfn-iotwireless-wirelessdevice-lorawandevice-fports) + */ + public fun fPorts(): Any? = unwrap(this).getFPorts() + /** * OTAA device object for create APIs for v1.0.x. * @@ -964,6 +1250,23 @@ public open class CfnWirelessDevice( */ public fun deviceProfileId(deviceProfileId: String) + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + public fun fPorts(fPorts: IResolvable) + + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + public fun fPorts(fPorts: FPortsProperty) + + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d76cbc275f943cd5fa942f95b23102db9ba95b7c91288e504adbd040ef8ad97") + public fun fPorts(fPorts: FPortsProperty.Builder.() -> Unit) + /** * @param otaaV10X OTAA device object for create APIs for v1.0.x. */ @@ -1068,6 +1371,28 @@ public open class CfnWirelessDevice( cdkBuilder.deviceProfileId(deviceProfileId) } + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + override fun fPorts(fPorts: IResolvable) { + cdkBuilder.fPorts(fPorts.let(IResolvable.Companion::unwrap)) + } + + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + override fun fPorts(fPorts: FPortsProperty) { + cdkBuilder.fPorts(fPorts.let(FPortsProperty.Companion::unwrap)) + } + + /** + * @param fPorts List of FPort assigned for different LoRaWAN application packages to use. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d76cbc275f943cd5fa942f95b23102db9ba95b7c91288e504adbd040ef8ad97") + override fun fPorts(fPorts: FPortsProperty.Builder.() -> Unit): Unit = + fPorts(FPortsProperty(fPorts)) + /** * @param otaaV10X OTAA device object for create APIs for v1.0.x. */ @@ -1126,7 +1451,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.LoRaWANDeviceProperty, - ) : CdkObject(cdkObject), LoRaWANDeviceProperty { + ) : CdkObject(cdkObject), + LoRaWANDeviceProperty { /** * ABP device object for LoRaWAN specification v1.0.x. * @@ -1155,6 +1481,13 @@ public open class CfnWirelessDevice( */ override fun deviceProfileId(): String? = unwrap(this).getDeviceProfileId() + /** + * List of FPort assigned for different LoRaWAN application packages to use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-wirelessdevice-lorawandevice.html#cfn-iotwireless-wirelessdevice-lorawandevice-fports) + */ + override fun fPorts(): Any? = unwrap(this).getFPorts() + /** * OTAA device object for create APIs for v1.0.x. * @@ -1271,7 +1604,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.OtaaV10xProperty, - ) : CdkObject(cdkObject), OtaaV10xProperty { + ) : CdkObject(cdkObject), + OtaaV10xProperty { /** * The AppEUI value. * @@ -1427,7 +1761,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.OtaaV11Property, - ) : CdkObject(cdkObject), OtaaV11Property { + ) : CdkObject(cdkObject), + OtaaV11Property { /** * The AppKey is a secret key, which you should handle in a similar way as you would an * application password. @@ -1553,7 +1888,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.SessionKeysAbpV10xProperty, - ) : CdkObject(cdkObject), SessionKeysAbpV10xProperty { + ) : CdkObject(cdkObject), + SessionKeysAbpV10xProperty { /** * The AppSKey value. * @@ -1754,7 +2090,8 @@ public open class CfnWirelessDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDevice.SessionKeysAbpV11Property, - ) : CdkObject(cdkObject), SessionKeysAbpV11Property { + ) : CdkObject(cdkObject), + SessionKeysAbpV11Property { /** * The AppSKey is a secret key, which you should handle in a similar way as you would an * application password. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTask.kt index e915bc28bf..4c5e1c1b78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTask.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWirelessDeviceImportTask( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDeviceImportTask, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -502,7 +504,8 @@ public open class CfnWirelessDeviceImportTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDeviceImportTask.SidewalkProperty, - ) : CdkObject(cdkObject), SidewalkProperty { + ) : CdkObject(cdkObject), + SidewalkProperty { /** * The CSV file contained in an S3 bucket that's used for adding devices to an import task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTaskProps.kt index f98985be7a..c8078bec6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceImportTaskProps.kt @@ -163,7 +163,8 @@ public interface CfnWirelessDeviceImportTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDeviceImportTaskProps, - ) : CdkObject(cdkObject), CfnWirelessDeviceImportTaskProps { + ) : CdkObject(cdkObject), + CfnWirelessDeviceImportTaskProps { /** * The name of the destination that describes the IoT rule to route messages from the Sidewalk * devices in the import task to other applications. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceProps.kt index 0a4b4c25d9..cef3c49fd9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessDeviceProps.kt @@ -47,6 +47,13 @@ import kotlin.jvm.JvmName * .build()) * .devEui("devEui") * .deviceProfileId("deviceProfileId") + * .fPorts(FPortsProperty.builder() + * .applications(List.of(ApplicationProperty.builder() + * .destinationName("destinationName") + * .fPort(123) + * .type("type") + * .build())) + * .build()) * .otaaV10X(OtaaV10xProperty.builder() * .appEui("appEui") * .appKey("appKey") @@ -323,7 +330,8 @@ public interface CfnWirelessDeviceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessDeviceProps, - ) : CdkObject(cdkObject), CfnWirelessDeviceProps { + ) : CdkObject(cdkObject), + CfnWirelessDeviceProps { /** * The description of the new resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGateway.kt index f959b2cefa..aea3b52695 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGateway.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWirelessGateway( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessGateway, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -508,7 +510,8 @@ public open class CfnWirelessGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessGateway.LoRaWANGatewayProperty, - ) : CdkObject(cdkObject), LoRaWANGatewayProperty { + ) : CdkObject(cdkObject), + LoRaWANGatewayProperty { /** * The gateway's EUI value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGatewayProps.kt index d8809beb38..3ca224bdec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/iotwireless/CfnWirelessGatewayProps.kt @@ -244,7 +244,8 @@ public interface CfnWirelessGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.iotwireless.CfnWirelessGatewayProps, - ) : CdkObject(cdkObject), CfnWirelessGatewayProps { + ) : CdkObject(cdkObject), + CfnWirelessGatewayProps { /** * The description of the new resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannel.kt index f916bdfa99..77f1160292 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannel.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.ivs.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ivs.CfnChannel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannelProps.kt index f2ea56d0d3..1e40366aeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnChannelProps.kt @@ -438,7 +438,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * Whether the channel is authorized. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfiguration.kt index 2d1b40b40f..1269ab9685 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfiguration.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEncoderConfiguration( cdkObject: software.amazon.awscdk.services.ivs.CfnEncoderConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ivs.CfnEncoderConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -484,7 +486,8 @@ public open class CfnEncoderConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnEncoderConfiguration.VideoProperty, - ) : CdkObject(cdkObject), VideoProperty { + ) : CdkObject(cdkObject), + VideoProperty { /** * Bitrate for generated output, in bps. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfigurationProps.kt index 99cc52117d..fe2ee2d66a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnEncoderConfigurationProps.kt @@ -189,7 +189,8 @@ public interface CfnEncoderConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnEncoderConfigurationProps, - ) : CdkObject(cdkObject), CfnEncoderConfigurationProps { + ) : CdkObject(cdkObject), + CfnEncoderConfigurationProps { /** * Encoder cnfiguration name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPair.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPair.kt index 61d8b949d9..9ea33d4f9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPair.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPair.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlaybackKeyPair( cdkObject: software.amazon.awscdk.services.ivs.CfnPlaybackKeyPair, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ivs.CfnPlaybackKeyPair(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPairProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPairProps.kt index 17962f1f69..fc69499882 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPairProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackKeyPairProps.kt @@ -135,7 +135,8 @@ public interface CfnPlaybackKeyPairProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnPlaybackKeyPairProps, - ) : CdkObject(cdkObject), CfnPlaybackKeyPairProps { + ) : CdkObject(cdkObject), + CfnPlaybackKeyPairProps { /** * Playback-key-pair name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicy.kt index bdab0be882..a4e07963a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicy.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlaybackRestrictionPolicy( cdkObject: software.amazon.awscdk.services.ivs.CfnPlaybackRestrictionPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicyProps.kt index 97b71e1d0d..d51d29e852 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPlaybackRestrictionPolicyProps.kt @@ -239,7 +239,8 @@ public interface CfnPlaybackRestrictionPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnPlaybackRestrictionPolicyProps, - ) : CdkObject(cdkObject), CfnPlaybackRestrictionPolicyProps { + ) : CdkObject(cdkObject), + CfnPlaybackRestrictionPolicyProps { /** * A list of country codes that control geoblocking restrictions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKey.kt new file mode 100644 index 0000000000..c10da12bc9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKey.kt @@ -0,0 +1,249 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ivs + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::IVS::PublicKey` resource specifies an Amazon IVS public key used to sign stage + * participant tokens. + * + * For more information, see [Distribute Participant + * Tokens](https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/getting-started-distribute-tokens.html) + * in the *Amazon IVS Real-Time Streaming User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ivs.*; + * CfnPublicKey cfnPublicKey = CfnPublicKey.Builder.create(this, "MyCfnPublicKey") + * .name("name") + * .publicKeyMaterial("publicKeyMaterial") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html) + */ +public open class CfnPublicKey( + cdkObject: software.amazon.awscdk.services.ivs.CfnPublicKey, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.ivs.CfnPublicKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPublicKeyProps, + ) : + this(software.amazon.awscdk.services.ivs.CfnPublicKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnPublicKeyProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPublicKeyProps.Builder.() -> Unit, + ) : this(scope, id, CfnPublicKeyProps(props) + ) + + /** + * The public key ARN. + * + * For example: `arn:aws:ivs:us-west-2:123456789012:public-key/abcdABCDefgh` + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The public key identifier. + * + * For example: `98:0d:1a:a0:19:96:1e:ea:0a:0a:2c:9a:42:19:2b:e7` + */ + public open fun attrFingerprint(): String = unwrap(this).getAttrFingerprint() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * Public key name. + */ + public open fun name(): String? = unwrap(this).getName() + + /** + * Public key name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The public portion of a customer-generated key pair. + */ + public open fun publicKeyMaterial(): String? = unwrap(this).getPublicKeyMaterial() + + /** + * The public portion of a customer-generated key pair. + */ + public open fun publicKeyMaterial(`value`: String) { + unwrap(this).setPublicKeyMaterial(`value`) + } + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ivs.CfnPublicKey]. + */ + @CdkDslMarker + public interface Builder { + /** + * Public key name. + * + * The value does not need to be unique. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-name) + * @param name Public key name. + */ + public fun name(name: String) + + /** + * The public portion of a customer-generated key pair. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-publickeymaterial) + * @param publicKeyMaterial The public portion of a customer-generated key pair. + */ + public fun publicKeyMaterial(publicKeyMaterial: String) + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(tags: List) + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ivs.CfnPublicKey.Builder = + software.amazon.awscdk.services.ivs.CfnPublicKey.Builder.create(scope, id) + + /** + * Public key name. + * + * The value does not need to be unique. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-name) + * @param name Public key name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The public portion of a customer-generated key pair. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-publickeymaterial) + * @param publicKeyMaterial The public portion of a customer-generated key pair. + */ + override fun publicKeyMaterial(publicKeyMaterial: String) { + cdkBuilder.publicKeyMaterial(publicKeyMaterial) + } + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ivs.CfnPublicKey = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ivs.CfnPublicKey.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnPublicKey { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnPublicKey(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ivs.CfnPublicKey): CfnPublicKey = + CfnPublicKey(cdkObject) + + internal fun unwrap(wrapped: CfnPublicKey): software.amazon.awscdk.services.ivs.CfnPublicKey = + wrapped.cdkObject as software.amazon.awscdk.services.ivs.CfnPublicKey + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKeyProps.kt new file mode 100644 index 0000000000..9b744879b7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnPublicKeyProps.kt @@ -0,0 +1,161 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ivs + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnPublicKey`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ivs.*; + * CfnPublicKeyProps cfnPublicKeyProps = CfnPublicKeyProps.builder() + * .name("name") + * .publicKeyMaterial("publicKeyMaterial") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html) + */ +public interface CfnPublicKeyProps { + /** + * Public key name. + * + * The value does not need to be unique. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * The public portion of a customer-generated key pair. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-publickeymaterial) + */ + public fun publicKeyMaterial(): String? = unwrap(this).getPublicKeyMaterial() + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnPublicKeyProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name Public key name. + * The value does not need to be unique. + */ + public fun name(name: String) + + /** + * @param publicKeyMaterial The public portion of a customer-generated key pair. + */ + public fun publicKeyMaterial(publicKeyMaterial: String) + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(tags: List) + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ivs.CfnPublicKeyProps.Builder = + software.amazon.awscdk.services.ivs.CfnPublicKeyProps.builder() + + /** + * @param name Public key name. + * The value does not need to be unique. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param publicKeyMaterial The public portion of a customer-generated key pair. + */ + override fun publicKeyMaterial(publicKeyMaterial: String) { + cdkBuilder.publicKeyMaterial(publicKeyMaterial) + } + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ivs.CfnPublicKeyProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ivs.CfnPublicKeyProps, + ) : CdkObject(cdkObject), + CfnPublicKeyProps { + /** + * Public key name. + * + * The value does not need to be unique. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * The public portion of a customer-generated key pair. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-publickeymaterial) + */ + override fun publicKeyMaterial(): String? = unwrap(this).getPublicKeyMaterial() + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-publickey.html#cfn-ivs-publickey-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnPublicKeyProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ivs.CfnPublicKeyProps): + CfnPublicKeyProps = CdkObjectWrappers.wrap(cdkObject) as? CfnPublicKeyProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnPublicKeyProps): + software.amazon.awscdk.services.ivs.CfnPublicKeyProps = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ivs.CfnPublicKeyProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfiguration.kt index 5081f450bc..37a5891be4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfiguration.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRecordingConfiguration( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -742,7 +744,8 @@ public open class CfnRecordingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfiguration.DestinationConfigurationProperty, - ) : CdkObject(cdkObject), DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + DestinationConfigurationProperty { /** * An S3 destination configuration where recorded videos will be stored. * @@ -899,7 +902,8 @@ public open class CfnRecordingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfiguration.RenditionConfigurationProperty, - ) : CdkObject(cdkObject), RenditionConfigurationProperty { + ) : CdkObject(cdkObject), + RenditionConfigurationProperty { /** * The set of renditions are recorded for a stream. * @@ -1001,7 +1005,8 @@ public open class CfnRecordingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfiguration.S3DestinationConfigurationProperty, - ) : CdkObject(cdkObject), S3DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + S3DestinationConfigurationProperty { /** * Location (S3 bucket name) where recorded videos will be stored. * @@ -1259,7 +1264,8 @@ public open class CfnRecordingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfiguration.ThumbnailConfigurationProperty, - ) : CdkObject(cdkObject), ThumbnailConfigurationProperty { + ) : CdkObject(cdkObject), + ThumbnailConfigurationProperty { /** * Thumbnail recording mode. Valid values:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfigurationProps.kt index bdaec23320..17696cc7f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnRecordingConfigurationProps.kt @@ -371,7 +371,8 @@ public interface CfnRecordingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnRecordingConfigurationProps, - ) : CdkObject(cdkObject), CfnRecordingConfigurationProps { + ) : CdkObject(cdkObject), + CfnRecordingConfigurationProps { /** * A destination configuration describes an S3 bucket where recorded video will be stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStage.kt index 26985eccba..c1d5afe52e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStage.kt @@ -5,13 +5,18 @@ package io.cloudshiftdev.awscdk.services.ivs import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggableV2 import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -30,6 +35,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.ivs.*; * CfnStage cfnStage = CfnStage.Builder.create(this, "MyCfnStage") + * .autoParticipantRecordingConfiguration(AutoParticipantRecordingConfigurationProperty.builder() + * .storageConfigurationArn("storageConfigurationArn") + * // the properties below are optional + * .mediaTypes(List.of("mediaTypes")) + * .build()) * .name("name") * .tags(List.of(CfnTag.builder() * .key("key") @@ -42,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStage( cdkObject: software.amazon.awscdk.services.ivs.CfnStage, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ivs.CfnStage(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -78,6 +90,37 @@ public open class CfnStage( */ public open fun attrArn(): String = unwrap(this).getAttrArn() + /** + * Configuration object for individual participant recording, to attach to the new stage. + */ + public open fun autoParticipantRecordingConfiguration(): Any? = + unwrap(this).getAutoParticipantRecordingConfiguration() + + /** + * Configuration object for individual participant recording, to attach to the new stage. + */ + public open fun autoParticipantRecordingConfiguration(`value`: IResolvable) { + unwrap(this).setAutoParticipantRecordingConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration object for individual participant recording, to attach to the new stage. + */ + public open + fun autoParticipantRecordingConfiguration(`value`: AutoParticipantRecordingConfigurationProperty) { + unwrap(this).setAutoParticipantRecordingConfiguration(`value`.let(AutoParticipantRecordingConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration object for individual participant recording, to attach to the new stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8c6977838905460d201c16f67c01f1a6dec88e203c5d7f8157810acc8c72ff94") + public open + fun autoParticipantRecordingConfiguration(`value`: AutoParticipantRecordingConfigurationProperty.Builder.() -> Unit): + Unit = + autoParticipantRecordingConfiguration(AutoParticipantRecordingConfigurationProperty(`value`)) + /** * Tag Manager which manages the tags for this resource. */ @@ -127,6 +170,38 @@ public open class CfnStage( */ @CdkDslMarker public interface Builder { + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: IResolvable) + + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: AutoParticipantRecordingConfigurationProperty) + + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8fc225c9bc896f7b7c76d9706ca729391927525766b126166cab8944900cf241") + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: AutoParticipantRecordingConfigurationProperty.Builder.() -> Unit) + /** * Stage name. * @@ -167,6 +242,44 @@ public open class CfnStage( private val cdkBuilder: software.amazon.awscdk.services.ivs.CfnStage.Builder = software.amazon.awscdk.services.ivs.CfnStage.Builder.create(scope, id) + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: IResolvable) { + cdkBuilder.autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: AutoParticipantRecordingConfigurationProperty) { + cdkBuilder.autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration.let(AutoParticipantRecordingConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8fc225c9bc896f7b7c76d9706ca729391927525766b126166cab8944900cf241") + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: AutoParticipantRecordingConfigurationProperty.Builder.() -> Unit): + Unit = + autoParticipantRecordingConfiguration(AutoParticipantRecordingConfigurationProperty(autoParticipantRecordingConfiguration)) + /** * Stage name. * @@ -225,4 +338,152 @@ public open class CfnStage( internal fun unwrap(wrapped: CfnStage): software.amazon.awscdk.services.ivs.CfnStage = wrapped.cdkObject as software.amazon.awscdk.services.ivs.CfnStage } + + /** + * The `AWS::IVS::AutoParticipantRecordingConfiguration` property type describes a configuration + * for individual participant recording. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ivs.*; + * AutoParticipantRecordingConfigurationProperty autoParticipantRecordingConfigurationProperty = + * AutoParticipantRecordingConfigurationProperty.builder() + * .storageConfigurationArn("storageConfigurationArn") + * // the properties below are optional + * .mediaTypes(List.of("mediaTypes")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-autoparticipantrecordingconfiguration.html) + */ + public interface AutoParticipantRecordingConfigurationProperty { + /** + * Types of media to be recorded. + * + * Default: `AUDIO_VIDEO` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-autoparticipantrecordingconfiguration.html#cfn-ivs-stage-autoparticipantrecordingconfiguration-mediatypes) + */ + public fun mediaTypes(): List = unwrap(this).getMediaTypes() ?: emptyList() + + /** + * ARN of the StorageConfiguration resource to use for individual participant recording. + * + * Default: "" (empty string, no storage configuration is specified). Individual participant + * recording cannot be started unless a storage configuration is specified, when a Stage is created + * or updated. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-autoparticipantrecordingconfiguration.html#cfn-ivs-stage-autoparticipantrecordingconfiguration-storageconfigurationarn) + */ + public fun storageConfigurationArn(): String + + /** + * A builder for [AutoParticipantRecordingConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param mediaTypes Types of media to be recorded. + * Default: `AUDIO_VIDEO` . + */ + public fun mediaTypes(mediaTypes: List) + + /** + * @param mediaTypes Types of media to be recorded. + * Default: `AUDIO_VIDEO` . + */ + public fun mediaTypes(vararg mediaTypes: String) + + /** + * @param storageConfigurationArn ARN of the StorageConfiguration resource to use for + * individual participant recording. + * Default: "" (empty string, no storage configuration is specified). Individual participant + * recording cannot be started unless a storage configuration is specified, when a Stage is + * created or updated. + */ + public fun storageConfigurationArn(storageConfigurationArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty.Builder + = + software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty.builder() + + /** + * @param mediaTypes Types of media to be recorded. + * Default: `AUDIO_VIDEO` . + */ + override fun mediaTypes(mediaTypes: List) { + cdkBuilder.mediaTypes(mediaTypes) + } + + /** + * @param mediaTypes Types of media to be recorded. + * Default: `AUDIO_VIDEO` . + */ + override fun mediaTypes(vararg mediaTypes: String): Unit = mediaTypes(mediaTypes.toList()) + + /** + * @param storageConfigurationArn ARN of the StorageConfiguration resource to use for + * individual participant recording. + * Default: "" (empty string, no storage configuration is specified). Individual participant + * recording cannot be started unless a storage configuration is specified, when a Stage is + * created or updated. + */ + override fun storageConfigurationArn(storageConfigurationArn: String) { + cdkBuilder.storageConfigurationArn(storageConfigurationArn) + } + + public fun build(): + software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty, + ) : CdkObject(cdkObject), + AutoParticipantRecordingConfigurationProperty { + /** + * Types of media to be recorded. + * + * Default: `AUDIO_VIDEO` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-autoparticipantrecordingconfiguration.html#cfn-ivs-stage-autoparticipantrecordingconfiguration-mediatypes) + */ + override fun mediaTypes(): List = unwrap(this).getMediaTypes() ?: emptyList() + + /** + * ARN of the StorageConfiguration resource to use for individual participant recording. + * + * Default: "" (empty string, no storage configuration is specified). Individual participant + * recording cannot be started unless a storage configuration is specified, when a Stage is + * created or updated. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-stage-autoparticipantrecordingconfiguration.html#cfn-ivs-stage-autoparticipantrecordingconfiguration-storageconfigurationarn) + */ + override fun storageConfigurationArn(): String = unwrap(this).getStorageConfigurationArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + AutoParticipantRecordingConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty): + AutoParticipantRecordingConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + AutoParticipantRecordingConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AutoParticipantRecordingConfigurationProperty): + software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ivs.CfnStage.AutoParticipantRecordingConfigurationProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStageProps.kt index 5a400940bb..9f0813aece 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStageProps.kt @@ -3,12 +3,15 @@ package io.cloudshiftdev.awscdk.services.ivs import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a `CfnStage`. @@ -20,6 +23,11 @@ import kotlin.collections.List * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.ivs.*; * CfnStageProps cfnStageProps = CfnStageProps.builder() + * .autoParticipantRecordingConfiguration(AutoParticipantRecordingConfigurationProperty.builder() + * .storageConfigurationArn("storageConfigurationArn") + * // the properties below are optional + * .mediaTypes(List.of("mediaTypes")) + * .build()) * .name("name") * .tags(List.of(CfnTag.builder() * .key("key") @@ -31,6 +39,14 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html) */ public interface CfnStageProps { + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + */ + public fun autoParticipantRecordingConfiguration(): Any? = + unwrap(this).getAutoParticipantRecordingConfiguration() + /** * Stage name. * @@ -54,6 +70,29 @@ public interface CfnStageProps { */ @CdkDslMarker public interface Builder { + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: IResolvable) + + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: CfnStage.AutoParticipantRecordingConfigurationProperty) + + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("be7f8235f22b77c876b541213c0a87fe2aa5fb500224d091727be978f7ae51bf") + public + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: CfnStage.AutoParticipantRecordingConfigurationProperty.Builder.() -> Unit) + /** * @param name Stage name. */ @@ -80,6 +119,35 @@ public interface CfnStageProps { private val cdkBuilder: software.amazon.awscdk.services.ivs.CfnStageProps.Builder = software.amazon.awscdk.services.ivs.CfnStageProps.builder() + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: IResolvable) { + cdkBuilder.autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: CfnStage.AutoParticipantRecordingConfigurationProperty) { + cdkBuilder.autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration.let(CfnStage.AutoParticipantRecordingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param autoParticipantRecordingConfiguration Configuration object for individual participant + * recording, to attach to the new stage. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("be7f8235f22b77c876b541213c0a87fe2aa5fb500224d091727be978f7ae51bf") + override + fun autoParticipantRecordingConfiguration(autoParticipantRecordingConfiguration: CfnStage.AutoParticipantRecordingConfigurationProperty.Builder.() -> Unit): + Unit = + autoParticipantRecordingConfiguration(CfnStage.AutoParticipantRecordingConfigurationProperty(autoParticipantRecordingConfiguration)) + /** * @param name Stage name. */ @@ -110,7 +178,16 @@ public interface CfnStageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnStageProps, - ) : CdkObject(cdkObject), CfnStageProps { + ) : CdkObject(cdkObject), + CfnStageProps { + /** + * Configuration object for individual participant recording, to attach to the new stage. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-stage.html#cfn-ivs-stage-autoparticipantrecordingconfiguration) + */ + override fun autoParticipantRecordingConfiguration(): Any? = + unwrap(this).getAutoParticipantRecordingConfiguration() + /** * Stage name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfiguration.kt index 42580c9bea..7540b55744 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfiguration.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageConfiguration( cdkObject: software.amazon.awscdk.services.ivs.CfnStorageConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -397,7 +399,8 @@ public open class CfnStorageConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnStorageConfiguration.S3StorageConfigurationProperty, - ) : CdkObject(cdkObject), S3StorageConfigurationProperty { + ) : CdkObject(cdkObject), + S3StorageConfigurationProperty { /** * Name of the S3 bucket where recorded video will be stored. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfigurationProps.kt index b2854b14f7..37791b0439 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStorageConfigurationProps.kt @@ -193,7 +193,8 @@ public interface CfnStorageConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnStorageConfigurationProps, - ) : CdkObject(cdkObject), CfnStorageConfigurationProps { + ) : CdkObject(cdkObject), + CfnStorageConfigurationProps { /** * Storage cnfiguration name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKey.kt index cbf24f9340..42f3bd0d11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKey.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStreamKey( cdkObject: software.amazon.awscdk.services.ivs.CfnStreamKey, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKeyProps.kt index ec78429f3c..4c92389c0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivs/CfnStreamKeyProps.kt @@ -111,7 +111,8 @@ public interface CfnStreamKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivs.CfnStreamKeyProps, - ) : CdkObject(cdkObject), CfnStreamKeyProps { + ) : CdkObject(cdkObject), + CfnStreamKeyProps { /** * Channel ARN for the stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfiguration.kt index f3290c033c..eb37a0cd81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfiguration.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoggingConfiguration( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -417,7 +419,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration.CloudWatchLogsDestinationConfigurationProperty, - ) : CdkObject(cdkObject), CloudWatchLogsDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsDestinationConfigurationProperty { /** * Name of the Amazon Cloudwatch Logs destination where chat activity will be logged. * @@ -645,7 +648,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration.DestinationConfigurationProperty, - ) : CdkObject(cdkObject), DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + DestinationConfigurationProperty { /** * An Amazon CloudWatch Logs destination configuration where chat activity will be logged. * @@ -746,7 +750,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration.FirehoseDestinationConfigurationProperty, - ) : CdkObject(cdkObject), FirehoseDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + FirehoseDestinationConfigurationProperty { /** * Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged. * @@ -831,7 +836,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfiguration.S3DestinationConfigurationProperty, - ) : CdkObject(cdkObject), S3DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + S3DestinationConfigurationProperty { /** * Name of the Amazon S3 bucket where chat activity will be logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfigurationProps.kt index f90de21e79..f95b85dd70 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnLoggingConfigurationProps.kt @@ -190,7 +190,8 @@ public interface CfnLoggingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnLoggingConfigurationProps, - ) : CdkObject(cdkObject), CfnLoggingConfigurationProps { + ) : CdkObject(cdkObject), + CfnLoggingConfigurationProps { /** * The DestinationConfiguration is a complex type that contains information about where chat * content will be logged. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoom.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoom.kt index b3ae22c150..13cf49099e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoom.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoom.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoom( cdkObject: software.amazon.awscdk.services.ivschat.CfnRoom, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ivschat.CfnRoom(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -568,7 +570,8 @@ public open class CfnRoom( private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnRoom.MessageReviewHandlerProperty, - ) : CdkObject(cdkObject), MessageReviewHandlerProperty { + ) : CdkObject(cdkObject), + MessageReviewHandlerProperty { /** * Specifies the fallback behavior (whether the message is allowed or denied) if the handler * does not return a valid response, encounters an error, or times out. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoomProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoomProps.kt index 04c3babd6d..c130ffdf3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoomProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ivschat/CfnRoomProps.kt @@ -259,7 +259,8 @@ public interface CfnRoomProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ivschat.CfnRoomProps, - ) : CdkObject(cdkObject), CfnRoomProps { + ) : CdkObject(cdkObject), + CfnRoomProps { /** * List of logging-configuration identifiers attached to the room. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnector.kt index 674b0b85da..7a8ed45401 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnector.kt @@ -114,7 +114,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnector( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1181,7 +1183,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.ApacheKafkaClusterProperty, - ) : CdkObject(cdkObject), ApacheKafkaClusterProperty { + ) : CdkObject(cdkObject), + ApacheKafkaClusterProperty { /** * The bootstrap servers of the cluster. * @@ -1413,7 +1416,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.AutoScalingProperty, - ) : CdkObject(cdkObject), AutoScalingProperty { + ) : CdkObject(cdkObject), + AutoScalingProperty { /** * The maximum number of workers allocated to the connector. * @@ -1613,7 +1617,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.CapacityProperty, - ) : CdkObject(cdkObject), CapacityProperty { + ) : CdkObject(cdkObject), + CapacityProperty { /** * Information about the auto scaling parameters for the connector. * @@ -1738,7 +1743,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.CloudWatchLogsLogDeliveryProperty, - ) : CdkObject(cdkObject), CloudWatchLogsLogDeliveryProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsLogDeliveryProperty { /** * Whether log delivery to Amazon CloudWatch Logs is enabled. * @@ -1847,7 +1853,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.CustomPluginProperty, - ) : CdkObject(cdkObject), CustomPluginProperty { + ) : CdkObject(cdkObject), + CustomPluginProperty { /** * The Amazon Resource Name (ARN) of the custom plugin. * @@ -1976,7 +1983,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.FirehoseLogDeliveryProperty, - ) : CdkObject(cdkObject), FirehoseLogDeliveryProperty { + ) : CdkObject(cdkObject), + FirehoseLogDeliveryProperty { /** * The name of the Kinesis Data Firehose delivery stream that is the destination for log * delivery. @@ -2074,7 +2082,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.KafkaClusterClientAuthenticationProperty, - ) : CdkObject(cdkObject), KafkaClusterClientAuthenticationProperty { + ) : CdkObject(cdkObject), + KafkaClusterClientAuthenticationProperty { /** * The type of client authentication used to connect to the Apache Kafka cluster. * @@ -2160,7 +2169,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.KafkaClusterEncryptionInTransitProperty, - ) : CdkObject(cdkObject), KafkaClusterEncryptionInTransitProperty { + ) : CdkObject(cdkObject), + KafkaClusterEncryptionInTransitProperty { /** * The type of encryption in transit to the Apache Kafka cluster. * @@ -2277,7 +2287,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.KafkaClusterProperty, - ) : CdkObject(cdkObject), KafkaClusterProperty { + ) : CdkObject(cdkObject), + KafkaClusterProperty { /** * The Apache Kafka cluster to which the connector is connected. * @@ -2411,7 +2422,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.LogDeliveryProperty, - ) : CdkObject(cdkObject), LogDeliveryProperty { + ) : CdkObject(cdkObject), + LogDeliveryProperty { /** * The workers can send worker logs to different destination types. * @@ -2523,7 +2535,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.PluginProperty, - ) : CdkObject(cdkObject), PluginProperty { + ) : CdkObject(cdkObject), + PluginProperty { /** * Details about a custom plugin. * @@ -2632,7 +2645,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.ProvisionedCapacityProperty, - ) : CdkObject(cdkObject), ProvisionedCapacityProperty { + ) : CdkObject(cdkObject), + ProvisionedCapacityProperty { /** * The number of microcontroller units (MCUs) allocated to each connector worker. * @@ -2779,7 +2793,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.S3LogDeliveryProperty, - ) : CdkObject(cdkObject), S3LogDeliveryProperty { + ) : CdkObject(cdkObject), + S3LogDeliveryProperty { /** * The name of the S3 bucket that is the destination for log delivery. * @@ -2877,7 +2892,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.ScaleInPolicyProperty, - ) : CdkObject(cdkObject), ScaleInPolicyProperty { + ) : CdkObject(cdkObject), + ScaleInPolicyProperty { /** * Specifies the CPU utilization percentage threshold at which you want connector scale in to * be triggered. @@ -2962,7 +2978,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.ScaleOutPolicyProperty, - ) : CdkObject(cdkObject), ScaleOutPolicyProperty { + ) : CdkObject(cdkObject), + ScaleOutPolicyProperty { /** * The CPU utilization percentage threshold at which you want connector scale out to be * triggered. @@ -3084,7 +3101,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.VpcProperty, - ) : CdkObject(cdkObject), VpcProperty { + ) : CdkObject(cdkObject), + VpcProperty { /** * The security groups for the connector. * @@ -3192,7 +3210,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.WorkerConfigurationProperty, - ) : CdkObject(cdkObject), WorkerConfigurationProperty { + ) : CdkObject(cdkObject), + WorkerConfigurationProperty { /** * The revision of the worker configuration. * @@ -3419,7 +3438,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnector.WorkerLogDeliveryProperty, - ) : CdkObject(cdkObject), WorkerLogDeliveryProperty { + ) : CdkObject(cdkObject), + WorkerLogDeliveryProperty { /** * Details about delivering logs to Amazon CloudWatch Logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnectorProps.kt index 0a2f6aba66..23ba294cc8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnConnectorProps.kt @@ -634,7 +634,8 @@ public interface CfnConnectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnConnectorProps, - ) : CdkObject(cdkObject), CfnConnectorProps { + ) : CdkObject(cdkObject), + CfnConnectorProps { /** * The connector's compute capacity settings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPlugin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPlugin.kt index 6b588dca4d..b3e7cb781c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPlugin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPlugin.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomPlugin( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnCustomPlugin, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -449,7 +451,8 @@ public open class CfnCustomPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnCustomPlugin.CustomPluginFileDescriptionProperty, - ) : CdkObject(cdkObject), CustomPluginFileDescriptionProperty { + ) : CdkObject(cdkObject), + CustomPluginFileDescriptionProperty { /** * The hex-encoded MD5 checksum of the custom plugin file. * @@ -583,7 +586,8 @@ public open class CfnCustomPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnCustomPlugin.CustomPluginLocationProperty, - ) : CdkObject(cdkObject), CustomPluginLocationProperty { + ) : CdkObject(cdkObject), + CustomPluginLocationProperty { /** * The S3 bucket Amazon Resource Name (ARN), file key, and object version of the plugin file * stored in Amazon S3. @@ -706,7 +710,8 @@ public open class CfnCustomPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnCustomPlugin.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The Amazon Resource Name (ARN) of an S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPluginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPluginProps.kt index ef0f4fe73f..0c9401b979 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPluginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnCustomPluginProps.kt @@ -195,7 +195,8 @@ public interface CfnCustomPluginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnCustomPluginProps, - ) : CdkObject(cdkObject), CfnCustomPluginProps { + ) : CdkObject(cdkObject), + CfnCustomPluginProps { /** * The format of the plugin file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfiguration.kt index 27dffe8755..43afa5d0bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfiguration.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkerConfiguration( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnWorkerConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfigurationProps.kt index 0d7a6dcf91..cf80d523d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kafkaconnect/CfnWorkerConfigurationProps.kt @@ -139,7 +139,8 @@ public interface CfnWorkerConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kafkaconnect.CfnWorkerConfigurationProps, - ) : CdkObject(cdkObject), CfnWorkerConfigurationProps { + ) : CdkObject(cdkObject), + CfnWorkerConfigurationProps { /** * The description of a worker configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSource.kt index 3aa67815d1..1b6e4a5b18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSource.kt @@ -433,7 +433,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1125,7 +1127,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.AccessControlListConfigurationProperty, - ) : CdkObject(cdkObject), AccessControlListConfigurationProperty { + ) : CdkObject(cdkObject), + AccessControlListConfigurationProperty { /** * Path to the AWS S3 bucket that contains the access control list files. * @@ -1221,7 +1224,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.AclConfigurationProperty, - ) : CdkObject(cdkObject), AclConfigurationProperty { + ) : CdkObject(cdkObject), + AclConfigurationProperty { /** * A list of groups, separated by semi-colons, that filters a query response based on user * context. @@ -1452,7 +1456,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ColumnConfigurationProperty, - ) : CdkObject(cdkObject), ColumnConfigurationProperty { + ) : CdkObject(cdkObject), + ColumnConfigurationProperty { /** * One to five columns that indicate when a document in the database has changed. * @@ -1685,7 +1690,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceAttachmentConfigurationProperty, - ) : CdkObject(cdkObject), ConfluenceAttachmentConfigurationProperty { + ) : CdkObject(cdkObject), + ConfluenceAttachmentConfigurationProperty { /** * Maps attributes or field names of Confluence attachments to Amazon Kendra index field * names. @@ -1848,7 +1854,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceAttachmentToIndexFieldMappingProperty, - ) : CdkObject(cdkObject), ConfluenceAttachmentToIndexFieldMappingProperty { + ) : CdkObject(cdkObject), + ConfluenceAttachmentToIndexFieldMappingProperty { /** * The name of the field in the data source. * @@ -2040,7 +2047,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceBlogConfigurationProperty, - ) : CdkObject(cdkObject), ConfluenceBlogConfigurationProperty { + ) : CdkObject(cdkObject), + ConfluenceBlogConfigurationProperty { /** * Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. * @@ -2191,7 +2199,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceBlogToIndexFieldMappingProperty, - ) : CdkObject(cdkObject), ConfluenceBlogToIndexFieldMappingProperty { + ) : CdkObject(cdkObject), + ConfluenceBlogToIndexFieldMappingProperty { /** * The name of the field in the data source. * @@ -2778,7 +2787,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceConfigurationProperty, - ) : CdkObject(cdkObject), ConfluenceConfigurationProperty { + ) : CdkObject(cdkObject), + ConfluenceConfigurationProperty { /** * Configuration information for indexing attachments to Confluence blogs and pages. * @@ -3034,7 +3044,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluencePageConfigurationProperty, - ) : CdkObject(cdkObject), ConfluencePageConfigurationProperty { + ) : CdkObject(cdkObject), + ConfluencePageConfigurationProperty { /** * Maps attributes or field names of Confluence pages to Amazon Kendra index field names. * @@ -3185,7 +3196,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluencePageToIndexFieldMappingProperty, - ) : CdkObject(cdkObject), ConfluencePageToIndexFieldMappingProperty { + ) : CdkObject(cdkObject), + ConfluencePageToIndexFieldMappingProperty { /** * The name of the field in the data source. * @@ -3551,7 +3563,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceSpaceConfigurationProperty, - ) : CdkObject(cdkObject), ConfluenceSpaceConfigurationProperty { + ) : CdkObject(cdkObject), + ConfluenceSpaceConfigurationProperty { /** * `TRUE` to index archived spaces. * @@ -3743,7 +3756,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConfluenceSpaceToIndexFieldMappingProperty, - ) : CdkObject(cdkObject), ConfluenceSpaceToIndexFieldMappingProperty { + ) : CdkObject(cdkObject), + ConfluenceSpaceToIndexFieldMappingProperty { /** * The name of the field in the data source. * @@ -3948,7 +3962,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ConnectionConfigurationProperty, - ) : CdkObject(cdkObject), ConnectionConfigurationProperty { + ) : CdkObject(cdkObject), + ConnectionConfigurationProperty { /** * The name of the host for the database. * @@ -4373,7 +4388,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.CustomDocumentEnrichmentConfigurationProperty, - ) : CdkObject(cdkObject), CustomDocumentEnrichmentConfigurationProperty { + ) : CdkObject(cdkObject), + CustomDocumentEnrichmentConfigurationProperty { /** * Configuration information to alter document attributes or metadata fields and content when * ingesting documents into Amazon Kendra. @@ -5477,7 +5493,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DataSourceConfigurationProperty, - ) : CdkObject(cdkObject), DataSourceConfigurationProperty { + ) : CdkObject(cdkObject), + DataSourceConfigurationProperty { /** * Provides the configuration information to connect to Confluence as your data source. * @@ -5705,7 +5722,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DataSourceToIndexFieldMappingProperty, - ) : CdkObject(cdkObject), DataSourceToIndexFieldMappingProperty { + ) : CdkObject(cdkObject), + DataSourceToIndexFieldMappingProperty { /** * The name of the field in the data source. * @@ -5868,7 +5886,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DataSourceVpcConfigurationProperty, - ) : CdkObject(cdkObject), DataSourceVpcConfigurationProperty { + ) : CdkObject(cdkObject), + DataSourceVpcConfigurationProperty { /** * A list of identifiers of security groups within your Amazon VPC. * @@ -6258,7 +6277,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DatabaseConfigurationProperty, - ) : CdkObject(cdkObject), DatabaseConfigurationProperty { + ) : CdkObject(cdkObject), + DatabaseConfigurationProperty { /** * Information about the database column that provides information for user context filtering. * @@ -6503,7 +6523,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DocumentAttributeConditionProperty, - ) : CdkObject(cdkObject), DocumentAttributeConditionProperty { + ) : CdkObject(cdkObject), + DocumentAttributeConditionProperty { /** * The identifier of the document attribute used for the condition. * @@ -6760,7 +6781,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DocumentAttributeTargetProperty, - ) : CdkObject(cdkObject), DocumentAttributeTargetProperty { + ) : CdkObject(cdkObject), + DocumentAttributeTargetProperty { /** * The identifier of the target document attribute or metadata field. * @@ -6957,7 +6979,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DocumentAttributeValueProperty, - ) : CdkObject(cdkObject), DocumentAttributeValueProperty { + ) : CdkObject(cdkObject), + DocumentAttributeValueProperty { /** * A date expressed as an ISO 8601 string. * @@ -7078,7 +7101,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.DocumentsMetadataConfigurationProperty, - ) : CdkObject(cdkObject), DocumentsMetadataConfigurationProperty { + ) : CdkObject(cdkObject), + DocumentsMetadataConfigurationProperty { /** * A prefix used to filter metadata configuration files in the AWS S3 bucket. * @@ -7497,7 +7521,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.GoogleDriveConfigurationProperty, - ) : CdkObject(cdkObject), GoogleDriveConfigurationProperty { + ) : CdkObject(cdkObject), + GoogleDriveConfigurationProperty { /** * A list of MIME types to exclude from the index. All documents matching the specified MIME * type are excluded. @@ -7784,7 +7809,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.HookConfigurationProperty, - ) : CdkObject(cdkObject), HookConfigurationProperty { + ) : CdkObject(cdkObject), + HookConfigurationProperty { /** * The condition used for when a Lambda function should be invoked. * @@ -8053,7 +8079,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.InlineCustomDocumentEnrichmentConfigurationProperty, - ) : CdkObject(cdkObject), InlineCustomDocumentEnrichmentConfigurationProperty { + ) : CdkObject(cdkObject), + InlineCustomDocumentEnrichmentConfigurationProperty { /** * Configuration of the condition used for the target document attribute or metadata field * when ingesting documents into Amazon Kendra. @@ -8479,7 +8506,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.OneDriveConfigurationProperty, - ) : CdkObject(cdkObject), OneDriveConfigurationProperty { + ) : CdkObject(cdkObject), + OneDriveConfigurationProperty { /** * `TRUE` to disable local groups information. * @@ -8709,7 +8737,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.OneDriveUsersProperty, - ) : CdkObject(cdkObject), OneDriveUsersProperty { + ) : CdkObject(cdkObject), + OneDriveUsersProperty { /** * A list of users whose documents should be indexed. * @@ -8876,7 +8905,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ProxyConfigurationProperty, - ) : CdkObject(cdkObject), ProxyConfigurationProperty { + ) : CdkObject(cdkObject), + ProxyConfigurationProperty { /** * The Amazon Resource Name (ARN) of an AWS Secrets Manager secret. * @@ -9486,7 +9516,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.S3DataSourceConfigurationProperty, - ) : CdkObject(cdkObject), S3DataSourceConfigurationProperty { + ) : CdkObject(cdkObject), + S3DataSourceConfigurationProperty { /** * Provides the path to the S3 bucket that contains the user context filtering files for the * data source. @@ -9682,7 +9713,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.S3PathProperty, - ) : CdkObject(cdkObject), S3PathProperty { + ) : CdkObject(cdkObject), + S3PathProperty { /** * The name of the S3 bucket that contains the file. * @@ -9910,7 +9942,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceChatterFeedConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceChatterFeedConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceChatterFeedConfigurationProperty { /** * The name of the column in the Salesforce FeedItem table that contains the content to index. * @@ -10532,7 +10565,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceConfigurationProperty { /** * Configuration information for Salesforce chatter feeds. * @@ -10834,7 +10868,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceCustomKnowledgeArticleTypeConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceCustomKnowledgeArticleTypeConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceCustomKnowledgeArticleTypeConfigurationProperty { /** * The name of the field in the custom knowledge article that contains the document data to * index. @@ -11112,7 +11147,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceKnowledgeArticleConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceKnowledgeArticleConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceKnowledgeArticleConfigurationProperty { /** * Configuration information for custom Salesforce knowledge articles. * @@ -11322,7 +11358,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceStandardKnowledgeArticleTypeConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceStandardKnowledgeArticleTypeConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceStandardKnowledgeArticleTypeConfigurationProperty { /** * The name of the field that contains the document data to index. * @@ -11482,7 +11519,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceStandardObjectAttachmentConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceStandardObjectAttachmentConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceStandardObjectAttachmentConfigurationProperty { /** * The name of the field used for the document title. * @@ -11702,7 +11740,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceStandardObjectConfigurationProperty, - ) : CdkObject(cdkObject), SalesforceStandardObjectConfigurationProperty { + ) : CdkObject(cdkObject), + SalesforceStandardObjectConfigurationProperty { /** * The name of the field in the standard object table that contains the document contents. * @@ -12067,7 +12106,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowConfigurationProperty, - ) : CdkObject(cdkObject), ServiceNowConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceNowConfigurationProperty { /** * The type of authentication used to connect to the ServiceNow instance. * @@ -12490,7 +12530,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty, - ) : CdkObject(cdkObject), ServiceNowKnowledgeArticleConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceNowKnowledgeArticleConfigurationProperty { /** * `TRUE` to index attachments to knowledge articles. * @@ -12908,7 +12949,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowServiceCatalogConfigurationProperty, - ) : CdkObject(cdkObject), ServiceNowServiceCatalogConfigurationProperty { + ) : CdkObject(cdkObject), + ServiceNowServiceCatalogConfigurationProperty { /** * `TRUE` to index attachments to service catalog items. * @@ -13556,7 +13598,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SharePointConfigurationProperty, - ) : CdkObject(cdkObject), SharePointConfigurationProperty { + ) : CdkObject(cdkObject), + SharePointConfigurationProperty { /** * `TRUE` to index document attachments. * @@ -13782,7 +13825,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.SqlConfigurationProperty, - ) : CdkObject(cdkObject), SqlConfigurationProperty { + ) : CdkObject(cdkObject), + SqlConfigurationProperty { /** * Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in * double quotes (") when making a database query. @@ -13876,7 +13920,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.TemplateConfigurationProperty, - ) : CdkObject(cdkObject), TemplateConfigurationProperty { + ) : CdkObject(cdkObject), + TemplateConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-templateconfiguration.html#cfn-kendra-datasource-templateconfiguration-template) */ @@ -13999,7 +14044,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerAuthenticationConfigurationProperty, - ) : CdkObject(cdkObject), WebCrawlerAuthenticationConfigurationProperty { + ) : CdkObject(cdkObject), + WebCrawlerAuthenticationConfigurationProperty { /** * The list of configuration information that's required to connect to and crawl a website * host using basic authentication credentials. @@ -14158,7 +14204,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerBasicAuthenticationProperty, - ) : CdkObject(cdkObject), WebCrawlerBasicAuthenticationProperty { + ) : CdkObject(cdkObject), + WebCrawlerBasicAuthenticationProperty { /** * The Amazon Resource Name (ARN) of an AWS Secrets Manager secret. * @@ -14858,7 +14905,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerConfigurationProperty, - ) : CdkObject(cdkObject), WebCrawlerConfigurationProperty { + ) : CdkObject(cdkObject), + WebCrawlerConfigurationProperty { /** * Configuration information required to connect to websites using authentication. * @@ -15125,7 +15173,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerSeedUrlConfigurationProperty, - ) : CdkObject(cdkObject), WebCrawlerSeedUrlConfigurationProperty { + ) : CdkObject(cdkObject), + WebCrawlerSeedUrlConfigurationProperty { /** * The list of seed or starting point URLs of the websites you want to crawl. * @@ -15248,7 +15297,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerSiteMapsConfigurationProperty, - ) : CdkObject(cdkObject), WebCrawlerSiteMapsConfigurationProperty { + ) : CdkObject(cdkObject), + WebCrawlerSiteMapsConfigurationProperty { /** * The list of sitemap URLs of the websites you want to crawl. * @@ -15496,7 +15546,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerUrlsProperty, - ) : CdkObject(cdkObject), WebCrawlerUrlsProperty { + ) : CdkObject(cdkObject), + WebCrawlerUrlsProperty { /** * Configuration of the seed or starting point URLs of the websites you want to crawl. * @@ -15903,7 +15954,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSource.WorkDocsConfigurationProperty, - ) : CdkObject(cdkObject), WorkDocsConfigurationProperty { + ) : CdkObject(cdkObject), + WorkDocsConfigurationProperty { /** * `TRUE` to include comments on documents in your index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSourceProps.kt index 7c7f68c124..5032bbee40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnDataSourceProps.kt @@ -801,7 +801,8 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** * Configuration information for altering document metadata and content during the document * ingestion process. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaq.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaq.kt index 80ceb64c93..8cf5f68ac0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaq.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaq.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFaq( cdkObject: software.amazon.awscdk.services.kendra.CfnFaq, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -575,7 +577,8 @@ public open class CfnFaq( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnFaq.S3PathProperty, - ) : CdkObject(cdkObject), S3PathProperty { + ) : CdkObject(cdkObject), + S3PathProperty { /** * The name of the S3 bucket that contains the file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaqProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaqProps.kt index 49425123ab..a970b3da61 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaqProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnFaqProps.kt @@ -314,7 +314,8 @@ public interface CfnFaqProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnFaqProps, - ) : CdkObject(cdkObject), CfnFaqProps { + ) : CdkObject(cdkObject), + CfnFaqProps { /** * A description for the FAQ. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndex.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndex.kt index 399551bbd0..b24c7476c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndex.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndex.kt @@ -97,7 +97,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIndex( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -963,7 +965,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.CapacityUnitsConfigurationProperty, - ) : CdkObject(cdkObject), CapacityUnitsConfigurationProperty { + ) : CdkObject(cdkObject), + CapacityUnitsConfigurationProperty { /** * The amount of extra query capacity for an index and * [GetQuerySuggestions](https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) @@ -1204,7 +1207,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.DocumentMetadataConfigurationProperty, - ) : CdkObject(cdkObject), DocumentMetadataConfigurationProperty { + ) : CdkObject(cdkObject), + DocumentMetadataConfigurationProperty { /** * The name of the index field. * @@ -1329,7 +1333,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.JsonTokenTypeConfigurationProperty, - ) : CdkObject(cdkObject), JsonTokenTypeConfigurationProperty { + ) : CdkObject(cdkObject), + JsonTokenTypeConfigurationProperty { /** * The group attribute field. * @@ -1541,7 +1546,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.JwtTokenTypeConfigurationProperty, - ) : CdkObject(cdkObject), JwtTokenTypeConfigurationProperty { + ) : CdkObject(cdkObject), + JwtTokenTypeConfigurationProperty { /** * The regular expression that identifies the claim. * @@ -1900,7 +1906,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.RelevanceProperty, - ) : CdkObject(cdkObject), RelevanceProperty { + ) : CdkObject(cdkObject), + RelevanceProperty { /** * Specifies the time period that the boost applies to. * @@ -2183,7 +2190,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.SearchProperty, - ) : CdkObject(cdkObject), SearchProperty { + ) : CdkObject(cdkObject), + SearchProperty { /** * Determines whether the field is returned in the query response. * @@ -2304,7 +2312,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.ServerSideEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionConfigurationProperty { /** * The identifier of the AWS KMS key . * @@ -2485,7 +2494,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.UserTokenConfigurationProperty, - ) : CdkObject(cdkObject), UserTokenConfigurationProperty { + ) : CdkObject(cdkObject), + UserTokenConfigurationProperty { /** * Information about the JSON token type configuration. * @@ -2596,7 +2606,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndex.ValueImportanceItemProperty, - ) : CdkObject(cdkObject), ValueImportanceItemProperty { + ) : CdkObject(cdkObject), + ValueImportanceItemProperty { /** * The document metadata value used for the search boost. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndexProps.kt index 7f574c5acb..830a9bfdb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendra/CfnIndexProps.kt @@ -527,7 +527,8 @@ public interface CfnIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kendra.CfnIndexProps, - ) : CdkObject(cdkObject), CfnIndexProps { + ) : CdkObject(cdkObject), + CfnIndexProps { /** * Specifies additional capacity units configured for your Enterprise Edition index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlan.kt index c7c0e2715c..2c224ba959 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlan.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnExecutionPlan( cdkObject: software.amazon.awscdk.services.kendraranking.CfnExecutionPlan, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -454,7 +456,8 @@ public open class CfnExecutionPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.kendraranking.CfnExecutionPlan.CapacityUnitsConfigurationProperty, - ) : CdkObject(cdkObject), CapacityUnitsConfigurationProperty { + ) : CdkObject(cdkObject), + CapacityUnitsConfigurationProperty { /** * The amount of extra capacity for your rescore execution plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlanProps.kt index 2a98aba083..f441d5158a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kendraranking/CfnExecutionPlanProps.kt @@ -226,7 +226,8 @@ public interface CfnExecutionPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kendraranking.CfnExecutionPlanProps, - ) : CdkObject(cdkObject), CfnExecutionPlanProps { + ) : CdkObject(cdkObject), + CfnExecutionPlanProps { /** * You can set additional capacity units to meet the needs of your rescore execution plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStream.kt index 35aa377044..a4fa307769 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStream.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStream( cdkObject: software.amazon.awscdk.services.kinesis.CfnStream, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kinesis.CfnStream(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -672,7 +674,8 @@ public open class CfnStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.CfnStream.StreamEncryptionProperty, - ) : CdkObject(cdkObject), StreamEncryptionProperty { + ) : CdkObject(cdkObject), + StreamEncryptionProperty { /** * The encryption type to use. * @@ -783,7 +786,8 @@ public open class CfnStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.CfnStream.StreamModeDetailsProperty, - ) : CdkObject(cdkObject), StreamModeDetailsProperty { + ) : CdkObject(cdkObject), + StreamModeDetailsProperty { /** * Specifies the capacity mode to which you want to set your data stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumer.kt index 2c0a57f624..9d762a8b81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumer.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStreamConsumer( cdkObject: software.amazon.awscdk.services.kinesis.CfnStreamConsumer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumerProps.kt index da85ece613..47efb5936e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamConsumerProps.kt @@ -82,7 +82,8 @@ public interface CfnStreamConsumerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.CfnStreamConsumerProps, - ) : CdkObject(cdkObject), CfnStreamConsumerProps { + ) : CdkObject(cdkObject), + CfnStreamConsumerProps { /** * The name of the consumer is something you choose when you register the consumer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamProps.kt index b4f5990a81..cbd70099c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/CfnStreamProps.kt @@ -334,7 +334,8 @@ public interface CfnStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.CfnStreamProps, - ) : CdkObject(cdkObject), CfnStreamProps { + ) : CdkObject(cdkObject), + CfnStreamProps { /** * The name of the Kinesis stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/IStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/IStream.kt index 8717f31716..6cd263bace 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/IStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/IStream.kt @@ -907,7 +907,8 @@ public interface IStream : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.IStream, - ) : CdkObject(cdkObject), IStream { + ) : CdkObject(cdkObject), + IStream { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/Stream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/Stream.kt index decc6c5945..c23d8b2090 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/Stream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/Stream.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Stream( cdkObject: software.amazon.awscdk.services.kinesis.Stream, -) : Resource(cdkObject), IStream { +) : Resource(cdkObject), + IStream { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kinesis.Stream(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamAttributes.kt index 5f1db374f8..ba5298f9d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamAttributes.kt @@ -82,7 +82,8 @@ public interface StreamAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.StreamAttributes, - ) : CdkObject(cdkObject), StreamAttributes { + ) : CdkObject(cdkObject), + StreamAttributes { /** * The KMS key securing the contents of the stream if encryption is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamProps.kt index 69b8b12011..c82616a64b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesis/StreamProps.kt @@ -197,7 +197,8 @@ public interface StreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesis.StreamProps, - ) : CdkObject(cdkObject), StreamProps { + ) : CdkObject(cdkObject), + StreamProps { /** * The kind of server-side encryption to apply to this stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplication.kt index 930b5526d6..607b9e7721 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplication.kt @@ -87,7 +87,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -523,7 +524,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * Column delimiter. * @@ -659,7 +661,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.InputLambdaProcessorProperty, - ) : CdkObject(cdkObject), InputLambdaProcessorProperty { + ) : CdkObject(cdkObject), + InputLambdaProcessorProperty { /** * The ARN of the [AWS Lambda](https://docs.aws.amazon.com/lambda/) function that operates on * records in the stream. @@ -766,7 +769,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.InputParallelismProperty, - ) : CdkObject(cdkObject), InputParallelismProperty { + ) : CdkObject(cdkObject), + InputParallelismProperty { /** * Number of in-application streams to create. * @@ -909,7 +913,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.InputProcessingConfigurationProperty, - ) : CdkObject(cdkObject), InputProcessingConfigurationProperty { + ) : CdkObject(cdkObject), + InputProcessingConfigurationProperty { /** * The * [InputLambdaProcessor](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html) @@ -1424,7 +1429,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.InputProperty, - ) : CdkObject(cdkObject), InputProperty { + ) : CdkObject(cdkObject), + InputProperty { /** * Describes the number of in-application streams to create. * @@ -1682,7 +1688,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.InputSchemaProperty, - ) : CdkObject(cdkObject), InputSchemaProperty { + ) : CdkObject(cdkObject), + InputSchemaProperty { /** * A list of `RecordColumn` objects. * @@ -1781,7 +1788,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * Path to the top-level parent that contains the records. * @@ -1894,7 +1902,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.KinesisFirehoseInputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseInputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseInputProperty { /** * ARN of the input delivery stream. * @@ -2016,7 +2025,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.KinesisStreamsInputProperty, - ) : CdkObject(cdkObject), KinesisStreamsInputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsInputProperty { /** * ARN of the input Amazon Kinesis stream to read. * @@ -2207,7 +2217,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -2358,7 +2369,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * Reference to the data element in the streaming input or the reference data source. * @@ -2530,7 +2542,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplication.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When configuring application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2.kt index 628a2d2076..1cf4d30c3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationCloudWatchLoggingOptionV2( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -309,7 +310,8 @@ public open class CfnApplicationCloudWatchLoggingOptionV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2.CloudWatchLoggingOptionProperty, - ) : CdkObject(cdkObject), CloudWatchLoggingOptionProperty { + ) : CdkObject(cdkObject), + CloudWatchLoggingOptionProperty { /** * The ARN of the CloudWatch log to receive application messages. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2Props.kt index 2bcd91679c..728fc951de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationCloudWatchLoggingOptionV2Props.kt @@ -128,7 +128,8 @@ public interface CfnApplicationCloudWatchLoggingOptionV2Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2Props, - ) : CdkObject(cdkObject), CfnApplicationCloudWatchLoggingOptionV2Props { + ) : CdkObject(cdkObject), + CfnApplicationCloudWatchLoggingOptionV2Props { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutput.kt index e9fe520f70..62a59f741b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutput.kt @@ -75,7 +75,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationOutput( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -345,7 +346,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput.DestinationSchemaProperty, - ) : CdkObject(cdkObject), DestinationSchemaProperty { + ) : CdkObject(cdkObject), + DestinationSchemaProperty { /** * Specifies the format of the records on the output stream. * @@ -461,7 +463,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput.KinesisFirehoseOutputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseOutputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseOutputProperty { /** * ARN of the destination Amazon Kinesis Firehose delivery stream to write to. * @@ -584,7 +587,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput.KinesisStreamsOutputProperty, - ) : CdkObject(cdkObject), KinesisStreamsOutputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsOutputProperty { /** * ARN of the destination Amazon Kinesis stream to write to. * @@ -725,7 +729,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput.LambdaOutputProperty, - ) : CdkObject(cdkObject), LambdaOutputProperty { + ) : CdkObject(cdkObject), + LambdaOutputProperty { /** * Amazon Resource Name (ARN) of the destination Lambda function to write to. * @@ -1062,7 +1067,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutput.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * Describes the data format when records are written to the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputProps.kt index 1c3e5d3499..781a6e5579 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputProps.kt @@ -153,7 +153,8 @@ public interface CfnApplicationOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputProps, - ) : CdkObject(cdkObject), CfnApplicationOutputProps { + ) : CdkObject(cdkObject), + CfnApplicationOutputProps { /** * Name of the application to which you want to add the output configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2.kt index eef822cf38..3345a9da4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationOutputV2( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -357,7 +358,8 @@ public open class CfnApplicationOutputV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2.DestinationSchemaProperty, - ) : CdkObject(cdkObject), DestinationSchemaProperty { + ) : CdkObject(cdkObject), + DestinationSchemaProperty { /** * Specifies the format of the records on the output stream. * @@ -443,7 +445,8 @@ public open class CfnApplicationOutputV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2.KinesisFirehoseOutputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseOutputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseOutputProperty { /** * The ARN of the destination delivery stream to write to. * @@ -529,7 +532,8 @@ public open class CfnApplicationOutputV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2.KinesisStreamsOutputProperty, - ) : CdkObject(cdkObject), KinesisStreamsOutputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsOutputProperty { /** * The ARN of the destination Kinesis data stream to write to. * @@ -633,7 +637,8 @@ public open class CfnApplicationOutputV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2.LambdaOutputProperty, - ) : CdkObject(cdkObject), LambdaOutputProperty { + ) : CdkObject(cdkObject), + LambdaOutputProperty { /** * The Amazon Resource Name (ARN) of the destination Lambda function to write to. * @@ -940,7 +945,8 @@ public open class CfnApplicationOutputV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * Describes the data format when records are written to the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2Props.kt index 9e9501e25e..b2e7b6f4d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationOutputV2Props.kt @@ -148,7 +148,8 @@ public interface CfnApplicationOutputV2Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationOutputV2Props, - ) : CdkObject(cdkObject), CfnApplicationOutputV2Props { + ) : CdkObject(cdkObject), + CfnApplicationOutputV2Props { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationProps.kt index 9456a2aa40..0400104448 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationProps.kt @@ -319,7 +319,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * One or more SQL statements that read input data, transform it, and generate output. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSource.kt index c066c3a049..d83b59127a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSource.kt @@ -82,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationReferenceDataSource( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -400,7 +401,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * Column delimiter. * @@ -494,7 +496,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * Path to the top-level parent that contains the records. * @@ -675,7 +678,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -826,7 +830,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * Reference to the data element in the streaming input or the reference data source. * @@ -998,7 +1003,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When configuring application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or @@ -1256,7 +1262,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + ReferenceDataSourceProperty { /** * Describes the format of the data in the streaming source, and how each data element maps to * corresponding columns created in the in-application stream. @@ -1471,7 +1478,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.ReferenceSchemaProperty, - ) : CdkObject(cdkObject), ReferenceSchemaProperty { + ) : CdkObject(cdkObject), + ReferenceSchemaProperty { /** * A list of RecordColumn objects. * @@ -1627,7 +1635,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSource.S3ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), S3ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + S3ReferenceDataSourceProperty { /** * Amazon Resource Name (ARN) of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceProps.kt index c5cee74388..d620a58b03 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceProps.kt @@ -185,7 +185,8 @@ public interface CfnApplicationReferenceDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceProps, - ) : CdkObject(cdkObject), CfnApplicationReferenceDataSourceProps { + ) : CdkObject(cdkObject), + CfnApplicationReferenceDataSourceProps { /** * Name of an existing application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2.kt index 920522d7d3..4b4c4f93a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2.kt @@ -73,7 +73,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationReferenceDataSourceV2( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -405,7 +406,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * The column delimiter. * @@ -500,7 +502,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * The path to the top-level parent that contains the records. * @@ -682,7 +685,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -823,7 +827,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * A reference to the data element in the streaming input or the reference data source. * @@ -992,7 +997,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When you configure application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or @@ -1250,7 +1256,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + ReferenceDataSourceProperty { /** * Describes the format of the data in the streaming source, and how each data element maps to * corresponding columns created in the in-application stream. @@ -1466,7 +1473,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.ReferenceSchemaProperty, - ) : CdkObject(cdkObject), ReferenceSchemaProperty { + ) : CdkObject(cdkObject), + ReferenceSchemaProperty { /** * A list of `RecordColumn` objects. * @@ -1591,7 +1599,8 @@ public open class CfnApplicationReferenceDataSourceV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2.S3ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), S3ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + S3ReferenceDataSourceProperty { /** * The Amazon Resource Name (ARN) of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2Props.kt index c3f1ffccea..c1712605c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationReferenceDataSourceV2Props.kt @@ -170,7 +170,8 @@ public interface CfnApplicationReferenceDataSourceV2Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceV2Props, - ) : CdkObject(cdkObject), CfnApplicationReferenceDataSourceV2Props { + ) : CdkObject(cdkObject), + CfnApplicationReferenceDataSourceV2Props { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2.kt index 2e584a76cc..0ff1f8e308 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2.kt @@ -56,6 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -192,7 +195,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationV2( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -882,7 +887,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationCodeConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationCodeConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationCodeConfigurationProperty { /** * The location and type of the application code. * @@ -944,6 +950,9 @@ public open class CfnApplicationV2( * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -1073,6 +1082,15 @@ public open class CfnApplicationV2( public fun applicationSnapshotConfiguration(): Any? = unwrap(this).getApplicationSnapshotConfiguration() + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html#cfn-kinesisanalyticsv2-application-applicationconfiguration-applicationsystemrollbackconfiguration) + */ + public fun applicationSystemRollbackConfiguration(): Any? = + unwrap(this).getApplicationSystemRollbackConfiguration() + /** * Describes execution properties for a Managed Service for Apache Flink application. * @@ -1159,6 +1177,29 @@ public open class CfnApplicationV2( public fun applicationSnapshotConfiguration(applicationSnapshotConfiguration: ApplicationSnapshotConfigurationProperty.Builder.() -> Unit) + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: IResolvable) + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty) + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e34c7dde287e6e338166fdbc0da1d9fcdbdce7cb9ce1ca375247dfbccb59c5f1") + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty.Builder.() -> Unit) + /** * @param environmentProperties Describes execution properties for a Managed Service for * Apache Flink application. @@ -1327,6 +1368,35 @@ public open class CfnApplicationV2( Unit = applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty(applicationSnapshotConfiguration)) + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: IResolvable) { + cdkBuilder.applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty) { + cdkBuilder.applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration.let(ApplicationSystemRollbackConfigurationProperty.Companion::unwrap)) + } + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e34c7dde287e6e338166fdbc0da1d9fcdbdce7cb9ce1ca375247dfbccb59c5f1") + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty.Builder.() -> Unit): + Unit = + applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty(applicationSystemRollbackConfiguration)) + /** * @param environmentProperties Describes execution properties for a Managed Service for * Apache Flink application. @@ -1467,7 +1537,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationConfigurationProperty { /** * The code location and type parameters for a Managed Service for Apache Flink application. * @@ -1484,6 +1555,15 @@ public open class CfnApplicationV2( override fun applicationSnapshotConfiguration(): Any? = unwrap(this).getApplicationSnapshotConfiguration() + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html#cfn-kinesisanalyticsv2-application-applicationconfiguration-applicationsystemrollbackconfiguration) + */ + override fun applicationSystemRollbackConfiguration(): Any? = + unwrap(this).getApplicationSystemRollbackConfiguration() + /** * Describes execution properties for a Managed Service for Apache Flink application. * @@ -1601,7 +1681,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationMaintenanceConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationMaintenanceConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationMaintenanceConfigurationProperty { /** * Specifies the start time of the maintence window. * @@ -1717,7 +1798,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationRestoreConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationRestoreConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationRestoreConfigurationProperty { /** * Specifies how the application should be restored. * @@ -1828,7 +1910,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSnapshotConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationSnapshotConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationSnapshotConfigurationProperty { /** * Describes whether snapshots are enabled for a Managed Service for Apache Flink application. * @@ -1856,6 +1939,109 @@ public open class CfnApplicationV2( } } + /** + * Describes the system rollback configuration for a Managed Service for Apache Flink application. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisanalytics.*; + * ApplicationSystemRollbackConfigurationProperty applicationSystemRollbackConfigurationProperty = + * ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html) + */ + public interface ApplicationSystemRollbackConfigurationProperty { + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration-rollbackenabled) + */ + public fun rollbackEnabled(): Any + + /** + * A builder for [ApplicationSystemRollbackConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + public fun rollbackEnabled(rollbackEnabled: Boolean) + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + public fun rollbackEnabled(rollbackEnabled: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty.builder() + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + override fun rollbackEnabled(rollbackEnabled: Boolean) { + cdkBuilder.rollbackEnabled(rollbackEnabled) + } + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + override fun rollbackEnabled(rollbackEnabled: IResolvable) { + cdkBuilder.rollbackEnabled(rollbackEnabled.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty, + ) : CdkObject(cdkObject), + ApplicationSystemRollbackConfigurationProperty { + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration-rollbackenabled) + */ + override fun rollbackEnabled(): Any = unwrap(this).getRollbackEnabled() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ApplicationSystemRollbackConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty): + ApplicationSystemRollbackConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ApplicationSystemRollbackConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ApplicationSystemRollbackConfigurationProperty): + software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ApplicationSystemRollbackConfigurationProperty + } + } + /** * For a SQL-based Kinesis Data Analytics application, provides additional mapping information * when the record format uses delimiters, such as CSV. @@ -1948,7 +2134,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * The column delimiter. * @@ -2100,7 +2287,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.CatalogConfigurationProperty, - ) : CdkObject(cdkObject), CatalogConfigurationProperty { + ) : CdkObject(cdkObject), + CatalogConfigurationProperty { /** * The configuration parameters for the default Amazon Glue database. * @@ -2136,10 +2324,9 @@ public open class CfnApplicationV2( * * Checkpointing is the process of persisting application state for fault tolerance. For more * information, see [Checkpoints for Fault - * Tolerance](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/concepts/programming-model.html#checkpoints-for-fault-tolerance) + * Tolerance](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/checkpointing/) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) - * . + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) . * * Example: * @@ -2213,9 +2400,9 @@ public open class CfnApplicationV2( * * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2284,9 +2471,9 @@ public open class CfnApplicationV2( * checkpoint operation completes that a new checkpoint operation can start. * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2362,9 +2549,9 @@ public open class CfnApplicationV2( * checkpoint operation completes that a new checkpoint operation can start. * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2383,7 +2570,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.CheckpointConfigurationProperty, - ) : CdkObject(cdkObject), CheckpointConfigurationProperty { + ) : CdkObject(cdkObject), + CheckpointConfigurationProperty { /** * Describes the interval in milliseconds between checkpoint operations. * @@ -2437,9 +2625,9 @@ public open class CfnApplicationV2( * * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2609,7 +2797,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.CodeContentProperty, - ) : CdkObject(cdkObject), CodeContentProperty { + ) : CdkObject(cdkObject), + CodeContentProperty { /** * Information about the Amazon S3 bucket that contains the application code. * @@ -2818,7 +3007,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.CustomArtifactConfigurationProperty, - ) : CdkObject(cdkObject), CustomArtifactConfigurationProperty { + ) : CdkObject(cdkObject), + CustomArtifactConfigurationProperty { /** * Set this to either `UDF` or `DEPENDENCY_JAR` . * @@ -2973,7 +3163,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.DeployAsApplicationConfigurationProperty, - ) : CdkObject(cdkObject), DeployAsApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + DeployAsApplicationConfigurationProperty { /** * The description of an Amazon S3 object that contains the Amazon Data Analytics application, * including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object @@ -3086,7 +3277,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.EnvironmentPropertiesProperty, - ) : CdkObject(cdkObject), EnvironmentPropertiesProperty { + ) : CdkObject(cdkObject), + EnvironmentPropertiesProperty { /** * Describes the execution property groups. * @@ -3374,7 +3566,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.FlinkApplicationConfigurationProperty, - ) : CdkObject(cdkObject), FlinkApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + FlinkApplicationConfigurationProperty { /** * Describes an application's checkpointing configuration. * @@ -3448,9 +3641,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3474,9 +3667,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3492,9 +3685,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3517,9 +3710,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3537,9 +3730,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3558,7 +3751,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.FlinkRunConfigurationProperty, - ) : CdkObject(cdkObject), FlinkRunConfigurationProperty { + ) : CdkObject(cdkObject), + FlinkRunConfigurationProperty { /** * When restoring from a snapshot, specifies whether the runtime is allowed to skip a state * that cannot be mapped to the new program. @@ -3566,9 +3760,9 @@ public open class CfnApplicationV2( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3657,7 +3851,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.GlueDataCatalogConfigurationProperty, - ) : CdkObject(cdkObject), GlueDataCatalogConfigurationProperty { + ) : CdkObject(cdkObject), + GlueDataCatalogConfigurationProperty { /** * The Amazon Resource Name (ARN) of the database. * @@ -3761,7 +3956,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.InputLambdaProcessorProperty, - ) : CdkObject(cdkObject), InputLambdaProcessorProperty { + ) : CdkObject(cdkObject), + InputLambdaProcessorProperty { /** * The ARN of the Amazon Lambda function that operates on records in the stream. * @@ -3851,7 +4047,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.InputParallelismProperty, - ) : CdkObject(cdkObject), InputParallelismProperty { + ) : CdkObject(cdkObject), + InputParallelismProperty { /** * The number of in-application streams to create. * @@ -3990,7 +4187,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.InputProcessingConfigurationProperty, - ) : CdkObject(cdkObject), InputProcessingConfigurationProperty { + ) : CdkObject(cdkObject), + InputProcessingConfigurationProperty { /** * The * [InputLambdaProcessor](https://docs.aws.amazon.com/managed-flink/latest/apiv2/API_InputLambdaProcessor.html) @@ -4441,7 +4639,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.InputProperty, - ) : CdkObject(cdkObject), InputProperty { + ) : CdkObject(cdkObject), + InputProperty { /** * Describes the number of in-application streams to create. * @@ -4687,7 +4886,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.InputSchemaProperty, - ) : CdkObject(cdkObject), InputSchemaProperty { + ) : CdkObject(cdkObject), + InputSchemaProperty { /** * A list of `RecordColumn` objects. * @@ -4787,7 +4987,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * The path to the top-level parent that contains the records. * @@ -4873,7 +5074,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.KinesisFirehoseInputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseInputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseInputProperty { /** * The Amazon Resource Name (ARN) of the delivery stream. * @@ -4957,7 +5159,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.KinesisStreamsInputProperty, - ) : CdkObject(cdkObject), KinesisStreamsInputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsInputProperty { /** * The ARN of the input Kinesis data stream to read. * @@ -5139,7 +5342,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -5272,7 +5476,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.MavenReferenceProperty, - ) : CdkObject(cdkObject), MavenReferenceProperty { + ) : CdkObject(cdkObject), + MavenReferenceProperty { /** * The artifact ID of the Maven reference. * @@ -5430,7 +5635,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.MonitoringConfigurationProperty, - ) : CdkObject(cdkObject), MonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + MonitoringConfigurationProperty { /** * Describes whether to use the default CloudWatch logging configuration for an application. * @@ -5482,10 +5688,9 @@ public open class CfnApplicationV2( * tasks simultaneously. * * For more information about parallelism, see [Parallel - * Execution](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/dev/parallel.html) + * Execution](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/execution/parallel/) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) - * . + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) . * * Example: * @@ -5653,7 +5858,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ParallelismConfigurationProperty, - ) : CdkObject(cdkObject), ParallelismConfigurationProperty { + ) : CdkObject(cdkObject), + ParallelismConfigurationProperty { /** * Describes whether the Managed Service for Apache Flink service can increase the parallelism * of the application in response to increased throughput. @@ -5805,7 +6011,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.PropertyGroupProperty, - ) : CdkObject(cdkObject), PropertyGroupProperty { + ) : CdkObject(cdkObject), + PropertyGroupProperty { /** * Describes the key of an application execution property key-value pair. * @@ -5944,7 +6151,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * A reference to the data element in the streaming input or the reference data source. * @@ -6113,7 +6321,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When you configure application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or @@ -6304,7 +6513,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.RunConfigurationProperty, - ) : CdkObject(cdkObject), RunConfigurationProperty { + ) : CdkObject(cdkObject), + RunConfigurationProperty { /** * Describes the restore behavior of a restarting application. * @@ -6416,7 +6626,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.S3ContentBaseLocationProperty, - ) : CdkObject(cdkObject), S3ContentBaseLocationProperty { + ) : CdkObject(cdkObject), + S3ContentBaseLocationProperty { /** * The base path for the S3 bucket. * @@ -6548,7 +6759,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.S3ContentLocationProperty, - ) : CdkObject(cdkObject), S3ContentLocationProperty { + ) : CdkObject(cdkObject), + S3ContentLocationProperty { /** * The Amazon Resource Name (ARN) for the S3 bucket containing the application code. * @@ -6721,7 +6933,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.SqlApplicationConfigurationProperty, - ) : CdkObject(cdkObject), SqlApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + SqlApplicationConfigurationProperty { /** * The array of [Input](https://docs.aws.amazon.com/managed-flink/latest/apiv2/API_Input.html) * objects describing the input streams used by the application. @@ -6865,7 +7078,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * The array of * [SecurityGroup](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SecurityGroup.html) @@ -7182,7 +7396,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ZeppelinApplicationConfigurationProperty, - ) : CdkObject(cdkObject), ZeppelinApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ZeppelinApplicationConfigurationProperty { /** * The Amazon Glue Data Catalog that you use in queries in a Kinesis Data Analytics Studio * notebook. @@ -7299,7 +7514,8 @@ public open class CfnApplicationV2( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2.ZeppelinMonitoringConfigurationProperty, - ) : CdkObject(cdkObject), ZeppelinMonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + ZeppelinMonitoringConfigurationProperty { /** * The verbosity of the CloudWatch Logs for an application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2Props.kt index 60fad9962e..d895c0fb25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalytics/CfnApplicationV2Props.kt @@ -43,6 +43,9 @@ import kotlin.jvm.JvmName * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -508,7 +511,8 @@ public interface CfnApplicationV2Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalytics.CfnApplicationV2Props, - ) : CdkObject(cdkObject), CfnApplicationV2Props { + ) : CdkObject(cdkObject), + CfnApplicationV2Props { /** * Use this parameter to configure the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplication.kt index 5a78ac3900..066d2db4b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplication.kt @@ -56,6 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -192,7 +195,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -882,7 +887,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationCodeConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationCodeConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationCodeConfigurationProperty { /** * The location and type of the application code. * @@ -944,6 +950,9 @@ public open class CfnApplication( * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -1073,6 +1082,15 @@ public open class CfnApplication( public fun applicationSnapshotConfiguration(): Any? = unwrap(this).getApplicationSnapshotConfiguration() + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html#cfn-kinesisanalyticsv2-application-applicationconfiguration-applicationsystemrollbackconfiguration) + */ + public fun applicationSystemRollbackConfiguration(): Any? = + unwrap(this).getApplicationSystemRollbackConfiguration() + /** * Describes execution properties for a Managed Service for Apache Flink application. * @@ -1159,6 +1177,29 @@ public open class CfnApplication( public fun applicationSnapshotConfiguration(applicationSnapshotConfiguration: ApplicationSnapshotConfigurationProperty.Builder.() -> Unit) + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: IResolvable) + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty) + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d65c2f61494791a448d88e809457ed8e43339d53871afe30eddab52451ad53b") + public + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty.Builder.() -> Unit) + /** * @param environmentProperties Describes execution properties for a Managed Service for * Apache Flink application. @@ -1327,6 +1368,35 @@ public open class CfnApplication( Unit = applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty(applicationSnapshotConfiguration)) + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: IResolvable) { + cdkBuilder.applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty) { + cdkBuilder.applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration.let(ApplicationSystemRollbackConfigurationProperty.Companion::unwrap)) + } + + /** + * @param applicationSystemRollbackConfiguration Describes whether system rollbacks are + * enabled for a Managed Service for Apache Flink application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d65c2f61494791a448d88e809457ed8e43339d53871afe30eddab52451ad53b") + override + fun applicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration: ApplicationSystemRollbackConfigurationProperty.Builder.() -> Unit): + Unit = + applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty(applicationSystemRollbackConfiguration)) + /** * @param environmentProperties Describes execution properties for a Managed Service for * Apache Flink application. @@ -1467,7 +1537,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationConfigurationProperty { /** * The code location and type parameters for a Managed Service for Apache Flink application. * @@ -1484,6 +1555,15 @@ public open class CfnApplication( override fun applicationSnapshotConfiguration(): Any? = unwrap(this).getApplicationSnapshotConfiguration() + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html#cfn-kinesisanalyticsv2-application-applicationconfiguration-applicationsystemrollbackconfiguration) + */ + override fun applicationSystemRollbackConfiguration(): Any? = + unwrap(this).getApplicationSystemRollbackConfiguration() + /** * Describes execution properties for a Managed Service for Apache Flink application. * @@ -1601,7 +1681,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationMaintenanceConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationMaintenanceConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationMaintenanceConfigurationProperty { /** * Specifies the start time of the maintence window. * @@ -1717,7 +1798,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationRestoreConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationRestoreConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationRestoreConfigurationProperty { /** * Specifies how the application should be restored. * @@ -1828,7 +1910,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSnapshotConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationSnapshotConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationSnapshotConfigurationProperty { /** * Describes whether snapshots are enabled for a Managed Service for Apache Flink application. * @@ -1856,6 +1939,109 @@ public open class CfnApplication( } } + /** + * Describes the system rollback configuration for a Managed Service for Apache Flink application. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisanalyticsv2.*; + * ApplicationSystemRollbackConfigurationProperty applicationSystemRollbackConfigurationProperty = + * ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html) + */ + public interface ApplicationSystemRollbackConfigurationProperty { + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration-rollbackenabled) + */ + public fun rollbackEnabled(): Any + + /** + * A builder for [ApplicationSystemRollbackConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + public fun rollbackEnabled(rollbackEnabled: Boolean) + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + public fun rollbackEnabled(rollbackEnabled: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty.builder() + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + override fun rollbackEnabled(rollbackEnabled: Boolean) { + cdkBuilder.rollbackEnabled(rollbackEnabled) + } + + /** + * @param rollbackEnabled Describes whether system rollbacks are enabled for a Managed Service + * for Apache Flink application. + */ + override fun rollbackEnabled(rollbackEnabled: IResolvable) { + cdkBuilder.rollbackEnabled(rollbackEnabled.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty, + ) : CdkObject(cdkObject), + ApplicationSystemRollbackConfigurationProperty { + /** + * Describes whether system rollbacks are enabled for a Managed Service for Apache Flink + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsystemrollbackconfiguration-rollbackenabled) + */ + override fun rollbackEnabled(): Any = unwrap(this).getRollbackEnabled() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ApplicationSystemRollbackConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty): + ApplicationSystemRollbackConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ApplicationSystemRollbackConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ApplicationSystemRollbackConfigurationProperty): + software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ApplicationSystemRollbackConfigurationProperty + } + } + /** * For a SQL-based Kinesis Data Analytics application, provides additional mapping information * when the record format uses delimiters, such as CSV. @@ -1948,7 +2134,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * The column delimiter. * @@ -2100,7 +2287,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.CatalogConfigurationProperty, - ) : CdkObject(cdkObject), CatalogConfigurationProperty { + ) : CdkObject(cdkObject), + CatalogConfigurationProperty { /** * The configuration parameters for the default Amazon Glue database. * @@ -2136,10 +2324,9 @@ public open class CfnApplication( * * Checkpointing is the process of persisting application state for fault tolerance. For more * information, see [Checkpoints for Fault - * Tolerance](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/concepts/programming-model.html#checkpoints-for-fault-tolerance) + * Tolerance](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/checkpointing/) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) - * . + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) . * * Example: * @@ -2213,9 +2400,9 @@ public open class CfnApplication( * * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2284,9 +2471,9 @@ public open class CfnApplication( * checkpoint operation completes that a new checkpoint operation can start. * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2362,9 +2549,9 @@ public open class CfnApplication( * checkpoint operation completes that a new checkpoint operation can start. * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2383,7 +2570,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.CheckpointConfigurationProperty, - ) : CdkObject(cdkObject), CheckpointConfigurationProperty { + ) : CdkObject(cdkObject), + CheckpointConfigurationProperty { /** * Describes the interval in milliseconds between checkpoint operations. * @@ -2437,9 +2625,9 @@ public open class CfnApplication( * * If a checkpoint operation takes longer than the `CheckpointInterval` , the application * otherwise performs continual checkpoint operations. For more information, see [Tuning - * Checkpointing](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/large_state_tuning.html#tuning-checkpointing) + * Checkpointing](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/large_state_tuning/#tuning-checkpointing) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -2609,7 +2797,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.CodeContentProperty, - ) : CdkObject(cdkObject), CodeContentProperty { + ) : CdkObject(cdkObject), + CodeContentProperty { /** * Information about the Amazon S3 bucket that contains the application code. * @@ -2818,7 +3007,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.CustomArtifactConfigurationProperty, - ) : CdkObject(cdkObject), CustomArtifactConfigurationProperty { + ) : CdkObject(cdkObject), + CustomArtifactConfigurationProperty { /** * Set this to either `UDF` or `DEPENDENCY_JAR` . * @@ -2973,7 +3163,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.DeployAsApplicationConfigurationProperty, - ) : CdkObject(cdkObject), DeployAsApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + DeployAsApplicationConfigurationProperty { /** * The description of an Amazon S3 object that contains the Amazon Data Analytics application, * including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object @@ -3086,7 +3277,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.EnvironmentPropertiesProperty, - ) : CdkObject(cdkObject), EnvironmentPropertiesProperty { + ) : CdkObject(cdkObject), + EnvironmentPropertiesProperty { /** * Describes the execution property groups. * @@ -3374,7 +3566,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.FlinkApplicationConfigurationProperty, - ) : CdkObject(cdkObject), FlinkApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + FlinkApplicationConfigurationProperty { /** * Describes an application's checkpointing configuration. * @@ -3448,9 +3641,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3474,9 +3667,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3492,9 +3685,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3517,9 +3710,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3537,9 +3730,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3558,7 +3751,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.FlinkRunConfigurationProperty, - ) : CdkObject(cdkObject), FlinkRunConfigurationProperty { + ) : CdkObject(cdkObject), + FlinkRunConfigurationProperty { /** * When restoring from a snapshot, specifies whether the runtime is allowed to skip a state * that cannot be mapped to the new program. @@ -3566,9 +3760,9 @@ public open class CfnApplication( * This will happen if the program is updated between snapshots to remove stateful parameters, * and state data in the snapshot no longer corresponds to valid application data. For more * information, see [Allowing Non-Restored - * State](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/ops/state/savepoints.html#allowing-non-restored-state) + * State](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/savepoints/#allowing-non-restored-state) * in the [Apache Flink - * documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) + * documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) * . * * @@ -3657,7 +3851,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.GlueDataCatalogConfigurationProperty, - ) : CdkObject(cdkObject), GlueDataCatalogConfigurationProperty { + ) : CdkObject(cdkObject), + GlueDataCatalogConfigurationProperty { /** * The Amazon Resource Name (ARN) of the database. * @@ -3761,7 +3956,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.InputLambdaProcessorProperty, - ) : CdkObject(cdkObject), InputLambdaProcessorProperty { + ) : CdkObject(cdkObject), + InputLambdaProcessorProperty { /** * The ARN of the Amazon Lambda function that operates on records in the stream. * @@ -3851,7 +4047,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.InputParallelismProperty, - ) : CdkObject(cdkObject), InputParallelismProperty { + ) : CdkObject(cdkObject), + InputParallelismProperty { /** * The number of in-application streams to create. * @@ -3990,7 +4187,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.InputProcessingConfigurationProperty, - ) : CdkObject(cdkObject), InputProcessingConfigurationProperty { + ) : CdkObject(cdkObject), + InputProcessingConfigurationProperty { /** * The * [InputLambdaProcessor](https://docs.aws.amazon.com/managed-flink/latest/apiv2/API_InputLambdaProcessor.html) @@ -4441,7 +4639,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.InputProperty, - ) : CdkObject(cdkObject), InputProperty { + ) : CdkObject(cdkObject), + InputProperty { /** * Describes the number of in-application streams to create. * @@ -4687,7 +4886,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.InputSchemaProperty, - ) : CdkObject(cdkObject), InputSchemaProperty { + ) : CdkObject(cdkObject), + InputSchemaProperty { /** * A list of `RecordColumn` objects. * @@ -4787,7 +4987,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * The path to the top-level parent that contains the records. * @@ -4873,7 +5074,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.KinesisFirehoseInputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseInputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseInputProperty { /** * The Amazon Resource Name (ARN) of the delivery stream. * @@ -4957,7 +5159,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.KinesisStreamsInputProperty, - ) : CdkObject(cdkObject), KinesisStreamsInputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsInputProperty { /** * The ARN of the input Kinesis data stream to read. * @@ -5139,7 +5342,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -5272,7 +5476,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.MavenReferenceProperty, - ) : CdkObject(cdkObject), MavenReferenceProperty { + ) : CdkObject(cdkObject), + MavenReferenceProperty { /** * The artifact ID of the Maven reference. * @@ -5430,7 +5635,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.MonitoringConfigurationProperty, - ) : CdkObject(cdkObject), MonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + MonitoringConfigurationProperty { /** * Describes whether to use the default CloudWatch logging configuration for an application. * @@ -5482,10 +5688,9 @@ public open class CfnApplication( * tasks simultaneously. * * For more information about parallelism, see [Parallel - * Execution](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/dev/parallel.html) + * Execution](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/execution/parallel/) * in the [Apache Flink - * Documentation](https://docs.aws.amazon.com/https://ci.apache.org/projects/flink/flink-docs-release-1.8/) - * . + * Documentation](https://docs.aws.amazon.com/https://nightlies.apache.org/flink/flink-docs-master) . * * Example: * @@ -5653,7 +5858,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ParallelismConfigurationProperty, - ) : CdkObject(cdkObject), ParallelismConfigurationProperty { + ) : CdkObject(cdkObject), + ParallelismConfigurationProperty { /** * Describes whether the Managed Service for Apache Flink service can increase the parallelism * of the application in response to increased throughput. @@ -5805,7 +6011,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.PropertyGroupProperty, - ) : CdkObject(cdkObject), PropertyGroupProperty { + ) : CdkObject(cdkObject), + PropertyGroupProperty { /** * Describes the key of an application execution property key-value pair. * @@ -5944,7 +6151,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * A reference to the data element in the streaming input or the reference data source. * @@ -6113,7 +6321,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When you configure application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or @@ -6304,7 +6513,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.RunConfigurationProperty, - ) : CdkObject(cdkObject), RunConfigurationProperty { + ) : CdkObject(cdkObject), + RunConfigurationProperty { /** * Describes the restore behavior of a restarting application. * @@ -6416,7 +6626,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.S3ContentBaseLocationProperty, - ) : CdkObject(cdkObject), S3ContentBaseLocationProperty { + ) : CdkObject(cdkObject), + S3ContentBaseLocationProperty { /** * The base path for the S3 bucket. * @@ -6548,7 +6759,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.S3ContentLocationProperty, - ) : CdkObject(cdkObject), S3ContentLocationProperty { + ) : CdkObject(cdkObject), + S3ContentLocationProperty { /** * The Amazon Resource Name (ARN) for the S3 bucket containing the application code. * @@ -6721,7 +6933,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.SqlApplicationConfigurationProperty, - ) : CdkObject(cdkObject), SqlApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + SqlApplicationConfigurationProperty { /** * The array of [Input](https://docs.aws.amazon.com/managed-flink/latest/apiv2/API_Input.html) * objects describing the input streams used by the application. @@ -6865,7 +7078,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * The array of * [SecurityGroup](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SecurityGroup.html) @@ -7182,7 +7396,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ZeppelinApplicationConfigurationProperty, - ) : CdkObject(cdkObject), ZeppelinApplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ZeppelinApplicationConfigurationProperty { /** * The Amazon Glue Data Catalog that you use in queries in a Kinesis Data Analytics Studio * notebook. @@ -7299,7 +7514,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.ZeppelinMonitoringConfigurationProperty, - ) : CdkObject(cdkObject), ZeppelinMonitoringConfigurationProperty { + ) : CdkObject(cdkObject), + ZeppelinMonitoringConfigurationProperty { /** * The verbosity of the CloudWatch Logs for an application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOption.kt index 89368effa5..97a3dff133 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOption.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationCloudWatchLoggingOption( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationCloudWatchLoggingOption, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -309,7 +310,8 @@ public open class CfnApplicationCloudWatchLoggingOption( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationCloudWatchLoggingOption.CloudWatchLoggingOptionProperty, - ) : CdkObject(cdkObject), CloudWatchLoggingOptionProperty { + ) : CdkObject(cdkObject), + CloudWatchLoggingOptionProperty { /** * The ARN of the CloudWatch log to receive application messages. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOptionProps.kt index b0f3f8f17c..794db9fb85 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationCloudWatchLoggingOptionProps.kt @@ -128,7 +128,8 @@ public interface CfnApplicationCloudWatchLoggingOptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationCloudWatchLoggingOptionProps, - ) : CdkObject(cdkObject), CfnApplicationCloudWatchLoggingOptionProps { + ) : CdkObject(cdkObject), + CfnApplicationCloudWatchLoggingOptionProps { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutput.kt index 1cf6a71d99..bf994ffed6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutput.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationOutput( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -357,7 +358,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput.DestinationSchemaProperty, - ) : CdkObject(cdkObject), DestinationSchemaProperty { + ) : CdkObject(cdkObject), + DestinationSchemaProperty { /** * Specifies the format of the records on the output stream. * @@ -443,7 +445,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput.KinesisFirehoseOutputProperty, - ) : CdkObject(cdkObject), KinesisFirehoseOutputProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseOutputProperty { /** * The ARN of the destination delivery stream to write to. * @@ -529,7 +532,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput.KinesisStreamsOutputProperty, - ) : CdkObject(cdkObject), KinesisStreamsOutputProperty { + ) : CdkObject(cdkObject), + KinesisStreamsOutputProperty { /** * The ARN of the destination Kinesis data stream to write to. * @@ -633,7 +637,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput.LambdaOutputProperty, - ) : CdkObject(cdkObject), LambdaOutputProperty { + ) : CdkObject(cdkObject), + LambdaOutputProperty { /** * The Amazon Resource Name (ARN) of the destination Lambda function to write to. * @@ -940,7 +945,8 @@ public open class CfnApplicationOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutput.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * Describes the data format when records are written to the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutputProps.kt index 759118041f..59ea3ac208 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationOutputProps.kt @@ -148,7 +148,8 @@ public interface CfnApplicationOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationOutputProps, - ) : CdkObject(cdkObject), CfnApplicationOutputProps { + ) : CdkObject(cdkObject), + CfnApplicationOutputProps { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationProps.kt index 3c831bfa4d..7e5f926720 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationProps.kt @@ -43,6 +43,9 @@ import kotlin.jvm.JvmName * .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder() * .snapshotsEnabled(false) * .build()) + * .applicationSystemRollbackConfiguration(ApplicationSystemRollbackConfigurationProperty.builder() + * .rollbackEnabled(false) + * .build()) * .environmentProperties(EnvironmentPropertiesProperty.builder() * .propertyGroups(List.of(PropertyGroupProperty.builder() * .propertyGroupId("propertyGroupId") @@ -508,7 +511,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * Use this parameter to configure the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSource.kt index d320221a64..595fe68bcd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSource.kt @@ -73,7 +73,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationReferenceDataSource( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -405,7 +406,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.CSVMappingParametersProperty, - ) : CdkObject(cdkObject), CSVMappingParametersProperty { + ) : CdkObject(cdkObject), + CSVMappingParametersProperty { /** * The column delimiter. * @@ -500,7 +502,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.JSONMappingParametersProperty, - ) : CdkObject(cdkObject), JSONMappingParametersProperty { + ) : CdkObject(cdkObject), + JSONMappingParametersProperty { /** * The path to the top-level parent that contains the records. * @@ -682,7 +685,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.MappingParametersProperty, - ) : CdkObject(cdkObject), MappingParametersProperty { + ) : CdkObject(cdkObject), + MappingParametersProperty { /** * Provides additional mapping information when the record format uses delimiters (for * example, CSV). @@ -823,7 +827,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.RecordColumnProperty, - ) : CdkObject(cdkObject), RecordColumnProperty { + ) : CdkObject(cdkObject), + RecordColumnProperty { /** * A reference to the data element in the streaming input or the reference data source. * @@ -992,7 +997,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.RecordFormatProperty, - ) : CdkObject(cdkObject), RecordFormatProperty { + ) : CdkObject(cdkObject), + RecordFormatProperty { /** * When you configure application input at the time of creating or updating an application, * provides additional mapping information specific to the record format (such as JSON, CSV, or @@ -1250,7 +1256,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + ReferenceDataSourceProperty { /** * Describes the format of the data in the streaming source, and how each data element maps to * corresponding columns created in the in-application stream. @@ -1466,7 +1473,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.ReferenceSchemaProperty, - ) : CdkObject(cdkObject), ReferenceSchemaProperty { + ) : CdkObject(cdkObject), + ReferenceSchemaProperty { /** * A list of `RecordColumn` objects. * @@ -1591,7 +1599,8 @@ public open class CfnApplicationReferenceDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSource.S3ReferenceDataSourceProperty, - ) : CdkObject(cdkObject), S3ReferenceDataSourceProperty { + ) : CdkObject(cdkObject), + S3ReferenceDataSourceProperty { /** * The Amazon Resource Name (ARN) of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSourceProps.kt index 6d8b40a6be..c7b554ae7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationReferenceDataSourceProps.kt @@ -170,7 +170,8 @@ public interface CfnApplicationReferenceDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplicationReferenceDataSourceProps, - ) : CdkObject(cdkObject), CfnApplicationReferenceDataSourceProps { + ) : CdkObject(cdkObject), + CfnApplicationReferenceDataSourceProps { /** * The name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStream.kt index 3d075e83ef..829a8ab1de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStream.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeliveryStream( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -308,6 +310,36 @@ public open class CfnDeliveryStream( Unit = httpEndpointDestinationConfiguration(HttpEndpointDestinationConfigurationProperty(`value`)) + /** + * Specifies the destination configure settings for Apache Iceberg Table. + */ + public open fun icebergDestinationConfiguration(): Any? = + unwrap(this).getIcebergDestinationConfiguration() + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + */ + public open fun icebergDestinationConfiguration(`value`: IResolvable) { + unwrap(this).setIcebergDestinationConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + */ + public open + fun icebergDestinationConfiguration(`value`: IcebergDestinationConfigurationProperty) { + unwrap(this).setIcebergDestinationConfiguration(`value`.let(IcebergDestinationConfigurationProperty.Companion::unwrap)) + } + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bfb2c9e8df3785ce6944f9996cb446a5c3ec3486a3a030c57cdb4e571266b116") + public open + fun icebergDestinationConfiguration(`value`: IcebergDestinationConfigurationProperty.Builder.() -> Unit): + Unit = icebergDestinationConfiguration(IcebergDestinationConfigurationProperty(`value`)) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -804,6 +836,43 @@ public open class CfnDeliveryStream( public fun httpEndpointDestinationConfiguration(httpEndpointDestinationConfiguration: HttpEndpointDestinationConfigurationProperty.Builder.() -> Unit) + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + public fun icebergDestinationConfiguration(icebergDestinationConfiguration: IResolvable) + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + public + fun icebergDestinationConfiguration(icebergDestinationConfiguration: IcebergDestinationConfigurationProperty) + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f593292e2663c41aea0f624010d1c891ba58e85f19b12a025a8702e485365be") + public + fun icebergDestinationConfiguration(icebergDestinationConfiguration: IcebergDestinationConfigurationProperty.Builder.() -> Unit) + /** * When a Kinesis stream is used as the source for the delivery stream, a * [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) @@ -1431,6 +1500,49 @@ public open class CfnDeliveryStream( Unit = httpEndpointDestinationConfiguration(HttpEndpointDestinationConfigurationProperty(httpEndpointDestinationConfiguration)) + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + override fun icebergDestinationConfiguration(icebergDestinationConfiguration: IResolvable) { + cdkBuilder.icebergDestinationConfiguration(icebergDestinationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + override + fun icebergDestinationConfiguration(icebergDestinationConfiguration: IcebergDestinationConfigurationProperty) { + cdkBuilder.icebergDestinationConfiguration(icebergDestinationConfiguration.let(IcebergDestinationConfigurationProperty.Companion::unwrap)) + } + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f593292e2663c41aea0f624010d1c891ba58e85f19b12a025a8702e485365be") + override + fun icebergDestinationConfiguration(icebergDestinationConfiguration: IcebergDestinationConfigurationProperty.Builder.() -> Unit): + Unit = + icebergDestinationConfiguration(IcebergDestinationConfigurationProperty(icebergDestinationConfiguration)) + /** * When a Kinesis stream is used as the source for the delivery stream, a * [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) @@ -1905,7 +2017,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty, - ) : CdkObject(cdkObject), AmazonOpenSearchServerlessBufferingHintsProperty { + ) : CdkObject(cdkObject), + AmazonOpenSearchServerlessBufferingHintsProperty { /** * Buffer incoming data for the specified period of time, in seconds, before delivering it to * the destination. @@ -2457,7 +2570,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty, - ) : CdkObject(cdkObject), AmazonOpenSearchServerlessDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + AmazonOpenSearchServerlessDestinationConfigurationProperty { /** * The buffering options. * @@ -2625,7 +2739,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessRetryOptionsProperty, - ) : CdkObject(cdkObject), AmazonOpenSearchServerlessRetryOptionsProperty { + ) : CdkObject(cdkObject), + AmazonOpenSearchServerlessRetryOptionsProperty { /** * After an initial failure to deliver to the Serverless offering for Amazon OpenSearch * Service, the total amount of time during which Firehose retries delivery (including the first @@ -2754,7 +2869,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonopensearchserviceBufferingHintsProperty, - ) : CdkObject(cdkObject), AmazonopensearchserviceBufferingHintsProperty { + ) : CdkObject(cdkObject), + AmazonopensearchserviceBufferingHintsProperty { /** * Buffer incoming data for the specified period of time, in seconds, before delivering it to * the destination. @@ -3438,7 +3554,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonopensearchserviceDestinationConfigurationProperty, - ) : CdkObject(cdkObject), AmazonopensearchserviceDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + AmazonopensearchserviceDestinationConfigurationProperty { /** * The buffering options. * @@ -3642,7 +3759,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AmazonopensearchserviceRetryOptionsProperty, - ) : CdkObject(cdkObject), AmazonopensearchserviceRetryOptionsProperty { + ) : CdkObject(cdkObject), + AmazonopensearchserviceRetryOptionsProperty { /** * After an initial failure to deliver to Amazon OpenSearch Service, the total amount of time * during which Kinesis Data Firehose retries delivery (including the first attempt). @@ -3750,7 +3868,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.AuthenticationConfigurationProperty, - ) : CdkObject(cdkObject), AuthenticationConfigurationProperty { + ) : CdkObject(cdkObject), + AuthenticationConfigurationProperty { /** * The type of connectivity used to access the Amazon MSK cluster. * @@ -3890,7 +4009,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.BufferingHintsProperty, - ) : CdkObject(cdkObject), BufferingHintsProperty { + ) : CdkObject(cdkObject), + BufferingHintsProperty { /** * The length of time, in seconds, that Kinesis Data Firehose buffers incoming data before * delivering it to the destination. @@ -3934,6 +4054,108 @@ public open class CfnDeliveryStream( } } + /** + * Describes the containers where the destination Apache Iceberg Tables are persisted. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.*; + * CatalogConfigurationProperty catalogConfigurationProperty = + * CatalogConfigurationProperty.builder() + * .catalogArn("catalogArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-catalogconfiguration.html) + */ + public interface CatalogConfigurationProperty { + /** + * Specifies the Glue catalog ARN indentifier of the destination Apache Iceberg Tables. + * + * You must specify the ARN in the format `arn:aws:glue:region:account-id:catalog` . + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-catalogconfiguration.html#cfn-kinesisfirehose-deliverystream-catalogconfiguration-catalogarn) + */ + public fun catalogArn(): String? = unwrap(this).getCatalogArn() + + /** + * A builder for [CatalogConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param catalogArn Specifies the Glue catalog ARN indentifier of the destination Apache + * Iceberg Tables. + * You must specify the ARN in the format `arn:aws:glue:region:account-id:catalog` . + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun catalogArn(catalogArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty.builder() + + /** + * @param catalogArn Specifies the Glue catalog ARN indentifier of the destination Apache + * Iceberg Tables. + * You must specify the ARN in the format `arn:aws:glue:region:account-id:catalog` . + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun catalogArn(catalogArn: String) { + cdkBuilder.catalogArn(catalogArn) + } + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty, + ) : CdkObject(cdkObject), + CatalogConfigurationProperty { + /** + * Specifies the Glue catalog ARN indentifier of the destination Apache Iceberg Tables. + * + * You must specify the ARN in the format `arn:aws:glue:region:account-id:catalog` . + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-catalogconfiguration.html#cfn-kinesisfirehose-deliverystream-catalogconfiguration-catalogarn) + */ + override fun catalogArn(): String? = unwrap(this).getCatalogArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CatalogConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty): + CatalogConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + CatalogConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CatalogConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty + } + } + /** * The `CloudWatchLoggingOptions` property type specifies Amazon CloudWatch Logs (CloudWatch Logs) * logging options that Amazon Kinesis Data Firehose (Kinesis Data Firehose) uses for the delivery @@ -4058,7 +4280,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty, - ) : CdkObject(cdkObject), CloudWatchLoggingOptionsProperty { + ) : CdkObject(cdkObject), + CloudWatchLoggingOptionsProperty { /** * Indicates whether CloudWatch Logs logging is enabled. * @@ -4217,7 +4440,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CopyCommandProperty, - ) : CdkObject(cdkObject), CopyCommandProperty { + ) : CdkObject(cdkObject), + CopyCommandProperty { /** * Parameters to use with the Amazon Redshift `COPY` command. * @@ -4589,7 +4813,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DataFormatConversionConfigurationProperty, - ) : CdkObject(cdkObject), DataFormatConversionConfigurationProperty { + ) : CdkObject(cdkObject), + DataFormatConversionConfigurationProperty { /** * Defaults to `true` . * @@ -4772,7 +4997,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DeliveryStreamEncryptionConfigurationInputProperty, - ) : CdkObject(cdkObject), DeliveryStreamEncryptionConfigurationInputProperty { + ) : CdkObject(cdkObject), + DeliveryStreamEncryptionConfigurationInputProperty { /** * If you set `KeyType` to `CUSTOMER_MANAGED_CMK` , you must specify the Amazon Resource Name * (ARN) of the CMK. @@ -5024,7 +5250,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DeserializerProperty, - ) : CdkObject(cdkObject), DeserializerProperty { + ) : CdkObject(cdkObject), + DeserializerProperty { /** * The native Hive / HCatalog JsonSerDe. * @@ -5068,6 +5295,241 @@ public open class CfnDeliveryStream( } } + /** + * Describes the configuration of a destination in Apache Iceberg Tables. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.*; + * DestinationTableConfigurationProperty destinationTableConfigurationProperty = + * DestinationTableConfigurationProperty.builder() + * .destinationDatabaseName("destinationDatabaseName") + * .destinationTableName("destinationTableName") + * // the properties below are optional + * .s3ErrorOutputPrefix("s3ErrorOutputPrefix") + * .uniqueKeys(List.of("uniqueKeys")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html) + */ + public interface DestinationTableConfigurationProperty { + /** + * The name of the Apache Iceberg database. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-destinationdatabasename) + */ + public fun destinationDatabaseName(): String + + /** + * Specifies the name of the Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-destinationtablename) + */ + public fun destinationTableName(): String + + /** + * The table specific S3 error output prefix. + * + * All the errors that occurred while delivering to this table will be prefixed with this value + * in S3 destination. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-s3erroroutputprefix) + */ + public fun s3ErrorOutputPrefix(): String? = unwrap(this).getS3ErrorOutputPrefix() + + /** + * A list of unique keys for a given Apache Iceberg table. + * + * Firehose will use these for running Create, Update, or Delete operations on the given Iceberg + * table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-uniquekeys) + */ + public fun uniqueKeys(): List = unwrap(this).getUniqueKeys() ?: emptyList() + + /** + * A builder for [DestinationTableConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinationDatabaseName The name of the Apache Iceberg database. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun destinationDatabaseName(destinationDatabaseName: String) + + /** + * @param destinationTableName Specifies the name of the Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun destinationTableName(destinationTableName: String) + + /** + * @param s3ErrorOutputPrefix The table specific S3 error output prefix. + * All the errors that occurred while delivering to this table will be prefixed with this + * value in S3 destination. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun s3ErrorOutputPrefix(s3ErrorOutputPrefix: String) + + /** + * @param uniqueKeys A list of unique keys for a given Apache Iceberg table. + * Firehose will use these for running Create, Update, or Delete operations on the given + * Iceberg table. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun uniqueKeys(uniqueKeys: List) + + /** + * @param uniqueKeys A list of unique keys for a given Apache Iceberg table. + * Firehose will use these for running Create, Update, or Delete operations on the given + * Iceberg table. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun uniqueKeys(vararg uniqueKeys: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty.builder() + + /** + * @param destinationDatabaseName The name of the Apache Iceberg database. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun destinationDatabaseName(destinationDatabaseName: String) { + cdkBuilder.destinationDatabaseName(destinationDatabaseName) + } + + /** + * @param destinationTableName Specifies the name of the Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun destinationTableName(destinationTableName: String) { + cdkBuilder.destinationTableName(destinationTableName) + } + + /** + * @param s3ErrorOutputPrefix The table specific S3 error output prefix. + * All the errors that occurred while delivering to this table will be prefixed with this + * value in S3 destination. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun s3ErrorOutputPrefix(s3ErrorOutputPrefix: String) { + cdkBuilder.s3ErrorOutputPrefix(s3ErrorOutputPrefix) + } + + /** + * @param uniqueKeys A list of unique keys for a given Apache Iceberg table. + * Firehose will use these for running Create, Update, or Delete operations on the given + * Iceberg table. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun uniqueKeys(uniqueKeys: List) { + cdkBuilder.uniqueKeys(uniqueKeys) + } + + /** + * @param uniqueKeys A list of unique keys for a given Apache Iceberg table. + * Firehose will use these for running Create, Update, or Delete operations on the given + * Iceberg table. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun uniqueKeys(vararg uniqueKeys: String): Unit = uniqueKeys(uniqueKeys.toList()) + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty, + ) : CdkObject(cdkObject), + DestinationTableConfigurationProperty { + /** + * The name of the Apache Iceberg database. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-destinationdatabasename) + */ + override fun destinationDatabaseName(): String = unwrap(this).getDestinationDatabaseName() + + /** + * Specifies the name of the Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-destinationtablename) + */ + override fun destinationTableName(): String = unwrap(this).getDestinationTableName() + + /** + * The table specific S3 error output prefix. + * + * All the errors that occurred while delivering to this table will be prefixed with this + * value in S3 destination. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-s3erroroutputprefix) + */ + override fun s3ErrorOutputPrefix(): String? = unwrap(this).getS3ErrorOutputPrefix() + + /** + * A list of unique keys for a given Apache Iceberg table. + * + * Firehose will use these for running Create, Update, or Delete operations on the given + * Iceberg table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-uniquekeys) + */ + override fun uniqueKeys(): List = unwrap(this).getUniqueKeys() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + DestinationTableConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty): + DestinationTableConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + DestinationTableConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DestinationTableConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DestinationTableConfigurationProperty + } + } + /** * Indicates the method for setting up document ID. * @@ -5157,7 +5619,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DocumentIdOptionsProperty, - ) : CdkObject(cdkObject), DocumentIdOptionsProperty { + ) : CdkObject(cdkObject), + DocumentIdOptionsProperty { /** * When the `FIREHOSE_DEFAULT` option is chosen, Firehose generates a unique document ID for * each record based on a unique internal identifier. @@ -5326,7 +5789,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DynamicPartitioningConfigurationProperty, - ) : CdkObject(cdkObject), DynamicPartitioningConfigurationProperty { + ) : CdkObject(cdkObject), + DynamicPartitioningConfigurationProperty { /** * Specifies whether dynamic partitioning is enabled for this Kinesis Data Firehose delivery * stream. @@ -5474,7 +5938,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ElasticsearchBufferingHintsProperty, - ) : CdkObject(cdkObject), ElasticsearchBufferingHintsProperty { + ) : CdkObject(cdkObject), + ElasticsearchBufferingHintsProperty { /** * The length of time, in seconds, that Kinesis Data Firehose buffers incoming data before * delivering it to the destination. @@ -6196,7 +6661,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty, - ) : CdkObject(cdkObject), ElasticsearchDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + ElasticsearchDestinationConfigurationProperty { /** * Configures how Kinesis Data Firehose buffers incoming data while delivering it to the * Amazon ES domain. @@ -6418,7 +6884,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ElasticsearchRetryOptionsProperty, - ) : CdkObject(cdkObject), ElasticsearchRetryOptionsProperty { + ) : CdkObject(cdkObject), + ElasticsearchRetryOptionsProperty { /** * After an initial failure to deliver to Amazon ES, the total amount of time during which * Kinesis Data Firehose re-attempts delivery (including the first attempt). @@ -6578,7 +7045,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The AWS Key Management Service ( AWS KMS) encryption key that Amazon S3 uses to encrypt * your data. @@ -7383,7 +7851,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ExtendedS3DestinationConfigurationProperty, - ) : CdkObject(cdkObject), ExtendedS3DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + ExtendedS3DestinationConfigurationProperty { /** * The Amazon Resource Name (ARN) of the Amazon S3 bucket. * @@ -7643,7 +8112,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HiveJsonSerDeProperty, - ) : CdkObject(cdkObject), HiveJsonSerDeProperty { + ) : CdkObject(cdkObject), + HiveJsonSerDeProperty { /** * Indicates how you want Firehose to parse the date and timestamps that may be present in * your input data JSON. @@ -7757,7 +8227,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointCommonAttributeProperty, - ) : CdkObject(cdkObject), HttpEndpointCommonAttributeProperty { + ) : CdkObject(cdkObject), + HttpEndpointCommonAttributeProperty { /** * The name of the HTTP endpoint common attribute. * @@ -7895,7 +8366,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointConfigurationProperty, - ) : CdkObject(cdkObject), HttpEndpointConfigurationProperty { + ) : CdkObject(cdkObject), + HttpEndpointConfigurationProperty { /** * The access key required for Kinesis Firehose to authenticate with the HTTP endpoint * selected as the destination. @@ -8014,6 +8486,12 @@ public open class CfnDeliveryStream( * .build()) * .roleArn("roleArn") * .s3BackupMode("s3BackupMode") + * .secretsManagerConfiguration(SecretsManagerConfigurationProperty.builder() + * .enabled(false) + * // the properties below are optional + * .roleArn("roleArn") + * .secretArn("secretArn") + * .build()) * .build(); * ``` * @@ -8094,6 +8572,13 @@ public open class CfnDeliveryStream( */ public fun s3Configuration(): Any + /** + * The configuration that defines how you access secrets for HTTP Endpoint destination. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration-secretsmanagerconfiguration) + */ + public fun secretsManagerConfiguration(): Any? = unwrap(this).getSecretsManagerConfiguration() + /** * A builder for [HttpEndpointDestinationConfigurationProperty] */ @@ -8265,13 +8750,35 @@ public open class CfnDeliveryStream( @JvmName("3028a43c60af828f00c40d725e2fe11ad07370d61b25c36f3684653b96bfcdd7") public fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit) - } - - private class BuilderImpl : Builder { - private val cdkBuilder: - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty.Builder - = - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty.builder() + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + public fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("51a7a07385c70a9cafc04aa38d60a0ac7764fac8b8c8d4f5440663bffb55d47d") + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty.builder() /** * @param bufferingHints The buffering options that can be used before data is delivered to @@ -8482,6 +8989,34 @@ public open class CfnDeliveryStream( fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit): Unit = s3Configuration(S3DestinationConfigurationProperty(s3Configuration)) + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + override fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(SecretsManagerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for HTTP Endpoint destination. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("51a7a07385c70a9cafc04aa38d60a0ac7764fac8b8c8d4f5440663bffb55d47d") + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit): + Unit = + secretsManagerConfiguration(SecretsManagerConfigurationProperty(secretsManagerConfiguration)) + public fun build(): software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty = cdkBuilder.build() @@ -8489,7 +9024,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty, - ) : CdkObject(cdkObject), HttpEndpointDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + HttpEndpointDestinationConfigurationProperty { /** * The buffering options that can be used before data is delivered to the specified * destination. @@ -8564,6 +9100,14 @@ public open class CfnDeliveryStream( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration-s3configuration) */ override fun s3Configuration(): Any = unwrap(this).getS3Configuration() + + /** + * The configuration that defines how you access secrets for HTTP Endpoint destination. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointdestinationconfiguration-secretsmanagerconfiguration) + */ + override fun secretsManagerConfiguration(): Any? = + unwrap(this).getSecretsManagerConfiguration() } public companion object { @@ -8664,78 +9208,682 @@ public open class CfnDeliveryStream( software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty.builder() /** - * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + */ + override fun commonAttributes(commonAttributes: IResolvable) { + cdkBuilder.commonAttributes(commonAttributes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + */ + override fun commonAttributes(commonAttributes: List) { + cdkBuilder.commonAttributes(commonAttributes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + */ + override fun commonAttributes(vararg commonAttributes: Any): Unit = + commonAttributes(commonAttributes.toList()) + + /** + * @param contentEncoding Kinesis Data Firehose uses the content encoding to compress the body + * of a request before sending the request to the destination. + * For more information, see Content-Encoding in MDN Web Docs, the official Mozilla + * documentation. + */ + override fun contentEncoding(contentEncoding: String) { + cdkBuilder.contentEncoding(contentEncoding) + } + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty, + ) : CdkObject(cdkObject), + HttpEndpointRequestConfigurationProperty { + /** + * Describes the metadata sent to the HTTP endpoint destination. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-commonattributes) + */ + override fun commonAttributes(): Any? = unwrap(this).getCommonAttributes() + + /** + * Kinesis Data Firehose uses the content encoding to compress the body of a request before + * sending the request to the destination. + * + * For more information, see Content-Encoding in MDN Web Docs, the official Mozilla + * documentation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-contentencoding) + */ + override fun contentEncoding(): String? = unwrap(this).getContentEncoding() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + HttpEndpointRequestConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty): + HttpEndpointRequestConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + HttpEndpointRequestConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: HttpEndpointRequestConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty + } + } + + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.*; + * IcebergDestinationConfigurationProperty icebergDestinationConfigurationProperty = + * IcebergDestinationConfigurationProperty.builder() + * .catalogConfiguration(CatalogConfigurationProperty.builder() + * .catalogArn("catalogArn") + * .build()) + * .roleArn("roleArn") + * .s3Configuration(S3DestinationConfigurationProperty.builder() + * .bucketArn("bucketArn") + * .roleArn("roleArn") + * // the properties below are optional + * .bufferingHints(BufferingHintsProperty.builder() + * .intervalInSeconds(123) + * .sizeInMBs(123) + * .build()) + * .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder() + * .enabled(false) + * .logGroupName("logGroupName") + * .logStreamName("logStreamName") + * .build()) + * .compressionFormat("compressionFormat") + * .encryptionConfiguration(EncryptionConfigurationProperty.builder() + * .kmsEncryptionConfig(KMSEncryptionConfigProperty.builder() + * .awskmsKeyArn("awskmsKeyArn") + * .build()) + * .noEncryptionConfig("noEncryptionConfig") + * .build()) + * .errorOutputPrefix("errorOutputPrefix") + * .prefix("prefix") + * .build()) + * // the properties below are optional + * .bufferingHints(BufferingHintsProperty.builder() + * .intervalInSeconds(123) + * .sizeInMBs(123) + * .build()) + * .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder() + * .enabled(false) + * .logGroupName("logGroupName") + * .logStreamName("logStreamName") + * .build()) + * .destinationTableConfigurationList(List.of(DestinationTableConfigurationProperty.builder() + * .destinationDatabaseName("destinationDatabaseName") + * .destinationTableName("destinationTableName") + * // the properties below are optional + * .s3ErrorOutputPrefix("s3ErrorOutputPrefix") + * .uniqueKeys(List.of("uniqueKeys")) + * .build())) + * .processingConfiguration(ProcessingConfigurationProperty.builder() + * .enabled(false) + * .processors(List.of(ProcessorProperty.builder() + * .type("type") + * // the properties below are optional + * .parameters(List.of(ProcessorParameterProperty.builder() + * .parameterName("parameterName") + * .parameterValue("parameterValue") + * .build())) + * .build())) + * .build()) + * .retryOptions(RetryOptionsProperty.builder() + * .durationInSeconds(123) + * .build()) + * .s3BackupMode("s3BackupMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html) + */ + public interface IcebergDestinationConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-bufferinghints) + */ + public fun bufferingHints(): Any? = unwrap(this).getBufferingHints() + + /** + * Configuration describing where the destination Apache Iceberg Tables are persisted. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-catalogconfiguration) + */ + public fun catalogConfiguration(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-cloudwatchloggingoptions) + */ + public fun cloudWatchLoggingOptions(): Any? = unwrap(this).getCloudWatchLoggingOptions() + + /** + * Provides a list of `DestinationTableConfigurations` which Firehose uses to deliver data to + * Apache Iceberg Tables. + * + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-destinationtableconfigurationlist) + */ + public fun destinationTableConfigurationList(): Any? = + unwrap(this).getDestinationTableConfigurationList() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-processingconfiguration) + */ + public fun processingConfiguration(): Any? = unwrap(this).getProcessingConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-retryoptions) + */ + public fun retryOptions(): Any? = unwrap(this).getRetryOptions() + + /** + * The Amazon Resource Name (ARN) of the the IAM role to be assumed by Firehose for calling + * Apache Iceberg Tables. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-rolearn) + */ + public fun roleArn(): String + + /** + * Describes how Firehose will backup records. Currently,S3 backup only supports + * `FailedDataOnly` for preview. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-s3backupmode) + */ + public fun s3BackupMode(): String? = unwrap(this).getS3BackupMode() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-s3configuration) + */ + public fun s3Configuration(): Any + + /** + * A builder for [IcebergDestinationConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bufferingHints the value to be set. + */ + public fun bufferingHints(bufferingHints: IResolvable) + + /** + * @param bufferingHints the value to be set. + */ + public fun bufferingHints(bufferingHints: BufferingHintsProperty) + + /** + * @param bufferingHints the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("532db369c4e9e82f88c7d89d32aa57a540fc1de8d20995870f44602f78d1efd5") + public fun bufferingHints(bufferingHints: BufferingHintsProperty.Builder.() -> Unit) + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun catalogConfiguration(catalogConfiguration: IResolvable) + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun catalogConfiguration(catalogConfiguration: CatalogConfigurationProperty) + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b897b0cbbd8f92685f55cbc0e92df9ad14528aa0aecd5a9d53f4419f4b2616f3") + public + fun catalogConfiguration(catalogConfiguration: CatalogConfigurationProperty.Builder.() -> Unit) + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + public fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: IResolvable) + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + public + fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: CloudWatchLoggingOptionsProperty) + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ec1a177e75fe2c5969d35bd4050d50ab6e9d87f2e06eb34583388cbe11b394b8") + public + fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: CloudWatchLoggingOptionsProperty.Builder.() -> Unit) + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun destinationTableConfigurationList(destinationTableConfigurationList: IResolvable) + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun destinationTableConfigurationList(destinationTableConfigurationList: List) + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun destinationTableConfigurationList(vararg destinationTableConfigurationList: Any) + + /** + * @param processingConfiguration the value to be set. + */ + public fun processingConfiguration(processingConfiguration: IResolvable) + + /** + * @param processingConfiguration the value to be set. + */ + public fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty) + + /** + * @param processingConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a25d14af545401e4a6475ae7d108e1c2852ece1b68d3b33ddb57c72e53fa4111") + public + fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty.Builder.() -> Unit) + + /** + * @param retryOptions the value to be set. + */ + public fun retryOptions(retryOptions: IResolvable) + + /** + * @param retryOptions the value to be set. + */ + public fun retryOptions(retryOptions: RetryOptionsProperty) + + /** + * @param retryOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b8c289ac2b08d06b99fec5b267e8b9ab1c0d21ec6abc387259f3239cad7d2f8b") + public fun retryOptions(retryOptions: RetryOptionsProperty.Builder.() -> Unit) + + /** + * @param roleArn The Amazon Resource Name (ARN) of the the IAM role to be assumed by Firehose + * for calling Apache Iceberg Tables. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun roleArn(roleArn: String) + + /** + * @param s3BackupMode Describes how Firehose will backup records. Currently,S3 backup only + * supports `FailedDataOnly` for preview. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun s3BackupMode(s3BackupMode: String) + + /** + * @param s3Configuration the value to be set. + */ + public fun s3Configuration(s3Configuration: IResolvable) + + /** + * @param s3Configuration the value to be set. + */ + public fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty) + + /** + * @param s3Configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("456dfe0e8c99ec6049a34c44559d3aecc04f3c8ea1224d0c3bc47cae6d2aec63") + public + fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty.builder() + + /** + * @param bufferingHints the value to be set. + */ + override fun bufferingHints(bufferingHints: IResolvable) { + cdkBuilder.bufferingHints(bufferingHints.let(IResolvable.Companion::unwrap)) + } + + /** + * @param bufferingHints the value to be set. + */ + override fun bufferingHints(bufferingHints: BufferingHintsProperty) { + cdkBuilder.bufferingHints(bufferingHints.let(BufferingHintsProperty.Companion::unwrap)) + } + + /** + * @param bufferingHints the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("532db369c4e9e82f88c7d89d32aa57a540fc1de8d20995870f44602f78d1efd5") + override fun bufferingHints(bufferingHints: BufferingHintsProperty.Builder.() -> Unit): Unit = + bufferingHints(BufferingHintsProperty(bufferingHints)) + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun catalogConfiguration(catalogConfiguration: IResolvable) { + cdkBuilder.catalogConfiguration(catalogConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun catalogConfiguration(catalogConfiguration: CatalogConfigurationProperty) { + cdkBuilder.catalogConfiguration(catalogConfiguration.let(CatalogConfigurationProperty.Companion::unwrap)) + } + + /** + * @param catalogConfiguration Configuration describing where the destination Apache Iceberg + * Tables are persisted. + * Amazon Data Firehose is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b897b0cbbd8f92685f55cbc0e92df9ad14528aa0aecd5a9d53f4419f4b2616f3") + override + fun catalogConfiguration(catalogConfiguration: CatalogConfigurationProperty.Builder.() -> Unit): + Unit = catalogConfiguration(CatalogConfigurationProperty(catalogConfiguration)) + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + override fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: IResolvable) { + cdkBuilder.cloudWatchLoggingOptions(cloudWatchLoggingOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + override + fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: CloudWatchLoggingOptionsProperty) { + cdkBuilder.cloudWatchLoggingOptions(cloudWatchLoggingOptions.let(CloudWatchLoggingOptionsProperty.Companion::unwrap)) + } + + /** + * @param cloudWatchLoggingOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ec1a177e75fe2c5969d35bd4050d50ab6e9d87f2e06eb34583388cbe11b394b8") + override + fun cloudWatchLoggingOptions(cloudWatchLoggingOptions: CloudWatchLoggingOptionsProperty.Builder.() -> Unit): + Unit = + cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty(cloudWatchLoggingOptions)) + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override + fun destinationTableConfigurationList(destinationTableConfigurationList: IResolvable) { + cdkBuilder.destinationTableConfigurationList(destinationTableConfigurationList.let(IResolvable.Companion::unwrap)) + } + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun destinationTableConfigurationList(destinationTableConfigurationList: List) { + cdkBuilder.destinationTableConfigurationList(destinationTableConfigurationList.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param destinationTableConfigurationList Provides a list of + * `DestinationTableConfigurations` which Firehose uses to deliver data to Apache Iceberg Tables. + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun destinationTableConfigurationList(vararg destinationTableConfigurationList: Any): + Unit = destinationTableConfigurationList(destinationTableConfigurationList.toList()) + + /** + * @param processingConfiguration the value to be set. + */ + override fun processingConfiguration(processingConfiguration: IResolvable) { + cdkBuilder.processingConfiguration(processingConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param processingConfiguration the value to be set. + */ + override + fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty) { + cdkBuilder.processingConfiguration(processingConfiguration.let(ProcessingConfigurationProperty.Companion::unwrap)) + } + + /** + * @param processingConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a25d14af545401e4a6475ae7d108e1c2852ece1b68d3b33ddb57c72e53fa4111") + override + fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty.Builder.() -> Unit): + Unit = processingConfiguration(ProcessingConfigurationProperty(processingConfiguration)) + + /** + * @param retryOptions the value to be set. + */ + override fun retryOptions(retryOptions: IResolvable) { + cdkBuilder.retryOptions(retryOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param retryOptions the value to be set. + */ + override fun retryOptions(retryOptions: RetryOptionsProperty) { + cdkBuilder.retryOptions(retryOptions.let(RetryOptionsProperty.Companion::unwrap)) + } + + /** + * @param retryOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b8c289ac2b08d06b99fec5b267e8b9ab1c0d21ec6abc387259f3239cad7d2f8b") + override fun retryOptions(retryOptions: RetryOptionsProperty.Builder.() -> Unit): Unit = + retryOptions(RetryOptionsProperty(retryOptions)) + + /** + * @param roleArn The Amazon Resource Name (ARN) of the the IAM role to be assumed by Firehose + * for calling Apache Iceberg Tables. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param s3BackupMode Describes how Firehose will backup records. Currently,S3 backup only + * supports `FailedDataOnly` for preview. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun s3BackupMode(s3BackupMode: String) { + cdkBuilder.s3BackupMode(s3BackupMode) + } + + /** + * @param s3Configuration the value to be set. + */ + override fun s3Configuration(s3Configuration: IResolvable) { + cdkBuilder.s3Configuration(s3Configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3Configuration the value to be set. + */ + override fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty) { + cdkBuilder.s3Configuration(s3Configuration.let(S3DestinationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param s3Configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("456dfe0e8c99ec6049a34c44559d3aecc04f3c8ea1224d0c3bc47cae6d2aec63") + override + fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit): + Unit = s3Configuration(S3DestinationConfigurationProperty(s3Configuration)) + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty, + ) : CdkObject(cdkObject), + IcebergDestinationConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-bufferinghints) */ - override fun commonAttributes(commonAttributes: IResolvable) { - cdkBuilder.commonAttributes(commonAttributes.let(IResolvable.Companion::unwrap)) - } + override fun bufferingHints(): Any? = unwrap(this).getBufferingHints() /** - * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + * Configuration describing where the destination Apache Iceberg Tables are persisted. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-catalogconfiguration) */ - override fun commonAttributes(commonAttributes: List) { - cdkBuilder.commonAttributes(commonAttributes.map{CdkObjectWrappers.unwrap(it)}) - } + override fun catalogConfiguration(): Any = unwrap(this).getCatalogConfiguration() /** - * @param commonAttributes Describes the metadata sent to the HTTP endpoint destination. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-cloudwatchloggingoptions) */ - override fun commonAttributes(vararg commonAttributes: Any): Unit = - commonAttributes(commonAttributes.toList()) + override fun cloudWatchLoggingOptions(): Any? = unwrap(this).getCloudWatchLoggingOptions() /** - * @param contentEncoding Kinesis Data Firehose uses the content encoding to compress the body - * of a request before sending the request to the destination. - * For more information, see Content-Encoding in MDN Web Docs, the official Mozilla - * documentation. + * Provides a list of `DestinationTableConfigurations` which Firehose uses to deliver data to + * Apache Iceberg Tables. + * + * Firehose will write data with insert if table specific configuration is not provided here. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-destinationtableconfigurationlist) */ - override fun contentEncoding(contentEncoding: String) { - cdkBuilder.contentEncoding(contentEncoding) - } + override fun destinationTableConfigurationList(): Any? = + unwrap(this).getDestinationTableConfigurationList() - public fun build(): - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty - = cdkBuilder.build() - } + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-processingconfiguration) + */ + override fun processingConfiguration(): Any? = unwrap(this).getProcessingConfiguration() - private class Wrapper( - cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty, - ) : CdkObject(cdkObject), HttpEndpointRequestConfigurationProperty { /** - * Describes the metadata sent to the HTTP endpoint destination. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-retryoptions) + */ + override fun retryOptions(): Any? = unwrap(this).getRetryOptions() + + /** + * The Amazon Resource Name (ARN) of the the IAM role to be assumed by Firehose for calling + * Apache Iceberg Tables. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-commonattributes) + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-rolearn) */ - override fun commonAttributes(): Any? = unwrap(this).getCommonAttributes() + override fun roleArn(): String = unwrap(this).getRoleArn() /** - * Kinesis Data Firehose uses the content encoding to compress the body of a request before - * sending the request to the destination. + * Describes how Firehose will backup records. Currently,S3 backup only supports + * `FailedDataOnly` for preview. * - * For more information, see Content-Encoding in MDN Web Docs, the official Mozilla - * documentation. + * Amazon Data Firehose is in preview release and is subject to change. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-httpendpointrequestconfiguration.html#cfn-kinesisfirehose-deliverystream-httpendpointrequestconfiguration-contentencoding) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-s3backupmode) */ - override fun contentEncoding(): String? = unwrap(this).getContentEncoding() + override fun s3BackupMode(): String? = unwrap(this).getS3BackupMode() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-s3configuration) + */ + override fun s3Configuration(): Any = unwrap(this).getS3Configuration() } public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): - HttpEndpointRequestConfigurationProperty { + IcebergDestinationConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty): - HttpEndpointRequestConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - HttpEndpointRequestConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty): + IcebergDestinationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + IcebergDestinationConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: HttpEndpointRequestConfigurationProperty): - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty + internal fun unwrap(wrapped: IcebergDestinationConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.HttpEndpointRequestConfigurationProperty + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty } } @@ -8849,7 +9997,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.InputFormatConfigurationProperty, - ) : CdkObject(cdkObject), InputFormatConfigurationProperty { + ) : CdkObject(cdkObject), + InputFormatConfigurationProperty { /** * Specifies which deserializer to use. * @@ -8943,7 +10092,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.KMSEncryptionConfigProperty, - ) : CdkObject(cdkObject), KMSEncryptionConfigProperty { + ) : CdkObject(cdkObject), + KMSEncryptionConfigProperty { /** * The Amazon Resource Name (ARN) of the AWS KMS encryption key that Amazon S3 uses to encrypt * data delivered by the Kinesis Data Firehose stream. @@ -9050,7 +10200,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.KinesisStreamSourceConfigurationProperty, - ) : CdkObject(cdkObject), KinesisStreamSourceConfigurationProperty { + ) : CdkObject(cdkObject), + KinesisStreamSourceConfigurationProperty { /** * The ARN of the source Kinesis data stream. * @@ -9102,6 +10253,8 @@ public open class CfnDeliveryStream( * .build()) * .mskClusterArn("mskClusterArn") * .topicName("topicName") + * // the properties below are optional + * .readFromTimestamp("readFromTimestamp") * .build(); * ``` * @@ -9122,6 +10275,19 @@ public open class CfnDeliveryStream( */ public fun mskClusterArn(): String + /** + * The start date and time in UTC for the offset position within your MSK topic from where + * Firehose begins to read. + * + * By default, this is set to timestamp when Firehose becomes Active. + * + * If you want to create a Firehose stream with Earliest start position from SDK or CLI, you + * need to set the `ReadFromTimestamp` parameter to Epoch (1970-01-01T00:00:00Z). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-readfromtimestamp) + */ + public fun readFromTimestamp(): String? = unwrap(this).getReadFromTimestamp() + /** * The topic name within the Amazon MSK cluster. * @@ -9161,6 +10327,16 @@ public open class CfnDeliveryStream( */ public fun mskClusterArn(mskClusterArn: String) + /** + * @param readFromTimestamp The start date and time in UTC for the offset position within your + * MSK topic from where Firehose begins to read. + * By default, this is set to timestamp when Firehose becomes Active. + * + * If you want to create a Firehose stream with Earliest start position from SDK or CLI, you + * need to set the `ReadFromTimestamp` parameter to Epoch (1970-01-01T00:00:00Z). + */ + public fun readFromTimestamp(readFromTimestamp: String) + /** * @param topicName The topic name within the Amazon MSK cluster. */ @@ -9208,6 +10384,18 @@ public open class CfnDeliveryStream( cdkBuilder.mskClusterArn(mskClusterArn) } + /** + * @param readFromTimestamp The start date and time in UTC for the offset position within your + * MSK topic from where Firehose begins to read. + * By default, this is set to timestamp when Firehose becomes Active. + * + * If you want to create a Firehose stream with Earliest start position from SDK or CLI, you + * need to set the `ReadFromTimestamp` parameter to Epoch (1970-01-01T00:00:00Z). + */ + override fun readFromTimestamp(readFromTimestamp: String) { + cdkBuilder.readFromTimestamp(readFromTimestamp) + } + /** * @param topicName The topic name within the Amazon MSK cluster. */ @@ -9222,7 +10410,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.MSKSourceConfigurationProperty, - ) : CdkObject(cdkObject), MSKSourceConfigurationProperty { + ) : CdkObject(cdkObject), + MSKSourceConfigurationProperty { /** * The authentication configuration of the Amazon MSK cluster. * @@ -9238,6 +10427,19 @@ public open class CfnDeliveryStream( */ override fun mskClusterArn(): String = unwrap(this).getMskClusterArn() + /** + * The start date and time in UTC for the offset position within your MSK topic from where + * Firehose begins to read. + * + * By default, this is set to timestamp when Firehose becomes Active. + * + * If you want to create a Firehose stream with Earliest start position from SDK or CLI, you + * need to set the `ReadFromTimestamp` parameter to Epoch (1970-01-01T00:00:00Z). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-readfromtimestamp) + */ + override fun readFromTimestamp(): String? = unwrap(this).getReadFromTimestamp() + /** * The topic name within the Amazon MSK cluster. * @@ -9459,7 +10661,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.OpenXJsonSerDeProperty, - ) : CdkObject(cdkObject), OpenXJsonSerDeProperty { + ) : CdkObject(cdkObject), + OpenXJsonSerDeProperty { /** * When set to `true` , which is the default, Firehose converts JSON keys to lowercase before * deserializing them. @@ -9875,7 +11078,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.OrcSerDeProperty, - ) : CdkObject(cdkObject), OrcSerDeProperty { + ) : CdkObject(cdkObject), + OrcSerDeProperty { /** * The Hadoop Distributed File System (HDFS) block size. * @@ -10124,7 +11328,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.OutputFormatConfigurationProperty, - ) : CdkObject(cdkObject), OutputFormatConfigurationProperty { + ) : CdkObject(cdkObject), + OutputFormatConfigurationProperty { /** * Specifies which serializer to use. * @@ -10362,7 +11567,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ParquetSerDeProperty, - ) : CdkObject(cdkObject), ParquetSerDeProperty { + ) : CdkObject(cdkObject), + ParquetSerDeProperty { /** * The Hadoop Distributed File System (HDFS) block size. * @@ -10559,7 +11765,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ProcessingConfigurationProperty, - ) : CdkObject(cdkObject), ProcessingConfigurationProperty { + ) : CdkObject(cdkObject), + ProcessingConfigurationProperty { /** * Indicates whether data processing is enabled (true) or disabled (false). * @@ -10682,7 +11889,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ProcessorParameterProperty, - ) : CdkObject(cdkObject), ProcessorParameterProperty { + ) : CdkObject(cdkObject), + ProcessorParameterProperty { /** * The name of the parameter. * @@ -10827,7 +12035,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ProcessorProperty, - ) : CdkObject(cdkObject), ProcessorProperty { + ) : CdkObject(cdkObject), + ProcessorProperty { /** * The processor parameters. * @@ -10882,7 +12091,6 @@ public open class CfnDeliveryStream( * .copyOptions("copyOptions") * .dataTableColumns("dataTableColumns") * .build()) - * .password("password") * .roleArn("roleArn") * .s3Configuration(S3DestinationConfigurationProperty.builder() * .bucketArn("bucketArn") @@ -10907,13 +12115,13 @@ public open class CfnDeliveryStream( * .errorOutputPrefix("errorOutputPrefix") * .prefix("prefix") * .build()) - * .username("username") * // the properties below are optional * .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder() * .enabled(false) * .logGroupName("logGroupName") * .logStreamName("logStreamName") * .build()) + * .password("password") * .processingConfiguration(ProcessingConfigurationProperty.builder() * .enabled(false) * .processors(List.of(ProcessorProperty.builder() @@ -10952,6 +12160,13 @@ public open class CfnDeliveryStream( * .prefix("prefix") * .build()) * .s3BackupMode("s3BackupMode") + * .secretsManagerConfiguration(SecretsManagerConfigurationProperty.builder() + * .enabled(false) + * // the properties below are optional + * .roleArn("roleArn") + * .secretArn("secretArn") + * .build()) + * .username("username") * .build(); * ``` * @@ -10986,7 +12201,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-password) */ - public fun password(): String + public fun password(): String? = unwrap(this).getPassword() /** * The data processing configuration for the Kinesis Data Firehose delivery stream. @@ -11044,6 +12259,13 @@ public open class CfnDeliveryStream( */ public fun s3Configuration(): Any + /** + * The configuration that defines how you access secrets for Amazon Redshift. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-secretsmanagerconfiguration) + */ + public fun secretsManagerConfiguration(): Any? = unwrap(this).getSecretsManagerConfiguration() + /** * The Amazon Redshift user that has permission to access the Amazon Redshift cluster. * @@ -11052,7 +12274,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-username) */ - public fun username(): String + public fun username(): String? = unwrap(this).getUsername() /** * A builder for [RedshiftDestinationConfigurationProperty] @@ -11106,7 +12328,7 @@ public open class CfnDeliveryStream( /** * @param password The password for the Amazon Redshift user that you specified in the - * `Username` property. + * `Username` property. */ public fun password(password: String) @@ -11216,9 +12438,31 @@ public open class CfnDeliveryStream( public fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit) + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + public fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ed64f469a65b8587edb88b39c544144d8f7c105416d86f9cdf8da6b50b8b5b68") + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit) + /** * @param username The Amazon Redshift user that has permission to access the Amazon Redshift - * cluster. + * cluster. * This user must have `INSERT` privileges for copying data from the Amazon S3 bucket to the * cluster. */ @@ -11291,7 +12535,7 @@ public open class CfnDeliveryStream( /** * @param password The password for the Amazon Redshift user that you specified in the - * `Username` property. + * `Username` property. */ override fun password(password: String) { cdkBuilder.password(password) @@ -11429,9 +12673,37 @@ public open class CfnDeliveryStream( fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit): Unit = s3Configuration(S3DestinationConfigurationProperty(s3Configuration)) + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + override fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(SecretsManagerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Amazon Redshift. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ed64f469a65b8587edb88b39c544144d8f7c105416d86f9cdf8da6b50b8b5b68") + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit): + Unit = + secretsManagerConfiguration(SecretsManagerConfigurationProperty(secretsManagerConfiguration)) + /** * @param username The Amazon Redshift user that has permission to access the Amazon Redshift - * cluster. + * cluster. * This user must have `INSERT` privileges for copying data from the Amazon S3 bucket to the * cluster. */ @@ -11446,7 +12718,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.RedshiftDestinationConfigurationProperty, - ) : CdkObject(cdkObject), RedshiftDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + RedshiftDestinationConfigurationProperty { /** * The CloudWatch logging options for your delivery stream. * @@ -11475,7 +12748,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-password) */ - override fun password(): String = unwrap(this).getPassword() + override fun password(): String? = unwrap(this).getPassword() /** * The data processing configuration for the Kinesis Data Firehose delivery stream. @@ -11533,6 +12806,14 @@ public open class CfnDeliveryStream( */ override fun s3Configuration(): Any = unwrap(this).getS3Configuration() + /** + * The configuration that defines how you access secrets for Amazon Redshift. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-secretsmanagerconfiguration) + */ + override fun secretsManagerConfiguration(): Any? = + unwrap(this).getSecretsManagerConfiguration() + /** * The Amazon Redshift user that has permission to access the Amazon Redshift cluster. * @@ -11541,7 +12822,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-username) */ - override fun username(): String = unwrap(this).getUsername() + override fun username(): String? = unwrap(this).getUsername() } public companion object { @@ -11632,7 +12913,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.RedshiftRetryOptionsProperty, - ) : CdkObject(cdkObject), RedshiftRetryOptionsProperty { + ) : CdkObject(cdkObject), + RedshiftRetryOptionsProperty { /** * The length of time during which Firehose retries delivery after a failure, starting from * the initial request and including the first attempt. @@ -11736,7 +13018,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.RetryOptionsProperty, - ) : CdkObject(cdkObject), RetryOptionsProperty { + ) : CdkObject(cdkObject), + RetryOptionsProperty { /** * The total amount of time that Kinesis Data Firehose spends on retries. * @@ -12143,7 +13426,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.S3DestinationConfigurationProperty, - ) : CdkObject(cdkObject), S3DestinationConfigurationProperty { + ) : CdkObject(cdkObject), + S3DestinationConfigurationProperty { /** * The Amazon Resource Name (ARN) of the Amazon S3 bucket to send data to. * @@ -12467,7 +13751,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty, - ) : CdkObject(cdkObject), SchemaConfigurationProperty { + ) : CdkObject(cdkObject), + SchemaConfigurationProperty { /** * The ID of the AWS Glue Data Catalog. * @@ -12518,41 +13803,243 @@ public open class CfnDeliveryStream( * data schema. * * - * If the `SchemaConfiguration` request parameter is used as part of invoking the - * `CreateDeliveryStream` API, then the `TableName` property is required and its value must be - * specified. + * If the `SchemaConfiguration` request parameter is used as part of invoking the + * `CreateDeliveryStream` API, then the `TableName` property is required and its value must be + * specified. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaconfiguration-tablename) + */ + override fun tableName(): String? = unwrap(this).getTableName() + + /** + * Specifies the table version for the output data schema. + * + * If you don't specify this version ID, or if you set it to `LATEST` , Firehose uses the most + * recent version. This means that any updates to the table are automatically picked up. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaconfiguration-versionid) + */ + override fun versionId(): String? = unwrap(this).getVersionId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SchemaConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty): + SchemaConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SchemaConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SchemaConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty + } + } + + /** + * The structure that defines how Firehose accesses the secret. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.*; + * SecretsManagerConfigurationProperty secretsManagerConfigurationProperty = + * SecretsManagerConfigurationProperty.builder() + * .enabled(false) + * // the properties below are optional + * .roleArn("roleArn") + * .secretArn("secretArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html) + */ + public interface SecretsManagerConfigurationProperty { + /** + * Specifies whether you want to use the the secrets manager feature. + * + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-enabled) + */ + public fun enabled(): Any + + /** + * Specifies the role that Firehose assumes when calling the Secrets Manager API operation. + * + * When you provide the role, it overrides any destination specific role defined in the + * destination configuration. If you do not provide the then we use the destination specific role. + * This parameter is required for Splunk. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-rolearn) + */ + public fun roleArn(): String? = unwrap(this).getRoleArn() + + /** + * The ARN of the secret that stores your credentials. + * + * It must be in the same region as the Firehose stream and the role. The secret ARN can reside + * in a different account than the delivery stream and role as Firehose supports cross-account + * secret access. This parameter is required when *Enabled* is set to `True` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-secretarn) + */ + public fun secretArn(): String? = unwrap(this).getSecretArn() + + /** + * A builder for [SecretsManagerConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabled Specifies whether you want to use the the secrets manager feature. + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + */ + public fun enabled(enabled: Boolean) + + /** + * @param enabled Specifies whether you want to use the the secrets manager feature. + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + */ + public fun enabled(enabled: IResolvable) + + /** + * @param roleArn Specifies the role that Firehose assumes when calling the Secrets Manager + * API operation. + * When you provide the role, it overrides any destination specific role defined in the + * destination configuration. If you do not provide the then we use the destination specific + * role. This parameter is required for Splunk. + */ + public fun roleArn(roleArn: String) + + /** + * @param secretArn The ARN of the secret that stores your credentials. + * It must be in the same region as the Firehose stream and the role. The secret ARN can + * reside in a different account than the delivery stream and role as Firehose supports + * cross-account secret access. This parameter is required when *Enabled* is set to `True` . + */ + public fun secretArn(secretArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty.builder() + + /** + * @param enabled Specifies whether you want to use the the secrets manager feature. + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param enabled Specifies whether you want to use the the secrets manager feature. + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + */ + override fun enabled(enabled: IResolvable) { + cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) + } + + /** + * @param roleArn Specifies the role that Firehose assumes when calling the Secrets Manager + * API operation. + * When you provide the role, it overrides any destination specific role defined in the + * destination configuration. If you do not provide the then we use the destination specific + * role. This parameter is required for Splunk. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param secretArn The ARN of the secret that stores your credentials. + * It must be in the same region as the Firehose stream and the role. The secret ARN can + * reside in a different account than the delivery stream and role as Firehose supports + * cross-account secret access. This parameter is required when *Enabled* is set to `True` . + */ + override fun secretArn(secretArn: String) { + cdkBuilder.secretArn(secretArn) + } + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty, + ) : CdkObject(cdkObject), + SecretsManagerConfigurationProperty { + /** + * Specifies whether you want to use the the secrets manager feature. + * + * When set as `True` the secrets manager configuration overwrites the existing secrets in the + * destination configuration. When it's set to `False` Firehose falls back to the credentials in + * the destination configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-enabled) + */ + override fun enabled(): Any = unwrap(this).getEnabled() + + /** + * Specifies the role that Firehose assumes when calling the Secrets Manager API operation. * + * When you provide the role, it overrides any destination specific role defined in the + * destination configuration. If you do not provide the then we use the destination specific + * role. This parameter is required for Splunk. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaconfiguration-tablename) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-rolearn) */ - override fun tableName(): String? = unwrap(this).getTableName() + override fun roleArn(): String? = unwrap(this).getRoleArn() /** - * Specifies the table version for the output data schema. + * The ARN of the secret that stores your credentials. * - * If you don't specify this version ID, or if you set it to `LATEST` , Firehose uses the most - * recent version. This means that any updates to the table are automatically picked up. + * It must be in the same region as the Firehose stream and the role. The secret ARN can + * reside in a different account than the delivery stream and role as Firehose supports + * cross-account secret access. This parameter is required when *Enabled* is set to `True` . * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaconfiguration-versionid) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-secretsmanagerconfiguration.html#cfn-kinesisfirehose-deliverystream-secretsmanagerconfiguration-secretarn) */ - override fun versionId(): String? = unwrap(this).getVersionId() + override fun secretArn(): String? = unwrap(this).getSecretArn() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): SchemaConfigurationProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): + SecretsManagerConfigurationProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty): - SchemaConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - SchemaConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty): + SecretsManagerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SecretsManagerConfigurationProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: SchemaConfigurationProperty): - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty + internal fun unwrap(wrapped: SecretsManagerConfigurationProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty } } @@ -12752,7 +14239,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SerializerProperty, - ) : CdkObject(cdkObject), SerializerProperty { + ) : CdkObject(cdkObject), + SerializerProperty { /** * A serializer to use for converting data to the ORC format before storing it in Amazon S3. * @@ -12793,6 +14281,138 @@ public open class CfnDeliveryStream( } } + /** + * Describes the buffering to perform before delivering data to the Snowflake destination. + * + * If you do not specify any value, Firehose uses the default values. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.*; + * SnowflakeBufferingHintsProperty snowflakeBufferingHintsProperty = + * SnowflakeBufferingHintsProperty.builder() + * .intervalInSeconds(123) + * .sizeInMBs(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakebufferinghints.html) + */ + public interface SnowflakeBufferingHintsProperty { + /** + * Buffer incoming data for the specified period of time, in seconds, before delivering it to + * the destination. + * + * The default value is 0. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakebufferinghints.html#cfn-kinesisfirehose-deliverystream-snowflakebufferinghints-intervalinseconds) + */ + public fun intervalInSeconds(): Number? = unwrap(this).getIntervalInSeconds() + + /** + * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. + * + * The default value is 1. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakebufferinghints.html#cfn-kinesisfirehose-deliverystream-snowflakebufferinghints-sizeinmbs) + */ + public fun sizeInMBs(): Number? = unwrap(this).getSizeInMBs() + + /** + * A builder for [SnowflakeBufferingHintsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param intervalInSeconds Buffer incoming data for the specified period of time, in seconds, + * before delivering it to the destination. + * The default value is 0. + */ + public fun intervalInSeconds(intervalInSeconds: Number) + + /** + * @param sizeInMBs Buffer incoming data to the specified size, in MBs, before delivering it + * to the destination. + * The default value is 1. + */ + public fun sizeInMBs(sizeInMBs: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty.Builder + = + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty.builder() + + /** + * @param intervalInSeconds Buffer incoming data for the specified period of time, in seconds, + * before delivering it to the destination. + * The default value is 0. + */ + override fun intervalInSeconds(intervalInSeconds: Number) { + cdkBuilder.intervalInSeconds(intervalInSeconds) + } + + /** + * @param sizeInMBs Buffer incoming data to the specified size, in MBs, before delivering it + * to the destination. + * The default value is 1. + */ + override fun sizeInMBs(sizeInMBs: Number) { + cdkBuilder.sizeInMBs(sizeInMBs) + } + + public fun build(): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty, + ) : CdkObject(cdkObject), + SnowflakeBufferingHintsProperty { + /** + * Buffer incoming data for the specified period of time, in seconds, before delivering it to + * the destination. + * + * The default value is 0. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakebufferinghints.html#cfn-kinesisfirehose-deliverystream-snowflakebufferinghints-intervalinseconds) + */ + override fun intervalInSeconds(): Number? = unwrap(this).getIntervalInSeconds() + + /** + * Buffer incoming data to the specified size, in MBs, before delivering it to the + * destination. + * + * The default value is 1. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakebufferinghints.html#cfn-kinesisfirehose-deliverystream-snowflakebufferinghints-sizeinmbs) + */ + override fun sizeInMBs(): Number? = unwrap(this).getSizeInMBs() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SnowflakeBufferingHintsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty): + SnowflakeBufferingHintsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SnowflakeBufferingHintsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SnowflakeBufferingHintsProperty): + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeBufferingHintsProperty + } + } + /** * Configure Snowflake destination. * @@ -12806,7 +14426,6 @@ public open class CfnDeliveryStream( * SnowflakeDestinationConfigurationProperty.builder() * .accountUrl("accountUrl") * .database("database") - * .privateKey("privateKey") * .roleArn("roleArn") * .s3Configuration(S3DestinationConfigurationProperty.builder() * .bucketArn("bucketArn") @@ -12833,8 +14452,11 @@ public open class CfnDeliveryStream( * .build()) * .schema("schema") * .table("table") - * .user("user") * // the properties below are optional + * .bufferingHints(SnowflakeBufferingHintsProperty.builder() + * .intervalInSeconds(123) + * .sizeInMBs(123) + * .build()) * .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder() * .enabled(false) * .logGroupName("logGroupName") @@ -12844,6 +14466,7 @@ public open class CfnDeliveryStream( * .dataLoadingOption("dataLoadingOption") * .keyPassphrase("keyPassphrase") * .metaDataColumnName("metaDataColumnName") + * .privateKey("privateKey") * .processingConfiguration(ProcessingConfigurationProperty.builder() * .enabled(false) * .processors(List.of(ProcessorProperty.builder() @@ -12859,6 +14482,12 @@ public open class CfnDeliveryStream( * .durationInSeconds(123) * .build()) * .s3BackupMode("s3BackupMode") + * .secretsManagerConfiguration(SecretsManagerConfigurationProperty.builder() + * .enabled(false) + * // the properties below are optional + * .roleArn("roleArn") + * .secretArn("secretArn") + * .build()) * .snowflakeRoleConfiguration(SnowflakeRoleConfigurationProperty.builder() * .enabled(false) * .snowflakeRole("snowflakeRole") @@ -12866,6 +14495,7 @@ public open class CfnDeliveryStream( * .snowflakeVpcConfiguration(SnowflakeVpcConfigurationProperty.builder() * .privateLinkVpceId("privateLinkVpceId") * .build()) + * .user("user") * .build(); * ``` * @@ -12883,6 +14513,15 @@ public open class CfnDeliveryStream( */ public fun accountUrl(): String + /** + * Describes the buffering to perform before delivering data to the Snowflake destination. + * + * If you do not specify any value, Firehose uses the default values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-bufferinghints) + */ + public fun bufferingHints(): Any? = unwrap(this).getBufferingHints() + /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-cloudwatchloggingoptions) */ @@ -12938,9 +14577,11 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-privatekey) */ - public fun privateKey(): String + public fun privateKey(): String? = unwrap(this).getPrivateKey() /** + * Specifies configuration for Snowflake. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-processingconfiguration) */ public fun processingConfiguration(): Any? = unwrap(this).getProcessingConfiguration() @@ -12979,6 +14620,13 @@ public open class CfnDeliveryStream( */ public fun schema(): String + /** + * The configuration that defines how you access secrets for Snowflake. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-secretsmanagerconfiguration) + */ + public fun secretsManagerConfiguration(): Any? = unwrap(this).getSecretsManagerConfiguration() + /** * Optionally configure a Snowflake role. * @@ -13012,7 +14660,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-user) */ - public fun user(): String + public fun user(): String? = unwrap(this).getUser() /** * A builder for [SnowflakeDestinationConfigurationProperty] @@ -13027,6 +14675,29 @@ public open class CfnDeliveryStream( */ public fun accountUrl(accountUrl: String) + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + public fun bufferingHints(bufferingHints: IResolvable) + + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + public fun bufferingHints(bufferingHints: SnowflakeBufferingHintsProperty) + + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e4a18d87917e4eabaabe0affdc1a846daa802d4de5889d5be7de8aba8c33c69a") + public fun bufferingHints(bufferingHints: SnowflakeBufferingHintsProperty.Builder.() -> Unit) + /** * @param cloudWatchLoggingOptions the value to be set. */ @@ -13077,7 +14748,7 @@ public open class CfnDeliveryStream( public fun metaDataColumnName(metaDataColumnName: String) /** - * @param privateKey The private key used to encrypt your Snowflake client. + * @param privateKey The private key used to encrypt your Snowflake client. * For information, see [Using Key Pair Authentication & Key * Rotation](https://docs.aws.amazon.com/https://docs.snowflake.com/en/user-guide/data-load-snowpipe-streaming-configuration#using-key-pair-authentication-key-rotation) * . @@ -13085,17 +14756,17 @@ public open class CfnDeliveryStream( public fun privateKey(privateKey: String) /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ public fun processingConfiguration(processingConfiguration: IResolvable) /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ public fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty) /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f4b7c9eba4d19077ec65fc84e44e03de2e061dd971541a78967a3eb994b65cfc") @@ -13156,6 +14827,28 @@ public open class CfnDeliveryStream( */ public fun schema(schema: String) + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + public fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b2f33c13f0495b898f691893e9855f28c1a9a29153b20142f0505e25b2c1ce3d") + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit) + /** * @param snowflakeRoleConfiguration Optionally configure a Snowflake role. * Otherwise the default user role will be used. @@ -13216,7 +14909,7 @@ public open class CfnDeliveryStream( public fun table(table: String) /** - * @param user User login name for the Snowflake account. + * @param user User login name for the Snowflake account. */ public fun user(user: String) } @@ -13237,6 +14930,35 @@ public open class CfnDeliveryStream( cdkBuilder.accountUrl(accountUrl) } + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + override fun bufferingHints(bufferingHints: IResolvable) { + cdkBuilder.bufferingHints(bufferingHints.let(IResolvable.Companion::unwrap)) + } + + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + override fun bufferingHints(bufferingHints: SnowflakeBufferingHintsProperty) { + cdkBuilder.bufferingHints(bufferingHints.let(SnowflakeBufferingHintsProperty.Companion::unwrap)) + } + + /** + * @param bufferingHints Describes the buffering to perform before delivering data to the + * Snowflake destination. + * If you do not specify any value, Firehose uses the default values. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e4a18d87917e4eabaabe0affdc1a846daa802d4de5889d5be7de8aba8c33c69a") + override + fun bufferingHints(bufferingHints: SnowflakeBufferingHintsProperty.Builder.() -> Unit): + Unit = bufferingHints(SnowflakeBufferingHintsProperty(bufferingHints)) + /** * @param cloudWatchLoggingOptions the value to be set. */ @@ -13303,7 +15025,7 @@ public open class CfnDeliveryStream( } /** - * @param privateKey The private key used to encrypt your Snowflake client. + * @param privateKey The private key used to encrypt your Snowflake client. * For information, see [Using Key Pair Authentication & Key * Rotation](https://docs.aws.amazon.com/https://docs.snowflake.com/en/user-guide/data-load-snowpipe-streaming-configuration#using-key-pair-authentication-key-rotation) * . @@ -13313,14 +15035,14 @@ public open class CfnDeliveryStream( } /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ override fun processingConfiguration(processingConfiguration: IResolvable) { cdkBuilder.processingConfiguration(processingConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ override fun processingConfiguration(processingConfiguration: ProcessingConfigurationProperty) { @@ -13328,7 +15050,7 @@ public open class CfnDeliveryStream( } /** - * @param processingConfiguration the value to be set. + * @param processingConfiguration Specifies configuration for Snowflake. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f4b7c9eba4d19077ec65fc84e44e03de2e061dd971541a78967a3eb994b65cfc") @@ -13406,6 +15128,34 @@ public open class CfnDeliveryStream( cdkBuilder.schema(schema) } + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + override fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(SecretsManagerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Snowflake. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b2f33c13f0495b898f691893e9855f28c1a9a29153b20142f0505e25b2c1ce3d") + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit): + Unit = + secretsManagerConfiguration(SecretsManagerConfigurationProperty(secretsManagerConfiguration)) + /** * @param snowflakeRoleConfiguration Optionally configure a Snowflake role. * Otherwise the default user role will be used. @@ -13480,7 +15230,7 @@ public open class CfnDeliveryStream( } /** - * @param user User login name for the Snowflake account. + * @param user User login name for the Snowflake account. */ override fun user(user: String) { cdkBuilder.user(user) @@ -13493,7 +15243,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeDestinationConfigurationProperty, - ) : CdkObject(cdkObject), SnowflakeDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + SnowflakeDestinationConfigurationProperty { /** * URL for accessing your Snowflake account. * @@ -13505,6 +15256,15 @@ public open class CfnDeliveryStream( */ override fun accountUrl(): String = unwrap(this).getAccountUrl() + /** + * Describes the buffering to perform before delivering data to the Snowflake destination. + * + * If you do not specify any value, Firehose uses the default values. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-bufferinghints) + */ + override fun bufferingHints(): Any? = unwrap(this).getBufferingHints() + /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-cloudwatchloggingoptions) */ @@ -13560,9 +15320,11 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-privatekey) */ - override fun privateKey(): String = unwrap(this).getPrivateKey() + override fun privateKey(): String? = unwrap(this).getPrivateKey() /** + * Specifies configuration for Snowflake. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-processingconfiguration) */ override fun processingConfiguration(): Any? = unwrap(this).getProcessingConfiguration() @@ -13601,6 +15363,14 @@ public open class CfnDeliveryStream( */ override fun schema(): String = unwrap(this).getSchema() + /** + * The configuration that defines how you access secrets for Snowflake. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-secretsmanagerconfiguration) + */ + override fun secretsManagerConfiguration(): Any? = + unwrap(this).getSecretsManagerConfiguration() + /** * Optionally configure a Snowflake role. * @@ -13634,7 +15404,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-snowflakedestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-snowflakedestinationconfiguration-user) */ - override fun user(): String = unwrap(this).getUser() + override fun user(): String? = unwrap(this).getUser() } public companion object { @@ -13726,7 +15496,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeRetryOptionsProperty, - ) : CdkObject(cdkObject), SnowflakeRetryOptionsProperty { + ) : CdkObject(cdkObject), + SnowflakeRetryOptionsProperty { /** * the time period where Firehose will retry sending data to the chosen HTTP endpoint. * @@ -13843,7 +15614,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeRoleConfigurationProperty, - ) : CdkObject(cdkObject), SnowflakeRoleConfigurationProperty { + ) : CdkObject(cdkObject), + SnowflakeRoleConfigurationProperty { /** * Enable Snowflake role. * @@ -13944,7 +15716,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SnowflakeVpcConfigurationProperty, - ) : CdkObject(cdkObject), SnowflakeVpcConfigurationProperty { + ) : CdkObject(cdkObject), + SnowflakeVpcConfigurationProperty { /** * The VPCE ID for Firehose to privately connect with Snowflake. * @@ -14067,7 +15840,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SplunkBufferingHintsProperty, - ) : CdkObject(cdkObject), SplunkBufferingHintsProperty { + ) : CdkObject(cdkObject), + SplunkBufferingHintsProperty { /** * Buffer incoming data for the specified period of time, in seconds, before delivering it to * the destination. @@ -14121,7 +15895,6 @@ public open class CfnDeliveryStream( * SplunkDestinationConfigurationProperty.builder() * .hecEndpoint("hecEndpoint") * .hecEndpointType("hecEndpointType") - * .hecToken("hecToken") * .s3Configuration(S3DestinationConfigurationProperty.builder() * .bucketArn("bucketArn") * .roleArn("roleArn") @@ -14156,6 +15929,7 @@ public open class CfnDeliveryStream( * .logStreamName("logStreamName") * .build()) * .hecAcknowledgmentTimeoutInSeconds(123) + * .hecToken("hecToken") * .processingConfiguration(ProcessingConfigurationProperty.builder() * .enabled(false) * .processors(List.of(ProcessorProperty.builder() @@ -14171,6 +15945,12 @@ public open class CfnDeliveryStream( * .durationInSeconds(123) * .build()) * .s3BackupMode("s3BackupMode") + * .secretsManagerConfiguration(SecretsManagerConfigurationProperty.builder() + * .enabled(false) + * // the properties below are optional + * .roleArn("roleArn") + * .secretArn("secretArn") + * .build()) * .build(); * ``` * @@ -14224,7 +16004,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hectoken) */ - public fun hecToken(): String + public fun hecToken(): String? = unwrap(this).getHecToken() /** * The data processing configuration. @@ -14263,6 +16043,13 @@ public open class CfnDeliveryStream( */ public fun s3Configuration(): Any + /** + * The configuration that defines how you access secrets for Splunk. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-secretsmanagerconfiguration) + */ + public fun secretsManagerConfiguration(): Any? = unwrap(this).getSecretsManagerConfiguration() + /** * A builder for [SplunkDestinationConfigurationProperty] */ @@ -14331,7 +16118,7 @@ public open class CfnDeliveryStream( /** * @param hecToken This is a GUID that you obtain from your Splunk cluster when you create a - * new HEC endpoint. + * new HEC endpoint. */ public fun hecToken(hecToken: String) @@ -14402,6 +16189,28 @@ public open class CfnDeliveryStream( @JvmName("fa50c6dcaba52e45c88391090c23eef3caf9b4e2903b6fd6aa2a89e92abee921") public fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + public fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4988a3c20ab279514ecb352ff81c6ddef5cfe9fd0f789b08eaa4192b287e3dfe") + public + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -14490,7 +16299,7 @@ public open class CfnDeliveryStream( /** * @param hecToken This is a GUID that you obtain from your Splunk cluster when you create a - * new HEC endpoint. + * new HEC endpoint. */ override fun hecToken(hecToken: String) { cdkBuilder.hecToken(hecToken) @@ -14582,6 +16391,34 @@ public open class CfnDeliveryStream( fun s3Configuration(s3Configuration: S3DestinationConfigurationProperty.Builder.() -> Unit): Unit = s3Configuration(S3DestinationConfigurationProperty(s3Configuration)) + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + override fun secretsManagerConfiguration(secretsManagerConfiguration: IResolvable) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty) { + cdkBuilder.secretsManagerConfiguration(secretsManagerConfiguration.let(SecretsManagerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param secretsManagerConfiguration The configuration that defines how you access secrets + * for Splunk. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4988a3c20ab279514ecb352ff81c6ddef5cfe9fd0f789b08eaa4192b287e3dfe") + override + fun secretsManagerConfiguration(secretsManagerConfiguration: SecretsManagerConfigurationProperty.Builder.() -> Unit): + Unit = + secretsManagerConfiguration(SecretsManagerConfigurationProperty(secretsManagerConfiguration)) + public fun build(): software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SplunkDestinationConfigurationProperty = cdkBuilder.build() @@ -14589,7 +16426,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SplunkDestinationConfigurationProperty, - ) : CdkObject(cdkObject), SplunkDestinationConfigurationProperty { + ) : CdkObject(cdkObject), + SplunkDestinationConfigurationProperty { /** * The buffering options. * @@ -14637,7 +16475,7 @@ public open class CfnDeliveryStream( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-hectoken) */ - override fun hecToken(): String = unwrap(this).getHecToken() + override fun hecToken(): String? = unwrap(this).getHecToken() /** * The data processing configuration. @@ -14675,6 +16513,14 @@ public open class CfnDeliveryStream( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-s3configuration) */ override fun s3Configuration(): Any = unwrap(this).getS3Configuration() + + /** + * The configuration that defines how you access secrets for Splunk. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-secretsmanagerconfiguration) + */ + override fun secretsManagerConfiguration(): Any? = + unwrap(this).getSecretsManagerConfiguration() } public companion object { @@ -14762,7 +16608,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SplunkRetryOptionsProperty, - ) : CdkObject(cdkObject), SplunkRetryOptionsProperty { + ) : CdkObject(cdkObject), + SplunkRetryOptionsProperty { /** * The total amount of time that Firehose spends on retries. * @@ -15053,7 +16900,8 @@ public open class CfnDeliveryStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * The ARN of the IAM role that you want the delivery stream to use to create endpoints in the * destination VPC. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStreamProps.kt index b604e4f2ca..5656f82e2f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisfirehose/CfnDeliveryStreamProps.kt @@ -126,6 +126,16 @@ public interface CfnDeliveryStreamProps { public fun httpEndpointDestinationConfiguration(): Any? = unwrap(this).getHttpEndpointDestinationConfiguration() + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + */ + public fun icebergDestinationConfiguration(): Any? = + unwrap(this).getIcebergDestinationConfiguration() + /** * When a Kinesis stream is used as the source for the delivery stream, a * [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) @@ -414,6 +424,31 @@ public interface CfnDeliveryStreamProps { public fun httpEndpointDestinationConfiguration(httpEndpointDestinationConfiguration: CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty.Builder.() -> Unit) + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public fun icebergDestinationConfiguration(icebergDestinationConfiguration: IResolvable) + + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + public + fun icebergDestinationConfiguration(icebergDestinationConfiguration: CfnDeliveryStream.IcebergDestinationConfigurationProperty) + + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("484f7d6c612844105ad2074cd8d8320f4f5b531fd1100f259474d8b5f7d008a0") + public + fun icebergDestinationConfiguration(icebergDestinationConfiguration: CfnDeliveryStream.IcebergDestinationConfigurationProperty.Builder.() -> Unit) + /** * @param kinesisStreamSourceConfiguration When a Kinesis stream is used as the source for the * delivery stream, a @@ -879,6 +914,37 @@ public interface CfnDeliveryStreamProps { Unit = httpEndpointDestinationConfiguration(CfnDeliveryStream.HttpEndpointDestinationConfigurationProperty(httpEndpointDestinationConfiguration)) + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override fun icebergDestinationConfiguration(icebergDestinationConfiguration: IResolvable) { + cdkBuilder.icebergDestinationConfiguration(icebergDestinationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + override + fun icebergDestinationConfiguration(icebergDestinationConfiguration: CfnDeliveryStream.IcebergDestinationConfigurationProperty) { + cdkBuilder.icebergDestinationConfiguration(icebergDestinationConfiguration.let(CfnDeliveryStream.IcebergDestinationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param icebergDestinationConfiguration Specifies the destination configure settings for + * Apache Iceberg Table. + * Amazon Data Firehose is in preview release and is subject to change. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("484f7d6c612844105ad2074cd8d8320f4f5b531fd1100f259474d8b5f7d008a0") + override + fun icebergDestinationConfiguration(icebergDestinationConfiguration: CfnDeliveryStream.IcebergDestinationConfigurationProperty.Builder.() -> Unit): + Unit = + icebergDestinationConfiguration(CfnDeliveryStream.IcebergDestinationConfigurationProperty(icebergDestinationConfiguration)) + /** * @param kinesisStreamSourceConfiguration When a Kinesis stream is used as the source for the * delivery stream, a @@ -1153,7 +1219,8 @@ public interface CfnDeliveryStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStreamProps, - ) : CdkObject(cdkObject), CfnDeliveryStreamProps { + ) : CdkObject(cdkObject), + CfnDeliveryStreamProps { /** * Describes the configuration of a destination in the Serverless offering for Amazon OpenSearch * Service. @@ -1239,6 +1306,16 @@ public interface CfnDeliveryStreamProps { override fun httpEndpointDestinationConfiguration(): Any? = unwrap(this).getHttpEndpointDestinationConfiguration() + /** + * Specifies the destination configure settings for Apache Iceberg Table. + * + * Amazon Data Firehose is in preview release and is subject to change. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration) + */ + override fun icebergDestinationConfiguration(): Any? = + unwrap(this).getIcebergDestinationConfiguration() + /** * When a Kinesis stream is used as the source for the delivery stream, a * [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannel.kt index 4a5822bf6c..dcf11945c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannel.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSignalingChannel( cdkObject: software.amazon.awscdk.services.kinesisvideo.CfnSignalingChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kinesisvideo.CfnSignalingChannel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannelProps.kt index 51eaae8bf4..8d602ae9d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnSignalingChannelProps.kt @@ -168,7 +168,8 @@ public interface CfnSignalingChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisvideo.CfnSignalingChannelProps, - ) : CdkObject(cdkObject), CfnSignalingChannelProps { + ) : CdkObject(cdkObject), + CfnSignalingChannelProps { /** * The period of time (in seconds) a signaling channel retains undelivered messages before they * are discarded. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStream.kt index 48736a6178..d0002c8781 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStream.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStream( cdkObject: software.amazon.awscdk.services.kinesisvideo.CfnStream, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kinesisvideo.CfnStream(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStreamProps.kt index 96f591b527..a049cbc1e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisvideo/CfnStreamProps.kt @@ -195,7 +195,8 @@ public interface CfnStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kinesisvideo.CfnStreamProps, - ) : CdkObject(cdkObject), CfnStreamProps { + ) : CdkObject(cdkObject), + CfnStreamProps { /** * How long the stream retains data, in hours. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Alias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Alias.kt index 708d2eaccc..26c1a16cc8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Alias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Alias.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Alias( cdkObject: software.amazon.awscdk.services.kms.Alias, -) : Resource(cdkObject), IAlias { +) : Resource(cdkObject), + IAlias { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasAttributes.kt index 93658f2f6f..f81e13f639 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasAttributes.kt @@ -78,7 +78,8 @@ public interface AliasAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.AliasAttributes, - ) : CdkObject(cdkObject), AliasAttributes { + ) : CdkObject(cdkObject), + AliasAttributes { /** * Specifies the alias name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasProps.kt index 993d8b9454..0918763320 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/AliasProps.kt @@ -124,7 +124,8 @@ public interface AliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.AliasProps, - ) : CdkObject(cdkObject), AliasProps { + ) : CdkObject(cdkObject), + AliasProps { /** * The name of the alias. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAlias.kt index 21122b89ba..f99c73a9f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAlias.kt @@ -67,7 +67,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlias( cdkObject: software.amazon.awscdk.services.kms.CfnAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAliasProps.kt index 7654f087cb..a640462f28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnAliasProps.kt @@ -174,7 +174,8 @@ public interface CfnAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.CfnAliasProps, - ) : CdkObject(cdkObject), CfnAliasProps { + ) : CdkObject(cdkObject), + CfnAliasProps { /** * Specifies the alias name. This value must begin with `alias/` followed by a name, such as * `alias/ExampleAlias` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKey.kt index 9f9e6084a2..f7cbc39925 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKey.kt @@ -78,16 +78,47 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * CfnInclude cfnTemplate; - * CfnKey cfnKey = (CfnKey)cfnTemplate.getResource("Key"); - * IKey key = Key.fromCfnKey(cfnKey); + * import io.cloudshiftdev.awscdk.services.kms.*; + * Key kmsKey = new Key(this, "myKMSKey"); + * Bucket myBucket = Bucket.Builder.create(this, "mySSEKMSEncryptedBucket") + * .encryption(BucketEncryption.KMS) + * .encryptionKey(kmsKey) + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) + * .build(); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(S3BucketOrigin.withOriginAccessControl(myBucket)) + * .build()) + * .build(); + * // Add the following to scope down the key policy + * Map<String, Object> scopedDownKeyPolicy = Map.of( + * "Version", "2012-10-17", + * "Statement", List.of(Map.of( + * "Effect", "Allow", + * "Principal", Map.of( + * "AWS", "arn:aws:iam::111122223333:root"), + * "Action", "kms:*", + * "Resource", "*"), Map.of( + * "Effect", "Allow", + * "Principal", Map.of( + * "Service", "cloudfront.amazonaws.com"), + * "Action", List.of("kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey*"), + * "Resource", "*", + * "Condition", Map.of( + * "StringEquals", Map.of( + * "AWS:SourceArn", "arn:aws:cloudfront::111122223333:distribution/<CloudFront distribution + * ID>"))))); + * CfnKey cfnKey = ((CfnKey)kmsKey.getNode().getDefaultChild()); + * cfnKey.getKeyPolicy() = scopedDownKeyPolicy; * ``` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html) */ public open class CfnKey( cdkObject: software.amazon.awscdk.services.kms.CfnKey, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kms.CfnKey(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -591,18 +622,20 @@ public open class CfnKey( * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* + * deriving shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) * * Default: - "SYMMETRIC_DEFAULT" * @@ -628,12 +661,14 @@ public open class CfnKey( * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify - * `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify + * `SIGN_VERIFY` or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` + * , `SIGN_VERIFY` , or `KEY_AGREEMENT` . * * Default: - "ENCRYPT_DECRYPT" * @@ -1144,18 +1179,20 @@ public open class CfnKey( * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* + * deriving shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) * * Default: - "SYMMETRIC_DEFAULT" * @@ -1183,12 +1220,14 @@ public open class CfnKey( * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify - * `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify + * `SIGN_VERIFY` or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` + * , `SIGN_VERIFY` , or `KEY_AGREEMENT` . * * Default: - "ENCRYPT_DECRYPT" * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKeyProps.kt index 7a55e71969..2648e37f57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnKeyProps.kt @@ -205,18 +205,20 @@ public interface CfnKeyProps { * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* deriving + * shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) * * Default: - "SYMMETRIC_DEFAULT" * @@ -240,12 +242,14 @@ public interface CfnKeyProps { * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify `ENCRYPT_DECRYPT` - * or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify `SIGN_VERIFY` + * or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` , + * `SIGN_VERIFY` , or `KEY_AGREEMENT` . * * Default: - "ENCRYPT_DECRYPT" * @@ -618,18 +622,20 @@ public interface CfnKeyProps { * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* + * deriving shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) */ public fun keySpec(keySpec: String) @@ -649,12 +655,14 @@ public interface CfnKeyProps { * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify - * `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify + * `SIGN_VERIFY` or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` + * , `SIGN_VERIFY` , or `KEY_AGREEMENT` . */ public fun keyUsage(keyUsage: String) @@ -1076,18 +1084,20 @@ public interface CfnKeyProps { * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* + * deriving shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) */ override fun keySpec(keySpec: String) { cdkBuilder.keySpec(keySpec) @@ -1109,12 +1119,14 @@ public interface CfnKeyProps { * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify - * `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify + * `SIGN_VERIFY` or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` + * , `SIGN_VERIFY` , or `KEY_AGREEMENT` . */ override fun keyUsage(keyUsage: String) { cdkBuilder.keyUsage(keyUsage) @@ -1330,7 +1342,8 @@ public interface CfnKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.CfnKeyProps, - ) : CdkObject(cdkObject), CfnKeyProps { + ) : CdkObject(cdkObject), + CfnKeyProps { /** * Skips ("bypasses") the key policy lockout safety check. The default value is false. * @@ -1491,18 +1504,20 @@ public interface CfnKeyProps { * * `HMAC_256` * * `HMAC_384` * * `HMAC_512` - * * Asymmetric RSA key pairs + * * Asymmetric RSA key pairs (encryption and decryption *or* signing and verification) * * `RSA_2048` * * `RSA_3072` * * `RSA_4096` - * * Asymmetric NIST-recommended elliptic curve key pairs + * * Asymmetric NIST-recommended elliptic curve key pairs (signing and verification *or* + * deriving shared secrets) * * `ECC_NIST_P256` (secp256r1) * * `ECC_NIST_P384` (secp384r1) * * `ECC_NIST_P521` (secp521r1) - * * Other asymmetric elliptic curve key pairs + * * Other asymmetric elliptic curve key pairs (signing and verification) * * `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. - * * SM2 key pairs (China Regions only) - * * `SM2` + * * SM2 key pairs (encryption and decryption *or* signing and verification *or* deriving shared + * secrets) + * * `SM2` (China Regions only) * * Default: - "SYMMETRIC_DEFAULT" * @@ -1527,12 +1542,14 @@ public interface CfnKeyProps { * * Select only one valid value. * - * * For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT` . - * * For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY` . - * * For asymmetric KMS keys with SM2 (China Regions only) key material, specify - * `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . - * * For HMAC KMS keys, specify `GENERATE_VERIFY_MAC` . + * * For symmetric encryption KMS keys, omit the parameter or specify `ENCRYPT_DECRYPT` . + * * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC` . + * * For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY` . + * * For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify + * `SIGN_VERIFY` or `KEY_AGREEMENT` . + * * For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs specify `SIGN_VERIFY` . + * * For asymmetric KMS keys with SM2 key pairs (China Regions only), specify `ENCRYPT_DECRYPT` + * , `SIGN_VERIFY` , or `KEY_AGREEMENT` . * * Default: - "ENCRYPT_DECRYPT" * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKey.kt index 685fe68ec7..50a15b1194 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKey.kt @@ -85,7 +85,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicaKey( cdkObject: software.amazon.awscdk.services.kms.CfnReplicaKey, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKeyProps.kt index 202aa43044..4256e79ff5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/CfnReplicaKeyProps.kt @@ -621,7 +621,8 @@ public interface CfnReplicaKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.CfnReplicaKeyProps, - ) : CdkObject(cdkObject), CfnReplicaKeyProps { + ) : CdkObject(cdkObject), + CfnReplicaKeyProps { /** * A description of the KMS key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IAlias.kt index b61e43844d..0368fb67f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IAlias.kt @@ -35,7 +35,8 @@ public interface IAlias : IKey { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.IAlias, - ) : CdkObject(cdkObject), IAlias { + ) : CdkObject(cdkObject), + IAlias { /** * Defines a new alias for the key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IKey.kt index 9231ebc15f..028b677bc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/IKey.kt @@ -115,7 +115,8 @@ public interface IKey : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.IKey, - ) : CdkObject(cdkObject), IKey { + ) : CdkObject(cdkObject), + IKey { /** * Defines a new alias for the key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Key.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Key.kt index 6ad2338a88..f6e18213f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Key.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/Key.kt @@ -27,22 +27,24 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * Bucket destinationBucket; - * IBucket sourceBucket = Bucket.fromBucketAttributes(this, "SourceBucket", - * BucketAttributes.builder() - * .bucketArn("arn:aws:s3:::my-source-bucket-name") - * .encryptionKey(Key.fromKeyArn(this, "SourceBucketEncryptionKey", - * "arn:aws:kms:us-east-1:123456789012:key/<key-id>")) - * .build()); - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") - * .sources(List.of(Source.bucket(sourceBucket, "source.zip"))) - * .destinationBucket(destinationBucket) + * import io.cloudshiftdev.awscdk.services.kms.*; + * Key myKmsKey = new Key(this, "myKMSKey"); + * Bucket myBucket = Bucket.Builder.create(this, "mySSEKMSEncryptedBucket") + * .encryption(BucketEncryption.KMS) + * .encryptionKey(myKmsKey) + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) + * .build(); + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(S3BucketOrigin.withOriginAccessControl(myBucket)) + * .build()) * .build(); * ``` */ public open class Key( cdkObject: software.amazon.awscdk.services.kms.Key, -) : Resource(cdkObject), IKey { +) : Resource(cdkObject), + IKey { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.kms.Key(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -287,6 +289,25 @@ public open class Key( */ public fun keyUsage(keyUsage: KeyUsage) + /** + * Creates a multi-Region primary key that you can replicate in other AWS Regions. + * + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property + * value. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + * @param multiRegion Creates a multi-Region primary key that you can replicate in other AWS + * Regions. + */ + public fun multiRegion(multiRegion: Boolean) + /** * Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been * removed from a CloudFormation stack. @@ -488,6 +509,27 @@ public open class Key( cdkBuilder.keyUsage(keyUsage.let(KeyUsage.Companion::unwrap)) } + /** + * Creates a multi-Region primary key that you can replicate in other AWS Regions. + * + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property + * value. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + * @param multiRegion Creates a multi-Region primary key that you can replicate in other AWS + * Regions. + */ + override fun multiRegion(multiRegion: Boolean) { + cdkBuilder.multiRegion(multiRegion) + } + /** * Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been * removed from a CloudFormation stack. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyLookupOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyLookupOptions.kt index 3d911dc54e..f6f1c7f633 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyLookupOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyLookupOptions.kt @@ -60,7 +60,8 @@ public interface KeyLookupOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.KeyLookupOptions, - ) : CdkObject(cdkObject), KeyLookupOptions { + ) : CdkObject(cdkObject), + KeyLookupOptions { /** * The alias name of the Key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyProps.kt index 67435100a4..181a750abe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kms/KeyProps.kt @@ -111,6 +111,22 @@ public interface KeyProps { */ public fun keyUsage(): KeyUsage? = unwrap(this).getKeyUsage()?.let(KeyUsage::wrap) + /** + * Creates a multi-Region primary key that you can replicate in other AWS Regions. + * + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property value. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + */ + public fun multiRegion(): Boolean? = unwrap(this).getMultiRegion() + /** * Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been * removed from a CloudFormation stack. @@ -230,6 +246,19 @@ public interface KeyProps { */ public fun keyUsage(keyUsage: KeyUsage) + /** + * @param multiRegion Creates a multi-Region primary key that you can replicate in other AWS + * Regions. + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property + * value. + */ + public fun multiRegion(multiRegion: Boolean) + /** * @param pendingWindow Specifies the number of days in the waiting period before AWS KMS * deletes a CMK that has been removed from a CloudFormation stack. @@ -362,6 +391,21 @@ public interface KeyProps { cdkBuilder.keyUsage(keyUsage.let(KeyUsage.Companion::unwrap)) } + /** + * @param multiRegion Creates a multi-Region primary key that you can replicate in other AWS + * Regions. + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property + * value. + */ + override fun multiRegion(multiRegion: Boolean) { + cdkBuilder.multiRegion(multiRegion) + } + /** * @param pendingWindow Specifies the number of days in the waiting period before AWS KMS * deletes a CMK that has been removed from a CloudFormation stack. @@ -427,7 +471,8 @@ public interface KeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.kms.KeyProps, - ) : CdkObject(cdkObject), KeyProps { + ) : CdkObject(cdkObject), + KeyProps { /** * A list of principals to add as key administrators to the key policy. * @@ -498,6 +543,23 @@ public interface KeyProps { */ override fun keyUsage(): KeyUsage? = unwrap(this).getKeyUsage()?.let(KeyUsage::wrap) + /** + * Creates a multi-Region primary key that you can replicate in other AWS Regions. + * + * You can't change the `multiRegion` value after the KMS key is created. + * + * IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the + * update request fails, + * regardless of the value of the UpdateReplacePolicy attribute. + * This prevents you from accidentally deleting a KMS key by changing an immutable property + * value. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + */ + override fun multiRegion(): Boolean? = unwrap(this).getMultiRegion() + /** * Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been * removed from a CloudFormation stack. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilter.kt index 829c7d63e6..c86e48057c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilter.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataCellsFilter( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataCellsFilter, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -626,7 +627,8 @@ public open class CfnDataCellsFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataCellsFilter.ColumnWildcardProperty, - ) : CdkObject(cdkObject), ColumnWildcardProperty { + ) : CdkObject(cdkObject), + ColumnWildcardProperty { /** * Excludes column names. * @@ -732,7 +734,8 @@ public open class CfnDataCellsFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataCellsFilter.RowFilterProperty, - ) : CdkObject(cdkObject), RowFilterProperty { + ) : CdkObject(cdkObject), + RowFilterProperty { /** * A wildcard for all rows. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilterProps.kt index e5daf1be64..00fa23ff22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataCellsFilterProps.kt @@ -321,7 +321,8 @@ public interface CfnDataCellsFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataCellsFilterProps, - ) : CdkObject(cdkObject), CfnDataCellsFilterProps { + ) : CdkObject(cdkObject), + CfnDataCellsFilterProps { /** * An array of UTF-8 strings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettings.kt index 6697839a80..a81a82a140 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettings.kt @@ -94,7 +94,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataLakeSettings( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1171,7 +1172,8 @@ public open class CfnDataLakeSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings.DataLakePrincipalProperty, - ) : CdkObject(cdkObject), DataLakePrincipalProperty { + ) : CdkObject(cdkObject), + DataLakePrincipalProperty { /** * An identifier for the Lake Formation principal. * @@ -1314,7 +1316,8 @@ public open class CfnDataLakeSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings.PrincipalPermissionsProperty, - ) : CdkObject(cdkObject), PrincipalPermissionsProperty { + ) : CdkObject(cdkObject), + PrincipalPermissionsProperty { /** * The permissions that are granted to the principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettingsProps.kt index 97a867ec09..e06fde587b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnDataLakeSettingsProps.kt @@ -766,7 +766,8 @@ public interface CfnDataLakeSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnDataLakeSettingsProps, - ) : CdkObject(cdkObject), CfnDataLakeSettingsProps { + ) : CdkObject(cdkObject), + CfnDataLakeSettingsProps { /** * A list of AWS Lake Formation principals. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissions.kt index f73145e31a..009f980b84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissions.kt @@ -78,7 +78,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPermissions( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -497,7 +498,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.ColumnWildcardProperty, - ) : CdkObject(cdkObject), ColumnWildcardProperty { + ) : CdkObject(cdkObject), + ColumnWildcardProperty { /** * Excludes column names. * @@ -583,7 +585,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.DataLakePrincipalProperty, - ) : CdkObject(cdkObject), DataLakePrincipalProperty { + ) : CdkObject(cdkObject), + DataLakePrincipalProperty { /** * An identifier for the Lake Formation principal. * @@ -693,7 +696,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.DataLocationResourceProperty, - ) : CdkObject(cdkObject), DataLocationResourceProperty { + ) : CdkObject(cdkObject), + DataLocationResourceProperty { /** * The identifier for the Data Catalog . * @@ -812,7 +816,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.DatabaseResourceProperty, - ) : CdkObject(cdkObject), DatabaseResourceProperty { + ) : CdkObject(cdkObject), + DatabaseResourceProperty { /** * The identifier for the Data Catalog . * @@ -1127,7 +1132,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.ResourceProperty, - ) : CdkObject(cdkObject), ResourceProperty { + ) : CdkObject(cdkObject), + ResourceProperty { /** * A structure for a data location object where permissions are granted or revoked. * @@ -1351,7 +1357,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.TableResourceProperty, - ) : CdkObject(cdkObject), TableResourceProperty { + ) : CdkObject(cdkObject), + TableResourceProperty { /** * The identifier for the Data Catalog . * @@ -1439,7 +1446,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.TableWildcardProperty, - ) : CdkObject(cdkObject), TableWildcardProperty + ) : CdkObject(cdkObject), + TableWildcardProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): TableWildcardProperty { @@ -1670,7 +1678,8 @@ public open class CfnPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissions.TableWithColumnsResourceProperty, - ) : CdkObject(cdkObject), TableWithColumnsResourceProperty { + ) : CdkObject(cdkObject), + TableWithColumnsResourceProperty { /** * The identifier for the Data Catalog . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissionsProps.kt index d8a619bf6a..e105e32e00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPermissionsProps.kt @@ -234,7 +234,8 @@ public interface CfnPermissionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPermissionsProps, - ) : CdkObject(cdkObject), CfnPermissionsProps { + ) : CdkObject(cdkObject), + CfnPermissionsProps { /** * The AWS Lake Formation principal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissions.kt index 6b16aa09db..826578c5eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissions.kt @@ -97,7 +97,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrincipalPermissions( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -567,7 +568,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.ColumnWildcardProperty, - ) : CdkObject(cdkObject), ColumnWildcardProperty { + ) : CdkObject(cdkObject), + ColumnWildcardProperty { /** * Excludes column names. * @@ -713,7 +715,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.DataCellsFilterResourceProperty, - ) : CdkObject(cdkObject), DataCellsFilterResourceProperty { + ) : CdkObject(cdkObject), + DataCellsFilterResourceProperty { /** * A database in the Data Catalog . * @@ -817,7 +820,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.DataLakePrincipalProperty, - ) : CdkObject(cdkObject), DataLakePrincipalProperty { + ) : CdkObject(cdkObject), + DataLakePrincipalProperty { /** * An identifier for the AWS Lake Formation principal. * @@ -926,7 +930,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.DataLocationResourceProperty, - ) : CdkObject(cdkObject), DataLocationResourceProperty { + ) : CdkObject(cdkObject), + DataLocationResourceProperty { /** * The identifier for the Data Catalog where the location is registered with AWS Lake * Formation . @@ -1044,7 +1049,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.DatabaseResourceProperty, - ) : CdkObject(cdkObject), DatabaseResourceProperty { + ) : CdkObject(cdkObject), + DatabaseResourceProperty { /** * The identifier for the Data Catalog. * @@ -1193,7 +1199,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.LFTagKeyResourceProperty, - ) : CdkObject(cdkObject), LFTagKeyResourceProperty { + ) : CdkObject(cdkObject), + LFTagKeyResourceProperty { /** * The identifier for the Data Catalog where the location is registered with Data Catalog . * @@ -1365,7 +1372,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.LFTagPolicyResourceProperty, - ) : CdkObject(cdkObject), LFTagPolicyResourceProperty { + ) : CdkObject(cdkObject), + LFTagPolicyResourceProperty { /** * The identifier for the Data Catalog . * @@ -1498,7 +1506,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.LFTagProperty, - ) : CdkObject(cdkObject), LFTagProperty { + ) : CdkObject(cdkObject), + LFTagProperty { /** * The key-name for the LF-tag. * @@ -2019,7 +2028,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.ResourceProperty, - ) : CdkObject(cdkObject), ResourceProperty { + ) : CdkObject(cdkObject), + ResourceProperty { /** * The identifier for the Data Catalog. * @@ -2243,7 +2253,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.TableResourceProperty, - ) : CdkObject(cdkObject), TableResourceProperty { + ) : CdkObject(cdkObject), + TableResourceProperty { /** * The identifier for the Data Catalog. * @@ -2509,7 +2520,8 @@ public open class CfnPrincipalPermissions( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissions.TableWithColumnsResourceProperty, - ) : CdkObject(cdkObject), TableWithColumnsResourceProperty { + ) : CdkObject(cdkObject), + TableWithColumnsResourceProperty { /** * The identifier for the Data Catalog where the location is registered with AWS Lake * Formation . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissionsProps.kt index da6c711a19..1c915f86ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnPrincipalPermissionsProps.kt @@ -288,7 +288,8 @@ public interface CfnPrincipalPermissionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnPrincipalPermissionsProps, - ) : CdkObject(cdkObject), CfnPrincipalPermissionsProps { + ) : CdkObject(cdkObject), + CfnPrincipalPermissionsProps { /** * The identifier for the Data Catalog . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResource.kt index c8468518c7..b5930414e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResource.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResource( cdkObject: software.amazon.awscdk.services.lakeformation.CfnResource, -) : io.cloudshiftdev.awscdk.CfnResource(cdkObject), IInspectable { +) : io.cloudshiftdev.awscdk.CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResourceProps.kt index f34feda767..a4a4eba7cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnResourceProps.kt @@ -194,7 +194,8 @@ public interface CfnResourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnResourceProps, - ) : CdkObject(cdkObject), CfnResourceProps { + ) : CdkObject(cdkObject), + CfnResourceProps { /** * Indicates whether the data access of tables pointing to the location can be managed by both * Lake Formation permissions as well as Amazon S3 bucket policies. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTag.kt index 3b68f0440a..ef8646a57a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTag.kt @@ -91,7 +91,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTag( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTag, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociation.kt index bf6053935c..057e5deb7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociation.kt @@ -96,7 +96,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTagAssociation( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -436,7 +437,8 @@ public open class CfnTagAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation.DatabaseResourceProperty, - ) : CdkObject(cdkObject), DatabaseResourceProperty { + ) : CdkObject(cdkObject), + DatabaseResourceProperty { /** * The identifier for the Data Catalog . * @@ -642,7 +644,8 @@ public open class CfnTagAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation.LFTagPairProperty, - ) : CdkObject(cdkObject), LFTagPairProperty { + ) : CdkObject(cdkObject), + LFTagPairProperty { /** * The identifier for the Data Catalog . * @@ -953,7 +956,8 @@ public open class CfnTagAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation.ResourceProperty, - ) : CdkObject(cdkObject), ResourceProperty { + ) : CdkObject(cdkObject), + ResourceProperty { /** * The identifier for the Data Catalog. * @@ -1158,7 +1162,8 @@ public open class CfnTagAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation.TableResourceProperty, - ) : CdkObject(cdkObject), TableResourceProperty { + ) : CdkObject(cdkObject), + TableResourceProperty { /** * The identifier for the Data Catalog . * @@ -1370,7 +1375,8 @@ public open class CfnTagAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociation.TableWithColumnsResourceProperty, - ) : CdkObject(cdkObject), TableWithColumnsResourceProperty { + ) : CdkObject(cdkObject), + TableWithColumnsResourceProperty { /** * A wildcard object representing every table under a database. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociationProps.kt index cdd8bcf622..07a930632d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagAssociationProps.kt @@ -197,7 +197,8 @@ public interface CfnTagAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagAssociationProps, - ) : CdkObject(cdkObject), CfnTagAssociationProps { + ) : CdkObject(cdkObject), + CfnTagAssociationProps { /** * A structure containing an LF-tag key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagProps.kt index f3d8aba939..103e598f14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lakeformation/CfnTagProps.kt @@ -203,7 +203,8 @@ public interface CfnTagProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lakeformation.CfnTagProps, - ) : CdkObject(cdkObject), CfnTagProps { + ) : CdkObject(cdkObject), + CfnTagProps { /** * Catalog id string, not less than 1 or more than 255 bytes long, matching the [single-line * string diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotInstrumentationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotInstrumentationConfig.kt index 0c62f2250a..bb903cf12a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotInstrumentationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotInstrumentationConfig.kt @@ -81,7 +81,8 @@ public interface AdotInstrumentationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AdotInstrumentationConfig, - ) : CdkObject(cdkObject), AdotInstrumentationConfig { + ) : CdkObject(cdkObject), + AdotInstrumentationConfig { /** * The startup script to run, see ADOT documentation to pick the right script for your use case: * https://aws-otel.github.io/docs/getting-started/lambda. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaExecWrapper.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaExecWrapper.kt index 2ac0f9dadf..37254c1ae4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaExecWrapper.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaExecWrapper.kt @@ -9,6 +9,7 @@ public enum class AdotLambdaExecWrapper( PROXY_HANDLER(software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.PROXY_HANDLER), STREAM_HANDLER(software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.STREAM_HANDLER), INSTRUMENT_HANDLER(software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.INSTRUMENT_HANDLER), + SQS_HANDLER(software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.SQS_HANDLER), ; public companion object { @@ -22,6 +23,8 @@ public enum class AdotLambdaExecWrapper( AdotLambdaExecWrapper.STREAM_HANDLER software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.INSTRUMENT_HANDLER -> AdotLambdaExecWrapper.INSTRUMENT_HANDLER + software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper.SQS_HANDLER -> + AdotLambdaExecWrapper.SQS_HANDLER } internal fun unwrap(wrapped: AdotLambdaExecWrapper): diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerGenericVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerGenericVersion.kt index 8b92bcbdf0..4e8870c525 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerGenericVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerGenericVersion.kt @@ -36,6 +36,9 @@ public open class AdotLambdaLayerGenericVersion( public val LATEST: AdotLambdaLayerGenericVersion = AdotLambdaLayerGenericVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion.LATEST) + public val V0_102_1: AdotLambdaLayerGenericVersion = + AdotLambdaLayerGenericVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion.V0_102_1) + public val V0_62_1: AdotLambdaLayerGenericVersion = AdotLambdaLayerGenericVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion.V0_62_1) @@ -51,6 +54,9 @@ public open class AdotLambdaLayerGenericVersion( public val V0_90_1: AdotLambdaLayerGenericVersion = AdotLambdaLayerGenericVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion.V0_90_1) + public val V0_98_0: AdotLambdaLayerGenericVersion = + AdotLambdaLayerGenericVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion.V0_98_0) + internal fun wrap(cdkObject: software.amazon.awscdk.services.lambda.AdotLambdaLayerGenericVersion): AdotLambdaLayerGenericVersion = AdotLambdaLayerGenericVersion(cdkObject) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerPythonSdkVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerPythonSdkVersion.kt index e0e500941f..d0769dc42e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerPythonSdkVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AdotLambdaLayerPythonSdkVersion.kt @@ -66,6 +66,12 @@ public open class AdotLambdaLayerPythonSdkVersion( public val V1_21_0: AdotLambdaLayerPythonSdkVersion = AdotLambdaLayerPythonSdkVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerPythonSdkVersion.V1_21_0) + public val V1_24_0: AdotLambdaLayerPythonSdkVersion = + AdotLambdaLayerPythonSdkVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerPythonSdkVersion.V1_24_0) + + public val V1_25_0: AdotLambdaLayerPythonSdkVersion = + AdotLambdaLayerPythonSdkVersion.wrap(software.amazon.awscdk.services.lambda.AdotLambdaLayerPythonSdkVersion.V1_25_0) + internal fun wrap(cdkObject: software.amazon.awscdk.services.lambda.AdotLambdaLayerPythonSdkVersion): AdotLambdaLayerPythonSdkVersion = AdotLambdaLayerPythonSdkVersion(cdkObject) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Alias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Alias.kt index c8178cb78f..a014d3d2ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Alias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Alias.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Alias( cdkObject: software.amazon.awscdk.services.lambda.Alias, -) : QualifiedFunctionBase(cdkObject), IAlias { +) : QualifiedFunctionBase(cdkObject), + IAlias { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasAttributes.kt index cb2f11a40f..93240847d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasAttributes.kt @@ -72,7 +72,8 @@ public interface AliasAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AliasAttributes, - ) : CdkObject(cdkObject), AliasAttributes { + ) : CdkObject(cdkObject), + AliasAttributes { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasOptions.kt index 6f83c85681..7021efa262 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasOptions.kt @@ -239,7 +239,8 @@ public interface AliasOptions : EventInvokeConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AliasOptions, - ) : CdkObject(cdkObject), AliasOptions { + ) : CdkObject(cdkObject), + AliasOptions { /** * Additional versions with individual weights this alias points to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasProps.kt index d62f4f2878..712db968fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AliasProps.kt @@ -240,7 +240,8 @@ public interface AliasProps : AliasOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AliasProps, - ) : CdkObject(cdkObject), AliasProps { + ) : CdkObject(cdkObject), + AliasProps { /** * Additional versions with individual weights this alias points to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AssetImageCodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AssetImageCodeProps.kt index 10490ea819..f5decf8e06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AssetImageCodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AssetImageCodeProps.kt @@ -501,7 +501,8 @@ public interface AssetImageCodeProps : DockerImageAssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AssetImageCodeProps, - ) : CdkObject(cdkObject), AssetImageCodeProps { + ) : CdkObject(cdkObject), + AssetImageCodeProps { /** * Unique identifier of the docker image asset and its potential revisions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AutoScalingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AutoScalingOptions.kt index 83677526ea..440db769ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AutoScalingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/AutoScalingOptions.kt @@ -84,7 +84,8 @@ public interface AutoScalingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.AutoScalingOptions, - ) : CdkObject(cdkObject), AutoScalingOptions { + ) : CdkObject(cdkObject), + AutoScalingOptions { /** * Maximum capacity to scale to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAlias.kt index 7f4026f09d..4793d818d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAlias.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlias( cdkObject: software.amazon.awscdk.services.lambda.CfnAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -74,9 +75,9 @@ public open class CfnAlias( ) /** - * + * The Amazon Resource Name (ARN) of the alias. */ - public open fun attrId(): String = unwrap(this).getAttrId() + public open fun attrAliasArn(): String = unwrap(this).getAttrAliasArn() /** * A description of the alias. @@ -527,7 +528,7 @@ public open class CfnAlias( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights) */ - public fun additionalVersionWeights(): Any + public fun additionalVersionWeights(): Any? = unwrap(this).getAdditionalVersionWeights() /** * A builder for [AliasRoutingConfigurationProperty] @@ -536,19 +537,19 @@ public open class CfnAlias( public interface Builder { /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ public fun additionalVersionWeights(additionalVersionWeights: IResolvable) /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ public fun additionalVersionWeights(additionalVersionWeights: List) /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ public fun additionalVersionWeights(vararg additionalVersionWeights: Any) } @@ -561,7 +562,7 @@ public open class CfnAlias( /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ override fun additionalVersionWeights(additionalVersionWeights: IResolvable) { cdkBuilder.additionalVersionWeights(additionalVersionWeights.let(IResolvable.Companion::unwrap)) @@ -569,7 +570,7 @@ public open class CfnAlias( /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ override fun additionalVersionWeights(additionalVersionWeights: List) { cdkBuilder.additionalVersionWeights(additionalVersionWeights.map{CdkObjectWrappers.unwrap(it)}) @@ -577,7 +578,7 @@ public open class CfnAlias( /** * @param additionalVersionWeights The second version, and the percentage of traffic that's - * routed to it. + * routed to it. */ override fun additionalVersionWeights(vararg additionalVersionWeights: Any): Unit = additionalVersionWeights(additionalVersionWeights.toList()) @@ -589,13 +590,14 @@ public open class CfnAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnAlias.AliasRoutingConfigurationProperty, - ) : CdkObject(cdkObject), AliasRoutingConfigurationProperty { + ) : CdkObject(cdkObject), + AliasRoutingConfigurationProperty { /** * The second version, and the percentage of traffic that's routed to it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights) */ - override fun additionalVersionWeights(): Any = unwrap(this).getAdditionalVersionWeights() + override fun additionalVersionWeights(): Any? = unwrap(this).getAdditionalVersionWeights() } public companion object { @@ -675,7 +677,8 @@ public open class CfnAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnAlias.ProvisionedConcurrencyConfigurationProperty, - ) : CdkObject(cdkObject), ProvisionedConcurrencyConfigurationProperty { + ) : CdkObject(cdkObject), + ProvisionedConcurrencyConfigurationProperty { /** * The amount of provisioned concurrency to allocate for the alias. * @@ -781,7 +784,8 @@ public open class CfnAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnAlias.VersionWeightProperty, - ) : CdkObject(cdkObject), VersionWeightProperty { + ) : CdkObject(cdkObject), + VersionWeightProperty { /** * The qualifier of the second version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAliasProps.kt index 78fd88b06b..a9713764b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnAliasProps.kt @@ -281,7 +281,8 @@ public interface CfnAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnAliasProps, - ) : CdkObject(cdkObject), CfnAliasProps { + ) : CdkObject(cdkObject), + CfnAliasProps { /** * A description of the alias. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfig.kt index 714f6454b8..27949360a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfig.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.lambda import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -37,6 +40,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .untrustedArtifactOnDeployment("untrustedArtifactOnDeployment") * .build()) * .description("description") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -44,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCodeSigningConfig( cdkObject: software.amazon.awscdk.services.lambda.CfnCodeSigningConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -98,6 +107,12 @@ public open class CfnCodeSigningConfig( */ public open fun attrCodeSigningConfigId(): String = unwrap(this).getAttrCodeSigningConfigId() + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** * The code signing policy controls the validation failure action for signature mismatch or * expiry. @@ -150,6 +165,23 @@ public open class CfnCodeSigningConfig( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * A list of tags to apply to CodeSigningConfig resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A list of tags to apply to CodeSigningConfig resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A list of tags to apply to CodeSigningConfig resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.lambda.CfnCodeSigningConfig]. */ @@ -221,6 +253,22 @@ public open class CfnCodeSigningConfig( * @param description Code signing configuration description. */ public fun description(description: String) + + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + public fun tags(tags: List) + + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl( @@ -309,6 +357,24 @@ public open class CfnCodeSigningConfig( cdkBuilder.description(description) } + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.lambda.CfnCodeSigningConfig = cdkBuilder.build() } @@ -410,7 +476,8 @@ public open class CfnCodeSigningConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnCodeSigningConfig.AllowedPublishersProperty, - ) : CdkObject(cdkObject), AllowedPublishersProperty { + ) : CdkObject(cdkObject), + AllowedPublishersProperty { /** * The Amazon Resource Name (ARN) for each of the signing profiles. * @@ -517,7 +584,8 @@ public open class CfnCodeSigningConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnCodeSigningConfig.CodeSigningPoliciesProperty, - ) : CdkObject(cdkObject), CodeSigningPoliciesProperty { + ) : CdkObject(cdkObject), + CodeSigningPoliciesProperty { /** * Code signing configuration policy for deployment validation failure. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfigProps.kt index 80ce2b4b80..58d817a614 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnCodeSigningConfigProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.lambda +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -9,6 +10,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName /** @@ -29,6 +31,10 @@ import kotlin.jvm.JvmName * .untrustedArtifactOnDeployment("untrustedArtifactOnDeployment") * .build()) * .description("description") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .build(); * ``` * @@ -57,6 +63,13 @@ public interface CfnCodeSigningConfigProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + /** * A builder for [CfnCodeSigningConfigProps] */ @@ -106,6 +119,16 @@ public interface CfnCodeSigningConfigProps { * @param description Code signing configuration description. */ public fun description(description: String) + + /** + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + public fun tags(tags: List) + + /** + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + public fun tags(vararg tags: CfnTag) } private class BuilderImpl : Builder { @@ -171,13 +194,26 @@ public interface CfnCodeSigningConfigProps { cdkBuilder.description(description) } + /** + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A list of tags to apply to CodeSigningConfig resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + public fun build(): software.amazon.awscdk.services.lambda.CfnCodeSigningConfigProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnCodeSigningConfigProps, - ) : CdkObject(cdkObject), CfnCodeSigningConfigProps { + ) : CdkObject(cdkObject), + CfnCodeSigningConfigProps { /** * List of allowed publishers. * @@ -199,6 +235,13 @@ public interface CfnCodeSigningConfigProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-description) */ override fun description(): String? = unwrap(this).getDescription() + + /** + * A list of tags to apply to CodeSigningConfig resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfig.kt index 6a94434a18..756303c222 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfig.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventInvokeConfig( cdkObject: software.amazon.awscdk.services.lambda.CfnEventInvokeConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -521,7 +522,8 @@ public open class CfnEventInvokeConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.DestinationConfigProperty, - ) : CdkObject(cdkObject), DestinationConfigProperty { + ) : CdkObject(cdkObject), + DestinationConfigProperty { /** * The destination configuration for failed invocations. * @@ -655,7 +657,8 @@ public open class CfnEventInvokeConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.OnFailureProperty, - ) : CdkObject(cdkObject), OnFailureProperty { + ) : CdkObject(cdkObject), + OnFailureProperty { /** * The Amazon Resource Name (ARN) of the destination resource. * @@ -752,7 +755,8 @@ public open class CfnEventInvokeConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.OnSuccessProperty, - ) : CdkObject(cdkObject), OnSuccessProperty { + ) : CdkObject(cdkObject), + OnSuccessProperty { /** * The Amazon Resource Name (ARN) of the destination resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfigProps.kt index e004175772..98227f6a8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventInvokeConfigProps.kt @@ -254,7 +254,8 @@ public interface CfnEventInvokeConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventInvokeConfigProps, - ) : CdkObject(cdkObject), CfnEventInvokeConfigProps { + ) : CdkObject(cdkObject), + CfnEventInvokeConfigProps { /** * A destination for events after they have been sent to a function for processing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMapping.kt index e740cad7df..529dd88701 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMapping.kt @@ -3,8 +3,11 @@ package io.cloudshiftdev.awscdk.services.lambda import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -76,6 +79,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .build()) * .functionResponseTypes(List.of("functionResponseTypes")) + * .kmsKeyArn("kmsKeyArn") * .maximumBatchingWindowInSeconds(123) * .maximumRecordAgeInSeconds(123) * .maximumRetryAttempts(123) @@ -98,6 +102,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .startingPosition("startingPosition") * .startingPositionTimestamp(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .topics(List.of("topics")) * .tumblingWindowInSeconds(123) * .build(); @@ -107,7 +115,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventSourceMapping( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -125,23 +135,20 @@ public open class CfnEventSourceMapping( ) /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. */ public open fun amazonManagedKafkaEventSourceConfig(): Any? = unwrap(this).getAmazonManagedKafkaEventSourceConfig() /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. */ public open fun amazonManagedKafkaEventSourceConfig(`value`: IResolvable) { unwrap(this).setAmazonManagedKafkaEventSourceConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. */ public open fun amazonManagedKafkaEventSourceConfig(`value`: AmazonManagedKafkaEventSourceConfigProperty) { @@ -149,8 +156,7 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0546eaf5ec0de25dc1ef0f4eff69e33135c5ee55d069c75ed61f58ff872041ff") @@ -160,71 +166,73 @@ public open class CfnEventSourceMapping( amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigProperty(`value`)) /** - * The event source mapping's ID. + * + */ + public open fun attrEventSourceMappingArn(): String = unwrap(this).getAttrEventSourceMappingArn() + + /** + * Event Source Mapping Identifier UUID. */ public open fun attrId(): String = unwrap(this).getAttrId() /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. + * The maximum number of items to retrieve in a single batch. */ public open fun batchSize(): Number? = unwrap(this).getBatchSize() /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. + * The maximum number of items to retrieve in a single batch. */ public open fun batchSize(`value`: Number) { unwrap(this).setBatchSize(`value`) } /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. + * (Streams) If the function returns an error, split the batch in two and retry. */ public open fun bisectBatchOnFunctionError(): Any? = unwrap(this).getBisectBatchOnFunctionError() /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. + * (Streams) If the function returns an error, split the batch in two and retry. */ public open fun bisectBatchOnFunctionError(`value`: Boolean) { unwrap(this).setBisectBatchOnFunctionError(`value`) } /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. + * (Streams) If the function returns an error, split the batch in two and retry. */ public open fun bisectBatchOnFunctionError(`value`: IResolvable) { unwrap(this).setBisectBatchOnFunctionError(`value`.let(IResolvable.Companion::unwrap)) } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A configuration object that specifies the destination of an event after Lambda processes it. */ public open fun destinationConfig(): Any? = unwrap(this).getDestinationConfig() /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. */ public open fun destinationConfig(`value`: IResolvable) { unwrap(this).setDestinationConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. */ public open fun destinationConfig(`value`: DestinationConfigProperty) { unwrap(this).setDestinationConfig(`value`.let(DestinationConfigProperty.Companion::unwrap)) } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e0727d1f2ac82afd02c9afa0002bf881a9e6a16e5e752856fc1a751310a91530") @@ -232,27 +240,27 @@ public open class CfnEventSourceMapping( destinationConfig(DestinationConfigProperty(`value`)) /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. */ public open fun documentDbEventSourceConfig(): Any? = unwrap(this).getDocumentDbEventSourceConfig() /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. */ public open fun documentDbEventSourceConfig(`value`: IResolvable) { unwrap(this).setDocumentDbEventSourceConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. */ public open fun documentDbEventSourceConfig(`value`: DocumentDBEventSourceConfigProperty) { unwrap(this).setDocumentDbEventSourceConfig(`value`.let(DocumentDBEventSourceConfigProperty.Companion::unwrap)) } /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9b5d7540aaff5f4c337bd3e3c466ea3553153047b3199251b7d4dc6152d421f8") @@ -261,25 +269,19 @@ public open class CfnEventSourceMapping( Unit = documentDbEventSourceConfig(DocumentDBEventSourceConfigProperty(`value`)) /** - * When true, the event source mapping is active. - * - * When false, Lambda pauses polling and invocation. + * Disables the event source mapping to pause polling and invocation. */ public open fun enabled(): Any? = unwrap(this).getEnabled() /** - * When true, the event source mapping is active. - * - * When false, Lambda pauses polling and invocation. + * Disables the event source mapping to pause polling and invocation. */ public open fun enabled(`value`: Boolean) { unwrap(this).setEnabled(`value`) } /** - * When true, the event source mapping is active. - * - * When false, Lambda pauses polling and invocation. + * Disables the event source mapping to pause polling and invocation. */ public open fun enabled(`value`: IResolvable) { unwrap(this).setEnabled(`value`.let(IResolvable.Companion::unwrap)) @@ -298,30 +300,26 @@ public open class CfnEventSourceMapping( } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. + * The filter criteria to control event filtering. */ public open fun filterCriteria(): Any? = unwrap(this).getFilterCriteria() /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. + * The filter criteria to control event filtering. */ public open fun filterCriteria(`value`: IResolvable) { unwrap(this).setFilterCriteria(`value`.let(IResolvable.Companion::unwrap)) } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. + * The filter criteria to control event filtering. */ public open fun filterCriteria(`value`: FilterCriteriaProperty) { unwrap(this).setFilterCriteria(`value`.let(FilterCriteriaProperty.Companion::unwrap)) } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. + * The filter criteria to control event filtering. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bc31923467be09d3b1d86cf808a6a14758970152c4f89da54949ef9fb9cf1dd8") @@ -329,32 +327,32 @@ public open class CfnEventSourceMapping( filterCriteria(FilterCriteriaProperty(`value`)) /** - * The name or ARN of the Lambda function. + * The name of the Lambda function. */ public open fun functionName(): String = unwrap(this).getFunctionName() /** - * The name or ARN of the Lambda function. + * The name of the Lambda function. */ public open fun functionName(`value`: String) { unwrap(this).setFunctionName(`value`) } /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. + * (Streams) A list of response types supported by the function. */ public open fun functionResponseTypes(): List = unwrap(this).getFunctionResponseTypes() ?: emptyList() /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. + * (Streams) A list of response types supported by the function. */ public open fun functionResponseTypes(`value`: List) { unwrap(this).setFunctionResponseTypes(`value`) } /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. + * (Streams) A list of response types supported by the function. */ public open fun functionResponseTypes(vararg `value`: String): Unit = functionResponseTypes(`value`.toList()) @@ -369,96 +367,106 @@ public open class CfnEventSourceMapping( } /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. + * The Amazon Resource Name (ARN) of the KMS key. + */ + public open fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The Amazon Resource Name (ARN) of the KMS key. + */ + public open fun kmsKeyArn(`value`: String) { + unwrap(this).setKmsKeyArn(`value`) + } + + /** + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. */ public open fun maximumBatchingWindowInSeconds(): Number? = unwrap(this).getMaximumBatchingWindowInSeconds() /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. */ public open fun maximumBatchingWindowInSeconds(`value`: Number) { unwrap(this).setMaximumBatchingWindowInSeconds(`value`) } /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. + * (Streams) The maximum age of a record that Lambda sends to a function for processing. */ public open fun maximumRecordAgeInSeconds(): Number? = unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. + * (Streams) The maximum age of a record that Lambda sends to a function for processing. */ public open fun maximumRecordAgeInSeconds(`value`: Number) { unwrap(this).setMaximumRecordAgeInSeconds(`value`) } /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. + * (Streams) The maximum number of times to retry when the function returns an error. */ public open fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. + * (Streams) The maximum number of times to retry when the function returns an error. */ public open fun maximumRetryAttempts(`value`: Number) { unwrap(this).setMaximumRetryAttempts(`value`) } /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. + * (Streams) The number of batches to process from each shard concurrently. */ public open fun parallelizationFactor(): Number? = unwrap(this).getParallelizationFactor() /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. + * (Streams) The number of batches to process from each shard concurrently. */ public open fun parallelizationFactor(`value`: Number) { unwrap(this).setParallelizationFactor(`value`) } /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. */ public open fun queues(): List = unwrap(this).getQueues() ?: emptyList() /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. */ public open fun queues(`value`: List) { unwrap(this).setQueues(`value`) } /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. */ public open fun queues(vararg `value`: String): Unit = queues(`value`.toList()) /** - * (Amazon SQS only) The scaling configuration for the event source. + * The scaling configuration for the event source. */ public open fun scalingConfig(): Any? = unwrap(this).getScalingConfig() /** - * (Amazon SQS only) The scaling configuration for the event source. + * The scaling configuration for the event source. */ public open fun scalingConfig(`value`: IResolvable) { unwrap(this).setScalingConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * (Amazon SQS only) The scaling configuration for the event source. + * The scaling configuration for the event source. */ public open fun scalingConfig(`value`: ScalingConfigProperty) { unwrap(this).setScalingConfig(`value`.let(ScalingConfigProperty.Companion::unwrap)) } /** - * (Amazon SQS only) The scaling configuration for the event source. + * The scaling configuration for the event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c7f38e41aa1e31160bdb25d297001323779fbc20a75f265e5d9d84a5dde4abf8") @@ -466,26 +474,26 @@ public open class CfnEventSourceMapping( scalingConfig(ScalingConfigProperty(`value`)) /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. */ public open fun selfManagedEventSource(): Any? = unwrap(this).getSelfManagedEventSource() /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. */ public open fun selfManagedEventSource(`value`: IResolvable) { unwrap(this).setSelfManagedEventSource(`value`.let(IResolvable.Companion::unwrap)) } /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. */ public open fun selfManagedEventSource(`value`: SelfManagedEventSourceProperty) { unwrap(this).setSelfManagedEventSource(`value`.let(SelfManagedEventSourceProperty.Companion::unwrap)) } /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ded22c9cf40efe353eb906200eb2e3d2b16224de530e6e175fb9f5582fbcd80a") @@ -494,20 +502,20 @@ public open class CfnEventSourceMapping( selfManagedEventSource(SelfManagedEventSourceProperty(`value`)) /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. */ public open fun selfManagedKafkaEventSourceConfig(): Any? = unwrap(this).getSelfManagedKafkaEventSourceConfig() /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. */ public open fun selfManagedKafkaEventSourceConfig(`value`: IResolvable) { unwrap(this).setSelfManagedKafkaEventSourceConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. */ public open fun selfManagedKafkaEventSourceConfig(`value`: SelfManagedKafkaEventSourceConfigProperty) { @@ -515,7 +523,7 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4a57a37ea1790f9844a931862b87c174d0128222ac406a0c5f427e774c75f2e6") @@ -524,90 +532,97 @@ public open class CfnEventSourceMapping( Unit = selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigProperty(`value`)) /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. */ public open fun sourceAccessConfigurations(): Any? = unwrap(this).getSourceAccessConfigurations() /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. */ public open fun sourceAccessConfigurations(`value`: IResolvable) { unwrap(this).setSourceAccessConfigurations(`value`.let(IResolvable.Companion::unwrap)) } /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. */ public open fun sourceAccessConfigurations(`value`: List) { unwrap(this).setSourceAccessConfigurations(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. */ public open fun sourceAccessConfigurations(vararg `value`: Any): Unit = sourceAccessConfigurations(`value`.toList()) /** * The position in a stream from which to start reading. - * - * Required for Amazon Kinesis and Amazon DynamoDB. */ public open fun startingPosition(): String? = unwrap(this).getStartingPosition() /** * The position in a stream from which to start reading. - * - * Required for Amazon Kinesis and Amazon DynamoDB. */ public open fun startingPosition(`value`: String) { unwrap(this).setStartingPosition(`value`) } /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. */ public open fun startingPositionTimestamp(): Number? = unwrap(this).getStartingPositionTimestamp() /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. */ public open fun startingPositionTimestamp(`value`: Number) { unwrap(this).setStartingPositionTimestamp(`value`) } /** - * The name of the Kafka topic. + * + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * (Kafka) A list of Kafka topics. */ public open fun topics(): List = unwrap(this).getTopics() ?: emptyList() /** - * The name of the Kafka topic. + * (Kafka) A list of Kafka topics. */ public open fun topics(`value`: List) { unwrap(this).setTopics(`value`) } /** - * The name of the Kafka topic. + * (Kafka) A list of Kafka topics. */ public open fun topics(vararg `value`: String): Unit = topics(`value`.toList()) /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB - * and Kinesis Streams event sources. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. */ public open fun tumblingWindowInSeconds(): Number? = unwrap(this).getTumblingWindowInSeconds() /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB - * and Kinesis Streams event sources. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. */ public open fun tumblingWindowInSeconds(`value`: Number) { unwrap(this).setTumblingWindowInSeconds(`value`) @@ -619,33 +634,30 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ public fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: IResolvable) /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ public fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: AmazonManagedKafkaEventSourceConfigProperty) /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a18729a436a40c6ab3d5a14bf28967743c4f06ebf58a4c3399a07176c1be7fa") @@ -653,80 +665,54 @@ public open class CfnEventSourceMapping( fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: AmazonManagedKafkaEventSourceConfigProperty.Builder.() -> Unit) /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. - * - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * The maximum number of items to retrieve in a single batch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize) - * @param batchSize The maximum number of records in each batch that Lambda pulls from your - * stream or queue and sends to your function. + * @param batchSize The maximum number of items to retrieve in a single batch. */ public fun batchSize(batchSize: Number) /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ public fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: Boolean) /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ public fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: IResolvable) /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ public fun destinationConfig(destinationConfig: IResolvable) /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ public fun destinationConfig(destinationConfig: DestinationConfigProperty) /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -734,30 +720,27 @@ public open class CfnEventSourceMapping( public fun destinationConfig(destinationConfig: DestinationConfigProperty.Builder.() -> Unit) /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ public fun documentDbEventSourceConfig(documentDbEventSourceConfig: IResolvable) /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ public fun documentDbEventSourceConfig(documentDbEventSourceConfig: DocumentDBEventSourceConfigProperty) /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d3b3fe70f00ec954d7ece91179c11a46159eb84371098c41dbdad143a0d405a0") @@ -765,261 +748,190 @@ public open class CfnEventSourceMapping( fun documentDbEventSourceConfig(documentDbEventSourceConfig: DocumentDBEventSourceConfigProperty.Builder.() -> Unit) /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. + * @param enabled Disables the event source mapping to pause polling and invocation. */ public fun enabled(enabled: Boolean) /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. + * @param enabled Disables the event source mapping to pause polling and invocation. */ public fun enabled(enabled: IResolvable) /** * The Amazon Resource Name (ARN) of the event source. * - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn) * @param eventSourceArn The Amazon Resource Name (ARN) of the event source. */ public fun eventSourceArn(eventSourceArn: String) /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ public fun filterCriteria(filterCriteria: IResolvable) /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ public fun filterCriteria(filterCriteria: FilterCriteriaProperty) /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("916dc1790836cb4d0d61fbac02ff601607532a144ed6fba129679e6bf27e1e3c") public fun filterCriteria(filterCriteria: FilterCriteriaProperty.Builder.() -> Unit) /** - * The name or ARN of the Lambda function. - * - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, - * it's limited to 64 characters in length. + * The name of the Lambda function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname) - * @param functionName The name or ARN of the Lambda function. + * @param functionName The name of the Lambda function. */ public fun functionName(functionName: String) /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ public fun functionResponseTypes(functionResponseTypes: List) /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ public fun functionResponseTypes(vararg functionResponseTypes: String) /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. - * - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 + * The Amazon Resource Name (ARN) of the KMS key. * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds) - * @param maximumBatchingWindowInSeconds The maximum amount of time, in seconds, that Lambda - * spends gathering records before invoking the function. + * @param maximumBatchingWindowInSeconds (Streams) The maximum amount of time to gather records + * before invoking the function, in seconds. */ public fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. - * - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and - * greater than -1 fall within the parameter's absolute range, they are not allowed - * + * (Streams) The maximum age of a record that Lambda sends to a function for processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds) - * @param maximumRecordAgeInSeconds (Kinesis and DynamoDB Streams only) Discard records older - * than the specified age. + * @param maximumRecordAgeInSeconds (Streams) The maximum age of a record that Lambda sends to a + * function for processing. */ public fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. - * - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * (Streams) The maximum number of times to retry when the function returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts) - * @param maximumRetryAttempts (Kinesis and DynamoDB Streams only) Discard records after the - * specified number of retries. + * @param maximumRetryAttempts (Streams) The maximum number of times to retry when the function + * returns an error. */ public fun maximumRetryAttempts(maximumRetryAttempts: Number) /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. - * - * The default value is 1. + * (Streams) The number of batches to process from each shard concurrently. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor) - * @param parallelizationFactor (Kinesis and DynamoDB Streams only) The number of batches to - * process concurrently from each shard. + * @param parallelizationFactor (Streams) The number of batches to process from each shard + * concurrently. */ public fun parallelizationFactor(parallelizationFactor: Number) /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ public fun queues(queues: List) /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ public fun queues(vararg queues: String) /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ public fun scalingConfig(scalingConfig: IResolvable) /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ public fun scalingConfig(scalingConfig: ScalingConfigProperty) /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1ef3b9f703fbf78497da8a3697e58d20913edff366643d85f736a432c376080e") public fun scalingConfig(scalingConfig: ScalingConfigProperty.Builder.() -> Unit) /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ public fun selfManagedEventSource(selfManagedEventSource: IResolvable) /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ public fun selfManagedEventSource(selfManagedEventSource: SelfManagedEventSourceProperty) /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("338dd05b1ecb9f9b6cac5db40b22f8a8756113fd3faf8ec5704f4aa12283dda4") @@ -1027,29 +939,29 @@ public open class CfnEventSourceMapping( fun selfManagedEventSource(selfManagedEventSource: SelfManagedEventSourceProperty.Builder.() -> Unit) /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ public fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: IResolvable) /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ public fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: SelfManagedKafkaEventSourceConfigProperty) /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1058,86 +970,83 @@ public open class CfnEventSourceMapping( fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: SelfManagedKafkaEventSourceConfigProperty.Builder.() -> Unit) /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(sourceAccessConfigurations: IResolvable) /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(sourceAccessConfigurations: List) /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(vararg sourceAccessConfigurations: Any) /** - * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon - * DynamoDB. + * The position in a stream from which to start reading. * - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition) - * @param startingPosition The position in a stream from which to start reading. Required for - * Amazon Kinesis and Amazon DynamoDB. + * @param startingPosition The position in a stream from which to start reading. */ public fun startingPosition(startingPosition: String) /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. - * - * `StartingPositionTimestamp` cannot be in the future. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp) - * @param startingPositionTimestamp With `StartingPosition` set to `AT_TIMESTAMP` , the time - * from which to start reading, in Unix time seconds. + * @param startingPositionTimestamp With StartingPosition set to AT_TIMESTAMP, the time from + * which to start reading, in Unix time seconds. */ public fun startingPositionTimestamp(startingPositionTimestamp: Number) /** - * The name of the Kafka topic. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + * @param tags + */ + public fun tags(tags: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + * @param tags + */ + public fun tags(vararg tags: CfnTag) + + /** + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ public fun topics(topics: List) /** - * The name of the Kafka topic. + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ public fun topics(vararg topics: String) /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for - * DynamoDB and Kinesis Streams event sources. - * - * A value of 0 seconds indicates no tumbling window. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds) - * @param tumblingWindowInSeconds (Kinesis and DynamoDB Streams only) The duration in seconds of - * a processing window for DynamoDB and Kinesis Streams event sources. + * @param tumblingWindowInSeconds (Streams) Tumbling window (non-overlapping time window) + * duration to perform aggregations. */ public fun tumblingWindowInSeconds(tumblingWindowInSeconds: Number) } @@ -1150,12 +1059,11 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.Builder.create(scope, id) /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ override fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: IResolvable) { @@ -1163,12 +1071,11 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ override fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: AmazonManagedKafkaEventSourceConfigProperty) { @@ -1176,12 +1083,11 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9a18729a436a40c6ab3d5a14bf28967743c4f06ebf58a4c3399a07176c1be7fa") @@ -1191,64 +1097,42 @@ public open class CfnEventSourceMapping( amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigProperty(amazonManagedKafkaEventSourceConfig)) /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. - * - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * The maximum number of items to retrieve in a single batch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize) - * @param batchSize The maximum number of records in each batch that Lambda pulls from your - * stream or queue and sends to your function. + * @param batchSize The maximum number of items to retrieve in a single batch. */ override fun batchSize(batchSize: Number) { cdkBuilder.batchSize(batchSize) } /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ override fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: Boolean) { cdkBuilder.bisectBatchOnFunctionError(bisectBatchOnFunctionError) } /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ override fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: IResolvable) { cdkBuilder.bisectBatchOnFunctionError(bisectBatchOnFunctionError.let(IResolvable.Companion::unwrap)) } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ override fun destinationConfig(destinationConfig: IResolvable) { @@ -1256,12 +1140,10 @@ public open class CfnEventSourceMapping( } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ override fun destinationConfig(destinationConfig: DestinationConfigProperty) { @@ -1269,12 +1151,10 @@ public open class CfnEventSourceMapping( } /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1283,22 +1163,20 @@ public open class CfnEventSourceMapping( Unit = destinationConfig(DestinationConfigProperty(destinationConfig)) /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ override fun documentDbEventSourceConfig(documentDbEventSourceConfig: IResolvable) { cdkBuilder.documentDbEventSourceConfig(documentDbEventSourceConfig.let(IResolvable.Companion::unwrap)) } /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ override fun documentDbEventSourceConfig(documentDbEventSourceConfig: DocumentDBEventSourceConfigProperty) { @@ -1306,11 +1184,10 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d3b3fe70f00ec954d7ece91179c11a46159eb84371098c41dbdad143a0d405a0") @@ -1320,28 +1197,20 @@ public open class CfnEventSourceMapping( documentDbEventSourceConfig(DocumentDBEventSourceConfigProperty(documentDbEventSourceConfig)) /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. + * @param enabled Disables the event source mapping to pause polling and invocation. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. + * @param enabled Disables the event source mapping to pause polling and invocation. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -1350,15 +1219,6 @@ public open class CfnEventSourceMapping( /** * The Amazon Resource Name (ARN) of the event source. * - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn) * @param eventSourceArn The Amazon Resource Name (ARN) of the event source. */ @@ -1367,45 +1227,30 @@ public open class CfnEventSourceMapping( } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ override fun filterCriteria(filterCriteria: IResolvable) { cdkBuilder.filterCriteria(filterCriteria.let(IResolvable.Companion::unwrap)) } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ override fun filterCriteria(filterCriteria: FilterCriteriaProperty) { cdkBuilder.filterCriteria(filterCriteria.let(FilterCriteriaProperty.Companion::unwrap)) } /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. + * @param filterCriteria The filter criteria to control event filtering. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("916dc1790836cb4d0d61fbac02ff601607532a144ed6fba129679e6bf27e1e3c") @@ -1413,172 +1258,132 @@ public open class CfnEventSourceMapping( filterCriteria(FilterCriteriaProperty(filterCriteria)) /** - * The name or ARN of the Lambda function. - * - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, - * it's limited to 64 characters in length. + * The name of the Lambda function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname) - * @param functionName The name or ARN of the Lambda function. + * @param functionName The name of the Lambda function. */ override fun functionName(functionName: String) { cdkBuilder.functionName(functionName) } /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ override fun functionResponseTypes(functionResponseTypes: List) { cdkBuilder.functionResponseTypes(functionResponseTypes) } /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ override fun functionResponseTypes(vararg functionResponseTypes: String): Unit = functionResponseTypes(functionResponseTypes.toList()) /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. - * - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 + * The Amazon Resource Name (ARN) of the KMS key. * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds) - * @param maximumBatchingWindowInSeconds The maximum amount of time, in seconds, that Lambda - * spends gathering records before invoking the function. + * @param maximumBatchingWindowInSeconds (Streams) The maximum amount of time to gather records + * before invoking the function, in seconds. */ override fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) { cdkBuilder.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds) } /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. - * - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and - * greater than -1 fall within the parameter's absolute range, they are not allowed - * + * (Streams) The maximum age of a record that Lambda sends to a function for processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds) - * @param maximumRecordAgeInSeconds (Kinesis and DynamoDB Streams only) Discard records older - * than the specified age. + * @param maximumRecordAgeInSeconds (Streams) The maximum age of a record that Lambda sends to a + * function for processing. */ override fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) { cdkBuilder.maximumRecordAgeInSeconds(maximumRecordAgeInSeconds) } /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. - * - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * (Streams) The maximum number of times to retry when the function returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts) - * @param maximumRetryAttempts (Kinesis and DynamoDB Streams only) Discard records after the - * specified number of retries. + * @param maximumRetryAttempts (Streams) The maximum number of times to retry when the function + * returns an error. */ override fun maximumRetryAttempts(maximumRetryAttempts: Number) { cdkBuilder.maximumRetryAttempts(maximumRetryAttempts) } /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. - * - * The default value is 1. + * (Streams) The number of batches to process from each shard concurrently. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor) - * @param parallelizationFactor (Kinesis and DynamoDB Streams only) The number of batches to - * process concurrently from each shard. + * @param parallelizationFactor (Streams) The number of batches to process from each shard + * concurrently. */ override fun parallelizationFactor(parallelizationFactor: Number) { cdkBuilder.parallelizationFactor(parallelizationFactor) } /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ override fun queues(queues: List) { cdkBuilder.queues(queues) } /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ override fun queues(vararg queues: String): Unit = queues(queues.toList()) /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ override fun scalingConfig(scalingConfig: IResolvable) { cdkBuilder.scalingConfig(scalingConfig.let(IResolvable.Companion::unwrap)) } /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ override fun scalingConfig(scalingConfig: ScalingConfigProperty) { cdkBuilder.scalingConfig(scalingConfig.let(ScalingConfigProperty.Companion::unwrap)) } /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. + * @param scalingConfig The scaling configuration for the event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1ef3b9f703fbf78497da8a3697e58d20913edff366643d85f736a432c376080e") @@ -1586,30 +1391,33 @@ public open class CfnEventSourceMapping( scalingConfig(ScalingConfigProperty(scalingConfig)) /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ override fun selfManagedEventSource(selfManagedEventSource: IResolvable) { cdkBuilder.selfManagedEventSource(selfManagedEventSource.let(IResolvable.Companion::unwrap)) } /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ override fun selfManagedEventSource(selfManagedEventSource: SelfManagedEventSourceProperty) { cdkBuilder.selfManagedEventSource(selfManagedEventSource.let(SelfManagedEventSourceProperty.Companion::unwrap)) } /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("338dd05b1ecb9f9b6cac5db40b22f8a8756113fd3faf8ec5704f4aa12283dda4") @@ -1618,10 +1426,10 @@ public open class CfnEventSourceMapping( Unit = selfManagedEventSource(SelfManagedEventSourceProperty(selfManagedEventSource)) /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ override fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: IResolvable) { @@ -1629,10 +1437,10 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ override @@ -1641,10 +1449,10 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1655,97 +1463,96 @@ public open class CfnEventSourceMapping( selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigProperty(selfManagedKafkaEventSourceConfig)) /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(sourceAccessConfigurations: IResolvable) { cdkBuilder.sourceAccessConfigurations(sourceAccessConfigurations.let(IResolvable.Companion::unwrap)) } /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(sourceAccessConfigurations: List) { cdkBuilder.sourceAccessConfigurations(sourceAccessConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(vararg sourceAccessConfigurations: Any): Unit = sourceAccessConfigurations(sourceAccessConfigurations.toList()) /** - * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon - * DynamoDB. + * The position in a stream from which to start reading. * - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition) - * @param startingPosition The position in a stream from which to start reading. Required for - * Amazon Kinesis and Amazon DynamoDB. + * @param startingPosition The position in a stream from which to start reading. */ override fun startingPosition(startingPosition: String) { cdkBuilder.startingPosition(startingPosition) } /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. - * - * `StartingPositionTimestamp` cannot be in the future. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp) - * @param startingPositionTimestamp With `StartingPosition` set to `AT_TIMESTAMP` , the time - * from which to start reading, in Unix time seconds. + * @param startingPositionTimestamp With StartingPosition set to AT_TIMESTAMP, the time from + * which to start reading, in Unix time seconds. */ override fun startingPositionTimestamp(startingPositionTimestamp: Number) { cdkBuilder.startingPositionTimestamp(startingPositionTimestamp) } /** - * The name of the Kafka topic. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + * @param tags + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + * @param tags + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ override fun topics(topics: List) { cdkBuilder.topics(topics) } /** - * The name of the Kafka topic. + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ override fun topics(vararg topics: String): Unit = topics(topics.toList()) /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for - * DynamoDB and Kinesis Streams event sources. - * - * A value of 0 seconds indicates no tumbling window. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds) - * @param tumblingWindowInSeconds (Kinesis and DynamoDB Streams only) The duration in seconds of - * a processing window for DynamoDB and Kinesis Streams event sources. + * @param tumblingWindowInSeconds (Streams) Tumbling window (non-overlapping time window) + * duration to perform aggregations. */ override fun tumblingWindowInSeconds(tumblingWindowInSeconds: Number) { cdkBuilder.tumblingWindowInSeconds(tumblingWindowInSeconds) @@ -1777,8 +1584,7 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * Example: * @@ -1796,12 +1602,7 @@ public open class CfnEventSourceMapping( */ public interface AmazonManagedKafkaEventSourceConfigProperty { /** - * The identifier for the Kafka consumer group to join. - * - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) . + * The identifier for the Kafka Consumer Group to join. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-consumergroupid) */ @@ -1813,12 +1614,7 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param consumerGroupId The identifier for the Kafka consumer group to join. - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * @param consumerGroupId The identifier for the Kafka Consumer Group to join. */ public fun consumerGroupId(consumerGroupId: String) } @@ -1830,12 +1626,7 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty.builder() /** - * @param consumerGroupId The identifier for the Kafka consumer group to join. - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * @param consumerGroupId The identifier for the Kafka Consumer Group to join. */ override fun consumerGroupId(consumerGroupId: String) { cdkBuilder.consumerGroupId(consumerGroupId) @@ -1848,15 +1639,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty, - ) : CdkObject(cdkObject), AmazonManagedKafkaEventSourceConfigProperty { + ) : CdkObject(cdkObject), + AmazonManagedKafkaEventSourceConfigProperty { /** - * The identifier for the Kafka consumer group to join. - * - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * The identifier for the Kafka Consumer Group to join. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-consumergroupid) */ @@ -1902,7 +1688,7 @@ public open class CfnEventSourceMapping( */ public interface DestinationConfigProperty { /** - * The destination configuration for failed invocations. + * A destination for records of invocations that failed processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure) */ @@ -1914,17 +1700,17 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ public fun onFailure(onFailure: IResolvable) /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ public fun onFailure(onFailure: OnFailureProperty) /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("284a94b85ae136287cec3526f52f06be29bceaf51b2211a83f73e8de76313ce2") @@ -1938,21 +1724,21 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DestinationConfigProperty.builder() /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ override fun onFailure(onFailure: IResolvable) { cdkBuilder.onFailure(onFailure.let(IResolvable.Companion::unwrap)) } /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ override fun onFailure(onFailure: OnFailureProperty) { cdkBuilder.onFailure(onFailure.let(OnFailureProperty.Companion::unwrap)) } /** - * @param onFailure The destination configuration for failed invocations. + * @param onFailure A destination for records of invocations that failed processing. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("284a94b85ae136287cec3526f52f06be29bceaf51b2211a83f73e8de76313ce2") @@ -1966,9 +1752,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DestinationConfigProperty, - ) : CdkObject(cdkObject), DestinationConfigProperty { + ) : CdkObject(cdkObject), + DestinationConfigProperty { /** - * The destination configuration for failed invocations. + * A destination for records of invocations that failed processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure) */ @@ -1994,7 +1781,7 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * Example: * @@ -2014,27 +1801,24 @@ public open class CfnEventSourceMapping( */ public interface DocumentDBEventSourceConfigProperty { /** - * The name of the collection to consume within the database. - * - * If you do not specify a collection, Lambda consumes all collections. + * The collection name to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-collectionname) */ public fun collectionName(): String? = unwrap(this).getCollectionName() /** - * The name of the database to consume within the DocumentDB cluster. + * The database name to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-databasename) */ public fun databaseName(): String? = unwrap(this).getDatabaseName() /** - * Determines what DocumentDB sends to your event stream during document update operations. + * Include full document in change stream response. * - * If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of - * the entire document. Otherwise, DocumentDB sends only a partial document that contains the - * changes. + * The default option will only send the changes made to documents to Lambda. If you want the + * complete document sent to Lambda, set this to UpdateLookup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-fulldocument) */ @@ -2046,22 +1830,19 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param collectionName The name of the collection to consume within the database. - * If you do not specify a collection, Lambda consumes all collections. + * @param collectionName The collection name to connect to. */ public fun collectionName(collectionName: String) /** - * @param databaseName The name of the database to consume within the DocumentDB cluster. + * @param databaseName The database name to connect to. */ public fun databaseName(databaseName: String) /** - * @param fullDocument Determines what DocumentDB sends to your event stream during document - * update operations. - * If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy - * of the entire document. Otherwise, DocumentDB sends only a partial document that contains the - * changes. + * @param fullDocument Include full document in change stream response. + * The default option will only send the changes made to documents to Lambda. If you want the + * complete document sent to Lambda, set this to UpdateLookup. */ public fun fullDocument(fullDocument: String) } @@ -2073,26 +1854,23 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.builder() /** - * @param collectionName The name of the collection to consume within the database. - * If you do not specify a collection, Lambda consumes all collections. + * @param collectionName The collection name to connect to. */ override fun collectionName(collectionName: String) { cdkBuilder.collectionName(collectionName) } /** - * @param databaseName The name of the database to consume within the DocumentDB cluster. + * @param databaseName The database name to connect to. */ override fun databaseName(databaseName: String) { cdkBuilder.databaseName(databaseName) } /** - * @param fullDocument Determines what DocumentDB sends to your event stream during document - * update operations. - * If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy - * of the entire document. Otherwise, DocumentDB sends only a partial document that contains the - * changes. + * @param fullDocument Include full document in change stream response. + * The default option will only send the changes made to documents to Lambda. If you want the + * complete document sent to Lambda, set this to UpdateLookup. */ override fun fullDocument(fullDocument: String) { cdkBuilder.fullDocument(fullDocument) @@ -2105,29 +1883,27 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DocumentDBEventSourceConfigProperty, - ) : CdkObject(cdkObject), DocumentDBEventSourceConfigProperty { + ) : CdkObject(cdkObject), + DocumentDBEventSourceConfigProperty { /** - * The name of the collection to consume within the database. - * - * If you do not specify a collection, Lambda consumes all collections. + * The collection name to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-collectionname) */ override fun collectionName(): String? = unwrap(this).getCollectionName() /** - * The name of the database to consume within the DocumentDB cluster. + * The database name to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-databasename) */ override fun databaseName(): String? = unwrap(this).getDatabaseName() /** - * Determines what DocumentDB sends to your event stream during document update operations. + * Include full document in change stream response. * - * If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy - * of the entire document. Otherwise, DocumentDB sends only a partial document that contains the - * changes. + * The default option will only send the changes made to documents to Lambda. If you want the + * complete document sent to Lambda, set this to UpdateLookup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-fulldocument) */ @@ -2154,8 +1930,7 @@ public open class CfnEventSourceMapping( } /** - * The list of bootstrap servers for your Kafka brokers in the following format: - * `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * The endpoints used by AWS Lambda to access a self-managed event source. * * Example: * @@ -2172,8 +1947,7 @@ public open class CfnEventSourceMapping( */ public interface EndpointsProperty { /** - * The list of bootstrap servers for your Kafka brokers in the following format: - * `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * A list of Kafka server endpoints. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html#cfn-lambda-eventsourcemapping-endpoints-kafkabootstrapservers) */ @@ -2186,14 +1960,12 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param kafkaBootstrapServers The list of bootstrap servers for your Kafka brokers in the - * following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param kafkaBootstrapServers A list of Kafka server endpoints. */ public fun kafkaBootstrapServers(kafkaBootstrapServers: List) /** - * @param kafkaBootstrapServers The list of bootstrap servers for your Kafka brokers in the - * following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param kafkaBootstrapServers A list of Kafka server endpoints. */ public fun kafkaBootstrapServers(vararg kafkaBootstrapServers: String) } @@ -2204,16 +1976,14 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.EndpointsProperty.builder() /** - * @param kafkaBootstrapServers The list of bootstrap servers for your Kafka brokers in the - * following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param kafkaBootstrapServers A list of Kafka server endpoints. */ override fun kafkaBootstrapServers(kafkaBootstrapServers: List) { cdkBuilder.kafkaBootstrapServers(kafkaBootstrapServers) } /** - * @param kafkaBootstrapServers The list of bootstrap servers for your Kafka brokers in the - * following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param kafkaBootstrapServers A list of Kafka server endpoints. */ override fun kafkaBootstrapServers(vararg kafkaBootstrapServers: String): Unit = kafkaBootstrapServers(kafkaBootstrapServers.toList()) @@ -2225,10 +1995,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.EndpointsProperty, - ) : CdkObject(cdkObject), EndpointsProperty { + ) : CdkObject(cdkObject), + EndpointsProperty { /** - * The list of bootstrap servers for your Kafka brokers in the following format: - * `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * A list of Kafka server endpoints. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html#cfn-lambda-eventsourcemapping-endpoints-kafkabootstrapservers) */ @@ -2255,7 +2025,7 @@ public open class CfnEventSourceMapping( } /** - * An object that contains the filters for an event source. + * The filter criteria to control event filtering. * * Example: * @@ -2274,7 +2044,7 @@ public open class CfnEventSourceMapping( */ public interface FilterCriteriaProperty { /** - * A list of filters. + * List of filters of this FilterCriteria. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html#cfn-lambda-eventsourcemapping-filtercriteria-filters) */ @@ -2286,17 +2056,17 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ public fun filters(filters: IResolvable) /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ public fun filters(filters: List) /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ public fun filters(vararg filters: Any) } @@ -2308,21 +2078,21 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.FilterCriteriaProperty.builder() /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ override fun filters(filters: IResolvable) { cdkBuilder.filters(filters.let(IResolvable.Companion::unwrap)) } /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ override fun filters(filters: List) { cdkBuilder.filters(filters.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param filters A list of filters. + * @param filters List of filters of this FilterCriteria. */ override fun filters(vararg filters: Any): Unit = filters(filters.toList()) @@ -2333,9 +2103,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.FilterCriteriaProperty, - ) : CdkObject(cdkObject), FilterCriteriaProperty { + ) : CdkObject(cdkObject), + FilterCriteriaProperty { /** - * A list of filters. + * List of filters of this FilterCriteria. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html#cfn-lambda-eventsourcemapping-filtercriteria-filters) */ @@ -2361,7 +2132,7 @@ public open class CfnEventSourceMapping( } /** - * A structure within a `FilterCriteria` object that defines an event filtering pattern. + * The filter object that defines parameters for ESM filtering. * * Example: * @@ -2378,11 +2149,7 @@ public open class CfnEventSourceMapping( */ public interface FilterProperty { /** - * A filter pattern. - * - * For more information on the syntax of a filter pattern, see [Filter rule - * syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax) - * . + * The filter pattern that defines which events should be passed for invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html#cfn-lambda-eventsourcemapping-filter-pattern) */ @@ -2394,10 +2161,8 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param pattern A filter pattern. - * For more information on the syntax of a filter pattern, see [Filter rule - * syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax) - * . + * @param pattern The filter pattern that defines which events should be passed for + * invocations. */ public fun pattern(pattern: String) } @@ -2408,10 +2173,8 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.FilterProperty.builder() /** - * @param pattern A filter pattern. - * For more information on the syntax of a filter pattern, see [Filter rule - * syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax) - * . + * @param pattern The filter pattern that defines which events should be passed for + * invocations. */ override fun pattern(pattern: String) { cdkBuilder.pattern(pattern) @@ -2424,13 +2187,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** - * A filter pattern. - * - * For more information on the syntax of a filter pattern, see [Filter rule - * syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax) - * . + * The filter pattern that defines which events should be passed for invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html#cfn-lambda-eventsourcemapping-filter-pattern) */ @@ -2456,7 +2216,7 @@ public open class CfnEventSourceMapping( } /** - * A destination for events that failed processing. + * A destination for records of invocations that failed processing. * * Example: * @@ -2475,22 +2235,6 @@ public open class CfnEventSourceMapping( /** * The Amazon Resource Name (ARN) of the destination resource. * - * To retain records of [asynchronous - * invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) - * , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon - * EventBridge event bus as the destination. - * - * To retain records of failed invocations from [Kinesis and DynamoDB event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations) - * , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. - * - * To retain records of failed invocations from [self-managed - * Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) - * or [Amazon - * MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination) - * , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the - * destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination) */ public fun destination(): String? = unwrap(this).getDestination() @@ -2502,21 +2246,6 @@ public open class CfnEventSourceMapping( public interface Builder { /** * @param destination The Amazon Resource Name (ARN) of the destination resource. - * To retain records of [asynchronous - * invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) - * , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon - * EventBridge event bus as the destination. - * - * To retain records of failed invocations from [Kinesis and DynamoDB event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations) - * , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. - * - * To retain records of failed invocations from [self-managed - * Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) - * or [Amazon - * MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination) - * , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the - * destination. */ public fun destination(destination: String) } @@ -2528,21 +2257,6 @@ public open class CfnEventSourceMapping( /** * @param destination The Amazon Resource Name (ARN) of the destination resource. - * To retain records of [asynchronous - * invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) - * , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon - * EventBridge event bus as the destination. - * - * To retain records of failed invocations from [Kinesis and DynamoDB event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations) - * , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. - * - * To retain records of failed invocations from [self-managed - * Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) - * or [Amazon - * MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination) - * , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the - * destination. */ override fun destination(destination: String) { cdkBuilder.destination(destination) @@ -2555,26 +2269,11 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.OnFailureProperty, - ) : CdkObject(cdkObject), OnFailureProperty { + ) : CdkObject(cdkObject), + OnFailureProperty { /** * The Amazon Resource Name (ARN) of the destination resource. * - * To retain records of [asynchronous - * invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) - * , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon - * EventBridge event bus as the destination. - * - * To retain records of failed invocations from [Kinesis and DynamoDB event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations) - * , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. - * - * To retain records of failed invocations from [self-managed - * Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) - * or [Amazon - * MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination) - * , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the - * destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination) */ override fun destination(): String? = unwrap(this).getDestination() @@ -2599,9 +2298,7 @@ public open class CfnEventSourceMapping( } /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * To remove the configuration, pass an empty value. + * The scaling configuration for the event source. * * Example: * @@ -2618,7 +2315,7 @@ public open class CfnEventSourceMapping( */ public interface ScalingConfigProperty { /** - * Limits the number of concurrent instances that the Amazon SQS event source can invoke. + * The maximum number of concurrent functions that an event source can invoke. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html#cfn-lambda-eventsourcemapping-scalingconfig-maximumconcurrency) */ @@ -2630,8 +2327,8 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param maximumConcurrency Limits the number of concurrent instances that the Amazon SQS - * event source can invoke. + * @param maximumConcurrency The maximum number of concurrent functions that an event source + * can invoke. */ public fun maximumConcurrency(maximumConcurrency: Number) } @@ -2643,8 +2340,8 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.ScalingConfigProperty.builder() /** - * @param maximumConcurrency Limits the number of concurrent instances that the Amazon SQS - * event source can invoke. + * @param maximumConcurrency The maximum number of concurrent functions that an event source + * can invoke. */ override fun maximumConcurrency(maximumConcurrency: Number) { cdkBuilder.maximumConcurrency(maximumConcurrency) @@ -2657,9 +2354,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.ScalingConfigProperty, - ) : CdkObject(cdkObject), ScalingConfigProperty { + ) : CdkObject(cdkObject), + ScalingConfigProperty { /** - * Limits the number of concurrent instances that the Amazon SQS event source can invoke. + * The maximum number of concurrent functions that an event source can invoke. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html#cfn-lambda-eventsourcemapping-scalingconfig-maximumconcurrency) */ @@ -2685,7 +2383,7 @@ public open class CfnEventSourceMapping( } /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * Example: * @@ -2705,8 +2403,7 @@ public open class CfnEventSourceMapping( */ public interface SelfManagedEventSourceProperty { /** - * The list of bootstrap servers for your Kafka brokers in the following format: - * `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * The endpoints used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource-endpoints) */ @@ -2718,20 +2415,17 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ public fun endpoints(endpoints: IResolvable) /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ public fun endpoints(endpoints: EndpointsProperty) /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5e698f9f1f113c096b2840307c27cfc7d5cb23bd03b30dc2ed0d25276ace3f91") @@ -2745,24 +2439,21 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SelfManagedEventSourceProperty.builder() /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ override fun endpoints(endpoints: IResolvable) { cdkBuilder.endpoints(endpoints.let(IResolvable.Companion::unwrap)) } /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ override fun endpoints(endpoints: EndpointsProperty) { cdkBuilder.endpoints(endpoints.let(EndpointsProperty.Companion::unwrap)) } /** - * @param endpoints The list of bootstrap servers for your Kafka brokers in the following - * format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * @param endpoints The endpoints used by AWS Lambda to access a self-managed event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5e698f9f1f113c096b2840307c27cfc7d5cb23bd03b30dc2ed0d25276ace3f91") @@ -2776,10 +2467,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SelfManagedEventSourceProperty, - ) : CdkObject(cdkObject), SelfManagedEventSourceProperty { + ) : CdkObject(cdkObject), + SelfManagedEventSourceProperty { /** - * The list of bootstrap servers for your Kafka brokers in the following format: - * `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` . + * The endpoints used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource-endpoints) */ @@ -2805,7 +2496,7 @@ public open class CfnEventSourceMapping( } /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * Example: * @@ -2823,12 +2514,7 @@ public open class CfnEventSourceMapping( */ public interface SelfManagedKafkaEventSourceConfigProperty { /** - * The identifier for the Kafka consumer group to join. - * - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) . + * The identifier for the Kafka Consumer Group to join. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-consumergroupid) */ @@ -2840,12 +2526,7 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param consumerGroupId The identifier for the Kafka consumer group to join. - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * @param consumerGroupId The identifier for the Kafka Consumer Group to join. */ public fun consumerGroupId(consumerGroupId: String) } @@ -2857,12 +2538,7 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty.builder() /** - * @param consumerGroupId The identifier for the Kafka consumer group to join. - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * @param consumerGroupId The identifier for the Kafka Consumer Group to join. */ override fun consumerGroupId(consumerGroupId: String) { cdkBuilder.consumerGroupId(consumerGroupId) @@ -2875,15 +2551,10 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty, - ) : CdkObject(cdkObject), SelfManagedKafkaEventSourceConfigProperty { + ) : CdkObject(cdkObject), + SelfManagedKafkaEventSourceConfigProperty { /** - * The identifier for the Kafka consumer group to join. - * - * The consumer group ID must be unique among all your Kafka event sources. After creating a - * Kafka event source mapping with the consumer group ID specified, you cannot update this value. - * For more information, see [Customizable consumer group - * ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) - * . + * The identifier for the Kafka Consumer Group to join. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-consumergroupid) */ @@ -2910,8 +2581,7 @@ public open class CfnEventSourceMapping( } /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * The configuration used by AWS Lambda to access event source. * * Example: * @@ -2930,42 +2600,14 @@ public open class CfnEventSourceMapping( */ public interface SourceAccessConfigurationProperty { /** - * The type of authentication protocol, VPC components, or virtual host for your event source. - * For example: `"Type":"SASL_SCRAM_512_AUTH"` . - * - * * `BASIC_AUTH` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker - * credentials. - * * `BASIC_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used - * for SASL/PLAIN authentication of your Apache Kafka brokers. - * * `VPC_SUBNET` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda - * connects to these subnets to fetch data from your self-managed Apache Kafka cluster. - * * `VPC_SECURITY_GROUP` – (Self-managed Apache Kafka) The VPC security group used to manage - * access to your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_256_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret - * key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_512_AUTH` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of - * your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka - * brokers. - * * `VIRTUAL_HOST` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda - * uses this RabbitMQ host as the event source. This property cannot be specified in an - * UpdateEventSourceMapping API call. - * * `CLIENT_CERTIFICATE_TLS_AUTH` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager - * ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), - * and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka - * brokers. - * * `SERVER_ROOT_CA_CERTIFICATE` – (Self-managed Apache Kafka) The Secrets Manager ARN of your - * secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache - * Kafka brokers. + * The type of source access configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-type) */ public fun type(): String? = unwrap(this).getType() /** - * The value for your chosen configuration in `Type` . - * - * For example: `"URI": - * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` . + * The URI for the source access configuration resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-uri) */ @@ -2977,38 +2619,12 @@ public open class CfnEventSourceMapping( @CdkDslMarker public interface Builder { /** - * @param type The type of authentication protocol, VPC components, or virtual host for your - * event source. For example: `"Type":"SASL_SCRAM_512_AUTH"` . - * * `BASIC_AUTH` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker - * credentials. - * * `BASIC_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key - * used for SASL/PLAIN authentication of your Apache Kafka brokers. - * * `VPC_SUBNET` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda - * connects to these subnets to fetch data from your self-managed Apache Kafka cluster. - * * `VPC_SECURITY_GROUP` – (Self-managed Apache Kafka) The VPC security group used to manage - * access to your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_256_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your - * secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_512_AUTH` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN - * of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka - * brokers. - * * `VIRTUAL_HOST` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda - * uses this RabbitMQ host as the event source. This property cannot be specified in an - * UpdateEventSourceMapping API call. - * * `CLIENT_CERTIFICATE_TLS_AUTH` – (Amazon MSK, self-managed Apache Kafka) The Secrets - * Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key - * (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your - * MSK/Apache Kafka brokers. - * * `SERVER_ROOT_CA_CERTIFICATE` – (Self-managed Apache Kafka) The Secrets Manager ARN of - * your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your - * Apache Kafka brokers. + * @param type The type of source access configuration. */ public fun type(type: String) /** - * @param uri The value for your chosen configuration in `Type` . - * For example: `"URI": - * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` . + * @param uri The URI for the source access configuration resource. */ public fun uri(uri: String) } @@ -3020,40 +2636,14 @@ public open class CfnEventSourceMapping( software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SourceAccessConfigurationProperty.builder() /** - * @param type The type of authentication protocol, VPC components, or virtual host for your - * event source. For example: `"Type":"SASL_SCRAM_512_AUTH"` . - * * `BASIC_AUTH` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker - * credentials. - * * `BASIC_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key - * used for SASL/PLAIN authentication of your Apache Kafka brokers. - * * `VPC_SUBNET` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda - * connects to these subnets to fetch data from your self-managed Apache Kafka cluster. - * * `VPC_SECURITY_GROUP` – (Self-managed Apache Kafka) The VPC security group used to manage - * access to your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_256_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your - * secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_512_AUTH` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN - * of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka - * brokers. - * * `VIRTUAL_HOST` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda - * uses this RabbitMQ host as the event source. This property cannot be specified in an - * UpdateEventSourceMapping API call. - * * `CLIENT_CERTIFICATE_TLS_AUTH` – (Amazon MSK, self-managed Apache Kafka) The Secrets - * Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key - * (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your - * MSK/Apache Kafka brokers. - * * `SERVER_ROOT_CA_CERTIFICATE` – (Self-managed Apache Kafka) The Secrets Manager ARN of - * your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your - * Apache Kafka brokers. + * @param type The type of source access configuration. */ override fun type(type: String) { cdkBuilder.type(type) } /** - * @param uri The value for your chosen configuration in `Type` . - * For example: `"URI": - * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` . + * @param uri The URI for the source access configuration resource. */ override fun uri(uri: String) { cdkBuilder.uri(uri) @@ -3066,44 +2656,17 @@ public open class CfnEventSourceMapping( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SourceAccessConfigurationProperty, - ) : CdkObject(cdkObject), SourceAccessConfigurationProperty { + ) : CdkObject(cdkObject), + SourceAccessConfigurationProperty { /** - * The type of authentication protocol, VPC components, or virtual host for your event source. - * For example: `"Type":"SASL_SCRAM_512_AUTH"` . - * - * * `BASIC_AUTH` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker - * credentials. - * * `BASIC_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key - * used for SASL/PLAIN authentication of your Apache Kafka brokers. - * * `VPC_SUBNET` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda - * connects to these subnets to fetch data from your self-managed Apache Kafka cluster. - * * `VPC_SECURITY_GROUP` – (Self-managed Apache Kafka) The VPC security group used to manage - * access to your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_256_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your - * secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. - * * `SASL_SCRAM_512_AUTH` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN - * of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka - * brokers. - * * `VIRTUAL_HOST` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda - * uses this RabbitMQ host as the event source. This property cannot be specified in an - * UpdateEventSourceMapping API call. - * * `CLIENT_CERTIFICATE_TLS_AUTH` – (Amazon MSK, self-managed Apache Kafka) The Secrets - * Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key - * (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your - * MSK/Apache Kafka brokers. - * * `SERVER_ROOT_CA_CERTIFICATE` – (Self-managed Apache Kafka) The Secrets Manager ARN of - * your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your - * Apache Kafka brokers. + * The type of source access configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-type) */ override fun type(): String? = unwrap(this).getType() /** - * The value for your chosen configuration in `Type` . - * - * For example: `"URI": - * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` . + * The URI for the source access configuration resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-uri) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMappingProps.kt index 944c1a5032..414cf01a63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnEventSourceMappingProps.kt @@ -2,6 +2,7 @@ package io.cloudshiftdev.awscdk.services.lambda +import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject @@ -49,6 +50,7 @@ import kotlin.jvm.JvmName * .build())) * .build()) * .functionResponseTypes(List.of("functionResponseTypes")) + * .kmsKeyArn("kmsKeyArn") * .maximumBatchingWindowInSeconds(123) * .maximumRecordAgeInSeconds(123) * .maximumRetryAttempts(123) @@ -71,6 +73,10 @@ import kotlin.jvm.JvmName * .build())) * .startingPosition("startingPosition") * .startingPositionTimestamp(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .topics(List.of("topics")) * .tumblingWindowInSeconds(123) * .build(); @@ -80,8 +86,7 @@ import kotlin.jvm.JvmName */ public interface CfnEventSourceMappingProps { /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) */ @@ -89,55 +94,35 @@ public interface CfnEventSourceMappingProps { unwrap(this).getAmazonManagedKafkaEventSourceConfig() /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. - * - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * The maximum number of items to retrieve in a single batch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize) */ public fun batchSize(): Number? = unwrap(this).getBatchSize() /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) */ public fun bisectBatchOnFunctionError(): Any? = unwrap(this).getBisectBatchOnFunctionError() /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) */ public fun destinationConfig(): Any? = unwrap(this).getDestinationConfig() /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) */ public fun documentDbEventSourceConfig(): Any? = unwrap(this).getDocumentDbEventSourceConfig() /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) */ @@ -146,50 +131,26 @@ public interface CfnEventSourceMappingProps { /** * The Amazon Resource Name (ARN) of the event source. * - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn) */ public fun eventSourceArn(): String? = unwrap(this).getEventSourceArn() /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) */ public fun filterCriteria(): Any? = unwrap(this).getFilterCriteria() /** - * The name or ARN of the Lambda function. - * - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, it's - * limited to 64 characters in length. + * The name of the Lambda function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname) */ public fun functionName(): String /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) */ @@ -197,15 +158,15 @@ public interface CfnEventSourceMappingProps { emptyList() /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. + * The Amazon Resource Name (ARN) of the KMS key. * - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 - * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-kmskeyarn) + */ + public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds) */ @@ -213,68 +174,49 @@ public interface CfnEventSourceMappingProps { unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. - * - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and greater - * than -1 fall within the parameter's absolute range, they are not allowed - * + * (Streams) The maximum age of a record that Lambda sends to a function for processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds) */ public fun maximumRecordAgeInSeconds(): Number? = unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. - * - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * (Streams) The maximum number of times to retry when the function returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts) */ public fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. - * - * The default value is 1. + * (Streams) The number of batches to process from each shard concurrently. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor) */ public fun parallelizationFactor(): Number? = unwrap(this).getParallelizationFactor() /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) */ public fun queues(): List = unwrap(this).getQueues() ?: emptyList() /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) */ public fun scalingConfig(): Any? = unwrap(this).getScalingConfig() /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) */ public fun selfManagedEventSource(): Any? = unwrap(this).getSelfManagedEventSource() /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) */ @@ -282,47 +224,43 @@ public interface CfnEventSourceMappingProps { unwrap(this).getSelfManagedKafkaEventSourceConfig() /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) */ public fun sourceAccessConfigurations(): Any? = unwrap(this).getSourceAccessConfigurations() /** - * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon - * DynamoDB. + * The position in a stream from which to start reading. * - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition) */ public fun startingPosition(): String? = unwrap(this).getStartingPosition() /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. - * - * `StartingPositionTimestamp` cannot be in the future. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp) */ public fun startingPositionTimestamp(): Number? = unwrap(this).getStartingPositionTimestamp() /** - * The name of the Kafka topic. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) */ public fun topics(): List = unwrap(this).getTopics() ?: emptyList() /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB - * and Kinesis Streams event sources. - * - * A value of 0 seconds indicates no tumbling window. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds) */ @@ -334,21 +272,21 @@ public interface CfnEventSourceMappingProps { @CdkDslMarker public interface Builder { /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ public fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: IResolvable) /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ public fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty) /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("aee9284c4da4983caa97612e7b01c42241967f360aa7dd95373593dc8311c6aa") @@ -356,53 +294,36 @@ public interface CfnEventSourceMappingProps { fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty.Builder.() -> Unit) /** - * @param batchSize The maximum number of records in each batch that Lambda pulls from your - * stream or queue and sends to your function. - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * @param batchSize The maximum number of items to retrieve in a single batch. */ public fun batchSize(batchSize: Number) /** - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. - * The default value is false. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ public fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: Boolean) /** - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. - * The default value is false. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ public fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: IResolvable) /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ public fun destinationConfig(destinationConfig: IResolvable) /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ public fun destinationConfig(destinationConfig: CfnEventSourceMapping.DestinationConfigProperty) /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -411,21 +332,18 @@ public interface CfnEventSourceMappingProps { fun destinationConfig(destinationConfig: CfnEventSourceMapping.DestinationConfigProperty.Builder.() -> Unit) /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ public fun documentDbEventSourceConfig(documentDbEventSourceConfig: IResolvable) /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ public fun documentDbEventSourceConfig(documentDbEventSourceConfig: CfnEventSourceMapping.DocumentDBEventSourceConfigProperty) /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d09fb314ca9893c0049527cb14bf2c10d2ff9b3b75d94621775da00c0e2ba4e7") @@ -433,53 +351,32 @@ public interface CfnEventSourceMappingProps { fun documentDbEventSourceConfig(documentDbEventSourceConfig: CfnEventSourceMapping.DocumentDBEventSourceConfigProperty.Builder.() -> Unit) /** - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. - * Default: True + * @param enabled Disables the event source mapping to pause polling and invocation. */ public fun enabled(enabled: Boolean) /** - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. - * Default: True + * @param enabled Disables the event source mapping to pause polling and invocation. */ public fun enabled(enabled: IResolvable) /** * @param eventSourceArn The Amazon Resource Name (ARN) of the event source. - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. */ public fun eventSourceArn(eventSourceArn: String) /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ public fun filterCriteria(filterCriteria: IResolvable) /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ public fun filterCriteria(filterCriteria: CfnEventSourceMapping.FilterCriteriaProperty) /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("64d63e409c55293cf7b59494387d9651b3d5c3761ad44584ecbc98ce165317b3") @@ -487,104 +384,71 @@ public interface CfnEventSourceMappingProps { fun filterCriteria(filterCriteria: CfnEventSourceMapping.FilterCriteriaProperty.Builder.() -> Unit) /** - * @param functionName The name or ARN of the Lambda function. - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, - * it's limited to 64 characters in length. + * @param functionName The name of the Lambda function. */ public fun functionName(functionName: String) /** - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. - * Valid Values: `ReportBatchItemFailures` + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ public fun functionResponseTypes(functionResponseTypes: List) /** - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. - * Valid Values: `ReportBatchItemFailures` + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ public fun functionResponseTypes(vararg functionResponseTypes: String) /** - * @param maximumBatchingWindowInSeconds The maximum amount of time, in seconds, that Lambda - * spends gathering records before invoking the function. - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 - * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * @param maximumBatchingWindowInSeconds (Streams) The maximum amount of time to gather records + * before invoking the function, in seconds. */ public fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) /** - * @param maximumRecordAgeInSeconds (Kinesis and DynamoDB Streams only) Discard records older - * than the specified age. - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and - * greater than -1 fall within the parameter's absolute range, they are not allowed + * @param maximumRecordAgeInSeconds (Streams) The maximum age of a record that Lambda sends to a + * function for processing. */ public fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) /** - * @param maximumRetryAttempts (Kinesis and DynamoDB Streams only) Discard records after the - * specified number of retries. - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * @param maximumRetryAttempts (Streams) The maximum number of times to retry when the function + * returns an error. */ public fun maximumRetryAttempts(maximumRetryAttempts: Number) /** - * @param parallelizationFactor (Kinesis and DynamoDB Streams only) The number of batches to - * process concurrently from each shard. - * The default value is 1. + * @param parallelizationFactor (Streams) The number of batches to process from each shard + * concurrently. */ public fun parallelizationFactor(parallelizationFactor: Number) /** - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ public fun queues(queues: List) /** - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ public fun queues(vararg queues: String) /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ public fun scalingConfig(scalingConfig: IResolvable) /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ public fun scalingConfig(scalingConfig: CfnEventSourceMapping.ScalingConfigProperty) /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ac8a6eb426933fb2b88b6b01a6b43a8fc38a35b3ca922d3fffb4555c7fc2d5e") @@ -592,18 +456,21 @@ public interface CfnEventSourceMappingProps { fun scalingConfig(scalingConfig: CfnEventSourceMapping.ScalingConfigProperty.Builder.() -> Unit) /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ public fun selfManagedEventSource(selfManagedEventSource: IResolvable) /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ public fun selfManagedEventSource(selfManagedEventSource: CfnEventSourceMapping.SelfManagedEventSourceProperty) /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("feb957a59dc8c21d665025789b750dee782b2a8aa37584acb897dbc5107c9aea") @@ -611,20 +478,20 @@ public interface CfnEventSourceMappingProps { fun selfManagedEventSource(selfManagedEventSource: CfnEventSourceMapping.SelfManagedEventSourceProperty.Builder.() -> Unit) /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ public fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: IResolvable) /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ public fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty) /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -633,53 +500,55 @@ public interface CfnEventSourceMappingProps { fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty.Builder.() -> Unit) /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(sourceAccessConfigurations: IResolvable) /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(sourceAccessConfigurations: List) /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ public fun sourceAccessConfigurations(vararg sourceAccessConfigurations: Any) /** - * @param startingPosition The position in a stream from which to start reading. Required for - * Amazon Kinesis and Amazon DynamoDB. - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * @param startingPosition The position in a stream from which to start reading. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. */ public fun startingPosition(startingPosition: String) /** - * @param startingPositionTimestamp With `StartingPosition` set to `AT_TIMESTAMP` , the time - * from which to start reading, in Unix time seconds. - * `StartingPositionTimestamp` cannot be in the future. + * @param startingPositionTimestamp With StartingPosition set to AT_TIMESTAMP, the time from + * which to start reading, in Unix time seconds. */ public fun startingPositionTimestamp(startingPositionTimestamp: Number) /** - * @param topics The name of the Kafka topic. + * @param tags the value to be set. + */ + public fun tags(tags: List) + + /** + * @param tags the value to be set. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param topics (Kafka) A list of Kafka topics. */ public fun topics(topics: List) /** - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ public fun topics(vararg topics: String) /** - * @param tumblingWindowInSeconds (Kinesis and DynamoDB Streams only) The duration in seconds of - * a processing window for DynamoDB and Kinesis Streams event sources. - * A value of 0 seconds indicates no tumbling window. + * @param tumblingWindowInSeconds (Streams) Tumbling window (non-overlapping time window) + * duration to perform aggregations. */ public fun tumblingWindowInSeconds(tumblingWindowInSeconds: Number) } @@ -690,8 +559,8 @@ public interface CfnEventSourceMappingProps { software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps.builder() /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ override fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: IResolvable) { @@ -699,8 +568,8 @@ public interface CfnEventSourceMappingProps { } /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ override fun amazonManagedKafkaEventSourceConfig(amazonManagedKafkaEventSourceConfig: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty) { @@ -708,8 +577,8 @@ public interface CfnEventSourceMappingProps { } /** - * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an Amazon - * Managed Streaming for Apache Kafka (Amazon MSK) event source. + * @param amazonManagedKafkaEventSourceConfig Specific configuration settings for an MSK event + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("aee9284c4da4983caa97612e7b01c42241967f360aa7dd95373593dc8311c6aa") @@ -719,45 +588,30 @@ public interface CfnEventSourceMappingProps { amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty(amazonManagedKafkaEventSourceConfig)) /** - * @param batchSize The maximum number of records in each batch that Lambda pulls from your - * stream or queue and sends to your function. - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * @param batchSize The maximum number of items to retrieve in a single batch. */ override fun batchSize(batchSize: Number) { cdkBuilder.batchSize(batchSize) } /** - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. - * The default value is false. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ override fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: Boolean) { cdkBuilder.bisectBatchOnFunctionError(bisectBatchOnFunctionError) } /** - * @param bisectBatchOnFunctionError (Kinesis and DynamoDB Streams only) If the function returns - * an error, split the batch in two and retry. - * The default value is false. + * @param bisectBatchOnFunctionError (Streams) If the function returns an error, split the batch + * in two and retry. */ override fun bisectBatchOnFunctionError(bisectBatchOnFunctionError: IResolvable) { cdkBuilder.bisectBatchOnFunctionError(bisectBatchOnFunctionError.let(IResolvable.Companion::unwrap)) } /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ override fun destinationConfig(destinationConfig: IResolvable) { @@ -765,8 +619,7 @@ public interface CfnEventSourceMappingProps { } /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ override @@ -775,8 +628,7 @@ public interface CfnEventSourceMappingProps { } /** - * @param destinationConfig (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache - * Kafka event sources only) A configuration object that specifies the destination of an event + * @param destinationConfig A configuration object that specifies the destination of an event * after Lambda processes it. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -786,16 +638,14 @@ public interface CfnEventSourceMappingProps { Unit = destinationConfig(CfnEventSourceMapping.DestinationConfigProperty(destinationConfig)) /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ override fun documentDbEventSourceConfig(documentDbEventSourceConfig: IResolvable) { cdkBuilder.documentDbEventSourceConfig(documentDbEventSourceConfig.let(IResolvable.Companion::unwrap)) } /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ override fun documentDbEventSourceConfig(documentDbEventSourceConfig: CfnEventSourceMapping.DocumentDBEventSourceConfigProperty) { @@ -803,8 +653,7 @@ public interface CfnEventSourceMappingProps { } /** - * @param documentDbEventSourceConfig Specific configuration settings for a DocumentDB event - * source. + * @param documentDbEventSourceConfig Document db event source config. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d09fb314ca9893c0049527cb14bf2c10d2ff9b3b75d94621775da00c0e2ba4e7") @@ -814,18 +663,14 @@ public interface CfnEventSourceMappingProps { documentDbEventSourceConfig(CfnEventSourceMapping.DocumentDBEventSourceConfigProperty(documentDbEventSourceConfig)) /** - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. - * Default: True + * @param enabled Disables the event source mapping to pause polling and invocation. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled When true, the event source mapping is active. When false, Lambda pauses - * polling and invocation. - * Default: True + * @param enabled Disables the event source mapping to pause polling and invocation. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -833,44 +678,27 @@ public interface CfnEventSourceMappingProps { /** * @param eventSourceArn The Amazon Resource Name (ARN) of the event source. - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. */ override fun eventSourceArn(eventSourceArn: String) { cdkBuilder.eventSourceArn(eventSourceArn) } /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ override fun filterCriteria(filterCriteria: IResolvable) { cdkBuilder.filterCriteria(filterCriteria.let(IResolvable.Companion::unwrap)) } /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ override fun filterCriteria(filterCriteria: CfnEventSourceMapping.FilterCriteriaProperty) { cdkBuilder.filterCriteria(filterCriteria.let(CfnEventSourceMapping.FilterCriteriaProperty.Companion::unwrap)) } /** - * @param filterCriteria An object that defines the filter criteria that determine whether - * Lambda should process an event. - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * @param filterCriteria The filter criteria to control event filtering. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("64d63e409c55293cf7b59494387d9651b3d5c3761ad44584ecbc98ce165317b3") @@ -879,123 +707,92 @@ public interface CfnEventSourceMappingProps { Unit = filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty(filterCriteria)) /** - * @param functionName The name or ARN of the Lambda function. - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, - * it's limited to 64 characters in length. + * @param functionName The name of the Lambda function. */ override fun functionName(functionName: String) { cdkBuilder.functionName(functionName) } /** - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. - * Valid Values: `ReportBatchItemFailures` + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ override fun functionResponseTypes(functionResponseTypes: List) { cdkBuilder.functionResponseTypes(functionResponseTypes) } /** - * @param functionResponseTypes (Streams and SQS) A list of current response type enums applied - * to the event source mapping. - * Valid Values: `ReportBatchItemFailures` + * @param functionResponseTypes (Streams) A list of response types supported by the function. */ override fun functionResponseTypes(vararg functionResponseTypes: String): Unit = functionResponseTypes(functionResponseTypes.toList()) /** - * @param maximumBatchingWindowInSeconds The maximum amount of time, in seconds, that Lambda - * spends gathering records before invoking the function. - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 - * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * @param maximumBatchingWindowInSeconds (Streams) The maximum amount of time to gather records + * before invoking the function, in seconds. */ override fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) { cdkBuilder.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds) } /** - * @param maximumRecordAgeInSeconds (Kinesis and DynamoDB Streams only) Discard records older - * than the specified age. - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and - * greater than -1 fall within the parameter's absolute range, they are not allowed + * @param maximumRecordAgeInSeconds (Streams) The maximum age of a record that Lambda sends to a + * function for processing. */ override fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) { cdkBuilder.maximumRecordAgeInSeconds(maximumRecordAgeInSeconds) } /** - * @param maximumRetryAttempts (Kinesis and DynamoDB Streams only) Discard records after the - * specified number of retries. - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * @param maximumRetryAttempts (Streams) The maximum number of times to retry when the function + * returns an error. */ override fun maximumRetryAttempts(maximumRetryAttempts: Number) { cdkBuilder.maximumRetryAttempts(maximumRetryAttempts) } /** - * @param parallelizationFactor (Kinesis and DynamoDB Streams only) The number of batches to - * process concurrently from each shard. - * The default value is 1. + * @param parallelizationFactor (Streams) The number of batches to process from each shard + * concurrently. */ override fun parallelizationFactor(parallelizationFactor: Number) { cdkBuilder.parallelizationFactor(parallelizationFactor) } /** - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ override fun queues(queues: List) { cdkBuilder.queues(queues) } /** - * @param queues (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * @param queues (ActiveMQ) A list of ActiveMQ queues. */ override fun queues(vararg queues: String): Unit = queues(queues.toList()) /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ override fun scalingConfig(scalingConfig: IResolvable) { cdkBuilder.scalingConfig(scalingConfig.let(IResolvable.Companion::unwrap)) } /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ override fun scalingConfig(scalingConfig: CfnEventSourceMapping.ScalingConfigProperty) { cdkBuilder.scalingConfig(scalingConfig.let(CfnEventSourceMapping.ScalingConfigProperty.Companion::unwrap)) } /** - * @param scalingConfig (Amazon SQS only) The scaling configuration for the event source. - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * @param scalingConfig The scaling configuration for the event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ac8a6eb426933fb2b88b6b01a6b43a8fc38a35b3ca922d3fffb4555c7fc2d5e") @@ -1004,14 +801,16 @@ public interface CfnEventSourceMappingProps { Unit = scalingConfig(CfnEventSourceMapping.ScalingConfigProperty(scalingConfig)) /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ override fun selfManagedEventSource(selfManagedEventSource: IResolvable) { cdkBuilder.selfManagedEventSource(selfManagedEventSource.let(IResolvable.Companion::unwrap)) } /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ override fun selfManagedEventSource(selfManagedEventSource: CfnEventSourceMapping.SelfManagedEventSourceProperty) { @@ -1019,7 +818,8 @@ public interface CfnEventSourceMappingProps { } /** - * @param selfManagedEventSource The self-managed Apache Kafka cluster for your event source. + * @param selfManagedEventSource The configuration used by AWS Lambda to access a self-managed + * event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("feb957a59dc8c21d665025789b750dee782b2a8aa37584acb897dbc5107c9aea") @@ -1029,7 +829,7 @@ public interface CfnEventSourceMappingProps { selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty(selfManagedEventSource)) /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ override fun selfManagedKafkaEventSourceConfig(selfManagedKafkaEventSourceConfig: IResolvable) { @@ -1037,7 +837,7 @@ public interface CfnEventSourceMappingProps { } /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ override @@ -1046,7 +846,7 @@ public interface CfnEventSourceMappingProps { } /** - * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a self-managed + * @param selfManagedKafkaEventSourceConfig Specific configuration settings for a Self-Managed * Apache Kafka event source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -1057,64 +857,68 @@ public interface CfnEventSourceMappingProps { selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty(selfManagedKafkaEventSourceConfig)) /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(sourceAccessConfigurations: IResolvable) { cdkBuilder.sourceAccessConfigurations(sourceAccessConfigurations.let(IResolvable.Companion::unwrap)) } /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(sourceAccessConfigurations: List) { cdkBuilder.sourceAccessConfigurations(sourceAccessConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param sourceAccessConfigurations An array of the authentication protocol, VPC components, or - * virtual host to secure and define your event source. + * @param sourceAccessConfigurations A list of SourceAccessConfiguration. */ override fun sourceAccessConfigurations(vararg sourceAccessConfigurations: Any): Unit = sourceAccessConfigurations(sourceAccessConfigurations.toList()) /** - * @param startingPosition The position in a stream from which to start reading. Required for - * Amazon Kinesis and Amazon DynamoDB. - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * @param startingPosition The position in a stream from which to start reading. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. */ override fun startingPosition(startingPosition: String) { cdkBuilder.startingPosition(startingPosition) } /** - * @param startingPositionTimestamp With `StartingPosition` set to `AT_TIMESTAMP` , the time - * from which to start reading, in Unix time seconds. - * `StartingPositionTimestamp` cannot be in the future. + * @param startingPositionTimestamp With StartingPosition set to AT_TIMESTAMP, the time from + * which to start reading, in Unix time seconds. */ override fun startingPositionTimestamp(startingPositionTimestamp: Number) { cdkBuilder.startingPositionTimestamp(startingPositionTimestamp) } /** - * @param topics The name of the Kafka topic. + * @param tags the value to be set. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags the value to be set. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param topics (Kafka) A list of Kafka topics. */ override fun topics(topics: List) { cdkBuilder.topics(topics) } /** - * @param topics The name of the Kafka topic. + * @param topics (Kafka) A list of Kafka topics. */ override fun topics(vararg topics: String): Unit = topics(topics.toList()) /** - * @param tumblingWindowInSeconds (Kinesis and DynamoDB Streams only) The duration in seconds of - * a processing window for DynamoDB and Kinesis Streams event sources. - * A value of 0 seconds indicates no tumbling window. + * @param tumblingWindowInSeconds (Streams) Tumbling window (non-overlapping time window) + * duration to perform aggregations. */ override fun tumblingWindowInSeconds(tumblingWindowInSeconds: Number) { cdkBuilder.tumblingWindowInSeconds(tumblingWindowInSeconds) @@ -1126,10 +930,10 @@ public interface CfnEventSourceMappingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps, - ) : CdkObject(cdkObject), CfnEventSourceMappingProps { + ) : CdkObject(cdkObject), + CfnEventSourceMappingProps { /** - * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) - * event source. + * Specific configuration settings for an MSK event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig) */ @@ -1137,55 +941,35 @@ public interface CfnEventSourceMappingProps { unwrap(this).getAmazonManagedKafkaEventSourceConfig() /** - * The maximum number of records in each batch that Lambda pulls from your stream or queue and - * sends to your function. - * - * Lambda passes all of the records in the batch to the function in a single call, up to the - * payload limit for synchronous invocation (6 MB). - * - * * *Amazon Kinesis* – Default 100. Max 10,000. - * * *Amazon DynamoDB Streams* – Default 100. Max 10,000. - * * *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO - * queues the max is 10. - * * *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - * * *Self-managed Apache Kafka* – Default 100. Max 10,000. - * * *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - * * *DocumentDB* – Default 100. Max 10,000. + * The maximum number of items to retrieve in a single batch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize) */ override fun batchSize(): Number? = unwrap(this).getBatchSize() /** - * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two - * and retry. - * - * The default value is false. + * (Streams) If the function returns an error, split the batch in two and retry. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror) */ override fun bisectBatchOnFunctionError(): Any? = unwrap(this).getBisectBatchOnFunctionError() /** - * (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A - * configuration object that specifies the destination of an event after Lambda processes it. + * A configuration object that specifies the destination of an event after Lambda processes it. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig) */ override fun destinationConfig(): Any? = unwrap(this).getDestinationConfig() /** - * Specific configuration settings for a DocumentDB event source. + * Document db event source config. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig) */ override fun documentDbEventSourceConfig(): Any? = unwrap(this).getDocumentDbEventSourceConfig() /** - * When true, the event source mapping is active. When false, Lambda pauses polling and - * invocation. - * - * Default: True + * Disables the event source mapping to pause polling and invocation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled) */ @@ -1194,50 +978,26 @@ public interface CfnEventSourceMappingProps { /** * The Amazon Resource Name (ARN) of the event source. * - * * *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - * * *Amazon DynamoDB Streams* – The ARN of the stream. - * * *Amazon Simple Queue Service* – The ARN of the queue. - * * *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC - * connection (for [cross-account event source - * mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc) ). - * * *Amazon MQ* – The ARN of the broker. - * * *Amazon DocumentDB* – The ARN of the DocumentDB change stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn) */ override fun eventSourceArn(): String? = unwrap(this).getEventSourceArn() /** - * An object that defines the filter criteria that determine whether Lambda should process an - * event. - * - * For more information, see [Lambda event - * filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) . + * The filter criteria to control event filtering. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria) */ override fun filterCriteria(): Any? = unwrap(this).getFilterCriteria() /** - * The name or ARN of the Lambda function. - * - * **Name formats** - *Function name* – `MyFunction` . - * - * * *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` . - * * *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` . - * * *Partial ARN* – `123456789012:function:MyFunction` . - * - * The length constraint applies only to the full ARN. If you specify only the function name, - * it's limited to 64 characters in length. + * The name of the Lambda function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname) */ override fun functionName(): String = unwrap(this).getFunctionName() /** - * (Streams and SQS) A list of current response type enums applied to the event source mapping. - * - * Valid Values: `ReportBatchItemFailures` + * (Streams) A list of response types supported by the function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes) */ @@ -1245,15 +1005,15 @@ public interface CfnEventSourceMappingProps { emptyList() /** - * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking - * the function. - * - * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 + * The Amazon Resource Name (ARN) of the KMS key. * - * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms - * - * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater - * than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-kmskeyarn) + */ + override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * (Streams) The maximum amount of time to gather records before invoking the function, in + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds) */ @@ -1261,69 +1021,49 @@ public interface CfnEventSourceMappingProps { unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. - * - * The default value is -1, - * which sets the maximum age to infinite. When the value is set to infinite, Lambda never - * discards old records. - * - * - * The minimum valid value for maximum record age is 60s. Although values less than 60 and - * greater than -1 fall within the parameter's absolute range, they are not allowed - * + * (Streams) The maximum age of a record that Lambda sends to a function for processing. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds) */ override fun maximumRecordAgeInSeconds(): Number? = unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. - * - * The default value is -1, - * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, - * Lambda retries failed records until the record expires in the event source. + * (Streams) The maximum number of times to retry when the function returns an error. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts) */ override fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each - * shard. - * - * The default value is 1. + * (Streams) The number of batches to process from each shard concurrently. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor) */ override fun parallelizationFactor(): Number? = unwrap(this).getParallelizationFactor() /** - * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. + * (ActiveMQ) A list of ActiveMQ queues. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues) */ override fun queues(): List = unwrap(this).getQueues() ?: emptyList() /** - * (Amazon SQS only) The scaling configuration for the event source. - * - * For more information, see [Configuring maximum concurrency for Amazon SQS event - * sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) - * . + * The scaling configuration for the event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig) */ override fun scalingConfig(): Any? = unwrap(this).getScalingConfig() /** - * The self-managed Apache Kafka cluster for your event source. + * The configuration used by AWS Lambda to access a self-managed event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource) */ override fun selfManagedEventSource(): Any? = unwrap(this).getSelfManagedEventSource() /** - * Specific configuration settings for a self-managed Apache Kafka event source. + * Specific configuration settings for a Self-Managed Apache Kafka event source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig) */ @@ -1331,47 +1071,43 @@ public interface CfnEventSourceMappingProps { unwrap(this).getSelfManagedKafkaEventSourceConfig() /** - * An array of the authentication protocol, VPC components, or virtual host to secure and define - * your event source. + * A list of SourceAccessConfiguration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations) */ override fun sourceAccessConfigurations(): Any? = unwrap(this).getSourceAccessConfigurations() /** - * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon - * DynamoDB. + * The position in a stream from which to start reading. * - * * *LATEST* - Read only new records. - * * *TRIM_HORIZON* - Process all available records. - * * *AT_TIMESTAMP* - Specify a time from which to start reading records. + * Required for Amazon Kinesis and Amazon DynamoDB Streams sources. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition) */ override fun startingPosition(): String? = unwrap(this).getStartingPosition() /** - * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix - * time seconds. - * - * `StartingPositionTimestamp` cannot be in the future. + * With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time + * seconds. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp) */ override fun startingPositionTimestamp(): Number? = unwrap(this).getStartingPositionTimestamp() /** - * The name of the Kafka topic. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * (Kafka) A list of Kafka topics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) */ override fun topics(): List = unwrap(this).getTopics() ?: emptyList() /** - * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for - * DynamoDB and Kinesis Streams event sources. - * - * A value of 0 seconds indicates no tumbling window. + * (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunction.kt index 53acb3a8e7..705137e2d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunction.kt @@ -34,16 +34,19 @@ import software.constructs.Construct as SoftwareConstructsConstruct * for log streaming and AWS X-Ray for request tracing. * * You set the package type to `Image` if the deployment package is a [container - * image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) . For a container image, the - * code property must include the URI of a container image in the Amazon ECR registry. You do not need - * to specify the handler and runtime properties. + * image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) . For these functions, + * include the URI of the container image in the Amazon ECR registry in the [`ImageUri` property of the + * `Code` + * property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-imageuri) + * . You do not need to specify the handler and runtime properties. * * You set the package type to `Zip` if the deployment package is a [.zip file * archive](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip) - * . For a .zip file archive, the code property specifies the location of the .zip file. You must also - * specify the handler and runtime properties. For a Python example, see [Deploy Python Lambda - * functions with .zip file archives](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html) - * . + * . For these functions, specify the Amazon S3 location of your .zip file in the `Code` property. + * Alternatively, for Node.js and Python functions, you can define your function inline in the + * [`ZipFile` property of the `Code` + * property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile) + * . In both cases, you must also specify the handler and runtime properties. * * You can use [code * signing](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) if your @@ -53,6 +56,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * publisher. The code-signing configuration includes a set of signing profiles, which define the * trusted publishers for this function. * + * When you update a `AWS::Lambda::Function` resource, CloudFormation calls the + * [UpdateFunctionConfiguration](https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionConfiguration.html) + * and [UpdateFunctionCode](https://docs.aws.amazon.com/lambda/latest/api/API_UpdateFunctionCode.html) + * Lambda APIs under the hood. Because these calls happen sequentially, and invocations can happen + * between these calls, your function may encounter errors in the time between the calls. For example, + * if you remove an environment variable, and the code that references that environment variable in the + * same CloudFormation update, you may see invocation errors related to a missing environment variable. + * To work around this, you can invoke your function against a version or alias by default, rather than + * the `$LATEST` version. + * * Note that you configure [provisioned * concurrency](https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html) on a * `AWS::Lambda::Version` or a `AWS::Lambda::Alias` . @@ -73,6 +86,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .s3Bucket("s3Bucket") * .s3Key("s3Key") * .s3ObjectVersion("s3ObjectVersion") + * .sourceKmsKeyArn("sourceKmsKeyArn") * .zipFile("zipFile") * .build()) * .role("role") @@ -111,6 +125,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .memorySize(123) * .packageType("packageType") + * .recursiveLoop("recursiveLoop") * .reservedConcurrentExecutions(123) * .runtime("runtime") * .runtimeManagementConfig(RuntimeManagementConfigProperty.builder() @@ -141,7 +156,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunction( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -176,7 +193,7 @@ public open class CfnFunction( public open fun architectures(vararg `value`: String): Unit = architectures(`value`.toList()) /** - * The Amazon Resource Name (ARN) of the function. + * */ public open fun attrArn(): String = unwrap(this).getAttrArn() @@ -203,26 +220,54 @@ public open class CfnFunction( unwrap(this).getAttrSnapStartResponseOptimizationStatus() /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. */ public open fun code(): Any = unwrap(this).getCode() /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. */ public open fun code(`value`: IResolvable) { unwrap(this).setCode(`value`.let(IResolvable.Companion::unwrap)) } /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. */ public open fun code(`value`: CodeProperty) { unwrap(this).setCode(`value`.let(CodeProperty.Companion::unwrap)) } /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("27bc03c11962a84638837c61ff105a539b3caa5340528b2ffd9166edaf307caf") @@ -241,30 +286,30 @@ public open class CfnFunction( } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. + * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) + * for failed asynchronous invocations. */ public open fun deadLetterConfig(): Any? = unwrap(this).getDeadLetterConfig() /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. + * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) + * for failed asynchronous invocations. */ public open fun deadLetterConfig(`value`: IResolvable) { unwrap(this).setDeadLetterConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. + * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) + * for failed asynchronous invocations. */ public open fun deadLetterConfig(`value`: DeadLetterConfigProperty) { unwrap(this).setDeadLetterConfig(`value`.let(DeadLetterConfigProperty.Companion::unwrap)) } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. + * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) + * for failed asynchronous invocations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("82210f417735f1b21f06f2b9874c4d9202ac1920b45ba30cccd2d22bea5b339b") @@ -284,26 +329,26 @@ public open class CfnFunction( } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. */ public open fun environment(): Any? = unwrap(this).getEnvironment() /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. */ public open fun environment(`value`: IResolvable) { unwrap(this).setEnvironment(`value`.let(IResolvable.Companion::unwrap)) } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. */ public open fun environment(`value`: EnvironmentProperty) { unwrap(this).setEnvironment(`value`.let(EnvironmentProperty.Companion::unwrap)) } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f9fe4e1d1745bd46c7c4df960f9992721cd59f9fbb8b9b0bb9c79fd7087b565d") @@ -422,10 +467,10 @@ public open class CfnFunction( } /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your * function using a container image, Lambda also uses this key to encrypt your function when it's * deployed. Note that this is not the same key that's used to protect your container image in the @@ -435,10 +480,10 @@ public open class CfnFunction( public open fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your * function using a container image, Lambda also uses this key to encrypt your function when it's * deployed. Note that this is not the same key that's used to protect your container image in the @@ -533,6 +578,18 @@ public open class CfnFunction( unwrap(this).setPackageType(`value`) } + /** + * This property is set to terminate unintended recursions. + */ + public open fun recursiveLoop(): String? = unwrap(this).getRecursiveLoop() + + /** + * This property is set to terminate unintended recursions. + */ + public open fun recursiveLoop(`value`: String) { + unwrap(this).setRecursiveLoop(`value`) + } + /** * The number of simultaneous executions to reserve for the function. */ @@ -560,15 +617,27 @@ public open class CfnFunction( /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is required - * if the deployment package is a .zip file archive. + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required + * if the deployment package is a .zip file archive. Specifying a runtime results in an error if + * you're deploying a function using a container image. The following list includes deprecated + * runtimes. Lambda blocks creating new functions and updating existing functions shortly after each + * runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). */ public open fun runtime(): String? = unwrap(this).getRuntime() /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is required - * if the deployment package is a .zip file archive. + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required + * if the deployment package is a .zip file archive. Specifying a runtime results in an error if + * you're deploying a function using a container image. The following list includes deprecated + * runtimes. Lambda blocks creating new functions and updating existing functions shortly after each + * runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). */ public open fun runtime(`value`: String) { unwrap(this).setRuntime(`value`) @@ -603,30 +672,30 @@ public open class CfnFunction( = runtimeManagementConfig(RuntimeManagementConfigProperty(`value`)) /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. */ public open fun snapStart(): Any? = unwrap(this).getSnapStart() /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. */ public open fun snapStart(`value`: IResolvable) { unwrap(this).setSnapStart(`value`.let(IResolvable.Companion::unwrap)) } /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. */ public open fun snapStart(`value`: SnapStartProperty) { unwrap(this).setSnapStart(`value`.let(SnapStartProperty.Companion::unwrap)) } /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("81b72b2b8362d1a960276e8abfc120c20bed9e40f1708761e070ce63675b848f") @@ -672,30 +741,30 @@ public open class CfnFunction( } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. */ public open fun tracingConfig(): Any? = unwrap(this).getTracingConfig() /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. */ public open fun tracingConfig(`value`: IResolvable) { unwrap(this).setTracingConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. */ public open fun tracingConfig(`value`: TracingConfigProperty) { unwrap(this).setTracingConfig(`value`.let(TracingConfigProperty.Companion::unwrap)) } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("26af4707ceb8d25c09985966f19fe8fc2018338e50c30202b6e3274e10effb61") @@ -703,30 +772,26 @@ public open class CfnFunction( tracingConfig(TracingConfigProperty(`value`)) /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. */ public open fun vpcConfig(): Any? = unwrap(this).getVpcConfig() /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. */ public open fun vpcConfig(`value`: IResolvable) { unwrap(this).setVpcConfig(`value`.let(IResolvable.Companion::unwrap)) } /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. */ public open fun vpcConfig(`value`: VpcConfigProperty) { unwrap(this).setVpcConfig(`value`.let(VpcConfigProperty.Companion::unwrap)) } /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("61a85c6b04d196acfcabd6044074bf46c225ba9da5df8f8acc431959fe2fdf45") @@ -742,7 +807,7 @@ public open class CfnFunction( * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) * @param architectures The instruction set architecture that the function supports. @@ -753,7 +818,7 @@ public open class CfnFunction( * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) * @param architectures The instruction set architecture that the function supports. @@ -761,26 +826,68 @@ public open class CfnFunction( public fun architectures(vararg architectures: String) /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ public fun code(code: IResolvable) /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ public fun code(code: CodeProperty) /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b3964a0b102134414b694f5e98f6d476e8117850de3823fb7471a38dd26e1f9") @@ -789,8 +896,8 @@ public open class CfnFunction( /** * To enable code signing for this function, specify the ARN of a code-signing configuration. * - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn) * @param codeSigningConfigArn To enable code signing for this function, specify the ARN of a @@ -799,41 +906,38 @@ public open class CfnFunction( public fun codeSigningConfigArn(codeSigningConfigArn: String) /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ public fun deadLetterConfig(deadLetterConfig: IResolvable) /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ public fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty) /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("752ac7117e2e0fbfe8b87e093fe0487ed1b922480901063ebbdf41963e1b11b9") @@ -848,29 +952,38 @@ public open class CfnFunction( public fun description(description: String) /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ public fun environment(environment: IResolvable) /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ public fun environment(environment: EnvironmentProperty) /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6cc75bf28aacefddb8de924be12c3db391e03580ea8cdff98f770371dbd867af") @@ -916,10 +1029,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -934,10 +1045,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -952,10 +1061,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -965,8 +1072,7 @@ public open class CfnFunction( /** * The name of the Lambda function, up to 64 characters in length. * - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -982,7 +1088,7 @@ public open class CfnFunction( * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For * more information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler) * @param handler The name of the method within your code that Lambda calls to run your @@ -994,7 +1100,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1006,7 +1112,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1018,7 +1124,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1029,25 +1135,25 @@ public open class CfnFunction( public fun imageConfig(imageConfig: ImageConfigProperty.Builder.() -> Unit) /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn) - * @param kmsKeyArn The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key - * that's used to encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * @param kmsKeyArn The ARN of the KMSlong (KMS) customer managed key that's used to encrypt + * your function's [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. */ public fun kmsKeyArn(kmsKeyArn: String) @@ -1130,6 +1236,17 @@ public open class CfnFunction( */ public fun packageType(packageType: String) + /** + * This property is set to terminate unintended recursions. + * + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-recursiveloop) + * @param recursiveLoop This property is set to terminate unintended recursions. + */ + public fun recursiveLoop(recursiveLoop: String) + /** * The number of simultaneous executions to reserve for the function. * @@ -1149,18 +1266,26 @@ public open class CfnFunction( /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. - * - * The following list includes deprecated runtimes. For more information, see [Runtime - * deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime) * @param runtime The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + * */ public fun runtime(runtime: String) @@ -1168,7 +1293,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1180,7 +1305,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1192,7 +1317,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1204,32 +1329,32 @@ public open class CfnFunction( fun runtimeManagementConfig(runtimeManagementConfig: RuntimeManagementConfigProperty.Builder.() -> Unit) /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ public fun snapStart(snapStart: IResolvable) /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ public fun snapStart(snapStart: SnapStartProperty) /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d2590028845f970506309395f8bc94970e797ab159c68443cb26ca01e9e8a449") @@ -1260,7 +1385,7 @@ public open class CfnFunction( * * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see * [Lambda execution - * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) . + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout) * @param timeout The amount of time (in seconds) that Lambda allows a function to run before @@ -1269,76 +1394,94 @@ public open class CfnFunction( public fun timeout(timeout: Number) /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ public fun tracingConfig(tracingConfig: IResolvable) /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ public fun tracingConfig(tracingConfig: TracingConfigProperty) /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4e2f5a8b6072e93f227df7d16a2a889f29a7588706e4e11185c859fb17987062") public fun tracingConfig(tracingConfig: TracingConfigProperty.Builder.() -> Unit) /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ public fun vpcConfig(vpcConfig: IResolvable) /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ public fun vpcConfig(vpcConfig: VpcConfigProperty) /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a95f83151908acd2460fc35b80b4458507ae5c0a7b04dcdf6a96ad632af5a117") @@ -1356,7 +1499,7 @@ public open class CfnFunction( * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) * @param architectures The instruction set architecture that the function supports. @@ -1369,7 +1512,7 @@ public open class CfnFunction( * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) * @param architectures The instruction set architecture that the function supports. @@ -1378,30 +1521,72 @@ public open class CfnFunction( architectures(architectures.toList()) /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ override fun code(code: IResolvable) { cdkBuilder.code(code.let(IResolvable.Companion::unwrap)) } /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ override fun code(code: CodeProperty) { cdkBuilder.code(code.let(CodeProperty.Companion::unwrap)) } /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b3964a0b102134414b694f5e98f6d476e8117850de3823fb7471a38dd26e1f9") @@ -1410,8 +1595,8 @@ public open class CfnFunction( /** * To enable code signing for this function, specify the ARN of a code-signing configuration. * - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn) * @param codeSigningConfigArn To enable code signing for this function, specify the ARN of a @@ -1422,45 +1607,42 @@ public open class CfnFunction( } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ override fun deadLetterConfig(deadLetterConfig: IResolvable) { cdkBuilder.deadLetterConfig(deadLetterConfig.let(IResolvable.Companion::unwrap)) } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ override fun deadLetterConfig(deadLetterConfig: DeadLetterConfigProperty) { cdkBuilder.deadLetterConfig(deadLetterConfig.let(DeadLetterConfigProperty.Companion::unwrap)) } /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("752ac7117e2e0fbfe8b87e093fe0487ed1b922480901063ebbdf41963e1b11b9") @@ -1478,33 +1660,42 @@ public open class CfnFunction( } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ override fun environment(environment: IResolvable) { cdkBuilder.environment(environment.let(IResolvable.Companion::unwrap)) } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ override fun environment(environment: EnvironmentProperty) { cdkBuilder.environment(environment.let(EnvironmentProperty.Companion::unwrap)) } /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6cc75bf28aacefddb8de924be12c3db391e03580ea8cdff98f770371dbd867af") @@ -1556,10 +1747,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -1576,10 +1765,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -1596,10 +1783,8 @@ public open class CfnFunction( * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) * @param fileSystemConfigs Connection settings for an Amazon EFS file system. @@ -1610,8 +1795,7 @@ public open class CfnFunction( /** * The name of the Lambda function, up to 64 characters in length. * - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -1629,7 +1813,7 @@ public open class CfnFunction( * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For * more information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler) * @param handler The name of the method within your code that Lambda calls to run your @@ -1643,7 +1827,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1657,7 +1841,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1671,7 +1855,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) * @param imageConfig Configuration values that override the container image Dockerfile @@ -1683,25 +1867,25 @@ public open class CfnFunction( imageConfig(ImageConfigProperty(imageConfig)) /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn) - * @param kmsKeyArn The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key - * that's used to encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * @param kmsKeyArn The ARN of the KMSlong (KMS) customer managed key that's used to encrypt + * your function's [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. */ override fun kmsKeyArn(kmsKeyArn: String) { @@ -1797,6 +1981,19 @@ public open class CfnFunction( cdkBuilder.packageType(packageType) } + /** + * This property is set to terminate unintended recursions. + * + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-recursiveloop) + * @param recursiveLoop This property is set to terminate unintended recursions. + */ + override fun recursiveLoop(recursiveLoop: String) { + cdkBuilder.recursiveLoop(recursiveLoop) + } + /** * The number of simultaneous executions to reserve for the function. * @@ -1820,18 +2017,26 @@ public open class CfnFunction( /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. - * - * The following list includes deprecated runtimes. For more information, see [Runtime - * deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime) * @param runtime The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + * */ override fun runtime(runtime: String) { cdkBuilder.runtime(runtime) @@ -1841,7 +2046,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1855,7 +2060,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1869,7 +2074,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) * @param runtimeManagementConfig Sets the runtime management configuration for a function's @@ -1882,36 +2087,36 @@ public open class CfnFunction( Unit = runtimeManagementConfig(RuntimeManagementConfigProperty(runtimeManagementConfig)) /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ override fun snapStart(snapStart: IResolvable) { cdkBuilder.snapStart(snapStart.let(IResolvable.Companion::unwrap)) } /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ override fun snapStart(snapStart: SnapStartProperty) { cdkBuilder.snapStart(snapStart.let(SnapStartProperty.Companion::unwrap)) } /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d2590028845f970506309395f8bc94970e797ab159c68443cb26ca01e9e8a449") @@ -1945,7 +2150,7 @@ public open class CfnFunction( * * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see * [Lambda execution - * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) . + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout) * @param timeout The amount of time (in seconds) that Lambda allows a function to run before @@ -1956,36 +2161,39 @@ public open class CfnFunction( } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ override fun tracingConfig(tracingConfig: IResolvable) { cdkBuilder.tracingConfig(tracingConfig.let(IResolvable.Companion::unwrap)) } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ override fun tracingConfig(tracingConfig: TracingConfigProperty) { cdkBuilder.tracingConfig(tracingConfig.let(TracingConfigProperty.Companion::unwrap)) } /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4e2f5a8b6072e93f227df7d16a2a889f29a7588706e4e11185c859fb17987062") @@ -1993,48 +2201,63 @@ public open class CfnFunction( tracingConfig(TracingConfigProperty(tracingConfig)) /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ override fun vpcConfig(vpcConfig: IResolvable) { cdkBuilder.vpcConfig(vpcConfig.let(IResolvable.Companion::unwrap)) } /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ override fun vpcConfig(vpcConfig: VpcConfigProperty) { cdkBuilder.vpcConfig(vpcConfig.let(VpcConfigProperty.Companion::unwrap)) } /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a95f83151908acd2460fc35b80b4458507ae5c0a7b04dcdf6a96ad632af5a117") @@ -2070,11 +2293,9 @@ public open class CfnFunction( * function. To deploy a function defined as a container image, you specify the location of a * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the - * function code inline in the template. - * - * Changes to a deployment package in Amazon S3 or a container image in ECR are not detected - * automatically during stack updates. To update the function code, change the object key or version - * in the template. + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. * * Example: * @@ -2087,6 +2308,7 @@ public open class CfnFunction( * .s3Bucket("s3Bucket") * .s3Key("s3Key") * .s3ObjectVersion("s3ObjectVersion") + * .sourceKmsKeyArn("sourceKmsKeyArn") * .zipFile("zipFile") * .build(); * ``` @@ -2103,9 +2325,9 @@ public open class CfnFunction( public fun imageUri(): String? = unwrap(this).getImageUri() /** - * An Amazon S3 bucket in the same AWS Region as your function. + * An Amazon S3 bucket in the same AWS-Region as your function. * - * The bucket can be in a different AWS account . + * The bucket can be in a different AWS-account. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket) */ @@ -2125,22 +2347,23 @@ public open class CfnFunction( */ public fun s3ObjectVersion(): String? = unwrap(this).getS3ObjectVersion() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-sourcekmskeyarn) + */ + public fun sourceKmsKeyArn(): String? = unwrap(this).getSourceKmsKeyArn() + /** * (Node.js and Python) The source code of your Lambda function. If you include your function - * source inline with this parameter, AWS CloudFormation places it in a file named `index` and zips - * it to create a [deployment - * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip - * file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier - * must be `index` . For example, `index.handler` . - * - * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a - * backslash. - * - * If you specify a function that interacts with an AWS CloudFormation custom resource, you - * don't have to write your own functions to send responses to the custom resource that invoked the - * function. AWS CloudFormation provides a response module ( - * [cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html) - * ) that simplifies sending responses. See [Using AWS Lambda with AWS + * source inline with this parameter, CFN places it in a file named `index` and zips it to create a + * [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). + * This zip file cannot exceed 4MB. For the `Handler` property, the first part of the handler + * identifier must be `index`. For example, `index.handler`. For JSON, you must escape quotes and + * special characters such as newline (`\n`) with a backslash. If you specify a function that + * interacts with an AWS CloudFormation custom resource, you don't have to write your own functions + * to send responses to the custom resource that invoked the function. AWS CloudFormation provides + * a response module + * ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) + * that simplifies sending responses. See [Using Lambda with * CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for * details. * @@ -2161,8 +2384,8 @@ public open class CfnFunction( public fun imageUri(imageUri: String) /** - * @param s3Bucket An Amazon S3 bucket in the same AWS Region as your function. - * The bucket can be in a different AWS account . + * @param s3Bucket An Amazon S3 bucket in the same AWS-Region as your function. + * The bucket can be in a different AWS-account. */ public fun s3Bucket(s3Bucket: String) @@ -2177,21 +2400,24 @@ public open class CfnFunction( */ public fun s3ObjectVersion(s3ObjectVersion: String) + /** + * @param sourceKmsKeyArn the value to be set. + */ + public fun sourceKmsKeyArn(sourceKmsKeyArn: String) + /** * @param zipFile (Node.js and Python) The source code of your Lambda function. If you include - * your function source inline with this parameter, AWS CloudFormation places it in a file named - * `index` and zips it to create a [deployment - * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip + * your function source inline with this parameter, CFN places it in a file named `index` and + * zips it to create a [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip * file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier - * must be `index` . For example, `index.handler` . - * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a - * backslash. - * - * If you specify a function that interacts with an AWS CloudFormation custom resource, you - * don't have to write your own functions to send responses to the custom resource that invoked - * the function. AWS CloudFormation provides a response module ( - * [cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html) - * ) that simplifies sending responses. See [Using AWS Lambda with AWS + * must be `index`. For example, `index.handler`. For JSON, you must escape quotes and special + * characters such as newline (`\n`) with a backslash. If you specify a function that interacts + * with an AWS CloudFormation custom resource, you don't have to write your own functions to send + * responses to the custom resource that invoked the function. AWS CloudFormation provides a + * response module + * ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) + * that simplifies sending responses. See [Using Lambda with * CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for * details. */ @@ -2213,8 +2439,8 @@ public open class CfnFunction( } /** - * @param s3Bucket An Amazon S3 bucket in the same AWS Region as your function. - * The bucket can be in a different AWS account . + * @param s3Bucket An Amazon S3 bucket in the same AWS-Region as your function. + * The bucket can be in a different AWS-account. */ override fun s3Bucket(s3Bucket: String) { cdkBuilder.s3Bucket(s3Bucket) @@ -2235,21 +2461,26 @@ public open class CfnFunction( cdkBuilder.s3ObjectVersion(s3ObjectVersion) } + /** + * @param sourceKmsKeyArn the value to be set. + */ + override fun sourceKmsKeyArn(sourceKmsKeyArn: String) { + cdkBuilder.sourceKmsKeyArn(sourceKmsKeyArn) + } + /** * @param zipFile (Node.js and Python) The source code of your Lambda function. If you include - * your function source inline with this parameter, AWS CloudFormation places it in a file named - * `index` and zips it to create a [deployment - * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip + * your function source inline with this parameter, CFN places it in a file named `index` and + * zips it to create a [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip * file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier - * must be `index` . For example, `index.handler` . - * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a - * backslash. - * - * If you specify a function that interacts with an AWS CloudFormation custom resource, you - * don't have to write your own functions to send responses to the custom resource that invoked - * the function. AWS CloudFormation provides a response module ( - * [cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html) - * ) that simplifies sending responses. See [Using AWS Lambda with AWS + * must be `index`. For example, `index.handler`. For JSON, you must escape quotes and special + * characters such as newline (`\n`) with a backslash. If you specify a function that interacts + * with an AWS CloudFormation custom resource, you don't have to write your own functions to send + * responses to the custom resource that invoked the function. AWS CloudFormation provides a + * response module + * ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) + * that simplifies sending responses. See [Using Lambda with * CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for * details. */ @@ -2263,7 +2494,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.CodeProperty, - ) : CdkObject(cdkObject), CodeProperty { + ) : CdkObject(cdkObject), + CodeProperty { /** * URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) * in the Amazon ECR registry. @@ -2273,9 +2505,9 @@ public open class CfnFunction( override fun imageUri(): String? = unwrap(this).getImageUri() /** - * An Amazon S3 bucket in the same AWS Region as your function. + * An Amazon S3 bucket in the same AWS-Region as your function. * - * The bucket can be in a different AWS account . + * The bucket can be in a different AWS-account. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket) */ @@ -2295,22 +2527,24 @@ public open class CfnFunction( */ override fun s3ObjectVersion(): String? = unwrap(this).getS3ObjectVersion() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-sourcekmskeyarn) + */ + override fun sourceKmsKeyArn(): String? = unwrap(this).getSourceKmsKeyArn() + /** * (Node.js and Python) The source code of your Lambda function. If you include your function - * source inline with this parameter, AWS CloudFormation places it in a file named `index` and - * zips it to create a [deployment - * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip + * source inline with this parameter, CFN places it in a file named `index` and zips it to create + * a [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip * file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier - * must be `index` . For example, `index.handler` . - * - * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a - * backslash. - * - * If you specify a function that interacts with an AWS CloudFormation custom resource, you - * don't have to write your own functions to send responses to the custom resource that invoked - * the function. AWS CloudFormation provides a response module ( - * [cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html) - * ) that simplifies sending responses. See [Using AWS Lambda with AWS + * must be `index`. For example, `index.handler`. For JSON, you must escape quotes and special + * characters such as newline (`\n`) with a backslash. If you specify a function that interacts + * with an AWS CloudFormation custom resource, you don't have to write your own functions to send + * responses to the custom resource that invoked the function. AWS CloudFormation provides a + * response module + * ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) + * that simplifies sending responses. See [Using Lambda with * CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for * details. * @@ -2389,7 +2623,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.DeadLetterConfigProperty, - ) : CdkObject(cdkObject), DeadLetterConfigProperty { + ) : CdkObject(cdkObject), + DeadLetterConfigProperty { /** * The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. * @@ -2442,7 +2677,7 @@ public open class CfnFunction( * Environment variable key-value pairs. * * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables) */ @@ -2456,14 +2691,14 @@ public open class CfnFunction( /** * @param variables Environment variable key-value pairs. * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). */ public fun variables(variables: IResolvable) /** * @param variables Environment variable key-value pairs. * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). */ public fun variables(variables: Map) } @@ -2476,7 +2711,7 @@ public open class CfnFunction( /** * @param variables Environment variable key-value pairs. * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). */ override fun variables(variables: IResolvable) { cdkBuilder.variables(variables.let(IResolvable.Companion::unwrap)) @@ -2485,7 +2720,7 @@ public open class CfnFunction( /** * @param variables Environment variable key-value pairs. * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). */ override fun variables(variables: Map) { cdkBuilder.variables(variables) @@ -2497,12 +2732,13 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.EnvironmentProperty, - ) : CdkObject(cdkObject), EnvironmentProperty { + ) : CdkObject(cdkObject), + EnvironmentProperty { /** * Environment variable key-value pairs. * * For more information, see [Using Lambda environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) . + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables) */ @@ -2583,7 +2819,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.EphemeralStorageProperty, - ) : CdkObject(cdkObject), EphemeralStorageProperty { + ) : CdkObject(cdkObject), + EphemeralStorageProperty { /** * The size of the function's `/tmp` directory. * @@ -2612,7 +2849,7 @@ public open class CfnFunction( /** * Details about the connection between a Lambda function and an [Amazon EFS file - * system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html) . + * system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html). * * Example: * @@ -2638,7 +2875,7 @@ public open class CfnFunction( public fun arn(): String /** - * The path where the function can access the file system, starting with `/mnt/` . + * The path where the function can access the file system, starting with `/mnt/`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-localmountpath) */ @@ -2657,7 +2894,7 @@ public open class CfnFunction( /** * @param localMountPath The path where the function can access the file system, starting with - * `/mnt/` . + * `/mnt/`. */ public fun localMountPath(localMountPath: String) } @@ -2677,7 +2914,7 @@ public open class CfnFunction( /** * @param localMountPath The path where the function can access the file system, starting with - * `/mnt/` . + * `/mnt/`. */ override fun localMountPath(localMountPath: String) { cdkBuilder.localMountPath(localMountPath) @@ -2690,7 +2927,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.FileSystemConfigProperty, - ) : CdkObject(cdkObject), FileSystemConfigProperty { + ) : CdkObject(cdkObject), + FileSystemConfigProperty { /** * The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the * file system. @@ -2700,7 +2938,7 @@ public open class CfnFunction( override fun arn(): String = unwrap(this).getArn() /** - * The path where the function can access the file system, starting with `/mnt/` . + * The path where the function can access the file system, starting with `/mnt/`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-localmountpath) */ @@ -2729,7 +2967,7 @@ public open class CfnFunction( * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * Example: * @@ -2862,7 +3100,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.ImageConfigProperty, - ) : CdkObject(cdkObject), ImageConfigProperty { + ) : CdkObject(cdkObject), + ImageConfigProperty { /** * Specifies parameters that you want to pass in with ENTRYPOINT. * @@ -2954,7 +3193,7 @@ public open class CfnFunction( * The name of the Amazon CloudWatch log group the function sends logs to. * * By default, Lambda functions send logs to a default log group named `/aws/lambda/<function - * name>` . To use a different log group, enter an existing log group or enter a new log group + * name>`. To use a different log group, enter an existing log group or enter a new log group * name. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-loggroup) @@ -2995,8 +3234,8 @@ public open class CfnFunction( /** * @param logGroup The name of the Amazon CloudWatch log group the function sends logs to. * By default, Lambda functions send logs to a default log group named - * `/aws/lambda/<function name>` . To use a different log group, enter an existing log - * group or enter a new log group name. + * `/aws/lambda/<function name>`. To use a different log group, enter an existing log group + * or enter a new log group name. */ public fun logGroup(logGroup: String) @@ -3036,8 +3275,8 @@ public open class CfnFunction( /** * @param logGroup The name of the Amazon CloudWatch log group the function sends logs to. * By default, Lambda functions send logs to a default log group named - * `/aws/lambda/<function name>` . To use a different log group, enter an existing log - * group or enter a new log group name. + * `/aws/lambda/<function name>`. To use a different log group, enter an existing log group + * or enter a new log group name. */ override fun logGroup(logGroup: String) { cdkBuilder.logGroup(logGroup) @@ -3059,7 +3298,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * Set this property to filter the application logs for your function that Lambda sends to * CloudWatch. @@ -3084,8 +3324,8 @@ public open class CfnFunction( * The name of the Amazon CloudWatch log group the function sends logs to. * * By default, Lambda functions send logs to a default log group named - * `/aws/lambda/<function name>` . To use a different log group, enter an existing log - * group or enter a new log group name. + * `/aws/lambda/<function name>`. To use a different log group, enter an existing log group + * or enter a new log group name. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-loggroup) */ @@ -3125,7 +3365,7 @@ public open class CfnFunction( * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * Example: * @@ -3147,10 +3387,8 @@ public open class CfnFunction( /** * The ARN of the runtime version you want the function to use. * - * * This is only required if you're using the *Manual* runtime update mode. * - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-runtimeversionarn) */ public fun runtimeVersionArn(): String? = unwrap(this).getRuntimeVersionArn() @@ -3160,9 +3398,9 @@ public open class CfnFunction( * * * *Auto (default)* - Automatically update to the most recent and secure runtime version using * a [Two-phase runtime version - * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase) - * . This is the best choice for most customers to ensure they always benefit from runtime updates. - * * *FunctionUpdate* - Lambda updates the runtime of you function to the most recent and secure + * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + * This is the best choice for most customers to ensure they always benefit from runtime updates. + * * *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure * runtime version when you update your function. This approach synchronizes runtime updates with * function deployments, giving you control over when runtime updates are applied and allowing you * to detect and mitigate rare runtime update incompatibilities early. When using this setting, you @@ -3171,10 +3409,9 @@ public open class CfnFunction( * use this runtime version indefinitely. In the rare case where a new runtime version is * incompatible with an existing function, this allows you to roll back your function to an earlier * runtime version. For more information, see [Roll back a runtime - * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback) - * . + * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). * - * *Valid Values* : `Auto` | `FunctionUpdate` | `Manual` + * *Valid Values*: `Auto` | `FunctionUpdate` | `Manual` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-updateruntimeon) */ @@ -3187,7 +3424,6 @@ public open class CfnFunction( public interface Builder { /** * @param runtimeVersionArn The ARN of the runtime version you want the function to use. - * * This is only required if you're using the *Manual* runtime update mode. */ public fun runtimeVersionArn(runtimeVersionArn: String) @@ -3196,23 +3432,20 @@ public open class CfnFunction( * @param updateRuntimeOn Specify the runtime update mode. * * *Auto (default)* - Automatically update to the most recent and secure runtime version * using a [Two-phase runtime version - * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase) - * . This is the best choice for most customers to ensure they always benefit from runtime - * updates. - * * *FunctionUpdate* - Lambda updates the runtime of you function to the most recent and - * secure runtime version when you update your function. This approach synchronizes runtime - * updates with function deployments, giving you control over when runtime updates are applied - * and allowing you to detect and mitigate rare runtime update incompatibilities early. When - * using this setting, you need to regularly update your functions to keep their runtime - * up-to-date. + * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + * This is the best choice for most customers to ensure they always benefit from runtime updates. + * * *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure + * runtime version when you update your function. This approach synchronizes runtime updates with + * function deployments, giving you control over when runtime updates are applied and allowing + * you to detect and mitigate rare runtime update incompatibilities early. When using this + * setting, you need to regularly update your functions to keep their runtime up-to-date. * * *Manual* - You specify a runtime version in your function configuration. The function * will use this runtime version indefinitely. In the rare case where a new runtime version is * incompatible with an existing function, this allows you to roll back your function to an * earlier runtime version. For more information, see [Roll back a runtime - * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback) - * . + * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). * - * *Valid Values* : `Auto` | `FunctionUpdate` | `Manual` + * *Valid Values*: `Auto` | `FunctionUpdate` | `Manual` */ public fun updateRuntimeOn(updateRuntimeOn: String) } @@ -3225,7 +3458,6 @@ public open class CfnFunction( /** * @param runtimeVersionArn The ARN of the runtime version you want the function to use. - * * This is only required if you're using the *Manual* runtime update mode. */ override fun runtimeVersionArn(runtimeVersionArn: String) { @@ -3236,23 +3468,20 @@ public open class CfnFunction( * @param updateRuntimeOn Specify the runtime update mode. * * *Auto (default)* - Automatically update to the most recent and secure runtime version * using a [Two-phase runtime version - * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase) - * . This is the best choice for most customers to ensure they always benefit from runtime - * updates. - * * *FunctionUpdate* - Lambda updates the runtime of you function to the most recent and - * secure runtime version when you update your function. This approach synchronizes runtime - * updates with function deployments, giving you control over when runtime updates are applied - * and allowing you to detect and mitigate rare runtime update incompatibilities early. When - * using this setting, you need to regularly update your functions to keep their runtime - * up-to-date. + * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + * This is the best choice for most customers to ensure they always benefit from runtime updates. + * * *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure + * runtime version when you update your function. This approach synchronizes runtime updates with + * function deployments, giving you control over when runtime updates are applied and allowing + * you to detect and mitigate rare runtime update incompatibilities early. When using this + * setting, you need to regularly update your functions to keep their runtime up-to-date. * * *Manual* - You specify a runtime version in your function configuration. The function * will use this runtime version indefinitely. In the rare case where a new runtime version is * incompatible with an existing function, this allows you to roll back your function to an * earlier runtime version. For more information, see [Roll back a runtime - * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback) - * . + * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). * - * *Valid Values* : `Auto` | `FunctionUpdate` | `Manual` + * *Valid Values*: `Auto` | `FunctionUpdate` | `Manual` */ override fun updateRuntimeOn(updateRuntimeOn: String) { cdkBuilder.updateRuntimeOn(updateRuntimeOn) @@ -3265,14 +3494,13 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.RuntimeManagementConfigProperty, - ) : CdkObject(cdkObject), RuntimeManagementConfigProperty { + ) : CdkObject(cdkObject), + RuntimeManagementConfigProperty { /** * The ARN of the runtime version you want the function to use. * - * * This is only required if you're using the *Manual* runtime update mode. * - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-runtimeversionarn) */ override fun runtimeVersionArn(): String? = unwrap(this).getRuntimeVersionArn() @@ -3282,23 +3510,20 @@ public open class CfnFunction( * * * *Auto (default)* - Automatically update to the most recent and secure runtime version * using a [Two-phase runtime version - * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase) - * . This is the best choice for most customers to ensure they always benefit from runtime - * updates. - * * *FunctionUpdate* - Lambda updates the runtime of you function to the most recent and - * secure runtime version when you update your function. This approach synchronizes runtime - * updates with function deployments, giving you control over when runtime updates are applied - * and allowing you to detect and mitigate rare runtime update incompatibilities early. When - * using this setting, you need to regularly update your functions to keep their runtime - * up-to-date. + * rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + * This is the best choice for most customers to ensure they always benefit from runtime updates. + * * *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure + * runtime version when you update your function. This approach synchronizes runtime updates with + * function deployments, giving you control over when runtime updates are applied and allowing + * you to detect and mitigate rare runtime update incompatibilities early. When using this + * setting, you need to regularly update your functions to keep their runtime up-to-date. * * *Manual* - You specify a runtime version in your function configuration. The function * will use this runtime version indefinitely. In the rare case where a new runtime version is * incompatible with an existing function, this allows you to roll back your function to an * earlier runtime version. For more information, see [Roll back a runtime - * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback) - * . + * version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). * - * *Valid Values* : `Auto` | `FunctionUpdate` | `Manual` + * *Valid Values*: `Auto` | `FunctionUpdate` | `Manual` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-updateruntimeon) */ @@ -3324,8 +3549,8 @@ public open class CfnFunction( } /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * Example: * @@ -3380,7 +3605,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.SnapStartProperty, - ) : CdkObject(cdkObject), SnapStartProperty { + ) : CdkObject(cdkObject), + SnapStartProperty { /** * Set `ApplyOn` to `PublishedVersions` to create a snapshot of the initialized execution * environment when you publish a function version. @@ -3428,7 +3654,7 @@ public open class CfnFunction( */ public interface SnapStartResponseProperty { /** - * When set to `PublishedVersions` , Lambda creates a snapshot of the execution environment when + * When set to `PublishedVersions`, Lambda creates a snapshot of the execution environment when * you publish a function version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-applyon) @@ -3437,8 +3663,8 @@ public open class CfnFunction( /** * When you provide a [qualified Amazon Resource Name - * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) - * , this response element indicates whether SnapStart is activated for the specified function + * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), + * this response element indicates whether SnapStart is activated for the specified function * version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-optimizationstatus) @@ -3451,15 +3677,15 @@ public open class CfnFunction( @CdkDslMarker public interface Builder { /** - * @param applyOn When set to `PublishedVersions` , Lambda creates a snapshot of the execution + * @param applyOn When set to `PublishedVersions`, Lambda creates a snapshot of the execution * environment when you publish a function version. */ public fun applyOn(applyOn: String) /** * @param optimizationStatus When you provide a [qualified Amazon Resource Name - * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) - * , this response element indicates whether SnapStart is activated for the specified function + * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), + * this response element indicates whether SnapStart is activated for the specified function * version. */ public fun optimizationStatus(optimizationStatus: String) @@ -3471,7 +3697,7 @@ public open class CfnFunction( software.amazon.awscdk.services.lambda.CfnFunction.SnapStartResponseProperty.builder() /** - * @param applyOn When set to `PublishedVersions` , Lambda creates a snapshot of the execution + * @param applyOn When set to `PublishedVersions`, Lambda creates a snapshot of the execution * environment when you publish a function version. */ override fun applyOn(applyOn: String) { @@ -3480,8 +3706,8 @@ public open class CfnFunction( /** * @param optimizationStatus When you provide a [qualified Amazon Resource Name - * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) - * , this response element indicates whether SnapStart is activated for the specified function + * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), + * this response element indicates whether SnapStart is activated for the specified function * version. */ override fun optimizationStatus(optimizationStatus: String) { @@ -3495,9 +3721,10 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.SnapStartResponseProperty, - ) : CdkObject(cdkObject), SnapStartResponseProperty { + ) : CdkObject(cdkObject), + SnapStartResponseProperty { /** - * When set to `PublishedVersions` , Lambda creates a snapshot of the execution environment + * When set to `PublishedVersions`, Lambda creates a snapshot of the execution environment * when you publish a function version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-applyon) @@ -3506,8 +3733,8 @@ public open class CfnFunction( /** * When you provide a [qualified Amazon Resource Name - * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) - * , this response element indicates whether SnapStart is activated for the specified function + * (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), + * this response element indicates whether SnapStart is activated for the specified function * version. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-optimizationstatus) @@ -3534,8 +3761,8 @@ public open class CfnFunction( } /** - * The function's [AWS X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) - * tracing configuration. To sample and record incoming requests, set `Mode` to `Active` . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * Example: * @@ -3587,7 +3814,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.TracingConfigProperty, - ) : CdkObject(cdkObject), TracingConfigProperty { + ) : CdkObject(cdkObject), + TracingConfigProperty { /** * The tracing mode. * @@ -3620,18 +3848,13 @@ public open class CfnFunction( * When you connect a function to a VPC, Lambda creates an elastic network interface for each * combination of security group and subnet in the function's VPC configuration. The function can * only access resources and the internet through that VPC. For more information, see [VPC - * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . - * - * - * When you delete a function, AWS CloudFormation monitors the state of its network interfaces and - * waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the - * network interfaces need to be deleted by Lambda before AWS CloudFormation can delete the VPC's - * resources. - * - * To monitor network interfaces, AWS CloudFormation needs the `ec2:DescribeNetworkInterfaces` - * permission. It obtains this from the user or role that modifies the stack. If you don't provide - * this permission, AWS CloudFormation does not wait for network interfaces to be deleted. - * + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this permission, + * CFN does not wait for network interfaces to be deleted. * * Example: * @@ -3760,7 +3983,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunction.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunctionProps.kt index 9695a3ce24..d9af009718 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnFunctionProps.kt @@ -29,6 +29,7 @@ import kotlin.jvm.JvmName * .s3Bucket("s3Bucket") * .s3Key("s3Key") * .s3ObjectVersion("s3ObjectVersion") + * .sourceKmsKeyArn("sourceKmsKeyArn") * .zipFile("zipFile") * .build()) * .role("role") @@ -67,6 +68,7 @@ import kotlin.jvm.JvmName * .build()) * .memorySize(123) * .packageType("packageType") + * .recursiveLoop("recursiveLoop") * .reservedConcurrentExecutions(123) * .runtime("runtime") * .runtimeManagementConfig(RuntimeManagementConfigProperty.builder() @@ -100,14 +102,21 @@ public interface CfnFunctionProps { * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) */ public fun architectures(): List = unwrap(this).getArchitectures() ?: emptyList() /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a container + * image in ECR are not detected automatically during stack updates. To update the function code, + * change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) */ @@ -116,19 +125,16 @@ public interface CfnFunctionProps { /** * To enable code signing for this function, specify the ARN of a code-signing configuration. * - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn) */ public fun codeSigningConfigArn(): String? = unwrap(this).getCodeSigningConfigArn() /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) + * for failed asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) */ @@ -142,7 +148,11 @@ public interface CfnFunctionProps { public fun description(): String? = unwrap(this).getDescription() /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. An + * environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) */ @@ -165,10 +175,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is created * or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) */ @@ -177,8 +185,7 @@ public interface CfnFunctionProps { /** * The name of the Lambda function, up to 64 characters in length. * - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -193,7 +200,7 @@ public interface CfnFunctionProps { * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For more * information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler) */ @@ -203,17 +210,17 @@ public interface CfnFunctionProps { * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) */ public fun imageConfig(): Any? = unwrap(this).getImageConfig() /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your * function using a container image, Lambda also uses this key to encrypt your function when it's * deployed. Note that this is not the same key that's used to protect your container image in the @@ -261,6 +268,16 @@ public interface CfnFunctionProps { */ public fun packageType(): String? = unwrap(this).getPackageType() + /** + * This property is set to terminate unintended recursions. + * + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-recursiveloop) + */ + public fun recursiveLoop(): String? = unwrap(this).getRecursiveLoop() + /** * The number of simultaneous executions to reserve for the function. * @@ -278,12 +295,14 @@ public interface CfnFunctionProps { /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is required - * if the deployment package is a .zip file archive. - * - * The following list includes deprecated runtimes. For more information, see [Runtime deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required + * if the deployment package is a .zip file archive. Specifying a runtime results in an error if + * you're deploying a function using a container image. The following list includes deprecated + * runtimes. Lambda blocks creating new functions and updating existing functions shortly after each + * runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime) */ @@ -293,15 +312,15 @@ public interface CfnFunctionProps { * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) */ public fun runtimeManagementConfig(): Any? = unwrap(this).getRuntimeManagementConfig() /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) */ @@ -319,28 +338,34 @@ public interface CfnFunctionProps { * The amount of time (in seconds) that Lambda allows a function to run before stopping it. * * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see - * [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) - * . + * [Lambda execution + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout) */ public fun timeout(): Number? = unwrap(this).getTimeout() /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) */ public fun tracingConfig(): Any? = unwrap(this).getTracingConfig() /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this permission, + * CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) */ @@ -354,29 +379,50 @@ public interface CfnFunctionProps { /** * @param architectures The instruction set architecture that the function supports. * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. */ public fun architectures(architectures: List) /** * @param architectures The instruction set architecture that the function supports. * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. */ public fun architectures(vararg architectures: String) /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ public fun code(code: IResolvable) /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ public fun code(code: CfnFunction.CodeProperty) /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c52ce7080f82852b50c083937168f8621fc464d4066a012690476c2b249079b") @@ -385,32 +431,29 @@ public interface CfnFunctionProps { /** * @param codeSigningConfigArn To enable code signing for this function, specify the ARN of a * code-signing configuration. - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. */ public fun codeSigningConfigArn(codeSigningConfigArn: String) /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ public fun deadLetterConfig(deadLetterConfig: IResolvable) /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ public fun deadLetterConfig(deadLetterConfig: CfnFunction.DeadLetterConfigProperty) /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9d4f1762c765af746c14b00547fb2ca15aa43dcee751128bbc9b947042c57747") @@ -423,20 +466,26 @@ public interface CfnFunctionProps { public fun description(description: String) /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ public fun environment(environment: IResolvable) /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ public fun environment(environment: CfnFunction.EnvironmentProperty) /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b3a85e88e7a4197ee6e1cdb4110e15edcd07a668fdb27de3fb181d90d98778e") @@ -470,10 +519,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ public fun fileSystemConfigs(fileSystemConfigs: IResolvable) @@ -484,10 +531,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ public fun fileSystemConfigs(fileSystemConfigs: List) @@ -498,17 +543,14 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ public fun fileSystemConfigs(vararg fileSystemConfigs: Any) /** * @param functionName The name of the Lambda function, up to 64 characters in length. - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -521,7 +563,7 @@ public interface CfnFunctionProps { * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For * more information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). */ public fun handler(handler: String) @@ -529,7 +571,7 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ public fun imageConfig(imageConfig: IResolvable) @@ -537,7 +579,7 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ public fun imageConfig(imageConfig: CfnFunction.ImageConfigProperty) @@ -545,21 +587,21 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1997324bc2087618fc0e50de6b9eed554e767b3bbda6d845bbee3db1be1277e6") public fun imageConfig(imageConfig: CfnFunction.ImageConfigProperty.Builder.() -> Unit) /** - * @param kmsKeyArn The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key - * that's used to encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * @param kmsKeyArn The ARN of the KMSlong (KMS) customer managed key that's used to encrypt + * your function's [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. */ public fun kmsKeyArn(kmsKeyArn: String) @@ -611,6 +653,13 @@ public interface CfnFunctionProps { */ public fun packageType(packageType: String) + /** + * @param recursiveLoop This property is set to terminate unintended recursions. + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + */ + public fun recursiveLoop(recursiveLoop: String) + /** * @param reservedConcurrentExecutions The number of simultaneous executions to reserve for the * function. @@ -624,12 +673,14 @@ public interface CfnFunctionProps { /** * @param runtime The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. - * The following list includes deprecated runtimes. For more information, see [Runtime - * deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). */ public fun runtime(runtime: String) @@ -637,7 +688,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ public fun runtimeManagementConfig(runtimeManagementConfig: IResolvable) @@ -645,7 +696,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ public fun runtimeManagementConfig(runtimeManagementConfig: CfnFunction.RuntimeManagementConfigProperty) @@ -654,7 +705,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ee237fa0a46e8520d21d94c5b1083490aad6f8069ebae77e7cc99088187b3da4") @@ -662,20 +713,20 @@ public interface CfnFunctionProps { fun runtimeManagementConfig(runtimeManagementConfig: CfnFunction.RuntimeManagementConfigProperty.Builder.() -> Unit) /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ public fun snapStart(snapStart: IResolvable) /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ public fun snapStart(snapStart: CfnFunction.SnapStartProperty) /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f3c406d178cea826eb1e4103e92ba770b5f74b157127cf053b280c97a7ef5cbc") @@ -698,54 +749,75 @@ public interface CfnFunctionProps { * stopping it. * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see * [Lambda execution - * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) . + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). */ public fun timeout(timeout: Number) /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ public fun tracingConfig(tracingConfig: IResolvable) /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ public fun tracingConfig(tracingConfig: CfnFunction.TracingConfigProperty) /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1617c559ff9d0a323cae6bd48c5daadfd680645588ee9571a1adb94b84a4ce89") public fun tracingConfig(tracingConfig: CfnFunction.TracingConfigProperty.Builder.() -> Unit) /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ public fun vpcConfig(vpcConfig: IResolvable) /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ public fun vpcConfig(vpcConfig: CfnFunction.VpcConfigProperty) /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ac174c422fe09fe59e61bc17b79df1128fc471b376ea523d527a49b2d14fb1fc") @@ -759,7 +831,7 @@ public interface CfnFunctionProps { /** * @param architectures The instruction set architecture that the function supports. * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. */ override fun architectures(architectures: List) { cdkBuilder.architectures(architectures) @@ -768,27 +840,48 @@ public interface CfnFunctionProps { /** * @param architectures The instruction set architecture that the function supports. * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. */ override fun architectures(vararg architectures: String): Unit = architectures(architectures.toList()) /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ override fun code(code: IResolvable) { cdkBuilder.code(code.let(IResolvable.Companion::unwrap)) } /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ override fun code(code: CfnFunction.CodeProperty) { cdkBuilder.code(code.let(CfnFunction.CodeProperty.Companion::unwrap)) } /** - * @param code The code for the function. + * @param code The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c52ce7080f82852b50c083937168f8621fc464d4066a012690476c2b249079b") @@ -798,38 +891,35 @@ public interface CfnFunctionProps { /** * @param codeSigningConfigArn To enable code signing for this function, specify the ARN of a * code-signing configuration. - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. */ override fun codeSigningConfigArn(codeSigningConfigArn: String) { cdkBuilder.codeSigningConfigArn(codeSigningConfigArn) } /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ override fun deadLetterConfig(deadLetterConfig: IResolvable) { cdkBuilder.deadLetterConfig(deadLetterConfig.let(IResolvable.Companion::unwrap)) } /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ override fun deadLetterConfig(deadLetterConfig: CfnFunction.DeadLetterConfigProperty) { cdkBuilder.deadLetterConfig(deadLetterConfig.let(CfnFunction.DeadLetterConfigProperty.Companion::unwrap)) } /** - * @param deadLetterConfig A dead-letter queue configuration that specifies the queue or topic - * where Lambda sends asynchronous events when they fail processing. - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * @param deadLetterConfig The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9d4f1762c765af746c14b00547fb2ca15aa43dcee751128bbc9b947042c57747") @@ -845,24 +935,30 @@ public interface CfnFunctionProps { } /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ override fun environment(environment: IResolvable) { cdkBuilder.environment(environment.let(IResolvable.Companion::unwrap)) } /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ override fun environment(environment: CfnFunction.EnvironmentProperty) { cdkBuilder.environment(environment.let(CfnFunction.EnvironmentProperty.Companion::unwrap)) } /** - * @param environment Environment variables that are accessible from function code during - * execution. + * @param environment A function's environment variable settings. + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b3a85e88e7a4197ee6e1cdb4110e15edcd07a668fdb27de3fb181d90d98778e") @@ -902,10 +998,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ override fun fileSystemConfigs(fileSystemConfigs: IResolvable) { cdkBuilder.fileSystemConfigs(fileSystemConfigs.let(IResolvable.Companion::unwrap)) @@ -918,10 +1012,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ override fun fileSystemConfigs(fileSystemConfigs: List) { cdkBuilder.fileSystemConfigs(fileSystemConfigs.map{CdkObjectWrappers.unwrap(it)}) @@ -934,18 +1026,15 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). */ override fun fileSystemConfigs(vararg fileSystemConfigs: Any): Unit = fileSystemConfigs(fileSystemConfigs.toList()) /** * @param functionName The name of the Lambda function, up to 64 characters in length. - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -960,7 +1049,7 @@ public interface CfnFunctionProps { * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For * more information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). */ override fun handler(handler: String) { cdkBuilder.handler(handler) @@ -970,7 +1059,7 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ override fun imageConfig(imageConfig: IResolvable) { cdkBuilder.imageConfig(imageConfig.let(IResolvable.Companion::unwrap)) @@ -980,7 +1069,7 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ override fun imageConfig(imageConfig: CfnFunction.ImageConfigProperty) { cdkBuilder.imageConfig(imageConfig.let(CfnFunction.ImageConfigProperty.Companion::unwrap)) @@ -990,7 +1079,7 @@ public interface CfnFunctionProps { * @param imageConfig Configuration values that override the container image Dockerfile * settings. * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1997324bc2087618fc0e50de6b9eed554e767b3bbda6d845bbee3db1be1277e6") @@ -998,14 +1087,14 @@ public interface CfnFunctionProps { = imageConfig(CfnFunction.ImageConfigProperty(imageConfig)) /** - * @param kmsKeyArn The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key - * that's used to encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * @param kmsKeyArn The ARN of the KMSlong (KMS) customer managed key that's used to encrypt + * your function's [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. */ override fun kmsKeyArn(kmsKeyArn: String) { @@ -1070,6 +1159,15 @@ public interface CfnFunctionProps { cdkBuilder.packageType(packageType) } + /** + * @param recursiveLoop This property is set to terminate unintended recursions. + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + */ + override fun recursiveLoop(recursiveLoop: String) { + cdkBuilder.recursiveLoop(recursiveLoop) + } + /** * @param reservedConcurrentExecutions The number of simultaneous executions to reserve for the * function. @@ -1087,12 +1185,14 @@ public interface CfnFunctionProps { /** * @param runtime The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. - * The following list includes deprecated runtimes. For more information, see [Runtime - * deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). */ override fun runtime(runtime: String) { cdkBuilder.runtime(runtime) @@ -1102,7 +1202,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ override fun runtimeManagementConfig(runtimeManagementConfig: IResolvable) { cdkBuilder.runtimeManagementConfig(runtimeManagementConfig.let(IResolvable.Companion::unwrap)) @@ -1112,7 +1212,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ override fun runtimeManagementConfig(runtimeManagementConfig: CfnFunction.RuntimeManagementConfigProperty) { @@ -1123,7 +1223,7 @@ public interface CfnFunctionProps { * @param runtimeManagementConfig Sets the runtime management configuration for a function's * version. * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ee237fa0a46e8520d21d94c5b1083490aad6f8069ebae77e7cc99088187b3da4") @@ -1133,24 +1233,24 @@ public interface CfnFunctionProps { runtimeManagementConfig(CfnFunction.RuntimeManagementConfigProperty(runtimeManagementConfig)) /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ override fun snapStart(snapStart: IResolvable) { cdkBuilder.snapStart(snapStart.let(IResolvable.Companion::unwrap)) } /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ override fun snapStart(snapStart: CfnFunction.SnapStartProperty) { cdkBuilder.snapStart(snapStart.let(CfnFunction.SnapStartProperty.Companion::unwrap)) } /** - * @param snapStart The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * @param snapStart The function's + * [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f3c406d178cea826eb1e4103e92ba770b5f74b157127cf053b280c97a7ef5cbc") @@ -1176,31 +1276,34 @@ public interface CfnFunctionProps { * stopping it. * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see * [Lambda execution - * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) . + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). */ override fun timeout(timeout: Number) { cdkBuilder.timeout(timeout) } /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ override fun tracingConfig(tracingConfig: IResolvable) { cdkBuilder.tracingConfig(tracingConfig.let(IResolvable.Companion::unwrap)) } /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ override fun tracingConfig(tracingConfig: CfnFunction.TracingConfigProperty) { cdkBuilder.tracingConfig(tracingConfig.let(CfnFunction.TracingConfigProperty.Companion::unwrap)) } /** - * @param tracingConfig Set `Mode` to `Active` to sample and trace a subset of incoming requests - * with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * @param tracingConfig The function's + * [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To + * sample and record incoming requests, set `Mode` to `Active`. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1617c559ff9d0a323cae6bd48c5daadfd680645588ee9571a1adb94b84a4ce89") @@ -1208,33 +1311,51 @@ public interface CfnFunctionProps { Unit = tracingConfig(CfnFunction.TracingConfigProperty(tracingConfig)) /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ override fun vpcConfig(vpcConfig: IResolvable) { cdkBuilder.vpcConfig(vpcConfig.let(IResolvable.Companion::unwrap)) } /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ override fun vpcConfig(vpcConfig: CfnFunction.VpcConfigProperty) { cdkBuilder.vpcConfig(vpcConfig.let(CfnFunction.VpcConfigProperty.Companion::unwrap)) } /** - * @param vpcConfig For network connectivity to AWS resources in a VPC, specify a list of - * security groups and subnets in the VPC. - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * @param vpcConfig The VPC security groups and subnets that are attached to a Lambda function. + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ac174c422fe09fe59e61bc17b79df1128fc471b376ea523d527a49b2d14fb1fc") @@ -1246,19 +1367,27 @@ public interface CfnFunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnFunctionProps, - ) : CdkObject(cdkObject), CfnFunctionProps { + ) : CdkObject(cdkObject), + CfnFunctionProps { /** * The instruction set architecture that the function supports. * * Enter a string array with one of the valid values (arm64 or x86_64). The default value is - * `x86_64` . + * `x86_64`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures) */ override fun architectures(): List = unwrap(this).getArchitectures() ?: emptyList() /** - * The code for the function. + * The [deployment + * package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda + * function. To deploy a function defined as a container image, you specify the location of a + * container image in the Amazon ECR registry. For a .zip file deployment package, you can specify + * the location of an object in Amazon S3. For Node.js and Python functions, you can specify the + * function code inline in the template. Changes to a deployment package in Amazon S3 or a + * container image in ECR are not detected automatically during stack updates. To update the + * function code, change the object key or version in the template. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code) */ @@ -1267,19 +1396,17 @@ public interface CfnFunctionProps { /** * To enable code signing for this function, specify the ARN of a code-signing configuration. * - * A code-signing configuration - * includes a set of signing profiles, which define the trusted publishers for this function. + * A code-signing configuration includes a set of signing profiles, which define the trusted + * publishers for this function. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn) */ override fun codeSigningConfigArn(): String? = unwrap(this).getCodeSigningConfigArn() /** - * A dead-letter queue configuration that specifies the queue or topic where Lambda sends - * asynchronous events when they fail processing. - * - * For more information, see [Dead-letter - * queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) . + * The [dead-letter + * queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed + * asynchronous invocations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig) */ @@ -1293,7 +1420,11 @@ public interface CfnFunctionProps { override fun description(): String? = unwrap(this).getDescription() /** - * Environment variables that are accessible from function code during execution. + * A function's environment variable settings. + * + * You can use environment variables to adjust your function's behavior without updating code. + * An environment variable is a pair of strings that are stored in a function's version-specific + * configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment) */ @@ -1316,10 +1447,8 @@ public interface CfnFunctionProps { * [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) * resource, you must also specify a `DependsOn` attribute to ensure that the mount target is * created or updated before the function. - * * For more information about using the `DependsOn` attribute, see [DependsOn - * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) - * . + * Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs) */ @@ -1328,8 +1457,7 @@ public interface CfnFunctionProps { /** * The name of the Lambda function, up to 64 characters in length. * - * If you don't specify a name, AWS CloudFormation generates one. - * + * If you don't specify a name, CFN generates one. * If you specify a name, you cannot perform updates that require replacement of this resource. * You can perform updates that require no or some interruption. If you must replace the resource, * specify a new name. @@ -1344,7 +1472,7 @@ public interface CfnFunctionProps { * Handler is required if the deployment package is a .zip file archive. The format includes the * file name. It can also include namespaces and other qualifiers, depending on the runtime. For * more information, see [Lambda programming - * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) . + * model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler) */ @@ -1354,21 +1482,21 @@ public interface CfnFunctionProps { * Configuration values that override the container image Dockerfile settings. * * For more information, see [Container image - * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) . + * settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig) */ override fun imageConfig(): Any? = unwrap(this).getImageConfig() /** - * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to - * encrypt your function's [environment - * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) - * . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) - * is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy - * your function using a container image, Lambda also uses this key to encrypt your function when - * it's deployed. Note that this is not the same key that's used to protect your container image in - * the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, + * The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's + * [environment + * variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + * When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is + * activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your + * function using a container image, Lambda also uses this key to encrypt your function when it's + * deployed. Note that this is not the same key that's used to protect your container image in the + * Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, * Lambda uses a default service key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn) @@ -1412,6 +1540,16 @@ public interface CfnFunctionProps { */ override fun packageType(): String? = unwrap(this).getPackageType() + /** + * This property is set to terminate unintended recursions. + * + * If set to `Terminate`, Lambda detects and terminates unitended recursive loops. If set to + * `Allow` Lambda lets recursions be and does not terminate it. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-recursiveloop) + */ + override fun recursiveLoop(): String? = unwrap(this).getRecursiveLoop() + /** * The number of simultaneous executions to reserve for the function. * @@ -1429,13 +1567,14 @@ public interface CfnFunctionProps { /** * The identifier of the function's - * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is - * required if the deployment package is a .zip file archive. - * - * The following list includes deprecated runtimes. For more information, see [Runtime - * deprecation - * policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) - * . + * [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is + * required if the deployment package is a .zip file archive. Specifying a runtime results in an + * error if you're deploying a function using a container image. The following list includes + * deprecated runtimes. Lambda blocks creating new functions and updating existing functions + * shortly after each runtime is deprecated. For more information, see [Runtime use after + * deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + * For a list of all currently supported runtimes, see [Supported + * runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime) */ @@ -1445,15 +1584,15 @@ public interface CfnFunctionProps { * Sets the runtime management configuration for a function's version. * * For more information, see [Runtime - * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) . + * updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig) */ override fun runtimeManagementConfig(): Any? = unwrap(this).getRuntimeManagementConfig() /** - * The function's [AWS Lambda - * SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. + * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + * setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart) */ @@ -1472,27 +1611,33 @@ public interface CfnFunctionProps { * * The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see * [Lambda execution - * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) . + * environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout) */ override fun timeout(): Number? = unwrap(this).getTimeout() /** - * Set `Mode` to `Active` to sample and trace a subset of incoming requests with - * [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) . + * The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing + * configuration. To sample and record incoming requests, set `Mode` to `Active`. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig) */ override fun tracingConfig(): Any? = unwrap(this).getTracingConfig() /** - * For network connectivity to AWS resources in a VPC, specify a list of security groups and - * subnets in the VPC. + * The VPC security groups and subnets that are attached to a Lambda function. * - * When you connect a function to a VPC, it can access resources and the internet only through - * that VPC. For more information, see [Configuring a Lambda function to access resources in a - * VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) . + * When you connect a function to a VPC, Lambda creates an elastic network interface for each + * combination of security group and subnet in the function's VPC configuration. The function can + * only access resources and the internet through that VPC. For more information, see [VPC + * Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + * When you delete a function, CFN monitors the state of its network interfaces and waits for + * Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network + * interfaces need to be deleted by Lambda before CFN can delete the VPC's resources. + * To monitor network interfaces, CFN needs the `ec2:DescribeNetworkInterfaces` permission. It + * obtains this from the user or role that modifies the stack. If you don't provide this + * permission, CFN does not wait for network interfaces to be deleted. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersion.kt index cffe32161f..1bebc19990 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersion.kt @@ -47,7 +47,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLayerVersion( cdkObject: software.amazon.awscdk.services.lambda.CfnLayerVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -562,7 +563,8 @@ public open class CfnLayerVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnLayerVersion.ContentProperty, - ) : CdkObject(cdkObject), ContentProperty { + ) : CdkObject(cdkObject), + ContentProperty { /** * The Amazon S3 bucket of the layer archive. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermission.kt index 0d522f908b..2af1b8471d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermission.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLayerVersionPermission( cdkObject: software.amazon.awscdk.services.lambda.CfnLayerVersionPermission, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermissionProps.kt index 7a79fa5537..7efd95e72d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionPermissionProps.kt @@ -139,7 +139,8 @@ public interface CfnLayerVersionPermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnLayerVersionPermissionProps, - ) : CdkObject(cdkObject), CfnLayerVersionPermissionProps { + ) : CdkObject(cdkObject), + CfnLayerVersionPermissionProps { /** * The API action that grants access to the layer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionProps.kt index 5d2504d376..cc96327e7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnLayerVersionProps.kt @@ -261,7 +261,8 @@ public interface CfnLayerVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnLayerVersionProps, - ) : CdkObject(cdkObject), CfnLayerVersionProps { + ) : CdkObject(cdkObject), + CfnLayerVersionProps { /** * A list of compatible [instruction set * architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnParametersCodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnParametersCodeProps.kt index afcf251b85..9f6d693180 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnParametersCodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnParametersCodeProps.kt @@ -96,7 +96,8 @@ public interface CfnParametersCodeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnParametersCodeProps, - ) : CdkObject(cdkObject), CfnParametersCodeProps { + ) : CdkObject(cdkObject), + CfnParametersCodeProps { /** * The CloudFormation parameter that represents the name of the S3 Bucket where the Lambda code * will be located in. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermission.kt index c0dd656e47..022964663e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermission.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPermission( cdkObject: software.amazon.awscdk.services.lambda.CfnPermission, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermissionProps.kt index bb0527cd4d..6d53fadee3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnPermissionProps.kt @@ -273,7 +273,8 @@ public interface CfnPermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnPermissionProps, - ) : CdkObject(cdkObject), CfnPermissionProps { + ) : CdkObject(cdkObject), + CfnPermissionProps { /** * The action that the principal can use on the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrl.kt index 0f8d60c92d..f85ac3c53a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrl.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUrl( cdkObject: software.amazon.awscdk.services.lambda.CfnUrl, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -257,8 +258,8 @@ public open class CfnUrl( * * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. @@ -367,8 +368,8 @@ public open class CfnUrl( * * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. @@ -680,7 +681,8 @@ public open class CfnUrl( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnUrl.CorsProperty, - ) : CdkObject(cdkObject), CorsProperty { + ) : CdkObject(cdkObject), + CorsProperty { /** * Whether you want to allow cookies or other credentials in requests to your function URL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrlProps.kt index b3af93012a..9fa3777030 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnUrlProps.kt @@ -89,8 +89,8 @@ public interface CfnUrlProps { * * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. @@ -158,8 +158,8 @@ public interface CfnUrlProps { * @param targetFunctionArn The name of the Lambda function. * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. @@ -236,8 +236,8 @@ public interface CfnUrlProps { * @param targetFunctionArn The name of the Lambda function. * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. @@ -251,7 +251,8 @@ public interface CfnUrlProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnUrlProps, - ) : CdkObject(cdkObject), CfnUrlProps { + ) : CdkObject(cdkObject), + CfnUrlProps { /** * The type of authentication that your function URL uses. * @@ -301,8 +302,8 @@ public interface CfnUrlProps { * * **Name formats** - *Function name* - `my-function` . * - * * *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` . - * * *Partial ARN* - `123456789012:function:my-function` . + * * *Function ARN* - `lambda: : :function:my-function` . + * * *Partial ARN* - `:function:my-function` . * * The length constraint applies only to the full ARN. If you specify only the function name, it * is limited to 64 characters in length. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersion.kt index 2da41a12c9..bb644e34fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersion.kt @@ -29,11 +29,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.lambda.*; + * Object policy; * CfnVersion cfnVersion = CfnVersion.Builder.create(this, "MyCfnVersion") * .functionName("functionName") * // the properties below are optional * .codeSha256("codeSha256") * .description("description") + * .policy(policy) * .provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder() * .provisionedConcurrentExecutions(123) * .build()) @@ -49,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVersion( cdkObject: software.amazon.awscdk.services.lambda.CfnVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -67,7 +70,7 @@ public open class CfnVersion( ) /** - * The ARN of the version. + * The ARN of the function. */ public open fun attrFunctionArn(): String = unwrap(this).getAttrFunctionArn() @@ -121,6 +124,18 @@ public open class CfnVersion( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The resource policy of your function. + */ + public open fun policy(): Any? = unwrap(this).getPolicy() + + /** + * The resource policy of your function. + */ + public open fun policy(`value`: Any) { + unwrap(this).setPolicy(`value`) + } + /** * Specifies a provisioned concurrency configuration for a function's version. */ @@ -222,6 +237,14 @@ public open class CfnVersion( */ public fun functionName(functionName: String) + /** + * The resource policy of your function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-policy) + * @param policy The resource policy of your function. + */ + public fun policy(policy: Any) + /** * Specifies a provisioned concurrency configuration for a function's version. * @@ -338,6 +361,16 @@ public open class CfnVersion( cdkBuilder.functionName(functionName) } + /** + * The resource policy of your function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-policy) + * @param policy The resource policy of your function. + */ + override fun policy(policy: Any) { + cdkBuilder.policy(policy) + } + /** * Specifies a provisioned concurrency configuration for a function's version. * @@ -495,7 +528,8 @@ public open class CfnVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnVersion.ProvisionedConcurrencyConfigurationProperty, - ) : CdkObject(cdkObject), ProvisionedConcurrencyConfigurationProperty { + ) : CdkObject(cdkObject), + ProvisionedConcurrencyConfigurationProperty { /** * The amount of provisioned concurrency to allocate for the version. * @@ -602,7 +636,8 @@ public open class CfnVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnVersion.RuntimePolicyProperty, - ) : CdkObject(cdkObject), RuntimePolicyProperty { + ) : CdkObject(cdkObject), + RuntimePolicyProperty { /** * The ARN of the runtime the function is configured to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersionProps.kt index 1ec73b86a8..5a245aba3c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CfnVersionProps.kt @@ -20,11 +20,13 @@ import kotlin.jvm.JvmName * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.lambda.*; + * Object policy; * CfnVersionProps cfnVersionProps = CfnVersionProps.builder() * .functionName("functionName") * // the properties below are optional * .codeSha256("codeSha256") * .description("description") + * .policy(policy) * .provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder() * .provisionedConcurrentExecutions(123) * .build()) @@ -73,6 +75,13 @@ public interface CfnVersionProps { */ public fun functionName(): String + /** + * The resource policy of your function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-policy) + */ + public fun policy(): Any? = unwrap(this).getPolicy() + /** * Specifies a provisioned concurrency configuration for a function's version. * @@ -121,6 +130,11 @@ public interface CfnVersionProps { */ public fun functionName(functionName: String) + /** + * @param policy The resource policy of your function. + */ + public fun policy(policy: Any) + /** * @param provisionedConcurrencyConfig Specifies a provisioned concurrency configuration for a * function's version. @@ -201,6 +215,13 @@ public interface CfnVersionProps { cdkBuilder.functionName(functionName) } + /** + * @param policy The resource policy of your function. + */ + override fun policy(policy: Any) { + cdkBuilder.policy(policy) + } + /** * @param provisionedConcurrencyConfig Specifies a provisioned concurrency configuration for a * function's version. @@ -259,7 +280,8 @@ public interface CfnVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CfnVersionProps, - ) : CdkObject(cdkObject), CfnVersionProps { + ) : CdkObject(cdkObject), + CfnVersionProps { /** * Only publish a version if the hash value matches the value that's specified. * @@ -294,6 +316,13 @@ public interface CfnVersionProps { */ override fun functionName(): String = unwrap(this).getFunctionName() + /** + * The resource policy of your function. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-policy) + */ + override fun policy(): Any? = unwrap(this).getPolicy() + /** * Specifies a provisioned concurrency configuration for a function's version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Code.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Code.kt index 3677fdafc2..5b01eaf942 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Code.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Code.kt @@ -11,6 +11,7 @@ import io.cloudshiftdev.awscdk.services.s3.assets.AssetOptions import io.cloudshiftdev.constructs.Construct import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName /** @@ -140,6 +141,25 @@ public abstract class Code( public fun fromCfnParameters(props: CfnParametersCodeProps.Builder.() -> Unit): CfnParametersCode = fromCfnParameters(CfnParametersCodeProps(props)) + public fun fromCustomCommand(output: String, command: List): AssetCode = + software.amazon.awscdk.services.lambda.Code.fromCustomCommand(output, + command).let(AssetCode::wrap) + + public fun fromCustomCommand( + output: String, + command: List, + options: CustomCommandOptions, + ): AssetCode = software.amazon.awscdk.services.lambda.Code.fromCustomCommand(output, command, + options.let(CustomCommandOptions.Companion::unwrap)).let(AssetCode::wrap) + + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("39ac8f525c66132d5b8a65e2d8901aaac4de2cc56c22bd623d3d02f93e442c6f") + public fun fromCustomCommand( + output: String, + command: List, + options: CustomCommandOptions.Builder.() -> Unit, + ): AssetCode = fromCustomCommand(output, command, CustomCommandOptions(options)) + public fun fromDockerBuild(path: String): AssetCode = software.amazon.awscdk.services.lambda.Code.fromDockerBuild(path).let(AssetCode::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeConfig.kt index 001a83cd4b..53479accab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeConfig.kt @@ -148,7 +148,8 @@ public interface CodeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CodeConfig, - ) : CdkObject(cdkObject), CodeConfig { + ) : CdkObject(cdkObject), + CodeConfig { /** * Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeImageConfig.kt index c005440dd6..02767c4949 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeImageConfig.kt @@ -170,7 +170,8 @@ public interface CodeImageConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CodeImageConfig, - ) : CdkObject(cdkObject), CodeImageConfig { + ) : CdkObject(cdkObject), + CodeImageConfig { /** * Specify or override the CMD on the specified Docker image or Dockerfile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfig.kt index 928dba89ff..62e322a4b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfig.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CodeSigningConfig( cdkObject: software.amazon.awscdk.services.lambda.CodeSigningConfig, -) : Resource(cdkObject), ICodeSigningConfig { +) : Resource(cdkObject), + ICodeSigningConfig { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfigProps.kt index 2561169196..8afdc0a635 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CodeSigningConfigProps.kt @@ -136,7 +136,8 @@ public interface CodeSigningConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.CodeSigningConfigProps, - ) : CdkObject(cdkObject), CodeSigningConfigProps { + ) : CdkObject(cdkObject), + CodeSigningConfigProps { /** * Code signing configuration description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CustomCommandOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CustomCommandOptions.kt new file mode 100644 index 0000000000..e8e90d52e6 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/CustomCommandOptions.kt @@ -0,0 +1,440 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.lambda + +import io.cloudshiftdev.awscdk.AssetHashType +import io.cloudshiftdev.awscdk.BundlingOptions +import io.cloudshiftdev.awscdk.IgnoreMode +import io.cloudshiftdev.awscdk.SymlinkFollowMode +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.IGrantable +import io.cloudshiftdev.awscdk.services.s3.assets.AssetOptions +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Options for creating `AssetCode` with a custom command, such as running a buildfile. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.iam.*; + * import io.cloudshiftdev.awscdk.services.lambda.*; + * Object commandOptions; + * DockerImage dockerImage; + * IGrantable grantable; + * ILocalBundling localBundling; + * CustomCommandOptions customCommandOptions = CustomCommandOptions.builder() + * .assetHash("assetHash") + * .assetHashType(AssetHashType.SOURCE) + * .bundling(BundlingOptions.builder() + * .image(dockerImage) + * // the properties below are optional + * .bundlingFileAccess(BundlingFileAccess.VOLUME_COPY) + * .command(List.of("command")) + * .entrypoint(List.of("entrypoint")) + * .environment(Map.of( + * "environmentKey", "environment")) + * .local(localBundling) + * .network("network") + * .outputType(BundlingOutput.ARCHIVED) + * .platform("platform") + * .securityOpt("securityOpt") + * .user("user") + * .volumes(List.of(DockerVolume.builder() + * .containerPath("containerPath") + * .hostPath("hostPath") + * // the properties below are optional + * .consistency(DockerVolumeConsistency.CONSISTENT) + * .build())) + * .volumesFrom(List.of("volumesFrom")) + * .workingDirectory("workingDirectory") + * .build()) + * .commandOptions(Map.of( + * "commandOptionsKey", commandOptions)) + * .deployTime(false) + * .exclude(List.of("exclude")) + * .followSymlinks(SymlinkFollowMode.NEVER) + * .ignoreMode(IgnoreMode.GLOB) + * .readers(List.of(grantable)) + * .build(); + * ``` + */ +public interface CustomCommandOptions : AssetOptions { + /** + * options that are passed to the spawned process, which determine the characteristics of the + * spawned process. + * + * Default: : see `child_process.SpawnSyncOptions` + * (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options). + */ + public fun commandOptions(): Map = unwrap(this).getCommandOptions() ?: emptyMap() + + /** + * A builder for [CustomCommandOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param assetHash Specify a custom hash for this asset. + * If `assetHashType` is set it must + * be set to `AssetHashType.CUSTOM`. For consistency, this custom hash will + * be SHA256 hashed and encoded as hex. The resulting hash will be the asset + * hash. + * + * NOTE: the hash is used in order to identify a specific revision of the asset, and + * used for optimizing and caching deployment activities related to this asset such as + * packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will + * need to make sure it is updated every time the asset changes, or otherwise it is + * possible that some deployments will not be invalidated. + */ + public fun assetHash(assetHash: String) + + /** + * @param assetHashType Specifies the type of hash to calculate for this asset. + * If `assetHash` is configured, this option must be `undefined` or + * `AssetHashType.CUSTOM`. + */ + public fun assetHashType(assetHashType: AssetHashType) + + /** + * @param bundling Bundle the asset by executing a command in a Docker container or a custom + * bundling provider. + * The asset path will be mounted at `/asset-input`. The Docker + * container is responsible for putting content at `/asset-output`. + * The content at `/asset-output` will be zipped and used as the + * final asset. + */ + public fun bundling(bundling: BundlingOptions) + + /** + * @param bundling Bundle the asset by executing a command in a Docker container or a custom + * bundling provider. + * The asset path will be mounted at `/asset-input`. The Docker + * container is responsible for putting content at `/asset-output`. + * The content at `/asset-output` will be zipped and used as the + * final asset. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("219c67f7594466908836e3c204acb291a5bb9f08cb9cfa818052b029d95e6407") + public fun bundling(bundling: BundlingOptions.Builder.() -> Unit) + + /** + * @param commandOptions options that are passed to the spawned process, which determine the + * characteristics of the spawned process. + */ + public fun commandOptions(commandOptions: Map) + + /** + * @param deployTime Whether or not the asset needs to exist beyond deployment time;. + * i.e. + * are copied over to a different location and not needed afterwards. + * Setting this property to true has an impact on the lifecycle of the asset, + * because we will assume that it is safe to delete after the CloudFormation + * deployment succeeds. + * + * For example, Lambda Function assets are copied over to Lambda during + * deployment. Therefore, it is not necessary to store the asset in S3, so + * we consider those deployTime assets. + */ + public fun deployTime(deployTime: Boolean) + + /** + * @param exclude File paths matching the patterns will be excluded. + * See `ignoreMode` to set the matching behavior. + * Has no effect on Assets bundled using the `bundling` property. + */ + public fun exclude(exclude: List) + + /** + * @param exclude File paths matching the patterns will be excluded. + * See `ignoreMode` to set the matching behavior. + * Has no effect on Assets bundled using the `bundling` property. + */ + public fun exclude(vararg exclude: String) + + /** + * @param followSymlinks A strategy for how to handle symlinks. + */ + public fun followSymlinks(followSymlinks: SymlinkFollowMode) + + /** + * @param ignoreMode The ignore behavior to use for `exclude` patterns. + */ + public fun ignoreMode(ignoreMode: IgnoreMode) + + /** + * @param readers A list of principals that should be able to read this asset from S3. + * You can use `asset.grantRead(principal)` to grant read permissions later. + */ + public fun readers(readers: List) + + /** + * @param readers A list of principals that should be able to read this asset from S3. + * You can use `asset.grantRead(principal)` to grant read permissions later. + */ + public fun readers(vararg readers: IGrantable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.lambda.CustomCommandOptions.Builder = + software.amazon.awscdk.services.lambda.CustomCommandOptions.builder() + + /** + * @param assetHash Specify a custom hash for this asset. + * If `assetHashType` is set it must + * be set to `AssetHashType.CUSTOM`. For consistency, this custom hash will + * be SHA256 hashed and encoded as hex. The resulting hash will be the asset + * hash. + * + * NOTE: the hash is used in order to identify a specific revision of the asset, and + * used for optimizing and caching deployment activities related to this asset such as + * packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will + * need to make sure it is updated every time the asset changes, or otherwise it is + * possible that some deployments will not be invalidated. + */ + override fun assetHash(assetHash: String) { + cdkBuilder.assetHash(assetHash) + } + + /** + * @param assetHashType Specifies the type of hash to calculate for this asset. + * If `assetHash` is configured, this option must be `undefined` or + * `AssetHashType.CUSTOM`. + */ + override fun assetHashType(assetHashType: AssetHashType) { + cdkBuilder.assetHashType(assetHashType.let(AssetHashType.Companion::unwrap)) + } + + /** + * @param bundling Bundle the asset by executing a command in a Docker container or a custom + * bundling provider. + * The asset path will be mounted at `/asset-input`. The Docker + * container is responsible for putting content at `/asset-output`. + * The content at `/asset-output` will be zipped and used as the + * final asset. + */ + override fun bundling(bundling: BundlingOptions) { + cdkBuilder.bundling(bundling.let(BundlingOptions.Companion::unwrap)) + } + + /** + * @param bundling Bundle the asset by executing a command in a Docker container or a custom + * bundling provider. + * The asset path will be mounted at `/asset-input`. The Docker + * container is responsible for putting content at `/asset-output`. + * The content at `/asset-output` will be zipped and used as the + * final asset. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("219c67f7594466908836e3c204acb291a5bb9f08cb9cfa818052b029d95e6407") + override fun bundling(bundling: BundlingOptions.Builder.() -> Unit): Unit = + bundling(BundlingOptions(bundling)) + + /** + * @param commandOptions options that are passed to the spawned process, which determine the + * characteristics of the spawned process. + */ + override fun commandOptions(commandOptions: Map) { + cdkBuilder.commandOptions(commandOptions.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param deployTime Whether or not the asset needs to exist beyond deployment time;. + * i.e. + * are copied over to a different location and not needed afterwards. + * Setting this property to true has an impact on the lifecycle of the asset, + * because we will assume that it is safe to delete after the CloudFormation + * deployment succeeds. + * + * For example, Lambda Function assets are copied over to Lambda during + * deployment. Therefore, it is not necessary to store the asset in S3, so + * we consider those deployTime assets. + */ + override fun deployTime(deployTime: Boolean) { + cdkBuilder.deployTime(deployTime) + } + + /** + * @param exclude File paths matching the patterns will be excluded. + * See `ignoreMode` to set the matching behavior. + * Has no effect on Assets bundled using the `bundling` property. + */ + override fun exclude(exclude: List) { + cdkBuilder.exclude(exclude) + } + + /** + * @param exclude File paths matching the patterns will be excluded. + * See `ignoreMode` to set the matching behavior. + * Has no effect on Assets bundled using the `bundling` property. + */ + override fun exclude(vararg exclude: String): Unit = exclude(exclude.toList()) + + /** + * @param followSymlinks A strategy for how to handle symlinks. + */ + override fun followSymlinks(followSymlinks: SymlinkFollowMode) { + cdkBuilder.followSymlinks(followSymlinks.let(SymlinkFollowMode.Companion::unwrap)) + } + + /** + * @param ignoreMode The ignore behavior to use for `exclude` patterns. + */ + override fun ignoreMode(ignoreMode: IgnoreMode) { + cdkBuilder.ignoreMode(ignoreMode.let(IgnoreMode.Companion::unwrap)) + } + + /** + * @param readers A list of principals that should be able to read this asset from S3. + * You can use `asset.grantRead(principal)` to grant read permissions later. + */ + override fun readers(readers: List) { + cdkBuilder.readers(readers.map(IGrantable.Companion::unwrap)) + } + + /** + * @param readers A list of principals that should be able to read this asset from S3. + * You can use `asset.grantRead(principal)` to grant read permissions later. + */ + override fun readers(vararg readers: IGrantable): Unit = readers(readers.toList()) + + public fun build(): software.amazon.awscdk.services.lambda.CustomCommandOptions = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.lambda.CustomCommandOptions, + ) : CdkObject(cdkObject), + CustomCommandOptions { + /** + * Specify a custom hash for this asset. + * + * If `assetHashType` is set it must + * be set to `AssetHashType.CUSTOM`. For consistency, this custom hash will + * be SHA256 hashed and encoded as hex. The resulting hash will be the asset + * hash. + * + * NOTE: the hash is used in order to identify a specific revision of the asset, and + * used for optimizing and caching deployment activities related to this asset such as + * packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will + * need to make sure it is updated every time the asset changes, or otherwise it is + * possible that some deployments will not be invalidated. + * + * Default: - based on `assetHashType` + */ + override fun assetHash(): String? = unwrap(this).getAssetHash() + + /** + * Specifies the type of hash to calculate for this asset. + * + * If `assetHash` is configured, this option must be `undefined` or + * `AssetHashType.CUSTOM`. + * + * Default: - the default is `AssetHashType.SOURCE`, but if `assetHash` is + * explicitly specified this value defaults to `AssetHashType.CUSTOM`. + */ + override fun assetHashType(): AssetHashType? = + unwrap(this).getAssetHashType()?.let(AssetHashType::wrap) + + /** + * Bundle the asset by executing a command in a Docker container or a custom bundling provider. + * + * The asset path will be mounted at `/asset-input`. The Docker + * container is responsible for putting content at `/asset-output`. + * The content at `/asset-output` will be zipped and used as the + * final asset. + * + * Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, + * archived into a .zip file and uploaded to S3 otherwise + */ + override fun bundling(): BundlingOptions? = + unwrap(this).getBundling()?.let(BundlingOptions::wrap) + + /** + * options that are passed to the spawned process, which determine the characteristics of the + * spawned process. + * + * Default: : see `child_process.SpawnSyncOptions` + * (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options). + */ + override fun commandOptions(): Map = unwrap(this).getCommandOptions() ?: emptyMap() + + /** + * Whether or not the asset needs to exist beyond deployment time; + * + * i.e. + * are copied over to a different location and not needed afterwards. + * Setting this property to true has an impact on the lifecycle of the asset, + * because we will assume that it is safe to delete after the CloudFormation + * deployment succeeds. + * + * For example, Lambda Function assets are copied over to Lambda during + * deployment. Therefore, it is not necessary to store the asset in S3, so + * we consider those deployTime assets. + * + * Default: false + */ + override fun deployTime(): Boolean? = unwrap(this).getDeployTime() + + /** + * File paths matching the patterns will be excluded. + * + * See `ignoreMode` to set the matching behavior. + * Has no effect on Assets bundled using the `bundling` property. + * + * Default: - nothing is excluded + */ + override fun exclude(): List = unwrap(this).getExclude() ?: emptyList() + + /** + * A strategy for how to handle symlinks. + * + * Default: SymlinkFollowMode.NEVER + */ + override fun followSymlinks(): SymlinkFollowMode? = + unwrap(this).getFollowSymlinks()?.let(SymlinkFollowMode::wrap) + + /** + * The ignore behavior to use for `exclude` patterns. + * + * Default: IgnoreMode.GLOB + */ + override fun ignoreMode(): IgnoreMode? = unwrap(this).getIgnoreMode()?.let(IgnoreMode::wrap) + + /** + * A list of principals that should be able to read this asset from S3. + * + * You can use `asset.grantRead(principal)` to grant read permissions later. + * + * Default: - No principals that can read file asset. + */ + override fun readers(): List = unwrap(this).getReaders()?.map(IGrantable::wrap) ?: + emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CustomCommandOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.lambda.CustomCommandOptions): + CustomCommandOptions = CdkObjectWrappers.wrap(cdkObject) as? CustomCommandOptions ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CustomCommandOptions): + software.amazon.awscdk.services.lambda.CustomCommandOptions = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.lambda.CustomCommandOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationConfig.kt index 460532eace..652ca7efaa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationConfig.kt @@ -56,7 +56,8 @@ public interface DestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.DestinationConfig, - ) : CdkObject(cdkObject), DestinationConfig { + ) : CdkObject(cdkObject), + DestinationConfig { /** * The Amazon Resource Name (ARN) of the destination resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationOptions.kt index 81a5e36055..62ebccd17d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DestinationOptions.kt @@ -55,7 +55,8 @@ public interface DestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.DestinationOptions, - ) : CdkObject(cdkObject), DestinationOptions { + ) : CdkObject(cdkObject), + DestinationOptions { /** * The destination type. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DlqDestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DlqDestinationConfig.kt index ab7b310469..2734db1e65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DlqDestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DlqDestinationConfig.kt @@ -56,7 +56,8 @@ public interface DlqDestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.DlqDestinationConfig, - ) : CdkObject(cdkObject), DlqDestinationConfig { + ) : CdkObject(cdkObject), + DlqDestinationConfig { /** * The Amazon Resource Name (ARN) of the destination resource. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerBuildAssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerBuildAssetOptions.kt index ab590dfc2e..aa9634c73f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerBuildAssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerBuildAssetOptions.kt @@ -224,7 +224,8 @@ public interface DockerBuildAssetOptions : DockerBuildOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.DockerBuildAssetOptions, - ) : CdkObject(cdkObject), DockerBuildAssetOptions { + ) : CdkObject(cdkObject), + DockerBuildAssetOptions { /** * Build args. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunction.kt index defcf4a6c1..f28b09fe1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunction.kt @@ -17,6 +17,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -87,7 +88,23 @@ public open class DockerImageFunction( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -97,7 +114,8 @@ public open class DockerImageFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -115,14 +133,25 @@ public open class DockerImageFunction( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -369,12 +398,14 @@ public open class DockerImageFunction( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -560,6 +591,17 @@ public open class DockerImageFunction( */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -654,14 +696,25 @@ public open class DockerImageFunction( public fun snapStart(snapStart: SnapStartConf) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -765,7 +818,25 @@ public open class DockerImageFunction( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -775,7 +846,8 @@ public open class DockerImageFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -797,16 +869,29 @@ public open class DockerImageFunction( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -1091,12 +1176,14 @@ public open class DockerImageFunction( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1309,6 +1396,19 @@ public open class DockerImageFunction( cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1416,16 +1516,29 @@ public open class DockerImageFunction( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunctionProps.kt index 87f43bc688..2f2571128e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/DockerImageFunctionProps.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -68,7 +69,19 @@ public interface DockerImageFunctionProps : FunctionOptions { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -86,9 +99,16 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -234,7 +254,9 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -357,6 +379,12 @@ public interface DockerImageFunctionProps : FunctionOptions { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -412,9 +440,16 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -481,7 +516,21 @@ public interface DockerImageFunctionProps : FunctionOptions { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -503,11 +552,20 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -691,7 +749,9 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -841,6 +901,14 @@ public interface DockerImageFunctionProps : FunctionOptions { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -909,11 +977,20 @@ public interface DockerImageFunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -971,7 +1048,8 @@ public interface DockerImageFunctionProps : FunctionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.DockerImageFunctionProps, - ) : CdkObject(cdkObject), DockerImageFunctionProps { + ) : CdkObject(cdkObject), + DockerImageFunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -983,7 +1061,21 @@ public interface DockerImageFunctionProps : FunctionOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1008,12 +1100,23 @@ public interface DockerImageFunctionProps : FunctionOptions { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1180,10 +1283,13 @@ public interface DockerImageFunctionProps : FunctionOptions { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1330,6 +1436,16 @@ public interface DockerImageFunctionProps : FunctionOptions { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1398,12 +1514,23 @@ public interface DockerImageFunctionProps : FunctionOptions { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EcrImageCodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EcrImageCodeProps.kt index 9a5aaf379a..74af41502e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EcrImageCodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EcrImageCodeProps.kt @@ -203,7 +203,8 @@ public interface EcrImageCodeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EcrImageCodeProps, - ) : CdkObject(cdkObject), EcrImageCodeProps { + ) : CdkObject(cdkObject), + EcrImageCodeProps { /** * Specify or override the CMD on the specified Docker image or Dockerfile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EnvironmentOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EnvironmentOptions.kt index 99e00b281f..241e2df2eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EnvironmentOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EnvironmentOptions.kt @@ -66,7 +66,8 @@ public interface EnvironmentOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EnvironmentOptions, - ) : CdkObject(cdkObject), EnvironmentOptions { + ) : CdkObject(cdkObject), + EnvironmentOptions { /** * When used in Lambda@Edge via edgeArn() API, these environment variables will be removed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigOptions.kt index 14c03d1b0e..c077303d86 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigOptions.kt @@ -137,7 +137,8 @@ public interface EventInvokeConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EventInvokeConfigOptions, - ) : CdkObject(cdkObject), EventInvokeConfigOptions { + ) : CdkObject(cdkObject), + EventInvokeConfigOptions { /** * The maximum age of a request that Lambda sends to a function for processing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigProps.kt index fb4777ebb3..65bb7b4190 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventInvokeConfigProps.kt @@ -144,7 +144,8 @@ public interface EventInvokeConfigProps : EventInvokeConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EventInvokeConfigProps, - ) : CdkObject(cdkObject), EventInvokeConfigProps { + ) : CdkObject(cdkObject), + EventInvokeConfigProps { /** * The Lambda function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMapping.kt index 995166e563..e421223ae7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMapping.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.lambda import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.Resource import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Any import kotlin.Boolean import kotlin.Number @@ -38,10 +39,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.lambda.*; * IEventSourceDlq eventSourceDlq; * Object filters; * Function function_; + * Key key; * SourceAccessConfigurationType sourceAccessConfigurationType; * EventSourceMapping eventSourceMapping = EventSourceMapping.Builder.create(this, * "MyEventSourceMapping") @@ -51,6 +54,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .bisectBatchOnError(false) * .enabled(false) * .eventSourceArn("eventSourceArn") + * .filterEncryption(key) * .filters(List.of(Map.of( * "filtersKey", filters))) * .kafkaBootstrapServers(List.of("kafkaBootstrapServers")) @@ -76,7 +80,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EventSourceMapping( cdkObject: software.amazon.awscdk.services.lambda.EventSourceMapping, -) : Resource(cdkObject), IEventSourceMapping { +) : Resource(cdkObject), + IEventSourceMapping { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -158,6 +163,16 @@ public open class EventSourceMapping( */ public fun eventSourceArn(eventSourceArn: String) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria to Event Source. * @@ -469,6 +484,18 @@ public open class EventSourceMapping( cdkBuilder.eventSourceArn(eventSourceArn) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingOptions.kt index 69c76089e7..9652efe339 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingOptions.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Any import kotlin.Boolean import kotlin.Number @@ -21,15 +22,18 @@ import kotlin.collections.Map * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.lambda.*; * IEventSourceDlq eventSourceDlq; * Object filters; + * Key key; * SourceAccessConfigurationType sourceAccessConfigurationType; * EventSourceMappingOptions eventSourceMappingOptions = EventSourceMappingOptions.builder() * .batchSize(123) * .bisectBatchOnError(false) * .enabled(false) * .eventSourceArn("eventSourceArn") + * .filterEncryption(key) * .filters(List.of(Map.of( * "filtersKey", filters))) * .kafkaBootstrapServers(List.of("kafkaBootstrapServers")) @@ -93,6 +97,15 @@ public interface EventSourceMappingOptions { */ public fun eventSourceArn(): String? = unwrap(this).getEventSourceArn() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + public fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * @@ -297,6 +310,11 @@ public interface EventSourceMappingOptions { */ public fun eventSourceArn(eventSourceArn: String) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria to Event Source. */ @@ -470,6 +488,13 @@ public interface EventSourceMappingOptions { cdkBuilder.eventSourceArn(eventSourceArn) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria to Event Source. */ @@ -643,7 +668,8 @@ public interface EventSourceMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EventSourceMappingOptions, - ) : CdkObject(cdkObject), EventSourceMappingOptions { + ) : CdkObject(cdkObject), + EventSourceMappingOptions { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -683,6 +709,15 @@ public interface EventSourceMappingOptions { */ override fun eventSourceArn(): String? = unwrap(this).getEventSourceArn() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingProps.kt index 6b6484850e..06f01ef709 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/EventSourceMappingProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Any import kotlin.Boolean import kotlin.Number @@ -23,10 +24,12 @@ import kotlin.collections.Map * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.lambda.*; * IEventSourceDlq eventSourceDlq; * Object filters; * Function function_; + * Key key; * SourceAccessConfigurationType sourceAccessConfigurationType; * EventSourceMappingProps eventSourceMappingProps = EventSourceMappingProps.builder() * .target(function_) @@ -35,6 +38,7 @@ import kotlin.collections.Map * .bisectBatchOnError(false) * .enabled(false) * .eventSourceArn("eventSourceArn") + * .filterEncryption(key) * .filters(List.of(Map.of( * "filtersKey", filters))) * .kafkaBootstrapServers(List.of("kafkaBootstrapServers")) @@ -96,6 +100,11 @@ public interface EventSourceMappingProps : EventSourceMappingOptions { */ public fun eventSourceArn(eventSourceArn: String) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria to Event Source. */ @@ -274,6 +283,13 @@ public interface EventSourceMappingProps : EventSourceMappingOptions { cdkBuilder.eventSourceArn(eventSourceArn) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria to Event Source. */ @@ -454,7 +470,8 @@ public interface EventSourceMappingProps : EventSourceMappingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.EventSourceMappingProps, - ) : CdkObject(cdkObject), EventSourceMappingProps { + ) : CdkObject(cdkObject), + EventSourceMappingProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -494,6 +511,15 @@ public interface EventSourceMappingProps : EventSourceMappingOptions { */ override fun eventSourceArn(): String? = unwrap(this).getEventSourceArn() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FileSystemConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FileSystemConfig.kt index 4494f01b68..fecf3405bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FileSystemConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FileSystemConfig.kt @@ -182,7 +182,8 @@ public interface FileSystemConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FileSystemConfig, - ) : CdkObject(cdkObject), FileSystemConfig { + ) : CdkObject(cdkObject), + FileSystemConfig { /** * ARN of the access point. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterCriteria.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterCriteria.kt index f0ad8fbbfb..782de36313 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterCriteria.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterCriteria.kt @@ -14,19 +14,17 @@ import kotlin.collections.Map * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.lambda.eventsources.DynamoEventSource; + * Table table; * Function fn; - * Table table = Table.Builder.create(this, "Table") - * .partitionKey(Attribute.builder() - * .name("id") - * .type(AttributeType.STRING) - * .build()) - * .stream(StreamViewType.NEW_IMAGE) - * .build(); * fn.addEventSource(DynamoEventSource.Builder.create(table) * .startingPosition(StartingPosition.LATEST) - * .filters(List.of(FilterCriteria.filter(Map.of("eventName", FilterRule.isEqual("INSERT"))))) + * .filters(List.of(FilterCriteria.filter(Map.of( + * "eventName", FilterRule.isEqual("INSERT"), + * "dynamodb", Map.of( + * "NewImage", Map.of( + * "id", Map.of("BOOL", FilterRule.isEqual(true)))))))) * .build()); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterRule.kt index 42d3208327..1aaa783dc8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FilterRule.kt @@ -16,19 +16,17 @@ import kotlin.collections.Map * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; * import io.cloudshiftdev.awscdk.services.dynamodb.*; + * import io.cloudshiftdev.awscdk.services.lambda.eventsources.DynamoEventSource; + * Table table; * Function fn; - * Table table = Table.Builder.create(this, "Table") - * .partitionKey(Attribute.builder() - * .name("id") - * .type(AttributeType.STRING) - * .build()) - * .stream(StreamViewType.NEW_IMAGE) - * .build(); * fn.addEventSource(DynamoEventSource.Builder.create(table) * .startingPosition(StartingPosition.LATEST) - * .filters(List.of(FilterCriteria.filter(Map.of("eventName", FilterRule.isEqual("INSERT"))))) + * .filters(List.of(FilterCriteria.filter(Map.of( + * "eventName", FilterRule.isEqual("INSERT"), + * "dynamodb", Map.of( + * "NewImage", Map.of( + * "id", Map.of("BOOL", FilterRule.isEqual(true)))))))) * .build()); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Function.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Function.kt index e608db0028..89e03f787e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Function.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Function.kt @@ -22,6 +22,7 @@ import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import io.cloudshiftdev.constructs.Node import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -343,7 +344,23 @@ public open class Function( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -353,7 +370,8 @@ public open class Function( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -371,14 +389,25 @@ public open class Function( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -644,12 +673,14 @@ public open class Function( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -835,6 +866,17 @@ public open class Function( */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -941,14 +983,25 @@ public open class Function( public fun snapStart(snapStart: SnapStartConf) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -1052,7 +1105,25 @@ public open class Function( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1062,7 +1133,8 @@ public open class Function( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -1084,16 +1156,29 @@ public open class Function( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -1399,12 +1484,14 @@ public open class Function( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1617,6 +1704,19 @@ public open class Function( cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1738,16 +1838,29 @@ public open class Function( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionAttributes.kt index 2278aea688..ed3342cc0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionAttributes.kt @@ -234,7 +234,8 @@ public interface FunctionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionAttributes, - ) : CdkObject(cdkObject), FunctionAttributes { + ) : CdkObject(cdkObject), + FunctionAttributes { /** * The architecture of this Lambda Function (this is an optional attribute and defaults to * X86_64). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionBase.kt index 439bcccf0d..83355b2968 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionBase.kt @@ -28,7 +28,9 @@ import kotlin.jvm.JvmName */ public abstract class FunctionBase( cdkObject: software.amazon.awscdk.services.lambda.FunctionBase, -) : Resource(cdkObject), IFunction, IClientVpnConnectionHandler { +) : Resource(cdkObject), + IFunction, + IClientVpnConnectionHandler { /** * Adds an event source to this function. * @@ -214,6 +216,15 @@ public abstract class FunctionBase( List = unwrap(this).grantInvokeCompositePrincipal(compositePrincipal.let(CompositePrincipal.Companion::unwrap)).map(Grant::wrap) + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param grantee + */ + public override fun grantInvokeLatestVersion(grantee: IGrantable): Grant = + unwrap(this).grantInvokeLatestVersion(grantee.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -222,6 +233,16 @@ public abstract class FunctionBase( public override fun grantInvokeUrl(grantee: IGrantable): Grant = unwrap(this).grantInvokeUrl(grantee.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param grantee + * @param version + */ + public override fun grantInvokeVersion(grantee: IGrantable, version: IVersion): Grant = + unwrap(this).grantInvokeVersion(grantee.let(IGrantable.Companion::unwrap), + version.let(IVersion.Companion::unwrap)).let(Grant::wrap) + /** * The principal this Lambda Function is running as. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionOptions.kt index 530fb8b865..da114cc86b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionOptions.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -71,9 +72,11 @@ import kotlin.jvm.JvmName * .execWrapper(AdotLambdaExecWrapper.REGULAR_HANDLER) * .layerVersion(adotLayerVersion) * .build()) + * .allowAllIpv6Outbound(false) * .allowAllOutbound(false) * .allowPublicSubnet(false) * .applicationLogLevel("applicationLogLevel") + * .applicationLogLevelV2(ApplicationLogLevel.INFO) * .architecture(architecture) * .codeSigningConfig(codeSigningConfig) * .currentVersionOptions(VersionOptions.builder() @@ -117,6 +120,7 @@ import kotlin.jvm.JvmName * .paramsAndSecrets(paramsAndSecretsLayerVersion) * .profiling(false) * .profilingGroup(profilingGroup) + * .recursiveLoop(RecursiveLoop.ALLOW) * .reservedConcurrentExecutions(123) * .retryAttempts(123) * .role(role) @@ -124,6 +128,7 @@ import kotlin.jvm.JvmName * .securityGroups(List.of(securityGroup)) * .snapStart(snapStartConf) * .systemLogLevel("systemLogLevel") + * .systemLogLevelV2(SystemLogLevel.INFO) * .timeout(Duration.minutes(30)) * .tracing(Tracing.ACTIVE) * .vpc(vpc) @@ -150,7 +155,21 @@ public interface FunctionOptions : EventInvokeConfigOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + public fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -175,12 +194,23 @@ public interface FunctionOptions : EventInvokeConfigOptions { public fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + public fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -336,10 +366,13 @@ public interface FunctionOptions : EventInvokeConfigOptions { emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -461,6 +494,16 @@ public interface FunctionOptions : EventInvokeConfigOptions { public fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + public fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -519,12 +562,23 @@ public interface FunctionOptions : EventInvokeConfigOptions { public fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + public fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -587,7 +641,19 @@ public interface FunctionOptions : EventInvokeConfigOptions { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -605,9 +671,16 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -745,7 +818,9 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -868,6 +943,12 @@ public interface FunctionOptions : EventInvokeConfigOptions { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -923,9 +1004,16 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -992,7 +1080,21 @@ public interface FunctionOptions : EventInvokeConfigOptions { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -1014,11 +1116,20 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -1192,7 +1303,9 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1342,6 +1455,14 @@ public interface FunctionOptions : EventInvokeConfigOptions { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -1410,11 +1531,20 @@ public interface FunctionOptions : EventInvokeConfigOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1471,7 +1601,8 @@ public interface FunctionOptions : EventInvokeConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionOptions, - ) : CdkObject(cdkObject), FunctionOptions { + ) : CdkObject(cdkObject), + FunctionOptions { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1483,7 +1614,21 @@ public interface FunctionOptions : EventInvokeConfigOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1508,12 +1653,23 @@ public interface FunctionOptions : EventInvokeConfigOptions { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1671,10 +1827,13 @@ public interface FunctionOptions : EventInvokeConfigOptions { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1821,6 +1980,16 @@ public interface FunctionOptions : EventInvokeConfigOptions { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1889,12 +2058,23 @@ public interface FunctionOptions : EventInvokeConfigOptions { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionProps.kt index bfc2d91f7b..3fbf4d1ef9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionProps.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -106,7 +107,19 @@ public interface FunctionProps : FunctionOptions { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -124,9 +137,16 @@ public interface FunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -288,7 +308,9 @@ public interface FunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -411,6 +433,12 @@ public interface FunctionProps : FunctionOptions { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -475,9 +503,16 @@ public interface FunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -544,7 +579,21 @@ public interface FunctionProps : FunctionOptions { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -566,11 +615,20 @@ public interface FunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -772,7 +830,9 @@ public interface FunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -922,6 +982,14 @@ public interface FunctionProps : FunctionOptions { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -1001,11 +1069,20 @@ public interface FunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1062,7 +1139,8 @@ public interface FunctionProps : FunctionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionProps, - ) : CdkObject(cdkObject), FunctionProps { + ) : CdkObject(cdkObject), + FunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1074,7 +1152,21 @@ public interface FunctionProps : FunctionOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1099,12 +1191,23 @@ public interface FunctionProps : FunctionOptions { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1287,10 +1390,13 @@ public interface FunctionProps : FunctionOptions { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1437,6 +1543,16 @@ public interface FunctionProps : FunctionOptions { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1515,12 +1631,23 @@ public interface FunctionProps : FunctionOptions { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrl.kt index 2578757a68..a952afe47e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrl.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class FunctionUrl( cdkObject: software.amazon.awscdk.services.lambda.FunctionUrl, -) : Resource(cdkObject), IFunctionUrl { +) : Resource(cdkObject), + IFunctionUrl { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlCorsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlCorsOptions.kt index 90c315915f..b24074ce64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlCorsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlCorsOptions.kt @@ -222,7 +222,8 @@ public interface FunctionUrlCorsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionUrlCorsOptions, - ) : CdkObject(cdkObject), FunctionUrlCorsOptions { + ) : CdkObject(cdkObject), + FunctionUrlCorsOptions { /** * Whether to allow cookies or other credentials in requests to your function URL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlOptions.kt index 53faa88c2d..7c49ce9860 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlOptions.kt @@ -115,7 +115,8 @@ public interface FunctionUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionUrlOptions, - ) : CdkObject(cdkObject), FunctionUrlOptions { + ) : CdkObject(cdkObject), + FunctionUrlOptions { /** * The type of authentication that your function URL uses. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlProps.kt index 8bbb692a76..c20083cb94 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionUrlProps.kt @@ -123,7 +123,8 @@ public interface FunctionUrlProps : FunctionUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.FunctionUrlProps, - ) : CdkObject(cdkObject), FunctionUrlProps { + ) : CdkObject(cdkObject), + FunctionUrlProps { /** * The type of authentication that your function URL uses. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionVersionUpgrade.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionVersionUpgrade.kt index 02f658c5c6..8375d81d55 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionVersionUpgrade.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/FunctionVersionUpgrade.kt @@ -25,7 +25,8 @@ import kotlin.String */ public open class FunctionVersionUpgrade( cdkObject: software.amazon.awscdk.services.lambda.FunctionVersionUpgrade, -) : CdkObject(cdkObject), IAspect { +) : CdkObject(cdkObject), + IAspect { public constructor(featureFlag: String) : this(software.amazon.awscdk.services.lambda.FunctionVersionUpgrade(featureFlag) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IAlias.kt index b8d648872f..98f96903fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IAlias.kt @@ -39,7 +39,8 @@ public interface IAlias : IFunction { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IAlias, - ) : CdkObject(cdkObject), IAlias { + ) : CdkObject(cdkObject), + IAlias { /** * Adds an event source to this function. * @@ -239,6 +240,15 @@ public interface IAlias : IFunction { = unwrap(this).grantInvokeCompositePrincipal(compositePrincipal.let(CompositePrincipal.Companion::unwrap)).map(Grant::wrap) + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param identity + */ + override fun grantInvokeLatestVersion(identity: IGrantable): Grant = + unwrap(this).grantInvokeLatestVersion(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -247,6 +257,16 @@ public interface IAlias : IFunction { override fun grantInvokeUrl(identity: IGrantable): Grant = unwrap(this).grantInvokeUrl(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param identity + * @param version + */ + override fun grantInvokeVersion(identity: IGrantable, version: IVersion): Grant = + unwrap(this).grantInvokeVersion(identity.let(IGrantable.Companion::unwrap), + version.let(IVersion.Companion::unwrap)).let(Grant::wrap) + /** * The principal to grant permissions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ICodeSigningConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ICodeSigningConfig.kt index fb5b7609e2..09e6f2dbf8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ICodeSigningConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ICodeSigningConfig.kt @@ -27,7 +27,8 @@ public interface ICodeSigningConfig : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.ICodeSigningConfig, - ) : CdkObject(cdkObject), ICodeSigningConfig { + ) : CdkObject(cdkObject), + ICodeSigningConfig { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IDestination.kt index 93685f4b69..8b119ca923 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IDestination.kt @@ -51,7 +51,8 @@ public interface IDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IDestination, - ) : CdkObject(cdkObject), IDestination { + ) : CdkObject(cdkObject), + IDestination { /** * Binds this destination to the Lambda function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSource.kt index e7660d7caf..66bcd3aad1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSource.kt @@ -18,7 +18,8 @@ public interface IEventSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IEventSource, - ) : CdkObject(cdkObject), IEventSource { + ) : CdkObject(cdkObject), + IEventSource { /** * Called by `lambda.addEventSource` to allow the event source to bind to this function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceDlq.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceDlq.kt index 32282c20b7..cd12be148f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceDlq.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceDlq.kt @@ -19,7 +19,8 @@ public interface IEventSourceDlq { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IEventSourceDlq, - ) : CdkObject(cdkObject), IEventSourceDlq { + ) : CdkObject(cdkObject), + IEventSourceDlq { /** * Returns the DLQ destination config of the DLQ. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceMapping.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceMapping.kt index d695b53b56..5d3858d94b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceMapping.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IEventSourceMapping.kt @@ -30,7 +30,8 @@ public interface IEventSourceMapping : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IEventSourceMapping, - ) : CdkObject(cdkObject), IEventSourceMapping { + ) : CdkObject(cdkObject), + IEventSourceMapping { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunction.kt index 9a8e744b22..ac3c706600 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunction.kt @@ -169,6 +169,14 @@ public interface IFunction : IResource, IConnectable, IGrantable { */ public fun grantInvokeCompositePrincipal(compositePrincipal: CompositePrincipal): List + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param identity + */ + public fun grantInvokeLatestVersion(identity: IGrantable): Grant + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -176,6 +184,14 @@ public interface IFunction : IResource, IConnectable, IGrantable { */ public fun grantInvokeUrl(identity: IGrantable): Grant + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param identity + * @param version + */ + public fun grantInvokeVersion(identity: IGrantable, version: IVersion): Grant + /** * Whether or not this Lambda function was bound to a VPC. * @@ -378,7 +394,8 @@ public interface IFunction : IResource, IConnectable, IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IFunction, - ) : CdkObject(cdkObject), IFunction { + ) : CdkObject(cdkObject), + IFunction { /** * Adds an event source to this function. * @@ -573,6 +590,15 @@ public interface IFunction : IResource, IConnectable, IGrantable { = unwrap(this).grantInvokeCompositePrincipal(compositePrincipal.let(CompositePrincipal.Companion::unwrap)).map(Grant::wrap) + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param identity + */ + override fun grantInvokeLatestVersion(identity: IGrantable): Grant = + unwrap(this).grantInvokeLatestVersion(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -581,6 +607,16 @@ public interface IFunction : IResource, IConnectable, IGrantable { override fun grantInvokeUrl(identity: IGrantable): Grant = unwrap(this).grantInvokeUrl(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param identity + * @param version + */ + override fun grantInvokeVersion(identity: IGrantable, version: IVersion): Grant = + unwrap(this).grantInvokeVersion(identity.let(IGrantable.Companion::unwrap), + version.let(IVersion.Companion::unwrap)).let(Grant::wrap) + /** * The principal to grant permissions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunctionUrl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunctionUrl.kt index ef43cf8f89..d75bb7e305 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunctionUrl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IFunctionUrl.kt @@ -36,7 +36,8 @@ public interface IFunctionUrl : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IFunctionUrl, - ) : CdkObject(cdkObject), IFunctionUrl { + ) : CdkObject(cdkObject), + IFunctionUrl { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ILayerVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ILayerVersion.kt index f0230bb55f..6f046b2fbc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ILayerVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ILayerVersion.kt @@ -65,7 +65,8 @@ public interface ILayerVersion : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.ILayerVersion, - ) : CdkObject(cdkObject), ILayerVersion { + ) : CdkObject(cdkObject), + ILayerVersion { /** * Add permission for this layer version to specific entities. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IScalableFunctionAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IScalableFunctionAttribute.kt index adaded490d..5c9441d4c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IScalableFunctionAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IScalableFunctionAttribute.kt @@ -59,7 +59,8 @@ public interface IScalableFunctionAttribute : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IScalableFunctionAttribute, - ) : CdkObject(cdkObject), IScalableFunctionAttribute { + ) : CdkObject(cdkObject), + IScalableFunctionAttribute { override fun node(): Node = unwrap(this).getNode().let(Node::wrap) /** diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IVersion.kt index f649c82b30..5d91b77dde 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/IVersion.kt @@ -80,7 +80,8 @@ public interface IVersion : IFunction { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.IVersion, - ) : CdkObject(cdkObject), IVersion { + ) : CdkObject(cdkObject), + IVersion { /** * (deprecated) Defines an alias for this version. * @@ -319,6 +320,15 @@ public interface IVersion : IFunction { = unwrap(this).grantInvokeCompositePrincipal(compositePrincipal.let(CompositePrincipal.Companion::unwrap)).map(Grant::wrap) + /** + * Grant the given identity permissions to invoke the $LATEST version or unqualified version of + * this Lambda. + * + * @param identity + */ + override fun grantInvokeLatestVersion(identity: IGrantable): Grant = + unwrap(this).grantInvokeLatestVersion(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Grant the given identity permissions to invoke this Lambda Function URL. * @@ -327,6 +337,16 @@ public interface IVersion : IFunction { override fun grantInvokeUrl(identity: IGrantable): Grant = unwrap(this).grantInvokeUrl(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant the given identity permissions to invoke the given version of this Lambda. + * + * @param identity + * @param version + */ + override fun grantInvokeVersion(identity: IGrantable, version: IVersion): Grant = + unwrap(this).grantInvokeVersion(identity.let(IGrantable.Companion::unwrap), + version.let(IVersion.Companion::unwrap)).let(Grant::wrap) + /** * The principal to grant permissions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaInsightsVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaInsightsVersion.kt index 1f906bee2d..289a8fd2c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaInsightsVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaInsightsVersion.kt @@ -49,6 +49,18 @@ public abstract class LambdaInsightsVersion( public val VERSION_1_0_229_0: LambdaInsightsVersion = LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_229_0) + public val VERSION_1_0_273_0: LambdaInsightsVersion = + LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_273_0) + + public val VERSION_1_0_275_0: LambdaInsightsVersion = + LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_275_0) + + public val VERSION_1_0_295_0: LambdaInsightsVersion = + LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_295_0) + + public val VERSION_1_0_317_0: LambdaInsightsVersion = + LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_317_0) + public val VERSION_1_0_54_0: LambdaInsightsVersion = LambdaInsightsVersion.wrap(software.amazon.awscdk.services.lambda.LambdaInsightsVersion.VERSION_1_0_54_0) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaRuntimeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaRuntimeProps.kt index 1a9a1dbcbd..cfdc472296 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaRuntimeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LambdaRuntimeProps.kt @@ -143,7 +143,8 @@ public interface LambdaRuntimeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LambdaRuntimeProps, - ) : CdkObject(cdkObject), LambdaRuntimeProps { + ) : CdkObject(cdkObject), + LambdaRuntimeProps { /** * The Docker image name to be used for bundling in this runtime. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersion.kt index 5f1ac4f812..9ef16b536b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersion.kt @@ -27,7 +27,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LayerVersion( cdkObject: software.amazon.awscdk.services.lambda.LayerVersion, -) : Resource(cdkObject), ILayerVersion { +) : Resource(cdkObject), + ILayerVersion { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionAttributes.kt index 817e31732f..4e8b75c77b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionAttributes.kt @@ -89,7 +89,8 @@ public interface LayerVersionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LayerVersionAttributes, - ) : CdkObject(cdkObject), LayerVersionAttributes { + ) : CdkObject(cdkObject), + LayerVersionAttributes { /** * The list of compatible runtimes with this Layer. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionOptions.kt index d12d9b605f..be4c0e23b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionOptions.kt @@ -124,7 +124,8 @@ public interface LayerVersionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LayerVersionOptions, - ) : CdkObject(cdkObject), LayerVersionOptions { + ) : CdkObject(cdkObject), + LayerVersionOptions { /** * The description the this Lambda Layer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionPermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionPermission.kt index e5d759ca1b..80e2caef04 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionPermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionPermission.kt @@ -102,7 +102,8 @@ public interface LayerVersionPermission { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LayerVersionPermission, - ) : CdkObject(cdkObject), LayerVersionPermission { + ) : CdkObject(cdkObject), + LayerVersionPermission { /** * The AWS Account id of the account that is authorized to use a Lambda Layer Version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionProps.kt index 832d18d1c1..6d2d6c477d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LayerVersionProps.kt @@ -171,7 +171,8 @@ public interface LayerVersionProps : LayerVersionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LayerVersionProps, - ) : CdkObject(cdkObject), LayerVersionProps { + ) : CdkObject(cdkObject), + LayerVersionProps { /** * The content of this Layer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LogRetentionRetryOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LogRetentionRetryOptions.kt index a9e29c712b..46941f6948 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LogRetentionRetryOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/LogRetentionRetryOptions.kt @@ -72,7 +72,8 @@ public interface LogRetentionRetryOptions : private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.LogRetentionRetryOptions, - ) : CdkObject(cdkObject), LogRetentionRetryOptions { + ) : CdkObject(cdkObject), + LogRetentionRetryOptions { /** * (deprecated) The base duration to use in the exponential backoff for operation retries. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ParamsAndSecretsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ParamsAndSecretsOptions.kt index 68d68efdea..87decf9356 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ParamsAndSecretsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ParamsAndSecretsOptions.kt @@ -318,7 +318,8 @@ public interface ParamsAndSecretsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.ParamsAndSecretsOptions, - ) : CdkObject(cdkObject), ParamsAndSecretsOptions { + ) : CdkObject(cdkObject), + ParamsAndSecretsOptions { /** * Whether the Parameters and Secrets Extension will cache parameters and secrets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Permission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Permission.kt index d1f58df800..67740aa21e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Permission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Permission.kt @@ -310,7 +310,8 @@ public interface Permission { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.Permission, - ) : CdkObject(cdkObject), Permission { + ) : CdkObject(cdkObject), + Permission { /** * The Lambda actions that you want to allow in this statement. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/RecursiveLoop.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/RecursiveLoop.kt new file mode 100644 index 0000000000..dba86392c7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/RecursiveLoop.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.lambda + +public enum class RecursiveLoop( + private val cdkObject: software.amazon.awscdk.services.lambda.RecursiveLoop, +) { + ALLOW(software.amazon.awscdk.services.lambda.RecursiveLoop.ALLOW), + TERMINATE(software.amazon.awscdk.services.lambda.RecursiveLoop.TERMINATE), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.lambda.RecursiveLoop): + RecursiveLoop = when (cdkObject) { + software.amazon.awscdk.services.lambda.RecursiveLoop.ALLOW -> RecursiveLoop.ALLOW + software.amazon.awscdk.services.lambda.RecursiveLoop.TERMINATE -> RecursiveLoop.TERMINATE + } + + internal fun unwrap(wrapped: RecursiveLoop): + software.amazon.awscdk.services.lambda.RecursiveLoop = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ResourceBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ResourceBindOptions.kt index af9c9e562b..082ed035fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ResourceBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/ResourceBindOptions.kt @@ -60,7 +60,8 @@ public interface ResourceBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.ResourceBindOptions, - ) : CdkObject(cdkObject), ResourceBindOptions { + ) : CdkObject(cdkObject), + ResourceBindOptions { /** * The name of the CloudFormation property to annotate with asset metadata. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunction.kt index 22391e4a46..166783deea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunction.kt @@ -20,8 +20,11 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import io.cloudshiftdev.constructs.IConstruct +import io.cloudshiftdev.constructs.MetadataOptions import io.cloudshiftdev.constructs.Node +import kotlin.Any import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -138,6 +141,56 @@ public open class SingletonFunction( software.amazon.awscdk.services.lambda.ILayerVersion}.toTypedArray()) } + /** + * Use this method to write to the construct tree. + * + * The metadata entries are written to the Cloud Assembly Manifest if the `treeMetadata` property + * is specified in the props of the App that contains this Construct. + * + * @param type + * @param data + * @param options + */ + public open fun addMetadata(type: String, `data`: Any) { + unwrap(this).addMetadata(type, `data`) + } + + /** + * Use this method to write to the construct tree. + * + * The metadata entries are written to the Cloud Assembly Manifest if the `treeMetadata` property + * is specified in the props of the App that contains this Construct. + * + * @param type + * @param data + * @param options + */ + public open fun addMetadata( + type: String, + `data`: Any, + options: MetadataOptions, + ) { + unwrap(this).addMetadata(type, `data`, options.let(MetadataOptions.Companion::unwrap)) + } + + /** + * Use this method to write to the construct tree. + * + * The metadata entries are written to the Cloud Assembly Manifest if the `treeMetadata` property + * is specified in the props of the App that contains this Construct. + * + * @param type + * @param data + * @param options + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("541c530583473deb1509a25c7215d155d6c5bdc98606f876a75f85f51e9a5b14") + public open fun addMetadata( + type: String, + `data`: Any, + options: MetadataOptions.Builder.() -> Unit, + ): Unit = addMetadata(type, `data`, MetadataOptions(options)) + /** * Adds a permission to the Lambda resource policy. * @@ -285,7 +338,23 @@ public open class SingletonFunction( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -295,7 +364,8 @@ public open class SingletonFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -313,14 +383,25 @@ public open class SingletonFunction( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -599,12 +680,14 @@ public open class SingletonFunction( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -790,6 +873,17 @@ public open class SingletonFunction( */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -896,14 +990,25 @@ public open class SingletonFunction( public fun snapStart(snapStart: SnapStartConf) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -1017,7 +1122,25 @@ public open class SingletonFunction( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1027,7 +1150,8 @@ public open class SingletonFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -1049,16 +1173,29 @@ public open class SingletonFunction( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -1379,12 +1516,14 @@ public open class SingletonFunction( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1597,6 +1736,19 @@ public open class SingletonFunction( cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1718,16 +1870,29 @@ public open class SingletonFunction( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunctionProps.kt index 110512c331..9ded93d23b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SingletonFunctionProps.kt @@ -19,6 +19,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -79,7 +80,19 @@ public interface SingletonFunctionProps : FunctionProps { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -97,9 +110,16 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -269,7 +289,9 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -392,6 +414,12 @@ public interface SingletonFunctionProps : FunctionProps { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -456,9 +484,16 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -532,7 +567,21 @@ public interface SingletonFunctionProps : FunctionProps { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -554,11 +603,20 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -770,7 +828,9 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -920,6 +980,14 @@ public interface SingletonFunctionProps : FunctionProps { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -999,11 +1067,20 @@ public interface SingletonFunctionProps : FunctionProps { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1070,7 +1147,8 @@ public interface SingletonFunctionProps : FunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.SingletonFunctionProps, - ) : CdkObject(cdkObject), SingletonFunctionProps { + ) : CdkObject(cdkObject), + SingletonFunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1082,7 +1160,21 @@ public interface SingletonFunctionProps : FunctionProps { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1107,12 +1199,23 @@ public interface SingletonFunctionProps : FunctionProps { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1306,10 +1409,13 @@ public interface SingletonFunctionProps : FunctionProps { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1456,6 +1562,16 @@ public interface SingletonFunctionProps : FunctionProps { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1534,12 +1650,23 @@ public interface SingletonFunctionProps : FunctionProps { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SourceAccessConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SourceAccessConfiguration.kt index c86bb6531d..c8b71d7987 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SourceAccessConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/SourceAccessConfiguration.kt @@ -89,7 +89,8 @@ public interface SourceAccessConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.SourceAccessConfiguration, - ) : CdkObject(cdkObject), SourceAccessConfiguration { + ) : CdkObject(cdkObject), + SourceAccessConfiguration { /** * The type of authentication protocol or the VPC components for your event source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/UtilizationScalingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/UtilizationScalingOptions.kt index 40ada38c5c..ad68e32e82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/UtilizationScalingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/UtilizationScalingOptions.kt @@ -133,7 +133,8 @@ public interface UtilizationScalingOptions : BaseTargetTrackingProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.UtilizationScalingOptions, - ) : CdkObject(cdkObject), UtilizationScalingOptions { + ) : CdkObject(cdkObject), + UtilizationScalingOptions { /** * Indicates whether scale in by the target tracking policy is disabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Version.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Version.kt index b41b7a486e..9a3433f4d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Version.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/Version.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Version( cdkObject: software.amazon.awscdk.services.lambda.Version, -) : QualifiedFunctionBase(cdkObject), IVersion { +) : QualifiedFunctionBase(cdkObject), + IVersion { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionAttributes.kt index 59d4842f2c..099dfcc8b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionAttributes.kt @@ -73,7 +73,8 @@ public interface VersionAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.VersionAttributes, - ) : CdkObject(cdkObject), VersionAttributes { + ) : CdkObject(cdkObject), + VersionAttributes { /** * The lambda function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionOptions.kt index 684ce39b30..1c62ab5db9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionOptions.kt @@ -189,7 +189,8 @@ public interface VersionOptions : EventInvokeConfigOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.VersionOptions, - ) : CdkObject(cdkObject), VersionOptions { + ) : CdkObject(cdkObject), + VersionOptions { /** * SHA256 of the version of the Lambda source code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionProps.kt index a20bdbfaeb..4280f12c66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionProps.kt @@ -168,7 +168,8 @@ public interface VersionProps : VersionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.VersionProps, - ) : CdkObject(cdkObject), VersionProps { + ) : CdkObject(cdkObject), + VersionProps { /** * SHA256 of the version of the Lambda source code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionWeight.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionWeight.kt index ea2c50a39f..892188c235 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionWeight.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/VersionWeight.kt @@ -74,7 +74,8 @@ public interface VersionWeight { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.VersionWeight, - ) : CdkObject(cdkObject), VersionWeight { + ) : CdkObject(cdkObject), + VersionWeight { /** * The version to route traffic to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/EventBridgeDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/EventBridgeDestination.kt index 7fd4fe8d5f..e51555eb5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/EventBridgeDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/EventBridgeDestination.kt @@ -30,7 +30,8 @@ import kotlin.jvm.JvmName */ public open class EventBridgeDestination( cdkObject: software.amazon.awscdk.services.lambda.destinations.EventBridgeDestination, -) : CdkObject(cdkObject), IDestination { +) : CdkObject(cdkObject), + IDestination { public constructor() : this(software.amazon.awscdk.services.lambda.destinations.EventBridgeDestination() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestination.kt index fc97ae1bfa..88cddb900c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestination.kt @@ -35,7 +35,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class LambdaDestination( cdkObject: software.amazon.awscdk.services.lambda.destinations.LambdaDestination, -) : CdkObject(cdkObject), IDestination { +) : CdkObject(cdkObject), + IDestination { public constructor(fn: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.services.lambda.destinations.LambdaDestination(fn.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestinationOptions.kt index 6a36268619..5d219b93cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/LambdaDestinationOptions.kt @@ -88,7 +88,8 @@ public interface LambdaDestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.destinations.LambdaDestinationOptions, - ) : CdkObject(cdkObject), LambdaDestinationOptions { + ) : CdkObject(cdkObject), + LambdaDestinationOptions { /** * Whether the destination function receives only the `responsePayload` of the source function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SnsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SnsDestination.kt index 44b096e8bc..78ab49f224 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SnsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SnsDestination.kt @@ -32,7 +32,8 @@ import kotlin.jvm.JvmName */ public open class SnsDestination( cdkObject: software.amazon.awscdk.services.lambda.destinations.SnsDestination, -) : CdkObject(cdkObject), IDestination { +) : CdkObject(cdkObject), + IDestination { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.lambda.destinations.SnsDestination(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SqsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SqsDestination.kt index bef3fca3f5..f5a52f8d46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SqsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/destinations/SqsDestination.kt @@ -32,7 +32,8 @@ import kotlin.jvm.JvmName */ public open class SqsDestination( cdkObject: software.amazon.awscdk.services.lambda.destinations.SqsDestination, -) : CdkObject(cdkObject), IDestination { +) : CdkObject(cdkObject), + IDestination { public constructor(queue: IQueue) : this(software.amazon.awscdk.services.lambda.destinations.SqsDestination(queue.let(IQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ApiEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ApiEventSource.kt index d04ace160c..83a3394904 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ApiEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ApiEventSource.kt @@ -60,7 +60,8 @@ import kotlin.jvm.JvmName */ public open class ApiEventSource( cdkObject: software.amazon.awscdk.services.lambda.eventsources.ApiEventSource, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { public constructor(method: String, path: String) : this(software.amazon.awscdk.services.lambda.eventsources.ApiEventSource(method, path) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/BaseStreamEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/BaseStreamEventSourceProps.kt index cccf7c2e57..72c2197642 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/BaseStreamEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/BaseStreamEventSourceProps.kt @@ -169,7 +169,8 @@ public interface BaseStreamEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.BaseStreamEventSourceProps, - ) : CdkObject(cdkObject), BaseStreamEventSourceProps { + ) : CdkObject(cdkObject), + BaseStreamEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSource.kt index 3a5ff731f6..ab80928a26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSource.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.services.lambda.eventsources import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.IFunction import io.cloudshiftdev.awscdk.services.lambda.StartingPosition @@ -118,6 +119,16 @@ public open class DynamoEventSource( */ public fun enabled(enabled: Boolean) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria option. * @@ -291,6 +302,18 @@ public open class DynamoEventSource( cdkBuilder.enabled(enabled) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSourceProps.kt index 160ea98666..b84bffc9f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/DynamoEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import kotlin.Any @@ -68,6 +69,11 @@ public interface DynamoEventSourceProps : StreamEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria option. */ @@ -177,6 +183,13 @@ public interface DynamoEventSourceProps : StreamEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria option. */ @@ -272,7 +285,8 @@ public interface DynamoEventSourceProps : StreamEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.DynamoEventSourceProps, - ) : CdkObject(cdkObject), DynamoEventSourceProps { + ) : CdkObject(cdkObject), + DynamoEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -307,6 +321,15 @@ public interface DynamoEventSourceProps : StreamEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KafkaEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KafkaEventSourceProps.kt index 3aff1a077d..7a1f570303 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KafkaEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KafkaEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret @@ -26,11 +27,13 @@ import kotlin.collections.Map * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.lambda.*; * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; * import io.cloudshiftdev.awscdk.services.secretsmanager.*; * IEventSourceDlq eventSourceDlq; * Object filters; + * Key key; * Secret secret; * KafkaEventSourceProps kafkaEventSourceProps = KafkaEventSourceProps.builder() * .startingPosition(StartingPosition.TRIM_HORIZON) @@ -39,6 +42,7 @@ import kotlin.collections.Map * .batchSize(123) * .consumerGroupId("consumerGroupId") * .enabled(false) + * .filterEncryption(key) * .filters(List.of(Map.of( * "filtersKey", filters))) * .maxBatchingWindow(Duration.minutes(30)) @@ -61,6 +65,15 @@ public interface KafkaEventSourceProps : BaseStreamEventSourceProps { */ public fun consumerGroupId(): String? = unwrap(this).getConsumerGroupId() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + public fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * @@ -128,6 +141,11 @@ public interface KafkaEventSourceProps : BaseStreamEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria to Event Source. */ @@ -210,6 +228,13 @@ public interface KafkaEventSourceProps : BaseStreamEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria to Event Source. */ @@ -268,7 +293,8 @@ public interface KafkaEventSourceProps : BaseStreamEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.KafkaEventSourceProps, - ) : CdkObject(cdkObject), KafkaEventSourceProps { + ) : CdkObject(cdkObject), + KafkaEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -310,6 +336,15 @@ public interface KafkaEventSourceProps : BaseStreamEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSource.kt index c248020062..d69d475ceb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSource.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.services.lambda.eventsources import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.IFunction import io.cloudshiftdev.awscdk.services.lambda.StartingPosition @@ -119,6 +120,16 @@ public open class KinesisEventSource( */ public fun enabled(enabled: Boolean) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria option. * @@ -301,6 +312,18 @@ public open class KinesisEventSource( cdkBuilder.enabled(enabled) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSourceProps.kt index ba8ae7dfb6..09288a1987 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/KinesisEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import kotlin.Any @@ -69,6 +70,11 @@ public interface KinesisEventSourceProps : StreamEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria option. */ @@ -183,6 +189,13 @@ public interface KinesisEventSourceProps : StreamEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria option. */ @@ -285,7 +298,8 @@ public interface KinesisEventSourceProps : StreamEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.KinesisEventSourceProps, - ) : CdkObject(cdkObject), KinesisEventSourceProps { + ) : CdkObject(cdkObject), + KinesisEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -320,6 +334,15 @@ public interface KinesisEventSourceProps : StreamEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSource.kt index f474a31677..7ea751dcc9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSource.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.services.lambda.eventsources import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.IFunction import io.cloudshiftdev.awscdk.services.lambda.StartingPosition @@ -134,6 +135,16 @@ public open class ManagedKafkaEventSource( */ public fun enabled(enabled: Boolean) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria to Event Source. * @@ -274,6 +285,18 @@ public open class ManagedKafkaEventSource( cdkBuilder.enabled(enabled) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSourceProps.kt index b869b7bf21..4b2834ca5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/ManagedKafkaEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret @@ -91,6 +92,11 @@ public interface ManagedKafkaEventSourceProps : KafkaEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria to Event Source. */ @@ -180,6 +186,13 @@ public interface ManagedKafkaEventSourceProps : KafkaEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria to Event Source. */ @@ -239,7 +252,8 @@ public interface ManagedKafkaEventSourceProps : KafkaEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSourceProps, - ) : CdkObject(cdkObject), ManagedKafkaEventSourceProps { + ) : CdkObject(cdkObject), + ManagedKafkaEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -286,6 +300,15 @@ public interface ManagedKafkaEventSourceProps : KafkaEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSource.kt index eadffb4f95..2ef2c2b81b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSource.kt @@ -31,7 +31,8 @@ import software.amazon.awscdk.services.s3.Bucket as AmazonAwscdkServicesS3Bucket */ public open class S3EventSource( cdkObject: software.amazon.awscdk.services.lambda.eventsources.S3EventSource, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { public constructor(bucket: CloudshiftdevAwscdkServicesS3Bucket, props: S3EventSourceProps) : this(software.amazon.awscdk.services.lambda.eventsources.S3EventSource(bucket.let(CloudshiftdevAwscdkServicesS3Bucket.Companion::unwrap), props.let(S3EventSourceProps.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceProps.kt index e97fc7bd2b..f609873e4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceProps.kt @@ -113,7 +113,8 @@ public interface S3EventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps, - ) : CdkObject(cdkObject), S3EventSourceProps { + ) : CdkObject(cdkObject), + S3EventSourceProps { /** * The s3 event types that will trigger the notification. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceV2.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceV2.kt index 4879fd8002..85967f1ef9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceV2.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3EventSourceV2.kt @@ -31,7 +31,8 @@ import software.amazon.awscdk.services.s3.IBucket as AmazonAwscdkServicesS3IBuck */ public open class S3EventSourceV2( cdkObject: software.amazon.awscdk.services.lambda.eventsources.S3EventSourceV2, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { public constructor(bucket: CloudshiftdevAwscdkServicesS3IBucket, props: S3EventSourceProps) : this(software.amazon.awscdk.services.lambda.eventsources.S3EventSourceV2(bucket.let(CloudshiftdevAwscdkServicesS3IBucket.Companion::unwrap), props.let(S3EventSourceProps.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3OnFailureDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3OnFailureDestination.kt index 37fc54aa68..29feb3a845 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3OnFailureDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/S3OnFailureDestination.kt @@ -36,7 +36,8 @@ import io.cloudshiftdev.awscdk.services.s3.IBucket */ public open class S3OnFailureDestination( cdkObject: software.amazon.awscdk.services.lambda.eventsources.S3OnFailureDestination, -) : CdkObject(cdkObject), IEventSourceDlq { +) : CdkObject(cdkObject), + IEventSourceDlq { public constructor(bucket: IBucket) : this(software.amazon.awscdk.services.lambda.eventsources.S3OnFailureDestination(bucket.let(IBucket.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSource.kt index 6777a0b45b..40f1ff762e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSource.kt @@ -7,6 +7,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.ec2.ISecurityGroup import io.cloudshiftdev.awscdk.services.ec2.IVpc import io.cloudshiftdev.awscdk.services.ec2.SubnetSelection +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.IFunction import io.cloudshiftdev.awscdk.services.lambda.StartingPosition @@ -154,6 +155,16 @@ public open class SelfManagedKafkaEventSource( */ public fun enabled(enabled: Boolean) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria to Event Source. * @@ -376,6 +387,18 @@ public open class SelfManagedKafkaEventSource( cdkBuilder.enabled(enabled) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSourceProps.kt index 9025135f29..4a51b246fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SelfManagedKafkaEventSourceProps.kt @@ -9,6 +9,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.ec2.ISecurityGroup import io.cloudshiftdev.awscdk.services.ec2.IVpc import io.cloudshiftdev.awscdk.services.ec2.SubnetSelection +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import io.cloudshiftdev.awscdk.services.secretsmanager.ISecret @@ -155,6 +156,11 @@ public interface SelfManagedKafkaEventSourceProps : KafkaEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria to Event Source. */ @@ -296,6 +302,13 @@ public interface SelfManagedKafkaEventSourceProps : KafkaEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria to Event Source. */ @@ -396,7 +409,8 @@ public interface SelfManagedKafkaEventSourceProps : KafkaEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SelfManagedKafkaEventSourceProps, - ) : CdkObject(cdkObject), SelfManagedKafkaEventSourceProps { + ) : CdkObject(cdkObject), + SelfManagedKafkaEventSourceProps { /** * The authentication method for your Kafka cluster. * @@ -454,6 +468,15 @@ public interface SelfManagedKafkaEventSourceProps : KafkaEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria to Event Source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsDlq.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsDlq.kt index 7a82e40bf2..735a6dc4c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsDlq.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsDlq.kt @@ -25,7 +25,8 @@ import io.cloudshiftdev.awscdk.services.sns.ITopic */ public open class SnsDlq( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SnsDlq, -) : CdkObject(cdkObject), IEventSourceDlq { +) : CdkObject(cdkObject), + IEventSourceDlq { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.lambda.eventsources.SnsDlq(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSource.kt index d225ff4f3f..bf866f3add 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSource.kt @@ -34,7 +34,8 @@ import software.amazon.awscdk.services.sns.ITopic as AmazonAwscdkServicesSnsITop */ public open class SnsEventSource( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SnsEventSource, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { public constructor(topic: CloudshiftdevAwscdkServicesSnsITopic) : this(software.amazon.awscdk.services.lambda.eventsources.SnsEventSource(topic.let(CloudshiftdevAwscdkServicesSnsITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSourceProps.kt index 4c698e3c9f..cc97e98e8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SnsEventSourceProps.kt @@ -91,7 +91,8 @@ public interface SnsEventSourceProps : LambdaSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SnsEventSourceProps, - ) : CdkObject(cdkObject), SnsEventSourceProps { + ) : CdkObject(cdkObject), + SnsEventSourceProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsDlq.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsDlq.kt index 784eca1232..3b2a4727b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsDlq.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsDlq.kt @@ -32,7 +32,8 @@ import io.cloudshiftdev.awscdk.services.sqs.IQueue */ public open class SqsDlq( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SqsDlq, -) : CdkObject(cdkObject), IEventSourceDlq { +) : CdkObject(cdkObject), + IEventSourceDlq { public constructor(queue: IQueue) : this(software.amazon.awscdk.services.lambda.eventsources.SqsDlq(queue.let(IQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSource.kt index bbedc14f7c..465af8a23b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSource.kt @@ -5,6 +5,7 @@ package io.cloudshiftdev.awscdk.services.lambda.eventsources import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSource import io.cloudshiftdev.awscdk.services.lambda.IFunction import kotlin.Any @@ -32,7 +33,8 @@ import software.amazon.awscdk.services.sqs.IQueue as AmazonAwscdkServicesSqsIQue */ public open class SqsEventSource( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SqsEventSource, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { public constructor(queue: CloudshiftdevAwscdkServicesSqsIQueue) : this(software.amazon.awscdk.services.lambda.eventsources.SqsEventSource(queue.let(CloudshiftdevAwscdkServicesSqsIQueue.Companion::unwrap)) ) @@ -102,6 +104,16 @@ public open class SqsEventSource( */ public fun enabled(enabled: Boolean) + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * Add filter criteria option. * @@ -198,6 +210,18 @@ public open class SqsEventSource( cdkBuilder.enabled(enabled) } + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSourceProps.kt index 924eeaa816..45248f2f96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/SqsEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import kotlin.Any import kotlin.Boolean import kotlin.Number @@ -52,6 +53,15 @@ public interface SqsEventSourceProps { */ public fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + public fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * @@ -114,6 +124,11 @@ public interface SqsEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria option. */ @@ -169,6 +184,13 @@ public interface SqsEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria option. */ @@ -212,7 +234,8 @@ public interface SqsEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.SqsEventSourceProps, - ) : CdkObject(cdkObject), SqsEventSourceProps { + ) : CdkObject(cdkObject), + SqsEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -234,6 +257,15 @@ public interface SqsEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSource.kt index 4a0b5d47cf..cf4ee10817 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSource.kt @@ -12,7 +12,8 @@ import io.cloudshiftdev.awscdk.services.lambda.IFunction */ public abstract class StreamEventSource( cdkObject: software.amazon.awscdk.services.lambda.eventsources.StreamEventSource, -) : CdkObject(cdkObject), IEventSource { +) : CdkObject(cdkObject), + IEventSource { /** * Called by `lambda.addEventSource` to allow the event source to bind to this function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSourceProps.kt index 84a2fd0b60..ee7a501149 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/eventsources/StreamEventSourceProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq import io.cloudshiftdev.awscdk.services.lambda.StartingPosition import kotlin.Any @@ -25,16 +26,19 @@ import kotlin.collections.Map * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.kms.*; * import io.cloudshiftdev.awscdk.services.lambda.*; * import io.cloudshiftdev.awscdk.services.lambda.eventsources.*; * IEventSourceDlq eventSourceDlq; * Object filters; + * Key key; * StreamEventSourceProps streamEventSourceProps = StreamEventSourceProps.builder() * .startingPosition(StartingPosition.TRIM_HORIZON) * // the properties below are optional * .batchSize(123) * .bisectBatchOnError(false) * .enabled(false) + * .filterEncryption(key) * .filters(List.of(Map.of( * "filtersKey", filters))) * .maxBatchingWindow(Duration.minutes(30)) @@ -55,6 +59,15 @@ public interface StreamEventSourceProps : BaseStreamEventSourceProps { */ public fun bisectBatchOnError(): Boolean? = unwrap(this).getBisectBatchOnError() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + public fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * @@ -156,6 +169,11 @@ public interface StreamEventSourceProps : BaseStreamEventSourceProps { */ public fun enabled(enabled: Boolean) + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + public fun filterEncryption(filterEncryption: IKey) + /** * @param filters Add filter criteria option. */ @@ -265,6 +283,13 @@ public interface StreamEventSourceProps : BaseStreamEventSourceProps { cdkBuilder.enabled(enabled) } + /** + * @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria. + */ + override fun filterEncryption(filterEncryption: IKey) { + cdkBuilder.filterEncryption(filterEncryption.let(IKey.Companion::unwrap)) + } + /** * @param filters Add filter criteria option. */ @@ -360,7 +385,8 @@ public interface StreamEventSourceProps : BaseStreamEventSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.eventsources.StreamEventSourceProps, - ) : CdkObject(cdkObject), StreamEventSourceProps { + ) : CdkObject(cdkObject), + StreamEventSourceProps { /** * The largest number of records that AWS Lambda will retrieve from your event source at the * time of invoking your function. @@ -395,6 +421,15 @@ public interface StreamEventSourceProps : BaseStreamEventSourceProps { */ override fun enabled(): Boolean? = unwrap(this).getEnabled() + /** + * Add Customer managed KMS key to encrypt Filter Criteria. + * + * Default: - none + * + * [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + */ + override fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap) + /** * Add filter criteria option. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/BundlingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/BundlingOptions.kt index d568de31af..0fcbd9ff85 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/BundlingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/BundlingOptions.kt @@ -1155,7 +1155,8 @@ public interface BundlingOptions : DockerRunOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.nodejs.BundlingOptions, - ) : CdkObject(cdkObject), BundlingOptions { + ) : CdkObject(cdkObject), + BundlingOptions { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/ICommandHooks.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/ICommandHooks.kt index 9e94b2d1ae..a7b117a9ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/ICommandHooks.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/ICommandHooks.kt @@ -59,7 +59,8 @@ public interface ICommandHooks { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.nodejs.ICommandHooks, - ) : CdkObject(cdkObject), ICommandHooks { + ) : CdkObject(cdkObject), + ICommandHooks { /** * Returns commands to run after bundling. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunction.kt index f61c91228a..c06f5a0d8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunction.kt @@ -13,7 +13,9 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture +import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.FileSystem import io.cloudshiftdev.awscdk.services.lambda.Function import io.cloudshiftdev.awscdk.services.lambda.ICodeSigningConfig @@ -24,9 +26,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LambdaInsightsVersion import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -34,6 +38,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -115,7 +120,23 @@ public open class NodejsFunction( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -125,7 +146,8 @@ public open class NodejsFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -143,14 +165,25 @@ public open class NodejsFunction( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -161,16 +194,25 @@ public open class NodejsFunction( public fun architecture(architecture: Architecture) /** - * Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript. + * The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable does not exist in the AWS SDK + * for JavaScript v3. + * + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. * - * Default: true + * Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16. * - * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html) - * @param awsSdkConnectionReuse Whether to automatically reuse TCP connections when working with - * the AWS SDK for JavaScript. + * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-reusing-connections.html) + * @param awsSdkConnectionReuse The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable + * does not exist in the AWS SDK for JavaScript v3. */ public fun awsSdkConnectionReuse(awsSdkConnectionReuse: Boolean) @@ -196,6 +238,20 @@ public open class NodejsFunction( @JvmName("8a534dcd38b65c9bf9cc5957ff6675fe7a6cb2f6af18de84d8c3a07bac02ae65") public fun bundling(bundling: BundlingOptions.Builder.() -> Unit) + /** + * The code that will be deployed to the Lambda Handler. + * + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + * + * Default: - the code is bundled by esbuild + * + * @param code The code that will be deployed to the Lambda Handler. + */ + public fun code(code: Code) + /** * Code signing config associated with this function. * @@ -381,8 +437,15 @@ public open class NodejsFunction( /** * The name of the exported handler in the entry file. * - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The + * handler should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then + * the handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. * * Default: handler * @@ -464,12 +527,14 @@ public open class NodejsFunction( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -666,6 +731,17 @@ public open class NodejsFunction( */ public fun projectRoot(projectRoot: String) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -773,14 +849,25 @@ public open class NodejsFunction( public fun snapStart(snapStart: SnapStartConf) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -884,7 +971,25 @@ public open class NodejsFunction( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -894,7 +999,8 @@ public open class NodejsFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -916,16 +1022,29 @@ public open class NodejsFunction( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -938,16 +1057,25 @@ public open class NodejsFunction( } /** - * Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript. + * The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable does not exist in the AWS SDK + * for JavaScript v3. + * + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. * - * Default: true + * Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16. * - * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html) - * @param awsSdkConnectionReuse Whether to automatically reuse TCP connections when working with - * the AWS SDK for JavaScript. + * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-reusing-connections.html) + * @param awsSdkConnectionReuse The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable + * does not exist in the AWS SDK for JavaScript v3. */ override fun awsSdkConnectionReuse(awsSdkConnectionReuse: Boolean) { cdkBuilder.awsSdkConnectionReuse(awsSdkConnectionReuse) @@ -978,6 +1106,22 @@ public open class NodejsFunction( override fun bundling(bundling: BundlingOptions.Builder.() -> Unit): Unit = bundling(BundlingOptions(bundling)) + /** + * The code that will be deployed to the Lambda Handler. + * + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + * + * Default: - the code is bundled by esbuild + * + * @param code The code that will be deployed to the Lambda Handler. + */ + override fun code(code: Code) { + cdkBuilder.code(code.let(Code.Companion::unwrap)) + } + /** * Code signing config associated with this function. * @@ -1192,8 +1336,15 @@ public open class NodejsFunction( /** * The name of the exported handler in the entry file. * - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The + * handler should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then + * the handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. * * Default: handler * @@ -1286,12 +1437,14 @@ public open class NodejsFunction( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1517,6 +1670,19 @@ public open class NodejsFunction( cdkBuilder.projectRoot(projectRoot) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1639,16 +1805,29 @@ public open class NodejsFunction( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunctionProps.kt index 0fe9d3f4ba..54ab0441a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lambda/nodejs/NodejsFunctionProps.kt @@ -15,7 +15,9 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture +import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.FileSystem import io.cloudshiftdev.awscdk.services.lambda.FunctionOptions import io.cloudshiftdev.awscdk.services.lambda.ICodeSigningConfig @@ -26,9 +28,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LambdaInsightsVersion import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -36,6 +40,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -62,14 +67,23 @@ import kotlin.jvm.JvmName */ public interface NodejsFunctionProps : FunctionOptions { /** - * Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript. + * The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable does not exist in the AWS SDK + * for JavaScript v3. + * + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. * - * Default: true + * Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16. * - * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html) + * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-reusing-connections.html) */ public fun awsSdkConnectionReuse(): Boolean? = unwrap(this).getAwsSdkConnectionReuse() @@ -81,6 +95,18 @@ public interface NodejsFunctionProps : FunctionOptions { */ public fun bundling(): BundlingOptions? = unwrap(this).getBundling()?.let(BundlingOptions::wrap) + /** + * The code that will be deployed to the Lambda Handler. + * + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + * + * Default: - the code is bundled by esbuild + */ + public fun code(): Code? = unwrap(this).getCode()?.let(Code::wrap) + /** * The path to the dependencies lock file (`yarn.lock`, `pnpm-lock.yaml` or `package-lock.json`). * @@ -108,8 +134,15 @@ public interface NodejsFunctionProps : FunctionOptions { /** * The name of the exported handler in the entry file. * - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The handler + * should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then the + * handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. * * Default: handler */ @@ -154,7 +187,19 @@ public interface NodejsFunctionProps : FunctionOptions { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -172,17 +217,32 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ public fun architecture(architecture: Architecture) /** - * @param awsSdkConnectionReuse Whether to automatically reuse TCP connections when working with - * the AWS SDK for JavaScript. + * @param awsSdkConnectionReuse The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable + * does not exist in the AWS SDK for JavaScript v3. + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. + * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. */ @@ -200,6 +260,15 @@ public interface NodejsFunctionProps : FunctionOptions { @JvmName("5fec5c093b7551151b6568be2469be28314c7f7ca63b3e3786c7263e5ece561a") public fun bundling(bundling: BundlingOptions.Builder.() -> Unit) + /** + * @param code The code that will be deployed to the Lambda Handler. + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + */ + public fun code(code: Code) + /** * @param codeSigningConfig Code signing config associated with this function. */ @@ -305,8 +374,15 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param handler The name of the exported handler in the entry file. - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The + * handler should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then + * the handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. */ public fun handler(handler: String) @@ -355,7 +431,9 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -484,6 +562,12 @@ public interface NodejsFunctionProps : FunctionOptions { */ public fun projectRoot(projectRoot: String) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -546,9 +630,16 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -616,7 +707,21 @@ public interface NodejsFunctionProps : FunctionOptions { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -638,11 +743,20 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -651,8 +765,16 @@ public interface NodejsFunctionProps : FunctionOptions { } /** - * @param awsSdkConnectionReuse Whether to automatically reuse TCP connections when working with - * the AWS SDK for JavaScript. + * @param awsSdkConnectionReuse The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable + * does not exist in the AWS SDK for JavaScript v3. + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. + * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. */ @@ -675,6 +797,17 @@ public interface NodejsFunctionProps : FunctionOptions { override fun bundling(bundling: BundlingOptions.Builder.() -> Unit): Unit = bundling(BundlingOptions(bundling)) + /** + * @param code The code that will be deployed to the Lambda Handler. + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + */ + override fun code(code: Code) { + cdkBuilder.code(code.let(Code.Companion::unwrap)) + } + /** * @param codeSigningConfig Code signing config associated with this function. */ @@ -809,8 +942,15 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param handler The name of the exported handler in the entry file. - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The + * handler should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then + * the handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. */ override fun handler(handler: String) { cdkBuilder.handler(handler) @@ -870,7 +1010,9 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1028,6 +1170,14 @@ public interface NodejsFunctionProps : FunctionOptions { cdkBuilder.projectRoot(projectRoot) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -1105,11 +1255,20 @@ public interface NodejsFunctionProps : FunctionOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1167,7 +1326,8 @@ public interface NodejsFunctionProps : FunctionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.lambda.nodejs.NodejsFunctionProps, - ) : CdkObject(cdkObject), NodejsFunctionProps { + ) : CdkObject(cdkObject), + NodejsFunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1179,7 +1339,21 @@ public interface NodejsFunctionProps : FunctionOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1204,12 +1378,23 @@ public interface NodejsFunctionProps : FunctionOptions { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1219,14 +1404,23 @@ public interface NodejsFunctionProps : FunctionOptions { unwrap(this).getArchitecture()?.let(Architecture::wrap) /** - * Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript. + * The `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable does not exist in the AWS SDK + * for JavaScript v3. + * + * This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. + * See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy + * + * Info for Node 16 runtimes / SDK v2 users: + * + * Whether to automatically reuse TCP connections when working with the AWS + * SDK for JavaScript v2. * * This sets the `AWS_NODEJS_CONNECTION_REUSE_ENABLED` environment variable * to `1`. * - * Default: true + * Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16. * - * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html) + * [Documentation](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-reusing-connections.html) */ override fun awsSdkConnectionReuse(): Boolean? = unwrap(this).getAwsSdkConnectionReuse() @@ -1239,6 +1433,18 @@ public interface NodejsFunctionProps : FunctionOptions { override fun bundling(): BundlingOptions? = unwrap(this).getBundling()?.let(BundlingOptions::wrap) + /** + * The code that will be deployed to the Lambda Handler. + * + * If included, then properties related to + * bundling of the code are ignored. + * + * * If the `code` field is specified, then you must include the `handler` property. + * + * Default: - the code is bundled by esbuild + */ + override fun code(): Code? = unwrap(this).getCode()?.let(Code::wrap) + /** * Code signing config associated with this function. * @@ -1373,8 +1579,15 @@ public interface NodejsFunctionProps : FunctionOptions { /** * The name of the exported handler in the entry file. * - * The handler is prefixed with `index.` unless the specified handler value contains a `.`, - * in which case it is used as-is. + * * If the `code` property is supplied, then you must include the `handler` property. The + * handler should be the name of the file + * that contains the exported handler and the function that should be called when the AWS Lambda + * is invoked. For example, if + * you had a file called `myLambda.js` and the function to be invoked was `myHandler`, then you + * should input `handler` property as `myLambda.myHandler`. + * * If the `code` property is not supplied and the handler input does not contain a `.`, then + * the handler is prefixed with `index.` (index period). Otherwise, + * the handler property is not modified. * * Default: handler */ @@ -1423,10 +1636,13 @@ public interface NodejsFunctionProps : FunctionOptions { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1581,6 +1797,16 @@ public interface NodejsFunctionProps : FunctionOptions { */ override fun projectRoot(): String? = unwrap(this).getProjectRoot() + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1660,12 +1886,23 @@ public interface NodejsFunctionProps : FunctionOptions { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeployment.kt new file mode 100644 index 0000000000..fb94fba16f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeployment.kt @@ -0,0 +1,380 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.launchwizard + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a deployment for the given workload. + * + * Deployments created by this operation are not available in the Launch Wizard console to use the + * `Clone deployment` action on. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.launchwizard.*; + * CfnDeployment cfnDeployment = CfnDeployment.Builder.create(this, "MyCfnDeployment") + * .deploymentPatternName("deploymentPatternName") + * .name("name") + * .specifications(Map.of( + * "specificationsKey", "specifications")) + * .workloadName("workloadName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html) + */ +public open class CfnDeployment( + cdkObject: software.amazon.awscdk.services.launchwizard.CfnDeployment, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnDeploymentProps, + ) : + this(software.amazon.awscdk.services.launchwizard.CfnDeployment(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnDeploymentProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnDeploymentProps.Builder.() -> Unit, + ) : this(scope, id, CfnDeploymentProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the deployment. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The time the deployment was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The time the deployment was deleted. + */ + public open fun attrDeletedAt(): String = unwrap(this).getAttrDeletedAt() + + /** + * The ID of the deployment. + */ + public open fun attrDeploymentId(): String = unwrap(this).getAttrDeploymentId() + + /** + * The resource group of the deployment. + */ + public open fun attrResourceGroup(): String = unwrap(this).getAttrResourceGroup() + + /** + * The status of the deployment. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The name of the deployment pattern. + */ + public open fun deploymentPatternName(): String = unwrap(this).getDeploymentPatternName() + + /** + * The name of the deployment pattern. + */ + public open fun deploymentPatternName(`value`: String) { + unwrap(this).setDeploymentPatternName(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the deployment. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the deployment. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The settings specified for the deployment. + */ + public open fun specifications(): Any = unwrap(this).getSpecifications() + + /** + * The settings specified for the deployment. + */ + public open fun specifications(`value`: IResolvable) { + unwrap(this).setSpecifications(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The settings specified for the deployment. + */ + public open fun specifications(`value`: Map) { + unwrap(this).setSpecifications(`value`) + } + + /** + * Information about the tags attached to a deployment. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Information about the tags attached to a deployment. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Information about the tags attached to a deployment. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The name of the workload. + */ + public open fun workloadName(): String = unwrap(this).getWorkloadName() + + /** + * The name of the workload. + */ + public open fun workloadName(`value`: String) { + unwrap(this).setWorkloadName(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.launchwizard.CfnDeployment]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the deployment pattern. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-deploymentpatternname) + * @param deploymentPatternName The name of the deployment pattern. + */ + public fun deploymentPatternName(deploymentPatternName: String) + + /** + * The name of the deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-name) + * @param name The name of the deployment. + */ + public fun name(name: String) + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + * @param specifications The settings specified for the deployment. + */ + public fun specifications(specifications: IResolvable) + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + * @param specifications The settings specified for the deployment. + */ + public fun specifications(specifications: Map) + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + * @param tags Information about the tags attached to a deployment. + */ + public fun tags(tags: List) + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + * @param tags Information about the tags attached to a deployment. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The name of the workload. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-workloadname) + * @param workloadName The name of the workload. + */ + public fun workloadName(workloadName: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.launchwizard.CfnDeployment.Builder = + software.amazon.awscdk.services.launchwizard.CfnDeployment.Builder.create(scope, id) + + /** + * The name of the deployment pattern. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-deploymentpatternname) + * @param deploymentPatternName The name of the deployment pattern. + */ + override fun deploymentPatternName(deploymentPatternName: String) { + cdkBuilder.deploymentPatternName(deploymentPatternName) + } + + /** + * The name of the deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-name) + * @param name The name of the deployment. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + * @param specifications The settings specified for the deployment. + */ + override fun specifications(specifications: IResolvable) { + cdkBuilder.specifications(specifications.let(IResolvable.Companion::unwrap)) + } + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + * @param specifications The settings specified for the deployment. + */ + override fun specifications(specifications: Map) { + cdkBuilder.specifications(specifications) + } + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + * @param tags Information about the tags attached to a deployment. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + * @param tags Information about the tags attached to a deployment. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The name of the workload. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-workloadname) + * @param workloadName The name of the workload. + */ + override fun workloadName(workloadName: String) { + cdkBuilder.workloadName(workloadName) + } + + public fun build(): software.amazon.awscdk.services.launchwizard.CfnDeployment = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.launchwizard.CfnDeployment.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnDeployment { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnDeployment(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.launchwizard.CfnDeployment): + CfnDeployment = CfnDeployment(cdkObject) + + internal fun unwrap(wrapped: CfnDeployment): + software.amazon.awscdk.services.launchwizard.CfnDeployment = wrapped.cdkObject as + software.amazon.awscdk.services.launchwizard.CfnDeployment + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeploymentProps.kt new file mode 100644 index 0000000000..0bc2b48628 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/launchwizard/CfnDeploymentProps.kt @@ -0,0 +1,271 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.launchwizard + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnDeployment`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.launchwizard.*; + * CfnDeploymentProps cfnDeploymentProps = CfnDeploymentProps.builder() + * .deploymentPatternName("deploymentPatternName") + * .name("name") + * .specifications(Map.of( + * "specificationsKey", "specifications")) + * .workloadName("workloadName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html) + */ +public interface CfnDeploymentProps { + /** + * The name of the deployment pattern. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-deploymentpatternname) + */ + public fun deploymentPatternName(): String + + /** + * The name of the deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-name) + */ + public fun name(): String + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. For + * more information about the specifications required for creating a deployment for a SAP workload, + * see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + */ + public fun specifications(): Any + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the workload. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-workloadname) + */ + public fun workloadName(): String + + /** + * A builder for [CfnDeploymentProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param deploymentPatternName The name of the deployment pattern. + */ + public fun deploymentPatternName(deploymentPatternName: String) + + /** + * @param name The name of the deployment. + */ + public fun name(name: String) + + /** + * @param specifications The settings specified for the deployment. + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + */ + public fun specifications(specifications: IResolvable) + + /** + * @param specifications The settings specified for the deployment. + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + */ + public fun specifications(specifications: Map) + + /** + * @param tags Information about the tags attached to a deployment. + */ + public fun tags(tags: List) + + /** + * @param tags Information about the tags attached to a deployment. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param workloadName The name of the workload. + */ + public fun workloadName(workloadName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.launchwizard.CfnDeploymentProps.Builder + = software.amazon.awscdk.services.launchwizard.CfnDeploymentProps.builder() + + /** + * @param deploymentPatternName The name of the deployment pattern. + */ + override fun deploymentPatternName(deploymentPatternName: String) { + cdkBuilder.deploymentPatternName(deploymentPatternName) + } + + /** + * @param name The name of the deployment. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param specifications The settings specified for the deployment. + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + */ + override fun specifications(specifications: IResolvable) { + cdkBuilder.specifications(specifications.let(IResolvable.Companion::unwrap)) + } + + /** + * @param specifications The settings specified for the deployment. + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + */ + override fun specifications(specifications: Map) { + cdkBuilder.specifications(specifications) + } + + /** + * @param tags Information about the tags attached to a deployment. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags Information about the tags attached to a deployment. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param workloadName The name of the workload. + */ + override fun workloadName(workloadName: String) { + cdkBuilder.workloadName(workloadName) + } + + public fun build(): software.amazon.awscdk.services.launchwizard.CfnDeploymentProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.launchwizard.CfnDeploymentProps, + ) : CdkObject(cdkObject), + CfnDeploymentProps { + /** + * The name of the deployment pattern. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-deploymentpatternname) + */ + override fun deploymentPatternName(): String = unwrap(this).getDeploymentPatternName() + + /** + * The name of the deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The settings specified for the deployment. + * + * These settings define how to deploy and configure your resources created by the deployment. + * For more information about the specifications required for creating a deployment for a SAP + * workload, see [SAP deployment + * specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html) + * . To retrieve the specifications required to create a deployment for other workloads, use the + * [`GetWorkloadDeploymentPattern`](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) + * operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-specifications) + */ + override fun specifications(): Any = unwrap(this).getSpecifications() + + /** + * Information about the tags attached to a deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the workload. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-launchwizard-deployment.html#cfn-launchwizard-deployment-workloadname) + */ + override fun workloadName(): String = unwrap(this).getWorkloadName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnDeploymentProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.launchwizard.CfnDeploymentProps): + CfnDeploymentProps = CdkObjectWrappers.wrap(cdkObject) as? CfnDeploymentProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnDeploymentProps): + software.amazon.awscdk.services.launchwizard.CfnDeploymentProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.launchwizard.CfnDeploymentProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBot.kt index 64491772c4..a1edb39765 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBot.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBot( cdkObject: software.amazon.awscdk.services.lex.CfnBot, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -889,7 +890,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AdvancedRecognitionSettingProperty, - ) : CdkObject(cdkObject), AdvancedRecognitionSettingProperty { + ) : CdkObject(cdkObject), + AdvancedRecognitionSettingProperty { /** * Enables using the slot values as a custom vocabulary for recognizing user utterances. * @@ -1014,7 +1016,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AllowedInputTypesProperty, - ) : CdkObject(cdkObject), AllowedInputTypesProperty { + ) : CdkObject(cdkObject), + AllowedInputTypesProperty { /** * Indicates whether audio input is allowed. * @@ -1217,7 +1220,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AudioAndDTMFInputSpecificationProperty, - ) : CdkObject(cdkObject), AudioAndDTMFInputSpecificationProperty { + ) : CdkObject(cdkObject), + AudioAndDTMFInputSpecificationProperty { /** * Specifies the settings on audio input. * @@ -1347,7 +1351,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AudioLogDestinationProperty, - ) : CdkObject(cdkObject), AudioLogDestinationProperty { + ) : CdkObject(cdkObject), + AudioLogDestinationProperty { /** * Specifies the Amazon S3 bucket where the audio files are stored. * @@ -1502,7 +1507,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AudioLogSettingProperty, - ) : CdkObject(cdkObject), AudioLogSettingProperty { + ) : CdkObject(cdkObject), + AudioLogSettingProperty { /** * Specifies the location of the audio log files collected when conversation logging is * enabled for a bot. @@ -1615,7 +1621,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.AudioSpecificationProperty, - ) : CdkObject(cdkObject), AudioSpecificationProperty { + ) : CdkObject(cdkObject), + AudioSpecificationProperty { /** * Time for which a bot waits after the customer stops speaking to assume the utterance is * finished. @@ -1764,7 +1771,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.BotAliasLocaleSettingsItemProperty, - ) : CdkObject(cdkObject), BotAliasLocaleSettingsItemProperty { + ) : CdkObject(cdkObject), + BotAliasLocaleSettingsItemProperty { /** * Specifies locale settings for a locale. * @@ -1934,7 +1942,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.BotAliasLocaleSettingsProperty, - ) : CdkObject(cdkObject), BotAliasLocaleSettingsProperty { + ) : CdkObject(cdkObject), + BotAliasLocaleSettingsProperty { /** * Specifies the Lambda function that should be used in the locale. * @@ -2033,6 +2042,13 @@ public open class CfnBot( /** * Defines settings for using an Amazon Polly voice to communicate with a user. * + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-botlocale.html#cfn-lex-bot-botlocale-voicesettings) */ public fun voiceSettings(): Any? = unwrap(this).getVoiceSettings() @@ -2112,18 +2128,36 @@ public open class CfnBot( /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ public fun voiceSettings(voiceSettings: IResolvable) /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ public fun voiceSettings(voiceSettings: VoiceSettingsProperty) /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f134e87e6455eb7ee5f8d312b4bb55381e0723a5544fd753a59801b52965ded9") @@ -2223,6 +2257,12 @@ public open class CfnBot( /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ override fun voiceSettings(voiceSettings: IResolvable) { cdkBuilder.voiceSettings(voiceSettings.let(IResolvable.Companion::unwrap)) @@ -2231,6 +2271,12 @@ public open class CfnBot( /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ override fun voiceSettings(voiceSettings: VoiceSettingsProperty) { cdkBuilder.voiceSettings(voiceSettings.let(VoiceSettingsProperty.Companion::unwrap)) @@ -2239,6 +2285,12 @@ public open class CfnBot( /** * @param voiceSettings Defines settings for using an Amazon Polly voice to communicate with a * user. + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f134e87e6455eb7ee5f8d312b4bb55381e0723a5544fd753a59801b52965ded9") @@ -2251,7 +2303,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.BotLocaleProperty, - ) : CdkObject(cdkObject), BotLocaleProperty { + ) : CdkObject(cdkObject), + BotLocaleProperty { /** * Specifies a custom vocabulary to use with a specific locale. * @@ -2304,6 +2357,13 @@ public open class CfnBot( /** * Defines settings for using an Amazon Polly voice to communicate with a user. * + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-botlocale.html#cfn-lex-bot-botlocale-voicesettings) */ override fun voiceSettings(): Any? = unwrap(this).getVoiceSettings() @@ -2405,7 +2465,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ButtonProperty, - ) : CdkObject(cdkObject), ButtonProperty { + ) : CdkObject(cdkObject), + ButtonProperty { /** * The text that appears on the button. * @@ -2523,7 +2584,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.CloudWatchLogGroupLogDestinationProperty, - ) : CdkObject(cdkObject), CloudWatchLogGroupLogDestinationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogGroupLogDestinationProperty { /** * The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered. * @@ -2649,7 +2711,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.CodeHookSpecificationProperty, - ) : CdkObject(cdkObject), CodeHookSpecificationProperty { + ) : CdkObject(cdkObject), + CodeHookSpecificationProperty { /** * Specifies a Lambda function that verifies requests to a bot or fulfills the user's request * to a bot. @@ -2729,7 +2792,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ConditionProperty, - ) : CdkObject(cdkObject), ConditionProperty { + ) : CdkObject(cdkObject), + ConditionProperty { /** * The expression string that is evaluated. * @@ -3039,7 +3103,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ConditionalBranchProperty, - ) : CdkObject(cdkObject), ConditionalBranchProperty { + ) : CdkObject(cdkObject), + ConditionalBranchProperty { /** * Contains the expression to evaluate. * @@ -3446,7 +3511,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ConditionalSpecificationProperty, - ) : CdkObject(cdkObject), ConditionalSpecificationProperty { + ) : CdkObject(cdkObject), + ConditionalSpecificationProperty { /** * A list of conditional branches. * @@ -3634,7 +3700,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ConversationLogSettingsProperty, - ) : CdkObject(cdkObject), ConversationLogSettingsProperty { + ) : CdkObject(cdkObject), + ConversationLogSettingsProperty { /** * The Amazon S3 settings for logging audio to an S3 bucket. * @@ -3723,7 +3790,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.CustomPayloadProperty, - ) : CdkObject(cdkObject), CustomPayloadProperty { + ) : CdkObject(cdkObject), + CustomPayloadProperty { /** * The string that is sent to your application. * @@ -3850,7 +3918,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.CustomVocabularyItemProperty, - ) : CdkObject(cdkObject), CustomVocabularyItemProperty { + ) : CdkObject(cdkObject), + CustomVocabularyItemProperty { /** * The DisplayAs value for the custom vocabulary item from the custom vocabulary list. * @@ -3983,7 +4052,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.CustomVocabularyProperty, - ) : CdkObject(cdkObject), CustomVocabularyProperty { + ) : CdkObject(cdkObject), + CustomVocabularyProperty { /** * Specifies a list of words that you expect to be used during a conversation with your bot. * @@ -4132,7 +4202,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DTMFSpecificationProperty, - ) : CdkObject(cdkObject), DTMFSpecificationProperty { + ) : CdkObject(cdkObject), + DTMFSpecificationProperty { /** * The DTMF character that clears the accumulated DTMF digits and immediately ends the input. * @@ -4341,7 +4412,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DataPrivacyProperty, - ) : CdkObject(cdkObject), DataPrivacyProperty { + ) : CdkObject(cdkObject), + DataPrivacyProperty { /** * For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must * specify whether your use of Amazon Lex is related to a website, program, or other application @@ -4594,7 +4666,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DefaultConditionalBranchProperty, - ) : CdkObject(cdkObject), DefaultConditionalBranchProperty { + ) : CdkObject(cdkObject), + DefaultConditionalBranchProperty { /** * The next step in the conversation. * @@ -4736,7 +4809,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DialogActionProperty, - ) : CdkObject(cdkObject), DialogActionProperty { + ) : CdkObject(cdkObject), + DialogActionProperty { /** * If the dialog action is `ElicitSlot` , defines the slot to elicit from the user. * @@ -4955,7 +5029,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DialogCodeHookInvocationSettingProperty, - ) : CdkObject(cdkObject), DialogCodeHookInvocationSettingProperty { + ) : CdkObject(cdkObject), + DialogCodeHookInvocationSettingProperty { /** * Indicates whether a Lambda function should be invoked for the dialog. * @@ -5071,7 +5146,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DialogCodeHookSettingProperty, - ) : CdkObject(cdkObject), DialogCodeHookSettingProperty { + ) : CdkObject(cdkObject), + DialogCodeHookSettingProperty { /** * Enables the dialog code hook so that it processes user requests. * @@ -5309,7 +5385,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.DialogStateProperty, - ) : CdkObject(cdkObject), DialogStateProperty { + ) : CdkObject(cdkObject), + DialogStateProperty { /** * Defines the action that the bot executes at runtime when the conversation reaches this * step. @@ -5447,7 +5524,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ElicitationCodeHookInvocationSettingProperty, - ) : CdkObject(cdkObject), ElicitationCodeHookInvocationSettingProperty { + ) : CdkObject(cdkObject), + ElicitationCodeHookInvocationSettingProperty { /** * Indicates whether a Lambda function should be invoked for the dialog. * @@ -5578,7 +5656,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ExternalSourceSettingProperty, - ) : CdkObject(cdkObject), ExternalSourceSettingProperty { + ) : CdkObject(cdkObject), + ExternalSourceSettingProperty { /** * Settings required for a slot type based on a grammar that you provide. * @@ -5841,7 +5920,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.FulfillmentCodeHookSettingProperty, - ) : CdkObject(cdkObject), FulfillmentCodeHookSettingProperty { + ) : CdkObject(cdkObject), + FulfillmentCodeHookSettingProperty { /** * Indicates whether a Lambda function should be invoked to fulfill a specific intent. * @@ -6096,7 +6176,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.FulfillmentStartResponseSpecificationProperty, - ) : CdkObject(cdkObject), FulfillmentStartResponseSpecificationProperty { + ) : CdkObject(cdkObject), + FulfillmentStartResponseSpecificationProperty { /** * Determines whether the user can interrupt the start message while it is playing. * @@ -6342,7 +6423,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.FulfillmentUpdateResponseSpecificationProperty, - ) : CdkObject(cdkObject), FulfillmentUpdateResponseSpecificationProperty { + ) : CdkObject(cdkObject), + FulfillmentUpdateResponseSpecificationProperty { /** * Determines whether the user can interrupt an update message while it is playing. * @@ -6707,7 +6789,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.FulfillmentUpdatesSpecificationProperty, - ) : CdkObject(cdkObject), FulfillmentUpdatesSpecificationProperty { + ) : CdkObject(cdkObject), + FulfillmentUpdatesSpecificationProperty { /** * Determines whether fulfillment updates are sent to the user. When this field is true, * updates are sent. @@ -6848,7 +6931,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.GrammarSlotTypeSettingProperty, - ) : CdkObject(cdkObject), GrammarSlotTypeSettingProperty { + ) : CdkObject(cdkObject), + GrammarSlotTypeSettingProperty { /** * The source of the grammar used to create the slot type. * @@ -6971,7 +7055,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.GrammarSlotTypeSourceProperty, - ) : CdkObject(cdkObject), GrammarSlotTypeSourceProperty { + ) : CdkObject(cdkObject), + GrammarSlotTypeSourceProperty { /** * The AWS KMS key required to decrypt the contents of the grammar, if any. * @@ -7179,7 +7264,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ImageResponseCardProperty, - ) : CdkObject(cdkObject), ImageResponseCardProperty { + ) : CdkObject(cdkObject), + ImageResponseCardProperty { /** * A list of buttons that should be displayed on the response card. * @@ -7491,7 +7577,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.InitialResponseSettingProperty, - ) : CdkObject(cdkObject), InitialResponseSettingProperty { + ) : CdkObject(cdkObject), + InitialResponseSettingProperty { /** * Settings that specify the dialog code hook that is called by Amazon Lex at a step of the * conversation. @@ -7598,7 +7685,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.InputContextProperty, - ) : CdkObject(cdkObject), InputContextProperty { + ) : CdkObject(cdkObject), + InputContextProperty { /** * The name of the context. * @@ -8110,7 +8198,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.IntentClosingSettingProperty, - ) : CdkObject(cdkObject), IntentClosingSettingProperty { + ) : CdkObject(cdkObject), + IntentClosingSettingProperty { /** * The response that Amazon Lex sends to the user when the intent is complete. * @@ -8962,7 +9051,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.IntentConfirmationSettingProperty, - ) : CdkObject(cdkObject), IntentConfirmationSettingProperty { + ) : CdkObject(cdkObject), + IntentConfirmationSettingProperty { /** * The `DialogCodeHookInvocationSetting` object associated with intent's confirmation step. * @@ -9218,7 +9308,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.IntentOverrideProperty, - ) : CdkObject(cdkObject), IntentOverrideProperty { + ) : CdkObject(cdkObject), + IntentOverrideProperty { /** * The name of the intent. * @@ -9948,7 +10039,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.IntentProperty, - ) : CdkObject(cdkObject), IntentProperty { + ) : CdkObject(cdkObject), + IntentProperty { /** * A description of the intent. * @@ -10210,7 +10302,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.KendraConfigurationProperty, - ) : CdkObject(cdkObject), KendraConfigurationProperty { + ) : CdkObject(cdkObject), + KendraConfigurationProperty { /** * The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the * `AMAZON.KendraSearchIntent` intent to search. The index must be in the same account and Region @@ -10334,7 +10427,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.LambdaCodeHookProperty, - ) : CdkObject(cdkObject), LambdaCodeHookProperty { + ) : CdkObject(cdkObject), + LambdaCodeHookProperty { /** * The version of the request-response that you want Amazon Lex to use to invoke your Lambda * function. @@ -10546,7 +10640,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.MessageGroupProperty, - ) : CdkObject(cdkObject), MessageGroupProperty { + ) : CdkObject(cdkObject), + MessageGroupProperty { /** * The primary message that Amazon Lex should send to the user. * @@ -10823,7 +10918,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.MessageProperty, - ) : CdkObject(cdkObject), MessageProperty { + ) : CdkObject(cdkObject), + MessageProperty { /** * A message in a custom format defined by the client application. * @@ -10971,7 +11067,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.MultipleValuesSettingProperty, - ) : CdkObject(cdkObject), MultipleValuesSettingProperty { + ) : CdkObject(cdkObject), + MultipleValuesSettingProperty { /** * Indicates whether a slot can return multiple values. * @@ -11065,7 +11162,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ObfuscationSettingProperty, - ) : CdkObject(cdkObject), ObfuscationSettingProperty { + ) : CdkObject(cdkObject), + ObfuscationSettingProperty { /** * Value that determines whether Amazon Lex obscures slot values in conversation logs. * @@ -11199,7 +11297,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.OutputContextProperty, - ) : CdkObject(cdkObject), OutputContextProperty { + ) : CdkObject(cdkObject), + OutputContextProperty { /** * The name of the output context. * @@ -11296,7 +11395,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.PlainTextMessageProperty, - ) : CdkObject(cdkObject), PlainTextMessageProperty { + ) : CdkObject(cdkObject), + PlainTextMessageProperty { /** * The message to send to the user. * @@ -11841,7 +11941,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.PostDialogCodeHookInvocationSpecificationProperty, - ) : CdkObject(cdkObject), PostDialogCodeHookInvocationSpecificationProperty { + ) : CdkObject(cdkObject), + PostDialogCodeHookInvocationSpecificationProperty { /** * A list of conditional branches to evaluate after the dialog code hook throws an exception * or returns with the `State` field of the `Intent` object set to `Failed` . @@ -12454,7 +12555,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.PostFulfillmentStatusSpecificationProperty, - ) : CdkObject(cdkObject), PostFulfillmentStatusSpecificationProperty { + ) : CdkObject(cdkObject), + PostFulfillmentStatusSpecificationProperty { /** * A list of conditional branches to evaluate after the fulfillment code hook throws an * exception or returns with the `State` field of the `Intent` object set to `Failed` . @@ -12785,7 +12887,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.PromptAttemptSpecificationProperty, - ) : CdkObject(cdkObject), PromptAttemptSpecificationProperty { + ) : CdkObject(cdkObject), + PromptAttemptSpecificationProperty { /** * Indicates whether the user can interrupt a speech prompt attempt from the bot. * @@ -13106,7 +13209,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.PromptSpecificationProperty, - ) : CdkObject(cdkObject), PromptSpecificationProperty { + ) : CdkObject(cdkObject), + PromptSpecificationProperty { /** * Indicates whether the user can interrupt a speech prompt from the bot. * @@ -13331,7 +13435,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.ResponseSpecificationProperty, - ) : CdkObject(cdkObject), ResponseSpecificationProperty { + ) : CdkObject(cdkObject), + ResponseSpecificationProperty { /** * Indicates whether the user can interrupt a speech response from Amazon Lex. * @@ -13467,7 +13572,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.S3BucketLogDestinationProperty, - ) : CdkObject(cdkObject), S3BucketLogDestinationProperty { + ) : CdkObject(cdkObject), + S3BucketLogDestinationProperty { /** * The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting * audio log files stored in an Amazon S3 bucket. @@ -13602,7 +13708,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The S3 bucket name. * @@ -13693,7 +13800,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SSMLMessageProperty, - ) : CdkObject(cdkObject), SSMLMessageProperty { + ) : CdkObject(cdkObject), + SSMLMessageProperty { /** * The SSML text that defines the prompt. * @@ -13773,7 +13881,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SampleUtteranceProperty, - ) : CdkObject(cdkObject), SampleUtteranceProperty { + ) : CdkObject(cdkObject), + SampleUtteranceProperty { /** * A sample utterance that invokes an intent or respond to a slot elicitation prompt. * @@ -13851,7 +13960,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SampleValueProperty, - ) : CdkObject(cdkObject), SampleValueProperty { + ) : CdkObject(cdkObject), + SampleValueProperty { /** * The value that can be used for a slot type. * @@ -13948,7 +14058,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SentimentAnalysisSettingsProperty, - ) : CdkObject(cdkObject), SentimentAnalysisSettingsProperty { + ) : CdkObject(cdkObject), + SentimentAnalysisSettingsProperty { /** * Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances. * @@ -14052,7 +14163,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SessionAttributeProperty, - ) : CdkObject(cdkObject), SessionAttributeProperty { + ) : CdkObject(cdkObject), + SessionAttributeProperty { /** * The name of the session attribute. * @@ -14531,7 +14643,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotCaptureSettingProperty, - ) : CdkObject(cdkObject), SlotCaptureSettingProperty { + ) : CdkObject(cdkObject), + SlotCaptureSettingProperty { /** * A list of conditional branches to evaluate after the slot value is captured. * @@ -14664,7 +14777,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotDefaultValueProperty, - ) : CdkObject(cdkObject), SlotDefaultValueProperty { + ) : CdkObject(cdkObject), + SlotDefaultValueProperty { /** * The default value to use when a user doesn't provide a value for a slot. * @@ -14785,7 +14899,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotDefaultValueSpecificationProperty, - ) : CdkObject(cdkObject), SlotDefaultValueSpecificationProperty { + ) : CdkObject(cdkObject), + SlotDefaultValueSpecificationProperty { /** * A list of default values. * @@ -14889,7 +15004,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotPriorityProperty, - ) : CdkObject(cdkObject), SlotPriorityProperty { + ) : CdkObject(cdkObject), + SlotPriorityProperty { /** * The priority that Amazon Lex should apply to the slot. * @@ -15242,7 +15358,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotProperty, - ) : CdkObject(cdkObject), SlotProperty { + ) : CdkObject(cdkObject), + SlotProperty { /** * The description of the slot. * @@ -15686,7 +15803,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotTypeProperty, - ) : CdkObject(cdkObject), SlotTypeProperty { + ) : CdkObject(cdkObject), + SlotTypeProperty { /** * A description of the slot type. * @@ -15896,7 +16014,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotTypeValueProperty, - ) : CdkObject(cdkObject), SlotTypeValueProperty { + ) : CdkObject(cdkObject), + SlotTypeValueProperty { /** * The value of the slot type entry. * @@ -16266,7 +16385,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueElicitationSettingProperty, - ) : CdkObject(cdkObject), SlotValueElicitationSettingProperty { + ) : CdkObject(cdkObject), + SlotValueElicitationSettingProperty { /** * A list of default values for a slot. * @@ -16454,7 +16574,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueOverrideMapProperty, - ) : CdkObject(cdkObject), SlotValueOverrideMapProperty { + ) : CdkObject(cdkObject), + SlotValueOverrideMapProperty { /** * The name of the slot. * @@ -16655,7 +16776,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueOverrideProperty, - ) : CdkObject(cdkObject), SlotValueOverrideProperty { + ) : CdkObject(cdkObject), + SlotValueOverrideProperty { /** * When the shape value is `List` , it indicates that the `values` field contains a list of * slot values. @@ -16764,7 +16886,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueProperty, - ) : CdkObject(cdkObject), SlotValueProperty { + ) : CdkObject(cdkObject), + SlotValueProperty { /** * The value that Amazon Lex determines for the slot. * @@ -16887,7 +17010,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueRegexFilterProperty, - ) : CdkObject(cdkObject), SlotValueRegexFilterProperty { + ) : CdkObject(cdkObject), + SlotValueRegexFilterProperty { /** * A regular expression used to validate the value of a slot. * @@ -17135,7 +17259,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.SlotValueSelectionSettingProperty, - ) : CdkObject(cdkObject), SlotValueSelectionSettingProperty { + ) : CdkObject(cdkObject), + SlotValueSelectionSettingProperty { /** * Provides settings that enable advanced recognition settings for slot values. * @@ -17405,7 +17530,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.StillWaitingResponseSpecificationProperty, - ) : CdkObject(cdkObject), StillWaitingResponseSpecificationProperty { + ) : CdkObject(cdkObject), + StillWaitingResponseSpecificationProperty { /** * Indicates that the user can interrupt the response by speaking while the message is being * played. @@ -17681,7 +17807,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.TestBotAliasSettingsProperty, - ) : CdkObject(cdkObject), TestBotAliasSettingsProperty { + ) : CdkObject(cdkObject), + TestBotAliasSettingsProperty { /** * Specifies settings that are unique to a locale. * @@ -17789,7 +17916,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.TextInputSpecificationProperty, - ) : CdkObject(cdkObject), TextInputSpecificationProperty { + ) : CdkObject(cdkObject), + TextInputSpecificationProperty { /** * Time for which a bot waits before re-prompting a customer for text input. * @@ -17906,7 +18034,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.TextLogDestinationProperty, - ) : CdkObject(cdkObject), TextLogDestinationProperty { + ) : CdkObject(cdkObject), + TextLogDestinationProperty { /** * Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered. * @@ -18056,7 +18185,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.TextLogSettingProperty, - ) : CdkObject(cdkObject), TextLogSettingProperty { + ) : CdkObject(cdkObject), + TextLogSettingProperty { /** * Specifies the Amazon CloudWatch Logs destination log group for conversation text logs. * @@ -18092,6 +18222,13 @@ public open class CfnBot( /** * Defines settings for using an Amazon Polly voice to communicate with a user. * + * Valid values include: + * + * * `standard` + * * `neural` + * * `long-form` + * * `generative` + * * Example: * * ``` @@ -18182,7 +18319,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.VoiceSettingsProperty, - ) : CdkObject(cdkObject), VoiceSettingsProperty { + ) : CdkObject(cdkObject), + VoiceSettingsProperty { /** * Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction * with the user. @@ -18617,7 +18755,8 @@ public open class CfnBot( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBot.WaitAndContinueSpecificationProperty, - ) : CdkObject(cdkObject), WaitAndContinueSpecificationProperty { + ) : CdkObject(cdkObject), + WaitAndContinueSpecificationProperty { /** * The response that Amazon Lex sends to indicate that the bot is ready to continue the * conversation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAlias.kt index 669b3a89e3..2af5bfe4de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAlias.kt @@ -87,7 +87,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBotAlias( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -721,7 +722,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.AudioLogDestinationProperty, - ) : CdkObject(cdkObject), AudioLogDestinationProperty { + ) : CdkObject(cdkObject), + AudioLogDestinationProperty { /** * The S3 bucket location where audio logs are stored. * @@ -875,7 +877,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.AudioLogSettingProperty, - ) : CdkObject(cdkObject), AudioLogSettingProperty { + ) : CdkObject(cdkObject), + AudioLogSettingProperty { /** * The location of audio log files collected when conversation logging is enabled for a bot. * @@ -1025,7 +1028,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.BotAliasLocaleSettingsItemProperty, - ) : CdkObject(cdkObject), BotAliasLocaleSettingsItemProperty { + ) : CdkObject(cdkObject), + BotAliasLocaleSettingsItemProperty { /** * Specifies settings that are unique to a locale. * @@ -1196,7 +1200,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.BotAliasLocaleSettingsProperty, - ) : CdkObject(cdkObject), BotAliasLocaleSettingsProperty { + ) : CdkObject(cdkObject), + BotAliasLocaleSettingsProperty { /** * Specifies the Lambda function that should be used in the locale. * @@ -1314,7 +1319,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.CloudWatchLogGroupLogDestinationProperty, - ) : CdkObject(cdkObject), CloudWatchLogGroupLogDestinationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogGroupLogDestinationProperty { /** * The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered. * @@ -1441,7 +1447,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.CodeHookSpecificationProperty, - ) : CdkObject(cdkObject), CodeHookSpecificationProperty { + ) : CdkObject(cdkObject), + CodeHookSpecificationProperty { /** * Specifies a Lambda function that verifies requests to a bot or fulfills the user's request * to a bot. @@ -1609,7 +1616,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.ConversationLogSettingsProperty, - ) : CdkObject(cdkObject), ConversationLogSettingsProperty { + ) : CdkObject(cdkObject), + ConversationLogSettingsProperty { /** * The Amazon S3 settings for logging audio to an S3 bucket. * @@ -1720,7 +1728,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.LambdaCodeHookProperty, - ) : CdkObject(cdkObject), LambdaCodeHookProperty { + ) : CdkObject(cdkObject), + LambdaCodeHookProperty { /** * The version of the request-response that you want Amazon Lex to use to invoke your Lambda * function. @@ -1856,7 +1865,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.S3BucketLogDestinationProperty, - ) : CdkObject(cdkObject), S3BucketLogDestinationProperty { + ) : CdkObject(cdkObject), + S3BucketLogDestinationProperty { /** * The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting * audio log files stored in an Amazon S3 bucket. @@ -1971,7 +1981,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.SentimentAnalysisSettingsProperty, - ) : CdkObject(cdkObject), SentimentAnalysisSettingsProperty { + ) : CdkObject(cdkObject), + SentimentAnalysisSettingsProperty { /** * Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances. * @@ -2089,7 +2100,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.TextLogDestinationProperty, - ) : CdkObject(cdkObject), TextLogDestinationProperty { + ) : CdkObject(cdkObject), + TextLogDestinationProperty { /** * Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered. * @@ -2239,7 +2251,8 @@ public open class CfnBotAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAlias.TextLogSettingProperty, - ) : CdkObject(cdkObject), TextLogSettingProperty { + ) : CdkObject(cdkObject), + TextLogSettingProperty { /** * Defines the Amazon CloudWatch Logs destination log group for conversation text logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAliasProps.kt index a079f5fd4b..038e683340 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotAliasProps.kt @@ -386,7 +386,8 @@ public interface CfnBotAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotAliasProps, - ) : CdkObject(cdkObject), CfnBotAliasProps { + ) : CdkObject(cdkObject), + CfnBotAliasProps { /** * Specifies settings that are unique to a locale. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotProps.kt index 0acea1f33f..056aeab023 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotProps.kt @@ -487,7 +487,8 @@ public interface CfnBotProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotProps, - ) : CdkObject(cdkObject), CfnBotProps { + ) : CdkObject(cdkObject), + CfnBotProps { /** * Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a * change. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersion.kt index 1c945b0476..dc43b85d16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersion.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBotVersion( cdkObject: software.amazon.awscdk.services.lex.CfnBotVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -342,7 +343,8 @@ public open class CfnBotVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotVersion.BotVersionLocaleDetailsProperty, - ) : CdkObject(cdkObject), BotVersionLocaleDetailsProperty { + ) : CdkObject(cdkObject), + BotVersionLocaleDetailsProperty { /** * The version of a bot used for a bot locale. * @@ -481,7 +483,8 @@ public open class CfnBotVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotVersion.BotVersionLocaleSpecificationProperty, - ) : CdkObject(cdkObject), BotVersionLocaleSpecificationProperty { + ) : CdkObject(cdkObject), + BotVersionLocaleSpecificationProperty { /** * The version of a bot used for a bot locale. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersionProps.kt index 6de75817a5..686a16a7e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnBotVersionProps.kt @@ -159,7 +159,8 @@ public interface CfnBotVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnBotVersionProps, - ) : CdkObject(cdkObject), CfnBotVersionProps { + ) : CdkObject(cdkObject), + CfnBotVersionProps { /** * The unique identifier of the bot. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicy.kt index 7c72553d4b..790de6e010 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicy.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.lex.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicyProps.kt index d7be8afdd2..d198c24868 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lex/CfnResourcePolicyProps.kt @@ -94,7 +94,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lex.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * A resource policy to add to the resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrant.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrant.kt index b85fd3ac5e..8a8e8bb485 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrant.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrant.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGrant( cdkObject: software.amazon.awscdk.services.licensemanager.CfnGrant, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.licensemanager.CfnGrant(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrantProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrantProps.kt index 7fe9200050..61132f227f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrantProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnGrantProps.kt @@ -202,7 +202,8 @@ public interface CfnGrantProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnGrantProps, - ) : CdkObject(cdkObject), CfnGrantProps { + ) : CdkObject(cdkObject), + CfnGrantProps { /** * Allowed operations for the grant. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicense.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicense.kt index 7ffe028ee3..7b71516e7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicense.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicense.kt @@ -81,7 +81,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLicense( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -837,7 +838,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.BorrowConfigurationProperty, - ) : CdkObject(cdkObject), BorrowConfigurationProperty { + ) : CdkObject(cdkObject), + BorrowConfigurationProperty { /** * Indicates whether early check-ins are allowed. * @@ -1033,7 +1035,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.ConsumptionConfigurationProperty, - ) : CdkObject(cdkObject), ConsumptionConfigurationProperty { + ) : CdkObject(cdkObject), + ConsumptionConfigurationProperty { /** * Details about a borrow configuration. * @@ -1261,7 +1264,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.EntitlementProperty, - ) : CdkObject(cdkObject), EntitlementProperty { + ) : CdkObject(cdkObject), + EntitlementProperty { /** * Indicates whether check-ins are allowed. * @@ -1409,7 +1413,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.IssuerDataProperty, - ) : CdkObject(cdkObject), IssuerDataProperty { + ) : CdkObject(cdkObject), + IssuerDataProperty { /** * Issuer name. * @@ -1519,7 +1524,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.MetadataProperty, - ) : CdkObject(cdkObject), MetadataProperty { + ) : CdkObject(cdkObject), + MetadataProperty { /** * The key name. * @@ -1609,7 +1615,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.ProvisionalConfigurationProperty, - ) : CdkObject(cdkObject), ProvisionalConfigurationProperty { + ) : CdkObject(cdkObject), + ProvisionalConfigurationProperty { /** * Maximum time for the provisional configuration, in minutes. * @@ -1711,7 +1718,8 @@ public open class CfnLicense( private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicense.ValidityDateFormatProperty, - ) : CdkObject(cdkObject), ValidityDateFormatProperty { + ) : CdkObject(cdkObject), + ValidityDateFormatProperty { /** * Start of the time range. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicenseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicenseProps.kt index eba175811b..8a25f516cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicenseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/licensemanager/CfnLicenseProps.kt @@ -429,7 +429,8 @@ public interface CfnLicenseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.licensemanager.CfnLicenseProps, - ) : CdkObject(cdkObject), CfnLicenseProps { + ) : CdkObject(cdkObject), + CfnLicenseProps { /** * License beneficiary. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarm.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarm.kt index 02e448f8b2..cabfa7d0f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarm.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarm.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlarm( cdkObject: software.amazon.awscdk.services.lightsail.CfnAlarm, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarmProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarmProps.kt index f3230517b2..da3101f0fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarmProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnAlarmProps.kt @@ -378,7 +378,8 @@ public interface CfnAlarmProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnAlarmProps, - ) : CdkObject(cdkObject), CfnAlarmProps { + ) : CdkObject(cdkObject), + CfnAlarmProps { /** * The name of the alarm. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucket.kt index 9bc9e8a3a8..5c74e3bcc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucket.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucket( cdkObject: software.amazon.awscdk.services.lightsail.CfnBucket, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -732,7 +734,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnBucket.AccessRulesProperty, - ) : CdkObject(cdkObject), AccessRulesProperty { + ) : CdkObject(cdkObject), + AccessRulesProperty { /** * A Boolean value indicating whether the access control list (ACL) permissions that are * applied to individual objects override the `GetObject` option that is currently specified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucketProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucketProps.kt index 0a5fc9b96d..696ba9b617 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucketProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnBucketProps.kt @@ -344,7 +344,8 @@ public interface CfnBucketProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnBucketProps, - ) : CdkObject(cdkObject), CfnBucketProps { + ) : CdkObject(cdkObject), + CfnBucketProps { /** * An object that describes the access rules for the bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificate.kt index 05dc35463c..44368c3c2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificate.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.lightsail.CfnCertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificateProps.kt index 07a78922a6..2a97bd8a43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnCertificateProps.kt @@ -185,7 +185,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * The name of the certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainer.kt index d3f5009975..41f1d89c6f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainer.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContainer( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1075,7 +1077,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.ContainerProperty, - ) : CdkObject(cdkObject), ContainerProperty { + ) : CdkObject(cdkObject), + ContainerProperty { /** * The launch command for the container. * @@ -1301,7 +1304,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.ContainerServiceDeploymentProperty, - ) : CdkObject(cdkObject), ContainerServiceDeploymentProperty { + ) : CdkObject(cdkObject), + ContainerServiceDeploymentProperty { /** * An object that describes the configuration for the containers of the deployment. * @@ -1428,7 +1432,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.EcrImagePullerRoleProperty, - ) : CdkObject(cdkObject), EcrImagePullerRoleProperty { + ) : CdkObject(cdkObject), + EcrImagePullerRoleProperty { /** * A boolean value that indicates whether the `ECRImagePullerRole` is active. * @@ -1543,7 +1548,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.EnvironmentVariableProperty, - ) : CdkObject(cdkObject), EnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EnvironmentVariableProperty { /** * The environment variable value. * @@ -1773,7 +1779,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.HealthCheckConfigProperty, - ) : CdkObject(cdkObject), HealthCheckConfigProperty { + ) : CdkObject(cdkObject), + HealthCheckConfigProperty { /** * The number of consecutive health check successes required before moving the container to * the `Healthy` state. @@ -1930,7 +1937,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.PortInfoProperty, - ) : CdkObject(cdkObject), PortInfoProperty { + ) : CdkObject(cdkObject), + PortInfoProperty { /** * The open firewall ports of the container. * @@ -2076,7 +2084,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.PrivateRegistryAccessProperty, - ) : CdkObject(cdkObject), PrivateRegistryAccessProperty { + ) : CdkObject(cdkObject), + PrivateRegistryAccessProperty { /** * An object that describes the activation status of the role that you can use to grant a * Lightsail container service access to Amazon ECR private repositories. @@ -2194,7 +2203,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.PublicDomainNameProperty, - ) : CdkObject(cdkObject), PublicDomainNameProperty { + ) : CdkObject(cdkObject), + PublicDomainNameProperty { /** * The name of the certificate for the public domains. * @@ -2368,7 +2378,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainer.PublicEndpointProperty, - ) : CdkObject(cdkObject), PublicEndpointProperty { + ) : CdkObject(cdkObject), + PublicEndpointProperty { /** * The name of the container entry of the deployment that the endpoint configuration applies * to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainerProps.kt index 0512f01e8c..4209f64cff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnContainerProps.kt @@ -545,7 +545,8 @@ public interface CfnContainerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnContainerProps, - ) : CdkObject(cdkObject), CfnContainerProps { + ) : CdkObject(cdkObject), + CfnContainerProps { /** * An object that describes the current container deployment of the container service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabase.kt index 6c06da1f38..c430eeb487 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabase.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatabase( cdkObject: software.amazon.awscdk.services.lightsail.CfnDatabase, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1209,7 +1211,8 @@ public open class CfnDatabase( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDatabase.RelationalDatabaseParameterProperty, - ) : CdkObject(cdkObject), RelationalDatabaseParameterProperty { + ) : CdkObject(cdkObject), + RelationalDatabaseParameterProperty { /** * The valid range of values for the parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabaseProps.kt index ec047608ec..b2121a175f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDatabaseProps.kt @@ -738,7 +738,8 @@ public interface CfnDatabaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDatabaseProps, - ) : CdkObject(cdkObject), CfnDatabaseProps { + ) : CdkObject(cdkObject), + CfnDatabaseProps { /** * The Availability Zone for the database. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDisk.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDisk.kt index 9bfec14b7f..8fc9cefa6c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDisk.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDisk.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDisk( cdkObject: software.amazon.awscdk.services.lightsail.CfnDisk, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -703,7 +705,8 @@ public open class CfnDisk( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDisk.AddOnProperty, - ) : CdkObject(cdkObject), AddOnProperty { + ) : CdkObject(cdkObject), + AddOnProperty { /** * The add-on type (for example, `AutoSnapshot` ). * @@ -823,7 +826,8 @@ public open class CfnDisk( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDisk.AutoSnapshotAddOnProperty, - ) : CdkObject(cdkObject), AutoSnapshotAddOnProperty { + ) : CdkObject(cdkObject), + AutoSnapshotAddOnProperty { /** * The daily time when an automatic snapshot will be created. * @@ -930,7 +934,8 @@ public open class CfnDisk( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDisk.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The Availability Zone where the disk is located. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDiskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDiskProps.kt index de575ca1b9..c3407c7760 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDiskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDiskProps.kt @@ -295,7 +295,8 @@ public interface CfnDiskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDiskProps, - ) : CdkObject(cdkObject), CfnDiskProps { + ) : CdkObject(cdkObject), + CfnDiskProps { /** * An array of add-ons for the disk. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistribution.kt index 66b9e4ca42..2e28b81fec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistribution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistribution.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDistribution( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1011,7 +1013,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.CacheBehaviorPerPathProperty, - ) : CdkObject(cdkObject), CacheBehaviorPerPathProperty { + ) : CdkObject(cdkObject), + CacheBehaviorPerPathProperty { /** * The cache behavior for the specified path. * @@ -1175,7 +1178,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.CacheBehaviorProperty, - ) : CdkObject(cdkObject), CacheBehaviorProperty { + ) : CdkObject(cdkObject), + CacheBehaviorProperty { /** * The cache behavior of the distribution. * @@ -1642,7 +1646,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.CacheSettingsProperty, - ) : CdkObject(cdkObject), CacheSettingsProperty { + ) : CdkObject(cdkObject), + CacheSettingsProperty { /** * The HTTP methods that are processed and forwarded to the distribution's origin. * @@ -1871,7 +1876,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.CookieObjectProperty, - ) : CdkObject(cdkObject), CookieObjectProperty { + ) : CdkObject(cdkObject), + CookieObjectProperty { /** * The specific cookies to forward to your distribution's origin. * @@ -2033,7 +2039,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.HeaderObjectProperty, - ) : CdkObject(cdkObject), HeaderObjectProperty { + ) : CdkObject(cdkObject), + HeaderObjectProperty { /** * The specific headers to forward to your distribution's origin. * @@ -2180,7 +2187,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.InputOriginProperty, - ) : CdkObject(cdkObject), InputOriginProperty { + ) : CdkObject(cdkObject), + InputOriginProperty { /** * The name of the origin resource. * @@ -2356,7 +2364,8 @@ public open class CfnDistribution( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistribution.QueryStringObjectProperty, - ) : CdkObject(cdkObject), QueryStringObjectProperty { + ) : CdkObject(cdkObject), + QueryStringObjectProperty { /** * Indicates whether the distribution forwards and caches based on query strings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistributionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistributionProps.kt index 1e97c72bf2..600381f720 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistributionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnDistributionProps.kt @@ -477,7 +477,8 @@ public interface CfnDistributionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnDistributionProps, - ) : CdkObject(cdkObject), CfnDistributionProps { + ) : CdkObject(cdkObject), + CfnDistributionProps { /** * The ID of the bundle applied to the distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstance.kt index ad80fd0630..9b03aee9e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstance.kt @@ -98,7 +98,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstance( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -155,6 +157,11 @@ public open class CfnInstance( */ public open fun attrInstanceArn(): String = unwrap(this).getAttrInstanceArn() + /** + * The IPv6 addresses of the instance. + */ + public open fun attrIpv6Addresses(): List = unwrap(this).getAttrIpv6Addresses() + /** * A Boolean value indicating whether the instance has a static IP assigned to it. */ @@ -1232,7 +1239,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.AddOnProperty, - ) : CdkObject(cdkObject), AddOnProperty { + ) : CdkObject(cdkObject), + AddOnProperty { /** * The add-on type (for example, `AutoSnapshot` ). * @@ -1354,7 +1362,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.AutoSnapshotAddOnProperty, - ) : CdkObject(cdkObject), AutoSnapshotAddOnProperty { + ) : CdkObject(cdkObject), + AutoSnapshotAddOnProperty { /** * The daily time when an automatic snapshot will be created. * @@ -1595,7 +1604,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.DiskProperty, - ) : CdkObject(cdkObject), DiskProperty { + ) : CdkObject(cdkObject), + DiskProperty { /** * The resources to which the disk is attached. * @@ -1833,7 +1843,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.HardwareProperty, - ) : CdkObject(cdkObject), HardwareProperty { + ) : CdkObject(cdkObject), + HardwareProperty { /** * The number of vCPUs the instance has. * @@ -1962,7 +1973,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The Availability Zone for the instance. * @@ -2054,7 +2066,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.MonthlyTransferProperty, - ) : CdkObject(cdkObject), MonthlyTransferProperty { + ) : CdkObject(cdkObject), + MonthlyTransferProperty { /** * The amount of allocated monthly data transfer (in GB) for an instance. * @@ -2226,7 +2239,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.NetworkingProperty, - ) : CdkObject(cdkObject), NetworkingProperty { + ) : CdkObject(cdkObject), + NetworkingProperty { /** * The monthly amount of data transfer, in GB, allocated for the instance. * @@ -2737,7 +2751,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.PortProperty, - ) : CdkObject(cdkObject), PortProperty { + ) : CdkObject(cdkObject), + PortProperty { /** * The access direction ( `inbound` or `outbound` ). * @@ -2965,7 +2980,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstance.StateProperty, - ) : CdkObject(cdkObject), StateProperty { + ) : CdkObject(cdkObject), + StateProperty { /** * The status code of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstanceProps.kt index 40547b6572..a30433acef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnInstanceProps.kt @@ -636,7 +636,8 @@ public interface CfnInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnInstanceProps, - ) : CdkObject(cdkObject), CfnInstanceProps { + ) : CdkObject(cdkObject), + CfnInstanceProps { /** * An array of add-ons for the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancer.kt index c5bab5f07a..c806aab7aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancer.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoadBalancer( cdkObject: software.amazon.awscdk.services.lightsail.CfnLoadBalancer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerProps.kt index b6b92defe4..a38c7faa17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerProps.kt @@ -347,7 +347,8 @@ public interface CfnLoadBalancerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnLoadBalancerProps, - ) : CdkObject(cdkObject), CfnLoadBalancerProps { + ) : CdkObject(cdkObject), + CfnLoadBalancerProps { /** * The Lightsail instances to attach to the load balancer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificate.kt index dea92c36b2..769aa7936b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificate.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoadBalancerTlsCertificate( cdkObject: software.amazon.awscdk.services.lightsail.CfnLoadBalancerTlsCertificate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificateProps.kt index 69e968e4a6..bebb99d7c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnLoadBalancerTlsCertificateProps.kt @@ -234,7 +234,8 @@ public interface CfnLoadBalancerTlsCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnLoadBalancerTlsCertificateProps, - ) : CdkObject(cdkObject), CfnLoadBalancerTlsCertificateProps { + ) : CdkObject(cdkObject), + CfnLoadBalancerTlsCertificateProps { /** * An array of alternative domain names and subdomain names for your SSL/TLS certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIp.kt index 5652ab4724..be5217d4f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIp.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStaticIp( cdkObject: software.amazon.awscdk.services.lightsail.CfnStaticIp, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIpProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIpProps.kt index 4af4f292d1..2ea0cac483 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIpProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lightsail/CfnStaticIpProps.kt @@ -81,7 +81,8 @@ public interface CfnStaticIpProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lightsail.CfnStaticIpProps, - ) : CdkObject(cdkObject), CfnStaticIpProps { + ) : CdkObject(cdkObject), + CfnStaticIpProps { /** * The instance that the static IP is attached to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKey.kt index 4d45137bd0..c17ef5defd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKey.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAPIKey( cdkObject: software.amazon.awscdk.services.location.CfnAPIKey, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1017,7 +1019,8 @@ public open class CfnAPIKey( private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnAPIKey.ApiKeyRestrictionsProperty, - ) : CdkObject(cdkObject), ApiKeyRestrictionsProperty { + ) : CdkObject(cdkObject), + ApiKeyRestrictionsProperty { /** * A list of allowed actions that an API key resource grants permissions to perform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKeyProps.kt index 42b4e66735..407d0eaa05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnAPIKeyProps.kt @@ -386,7 +386,8 @@ public interface CfnAPIKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnAPIKeyProps, - ) : CdkObject(cdkObject), CfnAPIKeyProps { + ) : CdkObject(cdkObject), + CfnAPIKeyProps { /** * Updates the description for the API key resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollection.kt index 514e01b7ae..78db71ff4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollection.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGeofenceCollection( cdkObject: software.amazon.awscdk.services.location.CfnGeofenceCollection, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollectionProps.kt index c6a900c635..8f7b2eef4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnGeofenceCollectionProps.kt @@ -282,7 +282,8 @@ public interface CfnGeofenceCollectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnGeofenceCollectionProps, - ) : CdkObject(cdkObject), CfnGeofenceCollectionProps { + ) : CdkObject(cdkObject), + CfnGeofenceCollectionProps { /** * A custom name for the geofence collection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMap.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMap.kt index 6903c296f9..3c0fd39807 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMap.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMap.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMap( cdkObject: software.amazon.awscdk.services.location.CfnMap, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -540,11 +542,9 @@ public open class CfnMap( * Valid [Esri map styles](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) * : * - * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap - * for the world symbolized with a custom navigation map style that's designed for use during the - * day in mobile devices. It also includes a richer set of places, such as shops, services, - * restaurants, attractions, and other points of interest. Enable the `POI` layer by setting it in - * CustomLayers to leverage the additional places data. + * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a + * dark gray, neutral background with minimal colors, labels, and features that's designed to draw + * attention to your thematic content. * * `RasterEsriImagery` – The Esri Imagery map style. A raster basemap that provides one meter * or better satellite and aerial imagery in many parts of the world and lower resolution satellite * imagery worldwide. @@ -556,16 +556,27 @@ public open class CfnMap( * * `VectorEsriStreets` – The Esri Street Map style, which provides a detailed vector basemap * for the world symbolized with a classic Esri street map style. The vector tile layer is similar * in content and style to the World Street Map raster map. - * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a - * dark gray, neutral background with minimal colors, labels, and features that's designed to draw - * attention to your thematic content. + * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap + * for the world symbolized with a custom navigation map style that's designed for use during the + * day in mobile devices. * * Valid [HERE Technologies map * styles](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) : * + * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed + * base map of the world that blends 3D and 2D rendering. + * + * + * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . `VectorHereBerlin` + * has been deprecated, but will continue to work in applications that use it. + * + * * * `VectorHereExplore` – A default HERE map style containing a neutral, global map and its * features including roads, buildings, landmarks, and water features. It also now includes a fully * designed map of Japan. + * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes (e.g. + * width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore + * to support use cases within transport and logistics. * * `RasterHereExploreSatellite` – A global map containing high resolution satellite imagery. * * `HybridHereExploreSatellite` – A global map displaying the road network, street names, and * city labels over satellite imagery. This style will automatically retrieve both raster and @@ -577,18 +588,6 @@ public open class CfnMap( * charges will include all tiles retrieved. * * - * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed - * base map of the world that blends 3D and 2D rendering. - * - * - * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . `VectorHereBerlin` - * has been deprecated, but will continue to work in applications that use it. - * - * - * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes (e.g. - * width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore - * to support use cases within transport and logistics. - * * Valid [GrabMaps map * styles](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) : * @@ -669,11 +668,9 @@ public open class CfnMap( * Valid [Esri map * styles](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) : * - * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap - * for the world symbolized with a custom navigation map style that's designed for use during the - * day in mobile devices. It also includes a richer set of places, such as shops, services, - * restaurants, attractions, and other points of interest. Enable the `POI` layer by setting it - * in CustomLayers to leverage the additional places data. + * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a + * dark gray, neutral background with minimal colors, labels, and features that's designed to + * draw attention to your thematic content. * * `RasterEsriImagery` – The Esri Imagery map style. A raster basemap that provides one * meter or better satellite and aerial imagery in many parts of the world and lower resolution * satellite imagery worldwide. @@ -685,16 +682,27 @@ public open class CfnMap( * * `VectorEsriStreets` – The Esri Street Map style, which provides a detailed vector basemap * for the world symbolized with a classic Esri street map style. The vector tile layer is * similar in content and style to the World Street Map raster map. - * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a - * dark gray, neutral background with minimal colors, labels, and features that's designed to - * draw attention to your thematic content. + * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap + * for the world symbolized with a custom navigation map style that's designed for use during the + * day in mobile devices. * * Valid [HERE Technologies map * styles](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) : * + * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed + * base map of the world that blends 3D and 2D rendering. + * + * + * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . + * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. + * + * * * `VectorHereExplore` – A default HERE map style containing a neutral, global map and its * features including roads, buildings, landmarks, and water features. It also now includes a * fully designed map of Japan. + * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes + * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE + * Explore to support use cases within transport and logistics. * * `RasterHereExploreSatellite` – A global map containing high resolution satellite imagery. * * `HybridHereExploreSatellite` – A global map displaying the road network, street names, * and city labels over satellite imagery. This style will automatically retrieve both raster and @@ -706,18 +714,6 @@ public open class CfnMap( * charges will include all tiles retrieved. * * - * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed - * base map of the world that blends 3D and 2D rendering. - * - * - * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . - * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. - * - * - * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes - * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE - * Explore to support use cases within transport and logistics. - * * Valid [GrabMaps map * styles](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) : * @@ -803,11 +799,9 @@ public open class CfnMap( * Valid [Esri map * styles](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) : * - * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap - * for the world symbolized with a custom navigation map style that's designed for use during the - * day in mobile devices. It also includes a richer set of places, such as shops, services, - * restaurants, attractions, and other points of interest. Enable the `POI` layer by setting it - * in CustomLayers to leverage the additional places data. + * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a + * dark gray, neutral background with minimal colors, labels, and features that's designed to + * draw attention to your thematic content. * * `RasterEsriImagery` – The Esri Imagery map style. A raster basemap that provides one * meter or better satellite and aerial imagery in many parts of the world and lower resolution * satellite imagery worldwide. @@ -819,16 +813,27 @@ public open class CfnMap( * * `VectorEsriStreets` – The Esri Street Map style, which provides a detailed vector basemap * for the world symbolized with a classic Esri street map style. The vector tile layer is * similar in content and style to the World Street Map raster map. - * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a - * dark gray, neutral background with minimal colors, labels, and features that's designed to - * draw attention to your thematic content. + * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap + * for the world symbolized with a custom navigation map style that's designed for use during the + * day in mobile devices. * * Valid [HERE Technologies map * styles](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) : * + * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed + * base map of the world that blends 3D and 2D rendering. + * + * + * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . + * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. + * + * * * `VectorHereExplore` – A default HERE map style containing a neutral, global map and its * features including roads, buildings, landmarks, and water features. It also now includes a * fully designed map of Japan. + * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes + * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE + * Explore to support use cases within transport and logistics. * * `RasterHereExploreSatellite` – A global map containing high resolution satellite imagery. * * `HybridHereExploreSatellite` – A global map displaying the road network, street names, * and city labels over satellite imagery. This style will automatically retrieve both raster and @@ -840,18 +845,6 @@ public open class CfnMap( * charges will include all tiles retrieved. * * - * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed - * base map of the world that blends 3D and 2D rendering. - * - * - * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . - * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. - * - * - * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes - * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE - * Explore to support use cases within transport and logistics. - * * Valid [GrabMaps map * styles](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) : * @@ -897,7 +890,8 @@ public open class CfnMap( private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnMap.MapConfigurationProperty, - ) : CdkObject(cdkObject), MapConfigurationProperty { + ) : CdkObject(cdkObject), + MapConfigurationProperty { /** * Specifies the custom layers for the style. * @@ -928,11 +922,9 @@ public open class CfnMap( * Valid [Esri map * styles](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) : * - * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap - * for the world symbolized with a custom navigation map style that's designed for use during the - * day in mobile devices. It also includes a richer set of places, such as shops, services, - * restaurants, attractions, and other points of interest. Enable the `POI` layer by setting it - * in CustomLayers to leverage the additional places data. + * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a + * dark gray, neutral background with minimal colors, labels, and features that's designed to + * draw attention to your thematic content. * * `RasterEsriImagery` – The Esri Imagery map style. A raster basemap that provides one * meter or better satellite and aerial imagery in many parts of the world and lower resolution * satellite imagery worldwide. @@ -944,16 +936,27 @@ public open class CfnMap( * * `VectorEsriStreets` – The Esri Street Map style, which provides a detailed vector basemap * for the world symbolized with a classic Esri street map style. The vector tile layer is * similar in content and style to the World Street Map raster map. - * * `VectorEsriDarkGrayCanvas` – The Esri Dark Gray Canvas map style. A vector basemap with a - * dark gray, neutral background with minimal colors, labels, and features that's designed to - * draw attention to your thematic content. + * * `VectorEsriNavigation` – The Esri Navigation map style, which provides a detailed basemap + * for the world symbolized with a custom navigation map style that's designed for use during the + * day in mobile devices. * * Valid [HERE Technologies map * styles](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) : * + * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed + * base map of the world that blends 3D and 2D rendering. + * + * + * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . + * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. + * + * * * `VectorHereExplore` – A default HERE map style containing a neutral, global map and its * features including roads, buildings, landmarks, and water features. It also now includes a * fully designed map of Japan. + * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes + * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE + * Explore to support use cases within transport and logistics. * * `RasterHereExploreSatellite` – A global map containing high resolution satellite imagery. * * `HybridHereExploreSatellite` – A global map displaying the road network, street names, * and city labels over satellite imagery. This style will automatically retrieve both raster and @@ -965,18 +968,6 @@ public open class CfnMap( * charges will include all tiles retrieved. * * - * * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a high contrast detailed - * base map of the world that blends 3D and 2D rendering. - * - * - * The `VectorHereContrast` style has been renamed from `VectorHereBerlin` . - * `VectorHereBerlin` has been deprecated, but will continue to work in applications that use it. - * - * - * * `VectorHereExploreTruck` – A global map containing truck restrictions and attributes - * (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE - * Explore to support use cases within transport and logistics. - * * Valid [GrabMaps map * styles](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) : * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMapProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMapProps.kt index 92ca68b3b5..247429947b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMapProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnMapProps.kt @@ -295,7 +295,8 @@ public interface CfnMapProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnMapProps, - ) : CdkObject(cdkObject), CfnMapProps { + ) : CdkObject(cdkObject), + CfnMapProps { /** * Specifies the `MapConfiguration` , including the map style, for the map resource that you * create. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndex.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndex.kt index b61ca206f3..603d140bb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndex.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndex.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlaceIndex( cdkObject: software.amazon.awscdk.services.location.CfnPlaceIndex, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -588,7 +590,8 @@ public open class CfnPlaceIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnPlaceIndex.DataSourceConfigurationProperty, - ) : CdkObject(cdkObject), DataSourceConfigurationProperty { + ) : CdkObject(cdkObject), + DataSourceConfigurationProperty { /** * Specifies how the results of an operation will be stored by the caller. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndexProps.kt index 06f5487f7d..8402a1c355 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnPlaceIndexProps.kt @@ -340,7 +340,8 @@ public interface CfnPlaceIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnPlaceIndexProps, - ) : CdkObject(cdkObject), CfnPlaceIndexProps { + ) : CdkObject(cdkObject), + CfnPlaceIndexProps { /** * Specifies the geospatial data provider for the new place index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculator.kt index eb06cd86fa..1417943022 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculator.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRouteCalculator( cdkObject: software.amazon.awscdk.services.location.CfnRouteCalculator, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculatorProps.kt index 5d8351f8d6..68b21cac8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculatorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnRouteCalculatorProps.kt @@ -278,7 +278,8 @@ public interface CfnRouteCalculatorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnRouteCalculatorProps, - ) : CdkObject(cdkObject), CfnRouteCalculatorProps { + ) : CdkObject(cdkObject), + CfnRouteCalculatorProps { /** * The name of the route calculator resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTracker.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTracker.kt index 64b0c58f19..9404278af9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTracker.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTracker.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTracker( cdkObject: software.amazon.awscdk.services.location.CfnTracker, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -209,12 +211,16 @@ public open class CfnTracker( } /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") public open fun pricingPlanDataSource(): String? = unwrap(this).getPricingPlanDataSource() /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -336,9 +342,13 @@ public open class CfnTracker( public fun pricingPlan(pricingPlan: String) /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * + * No longer allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-tracker.html#cfn-location-tracker-pricingplandatasource) * @deprecated this property has been deprecated - * @param pricingPlanDataSource + * @param pricingPlanDataSource This shape is deprecated since 2022-02-01: Deprecated. */ @Deprecated(message = "deprecated in CDK") public fun pricingPlanDataSource(pricingPlanDataSource: String) @@ -478,9 +488,13 @@ public open class CfnTracker( } /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * + * No longer allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-tracker.html#cfn-location-tracker-pricingplandatasource) * @deprecated this property has been deprecated - * @param pricingPlanDataSource + * @param pricingPlanDataSource This shape is deprecated since 2022-02-01: Deprecated. */ @Deprecated(message = "deprecated in CDK") override fun pricingPlanDataSource(pricingPlanDataSource: String) { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumer.kt index cb1e9492d2..ce6e1fab81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumer.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrackerConsumer( cdkObject: software.amazon.awscdk.services.location.CfnTrackerConsumer, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumerProps.kt index 83dbabea64..27d1a3182b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerConsumerProps.kt @@ -115,7 +115,8 @@ public interface CfnTrackerConsumerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnTrackerConsumerProps, - ) : CdkObject(cdkObject), CfnTrackerConsumerProps { + ) : CdkObject(cdkObject), + CfnTrackerConsumerProps { /** * The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker * resource. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerProps.kt index e3fb3b1563..d3fab533ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/location/CfnTrackerProps.kt @@ -103,6 +103,10 @@ public interface CfnTrackerProps { public fun pricingPlan(): String? = unwrap(this).getPricingPlan() /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * + * No longer allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-tracker.html#cfn-location-tracker-pricingplandatasource) * @deprecated this property has been deprecated */ @@ -198,7 +202,8 @@ public interface CfnTrackerProps { public fun pricingPlan(pricingPlan: String) /** - * @param pricingPlanDataSource the value to be set. + * @param pricingPlanDataSource This shape is deprecated since 2022-02-01: Deprecated. + * No longer allowed. * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -309,7 +314,8 @@ public interface CfnTrackerProps { } /** - * @param pricingPlanDataSource the value to be set. + * @param pricingPlanDataSource This shape is deprecated since 2022-02-01: Deprecated. + * No longer allowed. * @deprecated this property has been deprecated */ @Deprecated(message = "deprecated in CDK") @@ -348,7 +354,8 @@ public interface CfnTrackerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.location.CfnTrackerProps, - ) : CdkObject(cdkObject), CfnTrackerProps { + ) : CdkObject(cdkObject), + CfnTrackerProps { /** * An optional description for the tracker resource. * @@ -410,6 +417,10 @@ public interface CfnTrackerProps { override fun pricingPlan(): String? = unwrap(this).getPricingPlan() /** + * (deprecated) This shape is deprecated since 2022-02-01: Deprecated. + * + * No longer allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-tracker.html#cfn-location-tracker-pricingplandatasource) * @deprecated this property has been deprecated */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicy.kt index f1661bd77b..87fbeeaaee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicy.kt @@ -97,7 +97,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccountPolicy( cdkObject: software.amazon.awscdk.services.logs.CfnAccountPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicyProps.kt index 94c7c757fa..c0ddc9d680 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnAccountPolicyProps.kt @@ -363,7 +363,8 @@ public interface CfnAccountPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnAccountPolicyProps, - ) : CdkObject(cdkObject), CfnAccountPolicyProps { + ) : CdkObject(cdkObject), + CfnAccountPolicyProps { /** * Specify the policy, in JSON. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDelivery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDelivery.kt index a7f6c1bf1d..a7702bca81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDelivery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDelivery.kt @@ -25,7 +25,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html) * . * - * You can't update an existing delivery. You can only create and delete deliveries. + * To update an existing delivery configuration, use + * [UpdateDeliveryConfiguration](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html) + * . * * Example: * @@ -48,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDelivery( cdkObject: software.amazon.awscdk.services.logs.CfnDelivery, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestination.kt index 98e21b2ff1..10c8e999eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestination.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeliveryDestination( cdkObject: software.amazon.awscdk.services.logs.CfnDeliveryDestination, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestinationProps.kt index 8e1b94ba9b..dbe7e820c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryDestinationProps.kt @@ -149,7 +149,8 @@ public interface CfnDeliveryDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnDeliveryDestinationProps, - ) : CdkObject(cdkObject), CfnDeliveryDestinationProps { + ) : CdkObject(cdkObject), + CfnDeliveryDestinationProps { /** * A structure that contains information about one delivery destination policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryProps.kt index 5cc7e587ef..575ce7396b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliveryProps.kt @@ -119,7 +119,8 @@ public interface CfnDeliveryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnDeliveryProps, - ) : CdkObject(cdkObject), CfnDeliveryProps { + ) : CdkObject(cdkObject), + CfnDeliveryProps { /** * The ARN of the delivery destination that is associated with this delivery. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySource.kt index 0d28efb445..f30578012c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySource.kt @@ -72,7 +72,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeliverySource( cdkObject: software.amazon.awscdk.services.logs.CfnDeliverySource, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySourceProps.kt index ce87c6db33..8327c78722 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDeliverySourceProps.kt @@ -142,7 +142,8 @@ public interface CfnDeliverySourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnDeliverySourceProps, - ) : CdkObject(cdkObject), CfnDeliverySourceProps { + ) : CdkObject(cdkObject), + CfnDeliverySourceProps { /** * The type of log that the source is sending. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestination.kt index 8fa6ffbcea..1621bdb6bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestination.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDestination( cdkObject: software.amazon.awscdk.services.logs.CfnDestination, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestinationProps.kt index 6eabcbae0a..d0e927ec4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnDestinationProps.kt @@ -129,7 +129,8 @@ public interface CfnDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnDestinationProps, - ) : CdkObject(cdkObject), CfnDestinationProps { + ) : CdkObject(cdkObject), + CfnDestinationProps { /** * The name of the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetector.kt index 16cc6941a1..53de5a7590 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetector.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogAnomalyDetector( cdkObject: software.amazon.awscdk.services.logs.CfnLogAnomalyDetector, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.logs.CfnLogAnomalyDetector(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetectorProps.kt index 0d458c7a7f..27195d265f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogAnomalyDetectorProps.kt @@ -268,7 +268,8 @@ public interface CfnLogAnomalyDetectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnLogAnomalyDetectorProps, - ) : CdkObject(cdkObject), CfnLogAnomalyDetectorProps { + ) : CdkObject(cdkObject), + CfnLogAnomalyDetectorProps { /** * The ID of the account to create the anomaly detector in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroup.kt index 96d6b3f897..2c3e9cb095 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroup.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogGroup( cdkObject: software.amazon.awscdk.services.logs.CfnLogGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.logs.CfnLogGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroupProps.kt index 2828ef39f1..a53bbceaf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogGroupProps.kt @@ -307,7 +307,8 @@ public interface CfnLogGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnLogGroupProps, - ) : CdkObject(cdkObject), CfnLogGroupProps { + ) : CdkObject(cdkObject), + CfnLogGroupProps { /** * Creates a data protection policy and assigns it to the log group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStream.kt index 519d357edc..d303404eb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStream.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLogStream( cdkObject: software.amazon.awscdk.services.logs.CfnLogStream, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStreamProps.kt index 3f2e417da3..40a4907c88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnLogStreamProps.kt @@ -84,7 +84,8 @@ public interface CfnLogStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnLogStreamProps, - ) : CdkObject(cdkObject), CfnLogStreamProps { + ) : CdkObject(cdkObject), + CfnLogStreamProps { /** * The name of the log group where the log stream is created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilter.kt index db248c5cd2..ff803c9f36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilter.kt @@ -56,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMetricFilter( cdkObject: software.amazon.awscdk.services.logs.CfnMetricFilter, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -406,7 +407,8 @@ public open class CfnMetricFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnMetricFilter.DimensionProperty, - ) : CdkObject(cdkObject), DimensionProperty { + ) : CdkObject(cdkObject), + DimensionProperty { /** * The name for the CloudWatch metric dimension that the metric filter creates. * @@ -769,7 +771,8 @@ public open class CfnMetricFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnMetricFilter.MetricTransformationProperty, - ) : CdkObject(cdkObject), MetricTransformationProperty { + ) : CdkObject(cdkObject), + MetricTransformationProperty { /** * (Optional) The value to emit when a filter pattern does not match a log event. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilterProps.kt index b095d12b38..cd5b52b02c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnMetricFilterProps.kt @@ -167,7 +167,8 @@ public interface CfnMetricFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnMetricFilterProps, - ) : CdkObject(cdkObject), CfnMetricFilterProps { + ) : CdkObject(cdkObject), + CfnMetricFilterProps { /** * The name of the metric filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinition.kt index de64cd7192..cf3c5ce6a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinition.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueryDefinition( cdkObject: software.amazon.awscdk.services.logs.CfnQueryDefinition, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinitionProps.kt index cd4ff60909..468e421c1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnQueryDefinitionProps.kt @@ -138,7 +138,8 @@ public interface CfnQueryDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnQueryDefinitionProps, - ) : CdkObject(cdkObject), CfnQueryDefinitionProps { + ) : CdkObject(cdkObject), + CfnQueryDefinitionProps { /** * Use this parameter if you want the query to query only certain log groups. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicy.kt index 730b4db035..72aa01ee08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicy.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.logs.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicyProps.kt index ac1fcc6f0f..e3c4b728d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnResourcePolicyProps.kt @@ -87,7 +87,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * The details of the policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilter.kt index 3d192c9e4d..246a39b05b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilter.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscriptionFilter( cdkObject: software.amazon.awscdk.services.logs.CfnSubscriptionFilter, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilterProps.kt index de9827cd85..e6ee7e23d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CfnSubscriptionFilterProps.kt @@ -190,7 +190,8 @@ public interface CfnSubscriptionFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CfnSubscriptionFilterProps, - ) : CdkObject(cdkObject), CfnSubscriptionFilterProps { + ) : CdkObject(cdkObject), + CfnSubscriptionFilterProps { /** * The Amazon Resource Name (ARN) of the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ColumnRestriction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ColumnRestriction.kt index 6b5cc9df16..2a0d72b381 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ColumnRestriction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ColumnRestriction.kt @@ -99,7 +99,8 @@ public interface ColumnRestriction { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.ColumnRestriction, - ) : CdkObject(cdkObject), ColumnRestriction { + ) : CdkObject(cdkObject), + ColumnRestriction { /** * Comparison operator to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestination.kt index 5b840fe7c1..16f0840f7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestination.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CrossAccountDestination( cdkObject: software.amazon.awscdk.services.logs.CrossAccountDestination, -) : Resource(cdkObject), ILogSubscriptionDestination { +) : Resource(cdkObject), + ILogSubscriptionDestination { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestinationProps.kt index 7c1b549a7a..fcf5b18333 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/CrossAccountDestinationProps.kt @@ -104,7 +104,8 @@ public interface CrossAccountDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.CrossAccountDestinationProps, - ) : CdkObject(cdkObject), CrossAccountDestinationProps { + ) : CdkObject(cdkObject), + CrossAccountDestinationProps { /** * The name of the log destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/DataProtectionPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/DataProtectionPolicyProps.kt index dd1d7cb7ef..3db7cc69c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/DataProtectionPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/DataProtectionPolicyProps.kt @@ -220,7 +220,8 @@ public interface DataProtectionPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.DataProtectionPolicyProps, - ) : CdkObject(cdkObject), DataProtectionPolicyProps { + ) : CdkObject(cdkObject), + DataProtectionPolicyProps { /** * Amazon Kinesis Data Firehose delivery stream to send audit findings to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/Distribution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/Distribution.kt new file mode 100644 index 0000000000..cef23f4996 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/Distribution.kt @@ -0,0 +1,22 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.logs + +public enum class Distribution( + private val cdkObject: software.amazon.awscdk.services.logs.Distribution, +) { + BY_LOG_STREAM(software.amazon.awscdk.services.logs.Distribution.BY_LOG_STREAM), + RANDOM(software.amazon.awscdk.services.logs.Distribution.RANDOM), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.logs.Distribution): Distribution = + when (cdkObject) { + software.amazon.awscdk.services.logs.Distribution.BY_LOG_STREAM -> Distribution.BY_LOG_STREAM + software.amazon.awscdk.services.logs.Distribution.RANDOM -> Distribution.RANDOM + } + + internal fun unwrap(wrapped: Distribution): software.amazon.awscdk.services.logs.Distribution = + wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/FilterPattern.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/FilterPattern.kt index d962bb981f..e53a6d4c60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/FilterPattern.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/FilterPattern.kt @@ -14,12 +14,15 @@ import kotlin.collections.List * Example: * * ``` - * // Search for all events where the component field is equal to - * // "HttpServer" and either error is true or the latency is higher - * // than 1000. - * JsonPattern pattern = FilterPattern.all(FilterPattern.stringValue("$.component", "=", - * "HttpServer"), FilterPattern.any(FilterPattern.booleanValue("$.error", true), - * FilterPattern.numberValue("$.latency", ">", 1000))); + * import io.cloudshiftdev.awscdk.services.logs.destinations.*; + * Function fn; + * LogGroup logGroup; + * SubscriptionFilter.Builder.create(this, "Subscription") + * .logGroup(logGroup) + * .destination(new LambdaDestination(fn)) + * .filterPattern(FilterPattern.allTerms("ERROR", "MainThread")) + * .filterName("ErrorInMainThread") + * .build(); * ``` */ public open class FilterPattern( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/IFilterPattern.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/IFilterPattern.kt index ffb1339f7a..a09f2f8fdb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/IFilterPattern.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/IFilterPattern.kt @@ -17,7 +17,8 @@ public interface IFilterPattern { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.IFilterPattern, - ) : CdkObject(cdkObject), IFilterPattern { + ) : CdkObject(cdkObject), + IFilterPattern { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogGroup.kt index bd4d9bbecc..fe36909963 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogGroup.kt @@ -145,7 +145,8 @@ public interface ILogGroup : IResourceWithPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.ILogGroup, - ) : CdkObject(cdkObject), ILogGroup { + ) : CdkObject(cdkObject), + ILogGroup { /** * Create a new Metric Filter on this Log Group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogStream.kt index 3717bf041c..1e9c3e0c91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogStream.kt @@ -22,7 +22,8 @@ public interface ILogStream : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.ILogStream, - ) : CdkObject(cdkObject), ILogStream { + ) : CdkObject(cdkObject), + ILogStream { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogSubscriptionDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogSubscriptionDestination.kt index 030f85c933..ad6983f877 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogSubscriptionDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ILogSubscriptionDestination.kt @@ -27,7 +27,8 @@ public interface ILogSubscriptionDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.ILogSubscriptionDestination, - ) : CdkObject(cdkObject), ILogSubscriptionDestination { + ) : CdkObject(cdkObject), + ILogSubscriptionDestination { /** * Return the properties required to send subscription events to this destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/JsonPattern.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/JsonPattern.kt index 3aa4ce2262..5cd49e177e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/JsonPattern.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/JsonPattern.kt @@ -22,7 +22,8 @@ import kotlin.String */ public abstract class JsonPattern( cdkObject: software.amazon.awscdk.services.logs.JsonPattern, -) : CdkObject(cdkObject), IFilterPattern { +) : CdkObject(cdkObject), + IFilterPattern { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroup.kt index 14e0f32012..c1b16ffbab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroup.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LogGroup( cdkObject: software.amazon.awscdk.services.logs.LogGroup, -) : Resource(cdkObject), ILogGroup { +) : Resource(cdkObject), + ILogGroup { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.logs.LogGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroupProps.kt index c1e405d30c..0e187d49a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogGroupProps.kt @@ -17,29 +17,29 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Vpc vpc; - * Key kmsKey = new Key(this, "KmsKey"); - * // Pass the KMS key in the `encryptionKey` field to associate the key to the log group - * LogGroup logGroup = LogGroup.Builder.create(this, "LogGroup") - * .encryptionKey(kmsKey) + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.alpha.*; + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.destinations.alpha.*; + * LogGroup logGroupDestination = LogGroup.Builder.create(this, "LogGroupLambdaAudit") + * .logGroupName("auditDestinationForCDK") * .build(); - * // Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket - * Bucket execBucket = Bucket.Builder.create(this, "EcsExecBucket") - * .encryptionKey(kmsKey) + * Bucket bucket = new Bucket(this, "audit-bucket"); + * S3Bucket s3Destination = new S3Bucket(bucket); + * DeliveryStream deliveryStream = DeliveryStream.Builder.create(this, "Delivery Stream") + * .destinations(List.of(s3Destination)) * .build(); - * Cluster cluster = Cluster.Builder.create(this, "Cluster") - * .vpc(vpc) - * .executeCommandConfiguration(ExecuteCommandConfiguration.builder() - * .kmsKey(kmsKey) - * .logConfiguration(ExecuteCommandLogConfiguration.builder() - * .cloudWatchLogGroup(logGroup) - * .cloudWatchEncryptionEnabled(true) - * .s3Bucket(execBucket) - * .s3EncryptionEnabled(true) - * .s3KeyPrefix("exec-command-output") - * .build()) - * .logging(ExecuteCommandLogging.OVERRIDE) - * .build()) + * DataProtectionPolicy dataProtectionPolicy = DataProtectionPolicy.Builder.create() + * .name("data protection policy") + * .description("policy description") + * .identifiers(List.of(DataIdentifier.DRIVERSLICENSE_US, // managed data identifier + * new DataIdentifier("EmailAddress"), // forward compatibility for new managed data identifiers + * new CustomDataIdentifier("EmployeeId", "EmployeeId-\\d{9}"))) // custom data identifier + * .logGroupAuditDestination(logGroupDestination) + * .s3BucketAuditDestination(bucket) + * .deliveryStreamNameAuditDestination(deliveryStream.getDeliveryStreamName()) + * .build(); + * LogGroup.Builder.create(this, "LogGroupLambda") + * .logGroupName("cdkIntegLogGroup") + * .dataProtectionPolicy(dataProtectionPolicy) * .build(); * ``` */ @@ -221,7 +221,8 @@ public interface LogGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.LogGroupProps, - ) : CdkObject(cdkObject), LogGroupProps { + ) : CdkObject(cdkObject), + LogGroupProps { /** * Data Protection Policy for this log group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionProps.kt index 77c889def4..656c21970d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionProps.kt @@ -182,7 +182,8 @@ public interface LogRetentionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.LogRetentionProps, - ) : CdkObject(cdkObject), LogRetentionProps { + ) : CdkObject(cdkObject), + LogRetentionProps { /** * The log group name. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionRetryOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionRetryOptions.kt index 0052aaa2f2..fe1a6dd5e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionRetryOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogRetentionRetryOptions.kt @@ -88,7 +88,8 @@ public interface LogRetentionRetryOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.LogRetentionRetryOptions, - ) : CdkObject(cdkObject), LogRetentionRetryOptions { + ) : CdkObject(cdkObject), + LogRetentionRetryOptions { /** * (deprecated) The base duration to use in the exponential backoff for operation retries. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStream.kt index cb08227a5c..97409809bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStream.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class LogStream( cdkObject: software.amazon.awscdk.services.logs.LogStream, -) : Resource(cdkObject), ILogStream { +) : Resource(cdkObject), + ILogStream { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStreamProps.kt index 716874a8e2..11e390c04e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogStreamProps.kt @@ -122,7 +122,8 @@ public interface LogStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.LogStreamProps, - ) : CdkObject(cdkObject), LogStreamProps { + ) : CdkObject(cdkObject), + LogStreamProps { /** * The log group to create a log stream for. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogSubscriptionDestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogSubscriptionDestinationConfig.kt index c86f2777ee..7849efa58e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogSubscriptionDestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/LogSubscriptionDestinationConfig.kt @@ -82,7 +82,8 @@ public interface LogSubscriptionDestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.LogSubscriptionDestinationConfig, - ) : CdkObject(cdkObject), LogSubscriptionDestinationConfig { + ) : CdkObject(cdkObject), + LogSubscriptionDestinationConfig { /** * The ARN of the subscription's destination. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterOptions.kt index 1e3f5b6a51..04fb641c35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterOptions.kt @@ -235,7 +235,8 @@ public interface MetricFilterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.MetricFilterOptions, - ) : CdkObject(cdkObject), MetricFilterOptions { + ) : CdkObject(cdkObject), + MetricFilterOptions { /** * The value to emit if the pattern does not match a particular event. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterProps.kt index a8089599c7..d5ef123dc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/MetricFilterProps.kt @@ -175,7 +175,8 @@ public interface MetricFilterProps : MetricFilterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.MetricFilterProps, - ) : CdkObject(cdkObject), MetricFilterProps { + ) : CdkObject(cdkObject), + MetricFilterProps { /** * The value to emit if the pattern does not match a particular event. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryDefinitionProps.kt index 5eebe5f3a8..378a75a312 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryDefinitionProps.kt @@ -126,7 +126,8 @@ public interface QueryDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.QueryDefinitionProps, - ) : CdkObject(cdkObject), QueryDefinitionProps { + ) : CdkObject(cdkObject), + QueryDefinitionProps { /** * Specify certain log groups for the query definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryStringProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryStringProps.kt index db55a8ffa0..dbc522d062 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryStringProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/QueryStringProps.kt @@ -317,7 +317,8 @@ public interface QueryStringProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.QueryStringProps, - ) : CdkObject(cdkObject), QueryStringProps { + ) : CdkObject(cdkObject), + QueryStringProps { /** * Specifies which fields to display in the query results. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ResourcePolicyProps.kt index 683979aa16..6908fa9dfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/ResourcePolicyProps.kt @@ -94,7 +94,8 @@ public interface ResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.ResourcePolicyProps, - ) : CdkObject(cdkObject), ResourcePolicyProps { + ) : CdkObject(cdkObject), + ResourcePolicyProps { /** * Initial statements to add to the resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SpaceDelimitedTextPattern.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SpaceDelimitedTextPattern.kt index 7aba94b845..ab28ed1b53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SpaceDelimitedTextPattern.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SpaceDelimitedTextPattern.kt @@ -22,7 +22,8 @@ import kotlin.collections.List */ public open class SpaceDelimitedTextPattern( cdkObject: software.amazon.awscdk.services.logs.SpaceDelimitedTextPattern, -) : CdkObject(cdkObject), IFilterPattern { +) : CdkObject(cdkObject), + IFilterPattern { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/StreamOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/StreamOptions.kt index c41b7b8572..ce95b8acfe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/StreamOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/StreamOptions.kt @@ -61,7 +61,8 @@ public interface StreamOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.StreamOptions, - ) : CdkObject(cdkObject), StreamOptions { + ) : CdkObject(cdkObject), + StreamOptions { /** * The name of the log stream to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilter.kt index 48ed46b2a4..23c17717c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilter.kt @@ -59,6 +59,17 @@ public open class SubscriptionFilter( */ public fun destination(destination: ILogSubscriptionDestination) + /** + * The method used to distribute log data to the destination. + * + * This property can only be used with KinesisDestination. + * + * Default: Distribution.BY_LOG_STREAM + * + * @param distribution The method used to distribute log data to the destination. + */ + public fun distribution(distribution: Distribution) + /** * The name of the subscription filter. * @@ -101,6 +112,19 @@ public open class SubscriptionFilter( cdkBuilder.destination(destination.let(ILogSubscriptionDestination.Companion::unwrap)) } + /** + * The method used to distribute log data to the destination. + * + * This property can only be used with KinesisDestination. + * + * Default: Distribution.BY_LOG_STREAM + * + * @param distribution The method used to distribute log data to the destination. + */ + override fun distribution(distribution: Distribution) { + cdkBuilder.distribution(distribution.let(Distribution.Companion::unwrap)) + } + /** * The name of the subscription filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterOptions.kt index 3d6eae0c2c..f3a6a787fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterOptions.kt @@ -23,6 +23,7 @@ import kotlin.Unit * .destination(logSubscriptionDestination) * .filterPattern(filterPattern) * // the properties below are optional + * .distribution(Distribution.BY_LOG_STREAM) * .filterName("filterName") * .build(); * ``` @@ -35,6 +36,15 @@ public interface SubscriptionFilterOptions { */ public fun destination(): ILogSubscriptionDestination + /** + * The method used to distribute log data to the destination. + * + * This property can only be used with KinesisDestination. + * + * Default: Distribution.BY_LOG_STREAM + */ + public fun distribution(): Distribution? = unwrap(this).getDistribution()?.let(Distribution::wrap) + /** * The name of the subscription filter. * @@ -58,6 +68,12 @@ public interface SubscriptionFilterOptions { */ public fun destination(destination: ILogSubscriptionDestination) + /** + * @param distribution The method used to distribute log data to the destination. + * This property can only be used with KinesisDestination. + */ + public fun distribution(distribution: Distribution) + /** * @param filterName The name of the subscription filter. */ @@ -81,6 +97,14 @@ public interface SubscriptionFilterOptions { cdkBuilder.destination(destination.let(ILogSubscriptionDestination.Companion::unwrap)) } + /** + * @param distribution The method used to distribute log data to the destination. + * This property can only be used with KinesisDestination. + */ + override fun distribution(distribution: Distribution) { + cdkBuilder.distribution(distribution.let(Distribution.Companion::unwrap)) + } + /** * @param filterName The name of the subscription filter. */ @@ -101,7 +125,8 @@ public interface SubscriptionFilterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.SubscriptionFilterOptions, - ) : CdkObject(cdkObject), SubscriptionFilterOptions { + ) : CdkObject(cdkObject), + SubscriptionFilterOptions { /** * The destination to send the filtered events to. * @@ -110,6 +135,16 @@ public interface SubscriptionFilterOptions { override fun destination(): ILogSubscriptionDestination = unwrap(this).getDestination().let(ILogSubscriptionDestination::wrap) + /** + * The method used to distribute log data to the destination. + * + * This property can only be used with KinesisDestination. + * + * Default: Distribution.BY_LOG_STREAM + */ + override fun distribution(): Distribution? = + unwrap(this).getDistribution()?.let(Distribution::wrap) + /** * The name of the subscription filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterProps.kt index b043300c71..d70d905350 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/SubscriptionFilterProps.kt @@ -42,6 +42,12 @@ public interface SubscriptionFilterProps : SubscriptionFilterOptions { */ public fun destination(destination: ILogSubscriptionDestination) + /** + * @param distribution The method used to distribute log data to the destination. + * This property can only be used with KinesisDestination. + */ + public fun distribution(distribution: Distribution) + /** * @param filterName The name of the subscription filter. */ @@ -70,6 +76,14 @@ public interface SubscriptionFilterProps : SubscriptionFilterOptions { cdkBuilder.destination(destination.let(ILogSubscriptionDestination.Companion::unwrap)) } + /** + * @param distribution The method used to distribute log data to the destination. + * This property can only be used with KinesisDestination. + */ + override fun distribution(distribution: Distribution) { + cdkBuilder.distribution(distribution.let(Distribution.Companion::unwrap)) + } + /** * @param filterName The name of the subscription filter. */ @@ -97,7 +111,8 @@ public interface SubscriptionFilterProps : SubscriptionFilterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.SubscriptionFilterProps, - ) : CdkObject(cdkObject), SubscriptionFilterProps { + ) : CdkObject(cdkObject), + SubscriptionFilterProps { /** * The destination to send the filtered events to. * @@ -106,6 +121,16 @@ public interface SubscriptionFilterProps : SubscriptionFilterOptions { override fun destination(): ILogSubscriptionDestination = unwrap(this).getDestination().let(ILogSubscriptionDestination::wrap) + /** + * The method used to distribute log data to the destination. + * + * This property can only be used with KinesisDestination. + * + * Default: Distribution.BY_LOG_STREAM + */ + override fun distribution(): Distribution? = + unwrap(this).getDistribution()?.let(Distribution::wrap) + /** * The name of the subscription filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestination.kt index af7e2bd945..9f2f026b46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestination.kt @@ -19,21 +19,23 @@ import software.amazon.awscdk.services.kinesis.IStream as AmazonAwscdkServicesKi * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.iam.*; - * import io.cloudshiftdev.awscdk.services.kinesis.*; * import io.cloudshiftdev.awscdk.services.logs.destinations.*; - * Role role; + * import io.cloudshiftdev.awscdk.services.kinesis.*; * Stream stream; - * KinesisDestination kinesisDestination = KinesisDestination.Builder.create(stream) - * .role(role) + * LogGroup logGroup; + * SubscriptionFilter.Builder.create(this, "Subscription") + * .logGroup(logGroup) + * .destination(new KinesisDestination(stream)) + * .filterPattern(FilterPattern.allTerms("ERROR", "MainThread")) + * .filterName("ErrorInMainThread") + * .distribution(Distribution.RANDOM) * .build(); * ``` */ public open class KinesisDestination( cdkObject: software.amazon.awscdk.services.logs.destinations.KinesisDestination, -) : CdkObject(cdkObject), ILogSubscriptionDestination { +) : CdkObject(cdkObject), + ILogSubscriptionDestination { public constructor(stream: CloudshiftdevAwscdkServicesKinesisIStream) : this(software.amazon.awscdk.services.logs.destinations.KinesisDestination(stream.let(CloudshiftdevAwscdkServicesKinesisIStream.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestinationProps.kt index 528c62ac2f..bd0efc6133 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/KinesisDestinationProps.kt @@ -61,7 +61,8 @@ public interface KinesisDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.destinations.KinesisDestinationProps, - ) : CdkObject(cdkObject), KinesisDestinationProps { + ) : CdkObject(cdkObject), + KinesisDestinationProps { /** * The role to assume to write log events to the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestination.kt index cc90bbb878..1905d122a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestination.kt @@ -32,7 +32,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class LambdaDestination( cdkObject: software.amazon.awscdk.services.logs.destinations.LambdaDestination, -) : CdkObject(cdkObject), ILogSubscriptionDestination { +) : CdkObject(cdkObject), + ILogSubscriptionDestination { public constructor(fn: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.services.logs.destinations.LambdaDestination(fn.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestinationOptions.kt index 59a2a537b1..0244f0f095 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/logs/destinations/LambdaDestinationOptions.kt @@ -59,7 +59,8 @@ public interface LambdaDestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.logs.destinations.LambdaDestinationOptions, - ) : CdkObject(cdkObject), LambdaDestinationOptions { + ) : CdkObject(cdkObject), + LambdaDestinationOptions { /** * Whether or not to add Lambda Permissions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceScheduler.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceScheduler.kt index d4ded1ade2..53621926d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceScheduler.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceScheduler.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInferenceScheduler( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -690,7 +692,8 @@ public open class CfnInferenceScheduler( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler.DataInputConfigurationProperty, - ) : CdkObject(cdkObject), DataInputConfigurationProperty { + ) : CdkObject(cdkObject), + DataInputConfigurationProperty { /** * Specifies configuration information for the input data for the inference, including * timestamp format and delimiter. @@ -852,7 +855,8 @@ public open class CfnInferenceScheduler( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler.DataOutputConfigurationProperty, - ) : CdkObject(cdkObject), DataOutputConfigurationProperty { + ) : CdkObject(cdkObject), + DataOutputConfigurationProperty { /** * The ID number for the AWS KMS key used to encrypt the inference output. * @@ -969,7 +973,8 @@ public open class CfnInferenceScheduler( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler.InputNameConfigurationProperty, - ) : CdkObject(cdkObject), InputNameConfigurationProperty { + ) : CdkObject(cdkObject), + InputNameConfigurationProperty { /** * Indicates the delimiter character used between items in the data. * @@ -1078,7 +1083,8 @@ public open class CfnInferenceScheduler( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler.S3InputConfigurationProperty, - ) : CdkObject(cdkObject), S3InputConfigurationProperty { + ) : CdkObject(cdkObject), + S3InputConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-s3inputconfiguration.html#cfn-lookoutequipment-inferencescheduler-s3inputconfiguration-bucket) */ @@ -1182,7 +1188,8 @@ public open class CfnInferenceScheduler( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler.S3OutputConfigurationProperty, - ) : CdkObject(cdkObject), S3OutputConfigurationProperty { + ) : CdkObject(cdkObject), + S3OutputConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-s3outputconfiguration.html#cfn-lookoutequipment-inferencescheduler-s3outputconfiguration-bucket) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceSchedulerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceSchedulerProps.kt index 51418355b8..ff3db45b26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceSchedulerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutequipment/CfnInferenceSchedulerProps.kt @@ -304,7 +304,8 @@ public interface CfnInferenceSchedulerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutequipment.CfnInferenceSchedulerProps, - ) : CdkObject(cdkObject), CfnInferenceSchedulerProps { + ) : CdkObject(cdkObject), + CfnInferenceSchedulerProps { /** * A period of time (in minutes) by which inference on the data is delayed after the data * starts. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlert.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlert.kt index babc221bdd..e573a546e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlert.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlert.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlert( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAlert, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -459,7 +460,8 @@ public open class CfnAlert( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAlert.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * A configuration for an AWS Lambda channel. * @@ -568,7 +570,8 @@ public open class CfnAlert( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAlert.LambdaConfigurationProperty, - ) : CdkObject(cdkObject), LambdaConfigurationProperty { + ) : CdkObject(cdkObject), + LambdaConfigurationProperty { /** * The ARN of the Lambda function. * @@ -677,7 +680,8 @@ public open class CfnAlert( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAlert.SNSConfigurationProperty, - ) : CdkObject(cdkObject), SNSConfigurationProperty { + ) : CdkObject(cdkObject), + SNSConfigurationProperty { /** * The ARN of the IAM role that has access to the target SNS topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlertProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlertProps.kt index b13a6fd176..5a4050fef0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlertProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAlertProps.kt @@ -183,7 +183,8 @@ public interface CfnAlertProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAlertProps, - ) : CdkObject(cdkObject), CfnAlertProps { + ) : CdkObject(cdkObject), + CfnAlertProps { /** * Action that will be triggered when there is an alert. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetector.kt index 77e3cfc2c2..c760e21338 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetector.kt @@ -118,7 +118,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnomalyDetector( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -508,7 +509,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.AnomalyDetectorConfigProperty, - ) : CdkObject(cdkObject), AnomalyDetectorConfigProperty { + ) : CdkObject(cdkObject), + AnomalyDetectorConfigProperty { /** * The frequency at which the detector analyzes its source data. * @@ -612,7 +614,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.AppFlowConfigProperty, - ) : CdkObject(cdkObject), AppFlowConfigProperty { + ) : CdkObject(cdkObject), + AppFlowConfigProperty { /** * name of the flow. * @@ -704,7 +707,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.CloudwatchConfigProperty, - ) : CdkObject(cdkObject), CloudwatchConfigProperty { + ) : CdkObject(cdkObject), + CloudwatchConfigProperty { /** * An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon * CloudWatch. @@ -909,7 +913,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.CsvFormatDescriptorProperty, - ) : CdkObject(cdkObject), CsvFormatDescriptorProperty { + ) : CdkObject(cdkObject), + CsvFormatDescriptorProperty { /** * The character set in which the source CSV file is written. * @@ -1127,7 +1132,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.FileFormatDescriptorProperty, - ) : CdkObject(cdkObject), FileFormatDescriptorProperty { + ) : CdkObject(cdkObject), + FileFormatDescriptorProperty { /** * Contains information about how a source CSV data file should be analyzed. * @@ -1237,7 +1243,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.JsonFormatDescriptorProperty, - ) : CdkObject(cdkObject), JsonFormatDescriptorProperty { + ) : CdkObject(cdkObject), + JsonFormatDescriptorProperty { /** * The character set in which the source JSON file is written. * @@ -1366,7 +1373,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricProperty, - ) : CdkObject(cdkObject), MetricProperty { + ) : CdkObject(cdkObject), + MetricProperty { /** * The function with which the metric is calculated. * @@ -1786,7 +1794,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSetProperty, - ) : CdkObject(cdkObject), MetricSetProperty { + ) : CdkObject(cdkObject), + MetricSetProperty { /** * A list of the fields you want to treat as dimensions. * @@ -2204,7 +2213,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty, - ) : CdkObject(cdkObject), MetricSourceProperty { + ) : CdkObject(cdkObject), + MetricSourceProperty { /** * Details about an AppFlow datasource. * @@ -2490,7 +2500,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.RDSSourceConfigProperty, - ) : CdkObject(cdkObject), RDSSourceConfigProperty { + ) : CdkObject(cdkObject), + RDSSourceConfigProperty { /** * The host name of the database. * @@ -2801,7 +2812,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.RedshiftSourceConfigProperty, - ) : CdkObject(cdkObject), RedshiftSourceConfigProperty { + ) : CdkObject(cdkObject), + RedshiftSourceConfigProperty { /** * A string identifying the Redshift cluster. * @@ -3061,7 +3073,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.S3SourceConfigProperty, - ) : CdkObject(cdkObject), S3SourceConfigProperty { + ) : CdkObject(cdkObject), + S3SourceConfigProperty { /** * Contains information about a source file's formatting. * @@ -3186,7 +3199,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.TimestampColumnProperty, - ) : CdkObject(cdkObject), TimestampColumnProperty { + ) : CdkObject(cdkObject), + TimestampColumnProperty { /** * The format of the timestamp column. * @@ -3321,7 +3335,8 @@ public open class CfnAnomalyDetector( private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * An array of strings containing the list of security groups. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetectorProps.kt index d9dc2755ad..8e9edb1bc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutmetrics/CfnAnomalyDetectorProps.kt @@ -282,7 +282,8 @@ public interface CfnAnomalyDetectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetectorProps, - ) : CdkObject(cdkObject), CfnAnomalyDetectorProps { + ) : CdkObject(cdkObject), + CfnAnomalyDetectorProps { /** * Contains information about the configuration of the anomaly detector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProject.kt index 81fd451b5a..51ae723fb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProject.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.lookoutvision.CfnProject, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProjectProps.kt index b92f102333..23a8bb371f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/lookoutvision/CfnProjectProps.kt @@ -60,7 +60,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.lookoutvision.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The name of the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplication.kt index 70a8ff0f29..b3510084f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplication.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.m2.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -521,7 +523,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnApplication.DefinitionProperty, - ) : CdkObject(cdkObject), DefinitionProperty { + ) : CdkObject(cdkObject), + DefinitionProperty { /** * The content of the application definition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplicationProps.kt index c31cd8ae50..6558189ca7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnApplicationProps.kt @@ -247,7 +247,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The application definition for a particular application. You can specify either inline JSON * or an Amazon S3 bucket location. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironment.kt index 26b0a6dc1c..06de81b6a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironment.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -810,7 +812,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironment.EfsStorageConfigurationProperty, - ) : CdkObject(cdkObject), EfsStorageConfigurationProperty { + ) : CdkObject(cdkObject), + EfsStorageConfigurationProperty { /** * The file system identifier. * @@ -920,7 +923,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironment.FsxStorageConfigurationProperty, - ) : CdkObject(cdkObject), FsxStorageConfigurationProperty { + ) : CdkObject(cdkObject), + FsxStorageConfigurationProperty { /** * The file system identifier. * @@ -1013,7 +1017,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironment.HighAvailabilityConfigProperty, - ) : CdkObject(cdkObject), HighAvailabilityConfigProperty { + ) : CdkObject(cdkObject), + HighAvailabilityConfigProperty { /** * The number of instances in a high availability configuration. * @@ -1177,7 +1182,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironment.StorageConfigurationProperty, - ) : CdkObject(cdkObject), StorageConfigurationProperty { + ) : CdkObject(cdkObject), + StorageConfigurationProperty { /** * Defines the storage configuration for an Amazon EFS file system. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironmentProps.kt index 3a9713ea18..5fc6297fb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/m2/CfnEnvironmentProps.kt @@ -438,7 +438,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.m2.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * The description of the runtime environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowList.kt index 23a5c79752..6386a1d568 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowList.kt @@ -89,7 +89,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAllowList( cdkObject: software.amazon.awscdk.services.macie.CfnAllowList, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -457,7 +459,7 @@ public open class CfnAllowList( * The criteria can be: * * * The location and name of an Amazon Simple Storage Service ( Amazon S3 ) object that lists - * specific, predefined text to ignore ( `S3WordsList` ), or + * specific predefined text to ignore ( `S3WordsList` ), or * * A regular expression ( `Regex` ) that defines a text pattern to ignore. * * The criteria must specify either an S3 object or a regular expression. It can't specify both. @@ -572,7 +574,8 @@ public open class CfnAllowList( private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnAllowList.CriteriaProperty, - ) : CdkObject(cdkObject), CriteriaProperty { + ) : CdkObject(cdkObject), + CriteriaProperty { /** * The regular expression ( *regex* ) that defines the text pattern to ignore. * @@ -711,7 +714,8 @@ public open class CfnAllowList( private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnAllowList.S3WordsListProperty, - ) : CdkObject(cdkObject), S3WordsListProperty { + ) : CdkObject(cdkObject), + S3WordsListProperty { /** * The full name of the S3 bucket that contains the object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowListProps.kt index 3215ad65a6..34d14c2468 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnAllowListProps.kt @@ -217,7 +217,8 @@ public interface CfnAllowListProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnAllowListProps, - ) : CdkObject(cdkObject), CfnAllowListProps { + ) : CdkObject(cdkObject), + CfnAllowListProps { /** * The criteria that specify the text or text pattern to ignore. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifier.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifier.kt index 9f16f60c6a..7a588d8bde 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifier.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifier.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomDataIdentifier( cdkObject: software.amazon.awscdk.services.macie.CfnCustomDataIdentifier, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifierProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifierProps.kt index 1c319bd0ea..8e916e6f6b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifierProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnCustomDataIdentifierProps.kt @@ -326,7 +326,8 @@ public interface CfnCustomDataIdentifierProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnCustomDataIdentifierProps, - ) : CdkObject(cdkObject), CfnCustomDataIdentifierProps { + ) : CdkObject(cdkObject), + CfnCustomDataIdentifierProps { /** * A custom description of the custom data identifier. The description can contain 1-512 * characters. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilter.kt index 223d2e3880..bb02725493 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilter.kt @@ -30,7 +30,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * findings. The criteria can help you identify and focus on findings that have specific * characteristics, such as severity, type, or the name of an affected AWS resource. You can also * configure a findings filter to suppress (automatically archive) findings that match the filter's - * criteria. For more information, see [Filtering + * criteria. For more information, see [Filtering Macie * findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the * *Amazon Macie User Guide* . * @@ -75,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFindingsFilter( cdkObject: software.amazon.awscdk.services.macie.CfnFindingsFilter, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -486,7 +488,7 @@ public open class CfnFindingsFilter( * A *findings filter* , also referred to as a *filter rule* , is a set of custom criteria that * specifies which findings to include or exclude from the results of a query for findings. You can * also configure a findings filter to suppress (automatically archive) findings that match the - * filter's criteria. For more information, see [Filtering + * filter's criteria. For more information, see [Filtering Macie * findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the * *Amazon Macie User Guide* . * @@ -683,7 +685,8 @@ public open class CfnFindingsFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnFindingsFilter.CriterionAdditionalPropertiesProperty, - ) : CdkObject(cdkObject), CriterionAdditionalPropertiesProperty { + ) : CdkObject(cdkObject), + CriterionAdditionalPropertiesProperty { /** * The value for the specified property matches (equals) the specified value. * @@ -756,7 +759,7 @@ public open class CfnFindingsFilter( * A *findings filter* , also referred to as a *filter rule* , is a set of custom criteria that * specifies which findings to include or exclude from the results of a query for findings. You can * also configure a findings filter to suppress (automatically archive) findings that match the - * filter's criteria. For more information, see [Filtering + * filter's criteria. For more information, see [Filtering Macie * findings](https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html) in the * *Amazon Macie User Guide* . * @@ -836,7 +839,8 @@ public open class CfnFindingsFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnFindingsFilter.FindingCriteriaProperty, - ) : CdkObject(cdkObject), FindingCriteriaProperty { + ) : CdkObject(cdkObject), + FindingCriteriaProperty { /** * Specifies a condition that defines the property, operator, and one or more values to use to * filter the results. @@ -934,7 +938,8 @@ public open class CfnFindingsFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnFindingsFilter.FindingsFilterListItemProperty, - ) : CdkObject(cdkObject), FindingsFilterListItemProperty { + ) : CdkObject(cdkObject), + FindingsFilterListItemProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingsfilterlistitem.html#cfn-macie-findingsfilter-findingsfilterlistitem-id) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilterProps.kt index 38e27a1c37..4f9504ffaa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnFindingsFilterProps.kt @@ -271,7 +271,8 @@ public interface CfnFindingsFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnFindingsFilterProps, - ) : CdkObject(cdkObject), CfnFindingsFilterProps { + ) : CdkObject(cdkObject), + CfnFindingsFilterProps { /** * The action to perform on findings that match the filter criteria ( `FindingCriteria` ). Valid * values are:. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSession.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSession.kt index f6371a6600..431fb69e71 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSession.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSession.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSession( cdkObject: software.amazon.awscdk.services.macie.CfnSession, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.macie.CfnSession(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSessionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSessionProps.kt index 2f59dc7fda..5392e2784f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSessionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/macie/CfnSessionProps.kt @@ -111,7 +111,8 @@ public interface CfnSessionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.macie.CfnSessionProps, - ) : CdkObject(cdkObject), CfnSessionProps { + ) : CdkObject(cdkObject), + CfnSessionProps { /** * Specifies how often Amazon Macie publishes updates to policy findings for the account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessor.kt index 5efcbd9b34..ef602ecd48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessor.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessor( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnAccessor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessorProps.kt index 6477760644..4ac1fd4ff8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnAccessorProps.kt @@ -183,7 +183,8 @@ public interface CfnAccessorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnAccessorProps, - ) : CdkObject(cdkObject), CfnAccessorProps { + ) : CdkObject(cdkObject), + CfnAccessorProps { /** * The type of the accessor. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMember.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMember.kt index 980ccf72f6..b28c10e48f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMember.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMember.kt @@ -69,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMember( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -521,7 +522,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.ApprovalThresholdPolicyProperty, - ) : CdkObject(cdkObject), ApprovalThresholdPolicyProperty { + ) : CdkObject(cdkObject), + ApprovalThresholdPolicyProperty { /** * The duration from the time that a proposal is created until it expires. * @@ -713,7 +715,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.MemberConfigurationProperty, - ) : CdkObject(cdkObject), MemberConfigurationProperty { + ) : CdkObject(cdkObject), + MemberConfigurationProperty { /** * An optional description of the member. * @@ -845,7 +848,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.MemberFabricConfigurationProperty, - ) : CdkObject(cdkObject), MemberFabricConfigurationProperty { + ) : CdkObject(cdkObject), + MemberFabricConfigurationProperty { /** * The password for the member's initial administrative user. * @@ -977,7 +981,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.MemberFrameworkConfigurationProperty, - ) : CdkObject(cdkObject), MemberFrameworkConfigurationProperty { + ) : CdkObject(cdkObject), + MemberFrameworkConfigurationProperty { /** * Configuration properties for Hyperledger Fabric. * @@ -1245,7 +1250,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * Attributes of the blockchain framework for the network. * @@ -1372,7 +1378,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.NetworkFabricConfigurationProperty, - ) : CdkObject(cdkObject), NetworkFabricConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkFabricConfigurationProperty { /** * The edition of Amazon Managed Blockchain that the network uses. * @@ -1501,7 +1508,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.NetworkFrameworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkFrameworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkFrameworkConfigurationProperty { /** * Configuration properties for Hyperledger Fabric for a member in a Managed Blockchain * network that is using the Hyperledger Fabric framework. @@ -1641,7 +1649,8 @@ public open class CfnMember( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMember.VotingPolicyProperty, - ) : CdkObject(cdkObject), VotingPolicyProperty { + ) : CdkObject(cdkObject), + VotingPolicyProperty { /** * Defines the rules for the network for voting on proposals, such as the percentage of `YES` * votes required for the proposal to be approved and the duration of the proposal. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMemberProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMemberProps.kt index b7680f88d4..3c4bb8c472 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMemberProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnMemberProps.kt @@ -220,7 +220,8 @@ public interface CfnMemberProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnMemberProps, - ) : CdkObject(cdkObject), CfnMemberProps { + ) : CdkObject(cdkObject), + CfnMemberProps { /** * The unique identifier of the invitation to join the network sent to the account that creates * the member. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNode.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNode.kt index 7baa44c9f8..927c757b64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNode.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNode.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNode( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnNode, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -362,7 +363,8 @@ public open class CfnNode( private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnNode.NodeConfigurationProperty, - ) : CdkObject(cdkObject), NodeConfigurationProperty { + ) : CdkObject(cdkObject), + NodeConfigurationProperty { /** * The Availability Zone in which the node exists. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNodeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNodeProps.kt index cb983ea080..d76bc6862a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNodeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/managedblockchain/CfnNodeProps.kt @@ -150,7 +150,8 @@ public interface CfnNodeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.managedblockchain.CfnNodeProps, - ) : CdkObject(cdkObject), CfnNodeProps { + ) : CdkObject(cdkObject), + CfnNodeProps { /** * The unique identifier of the member to which the node belongs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridge.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridge.kt index d7c127de14..37fcae6b36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridge.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridge.kt @@ -84,7 +84,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBridge( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -804,7 +805,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.BridgeFlowSourceProperty, - ) : CdkObject(cdkObject), BridgeFlowSourceProperty { + ) : CdkObject(cdkObject), + BridgeFlowSourceProperty { /** * The ARN of the cloud flow used as a source of this bridge. * @@ -1002,7 +1004,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.BridgeNetworkOutputProperty, - ) : CdkObject(cdkObject), BridgeNetworkOutputProperty { + ) : CdkObject(cdkObject), + BridgeNetworkOutputProperty { /** * The network output IP Address. * @@ -1205,7 +1208,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.BridgeNetworkSourceProperty, - ) : CdkObject(cdkObject), BridgeNetworkSourceProperty { + ) : CdkObject(cdkObject), + BridgeNetworkSourceProperty { /** * The network source multicast IP. * @@ -1358,7 +1362,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.BridgeOutputProperty, - ) : CdkObject(cdkObject), BridgeOutputProperty { + ) : CdkObject(cdkObject), + BridgeOutputProperty { /** * The output of the bridge. * @@ -1544,7 +1549,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.BridgeSourceProperty, - ) : CdkObject(cdkObject), BridgeSourceProperty { + ) : CdkObject(cdkObject), + BridgeSourceProperty { /** * The source of the bridge. * @@ -1640,7 +1646,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.EgressGatewayBridgeProperty, - ) : CdkObject(cdkObject), EgressGatewayBridgeProperty { + ) : CdkObject(cdkObject), + EgressGatewayBridgeProperty { /** * The maximum expected bitrate (in bps) of the egress bridge. * @@ -1820,7 +1827,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.FailoverConfigProperty, - ) : CdkObject(cdkObject), FailoverConfigProperty { + ) : CdkObject(cdkObject), + FailoverConfigProperty { /** * The type of failover you choose for this flow. * @@ -1949,7 +1957,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.IngressGatewayBridgeProperty, - ) : CdkObject(cdkObject), IngressGatewayBridgeProperty { + ) : CdkObject(cdkObject), + IngressGatewayBridgeProperty { /** * The maximum expected bitrate (in bps) of the ingress bridge. * @@ -2040,7 +2049,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.SourcePriorityProperty, - ) : CdkObject(cdkObject), SourcePriorityProperty { + ) : CdkObject(cdkObject), + SourcePriorityProperty { /** * The name of the source you choose as the primary source for this flow. * @@ -2123,7 +2133,8 @@ public open class CfnBridge( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridge.VpcInterfaceAttachmentProperty, - ) : CdkObject(cdkObject), VpcInterfaceAttachmentProperty { + ) : CdkObject(cdkObject), + VpcInterfaceAttachmentProperty { /** * The name of the VPC interface that you want to send your output to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutput.kt index 35299a503e..341aab6872 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutput.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBridgeOutput( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeOutput, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -392,7 +393,8 @@ public open class CfnBridgeOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeOutput.BridgeNetworkOutputProperty, - ) : CdkObject(cdkObject), BridgeNetworkOutputProperty { + ) : CdkObject(cdkObject), + BridgeNetworkOutputProperty { /** * The network output IP Address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutputProps.kt index 1990e5c15f..340e381a8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeOutputProps.kt @@ -143,7 +143,8 @@ public interface CfnBridgeOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeOutputProps, - ) : CdkObject(cdkObject), CfnBridgeOutputProps { + ) : CdkObject(cdkObject), + CfnBridgeOutputProps { /** * The ARN of the bridge that you want to describe. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeProps.kt index fc45a299b1..bedf5f4e31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeProps.kt @@ -388,7 +388,8 @@ public interface CfnBridgeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeProps, - ) : CdkObject(cdkObject), CfnBridgeProps { + ) : CdkObject(cdkObject), + CfnBridgeProps { /** * Create a bridge with the egress bridge type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSource.kt index 7911e7a08a..31d5da2343 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSource.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBridgeSource( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -464,7 +465,8 @@ public open class CfnBridgeSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeSource.BridgeFlowSourceProperty, - ) : CdkObject(cdkObject), BridgeFlowSourceProperty { + ) : CdkObject(cdkObject), + BridgeFlowSourceProperty { /** * The ARN of the cloud flow used as a source of this bridge. * @@ -615,7 +617,8 @@ public open class CfnBridgeSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeSource.BridgeNetworkSourceProperty, - ) : CdkObject(cdkObject), BridgeNetworkSourceProperty { + ) : CdkObject(cdkObject), + BridgeNetworkSourceProperty { /** * The network source multicast IP. * @@ -719,7 +722,8 @@ public open class CfnBridgeSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeSource.VpcInterfaceAttachmentProperty, - ) : CdkObject(cdkObject), VpcInterfaceAttachmentProperty { + ) : CdkObject(cdkObject), + VpcInterfaceAttachmentProperty { /** * The name of the VPC interface that you want to send your output to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSourceProps.kt index b8bc864e41..d09bd19020 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnBridgeSourceProps.kt @@ -197,7 +197,8 @@ public interface CfnBridgeSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnBridgeSourceProps, - ) : CdkObject(cdkObject), CfnBridgeSourceProps { + ) : CdkObject(cdkObject), + CfnBridgeSourceProps { /** * The ARN of the bridge that you want to describe. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlow.kt index e4d3fa0d09..07a67e99ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlow.kt @@ -13,6 +13,7 @@ import kotlin.Any import kotlin.Number import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -61,6 +62,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .ingestPort(123) * .maxBitrate(123) * .maxLatency(123) + * .maxSyncBuffer(123) + * .mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .inputConfigurations(List.of(InputConfigurationProperty.builder() + * .inputPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .build())) * .minLatency(123) * .name("name") * .protocol("protocol") @@ -76,6 +89,32 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * // the properties below are optional * .availabilityZone("availabilityZone") + * .maintenance(MaintenanceProperty.builder() + * .maintenanceDay("maintenanceDay") + * .maintenanceStartHour("maintenanceStartHour") + * .build()) + * .mediaStreams(List.of(MediaStreamProperty.builder() + * .mediaStreamId(123) + * .mediaStreamName("mediaStreamName") + * .mediaStreamType("mediaStreamType") + * // the properties below are optional + * .attributes(MediaStreamAttributesProperty.builder() + * .fmtp(FmtpProperty.builder() + * .channelOrder("channelOrder") + * .colorimetry("colorimetry") + * .exactFramerate("exactFramerate") + * .par("par") + * .range("range") + * .scanMode("scanMode") + * .tcs("tcs") + * .build()) + * .lang("lang") + * .build()) + * .clockRate(123) + * .description("description") + * .fmt(123) + * .videoFormat("videoFormat") + * .build())) * .sourceFailoverConfig(FailoverConfigProperty.builder() * .failoverMode("failoverMode") * .recoveryWindow(123) @@ -84,6 +123,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .state("state") * .build()) + * .sourceMonitoringConfig(SourceMonitoringConfigProperty.builder() + * .thumbnailState("thumbnailState") + * .build()) + * .vpcInterfaces(List.of(VpcInterfaceProperty.builder() + * .name("name") + * .roleArn("roleArn") + * .securityGroupIds(List.of("securityGroupIds")) + * .subnetId("subnetId") + * // the properties below are optional + * .networkInterfaceIds(List.of("networkInterfaceIds")) + * .networkInterfaceType("networkInterfaceType") + * .build())) * .build(); * ``` * @@ -91,7 +142,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlow( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -108,6 +160,11 @@ public open class CfnFlow( ) : this(scope, id, CfnFlowProps(props) ) + /** + * The outgoing IP address that MediaConnect uses to send video from the flow. + */ + public open fun attrEgressIp(): String = unwrap(this).getAttrEgressIp() + /** * The Amazon Resource Name (ARN) of the flow. */ @@ -159,6 +216,57 @@ public open class CfnFlow( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The maintenance settings you want to use for the flow. + */ + public open fun maintenance(): Any? = unwrap(this).getMaintenance() + + /** + * The maintenance settings you want to use for the flow. + */ + public open fun maintenance(`value`: IResolvable) { + unwrap(this).setMaintenance(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The maintenance settings you want to use for the flow. + */ + public open fun maintenance(`value`: MaintenanceProperty) { + unwrap(this).setMaintenance(`value`.let(MaintenanceProperty.Companion::unwrap)) + } + + /** + * The maintenance settings you want to use for the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f0cee2d8458cdc23c74cc39098c437ac609d7923cba89efeba369215ed92a685") + public open fun maintenance(`value`: MaintenanceProperty.Builder.() -> Unit): Unit = + maintenance(MaintenanceProperty(`value`)) + + /** + * The media streams associated with the flow. + */ + public open fun mediaStreams(): Any? = unwrap(this).getMediaStreams() + + /** + * The media streams associated with the flow. + */ + public open fun mediaStreams(`value`: IResolvable) { + unwrap(this).setMediaStreams(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The media streams associated with the flow. + */ + public open fun mediaStreams(`value`: List) { + unwrap(this).setMediaStreams(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The media streams associated with the flow. + */ + public open fun mediaStreams(vararg `value`: Any): Unit = mediaStreams(`value`.toList()) + /** * The name of the flow. */ @@ -225,6 +333,58 @@ public open class CfnFlow( public open fun sourceFailoverConfig(`value`: FailoverConfigProperty.Builder.() -> Unit): Unit = sourceFailoverConfig(FailoverConfigProperty(`value`)) + /** + * The settings for source monitoring. + */ + public open fun sourceMonitoringConfig(): Any? = unwrap(this).getSourceMonitoringConfig() + + /** + * The settings for source monitoring. + */ + public open fun sourceMonitoringConfig(`value`: IResolvable) { + unwrap(this).setSourceMonitoringConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The settings for source monitoring. + */ + public open fun sourceMonitoringConfig(`value`: SourceMonitoringConfigProperty) { + unwrap(this).setSourceMonitoringConfig(`value`.let(SourceMonitoringConfigProperty.Companion::unwrap)) + } + + /** + * The settings for source monitoring. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cb822b50eb707e25886a8cb36193c650b721a68c97c09d1eae15b68da4339544") + public open + fun sourceMonitoringConfig(`value`: SourceMonitoringConfigProperty.Builder.() -> Unit): Unit = + sourceMonitoringConfig(SourceMonitoringConfigProperty(`value`)) + + /** + * The VPC interfaces that you added to this flow. + */ + public open fun vpcInterfaces(): Any? = unwrap(this).getVpcInterfaces() + + /** + * The VPC interfaces that you added to this flow. + */ + public open fun vpcInterfaces(`value`: IResolvable) { + unwrap(this).setVpcInterfaces(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The VPC interfaces that you added to this flow. + */ + public open fun vpcInterfaces(`value`: List) { + unwrap(this).setVpcInterfaces(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The VPC interfaces that you added to this flow. + */ + public open fun vpcInterfaces(vararg `value`: Any): Unit = vpcInterfaces(`value`.toList()) + /** * A fluent builder for [io.cloudshiftdev.awscdk.services.mediaconnect.CfnFlow]. */ @@ -240,6 +400,62 @@ public open class CfnFlow( */ public fun availabilityZone(availabilityZone: String) + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + public fun maintenance(maintenance: IResolvable) + + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + public fun maintenance(maintenance: MaintenanceProperty) + + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a617b307e8a22f30056f37b2eaeda4f48b575658c3aed368342c8b13b142cd") + public fun maintenance(maintenance: MaintenanceProperty.Builder.() -> Unit) + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + public fun mediaStreams(mediaStreams: IResolvable) + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + public fun mediaStreams(mediaStreams: List) + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + public fun mediaStreams(vararg mediaStreams: Any) + /** * The name of the flow. * @@ -299,6 +515,57 @@ public open class CfnFlow( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5abeb077251f47edc02bd2b28a08721f306e31d06bd4f4b2bbc800e2fc3b9141") public fun sourceFailoverConfig(sourceFailoverConfig: FailoverConfigProperty.Builder.() -> Unit) + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + public fun sourceMonitoringConfig(sourceMonitoringConfig: IResolvable) + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + public fun sourceMonitoringConfig(sourceMonitoringConfig: SourceMonitoringConfigProperty) + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6ca25d37eb46d61122db966864b6a3a81675da33fac2c90b3b732b9fca18b38c") + public + fun sourceMonitoringConfig(sourceMonitoringConfig: SourceMonitoringConfigProperty.Builder.() -> Unit) + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vpcInterfaces: IResolvable) + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vpcInterfaces: List) + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vararg vpcInterfaces: Any) } private class BuilderImpl( @@ -320,6 +587,71 @@ public open class CfnFlow( cdkBuilder.availabilityZone(availabilityZone) } + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + override fun maintenance(maintenance: IResolvable) { + cdkBuilder.maintenance(maintenance.let(IResolvable.Companion::unwrap)) + } + + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + override fun maintenance(maintenance: MaintenanceProperty) { + cdkBuilder.maintenance(maintenance.let(MaintenanceProperty.Companion::unwrap)) + } + + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + * @param maintenance The maintenance settings you want to use for the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("86a617b307e8a22f30056f37b2eaeda4f48b575658c3aed368342c8b13b142cd") + override fun maintenance(maintenance: MaintenanceProperty.Builder.() -> Unit): Unit = + maintenance(MaintenanceProperty(maintenance)) + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + override fun mediaStreams(mediaStreams: IResolvable) { + cdkBuilder.mediaStreams(mediaStreams.let(IResolvable.Companion::unwrap)) + } + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + override fun mediaStreams(mediaStreams: List) { + cdkBuilder.mediaStreams(mediaStreams.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + * @param mediaStreams The media streams associated with the flow. + */ + override fun mediaStreams(vararg mediaStreams: Any): Unit = mediaStreams(mediaStreams.toList()) + /** * The name of the flow. * @@ -393,6 +725,67 @@ public open class CfnFlow( fun sourceFailoverConfig(sourceFailoverConfig: FailoverConfigProperty.Builder.() -> Unit): Unit = sourceFailoverConfig(FailoverConfigProperty(sourceFailoverConfig)) + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + override fun sourceMonitoringConfig(sourceMonitoringConfig: IResolvable) { + cdkBuilder.sourceMonitoringConfig(sourceMonitoringConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + override fun sourceMonitoringConfig(sourceMonitoringConfig: SourceMonitoringConfigProperty) { + cdkBuilder.sourceMonitoringConfig(sourceMonitoringConfig.let(SourceMonitoringConfigProperty.Companion::unwrap)) + } + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + * @param sourceMonitoringConfig The settings for source monitoring. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6ca25d37eb46d61122db966864b6a3a81675da33fac2c90b3b732b9fca18b38c") + override + fun sourceMonitoringConfig(sourceMonitoringConfig: SourceMonitoringConfigProperty.Builder.() -> Unit): + Unit = sourceMonitoringConfig(SourceMonitoringConfigProperty(sourceMonitoringConfig)) + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vpcInterfaces: IResolvable) { + cdkBuilder.vpcInterfaces(vpcInterfaces.let(IResolvable.Companion::unwrap)) + } + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vpcInterfaces: List) { + cdkBuilder.vpcInterfaces(vpcInterfaces.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vararg vpcInterfaces: Any): Unit = + vpcInterfaces(vpcInterfaces.toList()) + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow = cdkBuilder.build() } @@ -684,7 +1077,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * The type of algorithm that is used for static key encryption (such as aes128, aes192, or * aes256). @@ -979,7 +1373,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.FailoverConfigProperty, - ) : CdkObject(cdkObject), FailoverConfigProperty { + ) : CdkObject(cdkObject), + FailoverConfigProperty { /** * The type of failover you choose for this flow. * @@ -1043,7 +1438,7 @@ public open class CfnFlow( } /** - * The source configuration for cloud flows receiving a stream from a bridge. + * A set of parameters that define the media stream. * * Example: * @@ -1051,140 +1446,1499 @@ public open class CfnFlow( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.mediaconnect.*; - * GatewayBridgeSourceProperty gatewayBridgeSourceProperty = GatewayBridgeSourceProperty.builder() - * .bridgeArn("bridgeArn") - * // the properties below are optional - * .vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder() - * .vpcInterfaceName("vpcInterfaceName") - * .build()) + * FmtpProperty fmtpProperty = FmtpProperty.builder() + * .channelOrder("channelOrder") + * .colorimetry("colorimetry") + * .exactFramerate("exactFramerate") + * .par("par") + * .range("range") + * .scanMode("scanMode") + * .tcs("tcs") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html) */ - public interface GatewayBridgeSourceProperty { + public interface FmtpProperty { /** - * The ARN of the bridge feeding this flow. + * The format of the audio channel. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-bridgearn) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-channelorder) */ - public fun bridgeArn(): String + public fun channelOrder(): String? = unwrap(this).getChannelOrder() /** - * The name of the VPC interface attachment to use for this bridge source. + * The format used for the representation of color. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-vpcinterfaceattachment) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-colorimetry) */ - public fun vpcInterfaceAttachment(): Any? = unwrap(this).getVpcInterfaceAttachment() + public fun colorimetry(): String? = unwrap(this).getColorimetry() /** - * A builder for [GatewayBridgeSourceProperty] + * The frame rate for the video stream, in frames/second. + * + * For example: 60000/1001. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-exactframerate) + */ + public fun exactFramerate(): String? = unwrap(this).getExactFramerate() + + /** + * The pixel aspect ratio (PAR) of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-par) + */ + public fun par(): String? = unwrap(this).getPar() + + /** + * The encoding range of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-range) + */ + public fun range(): String? = unwrap(this).getRange() + + /** + * The type of compression that was used to smooth the video’s appearance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-scanmode) + */ + public fun scanMode(): String? = unwrap(this).getScanMode() + + /** + * The transfer characteristic system (TCS) that is used in the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-tcs) + */ + public fun tcs(): String? = unwrap(this).getTcs() + + /** + * A builder for [FmtpProperty] */ @CdkDslMarker public interface Builder { /** - * @param bridgeArn The ARN of the bridge feeding this flow. + * @param channelOrder The format of the audio channel. */ - public fun bridgeArn(bridgeArn: String) + public fun channelOrder(channelOrder: String) /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param colorimetry The format used for the representation of color. */ - public fun vpcInterfaceAttachment(vpcInterfaceAttachment: IResolvable) + public fun colorimetry(colorimetry: String) /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param exactFramerate The frame rate for the video stream, in frames/second. + * For example: 60000/1001. */ - public fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty) + public fun exactFramerate(exactFramerate: String) /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param par The pixel aspect ratio (PAR) of the video. */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e668c114dc639e8388a9195b1759d7621f6ce9cfc3d911d80839d3a718ad09a1") - public - fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty.Builder.() -> Unit) + public fun par(par: String) + + /** + * @param range The encoding range of the video. + */ + public fun range(range: String) + + /** + * @param scanMode The type of compression that was used to smooth the video’s appearance. + */ + public fun scanMode(scanMode: String) + + /** + * @param tcs The transfer characteristic system (TCS) that is used in the video. + */ + public fun tcs(tcs: String) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty.Builder = - software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty.builder() + software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty.builder() /** - * @param bridgeArn The ARN of the bridge feeding this flow. + * @param channelOrder The format of the audio channel. */ - override fun bridgeArn(bridgeArn: String) { - cdkBuilder.bridgeArn(bridgeArn) + override fun channelOrder(channelOrder: String) { + cdkBuilder.channelOrder(channelOrder) } /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param colorimetry The format used for the representation of color. */ - override fun vpcInterfaceAttachment(vpcInterfaceAttachment: IResolvable) { + override fun colorimetry(colorimetry: String) { + cdkBuilder.colorimetry(colorimetry) + } + + /** + * @param exactFramerate The frame rate for the video stream, in frames/second. + * For example: 60000/1001. + */ + override fun exactFramerate(exactFramerate: String) { + cdkBuilder.exactFramerate(exactFramerate) + } + + /** + * @param par The pixel aspect ratio (PAR) of the video. + */ + override fun par(par: String) { + cdkBuilder.par(par) + } + + /** + * @param range The encoding range of the video. + */ + override fun range(range: String) { + cdkBuilder.range(range) + } + + /** + * @param scanMode The type of compression that was used to smooth the video’s appearance. + */ + override fun scanMode(scanMode: String) { + cdkBuilder.scanMode(scanMode) + } + + /** + * @param tcs The transfer characteristic system (TCS) that is used in the video. + */ + override fun tcs(tcs: String) { + cdkBuilder.tcs(tcs) + } + + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty, + ) : CdkObject(cdkObject), + FmtpProperty { + /** + * The format of the audio channel. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-channelorder) + */ + override fun channelOrder(): String? = unwrap(this).getChannelOrder() + + /** + * The format used for the representation of color. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-colorimetry) + */ + override fun colorimetry(): String? = unwrap(this).getColorimetry() + + /** + * The frame rate for the video stream, in frames/second. + * + * For example: 60000/1001. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-exactframerate) + */ + override fun exactFramerate(): String? = unwrap(this).getExactFramerate() + + /** + * The pixel aspect ratio (PAR) of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-par) + */ + override fun par(): String? = unwrap(this).getPar() + + /** + * The encoding range of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-range) + */ + override fun range(): String? = unwrap(this).getRange() + + /** + * The type of compression that was used to smooth the video’s appearance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-scanmode) + */ + override fun scanMode(): String? = unwrap(this).getScanMode() + + /** + * The transfer characteristic system (TCS) that is used in the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-fmtp.html#cfn-mediaconnect-flow-fmtp-tcs) + */ + override fun tcs(): String? = unwrap(this).getTcs() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): FmtpProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty): + FmtpProperty = CdkObjectWrappers.wrap(cdkObject) as? FmtpProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: FmtpProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.mediaconnect.CfnFlow.FmtpProperty + } + } + + /** + * The source configuration for cloud flows receiving a stream from a bridge. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * GatewayBridgeSourceProperty gatewayBridgeSourceProperty = GatewayBridgeSourceProperty.builder() + * .bridgeArn("bridgeArn") + * // the properties below are optional + * .vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder() + * .vpcInterfaceName("vpcInterfaceName") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html) + */ + public interface GatewayBridgeSourceProperty { + /** + * The ARN of the bridge feeding this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-bridgearn) + */ + public fun bridgeArn(): String + + /** + * The name of the VPC interface attachment to use for this bridge source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-vpcinterfaceattachment) + */ + public fun vpcInterfaceAttachment(): Any? = unwrap(this).getVpcInterfaceAttachment() + + /** + * A builder for [GatewayBridgeSourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param bridgeArn The ARN of the bridge feeding this flow. + */ + public fun bridgeArn(bridgeArn: String) + + /** + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + public fun vpcInterfaceAttachment(vpcInterfaceAttachment: IResolvable) + + /** + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + public fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty) + + /** + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e668c114dc639e8388a9195b1759d7621f6ce9cfc3d911d80839d3a718ad09a1") + public + fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty.builder() + + /** + * @param bridgeArn The ARN of the bridge feeding this flow. + */ + override fun bridgeArn(bridgeArn: String) { + cdkBuilder.bridgeArn(bridgeArn) + } + + /** + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + override fun vpcInterfaceAttachment(vpcInterfaceAttachment: IResolvable) { cdkBuilder.vpcInterfaceAttachment(vpcInterfaceAttachment.let(IResolvable.Companion::unwrap)) } /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + override fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty) { + cdkBuilder.vpcInterfaceAttachment(vpcInterfaceAttachment.let(VpcInterfaceAttachmentProperty.Companion::unwrap)) + } + + /** + * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this + * bridge source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e668c114dc639e8388a9195b1759d7621f6ce9cfc3d911d80839d3a718ad09a1") + override + fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty.Builder.() -> Unit): + Unit = vpcInterfaceAttachment(VpcInterfaceAttachmentProperty(vpcInterfaceAttachment)) + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty, + ) : CdkObject(cdkObject), + GatewayBridgeSourceProperty { + /** + * The ARN of the bridge feeding this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-bridgearn) + */ + override fun bridgeArn(): String = unwrap(this).getBridgeArn() + + /** + * The name of the VPC interface attachment to use for this bridge source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-vpcinterfaceattachment) + */ + override fun vpcInterfaceAttachment(): Any? = unwrap(this).getVpcInterfaceAttachment() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): GatewayBridgeSourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty): + GatewayBridgeSourceProperty = CdkObjectWrappers.wrap(cdkObject) as? + GatewayBridgeSourceProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: GatewayBridgeSourceProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty + } + } + + /** + * The transport parameters associated with an incoming media stream. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * InputConfigurationProperty inputConfigurationProperty = InputConfigurationProperty.builder() + * .inputPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-inputconfiguration.html) + */ + public interface InputConfigurationProperty { + /** + * The port that the flow listens on for an incoming media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-inputconfiguration.html#cfn-mediaconnect-flow-inputconfiguration-inputport) + */ + public fun inputPort(): Number + + /** + * The VPC interface where the media stream comes in from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-inputconfiguration.html#cfn-mediaconnect-flow-inputconfiguration-interface) + */ + public fun interfaceValue(): Any + + /** + * A builder for [InputConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param inputPort The port that the flow listens on for an incoming media stream. + */ + public fun inputPort(inputPort: Number) + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + public fun interfaceValue(interfaceValue: IResolvable) + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + public fun interfaceValue(interfaceValue: InterfaceProperty) + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fab1b472973b4e4cf145022f85079c35c17f546fa633e2478dc2bdefb99b4f23") + public fun interfaceValue(interfaceValue: InterfaceProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty.builder() + + /** + * @param inputPort The port that the flow listens on for an incoming media stream. + */ + override fun inputPort(inputPort: Number) { + cdkBuilder.inputPort(inputPort) + } + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + override fun interfaceValue(interfaceValue: IResolvable) { + cdkBuilder.interfaceValue(interfaceValue.let(IResolvable.Companion::unwrap)) + } + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + override fun interfaceValue(interfaceValue: InterfaceProperty) { + cdkBuilder.interfaceValue(interfaceValue.let(InterfaceProperty.Companion::unwrap)) + } + + /** + * @param interfaceValue The VPC interface where the media stream comes in from. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fab1b472973b4e4cf145022f85079c35c17f546fa633e2478dc2bdefb99b4f23") + override fun interfaceValue(interfaceValue: InterfaceProperty.Builder.() -> Unit): Unit = + interfaceValue(InterfaceProperty(interfaceValue)) + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty, + ) : CdkObject(cdkObject), + InputConfigurationProperty { + /** + * The port that the flow listens on for an incoming media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-inputconfiguration.html#cfn-mediaconnect-flow-inputconfiguration-inputport) + */ + override fun inputPort(): Number = unwrap(this).getInputPort() + + /** + * The VPC interface where the media stream comes in from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-inputconfiguration.html#cfn-mediaconnect-flow-inputconfiguration-interface) + */ + override fun interfaceValue(): Any = unwrap(this).getInterfaceValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InputConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty): + InputConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + InputConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: InputConfigurationProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.InputConfigurationProperty + } + } + + /** + * The VPC interface that you want to use for the media stream associated with the output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * InterfaceProperty interfaceProperty = InterfaceProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-interface.html) + */ + public interface InterfaceProperty { + /** + * The name of the VPC interface that you want to use for the media stream associated with the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-interface.html#cfn-mediaconnect-flow-interface-name) + */ + public fun name(): String + + /** + * A builder for [InterfaceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the VPC interface that you want to use for the media stream + * associated with the output. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty.builder() + + /** + * @param name The name of the VPC interface that you want to use for the media stream + * associated with the output. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty, + ) : CdkObject(cdkObject), + InterfaceProperty { + /** + * The name of the VPC interface that you want to use for the media stream associated with the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-interface.html#cfn-mediaconnect-flow-interface-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InterfaceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty): + InterfaceProperty = CdkObjectWrappers.wrap(cdkObject) as? InterfaceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InterfaceProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.InterfaceProperty + } + } + + /** + * The maintenance setting of a flow. + * + * MediaConnect routinely performs maintenance on underlying systems for security, reliability, + * and operational performance. The maintenance activities include actions such as patching the + * operating system, updating drivers, or installing software and patches. + * + * You can select the day and time that maintenance events occur. This is called a maintenance + * window and is used every time a maintenance event is required. To change the day and time, you can + * edit the maintenance window using `MaintenanceDay` and `MaintenanceStartHour` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * MaintenanceProperty maintenanceProperty = MaintenanceProperty.builder() + * .maintenanceDay("maintenanceDay") + * .maintenanceStartHour("maintenanceStartHour") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-maintenance.html) + */ + public interface MaintenanceProperty { + /** + * A day of a week when the maintenance will happen. + * + * Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-maintenance.html#cfn-mediaconnect-flow-maintenance-maintenanceday) + */ + public fun maintenanceDay(): String + + /** + * UTC time when the maintenance will happen. + * + * Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-maintenance.html#cfn-mediaconnect-flow-maintenance-maintenancestarthour) + */ + public fun maintenanceStartHour(): String + + /** + * A builder for [MaintenanceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param maintenanceDay A day of a week when the maintenance will happen. + * Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday. + */ + public fun maintenanceDay(maintenanceDay: String) + + /** + * @param maintenanceStartHour UTC time when the maintenance will happen. + * Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00. + */ + public fun maintenanceStartHour(maintenanceStartHour: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty.builder() + + /** + * @param maintenanceDay A day of a week when the maintenance will happen. + * Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday. + */ + override fun maintenanceDay(maintenanceDay: String) { + cdkBuilder.maintenanceDay(maintenanceDay) + } + + /** + * @param maintenanceStartHour UTC time when the maintenance will happen. + * Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00. + */ + override fun maintenanceStartHour(maintenanceStartHour: String) { + cdkBuilder.maintenanceStartHour(maintenanceStartHour) + } + + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty, + ) : CdkObject(cdkObject), + MaintenanceProperty { + /** + * A day of a week when the maintenance will happen. + * + * Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-maintenance.html#cfn-mediaconnect-flow-maintenance-maintenanceday) + */ + override fun maintenanceDay(): String = unwrap(this).getMaintenanceDay() + + /** + * UTC time when the maintenance will happen. + * + * Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-maintenance.html#cfn-mediaconnect-flow-maintenance-maintenancestarthour) + */ + override fun maintenanceStartHour(): String = unwrap(this).getMaintenanceStartHour() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MaintenanceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty): + MaintenanceProperty = CdkObjectWrappers.wrap(cdkObject) as? MaintenanceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MaintenanceProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.MaintenanceProperty + } + } + + /** + * Attributes that are related to the media stream. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * MediaStreamAttributesProperty mediaStreamAttributesProperty = + * MediaStreamAttributesProperty.builder() + * .fmtp(FmtpProperty.builder() + * .channelOrder("channelOrder") + * .colorimetry("colorimetry") + * .exactFramerate("exactFramerate") + * .par("par") + * .range("range") + * .scanMode("scanMode") + * .tcs("tcs") + * .build()) + * .lang("lang") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamattributes.html) + */ + public interface MediaStreamAttributesProperty { + /** + * A set of parameters that define the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamattributes.html#cfn-mediaconnect-flow-mediastreamattributes-fmtp) + */ + public fun fmtp(): Any? = unwrap(this).getFmtp() + + /** + * The audio language, in a format that is recognized by the receiver. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamattributes.html#cfn-mediaconnect-flow-mediastreamattributes-lang) + */ + public fun lang(): String? = unwrap(this).getLang() + + /** + * A builder for [MediaStreamAttributesProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param fmtp A set of parameters that define the media stream. + */ + public fun fmtp(fmtp: IResolvable) + + /** + * @param fmtp A set of parameters that define the media stream. + */ + public fun fmtp(fmtp: FmtpProperty) + + /** + * @param fmtp A set of parameters that define the media stream. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dac843c0c4c8ac032a583fbbafc6a584aade8d2b36387f91611a8eb34dfd7562") + public fun fmtp(fmtp: FmtpProperty.Builder.() -> Unit) + + /** + * @param lang The audio language, in a format that is recognized by the receiver. + */ + public fun lang(lang: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty.builder() + + /** + * @param fmtp A set of parameters that define the media stream. + */ + override fun fmtp(fmtp: IResolvable) { + cdkBuilder.fmtp(fmtp.let(IResolvable.Companion::unwrap)) + } + + /** + * @param fmtp A set of parameters that define the media stream. + */ + override fun fmtp(fmtp: FmtpProperty) { + cdkBuilder.fmtp(fmtp.let(FmtpProperty.Companion::unwrap)) + } + + /** + * @param fmtp A set of parameters that define the media stream. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dac843c0c4c8ac032a583fbbafc6a584aade8d2b36387f91611a8eb34dfd7562") + override fun fmtp(fmtp: FmtpProperty.Builder.() -> Unit): Unit = fmtp(FmtpProperty(fmtp)) + + /** + * @param lang The audio language, in a format that is recognized by the receiver. + */ + override fun lang(lang: String) { + cdkBuilder.lang(lang) + } + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty, + ) : CdkObject(cdkObject), + MediaStreamAttributesProperty { + /** + * A set of parameters that define the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamattributes.html#cfn-mediaconnect-flow-mediastreamattributes-fmtp) + */ + override fun fmtp(): Any? = unwrap(this).getFmtp() + + /** + * The audio language, in a format that is recognized by the receiver. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamattributes.html#cfn-mediaconnect-flow-mediastreamattributes-lang) + */ + override fun lang(): String? = unwrap(this).getLang() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MediaStreamAttributesProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty): + MediaStreamAttributesProperty = CdkObjectWrappers.wrap(cdkObject) as? + MediaStreamAttributesProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaStreamAttributesProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamAttributesProperty + } + } + + /** + * A single track or stream of media that contains video, audio, or ancillary data. + * + * After you add a media stream to a flow, you can associate it with sources and outputs on that + * flow, as long as they use the CDI protocol or the ST 2110 JPEG XS protocol. Each source or output + * can consist of one or many media streams. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * MediaStreamProperty mediaStreamProperty = MediaStreamProperty.builder() + * .mediaStreamId(123) + * .mediaStreamName("mediaStreamName") + * .mediaStreamType("mediaStreamType") + * // the properties below are optional + * .attributes(MediaStreamAttributesProperty.builder() + * .fmtp(FmtpProperty.builder() + * .channelOrder("channelOrder") + * .colorimetry("colorimetry") + * .exactFramerate("exactFramerate") + * .par("par") + * .range("range") + * .scanMode("scanMode") + * .tcs("tcs") + * .build()) + * .lang("lang") + * .build()) + * .clockRate(123) + * .description("description") + * .fmt(123) + * .videoFormat("videoFormat") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html) + */ + public interface MediaStreamProperty { + /** + * Attributes that are related to the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-attributes) + */ + public fun attributes(): Any? = unwrap(this).getAttributes() + + /** + * The sample rate for the stream. + * + * This value in measured in kHz. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-clockrate) + */ + public fun clockRate(): Number? = unwrap(this).getClockRate() + + /** + * A description that can help you quickly identify what your media stream is used for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The format type number (sometimes referred to as RTP payload type) of the media stream. + * + * MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to + * provide this value to the receiver. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-fmt) + */ + public fun fmt(): Number? = unwrap(this).getFmt() + + /** + * A unique identifier for the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamid) + */ + public fun mediaStreamId(): Number + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamname) + */ + public fun mediaStreamName(): String + + /** + * The type of media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamtype) + */ + public fun mediaStreamType(): String + + /** + * The resolution of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-videoformat) + */ + public fun videoFormat(): String? = unwrap(this).getVideoFormat() + + /** + * A builder for [MediaStreamProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attributes Attributes that are related to the media stream. + */ + public fun attributes(attributes: IResolvable) + + /** + * @param attributes Attributes that are related to the media stream. + */ + public fun attributes(attributes: MediaStreamAttributesProperty) + + /** + * @param attributes Attributes that are related to the media stream. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dda8d931b026e26d35275af27049ae85aa42e2cc257a1d64cc83aff8f7750fb0") + public fun attributes(attributes: MediaStreamAttributesProperty.Builder.() -> Unit) + + /** + * @param clockRate The sample rate for the stream. + * This value in measured in kHz. + */ + public fun clockRate(clockRate: Number) + + /** + * @param description A description that can help you quickly identify what your media stream + * is used for. + */ + public fun description(description: String) + + /** + * @param fmt The format type number (sometimes referred to as RTP payload type) of the media + * stream. + * MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need + * to provide this value to the receiver. + */ + public fun fmt(fmt: Number) + + /** + * @param mediaStreamId A unique identifier for the media stream. + */ + public fun mediaStreamId(mediaStreamId: Number) + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + public fun mediaStreamName(mediaStreamName: String) + + /** + * @param mediaStreamType The type of media stream. + */ + public fun mediaStreamType(mediaStreamType: String) + + /** + * @param videoFormat The resolution of the video. + */ + public fun videoFormat(videoFormat: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty.builder() + + /** + * @param attributes Attributes that are related to the media stream. + */ + override fun attributes(attributes: IResolvable) { + cdkBuilder.attributes(attributes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param attributes Attributes that are related to the media stream. + */ + override fun attributes(attributes: MediaStreamAttributesProperty) { + cdkBuilder.attributes(attributes.let(MediaStreamAttributesProperty.Companion::unwrap)) + } + + /** + * @param attributes Attributes that are related to the media stream. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dda8d931b026e26d35275af27049ae85aa42e2cc257a1d64cc83aff8f7750fb0") + override fun attributes(attributes: MediaStreamAttributesProperty.Builder.() -> Unit): Unit = + attributes(MediaStreamAttributesProperty(attributes)) + + /** + * @param clockRate The sample rate for the stream. + * This value in measured in kHz. + */ + override fun clockRate(clockRate: Number) { + cdkBuilder.clockRate(clockRate) + } + + /** + * @param description A description that can help you quickly identify what your media stream + * is used for. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param fmt The format type number (sometimes referred to as RTP payload type) of the media + * stream. + * MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need + * to provide this value to the receiver. + */ + override fun fmt(fmt: Number) { + cdkBuilder.fmt(fmt) + } + + /** + * @param mediaStreamId A unique identifier for the media stream. + */ + override fun mediaStreamId(mediaStreamId: Number) { + cdkBuilder.mediaStreamId(mediaStreamId) + } + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + override fun mediaStreamName(mediaStreamName: String) { + cdkBuilder.mediaStreamName(mediaStreamName) + } + + /** + * @param mediaStreamType The type of media stream. + */ + override fun mediaStreamType(mediaStreamType: String) { + cdkBuilder.mediaStreamType(mediaStreamType) + } + + /** + * @param videoFormat The resolution of the video. + */ + override fun videoFormat(videoFormat: String) { + cdkBuilder.videoFormat(videoFormat) + } + + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty, + ) : CdkObject(cdkObject), + MediaStreamProperty { + /** + * Attributes that are related to the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-attributes) + */ + override fun attributes(): Any? = unwrap(this).getAttributes() + + /** + * The sample rate for the stream. + * + * This value in measured in kHz. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-clockrate) + */ + override fun clockRate(): Number? = unwrap(this).getClockRate() + + /** + * A description that can help you quickly identify what your media stream is used for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The format type number (sometimes referred to as RTP payload type) of the media stream. + * + * MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need + * to provide this value to the receiver. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-fmt) + */ + override fun fmt(): Number? = unwrap(this).getFmt() + + /** + * A unique identifier for the media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamid) + */ + override fun mediaStreamId(): Number = unwrap(this).getMediaStreamId() + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamname) + */ + override fun mediaStreamName(): String = unwrap(this).getMediaStreamName() + + /** + * The type of media stream. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-mediastreamtype) + */ + override fun mediaStreamType(): String = unwrap(this).getMediaStreamType() + + /** + * The resolution of the video. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastream.html#cfn-mediaconnect-flow-mediastream-videoformat) + */ + override fun videoFormat(): String? = unwrap(this).getVideoFormat() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MediaStreamProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty): + MediaStreamProperty = CdkObjectWrappers.wrap(cdkObject) as? MediaStreamProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaStreamProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamProperty + } + } + + /** + * The media stream that is associated with the source, and the parameters for that association. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * MediaStreamSourceConfigurationProperty mediaStreamSourceConfigurationProperty = + * MediaStreamSourceConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .inputConfigurations(List.of(InputConfigurationProperty.builder() + * .inputPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html) + */ + public interface MediaStreamSourceConfigurationProperty { + /** + * The format that was used to encode the data. + * + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video, 2110 streams, set the encoding name to `raw` . + * + * For video, JPEG XS streams, set the encoding name to `jxsv` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-encodingname) + */ + public fun encodingName(): String + + /** + * The media streams that you want to associate with the source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-inputconfigurations) + */ + public fun inputConfigurations(): Any? = unwrap(this).getInputConfigurations() + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-mediastreamname) + */ + public fun mediaStreamName(): String + + /** + * A builder for [MediaStreamSourceConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param encodingName The format that was used to encode the data. + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video, 2110 streams, set the encoding name to `raw` . + * + * For video, JPEG XS streams, set the encoding name to `jxsv` . + */ + public fun encodingName(encodingName: String) + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + public fun inputConfigurations(inputConfigurations: IResolvable) + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + public fun inputConfigurations(inputConfigurations: List) + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + public fun inputConfigurations(vararg inputConfigurations: Any) + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + public fun mediaStreamName(mediaStreamName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty.builder() + + /** + * @param encodingName The format that was used to encode the data. + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video, 2110 streams, set the encoding name to `raw` . + * + * For video, JPEG XS streams, set the encoding name to `jxsv` . + */ + override fun encodingName(encodingName: String) { + cdkBuilder.encodingName(encodingName) + } + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + override fun inputConfigurations(inputConfigurations: IResolvable) { + cdkBuilder.inputConfigurations(inputConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + override fun inputConfigurations(inputConfigurations: List) { + cdkBuilder.inputConfigurations(inputConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param inputConfigurations The media streams that you want to associate with the source. + */ + override fun inputConfigurations(vararg inputConfigurations: Any): Unit = + inputConfigurations(inputConfigurations.toList()) + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + override fun mediaStreamName(mediaStreamName: String) { + cdkBuilder.mediaStreamName(mediaStreamName) + } + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty, + ) : CdkObject(cdkObject), + MediaStreamSourceConfigurationProperty { + /** + * The format that was used to encode the data. + * + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video, 2110 streams, set the encoding name to `raw` . + * + * For video, JPEG XS streams, set the encoding name to `jxsv` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-encodingname) + */ + override fun encodingName(): String = unwrap(this).getEncodingName() + + /** + * The media streams that you want to associate with the source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-inputconfigurations) + */ + override fun inputConfigurations(): Any? = unwrap(this).getInputConfigurations() + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-mediastreamsourceconfiguration.html#cfn-mediaconnect-flow-mediastreamsourceconfiguration-mediastreamname) + */ + override fun mediaStreamName(): String = unwrap(this).getMediaStreamName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + MediaStreamSourceConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty): + MediaStreamSourceConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + MediaStreamSourceConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaStreamSourceConfigurationProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty + } + } + + /** + * The settings for source monitoring. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * SourceMonitoringConfigProperty sourceMonitoringConfigProperty = + * SourceMonitoringConfigProperty.builder() + * .thumbnailState("thumbnailState") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html) + */ + public interface SourceMonitoringConfigProperty { + /** + * The state of thumbnail monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-thumbnailstate) + */ + public fun thumbnailState(): String + + /** + * A builder for [SourceMonitoringConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param thumbnailState The state of thumbnail monitoring. */ - override fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty) { - cdkBuilder.vpcInterfaceAttachment(vpcInterfaceAttachment.let(VpcInterfaceAttachmentProperty.Companion::unwrap)) - } + public fun thumbnailState(thumbnailState: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty.builder() /** - * @param vpcInterfaceAttachment The name of the VPC interface attachment to use for this - * bridge source. + * @param thumbnailState The state of thumbnail monitoring. */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("e668c114dc639e8388a9195b1759d7621f6ce9cfc3d911d80839d3a718ad09a1") - override - fun vpcInterfaceAttachment(vpcInterfaceAttachment: VpcInterfaceAttachmentProperty.Builder.() -> Unit): - Unit = vpcInterfaceAttachment(VpcInterfaceAttachmentProperty(vpcInterfaceAttachment)) + override fun thumbnailState(thumbnailState: String) { + cdkBuilder.thumbnailState(thumbnailState) + } public fun build(): - software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty = + software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty, - ) : CdkObject(cdkObject), GatewayBridgeSourceProperty { + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty, + ) : CdkObject(cdkObject), + SourceMonitoringConfigProperty { /** - * The ARN of the bridge feeding this flow. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-bridgearn) - */ - override fun bridgeArn(): String = unwrap(this).getBridgeArn() - - /** - * The name of the VPC interface attachment to use for this bridge source. + * The state of thumbnail monitoring. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-gatewaybridgesource.html#cfn-mediaconnect-flow-gatewaybridgesource-vpcinterfaceattachment) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-thumbnailstate) */ - override fun vpcInterfaceAttachment(): Any? = unwrap(this).getVpcInterfaceAttachment() + override fun thumbnailState(): String = unwrap(this).getThumbnailState() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): GatewayBridgeSourceProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): SourceMonitoringConfigProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty): - GatewayBridgeSourceProperty = CdkObjectWrappers.wrap(cdkObject) as? - GatewayBridgeSourceProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty): + SourceMonitoringConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + SourceMonitoringConfigProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: GatewayBridgeSourceProperty): - software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty = + internal fun unwrap(wrapped: SourceMonitoringConfigProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.mediaconnect.CfnFlow.GatewayBridgeSourceProperty + software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceMonitoringConfigProperty } } @@ -1247,7 +3001,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.SourcePriorityProperty, - ) : CdkObject(cdkObject), SourcePriorityProperty { + ) : CdkObject(cdkObject), + SourcePriorityProperty { /** * The name of the source you choose as the primary source for this flow. * @@ -1319,6 +3074,18 @@ public open class CfnFlow( * .ingestPort(123) * .maxBitrate(123) * .maxLatency(123) + * .maxSyncBuffer(123) + * .mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .inputConfigurations(List.of(InputConfigurationProperty.builder() + * .inputPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .build())) * .minLatency(123) * .name("name") * .protocol("protocol") @@ -1397,12 +3164,25 @@ public open class CfnFlow( /** * The maximum latency in milliseconds for a RIST or Zixi-based source. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-maxlatency) */ public fun maxLatency(): Number? = unwrap(this).getMaxLatency() + /** + * The size of the buffer (in milliseconds) to use to sync incoming source data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-maxsyncbuffer) + */ + public fun maxSyncBuffer(): Number? = unwrap(this).getMaxSyncBuffer() + + /** + * The media stream that is associated with the source, and the parameters for that association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-mediastreamsourceconfigurations) + */ + public fun mediaStreamSourceConfigurations(): Any? = + unwrap(this).getMediaStreamSourceConfigurations() + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -1411,8 +3191,6 @@ public open class CfnFlow( * set to the highest number between the sender’s minimum latency and the receiver’s minimum * latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-minlatency) */ public fun minLatency(): Number? = unwrap(this).getMinLatency() @@ -1584,6 +3362,30 @@ public open class CfnFlow( */ public fun maxLatency(maxLatency: Number) + /** + * @param maxSyncBuffer The size of the buffer (in milliseconds) to use to sync incoming + * source data. + */ + public fun maxSyncBuffer(maxSyncBuffer: Number) + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + public fun mediaStreamSourceConfigurations(mediaStreamSourceConfigurations: IResolvable) + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + public fun mediaStreamSourceConfigurations(mediaStreamSourceConfigurations: List) + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + public fun mediaStreamSourceConfigurations(vararg mediaStreamSourceConfigurations: Any) + /** * @param minLatency The minimum latency in milliseconds for SRT-based streams. * In streams that use the SRT protocol, this value that you set on your MediaConnect source @@ -1760,6 +3562,37 @@ public open class CfnFlow( cdkBuilder.maxLatency(maxLatency) } + /** + * @param maxSyncBuffer The size of the buffer (in milliseconds) to use to sync incoming + * source data. + */ + override fun maxSyncBuffer(maxSyncBuffer: Number) { + cdkBuilder.maxSyncBuffer(maxSyncBuffer) + } + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + override fun mediaStreamSourceConfigurations(mediaStreamSourceConfigurations: IResolvable) { + cdkBuilder.mediaStreamSourceConfigurations(mediaStreamSourceConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + override fun mediaStreamSourceConfigurations(mediaStreamSourceConfigurations: List) { + cdkBuilder.mediaStreamSourceConfigurations(mediaStreamSourceConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param mediaStreamSourceConfigurations The media stream that is associated with the source, + * and the parameters for that association. + */ + override fun mediaStreamSourceConfigurations(vararg mediaStreamSourceConfigurations: Any): + Unit = mediaStreamSourceConfigurations(mediaStreamSourceConfigurations.toList()) + /** * @param minLatency The minimum latency in milliseconds for SRT-based streams. * In streams that use the SRT protocol, this value that you set on your MediaConnect source @@ -1862,7 +3695,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * The type of encryption that is used on the content ingested from the source. * @@ -1923,12 +3757,26 @@ public open class CfnFlow( /** * The maximum latency in milliseconds for a RIST or Zixi-based source. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-maxlatency) */ override fun maxLatency(): Number? = unwrap(this).getMaxLatency() + /** + * The size of the buffer (in milliseconds) to use to sync incoming source data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-maxsyncbuffer) + */ + override fun maxSyncBuffer(): Number? = unwrap(this).getMaxSyncBuffer() + + /** + * The media stream that is associated with the source, and the parameters for that + * association. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-mediastreamsourceconfigurations) + */ + override fun mediaStreamSourceConfigurations(): Any? = + unwrap(this).getMediaStreamSourceConfigurations() + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -1937,8 +3785,6 @@ public open class CfnFlow( * stream is set to the highest number between the sender’s minimum latency and the receiver’s * minimum latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-minlatency) */ override fun minLatency(): Number? = unwrap(this).getMinLatency() @@ -2105,7 +3951,8 @@ public open class CfnFlow( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceAttachmentProperty, - ) : CdkObject(cdkObject), VpcInterfaceAttachmentProperty { + ) : CdkObject(cdkObject), + VpcInterfaceAttachmentProperty { /** * The name of the VPC interface that you want to send your output to. * @@ -2131,4 +3978,291 @@ public open class CfnFlow( software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceAttachmentProperty } } + + /** + * The details of a VPC interface. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * VpcInterfaceProperty vpcInterfaceProperty = VpcInterfaceProperty.builder() + * .name("name") + * .roleArn("roleArn") + * .securityGroupIds(List.of("securityGroupIds")) + * .subnetId("subnetId") + * // the properties below are optional + * .networkInterfaceIds(List.of("networkInterfaceIds")) + * .networkInterfaceType("networkInterfaceType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html) + */ + public interface VpcInterfaceProperty { + /** + * The name for the VPC interface. + * + * This name must be unique within the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-name) + */ + public fun name(): String + + /** + * The IDs of the network interfaces that MediaConnect created in your account. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfaceids) + */ + public fun networkInterfaceIds(): List = unwrap(this).getNetworkInterfaceIds() ?: + emptyList() + + /** + * The type of network interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfacetype) + */ + public fun networkInterfaceType(): String? = unwrap(this).getNetworkInterfaceType() + + /** + * The ARN of the IAM role that you created when you set up MediaConnect as a trusted service. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-rolearn) + */ + public fun roleArn(): String + + /** + * A virtual firewall to control inbound and outbound traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-securitygroupids) + */ + public fun securityGroupIds(): List + + /** + * The subnet IDs that you specified for your VPC interface. + * + * A subnet ID is a range of IP addresses in your VPC. When you create your VPC, you specify a + * range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) + * block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a + * subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC + * CIDR block. + * + * The subnets that you use across all VPC interfaces on the flow must be in the same + * Availability Zone as the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-subnetid) + */ + public fun subnetId(): String + + /** + * A builder for [VpcInterfaceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name for the VPC interface. + * This name must be unique within the flow. + */ + public fun name(name: String) + + /** + * @param networkInterfaceIds The IDs of the network interfaces that MediaConnect created in + * your account. + */ + public fun networkInterfaceIds(networkInterfaceIds: List) + + /** + * @param networkInterfaceIds The IDs of the network interfaces that MediaConnect created in + * your account. + */ + public fun networkInterfaceIds(vararg networkInterfaceIds: String) + + /** + * @param networkInterfaceType The type of network interface. + */ + public fun networkInterfaceType(networkInterfaceType: String) + + /** + * @param roleArn The ARN of the IAM role that you created when you set up MediaConnect as a + * trusted service. + */ + public fun roleArn(roleArn: String) + + /** + * @param securityGroupIds A virtual firewall to control inbound and outbound traffic. + */ + public fun securityGroupIds(securityGroupIds: List) + + /** + * @param securityGroupIds A virtual firewall to control inbound and outbound traffic. + */ + public fun securityGroupIds(vararg securityGroupIds: String) + + /** + * @param subnetId The subnet IDs that you specified for your VPC interface. + * A subnet ID is a range of IP addresses in your VPC. When you create your VPC, you specify a + * range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) + * block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create + * a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC + * CIDR block. + * + * The subnets that you use across all VPC interfaces on the flow must be in the same + * Availability Zone as the flow. + */ + public fun subnetId(subnetId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty.builder() + + /** + * @param name The name for the VPC interface. + * This name must be unique within the flow. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param networkInterfaceIds The IDs of the network interfaces that MediaConnect created in + * your account. + */ + override fun networkInterfaceIds(networkInterfaceIds: List) { + cdkBuilder.networkInterfaceIds(networkInterfaceIds) + } + + /** + * @param networkInterfaceIds The IDs of the network interfaces that MediaConnect created in + * your account. + */ + override fun networkInterfaceIds(vararg networkInterfaceIds: String): Unit = + networkInterfaceIds(networkInterfaceIds.toList()) + + /** + * @param networkInterfaceType The type of network interface. + */ + override fun networkInterfaceType(networkInterfaceType: String) { + cdkBuilder.networkInterfaceType(networkInterfaceType) + } + + /** + * @param roleArn The ARN of the IAM role that you created when you set up MediaConnect as a + * trusted service. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param securityGroupIds A virtual firewall to control inbound and outbound traffic. + */ + override fun securityGroupIds(securityGroupIds: List) { + cdkBuilder.securityGroupIds(securityGroupIds) + } + + /** + * @param securityGroupIds A virtual firewall to control inbound and outbound traffic. + */ + override fun securityGroupIds(vararg securityGroupIds: String): Unit = + securityGroupIds(securityGroupIds.toList()) + + /** + * @param subnetId The subnet IDs that you specified for your VPC interface. + * A subnet ID is a range of IP addresses in your VPC. When you create your VPC, you specify a + * range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) + * block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create + * a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC + * CIDR block. + * + * The subnets that you use across all VPC interfaces on the flow must be in the same + * Availability Zone as the flow. + */ + override fun subnetId(subnetId: String) { + cdkBuilder.subnetId(subnetId) + } + + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty, + ) : CdkObject(cdkObject), + VpcInterfaceProperty { + /** + * The name for the VPC interface. + * + * This name must be unique within the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The IDs of the network interfaces that MediaConnect created in your account. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfaceids) + */ + override fun networkInterfaceIds(): List = unwrap(this).getNetworkInterfaceIds() ?: + emptyList() + + /** + * The type of network interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfacetype) + */ + override fun networkInterfaceType(): String? = unwrap(this).getNetworkInterfaceType() + + /** + * The ARN of the IAM role that you created when you set up MediaConnect as a trusted service. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * A virtual firewall to control inbound and outbound traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-securitygroupids) + */ + override fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() + + /** + * The subnet IDs that you specified for your VPC interface. + * + * A subnet ID is a range of IP addresses in your VPC. When you create your VPC, you specify a + * range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) + * block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create + * a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC + * CIDR block. + * + * The subnets that you use across all VPC interfaces on the flow must be in the same + * Availability Zone as the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-subnetid) + */ + override fun subnetId(): String = unwrap(this).getSubnetId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VpcInterfaceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty): + VpcInterfaceProperty = CdkObjectWrappers.wrap(cdkObject) as? VpcInterfaceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: VpcInterfaceProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlement.kt index c7f2649b85..3ea0eb4b5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlement.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowEntitlement( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowEntitlement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -745,7 +746,8 @@ public open class CfnFlowEntitlement( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowEntitlement.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * The type of algorithm that is used for static key encryption (such as aes128, aes192, or * aes256). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlementProps.kt index 91d13a4292..08755cb657 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowEntitlementProps.kt @@ -280,7 +280,8 @@ public interface CfnFlowEntitlementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowEntitlementProps, - ) : CdkObject(cdkObject), CfnFlowEntitlementProps { + ) : CdkObject(cdkObject), + CfnFlowEntitlementProps { /** * The percentage of the entitlement data transfer fee that you want the subscriber to be * responsible for. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutput.kt index fdc95e330c..cb4465c9bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutput.kt @@ -48,8 +48,26 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .keyType("keyType") * .build()) * .maxLatency(123) + * .mediaStreamOutputConfigurations(List.of(MediaStreamOutputConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .destinationConfigurations(List.of(DestinationConfigurationProperty.builder() + * .destinationIp("destinationIp") + * .destinationPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .encodingParameters(EncodingParametersProperty.builder() + * .compressionFactor(123) + * // the properties below are optional + * .encoderProfile("encoderProfile") + * .build()) + * .build())) * .minLatency(123) * .name("name") + * .outputStatus("outputStatus") * .port(123) * .remoteId("remoteId") * .smoothingLatency(123) @@ -64,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowOutput( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -187,6 +206,32 @@ public open class CfnFlowOutput( unwrap(this).setMaxLatency(`value`) } + /** + * The definition for each media stream that is associated with the output. + */ + public open fun mediaStreamOutputConfigurations(): Any? = + unwrap(this).getMediaStreamOutputConfigurations() + + /** + * The definition for each media stream that is associated with the output. + */ + public open fun mediaStreamOutputConfigurations(`value`: IResolvable) { + unwrap(this).setMediaStreamOutputConfigurations(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition for each media stream that is associated with the output. + */ + public open fun mediaStreamOutputConfigurations(`value`: List) { + unwrap(this).setMediaStreamOutputConfigurations(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The definition for each media stream that is associated with the output. + */ + public open fun mediaStreamOutputConfigurations(vararg `value`: Any): Unit = + mediaStreamOutputConfigurations(`value`.toList()) + /** * The minimum latency in milliseconds for SRT-based streams. */ @@ -211,6 +256,18 @@ public open class CfnFlowOutput( unwrap(this).setName(`value`) } + /** + * An indication of whether the output should transmit data or not. + */ + public open fun outputStatus(): String? = unwrap(this).getOutputStatus() + + /** + * An indication of whether the output should transmit data or not. + */ + public open fun outputStatus(`value`: String) { + unwrap(this).setOutputStatus(`value`) + } + /** * The port to use when MediaConnect distributes content to the output. */ @@ -391,6 +448,33 @@ public open class CfnFlowOutput( */ public fun maxLatency(maxLatency: Number) + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: IResolvable) + + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: List) + + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(vararg mediaStreamOutputConfigurations: Any) + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -414,6 +498,14 @@ public open class CfnFlowOutput( */ public fun name(name: String) + /** + * An indication of whether the output should transmit data or not. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-outputstatus) + * @param outputStatus An indication of whether the output should transmit data or not. + */ + public fun outputStatus(outputStatus: String) + /** * The port to use when MediaConnect distributes content to the output. * @@ -597,6 +689,38 @@ public open class CfnFlowOutput( cdkBuilder.maxLatency(maxLatency) } + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: IResolvable) { + cdkBuilder.mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: List) { + cdkBuilder.mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(vararg mediaStreamOutputConfigurations: Any): Unit + = mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.toList()) + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -624,6 +748,16 @@ public open class CfnFlowOutput( cdkBuilder.name(name) } + /** + * An indication of whether the output should transmit data or not. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-outputstatus) + * @param outputStatus An indication of whether the output should transmit data or not. + */ + override fun outputStatus(outputStatus: String) { + cdkBuilder.outputStatus(outputStatus) + } + /** * The port to use when MediaConnect distributes content to the output. * @@ -736,6 +870,330 @@ public open class CfnFlowOutput( software.amazon.awscdk.services.mediaconnect.CfnFlowOutput } + /** + * The definition of a media stream that is associated with the output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * DestinationConfigurationProperty destinationConfigurationProperty = + * DestinationConfigurationProperty.builder() + * .destinationIp("destinationIp") + * .destinationPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html) + */ + public interface DestinationConfigurationProperty { + /** + * The IP address where contents of the media stream will be sent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-destinationip) + */ + public fun destinationIp(): String + + /** + * The port to use when the content of the media stream is distributed to the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-destinationport) + */ + public fun destinationPort(): Number + + /** + * The VPC interface that is used for the media stream associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-interface) + */ + public fun interfaceValue(): Any + + /** + * A builder for [DestinationConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinationIp The IP address where contents of the media stream will be sent. + */ + public fun destinationIp(destinationIp: String) + + /** + * @param destinationPort The port to use when the content of the media stream is distributed + * to the output. + */ + public fun destinationPort(destinationPort: Number) + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + public fun interfaceValue(interfaceValue: IResolvable) + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + public fun interfaceValue(interfaceValue: InterfaceProperty) + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8ac0d67d5b865e74d398e5cc59bf54a1e5a69ed2a3166e6c5f7b051c54c959de") + public fun interfaceValue(interfaceValue: InterfaceProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty.builder() + + /** + * @param destinationIp The IP address where contents of the media stream will be sent. + */ + override fun destinationIp(destinationIp: String) { + cdkBuilder.destinationIp(destinationIp) + } + + /** + * @param destinationPort The port to use when the content of the media stream is distributed + * to the output. + */ + override fun destinationPort(destinationPort: Number) { + cdkBuilder.destinationPort(destinationPort) + } + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + override fun interfaceValue(interfaceValue: IResolvable) { + cdkBuilder.interfaceValue(interfaceValue.let(IResolvable.Companion::unwrap)) + } + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + override fun interfaceValue(interfaceValue: InterfaceProperty) { + cdkBuilder.interfaceValue(interfaceValue.let(InterfaceProperty.Companion::unwrap)) + } + + /** + * @param interfaceValue The VPC interface that is used for the media stream associated with + * the output. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8ac0d67d5b865e74d398e5cc59bf54a1e5a69ed2a3166e6c5f7b051c54c959de") + override fun interfaceValue(interfaceValue: InterfaceProperty.Builder.() -> Unit): Unit = + interfaceValue(InterfaceProperty(interfaceValue)) + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty, + ) : CdkObject(cdkObject), + DestinationConfigurationProperty { + /** + * The IP address where contents of the media stream will be sent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-destinationip) + */ + override fun destinationIp(): String = unwrap(this).getDestinationIp() + + /** + * The port to use when the content of the media stream is distributed to the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-destinationport) + */ + override fun destinationPort(): Number = unwrap(this).getDestinationPort() + + /** + * The VPC interface that is used for the media stream associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-destinationconfiguration.html#cfn-mediaconnect-flowoutput-destinationconfiguration-interface) + */ + override fun interfaceValue(): Any = unwrap(this).getInterfaceValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DestinationConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty): + DestinationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + DestinationConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DestinationConfigurationProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.DestinationConfigurationProperty + } + } + + /** + * A collection of parameters that determine how MediaConnect will convert the content. + * + * These fields only apply to outputs on flows that have a CDI source. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * EncodingParametersProperty encodingParametersProperty = EncodingParametersProperty.builder() + * .compressionFactor(123) + * // the properties below are optional + * .encoderProfile("encoderProfile") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html) + */ + public interface EncodingParametersProperty { + /** + * A value that is used to calculate compression for an output. + * + * The bitrate of the output is calculated as follows: + * + * Output bitrate = (1 / compressionFactor) * (source bitrate) + * + * This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow + * source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-compressionfactor) + */ + public fun compressionFactor(): Number + + /** + * A setting on the encoder that drives compression settings. + * + * This property only applies to video media streams associated with outputs that use the ST + * 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-encoderprofile) + */ + public fun encoderProfile(): String? = unwrap(this).getEncoderProfile() + + /** + * A builder for [EncodingParametersProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param compressionFactor A value that is used to calculate compression for an output. + * The bitrate of the output is calculated as follows: + * + * Output bitrate = (1 / compressionFactor) * (source bitrate) + * + * This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow + * source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. + */ + public fun compressionFactor(compressionFactor: Number) + + /** + * @param encoderProfile A setting on the encoder that drives compression settings. + * This property only applies to video media streams associated with outputs that use the ST + * 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. + */ + public fun encoderProfile(encoderProfile: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty.builder() + + /** + * @param compressionFactor A value that is used to calculate compression for an output. + * The bitrate of the output is calculated as follows: + * + * Output bitrate = (1 / compressionFactor) * (source bitrate) + * + * This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow + * source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. + */ + override fun compressionFactor(compressionFactor: Number) { + cdkBuilder.compressionFactor(compressionFactor) + } + + /** + * @param encoderProfile A setting on the encoder that drives compression settings. + * This property only applies to video media streams associated with outputs that use the ST + * 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. + */ + override fun encoderProfile(encoderProfile: String) { + cdkBuilder.encoderProfile(encoderProfile) + } + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty, + ) : CdkObject(cdkObject), + EncodingParametersProperty { + /** + * A value that is used to calculate compression for an output. + * + * The bitrate of the output is calculated as follows: + * + * Output bitrate = (1 / compressionFactor) * (source bitrate) + * + * This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow + * source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-compressionfactor) + */ + override fun compressionFactor(): Number = unwrap(this).getCompressionFactor() + + /** + * A setting on the encoder that drives compression settings. + * + * This property only applies to video media streams associated with outputs that use the ST + * 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-encoderprofile) + */ + override fun encoderProfile(): String? = unwrap(this).getEncoderProfile() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): EncodingParametersProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty): + EncodingParametersProperty = CdkObjectWrappers.wrap(cdkObject) as? + EncodingParametersProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EncodingParametersProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncodingParametersProperty + } + } + /** * Information about the encryption of the flow. * @@ -872,7 +1330,8 @@ public open class CfnFlowOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * The type of algorithm that is used for static key encryption (such as aes128, aes192, or * aes256). @@ -929,6 +1388,381 @@ public open class CfnFlowOutput( } } + /** + * The VPC interface that you want to use for the media stream associated with the output. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * InterfaceProperty interfaceProperty = InterfaceProperty.builder() + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html) + */ + public interface InterfaceProperty { + /** + * The name of the VPC interface that you want to use for the media stream associated with the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html#cfn-mediaconnect-flowoutput-interface-name) + */ + public fun name(): String + + /** + * A builder for [InterfaceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the VPC interface that you want to use for the media stream + * associated with the output. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty.Builder = + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty.builder() + + /** + * @param name The name of the VPC interface that you want to use for the media stream + * associated with the output. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty, + ) : CdkObject(cdkObject), + InterfaceProperty { + /** + * The name of the VPC interface that you want to use for the media stream associated with the + * output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html#cfn-mediaconnect-flowoutput-interface-name) + */ + override fun name(): String = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InterfaceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty): + InterfaceProperty = CdkObjectWrappers.wrap(cdkObject) as? InterfaceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InterfaceProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.InterfaceProperty + } + } + + /** + * The media stream that is associated with the output, and the parameters for that association. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediaconnect.*; + * MediaStreamOutputConfigurationProperty mediaStreamOutputConfigurationProperty = + * MediaStreamOutputConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .destinationConfigurations(List.of(DestinationConfigurationProperty.builder() + * .destinationIp("destinationIp") + * .destinationPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .encodingParameters(EncodingParametersProperty.builder() + * .compressionFactor(123) + * // the properties below are optional + * .encoderProfile("encoderProfile") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html) + */ + public interface MediaStreamOutputConfigurationProperty { + /** + * The media streams that you want to associate with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-destinationconfigurations) + */ + public fun destinationConfigurations(): Any? = unwrap(this).getDestinationConfigurations() + + /** + * The format that will be used to encode the data. + * + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video streams on sources or outputs that use the CDI protocol, set the encoding name to + * `raw` . + * + * For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the + * encoding name to `jxsv` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-encodingname) + */ + public fun encodingName(): String + + /** + * A collection of parameters that determine how MediaConnect will convert the content. + * + * These fields only apply to outputs on flows that have a CDI source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-encodingparameters) + */ + public fun encodingParameters(): Any? = unwrap(this).getEncodingParameters() + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-mediastreamname) + */ + public fun mediaStreamName(): String + + /** + * A builder for [MediaStreamOutputConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + public fun destinationConfigurations(destinationConfigurations: IResolvable) + + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + public fun destinationConfigurations(destinationConfigurations: List) + + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + public fun destinationConfigurations(vararg destinationConfigurations: Any) + + /** + * @param encodingName The format that will be used to encode the data. + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video streams on sources or outputs that use the CDI protocol, set the encoding name to + * `raw` . + * + * For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the + * encoding name to `jxsv` . + */ + public fun encodingName(encodingName: String) + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + public fun encodingParameters(encodingParameters: IResolvable) + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + public fun encodingParameters(encodingParameters: EncodingParametersProperty) + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5be553b5bdfe13ccfdb8262908165d3d4c5af4a5f2edc037dae8632d9b947726") + public + fun encodingParameters(encodingParameters: EncodingParametersProperty.Builder.() -> Unit) + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + public fun mediaStreamName(mediaStreamName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty.Builder + = + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty.builder() + + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + override fun destinationConfigurations(destinationConfigurations: IResolvable) { + cdkBuilder.destinationConfigurations(destinationConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + override fun destinationConfigurations(destinationConfigurations: List) { + cdkBuilder.destinationConfigurations(destinationConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param destinationConfigurations The media streams that you want to associate with the + * output. + */ + override fun destinationConfigurations(vararg destinationConfigurations: Any): Unit = + destinationConfigurations(destinationConfigurations.toList()) + + /** + * @param encodingName The format that will be used to encode the data. + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video streams on sources or outputs that use the CDI protocol, set the encoding name to + * `raw` . + * + * For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the + * encoding name to `jxsv` . + */ + override fun encodingName(encodingName: String) { + cdkBuilder.encodingName(encodingName) + } + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + override fun encodingParameters(encodingParameters: IResolvable) { + cdkBuilder.encodingParameters(encodingParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + override fun encodingParameters(encodingParameters: EncodingParametersProperty) { + cdkBuilder.encodingParameters(encodingParameters.let(EncodingParametersProperty.Companion::unwrap)) + } + + /** + * @param encodingParameters A collection of parameters that determine how MediaConnect will + * convert the content. + * These fields only apply to outputs on flows that have a CDI source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5be553b5bdfe13ccfdb8262908165d3d4c5af4a5f2edc037dae8632d9b947726") + override + fun encodingParameters(encodingParameters: EncodingParametersProperty.Builder.() -> Unit): + Unit = encodingParameters(EncodingParametersProperty(encodingParameters)) + + /** + * @param mediaStreamName A name that helps you distinguish one media stream from another. + */ + override fun mediaStreamName(mediaStreamName: String) { + cdkBuilder.mediaStreamName(mediaStreamName) + } + + public fun build(): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty, + ) : CdkObject(cdkObject), + MediaStreamOutputConfigurationProperty { + /** + * The media streams that you want to associate with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-destinationconfigurations) + */ + override fun destinationConfigurations(): Any? = unwrap(this).getDestinationConfigurations() + + /** + * The format that will be used to encode the data. + * + * For ancillary data streams, set the encoding name to `smpte291` . + * + * For audio streams, set the encoding name to `pcm` . + * + * For video streams on sources or outputs that use the CDI protocol, set the encoding name to + * `raw` . + * + * For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the + * encoding name to `jxsv` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-encodingname) + */ + override fun encodingName(): String = unwrap(this).getEncodingName() + + /** + * A collection of parameters that determine how MediaConnect will convert the content. + * + * These fields only apply to outputs on flows that have a CDI source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-encodingparameters) + */ + override fun encodingParameters(): Any? = unwrap(this).getEncodingParameters() + + /** + * A name that helps you distinguish one media stream from another. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-mediastreamoutputconfiguration.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfiguration-mediastreamname) + */ + override fun mediaStreamName(): String = unwrap(this).getMediaStreamName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + MediaStreamOutputConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty): + MediaStreamOutputConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + MediaStreamOutputConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaStreamOutputConfigurationProperty): + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty + } + } + /** * The VPC interface that you want to send your output to. * @@ -985,7 +1819,8 @@ public open class CfnFlowOutput( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutput.VpcInterfaceAttachmentProperty, - ) : CdkObject(cdkObject), VpcInterfaceAttachmentProperty { + ) : CdkObject(cdkObject), + VpcInterfaceAttachmentProperty { /** * The name of the VPC interface that you want to send your output to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutputProps.kt index 9fc4834e9d..37e704961e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowOutputProps.kt @@ -37,8 +37,26 @@ import kotlin.jvm.JvmName * .keyType("keyType") * .build()) * .maxLatency(123) + * .mediaStreamOutputConfigurations(List.of(MediaStreamOutputConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .destinationConfigurations(List.of(DestinationConfigurationProperty.builder() + * .destinationIp("destinationIp") + * .destinationPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .encodingParameters(EncodingParametersProperty.builder() + * .compressionFactor(123) + * // the properties below are optional + * .encoderProfile("encoderProfile") + * .build()) + * .build())) * .minLatency(123) * .name("name") + * .outputStatus("outputStatus") * .port(123) * .remoteId("remoteId") * .smoothingLatency(123) @@ -102,6 +120,14 @@ public interface CfnFlowOutputProps { */ public fun maxLatency(): Number? = unwrap(this).getMaxLatency() + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + */ + public fun mediaStreamOutputConfigurations(): Any? = + unwrap(this).getMediaStreamOutputConfigurations() + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -122,6 +148,13 @@ public interface CfnFlowOutputProps { */ public fun name(): String? = unwrap(this).getName() + /** + * An indication of whether the output should transmit data or not. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-outputstatus) + */ + public fun outputStatus(): String? = unwrap(this).getOutputStatus() + /** * The port to use when MediaConnect distributes content to the output. * @@ -229,6 +262,24 @@ public interface CfnFlowOutputProps { */ public fun maxLatency(maxLatency: Number) + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: IResolvable) + + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: List) + + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + public fun mediaStreamOutputConfigurations(vararg mediaStreamOutputConfigurations: Any) + /** * @param minLatency The minimum latency in milliseconds for SRT-based streams. * In streams that use the SRT protocol, this value that you set on your MediaConnect source or @@ -244,6 +295,11 @@ public interface CfnFlowOutputProps { */ public fun name(name: String) + /** + * @param outputStatus An indication of whether the output should transmit data or not. + */ + public fun outputStatus(outputStatus: String) + /** * @param port The port to use when MediaConnect distributes content to the output. */ @@ -368,6 +424,29 @@ public interface CfnFlowOutputProps { cdkBuilder.maxLatency(maxLatency) } + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: IResolvable) { + cdkBuilder.mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(mediaStreamOutputConfigurations: List) { + cdkBuilder.mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param mediaStreamOutputConfigurations The definition for each media stream that is + * associated with the output. + */ + override fun mediaStreamOutputConfigurations(vararg mediaStreamOutputConfigurations: Any): Unit + = mediaStreamOutputConfigurations(mediaStreamOutputConfigurations.toList()) + /** * @param minLatency The minimum latency in milliseconds for SRT-based streams. * In streams that use the SRT protocol, this value that you set on your MediaConnect source or @@ -387,6 +466,13 @@ public interface CfnFlowOutputProps { cdkBuilder.name(name) } + /** + * @param outputStatus An indication of whether the output should transmit data or not. + */ + override fun outputStatus(outputStatus: String) { + cdkBuilder.outputStatus(outputStatus) + } + /** * @param port The port to use when MediaConnect distributes content to the output. */ @@ -456,7 +542,8 @@ public interface CfnFlowOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowOutputProps, - ) : CdkObject(cdkObject), CfnFlowOutputProps { + ) : CdkObject(cdkObject), + CfnFlowOutputProps { /** * The range of IP addresses that are allowed to initiate output requests to this flow. * @@ -507,6 +594,14 @@ public interface CfnFlowOutputProps { */ override fun maxLatency(): Number? = unwrap(this).getMaxLatency() + /** + * The definition for each media stream that is associated with the output. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-mediastreamoutputconfigurations) + */ + override fun mediaStreamOutputConfigurations(): Any? = + unwrap(this).getMediaStreamOutputConfigurations() + /** * The minimum latency in milliseconds for SRT-based streams. * @@ -528,6 +623,13 @@ public interface CfnFlowOutputProps { */ override fun name(): String? = unwrap(this).getName() + /** + * An indication of whether the output should transmit data or not. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowoutput.html#cfn-mediaconnect-flowoutput-outputstatus) + */ + override fun outputStatus(): String? = unwrap(this).getOutputStatus() + /** * The port to use when MediaConnect distributes content to the output. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowProps.kt index a7192c81c4..b81eab7b69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowProps.kt @@ -9,6 +9,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.String import kotlin.Unit +import kotlin.collections.List import kotlin.jvm.JvmName /** @@ -48,6 +49,18 @@ import kotlin.jvm.JvmName * .ingestPort(123) * .maxBitrate(123) * .maxLatency(123) + * .maxSyncBuffer(123) + * .mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationProperty.builder() + * .encodingName("encodingName") + * .mediaStreamName("mediaStreamName") + * // the properties below are optional + * .inputConfigurations(List.of(InputConfigurationProperty.builder() + * .inputPort(123) + * .interface(InterfaceProperty.builder() + * .name("name") + * .build()) + * .build())) + * .build())) * .minLatency(123) * .name("name") * .protocol("protocol") @@ -63,6 +76,32 @@ import kotlin.jvm.JvmName * .build()) * // the properties below are optional * .availabilityZone("availabilityZone") + * .maintenance(MaintenanceProperty.builder() + * .maintenanceDay("maintenanceDay") + * .maintenanceStartHour("maintenanceStartHour") + * .build()) + * .mediaStreams(List.of(MediaStreamProperty.builder() + * .mediaStreamId(123) + * .mediaStreamName("mediaStreamName") + * .mediaStreamType("mediaStreamType") + * // the properties below are optional + * .attributes(MediaStreamAttributesProperty.builder() + * .fmtp(FmtpProperty.builder() + * .channelOrder("channelOrder") + * .colorimetry("colorimetry") + * .exactFramerate("exactFramerate") + * .par("par") + * .range("range") + * .scanMode("scanMode") + * .tcs("tcs") + * .build()) + * .lang("lang") + * .build()) + * .clockRate(123) + * .description("description") + * .fmt(123) + * .videoFormat("videoFormat") + * .build())) * .sourceFailoverConfig(FailoverConfigProperty.builder() * .failoverMode("failoverMode") * .recoveryWindow(123) @@ -71,6 +110,18 @@ import kotlin.jvm.JvmName * .build()) * .state("state") * .build()) + * .sourceMonitoringConfig(SourceMonitoringConfigProperty.builder() + * .thumbnailState("thumbnailState") + * .build()) + * .vpcInterfaces(List.of(VpcInterfaceProperty.builder() + * .name("name") + * .roleArn("roleArn") + * .securityGroupIds(List.of("securityGroupIds")) + * .subnetId("subnetId") + * // the properties below are optional + * .networkInterfaceIds(List.of("networkInterfaceIds")) + * .networkInterfaceType("networkInterfaceType") + * .build())) * .build(); * ``` * @@ -86,6 +137,22 @@ public interface CfnFlowProps { */ public fun availabilityZone(): String? = unwrap(this).getAvailabilityZone() + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + */ + public fun maintenance(): Any? = unwrap(this).getMaintenance() + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + */ + public fun mediaStreams(): Any? = unwrap(this).getMediaStreams() + /** * The name of the flow. * @@ -107,6 +174,20 @@ public interface CfnFlowProps { */ public fun sourceFailoverConfig(): Any? = unwrap(this).getSourceFailoverConfig() + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + */ + public fun sourceMonitoringConfig(): Any? = unwrap(this).getSourceMonitoringConfig() + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + */ + public fun vpcInterfaces(): Any? = unwrap(this).getVpcInterfaces() + /** * A builder for [CfnFlowProps] */ @@ -118,6 +199,41 @@ public interface CfnFlowProps { */ public fun availabilityZone(availabilityZone: String) + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + public fun maintenance(maintenance: IResolvable) + + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + public fun maintenance(maintenance: CfnFlow.MaintenanceProperty) + + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4e4bbeafe30f52752ffd112960ef751f1e82f13becb5a37f52d03e2ac614f06a") + public fun maintenance(maintenance: CfnFlow.MaintenanceProperty.Builder.() -> Unit) + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + public fun mediaStreams(mediaStreams: IResolvable) + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + public fun mediaStreams(mediaStreams: List) + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + public fun mediaStreams(vararg mediaStreams: Any) + /** * @param name The name of the flow. */ @@ -157,6 +273,40 @@ public interface CfnFlowProps { @JvmName("605e84d7038f36749ef82bb5d123ad174c0f22bf4883a1719e210e853f3c3adf") public fun sourceFailoverConfig(sourceFailoverConfig: CfnFlow.FailoverConfigProperty.Builder.() -> Unit) + + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + public fun sourceMonitoringConfig(sourceMonitoringConfig: IResolvable) + + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + public + fun sourceMonitoringConfig(sourceMonitoringConfig: CfnFlow.SourceMonitoringConfigProperty) + + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("68c4c1296e7f91814a8f598a234fb495d88be1ab9ff823b5e596c2fd2721052a") + public + fun sourceMonitoringConfig(sourceMonitoringConfig: CfnFlow.SourceMonitoringConfigProperty.Builder.() -> Unit) + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vpcInterfaces: IResolvable) + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vpcInterfaces: List) + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + public fun vpcInterfaces(vararg vpcInterfaces: Any) } private class BuilderImpl : Builder { @@ -171,6 +321,50 @@ public interface CfnFlowProps { cdkBuilder.availabilityZone(availabilityZone) } + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + override fun maintenance(maintenance: IResolvable) { + cdkBuilder.maintenance(maintenance.let(IResolvable.Companion::unwrap)) + } + + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + override fun maintenance(maintenance: CfnFlow.MaintenanceProperty) { + cdkBuilder.maintenance(maintenance.let(CfnFlow.MaintenanceProperty.Companion::unwrap)) + } + + /** + * @param maintenance The maintenance settings you want to use for the flow. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4e4bbeafe30f52752ffd112960ef751f1e82f13becb5a37f52d03e2ac614f06a") + override fun maintenance(maintenance: CfnFlow.MaintenanceProperty.Builder.() -> Unit): Unit = + maintenance(CfnFlow.MaintenanceProperty(maintenance)) + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + override fun mediaStreams(mediaStreams: IResolvable) { + cdkBuilder.mediaStreams(mediaStreams.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + override fun mediaStreams(mediaStreams: List) { + cdkBuilder.mediaStreams(mediaStreams.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param mediaStreams The media streams associated with the flow. + * You can associate any of these media streams with sources and outputs on the flow. + */ + override fun mediaStreams(vararg mediaStreams: Any): Unit = mediaStreams(mediaStreams.toList()) + /** * @param name The name of the flow. */ @@ -223,13 +417,59 @@ public interface CfnFlowProps { fun sourceFailoverConfig(sourceFailoverConfig: CfnFlow.FailoverConfigProperty.Builder.() -> Unit): Unit = sourceFailoverConfig(CfnFlow.FailoverConfigProperty(sourceFailoverConfig)) + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + override fun sourceMonitoringConfig(sourceMonitoringConfig: IResolvable) { + cdkBuilder.sourceMonitoringConfig(sourceMonitoringConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + override + fun sourceMonitoringConfig(sourceMonitoringConfig: CfnFlow.SourceMonitoringConfigProperty) { + cdkBuilder.sourceMonitoringConfig(sourceMonitoringConfig.let(CfnFlow.SourceMonitoringConfigProperty.Companion::unwrap)) + } + + /** + * @param sourceMonitoringConfig The settings for source monitoring. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("68c4c1296e7f91814a8f598a234fb495d88be1ab9ff823b5e596c2fd2721052a") + override + fun sourceMonitoringConfig(sourceMonitoringConfig: CfnFlow.SourceMonitoringConfigProperty.Builder.() -> Unit): + Unit = + sourceMonitoringConfig(CfnFlow.SourceMonitoringConfigProperty(sourceMonitoringConfig)) + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vpcInterfaces: IResolvable) { + cdkBuilder.vpcInterfaces(vpcInterfaces.let(IResolvable.Companion::unwrap)) + } + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vpcInterfaces: List) { + cdkBuilder.vpcInterfaces(vpcInterfaces.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param vpcInterfaces The VPC interfaces that you added to this flow. + */ + override fun vpcInterfaces(vararg vpcInterfaces: Any): Unit = + vpcInterfaces(vpcInterfaces.toList()) + public fun build(): software.amazon.awscdk.services.mediaconnect.CfnFlowProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowProps, - ) : CdkObject(cdkObject), CfnFlowProps { + ) : CdkObject(cdkObject), + CfnFlowProps { /** * The Availability Zone that you want to create the flow in. * @@ -239,6 +479,22 @@ public interface CfnFlowProps { */ override fun availabilityZone(): String? = unwrap(this).getAvailabilityZone() + /** + * The maintenance settings you want to use for the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-maintenance) + */ + override fun maintenance(): Any? = unwrap(this).getMaintenance() + + /** + * The media streams associated with the flow. + * + * You can associate any of these media streams with sources and outputs on the flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-mediastreams) + */ + override fun mediaStreams(): Any? = unwrap(this).getMediaStreams() + /** * The name of the flow. * @@ -259,6 +515,20 @@ public interface CfnFlowProps { * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcefailoverconfig) */ override fun sourceFailoverConfig(): Any? = unwrap(this).getSourceFailoverConfig() + + /** + * The settings for source monitoring. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-sourcemonitoringconfig) + */ + override fun sourceMonitoringConfig(): Any? = unwrap(this).getSourceMonitoringConfig() + + /** + * The VPC interfaces that you added to this flow. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flow.html#cfn-mediaconnect-flow-vpcinterfaces) + */ + override fun vpcInterfaces(): Any? = unwrap(this).getVpcInterfaces() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSource.kt index 805b4edb36..9265bd437a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSource.kt @@ -76,7 +76,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowSource( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -483,8 +484,6 @@ public open class CfnFlowSource( * * This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-maxlatency) * @param maxLatency The maximum latency in milliseconds. */ @@ -498,8 +497,6 @@ public open class CfnFlowSource( * set to the highest number between the sender’s minimum latency and the receiver’s minimum * latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-minlatency) * @param minLatency The minimum latency in milliseconds for SRT-based streams. */ @@ -735,8 +732,6 @@ public open class CfnFlowSource( * * This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-maxlatency) * @param maxLatency The maximum latency in milliseconds. */ @@ -752,8 +747,6 @@ public open class CfnFlowSource( * set to the highest number between the sender’s minimum latency and the receiver’s minimum * latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-minlatency) * @param minLatency The minimum latency in milliseconds for SRT-based streams. */ @@ -1162,7 +1155,8 @@ public open class CfnFlowSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowSource.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * The type of algorithm that is used for static key encryption (such as aes128, aes192, or * aes256). @@ -1382,7 +1376,8 @@ public open class CfnFlowSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowSource.GatewayBridgeSourceProperty, - ) : CdkObject(cdkObject), GatewayBridgeSourceProperty { + ) : CdkObject(cdkObject), + GatewayBridgeSourceProperty { /** * The ARN of the bridge feeding this flow. * @@ -1472,7 +1467,8 @@ public open class CfnFlowSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowSource.VpcInterfaceAttachmentProperty, - ) : CdkObject(cdkObject), VpcInterfaceAttachmentProperty { + ) : CdkObject(cdkObject), + VpcInterfaceAttachmentProperty { /** * The name of the VPC interface that you want to send your output to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSourceProps.kt index ceba71a84e..a08a3eab4a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowSourceProps.kt @@ -127,8 +127,6 @@ public interface CfnFlowSourceProps { * * This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-maxlatency) */ public fun maxLatency(): Number? = unwrap(this).getMaxLatency() @@ -140,8 +138,6 @@ public interface CfnFlowSourceProps { * output represents the minimal potential latency of that connection. The latency of the stream is * set to the highest number between the sender’s minimum latency and the receiver’s minimum latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-minlatency) */ public fun minLatency(): Number? = unwrap(this).getMinLatency() @@ -572,7 +568,8 @@ public interface CfnFlowSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowSourceProps, - ) : CdkObject(cdkObject), CfnFlowSourceProps { + ) : CdkObject(cdkObject), + CfnFlowSourceProps { /** * The type of encryption that is used on the content ingested from the source. * @@ -636,8 +633,6 @@ public interface CfnFlowSourceProps { * * This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-maxlatency) */ override fun maxLatency(): Number? = unwrap(this).getMaxLatency() @@ -650,8 +645,6 @@ public interface CfnFlowSourceProps { * set to the highest number between the sender’s minimum latency and the receiver’s minimum * latency. * - * Default: - 2000 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html#cfn-mediaconnect-flowsource-minlatency) */ override fun minLatency(): Number? = unwrap(this).getMinLatency() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterface.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterface.kt index e4b3374228..1131ef5050 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterface.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterface.kt @@ -30,6 +30,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * After CloudFormation has created the flow and the VPC interface, update the source to point to * the VPC interface that you created. * + * + * The previous steps must be undone before the CloudFormation stack can be deleted. Because the + * source is manually updated in step 3, CloudFormation is not aware of this change. The source must be + * returned to a standard source before CloudFormation stack deletion. + * + * * Example: * * ``` @@ -50,7 +56,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFlowVpcInterface( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowVpcInterface, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterfaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterfaceProps.kt index ae1fbb4170..bb6113c61d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterfaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnFlowVpcInterfaceProps.kt @@ -192,7 +192,8 @@ public interface CfnFlowVpcInterfaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnFlowVpcInterfaceProps, - ) : CdkObject(cdkObject), CfnFlowVpcInterfaceProps { + ) : CdkObject(cdkObject), + CfnFlowVpcInterfaceProps { /** * The Amazon Resource Name (ARN) of the flow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGateway.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGateway.kt index 6e18b84d0a..6b5f3358e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGateway.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGateway.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGateway( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnGateway, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -392,7 +393,8 @@ public open class CfnGateway( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnGateway.GatewayNetworkProperty, - ) : CdkObject(cdkObject), GatewayNetworkProperty { + ) : CdkObject(cdkObject), + GatewayNetworkProperty { /** * A unique IP address range to use for this network. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGatewayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGatewayProps.kt index 94d41f8194..6c22cd9b08 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGatewayProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconnect/CfnGatewayProps.kt @@ -159,7 +159,8 @@ public interface CfnGatewayProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconnect.CfnGatewayProps, - ) : CdkObject(cdkObject), CfnGatewayProps { + ) : CdkObject(cdkObject), + CfnGatewayProps { /** * The range of IP addresses that are allowed to contribute content or initiate output requests * for flows communicating with this gateway. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplate.kt index 9bc43c4d93..3951a73a97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplate.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnJobTemplate( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnJobTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -817,7 +819,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnJobTemplate.AccelerationSettingsProperty, - ) : CdkObject(cdkObject), AccelerationSettingsProperty { + ) : CdkObject(cdkObject), + AccelerationSettingsProperty { /** * Specify the conditions when the service will run your job with accelerated transcoding. * @@ -974,7 +977,8 @@ public open class CfnJobTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnJobTemplate.HopDestinationProperty, - ) : CdkObject(cdkObject), HopDestinationProperty { + ) : CdkObject(cdkObject), + HopDestinationProperty { /** * Optional. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplateProps.kt index 68bb741385..e4b5fa0332 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnJobTemplateProps.kt @@ -554,7 +554,8 @@ public interface CfnJobTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnJobTemplateProps, - ) : CdkObject(cdkObject), CfnJobTemplateProps { + ) : CdkObject(cdkObject), + CfnJobTemplateProps { /** * Accelerated transcoding can significantly speed up jobs with long, visually complex content. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPreset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPreset.kt index bb14f4a8f9..74fe9004e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPreset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPreset.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPreset( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnPreset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPresetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPresetProps.kt index 926d4bfd2b..2bc9634c17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPresetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnPresetProps.kt @@ -177,7 +177,8 @@ public interface CfnPresetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnPresetProps, - ) : CdkObject(cdkObject), CfnPresetProps { + ) : CdkObject(cdkObject), + CfnPresetProps { /** * The new category for the preset, if you are changing it. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueue.kt index ed55586935..a17bc45b3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueue.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueue( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnQueue, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.mediaconvert.CfnQueue(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueueProps.kt index a25eab337c..c859b7927f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediaconvert/CfnQueueProps.kt @@ -185,7 +185,8 @@ public interface CfnQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediaconvert.CfnQueueProps, - ) : CdkObject(cdkObject), CfnQueueProps { + ) : CdkObject(cdkObject), + CfnQueueProps { /** * Optional. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannel.kt index 9d097e5d3e..e3f22c86b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannel.kt @@ -35,7 +35,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.medialive.CfnChannel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1178,7 +1180,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AacSettingsProperty, - ) : CdkObject(cdkObject), AacSettingsProperty { + ) : CdkObject(cdkObject), + AacSettingsProperty { /** * The average bitrate in bits/second. * @@ -1503,7 +1506,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Ac3SettingsProperty, - ) : CdkObject(cdkObject), Ac3SettingsProperty { + ) : CdkObject(cdkObject), + Ac3SettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-ac3settings.html#cfn-medialive-channel-ac3settings-attenuationcontrol) */ @@ -1665,7 +1669,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AncillarySourceSettingsProperty, - ) : CdkObject(cdkObject), AncillarySourceSettingsProperty { + ) : CdkObject(cdkObject), + AncillarySourceSettingsProperty { /** * Specifies the number (1 to 4) of the captions channel you want to extract from the * ancillary captions. @@ -1785,7 +1790,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ArchiveCdnSettingsProperty, - ) : CdkObject(cdkObject), ArchiveCdnSettingsProperty { + ) : CdkObject(cdkObject), + ArchiveCdnSettingsProperty { /** * Sets up Amazon S3 as the destination for this Archive output. * @@ -2004,7 +2010,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ArchiveContainerSettingsProperty, - ) : CdkObject(cdkObject), ArchiveContainerSettingsProperty { + ) : CdkObject(cdkObject), + ArchiveContainerSettingsProperty { /** * The settings for the M2TS in the archive output. * @@ -2200,7 +2207,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ArchiveGroupSettingsProperty, - ) : CdkObject(cdkObject), ArchiveGroupSettingsProperty { + ) : CdkObject(cdkObject), + ArchiveGroupSettingsProperty { /** * Settings to configure the destination of an Archive output. * @@ -2439,7 +2447,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ArchiveOutputSettingsProperty, - ) : CdkObject(cdkObject), ArchiveOutputSettingsProperty { + ) : CdkObject(cdkObject), + ArchiveOutputSettingsProperty { /** * The settings that are specific to the container type of the file. * @@ -2544,7 +2553,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ArchiveS3SettingsProperty, - ) : CdkObject(cdkObject), ArchiveS3SettingsProperty { + ) : CdkObject(cdkObject), + ArchiveS3SettingsProperty { /** * Specify the canned ACL to apply to each S3 request. * @@ -2606,7 +2616,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AribDestinationSettingsProperty, - ) : CdkObject(cdkObject), AribDestinationSettingsProperty + ) : CdkObject(cdkObject), + AribDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): AribDestinationSettingsProperty { @@ -2658,7 +2669,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AribSourceSettingsProperty, - ) : CdkObject(cdkObject), AribSourceSettingsProperty + ) : CdkObject(cdkObject), + AribSourceSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): AribSourceSettingsProperty { @@ -2787,7 +2799,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioChannelMappingProperty, - ) : CdkObject(cdkObject), AudioChannelMappingProperty { + ) : CdkObject(cdkObject), + AudioChannelMappingProperty { /** * The indices and gain values for each input channel that should be remixed into this output * channel. @@ -3244,7 +3257,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioCodecSettingsProperty, - ) : CdkObject(cdkObject), AudioCodecSettingsProperty { + ) : CdkObject(cdkObject), + AudioCodecSettingsProperty { /** * The setup of the AAC audio codec in the output. * @@ -3884,7 +3898,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioDescriptionProperty, - ) : CdkObject(cdkObject), AudioDescriptionProperty { + ) : CdkObject(cdkObject), + AudioDescriptionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiodescription.html#cfn-medialive-channel-audiodescription-audiodashroles) */ @@ -4062,7 +4077,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioDolbyEDecodeProperty, - ) : CdkObject(cdkObject), AudioDolbyEDecodeProperty { + ) : CdkObject(cdkObject), + AudioDolbyEDecodeProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiodolbyedecode.html#cfn-medialive-channel-audiodolbyedecode-programselection) */ @@ -4167,7 +4183,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioHlsRenditionSelectionProperty, - ) : CdkObject(cdkObject), AudioHlsRenditionSelectionProperty { + ) : CdkObject(cdkObject), + AudioHlsRenditionSelectionProperty { /** * Specifies the GROUP-ID in the #EXT-X-MEDIA tag of the target HLS audio rendition. * @@ -4298,7 +4315,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioLanguageSelectionProperty, - ) : CdkObject(cdkObject), AudioLanguageSelectionProperty { + ) : CdkObject(cdkObject), + AudioLanguageSelectionProperty { /** * Selects a specific three-letter language code from within an audio source. * @@ -4459,7 +4477,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioNormalizationSettingsProperty, - ) : CdkObject(cdkObject), AudioNormalizationSettingsProperty { + ) : CdkObject(cdkObject), + AudioNormalizationSettingsProperty { /** * The audio normalization algorithm to use. * @@ -4722,7 +4741,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioOnlyHlsSettingsProperty, - ) : CdkObject(cdkObject), AudioOnlyHlsSettingsProperty { + ) : CdkObject(cdkObject), + AudioOnlyHlsSettingsProperty { /** * Specifies the group that the audio rendition belongs to. * @@ -4841,7 +4861,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioPidSelectionProperty, - ) : CdkObject(cdkObject), AudioPidSelectionProperty { + ) : CdkObject(cdkObject), + AudioPidSelectionProperty { /** * Select the audio by this PID. * @@ -4992,7 +5013,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioSelectorProperty, - ) : CdkObject(cdkObject), AudioSelectorProperty { + ) : CdkObject(cdkObject), + AudioSelectorProperty { /** * A name for this AudioSelector. * @@ -5277,7 +5299,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioSelectorSettingsProperty, - ) : CdkObject(cdkObject), AudioSelectorSettingsProperty { + ) : CdkObject(cdkObject), + AudioSelectorSettingsProperty { /** * Selector for HLS audio rendition. * @@ -5420,7 +5443,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioSilenceFailoverSettingsProperty, - ) : CdkObject(cdkObject), AudioSilenceFailoverSettingsProperty { + ) : CdkObject(cdkObject), + AudioSilenceFailoverSettingsProperty { /** * The name of the audio selector in the input that MediaLive should monitor to detect * silence. @@ -5518,7 +5542,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioTrackProperty, - ) : CdkObject(cdkObject), AudioTrackProperty { + ) : CdkObject(cdkObject), + AudioTrackProperty { /** * 1-based integer value that maps to a specific audio track. * @@ -5672,7 +5697,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioTrackSelectionProperty, - ) : CdkObject(cdkObject), AudioTrackSelectionProperty { + ) : CdkObject(cdkObject), + AudioTrackSelectionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiotrackselection.html#cfn-medialive-channel-audiotrackselection-dolbyedecode) */ @@ -5812,7 +5838,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AudioWatermarkSettingsProperty, - ) : CdkObject(cdkObject), AudioWatermarkSettingsProperty { + ) : CdkObject(cdkObject), + AudioWatermarkSettingsProperty { /** * Settings to configure Nielsen Watermarks in the audio encode. * @@ -6023,7 +6050,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AutomaticInputFailoverSettingsProperty, - ) : CdkObject(cdkObject), AutomaticInputFailoverSettingsProperty { + ) : CdkObject(cdkObject), + AutomaticInputFailoverSettingsProperty { /** * This clear time defines the requirement a recovered input must meet to be considered * healthy. @@ -6198,7 +6226,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AvailBlankingProperty, - ) : CdkObject(cdkObject), AvailBlankingProperty { + ) : CdkObject(cdkObject), + AvailBlankingProperty { /** * The blanking image to be used. * @@ -6267,6 +6296,7 @@ public open class CfnChannel( * .webDeliveryAllowedFlag("webDeliveryAllowedFlag") * .build()) * .build()) + * .scte35SegmentationScope("scte35SegmentationScope") * .build(); * ``` * @@ -6280,6 +6310,11 @@ public open class CfnChannel( */ public fun availSettings(): Any? = unwrap(this).getAvailSettings() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availconfiguration.html#cfn-medialive-channel-availconfiguration-scte35segmentationscope) + */ + public fun scte35SegmentationScope(): String? = unwrap(this).getScte35SegmentationScope() + /** * A builder for [AvailConfigurationProperty] */ @@ -6301,6 +6336,11 @@ public open class CfnChannel( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("240d5e0606d729c84794d102fb2ba988f76c879c4aaef20e19080d639b518ac5") public fun availSettings(availSettings: AvailSettingsProperty.Builder.() -> Unit) + + /** + * @param scte35SegmentationScope the value to be set. + */ + public fun scte35SegmentationScope(scte35SegmentationScope: String) } private class BuilderImpl : Builder { @@ -6330,6 +6370,13 @@ public open class CfnChannel( override fun availSettings(availSettings: AvailSettingsProperty.Builder.() -> Unit): Unit = availSettings(AvailSettingsProperty(availSettings)) + /** + * @param scte35SegmentationScope the value to be set. + */ + override fun scte35SegmentationScope(scte35SegmentationScope: String) { + cdkBuilder.scte35SegmentationScope(scte35SegmentationScope) + } + public fun build(): software.amazon.awscdk.services.medialive.CfnChannel.AvailConfigurationProperty = cdkBuilder.build() @@ -6337,13 +6384,19 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AvailConfigurationProperty, - ) : CdkObject(cdkObject), AvailConfigurationProperty { + ) : CdkObject(cdkObject), + AvailConfigurationProperty { /** * The setup of ad avail handling in the output. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availconfiguration.html#cfn-medialive-channel-availconfiguration-availsettings) */ override fun availSettings(): Any? = unwrap(this).getAvailSettings() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availconfiguration.html#cfn-medialive-channel-availconfiguration-scte35segmentationscope) + */ + override fun scte35SegmentationScope(): String? = unwrap(this).getScte35SegmentationScope() } public companion object { @@ -6556,7 +6609,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.AvailSettingsProperty, - ) : CdkObject(cdkObject), AvailSettingsProperty { + ) : CdkObject(cdkObject), + AvailSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availsettings.html#cfn-medialive-channel-availsettings-esam) */ @@ -6838,7 +6892,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.BlackoutSlateProperty, - ) : CdkObject(cdkObject), BlackoutSlateProperty { + ) : CdkObject(cdkObject), + BlackoutSlateProperty { /** * The blackout slate image to be used. * @@ -7478,7 +7533,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.BurnInDestinationSettingsProperty, - ) : CdkObject(cdkObject), BurnInDestinationSettingsProperty { + ) : CdkObject(cdkObject), + BurnInDestinationSettingsProperty { /** * If no explicit xPosition or yPosition is provided, setting alignment to centered places the * captions at the bottom center of the output. @@ -8001,7 +8057,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionDescriptionProperty, - ) : CdkObject(cdkObject), CaptionDescriptionProperty { + ) : CdkObject(cdkObject), + CaptionDescriptionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-captiondescription.html#cfn-medialive-channel-captiondescription-accessibility) */ @@ -8912,7 +8969,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionDestinationSettingsProperty, - ) : CdkObject(cdkObject), CaptionDestinationSettingsProperty { + ) : CdkObject(cdkObject), + CaptionDestinationSettingsProperty { /** * The configuration of one ARIB captions encode in the output. * @@ -9136,7 +9194,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionLanguageMappingProperty, - ) : CdkObject(cdkObject), CaptionLanguageMappingProperty { + ) : CdkObject(cdkObject), + CaptionLanguageMappingProperty { /** * The closed caption channel being described by this CaptionLanguageMapping. * @@ -9377,7 +9436,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionRectangleProperty, - ) : CdkObject(cdkObject), CaptionRectangleProperty { + ) : CdkObject(cdkObject), + CaptionRectangleProperty { /** * See the description in leftOffset. * @@ -9621,7 +9681,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionSelectorProperty, - ) : CdkObject(cdkObject), CaptionSelectorProperty { + ) : CdkObject(cdkObject), + CaptionSelectorProperty { /** * When specified, this field indicates the three-letter language code of the captions track * to extract from the source. @@ -10108,7 +10169,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CaptionSelectorSettingsProperty, - ) : CdkObject(cdkObject), CaptionSelectorSettingsProperty { + ) : CdkObject(cdkObject), + CaptionSelectorSettingsProperty { /** * Information about the ancillary captions to extract from the input. * @@ -10238,7 +10300,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CdiInputSpecificationProperty, - ) : CdkObject(cdkObject), CdiInputSpecificationProperty { + ) : CdkObject(cdkObject), + CdiInputSpecificationProperty { /** * Maximum CDI input resolution. * @@ -10436,7 +10499,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CmafIngestGroupSettingsProperty, - ) : CdkObject(cdkObject), CmafIngestGroupSettingsProperty { + ) : CdkObject(cdkObject), + CmafIngestGroupSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-cmafingestgroupsettings.html#cfn-medialive-channel-cmafingestgroupsettings-destination) */ @@ -10538,7 +10602,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.CmafIngestOutputSettingsProperty, - ) : CdkObject(cdkObject), CmafIngestOutputSettingsProperty { + ) : CdkObject(cdkObject), + CmafIngestOutputSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-cmafingestoutputsettings.html#cfn-medialive-channel-cmafingestoutputsettings-namemodifier) */ @@ -10649,7 +10714,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ColorCorrectionProperty, - ) : CdkObject(cdkObject), ColorCorrectionProperty { + ) : CdkObject(cdkObject), + ColorCorrectionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrection.html#cfn-medialive-channel-colorcorrection-inputcolorspace) */ @@ -10763,7 +10829,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ColorCorrectionSettingsProperty, - ) : CdkObject(cdkObject), ColorCorrectionSettingsProperty { + ) : CdkObject(cdkObject), + ColorCorrectionSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrectionsettings.html#cfn-medialive-channel-colorcorrectionsettings-globalcolorcorrections) */ @@ -10821,7 +10888,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ColorSpacePassthroughSettingsProperty, - ) : CdkObject(cdkObject), ColorSpacePassthroughSettingsProperty + ) : CdkObject(cdkObject), + ColorSpacePassthroughSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -10875,7 +10943,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DolbyVision81SettingsProperty, - ) : CdkObject(cdkObject), DolbyVision81SettingsProperty + ) : CdkObject(cdkObject), + DolbyVision81SettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): DolbyVision81SettingsProperty { @@ -11000,7 +11069,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DvbNitSettingsProperty, - ) : CdkObject(cdkObject), DvbNitSettingsProperty { + ) : CdkObject(cdkObject), + DvbNitSettingsProperty { /** * The numeric value placed in the Network Information Table (NIT). * @@ -11191,7 +11261,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DvbSdtSettingsProperty, - ) : CdkObject(cdkObject), DvbSdtSettingsProperty { + ) : CdkObject(cdkObject), + DvbSdtSettingsProperty { /** * Selects a method of inserting SDT information into an output stream. * @@ -11840,7 +11911,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DvbSubDestinationSettingsProperty, - ) : CdkObject(cdkObject), DvbSubDestinationSettingsProperty { + ) : CdkObject(cdkObject), + DvbSubDestinationSettingsProperty { /** * If no explicit xPosition or yPosition is provided, setting the alignment to centered places * the captions at the bottom center of the output. @@ -12137,7 +12209,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DvbSubSourceSettingsProperty, - ) : CdkObject(cdkObject), DvbSubSourceSettingsProperty { + ) : CdkObject(cdkObject), + DvbSubSourceSettingsProperty { /** * If you will configure a WebVTT caption description that references this caption selector, * use this field to provide the language to consider when translating the image-based source to @@ -12234,7 +12307,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.DvbTdtSettingsProperty, - ) : CdkObject(cdkObject), DvbTdtSettingsProperty { + ) : CdkObject(cdkObject), + DvbTdtSettingsProperty { /** * The number of milliseconds between instances of this table in the output transport stream. * @@ -12419,7 +12493,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Eac3AtmosSettingsProperty, - ) : CdkObject(cdkObject), Eac3AtmosSettingsProperty { + ) : CdkObject(cdkObject), + Eac3AtmosSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-eac3atmossettings.html#cfn-medialive-channel-eac3atmossettings-bitrate) */ @@ -12994,7 +13069,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Eac3SettingsProperty, - ) : CdkObject(cdkObject), Eac3SettingsProperty { + ) : CdkObject(cdkObject), + Eac3SettingsProperty { /** * When set to attenuate3Db, applies a 3 dB attenuation to the surround channels. * @@ -13378,7 +13454,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EbuTtDDestinationSettingsProperty, - ) : CdkObject(cdkObject), EbuTtDDestinationSettingsProperty { + ) : CdkObject(cdkObject), + EbuTtDDestinationSettingsProperty { /** * Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. * @@ -13484,7 +13561,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EmbeddedDestinationSettingsProperty, - ) : CdkObject(cdkObject), EmbeddedDestinationSettingsProperty + ) : CdkObject(cdkObject), + EmbeddedDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -13538,7 +13616,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EmbeddedPlusScte20DestinationSettingsProperty, - ) : CdkObject(cdkObject), EmbeddedPlusScte20DestinationSettingsProperty + ) : CdkObject(cdkObject), + EmbeddedPlusScte20DestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -13693,7 +13772,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EmbeddedSourceSettingsProperty, - ) : CdkObject(cdkObject), EmbeddedSourceSettingsProperty { + ) : CdkObject(cdkObject), + EmbeddedSourceSettingsProperty { /** * If this is upconvert, 608 data is both passed through the "608 compatibility bytes" fields * of the 708 wrapper as well as translated into 708. @@ -14432,7 +14512,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EncoderSettingsProperty, - ) : CdkObject(cdkObject), EncoderSettingsProperty { + ) : CdkObject(cdkObject), + EncoderSettingsProperty { /** * The encoding information for output audio. * @@ -14617,7 +14698,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EpochLockingSettingsProperty, - ) : CdkObject(cdkObject), EpochLockingSettingsProperty { + ) : CdkObject(cdkObject), + EpochLockingSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-epochlockingsettings.html#cfn-medialive-channel-epochlockingsettings-customepoch) */ @@ -14786,7 +14868,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.EsamProperty, - ) : CdkObject(cdkObject), EsamProperty { + ) : CdkObject(cdkObject), + EsamProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-esam.html#cfn-medialive-channel-esam-acquisitionpointid) */ @@ -14935,7 +15018,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FailoverConditionProperty, - ) : CdkObject(cdkObject), FailoverConditionProperty { + ) : CdkObject(cdkObject), + FailoverConditionProperty { /** * Settings for a specific failover condition. * @@ -15176,7 +15260,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FailoverConditionSettingsProperty, - ) : CdkObject(cdkObject), FailoverConditionSettingsProperty { + ) : CdkObject(cdkObject), + FailoverConditionSettingsProperty { /** * MediaLive will perform a failover if the specified audio selector is silent for the * specified period. @@ -15309,7 +15394,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FeatureActivationsProperty, - ) : CdkObject(cdkObject), FeatureActivationsProperty { + ) : CdkObject(cdkObject), + FeatureActivationsProperty { /** * Enables the Input Prepare feature. * @@ -15466,7 +15552,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FecOutputSettingsProperty, - ) : CdkObject(cdkObject), FecOutputSettingsProperty { + ) : CdkObject(cdkObject), + FecOutputSettingsProperty { /** * The parameter D from SMPTE 2022-1. * @@ -15623,7 +15710,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Fmp4HlsSettingsProperty, - ) : CdkObject(cdkObject), Fmp4HlsSettingsProperty { + ) : CdkObject(cdkObject), + Fmp4HlsSettingsProperty { /** * List all the audio groups that are used with the video output stream. * @@ -15762,7 +15850,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureCdnSettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureCdnSettingsProperty { + ) : CdkObject(cdkObject), + FrameCaptureCdnSettingsProperty { /** * Sets up Amazon S3 as the destination for this Frame Capture output. * @@ -15979,7 +16068,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureGroupSettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureGroupSettingsProperty { + ) : CdkObject(cdkObject), + FrameCaptureGroupSettingsProperty { /** * The destination for the frame capture files. * @@ -16054,7 +16144,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureHlsSettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureHlsSettingsProperty + ) : CdkObject(cdkObject), + FrameCaptureHlsSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): FrameCaptureHlsSettingsProperty { @@ -16136,7 +16227,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureOutputSettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureOutputSettingsProperty { + ) : CdkObject(cdkObject), + FrameCaptureOutputSettingsProperty { /** * Required if the output group contains more than one output. * @@ -16228,7 +16320,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureS3SettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureS3SettingsProperty { + ) : CdkObject(cdkObject), + FrameCaptureS3SettingsProperty { /** * Specify the canned ACL to apply to each S3 request. * @@ -16392,7 +16485,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.FrameCaptureSettingsProperty, - ) : CdkObject(cdkObject), FrameCaptureSettingsProperty { + ) : CdkObject(cdkObject), + FrameCaptureSettingsProperty { /** * The frequency, in seconds, for capturing frames for inclusion in the output. * @@ -16721,7 +16815,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.GlobalConfigurationProperty, - ) : CdkObject(cdkObject), GlobalConfigurationProperty { + ) : CdkObject(cdkObject), + GlobalConfigurationProperty { /** * The value to set the initial audio gain for the channel. * @@ -16994,7 +17089,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H264ColorSpaceSettingsProperty, - ) : CdkObject(cdkObject), H264ColorSpaceSettingsProperty { + ) : CdkObject(cdkObject), + H264ColorSpaceSettingsProperty { /** * Passthrough applies no color space conversion to the output. * @@ -17124,7 +17220,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H264FilterSettingsProperty, - ) : CdkObject(cdkObject), H264FilterSettingsProperty { + ) : CdkObject(cdkObject), + H264FilterSettingsProperty { /** * Settings for applying the temporal filter to the video. * @@ -18352,7 +18449,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H264SettingsProperty, - ) : CdkObject(cdkObject), H264SettingsProperty { + ) : CdkObject(cdkObject), + H264SettingsProperty { /** * The adaptive quantization. * @@ -19041,7 +19139,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H265ColorSpaceSettingsProperty, - ) : CdkObject(cdkObject), H265ColorSpaceSettingsProperty { + ) : CdkObject(cdkObject), + H265ColorSpaceSettingsProperty { /** * Passthrough applies no color space conversion to the output. * @@ -19183,7 +19282,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H265FilterSettingsProperty, - ) : CdkObject(cdkObject), H265FilterSettingsProperty { + ) : CdkObject(cdkObject), + H265FilterSettingsProperty { /** * Settings for applying the temporal filter to the video. * @@ -20214,7 +20314,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.H265SettingsProperty, - ) : CdkObject(cdkObject), H265SettingsProperty { + ) : CdkObject(cdkObject), + H265SettingsProperty { /** * Adaptive quantization. * @@ -20617,7 +20718,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Hdr10SettingsProperty, - ) : CdkObject(cdkObject), Hdr10SettingsProperty { + ) : CdkObject(cdkObject), + Hdr10SettingsProperty { /** * Maximum Content Light Level An integer metadata value defining the maximum light level, in * nits, of any single pixel within an encoded HDR video stream or file. @@ -20848,7 +20950,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsAkamaiSettingsProperty, - ) : CdkObject(cdkObject), HlsAkamaiSettingsProperty { + ) : CdkObject(cdkObject), + HlsAkamaiSettingsProperty { /** * The number of seconds to wait before retrying a connection to the CDN if the connection is * lost. @@ -21053,7 +21156,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsBasicPutSettingsProperty, - ) : CdkObject(cdkObject), HlsBasicPutSettingsProperty { + ) : CdkObject(cdkObject), + HlsBasicPutSettingsProperty { /** * The number of seconds to wait before retrying a connection to the CDN if the connection is * lost. @@ -21417,7 +21521,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsCdnSettingsProperty, - ) : CdkObject(cdkObject), HlsCdnSettingsProperty { + ) : CdkObject(cdkObject), + HlsCdnSettingsProperty { /** * Sets up Akamai as the downstream system for the HLS output group. * @@ -22858,7 +22963,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsGroupSettingsProperty, - ) : CdkObject(cdkObject), HlsGroupSettingsProperty { + ) : CdkObject(cdkObject), + HlsGroupSettingsProperty { /** * Chooses one or more ad marker types to pass SCTE35 signals through to this group of Apple * HLS outputs. @@ -23463,7 +23569,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsInputSettingsProperty, - ) : CdkObject(cdkObject), HlsInputSettingsProperty { + ) : CdkObject(cdkObject), + HlsInputSettingsProperty { /** * When specified, the HLS stream with the m3u8 bandwidth that most closely matches this value * is chosen. @@ -23682,7 +23789,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsMediaStoreSettingsProperty, - ) : CdkObject(cdkObject), HlsMediaStoreSettingsProperty { + ) : CdkObject(cdkObject), + HlsMediaStoreSettingsProperty { /** * The number of seconds to wait before retrying a connection to the CDN if the connection is * lost. @@ -23940,7 +24048,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsOutputSettingsProperty, - ) : CdkObject(cdkObject), HlsOutputSettingsProperty { + ) : CdkObject(cdkObject), + HlsOutputSettingsProperty { /** * Only applicable when this output is referencing an H.265 video description. Specifies * whether MP4 segments should be packaged as HEV1 or HVC1. @@ -24052,7 +24161,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsS3SettingsProperty, - ) : CdkObject(cdkObject), HlsS3SettingsProperty { + ) : CdkObject(cdkObject), + HlsS3SettingsProperty { /** * Specify the canned ACL to apply to each S3 request. * @@ -24353,7 +24463,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsSettingsProperty, - ) : CdkObject(cdkObject), HlsSettingsProperty { + ) : CdkObject(cdkObject), + HlsSettingsProperty { /** * The settings for an audio-only output. * @@ -24548,7 +24659,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HlsWebdavSettingsProperty, - ) : CdkObject(cdkObject), HlsWebdavSettingsProperty { + ) : CdkObject(cdkObject), + HlsWebdavSettingsProperty { /** * The number of seconds to wait before retrying a connection to the CDN if the connection is * lost. @@ -24639,7 +24751,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.HtmlMotionGraphicsSettingsProperty, - ) : CdkObject(cdkObject), HtmlMotionGraphicsSettingsProperty + ) : CdkObject(cdkObject), + HtmlMotionGraphicsSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -24969,7 +25082,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputAttachmentProperty, - ) : CdkObject(cdkObject), InputAttachmentProperty { + ) : CdkObject(cdkObject), + InputAttachmentProperty { /** * Settings to implement automatic input failover in this input. * @@ -25101,7 +25215,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputChannelLevelProperty, - ) : CdkObject(cdkObject), InputChannelLevelProperty { + ) : CdkObject(cdkObject), + InputChannelLevelProperty { /** * The remixing value. * @@ -25249,7 +25364,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputLocationProperty, - ) : CdkObject(cdkObject), InputLocationProperty { + ) : CdkObject(cdkObject), + InputLocationProperty { /** * The password parameter that holds the password for accessing the downstream system. * @@ -25501,7 +25617,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputLossBehaviorProperty, - ) : CdkObject(cdkObject), InputLossBehaviorProperty { + ) : CdkObject(cdkObject), + InputLossBehaviorProperty { /** * On input loss, the number of milliseconds to substitute black into the output before * switching to the frame specified by inputLossImageType. @@ -25633,7 +25750,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputLossFailoverSettingsProperty, - ) : CdkObject(cdkObject), InputLossFailoverSettingsProperty { + ) : CdkObject(cdkObject), + InputLossFailoverSettingsProperty { /** * The amount of time (in milliseconds) that no input is detected. * @@ -26140,7 +26258,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputSettingsProperty, - ) : CdkObject(cdkObject), InputSettingsProperty { + ) : CdkObject(cdkObject), + InputSettingsProperty { /** * Information about the specific audio to extract from the input. * @@ -26347,7 +26466,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.InputSpecificationProperty, - ) : CdkObject(cdkObject), InputSpecificationProperty { + ) : CdkObject(cdkObject), + InputSpecificationProperty { /** * The codec to include in the input specification for this channel. * @@ -26479,7 +26599,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.KeyProviderSettingsProperty, - ) : CdkObject(cdkObject), KeyProviderSettingsProperty { + ) : CdkObject(cdkObject), + KeyProviderSettingsProperty { /** * The configuration of static key settings. * @@ -27893,7 +28014,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.M2tsSettingsProperty, - ) : CdkObject(cdkObject), M2tsSettingsProperty { + ) : CdkObject(cdkObject), + M2tsSettingsProperty { /** * When set to drop, the output audio streams are removed from the program if the selected * input audio stream is removed from the input. @@ -28834,7 +28956,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.M3u8SettingsProperty, - ) : CdkObject(cdkObject), M3u8SettingsProperty { + ) : CdkObject(cdkObject), + M3u8SettingsProperty { /** * The number of audio frames to insert for each PES packet. * @@ -29090,7 +29213,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MaintenanceCreateSettingsProperty, - ) : CdkObject(cdkObject), MaintenanceCreateSettingsProperty { + ) : CdkObject(cdkObject), + MaintenanceCreateSettingsProperty { /** * Choose one day of the week for maintenance. * @@ -29217,7 +29341,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MaintenanceUpdateSettingsProperty, - ) : CdkObject(cdkObject), MaintenanceUpdateSettingsProperty { + ) : CdkObject(cdkObject), + MaintenanceUpdateSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-maintenanceupdatesettings.html#cfn-medialive-channel-maintenanceupdatesettings-maintenanceday) */ @@ -29340,7 +29465,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MediaPackageGroupSettingsProperty, - ) : CdkObject(cdkObject), MediaPackageGroupSettingsProperty { + ) : CdkObject(cdkObject), + MediaPackageGroupSettingsProperty { /** * The MediaPackage channel destination. * @@ -29438,7 +29564,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MediaPackageOutputDestinationSettingsProperty, - ) : CdkObject(cdkObject), MediaPackageOutputDestinationSettingsProperty { + ) : CdkObject(cdkObject), + MediaPackageOutputDestinationSettingsProperty { /** * The ID of the channel in MediaPackage that is the destination for this output group. * @@ -29503,7 +29630,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MediaPackageOutputSettingsProperty, - ) : CdkObject(cdkObject), MediaPackageOutputSettingsProperty + ) : CdkObject(cdkObject), + MediaPackageOutputSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -29641,7 +29769,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MotionGraphicsConfigurationProperty, - ) : CdkObject(cdkObject), MotionGraphicsConfigurationProperty { + ) : CdkObject(cdkObject), + MotionGraphicsConfigurationProperty { /** * Enables or disables the motion graphics overlay feature in the channel. * @@ -29772,7 +29901,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MotionGraphicsSettingsProperty, - ) : CdkObject(cdkObject), MotionGraphicsSettingsProperty { + ) : CdkObject(cdkObject), + MotionGraphicsSettingsProperty { /** * Settings to configure the motion graphics overlay to use an HTML asset. * @@ -29898,7 +30028,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Mp2SettingsProperty, - ) : CdkObject(cdkObject), Mp2SettingsProperty { + ) : CdkObject(cdkObject), + Mp2SettingsProperty { /** * The average bitrate in bits/second. * @@ -30029,7 +30160,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Mpeg2FilterSettingsProperty, - ) : CdkObject(cdkObject), Mpeg2FilterSettingsProperty { + ) : CdkObject(cdkObject), + Mpeg2FilterSettingsProperty { /** * Settings for applying the temporal filter to the video. * @@ -30693,7 +30825,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Mpeg2SettingsProperty, - ) : CdkObject(cdkObject), Mpeg2SettingsProperty { + ) : CdkObject(cdkObject), + Mpeg2SettingsProperty { /** * Choose Off to disable adaptive quantization. * @@ -31425,7 +31558,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MsSmoothGroupSettingsProperty, - ) : CdkObject(cdkObject), MsSmoothGroupSettingsProperty { + ) : CdkObject(cdkObject), + MsSmoothGroupSettingsProperty { /** * The value of the Acquisition Point Identity element that is used in each message placed in * the sparse track. @@ -31697,7 +31831,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MsSmoothOutputSettingsProperty, - ) : CdkObject(cdkObject), MsSmoothOutputSettingsProperty { + ) : CdkObject(cdkObject), + MsSmoothOutputSettingsProperty { /** * Only applicable when this output is referencing an H.265 video description. Specifies * whether MP4 segments should be packaged as HEV1 or HVC1. @@ -31767,7 +31902,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MultiplexGroupSettingsProperty, - ) : CdkObject(cdkObject), MultiplexGroupSettingsProperty + ) : CdkObject(cdkObject), + MultiplexGroupSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): MultiplexGroupSettingsProperty { @@ -31874,7 +32010,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MultiplexOutputSettingsProperty, - ) : CdkObject(cdkObject), MultiplexOutputSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexOutputSettingsProperty { /** * Destination is a Multiplex. * @@ -31992,7 +32129,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.MultiplexProgramChannelDestinationSettingsProperty, - ) : CdkObject(cdkObject), MultiplexProgramChannelDestinationSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexProgramChannelDestinationSettingsProperty { /** * The ID of the Multiplex that the encoder is providing output to. * @@ -32155,7 +32293,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.NetworkInputSettingsProperty, - ) : CdkObject(cdkObject), NetworkInputSettingsProperty { + ) : CdkObject(cdkObject), + NetworkInputSettingsProperty { /** * Information about how to connect to the upstream system. * @@ -32292,7 +32431,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.NielsenCBETProperty, - ) : CdkObject(cdkObject), NielsenCBETProperty { + ) : CdkObject(cdkObject), + NielsenCBETProperty { /** * Enter the CBET check digits to use in the watermark. * @@ -32412,7 +32552,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.NielsenConfigurationProperty, - ) : CdkObject(cdkObject), NielsenConfigurationProperty { + ) : CdkObject(cdkObject), + NielsenConfigurationProperty { /** * Enter the Distributor ID assigned to your organization by Nielsen. * @@ -32541,7 +32682,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.NielsenNaesIiNwProperty, - ) : CdkObject(cdkObject), NielsenNaesIiNwProperty { + ) : CdkObject(cdkObject), + NielsenNaesIiNwProperty { /** * Enter the check digit string for the watermark. * @@ -32758,7 +32900,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.NielsenWatermarksSettingsProperty, - ) : CdkObject(cdkObject), NielsenWatermarksSettingsProperty { + ) : CdkObject(cdkObject), + NielsenWatermarksSettingsProperty { /** * Complete these fields only if you want to insert watermarks of type Nielsen CBET. * @@ -33013,7 +33156,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputDestinationProperty, - ) : CdkObject(cdkObject), OutputDestinationProperty { + ) : CdkObject(cdkObject), + OutputDestinationProperty { /** * The ID for this destination. * @@ -33195,7 +33339,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputDestinationSettingsProperty, - ) : CdkObject(cdkObject), OutputDestinationSettingsProperty { + ) : CdkObject(cdkObject), + OutputDestinationSettingsProperty { /** * The password parameter that holds the password for accessing the downstream system. * @@ -33792,7 +33937,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputGroupProperty, - ) : CdkObject(cdkObject), OutputGroupProperty { + ) : CdkObject(cdkObject), + OutputGroupProperty { /** * A custom output group name that you can optionally define. * @@ -34480,7 +34626,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputGroupSettingsProperty, - ) : CdkObject(cdkObject), OutputGroupSettingsProperty { + ) : CdkObject(cdkObject), + OutputGroupSettingsProperty { /** * The configuration of an archive output group. * @@ -34620,7 +34767,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputLocationRefProperty, - ) : CdkObject(cdkObject), OutputLocationRefProperty { + ) : CdkObject(cdkObject), + OutputLocationRefProperty { /** * A reference ID for this destination. * @@ -34750,7 +34898,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputLockingSettingsProperty, - ) : CdkObject(cdkObject), OutputLockingSettingsProperty { + ) : CdkObject(cdkObject), + OutputLockingSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputlockingsettings.html#cfn-medialive-channel-outputlockingsettings-epochlockingsettings) */ @@ -35190,7 +35339,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputProperty, - ) : CdkObject(cdkObject), OutputProperty { + ) : CdkObject(cdkObject), + OutputProperty { /** * The names of the audio descriptions that are used as audio sources for this output. * @@ -35974,7 +36124,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.OutputSettingsProperty, - ) : CdkObject(cdkObject), OutputSettingsProperty { + ) : CdkObject(cdkObject), + OutputSettingsProperty { /** * The settings for an archive output. * @@ -36097,7 +36248,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.PassThroughSettingsProperty, - ) : CdkObject(cdkObject), PassThroughSettingsProperty + ) : CdkObject(cdkObject), + PassThroughSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): PassThroughSettingsProperty { @@ -36147,7 +36299,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.RawSettingsProperty, - ) : CdkObject(cdkObject), RawSettingsProperty + ) : CdkObject(cdkObject), + RawSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): RawSettingsProperty { @@ -36198,7 +36351,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Rec601SettingsProperty, - ) : CdkObject(cdkObject), Rec601SettingsProperty + ) : CdkObject(cdkObject), + Rec601SettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): Rec601SettingsProperty { @@ -36249,7 +36403,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Rec709SettingsProperty, - ) : CdkObject(cdkObject), Rec709SettingsProperty + ) : CdkObject(cdkObject), + Rec709SettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): Rec709SettingsProperty { @@ -36403,7 +36558,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.RemixSettingsProperty, - ) : CdkObject(cdkObject), RemixSettingsProperty { + ) : CdkObject(cdkObject), + RemixSettingsProperty { /** * A mapping of input channels to output channels, with appropriate gain adjustments. * @@ -36479,7 +36635,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.RtmpCaptionInfoDestinationSettingsProperty, - ) : CdkObject(cdkObject), RtmpCaptionInfoDestinationSettingsProperty + ) : CdkObject(cdkObject), + RtmpCaptionInfoDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -36759,7 +36916,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.RtmpGroupSettingsProperty, - ) : CdkObject(cdkObject), RtmpGroupSettingsProperty { + ) : CdkObject(cdkObject), + RtmpGroupSettingsProperty { /** * Choose the ad marker type for this output group. * @@ -37013,7 +37171,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.RtmpOutputSettingsProperty, - ) : CdkObject(cdkObject), RtmpOutputSettingsProperty { + ) : CdkObject(cdkObject), + RtmpOutputSettingsProperty { /** * If set to verifyAuthenticity, verifies the TLS certificate chain to a trusted certificate * authority (CA). @@ -37098,7 +37257,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte20PlusEmbeddedDestinationSettingsProperty, - ) : CdkObject(cdkObject), Scte20PlusEmbeddedDestinationSettingsProperty + ) : CdkObject(cdkObject), + Scte20PlusEmbeddedDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -37206,7 +37366,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte20SourceSettingsProperty, - ) : CdkObject(cdkObject), Scte20SourceSettingsProperty { + ) : CdkObject(cdkObject), + Scte20SourceSettingsProperty { /** * If upconvert, 608 data is both passed through the "608 compatibility bytes" fields of the * 708 wrapper as well as translated into 708. @@ -37276,7 +37437,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte27DestinationSettingsProperty, - ) : CdkObject(cdkObject), Scte27DestinationSettingsProperty + ) : CdkObject(cdkObject), + Scte27DestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -37396,7 +37558,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte27SourceSettingsProperty, - ) : CdkObject(cdkObject), Scte27SourceSettingsProperty { + ) : CdkObject(cdkObject), + Scte27SourceSettingsProperty { /** * If you will configure a WebVTT caption description that references this caption selector, * use this field to provide the language to consider when translating the image-based source to @@ -37546,7 +37709,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte35SpliceInsertProperty, - ) : CdkObject(cdkObject), Scte35SpliceInsertProperty { + ) : CdkObject(cdkObject), + Scte35SpliceInsertProperty { /** * When specified, this offset (in milliseconds) is added to the input ad avail PTS time. * @@ -37701,7 +37865,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.Scte35TimeSignalAposProperty, - ) : CdkObject(cdkObject), Scte35TimeSignalAposProperty { + ) : CdkObject(cdkObject), + Scte35TimeSignalAposProperty { /** * When specified, this offset (in milliseconds) is added to the input ad avail PTS time. * @@ -37779,7 +37944,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.SmpteTtDestinationSettingsProperty, - ) : CdkObject(cdkObject), SmpteTtDestinationSettingsProperty + ) : CdkObject(cdkObject), + SmpteTtDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -37932,7 +38098,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.StandardHlsSettingsProperty, - ) : CdkObject(cdkObject), StandardHlsSettingsProperty { + ) : CdkObject(cdkObject), + StandardHlsSettingsProperty { /** * Lists all the audio groups that are used with the video output stream. * @@ -38076,7 +38243,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.StaticKeySettingsProperty, - ) : CdkObject(cdkObject), StaticKeySettingsProperty { + ) : CdkObject(cdkObject), + StaticKeySettingsProperty { /** * The URL of the license server that is used for protecting content. * @@ -38143,7 +38311,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TeletextDestinationSettingsProperty, - ) : CdkObject(cdkObject), TeletextDestinationSettingsProperty + ) : CdkObject(cdkObject), + TeletextDestinationSettingsProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): @@ -38290,7 +38459,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TeletextSourceSettingsProperty, - ) : CdkObject(cdkObject), TeletextSourceSettingsProperty { + ) : CdkObject(cdkObject), + TeletextSourceSettingsProperty { /** * Settings to configure the caption rectangle for an output captions that will be created * using this Teletext source captions. @@ -38425,7 +38595,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TemporalFilterSettingsProperty, - ) : CdkObject(cdkObject), TemporalFilterSettingsProperty { + ) : CdkObject(cdkObject), + TemporalFilterSettingsProperty { /** * If you enable this filter, the results are the following: - If the source content is noisy * (it contains excessive digital artifacts), the filter cleans up the source. @@ -38518,7 +38689,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.ThumbnailConfigurationProperty, - ) : CdkObject(cdkObject), ThumbnailConfigurationProperty { + ) : CdkObject(cdkObject), + ThumbnailConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-thumbnailconfiguration.html#cfn-medialive-channel-thumbnailconfiguration-state) */ @@ -38631,7 +38803,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TimecodeBurninSettingsProperty, - ) : CdkObject(cdkObject), TimecodeBurninSettingsProperty { + ) : CdkObject(cdkObject), + TimecodeBurninSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-timecodeburninsettings.html#cfn-medialive-channel-timecodeburninsettings-fontsize) */ @@ -38766,7 +38939,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TimecodeConfigProperty, - ) : CdkObject(cdkObject), TimecodeConfigProperty { + ) : CdkObject(cdkObject), + TimecodeConfigProperty { /** * Identifies the source for the timecode that will be associated with the channel outputs. * @@ -38870,7 +39044,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.TtmlDestinationSettingsProperty, - ) : CdkObject(cdkObject), TtmlDestinationSettingsProperty { + ) : CdkObject(cdkObject), + TtmlDestinationSettingsProperty { /** * When set to passthrough, passes through style and position information from a TTML-like * input source (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output. @@ -39043,7 +39218,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.UdpContainerSettingsProperty, - ) : CdkObject(cdkObject), UdpContainerSettingsProperty { + ) : CdkObject(cdkObject), + UdpContainerSettingsProperty { /** * The M2TS configuration for this UDP output. * @@ -39185,7 +39361,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.UdpGroupSettingsProperty, - ) : CdkObject(cdkObject), UdpGroupSettingsProperty { + ) : CdkObject(cdkObject), + UdpGroupSettingsProperty { /** * Specifies the behavior of the last resort when the input video is lost, and no more backup * inputs are available. @@ -39532,7 +39709,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.UdpOutputSettingsProperty, - ) : CdkObject(cdkObject), UdpOutputSettingsProperty { + ) : CdkObject(cdkObject), + UdpOutputSettingsProperty { /** * The UDP output buffering in milliseconds. * @@ -39693,7 +39871,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoBlackFailoverSettingsProperty, - ) : CdkObject(cdkObject), VideoBlackFailoverSettingsProperty { + ) : CdkObject(cdkObject), + VideoBlackFailoverSettingsProperty { /** * A value used in calculating the threshold below which MediaLive considers a pixel to be * 'black'. @@ -40110,7 +40289,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoCodecSettingsProperty, - ) : CdkObject(cdkObject), VideoCodecSettingsProperty { + ) : CdkObject(cdkObject), + VideoCodecSettingsProperty { /** * The settings for the video codec in a frame capture output. * @@ -40574,7 +40754,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoDescriptionProperty, - ) : CdkObject(cdkObject), VideoDescriptionProperty { + ) : CdkObject(cdkObject), + VideoDescriptionProperty { /** * The video codec settings. * @@ -40756,7 +40937,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoSelectorColorSpaceSettingsProperty, - ) : CdkObject(cdkObject), VideoSelectorColorSpaceSettingsProperty { + ) : CdkObject(cdkObject), + VideoSelectorColorSpaceSettingsProperty { /** * Settings to configure color space settings in the incoming video. * @@ -40840,7 +41022,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoSelectorPidProperty, - ) : CdkObject(cdkObject), VideoSelectorPidProperty { + ) : CdkObject(cdkObject), + VideoSelectorPidProperty { /** * Selects a specific PID from within a video source. * @@ -40932,7 +41115,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoSelectorProgramIdProperty, - ) : CdkObject(cdkObject), VideoSelectorProgramIdProperty { + ) : CdkObject(cdkObject), + VideoSelectorProgramIdProperty { /** * Selects a specific program from within a multi-program transport stream. * @@ -41174,7 +41358,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoSelectorProperty, - ) : CdkObject(cdkObject), VideoSelectorProperty { + ) : CdkObject(cdkObject), + VideoSelectorProperty { /** * Specifies the color space of an input. * @@ -41370,7 +41555,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VideoSelectorSettingsProperty, - ) : CdkObject(cdkObject), VideoSelectorSettingsProperty { + ) : CdkObject(cdkObject), + VideoSelectorSettingsProperty { /** * Used to extract video by PID. * @@ -41561,7 +41747,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.VpcOutputSettingsProperty, - ) : CdkObject(cdkObject), VpcOutputSettingsProperty { + ) : CdkObject(cdkObject), + VpcOutputSettingsProperty { /** * List of public address allocation IDs to associate with ENIs that will be created in Output * VPC. @@ -41711,7 +41898,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.WavSettingsProperty, - ) : CdkObject(cdkObject), WavSettingsProperty { + ) : CdkObject(cdkObject), + WavSettingsProperty { /** * Bits per sample. * @@ -41824,7 +42012,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannel.WebvttDestinationSettingsProperty, - ) : CdkObject(cdkObject), WebvttDestinationSettingsProperty { + ) : CdkObject(cdkObject), + WebvttDestinationSettingsProperty { /** * Controls whether the color and position of the source captions is passed through to the * WebVTT output captions. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroup.kt new file mode 100644 index 0000000000..3f4f93d1cf --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroup.kt @@ -0,0 +1,303 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::ChannelPlacementGroup Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnChannelPlacementGroup cfnChannelPlacementGroup = CfnChannelPlacementGroup.Builder.create(this, + * "MyCfnChannelPlacementGroup") + * .clusterId("clusterId") + * .name("name") + * .nodes(List.of("nodes")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html) + */ +public open class CfnChannelPlacementGroup( + cdkObject: software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnChannelPlacementGroupProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnChannelPlacementGroupProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnChannelPlacementGroupProps.Builder.() -> Unit, + ) : this(scope, id, CfnChannelPlacementGroupProps(props) + ) + + /** + * The ARN of the channel placement group. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * List of channel IDs added to the channel placement group. + */ + public open fun attrChannels(): List = unwrap(this).getAttrChannels() + + /** + * Unique internal identifier. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The current state of the ChannelPlacementGroupState. + */ + public open fun attrState(): String = unwrap(this).getAttrState() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The ID of the cluster the node is on. + */ + public open fun clusterId(): String? = unwrap(this).getClusterId() + + /** + * The ID of the cluster the node is on. + */ + public open fun clusterId(`value`: String) { + unwrap(this).setClusterId(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the channel placement group. + */ + public open fun name(): String? = unwrap(this).getName() + + /** + * The name of the channel placement group. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * List of nodes added to the channel placement group. + */ + public open fun nodes(): List = unwrap(this).getNodes() ?: emptyList() + + /** + * List of nodes added to the channel placement group. + */ + public open fun nodes(`value`: List) { + unwrap(this).setNodes(`value`) + } + + /** + * List of nodes added to the channel placement group. + */ + public open fun nodes(vararg `value`: String): Unit = nodes(`value`.toList()) + + /** + * A collection of key-value pairs. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A collection of key-value pairs. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnChannelPlacementGroup]. + */ + @CdkDslMarker + public interface Builder { + /** + * The ID of the cluster the node is on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-clusterid) + * @param clusterId The ID of the cluster the node is on. + */ + public fun clusterId(clusterId: String) + + /** + * The name of the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-name) + * @param name The name of the channel placement group. + */ + public fun name(name: String) + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + * @param nodes List of nodes added to the channel placement group. + */ + public fun nodes(nodes: List) + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + * @param nodes List of nodes added to the channel placement group. + */ + public fun nodes(vararg nodes: String) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup.Builder = + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup.Builder.create(scope, id) + + /** + * The ID of the cluster the node is on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-clusterid) + * @param clusterId The ID of the cluster the node is on. + */ + override fun clusterId(clusterId: String) { + cdkBuilder.clusterId(clusterId) + } + + /** + * The name of the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-name) + * @param name The name of the channel placement group. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + * @param nodes List of nodes added to the channel placement group. + */ + override fun nodes(nodes: List) { + cdkBuilder.nodes(nodes) + } + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + * @param nodes List of nodes added to the channel placement group. + */ + override fun nodes(vararg nodes: String): Unit = nodes(nodes.toList()) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnChannelPlacementGroup { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnChannelPlacementGroup(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup): + CfnChannelPlacementGroup = CfnChannelPlacementGroup(cdkObject) + + internal fun unwrap(wrapped: CfnChannelPlacementGroup): + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup = wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroup + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroupProps.kt new file mode 100644 index 0000000000..abf97a832a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelPlacementGroupProps.kt @@ -0,0 +1,197 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnChannelPlacementGroup`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnChannelPlacementGroupProps cfnChannelPlacementGroupProps = + * CfnChannelPlacementGroupProps.builder() + * .clusterId("clusterId") + * .name("name") + * .nodes(List.of("nodes")) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html) + */ +public interface CfnChannelPlacementGroupProps { + /** + * The ID of the cluster the node is on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-clusterid) + */ + public fun clusterId(): String? = unwrap(this).getClusterId() + + /** + * The name of the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + */ + public fun nodes(): List = unwrap(this).getNodes() ?: emptyList() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnChannelPlacementGroupProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param clusterId The ID of the cluster the node is on. + */ + public fun clusterId(clusterId: String) + + /** + * @param name The name of the channel placement group. + */ + public fun name(name: String) + + /** + * @param nodes List of nodes added to the channel placement group. + */ + public fun nodes(nodes: List) + + /** + * @param nodes List of nodes added to the channel placement group. + */ + public fun nodes(vararg nodes: String) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps.Builder = + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps.builder() + + /** + * @param clusterId The ID of the cluster the node is on. + */ + override fun clusterId(clusterId: String) { + cdkBuilder.clusterId(clusterId) + } + + /** + * @param name The name of the channel placement group. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param nodes List of nodes added to the channel placement group. + */ + override fun nodes(nodes: List) { + cdkBuilder.nodes(nodes) + } + + /** + * @param nodes List of nodes added to the channel placement group. + */ + override fun nodes(vararg nodes: String): Unit = nodes(nodes.toList()) + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps, + ) : CdkObject(cdkObject), + CfnChannelPlacementGroupProps { + /** + * The ID of the cluster the node is on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-clusterid) + */ + override fun clusterId(): String? = unwrap(this).getClusterId() + + /** + * The name of the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * List of nodes added to the channel placement group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-nodes) + */ + override fun nodes(): List = unwrap(this).getNodes() ?: emptyList() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channelplacementgroup.html#cfn-medialive-channelplacementgroup-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnChannelPlacementGroupProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps): + CfnChannelPlacementGroupProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnChannelPlacementGroupProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnChannelPlacementGroupProps): + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnChannelPlacementGroupProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelProps.kt index 66627328ca..cfae321d31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnChannelProps.kt @@ -515,7 +515,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * Specification of CDI inputs for this channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplate.kt new file mode 100644 index 0000000000..23423c91c7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplate.kt @@ -0,0 +1,591 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::CloudWatchAlarmTemplate Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnCloudWatchAlarmTemplate cfnCloudWatchAlarmTemplate = + * CfnCloudWatchAlarmTemplate.Builder.create(this, "MyCfnCloudWatchAlarmTemplate") + * .comparisonOperator("comparisonOperator") + * .evaluationPeriods(123) + * .groupIdentifier("groupIdentifier") + * .metricName("metricName") + * .name("name") + * .period(123) + * .statistic("statistic") + * .targetResourceType("targetResourceType") + * .threshold(123) + * .treatMissingData("treatMissingData") + * // the properties below are optional + * .datapointsToAlarm(123) + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html) + */ +public open class CfnCloudWatchAlarmTemplate( + cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnCloudWatchAlarmTemplateProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnCloudWatchAlarmTemplateProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnCloudWatchAlarmTemplateProps.Builder.() -> Unit, + ) : this(scope, id, CfnCloudWatchAlarmTemplateProps(props) + ) + + /** + * A cloudwatch alarm template's ARN (Amazon Resource Name). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time of resource creation. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * A CloudWatch alarm template group's id. + * + * Amazon Web Services provided template groups have ids that start with ``aws-`` + */ + public open fun attrGroupId(): String = unwrap(this).getAttrGroupId() + + /** + * A cloudwatch alarm template's id. + * + * Amazon Web Services provided templates have ids that start with ``aws-``. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * + */ + public open fun attrIdentifier(): String = unwrap(this).getAttrIdentifier() + + /** + * The date and time of latest resource modification. + */ + public open fun attrModifiedAt(): String = unwrap(this).getAttrModifiedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The comparison operator used to compare the specified statistic and the threshold. + */ + public open fun comparisonOperator(): String = unwrap(this).getComparisonOperator() + + /** + * The comparison operator used to compare the specified statistic and the threshold. + */ + public open fun comparisonOperator(`value`: String) { + unwrap(this).setComparisonOperator(`value`) + } + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + */ + public open fun datapointsToAlarm(): Number? = unwrap(this).getDatapointsToAlarm() + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + */ + public open fun datapointsToAlarm(`value`: Number) { + unwrap(this).setDatapointsToAlarm(`value`) + } + + /** + * A resource's optional description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's optional description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The number of periods over which data is compared to the specified threshold. + */ + public open fun evaluationPeriods(): Number = unwrap(this).getEvaluationPeriods() + + /** + * The number of periods over which data is compared to the specified threshold. + */ + public open fun evaluationPeriods(`value`: Number) { + unwrap(this).setEvaluationPeriods(`value`) + } + + /** + * A cloudwatch alarm template group's identifier. + */ + public open fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * A cloudwatch alarm template group's identifier. + */ + public open fun groupIdentifier(`value`: String) { + unwrap(this).setGroupIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the metric associated with the alarm. + */ + public open fun metricName(): String = unwrap(this).getMetricName() + + /** + * The name of the metric associated with the alarm. + */ + public open fun metricName(`value`: String) { + unwrap(this).setMetricName(`value`) + } + + /** + * A resource's name. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A resource's name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The period, in seconds, over which the specified statistic is applied. + */ + public open fun period(): Number = unwrap(this).getPeriod() + + /** + * The period, in seconds, over which the specified statistic is applied. + */ + public open fun period(`value`: Number) { + unwrap(this).setPeriod(`value`) + } + + /** + * The statistic to apply to the alarm's metric data. + */ + public open fun statistic(): String = unwrap(this).getStatistic() + + /** + * The statistic to apply to the alarm's metric data. + */ + public open fun statistic(`value`: String) { + unwrap(this).setStatistic(`value`) + } + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + */ + public open fun targetResourceType(): String = unwrap(this).getTargetResourceType() + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + */ + public open fun targetResourceType(`value`: String) { + unwrap(this).setTargetResourceType(`value`) + } + + /** + * The threshold value to compare with the specified statistic. + */ + public open fun threshold(): Number = unwrap(this).getThreshold() + + /** + * The threshold value to compare with the specified statistic. + */ + public open fun threshold(`value`: Number) { + unwrap(this).setThreshold(`value`) + } + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + */ + public open fun treatMissingData(): String = unwrap(this).getTreatMissingData() + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + */ + public open fun treatMissingData(`value`: String) { + unwrap(this).setTreatMissingData(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnCloudWatchAlarmTemplate]. + */ + @CdkDslMarker + public interface Builder { + /** + * The comparison operator used to compare the specified statistic and the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-comparisonoperator) + * @param comparisonOperator The comparison operator used to compare the specified statistic and + * the threshold. + */ + public fun comparisonOperator(comparisonOperator: String) + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-datapointstoalarm) + * @param datapointsToAlarm The number of datapoints within the evaluation period that must be + * breaching to trigger the alarm. + */ + public fun datapointsToAlarm(datapointsToAlarm: Number) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-description) + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * The number of periods over which data is compared to the specified threshold. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-evaluationperiods) + * @param evaluationPeriods The number of periods over which data is compared to the specified + * threshold. + */ + public fun evaluationPeriods(evaluationPeriods: Number) + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-groupidentifier) + * @param groupIdentifier A cloudwatch alarm template group's identifier. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * The name of the metric associated with the alarm. + * + * Must be compatible with targetResourceType. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-metricname) + * @param metricName The name of the metric associated with the alarm. + */ + public fun metricName(metricName: String) + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-name) + * @param name A resource's name. + */ + public fun name(name: String) + + /** + * The period, in seconds, over which the specified statistic is applied. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-period) + * @param period The period, in seconds, over which the specified statistic is applied. + */ + public fun period(period: Number) + + /** + * The statistic to apply to the alarm's metric data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-statistic) + * @param statistic The statistic to apply to the alarm's metric data. + */ + public fun statistic(statistic: String) + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-tags) + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-targetresourcetype) + * @param targetResourceType The resource type this template should dynamically generate + * CloudWatch metric alarms for. + */ + public fun targetResourceType(targetResourceType: String) + + /** + * The threshold value to compare with the specified statistic. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-threshold) + * @param threshold The threshold value to compare with the specified statistic. + */ + public fun threshold(threshold: Number) + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-treatmissingdata) + * @param treatMissingData Specifies how missing data points are treated when evaluating the + * alarm's condition. + */ + public fun treatMissingData(treatMissingData: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate.Builder = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate.Builder.create(scope, + id) + + /** + * The comparison operator used to compare the specified statistic and the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-comparisonoperator) + * @param comparisonOperator The comparison operator used to compare the specified statistic and + * the threshold. + */ + override fun comparisonOperator(comparisonOperator: String) { + cdkBuilder.comparisonOperator(comparisonOperator) + } + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-datapointstoalarm) + * @param datapointsToAlarm The number of datapoints within the evaluation period that must be + * breaching to trigger the alarm. + */ + override fun datapointsToAlarm(datapointsToAlarm: Number) { + cdkBuilder.datapointsToAlarm(datapointsToAlarm) + } + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-description) + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The number of periods over which data is compared to the specified threshold. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-evaluationperiods) + * @param evaluationPeriods The number of periods over which data is compared to the specified + * threshold. + */ + override fun evaluationPeriods(evaluationPeriods: Number) { + cdkBuilder.evaluationPeriods(evaluationPeriods) + } + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-groupidentifier) + * @param groupIdentifier A cloudwatch alarm template group's identifier. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * The name of the metric associated with the alarm. + * + * Must be compatible with targetResourceType. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-metricname) + * @param metricName The name of the metric associated with the alarm. + */ + override fun metricName(metricName: String) { + cdkBuilder.metricName(metricName) + } + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-name) + * @param name A resource's name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The period, in seconds, over which the specified statistic is applied. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-period) + * @param period The period, in seconds, over which the specified statistic is applied. + */ + override fun period(period: Number) { + cdkBuilder.period(period) + } + + /** + * The statistic to apply to the alarm's metric data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-statistic) + * @param statistic The statistic to apply to the alarm's metric data. + */ + override fun statistic(statistic: String) { + cdkBuilder.statistic(statistic) + } + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-tags) + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-targetresourcetype) + * @param targetResourceType The resource type this template should dynamically generate + * CloudWatch metric alarms for. + */ + override fun targetResourceType(targetResourceType: String) { + cdkBuilder.targetResourceType(targetResourceType) + } + + /** + * The threshold value to compare with the specified statistic. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-threshold) + * @param threshold The threshold value to compare with the specified statistic. + */ + override fun threshold(threshold: Number) { + cdkBuilder.threshold(threshold) + } + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-treatmissingdata) + * @param treatMissingData Specifies how missing data points are treated when evaluating the + * alarm's condition. + */ + override fun treatMissingData(treatMissingData: String) { + cdkBuilder.treatMissingData(treatMissingData) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnCloudWatchAlarmTemplate { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnCloudWatchAlarmTemplate(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate): + CfnCloudWatchAlarmTemplate = CfnCloudWatchAlarmTemplate(cdkObject) + + internal fun unwrap(wrapped: CfnCloudWatchAlarmTemplate): + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate = wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplate + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroup.kt new file mode 100644 index 0000000000..3e980e8008 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroup.kt @@ -0,0 +1,237 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::CloudWatchAlarmTemplateGroup Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnCloudWatchAlarmTemplateGroup cfnCloudWatchAlarmTemplateGroup = + * CfnCloudWatchAlarmTemplateGroup.Builder.create(this, "MyCfnCloudWatchAlarmTemplateGroup") + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html) + */ +public open class CfnCloudWatchAlarmTemplateGroup( + cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnCloudWatchAlarmTemplateGroupProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnCloudWatchAlarmTemplateGroupProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnCloudWatchAlarmTemplateGroupProps.Builder.() -> Unit, + ) : this(scope, id, CfnCloudWatchAlarmTemplateGroupProps(props) + ) + + /** + * A cloudwatch alarm template group's ARN (Amazon Resource Name). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time of resource creation. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * A CloudWatch alarm template group's id. + * + * Amazon Web Services provided template groups have ids that start with ``aws-`` + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * + */ + public open fun attrIdentifier(): String = unwrap(this).getAttrIdentifier() + + /** + * The date and time of latest resource modification. + */ + public open fun attrModifiedAt(): String = unwrap(this).getAttrModifiedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A resource's optional description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's optional description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A resource's name. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A resource's name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup]. + */ + @CdkDslMarker + public interface Builder { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-description) + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-name) + * @param name A resource's name. + */ + public fun name(name: String) + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-tags) + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup.Builder = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup.Builder.create(scope, + id) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-description) + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-name) + * @param name A resource's name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-tags) + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnCloudWatchAlarmTemplateGroup { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnCloudWatchAlarmTemplateGroup(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup): + CfnCloudWatchAlarmTemplateGroup = CfnCloudWatchAlarmTemplateGroup(cdkObject) + + internal fun unwrap(wrapped: CfnCloudWatchAlarmTemplateGroup): + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup = + wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroup + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroupProps.kt new file mode 100644 index 0000000000..8b761500d1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateGroupProps.kt @@ -0,0 +1,156 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnCloudWatchAlarmTemplateGroup`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnCloudWatchAlarmTemplateGroupProps cfnCloudWatchAlarmTemplateGroupProps = + * CfnCloudWatchAlarmTemplateGroupProps.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html) + */ +public interface CfnCloudWatchAlarmTemplateGroupProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-name) + */ + public fun name(): String + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnCloudWatchAlarmTemplateGroupProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + public fun name(name: String) + + /** + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps.Builder = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps.builder() + + /** + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps, + ) : CdkObject(cdkObject), + CfnCloudWatchAlarmTemplateGroupProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplategroup.html#cfn-medialive-cloudwatchalarmtemplategroup-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + CfnCloudWatchAlarmTemplateGroupProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps): + CfnCloudWatchAlarmTemplateGroupProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnCloudWatchAlarmTemplateGroupProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnCloudWatchAlarmTemplateGroupProps): + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateGroupProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateProps.kt new file mode 100644 index 0000000000..22840d4e69 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCloudWatchAlarmTemplateProps.kt @@ -0,0 +1,465 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnCloudWatchAlarmTemplate`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnCloudWatchAlarmTemplateProps cfnCloudWatchAlarmTemplateProps = + * CfnCloudWatchAlarmTemplateProps.builder() + * .comparisonOperator("comparisonOperator") + * .evaluationPeriods(123) + * .groupIdentifier("groupIdentifier") + * .metricName("metricName") + * .name("name") + * .period(123) + * .statistic("statistic") + * .targetResourceType("targetResourceType") + * .threshold(123) + * .treatMissingData("treatMissingData") + * // the properties below are optional + * .datapointsToAlarm(123) + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html) + */ +public interface CfnCloudWatchAlarmTemplateProps { + /** + * The comparison operator used to compare the specified statistic and the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-comparisonoperator) + */ + public fun comparisonOperator(): String + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-datapointstoalarm) + */ + public fun datapointsToAlarm(): Number? = unwrap(this).getDatapointsToAlarm() + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The number of periods over which data is compared to the specified threshold. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-evaluationperiods) + */ + public fun evaluationPeriods(): Number + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-groupidentifier) + */ + public fun groupIdentifier(): String + + /** + * The name of the metric associated with the alarm. + * + * Must be compatible with targetResourceType. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-metricname) + */ + public fun metricName(): String + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-name) + */ + public fun name(): String + + /** + * The period, in seconds, over which the specified statistic is applied. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-period) + */ + public fun period(): Number + + /** + * The statistic to apply to the alarm's metric data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-statistic) + */ + public fun statistic(): String + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-targetresourcetype) + */ + public fun targetResourceType(): String + + /** + * The threshold value to compare with the specified statistic. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-threshold) + */ + public fun threshold(): Number + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-treatmissingdata) + */ + public fun treatMissingData(): String + + /** + * A builder for [CfnCloudWatchAlarmTemplateProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param comparisonOperator The comparison operator used to compare the specified statistic and + * the threshold. + */ + public fun comparisonOperator(comparisonOperator: String) + + /** + * @param datapointsToAlarm The number of datapoints within the evaluation period that must be + * breaching to trigger the alarm. + */ + public fun datapointsToAlarm(datapointsToAlarm: Number) + + /** + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * @param evaluationPeriods The number of periods over which data is compared to the specified + * threshold. + */ + public fun evaluationPeriods(evaluationPeriods: Number) + + /** + * @param groupIdentifier A cloudwatch alarm template group's identifier. + * Can be either be its id or current name. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * @param metricName The name of the metric associated with the alarm. + * Must be compatible with targetResourceType. + */ + public fun metricName(metricName: String) + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + public fun name(name: String) + + /** + * @param period The period, in seconds, over which the specified statistic is applied. + */ + public fun period(period: Number) + + /** + * @param statistic The statistic to apply to the alarm's metric data. + */ + public fun statistic(statistic: String) + + /** + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + + /** + * @param targetResourceType The resource type this template should dynamically generate + * CloudWatch metric alarms for. + */ + public fun targetResourceType(targetResourceType: String) + + /** + * @param threshold The threshold value to compare with the specified statistic. + */ + public fun threshold(threshold: Number) + + /** + * @param treatMissingData Specifies how missing data points are treated when evaluating the + * alarm's condition. + */ + public fun treatMissingData(treatMissingData: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps.Builder = + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps.builder() + + /** + * @param comparisonOperator The comparison operator used to compare the specified statistic and + * the threshold. + */ + override fun comparisonOperator(comparisonOperator: String) { + cdkBuilder.comparisonOperator(comparisonOperator) + } + + /** + * @param datapointsToAlarm The number of datapoints within the evaluation period that must be + * breaching to trigger the alarm. + */ + override fun datapointsToAlarm(datapointsToAlarm: Number) { + cdkBuilder.datapointsToAlarm(datapointsToAlarm) + } + + /** + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param evaluationPeriods The number of periods over which data is compared to the specified + * threshold. + */ + override fun evaluationPeriods(evaluationPeriods: Number) { + cdkBuilder.evaluationPeriods(evaluationPeriods) + } + + /** + * @param groupIdentifier A cloudwatch alarm template group's identifier. + * Can be either be its id or current name. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * @param metricName The name of the metric associated with the alarm. + * Must be compatible with targetResourceType. + */ + override fun metricName(metricName: String) { + cdkBuilder.metricName(metricName) + } + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param period The period, in seconds, over which the specified statistic is applied. + */ + override fun period(period: Number) { + cdkBuilder.period(period) + } + + /** + * @param statistic The statistic to apply to the alarm's metric data. + */ + override fun statistic(statistic: String) { + cdkBuilder.statistic(statistic) + } + + /** + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + /** + * @param targetResourceType The resource type this template should dynamically generate + * CloudWatch metric alarms for. + */ + override fun targetResourceType(targetResourceType: String) { + cdkBuilder.targetResourceType(targetResourceType) + } + + /** + * @param threshold The threshold value to compare with the specified statistic. + */ + override fun threshold(threshold: Number) { + cdkBuilder.threshold(threshold) + } + + /** + * @param treatMissingData Specifies how missing data points are treated when evaluating the + * alarm's condition. + */ + override fun treatMissingData(treatMissingData: String) { + cdkBuilder.treatMissingData(treatMissingData) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps, + ) : CdkObject(cdkObject), + CfnCloudWatchAlarmTemplateProps { + /** + * The comparison operator used to compare the specified statistic and the threshold. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-comparisonoperator) + */ + override fun comparisonOperator(): String = unwrap(this).getComparisonOperator() + + /** + * The number of datapoints within the evaluation period that must be breaching to trigger the + * alarm. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-datapointstoalarm) + */ + override fun datapointsToAlarm(): Number? = unwrap(this).getDatapointsToAlarm() + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The number of periods over which data is compared to the specified threshold. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-evaluationperiods) + */ + override fun evaluationPeriods(): Number = unwrap(this).getEvaluationPeriods() + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-groupidentifier) + */ + override fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * The name of the metric associated with the alarm. + * + * Must be compatible with targetResourceType. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-metricname) + */ + override fun metricName(): String = unwrap(this).getMetricName() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The period, in seconds, over which the specified statistic is applied. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-period) + */ + override fun period(): Number = unwrap(this).getPeriod() + + /** + * The statistic to apply to the alarm's metric data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-statistic) + */ + override fun statistic(): String = unwrap(this).getStatistic() + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * The resource type this template should dynamically generate CloudWatch metric alarms for. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-targetresourcetype) + */ + override fun targetResourceType(): String = unwrap(this).getTargetResourceType() + + /** + * The threshold value to compare with the specified statistic. + * + * Default: - 0 + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-threshold) + */ + override fun threshold(): Number = unwrap(this).getThreshold() + + /** + * Specifies how missing data points are treated when evaluating the alarm's condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cloudwatchalarmtemplate.html#cfn-medialive-cloudwatchalarmtemplate-treatmissingdata) + */ + override fun treatMissingData(): String = unwrap(this).getTreatMissingData() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnCloudWatchAlarmTemplateProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps): + CfnCloudWatchAlarmTemplateProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnCloudWatchAlarmTemplateProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnCloudWatchAlarmTemplateProps): + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnCloudWatchAlarmTemplateProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCluster.kt new file mode 100644 index 0000000000..d9b048b0df --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnCluster.kt @@ -0,0 +1,639 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::Cluster Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster") + * .clusterType("clusterType") + * .instanceRoleArn("instanceRoleArn") + * .name("name") + * .networkSettings(ClusterNetworkSettingsProperty.builder() + * .defaultRoute("defaultRoute") + * .interfaceMappings(List.of(InterfaceMappingProperty.builder() + * .logicalInterfaceName("logicalInterfaceName") + * .networkId("networkId") + * .build())) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html) + */ +public open class CfnCluster( + cdkObject: software.amazon.awscdk.services.medialive.CfnCluster, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.medialive.CfnCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnClusterProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnClusterProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnClusterProps.Builder.() -> Unit, + ) : this(scope, id, CfnClusterProps(props) + ) + + /** + * The ARN of the Cluster. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The MediaLive Channels that are currently running on Nodes in this Cluster. + */ + public open fun attrChannelIds(): List = unwrap(this).getAttrChannelIds() + + /** + * The unique ID of the Cluster. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The current state of the Cluster. + */ + public open fun attrState(): String = unwrap(this).getAttrState() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The hardware type for the cluster. + */ + public open fun clusterType(): String? = unwrap(this).getClusterType() + + /** + * The hardware type for the cluster. + */ + public open fun clusterType(`value`: String) { + unwrap(this).setClusterType(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The IAM role your nodes will use. + */ + public open fun instanceRoleArn(): String? = unwrap(this).getInstanceRoleArn() + + /** + * The IAM role your nodes will use. + */ + public open fun instanceRoleArn(`value`: String) { + unwrap(this).setInstanceRoleArn(`value`) + } + + /** + * The user-specified name of the Cluster to be created. + */ + public open fun name(): String? = unwrap(this).getName() + + /** + * The user-specified name of the Cluster to be created. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + */ + public open fun networkSettings(): Any? = unwrap(this).getNetworkSettings() + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + */ + public open fun networkSettings(`value`: IResolvable) { + unwrap(this).setNetworkSettings(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + */ + public open fun networkSettings(`value`: ClusterNetworkSettingsProperty) { + unwrap(this).setNetworkSettings(`value`.let(ClusterNetworkSettingsProperty.Companion::unwrap)) + } + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("341784dccadbfd0fb49cdba90751bad2a657f66dc319870b5475a8606e7af9e5") + public open fun networkSettings(`value`: ClusterNetworkSettingsProperty.Builder.() -> Unit): Unit + = networkSettings(ClusterNetworkSettingsProperty(`value`)) + + /** + * A collection of key-value pairs. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A collection of key-value pairs. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnCluster]. + */ + @CdkDslMarker + public interface Builder { + /** + * The hardware type for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-clustertype) + * @param clusterType The hardware type for the cluster. + */ + public fun clusterType(clusterType: String) + + /** + * The IAM role your nodes will use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-instancerolearn) + * @param instanceRoleArn The IAM role your nodes will use. + */ + public fun instanceRoleArn(instanceRoleArn: String) + + /** + * The user-specified name of the Cluster to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-name) + * @param name The user-specified name of the Cluster to be created. + */ + public fun name(name: String) + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + public fun networkSettings(networkSettings: IResolvable) + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + public fun networkSettings(networkSettings: ClusterNetworkSettingsProperty) + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("512ede4b632ea08b21124f1a464e407f51e5134bdceb1904c271f9b890a87891") + public fun networkSettings(networkSettings: ClusterNetworkSettingsProperty.Builder.() -> Unit) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnCluster.Builder = + software.amazon.awscdk.services.medialive.CfnCluster.Builder.create(scope, id) + + /** + * The hardware type for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-clustertype) + * @param clusterType The hardware type for the cluster. + */ + override fun clusterType(clusterType: String) { + cdkBuilder.clusterType(clusterType) + } + + /** + * The IAM role your nodes will use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-instancerolearn) + * @param instanceRoleArn The IAM role your nodes will use. + */ + override fun instanceRoleArn(instanceRoleArn: String) { + cdkBuilder.instanceRoleArn(instanceRoleArn) + } + + /** + * The user-specified name of the Cluster to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-name) + * @param name The user-specified name of the Cluster to be created. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + override fun networkSettings(networkSettings: IResolvable) { + cdkBuilder.networkSettings(networkSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + override fun networkSettings(networkSettings: ClusterNetworkSettingsProperty) { + cdkBuilder.networkSettings(networkSettings.let(ClusterNetworkSettingsProperty.Companion::unwrap)) + } + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("512ede4b632ea08b21124f1a464e407f51e5134bdceb1904c271f9b890a87891") + override + fun networkSettings(networkSettings: ClusterNetworkSettingsProperty.Builder.() -> Unit): + Unit = networkSettings(ClusterNetworkSettingsProperty(networkSettings)) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnCluster = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnCluster.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnCluster { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnCluster(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCluster): CfnCluster = + CfnCluster(cdkObject) + + internal fun unwrap(wrapped: CfnCluster): software.amazon.awscdk.services.medialive.CfnCluster = + wrapped.cdkObject as software.amazon.awscdk.services.medialive.CfnCluster + } + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * ClusterNetworkSettingsProperty clusterNetworkSettingsProperty = + * ClusterNetworkSettingsProperty.builder() + * .defaultRoute("defaultRoute") + * .interfaceMappings(List.of(InterfaceMappingProperty.builder() + * .logicalInterfaceName("logicalInterfaceName") + * .networkId("networkId") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-clusternetworksettings.html) + */ + public interface ClusterNetworkSettingsProperty { + /** + * Default value if the customer does not define it in channel Output API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-clusternetworksettings.html#cfn-medialive-cluster-clusternetworksettings-defaultroute) + */ + public fun defaultRoute(): String? = unwrap(this).getDefaultRoute() + + /** + * Network mappings for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-clusternetworksettings.html#cfn-medialive-cluster-clusternetworksettings-interfacemappings) + */ + public fun interfaceMappings(): Any? = unwrap(this).getInterfaceMappings() + + /** + * A builder for [ClusterNetworkSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param defaultRoute Default value if the customer does not define it in channel Output API. + */ + public fun defaultRoute(defaultRoute: String) + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + public fun interfaceMappings(interfaceMappings: IResolvable) + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + public fun interfaceMappings(interfaceMappings: List) + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + public fun interfaceMappings(vararg interfaceMappings: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty.builder() + + /** + * @param defaultRoute Default value if the customer does not define it in channel Output API. + */ + override fun defaultRoute(defaultRoute: String) { + cdkBuilder.defaultRoute(defaultRoute) + } + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + override fun interfaceMappings(interfaceMappings: IResolvable) { + cdkBuilder.interfaceMappings(interfaceMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + override fun interfaceMappings(interfaceMappings: List) { + cdkBuilder.interfaceMappings(interfaceMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param interfaceMappings Network mappings for the cluster. + */ + override fun interfaceMappings(vararg interfaceMappings: Any): Unit = + interfaceMappings(interfaceMappings.toList()) + + public fun build(): + software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty, + ) : CdkObject(cdkObject), + ClusterNetworkSettingsProperty { + /** + * Default value if the customer does not define it in channel Output API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-clusternetworksettings.html#cfn-medialive-cluster-clusternetworksettings-defaultroute) + */ + override fun defaultRoute(): String? = unwrap(this).getDefaultRoute() + + /** + * Network mappings for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-clusternetworksettings.html#cfn-medialive-cluster-clusternetworksettings-interfacemappings) + */ + override fun interfaceMappings(): Any? = unwrap(this).getInterfaceMappings() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ClusterNetworkSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty): + ClusterNetworkSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterNetworkSettingsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterNetworkSettingsProperty): + software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnCluster.ClusterNetworkSettingsProperty + } + } + + /** + * Network mappings for the cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * InterfaceMappingProperty interfaceMappingProperty = InterfaceMappingProperty.builder() + * .logicalInterfaceName("logicalInterfaceName") + * .networkId("networkId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-interfacemapping.html) + */ + public interface InterfaceMappingProperty { + /** + * logical interface name, unique in the list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-interfacemapping.html#cfn-medialive-cluster-interfacemapping-logicalinterfacename) + */ + public fun logicalInterfaceName(): String? = unwrap(this).getLogicalInterfaceName() + + /** + * Network Id to be associated with the logical interface name, can be duplicated in list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-interfacemapping.html#cfn-medialive-cluster-interfacemapping-networkid) + */ + public fun networkId(): String? = unwrap(this).getNetworkId() + + /** + * A builder for [InterfaceMappingProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param logicalInterfaceName logical interface name, unique in the list. + */ + public fun logicalInterfaceName(logicalInterfaceName: String) + + /** + * @param networkId Network Id to be associated with the logical interface name, can be + * duplicated in list. + */ + public fun networkId(networkId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty.Builder = + software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty.builder() + + /** + * @param logicalInterfaceName logical interface name, unique in the list. + */ + override fun logicalInterfaceName(logicalInterfaceName: String) { + cdkBuilder.logicalInterfaceName(logicalInterfaceName) + } + + /** + * @param networkId Network Id to be associated with the logical interface name, can be + * duplicated in list. + */ + override fun networkId(networkId: String) { + cdkBuilder.networkId(networkId) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty, + ) : CdkObject(cdkObject), + InterfaceMappingProperty { + /** + * logical interface name, unique in the list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-interfacemapping.html#cfn-medialive-cluster-interfacemapping-logicalinterfacename) + */ + override fun logicalInterfaceName(): String? = unwrap(this).getLogicalInterfaceName() + + /** + * Network Id to be associated with the logical interface name, can be duplicated in list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-cluster-interfacemapping.html#cfn-medialive-cluster-interfacemapping-networkid) + */ + override fun networkId(): String? = unwrap(this).getNetworkId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InterfaceMappingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty): + InterfaceMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? InterfaceMappingProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: InterfaceMappingProperty): + software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnCluster.InterfaceMappingProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnClusterProps.kt new file mode 100644 index 0000000000..a56ac1c98c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnClusterProps.kt @@ -0,0 +1,256 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnCluster`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnClusterProps cfnClusterProps = CfnClusterProps.builder() + * .clusterType("clusterType") + * .instanceRoleArn("instanceRoleArn") + * .name("name") + * .networkSettings(ClusterNetworkSettingsProperty.builder() + * .defaultRoute("defaultRoute") + * .interfaceMappings(List.of(InterfaceMappingProperty.builder() + * .logicalInterfaceName("logicalInterfaceName") + * .networkId("networkId") + * .build())) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html) + */ +public interface CfnClusterProps { + /** + * The hardware type for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-clustertype) + */ + public fun clusterType(): String? = unwrap(this).getClusterType() + + /** + * The IAM role your nodes will use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-instancerolearn) + */ + public fun instanceRoleArn(): String? = unwrap(this).getInstanceRoleArn() + + /** + * The user-specified name of the Cluster to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * On premises settings which will have the interface network mappings and default Output logical + * interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + */ + public fun networkSettings(): Any? = unwrap(this).getNetworkSettings() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnClusterProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param clusterType The hardware type for the cluster. + */ + public fun clusterType(clusterType: String) + + /** + * @param instanceRoleArn The IAM role your nodes will use. + */ + public fun instanceRoleArn(instanceRoleArn: String) + + /** + * @param name The user-specified name of the Cluster to be created. + */ + public fun name(name: String) + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + public fun networkSettings(networkSettings: IResolvable) + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + public fun networkSettings(networkSettings: CfnCluster.ClusterNetworkSettingsProperty) + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0e6feeb696e44accdf7439e2e9958c9655890d4476c754a23072dd8f26ab96fd") + public + fun networkSettings(networkSettings: CfnCluster.ClusterNetworkSettingsProperty.Builder.() -> Unit) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnClusterProps.Builder = + software.amazon.awscdk.services.medialive.CfnClusterProps.builder() + + /** + * @param clusterType The hardware type for the cluster. + */ + override fun clusterType(clusterType: String) { + cdkBuilder.clusterType(clusterType) + } + + /** + * @param instanceRoleArn The IAM role your nodes will use. + */ + override fun instanceRoleArn(instanceRoleArn: String) { + cdkBuilder.instanceRoleArn(instanceRoleArn) + } + + /** + * @param name The user-specified name of the Cluster to be created. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + override fun networkSettings(networkSettings: IResolvable) { + cdkBuilder.networkSettings(networkSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + override fun networkSettings(networkSettings: CfnCluster.ClusterNetworkSettingsProperty) { + cdkBuilder.networkSettings(networkSettings.let(CfnCluster.ClusterNetworkSettingsProperty.Companion::unwrap)) + } + + /** + * @param networkSettings On premises settings which will have the interface network mappings + * and default Output logical interface. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0e6feeb696e44accdf7439e2e9958c9655890d4476c754a23072dd8f26ab96fd") + override + fun networkSettings(networkSettings: CfnCluster.ClusterNetworkSettingsProperty.Builder.() -> Unit): + Unit = networkSettings(CfnCluster.ClusterNetworkSettingsProperty(networkSettings)) + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnClusterProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnClusterProps, + ) : CdkObject(cdkObject), + CfnClusterProps { + /** + * The hardware type for the cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-clustertype) + */ + override fun clusterType(): String? = unwrap(this).getClusterType() + + /** + * The IAM role your nodes will use. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-instancerolearn) + */ + override fun instanceRoleArn(): String? = unwrap(this).getInstanceRoleArn() + + /** + * The user-specified name of the Cluster to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * On premises settings which will have the interface network mappings and default Output + * logical interface. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-networksettings) + */ + override fun networkSettings(): Any? = unwrap(this).getNetworkSettings() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-cluster.html#cfn-medialive-cluster-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnClusterProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnClusterProps): + CfnClusterProps = CdkObjectWrappers.wrap(cdkObject) as? CfnClusterProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnClusterProps): + software.amazon.awscdk.services.medialive.CfnClusterProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.medialive.CfnClusterProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplate.kt new file mode 100644 index 0000000000..9e5c1b80f2 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplate.kt @@ -0,0 +1,477 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::EventBridgeRuleTemplate Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnEventBridgeRuleTemplate cfnEventBridgeRuleTemplate = + * CfnEventBridgeRuleTemplate.Builder.create(this, "MyCfnEventBridgeRuleTemplate") + * .eventType("eventType") + * .groupIdentifier("groupIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .eventTargets(List.of(EventBridgeRuleTemplateTargetProperty.builder() + * .arn("arn") + * .build())) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html) + */ +public open class CfnEventBridgeRuleTemplate( + cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventBridgeRuleTemplateProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnEventBridgeRuleTemplateProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventBridgeRuleTemplateProps.Builder.() -> Unit, + ) : this(scope, id, CfnEventBridgeRuleTemplateProps(props) + ) + + /** + * Target ARNs must be either an SNS topic or CloudWatch log group. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time of resource creation. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * An eventbridge rule template group's id. + * + * Amazon Web Services provided template groups have ids that start with ``aws-``. + */ + public open fun attrGroupId(): String = unwrap(this).getAttrGroupId() + + /** + * An eventbridge rule template's id. + * + * Amazon Web Services provided templates have ids that start with ``aws-`` + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * Placeholder documentation for __string. + */ + public open fun attrIdentifier(): String = unwrap(this).getAttrIdentifier() + + /** + * The date and time of latest resource modification. + */ + public open fun attrModifiedAt(): String = unwrap(this).getAttrModifiedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A resource's optional description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's optional description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The destinations that will receive the event notifications. + */ + public open fun eventTargets(): Any? = unwrap(this).getEventTargets() + + /** + * The destinations that will receive the event notifications. + */ + public open fun eventTargets(`value`: IResolvable) { + unwrap(this).setEventTargets(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The destinations that will receive the event notifications. + */ + public open fun eventTargets(`value`: List) { + unwrap(this).setEventTargets(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The destinations that will receive the event notifications. + */ + public open fun eventTargets(vararg `value`: Any): Unit = eventTargets(`value`.toList()) + + /** + * The type of event to match with the rule. + */ + public open fun eventType(): String = unwrap(this).getEventType() + + /** + * The type of event to match with the rule. + */ + public open fun eventType(`value`: String) { + unwrap(this).setEventType(`value`) + } + + /** + * An eventbridge rule template group's identifier. + */ + public open fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * An eventbridge rule template group's identifier. + */ + public open fun groupIdentifier(`value`: String) { + unwrap(this).setGroupIdentifier(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A resource's name. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A resource's name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnEventBridgeRuleTemplate]. + */ + @CdkDslMarker + public interface Builder { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-description) + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(eventTargets: IResolvable) + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(eventTargets: List) + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(vararg eventTargets: Any) + + /** + * The type of event to match with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtype) + * @param eventType The type of event to match with the rule. + */ + public fun eventType(eventType: String) + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-groupidentifier) + * @param groupIdentifier An eventbridge rule template group's identifier. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-name) + * @param name A resource's name. + */ + public fun name(name: String) + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-tags) + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.Builder = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.Builder.create(scope, + id) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-description) + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(eventTargets: IResolvable) { + cdkBuilder.eventTargets(eventTargets.let(IResolvable.Companion::unwrap)) + } + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(eventTargets: List) { + cdkBuilder.eventTargets(eventTargets.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(vararg eventTargets: Any): Unit = eventTargets(eventTargets.toList()) + + /** + * The type of event to match with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtype) + * @param eventType The type of event to match with the rule. + */ + override fun eventType(eventType: String) { + cdkBuilder.eventType(eventType) + } + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-groupidentifier) + * @param groupIdentifier An eventbridge rule template group's identifier. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-name) + * @param name A resource's name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-tags) + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnEventBridgeRuleTemplate { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnEventBridgeRuleTemplate(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate): + CfnEventBridgeRuleTemplate = CfnEventBridgeRuleTemplate(cdkObject) + + internal fun unwrap(wrapped: CfnEventBridgeRuleTemplate): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate = wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate + } + + /** + * The target to which to send matching events. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * EventBridgeRuleTemplateTargetProperty eventBridgeRuleTemplateTargetProperty = + * EventBridgeRuleTemplateTargetProperty.builder() + * .arn("arn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-eventbridgeruletemplate-eventbridgeruletemplatetarget.html) + */ + public interface EventBridgeRuleTemplateTargetProperty { + /** + * Target ARNs must be either an SNS topic or CloudWatch log group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-eventbridgeruletemplate-eventbridgeruletemplatetarget.html#cfn-medialive-eventbridgeruletemplate-eventbridgeruletemplatetarget-arn) + */ + public fun arn(): String + + /** + * A builder for [EventBridgeRuleTemplateTargetProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param arn Target ARNs must be either an SNS topic or CloudWatch log group. + */ + public fun arn(arn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty.builder() + + /** + * @param arn Target ARNs must be either an SNS topic or CloudWatch log group. + */ + override fun arn(arn: String) { + cdkBuilder.arn(arn) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty, + ) : CdkObject(cdkObject), + EventBridgeRuleTemplateTargetProperty { + /** + * Target ARNs must be either an SNS topic or CloudWatch log group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-eventbridgeruletemplate-eventbridgeruletemplatetarget.html#cfn-medialive-eventbridgeruletemplate-eventbridgeruletemplatetarget-arn) + */ + override fun arn(): String = unwrap(this).getArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + EventBridgeRuleTemplateTargetProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty): + EventBridgeRuleTemplateTargetProperty = CdkObjectWrappers.wrap(cdkObject) as? + EventBridgeRuleTemplateTargetProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EventBridgeRuleTemplateTargetProperty): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate.EventBridgeRuleTemplateTargetProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroup.kt new file mode 100644 index 0000000000..e54c6d4e49 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroup.kt @@ -0,0 +1,237 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::EventBridgeRuleTemplateGroup Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnEventBridgeRuleTemplateGroup cfnEventBridgeRuleTemplateGroup = + * CfnEventBridgeRuleTemplateGroup.Builder.create(this, "MyCfnEventBridgeRuleTemplateGroup") + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html) + */ +public open class CfnEventBridgeRuleTemplateGroup( + cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventBridgeRuleTemplateGroupProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnEventBridgeRuleTemplateGroupProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventBridgeRuleTemplateGroupProps.Builder.() -> Unit, + ) : this(scope, id, CfnEventBridgeRuleTemplateGroupProps(props) + ) + + /** + * An eventbridge rule template group's ARN (Amazon Resource Name). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time of resource creation. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * An eventbridge rule template group's id. + * + * Amazon Web Services provided template groups have ids that start with ``aws-``. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * + */ + public open fun attrIdentifier(): String = unwrap(this).getAttrIdentifier() + + /** + * The date and time of latest resource modification. + */ + public open fun attrModifiedAt(): String = unwrap(this).getAttrModifiedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A resource's optional description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's optional description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A resource's name. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A resource's name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup]. + */ + @CdkDslMarker + public interface Builder { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-description) + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-name) + * @param name A resource's name. + */ + public fun name(name: String) + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-tags) + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup.Builder = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup.Builder.create(scope, + id) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-description) + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-name) + * @param name A resource's name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-tags) + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnEventBridgeRuleTemplateGroup { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnEventBridgeRuleTemplateGroup(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup): + CfnEventBridgeRuleTemplateGroup = CfnEventBridgeRuleTemplateGroup(cdkObject) + + internal fun unwrap(wrapped: CfnEventBridgeRuleTemplateGroup): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup = + wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroup + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroupProps.kt new file mode 100644 index 0000000000..5ae42d03ef --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateGroupProps.kt @@ -0,0 +1,156 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnEventBridgeRuleTemplateGroup`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnEventBridgeRuleTemplateGroupProps cfnEventBridgeRuleTemplateGroupProps = + * CfnEventBridgeRuleTemplateGroupProps.builder() + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html) + */ +public interface CfnEventBridgeRuleTemplateGroupProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-name) + */ + public fun name(): String + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnEventBridgeRuleTemplateGroupProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + public fun name(name: String) + + /** + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps.Builder = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps.builder() + + /** + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps, + ) : CdkObject(cdkObject), + CfnEventBridgeRuleTemplateGroupProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplategroup.html#cfn-medialive-eventbridgeruletemplategroup-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + CfnEventBridgeRuleTemplateGroupProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps): + CfnEventBridgeRuleTemplateGroupProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnEventBridgeRuleTemplateGroupProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnEventBridgeRuleTemplateGroupProps): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateGroupProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateProps.kt new file mode 100644 index 0000000000..a6900d84af --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnEventBridgeRuleTemplateProps.kt @@ -0,0 +1,268 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnEventBridgeRuleTemplate`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnEventBridgeRuleTemplateProps cfnEventBridgeRuleTemplateProps = + * CfnEventBridgeRuleTemplateProps.builder() + * .eventType("eventType") + * .groupIdentifier("groupIdentifier") + * .name("name") + * // the properties below are optional + * .description("description") + * .eventTargets(List.of(EventBridgeRuleTemplateTargetProperty.builder() + * .arn("arn") + * .build())) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html) + */ +public interface CfnEventBridgeRuleTemplateProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + */ + public fun eventTargets(): Any? = unwrap(this).getEventTargets() + + /** + * The type of event to match with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtype) + */ + public fun eventType(): String + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-groupidentifier) + */ + public fun groupIdentifier(): String + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-name) + */ + public fun name(): String + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnEventBridgeRuleTemplateProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(eventTargets: IResolvable) + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(eventTargets: List) + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + public fun eventTargets(vararg eventTargets: Any) + + /** + * @param eventType The type of event to match with the rule. + */ + public fun eventType(eventType: String) + + /** + * @param groupIdentifier An eventbridge rule template group's identifier. + * Can be either be its id or current name. + */ + public fun groupIdentifier(groupIdentifier: String) + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + public fun name(name: String) + + /** + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps.Builder = + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps.builder() + + /** + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(eventTargets: IResolvable) { + cdkBuilder.eventTargets(eventTargets.let(IResolvable.Companion::unwrap)) + } + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(eventTargets: List) { + cdkBuilder.eventTargets(eventTargets.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param eventTargets The destinations that will receive the event notifications. + */ + override fun eventTargets(vararg eventTargets: Any): Unit = eventTargets(eventTargets.toList()) + + /** + * @param eventType The type of event to match with the rule. + */ + override fun eventType(eventType: String) { + cdkBuilder.eventType(eventType) + } + + /** + * @param groupIdentifier An eventbridge rule template group's identifier. + * Can be either be its id or current name. + */ + override fun groupIdentifier(groupIdentifier: String) { + cdkBuilder.groupIdentifier(groupIdentifier) + } + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps, + ) : CdkObject(cdkObject), + CfnEventBridgeRuleTemplateProps { + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The destinations that will receive the event notifications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtargets) + */ + override fun eventTargets(): Any? = unwrap(this).getEventTargets() + + /** + * The type of event to match with the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-eventtype) + */ + override fun eventType(): String = unwrap(this).getEventType() + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-groupidentifier) + */ + override fun groupIdentifier(): String = unwrap(this).getGroupIdentifier() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-eventbridgeruletemplate.html#cfn-medialive-eventbridgeruletemplate-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnEventBridgeRuleTemplateProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps): + CfnEventBridgeRuleTemplateProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnEventBridgeRuleTemplateProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnEventBridgeRuleTemplateProps): + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInput.kt index 9d97c22747..097dee8c5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInput.kt @@ -12,6 +12,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -50,6 +51,18 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .url("url") * .username("username") * .build())) + * .srtSettings(SrtSettingsRequestProperty.builder() + * .srtCallerSources(List.of(SrtCallerSourceRequestProperty.builder() + * .decryption(SrtCallerDecryptionRequestProperty.builder() + * .algorithm("algorithm") + * .passphraseSecretArn("passphraseSecretArn") + * .build()) + * .minimumLatency(123) + * .srtListenerAddress("srtListenerAddress") + * .srtListenerPort("srtListenerPort") + * .streamId("streamId") + * .build())) + * .build()) * .tags(tags) * .type("type") * .vpc(InputVpcRequestProperty.builder() @@ -63,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInput( cdkObject: software.amazon.awscdk.services.medialive.CfnInput, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.medialive.CfnInput(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -265,6 +280,33 @@ public open class CfnInput( */ public open fun sources(vararg `value`: Any): Unit = sources(`value`.toList()) + /** + * + */ + public open fun srtSettings(): Any? = unwrap(this).getSrtSettings() + + /** + * + */ + public open fun srtSettings(`value`: IResolvable) { + unwrap(this).setSrtSettings(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * + */ + public open fun srtSettings(`value`: SrtSettingsRequestProperty) { + unwrap(this).setSrtSettings(`value`.let(SrtSettingsRequestProperty.Companion::unwrap)) + } + + /** + * + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b7fc1f30acc123313da482969b54fbf5f0e18b7fa39c2667672b834b1f35ba88") + public open fun srtSettings(`value`: SrtSettingsRequestProperty.Builder.() -> Unit): Unit = + srtSettings(SrtSettingsRequestProperty(`value`)) + /** * Tag Manager which manages the tags for this resource. */ @@ -461,6 +503,26 @@ public open class CfnInput( */ public fun sources(vararg sources: Any) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + public fun srtSettings(srtSettings: IResolvable) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + public fun srtSettings(srtSettings: SrtSettingsRequestProperty) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d4baefce32faa000b9c63b87059872a585c4276a7e58211f2243705abab1e56f") + public fun srtSettings(srtSettings: SrtSettingsRequestProperty.Builder.() -> Unit) + /** * A collection of tags for this input. * @@ -675,6 +737,31 @@ public open class CfnInput( */ override fun sources(vararg sources: Any): Unit = sources(sources.toList()) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + override fun srtSettings(srtSettings: IResolvable) { + cdkBuilder.srtSettings(srtSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + override fun srtSettings(srtSettings: SrtSettingsRequestProperty) { + cdkBuilder.srtSettings(srtSettings.let(SrtSettingsRequestProperty.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + * @param srtSettings + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d4baefce32faa000b9c63b87059872a585c4276a7e58211f2243705abab1e56f") + override fun srtSettings(srtSettings: SrtSettingsRequestProperty.Builder.() -> Unit): Unit = + srtSettings(SrtSettingsRequestProperty(srtSettings)) + /** * A collection of tags for this input. * @@ -815,7 +902,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.InputDestinationRequestProperty, - ) : CdkObject(cdkObject), InputDestinationRequestProperty { + ) : CdkObject(cdkObject), + InputDestinationRequestProperty { /** * The stream name (application name/application instance) for the location the RTMP source * content will be pushed to in MediaLive. @@ -893,7 +981,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.InputDeviceRequestProperty, - ) : CdkObject(cdkObject), InputDeviceRequestProperty { + ) : CdkObject(cdkObject), + InputDeviceRequestProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdevicerequest.html#cfn-medialive-input-inputdevicerequest-id) */ @@ -974,7 +1063,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.InputDeviceSettingsProperty, - ) : CdkObject(cdkObject), InputDeviceSettingsProperty { + ) : CdkObject(cdkObject), + InputDeviceSettingsProperty { /** * The unique ID for the device. * @@ -1107,7 +1197,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.InputSourceRequestProperty, - ) : CdkObject(cdkObject), InputSourceRequestProperty { + ) : CdkObject(cdkObject), + InputSourceRequestProperty { /** * The password parameter that holds the password for accessing the upstream system. * @@ -1269,7 +1360,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.InputVpcRequestProperty, - ) : CdkObject(cdkObject), InputVpcRequestProperty { + ) : CdkObject(cdkObject), + InputVpcRequestProperty { /** * The list of up to five VPC security group IDs to attach to the input VPC network * interfaces. @@ -1370,7 +1462,8 @@ public open class CfnInput( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInput.MediaConnectFlowRequestProperty, - ) : CdkObject(cdkObject), MediaConnectFlowRequestProperty { + ) : CdkObject(cdkObject), + MediaConnectFlowRequestProperty { /** * The ARN of one or two MediaConnect flows that are the sources for this MediaConnect input. * @@ -1396,4 +1489,414 @@ public open class CfnInput( software.amazon.awscdk.services.medialive.CfnInput.MediaConnectFlowRequestProperty } } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * SrtCallerDecryptionRequestProperty srtCallerDecryptionRequestProperty = + * SrtCallerDecryptionRequestProperty.builder() + * .algorithm("algorithm") + * .passphraseSecretArn("passphraseSecretArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html) + */ + public interface SrtCallerDecryptionRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-algorithm) + */ + public fun algorithm(): String? = unwrap(this).getAlgorithm() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-passphrasesecretarn) + */ + public fun passphraseSecretArn(): String? = unwrap(this).getPassphraseSecretArn() + + /** + * A builder for [SrtCallerDecryptionRequestProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param algorithm the value to be set. + */ + public fun algorithm(algorithm: String) + + /** + * @param passphraseSecretArn the value to be set. + */ + public fun passphraseSecretArn(passphraseSecretArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty.builder() + + /** + * @param algorithm the value to be set. + */ + override fun algorithm(algorithm: String) { + cdkBuilder.algorithm(algorithm) + } + + /** + * @param passphraseSecretArn the value to be set. + */ + override fun passphraseSecretArn(passphraseSecretArn: String) { + cdkBuilder.passphraseSecretArn(passphraseSecretArn) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty, + ) : CdkObject(cdkObject), + SrtCallerDecryptionRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-algorithm) + */ + override fun algorithm(): String? = unwrap(this).getAlgorithm() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-passphrasesecretarn) + */ + override fun passphraseSecretArn(): String? = unwrap(this).getPassphraseSecretArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SrtCallerDecryptionRequestProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty): + SrtCallerDecryptionRequestProperty = CdkObjectWrappers.wrap(cdkObject) as? + SrtCallerDecryptionRequestProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SrtCallerDecryptionRequestProperty): + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerDecryptionRequestProperty + } + } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * SrtCallerSourceRequestProperty srtCallerSourceRequestProperty = + * SrtCallerSourceRequestProperty.builder() + * .decryption(SrtCallerDecryptionRequestProperty.builder() + * .algorithm("algorithm") + * .passphraseSecretArn("passphraseSecretArn") + * .build()) + * .minimumLatency(123) + * .srtListenerAddress("srtListenerAddress") + * .srtListenerPort("srtListenerPort") + * .streamId("streamId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html) + */ + public interface SrtCallerSourceRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-decryption) + */ + public fun decryption(): Any? = unwrap(this).getDecryption() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-minimumlatency) + */ + public fun minimumLatency(): Number? = unwrap(this).getMinimumLatency() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-srtlisteneraddress) + */ + public fun srtListenerAddress(): String? = unwrap(this).getSrtListenerAddress() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-srtlistenerport) + */ + public fun srtListenerPort(): String? = unwrap(this).getSrtListenerPort() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-streamid) + */ + public fun streamId(): String? = unwrap(this).getStreamId() + + /** + * A builder for [SrtCallerSourceRequestProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param decryption the value to be set. + */ + public fun decryption(decryption: IResolvable) + + /** + * @param decryption the value to be set. + */ + public fun decryption(decryption: SrtCallerDecryptionRequestProperty) + + /** + * @param decryption the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("da17572550067a25ba16d9f699a74120d02a9f657a15c1c91abe34396c6bcab9") + public fun decryption(decryption: SrtCallerDecryptionRequestProperty.Builder.() -> Unit) + + /** + * @param minimumLatency the value to be set. + */ + public fun minimumLatency(minimumLatency: Number) + + /** + * @param srtListenerAddress the value to be set. + */ + public fun srtListenerAddress(srtListenerAddress: String) + + /** + * @param srtListenerPort the value to be set. + */ + public fun srtListenerPort(srtListenerPort: String) + + /** + * @param streamId the value to be set. + */ + public fun streamId(streamId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty.builder() + + /** + * @param decryption the value to be set. + */ + override fun decryption(decryption: IResolvable) { + cdkBuilder.decryption(decryption.let(IResolvable.Companion::unwrap)) + } + + /** + * @param decryption the value to be set. + */ + override fun decryption(decryption: SrtCallerDecryptionRequestProperty) { + cdkBuilder.decryption(decryption.let(SrtCallerDecryptionRequestProperty.Companion::unwrap)) + } + + /** + * @param decryption the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("da17572550067a25ba16d9f699a74120d02a9f657a15c1c91abe34396c6bcab9") + override fun decryption(decryption: SrtCallerDecryptionRequestProperty.Builder.() -> Unit): + Unit = decryption(SrtCallerDecryptionRequestProperty(decryption)) + + /** + * @param minimumLatency the value to be set. + */ + override fun minimumLatency(minimumLatency: Number) { + cdkBuilder.minimumLatency(minimumLatency) + } + + /** + * @param srtListenerAddress the value to be set. + */ + override fun srtListenerAddress(srtListenerAddress: String) { + cdkBuilder.srtListenerAddress(srtListenerAddress) + } + + /** + * @param srtListenerPort the value to be set. + */ + override fun srtListenerPort(srtListenerPort: String) { + cdkBuilder.srtListenerPort(srtListenerPort) + } + + /** + * @param streamId the value to be set. + */ + override fun streamId(streamId: String) { + cdkBuilder.streamId(streamId) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty, + ) : CdkObject(cdkObject), + SrtCallerSourceRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-decryption) + */ + override fun decryption(): Any? = unwrap(this).getDecryption() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-minimumlatency) + */ + override fun minimumLatency(): Number? = unwrap(this).getMinimumLatency() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-srtlisteneraddress) + */ + override fun srtListenerAddress(): String? = unwrap(this).getSrtListenerAddress() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-srtlistenerport) + */ + override fun srtListenerPort(): String? = unwrap(this).getSrtListenerPort() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallersourcerequest.html#cfn-medialive-input-srtcallersourcerequest-streamid) + */ + override fun streamId(): String? = unwrap(this).getStreamId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SrtCallerSourceRequestProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty): + SrtCallerSourceRequestProperty = CdkObjectWrappers.wrap(cdkObject) as? + SrtCallerSourceRequestProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SrtCallerSourceRequestProperty): + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnInput.SrtCallerSourceRequestProperty + } + } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * SrtSettingsRequestProperty srtSettingsRequestProperty = SrtSettingsRequestProperty.builder() + * .srtCallerSources(List.of(SrtCallerSourceRequestProperty.builder() + * .decryption(SrtCallerDecryptionRequestProperty.builder() + * .algorithm("algorithm") + * .passphraseSecretArn("passphraseSecretArn") + * .build()) + * .minimumLatency(123) + * .srtListenerAddress("srtListenerAddress") + * .srtListenerPort("srtListenerPort") + * .streamId("streamId") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtsettingsrequest.html) + */ + public interface SrtSettingsRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtsettingsrequest.html#cfn-medialive-input-srtsettingsrequest-srtcallersources) + */ + public fun srtCallerSources(): Any? = unwrap(this).getSrtCallerSources() + + /** + * A builder for [SrtSettingsRequestProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param srtCallerSources the value to be set. + */ + public fun srtCallerSources(srtCallerSources: IResolvable) + + /** + * @param srtCallerSources the value to be set. + */ + public fun srtCallerSources(srtCallerSources: List) + + /** + * @param srtCallerSources the value to be set. + */ + public fun srtCallerSources(vararg srtCallerSources: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty.Builder = + software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty.builder() + + /** + * @param srtCallerSources the value to be set. + */ + override fun srtCallerSources(srtCallerSources: IResolvable) { + cdkBuilder.srtCallerSources(srtCallerSources.let(IResolvable.Companion::unwrap)) + } + + /** + * @param srtCallerSources the value to be set. + */ + override fun srtCallerSources(srtCallerSources: List) { + cdkBuilder.srtCallerSources(srtCallerSources.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param srtCallerSources the value to be set. + */ + override fun srtCallerSources(vararg srtCallerSources: Any): Unit = + srtCallerSources(srtCallerSources.toList()) + + public fun build(): + software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty, + ) : CdkObject(cdkObject), + SrtSettingsRequestProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtsettingsrequest.html#cfn-medialive-input-srtsettingsrequest-srtcallersources) + */ + override fun srtCallerSources(): Any? = unwrap(this).getSrtCallerSources() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SrtSettingsRequestProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty): + SrtSettingsRequestProperty = CdkObjectWrappers.wrap(cdkObject) as? + SrtSettingsRequestProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SrtSettingsRequestProperty): + software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnInput.SrtSettingsRequestProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputProps.kt index b63209cea4..cddc008c62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputProps.kt @@ -40,6 +40,18 @@ import kotlin.jvm.JvmName * .url("url") * .username("username") * .build())) + * .srtSettings(SrtSettingsRequestProperty.builder() + * .srtCallerSources(List.of(SrtCallerSourceRequestProperty.builder() + * .decryption(SrtCallerDecryptionRequestProperty.builder() + * .algorithm("algorithm") + * .passphraseSecretArn("passphraseSecretArn") + * .build()) + * .minimumLatency(123) + * .srtListenerAddress("srtListenerAddress") + * .srtListenerPort("srtListenerPort") + * .streamId("streamId") + * .build())) + * .build()) * .tags(tags) * .type("type") * .vpc(InputVpcRequestProperty.builder() @@ -105,6 +117,11 @@ public interface CfnInputProps { */ public fun sources(): Any? = unwrap(this).getSources() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + */ + public fun srtSettings(): Any? = unwrap(this).getSrtSettings() + /** * A collection of tags for this input. * @@ -217,6 +234,23 @@ public interface CfnInputProps { */ public fun sources(vararg sources: Any) + /** + * @param srtSettings the value to be set. + */ + public fun srtSettings(srtSettings: IResolvable) + + /** + * @param srtSettings the value to be set. + */ + public fun srtSettings(srtSettings: CfnInput.SrtSettingsRequestProperty) + + /** + * @param srtSettings the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2c2bf0d8c2fca216bb26ae39974a46c2a59b3ab1d7abefe44ae336f2c1058e3a") + public fun srtSettings(srtSettings: CfnInput.SrtSettingsRequestProperty.Builder.() -> Unit) + /** * @param tags A collection of tags for this input. * Each tag is a key-value pair. @@ -361,6 +395,28 @@ public interface CfnInputProps { */ override fun sources(vararg sources: Any): Unit = sources(sources.toList()) + /** + * @param srtSettings the value to be set. + */ + override fun srtSettings(srtSettings: IResolvable) { + cdkBuilder.srtSettings(srtSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param srtSettings the value to be set. + */ + override fun srtSettings(srtSettings: CfnInput.SrtSettingsRequestProperty) { + cdkBuilder.srtSettings(srtSettings.let(CfnInput.SrtSettingsRequestProperty.Companion::unwrap)) + } + + /** + * @param srtSettings the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2c2bf0d8c2fca216bb26ae39974a46c2a59b3ab1d7abefe44ae336f2c1058e3a") + override fun srtSettings(srtSettings: CfnInput.SrtSettingsRequestProperty.Builder.() -> Unit): + Unit = srtSettings(CfnInput.SrtSettingsRequestProperty(srtSettings)) + /** * @param tags A collection of tags for this input. * Each tag is a key-value pair. @@ -406,7 +462,8 @@ public interface CfnInputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInputProps, - ) : CdkObject(cdkObject), CfnInputProps { + ) : CdkObject(cdkObject), + CfnInputProps { /** * Settings that apply only if the input is a push type of input. * @@ -460,6 +517,11 @@ public interface CfnInputProps { */ override fun sources(): Any? = unwrap(this).getSources() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-srtsettings) + */ + override fun srtSettings(): Any? = unwrap(this).getSrtSettings() + /** * A collection of tags for this input. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroup.kt index 6bab32c732..e84420a7fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroup.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInputSecurityGroup( cdkObject: software.amazon.awscdk.services.medialive.CfnInputSecurityGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.medialive.CfnInputSecurityGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -313,7 +315,8 @@ public open class CfnInputSecurityGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInputSecurityGroup.InputWhitelistRuleCidrProperty, - ) : CdkObject(cdkObject), InputWhitelistRuleCidrProperty { + ) : CdkObject(cdkObject), + InputWhitelistRuleCidrProperty { /** * An IPv4 CIDR range to include in this input security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroupProps.kt index 2f2eb2bac6..c9da95e9ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnInputSecurityGroupProps.kt @@ -119,7 +119,8 @@ public interface CfnInputSecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnInputSecurityGroupProps, - ) : CdkObject(cdkObject), CfnInputSecurityGroupProps { + ) : CdkObject(cdkObject), + CfnInputSecurityGroupProps { /** * A collection of tags for this input security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplex.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplex.kt index bf73d1e6d4..3ec341e2aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplex.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplex.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMultiplex( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplex, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -502,7 +504,8 @@ public open class CfnMultiplex( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplex.MultiplexMediaConnectOutputDestinationSettingsProperty, - ) : CdkObject(cdkObject), MultiplexMediaConnectOutputDestinationSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexMediaConnectOutputDestinationSettingsProperty { /** * The MediaConnect entitlement ARN available as a Flow source. * @@ -629,7 +632,8 @@ public open class CfnMultiplex( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplex.MultiplexOutputDestinationProperty, - ) : CdkObject(cdkObject), MultiplexOutputDestinationProperty { + ) : CdkObject(cdkObject), + MultiplexOutputDestinationProperty { /** * Multiplex MediaConnect output destination settings. * @@ -776,7 +780,8 @@ public open class CfnMultiplex( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplex.MultiplexSettingsProperty, - ) : CdkObject(cdkObject), MultiplexSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexSettingsProperty { /** * Maximum video buffer delay in milliseconds. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexProps.kt index 8b456f4765..2659d9bd73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexProps.kt @@ -231,7 +231,8 @@ public interface CfnMultiplexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexProps, - ) : CdkObject(cdkObject), CfnMultiplexProps { + ) : CdkObject(cdkObject), + CfnMultiplexProps { /** * A list of availability zones for the multiplex. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogram.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogram.kt index ec2e8b25ee..30b78c75a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogram.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogram.kt @@ -29,7 +29,6 @@ import software.constructs.Construct as SoftwareConstructsConstruct * import io.cloudshiftdev.awscdk.services.medialive.*; * CfnMultiplexprogram cfnMultiplexprogram = CfnMultiplexprogram.Builder.create(this, * "MyCfnMultiplexprogram") - * .channelId("channelId") * .multiplexId("multiplexId") * .multiplexProgramSettings(MultiplexProgramSettingsProperty.builder() * .programNumber(123) @@ -76,7 +75,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMultiplexprogram( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.medialive.CfnMultiplexprogram(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -101,14 +101,7 @@ public open class CfnMultiplexprogram( /** * The unique ID of the channel. */ - public open fun channelId(): String? = unwrap(this).getChannelId() - - /** - * The unique ID of the channel. - */ - public open fun channelId(`value`: String) { - unwrap(this).setChannelId(`value`) - } + public open fun attrChannelId(): String = unwrap(this).getAttrChannelId() /** * Examines the CloudFormation resource and discloses attributes. @@ -244,14 +237,6 @@ public open class CfnMultiplexprogram( */ @CdkDslMarker public interface Builder { - /** - * The unique ID of the channel. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-multiplexprogram.html#cfn-medialive-multiplexprogram-channelid) - * @param channelId The unique ID of the channel. - */ - public fun channelId(channelId: String) - /** * The unique id of the multiplex. * @@ -388,16 +373,6 @@ public open class CfnMultiplexprogram( private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.Builder = software.amazon.awscdk.services.medialive.CfnMultiplexprogram.Builder.create(scope, id) - /** - * The unique ID of the channel. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-multiplexprogram.html#cfn-medialive-multiplexprogram-channelid) - * @param channelId The unique ID of the channel. - */ - override fun channelId(channelId: String) { - cdkBuilder.channelId(channelId) - } - /** * The unique id of the multiplex. * @@ -932,7 +907,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexProgramPacketIdentifiersMapProperty, - ) : CdkObject(cdkObject), MultiplexProgramPacketIdentifiersMapProperty { + ) : CdkObject(cdkObject), + MultiplexProgramPacketIdentifiersMapProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-multiplexprogram-multiplexprogrampacketidentifiersmap.html#cfn-medialive-multiplexprogram-multiplexprogrampacketidentifiersmap-audiopids) */ @@ -1097,7 +1073,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexProgramPipelineDetailProperty, - ) : CdkObject(cdkObject), MultiplexProgramPipelineDetailProperty { + ) : CdkObject(cdkObject), + MultiplexProgramPipelineDetailProperty { /** * Identifies the channel pipeline that is currently active for the pipeline (identified by * PipelineId) in the multiplex. @@ -1209,7 +1186,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexProgramServiceDescriptorProperty, - ) : CdkObject(cdkObject), MultiplexProgramServiceDescriptorProperty { + ) : CdkObject(cdkObject), + MultiplexProgramServiceDescriptorProperty { /** * Name of the provider. * @@ -1435,7 +1413,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexProgramSettingsProperty, - ) : CdkObject(cdkObject), MultiplexProgramSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexProgramSettingsProperty { /** * Indicates which pipeline is preferred by the multiplex for program ingest. * @@ -1592,7 +1571,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexStatmuxVideoSettingsProperty, - ) : CdkObject(cdkObject), MultiplexStatmuxVideoSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexStatmuxVideoSettingsProperty { /** * Maximum statmux bitrate. * @@ -1760,7 +1740,8 @@ public open class CfnMultiplexprogram( private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogram.MultiplexVideoSettingsProperty, - ) : CdkObject(cdkObject), MultiplexVideoSettingsProperty { + ) : CdkObject(cdkObject), + MultiplexVideoSettingsProperty { /** * The constant bitrate configuration for the video encode. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogramProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogramProps.kt index 01eef4842a..b5cec1420b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogramProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnMultiplexprogramProps.kt @@ -22,7 +22,6 @@ import kotlin.jvm.JvmName * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.medialive.*; * CfnMultiplexprogramProps cfnMultiplexprogramProps = CfnMultiplexprogramProps.builder() - * .channelId("channelId") * .multiplexId("multiplexId") * .multiplexProgramSettings(MultiplexProgramSettingsProperty.builder() * .programNumber(123) @@ -68,13 +67,6 @@ import kotlin.jvm.JvmName * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-multiplexprogram.html) */ public interface CfnMultiplexprogramProps { - /** - * The unique ID of the channel. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-multiplexprogram.html#cfn-medialive-multiplexprogram-channelid) - */ - public fun channelId(): String? = unwrap(this).getChannelId() - /** * The unique id of the multiplex. * @@ -133,11 +125,6 @@ public interface CfnMultiplexprogramProps { */ @CdkDslMarker public interface Builder { - /** - * @param channelId The unique ID of the channel. - */ - public fun channelId(channelId: String) - /** * @param multiplexId The unique id of the multiplex. */ @@ -230,13 +217,6 @@ public interface CfnMultiplexprogramProps { software.amazon.awscdk.services.medialive.CfnMultiplexprogramProps.Builder = software.amazon.awscdk.services.medialive.CfnMultiplexprogramProps.builder() - /** - * @param channelId The unique ID of the channel. - */ - override fun channelId(channelId: String) { - cdkBuilder.channelId(channelId) - } - /** * @param multiplexId The unique id of the multiplex. */ @@ -352,14 +332,8 @@ public interface CfnMultiplexprogramProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.medialive.CfnMultiplexprogramProps, - ) : CdkObject(cdkObject), CfnMultiplexprogramProps { - /** - * The unique ID of the channel. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-multiplexprogram.html#cfn-medialive-multiplexprogram-channelid) - */ - override fun channelId(): String? = unwrap(this).getChannelId() - + ) : CdkObject(cdkObject), + CfnMultiplexprogramProps { /** * The unique id of the multiplex. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetwork.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetwork.kt new file mode 100644 index 0000000000..3538efd88b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetwork.kt @@ -0,0 +1,560 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Resource schema for AWS::MediaLive::Network. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnNetwork cfnNetwork = CfnNetwork.Builder.create(this, "MyCfnNetwork") + * .ipPools(List.of(IpPoolProperty.builder() + * .cidr("cidr") + * .build())) + * .name("name") + * // the properties below are optional + * .routes(List.of(RouteProperty.builder() + * .cidr("cidr") + * .gateway("gateway") + * .build())) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html) + */ +public open class CfnNetwork( + cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnNetworkProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnNetwork(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnNetworkProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnNetworkProps.Builder.() -> Unit, + ) : this(scope, id, CfnNetworkProps(props) + ) + + /** + * The ARN of the Network. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * + */ + public open fun attrAssociatedClusterIds(): List = + unwrap(this).getAttrAssociatedClusterIds() + + /** + * The unique ID of the Network. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * + */ + public open fun attrState(): String = unwrap(this).getAttrState() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The list of IP address cidr pools for the network. + */ + public open fun ipPools(): Any = unwrap(this).getIpPools() + + /** + * The list of IP address cidr pools for the network. + */ + public open fun ipPools(`value`: IResolvable) { + unwrap(this).setIpPools(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The list of IP address cidr pools for the network. + */ + public open fun ipPools(`value`: List) { + unwrap(this).setIpPools(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The list of IP address cidr pools for the network. + */ + public open fun ipPools(vararg `value`: Any): Unit = ipPools(`value`.toList()) + + /** + * The user-specified name of the Network to be created. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The user-specified name of the Network to be created. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * The routes for the network. + */ + public open fun routes(): Any? = unwrap(this).getRoutes() + + /** + * The routes for the network. + */ + public open fun routes(`value`: IResolvable) { + unwrap(this).setRoutes(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The routes for the network. + */ + public open fun routes(`value`: List) { + unwrap(this).setRoutes(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The routes for the network. + */ + public open fun routes(vararg `value`: Any): Unit = routes(`value`.toList()) + + /** + * A collection of key-value pairs. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A collection of key-value pairs. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnNetwork]. + */ + @CdkDslMarker + public interface Builder { + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(ipPools: IResolvable) + + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(ipPools: List) + + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(vararg ipPools: Any) + + /** + * The user-specified name of the Network to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-name) + * @param name The user-specified name of the Network to be created. + */ + public fun name(name: String) + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + public fun routes(routes: IResolvable) + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + public fun routes(routes: List) + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + public fun routes(vararg routes: Any) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnNetwork.Builder = + software.amazon.awscdk.services.medialive.CfnNetwork.Builder.create(scope, id) + + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(ipPools: IResolvable) { + cdkBuilder.ipPools(ipPools.let(IResolvable.Companion::unwrap)) + } + + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(ipPools: List) { + cdkBuilder.ipPools(ipPools.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(vararg ipPools: Any): Unit = ipPools(ipPools.toList()) + + /** + * The user-specified name of the Network to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-name) + * @param name The user-specified name of the Network to be created. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + override fun routes(routes: IResolvable) { + cdkBuilder.routes(routes.let(IResolvable.Companion::unwrap)) + } + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + override fun routes(routes: List) { + cdkBuilder.routes(routes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + * @param routes The routes for the network. + */ + override fun routes(vararg routes: Any): Unit = routes(routes.toList()) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnNetwork = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnNetwork.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnNetwork { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnNetwork(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork): CfnNetwork = + CfnNetwork(cdkObject) + + internal fun unwrap(wrapped: CfnNetwork): software.amazon.awscdk.services.medialive.CfnNetwork = + wrapped.cdkObject as software.amazon.awscdk.services.medialive.CfnNetwork + } + + /** + * IP address cidr pool. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * IpPoolProperty ipPoolProperty = IpPoolProperty.builder() + * .cidr("cidr") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-ippool.html) + */ + public interface IpPoolProperty { + /** + * IP address cidr pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-ippool.html#cfn-medialive-network-ippool-cidr) + */ + public fun cidr(): String? = unwrap(this).getCidr() + + /** + * A builder for [IpPoolProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param cidr IP address cidr pool. + */ + public fun cidr(cidr: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty.Builder = + software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty.builder() + + /** + * @param cidr IP address cidr pool. + */ + override fun cidr(cidr: String) { + cdkBuilder.cidr(cidr) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty, + ) : CdkObject(cdkObject), + IpPoolProperty { + /** + * IP address cidr pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-ippool.html#cfn-medialive-network-ippool-cidr) + */ + override fun cidr(): String? = unwrap(this).getCidr() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IpPoolProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty): + IpPoolProperty = CdkObjectWrappers.wrap(cdkObject) as? IpPoolProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IpPoolProperty): + software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnNetwork.IpPoolProperty + } + } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * RouteProperty routeProperty = RouteProperty.builder() + * .cidr("cidr") + * .gateway("gateway") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-route.html) + */ + public interface RouteProperty { + /** + * Ip address cidr. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-route.html#cfn-medialive-network-route-cidr) + */ + public fun cidr(): String? = unwrap(this).getCidr() + + /** + * IP address for the route packet paths. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-route.html#cfn-medialive-network-route-gateway) + */ + public fun gateway(): String? = unwrap(this).getGateway() + + /** + * A builder for [RouteProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param cidr Ip address cidr. + */ + public fun cidr(cidr: String) + + /** + * @param gateway IP address for the route packet paths. + */ + public fun gateway(gateway: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty.Builder = + software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty.builder() + + /** + * @param cidr Ip address cidr. + */ + override fun cidr(cidr: String) { + cdkBuilder.cidr(cidr) + } + + /** + * @param gateway IP address for the route packet paths. + */ + override fun gateway(gateway: String) { + cdkBuilder.gateway(gateway) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty, + ) : CdkObject(cdkObject), + RouteProperty { + /** + * Ip address cidr. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-route.html#cfn-medialive-network-route-cidr) + */ + override fun cidr(): String? = unwrap(this).getCidr() + + /** + * IP address for the route packet paths. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-network-route.html#cfn-medialive-network-route-gateway) + */ + override fun gateway(): String? = unwrap(this).getGateway() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RouteProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty): + RouteProperty = CdkObjectWrappers.wrap(cdkObject) as? RouteProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RouteProperty): + software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.medialive.CfnNetwork.RouteProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetworkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetworkProps.kt new file mode 100644 index 0000000000..ddf450315c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnNetworkProps.kt @@ -0,0 +1,235 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnNetwork`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnNetworkProps cfnNetworkProps = CfnNetworkProps.builder() + * .ipPools(List.of(IpPoolProperty.builder() + * .cidr("cidr") + * .build())) + * .name("name") + * // the properties below are optional + * .routes(List.of(RouteProperty.builder() + * .cidr("cidr") + * .gateway("gateway") + * .build())) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html) + */ +public interface CfnNetworkProps { + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + */ + public fun ipPools(): Any + + /** + * The user-specified name of the Network to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-name) + */ + public fun name(): String + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + */ + public fun routes(): Any? = unwrap(this).getRoutes() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnNetworkProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(ipPools: IResolvable) + + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(ipPools: List) + + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + public fun ipPools(vararg ipPools: Any) + + /** + * @param name The user-specified name of the Network to be created. + */ + public fun name(name: String) + + /** + * @param routes The routes for the network. + */ + public fun routes(routes: IResolvable) + + /** + * @param routes The routes for the network. + */ + public fun routes(routes: List) + + /** + * @param routes The routes for the network. + */ + public fun routes(vararg routes: Any) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnNetworkProps.Builder = + software.amazon.awscdk.services.medialive.CfnNetworkProps.builder() + + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(ipPools: IResolvable) { + cdkBuilder.ipPools(ipPools.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(ipPools: List) { + cdkBuilder.ipPools(ipPools.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param ipPools The list of IP address cidr pools for the network. + */ + override fun ipPools(vararg ipPools: Any): Unit = ipPools(ipPools.toList()) + + /** + * @param name The user-specified name of the Network to be created. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param routes The routes for the network. + */ + override fun routes(routes: IResolvable) { + cdkBuilder.routes(routes.let(IResolvable.Companion::unwrap)) + } + + /** + * @param routes The routes for the network. + */ + override fun routes(routes: List) { + cdkBuilder.routes(routes.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param routes The routes for the network. + */ + override fun routes(vararg routes: Any): Unit = routes(routes.toList()) + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.medialive.CfnNetworkProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnNetworkProps, + ) : CdkObject(cdkObject), + CfnNetworkProps { + /** + * The list of IP address cidr pools for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-ippools) + */ + override fun ipPools(): Any = unwrap(this).getIpPools() + + /** + * The user-specified name of the Network to be created. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * The routes for the network. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-routes) + */ + override fun routes(): Any? = unwrap(this).getRoutes() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-network.html#cfn-medialive-network-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnNetworkProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnNetworkProps): + CfnNetworkProps = CdkObjectWrappers.wrap(cdkObject) as? CfnNetworkProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnNetworkProps): + software.amazon.awscdk.services.medialive.CfnNetworkProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.medialive.CfnNetworkProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSource.kt new file mode 100644 index 0000000000..5dc936f81d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSource.kt @@ -0,0 +1,274 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::SdiSource Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnSdiSource cfnSdiSource = CfnSdiSource.Builder.create(this, "MyCfnSdiSource") + * .name("name") + * .type("type") + * // the properties below are optional + * .mode("mode") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html) + */ +public open class CfnSdiSource( + cdkObject: software.amazon.awscdk.services.medialive.CfnSdiSource, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSdiSourceProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnSdiSource(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnSdiSourceProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSdiSourceProps.Builder.() -> Unit, + ) : this(scope, id, CfnSdiSourceProps(props) + ) + + /** + * The unique arn of the SdiSource. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The unique identifier of the SdiSource. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * The list of inputs currently using this SDI source. + */ + public open fun attrInputs(): List = unwrap(this).getAttrInputs() + + /** + * The current state of the SdiSource. + */ + public open fun attrState(): String = unwrap(this).getAttrState() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The current state of the SdiSource. + */ + public open fun mode(): String? = unwrap(this).getMode() + + /** + * The current state of the SdiSource. + */ + public open fun mode(`value`: String) { + unwrap(this).setMode(`value`) + } + + /** + * The name of the SdiSource. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the SdiSource. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * A collection of key-value pairs. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A collection of key-value pairs. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The interface mode of the SdiSource. + */ + public open fun type(): String = unwrap(this).getType() + + /** + * The interface mode of the SdiSource. + */ + public open fun type(`value`: String) { + unwrap(this).setType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnSdiSource]. + */ + @CdkDslMarker + public interface Builder { + /** + * The current state of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-mode) + * @param mode The current state of the SdiSource. + */ + public fun mode(mode: String) + + /** + * The name of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-name) + * @param name The name of the SdiSource. + */ + public fun name(name: String) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The interface mode of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-type) + * @param type The interface mode of the SdiSource. + */ + public fun type(type: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnSdiSource.Builder = + software.amazon.awscdk.services.medialive.CfnSdiSource.Builder.create(scope, id) + + /** + * The current state of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-mode) + * @param mode The current state of the SdiSource. + */ + override fun mode(mode: String) { + cdkBuilder.mode(mode) + } + + /** + * The name of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-name) + * @param name The name of the SdiSource. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The interface mode of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-type) + * @param type The interface mode of the SdiSource. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnSdiSource = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnSdiSource.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnSdiSource { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnSdiSource(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSdiSource): + CfnSdiSource = CfnSdiSource(cdkObject) + + internal fun unwrap(wrapped: CfnSdiSource): + software.amazon.awscdk.services.medialive.CfnSdiSource = wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnSdiSource + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSourceProps.kt new file mode 100644 index 0000000000..b828fa2082 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSdiSourceProps.kt @@ -0,0 +1,184 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnSdiSource`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnSdiSourceProps cfnSdiSourceProps = CfnSdiSourceProps.builder() + * .name("name") + * .type("type") + * // the properties below are optional + * .mode("mode") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html) + */ +public interface CfnSdiSourceProps { + /** + * The current state of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-mode) + */ + public fun mode(): String? = unwrap(this).getMode() + + /** + * The name of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-name) + */ + public fun name(): String + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The interface mode of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-type) + */ + public fun type(): String + + /** + * A builder for [CfnSdiSourceProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param mode The current state of the SdiSource. + */ + public fun mode(mode: String) + + /** + * @param name The name of the SdiSource. + */ + public fun name(name: String) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(tags: List) + + /** + * @param tags A collection of key-value pairs. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param type The interface mode of the SdiSource. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnSdiSourceProps.Builder = + software.amazon.awscdk.services.medialive.CfnSdiSourceProps.builder() + + /** + * @param mode The current state of the SdiSource. + */ + override fun mode(mode: String) { + cdkBuilder.mode(mode) + } + + /** + * @param name The name of the SdiSource. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A collection of key-value pairs. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param type The interface mode of the SdiSource. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnSdiSourceProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSdiSourceProps, + ) : CdkObject(cdkObject), + CfnSdiSourceProps { + /** + * The current state of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-mode) + */ + override fun mode(): String? = unwrap(this).getMode() + + /** + * The name of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A collection of key-value pairs. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The interface mode of the SdiSource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-sdisource.html#cfn-medialive-sdisource-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnSdiSourceProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSdiSourceProps): + CfnSdiSourceProps = CdkObjectWrappers.wrap(cdkObject) as? CfnSdiSourceProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnSdiSourceProps): + software.amazon.awscdk.services.medialive.CfnSdiSourceProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.medialive.CfnSdiSourceProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMap.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMap.kt new file mode 100644 index 0000000000..e2da33cf26 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMap.kt @@ -0,0 +1,1093 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Definition of AWS::MediaLive::SignalMap Resource Type. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnSignalMap cfnSignalMap = CfnSignalMap.Builder.create(this, "MyCfnSignalMap") + * .discoveryEntryPointArn("discoveryEntryPointArn") + * .name("name") + * // the properties below are optional + * .cloudWatchAlarmTemplateGroupIdentifiers(List.of("cloudWatchAlarmTemplateGroupIdentifiers")) + * .description("description") + * .eventBridgeRuleTemplateGroupIdentifiers(List.of("eventBridgeRuleTemplateGroupIdentifiers")) + * .forceRediscovery(false) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html) + */ +public open class CfnSignalMap( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSignalMapProps, + ) : + this(software.amazon.awscdk.services.medialive.CfnSignalMap(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnSignalMapProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSignalMapProps.Builder.() -> Unit, + ) : this(scope, id, CfnSignalMapProps(props) + ) + + /** + * A signal map's ARN (Amazon Resource Name). + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * An alarm template group's id. + */ + public open fun attrCloudWatchAlarmTemplateGroupIds(): List = + unwrap(this).getAttrCloudWatchAlarmTemplateGroupIds() + + /** + * The date and time of resource creation. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * Error message associated with a failed creation or failed update attempt of a signal map. + */ + public open fun attrErrorMessage(): String = unwrap(this).getAttrErrorMessage() + + /** + * An eventbridge rule template group's id. + */ + public open fun attrEventBridgeRuleTemplateGroupIds(): List = + unwrap(this).getAttrEventBridgeRuleTemplateGroupIds() + + /** + * A map representing an incomplete AWS media workflow as a graph. + */ + public open fun attrFailedMediaResourceMap(): IResolvable = + unwrap(this).getAttrFailedMediaResourceMap().let(IResolvable::wrap) + + /** + * A signal map's id. + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * + */ + public open fun attrIdentifier(): String = unwrap(this).getAttrIdentifier() + + /** + * The date and time of latest discovery. + */ + public open fun attrLastDiscoveredAt(): String = unwrap(this).getAttrLastDiscoveredAt() + + /** + * Represents the latest successful monitor deployment of a signal map. + */ + public open fun attrLastSuccessfulMonitorDeployment(): IResolvable = + unwrap(this).getAttrLastSuccessfulMonitorDeployment().let(IResolvable::wrap) + + /** + * A map representing an AWS media workflow as a graph. + */ + public open fun attrMediaResourceMap(): IResolvable = + unwrap(this).getAttrMediaResourceMap().let(IResolvable::wrap) + + /** + * The date and time of latest resource modification. + */ + public open fun attrModifiedAt(): String = unwrap(this).getAttrModifiedAt() + + /** + * If true, there are pending monitor changes for this signal map that can be deployed. + */ + public open fun attrMonitorChangesPendingDeployment(): IResolvable = + unwrap(this).getAttrMonitorChangesPendingDeployment().let(IResolvable::wrap) + + /** + * Represents the latest monitor deployment of a signal map. + */ + public open fun attrMonitorDeployment(): IResolvable = + unwrap(this).getAttrMonitorDeployment().let(IResolvable::wrap) + + /** + * A signal map's current status, which is dependent on its lifecycle actions or associated jobs. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * A cloudwatch alarm template group's identifier. + */ + public open fun cloudWatchAlarmTemplateGroupIdentifiers(): List = + unwrap(this).getCloudWatchAlarmTemplateGroupIdentifiers() ?: emptyList() + + /** + * A cloudwatch alarm template group's identifier. + */ + public open fun cloudWatchAlarmTemplateGroupIdentifiers(`value`: List) { + unwrap(this).setCloudWatchAlarmTemplateGroupIdentifiers(`value`) + } + + /** + * A cloudwatch alarm template group's identifier. + */ + public open fun cloudWatchAlarmTemplateGroupIdentifiers(vararg `value`: String): Unit = + cloudWatchAlarmTemplateGroupIdentifiers(`value`.toList()) + + /** + * A resource's optional description. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * A resource's optional description. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + */ + public open fun discoveryEntryPointArn(): String = unwrap(this).getDiscoveryEntryPointArn() + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + */ + public open fun discoveryEntryPointArn(`value`: String) { + unwrap(this).setDiscoveryEntryPointArn(`value`) + } + + /** + * An eventbridge rule template group's identifier. + */ + public open fun eventBridgeRuleTemplateGroupIdentifiers(): List = + unwrap(this).getEventBridgeRuleTemplateGroupIdentifiers() ?: emptyList() + + /** + * An eventbridge rule template group's identifier. + */ + public open fun eventBridgeRuleTemplateGroupIdentifiers(`value`: List) { + unwrap(this).setEventBridgeRuleTemplateGroupIdentifiers(`value`) + } + + /** + * An eventbridge rule template group's identifier. + */ + public open fun eventBridgeRuleTemplateGroupIdentifiers(vararg `value`: String): Unit = + eventBridgeRuleTemplateGroupIdentifiers(`value`.toList()) + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + */ + public open fun forceRediscovery(): Any? = unwrap(this).getForceRediscovery() + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + */ + public open fun forceRediscovery(`value`: Boolean) { + unwrap(this).setForceRediscovery(`value`) + } + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + */ + public open fun forceRediscovery(`value`: IResolvable) { + unwrap(this).setForceRediscovery(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A resource's name. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * A resource's name. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Represents the tags associated with a resource. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.medialive.CfnSignalMap]. + */ + @CdkDslMarker + public interface Builder { + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + */ + public + fun cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers: List) + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + */ + public fun cloudWatchAlarmTemplateGroupIdentifiers(vararg + cloudWatchAlarmTemplateGroupIdentifiers: String) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-description) + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-discoveryentrypointarn) + * @param discoveryEntryPointArn A top-level supported Amazon Web Services resource ARN to + * discover a signal map from. + */ + public fun discoveryEntryPointArn(discoveryEntryPointArn: String) + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + */ + public + fun eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers: List) + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + */ + public fun eventBridgeRuleTemplateGroupIdentifiers(vararg + eventBridgeRuleTemplateGroupIdentifiers: String) + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + public fun forceRediscovery(forceRediscovery: Boolean) + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + public fun forceRediscovery(forceRediscovery: IResolvable) + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-name) + * @param name A resource's name. + */ + public fun name(name: String) + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-tags) + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnSignalMap.Builder = + software.amazon.awscdk.services.medialive.CfnSignalMap.Builder.create(scope, id) + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + */ + override + fun cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers: List) { + cdkBuilder.cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers) + } + + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + */ + override fun cloudWatchAlarmTemplateGroupIdentifiers(vararg + cloudWatchAlarmTemplateGroupIdentifiers: String): Unit = + cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers.toList()) + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-description) + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-discoveryentrypointarn) + * @param discoveryEntryPointArn A top-level supported Amazon Web Services resource ARN to + * discover a signal map from. + */ + override fun discoveryEntryPointArn(discoveryEntryPointArn: String) { + cdkBuilder.discoveryEntryPointArn(discoveryEntryPointArn) + } + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + */ + override + fun eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers: List) { + cdkBuilder.eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers) + } + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + */ + override fun eventBridgeRuleTemplateGroupIdentifiers(vararg + eventBridgeRuleTemplateGroupIdentifiers: String): Unit = + eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers.toList()) + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + override fun forceRediscovery(forceRediscovery: Boolean) { + cdkBuilder.forceRediscovery(forceRediscovery) + } + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + override fun forceRediscovery(forceRediscovery: IResolvable) { + cdkBuilder.forceRediscovery(forceRediscovery.let(IResolvable.Companion::unwrap)) + } + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-name) + * @param name A resource's name. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-tags) + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnSignalMap = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.medialive.CfnSignalMap.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnSignalMap { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnSignalMap(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap): + CfnSignalMap = CfnSignalMap(cdkObject) + + internal fun unwrap(wrapped: CfnSignalMap): + software.amazon.awscdk.services.medialive.CfnSignalMap = wrapped.cdkObject as + software.amazon.awscdk.services.medialive.CfnSignalMap + } + + /** + * A direct source or destination neighbor to an Amazon Web Services media resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * MediaResourceNeighborProperty mediaResourceNeighborProperty = + * MediaResourceNeighborProperty.builder() + * .arn("arn") + * // the properties below are optional + * .name("name") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresourceneighbor.html) + */ + public interface MediaResourceNeighborProperty { + /** + * The ARN of a resource used in Amazon Web Services media workflows. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresourceneighbor.html#cfn-medialive-signalmap-mediaresourceneighbor-arn) + */ + public fun arn(): String + + /** + * The logical name of an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresourceneighbor.html#cfn-medialive-signalmap-mediaresourceneighbor-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A builder for [MediaResourceNeighborProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param arn The ARN of a resource used in Amazon Web Services media workflows. + */ + public fun arn(arn: String) + + /** + * @param name The logical name of an Amazon Web Services media resource. + */ + public fun name(name: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty.builder() + + /** + * @param arn The ARN of a resource used in Amazon Web Services media workflows. + */ + override fun arn(arn: String) { + cdkBuilder.arn(arn) + } + + /** + * @param name The logical name of an Amazon Web Services media resource. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty, + ) : CdkObject(cdkObject), + MediaResourceNeighborProperty { + /** + * The ARN of a resource used in Amazon Web Services media workflows. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresourceneighbor.html#cfn-medialive-signalmap-mediaresourceneighbor-arn) + */ + override fun arn(): String = unwrap(this).getArn() + + /** + * The logical name of an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresourceneighbor.html#cfn-medialive-signalmap-mediaresourceneighbor-name) + */ + override fun name(): String? = unwrap(this).getName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MediaResourceNeighborProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty): + MediaResourceNeighborProperty = CdkObjectWrappers.wrap(cdkObject) as? + MediaResourceNeighborProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaResourceNeighborProperty): + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceNeighborProperty + } + } + + /** + * An Amazon Web Services resource used in media workflows. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * MediaResourceProperty mediaResourceProperty = MediaResourceProperty.builder() + * .destinations(List.of(MediaResourceNeighborProperty.builder() + * .arn("arn") + * // the properties below are optional + * .name("name") + * .build())) + * .name("name") + * .sources(List.of(MediaResourceNeighborProperty.builder() + * .arn("arn") + * // the properties below are optional + * .name("name") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html) + */ + public interface MediaResourceProperty { + /** + * A direct destination neighbor to an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-destinations) + */ + public fun destinations(): Any? = unwrap(this).getDestinations() + + /** + * The logical name of an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * A direct source neighbor to an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-sources) + */ + public fun sources(): Any? = unwrap(this).getSources() + + /** + * A builder for [MediaResourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + public fun destinations(destinations: IResolvable) + + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + public fun destinations(destinations: List) + + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + public fun destinations(vararg destinations: Any) + + /** + * @param name The logical name of an Amazon Web Services media resource. + */ + public fun name(name: String) + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + public fun sources(sources: IResolvable) + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + public fun sources(sources: List) + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + public fun sources(vararg sources: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty.Builder = + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty.builder() + + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + override fun destinations(destinations: IResolvable) { + cdkBuilder.destinations(destinations.let(IResolvable.Companion::unwrap)) + } + + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + override fun destinations(destinations: List) { + cdkBuilder.destinations(destinations.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param destinations A direct destination neighbor to an Amazon Web Services media resource. + */ + override fun destinations(vararg destinations: Any): Unit = + destinations(destinations.toList()) + + /** + * @param name The logical name of an Amazon Web Services media resource. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + override fun sources(sources: IResolvable) { + cdkBuilder.sources(sources.let(IResolvable.Companion::unwrap)) + } + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + override fun sources(sources: List) { + cdkBuilder.sources(sources.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param sources A direct source neighbor to an Amazon Web Services media resource. + */ + override fun sources(vararg sources: Any): Unit = sources(sources.toList()) + + public fun build(): + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty, + ) : CdkObject(cdkObject), + MediaResourceProperty { + /** + * A direct destination neighbor to an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-destinations) + */ + override fun destinations(): Any? = unwrap(this).getDestinations() + + /** + * The logical name of an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * A direct source neighbor to an Amazon Web Services media resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-mediaresource.html#cfn-medialive-signalmap-mediaresource-sources) + */ + override fun sources(): Any? = unwrap(this).getSources() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MediaResourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty): + MediaResourceProperty = CdkObjectWrappers.wrap(cdkObject) as? MediaResourceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaResourceProperty): + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnSignalMap.MediaResourceProperty + } + } + + /** + * Represents the latest monitor deployment of a signal map. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * MonitorDeploymentProperty monitorDeploymentProperty = MonitorDeploymentProperty.builder() + * .status("status") + * // the properties below are optional + * .detailsUri("detailsUri") + * .errorMessage("errorMessage") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html) + */ + public interface MonitorDeploymentProperty { + /** + * URI associated with a signal map's monitor deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-detailsuri) + */ + public fun detailsUri(): String? = unwrap(this).getDetailsUri() + + /** + * Error message associated with a failed monitor deployment of a signal map. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-errormessage) + */ + public fun errorMessage(): String? = unwrap(this).getErrorMessage() + + /** + * The signal map monitor deployment status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-status) + */ + public fun status(): String + + /** + * A builder for [MonitorDeploymentProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param detailsUri URI associated with a signal map's monitor deployment. + */ + public fun detailsUri(detailsUri: String) + + /** + * @param errorMessage Error message associated with a failed monitor deployment of a signal + * map. + */ + public fun errorMessage(errorMessage: String) + + /** + * @param status The signal map monitor deployment status. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty.Builder = + software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty.builder() + + /** + * @param detailsUri URI associated with a signal map's monitor deployment. + */ + override fun detailsUri(detailsUri: String) { + cdkBuilder.detailsUri(detailsUri) + } + + /** + * @param errorMessage Error message associated with a failed monitor deployment of a signal + * map. + */ + override fun errorMessage(errorMessage: String) { + cdkBuilder.errorMessage(errorMessage) + } + + /** + * @param status The signal map monitor deployment status. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty, + ) : CdkObject(cdkObject), + MonitorDeploymentProperty { + /** + * URI associated with a signal map's monitor deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-detailsuri) + */ + override fun detailsUri(): String? = unwrap(this).getDetailsUri() + + /** + * Error message associated with a failed monitor deployment of a signal map. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-errormessage) + */ + override fun errorMessage(): String? = unwrap(this).getErrorMessage() + + /** + * The signal map monitor deployment status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-monitordeployment.html#cfn-medialive-signalmap-monitordeployment-status) + */ + override fun status(): String = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MonitorDeploymentProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty): + MonitorDeploymentProperty = CdkObjectWrappers.wrap(cdkObject) as? + MonitorDeploymentProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MonitorDeploymentProperty): + software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnSignalMap.MonitorDeploymentProperty + } + } + + /** + * Represents the latest successful monitor deployment of a signal map. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * SuccessfulMonitorDeploymentProperty successfulMonitorDeploymentProperty = + * SuccessfulMonitorDeploymentProperty.builder() + * .detailsUri("detailsUri") + * .status("status") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-successfulmonitordeployment.html) + */ + public interface SuccessfulMonitorDeploymentProperty { + /** + * URI associated with a signal map's monitor deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-successfulmonitordeployment.html#cfn-medialive-signalmap-successfulmonitordeployment-detailsuri) + */ + public fun detailsUri(): String + + /** + * A signal map's monitor deployment status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-successfulmonitordeployment.html#cfn-medialive-signalmap-successfulmonitordeployment-status) + */ + public fun status(): String + + /** + * A builder for [SuccessfulMonitorDeploymentProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param detailsUri URI associated with a signal map's monitor deployment. + */ + public fun detailsUri(detailsUri: String) + + /** + * @param status A signal map's monitor deployment status. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty.Builder + = + software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty.builder() + + /** + * @param detailsUri URI associated with a signal map's monitor deployment. + */ + override fun detailsUri(detailsUri: String) { + cdkBuilder.detailsUri(detailsUri) + } + + /** + * @param status A signal map's monitor deployment status. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty, + ) : CdkObject(cdkObject), + SuccessfulMonitorDeploymentProperty { + /** + * URI associated with a signal map's monitor deployment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-successfulmonitordeployment.html#cfn-medialive-signalmap-successfulmonitordeployment-detailsuri) + */ + override fun detailsUri(): String = unwrap(this).getDetailsUri() + + /** + * A signal map's monitor deployment status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-signalmap-successfulmonitordeployment.html#cfn-medialive-signalmap-successfulmonitordeployment-status) + */ + override fun status(): String = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SuccessfulMonitorDeploymentProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty): + SuccessfulMonitorDeploymentProperty = CdkObjectWrappers.wrap(cdkObject) as? + SuccessfulMonitorDeploymentProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SuccessfulMonitorDeploymentProperty): + software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.medialive.CfnSignalMap.SuccessfulMonitorDeploymentProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMapProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMapProps.kt new file mode 100644 index 0000000000..e6c372e565 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/medialive/CfnSignalMapProps.kt @@ -0,0 +1,344 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.medialive + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnSignalMap`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.medialive.*; + * CfnSignalMapProps cfnSignalMapProps = CfnSignalMapProps.builder() + * .discoveryEntryPointArn("discoveryEntryPointArn") + * .name("name") + * // the properties below are optional + * .cloudWatchAlarmTemplateGroupIdentifiers(List.of("cloudWatchAlarmTemplateGroupIdentifiers")) + * .description("description") + * .eventBridgeRuleTemplateGroupIdentifiers(List.of("eventBridgeRuleTemplateGroupIdentifiers")) + * .forceRediscovery(false) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html) + */ +public interface CfnSignalMapProps { + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + */ + public fun cloudWatchAlarmTemplateGroupIdentifiers(): List = + unwrap(this).getCloudWatchAlarmTemplateGroupIdentifiers() ?: emptyList() + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-discoveryentrypointarn) + */ + public fun discoveryEntryPointArn(): String + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + */ + public fun eventBridgeRuleTemplateGroupIdentifiers(): List = + unwrap(this).getEventBridgeRuleTemplateGroupIdentifiers() ?: emptyList() + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + */ + public fun forceRediscovery(): Any? = unwrap(this).getForceRediscovery() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-name) + */ + public fun name(): String + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnSignalMapProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + * Can be either be its id or current name. + */ + public + fun cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers: List) + + /** + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + * Can be either be its id or current name. + */ + public fun cloudWatchAlarmTemplateGroupIdentifiers(vararg + cloudWatchAlarmTemplateGroupIdentifiers: String) + + /** + * @param description A resource's optional description. + */ + public fun description(description: String) + + /** + * @param discoveryEntryPointArn A top-level supported Amazon Web Services resource ARN to + * discover a signal map from. + */ + public fun discoveryEntryPointArn(discoveryEntryPointArn: String) + + /** + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + * Can be either be its id or current name. + */ + public + fun eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers: List) + + /** + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + * Can be either be its id or current name. + */ + public fun eventBridgeRuleTemplateGroupIdentifiers(vararg + eventBridgeRuleTemplateGroupIdentifiers: String) + + /** + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + public fun forceRediscovery(forceRediscovery: Boolean) + + /** + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + public fun forceRediscovery(forceRediscovery: IResolvable) + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + public fun name(name: String) + + /** + * @param tags Represents the tags associated with a resource. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.medialive.CfnSignalMapProps.Builder = + software.amazon.awscdk.services.medialive.CfnSignalMapProps.builder() + + /** + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + * Can be either be its id or current name. + */ + override + fun cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers: List) { + cdkBuilder.cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers) + } + + /** + * @param cloudWatchAlarmTemplateGroupIdentifiers A cloudwatch alarm template group's + * identifier. + * Can be either be its id or current name. + */ + override fun cloudWatchAlarmTemplateGroupIdentifiers(vararg + cloudWatchAlarmTemplateGroupIdentifiers: String): Unit = + cloudWatchAlarmTemplateGroupIdentifiers(cloudWatchAlarmTemplateGroupIdentifiers.toList()) + + /** + * @param description A resource's optional description. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param discoveryEntryPointArn A top-level supported Amazon Web Services resource ARN to + * discover a signal map from. + */ + override fun discoveryEntryPointArn(discoveryEntryPointArn: String) { + cdkBuilder.discoveryEntryPointArn(discoveryEntryPointArn) + } + + /** + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + * Can be either be its id or current name. + */ + override + fun eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers: List) { + cdkBuilder.eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers) + } + + /** + * @param eventBridgeRuleTemplateGroupIdentifiers An eventbridge rule template group's + * identifier. + * Can be either be its id or current name. + */ + override fun eventBridgeRuleTemplateGroupIdentifiers(vararg + eventBridgeRuleTemplateGroupIdentifiers: String): Unit = + eventBridgeRuleTemplateGroupIdentifiers(eventBridgeRuleTemplateGroupIdentifiers.toList()) + + /** + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + override fun forceRediscovery(forceRediscovery: Boolean) { + cdkBuilder.forceRediscovery(forceRediscovery) + } + + /** + * @param forceRediscovery If true, will force a rediscovery of a signal map if an unchanged + * discoveryEntryPointArn is provided. + */ + override fun forceRediscovery(forceRediscovery: IResolvable) { + cdkBuilder.forceRediscovery(forceRediscovery.let(IResolvable.Companion::unwrap)) + } + + /** + * @param name A resource's name. + * Names must be unique within the scope of a resource type in a specific region. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Represents the tags associated with a resource. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.medialive.CfnSignalMapProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMapProps, + ) : CdkObject(cdkObject), + CfnSignalMapProps { + /** + * A cloudwatch alarm template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-cloudwatchalarmtemplategroupidentifiers) + */ + override fun cloudWatchAlarmTemplateGroupIdentifiers(): List = + unwrap(this).getCloudWatchAlarmTemplateGroupIdentifiers() ?: emptyList() + + /** + * A resource's optional description. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * A top-level supported Amazon Web Services resource ARN to discover a signal map from. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-discoveryentrypointarn) + */ + override fun discoveryEntryPointArn(): String = unwrap(this).getDiscoveryEntryPointArn() + + /** + * An eventbridge rule template group's identifier. + * + * Can be either be its id or current name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-eventbridgeruletemplategroupidentifiers) + */ + override fun eventBridgeRuleTemplateGroupIdentifiers(): List = + unwrap(this).getEventBridgeRuleTemplateGroupIdentifiers() ?: emptyList() + + /** + * If true, will force a rediscovery of a signal map if an unchanged discoveryEntryPointArn is + * provided. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-forcerediscovery) + */ + override fun forceRediscovery(): Any? = unwrap(this).getForceRediscovery() + + /** + * A resource's name. + * + * Names must be unique within the scope of a resource type in a specific region. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * Represents the tags associated with a resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-signalmap.html#cfn-medialive-signalmap-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnSignalMapProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.medialive.CfnSignalMapProps): + CfnSignalMapProps = CdkObjectWrappers.wrap(cdkObject) as? CfnSignalMapProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnSignalMapProps): + software.amazon.awscdk.services.medialive.CfnSignalMapProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.medialive.CfnSignalMapProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAsset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAsset.kt index a61bc2e7aa..fad5005792 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAsset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAsset.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAsset( cdkObject: software.amazon.awscdk.services.mediapackage.CfnAsset, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -500,7 +502,8 @@ public open class CfnAsset( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnAsset.EgressEndpointProperty, - ) : CdkObject(cdkObject), EgressEndpointProperty { + ) : CdkObject(cdkObject), + EgressEndpointProperty { /** * The ID of a packaging configuration that's applied to this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAssetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAssetProps.kt index f9f059f4a7..57937758ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAssetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnAssetProps.kt @@ -233,7 +233,8 @@ public interface CfnAssetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnAssetProps, - ) : CdkObject(cdkObject), CfnAssetProps { + ) : CdkObject(cdkObject), + CfnAssetProps { /** * List of playback endpoints that are available for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannel.kt index a96e35491a..3709b96b10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannel.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.mediapackage.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -586,7 +588,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnChannel.HlsIngestProperty, - ) : CdkObject(cdkObject), HlsIngestProperty { + ) : CdkObject(cdkObject), + HlsIngestProperty { /** * The input URL where the source stream should be sent. * @@ -727,7 +730,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnChannel.IngestEndpointProperty, - ) : CdkObject(cdkObject), IngestEndpointProperty { + ) : CdkObject(cdkObject), + IngestEndpointProperty { /** * The endpoint identifier. * @@ -829,7 +833,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnChannel.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** * Sets a custom Amazon CloudWatch log group name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannelProps.kt index 0323da67a5..9aa320bbf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnChannelProps.kt @@ -278,7 +278,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * Any descriptive information that you want to add to the channel for future identification * purposes. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpoint.kt index 31bd64e627..fe9ac69b58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpoint.kt @@ -200,7 +200,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOriginEndpoint( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1145,7 +1147,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.AuthorizationProperty, - ) : CdkObject(cdkObject), AuthorizationProperty { + ) : CdkObject(cdkObject), + AuthorizationProperty { /** * The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that your Content * Delivery Network (CDN) uses for authorization to access your endpoint. @@ -1352,7 +1355,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.CmafEncryptionProperty, - ) : CdkObject(cdkObject), CmafEncryptionProperty { + ) : CdkObject(cdkObject), + CmafEncryptionProperty { /** * An optional 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting blocks. @@ -1675,7 +1679,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.CmafPackageProperty, - ) : CdkObject(cdkObject), CmafPackageProperty { + ) : CdkObject(cdkObject), + CmafPackageProperty { /** * Parameters for encrypting content. * @@ -1854,7 +1859,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.DashEncryptionProperty, - ) : CdkObject(cdkObject), DashEncryptionProperty { + ) : CdkObject(cdkObject), + DashEncryptionProperty { /** * Number of seconds before AWS Elemental MediaPackage rotates to a new key. * @@ -2583,7 +2589,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.DashPackageProperty, - ) : CdkObject(cdkObject), DashPackageProperty { + ) : CdkObject(cdkObject), + DashPackageProperty { /** * Specifies the SCTE-35 message types that AWS Elemental MediaPackage treats as ad markers in * the output manifest. @@ -2973,7 +2980,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.EncryptionContractConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionContractConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionContractConfigurationProperty { /** * A collection of audio encryption presets. * @@ -3245,7 +3253,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.HlsEncryptionProperty, - ) : CdkObject(cdkObject), HlsEncryptionProperty { + ) : CdkObject(cdkObject), + HlsEncryptionProperty { /** * A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for * encrypting blocks. @@ -3714,7 +3723,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.HlsManifestProperty, - ) : CdkObject(cdkObject), HlsManifestProperty { + ) : CdkObject(cdkObject), + HlsManifestProperty { /** * Controls how ad markers are included in the packaged endpoint. * @@ -4409,7 +4419,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.HlsPackageProperty, - ) : CdkObject(cdkObject), HlsPackageProperty { + ) : CdkObject(cdkObject), + HlsPackageProperty { /** * Controls how ad markers are included in the packaged endpoint. * @@ -4653,7 +4664,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.MssEncryptionProperty, - ) : CdkObject(cdkObject), MssEncryptionProperty { + ) : CdkObject(cdkObject), + MssEncryptionProperty { /** * Parameters for the SPEKE key provider. * @@ -4876,7 +4888,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.MssPackageProperty, - ) : CdkObject(cdkObject), MssPackageProperty { + ) : CdkObject(cdkObject), + MssPackageProperty { /** * Parameters for encrypting content. * @@ -5185,7 +5198,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.SpekeKeyProviderProperty, - ) : CdkObject(cdkObject), SpekeKeyProviderProperty { + ) : CdkObject(cdkObject), + SpekeKeyProviderProperty { /** * The Amazon Resource Name (ARN) for the certificate that you imported to AWS Certificate * Manager to add content key encryption to this endpoint. @@ -5375,7 +5389,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.StreamSelectionProperty, - ) : CdkObject(cdkObject), StreamSelectionProperty { + ) : CdkObject(cdkObject), + StreamSelectionProperty { /** * The upper limit of the bitrates that this endpoint serves. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpointProps.kt index 475425108b..215208f36a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnOriginEndpointProps.kt @@ -672,7 +672,8 @@ public interface CfnOriginEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnOriginEndpointProps, - ) : CdkObject(cdkObject), CfnOriginEndpointProps { + ) : CdkObject(cdkObject), + CfnOriginEndpointProps { /** * Parameters for CDN authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfiguration.kt index 09050545f0..0da797b6b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfiguration.kt @@ -169,7 +169,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPackagingConfiguration( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -789,7 +791,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafEncryptionProperty, - ) : CdkObject(cdkObject), CmafEncryptionProperty { + ) : CdkObject(cdkObject), + CmafEncryptionProperty { /** * Parameters for the SPEKE key provider. * @@ -1052,7 +1055,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafPackageProperty, - ) : CdkObject(cdkObject), CmafPackageProperty { + ) : CdkObject(cdkObject), + CmafPackageProperty { /** * Parameters for encrypting content. * @@ -1198,7 +1202,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashEncryptionProperty, - ) : CdkObject(cdkObject), DashEncryptionProperty { + ) : CdkObject(cdkObject), + DashEncryptionProperty { /** * Parameters for the SPEKE key provider. * @@ -1461,7 +1466,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashManifestProperty, - ) : CdkObject(cdkObject), DashManifestProperty { + ) : CdkObject(cdkObject), + DashManifestProperty { /** * Determines the position of some tags in the Media Presentation Description (MPD). * @@ -1935,7 +1941,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashPackageProperty, - ) : CdkObject(cdkObject), DashPackageProperty { + ) : CdkObject(cdkObject), + DashPackageProperty { /** * A list of DASH manifest configurations that are available from this endpoint. * @@ -2222,7 +2229,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.EncryptionContractConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionContractConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionContractConfigurationProperty { /** * A collection of audio encryption presets. * @@ -2435,7 +2443,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsEncryptionProperty, - ) : CdkObject(cdkObject), HlsEncryptionProperty { + ) : CdkObject(cdkObject), + HlsEncryptionProperty { /** * A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for * encrypting blocks. @@ -2768,7 +2777,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsManifestProperty, - ) : CdkObject(cdkObject), HlsManifestProperty { + ) : CdkObject(cdkObject), + HlsManifestProperty { /** * This setting controls ad markers in the packaged content. * @@ -3115,7 +3125,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsPackageProperty, - ) : CdkObject(cdkObject), HlsPackageProperty { + ) : CdkObject(cdkObject), + HlsPackageProperty { /** * Parameters for encrypting content. * @@ -3266,7 +3277,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssEncryptionProperty, - ) : CdkObject(cdkObject), MssEncryptionProperty { + ) : CdkObject(cdkObject), + MssEncryptionProperty { /** * Parameters for the SPEKE key provider. * @@ -3408,7 +3420,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssManifestProperty, - ) : CdkObject(cdkObject), MssManifestProperty { + ) : CdkObject(cdkObject), + MssManifestProperty { /** * A short string that's appended to the end of the endpoint URL to create a unique path to * this packaging configuration. @@ -3617,7 +3630,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssPackageProperty, - ) : CdkObject(cdkObject), MssPackageProperty { + ) : CdkObject(cdkObject), + MssPackageProperty { /** * Parameters for encrypting content. * @@ -3865,7 +3879,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty, - ) : CdkObject(cdkObject), SpekeKeyProviderProperty { + ) : CdkObject(cdkObject), + SpekeKeyProviderProperty { /** * Use `encryptionContractConfiguration` to configure one or more content encryption keys for * your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys @@ -4036,7 +4051,8 @@ public open class CfnPackagingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.StreamSelectionProperty, - ) : CdkObject(cdkObject), StreamSelectionProperty { + ) : CdkObject(cdkObject), + StreamSelectionProperty { /** * The upper limit of the bitrates that this endpoint serves. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfigurationProps.kt index b652e863fe..9c0b561159 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingConfigurationProps.kt @@ -433,7 +433,8 @@ public interface CfnPackagingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingConfigurationProps, - ) : CdkObject(cdkObject), CfnPackagingConfigurationProps { + ) : CdkObject(cdkObject), + CfnPackagingConfigurationProps { /** * Parameters for CMAF packaging. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroup.kt index 9d081526d1..b1dfb6bde6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroup.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPackagingGroup( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -467,7 +469,8 @@ public open class CfnPackagingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingGroup.AuthorizationProperty, - ) : CdkObject(cdkObject), AuthorizationProperty { + ) : CdkObject(cdkObject), + AuthorizationProperty { /** * The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN * authorization. @@ -568,7 +571,8 @@ public open class CfnPackagingGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingGroup.LogConfigurationProperty, - ) : CdkObject(cdkObject), LogConfigurationProperty { + ) : CdkObject(cdkObject), + LogConfigurationProperty { /** * Sets a custom Amazon CloudWatch log group name for egress logs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroupProps.kt index 23769f1f8b..6e02d38bcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackage/CfnPackagingGroupProps.kt @@ -203,7 +203,8 @@ public interface CfnPackagingGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackage.CfnPackagingGroupProps, - ) : CdkObject(cdkObject), CfnPackagingGroupProps { + ) : CdkObject(cdkObject), + CfnPackagingGroupProps { /** * Parameters for CDN authorization. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannel.kt index de02c01d49..c6ed78c6f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannel.kt @@ -36,6 +36,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .channelName("channelName") * // the properties below are optional * .description("description") + * .inputType("inputType") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -47,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -74,6 +77,11 @@ public open class CfnChannel( */ public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + /** + * + */ + public open fun attrIngestEndpointUrls(): List = unwrap(this).getAttrIngestEndpointUrls() + /** * The ingest endpoints associated with the channel. */ @@ -127,6 +135,18 @@ public open class CfnChannel( unwrap(this).setDescription(`value`) } + /** + * + */ + public open fun inputType(): String? = unwrap(this).getInputType() + + /** + * + */ + public open fun inputType(`value`: String) { + unwrap(this).setInputType(`value`) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -183,6 +203,12 @@ public open class CfnChannel( */ public fun description(description: String) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype) + * @param inputType + */ + public fun inputType(inputType: String) + /** * The tags associated with the channel. * @@ -238,6 +264,14 @@ public open class CfnChannel( cdkBuilder.description(description) } + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype) + * @param inputType + */ + override fun inputType(inputType: String) { + cdkBuilder.inputType(inputType) + } + /** * The tags associated with the channel. * @@ -355,7 +389,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannel.IngestEndpointProperty, - ) : CdkObject(cdkObject), IngestEndpointProperty { + ) : CdkObject(cdkObject), + IngestEndpointProperty { /** * The identifier associated with the ingest endpoint of the channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroup.kt index 37e329dede..3291e3eeab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroup.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannelGroup( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroupProps.kt index da815615a4..7993ca4139 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelGroupProps.kt @@ -117,7 +117,8 @@ public interface CfnChannelGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelGroupProps, - ) : CdkObject(cdkObject), CfnChannelGroupProps { + ) : CdkObject(cdkObject), + CfnChannelGroupProps { /** * The name of the channel group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicy.kt index bbe69dd55f..3bfd3fc450 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicy.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannelPolicy( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicyProps.kt index 8118725445..e52d84c5e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelPolicyProps.kt @@ -103,7 +103,8 @@ public interface CfnChannelPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelPolicyProps, - ) : CdkObject(cdkObject), CfnChannelPolicyProps { + ) : CdkObject(cdkObject), + CfnChannelPolicyProps { /** * The name of the channel group associated with the channel policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelProps.kt index 9038f46cfd..36a73e3376 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnChannelProps.kt @@ -24,6 +24,7 @@ import kotlin.collections.List * .channelName("channelName") * // the properties below are optional * .description("description") + * .inputType("inputType") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -55,6 +56,11 @@ public interface CfnChannelProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype) + */ + public fun inputType(): String? = unwrap(this).getInputType() + /** * The tags associated with the channel. * @@ -83,6 +89,11 @@ public interface CfnChannelProps { */ public fun description(description: String) + /** + * @param inputType the value to be set. + */ + public fun inputType(inputType: String) + /** * @param tags The tags associated with the channel. */ @@ -120,6 +131,13 @@ public interface CfnChannelProps { cdkBuilder.description(description) } + /** + * @param inputType the value to be set. + */ + override fun inputType(inputType: String) { + cdkBuilder.inputType(inputType) + } + /** * @param tags The tags associated with the channel. */ @@ -138,7 +156,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * The name of the channel group associated with the channel configuration. * @@ -160,6 +179,11 @@ public interface CfnChannelProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channel.html#cfn-mediapackagev2-channel-inputtype) + */ + override fun inputType(): String? = unwrap(this).getInputType() + /** * The tags associated with the channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpoint.kt index 62f66bba75..37af9acd67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpoint.kt @@ -35,10 +35,37 @@ import software.constructs.Construct as SoftwareConstructsConstruct * "MyCfnOriginEndpoint") * .channelGroupName("channelGroupName") * .channelName("channelName") + * .containerType("containerType") * .originEndpointName("originEndpointName") * // the properties below are optional - * .containerType("containerType") + * .dashManifests(List.of(DashManifestConfigurationProperty.builder() + * .manifestName("manifestName") + * // the properties below are optional + * .drmSignaling("drmSignaling") + * .filterConfiguration(FilterConfigurationProperty.builder() + * .end("end") + * .manifestFilter("manifestFilter") + * .start("start") + * .timeDelaySeconds(123) + * .build()) + * .manifestWindowSeconds(123) + * .minBufferTimeSeconds(123) + * .minUpdatePeriodSeconds(123) + * .periodTriggers(List.of("periodTriggers")) + * .scteDash(ScteDashProperty.builder() + * .adMarkerDash("adMarkerDash") + * .build()) + * .segmentTemplateFormat("segmentTemplateFormat") + * .suggestedPresentationDelaySeconds(123) + * .utcTiming(DashUtcTimingProperty.builder() + * .timingMode("timingMode") + * .timingSource("timingSource") + * .build()) + * .build())) * .description("description") + * .forceEndpointErrorConfiguration(ForceEndpointErrorConfigurationProperty.builder() + * .endpointErrorConditions(List.of("endpointErrorConditions")) + * .build()) * .hlsManifests(List.of(HlsManifestConfigurationProperty.builder() * .manifestName("manifestName") * // the properties below are optional @@ -114,7 +141,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOriginEndpoint( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -141,6 +170,22 @@ public open class CfnOriginEndpoint( */ public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + /** + * + */ + public open fun attrDashManifestUrls(): List = unwrap(this).getAttrDashManifestUrls() + + /** + * + */ + public open fun attrHlsManifestUrls(): List = unwrap(this).getAttrHlsManifestUrls() + + /** + * + */ + public open fun attrLowLatencyHlsManifestUrls(): List = + unwrap(this).getAttrLowLatencyHlsManifestUrls() + /** * The timestamp of the modification of the origin endpoint. */ @@ -179,7 +224,7 @@ public open class CfnOriginEndpoint( /** * The container type associated with the origin endpoint configuration. */ - public open fun containerType(): String? = unwrap(this).getContainerType() + public open fun containerType(): String = unwrap(this).getContainerType() /** * The container type associated with the origin endpoint configuration. @@ -188,6 +233,30 @@ public open class CfnOriginEndpoint( unwrap(this).setContainerType(`value`) } + /** + * A DASH manifest configuration. + */ + public open fun dashManifests(): Any? = unwrap(this).getDashManifests() + + /** + * A DASH manifest configuration. + */ + public open fun dashManifests(`value`: IResolvable) { + unwrap(this).setDashManifests(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A DASH manifest configuration. + */ + public open fun dashManifests(`value`: List) { + unwrap(this).setDashManifests(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A DASH manifest configuration. + */ + public open fun dashManifests(vararg `value`: Any): Unit = dashManifests(`value`.toList()) + /** * The description associated with the origin endpoint. */ @@ -200,6 +269,36 @@ public open class CfnOriginEndpoint( unwrap(this).setDescription(`value`) } + /** + * The failover settings for the endpoint.

. + */ + public open fun forceEndpointErrorConfiguration(): Any? = + unwrap(this).getForceEndpointErrorConfiguration() + + /** + * The failover settings for the endpoint.

. + */ + public open fun forceEndpointErrorConfiguration(`value`: IResolvable) { + unwrap(this).setForceEndpointErrorConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The failover settings for the endpoint.

. + */ + public open + fun forceEndpointErrorConfiguration(`value`: ForceEndpointErrorConfigurationProperty) { + unwrap(this).setForceEndpointErrorConfiguration(`value`.let(ForceEndpointErrorConfigurationProperty.Companion::unwrap)) + } + + /** + * The failover settings for the endpoint.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("31efe0d6dc69efb78649f668db1822360bf376011260ada8302631686204eeee") + public open + fun forceEndpointErrorConfiguration(`value`: ForceEndpointErrorConfigurationProperty.Builder.() -> Unit): + Unit = forceEndpointErrorConfiguration(ForceEndpointErrorConfigurationProperty(`value`)) + /** * The HLS manfiests associated with the origin endpoint configuration. */ @@ -358,6 +457,30 @@ public open class CfnOriginEndpoint( */ public fun containerType(containerType: String) + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(dashManifests: IResolvable) + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(dashManifests: List) + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(vararg dashManifests: Any) + /** * The description associated with the origin endpoint. * @@ -366,6 +489,34 @@ public open class CfnOriginEndpoint( */ public fun description(description: String) + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + public fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: IResolvable) + + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + public + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: ForceEndpointErrorConfigurationProperty) + + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("947eff8aee5de70bb9564e9bc4a915d63ba9ee4b0b2819652b4b9065b300679d") + public + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: ForceEndpointErrorConfigurationProperty.Builder.() -> Unit) + /** * The HLS manfiests associated with the origin endpoint configuration. * @@ -519,6 +670,35 @@ public open class CfnOriginEndpoint( cdkBuilder.containerType(containerType) } + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(dashManifests: IResolvable) { + cdkBuilder.dashManifests(dashManifests.let(IResolvable.Companion::unwrap)) + } + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(dashManifests: List) { + cdkBuilder.dashManifests(dashManifests.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(vararg dashManifests: Any): Unit = + dashManifests(dashManifests.toList()) + /** * The description associated with the origin endpoint. * @@ -529,6 +709,40 @@ public open class CfnOriginEndpoint( cdkBuilder.description(description) } + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + override fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: IResolvable) { + cdkBuilder.forceEndpointErrorConfiguration(forceEndpointErrorConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + override + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: ForceEndpointErrorConfigurationProperty) { + cdkBuilder.forceEndpointErrorConfiguration(forceEndpointErrorConfiguration.let(ForceEndpointErrorConfigurationProperty.Companion::unwrap)) + } + + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("947eff8aee5de70bb9564e9bc4a915d63ba9ee4b0b2819652b4b9065b300679d") + override + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: ForceEndpointErrorConfigurationProperty.Builder.() -> Unit): + Unit = + forceEndpointErrorConfiguration(ForceEndpointErrorConfigurationProperty(forceEndpointErrorConfiguration)) + /** * The HLS manfiests associated with the origin endpoint configuration. * @@ -621,71 +835,725 @@ public open class CfnOriginEndpoint( } /** - * The segment associated with the origin endpoint. + * The segment associated with the origin endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-segment) + * @param segment The segment associated with the origin endpoint. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("888ca8fa0dfe89a1ccb17471efd9347cbeec41d418f2679feca29c30421aa053") + override fun segment(segment: SegmentProperty.Builder.() -> Unit): Unit = + segment(SegmentProperty(segment)) + + /** + * The size of the window (in seconds) to specify a window of the live stream that's available + * for on-demand viewing. + * + * Viewers can start-over or catch-up on content that falls within the window. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-startoverwindowseconds) + * @param startoverWindowSeconds The size of the window (in seconds) to specify a window of the + * live stream that's available for on-demand viewing. + */ + override fun startoverWindowSeconds(startoverWindowSeconds: Number) { + cdkBuilder.startoverWindowSeconds(startoverWindowSeconds) + } + + /** + * The tags associated with the origin endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-tags) + * @param tags The tags associated with the origin endpoint. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags associated with the origin endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-tags) + * @param tags The tags associated with the origin endpoint. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnOriginEndpoint { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnOriginEndpoint(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint): + CfnOriginEndpoint = CfnOriginEndpoint(cdkObject) + + internal fun unwrap(wrapped: CfnOriginEndpoint): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint = wrapped.cdkObject as + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint + } + + /** + * Retrieve the DASH manifest configuration.

. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediapackagev2.*; + * DashManifestConfigurationProperty dashManifestConfigurationProperty = + * DashManifestConfigurationProperty.builder() + * .manifestName("manifestName") + * // the properties below are optional + * .drmSignaling("drmSignaling") + * .filterConfiguration(FilterConfigurationProperty.builder() + * .end("end") + * .manifestFilter("manifestFilter") + * .start("start") + * .timeDelaySeconds(123) + * .build()) + * .manifestWindowSeconds(123) + * .minBufferTimeSeconds(123) + * .minUpdatePeriodSeconds(123) + * .periodTriggers(List.of("periodTriggers")) + * .scteDash(ScteDashProperty.builder() + * .adMarkerDash("adMarkerDash") + * .build()) + * .segmentTemplateFormat("segmentTemplateFormat") + * .suggestedPresentationDelaySeconds(123) + * .utcTiming(DashUtcTimingProperty.builder() + * .timingMode("timingMode") + * .timingSource("timingSource") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html) + */ + public interface DashManifestConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-drmsignaling) + */ + public fun drmSignaling(): String? = unwrap(this).getDrmSignaling() + + /** + * Filter configuration includes settings for manifest filtering, start and end times, and time + * delay that apply to all of your egress requests for this manifest. + * + *

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-filterconfiguration) + */ + public fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + + /** + * A short string that's appended to the endpoint URL. + * + * The manifest name creates a unique path to this endpoint. If you don't enter a value, + * MediaPackage uses the default manifest name, index.

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-manifestname) + */ + public fun manifestName(): String + + /** + * The total duration (in seconds) of the manifest's content.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-manifestwindowseconds) + */ + public fun manifestWindowSeconds(): Number? = unwrap(this).getManifestWindowSeconds() + + /** + * Minimum amount of content (in seconds) that a player must keep available in the buffer.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-minbuffertimeseconds) + */ + public fun minBufferTimeSeconds(): Number? = unwrap(this).getMinBufferTimeSeconds() + + /** + * Minimum amount of time (in seconds) that the player should wait before requesting updates to + * the manifest.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-minupdateperiodseconds) + */ + public fun minUpdatePeriodSeconds(): Number? = unwrap(this).getMinUpdatePeriodSeconds() + + /** + * A list of triggers that controls when AWS Elemental MediaPackage separates the MPEG-DASH + * manifest into multiple periods. + * + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-periodtriggers) + */ + public fun periodTriggers(): List = unwrap(this).getPeriodTriggers() ?: emptyList() + + /** + * The SCTE configuration.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-sctedash) + */ + public fun scteDash(): Any? = unwrap(this).getScteDash() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-segmenttemplateformat) + */ + public fun segmentTemplateFormat(): String? = unwrap(this).getSegmentTemplateFormat() + + /** + * The amount of time (in seconds) that the player should be from the end of the manifest.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-suggestedpresentationdelayseconds) + */ + public fun suggestedPresentationDelaySeconds(): Number? = + unwrap(this).getSuggestedPresentationDelaySeconds() + + /** + * Determines the type of UTC timing included in the DASH Media Presentation Description + * (MPD).

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-utctiming) + */ + public fun utcTiming(): Any? = unwrap(this).getUtcTiming() + + /** + * A builder for [DashManifestConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param drmSignaling the value to be set. + */ + public fun drmSignaling(drmSignaling: String) + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + public fun filterConfiguration(filterConfiguration: IResolvable) + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + public fun filterConfiguration(filterConfiguration: FilterConfigurationProperty) + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c9c71597cb955dbd506744c1077ee76abd6acdc3884ce17cd2562482051335b6") + public + fun filterConfiguration(filterConfiguration: FilterConfigurationProperty.Builder.() -> Unit) + + /** + * @param manifestName A short string that's appended to the endpoint URL. + * The manifest name creates a unique path to this endpoint. If you don't enter a value, + * MediaPackage uses the default manifest name, index.

+ */ + public fun manifestName(manifestName: String) + + /** + * @param manifestWindowSeconds The total duration (in seconds) of the manifest's + * content.

. + */ + public fun manifestWindowSeconds(manifestWindowSeconds: Number) + + /** + * @param minBufferTimeSeconds Minimum amount of content (in seconds) that a player must keep + * available in the buffer.

. + */ + public fun minBufferTimeSeconds(minBufferTimeSeconds: Number) + + /** + * @param minUpdatePeriodSeconds Minimum amount of time (in seconds) that the player should + * wait before requesting updates to the manifest.

. + */ + public fun minUpdatePeriodSeconds(minUpdatePeriodSeconds: Number) + + /** + * @param periodTriggers A list of triggers that controls when AWS Elemental MediaPackage + * separates the MPEG-DASH manifest into multiple periods. + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ */ + public fun periodTriggers(periodTriggers: List) + + /** + * @param periodTriggers A list of triggers that controls when AWS Elemental MediaPackage + * separates the MPEG-DASH manifest into multiple periods. + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ */ + public fun periodTriggers(vararg periodTriggers: String) + + /** + * @param scteDash The SCTE configuration.

. + */ + public fun scteDash(scteDash: IResolvable) + + /** + * @param scteDash The SCTE configuration.

. + */ + public fun scteDash(scteDash: ScteDashProperty) + + /** + * @param scteDash The SCTE configuration.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38790bb2dbacae4b3fd4a62c1b3a8203ea772a5c13552e23b40f72c28e14584f") + public fun scteDash(scteDash: ScteDashProperty.Builder.() -> Unit) + + /** + * @param segmentTemplateFormat the value to be set. + */ + public fun segmentTemplateFormat(segmentTemplateFormat: String) + + /** + * @param suggestedPresentationDelaySeconds The amount of time (in seconds) that the player + * should be from the end of the manifest.

. + */ + public fun suggestedPresentationDelaySeconds(suggestedPresentationDelaySeconds: Number) + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + public fun utcTiming(utcTiming: IResolvable) + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + public fun utcTiming(utcTiming: DashUtcTimingProperty) + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f7fc2a5e9905d25d702d76df25aa6f17a90741e74417f395d514442fb4e389b3") + public fun utcTiming(utcTiming: DashUtcTimingProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty.Builder + = + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty.builder() + + /** + * @param drmSignaling the value to be set. + */ + override fun drmSignaling(drmSignaling: String) { + cdkBuilder.drmSignaling(drmSignaling) + } + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + override fun filterConfiguration(filterConfiguration: IResolvable) { + cdkBuilder.filterConfiguration(filterConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + override fun filterConfiguration(filterConfiguration: FilterConfigurationProperty) { + cdkBuilder.filterConfiguration(filterConfiguration.let(FilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param filterConfiguration Filter configuration includes settings for manifest filtering, + * start and end times, and time delay that apply to all of your egress requests for this + * manifest. + *

+ */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c9c71597cb955dbd506744c1077ee76abd6acdc3884ce17cd2562482051335b6") + override + fun filterConfiguration(filterConfiguration: FilterConfigurationProperty.Builder.() -> Unit): + Unit = filterConfiguration(FilterConfigurationProperty(filterConfiguration)) + + /** + * @param manifestName A short string that's appended to the endpoint URL. + * The manifest name creates a unique path to this endpoint. If you don't enter a value, + * MediaPackage uses the default manifest name, index.

+ */ + override fun manifestName(manifestName: String) { + cdkBuilder.manifestName(manifestName) + } + + /** + * @param manifestWindowSeconds The total duration (in seconds) of the manifest's + * content.

. + */ + override fun manifestWindowSeconds(manifestWindowSeconds: Number) { + cdkBuilder.manifestWindowSeconds(manifestWindowSeconds) + } + + /** + * @param minBufferTimeSeconds Minimum amount of content (in seconds) that a player must keep + * available in the buffer.

. + */ + override fun minBufferTimeSeconds(minBufferTimeSeconds: Number) { + cdkBuilder.minBufferTimeSeconds(minBufferTimeSeconds) + } + + /** + * @param minUpdatePeriodSeconds Minimum amount of time (in seconds) that the player should + * wait before requesting updates to the manifest.

. + */ + override fun minUpdatePeriodSeconds(minUpdatePeriodSeconds: Number) { + cdkBuilder.minUpdatePeriodSeconds(minUpdatePeriodSeconds) + } + + /** + * @param periodTriggers A list of triggers that controls when AWS Elemental MediaPackage + * separates the MPEG-DASH manifest into multiple periods. + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ */ + override fun periodTriggers(periodTriggers: List) { + cdkBuilder.periodTriggers(periodTriggers) + } + + /** + * @param periodTriggers A list of triggers that controls when AWS Elemental MediaPackage + * separates the MPEG-DASH manifest into multiple periods. + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ */ + override fun periodTriggers(vararg periodTriggers: String): Unit = + periodTriggers(periodTriggers.toList()) + + /** + * @param scteDash The SCTE configuration.

. + */ + override fun scteDash(scteDash: IResolvable) { + cdkBuilder.scteDash(scteDash.let(IResolvable.Companion::unwrap)) + } + + /** + * @param scteDash The SCTE configuration.

. + */ + override fun scteDash(scteDash: ScteDashProperty) { + cdkBuilder.scteDash(scteDash.let(ScteDashProperty.Companion::unwrap)) + } + + /** + * @param scteDash The SCTE configuration.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("38790bb2dbacae4b3fd4a62c1b3a8203ea772a5c13552e23b40f72c28e14584f") + override fun scteDash(scteDash: ScteDashProperty.Builder.() -> Unit): Unit = + scteDash(ScteDashProperty(scteDash)) + + /** + * @param segmentTemplateFormat the value to be set. + */ + override fun segmentTemplateFormat(segmentTemplateFormat: String) { + cdkBuilder.segmentTemplateFormat(segmentTemplateFormat) + } + + /** + * @param suggestedPresentationDelaySeconds The amount of time (in seconds) that the player + * should be from the end of the manifest.

. + */ + override fun suggestedPresentationDelaySeconds(suggestedPresentationDelaySeconds: Number) { + cdkBuilder.suggestedPresentationDelaySeconds(suggestedPresentationDelaySeconds) + } + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + override fun utcTiming(utcTiming: IResolvable) { + cdkBuilder.utcTiming(utcTiming.let(IResolvable.Companion::unwrap)) + } + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + override fun utcTiming(utcTiming: DashUtcTimingProperty) { + cdkBuilder.utcTiming(utcTiming.let(DashUtcTimingProperty.Companion::unwrap)) + } + + /** + * @param utcTiming Determines the type of UTC timing included in the DASH Media Presentation + * Description (MPD).

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f7fc2a5e9905d25d702d76df25aa6f17a90741e74417f395d514442fb4e389b3") + override fun utcTiming(utcTiming: DashUtcTimingProperty.Builder.() -> Unit): Unit = + utcTiming(DashUtcTimingProperty(utcTiming)) + + public fun build(): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty, + ) : CdkObject(cdkObject), + DashManifestConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-drmsignaling) + */ + override fun drmSignaling(): String? = unwrap(this).getDrmSignaling() + + /** + * Filter configuration includes settings for manifest filtering, start and end times, and + * time delay that apply to all of your egress requests for this manifest. + * + *

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-filterconfiguration) + */ + override fun filterConfiguration(): Any? = unwrap(this).getFilterConfiguration() + + /** + * A short string that's appended to the endpoint URL. + * + * The manifest name creates a unique path to this endpoint. If you don't enter a value, + * MediaPackage uses the default manifest name, index.

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-manifestname) + */ + override fun manifestName(): String = unwrap(this).getManifestName() + + /** + * The total duration (in seconds) of the manifest's content.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-manifestwindowseconds) + */ + override fun manifestWindowSeconds(): Number? = unwrap(this).getManifestWindowSeconds() + + /** + * Minimum amount of content (in seconds) that a player must keep available in the + * buffer.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-minbuffertimeseconds) + */ + override fun minBufferTimeSeconds(): Number? = unwrap(this).getMinBufferTimeSeconds() + + /** + * Minimum amount of time (in seconds) that the player should wait before requesting updates + * to the manifest.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-minupdateperiodseconds) + */ + override fun minUpdatePeriodSeconds(): Number? = unwrap(this).getMinUpdatePeriodSeconds() + + /** + * A list of triggers that controls when AWS Elemental MediaPackage separates the MPEG-DASH + * manifest into multiple periods. + * + * Leave this value empty to indicate that the manifest is contained all in one period. + * For more information about periods in the DASH manifest, see [Multi-period DASH in AWS + * Elemental + * MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/userguide/multi-period.html).

+ * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-periodtriggers) + */ + override fun periodTriggers(): List = unwrap(this).getPeriodTriggers() ?: emptyList() + + /** + * The SCTE configuration.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-sctedash) + */ + override fun scteDash(): Any? = unwrap(this).getScteDash() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-segmenttemplateformat) + */ + override fun segmentTemplateFormat(): String? = unwrap(this).getSegmentTemplateFormat() + + /** + * The amount of time (in seconds) that the player should be from the end of the + * manifest.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-suggestedpresentationdelayseconds) + */ + override fun suggestedPresentationDelaySeconds(): Number? = + unwrap(this).getSuggestedPresentationDelaySeconds() + + /** + * Determines the type of UTC timing included in the DASH Media Presentation Description + * (MPD).

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-dashmanifestconfiguration-utctiming) + */ + override fun utcTiming(): Any? = unwrap(this).getUtcTiming() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + DashManifestConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty): + DashManifestConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + DashManifestConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DashManifestConfigurationProperty): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashManifestConfigurationProperty + } + } + + /** + * Determines the type of UTC timing included in the DASH Media Presentation Description (MPD). + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediapackagev2.*; + * DashUtcTimingProperty dashUtcTimingProperty = DashUtcTimingProperty.builder() + * .timingMode("timingMode") + * .timingSource("timingSource") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashutctiming.html) + */ + public interface DashUtcTimingProperty { + /** + * The UTC timing mode. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-segment) - * @param segment The segment associated with the origin endpoint. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashutctiming.html#cfn-mediapackagev2-originendpoint-dashutctiming-timingmode) */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("888ca8fa0dfe89a1ccb17471efd9347cbeec41d418f2679feca29c30421aa053") - override fun segment(segment: SegmentProperty.Builder.() -> Unit): Unit = - segment(SegmentProperty(segment)) + public fun timingMode(): String? = unwrap(this).getTimingMode() /** - * The size of the window (in seconds) to specify a window of the live stream that's available - * for on-demand viewing. - * - * Viewers can start-over or catch-up on content that falls within the window. + * The the method that the player uses to synchronize to coordinated universal time (UTC) wall + * clock time. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-startoverwindowseconds) - * @param startoverWindowSeconds The size of the window (in seconds) to specify a window of the - * live stream that's available for on-demand viewing. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashutctiming.html#cfn-mediapackagev2-originendpoint-dashutctiming-timingsource) */ - override fun startoverWindowSeconds(startoverWindowSeconds: Number) { - cdkBuilder.startoverWindowSeconds(startoverWindowSeconds) - } + public fun timingSource(): String? = unwrap(this).getTimingSource() /** - * The tags associated with the origin endpoint. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-tags) - * @param tags The tags associated with the origin endpoint. + * A builder for [DashUtcTimingProperty] */ - override fun tags(tags: List) { - cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + @CdkDslMarker + public interface Builder { + /** + * @param timingMode The UTC timing mode. + */ + public fun timingMode(timingMode: String) + + /** + * @param timingSource The the method that the player uses to synchronize to coordinated + * universal time (UTC) wall clock time. + */ + public fun timingSource(timingSource: String) } - /** - * The tags associated with the origin endpoint. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-tags) - * @param tags The tags associated with the origin endpoint. - */ - override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty.Builder + = + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty.builder() - public fun build(): software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint = - cdkBuilder.build() - } + /** + * @param timingMode The UTC timing mode. + */ + override fun timingMode(timingMode: String) { + cdkBuilder.timingMode(timingMode) + } - public companion object { - public val CFN_RESOURCE_TYPE_NAME: String = - software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.CFN_RESOURCE_TYPE_NAME + /** + * @param timingSource The the method that the player uses to synchronize to coordinated + * universal time (UTC) wall clock time. + */ + override fun timingSource(timingSource: String) { + cdkBuilder.timingSource(timingSource) + } - public operator fun invoke( - scope: CloudshiftdevConstructsConstruct, - id: String, - block: Builder.() -> Unit = {}, - ): CfnOriginEndpoint { - val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) - return CfnOriginEndpoint(builderImpl.apply(block).build()) + public fun build(): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty = + cdkBuilder.build() } - internal fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint): - CfnOriginEndpoint = CfnOriginEndpoint(cdkObject) + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty, + ) : CdkObject(cdkObject), + DashUtcTimingProperty { + /** + * The UTC timing mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashutctiming.html#cfn-mediapackagev2-originendpoint-dashutctiming-timingmode) + */ + override fun timingMode(): String? = unwrap(this).getTimingMode() - internal fun unwrap(wrapped: CfnOriginEndpoint): - software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint = wrapped.cdkObject as - software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint + /** + * The the method that the player uses to synchronize to coordinated universal time (UTC) wall + * clock time. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-dashutctiming.html#cfn-mediapackagev2-originendpoint-dashutctiming-timingsource) + */ + override fun timingSource(): String? = unwrap(this).getTimingSource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DashUtcTimingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty): + DashUtcTimingProperty = CdkObjectWrappers.wrap(cdkObject) as? DashUtcTimingProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: DashUtcTimingProperty): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.DashUtcTimingProperty + } } /** @@ -801,7 +1669,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionContractConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionContractConfigurationProperty { /** * A collection of audio encryption presets. * @@ -923,7 +1792,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty, - ) : CdkObject(cdkObject), EncryptionMethodProperty { + ) : CdkObject(cdkObject), + EncryptionMethodProperty { /** * The encryption method to use. * @@ -1176,7 +2046,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with * the key for encrypting content. @@ -1234,8 +2105,6 @@ public open class CfnOriginEndpoint( * Filter configuration includes settings for manifest filtering, start and end times, and time * delay that apply to all of your egress requests for this manifest. * - *

- * * Example: * * ``` @@ -1257,7 +2126,7 @@ public open class CfnOriginEndpoint( * Optionally specify the end time for all of your manifest egress requests. * * When you include end time, note that you cannot use end time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-end) */ @@ -1267,7 +2136,7 @@ public open class CfnOriginEndpoint( * Optionally specify one or more manifest filters for all of your manifest egress requests. * * When you include a manifest filter, note that you cannot use an identical manifest filter - * query parameter for this manifest's endpoint URL.

+ * query parameter for this manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-manifestfilter) */ @@ -1277,7 +2146,7 @@ public open class CfnOriginEndpoint( * Optionally specify the start time for all of your manifest egress requests. * * When you include start time, note that you cannot use start time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-start) */ @@ -1287,8 +2156,7 @@ public open class CfnOriginEndpoint( * Optionally specify the time delay for all of your manifest egress requests. * * Enter a value that is smaller than your endpoint's startover window. When you include time - * delay, note that you cannot use time delay query parameters for this manifest's endpoint - * URL.

+ * delay, note that you cannot use time delay query parameters for this manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-timedelayseconds) */ @@ -1302,7 +2170,7 @@ public open class CfnOriginEndpoint( /** * @param end Optionally specify the end time for all of your manifest egress requests. * When you include end time, note that you cannot use end time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. */ public fun end(end: String) @@ -1310,14 +2178,14 @@ public open class CfnOriginEndpoint( * @param manifestFilter Optionally specify one or more manifest filters for all of your * manifest egress requests. * When you include a manifest filter, note that you cannot use an identical manifest filter - * query parameter for this manifest's endpoint URL.

+ * query parameter for this manifest's endpoint URL. */ public fun manifestFilter(manifestFilter: String) /** * @param start Optionally specify the start time for all of your manifest egress requests. * When you include start time, note that you cannot use start time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. */ public fun start(start: String) @@ -1325,8 +2193,7 @@ public open class CfnOriginEndpoint( * @param timeDelaySeconds Optionally specify the time delay for all of your manifest egress * requests. * Enter a value that is smaller than your endpoint's startover window. When you include time - * delay, note that you cannot use time delay query parameters for this manifest's endpoint - * URL.

+ * delay, note that you cannot use time delay query parameters for this manifest's endpoint URL. */ public fun timeDelaySeconds(timeDelaySeconds: Number) } @@ -1340,7 +2207,7 @@ public open class CfnOriginEndpoint( /** * @param end Optionally specify the end time for all of your manifest egress requests. * When you include end time, note that you cannot use end time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. */ override fun end(end: String) { cdkBuilder.end(end) @@ -1350,7 +2217,7 @@ public open class CfnOriginEndpoint( * @param manifestFilter Optionally specify one or more manifest filters for all of your * manifest egress requests. * When you include a manifest filter, note that you cannot use an identical manifest filter - * query parameter for this manifest's endpoint URL.

+ * query parameter for this manifest's endpoint URL. */ override fun manifestFilter(manifestFilter: String) { cdkBuilder.manifestFilter(manifestFilter) @@ -1359,7 +2226,7 @@ public open class CfnOriginEndpoint( /** * @param start Optionally specify the start time for all of your manifest egress requests. * When you include start time, note that you cannot use start time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. */ override fun start(start: String) { cdkBuilder.start(start) @@ -1369,8 +2236,7 @@ public open class CfnOriginEndpoint( * @param timeDelaySeconds Optionally specify the time delay for all of your manifest egress * requests. * Enter a value that is smaller than your endpoint's startover window. When you include time - * delay, note that you cannot use time delay query parameters for this manifest's endpoint - * URL.

+ * delay, note that you cannot use time delay query parameters for this manifest's endpoint URL. */ override fun timeDelaySeconds(timeDelaySeconds: Number) { cdkBuilder.timeDelaySeconds(timeDelaySeconds) @@ -1383,12 +2249,13 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty, - ) : CdkObject(cdkObject), FilterConfigurationProperty { + ) : CdkObject(cdkObject), + FilterConfigurationProperty { /** * Optionally specify the end time for all of your manifest egress requests. * * When you include end time, note that you cannot use end time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-end) */ @@ -1398,7 +2265,7 @@ public open class CfnOriginEndpoint( * Optionally specify one or more manifest filters for all of your manifest egress requests. * * When you include a manifest filter, note that you cannot use an identical manifest filter - * query parameter for this manifest's endpoint URL.

+ * query parameter for this manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-manifestfilter) */ @@ -1408,7 +2275,7 @@ public open class CfnOriginEndpoint( * Optionally specify the start time for all of your manifest egress requests. * * When you include start time, note that you cannot use start time query parameters for this - * manifest's endpoint URL.

+ * manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-start) */ @@ -1418,8 +2285,7 @@ public open class CfnOriginEndpoint( * Optionally specify the time delay for all of your manifest egress requests. * * Enter a value that is smaller than your endpoint's startover window. When you include time - * delay, note that you cannot use time delay query parameters for this manifest's endpoint - * URL.

+ * delay, note that you cannot use time delay query parameters for this manifest's endpoint URL. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-timedelayseconds) */ @@ -1444,6 +2310,192 @@ public open class CfnOriginEndpoint( } } + /** + * The failover settings for the endpoint.

. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediapackagev2.*; + * ForceEndpointErrorConfigurationProperty forceEndpointErrorConfigurationProperty = + * ForceEndpointErrorConfigurationProperty.builder() + * .endpointErrorConditions(List.of("endpointErrorConditions")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-forceendpointerrorconfiguration.html) + */ + public interface ForceEndpointErrorConfigurationProperty { + /** + * The failover settings for the endpoint. + * + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the current + * key period.

+ * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-forceendpointerrorconfiguration.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration-endpointerrorconditions) + */ + public fun endpointErrorConditions(): List = unwrap(this).getEndpointErrorConditions() + ?: emptyList() + + /** + * A builder for [ForceEndpointErrorConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param endpointErrorConditions The failover settings for the endpoint. + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the + * current key period.

+ */ + public fun endpointErrorConditions(endpointErrorConditions: List) + + /** + * @param endpointErrorConditions The failover settings for the endpoint. + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the + * current key period.

+ */ + public fun endpointErrorConditions(vararg endpointErrorConditions: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty.Builder + = + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty.builder() + + /** + * @param endpointErrorConditions The failover settings for the endpoint. + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the + * current key period.

+ */ + override fun endpointErrorConditions(endpointErrorConditions: List) { + cdkBuilder.endpointErrorConditions(endpointErrorConditions) + } + + /** + * @param endpointErrorConditions The failover settings for the endpoint. + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the + * current key period.

+ */ + override fun endpointErrorConditions(vararg endpointErrorConditions: String): Unit = + endpointErrorConditions(endpointErrorConditions.toList()) + + public fun build(): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty, + ) : CdkObject(cdkObject), + ForceEndpointErrorConfigurationProperty { + /** + * The failover settings for the endpoint. + * + * The options are:

+ * + * * + * + * `STALE_MANIFEST` - The manifest stalled and there a no new segments or parts.

+ * + * * + * + * `INCOMPLETE_MANIFEST` - There is a gap in the manifest.

+ * + * * + * + * `MISSING_DRM_KEY` - Key rotation is enabled but we're unable to fetch the key for the + * current key period.

+ * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-forceendpointerrorconfiguration.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration-endpointerrorconditions) + */ + override fun endpointErrorConditions(): List = + unwrap(this).getEndpointErrorConditions() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ForceEndpointErrorConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty): + ForceEndpointErrorConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ForceEndpointErrorConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ForceEndpointErrorConfigurationProperty): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty + } + } + /** * The HLS manfiest configuration associated with the origin endpoint. * @@ -1721,7 +2773,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.HlsManifestConfigurationProperty, - ) : CdkObject(cdkObject), HlsManifestConfigurationProperty { + ) : CdkObject(cdkObject), + HlsManifestConfigurationProperty { /** * The name of the child manifest associated with the HLS manifest configuration. * @@ -2110,7 +3163,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty, - ) : CdkObject(cdkObject), LowLatencyHlsManifestConfigurationProperty { + ) : CdkObject(cdkObject), + LowLatencyHlsManifestConfigurationProperty { /** * The name of the child manifest associated with the low-latency HLS (LL-HLS) manifest * configuration of the origin endpoint. @@ -2201,6 +3255,123 @@ public open class CfnOriginEndpoint( } } + /** + * The SCTE configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.mediapackagev2.*; + * ScteDashProperty scteDashProperty = ScteDashProperty.builder() + * .adMarkerDash("adMarkerDash") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctedash.html) + */ + public interface ScteDashProperty { + /** + * Choose how ad markers are included in the packaged content. + * + * If you include ad markers in the content stream in your upstream encoders, then you need to + * inform MediaPackage what to do with the ad markers in the output. + * + * Value description: + * + * * `Binary` - The SCTE-35 marker is expressed as a hex-string (Base64 string) rather than full + * XML. + * * `XML` - The SCTE marker is expressed fully in XML. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctedash.html#cfn-mediapackagev2-originendpoint-sctedash-admarkerdash) + */ + public fun adMarkerDash(): String? = unwrap(this).getAdMarkerDash() + + /** + * A builder for [ScteDashProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param adMarkerDash Choose how ad markers are included in the packaged content. + * If you include ad markers in the content stream in your upstream encoders, then you need to + * inform MediaPackage what to do with the ad markers in the output. + * + * Value description: + * + * * `Binary` - The SCTE-35 marker is expressed as a hex-string (Base64 string) rather than + * full XML. + * * `XML` - The SCTE marker is expressed fully in XML. + */ + public fun adMarkerDash(adMarkerDash: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty.Builder + = + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty.builder() + + /** + * @param adMarkerDash Choose how ad markers are included in the packaged content. + * If you include ad markers in the content stream in your upstream encoders, then you need to + * inform MediaPackage what to do with the ad markers in the output. + * + * Value description: + * + * * `Binary` - The SCTE-35 marker is expressed as a hex-string (Base64 string) rather than + * full XML. + * * `XML` - The SCTE marker is expressed fully in XML. + */ + override fun adMarkerDash(adMarkerDash: String) { + cdkBuilder.adMarkerDash(adMarkerDash) + } + + public fun build(): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty, + ) : CdkObject(cdkObject), + ScteDashProperty { + /** + * Choose how ad markers are included in the packaged content. + * + * If you include ad markers in the content stream in your upstream encoders, then you need to + * inform MediaPackage what to do with the ad markers in the output. + * + * Value description: + * + * * `Binary` - The SCTE-35 marker is expressed as a hex-string (Base64 string) rather than + * full XML. + * * `XML` - The SCTE marker is expressed fully in XML. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctedash.html#cfn-mediapackagev2-originendpoint-sctedash-admarkerdash) + */ + override fun adMarkerDash(): String? = unwrap(this).getAdMarkerDash() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ScteDashProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty): + ScteDashProperty = CdkObjectWrappers.wrap(cdkObject) as? ScteDashProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ScteDashProperty): + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteDashProperty + } + } + /** * The SCTE-35 HLS configuration associated with the origin endpoint. * @@ -2255,7 +3426,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteHlsProperty, - ) : CdkObject(cdkObject), ScteHlsProperty { + ) : CdkObject(cdkObject), + ScteHlsProperty { /** * The SCTE-35 HLS ad-marker configuration. * @@ -2346,7 +3518,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.ScteProperty, - ) : CdkObject(cdkObject), ScteProperty { + ) : CdkObject(cdkObject), + ScteProperty { /** * The filter associated with the SCTE-35 configuration. * @@ -2656,7 +3829,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.SegmentProperty, - ) : CdkObject(cdkObject), SegmentProperty { + ) : CdkObject(cdkObject), + SegmentProperty { /** * Whether to use encryption for the segment. * @@ -2956,7 +4130,8 @@ public open class CfnOriginEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty, - ) : CdkObject(cdkObject), SpekeKeyProviderProperty { + ) : CdkObject(cdkObject), + SpekeKeyProviderProperty { /** * The DRM solution provider you're using to protect your content during distribution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicy.kt index 3bffa8e832..a21273c575 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicy.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOriginEndpointPolicy( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpointPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicyProps.kt index 932cf35c3d..1aa438a9cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointPolicyProps.kt @@ -128,7 +128,8 @@ public interface CfnOriginEndpointPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpointPolicyProps, - ) : CdkObject(cdkObject), CfnOriginEndpointPolicyProps { + ) : CdkObject(cdkObject), + CfnOriginEndpointPolicyProps { /** * The name of the channel group associated with the origin endpoint policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointProps.kt index 7ab13d3f4c..a656577597 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediapackagev2/CfnOriginEndpointProps.kt @@ -26,10 +26,37 @@ import kotlin.jvm.JvmName * CfnOriginEndpointProps cfnOriginEndpointProps = CfnOriginEndpointProps.builder() * .channelGroupName("channelGroupName") * .channelName("channelName") + * .containerType("containerType") * .originEndpointName("originEndpointName") * // the properties below are optional - * .containerType("containerType") + * .dashManifests(List.of(DashManifestConfigurationProperty.builder() + * .manifestName("manifestName") + * // the properties below are optional + * .drmSignaling("drmSignaling") + * .filterConfiguration(FilterConfigurationProperty.builder() + * .end("end") + * .manifestFilter("manifestFilter") + * .start("start") + * .timeDelaySeconds(123) + * .build()) + * .manifestWindowSeconds(123) + * .minBufferTimeSeconds(123) + * .minUpdatePeriodSeconds(123) + * .periodTriggers(List.of("periodTriggers")) + * .scteDash(ScteDashProperty.builder() + * .adMarkerDash("adMarkerDash") + * .build()) + * .segmentTemplateFormat("segmentTemplateFormat") + * .suggestedPresentationDelaySeconds(123) + * .utcTiming(DashUtcTimingProperty.builder() + * .timingMode("timingMode") + * .timingSource("timingSource") + * .build()) + * .build())) * .description("description") + * .forceEndpointErrorConfiguration(ForceEndpointErrorConfigurationProperty.builder() + * .endpointErrorConditions(List.of("endpointErrorConditions")) + * .build()) * .hlsManifests(List.of(HlsManifestConfigurationProperty.builder() * .manifestName("manifestName") * // the properties below are optional @@ -123,7 +150,14 @@ public interface CfnOriginEndpointProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-containertype) */ - public fun containerType(): String? = unwrap(this).getContainerType() + public fun containerType(): String + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + */ + public fun dashManifests(): Any? = unwrap(this).getDashManifests() /** * The description associated with the origin endpoint. @@ -132,6 +166,14 @@ public interface CfnOriginEndpointProps { */ public fun description(): String? = unwrap(this).getDescription() + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + */ + public fun forceEndpointErrorConfiguration(): Any? = + unwrap(this).getForceEndpointErrorConfiguration() + /** * The HLS manfiests associated with the origin endpoint configuration. * @@ -194,15 +236,49 @@ public interface CfnOriginEndpointProps { public fun channelName(channelName: String) /** - * @param containerType The container type associated with the origin endpoint configuration. + * @param containerType The container type associated with the origin endpoint configuration. */ public fun containerType(containerType: String) + /** + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(dashManifests: IResolvable) + + /** + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(dashManifests: List) + + /** + * @param dashManifests A DASH manifest configuration. + */ + public fun dashManifests(vararg dashManifests: Any) + /** * @param description The description associated with the origin endpoint. */ public fun description(description: String) + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + public fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: IResolvable) + + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + public + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty) + + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2c860eeca035db7ada9cfea1747ec40f43d4a9093396800a7d6cbcb1de92bd6d") + public + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty.Builder.() -> Unit) + /** * @param hlsManifests The HLS manfiests associated with the origin endpoint configuration. */ @@ -298,12 +374,32 @@ public interface CfnOriginEndpointProps { } /** - * @param containerType The container type associated with the origin endpoint configuration. + * @param containerType The container type associated with the origin endpoint configuration. */ override fun containerType(containerType: String) { cdkBuilder.containerType(containerType) } + /** + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(dashManifests: IResolvable) { + cdkBuilder.dashManifests(dashManifests.let(IResolvable.Companion::unwrap)) + } + + /** + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(dashManifests: List) { + cdkBuilder.dashManifests(dashManifests.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param dashManifests A DASH manifest configuration. + */ + override fun dashManifests(vararg dashManifests: Any): Unit = + dashManifests(dashManifests.toList()) + /** * @param description The description associated with the origin endpoint. */ @@ -311,6 +407,31 @@ public interface CfnOriginEndpointProps { cdkBuilder.description(description) } + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + override fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: IResolvable) { + cdkBuilder.forceEndpointErrorConfiguration(forceEndpointErrorConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + override + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty) { + cdkBuilder.forceEndpointErrorConfiguration(forceEndpointErrorConfiguration.let(CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty.Companion::unwrap)) + } + + /** + * @param forceEndpointErrorConfiguration The failover settings for the endpoint.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2c860eeca035db7ada9cfea1747ec40f43d4a9093396800a7d6cbcb1de92bd6d") + override + fun forceEndpointErrorConfiguration(forceEndpointErrorConfiguration: CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty.Builder.() -> Unit): + Unit = + forceEndpointErrorConfiguration(CfnOriginEndpoint.ForceEndpointErrorConfigurationProperty(forceEndpointErrorConfiguration)) + /** * @param hlsManifests The HLS manfiests associated with the origin endpoint configuration. */ @@ -410,7 +531,8 @@ public interface CfnOriginEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpointProps, - ) : CdkObject(cdkObject), CfnOriginEndpointProps { + ) : CdkObject(cdkObject), + CfnOriginEndpointProps { /** * The name of the channel group associated with the origin endpoint configuration. * @@ -430,7 +552,14 @@ public interface CfnOriginEndpointProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-containertype) */ - override fun containerType(): String? = unwrap(this).getContainerType() + override fun containerType(): String = unwrap(this).getContainerType() + + /** + * A DASH manifest configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-dashmanifests) + */ + override fun dashManifests(): Any? = unwrap(this).getDashManifests() /** * The description associated with the origin endpoint. @@ -439,6 +568,14 @@ public interface CfnOriginEndpointProps { */ override fun description(): String? = unwrap(this).getDescription() + /** + * The failover settings for the endpoint.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html#cfn-mediapackagev2-originendpoint-forceendpointerrorconfiguration) + */ + override fun forceEndpointErrorConfiguration(): Any? = + unwrap(this).getForceEndpointErrorConfiguration() + /** * The HLS manfiests associated with the origin endpoint configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainer.kt index 9761885acd..5fcdcc2f85 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainer.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContainer( cdkObject: software.amazon.awscdk.services.mediastore.CfnContainer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -954,7 +956,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediastore.CfnContainer.CorsRuleProperty, - ) : CdkObject(cdkObject), CorsRuleProperty { + ) : CdkObject(cdkObject), + CorsRuleProperty { /** * Specifies which headers are allowed in a preflight `OPTIONS` request through the * `Access-Control-Request-Headers` header. @@ -1175,7 +1178,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediastore.CfnContainer.MetricPolicyProperty, - ) : CdkObject(cdkObject), MetricPolicyProperty { + ) : CdkObject(cdkObject), + MetricPolicyProperty { /** * A setting to enable or disable metrics at the container level. * @@ -1298,7 +1302,8 @@ public open class CfnContainer( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediastore.CfnContainer.MetricPolicyRuleProperty, - ) : CdkObject(cdkObject), MetricPolicyRuleProperty { + ) : CdkObject(cdkObject), + MetricPolicyRuleProperty { /** * A path or file name that defines which objects to include in the group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainerProps.kt index 849e04e5d1..8dff7580ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediastore/CfnContainerProps.kt @@ -479,7 +479,8 @@ public interface CfnContainerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediastore.CfnContainerProps, - ) : CdkObject(cdkObject), CfnContainerProps { + ) : CdkObject(cdkObject), + CfnContainerProps { /** * The state of access logging on the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannel.kt index 4abed0a8ef..e6fe80a611 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannel.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannel( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -868,7 +870,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.DashPlaylistSettingsProperty, - ) : CdkObject(cdkObject), DashPlaylistSettingsProperty { + ) : CdkObject(cdkObject), + DashPlaylistSettingsProperty { /** * The total duration (in seconds) of each manifest. * @@ -1029,7 +1032,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.HlsPlaylistSettingsProperty, - ) : CdkObject(cdkObject), HlsPlaylistSettingsProperty { + ) : CdkObject(cdkObject), + HlsPlaylistSettingsProperty { /** * Determines the type of SCTE 35 tags to use in ad markup. * @@ -1134,7 +1138,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.LogConfigurationForChannelProperty, - ) : CdkObject(cdkObject), LogConfigurationForChannelProperty { + ) : CdkObject(cdkObject), + LogConfigurationForChannelProperty { /** * The log types. * @@ -1349,7 +1354,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.RequestOutputItemProperty, - ) : CdkObject(cdkObject), RequestOutputItemProperty { + ) : CdkObject(cdkObject), + RequestOutputItemProperty { /** * DASH manifest configuration parameters. * @@ -1478,7 +1484,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.SlateSourceProperty, - ) : CdkObject(cdkObject), SlateSourceProperty { + ) : CdkObject(cdkObject), + SlateSourceProperty { /** * The name of the source location where the slate VOD source is stored. * @@ -1577,7 +1584,8 @@ public open class CfnChannel( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannel.TimeShiftConfigurationProperty, - ) : CdkObject(cdkObject), TimeShiftConfigurationProperty { + ) : CdkObject(cdkObject), + TimeShiftConfigurationProperty { /** * The maximum time delay for time-shifted viewing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicy.kt index 7d0c7d13c3..f1aab18b32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicy.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnChannelPolicy( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannelPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicyProps.kt index c98bd2fef9..5ce597170c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelPolicyProps.kt @@ -87,7 +87,8 @@ public interface CfnChannelPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannelPolicyProps, - ) : CdkObject(cdkObject), CfnChannelPolicyProps { + ) : CdkObject(cdkObject), + CfnChannelPolicyProps { /** * The name of the channel associated with this Channel Policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelProps.kt index c28bc01c6d..4b03f9a918 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnChannelProps.kt @@ -432,7 +432,8 @@ public interface CfnChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnChannelProps, - ) : CdkObject(cdkObject), CfnChannelProps { + ) : CdkObject(cdkObject), + CfnChannelProps { /** * The list of audiences defined in channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSource.kt index d2019ec1ac..7fa8585316 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSource.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLiveSource( cdkObject: software.amazon.awscdk.services.mediatailor.CfnLiveSource, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -440,7 +442,8 @@ public open class CfnLiveSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnLiveSource.HttpPackageConfigurationProperty, - ) : CdkObject(cdkObject), HttpPackageConfigurationProperty { + ) : CdkObject(cdkObject), + HttpPackageConfigurationProperty { /** * The relative path to the URL for this VOD source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSourceProps.kt index 750182c1e5..b693ca3e5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnLiveSourceProps.kt @@ -185,7 +185,8 @@ public interface CfnLiveSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnLiveSourceProps, - ) : CdkObject(cdkObject), CfnLiveSourceProps { + ) : CdkObject(cdkObject), + CfnLiveSourceProps { /** * The HTTP package configurations for the live source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfiguration.kt index 186b599e70..3ceddbbbbf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfiguration.kt @@ -40,6 +40,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .videoContentSourceUrl("videoContentSourceUrl") * // the properties below are optional * .availSuppression(AvailSuppressionProperty.builder() + * .fillPolicy("fillPolicy") * .mode("mode") * .value("value") * .build()) @@ -84,7 +85,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlaybackConfiguration( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1319,7 +1322,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.AdMarkerPassthroughProperty, - ) : CdkObject(cdkObject), AdMarkerPassthroughProperty { + ) : CdkObject(cdkObject), + AdMarkerPassthroughProperty { /** * Enables ad marker passthrough for your configuration. * @@ -1359,6 +1363,7 @@ public open class CfnPlaybackConfiguration( * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.mediatailor.*; * AvailSuppressionProperty availSuppressionProperty = AvailSuppressionProperty.builder() + * .fillPolicy("fillPolicy") * .mode("mode") * .value("value") * .build(); @@ -1367,6 +1372,16 @@ public open class CfnPlaybackConfiguration( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-availsuppression.html) */ public interface AvailSuppressionProperty { + /** + * Defines the policy to apply to the avail suppression mode. + * + * `BEHIND_LIVE_EDGE` will always use the full avail suppression policy. `AFTER_LIVE_EDGE` mode + * can be used to invoke partial ad break fills when a session starts mid-break. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-availsuppression.html#cfn-mediatailor-playbackconfiguration-availsuppression-fillpolicy) + */ + public fun fillPolicy(): String? = unwrap(this).getFillPolicy() + /** * Sets the ad suppression mode. * @@ -1399,6 +1414,13 @@ public open class CfnPlaybackConfiguration( */ @CdkDslMarker public interface Builder { + /** + * @param fillPolicy Defines the policy to apply to the avail suppression mode. + * `BEHIND_LIVE_EDGE` will always use the full avail suppression policy. `AFTER_LIVE_EDGE` + * mode can be used to invoke partial ad break fills when a session starts mid-break. + */ + public fun fillPolicy(fillPolicy: String) + /** * @param mode Sets the ad suppression mode. * By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode @@ -1427,6 +1449,15 @@ public open class CfnPlaybackConfiguration( = software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.AvailSuppressionProperty.builder() + /** + * @param fillPolicy Defines the policy to apply to the avail suppression mode. + * `BEHIND_LIVE_EDGE` will always use the full avail suppression policy. `AFTER_LIVE_EDGE` + * mode can be used to invoke partial ad break fills when a session starts mid-break. + */ + override fun fillPolicy(fillPolicy: String) { + cdkBuilder.fillPolicy(fillPolicy) + } + /** * @param mode Sets the ad suppression mode. * By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode @@ -1459,7 +1490,18 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.AvailSuppressionProperty, - ) : CdkObject(cdkObject), AvailSuppressionProperty { + ) : CdkObject(cdkObject), + AvailSuppressionProperty { + /** + * Defines the policy to apply to the avail suppression mode. + * + * `BEHIND_LIVE_EDGE` will always use the full avail suppression policy. `AFTER_LIVE_EDGE` + * mode can be used to invoke partial ad break fills when a session starts mid-break. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-availsuppression.html#cfn-mediatailor-playbackconfiguration-availsuppression-fillpolicy) + */ + override fun fillPolicy(): String? = unwrap(this).getFillPolicy() + /** * Sets the ad suppression mode. * @@ -1585,7 +1627,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.BumperProperty, - ) : CdkObject(cdkObject), BumperProperty { + ) : CdkObject(cdkObject), + BumperProperty { /** * The URL for the end bumper asset. * @@ -1726,7 +1769,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.CdnConfigurationProperty, - ) : CdkObject(cdkObject), CdnConfigurationProperty { + ) : CdkObject(cdkObject), + CdnConfigurationProperty { /** * A non-default content delivery network (CDN) to serve ad segments. * @@ -1905,7 +1949,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.DashConfigurationProperty, - ) : CdkObject(cdkObject), DashConfigurationProperty { + ) : CdkObject(cdkObject), + DashConfigurationProperty { /** * The URL generated by MediaTailor to initiate a playback session. * @@ -2021,7 +2066,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.HlsConfigurationProperty, - ) : CdkObject(cdkObject), HlsConfigurationProperty { + ) : CdkObject(cdkObject), + HlsConfigurationProperty { /** * The URL that is used to initiate a playback session for devices that support Apple HLS. * @@ -2146,7 +2192,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.LivePreRollConfigurationProperty, - ) : CdkObject(cdkObject), LivePreRollConfigurationProperty { + ) : CdkObject(cdkObject), + LivePreRollConfigurationProperty { /** * The URL for the ad decision server (ADS) for pre-roll ads. * @@ -2307,7 +2354,8 @@ public open class CfnPlaybackConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfiguration.ManifestProcessingRulesProperty, - ) : CdkObject(cdkObject), ManifestProcessingRulesProperty { + ) : CdkObject(cdkObject), + ManifestProcessingRulesProperty { /** * For HLS, when set to `true` , MediaTailor passes through `EXT-X-CUE-IN` , `EXT-X-CUE-OUT` , * and `EXT-X-SPLICEPOINT-SCTE35` ad markers from the origin manifest to the MediaTailor diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfigurationProps.kt index afc4362f7d..2f8d8577b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnPlaybackConfigurationProps.kt @@ -32,6 +32,7 @@ import kotlin.jvm.JvmName * .videoContentSourceUrl("videoContentSourceUrl") * // the properties below are optional * .availSuppression(AvailSuppressionProperty.builder() + * .fillPolicy("fillPolicy") * .mode("mode") * .value("value") * .build()) @@ -777,7 +778,8 @@ public interface CfnPlaybackConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnPlaybackConfigurationProps, - ) : CdkObject(cdkObject), CfnPlaybackConfigurationProps { + ) : CdkObject(cdkObject), + CfnPlaybackConfigurationProps { /** * The URL for the ad decision server (ADS). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocation.kt index ae0039a302..86445f4617 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocation.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSourceLocation( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -766,7 +768,8 @@ public open class CfnSourceLocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation.AccessConfigurationProperty, - ) : CdkObject(cdkObject), AccessConfigurationProperty { + ) : CdkObject(cdkObject), + AccessConfigurationProperty { /** * The type of authentication used to access content from `HttpConfiguration::BaseUrl` on your * source location. Accepted value: `S3_SIGV4` . @@ -886,7 +889,8 @@ public open class CfnSourceLocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation.DefaultSegmentDeliveryConfigurationProperty, - ) : CdkObject(cdkObject), DefaultSegmentDeliveryConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultSegmentDeliveryConfigurationProperty { /** * The hostname of the server that will be used to serve segments. * @@ -975,7 +979,8 @@ public open class CfnSourceLocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation.HttpConfigurationProperty, - ) : CdkObject(cdkObject), HttpConfigurationProperty { + ) : CdkObject(cdkObject), + HttpConfigurationProperty { /** * The base URL for the source location host server. * @@ -1120,7 +1125,8 @@ public open class CfnSourceLocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation.SecretsManagerAccessTokenConfigurationProperty, - ) : CdkObject(cdkObject), SecretsManagerAccessTokenConfigurationProperty { + ) : CdkObject(cdkObject), + SecretsManagerAccessTokenConfigurationProperty { /** * The name of the HTTP header used to supply the access token in requests to the source * location. @@ -1259,7 +1265,8 @@ public open class CfnSourceLocation( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocation.SegmentDeliveryConfigurationProperty, - ) : CdkObject(cdkObject), SegmentDeliveryConfigurationProperty { + ) : CdkObject(cdkObject), + SegmentDeliveryConfigurationProperty { /** * The base URL of the host or path of the segment delivery server that you're using to serve * segments. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocationProps.kt index b272c54f61..ee2861ae7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnSourceLocationProps.kt @@ -338,7 +338,8 @@ public interface CfnSourceLocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnSourceLocationProps, - ) : CdkObject(cdkObject), CfnSourceLocationProps { + ) : CdkObject(cdkObject), + CfnSourceLocationProps { /** * The access configuration for the source location. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSource.kt index 358ab4ec50..1bde2c92e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSource.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVodSource( cdkObject: software.amazon.awscdk.services.mediatailor.CfnVodSource, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -442,7 +444,8 @@ public open class CfnVodSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnVodSource.HttpPackageConfigurationProperty, - ) : CdkObject(cdkObject), HttpPackageConfigurationProperty { + ) : CdkObject(cdkObject), + HttpPackageConfigurationProperty { /** * The relative path to the URL for this VOD source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSourceProps.kt index f38e936230..2d69a53dfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mediatailor/CfnVodSourceProps.kt @@ -187,7 +187,8 @@ public interface CfnVodSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mediatailor.CfnVodSourceProps, - ) : CdkObject(cdkObject), CfnVodSourceProps { + ) : CdkObject(cdkObject), + CfnVodSourceProps { /** * The HTTP package configurations for the VOD source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACL.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACL.kt index cb6181fccd..e87ba70abe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACL.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACL.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnACL( cdkObject: software.amazon.awscdk.services.memorydb.CfnACL, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACLProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACLProps.kt index 3515e1cc3e..cc3e2643cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACLProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnACLProps.kt @@ -141,7 +141,8 @@ public interface CfnACLProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnACLProps, - ) : CdkObject(cdkObject), CfnACLProps { + ) : CdkObject(cdkObject), + CfnACLProps { /** * The name of the Access Control List. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnCluster.kt index 25b90be4d8..9b77cd0d81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnCluster.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.memorydb.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1281,7 +1283,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnCluster.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * The DNS hostname of the node. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnClusterProps.kt index 7a7c5bce9c..c1d517fe2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnClusterProps.kt @@ -744,7 +744,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * The name of the Access Control List to associate with the cluster . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroup.kt index 58c26edb7f..321592578a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroup.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnParameterGroup( cdkObject: software.amazon.awscdk.services.memorydb.CfnParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroupProps.kt index 8fde0da21a..bb1be52286 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnParameterGroupProps.kt @@ -176,7 +176,8 @@ public interface CfnParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnParameterGroupProps, - ) : CdkObject(cdkObject), CfnParameterGroupProps { + ) : CdkObject(cdkObject), + CfnParameterGroupProps { /** * A description of the parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroup.kt index 3efcce8fc6..b68b9db010 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroup.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubnetGroup( cdkObject: software.amazon.awscdk.services.memorydb.CfnSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroupProps.kt index d8e9a89aae..5c1e5d54d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnSubnetGroupProps.kt @@ -162,7 +162,8 @@ public interface CfnSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnSubnetGroupProps, - ) : CdkObject(cdkObject), CfnSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnSubnetGroupProps { /** * A description of the subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUser.kt index c76a3b8958..20fb1d3867 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUser.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.memorydb.CfnUser, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -388,7 +390,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnUser.AuthenticationModeProperty, - ) : CdkObject(cdkObject), AuthenticationModeProperty { + ) : CdkObject(cdkObject), + AuthenticationModeProperty { /** * The password(s) used for authentication. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUserProps.kt index 20fa3205f2..bdd5fd872e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/memorydb/CfnUserProps.kt @@ -169,7 +169,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.memorydb.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * Access permissions string used for this user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecret.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecret.kt index 5724dda183..6199c35d5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecret.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecret.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBatchScramSecret( cdkObject: software.amazon.awscdk.services.msk.CfnBatchScramSecret, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecretProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecretProps.kt index e4e2e3c6b2..cf205869b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecretProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnBatchScramSecretProps.kt @@ -89,7 +89,8 @@ public interface CfnBatchScramSecretProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnBatchScramSecretProps, - ) : CdkObject(cdkObject), CfnBatchScramSecretProps { + ) : CdkObject(cdkObject), + CfnBatchScramSecretProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-batchscramsecret.html#cfn-msk-batchscramsecret-clusterarn) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnCluster.kt index d8e35e796f..71c290d38e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnCluster.kt @@ -23,24 +23,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Creates a new MSK cluster. - * - * The following Python 3.6 examples shows how you can create a cluster that's distributed over two - * Availability Zones. Before you run this Python script, replace the example subnet and security-group - * IDs with the IDs of your subnets and security group. When you create an MSK cluster, its brokers get - * evenly distributed over a number of Availability Zones that's equal to the number of subnets that - * you specify in the `BrokerNodeGroupInfo` parameter. In this example, you can add a third subnet to - * get a cluster that's distributed over three Availability Zones. - * - * ``` - * import boto3 client = boto3.client('kafka') response = client.create_cluster( - * BrokerNodeGroupInfo={ 'BrokerAZDistribution': 'DEFAULT', 'ClientSubnets': [ - * 'subnet-012345678901fedcba', 'subnet-9876543210abcdef01' ], 'InstanceType': 'kafka.m5.large', - * 'SecurityGroups': [ 'sg-012345abcdef789789' ] }, ClusterName='SalesCluster', EncryptionInfo={ - * 'EncryptionInTransit': { 'ClientBroker': 'TLS_PLAINTEXT', 'InCluster': True } }, - * EnhancedMonitoring='PER_TOPIC_PER_BROKER', KafkaVersion='2.2.1', NumberOfBrokerNodes=2 - * ) print(response) - * ``` + * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html. * * Example: * @@ -161,7 +144,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.msk.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -184,26 +169,26 @@ public open class CfnCluster( public open fun attrArn(): String = unwrap(this).getAttrArn() /** - * Information about the broker nodes in the cluster. + * */ public open fun brokerNodeGroupInfo(): Any = unwrap(this).getBrokerNodeGroupInfo() /** - * Information about the broker nodes in the cluster. + * */ public open fun brokerNodeGroupInfo(`value`: IResolvable) { unwrap(this).setBrokerNodeGroupInfo(`value`.let(IResolvable.Companion::unwrap)) } /** - * Information about the broker nodes in the cluster. + * */ public open fun brokerNodeGroupInfo(`value`: BrokerNodeGroupInfoProperty) { unwrap(this).setBrokerNodeGroupInfo(`value`.let(BrokerNodeGroupInfoProperty.Companion::unwrap)) } /** - * Information about the broker nodes in the cluster. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7e2e5f674f03566fe2694ac2bf0caa871b5f616c2a86cba3276740eb6d90f6c4") @@ -211,26 +196,26 @@ public open class CfnCluster( = brokerNodeGroupInfo(BrokerNodeGroupInfoProperty(`value`)) /** - * VPC connection control settings for brokers. + * */ public open fun clientAuthentication(): Any? = unwrap(this).getClientAuthentication() /** - * VPC connection control settings for brokers. + * */ public open fun clientAuthentication(`value`: IResolvable) { unwrap(this).setClientAuthentication(`value`.let(IResolvable.Companion::unwrap)) } /** - * VPC connection control settings for brokers. + * */ public open fun clientAuthentication(`value`: ClientAuthenticationProperty) { unwrap(this).setClientAuthentication(`value`.let(ClientAuthenticationProperty.Companion::unwrap)) } /** - * VPC connection control settings for brokers. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3f2cb45484d4623c714814349ac98bb946f3b38ef448433a4148730a1b589e02") @@ -238,38 +223,38 @@ public open class CfnCluster( Unit = clientAuthentication(ClientAuthenticationProperty(`value`)) /** - * The name of the cluster. + * */ public open fun clusterName(): String = unwrap(this).getClusterName() /** - * The name of the cluster. + * */ public open fun clusterName(`value`: String) { unwrap(this).setClusterName(`value`) } /** - * Represents the configuration that you want MSK to use for the cluster. + * */ public open fun configurationInfo(): Any? = unwrap(this).getConfigurationInfo() /** - * Represents the configuration that you want MSK to use for the cluster. + * */ public open fun configurationInfo(`value`: IResolvable) { unwrap(this).setConfigurationInfo(`value`.let(IResolvable.Companion::unwrap)) } /** - * Represents the configuration that you want MSK to use for the cluster. + * */ public open fun configurationInfo(`value`: ConfigurationInfoProperty) { unwrap(this).setConfigurationInfo(`value`.let(ConfigurationInfoProperty.Companion::unwrap)) } /** - * Represents the configuration that you want MSK to use for the cluster. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b24b0584c9fe8c8550ea380a1376a99b68f67fd23a2c4c53ad10e9062d32a311") @@ -277,38 +262,38 @@ public open class CfnCluster( configurationInfo(ConfigurationInfoProperty(`value`)) /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. */ public open fun currentVersion(): String? = unwrap(this).getCurrentVersion() /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. */ public open fun currentVersion(`value`: String) { unwrap(this).setCurrentVersion(`value`) } /** - * Includes all encryption-related information. + * */ public open fun encryptionInfo(): Any? = unwrap(this).getEncryptionInfo() /** - * Includes all encryption-related information. + * */ public open fun encryptionInfo(`value`: IResolvable) { unwrap(this).setEncryptionInfo(`value`.let(IResolvable.Companion::unwrap)) } /** - * Includes all encryption-related information. + * */ public open fun encryptionInfo(`value`: EncryptionInfoProperty) { unwrap(this).setEncryptionInfo(`value`.let(EncryptionInfoProperty.Companion::unwrap)) } /** - * Includes all encryption-related information. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("35b70b0321fc20ff434b49d0362c682d8ab55b391d776935f57b7979a5afd93c") @@ -316,12 +301,12 @@ public open class CfnCluster( encryptionInfo(EncryptionInfoProperty(`value`)) /** - * Specifies the level of monitoring for the MSK cluster. + * */ public open fun enhancedMonitoring(): String? = unwrap(this).getEnhancedMonitoring() /** - * Specifies the level of monitoring for the MSK cluster. + * */ public open fun enhancedMonitoring(`value`: String) { unwrap(this).setEnhancedMonitoring(`value`) @@ -337,38 +322,38 @@ public open class CfnCluster( } /** - * The version of Apache Kafka. + * */ public open fun kafkaVersion(): String = unwrap(this).getKafkaVersion() /** - * The version of Apache Kafka. + * */ public open fun kafkaVersion(`value`: String) { unwrap(this).setKafkaVersion(`value`) } /** - * Logging Info details. + * */ public open fun loggingInfo(): Any? = unwrap(this).getLoggingInfo() /** - * Logging Info details. + * */ public open fun loggingInfo(`value`: IResolvable) { unwrap(this).setLoggingInfo(`value`.let(IResolvable.Companion::unwrap)) } /** - * Logging Info details. + * */ public open fun loggingInfo(`value`: LoggingInfoProperty) { unwrap(this).setLoggingInfo(`value`.let(LoggingInfoProperty.Companion::unwrap)) } /** - * Logging Info details. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a40fee8e3a8755dbb891ff6119b045e98a9f230c7187de2508cf3a490a028b1d") @@ -376,38 +361,38 @@ public open class CfnCluster( loggingInfo(LoggingInfoProperty(`value`)) /** - * The number of broker nodes in the cluster. + * */ public open fun numberOfBrokerNodes(): Number = unwrap(this).getNumberOfBrokerNodes() /** - * The number of broker nodes in the cluster. + * */ public open fun numberOfBrokerNodes(`value`: Number) { unwrap(this).setNumberOfBrokerNodes(`value`) } /** - * The settings for open monitoring. + * */ public open fun openMonitoring(): Any? = unwrap(this).getOpenMonitoring() /** - * The settings for open monitoring. + * */ public open fun openMonitoring(`value`: IResolvable) { unwrap(this).setOpenMonitoring(`value`.let(IResolvable.Companion::unwrap)) } /** - * The settings for open monitoring. + * */ public open fun openMonitoring(`value`: OpenMonitoringProperty) { unwrap(this).setOpenMonitoring(`value`.let(OpenMonitoringProperty.Companion::unwrap)) } /** - * The settings for open monitoring. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("dcc34407947db21f9991c2defb5d60297c42573e7713e8671a7f8ab8236a98c1") @@ -415,12 +400,12 @@ public open class CfnCluster( openMonitoring(OpenMonitoringProperty(`value`)) /** - * This controls storage mode for supported storage tiers. + * */ public open fun storageMode(): String? = unwrap(this).getStorageMode() /** - * This controls storage mode for supported storage tiers. + * */ public open fun storageMode(`value`: String) { unwrap(this).setStorageMode(`value`) @@ -432,12 +417,12 @@ public open class CfnCluster( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. */ public open fun tagsRaw(): Map = unwrap(this).getTagsRaw() ?: emptyMap() /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. */ public open fun tagsRaw(`value`: Map) { unwrap(this).setTagsRaw(`value`) @@ -449,26 +434,20 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ public fun brokerNodeGroupInfo(brokerNodeGroupInfo: IResolvable) /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ public fun brokerNodeGroupInfo(brokerNodeGroupInfo: BrokerNodeGroupInfoProperty) /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("61ad7de6319342519a3c1d5709ea2dd2cd0a7ca9f7ee3b5bb8f1e1d709ab7ec7") @@ -476,26 +455,20 @@ public open class CfnCluster( fun brokerNodeGroupInfo(brokerNodeGroupInfo: BrokerNodeGroupInfoProperty.Builder.() -> Unit) /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ public fun clientAuthentication(clientAuthentication: IResolvable) /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ public fun clientAuthentication(clientAuthentication: ClientAuthenticationProperty) /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("94990ea4553395f051fbe13922809ed1ab7a187bb46dc003a9cea5fcce16655a") @@ -503,169 +476,128 @@ public open class CfnCluster( fun clientAuthentication(clientAuthentication: ClientAuthenticationProperty.Builder.() -> Unit) /** - * The name of the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clustername) - * @param clusterName The name of the cluster. + * @param clusterName */ public fun clusterName(clusterName: String) /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ public fun configurationInfo(configurationInfo: IResolvable) /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ public fun configurationInfo(configurationInfo: ConfigurationInfoProperty) /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03a15325d3f00abc56619850e839d374872995e53db76160e9cfd6a13842a014") public fun configurationInfo(configurationInfo: ConfigurationInfoProperty.Builder.() -> Unit) /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-currentversion) - * @param currentVersion The version of the cluster that you want to update. + * @param currentVersion The current version of the MSK cluster. */ public fun currentVersion(currentVersion: String) /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ public fun encryptionInfo(encryptionInfo: IResolvable) /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ public fun encryptionInfo(encryptionInfo: EncryptionInfoProperty) /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f3fdb09acff026972fdfc983e70307d7b654758bf6624a536e6fc64e6bd49810") public fun encryptionInfo(encryptionInfo: EncryptionInfoProperty.Builder.() -> Unit) /** - * Specifies the level of monitoring for the MSK cluster. - * - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-enhancedmonitoring) - * @param enhancedMonitoring Specifies the level of monitoring for the MSK cluster. + * @param enhancedMonitoring */ public fun enhancedMonitoring(enhancedMonitoring: String) /** - * The version of Apache Kafka. - * - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-kafkaversion) - * @param kafkaVersion The version of Apache Kafka. + * @param kafkaVersion */ public fun kafkaVersion(kafkaVersion: String) /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ public fun loggingInfo(loggingInfo: IResolvable) /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ public fun loggingInfo(loggingInfo: LoggingInfoProperty) /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c5ffd2c1ffe53f697e777a19dc8afa8e9b2aae871e686ca438912c09b5ccff3") public fun loggingInfo(loggingInfo: LoggingInfoProperty.Builder.() -> Unit) /** - * The number of broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-numberofbrokernodes) - * @param numberOfBrokerNodes The number of broker nodes in the cluster. + * @param numberOfBrokerNodes */ public fun numberOfBrokerNodes(numberOfBrokerNodes: Number) /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ public fun openMonitoring(openMonitoring: IResolvable) /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ public fun openMonitoring(openMonitoring: OpenMonitoringProperty) /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("dfb8e468253cc86a8dbad997c1624bae69c363d28d7aeb6903324f1029add53e") public fun openMonitoring(openMonitoring: OpenMonitoringProperty.Builder.() -> Unit) /** - * This controls storage mode for supported storage tiers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-storagemode) - * @param storageMode This controls storage mode for supported storage tiers. + * @param storageMode */ public fun storageMode(storageMode: String) /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags) - * @param tags Create tags when creating the cluster. + * @param tags A key-value pair to associate with a resource. */ public fun tags(tags: Map) } @@ -678,30 +610,24 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.Builder.create(scope, id) /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ override fun brokerNodeGroupInfo(brokerNodeGroupInfo: IResolvable) { cdkBuilder.brokerNodeGroupInfo(brokerNodeGroupInfo.let(IResolvable.Companion::unwrap)) } /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ override fun brokerNodeGroupInfo(brokerNodeGroupInfo: BrokerNodeGroupInfoProperty) { cdkBuilder.brokerNodeGroupInfo(brokerNodeGroupInfo.let(BrokerNodeGroupInfoProperty.Companion::unwrap)) } /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("61ad7de6319342519a3c1d5709ea2dd2cd0a7ca9f7ee3b5bb8f1e1d709ab7ec7") @@ -710,30 +636,24 @@ public open class CfnCluster( Unit = brokerNodeGroupInfo(BrokerNodeGroupInfoProperty(brokerNodeGroupInfo)) /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ override fun clientAuthentication(clientAuthentication: IResolvable) { cdkBuilder.clientAuthentication(clientAuthentication.let(IResolvable.Companion::unwrap)) } /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ override fun clientAuthentication(clientAuthentication: ClientAuthenticationProperty) { cdkBuilder.clientAuthentication(clientAuthentication.let(ClientAuthenticationProperty.Companion::unwrap)) } /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("94990ea4553395f051fbe13922809ed1ab7a187bb46dc003a9cea5fcce16655a") @@ -742,43 +662,32 @@ public open class CfnCluster( Unit = clientAuthentication(ClientAuthenticationProperty(clientAuthentication)) /** - * The name of the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clustername) - * @param clusterName The name of the cluster. + * @param clusterName */ override fun clusterName(clusterName: String) { cdkBuilder.clusterName(clusterName) } /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ override fun configurationInfo(configurationInfo: IResolvable) { cdkBuilder.configurationInfo(configurationInfo.let(IResolvable.Companion::unwrap)) } /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ override fun configurationInfo(configurationInfo: ConfigurationInfoProperty) { cdkBuilder.configurationInfo(configurationInfo.let(ConfigurationInfoProperty.Companion::unwrap)) } /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("03a15325d3f00abc56619850e839d374872995e53db76160e9cfd6a13842a014") @@ -786,40 +695,34 @@ public open class CfnCluster( Unit = configurationInfo(ConfigurationInfoProperty(configurationInfo)) /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-currentversion) - * @param currentVersion The version of the cluster that you want to update. + * @param currentVersion The current version of the MSK cluster. */ override fun currentVersion(currentVersion: String) { cdkBuilder.currentVersion(currentVersion) } /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ override fun encryptionInfo(encryptionInfo: IResolvable) { cdkBuilder.encryptionInfo(encryptionInfo.let(IResolvable.Companion::unwrap)) } /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ override fun encryptionInfo(encryptionInfo: EncryptionInfoProperty) { cdkBuilder.encryptionInfo(encryptionInfo.let(EncryptionInfoProperty.Companion::unwrap)) } /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f3fdb09acff026972fdfc983e70307d7b654758bf6624a536e6fc64e6bd49810") @@ -827,54 +730,40 @@ public open class CfnCluster( encryptionInfo(EncryptionInfoProperty(encryptionInfo)) /** - * Specifies the level of monitoring for the MSK cluster. - * - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-enhancedmonitoring) - * @param enhancedMonitoring Specifies the level of monitoring for the MSK cluster. + * @param enhancedMonitoring */ override fun enhancedMonitoring(enhancedMonitoring: String) { cdkBuilder.enhancedMonitoring(enhancedMonitoring) } /** - * The version of Apache Kafka. - * - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-kafkaversion) - * @param kafkaVersion The version of Apache Kafka. + * @param kafkaVersion */ override fun kafkaVersion(kafkaVersion: String) { cdkBuilder.kafkaVersion(kafkaVersion) } /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ override fun loggingInfo(loggingInfo: IResolvable) { cdkBuilder.loggingInfo(loggingInfo.let(IResolvable.Companion::unwrap)) } /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ override fun loggingInfo(loggingInfo: LoggingInfoProperty) { cdkBuilder.loggingInfo(loggingInfo.let(LoggingInfoProperty.Companion::unwrap)) } /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) - * @param loggingInfo Logging Info details. + * @param loggingInfo */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c5ffd2c1ffe53f697e777a19dc8afa8e9b2aae871e686ca438912c09b5ccff3") @@ -882,40 +771,32 @@ public open class CfnCluster( loggingInfo(LoggingInfoProperty(loggingInfo)) /** - * The number of broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-numberofbrokernodes) - * @param numberOfBrokerNodes The number of broker nodes in the cluster. + * @param numberOfBrokerNodes */ override fun numberOfBrokerNodes(numberOfBrokerNodes: Number) { cdkBuilder.numberOfBrokerNodes(numberOfBrokerNodes) } /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ override fun openMonitoring(openMonitoring: IResolvable) { cdkBuilder.openMonitoring(openMonitoring.let(IResolvable.Companion::unwrap)) } /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ override fun openMonitoring(openMonitoring: OpenMonitoringProperty) { cdkBuilder.openMonitoring(openMonitoring.let(OpenMonitoringProperty.Companion::unwrap)) } /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("dfb8e468253cc86a8dbad997c1624bae69c363d28d7aeb6903324f1029add53e") @@ -923,20 +804,18 @@ public open class CfnCluster( openMonitoring(OpenMonitoringProperty(openMonitoring)) /** - * This controls storage mode for supported storage tiers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-storagemode) - * @param storageMode This controls storage mode for supported storage tiers. + * @param storageMode */ override fun storageMode(storageMode: String) { cdkBuilder.storageMode(storageMode) } /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags) - * @param tags Create tags when creating the cluster. + * @param tags A key-value pair to associate with a resource. */ override fun tags(tags: Map) { cdkBuilder.tags(tags) @@ -966,8 +845,6 @@ public open class CfnCluster( } /** - * The broker logs configuration for this MSK cluster. - * * Example: * * ``` @@ -998,22 +875,16 @@ public open class CfnCluster( */ public interface BrokerLogsProperty { /** - * Details of the CloudWatch Logs destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-cloudwatchlogs) */ public fun cloudWatchLogs(): Any? = unwrap(this).getCloudWatchLogs() /** - * Details of the Kinesis Data Firehose delivery stream that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-firehose) */ public fun firehose(): Any? = unwrap(this).getFirehose() /** - * Details of the Amazon S3 destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-s3) */ public fun s3(): Any? = unwrap(this).getS3() @@ -1024,54 +895,51 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ public fun cloudWatchLogs(cloudWatchLogs: IResolvable) /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ public fun cloudWatchLogs(cloudWatchLogs: CloudWatchLogsProperty) /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("00173fc901fc925154645a69e02e48c96b0e6dac33fb9043bebccb842ae75583") public fun cloudWatchLogs(cloudWatchLogs: CloudWatchLogsProperty.Builder.() -> Unit) /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ public fun firehose(firehose: IResolvable) /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ public fun firehose(firehose: FirehoseProperty) /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("82c8164ccd7edc7f38961bf3b9efe2458c79026290d580bf7b2a72c33348744d") public fun firehose(firehose: FirehoseProperty.Builder.() -> Unit) /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ public fun s3(s3: IResolvable) /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ public fun s3(s3: S3Property) /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a20013b1bb05fba1ee7c0fa50447d6a12e6e9abc5d45e51ff716e5a1c196cd9d") @@ -1084,21 +952,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.BrokerLogsProperty.builder() /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ override fun cloudWatchLogs(cloudWatchLogs: IResolvable) { cdkBuilder.cloudWatchLogs(cloudWatchLogs.let(IResolvable.Companion::unwrap)) } /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ override fun cloudWatchLogs(cloudWatchLogs: CloudWatchLogsProperty) { cdkBuilder.cloudWatchLogs(cloudWatchLogs.let(CloudWatchLogsProperty.Companion::unwrap)) } /** - * @param cloudWatchLogs Details of the CloudWatch Logs destination for broker logs. + * @param cloudWatchLogs the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("00173fc901fc925154645a69e02e48c96b0e6dac33fb9043bebccb842ae75583") @@ -1106,24 +974,21 @@ public open class CfnCluster( cloudWatchLogs(CloudWatchLogsProperty(cloudWatchLogs)) /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ override fun firehose(firehose: IResolvable) { cdkBuilder.firehose(firehose.let(IResolvable.Companion::unwrap)) } /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ override fun firehose(firehose: FirehoseProperty) { cdkBuilder.firehose(firehose.let(FirehoseProperty.Companion::unwrap)) } /** - * @param firehose Details of the Kinesis Data Firehose delivery stream that is the - * destination for broker logs. + * @param firehose the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("82c8164ccd7edc7f38961bf3b9efe2458c79026290d580bf7b2a72c33348744d") @@ -1131,21 +996,21 @@ public open class CfnCluster( firehose(FirehoseProperty(firehose)) /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ override fun s3(s3: IResolvable) { cdkBuilder.s3(s3.let(IResolvable.Companion::unwrap)) } /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ override fun s3(s3: S3Property) { cdkBuilder.s3(s3.let(S3Property.Companion::unwrap)) } /** - * @param s3 Details of the Amazon S3 destination for broker logs. + * @param s3 the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a20013b1bb05fba1ee7c0fa50447d6a12e6e9abc5d45e51ff716e5a1c196cd9d") @@ -1157,25 +1022,19 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.BrokerLogsProperty, - ) : CdkObject(cdkObject), BrokerLogsProperty { + ) : CdkObject(cdkObject), + BrokerLogsProperty { /** - * Details of the CloudWatch Logs destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-cloudwatchlogs) */ override fun cloudWatchLogs(): Any? = unwrap(this).getCloudWatchLogs() /** - * Details of the Kinesis Data Firehose delivery stream that is the destination for broker - * logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-firehose) */ override fun firehose(): Any? = unwrap(this).getFirehose() /** - * Details of the Amazon S3 destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokerlogs.html#cfn-msk-cluster-brokerlogs-s3) */ override fun s3(): Any? = unwrap(this).getS3() @@ -1199,8 +1058,6 @@ public open class CfnCluster( } /** - * Describes the setup to be used for the broker nodes in the cluster. - * * Example: * * ``` @@ -1249,32 +1106,16 @@ public open class CfnCluster( */ public interface BrokerNodeGroupInfoProperty { /** - * This parameter is currently not in use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-brokerazdistribution) */ public fun brokerAzDistribution(): String? = unwrap(this).getBrokerAzDistribution() /** - * The list of subnets to connect to in the client virtual private cloud (VPC). - * - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other Regions - * where Amazon MSK is available, you can specify either two or three subnets. The subnets that you - * specify must be in distinct Availability Zones. When you create a cluster, Amazon MSK - * distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-clientsubnets) */ public fun clientSubnets(): List /** - * Information about the cluster's connectivity setting. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-connectivityinfo) */ public fun connectivityInfo(): Any? = unwrap(this).getConnectivityInfo() @@ -1291,20 +1132,11 @@ public open class CfnCluster( public fun instanceType(): String /** - * The security groups to associate with the elastic network interfaces in order to specify who - * can connect to and communicate with the Amazon MSK cluster. - * - * If you don't specify a security group, Amazon MSK uses the default security group associated - * with the VPC. If you specify security groups that were shared with you, you must ensure that you - * have permissions to them. Specifically, you need the `ec2:DescribeSecurityGroups` permission. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-securitygroups) */ public fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() /** - * Contains information about storage volumes attached to Amazon MSK broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-storageinfo) */ public fun storageInfo(): Any? = unwrap(this).getStorageInfo() @@ -1315,52 +1147,32 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param brokerAzDistribution This parameter is currently not in use. + * @param brokerAzDistribution the value to be set. */ public fun brokerAzDistribution(brokerAzDistribution: String) /** - * @param clientSubnets The list of subnets to connect to in the client virtual private cloud - * (VPC). - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other - * Regions where Amazon MSK is available, you can specify either two or three subnets. The - * subnets that you specify must be in distinct Availability Zones. When you create a cluster, - * Amazon MSK distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . + * @param clientSubnets the value to be set. */ public fun clientSubnets(clientSubnets: List) /** - * @param clientSubnets The list of subnets to connect to in the client virtual private cloud - * (VPC). - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other - * Regions where Amazon MSK is available, you can specify either two or three subnets. The - * subnets that you specify must be in distinct Availability Zones. When you create a cluster, - * Amazon MSK distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . + * @param clientSubnets the value to be set. */ public fun clientSubnets(vararg clientSubnets: String) /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ public fun connectivityInfo(connectivityInfo: IResolvable) /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ public fun connectivityInfo(connectivityInfo: ConnectivityInfoProperty) /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("70eb7530aacae09040edb4b6256d0549719e092e94edac49299c9e785aeddc62") @@ -1375,40 +1187,27 @@ public open class CfnCluster( public fun instanceType(instanceType: String) /** - * @param securityGroups The security groups to associate with the elastic network interfaces - * in order to specify who can connect to and communicate with the Amazon MSK cluster. - * If you don't specify a security group, Amazon MSK uses the default security group - * associated with the VPC. If you specify security groups that were shared with you, you must - * ensure that you have permissions to them. Specifically, you need the - * `ec2:DescribeSecurityGroups` permission. + * @param securityGroups the value to be set. */ public fun securityGroups(securityGroups: List) /** - * @param securityGroups The security groups to associate with the elastic network interfaces - * in order to specify who can connect to and communicate with the Amazon MSK cluster. - * If you don't specify a security group, Amazon MSK uses the default security group - * associated with the VPC. If you specify security groups that were shared with you, you must - * ensure that you have permissions to them. Specifically, you need the - * `ec2:DescribeSecurityGroups` permission. + * @param securityGroups the value to be set. */ public fun securityGroups(vararg securityGroups: String) /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ public fun storageInfo(storageInfo: IResolvable) /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ public fun storageInfo(storageInfo: StorageInfoProperty) /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ad02fa94afddc6233268390a43d23a87a02529e8eb0720bc086f03e699c7e4b") @@ -1421,61 +1220,41 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.BrokerNodeGroupInfoProperty.builder() /** - * @param brokerAzDistribution This parameter is currently not in use. + * @param brokerAzDistribution the value to be set. */ override fun brokerAzDistribution(brokerAzDistribution: String) { cdkBuilder.brokerAzDistribution(brokerAzDistribution) } /** - * @param clientSubnets The list of subnets to connect to in the client virtual private cloud - * (VPC). - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other - * Regions where Amazon MSK is available, you can specify either two or three subnets. The - * subnets that you specify must be in distinct Availability Zones. When you create a cluster, - * Amazon MSK distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . + * @param clientSubnets the value to be set. */ override fun clientSubnets(clientSubnets: List) { cdkBuilder.clientSubnets(clientSubnets) } /** - * @param clientSubnets The list of subnets to connect to in the client virtual private cloud - * (VPC). - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other - * Regions where Amazon MSK is available, you can specify either two or three subnets. The - * subnets that you specify must be in distinct Availability Zones. When you create a cluster, - * Amazon MSK distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . + * @param clientSubnets the value to be set. */ override fun clientSubnets(vararg clientSubnets: String): Unit = clientSubnets(clientSubnets.toList()) /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ override fun connectivityInfo(connectivityInfo: IResolvable) { cdkBuilder.connectivityInfo(connectivityInfo.let(IResolvable.Companion::unwrap)) } /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ override fun connectivityInfo(connectivityInfo: ConnectivityInfoProperty) { cdkBuilder.connectivityInfo(connectivityInfo.let(ConnectivityInfoProperty.Companion::unwrap)) } /** - * @param connectivityInfo Information about the cluster's connectivity setting. + * @param connectivityInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("70eb7530aacae09040edb4b6256d0549719e092e94edac49299c9e785aeddc62") @@ -1493,47 +1272,34 @@ public open class CfnCluster( } /** - * @param securityGroups The security groups to associate with the elastic network interfaces - * in order to specify who can connect to and communicate with the Amazon MSK cluster. - * If you don't specify a security group, Amazon MSK uses the default security group - * associated with the VPC. If you specify security groups that were shared with you, you must - * ensure that you have permissions to them. Specifically, you need the - * `ec2:DescribeSecurityGroups` permission. + * @param securityGroups the value to be set. */ override fun securityGroups(securityGroups: List) { cdkBuilder.securityGroups(securityGroups) } /** - * @param securityGroups The security groups to associate with the elastic network interfaces - * in order to specify who can connect to and communicate with the Amazon MSK cluster. - * If you don't specify a security group, Amazon MSK uses the default security group - * associated with the VPC. If you specify security groups that were shared with you, you must - * ensure that you have permissions to them. Specifically, you need the - * `ec2:DescribeSecurityGroups` permission. + * @param securityGroups the value to be set. */ override fun securityGroups(vararg securityGroups: String): Unit = securityGroups(securityGroups.toList()) /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ override fun storageInfo(storageInfo: IResolvable) { cdkBuilder.storageInfo(storageInfo.let(IResolvable.Companion::unwrap)) } /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ override fun storageInfo(storageInfo: StorageInfoProperty) { cdkBuilder.storageInfo(storageInfo.let(StorageInfoProperty.Companion::unwrap)) } /** - * @param storageInfo Contains information about storage volumes attached to Amazon MSK broker - * nodes. + * @param storageInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ad02fa94afddc6233268390a43d23a87a02529e8eb0720bc086f03e699c7e4b") @@ -1546,34 +1312,19 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.BrokerNodeGroupInfoProperty, - ) : CdkObject(cdkObject), BrokerNodeGroupInfoProperty { + ) : CdkObject(cdkObject), + BrokerNodeGroupInfoProperty { /** - * This parameter is currently not in use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-brokerazdistribution) */ override fun brokerAzDistribution(): String? = unwrap(this).getBrokerAzDistribution() /** - * The list of subnets to connect to in the client virtual private cloud (VPC). - * - * Amazon creates elastic network interfaces inside these subnets. Client applications use - * elastic network interfaces to produce and consume data. - * - * If you use the US West (N. California) Region, specify exactly two subnets. For other - * Regions where Amazon MSK is available, you can specify either two or three subnets. The - * subnets that you specify must be in distinct Availability Zones. When you create a cluster, - * Amazon MSK distributes the broker nodes evenly across the subnets that you specify. - * - * Client subnets can't occupy the Availability Zone with ID `use1-az3` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-clientsubnets) */ override fun clientSubnets(): List = unwrap(this).getClientSubnets() /** - * Information about the cluster's connectivity setting. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-connectivityinfo) */ override fun connectivityInfo(): Any? = unwrap(this).getConnectivityInfo() @@ -1590,21 +1341,11 @@ public open class CfnCluster( override fun instanceType(): String = unwrap(this).getInstanceType() /** - * The security groups to associate with the elastic network interfaces in order to specify - * who can connect to and communicate with the Amazon MSK cluster. - * - * If you don't specify a security group, Amazon MSK uses the default security group - * associated with the VPC. If you specify security groups that were shared with you, you must - * ensure that you have permissions to them. Specifically, you need the - * `ec2:DescribeSecurityGroups` permission. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-securitygroups) */ override fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() /** - * Contains information about storage volumes attached to Amazon MSK broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-storageinfo) */ override fun storageInfo(): Any? = unwrap(this).getStorageInfo() @@ -1629,8 +1370,6 @@ public open class CfnCluster( } /** - * Includes all client authentication information. - * * Example: * * ``` @@ -1661,29 +1400,16 @@ public open class CfnCluster( */ public interface ClientAuthenticationProperty { /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. - * You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , - * then you must also set `unauthenticated` to true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-sasl) */ public fun sasl(): Any? = unwrap(this).getSasl() /** - * Details for ClientAuthentication using TLS. - * - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-tls) */ public fun tls(): Any? = unwrap(this).getTls() /** - * Details for ClientAuthentication using no authentication. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-unauthenticated) */ public fun unauthenticated(): Any? = unwrap(this).getUnauthenticated() @@ -1694,66 +1420,51 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ public fun sasl(sasl: IResolvable) /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ public fun sasl(sasl: SaslProperty) /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("713c425e8307846c7f9d89f7971c7cab5fd866d3111c9ded45af6da17f6b2b36") public fun sasl(sasl: SaslProperty.Builder.() -> Unit) /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ public fun tls(tls: IResolvable) /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ public fun tls(tls: TlsProperty) /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5404832d90b1ea5c7ea1ebc1ff6128e87f9402511c0cd0dc499441dd0a223dd0") public fun tls(tls: TlsProperty.Builder.() -> Unit) /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ public fun unauthenticated(unauthenticated: IResolvable) /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ public fun unauthenticated(unauthenticated: UnauthenticatedProperty) /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a919ef04e218ebd8fb3f81e42bd0dd313075ff02b066e0e3a1218a994857c38d") @@ -1766,78 +1477,63 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.ClientAuthenticationProperty.builder() /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ override fun sasl(sasl: IResolvable) { cdkBuilder.sasl(sasl.let(IResolvable.Companion::unwrap)) } /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ override fun sasl(sasl: SaslProperty) { cdkBuilder.sasl(sasl.let(SaslProperty.Companion::unwrap)) } /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("713c425e8307846c7f9d89f7971c7cab5fd866d3111c9ded45af6da17f6b2b36") override fun sasl(sasl: SaslProperty.Builder.() -> Unit): Unit = sasl(SaslProperty(sasl)) /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ override fun tls(tls: IResolvable) { cdkBuilder.tls(tls.let(IResolvable.Companion::unwrap)) } /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ override fun tls(tls: TlsProperty) { cdkBuilder.tls(tls.let(TlsProperty.Companion::unwrap)) } /** - * @param tls Details for ClientAuthentication using TLS. - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . + * @param tls the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5404832d90b1ea5c7ea1ebc1ff6128e87f9402511c0cd0dc499441dd0a223dd0") override fun tls(tls: TlsProperty.Builder.() -> Unit): Unit = tls(TlsProperty(tls)) /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ override fun unauthenticated(unauthenticated: IResolvable) { cdkBuilder.unauthenticated(unauthenticated.let(IResolvable.Companion::unwrap)) } /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ override fun unauthenticated(unauthenticated: UnauthenticatedProperty) { cdkBuilder.unauthenticated(unauthenticated.let(UnauthenticatedProperty.Companion::unwrap)) } /** - * @param unauthenticated Details for ClientAuthentication using no authentication. + * @param unauthenticated the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a919ef04e218ebd8fb3f81e42bd0dd313075ff02b066e0e3a1218a994857c38d") @@ -1851,31 +1547,19 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.ClientAuthenticationProperty, - ) : CdkObject(cdkObject), ClientAuthenticationProperty { + ) : CdkObject(cdkObject), + ClientAuthenticationProperty { /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-sasl) */ override fun sasl(): Any? = unwrap(this).getSasl() /** - * Details for ClientAuthentication using TLS. - * - * To turn on TLS access control, you must also turn on `EncryptionInTransit` by setting - * `inCluster` to true and `clientBroker` to `TLS` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-tls) */ override fun tls(): Any? = unwrap(this).getTls() /** - * Details for ClientAuthentication using no authentication. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-unauthenticated) */ override fun unauthenticated(): Any? = unwrap(this).getUnauthenticated() @@ -1900,8 +1584,6 @@ public open class CfnCluster( } /** - * Details of the CloudWatch Logs destination for broker logs. - * * Example: * * ``` @@ -1919,15 +1601,11 @@ public open class CfnCluster( */ public interface CloudWatchLogsProperty { /** - * Specifies whether broker logs get sent to the specified CloudWatch Logs destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-cloudwatchlogs.html#cfn-msk-cluster-cloudwatchlogs-enabled) */ public fun enabled(): Any /** - * The CloudWatch log group that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-cloudwatchlogs.html#cfn-msk-cluster-cloudwatchlogs-loggroup) */ public fun logGroup(): String? = unwrap(this).getLogGroup() @@ -1938,19 +1616,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled Specifies whether broker logs get sent to the specified CloudWatch Logs - * destination. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled Specifies whether broker logs get sent to the specified CloudWatch Logs - * destination. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) /** - * @param logGroup The CloudWatch log group that is the destination for broker logs. + * @param logGroup the value to be set. */ public fun logGroup(logGroup: String) } @@ -1961,23 +1637,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.CloudWatchLogsProperty.builder() /** - * @param enabled Specifies whether broker logs get sent to the specified CloudWatch Logs - * destination. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Specifies whether broker logs get sent to the specified CloudWatch Logs - * destination. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } /** - * @param logGroup The CloudWatch log group that is the destination for broker logs. + * @param logGroup the value to be set. */ override fun logGroup(logGroup: String) { cdkBuilder.logGroup(logGroup) @@ -1989,17 +1663,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.CloudWatchLogsProperty, - ) : CdkObject(cdkObject), CloudWatchLogsProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsProperty { /** - * Specifies whether broker logs get sent to the specified CloudWatch Logs destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-cloudwatchlogs.html#cfn-msk-cluster-cloudwatchlogs-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() /** - * The CloudWatch log group that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-cloudwatchlogs.html#cfn-msk-cluster-cloudwatchlogs-loggroup) */ override fun logGroup(): String? = unwrap(this).getLogGroup() @@ -2024,8 +1695,6 @@ public open class CfnCluster( } /** - * Specifies the configuration to use for the brokers. - * * Example: * * ``` @@ -2042,15 +1711,11 @@ public open class CfnCluster( */ public interface ConfigurationInfoProperty { /** - * ARN of the configuration to use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-arn) */ public fun arn(): String /** - * The revision of the configuration to use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-revision) */ public fun revision(): Number @@ -2061,12 +1726,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param arn ARN of the configuration to use. + * @param arn the value to be set. */ public fun arn(arn: String) /** - * @param revision The revision of the configuration to use. + * @param revision the value to be set. */ public fun revision(revision: Number) } @@ -2077,14 +1742,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.ConfigurationInfoProperty.builder() /** - * @param arn ARN of the configuration to use. + * @param arn the value to be set. */ override fun arn(arn: String) { cdkBuilder.arn(arn) } /** - * @param revision The revision of the configuration to use. + * @param revision the value to be set. */ override fun revision(revision: Number) { cdkBuilder.revision(revision) @@ -2096,17 +1761,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.ConfigurationInfoProperty, - ) : CdkObject(cdkObject), ConfigurationInfoProperty { + ) : CdkObject(cdkObject), + ConfigurationInfoProperty { /** - * ARN of the configuration to use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-arn) */ override fun arn(): String = unwrap(this).getArn() /** - * The revision of the configuration to use. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-revision) */ override fun revision(): Number = unwrap(this).getRevision() @@ -2131,8 +1793,6 @@ public open class CfnCluster( } /** - * Broker access controls. - * * Example: * * ``` @@ -2165,15 +1825,11 @@ public open class CfnCluster( */ public interface ConnectivityInfoProperty { /** - * Access control settings for the cluster's brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-connectivityinfo.html#cfn-msk-cluster-connectivityinfo-publicaccess) */ public fun publicAccess(): Any? = unwrap(this).getPublicAccess() /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-connectivityinfo.html#cfn-msk-cluster-connectivityinfo-vpcconnectivity) */ public fun vpcConnectivity(): Any? = unwrap(this).getVpcConnectivity() @@ -2184,34 +1840,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ public fun publicAccess(publicAccess: IResolvable) /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ public fun publicAccess(publicAccess: PublicAccessProperty) /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7a7888d4955b3315da4a19ed9554bec66f86fb723efe1814ec8149ab6ece268e") public fun publicAccess(publicAccess: PublicAccessProperty.Builder.() -> Unit) /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ public fun vpcConnectivity(vpcConnectivity: IResolvable) /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ public fun vpcConnectivity(vpcConnectivity: VpcConnectivityProperty) /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ca41c7a838de77bd0fa0a604512e42a1b2e929eec389c095805c30bf57f92ae") @@ -2224,21 +1880,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.ConnectivityInfoProperty.builder() /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ override fun publicAccess(publicAccess: IResolvable) { cdkBuilder.publicAccess(publicAccess.let(IResolvable.Companion::unwrap)) } /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ override fun publicAccess(publicAccess: PublicAccessProperty) { cdkBuilder.publicAccess(publicAccess.let(PublicAccessProperty.Companion::unwrap)) } /** - * @param publicAccess Access control settings for the cluster's brokers. + * @param publicAccess the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7a7888d4955b3315da4a19ed9554bec66f86fb723efe1814ec8149ab6ece268e") @@ -2246,21 +1902,21 @@ public open class CfnCluster( publicAccess(PublicAccessProperty(publicAccess)) /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ override fun vpcConnectivity(vpcConnectivity: IResolvable) { cdkBuilder.vpcConnectivity(vpcConnectivity.let(IResolvable.Companion::unwrap)) } /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ override fun vpcConnectivity(vpcConnectivity: VpcConnectivityProperty) { cdkBuilder.vpcConnectivity(vpcConnectivity.let(VpcConnectivityProperty.Companion::unwrap)) } /** - * @param vpcConnectivity VPC connection control settings for brokers. + * @param vpcConnectivity the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7ca41c7a838de77bd0fa0a604512e42a1b2e929eec389c095805c30bf57f92ae") @@ -2273,17 +1929,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.ConnectivityInfoProperty, - ) : CdkObject(cdkObject), ConnectivityInfoProperty { + ) : CdkObject(cdkObject), + ConnectivityInfoProperty { /** - * Access control settings for the cluster's brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-connectivityinfo.html#cfn-msk-cluster-connectivityinfo-publicaccess) */ override fun publicAccess(): Any? = unwrap(this).getPublicAccess() /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-connectivityinfo.html#cfn-msk-cluster-connectivityinfo-vpcconnectivity) */ override fun vpcConnectivity(): Any? = unwrap(this).getVpcConnectivity() @@ -2308,8 +1961,6 @@ public open class CfnCluster( } /** - * Contains information about the EBS storage volumes attached to the broker nodes. - * * Example: * * ``` @@ -2329,15 +1980,11 @@ public open class CfnCluster( */ public interface EBSStorageInfoProperty { /** - * EBS volume provisioned throughput information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-ebsstorageinfo.html#cfn-msk-cluster-ebsstorageinfo-provisionedthroughput) */ public fun provisionedThroughput(): Any? = unwrap(this).getProvisionedThroughput() /** - * The size in GiB of the EBS volume for the data drive on each broker node. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-ebsstorageinfo.html#cfn-msk-cluster-ebsstorageinfo-volumesize) */ public fun volumeSize(): Number? = unwrap(this).getVolumeSize() @@ -2348,17 +1995,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ public fun provisionedThroughput(provisionedThroughput: IResolvable) /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ public fun provisionedThroughput(provisionedThroughput: ProvisionedThroughputProperty) /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("becd042847a0cda11c380a0be5e18fc2c67b234230e0f9a0119385cca50f9349") @@ -2366,7 +2013,7 @@ public open class CfnCluster( fun provisionedThroughput(provisionedThroughput: ProvisionedThroughputProperty.Builder.() -> Unit) /** - * @param volumeSize The size in GiB of the EBS volume for the data drive on each broker node. + * @param volumeSize the value to be set. */ public fun volumeSize(volumeSize: Number) } @@ -2377,21 +2024,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.EBSStorageInfoProperty.builder() /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ override fun provisionedThroughput(provisionedThroughput: IResolvable) { cdkBuilder.provisionedThroughput(provisionedThroughput.let(IResolvable.Companion::unwrap)) } /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ override fun provisionedThroughput(provisionedThroughput: ProvisionedThroughputProperty) { cdkBuilder.provisionedThroughput(provisionedThroughput.let(ProvisionedThroughputProperty.Companion::unwrap)) } /** - * @param provisionedThroughput EBS volume provisioned throughput information. + * @param provisionedThroughput the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("becd042847a0cda11c380a0be5e18fc2c67b234230e0f9a0119385cca50f9349") @@ -2400,7 +2047,7 @@ public open class CfnCluster( Unit = provisionedThroughput(ProvisionedThroughputProperty(provisionedThroughput)) /** - * @param volumeSize The size in GiB of the EBS volume for the data drive on each broker node. + * @param volumeSize the value to be set. */ override fun volumeSize(volumeSize: Number) { cdkBuilder.volumeSize(volumeSize) @@ -2412,17 +2059,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.EBSStorageInfoProperty, - ) : CdkObject(cdkObject), EBSStorageInfoProperty { + ) : CdkObject(cdkObject), + EBSStorageInfoProperty { /** - * EBS volume provisioned throughput information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-ebsstorageinfo.html#cfn-msk-cluster-ebsstorageinfo-provisionedthroughput) */ override fun provisionedThroughput(): Any? = unwrap(this).getProvisionedThroughput() /** - * The size in GiB of the EBS volume for the data drive on each broker node. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-ebsstorageinfo.html#cfn-msk-cluster-ebsstorageinfo-volumesize) */ override fun volumeSize(): Number? = unwrap(this).getVolumeSize() @@ -2447,10 +2091,6 @@ public open class CfnCluster( } /** - * The data-volume encryption details. - * - * You can't update encryption at rest settings for existing clusters. - * * Example: * * ``` @@ -2466,10 +2106,6 @@ public open class CfnCluster( */ public interface EncryptionAtRestProperty { /** - * The Amazon Resource Name (ARN) of the Amazon KMS key for encrypting data at rest. - * - * If you don't specify a KMS key, MSK creates one for you and uses it. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionatrest.html#cfn-msk-cluster-encryptionatrest-datavolumekmskeyid) */ public fun dataVolumeKmsKeyId(): String @@ -2480,9 +2116,7 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param dataVolumeKmsKeyId The Amazon Resource Name (ARN) of the Amazon KMS key for - * encrypting data at rest. - * If you don't specify a KMS key, MSK creates one for you and uses it. + * @param dataVolumeKmsKeyId the value to be set. */ public fun dataVolumeKmsKeyId(dataVolumeKmsKeyId: String) } @@ -2493,9 +2127,7 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.EncryptionAtRestProperty.builder() /** - * @param dataVolumeKmsKeyId The Amazon Resource Name (ARN) of the Amazon KMS key for - * encrypting data at rest. - * If you don't specify a KMS key, MSK creates one for you and uses it. + * @param dataVolumeKmsKeyId the value to be set. */ override fun dataVolumeKmsKeyId(dataVolumeKmsKeyId: String) { cdkBuilder.dataVolumeKmsKeyId(dataVolumeKmsKeyId) @@ -2507,12 +2139,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.EncryptionAtRestProperty, - ) : CdkObject(cdkObject), EncryptionAtRestProperty { + ) : CdkObject(cdkObject), + EncryptionAtRestProperty { /** - * The Amazon Resource Name (ARN) of the Amazon KMS key for encrypting data at rest. - * - * If you don't specify a KMS key, MSK creates one for you and uses it. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionatrest.html#cfn-msk-cluster-encryptionatrest-datavolumekmskeyid) */ override fun dataVolumeKmsKeyId(): String = unwrap(this).getDataVolumeKmsKeyId() @@ -2537,8 +2166,6 @@ public open class CfnCluster( } /** - * The settings for encrypting data in transit. - * * Example: * * ``` @@ -2555,31 +2182,11 @@ public open class CfnCluster( */ public interface EncryptionInTransitProperty { /** - * Indicates the encryption setting for data in transit between clients and brokers. - * - * You must set it to one of the following values. - * - * `TLS` means that client-broker communication is enabled with TLS only. - * - * `TLS_PLAINTEXT` means that client-broker communication is enabled for both TLS-encrypted, as - * well as plaintext data. - * - * `PLAINTEXT` means that client-broker communication is enabled in plaintext only. - * - * The default value is `TLS` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionintransit.html#cfn-msk-cluster-encryptionintransit-clientbroker) */ public fun clientBroker(): String? = unwrap(this).getClientBroker() /** - * When set to true, it indicates that data communication among the broker nodes of the cluster - * is encrypted. - * - * When set to false, the communication happens in plaintext. - * - * The default value is true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionintransit.html#cfn-msk-cluster-encryptionintransit-incluster) */ public fun inCluster(): Any? = unwrap(this).getInCluster() @@ -2590,36 +2197,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param clientBroker Indicates the encryption setting for data in transit between clients - * and brokers. - * You must set it to one of the following values. - * - * `TLS` means that client-broker communication is enabled with TLS only. - * - * `TLS_PLAINTEXT` means that client-broker communication is enabled for both TLS-encrypted, - * as well as plaintext data. - * - * `PLAINTEXT` means that client-broker communication is enabled in plaintext only. - * - * The default value is `TLS` . + * @param clientBroker the value to be set. */ public fun clientBroker(clientBroker: String) /** - * @param inCluster When set to true, it indicates that data communication among the broker - * nodes of the cluster is encrypted. - * When set to false, the communication happens in plaintext. - * - * The default value is true. + * @param inCluster the value to be set. */ public fun inCluster(inCluster: Boolean) /** - * @param inCluster When set to true, it indicates that data communication among the broker - * nodes of the cluster is encrypted. - * When set to false, the communication happens in plaintext. - * - * The default value is true. + * @param inCluster the value to be set. */ public fun inCluster(inCluster: IResolvable) } @@ -2630,40 +2218,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.EncryptionInTransitProperty.builder() /** - * @param clientBroker Indicates the encryption setting for data in transit between clients - * and brokers. - * You must set it to one of the following values. - * - * `TLS` means that client-broker communication is enabled with TLS only. - * - * `TLS_PLAINTEXT` means that client-broker communication is enabled for both TLS-encrypted, - * as well as plaintext data. - * - * `PLAINTEXT` means that client-broker communication is enabled in plaintext only. - * - * The default value is `TLS` . + * @param clientBroker the value to be set. */ override fun clientBroker(clientBroker: String) { cdkBuilder.clientBroker(clientBroker) } /** - * @param inCluster When set to true, it indicates that data communication among the broker - * nodes of the cluster is encrypted. - * When set to false, the communication happens in plaintext. - * - * The default value is true. + * @param inCluster the value to be set. */ override fun inCluster(inCluster: Boolean) { cdkBuilder.inCluster(inCluster) } /** - * @param inCluster When set to true, it indicates that data communication among the broker - * nodes of the cluster is encrypted. - * When set to false, the communication happens in plaintext. - * - * The default value is true. + * @param inCluster the value to be set. */ override fun inCluster(inCluster: IResolvable) { cdkBuilder.inCluster(inCluster.let(IResolvable.Companion::unwrap)) @@ -2675,33 +2244,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.EncryptionInTransitProperty, - ) : CdkObject(cdkObject), EncryptionInTransitProperty { + ) : CdkObject(cdkObject), + EncryptionInTransitProperty { /** - * Indicates the encryption setting for data in transit between clients and brokers. - * - * You must set it to one of the following values. - * - * `TLS` means that client-broker communication is enabled with TLS only. - * - * `TLS_PLAINTEXT` means that client-broker communication is enabled for both TLS-encrypted, - * as well as plaintext data. - * - * `PLAINTEXT` means that client-broker communication is enabled in plaintext only. - * - * The default value is `TLS` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionintransit.html#cfn-msk-cluster-encryptionintransit-clientbroker) */ override fun clientBroker(): String? = unwrap(this).getClientBroker() /** - * When set to true, it indicates that data communication among the broker nodes of the - * cluster is encrypted. - * - * When set to false, the communication happens in plaintext. - * - * The default value is true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionintransit.html#cfn-msk-cluster-encryptionintransit-incluster) */ override fun inCluster(): Any? = unwrap(this).getInCluster() @@ -2726,9 +2276,6 @@ public open class CfnCluster( } /** - * Includes encryption-related information, such as the Amazon KMS key used for encrypting data at - * rest and whether you want MSK to encrypt your data in transit. - * * Example: * * ``` @@ -2750,15 +2297,11 @@ public open class CfnCluster( */ public interface EncryptionInfoProperty { /** - * The data-volume encryption details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptioninfo.html#cfn-msk-cluster-encryptioninfo-encryptionatrest) */ public fun encryptionAtRest(): Any? = unwrap(this).getEncryptionAtRest() /** - * The details for encryption in transit. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptioninfo.html#cfn-msk-cluster-encryptioninfo-encryptionintransit) */ public fun encryptionInTransit(): Any? = unwrap(this).getEncryptionInTransit() @@ -2769,34 +2312,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ public fun encryptionAtRest(encryptionAtRest: IResolvable) /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ public fun encryptionAtRest(encryptionAtRest: EncryptionAtRestProperty) /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e0431872660d1897cf457bbc58733002e4b48ea325f74f75724c99e921f0e6e8") public fun encryptionAtRest(encryptionAtRest: EncryptionAtRestProperty.Builder.() -> Unit) /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ public fun encryptionInTransit(encryptionInTransit: IResolvable) /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ public fun encryptionInTransit(encryptionInTransit: EncryptionInTransitProperty) /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("39a78f0d61fc52ce561187da89d622589f184acb6bbdb8065391a2ede2823020") @@ -2810,21 +2353,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.EncryptionInfoProperty.builder() /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ override fun encryptionAtRest(encryptionAtRest: IResolvable) { cdkBuilder.encryptionAtRest(encryptionAtRest.let(IResolvable.Companion::unwrap)) } /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ override fun encryptionAtRest(encryptionAtRest: EncryptionAtRestProperty) { cdkBuilder.encryptionAtRest(encryptionAtRest.let(EncryptionAtRestProperty.Companion::unwrap)) } /** - * @param encryptionAtRest The data-volume encryption details. + * @param encryptionAtRest the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e0431872660d1897cf457bbc58733002e4b48ea325f74f75724c99e921f0e6e8") @@ -2832,21 +2375,21 @@ public open class CfnCluster( Unit = encryptionAtRest(EncryptionAtRestProperty(encryptionAtRest)) /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ override fun encryptionInTransit(encryptionInTransit: IResolvable) { cdkBuilder.encryptionInTransit(encryptionInTransit.let(IResolvable.Companion::unwrap)) } /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ override fun encryptionInTransit(encryptionInTransit: EncryptionInTransitProperty) { cdkBuilder.encryptionInTransit(encryptionInTransit.let(EncryptionInTransitProperty.Companion::unwrap)) } /** - * @param encryptionInTransit The details for encryption in transit. + * @param encryptionInTransit the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("39a78f0d61fc52ce561187da89d622589f184acb6bbdb8065391a2ede2823020") @@ -2860,17 +2403,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.EncryptionInfoProperty, - ) : CdkObject(cdkObject), EncryptionInfoProperty { + ) : CdkObject(cdkObject), + EncryptionInfoProperty { /** - * The data-volume encryption details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptioninfo.html#cfn-msk-cluster-encryptioninfo-encryptionatrest) */ override fun encryptionAtRest(): Any? = unwrap(this).getEncryptionAtRest() /** - * The details for encryption in transit. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptioninfo.html#cfn-msk-cluster-encryptioninfo-encryptionintransit) */ override fun encryptionInTransit(): Any? = unwrap(this).getEncryptionInTransit() @@ -2895,8 +2435,6 @@ public open class CfnCluster( } /** - * Firehose details for BrokerLogs. - * * Example: * * ``` @@ -2914,16 +2452,11 @@ public open class CfnCluster( */ public interface FirehoseProperty { /** - * The Kinesis Data Firehose delivery stream that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-firehose.html#cfn-msk-cluster-firehose-deliverystream) */ public fun deliveryStream(): String? = unwrap(this).getDeliveryStream() /** - * Specifies whether broker logs get sent to the specified Kinesis Data Firehose delivery - * stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-firehose.html#cfn-msk-cluster-firehose-enabled) */ public fun enabled(): Any @@ -2934,20 +2467,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param deliveryStream The Kinesis Data Firehose delivery stream that is the destination for - * broker logs. + * @param deliveryStream the value to be set. */ public fun deliveryStream(deliveryStream: String) /** - * @param enabled Specifies whether broker logs get sent to the specified Kinesis Data - * Firehose delivery stream. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled Specifies whether broker logs get sent to the specified Kinesis Data - * Firehose delivery stream. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -2958,24 +2488,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.FirehoseProperty.builder() /** - * @param deliveryStream The Kinesis Data Firehose delivery stream that is the destination for - * broker logs. + * @param deliveryStream the value to be set. */ override fun deliveryStream(deliveryStream: String) { cdkBuilder.deliveryStream(deliveryStream) } /** - * @param enabled Specifies whether broker logs get sent to the specified Kinesis Data - * Firehose delivery stream. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Specifies whether broker logs get sent to the specified Kinesis Data - * Firehose delivery stream. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -2987,18 +2514,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.FirehoseProperty, - ) : CdkObject(cdkObject), FirehoseProperty { + ) : CdkObject(cdkObject), + FirehoseProperty { /** - * The Kinesis Data Firehose delivery stream that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-firehose.html#cfn-msk-cluster-firehose-deliverystream) */ override fun deliveryStream(): String? = unwrap(this).getDeliveryStream() /** - * Specifies whether broker logs get sent to the specified Kinesis Data Firehose delivery - * stream. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-firehose.html#cfn-msk-cluster-firehose-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -3021,8 +2544,6 @@ public open class CfnCluster( } /** - * Details for SASL/IAM client authentication. - * * Example: * * ``` @@ -3038,8 +2559,6 @@ public open class CfnCluster( */ public interface IamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-iam.html#cfn-msk-cluster-iam-enabled) */ public fun enabled(): Any @@ -3050,12 +2569,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -3065,14 +2584,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.IamProperty.builder() /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -3084,10 +2603,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.IamProperty, - ) : CdkObject(cdkObject), IamProperty { + ) : CdkObject(cdkObject), + IamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-iam.html#cfn-msk-cluster-iam-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -3109,8 +2627,6 @@ public open class CfnCluster( } /** - * Indicates whether you want to enable or disable the JMX Exporter. - * * Example: * * ``` @@ -3126,8 +2642,6 @@ public open class CfnCluster( */ public interface JmxExporterProperty { /** - * Indicates whether you want to enable or disable the JMX Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-jmxexporter.html#cfn-msk-cluster-jmxexporter-enabledinbroker) */ public fun enabledInBroker(): Any @@ -3138,12 +2652,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabledInBroker Indicates whether you want to enable or disable the JMX Exporter. + * @param enabledInBroker the value to be set. */ public fun enabledInBroker(enabledInBroker: Boolean) /** - * @param enabledInBroker Indicates whether you want to enable or disable the JMX Exporter. + * @param enabledInBroker the value to be set. */ public fun enabledInBroker(enabledInBroker: IResolvable) } @@ -3154,14 +2668,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.JmxExporterProperty.builder() /** - * @param enabledInBroker Indicates whether you want to enable or disable the JMX Exporter. + * @param enabledInBroker the value to be set. */ override fun enabledInBroker(enabledInBroker: Boolean) { cdkBuilder.enabledInBroker(enabledInBroker) } /** - * @param enabledInBroker Indicates whether you want to enable or disable the JMX Exporter. + * @param enabledInBroker the value to be set. */ override fun enabledInBroker(enabledInBroker: IResolvable) { cdkBuilder.enabledInBroker(enabledInBroker.let(IResolvable.Companion::unwrap)) @@ -3173,10 +2687,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.JmxExporterProperty, - ) : CdkObject(cdkObject), JmxExporterProperty { + ) : CdkObject(cdkObject), + JmxExporterProperty { /** - * Indicates whether you want to enable or disable the JMX Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-jmxexporter.html#cfn-msk-cluster-jmxexporter-enabledinbroker) */ override fun enabledInBroker(): Any = unwrap(this).getEnabledInBroker() @@ -3200,10 +2713,6 @@ public open class CfnCluster( } /** - * You can configure your MSK cluster to send broker logs to different destination types. - * - * This is a container for the configuration details related to broker logs. - * * Example: * * ``` @@ -3236,10 +2745,6 @@ public open class CfnCluster( */ public interface LoggingInfoProperty { /** - * You can configure your MSK cluster to send broker logs to different destination types. - * - * This configuration specifies the details of these destinations. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-logginginfo.html#cfn-msk-cluster-logginginfo-brokerlogs) */ public fun brokerLogs(): Any @@ -3250,23 +2755,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ public fun brokerLogs(brokerLogs: IResolvable) /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ public fun brokerLogs(brokerLogs: BrokerLogsProperty) /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9c29521d2378f142b0ba7241645e3c09b895ca33c68ee2f252e46c960056d932") @@ -3279,27 +2778,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.LoggingInfoProperty.builder() /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ override fun brokerLogs(brokerLogs: IResolvable) { cdkBuilder.brokerLogs(brokerLogs.let(IResolvable.Companion::unwrap)) } /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ override fun brokerLogs(brokerLogs: BrokerLogsProperty) { cdkBuilder.brokerLogs(brokerLogs.let(BrokerLogsProperty.Companion::unwrap)) } /** - * @param brokerLogs You can configure your MSK cluster to send broker logs to different - * destination types. - * This configuration specifies the details of these destinations. + * @param brokerLogs the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9c29521d2378f142b0ba7241645e3c09b895ca33c68ee2f252e46c960056d932") @@ -3312,12 +2805,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.LoggingInfoProperty, - ) : CdkObject(cdkObject), LoggingInfoProperty { + ) : CdkObject(cdkObject), + LoggingInfoProperty { /** - * You can configure your MSK cluster to send broker logs to different destination types. - * - * This configuration specifies the details of these destinations. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-logginginfo.html#cfn-msk-cluster-logginginfo-brokerlogs) */ override fun brokerLogs(): Any = unwrap(this).getBrokerLogs() @@ -3341,8 +2831,6 @@ public open class CfnCluster( } /** - * Indicates whether you want to enable or disable the Node Exporter. - * * Example: * * ``` @@ -3358,8 +2846,6 @@ public open class CfnCluster( */ public interface NodeExporterProperty { /** - * Indicates whether you want to enable or disable the Node Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-nodeexporter.html#cfn-msk-cluster-nodeexporter-enabledinbroker) */ public fun enabledInBroker(): Any @@ -3370,12 +2856,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabledInBroker Indicates whether you want to enable or disable the Node Exporter. + * @param enabledInBroker the value to be set. */ public fun enabledInBroker(enabledInBroker: Boolean) /** - * @param enabledInBroker Indicates whether you want to enable or disable the Node Exporter. + * @param enabledInBroker the value to be set. */ public fun enabledInBroker(enabledInBroker: IResolvable) } @@ -3386,14 +2872,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.NodeExporterProperty.builder() /** - * @param enabledInBroker Indicates whether you want to enable or disable the Node Exporter. + * @param enabledInBroker the value to be set. */ override fun enabledInBroker(enabledInBroker: Boolean) { cdkBuilder.enabledInBroker(enabledInBroker) } /** - * @param enabledInBroker Indicates whether you want to enable or disable the Node Exporter. + * @param enabledInBroker the value to be set. */ override fun enabledInBroker(enabledInBroker: IResolvable) { cdkBuilder.enabledInBroker(enabledInBroker.let(IResolvable.Companion::unwrap)) @@ -3405,10 +2891,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.NodeExporterProperty, - ) : CdkObject(cdkObject), NodeExporterProperty { + ) : CdkObject(cdkObject), + NodeExporterProperty { /** - * Indicates whether you want to enable or disable the Node Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-nodeexporter.html#cfn-msk-cluster-nodeexporter-enabledinbroker) */ override fun enabledInBroker(): Any = unwrap(this).getEnabledInBroker() @@ -3433,8 +2918,6 @@ public open class CfnCluster( } /** - * JMX and Node monitoring for the MSK cluster. - * * Example: * * ``` @@ -3457,8 +2940,6 @@ public open class CfnCluster( */ public interface OpenMonitoringProperty { /** - * Prometheus exporter settings. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-openmonitoring.html#cfn-msk-cluster-openmonitoring-prometheus) */ public fun prometheus(): Any @@ -3469,17 +2950,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ public fun prometheus(prometheus: IResolvable) /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ public fun prometheus(prometheus: PrometheusProperty) /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6b1fd3217fbf6dea260ad8c5ca9624e05154513aa617f9ebd7e2383296dc1e1f") @@ -3492,21 +2973,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.OpenMonitoringProperty.builder() /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ override fun prometheus(prometheus: IResolvable) { cdkBuilder.prometheus(prometheus.let(IResolvable.Companion::unwrap)) } /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ override fun prometheus(prometheus: PrometheusProperty) { cdkBuilder.prometheus(prometheus.let(PrometheusProperty.Companion::unwrap)) } /** - * @param prometheus Prometheus exporter settings. + * @param prometheus the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6b1fd3217fbf6dea260ad8c5ca9624e05154513aa617f9ebd7e2383296dc1e1f") @@ -3519,10 +3000,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.OpenMonitoringProperty, - ) : CdkObject(cdkObject), OpenMonitoringProperty { + ) : CdkObject(cdkObject), + OpenMonitoringProperty { /** - * Prometheus exporter settings. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-openmonitoring.html#cfn-msk-cluster-openmonitoring-prometheus) */ override fun prometheus(): Any = unwrap(this).getPrometheus() @@ -3547,8 +3027,6 @@ public open class CfnCluster( } /** - * Prometheus settings for open monitoring. - * * Example: * * ``` @@ -3569,15 +3047,11 @@ public open class CfnCluster( */ public interface PrometheusProperty { /** - * Indicates whether you want to enable or disable the JMX Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-jmxexporter) */ public fun jmxExporter(): Any? = unwrap(this).getJmxExporter() /** - * Indicates whether you want to enable or disable the Node Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-nodeexporter) */ public fun nodeExporter(): Any? = unwrap(this).getNodeExporter() @@ -3588,34 +3062,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ public fun jmxExporter(jmxExporter: IResolvable) /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ public fun jmxExporter(jmxExporter: JmxExporterProperty) /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c30b92803d3124701f31d0600afd646d59feb335c96fb4db5bfef705850dfa09") public fun jmxExporter(jmxExporter: JmxExporterProperty.Builder.() -> Unit) /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ public fun nodeExporter(nodeExporter: IResolvable) /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ public fun nodeExporter(nodeExporter: NodeExporterProperty) /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e4a041baf53642bd4142802093fd00a5c404a8200f91bc8d760ca5a660138ebc") @@ -3628,21 +3102,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.PrometheusProperty.builder() /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ override fun jmxExporter(jmxExporter: IResolvable) { cdkBuilder.jmxExporter(jmxExporter.let(IResolvable.Companion::unwrap)) } /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ override fun jmxExporter(jmxExporter: JmxExporterProperty) { cdkBuilder.jmxExporter(jmxExporter.let(JmxExporterProperty.Companion::unwrap)) } /** - * @param jmxExporter Indicates whether you want to enable or disable the JMX Exporter. + * @param jmxExporter the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c30b92803d3124701f31d0600afd646d59feb335c96fb4db5bfef705850dfa09") @@ -3650,21 +3124,21 @@ public open class CfnCluster( jmxExporter(JmxExporterProperty(jmxExporter)) /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ override fun nodeExporter(nodeExporter: IResolvable) { cdkBuilder.nodeExporter(nodeExporter.let(IResolvable.Companion::unwrap)) } /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ override fun nodeExporter(nodeExporter: NodeExporterProperty) { cdkBuilder.nodeExporter(nodeExporter.let(NodeExporterProperty.Companion::unwrap)) } /** - * @param nodeExporter Indicates whether you want to enable or disable the Node Exporter. + * @param nodeExporter the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e4a041baf53642bd4142802093fd00a5c404a8200f91bc8d760ca5a660138ebc") @@ -3677,17 +3151,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.PrometheusProperty, - ) : CdkObject(cdkObject), PrometheusProperty { + ) : CdkObject(cdkObject), + PrometheusProperty { /** - * Indicates whether you want to enable or disable the JMX Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-jmxexporter) */ override fun jmxExporter(): Any? = unwrap(this).getJmxExporter() /** - * Indicates whether you want to enable or disable the Node Exporter. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-nodeexporter) */ override fun nodeExporter(): Any? = unwrap(this).getNodeExporter() @@ -3711,9 +3182,6 @@ public open class CfnCluster( } /** - * Contains information about provisioned throughput for EBS storage volumes attached to kafka - * broker nodes. - * * Example: * * ``` @@ -3731,16 +3199,11 @@ public open class CfnCluster( */ public interface ProvisionedThroughputProperty { /** - * Provisioned throughput is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-provisionedthroughput.html#cfn-msk-cluster-provisionedthroughput-enabled) */ public fun enabled(): Any? = unwrap(this).getEnabled() /** - * Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per - * second. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-provisionedthroughput.html#cfn-msk-cluster-provisionedthroughput-volumethroughput) */ public fun volumeThroughput(): Number? = unwrap(this).getVolumeThroughput() @@ -3751,18 +3214,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled Provisioned throughput is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled Provisioned throughput is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) /** - * @param volumeThroughput Throughput value of the EBS volumes for the data drive on each - * kafka broker node in MiB per second. + * @param volumeThroughput the value to be set. */ public fun volumeThroughput(volumeThroughput: Number) } @@ -3773,22 +3235,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.ProvisionedThroughputProperty.builder() /** - * @param enabled Provisioned throughput is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Provisioned throughput is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } /** - * @param volumeThroughput Throughput value of the EBS volumes for the data drive on each - * kafka broker node in MiB per second. + * @param volumeThroughput the value to be set. */ override fun volumeThroughput(volumeThroughput: Number) { cdkBuilder.volumeThroughput(volumeThroughput) @@ -3801,18 +3262,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.ProvisionedThroughputProperty, - ) : CdkObject(cdkObject), ProvisionedThroughputProperty { + ) : CdkObject(cdkObject), + ProvisionedThroughputProperty { /** - * Provisioned throughput is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-provisionedthroughput.html#cfn-msk-cluster-provisionedthroughput-enabled) */ override fun enabled(): Any? = unwrap(this).getEnabled() /** - * Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per - * second. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-provisionedthroughput.html#cfn-msk-cluster-provisionedthroughput-volumethroughput) */ override fun volumeThroughput(): Number? = unwrap(this).getVolumeThroughput() @@ -3837,8 +3294,6 @@ public open class CfnCluster( } /** - * Broker access controls. - * * Example: * * ``` @@ -3854,10 +3309,6 @@ public open class CfnCluster( */ public interface PublicAccessProperty { /** - * DISABLED means that public access is turned off. - * - * SERVICE_PROVIDED_EIPS means that public access is turned on. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-publicaccess.html#cfn-msk-cluster-publicaccess-type) */ public fun type(): String? = unwrap(this).getType() @@ -3868,8 +3319,7 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param type DISABLED means that public access is turned off. - * SERVICE_PROVIDED_EIPS means that public access is turned on. + * @param type the value to be set. */ public fun type(type: String) } @@ -3880,8 +3330,7 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.PublicAccessProperty.builder() /** - * @param type DISABLED means that public access is turned off. - * SERVICE_PROVIDED_EIPS means that public access is turned on. + * @param type the value to be set. */ override fun type(type: String) { cdkBuilder.type(type) @@ -3893,12 +3342,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.PublicAccessProperty, - ) : CdkObject(cdkObject), PublicAccessProperty { + ) : CdkObject(cdkObject), + PublicAccessProperty { /** - * DISABLED means that public access is turned off. - * - * SERVICE_PROVIDED_EIPS means that public access is turned on. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-publicaccess.html#cfn-msk-cluster-publicaccess-type) */ override fun type(): String? = unwrap(this).getType() @@ -3923,8 +3369,6 @@ public open class CfnCluster( } /** - * The details of the Amazon S3 destination for broker logs. - * * Example: * * ``` @@ -3943,22 +3387,16 @@ public open class CfnCluster( */ public interface S3Property { /** - * The name of the S3 bucket that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-bucket) */ public fun bucket(): String? = unwrap(this).getBucket() /** - * Specifies whether broker logs get sent to the specified Amazon S3 destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-enabled) */ public fun enabled(): Any /** - * The S3 prefix that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-prefix) */ public fun prefix(): String? = unwrap(this).getPrefix() @@ -3969,24 +3407,22 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param bucket The name of the S3 bucket that is the destination for broker logs. + * @param bucket the value to be set. */ public fun bucket(bucket: String) /** - * @param enabled Specifies whether broker logs get sent to the specified Amazon S3 - * destination. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled Specifies whether broker logs get sent to the specified Amazon S3 - * destination. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) /** - * @param prefix The S3 prefix that is the destination for broker logs. + * @param prefix the value to be set. */ public fun prefix(prefix: String) } @@ -3996,30 +3432,28 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.S3Property.builder() /** - * @param bucket The name of the S3 bucket that is the destination for broker logs. + * @param bucket the value to be set. */ override fun bucket(bucket: String) { cdkBuilder.bucket(bucket) } /** - * @param enabled Specifies whether broker logs get sent to the specified Amazon S3 - * destination. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Specifies whether broker logs get sent to the specified Amazon S3 - * destination. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } /** - * @param prefix The S3 prefix that is the destination for broker logs. + * @param prefix the value to be set. */ override fun prefix(prefix: String) { cdkBuilder.prefix(prefix) @@ -4031,24 +3465,19 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** - * The name of the S3 bucket that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-bucket) */ override fun bucket(): String? = unwrap(this).getBucket() /** - * Specifies whether broker logs get sent to the specified Amazon S3 destination. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() /** - * The S3 prefix that is the destination for broker logs. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-s3.html#cfn-msk-cluster-s3-prefix) */ override fun prefix(): String? = unwrap(this).getPrefix() @@ -4070,12 +3499,6 @@ public open class CfnCluster( } /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. - * You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , - * then you must also set `unauthenticated` to true. - * * Example: * * ``` @@ -4096,15 +3519,11 @@ public open class CfnCluster( */ public interface SaslProperty { /** - * Details for ClientAuthentication using IAM. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-sasl.html#cfn-msk-cluster-sasl-iam) */ public fun iam(): Any? = unwrap(this).getIam() /** - * Details for SASL/SCRAM client authentication. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-sasl.html#cfn-msk-cluster-sasl-scram) */ public fun scram(): Any? = unwrap(this).getScram() @@ -4115,34 +3534,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ public fun iam(iam: IResolvable) /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ public fun iam(iam: IamProperty) /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cbf95f659e99557816579ce940d287daa47a8439569f98ce4b6d4ce0d04ab427") public fun iam(iam: IamProperty.Builder.() -> Unit) /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ public fun scram(scram: IResolvable) /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ public fun scram(scram: ScramProperty) /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("12c4d4e4080061c1e1751882cb23f1a55dd61dc3aec40f44ddb5a1b221da548b") @@ -4154,42 +3573,42 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.SaslProperty.builder() /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ override fun iam(iam: IResolvable) { cdkBuilder.iam(iam.let(IResolvable.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ override fun iam(iam: IamProperty) { cdkBuilder.iam(iam.let(IamProperty.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cbf95f659e99557816579ce940d287daa47a8439569f98ce4b6d4ce0d04ab427") override fun iam(iam: IamProperty.Builder.() -> Unit): Unit = iam(IamProperty(iam)) /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ override fun scram(scram: IResolvable) { cdkBuilder.scram(scram.let(IResolvable.Companion::unwrap)) } /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ override fun scram(scram: ScramProperty) { cdkBuilder.scram(scram.let(ScramProperty.Companion::unwrap)) } /** - * @param scram Details for SASL/SCRAM client authentication. + * @param scram the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("12c4d4e4080061c1e1751882cb23f1a55dd61dc3aec40f44ddb5a1b221da548b") @@ -4202,17 +3621,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.SaslProperty, - ) : CdkObject(cdkObject), SaslProperty { + ) : CdkObject(cdkObject), + SaslProperty { /** - * Details for ClientAuthentication using IAM. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-sasl.html#cfn-msk-cluster-sasl-iam) */ override fun iam(): Any? = unwrap(this).getIam() /** - * Details for SASL/SCRAM client authentication. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-sasl.html#cfn-msk-cluster-sasl-scram) */ override fun scram(): Any? = unwrap(this).getScram() @@ -4234,8 +3650,6 @@ public open class CfnCluster( } /** - * Details for SASL/SCRAM client authentication. - * * Example: * * ``` @@ -4251,8 +3665,6 @@ public open class CfnCluster( */ public interface ScramProperty { /** - * SASL/SCRAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-scram.html#cfn-msk-cluster-scram-enabled) */ public fun enabled(): Any @@ -4263,12 +3675,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -4278,14 +3690,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.ScramProperty.builder() /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -4297,10 +3709,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.ScramProperty, - ) : CdkObject(cdkObject), ScramProperty { + ) : CdkObject(cdkObject), + ScramProperty { /** - * SASL/SCRAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-scram.html#cfn-msk-cluster-scram-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -4322,8 +3733,6 @@ public open class CfnCluster( } /** - * Contains information about storage volumes attached to Amazon MSK broker nodes. - * * Example: * * ``` @@ -4345,8 +3754,6 @@ public open class CfnCluster( */ public interface StorageInfoProperty { /** - * EBS volume information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-storageinfo.html#cfn-msk-cluster-storageinfo-ebsstorageinfo) */ public fun ebsStorageInfo(): Any? = unwrap(this).getEbsStorageInfo() @@ -4357,17 +3764,17 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ public fun ebsStorageInfo(ebsStorageInfo: IResolvable) /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ public fun ebsStorageInfo(ebsStorageInfo: EBSStorageInfoProperty) /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c96fc46257901e7b2884edaa78a13e0c177649c7d2f5b7f0f04366e35a31b3f") @@ -4380,21 +3787,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.StorageInfoProperty.builder() /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ override fun ebsStorageInfo(ebsStorageInfo: IResolvable) { cdkBuilder.ebsStorageInfo(ebsStorageInfo.let(IResolvable.Companion::unwrap)) } /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ override fun ebsStorageInfo(ebsStorageInfo: EBSStorageInfoProperty) { cdkBuilder.ebsStorageInfo(ebsStorageInfo.let(EBSStorageInfoProperty.Companion::unwrap)) } /** - * @param ebsStorageInfo EBS volume information. + * @param ebsStorageInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3c96fc46257901e7b2884edaa78a13e0c177649c7d2f5b7f0f04366e35a31b3f") @@ -4407,10 +3814,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.StorageInfoProperty, - ) : CdkObject(cdkObject), StorageInfoProperty { + ) : CdkObject(cdkObject), + StorageInfoProperty { /** - * EBS volume information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-storageinfo.html#cfn-msk-cluster-storageinfo-ebsstorageinfo) */ override fun ebsStorageInfo(): Any? = unwrap(this).getEbsStorageInfo() @@ -4434,8 +3840,6 @@ public open class CfnCluster( } /** - * Details for client authentication using TLS. - * * Example: * * ``` @@ -4452,16 +3856,12 @@ public open class CfnCluster( */ public interface TlsProperty { /** - * List of AWS Private CA Amazon Resource Name (ARN)s. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-tls.html#cfn-msk-cluster-tls-certificateauthorityarnlist) */ public fun certificateAuthorityArnList(): List = unwrap(this).getCertificateAuthorityArnList() ?: emptyList() /** - * TLS authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-tls.html#cfn-msk-cluster-tls-enabled) */ public fun enabled(): Any? = unwrap(this).getEnabled() @@ -4472,22 +3872,22 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param certificateAuthorityArnList List of AWS Private CA Amazon Resource Name (ARN)s. + * @param certificateAuthorityArnList the value to be set. */ public fun certificateAuthorityArnList(certificateAuthorityArnList: List) /** - * @param certificateAuthorityArnList List of AWS Private CA Amazon Resource Name (ARN)s. + * @param certificateAuthorityArnList the value to be set. */ public fun certificateAuthorityArnList(vararg certificateAuthorityArnList: String) /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -4497,27 +3897,27 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.TlsProperty.builder() /** - * @param certificateAuthorityArnList List of AWS Private CA Amazon Resource Name (ARN)s. + * @param certificateAuthorityArnList the value to be set. */ override fun certificateAuthorityArnList(certificateAuthorityArnList: List) { cdkBuilder.certificateAuthorityArnList(certificateAuthorityArnList) } /** - * @param certificateAuthorityArnList List of AWS Private CA Amazon Resource Name (ARN)s. + * @param certificateAuthorityArnList the value to be set. */ override fun certificateAuthorityArnList(vararg certificateAuthorityArnList: String): Unit = certificateAuthorityArnList(certificateAuthorityArnList.toList()) /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -4529,18 +3929,15 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.TlsProperty, - ) : CdkObject(cdkObject), TlsProperty { + ) : CdkObject(cdkObject), + TlsProperty { /** - * List of AWS Private CA Amazon Resource Name (ARN)s. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-tls.html#cfn-msk-cluster-tls-certificateauthorityarnlist) */ override fun certificateAuthorityArnList(): List = unwrap(this).getCertificateAuthorityArnList() ?: emptyList() /** - * TLS authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-tls.html#cfn-msk-cluster-tls-enabled) */ override fun enabled(): Any? = unwrap(this).getEnabled() @@ -4562,8 +3959,6 @@ public open class CfnCluster( } /** - * Details for allowing no client authentication. - * * Example: * * ``` @@ -4579,8 +3974,6 @@ public open class CfnCluster( */ public interface UnauthenticatedProperty { /** - * Unauthenticated is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-unauthenticated.html#cfn-msk-cluster-unauthenticated-enabled) */ public fun enabled(): Any @@ -4591,12 +3984,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled Unauthenticated is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled Unauthenticated is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -4607,14 +4000,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.UnauthenticatedProperty.builder() /** - * @param enabled Unauthenticated is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Unauthenticated is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -4626,10 +4019,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.UnauthenticatedProperty, - ) : CdkObject(cdkObject), UnauthenticatedProperty { + ) : CdkObject(cdkObject), + UnauthenticatedProperty { /** - * Unauthenticated is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-unauthenticated.html#cfn-msk-cluster-unauthenticated-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -4654,8 +4046,6 @@ public open class CfnCluster( } /** - * Includes all client authentication information for VpcConnectivity. - * * Example: * * ``` @@ -4682,15 +4072,11 @@ public open class CfnCluster( */ public interface VpcConnectivityClientAuthenticationProperty { /** - * Details for VpcConnectivity ClientAuthentication using SASL. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityclientauthentication.html#cfn-msk-cluster-vpcconnectivityclientauthentication-sasl) */ public fun sasl(): Any? = unwrap(this).getSasl() /** - * Details for VpcConnectivity ClientAuthentication using TLS. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityclientauthentication.html#cfn-msk-cluster-vpcconnectivityclientauthentication-tls) */ public fun tls(): Any? = unwrap(this).getTls() @@ -4701,34 +4087,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ public fun sasl(sasl: IResolvable) /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ public fun sasl(sasl: VpcConnectivitySaslProperty) /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5387f17a62bf9d0b9b81a0d524d341a67df88146a1d7a9fe5c56eeed0489f35a") public fun sasl(sasl: VpcConnectivitySaslProperty.Builder.() -> Unit) /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ public fun tls(tls: IResolvable) /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ public fun tls(tls: VpcConnectivityTlsProperty) /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ec42fa21090bdeddd2087441fe661f6f7174abadd6cb22eb88506b050b7d6a49") @@ -4742,21 +4128,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityClientAuthenticationProperty.builder() /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ override fun sasl(sasl: IResolvable) { cdkBuilder.sasl(sasl.let(IResolvable.Companion::unwrap)) } /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ override fun sasl(sasl: VpcConnectivitySaslProperty) { cdkBuilder.sasl(sasl.let(VpcConnectivitySaslProperty.Companion::unwrap)) } /** - * @param sasl Details for VpcConnectivity ClientAuthentication using SASL. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5387f17a62bf9d0b9b81a0d524d341a67df88146a1d7a9fe5c56eeed0489f35a") @@ -4764,21 +4150,21 @@ public open class CfnCluster( sasl(VpcConnectivitySaslProperty(sasl)) /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ override fun tls(tls: IResolvable) { cdkBuilder.tls(tls.let(IResolvable.Companion::unwrap)) } /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ override fun tls(tls: VpcConnectivityTlsProperty) { cdkBuilder.tls(tls.let(VpcConnectivityTlsProperty.Companion::unwrap)) } /** - * @param tls Details for VpcConnectivity ClientAuthentication using TLS. + * @param tls the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ec42fa21090bdeddd2087441fe661f6f7174abadd6cb22eb88506b050b7d6a49") @@ -4792,17 +4178,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityClientAuthenticationProperty, - ) : CdkObject(cdkObject), VpcConnectivityClientAuthenticationProperty { + ) : CdkObject(cdkObject), + VpcConnectivityClientAuthenticationProperty { /** - * Details for VpcConnectivity ClientAuthentication using SASL. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityclientauthentication.html#cfn-msk-cluster-vpcconnectivityclientauthentication-sasl) */ override fun sasl(): Any? = unwrap(this).getSasl() /** - * Details for VpcConnectivity ClientAuthentication using TLS. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityclientauthentication.html#cfn-msk-cluster-vpcconnectivityclientauthentication-tls) */ override fun tls(): Any? = unwrap(this).getTls() @@ -4828,8 +4211,6 @@ public open class CfnCluster( } /** - * Details for SASL/IAM client authentication for VpcConnectivity. - * * Example: * * ``` @@ -4845,8 +4226,6 @@ public open class CfnCluster( */ public interface VpcConnectivityIamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityiam.html#cfn-msk-cluster-vpcconnectivityiam-enabled) */ public fun enabled(): Any @@ -4857,12 +4236,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -4873,14 +4252,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityIamProperty.builder() /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -4892,10 +4271,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityIamProperty, - ) : CdkObject(cdkObject), VpcConnectivityIamProperty { + ) : CdkObject(cdkObject), + VpcConnectivityIamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityiam.html#cfn-msk-cluster-vpcconnectivityiam-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -4920,8 +4298,6 @@ public open class CfnCluster( } /** - * VPC connection control settings for brokers. - * * Example: * * ``` @@ -4949,8 +4325,6 @@ public open class CfnCluster( */ public interface VpcConnectivityProperty { /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivity.html#cfn-msk-cluster-vpcconnectivity-clientauthentication) */ public fun clientAuthentication(): Any? = unwrap(this).getClientAuthentication() @@ -4961,18 +4335,18 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: IResolvable) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: VpcConnectivityClientAuthenticationProperty) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6fb37dc85da8bc52baf39269baf079d2b693a15e8032e2f62783d18b6e6b7aa4") @@ -4986,14 +4360,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityProperty.builder() /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: IResolvable) { cdkBuilder.clientAuthentication(clientAuthentication.let(IResolvable.Companion::unwrap)) } /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: VpcConnectivityClientAuthenticationProperty) { @@ -5001,7 +4375,7 @@ public open class CfnCluster( } /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("6fb37dc85da8bc52baf39269baf079d2b693a15e8032e2f62783d18b6e6b7aa4") @@ -5016,10 +4390,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityProperty, - ) : CdkObject(cdkObject), VpcConnectivityProperty { + ) : CdkObject(cdkObject), + VpcConnectivityProperty { /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivity.html#cfn-msk-cluster-vpcconnectivity-clientauthentication) */ override fun clientAuthentication(): Any? = unwrap(this).getClientAuthentication() @@ -5044,8 +4417,6 @@ public open class CfnCluster( } /** - * Details for client authentication using SASL for VpcConnectivity. - * * Example: * * ``` @@ -5066,15 +4437,11 @@ public open class CfnCluster( */ public interface VpcConnectivitySaslProperty { /** - * Details for ClientAuthentication using IAM for VpcConnectivity. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitysasl.html#cfn-msk-cluster-vpcconnectivitysasl-iam) */ public fun iam(): Any? = unwrap(this).getIam() /** - * Details for SASL/SCRAM client authentication for VpcConnectivity. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitysasl.html#cfn-msk-cluster-vpcconnectivitysasl-scram) */ public fun scram(): Any? = unwrap(this).getScram() @@ -5085,34 +4452,34 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ public fun iam(iam: IResolvable) /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ public fun iam(iam: VpcConnectivityIamProperty) /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5621bce12a0e505b9c8d557d0b6ace9e313dc6cbaaa017252f34e9657f38c9e8") public fun iam(iam: VpcConnectivityIamProperty.Builder.() -> Unit) /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ public fun scram(scram: IResolvable) /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ public fun scram(scram: VpcConnectivityScramProperty) /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("088db7309cb5cf6c24524bd4671cd61da505e50c992b3b57f2ec71d1d5f94a90") @@ -5125,21 +4492,21 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivitySaslProperty.builder() /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ override fun iam(iam: IResolvable) { cdkBuilder.iam(iam.let(IResolvable.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ override fun iam(iam: VpcConnectivityIamProperty) { cdkBuilder.iam(iam.let(VpcConnectivityIamProperty.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM for VpcConnectivity. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5621bce12a0e505b9c8d557d0b6ace9e313dc6cbaaa017252f34e9657f38c9e8") @@ -5147,21 +4514,21 @@ public open class CfnCluster( iam(VpcConnectivityIamProperty(iam)) /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ override fun scram(scram: IResolvable) { cdkBuilder.scram(scram.let(IResolvable.Companion::unwrap)) } /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ override fun scram(scram: VpcConnectivityScramProperty) { cdkBuilder.scram(scram.let(VpcConnectivityScramProperty.Companion::unwrap)) } /** - * @param scram Details for SASL/SCRAM client authentication for VpcConnectivity. + * @param scram the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("088db7309cb5cf6c24524bd4671cd61da505e50c992b3b57f2ec71d1d5f94a90") @@ -5174,17 +4541,14 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivitySaslProperty, - ) : CdkObject(cdkObject), VpcConnectivitySaslProperty { + ) : CdkObject(cdkObject), + VpcConnectivitySaslProperty { /** - * Details for ClientAuthentication using IAM for VpcConnectivity. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitysasl.html#cfn-msk-cluster-vpcconnectivitysasl-iam) */ override fun iam(): Any? = unwrap(this).getIam() /** - * Details for SASL/SCRAM client authentication for VpcConnectivity. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitysasl.html#cfn-msk-cluster-vpcconnectivitysasl-scram) */ override fun scram(): Any? = unwrap(this).getScram() @@ -5209,8 +4573,6 @@ public open class CfnCluster( } /** - * Details for SASL/SCRAM client authentication for vpcConnectivity. - * * Example: * * ``` @@ -5227,8 +4589,6 @@ public open class CfnCluster( */ public interface VpcConnectivityScramProperty { /** - * SASL/SCRAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityscram.html#cfn-msk-cluster-vpcconnectivityscram-enabled) */ public fun enabled(): Any @@ -5239,12 +4599,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -5255,14 +4615,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityScramProperty.builder() /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled SASL/SCRAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -5275,10 +4635,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityScramProperty, - ) : CdkObject(cdkObject), VpcConnectivityScramProperty { + ) : CdkObject(cdkObject), + VpcConnectivityScramProperty { /** - * SASL/SCRAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityscram.html#cfn-msk-cluster-vpcconnectivityscram-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -5303,8 +4662,6 @@ public open class CfnCluster( } /** - * Details for client authentication using TLS for vpcConnectivity. - * * Example: * * ``` @@ -5320,8 +4677,6 @@ public open class CfnCluster( */ public interface VpcConnectivityTlsProperty { /** - * TLS authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitytls.html#cfn-msk-cluster-vpcconnectivitytls-enabled) */ public fun enabled(): Any @@ -5332,12 +4687,12 @@ public open class CfnCluster( @CdkDslMarker public interface Builder { /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -5348,14 +4703,14 @@ public open class CfnCluster( software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityTlsProperty.builder() /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled TLS authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -5367,10 +4722,9 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnCluster.VpcConnectivityTlsProperty, - ) : CdkObject(cdkObject), VpcConnectivityTlsProperty { + ) : CdkObject(cdkObject), + VpcConnectivityTlsProperty { /** - * TLS authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivitytls.html#cfn-msk-cluster-vpcconnectivitytls-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicy.kt index 8063fa8628..66ba44347d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicy.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterPolicy( cdkObject: software.amazon.awscdk.services.msk.CfnClusterPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicyProps.kt index 9bee52bf27..2899a1eecc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterPolicyProps.kt @@ -82,7 +82,8 @@ public interface CfnClusterPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnClusterPolicyProps, - ) : CdkObject(cdkObject), CfnClusterPolicyProps { + ) : CdkObject(cdkObject), + CfnClusterPolicyProps { /** * The Amazon Resource Name (ARN) that uniquely identifies the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterProps.kt index f984593faa..a77350dbfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnClusterProps.kt @@ -135,95 +135,69 @@ import kotlin.jvm.JvmName */ public interface CfnClusterProps { /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) */ public fun brokerNodeGroupInfo(): Any /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) */ public fun clientAuthentication(): Any? = unwrap(this).getClientAuthentication() /** - * The name of the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clustername) */ public fun clusterName(): String /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) */ public fun configurationInfo(): Any? = unwrap(this).getConfigurationInfo() /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-currentversion) */ public fun currentVersion(): String? = unwrap(this).getCurrentVersion() /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) */ public fun encryptionInfo(): Any? = unwrap(this).getEncryptionInfo() /** - * Specifies the level of monitoring for the MSK cluster. - * - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-enhancedmonitoring) */ public fun enhancedMonitoring(): String? = unwrap(this).getEnhancedMonitoring() /** - * The version of Apache Kafka. - * - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-kafkaversion) */ public fun kafkaVersion(): String /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) */ public fun loggingInfo(): Any? = unwrap(this).getLoggingInfo() /** - * The number of broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-numberofbrokernodes) */ public fun numberOfBrokerNodes(): Number /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) */ public fun openMonitoring(): Any? = unwrap(this).getOpenMonitoring() /** - * This controls storage mode for supported storage tiers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-storagemode) */ public fun storageMode(): String? = unwrap(this).getStorageMode() /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags) */ @@ -235,17 +209,17 @@ public interface CfnClusterProps { @CdkDslMarker public interface Builder { /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ public fun brokerNodeGroupInfo(brokerNodeGroupInfo: IResolvable) /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ public fun brokerNodeGroupInfo(brokerNodeGroupInfo: CfnCluster.BrokerNodeGroupInfoProperty) /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("204f829ea9396538d0e09bd0a89c725737b462f05c328c5e5180d1dccd1444eb") @@ -253,17 +227,17 @@ public interface CfnClusterProps { fun brokerNodeGroupInfo(brokerNodeGroupInfo: CfnCluster.BrokerNodeGroupInfoProperty.Builder.() -> Unit) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: IResolvable) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: CfnCluster.ClientAuthenticationProperty) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f493431925d32fcc1eecfaeb56dee04b7880fe9fe2bafa8755ff181c7f566e84") @@ -271,25 +245,22 @@ public interface CfnClusterProps { fun clientAuthentication(clientAuthentication: CfnCluster.ClientAuthenticationProperty.Builder.() -> Unit) /** - * @param clusterName The name of the cluster. + * @param clusterName the value to be set. */ public fun clusterName(clusterName: String) /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ public fun configurationInfo(configurationInfo: IResolvable) /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ public fun configurationInfo(configurationInfo: CfnCluster.ConfigurationInfoProperty) /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8d11771e5b61f02f304d91070170187c21cd4797b41c6dc2bc2c4667f68aa376") @@ -297,85 +268,83 @@ public interface CfnClusterProps { fun configurationInfo(configurationInfo: CfnCluster.ConfigurationInfoProperty.Builder.() -> Unit) /** - * @param currentVersion The version of the cluster that you want to update. + * @param currentVersion The current version of the MSK cluster. */ public fun currentVersion(currentVersion: String) /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ public fun encryptionInfo(encryptionInfo: IResolvable) /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ public fun encryptionInfo(encryptionInfo: CfnCluster.EncryptionInfoProperty) /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("25465acbe89e8d7d87c968bd7b150bcb98e76ae89a1f15554f17c0363bdd6059") public fun encryptionInfo(encryptionInfo: CfnCluster.EncryptionInfoProperty.Builder.() -> Unit) /** - * @param enhancedMonitoring Specifies the level of monitoring for the MSK cluster. - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . + * @param enhancedMonitoring the value to be set. */ public fun enhancedMonitoring(enhancedMonitoring: String) /** - * @param kafkaVersion The version of Apache Kafka. - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. + * @param kafkaVersion the value to be set. */ public fun kafkaVersion(kafkaVersion: String) /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ public fun loggingInfo(loggingInfo: IResolvable) /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ public fun loggingInfo(loggingInfo: CfnCluster.LoggingInfoProperty) /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("61a9726c7caf1c5bf39cf0cd83968a213f130c1d526b26022dccc622d106aa46") public fun loggingInfo(loggingInfo: CfnCluster.LoggingInfoProperty.Builder.() -> Unit) /** - * @param numberOfBrokerNodes The number of broker nodes in the cluster. + * @param numberOfBrokerNodes the value to be set. */ public fun numberOfBrokerNodes(numberOfBrokerNodes: Number) /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ public fun openMonitoring(openMonitoring: IResolvable) /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ public fun openMonitoring(openMonitoring: CfnCluster.OpenMonitoringProperty) /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2f684fbbe73fa03faab9edc8ca6debc3749e4a3a492b69540a099e0ee9d85152") public fun openMonitoring(openMonitoring: CfnCluster.OpenMonitoringProperty.Builder.() -> Unit) /** - * @param storageMode This controls storage mode for supported storage tiers. + * @param storageMode the value to be set. */ public fun storageMode(storageMode: String) /** - * @param tags Create tags when creating the cluster. + * @param tags A key-value pair to associate with a resource. */ public fun tags(tags: Map) } @@ -385,21 +354,21 @@ public interface CfnClusterProps { software.amazon.awscdk.services.msk.CfnClusterProps.builder() /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ override fun brokerNodeGroupInfo(brokerNodeGroupInfo: IResolvable) { cdkBuilder.brokerNodeGroupInfo(brokerNodeGroupInfo.let(IResolvable.Companion::unwrap)) } /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ override fun brokerNodeGroupInfo(brokerNodeGroupInfo: CfnCluster.BrokerNodeGroupInfoProperty) { cdkBuilder.brokerNodeGroupInfo(brokerNodeGroupInfo.let(CfnCluster.BrokerNodeGroupInfoProperty.Companion::unwrap)) } /** - * @param brokerNodeGroupInfo Information about the broker nodes in the cluster. + * @param brokerNodeGroupInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("204f829ea9396538d0e09bd0a89c725737b462f05c328c5e5180d1dccd1444eb") @@ -408,14 +377,14 @@ public interface CfnClusterProps { Unit = brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty(brokerNodeGroupInfo)) /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: IResolvable) { cdkBuilder.clientAuthentication(clientAuthentication.let(IResolvable.Companion::unwrap)) } /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: CfnCluster.ClientAuthenticationProperty) { @@ -423,7 +392,7 @@ public interface CfnClusterProps { } /** - * @param clientAuthentication VPC connection control settings for brokers. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f493431925d32fcc1eecfaeb56dee04b7880fe9fe2bafa8755ff181c7f566e84") @@ -432,31 +401,28 @@ public interface CfnClusterProps { Unit = clientAuthentication(CfnCluster.ClientAuthenticationProperty(clientAuthentication)) /** - * @param clusterName The name of the cluster. + * @param clusterName the value to be set. */ override fun clusterName(clusterName: String) { cdkBuilder.clusterName(clusterName) } /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ override fun configurationInfo(configurationInfo: IResolvable) { cdkBuilder.configurationInfo(configurationInfo.let(IResolvable.Companion::unwrap)) } /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ override fun configurationInfo(configurationInfo: CfnCluster.ConfigurationInfoProperty) { cdkBuilder.configurationInfo(configurationInfo.let(CfnCluster.ConfigurationInfoProperty.Companion::unwrap)) } /** - * @param configurationInfo Represents the configuration that you want MSK to use for the - * cluster. + * @param configurationInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8d11771e5b61f02f304d91070170187c21cd4797b41c6dc2bc2c4667f68aa376") @@ -465,28 +431,28 @@ public interface CfnClusterProps { Unit = configurationInfo(CfnCluster.ConfigurationInfoProperty(configurationInfo)) /** - * @param currentVersion The version of the cluster that you want to update. + * @param currentVersion The current version of the MSK cluster. */ override fun currentVersion(currentVersion: String) { cdkBuilder.currentVersion(currentVersion) } /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ override fun encryptionInfo(encryptionInfo: IResolvable) { cdkBuilder.encryptionInfo(encryptionInfo.let(IResolvable.Companion::unwrap)) } /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ override fun encryptionInfo(encryptionInfo: CfnCluster.EncryptionInfoProperty) { cdkBuilder.encryptionInfo(encryptionInfo.let(CfnCluster.EncryptionInfoProperty.Companion::unwrap)) } /** - * @param encryptionInfo Includes all encryption-related information. + * @param encryptionInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("25465acbe89e8d7d87c968bd7b150bcb98e76ae89a1f15554f17c0363bdd6059") @@ -495,37 +461,35 @@ public interface CfnClusterProps { Unit = encryptionInfo(CfnCluster.EncryptionInfoProperty(encryptionInfo)) /** - * @param enhancedMonitoring Specifies the level of monitoring for the MSK cluster. - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . + * @param enhancedMonitoring the value to be set. */ override fun enhancedMonitoring(enhancedMonitoring: String) { cdkBuilder.enhancedMonitoring(enhancedMonitoring) } /** - * @param kafkaVersion The version of Apache Kafka. - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. + * @param kafkaVersion the value to be set. */ override fun kafkaVersion(kafkaVersion: String) { cdkBuilder.kafkaVersion(kafkaVersion) } /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ override fun loggingInfo(loggingInfo: IResolvable) { cdkBuilder.loggingInfo(loggingInfo.let(IResolvable.Companion::unwrap)) } /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ override fun loggingInfo(loggingInfo: CfnCluster.LoggingInfoProperty) { cdkBuilder.loggingInfo(loggingInfo.let(CfnCluster.LoggingInfoProperty.Companion::unwrap)) } /** - * @param loggingInfo Logging Info details. + * @param loggingInfo the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("61a9726c7caf1c5bf39cf0cd83968a213f130c1d526b26022dccc622d106aa46") @@ -533,28 +497,28 @@ public interface CfnClusterProps { loggingInfo(CfnCluster.LoggingInfoProperty(loggingInfo)) /** - * @param numberOfBrokerNodes The number of broker nodes in the cluster. + * @param numberOfBrokerNodes the value to be set. */ override fun numberOfBrokerNodes(numberOfBrokerNodes: Number) { cdkBuilder.numberOfBrokerNodes(numberOfBrokerNodes) } /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ override fun openMonitoring(openMonitoring: IResolvable) { cdkBuilder.openMonitoring(openMonitoring.let(IResolvable.Companion::unwrap)) } /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ override fun openMonitoring(openMonitoring: CfnCluster.OpenMonitoringProperty) { cdkBuilder.openMonitoring(openMonitoring.let(CfnCluster.OpenMonitoringProperty.Companion::unwrap)) } /** - * @param openMonitoring The settings for open monitoring. + * @param openMonitoring the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2f684fbbe73fa03faab9edc8ca6debc3749e4a3a492b69540a099e0ee9d85152") @@ -563,14 +527,14 @@ public interface CfnClusterProps { Unit = openMonitoring(CfnCluster.OpenMonitoringProperty(openMonitoring)) /** - * @param storageMode This controls storage mode for supported storage tiers. + * @param storageMode the value to be set. */ override fun storageMode(storageMode: String) { cdkBuilder.storageMode(storageMode) } /** - * @param tags Create tags when creating the cluster. + * @param tags A key-value pair to associate with a resource. */ override fun tags(tags: Map) { cdkBuilder.tags(tags) @@ -581,97 +545,72 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** - * Information about the broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-brokernodegroupinfo) */ override fun brokerNodeGroupInfo(): Any = unwrap(this).getBrokerNodeGroupInfo() /** - * VPC connection control settings for brokers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clientauthentication) */ override fun clientAuthentication(): Any? = unwrap(this).getClientAuthentication() /** - * The name of the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-clustername) */ override fun clusterName(): String = unwrap(this).getClusterName() /** - * Represents the configuration that you want MSK to use for the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-configurationinfo) */ override fun configurationInfo(): Any? = unwrap(this).getConfigurationInfo() /** - * The version of the cluster that you want to update. + * The current version of the MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-currentversion) */ override fun currentVersion(): String? = unwrap(this).getCurrentVersion() /** - * Includes all encryption-related information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-encryptioninfo) */ override fun encryptionInfo(): Any? = unwrap(this).getEncryptionInfo() /** - * Specifies the level of monitoring for the MSK cluster. - * - * The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` . - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-enhancedmonitoring) */ override fun enhancedMonitoring(): String? = unwrap(this).getEnhancedMonitoring() /** - * The version of Apache Kafka. - * - * You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-kafkaversion) */ override fun kafkaVersion(): String = unwrap(this).getKafkaVersion() /** - * Logging Info details. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-logginginfo) */ override fun loggingInfo(): Any? = unwrap(this).getLoggingInfo() /** - * The number of broker nodes in the cluster. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-numberofbrokernodes) */ override fun numberOfBrokerNodes(): Number = unwrap(this).getNumberOfBrokerNodes() /** - * The settings for open monitoring. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring) */ override fun openMonitoring(): Any? = unwrap(this).getOpenMonitoring() /** - * This controls storage mode for supported storage tiers. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-storagemode) */ override fun storageMode(): String? = unwrap(this).getStorageMode() /** - * Create tags when creating the cluster. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfiguration.kt index 64ff926b7f..64fa3f4b5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfiguration.kt @@ -19,25 +19,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Creates a new MSK configuration. - * - * To see an example of how to use this operation, first save the following text to a file and name - * the file config-file.txt . - * - * `auto.create.topics.enable = true zookeeper.connection.timeout.ms = 1000 log.roll.ms = 604800000` - * - * Now run the following Python 3.6 script in the folder where you saved config-file.txt . This - * script uses the properties specified in config-file.txt to create a configuration named - * `SalesClusterConfiguration` . This configuration can work with Apache Kafka versions 1.1.1 and - * 2.1.0. - * - * ``` - * import boto3 client = boto3.client('kafka') config_file = open('config-file.txt', 'r') - * server_properties = config_file.read() response = client.create_configuration( - * Name='SalesClusterConfiguration', Description='The configuration to use on all sales clusters.', - * KafkaVersions=['1.1.1', '2.1.0'], ServerProperties=server_properties - * ) print(response) - * ``` + * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html. * * Example: * @@ -63,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfiguration( cdkObject: software.amazon.awscdk.services.msk.CfnConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -86,30 +69,30 @@ public open class CfnConfiguration( public open fun attrArn(): String = unwrap(this).getAttrArn() /** - * The time when the configuration was created. + * */ public open fun attrLatestRevisionCreationTime(): String = unwrap(this).getAttrLatestRevisionCreationTime() /** - * The description of the configuration. + * */ public open fun attrLatestRevisionDescription(): String = unwrap(this).getAttrLatestRevisionDescription() /** - * A string that uniquely identifies a revision of an MSK configuration. + * */ public open fun attrLatestRevisionRevision(): Number = unwrap(this).getAttrLatestRevisionRevision() /** - * The description of the configuration. + * */ public open fun description(): String? = unwrap(this).getDescription() /** - * The description of the configuration. + * */ public open fun description(`value`: String) { unwrap(this).setDescription(`value`) @@ -144,26 +127,26 @@ public open class CfnConfiguration( kafkaVersionsList(`value`.toList()) /** - * Latest revision of the configuration. + * */ public open fun latestRevision(): Any? = unwrap(this).getLatestRevision() /** - * Latest revision of the configuration. + * */ public open fun latestRevision(`value`: IResolvable) { unwrap(this).setLatestRevision(`value`.let(IResolvable.Companion::unwrap)) } /** - * Latest revision of the configuration. + * */ public open fun latestRevision(`value`: LatestRevisionProperty) { unwrap(this).setLatestRevision(`value`.let(LatestRevisionProperty.Companion::unwrap)) } /** - * Latest revision of the configuration. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("ff7fd235140ed3b9b780d2100e75ea7200fbe4458150e1be2c200f3f55992d89") @@ -171,28 +154,24 @@ public open class CfnConfiguration( latestRevision(LatestRevisionProperty(`value`)) /** - * The name of the configuration. + * */ public open fun name(): String = unwrap(this).getName() /** - * The name of the configuration. + * */ public open fun name(`value`: String) { unwrap(this).setName(`value`) } /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. + * */ public open fun serverProperties(): String = unwrap(this).getServerProperties() /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. + * */ public open fun serverProperties(`value`: String) { unwrap(this).setServerProperties(`value`) @@ -204,10 +183,8 @@ public open class CfnConfiguration( @CdkDslMarker public interface Builder { /** - * The description of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-description) - * @param description The description of the configuration. + * @param description */ public fun description(description: String) @@ -224,50 +201,34 @@ public open class CfnConfiguration( public fun kafkaVersionsList(vararg kafkaVersionsList: String) /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ public fun latestRevision(latestRevision: IResolvable) /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ public fun latestRevision(latestRevision: LatestRevisionProperty) /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5191f149a214eef0b3503b51de3a98cb0e8b852b1d529b6d7ab7c0d1f3e2e7c9") public fun latestRevision(latestRevision: LatestRevisionProperty.Builder.() -> Unit) /** - * The name of the configuration. - * - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-name) - * @param name The name of the configuration. + * @param name */ public fun name(name: String) /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-serverproperties) - * @param serverProperties Contents of the server.properties file. When using the API, you must - * ensure that the contents of the file are base64 encoded. When using the console, the SDK, or the - * CLI, the contents of server.properties can be in plaintext. + * @param serverProperties */ public fun serverProperties(serverProperties: String) } @@ -280,10 +241,8 @@ public open class CfnConfiguration( software.amazon.awscdk.services.msk.CfnConfiguration.Builder.create(scope, id) /** - * The description of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-description) - * @param description The description of the configuration. + * @param description */ override fun description(description: String) { cdkBuilder.description(description) @@ -305,30 +264,24 @@ public open class CfnConfiguration( kafkaVersionsList(kafkaVersionsList.toList()) /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ override fun latestRevision(latestRevision: IResolvable) { cdkBuilder.latestRevision(latestRevision.let(IResolvable.Companion::unwrap)) } /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ override fun latestRevision(latestRevision: LatestRevisionProperty) { cdkBuilder.latestRevision(latestRevision.let(LatestRevisionProperty.Companion::unwrap)) } /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) - * @param latestRevision Latest revision of the configuration. + * @param latestRevision */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("5191f149a214eef0b3503b51de3a98cb0e8b852b1d529b6d7ab7c0d1f3e2e7c9") @@ -336,26 +289,16 @@ public open class CfnConfiguration( latestRevision(LatestRevisionProperty(latestRevision)) /** - * The name of the configuration. - * - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-name) - * @param name The name of the configuration. + * @param name */ override fun name(name: String) { cdkBuilder.name(name) } /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-serverproperties) - * @param serverProperties Contents of the server.properties file. When using the API, you must - * ensure that the contents of the file are base64 encoded. When using the console, the SDK, or the - * CLI, the contents of server.properties can be in plaintext. + * @param serverProperties */ override fun serverProperties(serverProperties: String) { cdkBuilder.serverProperties(serverProperties) @@ -471,7 +414,8 @@ public open class CfnConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnConfiguration.LatestRevisionProperty, - ) : CdkObject(cdkObject), LatestRevisionProperty { + ) : CdkObject(cdkObject), + LatestRevisionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-configuration-latestrevision.html#cfn-msk-configuration-latestrevision-creationtime) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfigurationProps.kt index 23fd733e49..4df2b4349f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnConfigurationProps.kt @@ -39,8 +39,6 @@ import kotlin.jvm.JvmName */ public interface CfnConfigurationProps { /** - * The description of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-description) */ public fun description(): String? = unwrap(this).getDescription() @@ -51,26 +49,16 @@ public interface CfnConfigurationProps { public fun kafkaVersionsList(): List = unwrap(this).getKafkaVersionsList() ?: emptyList() /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) */ public fun latestRevision(): Any? = unwrap(this).getLatestRevision() /** - * The name of the configuration. - * - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-name) */ public fun name(): String /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-serverproperties) */ public fun serverProperties(): String @@ -81,7 +69,7 @@ public interface CfnConfigurationProps { @CdkDslMarker public interface Builder { /** - * @param description The description of the configuration. + * @param description the value to be set. */ public fun description(description: String) @@ -96,17 +84,17 @@ public interface CfnConfigurationProps { public fun kafkaVersionsList(vararg kafkaVersionsList: String) /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ public fun latestRevision(latestRevision: IResolvable) /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ public fun latestRevision(latestRevision: CfnConfiguration.LatestRevisionProperty) /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b0d5b7745687c027d7615e97a5a5910469bb1a8c24279cee0902098c91e4f089") @@ -114,15 +102,12 @@ public interface CfnConfigurationProps { fun latestRevision(latestRevision: CfnConfiguration.LatestRevisionProperty.Builder.() -> Unit) /** - * @param name The name of the configuration. - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". + * @param name the value to be set. */ public fun name(name: String) /** - * @param serverProperties Contents of the server.properties file. When using the API, you must - * ensure that the contents of the file are base64 encoded. When using the console, the SDK, or the - * CLI, the contents of server.properties can be in plaintext. + * @param serverProperties the value to be set. */ public fun serverProperties(serverProperties: String) } @@ -132,7 +117,7 @@ public interface CfnConfigurationProps { software.amazon.awscdk.services.msk.CfnConfigurationProps.builder() /** - * @param description The description of the configuration. + * @param description the value to be set. */ override fun description(description: String) { cdkBuilder.description(description) @@ -152,21 +137,21 @@ public interface CfnConfigurationProps { kafkaVersionsList(kafkaVersionsList.toList()) /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ override fun latestRevision(latestRevision: IResolvable) { cdkBuilder.latestRevision(latestRevision.let(IResolvable.Companion::unwrap)) } /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ override fun latestRevision(latestRevision: CfnConfiguration.LatestRevisionProperty) { cdkBuilder.latestRevision(latestRevision.let(CfnConfiguration.LatestRevisionProperty.Companion::unwrap)) } /** - * @param latestRevision Latest revision of the configuration. + * @param latestRevision the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b0d5b7745687c027d7615e97a5a5910469bb1a8c24279cee0902098c91e4f089") @@ -175,17 +160,14 @@ public interface CfnConfigurationProps { Unit = latestRevision(CfnConfiguration.LatestRevisionProperty(latestRevision)) /** - * @param name The name of the configuration. - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". + * @param name the value to be set. */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param serverProperties Contents of the server.properties file. When using the API, you must - * ensure that the contents of the file are base64 encoded. When using the console, the SDK, or the - * CLI, the contents of server.properties can be in plaintext. + * @param serverProperties the value to be set. */ override fun serverProperties(serverProperties: String) { cdkBuilder.serverProperties(serverProperties) @@ -197,10 +179,9 @@ public interface CfnConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnConfigurationProps, - ) : CdkObject(cdkObject), CfnConfigurationProps { + ) : CdkObject(cdkObject), + CfnConfigurationProps { /** - * The description of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-description) */ override fun description(): String? = unwrap(this).getDescription() @@ -212,26 +193,16 @@ public interface CfnConfigurationProps { emptyList() /** - * Latest revision of the configuration. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-latestrevision) */ override fun latestRevision(): Any? = unwrap(this).getLatestRevision() /** - * The name of the configuration. - * - * Configuration names are strings that match the regex "^[0-9A-Za-z][0-9A-Za-z-]{0,}$". - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-name) */ override fun name(): String = unwrap(this).getName() /** - * Contents of the server.properties file. When using the API, you must ensure that the contents - * of the file are base64 encoded. When using the console, the SDK, or the CLI, the contents of - * server.properties can be in plaintext. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-configuration.html#cfn-msk-configuration-serverproperties) */ override fun serverProperties(): String = unwrap(this).getServerProperties() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicator.kt index 038a9f8fc3..890230fb82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicator.kt @@ -22,7 +22,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Resource Type definition for AWS::MSK::Replicator. + * Creates the replicator. * * Example: * @@ -61,6 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .startingPosition(ReplicationStartingPositionProperty.builder() * .type("type") * .build()) + * .topicNameConfiguration(ReplicationTopicNameConfigurationProperty.builder() + * .type("type") + * .build()) * .topicsToExclude(List.of("topicsToExclude")) * .build()) * .build())) @@ -80,7 +83,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicator( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,12 +114,12 @@ public open class CfnReplicator( unwrap(this).getCdkTagManager().let(TagManager::wrap) /** - * The current version of the MSK replicator. + * The current version number of the replicator. */ public open fun currentVersion(): String? = unwrap(this).getCurrentVersion() /** - * The current version of the MSK replicator. + * The current version number of the replicator. */ public open fun currentVersion(`value`: String) { unwrap(this).setCurrentVersion(`value`) @@ -142,26 +147,26 @@ public open class CfnReplicator( } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. */ public open fun kafkaClusters(): Any = unwrap(this).getKafkaClusters() /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. */ public open fun kafkaClusters(`value`: IResolvable) { unwrap(this).setKafkaClusters(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. */ public open fun kafkaClusters(`value`: List) { unwrap(this).setKafkaClusters(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. */ public open fun kafkaClusters(vararg `value`: Any): Unit = kafkaClusters(`value`.toList()) @@ -207,33 +212,33 @@ public open class CfnReplicator( } /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). */ public open fun serviceExecutionRoleArn(): String = unwrap(this).getServiceExecutionRoleArn() /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). */ public open fun serviceExecutionRoleArn(`value`: String) { unwrap(this).setServiceExecutionRoleArn(`value`) } /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. */ public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. */ public open fun tags(`value`: List) { unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) } /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. */ public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) @@ -243,10 +248,10 @@ public open class CfnReplicator( @CdkDslMarker public interface Builder { /** - * The current version of the MSK replicator. + * The current version number of the replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-currentversion) - * @param currentVersion The current version of the MSK replicator. + * @param currentVersion The current version number of the replicator. */ public fun currentVersion(currentVersion: String) @@ -259,26 +264,26 @@ public open class CfnReplicator( public fun description(description: String) /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(kafkaClusters: IResolvable) /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(kafkaClusters: List) /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(vararg kafkaClusters: Any) @@ -315,34 +320,36 @@ public open class CfnReplicator( /** * The name of the replicator. * + * Alpha-numeric characters with '-' are allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-replicatorname) * @param replicatorName The name of the replicator. */ public fun replicatorName(replicatorName: String) /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-serviceexecutionrolearn) - * @param serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the - * replicator to access external resources. + * @param serviceExecutionRoleArn The ARN of the IAM role used by the replicator to access + * resources in the customer's account (e.g source and target clusters). */ public fun serviceExecutionRoleArn(serviceExecutionRoleArn: String) /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ public fun tags(tags: List) /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ public fun tags(vararg tags: CfnTag) } @@ -355,10 +362,10 @@ public open class CfnReplicator( software.amazon.awscdk.services.msk.CfnReplicator.Builder.create(scope, id) /** - * The current version of the MSK replicator. + * The current version number of the replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-currentversion) - * @param currentVersion The current version of the MSK replicator. + * @param currentVersion The current version number of the replicator. */ override fun currentVersion(currentVersion: String) { cdkBuilder.currentVersion(currentVersion) @@ -375,30 +382,30 @@ public open class CfnReplicator( } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(kafkaClusters: IResolvable) { cdkBuilder.kafkaClusters(kafkaClusters.let(IResolvable.Companion::unwrap)) } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(kafkaClusters: List) { cdkBuilder.kafkaClusters(kafkaClusters.map{CdkObjectWrappers.unwrap(it)}) } /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(vararg kafkaClusters: Any): Unit = kafkaClusters(kafkaClusters.toList()) @@ -441,6 +448,8 @@ public open class CfnReplicator( /** * The name of the replicator. * + * Alpha-numeric characters with '-' are allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-replicatorname) * @param replicatorName The name of the replicator. */ @@ -449,32 +458,32 @@ public open class CfnReplicator( } /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-serviceexecutionrolearn) - * @param serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the - * replicator to access external resources. + * @param serviceExecutionRoleArn The ARN of the IAM role used by the replicator to access + * resources in the customer's account (e.g source and target clusters). */ override fun serviceExecutionRoleArn(serviceExecutionRoleArn: String) { cdkBuilder.serviceExecutionRoleArn(serviceExecutionRoleArn) } /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -502,7 +511,7 @@ public open class CfnReplicator( } /** - * Details of an Amazon MSK cluster. + * Details of an Amazon MSK Cluster. * * Example: * @@ -519,7 +528,7 @@ public open class CfnReplicator( */ public interface AmazonMskClusterProperty { /** - * The ARN of an Amazon MSK cluster. + * The Amazon Resource Name (ARN) of an Amazon MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-amazonmskcluster.html#cfn-msk-replicator-amazonmskcluster-mskclusterarn) */ @@ -531,7 +540,7 @@ public open class CfnReplicator( @CdkDslMarker public interface Builder { /** - * @param mskClusterArn The ARN of an Amazon MSK cluster. + * @param mskClusterArn The Amazon Resource Name (ARN) of an Amazon MSK cluster. */ public fun mskClusterArn(mskClusterArn: String) } @@ -542,7 +551,7 @@ public open class CfnReplicator( software.amazon.awscdk.services.msk.CfnReplicator.AmazonMskClusterProperty.builder() /** - * @param mskClusterArn The ARN of an Amazon MSK cluster. + * @param mskClusterArn The Amazon Resource Name (ARN) of an Amazon MSK cluster. */ override fun mskClusterArn(mskClusterArn: String) { cdkBuilder.mskClusterArn(mskClusterArn) @@ -554,9 +563,10 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.AmazonMskClusterProperty, - ) : CdkObject(cdkObject), AmazonMskClusterProperty { + ) : CdkObject(cdkObject), + AmazonMskClusterProperty { /** - * The ARN of an Amazon MSK cluster. + * The Amazon Resource Name (ARN) of an Amazon MSK cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-amazonmskcluster.html#cfn-msk-replicator-amazonmskcluster-mskclusterarn) */ @@ -582,7 +592,7 @@ public open class CfnReplicator( } /** - * Configuration relating to consumer group replication. + * Details about consumer group replication. * * Example: * @@ -620,7 +630,7 @@ public open class CfnReplicator( public fun consumerGroupsToReplicate(): List /** - * Whether to periodically check for new consumer groups. + * Enables synchronization of consumer groups to target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-detectandcopynewconsumergroups) */ @@ -628,8 +638,9 @@ public open class CfnReplicator( unwrap(this).getDetectAndCopyNewConsumerGroups() /** - * Whether to periodically write the translated offsets to __consumer_offsets topic in target - * cluster. + * Enables synchronization of consumer group offsets to target cluster. + * + * The translated offsets will be written to topic __consumer_offsets. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-synchroniseconsumergroupoffsets) */ @@ -666,26 +677,28 @@ public open class CfnReplicator( public fun consumerGroupsToReplicate(vararg consumerGroupsToReplicate: String) /** - * @param detectAndCopyNewConsumerGroups Whether to periodically check for new consumer - * groups. + * @param detectAndCopyNewConsumerGroups Enables synchronization of consumer groups to target + * cluster. */ public fun detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups: Boolean) /** - * @param detectAndCopyNewConsumerGroups Whether to periodically check for new consumer - * groups. + * @param detectAndCopyNewConsumerGroups Enables synchronization of consumer groups to target + * cluster. */ public fun detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups: IResolvable) /** - * @param synchroniseConsumerGroupOffsets Whether to periodically write the translated offsets - * to __consumer_offsets topic in target cluster. + * @param synchroniseConsumerGroupOffsets Enables synchronization of consumer group offsets to + * target cluster. + * The translated offsets will be written to topic __consumer_offsets. */ public fun synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets: Boolean) /** - * @param synchroniseConsumerGroupOffsets Whether to periodically write the translated offsets - * to __consumer_offsets topic in target cluster. + * @param synchroniseConsumerGroupOffsets Enables synchronization of consumer group offsets to + * target cluster. + * The translated offsets will be written to topic __consumer_offsets. */ public fun synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets: IResolvable) } @@ -727,32 +740,34 @@ public open class CfnReplicator( consumerGroupsToReplicate(consumerGroupsToReplicate.toList()) /** - * @param detectAndCopyNewConsumerGroups Whether to periodically check for new consumer - * groups. + * @param detectAndCopyNewConsumerGroups Enables synchronization of consumer groups to target + * cluster. */ override fun detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups: Boolean) { cdkBuilder.detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups) } /** - * @param detectAndCopyNewConsumerGroups Whether to periodically check for new consumer - * groups. + * @param detectAndCopyNewConsumerGroups Enables synchronization of consumer groups to target + * cluster. */ override fun detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups: IResolvable) { cdkBuilder.detectAndCopyNewConsumerGroups(detectAndCopyNewConsumerGroups.let(IResolvable.Companion::unwrap)) } /** - * @param synchroniseConsumerGroupOffsets Whether to periodically write the translated offsets - * to __consumer_offsets topic in target cluster. + * @param synchroniseConsumerGroupOffsets Enables synchronization of consumer group offsets to + * target cluster. + * The translated offsets will be written to topic __consumer_offsets. */ override fun synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets: Boolean) { cdkBuilder.synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets) } /** - * @param synchroniseConsumerGroupOffsets Whether to periodically write the translated offsets - * to __consumer_offsets topic in target cluster. + * @param synchroniseConsumerGroupOffsets Enables synchronization of consumer group offsets to + * target cluster. + * The translated offsets will be written to topic __consumer_offsets. */ override fun synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets: IResolvable) { cdkBuilder.synchroniseConsumerGroupOffsets(synchroniseConsumerGroupOffsets.let(IResolvable.Companion::unwrap)) @@ -765,7 +780,8 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.ConsumerGroupReplicationProperty, - ) : CdkObject(cdkObject), ConsumerGroupReplicationProperty { + ) : CdkObject(cdkObject), + ConsumerGroupReplicationProperty { /** * List of regular expression patterns indicating the consumer groups that should not be * replicated. @@ -784,7 +800,7 @@ public open class CfnReplicator( unwrap(this).getConsumerGroupsToReplicate() /** - * Whether to periodically check for new consumer groups. + * Enables synchronization of consumer groups to target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-detectandcopynewconsumergroups) */ @@ -792,8 +808,9 @@ public open class CfnReplicator( unwrap(this).getDetectAndCopyNewConsumerGroups() /** - * Whether to periodically write the translated offsets to __consumer_offsets topic in target - * cluster. + * Enables synchronization of consumer group offsets to target cluster. + * + * The translated offsets will be written to topic __consumer_offsets. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-synchroniseconsumergroupoffsets) */ @@ -820,7 +837,7 @@ public open class CfnReplicator( } /** - * Details of an Amazon VPC which has network connectivity to the Kafka cluster. + * Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. * * Example: * @@ -840,20 +857,14 @@ public open class CfnReplicator( */ public interface KafkaClusterClientVpcConfigProperty { /** - * The AWS security groups to associate with the elastic network interfaces in order to specify - * what the replicator has access to. - * - * If a security group is not specified, the default security group associated with the VPC is - * used. + * The security groups to attach to the ENIs for the broker nodes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkaclusterclientvpcconfig.html#cfn-msk-replicator-kafkaclusterclientvpcconfig-securitygroupids) */ public fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() ?: emptyList() /** - * The list of subnets to connect to in the virtual private cloud (VPC). - * - * AWS creates elastic network interfaces inside these subnets. + * The list of subnets in the client VPC to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkaclusterclientvpcconfig.html#cfn-msk-replicator-kafkaclusterclientvpcconfig-subnetids) */ @@ -865,30 +876,22 @@ public open class CfnReplicator( @CdkDslMarker public interface Builder { /** - * @param securityGroupIds The AWS security groups to associate with the elastic network - * interfaces in order to specify what the replicator has access to. - * If a security group is not specified, the default security group associated with the VPC is - * used. + * @param securityGroupIds The security groups to attach to the ENIs for the broker nodes. */ public fun securityGroupIds(securityGroupIds: List) /** - * @param securityGroupIds The AWS security groups to associate with the elastic network - * interfaces in order to specify what the replicator has access to. - * If a security group is not specified, the default security group associated with the VPC is - * used. + * @param securityGroupIds The security groups to attach to the ENIs for the broker nodes. */ public fun securityGroupIds(vararg securityGroupIds: String) /** - * @param subnetIds The list of subnets to connect to in the virtual private cloud (VPC). - * AWS creates elastic network interfaces inside these subnets. + * @param subnetIds The list of subnets in the client VPC to connect to. */ public fun subnetIds(subnetIds: List) /** - * @param subnetIds The list of subnets to connect to in the virtual private cloud (VPC). - * AWS creates elastic network interfaces inside these subnets. + * @param subnetIds The list of subnets in the client VPC to connect to. */ public fun subnetIds(vararg subnetIds: String) } @@ -900,35 +903,27 @@ public open class CfnReplicator( software.amazon.awscdk.services.msk.CfnReplicator.KafkaClusterClientVpcConfigProperty.builder() /** - * @param securityGroupIds The AWS security groups to associate with the elastic network - * interfaces in order to specify what the replicator has access to. - * If a security group is not specified, the default security group associated with the VPC is - * used. + * @param securityGroupIds The security groups to attach to the ENIs for the broker nodes. */ override fun securityGroupIds(securityGroupIds: List) { cdkBuilder.securityGroupIds(securityGroupIds) } /** - * @param securityGroupIds The AWS security groups to associate with the elastic network - * interfaces in order to specify what the replicator has access to. - * If a security group is not specified, the default security group associated with the VPC is - * used. + * @param securityGroupIds The security groups to attach to the ENIs for the broker nodes. */ override fun securityGroupIds(vararg securityGroupIds: String): Unit = securityGroupIds(securityGroupIds.toList()) /** - * @param subnetIds The list of subnets to connect to in the virtual private cloud (VPC). - * AWS creates elastic network interfaces inside these subnets. + * @param subnetIds The list of subnets in the client VPC to connect to. */ override fun subnetIds(subnetIds: List) { cdkBuilder.subnetIds(subnetIds) } /** - * @param subnetIds The list of subnets to connect to in the virtual private cloud (VPC). - * AWS creates elastic network interfaces inside these subnets. + * @param subnetIds The list of subnets in the client VPC to connect to. */ override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) @@ -939,13 +934,10 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.KafkaClusterClientVpcConfigProperty, - ) : CdkObject(cdkObject), KafkaClusterClientVpcConfigProperty { + ) : CdkObject(cdkObject), + KafkaClusterClientVpcConfigProperty { /** - * The AWS security groups to associate with the elastic network interfaces in order to - * specify what the replicator has access to. - * - * If a security group is not specified, the default security group associated with the VPC is - * used. + * The security groups to attach to the ENIs for the broker nodes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkaclusterclientvpcconfig.html#cfn-msk-replicator-kafkaclusterclientvpcconfig-securitygroupids) */ @@ -953,9 +945,7 @@ public open class CfnReplicator( emptyList() /** - * The list of subnets to connect to in the virtual private cloud (VPC). - * - * AWS creates elastic network interfaces inside these subnets. + * The list of subnets in the client VPC to connect to. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkaclusterclientvpcconfig.html#cfn-msk-replicator-kafkaclusterclientvpcconfig-subnetids) */ @@ -982,7 +972,7 @@ public open class CfnReplicator( } /** - * Details of a Kafka cluster for replication. + * Information about Kafka Cluster to be used as source / target for replication. * * Example: * @@ -1006,14 +996,14 @@ public open class CfnReplicator( */ public interface KafkaClusterProperty { /** - * Details of an Amazon MSK cluster. + * Details of an Amazon MSK Cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkacluster.html#cfn-msk-replicator-kafkacluster-amazonmskcluster) */ public fun amazonMskCluster(): Any /** - * Details of an Amazon VPC which has network connectivity to the Kafka cluster. + * Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkacluster.html#cfn-msk-replicator-kafkacluster-vpcconfig) */ @@ -1025,37 +1015,37 @@ public open class CfnReplicator( @CdkDslMarker public interface Builder { /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ public fun amazonMskCluster(amazonMskCluster: IResolvable) /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ public fun amazonMskCluster(amazonMskCluster: AmazonMskClusterProperty) /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("dda93ffc922370d5d74a50c420b24e226789fea4da484ef0c991e73974b1ce90") public fun amazonMskCluster(amazonMskCluster: AmazonMskClusterProperty.Builder.() -> Unit) /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ public fun vpcConfig(vpcConfig: IResolvable) /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ public fun vpcConfig(vpcConfig: KafkaClusterClientVpcConfigProperty) /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("971c41287b8b9b103a2fd7f3b3412307fa940f7bd71dd3482fcf4ea230d661f3") @@ -1068,21 +1058,21 @@ public open class CfnReplicator( software.amazon.awscdk.services.msk.CfnReplicator.KafkaClusterProperty.builder() /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ override fun amazonMskCluster(amazonMskCluster: IResolvable) { cdkBuilder.amazonMskCluster(amazonMskCluster.let(IResolvable.Companion::unwrap)) } /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ override fun amazonMskCluster(amazonMskCluster: AmazonMskClusterProperty) { cdkBuilder.amazonMskCluster(amazonMskCluster.let(AmazonMskClusterProperty.Companion::unwrap)) } /** - * @param amazonMskCluster Details of an Amazon MSK cluster. + * @param amazonMskCluster Details of an Amazon MSK Cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("dda93ffc922370d5d74a50c420b24e226789fea4da484ef0c991e73974b1ce90") @@ -1090,24 +1080,24 @@ public open class CfnReplicator( Unit = amazonMskCluster(AmazonMskClusterProperty(amazonMskCluster)) /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ override fun vpcConfig(vpcConfig: IResolvable) { cdkBuilder.vpcConfig(vpcConfig.let(IResolvable.Companion::unwrap)) } /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ override fun vpcConfig(vpcConfig: KafkaClusterClientVpcConfigProperty) { cdkBuilder.vpcConfig(vpcConfig.let(KafkaClusterClientVpcConfigProperty.Companion::unwrap)) } /** - * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Kafka - * cluster. + * @param vpcConfig Details of an Amazon VPC which has network connectivity to the Apache + * Kafka cluster. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("971c41287b8b9b103a2fd7f3b3412307fa940f7bd71dd3482fcf4ea230d661f3") @@ -1120,16 +1110,17 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.KafkaClusterProperty, - ) : CdkObject(cdkObject), KafkaClusterProperty { + ) : CdkObject(cdkObject), + KafkaClusterProperty { /** - * Details of an Amazon MSK cluster. + * Details of an Amazon MSK Cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkacluster.html#cfn-msk-replicator-kafkacluster-amazonmskcluster) */ override fun amazonMskCluster(): Any = unwrap(this).getAmazonMskCluster() /** - * Details of an Amazon VPC which has network connectivity to the Kafka cluster. + * Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-kafkacluster.html#cfn-msk-replicator-kafkacluster-vpcconfig) */ @@ -1183,6 +1174,9 @@ public open class CfnReplicator( * .startingPosition(ReplicationStartingPositionProperty.builder() * .type("type") * .build()) + * .topicNameConfiguration(ReplicationTopicNameConfigurationProperty.builder() + * .type("type") + * .build()) * .topicsToExclude(List.of("topicsToExclude")) * .build()) * .build(); @@ -1199,27 +1193,29 @@ public open class CfnReplicator( public fun consumerGroupReplication(): Any /** - * Amazon Resource Name of the source Kafka cluster. + * The ARN of the source Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-sourcekafkaclusterarn) */ public fun sourceKafkaClusterArn(): String /** - * The type of compression to use writing records to target Kafka cluster. + * The compression type to use when producing records to target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-targetcompressiontype) */ public fun targetCompressionType(): String /** - * Amazon Resource Name of the target Kafka cluster. + * The ARN of the target Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-targetkafkaclusterarn) */ public fun targetKafkaClusterArn(): String /** + * Configuration relating to topic replication. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-topicreplication) */ public fun topicReplication(): Any @@ -1249,33 +1245,33 @@ public open class CfnReplicator( fun consumerGroupReplication(consumerGroupReplication: ConsumerGroupReplicationProperty.Builder.() -> Unit) /** - * @param sourceKafkaClusterArn Amazon Resource Name of the source Kafka cluster. + * @param sourceKafkaClusterArn The ARN of the source Kafka cluster. */ public fun sourceKafkaClusterArn(sourceKafkaClusterArn: String) /** - * @param targetCompressionType The type of compression to use writing records to target Kafka + * @param targetCompressionType The compression type to use when producing records to target * cluster. */ public fun targetCompressionType(targetCompressionType: String) /** - * @param targetKafkaClusterArn Amazon Resource Name of the target Kafka cluster. + * @param targetKafkaClusterArn The ARN of the target Kafka cluster. */ public fun targetKafkaClusterArn(targetKafkaClusterArn: String) /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ public fun topicReplication(topicReplication: IResolvable) /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ public fun topicReplication(topicReplication: TopicReplicationProperty) /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b4ee2bf42bc2bd82f557b0d4373d457139166eb17a251e2f001dc2ab5ced9364") @@ -1313,14 +1309,14 @@ public open class CfnReplicator( consumerGroupReplication(ConsumerGroupReplicationProperty(consumerGroupReplication)) /** - * @param sourceKafkaClusterArn Amazon Resource Name of the source Kafka cluster. + * @param sourceKafkaClusterArn The ARN of the source Kafka cluster. */ override fun sourceKafkaClusterArn(sourceKafkaClusterArn: String) { cdkBuilder.sourceKafkaClusterArn(sourceKafkaClusterArn) } /** - * @param targetCompressionType The type of compression to use writing records to target Kafka + * @param targetCompressionType The compression type to use when producing records to target * cluster. */ override fun targetCompressionType(targetCompressionType: String) { @@ -1328,28 +1324,28 @@ public open class CfnReplicator( } /** - * @param targetKafkaClusterArn Amazon Resource Name of the target Kafka cluster. + * @param targetKafkaClusterArn The ARN of the target Kafka cluster. */ override fun targetKafkaClusterArn(targetKafkaClusterArn: String) { cdkBuilder.targetKafkaClusterArn(targetKafkaClusterArn) } /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ override fun topicReplication(topicReplication: IResolvable) { cdkBuilder.topicReplication(topicReplication.let(IResolvable.Companion::unwrap)) } /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ override fun topicReplication(topicReplication: TopicReplicationProperty) { cdkBuilder.topicReplication(topicReplication.let(TopicReplicationProperty.Companion::unwrap)) } /** - * @param topicReplication the value to be set. + * @param topicReplication Configuration relating to topic replication. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b4ee2bf42bc2bd82f557b0d4373d457139166eb17a251e2f001dc2ab5ced9364") @@ -1362,7 +1358,8 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.ReplicationInfoProperty, - ) : CdkObject(cdkObject), ReplicationInfoProperty { + ) : CdkObject(cdkObject), + ReplicationInfoProperty { /** * Configuration relating to consumer group replication. * @@ -1371,27 +1368,29 @@ public open class CfnReplicator( override fun consumerGroupReplication(): Any = unwrap(this).getConsumerGroupReplication() /** - * Amazon Resource Name of the source Kafka cluster. + * The ARN of the source Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-sourcekafkaclusterarn) */ override fun sourceKafkaClusterArn(): String = unwrap(this).getSourceKafkaClusterArn() /** - * The type of compression to use writing records to target Kafka cluster. + * The compression type to use when producing records to target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-targetcompressiontype) */ override fun targetCompressionType(): String = unwrap(this).getTargetCompressionType() /** - * Amazon Resource Name of the target Kafka cluster. + * The ARN of the target Kafka cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-targetkafkaclusterarn) */ override fun targetKafkaClusterArn(): String = unwrap(this).getTargetKafkaClusterArn() /** + * Configuration relating to topic replication. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationinfo.html#cfn-msk-replicator-replicationinfo-topicreplication) */ override fun topicReplication(): Any = unwrap(this).getTopicReplication() @@ -1416,7 +1415,7 @@ public open class CfnReplicator( } /** - * Configuration for specifying the position in the topics to start replicating from. + * Specifies the position in the topics to start replicating from. * * Example: * @@ -1471,7 +1470,8 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.ReplicationStartingPositionProperty, - ) : CdkObject(cdkObject), ReplicationStartingPositionProperty { + ) : CdkObject(cdkObject), + ReplicationStartingPositionProperty { /** * The type of replication starting position. * @@ -1500,6 +1500,98 @@ public open class CfnReplicator( } /** + * Configuration for specifying replicated topic names will be the same as their corresponding + * upstream topics or prefixed with source cluster alias. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.msk.*; + * ReplicationTopicNameConfigurationProperty replicationTopicNameConfigurationProperty = + * ReplicationTopicNameConfigurationProperty.builder() + * .type("type") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationtopicnameconfiguration.html) + */ + public interface ReplicationTopicNameConfigurationProperty { + /** + * The type of replication topic name configuration, identical to upstream topic name or + * prefixed with source cluster alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationtopicnameconfiguration.html#cfn-msk-replicator-replicationtopicnameconfiguration-type) + */ + public fun type(): String? = unwrap(this).getType() + + /** + * A builder for [ReplicationTopicNameConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param type The type of replication topic name configuration, identical to upstream topic + * name or prefixed with source cluster alias. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty.Builder + = + software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty.builder() + + /** + * @param type The type of replication topic name configuration, identical to upstream topic + * name or prefixed with source cluster alias. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty, + ) : CdkObject(cdkObject), + ReplicationTopicNameConfigurationProperty { + /** + * The type of replication topic name configuration, identical to upstream topic name or + * prefixed with source cluster alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-replicationtopicnameconfiguration.html#cfn-msk-replicator-replicationtopicnameconfiguration-type) + */ + override fun type(): String? = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ReplicationTopicNameConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty): + ReplicationTopicNameConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ReplicationTopicNameConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ReplicationTopicNameConfigurationProperty): + software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.msk.CfnReplicator.ReplicationTopicNameConfigurationProperty + } + } + + /** + * Details about topic replication. + * * Example: * * ``` @@ -1515,6 +1607,9 @@ public open class CfnReplicator( * .startingPosition(ReplicationStartingPositionProperty.builder() * .type("type") * .build()) + * .topicNameConfiguration(ReplicationTopicNameConfigurationProperty.builder() + * .type("type") + * .build()) * .topicsToExclude(List.of("topicsToExclude")) * .build(); * ``` @@ -1546,12 +1641,20 @@ public open class CfnReplicator( public fun detectAndCopyNewTopics(): Any? = unwrap(this).getDetectAndCopyNewTopics() /** - * Configuration for specifying the position in the topics to start replicating from. + * Specifies the position in the topics to start replicating from. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-topicreplication.html#cfn-msk-replicator-topicreplication-startingposition) */ public fun startingPosition(): Any? = unwrap(this).getStartingPosition() + /** + * Configuration for specifying replicated topic names will be the same as their corresponding + * upstream topics or prefixed with source cluster alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-topicreplication.html#cfn-msk-replicator-topicreplication-topicnameconfiguration) + */ + public fun topicNameConfiguration(): Any? = unwrap(this).getTopicNameConfiguration() + /** * List of regular expression patterns indicating the topics that should not be replicated. * @@ -1606,26 +1709,45 @@ public open class CfnReplicator( public fun detectAndCopyNewTopics(detectAndCopyNewTopics: IResolvable) /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ public fun startingPosition(startingPosition: IResolvable) /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ public fun startingPosition(startingPosition: ReplicationStartingPositionProperty) /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b216c9fb6cd3c2d96380696c26c913ca537b6a0175cb86fa24f15fddcce2b9d6") public fun startingPosition(startingPosition: ReplicationStartingPositionProperty.Builder.() -> Unit) + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + public fun topicNameConfiguration(topicNameConfiguration: IResolvable) + + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + public + fun topicNameConfiguration(topicNameConfiguration: ReplicationTopicNameConfigurationProperty) + + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dbfb614ac0eacc55a86aaf8ba669177fdb9f9719e3449e0f3aed36a970d4b533") + public + fun topicNameConfiguration(topicNameConfiguration: ReplicationTopicNameConfigurationProperty.Builder.() -> Unit) + /** * @param topicsToExclude List of regular expression patterns indicating the topics that * should not be replicated. @@ -1703,24 +1825,21 @@ public open class CfnReplicator( } /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ override fun startingPosition(startingPosition: IResolvable) { cdkBuilder.startingPosition(startingPosition.let(IResolvable.Companion::unwrap)) } /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ override fun startingPosition(startingPosition: ReplicationStartingPositionProperty) { cdkBuilder.startingPosition(startingPosition.let(ReplicationStartingPositionProperty.Companion::unwrap)) } /** - * @param startingPosition Configuration for specifying the position in the topics to start - * replicating from. + * @param startingPosition Specifies the position in the topics to start replicating from. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b216c9fb6cd3c2d96380696c26c913ca537b6a0175cb86fa24f15fddcce2b9d6") @@ -1728,6 +1847,34 @@ public open class CfnReplicator( fun startingPosition(startingPosition: ReplicationStartingPositionProperty.Builder.() -> Unit): Unit = startingPosition(ReplicationStartingPositionProperty(startingPosition)) + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + override fun topicNameConfiguration(topicNameConfiguration: IResolvable) { + cdkBuilder.topicNameConfiguration(topicNameConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + override + fun topicNameConfiguration(topicNameConfiguration: ReplicationTopicNameConfigurationProperty) { + cdkBuilder.topicNameConfiguration(topicNameConfiguration.let(ReplicationTopicNameConfigurationProperty.Companion::unwrap)) + } + + /** + * @param topicNameConfiguration Configuration for specifying replicated topic names will be + * the same as their corresponding upstream topics or prefixed with source cluster alias. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dbfb614ac0eacc55a86aaf8ba669177fdb9f9719e3449e0f3aed36a970d4b533") + override + fun topicNameConfiguration(topicNameConfiguration: ReplicationTopicNameConfigurationProperty.Builder.() -> Unit): + Unit = + topicNameConfiguration(ReplicationTopicNameConfigurationProperty(topicNameConfiguration)) + /** * @param topicsToExclude List of regular expression patterns indicating the topics that * should not be replicated. @@ -1764,7 +1911,8 @@ public open class CfnReplicator( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicator.TopicReplicationProperty, - ) : CdkObject(cdkObject), TopicReplicationProperty { + ) : CdkObject(cdkObject), + TopicReplicationProperty { /** * Whether to periodically configure remote topic ACLs to match their corresponding upstream * topics. @@ -1790,12 +1938,20 @@ public open class CfnReplicator( override fun detectAndCopyNewTopics(): Any? = unwrap(this).getDetectAndCopyNewTopics() /** - * Configuration for specifying the position in the topics to start replicating from. + * Specifies the position in the topics to start replicating from. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-topicreplication.html#cfn-msk-replicator-topicreplication-startingposition) */ override fun startingPosition(): Any? = unwrap(this).getStartingPosition() + /** + * Configuration for specifying replicated topic names will be the same as their corresponding + * upstream topics or prefixed with source cluster alias. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-topicreplication.html#cfn-msk-replicator-topicreplication-topicnameconfiguration) + */ + override fun topicNameConfiguration(): Any? = unwrap(this).getTopicNameConfiguration() + /** * List of regular expression patterns indicating the topics that should not be replicated. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicatorProps.kt index 76a210f12c..4e3c5a4dfc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicatorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnReplicatorProps.kt @@ -52,6 +52,9 @@ import kotlin.collections.List * .startingPosition(ReplicationStartingPositionProperty.builder() * .type("type") * .build()) + * .topicNameConfiguration(ReplicationTopicNameConfigurationProperty.builder() + * .type("type") + * .build()) * .topicsToExclude(List.of("topicsToExclude")) * .build()) * .build())) @@ -71,7 +74,7 @@ import kotlin.collections.List */ public interface CfnReplicatorProps { /** - * The current version of the MSK replicator. + * The current version number of the replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-currentversion) */ @@ -85,7 +88,7 @@ public interface CfnReplicatorProps { public fun description(): String? = unwrap(this).getDescription() /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) */ @@ -102,20 +105,22 @@ public interface CfnReplicatorProps { /** * The name of the replicator. * + * Alpha-numeric characters with '-' are allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-replicatorname) */ public fun replicatorName(): String /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-serviceexecutionrolearn) */ public fun serviceExecutionRoleArn(): String /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) */ @@ -127,7 +132,7 @@ public interface CfnReplicatorProps { @CdkDslMarker public interface Builder { /** - * @param currentVersion The current version of the MSK replicator. + * @param currentVersion The current version number of the replicator. */ public fun currentVersion(currentVersion: String) @@ -137,17 +142,17 @@ public interface CfnReplicatorProps { public fun description(description: String) /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(kafkaClusters: IResolvable) /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(kafkaClusters: List) /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ public fun kafkaClusters(vararg kafkaClusters: Any) @@ -171,22 +176,23 @@ public interface CfnReplicatorProps { /** * @param replicatorName The name of the replicator. + * Alpha-numeric characters with '-' are allowed. */ public fun replicatorName(replicatorName: String) /** - * @param serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the - * replicator to access external resources. + * @param serviceExecutionRoleArn The ARN of the IAM role used by the replicator to access + * resources in the customer's account (e.g source and target clusters). */ public fun serviceExecutionRoleArn(serviceExecutionRoleArn: String) /** - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ public fun tags(tags: List) /** - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ public fun tags(vararg tags: CfnTag) } @@ -196,7 +202,7 @@ public interface CfnReplicatorProps { software.amazon.awscdk.services.msk.CfnReplicatorProps.builder() /** - * @param currentVersion The current version of the MSK replicator. + * @param currentVersion The current version number of the replicator. */ override fun currentVersion(currentVersion: String) { cdkBuilder.currentVersion(currentVersion) @@ -210,21 +216,21 @@ public interface CfnReplicatorProps { } /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(kafkaClusters: IResolvable) { cdkBuilder.kafkaClusters(kafkaClusters.let(IResolvable.Companion::unwrap)) } /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(kafkaClusters: List) { cdkBuilder.kafkaClusters(kafkaClusters.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param kafkaClusters Specifies a list of Kafka clusters which are targets of the replicator. + * @param kafkaClusters Kafka Clusters to use in setting up sources / targets for replication. */ override fun kafkaClusters(vararg kafkaClusters: Any): Unit = kafkaClusters(kafkaClusters.toList()) @@ -254,28 +260,29 @@ public interface CfnReplicatorProps { /** * @param replicatorName The name of the replicator. + * Alpha-numeric characters with '-' are allowed. */ override fun replicatorName(replicatorName: String) { cdkBuilder.replicatorName(replicatorName) } /** - * @param serviceExecutionRoleArn The Amazon Resource Name (ARN) of the IAM role used by the - * replicator to access external resources. + * @param serviceExecutionRoleArn The ARN of the IAM role used by the replicator to access + * resources in the customer's account (e.g source and target clusters). */ override fun serviceExecutionRoleArn(serviceExecutionRoleArn: String) { cdkBuilder.serviceExecutionRoleArn(serviceExecutionRoleArn) } /** - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags A collection of tags associated with a resource. + * @param tags List of tags to attach to created Replicator. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -284,9 +291,10 @@ public interface CfnReplicatorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnReplicatorProps, - ) : CdkObject(cdkObject), CfnReplicatorProps { + ) : CdkObject(cdkObject), + CfnReplicatorProps { /** - * The current version of the MSK replicator. + * The current version number of the replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-currentversion) */ @@ -300,7 +308,7 @@ public interface CfnReplicatorProps { override fun description(): String? = unwrap(this).getDescription() /** - * Specifies a list of Kafka clusters which are targets of the replicator. + * Kafka Clusters to use in setting up sources / targets for replication. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-kafkaclusters) */ @@ -317,20 +325,22 @@ public interface CfnReplicatorProps { /** * The name of the replicator. * + * Alpha-numeric characters with '-' are allowed. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-replicatorname) */ override fun replicatorName(): String = unwrap(this).getReplicatorName() /** - * The Amazon Resource Name (ARN) of the IAM role used by the replicator to access external - * resources. + * The ARN of the IAM role used by the replicator to access resources in the customer's account + * (e.g source and target clusters). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-serviceexecutionrolearn) */ override fun serviceExecutionRoleArn(): String = unwrap(this).getServiceExecutionRoleArn() /** - * A collection of tags associated with a resource. + * List of tags to attach to created Replicator. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-replicator.html#cfn-msk-replicator-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessCluster.kt index fc1f58ce6f..7167407a3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessCluster.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServerlessCluster( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -78,26 +80,26 @@ public open class CfnServerlessCluster( public open fun attrArn(): String = unwrap(this).getAttrArn() /** - * Includes all client authentication information. + * */ public open fun clientAuthentication(): Any = unwrap(this).getClientAuthentication() /** - * Includes all client authentication information. + * */ public open fun clientAuthentication(`value`: IResolvable) { unwrap(this).setClientAuthentication(`value`.let(IResolvable.Companion::unwrap)) } /** - * Includes all client authentication information. + * */ public open fun clientAuthentication(`value`: ClientAuthenticationProperty) { unwrap(this).setClientAuthentication(`value`.let(ClientAuthenticationProperty.Companion::unwrap)) } /** - * Includes all client authentication information. + * */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("47b2aa882f21c3a05e9b8572d0c2f8f4cea7f6ad92fe0d760e88271c5a191540") @@ -172,26 +174,20 @@ public open class CfnServerlessCluster( @CdkDslMarker public interface Builder { /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ public fun clientAuthentication(clientAuthentication: IResolvable) /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ public fun clientAuthentication(clientAuthentication: ClientAuthenticationProperty) /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cc6ddd365d03cf7342a5451145f746ae7a22b32387a6f891094210535c9d63b7") @@ -239,30 +235,24 @@ public open class CfnServerlessCluster( software.amazon.awscdk.services.msk.CfnServerlessCluster.Builder.create(scope, id) /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ override fun clientAuthentication(clientAuthentication: IResolvable) { cdkBuilder.clientAuthentication(clientAuthentication.let(IResolvable.Companion::unwrap)) } /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ override fun clientAuthentication(clientAuthentication: ClientAuthenticationProperty) { cdkBuilder.clientAuthentication(clientAuthentication.let(ClientAuthenticationProperty.Companion::unwrap)) } /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("cc6ddd365d03cf7342a5451145f746ae7a22b32387a6f891094210535c9d63b7") @@ -336,8 +326,6 @@ public open class CfnServerlessCluster( } /** - * Includes all client authentication information. - * * Example: * * ``` @@ -358,12 +346,6 @@ public open class CfnServerlessCluster( */ public interface ClientAuthenticationProperty { /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. - * You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , - * then you must also set `unauthenticated` to true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html#cfn-msk-serverlesscluster-clientauthentication-sasl) */ public fun sasl(): Any @@ -374,26 +356,17 @@ public open class CfnServerlessCluster( @CdkDslMarker public interface Builder { /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ public fun sasl(sasl: IResolvable) /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ public fun sasl(sasl: SaslProperty) /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("25f43126068a4cef9e1fa0c00143bd78f445f833d035b8763d66db2835fd7a87") @@ -407,30 +380,21 @@ public open class CfnServerlessCluster( software.amazon.awscdk.services.msk.CfnServerlessCluster.ClientAuthenticationProperty.builder() /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ override fun sasl(sasl: IResolvable) { cdkBuilder.sasl(sasl.let(IResolvable.Companion::unwrap)) } /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ override fun sasl(sasl: SaslProperty) { cdkBuilder.sasl(sasl.let(SaslProperty.Companion::unwrap)) } /** - * @param sasl Details for client authentication using SASL. - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. + * @param sasl the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("25f43126068a4cef9e1fa0c00143bd78f445f833d035b8763d66db2835fd7a87") @@ -443,14 +407,9 @@ public open class CfnServerlessCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessCluster.ClientAuthenticationProperty, - ) : CdkObject(cdkObject), ClientAuthenticationProperty { + ) : CdkObject(cdkObject), + ClientAuthenticationProperty { /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to - * true. You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose - * `TLS_PLAINTEXT` , then you must also set `unauthenticated` to true. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html#cfn-msk-serverlesscluster-clientauthentication-sasl) */ override fun sasl(): Any = unwrap(this).getSasl() @@ -475,8 +434,6 @@ public open class CfnServerlessCluster( } /** - * Details for SASL/IAM client authentication. - * * Example: * * ``` @@ -492,8 +449,6 @@ public open class CfnServerlessCluster( */ public interface IamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-iam.html#cfn-msk-serverlesscluster-iam-enabled) */ public fun enabled(): Any @@ -504,12 +459,12 @@ public open class CfnServerlessCluster( @CdkDslMarker public interface Builder { /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: Boolean) /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ public fun enabled(enabled: IResolvable) } @@ -520,14 +475,14 @@ public open class CfnServerlessCluster( software.amazon.awscdk.services.msk.CfnServerlessCluster.IamProperty.builder() /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled SASL/IAM authentication is enabled or not. + * @param enabled the value to be set. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) @@ -539,10 +494,9 @@ public open class CfnServerlessCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessCluster.IamProperty, - ) : CdkObject(cdkObject), IamProperty { + ) : CdkObject(cdkObject), + IamProperty { /** - * SASL/IAM authentication is enabled or not. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-iam.html#cfn-msk-serverlesscluster-iam-enabled) */ override fun enabled(): Any = unwrap(this).getEnabled() @@ -566,12 +520,6 @@ public open class CfnServerlessCluster( } /** - * Details for client authentication using SASL. - * - * To turn on SASL, you must also turn on `EncryptionInTransit` by setting `inCluster` to true. - * You must set `clientBroker` to either `TLS` or `TLS_PLAINTEXT` . If you choose `TLS_PLAINTEXT` , - * then you must also set `unauthenticated` to true. - * * Example: * * ``` @@ -589,8 +537,6 @@ public open class CfnServerlessCluster( */ public interface SaslProperty { /** - * Details for ClientAuthentication using IAM. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-sasl.html#cfn-msk-serverlesscluster-sasl-iam) */ public fun iam(): Any @@ -601,17 +547,17 @@ public open class CfnServerlessCluster( @CdkDslMarker public interface Builder { /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ public fun iam(iam: IResolvable) /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ public fun iam(iam: IamProperty) /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c34c9bf0119fd310be992cabba59f51a54b78c65b04929f9828e945991a85a1f") @@ -624,21 +570,21 @@ public open class CfnServerlessCluster( software.amazon.awscdk.services.msk.CfnServerlessCluster.SaslProperty.builder() /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ override fun iam(iam: IResolvable) { cdkBuilder.iam(iam.let(IResolvable.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ override fun iam(iam: IamProperty) { cdkBuilder.iam(iam.let(IamProperty.Companion::unwrap)) } /** - * @param iam Details for ClientAuthentication using IAM. + * @param iam the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c34c9bf0119fd310be992cabba59f51a54b78c65b04929f9828e945991a85a1f") @@ -650,10 +596,9 @@ public open class CfnServerlessCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessCluster.SaslProperty, - ) : CdkObject(cdkObject), SaslProperty { + ) : CdkObject(cdkObject), + SaslProperty { /** - * Details for ClientAuthentication using IAM. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-sasl.html#cfn-msk-serverlesscluster-sasl-iam) */ override fun iam(): Any = unwrap(this).getIam() @@ -765,7 +710,8 @@ public open class CfnServerlessCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessCluster.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-vpcconfig.html#cfn-msk-serverlesscluster-vpcconfig-securitygroups) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessClusterProps.kt index 7a0d268186..38be8d3154 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnServerlessClusterProps.kt @@ -46,8 +46,6 @@ import kotlin.jvm.JvmName */ public interface CfnServerlessClusterProps { /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) */ public fun clientAuthentication(): Any @@ -75,18 +73,18 @@ public interface CfnServerlessClusterProps { @CdkDslMarker public interface Builder { /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: IResolvable) /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ public fun clientAuthentication(clientAuthentication: CfnServerlessCluster.ClientAuthenticationProperty) /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e82de3d16091b92d09d367f5e6706fe07c07c4e8f35d5be42249cd82ee85e3a6") @@ -124,14 +122,14 @@ public interface CfnServerlessClusterProps { software.amazon.awscdk.services.msk.CfnServerlessClusterProps.builder() /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: IResolvable) { cdkBuilder.clientAuthentication(clientAuthentication.let(IResolvable.Companion::unwrap)) } /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ override fun clientAuthentication(clientAuthentication: CfnServerlessCluster.ClientAuthenticationProperty) { @@ -139,7 +137,7 @@ public interface CfnServerlessClusterProps { } /** - * @param clientAuthentication Includes all client authentication information. + * @param clientAuthentication the value to be set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e82de3d16091b92d09d367f5e6706fe07c07c4e8f35d5be42249cd82ee85e3a6") @@ -187,10 +185,9 @@ public interface CfnServerlessClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnServerlessClusterProps, - ) : CdkObject(cdkObject), CfnServerlessClusterProps { + ) : CdkObject(cdkObject), + CfnServerlessClusterProps { /** - * Includes all client authentication information. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html#cfn-msk-serverlesscluster-clientauthentication) */ override fun clientAuthentication(): Any = unwrap(this).getClientAuthentication() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnection.kt index 4cdc84de6a..c95ecd3bb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnection.kt @@ -16,7 +16,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Create remote VPC connection. + * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html. * * Example: * @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcConnection( cdkObject: software.amazon.awscdk.services.msk.CfnVpcConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -75,19 +77,19 @@ public open class CfnVpcConnection( } /** - * The list of subnets in the client VPC to connect to. + * */ public open fun clientSubnets(): List = unwrap(this).getClientSubnets() /** - * The list of subnets in the client VPC to connect to. + * */ public open fun clientSubnets(`value`: List) { unwrap(this).setClientSubnets(`value`) } /** - * The list of subnets in the client VPC to connect to. + * */ public open fun clientSubnets(vararg `value`: String): Unit = clientSubnets(`value`.toList()) @@ -101,19 +103,19 @@ public open class CfnVpcConnection( } /** - * The security groups to attach to the ENIs for the broker nodes. + * */ public open fun securityGroups(): List = unwrap(this).getSecurityGroups() /** - * The security groups to attach to the ENIs for the broker nodes. + * */ public open fun securityGroups(`value`: List) { unwrap(this).setSecurityGroups(`value`) } /** - * The security groups to attach to the ENIs for the broker nodes. + * */ public open fun securityGroups(vararg `value`: String): Unit = securityGroups(`value`.toList()) @@ -123,36 +125,36 @@ public open class CfnVpcConnection( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. */ public open fun tagsRaw(): Map = unwrap(this).getTagsRaw() ?: emptyMap() /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. */ public open fun tagsRaw(`value`: Map) { unwrap(this).setTagsRaw(`value`) } /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. */ public open fun targetClusterArn(): String = unwrap(this).getTargetClusterArn() /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. */ public open fun targetClusterArn(`value`: String) { unwrap(this).setTargetClusterArn(`value`) } /** - * The VPC id of the remote client. + * */ public open fun vpcId(): String = unwrap(this).getVpcId() /** - * The VPC id of the remote client. + * */ public open fun vpcId(`value`: String) { unwrap(this).setVpcId(`value`) @@ -172,58 +174,48 @@ public open class CfnVpcConnection( public fun authentication(authentication: String) /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets */ public fun clientSubnets(clientSubnets: List) /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets */ public fun clientSubnets(vararg clientSubnets: String) /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups */ public fun securityGroups(securityGroups: List) /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups */ public fun securityGroups(vararg securityGroups: String) /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-tags) - * @param tags Create tags when creating the VPC connection. + * @param tags A key-value pair to associate with a resource. */ public fun tags(tags: Map) /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-targetclusterarn) - * @param targetClusterArn The Amazon Resource Name (ARN) of the cluster. + * @param targetClusterArn The Amazon Resource Name (ARN) of the target cluster. */ public fun targetClusterArn(targetClusterArn: String) /** - * The VPC id of the remote client. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-vpcid) - * @param vpcId The VPC id of the remote client. + * @param vpcId */ public fun vpcId(vpcId: String) } @@ -246,68 +238,58 @@ public open class CfnVpcConnection( } /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets */ override fun clientSubnets(clientSubnets: List) { cdkBuilder.clientSubnets(clientSubnets) } /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets */ override fun clientSubnets(vararg clientSubnets: String): Unit = clientSubnets(clientSubnets.toList()) /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups */ override fun securityGroups(securityGroups: List) { cdkBuilder.securityGroups(securityGroups) } /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups */ override fun securityGroups(vararg securityGroups: String): Unit = securityGroups(securityGroups.toList()) /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-tags) - * @param tags Create tags when creating the VPC connection. + * @param tags A key-value pair to associate with a resource. */ override fun tags(tags: Map) { cdkBuilder.tags(tags) } /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-targetclusterarn) - * @param targetClusterArn The Amazon Resource Name (ARN) of the cluster. + * @param targetClusterArn The Amazon Resource Name (ARN) of the target cluster. */ override fun targetClusterArn(targetClusterArn: String) { cdkBuilder.targetClusterArn(targetClusterArn) } /** - * The VPC id of the remote client. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-vpcid) - * @param vpcId The VPC id of the remote client. + * @param vpcId */ override fun vpcId(vpcId: String) { cdkBuilder.vpcId(vpcId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnectionProps.kt index 981385d95b..f9131df3ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/msk/CfnVpcConnectionProps.kt @@ -42,36 +42,30 @@ public interface CfnVpcConnectionProps { public fun authentication(): String /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) */ public fun clientSubnets(): List /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) */ public fun securityGroups(): List /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-tags) */ public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-targetclusterarn) */ public fun targetClusterArn(): String /** - * The VPC id of the remote client. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-vpcid) */ public fun vpcId(): String @@ -87,37 +81,37 @@ public interface CfnVpcConnectionProps { public fun authentication(authentication: String) /** - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets the value to be set. */ public fun clientSubnets(clientSubnets: List) /** - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets the value to be set. */ public fun clientSubnets(vararg clientSubnets: String) /** - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups the value to be set. */ public fun securityGroups(securityGroups: List) /** - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups the value to be set. */ public fun securityGroups(vararg securityGroups: String) /** - * @param tags Create tags when creating the VPC connection. + * @param tags A key-value pair to associate with a resource. */ public fun tags(tags: Map) /** - * @param targetClusterArn The Amazon Resource Name (ARN) of the cluster. + * @param targetClusterArn The Amazon Resource Name (ARN) of the target cluster. */ public fun targetClusterArn(targetClusterArn: String) /** - * @param vpcId The VPC id of the remote client. + * @param vpcId the value to be set. */ public fun vpcId(vpcId: String) } @@ -134,47 +128,47 @@ public interface CfnVpcConnectionProps { } /** - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets the value to be set. */ override fun clientSubnets(clientSubnets: List) { cdkBuilder.clientSubnets(clientSubnets) } /** - * @param clientSubnets The list of subnets in the client VPC to connect to. + * @param clientSubnets the value to be set. */ override fun clientSubnets(vararg clientSubnets: String): Unit = clientSubnets(clientSubnets.toList()) /** - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups the value to be set. */ override fun securityGroups(securityGroups: List) { cdkBuilder.securityGroups(securityGroups) } /** - * @param securityGroups The security groups to attach to the ENIs for the broker nodes. + * @param securityGroups the value to be set. */ override fun securityGroups(vararg securityGroups: String): Unit = securityGroups(securityGroups.toList()) /** - * @param tags Create tags when creating the VPC connection. + * @param tags A key-value pair to associate with a resource. */ override fun tags(tags: Map) { cdkBuilder.tags(tags) } /** - * @param targetClusterArn The Amazon Resource Name (ARN) of the cluster. + * @param targetClusterArn The Amazon Resource Name (ARN) of the target cluster. */ override fun targetClusterArn(targetClusterArn: String) { cdkBuilder.targetClusterArn(targetClusterArn) } /** - * @param vpcId The VPC id of the remote client. + * @param vpcId the value to be set. */ override fun vpcId(vpcId: String) { cdkBuilder.vpcId(vpcId) @@ -186,7 +180,8 @@ public interface CfnVpcConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.msk.CfnVpcConnectionProps, - ) : CdkObject(cdkObject), CfnVpcConnectionProps { + ) : CdkObject(cdkObject), + CfnVpcConnectionProps { /** * The type of private link authentication. * @@ -195,36 +190,30 @@ public interface CfnVpcConnectionProps { override fun authentication(): String = unwrap(this).getAuthentication() /** - * The list of subnets in the client VPC to connect to. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-clientsubnets) */ override fun clientSubnets(): List = unwrap(this).getClientSubnets() /** - * The security groups to attach to the ENIs for the broker nodes. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-securitygroups) */ override fun securityGroups(): List = unwrap(this).getSecurityGroups() /** - * Create tags when creating the VPC connection. + * A key-value pair to associate with a resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-tags) */ override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() /** - * The Amazon Resource Name (ARN) of the cluster. + * The Amazon Resource Name (ARN) of the target cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-targetclusterarn) */ override fun targetClusterArn(): String = unwrap(this).getTargetClusterArn() /** - * The VPC id of the remote client. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-vpcconnection.html#cfn-msk-vpcconnection-vpcid) */ override fun vpcId(): String = unwrap(this).getVpcId() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironment.kt index b497531c12..6d8bffac0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironment.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logLevel("logLevel") * .build()) * .build()) + * .maxWebservers(123) * .maxWorkers(123) + * .minWebservers(123) * .minWorkers(123) * .networkConfiguration(NetworkConfigurationProperty.builder() * .securityGroupIds(List.of("securityGroupIds")) @@ -94,7 +96,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.mwaa.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -302,6 +306,18 @@ public open class CfnEnvironment( public open fun loggingConfiguration(`value`: LoggingConfigurationProperty.Builder.() -> Unit): Unit = loggingConfiguration(LoggingConfigurationProperty(`value`)) + /** + * The maximum number of web servers that you want to run in your environment. + */ + public open fun maxWebservers(): Number? = unwrap(this).getMaxWebservers() + + /** + * The maximum number of web servers that you want to run in your environment. + */ + public open fun maxWebservers(`value`: Number) { + unwrap(this).setMaxWebservers(`value`) + } + /** * The maximum number of workers that you want to run in your environment. */ @@ -314,6 +330,18 @@ public open class CfnEnvironment( unwrap(this).setMaxWorkers(`value`) } + /** + * The minimum number of web servers that you want to run in your environment. + */ + public open fun minWebservers(): Number? = unwrap(this).getMinWebservers() + + /** + * The minimum number of web servers that you want to run in your environment. + */ + public open fun minWebservers(`value`: Number) { + unwrap(this).setMinWebservers(`value`) + } + /** * The minimum number of workers that you want to run in your environment. */ @@ -568,8 +596,8 @@ public open class CfnEnvironment( * If you specify a newer version number for an existing environment, the version update * requires some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-airflowversion) * @param airflowVersion The version of Apache Airflow to use for the environment. @@ -668,6 +696,25 @@ public open class CfnEnvironment( public fun loggingConfiguration(loggingConfiguration: LoggingConfigurationProperty.Builder.() -> Unit) + /** + * The maximum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-maxwebservers) + * @param maxWebservers The maximum number of web servers that you want to run in your + * environment. + */ + public fun maxWebservers(maxWebservers: Number) + /** * The maximum number of workers that you want to run in your environment. * @@ -681,6 +728,23 @@ public open class CfnEnvironment( */ public fun maxWorkers(maxWorkers: Number) + /** + * The minimum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-minwebservers) + * @param minWebservers The minimum number of web servers that you want to run in your + * environment. + */ + public fun minWebservers(minWebservers: Number) + /** * The minimum number of workers that you want to run in your environment. * @@ -934,8 +998,8 @@ public open class CfnEnvironment( * If you specify a newer version number for an existing environment, the version update * requires some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-airflowversion) * @param airflowVersion The version of Apache Airflow to use for the environment. @@ -1051,6 +1115,27 @@ public open class CfnEnvironment( fun loggingConfiguration(loggingConfiguration: LoggingConfigurationProperty.Builder.() -> Unit): Unit = loggingConfiguration(LoggingConfigurationProperty(loggingConfiguration)) + /** + * The maximum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-maxwebservers) + * @param maxWebservers The maximum number of web servers that you want to run in your + * environment. + */ + override fun maxWebservers(maxWebservers: Number) { + cdkBuilder.maxWebservers(maxWebservers) + } + /** * The maximum number of workers that you want to run in your environment. * @@ -1066,6 +1151,25 @@ public open class CfnEnvironment( cdkBuilder.maxWorkers(maxWorkers) } + /** + * The minimum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-minwebservers) + * @param minWebservers The minimum number of web servers that you want to run in your + * environment. + */ + override fun minWebservers(minWebservers: Number) { + cdkBuilder.minWebservers(minWebservers) + } + /** * The minimum number of workers that you want to run in your environment. * @@ -1668,7 +1772,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.mwaa.CfnEnvironment.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * Defines the processing logs sent to CloudWatch Logs and the logging level to send. * @@ -1864,7 +1969,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.mwaa.CfnEnvironment.ModuleLoggingConfigurationProperty, - ) : CdkObject(cdkObject), ModuleLoggingConfigurationProperty { + ) : CdkObject(cdkObject), + ModuleLoggingConfigurationProperty { /** * The ARN of the CloudWatch Logs log group for each type of Apache Airflow log type that you * have enabled. @@ -2054,7 +2160,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.mwaa.CfnEnvironment.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * A list of one or more security group IDs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironmentProps.kt index df8545a1f2..d1ceb21093 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/mwaa/CfnEnvironmentProps.kt @@ -60,7 +60,9 @@ import kotlin.jvm.JvmName * .logLevel("logLevel") * .build()) * .build()) + * .maxWebservers(123) * .maxWorkers(123) + * .minWebservers(123) * .minWorkers(123) * .networkConfiguration(NetworkConfigurationProperty.builder() * .securityGroupIds(List.of("securityGroupIds")) @@ -101,8 +103,8 @@ public interface CfnEnvironmentProps { * If you specify a newer version number for an existing environment, the version update requires * some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-airflowversion) */ @@ -167,6 +169,23 @@ public interface CfnEnvironmentProps { */ public fun loggingConfiguration(): Any? = unwrap(this).getLoggingConfiguration() + /** + * The maximum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set in + * `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-maxwebservers) + */ + public fun maxWebservers(): Number? = unwrap(this).getMaxWebservers() + /** * The maximum number of workers that you want to run in your environment. * @@ -179,6 +198,21 @@ public interface CfnEnvironmentProps { */ public fun maxWorkers(): Number? = unwrap(this).getMaxWorkers() + /** + * The minimum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set in + * `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-minwebservers) + */ + public fun minWebservers(): Number? = unwrap(this).getMinWebservers() + /** * The minimum number of workers that you want to run in your environment. * @@ -356,8 +390,8 @@ public interface CfnEnvironmentProps { * If you specify a newer version number for an existing environment, the version update * requires some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) */ public fun airflowVersion(airflowVersion: String) @@ -420,6 +454,21 @@ public interface CfnEnvironmentProps { public fun loggingConfiguration(loggingConfiguration: CfnEnvironment.LoggingConfigurationProperty.Builder.() -> Unit) + /** + * @param maxWebservers The maximum number of web servers that you want to run in your + * environment. + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + */ + public fun maxWebservers(maxWebservers: Number) + /** * @param maxWorkers The maximum number of workers that you want to run in your environment. * MWAA scales the number of Apache Airflow workers up to the number you specify in the @@ -429,6 +478,19 @@ public interface CfnEnvironmentProps { */ public fun maxWorkers(maxWorkers: Number) + /** + * @param minWebservers The minimum number of web servers that you want to run in your + * environment. + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + */ + public fun minWebservers(minWebservers: Number) + /** * @param minWorkers The minimum number of workers that you want to run in your environment. * MWAA scales the number of Apache Airflow workers up to the number you specify in the @@ -596,8 +658,8 @@ public interface CfnEnvironmentProps { * If you specify a newer version number for an existing environment, the version update * requires some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) */ override fun airflowVersion(airflowVersion: String) { cdkBuilder.airflowVersion(airflowVersion) @@ -678,6 +740,23 @@ public interface CfnEnvironmentProps { Unit = loggingConfiguration(CfnEnvironment.LoggingConfigurationProperty(loggingConfiguration)) + /** + * @param maxWebservers The maximum number of web servers that you want to run in your + * environment. + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + */ + override fun maxWebservers(maxWebservers: Number) { + cdkBuilder.maxWebservers(maxWebservers) + } + /** * @param maxWorkers The maximum number of workers that you want to run in your environment. * MWAA scales the number of Apache Airflow workers up to the number you specify in the @@ -689,6 +768,21 @@ public interface CfnEnvironmentProps { cdkBuilder.maxWorkers(maxWorkers) } + /** + * @param minWebservers The minimum number of web servers that you want to run in your + * environment. + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + */ + override fun minWebservers(minWebservers: Number) { + cdkBuilder.minWebservers(minWebservers) + } + /** * @param minWorkers The minimum number of workers that you want to run in your environment. * MWAA scales the number of Apache Airflow workers up to the number you specify in the @@ -872,7 +966,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.mwaa.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * A list of key-value pairs containing the Airflow configuration options for your environment. * @@ -891,8 +986,8 @@ public interface CfnEnvironmentProps { * If you specify a newer version number for an existing environment, the version update * requires some service interruption before taking effect. * - * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` - * (latest) + * *Allowed Values* : `1.10.12` | `2.0.2` | `2.2.2` | `2.4.3` | `2.5.1` | `2.6.3` | `2.7.2` | + * `2.8.1` | `2.9.2` (latest) * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-airflowversion) */ @@ -957,6 +1052,23 @@ public interface CfnEnvironmentProps { */ override fun loggingConfiguration(): Any? = unwrap(this).getLoggingConfiguration() + /** + * The maximum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. For example, in scenarios where your workload requires network + * calls to the Apache Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA + * will increase the number of web servers up to the number set in `MaxWebserers` . As TPS rates + * decrease Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-maxwebservers) + */ + override fun maxWebservers(): Number? = unwrap(this).getMaxWebservers() + /** * The maximum number of workers that you want to run in your environment. * @@ -969,6 +1081,21 @@ public interface CfnEnvironmentProps { */ override fun maxWorkers(): Number? = unwrap(this).getMaxWorkers() + /** + * The minimum number of web servers that you want to run in your environment. + * + * Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for + * `MaxWebservers` when you interact with your Apache Airflow environment using Apache Airflow REST + * API, or the Apache Airflow CLI. As the transaction-per-second rate, and the network load, + * decrease, Amazon MWAA disposes of the additional web servers, and scales down to the number set + * in `MinxWebserers` . + * + * Valid values: Accepts between `2` and `5` . Defaults to `2` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-minwebservers) + */ + override fun minWebservers(): Number? = unwrap(this).getMinWebservers() + /** * The minimum number of workers that you want to run in your environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBCluster.kt index 0b9eb3fff3..324af52467 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBCluster.kt @@ -89,7 +89,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBCluster( cdkObject: software.amazon.awscdk.services.neptune.CfnDBCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.neptune.CfnDBCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -362,12 +364,16 @@ public open class CfnDBCluster( } /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances in + * the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . */ public open fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances in + * the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . */ public open fun kmsKeyId(`value`: String) { unwrap(this).setKmsKeyId(`value`) @@ -797,11 +803,18 @@ public open class CfnDBCluster( public fun iamAuthEnabled(iamAuthEnabled: IResolvable) /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances + * in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * + * If you enable the `StorageEncrypted` property but don't specify this property, the default + * KMS key is used. If you specify this property, you must set the `StorageEncrypted` property to + * `true` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-kmskeyid) - * @param kmsKeyId If `StorageEncrypted` is true, the Amazon KMS key identifier for the - * encrypted DB cluster. + * @param kmsKeyId The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the + * database instances in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . */ public fun kmsKeyId(kmsKeyId: String) @@ -929,13 +942,20 @@ public open class CfnDBCluster( /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) * @param storageEncrypted Indicates whether the DB cluster is encrypted. @@ -945,13 +965,20 @@ public open class CfnDBCluster( /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) * @param storageEncrypted Indicates whether the DB cluster is encrypted. @@ -1298,11 +1325,18 @@ public open class CfnDBCluster( } /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances + * in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * + * If you enable the `StorageEncrypted` property but don't specify this property, the default + * KMS key is used. If you specify this property, you must set the `StorageEncrypted` property to + * `true` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-kmskeyid) - * @param kmsKeyId If `StorageEncrypted` is true, the Amazon KMS key identifier for the - * encrypted DB cluster. + * @param kmsKeyId The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the + * database instances in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . */ override fun kmsKeyId(kmsKeyId: String) { cdkBuilder.kmsKeyId(kmsKeyId) @@ -1450,13 +1484,20 @@ public open class CfnDBCluster( /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) * @param storageEncrypted Indicates whether the DB cluster is encrypted. @@ -1468,13 +1509,20 @@ public open class CfnDBCluster( /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) * @param storageEncrypted Indicates whether the DB cluster is encrypted. @@ -1670,7 +1718,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBCluster.DBClusterRoleProperty, - ) : CdkObject(cdkObject), DBClusterRoleProperty { + ) : CdkObject(cdkObject), + DBClusterRoleProperty { /** * The name of the feature associated with the Amazon Identity and Access Management (IAM) * role. @@ -1799,7 +1848,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBCluster.ServerlessScalingConfigurationProperty, - ) : CdkObject(cdkObject), ServerlessScalingConfigurationProperty { + ) : CdkObject(cdkObject), + ServerlessScalingConfigurationProperty { /** * The maximum number of Neptune capacity units (NCUs) for a DB instance in a Neptune * Serverless cluster. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroup.kt index 86b4025512..ae9949df68 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroup.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBClusterParameterGroup( cdkObject: software.amazon.awscdk.services.neptune.CfnDBClusterParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroupProps.kt index 5eae4b5d34..b2d9f305da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterParameterGroupProps.kt @@ -181,7 +181,8 @@ public interface CfnDBClusterParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBClusterParameterGroupProps, - ) : CdkObject(cdkObject), CfnDBClusterParameterGroupProps { + ) : CdkObject(cdkObject), + CfnDBClusterParameterGroupProps { /** * Provides the customer-specified description for this DB cluster parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterProps.kt index 018c705d4f..5ea4a5c180 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBClusterProps.kt @@ -197,7 +197,13 @@ public interface CfnDBClusterProps { public fun iamAuthEnabled(): Any? = unwrap(this).getIamAuthEnabled() /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances in + * the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * + * If you enable the `StorageEncrypted` property but don't specify this property, the default KMS + * key is used. If you specify this property, you must set the `StorageEncrypted` property to `true` + * . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-kmskeyid) */ @@ -294,13 +300,20 @@ public interface CfnDBClusterProps { /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used to + * encrypt the database instances in the DB cluster. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. + * + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) */ @@ -487,8 +500,12 @@ public interface CfnDBClusterProps { public fun iamAuthEnabled(iamAuthEnabled: IResolvable) /** - * @param kmsKeyId If `StorageEncrypted` is true, the Amazon KMS key identifier for the - * encrypted DB cluster. + * @param kmsKeyId The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the + * database instances in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * If you enable the `StorageEncrypted` property but don't specify this property, the default + * KMS key is used. If you specify this property, you must set the `StorageEncrypted` property to + * `true` . */ public fun kmsKeyId(kmsKeyId: String) @@ -578,25 +595,39 @@ public interface CfnDBClusterProps { /** * @param storageEncrypted Indicates whether the DB cluster is encrypted. - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. + * + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. */ public fun storageEncrypted(storageEncrypted: Boolean) /** * @param storageEncrypted Indicates whether the DB cluster is encrypted. - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. */ public fun storageEncrypted(storageEncrypted: IResolvable) @@ -835,8 +866,12 @@ public interface CfnDBClusterProps { } /** - * @param kmsKeyId If `StorageEncrypted` is true, the Amazon KMS key identifier for the - * encrypted DB cluster. + * @param kmsKeyId The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the + * database instances in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * If you enable the `StorageEncrypted` property but don't specify this property, the default + * KMS key is used. If you specify this property, you must set the `StorageEncrypted` property to + * `true` . */ override fun kmsKeyId(kmsKeyId: String) { cdkBuilder.kmsKeyId(kmsKeyId) @@ -946,13 +981,20 @@ public interface CfnDBClusterProps { /** * @param storageEncrypted Indicates whether the DB cluster is encrypted. - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. + * + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. */ override fun storageEncrypted(storageEncrypted: Boolean) { cdkBuilder.storageEncrypted(storageEncrypted) @@ -960,13 +1002,20 @@ public interface CfnDBClusterProps { /** * @param storageEncrypted Indicates whether the DB cluster is encrypted. - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. */ override fun storageEncrypted(storageEncrypted: IResolvable) { cdkBuilder.storageEncrypted(storageEncrypted.let(IResolvable.Companion::unwrap)) @@ -1033,7 +1082,8 @@ public interface CfnDBClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBClusterProps, - ) : CdkObject(cdkObject), CfnDBClusterProps { + ) : CdkObject(cdkObject), + CfnDBClusterProps { /** * Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated * with the DB cluster. @@ -1169,7 +1219,13 @@ public interface CfnDBClusterProps { override fun iamAuthEnabled(): Any? = unwrap(this).getIamAuthEnabled() /** - * If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster. + * The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances + * in the DB cluster, such as + * `arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef` . + * + * If you enable the `StorageEncrypted` property but don't specify this property, the default + * KMS key is used. If you specify this property, you must set the `StorageEncrypted` property to + * `true` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-kmskeyid) */ @@ -1267,13 +1323,20 @@ public interface CfnDBClusterProps { /** * Indicates whether the DB cluster is encrypted. * - * If you specify the `DBClusterIdentifier` , `DBSnapshotIdentifier` , or - * `SourceDBInstanceIdentifier` property, don't specify this property. The value is inherited from - * the cluster, snapshot, or source DB instance. If you specify the `KmsKeyId` property, you must - * enable encryption. + * If you specify the `KmsKeyId` property, then you must enable encryption and set this property + * to `true` . + * + * If you enable the `StorageEncrypted` property but don't specify the `KmsKeyId` property, then + * the default KMS key is used. If you specify the `KmsKeyId` property, then that KMS key is used + * to encrypt the database instances in the DB cluster. + * + * If you specify the `SourceDBClusterIdentifier` property, and don't specify this property or + * disable it, the value is inherited from the source DB cluster. If the source DB cluster is + * encrypted, the `KmsKeyId` property from the source cluster is used. * - * If you specify the `KmsKeyId` , you must enable encryption by setting `StorageEncrypted` to - * true. + * If you specify the `DBSnapshotIdentifier` and don't specify this property or disable it, the + * value is inherited from the snapshot and the specified `KmsKeyId` property from the snapshot is + * used. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-storageencrypted) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstance.kt index 90f4158c87..f3c9d77ad8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstance.kt @@ -88,7 +88,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBInstance( cdkObject: software.amazon.awscdk.services.neptune.CfnDBInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstanceProps.kt index 42617a79f0..11d73ee5c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBInstanceProps.kt @@ -396,7 +396,8 @@ public interface CfnDBInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBInstanceProps, - ) : CdkObject(cdkObject), CfnDBInstanceProps { + ) : CdkObject(cdkObject), + CfnDBInstanceProps { /** * Indicates that major version upgrades are allowed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroup.kt index 679ea71bc8..ebb38b179b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroup.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBParameterGroup( cdkObject: software.amazon.awscdk.services.neptune.CfnDBParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroupProps.kt index bfe3a5e127..8aafa1afc8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBParameterGroupProps.kt @@ -180,7 +180,8 @@ public interface CfnDBParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBParameterGroupProps, - ) : CdkObject(cdkObject), CfnDBParameterGroupProps { + ) : CdkObject(cdkObject), + CfnDBParameterGroupProps { /** * Provides the customer-specified description for this DB parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroup.kt index 67ea8981b0..9ab8015b24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroup.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBSubnetGroup( cdkObject: software.amazon.awscdk.services.neptune.CfnDBSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroupProps.kt index ce64b35e40..0d3ddf8eb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnDBSubnetGroupProps.kt @@ -146,7 +146,8 @@ public interface CfnDBSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptune.CfnDBSubnetGroupProps, - ) : CdkObject(cdkObject), CfnDBSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnDBSubnetGroupProps { /** * Provides the description of the DB subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscription.kt new file mode 100644 index 0000000000..519de63994 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscription.kt @@ -0,0 +1,341 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.neptune + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an event notification subscription. + * + * This action requires a topic ARN (Amazon Resource Name) created by either the Neptune console, + * the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS + * and subscribe to the topic. The ARN is displayed in the SNS console. + * + * You can specify the type of source (SourceType) you want to be notified of, provide a list of + * Neptune sources (SourceIds) that triggers the events, and provide a list of event categories + * (EventCategories) for events you want to be notified of. For example, you can specify SourceType = + * db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup. + * + * If you specify both the SourceType and SourceIds, such as SourceType = db-instance and + * SourceIdentifier = myDBInstance1, you are notified of all the db-instance events for the specified + * source. If you specify a SourceType but do not specify a SourceIdentifier, you receive notice of the + * events for that source type for all your Neptune sources. If you do not specify either the + * SourceType nor the SourceIdentifier, you are notified of events generated from all Neptune sources + * belonging to your customer account. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.neptune.*; + * CfnEventSubscription cfnEventSubscription = CfnEventSubscription.Builder.create(this, + * "MyCfnEventSubscription") + * .enabled(false) + * .eventCategories(List.of("eventCategories")) + * .snsTopicArn("snsTopicArn") + * .sourceIds(List.of("sourceIds")) + * .sourceType("sourceType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html) + */ +public open class CfnEventSubscription( + cdkObject: software.amazon.awscdk.services.neptune.CfnEventSubscription, +) : CfnResource(cdkObject), + IInspectable { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.neptune.CfnEventSubscription(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventSubscriptionProps, + ) : + this(software.amazon.awscdk.services.neptune.CfnEventSubscription(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnEventSubscriptionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnEventSubscriptionProps.Builder.() -> Unit, + ) : this(scope, id, CfnEventSubscriptionProps(props) + ) + + /** + * + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * A Boolean value indicating if the subscription is enabled. + */ + public open fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * A Boolean value indicating if the subscription is enabled. + */ + public open fun enabled(`value`: Boolean) { + unwrap(this).setEnabled(`value`) + } + + /** + * A Boolean value indicating if the subscription is enabled. + */ + public open fun enabled(`value`: IResolvable) { + unwrap(this).setEnabled(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * + */ + public open fun eventCategories(): List = unwrap(this).getEventCategories() ?: emptyList() + + /** + * + */ + public open fun eventCategories(`value`: List) { + unwrap(this).setEventCategories(`value`) + } + + /** + * + */ + public open fun eventCategories(vararg `value`: String): Unit = eventCategories(`value`.toList()) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The topic ARN of the event notification subscription. + */ + public open fun snsTopicArn(): String? = unwrap(this).getSnsTopicArn() + + /** + * The topic ARN of the event notification subscription. + */ + public open fun snsTopicArn(`value`: String) { + unwrap(this).setSnsTopicArn(`value`) + } + + /** + * + */ + public open fun sourceIds(): List = unwrap(this).getSourceIds() ?: emptyList() + + /** + * + */ + public open fun sourceIds(`value`: List) { + unwrap(this).setSourceIds(`value`) + } + + /** + * + */ + public open fun sourceIds(vararg `value`: String): Unit = sourceIds(`value`.toList()) + + /** + * The source type for the event notification subscription. + */ + public open fun sourceType(): String? = unwrap(this).getSourceType() + + /** + * The source type for the event notification subscription. + */ + public open fun sourceType(`value`: String) { + unwrap(this).setSourceType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.neptune.CfnEventSubscription]. + */ + @CdkDslMarker + public interface Builder { + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + * @param enabled A Boolean value indicating if the subscription is enabled. + */ + public fun enabled(enabled: Boolean) + + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + * @param enabled A Boolean value indicating if the subscription is enabled. + */ + public fun enabled(enabled: IResolvable) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + * @param eventCategories + */ + public fun eventCategories(eventCategories: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + * @param eventCategories + */ + public fun eventCategories(vararg eventCategories: String) + + /** + * The topic ARN of the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-snstopicarn) + * @param snsTopicArn The topic ARN of the event notification subscription. + */ + public fun snsTopicArn(snsTopicArn: String) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + * @param sourceIds + */ + public fun sourceIds(sourceIds: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + * @param sourceIds + */ + public fun sourceIds(vararg sourceIds: String) + + /** + * The source type for the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourcetype) + * @param sourceType The source type for the event notification subscription. + */ + public fun sourceType(sourceType: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.neptune.CfnEventSubscription.Builder = + software.amazon.awscdk.services.neptune.CfnEventSubscription.Builder.create(scope, id) + + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + * @param enabled A Boolean value indicating if the subscription is enabled. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + * @param enabled A Boolean value indicating if the subscription is enabled. + */ + override fun enabled(enabled: IResolvable) { + cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + * @param eventCategories + */ + override fun eventCategories(eventCategories: List) { + cdkBuilder.eventCategories(eventCategories) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + * @param eventCategories + */ + override fun eventCategories(vararg eventCategories: String): Unit = + eventCategories(eventCategories.toList()) + + /** + * The topic ARN of the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-snstopicarn) + * @param snsTopicArn The topic ARN of the event notification subscription. + */ + override fun snsTopicArn(snsTopicArn: String) { + cdkBuilder.snsTopicArn(snsTopicArn) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + * @param sourceIds + */ + override fun sourceIds(sourceIds: List) { + cdkBuilder.sourceIds(sourceIds) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + * @param sourceIds + */ + override fun sourceIds(vararg sourceIds: String): Unit = sourceIds(sourceIds.toList()) + + /** + * The source type for the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourcetype) + * @param sourceType The source type for the event notification subscription. + */ + override fun sourceType(sourceType: String) { + cdkBuilder.sourceType(sourceType) + } + + public fun build(): software.amazon.awscdk.services.neptune.CfnEventSubscription = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.neptune.CfnEventSubscription.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnEventSubscription { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnEventSubscription(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.neptune.CfnEventSubscription): + CfnEventSubscription = CfnEventSubscription(cdkObject) + + internal fun unwrap(wrapped: CfnEventSubscription): + software.amazon.awscdk.services.neptune.CfnEventSubscription = wrapped.cdkObject as + software.amazon.awscdk.services.neptune.CfnEventSubscription + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscriptionProps.kt new file mode 100644 index 0000000000..24375a40cc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptune/CfnEventSubscriptionProps.kt @@ -0,0 +1,233 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.neptune + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnEventSubscription`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.neptune.*; + * CfnEventSubscriptionProps cfnEventSubscriptionProps = CfnEventSubscriptionProps.builder() + * .enabled(false) + * .eventCategories(List.of("eventCategories")) + * .snsTopicArn("snsTopicArn") + * .sourceIds(List.of("sourceIds")) + * .sourceType("sourceType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html) + */ +public interface CfnEventSubscriptionProps { + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + */ + public fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + */ + public fun eventCategories(): List = unwrap(this).getEventCategories() ?: emptyList() + + /** + * The topic ARN of the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-snstopicarn) + */ + public fun snsTopicArn(): String? = unwrap(this).getSnsTopicArn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + */ + public fun sourceIds(): List = unwrap(this).getSourceIds() ?: emptyList() + + /** + * The source type for the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourcetype) + */ + public fun sourceType(): String? = unwrap(this).getSourceType() + + /** + * A builder for [CfnEventSubscriptionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabled A Boolean value indicating if the subscription is enabled. + * True indicates the subscription is enabled. + */ + public fun enabled(enabled: Boolean) + + /** + * @param enabled A Boolean value indicating if the subscription is enabled. + * True indicates the subscription is enabled. + */ + public fun enabled(enabled: IResolvable) + + /** + * @param eventCategories the value to be set. + */ + public fun eventCategories(eventCategories: List) + + /** + * @param eventCategories the value to be set. + */ + public fun eventCategories(vararg eventCategories: String) + + /** + * @param snsTopicArn The topic ARN of the event notification subscription. + */ + public fun snsTopicArn(snsTopicArn: String) + + /** + * @param sourceIds the value to be set. + */ + public fun sourceIds(sourceIds: List) + + /** + * @param sourceIds the value to be set. + */ + public fun sourceIds(vararg sourceIds: String) + + /** + * @param sourceType The source type for the event notification subscription. + */ + public fun sourceType(sourceType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps.Builder = + software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps.builder() + + /** + * @param enabled A Boolean value indicating if the subscription is enabled. + * True indicates the subscription is enabled. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param enabled A Boolean value indicating if the subscription is enabled. + * True indicates the subscription is enabled. + */ + override fun enabled(enabled: IResolvable) { + cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) + } + + /** + * @param eventCategories the value to be set. + */ + override fun eventCategories(eventCategories: List) { + cdkBuilder.eventCategories(eventCategories) + } + + /** + * @param eventCategories the value to be set. + */ + override fun eventCategories(vararg eventCategories: String): Unit = + eventCategories(eventCategories.toList()) + + /** + * @param snsTopicArn The topic ARN of the event notification subscription. + */ + override fun snsTopicArn(snsTopicArn: String) { + cdkBuilder.snsTopicArn(snsTopicArn) + } + + /** + * @param sourceIds the value to be set. + */ + override fun sourceIds(sourceIds: List) { + cdkBuilder.sourceIds(sourceIds) + } + + /** + * @param sourceIds the value to be set. + */ + override fun sourceIds(vararg sourceIds: String): Unit = sourceIds(sourceIds.toList()) + + /** + * @param sourceType The source type for the event notification subscription. + */ + override fun sourceType(sourceType: String) { + cdkBuilder.sourceType(sourceType) + } + + public fun build(): software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps, + ) : CdkObject(cdkObject), + CfnEventSubscriptionProps { + /** + * A Boolean value indicating if the subscription is enabled. + * + * True indicates the subscription is enabled. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-enabled) + */ + override fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-eventcategories) + */ + override fun eventCategories(): List = unwrap(this).getEventCategories() ?: emptyList() + + /** + * The topic ARN of the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-snstopicarn) + */ + override fun snsTopicArn(): String? = unwrap(this).getSnsTopicArn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourceids) + */ + override fun sourceIds(): List = unwrap(this).getSourceIds() ?: emptyList() + + /** + * The source type for the event notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-eventsubscription.html#cfn-neptune-eventsubscription-sourcetype) + */ + override fun sourceType(): String? = unwrap(this).getSourceType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnEventSubscriptionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps): + CfnEventSubscriptionProps = CdkObjectWrappers.wrap(cdkObject) as? CfnEventSubscriptionProps + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnEventSubscriptionProps): + software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraph.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraph.kt index 36df304e36..5528145e1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraph.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraph.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGraph( cdkObject: software.amazon.awscdk.services.neptunegraph.CfnGraph, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -675,7 +677,8 @@ public open class CfnGraph( private class Wrapper( cdkObject: software.amazon.awscdk.services.neptunegraph.CfnGraph.VectorSearchConfigurationProperty, - ) : CdkObject(cdkObject), VectorSearchConfigurationProperty { + ) : CdkObject(cdkObject), + VectorSearchConfigurationProperty { /** * The number of dimensions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraphProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraphProps.kt index 6427388e16..2b3c8bf028 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraphProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnGraphProps.kt @@ -376,7 +376,8 @@ public interface CfnGraphProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptunegraph.CfnGraphProps, - ) : CdkObject(cdkObject), CfnGraphProps { + ) : CdkObject(cdkObject), + CfnGraphProps { /** * A value that indicates whether the graph has deletion protection enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpoint.kt index 8b2896d47f..318c57feea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpoint.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrivateGraphEndpoint( cdkObject: software.amazon.awscdk.services.neptunegraph.CfnPrivateGraphEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpointProps.kt index 40a1b3bdaf..2fc5e5ab5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/neptunegraph/CfnPrivateGraphEndpointProps.kt @@ -145,7 +145,8 @@ public interface CfnPrivateGraphEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.neptunegraph.CfnPrivateGraphEndpointProps, - ) : CdkObject(cdkObject), CfnPrivateGraphEndpointProps { + ) : CdkObject(cdkObject), + CfnPrivateGraphEndpointProps { /** * The unique identifier of the Neptune Analytics graph. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewall.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewall.kt index a1e5b0d3af..9dab23784d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewall.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewall.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFirewall( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewall, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -754,7 +756,8 @@ public open class CfnFirewall( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewall.SubnetMappingProperty, - ) : CdkObject(cdkObject), SubnetMappingProperty { + ) : CdkObject(cdkObject), + SubnetMappingProperty { /** * The subnet's IP address type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicy.kt index c9c07f0c33..38fe1d988f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicy.kt @@ -88,7 +88,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFirewallPolicy( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -538,7 +540,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.ActionDefinitionProperty, - ) : CdkObject(cdkObject), ActionDefinitionProperty { + ) : CdkObject(cdkObject), + ActionDefinitionProperty { /** * Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for * the matching packet. @@ -701,7 +704,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.CustomActionProperty, - ) : CdkObject(cdkObject), CustomActionProperty { + ) : CdkObject(cdkObject), + CustomActionProperty { /** * The custom action associated with the action name. * @@ -803,7 +807,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.DimensionProperty, - ) : CdkObject(cdkObject), DimensionProperty { + ) : CdkObject(cdkObject), + DimensionProperty { /** * The value to use in the custom metric dimension. * @@ -1491,7 +1496,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.FirewallPolicyProperty, - ) : CdkObject(cdkObject), FirewallPolicyProperty { + ) : CdkObject(cdkObject), + FirewallPolicyProperty { /** * Contains variables that you can use to override default Suricata settings in your firewall * policy. @@ -1695,7 +1701,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.IPSetProperty, - ) : CdkObject(cdkObject), IPSetProperty { + ) : CdkObject(cdkObject), + IPSetProperty { /** * The list of IP addresses and address ranges, in CIDR notation. * @@ -1811,7 +1818,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.PolicyVariablesProperty, - ) : CdkObject(cdkObject), PolicyVariablesProperty { + ) : CdkObject(cdkObject), + PolicyVariablesProperty { /** * The IPv4 or IPv6 addresses in CIDR notation to use for the Suricata `HOME_NET` variable. * @@ -1922,7 +1930,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.PublishMetricActionProperty, - ) : CdkObject(cdkObject), PublishMetricActionProperty { + ) : CdkObject(cdkObject), + PublishMetricActionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-publishmetricaction.html#cfn-networkfirewall-firewallpolicy-publishmetricaction-dimensions) */ @@ -2092,7 +2101,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.StatefulEngineOptionsProperty, - ) : CdkObject(cdkObject), StatefulEngineOptionsProperty { + ) : CdkObject(cdkObject), + StatefulEngineOptionsProperty { /** * Indicates how to manage the order of stateful rule evaluation for the policy. * @@ -2211,7 +2221,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.StatefulRuleGroupOverrideProperty, - ) : CdkObject(cdkObject), StatefulRuleGroupOverrideProperty { + ) : CdkObject(cdkObject), + StatefulRuleGroupOverrideProperty { /** * The action that changes the rule group from `DROP` to `ALERT` . * @@ -2409,7 +2420,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.StatefulRuleGroupReferenceProperty, - ) : CdkObject(cdkObject), StatefulRuleGroupReferenceProperty { + ) : CdkObject(cdkObject), + StatefulRuleGroupReferenceProperty { /** * The action that allows the policy owner to override the behavior of the rule group within a * policy. @@ -2554,7 +2566,8 @@ public open class CfnFirewallPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy.StatelessRuleGroupReferenceProperty, - ) : CdkObject(cdkObject), StatelessRuleGroupReferenceProperty { + ) : CdkObject(cdkObject), + StatelessRuleGroupReferenceProperty { /** * An integer setting that indicates the order in which to run the stateless rule groups in a * single `FirewallPolicy` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicyProps.kt index 8c13f23a9a..6fe03b5b10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallPolicyProps.kt @@ -233,7 +233,8 @@ public interface CfnFirewallPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicyProps, - ) : CdkObject(cdkObject), CfnFirewallPolicyProps { + ) : CdkObject(cdkObject), + CfnFirewallPolicyProps { /** * A description of the firewall policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallProps.kt index c40c774d15..729b4444ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnFirewallProps.kt @@ -395,7 +395,8 @@ public interface CfnFirewallProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnFirewallProps, - ) : CdkObject(cdkObject), CfnFirewallProps { + ) : CdkObject(cdkObject), + CfnFirewallProps { /** * A flag indicating whether it is possible to delete the firewall. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfiguration.kt index dbb183633e..bbbfd26369 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfiguration.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoggingConfiguration( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnLoggingConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -332,8 +333,10 @@ public open class CfnLoggingConfiguration( * chosen destination type. * * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the prefix + * `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -363,10 +366,20 @@ public open class CfnLoggingConfiguration( public fun logDestinationType(): String /** - * The type of log to send. + * The type of log to record. + * + * You can record the following types of logs from your Network Firewall stateful engine. * - * Alert logs report traffic that matches a stateful rule with an action setting that sends an - * alert log message. Flow logs are standard network traffic flow logs. + * * `ALERT` - Logs for traffic that matches your stateful rules and that have an action that + * sends an alert. A stateful rule sends alerts for the rule actions DROP, ALERT, and REJECT. For + * more information, see the `StatefulRule` property. + * * `FLOW` - Standard network traffic flow logs. The stateful rules engine records flow logs + * for all network traffic that it receives. Each flow log record captures the network flow for a + * specific standard stateless rule group. + * * `TLS` - Logs for events that are related to TLS inspection. For more information, see + * [Inspecting SSL/TLS traffic with TLS inspection + * configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-configurations.html) + * in the *Network Firewall Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html#cfn-networkfirewall-loggingconfiguration-logdestinationconfig-logtype) */ @@ -381,8 +394,10 @@ public open class CfnLoggingConfiguration( * @param logDestination The named location for the logs, provided in a key:value mapping that * is specific to the chosen destination type. * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the + * prefix `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -403,8 +418,10 @@ public open class CfnLoggingConfiguration( * @param logDestination The named location for the logs, provided in a key:value mapping that * is specific to the chosen destination type. * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the + * prefix `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -429,9 +446,19 @@ public open class CfnLoggingConfiguration( public fun logDestinationType(logDestinationType: String) /** - * @param logType The type of log to send. - * Alert logs report traffic that matches a stateful rule with an action setting that sends an - * alert log message. Flow logs are standard network traffic flow logs. + * @param logType The type of log to record. + * You can record the following types of logs from your Network Firewall stateful engine. + * + * * `ALERT` - Logs for traffic that matches your stateful rules and that have an action that + * sends an alert. A stateful rule sends alerts for the rule actions DROP, ALERT, and REJECT. For + * more information, see the `StatefulRule` property. + * * `FLOW` - Standard network traffic flow logs. The stateful rules engine records flow logs + * for all network traffic that it receives. Each flow log record captures the network flow for a + * specific standard stateless rule group. + * * `TLS` - Logs for events that are related to TLS inspection. For more information, see + * [Inspecting SSL/TLS traffic with TLS inspection + * configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-configurations.html) + * in the *Network Firewall Developer Guide* . */ public fun logType(logType: String) } @@ -446,8 +473,10 @@ public open class CfnLoggingConfiguration( * @param logDestination The named location for the logs, provided in a key:value mapping that * is specific to the chosen destination type. * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the + * prefix `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -470,8 +499,10 @@ public open class CfnLoggingConfiguration( * @param logDestination The named location for the logs, provided in a key:value mapping that * is specific to the chosen destination type. * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the + * prefix `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -500,9 +531,19 @@ public open class CfnLoggingConfiguration( } /** - * @param logType The type of log to send. - * Alert logs report traffic that matches a stateful rule with an action setting that sends an - * alert log message. Flow logs are standard network traffic flow logs. + * @param logType The type of log to record. + * You can record the following types of logs from your Network Firewall stateful engine. + * + * * `ALERT` - Logs for traffic that matches your stateful rules and that have an action that + * sends an alert. A stateful rule sends alerts for the rule actions DROP, ALERT, and REJECT. For + * more information, see the `StatefulRule` property. + * * `FLOW` - Standard network traffic flow logs. The stateful rules engine records flow logs + * for all network traffic that it receives. Each flow log record captures the network flow for a + * specific standard stateless rule group. + * * `TLS` - Logs for events that are related to TLS inspection. For more information, see + * [Inspecting SSL/TLS traffic with TLS inspection + * configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-configurations.html) + * in the *Network Firewall Developer Guide* . */ override fun logType(logType: String) { cdkBuilder.logType(logType) @@ -515,14 +556,17 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnLoggingConfiguration.LogDestinationConfigProperty, - ) : CdkObject(cdkObject), LogDestinationConfigProperty { + ) : CdkObject(cdkObject), + LogDestinationConfigProperty { /** * The named location for the logs, provided in a key:value mapping that is specific to the * chosen destination type. * * * For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and - * optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 - * bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` : + * optionally provide a prefix, with key `prefix` . + * + * The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the + * prefix `alerts` : * * `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }` * @@ -552,10 +596,20 @@ public open class CfnLoggingConfiguration( override fun logDestinationType(): String = unwrap(this).getLogDestinationType() /** - * The type of log to send. + * The type of log to record. + * + * You can record the following types of logs from your Network Firewall stateful engine. * - * Alert logs report traffic that matches a stateful rule with an action setting that sends an - * alert log message. Flow logs are standard network traffic flow logs. + * * `ALERT` - Logs for traffic that matches your stateful rules and that have an action that + * sends an alert. A stateful rule sends alerts for the rule actions DROP, ALERT, and REJECT. For + * more information, see the `StatefulRule` property. + * * `FLOW` - Standard network traffic flow logs. The stateful rules engine records flow logs + * for all network traffic that it receives. Each flow log record captures the network flow for a + * specific standard stateless rule group. + * * `TLS` - Logs for events that are related to TLS inspection. For more information, see + * [Inspecting SSL/TLS traffic with TLS inspection + * configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-configurations.html) + * in the *Network Firewall Developer Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html#cfn-networkfirewall-loggingconfiguration-logdestinationconfig-logtype) */ @@ -672,7 +726,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnLoggingConfiguration.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * Defines the logging destinations for the logs for a firewall. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfigurationProps.kt index 284c5d8a95..c9f97ed7d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnLoggingConfigurationProps.kt @@ -164,7 +164,8 @@ public interface CfnLoggingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnLoggingConfigurationProps, - ) : CdkObject(cdkObject), CfnLoggingConfigurationProps { + ) : CdkObject(cdkObject), + CfnLoggingConfigurationProps { /** * The Amazon Resource Name (ARN) of the `Firewall` that the logging configuration is associated * with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroup.kt index e366a10b07..df848b2eb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroup.kt @@ -136,7 +136,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRuleGroup( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -643,7 +645,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.ActionDefinitionProperty, - ) : CdkObject(cdkObject), ActionDefinitionProperty { + ) : CdkObject(cdkObject), + ActionDefinitionProperty { /** * Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for * the matching packet. @@ -791,7 +794,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.AddressProperty, - ) : CdkObject(cdkObject), AddressProperty { + ) : CdkObject(cdkObject), + AddressProperty { /** * Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) * notation. @@ -966,7 +970,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.CustomActionProperty, - ) : CdkObject(cdkObject), CustomActionProperty { + ) : CdkObject(cdkObject), + CustomActionProperty { /** * The custom action associated with the action name. * @@ -1067,7 +1072,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.DimensionProperty, - ) : CdkObject(cdkObject), DimensionProperty { + ) : CdkObject(cdkObject), + DimensionProperty { /** * The value to use in the custom metric dimension. * @@ -1407,7 +1413,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.HeaderProperty, - ) : CdkObject(cdkObject), HeaderProperty { + ) : CdkObject(cdkObject), + HeaderProperty { /** * The destination IP address or address range to inspect for, in CIDR notation. * @@ -1589,7 +1596,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.IPSetProperty, - ) : CdkObject(cdkObject), IPSetProperty { + ) : CdkObject(cdkObject), + IPSetProperty { /** * The list of IP addresses and address ranges, in CIDR notation. * @@ -1680,7 +1688,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.IPSetReferenceProperty, - ) : CdkObject(cdkObject), IPSetReferenceProperty { + ) : CdkObject(cdkObject), + IPSetReferenceProperty { /** * The Amazon Resource Name (ARN) of the resource to include in the `RuleGroup.IPSetReference` * . @@ -2139,7 +2148,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.MatchAttributesProperty, - ) : CdkObject(cdkObject), MatchAttributesProperty { + ) : CdkObject(cdkObject), + MatchAttributesProperty { /** * The destination ports to inspect for. * @@ -2308,7 +2318,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.PortRangeProperty, - ) : CdkObject(cdkObject), PortRangeProperty { + ) : CdkObject(cdkObject), + PortRangeProperty { /** * The lower limit of the port range. * @@ -2410,7 +2421,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.PortSetProperty, - ) : CdkObject(cdkObject), PortSetProperty { + ) : CdkObject(cdkObject), + PortSetProperty { /** * The set of port ranges. * @@ -2517,7 +2529,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.PublishMetricActionProperty, - ) : CdkObject(cdkObject), PublishMetricActionProperty { + ) : CdkObject(cdkObject), + PublishMetricActionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-publishmetricaction.html#cfn-networkfirewall-rulegroup-publishmetricaction-dimensions) */ @@ -2615,7 +2628,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.ReferenceSetsProperty, - ) : CdkObject(cdkObject), ReferenceSetsProperty { + ) : CdkObject(cdkObject), + ReferenceSetsProperty { /** * The IP set references to use in the stateful rule group. * @@ -2931,7 +2945,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleDefinitionProperty, - ) : CdkObject(cdkObject), RuleDefinitionProperty { + ) : CdkObject(cdkObject), + RuleDefinitionProperty { /** * The actions to take on a packet that matches one of the stateless rule definition's match * attributes. @@ -3357,7 +3372,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleGroupProperty, - ) : CdkObject(cdkObject), RuleGroupProperty { + ) : CdkObject(cdkObject), + RuleGroupProperty { /** * The reference sets for the stateful rule group. * @@ -3540,7 +3556,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleOptionProperty, - ) : CdkObject(cdkObject), RuleOptionProperty { + ) : CdkObject(cdkObject), + RuleOptionProperty { /** * The Suricata rule option keywords. * @@ -3690,7 +3707,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RuleVariablesProperty, - ) : CdkObject(cdkObject), RuleVariablesProperty { + ) : CdkObject(cdkObject), + RuleVariablesProperty { /** * A list of IP addresses and address ranges, in CIDR notation. * @@ -3888,7 +3906,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RulesSourceListProperty, - ) : CdkObject(cdkObject), RulesSourceListProperty { + ) : CdkObject(cdkObject), + RulesSourceListProperty { /** * Whether you want to allow or deny access to the domains in your target list. * @@ -4275,7 +4294,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RulesSourceProperty, - ) : CdkObject(cdkObject), RulesSourceProperty { + ) : CdkObject(cdkObject), + RulesSourceProperty { /** * Stateful inspection criteria for a domain list rule group. * @@ -4417,7 +4437,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatefulRuleOptionsProperty, - ) : CdkObject(cdkObject), StatefulRuleOptionsProperty { + ) : CdkObject(cdkObject), + StatefulRuleOptionsProperty { /** * Indicates how to manage the order of the rule evaluation for the rule group. * @@ -4698,7 +4719,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatefulRuleProperty, - ) : CdkObject(cdkObject), StatefulRuleProperty { + ) : CdkObject(cdkObject), + StatefulRuleProperty { /** * Defines what Network Firewall should do with the packets in a traffic flow when the flow * matches the stateful rule criteria. @@ -4937,7 +4959,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatelessRuleProperty, - ) : CdkObject(cdkObject), StatelessRuleProperty { + ) : CdkObject(cdkObject), + StatelessRuleProperty { /** * Indicates the order in which to run this rule relative to all of the rules that are defined * for a stateless rule group. @@ -5180,7 +5203,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.StatelessRulesAndCustomActionsProperty, - ) : CdkObject(cdkObject), StatelessRulesAndCustomActionsProperty { + ) : CdkObject(cdkObject), + StatelessRulesAndCustomActionsProperty { /** * Defines an array of individual custom action definitions that are available for use by the * stateless rules in this `StatelessRulesAndCustomActions` specification. @@ -5367,7 +5391,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.TCPFlagFieldProperty, - ) : CdkObject(cdkObject), TCPFlagFieldProperty { + ) : CdkObject(cdkObject), + TCPFlagFieldProperty { /** * Used in conjunction with the `Masks` setting to define the flags that must be set and flags * that must not be set in order for the packet to match. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroupProps.kt index 7df39c4587..984c294ab6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnRuleGroupProps.kt @@ -329,7 +329,8 @@ public interface CfnRuleGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnRuleGroupProps, - ) : CdkObject(cdkObject), CfnRuleGroupProps { + ) : CdkObject(cdkObject), + CfnRuleGroupProps { /** * The maximum operating resources that this rule group can use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfiguration.kt index 0f644a384c..21a7472003 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfiguration.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTLSInspectionConfiguration( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -574,7 +576,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.AddressProperty, - ) : CdkObject(cdkObject), AddressProperty { + ) : CdkObject(cdkObject), + AddressProperty { /** * Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) * notation. @@ -762,7 +765,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.CheckCertificateRevocationStatusProperty, - ) : CdkObject(cdkObject), CheckCertificateRevocationStatusProperty { + ) : CdkObject(cdkObject), + CheckCertificateRevocationStatusProperty { /** * Configures how Network Firewall processes traffic when it determines that the certificate * presented by the server in the SSL/TLS connection has a revoked status. @@ -904,7 +908,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.PortRangeProperty, - ) : CdkObject(cdkObject), PortRangeProperty { + ) : CdkObject(cdkObject), + PortRangeProperty { /** * The lower limit of the port range. * @@ -1267,7 +1272,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateConfigurationProperty, - ) : CdkObject(cdkObject), ServerCertificateConfigurationProperty { + ) : CdkObject(cdkObject), + ServerCertificateConfigurationProperty { /** * The Amazon Resource Name (ARN) of the imported certificate authority (CA) certificate * within AWS Certificate Manager (ACM) to use for outbound SSL/TLS inspection. @@ -1410,7 +1416,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateProperty, - ) : CdkObject(cdkObject), ServerCertificateProperty { + ) : CdkObject(cdkObject), + ServerCertificateProperty { /** * The Amazon Resource Name (ARN) of the AWS Certificate Manager SSL/TLS server certificate * that's used for inbound SSL/TLS inspection. @@ -1825,7 +1832,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.ServerCertificateScopeProperty, - ) : CdkObject(cdkObject), ServerCertificateScopeProperty { + ) : CdkObject(cdkObject), + ServerCertificateScopeProperty { /** * The destination ports to decrypt for inspection, in Transmission Control Protocol (TCP) * format. @@ -2026,7 +2034,8 @@ public open class CfnTLSInspectionConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfiguration.TLSInspectionConfigurationProperty, - ) : CdkObject(cdkObject), TLSInspectionConfigurationProperty { + ) : CdkObject(cdkObject), + TLSInspectionConfigurationProperty { /** * Lists the server certificate configurations that are associated with the TLS configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfigurationProps.kt index 876d3bdbb4..9417074139 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkfirewall/CfnTLSInspectionConfigurationProps.kt @@ -285,7 +285,8 @@ public interface CfnTLSInspectionConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkfirewall.CfnTLSInspectionConfigurationProps, - ) : CdkObject(cdkObject), CfnTLSInspectionConfigurationProps { + ) : CdkObject(cdkObject), + CfnTLSInspectionConfigurationProps { /** * A description of the TLS inspection configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachment.kt index 120c3afdd7..59f014f34f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachment.kt @@ -43,6 +43,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .transportAttachmentId("transportAttachmentId") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -62,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectAttachment( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -168,6 +179,18 @@ public open class CfnConnectAttachment( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(`value`: String) { + unwrap(this).setNetworkFunctionGroupName(`value`) + } + /** * Options for connecting an attachment. */ @@ -195,6 +218,36 @@ public open class CfnConnectAttachment( public open fun options(`value`: ConnectAttachmentOptionsProperty.Builder.() -> Unit): Unit = options(ConnectAttachmentOptionsProperty(`value`)) + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(`value`: IResolvable) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4785fc14b6a8fef011a7b18a827d680d8141bb9d33f99dcda249de5e936a5a84") + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(`value`)) + /** * Describes a proposed segment change. */ @@ -228,20 +281,20 @@ public open class CfnConnectAttachment( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * Tags for the attachment. + * The tags associated with the Connect attachment. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * Tags for the attachment. + * The tags associated with the Connect attachment. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * Tags for the attachment. + * The tags associated with the Connect attachment. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -278,6 +331,14 @@ public open class CfnConnectAttachment( */ public fun edgeLocation(edgeLocation: String) + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + /** * Options for connecting an attachment. * @@ -304,6 +365,37 @@ public open class CfnConnectAttachment( @JvmName("0ae73d13e23396694990778766a78b86e25f25965f3d2c60218a10f771363aed") public fun options(options: ConnectAttachmentOptionsProperty.Builder.() -> Unit) + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f91b78f557095012d26f2ae0be6d251eaaab96fd89dff53f293d8d2ffd3a8b75") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * Describes a proposed segment change. * @@ -338,18 +430,18 @@ public open class CfnConnectAttachment( fun proposedSegmentChange(proposedSegmentChange: ProposedSegmentChangeProperty.Builder.() -> Unit) /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ public fun tags(tags: List) /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ public fun tags(vararg tags: CfnTag) @@ -391,6 +483,16 @@ public open class CfnConnectAttachment( cdkBuilder.edgeLocation(edgeLocation) } + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + /** * Options for connecting an attachment. * @@ -422,6 +524,44 @@ public open class CfnConnectAttachment( override fun options(options: ConnectAttachmentOptionsProperty.Builder.() -> Unit): Unit = options(ConnectAttachmentOptionsProperty(options)) + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f91b78f557095012d26f2ae0be6d251eaaab96fd89dff53f293d8d2ffd3a8b75") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * Describes a proposed segment change. * @@ -461,20 +601,20 @@ public open class CfnConnectAttachment( Unit = proposedSegmentChange(ProposedSegmentChangeProperty(proposedSegmentChange)) /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -570,7 +710,8 @@ public open class CfnConnectAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ConnectAttachmentOptionsProperty, - ) : CdkObject(cdkObject), ConnectAttachmentOptionsProperty { + ) : CdkObject(cdkObject), + ConnectAttachmentOptionsProperty { /** * The protocol used for the attachment connection. * @@ -597,6 +738,169 @@ public open class CfnConnectAttachment( } } + /** + * Describes proposed changes to a network function group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * ProposedNetworkFunctionGroupChangeProperty proposedNetworkFunctionGroupChangeProperty = + * ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html) + */ + public interface ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + public fun attachmentPolicyRuleNumber(): Number? = unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [ProposedNetworkFunctionGroupChangeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + public fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(tags: List) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder + = + software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty.builder() + + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + override fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) { + cdkBuilder.attachmentPolicyRuleNumber(attachmentPolicyRuleNumber) + } + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty, + ) : CdkObject(cdkObject), + ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + override fun attachmentPolicyRuleNumber(): Number? = + unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ProposedNetworkFunctionGroupChangeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty): + ProposedNetworkFunctionGroupChangeProperty = CdkObjectWrappers.wrap(cdkObject) as? + ProposedNetworkFunctionGroupChangeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ProposedNetworkFunctionGroupChangeProperty): + software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty + } + } + /** * Describes a proposed segment change. * @@ -710,7 +1014,8 @@ public open class CfnConnectAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachment.ProposedSegmentChangeProperty, - ) : CdkObject(cdkObject), ProposedSegmentChangeProperty { + ) : CdkObject(cdkObject), + ProposedSegmentChangeProperty { /** * The rule number in the policy document that applies to this change. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachmentProps.kt index a89a8d7b03..007f7343c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectAttachmentProps.kt @@ -30,6 +30,15 @@ import kotlin.jvm.JvmName * .build()) * .transportAttachmentId("transportAttachmentId") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -62,6 +71,13 @@ public interface CfnConnectAttachmentProps { */ public fun edgeLocation(): String + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + /** * Options for connecting an attachment. * @@ -69,6 +85,14 @@ public interface CfnConnectAttachmentProps { */ public fun options(): Any + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + */ + public fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * @@ -79,7 +103,7 @@ public interface CfnConnectAttachmentProps { public fun proposedSegmentChange(): Any? = unwrap(this).getProposedSegmentChange() /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) */ @@ -107,6 +131,11 @@ public interface CfnConnectAttachmentProps { */ public fun edgeLocation(edgeLocation: String) + /** + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + /** * @param options Options for connecting an attachment. */ @@ -125,6 +154,28 @@ public interface CfnConnectAttachmentProps { public fun options(options: CfnConnectAttachment.ConnectAttachmentOptionsProperty.Builder.() -> Unit) + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d13ec306597e76467d44b35f856c04acf0631000e29f0be89500a95155cd0373") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -148,12 +199,12 @@ public interface CfnConnectAttachmentProps { fun proposedSegmentChange(proposedSegmentChange: CfnConnectAttachment.ProposedSegmentChangeProperty.Builder.() -> Unit) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ public fun tags(tags: List) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ public fun tags(vararg tags: CfnTag) @@ -182,6 +233,13 @@ public interface CfnConnectAttachmentProps { cdkBuilder.edgeLocation(edgeLocation) } + /** + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + /** * @param options Options for connecting an attachment. */ @@ -205,6 +263,35 @@ public interface CfnConnectAttachmentProps { fun options(options: CfnConnectAttachment.ConnectAttachmentOptionsProperty.Builder.() -> Unit): Unit = options(CfnConnectAttachment.ConnectAttachmentOptionsProperty(options)) + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d13ec306597e76467d44b35f856c04acf0631000e29f0be89500a95155cd0373") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -234,14 +321,14 @@ public interface CfnConnectAttachmentProps { proposedSegmentChange(CfnConnectAttachment.ProposedSegmentChangeProperty(proposedSegmentChange)) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Connect attachment. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -258,7 +345,8 @@ public interface CfnConnectAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectAttachmentProps, - ) : CdkObject(cdkObject), CfnConnectAttachmentProps { + ) : CdkObject(cdkObject), + CfnConnectAttachmentProps { /** * The ID of the core network where the Connect attachment is located. * @@ -273,6 +361,13 @@ public interface CfnConnectAttachmentProps { */ override fun edgeLocation(): String = unwrap(this).getEdgeLocation() + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + /** * Options for connecting an attachment. * @@ -280,6 +375,14 @@ public interface CfnConnectAttachmentProps { */ override fun options(): Any = unwrap(this).getOptions() + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange) + */ + override fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * @@ -290,7 +393,7 @@ public interface CfnConnectAttachmentProps { override fun proposedSegmentChange(): Any? = unwrap(this).getProposedSegmentChange() /** - * Tags for the attachment. + * The tags associated with the Connect attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectattachment.html#cfn-networkmanager-connectattachment-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeer.kt index 22b06fea72..fea03ed2fd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeer.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectPeer( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectPeer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -550,7 +552,8 @@ public open class CfnConnectPeer( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectPeer.BgpOptionsProperty, - ) : CdkObject(cdkObject), BgpOptionsProperty { + ) : CdkObject(cdkObject), + BgpOptionsProperty { /** * The Peer ASN of the BGP. * @@ -693,7 +696,8 @@ public open class CfnConnectPeer( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectPeer.ConnectPeerBgpConfigurationProperty, - ) : CdkObject(cdkObject), ConnectPeerBgpConfigurationProperty { + ) : CdkObject(cdkObject), + ConnectPeerBgpConfigurationProperty { /** * The address of a core network. * @@ -917,7 +921,8 @@ public open class CfnConnectPeer( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectPeer.ConnectPeerConfigurationProperty, - ) : CdkObject(cdkObject), ConnectPeerConfigurationProperty { + ) : CdkObject(cdkObject), + ConnectPeerConfigurationProperty { /** * The Connect peer BGP configurations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeerProps.kt index 9de071b07d..9fc7ed27af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnConnectPeerProps.kt @@ -240,7 +240,8 @@ public interface CfnConnectPeerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnConnectPeerProps, - ) : CdkObject(cdkObject), CfnConnectPeerProps { + ) : CdkObject(cdkObject), + CfnConnectPeerProps { /** * Describes the BGP options. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetwork.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetwork.kt index 7edc1a4cfb..c5e9d2113d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetwork.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetwork.kt @@ -17,6 +17,7 @@ import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -46,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCoreNetwork( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -84,7 +87,13 @@ public open class CfnCoreNetwork( public open fun attrEdges(): IResolvable = unwrap(this).getAttrEdges().let(IResolvable::wrap) /** - * Owner of the core network. + * The network function groups associated with a core network. + */ + public open fun attrNetworkFunctionGroups(): IResolvable = + unwrap(this).getAttrNetworkFunctionGroups().let(IResolvable::wrap) + + /** + * The owner of the core network. */ public open fun attrOwnerAccount(): String = unwrap(this).getAttrOwnerAccount() @@ -425,7 +434,8 @@ public open class CfnCoreNetwork( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkEdgeProperty, - ) : CdkObject(cdkObject), CoreNetworkEdgeProperty { + ) : CdkObject(cdkObject), + CoreNetworkEdgeProperty { /** * The ASN of a core network edge. * @@ -467,6 +477,186 @@ public open class CfnCoreNetwork( } } + /** + * Describes a network function group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * CoreNetworkNetworkFunctionGroupProperty coreNetworkNetworkFunctionGroupProperty = + * CoreNetworkNetworkFunctionGroupProperty.builder() + * .edgeLocations(List.of("edgeLocations")) + * .name("name") + * .segments(SegmentsProperty.builder() + * .sendTo(List.of("sendTo")) + * .sendVia(List.of("sendVia")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html) + */ + public interface CoreNetworkNetworkFunctionGroupProperty { + /** + * The core network edge locations. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-edgelocations) + */ + public fun edgeLocations(): List = unwrap(this).getEdgeLocations() ?: emptyList() + + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * The segments associated with the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-segments) + */ + public fun segments(): Any? = unwrap(this).getSegments() + + /** + * A builder for [CoreNetworkNetworkFunctionGroupProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param edgeLocations The core network edge locations. + */ + public fun edgeLocations(edgeLocations: List) + + /** + * @param edgeLocations The core network edge locations. + */ + public fun edgeLocations(vararg edgeLocations: String) + + /** + * @param name The name of the network function group. + */ + public fun name(name: String) + + /** + * @param segments The segments associated with the network function group. + */ + public fun segments(segments: IResolvable) + + /** + * @param segments The segments associated with the network function group. + */ + public fun segments(segments: SegmentsProperty) + + /** + * @param segments The segments associated with the network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bc84dbfb73c147f9408f8d81b434398ef4935a84ad613ee87dec028a068c0a3b") + public fun segments(segments: SegmentsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty.Builder + = + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty.builder() + + /** + * @param edgeLocations The core network edge locations. + */ + override fun edgeLocations(edgeLocations: List) { + cdkBuilder.edgeLocations(edgeLocations) + } + + /** + * @param edgeLocations The core network edge locations. + */ + override fun edgeLocations(vararg edgeLocations: String): Unit = + edgeLocations(edgeLocations.toList()) + + /** + * @param name The name of the network function group. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param segments The segments associated with the network function group. + */ + override fun segments(segments: IResolvable) { + cdkBuilder.segments(segments.let(IResolvable.Companion::unwrap)) + } + + /** + * @param segments The segments associated with the network function group. + */ + override fun segments(segments: SegmentsProperty) { + cdkBuilder.segments(segments.let(SegmentsProperty.Companion::unwrap)) + } + + /** + * @param segments The segments associated with the network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("bc84dbfb73c147f9408f8d81b434398ef4935a84ad613ee87dec028a068c0a3b") + override fun segments(segments: SegmentsProperty.Builder.() -> Unit): Unit = + segments(SegmentsProperty(segments)) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty, + ) : CdkObject(cdkObject), + CoreNetworkNetworkFunctionGroupProperty { + /** + * The core network edge locations. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-edgelocations) + */ + override fun edgeLocations(): List = unwrap(this).getEdgeLocations() ?: emptyList() + + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * The segments associated with the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-corenetworknetworkfunctiongroup.html#cfn-networkmanager-corenetwork-corenetworknetworkfunctiongroup-segments) + */ + override fun segments(): Any? = unwrap(this).getSegments() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + CoreNetworkNetworkFunctionGroupProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty): + CoreNetworkNetworkFunctionGroupProperty = CdkObjectWrappers.wrap(cdkObject) as? + CoreNetworkNetworkFunctionGroupProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CoreNetworkNetworkFunctionGroupProperty): + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkNetworkFunctionGroupProperty + } + } + /** * Describes a core network segment, which are dedicated routes. * @@ -586,7 +776,8 @@ public open class CfnCoreNetwork( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkSegmentProperty, - ) : CdkObject(cdkObject), CoreNetworkSegmentProperty { + ) : CdkObject(cdkObject), + CoreNetworkSegmentProperty { /** * The Regions where the edges are located. * @@ -626,4 +817,123 @@ public open class CfnCoreNetwork( software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.CoreNetworkSegmentProperty } } + + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * SegmentsProperty segmentsProperty = SegmentsProperty.builder() + * .sendTo(List.of("sendTo")) + * .sendVia(List.of("sendVia")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-segments.html) + */ + public interface SegmentsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-segments.html#cfn-networkmanager-corenetwork-segments-sendto) + */ + public fun sendTo(): List = unwrap(this).getSendTo() ?: emptyList() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-segments.html#cfn-networkmanager-corenetwork-segments-sendvia) + */ + public fun sendVia(): List = unwrap(this).getSendVia() ?: emptyList() + + /** + * A builder for [SegmentsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param sendTo the value to be set. + */ + public fun sendTo(sendTo: List) + + /** + * @param sendTo the value to be set. + */ + public fun sendTo(vararg sendTo: String) + + /** + * @param sendVia the value to be set. + */ + public fun sendVia(sendVia: List) + + /** + * @param sendVia the value to be set. + */ + public fun sendVia(vararg sendVia: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty.Builder = + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty.builder() + + /** + * @param sendTo the value to be set. + */ + override fun sendTo(sendTo: List) { + cdkBuilder.sendTo(sendTo) + } + + /** + * @param sendTo the value to be set. + */ + override fun sendTo(vararg sendTo: String): Unit = sendTo(sendTo.toList()) + + /** + * @param sendVia the value to be set. + */ + override fun sendVia(sendVia: List) { + cdkBuilder.sendVia(sendVia) + } + + /** + * @param sendVia the value to be set. + */ + override fun sendVia(vararg sendVia: String): Unit = sendVia(sendVia.toList()) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty, + ) : CdkObject(cdkObject), + SegmentsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-segments.html#cfn-networkmanager-corenetwork-segments-sendto) + */ + override fun sendTo(): List = unwrap(this).getSendTo() ?: emptyList() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-corenetwork-segments.html#cfn-networkmanager-corenetwork-segments-sendvia) + */ + override fun sendVia(): List = unwrap(this).getSendVia() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SegmentsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty): + SegmentsProperty = CdkObjectWrappers.wrap(cdkObject) as? SegmentsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SegmentsProperty): + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnCoreNetwork.SegmentsProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetworkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetworkProps.kt index 234f58a564..d0efb9b0a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetworkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCoreNetworkProps.kt @@ -154,7 +154,8 @@ public interface CfnCoreNetworkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCoreNetworkProps, - ) : CdkObject(cdkObject), CfnCoreNetworkProps { + ) : CdkObject(cdkObject), + CfnCoreNetworkProps { /** * The description of a core network. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociation.kt index 984c5c6937..bf546f6e81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociation.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomerGatewayAssociation( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCustomerGatewayAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociationProps.kt index d9241c7f98..9de74e0533 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnCustomerGatewayAssociationProps.kt @@ -124,7 +124,8 @@ public interface CfnCustomerGatewayAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnCustomerGatewayAssociationProps, - ) : CdkObject(cdkObject), CfnCustomerGatewayAssociationProps { + ) : CdkObject(cdkObject), + CfnCustomerGatewayAssociationProps { /** * The Amazon Resource Name (ARN) of the customer gateway. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDevice.kt index 4385edc3c7..940ade136f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDevice.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDevice( cdkObject: software.amazon.awscdk.services.networkmanager.CfnDevice, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -679,7 +681,8 @@ public open class CfnDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnDevice.AWSLocationProperty, - ) : CdkObject(cdkObject), AWSLocationProperty { + ) : CdkObject(cdkObject), + AWSLocationProperty { /** * The Amazon Resource Name (ARN) of the subnet that the device is located in. * @@ -808,7 +811,8 @@ public open class CfnDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnDevice.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The physical address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDeviceProps.kt index c95d290c2f..119d3197fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnDeviceProps.kt @@ -336,7 +336,8 @@ public interface CfnDeviceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnDeviceProps, - ) : CdkObject(cdkObject), CfnDeviceProps { + ) : CdkObject(cdkObject), + CfnDeviceProps { /** * The AWS location of the device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetwork.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetwork.kt index 30974647ee..f7b196d190 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetwork.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetwork.kt @@ -39,7 +39,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGlobalNetwork( cdkObject: software.amazon.awscdk.services.networkmanager.CfnGlobalNetwork, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.networkmanager.CfnGlobalNetwork(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetworkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetworkProps.kt index 913e9fb742..b75c4fd5c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetworkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnGlobalNetworkProps.kt @@ -140,7 +140,8 @@ public interface CfnGlobalNetworkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnGlobalNetworkProps, - ) : CdkObject(cdkObject), CfnGlobalNetworkProps { + ) : CdkObject(cdkObject), + CfnGlobalNetworkProps { /** * The date and time that the global network was created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLink.kt index 40ee6ad071..80f95ee20c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLink.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLink( cdkObject: software.amazon.awscdk.services.networkmanager.CfnLink, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -516,7 +518,8 @@ public open class CfnLink( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnLink.BandwidthProperty, - ) : CdkObject(cdkObject), BandwidthProperty { + ) : CdkObject(cdkObject), + BandwidthProperty { /** * Download speed in Mbps. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociation.kt index 004972c2e3..5cee7c406a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociation.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLinkAssociation( cdkObject: software.amazon.awscdk.services.networkmanager.CfnLinkAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociationProps.kt index 4a866dd6c9..86921129e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkAssociationProps.kt @@ -101,7 +101,8 @@ public interface CfnLinkAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnLinkAssociationProps, - ) : CdkObject(cdkObject), CfnLinkAssociationProps { + ) : CdkObject(cdkObject), + CfnLinkAssociationProps { /** * The device ID for the link association. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkProps.kt index 4bdba6f473..1e77087a34 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnLinkProps.kt @@ -241,7 +241,8 @@ public interface CfnLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnLinkProps, - ) : CdkObject(cdkObject), CfnLinkProps { + ) : CdkObject(cdkObject), + CfnLinkProps { /** * The bandwidth for the link. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSite.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSite.kt index d0b46412da..6cc743a15c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSite.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSite.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSite( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSite, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -477,7 +479,8 @@ public open class CfnSite( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSite.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The physical address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteProps.kt index d0367ffd45..f230b4db2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteProps.kt @@ -217,7 +217,8 @@ public interface CfnSiteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteProps, - ) : CdkObject(cdkObject), CfnSiteProps { + ) : CdkObject(cdkObject), + CfnSiteProps { /** * A description of your site. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachment.kt index fe8eb2ae81..4f699a59ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachment.kt @@ -35,6 +35,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .coreNetworkId("coreNetworkId") * .vpnConnectionArn("vpnConnectionArn") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -54,7 +63,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSiteToSiteVpnAttachment( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -153,6 +164,48 @@ public open class CfnSiteToSiteVpnAttachment( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(`value`: String) { + unwrap(this).setNetworkFunctionGroupName(`value`) + } + + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(`value`: IResolvable) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9384e425d8f9b92c5bcf5d24a2f47b73cdabe3b79ce68a5d1323eed719999bfc") + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(`value`)) + /** * Describes a proposed segment change. */ @@ -186,20 +239,20 @@ public open class CfnSiteToSiteVpnAttachment( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -230,6 +283,45 @@ public open class CfnSiteToSiteVpnAttachment( */ public fun coreNetworkId(coreNetworkId: String) + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("689e603bbabcae40c3396f1f6c2b1fcf049251bf8a9b158944543ca4c16432f4") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * Describes a proposed segment change. * @@ -264,18 +356,18 @@ public open class CfnSiteToSiteVpnAttachment( fun proposedSegmentChange(proposedSegmentChange: ProposedSegmentChangeProperty.Builder.() -> Unit) /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ public fun tags(tags: List) /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ public fun tags(vararg tags: CfnTag) @@ -308,6 +400,54 @@ public open class CfnSiteToSiteVpnAttachment( cdkBuilder.coreNetworkId(coreNetworkId) } + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("689e603bbabcae40c3396f1f6c2b1fcf049251bf8a9b158944543ca4c16432f4") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * Describes a proposed segment change. * @@ -347,20 +487,20 @@ public open class CfnSiteToSiteVpnAttachment( Unit = proposedSegmentChange(ProposedSegmentChangeProperty(proposedSegmentChange)) /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -401,6 +541,169 @@ public open class CfnSiteToSiteVpnAttachment( software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment } + /** + * Describes proposed changes to a network function group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * ProposedNetworkFunctionGroupChangeProperty proposedNetworkFunctionGroupChangeProperty = + * ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html) + */ + public interface ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + public fun attachmentPolicyRuleNumber(): Number? = unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [ProposedNetworkFunctionGroupChangeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + public fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(tags: List) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder + = + software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty.builder() + + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + override fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) { + cdkBuilder.attachmentPolicyRuleNumber(attachmentPolicyRuleNumber) + } + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty, + ) : CdkObject(cdkObject), + ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + override fun attachmentPolicyRuleNumber(): Number? = + unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ProposedNetworkFunctionGroupChangeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty): + ProposedNetworkFunctionGroupChangeProperty = CdkObjectWrappers.wrap(cdkObject) as? + ProposedNetworkFunctionGroupChangeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ProposedNetworkFunctionGroupChangeProperty): + software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty + } + } + /** * Describes a proposed segment change. * @@ -514,7 +817,8 @@ public open class CfnSiteToSiteVpnAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachment.ProposedSegmentChangeProperty, - ) : CdkObject(cdkObject), ProposedSegmentChangeProperty { + ) : CdkObject(cdkObject), + ProposedSegmentChangeProperty { /** * The rule number in the policy document that applies to this change. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachmentProps.kt index 9b4019568f..4b59dc72ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnSiteToSiteVpnAttachmentProps.kt @@ -27,6 +27,15 @@ import kotlin.jvm.JvmName * .coreNetworkId("coreNetworkId") * .vpnConnectionArn("vpnConnectionArn") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -52,6 +61,21 @@ public interface CfnSiteToSiteVpnAttachmentProps { */ public fun coreNetworkId(): String + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + */ + public fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * @@ -62,7 +86,7 @@ public interface CfnSiteToSiteVpnAttachmentProps { public fun proposedSegmentChange(): Any? = unwrap(this).getProposedSegmentChange() /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) */ @@ -86,6 +110,33 @@ public interface CfnSiteToSiteVpnAttachmentProps { */ public fun coreNetworkId(coreNetworkId: String) + /** + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fba964619265a75ba81bc3ce36b7cb03793468be066789304a2a05d55d8f25ab") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -109,12 +160,12 @@ public interface CfnSiteToSiteVpnAttachmentProps { fun proposedSegmentChange(proposedSegmentChange: CfnSiteToSiteVpnAttachment.ProposedSegmentChangeProperty.Builder.() -> Unit) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ public fun tags(tags: List) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ public fun tags(vararg tags: CfnTag) @@ -137,6 +188,42 @@ public interface CfnSiteToSiteVpnAttachmentProps { cdkBuilder.coreNetworkId(coreNetworkId) } + /** + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fba964619265a75ba81bc3ce36b7cb03793468be066789304a2a05d55d8f25ab") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(CfnSiteToSiteVpnAttachment.ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -166,14 +253,14 @@ public interface CfnSiteToSiteVpnAttachmentProps { proposedSegmentChange(CfnSiteToSiteVpnAttachment.ProposedSegmentChangeProperty(proposedSegmentChange)) /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags Tags for the attachment. + * @param tags The tags associated with the Site-to-Site VPN attachment. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -191,7 +278,8 @@ public interface CfnSiteToSiteVpnAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnSiteToSiteVpnAttachmentProps, - ) : CdkObject(cdkObject), CfnSiteToSiteVpnAttachmentProps { + ) : CdkObject(cdkObject), + CfnSiteToSiteVpnAttachmentProps { /** * The ID of a core network where you're creating a site-to-site VPN attachment. * @@ -199,6 +287,21 @@ public interface CfnSiteToSiteVpnAttachmentProps { */ override fun coreNetworkId(): String = unwrap(this).getCoreNetworkId() + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-proposednetworkfunctiongroupchange) + */ + override fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * @@ -209,7 +312,7 @@ public interface CfnSiteToSiteVpnAttachmentProps { override fun proposedSegmentChange(): Any? = unwrap(this).getProposedSegmentChange() /** - * Tags for the attachment. + * The tags associated with the Site-to-Site VPN attachment. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-sitetositevpnattachment.html#cfn-networkmanager-sitetositevpnattachment-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeering.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeering.kt index 4187d25096..91f4f81b1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeering.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeering.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayPeering( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayPeering, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeeringProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeeringProps.kt index 73da19128d..77464a4f99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeeringProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayPeeringProps.kt @@ -118,7 +118,8 @@ public interface CfnTransitGatewayPeeringProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayPeeringProps, - ) : CdkObject(cdkObject), CfnTransitGatewayPeeringProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayPeeringProps { /** * The ID of the core network. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistration.kt index 89359e5a24..2f4681e9f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistration.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRegistration( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRegistration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistrationProps.kt index f92b00b2ed..5b66cea4ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRegistrationProps.kt @@ -83,7 +83,8 @@ public interface CfnTransitGatewayRegistrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRegistrationProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRegistrationProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRegistrationProps { /** * The ID of the global network. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachment.kt index d26b00670e..6823c48745 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachment.kt @@ -36,6 +36,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .peeringId("peeringId") * .transitGatewayRouteTableArn("transitGatewayRouteTableArn") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -55,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTransitGatewayRouteTableAttachment( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -147,6 +158,18 @@ public open class CfnTransitGatewayRouteTableAttachment( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The name of the network function group. + */ + public open fun networkFunctionGroupName(`value`: String) { + unwrap(this).setNetworkFunctionGroupName(`value`) + } + /** * The ID of the transit gateway peering. */ @@ -159,6 +182,36 @@ public open class CfnTransitGatewayRouteTableAttachment( unwrap(this).setPeeringId(`value`) } + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(`value`: IResolvable) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3b88e01051b1ad8922f33bbdc87bd9e6e6c535c65fa5be108c3c119fee17a2fc") + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(`value`)) + /** * This property is read-only. */ @@ -228,6 +281,14 @@ public open class CfnTransitGatewayRouteTableAttachment( */ @CdkDslMarker public interface Builder { + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + /** * The ID of the transit gateway peering. * @@ -236,6 +297,37 @@ public open class CfnTransitGatewayRouteTableAttachment( */ public fun peeringId(peeringId: String) + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0f4139e45992c1bbd01956f7da37fa231c1847e0ebff07200f7ebe761e779d18") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * This property is read-only. * @@ -309,6 +401,16 @@ public open class CfnTransitGatewayRouteTableAttachment( software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.Builder.create(scope, id) + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-networkfunctiongroupname) + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + /** * The ID of the transit gateway peering. * @@ -319,6 +421,44 @@ public open class CfnTransitGatewayRouteTableAttachment( cdkBuilder.peeringId(peeringId) } + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0f4139e45992c1bbd01956f7da37fa231c1847e0ebff07200f7ebe761e779d18") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * This property is read-only. * @@ -418,6 +558,169 @@ public open class CfnTransitGatewayRouteTableAttachment( software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment } + /** + * Describes proposed changes to a network function group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * ProposedNetworkFunctionGroupChangeProperty proposedNetworkFunctionGroupChangeProperty = + * ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html) + */ + public interface ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + public fun attachmentPolicyRuleNumber(): Number? = unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [ProposedNetworkFunctionGroupChangeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + public fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(tags: List) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder + = + software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty.builder() + + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + override fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) { + cdkBuilder.attachmentPolicyRuleNumber(attachmentPolicyRuleNumber) + } + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty, + ) : CdkObject(cdkObject), + ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + override fun attachmentPolicyRuleNumber(): Number? = + unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ProposedNetworkFunctionGroupChangeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty): + ProposedNetworkFunctionGroupChangeProperty = CdkObjectWrappers.wrap(cdkObject) as? + ProposedNetworkFunctionGroupChangeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ProposedNetworkFunctionGroupChangeProperty): + software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty + } + } + /** * Describes a proposed segment change. * @@ -531,7 +834,8 @@ public open class CfnTransitGatewayRouteTableAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty, - ) : CdkObject(cdkObject), ProposedSegmentChangeProperty { + ) : CdkObject(cdkObject), + ProposedSegmentChangeProperty { /** * The rule number in the policy document that applies to this change. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachmentProps.kt index f8a7ded3ac..25beec22df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnTransitGatewayRouteTableAttachmentProps.kt @@ -27,6 +27,15 @@ import kotlin.jvm.JvmName * .peeringId("peeringId") * .transitGatewayRouteTableArn("transitGatewayRouteTableArn") * // the properties below are optional + * .networkFunctionGroupName("networkFunctionGroupName") + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -45,6 +54,13 @@ import kotlin.jvm.JvmName * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html) */ public interface CfnTransitGatewayRouteTableAttachmentProps { + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + /** * The ID of the transit gateway peering. * @@ -52,6 +68,14 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { */ public fun peeringId(): String + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + */ + public fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * This property is read-only. * @@ -83,11 +107,38 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { */ @CdkDslMarker public interface Builder { + /** + * @param networkFunctionGroupName The name of the network function group. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + /** * @param peeringId The ID of the transit gateway peering. */ public fun peeringId(peeringId: String) + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("367a9706b5b0659df6993edda0b1863ba70cddaee1df411f10a6b8bfee20e84c") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * @param proposedSegmentChange This property is read-only. * Values can't be assigned to it. @@ -136,6 +187,13 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { = software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachmentProps.builder() + /** + * @param networkFunctionGroupName The name of the network function group. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + /** * @param peeringId The ID of the transit gateway peering. */ @@ -143,6 +201,35 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { cdkBuilder.peeringId(peeringId) } + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("367a9706b5b0659df6993edda0b1863ba70cddaee1df411f10a6b8bfee20e84c") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(CfnTransitGatewayRouteTableAttachment.ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * @param proposedSegmentChange This property is read-only. * Values can't be assigned to it. @@ -201,7 +288,15 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachmentProps, - ) : CdkObject(cdkObject), CfnTransitGatewayRouteTableAttachmentProps { + ) : CdkObject(cdkObject), + CfnTransitGatewayRouteTableAttachmentProps { + /** + * The name of the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + /** * The ID of the transit gateway peering. * @@ -209,6 +304,14 @@ public interface CfnTransitGatewayRouteTableAttachmentProps { */ override fun peeringId(): String = unwrap(this).getPeeringId() + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayroutetableattachment.html#cfn-networkmanager-transitgatewayroutetableattachment-proposednetworkfunctiongroupchange) + */ + override fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * This property is read-only. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachment.kt index 61b52a74e8..fd9e4cee88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachment.kt @@ -40,6 +40,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .applianceModeSupport(false) * .ipv6Support(false) * .build()) + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -59,7 +67,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcAttachment( cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,6 +119,12 @@ public open class CfnVpcAttachment( */ public open fun attrEdgeLocation(): String = unwrap(this).getAttrEdgeLocation() + /** + * The name of the network function group. + */ + public open fun attrNetworkFunctionGroupName(): String = + unwrap(this).getAttrNetworkFunctionGroupName() + /** * The ID of the VPC attachment owner. */ @@ -185,6 +201,36 @@ public open class CfnVpcAttachment( public open fun options(`value`: VpcOptionsProperty.Builder.() -> Unit): Unit = options(VpcOptionsProperty(`value`)) + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + + /** + * Describes proposed changes to a network function group. + */ + public open fun proposedNetworkFunctionGroupChange(`value`: IResolvable) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty) { + unwrap(this).setProposedNetworkFunctionGroupChange(`value`.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0e53bfd081fe0b30db2236031993dddc72ebab4b0427cf09c4f05bc562c9ed72") + public open + fun proposedNetworkFunctionGroupChange(`value`: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(`value`)) + /** * Describes a proposed segment change. */ @@ -303,6 +349,37 @@ public open class CfnVpcAttachment( @JvmName("6eacb9293db63e6186b9b8dd6e9c5fe8aa22c9ceeb6cce74db1a42b2d3b3c998") public fun options(options: VpcOptionsProperty.Builder.() -> Unit) + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d941744ff082e1f82723639e4e1dda96153b7e355b2922dff1286be21d8b7838") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * Describes a proposed segment change. * @@ -425,6 +502,44 @@ public open class CfnVpcAttachment( override fun options(options: VpcOptionsProperty.Builder.() -> Unit): Unit = options(VpcOptionsProperty(options)) + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d941744ff082e1f82723639e4e1dda96153b7e355b2922dff1286be21d8b7838") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * Describes a proposed segment change. * @@ -534,6 +649,169 @@ public open class CfnVpcAttachment( software.amazon.awscdk.services.networkmanager.CfnVpcAttachment } + /** + * Describes proposed changes to a network function group. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.networkmanager.*; + * ProposedNetworkFunctionGroupChangeProperty proposedNetworkFunctionGroupChangeProperty = + * ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html) + */ + public interface ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + public fun attachmentPolicyRuleNumber(): Number? = unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + public fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [ProposedNetworkFunctionGroupChangeProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + public fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + public fun networkFunctionGroupName(networkFunctionGroupName: String) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(tags: List) + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder + = + software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty.builder() + + /** + * @param attachmentPolicyRuleNumber The proposed new attachment policy rule number for the + * network function group. + */ + override fun attachmentPolicyRuleNumber(attachmentPolicyRuleNumber: Number) { + cdkBuilder.attachmentPolicyRuleNumber(attachmentPolicyRuleNumber) + } + + /** + * @param networkFunctionGroupName The proposed name change for the network function group + * name. + */ + override fun networkFunctionGroupName(networkFunctionGroupName: String) { + cdkBuilder.networkFunctionGroupName(networkFunctionGroupName) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The list of proposed changes to the key-value tags associated with the network + * function group. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): + software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty, + ) : CdkObject(cdkObject), + ProposedNetworkFunctionGroupChangeProperty { + /** + * The proposed new attachment policy rule number for the network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-attachmentpolicyrulenumber) + */ + override fun attachmentPolicyRuleNumber(): Number? = + unwrap(this).getAttachmentPolicyRuleNumber() + + /** + * The proposed name change for the network function group name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-networkfunctiongroupname) + */ + override fun networkFunctionGroupName(): String? = unwrap(this).getNetworkFunctionGroupName() + + /** + * The list of proposed changes to the key-value tags associated with the network function + * group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-proposednetworkfunctiongroupchange.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ProposedNetworkFunctionGroupChangeProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty): + ProposedNetworkFunctionGroupChangeProperty = CdkObjectWrappers.wrap(cdkObject) as? + ProposedNetworkFunctionGroupChangeProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ProposedNetworkFunctionGroupChangeProperty): + software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty + } + } + /** * Describes a proposed segment change. * @@ -647,7 +925,8 @@ public open class CfnVpcAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.ProposedSegmentChangeProperty, - ) : CdkObject(cdkObject), ProposedSegmentChangeProperty { + ) : CdkObject(cdkObject), + ProposedSegmentChangeProperty { /** * The rule number in the policy document that applies to this change. * @@ -803,7 +1082,8 @@ public open class CfnVpcAttachment( private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachment.VpcOptionsProperty, - ) : CdkObject(cdkObject), VpcOptionsProperty { + ) : CdkObject(cdkObject), + VpcOptionsProperty { /** * Indicates whether appliance mode is supported. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachmentProps.kt index 34be54030e..724c883ef2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/networkmanager/CfnVpcAttachmentProps.kt @@ -31,6 +31,14 @@ import kotlin.jvm.JvmName * .applianceModeSupport(false) * .ipv6Support(false) * .build()) + * .proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder() + * .attachmentPolicyRuleNumber(123) + * .networkFunctionGroupName("networkFunctionGroupName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build()) * .proposedSegmentChange(ProposedSegmentChangeProperty.builder() * .attachmentPolicyRuleNumber(123) * .segmentName("segmentName") @@ -63,6 +71,14 @@ public interface CfnVpcAttachmentProps { */ public fun options(): Any? = unwrap(this).getOptions() + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + */ + public fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * @@ -120,6 +136,28 @@ public interface CfnVpcAttachmentProps { @JvmName("6757c0f2d355da3d8905624f7e84eb5a2ec2edf3d14c9ccf5c2ed4d293c7071e") public fun options(options: CfnVpcAttachment.VpcOptionsProperty.Builder.() -> Unit) + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty) + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6ba0afb1cbf97a7d3c9421cd886ef6bdff947038a603c51ed69d8fec0bc4b3b") + public + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -202,6 +240,35 @@ public interface CfnVpcAttachmentProps { override fun options(options: CfnVpcAttachment.VpcOptionsProperty.Builder.() -> Unit): Unit = options(CfnVpcAttachment.VpcOptionsProperty(options)) + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: IResolvable) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(IResolvable.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty) { + cdkBuilder.proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange.let(CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty.Companion::unwrap)) + } + + /** + * @param proposedNetworkFunctionGroupChange Describes proposed changes to a network function + * group. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6ba0afb1cbf97a7d3c9421cd886ef6bdff947038a603c51ed69d8fec0bc4b3b") + override + fun proposedNetworkFunctionGroupChange(proposedNetworkFunctionGroupChange: CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty.Builder.() -> Unit): + Unit = + proposedNetworkFunctionGroupChange(CfnVpcAttachment.ProposedNetworkFunctionGroupChangeProperty(proposedNetworkFunctionGroupChange)) + /** * @param proposedSegmentChange Describes a proposed segment change. * In some cases, the segment change must first be evaluated and accepted. @@ -267,7 +334,8 @@ public interface CfnVpcAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.networkmanager.CfnVpcAttachmentProps, - ) : CdkObject(cdkObject), CfnVpcAttachmentProps { + ) : CdkObject(cdkObject), + CfnVpcAttachmentProps { /** * The core network ID. * @@ -282,6 +350,14 @@ public interface CfnVpcAttachmentProps { */ override fun options(): Any? = unwrap(this).getOptions() + /** + * Describes proposed changes to a network function group. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-vpcattachment.html#cfn-networkmanager-vpcattachment-proposednetworkfunctiongroupchange) + */ + override fun proposedNetworkFunctionGroupChange(): Any? = + unwrap(this).getProposedNetworkFunctionGroupChange() + /** * Describes a proposed segment change. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfile.kt index 76bf70894c..bee8b619c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfile.kt @@ -77,7 +77,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchProfile( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -354,7 +356,7 @@ public open class CfnLaunchProfile( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-launchprofile.html#cfn-nimblestudio-launchprofile-studioid) * @param studioId The unique identifier for a studio resource. @@ -503,7 +505,7 @@ public open class CfnLaunchProfile( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-launchprofile.html#cfn-nimblestudio-launchprofile-studioid) * @param studioId The unique identifier for a studio resource. @@ -1031,7 +1033,8 @@ public open class CfnLaunchProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile.StreamConfigurationProperty, - ) : CdkObject(cdkObject), StreamConfigurationProperty { + ) : CdkObject(cdkObject), + StreamConfigurationProperty { /** * Indicates if a streaming session created from this launch profile should be terminated * automatically or retained without termination after being in a `STOPPED` state. @@ -1255,7 +1258,8 @@ public open class CfnLaunchProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile.StreamConfigurationSessionBackupProperty, - ) : CdkObject(cdkObject), StreamConfigurationSessionBackupProperty { + ) : CdkObject(cdkObject), + StreamConfigurationSessionBackupProperty { /** * The maximum number of backups that each streaming session created from this launch profile * can have. @@ -1420,7 +1424,8 @@ public open class CfnLaunchProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile.StreamConfigurationSessionStorageProperty, - ) : CdkObject(cdkObject), StreamConfigurationSessionStorageProperty { + ) : CdkObject(cdkObject), + StreamConfigurationSessionStorageProperty { /** * Allows artists to upload files to their workstations. * @@ -1533,7 +1538,8 @@ public open class CfnLaunchProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile.StreamingSessionStorageRootProperty, - ) : CdkObject(cdkObject), StreamingSessionStorageRootProperty { + ) : CdkObject(cdkObject), + StreamingSessionStorageRootProperty { /** * The folder path in Linux workstations where files are uploaded. * @@ -1684,7 +1690,8 @@ public open class CfnLaunchProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfile.VolumeConfigurationProperty, - ) : CdkObject(cdkObject), VolumeConfigurationProperty { + ) : CdkObject(cdkObject), + VolumeConfigurationProperty { /** * The number of I/O operations per second for the root volume that is attached to streaming * session. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfileProps.kt index d4fc8b2d54..678763f077 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnLaunchProfileProps.kt @@ -113,7 +113,7 @@ public interface CfnLaunchProfileProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-launchprofile.html#cfn-nimblestudio-launchprofile-studioid) */ @@ -202,7 +202,7 @@ public interface CfnLaunchProfileProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ public fun studioId(studioId: String) @@ -306,7 +306,7 @@ public interface CfnLaunchProfileProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ override fun studioId(studioId: String) { cdkBuilder.studioId(studioId) @@ -328,7 +328,8 @@ public interface CfnLaunchProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnLaunchProfileProps, - ) : CdkObject(cdkObject), CfnLaunchProfileProps { + ) : CdkObject(cdkObject), + CfnLaunchProfileProps { /** * A human-readable description of the launch profile. * @@ -378,7 +379,7 @@ public interface CfnLaunchProfileProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-launchprofile.html#cfn-nimblestudio-launchprofile-studioid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImage.kt index 521124a601..0fcc6d0bb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImage.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStreamingImage( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStreamingImage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -208,7 +210,7 @@ public open class CfnStreamingImage( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-streamingimage.html#cfn-nimblestudio-streamingimage-studioid) * @param studioId The unique identifier for a studio resource. @@ -268,7 +270,7 @@ public open class CfnStreamingImage( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-streamingimage.html#cfn-nimblestudio-streamingimage-studioid) * @param studioId The unique identifier for a studio resource. @@ -393,7 +395,8 @@ public open class CfnStreamingImage( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStreamingImage.StreamingImageEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), StreamingImageEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + StreamingImageEncryptionConfigurationProperty { /** * The ARN for a KMS key that is used to encrypt studio data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImageProps.kt index 720023c80c..93b654851c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStreamingImageProps.kt @@ -56,7 +56,7 @@ public interface CfnStreamingImageProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-streamingimage.html#cfn-nimblestudio-streamingimage-studioid) */ @@ -95,7 +95,7 @@ public interface CfnStreamingImageProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ public fun studioId(studioId: String) @@ -136,7 +136,7 @@ public interface CfnStreamingImageProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ override fun studioId(studioId: String) { cdkBuilder.studioId(studioId) @@ -158,7 +158,8 @@ public interface CfnStreamingImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStreamingImageProps, - ) : CdkObject(cdkObject), CfnStreamingImageProps { + ) : CdkObject(cdkObject), + CfnStreamingImageProps { /** * A human-readable description of the streaming image. * @@ -183,7 +184,7 @@ public interface CfnStreamingImageProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-streamingimage.html#cfn-nimblestudio-streamingimage-studioid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudio.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudio.kt index 9ba0f7c141..4c0d26da22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudio.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudio.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStudio( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudio, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -494,7 +496,8 @@ public open class CfnStudio( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudio.StudioEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), StudioEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + StudioEncryptionConfigurationProperty { /** * The ARN for a KMS key that is used to encrypt studio data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponent.kt index 50454a1ffc..6dd92aed65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponent.kt @@ -95,7 +95,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStudioComponent( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -464,7 +466,7 @@ public open class CfnStudioComponent( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-studiocomponent.html#cfn-nimblestudio-studiocomponent-studioid) * @param studioId The unique identifier for a studio resource. @@ -666,7 +668,7 @@ public open class CfnStudioComponent( /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-studiocomponent.html#cfn-nimblestudio-studiocomponent-studioid) * @param studioId The unique identifier for a studio resource. @@ -810,7 +812,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.ActiveDirectoryComputerAttributeProperty, - ) : CdkObject(cdkObject), ActiveDirectoryComputerAttributeProperty { + ) : CdkObject(cdkObject), + ActiveDirectoryComputerAttributeProperty { /** * The name for the LDAP attribute. * @@ -980,7 +983,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.ActiveDirectoryConfigurationProperty, - ) : CdkObject(cdkObject), ActiveDirectoryConfigurationProperty { + ) : CdkObject(cdkObject), + ActiveDirectoryConfigurationProperty { /** * A collection of custom attributes for an Active Directory computer. * @@ -1104,7 +1108,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.ComputeFarmConfigurationProperty, - ) : CdkObject(cdkObject), ComputeFarmConfigurationProperty { + ) : CdkObject(cdkObject), + ComputeFarmConfigurationProperty { /** * The name of an Active Directory user that is used on ComputeFarm worker instances. * @@ -1196,7 +1201,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.LicenseServiceConfigurationProperty, - ) : CdkObject(cdkObject), LicenseServiceConfigurationProperty { + ) : CdkObject(cdkObject), + LicenseServiceConfigurationProperty { /** * The endpoint of the license service that is accessed by the studio component resource. * @@ -1300,7 +1306,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.ScriptParameterKeyValueProperty, - ) : CdkObject(cdkObject), ScriptParameterKeyValueProperty { + ) : CdkObject(cdkObject), + ScriptParameterKeyValueProperty { /** * A script parameter key. * @@ -1476,7 +1483,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.SharedFileSystemConfigurationProperty, - ) : CdkObject(cdkObject), SharedFileSystemConfigurationProperty { + ) : CdkObject(cdkObject), + SharedFileSystemConfigurationProperty { /** * The endpoint of the shared file system that is accessed by the studio component resource. * @@ -1819,7 +1827,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.StudioComponentConfigurationProperty, - ) : CdkObject(cdkObject), StudioComponentConfigurationProperty { + ) : CdkObject(cdkObject), + StudioComponentConfigurationProperty { /** * The configuration for a AWS Directory Service for Microsoft Active Directory studio * resource. @@ -1996,7 +2005,8 @@ public open class CfnStudioComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponent.StudioComponentInitializationScriptProperty, - ) : CdkObject(cdkObject), StudioComponentInitializationScriptProperty { + ) : CdkObject(cdkObject), + StudioComponentInitializationScriptProperty { /** * The version number of the protocol that is used by the launch profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponentProps.kt index 71958bfd74..b4f8a4d0a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioComponentProps.kt @@ -136,7 +136,7 @@ public interface CfnStudioComponentProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-studiocomponent.html#cfn-nimblestudio-studiocomponent-studioid) */ @@ -257,7 +257,7 @@ public interface CfnStudioComponentProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ public fun studioId(studioId: String) @@ -397,7 +397,7 @@ public interface CfnStudioComponentProps { /** * @param studioId The unique identifier for a studio resource. - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. */ override fun studioId(studioId: String) { cdkBuilder.studioId(studioId) @@ -433,7 +433,8 @@ public interface CfnStudioComponentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioComponentProps, - ) : CdkObject(cdkObject), CfnStudioComponentProps { + ) : CdkObject(cdkObject), + CfnStudioComponentProps { /** * The configuration of the studio component, based on component type. * @@ -497,7 +498,7 @@ public interface CfnStudioComponentProps { /** * The unique identifier for a studio resource. * - * In Nimble Studio , all other resources are contained in a studio resource. + * In Nimble Studio, all other resources are contained in a studio resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-nimblestudio-studiocomponent.html#cfn-nimblestudio-studiocomponent-studioid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioProps.kt index 50e0708f5c..c80b6685e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/nimblestudio/CfnStudioProps.kt @@ -224,7 +224,8 @@ public interface CfnStudioProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.nimblestudio.CfnStudioProps, - ) : CdkObject(cdkObject), CfnStudioProps { + ) : CdkObject(cdkObject), + CfnStudioProps { /** * The IAM role that studio admins assume when logging in to the Nimble Studio portal. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLink.kt index 39c38919fa..a5cca47963 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLink.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLink( cdkObject: software.amazon.awscdk.services.oam.CfnLink, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -602,7 +604,8 @@ public open class CfnLink( private class Wrapper( cdkObject: software.amazon.awscdk.services.oam.CfnLink.LinkConfigurationProperty, - ) : CdkObject(cdkObject), LinkConfigurationProperty { + ) : CdkObject(cdkObject), + LinkConfigurationProperty { /** * Use this structure to filter which log groups are to share log events from this source * account to the monitoring account. @@ -802,7 +805,8 @@ public open class CfnLink( private class Wrapper( cdkObject: software.amazon.awscdk.services.oam.CfnLink.LinkFilterProperty, - ) : CdkObject(cdkObject), LinkFilterProperty { + ) : CdkObject(cdkObject), + LinkFilterProperty { /** * When used in `MetricConfiguration` this field specifies which metric namespaces are to be * shared with the monitoring account. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLinkProps.kt index 019e0ddb22..0787361ef0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnLinkProps.kt @@ -265,7 +265,8 @@ public interface CfnLinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.oam.CfnLinkProps, - ) : CdkObject(cdkObject), CfnLinkProps { + ) : CdkObject(cdkObject), + CfnLinkProps { /** * Specify a friendly human-readable name to use to identify this source account when you are * viewing data from it in the monitoring account. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSink.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSink.kt index 2993b9b1d7..b94c9f238d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSink.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSink.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSink( cdkObject: software.amazon.awscdk.services.oam.CfnSink, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSinkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSinkProps.kt index d9cee511e1..00b01ef051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSinkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/oam/CfnSinkProps.kt @@ -127,7 +127,8 @@ public interface CfnSinkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.oam.CfnSinkProps, - ) : CdkObject(cdkObject), CfnSinkProps { + ) : CdkObject(cdkObject), + CfnSinkProps { /** * A name for the sink. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStore.kt index 45355563a2..b48af1e556 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStore.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnnotationStore( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -591,7 +593,8 @@ public open class CfnAnnotationStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStore.ReferenceItemProperty, - ) : CdkObject(cdkObject), ReferenceItemProperty { + ) : CdkObject(cdkObject), + ReferenceItemProperty { /** * The reference's ARN. * @@ -692,7 +695,8 @@ public open class CfnAnnotationStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStore.SseConfigProperty, - ) : CdkObject(cdkObject), SseConfigProperty { + ) : CdkObject(cdkObject), + SseConfigProperty { /** * An encryption key ARN. * @@ -813,7 +817,8 @@ public open class CfnAnnotationStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStore.StoreOptionsProperty, - ) : CdkObject(cdkObject), StoreOptionsProperty { + ) : CdkObject(cdkObject), + StoreOptionsProperty { /** * Formatting options for a TSV file. * @@ -948,7 +953,8 @@ public open class CfnAnnotationStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStore.TsvStoreOptionsProperty, - ) : CdkObject(cdkObject), TsvStoreOptionsProperty { + ) : CdkObject(cdkObject), + TsvStoreOptionsProperty { /** * The store's annotation type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStoreProps.kt index 8093b48645..5db81e5f48 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnAnnotationStoreProps.kt @@ -283,7 +283,8 @@ public interface CfnAnnotationStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnAnnotationStoreProps, - ) : CdkObject(cdkObject), CfnAnnotationStoreProps { + ) : CdkObject(cdkObject), + CfnAnnotationStoreProps { /** * A description for the store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStore.kt index 462795b301..3e258be9b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStore.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReferenceStore( cdkObject: software.amazon.awscdk.services.omics.CfnReferenceStore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -378,7 +380,8 @@ public open class CfnReferenceStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnReferenceStore.SseConfigProperty, - ) : CdkObject(cdkObject), SseConfigProperty { + ) : CdkObject(cdkObject), + SseConfigProperty { /** * An encryption key ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStoreProps.kt index 91c350ae38..8543a89b8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnReferenceStoreProps.kt @@ -157,7 +157,8 @@ public interface CfnReferenceStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnReferenceStoreProps, - ) : CdkObject(cdkObject), CfnReferenceStoreProps { + ) : CdkObject(cdkObject), + CfnReferenceStoreProps { /** * A description for the store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroup.kt index 74a4bc9372..371974c3be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroup.kt @@ -16,7 +16,8 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Creates a run group. + * You can optionally create a run group to limit the compute resources for the runs that you add to + * the group. * * Example: * @@ -39,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRunGroup( cdkObject: software.amazon.awscdk.services.omics.CfnRunGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.omics.CfnRunGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroupProps.kt index f75a347f82..bbe0600eff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnRunGroupProps.kt @@ -162,7 +162,8 @@ public interface CfnRunGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnRunGroupProps, - ) : CdkObject(cdkObject), CfnRunGroupProps { + ) : CdkObject(cdkObject), + CfnRunGroupProps { /** * The group's maximum CPU count setting. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStore.kt index b55c4d3845..62a9189c46 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStore.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSequenceStore( cdkObject: software.amazon.awscdk.services.omics.CfnSequenceStore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -410,7 +412,8 @@ public open class CfnSequenceStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnSequenceStore.SseConfigProperty, - ) : CdkObject(cdkObject), SseConfigProperty { + ) : CdkObject(cdkObject), + SseConfigProperty { /** * An encryption key ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStoreProps.kt index 80d2f4cba2..be30136ee9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnSequenceStoreProps.kt @@ -179,7 +179,8 @@ public interface CfnSequenceStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnSequenceStoreProps, - ) : CdkObject(cdkObject), CfnSequenceStoreProps { + ) : CdkObject(cdkObject), + CfnSequenceStoreProps { /** * A description for the store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStore.kt index 30e002f023..fdc818c94e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStore.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVariantStore( cdkObject: software.amazon.awscdk.services.omics.CfnVariantStore, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -465,7 +467,8 @@ public open class CfnVariantStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnVariantStore.ReferenceItemProperty, - ) : CdkObject(cdkObject), ReferenceItemProperty { + ) : CdkObject(cdkObject), + ReferenceItemProperty { /** * The reference's ARN. * @@ -566,7 +569,8 @@ public open class CfnVariantStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnVariantStore.SseConfigProperty, - ) : CdkObject(cdkObject), SseConfigProperty { + ) : CdkObject(cdkObject), + SseConfigProperty { /** * An encryption key ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStoreProps.kt index 687076a289..2beeaadbfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnVariantStoreProps.kt @@ -206,7 +206,8 @@ public interface CfnVariantStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnVariantStoreProps, - ) : CdkObject(cdkObject), CfnVariantStoreProps { + ) : CdkObject(cdkObject), + CfnVariantStoreProps { /** * A description for the store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflow.kt index 4ba9c72f64..fd39d47e43 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflow.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkflow( cdkObject: software.amazon.awscdk.services.omics.CfnWorkflow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.omics.CfnWorkflow(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -525,7 +527,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnWorkflow.WorkflowParameterProperty, - ) : CdkObject(cdkObject), WorkflowParameterProperty { + ) : CdkObject(cdkObject), + WorkflowParameterProperty { /** * The parameter's description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflowProps.kt index 5839ded034..6abfee4c8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/omics/CfnWorkflowProps.kt @@ -238,7 +238,8 @@ public interface CfnWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.omics.CfnWorkflowProps, - ) : CdkObject(cdkObject), CfnWorkflowProps { + ) : CdkObject(cdkObject), + CfnWorkflowProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-workflow.html#cfn-omics-workflow-accelerators) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicy.kt index 4158f15141..ec21d2b5f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicy.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPolicy( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnAccessPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicyProps.kt index 8896effc2c..5e7d6bb229 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnAccessPolicyProps.kt @@ -126,7 +126,8 @@ public interface CfnAccessPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnAccessPolicyProps, - ) : CdkObject(cdkObject), CfnAccessPolicyProps { + ) : CdkObject(cdkObject), + CfnAccessPolicyProps { /** * The description of the policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollection.kt index ea3ac621b2..c5e77cf316 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollection.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCollection( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnCollection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollectionProps.kt index 0fbbbbfb53..e9e7704e10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnCollectionProps.kt @@ -212,7 +212,8 @@ public interface CfnCollectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnCollectionProps, - ) : CdkObject(cdkObject), CfnCollectionProps { + ) : CdkObject(cdkObject), + CfnCollectionProps { /** * A description of the collection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicy.kt index da18feffc8..48aa4f0512 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicy.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLifecyclePolicy( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnLifecyclePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicyProps.kt index 55a21162bf..4884547bb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnLifecyclePolicyProps.kt @@ -122,7 +122,8 @@ public interface CfnLifecyclePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnLifecyclePolicyProps, - ) : CdkObject(cdkObject), CfnLifecyclePolicyProps { + ) : CdkObject(cdkObject), + CfnLifecyclePolicyProps { /** * The description of the lifecycle policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfig.kt index 3fad3c397d..3ba5f60e28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfig.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityConfig( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnSecurityConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.opensearchserverless.CfnSecurityConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -433,7 +434,8 @@ public open class CfnSecurityConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnSecurityConfig.SamlConfigOptionsProperty, - ) : CdkObject(cdkObject), SamlConfigOptionsProperty { + ) : CdkObject(cdkObject), + SamlConfigOptionsProperty { /** * The group attribute for this SAML integration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfigProps.kt index f0a724a0c1..296c6e9a88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityConfigProps.kt @@ -169,7 +169,8 @@ public interface CfnSecurityConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnSecurityConfigProps, - ) : CdkObject(cdkObject), CfnSecurityConfigProps { + ) : CdkObject(cdkObject), + CfnSecurityConfigProps { /** * The description of the security configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicy.kt index 81c78ebc50..b4dd134d3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicy.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecurityPolicy( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnSecurityPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicyProps.kt index 1950023e62..28d25906de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnSecurityPolicyProps.kt @@ -126,7 +126,8 @@ public interface CfnSecurityPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnSecurityPolicyProps, - ) : CdkObject(cdkObject), CfnSecurityPolicyProps { + ) : CdkObject(cdkObject), + CfnSecurityPolicyProps { /** * The description of the security policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpoint.kt index 648abcb2a7..1f19a0649f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpoint.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVpcEndpoint( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnVpcEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpointProps.kt index c5c44ab95b..74b25a59bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchserverless/CfnVpcEndpointProps.kt @@ -149,7 +149,8 @@ public interface CfnVpcEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchserverless.CfnVpcEndpointProps, - ) : CdkObject(cdkObject), CfnVpcEndpointProps { + ) : CdkObject(cdkObject), + CfnVpcEndpointProps { /** * The name of the endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/AdvancedSecurityOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/AdvancedSecurityOptions.kt index 13433c4f6a..9be06793dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/AdvancedSecurityOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/AdvancedSecurityOptions.kt @@ -197,7 +197,8 @@ public interface AdvancedSecurityOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.AdvancedSecurityOptions, - ) : CdkObject(cdkObject), AdvancedSecurityOptions { + ) : CdkObject(cdkObject), + AdvancedSecurityOptions { /** * ARN for the master user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CapacityConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CapacityConfig.kt index 2bdad6fbc6..eda6b275b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CapacityConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CapacityConfig.kt @@ -224,7 +224,8 @@ public interface CapacityConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CapacityConfig, - ) : CdkObject(cdkObject), CapacityConfig { + ) : CdkObject(cdkObject), + CapacityConfig { /** * The instance type for your data nodes, such as `m3.medium.search`. For valid values, see * [Supported Instance diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomain.kt index f9db22bf67..9848485f17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomain.kt @@ -42,6 +42,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .anonymousAuthEnabled(false) * .enabled(false) * .internalUserDatabaseEnabled(false) + * .jwtOptions(JWTOptionsProperty.builder() + * .enabled(false) + * .publicKey("publicKey") + * .rolesKey("rolesKey") + * .subjectKey("subjectKey") + * .build()) * .masterUserOptions(MasterUserOptionsProperty.builder() * .masterUserArn("masterUserArn") * .masterUserName("masterUserName") @@ -123,6 +129,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .build()) + * .skipShardMigrationWait(false) * .snapshotOptions(SnapshotOptionsProperty.builder() * .automatedSnapshotStartHour(123) * .build()) @@ -144,7 +151,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.opensearchservice.CfnDomain(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -606,6 +615,25 @@ public open class CfnDomain( public open fun offPeakWindowOptions(`value`: OffPeakWindowOptionsProperty.Builder.() -> Unit): Unit = offPeakWindowOptions(OffPeakWindowOptionsProperty(`value`)) + /** + * + */ + public open fun skipShardMigrationWait(): Any? = unwrap(this).getSkipShardMigrationWait() + + /** + * + */ + public open fun skipShardMigrationWait(`value`: Boolean) { + unwrap(this).setSkipShardMigrationWait(`value`) + } + + /** + * + */ + public open fun skipShardMigrationWait(`value`: IResolvable) { + unwrap(this).setSkipShardMigrationWait(`value`.let(IResolvable.Companion::unwrap)) + } + /** * *DEPRECATED* . */ @@ -1161,6 +1189,18 @@ public open class CfnDomain( public fun offPeakWindowOptions(offPeakWindowOptions: OffPeakWindowOptionsProperty.Builder.() -> Unit) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + * @param skipShardMigrationWait + */ + public fun skipShardMigrationWait(skipShardMigrationWait: Boolean) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + * @param skipShardMigrationWait + */ + public fun skipShardMigrationWait(skipShardMigrationWait: IResolvable) + /** * *DEPRECATED* . * @@ -1805,6 +1845,22 @@ public open class CfnDomain( fun offPeakWindowOptions(offPeakWindowOptions: OffPeakWindowOptionsProperty.Builder.() -> Unit): Unit = offPeakWindowOptions(OffPeakWindowOptionsProperty(offPeakWindowOptions)) + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + * @param skipShardMigrationWait + */ + override fun skipShardMigrationWait(skipShardMigrationWait: Boolean) { + cdkBuilder.skipShardMigrationWait(skipShardMigrationWait) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + * @param skipShardMigrationWait + */ + override fun skipShardMigrationWait(skipShardMigrationWait: IResolvable) { + cdkBuilder.skipShardMigrationWait(skipShardMigrationWait.let(IResolvable.Companion::unwrap)) + } + /** * *DEPRECATED* . * @@ -2000,6 +2056,12 @@ public open class CfnDomain( * .anonymousAuthEnabled(false) * .enabled(false) * .internalUserDatabaseEnabled(false) + * .jwtOptions(JWTOptionsProperty.builder() + * .enabled(false) + * .publicKey("publicKey") + * .rolesKey("rolesKey") + * .subjectKey("subjectKey") + * .build()) * .masterUserOptions(MasterUserOptionsProperty.builder() * .masterUserArn("masterUserArn") * .masterUserName("masterUserName") @@ -2064,6 +2126,13 @@ public open class CfnDomain( */ public fun internalUserDatabaseEnabled(): Any? = unwrap(this).getInternalUserDatabaseEnabled() + /** + * Container for information about the JWT configuration of the Amazon OpenSearch Service. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html#cfn-opensearchservice-domain-advancedsecurityoptionsinput-jwtoptions) + */ + public fun jwtOptions(): Any? = unwrap(this).getJwtOptions() + /** * Specifies information about the master user. * @@ -2135,6 +2204,26 @@ public open class CfnDomain( */ public fun internalUserDatabaseEnabled(internalUserDatabaseEnabled: IResolvable) + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + public fun jwtOptions(jwtOptions: IResolvable) + + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + public fun jwtOptions(jwtOptions: JWTOptionsProperty) + + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cef78b4cf87e380205c518c60c1ae00ab2031655fc3a42bcdc0b7a6610ccdf6f") + public fun jwtOptions(jwtOptions: JWTOptionsProperty.Builder.() -> Unit) + /** * @param masterUserOptions Specifies information about the master user. */ @@ -2245,6 +2334,31 @@ public open class CfnDomain( cdkBuilder.internalUserDatabaseEnabled(internalUserDatabaseEnabled.let(IResolvable.Companion::unwrap)) } + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + override fun jwtOptions(jwtOptions: IResolvable) { + cdkBuilder.jwtOptions(jwtOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + override fun jwtOptions(jwtOptions: JWTOptionsProperty) { + cdkBuilder.jwtOptions(jwtOptions.let(JWTOptionsProperty.Companion::unwrap)) + } + + /** + * @param jwtOptions Container for information about the JWT configuration of the Amazon + * OpenSearch Service. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cef78b4cf87e380205c518c60c1ae00ab2031655fc3a42bcdc0b7a6610ccdf6f") + override fun jwtOptions(jwtOptions: JWTOptionsProperty.Builder.() -> Unit): Unit = + jwtOptions(JWTOptionsProperty(jwtOptions)) + /** * @param masterUserOptions Specifies information about the master user. */ @@ -2300,7 +2414,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.AdvancedSecurityOptionsInputProperty, - ) : CdkObject(cdkObject), AdvancedSecurityOptionsInputProperty { + ) : CdkObject(cdkObject), + AdvancedSecurityOptionsInputProperty { /** * Date and time when the migration period will be disabled. * @@ -2343,6 +2458,13 @@ public open class CfnDomain( override fun internalUserDatabaseEnabled(): Any? = unwrap(this).getInternalUserDatabaseEnabled() + /** + * Container for information about the JWT configuration of the Amazon OpenSearch Service. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html#cfn-opensearchservice-domain-advancedsecurityoptionsinput-jwtoptions) + */ + override fun jwtOptions(): Any? = unwrap(this).getJwtOptions() + /** * Specifies information about the master user. * @@ -2918,7 +3040,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * Container for cold storage configuration options. * @@ -3226,7 +3349,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.CognitoOptionsProperty, - ) : CdkObject(cdkObject), CognitoOptionsProperty { + ) : CdkObject(cdkObject), + CognitoOptionsProperty { /** * Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards. * @@ -3363,7 +3487,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.ColdStorageOptionsProperty, - ) : CdkObject(cdkObject), ColdStorageOptionsProperty { + ) : CdkObject(cdkObject), + ColdStorageOptionsProperty { /** * Whether to enable or disable cold storage on the domain. * @@ -3456,11 +3581,14 @@ public open class CfnDomain( public fun enforceHttps(): Any? = unwrap(this).getEnforceHttps() /** - * The minimum TLS version required for traffic to the domain. Valid values are TLS 1.3 - * (recommended) or 1.2:. + * The minimum TLS version required for traffic to the domain. The policy can be one of the + * following values:. * - * * `Policy-Min-TLS-1-0-2019-07` - * * `Policy-Min-TLS-1-2-2019-07` + * * *Policy-Min-TLS-1-0-2019-07:* TLS security policy that supports TLS version 1.0 to TLS + * version 1.2 + * * *Policy-Min-TLS-1-2-2019-07:* TLS security policy that supports only TLS version 1.2 + * * *Policy-Min-TLS-1-2-PFS-2023-10:* TLS security policy that supports TLS version 1.2 to TLS + * version 1.3 with perfect forward secrecy cipher suites * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-domainendpointoptions.html#cfn-opensearchservice-domain-domainendpointoptions-tlssecuritypolicy) */ @@ -3515,10 +3643,13 @@ public open class CfnDomain( public fun enforceHttps(enforceHttps: IResolvable) /** - * @param tlsSecurityPolicy The minimum TLS version required for traffic to the domain. Valid - * values are TLS 1.3 (recommended) or 1.2:. - * * `Policy-Min-TLS-1-0-2019-07` - * * `Policy-Min-TLS-1-2-2019-07` + * @param tlsSecurityPolicy The minimum TLS version required for traffic to the domain. The + * policy can be one of the following values:. + * * *Policy-Min-TLS-1-0-2019-07:* TLS security policy that supports TLS version 1.0 to TLS + * version 1.2 + * * *Policy-Min-TLS-1-2-2019-07:* TLS security policy that supports only TLS version 1.2 + * * *Policy-Min-TLS-1-2-PFS-2023-10:* TLS security policy that supports TLS version 1.2 to + * TLS version 1.3 with perfect forward secrecy cipher suites */ public fun tlsSecurityPolicy(tlsSecurityPolicy: String) } @@ -3585,10 +3716,13 @@ public open class CfnDomain( } /** - * @param tlsSecurityPolicy The minimum TLS version required for traffic to the domain. Valid - * values are TLS 1.3 (recommended) or 1.2:. - * * `Policy-Min-TLS-1-0-2019-07` - * * `Policy-Min-TLS-1-2-2019-07` + * @param tlsSecurityPolicy The minimum TLS version required for traffic to the domain. The + * policy can be one of the following values:. + * * *Policy-Min-TLS-1-0-2019-07:* TLS security policy that supports TLS version 1.0 to TLS + * version 1.2 + * * *Policy-Min-TLS-1-2-2019-07:* TLS security policy that supports only TLS version 1.2 + * * *Policy-Min-TLS-1-2-PFS-2023-10:* TLS security policy that supports TLS version 1.2 to + * TLS version 1.3 with perfect forward secrecy cipher suites */ override fun tlsSecurityPolicy(tlsSecurityPolicy: String) { cdkBuilder.tlsSecurityPolicy(tlsSecurityPolicy) @@ -3601,7 +3735,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.DomainEndpointOptionsProperty, - ) : CdkObject(cdkObject), DomainEndpointOptionsProperty { + ) : CdkObject(cdkObject), + DomainEndpointOptionsProperty { /** * The fully qualified URL for your custom endpoint. * @@ -3643,11 +3778,14 @@ public open class CfnDomain( override fun enforceHttps(): Any? = unwrap(this).getEnforceHttps() /** - * The minimum TLS version required for traffic to the domain. Valid values are TLS 1.3 - * (recommended) or 1.2:. + * The minimum TLS version required for traffic to the domain. The policy can be one of the + * following values:. * - * * `Policy-Min-TLS-1-0-2019-07` - * * `Policy-Min-TLS-1-2-2019-07` + * * *Policy-Min-TLS-1-0-2019-07:* TLS security policy that supports TLS version 1.0 to TLS + * version 1.2 + * * *Policy-Min-TLS-1-2-2019-07:* TLS security policy that supports only TLS version 1.2 + * * *Policy-Min-TLS-1-2-PFS-2023-10:* TLS security policy that supports TLS version 1.2 to + * TLS version 1.3 with perfect forward secrecy cipher suites * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-domainendpointoptions.html#cfn-opensearchservice-domain-domainendpointoptions-tlssecuritypolicy) */ @@ -3862,7 +4000,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.EBSOptionsProperty, - ) : CdkObject(cdkObject), EBSOptionsProperty { + ) : CdkObject(cdkObject), + EBSOptionsProperty { /** * Specifies whether Amazon EBS volumes are attached to data nodes in the OpenSearch Service * domain. @@ -4079,7 +4218,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.EncryptionAtRestOptionsProperty, - ) : CdkObject(cdkObject), EncryptionAtRestOptionsProperty { + ) : CdkObject(cdkObject), + EncryptionAtRestOptionsProperty { /** * Specify `true` to enable encryption at rest. Required if you enable fine-grained access * control in @@ -4202,7 +4342,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.IdpProperty, - ) : CdkObject(cdkObject), IdpProperty { + ) : CdkObject(cdkObject), + IdpProperty { /** * The unique entity ID of the application in the SAML identity provider. * @@ -4235,6 +4376,163 @@ public open class CfnDomain( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.opensearchservice.*; + * JWTOptionsProperty jWTOptionsProperty = JWTOptionsProperty.builder() + * .enabled(false) + * .publicKey("publicKey") + * .rolesKey("rolesKey") + * .subjectKey("subjectKey") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html) + */ + public interface JWTOptionsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-enabled) + */ + public fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-publickey) + */ + public fun publicKey(): String? = unwrap(this).getPublicKey() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-roleskey) + */ + public fun rolesKey(): String? = unwrap(this).getRolesKey() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-subjectkey) + */ + public fun subjectKey(): String? = unwrap(this).getSubjectKey() + + /** + * A builder for [JWTOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabled the value to be set. + */ + public fun enabled(enabled: Boolean) + + /** + * @param enabled the value to be set. + */ + public fun enabled(enabled: IResolvable) + + /** + * @param publicKey the value to be set. + */ + public fun publicKey(publicKey: String) + + /** + * @param rolesKey the value to be set. + */ + public fun rolesKey(rolesKey: String) + + /** + * @param subjectKey the value to be set. + */ + public fun subjectKey(subjectKey: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty.Builder = + software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty.builder() + + /** + * @param enabled the value to be set. + */ + override fun enabled(enabled: Boolean) { + cdkBuilder.enabled(enabled) + } + + /** + * @param enabled the value to be set. + */ + override fun enabled(enabled: IResolvable) { + cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) + } + + /** + * @param publicKey the value to be set. + */ + override fun publicKey(publicKey: String) { + cdkBuilder.publicKey(publicKey) + } + + /** + * @param rolesKey the value to be set. + */ + override fun rolesKey(rolesKey: String) { + cdkBuilder.rolesKey(rolesKey) + } + + /** + * @param subjectKey the value to be set. + */ + override fun subjectKey(subjectKey: String) { + cdkBuilder.subjectKey(subjectKey) + } + + public fun build(): + software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty, + ) : CdkObject(cdkObject), + JWTOptionsProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-enabled) + */ + override fun enabled(): Any? = unwrap(this).getEnabled() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-publickey) + */ + override fun publicKey(): String? = unwrap(this).getPublicKey() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-roleskey) + */ + override fun rolesKey(): String? = unwrap(this).getRolesKey() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-jwtoptions.html#cfn-opensearchservice-domain-jwtoptions-subjectkey) + */ + override fun subjectKey(): String? = unwrap(this).getSubjectKey() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): JWTOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty): + JWTOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? JWTOptionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: JWTOptionsProperty): + software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.opensearchservice.CfnDomain.JWTOptionsProperty + } + } + /** * Specifies whether the OpenSearch Service domain publishes application, search slow logs, or * index slow logs to Amazon CloudWatch. @@ -4345,7 +4643,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.LogPublishingOptionProperty, - ) : CdkObject(cdkObject), LogPublishingOptionProperty { + ) : CdkObject(cdkObject), + LogPublishingOptionProperty { /** * Specifies the CloudWatch log group to publish to. * @@ -4539,7 +4838,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.MasterUserOptionsProperty, - ) : CdkObject(cdkObject), MasterUserOptionsProperty { + ) : CdkObject(cdkObject), + MasterUserOptionsProperty { /** * Amazon Resource Name (ARN) for the master user. * @@ -4684,7 +4984,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.NodeToNodeEncryptionOptionsProperty, - ) : CdkObject(cdkObject), NodeToNodeEncryptionOptionsProperty { + ) : CdkObject(cdkObject), + NodeToNodeEncryptionOptionsProperty { /** * Specifies to enable or disable node-to-node encryption on the domain. * @@ -4836,7 +5137,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.OffPeakWindowOptionsProperty, - ) : CdkObject(cdkObject), OffPeakWindowOptionsProperty { + ) : CdkObject(cdkObject), + OffPeakWindowOptionsProperty { /** * Specifies whether off-peak window settings are enabled for the domain. * @@ -4960,7 +5262,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.OffPeakWindowProperty, - ) : CdkObject(cdkObject), OffPeakWindowProperty { + ) : CdkObject(cdkObject), + OffPeakWindowProperty { /** * The desired start time for an off-peak maintenance window. * @@ -5218,7 +5521,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.SAMLOptionsProperty, - ) : CdkObject(cdkObject), SAMLOptionsProperty { + ) : CdkObject(cdkObject), + SAMLOptionsProperty { /** * True to enable SAML authentication for a domain. * @@ -5553,7 +5857,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.ServiceSoftwareOptionsProperty, - ) : CdkObject(cdkObject), ServiceSoftwareOptionsProperty { + ) : CdkObject(cdkObject), + ServiceSoftwareOptionsProperty { /** * The timestamp, in Epoch time, until which you can manually request a service software * update. @@ -5708,7 +6013,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.SnapshotOptionsProperty, - ) : CdkObject(cdkObject), SnapshotOptionsProperty { + ) : CdkObject(cdkObject), + SnapshotOptionsProperty { /** * The hour in UTC during which the service takes an automated daily snapshot of the indexes * in the OpenSearch Service domain. @@ -5812,7 +6118,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.SoftwareUpdateOptionsProperty, - ) : CdkObject(cdkObject), SoftwareUpdateOptionsProperty { + ) : CdkObject(cdkObject), + SoftwareUpdateOptionsProperty { /** * Specifies whether automatic service software updates are enabled for the domain. * @@ -6008,7 +6315,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.VPCOptionsProperty, - ) : CdkObject(cdkObject), VPCOptionsProperty { + ) : CdkObject(cdkObject), + VPCOptionsProperty { /** * The list of security group IDs that are associated with the VPC endpoints for the domain. * @@ -6148,7 +6456,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.WindowStartTimeProperty, - ) : CdkObject(cdkObject), WindowStartTimeProperty { + ) : CdkObject(cdkObject), + WindowStartTimeProperty { /** * The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time. * @@ -6251,7 +6560,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomain.ZoneAwarenessConfigProperty, - ) : CdkObject(cdkObject), ZoneAwarenessConfigProperty { + ) : CdkObject(cdkObject), + ZoneAwarenessConfigProperty { /** * If you enabled multiple Availability Zones (AZs), the number of AZs that you want the * domain to use. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomainProps.kt index 2ff26cccad..85e812c025 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CfnDomainProps.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any +import kotlin.Boolean import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -33,6 +34,12 @@ import kotlin.jvm.JvmName * .anonymousAuthEnabled(false) * .enabled(false) * .internalUserDatabaseEnabled(false) + * .jwtOptions(JWTOptionsProperty.builder() + * .enabled(false) + * .publicKey("publicKey") + * .rolesKey("rolesKey") + * .subjectKey("subjectKey") + * .build()) * .masterUserOptions(MasterUserOptionsProperty.builder() * .masterUserArn("masterUserArn") * .masterUserName("masterUserName") @@ -114,6 +121,7 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .build()) + * .skipShardMigrationWait(false) * .snapshotOptions(SnapshotOptionsProperty.builder() * .automatedSnapshotStartHour(123) * .build()) @@ -309,6 +317,11 @@ public interface CfnDomainProps { */ public fun offPeakWindowOptions(): Any? = unwrap(this).getOffPeakWindowOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + */ + public fun skipShardMigrationWait(): Any? = unwrap(this).getSkipShardMigrationWait() + /** * *DEPRECATED* . * @@ -669,6 +682,16 @@ public interface CfnDomainProps { public fun offPeakWindowOptions(offPeakWindowOptions: CfnDomain.OffPeakWindowOptionsProperty.Builder.() -> Unit) + /** + * @param skipShardMigrationWait the value to be set. + */ + public fun skipShardMigrationWait(skipShardMigrationWait: Boolean) + + /** + * @param skipShardMigrationWait the value to be set. + */ + public fun skipShardMigrationWait(skipShardMigrationWait: IResolvable) + /** * @param snapshotOptions *DEPRECATED* . * The automated snapshot configuration for the OpenSearch Service domain indexes. @@ -1147,6 +1170,20 @@ public interface CfnDomainProps { fun offPeakWindowOptions(offPeakWindowOptions: CfnDomain.OffPeakWindowOptionsProperty.Builder.() -> Unit): Unit = offPeakWindowOptions(CfnDomain.OffPeakWindowOptionsProperty(offPeakWindowOptions)) + /** + * @param skipShardMigrationWait the value to be set. + */ + override fun skipShardMigrationWait(skipShardMigrationWait: Boolean) { + cdkBuilder.skipShardMigrationWait(skipShardMigrationWait) + } + + /** + * @param skipShardMigrationWait the value to be set. + */ + override fun skipShardMigrationWait(skipShardMigrationWait: IResolvable) { + cdkBuilder.skipShardMigrationWait(skipShardMigrationWait.let(IResolvable.Companion::unwrap)) + } + /** * @param snapshotOptions *DEPRECATED* . * The automated snapshot configuration for the OpenSearch Service domain indexes. @@ -1263,7 +1300,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * An AWS Identity and Access Management ( IAM ) policy document that specifies who can access * the OpenSearch Service domain and their permissions. @@ -1439,6 +1477,11 @@ public interface CfnDomainProps { */ override fun offPeakWindowOptions(): Any? = unwrap(this).getOffPeakWindowOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html#cfn-opensearchservice-domain-skipshardmigrationwait) + */ + override fun skipShardMigrationWait(): Any? = unwrap(this).getSkipShardMigrationWait() + /** * *DEPRECATED* . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CognitoOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CognitoOptions.kt index d42eadecb4..aefcf3c5b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CognitoOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CognitoOptions.kt @@ -110,7 +110,8 @@ public interface CognitoOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CognitoOptions, - ) : CdkObject(cdkObject), CognitoOptions { + ) : CdkObject(cdkObject), + CognitoOptions { /** * The Amazon Cognito identity pool ID that you want Amazon OpenSearch Service to use for * OpenSearch Dashboards authentication. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CustomEndpointOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CustomEndpointOptions.kt index eb67e6102c..fa29a03822 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CustomEndpointOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/CustomEndpointOptions.kt @@ -97,7 +97,8 @@ public interface CustomEndpointOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.CustomEndpointOptions, - ) : CdkObject(cdkObject), CustomEndpointOptions { + ) : CdkObject(cdkObject), + CustomEndpointOptions { /** * The certificate to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/Domain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/Domain.kt index 79ba96d9cd..763631d260 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/Domain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/Domain.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Domain( cdkObject: software.amazon.awscdk.services.opensearchservice.Domain, -) : Resource(cdkObject), IDomain, IConnectable { +) : Resource(cdkObject), + IDomain, + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainAttributes.kt index eba695d23f..234e41ac9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainAttributes.kt @@ -74,7 +74,8 @@ public interface DomainAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.DomainAttributes, - ) : CdkObject(cdkObject), DomainAttributes { + ) : CdkObject(cdkObject), + DomainAttributes { /** * The ARN of the Amazon OpenSearch Service domain. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainProps.kt index 92505fb09e..332864c38a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/DomainProps.kt @@ -1004,7 +1004,8 @@ public interface DomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.DomainProps, - ) : CdkObject(cdkObject), DomainProps { + ) : CdkObject(cdkObject), + DomainProps { /** * Domain access policies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EbsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EbsOptions.kt index 56ca79c0c9..42d6368b88 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EbsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EbsOptions.kt @@ -183,7 +183,8 @@ public interface EbsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.EbsOptions, - ) : CdkObject(cdkObject), EbsOptions { + ) : CdkObject(cdkObject), + EbsOptions { /** * Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon OpenSearch * Service domain. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EncryptionAtRestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EncryptionAtRestOptions.kt index 9f2f6bc44f..bf6034210c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EncryptionAtRestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EncryptionAtRestOptions.kt @@ -94,7 +94,8 @@ public interface EncryptionAtRestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.EncryptionAtRestOptions, - ) : CdkObject(cdkObject), EncryptionAtRestOptions { + ) : CdkObject(cdkObject), + EncryptionAtRestOptions { /** * Specify true to enable encryption at rest. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EngineVersion.kt index cbcfe2f649..d3547f9f65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/EngineVersion.kt @@ -108,6 +108,12 @@ public open class EngineVersion( public val OPENSEARCH_2_11: EngineVersion = EngineVersion.wrap(software.amazon.awscdk.services.opensearchservice.EngineVersion.OPENSEARCH_2_11) + public val OPENSEARCH_2_13: EngineVersion = + EngineVersion.wrap(software.amazon.awscdk.services.opensearchservice.EngineVersion.OPENSEARCH_2_13) + + public val OPENSEARCH_2_15: EngineVersion = + EngineVersion.wrap(software.amazon.awscdk.services.opensearchservice.EngineVersion.OPENSEARCH_2_15) + public val OPENSEARCH_2_3: EngineVersion = EngineVersion.wrap(software.amazon.awscdk.services.opensearchservice.EngineVersion.OPENSEARCH_2_3) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/IDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/IDomain.kt index 698422e290..0f54d13353 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/IDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/IDomain.kt @@ -578,7 +578,8 @@ public interface IDomain : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.IDomain, - ) : CdkObject(cdkObject), IDomain { + ) : CdkObject(cdkObject), + IDomain { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/LoggingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/LoggingOptions.kt index a29d340422..8acc45b6cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/LoggingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/LoggingOptions.kt @@ -235,7 +235,8 @@ public interface LoggingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.LoggingOptions, - ) : CdkObject(cdkObject), LoggingOptions { + ) : CdkObject(cdkObject), + LoggingOptions { /** * Specify if Amazon OpenSearch Service application logging should be set up. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/SAMLOptionsProperty.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/SAMLOptionsProperty.kt index ae24ffbe31..9fcb3fe51b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/SAMLOptionsProperty.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/SAMLOptionsProperty.kt @@ -198,7 +198,8 @@ public interface SAMLOptionsProperty { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.SAMLOptionsProperty, - ) : CdkObject(cdkObject), SAMLOptionsProperty { + ) : CdkObject(cdkObject), + SAMLOptionsProperty { /** * The unique entity ID of the application in the SAML identity provider. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/WindowStartTime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/WindowStartTime.kt index a8d082a525..1dda56b051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/WindowStartTime.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/WindowStartTime.kt @@ -84,7 +84,8 @@ public interface WindowStartTime { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.WindowStartTime, - ) : CdkObject(cdkObject), WindowStartTime { + ) : CdkObject(cdkObject), + WindowStartTime { /** * The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/ZoneAwarenessConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/ZoneAwarenessConfig.kt index 361ee07cfe..aeeb3fd9d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/ZoneAwarenessConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opensearchservice/ZoneAwarenessConfig.kt @@ -123,7 +123,8 @@ public interface ZoneAwarenessConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.opensearchservice.ZoneAwarenessConfig, - ) : CdkObject(cdkObject), ZoneAwarenessConfig { + ) : CdkObject(cdkObject), + ZoneAwarenessConfig { /** * If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain * to use. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnApp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnApp.kt index 8b9eb0b58f..0080af57e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnApp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnApp.kt @@ -70,7 +70,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApp( cdkObject: software.amazon.awscdk.services.opsworks.CfnApp, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -990,7 +991,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnApp.DataSourceProperty, - ) : CdkObject(cdkObject), DataSourceProperty { + ) : CdkObject(cdkObject), + DataSourceProperty { /** * The data source's ARN. * @@ -1165,7 +1167,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnApp.EnvironmentVariableProperty, - ) : CdkObject(cdkObject), EnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EnvironmentVariableProperty { /** * (Required) The environment variable's name, which can consist of up to 64 characters and * must be specified. @@ -1418,7 +1421,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnApp.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * When included in a request, the parameter depends on the repository type. * @@ -1598,7 +1602,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnApp.SslConfigurationProperty, - ) : CdkObject(cdkObject), SslConfigurationProperty { + ) : CdkObject(cdkObject), + SslConfigurationProperty { /** * The contents of the certificate's domain.crt file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnAppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnAppProps.kt index 9bd6f1d719..37727fca0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnAppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnAppProps.kt @@ -564,7 +564,8 @@ public interface CfnAppProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnAppProps, - ) : CdkObject(cdkObject), CfnAppProps { + ) : CdkObject(cdkObject), + CfnAppProps { /** * A `Source` object that specifies the app repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachment.kt index 0184360823..fb490d2864 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachment.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnElasticLoadBalancerAttachment( cdkObject: software.amazon.awscdk.services.opsworks.CfnElasticLoadBalancerAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachmentProps.kt index d673bcaeee..ed2754c353 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnElasticLoadBalancerAttachmentProps.kt @@ -85,7 +85,8 @@ public interface CfnElasticLoadBalancerAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnElasticLoadBalancerAttachmentProps, - ) : CdkObject(cdkObject), CfnElasticLoadBalancerAttachmentProps { + ) : CdkObject(cdkObject), + CfnElasticLoadBalancerAttachmentProps { /** * The Elastic Load Balancing instance name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstance.kt index 4150b64b0f..19a20d98c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstance.kt @@ -85,7 +85,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstance( cdkObject: software.amazon.awscdk.services.opsworks.CfnInstance, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1475,7 +1476,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnInstance.BlockDeviceMappingProperty, - ) : CdkObject(cdkObject), BlockDeviceMappingProperty { + ) : CdkObject(cdkObject), + BlockDeviceMappingProperty { /** * The device name that is exposed to the instance, such as `/dev/sdh` . * @@ -1721,7 +1723,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnInstance.EbsBlockDeviceProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceProperty { /** * Whether the volume is deleted on instance termination. * @@ -2058,7 +2061,8 @@ public open class CfnInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnInstance.TimeBasedAutoScalingProperty, - ) : CdkObject(cdkObject), TimeBasedAutoScalingProperty { + ) : CdkObject(cdkObject), + TimeBasedAutoScalingProperty { /** * The schedule for Friday. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstanceProps.kt index f897bfb1be..1edaa97d2e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnInstanceProps.kt @@ -893,7 +893,8 @@ public interface CfnInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnInstanceProps, - ) : CdkObject(cdkObject), CfnInstanceProps { + ) : CdkObject(cdkObject), + CfnInstanceProps { /** * The default AWS OpsWorks Stacks agent version. You have the following options:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayer.kt index 9f70401fc2..cb118498e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayer.kt @@ -102,7 +102,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLayer( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1585,7 +1587,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.AutoScalingThresholdsProperty, - ) : CdkObject(cdkObject), AutoScalingThresholdsProperty { + ) : CdkObject(cdkObject), + AutoScalingThresholdsProperty { /** * The CPU utilization threshold, as a percent of the available CPU. * @@ -1752,7 +1755,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.LifecycleEventConfigurationProperty, - ) : CdkObject(cdkObject), LifecycleEventConfigurationProperty { + ) : CdkObject(cdkObject), + LifecycleEventConfigurationProperty { /** * The Shutdown event configuration. * @@ -1973,7 +1977,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty, - ) : CdkObject(cdkObject), LoadBasedAutoScalingProperty { + ) : CdkObject(cdkObject), + LoadBasedAutoScalingProperty { /** * An `AutoScalingThresholds` object that describes the downscaling configuration, which * defines how and when AWS OpsWorks Stacks reduces the number of instances. @@ -2197,7 +2202,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.RecipesProperty, - ) : CdkObject(cdkObject), RecipesProperty { + ) : CdkObject(cdkObject), + RecipesProperty { /** * An array of custom recipe names to be run following a `configure` event. * @@ -2356,7 +2362,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.ShutdownEventConfigurationProperty, - ) : CdkObject(cdkObject), ShutdownEventConfigurationProperty { + ) : CdkObject(cdkObject), + ShutdownEventConfigurationProperty { /** * Whether to enable Elastic Load Balancing connection draining. * @@ -2480,8 +2487,8 @@ public open class CfnLayer( * * `gp2` - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB * and a maximum size of 16384 GiB. * * `st1` - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must - * have a minimum size of 500 GiB and a maximum size of 16384 GiB. - * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size + * have a minimum size of 125 GiB and a maximum size of 16384 GiB. + * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size * of 16384 GiB. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volumeconfiguration-volumetype) @@ -2547,8 +2554,8 @@ public open class CfnLayer( * * `gp2` - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB * and a maximum size of 16384 GiB. * * `st1` - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must - * have a minimum size of 500 GiB and a maximum size of 16384 GiB. - * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size + * have a minimum size of 125 GiB and a maximum size of 16384 GiB. + * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size * of 16384 GiB. */ public fun volumeType(volumeType: String) @@ -2627,8 +2634,8 @@ public open class CfnLayer( * * `gp2` - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB * and a maximum size of 16384 GiB. * * `st1` - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must - * have a minimum size of 500 GiB and a maximum size of 16384 GiB. - * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size + * have a minimum size of 125 GiB and a maximum size of 16384 GiB. + * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size * of 16384 GiB. */ override fun volumeType(volumeType: String) { @@ -2642,7 +2649,8 @@ public open class CfnLayer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayer.VolumeConfigurationProperty, - ) : CdkObject(cdkObject), VolumeConfigurationProperty { + ) : CdkObject(cdkObject), + VolumeConfigurationProperty { /** * Specifies whether an Amazon EBS volume is encrypted. * @@ -2706,8 +2714,8 @@ public open class CfnLayer( * * `gp2` - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB * and a maximum size of 16384 GiB. * * `st1` - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must - * have a minimum size of 500 GiB and a maximum size of 16384 GiB. - * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size + * have a minimum size of 125 GiB and a maximum size of 16384 GiB. + * * `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size * of 16384 GiB. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volumeconfiguration-volumetype) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayerProps.kt index e5943e848f..15c0bfec91 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnLayerProps.kt @@ -855,7 +855,8 @@ public interface CfnLayerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnLayerProps, - ) : CdkObject(cdkObject), CfnLayerProps { + ) : CdkObject(cdkObject), + CfnLayerProps { /** * One or more user-defined key-value pairs to be added to the stack attributes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStack.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStack.kt index 3580f10982..19dc576455 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStack.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStack.kt @@ -91,7 +91,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStack( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1988,7 +1990,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack.ChefConfigurationProperty, - ) : CdkObject(cdkObject), ChefConfigurationProperty { + ) : CdkObject(cdkObject), + ChefConfigurationProperty { /** * The Berkshelf version. * @@ -2094,7 +2097,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack.ElasticIpProperty, - ) : CdkObject(cdkObject), ElasticIpProperty { + ) : CdkObject(cdkObject), + ElasticIpProperty { /** * The IP address. * @@ -2221,7 +2225,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack.RdsDbInstanceProperty, - ) : CdkObject(cdkObject), RdsDbInstanceProperty { + ) : CdkObject(cdkObject), + RdsDbInstanceProperty { /** * AWS OpsWorks Stacks returns `*****FILTERED*****` instead of the actual value. * @@ -2489,7 +2494,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * When included in a request, the parameter depends on the repository type. * @@ -2664,7 +2670,8 @@ public open class CfnStack( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStack.StackConfigurationManagerProperty, - ) : CdkObject(cdkObject), StackConfigurationManagerProperty { + ) : CdkObject(cdkObject), + StackConfigurationManagerProperty { /** * The name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStackProps.kt index 75eefa9040..8440aa6688 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnStackProps.kt @@ -1397,7 +1397,8 @@ public interface CfnStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnStackProps, - ) : CdkObject(cdkObject), CfnStackProps { + ) : CdkObject(cdkObject), + CfnStackProps { /** * The default AWS OpsWorks Stacks agent version. You have the following options:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfile.kt index 3045802d61..ebcf14cb7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfile.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserProfile( cdkObject: software.amazon.awscdk.services.opsworks.CfnUserProfile, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfileProps.kt index d5cc646852..eaa2248ffc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnUserProfileProps.kt @@ -155,7 +155,8 @@ public interface CfnUserProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnUserProfileProps, - ) : CdkObject(cdkObject), CfnUserProfileProps { + ) : CdkObject(cdkObject), + CfnUserProfileProps { /** * Whether users can specify their own SSH public key through the My Settings page. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolume.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolume.kt index 7b45cd7792..19163aba10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolume.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolume.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVolume( cdkObject: software.amazon.awscdk.services.opsworks.CfnVolume, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolumeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolumeProps.kt index b6907aaccd..d08c6c6258 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolumeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworks/CfnVolumeProps.kt @@ -128,7 +128,8 @@ public interface CfnVolumeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworks.CfnVolumeProps, - ) : CdkObject(cdkObject), CfnVolumeProps { + ) : CdkObject(cdkObject), + CfnVolumeProps { /** * The Amazon EC2 volume ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServer.kt index 6e5407461c..dc1d063ec4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServer.kt @@ -75,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServer( cdkObject: software.amazon.awscdk.services.opsworkscm.CfnServer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -386,12 +388,12 @@ public open class CfnServer( securityGroupIds(`value`.toList()) /** - * + * The name of the server. */ public open fun serverName(): String? = unwrap(this).getServerName() /** - * + * The name of the server. */ public open fun serverName(`value`: String) { unwrap(this).setServerName(`value`) @@ -801,8 +803,14 @@ public open class CfnServer( public fun securityGroupIds(vararg securityGroupIds: String) /** + * The name of the server. + * + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-servername) - * @param serverName + * @param serverName The name of the server. */ public fun serverName(serverName: String) @@ -1280,8 +1288,14 @@ public open class CfnServer( securityGroupIds(securityGroupIds.toList()) /** + * The name of the server. + * + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-servername) - * @param serverName + * @param serverName The name of the server. */ override fun serverName(serverName: String) { cdkBuilder.serverName(serverName) @@ -1573,7 +1587,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworkscm.CfnServer.EngineAttributeProperty, - ) : CdkObject(cdkObject), EngineAttributeProperty { + ) : CdkObject(cdkObject), + EngineAttributeProperty { /** * The name of the engine attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServerProps.kt index 6e54046e79..e8796f1b16 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/opsworkscm/CfnServerProps.kt @@ -269,6 +269,12 @@ public interface CfnServerProps { public fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() ?: emptyList() /** + * The name of the server. + * + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-servername) */ public fun serverName(): String? = unwrap(this).getServerName() @@ -566,7 +572,10 @@ public interface CfnServerProps { public fun securityGroupIds(vararg securityGroupIds: String) /** - * @param serverName the value to be set. + * @param serverName The name of the server. + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. */ public fun serverName(serverName: String) @@ -920,7 +929,10 @@ public interface CfnServerProps { securityGroupIds(securityGroupIds.toList()) /** - * @param serverName the value to be set. + * @param serverName The name of the server. + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. */ override fun serverName(serverName: String) { cdkBuilder.serverName(serverName) @@ -996,7 +1008,8 @@ public interface CfnServerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.opsworkscm.CfnServerProps, - ) : CdkObject(cdkObject), CfnServerProps { + ) : CdkObject(cdkObject), + CfnServerProps { /** * Associate a public IP address with a server that you are launching. * @@ -1212,6 +1225,12 @@ public interface CfnServerProps { emptyList() /** + * The name of the server. + * + * The server name must be unique within your AWS account, within each region. Server names must + * start with a letter; then letters, numbers, or hyphens (-) are allowed, up to a maximum of 40 + * characters. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-servername) */ override fun serverName(): String? = unwrap(this).getServerName() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccount.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccount.kt index 1277fac41b..e3e7a71bbf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccount.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccount.kt @@ -143,7 +143,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccount( cdkObject: software.amazon.awscdk.services.organizations.CfnAccount, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccountProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccountProps.kt index 6ffb2742e6..4768ec65c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccountProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnAccountProps.kt @@ -351,7 +351,8 @@ public interface CfnAccountProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.organizations.CfnAccountProps, - ) : CdkObject(cdkObject), CfnAccountProps { + ) : CdkObject(cdkObject), + CfnAccountProps { /** * The account name given to the account when it was created. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganization.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganization.kt index 523643a600..c2a9e4f9ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganization.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganization.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOrganization( cdkObject: software.amazon.awscdk.services.organizations.CfnOrganization, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.organizations.CfnOrganization(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationProps.kt index 8d505fec68..8a8bcd0a15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationProps.kt @@ -163,7 +163,8 @@ public interface CfnOrganizationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.organizations.CfnOrganizationProps, - ) : CdkObject(cdkObject), CfnOrganizationProps { + ) : CdkObject(cdkObject), + CfnOrganizationProps { /** * Specifies the feature set supported by the new organization. Each feature set supports * different levels of functionality. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnit.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnit.kt index b189fa68c2..3dc859eeb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnit.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnit.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOrganizationalUnit( cdkObject: software.amazon.awscdk.services.organizations.CfnOrganizationalUnit, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnitProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnitProps.kt index 5591d79183..da55253a4a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnitProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnOrganizationalUnitProps.kt @@ -214,7 +214,8 @@ public interface CfnOrganizationalUnitProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.organizations.CfnOrganizationalUnitProps, - ) : CdkObject(cdkObject), CfnOrganizationalUnitProps { + ) : CdkObject(cdkObject), + CfnOrganizationalUnitProps { /** * The friendly name of this OU. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicy.kt index 18276ed766..80ee9e556a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicy.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicy( cdkObject: software.amazon.awscdk.services.organizations.CfnPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicyProps.kt index 93f25a45df..2bd0eaa585 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnPolicyProps.kt @@ -389,7 +389,8 @@ public interface CfnPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.organizations.CfnPolicyProps, - ) : CdkObject(cdkObject), CfnPolicyProps { + ) : CdkObject(cdkObject), + CfnPolicyProps { /** * The policy text content. You can specify the policy content as a JSON object or a JSON * string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicy.kt index 59d0706267..55c0187230 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicy.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.organizations.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicyProps.kt index 7149cba634..4df81302a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/organizations/CfnResourcePolicyProps.kt @@ -165,7 +165,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.organizations.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * The policy text of the organization resource policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipeline.kt index b4270e1095..1675b2c913 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipeline.kt @@ -57,6 +57,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .subnetIds(List.of("subnetIds")) * // the properties below are optional * .securityGroupIds(List.of("securityGroupIds")) + * .vpcAttachmentOptions(VpcAttachmentOptionsProperty.builder() + * .attachToVpc(false) + * .cidrBlock("cidrBlock") + * .build()) + * .vpcEndpointManagement("vpcEndpointManagement") * .build()) * .build(); * ``` @@ -65,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipeline( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -95,6 +102,11 @@ public open class CfnPipeline( */ public open fun attrPipelineArn(): String = unwrap(this).getAttrPipelineArn() + /** + * The VPC endpoint service name for the pipeline. + */ + public open fun attrVpcEndpointService(): String = unwrap(this).getAttrVpcEndpointService() + /** * The VPC interface endpoints that have access to the pipeline. */ @@ -776,7 +788,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.BufferOptionsProperty, - ) : CdkObject(cdkObject), BufferOptionsProperty { + ) : CdkObject(cdkObject), + BufferOptionsProperty { /** * Whether persistent buffering should be enabled. * @@ -866,7 +879,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.CloudWatchLogDestinationProperty, - ) : CdkObject(cdkObject), CloudWatchLogDestinationProperty { + ) : CdkObject(cdkObject), + CloudWatchLogDestinationProperty { /** * The name of the CloudWatch Logs group to send pipeline logs to. * @@ -955,7 +969,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.EncryptionAtRestOptionsProperty, - ) : CdkObject(cdkObject), EncryptionAtRestOptionsProperty { + ) : CdkObject(cdkObject), + EncryptionAtRestOptionsProperty { /** * The ARN of the KMS key used to encrypt buffer data. * @@ -1122,7 +1137,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.LogPublishingOptionsProperty, - ) : CdkObject(cdkObject), LogPublishingOptionsProperty { + ) : CdkObject(cdkObject), + LogPublishingOptionsProperty { /** * The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. * @@ -1158,6 +1174,132 @@ public open class CfnPipeline( } } + /** + * Options for attaching a VPC to pipeline. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.osis.*; + * VpcAttachmentOptionsProperty vpcAttachmentOptionsProperty = + * VpcAttachmentOptionsProperty.builder() + * .attachToVpc(false) + * .cidrBlock("cidrBlock") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcattachmentoptions.html) + */ + public interface VpcAttachmentOptionsProperty { + /** + * Whether a VPC is attached to the pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcattachmentoptions.html#cfn-osis-pipeline-vpcattachmentoptions-attachtovpc) + */ + public fun attachToVpc(): Any + + /** + * The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces + * (ENIs). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcattachmentoptions.html#cfn-osis-pipeline-vpcattachmentoptions-cidrblock) + */ + public fun cidrBlock(): String + + /** + * A builder for [VpcAttachmentOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attachToVpc Whether a VPC is attached to the pipeline. + */ + public fun attachToVpc(attachToVpc: Boolean) + + /** + * @param attachToVpc Whether a VPC is attached to the pipeline. + */ + public fun attachToVpc(attachToVpc: IResolvable) + + /** + * @param cidrBlock The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs). + */ + public fun cidrBlock(cidrBlock: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty.Builder = + software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty.builder() + + /** + * @param attachToVpc Whether a VPC is attached to the pipeline. + */ + override fun attachToVpc(attachToVpc: Boolean) { + cdkBuilder.attachToVpc(attachToVpc) + } + + /** + * @param attachToVpc Whether a VPC is attached to the pipeline. + */ + override fun attachToVpc(attachToVpc: IResolvable) { + cdkBuilder.attachToVpc(attachToVpc.let(IResolvable.Companion::unwrap)) + } + + /** + * @param cidrBlock The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs). + */ + override fun cidrBlock(cidrBlock: String) { + cdkBuilder.cidrBlock(cidrBlock) + } + + public fun build(): + software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty, + ) : CdkObject(cdkObject), + VpcAttachmentOptionsProperty { + /** + * Whether a VPC is attached to the pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcattachmentoptions.html#cfn-osis-pipeline-vpcattachmentoptions-attachtovpc) + */ + override fun attachToVpc(): Any = unwrap(this).getAttachToVpc() + + /** + * The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces + * (ENIs). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcattachmentoptions.html#cfn-osis-pipeline-vpcattachmentoptions-cidrblock) + */ + override fun cidrBlock(): String = unwrap(this).getCidrBlock() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VpcAttachmentOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty): + VpcAttachmentOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + VpcAttachmentOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: VpcAttachmentOptionsProperty): + software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.osis.CfnPipeline.VpcAttachmentOptionsProperty + } + } + /** * An OpenSearch Ingestion-managed VPC endpoint that will access one or more pipelines. * @@ -1174,6 +1316,11 @@ public open class CfnPipeline( * .subnetIds(List.of("subnetIds")) * // the properties below are optional * .securityGroupIds(List.of("securityGroupIds")) + * .vpcAttachmentOptions(VpcAttachmentOptionsProperty.builder() + * .attachToVpc(false) + * .cidrBlock("cidrBlock") + * .build()) + * .vpcEndpointManagement("vpcEndpointManagement") * .build()) * .build(); * ``` @@ -1292,7 +1439,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.VpcEndpointProperty, - ) : CdkObject(cdkObject), VpcEndpointProperty { + ) : CdkObject(cdkObject), + VpcEndpointProperty { /** * The unique identifier of the endpoint. * @@ -1348,6 +1496,11 @@ public open class CfnPipeline( * .subnetIds(List.of("subnetIds")) * // the properties below are optional * .securityGroupIds(List.of("securityGroupIds")) + * .vpcAttachmentOptions(VpcAttachmentOptionsProperty.builder() + * .attachToVpc(false) + * .cidrBlock("cidrBlock") + * .build()) + * .vpcEndpointManagement("vpcEndpointManagement") * .build(); * ``` * @@ -1368,6 +1521,21 @@ public open class CfnPipeline( */ public fun subnetIds(): List + /** + * Options for attaching a VPC to a pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcattachmentoptions) + */ + public fun vpcAttachmentOptions(): Any? = unwrap(this).getVpcAttachmentOptions() + + /** + * Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint + * configured for the pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcendpointmanagement) + */ + public fun vpcEndpointManagement(): String? = unwrap(this).getVpcEndpointManagement() + /** * A builder for [VpcOptionsProperty] */ @@ -1392,6 +1560,30 @@ public open class CfnPipeline( * @param subnetIds A list of subnet IDs associated with the VPC endpoint. */ public fun subnetIds(vararg subnetIds: String) + + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + public fun vpcAttachmentOptions(vpcAttachmentOptions: IResolvable) + + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + public fun vpcAttachmentOptions(vpcAttachmentOptions: VpcAttachmentOptionsProperty) + + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0bbbc81b19d82271f8df0f0680572ec91e430c4f70c263ab7bffd9d8a774ebd6") + public + fun vpcAttachmentOptions(vpcAttachmentOptions: VpcAttachmentOptionsProperty.Builder.() -> Unit) + + /** + * @param vpcEndpointManagement Defines whether you or Amazon OpenSearch Ingestion service + * create and manage the VPC endpoint configured for the pipeline. + */ + public fun vpcEndpointManagement(vpcEndpointManagement: String) } private class BuilderImpl : Builder { @@ -1424,13 +1616,45 @@ public open class CfnPipeline( */ override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + override fun vpcAttachmentOptions(vpcAttachmentOptions: IResolvable) { + cdkBuilder.vpcAttachmentOptions(vpcAttachmentOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + override fun vpcAttachmentOptions(vpcAttachmentOptions: VpcAttachmentOptionsProperty) { + cdkBuilder.vpcAttachmentOptions(vpcAttachmentOptions.let(VpcAttachmentOptionsProperty.Companion::unwrap)) + } + + /** + * @param vpcAttachmentOptions Options for attaching a VPC to a pipeline. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0bbbc81b19d82271f8df0f0680572ec91e430c4f70c263ab7bffd9d8a774ebd6") + override + fun vpcAttachmentOptions(vpcAttachmentOptions: VpcAttachmentOptionsProperty.Builder.() -> Unit): + Unit = vpcAttachmentOptions(VpcAttachmentOptionsProperty(vpcAttachmentOptions)) + + /** + * @param vpcEndpointManagement Defines whether you or Amazon OpenSearch Ingestion service + * create and manage the VPC endpoint configured for the pipeline. + */ + override fun vpcEndpointManagement(vpcEndpointManagement: String) { + cdkBuilder.vpcEndpointManagement(vpcEndpointManagement) + } + public fun build(): software.amazon.awscdk.services.osis.CfnPipeline.VpcOptionsProperty = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipeline.VpcOptionsProperty, - ) : CdkObject(cdkObject), VpcOptionsProperty { + ) : CdkObject(cdkObject), + VpcOptionsProperty { /** * A list of security groups associated with the VPC endpoint. * @@ -1445,6 +1669,21 @@ public open class CfnPipeline( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-subnetids) */ override fun subnetIds(): List = unwrap(this).getSubnetIds() + + /** + * Options for attaching a VPC to a pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcattachmentoptions) + */ + override fun vpcAttachmentOptions(): Any? = unwrap(this).getVpcAttachmentOptions() + + /** + * Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC + * endpoint configured for the pipeline. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcendpointmanagement) + */ + override fun vpcEndpointManagement(): String? = unwrap(this).getVpcEndpointManagement() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipelineProps.kt index 85ca477b3c..ba822a2825 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/osis/CfnPipelineProps.kt @@ -49,6 +49,11 @@ import kotlin.jvm.JvmName * .subnetIds(List.of("subnetIds")) * // the properties below are optional * .securityGroupIds(List.of("securityGroupIds")) + * .vpcAttachmentOptions(VpcAttachmentOptionsProperty.builder() + * .attachToVpc(false) + * .cidrBlock("cidrBlock") + * .build()) + * .vpcEndpointManagement("vpcEndpointManagement") * .build()) * .build(); * ``` @@ -403,7 +408,8 @@ public interface CfnPipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.osis.CfnPipelineProps, - ) : CdkObject(cdkObject), CfnPipelineProps { + ) : CdkObject(cdkObject), + CfnPipelineProps { /** * Options that specify the configuration of a persistent buffer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstance.kt index 24431f43eb..aa19c4e3e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstance.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationInstance( cdkObject: software.amazon.awscdk.services.panorama.CfnApplicationInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -602,7 +604,8 @@ public open class CfnApplicationInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnApplicationInstance.ManifestOverridesPayloadProperty, - ) : CdkObject(cdkObject), ManifestOverridesPayloadProperty { + ) : CdkObject(cdkObject), + ManifestOverridesPayloadProperty { /** * The overrides document. * @@ -688,7 +691,8 @@ public open class CfnApplicationInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnApplicationInstance.ManifestPayloadProperty, - ) : CdkObject(cdkObject), ManifestPayloadProperty { + ) : CdkObject(cdkObject), + ManifestPayloadProperty { /** * The application manifest. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstanceProps.kt index 3baddb0ba3..332af95937 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnApplicationInstanceProps.kt @@ -288,7 +288,8 @@ public interface CfnApplicationInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnApplicationInstanceProps, - ) : CdkObject(cdkObject), CfnApplicationInstanceProps { + ) : CdkObject(cdkObject), + CfnApplicationInstanceProps { /** * The ID of an application instance to replace with the new instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackage.kt index de737bc13d..a164c8ef04 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackage.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPackage( cdkObject: software.amazon.awscdk.services.panorama.CfnPackage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -84,30 +86,30 @@ public open class CfnPackage( public open fun attrPackageId(): String = unwrap(this).getAttrPackageId() /** - * + * The location's binary prefix. */ public open fun attrStorageLocationBinaryPrefixLocation(): String = unwrap(this).getAttrStorageLocationBinaryPrefixLocation() /** - * + * The location's bucket. */ public open fun attrStorageLocationBucket(): String = unwrap(this).getAttrStorageLocationBucket() /** - * + * The location's generated prefix. */ public open fun attrStorageLocationGeneratedPrefixLocation(): String = unwrap(this).getAttrStorageLocationGeneratedPrefixLocation() /** - * + * The location's manifest prefix. */ public open fun attrStorageLocationManifestPrefixLocation(): String = unwrap(this).getAttrStorageLocationManifestPrefixLocation() /** - * + * The location's repo prefix. */ public open fun attrStorageLocationRepoPrefixLocation(): String = unwrap(this).getAttrStorageLocationRepoPrefixLocation() @@ -462,7 +464,8 @@ public open class CfnPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnPackage.StorageLocationProperty, - ) : CdkObject(cdkObject), StorageLocationProperty { + ) : CdkObject(cdkObject), + StorageLocationProperty { /** * The location's binary prefix. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageProps.kt index 0ce9e6724e..67ee261682 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageProps.kt @@ -154,7 +154,8 @@ public interface CfnPackageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnPackageProps, - ) : CdkObject(cdkObject), CfnPackageProps { + ) : CdkObject(cdkObject), + CfnPackageProps { /** * A name for the package. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersion.kt index 9eb4f191ec..5627d6b175 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersion.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPackageVersion( cdkObject: software.amazon.awscdk.services.panorama.CfnPackageVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersionProps.kt index a7ec25b1cb..f6bc07672b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/panorama/CfnPackageVersionProps.kt @@ -178,7 +178,8 @@ public interface CfnPackageVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.panorama.CfnPackageVersionProps, - ) : CdkObject(cdkObject), CfnPackageVersionProps { + ) : CdkObject(cdkObject), + CfnPackageVersionProps { /** * Whether to mark the new version as the latest version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAlias.kt index 4eb616f296..b8125f73a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAlias.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAlias( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAliasProps.kt index 745f98f794..2316efd3dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnAliasProps.kt @@ -95,7 +95,8 @@ public interface CfnAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnAliasProps, - ) : CdkObject(cdkObject), CfnAliasProps { + ) : CdkObject(cdkObject), + CfnAliasProps { /** * A friendly name that you can use to refer to a key. The value must begin with `alias/` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKey.kt index 2f67f64fe1..b4e91b1731 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKey.kt @@ -92,7 +92,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKey( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnKey, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -676,7 +678,8 @@ public open class CfnKey( private class Wrapper( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnKey.KeyAttributesProperty, - ) : CdkObject(cdkObject), KeyAttributesProperty { + ) : CdkObject(cdkObject), + KeyAttributesProperty { /** * The key algorithm to be use during creation of an AWS Payment Cryptography key. * @@ -1100,7 +1103,8 @@ public open class CfnKey( private class Wrapper( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnKey.KeyModesOfUseProperty, - ) : CdkObject(cdkObject), KeyModesOfUseProperty { + ) : CdkObject(cdkObject), + KeyModesOfUseProperty { /** * Specifies whether an AWS Payment Cryptography key can be used to decrypt data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKeyProps.kt index 574c3ed04f..b6827c14c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/paymentcryptography/CfnKeyProps.kt @@ -266,7 +266,8 @@ public interface CfnKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.paymentcryptography.CfnKeyProps, - ) : CdkObject(cdkObject), CfnKeyProps { + ) : CdkObject(cdkObject), + CfnKeyProps { /** * Specifies whether the key is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnector.kt index 904bd67bdf..d95b9a632b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnector.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnector( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnConnector, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -372,7 +374,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnConnector.VpcInformationProperty, - ) : CdkObject(cdkObject), VpcInformationProperty { + ) : CdkObject(cdkObject), + VpcInformationProperty { /** * The security groups used with the connector. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnectorProps.kt index 82d219fa4f..aa7d084162 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnConnectorProps.kt @@ -159,7 +159,8 @@ public interface CfnConnectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnConnectorProps, - ) : CdkObject(cdkObject), CfnConnectorProps { + ) : CdkObject(cdkObject), + CfnConnectorProps { /** * The Amazon Resource Name (ARN) of the certificate authority being used. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistration.kt index b020290a4d..4634a992b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistration.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDirectoryRegistration( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnDirectoryRegistration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistrationProps.kt index 74663e458b..731f123149 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnDirectoryRegistrationProps.kt @@ -85,7 +85,8 @@ public interface CfnDirectoryRegistrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnDirectoryRegistrationProps, - ) : CdkObject(cdkObject), CfnDirectoryRegistrationProps { + ) : CdkObject(cdkObject), + CfnDirectoryRegistrationProps { /** * The identifier of the Active Directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalName.kt index ca408d8535..b474c4662f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalName.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServicePrincipalName( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnServicePrincipalName, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.pcaconnectorad.CfnServicePrincipalName(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalNameProps.kt index 3aa65c63d0..1524ebc3ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnServicePrincipalNameProps.kt @@ -96,7 +96,8 @@ public interface CfnServicePrincipalNameProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnServicePrincipalNameProps, - ) : CdkObject(cdkObject), CfnServicePrincipalNameProps { + ) : CdkObject(cdkObject), + CfnServicePrincipalNameProps { /** * The Amazon Resource Name (ARN) that was returned when you called * [CreateConnector.html](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplate.kt index 871b2e3db0..534d907715 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplate.kt @@ -287,7 +287,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTemplate( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -757,7 +759,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ApplicationPoliciesProperty, - ) : CdkObject(cdkObject), ApplicationPoliciesProperty { + ) : CdkObject(cdkObject), + ApplicationPoliciesProperty { /** * Marks the application policy extension as critical. * @@ -866,7 +869,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ApplicationPolicyProperty, - ) : CdkObject(cdkObject), ApplicationPolicyProperty { + ) : CdkObject(cdkObject), + ApplicationPolicyProperty { /** * The object identifier (OID) of an application policy. * @@ -1105,7 +1109,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.CertificateValidityProperty, - ) : CdkObject(cdkObject), CertificateValidityProperty { + ) : CdkObject(cdkObject), + CertificateValidityProperty { /** * Renewal period is the period of time before certificate expiration when a new certificate * will be requested. @@ -1377,7 +1382,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.EnrollmentFlagsV2Property, - ) : CdkObject(cdkObject), EnrollmentFlagsV2Property { + ) : CdkObject(cdkObject), + EnrollmentFlagsV2Property { /** * Allow renewal using the same key. * @@ -1667,7 +1673,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.EnrollmentFlagsV3Property, - ) : CdkObject(cdkObject), EnrollmentFlagsV3Property { + ) : CdkObject(cdkObject), + EnrollmentFlagsV3Property { /** * Allow renewal using the same key. * @@ -1957,7 +1964,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.EnrollmentFlagsV4Property, - ) : CdkObject(cdkObject), EnrollmentFlagsV4Property { + ) : CdkObject(cdkObject), + EnrollmentFlagsV4Property { /** * Allow renewal using the same key. * @@ -2179,7 +2187,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ExtensionsV2Property, - ) : CdkObject(cdkObject), ExtensionsV2Property { + ) : CdkObject(cdkObject), + ExtensionsV2Property { /** * Application policies specify what the certificate is used for and its purpose. * @@ -2375,7 +2384,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ExtensionsV3Property, - ) : CdkObject(cdkObject), ExtensionsV3Property { + ) : CdkObject(cdkObject), + ExtensionsV3Property { /** * Application policies specify what the certificate is used for and its purpose. * @@ -2571,7 +2581,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ExtensionsV4Property, - ) : CdkObject(cdkObject), ExtensionsV4Property { + ) : CdkObject(cdkObject), + ExtensionsV4Property { /** * Application policies specify what the certificate is used for and its purpose. * @@ -2718,7 +2729,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.GeneralFlagsV2Property, - ) : CdkObject(cdkObject), GeneralFlagsV2Property { + ) : CdkObject(cdkObject), + GeneralFlagsV2Property { /** * Allows certificate issuance using autoenrollment. * @@ -2868,7 +2880,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.GeneralFlagsV3Property, - ) : CdkObject(cdkObject), GeneralFlagsV3Property { + ) : CdkObject(cdkObject), + GeneralFlagsV3Property { /** * Allows certificate issuance using autoenrollment. * @@ -3018,7 +3031,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.GeneralFlagsV4Property, - ) : CdkObject(cdkObject), GeneralFlagsV4Property { + ) : CdkObject(cdkObject), + GeneralFlagsV4Property { /** * Allows certificate issuance using autoenrollment. * @@ -3274,7 +3288,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.KeyUsageFlagsProperty, - ) : CdkObject(cdkObject), KeyUsageFlagsProperty { + ) : CdkObject(cdkObject), + KeyUsageFlagsProperty { /** * DataEncipherment is asserted when the subject public key is used for directly enciphering * raw user data without the use of an intermediate symmetric cipher. @@ -3461,7 +3476,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.KeyUsageProperty, - ) : CdkObject(cdkObject), KeyUsageProperty { + ) : CdkObject(cdkObject), + KeyUsageProperty { /** * Sets the key usage extension to critical. * @@ -3628,7 +3644,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.KeyUsagePropertyFlagsProperty, - ) : CdkObject(cdkObject), KeyUsagePropertyFlagsProperty { + ) : CdkObject(cdkObject), + KeyUsagePropertyFlagsProperty { /** * Allows key for encryption and decryption. * @@ -3795,7 +3812,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.KeyUsagePropertyProperty, - ) : CdkObject(cdkObject), KeyUsagePropertyProperty { + ) : CdkObject(cdkObject), + KeyUsagePropertyProperty { /** * You can specify key usage for encryption, key agreement, and signature. * @@ -3949,7 +3967,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyAttributesV2Property, - ) : CdkObject(cdkObject), PrivateKeyAttributesV2Property { + ) : CdkObject(cdkObject), + PrivateKeyAttributesV2Property { /** * Defines the cryptographic providers used to generate the private key. * @@ -4197,7 +4216,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyAttributesV3Property, - ) : CdkObject(cdkObject), PrivateKeyAttributesV3Property { + ) : CdkObject(cdkObject), + PrivateKeyAttributesV3Property { /** * Defines the algorithm used to generate the private key. * @@ -4461,7 +4481,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyAttributesV4Property, - ) : CdkObject(cdkObject), PrivateKeyAttributesV4Property { + ) : CdkObject(cdkObject), + PrivateKeyAttributesV4Property { /** * Defines the algorithm used to generate the private key. * @@ -4646,7 +4667,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyFlagsV2Property, - ) : CdkObject(cdkObject), PrivateKeyFlagsV2Property { + ) : CdkObject(cdkObject), + PrivateKeyFlagsV2Property { /** * Defines the minimum client compatibility. * @@ -4857,7 +4879,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyFlagsV3Property, - ) : CdkObject(cdkObject), PrivateKeyFlagsV3Property { + ) : CdkObject(cdkObject), + PrivateKeyFlagsV3Property { /** * Defines the minimum client compatibility. * @@ -5156,7 +5179,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyFlagsV4Property, - ) : CdkObject(cdkObject), PrivateKeyFlagsV4Property { + ) : CdkObject(cdkObject), + PrivateKeyFlagsV4Property { /** * Defines the minimum client compatibility. * @@ -5594,7 +5618,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.SubjectNameFlagsV2Property, - ) : CdkObject(cdkObject), SubjectNameFlagsV2Property { + ) : CdkObject(cdkObject), + SubjectNameFlagsV2Property { /** * Include the common name in the subject name. * @@ -6054,7 +6079,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.SubjectNameFlagsV3Property, - ) : CdkObject(cdkObject), SubjectNameFlagsV3Property { + ) : CdkObject(cdkObject), + SubjectNameFlagsV3Property { /** * Include the common name in the subject name. * @@ -6514,7 +6540,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.SubjectNameFlagsV4Property, - ) : CdkObject(cdkObject), SubjectNameFlagsV4Property { + ) : CdkObject(cdkObject), + SubjectNameFlagsV4Property { /** * Include the common name in the subject name. * @@ -7080,7 +7107,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateDefinitionProperty, - ) : CdkObject(cdkObject), TemplateDefinitionProperty { + ) : CdkObject(cdkObject), + TemplateDefinitionProperty { /** * Template configuration to define the information included in certificates. * @@ -7656,7 +7684,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV2Property, - ) : CdkObject(cdkObject), TemplateV2Property { + ) : CdkObject(cdkObject), + TemplateV2Property { /** * Certificate validity describes the validity and renewal periods of a certificate. * @@ -8303,7 +8332,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV3Property, - ) : CdkObject(cdkObject), TemplateV3Property { + ) : CdkObject(cdkObject), + TemplateV3Property { /** * Certificate validity describes the validity and renewal periods of a certificate. * @@ -8977,7 +9007,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.TemplateV4Property, - ) : CdkObject(cdkObject), TemplateV4Property { + ) : CdkObject(cdkObject), + TemplateV4Property { /** * Certificate validity describes the validity and renewal periods of a certificate. * @@ -9158,7 +9189,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.ValidityPeriodProperty, - ) : CdkObject(cdkObject), ValidityPeriodProperty { + ) : CdkObject(cdkObject), + ValidityPeriodProperty { /** * The numeric value for the validity period. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntry.kt index 9c48c0e2ed..75887ba7ab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntry.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTemplateGroupAccessControlEntry( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplateGroupAccessControlEntry, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -413,7 +414,8 @@ public open class CfnTemplateGroupAccessControlEntry( private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplateGroupAccessControlEntry.AccessRightsProperty, - ) : CdkObject(cdkObject), AccessRightsProperty { + ) : CdkObject(cdkObject), + AccessRightsProperty { /** * Allow or deny an Active Directory group from autoenrolling certificates issued against a * template. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntryProps.kt index 67661f2beb..a0ff1250fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateGroupAccessControlEntryProps.kt @@ -184,7 +184,8 @@ public interface CfnTemplateGroupAccessControlEntryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplateGroupAccessControlEntryProps, - ) : CdkObject(cdkObject), CfnTemplateGroupAccessControlEntryProps { + ) : CdkObject(cdkObject), + CfnTemplateGroupAccessControlEntryProps { /** * Permissions to allow or deny an Active Directory group to enroll or autoenroll certificates * issued against a template. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateProps.kt index a8980569a6..e933a994ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorad/CfnTemplateProps.kt @@ -464,7 +464,8 @@ public interface CfnTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pcaconnectorad.CfnTemplateProps, - ) : CdkObject(cdkObject), CfnTemplateProps { + ) : CdkObject(cdkObject), + CfnTemplateProps { /** * The Amazon Resource Name (ARN) that was returned when you called * [CreateConnector](https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallenge.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallenge.kt new file mode 100644 index 0000000000..9bb34e5143 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallenge.kt @@ -0,0 +1,181 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.pcaconnectorscep + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * For general-purpose connectors. + * + * Creates a *challenge password* for the specified connector. The SCEP protocol uses a challenge + * password to authenticate a request before issuing a certificate from a certificate authority (CA). + * Your SCEP clients include the challenge password as part of their certificate request to Connector + * for SCEP. To retrieve the connector Amazon Resource Names (ARNs) for the connectors in your account, + * call + * [ListConnectors](https://docs.aws.amazon.com/C4SCEP_API/pca-connector-scep/latest/APIReference/API_ListConnectors.html) + * . + * + * To create additional challenge passwords for the connector, call `CreateChallenge` again. We + * recommend frequently rotating your challenge passwords. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * CfnChallenge cfnChallenge = CfnChallenge.Builder.create(this, "MyCfnChallenge") + * .connectorArn("connectorArn") + * // the properties below are optional + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html) + */ +public open class CfnChallenge( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnChallengeProps, + ) : + this(software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnChallengeProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnChallengeProps.Builder.() -> Unit, + ) : this(scope, id, CfnChallengeProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the challenge. + */ + public open fun attrChallengeArn(): String = unwrap(this).getAttrChallengeArn() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The Amazon Resource Name (ARN) of the connector. + */ + public open fun connectorArn(): String = unwrap(this).getConnectorArn() + + /** + * The Amazon Resource Name (ARN) of the connector. + */ + public open fun connectorArn(`value`: String) { + unwrap(this).setConnectorArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.pcaconnectorscep.CfnChallenge]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Resource Name (ARN) of the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-connectorarn) + * @param connectorArn The Amazon Resource Name (ARN) of the connector. + */ + public fun connectorArn(connectorArn: String) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-tags) + * @param tags + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge.Builder = + software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge.Builder.create(scope, id) + + /** + * The Amazon Resource Name (ARN) of the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-connectorarn) + * @param connectorArn The Amazon Resource Name (ARN) of the connector. + */ + override fun connectorArn(connectorArn: String) { + cdkBuilder.connectorArn(connectorArn) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-tags) + * @param tags + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnChallenge { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnChallenge(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge): + CfnChallenge = CfnChallenge(cdkObject) + + internal fun unwrap(wrapped: CfnChallenge): + software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge = wrapped.cdkObject as + software.amazon.awscdk.services.pcaconnectorscep.CfnChallenge + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallengeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallengeProps.kt new file mode 100644 index 0000000000..391ca85b24 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnChallengeProps.kt @@ -0,0 +1,115 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.pcaconnectorscep + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnChallenge`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * CfnChallengeProps cfnChallengeProps = CfnChallengeProps.builder() + * .connectorArn("connectorArn") + * // the properties below are optional + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html) + */ +public interface CfnChallengeProps { + /** + * The Amazon Resource Name (ARN) of the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-connectorarn) + */ + public fun connectorArn(): String + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnChallengeProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param connectorArn The Amazon Resource Name (ARN) of the connector. + */ + public fun connectorArn(connectorArn: String) + + /** + * @param tags the value to be set. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps.Builder = + software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps.builder() + + /** + * @param connectorArn The Amazon Resource Name (ARN) of the connector. + */ + override fun connectorArn(connectorArn: String) { + cdkBuilder.connectorArn(connectorArn) + } + + /** + * @param tags the value to be set. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps, + ) : CdkObject(cdkObject), + CfnChallengeProps { + /** + * The Amazon Resource Name (ARN) of the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-connectorarn) + */ + override fun connectorArn(): String = unwrap(this).getConnectorArn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-challenge.html#cfn-pcaconnectorscep-challenge-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnChallengeProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps): + CfnChallengeProps = CdkObjectWrappers.wrap(cdkObject) as? CfnChallengeProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnChallengeProps): + software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.pcaconnectorscep.CfnChallengeProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnector.kt new file mode 100644 index 0000000000..d297fc0b23 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnector.kt @@ -0,0 +1,754 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.pcaconnectorscep + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Connector for SCEP is a service that links AWS Private Certificate Authority to your SCEP-enabled + * devices. + * + * The connector brokers the exchange of certificates from AWS Private CA to your SCEP-enabled + * devices and mobile device management systems. The connector is a complex type that contains the + * connector's configuration settings. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * CfnConnector cfnConnector = CfnConnector.Builder.create(this, "MyCfnConnector") + * .certificateAuthorityArn("certificateAuthorityArn") + * // the properties below are optional + * .mobileDeviceManagement(MobileDeviceManagementProperty.builder() + * .intune(IntuneConfigurationProperty.builder() + * .azureApplicationId("azureApplicationId") + * .domain("domain") + * .build()) + * .build()) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html) + */ +public open class CfnConnector( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConnectorProps, + ) : + this(software.amazon.awscdk.services.pcaconnectorscep.CfnConnector(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnConnectorProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConnectorProps.Builder.() -> Unit, + ) : this(scope, id, CfnConnectorProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the connector. + */ + public open fun attrConnectorArn(): String = unwrap(this).getAttrConnectorArn() + + /** + * The connector's HTTPS public SCEP URL. + */ + public open fun attrEndpoint(): String = unwrap(this).getAttrEndpoint() + + /** + * + */ + public open fun attrOpenIdConfiguration(): IResolvable = + unwrap(this).getAttrOpenIdConfiguration().let(IResolvable::wrap) + + /** + * The connector type. + */ + public open fun attrType(): String = unwrap(this).getAttrType() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + */ + public open fun certificateAuthorityArn(): String = unwrap(this).getCertificateAuthorityArn() + + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + */ + public open fun certificateAuthorityArn(`value`: String) { + unwrap(this).setCertificateAuthorityArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + */ + public open fun mobileDeviceManagement(): Any? = unwrap(this).getMobileDeviceManagement() + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + */ + public open fun mobileDeviceManagement(`value`: IResolvable) { + unwrap(this).setMobileDeviceManagement(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + */ + public open fun mobileDeviceManagement(`value`: MobileDeviceManagementProperty) { + unwrap(this).setMobileDeviceManagement(`value`.let(MobileDeviceManagementProperty.Companion::unwrap)) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3ba085a2d9907a7f9f063c5c54b27ff11e8c46d4343ed776f3721825a9224f88") + public open + fun mobileDeviceManagement(`value`: MobileDeviceManagementProperty.Builder.() -> Unit): Unit = + mobileDeviceManagement(MobileDeviceManagementProperty(`value`)) + + /** + * + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.pcaconnectorscep.CfnConnector]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-certificateauthorityarn) + * @param certificateAuthorityArn The Amazon Resource Name (ARN) of the certificate authority + * associated with the connector. + */ + public fun certificateAuthorityArn(certificateAuthorityArn: String) + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + public fun mobileDeviceManagement(mobileDeviceManagement: IResolvable) + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + public fun mobileDeviceManagement(mobileDeviceManagement: MobileDeviceManagementProperty) + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("464a07dd5cc699f261661f3ecdb7ae910ed63f059a5da9e10062a43f349cfd5b") + public + fun mobileDeviceManagement(mobileDeviceManagement: MobileDeviceManagementProperty.Builder.() -> Unit) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-tags) + * @param tags + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.Builder = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.Builder.create(scope, id) + + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-certificateauthorityarn) + * @param certificateAuthorityArn The Amazon Resource Name (ARN) of the certificate authority + * associated with the connector. + */ + override fun certificateAuthorityArn(certificateAuthorityArn: String) { + cdkBuilder.certificateAuthorityArn(certificateAuthorityArn) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + override fun mobileDeviceManagement(mobileDeviceManagement: IResolvable) { + cdkBuilder.mobileDeviceManagement(mobileDeviceManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + override fun mobileDeviceManagement(mobileDeviceManagement: MobileDeviceManagementProperty) { + cdkBuilder.mobileDeviceManagement(mobileDeviceManagement.let(MobileDeviceManagementProperty.Companion::unwrap)) + } + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("464a07dd5cc699f261661f3ecdb7ae910ed63f059a5da9e10062a43f349cfd5b") + override + fun mobileDeviceManagement(mobileDeviceManagement: MobileDeviceManagementProperty.Builder.() -> Unit): + Unit = mobileDeviceManagement(MobileDeviceManagementProperty(mobileDeviceManagement)) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-tags) + * @param tags + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.pcaconnectorscep.CfnConnector = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnConnector { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnConnector(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector): + CfnConnector = CfnConnector(cdkObject) + + internal fun unwrap(wrapped: CfnConnector): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector = wrapped.cdkObject as + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector + } + + /** + * Contains configuration details for use with Microsoft Intune. + * + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector for + * SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + * + * When you use Connector for SCEP for Microsoft Intune, certain functionalities are enabled by + * accessing Microsoft Intune through the Microsoft API. Your use of the Connector for SCEP and + * accompanying AWS services doesn't remove your need to have a valid license for your use of the + * Microsoft Intune service. You should also review the [Microsoft Intune® App Protection + * Policies](https://docs.aws.amazon.com/https://learn.microsoft.com/en-us/mem/intune/apps/app-protection-policy) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * IntuneConfigurationProperty intuneConfigurationProperty = IntuneConfigurationProperty.builder() + * .azureApplicationId("azureApplicationId") + * .domain("domain") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-intuneconfiguration.html) + */ + public interface IntuneConfigurationProperty { + /** + * The directory (tenant) ID from your Microsoft Entra ID app registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-intuneconfiguration.html#cfn-pcaconnectorscep-connector-intuneconfiguration-azureapplicationid) + */ + public fun azureApplicationId(): String + + /** + * The primary domain from your Microsoft Entra ID app registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-intuneconfiguration.html#cfn-pcaconnectorscep-connector-intuneconfiguration-domain) + */ + public fun domain(): String + + /** + * A builder for [IntuneConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param azureApplicationId The directory (tenant) ID from your Microsoft Entra ID app + * registration. + */ + public fun azureApplicationId(azureApplicationId: String) + + /** + * @param domain The primary domain from your Microsoft Entra ID app registration. + */ + public fun domain(domain: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty.Builder + = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty.builder() + + /** + * @param azureApplicationId The directory (tenant) ID from your Microsoft Entra ID app + * registration. + */ + override fun azureApplicationId(azureApplicationId: String) { + cdkBuilder.azureApplicationId(azureApplicationId) + } + + /** + * @param domain The primary domain from your Microsoft Entra ID app registration. + */ + override fun domain(domain: String) { + cdkBuilder.domain(domain) + } + + public fun build(): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty, + ) : CdkObject(cdkObject), + IntuneConfigurationProperty { + /** + * The directory (tenant) ID from your Microsoft Entra ID app registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-intuneconfiguration.html#cfn-pcaconnectorscep-connector-intuneconfiguration-azureapplicationid) + */ + override fun azureApplicationId(): String = unwrap(this).getAzureApplicationId() + + /** + * The primary domain from your Microsoft Entra ID app registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-intuneconfiguration.html#cfn-pcaconnectorscep-connector-intuneconfiguration-domain) + */ + override fun domain(): String = unwrap(this).getDomain() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IntuneConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty): + IntuneConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + IntuneConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IntuneConfigurationProperty): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.IntuneConfigurationProperty + } + } + + /** + * If you don't supply a value, by default Connector for SCEP creates a connector for + * general-purpose use. + * + * A general-purpose connector is designed to work with clients or endpoints that support the SCEP + * protocol, except Connector for SCEP for Microsoft Intune. For information about considerations and + * limitations with using Connector for SCEP, see [Considerations and + * Limitations](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlc4scep-considerations-limitations.html) + * . + * + * If you provide an `IntuneConfiguration` , Connector for SCEP creates a connector for use with + * Microsoft Intune, and you manage the challenge passwords using Microsoft Intune. For more + * information, see [Using Connector for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * MobileDeviceManagementProperty mobileDeviceManagementProperty = + * MobileDeviceManagementProperty.builder() + * .intune(IntuneConfigurationProperty.builder() + * .azureApplicationId("azureApplicationId") + * .domain("domain") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-mobiledevicemanagement.html) + */ + public interface MobileDeviceManagementProperty { + /** + * Configuration settings for use with Microsoft Intune. + * + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector for + * SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-mobiledevicemanagement.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement-intune) + */ + public fun intune(): Any + + /** + * A builder for [MobileDeviceManagementProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + public fun intune(intune: IResolvable) + + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + public fun intune(intune: IntuneConfigurationProperty) + + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("923cab7a0f6e4d35d28d0ddb4bcfe56b0aac201455ec2ab14435dc6a14c20c9e") + public fun intune(intune: IntuneConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty.Builder + = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty.builder() + + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + override fun intune(intune: IResolvable) { + cdkBuilder.intune(intune.let(IResolvable.Companion::unwrap)) + } + + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + override fun intune(intune: IntuneConfigurationProperty) { + cdkBuilder.intune(intune.let(IntuneConfigurationProperty.Companion::unwrap)) + } + + /** + * @param intune Configuration settings for use with Microsoft Intune. + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("923cab7a0f6e4d35d28d0ddb4bcfe56b0aac201455ec2ab14435dc6a14c20c9e") + override fun intune(intune: IntuneConfigurationProperty.Builder.() -> Unit): Unit = + intune(IntuneConfigurationProperty(intune)) + + public fun build(): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty, + ) : CdkObject(cdkObject), + MobileDeviceManagementProperty { + /** + * Configuration settings for use with Microsoft Intune. + * + * For information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-mobiledevicemanagement.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement-intune) + */ + override fun intune(): Any = unwrap(this).getIntune() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MobileDeviceManagementProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty): + MobileDeviceManagementProperty = CdkObjectWrappers.wrap(cdkObject) as? + MobileDeviceManagementProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MobileDeviceManagementProperty): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.MobileDeviceManagementProperty + } + } + + /** + * Contains OpenID Connect (OIDC) parameters for use with Microsoft Intune. + * + * For more information about using Connector for SCEP for Microsoft Intune, see [Using Connector + * for SCEP for Microsoft + * Intune](https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-intune.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * OpenIdConfigurationProperty openIdConfigurationProperty = OpenIdConfigurationProperty.builder() + * .audience("audience") + * .issuer("issuer") + * .subject("subject") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html) + */ + public interface OpenIdConfigurationProperty { + /** + * The audience value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-audience) + */ + public fun audience(): String? = unwrap(this).getAudience() + + /** + * The issuer value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-issuer) + */ + public fun issuer(): String? = unwrap(this).getIssuer() + + /** + * The subject value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-subject) + */ + public fun subject(): String? = unwrap(this).getSubject() + + /** + * A builder for [OpenIdConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param audience The audience value to copy into your Microsoft Entra app registration's + * OIDC. + */ + public fun audience(audience: String) + + /** + * @param issuer The issuer value to copy into your Microsoft Entra app registration's OIDC. + */ + public fun issuer(issuer: String) + + /** + * @param subject The subject value to copy into your Microsoft Entra app registration's OIDC. + */ + public fun subject(subject: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty.Builder + = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty.builder() + + /** + * @param audience The audience value to copy into your Microsoft Entra app registration's + * OIDC. + */ + override fun audience(audience: String) { + cdkBuilder.audience(audience) + } + + /** + * @param issuer The issuer value to copy into your Microsoft Entra app registration's OIDC. + */ + override fun issuer(issuer: String) { + cdkBuilder.issuer(issuer) + } + + /** + * @param subject The subject value to copy into your Microsoft Entra app registration's OIDC. + */ + override fun subject(subject: String) { + cdkBuilder.subject(subject) + } + + public fun build(): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIdConfigurationProperty { + /** + * The audience value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-audience) + */ + override fun audience(): String? = unwrap(this).getAudience() + + /** + * The issuer value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-issuer) + */ + override fun issuer(): String? = unwrap(this).getIssuer() + + /** + * The subject value to copy into your Microsoft Entra app registration's OIDC. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorscep-connector-openidconfiguration.html#cfn-pcaconnectorscep-connector-openidconfiguration-subject) + */ + override fun subject(): String? = unwrap(this).getSubject() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): OpenIdConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty): + OpenIdConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConfigurationProperty): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.pcaconnectorscep.CfnConnector.OpenIdConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnectorProps.kt new file mode 100644 index 0000000000..7d33b8597b --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pcaconnectorscep/CfnConnectorProps.kt @@ -0,0 +1,210 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.pcaconnectorscep + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnConnector`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pcaconnectorscep.*; + * CfnConnectorProps cfnConnectorProps = CfnConnectorProps.builder() + * .certificateAuthorityArn("certificateAuthorityArn") + * // the properties below are optional + * .mobileDeviceManagement(MobileDeviceManagementProperty.builder() + * .intune(IntuneConfigurationProperty.builder() + * .azureApplicationId("azureApplicationId") + * .domain("domain") + * .build()) + * .build()) + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html) + */ +public interface CfnConnectorProps { + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-certificateauthorityarn) + */ + public fun certificateAuthorityArn(): String + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + */ + public fun mobileDeviceManagement(): Any? = unwrap(this).getMobileDeviceManagement() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnConnectorProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param certificateAuthorityArn The Amazon Resource Name (ARN) of the certificate authority + * associated with the connector. + */ + public fun certificateAuthorityArn(certificateAuthorityArn: String) + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + public fun mobileDeviceManagement(mobileDeviceManagement: IResolvable) + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + public + fun mobileDeviceManagement(mobileDeviceManagement: CfnConnector.MobileDeviceManagementProperty) + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("27815e859525a39fd67e9d7650fa2c4efac74fefda823ba2e9c30a15d355bdb5") + public + fun mobileDeviceManagement(mobileDeviceManagement: CfnConnector.MobileDeviceManagementProperty.Builder.() -> Unit) + + /** + * @param tags the value to be set. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps.Builder = + software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps.builder() + + /** + * @param certificateAuthorityArn The Amazon Resource Name (ARN) of the certificate authority + * associated with the connector. + */ + override fun certificateAuthorityArn(certificateAuthorityArn: String) { + cdkBuilder.certificateAuthorityArn(certificateAuthorityArn) + } + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + override fun mobileDeviceManagement(mobileDeviceManagement: IResolvable) { + cdkBuilder.mobileDeviceManagement(mobileDeviceManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + override + fun mobileDeviceManagement(mobileDeviceManagement: CfnConnector.MobileDeviceManagementProperty) { + cdkBuilder.mobileDeviceManagement(mobileDeviceManagement.let(CfnConnector.MobileDeviceManagementProperty.Companion::unwrap)) + } + + /** + * @param mobileDeviceManagement Contains settings relevant to the mobile device management + * system that you chose for the connector. + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("27815e859525a39fd67e9d7650fa2c4efac74fefda823ba2e9c30a15d355bdb5") + override + fun mobileDeviceManagement(mobileDeviceManagement: CfnConnector.MobileDeviceManagementProperty.Builder.() -> Unit): + Unit = + mobileDeviceManagement(CfnConnector.MobileDeviceManagementProperty(mobileDeviceManagement)) + + /** + * @param tags the value to be set. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps, + ) : CdkObject(cdkObject), + CfnConnectorProps { + /** + * The Amazon Resource Name (ARN) of the certificate authority associated with the connector. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-certificateauthorityarn) + */ + override fun certificateAuthorityArn(): String = unwrap(this).getCertificateAuthorityArn() + + /** + * Contains settings relevant to the mobile device management system that you chose for the + * connector. + * + * If you didn't configure `MobileDeviceManagement` , then the connector is for general-purpose + * use and this object is empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-mobiledevicemanagement) + */ + override fun mobileDeviceManagement(): Any? = unwrap(this).getMobileDeviceManagement() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcaconnectorscep-connector.html#cfn-pcaconnectorscep-connector-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnConnectorProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps): + CfnConnectorProps = CdkObjectWrappers.wrap(cdkObject) as? CfnConnectorProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnConnectorProps): + software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.pcaconnectorscep.CfnConnectorProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDataset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDataset.kt index 018983c0a2..2e67f899d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDataset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDataset.kt @@ -77,7 +77,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataset( cdkObject: software.amazon.awscdk.services.personalize.CfnDataset, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -399,7 +400,8 @@ public open class CfnDataset( } /** - * Describes the data source that contains the data to upload to a dataset. + * Describes the data source that contains the data to upload to a dataset, or the list of records + * to delete from Amazon Personalize. * * Example: * @@ -416,11 +418,21 @@ public open class CfnDataset( */ public interface DataSourceProperty { /** - * The path to the Amazon S3 bucket where the data that you want to upload to your dataset is - * stored. + * For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to + * upload to your dataset is stored. + * + * For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to + * delete. * * For example: * + * `s3://bucket-name/folder-name/fileName.csv` + * + * If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or + * data deletion job to consider multiple files, you can specify the path to the folder. With a + * data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the + * following syntax with a `/` after the folder name: + * * `s3://bucket-name/folder-name/` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-dataset-datasource.html#cfn-personalize-dataset-datasource-datalocation) @@ -433,10 +445,20 @@ public open class CfnDataset( @CdkDslMarker public interface Builder { /** - * @param dataLocation The path to the Amazon S3 bucket where the data that you want to upload - * to your dataset is stored. + * @param dataLocation For dataset import jobs, the path to the Amazon S3 bucket where the + * data that you want to upload to your dataset is stored. + * For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to + * delete. + * * For example: * + * `s3://bucket-name/folder-name/fileName.csv` + * + * If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or + * data deletion job to consider multiple files, you can specify the path to the folder. With a + * data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the + * following syntax with a `/` after the folder name: + * * `s3://bucket-name/folder-name/` */ public fun dataLocation(dataLocation: String) @@ -448,10 +470,20 @@ public open class CfnDataset( software.amazon.awscdk.services.personalize.CfnDataset.DataSourceProperty.builder() /** - * @param dataLocation The path to the Amazon S3 bucket where the data that you want to upload - * to your dataset is stored. + * @param dataLocation For dataset import jobs, the path to the Amazon S3 bucket where the + * data that you want to upload to your dataset is stored. + * For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to + * delete. + * * For example: * + * `s3://bucket-name/folder-name/fileName.csv` + * + * If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or + * data deletion job to consider multiple files, you can specify the path to the folder. With a + * data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the + * following syntax with a `/` after the folder name: + * * `s3://bucket-name/folder-name/` */ override fun dataLocation(dataLocation: String) { @@ -464,13 +496,24 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnDataset.DataSourceProperty, - ) : CdkObject(cdkObject), DataSourceProperty { + ) : CdkObject(cdkObject), + DataSourceProperty { /** - * The path to the Amazon S3 bucket where the data that you want to upload to your dataset is - * stored. + * For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to + * upload to your dataset is stored. + * + * For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to + * delete. * * For example: * + * `s3://bucket-name/folder-name/fileName.csv` + * + * If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or + * data deletion job to consider multiple files, you can specify the path to the folder. With a + * data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the + * following syntax with a `/` after the folder name: + * * `s3://bucket-name/folder-name/` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-dataset-datasource.html#cfn-personalize-dataset-datasource-datalocation) @@ -643,7 +686,8 @@ public open class CfnDataset( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnDataset.DatasetImportJobProperty, - ) : CdkObject(cdkObject), DatasetImportJobProperty { + ) : CdkObject(cdkObject), + DatasetImportJobProperty { /** * The Amazon S3 bucket that contains the training data to import. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroup.kt index 37be041904..f9d731b694 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroup.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatasetGroup( cdkObject: software.amazon.awscdk.services.personalize.CfnDatasetGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroupProps.kt index 3fe383c794..37ca065780 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetGroupProps.kt @@ -131,7 +131,8 @@ public interface CfnDatasetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnDatasetGroupProps, - ) : CdkObject(cdkObject), CfnDatasetGroupProps { + ) : CdkObject(cdkObject), + CfnDatasetGroupProps { /** * The domain of a Domain dataset group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetProps.kt index 7b7edbd35a..67e9e382e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnDatasetProps.kt @@ -222,7 +222,8 @@ public interface CfnDatasetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnDatasetProps, - ) : CdkObject(cdkObject), CfnDatasetProps { + ) : CdkObject(cdkObject), + CfnDatasetProps { /** * The Amazon Resource Name (ARN) of the dataset group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchema.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchema.kt index d69655cc62..a7ec13e55f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchema.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchema.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchema( cdkObject: software.amazon.awscdk.services.personalize.CfnSchema, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchemaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchemaProps.kt index a886cd6a93..96300db9d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchemaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSchemaProps.kt @@ -103,7 +103,8 @@ public interface CfnSchemaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSchemaProps, - ) : CdkObject(cdkObject), CfnSchemaProps { + ) : CdkObject(cdkObject), + CfnSchemaProps { /** * The domain of a schema that you created for a dataset in a Domain dataset group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolution.kt index 1c0a8b3f28..b69ffb5834 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolution.kt @@ -21,12 +21,12 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * After you create a solution, you can’t change its configuration. + * By default, all new solutions use automatic training. * - * By default, all new solutions use automatic training. With automatic training, you incur training - * costs while your solution is active. You can't stop automatic training for a solution. To avoid - * unnecessary costs, make sure to delete the solution when you are finished. For information about - * training costs, see [Amazon Personalize + * With automatic training, you incur training costs while your solution is active. To avoid + * unnecessary costs, when you are finished you can [update the + * solution](https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html) to turn off + * automatic training. For information about training costs, see [Amazon Personalize * pricing](https://docs.aws.amazon.com/https://aws.amazon.com/personalize/pricing/) . * * An object that provides information about a solution. A solution includes the custom recipe, @@ -69,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSolution( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -703,7 +704,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.AlgorithmHyperParameterRangesProperty, - ) : CdkObject(cdkObject), AlgorithmHyperParameterRangesProperty { + ) : CdkObject(cdkObject), + AlgorithmHyperParameterRangesProperty { /** * Provides the name and range of a categorical hyperparameter. * @@ -835,7 +837,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.AutoMLConfigProperty, - ) : CdkObject(cdkObject), AutoMLConfigProperty { + ) : CdkObject(cdkObject), + AutoMLConfigProperty { /** * The metric to optimize. * @@ -955,7 +958,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.CategoricalHyperParameterRangeProperty, - ) : CdkObject(cdkObject), CategoricalHyperParameterRangeProperty { + ) : CdkObject(cdkObject), + CategoricalHyperParameterRangeProperty { /** * The name of the hyperparameter. * @@ -1086,7 +1090,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.ContinuousHyperParameterRangeProperty, - ) : CdkObject(cdkObject), ContinuousHyperParameterRangeProperty { + ) : CdkObject(cdkObject), + ContinuousHyperParameterRangeProperty { /** * The maximum allowable value for the hyperparameter. * @@ -1347,7 +1352,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.HpoConfigProperty, - ) : CdkObject(cdkObject), HpoConfigProperty { + ) : CdkObject(cdkObject), + HpoConfigProperty { /** * The hyperparameters and their allowable ranges. * @@ -1495,7 +1501,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.HpoObjectiveProperty, - ) : CdkObject(cdkObject), HpoObjectiveProperty { + ) : CdkObject(cdkObject), + HpoObjectiveProperty { /** * The name of the metric. * @@ -1625,7 +1632,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.HpoResourceConfigProperty, - ) : CdkObject(cdkObject), HpoResourceConfigProperty { + ) : CdkObject(cdkObject), + HpoResourceConfigProperty { /** * The maximum number of training jobs when you create a solution version. * @@ -1759,7 +1767,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.IntegerHyperParameterRangeProperty, - ) : CdkObject(cdkObject), IntegerHyperParameterRangeProperty { + ) : CdkObject(cdkObject), + IntegerHyperParameterRangeProperty { /** * The maximum allowable value for the hyperparameter. * @@ -1974,7 +1983,8 @@ public open class CfnSolution( private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolution.SolutionConfigProperty, - ) : CdkObject(cdkObject), SolutionConfigProperty { + ) : CdkObject(cdkObject), + SolutionConfigProperty { /** * Lists the algorithm hyperparameters and their values. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolutionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolutionProps.kt index a2bfbaf774..6a6086d72f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolutionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/personalize/CfnSolutionProps.kt @@ -304,7 +304,8 @@ public interface CfnSolutionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.personalize.CfnSolutionProps, - ) : CdkObject(cdkObject), CfnSolutionProps { + ) : CdkObject(cdkObject), + CfnSolutionProps { /** * The Amazon Resource Name (ARN) of the dataset group that provides the training data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannel.kt index 0904644036..8a91ee985d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannel.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnADMChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnADMChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannelProps.kt index 316df23776..b913114365 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnADMChannelProps.kt @@ -140,7 +140,8 @@ public interface CfnADMChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnADMChannelProps, - ) : CdkObject(cdkObject), CfnADMChannelProps { + ) : CdkObject(cdkObject), + CfnADMChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the ADM channel applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannel.kt index e0e867d0e1..444af9a2ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannel.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAPNSChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannelProps.kt index 10f6f75778..d80581479a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSChannelProps.kt @@ -267,7 +267,8 @@ public interface CfnAPNSChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSChannelProps, - ) : CdkObject(cdkObject), CfnAPNSChannelProps { + ) : CdkObject(cdkObject), + CfnAPNSChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the APNs channel applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannel.kt index 0cc6229570..1e973413aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannel.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAPNSSandboxChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSSandboxChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannelProps.kt index 5f66788d6d..b2b703e443 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSSandboxChannelProps.kt @@ -273,7 +273,8 @@ public interface CfnAPNSSandboxChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSSandboxChannelProps, - ) : CdkObject(cdkObject), CfnAPNSSandboxChannelProps { + ) : CdkObject(cdkObject), + CfnAPNSSandboxChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the APNs sandbox channel * applies to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannel.kt index 0d56b08f79..a94e37df1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannel.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAPNSVoipChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSVoipChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannelProps.kt index fce9567a5d..0f2d606d04 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipChannelProps.kt @@ -272,7 +272,8 @@ public interface CfnAPNSVoipChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSVoipChannelProps, - ) : CdkObject(cdkObject), CfnAPNSVoipChannelProps { + ) : CdkObject(cdkObject), + CfnAPNSVoipChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the APNs VoIP channel applies * to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannel.kt index 95e23a5749..b87e646ad0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannel.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAPNSVoipSandboxChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSVoipSandboxChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannelProps.kt index 85c8d341f0..7231f66648 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAPNSVoipSandboxChannelProps.kt @@ -276,7 +276,8 @@ public interface CfnAPNSVoipSandboxChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAPNSVoipSandboxChannelProps, - ) : CdkObject(cdkObject), CfnAPNSVoipSandboxChannelProps { + ) : CdkObject(cdkObject), + CfnAPNSVoipSandboxChannelProps { /** * The unique identifier for the application that the APNs VoIP sandbox channel applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApp.kt index 3e79b3eefa..a58422a497 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApp.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApp( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApp, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAppProps.kt index 247cc48ae3..9a012f734e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnAppProps.kt @@ -92,7 +92,8 @@ public interface CfnAppProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnAppProps, - ) : CdkObject(cdkObject), CfnAppProps { + ) : CdkObject(cdkObject), + CfnAppProps { /** * The display name of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettings.kt index a39987a42c..9150361dd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettings.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplicationSettings( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApplicationSettings, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -729,7 +730,8 @@ public open class CfnApplicationSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApplicationSettings.CampaignHookProperty, - ) : CdkObject(cdkObject), CampaignHookProperty { + ) : CdkObject(cdkObject), + CampaignHookProperty { /** * The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes * to send messages for campaigns in the application. @@ -918,7 +920,8 @@ public open class CfnApplicationSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApplicationSettings.LimitsProperty, - ) : CdkObject(cdkObject), LimitsProperty { + ) : CdkObject(cdkObject), + LimitsProperty { /** * The maximum number of messages that a campaign can send to a single endpoint during a * 24-hour period. @@ -1073,7 +1076,8 @@ public open class CfnApplicationSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApplicationSettings.QuietTimeProperty, - ) : CdkObject(cdkObject), QuietTimeProperty { + ) : CdkObject(cdkObject), + QuietTimeProperty { /** * The specific time when quiet time ends. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettingsProps.kt index 78a993628b..a48fd33803 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnApplicationSettingsProps.kt @@ -401,7 +401,8 @@ public interface CfnApplicationSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnApplicationSettingsProps, - ) : CdkObject(cdkObject), CfnApplicationSettingsProps { + ) : CdkObject(cdkObject), + CfnApplicationSettingsProps { /** * The unique identifier for the Amazon Pinpoint application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannel.kt index 3a822e93f4..b4e8119586 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannel.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBaiduChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnBaiduChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannelProps.kt index 4ea9ac8c35..5088703868 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnBaiduChannelProps.kt @@ -145,7 +145,8 @@ public interface CfnBaiduChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnBaiduChannelProps, - ) : CdkObject(cdkObject), CfnBaiduChannelProps { + ) : CdkObject(cdkObject), + CfnBaiduChannelProps { /** * The API key that you received from the Baidu Cloud Push service to communicate with the * service. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaign.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaign.kt index 3d4e2eb369..e2727499e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaign.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaign.kt @@ -464,7 +464,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCampaign( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1661,7 +1663,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.AttributeDimensionProperty, - ) : CdkObject(cdkObject), AttributeDimensionProperty { + ) : CdkObject(cdkObject), + AttributeDimensionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-attributedimension.html#cfn-pinpoint-campaign-attributedimension-attributetype) */ @@ -1752,7 +1755,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignCustomMessageProperty, - ) : CdkObject(cdkObject), CampaignCustomMessageProperty { + ) : CdkObject(cdkObject), + CampaignCustomMessageProperty { /** * The raw, JSON-formatted string to use as the payload for the message. * @@ -1909,7 +1913,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignEmailMessageProperty, - ) : CdkObject(cdkObject), CampaignEmailMessageProperty { + ) : CdkObject(cdkObject), + CampaignEmailMessageProperty { /** * The body of the email for recipients whose email clients don't render HTML content. * @@ -2078,7 +2083,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignEventFilterProperty, - ) : CdkObject(cdkObject), CampaignEventFilterProperty { + ) : CdkObject(cdkObject), + CampaignEventFilterProperty { /** * The dimension settings of the event filter for the campaign. * @@ -2231,7 +2237,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignHookProperty, - ) : CdkObject(cdkObject), CampaignHookProperty { + ) : CdkObject(cdkObject), + CampaignHookProperty { /** * The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes * to customize a segment for a campaign. @@ -2494,7 +2501,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignInAppMessageProperty, - ) : CdkObject(cdkObject), CampaignInAppMessageProperty { + ) : CdkObject(cdkObject), + CampaignInAppMessageProperty { /** * An array that contains configurtion information about the in-app message for the campaign, * including title and body text, text colors, background colors, image URLs, and button @@ -2740,7 +2748,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignSmsMessageProperty, - ) : CdkObject(cdkObject), CampaignSmsMessageProperty { + ) : CdkObject(cdkObject), + CampaignSmsMessageProperty { /** * The body of the SMS message. * @@ -2934,7 +2943,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.CustomDeliveryConfigurationProperty, - ) : CdkObject(cdkObject), CustomDeliveryConfigurationProperty { + ) : CdkObject(cdkObject), + CustomDeliveryConfigurationProperty { /** * The destination to send the campaign or treatment to. This value can be one of the * following:. @@ -3160,7 +3170,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.DefaultButtonConfigurationProperty, - ) : CdkObject(cdkObject), DefaultButtonConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultButtonConfigurationProperty { /** * The background color of a button, expressed as a hex color code (such as #000000 for * black). @@ -3413,7 +3424,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.EventDimensionsProperty, - ) : CdkObject(cdkObject), EventDimensionsProperty { + ) : CdkObject(cdkObject), + EventDimensionsProperty { /** * One or more custom attributes that your application reports to Amazon Pinpoint. * @@ -3568,7 +3580,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageBodyConfigProperty, - ) : CdkObject(cdkObject), InAppMessageBodyConfigProperty { + ) : CdkObject(cdkObject), + InAppMessageBodyConfigProperty { /** * The text alignment of the main body text of the message. * @@ -3877,7 +3890,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageButtonProperty, - ) : CdkObject(cdkObject), InAppMessageButtonProperty { + ) : CdkObject(cdkObject), + InAppMessageButtonProperty { /** * An object that defines the default behavior for a button in in-app messages sent to * Android. @@ -4269,7 +4283,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageContentProperty, - ) : CdkObject(cdkObject), InAppMessageContentProperty { + ) : CdkObject(cdkObject), + InAppMessageContentProperty { /** * The background color for an in-app message banner, expressed as a hex color code (such as * #000000 for black). @@ -4437,7 +4452,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageHeaderConfigProperty, - ) : CdkObject(cdkObject), InAppMessageHeaderConfigProperty { + ) : CdkObject(cdkObject), + InAppMessageHeaderConfigProperty { /** * The text alignment of the title of the message. * @@ -4641,7 +4657,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.LimitsProperty, - ) : CdkObject(cdkObject), LimitsProperty { + ) : CdkObject(cdkObject), + LimitsProperty { /** * The maximum number of messages that a campaign can send to a single endpoint during a * 24-hour period. @@ -5446,7 +5463,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.MessageConfigurationProperty, - ) : CdkObject(cdkObject), MessageConfigurationProperty { + ) : CdkObject(cdkObject), + MessageConfigurationProperty { /** * The message that the campaign sends through the ADM (Amazon Device Messaging) channel. * @@ -5917,7 +5935,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.MessageProperty, - ) : CdkObject(cdkObject), MessageProperty { + ) : CdkObject(cdkObject), + MessageProperty { /** * The action to occur if a recipient taps the push notification. Valid values are:. * @@ -6115,7 +6134,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-metricdimension.html#cfn-pinpoint-campaign-metricdimension-comparisonoperator) */ @@ -6240,7 +6260,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.OverrideButtonConfigurationProperty, - ) : CdkObject(cdkObject), OverrideButtonConfigurationProperty { + ) : CdkObject(cdkObject), + OverrideButtonConfigurationProperty { /** * The action that occurs when a recipient chooses a button in an in-app message. * @@ -6375,7 +6396,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.QuietTimeProperty, - ) : CdkObject(cdkObject), QuietTimeProperty { + ) : CdkObject(cdkObject), + QuietTimeProperty { /** * The specific time when quiet time ends. * @@ -6793,7 +6815,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * The scheduled time, in ISO 8601 format, when the campaign ended or will end. * @@ -6989,7 +7012,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.SetDimensionProperty, - ) : CdkObject(cdkObject), SetDimensionProperty { + ) : CdkObject(cdkObject), + SetDimensionProperty { /** * The type of segment dimension to use. * @@ -7273,7 +7297,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.TemplateConfigurationProperty, - ) : CdkObject(cdkObject), TemplateConfigurationProperty { + ) : CdkObject(cdkObject), + TemplateConfigurationProperty { /** * The email template to use for the message. * @@ -7430,7 +7455,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.TemplateProperty, - ) : CdkObject(cdkObject), TemplateProperty { + ) : CdkObject(cdkObject), + TemplateProperty { /** * The name of the message template to use for the message. * @@ -7988,7 +8014,8 @@ public open class CfnCampaign( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaign.WriteTreatmentResourceProperty, - ) : CdkObject(cdkObject), WriteTreatmentResourceProperty { + ) : CdkObject(cdkObject), + WriteTreatmentResourceProperty { /** * The delivery configuration settings for sending the treatment through a custom channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaignProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaignProps.kt index b5cfc7e0eb..51a9534467 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaignProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnCampaignProps.kt @@ -1099,7 +1099,8 @@ public interface CfnCampaignProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnCampaignProps, - ) : CdkObject(cdkObject), CfnCampaignProps { + ) : CdkObject(cdkObject), + CfnCampaignProps { /** * An array of requests that defines additional treatments for the campaign, in addition to the * default treatment for the campaign. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannel.kt index 8c9f8144ba..4b86eaa308 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannel.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEmailChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEmailChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannelProps.kt index 2409ea8eea..e12c6b2fa1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailChannelProps.kt @@ -217,7 +217,8 @@ public interface CfnEmailChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEmailChannelProps, - ) : CdkObject(cdkObject), CfnEmailChannelProps { + ) : CdkObject(cdkObject), + CfnEmailChannelProps { /** * The unique identifier for the Amazon Pinpoint application that you're specifying the email * channel for. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplate.kt index 77556c8522..5ca31bbead 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplate.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEmailTemplate( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEmailTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplateProps.kt index c957c30720..6f49c671d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEmailTemplateProps.kt @@ -231,7 +231,8 @@ public interface CfnEmailTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEmailTemplateProps, - ) : CdkObject(cdkObject), CfnEmailTemplateProps { + ) : CdkObject(cdkObject), + CfnEmailTemplateProps { /** * A JSON object that specifies the default values to use for message variables in the message * template. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStream.kt index 7a0c4fa15e..988877be31 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStream.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventStream( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEventStream, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStreamProps.kt index 6c5981d024..5c9a38f19d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnEventStreamProps.kt @@ -124,7 +124,8 @@ public interface CfnEventStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnEventStreamProps, - ) : CdkObject(cdkObject), CfnEventStreamProps { + ) : CdkObject(cdkObject), + CfnEventStreamProps { /** * The unique identifier for the Amazon Pinpoint application that you want to export data from. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannel.kt index c8cf6ee3bf..8a2f74d9ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannel.kt @@ -45,7 +45,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGCMChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnGCMChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannelProps.kt index 20b2b86d30..29f39c04b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnGCMChannelProps.kt @@ -179,7 +179,8 @@ public interface CfnGCMChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnGCMChannelProps, - ) : CdkObject(cdkObject), CfnGCMChannelProps { + ) : CdkObject(cdkObject), + CfnGCMChannelProps { /** * The Web API key, also called the *server key* , that you received from Google to communicate * with Google services. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplate.kt index b7e5507522..711c3299af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplate.kt @@ -107,7 +107,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInAppTemplate( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -561,7 +563,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.BodyConfigProperty, - ) : CdkObject(cdkObject), BodyConfigProperty { + ) : CdkObject(cdkObject), + BodyConfigProperty { /** * The text alignment of the main body text of the message. * @@ -900,7 +903,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.ButtonConfigProperty, - ) : CdkObject(cdkObject), ButtonConfigProperty { + ) : CdkObject(cdkObject), + ButtonConfigProperty { /** * Optional button configuration to use for in-app messages sent to Android devices. * @@ -1139,7 +1143,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty, - ) : CdkObject(cdkObject), DefaultButtonConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultButtonConfigurationProperty { /** * The background color of a button, expressed as a hex color code (such as #000000 for * black). @@ -1310,7 +1315,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.HeaderConfigProperty, - ) : CdkObject(cdkObject), HeaderConfigProperty { + ) : CdkObject(cdkObject), + HeaderConfigProperty { /** * The text alignment of the title of the message. * @@ -1698,7 +1704,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.InAppMessageContentProperty, - ) : CdkObject(cdkObject), InAppMessageContentProperty { + ) : CdkObject(cdkObject), + InAppMessageContentProperty { /** * The background color for an in-app message banner, expressed as a hex color code (such as * #000000 for black). @@ -1860,7 +1867,8 @@ public open class CfnInAppTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty, - ) : CdkObject(cdkObject), OverrideButtonConfigurationProperty { + ) : CdkObject(cdkObject), + OverrideButtonConfigurationProperty { /** * The action that occurs when a recipient chooses a button in an in-app message. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplateProps.kt index acb2ed5358..f9e08848b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnInAppTemplateProps.kt @@ -292,7 +292,8 @@ public interface CfnInAppTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnInAppTemplateProps, - ) : CdkObject(cdkObject), CfnInAppTemplateProps { + ) : CdkObject(cdkObject), + CfnInAppTemplateProps { /** * An object that contains information about the content of an in-app message, including its * title and body text, text colors, background colors, images, buttons, and behaviors. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplate.kt index f4ca071825..d4ef7fb759 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplate.kt @@ -90,7 +90,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPushTemplate( cdkObject: software.amazon.awscdk.services.pinpoint.CfnPushTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1052,7 +1054,8 @@ public open class CfnPushTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnPushTemplate.APNSPushNotificationTemplateProperty, - ) : CdkObject(cdkObject), APNSPushNotificationTemplateProperty { + ) : CdkObject(cdkObject), + APNSPushNotificationTemplateProperty { /** * The action to occur if a recipient taps a push notification that's based on the message * template. @@ -1391,7 +1394,8 @@ public open class CfnPushTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnPushTemplate.AndroidPushNotificationTemplateProperty, - ) : CdkObject(cdkObject), AndroidPushNotificationTemplateProperty { + ) : CdkObject(cdkObject), + AndroidPushNotificationTemplateProperty { /** * The action to occur if a recipient taps a push notification that's based on the message * template. @@ -1687,7 +1691,8 @@ public open class CfnPushTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnPushTemplate.DefaultPushNotificationTemplateProperty, - ) : CdkObject(cdkObject), DefaultPushNotificationTemplateProperty { + ) : CdkObject(cdkObject), + DefaultPushNotificationTemplateProperty { /** * The action to occur if a recipient taps a push notification that's based on the message * template. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplateProps.kt index c151710b44..55c8bb6942 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnPushTemplateProps.kt @@ -517,7 +517,8 @@ public interface CfnPushTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnPushTemplateProps, - ) : CdkObject(cdkObject), CfnPushTemplateProps { + ) : CdkObject(cdkObject), + CfnPushTemplateProps { /** * The message template to use for the ADM (Amazon Device Messaging) channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannel.kt index 21b49552be..ba30f26378 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannel.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSMSChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSMSChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannelProps.kt index 6110a5e22a..3106ee226b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSMSChannelProps.kt @@ -177,7 +177,8 @@ public interface CfnSMSChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSMSChannelProps, - ) : CdkObject(cdkObject), CfnSMSChannelProps { + ) : CdkObject(cdkObject), + CfnSMSChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the SMS channel applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegment.kt index f2b033a693..0e87543989 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegment.kt @@ -157,7 +157,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSegment( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -624,7 +626,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.AttributeDimensionProperty, - ) : CdkObject(cdkObject), AttributeDimensionProperty { + ) : CdkObject(cdkObject), + AttributeDimensionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-attributedimension.html#cfn-pinpoint-segment-attributedimension-attributetype) */ @@ -738,7 +741,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.BehaviorProperty, - ) : CdkObject(cdkObject), BehaviorProperty { + ) : CdkObject(cdkObject), + BehaviorProperty { /** * Specifies how recently segment members were active. * @@ -838,7 +842,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.CoordinatesProperty, - ) : CdkObject(cdkObject), CoordinatesProperty { + ) : CdkObject(cdkObject), + CoordinatesProperty { /** * The latitude coordinate of the location. * @@ -1205,7 +1210,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.DemographicProperty, - ) : CdkObject(cdkObject), DemographicProperty { + ) : CdkObject(cdkObject), + DemographicProperty { /** * The app version criteria for the segment. * @@ -1370,7 +1376,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.GPSPointProperty, - ) : CdkObject(cdkObject), GPSPointProperty { + ) : CdkObject(cdkObject), + GPSPointProperty { /** * The GPS coordinates to measure distance from. * @@ -1689,7 +1696,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.GroupsProperty, - ) : CdkObject(cdkObject), GroupsProperty { + ) : CdkObject(cdkObject), + GroupsProperty { /** * An array that defines the dimensions to include or exclude from the segment. * @@ -1886,7 +1894,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * The country or region code, in ISO 3166-1 alpha-2 format, for the segment. * @@ -2012,7 +2021,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.RecencyProperty, - ) : CdkObject(cdkObject), RecencyProperty { + ) : CdkObject(cdkObject), + RecencyProperty { /** * The duration to use when determining which users have been active or inactive with your * app. @@ -2361,7 +2371,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.SegmentDimensionsProperty, - ) : CdkObject(cdkObject), SegmentDimensionsProperty { + ) : CdkObject(cdkObject), + SegmentDimensionsProperty { /** * One or more custom attributes to use as criteria for the segment. * @@ -2597,7 +2608,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.SegmentGroupsProperty, - ) : CdkObject(cdkObject), SegmentGroupsProperty { + ) : CdkObject(cdkObject), + SegmentGroupsProperty { /** * Specifies the set of segment criteria to evaluate when handling segment groups for the * segment. @@ -2736,7 +2748,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.SetDimensionProperty, - ) : CdkObject(cdkObject), SetDimensionProperty { + ) : CdkObject(cdkObject), + SetDimensionProperty { /** * The type of segment dimension to use. * @@ -2858,7 +2871,8 @@ public open class CfnSegment( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegment.SourceSegmentsProperty, - ) : CdkObject(cdkObject), SourceSegmentsProperty { + ) : CdkObject(cdkObject), + SourceSegmentsProperty { /** * The unique identifier for the source segment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegmentProps.kt index fe6195c53c..dfa91bf524 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSegmentProps.kt @@ -354,7 +354,8 @@ public interface CfnSegmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSegmentProps, - ) : CdkObject(cdkObject), CfnSegmentProps { + ) : CdkObject(cdkObject), + CfnSegmentProps { /** * The unique identifier for the Amazon Pinpoint application that the segment is associated * with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplate.kt index 45ef82f597..8119c69e35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplate.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSmsTemplate( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSmsTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplateProps.kt index 0360c5e02c..ccfdf0c717 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnSmsTemplateProps.kt @@ -173,7 +173,8 @@ public interface CfnSmsTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnSmsTemplateProps, - ) : CdkObject(cdkObject), CfnSmsTemplateProps { + ) : CdkObject(cdkObject), + CfnSmsTemplateProps { /** * The message body to use in text messages that are based on the message template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannel.kt index 08676db397..b83509024e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannel.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVoiceChannel( cdkObject: software.amazon.awscdk.services.pinpoint.CfnVoiceChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannelProps.kt index 8a2a475ed2..e645203be5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpoint/CfnVoiceChannelProps.kt @@ -98,7 +98,8 @@ public interface CfnVoiceChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpoint.CfnVoiceChannelProps, - ) : CdkObject(cdkObject), CfnVoiceChannelProps { + ) : CdkObject(cdkObject), + CfnVoiceChannelProps { /** * The unique identifier for the Amazon Pinpoint application that the voice channel applies to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSet.kt index 9b3b7e6972..3354f53771 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSet.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationSet( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSet, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -687,7 +689,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSet.DeliveryOptionsProperty, - ) : CdkObject(cdkObject), DeliveryOptionsProperty { + ) : CdkObject(cdkObject), + DeliveryOptionsProperty { /** * The name of the dedicated IP pool that you want to associate with the configuration set. * @@ -792,7 +795,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSet.ReputationOptionsProperty, - ) : CdkObject(cdkObject), ReputationOptionsProperty { + ) : CdkObject(cdkObject), + ReputationOptionsProperty { /** * If `true` , tracking of reputation metrics is enabled for the configuration set. * @@ -895,7 +899,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSet.SendingOptionsProperty, - ) : CdkObject(cdkObject), SendingOptionsProperty { + ) : CdkObject(cdkObject), + SendingOptionsProperty { /** * If `true` , email sending is enabled for the configuration set. * @@ -988,7 +993,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSet.TrackingOptionsProperty, - ) : CdkObject(cdkObject), TrackingOptionsProperty { + ) : CdkObject(cdkObject), + TrackingOptionsProperty { /** * The domain that you want to use for tracking open and click events. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestination.kt index 4428cb8d69..f7de8520b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestination.kt @@ -69,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationSetEventDestination( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -384,7 +385,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.CloudWatchDestinationProperty, - ) : CdkObject(cdkObject), CloudWatchDestinationProperty { + ) : CdkObject(cdkObject), + CloudWatchDestinationProperty { /** * An array of objects that define the dimensions to use when you send email events to Amazon * CloudWatch. @@ -568,7 +570,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.DimensionConfigurationProperty, - ) : CdkObject(cdkObject), DimensionConfigurationProperty { + ) : CdkObject(cdkObject), + DimensionConfigurationProperty { /** * The default value of the dimension that is published to Amazon CloudWatch if you don't * provide the value of the dimension when you send an email. @@ -1050,7 +1053,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.EventDestinationProperty, - ) : CdkObject(cdkObject), EventDestinationProperty { + ) : CdkObject(cdkObject), + EventDestinationProperty { /** * An object that defines an Amazon CloudWatch destination for email events. * @@ -1216,7 +1220,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.KinesisFirehoseDestinationProperty, - ) : CdkObject(cdkObject), KinesisFirehoseDestinationProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseDestinationProperty { /** * The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that Amazon * Pinpoint sends email events to. @@ -1314,7 +1319,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.PinpointDestinationProperty, - ) : CdkObject(cdkObject), PinpointDestinationProperty { + ) : CdkObject(cdkObject), + PinpointDestinationProperty { /** * The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want to send email * events to. @@ -1409,7 +1415,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestination.SnsDestinationProperty, - ) : CdkObject(cdkObject), SnsDestinationProperty { + ) : CdkObject(cdkObject), + SnsDestinationProperty { /** * The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish email * events to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestinationProps.kt index 1e2d3e9647..a1b2ea7cb0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetEventDestinationProps.kt @@ -163,7 +163,8 @@ public interface CfnConfigurationSetEventDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetEventDestinationProps, - ) : CdkObject(cdkObject), CfnConfigurationSetEventDestinationProps { + ) : CdkObject(cdkObject), + CfnConfigurationSetEventDestinationProps { /** * The name of the configuration set that contains the event destination that you want to * modify. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetProps.kt index 8a603b2152..fc7ab72ae0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnConfigurationSetProps.kt @@ -338,7 +338,8 @@ public interface CfnConfigurationSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnConfigurationSetProps, - ) : CdkObject(cdkObject), CfnConfigurationSetProps { + ) : CdkObject(cdkObject), + CfnConfigurationSetProps { /** * An object that defines the dedicated IP pool that is used to send emails that you send using * the configuration set. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPool.kt index 742d43f137..c878473f15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPool.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDedicatedIpPool( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnDedicatedIpPool, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.pinpointemail.CfnDedicatedIpPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPoolProps.kt index a4e4b1aa6d..aa460652a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnDedicatedIpPoolProps.kt @@ -101,7 +101,8 @@ public interface CfnDedicatedIpPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnDedicatedIpPoolProps, - ) : CdkObject(cdkObject), CfnDedicatedIpPoolProps { + ) : CdkObject(cdkObject), + CfnDedicatedIpPoolProps { /** * The name of the dedicated IP pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentity.kt index 9d7ba346b5..21215366da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentity.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentity( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnIdentity, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -671,7 +673,8 @@ public open class CfnIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnIdentity.MailFromAttributesProperty, - ) : CdkObject(cdkObject), MailFromAttributesProperty { + ) : CdkObject(cdkObject), + MailFromAttributesProperty { /** * The action that Amazon Pinpoint to takes if it can't read the required MX record for a * custom MAIL FROM domain. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentityProps.kt index 1c63d9880c..3b4faf1a80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pinpointemail/CfnIdentityProps.kt @@ -320,7 +320,8 @@ public interface CfnIdentityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pinpointemail.CfnIdentityProps, - ) : CdkObject(cdkObject), CfnIdentityProps { + ) : CdkObject(cdkObject), + CfnIdentityProps { /** * For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail * (DKIM) signing for the domain. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipe.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipe.kt index 3f87827372..a824351948 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipe.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipe.kt @@ -61,6 +61,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .inputTemplate("inputTemplate") * .build()) + * .kmsKeyIdentifier("kmsKeyIdentifier") * .logConfiguration(PipeLogConfigurationProperty.builder() * .cloudwatchLogsLogDestination(CloudwatchLogsLogDestinationProperty.builder() * .logGroupArn("logGroupArn") @@ -316,6 +317,32 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .stepFunctionStateMachineParameters(PipeTargetStateMachineParametersProperty.builder() * .invocationType("invocationType") * .build()) + * .timestreamParameters(PipeTargetTimestreamParametersProperty.builder() + * .dimensionMappings(List.of(DimensionMappingProperty.builder() + * .dimensionName("dimensionName") + * .dimensionValue("dimensionValue") + * .dimensionValueType("dimensionValueType") + * .build())) + * .timeValue("timeValue") + * .versionValue("versionValue") + * // the properties below are optional + * .epochTimeUnit("epochTimeUnit") + * .multiMeasureMappings(List.of(MultiMeasureMappingProperty.builder() + * .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .multiMeasureAttributeName("multiMeasureAttributeName") + * .build())) + * .multiMeasureName("multiMeasureName") + * .build())) + * .singleMeasureMappings(List.of(SingleMeasureMappingProperty.builder() + * .measureName("measureName") + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .build())) + * .timeFieldType("timeFieldType") + * .timestampFormat("timestampFormat") + * .build()) * .build()) * .build(); * ``` @@ -324,7 +351,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipe( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -441,6 +470,20 @@ public open class CfnPipe( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt pipe data. + */ + public open fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt pipe data. + */ + public open fun kmsKeyIdentifier(`value`: String) { + unwrap(this).setKmsKeyIdentifier(`value`) + } + /** * The logging configuration settings for the pipe. */ @@ -643,6 +686,29 @@ public open class CfnPipe( public fun enrichmentParameters(enrichmentParameters: PipeEnrichmentParametersProperty.Builder.() -> Unit) + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt pipe data. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key + * instead, or update a pipe that is using a customer managed key to use a different customer + * managed key, specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pipe.html#cfn-pipes-pipe-kmskeyidentifier) + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt pipe data. + */ + public fun kmsKeyIdentifier(kmsKeyIdentifier: String) + /** * The logging configuration settings for the pipe. * @@ -846,6 +912,31 @@ public open class CfnPipe( fun enrichmentParameters(enrichmentParameters: PipeEnrichmentParametersProperty.Builder.() -> Unit): Unit = enrichmentParameters(PipeEnrichmentParametersProperty(enrichmentParameters)) + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt pipe data. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key + * instead, or update a pipe that is using a customer managed key to use a different customer + * managed key, specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pipe.html#cfn-pipes-pipe-kmskeyidentifier) + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt pipe data. + */ + override fun kmsKeyIdentifier(kmsKeyIdentifier: String) { + cdkBuilder.kmsKeyIdentifier(kmsKeyIdentifier) + } + /** * The logging configuration settings for the pipe. * @@ -1175,7 +1266,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.AwsVpcConfigurationProperty, - ) : CdkObject(cdkObject), AwsVpcConfigurationProperty { + ) : CdkObject(cdkObject), + AwsVpcConfigurationProperty { /** * Specifies whether the task's elastic network interface receives a public IP address. * @@ -1283,7 +1375,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchArrayPropertiesProperty, - ) : CdkObject(cdkObject), BatchArrayPropertiesProperty { + ) : CdkObject(cdkObject), + BatchArrayPropertiesProperty { /** * The size of the array, if this is an array batch job. * @@ -1563,7 +1656,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchContainerOverridesProperty, - ) : CdkObject(cdkObject), BatchContainerOverridesProperty { + ) : CdkObject(cdkObject), + BatchContainerOverridesProperty { /** * The command to send to the container that overrides the default command from the Docker * image or the task definition. @@ -1719,7 +1813,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchEnvironmentVariableProperty, - ) : CdkObject(cdkObject), BatchEnvironmentVariableProperty { + ) : CdkObject(cdkObject), + BatchEnvironmentVariableProperty { /** * The name of the key-value pair. * @@ -1830,7 +1925,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchJobDependencyProperty, - ) : CdkObject(cdkObject), BatchJobDependencyProperty { + ) : CdkObject(cdkObject), + BatchJobDependencyProperty { /** * The job ID of the AWS Batch job that's associated with this dependency. * @@ -2201,7 +2297,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchResourceRequirementProperty, - ) : CdkObject(cdkObject), BatchResourceRequirementProperty { + ) : CdkObject(cdkObject), + BatchResourceRequirementProperty { /** * The type of resource to assign to a container. * @@ -2389,7 +2486,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.BatchRetryStrategyProperty, - ) : CdkObject(cdkObject), BatchRetryStrategyProperty { + ) : CdkObject(cdkObject), + BatchRetryStrategyProperty { /** * The number of times to move a job to the `RUNNABLE` status. * @@ -2545,7 +2643,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.CapacityProviderStrategyItemProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyItemProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyItemProperty { /** * The base value designates how many tasks, at a minimum, to run on the specified capacity * provider. @@ -2662,7 +2761,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.CloudwatchLogsLogDestinationProperty, - ) : CdkObject(cdkObject), CloudwatchLogsLogDestinationProperty { + ) : CdkObject(cdkObject), + CloudwatchLogsLogDestinationProperty { /** * The AWS Resource Name (ARN) for the CloudWatch log group to which EventBridge sends the log * records. @@ -2751,7 +2851,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.DeadLetterConfigProperty, - ) : CdkObject(cdkObject), DeadLetterConfigProperty { + ) : CdkObject(cdkObject), + DeadLetterConfigProperty { /** * The ARN of the specified target for the dead-letter queue. * @@ -2781,6 +2882,154 @@ public open class CfnPipe( } } + /** + * Maps source data to a dimension in the target Timestream for LiveAnalytics table. + * + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pipes.*; + * DimensionMappingProperty dimensionMappingProperty = DimensionMappingProperty.builder() + * .dimensionName("dimensionName") + * .dimensionValue("dimensionValue") + * .dimensionValueType("dimensionValueType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html) + */ + public interface DimensionMappingProperty { + /** + * The metadata attributes of the time series. + * + * For example, the name and Availability Zone of an Amazon EC2 instance or the name of the + * manufacturer of a wind turbine are dimensions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionname) + */ + public fun dimensionName(): String + + /** + * Dynamic path to the dimension value in the source event. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionvalue) + */ + public fun dimensionValue(): String + + /** + * The data type of the dimension for the time-series data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionvaluetype) + */ + public fun dimensionValueType(): String + + /** + * A builder for [DimensionMappingProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dimensionName The metadata attributes of the time series. + * For example, the name and Availability Zone of an Amazon EC2 instance or the name of the + * manufacturer of a wind turbine are dimensions. + */ + public fun dimensionName(dimensionName: String) + + /** + * @param dimensionValue Dynamic path to the dimension value in the source event. + */ + public fun dimensionValue(dimensionValue: String) + + /** + * @param dimensionValueType The data type of the dimension for the time-series data. + */ + public fun dimensionValueType(dimensionValueType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty.Builder = + software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty.builder() + + /** + * @param dimensionName The metadata attributes of the time series. + * For example, the name and Availability Zone of an Amazon EC2 instance or the name of the + * manufacturer of a wind turbine are dimensions. + */ + override fun dimensionName(dimensionName: String) { + cdkBuilder.dimensionName(dimensionName) + } + + /** + * @param dimensionValue Dynamic path to the dimension value in the source event. + */ + override fun dimensionValue(dimensionValue: String) { + cdkBuilder.dimensionValue(dimensionValue) + } + + /** + * @param dimensionValueType The data type of the dimension for the time-series data. + */ + override fun dimensionValueType(dimensionValueType: String) { + cdkBuilder.dimensionValueType(dimensionValueType) + } + + public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty, + ) : CdkObject(cdkObject), + DimensionMappingProperty { + /** + * The metadata attributes of the time series. + * + * For example, the name and Availability Zone of an Amazon EC2 instance or the name of the + * manufacturer of a wind turbine are dimensions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionname) + */ + override fun dimensionName(): String = unwrap(this).getDimensionName() + + /** + * Dynamic path to the dimension value in the source event. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionvalue) + */ + override fun dimensionValue(): String = unwrap(this).getDimensionValue() + + /** + * The data type of the dimension for the time-series data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-dimensionmapping.html#cfn-pipes-pipe-dimensionmapping-dimensionvaluetype) + */ + override fun dimensionValueType(): String = unwrap(this).getDimensionValueType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DimensionMappingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty): + DimensionMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? DimensionMappingProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DimensionMappingProperty): + software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.DimensionMappingProperty + } + } + /** * The overrides that are sent to a container. * @@ -3149,7 +3398,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsContainerOverrideProperty, - ) : CdkObject(cdkObject), EcsContainerOverrideProperty { + ) : CdkObject(cdkObject), + EcsContainerOverrideProperty { /** * The command to send to the container that overrides the default command from the Docker * image or the task definition. @@ -3348,7 +3598,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsEnvironmentFileProperty, - ) : CdkObject(cdkObject), EcsEnvironmentFileProperty { + ) : CdkObject(cdkObject), + EcsEnvironmentFileProperty { /** * The file type to use. * @@ -3472,7 +3723,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsEnvironmentVariableProperty, - ) : CdkObject(cdkObject), EcsEnvironmentVariableProperty { + ) : CdkObject(cdkObject), + EcsEnvironmentVariableProperty { /** * The name of the key-value pair. * @@ -3514,13 +3766,13 @@ public open class CfnPipe( * The amount of ephemeral storage to allocate for the task. * * This parameter is used to expand the total amount of ephemeral storage available, beyond the - * default amount, for tasks hosted on Fargate . For more information, see [Fargate task + * default amount, for tasks hosted on Fargate. For more information, see [Fargate task * storage](https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html) in the * *Amazon ECS User Guide for Fargate* . * * * This parameter is only supported for tasks hosted on Fargate using Linux platform version - * `1.4.0` or later. This parameter is not supported for Windows containers on Fargate . + * `1.4.0` or later. This parameter is not supported for Windows containers on Fargate. * * * Example: @@ -3579,7 +3831,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsEphemeralStorageProperty, - ) : CdkObject(cdkObject), EcsEphemeralStorageProperty { + ) : CdkObject(cdkObject), + EcsEphemeralStorageProperty { /** * The total amount, in GiB, of ephemeral storage to set for the task. * @@ -3695,7 +3948,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsInferenceAcceleratorOverrideProperty, - ) : CdkObject(cdkObject), EcsInferenceAcceleratorOverrideProperty { + ) : CdkObject(cdkObject), + EcsInferenceAcceleratorOverrideProperty { /** * The Elastic Inference accelerator device name to override for the task. * @@ -3840,7 +4094,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsResourceRequirementProperty, - ) : CdkObject(cdkObject), EcsResourceRequirementProperty { + ) : CdkObject(cdkObject), + EcsResourceRequirementProperty { /** * The type of resource to assign to a container. * @@ -4232,7 +4487,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.EcsTaskOverrideProperty, - ) : CdkObject(cdkObject), EcsTaskOverrideProperty { + ) : CdkObject(cdkObject), + EcsTaskOverrideProperty { /** * One or more container overrides that are sent to a task. * @@ -4402,7 +4658,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.FilterCriteriaProperty, - ) : CdkObject(cdkObject), FilterCriteriaProperty { + ) : CdkObject(cdkObject), + FilterCriteriaProperty { /** * The event patterns. * @@ -4485,7 +4742,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * The event pattern. * @@ -4568,7 +4826,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.FirehoseLogDestinationProperty, - ) : CdkObject(cdkObject), FirehoseLogDestinationProperty { + ) : CdkObject(cdkObject), + FirehoseLogDestinationProperty { /** * The Amazon Resource Name (ARN) of the Firehose delivery stream to which EventBridge * delivers the pipe log records. @@ -4651,7 +4910,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MQBrokerAccessCredentialsProperty, - ) : CdkObject(cdkObject), MQBrokerAccessCredentialsProperty { + ) : CdkObject(cdkObject), + MQBrokerAccessCredentialsProperty { /** * The ARN of the Secrets Manager secret. * @@ -4753,7 +5013,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MSKAccessCredentialsProperty, - ) : CdkObject(cdkObject), MSKAccessCredentialsProperty { + ) : CdkObject(cdkObject), + MSKAccessCredentialsProperty { /** * The ARN of the Secrets Manager secret. * @@ -4788,7 +5049,7 @@ public open class CfnPipe( } /** - * This structure specifies the network configuration for an Amazon ECS task. + * A mapping of a source event data field to a measure in a Timestream for LiveAnalytics record. * * Example: * @@ -4796,136 +5057,141 @@ public open class CfnPipe( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.pipes.*; - * NetworkConfigurationProperty networkConfigurationProperty = - * NetworkConfigurationProperty.builder() - * .awsvpcConfiguration(AwsVpcConfigurationProperty.builder() - * .subnets(List.of("subnets")) - * // the properties below are optional - * .assignPublicIp("assignPublicIp") - * .securityGroups(List.of("securityGroups")) - * .build()) + * MultiMeasureAttributeMappingProperty multiMeasureAttributeMappingProperty = + * MultiMeasureAttributeMappingProperty.builder() + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .multiMeasureAttributeName("multiMeasureAttributeName") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html) */ - public interface NetworkConfigurationProperty { + public interface MultiMeasureAttributeMappingProperty { /** - * Use this structure to specify the VPC subnets and security groups for the task, and whether a - * public IP address is to be used. + * Dynamic path to the measurement attribute in the source event. * - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-measurevalue) + */ + public fun measureValue(): String + + /** + * Data type of the measurement attribute in the source event. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html#cfn-pipes-pipe-networkconfiguration-awsvpcconfiguration) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-measurevaluetype) */ - public fun awsvpcConfiguration(): Any? = unwrap(this).getAwsvpcConfiguration() + public fun measureValueType(): String /** - * A builder for [NetworkConfigurationProperty] + * Target measure name to be used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-multimeasureattributename) + */ + public fun multiMeasureAttributeName(): String + + /** + * A builder for [MultiMeasureAttributeMappingProperty] */ @CdkDslMarker public interface Builder { /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param measureValue Dynamic path to the measurement attribute in the source event. */ - public fun awsvpcConfiguration(awsvpcConfiguration: IResolvable) + public fun measureValue(measureValue: String) /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param measureValueType Data type of the measurement attribute in the source event. */ - public fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty) + public fun measureValueType(measureValueType: String) /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param multiMeasureAttributeName Target measure name to be used. */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("015d29762bcaa3c4aa1b0e65a21e6f6ddf4c669c51cab4b6634878489eedb96f") - public - fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty.Builder.() -> Unit) + public fun multiMeasureAttributeName(multiMeasureAttributeName: String) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty.Builder = - software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty.builder() + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty.Builder + = + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty.builder() /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param measureValue Dynamic path to the measurement attribute in the source event. */ - override fun awsvpcConfiguration(awsvpcConfiguration: IResolvable) { - cdkBuilder.awsvpcConfiguration(awsvpcConfiguration.let(IResolvable.Companion::unwrap)) + override fun measureValue(measureValue: String) { + cdkBuilder.measureValue(measureValue) } /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param measureValueType Data type of the measurement attribute in the source event. */ - override fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty) { - cdkBuilder.awsvpcConfiguration(awsvpcConfiguration.let(AwsVpcConfigurationProperty.Companion::unwrap)) + override fun measureValueType(measureValueType: String) { + cdkBuilder.measureValueType(measureValueType) } /** - * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security - * groups for the task, and whether a public IP address is to be used. - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * @param multiMeasureAttributeName Target measure name to be used. */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("015d29762bcaa3c4aa1b0e65a21e6f6ddf4c669c51cab4b6634878489eedb96f") - override - fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty.Builder.() -> Unit): - Unit = awsvpcConfiguration(AwsVpcConfigurationProperty(awsvpcConfiguration)) + override fun multiMeasureAttributeName(multiMeasureAttributeName: String) { + cdkBuilder.multiMeasureAttributeName(multiMeasureAttributeName) + } - public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty - = cdkBuilder.build() + public fun build(): + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty = + cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty, + ) : CdkObject(cdkObject), + MultiMeasureAttributeMappingProperty { /** - * Use this structure to specify the VPC subnets and security groups for the task, and whether - * a public IP address is to be used. + * Dynamic path to the measurement attribute in the source event. * - * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-measurevalue) + */ + override fun measureValue(): String = unwrap(this).getMeasureValue() + + /** + * Data type of the measurement attribute in the source event. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html#cfn-pipes-pipe-networkconfiguration-awsvpcconfiguration) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-measurevaluetype) */ - override fun awsvpcConfiguration(): Any? = unwrap(this).getAwsvpcConfiguration() + override fun measureValueType(): String = unwrap(this).getMeasureValueType() + + /** + * Target measure name to be used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasureattributemapping.html#cfn-pipes-pipe-multimeasureattributemapping-multimeasureattributename) + */ + override fun multiMeasureAttributeName(): String = unwrap(this).getMultiMeasureAttributeName() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): NetworkConfigurationProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): + MultiMeasureAttributeMappingProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty): - NetworkConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? - NetworkConfigurationProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty): + MultiMeasureAttributeMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? + MultiMeasureAttributeMappingProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: NetworkConfigurationProperty): - software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty = (wrapped as - CdkObject).cdkObject as - software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty + internal fun unwrap(wrapped: MultiMeasureAttributeMappingProperty): + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureAttributeMappingProperty } } /** - * These are custom parameter to be used when the target is an API Gateway REST APIs or - * EventBridge ApiDestinations. + * Maps multiple measures from the source event to the same Timestream for LiveAnalytics record. * - * In the latter case, these are merged with any InvocationParameters specified on the Connection, - * with any values from the Connection taking precedence. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) * * Example: * @@ -4933,81 +5199,363 @@ public open class CfnPipe( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.pipes.*; - * PipeEnrichmentHttpParametersProperty pipeEnrichmentHttpParametersProperty = - * PipeEnrichmentHttpParametersProperty.builder() - * .headerParameters(Map.of( - * "headerParametersKey", "headerParameters")) - * .pathParameterValues(List.of("pathParameterValues")) - * .queryStringParameters(Map.of( - * "queryStringParametersKey", "queryStringParameters")) + * MultiMeasureMappingProperty multiMeasureMappingProperty = MultiMeasureMappingProperty.builder() + * .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .multiMeasureAttributeName("multiMeasureAttributeName") + * .build())) + * .multiMeasureName("multiMeasureName") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html) */ - public interface PipeEnrichmentHttpParametersProperty { - /** - * The headers that need to be sent as part of request invoking the API Gateway REST API or - * EventBridge ApiDestination. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-headerparameters) - */ - public fun headerParameters(): Any? = unwrap(this).getHeaderParameters() - + public interface MultiMeasureMappingProperty { /** - * The path parameter values to be used to populate API Gateway REST API or EventBridge - * ApiDestination path wildcards ("*"). + * Mappings that represent multiple source event fields mapped to measures in the same + * Timestream for LiveAnalytics record. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-pathparametervalues) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html#cfn-pipes-pipe-multimeasuremapping-multimeasureattributemappings) */ - public fun pathParameterValues(): List = unwrap(this).getPathParameterValues() ?: - emptyList() + public fun multiMeasureAttributeMappings(): Any /** - * The query string keys/values that need to be sent as part of request invoking the API Gateway - * REST API or EventBridge ApiDestination. + * The name of the multiple measurements per record (multi-measure). * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-querystringparameters) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html#cfn-pipes-pipe-multimeasuremapping-multimeasurename) */ - public fun queryStringParameters(): Any? = unwrap(this).getQueryStringParameters() + public fun multiMeasureName(): String /** - * A builder for [PipeEnrichmentHttpParametersProperty] + * A builder for [MultiMeasureMappingProperty] */ @CdkDslMarker public interface Builder { /** - * @param headerParameters The headers that need to be sent as part of request invoking the - * API Gateway REST API or EventBridge ApiDestination. + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. */ - public fun headerParameters(headerParameters: IResolvable) + public fun multiMeasureAttributeMappings(multiMeasureAttributeMappings: IResolvable) /** - * @param headerParameters The headers that need to be sent as part of request invoking the - * API Gateway REST API or EventBridge ApiDestination. + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. */ - public fun headerParameters(headerParameters: Map) + public fun multiMeasureAttributeMappings(multiMeasureAttributeMappings: List) /** - * @param pathParameterValues The path parameter values to be used to populate API Gateway - * REST API or EventBridge ApiDestination path wildcards ("*"). + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. */ - public fun pathParameterValues(pathParameterValues: List) + public fun multiMeasureAttributeMappings(vararg multiMeasureAttributeMappings: Any) /** - * @param pathParameterValues The path parameter values to be used to populate API Gateway - * REST API or EventBridge ApiDestination path wildcards ("*"). + * @param multiMeasureName The name of the multiple measurements per record (multi-measure). */ - public fun pathParameterValues(vararg pathParameterValues: String) + public fun multiMeasureName(multiMeasureName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty.Builder = + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty.builder() /** - * @param queryStringParameters The query string keys/values that need to be sent as part of - * request invoking the API Gateway REST API or EventBridge ApiDestination. + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. */ - public fun queryStringParameters(queryStringParameters: IResolvable) + override fun multiMeasureAttributeMappings(multiMeasureAttributeMappings: IResolvable) { + cdkBuilder.multiMeasureAttributeMappings(multiMeasureAttributeMappings.let(IResolvable.Companion::unwrap)) + } /** - * @param queryStringParameters The query string keys/values that need to be sent as part of + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. + */ + override fun multiMeasureAttributeMappings(multiMeasureAttributeMappings: List) { + cdkBuilder.multiMeasureAttributeMappings(multiMeasureAttributeMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param multiMeasureAttributeMappings Mappings that represent multiple source event fields + * mapped to measures in the same Timestream for LiveAnalytics record. + */ + override fun multiMeasureAttributeMappings(vararg multiMeasureAttributeMappings: Any): Unit = + multiMeasureAttributeMappings(multiMeasureAttributeMappings.toList()) + + /** + * @param multiMeasureName The name of the multiple measurements per record (multi-measure). + */ + override fun multiMeasureName(multiMeasureName: String) { + cdkBuilder.multiMeasureName(multiMeasureName) + } + + public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty, + ) : CdkObject(cdkObject), + MultiMeasureMappingProperty { + /** + * Mappings that represent multiple source event fields mapped to measures in the same + * Timestream for LiveAnalytics record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html#cfn-pipes-pipe-multimeasuremapping-multimeasureattributemappings) + */ + override fun multiMeasureAttributeMappings(): Any = + unwrap(this).getMultiMeasureAttributeMappings() + + /** + * The name of the multiple measurements per record (multi-measure). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-multimeasuremapping.html#cfn-pipes-pipe-multimeasuremapping-multimeasurename) + */ + override fun multiMeasureName(): String = unwrap(this).getMultiMeasureName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MultiMeasureMappingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty): + MultiMeasureMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? + MultiMeasureMappingProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MultiMeasureMappingProperty): + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.MultiMeasureMappingProperty + } + } + + /** + * This structure specifies the network configuration for an Amazon ECS task. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pipes.*; + * NetworkConfigurationProperty networkConfigurationProperty = + * NetworkConfigurationProperty.builder() + * .awsvpcConfiguration(AwsVpcConfigurationProperty.builder() + * .subnets(List.of("subnets")) + * // the properties below are optional + * .assignPublicIp("assignPublicIp") + * .securityGroups(List.of("securityGroups")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html) + */ + public interface NetworkConfigurationProperty { + /** + * Use this structure to specify the VPC subnets and security groups for the task, and whether a + * public IP address is to be used. + * + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html#cfn-pipes-pipe-networkconfiguration-awsvpcconfiguration) + */ + public fun awsvpcConfiguration(): Any? = unwrap(this).getAwsvpcConfiguration() + + /** + * A builder for [NetworkConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + public fun awsvpcConfiguration(awsvpcConfiguration: IResolvable) + + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + public fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty) + + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("015d29762bcaa3c4aa1b0e65a21e6f6ddf4c669c51cab4b6634878489eedb96f") + public + fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty.Builder = + software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty.builder() + + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + override fun awsvpcConfiguration(awsvpcConfiguration: IResolvable) { + cdkBuilder.awsvpcConfiguration(awsvpcConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + override fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty) { + cdkBuilder.awsvpcConfiguration(awsvpcConfiguration.let(AwsVpcConfigurationProperty.Companion::unwrap)) + } + + /** + * @param awsvpcConfiguration Use this structure to specify the VPC subnets and security + * groups for the task, and whether a public IP address is to be used. + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("015d29762bcaa3c4aa1b0e65a21e6f6ddf4c669c51cab4b6634878489eedb96f") + override + fun awsvpcConfiguration(awsvpcConfiguration: AwsVpcConfigurationProperty.Builder.() -> Unit): + Unit = awsvpcConfiguration(AwsVpcConfigurationProperty(awsvpcConfiguration)) + + public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty, + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { + /** + * Use this structure to specify the VPC subnets and security groups for the task, and whether + * a public IP address is to be used. + * + * This structure is relevant only for ECS tasks that use the `awsvpc` network mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-networkconfiguration.html#cfn-pipes-pipe-networkconfiguration-awsvpcconfiguration) + */ + override fun awsvpcConfiguration(): Any? = unwrap(this).getAwsvpcConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NetworkConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty): + NetworkConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + NetworkConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NetworkConfigurationProperty): + software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.NetworkConfigurationProperty + } + } + + /** + * These are custom parameter to be used when the target is an API Gateway REST APIs or + * EventBridge ApiDestinations. + * + * In the latter case, these are merged with any InvocationParameters specified on the Connection, + * with any values from the Connection taking precedence. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pipes.*; + * PipeEnrichmentHttpParametersProperty pipeEnrichmentHttpParametersProperty = + * PipeEnrichmentHttpParametersProperty.builder() + * .headerParameters(Map.of( + * "headerParametersKey", "headerParameters")) + * .pathParameterValues(List.of("pathParameterValues")) + * .queryStringParameters(Map.of( + * "queryStringParametersKey", "queryStringParameters")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html) + */ + public interface PipeEnrichmentHttpParametersProperty { + /** + * The headers that need to be sent as part of request invoking the API Gateway REST API or + * EventBridge ApiDestination. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-headerparameters) + */ + public fun headerParameters(): Any? = unwrap(this).getHeaderParameters() + + /** + * The path parameter values to be used to populate API Gateway REST API or EventBridge + * ApiDestination path wildcards ("*"). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-pathparametervalues) + */ + public fun pathParameterValues(): List = unwrap(this).getPathParameterValues() ?: + emptyList() + + /** + * The query string keys/values that need to be sent as part of request invoking the API Gateway + * REST API or EventBridge ApiDestination. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipeenrichmenthttpparameters.html#cfn-pipes-pipe-pipeenrichmenthttpparameters-querystringparameters) + */ + public fun queryStringParameters(): Any? = unwrap(this).getQueryStringParameters() + + /** + * A builder for [PipeEnrichmentHttpParametersProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param headerParameters The headers that need to be sent as part of request invoking the + * API Gateway REST API or EventBridge ApiDestination. + */ + public fun headerParameters(headerParameters: IResolvable) + + /** + * @param headerParameters The headers that need to be sent as part of request invoking the + * API Gateway REST API or EventBridge ApiDestination. + */ + public fun headerParameters(headerParameters: Map) + + /** + * @param pathParameterValues The path parameter values to be used to populate API Gateway + * REST API or EventBridge ApiDestination path wildcards ("*"). + */ + public fun pathParameterValues(pathParameterValues: List) + + /** + * @param pathParameterValues The path parameter values to be used to populate API Gateway + * REST API or EventBridge ApiDestination path wildcards ("*"). + */ + public fun pathParameterValues(vararg pathParameterValues: String) + + /** + * @param queryStringParameters The query string keys/values that need to be sent as part of + * request invoking the API Gateway REST API or EventBridge ApiDestination. + */ + public fun queryStringParameters(queryStringParameters: IResolvable) + + /** + * @param queryStringParameters The query string keys/values that need to be sent as part of * request invoking the API Gateway REST API or EventBridge ApiDestination. */ public fun queryStringParameters(queryStringParameters: Map) @@ -5073,7 +5621,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeEnrichmentHttpParametersProperty, - ) : CdkObject(cdkObject), PipeEnrichmentHttpParametersProperty { + ) : CdkObject(cdkObject), + PipeEnrichmentHttpParametersProperty { /** * The headers that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. @@ -5285,7 +5834,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeEnrichmentParametersProperty, - ) : CdkObject(cdkObject), PipeEnrichmentParametersProperty { + ) : CdkObject(cdkObject), + PipeEnrichmentParametersProperty { /** * Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or * EventBridge ApiDestination. @@ -5626,7 +6176,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeLogConfigurationProperty, - ) : CdkObject(cdkObject), PipeLogConfigurationProperty { + ) : CdkObject(cdkObject), + PipeLogConfigurationProperty { /** * The logging configuration settings for the pipe. * @@ -5841,7 +6392,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceActiveMQBrokerParametersProperty, - ) : CdkObject(cdkObject), PipeSourceActiveMQBrokerParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceActiveMQBrokerParametersProperty { /** * The maximum number of records to include in each batch. * @@ -5942,7 +6494,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) Discard records older than the specified age. + * Discard records older than the specified age. * * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. @@ -5952,7 +6504,7 @@ public open class CfnPipe( public fun maximumRecordAgeInSeconds(): Number? = unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Streams only) Discard records after the specified number of retries. + * Discard records after the specified number of retries. * * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in @@ -5963,7 +6515,7 @@ public open class CfnPipe( public fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Streams only) Define how to handle item process failures. + * Define how to handle item process failures. * * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are processed * or there is one failed message left in the batch. @@ -5973,7 +6525,7 @@ public open class CfnPipe( public fun onPartialBatchItemFailure(): String? = unwrap(this).getOnPartialBatchItemFailure() /** - * (Streams only) The number of batches to process concurrently from each shard. + * The number of batches to process concurrently from each shard. * * The default value is 1. * @@ -6023,16 +6575,14 @@ public open class CfnPipe( public fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) /** - * @param maximumRecordAgeInSeconds (Streams only) Discard records older than the specified - * age. + * @param maximumRecordAgeInSeconds Discard records older than the specified age. * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. */ public fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) /** - * @param maximumRetryAttempts (Streams only) Discard records after the specified number of - * retries. + * @param maximumRetryAttempts Discard records after the specified number of retries. * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires * in the event source. @@ -6040,15 +6590,14 @@ public open class CfnPipe( public fun maximumRetryAttempts(maximumRetryAttempts: Number) /** - * @param onPartialBatchItemFailure (Streams only) Define how to handle item process failures. + * @param onPartialBatchItemFailure Define how to handle item process failures. * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. */ public fun onPartialBatchItemFailure(onPartialBatchItemFailure: String) /** - * @param parallelizationFactor (Streams only) The number of batches to process concurrently - * from each shard. + * @param parallelizationFactor The number of batches to process concurrently from each shard. * The default value is 1. */ public fun parallelizationFactor(parallelizationFactor: Number) @@ -6104,8 +6653,7 @@ public open class CfnPipe( } /** - * @param maximumRecordAgeInSeconds (Streams only) Discard records older than the specified - * age. + * @param maximumRecordAgeInSeconds Discard records older than the specified age. * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. */ @@ -6114,8 +6662,7 @@ public open class CfnPipe( } /** - * @param maximumRetryAttempts (Streams only) Discard records after the specified number of - * retries. + * @param maximumRetryAttempts Discard records after the specified number of retries. * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires * in the event source. @@ -6125,7 +6672,7 @@ public open class CfnPipe( } /** - * @param onPartialBatchItemFailure (Streams only) Define how to handle item process failures. + * @param onPartialBatchItemFailure Define how to handle item process failures. * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. */ @@ -6134,8 +6681,7 @@ public open class CfnPipe( } /** - * @param parallelizationFactor (Streams only) The number of batches to process concurrently - * from each shard. + * @param parallelizationFactor The number of batches to process concurrently from each shard. * The default value is 1. */ override fun parallelizationFactor(parallelizationFactor: Number) { @@ -6158,7 +6704,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceDynamoDBStreamParametersProperty, - ) : CdkObject(cdkObject), PipeSourceDynamoDBStreamParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceDynamoDBStreamParametersProperty { /** * The maximum number of records to include in each batch. * @@ -6182,7 +6729,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) Discard records older than the specified age. + * Discard records older than the specified age. * * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. @@ -6193,7 +6740,7 @@ public open class CfnPipe( unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Streams only) Discard records after the specified number of retries. + * Discard records after the specified number of retries. * * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires @@ -6204,7 +6751,7 @@ public open class CfnPipe( override fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Streams only) Define how to handle item process failures. + * Define how to handle item process failures. * * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. @@ -6215,7 +6762,7 @@ public open class CfnPipe( unwrap(this).getOnPartialBatchItemFailure() /** - * (Streams only) The number of batches to process concurrently from each shard. + * The number of batches to process concurrently from each shard. * * The default value is 1. * @@ -6304,7 +6851,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) Discard records older than the specified age. + * Discard records older than the specified age. * * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. @@ -6314,7 +6861,7 @@ public open class CfnPipe( public fun maximumRecordAgeInSeconds(): Number? = unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Streams only) Discard records after the specified number of retries. + * Discard records after the specified number of retries. * * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in @@ -6325,7 +6872,7 @@ public open class CfnPipe( public fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Streams only) Define how to handle item process failures. + * Define how to handle item process failures. * * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are processed * or there is one failed message left in the batch. @@ -6335,7 +6882,7 @@ public open class CfnPipe( public fun onPartialBatchItemFailure(): String? = unwrap(this).getOnPartialBatchItemFailure() /** - * (Streams only) The number of batches to process concurrently from each shard. + * The number of batches to process concurrently from each shard. * * The default value is 1. * @@ -6344,7 +6891,7 @@ public open class CfnPipe( public fun parallelizationFactor(): Number? = unwrap(this).getParallelizationFactor() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcekinesisstreamparameters.html#cfn-pipes-pipe-pipesourcekinesisstreamparameters-startingposition) */ @@ -6391,16 +6938,14 @@ public open class CfnPipe( public fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) /** - * @param maximumRecordAgeInSeconds (Streams only) Discard records older than the specified - * age. + * @param maximumRecordAgeInSeconds Discard records older than the specified age. * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. */ public fun maximumRecordAgeInSeconds(maximumRecordAgeInSeconds: Number) /** - * @param maximumRetryAttempts (Streams only) Discard records after the specified number of - * retries. + * @param maximumRetryAttempts Discard records after the specified number of retries. * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires * in the event source. @@ -6408,22 +6953,20 @@ public open class CfnPipe( public fun maximumRetryAttempts(maximumRetryAttempts: Number) /** - * @param onPartialBatchItemFailure (Streams only) Define how to handle item process failures. + * @param onPartialBatchItemFailure Define how to handle item process failures. * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. */ public fun onPartialBatchItemFailure(onPartialBatchItemFailure: String) /** - * @param parallelizationFactor (Streams only) The number of batches to process concurrently - * from each shard. + * @param parallelizationFactor The number of batches to process concurrently from each shard. * The default value is 1. */ public fun parallelizationFactor(parallelizationFactor: Number) /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ public fun startingPosition(startingPosition: String) @@ -6477,8 +7020,7 @@ public open class CfnPipe( } /** - * @param maximumRecordAgeInSeconds (Streams only) Discard records older than the specified - * age. + * @param maximumRecordAgeInSeconds Discard records older than the specified age. * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. */ @@ -6487,8 +7029,7 @@ public open class CfnPipe( } /** - * @param maximumRetryAttempts (Streams only) Discard records after the specified number of - * retries. + * @param maximumRetryAttempts Discard records after the specified number of retries. * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires * in the event source. @@ -6498,7 +7039,7 @@ public open class CfnPipe( } /** - * @param onPartialBatchItemFailure (Streams only) Define how to handle item process failures. + * @param onPartialBatchItemFailure Define how to handle item process failures. * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. */ @@ -6507,8 +7048,7 @@ public open class CfnPipe( } /** - * @param parallelizationFactor (Streams only) The number of batches to process concurrently - * from each shard. + * @param parallelizationFactor The number of batches to process concurrently from each shard. * The default value is 1. */ override fun parallelizationFactor(parallelizationFactor: Number) { @@ -6516,8 +7056,7 @@ public open class CfnPipe( } /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ override fun startingPosition(startingPosition: String) { cdkBuilder.startingPosition(startingPosition) @@ -6538,7 +7077,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceKinesisStreamParametersProperty, - ) : CdkObject(cdkObject), PipeSourceKinesisStreamParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceKinesisStreamParametersProperty { /** * The maximum number of records to include in each batch. * @@ -6562,7 +7102,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) Discard records older than the specified age. + * Discard records older than the specified age. * * The default value is -1, which sets the maximum age to infinite. When the value is set to * infinite, EventBridge never discards old records. @@ -6573,7 +7113,7 @@ public open class CfnPipe( unwrap(this).getMaximumRecordAgeInSeconds() /** - * (Streams only) Discard records after the specified number of retries. + * Discard records after the specified number of retries. * * The default value is -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires @@ -6584,7 +7124,7 @@ public open class CfnPipe( override fun maximumRetryAttempts(): Number? = unwrap(this).getMaximumRetryAttempts() /** - * (Streams only) Define how to handle item process failures. + * Define how to handle item process failures. * * `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are * processed or there is one failed message left in the batch. @@ -6595,7 +7135,7 @@ public open class CfnPipe( unwrap(this).getOnPartialBatchItemFailure() /** - * (Streams only) The number of batches to process concurrently from each shard. + * The number of batches to process concurrently from each shard. * * The default value is 1. * @@ -6604,7 +7144,7 @@ public open class CfnPipe( override fun parallelizationFactor(): Number? = unwrap(this).getParallelizationFactor() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcekinesisstreamparameters.html#cfn-pipes-pipe-pipesourcekinesisstreamparameters-startingposition) */ @@ -6697,7 +7237,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcemanagedstreamingkafkaparameters.html#cfn-pipes-pipe-pipesourcemanagedstreamingkafkaparameters-startingposition) */ @@ -6748,8 +7288,7 @@ public open class CfnPipe( public fun maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds: Number) /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ public fun startingPosition(startingPosition: String) @@ -6809,8 +7348,7 @@ public open class CfnPipe( } /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ override fun startingPosition(startingPosition: String) { cdkBuilder.startingPosition(startingPosition) @@ -6830,7 +7368,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceManagedStreamingKafkaParametersProperty, - ) : CdkObject(cdkObject), PipeSourceManagedStreamingKafkaParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceManagedStreamingKafkaParametersProperty { /** * The maximum number of records to include in each batch. * @@ -6861,7 +7400,7 @@ public open class CfnPipe( unwrap(this).getMaximumBatchingWindowInSeconds() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcemanagedstreamingkafkaparameters.html#cfn-pipes-pipe-pipesourcemanagedstreamingkafkaparameters-startingposition) */ @@ -7049,7 +7588,7 @@ public open class CfnPipe( public fun rabbitMqBrokerParameters(): Any? = unwrap(this).getRabbitMqBrokerParameters() /** - * The parameters for using a stream as a source. + * The parameters for using a self-managed Apache Kafka stream as a source. * * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This includes * both clusters you manage yourself, as well as those hosted by a third-party provider, such as @@ -7207,7 +7746,8 @@ public open class CfnPipe( fun rabbitMqBrokerParameters(rabbitMqBrokerParameters: PipeSourceRabbitMQBrokerParametersProperty.Builder.() -> Unit) /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7220,7 +7760,8 @@ public open class CfnPipe( public fun selfManagedKafkaParameters(selfManagedKafkaParameters: IResolvable) /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7234,7 +7775,8 @@ public open class CfnPipe( fun selfManagedKafkaParameters(selfManagedKafkaParameters: PipeSourceSelfManagedKafkaParametersProperty) /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7439,7 +7981,8 @@ public open class CfnPipe( rabbitMqBrokerParameters(PipeSourceRabbitMQBrokerParametersProperty(rabbitMqBrokerParameters)) /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7454,7 +7997,8 @@ public open class CfnPipe( } /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7470,7 +8014,8 @@ public open class CfnPipe( } /** - * @param selfManagedKafkaParameters The parameters for using a stream as a source. + * @param selfManagedKafkaParameters The parameters for using a self-managed Apache Kafka + * stream as a source. * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, * such as [Confluent Cloud](https://docs.aws.amazon.com/https://www.confluent.io/) , @@ -7516,7 +8061,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceParametersProperty, - ) : CdkObject(cdkObject), PipeSourceParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceParametersProperty { /** * The parameters for using an Active MQ broker as a source. * @@ -7568,7 +8114,7 @@ public open class CfnPipe( override fun rabbitMqBrokerParameters(): Any? = unwrap(this).getRabbitMqBrokerParameters() /** - * The parameters for using a stream as a source. + * The parameters for using a self-managed Apache Kafka stream as a source. * * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This * includes both clusters you manage yourself, as well as those hosted by a third-party provider, @@ -7776,7 +8322,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceRabbitMQBrokerParametersProperty, - ) : CdkObject(cdkObject), PipeSourceRabbitMQBrokerParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceRabbitMQBrokerParametersProperty { /** * The maximum number of records to include in each batch. * @@ -7834,7 +8381,7 @@ public open class CfnPipe( } /** - * The parameters for using a stream as a source. + * The parameters for using a self-managed Apache Kafka stream as a source. * * A *self managed* cluster refers to any Apache Kafka cluster not hosted by AWS . This includes * both clusters you manage yourself, as well as those hosted by a third-party provider, such as @@ -7922,7 +8469,7 @@ public open class CfnPipe( public fun serverRootCaCertificate(): String? = unwrap(this).getServerRootCaCertificate() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourceselfmanagedkafkaparameters.html#cfn-pipes-pipe-pipesourceselfmanagedkafkaparameters-startingposition) */ @@ -7998,8 +8545,7 @@ public open class CfnPipe( public fun serverRootCaCertificate(serverRootCaCertificate: String) /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ public fun startingPosition(startingPosition: String) @@ -8102,8 +8648,7 @@ public open class CfnPipe( } /** - * @param startingPosition (Streams only) The position in a stream from which to start - * reading. + * @param startingPosition The position in a stream from which to start reading. */ override fun startingPosition(startingPosition: String) { cdkBuilder.startingPosition(startingPosition) @@ -8148,7 +8693,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceSelfManagedKafkaParametersProperty, - ) : CdkObject(cdkObject), PipeSourceSelfManagedKafkaParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceSelfManagedKafkaParametersProperty { /** * An array of server URLs. * @@ -8194,7 +8740,7 @@ public open class CfnPipe( override fun serverRootCaCertificate(): String? = unwrap(this).getServerRootCaCertificate() /** - * (Streams only) The position in a stream from which to start reading. + * The position in a stream from which to start reading. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourceselfmanagedkafkaparameters.html#cfn-pipes-pipe-pipesourceselfmanagedkafkaparameters-startingposition) */ @@ -8312,7 +8858,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeSourceSqsQueueParametersProperty, - ) : CdkObject(cdkObject), PipeSourceSqsQueueParametersProperty { + ) : CdkObject(cdkObject), + PipeSourceSqsQueueParametersProperty { /** * The maximum number of records to include in each batch. * @@ -8766,7 +9313,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetBatchJobParametersProperty, - ) : CdkObject(cdkObject), PipeTargetBatchJobParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetBatchJobParametersProperty { /** * The array properties for the submitted job, such as the size of the array. * @@ -8938,7 +9486,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetCloudWatchLogsParametersProperty, - ) : CdkObject(cdkObject), PipeTargetCloudWatchLogsParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetCloudWatchLogsParametersProperty { /** * The name of the log stream. * @@ -9732,7 +10281,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetEcsTaskParametersProperty, - ) : CdkObject(cdkObject), PipeTargetEcsTaskParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetEcsTaskParametersProperty { /** * The capacity provider strategy to use for the task. * @@ -10088,7 +10638,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetEventBridgeEventBusParametersProperty, - ) : CdkObject(cdkObject), PipeTargetEventBridgeEventBusParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetEventBridgeEventBusParametersProperty { /** * A free-form string, with a maximum of 128 characters, used to decide what fields to expect * in the event detail. @@ -10304,7 +10855,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetHttpParametersProperty, - ) : CdkObject(cdkObject), PipeTargetHttpParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetHttpParametersProperty { /** * The headers that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. @@ -10424,7 +10976,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetKinesisStreamParametersProperty, - ) : CdkObject(cdkObject), PipeTargetKinesisStreamParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetKinesisStreamParametersProperty { /** * Determines which shard in the stream the data record is assigned to. * @@ -10554,7 +11107,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetLambdaFunctionParametersProperty, - ) : CdkObject(cdkObject), PipeTargetLambdaFunctionParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetLambdaFunctionParametersProperty { /** * Specify whether to invoke the function synchronously or asynchronously. * @@ -10715,6 +11269,13 @@ public open class CfnPipe( public fun stepFunctionStateMachineParameters(): Any? = unwrap(this).getStepFunctionStateMachineParameters() + /** + * The parameters for using a Timestream for LiveAnalytics table as a target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetparameters.html#cfn-pipes-pipe-pipetargetparameters-timestreamparameters) + */ + public fun timestreamParameters(): Any? = unwrap(this).getTimestreamParameters() + /** * A builder for [PipeTargetParametersProperty] */ @@ -10951,6 +11512,27 @@ public open class CfnPipe( @JvmName("c98c038add2c0bc4e1ab167709d03310995337108c405ec86f15195d3bfad285") public fun stepFunctionStateMachineParameters(stepFunctionStateMachineParameters: PipeTargetStateMachineParametersProperty.Builder.() -> Unit) + + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + public fun timestreamParameters(timestreamParameters: IResolvable) + + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + public fun timestreamParameters(timestreamParameters: PipeTargetTimestreamParametersProperty) + + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a736d11199c58179e7d1553936ff1f728a8f05cd9efad0010eafc0dc666c1212") + public + fun timestreamParameters(timestreamParameters: PipeTargetTimestreamParametersProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -11256,13 +11838,41 @@ public open class CfnPipe( Unit = stepFunctionStateMachineParameters(PipeTargetStateMachineParametersProperty(stepFunctionStateMachineParameters)) + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + override fun timestreamParameters(timestreamParameters: IResolvable) { + cdkBuilder.timestreamParameters(timestreamParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + override + fun timestreamParameters(timestreamParameters: PipeTargetTimestreamParametersProperty) { + cdkBuilder.timestreamParameters(timestreamParameters.let(PipeTargetTimestreamParametersProperty.Companion::unwrap)) + } + + /** + * @param timestreamParameters The parameters for using a Timestream for LiveAnalytics table + * as a target. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a736d11199c58179e7d1553936ff1f728a8f05cd9efad0010eafc0dc666c1212") + override + fun timestreamParameters(timestreamParameters: PipeTargetTimestreamParametersProperty.Builder.() -> Unit): + Unit = timestreamParameters(PipeTargetTimestreamParametersProperty(timestreamParameters)) + public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetParametersProperty = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetParametersProperty, - ) : CdkObject(cdkObject), PipeTargetParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetParametersProperty { /** * The parameters for using an AWS Batch job as a target. * @@ -11357,6 +11967,13 @@ public open class CfnPipe( */ override fun stepFunctionStateMachineParameters(): Any? = unwrap(this).getStepFunctionStateMachineParameters() + + /** + * The parameters for using a Timestream for LiveAnalytics table as a target. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetparameters.html#cfn-pipes-pipe-pipetargetparameters-timestreamparameters) + */ + override fun timestreamParameters(): Any? = unwrap(this).getTimestreamParameters() } public companion object { @@ -11423,7 +12040,7 @@ public open class CfnPipe( /** * The name or ARN of the secret that enables access to the database. * - * Required when authenticating using Secrets Manager . + * Required when authenticating using Secrets Manager. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetredshiftdataparameters.html#cfn-pipes-pipe-pipetargetredshiftdataparameters-secretmanagerarn) */ @@ -11473,7 +12090,7 @@ public open class CfnPipe( /** * @param secretManagerArn The name or ARN of the secret that enables access to the database. - * Required when authenticating using Secrets Manager . + * Required when authenticating using Secrets Manager. */ public fun secretManagerArn(secretManagerArn: String) @@ -11530,7 +12147,7 @@ public open class CfnPipe( /** * @param secretManagerArn The name or ARN of the secret that enables access to the database. - * Required when authenticating using Secrets Manager . + * Required when authenticating using Secrets Manager. */ override fun secretManagerArn(secretManagerArn: String) { cdkBuilder.secretManagerArn(secretManagerArn) @@ -11579,7 +12196,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetRedshiftDataParametersProperty, - ) : CdkObject(cdkObject), PipeTargetRedshiftDataParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetRedshiftDataParametersProperty { /** * The name of the database. * @@ -11601,7 +12219,7 @@ public open class CfnPipe( /** * The name or ARN of the secret that enables access to the database. * - * Required when authenticating using Secrets Manager . + * Required when authenticating using Secrets Manager. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetredshiftdataparameters.html#cfn-pipes-pipe-pipetargetredshiftdataparameters-secretmanagerarn) */ @@ -11740,7 +12358,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetSageMakerPipelineParametersProperty, - ) : CdkObject(cdkObject), PipeTargetSageMakerPipelineParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetSageMakerPipelineParametersProperty { /** * List of Parameter names and values for SageMaker Model Building Pipeline execution. * @@ -11850,7 +12469,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetSqsQueueParametersProperty, - ) : CdkObject(cdkObject), PipeTargetSqsQueueParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetSqsQueueParametersProperty { /** * This parameter applies only to FIFO (first-in-first-out) queues. * @@ -11991,7 +12611,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetStateMachineParametersProperty, - ) : CdkObject(cdkObject), PipeTargetStateMachineParametersProperty { + ) : CdkObject(cdkObject), + PipeTargetStateMachineParametersProperty { /** * Specify whether to invoke the Step Functions state machine synchronously or asynchronously. * @@ -12035,6 +12656,489 @@ public open class CfnPipe( } } + /** + * The parameters for using a Timestream for LiveAnalytics table as a target. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pipes.*; + * PipeTargetTimestreamParametersProperty pipeTargetTimestreamParametersProperty = + * PipeTargetTimestreamParametersProperty.builder() + * .dimensionMappings(List.of(DimensionMappingProperty.builder() + * .dimensionName("dimensionName") + * .dimensionValue("dimensionValue") + * .dimensionValueType("dimensionValueType") + * .build())) + * .timeValue("timeValue") + * .versionValue("versionValue") + * // the properties below are optional + * .epochTimeUnit("epochTimeUnit") + * .multiMeasureMappings(List.of(MultiMeasureMappingProperty.builder() + * .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .multiMeasureAttributeName("multiMeasureAttributeName") + * .build())) + * .multiMeasureName("multiMeasureName") + * .build())) + * .singleMeasureMappings(List.of(SingleMeasureMappingProperty.builder() + * .measureName("measureName") + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .build())) + * .timeFieldType("timeFieldType") + * .timestampFormat("timestampFormat") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html) + */ + public interface PipeTargetTimestreamParametersProperty { + /** + * Map source data to dimensions in the target Timestream for LiveAnalytics table. + * + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-dimensionmappings) + */ + public fun dimensionMappings(): Any + + /** + * The granularity of the time units used. Default is `MILLISECONDS` . + * + * Required if `TimeFieldType` is specified as `EPOCH` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-epochtimeunit) + */ + public fun epochTimeUnit(): String? = unwrap(this).getEpochTimeUnit() + + /** + * Maps multiple measures from the source event to the same record in the specified Timestream + * for LiveAnalytics table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-multimeasuremappings) + */ + public fun multiMeasureMappings(): Any? = unwrap(this).getMultiMeasureMappings() + + /** + * Mappings of single source data fields to individual records in the specified Timestream for + * LiveAnalytics table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-singlemeasuremappings) + */ + public fun singleMeasureMappings(): Any? = unwrap(this).getSingleMeasureMappings() + + /** + * The type of time value used. + * + * The default is `EPOCH` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timefieldtype) + */ + public fun timeFieldType(): String? = unwrap(this).getTimeFieldType() + + /** + * Dynamic path to the source data field that represents the time value for your data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timevalue) + */ + public fun timeValue(): String + + /** + * How to format the timestamps. For example, `YYYY-MM-DDThh:mm:ss.sssTZD` . + * + * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timestampformat) + */ + public fun timestampFormat(): String? = unwrap(this).getTimestampFormat() + + /** + * 64 bit version value or source data field that represents the version value for your data. + * + * Write requests with a higher version number will update the existing measure values of the + * record and version. In cases where the measure value is the same, the version will still be + * updated. + * + * Default value is 1. + * + * Timestream for LiveAnalytics does not support updating partial measure values in a record. + * + * Write requests for duplicate data with a higher version number will update the existing + * measure value and version. In cases where the measure value is the same, `Version` will still be + * updated. Default value is `1` . + * + * + * `Version` must be `1` or greater, or you will receive a `ValidationException` error. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-versionvalue) + */ + public fun versionValue(): String + + /** + * A builder for [PipeTargetTimestreamParametersProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + public fun dimensionMappings(dimensionMappings: IResolvable) + + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + public fun dimensionMappings(dimensionMappings: List) + + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + public fun dimensionMappings(vararg dimensionMappings: Any) + + /** + * @param epochTimeUnit The granularity of the time units used. Default is `MILLISECONDS` . + * Required if `TimeFieldType` is specified as `EPOCH` . + */ + public fun epochTimeUnit(epochTimeUnit: String) + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + public fun multiMeasureMappings(multiMeasureMappings: IResolvable) + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + public fun multiMeasureMappings(multiMeasureMappings: List) + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + public fun multiMeasureMappings(vararg multiMeasureMappings: Any) + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + public fun singleMeasureMappings(singleMeasureMappings: IResolvable) + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + public fun singleMeasureMappings(singleMeasureMappings: List) + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + public fun singleMeasureMappings(vararg singleMeasureMappings: Any) + + /** + * @param timeFieldType The type of time value used. + * The default is `EPOCH` . + */ + public fun timeFieldType(timeFieldType: String) + + /** + * @param timeValue Dynamic path to the source data field that represents the time value for + * your data. + */ + public fun timeValue(timeValue: String) + + /** + * @param timestampFormat How to format the timestamps. For example, + * `YYYY-MM-DDThh:mm:ss.sssTZD` . + * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` . + */ + public fun timestampFormat(timestampFormat: String) + + /** + * @param versionValue 64 bit version value or source data field that represents the version + * value for your data. + * Write requests with a higher version number will update the existing measure values of the + * record and version. In cases where the measure value is the same, the version will still be + * updated. + * + * Default value is 1. + * + * Timestream for LiveAnalytics does not support updating partial measure values in a record. + * + * Write requests for duplicate data with a higher version number will update the existing + * measure value and version. In cases where the measure value is the same, `Version` will still + * be updated. Default value is `1` . + * + * + * `Version` must be `1` or greater, or you will receive a `ValidationException` error. + */ + public fun versionValue(versionValue: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty.Builder + = + software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty.builder() + + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + override fun dimensionMappings(dimensionMappings: IResolvable) { + cdkBuilder.dimensionMappings(dimensionMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + override fun dimensionMappings(dimensionMappings: List) { + cdkBuilder.dimensionMappings(dimensionMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param dimensionMappings Map source data to dimensions in the target Timestream for + * LiveAnalytics table. + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + */ + override fun dimensionMappings(vararg dimensionMappings: Any): Unit = + dimensionMappings(dimensionMappings.toList()) + + /** + * @param epochTimeUnit The granularity of the time units used. Default is `MILLISECONDS` . + * Required if `TimeFieldType` is specified as `EPOCH` . + */ + override fun epochTimeUnit(epochTimeUnit: String) { + cdkBuilder.epochTimeUnit(epochTimeUnit) + } + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + override fun multiMeasureMappings(multiMeasureMappings: IResolvable) { + cdkBuilder.multiMeasureMappings(multiMeasureMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + override fun multiMeasureMappings(multiMeasureMappings: List) { + cdkBuilder.multiMeasureMappings(multiMeasureMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param multiMeasureMappings Maps multiple measures from the source event to the same record + * in the specified Timestream for LiveAnalytics table. + */ + override fun multiMeasureMappings(vararg multiMeasureMappings: Any): Unit = + multiMeasureMappings(multiMeasureMappings.toList()) + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + override fun singleMeasureMappings(singleMeasureMappings: IResolvable) { + cdkBuilder.singleMeasureMappings(singleMeasureMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + override fun singleMeasureMappings(singleMeasureMappings: List) { + cdkBuilder.singleMeasureMappings(singleMeasureMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param singleMeasureMappings Mappings of single source data fields to individual records in + * the specified Timestream for LiveAnalytics table. + */ + override fun singleMeasureMappings(vararg singleMeasureMappings: Any): Unit = + singleMeasureMappings(singleMeasureMappings.toList()) + + /** + * @param timeFieldType The type of time value used. + * The default is `EPOCH` . + */ + override fun timeFieldType(timeFieldType: String) { + cdkBuilder.timeFieldType(timeFieldType) + } + + /** + * @param timeValue Dynamic path to the source data field that represents the time value for + * your data. + */ + override fun timeValue(timeValue: String) { + cdkBuilder.timeValue(timeValue) + } + + /** + * @param timestampFormat How to format the timestamps. For example, + * `YYYY-MM-DDThh:mm:ss.sssTZD` . + * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` . + */ + override fun timestampFormat(timestampFormat: String) { + cdkBuilder.timestampFormat(timestampFormat) + } + + /** + * @param versionValue 64 bit version value or source data field that represents the version + * value for your data. + * Write requests with a higher version number will update the existing measure values of the + * record and version. In cases where the measure value is the same, the version will still be + * updated. + * + * Default value is 1. + * + * Timestream for LiveAnalytics does not support updating partial measure values in a record. + * + * Write requests for duplicate data with a higher version number will update the existing + * measure value and version. In cases where the measure value is the same, `Version` will still + * be updated. Default value is `1` . + * + * + * `Version` must be `1` or greater, or you will receive a `ValidationException` error. + */ + override fun versionValue(versionValue: String) { + cdkBuilder.versionValue(versionValue) + } + + public fun build(): + software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty, + ) : CdkObject(cdkObject), + PipeTargetTimestreamParametersProperty { + /** + * Map source data to dimensions in the target Timestream for LiveAnalytics table. + * + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-dimensionmappings) + */ + override fun dimensionMappings(): Any = unwrap(this).getDimensionMappings() + + /** + * The granularity of the time units used. Default is `MILLISECONDS` . + * + * Required if `TimeFieldType` is specified as `EPOCH` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-epochtimeunit) + */ + override fun epochTimeUnit(): String? = unwrap(this).getEpochTimeUnit() + + /** + * Maps multiple measures from the source event to the same record in the specified Timestream + * for LiveAnalytics table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-multimeasuremappings) + */ + override fun multiMeasureMappings(): Any? = unwrap(this).getMultiMeasureMappings() + + /** + * Mappings of single source data fields to individual records in the specified Timestream for + * LiveAnalytics table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-singlemeasuremappings) + */ + override fun singleMeasureMappings(): Any? = unwrap(this).getSingleMeasureMappings() + + /** + * The type of time value used. + * + * The default is `EPOCH` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timefieldtype) + */ + override fun timeFieldType(): String? = unwrap(this).getTimeFieldType() + + /** + * Dynamic path to the source data field that represents the time value for your data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timevalue) + */ + override fun timeValue(): String = unwrap(this).getTimeValue() + + /** + * How to format the timestamps. For example, `YYYY-MM-DDThh:mm:ss.sssTZD` . + * + * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-timestampformat) + */ + override fun timestampFormat(): String? = unwrap(this).getTimestampFormat() + + /** + * 64 bit version value or source data field that represents the version value for your data. + * + * Write requests with a higher version number will update the existing measure values of the + * record and version. In cases where the measure value is the same, the version will still be + * updated. + * + * Default value is 1. + * + * Timestream for LiveAnalytics does not support updating partial measure values in a record. + * + * Write requests for duplicate data with a higher version number will update the existing + * measure value and version. In cases where the measure value is the same, `Version` will still + * be updated. Default value is `1` . + * + * + * `Version` must be `1` or greater, or you will receive a `ValidationException` error. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargettimestreamparameters.html#cfn-pipes-pipe-pipetargettimestreamparameters-versionvalue) + */ + override fun versionValue(): String = unwrap(this).getVersionValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PipeTargetTimestreamParametersProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty): + PipeTargetTimestreamParametersProperty = CdkObjectWrappers.wrap(cdkObject) as? + PipeTargetTimestreamParametersProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PipeTargetTimestreamParametersProperty): + software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetTimestreamParametersProperty + } + } + /** * An object representing a constraint on task placement. * @@ -12134,7 +13238,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PlacementConstraintProperty, - ) : CdkObject(cdkObject), PlacementConstraintProperty { + ) : CdkObject(cdkObject), + PlacementConstraintProperty { /** * A cluster query language expression to apply to the constraint. * @@ -12286,7 +13391,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.PlacementStrategyProperty, - ) : CdkObject(cdkObject), PlacementStrategyProperty { + ) : CdkObject(cdkObject), + PlacementStrategyProperty { /** * The field to apply the placement strategy against. * @@ -12370,10 +13476,7 @@ public open class CfnPipe( /** * The format EventBridge uses for the log records. * - * * `json` : JSON - * * `plain` : Plain text - * * `w3c` : [W3C extended logging file - * format](https://docs.aws.amazon.com/https://www.w3.org/TR/WD-logfile) + * EventBridge currently only supports `json` formatting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-s3logdestination.html#cfn-pipes-pipe-s3logdestination-outputformat) */ @@ -12409,10 +13512,7 @@ public open class CfnPipe( /** * @param outputFormat The format EventBridge uses for the log records. - * * `json` : JSON - * * `plain` : Plain text - * * `w3c` : [W3C extended logging file - * format](https://docs.aws.amazon.com/https://www.w3.org/TR/WD-logfile) + * EventBridge currently only supports `json` formatting. */ public fun outputFormat(outputFormat: String) @@ -12448,10 +13548,7 @@ public open class CfnPipe( /** * @param outputFormat The format EventBridge uses for the log records. - * * `json` : JSON - * * `plain` : Plain text - * * `w3c` : [W3C extended logging file - * format](https://docs.aws.amazon.com/https://www.w3.org/TR/WD-logfile) + * EventBridge currently only supports `json` formatting. */ override fun outputFormat(outputFormat: String) { cdkBuilder.outputFormat(outputFormat) @@ -12473,7 +13570,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.S3LogDestinationProperty, - ) : CdkObject(cdkObject), S3LogDestinationProperty { + ) : CdkObject(cdkObject), + S3LogDestinationProperty { /** * The name of the Amazon S3 bucket to which EventBridge delivers the log records for the * pipe. @@ -12493,10 +13591,7 @@ public open class CfnPipe( /** * The format EventBridge uses for the log records. * - * * `json` : JSON - * * `plain` : Plain text - * * `w3c` : [W3C extended logging file - * format](https://docs.aws.amazon.com/https://www.w3.org/TR/WD-logfile) + * EventBridge currently only supports `json` formatting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-s3logdestination.html#cfn-pipes-pipe-s3logdestination-outputformat) */ @@ -12607,7 +13702,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.SageMakerPipelineParameterProperty, - ) : CdkObject(cdkObject), SageMakerPipelineParameterProperty { + ) : CdkObject(cdkObject), + SageMakerPipelineParameterProperty { /** * Name of parameter to start execution of a SageMaker Model Building Pipeline. * @@ -12759,7 +13855,8 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.SelfManagedKafkaAccessConfigurationCredentialsProperty, - ) : CdkObject(cdkObject), SelfManagedKafkaAccessConfigurationCredentialsProperty { + ) : CdkObject(cdkObject), + SelfManagedKafkaAccessConfigurationCredentialsProperty { /** * The ARN of the Secrets Manager secret. * @@ -12832,7 +13929,7 @@ public open class CfnPipe( * Specifies the security groups associated with the stream. * * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is used. + * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-selfmanagedkafkaaccessconfigurationvpc.html#cfn-pipes-pipe-selfmanagedkafkaaccessconfigurationvpc-securitygroup) */ @@ -12855,16 +13952,14 @@ public open class CfnPipe( /** * @param securityGroup Specifies the security groups associated with the stream. * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is - * used. + * groups. */ public fun securityGroup(securityGroup: List) /** * @param securityGroup Specifies the security groups associated with the stream. * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is - * used. + * groups. */ public fun securityGroup(vararg securityGroup: String) @@ -12890,8 +13985,7 @@ public open class CfnPipe( /** * @param securityGroup Specifies the security groups associated with the stream. * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is - * used. + * groups. */ override fun securityGroup(securityGroup: List) { cdkBuilder.securityGroup(securityGroup) @@ -12900,8 +13994,7 @@ public open class CfnPipe( /** * @param securityGroup Specifies the security groups associated with the stream. * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is - * used. + * groups. */ override fun securityGroup(vararg securityGroup: String): Unit = securityGroup(securityGroup.toList()) @@ -12927,13 +14020,13 @@ public open class CfnPipe( private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty, - ) : CdkObject(cdkObject), SelfManagedKafkaAccessConfigurationVpcProperty { + ) : CdkObject(cdkObject), + SelfManagedKafkaAccessConfigurationVpcProperty { /** * Specifies the security groups associated with the stream. * * These security groups must all be in the same VPC. You can specify as many as five security - * groups. If you do not specify a security group, the default security group for the VPC is - * used. + * groups. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-selfmanagedkafkaaccessconfigurationvpc.html#cfn-pipes-pipe-selfmanagedkafkaaccessconfigurationvpc-securitygroup) */ @@ -12967,4 +14060,146 @@ public open class CfnPipe( software.amazon.awscdk.services.pipes.CfnPipe.SelfManagedKafkaAccessConfigurationVpcProperty } } + + /** + * Maps a single source data field to a single record in the specified Timestream for + * LiveAnalytics table. + * + * For more information, see [Amazon Timestream for LiveAnalytics + * concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html) + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.pipes.*; + * SingleMeasureMappingProperty singleMeasureMappingProperty = + * SingleMeasureMappingProperty.builder() + * .measureName("measureName") + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html) + */ + public interface SingleMeasureMappingProperty { + /** + * Target measure name for the measurement attribute in the Timestream table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurename) + */ + public fun measureName(): String + + /** + * Dynamic path of the source field to map to the measure in the record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurevalue) + */ + public fun measureValue(): String + + /** + * Data type of the source field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurevaluetype) + */ + public fun measureValueType(): String + + /** + * A builder for [SingleMeasureMappingProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param measureName Target measure name for the measurement attribute in the Timestream + * table. + */ + public fun measureName(measureName: String) + + /** + * @param measureValue Dynamic path of the source field to map to the measure in the record. + */ + public fun measureValue(measureValue: String) + + /** + * @param measureValueType Data type of the source field. + */ + public fun measureValueType(measureValueType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty.Builder = + software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty.builder() + + /** + * @param measureName Target measure name for the measurement attribute in the Timestream + * table. + */ + override fun measureName(measureName: String) { + cdkBuilder.measureName(measureName) + } + + /** + * @param measureValue Dynamic path of the source field to map to the measure in the record. + */ + override fun measureValue(measureValue: String) { + cdkBuilder.measureValue(measureValue) + } + + /** + * @param measureValueType Data type of the source field. + */ + override fun measureValueType(measureValueType: String) { + cdkBuilder.measureValueType(measureValueType) + } + + public fun build(): software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty, + ) : CdkObject(cdkObject), + SingleMeasureMappingProperty { + /** + * Target measure name for the measurement attribute in the Timestream table. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurename) + */ + override fun measureName(): String = unwrap(this).getMeasureName() + + /** + * Dynamic path of the source field to map to the measure in the record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurevalue) + */ + override fun measureValue(): String = unwrap(this).getMeasureValue() + + /** + * Data type of the source field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-singlemeasuremapping.html#cfn-pipes-pipe-singlemeasuremapping-measurevaluetype) + */ + override fun measureValueType(): String = unwrap(this).getMeasureValueType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SingleMeasureMappingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty): + SingleMeasureMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? + SingleMeasureMappingProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SingleMeasureMappingProperty): + software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.pipes.CfnPipe.SingleMeasureMappingProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipeProps.kt index 2c61ffac1a..0cd6235414 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/pipes/CfnPipeProps.kt @@ -39,6 +39,7 @@ import kotlin.jvm.JvmName * .build()) * .inputTemplate("inputTemplate") * .build()) + * .kmsKeyIdentifier("kmsKeyIdentifier") * .logConfiguration(PipeLogConfigurationProperty.builder() * .cloudwatchLogsLogDestination(CloudwatchLogsLogDestinationProperty.builder() * .logGroupArn("logGroupArn") @@ -294,6 +295,32 @@ import kotlin.jvm.JvmName * .stepFunctionStateMachineParameters(PipeTargetStateMachineParametersProperty.builder() * .invocationType("invocationType") * .build()) + * .timestreamParameters(PipeTargetTimestreamParametersProperty.builder() + * .dimensionMappings(List.of(DimensionMappingProperty.builder() + * .dimensionName("dimensionName") + * .dimensionValue("dimensionValue") + * .dimensionValueType("dimensionValueType") + * .build())) + * .timeValue("timeValue") + * .versionValue("versionValue") + * // the properties below are optional + * .epochTimeUnit("epochTimeUnit") + * .multiMeasureMappings(List.of(MultiMeasureMappingProperty.builder() + * .multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder() + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .multiMeasureAttributeName("multiMeasureAttributeName") + * .build())) + * .multiMeasureName("multiMeasureName") + * .build())) + * .singleMeasureMappings(List.of(SingleMeasureMappingProperty.builder() + * .measureName("measureName") + * .measureValue("measureValue") + * .measureValueType("measureValueType") + * .build())) + * .timeFieldType("timeFieldType") + * .timestampFormat("timestampFormat") + * .build()) * .build()) * .build(); * ``` @@ -329,6 +356,27 @@ public interface CfnPipeProps { */ public fun enrichmentParameters(): Any? = unwrap(this).getEnrichmentParameters() + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use + * a customer managed key to encrypt pipe data. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key instead, + * or update a pipe that is using a customer managed key to use a different customer managed key, + * specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS Key + * Management Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pipe.html#cfn-pipes-pipe-kmskeyidentifier) + */ + public fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + /** * The logging configuration settings for the pipe. * @@ -428,6 +476,24 @@ public interface CfnPipeProps { public fun enrichmentParameters(enrichmentParameters: CfnPipe.PipeEnrichmentParametersProperty.Builder.() -> Unit) + /** + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt pipe data. + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key + * instead, or update a pipe that is using a customer managed key to use a different customer + * managed key, specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + */ + public fun kmsKeyIdentifier(kmsKeyIdentifier: String) + /** * @param logConfiguration The logging configuration settings for the pipe. */ @@ -569,6 +635,26 @@ public interface CfnPipeProps { fun enrichmentParameters(enrichmentParameters: CfnPipe.PipeEnrichmentParametersProperty.Builder.() -> Unit): Unit = enrichmentParameters(CfnPipe.PipeEnrichmentParametersProperty(enrichmentParameters)) + /** + * @param kmsKeyIdentifier The identifier of the AWS KMS customer managed key for EventBridge to + * use, if you choose to use a customer managed key to encrypt pipe data. + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key + * instead, or update a pipe that is using a customer managed key to use a different customer + * managed key, specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + */ + override fun kmsKeyIdentifier(kmsKeyIdentifier: String) { + cdkBuilder.kmsKeyIdentifier(kmsKeyIdentifier) + } + /** * @param logConfiguration The logging configuration settings for the pipe. */ @@ -690,7 +776,8 @@ public interface CfnPipeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.pipes.CfnPipeProps, - ) : CdkObject(cdkObject), CfnPipeProps { + ) : CdkObject(cdkObject), + CfnPipeProps { /** * A description of the pipe. * @@ -719,6 +806,27 @@ public interface CfnPipeProps { */ override fun enrichmentParameters(): Any? = unwrap(this).getEnrichmentParameters() + /** + * The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to + * use a customer managed key to encrypt pipe data. + * + * The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. + * + * To update a pipe that is using the default AWS owned key to use a customer managed key + * instead, or update a pipe that is using a customer managed key to use a different customer + * managed key, specify a customer managed key identifier. + * + * To update a pipe that is using a customer managed key to use the default AWS owned key , + * specify an empty string. + * + * For more information, see [Managing + * keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS + * Key Management Service Developer Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pipe.html#cfn-pipes-pipe-kmskeyidentifier) + */ + override fun kmsKeyIdentifier(): String? = unwrap(this).getKmsKeyIdentifier() + /** * The logging configuration settings for the pipe. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnection.kt index ec6788d71b..d183c9c0ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnection.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironmentAccountConnection( cdkObject: software.amazon.awscdk.services.proton.CfnEnvironmentAccountConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.proton.CfnEnvironmentAccountConnection(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnectionProps.kt index ab7e966a0a..117272748f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentAccountConnectionProps.kt @@ -273,7 +273,8 @@ public interface CfnEnvironmentAccountConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.proton.CfnEnvironmentAccountConnectionProps, - ) : CdkObject(cdkObject), CfnEnvironmentAccountConnectionProps { + ) : CdkObject(cdkObject), + CfnEnvironmentAccountConnectionProps { /** * The Amazon Resource Name (ARN) of an IAM service role in the environment account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplate.kt index 20b991ba87..30168cf6a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplate.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironmentTemplate( cdkObject: software.amazon.awscdk.services.proton.CfnEnvironmentTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.proton.CfnEnvironmentTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplateProps.kt index 3e29e06edc..5f1737a9e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnEnvironmentTemplateProps.kt @@ -212,7 +212,8 @@ public interface CfnEnvironmentTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.proton.CfnEnvironmentTemplateProps, - ) : CdkObject(cdkObject), CfnEnvironmentTemplateProps { + ) : CdkObject(cdkObject), + CfnEnvironmentTemplateProps { /** * A description of the environment template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplate.kt index dbdbec8528..d8b1a202df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplate.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceTemplate( cdkObject: software.amazon.awscdk.services.proton.CfnServiceTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.proton.CfnServiceTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplateProps.kt index c1517ced0f..a1262ac18d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/proton/CfnServiceTemplateProps.kt @@ -188,7 +188,8 @@ public interface CfnServiceTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.proton.CfnServiceTemplateProps, - ) : CdkObject(cdkObject), CfnServiceTemplateProps { + ) : CdkObject(cdkObject), + CfnServiceTemplateProps { /** * A description of the service template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplication.kt index 7797678c0f..6a26975491 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplication.kt @@ -43,11 +43,25 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .attachmentsConfiguration(AttachmentsConfigurationProperty.builder() * .attachmentsControlMode("attachmentsControlMode") * .build()) + * .autoSubscriptionConfiguration(AutoSubscriptionConfigurationProperty.builder() + * .autoSubscribe("autoSubscribe") + * // the properties below are optional + * .defaultSubscriptionType("defaultSubscriptionType") + * .build()) + * .clientIdsForOidc(List.of("clientIdsForOidc")) * .description("description") * .encryptionConfiguration(EncryptionConfigurationProperty.builder() * .kmsKeyId("kmsKeyId") * .build()) + * .iamIdentityProviderArn("iamIdentityProviderArn") * .identityCenterInstanceArn("identityCenterInstanceArn") + * .identityType("identityType") + * .personalizationConfiguration(PersonalizationConfigurationProperty.builder() + * .personalizationControlMode("personalizationControlMode") + * .build()) + * .qAppsConfiguration(QAppsConfigurationProperty.builder() + * .qAppsControlMode("qAppsControlMode") + * .build()) * .roleArn("roleArn") * .tags(List.of(CfnTag.builder() * .key("key") @@ -60,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -139,12 +155,64 @@ public open class CfnApplication( */ public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + */ + public open fun autoSubscriptionConfiguration(): Any? = + unwrap(this).getAutoSubscriptionConfiguration() + + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + */ + public open fun autoSubscriptionConfiguration(`value`: IResolvable) { + unwrap(this).setAutoSubscriptionConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + */ + public open fun autoSubscriptionConfiguration(`value`: AutoSubscriptionConfigurationProperty) { + unwrap(this).setAutoSubscriptionConfiguration(`value`.let(AutoSubscriptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f4b9dfff125a5f6b85a64494b00ef3a2a576b9677453ad36a2861135709b59c5") + public open + fun autoSubscriptionConfiguration(`value`: AutoSubscriptionConfigurationProperty.Builder.() -> Unit): + Unit = autoSubscriptionConfiguration(AutoSubscriptionConfigurationProperty(`value`)) + /** * Tag Manager which manages the tags for this resource. */ public override fun cdkTagManager(): TagManager = unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** + * + */ + public open fun clientIdsForOidc(): List = unwrap(this).getClientIdsForOidc() ?: + emptyList() + + /** + * + */ + public open fun clientIdsForOidc(`value`: List) { + unwrap(this).setClientIdsForOidc(`value`) + } + + /** + * + */ + public open fun clientIdsForOidc(vararg `value`: String): Unit = + clientIdsForOidc(`value`.toList()) + /** * A description for the Amazon Q Business application. */ @@ -197,6 +265,20 @@ public open class CfnApplication( fun encryptionConfiguration(`value`: EncryptionConfigurationProperty.Builder.() -> Unit): Unit = encryptionConfiguration(EncryptionConfigurationProperty(`value`)) + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + */ + public open fun iamIdentityProviderArn(): String? = unwrap(this).getIamIdentityProviderArn() + + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + */ + public open fun iamIdentityProviderArn(`value`: String) { + unwrap(this).setIamIdentityProviderArn(`value`) + } + /** * The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating * for—or connecting to—your Amazon Q Business application. @@ -211,6 +293,18 @@ public open class CfnApplication( unwrap(this).setIdentityCenterInstanceArn(`value`) } + /** + * The authentication type being used by a Amazon Q Business application. + */ + public open fun identityType(): String? = unwrap(this).getIdentityType() + + /** + * The authentication type being used by a Amazon Q Business application. + */ + public open fun identityType(`value`: String) { + unwrap(this).setIdentityType(`value`) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -220,6 +314,62 @@ public open class CfnApplication( unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) } + /** + * Configuration information about chat response personalization. + */ + public open fun personalizationConfiguration(): Any? = + unwrap(this).getPersonalizationConfiguration() + + /** + * Configuration information about chat response personalization. + */ + public open fun personalizationConfiguration(`value`: IResolvable) { + unwrap(this).setPersonalizationConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration information about chat response personalization. + */ + public open fun personalizationConfiguration(`value`: PersonalizationConfigurationProperty) { + unwrap(this).setPersonalizationConfiguration(`value`.let(PersonalizationConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration information about chat response personalization. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4990eba6966199da8fd00c7cd5f3b115ee1424820cfcec14377c4b7a9b660a43") + public open + fun personalizationConfiguration(`value`: PersonalizationConfigurationProperty.Builder.() -> Unit): + Unit = personalizationConfiguration(PersonalizationConfigurationProperty(`value`)) + + /** + * Configuration information about Amazon Q Apps. + */ + public open fun qAppsConfiguration(): Any? = unwrap(this).getQAppsConfiguration() + + /** + * Configuration information about Amazon Q Apps. + */ + public open fun qAppsConfiguration(`value`: IResolvable) { + unwrap(this).setQAppsConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration information about Amazon Q Apps. + */ + public open fun qAppsConfiguration(`value`: QAppsConfigurationProperty) { + unwrap(this).setQAppsConfiguration(`value`.let(QAppsConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration information about Amazon Q Apps. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("79235a0f08f2baca595fdfb9e16db30ab8ccb83164bbef788f7b444322a2f759") + public open fun qAppsConfiguration(`value`: QAppsConfigurationProperty.Builder.() -> Unit): Unit = + qAppsConfiguration(QAppsConfigurationProperty(`value`)) + /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon CloudWatch * logs and metrics. @@ -286,6 +436,52 @@ public open class CfnApplication( public fun attachmentsConfiguration(attachmentsConfiguration: AttachmentsConfigurationProperty.Builder.() -> Unit) + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + public fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: IResolvable) + + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + public + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: AutoSubscriptionConfigurationProperty) + + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("73b46452e93301e523cca2efde02d08f65ddfd8d0d629d4ae217f8a89bfe835a") + public + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: AutoSubscriptionConfigurationProperty.Builder.() -> Unit) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + * @param clientIdsForOidc + */ + public fun clientIdsForOidc(clientIdsForOidc: List) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + * @param clientIdsForOidc + */ + public fun clientIdsForOidc(vararg clientIdsForOidc: String) + /** * A description for the Amazon Q Business application. * @@ -338,6 +534,16 @@ public open class CfnApplication( public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit) + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-iamidentityproviderarn) + * @param iamIdentityProviderArn The Amazon Resource Name (ARN) of an identity provider being + * used by an Amazon Q Business application. + */ + public fun iamIdentityProviderArn(iamIdentityProviderArn: String) + /** * The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating * for—or connecting to—your Amazon Q Business application. @@ -350,10 +556,91 @@ public open class CfnApplication( */ public fun identityCenterInstanceArn(identityCenterInstanceArn: String) + /** + * The authentication type being used by a Amazon Q Business application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-identitytype) + * @param identityType The authentication type being used by a Amazon Q Business application. + */ + public fun identityType(identityType: String) + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + public fun personalizationConfiguration(personalizationConfiguration: IResolvable) + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + public + fun personalizationConfiguration(personalizationConfiguration: PersonalizationConfigurationProperty) + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7c807dd83e492a3b787d1770fb65e375aa16ca1d41bce3e5ff1e1335907dce19") + public + fun personalizationConfiguration(personalizationConfiguration: PersonalizationConfigurationProperty.Builder.() -> Unit) + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + public fun qAppsConfiguration(qAppsConfiguration: IResolvable) + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + public fun qAppsConfiguration(qAppsConfiguration: QAppsConfigurationProperty) + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("18c33300a4beb62d94a4640db416caae57f9a57dcf8f63c04decb4be4270a95f") + public fun qAppsConfiguration(qAppsConfiguration: QAppsConfigurationProperty.Builder.() -> Unit) + /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon * CloudWatch logs and metrics. * + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-rolearn) * @param roleArn The Amazon Resource Name (ARN) of an IAM role with permissions to access your * Amazon CloudWatch logs and metrics. @@ -428,6 +715,61 @@ public open class CfnApplication( fun attachmentsConfiguration(attachmentsConfiguration: AttachmentsConfigurationProperty.Builder.() -> Unit): Unit = attachmentsConfiguration(AttachmentsConfigurationProperty(attachmentsConfiguration)) + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + override fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: IResolvable) { + cdkBuilder.autoSubscriptionConfiguration(autoSubscriptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + override + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: AutoSubscriptionConfigurationProperty) { + cdkBuilder.autoSubscriptionConfiguration(autoSubscriptionConfiguration.let(AutoSubscriptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("73b46452e93301e523cca2efde02d08f65ddfd8d0d629d4ae217f8a89bfe835a") + override + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: AutoSubscriptionConfigurationProperty.Builder.() -> Unit): + Unit = + autoSubscriptionConfiguration(AutoSubscriptionConfigurationProperty(autoSubscriptionConfiguration)) + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + * @param clientIdsForOidc + */ + override fun clientIdsForOidc(clientIdsForOidc: List) { + cdkBuilder.clientIdsForOidc(clientIdsForOidc) + } + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + * @param clientIdsForOidc + */ + override fun clientIdsForOidc(vararg clientIdsForOidc: String): Unit = + clientIdsForOidc(clientIdsForOidc.toList()) + /** * A description for the Amazon Q Business application. * @@ -489,6 +831,18 @@ public open class CfnApplication( fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit): Unit = encryptionConfiguration(EncryptionConfigurationProperty(encryptionConfiguration)) + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-iamidentityproviderarn) + * @param iamIdentityProviderArn The Amazon Resource Name (ARN) of an identity provider being + * used by an Amazon Q Business application. + */ + override fun iamIdentityProviderArn(iamIdentityProviderArn: String) { + cdkBuilder.iamIdentityProviderArn(iamIdentityProviderArn) + } + /** * The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating * for—or connecting to—your Amazon Q Business application. @@ -503,10 +857,105 @@ public open class CfnApplication( cdkBuilder.identityCenterInstanceArn(identityCenterInstanceArn) } + /** + * The authentication type being used by a Amazon Q Business application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-identitytype) + * @param identityType The authentication type being used by a Amazon Q Business application. + */ + override fun identityType(identityType: String) { + cdkBuilder.identityType(identityType) + } + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + override fun personalizationConfiguration(personalizationConfiguration: IResolvable) { + cdkBuilder.personalizationConfiguration(personalizationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + override + fun personalizationConfiguration(personalizationConfiguration: PersonalizationConfigurationProperty) { + cdkBuilder.personalizationConfiguration(personalizationConfiguration.let(PersonalizationConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + * @param personalizationConfiguration Configuration information about chat response + * personalization. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7c807dd83e492a3b787d1770fb65e375aa16ca1d41bce3e5ff1e1335907dce19") + override + fun personalizationConfiguration(personalizationConfiguration: PersonalizationConfigurationProperty.Builder.() -> Unit): + Unit = + personalizationConfiguration(PersonalizationConfigurationProperty(personalizationConfiguration)) + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + override fun qAppsConfiguration(qAppsConfiguration: IResolvable) { + cdkBuilder.qAppsConfiguration(qAppsConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + override fun qAppsConfiguration(qAppsConfiguration: QAppsConfigurationProperty) { + cdkBuilder.qAppsConfiguration(qAppsConfiguration.let(QAppsConfigurationProperty.Companion::unwrap)) + } + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("18c33300a4beb62d94a4640db416caae57f9a57dcf8f63c04decb4be4270a95f") + override + fun qAppsConfiguration(qAppsConfiguration: QAppsConfigurationProperty.Builder.() -> Unit): + Unit = qAppsConfiguration(QAppsConfigurationProperty(qAppsConfiguration)) + /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon * CloudWatch logs and metrics. * + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-rolearn) * @param roleArn The Amazon Resource Name (ARN) of an IAM role with permissions to access your * Amazon CloudWatch logs and metrics. @@ -625,7 +1074,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.AttachmentsConfigurationProperty, - ) : CdkObject(cdkObject), AttachmentsConfigurationProperty { + ) : CdkObject(cdkObject), + AttachmentsConfigurationProperty { /** * Status information about whether file upload functionality is activated or deactivated for * your end user. @@ -653,6 +1103,137 @@ public open class CfnApplication( } } + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * AutoSubscriptionConfigurationProperty autoSubscriptionConfigurationProperty = + * AutoSubscriptionConfigurationProperty.builder() + * .autoSubscribe("autoSubscribe") + * // the properties below are optional + * .defaultSubscriptionType("defaultSubscriptionType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-autosubscriptionconfiguration.html) + */ + public interface AutoSubscriptionConfigurationProperty { + /** + * Describes whether automatic subscriptions are enabled for an Amazon Q Business application + * using IAM identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-autosubscriptionconfiguration.html#cfn-qbusiness-application-autosubscriptionconfiguration-autosubscribe) + */ + public fun autoSubscribe(): String + + /** + * Describes the default subscription type assigned to an Amazon Q Business application using + * IAM identity federation for user management. + * + * If the value for `autoSubscribe` is set to `ENABLED` you must select a value for this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-autosubscriptionconfiguration.html#cfn-qbusiness-application-autosubscriptionconfiguration-defaultsubscriptiontype) + */ + public fun defaultSubscriptionType(): String? = unwrap(this).getDefaultSubscriptionType() + + /** + * A builder for [AutoSubscriptionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param autoSubscribe Describes whether automatic subscriptions are enabled for an Amazon Q + * Business application using IAM identity federation for user management. + */ + public fun autoSubscribe(autoSubscribe: String) + + /** + * @param defaultSubscriptionType Describes the default subscription type assigned to an + * Amazon Q Business application using IAM identity federation for user management. + * If the value for `autoSubscribe` is set to `ENABLED` you must select a value for this + * field. + */ + public fun defaultSubscriptionType(defaultSubscriptionType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty.builder() + + /** + * @param autoSubscribe Describes whether automatic subscriptions are enabled for an Amazon Q + * Business application using IAM identity federation for user management. + */ + override fun autoSubscribe(autoSubscribe: String) { + cdkBuilder.autoSubscribe(autoSubscribe) + } + + /** + * @param defaultSubscriptionType Describes the default subscription type assigned to an + * Amazon Q Business application using IAM identity federation for user management. + * If the value for `autoSubscribe` is set to `ENABLED` you must select a value for this + * field. + */ + override fun defaultSubscriptionType(defaultSubscriptionType: String) { + cdkBuilder.defaultSubscriptionType(defaultSubscriptionType) + } + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty, + ) : CdkObject(cdkObject), + AutoSubscriptionConfigurationProperty { + /** + * Describes whether automatic subscriptions are enabled for an Amazon Q Business application + * using IAM identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-autosubscriptionconfiguration.html#cfn-qbusiness-application-autosubscriptionconfiguration-autosubscribe) + */ + override fun autoSubscribe(): String = unwrap(this).getAutoSubscribe() + + /** + * Describes the default subscription type assigned to an Amazon Q Business application using + * IAM identity federation for user management. + * + * If the value for `autoSubscribe` is set to `ENABLED` you must select a value for this + * field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-autosubscriptionconfiguration.html#cfn-qbusiness-application-autosubscriptionconfiguration-defaultsubscriptiontype) + */ + override fun defaultSubscriptionType(): String? = unwrap(this).getDefaultSubscriptionType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + AutoSubscriptionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty): + AutoSubscriptionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + AutoSubscriptionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AutoSubscriptionConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnApplication.AutoSubscriptionConfigurationProperty + } + } + /** * Provides the identifier of the AWS KMS key used to encrypt data indexed by Amazon Q Business. * @@ -715,7 +1296,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The identifier of the AWS KMS key. * @@ -743,4 +1325,187 @@ public open class CfnApplication( software.amazon.awscdk.services.qbusiness.CfnApplication.EncryptionConfigurationProperty } } + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * PersonalizationConfigurationProperty personalizationConfigurationProperty = + * PersonalizationConfigurationProperty.builder() + * .personalizationControlMode("personalizationControlMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-personalizationconfiguration.html) + */ + public interface PersonalizationConfigurationProperty { + /** + * An option to allow Amazon Q Business to customize chat responses using user specific + * metadata—specifically, location and job information—in your IAM Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-personalizationconfiguration.html#cfn-qbusiness-application-personalizationconfiguration-personalizationcontrolmode) + */ + public fun personalizationControlMode(): String + + /** + * A builder for [PersonalizationConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param personalizationControlMode An option to allow Amazon Q Business to customize chat + * responses using user specific metadata—specifically, location and job information—in your IAM + * Identity Center instance. + */ + public fun personalizationControlMode(personalizationControlMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty.builder() + + /** + * @param personalizationControlMode An option to allow Amazon Q Business to customize chat + * responses using user specific metadata—specifically, location and job information—in your IAM + * Identity Center instance. + */ + override fun personalizationControlMode(personalizationControlMode: String) { + cdkBuilder.personalizationControlMode(personalizationControlMode) + } + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty, + ) : CdkObject(cdkObject), + PersonalizationConfigurationProperty { + /** + * An option to allow Amazon Q Business to customize chat responses using user specific + * metadata—specifically, location and job information—in your IAM Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-personalizationconfiguration.html#cfn-qbusiness-application-personalizationconfiguration-personalizationcontrolmode) + */ + override fun personalizationControlMode(): String = + unwrap(this).getPersonalizationControlMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PersonalizationConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty): + PersonalizationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PersonalizationConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PersonalizationConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnApplication.PersonalizationConfigurationProperty + } + } + + /** + * Configuration information about Amazon Q Apps. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * QAppsConfigurationProperty qAppsConfigurationProperty = QAppsConfigurationProperty.builder() + * .qAppsControlMode("qAppsControlMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-qappsconfiguration.html) + */ + public interface QAppsConfigurationProperty { + /** + * Status information about whether end users can create and use Amazon Q Apps in the web + * experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-qappsconfiguration.html#cfn-qbusiness-application-qappsconfiguration-qappscontrolmode) + */ + public fun qAppsControlMode(): String + + /** + * A builder for [QAppsConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param qAppsControlMode Status information about whether end users can create and use + * Amazon Q Apps in the web experience. + */ + public fun qAppsControlMode(qAppsControlMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty.builder() + + /** + * @param qAppsControlMode Status information about whether end users can create and use + * Amazon Q Apps in the web experience. + */ + override fun qAppsControlMode(qAppsControlMode: String) { + cdkBuilder.qAppsControlMode(qAppsControlMode) + } + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty, + ) : CdkObject(cdkObject), + QAppsConfigurationProperty { + /** + * Status information about whether end users can create and use Amazon Q Apps in the web + * experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-application-qappsconfiguration.html#cfn-qbusiness-application-qappsconfiguration-qappscontrolmode) + */ + override fun qAppsControlMode(): String = unwrap(this).getQAppsControlMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): QAppsConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty): + QAppsConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + QAppsConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: QAppsConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnApplication.QAppsConfigurationProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplicationProps.kt index 4c8347bed1..5c0851b475 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnApplicationProps.kt @@ -28,11 +28,25 @@ import kotlin.jvm.JvmName * .attachmentsConfiguration(AttachmentsConfigurationProperty.builder() * .attachmentsControlMode("attachmentsControlMode") * .build()) + * .autoSubscriptionConfiguration(AutoSubscriptionConfigurationProperty.builder() + * .autoSubscribe("autoSubscribe") + * // the properties below are optional + * .defaultSubscriptionType("defaultSubscriptionType") + * .build()) + * .clientIdsForOidc(List.of("clientIdsForOidc")) * .description("description") * .encryptionConfiguration(EncryptionConfigurationProperty.builder() * .kmsKeyId("kmsKeyId") * .build()) + * .iamIdentityProviderArn("iamIdentityProviderArn") * .identityCenterInstanceArn("identityCenterInstanceArn") + * .identityType("identityType") + * .personalizationConfiguration(PersonalizationConfigurationProperty.builder() + * .personalizationControlMode("personalizationControlMode") + * .build()) + * .qAppsConfiguration(QAppsConfigurationProperty.builder() + * .qAppsControlMode("qAppsControlMode") + * .build()) * .roleArn("roleArn") * .tags(List.of(CfnTag.builder() * .key("key") @@ -51,6 +65,19 @@ public interface CfnApplicationProps { */ public fun attachmentsConfiguration(): Any? = unwrap(this).getAttachmentsConfiguration() + /** + * Subscription configuration information for an Amazon Q Business application using IAM identity + * federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + */ + public fun autoSubscriptionConfiguration(): Any? = unwrap(this).getAutoSubscriptionConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + */ + public fun clientIdsForOidc(): List = unwrap(this).getClientIdsForOidc() ?: emptyList() + /** * A description for the Amazon Q Business application. * @@ -74,6 +101,14 @@ public interface CfnApplicationProps { */ public fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-iamidentityproviderarn) + */ + public fun iamIdentityProviderArn(): String? = unwrap(this).getIamIdentityProviderArn() + /** * The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating * for—or connecting to—your Amazon Q Business application. @@ -84,10 +119,39 @@ public interface CfnApplicationProps { */ public fun identityCenterInstanceArn(): String? = unwrap(this).getIdentityCenterInstanceArn() + /** + * The authentication type being used by a Amazon Q Business application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-identitytype) + */ + public fun identityType(): String? = unwrap(this).getIdentityType() + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + */ + public fun personalizationConfiguration(): Any? = unwrap(this).getPersonalizationConfiguration() + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + */ + public fun qAppsConfiguration(): Any? = unwrap(this).getQAppsConfiguration() + /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon CloudWatch * logs and metrics. * + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-rolearn) */ public fun roleArn(): String? = unwrap(this).getRoleArn() @@ -129,6 +193,38 @@ public interface CfnApplicationProps { public fun attachmentsConfiguration(attachmentsConfiguration: CfnApplication.AttachmentsConfigurationProperty.Builder.() -> Unit) + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + public fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: IResolvable) + + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + public + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: CfnApplication.AutoSubscriptionConfigurationProperty) + + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b4b03e43a5c9a22aab39b9c8d3b9522ab56673c8ab94536da1dff6a8e022107") + public + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: CfnApplication.AutoSubscriptionConfigurationProperty.Builder.() -> Unit) + + /** + * @param clientIdsForOidc the value to be set. + */ + public fun clientIdsForOidc(clientIdsForOidc: List) + + /** + * @param clientIdsForOidc the value to be set. + */ + public fun clientIdsForOidc(vararg clientIdsForOidc: String) + /** * @param description A description for the Amazon Q Business application. */ @@ -164,6 +260,12 @@ public interface CfnApplicationProps { public fun encryptionConfiguration(encryptionConfiguration: CfnApplication.EncryptionConfigurationProperty.Builder.() -> Unit) + /** + * @param iamIdentityProviderArn The Amazon Resource Name (ARN) of an identity provider being + * used by an Amazon Q Business application. + */ + public fun iamIdentityProviderArn(iamIdentityProviderArn: String) + /** * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center * instance you are either creating for—or connecting to—your Amazon Q Business application. @@ -171,9 +273,66 @@ public interface CfnApplicationProps { */ public fun identityCenterInstanceArn(identityCenterInstanceArn: String) + /** + * @param identityType The authentication type being used by a Amazon Q Business application. + */ + public fun identityType(identityType: String) + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + public fun personalizationConfiguration(personalizationConfiguration: IResolvable) + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + public + fun personalizationConfiguration(personalizationConfiguration: CfnApplication.PersonalizationConfigurationProperty) + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7fe9f491f8046c630f861de4ae4f59762c0e99118e612ddbc3fba395f7b668f9") + public + fun personalizationConfiguration(personalizationConfiguration: CfnApplication.PersonalizationConfigurationProperty.Builder.() -> Unit) + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + public fun qAppsConfiguration(qAppsConfiguration: IResolvable) + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + public fun qAppsConfiguration(qAppsConfiguration: CfnApplication.QAppsConfigurationProperty) + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0f26f3a798119a59262229a82de5e820aafba5cc143caa174e523a1fe90eebd6") + public + fun qAppsConfiguration(qAppsConfiguration: CfnApplication.QAppsConfigurationProperty.Builder.() -> Unit) + /** * @param roleArn The Amazon Resource Name (ARN) of an IAM role with permissions to access your * Amazon CloudWatch logs and metrics. + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. */ public fun roleArn(roleArn: String) @@ -226,6 +385,47 @@ public interface CfnApplicationProps { Unit = attachmentsConfiguration(CfnApplication.AttachmentsConfigurationProperty(attachmentsConfiguration)) + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + override fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: IResolvable) { + cdkBuilder.autoSubscriptionConfiguration(autoSubscriptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + override + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: CfnApplication.AutoSubscriptionConfigurationProperty) { + cdkBuilder.autoSubscriptionConfiguration(autoSubscriptionConfiguration.let(CfnApplication.AutoSubscriptionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param autoSubscriptionConfiguration Subscription configuration information for an Amazon Q + * Business application using IAM identity federation for user management. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b4b03e43a5c9a22aab39b9c8d3b9522ab56673c8ab94536da1dff6a8e022107") + override + fun autoSubscriptionConfiguration(autoSubscriptionConfiguration: CfnApplication.AutoSubscriptionConfigurationProperty.Builder.() -> Unit): + Unit = + autoSubscriptionConfiguration(CfnApplication.AutoSubscriptionConfigurationProperty(autoSubscriptionConfiguration)) + + /** + * @param clientIdsForOidc the value to be set. + */ + override fun clientIdsForOidc(clientIdsForOidc: List) { + cdkBuilder.clientIdsForOidc(clientIdsForOidc) + } + + /** + * @param clientIdsForOidc the value to be set. + */ + override fun clientIdsForOidc(vararg clientIdsForOidc: String): Unit = + clientIdsForOidc(clientIdsForOidc.toList()) + /** * @param description A description for the Amazon Q Business application. */ @@ -271,6 +471,14 @@ public interface CfnApplicationProps { Unit = encryptionConfiguration(CfnApplication.EncryptionConfigurationProperty(encryptionConfiguration)) + /** + * @param iamIdentityProviderArn The Amazon Resource Name (ARN) of an identity provider being + * used by an Amazon Q Business application. + */ + override fun iamIdentityProviderArn(iamIdentityProviderArn: String) { + cdkBuilder.iamIdentityProviderArn(iamIdentityProviderArn) + } + /** * @param identityCenterInstanceArn The Amazon Resource Name (ARN) of the IAM Identity Center * instance you are either creating for—or connecting to—your Amazon Q Business application. @@ -280,9 +488,79 @@ public interface CfnApplicationProps { cdkBuilder.identityCenterInstanceArn(identityCenterInstanceArn) } + /** + * @param identityType The authentication type being used by a Amazon Q Business application. + */ + override fun identityType(identityType: String) { + cdkBuilder.identityType(identityType) + } + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + override fun personalizationConfiguration(personalizationConfiguration: IResolvable) { + cdkBuilder.personalizationConfiguration(personalizationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + override + fun personalizationConfiguration(personalizationConfiguration: CfnApplication.PersonalizationConfigurationProperty) { + cdkBuilder.personalizationConfiguration(personalizationConfiguration.let(CfnApplication.PersonalizationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param personalizationConfiguration Configuration information about chat response + * personalization. + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7fe9f491f8046c630f861de4ae4f59762c0e99118e612ddbc3fba395f7b668f9") + override + fun personalizationConfiguration(personalizationConfiguration: CfnApplication.PersonalizationConfigurationProperty.Builder.() -> Unit): + Unit = + personalizationConfiguration(CfnApplication.PersonalizationConfigurationProperty(personalizationConfiguration)) + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + override fun qAppsConfiguration(qAppsConfiguration: IResolvable) { + cdkBuilder.qAppsConfiguration(qAppsConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + override fun qAppsConfiguration(qAppsConfiguration: CfnApplication.QAppsConfigurationProperty) { + cdkBuilder.qAppsConfiguration(qAppsConfiguration.let(CfnApplication.QAppsConfigurationProperty.Companion::unwrap)) + } + + /** + * @param qAppsConfiguration Configuration information about Amazon Q Apps. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0f26f3a798119a59262229a82de5e820aafba5cc143caa174e523a1fe90eebd6") + override + fun qAppsConfiguration(qAppsConfiguration: CfnApplication.QAppsConfigurationProperty.Builder.() -> Unit): + Unit = qAppsConfiguration(CfnApplication.QAppsConfigurationProperty(qAppsConfiguration)) + /** * @param roleArn The Amazon Resource Name (ARN) of an IAM role with permissions to access your * Amazon CloudWatch logs and metrics. + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) @@ -312,7 +590,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * Configuration information for the file upload during chat feature. * @@ -320,6 +599,21 @@ public interface CfnApplicationProps { */ override fun attachmentsConfiguration(): Any? = unwrap(this).getAttachmentsConfiguration() + /** + * Subscription configuration information for an Amazon Q Business application using IAM + * identity federation for user management. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-autosubscriptionconfiguration) + */ + override fun autoSubscriptionConfiguration(): Any? = + unwrap(this).getAutoSubscriptionConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-clientidsforoidc) + */ + override fun clientIdsForOidc(): List = unwrap(this).getClientIdsForOidc() ?: + emptyList() + /** * A description for the Amazon Q Business application. * @@ -343,6 +637,14 @@ public interface CfnApplicationProps { */ override fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** + * The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-iamidentityproviderarn) + */ + override fun iamIdentityProviderArn(): String? = unwrap(this).getIamIdentityProviderArn() + /** * The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating * for—or connecting to—your Amazon Q Business application. @@ -353,10 +655,40 @@ public interface CfnApplicationProps { */ override fun identityCenterInstanceArn(): String? = unwrap(this).getIdentityCenterInstanceArn() + /** + * The authentication type being used by a Amazon Q Business application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-identitytype) + */ + override fun identityType(): String? = unwrap(this).getIdentityType() + + /** + * Configuration information about chat response personalization. + * + * For more information, see [Personalizing chat + * responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-personalizationconfiguration) + */ + override fun personalizationConfiguration(): Any? = + unwrap(this).getPersonalizationConfiguration() + + /** + * Configuration information about Amazon Q Apps. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-qappsconfiguration) + */ + override fun qAppsConfiguration(): Any? = unwrap(this).getQAppsConfiguration() + /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon * CloudWatch logs and metrics. * + * If this property is not specified, Amazon Q Business will create a [service linked role + * (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + * and use it as the application's role. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-application.html#cfn-qbusiness-application-rolearn) */ override fun roleArn(): String? = unwrap(this).getRoleArn() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSource.kt index 4713172025..9a495f6dae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSource.kt @@ -117,7 +117,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -183,12 +185,14 @@ public open class CfnDataSource( unwrap(this).getCdkTagManager().let(TagManager::wrap) /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . */ public open fun configuration(): Any = unwrap(this).getConfiguration() /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . */ public open fun configuration(`value`: Any) { unwrap(this).setConfiguration(`value`) @@ -364,13 +368,23 @@ public open class CfnDataSource( public fun applicationId(applicationId: String) /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . * - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: + * + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + * page in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html#cfn-qbusiness-datasource-configuration) - * @param configuration Configuration information to connect to your data source repository. + * @param configuration Use this property to specify a JSON or YAML schema with configuration + * information specific to your data source connector to connect your data source repository to + * Amazon Q Business . */ public fun configuration(configuration: Any) @@ -556,13 +570,23 @@ public open class CfnDataSource( } /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . + * + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: * - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + * page in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html#cfn-qbusiness-datasource-configuration) - * @param configuration Configuration information to connect to your data source repository. + * @param configuration Use this property to specify a JSON or YAML schema with configuration + * information specific to your data source connector to connect your data source repository to + * Amazon Q Business . */ override fun configuration(configuration: Any) { cdkBuilder.configuration(configuration) @@ -891,7 +915,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.DataSourceVpcConfigurationProperty, - ) : CdkObject(cdkObject), DataSourceVpcConfigurationProperty { + ) : CdkObject(cdkObject), + DataSourceVpcConfigurationProperty { /** * A list of identifiers of security groups within your Amazon VPC. * @@ -1115,7 +1140,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.DocumentAttributeConditionProperty, - ) : CdkObject(cdkObject), DocumentAttributeConditionProperty { + ) : CdkObject(cdkObject), + DocumentAttributeConditionProperty { /** * The identifier of the document attribute used for the condition. * @@ -1336,7 +1362,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.DocumentAttributeTargetProperty, - ) : CdkObject(cdkObject), DocumentAttributeTargetProperty { + ) : CdkObject(cdkObject), + DocumentAttributeTargetProperty { /** * `TRUE` to delete the existing target value for your specified target attribute key. * @@ -1523,7 +1550,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.DocumentAttributeValueProperty, - ) : CdkObject(cdkObject), DocumentAttributeValueProperty { + ) : CdkObject(cdkObject), + DocumentAttributeValueProperty { /** * A date expressed as an ISO 8601 string. * @@ -1905,7 +1933,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.DocumentEnrichmentConfigurationProperty, - ) : CdkObject(cdkObject), DocumentEnrichmentConfigurationProperty { + ) : CdkObject(cdkObject), + DocumentEnrichmentConfigurationProperty { /** * Configuration information to alter document attributes or metadata fields and content when * ingesting documents into Amazon Q Business. @@ -2176,7 +2205,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.HookConfigurationProperty, - ) : CdkObject(cdkObject), HookConfigurationProperty { + ) : CdkObject(cdkObject), + HookConfigurationProperty { /** * The condition used for when a Lambda function should be invoked. * @@ -2442,7 +2472,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSource.InlineDocumentEnrichmentConfigurationProperty, - ) : CdkObject(cdkObject), InlineDocumentEnrichmentConfigurationProperty { + ) : CdkObject(cdkObject), + InlineDocumentEnrichmentConfigurationProperty { /** * Configuration of the condition used for the target document attribute or metadata field * when ingesting documents into Amazon Q Business . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSourceProps.kt index f6b289e42f..58e0f87bc7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnDataSourceProps.kt @@ -113,10 +113,18 @@ public interface CfnDataSourceProps { public fun applicationId(): String /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . * - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: + * + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) page + * in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html#cfn-qbusiness-datasource-configuration) */ @@ -212,9 +220,18 @@ public interface CfnDataSourceProps { public fun applicationId(applicationId: String) /** - * @param configuration Configuration information to connect to your data source repository. - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * @param configuration Use this property to specify a JSON or YAML schema with configuration + * information specific to your data source connector to connect your data source repository to + * Amazon Q Business . + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: + * + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + * page in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. */ public fun configuration(configuration: Any) @@ -338,9 +355,18 @@ public interface CfnDataSourceProps { } /** - * @param configuration Configuration information to connect to your data source repository. - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * @param configuration Use this property to specify a JSON or YAML schema with configuration + * information specific to your data source connector to connect your data source repository to + * Amazon Q Business . + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: + * + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + * page in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. */ override fun configuration(configuration: Any) { cdkBuilder.configuration(configuration) @@ -482,7 +508,8 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** * The identifier of the Amazon Q Business application the data source will be attached to. * @@ -491,10 +518,18 @@ public interface CfnDataSourceProps { override fun applicationId(): String = unwrap(this).getApplicationId() /** - * Configuration information to connect to your data source repository. + * Use this property to specify a JSON or YAML schema with configuration information specific to + * your data source connector to connect your data source repository to Amazon Q Business . + * + * You must use the JSON or YAML schema provided by Amazon Q . + * + * You can find configuration templates for your specific data source using the following steps: * - * For configuration templates for your specific data source, see [Supported - * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) . + * * Navigate to the [Supported + * connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + * page in the Amazon Q Business User Guide, and select the data source connector of your choice. + * * Then, from that specific data source connector's page, select *Using AWS CloudFormation* to + * find the schemas for your data source connector, including parameter descriptions and examples. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html#cfn-qbusiness-datasource-configuration) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndex.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndex.kt index cce3f3e7e7..fb11219f9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndex.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndex.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIndex( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndex, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -673,7 +675,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndex.DocumentAttributeConfigurationProperty, - ) : CdkObject(cdkObject), DocumentAttributeConfigurationProperty { + ) : CdkObject(cdkObject), + DocumentAttributeConfigurationProperty { /** * The name of the document attribute. * @@ -772,7 +775,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndex.IndexCapacityConfigurationProperty, - ) : CdkObject(cdkObject), IndexCapacityConfigurationProperty { + ) : CdkObject(cdkObject), + IndexCapacityConfigurationProperty { /** * The number of storage units configured for an Amazon Q Business index. * @@ -885,7 +889,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndex.IndexStatisticsProperty, - ) : CdkObject(cdkObject), IndexStatisticsProperty { + ) : CdkObject(cdkObject), + IndexStatisticsProperty { /** * The number of documents indexed. * @@ -988,7 +993,8 @@ public open class CfnIndex( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndex.TextDocumentStatisticsProperty, - ) : CdkObject(cdkObject), TextDocumentStatisticsProperty { + ) : CdkObject(cdkObject), + TextDocumentStatisticsProperty { /** * The total size, in bytes, of the indexed documents. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndexProps.kt index c9dda94930..8cc58f4991 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnIndexProps.kt @@ -322,7 +322,8 @@ public interface CfnIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnIndexProps, - ) : CdkObject(cdkObject), CfnIndexProps { + ) : CdkObject(cdkObject), + CfnIndexProps { /** * The identifier of the Amazon Q Business application using the index. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPlugin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPlugin.kt index b340d18cfd..b16e9f916a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPlugin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPlugin.kt @@ -70,7 +70,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlugin( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -693,7 +695,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.APISchemaProperty, - ) : CdkObject(cdkObject), APISchemaProperty { + ) : CdkObject(cdkObject), + APISchemaProperty { /** * The JSON or YAML-formatted payload defining the OpenAPI schema for a custom plugin. * @@ -811,7 +814,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.BasicAuthConfigurationProperty, - ) : CdkObject(cdkObject), BasicAuthConfigurationProperty { + ) : CdkObject(cdkObject), + BasicAuthConfigurationProperty { /** * The ARN of an IAM role used by Amazon Q Business to access the basic authentication * credentials stored in a Secrets Manager secret. @@ -983,7 +987,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.CustomPluginConfigurationProperty, - ) : CdkObject(cdkObject), CustomPluginConfigurationProperty { + ) : CdkObject(cdkObject), + CustomPluginConfigurationProperty { /** * Contains either details about the S3 object containing the OpenAPI schema for the action * group or the JSON or YAML-formatted payload defining the schema. @@ -1108,7 +1113,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.OAuth2ClientCredentialConfigurationProperty, - ) : CdkObject(cdkObject), OAuth2ClientCredentialConfigurationProperty { + ) : CdkObject(cdkObject), + OAuth2ClientCredentialConfigurationProperty { /** * The ARN of an IAM role used by Amazon Q Business to access the OAuth 2.0 authentication * credentials stored in a Secrets Manager secret. @@ -1326,7 +1332,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.PluginAuthConfigurationProperty, - ) : CdkObject(cdkObject), PluginAuthConfigurationProperty { + ) : CdkObject(cdkObject), + PluginAuthConfigurationProperty { /** * Information about the basic authentication credentials used to configure a plugin. * @@ -1440,7 +1447,8 @@ public open class CfnPlugin( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPlugin.S3Property, - ) : CdkObject(cdkObject), S3Property { + ) : CdkObject(cdkObject), + S3Property { /** * The name of the S3 bucket that contains the file. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPluginProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPluginProps.kt index fe717b62c1..94d74ec01c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPluginProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnPluginProps.kt @@ -329,7 +329,8 @@ public interface CfnPluginProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnPluginProps, - ) : CdkObject(cdkObject), CfnPluginProps { + ) : CdkObject(cdkObject), + CfnPluginProps { /** * The identifier of the application that will contain the plugin. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetriever.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetriever.kt index 1dbf187cc9..da4e19039f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetriever.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetriever.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRetriever( cdkObject: software.amazon.awscdk.services.qbusiness.CfnRetriever, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -495,7 +497,8 @@ public open class CfnRetriever( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnRetriever.KendraIndexConfigurationProperty, - ) : CdkObject(cdkObject), KendraIndexConfigurationProperty { + ) : CdkObject(cdkObject), + KendraIndexConfigurationProperty { /** * The identifier of the Amazon Kendra index. * @@ -578,7 +581,8 @@ public open class CfnRetriever( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnRetriever.NativeIndexConfigurationProperty, - ) : CdkObject(cdkObject), NativeIndexConfigurationProperty { + ) : CdkObject(cdkObject), + NativeIndexConfigurationProperty { /** * The identifier for the Amazon Q Business index. * @@ -764,7 +768,8 @@ public open class CfnRetriever( private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnRetriever.RetrieverConfigurationProperty, - ) : CdkObject(cdkObject), RetrieverConfigurationProperty { + ) : CdkObject(cdkObject), + RetrieverConfigurationProperty { /** * Provides information on how the Amazon Kendra index used as a retriever for your Amazon Q * Business application is configured. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetrieverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetrieverProps.kt index 66bde1d4f5..dbaafeccf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetrieverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnRetrieverProps.kt @@ -238,7 +238,8 @@ public interface CfnRetrieverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnRetrieverProps, - ) : CdkObject(cdkObject), CfnRetrieverProps { + ) : CdkObject(cdkObject), + CfnRetrieverProps { /** * The identifier of the Amazon Q Business application using the retriever. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperience.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperience.kt index 69c26bb3ad..443e9bc4bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperience.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperience.kt @@ -5,13 +5,18 @@ package io.cloudshiftdev.awscdk.services.qbusiness import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.CfnTag import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggableV2 import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -27,6 +32,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnWebExperience cfnWebExperience = CfnWebExperience.Builder.create(this, "MyCfnWebExperience") * .applicationId("applicationId") * // the properties below are optional + * .identityProviderConfiguration(IdentityProviderConfigurationProperty.builder() + * .openIdConnectConfiguration(OpenIDConnectProviderConfigurationProperty.builder() + * .secretsArn("secretsArn") + * .secretsRole("secretsRole") + * .build()) + * .samlConfiguration(SamlProviderConfigurationProperty.builder() + * .authenticationUrl("authenticationUrl") + * .build()) + * .build()) * .roleArn("roleArn") * .samplePromptsControlMode("samplePromptsControlMode") * .subtitle("subtitle") @@ -43,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebExperience( cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -110,6 +126,39 @@ public open class CfnWebExperience( public override fun cdkTagManager(): TagManager = unwrap(this).getCdkTagManager().let(TagManager::wrap) + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + */ + public open fun identityProviderConfiguration(): Any? = + unwrap(this).getIdentityProviderConfiguration() + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + */ + public open fun identityProviderConfiguration(`value`: IResolvable) { + unwrap(this).setIdentityProviderConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + */ + public open fun identityProviderConfiguration(`value`: IdentityProviderConfigurationProperty) { + unwrap(this).setIdentityProviderConfiguration(`value`.let(IdentityProviderConfigurationProperty.Companion::unwrap)) + } + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("903cfc8bf4232863db0899fbdb71d7c0cee5d2124d73f67f9ffa315b1e8134dc") + public open + fun identityProviderConfiguration(`value`: IdentityProviderConfigurationProperty.Builder.() -> Unit): + Unit = identityProviderConfiguration(IdentityProviderConfigurationProperty(`value`)) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -209,9 +258,49 @@ public open class CfnWebExperience( */ public fun applicationId(applicationId: String) + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + public fun identityProviderConfiguration(identityProviderConfiguration: IResolvable) + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + public + fun identityProviderConfiguration(identityProviderConfiguration: IdentityProviderConfigurationProperty) + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("57f86501bd3b16088abd77fc6c5d3047e5b55983ed4dc477068e2d0ad803b46f") + public + fun identityProviderConfiguration(identityProviderConfiguration: IdentityProviderConfigurationProperty.Builder.() -> Unit) + /** * The Amazon Resource Name (ARN) of the service role attached to your web experience. * + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't + * need to provide this value. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-rolearn) * @param roleArn The Amazon Resource Name (ARN) of the service role attached to your web * experience. @@ -293,9 +382,55 @@ public open class CfnWebExperience( cdkBuilder.applicationId(applicationId) } + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + override fun identityProviderConfiguration(identityProviderConfiguration: IResolvable) { + cdkBuilder.identityProviderConfiguration(identityProviderConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + override + fun identityProviderConfiguration(identityProviderConfiguration: IdentityProviderConfigurationProperty) { + cdkBuilder.identityProviderConfiguration(identityProviderConfiguration.let(IdentityProviderConfigurationProperty.Companion::unwrap)) + } + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("57f86501bd3b16088abd77fc6c5d3047e5b55983ed4dc477068e2d0ad803b46f") + override + fun identityProviderConfiguration(identityProviderConfiguration: IdentityProviderConfigurationProperty.Builder.() -> Unit): + Unit = + identityProviderConfiguration(IdentityProviderConfigurationProperty(identityProviderConfiguration)) + /** * The Amazon Resource Name (ARN) of the service role attached to your web experience. * + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't + * need to provide this value. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-rolearn) * @param roleArn The Amazon Resource Name (ARN) of the service role attached to your web * experience. @@ -395,4 +530,383 @@ public open class CfnWebExperience( software.amazon.awscdk.services.qbusiness.CfnWebExperience = wrapped.cdkObject as software.amazon.awscdk.services.qbusiness.CfnWebExperience } + + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * IdentityProviderConfigurationProperty identityProviderConfigurationProperty = + * IdentityProviderConfigurationProperty.builder() + * .openIdConnectConfiguration(OpenIDConnectProviderConfigurationProperty.builder() + * .secretsArn("secretsArn") + * .secretsRole("secretsRole") + * .build()) + * .samlConfiguration(SamlProviderConfigurationProperty.builder() + * .authenticationUrl("authenticationUrl") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-identityproviderconfiguration.html) + */ + public interface IdentityProviderConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-identityproviderconfiguration.html#cfn-qbusiness-webexperience-identityproviderconfiguration-openidconnectconfiguration) + */ + public fun openIdConnectConfiguration(): Any? = unwrap(this).getOpenIdConnectConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-identityproviderconfiguration.html#cfn-qbusiness-webexperience-identityproviderconfiguration-samlconfiguration) + */ + public fun samlConfiguration(): Any? = unwrap(this).getSamlConfiguration() + + /** + * A builder for [IdentityProviderConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param openIdConnectConfiguration the value to be set. + */ + public fun openIdConnectConfiguration(openIdConnectConfiguration: IResolvable) + + /** + * @param openIdConnectConfiguration the value to be set. + */ + public + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIDConnectProviderConfigurationProperty) + + /** + * @param openIdConnectConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a5e15aacb6e057d775f92d0dea96c2517fb15bad90a175296f59f1b6e7d293c") + public + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIDConnectProviderConfigurationProperty.Builder.() -> Unit) + + /** + * @param samlConfiguration the value to be set. + */ + public fun samlConfiguration(samlConfiguration: IResolvable) + + /** + * @param samlConfiguration the value to be set. + */ + public fun samlConfiguration(samlConfiguration: SamlProviderConfigurationProperty) + + /** + * @param samlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6826baa48b87c9780151c121965349b66056e067eb48f76d86201bd065e3909") + public + fun samlConfiguration(samlConfiguration: SamlProviderConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty.builder() + + /** + * @param openIdConnectConfiguration the value to be set. + */ + override fun openIdConnectConfiguration(openIdConnectConfiguration: IResolvable) { + cdkBuilder.openIdConnectConfiguration(openIdConnectConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param openIdConnectConfiguration the value to be set. + */ + override + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIDConnectProviderConfigurationProperty) { + cdkBuilder.openIdConnectConfiguration(openIdConnectConfiguration.let(OpenIDConnectProviderConfigurationProperty.Companion::unwrap)) + } + + /** + * @param openIdConnectConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a5e15aacb6e057d775f92d0dea96c2517fb15bad90a175296f59f1b6e7d293c") + override + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIDConnectProviderConfigurationProperty.Builder.() -> Unit): + Unit = + openIdConnectConfiguration(OpenIDConnectProviderConfigurationProperty(openIdConnectConfiguration)) + + /** + * @param samlConfiguration the value to be set. + */ + override fun samlConfiguration(samlConfiguration: IResolvable) { + cdkBuilder.samlConfiguration(samlConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param samlConfiguration the value to be set. + */ + override fun samlConfiguration(samlConfiguration: SamlProviderConfigurationProperty) { + cdkBuilder.samlConfiguration(samlConfiguration.let(SamlProviderConfigurationProperty.Companion::unwrap)) + } + + /** + * @param samlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6826baa48b87c9780151c121965349b66056e067eb48f76d86201bd065e3909") + override + fun samlConfiguration(samlConfiguration: SamlProviderConfigurationProperty.Builder.() -> Unit): + Unit = samlConfiguration(SamlProviderConfigurationProperty(samlConfiguration)) + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty, + ) : CdkObject(cdkObject), + IdentityProviderConfigurationProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-identityproviderconfiguration.html#cfn-qbusiness-webexperience-identityproviderconfiguration-openidconnectconfiguration) + */ + override fun openIdConnectConfiguration(): Any? = unwrap(this).getOpenIdConnectConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-identityproviderconfiguration.html#cfn-qbusiness-webexperience-identityproviderconfiguration-samlconfiguration) + */ + override fun samlConfiguration(): Any? = unwrap(this).getSamlConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdentityProviderConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty): + IdentityProviderConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdentityProviderConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdentityProviderConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnWebExperience.IdentityProviderConfigurationProperty + } + } + + /** + * Information about the OIDC-compliant identity provider (IdP) used to authenticate end users of + * an Amazon Q Business web experience. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * OpenIDConnectProviderConfigurationProperty openIDConnectProviderConfigurationProperty = + * OpenIDConnectProviderConfigurationProperty.builder() + * .secretsArn("secretsArn") + * .secretsRole("secretsRole") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-openidconnectproviderconfiguration.html) + */ + public interface OpenIDConnectProviderConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of a Secrets Manager secret containing the OIDC client secret. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-openidconnectproviderconfiguration.html#cfn-qbusiness-webexperience-openidconnectproviderconfiguration-secretsarn) + */ + public fun secretsArn(): String + + /** + * An IAM role with permissions to access AWS KMS to decrypt the Secrets Manager secret + * containing your OIDC client secret. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-openidconnectproviderconfiguration.html#cfn-qbusiness-webexperience-openidconnectproviderconfiguration-secretsrole) + */ + public fun secretsRole(): String + + /** + * A builder for [OpenIDConnectProviderConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param secretsArn The Amazon Resource Name (ARN) of a Secrets Manager secret containing the + * OIDC client secret. + */ + public fun secretsArn(secretsArn: String) + + /** + * @param secretsRole An IAM role with permissions to access AWS KMS to decrypt the Secrets + * Manager secret containing your OIDC client secret. + */ + public fun secretsRole(secretsRole: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty.builder() + + /** + * @param secretsArn The Amazon Resource Name (ARN) of a Secrets Manager secret containing the + * OIDC client secret. + */ + override fun secretsArn(secretsArn: String) { + cdkBuilder.secretsArn(secretsArn) + } + + /** + * @param secretsRole An IAM role with permissions to access AWS KMS to decrypt the Secrets + * Manager secret containing your OIDC client secret. + */ + override fun secretsRole(secretsRole: String) { + cdkBuilder.secretsRole(secretsRole) + } + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIDConnectProviderConfigurationProperty { + /** + * The Amazon Resource Name (ARN) of a Secrets Manager secret containing the OIDC client + * secret. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-openidconnectproviderconfiguration.html#cfn-qbusiness-webexperience-openidconnectproviderconfiguration-secretsarn) + */ + override fun secretsArn(): String = unwrap(this).getSecretsArn() + + /** + * An IAM role with permissions to access AWS KMS to decrypt the Secrets Manager secret + * containing your OIDC client secret. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-openidconnectproviderconfiguration.html#cfn-qbusiness-webexperience-openidconnectproviderconfiguration-secretsrole) + */ + override fun secretsRole(): String = unwrap(this).getSecretsRole() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIDConnectProviderConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty): + OpenIDConnectProviderConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIDConnectProviderConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIDConnectProviderConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnWebExperience.OpenIDConnectProviderConfigurationProperty + } + } + + /** + * Information about the SAML 2.0-compliant identity provider (IdP) used to authenticate end users + * of an Amazon Q Business web experience. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.qbusiness.*; + * SamlProviderConfigurationProperty samlProviderConfigurationProperty = + * SamlProviderConfigurationProperty.builder() + * .authenticationUrl("authenticationUrl") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-samlproviderconfiguration.html) + */ + public interface SamlProviderConfigurationProperty { + /** + * The URL where Amazon Q Business end users will be redirected for authentication. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-samlproviderconfiguration.html#cfn-qbusiness-webexperience-samlproviderconfiguration-authenticationurl) + */ + public fun authenticationUrl(): String + + /** + * A builder for [SamlProviderConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param authenticationUrl The URL where Amazon Q Business end users will be redirected for + * authentication. + */ + public fun authenticationUrl(authenticationUrl: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty.Builder + = + software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty.builder() + + /** + * @param authenticationUrl The URL where Amazon Q Business end users will be redirected for + * authentication. + */ + override fun authenticationUrl(authenticationUrl: String) { + cdkBuilder.authenticationUrl(authenticationUrl) + } + + public fun build(): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty, + ) : CdkObject(cdkObject), + SamlProviderConfigurationProperty { + /** + * The URL where Amazon Q Business end users will be redirected for authentication. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-webexperience-samlproviderconfiguration.html#cfn-qbusiness-webexperience-samlproviderconfiguration-authenticationurl) + */ + override fun authenticationUrl(): String = unwrap(this).getAuthenticationUrl() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SamlProviderConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty): + SamlProviderConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SamlProviderConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SamlProviderConfigurationProperty): + software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.qbusiness.CfnWebExperience.SamlProviderConfigurationProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperienceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperienceProps.kt index 7312c5e802..165addc294 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperienceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qbusiness/CfnWebExperienceProps.kt @@ -3,12 +3,15 @@ package io.cloudshiftdev.awscdk.services.qbusiness import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a `CfnWebExperience`. @@ -22,6 +25,15 @@ import kotlin.collections.List * CfnWebExperienceProps cfnWebExperienceProps = CfnWebExperienceProps.builder() * .applicationId("applicationId") * // the properties below are optional + * .identityProviderConfiguration(IdentityProviderConfigurationProperty.builder() + * .openIdConnectConfiguration(OpenIDConnectProviderConfigurationProperty.builder() + * .secretsArn("secretsArn") + * .secretsRole("secretsRole") + * .build()) + * .samlConfiguration(SamlProviderConfigurationProperty.builder() + * .authenticationUrl("authenticationUrl") + * .build()) + * .build()) * .roleArn("roleArn") * .samplePromptsControlMode("samplePromptsControlMode") * .subtitle("subtitle") @@ -44,9 +56,23 @@ public interface CfnWebExperienceProps { */ public fun applicationId(): String + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + */ + public fun identityProviderConfiguration(): Any? = unwrap(this).getIdentityProviderConfiguration() + /** * The Amazon Resource Name (ARN) of the service role attached to your web experience. * + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't need + * to provide this value. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-rolearn) */ public fun roleArn(): String? = unwrap(this).getRoleArn() @@ -99,9 +125,35 @@ public interface CfnWebExperienceProps { */ public fun applicationId(applicationId: String) + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + public fun identityProviderConfiguration(identityProviderConfiguration: IResolvable) + + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + public + fun identityProviderConfiguration(identityProviderConfiguration: CfnWebExperience.IdentityProviderConfigurationProperty) + + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e1334806cf79c952d418cfe28c0781a9868ab9e4f550f7fc6adf7114b645a4f5") + public + fun identityProviderConfiguration(identityProviderConfiguration: CfnWebExperience.IdentityProviderConfigurationProperty.Builder.() -> Unit) + /** * @param roleArn The Amazon Resource Name (ARN) of the service role attached to your web * experience. + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't + * need to provide this value. */ public fun roleArn(roleArn: String) @@ -154,9 +206,41 @@ public interface CfnWebExperienceProps { cdkBuilder.applicationId(applicationId) } + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + override fun identityProviderConfiguration(identityProviderConfiguration: IResolvable) { + cdkBuilder.identityProviderConfiguration(identityProviderConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + override + fun identityProviderConfiguration(identityProviderConfiguration: CfnWebExperience.IdentityProviderConfigurationProperty) { + cdkBuilder.identityProviderConfiguration(identityProviderConfiguration.let(CfnWebExperience.IdentityProviderConfigurationProperty.Companion::unwrap)) + } + + /** + * @param identityProviderConfiguration Provides information about the identity provider (IdP) + * used to authenticate end users of an Amazon Q Business web experience. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e1334806cf79c952d418cfe28c0781a9868ab9e4f550f7fc6adf7114b645a4f5") + override + fun identityProviderConfiguration(identityProviderConfiguration: CfnWebExperience.IdentityProviderConfigurationProperty.Builder.() -> Unit): + Unit = + identityProviderConfiguration(CfnWebExperience.IdentityProviderConfigurationProperty(identityProviderConfiguration)) + /** * @param roleArn The Amazon Resource Name (ARN) of the service role attached to your web * experience. + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't + * need to provide this value. */ override fun roleArn(roleArn: String) { cdkBuilder.roleArn(roleArn) @@ -215,7 +299,8 @@ public interface CfnWebExperienceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qbusiness.CfnWebExperienceProps, - ) : CdkObject(cdkObject), CfnWebExperienceProps { + ) : CdkObject(cdkObject), + CfnWebExperienceProps { /** * The identifier of the Amazon Q Business web experience. * @@ -223,9 +308,24 @@ public interface CfnWebExperienceProps { */ override fun applicationId(): String = unwrap(this).getApplicationId() + /** + * Provides information about the identity provider (IdP) used to authenticate end users of an + * Amazon Q Business web experience. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-identityproviderconfiguration) + */ + override fun identityProviderConfiguration(): Any? = + unwrap(this).getIdentityProviderConfiguration() + /** * The Amazon Resource Name (ARN) of the service role attached to your web experience. * + * + * You must provide this value if you're using IAM Identity Center to manage end user access to + * your application. If you're using legacy identity management to manage user access, you don't + * need to provide this value. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-webexperience.html#cfn-qbusiness-webexperience-rolearn) */ override fun roleArn(): String? = unwrap(this).getRoleArn() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedger.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedger.kt index cbf05dd6d2..c2fe02ac57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedger.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedger.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLedger( cdkObject: software.amazon.awscdk.services.qldb.CfnLedger, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedgerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedgerProps.kt index 9cecbf8b1a..373153ccc5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedgerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnLedgerProps.kt @@ -394,7 +394,8 @@ public interface CfnLedgerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qldb.CfnLedgerProps, - ) : CdkObject(cdkObject), CfnLedgerProps { + ) : CdkObject(cdkObject), + CfnLedgerProps { /** * Specifies whether the ledger is protected from being deleted by any user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStream.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStream.kt index 0dc83fed9c..cd45120ee0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStream.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStream.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStream( cdkObject: software.amazon.awscdk.services.qldb.CfnStream, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -648,7 +650,8 @@ public open class CfnStream( private class Wrapper( cdkObject: software.amazon.awscdk.services.qldb.CfnStream.KinesisConfigurationProperty, - ) : CdkObject(cdkObject), KinesisConfigurationProperty { + ) : CdkObject(cdkObject), + KinesisConfigurationProperty { /** * Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, * increasing the number of records sent per API call. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStreamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStreamProps.kt index 06dc69f028..52e2f2c80c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStreamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/qldb/CfnStreamProps.kt @@ -322,7 +322,8 @@ public interface CfnStreamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.qldb.CfnStreamProps, - ) : CdkObject(cdkObject), CfnStreamProps { + ) : CdkObject(cdkObject), + CfnStreamProps { /** * The exclusive date and time that specifies when the stream ends. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysis.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysis.kt index c2cf82f195..57704e880c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysis.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysis.kt @@ -34,7 +34,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAnalysis( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1238,7 +1240,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AggregationFunctionProperty, - ) : CdkObject(cdkObject), AggregationFunctionProperty { + ) : CdkObject(cdkObject), + AggregationFunctionProperty { /** * Aggregation for attributes. * @@ -1473,7 +1476,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AggregationSortConfigurationProperty, - ) : CdkObject(cdkObject), AggregationSortConfigurationProperty { + ) : CdkObject(cdkObject), + AggregationSortConfigurationProperty { /** * The function that aggregates the values in `Column` . * @@ -1640,7 +1644,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnalysisDefaultsProperty, - ) : CdkObject(cdkObject), AnalysisDefaultsProperty { + ) : CdkObject(cdkObject), + AnalysisDefaultsProperty { /** * The configuration for default new sheet settings. * @@ -1742,6 +1747,11 @@ public open class CfnAnalysis( */ public fun parameterDeclarations(): Any? = unwrap(this).getParameterDeclarations() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-analysisdefinition.html#cfn-quicksight-analysis-analysisdefinition-queryexecutionoptions) + */ + public fun queryExecutionOptions(): Any? = unwrap(this).getQueryExecutionOptions() + /** * An array of sheet definitions for an analysis. * @@ -1901,6 +1911,24 @@ public open class CfnAnalysis( */ public fun parameterDeclarations(vararg parameterDeclarations: Any) + /** + * @param queryExecutionOptions the value to be set. + */ + public fun queryExecutionOptions(queryExecutionOptions: IResolvable) + + /** + * @param queryExecutionOptions the value to be set. + */ + public fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty) + + /** + * @param queryExecutionOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b4a1bf3cb26deebd75aeab81ba6d58e774e79b8d41ca119ecf159b22ab8ff753") + public + fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty.Builder.() -> Unit) + /** * @param sheets An array of sheet definitions for an analysis. * Each `SheetDefinition` provides detailed information about a sheet within this analysis. @@ -2106,6 +2134,29 @@ public open class CfnAnalysis( override fun parameterDeclarations(vararg parameterDeclarations: Any): Unit = parameterDeclarations(parameterDeclarations.toList()) + /** + * @param queryExecutionOptions the value to be set. + */ + override fun queryExecutionOptions(queryExecutionOptions: IResolvable) { + cdkBuilder.queryExecutionOptions(queryExecutionOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param queryExecutionOptions the value to be set. + */ + override fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty) { + cdkBuilder.queryExecutionOptions(queryExecutionOptions.let(QueryExecutionOptionsProperty.Companion::unwrap)) + } + + /** + * @param queryExecutionOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b4a1bf3cb26deebd75aeab81ba6d58e774e79b8d41ca119ecf159b22ab8ff753") + override + fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty.Builder.() -> Unit): + Unit = queryExecutionOptions(QueryExecutionOptionsProperty(queryExecutionOptions)) + /** * @param sheets An array of sheet definitions for an analysis. * Each `SheetDefinition` provides detailed information about a sheet within this analysis. @@ -2135,7 +2186,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnalysisDefinitionProperty, - ) : CdkObject(cdkObject), AnalysisDefinitionProperty { + ) : CdkObject(cdkObject), + AnalysisDefinitionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-analysisdefinition.html#cfn-quicksight-analysis-analysisdefinition-analysisdefaults) */ @@ -2200,6 +2252,11 @@ public open class CfnAnalysis( */ override fun parameterDeclarations(): Any? = unwrap(this).getParameterDeclarations() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-analysisdefinition.html#cfn-quicksight-analysis-analysisdefinition-queryexecutionoptions) + */ + override fun queryExecutionOptions(): Any? = unwrap(this).getQueryExecutionOptions() + /** * An array of sheet definitions for an analysis. * @@ -2347,7 +2404,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnalysisErrorProperty, - ) : CdkObject(cdkObject), AnalysisErrorProperty { + ) : CdkObject(cdkObject), + AnalysisErrorProperty { /** * The message associated with the analysis error. * @@ -2478,7 +2536,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnalysisSourceEntityProperty, - ) : CdkObject(cdkObject), AnalysisSourceEntityProperty { + ) : CdkObject(cdkObject), + AnalysisSourceEntityProperty { /** * The source template for the source entity of the analysis. * @@ -2607,7 +2666,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnalysisSourceTemplateProperty, - ) : CdkObject(cdkObject), AnalysisSourceTemplateProperty { + ) : CdkObject(cdkObject), + AnalysisSourceTemplateProperty { /** * The Amazon Resource Name (ARN) of the source template of an analysis. * @@ -2725,7 +2785,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AnchorDateConfigurationProperty, - ) : CdkObject(cdkObject), AnchorDateConfigurationProperty { + ) : CdkObject(cdkObject), + AnchorDateConfigurationProperty { /** * The options for the date configuration. Choose one of the options below:. * @@ -2869,7 +2930,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ArcAxisConfigurationProperty, - ) : CdkObject(cdkObject), ArcAxisConfigurationProperty { + ) : CdkObject(cdkObject), + ArcAxisConfigurationProperty { /** * The arc axis range of a `GaugeChartVisual` . * @@ -2980,7 +3042,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ArcAxisDisplayRangeProperty, - ) : CdkObject(cdkObject), ArcAxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + ArcAxisDisplayRangeProperty { /** * The maximum value of the arc axis range. * @@ -3088,7 +3151,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ArcConfigurationProperty, - ) : CdkObject(cdkObject), ArcConfigurationProperty { + ) : CdkObject(cdkObject), + ArcConfigurationProperty { /** * The option that determines the arc angle of a `GaugeChartVisual` . * @@ -3175,7 +3239,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ArcOptionsProperty, - ) : CdkObject(cdkObject), ArcOptionsProperty { + ) : CdkObject(cdkObject), + ArcOptionsProperty { /** * The arc thickness of a `GaugeChartVisual` . * @@ -3276,7 +3341,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AssetOptionsProperty, - ) : CdkObject(cdkObject), AssetOptionsProperty { + ) : CdkObject(cdkObject), + AssetOptionsProperty { /** * Determines the timezone for the analysis. * @@ -3399,7 +3465,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AttributeAggregationFunctionProperty, - ) : CdkObject(cdkObject), AttributeAggregationFunctionProperty { + ) : CdkObject(cdkObject), + AttributeAggregationFunctionProperty { /** * The built-in aggregation functions for attributes. * @@ -3594,7 +3661,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisDataOptionsProperty, - ) : CdkObject(cdkObject), AxisDataOptionsProperty { + ) : CdkObject(cdkObject), + AxisDataOptionsProperty { /** * The options for an axis with a date field. * @@ -3704,7 +3772,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisDisplayMinMaxRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayMinMaxRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayMinMaxRangeProperty { /** * The maximum setup for an axis display range. * @@ -4025,7 +4094,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), AxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + AxisDisplayOptionsProperty { /** * Determines whether or not the axis line is visible. * @@ -4196,7 +4266,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisDisplayRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayRangeProperty { /** * The data-driven setup of an axis display range. * @@ -4397,7 +4468,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelOptionsProperty { /** * The options that indicate which field the label belongs to. * @@ -4544,7 +4616,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisLabelReferenceOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelReferenceOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelReferenceOptionsProperty { /** * The column that the axis label is targeted to. * @@ -4656,7 +4729,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisLinearScaleProperty, - ) : CdkObject(cdkObject), AxisLinearScaleProperty { + ) : CdkObject(cdkObject), + AxisLinearScaleProperty { /** * The step count setup of a linear axis. * @@ -4746,7 +4820,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisLogarithmicScaleProperty, - ) : CdkObject(cdkObject), AxisLogarithmicScaleProperty { + ) : CdkObject(cdkObject), + AxisLogarithmicScaleProperty { /** * The base setup of a logarithmic axis scale. * @@ -4908,7 +4983,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisScaleProperty, - ) : CdkObject(cdkObject), AxisScaleProperty { + ) : CdkObject(cdkObject), + AxisScaleProperty { /** * The linear axis scale setup. * @@ -5059,7 +5135,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.AxisTickLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisTickLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisTickLabelOptionsProperty { /** * Determines whether or not the axis ticks are visible. * @@ -5296,7 +5373,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartAggregatedFieldWellsProperty { /** * The category (y-axis) field well of a bar chart. * @@ -6121,7 +6199,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BarChartConfigurationProperty, - ) : CdkObject(cdkObject), BarChartConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartConfigurationProperty { /** * Determines the arrangement of the bars. * @@ -6349,7 +6428,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BarChartFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartFieldWellsProperty { /** * The aggregated field wells of a bar chart. * @@ -6788,7 +6868,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), BarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartSortConfigurationProperty { /** * The limit on the number of categories displayed in a bar chart. * @@ -7150,7 +7231,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BarChartVisualProperty, - ) : CdkObject(cdkObject), BarChartVisualProperty { + ) : CdkObject(cdkObject), + BarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -7269,7 +7351,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BinCountOptionsProperty, - ) : CdkObject(cdkObject), BinCountOptionsProperty { + ) : CdkObject(cdkObject), + BinCountOptionsProperty { /** * The options that determine the bin count value. * @@ -7370,7 +7453,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BinWidthOptionsProperty, - ) : CdkObject(cdkObject), BinWidthOptionsProperty { + ) : CdkObject(cdkObject), + BinWidthOptionsProperty { /** * The options that determine the bin count limit. * @@ -7655,7 +7739,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BodySectionConfigurationProperty, - ) : CdkObject(cdkObject), BodySectionConfigurationProperty { + ) : CdkObject(cdkObject), + BodySectionConfigurationProperty { /** * The configuration of content in a body section. * @@ -7819,7 +7904,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BodySectionContentProperty, - ) : CdkObject(cdkObject), BodySectionContentProperty { + ) : CdkObject(cdkObject), + BodySectionContentProperty { /** * The layout configuration of a body section. * @@ -8464,7 +8550,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotAggregatedFieldWellsProperty { /** * The group by field well of a box plot chart. * @@ -9069,7 +9156,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotChartConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotChartConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotChartConfigurationProperty { /** * The box plot chart options for a box plot visual. * @@ -9741,7 +9829,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotFieldWellsProperty { /** * The aggregated field wells of a box plot. * @@ -9894,7 +9983,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotOptionsProperty { /** * Determines the visibility of all data points of the box plot. * @@ -10094,7 +10184,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotSortConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotSortConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotSortConfigurationProperty { /** * The sort configuration of a group by fields. * @@ -10183,7 +10274,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotStyleOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotStyleOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotStyleOptionsProperty { /** * The fill styles (solid, transparent) of the box plot. * @@ -10498,7 +10590,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.BoxPlotVisualProperty, - ) : CdkObject(cdkObject), BoxPlotVisualProperty { + ) : CdkObject(cdkObject), + BoxPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -10657,7 +10750,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CalculatedFieldProperty, - ) : CdkObject(cdkObject), CalculatedFieldProperty { + ) : CdkObject(cdkObject), + CalculatedFieldProperty { /** * The data set that is used in this calculated field. * @@ -10774,7 +10868,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CalculatedMeasureFieldProperty, - ) : CdkObject(cdkObject), CalculatedMeasureFieldProperty { + ) : CdkObject(cdkObject), + CalculatedMeasureFieldProperty { /** * The expression in the table calculation. * @@ -10900,7 +10995,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CascadingControlConfigurationProperty, - ) : CdkObject(cdkObject), CascadingControlConfigurationProperty { + ) : CdkObject(cdkObject), + CascadingControlConfigurationProperty { /** * A list of source controls that determine the values that are used in the current control. * @@ -11040,7 +11136,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CascadingControlSourceProperty, - ) : CdkObject(cdkObject), CascadingControlSourceProperty { + ) : CdkObject(cdkObject), + CascadingControlSourceProperty { /** * The column identifier that determines which column to look up for the source sheet control. * @@ -11319,7 +11416,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoricalDimensionFieldProperty, - ) : CdkObject(cdkObject), CategoricalDimensionFieldProperty { + ) : CdkObject(cdkObject), + CategoricalDimensionFieldProperty { /** * The column that is used in the `CategoricalDimensionField` . * @@ -11613,7 +11711,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoricalMeasureFieldProperty, - ) : CdkObject(cdkObject), CategoricalMeasureFieldProperty { + ) : CdkObject(cdkObject), + CategoricalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -11782,7 +11881,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryDrillDownFilterProperty, - ) : CdkObject(cdkObject), CategoryDrillDownFilterProperty { + ) : CdkObject(cdkObject), + CategoryDrillDownFilterProperty { /** * A list of the string inputs that are the values of the category drill down filter. * @@ -12053,7 +12153,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryFilterConfigurationProperty, - ) : CdkObject(cdkObject), CategoryFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CategoryFilterConfigurationProperty { /** * A custom filter that filters based on a single value. * @@ -12550,7 +12651,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryFilterProperty, - ) : CdkObject(cdkObject), CategoryFilterProperty { + ) : CdkObject(cdkObject), + CategoryFilterProperty { /** * The column that the filter is applied to. * @@ -12601,6 +12703,446 @@ public open class CfnAnalysis( } } + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * CategoryInnerFilterProperty categoryInnerFilterProperty = CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html) + */ + public interface CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-column) + */ + public fun column(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-configuration) + */ + public fun configuration(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + public fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + + /** + * A builder for [CategoryInnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column the value to be set. + */ + public fun column(column: IResolvable) + + /** + * @param column the value to be set. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("15562593135e80174b825e3599d27523bfade38f22ad7fad41c0f913892c579b") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: CategoryFilterConfigurationProperty) + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3ede494f398f1ac6c7bf5bf15bb33b79a89c64a321ecf4a48107af8ab6bb8493") + public + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("10fe33b41d787b2a4ad9a71d235b4fed6dbd289c1af06e534ef31058fe8cac25") + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty.builder() + + /** + * @param column the value to be set. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("15562593135e80174b825e3599d27523bfade38f22ad7fad41c0f913892c579b") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: CategoryFilterConfigurationProperty) { + cdkBuilder.configuration(configuration.let(CategoryFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3ede494f398f1ac6c7bf5bf15bb33b79a89c64a321ecf4a48107af8ab6bb8493") + override + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit): + Unit = configuration(CategoryFilterConfigurationProperty(configuration)) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(DefaultFilterControlConfigurationProperty.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("10fe33b41d787b2a4ad9a71d235b4fed6dbd289c1af06e534ef31058fe8cac25") + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit): + Unit = + defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty(defaultFilterControlConfiguration)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty, + ) : CdkObject(cdkObject), + CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-configuration) + */ + override fun configuration(): Any = unwrap(this).getConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-categoryinnerfilter.html#cfn-quicksight-analysis-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + override fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CategoryInnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty): + CategoryInnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? + CategoryInnerFilterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CategoryInnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.CategoryInnerFilterProperty + } + } + /** * The label options for an axis on a chart. * @@ -12751,7 +13293,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ChartAxisLabelOptionsProperty, - ) : CdkObject(cdkObject), ChartAxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + ChartAxisLabelOptionsProperty { /** * The label options for a chart axis. * @@ -12882,7 +13425,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ClusterMarkerConfigurationProperty, - ) : CdkObject(cdkObject), ClusterMarkerConfigurationProperty { + ) : CdkObject(cdkObject), + ClusterMarkerConfigurationProperty { /** * The cluster marker that is a part of the cluster marker configuration. * @@ -12995,7 +13539,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ClusterMarkerProperty, - ) : CdkObject(cdkObject), ClusterMarkerProperty { + ) : CdkObject(cdkObject), + ClusterMarkerProperty { /** * The simple cluster marker of the cluster marker. * @@ -13171,7 +13716,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColorScaleProperty, - ) : CdkObject(cdkObject), ColorScaleProperty { + ) : CdkObject(cdkObject), + ColorScaleProperty { /** * Determines the color fill type. * @@ -13295,7 +13841,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColorsConfigurationProperty, - ) : CdkObject(cdkObject), ColorsConfigurationProperty { + ) : CdkObject(cdkObject), + ColorsConfigurationProperty { /** * A list of up to 50 custom colors. * @@ -13742,7 +14289,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColumnConfigurationProperty, - ) : CdkObject(cdkObject), ColumnConfigurationProperty { + ) : CdkObject(cdkObject), + ColumnConfigurationProperty { /** * The color configurations of the column. * @@ -14091,7 +14639,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColumnHierarchyProperty, - ) : CdkObject(cdkObject), ColumnHierarchyProperty { + ) : CdkObject(cdkObject), + ColumnHierarchyProperty { /** * The option that determines the hierarchy of any `DateTime` fields. * @@ -14212,7 +14761,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColumnIdentifierProperty, - ) : CdkObject(cdkObject), ColumnIdentifierProperty { + ) : CdkObject(cdkObject), + ColumnIdentifierProperty { /** * The name of the column. * @@ -14410,7 +14960,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColumnSortProperty, - ) : CdkObject(cdkObject), ColumnSortProperty { + ) : CdkObject(cdkObject), + ColumnSortProperty { /** * The aggregation function that is defined in the column sort. * @@ -14479,6 +15030,7 @@ public open class CfnAnalysis( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -14507,6 +15059,13 @@ public open class CfnAnalysis( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-columntooltipitem.html#cfn-quicksight-analysis-columntooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -14558,6 +15117,12 @@ public open class CfnAnalysis( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -14620,6 +15185,14 @@ public open class CfnAnalysis( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -14634,7 +15207,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ColumnTooltipItemProperty, - ) : CdkObject(cdkObject), ColumnTooltipItemProperty { + ) : CdkObject(cdkObject), + ColumnTooltipItemProperty { /** * The aggregation function of the column tooltip item. * @@ -14656,6 +15230,13 @@ public open class CfnAnalysis( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-columntooltipitem.html#cfn-quicksight-analysis-columntooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -14876,7 +15457,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComboChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartAggregatedFieldWellsProperty { /** * The aggregated `BarValues` field well of a combo chart. * @@ -15043,6 +15625,11 @@ public open class CfnAnalysis( */ public fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-combochartconfiguration.html#cfn-quicksight-analysis-combochartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -15313,6 +15900,23 @@ public open class CfnAnalysis( public fun secondaryYAxisLabelOptions(secondaryYAxisLabelOptions: ChartAxisLabelOptionsProperty.Builder.() -> Unit) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("68de895243261cb47a2436107118e1acb7bbbb787494cc2fea45bbf2bcf37267") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -15682,6 +16286,29 @@ public open class CfnAnalysis( Unit = secondaryYAxisLabelOptions(ChartAxisLabelOptionsProperty(secondaryYAxisLabelOptions)) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("68de895243261cb47a2436107118e1acb7bbbb787494cc2fea45bbf2bcf37267") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -15756,7 +16383,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComboChartConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -15865,6 +16493,11 @@ public open class CfnAnalysis( */ override fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-combochartconfiguration.html#cfn-quicksight-analysis-combochartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -16005,7 +16638,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComboChartFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartFieldWellsProperty { /** * The aggregated field wells of a combo chart. * @@ -16327,7 +16961,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComboChartSortConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartSortConfigurationProperty { /** * The item limit configuration for the category field well of a combo chart. * @@ -16666,7 +17301,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComboChartVisualProperty, - ) : CdkObject(cdkObject), ComboChartVisualProperty { + ) : CdkObject(cdkObject), + ComboChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -16888,7 +17524,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComparisonConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonConfigurationProperty { /** * The format of the comparison. * @@ -17112,7 +17749,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComparisonFormatConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonFormatConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonFormatConfigurationProperty { /** * The number display format. * @@ -17652,7 +18290,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ComputationProperty, - ) : CdkObject(cdkObject), ComputationProperty { + ) : CdkObject(cdkObject), + ComputationProperty { /** * The forecast computation configuration. * @@ -17887,7 +18526,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingColorProperty { /** * Formatting configuration for gradient color. * @@ -18106,7 +18746,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingCustomIconConditionProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconConditionProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconConditionProperty { /** * Determines the color of the icon. * @@ -18231,7 +18872,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingCustomIconOptionsProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconOptionsProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconOptionsProperty { /** * Determines the type of icon. * @@ -18378,7 +19020,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingGradientColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingGradientColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingGradientColorProperty { /** * Determines the color. * @@ -18470,7 +19113,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingIconDisplayConfigurationProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconDisplayConfigurationProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconDisplayConfigurationProperty { /** * Determines the icon display configuration. * @@ -18646,7 +19290,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingIconProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconProperty { /** * Determines the custom condition for an icon set. * @@ -18760,7 +19405,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingIconSetProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconSetProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconSetProperty { /** * The expression that determines the formatting configuration for the icon set. * @@ -18874,7 +19520,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ConditionalFormattingSolidColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingSolidColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingSolidColorProperty { /** * Determines the color. * @@ -19018,7 +19665,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ContributionAnalysisDefaultProperty, - ) : CdkObject(cdkObject), ContributionAnalysisDefaultProperty { + ) : CdkObject(cdkObject), + ContributionAnalysisDefaultProperty { /** * The dimensions columns that are used in the contribution analysis, usually a list of * `ColumnIdentifiers` . @@ -19414,7 +20062,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CurrencyDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), CurrencyDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + CurrencyDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -19656,7 +20305,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomActionFilterOperationProperty, - ) : CdkObject(cdkObject), CustomActionFilterOperationProperty { + ) : CdkObject(cdkObject), + CustomActionFilterOperationProperty { /** * The configuration that chooses the fields to be filtered. * @@ -19785,7 +20435,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomActionNavigationOperationProperty, - ) : CdkObject(cdkObject), CustomActionNavigationOperationProperty { + ) : CdkObject(cdkObject), + CustomActionNavigationOperationProperty { /** * The configuration that chooses the navigation target. * @@ -19914,7 +20565,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomActionSetParametersOperationProperty, - ) : CdkObject(cdkObject), CustomActionSetParametersOperationProperty { + ) : CdkObject(cdkObject), + CustomActionSetParametersOperationProperty { /** * The parameter that determines the value configuration. * @@ -20035,7 +20687,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomActionURLOperationProperty, - ) : CdkObject(cdkObject), CustomActionURLOperationProperty { + ) : CdkObject(cdkObject), + CustomActionURLOperationProperty { /** * The target of the `CustomActionURLOperation` . * @@ -20169,7 +20822,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomColorProperty, - ) : CdkObject(cdkObject), CustomColorProperty { + ) : CdkObject(cdkObject), + CustomColorProperty { /** * The color that is applied to the data value. * @@ -20316,7 +20970,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomContentConfigurationProperty, - ) : CdkObject(cdkObject), CustomContentConfigurationProperty { + ) : CdkObject(cdkObject), + CustomContentConfigurationProperty { /** * The content type of the custom content visual. * @@ -20711,7 +21366,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomContentVisualProperty, - ) : CdkObject(cdkObject), CustomContentVisualProperty { + ) : CdkObject(cdkObject), + CustomContentVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -20945,7 +21601,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomFilterConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterConfigurationProperty { /** * The category value for the filter. * @@ -21159,7 +21816,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomFilterListConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterListConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -21270,7 +21928,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomNarrativeOptionsProperty, - ) : CdkObject(cdkObject), CustomNarrativeOptionsProperty { + ) : CdkObject(cdkObject), + CustomNarrativeOptionsProperty { /** * The string input of custom narrative. * @@ -21484,7 +22143,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomParameterValuesProperty, - ) : CdkObject(cdkObject), CustomParameterValuesProperty { + ) : CdkObject(cdkObject), + CustomParameterValuesProperty { /** * A list of datetime-type parameter values. * @@ -21652,7 +22312,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.CustomValuesConfigurationProperty, - ) : CdkObject(cdkObject), CustomValuesConfigurationProperty { + ) : CdkObject(cdkObject), + CustomValuesConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-customvaluesconfiguration.html#cfn-quicksight-analysis-customvaluesconfiguration-customvalues) */ @@ -21780,7 +22441,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataBarsOptionsProperty, - ) : CdkObject(cdkObject), DataBarsOptionsProperty { + ) : CdkObject(cdkObject), + DataBarsOptionsProperty { /** * The field ID for the data bars options. * @@ -21894,7 +22556,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataColorProperty, - ) : CdkObject(cdkObject), DataColorProperty { + ) : CdkObject(cdkObject), + DataColorProperty { /** * The color that is applied to the data value. * @@ -22090,7 +22753,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataFieldSeriesItemProperty, - ) : CdkObject(cdkObject), DataFieldSeriesItemProperty { + ) : CdkObject(cdkObject), + DataFieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -22453,7 +23117,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataLabelOptionsProperty, - ) : CdkObject(cdkObject), DataLabelOptionsProperty { + ) : CdkObject(cdkObject), + DataLabelOptionsProperty { /** * Determines the visibility of the category field labels. * @@ -22849,7 +23514,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataLabelTypeProperty, - ) : CdkObject(cdkObject), DataLabelTypeProperty { + ) : CdkObject(cdkObject), + DataLabelTypeProperty { /** * The option that specifies individual data values for labels. * @@ -23034,7 +23700,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataPathColorProperty, - ) : CdkObject(cdkObject), DataPathColorProperty { + ) : CdkObject(cdkObject), + DataPathColorProperty { /** * The color that needs to be applied to the element. * @@ -23169,7 +23836,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataPathLabelTypeProperty, - ) : CdkObject(cdkObject), DataPathLabelTypeProperty { + ) : CdkObject(cdkObject), + DataPathLabelTypeProperty { /** * The field ID of the field that the data label needs to be applied to. * @@ -23312,7 +23980,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataPathSortProperty, - ) : CdkObject(cdkObject), DataPathSortProperty { + ) : CdkObject(cdkObject), + DataPathSortProperty { /** * Determines the sort direction. * @@ -23427,7 +24096,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataPathTypeProperty, - ) : CdkObject(cdkObject), DataPathTypeProperty { + ) : CdkObject(cdkObject), + DataPathTypeProperty { /** * The type of data path value utilized in a pivot table. Choose one of the following * options:. @@ -23587,7 +24257,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataPathValueProperty, - ) : CdkObject(cdkObject), DataPathValueProperty { + ) : CdkObject(cdkObject), + DataPathValueProperty { /** * The type configuration of the field. * @@ -23704,7 +24375,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataSetIdentifierDeclarationProperty, - ) : CdkObject(cdkObject), DataSetIdentifierDeclarationProperty { + ) : CdkObject(cdkObject), + DataSetIdentifierDeclarationProperty { /** * The Amazon Resource Name (ARN) of the data set. * @@ -23813,7 +24485,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DataSetReferenceProperty, - ) : CdkObject(cdkObject), DataSetReferenceProperty { + ) : CdkObject(cdkObject), + DataSetReferenceProperty { /** * Dataset Amazon Resource Name (ARN). * @@ -23901,7 +24574,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateAxisOptionsProperty, - ) : CdkObject(cdkObject), DateAxisOptionsProperty { + ) : CdkObject(cdkObject), + DateAxisOptionsProperty { /** * Determines whether or not missing dates are displayed. * @@ -24223,7 +24897,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateDimensionFieldProperty, - ) : CdkObject(cdkObject), DateDimensionFieldProperty { + ) : CdkObject(cdkObject), + DateDimensionFieldProperty { /** * The column that is used in the `DateDimensionField` . * @@ -24532,7 +25207,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateMeasureFieldProperty, - ) : CdkObject(cdkObject), DateMeasureFieldProperty { + ) : CdkObject(cdkObject), + DateMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -24775,7 +25451,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeDefaultValuesProperty, - ) : CdkObject(cdkObject), DateTimeDefaultValuesProperty { + ) : CdkObject(cdkObject), + DateTimeDefaultValuesProperty { /** * The dynamic value of the `DataTimeDefaultValues` . * @@ -25058,7 +25735,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeFormatConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeFormatConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeFormatConfigurationProperty { /** * Determines the `DateTime` format. * @@ -25229,7 +25907,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeHierarchyProperty, - ) : CdkObject(cdkObject), DateTimeHierarchyProperty { + ) : CdkObject(cdkObject), + DateTimeHierarchyProperty { /** * The option that determines the drill down filters for the `DateTime` hierarchy. * @@ -25528,7 +26207,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeParameterDeclarationProperty, - ) : CdkObject(cdkObject), DateTimeParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DateTimeParameterDeclarationProperty { /** * The default values of a parameter. * @@ -25670,7 +26350,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeParameterProperty, - ) : CdkObject(cdkObject), DateTimeParameterProperty { + ) : CdkObject(cdkObject), + DateTimeParameterProperty { /** * A display name for the date-time parameter. * @@ -25876,7 +26557,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimePickerControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DateTimePickerControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DateTimePickerControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -26004,7 +26686,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DateTimeValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -26190,7 +26873,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DecimalDefaultValuesProperty, - ) : CdkObject(cdkObject), DecimalDefaultValuesProperty { + ) : CdkObject(cdkObject), + DecimalDefaultValuesProperty { /** * The dynamic value of the `DecimalDefaultValues` . * @@ -26486,7 +27170,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DecimalParameterDeclarationProperty, - ) : CdkObject(cdkObject), DecimalParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DecimalParameterDeclarationProperty { /** * The default values of a parameter. * @@ -26640,7 +27325,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DecimalParameterProperty, - ) : CdkObject(cdkObject), DecimalParameterProperty { + ) : CdkObject(cdkObject), + DecimalParameterProperty { /** * A display name for the decimal parameter. * @@ -26730,7 +27416,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DecimalPlacesConfigurationProperty, - ) : CdkObject(cdkObject), DecimalPlacesConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalPlacesConfigurationProperty { /** * The values of the decimal places. * @@ -26844,7 +27531,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DecimalValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DecimalValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -27018,7 +27706,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultDateTimePickerControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultDateTimePickerControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultDateTimePickerControlOptionsProperty { /** * The display options of a control. * @@ -27360,7 +28049,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultFilterControlConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFilterControlConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlConfigurationProperty { /** * The control option for the `DefaultFilterControlConfiguration` . * @@ -28020,7 +28710,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultFilterControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlOptionsProperty { /** * The default options that correspond to the filter control type of a `DateTimePicker` . * @@ -28278,7 +28969,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultFilterDropDownControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterDropDownControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterDropDownControlOptionsProperty { /** * The display options of a control. * @@ -28514,7 +29206,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultFilterListControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterListControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterListControlOptionsProperty { /** * The display options of a control. * @@ -28648,7 +29341,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultFreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFreeFormLayoutConfigurationProperty { /** * Determines the screen canvas size options for a free-form layout. * @@ -28767,7 +29461,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultGridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultGridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultGridLayoutConfigurationProperty { /** * Determines the screen canvas size options for a grid layout. * @@ -28952,7 +29647,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultInteractiveLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultInteractiveLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultInteractiveLayoutConfigurationProperty { /** * The options that determine the default settings of a free-form layout configuration. * @@ -29192,7 +29888,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultNewSheetConfigurationProperty, - ) : CdkObject(cdkObject), DefaultNewSheetConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultNewSheetConfigurationProperty { /** * The options that determine the default settings for interactive layout configuration. * @@ -29340,7 +30037,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultPaginatedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultPaginatedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultPaginatedLayoutConfigurationProperty { /** * The options that determine the default settings for a section-based layout configuration. * @@ -29474,7 +30172,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultRelativeDateTimeControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultRelativeDateTimeControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultRelativeDateTimeControlOptionsProperty { /** * The display options of a control. * @@ -29605,7 +30304,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultSectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultSectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultSectionBasedLayoutConfigurationProperty { /** * Determines the screen canvas size options for a section-based layout. * @@ -29834,7 +30534,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultSliderControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultSliderControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultSliderControlOptionsProperty { /** * The display options of a control. * @@ -30027,7 +30728,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultTextAreaControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextAreaControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextAreaControlOptionsProperty { /** * The delimiter that is used to separate the lines in text. * @@ -30170,7 +30872,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DefaultTextFieldControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextFieldControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextFieldControlOptionsProperty { /** * The display options of a control. * @@ -30413,7 +31116,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DestinationParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), DestinationParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + DestinationParameterValueConfigurationProperty { /** * The configuration of custom values for destination parameter in * `DestinationParameterValueConfiguration` . @@ -30886,7 +31590,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DimensionFieldProperty, - ) : CdkObject(cdkObject), DimensionFieldProperty { + ) : CdkObject(cdkObject), + DimensionFieldProperty { /** * The dimension type field with categorical type columns. * @@ -30988,7 +31693,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DonutCenterOptionsProperty, - ) : CdkObject(cdkObject), DonutCenterOptionsProperty { + ) : CdkObject(cdkObject), + DonutCenterOptionsProperty { /** * Determines the visibility of the label in a donut chart. * @@ -31200,7 +31906,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DonutOptionsProperty, - ) : CdkObject(cdkObject), DonutOptionsProperty { + ) : CdkObject(cdkObject), + DonutOptionsProperty { /** * The option for define the arc of the chart shape. Valid values are as follows:. * @@ -31471,7 +32178,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DrillDownFilterProperty, - ) : CdkObject(cdkObject), DrillDownFilterProperty { + ) : CdkObject(cdkObject), + DrillDownFilterProperty { /** * The category type drill down filter. * @@ -31727,7 +32435,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DropDownControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DropDownControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DropDownControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -31962,7 +32671,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.DynamicDefaultValueProperty, - ) : CdkObject(cdkObject), DynamicDefaultValueProperty { + ) : CdkObject(cdkObject), + DynamicDefaultValueProperty { /** * The column that contains the default value of each user or group. * @@ -32191,7 +32901,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.EmptyVisualProperty, - ) : CdkObject(cdkObject), EmptyVisualProperty { + ) : CdkObject(cdkObject), + EmptyVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -32293,7 +33004,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.EntityProperty, - ) : CdkObject(cdkObject), EntityProperty { + ) : CdkObject(cdkObject), + EntityProperty { /** * The hierarchical path of the entity within the analysis, template, or dashboard definition * tree. @@ -32425,7 +33137,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ExcludePeriodConfigurationProperty, - ) : CdkObject(cdkObject), ExcludePeriodConfigurationProperty { + ) : CdkObject(cdkObject), + ExcludePeriodConfigurationProperty { /** * The amount or number of the exclude period. * @@ -32646,7 +33359,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ExplicitHierarchyProperty, - ) : CdkObject(cdkObject), ExplicitHierarchyProperty { + ) : CdkObject(cdkObject), + ExplicitHierarchyProperty { /** * The list of columns that define the explicit hierarchy. * @@ -32720,12 +33434,14 @@ public open class CfnAnalysis( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -32843,7 +33559,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldBasedTooltipProperty, - ) : CdkObject(cdkObject), FieldBasedTooltipProperty { + ) : CdkObject(cdkObject), + FieldBasedTooltipProperty { /** * The visibility of `Show aggregations` . * @@ -32961,7 +33678,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldLabelTypeProperty, - ) : CdkObject(cdkObject), FieldLabelTypeProperty { + ) : CdkObject(cdkObject), + FieldLabelTypeProperty { /** * Indicates the field that is targeted by the field label. * @@ -33136,7 +33854,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldSeriesItemProperty, - ) : CdkObject(cdkObject), FieldSeriesItemProperty { + ) : CdkObject(cdkObject), + FieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -33329,7 +34048,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldSortOptionsProperty, - ) : CdkObject(cdkObject), FieldSortOptionsProperty { + ) : CdkObject(cdkObject), + FieldSortOptionsProperty { /** * The sort configuration for a column that is not used in a field well. * @@ -33443,7 +34163,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldSortProperty, - ) : CdkObject(cdkObject), FieldSortProperty { + ) : CdkObject(cdkObject), + FieldSortProperty { /** * The sort direction. Choose one of the following options:. * @@ -33493,6 +34214,7 @@ public open class CfnAnalysis( * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -33514,6 +34236,13 @@ public open class CfnAnalysis( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-fieldtooltipitem.html#cfn-quicksight-analysis-fieldtooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -33536,6 +34265,12 @@ public open class CfnAnalysis( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -33561,6 +34296,14 @@ public open class CfnAnalysis( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -33575,7 +34318,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FieldTooltipItemProperty, - ) : CdkObject(cdkObject), FieldTooltipItemProperty { + ) : CdkObject(cdkObject), + FieldTooltipItemProperty { /** * The unique ID of the field that is targeted by the tooltip. * @@ -33590,6 +34334,13 @@ public open class CfnAnalysis( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-fieldtooltipitem.html#cfn-quicksight-analysis-fieldtooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -34234,7 +34985,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapAggregatedFieldWellsProperty { /** * The aggregated location field well of the filled map. * @@ -34379,7 +35131,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingOptionProperty { /** * The conditional formatting that determines the shape of the filled map. * @@ -34517,7 +35270,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingProperty { /** * Conditional formatting options of a `FilledMapVisual` . * @@ -34856,7 +35610,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapConfigurationProperty { /** * The field wells of the visual. * @@ -35494,7 +36249,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapFieldWellsProperty { /** * The aggregated field well of the filled map. * @@ -35651,7 +36407,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapShapeConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapShapeConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapShapeConditionalFormattingProperty { /** * The field ID of the filled map shape. * @@ -35792,7 +36549,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapSortConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapSortConfigurationProperty { /** * The sort configuration of the location fields. * @@ -36159,7 +36917,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilledMapVisualProperty, - ) : CdkObject(cdkObject), FilledMapVisualProperty { + ) : CdkObject(cdkObject), + FilledMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -36928,7 +37687,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterControlProperty, - ) : CdkObject(cdkObject), FilterControlProperty { + ) : CdkObject(cdkObject), + FilterControlProperty { /** * A control from a filter that is scoped across more than one sheet. * @@ -37157,7 +37917,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterCrossSheetControlProperty, - ) : CdkObject(cdkObject), FilterCrossSheetControlProperty { + ) : CdkObject(cdkObject), + FilterCrossSheetControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -37394,7 +38155,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), FilterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + FilterDateTimePickerControlProperty { /** * The display options of a control. * @@ -37768,7 +38530,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterDropDownControlProperty, - ) : CdkObject(cdkObject), FilterDropDownControlProperty { + ) : CdkObject(cdkObject), + FilterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -38053,7 +38816,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterGroupProperty, - ) : CdkObject(cdkObject), FilterGroupProperty { + ) : CdkObject(cdkObject), + FilterGroupProperty { /** * The filter new feature which can apply filter group to all data sets. Choose one of the * following options:. @@ -38264,7 +39028,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterListConfigurationProperty, - ) : CdkObject(cdkObject), FilterListConfigurationProperty { + ) : CdkObject(cdkObject), + FilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -38636,7 +39401,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterListControlProperty, - ) : CdkObject(cdkObject), FilterListControlProperty { + ) : CdkObject(cdkObject), + FilterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -38864,7 +39630,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterOperationSelectedFieldsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationSelectedFieldsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationSelectedFieldsConfigurationProperty { /** * The selected columns of a dataset. * @@ -39014,7 +39781,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterOperationTargetVisualsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationTargetVisualsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationTargetVisualsConfigurationProperty { /** * The configuration of the same-sheet target visuals that you want to be filtered. * @@ -39068,6 +39836,14 @@ public open class CfnAnalysis( */ public fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filter.html#cfn-quicksight-analysis-filter-nestedfilter) + */ + public fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -39145,6 +39921,26 @@ public open class CfnAnalysis( @JvmName("2a60e3fbd70346c759da687f52e6d96054ca72927a7ed6777f40998fec67f8e2") public fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: IResolvable) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: NestedFilterProperty) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("958ee819b714564896d5c732c503bfaa93515cd0aca0b8c0fc94c3f842734f65") + public fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -39306,6 +40102,31 @@ public open class CfnAnalysis( override fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit): Unit = categoryFilter(CategoryFilterProperty(categoryFilter)) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: IResolvable) { + cdkBuilder.nestedFilter(nestedFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: NestedFilterProperty) { + cdkBuilder.nestedFilter(nestedFilter.let(NestedFilterProperty.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("958ee819b714564896d5c732c503bfaa93515cd0aca0b8c0fc94c3f842734f65") + override fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit): Unit = + nestedFilter(NestedFilterProperty(nestedFilter)) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -39466,7 +40287,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * A `CategoryFilter` filters text values. * @@ -39478,6 +40300,14 @@ public open class CfnAnalysis( */ override fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-filter.html#cfn-quicksight-analysis-filter-nestedfilter) + */ + override fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -39710,7 +40540,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterRelativeDateTimeControlProperty, - ) : CdkObject(cdkObject), FilterRelativeDateTimeControlProperty { + ) : CdkObject(cdkObject), + FilterRelativeDateTimeControlProperty { /** * The display options of a control. * @@ -39885,7 +40716,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), FilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + FilterScopeConfigurationProperty { /** * The configuration that applies a filter to all sheets. * @@ -39989,7 +40821,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterSelectableValuesProperty, - ) : CdkObject(cdkObject), FilterSelectableValuesProperty { + ) : CdkObject(cdkObject), + FilterSelectableValuesProperty { /** * The values that are used in the `FilterSelectableValues` . * @@ -40276,7 +41109,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterSliderControlProperty, - ) : CdkObject(cdkObject), FilterSliderControlProperty { + ) : CdkObject(cdkObject), + FilterSliderControlProperty { /** * The display options of a control. * @@ -40550,7 +41384,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterTextAreaControlProperty, - ) : CdkObject(cdkObject), FilterTextAreaControlProperty { + ) : CdkObject(cdkObject), + FilterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -40774,7 +41609,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FilterTextFieldControlProperty, - ) : CdkObject(cdkObject), FilterTextFieldControlProperty { + ) : CdkObject(cdkObject), + FilterTextFieldControlProperty { /** * The display options of a control. * @@ -41016,7 +41852,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FontConfigurationProperty, - ) : CdkObject(cdkObject), FontConfigurationProperty { + ) : CdkObject(cdkObject), + FontConfigurationProperty { /** * Determines the color of the text. * @@ -41126,7 +41963,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FontSizeProperty, - ) : CdkObject(cdkObject), FontSizeProperty { + ) : CdkObject(cdkObject), + FontSizeProperty { /** * The lexical name for the text size, proportional to its surrounding context. * @@ -41206,7 +42044,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FontWeightProperty, - ) : CdkObject(cdkObject), FontWeightProperty { + ) : CdkObject(cdkObject), + FontWeightProperty { /** * The lexical name for the level of boldness of the text display. * @@ -41535,7 +42374,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ForecastComputationProperty, - ) : CdkObject(cdkObject), ForecastComputationProperty { + ) : CdkObject(cdkObject), + ForecastComputationProperty { /** * The ID for a computation. * @@ -41784,7 +42624,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ForecastConfigurationProperty, - ) : CdkObject(cdkObject), ForecastConfigurationProperty { + ) : CdkObject(cdkObject), + ForecastConfigurationProperty { /** * The forecast properties setup of a forecast in the line chart. * @@ -41957,7 +42798,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ForecastScenarioProperty, - ) : CdkObject(cdkObject), ForecastScenarioProperty { + ) : CdkObject(cdkObject), + ForecastScenarioProperty { /** * The what-if analysis forecast setup with the target date. * @@ -42387,7 +43229,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FormatConfigurationProperty, - ) : CdkObject(cdkObject), FormatConfigurationProperty { + ) : CdkObject(cdkObject), + FormatConfigurationProperty { /** * Formatting configuration for `DateTime` fields. * @@ -42525,7 +43368,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a free-form layout. * @@ -42713,7 +43557,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-freeformlayoutconfiguration.html#cfn-quicksight-analysis-freeformlayoutconfiguration-canvassizeoptions) */ @@ -42822,7 +43667,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutElementBackgroundStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBackgroundStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBackgroundStyleProperty { /** * The background color of a free-form layout element. * @@ -42933,7 +43779,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutElementBorderStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBorderStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBorderStyleProperty { /** * The border color of a free-form layout element. * @@ -43414,7 +44261,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutElementProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementProperty { /** * The background style configuration of a free-form layout element. * @@ -43579,7 +44427,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -43715,7 +44564,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FreeFormSectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormSectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormSectionLayoutConfigurationProperty { /** * The elements that are included in the free-form layout. * @@ -44361,7 +45211,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartAggregatedFieldWellsProperty { /** * The category field wells of a funnel chart. * @@ -44772,7 +45623,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartConfigurationProperty { /** * The label options of the categories that are displayed in a `FunnelChartVisual` . * @@ -45068,7 +45920,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartDataLabelOptionsProperty, - ) : CdkObject(cdkObject), FunnelChartDataLabelOptionsProperty { + ) : CdkObject(cdkObject), + FunnelChartDataLabelOptionsProperty { /** * The visibility of the category labels within the data labels. * @@ -45723,7 +46576,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartFieldWellsProperty { /** * The field well configuration of a `FunnelChartVisual` . * @@ -45909,7 +46763,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartSortConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartSortConfigurationProperty { /** * The limit on the number of categories displayed. * @@ -46232,7 +47087,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.FunnelChartVisualProperty, - ) : CdkObject(cdkObject), FunnelChartVisualProperty { + ) : CdkObject(cdkObject), + FunnelChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -46399,7 +47255,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartArcConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartArcConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartArcConditionalFormattingProperty { /** * The conditional formatting of the arc foreground color. * @@ -46622,7 +47479,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingOptionProperty { /** * The options that determine the presentation of the arc of a `GaugeChartVisual` . * @@ -46802,7 +47660,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingProperty { /** * Conditional formatting options of a `GaugeChartVisual` . * @@ -47098,7 +47957,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartConfigurationProperty, - ) : CdkObject(cdkObject), GaugeChartConfigurationProperty { + ) : CdkObject(cdkObject), + GaugeChartConfigurationProperty { /** * The data label configuration of a `GaugeChartVisual` . * @@ -47266,7 +48126,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartFieldWellsProperty, - ) : CdkObject(cdkObject), GaugeChartFieldWellsProperty { + ) : CdkObject(cdkObject), + GaugeChartFieldWellsProperty { /** * The target value field wells of a `GaugeChartVisual` . * @@ -47618,7 +48479,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartOptionsProperty, - ) : CdkObject(cdkObject), GaugeChartOptionsProperty { + ) : CdkObject(cdkObject), + GaugeChartOptionsProperty { /** * The arc configuration of a `GaugeChartVisual` . * @@ -47840,7 +48702,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value icon. * @@ -48166,7 +49029,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GaugeChartVisualProperty, - ) : CdkObject(cdkObject), GaugeChartVisualProperty { + ) : CdkObject(cdkObject), + GaugeChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -48347,7 +49211,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialCoordinateBoundsProperty, - ) : CdkObject(cdkObject), GeospatialCoordinateBoundsProperty { + ) : CdkObject(cdkObject), + GeospatialCoordinateBoundsProperty { /** * The longitude of the east bound of the geospatial coordinate bounds. * @@ -48476,7 +49341,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialHeatmapColorScaleProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapColorScaleProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapColorScaleProperty { /** * The list of colors to be used in heatmap point style. * @@ -48592,7 +49458,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialHeatmapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapConfigurationProperty { /** * The color scale specification for the heatmap point style. * @@ -48676,7 +49543,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialHeatmapDataColorProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapDataColorProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapDataColorProperty { /** * The hex color to be used in the heatmap point style. * @@ -48873,7 +49741,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapAggregatedFieldWellsProperty { /** * The color field wells of a geospatial map. * @@ -49273,7 +50142,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialMapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialMapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialMapConfigurationProperty { /** * The field wells of the visual. * @@ -49427,7 +50297,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialMapFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapFieldWellsProperty { /** * The aggregated field well for a geospatial map. * @@ -49511,7 +50382,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialMapStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialMapStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialMapStyleOptionsProperty { /** * The base map style of the geospatial map. * @@ -49828,7 +50700,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialMapVisualProperty, - ) : CdkObject(cdkObject), GeospatialMapVisualProperty { + ) : CdkObject(cdkObject), + GeospatialMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -50069,7 +50942,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialPointStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialPointStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialPointStyleOptionsProperty { /** * The cluster marker configuration of the geospatial point style. * @@ -50225,7 +51099,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GeospatialWindowOptionsProperty, - ) : CdkObject(cdkObject), GeospatialWindowOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialWindowOptionsProperty { /** * The bounds options (north, south, west, east) of the geospatial window options. * @@ -50426,7 +51301,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GlobalTableBorderOptionsProperty, - ) : CdkObject(cdkObject), GlobalTableBorderOptionsProperty { + ) : CdkObject(cdkObject), + GlobalTableBorderOptionsProperty { /** * Determines the options for side specific border. * @@ -50541,7 +51417,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GradientColorProperty, - ) : CdkObject(cdkObject), GradientColorProperty { + ) : CdkObject(cdkObject), + GradientColorProperty { /** * The list of gradient color stops. * @@ -50665,7 +51542,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GradientStopProperty, - ) : CdkObject(cdkObject), GradientStopProperty { + ) : CdkObject(cdkObject), + GradientStopProperty { /** * Determines the color. * @@ -50806,7 +51684,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GridLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a grid layout. * @@ -50977,7 +51856,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), GridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + GridLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-gridlayoutconfiguration.html#cfn-quicksight-analysis-gridlayoutconfiguration-canvassizeoptions) */ @@ -51164,7 +52044,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GridLayoutElementProperty, - ) : CdkObject(cdkObject), GridLayoutElementProperty { + ) : CdkObject(cdkObject), + GridLayoutElementProperty { /** * The column index for the upper left corner of an element. * @@ -51320,7 +52201,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GridLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -52035,7 +52917,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.GrowthRateComputationProperty, - ) : CdkObject(cdkObject), GrowthRateComputationProperty { + ) : CdkObject(cdkObject), + GrowthRateComputationProperty { /** * The ID for a computation. * @@ -52285,7 +53168,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeaderFooterSectionConfigurationProperty, - ) : CdkObject(cdkObject), HeaderFooterSectionConfigurationProperty { + ) : CdkObject(cdkObject), + HeaderFooterSectionConfigurationProperty { /** * The layout configuration of the header or footer section. * @@ -52480,7 +53364,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeatMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapAggregatedFieldWellsProperty { /** * The columns field well of a heat map. * @@ -52925,7 +53810,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeatMapConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapConfigurationProperty { /** * The color options (gradient color, point of divergence) in a heat map. * @@ -53084,7 +53970,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeatMapFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapFieldWellsProperty { /** * The aggregated field wells of a heat map. * @@ -53421,7 +54308,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeatMapSortConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapSortConfigurationProperty { /** * The limit on the number of columns that are displayed in a heat map. * @@ -53759,7 +54647,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HeatMapVisualProperty, - ) : CdkObject(cdkObject), HeatMapVisualProperty { + ) : CdkObject(cdkObject), + HeatMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -54155,7 +55044,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HistogramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramAggregatedFieldWellsProperty { /** * The value field wells of a histogram. * @@ -54359,7 +55249,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HistogramBinOptionsProperty, - ) : CdkObject(cdkObject), HistogramBinOptionsProperty { + ) : CdkObject(cdkObject), + HistogramBinOptionsProperty { /** * The options that determine the bin count of a histogram. * @@ -54811,7 +55702,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HistogramConfigurationProperty, - ) : CdkObject(cdkObject), HistogramConfigurationProperty { + ) : CdkObject(cdkObject), + HistogramConfigurationProperty { /** * The options that determine the presentation of histogram bins. * @@ -55222,7 +56114,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HistogramFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramFieldWellsProperty { /** * The field well configuration of a histogram. * @@ -55490,7 +56383,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.HistogramVisualProperty, - ) : CdkObject(cdkObject), HistogramVisualProperty { + ) : CdkObject(cdkObject), + HistogramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -55548,6 +56442,350 @@ public open class CfnAnalysis( } } + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * InnerFilterProperty innerFilterProperty = InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-innerfilter.html) + */ + public interface InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-innerfilter.html#cfn-quicksight-analysis-innerfilter-categoryinnerfilter) + */ + public fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + + /** + * A builder for [InnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: IResolvable) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dbda9d69af42fa58088cc83253b9dfd86811a81f783ea820f2290aa876babfbc") + public + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty.builder() + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: IResolvable) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(CategoryInnerFilterProperty.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dbda9d69af42fa58088cc83253b9dfd86811a81f783ea820f2290aa876babfbc") + override + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit): + Unit = categoryInnerFilter(CategoryInnerFilterProperty(categoryInnerFilter)) + + public fun build(): software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty, + ) : CdkObject(cdkObject), + InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-innerfilter.html#cfn-quicksight-analysis-innerfilter-categoryinnerfilter) + */ + override fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty): + InnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? InnerFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.InnerFilterProperty + } + } + /** * The configuration of an insight visual. * @@ -55667,7 +56905,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.InsightConfigurationProperty, - ) : CdkObject(cdkObject), InsightConfigurationProperty { + ) : CdkObject(cdkObject), + InsightConfigurationProperty { /** * The computations configurations of the insight visual. * @@ -55960,7 +57199,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.InsightVisualProperty, - ) : CdkObject(cdkObject), InsightVisualProperty { + ) : CdkObject(cdkObject), + InsightVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -56173,7 +57413,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.IntegerDefaultValuesProperty, - ) : CdkObject(cdkObject), IntegerDefaultValuesProperty { + ) : CdkObject(cdkObject), + IntegerDefaultValuesProperty { /** * The dynamic value of the `IntegerDefaultValues` . * @@ -56462,7 +57703,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.IntegerParameterDeclarationProperty, - ) : CdkObject(cdkObject), IntegerParameterDeclarationProperty { + ) : CdkObject(cdkObject), + IntegerParameterDeclarationProperty { /** * The default values of a parameter. * @@ -56615,7 +57857,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.IntegerParameterProperty, - ) : CdkObject(cdkObject), IntegerParameterProperty { + ) : CdkObject(cdkObject), + IntegerParameterProperty { /** * The name of the integer parameter. * @@ -56737,7 +57980,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.IntegerValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), IntegerValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + IntegerValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -56864,7 +58108,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ItemsLimitConfigurationProperty, - ) : CdkObject(cdkObject), ItemsLimitConfigurationProperty { + ) : CdkObject(cdkObject), + ItemsLimitConfigurationProperty { /** * The limit on how many items of a field are showed in the chart. * @@ -57068,7 +58313,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIActualValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIActualValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIActualValueConditionalFormattingProperty { /** * The conditional formatting of the actual value's icon. * @@ -57268,7 +58514,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIComparisonValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIComparisonValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIComparisonValueConditionalFormattingProperty { /** * The conditional formatting of the comparison value's icon. * @@ -57669,7 +58916,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingOptionProperty { /** * The conditional formatting for the actual value of a KPI visual. * @@ -57935,7 +59183,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingProperty { /** * The conditional formatting options of a KPI visual. * @@ -58132,7 +59381,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIConfigurationProperty, - ) : CdkObject(cdkObject), KPIConfigurationProperty { + ) : CdkObject(cdkObject), + KPIConfigurationProperty { /** * The field well configuration of a KPI visual. * @@ -58326,7 +59576,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIFieldWellsProperty, - ) : CdkObject(cdkObject), KPIFieldWellsProperty { + ) : CdkObject(cdkObject), + KPIFieldWellsProperty { /** * The target value field wells of a KPI visual. * @@ -58928,7 +60179,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIOptionsProperty, - ) : CdkObject(cdkObject), KPIOptionsProperty { + ) : CdkObject(cdkObject), + KPIOptionsProperty { /** * The comparison configuration of a KPI visual. * @@ -59179,7 +60431,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value's icon. * @@ -59316,7 +60569,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIProgressBarConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIProgressBarConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIProgressBarConditionalFormattingProperty { /** * The conditional formatting of the progress bar's foreground color. * @@ -59450,7 +60704,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPISortConfigurationProperty, - ) : CdkObject(cdkObject), KPISortConfigurationProperty { + ) : CdkObject(cdkObject), + KPISortConfigurationProperty { /** * The sort configuration of the trend group fields. * @@ -59594,7 +60849,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPISparklineOptionsProperty, - ) : CdkObject(cdkObject), KPISparklineOptionsProperty { + ) : CdkObject(cdkObject), + KPISparklineOptionsProperty { /** * The color of the sparkline. * @@ -59728,7 +60984,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIVisualLayoutOptionsProperty, - ) : CdkObject(cdkObject), KPIVisualLayoutOptionsProperty { + ) : CdkObject(cdkObject), + KPIVisualLayoutOptionsProperty { /** * The standard layout of the KPI visual. * @@ -60089,7 +61346,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIVisualProperty, - ) : CdkObject(cdkObject), KPIVisualProperty { + ) : CdkObject(cdkObject), + KPIVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -60217,7 +61475,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.KPIVisualStandardLayoutProperty, - ) : CdkObject(cdkObject), KPIVisualStandardLayoutProperty { + ) : CdkObject(cdkObject), + KPIVisualStandardLayoutProperty { /** * The standard layout type. * @@ -60376,7 +61635,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LabelOptionsProperty, - ) : CdkObject(cdkObject), LabelOptionsProperty { + ) : CdkObject(cdkObject), + LabelOptionsProperty { /** * The text for the label. * @@ -60863,7 +62123,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LayoutConfigurationProperty, - ) : CdkObject(cdkObject), LayoutConfigurationProperty { + ) : CdkObject(cdkObject), + LayoutConfigurationProperty { /** * A free-form is optimized for a fixed width and has more control over the exact placement of * layout elements. @@ -61228,7 +62489,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LayoutProperty, - ) : CdkObject(cdkObject), LayoutProperty { + ) : CdkObject(cdkObject), + LayoutProperty { /** * The configuration that determines what the type of layout for a sheet. * @@ -61451,7 +62713,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LegendOptionsProperty, - ) : CdkObject(cdkObject), LegendOptionsProperty { + ) : CdkObject(cdkObject), + LegendOptionsProperty { /** * The height of the legend. * @@ -61734,7 +62997,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartAggregatedFieldWellsProperty { /** * The category field wells of a line chart. * @@ -61884,6 +63148,11 @@ public open class CfnAnalysis( */ public fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-linechartconfiguration.html#cfn-quicksight-analysis-linechartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -62155,6 +63424,23 @@ public open class CfnAnalysis( */ public fun series(vararg series: Any) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("775e40b6119859bfa704ede27ff33f760804cd70303284ad235e5153b912fa86") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -62554,6 +63840,29 @@ public open class CfnAnalysis( */ override fun series(vararg series: Any): Unit = series(series.toList()) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("775e40b6119859bfa704ede27ff33f760804cd70303284ad235e5153b912fa86") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -62704,7 +64013,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartConfigurationProperty, - ) : CdkObject(cdkObject), LineChartConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartConfigurationProperty { /** * The default configuration of a line chart's contribution analysis. * @@ -62792,6 +64102,11 @@ public open class CfnAnalysis( */ override fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-linechartconfiguration.html#cfn-quicksight-analysis-linechartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -63024,7 +64339,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartDefaultSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartDefaultSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartDefaultSeriesSettingsProperty { /** * The axis to which you are binding all line series to. * @@ -63148,7 +64464,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartFieldWellsProperty { /** * The field well configuration of a line chart. * @@ -63314,7 +64631,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartLineStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartLineStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartLineStyleSettingsProperty { /** * Interpolation style for line series. * @@ -63505,7 +64823,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartMarkerStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartMarkerStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartMarkerStyleSettingsProperty { /** * Color of marker in the series. * @@ -63704,7 +65023,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartSeriesSettingsProperty { /** * Line styles options for a line series in `LineChartVisual` . * @@ -64099,7 +65419,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartSortConfigurationProperty, - ) : CdkObject(cdkObject), LineChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a line chart. * @@ -64446,7 +65767,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineChartVisualProperty, - ) : CdkObject(cdkObject), LineChartVisualProperty { + ) : CdkObject(cdkObject), + LineChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -64701,7 +66023,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LineSeriesAxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), LineSeriesAxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + LineSeriesAxisDisplayOptionsProperty { /** * The options that determine the presentation of the line series axis. * @@ -64990,7 +66313,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ListControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), ListControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + ListControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -65095,7 +66419,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ListControlSearchOptionsProperty, - ) : CdkObject(cdkObject), ListControlSearchOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSearchOptionsProperty { /** * The visibility configuration of the search options in a list control. * @@ -65180,7 +66505,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ListControlSelectAllOptionsProperty, - ) : CdkObject(cdkObject), ListControlSelectAllOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSelectAllOptionsProperty { /** * The visibility configuration of the `Select all` options in a list control. * @@ -65262,7 +66588,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LoadingAnimationProperty, - ) : CdkObject(cdkObject), LoadingAnimationProperty { + ) : CdkObject(cdkObject), + LoadingAnimationProperty { /** * The visibility configuration of `LoadingAnimation` . * @@ -65345,7 +66672,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LocalNavigationConfigurationProperty, - ) : CdkObject(cdkObject), LocalNavigationConfigurationProperty { + ) : CdkObject(cdkObject), + LocalNavigationConfigurationProperty { /** * The sheet that is targeted for navigation in the same analysis. * @@ -65454,7 +66782,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.LongFormatTextProperty, - ) : CdkObject(cdkObject), LongFormatTextProperty { + ) : CdkObject(cdkObject), + LongFormatTextProperty { /** * Plain text format. * @@ -65568,7 +66897,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MappedDataSetParameterProperty, - ) : CdkObject(cdkObject), MappedDataSetParameterProperty { + ) : CdkObject(cdkObject), + MappedDataSetParameterProperty { /** * A unique name that identifies a dataset within the analysis or dashboard. * @@ -65656,7 +66986,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MaximumLabelTypeProperty, - ) : CdkObject(cdkObject), MaximumLabelTypeProperty { + ) : CdkObject(cdkObject), + MaximumLabelTypeProperty { /** * The visibility of the maximum label. * @@ -66363,7 +67694,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MaximumMinimumComputationProperty, - ) : CdkObject(cdkObject), MaximumMinimumComputationProperty { + ) : CdkObject(cdkObject), + MaximumMinimumComputationProperty { /** * The ID for a computation. * @@ -66891,7 +68223,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MeasureFieldProperty, - ) : CdkObject(cdkObject), MeasureFieldProperty { + ) : CdkObject(cdkObject), + MeasureFieldProperty { /** * The calculated measure field only used in pivot tables. * @@ -67145,7 +68478,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MetricComparisonComputationProperty, - ) : CdkObject(cdkObject), MetricComparisonComputationProperty { + ) : CdkObject(cdkObject), + MetricComparisonComputationProperty { /** * The ID for a computation. * @@ -67255,7 +68589,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MinimumLabelTypeProperty, - ) : CdkObject(cdkObject), MinimumLabelTypeProperty { + ) : CdkObject(cdkObject), + MinimumLabelTypeProperty { /** * The visibility of the minimum label. * @@ -67352,7 +68687,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.MissingDataConfigurationProperty, - ) : CdkObject(cdkObject), MissingDataConfigurationProperty { + ) : CdkObject(cdkObject), + MissingDataConfigurationProperty { /** * The treatment option that determines how missing data should be rendered. Choose from the * following options:. @@ -67440,7 +68776,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NegativeValueConfigurationProperty, - ) : CdkObject(cdkObject), NegativeValueConfigurationProperty { + ) : CdkObject(cdkObject), + NegativeValueConfigurationProperty { /** * Determines the display mode of the negative value configuration. * @@ -67468,6 +68805,486 @@ public open class CfnAnalysis( } } + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner filter. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * NestedFilterProperty nestedFilterProperty = NestedFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .filterId("filterId") + * .includeInnerSet(false) + * .innerFilter(InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html) + */ + public interface NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-column) + */ + public fun column(): Any + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-filterid) + */ + public fun filterId(): String + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-includeinnerset) + */ + public fun includeInnerSet(): Any + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-innerfilter) + */ + public fun innerFilter(): Any + + /** + * A builder for [NestedFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: IResolvable) + + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5b554124a2554e4de7dc8eb138f42bd1242d3e13692ba4087e6d126066bacaad") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + public fun filterId(filterId: String) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: Boolean) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: InnerFilterProperty) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("adb1106dd13068b449ea35d792f90a4fe21dc220638f7a844f3153b3331094c3") + public fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty.builder() + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5b554124a2554e4de7dc8eb138f42bd1242d3e13692ba4087e6d126066bacaad") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + override fun filterId(filterId: String) { + cdkBuilder.filterId(filterId) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: Boolean) { + cdkBuilder.includeInnerSet(includeInnerSet) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: IResolvable) { + cdkBuilder.includeInnerSet(includeInnerSet.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: IResolvable) { + cdkBuilder.innerFilter(innerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: InnerFilterProperty) { + cdkBuilder.innerFilter(innerFilter.let(InnerFilterProperty.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("adb1106dd13068b449ea35d792f90a4fe21dc220638f7a844f3153b3331094c3") + override fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit): Unit = + innerFilter(InnerFilterProperty(innerFilter)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty, + ) : CdkObject(cdkObject), + NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-filterid) + */ + override fun filterId(): String = unwrap(this).getFilterId() + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-includeinnerset) + */ + override fun includeInnerSet(): Any = unwrap(this).getIncludeInnerSet() + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-nestedfilter.html#cfn-quicksight-analysis-nestedfilter-innerfilter) + */ + override fun innerFilter(): Any = unwrap(this).getInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NestedFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty): + NestedFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? NestedFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: NestedFilterProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.NestedFilterProperty + } + } + /** * The options that determine the null value format configuration. * @@ -67524,7 +69341,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NullValueFormatConfigurationProperty, - ) : CdkObject(cdkObject), NullValueFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NullValueFormatConfigurationProperty { /** * Determines the null string of null values. * @@ -67892,7 +69710,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumberDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -68112,7 +69931,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumberFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberFormatConfigurationProperty { /** * The options that determine the numeric format configuration. * @@ -68284,7 +70104,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericAxisOptionsProperty, - ) : CdkObject(cdkObject), NumericAxisOptionsProperty { + ) : CdkObject(cdkObject), + NumericAxisOptionsProperty { /** * The range setup of a numeric axis. * @@ -68426,7 +70247,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericEqualityDrillDownFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityDrillDownFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -69019,7 +70841,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericEqualityFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityFilterProperty { /** * The aggregation function of the filter. * @@ -69390,7 +71213,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumericFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumericFormatConfigurationProperty { /** * The options that determine the currency display format configuration. * @@ -70102,7 +71926,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericRangeFilterProperty, - ) : CdkObject(cdkObject), NumericRangeFilterProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterProperty { /** * The aggregation function of the filter. * @@ -70279,7 +72104,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericRangeFilterValueProperty, - ) : CdkObject(cdkObject), NumericRangeFilterValueProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterValueProperty { /** * The parameter that is used in the numeric range. * @@ -70421,7 +72247,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericSeparatorConfigurationProperty, - ) : CdkObject(cdkObject), NumericSeparatorConfigurationProperty { + ) : CdkObject(cdkObject), + NumericSeparatorConfigurationProperty { /** * Determines the decimal separator. * @@ -70603,7 +72430,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericalAggregationFunctionProperty, - ) : CdkObject(cdkObject), NumericalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + NumericalAggregationFunctionProperty { /** * An aggregation based on the percentile of values in a dimension or measure. * @@ -70893,7 +72721,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericalDimensionFieldProperty, - ) : CdkObject(cdkObject), NumericalDimensionFieldProperty { + ) : CdkObject(cdkObject), + NumericalDimensionFieldProperty { /** * The column that is used in the `NumericalDimensionField` . * @@ -71217,7 +73046,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.NumericalMeasureFieldProperty, - ) : CdkObject(cdkObject), NumericalMeasureFieldProperty { + ) : CdkObject(cdkObject), + NumericalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -71341,7 +73171,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PaginationConfigurationProperty, - ) : CdkObject(cdkObject), PaginationConfigurationProperty { + ) : CdkObject(cdkObject), + PaginationConfigurationProperty { /** * Indicates the page number. * @@ -71637,7 +73468,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PanelConfigurationProperty, - ) : CdkObject(cdkObject), PanelConfigurationProperty { + ) : CdkObject(cdkObject), + PanelConfigurationProperty { /** * Sets the background color for each panel. * @@ -71852,7 +73684,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PanelTitleOptionsProperty, - ) : CdkObject(cdkObject), PanelTitleOptionsProperty { + ) : CdkObject(cdkObject), + PanelTitleOptionsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-paneltitleoptions.html#cfn-quicksight-analysis-paneltitleoptions-fontconfiguration) */ @@ -72443,7 +74276,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterControlProperty, - ) : CdkObject(cdkObject), ParameterControlProperty { + ) : CdkObject(cdkObject), + ParameterControlProperty { /** * A control from a date parameter that specifies date and time. * @@ -72675,7 +74509,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), ParameterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + ParameterDateTimePickerControlProperty { /** * The display options of a control. * @@ -73100,7 +74935,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterDeclarationProperty, - ) : CdkObject(cdkObject), ParameterDeclarationProperty { + ) : CdkObject(cdkObject), + ParameterDeclarationProperty { /** * A parameter declaration for the `DateTime` data type. * @@ -73463,7 +75299,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterDropDownControlProperty, - ) : CdkObject(cdkObject), ParameterDropDownControlProperty { + ) : CdkObject(cdkObject), + ParameterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -73850,7 +75687,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterListControlProperty, - ) : CdkObject(cdkObject), ParameterListControlProperty { + ) : CdkObject(cdkObject), + ParameterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -74039,7 +75877,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterSelectableValuesProperty, - ) : CdkObject(cdkObject), ParameterSelectableValuesProperty { + ) : CdkObject(cdkObject), + ParameterSelectableValuesProperty { /** * The column identifier that fetches values from the data set. * @@ -74308,7 +76147,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterSliderControlProperty, - ) : CdkObject(cdkObject), ParameterSliderControlProperty { + ) : CdkObject(cdkObject), + ParameterSliderControlProperty { /** * The display options of a control. * @@ -74572,7 +76412,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterTextAreaControlProperty, - ) : CdkObject(cdkObject), ParameterTextAreaControlProperty { + ) : CdkObject(cdkObject), + ParameterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -74796,7 +76637,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParameterTextFieldControlProperty, - ) : CdkObject(cdkObject), ParameterTextFieldControlProperty { + ) : CdkObject(cdkObject), + ParameterTextFieldControlProperty { /** * The display options of a control. * @@ -75062,7 +76904,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ParametersProperty, - ) : CdkObject(cdkObject), ParametersProperty { + ) : CdkObject(cdkObject), + ParametersProperty { /** * The parameters that have a data type of date-time. * @@ -75185,7 +77028,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PercentVisibleRangeProperty, - ) : CdkObject(cdkObject), PercentVisibleRangeProperty { + ) : CdkObject(cdkObject), + PercentVisibleRangeProperty { /** * The lower bound of the range. * @@ -75539,7 +77383,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PercentageDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), PercentageDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + PercentageDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -75666,7 +77511,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PercentileAggregationProperty, - ) : CdkObject(cdkObject), PercentileAggregationProperty { + ) : CdkObject(cdkObject), + PercentileAggregationProperty { /** * The percentile value. * @@ -76349,7 +78195,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PeriodOverPeriodComputationProperty, - ) : CdkObject(cdkObject), PeriodOverPeriodComputationProperty { + ) : CdkObject(cdkObject), + PeriodOverPeriodComputationProperty { /** * The ID for a computation. * @@ -77080,7 +78927,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PeriodToDateComputationProperty, - ) : CdkObject(cdkObject), PeriodToDateComputationProperty { + ) : CdkObject(cdkObject), + PeriodToDateComputationProperty { /** * The ID for a computation. * @@ -77301,7 +79149,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PieChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartAggregatedFieldWellsProperty { /** * The category (group/color) field wells of a pie chart. * @@ -77905,7 +79754,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PieChartConfigurationProperty, - ) : CdkObject(cdkObject), PieChartConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartConfigurationProperty { /** * The label options of the group/color that is displayed in a pie chart. * @@ -78089,7 +79939,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PieChartFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartFieldWellsProperty { /** * The field well configuration of a pie chart. * @@ -78413,7 +80264,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PieChartSortConfigurationProperty, - ) : CdkObject(cdkObject), PieChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a pie chart. * @@ -78762,7 +80614,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PieChartVisualProperty, - ) : CdkObject(cdkObject), PieChartVisualProperty { + ) : CdkObject(cdkObject), + PieChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -78967,7 +80820,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotFieldSortOptionsProperty, - ) : CdkObject(cdkObject), PivotFieldSortOptionsProperty { + ) : CdkObject(cdkObject), + PivotFieldSortOptionsProperty { /** * The field ID for the field sort options. * @@ -79178,7 +81032,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableAggregatedFieldWellsProperty { /** * The columns field well for a pivot table. * @@ -79479,7 +81334,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -79677,7 +81533,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a pivot table. * @@ -79858,7 +81715,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -79945,7 +81803,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableConditionalFormattingScopeProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingScopeProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingScopeProperty { /** * The role (field, field total, grand total) of the cell for conditional formatting. * @@ -80286,7 +82145,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableConfigurationProperty { /** * The field options for a pivot table visual. * @@ -80454,7 +82314,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableDataPathOptionProperty, - ) : CdkObject(cdkObject), PivotTableDataPathOptionProperty { + ) : CdkObject(cdkObject), + PivotTableDataPathOptionProperty { /** * The list of data path values for the data path options. * @@ -80610,7 +82471,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldCollapseStateOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateOptionProperty { /** * The state of the field target of a pivot table. Choose one of the following options:. * @@ -80761,7 +82623,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldCollapseStateTargetProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateTargetProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateTargetProperty { /** * The data path of the pivot table's header. * @@ -80895,7 +82758,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionProperty { /** * The custom label of the pivot table field. * @@ -81129,7 +82993,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionsProperty { /** * The collapse state options for the pivot table field options. * @@ -81226,7 +83091,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldSubtotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldSubtotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldSubtotalOptionsProperty { /** * The field ID of the subtotal options. * @@ -81339,7 +83205,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldWellsProperty { /** * The aggregated field well for the pivot table. * @@ -82103,7 +83970,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableOptionsProperty, - ) : CdkObject(cdkObject), PivotTableOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableOptionsProperty { /** * The table cell style of cells. * @@ -82306,7 +84174,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), PivotTablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + PivotTablePaginatedReportOptionsProperty { /** * The visibility of the repeating header rows on each page. * @@ -82421,7 +84290,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableRowsLabelOptionsProperty, - ) : CdkObject(cdkObject), PivotTableRowsLabelOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableRowsLabelOptionsProperty { /** * The custom label string for the rows label. * @@ -82670,7 +84540,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableSortByProperty, - ) : CdkObject(cdkObject), PivotTableSortByProperty { + ) : CdkObject(cdkObject), + PivotTableSortByProperty { /** * The column sort (field id, direction) for the pivot table sort by options. * @@ -82830,7 +84701,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableSortConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableSortConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableSortConfigurationProperty { /** * The field sort options for a pivot table sort configuration. * @@ -83077,7 +84949,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableTotalOptionsProperty { /** * The column subtotal options. * @@ -83416,7 +85289,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTableVisualProperty, - ) : CdkObject(cdkObject), PivotTableVisualProperty { + ) : CdkObject(cdkObject), + PivotTableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -83957,7 +85831,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PivotTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTotalOptionsProperty { /** * The custom label string for the total cells. * @@ -84210,7 +86085,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.PredefinedHierarchyProperty, - ) : CdkObject(cdkObject), PredefinedHierarchyProperty { + ) : CdkObject(cdkObject), + PredefinedHierarchyProperty { /** * The list of columns that define the predefined hierarchy. * @@ -84306,7 +86182,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ProgressBarOptionsProperty, - ) : CdkObject(cdkObject), ProgressBarOptionsProperty { + ) : CdkObject(cdkObject), + ProgressBarOptionsProperty { /** * The visibility of the progress bar. * @@ -84333,6 +86210,90 @@ public open class CfnAnalysis( } } + /** + * A structure that describes the query execution options. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * QueryExecutionOptionsProperty queryExecutionOptionsProperty = + * QueryExecutionOptionsProperty.builder() + * .queryExecutionMode("queryExecutionMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-queryexecutionoptions.html) + */ + public interface QueryExecutionOptionsProperty { + /** + * A structure that describes the query execution mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-queryexecutionoptions.html#cfn-quicksight-analysis-queryexecutionoptions-queryexecutionmode) + */ + public fun queryExecutionMode(): String? = unwrap(this).getQueryExecutionMode() + + /** + * A builder for [QueryExecutionOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param queryExecutionMode A structure that describes the query execution mode. + */ + public fun queryExecutionMode(queryExecutionMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty.builder() + + /** + * @param queryExecutionMode A structure that describes the query execution mode. + */ + override fun queryExecutionMode(queryExecutionMode: String) { + cdkBuilder.queryExecutionMode(queryExecutionMode) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty, + ) : CdkObject(cdkObject), + QueryExecutionOptionsProperty { + /** + * A structure that describes the query execution mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-queryexecutionoptions.html#cfn-quicksight-analysis-queryexecutionoptions-queryexecutionmode) + */ + override fun queryExecutionMode(): String? = unwrap(this).getQueryExecutionMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): QueryExecutionOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty): + QueryExecutionOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + QueryExecutionOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: QueryExecutionOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.QueryExecutionOptionsProperty + } + } + /** * The aggregated field well configuration of a `RadarChartVisual` . * @@ -84486,7 +86447,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartAggregatedFieldWellsProperty { /** * The aggregated field well categories of a radar chart. * @@ -84584,7 +86546,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartAreaStyleSettingsProperty, - ) : CdkObject(cdkObject), RadarChartAreaStyleSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartAreaStyleSettingsProperty { /** * The visibility settings of a radar chart. * @@ -85185,7 +87148,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartConfigurationProperty { /** * Determines the visibility of the colors of alternatign bands in a radar chart. * @@ -85393,7 +87357,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartFieldWellsProperty { /** * The aggregated field wells of a radar chart visual. * @@ -85508,7 +87473,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), RadarChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartSeriesSettingsProperty { /** * The area style settings of a radar chart. * @@ -85814,7 +87780,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartSortConfigurationProperty { /** * The category items limit for a radar chart. * @@ -86147,7 +88114,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RadarChartVisualProperty, - ) : CdkObject(cdkObject), RadarChartVisualProperty { + ) : CdkObject(cdkObject), + RadarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -86267,7 +88235,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RangeEndsLabelTypeProperty, - ) : CdkObject(cdkObject), RangeEndsLabelTypeProperty { + ) : CdkObject(cdkObject), + RangeEndsLabelTypeProperty { /** * The visibility of the range ends label. * @@ -86350,7 +88319,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineCustomLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineCustomLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineCustomLabelConfigurationProperty { /** * The string text of the custom label. * @@ -86617,7 +88587,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDataConfigurationProperty { /** * The axis binding type of the reference line. Choose one of the following options:. * @@ -86882,7 +88853,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineDynamicDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDynamicDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDynamicDataConfigurationProperty { /** * The calculation that is used in the dynamic data. * @@ -87286,7 +89258,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineLabelConfigurationProperty { /** * The custom label configuration of the label in a reference line. * @@ -87689,7 +89662,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineProperty, - ) : CdkObject(cdkObject), ReferenceLineProperty { + ) : CdkObject(cdkObject), + ReferenceLineProperty { /** * The data configuration of the reference line. * @@ -87798,7 +89772,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineStaticDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStaticDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStaticDataConfigurationProperty { /** * The double input of the static data. * @@ -87914,7 +89889,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineStyleConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStyleConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStyleConfigurationProperty { /** * The hex color of the reference line. * @@ -88131,7 +90107,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ReferenceLineValueLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineValueLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineValueLabelConfigurationProperty { /** * The format configuration of the value label. * @@ -88341,7 +90318,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RelativeDateTimeControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), RelativeDateTimeControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + RelativeDateTimeControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -89020,7 +90998,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RelativeDatesFilterProperty, - ) : CdkObject(cdkObject), RelativeDatesFilterProperty { + ) : CdkObject(cdkObject), + RelativeDatesFilterProperty { /** * The date configuration of the filter. * @@ -89257,7 +91236,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permissions on. * @@ -89381,7 +91361,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RollingDateConfigurationProperty, - ) : CdkObject(cdkObject), RollingDateConfigurationProperty { + ) : CdkObject(cdkObject), + RollingDateConfigurationProperty { /** * The data set that is used in the rolling date configuration. * @@ -89523,7 +91504,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.RowAlternateColorOptionsProperty, - ) : CdkObject(cdkObject), RowAlternateColorOptionsProperty { + ) : CdkObject(cdkObject), + RowAlternateColorOptionsProperty { /** * Determines the list of row alternate colors. * @@ -89670,7 +91652,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SameSheetTargetVisualConfigurationProperty, - ) : CdkObject(cdkObject), SameSheetTargetVisualConfigurationProperty { + ) : CdkObject(cdkObject), + SameSheetTargetVisualConfigurationProperty { /** * The options that choose the target visual in the same sheet. * @@ -89862,7 +91845,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SankeyDiagramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramAggregatedFieldWellsProperty { /** * The destination field wells of a sankey diagram. * @@ -90074,7 +92058,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SankeyDiagramChartConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramChartConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramChartConfigurationProperty { /** * The data label configuration of a sankey diagram. * @@ -90199,7 +92184,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SankeyDiagramFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramFieldWellsProperty { /** * The field well configuration of a sankey diagram. * @@ -90448,7 +92434,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SankeyDiagramSortConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramSortConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramSortConfigurationProperty { /** * The limit on the number of destination nodes that are displayed in a sankey diagram. * @@ -90731,7 +92718,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SankeyDiagramVisualProperty, - ) : CdkObject(cdkObject), SankeyDiagramVisualProperty { + ) : CdkObject(cdkObject), + SankeyDiagramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -91040,7 +93028,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScatterPlotCategoricallyAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotCategoricallyAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotCategoricallyAggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -91580,7 +93569,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScatterPlotConfigurationProperty, - ) : CdkObject(cdkObject), ScatterPlotConfigurationProperty { + ) : CdkObject(cdkObject), + ScatterPlotConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -91836,7 +93826,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScatterPlotFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotFieldWellsProperty { /** * The aggregated field wells of a scatter plot. * @@ -92128,7 +94119,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScatterPlotUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotUnaggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -92476,7 +94468,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScatterPlotVisualProperty, - ) : CdkObject(cdkObject), ScatterPlotVisualProperty { + ) : CdkObject(cdkObject), + ScatterPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -92647,7 +94640,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ScrollBarOptionsProperty, - ) : CdkObject(cdkObject), ScrollBarOptionsProperty { + ) : CdkObject(cdkObject), + ScrollBarOptionsProperty { /** * The visibility of the data zoom scroll bar. * @@ -92737,7 +94731,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SecondaryValueOptionsProperty, - ) : CdkObject(cdkObject), SecondaryValueOptionsProperty { + ) : CdkObject(cdkObject), + SecondaryValueOptionsProperty { /** * Determines the visibility of the secondary value. * @@ -92820,7 +94815,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionAfterPageBreakProperty, - ) : CdkObject(cdkObject), SectionAfterPageBreakProperty { + ) : CdkObject(cdkObject), + SectionAfterPageBreakProperty { /** * The option that enables or disables a page break at the end of a section. * @@ -92944,7 +94940,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionBasedLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutCanvasSizeOptionsProperty { /** * The options for a paper canvas of a section-based layout. * @@ -93346,7 +95343,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutConfigurationProperty { /** * A list of body section configurations. * @@ -93540,7 +95538,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionBasedLayoutPaperCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutPaperCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutPaperCanvasSizeOptionsProperty { /** * Defines the spacing between the canvas content and the top, bottom, left, and right edges. * @@ -93703,7 +95702,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionLayoutConfigurationProperty { /** * The free-form layout configuration of a section. * @@ -93816,7 +95816,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionPageBreakConfigurationProperty, - ) : CdkObject(cdkObject), SectionPageBreakConfigurationProperty { + ) : CdkObject(cdkObject), + SectionPageBreakConfigurationProperty { /** * The configuration of a page break after a section. * @@ -93971,7 +95972,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SectionStyleProperty, - ) : CdkObject(cdkObject), SectionStyleProperty { + ) : CdkObject(cdkObject), + SectionStyleProperty { /** * The height of a section. * @@ -94107,7 +96109,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SelectedSheetsFilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), SelectedSheetsFilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + SelectedSheetsFilterScopeConfigurationProperty { /** * The sheet ID and visual IDs of the sheet and visuals that the filter is applied to. * @@ -94305,7 +96308,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SeriesItemProperty, - ) : CdkObject(cdkObject), SeriesItemProperty { + ) : CdkObject(cdkObject), + SeriesItemProperty { /** * The data field series item configuration of a line chart. * @@ -94461,7 +96465,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SetParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), SetParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + SetParameterValueConfigurationProperty { /** * The destination parameter name of the `SetParameterValueConfiguration` . * @@ -94602,7 +96607,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ShapeConditionalFormatProperty, - ) : CdkObject(cdkObject), ShapeConditionalFormatProperty { + ) : CdkObject(cdkObject), + ShapeConditionalFormatProperty { /** * The conditional formatting for the shape background color of a filled map visual. * @@ -94705,7 +96711,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetControlInfoIconLabelOptionsProperty, - ) : CdkObject(cdkObject), SheetControlInfoIconLabelOptionsProperty { + ) : CdkObject(cdkObject), + SheetControlInfoIconLabelOptionsProperty { /** * The text content of info icon. * @@ -94847,7 +96854,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetControlLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SheetControlLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutConfigurationProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -94985,7 +96993,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetControlLayoutProperty, - ) : CdkObject(cdkObject), SheetControlLayoutProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -95475,7 +97484,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetDefinitionProperty, - ) : CdkObject(cdkObject), SheetDefinitionProperty { + ) : CdkObject(cdkObject), + SheetDefinitionProperty { /** * The layout content type of the sheet. Choose one of the following options:. * @@ -95656,7 +97666,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetElementConfigurationOverridesProperty, - ) : CdkObject(cdkObject), SheetElementConfigurationOverridesProperty { + ) : CdkObject(cdkObject), + SheetElementConfigurationOverridesProperty { /** * Determines whether or not the overrides are visible. Choose one of the following options:. * @@ -95803,7 +97814,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetElementRenderingRuleProperty, - ) : CdkObject(cdkObject), SheetElementRenderingRuleProperty { + ) : CdkObject(cdkObject), + SheetElementRenderingRuleProperty { /** * The override configuration of the rendering rules of a sheet. * @@ -95920,7 +97932,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetProperty, - ) : CdkObject(cdkObject), SheetProperty { + ) : CdkObject(cdkObject), + SheetProperty { /** * The name of a sheet. * @@ -96037,7 +98050,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetTextBoxProperty, - ) : CdkObject(cdkObject), SheetTextBoxProperty { + ) : CdkObject(cdkObject), + SheetTextBoxProperty { /** * The content that is displayed in the text box. * @@ -96188,7 +98202,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SheetVisualScopingConfigurationProperty, - ) : CdkObject(cdkObject), SheetVisualScopingConfigurationProperty { + ) : CdkObject(cdkObject), + SheetVisualScopingConfigurationProperty { /** * The scope of the applied entities. Choose one of the following options:. * @@ -96314,7 +98329,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ShortFormatTextProperty, - ) : CdkObject(cdkObject), ShortFormatTextProperty { + ) : CdkObject(cdkObject), + ShortFormatTextProperty { /** * Plain text format. * @@ -96405,7 +98421,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SimpleClusterMarkerProperty, - ) : CdkObject(cdkObject), SimpleClusterMarkerProperty { + ) : CdkObject(cdkObject), + SimpleClusterMarkerProperty { /** * The color of the simple cluster marker. * @@ -96432,6 +98449,117 @@ public open class CfnAnalysis( } } + /** + * The settings of a chart's single axis configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * SingleAxisOptionsProperty singleAxisOptionsProperty = SingleAxisOptionsProperty.builder() + * .yAxisOptions(YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-singleaxisoptions.html) + */ + public interface SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-singleaxisoptions.html#cfn-quicksight-analysis-singleaxisoptions-yaxisoptions) + */ + public fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + + /** + * A builder for [SingleAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: IResolvable) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("41a06b9c23c3da427273b9c698712a32114356182d1ae0836f5a3b1d1b6e5f94") + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty.builder() + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: IResolvable) { + cdkBuilder.yAxisOptions(yAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) { + cdkBuilder.yAxisOptions(yAxisOptions.let(YAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("41a06b9c23c3da427273b9c698712a32114356182d1ae0836f5a3b1d1b6e5f94") + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit): Unit = + yAxisOptions(YAxisOptionsProperty(yAxisOptions)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty, + ) : CdkObject(cdkObject), + SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-singleaxisoptions.html#cfn-quicksight-analysis-singleaxisoptions-yaxisoptions) + */ + override fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SingleAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty): + SingleAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SingleAxisOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SingleAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.SingleAxisOptionsProperty + } + } + /** * The display options of a control. * @@ -96584,7 +98712,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SliderControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), SliderControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + SliderControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -96706,7 +98835,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SmallMultiplesAxisPropertiesProperty, - ) : CdkObject(cdkObject), SmallMultiplesAxisPropertiesProperty { + ) : CdkObject(cdkObject), + SmallMultiplesAxisPropertiesProperty { /** * Defines the placement of the axis. * @@ -97013,7 +99143,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SmallMultiplesOptionsProperty, - ) : CdkObject(cdkObject), SmallMultiplesOptionsProperty { + ) : CdkObject(cdkObject), + SmallMultiplesOptionsProperty { /** * Sets the maximum number of visible columns to display in the grid of small multiples * panels. @@ -97188,7 +99319,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SpacingProperty, - ) : CdkObject(cdkObject), SpacingProperty { + ) : CdkObject(cdkObject), + SpacingProperty { /** * Define the bottom spacing. * @@ -97371,7 +99503,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.StringDefaultValuesProperty, - ) : CdkObject(cdkObject), StringDefaultValuesProperty { + ) : CdkObject(cdkObject), + StringDefaultValuesProperty { /** * The dynamic value of the `StringDefaultValues` . * @@ -97619,7 +99752,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.StringFormatConfigurationProperty, - ) : CdkObject(cdkObject), StringFormatConfigurationProperty { + ) : CdkObject(cdkObject), + StringFormatConfigurationProperty { /** * The options that determine the null value format configuration. * @@ -97915,7 +100049,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.StringParameterDeclarationProperty, - ) : CdkObject(cdkObject), StringParameterDeclarationProperty { + ) : CdkObject(cdkObject), + StringParameterDeclarationProperty { /** * The default values of a parameter. * @@ -98057,7 +100192,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.StringParameterProperty, - ) : CdkObject(cdkObject), StringParameterProperty { + ) : CdkObject(cdkObject), + StringParameterProperty { /** * A display name for a string parameter. * @@ -98177,7 +100313,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.StringValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), StringValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + StringValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -98713,7 +100850,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.SubtotalOptionsProperty, - ) : CdkObject(cdkObject), SubtotalOptionsProperty { + ) : CdkObject(cdkObject), + SubtotalOptionsProperty { /** * The custom label string for the subtotal cells. * @@ -99407,7 +101545,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableAggregatedFieldWellsProperty { /** * The group by field well for a pivot table. * @@ -99541,7 +101680,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableBorderOptionsProperty, - ) : CdkObject(cdkObject), TableBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableBorderOptionsProperty { /** * The color of a table border. * @@ -99742,7 +101882,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -99836,7 +101977,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableCellImageSizingConfigurationProperty, - ) : CdkObject(cdkObject), TableCellImageSizingConfigurationProperty { + ) : CdkObject(cdkObject), + TableCellImageSizingConfigurationProperty { /** * The cell scaling configuration of the sizing options for the table image configuration. * @@ -100166,7 +102308,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableCellStyleProperty, - ) : CdkObject(cdkObject), TableCellStyleProperty { + ) : CdkObject(cdkObject), + TableCellStyleProperty { /** * The background color for the table cells. * @@ -100469,7 +102612,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a table. * @@ -100689,7 +102833,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -101077,7 +103222,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableConfigurationProperty, - ) : CdkObject(cdkObject), TableConfigurationProperty { + ) : CdkObject(cdkObject), + TableConfigurationProperty { /** * The field options for a table visual. * @@ -101202,7 +103348,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldCustomIconContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomIconContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomIconContentProperty { /** * The icon set type (link) of the custom icon content for table URL link content. * @@ -101351,7 +103498,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldCustomTextContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomTextContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomTextContentProperty { /** * The font configuration of the custom text content for the table URL link content. * @@ -101473,7 +103621,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldImageConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldImageConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldImageConfigurationProperty { /** * The sizing options for the table image configuration. * @@ -101625,7 +103774,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldLinkConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkConfigurationProperty { /** * The URL content (text, icon) for the table link configuration. * @@ -101816,7 +103966,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldLinkContentConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkContentConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkContentConfigurationProperty { /** * The custom icon content for the table link content configuration. * @@ -102043,7 +104194,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldOptionProperty, - ) : CdkObject(cdkObject), TableFieldOptionProperty { + ) : CdkObject(cdkObject), + TableFieldOptionProperty { /** * The custom label for a table field. * @@ -102296,7 +104448,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldOptionsProperty, - ) : CdkObject(cdkObject), TableFieldOptionsProperty { + ) : CdkObject(cdkObject), + TableFieldOptionsProperty { /** * The order of the field IDs that are configured as field options for a table visual. * @@ -102497,7 +104650,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldURLConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldURLConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldURLConfigurationProperty { /** * The image configuration of a table field URL. * @@ -102666,7 +104820,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableFieldWellsProperty, - ) : CdkObject(cdkObject), TableFieldWellsProperty { + ) : CdkObject(cdkObject), + TableFieldWellsProperty { /** * The aggregated field well for the table. * @@ -102795,7 +104950,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableInlineVisualizationProperty, - ) : CdkObject(cdkObject), TableInlineVisualizationProperty { + ) : CdkObject(cdkObject), + TableInlineVisualizationProperty { /** * The configuration of the inline visualization of the data bars within a chart. * @@ -103146,7 +105302,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableOptionsProperty, - ) : CdkObject(cdkObject), TableOptionsProperty { + ) : CdkObject(cdkObject), + TableOptionsProperty { /** * The table cell style of table cells. * @@ -103271,7 +105428,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), TablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + TablePaginatedReportOptionsProperty { /** * The visibility of repeating header rows on each page. * @@ -103375,7 +105533,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TablePinnedFieldOptionsProperty, - ) : CdkObject(cdkObject), TablePinnedFieldOptionsProperty { + ) : CdkObject(cdkObject), + TablePinnedFieldOptionsProperty { /** * A list of columns to be pinned to the left of a table visual. * @@ -103581,7 +105740,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableRowConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableRowConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableRowConditionalFormattingProperty { /** * The conditional formatting color (solid, gradient) of the background for a table row. * @@ -103958,7 +106118,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableSideBorderOptionsProperty, - ) : CdkObject(cdkObject), TableSideBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableSideBorderOptionsProperty { /** * The table border options of the bottom border. * @@ -104184,7 +106345,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableSortConfigurationProperty, - ) : CdkObject(cdkObject), TableSortConfigurationProperty { + ) : CdkObject(cdkObject), + TableSortConfigurationProperty { /** * The pagination configuration (page size, page number) for the table. * @@ -104272,7 +106434,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableStyleTargetProperty, - ) : CdkObject(cdkObject), TableStyleTargetProperty { + ) : CdkObject(cdkObject), + TableStyleTargetProperty { /** * The cell type of the table style target. * @@ -104602,7 +106765,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableUnaggregatedFieldWellsProperty { /** * The values field well for a pivot table. * @@ -104920,7 +107084,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TableVisualProperty, - ) : CdkObject(cdkObject), TableVisualProperty { + ) : CdkObject(cdkObject), + TableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -105194,7 +107359,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TextAreaControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextAreaControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextAreaControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -105467,7 +107633,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TextConditionalFormatProperty, - ) : CdkObject(cdkObject), TextConditionalFormatProperty { + ) : CdkObject(cdkObject), + TextConditionalFormatProperty { /** * The conditional formatting for the text background color. * @@ -105566,7 +107733,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TextControlPlaceholderOptionsProperty, - ) : CdkObject(cdkObject), TextControlPlaceholderOptionsProperty { + ) : CdkObject(cdkObject), + TextControlPlaceholderOptionsProperty { /** * The visibility configuration of the placeholder options in a text control. * @@ -105803,7 +107971,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TextFieldControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextFieldControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextFieldControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -105921,7 +108090,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ThousandSeparatorOptionsProperty, - ) : CdkObject(cdkObject), ThousandSeparatorOptionsProperty { + ) : CdkObject(cdkObject), + ThousandSeparatorOptionsProperty { /** * Determines the thousands separator symbol. * @@ -106120,7 +108290,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TimeBasedForecastPropertiesProperty, - ) : CdkObject(cdkObject), TimeBasedForecastPropertiesProperty { + ) : CdkObject(cdkObject), + TimeBasedForecastPropertiesProperty { /** * The lower boundary setup of a forecast computation. * @@ -106688,7 +108859,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TimeEqualityFilterProperty, - ) : CdkObject(cdkObject), TimeEqualityFilterProperty { + ) : CdkObject(cdkObject), + TimeEqualityFilterProperty { /** * The column that the filter is applied to. * @@ -106914,7 +109086,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TimeRangeDrillDownFilterProperty, - ) : CdkObject(cdkObject), TimeRangeDrillDownFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -107633,7 +109806,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TimeRangeFilterProperty, - ) : CdkObject(cdkObject), TimeRangeFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterProperty { /** * The column that the filter is applied to. * @@ -107862,7 +110036,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TimeRangeFilterValueProperty, - ) : CdkObject(cdkObject), TimeRangeFilterValueProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterValueProperty { /** * The parameter type input value. * @@ -107937,12 +110112,14 @@ public open class CfnAnalysis( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build(); @@ -108067,7 +110244,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TooltipItemProperty, - ) : CdkObject(cdkObject), TooltipItemProperty { + ) : CdkObject(cdkObject), + TooltipItemProperty { /** * The tooltip item for the columns that are not part of a field well. * @@ -108135,12 +110313,14 @@ public open class CfnAnalysis( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -108274,7 +110454,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TooltipOptionsProperty, - ) : CdkObject(cdkObject), TooltipOptionsProperty { + ) : CdkObject(cdkObject), + TooltipOptionsProperty { /** * The setup for the detailed tooltip. * @@ -108824,7 +111005,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TopBottomFilterProperty, - ) : CdkObject(cdkObject), TopBottomFilterProperty { + ) : CdkObject(cdkObject), + TopBottomFilterProperty { /** * The aggregation and sort configuration of the top bottom filter. * @@ -109169,7 +111351,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TopBottomMoversComputationProperty, - ) : CdkObject(cdkObject), TopBottomMoversComputationProperty { + ) : CdkObject(cdkObject), + TopBottomMoversComputationProperty { /** * The category field that is used in a computation. * @@ -109458,7 +111641,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TopBottomRankedComputationProperty, - ) : CdkObject(cdkObject), TopBottomRankedComputationProperty { + ) : CdkObject(cdkObject), + TopBottomRankedComputationProperty { /** * The category field that is used in a computation. * @@ -109895,7 +112079,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TotalAggregationComputationProperty, - ) : CdkObject(cdkObject), TotalAggregationComputationProperty { + ) : CdkObject(cdkObject), + TotalAggregationComputationProperty { /** * The ID for a computation. * @@ -109994,7 +112179,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TotalAggregationFunctionProperty, - ) : CdkObject(cdkObject), TotalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + TotalAggregationFunctionProperty { /** * A built in aggregation function for total values. * @@ -110138,7 +112324,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TotalAggregationOptionProperty, - ) : CdkObject(cdkObject), TotalAggregationOptionProperty { + ) : CdkObject(cdkObject), + TotalAggregationOptionProperty { /** * The field id that's associated with the total aggregation option. * @@ -110438,7 +112625,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TotalOptionsProperty, - ) : CdkObject(cdkObject), TotalOptionsProperty { + ) : CdkObject(cdkObject), + TotalOptionsProperty { /** * The custom label string for the total cells. * @@ -110677,7 +112865,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TreeMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapAggregatedFieldWellsProperty { /** * The color field well of a tree map. * @@ -111197,7 +113386,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TreeMapConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapConfigurationProperty { /** * The label options (label text, label visibility) for the colors displayed in a tree map. * @@ -111365,7 +113555,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TreeMapFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapFieldWellsProperty { /** * The aggregated field wells of a tree map. * @@ -111562,7 +113753,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TreeMapSortConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapSortConfigurationProperty { /** * The limit on the number of groups that are displayed. * @@ -111885,7 +114077,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TreeMapVisualProperty, - ) : CdkObject(cdkObject), TreeMapVisualProperty { + ) : CdkObject(cdkObject), + TreeMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -112004,7 +114197,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.TrendArrowOptionsProperty, - ) : CdkObject(cdkObject), TrendArrowOptionsProperty { + ) : CdkObject(cdkObject), + TrendArrowOptionsProperty { /** * The visibility of the trend arrows. * @@ -112394,7 +114588,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.UnaggregatedFieldProperty, - ) : CdkObject(cdkObject), UnaggregatedFieldProperty { + ) : CdkObject(cdkObject), + UnaggregatedFieldProperty { /** * The column that is used in the `UnaggregatedField` . * @@ -112796,7 +114991,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.UniqueValuesComputationProperty, - ) : CdkObject(cdkObject), UniqueValuesComputationProperty { + ) : CdkObject(cdkObject), + UniqueValuesComputationProperty { /** * The category field that is used in a computation. * @@ -112902,7 +115098,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.ValidationStrategyProperty, - ) : CdkObject(cdkObject), ValidationStrategyProperty { + ) : CdkObject(cdkObject), + ValidationStrategyProperty { /** * The mode of validation for the asset to be created or updated. * @@ -113017,7 +115214,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisibleRangeOptionsProperty, - ) : CdkObject(cdkObject), VisibleRangeOptionsProperty { + ) : CdkObject(cdkObject), + VisibleRangeOptionsProperty { /** * The percent range in the visible range. * @@ -113344,7 +115542,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualCustomActionOperationProperty, - ) : CdkObject(cdkObject), VisualCustomActionOperationProperty { + ) : CdkObject(cdkObject), + VisualCustomActionOperationProperty { /** * The filter operation that filters data included in a visual or in an entire sheet. * @@ -113630,7 +115829,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualCustomActionProperty, - ) : CdkObject(cdkObject), VisualCustomActionProperty { + ) : CdkObject(cdkObject), + VisualCustomActionProperty { /** * A list of `VisualCustomActionOperations` . * @@ -113800,7 +116000,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualPaletteProperty, - ) : CdkObject(cdkObject), VisualPaletteProperty { + ) : CdkObject(cdkObject), + VisualPaletteProperty { /** * The chart color options for the visual palette. * @@ -115415,7 +117616,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualProperty, - ) : CdkObject(cdkObject), VisualProperty { + ) : CdkObject(cdkObject), + VisualProperty { /** * A bar chart. * @@ -115796,7 +117998,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualSubtitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualSubtitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualSubtitleLabelOptionsProperty { /** * The long text format of the subtitle label, such as plain text or rich text. * @@ -115943,7 +118146,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.VisualTitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualTitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualTitleLabelOptionsProperty { /** * The short text format of the title label, such as plain text or rich text. * @@ -116130,7 +118334,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartAggregatedFieldWellsProperty { /** * The breakdown field wells of a waterfall visual. * @@ -116270,7 +118475,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartColorConfigurationProperty { /** * The color configuration for individual groups within a waterfall visual. * @@ -116883,7 +119089,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartConfigurationProperty { /** * The options that determine the presentation of the category axis. * @@ -117070,7 +119277,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartFieldWellsProperty { /** * The field well configuration of a waterfall visual. * @@ -117194,7 +119402,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartGroupColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartGroupColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartGroupColorConfigurationProperty { /** * Defines the color for the negative bars of a waterfall chart. * @@ -117292,7 +119501,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartOptionsProperty, - ) : CdkObject(cdkObject), WaterfallChartOptionsProperty { + ) : CdkObject(cdkObject), + WaterfallChartOptionsProperty { /** * This option determines the total bar label of a waterfall visual. * @@ -117477,7 +119687,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallChartSortConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartSortConfigurationProperty { /** * The limit on the number of bar groups that are displayed. * @@ -117800,7 +120011,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WaterfallVisualProperty, - ) : CdkObject(cdkObject), WaterfallVisualProperty { + ) : CdkObject(cdkObject), + WaterfallVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -117942,7 +120154,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WhatIfPointScenarioProperty, - ) : CdkObject(cdkObject), WhatIfPointScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfPointScenarioProperty { /** * The date that you need the forecast results for. * @@ -118075,7 +120288,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WhatIfRangeScenarioProperty, - ) : CdkObject(cdkObject), WhatIfRangeScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfRangeScenarioProperty { /** * The end date in the date range that you need the forecast results for. * @@ -118736,7 +120950,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudAggregatedFieldWellsProperty { /** * The group by field well of a word cloud. * @@ -119000,7 +121215,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudChartConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudChartConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudChartConfigurationProperty { /** * The label options (label text, label visibility, and sort icon visibility) for the word * cloud category. @@ -119626,7 +121842,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudFieldWellsProperty { /** * The aggregated field wells of a word cloud. * @@ -119817,7 +122034,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudOptionsProperty, - ) : CdkObject(cdkObject), WordCloudOptionsProperty { + ) : CdkObject(cdkObject), + WordCloudOptionsProperty { /** * The cloud layout options (fluid, normal) of a word cloud. * @@ -120044,7 +122262,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudSortConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudSortConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudSortConfigurationProperty { /** * The limit on the number of groups that are displayed in a word cloud. * @@ -120367,7 +122586,8 @@ public open class CfnAnalysis( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudVisualProperty, - ) : CdkObject(cdkObject), WordCloudVisualProperty { + ) : CdkObject(cdkObject), + WordCloudVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -120431,4 +122651,96 @@ public open class CfnAnalysis( software.amazon.awscdk.services.quicksight.CfnAnalysis.WordCloudVisualProperty } } + + /** + * The options that are available for a single Y axis in a chart. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * YAxisOptionsProperty yAxisOptionsProperty = YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-yaxisoptions.html) + */ + public interface YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical axis + * of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-yaxisoptions.html#cfn-quicksight-analysis-yaxisoptions-yaxis) + */ + public fun yAxis(): String + + /** + * A builder for [YAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + public fun yAxis(yAxis: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty.builder() + + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + override fun yAxis(yAxis: String) { + cdkBuilder.yAxis(yAxis) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty, + ) : CdkObject(cdkObject), + YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-yaxisoptions.html#cfn-quicksight-analysis-yaxisoptions-yaxis) + */ + override fun yAxis(): String = unwrap(this).getYAxis() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): YAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty): + YAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? YAxisOptionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: YAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnAnalysis.YAxisOptionsProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysisProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysisProps.kt index 6bf4b2c3d8..5fee211db4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysisProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnAnalysisProps.kt @@ -596,7 +596,8 @@ public interface CfnAnalysisProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnAnalysisProps, - ) : CdkObject(cdkObject), CfnAnalysisProps { + ) : CdkObject(cdkObject), + CfnAnalysisProps { /** * The ID for the analysis that you're creating. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboard.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboard.kt index 3b88cd6cab..a497f3c7b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboard.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboard.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDashboard( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1321,7 +1323,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AdHocFilteringOptionProperty, - ) : CdkObject(cdkObject), AdHocFilteringOptionProperty { + ) : CdkObject(cdkObject), + AdHocFilteringOptionProperty { /** * Availability status. * @@ -1559,7 +1562,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AggregationFunctionProperty, - ) : CdkObject(cdkObject), AggregationFunctionProperty { + ) : CdkObject(cdkObject), + AggregationFunctionProperty { /** * Aggregation for attributes. * @@ -1794,7 +1798,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AggregationSortConfigurationProperty, - ) : CdkObject(cdkObject), AggregationSortConfigurationProperty { + ) : CdkObject(cdkObject), + AggregationSortConfigurationProperty { /** * The function that aggregates the values in `Column` . * @@ -1961,7 +1966,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AnalysisDefaultsProperty, - ) : CdkObject(cdkObject), AnalysisDefaultsProperty { + ) : CdkObject(cdkObject), + AnalysisDefaultsProperty { /** * The configuration for default new sheet settings. * @@ -2073,7 +2079,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AnchorDateConfigurationProperty, - ) : CdkObject(cdkObject), AnchorDateConfigurationProperty { + ) : CdkObject(cdkObject), + AnchorDateConfigurationProperty { /** * The options for the date configuration. Choose one of the options below:. * @@ -2217,7 +2224,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ArcAxisConfigurationProperty, - ) : CdkObject(cdkObject), ArcAxisConfigurationProperty { + ) : CdkObject(cdkObject), + ArcAxisConfigurationProperty { /** * The arc axis range of a `GaugeChartVisual` . * @@ -2328,7 +2336,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ArcAxisDisplayRangeProperty, - ) : CdkObject(cdkObject), ArcAxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + ArcAxisDisplayRangeProperty { /** * The maximum value of the arc axis range. * @@ -2436,7 +2445,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ArcConfigurationProperty, - ) : CdkObject(cdkObject), ArcConfigurationProperty { + ) : CdkObject(cdkObject), + ArcConfigurationProperty { /** * The option that determines the arc angle of a `GaugeChartVisual` . * @@ -2523,7 +2533,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ArcOptionsProperty, - ) : CdkObject(cdkObject), ArcOptionsProperty { + ) : CdkObject(cdkObject), + ArcOptionsProperty { /** * The arc thickness of a `GaugeChartVisual` . * @@ -2624,7 +2635,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AssetOptionsProperty, - ) : CdkObject(cdkObject), AssetOptionsProperty { + ) : CdkObject(cdkObject), + AssetOptionsProperty { /** * Determines the timezone for the analysis. * @@ -2747,7 +2759,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AttributeAggregationFunctionProperty, - ) : CdkObject(cdkObject), AttributeAggregationFunctionProperty { + ) : CdkObject(cdkObject), + AttributeAggregationFunctionProperty { /** * The built-in aggregation functions for attributes. * @@ -2942,7 +2955,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisDataOptionsProperty, - ) : CdkObject(cdkObject), AxisDataOptionsProperty { + ) : CdkObject(cdkObject), + AxisDataOptionsProperty { /** * The options for an axis with a date field. * @@ -3052,7 +3066,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisDisplayMinMaxRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayMinMaxRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayMinMaxRangeProperty { /** * The maximum setup for an axis display range. * @@ -3373,7 +3388,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), AxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + AxisDisplayOptionsProperty { /** * Determines whether or not the axis line is visible. * @@ -3544,7 +3560,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisDisplayRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayRangeProperty { /** * The data-driven setup of an axis display range. * @@ -3745,7 +3762,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelOptionsProperty { /** * The options that indicate which field the label belongs to. * @@ -3892,7 +3910,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisLabelReferenceOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelReferenceOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelReferenceOptionsProperty { /** * The column that the axis label is targeted to. * @@ -4004,7 +4023,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisLinearScaleProperty, - ) : CdkObject(cdkObject), AxisLinearScaleProperty { + ) : CdkObject(cdkObject), + AxisLinearScaleProperty { /** * The step count setup of a linear axis. * @@ -4094,7 +4114,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisLogarithmicScaleProperty, - ) : CdkObject(cdkObject), AxisLogarithmicScaleProperty { + ) : CdkObject(cdkObject), + AxisLogarithmicScaleProperty { /** * The base setup of a logarithmic axis scale. * @@ -4256,7 +4277,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisScaleProperty, - ) : CdkObject(cdkObject), AxisScaleProperty { + ) : CdkObject(cdkObject), + AxisScaleProperty { /** * The linear axis scale setup. * @@ -4407,7 +4429,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.AxisTickLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisTickLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisTickLabelOptionsProperty { /** * Determines whether or not the axis ticks are visible. * @@ -4644,7 +4667,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartAggregatedFieldWellsProperty { /** * The category (y-axis) field well of a bar chart. * @@ -5469,7 +5493,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BarChartConfigurationProperty, - ) : CdkObject(cdkObject), BarChartConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartConfigurationProperty { /** * Determines the arrangement of the bars. * @@ -5697,7 +5722,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BarChartFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartFieldWellsProperty { /** * The aggregated field wells of a bar chart. * @@ -6136,7 +6162,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), BarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartSortConfigurationProperty { /** * The limit on the number of categories displayed in a bar chart. * @@ -6498,7 +6525,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BarChartVisualProperty, - ) : CdkObject(cdkObject), BarChartVisualProperty { + ) : CdkObject(cdkObject), + BarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -6617,7 +6645,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BinCountOptionsProperty, - ) : CdkObject(cdkObject), BinCountOptionsProperty { + ) : CdkObject(cdkObject), + BinCountOptionsProperty { /** * The options that determine the bin count value. * @@ -6718,7 +6747,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BinWidthOptionsProperty, - ) : CdkObject(cdkObject), BinWidthOptionsProperty { + ) : CdkObject(cdkObject), + BinWidthOptionsProperty { /** * The options that determine the bin count limit. * @@ -7003,7 +7033,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BodySectionConfigurationProperty, - ) : CdkObject(cdkObject), BodySectionConfigurationProperty { + ) : CdkObject(cdkObject), + BodySectionConfigurationProperty { /** * The configuration of content in a body section. * @@ -7167,7 +7198,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BodySectionContentProperty, - ) : CdkObject(cdkObject), BodySectionContentProperty { + ) : CdkObject(cdkObject), + BodySectionContentProperty { /** * The layout configuration of a body section. * @@ -7812,7 +7844,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotAggregatedFieldWellsProperty { /** * The group by field well of a box plot chart. * @@ -8417,7 +8450,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotChartConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotChartConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotChartConfigurationProperty { /** * The box plot chart options for a box plot visual. * @@ -9090,7 +9124,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotFieldWellsProperty { /** * The aggregated field wells of a box plot. * @@ -9243,7 +9278,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotOptionsProperty { /** * Determines the visibility of all data points of the box plot. * @@ -9443,7 +9479,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotSortConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotSortConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotSortConfigurationProperty { /** * The sort configuration of a group by fields. * @@ -9532,7 +9569,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotStyleOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotStyleOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotStyleOptionsProperty { /** * The fill styles (solid, transparent) of the box plot. * @@ -9847,7 +9885,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.BoxPlotVisualProperty, - ) : CdkObject(cdkObject), BoxPlotVisualProperty { + ) : CdkObject(cdkObject), + BoxPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -10006,7 +10045,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CalculatedFieldProperty, - ) : CdkObject(cdkObject), CalculatedFieldProperty { + ) : CdkObject(cdkObject), + CalculatedFieldProperty { /** * The data set that is used in this calculated field. * @@ -10123,7 +10163,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CalculatedMeasureFieldProperty, - ) : CdkObject(cdkObject), CalculatedMeasureFieldProperty { + ) : CdkObject(cdkObject), + CalculatedMeasureFieldProperty { /** * The expression in the table calculation. * @@ -10249,7 +10290,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CascadingControlConfigurationProperty, - ) : CdkObject(cdkObject), CascadingControlConfigurationProperty { + ) : CdkObject(cdkObject), + CascadingControlConfigurationProperty { /** * A list of source controls that determine the values that are used in the current control. * @@ -10389,7 +10431,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CascadingControlSourceProperty, - ) : CdkObject(cdkObject), CascadingControlSourceProperty { + ) : CdkObject(cdkObject), + CascadingControlSourceProperty { /** * The column identifier that determines which column to look up for the source sheet control. * @@ -10668,7 +10711,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoricalDimensionFieldProperty, - ) : CdkObject(cdkObject), CategoricalDimensionFieldProperty { + ) : CdkObject(cdkObject), + CategoricalDimensionFieldProperty { /** * The column that is used in the `CategoricalDimensionField` . * @@ -10962,7 +11006,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoricalMeasureFieldProperty, - ) : CdkObject(cdkObject), CategoricalMeasureFieldProperty { + ) : CdkObject(cdkObject), + CategoricalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -11131,7 +11176,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryDrillDownFilterProperty, - ) : CdkObject(cdkObject), CategoryDrillDownFilterProperty { + ) : CdkObject(cdkObject), + CategoryDrillDownFilterProperty { /** * A list of the string inputs that are the values of the category drill down filter. * @@ -11402,7 +11448,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryFilterConfigurationProperty, - ) : CdkObject(cdkObject), CategoryFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CategoryFilterConfigurationProperty { /** * A custom filter that filters based on a single value. * @@ -11899,7 +11946,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryFilterProperty, - ) : CdkObject(cdkObject), CategoryFilterProperty { + ) : CdkObject(cdkObject), + CategoryFilterProperty { /** * The column that the filter is applied to. * @@ -11950,6 +11998,446 @@ public open class CfnDashboard( } } + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * CategoryInnerFilterProperty categoryInnerFilterProperty = CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html) + */ + public interface CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-column) + */ + public fun column(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-configuration) + */ + public fun configuration(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + public fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + + /** + * A builder for [CategoryInnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column the value to be set. + */ + public fun column(column: IResolvable) + + /** + * @param column the value to be set. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4af5d806a377f25dc66af91fdcbf81b4cf207930a7d84bd4122daedc1ce8ee09") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: CategoryFilterConfigurationProperty) + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e01b047d566b528bf9669a37e3fa43eb9e3210b3e7210f95bb6ce9474559a106") + public + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4f23073518cdfb906d7bfb2fbb364bdd8f5192f12d4fd29faea054a14a58164b") + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty.builder() + + /** + * @param column the value to be set. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4af5d806a377f25dc66af91fdcbf81b4cf207930a7d84bd4122daedc1ce8ee09") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: CategoryFilterConfigurationProperty) { + cdkBuilder.configuration(configuration.let(CategoryFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e01b047d566b528bf9669a37e3fa43eb9e3210b3e7210f95bb6ce9474559a106") + override + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit): + Unit = configuration(CategoryFilterConfigurationProperty(configuration)) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(DefaultFilterControlConfigurationProperty.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4f23073518cdfb906d7bfb2fbb364bdd8f5192f12d4fd29faea054a14a58164b") + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit): + Unit = + defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty(defaultFilterControlConfiguration)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty, + ) : CdkObject(cdkObject), + CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-configuration) + */ + override fun configuration(): Any = unwrap(this).getConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-categoryinnerfilter.html#cfn-quicksight-dashboard-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + override fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CategoryInnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty): + CategoryInnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? + CategoryInnerFilterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CategoryInnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDashboard.CategoryInnerFilterProperty + } + } + /** * The label options for an axis on a chart. * @@ -12100,7 +12588,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ChartAxisLabelOptionsProperty, - ) : CdkObject(cdkObject), ChartAxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + ChartAxisLabelOptionsProperty { /** * The label options for a chart axis. * @@ -12231,7 +12720,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ClusterMarkerConfigurationProperty, - ) : CdkObject(cdkObject), ClusterMarkerConfigurationProperty { + ) : CdkObject(cdkObject), + ClusterMarkerConfigurationProperty { /** * The cluster marker that is a part of the cluster marker configuration. * @@ -12344,7 +12834,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ClusterMarkerProperty, - ) : CdkObject(cdkObject), ClusterMarkerProperty { + ) : CdkObject(cdkObject), + ClusterMarkerProperty { /** * The simple cluster marker of the cluster marker. * @@ -12520,7 +13011,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColorScaleProperty, - ) : CdkObject(cdkObject), ColorScaleProperty { + ) : CdkObject(cdkObject), + ColorScaleProperty { /** * Determines the color fill type. * @@ -12644,7 +13136,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColorsConfigurationProperty, - ) : CdkObject(cdkObject), ColorsConfigurationProperty { + ) : CdkObject(cdkObject), + ColorsConfigurationProperty { /** * A list of up to 50 custom colors. * @@ -13091,7 +13584,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColumnConfigurationProperty, - ) : CdkObject(cdkObject), ColumnConfigurationProperty { + ) : CdkObject(cdkObject), + ColumnConfigurationProperty { /** * The color configurations of the column. * @@ -13440,7 +13934,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColumnHierarchyProperty, - ) : CdkObject(cdkObject), ColumnHierarchyProperty { + ) : CdkObject(cdkObject), + ColumnHierarchyProperty { /** * The option that determines the hierarchy of any `DateTime` fields. * @@ -13561,7 +14056,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColumnIdentifierProperty, - ) : CdkObject(cdkObject), ColumnIdentifierProperty { + ) : CdkObject(cdkObject), + ColumnIdentifierProperty { /** * The name of the column. * @@ -13759,7 +14255,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColumnSortProperty, - ) : CdkObject(cdkObject), ColumnSortProperty { + ) : CdkObject(cdkObject), + ColumnSortProperty { /** * The aggregation function that is defined in the column sort. * @@ -13828,6 +14325,7 @@ public open class CfnDashboard( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -13856,6 +14354,13 @@ public open class CfnDashboard( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columntooltipitem.html#cfn-quicksight-dashboard-columntooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -13907,6 +14412,12 @@ public open class CfnDashboard( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -13970,6 +14481,14 @@ public open class CfnDashboard( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -13984,7 +14503,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ColumnTooltipItemProperty, - ) : CdkObject(cdkObject), ColumnTooltipItemProperty { + ) : CdkObject(cdkObject), + ColumnTooltipItemProperty { /** * The aggregation function of the column tooltip item. * @@ -14006,6 +14526,13 @@ public open class CfnDashboard( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columntooltipitem.html#cfn-quicksight-dashboard-columntooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -14226,7 +14753,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComboChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartAggregatedFieldWellsProperty { /** * The aggregated `BarValues` field well of a combo chart. * @@ -14393,6 +14921,11 @@ public open class CfnDashboard( */ public fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-combochartconfiguration.html#cfn-quicksight-dashboard-combochartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -14663,6 +15196,23 @@ public open class CfnDashboard( public fun secondaryYAxisLabelOptions(secondaryYAxisLabelOptions: ChartAxisLabelOptionsProperty.Builder.() -> Unit) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3aa2b59df1e2ce9afe5db4eb7215caf7f9c0f19c497adad638adf353bd245103") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -15032,6 +15582,29 @@ public open class CfnDashboard( Unit = secondaryYAxisLabelOptions(ChartAxisLabelOptionsProperty(secondaryYAxisLabelOptions)) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3aa2b59df1e2ce9afe5db4eb7215caf7f9c0f19c497adad638adf353bd245103") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -15106,7 +15679,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComboChartConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -15215,6 +15789,11 @@ public open class CfnDashboard( */ override fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-combochartconfiguration.html#cfn-quicksight-dashboard-combochartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -15355,7 +15934,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComboChartFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartFieldWellsProperty { /** * The aggregated field wells of a combo chart. * @@ -15677,7 +16257,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComboChartSortConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartSortConfigurationProperty { /** * The item limit configuration for the category field well of a combo chart. * @@ -16016,7 +16597,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComboChartVisualProperty, - ) : CdkObject(cdkObject), ComboChartVisualProperty { + ) : CdkObject(cdkObject), + ComboChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -16238,7 +16820,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComparisonConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonConfigurationProperty { /** * The format of the comparison. * @@ -16462,7 +17045,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComparisonFormatConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonFormatConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonFormatConfigurationProperty { /** * The number display format. * @@ -17003,7 +17587,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ComputationProperty, - ) : CdkObject(cdkObject), ComputationProperty { + ) : CdkObject(cdkObject), + ComputationProperty { /** * The forecast computation configuration. * @@ -17238,7 +17823,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingColorProperty { /** * Formatting configuration for gradient color. * @@ -17457,7 +18043,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingCustomIconConditionProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconConditionProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconConditionProperty { /** * Determines the color of the icon. * @@ -17582,7 +18169,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingCustomIconOptionsProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconOptionsProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconOptionsProperty { /** * Determines the type of icon. * @@ -17729,7 +18317,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingGradientColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingGradientColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingGradientColorProperty { /** * Determines the color. * @@ -17821,7 +18410,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingIconDisplayConfigurationProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconDisplayConfigurationProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconDisplayConfigurationProperty { /** * Determines the icon display configuration. * @@ -17997,7 +18587,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingIconProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconProperty { /** * Determines the custom condition for an icon set. * @@ -18111,7 +18702,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingIconSetProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconSetProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconSetProperty { /** * The expression that determines the formatting configuration for the icon set. * @@ -18225,7 +18817,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ConditionalFormattingSolidColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingSolidColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingSolidColorProperty { /** * Determines the color. * @@ -18369,7 +18962,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ContributionAnalysisDefaultProperty, - ) : CdkObject(cdkObject), ContributionAnalysisDefaultProperty { + ) : CdkObject(cdkObject), + ContributionAnalysisDefaultProperty { /** * The dimensions columns that are used in the contribution analysis, usually a list of * `ColumnIdentifiers` . @@ -18765,7 +19359,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CurrencyDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), CurrencyDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + CurrencyDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -19007,7 +19602,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomActionFilterOperationProperty, - ) : CdkObject(cdkObject), CustomActionFilterOperationProperty { + ) : CdkObject(cdkObject), + CustomActionFilterOperationProperty { /** * The configuration that chooses the fields to be filtered. * @@ -19136,7 +19732,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomActionNavigationOperationProperty, - ) : CdkObject(cdkObject), CustomActionNavigationOperationProperty { + ) : CdkObject(cdkObject), + CustomActionNavigationOperationProperty { /** * The configuration that chooses the navigation target. * @@ -19265,7 +19862,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomActionSetParametersOperationProperty, - ) : CdkObject(cdkObject), CustomActionSetParametersOperationProperty { + ) : CdkObject(cdkObject), + CustomActionSetParametersOperationProperty { /** * The parameter that determines the value configuration. * @@ -19386,7 +19984,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomActionURLOperationProperty, - ) : CdkObject(cdkObject), CustomActionURLOperationProperty { + ) : CdkObject(cdkObject), + CustomActionURLOperationProperty { /** * The target of the `CustomActionURLOperation` . * @@ -19521,7 +20120,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomColorProperty, - ) : CdkObject(cdkObject), CustomColorProperty { + ) : CdkObject(cdkObject), + CustomColorProperty { /** * The color that is applied to the data value. * @@ -19668,7 +20268,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomContentConfigurationProperty, - ) : CdkObject(cdkObject), CustomContentConfigurationProperty { + ) : CdkObject(cdkObject), + CustomContentConfigurationProperty { /** * The content type of the custom content visual. * @@ -20063,7 +20664,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomContentVisualProperty, - ) : CdkObject(cdkObject), CustomContentVisualProperty { + ) : CdkObject(cdkObject), + CustomContentVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -20297,7 +20899,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomFilterConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterConfigurationProperty { /** * The category value for the filter. * @@ -20511,7 +21114,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomFilterListConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterListConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -20622,7 +21226,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomNarrativeOptionsProperty, - ) : CdkObject(cdkObject), CustomNarrativeOptionsProperty { + ) : CdkObject(cdkObject), + CustomNarrativeOptionsProperty { /** * The string input of custom narrative. * @@ -20836,7 +21441,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomParameterValuesProperty, - ) : CdkObject(cdkObject), CustomParameterValuesProperty { + ) : CdkObject(cdkObject), + CustomParameterValuesProperty { /** * A list of datetime-type parameter values. * @@ -21004,7 +21610,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.CustomValuesConfigurationProperty, - ) : CdkObject(cdkObject), CustomValuesConfigurationProperty { + ) : CdkObject(cdkObject), + CustomValuesConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customvaluesconfiguration.html#cfn-quicksight-dashboard-customvaluesconfiguration-customvalues) */ @@ -21156,7 +21763,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardErrorProperty, - ) : CdkObject(cdkObject), DashboardErrorProperty { + ) : CdkObject(cdkObject), + DashboardErrorProperty { /** * Message. * @@ -21821,7 +22429,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardPublishOptionsProperty, - ) : CdkObject(cdkObject), DashboardPublishOptionsProperty { + ) : CdkObject(cdkObject), + DashboardPublishOptionsProperty { /** * Ad hoc (one-time) filtering option. * @@ -22010,7 +22619,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardSourceEntityProperty, - ) : CdkObject(cdkObject), DashboardSourceEntityProperty { + ) : CdkObject(cdkObject), + DashboardSourceEntityProperty { /** * Source template. * @@ -22139,7 +22749,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardSourceTemplateProperty, - ) : CdkObject(cdkObject), DashboardSourceTemplateProperty { + ) : CdkObject(cdkObject), + DashboardSourceTemplateProperty { /** * The Amazon Resource Name (ARN) of the resource. * @@ -22632,7 +23243,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardVersionDefinitionProperty, - ) : CdkObject(cdkObject), DashboardVersionDefinitionProperty { + ) : CdkObject(cdkObject), + DashboardVersionDefinitionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-dashboardversiondefinition.html#cfn-quicksight-dashboard-dashboardversiondefinition-analysisdefaults) */ @@ -23032,7 +23644,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardVersionProperty, - ) : CdkObject(cdkObject), DashboardVersionProperty { + ) : CdkObject(cdkObject), + DashboardVersionProperty { /** * The Amazon Resource Name (ARN) of the resource. * @@ -23219,7 +23832,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DashboardVisualPublishOptionsProperty, - ) : CdkObject(cdkObject), DashboardVisualPublishOptionsProperty { + ) : CdkObject(cdkObject), + DashboardVisualPublishOptionsProperty { /** * Determines if hidden fields are included in an exported dashboard. * @@ -23342,7 +23956,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataBarsOptionsProperty, - ) : CdkObject(cdkObject), DataBarsOptionsProperty { + ) : CdkObject(cdkObject), + DataBarsOptionsProperty { /** * The field ID for the data bars options. * @@ -23456,7 +24071,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataColorProperty, - ) : CdkObject(cdkObject), DataColorProperty { + ) : CdkObject(cdkObject), + DataColorProperty { /** * The color that is applied to the data value. * @@ -23652,7 +24268,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataFieldSeriesItemProperty, - ) : CdkObject(cdkObject), DataFieldSeriesItemProperty { + ) : CdkObject(cdkObject), + DataFieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -24015,7 +24632,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataLabelOptionsProperty, - ) : CdkObject(cdkObject), DataLabelOptionsProperty { + ) : CdkObject(cdkObject), + DataLabelOptionsProperty { /** * Determines the visibility of the category field labels. * @@ -24411,7 +25029,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataLabelTypeProperty, - ) : CdkObject(cdkObject), DataLabelTypeProperty { + ) : CdkObject(cdkObject), + DataLabelTypeProperty { /** * The option that specifies individual data values for labels. * @@ -24596,7 +25215,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathColorProperty, - ) : CdkObject(cdkObject), DataPathColorProperty { + ) : CdkObject(cdkObject), + DataPathColorProperty { /** * The color that needs to be applied to the element. * @@ -24732,7 +25352,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathLabelTypeProperty, - ) : CdkObject(cdkObject), DataPathLabelTypeProperty { + ) : CdkObject(cdkObject), + DataPathLabelTypeProperty { /** * The field ID of the field that the data label needs to be applied to. * @@ -24875,7 +25496,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathSortProperty, - ) : CdkObject(cdkObject), DataPathSortProperty { + ) : CdkObject(cdkObject), + DataPathSortProperty { /** * Determines the sort direction. * @@ -24990,7 +25612,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathTypeProperty, - ) : CdkObject(cdkObject), DataPathTypeProperty { + ) : CdkObject(cdkObject), + DataPathTypeProperty { /** * The type of data path value utilized in a pivot table. Choose one of the following * options:. @@ -25150,7 +25773,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathValueProperty, - ) : CdkObject(cdkObject), DataPathValueProperty { + ) : CdkObject(cdkObject), + DataPathValueProperty { /** * The type configuration of the field. * @@ -25247,7 +25871,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPointDrillUpDownOptionProperty, - ) : CdkObject(cdkObject), DataPointDrillUpDownOptionProperty { + ) : CdkObject(cdkObject), + DataPointDrillUpDownOptionProperty { /** * The status of the drill down options of data points. * @@ -25331,7 +25956,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPointMenuLabelOptionProperty, - ) : CdkObject(cdkObject), DataPointMenuLabelOptionProperty { + ) : CdkObject(cdkObject), + DataPointMenuLabelOptionProperty { /** * The status of the data point menu options. * @@ -25414,7 +26040,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataPointTooltipOptionProperty, - ) : CdkObject(cdkObject), DataPointTooltipOptionProperty { + ) : CdkObject(cdkObject), + DataPointTooltipOptionProperty { /** * The status of the data point tool tip options. * @@ -25517,7 +26144,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataSetIdentifierDeclarationProperty, - ) : CdkObject(cdkObject), DataSetIdentifierDeclarationProperty { + ) : CdkObject(cdkObject), + DataSetIdentifierDeclarationProperty { /** * The Amazon Resource Name (ARN) of the data set. * @@ -25626,7 +26254,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DataSetReferenceProperty, - ) : CdkObject(cdkObject), DataSetReferenceProperty { + ) : CdkObject(cdkObject), + DataSetReferenceProperty { /** * Dataset Amazon Resource Name (ARN). * @@ -25714,7 +26343,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateAxisOptionsProperty, - ) : CdkObject(cdkObject), DateAxisOptionsProperty { + ) : CdkObject(cdkObject), + DateAxisOptionsProperty { /** * Determines whether or not missing dates are displayed. * @@ -26036,7 +26666,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateDimensionFieldProperty, - ) : CdkObject(cdkObject), DateDimensionFieldProperty { + ) : CdkObject(cdkObject), + DateDimensionFieldProperty { /** * The column that is used in the `DateDimensionField` . * @@ -26345,7 +26976,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateMeasureFieldProperty, - ) : CdkObject(cdkObject), DateMeasureFieldProperty { + ) : CdkObject(cdkObject), + DateMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -26588,7 +27220,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeDefaultValuesProperty, - ) : CdkObject(cdkObject), DateTimeDefaultValuesProperty { + ) : CdkObject(cdkObject), + DateTimeDefaultValuesProperty { /** * The dynamic value of the `DataTimeDefaultValues` . * @@ -26871,7 +27504,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeFormatConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeFormatConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeFormatConfigurationProperty { /** * Determines the `DateTime` format. * @@ -27043,7 +27677,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeHierarchyProperty, - ) : CdkObject(cdkObject), DateTimeHierarchyProperty { + ) : CdkObject(cdkObject), + DateTimeHierarchyProperty { /** * The option that determines the drill down filters for the `DateTime` hierarchy. * @@ -27342,7 +27977,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeParameterDeclarationProperty, - ) : CdkObject(cdkObject), DateTimeParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DateTimeParameterDeclarationProperty { /** * The default values of a parameter. * @@ -27485,7 +28121,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeParameterProperty, - ) : CdkObject(cdkObject), DateTimeParameterProperty { + ) : CdkObject(cdkObject), + DateTimeParameterProperty { /** * A display name for the date-time parameter. * @@ -27691,7 +28328,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimePickerControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DateTimePickerControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DateTimePickerControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -27819,7 +28457,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DateTimeValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -28005,7 +28644,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DecimalDefaultValuesProperty, - ) : CdkObject(cdkObject), DecimalDefaultValuesProperty { + ) : CdkObject(cdkObject), + DecimalDefaultValuesProperty { /** * The dynamic value of the `DecimalDefaultValues` . * @@ -28301,7 +28941,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DecimalParameterDeclarationProperty, - ) : CdkObject(cdkObject), DecimalParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DecimalParameterDeclarationProperty { /** * The default values of a parameter. * @@ -28455,7 +29096,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DecimalParameterProperty, - ) : CdkObject(cdkObject), DecimalParameterProperty { + ) : CdkObject(cdkObject), + DecimalParameterProperty { /** * A display name for the decimal parameter. * @@ -28545,7 +29187,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DecimalPlacesConfigurationProperty, - ) : CdkObject(cdkObject), DecimalPlacesConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalPlacesConfigurationProperty { /** * The values of the decimal places. * @@ -28659,7 +29302,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DecimalValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DecimalValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -28833,7 +29477,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultDateTimePickerControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultDateTimePickerControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultDateTimePickerControlOptionsProperty { /** * The display options of a control. * @@ -29175,7 +29820,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultFilterControlConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFilterControlConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlConfigurationProperty { /** * The control option for the `DefaultFilterControlConfiguration` . * @@ -29835,7 +30481,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultFilterControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlOptionsProperty { /** * The default options that correspond to the filter control type of a `DateTimePicker` . * @@ -30093,7 +30740,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultFilterDropDownControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterDropDownControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterDropDownControlOptionsProperty { /** * The display options of a control. * @@ -30329,7 +30977,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultFilterListControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterListControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterListControlOptionsProperty { /** * The display options of a control. * @@ -30463,7 +31112,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultFreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFreeFormLayoutConfigurationProperty { /** * Determines the screen canvas size options for a free-form layout. * @@ -30582,7 +31232,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultGridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultGridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultGridLayoutConfigurationProperty { /** * Determines the screen canvas size options for a grid layout. * @@ -30767,7 +31418,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultInteractiveLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultInteractiveLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultInteractiveLayoutConfigurationProperty { /** * The options that determine the default settings of a free-form layout configuration. * @@ -31007,7 +31659,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultNewSheetConfigurationProperty, - ) : CdkObject(cdkObject), DefaultNewSheetConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultNewSheetConfigurationProperty { /** * The options that determine the default settings for interactive layout configuration. * @@ -31155,7 +31808,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultPaginatedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultPaginatedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultPaginatedLayoutConfigurationProperty { /** * The options that determine the default settings for a section-based layout configuration. * @@ -31289,7 +31943,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultRelativeDateTimeControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultRelativeDateTimeControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultRelativeDateTimeControlOptionsProperty { /** * The display options of a control. * @@ -31420,7 +32075,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultSectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultSectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultSectionBasedLayoutConfigurationProperty { /** * Determines the screen canvas size options for a section-based layout. * @@ -31649,7 +32305,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultSliderControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultSliderControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultSliderControlOptionsProperty { /** * The display options of a control. * @@ -31842,7 +32499,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultTextAreaControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextAreaControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextAreaControlOptionsProperty { /** * The delimiter that is used to separate the lines in text. * @@ -31985,7 +32643,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DefaultTextFieldControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextFieldControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextFieldControlOptionsProperty { /** * The display options of a control. * @@ -32228,7 +32887,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DestinationParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), DestinationParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + DestinationParameterValueConfigurationProperty { /** * The configuration of custom values for destination parameter in * `DestinationParameterValueConfiguration` . @@ -32701,7 +33361,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DimensionFieldProperty, - ) : CdkObject(cdkObject), DimensionFieldProperty { + ) : CdkObject(cdkObject), + DimensionFieldProperty { /** * The dimension type field with categorical type columns. * @@ -32803,7 +33464,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DonutCenterOptionsProperty, - ) : CdkObject(cdkObject), DonutCenterOptionsProperty { + ) : CdkObject(cdkObject), + DonutCenterOptionsProperty { /** * Determines the visibility of the label in a donut chart. * @@ -33015,7 +33677,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DonutOptionsProperty, - ) : CdkObject(cdkObject), DonutOptionsProperty { + ) : CdkObject(cdkObject), + DonutOptionsProperty { /** * The option for define the arc of the chart shape. Valid values are as follows:. * @@ -33286,7 +33949,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DrillDownFilterProperty, - ) : CdkObject(cdkObject), DrillDownFilterProperty { + ) : CdkObject(cdkObject), + DrillDownFilterProperty { /** * The category type drill down filter. * @@ -33542,7 +34206,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DropDownControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DropDownControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DropDownControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -33777,7 +34442,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.DynamicDefaultValueProperty, - ) : CdkObject(cdkObject), DynamicDefaultValueProperty { + ) : CdkObject(cdkObject), + DynamicDefaultValueProperty { /** * The column that contains the default value of each user or group. * @@ -34007,7 +34673,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.EmptyVisualProperty, - ) : CdkObject(cdkObject), EmptyVisualProperty { + ) : CdkObject(cdkObject), + EmptyVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -34109,7 +34776,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.EntityProperty, - ) : CdkObject(cdkObject), EntityProperty { + ) : CdkObject(cdkObject), + EntityProperty { /** * The hierarchical path of the entity within the analysis, template, or dashboard definition * tree. @@ -34241,7 +34909,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ExcludePeriodConfigurationProperty, - ) : CdkObject(cdkObject), ExcludePeriodConfigurationProperty { + ) : CdkObject(cdkObject), + ExcludePeriodConfigurationProperty { /** * The amount or number of the exclude period. * @@ -34463,7 +35132,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ExplicitHierarchyProperty, - ) : CdkObject(cdkObject), ExplicitHierarchyProperty { + ) : CdkObject(cdkObject), + ExplicitHierarchyProperty { /** * The list of columns that define the explicit hierarchy. * @@ -34560,7 +35230,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ExportHiddenFieldsOptionProperty, - ) : CdkObject(cdkObject), ExportHiddenFieldsOptionProperty { + ) : CdkObject(cdkObject), + ExportHiddenFieldsOptionProperty { /** * The status of the export hidden fields options of a dashbaord. * @@ -34642,7 +35313,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ExportToCSVOptionProperty, - ) : CdkObject(cdkObject), ExportToCSVOptionProperty { + ) : CdkObject(cdkObject), + ExportToCSVOptionProperty { /** * Availability status. * @@ -34725,7 +35397,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ExportWithHiddenFieldsOptionProperty, - ) : CdkObject(cdkObject), ExportWithHiddenFieldsOptionProperty { + ) : CdkObject(cdkObject), + ExportWithHiddenFieldsOptionProperty { /** * The status of the export with hidden fields options. * @@ -34786,12 +35459,14 @@ public open class CfnDashboard( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -34910,7 +35585,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldBasedTooltipProperty, - ) : CdkObject(cdkObject), FieldBasedTooltipProperty { + ) : CdkObject(cdkObject), + FieldBasedTooltipProperty { /** * The visibility of `Show aggregations` . * @@ -35028,7 +35704,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldLabelTypeProperty, - ) : CdkObject(cdkObject), FieldLabelTypeProperty { + ) : CdkObject(cdkObject), + FieldLabelTypeProperty { /** * Indicates the field that is targeted by the field label. * @@ -35203,7 +35880,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldSeriesItemProperty, - ) : CdkObject(cdkObject), FieldSeriesItemProperty { + ) : CdkObject(cdkObject), + FieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -35396,7 +36074,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldSortOptionsProperty, - ) : CdkObject(cdkObject), FieldSortOptionsProperty { + ) : CdkObject(cdkObject), + FieldSortOptionsProperty { /** * The sort configuration for a column that is not used in a field well. * @@ -35510,7 +36189,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldSortProperty, - ) : CdkObject(cdkObject), FieldSortProperty { + ) : CdkObject(cdkObject), + FieldSortProperty { /** * The sort direction. Choose one of the following options:. * @@ -35560,6 +36240,7 @@ public open class CfnDashboard( * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -35581,6 +36262,13 @@ public open class CfnDashboard( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-fieldtooltipitem.html#cfn-quicksight-dashboard-fieldtooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -35603,6 +36291,12 @@ public open class CfnDashboard( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -35628,6 +36322,14 @@ public open class CfnDashboard( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -35642,7 +36344,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FieldTooltipItemProperty, - ) : CdkObject(cdkObject), FieldTooltipItemProperty { + ) : CdkObject(cdkObject), + FieldTooltipItemProperty { /** * The unique ID of the field that is targeted by the tooltip. * @@ -35657,6 +36360,13 @@ public open class CfnDashboard( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-fieldtooltipitem.html#cfn-quicksight-dashboard-fieldtooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -36301,7 +37011,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapAggregatedFieldWellsProperty { /** * The aggregated location field well of the filled map. * @@ -36446,7 +37157,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingOptionProperty { /** * The conditional formatting that determines the shape of the filled map. * @@ -36584,7 +37296,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingProperty { /** * Conditional formatting options of a `FilledMapVisual` . * @@ -36923,7 +37636,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapConfigurationProperty { /** * The field wells of the visual. * @@ -37561,7 +38275,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapFieldWellsProperty { /** * The aggregated field well of the filled map. * @@ -37718,7 +38433,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapShapeConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapShapeConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapShapeConditionalFormattingProperty { /** * The field ID of the filled map shape. * @@ -37859,7 +38575,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapSortConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapSortConfigurationProperty { /** * The sort configuration of the location fields. * @@ -38226,7 +38943,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilledMapVisualProperty, - ) : CdkObject(cdkObject), FilledMapVisualProperty { + ) : CdkObject(cdkObject), + FilledMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -38995,7 +39713,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterControlProperty, - ) : CdkObject(cdkObject), FilterControlProperty { + ) : CdkObject(cdkObject), + FilterControlProperty { /** * A control from a filter that is scoped across more than one sheet. * @@ -39224,7 +39943,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterCrossSheetControlProperty, - ) : CdkObject(cdkObject), FilterCrossSheetControlProperty { + ) : CdkObject(cdkObject), + FilterCrossSheetControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -39461,7 +40181,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), FilterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + FilterDateTimePickerControlProperty { /** * The display options of a control. * @@ -39835,7 +40556,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterDropDownControlProperty, - ) : CdkObject(cdkObject), FilterDropDownControlProperty { + ) : CdkObject(cdkObject), + FilterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -40121,7 +40843,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterGroupProperty, - ) : CdkObject(cdkObject), FilterGroupProperty { + ) : CdkObject(cdkObject), + FilterGroupProperty { /** * The filter new feature which can apply filter group to all data sets. Choose one of the * following options:. @@ -40332,7 +41055,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterListConfigurationProperty, - ) : CdkObject(cdkObject), FilterListConfigurationProperty { + ) : CdkObject(cdkObject), + FilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -40705,7 +41429,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterListControlProperty, - ) : CdkObject(cdkObject), FilterListControlProperty { + ) : CdkObject(cdkObject), + FilterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -40933,7 +41658,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterOperationSelectedFieldsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationSelectedFieldsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationSelectedFieldsConfigurationProperty { /** * The selected columns of a dataset. * @@ -41083,7 +41809,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterOperationTargetVisualsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationTargetVisualsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationTargetVisualsConfigurationProperty { /** * The configuration of the same-sheet target visuals that you want to be filtered. * @@ -41137,6 +41864,14 @@ public open class CfnDashboard( */ public fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filter.html#cfn-quicksight-dashboard-filter-nestedfilter) + */ + public fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -41214,6 +41949,26 @@ public open class CfnDashboard( @JvmName("d3496da969d25f5999021bc55e92e05efebf8b4f854737316ca3fee307fcbede") public fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: IResolvable) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: NestedFilterProperty) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d9fd78121add7b118ad5f54b3bf8ced2d0363a15745973931ead7d7162b6402") + public fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -41375,6 +42130,31 @@ public open class CfnDashboard( override fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit): Unit = categoryFilter(CategoryFilterProperty(categoryFilter)) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: IResolvable) { + cdkBuilder.nestedFilter(nestedFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: NestedFilterProperty) { + cdkBuilder.nestedFilter(nestedFilter.let(NestedFilterProperty.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5d9fd78121add7b118ad5f54b3bf8ced2d0363a15745973931ead7d7162b6402") + override fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit): Unit = + nestedFilter(NestedFilterProperty(nestedFilter)) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -41535,7 +42315,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * A `CategoryFilter` filters text values. * @@ -41547,6 +42328,14 @@ public open class CfnDashboard( */ override fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-filter.html#cfn-quicksight-dashboard-filter-nestedfilter) + */ + override fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -41779,7 +42568,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterRelativeDateTimeControlProperty, - ) : CdkObject(cdkObject), FilterRelativeDateTimeControlProperty { + ) : CdkObject(cdkObject), + FilterRelativeDateTimeControlProperty { /** * The display options of a control. * @@ -41954,7 +42744,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), FilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + FilterScopeConfigurationProperty { /** * The configuration that applies a filter to all sheets. * @@ -42058,7 +42849,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterSelectableValuesProperty, - ) : CdkObject(cdkObject), FilterSelectableValuesProperty { + ) : CdkObject(cdkObject), + FilterSelectableValuesProperty { /** * The values that are used in the `FilterSelectableValues` . * @@ -42345,7 +43137,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterSliderControlProperty, - ) : CdkObject(cdkObject), FilterSliderControlProperty { + ) : CdkObject(cdkObject), + FilterSliderControlProperty { /** * The display options of a control. * @@ -42619,7 +43412,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterTextAreaControlProperty, - ) : CdkObject(cdkObject), FilterTextAreaControlProperty { + ) : CdkObject(cdkObject), + FilterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -42843,7 +43637,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FilterTextFieldControlProperty, - ) : CdkObject(cdkObject), FilterTextFieldControlProperty { + ) : CdkObject(cdkObject), + FilterTextFieldControlProperty { /** * The display options of a control. * @@ -43086,7 +43881,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FontConfigurationProperty, - ) : CdkObject(cdkObject), FontConfigurationProperty { + ) : CdkObject(cdkObject), + FontConfigurationProperty { /** * Determines the color of the text. * @@ -43196,7 +43992,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FontSizeProperty, - ) : CdkObject(cdkObject), FontSizeProperty { + ) : CdkObject(cdkObject), + FontSizeProperty { /** * The lexical name for the text size, proportional to its surrounding context. * @@ -43276,7 +44073,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FontWeightProperty, - ) : CdkObject(cdkObject), FontWeightProperty { + ) : CdkObject(cdkObject), + FontWeightProperty { /** * The lexical name for the level of boldness of the text display. * @@ -43605,7 +44403,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ForecastComputationProperty, - ) : CdkObject(cdkObject), ForecastComputationProperty { + ) : CdkObject(cdkObject), + ForecastComputationProperty { /** * The ID for a computation. * @@ -43854,7 +44653,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ForecastConfigurationProperty, - ) : CdkObject(cdkObject), ForecastConfigurationProperty { + ) : CdkObject(cdkObject), + ForecastConfigurationProperty { /** * The forecast properties setup of a forecast in the line chart. * @@ -44027,7 +44827,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ForecastScenarioProperty, - ) : CdkObject(cdkObject), ForecastScenarioProperty { + ) : CdkObject(cdkObject), + ForecastScenarioProperty { /** * The what-if analysis forecast setup with the target date. * @@ -44457,7 +45258,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FormatConfigurationProperty, - ) : CdkObject(cdkObject), FormatConfigurationProperty { + ) : CdkObject(cdkObject), + FormatConfigurationProperty { /** * Formatting configuration for `DateTime` fields. * @@ -44595,7 +45397,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a free-form layout. * @@ -44783,7 +45586,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-freeformlayoutconfiguration.html#cfn-quicksight-dashboard-freeformlayoutconfiguration-canvassizeoptions) */ @@ -44892,7 +45696,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutElementBackgroundStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBackgroundStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBackgroundStyleProperty { /** * The background color of a free-form layout element. * @@ -45003,7 +45808,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutElementBorderStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBorderStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBorderStyleProperty { /** * The border color of a free-form layout element. * @@ -45484,7 +46290,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutElementProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementProperty { /** * The background style configuration of a free-form layout element. * @@ -45649,7 +46456,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -45785,7 +46593,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FreeFormSectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormSectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormSectionLayoutConfigurationProperty { /** * The elements that are included in the free-form layout. * @@ -46431,7 +47240,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartAggregatedFieldWellsProperty { /** * The category field wells of a funnel chart. * @@ -46842,7 +47652,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartConfigurationProperty { /** * The label options of the categories that are displayed in a `FunnelChartVisual` . * @@ -47138,7 +47949,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartDataLabelOptionsProperty, - ) : CdkObject(cdkObject), FunnelChartDataLabelOptionsProperty { + ) : CdkObject(cdkObject), + FunnelChartDataLabelOptionsProperty { /** * The visibility of the category labels within the data labels. * @@ -47793,7 +48605,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartFieldWellsProperty { /** * The field well configuration of a `FunnelChartVisual` . * @@ -47979,7 +48792,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartSortConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartSortConfigurationProperty { /** * The limit on the number of categories displayed. * @@ -48303,7 +49117,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.FunnelChartVisualProperty, - ) : CdkObject(cdkObject), FunnelChartVisualProperty { + ) : CdkObject(cdkObject), + FunnelChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -48470,7 +49285,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartArcConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartArcConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartArcConditionalFormattingProperty { /** * The conditional formatting of the arc foreground color. * @@ -48693,7 +49509,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingOptionProperty { /** * The options that determine the presentation of the arc of a `GaugeChartVisual` . * @@ -48873,7 +49690,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingProperty { /** * Conditional formatting options of a `GaugeChartVisual` . * @@ -49169,7 +49987,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartConfigurationProperty, - ) : CdkObject(cdkObject), GaugeChartConfigurationProperty { + ) : CdkObject(cdkObject), + GaugeChartConfigurationProperty { /** * The data label configuration of a `GaugeChartVisual` . * @@ -49337,7 +50156,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartFieldWellsProperty, - ) : CdkObject(cdkObject), GaugeChartFieldWellsProperty { + ) : CdkObject(cdkObject), + GaugeChartFieldWellsProperty { /** * The target value field wells of a `GaugeChartVisual` . * @@ -49690,7 +50510,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartOptionsProperty, - ) : CdkObject(cdkObject), GaugeChartOptionsProperty { + ) : CdkObject(cdkObject), + GaugeChartOptionsProperty { /** * The arc configuration of a `GaugeChartVisual` . * @@ -49912,7 +50733,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value icon. * @@ -50238,7 +51060,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GaugeChartVisualProperty, - ) : CdkObject(cdkObject), GaugeChartVisualProperty { + ) : CdkObject(cdkObject), + GaugeChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -50419,7 +51242,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialCoordinateBoundsProperty, - ) : CdkObject(cdkObject), GeospatialCoordinateBoundsProperty { + ) : CdkObject(cdkObject), + GeospatialCoordinateBoundsProperty { /** * The longitude of the east bound of the geospatial coordinate bounds. * @@ -50548,7 +51372,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialHeatmapColorScaleProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapColorScaleProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapColorScaleProperty { /** * The list of colors to be used in heatmap point style. * @@ -50664,7 +51489,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialHeatmapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapConfigurationProperty { /** * The color scale specification for the heatmap point style. * @@ -50748,7 +51574,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialHeatmapDataColorProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapDataColorProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapDataColorProperty { /** * The hex color to be used in the heatmap point style. * @@ -50945,7 +51772,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapAggregatedFieldWellsProperty { /** * The color field wells of a geospatial map. * @@ -51345,7 +52173,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialMapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialMapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialMapConfigurationProperty { /** * The field wells of the visual. * @@ -51499,7 +52328,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialMapFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapFieldWellsProperty { /** * The aggregated field well for a geospatial map. * @@ -51583,7 +52413,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialMapStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialMapStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialMapStyleOptionsProperty { /** * The base map style of the geospatial map. * @@ -51900,7 +52731,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialMapVisualProperty, - ) : CdkObject(cdkObject), GeospatialMapVisualProperty { + ) : CdkObject(cdkObject), + GeospatialMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -52141,7 +52973,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialPointStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialPointStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialPointStyleOptionsProperty { /** * The cluster marker configuration of the geospatial point style. * @@ -52297,7 +53130,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GeospatialWindowOptionsProperty, - ) : CdkObject(cdkObject), GeospatialWindowOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialWindowOptionsProperty { /** * The bounds options (north, south, west, east) of the geospatial window options. * @@ -52498,7 +53332,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GlobalTableBorderOptionsProperty, - ) : CdkObject(cdkObject), GlobalTableBorderOptionsProperty { + ) : CdkObject(cdkObject), + GlobalTableBorderOptionsProperty { /** * Determines the options for side specific border. * @@ -52613,7 +53448,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GradientColorProperty, - ) : CdkObject(cdkObject), GradientColorProperty { + ) : CdkObject(cdkObject), + GradientColorProperty { /** * The list of gradient color stops. * @@ -52737,7 +53573,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GradientStopProperty, - ) : CdkObject(cdkObject), GradientStopProperty { + ) : CdkObject(cdkObject), + GradientStopProperty { /** * Determines the color. * @@ -52878,7 +53715,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GridLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a grid layout. * @@ -53049,7 +53887,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), GridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + GridLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-gridlayoutconfiguration.html#cfn-quicksight-dashboard-gridlayoutconfiguration-canvassizeoptions) */ @@ -53237,7 +54076,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GridLayoutElementProperty, - ) : CdkObject(cdkObject), GridLayoutElementProperty { + ) : CdkObject(cdkObject), + GridLayoutElementProperty { /** * The column index for the upper left corner of an element. * @@ -53393,7 +54233,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GridLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -54108,7 +54949,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.GrowthRateComputationProperty, - ) : CdkObject(cdkObject), GrowthRateComputationProperty { + ) : CdkObject(cdkObject), + GrowthRateComputationProperty { /** * The ID for a computation. * @@ -54358,7 +55200,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeaderFooterSectionConfigurationProperty, - ) : CdkObject(cdkObject), HeaderFooterSectionConfigurationProperty { + ) : CdkObject(cdkObject), + HeaderFooterSectionConfigurationProperty { /** * The layout configuration of the header or footer section. * @@ -54553,7 +55396,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeatMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapAggregatedFieldWellsProperty { /** * The columns field well of a heat map. * @@ -54998,7 +55842,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeatMapConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapConfigurationProperty { /** * The color options (gradient color, point of divergence) in a heat map. * @@ -55158,7 +56003,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeatMapFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapFieldWellsProperty { /** * The aggregated field wells of a heat map. * @@ -55495,7 +56341,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeatMapSortConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapSortConfigurationProperty { /** * The limit on the number of columns that are displayed in a heat map. * @@ -55833,7 +56680,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HeatMapVisualProperty, - ) : CdkObject(cdkObject), HeatMapVisualProperty { + ) : CdkObject(cdkObject), + HeatMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -56229,7 +57077,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HistogramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramAggregatedFieldWellsProperty { /** * The value field wells of a histogram. * @@ -56433,7 +57282,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HistogramBinOptionsProperty, - ) : CdkObject(cdkObject), HistogramBinOptionsProperty { + ) : CdkObject(cdkObject), + HistogramBinOptionsProperty { /** * The options that determine the bin count of a histogram. * @@ -56885,7 +57735,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HistogramConfigurationProperty, - ) : CdkObject(cdkObject), HistogramConfigurationProperty { + ) : CdkObject(cdkObject), + HistogramConfigurationProperty { /** * The options that determine the presentation of histogram bins. * @@ -57296,7 +58147,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HistogramFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramFieldWellsProperty { /** * The field well configuration of a histogram. * @@ -57564,7 +58416,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.HistogramVisualProperty, - ) : CdkObject(cdkObject), HistogramVisualProperty { + ) : CdkObject(cdkObject), + HistogramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -57622,6 +58475,351 @@ public open class CfnDashboard( } } + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * InnerFilterProperty innerFilterProperty = InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-innerfilter.html) + */ + public interface InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-innerfilter.html#cfn-quicksight-dashboard-innerfilter-categoryinnerfilter) + */ + public fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + + /** + * A builder for [InnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: IResolvable) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e0283ecaf23fe7710901c1dc37a41ef4b50d696a37870c210fdc59fe71d65a99") + public + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty.builder() + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: IResolvable) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(CategoryInnerFilterProperty.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e0283ecaf23fe7710901c1dc37a41ef4b50d696a37870c210fdc59fe71d65a99") + override + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit): + Unit = categoryInnerFilter(CategoryInnerFilterProperty(categoryInnerFilter)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty, + ) : CdkObject(cdkObject), + InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-innerfilter.html#cfn-quicksight-dashboard-innerfilter-categoryinnerfilter) + */ + override fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty): + InnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? InnerFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDashboard.InnerFilterProperty + } + } + /** * The configuration of an insight visual. * @@ -57741,7 +58939,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.InsightConfigurationProperty, - ) : CdkObject(cdkObject), InsightConfigurationProperty { + ) : CdkObject(cdkObject), + InsightConfigurationProperty { /** * The computations configurations of the insight visual. * @@ -58034,7 +59233,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.InsightVisualProperty, - ) : CdkObject(cdkObject), InsightVisualProperty { + ) : CdkObject(cdkObject), + InsightVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -58247,7 +59447,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.IntegerDefaultValuesProperty, - ) : CdkObject(cdkObject), IntegerDefaultValuesProperty { + ) : CdkObject(cdkObject), + IntegerDefaultValuesProperty { /** * The dynamic value of the `IntegerDefaultValues` . * @@ -58536,7 +59737,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.IntegerParameterDeclarationProperty, - ) : CdkObject(cdkObject), IntegerParameterDeclarationProperty { + ) : CdkObject(cdkObject), + IntegerParameterDeclarationProperty { /** * The default values of a parameter. * @@ -58689,7 +59891,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.IntegerParameterProperty, - ) : CdkObject(cdkObject), IntegerParameterProperty { + ) : CdkObject(cdkObject), + IntegerParameterProperty { /** * The name of the integer parameter. * @@ -58811,7 +60014,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.IntegerValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), IntegerValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + IntegerValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -58938,7 +60142,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ItemsLimitConfigurationProperty, - ) : CdkObject(cdkObject), ItemsLimitConfigurationProperty { + ) : CdkObject(cdkObject), + ItemsLimitConfigurationProperty { /** * The limit on how many items of a field are showed in the chart. * @@ -59142,7 +60347,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIActualValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIActualValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIActualValueConditionalFormattingProperty { /** * The conditional formatting of the actual value's icon. * @@ -59342,7 +60548,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIComparisonValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIComparisonValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIComparisonValueConditionalFormattingProperty { /** * The conditional formatting of the comparison value's icon. * @@ -59743,7 +60950,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingOptionProperty { /** * The conditional formatting for the actual value of a KPI visual. * @@ -60009,7 +61217,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingProperty { /** * The conditional formatting options of a KPI visual. * @@ -60206,7 +61415,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIConfigurationProperty, - ) : CdkObject(cdkObject), KPIConfigurationProperty { + ) : CdkObject(cdkObject), + KPIConfigurationProperty { /** * The field well configuration of a KPI visual. * @@ -60400,7 +61610,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIFieldWellsProperty, - ) : CdkObject(cdkObject), KPIFieldWellsProperty { + ) : CdkObject(cdkObject), + KPIFieldWellsProperty { /** * The target value field wells of a KPI visual. * @@ -61002,7 +62213,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIOptionsProperty, - ) : CdkObject(cdkObject), KPIOptionsProperty { + ) : CdkObject(cdkObject), + KPIOptionsProperty { /** * The comparison configuration of a KPI visual. * @@ -61253,7 +62465,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value's icon. * @@ -61390,7 +62603,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIProgressBarConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIProgressBarConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIProgressBarConditionalFormattingProperty { /** * The conditional formatting of the progress bar's foreground color. * @@ -61524,7 +62738,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPISortConfigurationProperty, - ) : CdkObject(cdkObject), KPISortConfigurationProperty { + ) : CdkObject(cdkObject), + KPISortConfigurationProperty { /** * The sort configuration of the trend group fields. * @@ -61668,7 +62883,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPISparklineOptionsProperty, - ) : CdkObject(cdkObject), KPISparklineOptionsProperty { + ) : CdkObject(cdkObject), + KPISparklineOptionsProperty { /** * The color of the sparkline. * @@ -61802,7 +63018,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIVisualLayoutOptionsProperty, - ) : CdkObject(cdkObject), KPIVisualLayoutOptionsProperty { + ) : CdkObject(cdkObject), + KPIVisualLayoutOptionsProperty { /** * The standard layout of the KPI visual. * @@ -62163,7 +63380,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIVisualProperty, - ) : CdkObject(cdkObject), KPIVisualProperty { + ) : CdkObject(cdkObject), + KPIVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -62291,7 +63509,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.KPIVisualStandardLayoutProperty, - ) : CdkObject(cdkObject), KPIVisualStandardLayoutProperty { + ) : CdkObject(cdkObject), + KPIVisualStandardLayoutProperty { /** * The standard layout type. * @@ -62450,7 +63669,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LabelOptionsProperty, - ) : CdkObject(cdkObject), LabelOptionsProperty { + ) : CdkObject(cdkObject), + LabelOptionsProperty { /** * The text for the label. * @@ -62937,7 +64157,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LayoutConfigurationProperty, - ) : CdkObject(cdkObject), LayoutConfigurationProperty { + ) : CdkObject(cdkObject), + LayoutConfigurationProperty { /** * A free-form is optimized for a fixed width and has more control over the exact placement of * layout elements. @@ -63302,7 +64523,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LayoutProperty, - ) : CdkObject(cdkObject), LayoutProperty { + ) : CdkObject(cdkObject), + LayoutProperty { /** * The configuration that determines what the type of layout for a sheet. * @@ -63525,7 +64747,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LegendOptionsProperty, - ) : CdkObject(cdkObject), LegendOptionsProperty { + ) : CdkObject(cdkObject), + LegendOptionsProperty { /** * The height of the legend. * @@ -63808,7 +65031,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartAggregatedFieldWellsProperty { /** * The category field wells of a line chart. * @@ -63958,6 +65182,11 @@ public open class CfnDashboard( */ public fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-linechartconfiguration.html#cfn-quicksight-dashboard-linechartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -64229,6 +65458,23 @@ public open class CfnDashboard( */ public fun series(vararg series: Any) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e7c51b2ca81d76618f9f22eb86dc1ee208de07f16206f19e2c40f48d2791c629") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -64628,6 +65874,29 @@ public open class CfnDashboard( */ override fun series(vararg series: Any): Unit = series(series.toList()) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e7c51b2ca81d76618f9f22eb86dc1ee208de07f16206f19e2c40f48d2791c629") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -64778,7 +66047,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartConfigurationProperty, - ) : CdkObject(cdkObject), LineChartConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartConfigurationProperty { /** * The default configuration of a line chart's contribution analysis. * @@ -64866,6 +66136,11 @@ public open class CfnDashboard( */ override fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-linechartconfiguration.html#cfn-quicksight-dashboard-linechartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -65098,7 +66373,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartDefaultSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartDefaultSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartDefaultSeriesSettingsProperty { /** * The axis to which you are binding all line series to. * @@ -65222,7 +66498,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartFieldWellsProperty { /** * The field well configuration of a line chart. * @@ -65388,7 +66665,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartLineStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartLineStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartLineStyleSettingsProperty { /** * Interpolation style for line series. * @@ -65579,7 +66857,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartMarkerStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartMarkerStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartMarkerStyleSettingsProperty { /** * Color of marker in the series. * @@ -65778,7 +67057,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartSeriesSettingsProperty { /** * Line styles options for a line series in `LineChartVisual` . * @@ -66173,7 +67453,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartSortConfigurationProperty, - ) : CdkObject(cdkObject), LineChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a line chart. * @@ -66520,7 +67801,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineChartVisualProperty, - ) : CdkObject(cdkObject), LineChartVisualProperty { + ) : CdkObject(cdkObject), + LineChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -66775,7 +68057,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LineSeriesAxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), LineSeriesAxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + LineSeriesAxisDisplayOptionsProperty { /** * The options that determine the presentation of the line series axis. * @@ -66894,7 +68177,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LinkSharingConfigurationProperty, - ) : CdkObject(cdkObject), LinkSharingConfigurationProperty { + ) : CdkObject(cdkObject), + LinkSharingConfigurationProperty { /** * A structure that contains the permissions of a shareable link. * @@ -67174,7 +68458,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ListControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), ListControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + ListControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -67279,7 +68564,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ListControlSearchOptionsProperty, - ) : CdkObject(cdkObject), ListControlSearchOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSearchOptionsProperty { /** * The visibility configuration of the search options in a list control. * @@ -67364,7 +68650,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ListControlSelectAllOptionsProperty, - ) : CdkObject(cdkObject), ListControlSelectAllOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSelectAllOptionsProperty { /** * The visibility configuration of the `Select all` options in a list control. * @@ -67446,7 +68733,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LoadingAnimationProperty, - ) : CdkObject(cdkObject), LoadingAnimationProperty { + ) : CdkObject(cdkObject), + LoadingAnimationProperty { /** * The visibility configuration of `LoadingAnimation` . * @@ -67529,7 +68817,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LocalNavigationConfigurationProperty, - ) : CdkObject(cdkObject), LocalNavigationConfigurationProperty { + ) : CdkObject(cdkObject), + LocalNavigationConfigurationProperty { /** * The sheet that is targeted for navigation in the same analysis. * @@ -67638,7 +68927,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.LongFormatTextProperty, - ) : CdkObject(cdkObject), LongFormatTextProperty { + ) : CdkObject(cdkObject), + LongFormatTextProperty { /** * Plain text format. * @@ -67752,7 +69042,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MappedDataSetParameterProperty, - ) : CdkObject(cdkObject), MappedDataSetParameterProperty { + ) : CdkObject(cdkObject), + MappedDataSetParameterProperty { /** * A unique name that identifies a dataset within the analysis or dashboard. * @@ -67840,7 +69131,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MaximumLabelTypeProperty, - ) : CdkObject(cdkObject), MaximumLabelTypeProperty { + ) : CdkObject(cdkObject), + MaximumLabelTypeProperty { /** * The visibility of the maximum label. * @@ -68547,7 +69839,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MaximumMinimumComputationProperty, - ) : CdkObject(cdkObject), MaximumMinimumComputationProperty { + ) : CdkObject(cdkObject), + MaximumMinimumComputationProperty { /** * The ID for a computation. * @@ -69075,7 +70368,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MeasureFieldProperty, - ) : CdkObject(cdkObject), MeasureFieldProperty { + ) : CdkObject(cdkObject), + MeasureFieldProperty { /** * The calculated measure field only used in pivot tables. * @@ -69329,7 +70623,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MetricComparisonComputationProperty, - ) : CdkObject(cdkObject), MetricComparisonComputationProperty { + ) : CdkObject(cdkObject), + MetricComparisonComputationProperty { /** * The ID for a computation. * @@ -69439,7 +70734,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MinimumLabelTypeProperty, - ) : CdkObject(cdkObject), MinimumLabelTypeProperty { + ) : CdkObject(cdkObject), + MinimumLabelTypeProperty { /** * The visibility of the minimum label. * @@ -69536,7 +70832,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.MissingDataConfigurationProperty, - ) : CdkObject(cdkObject), MissingDataConfigurationProperty { + ) : CdkObject(cdkObject), + MissingDataConfigurationProperty { /** * The treatment option that determines how missing data should be rendered. Choose from the * following options:. @@ -69624,7 +70921,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NegativeValueConfigurationProperty, - ) : CdkObject(cdkObject), NegativeValueConfigurationProperty { + ) : CdkObject(cdkObject), + NegativeValueConfigurationProperty { /** * Determines the display mode of the negative value configuration. * @@ -69652,6 +70950,486 @@ public open class CfnDashboard( } } + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner filter. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * NestedFilterProperty nestedFilterProperty = NestedFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .filterId("filterId") + * .includeInnerSet(false) + * .innerFilter(InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html) + */ + public interface NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-column) + */ + public fun column(): Any + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-filterid) + */ + public fun filterId(): String + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-includeinnerset) + */ + public fun includeInnerSet(): Any + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-innerfilter) + */ + public fun innerFilter(): Any + + /** + * A builder for [NestedFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: IResolvable) + + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ab9f7cd374990ed6e51a10bbe36a411730f915f083d1f8ffa28ef877eb995c2e") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + public fun filterId(filterId: String) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: Boolean) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: InnerFilterProperty) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9b713fde7afa7f7196377a93c19b5f1fec2e3826529ab102ff77ecb65b718e1c") + public fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty.builder() + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ab9f7cd374990ed6e51a10bbe36a411730f915f083d1f8ffa28ef877eb995c2e") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + override fun filterId(filterId: String) { + cdkBuilder.filterId(filterId) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: Boolean) { + cdkBuilder.includeInnerSet(includeInnerSet) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: IResolvable) { + cdkBuilder.includeInnerSet(includeInnerSet.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: IResolvable) { + cdkBuilder.innerFilter(innerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: InnerFilterProperty) { + cdkBuilder.innerFilter(innerFilter.let(InnerFilterProperty.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9b713fde7afa7f7196377a93c19b5f1fec2e3826529ab102ff77ecb65b718e1c") + override fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit): Unit = + innerFilter(InnerFilterProperty(innerFilter)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty, + ) : CdkObject(cdkObject), + NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-filterid) + */ + override fun filterId(): String = unwrap(this).getFilterId() + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-includeinnerset) + */ + override fun includeInnerSet(): Any = unwrap(this).getIncludeInnerSet() + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-nestedfilter.html#cfn-quicksight-dashboard-nestedfilter-innerfilter) + */ + override fun innerFilter(): Any = unwrap(this).getInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NestedFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty): + NestedFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? NestedFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: NestedFilterProperty): + software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDashboard.NestedFilterProperty + } + } + /** * The options that determine the null value format configuration. * @@ -69708,7 +71486,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NullValueFormatConfigurationProperty, - ) : CdkObject(cdkObject), NullValueFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NullValueFormatConfigurationProperty { /** * Determines the null string of null values. * @@ -70076,7 +71855,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumberDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -70296,7 +72076,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumberFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberFormatConfigurationProperty { /** * The options that determine the numeric format configuration. * @@ -70468,7 +72249,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericAxisOptionsProperty, - ) : CdkObject(cdkObject), NumericAxisOptionsProperty { + ) : CdkObject(cdkObject), + NumericAxisOptionsProperty { /** * The range setup of a numeric axis. * @@ -70610,7 +72392,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericEqualityDrillDownFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityDrillDownFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -71203,7 +72986,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericEqualityFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityFilterProperty { /** * The aggregation function of the filter. * @@ -71574,7 +73358,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumericFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumericFormatConfigurationProperty { /** * The options that determine the currency display format configuration. * @@ -72286,7 +74071,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericRangeFilterProperty, - ) : CdkObject(cdkObject), NumericRangeFilterProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterProperty { /** * The aggregation function of the filter. * @@ -72463,7 +74249,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericRangeFilterValueProperty, - ) : CdkObject(cdkObject), NumericRangeFilterValueProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterValueProperty { /** * The parameter that is used in the numeric range. * @@ -72605,7 +74392,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericSeparatorConfigurationProperty, - ) : CdkObject(cdkObject), NumericSeparatorConfigurationProperty { + ) : CdkObject(cdkObject), + NumericSeparatorConfigurationProperty { /** * Determines the decimal separator. * @@ -72787,7 +74575,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericalAggregationFunctionProperty, - ) : CdkObject(cdkObject), NumericalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + NumericalAggregationFunctionProperty { /** * An aggregation based on the percentile of values in a dimension or measure. * @@ -73077,7 +74866,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericalDimensionFieldProperty, - ) : CdkObject(cdkObject), NumericalDimensionFieldProperty { + ) : CdkObject(cdkObject), + NumericalDimensionFieldProperty { /** * The column that is used in the `NumericalDimensionField` . * @@ -73401,7 +75191,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.NumericalMeasureFieldProperty, - ) : CdkObject(cdkObject), NumericalMeasureFieldProperty { + ) : CdkObject(cdkObject), + NumericalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -73525,7 +75316,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PaginationConfigurationProperty, - ) : CdkObject(cdkObject), PaginationConfigurationProperty { + ) : CdkObject(cdkObject), + PaginationConfigurationProperty { /** * Indicates the page number. * @@ -73821,7 +75613,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PanelConfigurationProperty, - ) : CdkObject(cdkObject), PanelConfigurationProperty { + ) : CdkObject(cdkObject), + PanelConfigurationProperty { /** * Sets the background color for each panel. * @@ -74037,7 +75830,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PanelTitleOptionsProperty, - ) : CdkObject(cdkObject), PanelTitleOptionsProperty { + ) : CdkObject(cdkObject), + PanelTitleOptionsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-paneltitleoptions.html#cfn-quicksight-dashboard-paneltitleoptions-fontconfiguration) */ @@ -74628,7 +76422,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterControlProperty, - ) : CdkObject(cdkObject), ParameterControlProperty { + ) : CdkObject(cdkObject), + ParameterControlProperty { /** * A control from a date parameter that specifies date and time. * @@ -74860,7 +76655,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), ParameterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + ParameterDateTimePickerControlProperty { /** * The display options of a control. * @@ -75285,7 +77081,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterDeclarationProperty, - ) : CdkObject(cdkObject), ParameterDeclarationProperty { + ) : CdkObject(cdkObject), + ParameterDeclarationProperty { /** * A parameter declaration for the `DateTime` data type. * @@ -75648,7 +77445,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterDropDownControlProperty, - ) : CdkObject(cdkObject), ParameterDropDownControlProperty { + ) : CdkObject(cdkObject), + ParameterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -76035,7 +77833,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterListControlProperty, - ) : CdkObject(cdkObject), ParameterListControlProperty { + ) : CdkObject(cdkObject), + ParameterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -76224,7 +78023,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterSelectableValuesProperty, - ) : CdkObject(cdkObject), ParameterSelectableValuesProperty { + ) : CdkObject(cdkObject), + ParameterSelectableValuesProperty { /** * The column identifier that fetches values from the data set. * @@ -76493,7 +78293,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterSliderControlProperty, - ) : CdkObject(cdkObject), ParameterSliderControlProperty { + ) : CdkObject(cdkObject), + ParameterSliderControlProperty { /** * The display options of a control. * @@ -76757,7 +78558,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterTextAreaControlProperty, - ) : CdkObject(cdkObject), ParameterTextAreaControlProperty { + ) : CdkObject(cdkObject), + ParameterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -76981,7 +78783,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParameterTextFieldControlProperty, - ) : CdkObject(cdkObject), ParameterTextFieldControlProperty { + ) : CdkObject(cdkObject), + ParameterTextFieldControlProperty { /** * The display options of a control. * @@ -77247,7 +79050,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ParametersProperty, - ) : CdkObject(cdkObject), ParametersProperty { + ) : CdkObject(cdkObject), + ParametersProperty { /** * The parameters that have a data type of date-time. * @@ -77370,7 +79174,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PercentVisibleRangeProperty, - ) : CdkObject(cdkObject), PercentVisibleRangeProperty { + ) : CdkObject(cdkObject), + PercentVisibleRangeProperty { /** * The lower bound of the range. * @@ -77724,7 +79529,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PercentageDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), PercentageDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + PercentageDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -77851,7 +79657,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PercentileAggregationProperty, - ) : CdkObject(cdkObject), PercentileAggregationProperty { + ) : CdkObject(cdkObject), + PercentileAggregationProperty { /** * The percentile value. * @@ -78534,7 +80341,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PeriodOverPeriodComputationProperty, - ) : CdkObject(cdkObject), PeriodOverPeriodComputationProperty { + ) : CdkObject(cdkObject), + PeriodOverPeriodComputationProperty { /** * The ID for a computation. * @@ -79265,7 +81073,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PeriodToDateComputationProperty, - ) : CdkObject(cdkObject), PeriodToDateComputationProperty { + ) : CdkObject(cdkObject), + PeriodToDateComputationProperty { /** * The ID for a computation. * @@ -79486,7 +81295,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PieChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartAggregatedFieldWellsProperty { /** * The category (group/color) field wells of a pie chart. * @@ -80090,7 +81900,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PieChartConfigurationProperty, - ) : CdkObject(cdkObject), PieChartConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartConfigurationProperty { /** * The label options of the group/color that is displayed in a pie chart. * @@ -80274,7 +82085,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PieChartFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartFieldWellsProperty { /** * The field well configuration of a pie chart. * @@ -80598,7 +82410,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PieChartSortConfigurationProperty, - ) : CdkObject(cdkObject), PieChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a pie chart. * @@ -80947,7 +82760,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PieChartVisualProperty, - ) : CdkObject(cdkObject), PieChartVisualProperty { + ) : CdkObject(cdkObject), + PieChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -81152,7 +82966,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotFieldSortOptionsProperty, - ) : CdkObject(cdkObject), PivotFieldSortOptionsProperty { + ) : CdkObject(cdkObject), + PivotFieldSortOptionsProperty { /** * The field ID for the field sort options. * @@ -81363,7 +83178,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableAggregatedFieldWellsProperty { /** * The columns field well for a pivot table. * @@ -81664,7 +83480,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -81862,7 +83679,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a pivot table. * @@ -82043,7 +83861,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -82130,7 +83949,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableConditionalFormattingScopeProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingScopeProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingScopeProperty { /** * The role (field, field total, grand total) of the cell for conditional formatting. * @@ -82471,7 +84291,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableConfigurationProperty { /** * The field options for a pivot table visual. * @@ -82639,7 +84460,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableDataPathOptionProperty, - ) : CdkObject(cdkObject), PivotTableDataPathOptionProperty { + ) : CdkObject(cdkObject), + PivotTableDataPathOptionProperty { /** * The list of data path values for the data path options. * @@ -82795,7 +84617,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldCollapseStateOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateOptionProperty { /** * The state of the field target of a pivot table. Choose one of the following options:. * @@ -82946,7 +84769,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldCollapseStateTargetProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateTargetProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateTargetProperty { /** * The data path of the pivot table's header. * @@ -83080,7 +84904,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionProperty { /** * The custom label of the pivot table field. * @@ -83314,7 +85139,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionsProperty { /** * The collapse state options for the pivot table field options. * @@ -83411,7 +85237,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldSubtotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldSubtotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldSubtotalOptionsProperty { /** * The field ID of the subtotal options. * @@ -83524,7 +85351,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldWellsProperty { /** * The aggregated field well for the pivot table. * @@ -84289,7 +86117,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableOptionsProperty, - ) : CdkObject(cdkObject), PivotTableOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableOptionsProperty { /** * The table cell style of cells. * @@ -84492,7 +86321,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), PivotTablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + PivotTablePaginatedReportOptionsProperty { /** * The visibility of the repeating header rows on each page. * @@ -84607,7 +86437,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableRowsLabelOptionsProperty, - ) : CdkObject(cdkObject), PivotTableRowsLabelOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableRowsLabelOptionsProperty { /** * The custom label string for the rows label. * @@ -84856,7 +86687,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableSortByProperty, - ) : CdkObject(cdkObject), PivotTableSortByProperty { + ) : CdkObject(cdkObject), + PivotTableSortByProperty { /** * The column sort (field id, direction) for the pivot table sort by options. * @@ -85016,7 +86848,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableSortConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableSortConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableSortConfigurationProperty { /** * The field sort options for a pivot table sort configuration. * @@ -85263,7 +87096,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableTotalOptionsProperty { /** * The column subtotal options. * @@ -85602,7 +87436,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTableVisualProperty, - ) : CdkObject(cdkObject), PivotTableVisualProperty { + ) : CdkObject(cdkObject), + PivotTableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -86144,7 +87979,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PivotTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTotalOptionsProperty { /** * The custom label string for the total cells. * @@ -86397,7 +88233,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.PredefinedHierarchyProperty, - ) : CdkObject(cdkObject), PredefinedHierarchyProperty { + ) : CdkObject(cdkObject), + PredefinedHierarchyProperty { /** * The list of columns that define the predefined hierarchy. * @@ -86493,7 +88330,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ProgressBarOptionsProperty, - ) : CdkObject(cdkObject), ProgressBarOptionsProperty { + ) : CdkObject(cdkObject), + ProgressBarOptionsProperty { /** * The visibility of the progress bar. * @@ -86673,7 +88511,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartAggregatedFieldWellsProperty { /** * The aggregated field well categories of a radar chart. * @@ -86771,7 +88610,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartAreaStyleSettingsProperty, - ) : CdkObject(cdkObject), RadarChartAreaStyleSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartAreaStyleSettingsProperty { /** * The visibility settings of a radar chart. * @@ -87372,7 +89212,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartConfigurationProperty { /** * Determines the visibility of the colors of alternatign bands in a radar chart. * @@ -87580,7 +89421,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartFieldWellsProperty { /** * The aggregated field wells of a radar chart visual. * @@ -87695,7 +89537,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), RadarChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartSeriesSettingsProperty { /** * The area style settings of a radar chart. * @@ -88001,7 +89844,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartSortConfigurationProperty { /** * The category items limit for a radar chart. * @@ -88334,7 +90178,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RadarChartVisualProperty, - ) : CdkObject(cdkObject), RadarChartVisualProperty { + ) : CdkObject(cdkObject), + RadarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -88454,7 +90299,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RangeEndsLabelTypeProperty, - ) : CdkObject(cdkObject), RangeEndsLabelTypeProperty { + ) : CdkObject(cdkObject), + RangeEndsLabelTypeProperty { /** * The visibility of the range ends label. * @@ -88537,7 +90383,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineCustomLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineCustomLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineCustomLabelConfigurationProperty { /** * The string text of the custom label. * @@ -88804,7 +90651,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDataConfigurationProperty { /** * The axis binding type of the reference line. Choose one of the following options:. * @@ -89069,7 +90917,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineDynamicDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDynamicDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDynamicDataConfigurationProperty { /** * The calculation that is used in the dynamic data. * @@ -89473,7 +91322,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineLabelConfigurationProperty { /** * The custom label configuration of the label in a reference line. * @@ -89876,7 +91726,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineProperty, - ) : CdkObject(cdkObject), ReferenceLineProperty { + ) : CdkObject(cdkObject), + ReferenceLineProperty { /** * The data configuration of the reference line. * @@ -89985,7 +91836,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineStaticDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStaticDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStaticDataConfigurationProperty { /** * The double input of the static data. * @@ -90101,7 +91953,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineStyleConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStyleConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStyleConfigurationProperty { /** * The hex color of the reference line. * @@ -90318,7 +92171,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ReferenceLineValueLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineValueLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineValueLabelConfigurationProperty { /** * The format configuration of the value label. * @@ -90528,7 +92382,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RelativeDateTimeControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), RelativeDateTimeControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + RelativeDateTimeControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -91207,7 +93062,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RelativeDatesFilterProperty, - ) : CdkObject(cdkObject), RelativeDatesFilterProperty { + ) : CdkObject(cdkObject), + RelativeDatesFilterProperty { /** * The date configuration of the filter. * @@ -91444,7 +93300,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permissions on. * @@ -91568,7 +93425,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RollingDateConfigurationProperty, - ) : CdkObject(cdkObject), RollingDateConfigurationProperty { + ) : CdkObject(cdkObject), + RollingDateConfigurationProperty { /** * The data set that is used in the rolling date configuration. * @@ -91710,7 +93568,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.RowAlternateColorOptionsProperty, - ) : CdkObject(cdkObject), RowAlternateColorOptionsProperty { + ) : CdkObject(cdkObject), + RowAlternateColorOptionsProperty { /** * Determines the list of row alternate colors. * @@ -91857,7 +93716,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SameSheetTargetVisualConfigurationProperty, - ) : CdkObject(cdkObject), SameSheetTargetVisualConfigurationProperty { + ) : CdkObject(cdkObject), + SameSheetTargetVisualConfigurationProperty { /** * The options that choose the target visual in the same sheet. * @@ -92049,7 +93909,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SankeyDiagramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramAggregatedFieldWellsProperty { /** * The destination field wells of a sankey diagram. * @@ -92261,7 +94122,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SankeyDiagramChartConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramChartConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramChartConfigurationProperty { /** * The data label configuration of a sankey diagram. * @@ -92386,7 +94248,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SankeyDiagramFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramFieldWellsProperty { /** * The field well configuration of a sankey diagram. * @@ -92635,7 +94498,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SankeyDiagramSortConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramSortConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramSortConfigurationProperty { /** * The limit on the number of destination nodes that are displayed in a sankey diagram. * @@ -92918,7 +94782,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SankeyDiagramVisualProperty, - ) : CdkObject(cdkObject), SankeyDiagramVisualProperty { + ) : CdkObject(cdkObject), + SankeyDiagramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -93227,7 +95092,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScatterPlotCategoricallyAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotCategoricallyAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotCategoricallyAggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -93767,7 +95633,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScatterPlotConfigurationProperty, - ) : CdkObject(cdkObject), ScatterPlotConfigurationProperty { + ) : CdkObject(cdkObject), + ScatterPlotConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -94023,7 +95890,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScatterPlotFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotFieldWellsProperty { /** * The aggregated field wells of a scatter plot. * @@ -94315,7 +96183,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScatterPlotUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotUnaggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -94664,7 +96533,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScatterPlotVisualProperty, - ) : CdkObject(cdkObject), ScatterPlotVisualProperty { + ) : CdkObject(cdkObject), + ScatterPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -94835,7 +96705,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ScrollBarOptionsProperty, - ) : CdkObject(cdkObject), ScrollBarOptionsProperty { + ) : CdkObject(cdkObject), + ScrollBarOptionsProperty { /** * The visibility of the data zoom scroll bar. * @@ -94925,7 +96796,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SecondaryValueOptionsProperty, - ) : CdkObject(cdkObject), SecondaryValueOptionsProperty { + ) : CdkObject(cdkObject), + SecondaryValueOptionsProperty { /** * Determines the visibility of the secondary value. * @@ -95008,7 +96880,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionAfterPageBreakProperty, - ) : CdkObject(cdkObject), SectionAfterPageBreakProperty { + ) : CdkObject(cdkObject), + SectionAfterPageBreakProperty { /** * The option that enables or disables a page break at the end of a section. * @@ -95132,7 +97005,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionBasedLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutCanvasSizeOptionsProperty { /** * The options for a paper canvas of a section-based layout. * @@ -95534,7 +97408,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutConfigurationProperty { /** * A list of body section configurations. * @@ -95728,7 +97603,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionBasedLayoutPaperCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutPaperCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutPaperCanvasSizeOptionsProperty { /** * Defines the spacing between the canvas content and the top, bottom, left, and right edges. * @@ -95891,7 +97767,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionLayoutConfigurationProperty { /** * The free-form layout configuration of a section. * @@ -96004,7 +97881,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionPageBreakConfigurationProperty, - ) : CdkObject(cdkObject), SectionPageBreakConfigurationProperty { + ) : CdkObject(cdkObject), + SectionPageBreakConfigurationProperty { /** * The configuration of a page break after a section. * @@ -96159,7 +98037,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SectionStyleProperty, - ) : CdkObject(cdkObject), SectionStyleProperty { + ) : CdkObject(cdkObject), + SectionStyleProperty { /** * The height of a section. * @@ -96295,7 +98174,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SelectedSheetsFilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), SelectedSheetsFilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + SelectedSheetsFilterScopeConfigurationProperty { /** * The sheet ID and visual IDs of the sheet and visuals that the filter is applied to. * @@ -96493,7 +98373,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SeriesItemProperty, - ) : CdkObject(cdkObject), SeriesItemProperty { + ) : CdkObject(cdkObject), + SeriesItemProperty { /** * The data field series item configuration of a line chart. * @@ -96649,7 +98530,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SetParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), SetParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + SetParameterValueConfigurationProperty { /** * The destination parameter name of the `SetParameterValueConfiguration` . * @@ -96790,7 +98672,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ShapeConditionalFormatProperty, - ) : CdkObject(cdkObject), ShapeConditionalFormatProperty { + ) : CdkObject(cdkObject), + ShapeConditionalFormatProperty { /** * The conditional formatting for the shape background color of a filled map visual. * @@ -96893,7 +98776,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetControlInfoIconLabelOptionsProperty, - ) : CdkObject(cdkObject), SheetControlInfoIconLabelOptionsProperty { + ) : CdkObject(cdkObject), + SheetControlInfoIconLabelOptionsProperty { /** * The text content of info icon. * @@ -97035,7 +98919,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetControlLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SheetControlLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutConfigurationProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -97173,7 +99058,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetControlLayoutProperty, - ) : CdkObject(cdkObject), SheetControlLayoutProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -97255,7 +99141,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetControlsOptionProperty, - ) : CdkObject(cdkObject), SheetControlsOptionProperty { + ) : CdkObject(cdkObject), + SheetControlsOptionProperty { /** * Visibility state. * @@ -97745,7 +99632,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetDefinitionProperty, - ) : CdkObject(cdkObject), SheetDefinitionProperty { + ) : CdkObject(cdkObject), + SheetDefinitionProperty { /** * The layout content type of the sheet. Choose one of the following options:. * @@ -97926,7 +99814,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetElementConfigurationOverridesProperty, - ) : CdkObject(cdkObject), SheetElementConfigurationOverridesProperty { + ) : CdkObject(cdkObject), + SheetElementConfigurationOverridesProperty { /** * Determines whether or not the overrides are visible. Choose one of the following options:. * @@ -98073,7 +99962,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetElementRenderingRuleProperty, - ) : CdkObject(cdkObject), SheetElementRenderingRuleProperty { + ) : CdkObject(cdkObject), + SheetElementRenderingRuleProperty { /** * The override configuration of the rendering rules of a sheet. * @@ -98166,7 +100056,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetLayoutElementMaximizationOptionProperty, - ) : CdkObject(cdkObject), SheetLayoutElementMaximizationOptionProperty { + ) : CdkObject(cdkObject), + SheetLayoutElementMaximizationOptionProperty { /** * The status of the sheet layout maximization options of a dashbaord. * @@ -98276,7 +100167,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetProperty, - ) : CdkObject(cdkObject), SheetProperty { + ) : CdkObject(cdkObject), + SheetProperty { /** * The name of a sheet. * @@ -98393,7 +100285,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetTextBoxProperty, - ) : CdkObject(cdkObject), SheetTextBoxProperty { + ) : CdkObject(cdkObject), + SheetTextBoxProperty { /** * The content that is displayed in the text box. * @@ -98544,7 +100437,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SheetVisualScopingConfigurationProperty, - ) : CdkObject(cdkObject), SheetVisualScopingConfigurationProperty { + ) : CdkObject(cdkObject), + SheetVisualScopingConfigurationProperty { /** * The scope of the applied entities. Choose one of the following options:. * @@ -98670,7 +100564,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ShortFormatTextProperty, - ) : CdkObject(cdkObject), ShortFormatTextProperty { + ) : CdkObject(cdkObject), + ShortFormatTextProperty { /** * Plain text format. * @@ -98761,7 +100656,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SimpleClusterMarkerProperty, - ) : CdkObject(cdkObject), SimpleClusterMarkerProperty { + ) : CdkObject(cdkObject), + SimpleClusterMarkerProperty { /** * The color of the simple cluster marker. * @@ -98788,6 +100684,118 @@ public open class CfnDashboard( } } + /** + * The settings of a chart's single axis configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * SingleAxisOptionsProperty singleAxisOptionsProperty = SingleAxisOptionsProperty.builder() + * .yAxisOptions(YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-singleaxisoptions.html) + */ + public interface SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-singleaxisoptions.html#cfn-quicksight-dashboard-singleaxisoptions-yaxisoptions) + */ + public fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + + /** + * A builder for [SingleAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: IResolvable) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0709b46be981faa3a79bacf8e7d4b450a1d6ab4826216438891a0df8b854611c") + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty.builder() + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: IResolvable) { + cdkBuilder.yAxisOptions(yAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) { + cdkBuilder.yAxisOptions(yAxisOptions.let(YAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("0709b46be981faa3a79bacf8e7d4b450a1d6ab4826216438891a0df8b854611c") + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit): Unit = + yAxisOptions(YAxisOptionsProperty(yAxisOptions)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty, + ) : CdkObject(cdkObject), + SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-singleaxisoptions.html#cfn-quicksight-dashboard-singleaxisoptions-yaxisoptions) + */ + override fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SingleAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty): + SingleAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SingleAxisOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SingleAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDashboard.SingleAxisOptionsProperty + } + } + /** * The display options of a control. * @@ -98940,7 +100948,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SliderControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), SliderControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + SliderControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -99062,7 +101071,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SmallMultiplesAxisPropertiesProperty, - ) : CdkObject(cdkObject), SmallMultiplesAxisPropertiesProperty { + ) : CdkObject(cdkObject), + SmallMultiplesAxisPropertiesProperty { /** * Defines the placement of the axis. * @@ -99369,7 +101379,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SmallMultiplesOptionsProperty, - ) : CdkObject(cdkObject), SmallMultiplesOptionsProperty { + ) : CdkObject(cdkObject), + SmallMultiplesOptionsProperty { /** * Sets the maximum number of visible columns to display in the grid of small multiples * panels. @@ -99544,7 +101555,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SpacingProperty, - ) : CdkObject(cdkObject), SpacingProperty { + ) : CdkObject(cdkObject), + SpacingProperty { /** * Define the bottom spacing. * @@ -99727,7 +101739,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.StringDefaultValuesProperty, - ) : CdkObject(cdkObject), StringDefaultValuesProperty { + ) : CdkObject(cdkObject), + StringDefaultValuesProperty { /** * The dynamic value of the `StringDefaultValues` . * @@ -99975,7 +101988,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.StringFormatConfigurationProperty, - ) : CdkObject(cdkObject), StringFormatConfigurationProperty { + ) : CdkObject(cdkObject), + StringFormatConfigurationProperty { /** * The options that determine the null value format configuration. * @@ -100271,7 +102285,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.StringParameterDeclarationProperty, - ) : CdkObject(cdkObject), StringParameterDeclarationProperty { + ) : CdkObject(cdkObject), + StringParameterDeclarationProperty { /** * The default values of a parameter. * @@ -100413,7 +102428,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.StringParameterProperty, - ) : CdkObject(cdkObject), StringParameterProperty { + ) : CdkObject(cdkObject), + StringParameterProperty { /** * A display name for a string parameter. * @@ -100533,7 +102549,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.StringValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), StringValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + StringValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -101069,7 +103086,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.SubtotalOptionsProperty, - ) : CdkObject(cdkObject), SubtotalOptionsProperty { + ) : CdkObject(cdkObject), + SubtotalOptionsProperty { /** * The custom label string for the subtotal cells. * @@ -101763,7 +103781,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableAggregatedFieldWellsProperty { /** * The group by field well for a pivot table. * @@ -101897,7 +103916,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableBorderOptionsProperty, - ) : CdkObject(cdkObject), TableBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableBorderOptionsProperty { /** * The color of a table border. * @@ -102098,7 +104118,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -102192,7 +104213,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableCellImageSizingConfigurationProperty, - ) : CdkObject(cdkObject), TableCellImageSizingConfigurationProperty { + ) : CdkObject(cdkObject), + TableCellImageSizingConfigurationProperty { /** * The cell scaling configuration of the sizing options for the table image configuration. * @@ -102522,7 +104544,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableCellStyleProperty, - ) : CdkObject(cdkObject), TableCellStyleProperty { + ) : CdkObject(cdkObject), + TableCellStyleProperty { /** * The background color for the table cells. * @@ -102825,7 +104848,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a table. * @@ -103045,7 +105069,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -103433,7 +105458,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableConfigurationProperty, - ) : CdkObject(cdkObject), TableConfigurationProperty { + ) : CdkObject(cdkObject), + TableConfigurationProperty { /** * The field options for a table visual. * @@ -103558,7 +105584,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldCustomIconContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomIconContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomIconContentProperty { /** * The icon set type (link) of the custom icon content for table URL link content. * @@ -103707,7 +105734,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldCustomTextContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomTextContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomTextContentProperty { /** * The font configuration of the custom text content for the table URL link content. * @@ -103829,7 +105857,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldImageConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldImageConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldImageConfigurationProperty { /** * The sizing options for the table image configuration. * @@ -103981,7 +106010,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldLinkConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkConfigurationProperty { /** * The URL content (text, icon) for the table link configuration. * @@ -104172,7 +106202,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldLinkContentConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkContentConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkContentConfigurationProperty { /** * The custom icon content for the table link content configuration. * @@ -104399,7 +106430,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldOptionProperty, - ) : CdkObject(cdkObject), TableFieldOptionProperty { + ) : CdkObject(cdkObject), + TableFieldOptionProperty { /** * The custom label for a table field. * @@ -104653,7 +106685,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldOptionsProperty, - ) : CdkObject(cdkObject), TableFieldOptionsProperty { + ) : CdkObject(cdkObject), + TableFieldOptionsProperty { /** * The order of the field IDs that are configured as field options for a table visual. * @@ -104854,7 +106887,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldURLConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldURLConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldURLConfigurationProperty { /** * The image configuration of a table field URL. * @@ -105023,7 +107057,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableFieldWellsProperty, - ) : CdkObject(cdkObject), TableFieldWellsProperty { + ) : CdkObject(cdkObject), + TableFieldWellsProperty { /** * The aggregated field well for the table. * @@ -105152,7 +107187,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableInlineVisualizationProperty, - ) : CdkObject(cdkObject), TableInlineVisualizationProperty { + ) : CdkObject(cdkObject), + TableInlineVisualizationProperty { /** * The configuration of the inline visualization of the data bars within a chart. * @@ -105503,7 +107539,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableOptionsProperty, - ) : CdkObject(cdkObject), TableOptionsProperty { + ) : CdkObject(cdkObject), + TableOptionsProperty { /** * The table cell style of table cells. * @@ -105628,7 +107665,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), TablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + TablePaginatedReportOptionsProperty { /** * The visibility of repeating header rows on each page. * @@ -105732,7 +107770,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TablePinnedFieldOptionsProperty, - ) : CdkObject(cdkObject), TablePinnedFieldOptionsProperty { + ) : CdkObject(cdkObject), + TablePinnedFieldOptionsProperty { /** * A list of columns to be pinned to the left of a table visual. * @@ -105938,7 +107977,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableRowConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableRowConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableRowConditionalFormattingProperty { /** * The conditional formatting color (solid, gradient) of the background for a table row. * @@ -106315,7 +108355,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableSideBorderOptionsProperty, - ) : CdkObject(cdkObject), TableSideBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableSideBorderOptionsProperty { /** * The table border options of the bottom border. * @@ -106541,7 +108582,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableSortConfigurationProperty, - ) : CdkObject(cdkObject), TableSortConfigurationProperty { + ) : CdkObject(cdkObject), + TableSortConfigurationProperty { /** * The pagination configuration (page size, page number) for the table. * @@ -106629,7 +108671,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableStyleTargetProperty, - ) : CdkObject(cdkObject), TableStyleTargetProperty { + ) : CdkObject(cdkObject), + TableStyleTargetProperty { /** * The cell type of the table style target. * @@ -106959,7 +109002,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableUnaggregatedFieldWellsProperty { /** * The values field well for a pivot table. * @@ -107278,7 +109322,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TableVisualProperty, - ) : CdkObject(cdkObject), TableVisualProperty { + ) : CdkObject(cdkObject), + TableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -107552,7 +109597,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TextAreaControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextAreaControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextAreaControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -107825,7 +109871,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TextConditionalFormatProperty, - ) : CdkObject(cdkObject), TextConditionalFormatProperty { + ) : CdkObject(cdkObject), + TextConditionalFormatProperty { /** * The conditional formatting for the text background color. * @@ -107924,7 +109971,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TextControlPlaceholderOptionsProperty, - ) : CdkObject(cdkObject), TextControlPlaceholderOptionsProperty { + ) : CdkObject(cdkObject), + TextControlPlaceholderOptionsProperty { /** * The visibility configuration of the placeholder options in a text control. * @@ -108161,7 +110209,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TextFieldControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextFieldControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextFieldControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -108279,7 +110328,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ThousandSeparatorOptionsProperty, - ) : CdkObject(cdkObject), ThousandSeparatorOptionsProperty { + ) : CdkObject(cdkObject), + ThousandSeparatorOptionsProperty { /** * Determines the thousands separator symbol. * @@ -108478,7 +110528,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TimeBasedForecastPropertiesProperty, - ) : CdkObject(cdkObject), TimeBasedForecastPropertiesProperty { + ) : CdkObject(cdkObject), + TimeBasedForecastPropertiesProperty { /** * The lower boundary setup of a forecast computation. * @@ -109046,7 +111097,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TimeEqualityFilterProperty, - ) : CdkObject(cdkObject), TimeEqualityFilterProperty { + ) : CdkObject(cdkObject), + TimeEqualityFilterProperty { /** * The column that the filter is applied to. * @@ -109272,7 +111324,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TimeRangeDrillDownFilterProperty, - ) : CdkObject(cdkObject), TimeRangeDrillDownFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -109991,7 +112044,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TimeRangeFilterProperty, - ) : CdkObject(cdkObject), TimeRangeFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterProperty { /** * The column that the filter is applied to. * @@ -110220,7 +112274,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TimeRangeFilterValueProperty, - ) : CdkObject(cdkObject), TimeRangeFilterValueProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterValueProperty { /** * The parameter type input value. * @@ -110295,12 +112350,14 @@ public open class CfnDashboard( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build(); @@ -110426,7 +112483,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TooltipItemProperty, - ) : CdkObject(cdkObject), TooltipItemProperty { + ) : CdkObject(cdkObject), + TooltipItemProperty { /** * The tooltip item for the columns that are not part of a field well. * @@ -110494,12 +112552,14 @@ public open class CfnDashboard( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -110633,7 +112693,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TooltipOptionsProperty, - ) : CdkObject(cdkObject), TooltipOptionsProperty { + ) : CdkObject(cdkObject), + TooltipOptionsProperty { /** * The setup for the detailed tooltip. * @@ -111183,7 +113244,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TopBottomFilterProperty, - ) : CdkObject(cdkObject), TopBottomFilterProperty { + ) : CdkObject(cdkObject), + TopBottomFilterProperty { /** * The aggregation and sort configuration of the top bottom filter. * @@ -111528,7 +113590,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TopBottomMoversComputationProperty, - ) : CdkObject(cdkObject), TopBottomMoversComputationProperty { + ) : CdkObject(cdkObject), + TopBottomMoversComputationProperty { /** * The category field that is used in a computation. * @@ -111817,7 +113880,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TopBottomRankedComputationProperty, - ) : CdkObject(cdkObject), TopBottomRankedComputationProperty { + ) : CdkObject(cdkObject), + TopBottomRankedComputationProperty { /** * The category field that is used in a computation. * @@ -112254,7 +114318,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TotalAggregationComputationProperty, - ) : CdkObject(cdkObject), TotalAggregationComputationProperty { + ) : CdkObject(cdkObject), + TotalAggregationComputationProperty { /** * The ID for a computation. * @@ -112353,7 +114418,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TotalAggregationFunctionProperty, - ) : CdkObject(cdkObject), TotalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + TotalAggregationFunctionProperty { /** * A built in aggregation function for total values. * @@ -112497,7 +114563,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TotalAggregationOptionProperty, - ) : CdkObject(cdkObject), TotalAggregationOptionProperty { + ) : CdkObject(cdkObject), + TotalAggregationOptionProperty { /** * The field id that's associated with the total aggregation option. * @@ -112797,7 +114864,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TotalOptionsProperty, - ) : CdkObject(cdkObject), TotalOptionsProperty { + ) : CdkObject(cdkObject), + TotalOptionsProperty { /** * The custom label string for the total cells. * @@ -113036,7 +115104,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TreeMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapAggregatedFieldWellsProperty { /** * The color field well of a tree map. * @@ -113556,7 +115625,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TreeMapConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapConfigurationProperty { /** * The label options (label text, label visibility) for the colors displayed in a tree map. * @@ -113725,7 +115795,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TreeMapFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapFieldWellsProperty { /** * The aggregated field wells of a tree map. * @@ -113922,7 +115993,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TreeMapSortConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapSortConfigurationProperty { /** * The limit on the number of groups that are displayed. * @@ -114245,7 +116317,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TreeMapVisualProperty, - ) : CdkObject(cdkObject), TreeMapVisualProperty { + ) : CdkObject(cdkObject), + TreeMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -114365,7 +116438,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.TrendArrowOptionsProperty, - ) : CdkObject(cdkObject), TrendArrowOptionsProperty { + ) : CdkObject(cdkObject), + TrendArrowOptionsProperty { /** * The visibility of the trend arrows. * @@ -114756,7 +116830,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.UnaggregatedFieldProperty, - ) : CdkObject(cdkObject), UnaggregatedFieldProperty { + ) : CdkObject(cdkObject), + UnaggregatedFieldProperty { /** * The column that is used in the `UnaggregatedField` . * @@ -115158,7 +117233,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.UniqueValuesComputationProperty, - ) : CdkObject(cdkObject), UniqueValuesComputationProperty { + ) : CdkObject(cdkObject), + UniqueValuesComputationProperty { /** * The category field that is used in a computation. * @@ -115264,7 +117340,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.ValidationStrategyProperty, - ) : CdkObject(cdkObject), ValidationStrategyProperty { + ) : CdkObject(cdkObject), + ValidationStrategyProperty { /** * The mode of validation for the asset to be created or updated. * @@ -115379,7 +117456,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisibleRangeOptionsProperty, - ) : CdkObject(cdkObject), VisibleRangeOptionsProperty { + ) : CdkObject(cdkObject), + VisibleRangeOptionsProperty { /** * The percent range in the visible range. * @@ -115462,7 +117540,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualAxisSortOptionProperty, - ) : CdkObject(cdkObject), VisualAxisSortOptionProperty { + ) : CdkObject(cdkObject), + VisualAxisSortOptionProperty { /** * The availaiblity status of a visual's axis sort options. * @@ -115789,7 +117868,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualCustomActionOperationProperty, - ) : CdkObject(cdkObject), VisualCustomActionOperationProperty { + ) : CdkObject(cdkObject), + VisualCustomActionOperationProperty { /** * The filter operation that filters data included in a visual or in an entire sheet. * @@ -116075,7 +118155,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualCustomActionProperty, - ) : CdkObject(cdkObject), VisualCustomActionProperty { + ) : CdkObject(cdkObject), + VisualCustomActionProperty { /** * A list of `VisualCustomActionOperations` . * @@ -116192,7 +118273,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualMenuOptionProperty, - ) : CdkObject(cdkObject), VisualMenuOptionProperty { + ) : CdkObject(cdkObject), + VisualMenuOptionProperty { /** * The availaiblity status of a visual's menu options. * @@ -116326,7 +118408,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualPaletteProperty, - ) : CdkObject(cdkObject), VisualPaletteProperty { + ) : CdkObject(cdkObject), + VisualPaletteProperty { /** * The chart color options for the visual palette. * @@ -117941,7 +120024,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualProperty, - ) : CdkObject(cdkObject), VisualProperty { + ) : CdkObject(cdkObject), + VisualProperty { /** * A bar chart. * @@ -118322,7 +120406,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualSubtitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualSubtitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualSubtitleLabelOptionsProperty { /** * The long text format of the subtitle label, such as plain text or rich text. * @@ -118469,7 +120554,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.VisualTitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualTitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualTitleLabelOptionsProperty { /** * The short text format of the title label, such as plain text or rich text. * @@ -118656,7 +120742,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartAggregatedFieldWellsProperty { /** * The breakdown field wells of a waterfall visual. * @@ -118796,7 +120883,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartColorConfigurationProperty { /** * The color configuration for individual groups within a waterfall visual. * @@ -119409,7 +121497,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartConfigurationProperty { /** * The options that determine the presentation of the category axis. * @@ -119596,7 +121685,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartFieldWellsProperty { /** * The field well configuration of a waterfall visual. * @@ -119720,7 +121810,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartGroupColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartGroupColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartGroupColorConfigurationProperty { /** * Defines the color for the negative bars of a waterfall chart. * @@ -119818,7 +121909,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartOptionsProperty, - ) : CdkObject(cdkObject), WaterfallChartOptionsProperty { + ) : CdkObject(cdkObject), + WaterfallChartOptionsProperty { /** * This option determines the total bar label of a waterfall visual. * @@ -120003,7 +122095,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallChartSortConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartSortConfigurationProperty { /** * The limit on the number of bar groups that are displayed. * @@ -120326,7 +122419,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WaterfallVisualProperty, - ) : CdkObject(cdkObject), WaterfallVisualProperty { + ) : CdkObject(cdkObject), + WaterfallVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -120468,7 +122562,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WhatIfPointScenarioProperty, - ) : CdkObject(cdkObject), WhatIfPointScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfPointScenarioProperty { /** * The date that you need the forecast results for. * @@ -120601,7 +122696,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WhatIfRangeScenarioProperty, - ) : CdkObject(cdkObject), WhatIfRangeScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfRangeScenarioProperty { /** * The end date in the date range that you need the forecast results for. * @@ -121262,7 +123358,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudAggregatedFieldWellsProperty { /** * The group by field well of a word cloud. * @@ -121526,7 +123623,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudChartConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudChartConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudChartConfigurationProperty { /** * The label options (label text, label visibility, and sort icon visibility) for the word * cloud category. @@ -122152,7 +124250,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudFieldWellsProperty { /** * The aggregated field wells of a word cloud. * @@ -122343,7 +124442,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudOptionsProperty, - ) : CdkObject(cdkObject), WordCloudOptionsProperty { + ) : CdkObject(cdkObject), + WordCloudOptionsProperty { /** * The cloud layout options (fluid, normal) of a word cloud. * @@ -122570,7 +124670,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudSortConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudSortConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudSortConfigurationProperty { /** * The limit on the number of groups that are displayed in a word cloud. * @@ -122893,7 +124994,8 @@ public open class CfnDashboard( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudVisualProperty, - ) : CdkObject(cdkObject), WordCloudVisualProperty { + ) : CdkObject(cdkObject), + WordCloudVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -122957,4 +125059,96 @@ public open class CfnDashboard( software.amazon.awscdk.services.quicksight.CfnDashboard.WordCloudVisualProperty } } + + /** + * The options that are available for a single Y axis in a chart. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * YAxisOptionsProperty yAxisOptionsProperty = YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-yaxisoptions.html) + */ + public interface YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical axis + * of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-yaxisoptions.html#cfn-quicksight-dashboard-yaxisoptions-yaxis) + */ + public fun yAxis(): String + + /** + * A builder for [YAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + public fun yAxis(yAxis: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty.builder() + + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + override fun yAxis(yAxis: String) { + cdkBuilder.yAxis(yAxis) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty, + ) : CdkObject(cdkObject), + YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-yaxisoptions.html#cfn-quicksight-dashboard-yaxisoptions-yaxis) + */ + override fun yAxis(): String = unwrap(this).getYAxis() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): YAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty): + YAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? YAxisOptionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: YAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDashboard.YAxisOptionsProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboardProps.kt index b32ee0e8c1..391f0d1871 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDashboardProps.kt @@ -746,7 +746,8 @@ public interface CfnDashboardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDashboardProps, - ) : CdkObject(cdkObject), CfnDashboardProps { + ) : CdkObject(cdkObject), + CfnDashboardProps { /** * The ID of the AWS account where you want to create the dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSet.kt index 3743a021e7..8c31baa0a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSet.kt @@ -109,6 +109,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .columns(List.of("columns")) * .description("description") * .build())) + * .folderArns(List.of("folderArns")) * .importMode("importMode") * .ingestionWaitPolicy(IngestionWaitPolicyProperty.builder() * .ingestionWaitTimeInHours(123) @@ -117,23 +118,6 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .logicalTableMap(Map.of( * "logicalTableMapKey", LogicalTableProperty.builder() * .alias("alias") - * .source(LogicalTableSourceProperty.builder() - * .dataSetArn("dataSetArn") - * .joinInstruction(JoinInstructionProperty.builder() - * .leftOperand("leftOperand") - * .onClause("onClause") - * .rightOperand("rightOperand") - * .type("type") - * // the properties below are optional - * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .build()) - * .physicalTableId("physicalTableId") - * .build()) * // the properties below are optional * .dataTransforms(List.of(TransformOperationProperty.builder() * .castColumnTypeOperation(CastColumnTypeOperationProperty.builder() @@ -180,7 +164,28 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .columnGeographicRole("columnGeographicRole") * .build())) * .build()) + * .untagColumnOperation(UntagColumnOperationProperty.builder() + * .columnName("columnName") + * .tagNames(List.of("tagNames")) + * .build()) * .build())) + * .source(LogicalTableSourceProperty.builder() + * .dataSetArn("dataSetArn") + * .joinInstruction(JoinInstructionProperty.builder() + * .leftOperand("leftOperand") + * .onClause("onClause") + * .rightOperand("rightOperand") + * .type("type") + * // the properties below are optional + * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .build()) + * .physicalTableId("physicalTableId") + * .build()) * .build())) * .name("name") * .permissions(List.of(ResourcePermissionProperty.builder() @@ -262,7 +267,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSet( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.quicksight.CfnDataSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -489,6 +496,23 @@ public open class CfnDataSet( unwrap(this).setFieldFolders(`value`.mapValues{CdkObjectWrappers.unwrap(it.value)}) } + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + */ + public open fun folderArns(): List = unwrap(this).getFolderArns() ?: emptyList() + + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + */ + public open fun folderArns(`value`: List) { + unwrap(this).setFolderArns(`value`) + } + + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + */ + public open fun folderArns(vararg `value`: String): Unit = folderArns(`value`.toList()) + /** * Indicates whether you want to import the data into SPICE. */ @@ -873,6 +897,24 @@ public open class CfnDataSet( */ public fun fieldFolders(fieldFolders: Map) + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + public fun folderArns(folderArns: List) + + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + public fun folderArns(vararg folderArns: String) + /** * Indicates whether you want to import the data into SPICE. * @@ -1280,6 +1322,26 @@ public open class CfnDataSet( cdkBuilder.fieldFolders(fieldFolders.mapValues{CdkObjectWrappers.unwrap(it.value)}) } + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + override fun folderArns(folderArns: List) { + cdkBuilder.folderArns(folderArns) + } + + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + override fun folderArns(vararg folderArns: String): Unit = folderArns(folderArns.toList()) + /** * Indicates whether you want to import the data into SPICE. * @@ -1629,7 +1691,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.CalculatedColumnProperty, - ) : CdkObject(cdkObject), CalculatedColumnProperty { + ) : CdkObject(cdkObject), + CalculatedColumnProperty { /** * A unique ID to identify a calculated column. * @@ -1797,7 +1860,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.CastColumnTypeOperationProperty, - ) : CdkObject(cdkObject), CastColumnTypeOperationProperty { + ) : CdkObject(cdkObject), + CastColumnTypeOperationProperty { /** * Column name. * @@ -1902,7 +1966,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ColumnDescriptionProperty, - ) : CdkObject(cdkObject), ColumnDescriptionProperty { + ) : CdkObject(cdkObject), + ColumnDescriptionProperty { /** * The text of a description for a column. * @@ -2019,7 +2084,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ColumnGroupProperty, - ) : CdkObject(cdkObject), ColumnGroupProperty { + ) : CdkObject(cdkObject), + ColumnGroupProperty { /** * Geospatial column group that denotes a hierarchy. * @@ -2150,7 +2216,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ColumnLevelPermissionRuleProperty, - ) : CdkObject(cdkObject), ColumnLevelPermissionRuleProperty { + ) : CdkObject(cdkObject), + ColumnLevelPermissionRuleProperty { /** * An array of column names. * @@ -2291,7 +2358,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ColumnTagProperty, - ) : CdkObject(cdkObject), ColumnTagProperty { + ) : CdkObject(cdkObject), + ColumnTagProperty { /** * A description for a column. * @@ -2409,7 +2477,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.CreateColumnsOperationProperty, - ) : CdkObject(cdkObject), CreateColumnsOperationProperty { + ) : CdkObject(cdkObject), + CreateColumnsOperationProperty { /** * Calculated columns to create. * @@ -2576,7 +2645,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.CustomSqlProperty, - ) : CdkObject(cdkObject), CustomSqlProperty { + ) : CdkObject(cdkObject), + CustomSqlProperty { /** * The column schema from the SQL query result set. * @@ -2655,7 +2725,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetrefreshproperties.html#cfn-quicksight-dataset-datasetrefreshproperties-refreshconfiguration) */ - public fun refreshConfiguration(): Any? = unwrap(this).getRefreshConfiguration() + public fun refreshConfiguration(): Any /** * A builder for [DataSetRefreshPropertiesProperty] @@ -2663,17 +2733,17 @@ public open class CfnDataSet( @CdkDslMarker public interface Builder { /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ public fun refreshConfiguration(refreshConfiguration: IResolvable) /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ public fun refreshConfiguration(refreshConfiguration: RefreshConfigurationProperty) /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d891b94496204b23a10ded06cb3c53dc1ea32e4458deafff5a702f6b82b61370") @@ -2688,21 +2758,21 @@ public open class CfnDataSet( software.amazon.awscdk.services.quicksight.CfnDataSet.DataSetRefreshPropertiesProperty.builder() /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ override fun refreshConfiguration(refreshConfiguration: IResolvable) { cdkBuilder.refreshConfiguration(refreshConfiguration.let(IResolvable.Companion::unwrap)) } /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ override fun refreshConfiguration(refreshConfiguration: RefreshConfigurationProperty) { cdkBuilder.refreshConfiguration(refreshConfiguration.let(RefreshConfigurationProperty.Companion::unwrap)) } /** - * @param refreshConfiguration The refresh configuration for a dataset. + * @param refreshConfiguration The refresh configuration for a dataset. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d891b94496204b23a10ded06cb3c53dc1ea32e4458deafff5a702f6b82b61370") @@ -2717,13 +2787,14 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DataSetRefreshPropertiesProperty, - ) : CdkObject(cdkObject), DataSetRefreshPropertiesProperty { + ) : CdkObject(cdkObject), + DataSetRefreshPropertiesProperty { /** * The refresh configuration for a dataset. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetrefreshproperties.html#cfn-quicksight-dataset-datasetrefreshproperties-refreshconfiguration) */ - override fun refreshConfiguration(): Any? = unwrap(this).getRefreshConfiguration() + override fun refreshConfiguration(): Any = unwrap(this).getRefreshConfiguration() } public companion object { @@ -2767,6 +2838,8 @@ public open class CfnDataSet( * An option that controls whether a child dataset of a direct query can use this dataset as a * source. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetusageconfiguration.html#cfn-quicksight-dataset-datasetusageconfiguration-disableuseasdirectquerysource) */ public fun disableUseAsDirectQuerySource(): Any? = @@ -2776,6 +2849,8 @@ public open class CfnDataSet( * An option that controls whether a child dataset that's stored in QuickSight can use this * dataset as a source. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetusageconfiguration.html#cfn-quicksight-dataset-datasetusageconfiguration-disableuseasimportedsource) */ public fun disableUseAsImportedSource(): Any? = unwrap(this).getDisableUseAsImportedSource() @@ -2855,11 +2930,14 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DataSetUsageConfigurationProperty, - ) : CdkObject(cdkObject), DataSetUsageConfigurationProperty { + ) : CdkObject(cdkObject), + DataSetUsageConfigurationProperty { /** * An option that controls whether a child dataset of a direct query can use this dataset as a * source. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetusageconfiguration.html#cfn-quicksight-dataset-datasetusageconfiguration-disableuseasdirectquerysource) */ override fun disableUseAsDirectQuerySource(): Any? = @@ -2869,6 +2947,8 @@ public open class CfnDataSet( * An option that controls whether a child dataset that's stored in QuickSight can use this * dataset as a source. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-datasetusageconfiguration.html#cfn-quicksight-dataset-datasetusageconfiguration-disableuseasimportedsource) */ override fun disableUseAsImportedSource(): Any? = unwrap(this).getDisableUseAsImportedSource() @@ -3161,7 +3241,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DatasetParameterProperty, - ) : CdkObject(cdkObject), DatasetParameterProperty { + ) : CdkObject(cdkObject), + DatasetParameterProperty { /** * A date time parameter that is created in the dataset. * @@ -3210,9 +3291,7 @@ public open class CfnDataSet( } /** - * List of default values defined for a given string date time parameter type. - * - * Currently only static values are supported.

+ * The default values of a date time parameter.

. * * Example: * @@ -3284,7 +3363,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DateTimeDatasetParameterDefaultValuesProperty, - ) : CdkObject(cdkObject), DateTimeDatasetParameterDefaultValuesProperty { + ) : CdkObject(cdkObject), + DateTimeDatasetParameterDefaultValuesProperty { /** * A list of static default values for a given date time parameter. * @@ -3494,7 +3574,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DateTimeDatasetParameterProperty, - ) : CdkObject(cdkObject), DateTimeDatasetParameterProperty { + ) : CdkObject(cdkObject), + DateTimeDatasetParameterProperty { /** * A list of default values for a given date time parameter. * @@ -3634,7 +3715,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DecimalDatasetParameterDefaultValuesProperty, - ) : CdkObject(cdkObject), DecimalDatasetParameterDefaultValuesProperty { + ) : CdkObject(cdkObject), + DecimalDatasetParameterDefaultValuesProperty { /** * A list of static default values for a given decimal parameter. * @@ -3822,7 +3904,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.DecimalDatasetParameterProperty, - ) : CdkObject(cdkObject), DecimalDatasetParameterProperty { + ) : CdkObject(cdkObject), + DecimalDatasetParameterProperty { /** * A list of default values for a given decimal parameter. * @@ -3963,7 +4046,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.FieldFolderProperty, - ) : CdkObject(cdkObject), FieldFolderProperty { + ) : CdkObject(cdkObject), + FieldFolderProperty { /** * A folder has a list of columns. * @@ -4057,7 +4141,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.FilterOperationProperty, - ) : CdkObject(cdkObject), FilterOperationProperty { + ) : CdkObject(cdkObject), + FilterOperationProperty { /** * An expression that must evaluate to a Boolean value. * @@ -4193,7 +4278,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.GeoSpatialColumnGroupProperty, - ) : CdkObject(cdkObject), GeoSpatialColumnGroupProperty { + ) : CdkObject(cdkObject), + GeoSpatialColumnGroupProperty { /** * Columns in this hierarchy. * @@ -4260,7 +4346,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-incrementalrefresh.html#cfn-quicksight-dataset-incrementalrefresh-lookbackwindow) */ - public fun lookbackWindow(): Any? = unwrap(this).getLookbackWindow() + public fun lookbackWindow(): Any /** * A builder for [IncrementalRefreshProperty] @@ -4268,17 +4354,17 @@ public open class CfnDataSet( @CdkDslMarker public interface Builder { /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ public fun lookbackWindow(lookbackWindow: IResolvable) /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ public fun lookbackWindow(lookbackWindow: LookbackWindowProperty) /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d076a231dab6dc3cf3a9fb65a3c9a1529398d973f5242a3f7841ec7d88b58222") @@ -4291,21 +4377,21 @@ public open class CfnDataSet( software.amazon.awscdk.services.quicksight.CfnDataSet.IncrementalRefreshProperty.builder() /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ override fun lookbackWindow(lookbackWindow: IResolvable) { cdkBuilder.lookbackWindow(lookbackWindow.let(IResolvable.Companion::unwrap)) } /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ override fun lookbackWindow(lookbackWindow: LookbackWindowProperty) { cdkBuilder.lookbackWindow(lookbackWindow.let(LookbackWindowProperty.Companion::unwrap)) } /** - * @param lookbackWindow The lookback window setup for an incremental refresh configuration. + * @param lookbackWindow The lookback window setup for an incremental refresh configuration. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d076a231dab6dc3cf3a9fb65a3c9a1529398d973f5242a3f7841ec7d88b58222") @@ -4319,13 +4405,14 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.IncrementalRefreshProperty, - ) : CdkObject(cdkObject), IncrementalRefreshProperty { + ) : CdkObject(cdkObject), + IncrementalRefreshProperty { /** * The lookback window setup for an incremental refresh configuration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-incrementalrefresh.html#cfn-quicksight-dataset-incrementalrefresh-lookbackwindow) */ - override fun lookbackWindow(): Any? = unwrap(this).getLookbackWindow() + override fun lookbackWindow(): Any = unwrap(this).getLookbackWindow() } public companion object { @@ -4458,7 +4545,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.IngestionWaitPolicyProperty, - ) : CdkObject(cdkObject), IngestionWaitPolicyProperty { + ) : CdkObject(cdkObject), + IngestionWaitPolicyProperty { /** * The maximum time (in hours) to wait for Ingestion to complete. * @@ -4599,7 +4687,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.InputColumnProperty, - ) : CdkObject(cdkObject), InputColumnProperty { + ) : CdkObject(cdkObject), + InputColumnProperty { /** * The name of this column in the underlying data source. * @@ -4723,7 +4812,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.IntegerDatasetParameterDefaultValuesProperty, - ) : CdkObject(cdkObject), IntegerDatasetParameterDefaultValuesProperty { + ) : CdkObject(cdkObject), + IntegerDatasetParameterDefaultValuesProperty { /** * A list of static default values for a given integer parameter. * @@ -4911,7 +5001,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.IntegerDatasetParameterProperty, - ) : CdkObject(cdkObject), IntegerDatasetParameterProperty { + ) : CdkObject(cdkObject), + IntegerDatasetParameterProperty { /** * A list of default values for a given integer parameter. * @@ -5180,7 +5271,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.JoinInstructionProperty, - ) : CdkObject(cdkObject), JoinInstructionProperty { + ) : CdkObject(cdkObject), + JoinInstructionProperty { /** * Join key properties of the left operand. * @@ -5319,7 +5411,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.JoinKeyPropertiesProperty, - ) : CdkObject(cdkObject), JoinKeyPropertiesProperty { + ) : CdkObject(cdkObject), + JoinKeyPropertiesProperty { /** * A value that indicates that a row in a table is uniquely identified by the columns in a * join key. @@ -5364,23 +5457,6 @@ public open class CfnDataSet( * import io.cloudshiftdev.awscdk.services.quicksight.*; * LogicalTableProperty logicalTableProperty = LogicalTableProperty.builder() * .alias("alias") - * .source(LogicalTableSourceProperty.builder() - * .dataSetArn("dataSetArn") - * .joinInstruction(JoinInstructionProperty.builder() - * .leftOperand("leftOperand") - * .onClause("onClause") - * .rightOperand("rightOperand") - * .type("type") - * // the properties below are optional - * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .build()) - * .physicalTableId("physicalTableId") - * .build()) * // the properties below are optional * .dataTransforms(List.of(TransformOperationProperty.builder() * .castColumnTypeOperation(CastColumnTypeOperationProperty.builder() @@ -5427,7 +5503,28 @@ public open class CfnDataSet( * .columnGeographicRole("columnGeographicRole") * .build())) * .build()) + * .untagColumnOperation(UntagColumnOperationProperty.builder() + * .columnName("columnName") + * .tagNames(List.of("tagNames")) + * .build()) * .build())) + * .source(LogicalTableSourceProperty.builder() + * .dataSetArn("dataSetArn") + * .joinInstruction(JoinInstructionProperty.builder() + * .leftOperand("leftOperand") + * .onClause("onClause") + * .rightOperand("rightOperand") + * .type("type") + * // the properties below are optional + * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .build()) + * .physicalTableId("physicalTableId") + * .build()) * .build(); * ``` * @@ -5455,7 +5552,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-logicaltable.html#cfn-quicksight-dataset-logicaltable-source) */ - public fun source(): Any + public fun source(): Any? = unwrap(this).getSource() /** * A builder for [LogicalTableProperty] @@ -5486,17 +5583,17 @@ public open class CfnDataSet( public fun dataTransforms(vararg dataTransforms: Any) /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ public fun source(source: IResolvable) /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ public fun source(source: LogicalTableSourceProperty) /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("985accfe8cb3d471c9f271f0ee7ccda2339d6feefba9b5a08cfc81a779ae5f57") @@ -5539,21 +5636,21 @@ public open class CfnDataSet( dataTransforms(dataTransforms.toList()) /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ override fun source(source: IResolvable) { cdkBuilder.source(source.let(IResolvable.Companion::unwrap)) } /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ override fun source(source: LogicalTableSourceProperty) { cdkBuilder.source(source.let(LogicalTableSourceProperty.Companion::unwrap)) } /** - * @param source Source of this logical table. + * @param source Source of this logical table. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("985accfe8cb3d471c9f271f0ee7ccda2339d6feefba9b5a08cfc81a779ae5f57") @@ -5566,7 +5663,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.LogicalTableProperty, - ) : CdkObject(cdkObject), LogicalTableProperty { + ) : CdkObject(cdkObject), + LogicalTableProperty { /** * A display name for the logical table. * @@ -5588,7 +5686,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-logicaltable.html#cfn-quicksight-dataset-logicaltable-source) */ - override fun source(): Any = unwrap(this).getSource() + override fun source(): Any? = unwrap(this).getSource() } public companion object { @@ -5745,7 +5843,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.LogicalTableSourceProperty, - ) : CdkObject(cdkObject), LogicalTableSourceProperty { + ) : CdkObject(cdkObject), + LogicalTableSourceProperty { /** * The Amazon Resource Number (ARN) of the parent dataset. * @@ -5810,14 +5909,16 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-columnname) */ - public fun columnName(): String? = unwrap(this).getColumnName() + public fun columnName(): String /** * The lookback window column size. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-size) */ - public fun size(): Number? = unwrap(this).getSize() + public fun size(): Number /** * The size unit that is used for the lookback window column. @@ -5826,7 +5927,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-sizeunit) */ - public fun sizeUnit(): String? = unwrap(this).getSizeUnit() + public fun sizeUnit(): String /** * A builder for [LookbackWindowProperty] @@ -5834,17 +5935,17 @@ public open class CfnDataSet( @CdkDslMarker public interface Builder { /** - * @param columnName The name of the lookback window column. + * @param columnName The name of the lookback window column. */ public fun columnName(columnName: String) /** - * @param size The lookback window column size. + * @param size The lookback window column size. */ public fun size(size: Number) /** - * @param sizeUnit The size unit that is used for the lookback window column. + * @param sizeUnit The size unit that is used for the lookback window column. * Valid values for this structure are `HOUR` , `DAY` , and `WEEK` . */ public fun sizeUnit(sizeUnit: String) @@ -5856,21 +5957,21 @@ public open class CfnDataSet( software.amazon.awscdk.services.quicksight.CfnDataSet.LookbackWindowProperty.builder() /** - * @param columnName The name of the lookback window column. + * @param columnName The name of the lookback window column. */ override fun columnName(columnName: String) { cdkBuilder.columnName(columnName) } /** - * @param size The lookback window column size. + * @param size The lookback window column size. */ override fun size(size: Number) { cdkBuilder.size(size) } /** - * @param sizeUnit The size unit that is used for the lookback window column. + * @param sizeUnit The size unit that is used for the lookback window column. * Valid values for this structure are `HOUR` , `DAY` , and `WEEK` . */ override fun sizeUnit(sizeUnit: String) { @@ -5884,20 +5985,23 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.LookbackWindowProperty, - ) : CdkObject(cdkObject), LookbackWindowProperty { + ) : CdkObject(cdkObject), + LookbackWindowProperty { /** * The name of the lookback window column. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-columnname) */ - override fun columnName(): String? = unwrap(this).getColumnName() + override fun columnName(): String = unwrap(this).getColumnName() /** * The lookback window column size. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-size) */ - override fun size(): Number? = unwrap(this).getSize() + override fun size(): Number = unwrap(this).getSize() /** * The size unit that is used for the lookback window column. @@ -5906,7 +6010,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-lookbackwindow.html#cfn-quicksight-dataset-lookbackwindow-sizeunit) */ - override fun sizeUnit(): String? = unwrap(this).getSizeUnit() + override fun sizeUnit(): String = unwrap(this).getSizeUnit() } public companion object { @@ -6121,7 +6225,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.NewDefaultValuesProperty, - ) : CdkObject(cdkObject), NewDefaultValuesProperty { + ) : CdkObject(cdkObject), + NewDefaultValuesProperty { /** * A list of static default values for a given date time parameter. * @@ -6286,7 +6391,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.OutputColumnProperty, - ) : CdkObject(cdkObject), OutputColumnProperty { + ) : CdkObject(cdkObject), + OutputColumnProperty { /** * A description for a column. * @@ -6464,7 +6570,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.OverrideDatasetParameterOperationProperty, - ) : CdkObject(cdkObject), OverrideDatasetParameterOperationProperty { + ) : CdkObject(cdkObject), + OverrideDatasetParameterOperationProperty { /** * The new default values for the parameter. * @@ -6723,7 +6830,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.PhysicalTableProperty, - ) : CdkObject(cdkObject), PhysicalTableProperty { + ) : CdkObject(cdkObject), + PhysicalTableProperty { /** * A physical table type built from the results of the custom SQL query. * @@ -6831,7 +6939,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ProjectOperationProperty, - ) : CdkObject(cdkObject), ProjectOperationProperty { + ) : CdkObject(cdkObject), + ProjectOperationProperty { /** * Projected columns. * @@ -6887,7 +6996,7 @@ public open class CfnDataSet( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-refreshconfiguration.html#cfn-quicksight-dataset-refreshconfiguration-incrementalrefresh) */ - public fun incrementalRefresh(): Any? = unwrap(this).getIncrementalRefresh() + public fun incrementalRefresh(): Any /** * A builder for [RefreshConfigurationProperty] @@ -6895,17 +7004,17 @@ public open class CfnDataSet( @CdkDslMarker public interface Builder { /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ public fun incrementalRefresh(incrementalRefresh: IResolvable) /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ public fun incrementalRefresh(incrementalRefresh: IncrementalRefreshProperty) /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4cc1ee90b75ae38ef3dc53f2ef608e46b7e5bb8603b5a23b41319b65fd5c3eed") @@ -6920,21 +7029,21 @@ public open class CfnDataSet( software.amazon.awscdk.services.quicksight.CfnDataSet.RefreshConfigurationProperty.builder() /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ override fun incrementalRefresh(incrementalRefresh: IResolvable) { cdkBuilder.incrementalRefresh(incrementalRefresh.let(IResolvable.Companion::unwrap)) } /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ override fun incrementalRefresh(incrementalRefresh: IncrementalRefreshProperty) { cdkBuilder.incrementalRefresh(incrementalRefresh.let(IncrementalRefreshProperty.Companion::unwrap)) } /** - * @param incrementalRefresh The incremental refresh for the dataset. + * @param incrementalRefresh The incremental refresh for the dataset. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4cc1ee90b75ae38ef3dc53f2ef608e46b7e5bb8603b5a23b41319b65fd5c3eed") @@ -6949,13 +7058,14 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RefreshConfigurationProperty, - ) : CdkObject(cdkObject), RefreshConfigurationProperty { + ) : CdkObject(cdkObject), + RefreshConfigurationProperty { /** * The incremental refresh for the dataset. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-refreshconfiguration.html#cfn-quicksight-dataset-refreshconfiguration-incrementalrefresh) */ - override fun incrementalRefresh(): Any? = unwrap(this).getIncrementalRefresh() + override fun incrementalRefresh(): Any = unwrap(this).getIncrementalRefresh() } public companion object { @@ -7143,7 +7253,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RelationalTableProperty, - ) : CdkObject(cdkObject), RelationalTableProperty { + ) : CdkObject(cdkObject), + RelationalTableProperty { /** * The catalog associated with a table. * @@ -7276,7 +7387,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RenameColumnOperationProperty, - ) : CdkObject(cdkObject), RenameColumnOperationProperty { + ) : CdkObject(cdkObject), + RenameColumnOperationProperty { /** * The name of the column to be renamed. * @@ -7417,7 +7529,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permisions on. * @@ -7630,7 +7743,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RowLevelPermissionDataSetProperty, - ) : CdkObject(cdkObject), RowLevelPermissionDataSetProperty { + ) : CdkObject(cdkObject), + RowLevelPermissionDataSetProperty { /** * The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS. * @@ -7833,7 +7947,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RowLevelPermissionTagConfigurationProperty, - ) : CdkObject(cdkObject), RowLevelPermissionTagConfigurationProperty { + ) : CdkObject(cdkObject), + RowLevelPermissionTagConfigurationProperty { /** * The status of row-level security tags. * @@ -8008,7 +8123,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.RowLevelPermissionTagRuleProperty, - ) : CdkObject(cdkObject), RowLevelPermissionTagRuleProperty { + ) : CdkObject(cdkObject), + RowLevelPermissionTagRuleProperty { /** * The column name that a tag key is assigned to. * @@ -8233,7 +8349,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.S3SourceProperty, - ) : CdkObject(cdkObject), S3SourceProperty { + ) : CdkObject(cdkObject), + S3SourceProperty { /** * The Amazon Resource Name (ARN) for the data source. * @@ -8347,7 +8464,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.StringDatasetParameterDefaultValuesProperty, - ) : CdkObject(cdkObject), StringDatasetParameterDefaultValuesProperty { + ) : CdkObject(cdkObject), + StringDatasetParameterDefaultValuesProperty { /** * A list of static default values for a given string parameter. * @@ -8535,7 +8653,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.StringDatasetParameterProperty, - ) : CdkObject(cdkObject), StringDatasetParameterProperty { + ) : CdkObject(cdkObject), + StringDatasetParameterProperty { /** * A list of default values for a given string dataset parameter type. * @@ -8688,7 +8807,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.TagColumnOperationProperty, - ) : CdkObject(cdkObject), TagColumnOperationProperty { + ) : CdkObject(cdkObject), + TagColumnOperationProperty { /** * The column that this operation acts on. * @@ -8784,6 +8904,10 @@ public open class CfnDataSet( * .columnGeographicRole("columnGeographicRole") * .build())) * .build()) + * .untagColumnOperation(UntagColumnOperationProperty.builder() + * .columnName("columnName") + * .tagNames(List.of("tagNames")) + * .build()) * .build(); * ``` * @@ -8814,7 +8938,7 @@ public open class CfnDataSet( public fun filterOperation(): Any? = unwrap(this).getFilterOperation() /** - * A transform operation that overrides the dataset parameter values defined in another + * A transform operation that overrides the dataset parameter values that are defined in another * dataset.

. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-transformoperation.html#cfn-quicksight-dataset-transformoperation-overridedatasetparameteroperation) @@ -8845,6 +8969,13 @@ public open class CfnDataSet( */ public fun tagColumnOperation(): Any? = unwrap(this).getTagColumnOperation() + /** + * A transform operation that removes tags associated with a column.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-transformoperation.html#cfn-quicksight-dataset-transformoperation-untagcolumnoperation) + */ + public fun untagColumnOperation(): Any? = unwrap(this).getUntagColumnOperation() + /** * A builder for [TransformOperationProperty] */ @@ -8911,20 +9042,20 @@ public open class CfnDataSet( /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ public fun overrideDatasetParameterOperation(overrideDatasetParameterOperation: IResolvable) /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ public fun overrideDatasetParameterOperation(overrideDatasetParameterOperation: OverrideDatasetParameterOperationProperty) /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("21ab89056d9e1abb0f8cde30f2a70da44800cc1d476ede018f934876ae0ddc99") @@ -8986,6 +9117,27 @@ public open class CfnDataSet( @JvmName("ffa3a41a8ce0be3fc3ac48146287259f6da2c6108486e8e158862d9beeae356e") public fun tagColumnOperation(tagColumnOperation: TagColumnOperationProperty.Builder.() -> Unit) + + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + public fun untagColumnOperation(untagColumnOperation: IResolvable) + + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + public fun untagColumnOperation(untagColumnOperation: UntagColumnOperationProperty) + + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77c230a75f2388410075943f971576babee1e5ea1f4e9a30cdaed295742f2b0b") + public + fun untagColumnOperation(untagColumnOperation: UntagColumnOperationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -9070,7 +9222,7 @@ public open class CfnDataSet( /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ override fun overrideDatasetParameterOperation(overrideDatasetParameterOperation: IResolvable) { @@ -9079,7 +9231,7 @@ public open class CfnDataSet( /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ override fun overrideDatasetParameterOperation(overrideDatasetParameterOperation: OverrideDatasetParameterOperationProperty) { @@ -9088,7 +9240,7 @@ public open class CfnDataSet( /** * @param overrideDatasetParameterOperation A transform operation that overrides the dataset - * parameter values defined in another dataset.

. + * parameter values that are defined in another dataset.

. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("21ab89056d9e1abb0f8cde30f2a70da44800cc1d476ede018f934876ae0ddc99") @@ -9168,6 +9320,32 @@ public open class CfnDataSet( fun tagColumnOperation(tagColumnOperation: TagColumnOperationProperty.Builder.() -> Unit): Unit = tagColumnOperation(TagColumnOperationProperty(tagColumnOperation)) + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + override fun untagColumnOperation(untagColumnOperation: IResolvable) { + cdkBuilder.untagColumnOperation(untagColumnOperation.let(IResolvable.Companion::unwrap)) + } + + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + override fun untagColumnOperation(untagColumnOperation: UntagColumnOperationProperty) { + cdkBuilder.untagColumnOperation(untagColumnOperation.let(UntagColumnOperationProperty.Companion::unwrap)) + } + + /** + * @param untagColumnOperation A transform operation that removes tags associated with a + * column.

. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("77c230a75f2388410075943f971576babee1e5ea1f4e9a30cdaed295742f2b0b") + override + fun untagColumnOperation(untagColumnOperation: UntagColumnOperationProperty.Builder.() -> Unit): + Unit = untagColumnOperation(UntagColumnOperationProperty(untagColumnOperation)) + public fun build(): software.amazon.awscdk.services.quicksight.CfnDataSet.TransformOperationProperty = cdkBuilder.build() @@ -9175,7 +9353,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.TransformOperationProperty, - ) : CdkObject(cdkObject), TransformOperationProperty { + ) : CdkObject(cdkObject), + TransformOperationProperty { /** * A transform operation that casts a column to a different type. * @@ -9200,8 +9379,8 @@ public open class CfnDataSet( override fun filterOperation(): Any? = unwrap(this).getFilterOperation() /** - * A transform operation that overrides the dataset parameter values defined in another - * dataset.

. + * A transform operation that overrides the dataset parameter values that are defined in + * another dataset.

. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-transformoperation.html#cfn-quicksight-dataset-transformoperation-overridedatasetparameteroperation) */ @@ -9230,6 +9409,13 @@ public open class CfnDataSet( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-transformoperation.html#cfn-quicksight-dataset-transformoperation-tagcolumnoperation) */ override fun tagColumnOperation(): Any? = unwrap(this).getTagColumnOperation() + + /** + * A transform operation that removes tags associated with a column.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-transformoperation.html#cfn-quicksight-dataset-transformoperation-untagcolumnoperation) + */ + override fun untagColumnOperation(): Any? = unwrap(this).getUntagColumnOperation() } public companion object { @@ -9250,6 +9436,127 @@ public open class CfnDataSet( } } + /** + * A transform operation that removes tags associated with a column. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * UntagColumnOperationProperty untagColumnOperationProperty = + * UntagColumnOperationProperty.builder() + * .columnName("columnName") + * .tagNames(List.of("tagNames")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-untagcolumnoperation.html) + */ + public interface UntagColumnOperationProperty { + /** + * The column that this operation acts on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-untagcolumnoperation.html#cfn-quicksight-dataset-untagcolumnoperation-columnname) + */ + public fun columnName(): String + + /** + * The column tags to remove from this column. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-untagcolumnoperation.html#cfn-quicksight-dataset-untagcolumnoperation-tagnames) + */ + public fun tagNames(): List + + /** + * A builder for [UntagColumnOperationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param columnName The column that this operation acts on. + */ + public fun columnName(columnName: String) + + /** + * @param tagNames The column tags to remove from this column. + */ + public fun tagNames(tagNames: List) + + /** + * @param tagNames The column tags to remove from this column. + */ + public fun tagNames(vararg tagNames: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty.builder() + + /** + * @param columnName The column that this operation acts on. + */ + override fun columnName(columnName: String) { + cdkBuilder.columnName(columnName) + } + + /** + * @param tagNames The column tags to remove from this column. + */ + override fun tagNames(tagNames: List) { + cdkBuilder.tagNames(tagNames) + } + + /** + * @param tagNames The column tags to remove from this column. + */ + override fun tagNames(vararg tagNames: String): Unit = tagNames(tagNames.toList()) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty, + ) : CdkObject(cdkObject), + UntagColumnOperationProperty { + /** + * The column that this operation acts on. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-untagcolumnoperation.html#cfn-quicksight-dataset-untagcolumnoperation-columnname) + */ + override fun columnName(): String = unwrap(this).getColumnName() + + /** + * The column tags to remove from this column. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-untagcolumnoperation.html#cfn-quicksight-dataset-untagcolumnoperation-tagnames) + */ + override fun tagNames(): List = unwrap(this).getTagNames() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): UntagColumnOperationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty): + UntagColumnOperationProperty = CdkObjectWrappers.wrap(cdkObject) as? + UntagColumnOperationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: UntagColumnOperationProperty): + software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDataSet.UntagColumnOperationProperty + } + } + /** * Information about the format for a source file or files. * @@ -9400,7 +9707,8 @@ public open class CfnDataSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSet.UploadSettingsProperty, - ) : CdkObject(cdkObject), UploadSettingsProperty { + ) : CdkObject(cdkObject), + UploadSettingsProperty { /** * Whether the file has a header row, or the files each have a header row. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSetProps.kt index d7641bac63..983a1d4a4b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSetProps.kt @@ -98,6 +98,7 @@ import kotlin.jvm.JvmName * .columns(List.of("columns")) * .description("description") * .build())) + * .folderArns(List.of("folderArns")) * .importMode("importMode") * .ingestionWaitPolicy(IngestionWaitPolicyProperty.builder() * .ingestionWaitTimeInHours(123) @@ -106,23 +107,6 @@ import kotlin.jvm.JvmName * .logicalTableMap(Map.of( * "logicalTableMapKey", LogicalTableProperty.builder() * .alias("alias") - * .source(LogicalTableSourceProperty.builder() - * .dataSetArn("dataSetArn") - * .joinInstruction(JoinInstructionProperty.builder() - * .leftOperand("leftOperand") - * .onClause("onClause") - * .rightOperand("rightOperand") - * .type("type") - * // the properties below are optional - * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() - * .uniqueKey(false) - * .build()) - * .build()) - * .physicalTableId("physicalTableId") - * .build()) * // the properties below are optional * .dataTransforms(List.of(TransformOperationProperty.builder() * .castColumnTypeOperation(CastColumnTypeOperationProperty.builder() @@ -169,7 +153,28 @@ import kotlin.jvm.JvmName * .columnGeographicRole("columnGeographicRole") * .build())) * .build()) + * .untagColumnOperation(UntagColumnOperationProperty.builder() + * .columnName("columnName") + * .tagNames(List.of("tagNames")) + * .build()) * .build())) + * .source(LogicalTableSourceProperty.builder() + * .dataSetArn("dataSetArn") + * .joinInstruction(JoinInstructionProperty.builder() + * .leftOperand("leftOperand") + * .onClause("onClause") + * .rightOperand("rightOperand") + * .type("type") + * // the properties below are optional + * .leftJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .rightJoinKeyProperties(JoinKeyPropertiesProperty.builder() + * .uniqueKey(false) + * .build()) + * .build()) + * .physicalTableId("physicalTableId") + * .build()) * .build())) * .name("name") * .permissions(List.of(ResourcePermissionProperty.builder() @@ -310,6 +315,13 @@ public interface CfnDataSetProps { */ public fun fieldFolders(): Any? = unwrap(this).getFieldFolders() + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + */ + public fun folderArns(): List = unwrap(this).getFolderArns() ?: emptyList() + /** * Indicates whether you want to import the data into SPICE. * @@ -497,6 +509,18 @@ public interface CfnDataSetProps { */ public fun fieldFolders(fieldFolders: Map) + /** + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + public fun folderArns(folderArns: List) + + /** + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + public fun folderArns(vararg folderArns: String) + /** * @param importMode Indicates whether you want to import the data into SPICE. */ @@ -778,6 +802,20 @@ public interface CfnDataSetProps { cdkBuilder.fieldFolders(fieldFolders.mapValues{CdkObjectWrappers.unwrap(it.value)}) } + /** + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + override fun folderArns(folderArns: List) { + cdkBuilder.folderArns(folderArns) + } + + /** + * @param folderArns When you create the dataset, Amazon QuickSight adds the dataset to these + * folders.

. + */ + override fun folderArns(vararg folderArns: String): Unit = folderArns(folderArns.toList()) + /** * @param importMode Indicates whether you want to import the data into SPICE. */ @@ -946,7 +984,8 @@ public interface CfnDataSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSetProps, - ) : CdkObject(cdkObject), CfnDataSetProps { + ) : CdkObject(cdkObject), + CfnDataSetProps { /** * The AWS account ID. * @@ -1007,6 +1046,13 @@ public interface CfnDataSetProps { */ override fun fieldFolders(): Any? = unwrap(this).getFieldFolders() + /** + * When you create the dataset, Amazon QuickSight adds the dataset to these folders.

. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-dataset.html#cfn-quicksight-dataset-folderarns) + */ + override fun folderArns(): List = unwrap(this).getFolderArns() ?: emptyList() + /** * Indicates whether you want to import the data into SPICE. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSource.kt index 4173ea023f..c83139c750 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSource.kt @@ -32,6 +32,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.quicksight.*; * CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource") + * .name("name") + * .type("type") + * // the properties below are optional * .alternateDataSourceParameters(List.of(DataSourceParametersProperty.builder() * .amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder() * .domain("domain") @@ -92,6 +95,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -201,6 +214,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -307,6 +330,16 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -353,10 +386,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .message("message") * .type("type") * .build()) - * .name("name") * .permissions(List.of(ResourcePermissionProperty.builder() * .actions(List.of("actions")) * .principal("principal") + * // the properties below are optional + * .resource("resource") * .build())) * .sslProperties(SslPropertiesProperty.builder() * .disableSsl(false) @@ -365,7 +399,6 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .key("key") * .value("value") * .build())) - * .type("type") * .vpcConnectionProperties(VpcConnectionPropertiesProperty.builder() * .vpcConnectionArn("vpcConnectionArn") * .build()) @@ -376,12 +409,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataSource( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource, -) : CfnResource(cdkObject), IInspectable, ITaggable { - public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : - this(software.amazon.awscdk.services.quicksight.CfnDataSource(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), - id) - ) - +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -565,7 +595,7 @@ public open class CfnDataSource( /** * A display name for the data source. */ - public open fun name(): String? = unwrap(this).getName() + public open fun name(): String = unwrap(this).getName() /** * A display name for the data source. @@ -657,7 +687,7 @@ public open class CfnDataSource( * * To return a list of all data sources, use `ListDataSources` . */ - public open fun type(): String? = unwrap(this).getType() + public open fun type(): String = unwrap(this).getType() /** * The type of the data source. @@ -1420,7 +1450,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.AmazonElasticsearchParametersProperty, - ) : CdkObject(cdkObject), AmazonElasticsearchParametersProperty { + ) : CdkObject(cdkObject), + AmazonElasticsearchParametersProperty { /** * The OpenSearch domain. * @@ -1504,7 +1535,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.AmazonOpenSearchParametersProperty, - ) : CdkObject(cdkObject), AmazonOpenSearchParametersProperty { + ) : CdkObject(cdkObject), + AmazonOpenSearchParametersProperty { /** * The OpenSearch domain. * @@ -1623,7 +1655,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.AthenaParametersProperty, - ) : CdkObject(cdkObject), AthenaParametersProperty { + ) : CdkObject(cdkObject), + AthenaParametersProperty { /** * Use the `RoleArn` structure to override an account-wide role for a specific Athena data * source. @@ -1699,6 +1732,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-auroraparameters.html#cfn-quicksight-datasource-auroraparameters-port) */ public fun port(): Number @@ -1758,7 +1793,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.AuroraParametersProperty, - ) : CdkObject(cdkObject), AuroraParametersProperty { + ) : CdkObject(cdkObject), + AuroraParametersProperty { /** * Database. * @@ -1776,6 +1812,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-auroraparameters.html#cfn-quicksight-datasource-auroraparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -1836,6 +1874,8 @@ public open class CfnDataSource( /** * The port that Amazon Aurora PostgreSQL is listening on. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-aurorapostgresqlparameters.html#cfn-quicksight-datasource-aurorapostgresqlparameters-port) */ public fun port(): Number @@ -1895,7 +1935,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.AuroraPostgreSqlParametersProperty, - ) : CdkObject(cdkObject), AuroraPostgreSqlParametersProperty { + ) : CdkObject(cdkObject), + AuroraPostgreSqlParametersProperty { /** * The Amazon Aurora PostgreSQL database to connect to. * @@ -1913,6 +1954,8 @@ public open class CfnDataSource( /** * The port that Amazon Aurora PostgreSQL is listening on. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-aurorapostgresqlparameters.html#cfn-quicksight-datasource-aurorapostgresqlparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -2010,6 +2053,16 @@ public open class CfnDataSource( * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -2213,7 +2266,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.CredentialPairProperty, - ) : CdkObject(cdkObject), CredentialPairProperty { + ) : CdkObject(cdkObject), + CredentialPairProperty { /** * A set of alternate data source parameters that you want to share for these credentials. * @@ -2342,6 +2396,16 @@ public open class CfnDataSource( * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -2530,7 +2594,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.DataSourceCredentialsProperty, - ) : CdkObject(cdkObject), DataSourceCredentialsProperty { + ) : CdkObject(cdkObject), + DataSourceCredentialsProperty { /** * The Amazon Resource Name (ARN) of a data source that has the credential pair that you want * to use. @@ -2655,7 +2720,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.DataSourceErrorInfoProperty, - ) : CdkObject(cdkObject), DataSourceErrorInfoProperty { + ) : CdkObject(cdkObject), + DataSourceErrorInfoProperty { /** * Error message. * @@ -2762,6 +2828,16 @@ public open class CfnDataSource( * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -3791,7 +3867,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.DataSourceParametersProperty, - ) : CdkObject(cdkObject), DataSourceParametersProperty { + ) : CdkObject(cdkObject), + DataSourceParametersProperty { /** * The parameters for OpenSearch. * @@ -3982,6 +4059,8 @@ public open class CfnDataSource( /** * The port for the Databricks data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-databricksparameters.html#cfn-quicksight-datasource-databricksparameters-port) */ public fun port(): Number @@ -4048,7 +4127,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.DatabricksParametersProperty, - ) : CdkObject(cdkObject), DatabricksParametersProperty { + ) : CdkObject(cdkObject), + DatabricksParametersProperty { /** * The host name of the Databricks data source. * @@ -4059,6 +4139,8 @@ public open class CfnDataSource( /** * The port for the Databricks data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-databricksparameters.html#cfn-quicksight-datasource-databricksparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4089,6 +4171,107 @@ public open class CfnDataSource( } } + /** + * The parameters for an IAM Identity Center configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * IdentityCenterConfigurationProperty identityCenterConfigurationProperty = + * IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-identitycenterconfiguration.html) + */ + public interface IdentityCenterConfigurationProperty { + /** + * A Boolean option that controls whether Trusted Identity Propagation should be used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-identitycenterconfiguration.html#cfn-quicksight-datasource-identitycenterconfiguration-enableidentitypropagation) + */ + public fun enableIdentityPropagation(): Any? = unwrap(this).getEnableIdentityPropagation() + + /** + * A builder for [IdentityCenterConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enableIdentityPropagation A Boolean option that controls whether Trusted Identity + * Propagation should be used. + */ + public fun enableIdentityPropagation(enableIdentityPropagation: Boolean) + + /** + * @param enableIdentityPropagation A Boolean option that controls whether Trusted Identity + * Propagation should be used. + */ + public fun enableIdentityPropagation(enableIdentityPropagation: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty.builder() + + /** + * @param enableIdentityPropagation A Boolean option that controls whether Trusted Identity + * Propagation should be used. + */ + override fun enableIdentityPropagation(enableIdentityPropagation: Boolean) { + cdkBuilder.enableIdentityPropagation(enableIdentityPropagation) + } + + /** + * @param enableIdentityPropagation A Boolean option that controls whether Trusted Identity + * Propagation should be used. + */ + override fun enableIdentityPropagation(enableIdentityPropagation: IResolvable) { + cdkBuilder.enableIdentityPropagation(enableIdentityPropagation.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty, + ) : CdkObject(cdkObject), + IdentityCenterConfigurationProperty { + /** + * A Boolean option that controls whether Trusted Identity Propagation should be used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-identitycenterconfiguration.html#cfn-quicksight-datasource-identitycenterconfiguration-enableidentitypropagation) + */ + override fun enableIdentityPropagation(): Any? = unwrap(this).getEnableIdentityPropagation() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IdentityCenterConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty): + IdentityCenterConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + IdentityCenterConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdentityCenterConfigurationProperty): + software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDataSource.IdentityCenterConfigurationProperty + } + } + /** * Amazon S3 manifest file location. * @@ -4165,7 +4348,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.ManifestFileLocationProperty, - ) : CdkObject(cdkObject), ManifestFileLocationProperty { + ) : CdkObject(cdkObject), + ManifestFileLocationProperty { /** * Amazon S3 bucket. * @@ -4235,6 +4419,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-mariadbparameters.html#cfn-quicksight-datasource-mariadbparameters-port) */ public fun port(): Number @@ -4294,7 +4480,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.MariaDbParametersProperty, - ) : CdkObject(cdkObject), MariaDbParametersProperty { + ) : CdkObject(cdkObject), + MariaDbParametersProperty { /** * Database. * @@ -4312,6 +4499,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-mariadbparameters.html#cfn-quicksight-datasource-mariadbparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4371,6 +4560,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-mysqlparameters.html#cfn-quicksight-datasource-mysqlparameters-port) */ public fun port(): Number @@ -4429,7 +4620,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.MySqlParametersProperty, - ) : CdkObject(cdkObject), MySqlParametersProperty { + ) : CdkObject(cdkObject), + MySqlParametersProperty { /** * Database. * @@ -4447,6 +4639,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-mysqlparameters.html#cfn-quicksight-datasource-mysqlparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4506,6 +4700,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-oracleparameters.html#cfn-quicksight-datasource-oracleparameters-port) */ public fun port(): Number @@ -4565,7 +4761,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.OracleParametersProperty, - ) : CdkObject(cdkObject), OracleParametersProperty { + ) : CdkObject(cdkObject), + OracleParametersProperty { /** * Database. * @@ -4583,6 +4780,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-oracleparameters.html#cfn-quicksight-datasource-oracleparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4643,6 +4842,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-postgresqlparameters.html#cfn-quicksight-datasource-postgresqlparameters-port) */ public fun port(): Number @@ -4702,7 +4903,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.PostgreSqlParametersProperty, - ) : CdkObject(cdkObject), PostgreSqlParametersProperty { + ) : CdkObject(cdkObject), + PostgreSqlParametersProperty { /** * Database. * @@ -4720,6 +4922,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-postgresqlparameters.html#cfn-quicksight-datasource-postgresqlparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4779,6 +4983,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-prestoparameters.html#cfn-quicksight-datasource-prestoparameters-port) */ public fun port(): Number @@ -4838,7 +5044,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.PrestoParametersProperty, - ) : CdkObject(cdkObject), PrestoParametersProperty { + ) : CdkObject(cdkObject), + PrestoParametersProperty { /** * Catalog. * @@ -4856,6 +5063,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-prestoparameters.html#cfn-quicksight-datasource-prestoparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -4953,7 +5162,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.RdsParametersProperty, - ) : CdkObject(cdkObject), RdsParametersProperty { + ) : CdkObject(cdkObject), + RdsParametersProperty { /** * Database. * @@ -4987,6 +5197,291 @@ public open class CfnDataSource( } } + /** + * A structure that grants Amazon QuickSight access to your cluster and make a call to the + * `redshift:GetClusterCredentials` API. + * + * For more information on the `redshift:GetClusterCredentials` API, see + * [`GetClusterCredentials`](https://docs.aws.amazon.com/redshift/latest/APIReference/API_GetClusterCredentials.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * RedshiftIAMParametersProperty redshiftIAMParametersProperty = + * RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html) + */ + public interface RedshiftIAMParametersProperty { + /** + * Automatically creates a database user. + * + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you use + * for this operation must grant access to `redshift:CreateClusterUser` to successfully create the + * user. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-autocreatedatabaseuser) + */ + public fun autoCreateDatabaseUser(): Any? = unwrap(this).getAutoCreateDatabaseUser() + + /** + * A list of groups whose permissions will be granted to Amazon QuickSight to access the + * cluster. + * + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-databasegroups) + */ + public fun databaseGroups(): List = unwrap(this).getDatabaseGroups() ?: emptyList() + + /** + * The user whose permissions and group memberships will be used by Amazon QuickSight to access + * the cluster. + * + * If this user already exists in your database, Amazon QuickSight is granted the same + * permissions that the user has. If the user doesn't exist, set the value of + * `AutoCreateDatabaseUser` to `True` to create a new user with PUBLIC permissions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-databaseuser) + */ + public fun databaseUser(): String? = unwrap(this).getDatabaseUser() + + /** + * Use the `RoleArn` structure to allow Amazon QuickSight to call + * `redshift:GetClusterCredentials` on your cluster. + * + * The calling principal must have `iam:PassRole` access to pass the role to Amazon QuickSight. + * The role's trust policy must allow the Amazon QuickSight service principal to assume the role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-rolearn) + */ + public fun roleArn(): String + + /** + * A builder for [RedshiftIAMParametersProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param autoCreateDatabaseUser Automatically creates a database user. + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you + * use for this operation must grant access to `redshift:CreateClusterUser` to successfully + * create the user. + */ + public fun autoCreateDatabaseUser(autoCreateDatabaseUser: Boolean) + + /** + * @param autoCreateDatabaseUser Automatically creates a database user. + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you + * use for this operation must grant access to `redshift:CreateClusterUser` to successfully + * create the user. + */ + public fun autoCreateDatabaseUser(autoCreateDatabaseUser: IResolvable) + + /** + * @param databaseGroups A list of groups whose permissions will be granted to Amazon + * QuickSight to access the cluster. + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + */ + public fun databaseGroups(databaseGroups: List) + + /** + * @param databaseGroups A list of groups whose permissions will be granted to Amazon + * QuickSight to access the cluster. + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + */ + public fun databaseGroups(vararg databaseGroups: String) + + /** + * @param databaseUser The user whose permissions and group memberships will be used by Amazon + * QuickSight to access the cluster. + * If this user already exists in your database, Amazon QuickSight is granted the same + * permissions that the user has. If the user doesn't exist, set the value of + * `AutoCreateDatabaseUser` to `True` to create a new user with PUBLIC permissions. + */ + public fun databaseUser(databaseUser: String) + + /** + * @param roleArn Use the `RoleArn` structure to allow Amazon QuickSight to call + * `redshift:GetClusterCredentials` on your cluster. + * The calling principal must have `iam:PassRole` access to pass the role to Amazon + * QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to + * assume the role. + */ + public fun roleArn(roleArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty.builder() + + /** + * @param autoCreateDatabaseUser Automatically creates a database user. + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you + * use for this operation must grant access to `redshift:CreateClusterUser` to successfully + * create the user. + */ + override fun autoCreateDatabaseUser(autoCreateDatabaseUser: Boolean) { + cdkBuilder.autoCreateDatabaseUser(autoCreateDatabaseUser) + } + + /** + * @param autoCreateDatabaseUser Automatically creates a database user. + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you + * use for this operation must grant access to `redshift:CreateClusterUser` to successfully + * create the user. + */ + override fun autoCreateDatabaseUser(autoCreateDatabaseUser: IResolvable) { + cdkBuilder.autoCreateDatabaseUser(autoCreateDatabaseUser.let(IResolvable.Companion::unwrap)) + } + + /** + * @param databaseGroups A list of groups whose permissions will be granted to Amazon + * QuickSight to access the cluster. + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + */ + override fun databaseGroups(databaseGroups: List) { + cdkBuilder.databaseGroups(databaseGroups) + } + + /** + * @param databaseGroups A list of groups whose permissions will be granted to Amazon + * QuickSight to access the cluster. + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + */ + override fun databaseGroups(vararg databaseGroups: String): Unit = + databaseGroups(databaseGroups.toList()) + + /** + * @param databaseUser The user whose permissions and group memberships will be used by Amazon + * QuickSight to access the cluster. + * If this user already exists in your database, Amazon QuickSight is granted the same + * permissions that the user has. If the user doesn't exist, set the value of + * `AutoCreateDatabaseUser` to `True` to create a new user with PUBLIC permissions. + */ + override fun databaseUser(databaseUser: String) { + cdkBuilder.databaseUser(databaseUser) + } + + /** + * @param roleArn Use the `RoleArn` structure to allow Amazon QuickSight to call + * `redshift:GetClusterCredentials` on your cluster. + * The calling principal must have `iam:PassRole` access to pass the role to Amazon + * QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to + * assume the role. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty, + ) : CdkObject(cdkObject), + RedshiftIAMParametersProperty { + /** + * Automatically creates a database user. + * + * If your database doesn't have a `DatabaseUser` , set this parameter to `True` . If there is + * no `DatabaseUser` , Amazon QuickSight can't connect to your cluster. The `RoleArn` that you + * use for this operation must grant access to `redshift:CreateClusterUser` to successfully + * create the user. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-autocreatedatabaseuser) + */ + override fun autoCreateDatabaseUser(): Any? = unwrap(this).getAutoCreateDatabaseUser() + + /** + * A list of groups whose permissions will be granted to Amazon QuickSight to access the + * cluster. + * + * These permissions are combined with the permissions granted to Amazon QuickSight by the + * `DatabaseUser` . If you choose to include this parameter, the `RoleArn` must grant access to + * `redshift:JoinGroup` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-databasegroups) + */ + override fun databaseGroups(): List = unwrap(this).getDatabaseGroups() ?: emptyList() + + /** + * The user whose permissions and group memberships will be used by Amazon QuickSight to + * access the cluster. + * + * If this user already exists in your database, Amazon QuickSight is granted the same + * permissions that the user has. If the user doesn't exist, set the value of + * `AutoCreateDatabaseUser` to `True` to create a new user with PUBLIC permissions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-databaseuser) + */ + override fun databaseUser(): String? = unwrap(this).getDatabaseUser() + + /** + * Use the `RoleArn` structure to allow Amazon QuickSight to call + * `redshift:GetClusterCredentials` on your cluster. + * + * The calling principal must have `iam:PassRole` access to pass the role to Amazon + * QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to + * assume the role. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftiamparameters.html#cfn-quicksight-datasource-redshiftiamparameters-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RedshiftIAMParametersProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty): + RedshiftIAMParametersProperty = CdkObjectWrappers.wrap(cdkObject) as? + RedshiftIAMParametersProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RedshiftIAMParametersProperty): + software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty + } + } + /** * The parameters for Amazon Redshift. * @@ -5004,6 +5499,16 @@ public open class CfnDataSource( * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build(); * ``` @@ -5036,11 +5541,36 @@ public open class CfnDataSource( */ public fun host(): String? = unwrap(this).getHost() + /** + * An optional parameter that uses IAM authentication to grant Amazon QuickSight access to your + * cluster. + * + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-iamparameters) + */ + public fun iamParameters(): Any? = unwrap(this).getIamParameters() + + /** + * An optional parameter that configures IAM Identity Center authentication to grant Amazon + * QuickSight access to your cluster. + * + * This parameter can only be specified if your Amazon QuickSight account is configured with IAM + * Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-identitycenterconfiguration) + */ + public fun identityCenterConfiguration(): Any? = unwrap(this).getIdentityCenterConfiguration() + /** * Port. * * This field can be blank if the `ClusterId` is provided. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-port) */ public fun port(): Number? = unwrap(this).getPort() @@ -5067,6 +5597,63 @@ public open class CfnDataSource( */ public fun host(host: String) + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + public fun iamParameters(iamParameters: IResolvable) + + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + public fun iamParameters(iamParameters: RedshiftIAMParametersProperty) + + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6a84ef3a43bd410c2693e156092f9ab0557a2c94286ba1f88108224cd86e787") + public fun iamParameters(iamParameters: RedshiftIAMParametersProperty.Builder.() -> Unit) + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + public fun identityCenterConfiguration(identityCenterConfiguration: IResolvable) + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + public + fun identityCenterConfiguration(identityCenterConfiguration: IdentityCenterConfigurationProperty) + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a1e4977817c6bfc222d9805acacab6877847eb2b72e2849d1df07778dbde4765") + public + fun identityCenterConfiguration(identityCenterConfiguration: IdentityCenterConfigurationProperty.Builder.() -> Unit) + /** * @param port Port. * This field can be blank if the `ClusterId` is provided. @@ -5103,6 +5690,74 @@ public open class CfnDataSource( cdkBuilder.host(host) } + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + override fun iamParameters(iamParameters: IResolvable) { + cdkBuilder.iamParameters(iamParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + override fun iamParameters(iamParameters: RedshiftIAMParametersProperty) { + cdkBuilder.iamParameters(iamParameters.let(RedshiftIAMParametersProperty.Companion::unwrap)) + } + + /** + * @param iamParameters An optional parameter that uses IAM authentication to grant Amazon + * QuickSight access to your cluster. + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a6a84ef3a43bd410c2693e156092f9ab0557a2c94286ba1f88108224cd86e787") + override fun iamParameters(iamParameters: RedshiftIAMParametersProperty.Builder.() -> Unit): + Unit = iamParameters(RedshiftIAMParametersProperty(iamParameters)) + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + override fun identityCenterConfiguration(identityCenterConfiguration: IResolvable) { + cdkBuilder.identityCenterConfiguration(identityCenterConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + override + fun identityCenterConfiguration(identityCenterConfiguration: IdentityCenterConfigurationProperty) { + cdkBuilder.identityCenterConfiguration(identityCenterConfiguration.let(IdentityCenterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param identityCenterConfiguration An optional parameter that configures IAM Identity + * Center authentication to grant Amazon QuickSight access to your cluster. + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a1e4977817c6bfc222d9805acacab6877847eb2b72e2849d1df07778dbde4765") + override + fun identityCenterConfiguration(identityCenterConfiguration: IdentityCenterConfigurationProperty.Builder.() -> Unit): + Unit = + identityCenterConfiguration(IdentityCenterConfigurationProperty(identityCenterConfiguration)) + /** * @param port Port. * This field can be blank if the `ClusterId` is provided. @@ -5118,7 +5773,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftParametersProperty, - ) : CdkObject(cdkObject), RedshiftParametersProperty { + ) : CdkObject(cdkObject), + RedshiftParametersProperty { /** * Cluster ID. * @@ -5144,11 +5800,37 @@ public open class CfnDataSource( */ override fun host(): String? = unwrap(this).getHost() + /** + * An optional parameter that uses IAM authentication to grant Amazon QuickSight access to + * your cluster. + * + * This parameter can be used instead of + * [DataSourceCredentials](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSourceCredentials.html) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-iamparameters) + */ + override fun iamParameters(): Any? = unwrap(this).getIamParameters() + + /** + * An optional parameter that configures IAM Identity Center authentication to grant Amazon + * QuickSight access to your cluster. + * + * This parameter can only be specified if your Amazon QuickSight account is configured with + * IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-identitycenterconfiguration) + */ + override fun identityCenterConfiguration(): Any? = + unwrap(this).getIdentityCenterConfiguration() + /** * Port. * * This field can be blank if the `ClusterId` is provided. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-redshiftparameters.html#cfn-quicksight-datasource-redshiftparameters-port) */ override fun port(): Number? = unwrap(this).getPort() @@ -5184,6 +5866,8 @@ public open class CfnDataSource( * ResourcePermissionProperty resourcePermissionProperty = ResourcePermissionProperty.builder() * .actions(List.of("actions")) * .principal("principal") + * // the properties below are optional + * .resource("resource") * .build(); * ``` * @@ -5211,6 +5895,11 @@ public open class CfnDataSource( */ public fun principal(): String + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-resourcepermission.html#cfn-quicksight-datasource-resourcepermission-resource) + */ + public fun resource(): String? = unwrap(this).getResource() + /** * A builder for [ResourcePermissionProperty] */ @@ -5238,6 +5927,11 @@ public open class CfnDataSource( * common.) */ public fun principal(principal: String) + + /** + * @param resource the value to be set. + */ + public fun resource(resource: String) } private class BuilderImpl : Builder { @@ -5273,6 +5967,13 @@ public open class CfnDataSource( cdkBuilder.principal(principal) } + /** + * @param resource the value to be set. + */ + override fun resource(resource: String) { + cdkBuilder.resource(resource) + } + public fun build(): software.amazon.awscdk.services.quicksight.CfnDataSource.ResourcePermissionProperty = cdkBuilder.build() @@ -5280,7 +5981,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permissions on. * @@ -5302,6 +6004,11 @@ public open class CfnDataSource( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-resourcepermission.html#cfn-quicksight-datasource-resourcepermission-principal) */ override fun principal(): String = unwrap(this).getPrincipal() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-resourcepermission.html#cfn-quicksight-datasource-resourcepermission-resource) + */ + override fun resource(): String? = unwrap(this).getResource() } public companion object { @@ -5452,7 +6159,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.S3ParametersProperty, - ) : CdkObject(cdkObject), S3ParametersProperty { + ) : CdkObject(cdkObject), + S3ParametersProperty { /** * Location of the Amazon S3 manifest file. * @@ -5588,7 +6296,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.SnowflakeParametersProperty, - ) : CdkObject(cdkObject), SnowflakeParametersProperty { + ) : CdkObject(cdkObject), + SnowflakeParametersProperty { /** * Database. * @@ -5657,6 +6366,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sparkparameters.html#cfn-quicksight-datasource-sparkparameters-port) */ public fun port(): Number @@ -5703,7 +6414,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.SparkParametersProperty, - ) : CdkObject(cdkObject), SparkParametersProperty { + ) : CdkObject(cdkObject), + SparkParametersProperty { /** * Host. * @@ -5714,6 +6426,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sparkparameters.html#cfn-quicksight-datasource-sparkparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -5773,6 +6487,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sqlserverparameters.html#cfn-quicksight-datasource-sqlserverparameters-port) */ public fun port(): Number @@ -5832,7 +6548,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.SqlServerParametersProperty, - ) : CdkObject(cdkObject), SqlServerParametersProperty { + ) : CdkObject(cdkObject), + SqlServerParametersProperty { /** * Database. * @@ -5850,6 +6567,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sqlserverparameters.html#cfn-quicksight-datasource-sqlserverparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -5894,6 +6613,8 @@ public open class CfnDataSource( /** * A Boolean option to control whether SSL should be disabled. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sslproperties.html#cfn-quicksight-datasource-sslproperties-disablessl) */ public fun disableSsl(): Any? = unwrap(this).getDisableSsl() @@ -5940,10 +6661,13 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.SslPropertiesProperty, - ) : CdkObject(cdkObject), SslPropertiesProperty { + ) : CdkObject(cdkObject), + SslPropertiesProperty { /** * A Boolean option to control whether SSL should be disabled. * + * Default: - false + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sslproperties.html#cfn-quicksight-datasource-sslproperties-disablessl) */ override fun disableSsl(): Any? = unwrap(this).getDisableSsl() @@ -6005,6 +6729,8 @@ public open class CfnDataSource( /** * The port for the Starburst data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-starburstparameters.html#cfn-quicksight-datasource-starburstparameters-port) */ public fun port(): Number @@ -6083,7 +6809,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.StarburstParametersProperty, - ) : CdkObject(cdkObject), StarburstParametersProperty { + ) : CdkObject(cdkObject), + StarburstParametersProperty { /** * The catalog name for the Starburst data source. * @@ -6101,6 +6828,8 @@ public open class CfnDataSource( /** * The port for the Starburst data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-starburstparameters.html#cfn-quicksight-datasource-starburstparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -6167,6 +6896,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-teradataparameters.html#cfn-quicksight-datasource-teradataparameters-port) */ public fun port(): Number @@ -6226,7 +6957,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.TeradataParametersProperty, - ) : CdkObject(cdkObject), TeradataParametersProperty { + ) : CdkObject(cdkObject), + TeradataParametersProperty { /** * Database. * @@ -6244,6 +6976,8 @@ public open class CfnDataSource( /** * Port. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-teradataparameters.html#cfn-quicksight-datasource-teradataparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -6303,6 +7037,8 @@ public open class CfnDataSource( /** * The port for the Trino data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-trinoparameters.html#cfn-quicksight-datasource-trinoparameters-port) */ public fun port(): Number @@ -6361,7 +7097,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.TrinoParametersProperty, - ) : CdkObject(cdkObject), TrinoParametersProperty { + ) : CdkObject(cdkObject), + TrinoParametersProperty { /** * The catalog name for the Trino data source. * @@ -6379,6 +7116,8 @@ public open class CfnDataSource( /** * The port for the Trino data source. * + * Default: - 0 + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-trinoparameters.html#cfn-quicksight-datasource-trinoparameters-port) */ override fun port(): Number = unwrap(this).getPort() @@ -6458,7 +7197,8 @@ public open class CfnDataSource( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSource.VpcConnectionPropertiesProperty, - ) : CdkObject(cdkObject), VpcConnectionPropertiesProperty { + ) : CdkObject(cdkObject), + VpcConnectionPropertiesProperty { /** * The Amazon Resource Name (ARN) for the VPC connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSourceProps.kt index 2fb1cda3c6..14f8dd5242 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnDataSourceProps.kt @@ -23,6 +23,9 @@ import kotlin.jvm.JvmName * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.quicksight.*; * CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder() + * .name("name") + * .type("type") + * // the properties below are optional * .alternateDataSourceParameters(List.of(DataSourceParametersProperty.builder() * .amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder() * .domain("domain") @@ -83,6 +86,16 @@ import kotlin.jvm.JvmName * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -192,6 +205,16 @@ import kotlin.jvm.JvmName * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -298,6 +321,16 @@ import kotlin.jvm.JvmName * // the properties below are optional * .clusterId("clusterId") * .host("host") + * .iamParameters(RedshiftIAMParametersProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .autoCreateDatabaseUser(false) + * .databaseGroups(List.of("databaseGroups")) + * .databaseUser("databaseUser") + * .build()) + * .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder() + * .enableIdentityPropagation(false) + * .build()) * .port(123) * .build()) * .s3Parameters(S3ParametersProperty.builder() @@ -344,10 +377,11 @@ import kotlin.jvm.JvmName * .message("message") * .type("type") * .build()) - * .name("name") * .permissions(List.of(ResourcePermissionProperty.builder() * .actions(List.of("actions")) * .principal("principal") + * // the properties below are optional + * .resource("resource") * .build())) * .sslProperties(SslPropertiesProperty.builder() * .disableSsl(false) @@ -356,7 +390,6 @@ import kotlin.jvm.JvmName * .key("key") * .value("value") * .build())) - * .type("type") * .vpcConnectionProperties(VpcConnectionPropertiesProperty.builder() * .vpcConnectionArn("vpcConnectionArn") * .build()) @@ -425,7 +458,7 @@ public interface CfnDataSourceProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-datasource.html#cfn-quicksight-datasource-name) */ - public fun name(): String? = unwrap(this).getName() + public fun name(): String /** * A list of resource permissions on the data source. @@ -456,7 +489,7 @@ public interface CfnDataSourceProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-datasource.html#cfn-quicksight-datasource-type) */ - public fun type(): String? = unwrap(this).getType() + public fun type(): String /** * Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting @@ -585,7 +618,7 @@ public interface CfnDataSourceProps { public fun errorInfo(errorInfo: CfnDataSource.DataSourceErrorInfoProperty.Builder.() -> Unit) /** - * @param name A display name for the data source. + * @param name A display name for the data source. */ public fun name(name: String) @@ -638,7 +671,7 @@ public interface CfnDataSourceProps { /** * @param type The type of the data source. To return a list of all data sources, use - * `ListDataSources` . + * `ListDataSources` . * Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service. */ public fun type(type: String) @@ -809,7 +842,7 @@ public interface CfnDataSourceProps { Unit = errorInfo(CfnDataSource.DataSourceErrorInfoProperty(errorInfo)) /** - * @param name A display name for the data source. + * @param name A display name for the data source. */ override fun name(name: String) { cdkBuilder.name(name) @@ -876,7 +909,7 @@ public interface CfnDataSourceProps { /** * @param type The type of the data source. To return a list of all data sources, use - * `ListDataSources` . + * `ListDataSources` . * Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service. */ override fun type(type: String) { @@ -917,7 +950,8 @@ public interface CfnDataSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnDataSourceProps, - ) : CdkObject(cdkObject), CfnDataSourceProps { + ) : CdkObject(cdkObject), + CfnDataSourceProps { /** * A set of alternate data source parameters that you want to share for the credentials stored * with this data source. @@ -979,7 +1013,7 @@ public interface CfnDataSourceProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-datasource.html#cfn-quicksight-datasource-name) */ - override fun name(): String? = unwrap(this).getName() + override fun name(): String = unwrap(this).getName() /** * A list of resource permissions on the data source. @@ -1011,7 +1045,7 @@ public interface CfnDataSourceProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-datasource.html#cfn-quicksight-datasource-type) */ - override fun type(): String? = unwrap(this).getType() + override fun type(): String = unwrap(this).getType() /** * Use this parameter only when you want Amazon QuickSight to use a VPC connection when diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshSchedule.kt index 36fe3826d9..1ffe831d8b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshSchedule.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRefreshSchedule( cdkObject: software.amazon.awscdk.services.quicksight.CfnRefreshSchedule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.quicksight.CfnRefreshSchedule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -351,7 +352,8 @@ public open class CfnRefreshSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnRefreshSchedule.RefreshOnDayProperty, - ) : CdkObject(cdkObject), RefreshOnDayProperty { + ) : CdkObject(cdkObject), + RefreshOnDayProperty { /** * The day of the month that you want your dataset to refresh. * @@ -567,7 +569,8 @@ public open class CfnRefreshSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnRefreshSchedule.RefreshScheduleMapProperty, - ) : CdkObject(cdkObject), RefreshScheduleMapProperty { + ) : CdkObject(cdkObject), + RefreshScheduleMapProperty { /** * The type of refresh that a dataset undergoes. Valid values are as follows:. * @@ -816,7 +819,8 @@ public open class CfnRefreshSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnRefreshSchedule.ScheduleFrequencyProperty, - ) : CdkObject(cdkObject), ScheduleFrequencyProperty { + ) : CdkObject(cdkObject), + ScheduleFrequencyProperty { /** * The interval between scheduled refreshes. Valid values are as follows:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshScheduleProps.kt index d9e768348e..62426ed894 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnRefreshScheduleProps.kt @@ -145,7 +145,8 @@ public interface CfnRefreshScheduleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnRefreshScheduleProps, - ) : CdkObject(cdkObject), CfnRefreshScheduleProps { + ) : CdkObject(cdkObject), + CfnRefreshScheduleProps { /** * The AWS account ID of the account that you are creating a schedule in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplate.kt index 264e8e5c04..231e805648 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplate.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTemplate( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1006,7 +1008,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AggregationFunctionProperty, - ) : CdkObject(cdkObject), AggregationFunctionProperty { + ) : CdkObject(cdkObject), + AggregationFunctionProperty { /** * Aggregation for attributes. * @@ -1241,7 +1244,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AggregationSortConfigurationProperty, - ) : CdkObject(cdkObject), AggregationSortConfigurationProperty { + ) : CdkObject(cdkObject), + AggregationSortConfigurationProperty { /** * The function that aggregates the values in `Column` . * @@ -1408,7 +1412,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AnalysisDefaultsProperty, - ) : CdkObject(cdkObject), AnalysisDefaultsProperty { + ) : CdkObject(cdkObject), + AnalysisDefaultsProperty { /** * The configuration for default new sheet settings. * @@ -1520,7 +1525,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AnchorDateConfigurationProperty, - ) : CdkObject(cdkObject), AnchorDateConfigurationProperty { + ) : CdkObject(cdkObject), + AnchorDateConfigurationProperty { /** * The options for the date configuration. Choose one of the options below:. * @@ -1664,7 +1670,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ArcAxisConfigurationProperty, - ) : CdkObject(cdkObject), ArcAxisConfigurationProperty { + ) : CdkObject(cdkObject), + ArcAxisConfigurationProperty { /** * The arc axis range of a `GaugeChartVisual` . * @@ -1775,7 +1782,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ArcAxisDisplayRangeProperty, - ) : CdkObject(cdkObject), ArcAxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + ArcAxisDisplayRangeProperty { /** * The maximum value of the arc axis range. * @@ -1883,7 +1891,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ArcConfigurationProperty, - ) : CdkObject(cdkObject), ArcConfigurationProperty { + ) : CdkObject(cdkObject), + ArcConfigurationProperty { /** * The option that determines the arc angle of a `GaugeChartVisual` . * @@ -1970,7 +1979,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ArcOptionsProperty, - ) : CdkObject(cdkObject), ArcOptionsProperty { + ) : CdkObject(cdkObject), + ArcOptionsProperty { /** * The arc thickness of a `GaugeChartVisual` . * @@ -2071,7 +2081,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AssetOptionsProperty, - ) : CdkObject(cdkObject), AssetOptionsProperty { + ) : CdkObject(cdkObject), + AssetOptionsProperty { /** * Determines the timezone for the analysis. * @@ -2194,7 +2205,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AttributeAggregationFunctionProperty, - ) : CdkObject(cdkObject), AttributeAggregationFunctionProperty { + ) : CdkObject(cdkObject), + AttributeAggregationFunctionProperty { /** * The built-in aggregation functions for attributes. * @@ -2389,7 +2401,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisDataOptionsProperty, - ) : CdkObject(cdkObject), AxisDataOptionsProperty { + ) : CdkObject(cdkObject), + AxisDataOptionsProperty { /** * The options for an axis with a date field. * @@ -2499,7 +2512,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisDisplayMinMaxRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayMinMaxRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayMinMaxRangeProperty { /** * The maximum setup for an axis display range. * @@ -2820,7 +2834,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), AxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + AxisDisplayOptionsProperty { /** * Determines whether or not the axis line is visible. * @@ -2991,7 +3006,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisDisplayRangeProperty, - ) : CdkObject(cdkObject), AxisDisplayRangeProperty { + ) : CdkObject(cdkObject), + AxisDisplayRangeProperty { /** * The data-driven setup of an axis display range. * @@ -3192,7 +3208,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelOptionsProperty { /** * The options that indicate which field the label belongs to. * @@ -3339,7 +3356,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisLabelReferenceOptionsProperty, - ) : CdkObject(cdkObject), AxisLabelReferenceOptionsProperty { + ) : CdkObject(cdkObject), + AxisLabelReferenceOptionsProperty { /** * The column that the axis label is targeted to. * @@ -3451,7 +3469,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisLinearScaleProperty, - ) : CdkObject(cdkObject), AxisLinearScaleProperty { + ) : CdkObject(cdkObject), + AxisLinearScaleProperty { /** * The step count setup of a linear axis. * @@ -3541,7 +3560,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisLogarithmicScaleProperty, - ) : CdkObject(cdkObject), AxisLogarithmicScaleProperty { + ) : CdkObject(cdkObject), + AxisLogarithmicScaleProperty { /** * The base setup of a logarithmic axis scale. * @@ -3703,7 +3723,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisScaleProperty, - ) : CdkObject(cdkObject), AxisScaleProperty { + ) : CdkObject(cdkObject), + AxisScaleProperty { /** * The linear axis scale setup. * @@ -3854,7 +3875,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.AxisTickLabelOptionsProperty, - ) : CdkObject(cdkObject), AxisTickLabelOptionsProperty { + ) : CdkObject(cdkObject), + AxisTickLabelOptionsProperty { /** * Determines whether or not the axis ticks are visible. * @@ -4091,7 +4113,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartAggregatedFieldWellsProperty { /** * The category (y-axis) field well of a bar chart. * @@ -4916,7 +4939,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BarChartConfigurationProperty, - ) : CdkObject(cdkObject), BarChartConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartConfigurationProperty { /** * Determines the arrangement of the bars. * @@ -5144,7 +5168,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BarChartFieldWellsProperty, - ) : CdkObject(cdkObject), BarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + BarChartFieldWellsProperty { /** * The aggregated field wells of a bar chart. * @@ -5583,7 +5608,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), BarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + BarChartSortConfigurationProperty { /** * The limit on the number of categories displayed in a bar chart. * @@ -5945,7 +5971,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BarChartVisualProperty, - ) : CdkObject(cdkObject), BarChartVisualProperty { + ) : CdkObject(cdkObject), + BarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -6064,7 +6091,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BinCountOptionsProperty, - ) : CdkObject(cdkObject), BinCountOptionsProperty { + ) : CdkObject(cdkObject), + BinCountOptionsProperty { /** * The options that determine the bin count value. * @@ -6165,7 +6193,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BinWidthOptionsProperty, - ) : CdkObject(cdkObject), BinWidthOptionsProperty { + ) : CdkObject(cdkObject), + BinWidthOptionsProperty { /** * The options that determine the bin count limit. * @@ -6450,7 +6479,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BodySectionConfigurationProperty, - ) : CdkObject(cdkObject), BodySectionConfigurationProperty { + ) : CdkObject(cdkObject), + BodySectionConfigurationProperty { /** * The configuration of content in a body section. * @@ -6614,7 +6644,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BodySectionContentProperty, - ) : CdkObject(cdkObject), BodySectionContentProperty { + ) : CdkObject(cdkObject), + BodySectionContentProperty { /** * The layout configuration of a body section. * @@ -7259,7 +7290,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotAggregatedFieldWellsProperty { /** * The group by field well of a box plot chart. * @@ -7864,7 +7896,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotChartConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotChartConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotChartConfigurationProperty { /** * The box plot chart options for a box plot visual. * @@ -8536,7 +8569,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotFieldWellsProperty, - ) : CdkObject(cdkObject), BoxPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + BoxPlotFieldWellsProperty { /** * The aggregated field wells of a box plot. * @@ -8689,7 +8723,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotOptionsProperty { /** * Determines the visibility of all data points of the box plot. * @@ -8889,7 +8924,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotSortConfigurationProperty, - ) : CdkObject(cdkObject), BoxPlotSortConfigurationProperty { + ) : CdkObject(cdkObject), + BoxPlotSortConfigurationProperty { /** * The sort configuration of a group by fields. * @@ -8978,7 +9014,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotStyleOptionsProperty, - ) : CdkObject(cdkObject), BoxPlotStyleOptionsProperty { + ) : CdkObject(cdkObject), + BoxPlotStyleOptionsProperty { /** * The fill styles (solid, transparent) of the box plot. * @@ -9293,7 +9330,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.BoxPlotVisualProperty, - ) : CdkObject(cdkObject), BoxPlotVisualProperty { + ) : CdkObject(cdkObject), + BoxPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -9452,7 +9490,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CalculatedFieldProperty, - ) : CdkObject(cdkObject), CalculatedFieldProperty { + ) : CdkObject(cdkObject), + CalculatedFieldProperty { /** * The data set that is used in this calculated field. * @@ -9569,7 +9608,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CalculatedMeasureFieldProperty, - ) : CdkObject(cdkObject), CalculatedMeasureFieldProperty { + ) : CdkObject(cdkObject), + CalculatedMeasureFieldProperty { /** * The expression in the table calculation. * @@ -9695,7 +9735,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CascadingControlConfigurationProperty, - ) : CdkObject(cdkObject), CascadingControlConfigurationProperty { + ) : CdkObject(cdkObject), + CascadingControlConfigurationProperty { /** * A list of source controls that determine the values that are used in the current control. * @@ -9835,7 +9876,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CascadingControlSourceProperty, - ) : CdkObject(cdkObject), CascadingControlSourceProperty { + ) : CdkObject(cdkObject), + CascadingControlSourceProperty { /** * The column identifier that determines which column to look up for the source sheet control. * @@ -10114,7 +10156,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoricalDimensionFieldProperty, - ) : CdkObject(cdkObject), CategoricalDimensionFieldProperty { + ) : CdkObject(cdkObject), + CategoricalDimensionFieldProperty { /** * The column that is used in the `CategoricalDimensionField` . * @@ -10408,7 +10451,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoricalMeasureFieldProperty, - ) : CdkObject(cdkObject), CategoricalMeasureFieldProperty { + ) : CdkObject(cdkObject), + CategoricalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -10577,7 +10621,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryDrillDownFilterProperty, - ) : CdkObject(cdkObject), CategoryDrillDownFilterProperty { + ) : CdkObject(cdkObject), + CategoryDrillDownFilterProperty { /** * A list of the string inputs that are the values of the category drill down filter. * @@ -10848,7 +10893,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryFilterConfigurationProperty, - ) : CdkObject(cdkObject), CategoryFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CategoryFilterConfigurationProperty { /** * A custom filter that filters based on a single value. * @@ -11345,7 +11391,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryFilterProperty, - ) : CdkObject(cdkObject), CategoryFilterProperty { + ) : CdkObject(cdkObject), + CategoryFilterProperty { /** * The column that the filter is applied to. * @@ -11396,6 +11443,446 @@ public open class CfnTemplate( } } + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * CategoryInnerFilterProperty categoryInnerFilterProperty = CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html) + */ + public interface CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-column) + */ + public fun column(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-configuration) + */ + public fun configuration(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + public fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + + /** + * A builder for [CategoryInnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column the value to be set. + */ + public fun column(column: IResolvable) + + /** + * @param column the value to be set. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cbd981726edf9d1886d532ec15577e31bf2ebefe93b98aa283b3eb082c21d483") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: IResolvable) + + /** + * @param configuration the value to be set. + */ + public fun configuration(configuration: CategoryFilterConfigurationProperty) + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2e5262896fdc8361b201b498f0278f2a703f51fec9eb52a8c3d47063a9984597") + public + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e41453441b303cb080cd54334c90dc2494fa9a434622c45193c237fa320b847d") + public + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty.builder() + + /** + * @param column the value to be set. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cbd981726edf9d1886d532ec15577e31bf2ebefe93b98aa283b3eb082c21d483") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: IResolvable) { + cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + override fun configuration(configuration: CategoryFilterConfigurationProperty) { + cdkBuilder.configuration(configuration.let(CategoryFilterConfigurationProperty.Companion::unwrap)) + } + + /** + * @param configuration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2e5262896fdc8361b201b498f0278f2a703f51fec9eb52a8c3d47063a9984597") + override + fun configuration(configuration: CategoryFilterConfigurationProperty.Builder.() -> Unit): + Unit = configuration(CategoryFilterConfigurationProperty(configuration)) + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: IResolvable) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty) { + cdkBuilder.defaultFilterControlConfiguration(defaultFilterControlConfiguration.let(DefaultFilterControlConfigurationProperty.Companion::unwrap)) + } + + /** + * @param defaultFilterControlConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e41453441b303cb080cd54334c90dc2494fa9a434622c45193c237fa320b847d") + override + fun defaultFilterControlConfiguration(defaultFilterControlConfiguration: DefaultFilterControlConfigurationProperty.Builder.() -> Unit): + Unit = + defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty(defaultFilterControlConfiguration)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty, + ) : CdkObject(cdkObject), + CategoryInnerFilterProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-configuration) + */ + override fun configuration(): Any = unwrap(this).getConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-categoryinnerfilter.html#cfn-quicksight-template-categoryinnerfilter-defaultfiltercontrolconfiguration) + */ + override fun defaultFilterControlConfiguration(): Any? = + unwrap(this).getDefaultFilterControlConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CategoryInnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty): + CategoryInnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? + CategoryInnerFilterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CategoryInnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.CategoryInnerFilterProperty + } + } + /** * The label options for an axis on a chart. * @@ -11546,7 +12033,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ChartAxisLabelOptionsProperty, - ) : CdkObject(cdkObject), ChartAxisLabelOptionsProperty { + ) : CdkObject(cdkObject), + ChartAxisLabelOptionsProperty { /** * The label options for a chart axis. * @@ -11677,7 +12165,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ClusterMarkerConfigurationProperty, - ) : CdkObject(cdkObject), ClusterMarkerConfigurationProperty { + ) : CdkObject(cdkObject), + ClusterMarkerConfigurationProperty { /** * The cluster marker that is a part of the cluster marker configuration. * @@ -11790,7 +12279,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ClusterMarkerProperty, - ) : CdkObject(cdkObject), ClusterMarkerProperty { + ) : CdkObject(cdkObject), + ClusterMarkerProperty { /** * The simple cluster marker of the cluster marker. * @@ -11966,7 +12456,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColorScaleProperty, - ) : CdkObject(cdkObject), ColorScaleProperty { + ) : CdkObject(cdkObject), + ColorScaleProperty { /** * Determines the color fill type. * @@ -12090,7 +12581,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColorsConfigurationProperty, - ) : CdkObject(cdkObject), ColorsConfigurationProperty { + ) : CdkObject(cdkObject), + ColorsConfigurationProperty { /** * A list of up to 50 custom colors. * @@ -12537,7 +13029,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnConfigurationProperty, - ) : CdkObject(cdkObject), ColumnConfigurationProperty { + ) : CdkObject(cdkObject), + ColumnConfigurationProperty { /** * The color configurations of the column. * @@ -12641,7 +13134,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnGroupColumnSchemaProperty, - ) : CdkObject(cdkObject), ColumnGroupColumnSchemaProperty { + ) : CdkObject(cdkObject), + ColumnGroupColumnSchemaProperty { /** * The name of the column group's column schema. * @@ -12773,7 +13267,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnGroupSchemaProperty, - ) : CdkObject(cdkObject), ColumnGroupSchemaProperty { + ) : CdkObject(cdkObject), + ColumnGroupSchemaProperty { /** * A structure containing the list of schemas for column group columns. * @@ -13109,7 +13604,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnHierarchyProperty, - ) : CdkObject(cdkObject), ColumnHierarchyProperty { + ) : CdkObject(cdkObject), + ColumnHierarchyProperty { /** * The option that determines the hierarchy of any `DateTime` fields. * @@ -13230,7 +13726,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnIdentifierProperty, - ) : CdkObject(cdkObject), ColumnIdentifierProperty { + ) : CdkObject(cdkObject), + ColumnIdentifierProperty { /** * The name of the column. * @@ -13358,7 +13855,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnSchemaProperty, - ) : CdkObject(cdkObject), ColumnSchemaProperty { + ) : CdkObject(cdkObject), + ColumnSchemaProperty { /** * The data type of the column schema. * @@ -13563,7 +14061,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnSortProperty, - ) : CdkObject(cdkObject), ColumnSortProperty { + ) : CdkObject(cdkObject), + ColumnSortProperty { /** * The aggregation function that is defined in the column sort. * @@ -13632,6 +14131,7 @@ public open class CfnTemplate( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -13660,6 +14160,13 @@ public open class CfnTemplate( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-columntooltipitem.html#cfn-quicksight-template-columntooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -13711,6 +14218,12 @@ public open class CfnTemplate( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -13773,6 +14286,14 @@ public open class CfnTemplate( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the column tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -13787,7 +14308,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ColumnTooltipItemProperty, - ) : CdkObject(cdkObject), ColumnTooltipItemProperty { + ) : CdkObject(cdkObject), + ColumnTooltipItemProperty { /** * The aggregation function of the column tooltip item. * @@ -13809,6 +14331,13 @@ public open class CfnTemplate( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the column tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-columntooltipitem.html#cfn-quicksight-template-columntooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -14029,7 +14558,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComboChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartAggregatedFieldWellsProperty { /** * The aggregated `BarValues` field well of a combo chart. * @@ -14196,6 +14726,11 @@ public open class CfnTemplate( */ public fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-combochartconfiguration.html#cfn-quicksight-template-combochartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -14466,6 +15001,23 @@ public open class CfnTemplate( public fun secondaryYAxisLabelOptions(secondaryYAxisLabelOptions: ChartAxisLabelOptionsProperty.Builder.() -> Unit) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7dd47dfc1d6b3c95f75e4792a4d41d72089f2c82772bb8e81dca4c30c14e2cd3") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -14835,6 +15387,29 @@ public open class CfnTemplate( Unit = secondaryYAxisLabelOptions(ChartAxisLabelOptionsProperty(secondaryYAxisLabelOptions)) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7dd47dfc1d6b3c95f75e4792a4d41d72089f2c82772bb8e81dca4c30c14e2cd3") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param sortConfiguration The sort configuration of a `ComboChartVisual` . */ @@ -14909,7 +15484,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComboChartConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -15018,6 +15594,11 @@ public open class CfnTemplate( */ override fun secondaryYAxisLabelOptions(): Any? = unwrap(this).getSecondaryYAxisLabelOptions() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-combochartconfiguration.html#cfn-quicksight-template-combochartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The sort configuration of a `ComboChartVisual` . * @@ -15158,7 +15739,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComboChartFieldWellsProperty, - ) : CdkObject(cdkObject), ComboChartFieldWellsProperty { + ) : CdkObject(cdkObject), + ComboChartFieldWellsProperty { /** * The aggregated field wells of a combo chart. * @@ -15480,7 +16062,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComboChartSortConfigurationProperty, - ) : CdkObject(cdkObject), ComboChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + ComboChartSortConfigurationProperty { /** * The item limit configuration for the category field well of a combo chart. * @@ -15819,7 +16402,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComboChartVisualProperty, - ) : CdkObject(cdkObject), ComboChartVisualProperty { + ) : CdkObject(cdkObject), + ComboChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -16041,7 +16625,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComparisonConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonConfigurationProperty { /** * The format of the comparison. * @@ -16265,7 +16850,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComparisonFormatConfigurationProperty, - ) : CdkObject(cdkObject), ComparisonFormatConfigurationProperty { + ) : CdkObject(cdkObject), + ComparisonFormatConfigurationProperty { /** * The number display format. * @@ -16805,7 +17391,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ComputationProperty, - ) : CdkObject(cdkObject), ComputationProperty { + ) : CdkObject(cdkObject), + ComputationProperty { /** * The forecast computation configuration. * @@ -17040,7 +17627,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingColorProperty { /** * Formatting configuration for gradient color. * @@ -17259,7 +17847,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingCustomIconConditionProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconConditionProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconConditionProperty { /** * Determines the color of the icon. * @@ -17384,7 +17973,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingCustomIconOptionsProperty, - ) : CdkObject(cdkObject), ConditionalFormattingCustomIconOptionsProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingCustomIconOptionsProperty { /** * Determines the type of icon. * @@ -17531,7 +18121,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingGradientColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingGradientColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingGradientColorProperty { /** * Determines the color. * @@ -17623,7 +18214,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingIconDisplayConfigurationProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconDisplayConfigurationProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconDisplayConfigurationProperty { /** * Determines the icon display configuration. * @@ -17799,7 +18391,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingIconProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconProperty { /** * Determines the custom condition for an icon set. * @@ -17913,7 +18506,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingIconSetProperty, - ) : CdkObject(cdkObject), ConditionalFormattingIconSetProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingIconSetProperty { /** * The expression that determines the formatting configuration for the icon set. * @@ -18027,7 +18621,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ConditionalFormattingSolidColorProperty, - ) : CdkObject(cdkObject), ConditionalFormattingSolidColorProperty { + ) : CdkObject(cdkObject), + ConditionalFormattingSolidColorProperty { /** * Determines the color. * @@ -18171,7 +18766,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ContributionAnalysisDefaultProperty, - ) : CdkObject(cdkObject), ContributionAnalysisDefaultProperty { + ) : CdkObject(cdkObject), + ContributionAnalysisDefaultProperty { /** * The dimensions columns that are used in the contribution analysis, usually a list of * `ColumnIdentifiers` . @@ -18567,7 +19163,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CurrencyDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), CurrencyDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + CurrencyDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -18809,7 +19406,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomActionFilterOperationProperty, - ) : CdkObject(cdkObject), CustomActionFilterOperationProperty { + ) : CdkObject(cdkObject), + CustomActionFilterOperationProperty { /** * The configuration that chooses the fields to be filtered. * @@ -18938,7 +19536,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomActionNavigationOperationProperty, - ) : CdkObject(cdkObject), CustomActionNavigationOperationProperty { + ) : CdkObject(cdkObject), + CustomActionNavigationOperationProperty { /** * The configuration that chooses the navigation target. * @@ -19067,7 +19666,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomActionSetParametersOperationProperty, - ) : CdkObject(cdkObject), CustomActionSetParametersOperationProperty { + ) : CdkObject(cdkObject), + CustomActionSetParametersOperationProperty { /** * The parameter that determines the value configuration. * @@ -19188,7 +19788,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomActionURLOperationProperty, - ) : CdkObject(cdkObject), CustomActionURLOperationProperty { + ) : CdkObject(cdkObject), + CustomActionURLOperationProperty { /** * The target of the `CustomActionURLOperation` . * @@ -19322,7 +19923,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomColorProperty, - ) : CdkObject(cdkObject), CustomColorProperty { + ) : CdkObject(cdkObject), + CustomColorProperty { /** * The color that is applied to the data value. * @@ -19469,7 +20071,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomContentConfigurationProperty, - ) : CdkObject(cdkObject), CustomContentConfigurationProperty { + ) : CdkObject(cdkObject), + CustomContentConfigurationProperty { /** * The content type of the custom content visual. * @@ -19864,7 +20467,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomContentVisualProperty, - ) : CdkObject(cdkObject), CustomContentVisualProperty { + ) : CdkObject(cdkObject), + CustomContentVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -20098,7 +20702,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomFilterConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterConfigurationProperty { /** * The category value for the filter. * @@ -20312,7 +20917,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomFilterListConfigurationProperty, - ) : CdkObject(cdkObject), CustomFilterListConfigurationProperty { + ) : CdkObject(cdkObject), + CustomFilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -20423,7 +21029,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomNarrativeOptionsProperty, - ) : CdkObject(cdkObject), CustomNarrativeOptionsProperty { + ) : CdkObject(cdkObject), + CustomNarrativeOptionsProperty { /** * The string input of custom narrative. * @@ -20637,7 +21244,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomParameterValuesProperty, - ) : CdkObject(cdkObject), CustomParameterValuesProperty { + ) : CdkObject(cdkObject), + CustomParameterValuesProperty { /** * A list of datetime-type parameter values. * @@ -20805,7 +21413,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.CustomValuesConfigurationProperty, - ) : CdkObject(cdkObject), CustomValuesConfigurationProperty { + ) : CdkObject(cdkObject), + CustomValuesConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-customvaluesconfiguration.html#cfn-quicksight-template-customvaluesconfiguration-customvalues) */ @@ -20933,7 +21542,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataBarsOptionsProperty, - ) : CdkObject(cdkObject), DataBarsOptionsProperty { + ) : CdkObject(cdkObject), + DataBarsOptionsProperty { /** * The field ID for the data bars options. * @@ -21047,7 +21657,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataColorProperty, - ) : CdkObject(cdkObject), DataColorProperty { + ) : CdkObject(cdkObject), + DataColorProperty { /** * The color that is applied to the data value. * @@ -21243,7 +21854,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataFieldSeriesItemProperty, - ) : CdkObject(cdkObject), DataFieldSeriesItemProperty { + ) : CdkObject(cdkObject), + DataFieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -21606,7 +22218,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataLabelOptionsProperty, - ) : CdkObject(cdkObject), DataLabelOptionsProperty { + ) : CdkObject(cdkObject), + DataLabelOptionsProperty { /** * Determines the visibility of the category field labels. * @@ -22002,7 +22615,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataLabelTypeProperty, - ) : CdkObject(cdkObject), DataLabelTypeProperty { + ) : CdkObject(cdkObject), + DataLabelTypeProperty { /** * The option that specifies individual data values for labels. * @@ -22187,7 +22801,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataPathColorProperty, - ) : CdkObject(cdkObject), DataPathColorProperty { + ) : CdkObject(cdkObject), + DataPathColorProperty { /** * The color that needs to be applied to the element. * @@ -22322,7 +22937,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataPathLabelTypeProperty, - ) : CdkObject(cdkObject), DataPathLabelTypeProperty { + ) : CdkObject(cdkObject), + DataPathLabelTypeProperty { /** * The field ID of the field that the data label needs to be applied to. * @@ -22465,7 +23081,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataPathSortProperty, - ) : CdkObject(cdkObject), DataPathSortProperty { + ) : CdkObject(cdkObject), + DataPathSortProperty { /** * Determines the sort direction. * @@ -22580,7 +23197,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataPathTypeProperty, - ) : CdkObject(cdkObject), DataPathTypeProperty { + ) : CdkObject(cdkObject), + DataPathTypeProperty { /** * The type of data path value utilized in a pivot table. Choose one of the following * options:. @@ -22740,7 +23358,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataPathValueProperty, - ) : CdkObject(cdkObject), DataPathValueProperty { + ) : CdkObject(cdkObject), + DataPathValueProperty { /** * The type configuration of the field. * @@ -22938,7 +23557,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataSetConfigurationProperty, - ) : CdkObject(cdkObject), DataSetConfigurationProperty { + ) : CdkObject(cdkObject), + DataSetConfigurationProperty { /** * A structure containing the list of column group schemas. * @@ -23053,7 +23673,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataSetReferenceProperty, - ) : CdkObject(cdkObject), DataSetReferenceProperty { + ) : CdkObject(cdkObject), + DataSetReferenceProperty { /** * Dataset Amazon Resource Name (ARN). * @@ -23168,7 +23789,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DataSetSchemaProperty, - ) : CdkObject(cdkObject), DataSetSchemaProperty { + ) : CdkObject(cdkObject), + DataSetSchemaProperty { /** * A structure containing the list of column schemas. * @@ -23249,7 +23871,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateAxisOptionsProperty, - ) : CdkObject(cdkObject), DateAxisOptionsProperty { + ) : CdkObject(cdkObject), + DateAxisOptionsProperty { /** * Determines whether or not missing dates are displayed. * @@ -23571,7 +24194,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateDimensionFieldProperty, - ) : CdkObject(cdkObject), DateDimensionFieldProperty { + ) : CdkObject(cdkObject), + DateDimensionFieldProperty { /** * The column that is used in the `DateDimensionField` . * @@ -23880,7 +24504,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateMeasureFieldProperty, - ) : CdkObject(cdkObject), DateMeasureFieldProperty { + ) : CdkObject(cdkObject), + DateMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -24123,7 +24748,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimeDefaultValuesProperty, - ) : CdkObject(cdkObject), DateTimeDefaultValuesProperty { + ) : CdkObject(cdkObject), + DateTimeDefaultValuesProperty { /** * The dynamic value of the `DataTimeDefaultValues` . * @@ -24406,7 +25032,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimeFormatConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeFormatConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeFormatConfigurationProperty { /** * Determines the `DateTime` format. * @@ -24577,7 +25204,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimeHierarchyProperty, - ) : CdkObject(cdkObject), DateTimeHierarchyProperty { + ) : CdkObject(cdkObject), + DateTimeHierarchyProperty { /** * The option that determines the drill down filters for the `DateTime` hierarchy. * @@ -24876,7 +25504,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimeParameterDeclarationProperty, - ) : CdkObject(cdkObject), DateTimeParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DateTimeParameterDeclarationProperty { /** * The default values of a parameter. * @@ -25106,7 +25735,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimePickerControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DateTimePickerControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DateTimePickerControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -25234,7 +25864,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DateTimeValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DateTimeValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DateTimeValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -25420,7 +26051,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DecimalDefaultValuesProperty, - ) : CdkObject(cdkObject), DecimalDefaultValuesProperty { + ) : CdkObject(cdkObject), + DecimalDefaultValuesProperty { /** * The dynamic value of the `DecimalDefaultValues` . * @@ -25716,7 +26348,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DecimalParameterDeclarationProperty, - ) : CdkObject(cdkObject), DecimalParameterDeclarationProperty { + ) : CdkObject(cdkObject), + DecimalParameterDeclarationProperty { /** * The default values of a parameter. * @@ -25830,7 +26463,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DecimalPlacesConfigurationProperty, - ) : CdkObject(cdkObject), DecimalPlacesConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalPlacesConfigurationProperty { /** * The values of the decimal places. * @@ -25944,7 +26578,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DecimalValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), DecimalValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + DecimalValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -26118,7 +26753,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultDateTimePickerControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultDateTimePickerControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultDateTimePickerControlOptionsProperty { /** * The display options of a control. * @@ -26460,7 +27096,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultFilterControlConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFilterControlConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlConfigurationProperty { /** * The control option for the `DefaultFilterControlConfiguration` . * @@ -27120,7 +27757,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultFilterControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterControlOptionsProperty { /** * The default options that correspond to the filter control type of a `DateTimePicker` . * @@ -27378,7 +28016,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultFilterDropDownControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterDropDownControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterDropDownControlOptionsProperty { /** * The display options of a control. * @@ -27614,7 +28253,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultFilterListControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultFilterListControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultFilterListControlOptionsProperty { /** * The display options of a control. * @@ -27748,7 +28388,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultFreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultFreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultFreeFormLayoutConfigurationProperty { /** * Determines the screen canvas size options for a free-form layout. * @@ -27867,7 +28508,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultGridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultGridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultGridLayoutConfigurationProperty { /** * Determines the screen canvas size options for a grid layout. * @@ -28052,7 +28694,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultInteractiveLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultInteractiveLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultInteractiveLayoutConfigurationProperty { /** * The options that determine the default settings of a free-form layout configuration. * @@ -28292,7 +28935,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultNewSheetConfigurationProperty, - ) : CdkObject(cdkObject), DefaultNewSheetConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultNewSheetConfigurationProperty { /** * The options that determine the default settings for interactive layout configuration. * @@ -28440,7 +29084,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultPaginatedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultPaginatedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultPaginatedLayoutConfigurationProperty { /** * The options that determine the default settings for a section-based layout configuration. * @@ -28574,7 +29219,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultRelativeDateTimeControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultRelativeDateTimeControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultRelativeDateTimeControlOptionsProperty { /** * The display options of a control. * @@ -28705,7 +29351,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultSectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), DefaultSectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + DefaultSectionBasedLayoutConfigurationProperty { /** * Determines the screen canvas size options for a section-based layout. * @@ -28934,7 +29581,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultSliderControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultSliderControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultSliderControlOptionsProperty { /** * The display options of a control. * @@ -29127,7 +29775,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultTextAreaControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextAreaControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextAreaControlOptionsProperty { /** * The delimiter that is used to separate the lines in text. * @@ -29270,7 +29919,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DefaultTextFieldControlOptionsProperty, - ) : CdkObject(cdkObject), DefaultTextFieldControlOptionsProperty { + ) : CdkObject(cdkObject), + DefaultTextFieldControlOptionsProperty { /** * The display options of a control. * @@ -29513,7 +30163,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DestinationParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), DestinationParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + DestinationParameterValueConfigurationProperty { /** * The configuration of custom values for destination parameter in * `DestinationParameterValueConfiguration` . @@ -29986,7 +30637,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DimensionFieldProperty, - ) : CdkObject(cdkObject), DimensionFieldProperty { + ) : CdkObject(cdkObject), + DimensionFieldProperty { /** * The dimension type field with categorical type columns. * @@ -30088,7 +30740,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DonutCenterOptionsProperty, - ) : CdkObject(cdkObject), DonutCenterOptionsProperty { + ) : CdkObject(cdkObject), + DonutCenterOptionsProperty { /** * Determines the visibility of the label in a donut chart. * @@ -30300,7 +30953,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DonutOptionsProperty, - ) : CdkObject(cdkObject), DonutOptionsProperty { + ) : CdkObject(cdkObject), + DonutOptionsProperty { /** * The option for define the arc of the chart shape. Valid values are as follows:. * @@ -30571,7 +31225,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DrillDownFilterProperty, - ) : CdkObject(cdkObject), DrillDownFilterProperty { + ) : CdkObject(cdkObject), + DrillDownFilterProperty { /** * The category type drill down filter. * @@ -30827,7 +31482,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DropDownControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), DropDownControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + DropDownControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -31062,7 +31718,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.DynamicDefaultValueProperty, - ) : CdkObject(cdkObject), DynamicDefaultValueProperty { + ) : CdkObject(cdkObject), + DynamicDefaultValueProperty { /** * The column that contains the default value of each user or group. * @@ -31291,7 +31948,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.EmptyVisualProperty, - ) : CdkObject(cdkObject), EmptyVisualProperty { + ) : CdkObject(cdkObject), + EmptyVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -31393,7 +32051,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.EntityProperty, - ) : CdkObject(cdkObject), EntityProperty { + ) : CdkObject(cdkObject), + EntityProperty { /** * The hierarchical path of the entity within the analysis, template, or dashboard definition * tree. @@ -31525,7 +32184,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ExcludePeriodConfigurationProperty, - ) : CdkObject(cdkObject), ExcludePeriodConfigurationProperty { + ) : CdkObject(cdkObject), + ExcludePeriodConfigurationProperty { /** * The amount or number of the exclude period. * @@ -31746,7 +32406,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ExplicitHierarchyProperty, - ) : CdkObject(cdkObject), ExplicitHierarchyProperty { + ) : CdkObject(cdkObject), + ExplicitHierarchyProperty { /** * The list of columns that define the explicit hierarchy. * @@ -31820,12 +32481,14 @@ public open class CfnTemplate( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -31943,7 +32606,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldBasedTooltipProperty, - ) : CdkObject(cdkObject), FieldBasedTooltipProperty { + ) : CdkObject(cdkObject), + FieldBasedTooltipProperty { /** * The visibility of `Show aggregations` . * @@ -32061,7 +32725,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldLabelTypeProperty, - ) : CdkObject(cdkObject), FieldLabelTypeProperty { + ) : CdkObject(cdkObject), + FieldLabelTypeProperty { /** * Indicates the field that is targeted by the field label. * @@ -32236,7 +32901,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldSeriesItemProperty, - ) : CdkObject(cdkObject), FieldSeriesItemProperty { + ) : CdkObject(cdkObject), + FieldSeriesItemProperty { /** * The axis that you are binding the field to. * @@ -32429,7 +33095,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldSortOptionsProperty, - ) : CdkObject(cdkObject), FieldSortOptionsProperty { + ) : CdkObject(cdkObject), + FieldSortOptionsProperty { /** * The sort configuration for a column that is not used in a field well. * @@ -32543,7 +33210,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldSortProperty, - ) : CdkObject(cdkObject), FieldSortProperty { + ) : CdkObject(cdkObject), + FieldSortProperty { /** * The sort direction. Choose one of the following options:. * @@ -32593,6 +33261,7 @@ public open class CfnTemplate( * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build(); * ``` @@ -32614,6 +33283,13 @@ public open class CfnTemplate( */ public fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-tooltiptarget) + */ + public fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -32636,6 +33312,12 @@ public open class CfnTemplate( */ public fun label(label: String) + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + public fun tooltipTarget(tooltipTarget: String) + /** * @param visibility The visibility of the tooltip item. */ @@ -32661,6 +33343,14 @@ public open class CfnTemplate( cdkBuilder.label(label) } + /** + * @param tooltipTarget Determines the target of the field tooltip item in a combo chart + * visual. + */ + override fun tooltipTarget(tooltipTarget: String) { + cdkBuilder.tooltipTarget(tooltipTarget) + } + /** * @param visibility The visibility of the tooltip item. */ @@ -32675,7 +33365,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FieldTooltipItemProperty, - ) : CdkObject(cdkObject), FieldTooltipItemProperty { + ) : CdkObject(cdkObject), + FieldTooltipItemProperty { /** * The unique ID of the field that is targeted by the tooltip. * @@ -32690,6 +33381,13 @@ public open class CfnTemplate( */ override fun label(): String? = unwrap(this).getLabel() + /** + * Determines the target of the field tooltip item in a combo chart visual. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-tooltiptarget) + */ + override fun tooltipTarget(): String? = unwrap(this).getTooltipTarget() + /** * The visibility of the tooltip item. * @@ -33334,7 +34032,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapAggregatedFieldWellsProperty { /** * The aggregated location field well of the filled map. * @@ -33479,7 +34178,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingOptionProperty { /** * The conditional formatting that determines the shape of the filled map. * @@ -33617,7 +34317,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapConditionalFormattingProperty { /** * Conditional formatting options of a `FilledMapVisual` . * @@ -33956,7 +34657,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapConfigurationProperty { /** * The field wells of the visual. * @@ -34594,7 +35296,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapFieldWellsProperty, - ) : CdkObject(cdkObject), FilledMapFieldWellsProperty { + ) : CdkObject(cdkObject), + FilledMapFieldWellsProperty { /** * The aggregated field well of the filled map. * @@ -34751,7 +35454,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapShapeConditionalFormattingProperty, - ) : CdkObject(cdkObject), FilledMapShapeConditionalFormattingProperty { + ) : CdkObject(cdkObject), + FilledMapShapeConditionalFormattingProperty { /** * The field ID of the filled map shape. * @@ -34892,7 +35596,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapSortConfigurationProperty, - ) : CdkObject(cdkObject), FilledMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + FilledMapSortConfigurationProperty { /** * The sort configuration of the location fields. * @@ -35259,7 +35964,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilledMapVisualProperty, - ) : CdkObject(cdkObject), FilledMapVisualProperty { + ) : CdkObject(cdkObject), + FilledMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -36028,7 +36734,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterControlProperty, - ) : CdkObject(cdkObject), FilterControlProperty { + ) : CdkObject(cdkObject), + FilterControlProperty { /** * A control from a filter that is scoped across more than one sheet. * @@ -36257,7 +36964,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterCrossSheetControlProperty, - ) : CdkObject(cdkObject), FilterCrossSheetControlProperty { + ) : CdkObject(cdkObject), + FilterCrossSheetControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -36494,7 +37202,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), FilterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + FilterDateTimePickerControlProperty { /** * The display options of a control. * @@ -36868,7 +37577,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterDropDownControlProperty, - ) : CdkObject(cdkObject), FilterDropDownControlProperty { + ) : CdkObject(cdkObject), + FilterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -37153,7 +37863,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterGroupProperty, - ) : CdkObject(cdkObject), FilterGroupProperty { + ) : CdkObject(cdkObject), + FilterGroupProperty { /** * The filter new feature which can apply filter group to all data sets. Choose one of the * following options:. @@ -37364,7 +38075,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterListConfigurationProperty, - ) : CdkObject(cdkObject), FilterListConfigurationProperty { + ) : CdkObject(cdkObject), + FilterListConfigurationProperty { /** * The list of category values for the filter. * @@ -37736,7 +38448,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterListControlProperty, - ) : CdkObject(cdkObject), FilterListControlProperty { + ) : CdkObject(cdkObject), + FilterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -37964,7 +38677,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterOperationSelectedFieldsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationSelectedFieldsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationSelectedFieldsConfigurationProperty { /** * The selected columns of a dataset. * @@ -38114,7 +38828,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterOperationTargetVisualsConfigurationProperty, - ) : CdkObject(cdkObject), FilterOperationTargetVisualsConfigurationProperty { + ) : CdkObject(cdkObject), + FilterOperationTargetVisualsConfigurationProperty { /** * The configuration of the same-sheet target visuals that you want to be filtered. * @@ -38168,6 +38883,14 @@ public open class CfnTemplate( */ public fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filter.html#cfn-quicksight-template-filter-nestedfilter) + */ + public fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -38245,6 +38968,26 @@ public open class CfnTemplate( @JvmName("d78ac721a93329d5ffb4e572d5a51193b1fdfcd72ae145ad5d76e77bf5c0a7fd") public fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: IResolvable) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + public fun nestedFilter(nestedFilter: NestedFilterProperty) + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b37efb7afc350a038946e400a9edab901cd3eef51576f049061df1bbc3b27f5e") + public fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -38406,6 +39149,31 @@ public open class CfnTemplate( override fun categoryFilter(categoryFilter: CategoryFilterProperty.Builder.() -> Unit): Unit = categoryFilter(CategoryFilterProperty(categoryFilter)) + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: IResolvable) { + cdkBuilder.nestedFilter(nestedFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + override fun nestedFilter(nestedFilter: NestedFilterProperty) { + cdkBuilder.nestedFilter(nestedFilter.let(NestedFilterProperty.Companion::unwrap)) + } + + /** + * @param nestedFilter A `NestedFilter` filters data with a subset of data that is defined by + * the nested inner filter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b37efb7afc350a038946e400a9edab901cd3eef51576f049061df1bbc3b27f5e") + override fun nestedFilter(nestedFilter: NestedFilterProperty.Builder.() -> Unit): Unit = + nestedFilter(NestedFilterProperty(nestedFilter)) + /** * @param numericEqualityFilter A `NumericEqualityFilter` filters numeric values that equal or * do not equal a given numeric value. @@ -38566,7 +39334,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * A `CategoryFilter` filters text values. * @@ -38578,6 +39347,14 @@ public open class CfnTemplate( */ override fun categoryFilter(): Any? = unwrap(this).getCategoryFilter() + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner + * filter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-filter.html#cfn-quicksight-template-filter-nestedfilter) + */ + override fun nestedFilter(): Any? = unwrap(this).getNestedFilter() + /** * A `NumericEqualityFilter` filters numeric values that equal or do not equal a given numeric * value. @@ -38810,7 +39587,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterRelativeDateTimeControlProperty, - ) : CdkObject(cdkObject), FilterRelativeDateTimeControlProperty { + ) : CdkObject(cdkObject), + FilterRelativeDateTimeControlProperty { /** * The display options of a control. * @@ -38985,7 +39763,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), FilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + FilterScopeConfigurationProperty { /** * The configuration that applies a filter to all sheets. * @@ -39089,7 +39868,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterSelectableValuesProperty, - ) : CdkObject(cdkObject), FilterSelectableValuesProperty { + ) : CdkObject(cdkObject), + FilterSelectableValuesProperty { /** * The values that are used in the `FilterSelectableValues` . * @@ -39376,7 +40156,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterSliderControlProperty, - ) : CdkObject(cdkObject), FilterSliderControlProperty { + ) : CdkObject(cdkObject), + FilterSliderControlProperty { /** * The display options of a control. * @@ -39650,7 +40431,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterTextAreaControlProperty, - ) : CdkObject(cdkObject), FilterTextAreaControlProperty { + ) : CdkObject(cdkObject), + FilterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -39874,7 +40656,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FilterTextFieldControlProperty, - ) : CdkObject(cdkObject), FilterTextFieldControlProperty { + ) : CdkObject(cdkObject), + FilterTextFieldControlProperty { /** * The display options of a control. * @@ -40116,7 +40899,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FontConfigurationProperty, - ) : CdkObject(cdkObject), FontConfigurationProperty { + ) : CdkObject(cdkObject), + FontConfigurationProperty { /** * Determines the color of the text. * @@ -40226,7 +41010,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FontSizeProperty, - ) : CdkObject(cdkObject), FontSizeProperty { + ) : CdkObject(cdkObject), + FontSizeProperty { /** * The lexical name for the text size, proportional to its surrounding context. * @@ -40306,7 +41091,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FontWeightProperty, - ) : CdkObject(cdkObject), FontWeightProperty { + ) : CdkObject(cdkObject), + FontWeightProperty { /** * The lexical name for the level of boldness of the text display. * @@ -40635,7 +41421,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ForecastComputationProperty, - ) : CdkObject(cdkObject), ForecastComputationProperty { + ) : CdkObject(cdkObject), + ForecastComputationProperty { /** * The ID for a computation. * @@ -40884,7 +41671,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ForecastConfigurationProperty, - ) : CdkObject(cdkObject), ForecastConfigurationProperty { + ) : CdkObject(cdkObject), + ForecastConfigurationProperty { /** * The forecast properties setup of a forecast in the line chart. * @@ -41057,7 +41845,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ForecastScenarioProperty, - ) : CdkObject(cdkObject), ForecastScenarioProperty { + ) : CdkObject(cdkObject), + ForecastScenarioProperty { /** * The what-if analysis forecast setup with the target date. * @@ -41487,7 +42276,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FormatConfigurationProperty, - ) : CdkObject(cdkObject), FormatConfigurationProperty { + ) : CdkObject(cdkObject), + FormatConfigurationProperty { /** * Formatting configuration for `DateTime` fields. * @@ -41625,7 +42415,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a free-form layout. * @@ -41813,7 +42604,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-freeformlayoutconfiguration.html#cfn-quicksight-template-freeformlayoutconfiguration-canvassizeoptions) */ @@ -41922,7 +42714,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutElementBackgroundStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBackgroundStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBackgroundStyleProperty { /** * The background color of a free-form layout element. * @@ -42033,7 +42826,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutElementBorderStyleProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementBorderStyleProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementBorderStyleProperty { /** * The border color of a free-form layout element. * @@ -42514,7 +43308,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutElementProperty, - ) : CdkObject(cdkObject), FreeFormLayoutElementProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutElementProperty { /** * The background style configuration of a free-form layout element. * @@ -42679,7 +43474,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), FreeFormLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + FreeFormLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -42815,7 +43611,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FreeFormSectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), FreeFormSectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + FreeFormSectionLayoutConfigurationProperty { /** * The elements that are included in the free-form layout. * @@ -43461,7 +44258,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartAggregatedFieldWellsProperty { /** * The category field wells of a funnel chart. * @@ -43872,7 +44670,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartConfigurationProperty { /** * The label options of the categories that are displayed in a `FunnelChartVisual` . * @@ -44168,7 +44967,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartDataLabelOptionsProperty, - ) : CdkObject(cdkObject), FunnelChartDataLabelOptionsProperty { + ) : CdkObject(cdkObject), + FunnelChartDataLabelOptionsProperty { /** * The visibility of the category labels within the data labels. * @@ -44823,7 +45623,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartFieldWellsProperty, - ) : CdkObject(cdkObject), FunnelChartFieldWellsProperty { + ) : CdkObject(cdkObject), + FunnelChartFieldWellsProperty { /** * The field well configuration of a `FunnelChartVisual` . * @@ -45009,7 +45810,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartSortConfigurationProperty, - ) : CdkObject(cdkObject), FunnelChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + FunnelChartSortConfigurationProperty { /** * The limit on the number of categories displayed. * @@ -45332,7 +46134,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.FunnelChartVisualProperty, - ) : CdkObject(cdkObject), FunnelChartVisualProperty { + ) : CdkObject(cdkObject), + FunnelChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -45499,7 +46302,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartArcConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartArcConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartArcConditionalFormattingProperty { /** * The conditional formatting of the arc foreground color. * @@ -45722,7 +46526,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingOptionProperty { /** * The options that determine the presentation of the arc of a `GaugeChartVisual` . * @@ -45902,7 +46707,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartConditionalFormattingProperty { /** * Conditional formatting options of a `GaugeChartVisual` . * @@ -46198,7 +47004,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartConfigurationProperty, - ) : CdkObject(cdkObject), GaugeChartConfigurationProperty { + ) : CdkObject(cdkObject), + GaugeChartConfigurationProperty { /** * The data label configuration of a `GaugeChartVisual` . * @@ -46366,7 +47173,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartFieldWellsProperty, - ) : CdkObject(cdkObject), GaugeChartFieldWellsProperty { + ) : CdkObject(cdkObject), + GaugeChartFieldWellsProperty { /** * The target value field wells of a `GaugeChartVisual` . * @@ -46718,7 +47526,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartOptionsProperty, - ) : CdkObject(cdkObject), GaugeChartOptionsProperty { + ) : CdkObject(cdkObject), + GaugeChartOptionsProperty { /** * The arc configuration of a `GaugeChartVisual` . * @@ -46940,7 +47749,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), GaugeChartPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + GaugeChartPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value icon. * @@ -47266,7 +48076,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GaugeChartVisualProperty, - ) : CdkObject(cdkObject), GaugeChartVisualProperty { + ) : CdkObject(cdkObject), + GaugeChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -47447,7 +48258,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialCoordinateBoundsProperty, - ) : CdkObject(cdkObject), GeospatialCoordinateBoundsProperty { + ) : CdkObject(cdkObject), + GeospatialCoordinateBoundsProperty { /** * The longitude of the east bound of the geospatial coordinate bounds. * @@ -47576,7 +48388,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialHeatmapColorScaleProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapColorScaleProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapColorScaleProperty { /** * The list of colors to be used in heatmap point style. * @@ -47692,7 +48505,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialHeatmapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapConfigurationProperty { /** * The color scale specification for the heatmap point style. * @@ -47776,7 +48590,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialHeatmapDataColorProperty, - ) : CdkObject(cdkObject), GeospatialHeatmapDataColorProperty { + ) : CdkObject(cdkObject), + GeospatialHeatmapDataColorProperty { /** * The hex color to be used in the heatmap point style. * @@ -47973,7 +48788,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapAggregatedFieldWellsProperty { /** * The color field wells of a geospatial map. * @@ -48373,7 +49189,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialMapConfigurationProperty, - ) : CdkObject(cdkObject), GeospatialMapConfigurationProperty { + ) : CdkObject(cdkObject), + GeospatialMapConfigurationProperty { /** * The field wells of the visual. * @@ -48527,7 +49344,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialMapFieldWellsProperty, - ) : CdkObject(cdkObject), GeospatialMapFieldWellsProperty { + ) : CdkObject(cdkObject), + GeospatialMapFieldWellsProperty { /** * The aggregated field well for a geospatial map. * @@ -48611,7 +49429,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialMapStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialMapStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialMapStyleOptionsProperty { /** * The base map style of the geospatial map. * @@ -48928,7 +49747,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialMapVisualProperty, - ) : CdkObject(cdkObject), GeospatialMapVisualProperty { + ) : CdkObject(cdkObject), + GeospatialMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -49169,7 +49989,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialPointStyleOptionsProperty, - ) : CdkObject(cdkObject), GeospatialPointStyleOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialPointStyleOptionsProperty { /** * The cluster marker configuration of the geospatial point style. * @@ -49325,7 +50146,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GeospatialWindowOptionsProperty, - ) : CdkObject(cdkObject), GeospatialWindowOptionsProperty { + ) : CdkObject(cdkObject), + GeospatialWindowOptionsProperty { /** * The bounds options (north, south, west, east) of the geospatial window options. * @@ -49526,7 +50348,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GlobalTableBorderOptionsProperty, - ) : CdkObject(cdkObject), GlobalTableBorderOptionsProperty { + ) : CdkObject(cdkObject), + GlobalTableBorderOptionsProperty { /** * Determines the options for side specific border. * @@ -49641,7 +50464,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GradientColorProperty, - ) : CdkObject(cdkObject), GradientColorProperty { + ) : CdkObject(cdkObject), + GradientColorProperty { /** * The list of gradient color stops. * @@ -49765,7 +50589,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GradientStopProperty, - ) : CdkObject(cdkObject), GradientStopProperty { + ) : CdkObject(cdkObject), + GradientStopProperty { /** * Determines the color. * @@ -49906,7 +50731,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GridLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutCanvasSizeOptionsProperty { /** * The options that determine the sizing of the canvas used in a grid layout. * @@ -50077,7 +50903,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GridLayoutConfigurationProperty, - ) : CdkObject(cdkObject), GridLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + GridLayoutConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-gridlayoutconfiguration.html#cfn-quicksight-template-gridlayoutconfiguration-canvassizeoptions) */ @@ -50264,7 +51091,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GridLayoutElementProperty, - ) : CdkObject(cdkObject), GridLayoutElementProperty { + ) : CdkObject(cdkObject), + GridLayoutElementProperty { /** * The column index for the upper left corner of an element. * @@ -50420,7 +51248,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GridLayoutScreenCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), GridLayoutScreenCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + GridLayoutScreenCanvasSizeOptionsProperty { /** * The width that the view port will be optimized for when the layout renders. * @@ -51135,7 +51964,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.GrowthRateComputationProperty, - ) : CdkObject(cdkObject), GrowthRateComputationProperty { + ) : CdkObject(cdkObject), + GrowthRateComputationProperty { /** * The ID for a computation. * @@ -51385,7 +52215,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeaderFooterSectionConfigurationProperty, - ) : CdkObject(cdkObject), HeaderFooterSectionConfigurationProperty { + ) : CdkObject(cdkObject), + HeaderFooterSectionConfigurationProperty { /** * The layout configuration of the header or footer section. * @@ -51580,7 +52411,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeatMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapAggregatedFieldWellsProperty { /** * The columns field well of a heat map. * @@ -52025,7 +52857,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeatMapConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapConfigurationProperty { /** * The color options (gradient color, point of divergence) in a heat map. * @@ -52184,7 +53017,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeatMapFieldWellsProperty, - ) : CdkObject(cdkObject), HeatMapFieldWellsProperty { + ) : CdkObject(cdkObject), + HeatMapFieldWellsProperty { /** * The aggregated field wells of a heat map. * @@ -52521,7 +53355,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeatMapSortConfigurationProperty, - ) : CdkObject(cdkObject), HeatMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + HeatMapSortConfigurationProperty { /** * The limit on the number of columns that are displayed in a heat map. * @@ -52859,7 +53694,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HeatMapVisualProperty, - ) : CdkObject(cdkObject), HeatMapVisualProperty { + ) : CdkObject(cdkObject), + HeatMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -53255,7 +54091,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HistogramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramAggregatedFieldWellsProperty { /** * The value field wells of a histogram. * @@ -53459,7 +54296,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HistogramBinOptionsProperty, - ) : CdkObject(cdkObject), HistogramBinOptionsProperty { + ) : CdkObject(cdkObject), + HistogramBinOptionsProperty { /** * The options that determine the bin count of a histogram. * @@ -53911,7 +54749,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HistogramConfigurationProperty, - ) : CdkObject(cdkObject), HistogramConfigurationProperty { + ) : CdkObject(cdkObject), + HistogramConfigurationProperty { /** * The options that determine the presentation of histogram bins. * @@ -54322,7 +55161,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HistogramFieldWellsProperty, - ) : CdkObject(cdkObject), HistogramFieldWellsProperty { + ) : CdkObject(cdkObject), + HistogramFieldWellsProperty { /** * The field well configuration of a histogram. * @@ -54590,7 +55430,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.HistogramVisualProperty, - ) : CdkObject(cdkObject), HistogramVisualProperty { + ) : CdkObject(cdkObject), + HistogramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -54648,6 +55489,350 @@ public open class CfnTemplate( } } + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * InnerFilterProperty innerFilterProperty = InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-innerfilter.html) + */ + public interface InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-innerfilter.html#cfn-quicksight-template-innerfilter-categoryinnerfilter) + */ + public fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + + /** + * A builder for [InnerFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: IResolvable) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + public fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fc496e5fae262cf2601307eafe5632114c36942c4f17fcfe8b8a9854068aece5") + public + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty.builder() + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: IResolvable) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + override fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty) { + cdkBuilder.categoryInnerFilter(categoryInnerFilter.let(CategoryInnerFilterProperty.Companion::unwrap)) + } + + /** + * @param categoryInnerFilter A `CategoryInnerFilter` filters text values for the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("fc496e5fae262cf2601307eafe5632114c36942c4f17fcfe8b8a9854068aece5") + override + fun categoryInnerFilter(categoryInnerFilter: CategoryInnerFilterProperty.Builder.() -> Unit): + Unit = categoryInnerFilter(CategoryInnerFilterProperty(categoryInnerFilter)) + + public fun build(): software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty, + ) : CdkObject(cdkObject), + InnerFilterProperty { + /** + * A `CategoryInnerFilter` filters text values for the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-innerfilter.html#cfn-quicksight-template-innerfilter-categoryinnerfilter) + */ + override fun categoryInnerFilter(): Any? = unwrap(this).getCategoryInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): InnerFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty): + InnerFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? InnerFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: InnerFilterProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.InnerFilterProperty + } + } + /** * The configuration of an insight visual. * @@ -54767,7 +55952,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.InsightConfigurationProperty, - ) : CdkObject(cdkObject), InsightConfigurationProperty { + ) : CdkObject(cdkObject), + InsightConfigurationProperty { /** * The computations configurations of the insight visual. * @@ -55060,7 +56246,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.InsightVisualProperty, - ) : CdkObject(cdkObject), InsightVisualProperty { + ) : CdkObject(cdkObject), + InsightVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -55273,7 +56460,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.IntegerDefaultValuesProperty, - ) : CdkObject(cdkObject), IntegerDefaultValuesProperty { + ) : CdkObject(cdkObject), + IntegerDefaultValuesProperty { /** * The dynamic value of the `IntegerDefaultValues` . * @@ -55562,7 +56750,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.IntegerParameterDeclarationProperty, - ) : CdkObject(cdkObject), IntegerParameterDeclarationProperty { + ) : CdkObject(cdkObject), + IntegerParameterDeclarationProperty { /** * The default values of a parameter. * @@ -55707,7 +56896,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.IntegerValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), IntegerValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + IntegerValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -55834,7 +57024,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ItemsLimitConfigurationProperty, - ) : CdkObject(cdkObject), ItemsLimitConfigurationProperty { + ) : CdkObject(cdkObject), + ItemsLimitConfigurationProperty { /** * The limit on how many items of a field are showed in the chart. * @@ -56038,7 +57229,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIActualValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIActualValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIActualValueConditionalFormattingProperty { /** * The conditional formatting of the actual value's icon. * @@ -56238,7 +57430,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIComparisonValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIComparisonValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIComparisonValueConditionalFormattingProperty { /** * The conditional formatting of the comparison value's icon. * @@ -56639,7 +57832,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingOptionProperty { /** * The conditional formatting for the actual value of a KPI visual. * @@ -56905,7 +58099,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIConditionalFormattingProperty { /** * The conditional formatting options of a KPI visual. * @@ -57102,7 +58297,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIConfigurationProperty, - ) : CdkObject(cdkObject), KPIConfigurationProperty { + ) : CdkObject(cdkObject), + KPIConfigurationProperty { /** * The field well configuration of a KPI visual. * @@ -57296,7 +58492,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIFieldWellsProperty, - ) : CdkObject(cdkObject), KPIFieldWellsProperty { + ) : CdkObject(cdkObject), + KPIFieldWellsProperty { /** * The target value field wells of a KPI visual. * @@ -57898,7 +59095,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIOptionsProperty, - ) : CdkObject(cdkObject), KPIOptionsProperty { + ) : CdkObject(cdkObject), + KPIOptionsProperty { /** * The comparison configuration of a KPI visual. * @@ -58149,7 +59347,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIPrimaryValueConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIPrimaryValueConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIPrimaryValueConditionalFormattingProperty { /** * The conditional formatting of the primary value's icon. * @@ -58286,7 +59485,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIProgressBarConditionalFormattingProperty, - ) : CdkObject(cdkObject), KPIProgressBarConditionalFormattingProperty { + ) : CdkObject(cdkObject), + KPIProgressBarConditionalFormattingProperty { /** * The conditional formatting of the progress bar's foreground color. * @@ -58420,7 +59620,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPISortConfigurationProperty, - ) : CdkObject(cdkObject), KPISortConfigurationProperty { + ) : CdkObject(cdkObject), + KPISortConfigurationProperty { /** * The sort configuration of the trend group fields. * @@ -58564,7 +59765,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPISparklineOptionsProperty, - ) : CdkObject(cdkObject), KPISparklineOptionsProperty { + ) : CdkObject(cdkObject), + KPISparklineOptionsProperty { /** * The color of the sparkline. * @@ -58698,7 +59900,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIVisualLayoutOptionsProperty, - ) : CdkObject(cdkObject), KPIVisualLayoutOptionsProperty { + ) : CdkObject(cdkObject), + KPIVisualLayoutOptionsProperty { /** * The standard layout of the KPI visual. * @@ -59059,7 +60262,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIVisualProperty, - ) : CdkObject(cdkObject), KPIVisualProperty { + ) : CdkObject(cdkObject), + KPIVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -59187,7 +60391,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.KPIVisualStandardLayoutProperty, - ) : CdkObject(cdkObject), KPIVisualStandardLayoutProperty { + ) : CdkObject(cdkObject), + KPIVisualStandardLayoutProperty { /** * The standard layout type. * @@ -59346,7 +60551,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LabelOptionsProperty, - ) : CdkObject(cdkObject), LabelOptionsProperty { + ) : CdkObject(cdkObject), + LabelOptionsProperty { /** * The text for the label. * @@ -59833,7 +61039,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LayoutConfigurationProperty, - ) : CdkObject(cdkObject), LayoutConfigurationProperty { + ) : CdkObject(cdkObject), + LayoutConfigurationProperty { /** * A free-form is optimized for a fixed width and has more control over the exact placement of * layout elements. @@ -60198,7 +61405,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LayoutProperty, - ) : CdkObject(cdkObject), LayoutProperty { + ) : CdkObject(cdkObject), + LayoutProperty { /** * The configuration that determines what the type of layout for a sheet. * @@ -60421,7 +61629,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LegendOptionsProperty, - ) : CdkObject(cdkObject), LegendOptionsProperty { + ) : CdkObject(cdkObject), + LegendOptionsProperty { /** * The height of the legend. * @@ -60704,7 +61913,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartAggregatedFieldWellsProperty { /** * The category field wells of a line chart. * @@ -60854,6 +62064,11 @@ public open class CfnTemplate( */ public fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-linechartconfiguration.html#cfn-quicksight-template-linechartconfiguration-singleaxisoptions) + */ + public fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -61125,6 +62340,23 @@ public open class CfnTemplate( */ public fun series(vararg series: Any) + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: IResolvable) + + /** + * @param singleAxisOptions the value to be set. + */ + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1b3844924020a1209ef5a73b5beee1a32610b2ef1ec6b93da41df678bb8bb65") + public fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -61524,6 +62756,29 @@ public open class CfnTemplate( */ override fun series(vararg series: Any): Unit = series(series.toList()) + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: IResolvable) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + override fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty) { + cdkBuilder.singleAxisOptions(singleAxisOptions.let(SingleAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param singleAxisOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1b3844924020a1209ef5a73b5beee1a32610b2ef1ec6b93da41df678bb8bb65") + override + fun singleAxisOptions(singleAxisOptions: SingleAxisOptionsProperty.Builder.() -> Unit): + Unit = singleAxisOptions(SingleAxisOptionsProperty(singleAxisOptions)) + /** * @param smallMultiplesOptions The small multiples setup for the visual. */ @@ -61674,7 +62929,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartConfigurationProperty, - ) : CdkObject(cdkObject), LineChartConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartConfigurationProperty { /** * The default configuration of a line chart's contribution analysis. * @@ -61762,6 +63018,11 @@ public open class CfnTemplate( */ override fun series(): Any? = unwrap(this).getSeries() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-linechartconfiguration.html#cfn-quicksight-template-linechartconfiguration-singleaxisoptions) + */ + override fun singleAxisOptions(): Any? = unwrap(this).getSingleAxisOptions() + /** * The small multiples setup for the visual. * @@ -61994,7 +63255,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartDefaultSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartDefaultSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartDefaultSeriesSettingsProperty { /** * The axis to which you are binding all line series to. * @@ -62118,7 +63380,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartFieldWellsProperty, - ) : CdkObject(cdkObject), LineChartFieldWellsProperty { + ) : CdkObject(cdkObject), + LineChartFieldWellsProperty { /** * The field well configuration of a line chart. * @@ -62284,7 +63547,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartLineStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartLineStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartLineStyleSettingsProperty { /** * Interpolation style for line series. * @@ -62475,7 +63739,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartMarkerStyleSettingsProperty, - ) : CdkObject(cdkObject), LineChartMarkerStyleSettingsProperty { + ) : CdkObject(cdkObject), + LineChartMarkerStyleSettingsProperty { /** * Color of marker in the series. * @@ -62674,7 +63939,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), LineChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + LineChartSeriesSettingsProperty { /** * Line styles options for a line series in `LineChartVisual` . * @@ -63069,7 +64335,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartSortConfigurationProperty, - ) : CdkObject(cdkObject), LineChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + LineChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a line chart. * @@ -63416,7 +64683,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineChartVisualProperty, - ) : CdkObject(cdkObject), LineChartVisualProperty { + ) : CdkObject(cdkObject), + LineChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -63671,7 +64939,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LineSeriesAxisDisplayOptionsProperty, - ) : CdkObject(cdkObject), LineSeriesAxisDisplayOptionsProperty { + ) : CdkObject(cdkObject), + LineSeriesAxisDisplayOptionsProperty { /** * The options that determine the presentation of the line series axis. * @@ -63960,7 +65229,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ListControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), ListControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + ListControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -64065,7 +65335,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ListControlSearchOptionsProperty, - ) : CdkObject(cdkObject), ListControlSearchOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSearchOptionsProperty { /** * The visibility configuration of the search options in a list control. * @@ -64150,7 +65421,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ListControlSelectAllOptionsProperty, - ) : CdkObject(cdkObject), ListControlSelectAllOptionsProperty { + ) : CdkObject(cdkObject), + ListControlSelectAllOptionsProperty { /** * The visibility configuration of the `Select all` options in a list control. * @@ -64232,7 +65504,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LoadingAnimationProperty, - ) : CdkObject(cdkObject), LoadingAnimationProperty { + ) : CdkObject(cdkObject), + LoadingAnimationProperty { /** * The visibility configuration of `LoadingAnimation` . * @@ -64315,7 +65588,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LocalNavigationConfigurationProperty, - ) : CdkObject(cdkObject), LocalNavigationConfigurationProperty { + ) : CdkObject(cdkObject), + LocalNavigationConfigurationProperty { /** * The sheet that is targeted for navigation in the same analysis. * @@ -64424,7 +65698,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.LongFormatTextProperty, - ) : CdkObject(cdkObject), LongFormatTextProperty { + ) : CdkObject(cdkObject), + LongFormatTextProperty { /** * Plain text format. * @@ -64538,7 +65813,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MappedDataSetParameterProperty, - ) : CdkObject(cdkObject), MappedDataSetParameterProperty { + ) : CdkObject(cdkObject), + MappedDataSetParameterProperty { /** * A unique name that identifies a dataset within the analysis or dashboard. * @@ -64626,7 +65902,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MaximumLabelTypeProperty, - ) : CdkObject(cdkObject), MaximumLabelTypeProperty { + ) : CdkObject(cdkObject), + MaximumLabelTypeProperty { /** * The visibility of the maximum label. * @@ -65333,7 +66610,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MaximumMinimumComputationProperty, - ) : CdkObject(cdkObject), MaximumMinimumComputationProperty { + ) : CdkObject(cdkObject), + MaximumMinimumComputationProperty { /** * The ID for a computation. * @@ -65861,7 +67139,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MeasureFieldProperty, - ) : CdkObject(cdkObject), MeasureFieldProperty { + ) : CdkObject(cdkObject), + MeasureFieldProperty { /** * The calculated measure field only used in pivot tables. * @@ -66115,7 +67394,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MetricComparisonComputationProperty, - ) : CdkObject(cdkObject), MetricComparisonComputationProperty { + ) : CdkObject(cdkObject), + MetricComparisonComputationProperty { /** * The ID for a computation. * @@ -66225,7 +67505,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MinimumLabelTypeProperty, - ) : CdkObject(cdkObject), MinimumLabelTypeProperty { + ) : CdkObject(cdkObject), + MinimumLabelTypeProperty { /** * The visibility of the minimum label. * @@ -66322,7 +67603,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.MissingDataConfigurationProperty, - ) : CdkObject(cdkObject), MissingDataConfigurationProperty { + ) : CdkObject(cdkObject), + MissingDataConfigurationProperty { /** * The treatment option that determines how missing data should be rendered. Choose from the * following options:. @@ -66410,7 +67692,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NegativeValueConfigurationProperty, - ) : CdkObject(cdkObject), NegativeValueConfigurationProperty { + ) : CdkObject(cdkObject), + NegativeValueConfigurationProperty { /** * Determines the display mode of the negative value configuration. * @@ -66438,6 +67721,486 @@ public open class CfnTemplate( } } + /** + * A `NestedFilter` filters data with a subset of data that is defined by the nested inner filter. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * NestedFilterProperty nestedFilterProperty = NestedFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .filterId("filterId") + * .includeInnerSet(false) + * .innerFilter(InnerFilterProperty.builder() + * .categoryInnerFilter(CategoryInnerFilterProperty.builder() + * .column(ColumnIdentifierProperty.builder() + * .columnName("columnName") + * .dataSetIdentifier("dataSetIdentifier") + * .build()) + * .configuration(CategoryFilterConfigurationProperty.builder() + * .customFilterConfiguration(CustomFilterConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValue("categoryValue") + * .parameterName("parameterName") + * .selectAllOptions("selectAllOptions") + * .build()) + * .customFilterListConfiguration(CustomFilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * .nullOption("nullOption") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .selectAllOptions("selectAllOptions") + * .build()) + * .filterListConfiguration(FilterListConfigurationProperty.builder() + * .matchOperator("matchOperator") + * // the properties below are optional + * .categoryValues(List.of("categoryValues")) + * .nullOption("nullOption") + * .selectAllOptions("selectAllOptions") + * .build()) + * .build()) + * // the properties below are optional + * .defaultFilterControlConfiguration(DefaultFilterControlConfigurationProperty.builder() + * .controlOptions(DefaultFilterControlOptionsProperty.builder() + * .defaultDateTimePickerOptions(DefaultDateTimePickerControlOptionsProperty.builder() + * .displayOptions(DateTimePickerControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultDropdownOptions(DefaultFilterDropDownControlOptionsProperty.builder() + * .displayOptions(DropDownControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultListOptions(DefaultFilterListControlOptionsProperty.builder() + * .displayOptions(ListControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .searchOptions(ListControlSearchOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .selectAllOptions(ListControlSelectAllOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .selectableValues(FilterSelectableValuesProperty.builder() + * .values(List.of("values")) + * .build()) + * .type("type") + * .build()) + * .defaultRelativeDateTimeOptions(DefaultRelativeDateTimeControlOptionsProperty.builder() + * .displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder() + * .dateTimeFormat("dateTimeFormat") + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultSliderOptions(DefaultSliderControlOptionsProperty.builder() + * .maximumValue(123) + * .minimumValue(123) + * .stepSize(123) + * // the properties below are optional + * .displayOptions(SliderControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .type("type") + * .build()) + * .defaultTextAreaOptions(DefaultTextAreaControlOptionsProperty.builder() + * .delimiter("delimiter") + * .displayOptions(TextAreaControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .defaultTextFieldOptions(DefaultTextFieldControlOptionsProperty.builder() + * .displayOptions(TextFieldControlDisplayOptionsProperty.builder() + * .infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder() + * .infoIconText("infoIconText") + * .visibility("visibility") + * .build()) + * .placeholderOptions(TextControlPlaceholderOptionsProperty.builder() + * .visibility("visibility") + * .build()) + * .titleOptions(LabelOptionsProperty.builder() + * .customLabel("customLabel") + * .fontConfiguration(FontConfigurationProperty.builder() + * .fontColor("fontColor") + * .fontDecoration("fontDecoration") + * .fontSize(FontSizeProperty.builder() + * .relative("relative") + * .build()) + * .fontStyle("fontStyle") + * .fontWeight(FontWeightProperty.builder() + * .name("name") + * .build()) + * .build()) + * .visibility("visibility") + * .build()) + * .build()) + * .build()) + * .build()) + * .title("title") + * .build()) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html) + */ + public interface NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-column) + */ + public fun column(): Any + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-filterid) + */ + public fun filterId(): String + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-includeinnerset) + */ + public fun includeInnerSet(): Any + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-innerfilter) + */ + public fun innerFilter(): Any + + /** + * A builder for [NestedFilterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: IResolvable) + + /** + * @param column The column that the filter is applied to. + */ + public fun column(column: ColumnIdentifierProperty) + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("aa2ea87484814ab8eb686f8f60af999f8b5b6a99fc16fc1e86a90663cef4ba22") + public fun column(column: ColumnIdentifierProperty.Builder.() -> Unit) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + public fun filterId(filterId: String) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: Boolean) + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + public fun includeInnerSet(includeInnerSet: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: IResolvable) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + public fun innerFilter(innerFilter: InnerFilterProperty) + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f3ce5a8f22d0c1b81175c47a9fdaa7b60054bd145870a4eccfaecf325a61812f") + public fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty.builder() + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: IResolvable) { + cdkBuilder.column(column.let(IResolvable.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + override fun column(column: ColumnIdentifierProperty) { + cdkBuilder.column(column.let(ColumnIdentifierProperty.Companion::unwrap)) + } + + /** + * @param column The column that the filter is applied to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("aa2ea87484814ab8eb686f8f60af999f8b5b6a99fc16fc1e86a90663cef4ba22") + override fun column(column: ColumnIdentifierProperty.Builder.() -> Unit): Unit = + column(ColumnIdentifierProperty(column)) + + /** + * @param filterId An identifier that uniquely identifies a filter within a dashboard, + * analysis, or template. + */ + override fun filterId(filterId: String) { + cdkBuilder.filterId(filterId) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: Boolean) { + cdkBuilder.includeInnerSet(includeInnerSet) + } + + /** + * @param includeInnerSet A boolean condition to include or exclude the subset that is defined + * by the values of the nested inner filter. + */ + override fun includeInnerSet(includeInnerSet: IResolvable) { + cdkBuilder.includeInnerSet(includeInnerSet.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: IResolvable) { + cdkBuilder.innerFilter(innerFilter.let(IResolvable.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + override fun innerFilter(innerFilter: InnerFilterProperty) { + cdkBuilder.innerFilter(innerFilter.let(InnerFilterProperty.Companion::unwrap)) + } + + /** + * @param innerFilter The `InnerFilter` defines the subset of data to be used with the + * `NestedFilter` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f3ce5a8f22d0c1b81175c47a9fdaa7b60054bd145870a4eccfaecf325a61812f") + override fun innerFilter(innerFilter: InnerFilterProperty.Builder.() -> Unit): Unit = + innerFilter(InnerFilterProperty(innerFilter)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty, + ) : CdkObject(cdkObject), + NestedFilterProperty { + /** + * The column that the filter is applied to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-column) + */ + override fun column(): Any = unwrap(this).getColumn() + + /** + * An identifier that uniquely identifies a filter within a dashboard, analysis, or template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-filterid) + */ + override fun filterId(): String = unwrap(this).getFilterId() + + /** + * A boolean condition to include or exclude the subset that is defined by the values of the + * nested inner filter. + * + * Default: - false + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-includeinnerset) + */ + override fun includeInnerSet(): Any = unwrap(this).getIncludeInnerSet() + + /** + * The `InnerFilter` defines the subset of data to be used with the `NestedFilter` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-nestedfilter.html#cfn-quicksight-template-nestedfilter-innerfilter) + */ + override fun innerFilter(): Any = unwrap(this).getInnerFilter() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): NestedFilterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty): + NestedFilterProperty = CdkObjectWrappers.wrap(cdkObject) as? NestedFilterProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: NestedFilterProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.NestedFilterProperty + } + } + /** * The options that determine the null value format configuration. * @@ -66494,7 +68257,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NullValueFormatConfigurationProperty, - ) : CdkObject(cdkObject), NullValueFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NullValueFormatConfigurationProperty { /** * Determines the null string of null values. * @@ -66862,7 +68626,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumberDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -67082,7 +68847,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumberFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumberFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumberFormatConfigurationProperty { /** * The options that determine the numeric format configuration. * @@ -67254,7 +69020,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericAxisOptionsProperty, - ) : CdkObject(cdkObject), NumericAxisOptionsProperty { + ) : CdkObject(cdkObject), + NumericAxisOptionsProperty { /** * The range setup of a numeric axis. * @@ -67396,7 +69163,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericEqualityDrillDownFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityDrillDownFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -67989,7 +69757,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericEqualityFilterProperty, - ) : CdkObject(cdkObject), NumericEqualityFilterProperty { + ) : CdkObject(cdkObject), + NumericEqualityFilterProperty { /** * The aggregation function of the filter. * @@ -68360,7 +70129,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericFormatConfigurationProperty, - ) : CdkObject(cdkObject), NumericFormatConfigurationProperty { + ) : CdkObject(cdkObject), + NumericFormatConfigurationProperty { /** * The options that determine the currency display format configuration. * @@ -69072,7 +70842,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericRangeFilterProperty, - ) : CdkObject(cdkObject), NumericRangeFilterProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterProperty { /** * The aggregation function of the filter. * @@ -69249,7 +71020,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericRangeFilterValueProperty, - ) : CdkObject(cdkObject), NumericRangeFilterValueProperty { + ) : CdkObject(cdkObject), + NumericRangeFilterValueProperty { /** * The parameter that is used in the numeric range. * @@ -69391,7 +71163,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericSeparatorConfigurationProperty, - ) : CdkObject(cdkObject), NumericSeparatorConfigurationProperty { + ) : CdkObject(cdkObject), + NumericSeparatorConfigurationProperty { /** * Determines the decimal separator. * @@ -69573,7 +71346,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericalAggregationFunctionProperty, - ) : CdkObject(cdkObject), NumericalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + NumericalAggregationFunctionProperty { /** * An aggregation based on the percentile of values in a dimension or measure. * @@ -69863,7 +71637,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericalDimensionFieldProperty, - ) : CdkObject(cdkObject), NumericalDimensionFieldProperty { + ) : CdkObject(cdkObject), + NumericalDimensionFieldProperty { /** * The column that is used in the `NumericalDimensionField` . * @@ -70187,7 +71962,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.NumericalMeasureFieldProperty, - ) : CdkObject(cdkObject), NumericalMeasureFieldProperty { + ) : CdkObject(cdkObject), + NumericalMeasureFieldProperty { /** * The aggregation function of the measure field. * @@ -70311,7 +72087,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PaginationConfigurationProperty, - ) : CdkObject(cdkObject), PaginationConfigurationProperty { + ) : CdkObject(cdkObject), + PaginationConfigurationProperty { /** * Indicates the page number. * @@ -70607,7 +72384,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PanelConfigurationProperty, - ) : CdkObject(cdkObject), PanelConfigurationProperty { + ) : CdkObject(cdkObject), + PanelConfigurationProperty { /** * Sets the background color for each panel. * @@ -70822,7 +72600,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PanelTitleOptionsProperty, - ) : CdkObject(cdkObject), PanelTitleOptionsProperty { + ) : CdkObject(cdkObject), + PanelTitleOptionsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-paneltitleoptions.html#cfn-quicksight-template-paneltitleoptions-fontconfiguration) */ @@ -71413,7 +73192,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterControlProperty, - ) : CdkObject(cdkObject), ParameterControlProperty { + ) : CdkObject(cdkObject), + ParameterControlProperty { /** * A control from a date parameter that specifies date and time. * @@ -71645,7 +73425,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterDateTimePickerControlProperty, - ) : CdkObject(cdkObject), ParameterDateTimePickerControlProperty { + ) : CdkObject(cdkObject), + ParameterDateTimePickerControlProperty { /** * The display options of a control. * @@ -72070,7 +73851,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterDeclarationProperty, - ) : CdkObject(cdkObject), ParameterDeclarationProperty { + ) : CdkObject(cdkObject), + ParameterDeclarationProperty { /** * A parameter declaration for the `DateTime` data type. * @@ -72433,7 +74215,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterDropDownControlProperty, - ) : CdkObject(cdkObject), ParameterDropDownControlProperty { + ) : CdkObject(cdkObject), + ParameterDropDownControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -72820,7 +74603,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterListControlProperty, - ) : CdkObject(cdkObject), ParameterListControlProperty { + ) : CdkObject(cdkObject), + ParameterListControlProperty { /** * The values that are displayed in a control can be configured to only show values that are * valid based on what's selected in other controls. @@ -73009,7 +74793,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterSelectableValuesProperty, - ) : CdkObject(cdkObject), ParameterSelectableValuesProperty { + ) : CdkObject(cdkObject), + ParameterSelectableValuesProperty { /** * The column identifier that fetches values from the data set. * @@ -73278,7 +75063,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterSliderControlProperty, - ) : CdkObject(cdkObject), ParameterSliderControlProperty { + ) : CdkObject(cdkObject), + ParameterSliderControlProperty { /** * The display options of a control. * @@ -73542,7 +75328,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterTextAreaControlProperty, - ) : CdkObject(cdkObject), ParameterTextAreaControlProperty { + ) : CdkObject(cdkObject), + ParameterTextAreaControlProperty { /** * The delimiter that is used to separate the lines in text. * @@ -73766,7 +75553,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ParameterTextFieldControlProperty, - ) : CdkObject(cdkObject), ParameterTextFieldControlProperty { + ) : CdkObject(cdkObject), + ParameterTextFieldControlProperty { /** * The display options of a control. * @@ -73890,7 +75678,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PercentVisibleRangeProperty, - ) : CdkObject(cdkObject), PercentVisibleRangeProperty { + ) : CdkObject(cdkObject), + PercentVisibleRangeProperty { /** * The lower bound of the range. * @@ -74244,7 +76033,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PercentageDisplayFormatConfigurationProperty, - ) : CdkObject(cdkObject), PercentageDisplayFormatConfigurationProperty { + ) : CdkObject(cdkObject), + PercentageDisplayFormatConfigurationProperty { /** * The option that determines the decimal places configuration. * @@ -74371,7 +76161,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PercentileAggregationProperty, - ) : CdkObject(cdkObject), PercentileAggregationProperty { + ) : CdkObject(cdkObject), + PercentileAggregationProperty { /** * The percentile value. * @@ -75054,7 +76845,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PeriodOverPeriodComputationProperty, - ) : CdkObject(cdkObject), PeriodOverPeriodComputationProperty { + ) : CdkObject(cdkObject), + PeriodOverPeriodComputationProperty { /** * The ID for a computation. * @@ -75785,7 +77577,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PeriodToDateComputationProperty, - ) : CdkObject(cdkObject), PeriodToDateComputationProperty { + ) : CdkObject(cdkObject), + PeriodToDateComputationProperty { /** * The ID for a computation. * @@ -76006,7 +77799,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PieChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartAggregatedFieldWellsProperty { /** * The category (group/color) field wells of a pie chart. * @@ -76610,7 +78404,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PieChartConfigurationProperty, - ) : CdkObject(cdkObject), PieChartConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartConfigurationProperty { /** * The label options of the group/color that is displayed in a pie chart. * @@ -76794,7 +78589,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PieChartFieldWellsProperty, - ) : CdkObject(cdkObject), PieChartFieldWellsProperty { + ) : CdkObject(cdkObject), + PieChartFieldWellsProperty { /** * The field well configuration of a pie chart. * @@ -77118,7 +78914,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PieChartSortConfigurationProperty, - ) : CdkObject(cdkObject), PieChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + PieChartSortConfigurationProperty { /** * The limit on the number of categories that are displayed in a pie chart. * @@ -77467,7 +79264,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PieChartVisualProperty, - ) : CdkObject(cdkObject), PieChartVisualProperty { + ) : CdkObject(cdkObject), + PieChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -77672,7 +79470,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotFieldSortOptionsProperty, - ) : CdkObject(cdkObject), PivotFieldSortOptionsProperty { + ) : CdkObject(cdkObject), + PivotFieldSortOptionsProperty { /** * The field ID for the field sort options. * @@ -77883,7 +79682,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableAggregatedFieldWellsProperty { /** * The columns field well for a pivot table. * @@ -78184,7 +79984,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -78382,7 +80183,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a pivot table. * @@ -78563,7 +80365,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableConditionalFormattingProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -78650,7 +80453,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableConditionalFormattingScopeProperty, - ) : CdkObject(cdkObject), PivotTableConditionalFormattingScopeProperty { + ) : CdkObject(cdkObject), + PivotTableConditionalFormattingScopeProperty { /** * The role (field, field total, grand total) of the cell for conditional formatting. * @@ -78991,7 +80795,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableConfigurationProperty { /** * The field options for a pivot table visual. * @@ -79159,7 +80964,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableDataPathOptionProperty, - ) : CdkObject(cdkObject), PivotTableDataPathOptionProperty { + ) : CdkObject(cdkObject), + PivotTableDataPathOptionProperty { /** * The list of data path values for the data path options. * @@ -79315,7 +81121,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldCollapseStateOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateOptionProperty { /** * The state of the field target of a pivot table. Choose one of the following options:. * @@ -79466,7 +81273,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldCollapseStateTargetProperty, - ) : CdkObject(cdkObject), PivotTableFieldCollapseStateTargetProperty { + ) : CdkObject(cdkObject), + PivotTableFieldCollapseStateTargetProperty { /** * The data path of the pivot table's header. * @@ -79600,7 +81408,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldOptionProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionProperty { /** * The custom label of the pivot table field. * @@ -79834,7 +81643,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldOptionsProperty { /** * The collapse state options for the pivot table field options. * @@ -79931,7 +81741,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldSubtotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableFieldSubtotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldSubtotalOptionsProperty { /** * The field ID of the subtotal options. * @@ -80044,7 +81855,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableFieldWellsProperty, - ) : CdkObject(cdkObject), PivotTableFieldWellsProperty { + ) : CdkObject(cdkObject), + PivotTableFieldWellsProperty { /** * The aggregated field well for the pivot table. * @@ -80808,7 +82620,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableOptionsProperty, - ) : CdkObject(cdkObject), PivotTableOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableOptionsProperty { /** * The table cell style of cells. * @@ -81011,7 +82824,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), PivotTablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + PivotTablePaginatedReportOptionsProperty { /** * The visibility of the repeating header rows on each page. * @@ -81126,7 +82940,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableRowsLabelOptionsProperty, - ) : CdkObject(cdkObject), PivotTableRowsLabelOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableRowsLabelOptionsProperty { /** * The custom label string for the rows label. * @@ -81375,7 +83190,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableSortByProperty, - ) : CdkObject(cdkObject), PivotTableSortByProperty { + ) : CdkObject(cdkObject), + PivotTableSortByProperty { /** * The column sort (field id, direction) for the pivot table sort by options. * @@ -81535,7 +83351,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableSortConfigurationProperty, - ) : CdkObject(cdkObject), PivotTableSortConfigurationProperty { + ) : CdkObject(cdkObject), + PivotTableSortConfigurationProperty { /** * The field sort options for a pivot table sort configuration. * @@ -81782,7 +83599,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTableTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTableTotalOptionsProperty { /** * The column subtotal options. * @@ -82121,7 +83939,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTableVisualProperty, - ) : CdkObject(cdkObject), PivotTableVisualProperty { + ) : CdkObject(cdkObject), + PivotTableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -82662,7 +84481,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PivotTotalOptionsProperty, - ) : CdkObject(cdkObject), PivotTotalOptionsProperty { + ) : CdkObject(cdkObject), + PivotTotalOptionsProperty { /** * The custom label string for the total cells. * @@ -82915,7 +84735,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.PredefinedHierarchyProperty, - ) : CdkObject(cdkObject), PredefinedHierarchyProperty { + ) : CdkObject(cdkObject), + PredefinedHierarchyProperty { /** * The list of columns that define the predefined hierarchy. * @@ -83011,7 +84832,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ProgressBarOptionsProperty, - ) : CdkObject(cdkObject), ProgressBarOptionsProperty { + ) : CdkObject(cdkObject), + ProgressBarOptionsProperty { /** * The visibility of the progress bar. * @@ -83038,6 +84860,90 @@ public open class CfnTemplate( } } + /** + * A structure that describes the query execution options. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * QueryExecutionOptionsProperty queryExecutionOptionsProperty = + * QueryExecutionOptionsProperty.builder() + * .queryExecutionMode("queryExecutionMode") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-queryexecutionoptions.html) + */ + public interface QueryExecutionOptionsProperty { + /** + * A structure that describes the query execution mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-queryexecutionoptions.html#cfn-quicksight-template-queryexecutionoptions-queryexecutionmode) + */ + public fun queryExecutionMode(): String? = unwrap(this).getQueryExecutionMode() + + /** + * A builder for [QueryExecutionOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param queryExecutionMode A structure that describes the query execution mode. + */ + public fun queryExecutionMode(queryExecutionMode: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty.Builder + = + software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty.builder() + + /** + * @param queryExecutionMode A structure that describes the query execution mode. + */ + override fun queryExecutionMode(queryExecutionMode: String) { + cdkBuilder.queryExecutionMode(queryExecutionMode) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty, + ) : CdkObject(cdkObject), + QueryExecutionOptionsProperty { + /** + * A structure that describes the query execution mode. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-queryexecutionoptions.html#cfn-quicksight-template-queryexecutionoptions-queryexecutionmode) + */ + override fun queryExecutionMode(): String? = unwrap(this).getQueryExecutionMode() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): QueryExecutionOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty): + QueryExecutionOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + QueryExecutionOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: QueryExecutionOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.QueryExecutionOptionsProperty + } + } + /** * The aggregated field well configuration of a `RadarChartVisual` . * @@ -83191,7 +85097,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartAggregatedFieldWellsProperty { /** * The aggregated field well categories of a radar chart. * @@ -83289,7 +85196,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartAreaStyleSettingsProperty, - ) : CdkObject(cdkObject), RadarChartAreaStyleSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartAreaStyleSettingsProperty { /** * The visibility settings of a radar chart. * @@ -83890,7 +85798,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartConfigurationProperty { /** * Determines the visibility of the colors of alternatign bands in a radar chart. * @@ -84098,7 +86007,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartFieldWellsProperty, - ) : CdkObject(cdkObject), RadarChartFieldWellsProperty { + ) : CdkObject(cdkObject), + RadarChartFieldWellsProperty { /** * The aggregated field wells of a radar chart visual. * @@ -84213,7 +86123,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartSeriesSettingsProperty, - ) : CdkObject(cdkObject), RadarChartSeriesSettingsProperty { + ) : CdkObject(cdkObject), + RadarChartSeriesSettingsProperty { /** * The area style settings of a radar chart. * @@ -84519,7 +86430,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartSortConfigurationProperty, - ) : CdkObject(cdkObject), RadarChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + RadarChartSortConfigurationProperty { /** * The category items limit for a radar chart. * @@ -84852,7 +86764,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RadarChartVisualProperty, - ) : CdkObject(cdkObject), RadarChartVisualProperty { + ) : CdkObject(cdkObject), + RadarChartVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -84972,7 +86885,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RangeEndsLabelTypeProperty, - ) : CdkObject(cdkObject), RangeEndsLabelTypeProperty { + ) : CdkObject(cdkObject), + RangeEndsLabelTypeProperty { /** * The visibility of the range ends label. * @@ -85055,7 +86969,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineCustomLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineCustomLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineCustomLabelConfigurationProperty { /** * The string text of the custom label. * @@ -85322,7 +87237,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDataConfigurationProperty { /** * The axis binding type of the reference line. Choose one of the following options:. * @@ -85587,7 +87503,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineDynamicDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineDynamicDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineDynamicDataConfigurationProperty { /** * The calculation that is used in the dynamic data. * @@ -85991,7 +87908,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineLabelConfigurationProperty { /** * The custom label configuration of the label in a reference line. * @@ -86394,7 +88312,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineProperty, - ) : CdkObject(cdkObject), ReferenceLineProperty { + ) : CdkObject(cdkObject), + ReferenceLineProperty { /** * The data configuration of the reference line. * @@ -86503,7 +88422,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineStaticDataConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStaticDataConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStaticDataConfigurationProperty { /** * The double input of the static data. * @@ -86619,7 +88539,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineStyleConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineStyleConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineStyleConfigurationProperty { /** * The hex color of the reference line. * @@ -86836,7 +88757,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ReferenceLineValueLabelConfigurationProperty, - ) : CdkObject(cdkObject), ReferenceLineValueLabelConfigurationProperty { + ) : CdkObject(cdkObject), + ReferenceLineValueLabelConfigurationProperty { /** * The format configuration of the value label. * @@ -87046,7 +88968,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RelativeDateTimeControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), RelativeDateTimeControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + RelativeDateTimeControlDisplayOptionsProperty { /** * Customize how dates are formatted in controls. * @@ -87725,7 +89648,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RelativeDatesFilterProperty, - ) : CdkObject(cdkObject), RelativeDatesFilterProperty { + ) : CdkObject(cdkObject), + RelativeDatesFilterProperty { /** * The date configuration of the filter. * @@ -87962,7 +89886,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permissions on. * @@ -88086,7 +90011,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RollingDateConfigurationProperty, - ) : CdkObject(cdkObject), RollingDateConfigurationProperty { + ) : CdkObject(cdkObject), + RollingDateConfigurationProperty { /** * The data set that is used in the rolling date configuration. * @@ -88228,7 +90154,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.RowAlternateColorOptionsProperty, - ) : CdkObject(cdkObject), RowAlternateColorOptionsProperty { + ) : CdkObject(cdkObject), + RowAlternateColorOptionsProperty { /** * Determines the list of row alternate colors. * @@ -88375,7 +90302,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SameSheetTargetVisualConfigurationProperty, - ) : CdkObject(cdkObject), SameSheetTargetVisualConfigurationProperty { + ) : CdkObject(cdkObject), + SameSheetTargetVisualConfigurationProperty { /** * The options that choose the target visual in the same sheet. * @@ -88567,7 +90495,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SankeyDiagramAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramAggregatedFieldWellsProperty { /** * The destination field wells of a sankey diagram. * @@ -88779,7 +90708,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SankeyDiagramChartConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramChartConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramChartConfigurationProperty { /** * The data label configuration of a sankey diagram. * @@ -88904,7 +90834,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SankeyDiagramFieldWellsProperty, - ) : CdkObject(cdkObject), SankeyDiagramFieldWellsProperty { + ) : CdkObject(cdkObject), + SankeyDiagramFieldWellsProperty { /** * The field well configuration of a sankey diagram. * @@ -89153,7 +91084,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SankeyDiagramSortConfigurationProperty, - ) : CdkObject(cdkObject), SankeyDiagramSortConfigurationProperty { + ) : CdkObject(cdkObject), + SankeyDiagramSortConfigurationProperty { /** * The limit on the number of destination nodes that are displayed in a sankey diagram. * @@ -89436,7 +91368,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SankeyDiagramVisualProperty, - ) : CdkObject(cdkObject), SankeyDiagramVisualProperty { + ) : CdkObject(cdkObject), + SankeyDiagramVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -89745,7 +91678,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScatterPlotCategoricallyAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotCategoricallyAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotCategoricallyAggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -90285,7 +92219,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScatterPlotConfigurationProperty, - ) : CdkObject(cdkObject), ScatterPlotConfigurationProperty { + ) : CdkObject(cdkObject), + ScatterPlotConfigurationProperty { /** * The options that determine if visual data labels are displayed. * @@ -90541,7 +92476,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScatterPlotFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotFieldWellsProperty { /** * The aggregated field wells of a scatter plot. * @@ -90833,7 +92769,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScatterPlotUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), ScatterPlotUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + ScatterPlotUnaggregatedFieldWellsProperty { /** * The category field well of a scatter plot. * @@ -91181,7 +93118,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScatterPlotVisualProperty, - ) : CdkObject(cdkObject), ScatterPlotVisualProperty { + ) : CdkObject(cdkObject), + ScatterPlotVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -91352,7 +93290,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ScrollBarOptionsProperty, - ) : CdkObject(cdkObject), ScrollBarOptionsProperty { + ) : CdkObject(cdkObject), + ScrollBarOptionsProperty { /** * The visibility of the data zoom scroll bar. * @@ -91442,7 +93381,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SecondaryValueOptionsProperty, - ) : CdkObject(cdkObject), SecondaryValueOptionsProperty { + ) : CdkObject(cdkObject), + SecondaryValueOptionsProperty { /** * Determines the visibility of the secondary value. * @@ -91525,7 +93465,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionAfterPageBreakProperty, - ) : CdkObject(cdkObject), SectionAfterPageBreakProperty { + ) : CdkObject(cdkObject), + SectionAfterPageBreakProperty { /** * The option that enables or disables a page break at the end of a section. * @@ -91649,7 +93590,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionBasedLayoutCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutCanvasSizeOptionsProperty { /** * The options for a paper canvas of a section-based layout. * @@ -92051,7 +93993,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionBasedLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutConfigurationProperty { /** * A list of body section configurations. * @@ -92245,7 +94188,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionBasedLayoutPaperCanvasSizeOptionsProperty, - ) : CdkObject(cdkObject), SectionBasedLayoutPaperCanvasSizeOptionsProperty { + ) : CdkObject(cdkObject), + SectionBasedLayoutPaperCanvasSizeOptionsProperty { /** * Defines the spacing between the canvas content and the top, bottom, left, and right edges. * @@ -92408,7 +94352,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SectionLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SectionLayoutConfigurationProperty { /** * The free-form layout configuration of a section. * @@ -92521,7 +94466,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionPageBreakConfigurationProperty, - ) : CdkObject(cdkObject), SectionPageBreakConfigurationProperty { + ) : CdkObject(cdkObject), + SectionPageBreakConfigurationProperty { /** * The configuration of a page break after a section. * @@ -92676,7 +94622,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SectionStyleProperty, - ) : CdkObject(cdkObject), SectionStyleProperty { + ) : CdkObject(cdkObject), + SectionStyleProperty { /** * The height of a section. * @@ -92812,7 +94759,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SelectedSheetsFilterScopeConfigurationProperty, - ) : CdkObject(cdkObject), SelectedSheetsFilterScopeConfigurationProperty { + ) : CdkObject(cdkObject), + SelectedSheetsFilterScopeConfigurationProperty { /** * The sheet ID and visual IDs of the sheet and visuals that the filter is applied to. * @@ -93010,7 +94958,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SeriesItemProperty, - ) : CdkObject(cdkObject), SeriesItemProperty { + ) : CdkObject(cdkObject), + SeriesItemProperty { /** * The data field series item configuration of a line chart. * @@ -93166,7 +95115,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SetParameterValueConfigurationProperty, - ) : CdkObject(cdkObject), SetParameterValueConfigurationProperty { + ) : CdkObject(cdkObject), + SetParameterValueConfigurationProperty { /** * The destination parameter name of the `SetParameterValueConfiguration` . * @@ -93307,7 +95257,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ShapeConditionalFormatProperty, - ) : CdkObject(cdkObject), ShapeConditionalFormatProperty { + ) : CdkObject(cdkObject), + ShapeConditionalFormatProperty { /** * The conditional formatting for the shape background color of a filled map visual. * @@ -93410,7 +95361,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetControlInfoIconLabelOptionsProperty, - ) : CdkObject(cdkObject), SheetControlInfoIconLabelOptionsProperty { + ) : CdkObject(cdkObject), + SheetControlInfoIconLabelOptionsProperty { /** * The text content of info icon. * @@ -93552,7 +95504,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetControlLayoutConfigurationProperty, - ) : CdkObject(cdkObject), SheetControlLayoutConfigurationProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutConfigurationProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -93690,7 +95643,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetControlLayoutProperty, - ) : CdkObject(cdkObject), SheetControlLayoutProperty { + ) : CdkObject(cdkObject), + SheetControlLayoutProperty { /** * The configuration that determines the elements and canvas size options of sheet control. * @@ -94180,7 +96134,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetDefinitionProperty, - ) : CdkObject(cdkObject), SheetDefinitionProperty { + ) : CdkObject(cdkObject), + SheetDefinitionProperty { /** * The layout content type of the sheet. Choose one of the following options:. * @@ -94361,7 +96316,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetElementConfigurationOverridesProperty, - ) : CdkObject(cdkObject), SheetElementConfigurationOverridesProperty { + ) : CdkObject(cdkObject), + SheetElementConfigurationOverridesProperty { /** * Determines whether or not the overrides are visible. Choose one of the following options:. * @@ -94508,7 +96464,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetElementRenderingRuleProperty, - ) : CdkObject(cdkObject), SheetElementRenderingRuleProperty { + ) : CdkObject(cdkObject), + SheetElementRenderingRuleProperty { /** * The override configuration of the rendering rules of a sheet. * @@ -94625,7 +96582,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetProperty, - ) : CdkObject(cdkObject), SheetProperty { + ) : CdkObject(cdkObject), + SheetProperty { /** * The name of a sheet. * @@ -94742,7 +96700,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetTextBoxProperty, - ) : CdkObject(cdkObject), SheetTextBoxProperty { + ) : CdkObject(cdkObject), + SheetTextBoxProperty { /** * The content that is displayed in the text box. * @@ -94893,7 +96852,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SheetVisualScopingConfigurationProperty, - ) : CdkObject(cdkObject), SheetVisualScopingConfigurationProperty { + ) : CdkObject(cdkObject), + SheetVisualScopingConfigurationProperty { /** * The scope of the applied entities. Choose one of the following options:. * @@ -95019,7 +96979,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ShortFormatTextProperty, - ) : CdkObject(cdkObject), ShortFormatTextProperty { + ) : CdkObject(cdkObject), + ShortFormatTextProperty { /** * Plain text format. * @@ -95110,7 +97071,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SimpleClusterMarkerProperty, - ) : CdkObject(cdkObject), SimpleClusterMarkerProperty { + ) : CdkObject(cdkObject), + SimpleClusterMarkerProperty { /** * The color of the simple cluster marker. * @@ -95137,6 +97099,117 @@ public open class CfnTemplate( } } + /** + * The settings of a chart's single axis configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * SingleAxisOptionsProperty singleAxisOptionsProperty = SingleAxisOptionsProperty.builder() + * .yAxisOptions(YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-singleaxisoptions.html) + */ + public interface SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-singleaxisoptions.html#cfn-quicksight-template-singleaxisoptions-yaxisoptions) + */ + public fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + + /** + * A builder for [SingleAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: IResolvable) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b643ecd78c4c54f7659817f5999b74c44cfcdd6e528a8686d1e34631124fbd32") + public fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty.builder() + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: IResolvable) { + cdkBuilder.yAxisOptions(yAxisOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty) { + cdkBuilder.yAxisOptions(yAxisOptions.let(YAxisOptionsProperty.Companion::unwrap)) + } + + /** + * @param yAxisOptions The Y axis options of a single axis configuration. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b643ecd78c4c54f7659817f5999b74c44cfcdd6e528a8686d1e34631124fbd32") + override fun yAxisOptions(yAxisOptions: YAxisOptionsProperty.Builder.() -> Unit): Unit = + yAxisOptions(YAxisOptionsProperty(yAxisOptions)) + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty, + ) : CdkObject(cdkObject), + SingleAxisOptionsProperty { + /** + * The Y axis options of a single axis configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-singleaxisoptions.html#cfn-quicksight-template-singleaxisoptions-yaxisoptions) + */ + override fun yAxisOptions(): Any? = unwrap(this).getYAxisOptions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SingleAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty): + SingleAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SingleAxisOptionsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SingleAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.SingleAxisOptionsProperty + } + } + /** * The display options of a control. * @@ -95289,7 +97362,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SliderControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), SliderControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + SliderControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -95411,7 +97485,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SmallMultiplesAxisPropertiesProperty, - ) : CdkObject(cdkObject), SmallMultiplesAxisPropertiesProperty { + ) : CdkObject(cdkObject), + SmallMultiplesAxisPropertiesProperty { /** * Defines the placement of the axis. * @@ -95718,7 +97793,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SmallMultiplesOptionsProperty, - ) : CdkObject(cdkObject), SmallMultiplesOptionsProperty { + ) : CdkObject(cdkObject), + SmallMultiplesOptionsProperty { /** * Sets the maximum number of visible columns to display in the grid of small multiples * panels. @@ -95893,7 +97969,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SpacingProperty, - ) : CdkObject(cdkObject), SpacingProperty { + ) : CdkObject(cdkObject), + SpacingProperty { /** * Define the bottom spacing. * @@ -96076,7 +98153,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.StringDefaultValuesProperty, - ) : CdkObject(cdkObject), StringDefaultValuesProperty { + ) : CdkObject(cdkObject), + StringDefaultValuesProperty { /** * The dynamic value of the `StringDefaultValues` . * @@ -96324,7 +98402,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.StringFormatConfigurationProperty, - ) : CdkObject(cdkObject), StringFormatConfigurationProperty { + ) : CdkObject(cdkObject), + StringFormatConfigurationProperty { /** * The options that determine the null value format configuration. * @@ -96620,7 +98699,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.StringParameterDeclarationProperty, - ) : CdkObject(cdkObject), StringParameterDeclarationProperty { + ) : CdkObject(cdkObject), + StringParameterDeclarationProperty { /** * The default values of a parameter. * @@ -96764,7 +98844,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.StringValueWhenUnsetConfigurationProperty, - ) : CdkObject(cdkObject), StringValueWhenUnsetConfigurationProperty { + ) : CdkObject(cdkObject), + StringValueWhenUnsetConfigurationProperty { /** * A custom value that's used when the value of a parameter isn't set. * @@ -97300,7 +99381,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.SubtotalOptionsProperty, - ) : CdkObject(cdkObject), SubtotalOptionsProperty { + ) : CdkObject(cdkObject), + SubtotalOptionsProperty { /** * The custom label string for the subtotal cells. * @@ -97994,7 +100076,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableAggregatedFieldWellsProperty { /** * The group by field well for a pivot table. * @@ -98128,7 +100211,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableBorderOptionsProperty, - ) : CdkObject(cdkObject), TableBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableBorderOptionsProperty { /** * The color of a table border. * @@ -98329,7 +100413,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableCellConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableCellConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableCellConditionalFormattingProperty { /** * The field ID of the cell for conditional formatting. * @@ -98423,7 +100508,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableCellImageSizingConfigurationProperty, - ) : CdkObject(cdkObject), TableCellImageSizingConfigurationProperty { + ) : CdkObject(cdkObject), + TableCellImageSizingConfigurationProperty { /** * The cell scaling configuration of the sizing options for the table image configuration. * @@ -98753,7 +100839,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableCellStyleProperty, - ) : CdkObject(cdkObject), TableCellStyleProperty { + ) : CdkObject(cdkObject), + TableCellStyleProperty { /** * The background color for the table cells. * @@ -99056,7 +101143,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableConditionalFormattingOptionProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingOptionProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingOptionProperty { /** * The cell conditional formatting option for a table. * @@ -99276,7 +101364,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableConditionalFormattingProperty { /** * Conditional formatting options for a `PivotTableVisual` . * @@ -99664,7 +101753,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableConfigurationProperty, - ) : CdkObject(cdkObject), TableConfigurationProperty { + ) : CdkObject(cdkObject), + TableConfigurationProperty { /** * The field options for a table visual. * @@ -99789,7 +101879,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldCustomIconContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomIconContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomIconContentProperty { /** * The icon set type (link) of the custom icon content for table URL link content. * @@ -99938,7 +102029,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldCustomTextContentProperty, - ) : CdkObject(cdkObject), TableFieldCustomTextContentProperty { + ) : CdkObject(cdkObject), + TableFieldCustomTextContentProperty { /** * The font configuration of the custom text content for the table URL link content. * @@ -100060,7 +102152,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldImageConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldImageConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldImageConfigurationProperty { /** * The sizing options for the table image configuration. * @@ -100212,7 +102305,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldLinkConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkConfigurationProperty { /** * The URL content (text, icon) for the table link configuration. * @@ -100403,7 +102497,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldLinkContentConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldLinkContentConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldLinkContentConfigurationProperty { /** * The custom icon content for the table link content configuration. * @@ -100630,7 +102725,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldOptionProperty, - ) : CdkObject(cdkObject), TableFieldOptionProperty { + ) : CdkObject(cdkObject), + TableFieldOptionProperty { /** * The custom label for a table field. * @@ -100883,7 +102979,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldOptionsProperty, - ) : CdkObject(cdkObject), TableFieldOptionsProperty { + ) : CdkObject(cdkObject), + TableFieldOptionsProperty { /** * The order of the field IDs that are configured as field options for a table visual. * @@ -101084,7 +103181,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldURLConfigurationProperty, - ) : CdkObject(cdkObject), TableFieldURLConfigurationProperty { + ) : CdkObject(cdkObject), + TableFieldURLConfigurationProperty { /** * The image configuration of a table field URL. * @@ -101253,7 +103351,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableFieldWellsProperty, - ) : CdkObject(cdkObject), TableFieldWellsProperty { + ) : CdkObject(cdkObject), + TableFieldWellsProperty { /** * The aggregated field well for the table. * @@ -101382,7 +103481,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableInlineVisualizationProperty, - ) : CdkObject(cdkObject), TableInlineVisualizationProperty { + ) : CdkObject(cdkObject), + TableInlineVisualizationProperty { /** * The configuration of the inline visualization of the data bars within a chart. * @@ -101733,7 +103833,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableOptionsProperty, - ) : CdkObject(cdkObject), TableOptionsProperty { + ) : CdkObject(cdkObject), + TableOptionsProperty { /** * The table cell style of table cells. * @@ -101858,7 +103959,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TablePaginatedReportOptionsProperty, - ) : CdkObject(cdkObject), TablePaginatedReportOptionsProperty { + ) : CdkObject(cdkObject), + TablePaginatedReportOptionsProperty { /** * The visibility of repeating header rows on each page. * @@ -101962,7 +104064,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TablePinnedFieldOptionsProperty, - ) : CdkObject(cdkObject), TablePinnedFieldOptionsProperty { + ) : CdkObject(cdkObject), + TablePinnedFieldOptionsProperty { /** * A list of columns to be pinned to the left of a table visual. * @@ -102168,7 +104271,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableRowConditionalFormattingProperty, - ) : CdkObject(cdkObject), TableRowConditionalFormattingProperty { + ) : CdkObject(cdkObject), + TableRowConditionalFormattingProperty { /** * The conditional formatting color (solid, gradient) of the background for a table row. * @@ -102545,7 +104649,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableSideBorderOptionsProperty, - ) : CdkObject(cdkObject), TableSideBorderOptionsProperty { + ) : CdkObject(cdkObject), + TableSideBorderOptionsProperty { /** * The table border options of the bottom border. * @@ -102771,7 +104876,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableSortConfigurationProperty, - ) : CdkObject(cdkObject), TableSortConfigurationProperty { + ) : CdkObject(cdkObject), + TableSortConfigurationProperty { /** * The pagination configuration (page size, page number) for the table. * @@ -102859,7 +104965,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableStyleTargetProperty, - ) : CdkObject(cdkObject), TableStyleTargetProperty { + ) : CdkObject(cdkObject), + TableStyleTargetProperty { /** * The cell type of the table style target. * @@ -103189,7 +105296,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableUnaggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TableUnaggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TableUnaggregatedFieldWellsProperty { /** * The values field well for a pivot table. * @@ -103507,7 +105615,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TableVisualProperty, - ) : CdkObject(cdkObject), TableVisualProperty { + ) : CdkObject(cdkObject), + TableVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -103691,7 +105800,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateErrorProperty, - ) : CdkObject(cdkObject), TemplateErrorProperty { + ) : CdkObject(cdkObject), + TemplateErrorProperty { /** * Description of the error type. * @@ -103841,7 +105951,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateSourceAnalysisProperty, - ) : CdkObject(cdkObject), TemplateSourceAnalysisProperty { + ) : CdkObject(cdkObject), + TemplateSourceAnalysisProperty { /** * The Amazon Resource Name (ARN) of the resource. * @@ -104016,7 +106127,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateSourceEntityProperty, - ) : CdkObject(cdkObject), TemplateSourceEntityProperty { + ) : CdkObject(cdkObject), + TemplateSourceEntityProperty { /** * The source analysis, if it is based on an analysis. * @@ -104106,7 +106218,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateSourceTemplateProperty, - ) : CdkObject(cdkObject), TemplateSourceTemplateProperty { + ) : CdkObject(cdkObject), + TemplateSourceTemplateProperty { /** * The Amazon Resource Name (ARN) of the resource. * @@ -104206,6 +106319,11 @@ public open class CfnTemplate( */ public fun parameterDeclarations(): Any? = unwrap(this).getParameterDeclarations() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-templateversiondefinition.html#cfn-quicksight-template-templateversiondefinition-queryexecutionoptions) + */ + public fun queryExecutionOptions(): Any? = unwrap(this).getQueryExecutionOptions() + /** * An array of sheet definitions for a template. * @@ -104363,6 +106481,24 @@ public open class CfnTemplate( */ public fun parameterDeclarations(vararg parameterDeclarations: Any) + /** + * @param queryExecutionOptions the value to be set. + */ + public fun queryExecutionOptions(queryExecutionOptions: IResolvable) + + /** + * @param queryExecutionOptions the value to be set. + */ + public fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty) + + /** + * @param queryExecutionOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ee10c3968b93fcda5a59a77d0fc0c4864d05bffd98dbc3a034f5f78835c2b493") + public + fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty.Builder.() -> Unit) + /** * @param sheets An array of sheet definitions for a template. */ @@ -104565,6 +106701,29 @@ public open class CfnTemplate( override fun parameterDeclarations(vararg parameterDeclarations: Any): Unit = parameterDeclarations(parameterDeclarations.toList()) + /** + * @param queryExecutionOptions the value to be set. + */ + override fun queryExecutionOptions(queryExecutionOptions: IResolvable) { + cdkBuilder.queryExecutionOptions(queryExecutionOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param queryExecutionOptions the value to be set. + */ + override fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty) { + cdkBuilder.queryExecutionOptions(queryExecutionOptions.let(QueryExecutionOptionsProperty.Companion::unwrap)) + } + + /** + * @param queryExecutionOptions the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("ee10c3968b93fcda5a59a77d0fc0c4864d05bffd98dbc3a034f5f78835c2b493") + override + fun queryExecutionOptions(queryExecutionOptions: QueryExecutionOptionsProperty.Builder.() -> Unit): + Unit = queryExecutionOptions(QueryExecutionOptionsProperty(queryExecutionOptions)) + /** * @param sheets An array of sheet definitions for a template. */ @@ -104591,7 +106750,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateVersionDefinitionProperty, - ) : CdkObject(cdkObject), TemplateVersionDefinitionProperty { + ) : CdkObject(cdkObject), + TemplateVersionDefinitionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-templateversiondefinition.html#cfn-quicksight-template-templateversiondefinition-analysisdefaults) */ @@ -104655,6 +106815,11 @@ public open class CfnTemplate( */ override fun parameterDeclarations(): Any? = unwrap(this).getParameterDeclarations() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-templateversiondefinition.html#cfn-quicksight-template-templateversiondefinition-queryexecutionoptions) + */ + override fun queryExecutionOptions(): Any? = unwrap(this).getQueryExecutionOptions() + /** * An array of sheet definitions for a template. * @@ -105033,7 +107198,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TemplateVersionProperty, - ) : CdkObject(cdkObject), TemplateVersionProperty { + ) : CdkObject(cdkObject), + TemplateVersionProperty { /** * The time that this template version was created. * @@ -105337,7 +107503,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TextAreaControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextAreaControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextAreaControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -105610,7 +107777,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TextConditionalFormatProperty, - ) : CdkObject(cdkObject), TextConditionalFormatProperty { + ) : CdkObject(cdkObject), + TextConditionalFormatProperty { /** * The conditional formatting for the text background color. * @@ -105709,7 +107877,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TextControlPlaceholderOptionsProperty, - ) : CdkObject(cdkObject), TextControlPlaceholderOptionsProperty { + ) : CdkObject(cdkObject), + TextControlPlaceholderOptionsProperty { /** * The visibility configuration of the placeholder options in a text control. * @@ -105946,7 +108115,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TextFieldControlDisplayOptionsProperty, - ) : CdkObject(cdkObject), TextFieldControlDisplayOptionsProperty { + ) : CdkObject(cdkObject), + TextFieldControlDisplayOptionsProperty { /** * The configuration of info icon label options. * @@ -106064,7 +108234,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ThousandSeparatorOptionsProperty, - ) : CdkObject(cdkObject), ThousandSeparatorOptionsProperty { + ) : CdkObject(cdkObject), + ThousandSeparatorOptionsProperty { /** * Determines the thousands separator symbol. * @@ -106263,7 +108434,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TimeBasedForecastPropertiesProperty, - ) : CdkObject(cdkObject), TimeBasedForecastPropertiesProperty { + ) : CdkObject(cdkObject), + TimeBasedForecastPropertiesProperty { /** * The lower boundary setup of a forecast computation. * @@ -106831,7 +109003,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TimeEqualityFilterProperty, - ) : CdkObject(cdkObject), TimeEqualityFilterProperty { + ) : CdkObject(cdkObject), + TimeEqualityFilterProperty { /** * The column that the filter is applied to. * @@ -107057,7 +109230,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TimeRangeDrillDownFilterProperty, - ) : CdkObject(cdkObject), TimeRangeDrillDownFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeDrillDownFilterProperty { /** * The column that the filter is applied to. * @@ -107776,7 +109950,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TimeRangeFilterProperty, - ) : CdkObject(cdkObject), TimeRangeFilterProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterProperty { /** * The column that the filter is applied to. * @@ -108005,7 +110180,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TimeRangeFilterValueProperty, - ) : CdkObject(cdkObject), TimeRangeFilterValueProperty { + ) : CdkObject(cdkObject), + TimeRangeFilterValueProperty { /** * The parameter type input value. * @@ -108080,12 +110256,14 @@ public open class CfnTemplate( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build(); @@ -108210,7 +110388,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TooltipItemProperty, - ) : CdkObject(cdkObject), TooltipItemProperty { + ) : CdkObject(cdkObject), + TooltipItemProperty { /** * The tooltip item for the columns that are not part of a field well. * @@ -108278,12 +110457,14 @@ public open class CfnTemplate( * .build()) * .build()) * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .fieldTooltipItem(FieldTooltipItemProperty.builder() * .fieldId("fieldId") * // the properties below are optional * .label("label") + * .tooltipTarget("tooltipTarget") * .visibility("visibility") * .build()) * .build())) @@ -108417,7 +110598,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TooltipOptionsProperty, - ) : CdkObject(cdkObject), TooltipOptionsProperty { + ) : CdkObject(cdkObject), + TooltipOptionsProperty { /** * The setup for the detailed tooltip. * @@ -108967,7 +111149,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TopBottomFilterProperty, - ) : CdkObject(cdkObject), TopBottomFilterProperty { + ) : CdkObject(cdkObject), + TopBottomFilterProperty { /** * The aggregation and sort configuration of the top bottom filter. * @@ -109312,7 +111495,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TopBottomMoversComputationProperty, - ) : CdkObject(cdkObject), TopBottomMoversComputationProperty { + ) : CdkObject(cdkObject), + TopBottomMoversComputationProperty { /** * The category field that is used in a computation. * @@ -109601,7 +111785,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TopBottomRankedComputationProperty, - ) : CdkObject(cdkObject), TopBottomRankedComputationProperty { + ) : CdkObject(cdkObject), + TopBottomRankedComputationProperty { /** * The category field that is used in a computation. * @@ -110038,7 +112223,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TotalAggregationComputationProperty, - ) : CdkObject(cdkObject), TotalAggregationComputationProperty { + ) : CdkObject(cdkObject), + TotalAggregationComputationProperty { /** * The ID for a computation. * @@ -110137,7 +112323,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TotalAggregationFunctionProperty, - ) : CdkObject(cdkObject), TotalAggregationFunctionProperty { + ) : CdkObject(cdkObject), + TotalAggregationFunctionProperty { /** * A built in aggregation function for total values. * @@ -110281,7 +112468,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TotalAggregationOptionProperty, - ) : CdkObject(cdkObject), TotalAggregationOptionProperty { + ) : CdkObject(cdkObject), + TotalAggregationOptionProperty { /** * The field id that's associated with the total aggregation option. * @@ -110581,7 +112769,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TotalOptionsProperty, - ) : CdkObject(cdkObject), TotalOptionsProperty { + ) : CdkObject(cdkObject), + TotalOptionsProperty { /** * The custom label string for the total cells. * @@ -110820,7 +113009,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TreeMapAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapAggregatedFieldWellsProperty { /** * The color field well of a tree map. * @@ -111340,7 +113530,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TreeMapConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapConfigurationProperty { /** * The label options (label text, label visibility) for the colors displayed in a tree map. * @@ -111508,7 +113699,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TreeMapFieldWellsProperty, - ) : CdkObject(cdkObject), TreeMapFieldWellsProperty { + ) : CdkObject(cdkObject), + TreeMapFieldWellsProperty { /** * The aggregated field wells of a tree map. * @@ -111705,7 +113897,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TreeMapSortConfigurationProperty, - ) : CdkObject(cdkObject), TreeMapSortConfigurationProperty { + ) : CdkObject(cdkObject), + TreeMapSortConfigurationProperty { /** * The limit on the number of groups that are displayed. * @@ -112028,7 +114221,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TreeMapVisualProperty, - ) : CdkObject(cdkObject), TreeMapVisualProperty { + ) : CdkObject(cdkObject), + TreeMapVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -112147,7 +114341,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.TrendArrowOptionsProperty, - ) : CdkObject(cdkObject), TrendArrowOptionsProperty { + ) : CdkObject(cdkObject), + TrendArrowOptionsProperty { /** * The visibility of the trend arrows. * @@ -112537,7 +114732,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.UnaggregatedFieldProperty, - ) : CdkObject(cdkObject), UnaggregatedFieldProperty { + ) : CdkObject(cdkObject), + UnaggregatedFieldProperty { /** * The column that is used in the `UnaggregatedField` . * @@ -112939,7 +115135,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.UniqueValuesComputationProperty, - ) : CdkObject(cdkObject), UniqueValuesComputationProperty { + ) : CdkObject(cdkObject), + UniqueValuesComputationProperty { /** * The category field that is used in a computation. * @@ -113045,7 +115242,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.ValidationStrategyProperty, - ) : CdkObject(cdkObject), ValidationStrategyProperty { + ) : CdkObject(cdkObject), + ValidationStrategyProperty { /** * The mode of validation for the asset to be created or updated. * @@ -113160,7 +115358,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisibleRangeOptionsProperty, - ) : CdkObject(cdkObject), VisibleRangeOptionsProperty { + ) : CdkObject(cdkObject), + VisibleRangeOptionsProperty { /** * The percent range in the visible range. * @@ -113487,7 +115686,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualCustomActionOperationProperty, - ) : CdkObject(cdkObject), VisualCustomActionOperationProperty { + ) : CdkObject(cdkObject), + VisualCustomActionOperationProperty { /** * The filter operation that filters data included in a visual or in an entire sheet. * @@ -113773,7 +115973,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualCustomActionProperty, - ) : CdkObject(cdkObject), VisualCustomActionProperty { + ) : CdkObject(cdkObject), + VisualCustomActionProperty { /** * A list of `VisualCustomActionOperations` . * @@ -113943,7 +116144,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualPaletteProperty, - ) : CdkObject(cdkObject), VisualPaletteProperty { + ) : CdkObject(cdkObject), + VisualPaletteProperty { /** * The chart color options for the visual palette. * @@ -115558,7 +117760,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualProperty, - ) : CdkObject(cdkObject), VisualProperty { + ) : CdkObject(cdkObject), + VisualProperty { /** * A bar chart. * @@ -115939,7 +118142,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualSubtitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualSubtitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualSubtitleLabelOptionsProperty { /** * The long text format of the subtitle label, such as plain text or rich text. * @@ -116086,7 +118290,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.VisualTitleLabelOptionsProperty, - ) : CdkObject(cdkObject), VisualTitleLabelOptionsProperty { + ) : CdkObject(cdkObject), + VisualTitleLabelOptionsProperty { /** * The short text format of the title label, such as plain text or rich text. * @@ -116273,7 +118478,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartAggregatedFieldWellsProperty { /** * The breakdown field wells of a waterfall visual. * @@ -116413,7 +118619,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartColorConfigurationProperty { /** * The color configuration for individual groups within a waterfall visual. * @@ -117026,7 +119233,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartConfigurationProperty { /** * The options that determine the presentation of the category axis. * @@ -117213,7 +119421,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartFieldWellsProperty, - ) : CdkObject(cdkObject), WaterfallChartFieldWellsProperty { + ) : CdkObject(cdkObject), + WaterfallChartFieldWellsProperty { /** * The field well configuration of a waterfall visual. * @@ -117337,7 +119546,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartGroupColorConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartGroupColorConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartGroupColorConfigurationProperty { /** * Defines the color for the negative bars of a waterfall chart. * @@ -117435,7 +119645,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartOptionsProperty, - ) : CdkObject(cdkObject), WaterfallChartOptionsProperty { + ) : CdkObject(cdkObject), + WaterfallChartOptionsProperty { /** * This option determines the total bar label of a waterfall visual. * @@ -117620,7 +119831,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallChartSortConfigurationProperty, - ) : CdkObject(cdkObject), WaterfallChartSortConfigurationProperty { + ) : CdkObject(cdkObject), + WaterfallChartSortConfigurationProperty { /** * The limit on the number of bar groups that are displayed. * @@ -117943,7 +120155,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WaterfallVisualProperty, - ) : CdkObject(cdkObject), WaterfallVisualProperty { + ) : CdkObject(cdkObject), + WaterfallVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -118085,7 +120298,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WhatIfPointScenarioProperty, - ) : CdkObject(cdkObject), WhatIfPointScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfPointScenarioProperty { /** * The date that you need the forecast results for. * @@ -118218,7 +120432,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WhatIfRangeScenarioProperty, - ) : CdkObject(cdkObject), WhatIfRangeScenarioProperty { + ) : CdkObject(cdkObject), + WhatIfRangeScenarioProperty { /** * The end date in the date range that you need the forecast results for. * @@ -118879,7 +121094,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudAggregatedFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudAggregatedFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudAggregatedFieldWellsProperty { /** * The group by field well of a word cloud. * @@ -119143,7 +121359,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudChartConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudChartConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudChartConfigurationProperty { /** * The label options (label text, label visibility, and sort icon visibility) for the word * cloud category. @@ -119769,7 +121986,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudFieldWellsProperty, - ) : CdkObject(cdkObject), WordCloudFieldWellsProperty { + ) : CdkObject(cdkObject), + WordCloudFieldWellsProperty { /** * The aggregated field wells of a word cloud. * @@ -119960,7 +122178,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudOptionsProperty, - ) : CdkObject(cdkObject), WordCloudOptionsProperty { + ) : CdkObject(cdkObject), + WordCloudOptionsProperty { /** * The cloud layout options (fluid, normal) of a word cloud. * @@ -120187,7 +122406,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudSortConfigurationProperty, - ) : CdkObject(cdkObject), WordCloudSortConfigurationProperty { + ) : CdkObject(cdkObject), + WordCloudSortConfigurationProperty { /** * The limit on the number of groups that are displayed in a word cloud. * @@ -120510,7 +122730,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudVisualProperty, - ) : CdkObject(cdkObject), WordCloudVisualProperty { + ) : CdkObject(cdkObject), + WordCloudVisualProperty { /** * The list of custom actions that are configured for a visual. * @@ -120574,4 +122795,96 @@ public open class CfnTemplate( software.amazon.awscdk.services.quicksight.CfnTemplate.WordCloudVisualProperty } } + + /** + * The options that are available for a single Y axis in a chart. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.quicksight.*; + * YAxisOptionsProperty yAxisOptionsProperty = YAxisOptionsProperty.builder() + * .yAxis("yAxis") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-yaxisoptions.html) + */ + public interface YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical axis + * of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-yaxisoptions.html#cfn-quicksight-template-yaxisoptions-yaxis) + */ + public fun yAxis(): String + + /** + * A builder for [YAxisOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + public fun yAxis(yAxis: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty.Builder = + software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty.builder() + + /** + * @param yAxis The Y axis type to be used in the chart. + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + */ + override fun yAxis(yAxis: String) { + cdkBuilder.yAxis(yAxis) + } + + public fun build(): + software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty, + ) : CdkObject(cdkObject), + YAxisOptionsProperty { + /** + * The Y axis type to be used in the chart. + * + * If you choose `PRIMARY_Y_AXIS` , the primary Y Axis is located on the leftmost vertical + * axis of the chart. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-yaxisoptions.html#cfn-quicksight-template-yaxisoptions-yaxis) + */ + override fun yAxis(): String = unwrap(this).getYAxis() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): YAxisOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty): + YAxisOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? YAxisOptionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: YAxisOptionsProperty): + software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.quicksight.CfnTemplate.YAxisOptionsProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplateProps.kt index d16995110b..ede16bb6cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTemplateProps.kt @@ -450,7 +450,8 @@ public interface CfnTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTemplateProps, - ) : CdkObject(cdkObject), CfnTemplateProps { + ) : CdkObject(cdkObject), + CfnTemplateProps { /** * The ID for the AWS account that the group is in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTheme.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTheme.kt index aa1278c22e..36dc877f22 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTheme.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTheme.kt @@ -105,7 +105,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTheme( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -717,7 +719,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.BorderStyleProperty, - ) : CdkObject(cdkObject), BorderStyleProperty { + ) : CdkObject(cdkObject), + BorderStyleProperty { /** * The option to enable display of borders for visuals. * @@ -868,7 +871,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.DataColorPaletteProperty, - ) : CdkObject(cdkObject), DataColorPaletteProperty { + ) : CdkObject(cdkObject), + DataColorPaletteProperty { /** * The hexadecimal codes for the colors. * @@ -962,7 +966,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.FontProperty, - ) : CdkObject(cdkObject), FontProperty { + ) : CdkObject(cdkObject), + FontProperty { /** * Determines the font family settings. * @@ -1056,7 +1061,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.GutterStyleProperty, - ) : CdkObject(cdkObject), GutterStyleProperty { + ) : CdkObject(cdkObject), + GutterStyleProperty { /** * This Boolean value controls whether to display a gutter space between sheet tiles. * @@ -1148,7 +1154,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.MarginStyleProperty, - ) : CdkObject(cdkObject), MarginStyleProperty { + ) : CdkObject(cdkObject), + MarginStyleProperty { /** * This Boolean value controls whether to display sheet margins. * @@ -1301,7 +1308,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.ResourcePermissionProperty, - ) : CdkObject(cdkObject), ResourcePermissionProperty { + ) : CdkObject(cdkObject), + ResourcePermissionProperty { /** * The IAM action to grant or revoke permissions on. * @@ -1486,7 +1494,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.SheetStyleProperty, - ) : CdkObject(cdkObject), SheetStyleProperty { + ) : CdkObject(cdkObject), + SheetStyleProperty { /** * The display options for tiles. * @@ -1787,7 +1796,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.ThemeConfigurationProperty, - ) : CdkObject(cdkObject), ThemeConfigurationProperty { + ) : CdkObject(cdkObject), + ThemeConfigurationProperty { /** * Color properties that apply to chart data colors. * @@ -1907,7 +1917,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.ThemeErrorProperty, - ) : CdkObject(cdkObject), ThemeErrorProperty { + ) : CdkObject(cdkObject), + ThemeErrorProperty { /** * The error message. * @@ -2242,7 +2253,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.ThemeVersionProperty, - ) : CdkObject(cdkObject), ThemeVersionProperty { + ) : CdkObject(cdkObject), + ThemeVersionProperty { /** * The Amazon Resource Name (ARN) of the resource. * @@ -2452,7 +2464,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.TileLayoutStyleProperty, - ) : CdkObject(cdkObject), TileLayoutStyleProperty { + ) : CdkObject(cdkObject), + TileLayoutStyleProperty { /** * The gutter settings that apply between tiles. * @@ -2568,7 +2581,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.TileStyleProperty, - ) : CdkObject(cdkObject), TileStyleProperty { + ) : CdkObject(cdkObject), + TileStyleProperty { /** * The border around a tile. * @@ -2673,7 +2687,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.TypographyProperty, - ) : CdkObject(cdkObject), TypographyProperty { + ) : CdkObject(cdkObject), + TypographyProperty { /** * Determines the list of font families. * @@ -3093,7 +3108,8 @@ public open class CfnTheme( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTheme.UIColorPaletteProperty, - ) : CdkObject(cdkObject), UIColorPaletteProperty { + ) : CdkObject(cdkObject), + UIColorPaletteProperty { /** * This color is that applies to selected states and buttons. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnThemeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnThemeProps.kt index f6a402dad8..5755965e5b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnThemeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnThemeProps.kt @@ -342,7 +342,8 @@ public interface CfnThemeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnThemeProps, - ) : CdkObject(cdkObject), CfnThemeProps { + ) : CdkObject(cdkObject), + CfnThemeProps { /** * The ID of the AWS account where you want to store the new theme. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopic.kt index 71692a84f2..240e168d51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopic.kt @@ -242,7 +242,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopic( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.quicksight.CfnTopic(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -628,7 +629,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.CellValueSynonymProperty, - ) : CdkObject(cdkObject), CellValueSynonymProperty { + ) : CdkObject(cdkObject), + CellValueSynonymProperty { /** * The cell value. * @@ -726,7 +728,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.CollectiveConstantProperty, - ) : CdkObject(cdkObject), CollectiveConstantProperty { + ) : CdkObject(cdkObject), + CollectiveConstantProperty { /** * A list of values for the collective constant. * @@ -870,7 +873,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.ComparativeOrderProperty, - ) : CdkObject(cdkObject), ComparativeOrderProperty { + ) : CdkObject(cdkObject), + ComparativeOrderProperty { /** * The list of columns to be used in the ordering. * @@ -993,7 +997,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.DataAggregationProperty, - ) : CdkObject(cdkObject), DataAggregationProperty { + ) : CdkObject(cdkObject), + DataAggregationProperty { /** * The level of time precision that is used to aggregate `DateTime` values. * @@ -1529,7 +1534,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.DatasetMetadataProperty, - ) : CdkObject(cdkObject), DatasetMetadataProperty { + ) : CdkObject(cdkObject), + DatasetMetadataProperty { /** * The list of calculated field definitions. * @@ -1731,7 +1737,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.DefaultFormattingProperty, - ) : CdkObject(cdkObject), DefaultFormattingProperty { + ) : CdkObject(cdkObject), + DefaultFormattingProperty { /** * The display format. * @@ -2110,7 +2117,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.DisplayFormatOptionsProperty, - ) : CdkObject(cdkObject), DisplayFormatOptionsProperty { + ) : CdkObject(cdkObject), + DisplayFormatOptionsProperty { /** * Determines the blank cell format. * @@ -2324,7 +2332,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.NamedEntityDefinitionMetricProperty, - ) : CdkObject(cdkObject), NamedEntityDefinitionMetricProperty { + ) : CdkObject(cdkObject), + NamedEntityDefinitionMetricProperty { /** * The aggregation of a named entity. * @@ -2539,7 +2548,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.NamedEntityDefinitionProperty, - ) : CdkObject(cdkObject), NamedEntityDefinitionProperty { + ) : CdkObject(cdkObject), + NamedEntityDefinitionProperty { /** * The name of the entity. * @@ -2671,7 +2681,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.NegativeFormatProperty, - ) : CdkObject(cdkObject), NegativeFormatProperty { + ) : CdkObject(cdkObject), + NegativeFormatProperty { /** * The prefix for a negative format. * @@ -2778,7 +2789,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.RangeConstantProperty, - ) : CdkObject(cdkObject), RangeConstantProperty { + ) : CdkObject(cdkObject), + RangeConstantProperty { /** * The maximum value for a range constant. * @@ -2919,7 +2931,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.SemanticEntityTypeProperty, - ) : CdkObject(cdkObject), SemanticEntityTypeProperty { + ) : CdkObject(cdkObject), + SemanticEntityTypeProperty { /** * The semantic entity sub type name. * @@ -3170,7 +3183,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.SemanticTypeProperty, - ) : CdkObject(cdkObject), SemanticTypeProperty { + ) : CdkObject(cdkObject), + SemanticTypeProperty { /** * The semantic type falsey cell value. * @@ -3386,6 +3400,8 @@ public open class CfnTopic( public fun defaultFormatting(): Any? = unwrap(this).getDefaultFormatting() /** + * A Boolean value that indicates if a calculated field is visible in the autocomplete. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topiccalculatedfield.html#cfn-quicksight-topic-topiccalculatedfield-disableindexing) */ public fun disableIndexing(): Any? = unwrap(this).getDisableIndexing() @@ -3556,12 +3572,14 @@ public open class CfnTopic( public fun defaultFormatting(defaultFormatting: DefaultFormattingProperty.Builder.() -> Unit) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates if a calculated field is visible in + * the autocomplete. */ public fun disableIndexing(disableIndexing: Boolean) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates if a calculated field is visible in + * the autocomplete. */ public fun disableIndexing(disableIndexing: IResolvable) @@ -3781,14 +3799,16 @@ public open class CfnTopic( Unit = defaultFormatting(DefaultFormattingProperty(defaultFormatting)) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates if a calculated field is visible in + * the autocomplete. */ override fun disableIndexing(disableIndexing: Boolean) { cdkBuilder.disableIndexing(disableIndexing) } /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates if a calculated field is visible in + * the autocomplete. */ override fun disableIndexing(disableIndexing: IResolvable) { cdkBuilder.disableIndexing(disableIndexing.let(IResolvable.Companion::unwrap)) @@ -3903,7 +3923,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicCalculatedFieldProperty, - ) : CdkObject(cdkObject), TopicCalculatedFieldProperty { + ) : CdkObject(cdkObject), + TopicCalculatedFieldProperty { /** * The default aggregation. * @@ -3980,6 +4001,8 @@ public open class CfnTopic( override fun defaultFormatting(): Any? = unwrap(this).getDefaultFormatting() /** + * A Boolean value that indicates if a calculated field is visible in the autocomplete. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topiccalculatedfield.html#cfn-quicksight-topic-topiccalculatedfield-disableindexing) */ override fun disableIndexing(): Any? = unwrap(this).getDisableIndexing() @@ -4208,7 +4231,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicCategoryFilterConstantProperty, - ) : CdkObject(cdkObject), TopicCategoryFilterConstantProperty { + ) : CdkObject(cdkObject), + TopicCategoryFilterConstantProperty { /** * A collective constant used in a category filter. * @@ -4429,7 +4453,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicCategoryFilterProperty, - ) : CdkObject(cdkObject), TopicCategoryFilterProperty { + ) : CdkObject(cdkObject), + TopicCategoryFilterProperty { /** * The category filter function. * @@ -4630,6 +4655,8 @@ public open class CfnTopic( public fun defaultFormatting(): Any? = unwrap(this).getDefaultFormatting() /** + * A Boolean value that indicates whether the column shows in the autocomplete functionality. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topiccolumn.html#cfn-quicksight-topic-topiccolumn-disableindexing) */ public fun disableIndexing(): Any? = unwrap(this).getDisableIndexing() @@ -4796,12 +4823,14 @@ public open class CfnTopic( public fun defaultFormatting(defaultFormatting: DefaultFormattingProperty.Builder.() -> Unit) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates whether the column shows in the + * autocomplete functionality. */ public fun disableIndexing(disableIndexing: Boolean) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates whether the column shows in the + * autocomplete functionality. */ public fun disableIndexing(disableIndexing: IResolvable) @@ -5020,14 +5049,16 @@ public open class CfnTopic( Unit = defaultFormatting(DefaultFormattingProperty(defaultFormatting)) /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates whether the column shows in the + * autocomplete functionality. */ override fun disableIndexing(disableIndexing: Boolean) { cdkBuilder.disableIndexing(disableIndexing) } /** - * @param disableIndexing the value to be set. + * @param disableIndexing A Boolean value that indicates whether the column shows in the + * autocomplete functionality. */ override fun disableIndexing(disableIndexing: IResolvable) { cdkBuilder.disableIndexing(disableIndexing.let(IResolvable.Companion::unwrap)) @@ -5134,7 +5165,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicColumnProperty, - ) : CdkObject(cdkObject), TopicColumnProperty { + ) : CdkObject(cdkObject), + TopicColumnProperty { /** * The type of aggregation that is performed on the column data when it's queried. * @@ -5213,6 +5245,8 @@ public open class CfnTopic( override fun defaultFormatting(): Any? = unwrap(this).getDefaultFormatting() /** + * A Boolean value that indicates whether the column shows in the autocomplete functionality. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-topic-topiccolumn.html#cfn-quicksight-topic-topiccolumn-disableindexing) */ override fun disableIndexing(): Any? = unwrap(this).getDisableIndexing() @@ -5427,7 +5461,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicDateRangeFilterProperty, - ) : CdkObject(cdkObject), TopicDateRangeFilterProperty { + ) : CdkObject(cdkObject), + TopicDateRangeFilterProperty { /** * The constant used in a date range filter. * @@ -5932,7 +5967,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicFilterProperty, - ) : CdkObject(cdkObject), TopicFilterProperty { + ) : CdkObject(cdkObject), + TopicFilterProperty { /** * The category filter that is associated with this filter. * @@ -6247,7 +6283,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicNamedEntityProperty, - ) : CdkObject(cdkObject), TopicNamedEntityProperty { + ) : CdkObject(cdkObject), + TopicNamedEntityProperty { /** * The definition of a named entity. * @@ -6420,7 +6457,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicNumericEqualityFilterProperty, - ) : CdkObject(cdkObject), TopicNumericEqualityFilterProperty { + ) : CdkObject(cdkObject), + TopicNumericEqualityFilterProperty { /** * An aggregation function that specifies how to calculate the value of a numeric field for a * topic. @@ -6633,7 +6671,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicNumericRangeFilterProperty, - ) : CdkObject(cdkObject), TopicNumericRangeFilterProperty { + ) : CdkObject(cdkObject), + TopicNumericRangeFilterProperty { /** * An aggregation function that specifies how to calculate the value of a numeric field for a * topic, Valid values for this structure are `NO_AGGREGATION` , `SUM` , `AVERAGE` , `COUNT` , @@ -6799,7 +6838,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicRangeFilterConstantProperty, - ) : CdkObject(cdkObject), TopicRangeFilterConstantProperty { + ) : CdkObject(cdkObject), + TopicRangeFilterConstantProperty { /** * The data type of the constant value that is used in a range filter. * @@ -6970,7 +7010,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicRelativeDateFilterProperty, - ) : CdkObject(cdkObject), TopicRelativeDateFilterProperty { + ) : CdkObject(cdkObject), + TopicRelativeDateFilterProperty { /** * The constant used in a relative date filter. * @@ -7096,7 +7137,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopic.TopicSingularFilterConstantProperty, - ) : CdkObject(cdkObject), TopicSingularFilterConstantProperty { + ) : CdkObject(cdkObject), + TopicSingularFilterConstantProperty { /** * The type of the singular filter constant. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopicProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopicProps.kt index 086eb2ceb4..921984814e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopicProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnTopicProps.kt @@ -388,7 +388,8 @@ public interface CfnTopicProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnTopicProps, - ) : CdkObject(cdkObject), CfnTopicProps { + ) : CdkObject(cdkObject), + CfnTopicProps { /** * The ID of the AWS account that you want to create a topic in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnection.kt index cbca37eda8..612cfda3f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnection.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVPCConnection( cdkObject: software.amazon.awscdk.services.quicksight.CfnVPCConnection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.quicksight.CfnVPCConnection(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -660,7 +662,8 @@ public open class CfnVPCConnection( private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnVPCConnection.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * The availability zone that the network interface resides in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnectionProps.kt index 46eea4b545..be601cc3b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/quicksight/CfnVPCConnectionProps.kt @@ -277,7 +277,8 @@ public interface CfnVPCConnectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.quicksight.CfnVPCConnectionProps, - ) : CdkObject(cdkObject), CfnVPCConnectionProps { + ) : CdkObject(cdkObject), + CfnVPCConnectionProps { /** * The availability status of the VPC connection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermission.kt index b4022a93d5..e5428cac00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermission.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPermission( cdkObject: software.amazon.awscdk.services.ram.CfnPermission, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermissionProps.kt index fd7041e580..227183c07d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnPermissionProps.kt @@ -215,7 +215,8 @@ public interface CfnPermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ram.CfnPermissionProps, - ) : CdkObject(cdkObject), CfnPermissionProps { + ) : CdkObject(cdkObject), + CfnPermissionProps { /** * Specifies the name of the customer managed permission. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShare.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShare.kt index 48cd031d38..d91943067f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShare.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShare.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceShare( cdkObject: software.amazon.awscdk.services.ram.CfnResourceShare, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShareProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShareProps.kt index 60892cbcd0..e4fddb1cd1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShareProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ram/CfnResourceShareProps.kt @@ -368,7 +368,8 @@ public interface CfnResourceShareProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ram.CfnResourceShareProps, - ) : CdkObject(cdkObject), CfnResourceShareProps { + ) : CdkObject(cdkObject), + CfnResourceShareProps { /** * Specifies whether principals outside your organization in AWS Organizations can be associated * with a resource share. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraClusterEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraClusterEngineProps.kt index ceb35fe191..57c89bca9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraClusterEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraClusterEngineProps.kt @@ -58,7 +58,8 @@ public interface AuroraClusterEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.AuroraClusterEngineProps, - ) : CdkObject(cdkObject), AuroraClusterEngineProps { + ) : CdkObject(cdkObject), + AuroraClusterEngineProps { /** * The version of the Aurora cluster engine. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlClusterEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlClusterEngineProps.kt index 716341e5bd..02f1e2a3d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlClusterEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlClusterEngineProps.kt @@ -65,7 +65,8 @@ public interface AuroraMysqlClusterEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.AuroraMysqlClusterEngineProps, - ) : CdkObject(cdkObject), AuroraMysqlClusterEngineProps { + ) : CdkObject(cdkObject), + AuroraMysqlClusterEngineProps { /** * The version of the Aurora MySQL cluster engine. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlEngineVersion.kt index 30cf8c8c87..7ed5c7e965 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraMysqlEngineVersion.kt @@ -195,6 +195,12 @@ public open class AuroraMysqlEngineVersion( public val VER_2_12_1: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_2_12_1) + public val VER_2_12_2: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_2_12_2) + + public val VER_2_12_3: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_2_12_3) + public val VER_3_01_0: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_01_0) @@ -231,6 +237,9 @@ public open class AuroraMysqlEngineVersion( public val VER_3_04_1: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_04_1) + public val VER_3_04_2: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_04_2) + public val VER_3_05_0: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_05_0) @@ -243,6 +252,15 @@ public open class AuroraMysqlEngineVersion( public val VER_3_06_0: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_06_0) + public val VER_3_06_1: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_06_1) + + public val VER_3_07_0: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_07_0) + + public val VER_3_07_1: AuroraMysqlEngineVersion = + AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_3_07_1) + public val VER_5_7_12: AuroraMysqlEngineVersion = AuroraMysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraMysqlEngineVersion.VER_5_7_12) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresClusterEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresClusterEngineProps.kt index c1ce069ea1..c703a844b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresClusterEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresClusterEngineProps.kt @@ -93,7 +93,8 @@ public interface AuroraPostgresClusterEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.AuroraPostgresClusterEngineProps, - ) : CdkObject(cdkObject), AuroraPostgresClusterEngineProps { + ) : CdkObject(cdkObject), + AuroraPostgresClusterEngineProps { /** * The version of the Aurora PostgreSQL cluster engine. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineFeatures.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineFeatures.kt index 61b49bf70e..ddfb1f639d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineFeatures.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineFeatures.kt @@ -83,7 +83,8 @@ public interface AuroraPostgresEngineFeatures { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.AuroraPostgresEngineFeatures, - ) : CdkObject(cdkObject), AuroraPostgresEngineFeatures { + ) : CdkObject(cdkObject), + AuroraPostgresEngineFeatures { /** * Whether this version of the Aurora Postgres cluster engine supports the S3 data export * feature. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineVersion.kt index af199fcd43..84d0869e49 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/AuroraPostgresEngineVersion.kt @@ -188,6 +188,12 @@ public open class AuroraPostgresEngineVersion( public val VER_12_17: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_12_17) + public val VER_12_18: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_12_18) + + public val VER_12_19: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_12_19) + public val VER_12_4: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_12_4) @@ -215,6 +221,12 @@ public open class AuroraPostgresEngineVersion( public val VER_13_13: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_13_13) + public val VER_13_14: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_13_14) + + public val VER_13_15: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_13_15) + public val VER_13_3: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_13_3) @@ -239,6 +251,12 @@ public open class AuroraPostgresEngineVersion( public val VER_14_10: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_14_10) + public val VER_14_11: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_14_11) + + public val VER_14_12: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_14_12) + public val VER_14_3: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_14_3) @@ -272,6 +290,12 @@ public open class AuroraPostgresEngineVersion( public val VER_15_5: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_15_5) + public val VER_15_6: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_15_6) + + public val VER_15_7: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_15_7) + public val VER_16_0: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_16_0) @@ -281,6 +305,9 @@ public open class AuroraPostgresEngineVersion( public val VER_16_2: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_16_2) + public val VER_16_3: AuroraPostgresEngineVersion = + AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_16_3) + public val VER_9_6_11: AuroraPostgresEngineVersion = AuroraPostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.AuroraPostgresEngineVersion.VER_9_6_11) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/BackupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/BackupProps.kt index 53876c4bf2..6d53320d77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/BackupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/BackupProps.kt @@ -98,7 +98,8 @@ public interface BackupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.BackupProps, - ) : CdkObject(cdkObject), BackupProps { + ) : CdkObject(cdkObject), + BackupProps { /** * A daily time range in 24-hours UTC format in which backups preferably execute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersion.kt index 3bc51d1e86..3c9f666a7c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersion.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCustomDBEngineVersion( cdkObject: software.amazon.awscdk.services.rds.CfnCustomDBEngineVersion, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersionProps.kt index 661a09ca33..94e7e0bdd7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnCustomDBEngineVersionProps.kt @@ -485,7 +485,8 @@ public interface CfnCustomDBEngineVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnCustomDBEngineVersionProps, - ) : CdkObject(cdkObject), CfnCustomDBEngineVersionProps { + ) : CdkObject(cdkObject), + CfnCustomDBEngineVersionProps { /** * The name of an Amazon S3 bucket that contains database installation files for your CEV. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBCluster.kt index b238128e3e..2ebbd25dd5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBCluster.kt @@ -53,8 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * * Deactivate any applications that are using the DB cluster so that there's no activity on the DB * instance. - * * Create a snapshot of the DB cluster. For more information, see [Creating a DB Cluster - * Snapshot](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CreateSnapshotCluster.html) + * * Create a snapshot of the DB cluster. For more information, see [Creating a DB cluster + * snapshot](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CreateSnapshotCluster.html) * . * * If you want to restore your DB cluster using a DB cluster snapshot, modify the updated template * with your DB cluster changes and add the `SnapshotIdentifier` property with the ID of the DB cluster @@ -121,7 +121,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .enableGlobalWriteForwarding(false) * .enableHttpEndpoint(false) * .enableIamDatabaseAuthentication(false) + * .enableLocalWriteForwarding(false) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineMode("engineMode") * .engineVersion("engineVersion") * .globalClusterIdentifier("globalClusterIdentifier") @@ -177,7 +179,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBCluster( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.rds.CfnDBCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -255,7 +259,8 @@ public open class CfnDBCluster( public open fun attrDbClusterResourceId(): String = unwrap(this).getAttrDbClusterResourceId() /** - * + * The `Endpoint` return value specifies the connection endpoint for the primary instance of the + * DB cluster. */ public open fun attrEndpoint(): IResolvable = unwrap(this).getAttrEndpoint().let(IResolvable::wrap) @@ -281,7 +286,19 @@ public open class CfnDBCluster( unwrap(this).getAttrMasterUserSecretSecretArn() /** + * The `ReadEndpoint` return value specifies the reader endpoint for the DB cluster. * + * The reader endpoint for a DB cluster load-balances connections across the Aurora Replicas that + * are available in a DB cluster. As clients request new connections to the reader endpoint, Aurora + * distributes the connection requests among the Aurora Replicas in the DB cluster. This + * functionality can help balance your read workload across multiple Aurora Replicas in your DB + * cluster. + * If a failover occurs, and the Aurora Replica that you are connected to is promoted to be the + * primary instance, your connection is dropped. To continue sending your read workload to other + * Aurora Replicas in the cluster, you can then reconnect to the reader endpoint. + * For more information about Aurora endpoints, see [Amazon Aurora connection + * management](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html) + * in the *Amazon Aurora User Guide*. */ public open fun attrReadEndpoint(): IResolvable = unwrap(this).getAttrReadEndpoint().let(IResolvable::wrap) @@ -347,14 +364,14 @@ public open class CfnDBCluster( /** * The target backtrack window, in seconds. * - * To disable backtracking, set this value to 0. + * To disable backtracking, set this value to `0` . */ public open fun backtrackWindow(): Number? = unwrap(this).getBacktrackWindow() /** * The target backtrack window, in seconds. * - * To disable backtracking, set this value to 0. + * To disable backtracking, set this value to `0` . */ public open fun backtrackWindow(`value`: Number) { unwrap(this).setBacktrackWindow(`value`) @@ -621,6 +638,28 @@ public open class CfnDBCluster( unwrap(this).setEnableIamDatabaseAuthentication(`value`.let(IResolvable.Companion::unwrap)) } + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + */ + public open fun enableLocalWriteForwarding(): Any? = unwrap(this).getEnableLocalWriteForwarding() + + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + */ + public open fun enableLocalWriteForwarding(`value`: Boolean) { + unwrap(this).setEnableLocalWriteForwarding(`value`) + } + + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + */ + public open fun enableLocalWriteForwarding(`value`: IResolvable) { + unwrap(this).setEnableLocalWriteForwarding(`value`.let(IResolvable.Companion::unwrap)) + } + /** * The name of the database engine to be used for this DB cluster. */ @@ -633,6 +672,18 @@ public open class CfnDBCluster( unwrap(this).setEngine(`value`) } + /** + * The life cycle type for this DB cluster. + */ + public open fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + + /** + * The life cycle type for this DB cluster. + */ + public open fun engineLifecycleSupport(`value`: String) { + unwrap(this).setEngineLifecycleSupport(`value`) + } + /** * The DB engine mode of the DB cluster, either `provisioned` or `serverless` . */ @@ -1104,20 +1155,20 @@ public open class CfnDBCluster( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -1284,25 +1335,19 @@ public open class CfnDBCluster( public fun availabilityZones(vararg availabilityZones: String) /** - * The target backtrack window, in seconds. To disable backtracking, set this value to 0. + * The target backtrack window, in seconds. To disable backtracking, set this value to `0` . * + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. - * - * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). * - * Valid for: Aurora MySQL DB clusters only - * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-backtrackwindow) * @param backtrackWindow The target backtrack window, in seconds. To disable backtracking, set - * this value to 0. + * this value to `0` . */ public fun backtrackWindow(backtrackWindow: Number) @@ -1424,8 +1469,6 @@ public open class CfnDBCluster( * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "default.aurora5.6" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusterparametergroupname) * @param dbClusterParameterGroupName The name of the DB cluster parameter group to associate * with this DB cluster. @@ -1711,6 +1754,34 @@ public open class CfnDBCluster( */ public fun enableIamDatabaseAuthentication(enableIamDatabaseAuthentication: IResolvable) + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + */ + public fun enableLocalWriteForwarding(enableLocalWriteForwarding: Boolean) + + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + */ + public fun enableLocalWriteForwarding(enableLocalWriteForwarding: IResolvable) + /** * The name of the database engine to be used for this DB cluster. * @@ -1728,6 +1799,39 @@ public open class CfnDBCluster( */ public fun engine(engine: String) + /** + * The life cycle type for this DB cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end + * of standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this DB cluster. + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * The DB engine mode of the DB cluster, either `provisioned` or `serverless` . * @@ -2027,8 +2131,6 @@ public open class CfnDBCluster( * * Default: `0` * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-monitoringinterval) * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB cluster. @@ -2220,11 +2322,12 @@ public open class CfnDBCluster( /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -2257,11 +2360,12 @@ public open class CfnDBCluster( /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -2338,8 +2442,6 @@ public open class CfnDBCluster( * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "full-copy" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-restoretype) * @param restoreType The type of restore to be performed. You can specify one of the following * values:. @@ -2603,22 +2705,22 @@ public open class CfnDBCluster( public fun storageType(storageType: String) /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster. + * @param tags Tags to assign to the DB cluster. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster. + * @param tags Tags to assign to the DB cluster. */ public fun tags(vararg tags: CfnTag) @@ -2818,25 +2920,19 @@ public open class CfnDBCluster( availabilityZones(availabilityZones.toList()) /** - * The target backtrack window, in seconds. To disable backtracking, set this value to 0. + * The target backtrack window, in seconds. To disable backtracking, set this value to `0` . * + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. - * - * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). * - * Valid for: Aurora MySQL DB clusters only - * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-backtrackwindow) * @param backtrackWindow The target backtrack window, in seconds. To disable backtracking, set - * this value to 0. + * this value to `0` . */ override fun backtrackWindow(backtrackWindow: Number) { cdkBuilder.backtrackWindow(backtrackWindow) @@ -2972,8 +3068,6 @@ public open class CfnDBCluster( * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "default.aurora5.6" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusterparametergroupname) * @param dbClusterParameterGroupName The name of the DB cluster parameter group to associate * with this DB cluster. @@ -3290,6 +3384,38 @@ public open class CfnDBCluster( cdkBuilder.enableIamDatabaseAuthentication(enableIamDatabaseAuthentication.let(IResolvable.Companion::unwrap)) } + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + */ + override fun enableLocalWriteForwarding(enableLocalWriteForwarding: Boolean) { + cdkBuilder.enableLocalWriteForwarding(enableLocalWriteForwarding) + } + + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + */ + override fun enableLocalWriteForwarding(enableLocalWriteForwarding: IResolvable) { + cdkBuilder.enableLocalWriteForwarding(enableLocalWriteForwarding.let(IResolvable.Companion::unwrap)) + } + /** * The name of the database engine to be used for this DB cluster. * @@ -3309,6 +3435,41 @@ public open class CfnDBCluster( cdkBuilder.engine(engine) } + /** + * The life cycle type for this DB cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end + * of standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this DB cluster. + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * The DB engine mode of the DB cluster, either `provisioned` or `serverless` . * @@ -3631,8 +3792,6 @@ public open class CfnDBCluster( * * Default: `0` * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-monitoringinterval) * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB cluster. @@ -3844,11 +4003,12 @@ public open class CfnDBCluster( /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -3883,11 +4043,12 @@ public open class CfnDBCluster( /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -3970,8 +4131,6 @@ public open class CfnDBCluster( * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "full-copy" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-restoretype) * @param restoreType The type of restore to be performed. You can specify one of the following * values:. @@ -4260,24 +4419,24 @@ public open class CfnDBCluster( } /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster. + * @param tags Tags to assign to the DB cluster. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster. + * @param tags Tags to assign to the DB cluster. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -4460,7 +4619,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.DBClusterRoleProperty, - ) : CdkObject(cdkObject), DBClusterRoleProperty { + ) : CdkObject(cdkObject), + DBClusterRoleProperty { /** * The name of the feature associated with the AWS Identity and Access Management (IAM) role. * @@ -4576,7 +4736,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * Specifies the connection endpoint for the primary instance of the DB cluster. * @@ -4644,6 +4805,11 @@ public open class CfnDBCluster( /** * The Amazon Resource Name (ARN) of the secret. * + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html#cfn-rds-dbcluster-masterusersecret-secretarn) */ public fun secretArn(): String? = unwrap(this).getSecretArn() @@ -4660,6 +4826,10 @@ public open class CfnDBCluster( /** * @param secretArn The Amazon Resource Name (ARN) of the secret. + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values) + * . */ public fun secretArn(secretArn: String) } @@ -4678,6 +4848,10 @@ public open class CfnDBCluster( /** * @param secretArn The Amazon Resource Name (ARN) of the secret. + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values) + * . */ override fun secretArn(secretArn: String) { cdkBuilder.secretArn(secretArn) @@ -4689,7 +4863,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.MasterUserSecretProperty, - ) : CdkObject(cdkObject), MasterUserSecretProperty { + ) : CdkObject(cdkObject), + MasterUserSecretProperty { /** * The AWS KMS key identifier that is used to encrypt the secret. * @@ -4700,6 +4875,11 @@ public open class CfnDBCluster( /** * The Amazon Resource Name (ARN) of the secret. * + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html#cfn-rds-dbcluster-masterusersecret-secretarn) */ override fun secretArn(): String? = unwrap(this).getSecretArn() @@ -4790,7 +4970,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.ReadEndpointProperty, - ) : CdkObject(cdkObject), ReadEndpointProperty { + ) : CdkObject(cdkObject), + ReadEndpointProperty { /** * The host address of the reader endpoint. * @@ -5136,7 +5317,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.ScalingConfigurationProperty, - ) : CdkObject(cdkObject), ScalingConfigurationProperty { + ) : CdkObject(cdkObject), + ScalingConfigurationProperty { /** * Indicates whether to allow or disallow automatic pause for an Aurora DB cluster in * `serverless` DB engine mode. @@ -5252,9 +5434,9 @@ public open class CfnDBCluster( * v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) in the * *Amazon Aurora User Guide* . * - * If you have an Aurora cluster, you must set the `ScalingConfigurationInfo` attribute before you - * add a DB instance that uses the `db.serverless` DB instance class. For more information, see - * [Clusters that use Aurora Serverless v2 must have a capacity range + * If you have an Aurora cluster, you must set this attribute before you add a DB instance that + * uses the `db.serverless` DB instance class. For more information, see [Clusters that use Aurora + * Serverless v2 must have a capacity range * specified](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html#aurora-serverless-v2.requirements.capacity-range) * in the *Amazon Aurora User Guide* . * @@ -5291,6 +5473,11 @@ public open class CfnDBCluster( * cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.max_capacity_considerations) * in the *Amazon Aurora User Guide* . * + * Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to values + * that depend on the maximum ACU value in the capacity range. When you update the maximum capacity + * value, the `ParameterApplyStatus` value for the DB instance changes to `pending-reboot` . You + * can update the parameter values by rebooting the DB instance after changing the capacity range. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-serverlessv2scalingconfiguration.html#cfn-rds-dbcluster-serverlessv2scalingconfiguration-maxcapacity) */ public fun maxCapacity(): Number? = unwrap(this).getMaxCapacity() @@ -5321,6 +5508,12 @@ public open class CfnDBCluster( * maximum Aurora Serverless v2 capacity setting for a * cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.max_capacity_considerations) * in the *Amazon Aurora User Guide* . + * + * Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to + * values that depend on the maximum ACU value in the capacity range. When you update the maximum + * capacity value, the `ParameterApplyStatus` value for the DB instance changes to + * `pending-reboot` . You can update the parameter values by rebooting the DB instance after + * changing the capacity range. */ public fun maxCapacity(maxCapacity: Number) @@ -5349,6 +5542,12 @@ public open class CfnDBCluster( * maximum Aurora Serverless v2 capacity setting for a * cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.max_capacity_considerations) * in the *Amazon Aurora User Guide* . + * + * Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to + * values that depend on the maximum ACU value in the capacity range. When you update the maximum + * capacity value, the `ParameterApplyStatus` value for the DB instance changes to + * `pending-reboot` . You can update the parameter values by rebooting the DB instance after + * changing the capacity range. */ override fun maxCapacity(maxCapacity: Number) { cdkBuilder.maxCapacity(maxCapacity) @@ -5371,7 +5570,8 @@ public open class CfnDBCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBCluster.ServerlessV2ScalingConfigurationProperty, - ) : CdkObject(cdkObject), ServerlessV2ScalingConfigurationProperty { + ) : CdkObject(cdkObject), + ServerlessV2ScalingConfigurationProperty { /** * The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora * Serverless v2 cluster. @@ -5384,6 +5584,12 @@ public open class CfnDBCluster( * cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.max_capacity_considerations) * in the *Amazon Aurora User Guide* . * + * Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to + * values that depend on the maximum ACU value in the capacity range. When you update the maximum + * capacity value, the `ParameterApplyStatus` value for the DB instance changes to + * `pending-reboot` . You can update the parameter values by rebooting the DB instance after + * changing the capacity range. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-serverlessv2scalingconfiguration.html#cfn-rds-dbcluster-serverlessv2scalingconfiguration-maxcapacity) */ override fun maxCapacity(): Number? = unwrap(this).getMaxCapacity() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroup.kt index a16c32d08b..92f64687ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroup.kt @@ -29,7 +29,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * If you apply a parameter group to a DB cluster, then its DB instances might need to reboot. This * can result in an outage while the DB instances are rebooting. * - * If you apply a change to parameter group associated with a stopped DB cluster, then the update + * If you apply a change to parameter group associated with a stopped DB cluster, then the updated * stack waits until the DB cluster is started. * * @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBClusterParameterGroup( cdkObject: software.amazon.awscdk.services.rds.CfnDBClusterParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -89,12 +91,12 @@ public open class CfnDBClusterParameterGroup( } /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. */ public open fun description(): String = unwrap(this).getDescription() /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. */ public open fun description(`value`: String) { unwrap(this).setDescription(`value`) @@ -139,20 +141,20 @@ public open class CfnDBClusterParameterGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -168,9 +170,6 @@ public open class CfnDBClusterParameterGroup( * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. * @@ -181,10 +180,10 @@ public open class CfnDBClusterParameterGroup( public fun dbClusterParameterGroupName(dbClusterParameterGroupName: String) /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-description) - * @param description A friendly description for this DB cluster parameter group. + * @param description The description for the DB cluster parameter group. */ public fun description(description: String) @@ -192,23 +191,47 @@ public open class CfnDBClusterParameterGroup( * The DB cluster parameter group family name. * * A DB cluster parameter group can be associated with one and only one DB cluster parameter - * group family, and can be applied only to a DB cluster running a DB engine and engine version - * compatible with that DB cluster parameter group family. + * group family, and can be applied only to a DB cluster running a database engine and engine + * version compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL + * DB engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-family) * @param family The DB cluster parameter group family name. @@ -224,20 +247,18 @@ public open class CfnDBClusterParameterGroup( public fun parameters(parameters: Any) /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. - * + * @param tags Tags to assign to the DB cluster parameter group. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. - * + * @param tags Tags to assign to the DB cluster parameter group. */ public fun tags(vararg tags: CfnTag) } @@ -256,9 +277,6 @@ public open class CfnDBClusterParameterGroup( * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. * @@ -271,10 +289,10 @@ public open class CfnDBClusterParameterGroup( } /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-description) - * @param description A friendly description for this DB cluster parameter group. + * @param description The description for the DB cluster parameter group. */ override fun description(description: String) { cdkBuilder.description(description) @@ -284,23 +302,47 @@ public open class CfnDBClusterParameterGroup( * The DB cluster parameter group family name. * * A DB cluster parameter group can be associated with one and only one DB cluster parameter - * group family, and can be applied only to a DB cluster running a DB engine and engine version - * compatible with that DB cluster parameter group family. + * group family, and can be applied only to a DB cluster running a database engine and engine + * version compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL + * DB engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-family) * @param family The DB cluster parameter group family name. @@ -320,22 +362,20 @@ public open class CfnDBClusterParameterGroup( } /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. - * + * @param tags Tags to assign to the DB cluster parameter group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. - * + * @param tags Tags to assign to the DB cluster parameter group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroupProps.kt index be9ad074e0..1efc9e6d55 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterParameterGroupProps.kt @@ -45,9 +45,6 @@ public interface CfnDBClusterParameterGroupProps { * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. * @@ -57,7 +54,7 @@ public interface CfnDBClusterParameterGroupProps { public fun dbClusterParameterGroupName(): String? = unwrap(this).getDbClusterParameterGroupName() /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-description) */ @@ -67,23 +64,47 @@ public interface CfnDBClusterParameterGroupProps { * The DB cluster parameter group family name. * * A DB cluster parameter group can be associated with one and only one DB cluster parameter group - * family, and can be applied only to a DB cluster running a DB engine and engine version compatible - * with that DB cluster parameter group family. + * family, and can be applied only to a DB cluster running a database engine and engine version + * compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL DB + * engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-family) */ @@ -97,7 +118,7 @@ public interface CfnDBClusterParameterGroupProps { public fun parameters(): Any /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) */ @@ -114,39 +135,60 @@ public interface CfnDBClusterParameterGroupProps { * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. */ public fun dbClusterParameterGroupName(dbClusterParameterGroupName: String) /** - * @param description A friendly description for this DB cluster parameter group. + * @param description The description for the DB cluster parameter group. */ public fun description(description: String) /** * @param family The DB cluster parameter group family name. * A DB cluster parameter group can be associated with one and only one DB cluster parameter - * group family, and can be applied only to a DB cluster running a DB engine and engine version - * compatible with that DB cluster parameter group family. + * group family, and can be applied only to a DB cluster running a database engine and engine + * version compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL + * DB engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` */ public fun family(family: String) @@ -156,12 +198,12 @@ public interface CfnDBClusterParameterGroupProps { public fun parameters(parameters: Any) /** - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. + * @param tags Tags to assign to the DB cluster parameter group. */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. + * @param tags Tags to assign to the DB cluster parameter group. */ public fun tags(vararg tags: CfnTag) } @@ -177,9 +219,6 @@ public interface CfnDBClusterParameterGroupProps { * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. */ @@ -188,7 +227,7 @@ public interface CfnDBClusterParameterGroupProps { } /** - * @param description A friendly description for this DB cluster parameter group. + * @param description The description for the DB cluster parameter group. */ override fun description(description: String) { cdkBuilder.description(description) @@ -197,23 +236,47 @@ public interface CfnDBClusterParameterGroupProps { /** * @param family The DB cluster parameter group family name. * A DB cluster parameter group can be associated with one and only one DB cluster parameter - * group family, and can be applied only to a DB cluster running a DB engine and engine version - * compatible with that DB cluster parameter group family. + * group family, and can be applied only to a DB cluster running a database engine and engine + * version compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL + * DB engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` */ override fun family(family: String) { cdkBuilder.family(family) @@ -227,14 +290,14 @@ public interface CfnDBClusterParameterGroupProps { } /** - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. + * @param tags Tags to assign to the DB cluster parameter group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB cluster parameter group. + * @param tags Tags to assign to the DB cluster parameter group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -244,7 +307,8 @@ public interface CfnDBClusterParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBClusterParameterGroupProps, - ) : CdkObject(cdkObject), CfnDBClusterParameterGroupProps { + ) : CdkObject(cdkObject), + CfnDBClusterParameterGroupProps { /** * The name of the DB cluster parameter group. * @@ -252,9 +316,6 @@ public interface CfnDBClusterParameterGroupProps { * * * Must not match the name of an existing DB cluster parameter group. * - * If you don't specify a value for `DBClusterParameterGroupName` property, a name is - * automatically created for the DB cluster parameter group. - * * * This value is stored as a lowercase string. * @@ -265,7 +326,7 @@ public interface CfnDBClusterParameterGroupProps { unwrap(this).getDbClusterParameterGroupName() /** - * A friendly description for this DB cluster parameter group. + * The description for the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-description) */ @@ -275,23 +336,47 @@ public interface CfnDBClusterParameterGroupProps { * The DB cluster parameter group family name. * * A DB cluster parameter group can be associated with one and only one DB cluster parameter - * group family, and can be applied only to a DB cluster running a DB engine and engine version - * compatible with that DB cluster parameter group family. + * group family, and can be applied only to a DB cluster running a database engine and engine + * version compatible with that DB cluster parameter group family. + * + * *Aurora MySQL* + * + * Example: `aurora-mysql5.7` , `aurora-mysql8.0` + * + * *Aurora PostgreSQL* + * + * Example: `aurora-postgresql14` + * + * *RDS for MySQL* * + * Example: `mysql8.0` * - * The DB cluster parameter group family can't be changed when updating a DB cluster parameter - * group. + * *RDS for PostgreSQL* * + * Example: `postgres13` * - * To list all of the available parameter group families, use the following command: + * To list all of the available parameter group families for a DB engine, use the following + * command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` + * + * For example, to list all of the available parameter group families for the Aurora PostgreSQL + * DB engine, use the following command: + * + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBClusterParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBClusterParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `mysql` + * * `postgres` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-family) */ @@ -305,7 +390,7 @@ public interface CfnDBClusterParameterGroupProps { override fun parameters(): Any = unwrap(this).getParameters() /** - * An optional array of key-value pairs to apply to this DB cluster parameter group. + * Tags to assign to the DB cluster parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterProps.kt index 1775e05253..295fe7290a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBClusterProps.kt @@ -50,7 +50,9 @@ import kotlin.jvm.JvmName * .enableGlobalWriteForwarding(false) * .enableHttpEndpoint(false) * .enableIamDatabaseAuthentication(false) + * .enableLocalWriteForwarding(false) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineMode("engineMode") * .engineVersion("engineVersion") * .globalClusterIdentifier("globalClusterIdentifier") @@ -157,22 +159,16 @@ public interface CfnDBClusterProps { public fun availabilityZones(): List = unwrap(this).getAvailabilityZones() ?: emptyList() /** - * The target backtrack window, in seconds. To disable backtracking, set this value to 0. + * The target backtrack window, in seconds. To disable backtracking, set this value to `0` . * + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. - * - * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). * - * Valid for: Aurora MySQL DB clusters only - * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-backtrackwindow) */ public fun backtrackWindow(): Number? = unwrap(this).getBacktrackWindow() @@ -272,8 +268,6 @@ public interface CfnDBClusterProps { * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "default.aurora5.6" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusterparametergroupname) */ public fun dbClusterParameterGroupName(): String? = unwrap(this).getDbClusterParameterGroupName() @@ -441,6 +435,18 @@ public interface CfnDBClusterProps { public fun enableIamDatabaseAuthentication(): Any? = unwrap(this).getEnableIamDatabaseAuthentication() + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + */ + public fun enableLocalWriteForwarding(): Any? = unwrap(this).getEnableLocalWriteForwarding() + /** * The name of the database engine to be used for this DB cluster. * @@ -457,6 +463,38 @@ public interface CfnDBClusterProps { */ public fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this DB cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In this + * case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end of + * standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginelifecyclesupport) + */ + public fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The DB engine mode of the DB cluster, either `provisioned` or `serverless` . * @@ -681,8 +719,6 @@ public interface CfnDBClusterProps { * * Default: `0` * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-monitoringinterval) */ public fun monitoringInterval(): Number? = unwrap(this).getMonitoringInterval() @@ -842,11 +878,12 @@ public interface CfnDBClusterProps { /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately - * controlled by the security group it uses. That public access isn't permitted if the security group - * assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the + * private IP address. Access to the DB cluster is ultimately controlled by the security group it + * uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't + * permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -919,8 +956,6 @@ public interface CfnDBClusterProps { * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "full-copy" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-restoretype) */ public fun restoreType(): String? = unwrap(this).getRestoreType() @@ -1078,9 +1113,9 @@ public interface CfnDBClusterProps { public fun storageType(): String? = unwrap(this).getStorageType() /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) */ @@ -1197,18 +1232,14 @@ public interface CfnDBClusterProps { /** * @param backtrackWindow The target backtrack window, in seconds. To disable backtracking, set - * this value to 0. + * this value to `0` . + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. - * - * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). - * - * Valid for: Aurora MySQL DB clusters only */ public fun backtrackWindow(backtrackWindow: Number) @@ -1516,6 +1547,24 @@ public interface CfnDBClusterProps { */ public fun enableIamDatabaseAuthentication(enableIamDatabaseAuthentication: IResolvable) + /** + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + */ + public fun enableLocalWriteForwarding(enableLocalWriteForwarding: Boolean) + + /** + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + */ + public fun enableLocalWriteForwarding(enableLocalWriteForwarding: IResolvable) + /** * @param engine The name of the database engine to be used for this DB cluster. * Valid Values: @@ -1529,6 +1578,35 @@ public interface CfnDBClusterProps { */ public fun engine(engine: String) + /** + * @param engineLifecycleSupport The life cycle type for this DB cluster. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end + * of standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * @param engineMode The DB engine mode of the DB cluster, either `provisioned` or `serverless` * . @@ -1922,11 +2000,12 @@ public interface CfnDBClusterProps { /** * @param publiclyAccessible Specifies whether the DB cluster is publicly accessible. - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -1955,11 +2034,12 @@ public interface CfnDBClusterProps { /** * @param publiclyAccessible Specifies whether the DB cluster is publicly accessible. - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -2232,14 +2312,14 @@ public interface CfnDBClusterProps { public fun storageType(storageType: String) /** - * @param tags An optional array of key-value pairs to apply to this DB cluster. - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * @param tags Tags to assign to the DB cluster. + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB cluster. - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * @param tags Tags to assign to the DB cluster. + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters */ public fun tags(vararg tags: CfnTag) @@ -2381,18 +2461,14 @@ public interface CfnDBClusterProps { /** * @param backtrackWindow The target backtrack window, in seconds. To disable backtracking, set - * this value to 0. - * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. - * + * this value to `0` . + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). - * - * Valid for: Aurora MySQL DB clusters only */ override fun backtrackWindow(backtrackWindow: Number) { cdkBuilder.backtrackWindow(backtrackWindow) @@ -2745,6 +2821,28 @@ public interface CfnDBClusterProps { cdkBuilder.enableIamDatabaseAuthentication(enableIamDatabaseAuthentication.let(IResolvable.Companion::unwrap)) } + /** + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + */ + override fun enableLocalWriteForwarding(enableLocalWriteForwarding: Boolean) { + cdkBuilder.enableLocalWriteForwarding(enableLocalWriteForwarding) + } + + /** + * @param enableLocalWriteForwarding Specifies whether read replicas can forward write + * operations to the writer DB instance in the DB cluster. + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + */ + override fun enableLocalWriteForwarding(enableLocalWriteForwarding: IResolvable) { + cdkBuilder.enableLocalWriteForwarding(enableLocalWriteForwarding.let(IResolvable.Companion::unwrap)) + } + /** * @param engine The name of the database engine to be used for this DB cluster. * Valid Values: @@ -2760,6 +2858,37 @@ public interface CfnDBClusterProps { cdkBuilder.engine(engine) } + /** + * @param engineLifecycleSupport The life cycle type for this DB cluster. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end + * of standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * @param engineMode The DB engine mode of the DB cluster, either `provisioned` or `serverless` * . @@ -3196,11 +3325,12 @@ public interface CfnDBClusterProps { /** * @param publiclyAccessible Specifies whether the DB cluster is publicly accessible. - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -3231,11 +3361,12 @@ public interface CfnDBClusterProps { /** * @param publiclyAccessible Specifies whether the DB cluster is publicly accessible. - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -3540,16 +3671,16 @@ public interface CfnDBClusterProps { } /** - * @param tags An optional array of key-value pairs to apply to this DB cluster. - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * @param tags Tags to assign to the DB cluster. + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB cluster. - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * @param tags Tags to assign to the DB cluster. + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -3601,7 +3732,8 @@ public interface CfnDBClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBClusterProps, - ) : CdkObject(cdkObject), CfnDBClusterProps { + ) : CdkObject(cdkObject), + CfnDBClusterProps { /** * The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB * cluster. @@ -3655,22 +3787,16 @@ public interface CfnDBClusterProps { emptyList() /** - * The target backtrack window, in seconds. To disable backtracking, set this value to 0. - * + * The target backtrack window, in seconds. To disable backtracking, set this value to `0` . * - * Currently, Backtrack is only supported for Aurora MySQL DB clusters. + * Valid for Cluster Type: Aurora MySQL DB clusters only * - * - * Default: 0 + * Default: `0` * * Constraints: * * * If specified, this value must be set to a number from 0 to 259,200 (72 hours). * - * Valid for: Aurora MySQL DB clusters only - * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-backtrackwindow) */ override fun backtrackWindow(): Number? = unwrap(this).getBacktrackWindow() @@ -3770,8 +3896,6 @@ public interface CfnDBClusterProps { * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "default.aurora5.6" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbclusterparametergroupname) */ override fun dbClusterParameterGroupName(): String? = @@ -3940,6 +4064,18 @@ public interface CfnDBClusterProps { override fun enableIamDatabaseAuthentication(): Any? = unwrap(this).getEnableIamDatabaseAuthentication() + /** + * Specifies whether read replicas can forward write operations to the writer DB instance in the + * DB cluster. + * + * By default, write operations aren't allowed on reader DB instances. + * + * Valid for: Aurora DB clusters only + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablelocalwriteforwarding) + */ + override fun enableLocalWriteForwarding(): Any? = unwrap(this).getEnableLocalWriteForwarding() + /** * The name of the database engine to be used for this DB cluster. * @@ -3956,6 +4092,38 @@ public interface CfnDBClusterProps { */ override fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this DB cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB cluster past the end + * of standard support for that engine version. For more information, see the following sections: + * + * * Amazon Aurora (PostgreSQL only) - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* + * * Amazon RDS - [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* + * + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginelifecyclesupport) + */ + override fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The DB engine mode of the DB cluster, either `provisioned` or `serverless` . * @@ -4184,8 +4352,6 @@ public interface CfnDBClusterProps { * * Default: `0` * - * Default: - 0 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-monitoringinterval) */ override fun monitoringInterval(): Number? = unwrap(this).getMonitoringInterval() @@ -4349,11 +4515,12 @@ public interface CfnDBClusterProps { /** * Specifies whether the DB cluster is publicly accessible. * - * When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to - * the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to - * the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is - * ultimately controlled by the security group it uses. That public access isn't permitted if the - * security group assigned to the DB cluster doesn't permit it. + * When the DB cluster is publicly accessible and you connect from outside of the DB cluster's + * virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP + * address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to + * the private IP address. Access to the DB cluster is ultimately controlled by the security group + * it uses. That public access isn't permitted if the security group assigned to the DB cluster + * doesn't permit it. * * When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name * that resolves to a private IP address. @@ -4427,8 +4594,6 @@ public interface CfnDBClusterProps { * * Valid for: Aurora DB clusters and Multi-AZ DB clusters * - * Default: - "full-copy" - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-restoretype) */ override fun restoreType(): String? = unwrap(this).getRestoreType() @@ -4588,9 +4753,9 @@ public interface CfnDBClusterProps { override fun storageType(): String? = unwrap(this).getStorageType() /** - * An optional array of key-value pairs to apply to this DB cluster. + * Tags to assign to the DB cluster. * - * Valid for: Aurora DB clusters and Multi-AZ DB clusters + * Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstance.kt index 3efc884f15..9a8ad1d1b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstance.kt @@ -160,6 +160,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .port("port") * .build()) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineVersion("engineVersion") * .iops(123) * .kmsKeyId("kmsKeyId") @@ -216,7 +217,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBInstance( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.rds.CfnDBInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -349,6 +352,11 @@ public open class CfnDBInstance( /** * The Amazon Resource Name (ARN) of the secret. + * + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) + * . */ public open fun attrMasterUserSecretSecretArn(): String = unwrap(this).getAttrMasterUserSecretSecretArn() @@ -389,13 +397,13 @@ public open class CfnDBInstance( } /** - * The destination region for the backup replication of the DB instance. + * The AWS Region associated with the automated backup. */ public open fun automaticBackupReplicationRegion(): String? = unwrap(this).getAutomaticBackupReplicationRegion() /** - * The destination region for the backup replication of the DB instance. + * The AWS Region associated with the automated backup. */ public open fun automaticBackupReplicationRegion(`value`: String) { unwrap(this).setAutomaticBackupReplicationRegion(`value`) @@ -531,12 +539,12 @@ public open class CfnDBInstance( } /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. */ public open fun dbClusterIdentifier(): String? = unwrap(this).getDbClusterIdentifier() /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. */ public open fun dbClusterIdentifier(`value`: String) { unwrap(this).setDbClusterIdentifier(`value`) @@ -706,19 +714,19 @@ public open class CfnDBInstance( } /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. */ public open fun deletionProtection(): Any? = unwrap(this).getDeletionProtection() /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. */ public open fun deletionProtection(`value`: Boolean) { unwrap(this).setDeletionProtection(`value`) } /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. */ public open fun deletionProtection(`value`: IResolvable) { unwrap(this).setDeletionProtection(`value`.let(IResolvable.Companion::unwrap)) @@ -901,6 +909,18 @@ public open class CfnDBInstance( unwrap(this).setEngine(`value`) } + /** + * The life cycle type for this DB instance. + */ + public open fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + + /** + * The life cycle type for this DB instance. + */ + public open fun engineLifecycleSupport(`value`: String) { + unwrap(this).setEngineLifecycleSupport(`value`) + } + /** * The version number of the database engine to use. */ @@ -1077,19 +1097,19 @@ public open class CfnDBInstance( } /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. */ public open fun multiAz(): Any? = unwrap(this).getMultiAz() /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. */ public open fun multiAz(`value`: Boolean) { unwrap(this).setMultiAz(`value`) } /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. */ public open fun multiAz(`value`: IResolvable) { unwrap(this).setMultiAz(`value`.let(IResolvable.Companion::unwrap)) @@ -1406,20 +1426,20 @@ public open class CfnDBInstance( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -1710,15 +1730,10 @@ public open class CfnDBInstance( public fun automaticBackupReplicationKmsKeyId(automaticBackupReplicationKmsKeyId: String) /** - * The destination region for the backup replication of the DB instance. - * - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in - * the *Amazon RDS User Guide* . + * The AWS Region associated with the automated backup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion) - * @param automaticBackupReplicationRegion The destination region for the backup replication of - * the DB instance. + * @param automaticBackupReplicationRegion The AWS Region associated with the automated backup. */ public fun automaticBackupReplicationRegion(automaticBackupReplicationRegion: String) @@ -1765,8 +1780,6 @@ public open class CfnDBInstance( * * Must be a value from 0 to 35 * * Can't be set to 0 if the DB instance is a source to read replicas * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-backupretentionperiod) * @param backupRetentionPeriod The number of days for which automated backups are retained. */ @@ -1942,11 +1955,13 @@ public open class CfnDBInstance( public fun customIamInstanceProfile(customIamInstanceProfile: String) /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. + * + * This setting doesn't apply to RDS Custom DB instances. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbclusteridentifier) - * @param dbClusterIdentifier The identifier of the DB cluster that the instance will belong to. - * + * @param dbClusterIdentifier The identifier of the DB cluster that this DB instance will belong + * to. */ public fun dbClusterIdentifier(dbClusterIdentifier: String) @@ -2251,7 +2266,6 @@ public open class CfnDBInstance( * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -2280,15 +2294,12 @@ public open class CfnDBInstance( * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon - * Virtual Private Cloud - * (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS * User Guide* . * - * *Amazon Aurora* - * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by + * the DB cluster. If specified, the setting must match the DB cluster setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbsubnetgroupname) * @param dbSubnetGroupName A DB subnet group to associate with the DB instance. @@ -2350,40 +2361,34 @@ public open class CfnDBInstance( public fun deleteAutomatedBackups(deleteAutomatedBackups: IResolvable) /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. */ public fun deletionProtection(deletionProtection: Boolean) /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. */ public fun deletionProtection(deletionProtection: IResolvable) @@ -2725,6 +2730,35 @@ public open class CfnDBInstance( */ public fun engine(engine: String) + /** + * The life cycle type for this DB instance. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB instance will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your DB instance past the + * end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + * in the *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this DB instance. + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * The version number of the database engine to use. * @@ -2818,8 +2852,14 @@ public open class CfnDBInstance( * CloudFormation uses the default KMS key. If you specify this property, you must set the * StorageEncrypted property to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. However, if the source DB + * instance is in a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup, and if the + * automated backup is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a * KMS key for the destination AWS Region. KMS encryption keys are specific to the region that @@ -3078,16 +3118,16 @@ public open class CfnDBInstance( * The interval, in seconds, between points when Enhanced Monitoring metrics are collected for * the DB instance. * - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` * - * Default: - 0 + * Default: `0` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-monitoringinterval) * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring @@ -3116,40 +3156,32 @@ public open class CfnDBInstance( public fun monitoringRoleArn(monitoringRoleArn: String) /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. */ public fun multiAz(multiAz: Boolean) /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. - * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. */ public fun multiAz(multiAz: IResolvable) @@ -3241,13 +3273,23 @@ public open class CfnDBInstance( /** * The port number on which the database accepts connections. * - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: + * + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` + * + * Constraints: * - * Default value: `50000` + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-port) * @param port The port number on which the database accepts connections. @@ -3355,8 +3397,6 @@ public open class CfnDBInstance( * * Valid Values: `0 - 15` * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-promotiontier) * @param promotionTier The order of priority in which an Aurora Replica is promoted to the * primary instance after a failure of the existing primary instance. @@ -3418,6 +3458,11 @@ public open class CfnDBInstance( /** * The date and time to restore from. * + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the + * *Amazon RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -3479,7 +3524,11 @@ public open class CfnDBInstance( * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point + * in time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -3533,9 +3582,12 @@ public open class CfnDBInstance( * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -3555,9 +3607,12 @@ public open class CfnDBInstance( * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -3603,18 +3658,18 @@ public open class CfnDBInstance( public fun storageType(storageType: String) /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ public fun tags(vararg tags: CfnTag) @@ -3674,7 +3729,10 @@ public open class CfnDBInstance( /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -3689,7 +3747,10 @@ public open class CfnDBInstance( /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -3994,15 +4055,10 @@ public open class CfnDBInstance( } /** - * The destination region for the backup replication of the DB instance. - * - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in - * the *Amazon RDS User Guide* . + * The AWS Region associated with the automated backup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion) - * @param automaticBackupReplicationRegion The destination region for the backup replication of - * the DB instance. + * @param automaticBackupReplicationRegion The AWS Region associated with the automated backup. */ override fun automaticBackupReplicationRegion(automaticBackupReplicationRegion: String) { cdkBuilder.automaticBackupReplicationRegion(automaticBackupReplicationRegion) @@ -4053,8 +4109,6 @@ public open class CfnDBInstance( * * Must be a value from 0 to 35 * * Can't be set to 0 if the DB instance is a source to read replicas * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-backupretentionperiod) * @param backupRetentionPeriod The number of days for which automated backups are retained. */ @@ -4252,11 +4306,13 @@ public open class CfnDBInstance( } /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. + * + * This setting doesn't apply to RDS Custom DB instances. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbclusteridentifier) - * @param dbClusterIdentifier The identifier of the DB cluster that the instance will belong to. - * + * @param dbClusterIdentifier The identifier of the DB cluster that this DB instance will belong + * to. */ override fun dbClusterIdentifier(dbClusterIdentifier: String) { cdkBuilder.dbClusterIdentifier(dbClusterIdentifier) @@ -4576,7 +4632,6 @@ public open class CfnDBInstance( * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -4607,15 +4662,12 @@ public open class CfnDBInstance( * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon - * Virtual Private Cloud - * (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS * User Guide* . * - * *Amazon Aurora* - * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by + * the DB cluster. If specified, the setting must match the DB cluster setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbsubnetgroupname) * @param dbSubnetGroupName A DB subnet group to associate with the DB instance. @@ -4687,42 +4739,36 @@ public open class CfnDBInstance( } /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. */ override fun deletionProtection(deletionProtection: Boolean) { cdkBuilder.deletionProtection(deletionProtection) } /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. */ override fun deletionProtection(deletionProtection: IResolvable) { cdkBuilder.deletionProtection(deletionProtection.let(IResolvable.Companion::unwrap)) @@ -5097,6 +5143,37 @@ public open class CfnDBInstance( cdkBuilder.engine(engine) } + /** + * The life cycle type for this DB instance. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB instance will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your DB instance past the + * end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + * in the *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this DB instance. + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * The version number of the database engine to use. * @@ -5194,8 +5271,14 @@ public open class CfnDBInstance( * CloudFormation uses the default KMS key. If you specify this property, you must set the * StorageEncrypted property to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. However, if the source DB + * instance is in a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup, and if the + * automated backup is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a * KMS key for the destination AWS Region. KMS encryption keys are specific to the region that @@ -5473,16 +5556,16 @@ public open class CfnDBInstance( * The interval, in seconds, between points when Enhanced Monitoring metrics are collected for * the DB instance. * - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` * - * Default: - 0 + * Default: `0` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-monitoringinterval) * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring @@ -5515,42 +5598,34 @@ public open class CfnDBInstance( } /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. - * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. */ override fun multiAz(multiAz: Boolean) { cdkBuilder.multiAz(multiAz) } /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. */ override fun multiAz(multiAz: IResolvable) { cdkBuilder.multiAz(multiAz.let(IResolvable.Companion::unwrap)) @@ -5654,13 +5729,23 @@ public open class CfnDBInstance( /** * The port number on which the database accepts connections. * - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: * - * Default value: `50000` + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` + * + * Constraints: + * + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-port) * @param port The port number on which the database accepts connections. @@ -5779,8 +5864,6 @@ public open class CfnDBInstance( * * Valid Values: `0 - 15` * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-promotiontier) * @param promotionTier The order of priority in which an Aurora Replica is promoted to the * primary instance after a failure of the existing primary instance. @@ -5850,6 +5933,11 @@ public open class CfnDBInstance( /** * The date and time to restore from. * + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the + * *Amazon RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -5917,7 +6005,11 @@ public open class CfnDBInstance( * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point + * in time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -5977,9 +6069,12 @@ public open class CfnDBInstance( * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -6001,9 +6096,12 @@ public open class CfnDBInstance( * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -6055,20 +6153,20 @@ public open class CfnDBInstance( } /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -6138,7 +6236,10 @@ public open class CfnDBInstance( /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -6155,7 +6256,10 @@ public open class CfnDBInstance( /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -6280,7 +6384,7 @@ public open class CfnDBInstance( } /** - * Returns the details of the DB instance’s server certificate. + * The details of the DB instance’s server certificate. * * For more information, see [Using SSL/TLS to encrypt a connection to a DB * instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) in the @@ -6361,7 +6465,8 @@ public open class CfnDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance.CertificateDetailsProperty, - ) : CdkObject(cdkObject), CertificateDetailsProperty { + ) : CdkObject(cdkObject), + CertificateDetailsProperty { /** * The CA identifier of the CA certificate used for the DB instance's server certificate. * @@ -6489,7 +6594,8 @@ public open class CfnDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance.DBInstanceRoleProperty, - ) : CdkObject(cdkObject), DBInstanceRoleProperty { + ) : CdkObject(cdkObject), + DBInstanceRoleProperty { /** * The name of the feature associated with the AWS Identity and Access Management (IAM) role. * @@ -6633,7 +6739,8 @@ public open class CfnDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * Specifies the DNS address of the DB instance. * @@ -6708,6 +6815,11 @@ public open class CfnDBInstance( /** * The Amazon Resource Name (ARN) of the secret. * + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-masterusersecret.html#cfn-rds-dbinstance-masterusersecret-secretarn) */ public fun secretArn(): String? = unwrap(this).getSecretArn() @@ -6724,6 +6836,10 @@ public open class CfnDBInstance( /** * @param secretArn The Amazon Resource Name (ARN) of the secret. + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) + * . */ public fun secretArn(secretArn: String) } @@ -6742,6 +6858,10 @@ public open class CfnDBInstance( /** * @param secretArn The Amazon Resource Name (ARN) of the secret. + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) + * . */ override fun secretArn(secretArn: String) { cdkBuilder.secretArn(secretArn) @@ -6753,7 +6873,8 @@ public open class CfnDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance.MasterUserSecretProperty, - ) : CdkObject(cdkObject), MasterUserSecretProperty { + ) : CdkObject(cdkObject), + MasterUserSecretProperty { /** * The AWS KMS key identifier that is used to encrypt the secret. * @@ -6764,6 +6885,11 @@ public open class CfnDBInstance( /** * The Amazon Resource Name (ARN) of the secret. * + * This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic + * function. For more information, see [Return + * values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-masterusersecret.html#cfn-rds-dbinstance-masterusersecret-secretarn) */ override fun secretArn(): String? = unwrap(this).getSecretArn() @@ -6788,8 +6914,7 @@ public open class CfnDBInstance( } /** - * The `ProcessorFeature` property type specifies the processor features of a DB instance class - * status. + * The `ProcessorFeature` property type specifies the processor features of a DB instance class. * * Example: * @@ -6816,7 +6941,7 @@ public open class CfnDBInstance( public fun name(): String? = unwrap(this).getName() /** - * The value of a processor feature name. + * The value of a processor feature. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html#cfn-rds-dbinstance-processorfeature-value) */ @@ -6834,7 +6959,7 @@ public open class CfnDBInstance( public fun name(name: String) /** - * @param value The value of a processor feature name. + * @param value The value of a processor feature. */ public fun `value`(`value`: String) } @@ -6853,7 +6978,7 @@ public open class CfnDBInstance( } /** - * @param value The value of a processor feature name. + * @param value The value of a processor feature. */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) @@ -6865,7 +6990,8 @@ public open class CfnDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstance.ProcessorFeatureProperty, - ) : CdkObject(cdkObject), ProcessorFeatureProperty { + ) : CdkObject(cdkObject), + ProcessorFeatureProperty { /** * The name of the processor feature. * @@ -6876,7 +7002,7 @@ public open class CfnDBInstance( override fun name(): String? = unwrap(this).getName() /** - * The value of a processor feature name. + * The value of a processor feature. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html#cfn-rds-dbinstance-processorfeature-value) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstanceProps.kt index a1f61594df..c3d5bdbab6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBInstanceProps.kt @@ -73,6 +73,7 @@ import kotlin.jvm.JvmName * .port("port") * .build()) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineVersion("engineVersion") * .iops(123) * .kmsKeyId("kmsKeyId") @@ -247,11 +248,7 @@ public interface CfnDBInstanceProps { unwrap(this).getAutomaticBackupReplicationKmsKeyId() /** - * The destination region for the backup replication of the DB instance. - * - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in the - * *Amazon RDS User Guide* . + * The AWS Region associated with the automated backup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion) */ @@ -300,8 +297,6 @@ public interface CfnDBInstanceProps { * * Must be a value from 0 to 35 * * Can't be set to 0 if the DB instance is a source to read replicas * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-backupretentionperiod) */ public fun backupRetentionPeriod(): Number? = unwrap(this).getBackupRetentionPeriod() @@ -403,7 +398,9 @@ public interface CfnDBInstanceProps { public fun customIamInstanceProfile(): String? = unwrap(this).getCustomIamInstanceProfile() /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. + * + * This setting doesn't apply to RDS Custom DB instances. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbclusteridentifier) */ @@ -643,7 +640,6 @@ public interface CfnDBInstanceProps { * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -670,14 +666,12 @@ public interface CfnDBInstanceProps { * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon Virtual - * Private Cloud (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the - * *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User + * Guide* . * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by the + * DB cluster. If specified, the setting must match the DB cluster setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbsubnetgroupname) */ @@ -707,17 +701,15 @@ public interface CfnDBInstanceProps { public fun deleteAutomatedBackups(): Any? = unwrap(this).getDeleteAutomatedBackups() /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a DB + * cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) */ @@ -925,6 +917,34 @@ public interface CfnDBInstanceProps { */ public fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this DB instance. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In this + * case, creating the DB instance will fail if the DB major version is past its end of standard + * support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS + * Extended Support, you can run the selected major engine version on your DB instance past the end + * of standard support for that engine version. For more information, see [Using Amazon RDS Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the + * *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-enginelifecyclesupport) + */ + public fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The version number of the database engine to use. * @@ -1016,8 +1036,14 @@ public interface CfnDBInstanceProps { * uses the default KMS key. If you specify this property, you must set the StorageEncrypted property * to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB instance + * is encrypted, the specified `KmsKeyId` property is used. However, if the source DB instance is in + * a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this property. + * The value is inherited from the source DB instance automated backup, and if the automated backup + * is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a KMS * key for the destination AWS Region. KMS encryption keys are specific to the region that they're @@ -1218,16 +1244,16 @@ public interface CfnDBInstanceProps { * The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the * DB instance. * - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` * - * Default: - 0 + * Default: `0` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-monitoringinterval) */ @@ -1252,18 +1278,14 @@ public interface CfnDBInstanceProps { public fun monitoringRoleArn(): String? = unwrap(this).getMonitoringRoleArn() /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. - * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in the - * *Amazon RDS User Guide* . + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) */ @@ -1349,13 +1371,23 @@ public interface CfnDBInstanceProps { /** * The port number on which the database accepts connections. * - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: * - * Default value: `50000` + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` + * + * Constraints: + * + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-port) */ @@ -1432,8 +1464,6 @@ public interface CfnDBInstanceProps { * * Valid Values: `0 - 15` * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-promotiontier) */ public fun promotionTier(): Number? = unwrap(this).getPromotionTier() @@ -1474,6 +1504,11 @@ public interface CfnDBInstanceProps { /** * The date and time to restore from. * + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon + * RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -1530,7 +1565,11 @@ public interface CfnDBInstanceProps { * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point in + * time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -1579,9 +1618,12 @@ public interface CfnDBInstanceProps { * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the specified - * `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB instance + * is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this property. + * The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -1621,7 +1663,7 @@ public interface CfnDBInstanceProps { public fun storageType(): String? = unwrap(this).getStorageType() /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) */ @@ -1665,7 +1707,10 @@ public interface CfnDBInstanceProps { /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter applies + * to point-in-time recovery. For more information, see [Restoring a DB instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon + * RDS User Guide* . * * Constraints: * @@ -1867,11 +1912,7 @@ public interface CfnDBInstanceProps { public fun automaticBackupReplicationKmsKeyId(automaticBackupReplicationKmsKeyId: String) /** - * @param automaticBackupReplicationRegion The destination region for the backup replication of - * the DB instance. - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in - * the *Amazon RDS User Guide* . + * @param automaticBackupReplicationRegion The AWS Region associated with the automated backup. */ public fun automaticBackupReplicationRegion(automaticBackupReplicationRegion: String) @@ -2047,7 +2088,9 @@ public interface CfnDBInstanceProps { public fun customIamInstanceProfile(customIamInstanceProfile: String) /** - * @param dbClusterIdentifier The identifier of the DB cluster that the instance will belong to. + * @param dbClusterIdentifier The identifier of the DB cluster that this DB instance will belong + * to. + * This setting doesn't apply to RDS Custom DB instances. */ public fun dbClusterIdentifier(dbClusterIdentifier: String) @@ -2312,7 +2355,6 @@ public interface CfnDBInstanceProps { * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -2336,15 +2378,12 @@ public interface CfnDBInstanceProps { * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon - * Virtual Private Cloud - * (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS * User Guide* . * - * *Amazon Aurora* - * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by + * the DB cluster. If specified, the setting must match the DB cluster setting. */ public fun dbSubnetGroupName(dbSubnetGroupName: String) @@ -2387,32 +2426,26 @@ public interface CfnDBInstanceProps { public fun deleteAutomatedBackups(deleteAutomatedBackups: IResolvable) /** - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. */ public fun deletionProtection(deletionProtection: Boolean) /** - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. */ public fun deletionProtection(deletionProtection: IResolvable) @@ -2681,6 +2714,31 @@ public interface CfnDBInstanceProps { */ public fun engine(engine: String) + /** + * @param engineLifecycleSupport The life cycle type for this DB instance. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB instance will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your DB instance past the + * end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + * in the *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * @param engineVersion The version number of the database engine to use. * For a list of valid engine versions, use the `DescribeDBEngineVersions` action. @@ -2765,8 +2823,14 @@ public interface CfnDBInstanceProps { * CloudFormation uses the default KMS key. If you specify this property, you must set the * StorageEncrypted property to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. However, if the source DB + * instance is in a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup, and if the + * automated backup is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a * KMS key for the destination AWS Region. KMS encryption keys are specific to the region that @@ -2982,14 +3046,16 @@ public interface CfnDBInstanceProps { /** * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB instance. - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. + * + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Default: `0` */ public fun monitoringInterval(monitoringInterval: Number) @@ -3009,32 +3075,24 @@ public interface CfnDBInstanceProps { public fun monitoringRoleArn(monitoringRoleArn: String) /** - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. - * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom */ public fun multiAz(multiAz: Boolean) /** - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom */ public fun multiAz(multiAz: IResolvable) @@ -3105,13 +3163,23 @@ public interface CfnDBInstanceProps { /** * @param port The port number on which the database accepts connections. - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: + * + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` * - * Default value: `50000` + * Constraints: + * + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . */ public fun port(port: String) @@ -3234,6 +3302,11 @@ public interface CfnDBInstanceProps { /** * @param restoreTime The date and time to restore from. + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the + * *Amazon RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -3283,7 +3356,11 @@ public interface CfnDBInstanceProps { * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point + * in time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -3326,9 +3403,12 @@ public interface CfnDBInstanceProps { * default, it isn't encrypted. * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -3344,9 +3424,12 @@ public interface CfnDBInstanceProps { * default, it isn't encrypted. * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -3379,12 +3462,12 @@ public interface CfnDBInstanceProps { public fun storageType(storageType: String) /** - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ public fun tags(vararg tags: CfnTag) @@ -3428,7 +3511,10 @@ public interface CfnDBInstanceProps { /** * @param useLatestRestorableTime Specifies whether the DB instance is restored from the latest * backup time. - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -3439,7 +3525,10 @@ public interface CfnDBInstanceProps { /** * @param useLatestRestorableTime Specifies whether the DB instance is restored from the latest * backup time. - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -3691,11 +3780,7 @@ public interface CfnDBInstanceProps { } /** - * @param automaticBackupReplicationRegion The destination region for the backup replication of - * the DB instance. - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in - * the *Amazon RDS User Guide* . + * @param automaticBackupReplicationRegion The AWS Region associated with the automated backup. */ override fun automaticBackupReplicationRegion(automaticBackupReplicationRegion: String) { cdkBuilder.automaticBackupReplicationRegion(automaticBackupReplicationRegion) @@ -3896,7 +3981,9 @@ public interface CfnDBInstanceProps { } /** - * @param dbClusterIdentifier The identifier of the DB cluster that the instance will belong to. + * @param dbClusterIdentifier The identifier of the DB cluster that this DB instance will belong + * to. + * This setting doesn't apply to RDS Custom DB instances. */ override fun dbClusterIdentifier(dbClusterIdentifier: String) { cdkBuilder.dbClusterIdentifier(dbClusterIdentifier) @@ -4176,7 +4263,6 @@ public interface CfnDBInstanceProps { * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -4202,15 +4288,12 @@ public interface CfnDBInstanceProps { * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon - * Virtual Private Cloud - * (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS * User Guide* . * - * *Amazon Aurora* - * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by + * the DB cluster. If specified, the setting must match the DB cluster setting. */ override fun dbSubnetGroupName(dbSubnetGroupName: String) { cdkBuilder.dbSubnetGroupName(dbSubnetGroupName) @@ -4263,34 +4346,28 @@ public interface CfnDBInstanceProps { } /** - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. */ override fun deletionProtection(deletionProtection: Boolean) { cdkBuilder.deletionProtection(deletionProtection) } /** - * @param deletionProtection A value that indicates whether the DB instance has deletion - * protection enabled. + * @param deletionProtection Specifies whether the DB instance has deletion protection enabled. * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. */ override fun deletionProtection(deletionProtection: IResolvable) { cdkBuilder.deletionProtection(deletionProtection.let(IResolvable.Companion::unwrap)) @@ -4592,6 +4669,33 @@ public interface CfnDBInstanceProps { cdkBuilder.engine(engine) } + /** + * @param engineLifecycleSupport The life cycle type for this DB instance. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB instance will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your DB instance past the + * end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + * in the *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * @param engineVersion The version number of the database engine to use. * For a list of valid engine versions, use the `DescribeDBEngineVersions` action. @@ -4680,8 +4784,14 @@ public interface CfnDBInstanceProps { * CloudFormation uses the default KMS key. If you specify this property, you must set the * StorageEncrypted property to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. However, if the source DB + * instance is in a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup, and if the + * automated backup is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a * KMS key for the destination AWS Region. KMS encryption keys are specific to the region that @@ -4916,14 +5026,16 @@ public interface CfnDBInstanceProps { /** * @param monitoringInterval The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB instance. - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + * + * Default: `0` */ override fun monitoringInterval(monitoringInterval: Number) { cdkBuilder.monitoringInterval(monitoringInterval) @@ -4947,34 +5059,26 @@ public interface CfnDBInstanceProps { } /** - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. - * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom */ override fun multiAz(multiAz: Boolean) { cdkBuilder.multiAz(multiAz) } /** - * @param multiAz Specifies whether the database instance is a Multi-AZ DB instance deployment. - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * @param multiAz Specifies whether the DB instance is a Multi-AZ deployment. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom */ override fun multiAz(multiAz: IResolvable) { cdkBuilder.multiAz(multiAz.let(IResolvable.Companion::unwrap)) @@ -5057,13 +5161,23 @@ public interface CfnDBInstanceProps { /** * @param port The port number on which the database accepts connections. - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: + * + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` + * + * Constraints: * - * Default value: `50000` + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . */ override fun port(port: String) { cdkBuilder.port(port) @@ -5205,6 +5319,11 @@ public interface CfnDBInstanceProps { /** * @param restoreTime The date and time to restore from. + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the + * *Amazon RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -5260,7 +5379,11 @@ public interface CfnDBInstanceProps { * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point + * in time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -5309,9 +5432,12 @@ public interface CfnDBInstanceProps { * default, it isn't encrypted. * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -5329,9 +5455,12 @@ public interface CfnDBInstanceProps { * default, it isn't encrypted. * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -5370,14 +5499,14 @@ public interface CfnDBInstanceProps { } /** - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB instance. + * @param tags Tags to assign to the DB instance. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -5431,7 +5560,10 @@ public interface CfnDBInstanceProps { /** * @param useLatestRestorableTime Specifies whether the DB instance is restored from the latest * backup time. - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -5444,7 +5576,10 @@ public interface CfnDBInstanceProps { /** * @param useLatestRestorableTime Specifies whether the DB instance is restored from the latest * backup time. - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * @@ -5538,7 +5673,8 @@ public interface CfnDBInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBInstanceProps, - ) : CdkObject(cdkObject), CfnDBInstanceProps { + ) : CdkObject(cdkObject), + CfnDBInstanceProps { /** * The amount of storage in gibibytes (GiB) to be initially allocated for the database instance. * @@ -5660,11 +5796,7 @@ public interface CfnDBInstanceProps { unwrap(this).getAutomaticBackupReplicationKmsKeyId() /** - * The destination region for the backup replication of the DB instance. - * - * For more info, see [Replicating automated backups to another AWS - * Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in - * the *Amazon RDS User Guide* . + * The AWS Region associated with the automated backup. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion) */ @@ -5713,8 +5845,6 @@ public interface CfnDBInstanceProps { * * Must be a value from 0 to 35 * * Can't be set to 0 if the DB instance is a source to read replicas * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-backupretentionperiod) */ override fun backupRetentionPeriod(): Number? = unwrap(this).getBackupRetentionPeriod() @@ -5816,7 +5946,9 @@ public interface CfnDBInstanceProps { override fun customIamInstanceProfile(): String? = unwrap(this).getCustomIamInstanceProfile() /** - * The identifier of the DB cluster that the instance will belong to. + * The identifier of the DB cluster that this DB instance will belong to. + * + * This setting doesn't apply to RDS Custom DB instances. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbclusteridentifier) */ @@ -6061,7 +6193,6 @@ public interface CfnDBInstanceProps { * * `DBClusterIdentifier` * * `DBName` * * `DeleteAutomatedBackups` - * * `EnablePerformanceInsights` * * `KmsKeyId` * * `MasterUsername` * * `MasterUserPassword` @@ -6088,15 +6219,12 @@ public interface CfnDBInstanceProps { * * If there's no DB subnet group, then the DB instance isn't a VPC DB instance. * - * For more information about using Amazon RDS in a VPC, see [Using Amazon RDS with Amazon - * Virtual Private Cloud - * (VPC)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS + * For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon + * RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS * User Guide* . * - * *Amazon Aurora* - * - * Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting - * must match the DB cluster setting. + * This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by + * the DB cluster. If specified, the setting must match the DB cluster setting. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-dbsubnetgroupname) */ @@ -6126,17 +6254,15 @@ public interface CfnDBInstanceProps { override fun deleteAutomatedBackups(): Any? = unwrap(this).getDeleteAutomatedBackups() /** - * A value that indicates whether the DB instance has deletion protection enabled. + * Specifies whether the DB instance has deletion protection enabled. * * The database can't be deleted when deletion protection is enabled. By default, deletion - * protection is disabled. For more information, see [Deleting a DB + * protection isn't enabled. For more information, see [Deleting a DB * Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html) . * - * *Amazon Aurora* - * - * Not applicable. You can enable or disable deletion protection for the DB cluster. For more - * information, see `CreateDBCluster` . DB instances in a DB cluster can be deleted even when - * deletion protection is enabled for the DB cluster. + * This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion + * protection for the DB cluster. For more information, see `CreateDBCluster` . DB instances in a + * DB cluster can be deleted even when deletion protection is enabled for the DB cluster. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deletionprotection) */ @@ -6345,6 +6471,34 @@ public interface CfnDBInstanceProps { */ override fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this DB instance. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your DB + * instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In + * this case, creating the DB instance will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB + * instances, the life cycle type is managed by the DB cluster. + * + * You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your DB instance past the + * end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended Support](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + * in the *Amazon RDS User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-enginelifecyclesupport) + */ + override fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The version number of the database engine to use. * @@ -6436,8 +6590,14 @@ public interface CfnDBInstanceProps { * CloudFormation uses the default KMS key. If you specify this property, you must set the * StorageEncrypted property to true. * - * If you specify the `SourceDBInstanceIdentifier` property, the value is inherited from the - * source DB instance if the read replica is created in the same region. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. However, if the source DB + * instance is in a different AWS Region, you must specify a KMS key ID. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup, and if the + * automated backup is encrypted, the specified `KmsKeyId` property is used. * * If you create an encrypted read replica in a different AWS Region, then you must specify a * KMS key for the destination AWS Region. KMS encryption keys are specific to the region that @@ -6638,16 +6798,16 @@ public interface CfnDBInstanceProps { * The interval, in seconds, between points when Enhanced Monitoring metrics are collected for * the DB instance. * - * To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0. + * To disable collection of Enhanced Monitoring metrics, specify `0` . * * If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other - * than 0. + * than `0` . * - * This setting doesn't apply to RDS Custom. + * This setting doesn't apply to RDS Custom DB instances. * - * Valid Values: `0, 1, 5, 10, 15, 30, 60` + * Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` * - * Default: - 0 + * Default: `0` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-monitoringinterval) */ @@ -6672,18 +6832,14 @@ public interface CfnDBInstanceProps { override fun monitoringRoleArn(): String? = unwrap(this).getMonitoringRoleArn() /** - * Specifies whether the database instance is a Multi-AZ DB instance deployment. + * Specifies whether the DB instance is a Multi-AZ deployment. * - * You can't set the `AvailabilityZone` parameter if the `MultiAZ` parameter is set to true. + * You can't set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. * - * For more information, see [Multi-AZ deployments for high - * availability](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html) in - * the *Amazon RDS User Guide* . - * - * *Amazon Aurora* + * This setting doesn't apply to the following DB instances: * - * Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and - * doesn't require the `MultiAZ` option to be set. + * * Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.) + * * RDS Custom * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-multiaz) */ @@ -6771,13 +6927,23 @@ public interface CfnDBInstanceProps { /** * The port number on which the database accepts connections. * - * *Amazon Aurora* + * This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster. * - * Not applicable. The port number is managed by the DB cluster. + * Valid Values: `1150-65535` * - * *Db2* + * Default: + * + * * RDS for Db2 - `50000` + * * RDS for MariaDB - `3306` + * * RDS for Microsoft SQL Server - `1433` + * * RDS for MySQL - `3306` + * * RDS for Oracle - `1521` + * * RDS for PostgreSQL - `5432` * - * Default value: `50000` + * Constraints: + * + * * For RDS for Microsoft SQL Server, the value can't be `1234` , `1434` , `3260` , `3343` , + * `3389` , `47001` , or `49152-49156` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-port) */ @@ -6855,8 +7021,6 @@ public interface CfnDBInstanceProps { * * Valid Values: `0 - 15` * - * Default: - 1 - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-promotiontier) */ override fun promotionTier(): Number? = unwrap(this).getPromotionTier() @@ -6897,6 +7061,11 @@ public interface CfnDBInstanceProps { /** * The date and time to restore from. * + * This parameter applies to point-in-time recovery. For more information, see [Restoring a DB + * instance to a specified + * time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the + * *Amazon RDS User Guide* . + * * Constraints: * * * Must be a time in Universal Coordinated Time (UTC) format. @@ -6953,7 +7122,11 @@ public interface CfnDBInstanceProps { * * The `SourceDBInstanceIdentifier` property determines whether a DB instance is a read replica. * If you remove the `SourceDBInstanceIdentifier` property from your template and then update your - * stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. + * stack, AWS CloudFormation promotes the read replica to a standalone DB instance. + * + * If you specify the `UseLatestRestorableTime` or `RestoreTime` properties in conjunction with + * the `SourceDBInstanceIdentifier` property, RDS restores the DB instance to the requested point + * in time, thereby creating a new DB instance. * * * * If you specify a source DB instance that uses VPC security groups, we recommend that you @@ -7003,9 +7176,12 @@ public interface CfnDBInstanceProps { * * If you specify the `KmsKeyId` property, then you must enable encryption. * - * If you specify the `SourceDBInstanceIdentifier` property, don't specify this property. The - * value is inherited from the source DB instance, and if the DB instance is encrypted, the - * specified `KmsKeyId` property is used. + * If you specify the `SourceDBInstanceIdentifier` or `SourceDbiResourceId` property, don't + * specify this property. The value is inherited from the source DB instance, and if the DB + * instance is encrypted, the specified `KmsKeyId` property is used. + * + * If you specify the `SourceDBInstanceAutomatedBackupsArn` property, don't specify this + * property. The value is inherited from the source DB instance automated backup. * * If you specify `DBSnapshotIdentifier` property, don't specify this property. The value is * inherited from the snapshot. @@ -7046,7 +7222,7 @@ public interface CfnDBInstanceProps { override fun storageType(): String? = unwrap(this).getStorageType() /** - * An optional array of key-value pairs to apply to this DB instance. + * Tags to assign to the DB instance. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-tags) */ @@ -7091,7 +7267,10 @@ public interface CfnDBInstanceProps { /** * Specifies whether the DB instance is restored from the latest backup time. * - * By default, the DB instance isn't restored from the latest backup time. + * By default, the DB instance isn't restored from the latest backup time. This parameter + * applies to point-in-time recovery. For more information, see [Restoring a DB instance to a + * specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in + * the *Amazon RDS User Guide* . * * Constraints: * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroup.kt index 8f08b4df73..67ff107d67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroup.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBParameterGroup( cdkObject: software.amazon.awscdk.services.rds.CfnDBParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -150,20 +152,20 @@ public open class CfnDBParameterGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB parameter group. + * Tags to assign to the DB parameter group. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB parameter group. + * Tags to assign to the DB parameter group. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB parameter group. + * Tags to assign to the DB parameter group. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -205,22 +207,41 @@ public open class CfnDBParameterGroup( * The DB parameter group family name. * * A DB parameter group can be associated with one and only one DB parameter group family, and - * can be applied only to a DB instance running a DB engine and engine version compatible with that - * DB parameter group family. + * can be applied only to a DB instance running a database engine and engine version compatible + * with that DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, + * use the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-family) * @param family The DB parameter group family name. @@ -230,19 +251,12 @@ public open class CfnDBParameterGroup( /** * An array of parameter names and values for the parameter update. * - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. + * You must specify at least one parameter name and value. * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, - * see [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . - * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -256,26 +270,18 @@ public open class CfnDBParameterGroup( public fun parameters(parameters: Any) /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB parameter group. + * @param tags Tags to assign to the DB parameter group. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB parameter group. + * @param tags Tags to assign to the DB parameter group. */ public fun tags(vararg tags: CfnTag) } @@ -324,22 +330,41 @@ public open class CfnDBParameterGroup( * The DB parameter group family name. * * A DB parameter group can be associated with one and only one DB parameter group family, and - * can be applied only to a DB instance running a DB engine and engine version compatible with that - * DB parameter group family. + * can be applied only to a DB instance running a database engine and engine version compatible + * with that DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, + * use the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-family) * @param family The DB parameter group family name. @@ -351,19 +376,12 @@ public open class CfnDBParameterGroup( /** * An array of parameter names and values for the parameter update. * - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. + * You must specify at least one parameter name and value. * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, - * see [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . - * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -379,28 +397,20 @@ public open class CfnDBParameterGroup( } /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB parameter group. + * @param tags Tags to assign to the DB parameter group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB parameter group. + * @param tags Tags to assign to the DB parameter group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroupProps.kt index f9c4769963..5921d2f28a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBParameterGroupProps.kt @@ -68,22 +68,41 @@ public interface CfnDBParameterGroupProps { * The DB parameter group family name. * * A DB parameter group can be associated with one and only one DB parameter group family, and can - * be applied only to a DB instance running a DB engine and engine version compatible with that DB - * parameter group family. + * be applied only to a DB instance running a database engine and engine version compatible with that + * DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, use + * the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-family) */ @@ -92,19 +111,12 @@ public interface CfnDBParameterGroupProps { /** * An array of parameter names and values for the parameter update. * - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. + * You must specify at least one parameter name and value. * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, see - * [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . - * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -117,11 +129,7 @@ public interface CfnDBParameterGroupProps { public fun parameters(): Any? = unwrap(this).getParameters() /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) */ @@ -156,40 +164,52 @@ public interface CfnDBParameterGroupProps { /** * @param family The DB parameter group family name. * A DB parameter group can be associated with one and only one DB parameter group family, and - * can be applied only to a DB instance running a DB engine and engine version compatible with that - * DB parameter group family. + * can be applied only to a DB instance running a database engine and engine version compatible + * with that DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, + * use the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` */ public fun family(family: String) /** * @param parameters An array of parameter names and values for the parameter update. - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. + * You must specify at least one parameter name and value. * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, - * see [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . - * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -199,16 +219,12 @@ public interface CfnDBParameterGroupProps { public fun parameters(parameters: Any) /** - * @param tags An optional array of key-value pairs to apply to this DB parameter group. - * - * Currently, this is the only property that supports drift detection. + * @param tags Tags to assign to the DB parameter group. */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB parameter group. - * - * Currently, this is the only property that supports drift detection. + * @param tags Tags to assign to the DB parameter group. */ public fun tags(vararg tags: CfnTag) } @@ -245,22 +261,41 @@ public interface CfnDBParameterGroupProps { /** * @param family The DB parameter group family name. * A DB parameter group can be associated with one and only one DB parameter group family, and - * can be applied only to a DB instance running a DB engine and engine version compatible with that - * DB parameter group family. + * can be applied only to a DB instance running a database engine and engine version compatible + * with that DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, + * use the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` */ override fun family(family: String) { cdkBuilder.family(family) @@ -268,19 +303,12 @@ public interface CfnDBParameterGroupProps { /** * @param parameters An array of parameter names and values for the parameter update. - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. - * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, - * see [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . + * You must specify at least one parameter name and value. * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -292,18 +320,14 @@ public interface CfnDBParameterGroupProps { } /** - * @param tags An optional array of key-value pairs to apply to this DB parameter group. - * - * Currently, this is the only property that supports drift detection. + * @param tags Tags to assign to the DB parameter group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB parameter group. - * - * Currently, this is the only property that supports drift detection. + * @param tags Tags to assign to the DB parameter group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -313,7 +337,8 @@ public interface CfnDBParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBParameterGroupProps, - ) : CdkObject(cdkObject), CfnDBParameterGroupProps { + ) : CdkObject(cdkObject), + CfnDBParameterGroupProps { /** * The name of the DB parameter group. * @@ -345,22 +370,41 @@ public interface CfnDBParameterGroupProps { * The DB parameter group family name. * * A DB parameter group can be associated with one and only one DB parameter group family, and - * can be applied only to a DB instance running a DB engine and engine version compatible with that - * DB parameter group family. + * can be applied only to a DB instance running a database engine and engine version compatible + * with that DB parameter group family. * + * To list all of the available parameter group families for a DB engine, use the following + * command: * - * The DB parameter group family can't be changed when updating a DB parameter group. + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine <engine>` * + * For example, to list all of the available parameter group families for the MySQL DB engine, + * use the following command: * - * To list all of the available parameter group families, use the following command: + * `aws rds describe-db-engine-versions --query + * "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` * - * `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"` * * The output contains duplicates. * - * For more information, see - * `[CreateDBParameterGroup](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_CreateDBParameterGroup.html)` - * . + * + * The following are the valid DB engine values: + * + * * `aurora-mysql` + * * `aurora-postgresql` + * * `db2-ae` + * * `db2-se` + * * `mysql` + * * `oracle-ee` + * * `oracle-ee-cdb` + * * `oracle-se2` + * * `oracle-se2-cdb` + * * `postgres` + * * `sqlserver-ee` + * * `sqlserver-se` + * * `sqlserver-ex` + * * `sqlserver-web` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-family) */ @@ -369,19 +413,12 @@ public interface CfnDBParameterGroupProps { /** * An array of parameter names and values for the parameter update. * - * At least one parameter name and value must be supplied. Subsequent arguments are optional. - * - * RDS for Db2 requires you to bring your own Db2 license. You must enter your IBM customer ID ( - * `rds.ibm_customer_id` ) and site number ( `rds.ibm_site_id` ) before starting a Db2 instance. - * - * For more information about DB parameters and DB parameter groups for Amazon RDS DB engines, - * see [Working with DB Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) - * in the *Amazon RDS User Guide* . + * You must specify at least one parameter name and value. * - * For more information about DB cluster and DB instance parameters and parameter groups for - * Amazon Aurora DB engines, see [Working with DB Parameter Groups and DB Cluster Parameter - * Groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) + * For more information about parameter groups, see [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + * in the *Amazon RDS User Guide* , or [Working with parameter + * groups](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_WorkingWithParamGroups.html) * in the *Amazon Aurora User Guide* . * * @@ -394,11 +431,7 @@ public interface CfnDBParameterGroupProps { override fun parameters(): Any? = unwrap(this).getParameters() /** - * An optional array of key-value pairs to apply to this DB parameter group. - * - * - * Currently, this is the only property that supports drift detection. - * + * Tags to assign to the DB parameter group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxy.kt index 88a71961bb..8624cd4ea3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxy.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBProxy( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxy, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -97,12 +99,14 @@ public open class CfnDBProxy( ) /** - * The Amazon Resource Name (ARN) representing the target group. + * The Amazon Resource Name (ARN) for the proxy. */ public open fun attrDbProxyArn(): String = unwrap(this).getAttrDbProxyArn() /** - * The writer endpoint for the RDS DB instance or Aurora DB cluster. + * The endpoint that you can use to connect to the DB proxy. + * + * You include the endpoint value in the connection string for a database client application. */ public open fun attrEndpoint(): String = unwrap(this).getAttrEndpoint() @@ -376,8 +380,6 @@ public open class CfnDBProxy( * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html#cfn-rds-dbproxy-enginefamily) * @param engineFamily The kinds of databases that the proxy can connect to. */ @@ -580,8 +582,6 @@ public open class CfnDBProxy( * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html#cfn-rds-dbproxy-enginefamily) * @param engineFamily The kinds of databases that the proxy can connect to. */ @@ -758,8 +758,6 @@ public open class CfnDBProxy( * The type of authentication that the proxy uses for connections from the proxy to the * underlying database. * - * Valid Values: `SECRETS` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-authformat.html#cfn-rds-dbproxy-authformat-authscheme) */ public fun authScheme(): String? = unwrap(this).getAuthScheme() @@ -781,13 +779,11 @@ public open class CfnDBProxy( public fun description(): String? = unwrap(this).getDescription() /** - * Whether to require or disallow AWS Identity and Access Management (IAM) authentication for - * connections to the proxy. + * A value that indicates whether to require or disallow AWS Identity and Access Management + * (IAM) authentication for connections to the proxy. * * The `ENABLED` value is valid only for proxies with RDS for Microsoft SQL Server. * - * Valid Values: `ENABLED | DISABLED | REQUIRED` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-authformat.html#cfn-rds-dbproxy-authformat-iamauth) */ public fun iamAuth(): String? = unwrap(this).getIamAuth() @@ -810,7 +806,6 @@ public open class CfnDBProxy( /** * @param authScheme The type of authentication that the proxy uses for connections from the * proxy to the underlying database. - * Valid Values: `SECRETS` */ public fun authScheme(authScheme: String) @@ -827,11 +822,9 @@ public open class CfnDBProxy( public fun description(description: String) /** - * @param iamAuth Whether to require or disallow AWS Identity and Access Management (IAM) - * authentication for connections to the proxy. + * @param iamAuth A value that indicates whether to require or disallow AWS Identity and + * Access Management (IAM) authentication for connections to the proxy. * The `ENABLED` value is valid only for proxies with RDS for Microsoft SQL Server. - * - * Valid Values: `ENABLED | DISABLED | REQUIRED` */ public fun iamAuth(iamAuth: String) @@ -851,7 +844,6 @@ public open class CfnDBProxy( /** * @param authScheme The type of authentication that the proxy uses for connections from the * proxy to the underlying database. - * Valid Values: `SECRETS` */ override fun authScheme(authScheme: String) { cdkBuilder.authScheme(authScheme) @@ -874,11 +866,9 @@ public open class CfnDBProxy( } /** - * @param iamAuth Whether to require or disallow AWS Identity and Access Management (IAM) - * authentication for connections to the proxy. + * @param iamAuth A value that indicates whether to require or disallow AWS Identity and + * Access Management (IAM) authentication for connections to the proxy. * The `ENABLED` value is valid only for proxies with RDS for Microsoft SQL Server. - * - * Valid Values: `ENABLED | DISABLED | REQUIRED` */ override fun iamAuth(iamAuth: String) { cdkBuilder.iamAuth(iamAuth) @@ -899,13 +889,12 @@ public open class CfnDBProxy( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxy.AuthFormatProperty, - ) : CdkObject(cdkObject), AuthFormatProperty { + ) : CdkObject(cdkObject), + AuthFormatProperty { /** * The type of authentication that the proxy uses for connections from the proxy to the * underlying database. * - * Valid Values: `SECRETS` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-authformat.html#cfn-rds-dbproxy-authformat-authscheme) */ override fun authScheme(): String? = unwrap(this).getAuthScheme() @@ -927,13 +916,11 @@ public open class CfnDBProxy( override fun description(): String? = unwrap(this).getDescription() /** - * Whether to require or disallow AWS Identity and Access Management (IAM) authentication for - * connections to the proxy. + * A value that indicates whether to require or disallow AWS Identity and Access Management + * (IAM) authentication for connections to the proxy. * * The `ENABLED` value is valid only for proxies with RDS for Microsoft SQL Server. * - * Valid Values: `ENABLED | DISABLED | REQUIRED` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-authformat.html#cfn-rds-dbproxy-authformat-iamauth) */ override fun iamAuth(): String? = unwrap(this).getIamAuth() @@ -967,7 +954,13 @@ public open class CfnDBProxy( } /** - * Metadata assigned to a DB proxy consisting of a key-value pair. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the + * *Amazon Aurora User Guide* . * * Example: * @@ -987,9 +980,10 @@ public open class CfnDBProxy( /** * A key is the required name of the tag. * - * The string value can be 1-128 Unicode characters in length and can't be prefixed with `aws:` - * . The string can contain only the set of Unicode letters, digits, white-space, '*', '.', '/', - * '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with + * `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-tagformat.html#cfn-rds-dbproxy-tagformat-key) */ @@ -998,9 +992,10 @@ public open class CfnDBProxy( /** * A value is the optional value of the tag. * - * The string value can be 1-256 Unicode characters in length and can't be prefixed with `aws:` - * . The string can contain only the set of Unicode letters, digits, white-space, '*', '.', '/', - * '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with + * `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-tagformat.html#cfn-rds-dbproxy-tagformat-value) */ @@ -1013,17 +1008,19 @@ public open class CfnDBProxy( public interface Builder { /** * @param key A key is the required name of the tag. - * The string value can be 1-128 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ public fun key(key: String) /** * @param value A value is the optional value of the tag. - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ public fun `value`(`value`: String) } @@ -1035,9 +1032,10 @@ public open class CfnDBProxy( /** * @param key A key is the required name of the tag. - * The string value can be 1-128 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ override fun key(key: String) { cdkBuilder.key(key) @@ -1045,9 +1043,10 @@ public open class CfnDBProxy( /** * @param value A value is the optional value of the tag. - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) @@ -1059,13 +1058,15 @@ public open class CfnDBProxy( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxy.TagFormatProperty, - ) : CdkObject(cdkObject), TagFormatProperty { + ) : CdkObject(cdkObject), + TagFormatProperty { /** * A key is the required name of the tag. * - * The string value can be 1-128 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-tagformat.html#cfn-rds-dbproxy-tagformat-key) */ @@ -1074,9 +1075,10 @@ public open class CfnDBProxy( /** * A value is the optional value of the tag. * - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxy-tagformat.html#cfn-rds-dbproxy-tagformat-value) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpoint.kt index 2bd455fc82..4c11c86478 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpoint.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBProxyEndpoint( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -70,18 +72,19 @@ public open class CfnDBProxyEndpoint( ) /** - * The Amazon Resource Name (ARN) representing the DB proxy endpoint. + * The Amazon Resource Name (ARN) for the DB proxy endpoint. */ public open fun attrDbProxyEndpointArn(): String = unwrap(this).getAttrDbProxyEndpointArn() /** - * The custom endpoint for the RDS DB instance or Aurora DB cluster. + * The endpoint that you can use to connect to the DB proxy. + * + * You include the endpoint value in the connection string for a database client application. */ public open fun attrEndpoint(): String = unwrap(this).getAttrEndpoint() /** - * A value that indicates whether this endpoint is the default endpoint for the associated DB - * proxy. + * Indicates whether this endpoint is the default endpoint for the associated DB proxy. * * Default DB proxy endpoints always have read/write capability. Other endpoints that you * associate with the DB proxy can be either read/write or read-only. @@ -90,7 +93,7 @@ public open class CfnDBProxyEndpoint( unwrap(this).getAttrIsDefault().let(IResolvable::wrap) /** - * The VPC ID of the DB proxy endpoint. + * Provides the VPC ID of the DB proxy endpoint. */ public open fun attrVpcId(): String = unwrap(this).getAttrVpcId() @@ -247,8 +250,6 @@ public open class CfnDBProxyEndpoint( * A value that indicates whether the DB proxy endpoint can be used for read/write or read-only * operations. * - * Valid Values: `READ_WRITE | READ_ONLY` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxyendpoint.html#cfn-rds-dbproxyendpoint-targetrole) * @param targetRole A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. @@ -354,8 +355,6 @@ public open class CfnDBProxyEndpoint( * A value that indicates whether the DB proxy endpoint can be used for read/write or read-only * operations. * - * Valid Values: `READ_WRITE | READ_ONLY` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxyendpoint.html#cfn-rds-dbproxyendpoint-targetrole) * @param targetRole A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. @@ -439,7 +438,13 @@ public open class CfnDBProxyEndpoint( } /** - * Metadata assigned to a DB proxy endpoint consisting of a key-value pair. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the + * *Amazon Aurora User Guide* . * * Example: * @@ -457,18 +462,24 @@ public open class CfnDBProxyEndpoint( */ public interface TagFormatProperty { /** - * A value is the optional value of the tag. + * A key is the required name of the tag. * - * The string value can be 1-256 Unicode characters in length and can't be prefixed with `aws:` - * . The string can contain only the set of Unicode letters, digits, white-space, '*', '.', '/', - * '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with + * `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxyendpoint-tagformat.html#cfn-rds-dbproxyendpoint-tagformat-key) */ public fun key(): String? = unwrap(this).getKey() /** - * Metadata assigned to a DB instance consisting of a key-value pair. + * A value is the optional value of the tag. + * + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with + * `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxyendpoint-tagformat.html#cfn-rds-dbproxyendpoint-tagformat-value) */ @@ -480,15 +491,20 @@ public open class CfnDBProxyEndpoint( @CdkDslMarker public interface Builder { /** - * @param key A value is the optional value of the tag. - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * @param key A key is the required name of the tag. + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ public fun key(key: String) /** - * @param value Metadata assigned to a DB instance consisting of a key-value pair. + * @param value A value is the optional value of the tag. + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ public fun `value`(`value`: String) } @@ -499,17 +515,22 @@ public open class CfnDBProxyEndpoint( software.amazon.awscdk.services.rds.CfnDBProxyEndpoint.TagFormatProperty.builder() /** - * @param key A value is the optional value of the tag. - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * @param key A key is the required name of the tag. + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ override fun key(key: String) { cdkBuilder.key(key) } /** - * @param value Metadata assigned to a DB instance consisting of a key-value pair. + * @param value A value is the optional value of the tag. + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). */ override fun `value`(`value`: String) { cdkBuilder.`value`(`value`) @@ -521,20 +542,27 @@ public open class CfnDBProxyEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyEndpoint.TagFormatProperty, - ) : CdkObject(cdkObject), TagFormatProperty { + ) : CdkObject(cdkObject), + TagFormatProperty { /** - * A value is the optional value of the tag. + * A key is the required name of the tag. * - * The string value can be 1-256 Unicode characters in length and can't be prefixed with - * `aws:` . The string can contain only the set of Unicode letters, digits, white-space, '*', - * '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}*.:/=+-]*)$"). + * The string value can be from 1 to 128 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxyendpoint-tagformat.html#cfn-rds-dbproxyendpoint-tagformat-key) */ override fun key(): String? = unwrap(this).getKey() /** - * Metadata assigned to a DB instance consisting of a key-value pair. + * A value is the optional value of the tag. + * + * The string value can be from 1 to 256 Unicode characters in length and can't be prefixed + * with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, + * white-space, '*', '.', ':', '/', '=', '+', '-', '@' (Java regex: + * "^([\p{L}\p{Z}\p{N}*.:/=+-@]*)$"). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxyendpoint-tagformat.html#cfn-rds-dbproxyendpoint-tagformat-value) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpointProps.kt index c105841f85..fd363c0660 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyEndpointProps.kt @@ -61,8 +61,6 @@ public interface CfnDBProxyEndpointProps { * A value that indicates whether the DB proxy endpoint can be used for read/write or read-only * operations. * - * Valid Values: `READ_WRITE | READ_ONLY` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxyendpoint.html#cfn-rds-dbproxyendpoint-targetrole) */ public fun targetRole(): String? = unwrap(this).getTargetRole() @@ -118,7 +116,6 @@ public interface CfnDBProxyEndpointProps { /** * @param targetRole A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. - * Valid Values: `READ_WRITE | READ_ONLY` */ public fun targetRole(targetRole: String) @@ -187,7 +184,6 @@ public interface CfnDBProxyEndpointProps { /** * @param targetRole A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. - * Valid Values: `READ_WRITE | READ_ONLY` */ override fun targetRole(targetRole: String) { cdkBuilder.targetRole(targetRole) @@ -233,7 +229,8 @@ public interface CfnDBProxyEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyEndpointProps, - ) : CdkObject(cdkObject), CfnDBProxyEndpointProps { + ) : CdkObject(cdkObject), + CfnDBProxyEndpointProps { /** * The name of the DB proxy endpoint to create. * @@ -261,8 +258,6 @@ public interface CfnDBProxyEndpointProps { * A value that indicates whether the DB proxy endpoint can be used for read/write or read-only * operations. * - * Valid Values: `READ_WRITE | READ_ONLY` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxyendpoint.html#cfn-rds-dbproxyendpoint-targetrole) */ override fun targetRole(): String? = unwrap(this).getTargetRole() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyProps.kt index 15589e54bc..a833875385 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyProps.kt @@ -88,8 +88,6 @@ public interface CfnDBProxyProps { * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html#cfn-rds-dbproxy-enginefamily) */ public fun engineFamily(): String @@ -204,8 +202,6 @@ public interface CfnDBProxyProps { * network traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . - * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` */ public fun engineFamily(engineFamily: String) @@ -339,8 +335,6 @@ public interface CfnDBProxyProps { * network traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . - * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` */ override fun engineFamily(engineFamily: String) { cdkBuilder.engineFamily(engineFamily) @@ -431,7 +425,8 @@ public interface CfnDBProxyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyProps, - ) : CdkObject(cdkObject), CfnDBProxyProps { + ) : CdkObject(cdkObject), + CfnDBProxyProps { /** * The authorization mechanism that the proxy uses. * @@ -471,8 +466,6 @@ public interface CfnDBProxyProps { * databases, specify `MYSQL` . For Aurora PostgreSQL and RDS for PostgreSQL databases, specify * `POSTGRESQL` . For RDS for Microsoft SQL Server, specify `SQLSERVER` . * - * *Valid Values* : `MYSQL` | `POSTGRESQL` | `SQLSERVER` - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxy.html#cfn-rds-dbproxy-enginefamily) */ override fun engineFamily(): String = unwrap(this).getEngineFamily() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroup.kt index 60d4b7e437..d279101921 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroup.kt @@ -79,7 +79,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBProxyTargetGroup( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyTargetGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -102,23 +103,23 @@ public open class CfnDBProxyTargetGroup( public open fun attrTargetGroupArn(): String = unwrap(this).getAttrTargetGroupArn() /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated with + * a `DBProxyTarget` . */ public open fun connectionPoolConfigurationInfo(): Any? = unwrap(this).getConnectionPoolConfigurationInfo() /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated with + * a `DBProxyTarget` . */ public open fun connectionPoolConfigurationInfo(`value`: IResolvable) { unwrap(this).setConnectionPoolConfigurationInfo(`value`.let(IResolvable.Companion::unwrap)) } /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated with + * a `DBProxyTarget` . */ public open fun connectionPoolConfigurationInfo(`value`: ConnectionPoolConfigurationInfoFormatProperty) { @@ -126,8 +127,8 @@ public open class CfnDBProxyTargetGroup( } /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated with + * a `DBProxyTarget` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4063fded1e953b2425194863b7aa1da8f32b08cbb6781e2f8a45201e7e82b26d") @@ -212,33 +213,33 @@ public open class CfnDBProxyTargetGroup( @CdkDslMarker public interface Builder { /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ public fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: IResolvable) /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ public fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: ConnectionPoolConfigurationInfoFormatProperty) /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0b82b793ddcdd39d423ca86d9874701672489a79685d22d7c87246e2dcc494f2") @@ -307,24 +308,24 @@ public open class CfnDBProxyTargetGroup( software.amazon.awscdk.services.rds.CfnDBProxyTargetGroup.Builder.create(scope, id) /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ override fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: IResolvable) { cdkBuilder.connectionPoolConfigurationInfo(connectionPoolConfigurationInfo.let(IResolvable.Companion::unwrap)) } /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ override fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: ConnectionPoolConfigurationInfoFormatProperty) { @@ -332,12 +333,12 @@ public open class CfnDBProxyTargetGroup( } /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0b82b793ddcdd39d423ca86d9874701672489a79685d22d7c87246e2dcc494f2") @@ -462,7 +463,7 @@ public open class CfnDBProxyTargetGroup( * connection pool. * * This setting only applies when the proxy has opened its maximum number of connections and all - * connections are busy with client sessions. For an unlimited wait time, specify `0` . + * connections are busy with client sessions. * * Default: `120` * @@ -553,7 +554,7 @@ public open class CfnDBProxyTargetGroup( * @param connectionBorrowTimeout The number of seconds for a proxy to wait for a connection * to become available in the connection pool. * This setting only applies when the proxy has opened its maximum number of connections and - * all connections are busy with client sessions. For an unlimited wait time, specify `0` . + * all connections are busy with client sessions. * * Default: `120` * @@ -647,7 +648,7 @@ public open class CfnDBProxyTargetGroup( * @param connectionBorrowTimeout The number of seconds for a proxy to wait for a connection * to become available in the connection pool. * This setting only applies when the proxy has opened its maximum number of connections and - * all connections are busy with client sessions. For an unlimited wait time, specify `0` . + * all connections are busy with client sessions. * * Default: `120` * @@ -748,13 +749,14 @@ public open class CfnDBProxyTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty, - ) : CdkObject(cdkObject), ConnectionPoolConfigurationInfoFormatProperty { + ) : CdkObject(cdkObject), + ConnectionPoolConfigurationInfoFormatProperty { /** * The number of seconds for a proxy to wait for a connection to become available in the * connection pool. * * This setting only applies when the proxy has opened its maximum number of connections and - * all connections are busy with client sessions. For an unlimited wait time, specify `0` . + * all connections are busy with client sessions. * * Default: `120` * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroupProps.kt index 93679e6530..4255e5a774 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBProxyTargetGroupProps.kt @@ -41,8 +41,8 @@ import kotlin.jvm.JvmName */ public interface CfnDBProxyTargetGroupProps { /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated with + * a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) */ @@ -89,21 +89,21 @@ public interface CfnDBProxyTargetGroupProps { @CdkDslMarker public interface Builder { /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ public fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: IResolvable) /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ public fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty) /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a81dca035ba13cf1b38b5cbc879a23df538a398f0b36ca3a18499b89c43d713a") @@ -149,16 +149,16 @@ public interface CfnDBProxyTargetGroupProps { software.amazon.awscdk.services.rds.CfnDBProxyTargetGroupProps.builder() /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ override fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: IResolvable) { cdkBuilder.connectionPoolConfigurationInfo(connectionPoolConfigurationInfo.let(IResolvable.Companion::unwrap)) } /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ override fun connectionPoolConfigurationInfo(connectionPoolConfigurationInfo: CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty) { @@ -166,8 +166,8 @@ public interface CfnDBProxyTargetGroupProps { } /** - * @param connectionPoolConfigurationInfo Settings that control the size and behavior of the - * connection pool associated with a `DBProxyTargetGroup` . + * @param connectionPoolConfigurationInfo Displays the settings that control the size and + * behavior of the connection pool associated with a `DBProxyTarget` . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a81dca035ba13cf1b38b5cbc879a23df538a398f0b36ca3a18499b89c43d713a") @@ -225,10 +225,11 @@ public interface CfnDBProxyTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBProxyTargetGroupProps, - ) : CdkObject(cdkObject), CfnDBProxyTargetGroupProps { + ) : CdkObject(cdkObject), + CfnDBProxyTargetGroupProps { /** - * Settings that control the size and behavior of the connection pool associated with a - * `DBProxyTargetGroup` . + * Displays the settings that control the size and behavior of the connection pool associated + * with a `DBProxyTarget` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbproxytargetgroup.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfo) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroup.kt index 14f16b4875..89c6a402aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroup.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBSecurityGroup( cdkObject: software.amazon.awscdk.services.rds.CfnDBSecurityGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -109,16 +111,12 @@ public open class CfnDBSecurityGroup( dbSecurityGroupIngress(`value`.toList()) /** - * The identifier of an Amazon VPC. - * - * This property indicates the VPC that this DB security group belongs to. + * The identifier of an Amazon virtual private cloud (VPC). */ public open fun ec2VpcId(): String? = unwrap(this).getEc2VpcId() /** - * The identifier of an Amazon VPC. - * - * This property indicates the VPC that this DB security group belongs to. + * The identifier of an Amazon virtual private cloud (VPC). */ public open fun ec2VpcId(`value`: String) { unwrap(this).setEc2VpcId(`value`) @@ -151,20 +149,20 @@ public open class CfnDBSecurityGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -198,17 +196,17 @@ public open class CfnDBSecurityGroup( public fun dbSecurityGroupIngress(vararg dbSecurityGroupIngress: Any) /** - * The identifier of an Amazon VPC. This property indicates the VPC that this DB security group - * belongs to. + * The identifier of an Amazon virtual private cloud (VPC). * + * This property indicates the VPC that this DB security group belongs to. * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-ec2vpcid) - * @param ec2VpcId The identifier of an Amazon VPC. This property indicates the VPC that this DB - * security group belongs to. + * @param ec2VpcId The identifier of an Amazon virtual private cloud (VPC). */ public fun ec2VpcId(ec2VpcId: String) @@ -221,18 +219,30 @@ public open class CfnDBSecurityGroup( public fun groupDescription(groupDescription: String) /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ public fun tags(vararg tags: CfnTag) } @@ -274,17 +284,17 @@ public open class CfnDBSecurityGroup( dbSecurityGroupIngress(dbSecurityGroupIngress.toList()) /** - * The identifier of an Amazon VPC. This property indicates the VPC that this DB security group - * belongs to. + * The identifier of an Amazon virtual private cloud (VPC). + * + * This property indicates the VPC that this DB security group belongs to. * * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-ec2vpcid) - * @param ec2VpcId The identifier of an Amazon VPC. This property indicates the VPC that this DB - * security group belongs to. + * @param ec2VpcId The identifier of an Amazon virtual private cloud (VPC). */ override fun ec2VpcId(ec2VpcId: String) { cdkBuilder.ec2VpcId(ec2VpcId) @@ -301,20 +311,32 @@ public open class CfnDBSecurityGroup( } /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -500,7 +522,8 @@ public open class CfnDBSecurityGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBSecurityGroup.IngressProperty, - ) : CdkObject(cdkObject), IngressProperty { + ) : CdkObject(cdkObject), + IngressProperty { /** * The IP range to authorize. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngress.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngress.kt index 57a4d34685..c796b36fbf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngress.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngress.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBSecurityGroupIngress( cdkObject: software.amazon.awscdk.services.rds.CfnDBSecurityGroupIngress, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngressProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngressProps.kt index dfe6431da4..0824b9dcee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngressProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupIngressProps.kt @@ -176,7 +176,8 @@ public interface CfnDBSecurityGroupIngressProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBSecurityGroupIngressProps, - ) : CdkObject(cdkObject), CfnDBSecurityGroupIngressProps { + ) : CdkObject(cdkObject), + CfnDBSecurityGroupIngressProps { /** * The IP range to authorize. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupProps.kt index f7b15c7f16..dcf0d0cdb2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSecurityGroupProps.kt @@ -49,12 +49,13 @@ public interface CfnDBSecurityGroupProps { public fun dbSecurityGroupIngress(): Any /** - * The identifier of an Amazon VPC. This property indicates the VPC that this DB security group - * belongs to. + * The identifier of an Amazon virtual private cloud (VPC). * + * This property indicates the VPC that this DB security group belongs to. * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-ec2vpcid) @@ -69,7 +70,13 @@ public interface CfnDBSecurityGroupProps { public fun groupDescription(): String /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the + * *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) */ @@ -96,11 +103,12 @@ public interface CfnDBSecurityGroupProps { public fun dbSecurityGroupIngress(vararg dbSecurityGroupIngress: Any) /** - * @param ec2VpcId The identifier of an Amazon VPC. This property indicates the VPC that this DB - * security group belongs to. + * @param ec2VpcId The identifier of an Amazon virtual private cloud (VPC). + * This property indicates the VPC that this DB security group belongs to. + * * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. */ public fun ec2VpcId(ec2VpcId: String) @@ -110,12 +118,22 @@ public interface CfnDBSecurityGroupProps { public fun groupDescription(groupDescription: String) /** - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . */ public fun tags(vararg tags: CfnTag) } @@ -145,11 +163,12 @@ public interface CfnDBSecurityGroupProps { dbSecurityGroupIngress(dbSecurityGroupIngress.toList()) /** - * @param ec2VpcId The identifier of an Amazon VPC. This property indicates the VPC that this DB - * security group belongs to. + * @param ec2VpcId The identifier of an Amazon virtual private cloud (VPC). + * This property indicates the VPC that this DB security group belongs to. * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. */ override fun ec2VpcId(ec2VpcId: String) { cdkBuilder.ec2VpcId(ec2VpcId) @@ -163,14 +182,24 @@ public interface CfnDBSecurityGroupProps { } /** - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB security group. + * @param tags Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -180,7 +209,8 @@ public interface CfnDBSecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBSecurityGroupProps, - ) : CdkObject(cdkObject), CfnDBSecurityGroupProps { + ) : CdkObject(cdkObject), + CfnDBSecurityGroupProps { /** * Ingress rules to be applied to the DB security group. * @@ -189,12 +219,13 @@ public interface CfnDBSecurityGroupProps { override fun dbSecurityGroupIngress(): Any = unwrap(this).getDbSecurityGroupIngress() /** - * The identifier of an Amazon VPC. This property indicates the VPC that this DB security group - * belongs to. + * The identifier of an Amazon virtual private cloud (VPC). + * + * This property indicates the VPC that this DB security group belongs to. * * - * The `EC2VpcId` property is for backward compatibility with older regions, and is no longer - * recommended for providing security information to an RDS DB instance. + * This property is included for backwards compatibility and is no longer recommended for + * providing security information to an RDS DB instance. * * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-ec2vpcid) @@ -209,7 +240,13 @@ public interface CfnDBSecurityGroupProps { override fun groupDescription(): String = unwrap(this).getGroupDescription() /** - * An optional array of key-value pairs to apply to this DB security group. + * Metadata assigned to an Amazon RDS resource consisting of a key-value pair. + * + * For more information, see [Tagging Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the + * *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + * resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in + * the *Amazon Aurora User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html#cfn-rds-dbsecuritygroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroup.kt index a1dcd7cba3..b010fa4573 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroup.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDBSubnetGroup( cdkObject: software.amazon.awscdk.services.rds.CfnDBSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -124,20 +126,20 @@ public open class CfnDBSubnetGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -157,10 +159,13 @@ public open class CfnDBSubnetGroup( /** * The name for the DB subnet group. This value is stored as a lowercase string. * - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: * - * Example: `mysubnetgroup` + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. + * + * Example: `mydbsubnetgroup` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-dbsubnetgroupname) * @param dbSubnetGroupName The name for the DB subnet group. This value is stored as a @@ -185,18 +190,18 @@ public open class CfnDBSubnetGroup( public fun subnetIds(vararg subnetIds: String) /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ public fun tags(vararg tags: CfnTag) } @@ -221,10 +226,13 @@ public open class CfnDBSubnetGroup( /** * The name for the DB subnet group. This value is stored as a lowercase string. * - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: + * + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. * - * Example: `mysubnetgroup` + * Example: `mydbsubnetgroup` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-dbsubnetgroupname) * @param dbSubnetGroupName The name for the DB subnet group. This value is stored as a @@ -253,20 +261,20 @@ public open class CfnDBSubnetGroup( override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroupProps.kt index 1229d22842..7a0016ca79 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnDBSubnetGroupProps.kt @@ -44,10 +44,13 @@ public interface CfnDBSubnetGroupProps { /** * The name for the DB subnet group. This value is stored as a lowercase string. * - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: * - * Example: `mysubnetgroup` + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. + * + * Example: `mydbsubnetgroup` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-dbsubnetgroupname) */ @@ -61,7 +64,7 @@ public interface CfnDBSubnetGroupProps { public fun subnetIds(): List /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) */ @@ -80,10 +83,13 @@ public interface CfnDBSubnetGroupProps { /** * @param dbSubnetGroupName The name for the DB subnet group. This value is stored as a * lowercase string. - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: + * + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. * - * Example: `mysubnetgroup` + * Example: `mydbsubnetgroup` */ public fun dbSubnetGroupName(dbSubnetGroupName: String) @@ -98,12 +104,12 @@ public interface CfnDBSubnetGroupProps { public fun subnetIds(vararg subnetIds: String) /** - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ public fun tags(vararg tags: CfnTag) } @@ -122,10 +128,13 @@ public interface CfnDBSubnetGroupProps { /** * @param dbSubnetGroupName The name for the DB subnet group. This value is stored as a * lowercase string. - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: * - * Example: `mysubnetgroup` + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. + * + * Example: `mydbsubnetgroup` */ override fun dbSubnetGroupName(dbSubnetGroupName: String) { cdkBuilder.dbSubnetGroupName(dbSubnetGroupName) @@ -144,14 +153,14 @@ public interface CfnDBSubnetGroupProps { override fun subnetIds(vararg subnetIds: String): Unit = subnetIds(subnetIds.toList()) /** - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this DB subnet group. + * @param tags Tags to assign to the DB subnet group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -161,7 +170,8 @@ public interface CfnDBSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnDBSubnetGroupProps, - ) : CdkObject(cdkObject), CfnDBSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnDBSubnetGroupProps { /** * The description for the DB subnet group. * @@ -172,10 +182,13 @@ public interface CfnDBSubnetGroupProps { /** * The name for the DB subnet group. This value is stored as a lowercase string. * - * Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must - * not be "Default". + * Constraints: + * + * * Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. + * * Must not be default. + * * First character must be a letter. * - * Example: `mysubnetgroup` + * Example: `mydbsubnetgroup` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-dbsubnetgroupname) */ @@ -189,7 +202,7 @@ public interface CfnDBSubnetGroupProps { override fun subnetIds(): List = unwrap(this).getSubnetIds() /** - * An optional array of key-value pairs to apply to this DB subnet group. + * Tags to assign to the DB subnet group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnetgroup.html#cfn-rds-dbsubnetgroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscription.kt index c244e22dae..8b65f85875 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscription.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventSubscription( cdkObject: software.amazon.awscdk.services.rds.CfnEventSubscription, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -285,7 +287,7 @@ public open class CfnEventSubscription( * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -294,6 +296,7 @@ public open class CfnEventSubscription( * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) * @param sourceIds The list of identifiers of the event sources for which events are returned. @@ -309,7 +312,7 @@ public open class CfnEventSubscription( * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -318,6 +321,7 @@ public open class CfnEventSubscription( * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) * @param sourceIds The list of identifiers of the event sources for which events are returned. @@ -327,11 +331,13 @@ public open class CfnEventSubscription( /** * The type of source that is generating the events. * - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | + * db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype) * @param sourceType The type of source that is generating the events. @@ -468,7 +474,7 @@ public open class CfnEventSubscription( * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -477,6 +483,7 @@ public open class CfnEventSubscription( * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) * @param sourceIds The list of identifiers of the event sources for which events are returned. @@ -494,7 +501,7 @@ public open class CfnEventSubscription( * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -503,6 +510,7 @@ public open class CfnEventSubscription( * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) * @param sourceIds The list of identifiers of the event sources for which events are returned. @@ -512,11 +520,13 @@ public open class CfnEventSubscription( /** * The type of source that is generating the events. * - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | + * db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype) * @param sourceType The type of source that is generating the events. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscriptionProps.kt index 465ecf97ca..632bdcd73c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnEventSubscriptionProps.kt @@ -92,7 +92,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be supplied. @@ -100,6 +100,7 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) */ @@ -108,11 +109,12 @@ public interface CfnEventSubscriptionProps { /** * The type of source that is generating the events. * - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype) */ @@ -198,7 +200,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -207,6 +209,7 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. */ public fun sourceIds(sourceIds: List) @@ -218,7 +221,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -227,16 +230,19 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. */ public fun sourceIds(vararg sourceIds: String) /** * @param sourceType The type of source that is generating the events. - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | + * db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment` */ public fun sourceType(sourceType: String) @@ -329,7 +335,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -338,6 +344,7 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. */ override fun sourceIds(sourceIds: List) { cdkBuilder.sourceIds(sourceIds) @@ -351,7 +358,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -360,16 +367,19 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. */ override fun sourceIds(vararg sourceIds: String): Unit = sourceIds(sourceIds.toList()) /** * @param sourceType The type of source that is generating the events. - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | + * db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment` */ override fun sourceType(sourceType: String) { cdkBuilder.sourceType(sourceType) @@ -401,7 +411,8 @@ public interface CfnEventSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnEventSubscriptionProps, - ) : CdkObject(cdkObject), CfnEventSubscriptionProps { + ) : CdkObject(cdkObject), + CfnEventSubscriptionProps { /** * Specifies whether to activate the subscription. * @@ -454,7 +465,7 @@ public interface CfnEventSubscriptionProps { * * Constraints: * - * * If a `SourceIds` value is supplied, `SourceType` must also be provided. + * * If `SourceIds` are supplied, `SourceType` must also be provided. * * If the source type is a DB instance, a `DBInstanceIdentifier` value must be supplied. * * If the source type is a DB cluster, a `DBClusterIdentifier` value must be supplied. * * If the source type is a DB parameter group, a `DBParameterGroupName` value must be @@ -463,6 +474,7 @@ public interface CfnEventSubscriptionProps { * * If the source type is a DB snapshot, a `DBSnapshotIdentifier` value must be supplied. * * If the source type is a DB cluster snapshot, a `DBClusterSnapshotIdentifier` value must be * supplied. + * * If the source type is an RDS Proxy, a `DBProxyName` value must be supplied. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourceids) */ @@ -471,11 +483,13 @@ public interface CfnEventSubscriptionProps { /** * The type of source that is generating the events. * - * For example, if you want to be notified of events generated by a DB instance, set this - * parameter to `db-instance` . If this value isn't specified, all events are returned. + * For example, if you want to be notified of events generated by a DB instance, you set this + * parameter to `db-instance` . For RDS Proxy events, specify `db-proxy` . If this value isn't + * specified, all events are returned. * - * Valid values: `db-instance` | `db-cluster` | `db-parameter-group` | `db-security-group` | - * `db-snapshot` | `db-cluster-snapshot` + * Valid Values: `db-instance | db-cluster | db-parameter-group | db-security-group | + * db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalCluster.kt index d0744c6dea..d58c95ea29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalCluster.kt @@ -38,6 +38,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnGlobalCluster cfnGlobalCluster = CfnGlobalCluster.Builder.create(this, "MyCfnGlobalCluster") * .deletionProtection(false) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineVersion("engineVersion") * .globalClusterIdentifier("globalClusterIdentifier") * .sourceDbClusterIdentifier("sourceDbClusterIdentifier") @@ -49,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGlobalCluster( cdkObject: software.amazon.awscdk.services.rds.CfnGlobalCluster, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.rds.CfnGlobalCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -102,6 +104,18 @@ public open class CfnGlobalCluster( unwrap(this).setEngine(`value`) } + /** + * The life cycle type for this global database cluster. + */ + public open fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + + /** + * The life cycle type for this global database cluster. + */ + public open fun engineLifecycleSupport(`value`: String) { + unwrap(this).setEngineLifecycleSupport(`value`) + } + /** * The engine version to use for this global database cluster. */ @@ -208,6 +222,35 @@ public open class CfnGlobalCluster( */ public fun engine(engine: String) + /** + * The life cycle type for this global database cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your + * global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid + * charges for Extended Support by setting the value to `open-source-rds-extended-support-disabled` + * . In this case, creating the global cluster will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this global database cluster. + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * The engine version to use for this global database cluster. * @@ -327,6 +370,37 @@ public open class CfnGlobalCluster( cdkBuilder.engine(engine) } + /** + * The life cycle type for this global database cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your + * global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid + * charges for Extended Support by setting the value to `open-source-rds-extended-support-disabled` + * . In this case, creating the global cluster will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-enginelifecyclesupport) + * @param engineLifecycleSupport The life cycle type for this global database cluster. + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * The engine version to use for this global database cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalClusterProps.kt index 3434f80e90..e39174def5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnGlobalClusterProps.kt @@ -23,6 +23,7 @@ import kotlin.Unit * CfnGlobalClusterProps cfnGlobalClusterProps = CfnGlobalClusterProps.builder() * .deletionProtection(false) * .engine("engine") + * .engineLifecycleSupport("engineLifecycleSupport") * .engineVersion("engineVersion") * .globalClusterIdentifier("globalClusterIdentifier") * .sourceDbClusterIdentifier("sourceDbClusterIdentifier") @@ -56,6 +57,34 @@ public interface CfnGlobalClusterProps { */ public fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this global database cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your global + * cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges + * for Extended Support by setting the value to `open-source-rds-extended-support-disabled` . In this + * case, creating the global cluster will fail if the DB major version is past its end of standard + * support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-enginelifecyclesupport) + */ + public fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The engine version to use for this global database cluster. * @@ -134,6 +163,31 @@ public interface CfnGlobalClusterProps { */ public fun engine(engine: String) + /** + * @param engineLifecycleSupport The life cycle type for this global database cluster. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your + * global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid + * charges for Extended Support by setting the value to `open-source-rds-extended-support-disabled` + * . In this case, creating the global cluster will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + public fun engineLifecycleSupport(engineLifecycleSupport: String) + /** * @param engineVersion The engine version to use for this global database cluster. * Constraints: @@ -218,6 +272,33 @@ public interface CfnGlobalClusterProps { cdkBuilder.engine(engine) } + /** + * @param engineLifecycleSupport The life cycle type for this global database cluster. + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your + * global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid + * charges for Extended Support by setting the value to `open-source-rds-extended-support-disabled` + * . In this case, creating the global cluster will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + */ + override fun engineLifecycleSupport(engineLifecycleSupport: String) { + cdkBuilder.engineLifecycleSupport(engineLifecycleSupport) + } + /** * @param engineVersion The engine version to use for this global database cluster. * Constraints: @@ -282,7 +363,8 @@ public interface CfnGlobalClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnGlobalClusterProps, - ) : CdkObject(cdkObject), CfnGlobalClusterProps { + ) : CdkObject(cdkObject), + CfnGlobalClusterProps { /** * Specifies whether to enable deletion protection for the new global database cluster. * @@ -306,6 +388,34 @@ public interface CfnGlobalClusterProps { */ override fun engine(): String? = unwrap(this).getEngine() + /** + * The life cycle type for this global database cluster. + * + * + * By default, this value is set to `open-source-rds-extended-support` , which enrolls your + * global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid + * charges for Extended Support by setting the value to `open-source-rds-extended-support-disabled` + * . In this case, creating the global cluster will fail if the DB major version is past its end of + * standard support date. + * + * + * This setting only applies to Aurora PostgreSQL-based global databases. + * + * You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With + * RDS Extended Support, you can run the selected major engine version on your global cluster past + * the end of standard support for that engine version. For more information, see [Using Amazon RDS + * Extended + * Support](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) in + * the *Amazon Aurora User Guide* . + * + * Valid Values: `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + * + * Default: `open-source-rds-extended-support` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-enginelifecyclesupport) + */ + override fun engineLifecycleSupport(): String? = unwrap(this).getEngineLifecycleSupport() + /** * The engine version to use for this global database cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegration.kt index b33526a91d..c03ca831a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegration.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIntegration( cdkObject: software.amazon.awscdk.services.rds.CfnIntegration, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -176,19 +178,19 @@ public open class CfnIntegration( } /** - * A list of tags. + * An optional array of key-value pairs to apply to this integration. */ public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * A list of tags. + * An optional array of key-value pairs to apply to this integration. */ public open fun tags(`value`: List) { unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) } /** - * A list of tags. + * An optional array of key-value pairs to apply to this integration. */ public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) @@ -290,26 +292,18 @@ public open class CfnIntegration( public fun sourceArn(sourceArn: String) /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) - * @param tags A list of tags. + * @param tags An optional array of key-value pairs to apply to this integration. */ public fun tags(tags: List) /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) - * @param tags A list of tags. + * @param tags An optional array of key-value pairs to apply to this integration. */ public fun tags(vararg tags: CfnTag) @@ -425,28 +419,20 @@ public open class CfnIntegration( } /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) - * @param tags A list of tags. + * @param tags An optional array of key-value pairs to apply to this integration. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) - * @param tags A list of tags. + * @param tags An optional array of key-value pairs to apply to this integration. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegrationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegrationProps.kt index 886cf9b2ce..af905bbae1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegrationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnIntegrationProps.kt @@ -98,11 +98,7 @@ public interface CfnIntegrationProps { public fun sourceArn(): String /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) */ @@ -173,18 +169,12 @@ public interface CfnIntegrationProps { public fun sourceArn(sourceArn: String) /** - * @param tags A list of tags. - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * @param tags An optional array of key-value pairs to apply to this integration. */ public fun tags(tags: List) /** - * @param tags A list of tags. - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * @param tags An optional array of key-value pairs to apply to this integration. */ public fun tags(vararg tags: CfnTag) @@ -266,20 +256,14 @@ public interface CfnIntegrationProps { } /** - * @param tags A list of tags. - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * @param tags An optional array of key-value pairs to apply to this integration. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags A list of tags. - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * @param tags An optional array of key-value pairs to apply to this integration. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -296,7 +280,8 @@ public interface CfnIntegrationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnIntegrationProps, - ) : CdkObject(cdkObject), CfnIntegrationProps { + ) : CdkObject(cdkObject), + CfnIntegrationProps { /** * An optional set of non-secret key–value pairs that contains additional contextual information * about the data. @@ -353,11 +338,7 @@ public interface CfnIntegrationProps { override fun sourceArn(): String = unwrap(this).getSourceArn() /** - * A list of tags. - * - * For more information, see [Tagging Amazon RDS - * Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the - * *Amazon RDS User Guide.* . + * An optional array of key-value pairs to apply to this integration. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-integration.html#cfn-rds-integration-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroup.kt index 20b47f2cf8..11d46923be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroup.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOptionGroup( cdkObject: software.amazon.awscdk.services.rds.CfnOptionGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -110,26 +112,26 @@ public open class CfnOptionGroup( } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. */ public open fun optionConfigurations(): Any? = unwrap(this).getOptionConfigurations() /** - * A list of options and the settings for each option. + * A list of all available options for an option group. */ public open fun optionConfigurations(`value`: IResolvable) { unwrap(this).setOptionConfigurations(`value`.let(IResolvable.Companion::unwrap)) } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. */ public open fun optionConfigurations(`value`: List) { unwrap(this).setOptionConfigurations(`value`.map{CdkObjectWrappers.unwrap(it)}) } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. */ public open fun optionConfigurations(vararg `value`: Any): Unit = optionConfigurations(`value`.toList()) @@ -164,20 +166,20 @@ public open class CfnOptionGroup( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -219,26 +221,26 @@ public open class CfnOptionGroup( public fun majorEngineVersion(majorEngineVersion: String) /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(optionConfigurations: IResolvable) /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(optionConfigurations: List) /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(vararg optionConfigurations: Any) @@ -274,18 +276,18 @@ public open class CfnOptionGroup( public fun optionGroupName(optionGroupName: String) /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ public fun tags(tags: List) /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ public fun tags(vararg tags: CfnTag) } @@ -334,30 +336,30 @@ public open class CfnOptionGroup( } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(optionConfigurations: IResolvable) { cdkBuilder.optionConfigurations(optionConfigurations.let(IResolvable.Companion::unwrap)) } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(optionConfigurations: List) { cdkBuilder.optionConfigurations(optionConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(vararg optionConfigurations: Any): Unit = optionConfigurations(optionConfigurations.toList()) @@ -398,20 +400,20 @@ public open class CfnOptionGroup( } /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -466,7 +468,7 @@ public open class CfnOptionGroup( */ public interface OptionConfigurationProperty { /** - * A list of DBSecurityGroupMembership name strings used for this option. + * A list of DB security groups used for this option. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfiguration.html#cfn-rds-optiongroup-optionconfiguration-dbsecuritygroupmemberships) */ @@ -502,7 +504,7 @@ public open class CfnOptionGroup( public fun port(): Number? = unwrap(this).getPort() /** - * A list of VpcSecurityGroupMembership name strings used for this option. + * A list of VPC security group names used for this option. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfiguration.html#cfn-rds-optiongroup-optionconfiguration-vpcsecuritygroupmemberships) */ @@ -515,14 +517,12 @@ public open class CfnOptionGroup( @CdkDslMarker public interface Builder { /** - * @param dbSecurityGroupMemberships A list of DBSecurityGroupMembership name strings used for - * this option. + * @param dbSecurityGroupMemberships A list of DB security groups used for this option. */ public fun dbSecurityGroupMemberships(dbSecurityGroupMemberships: List) /** - * @param dbSecurityGroupMemberships A list of DBSecurityGroupMembership name strings used for - * this option. + * @param dbSecurityGroupMemberships A list of DB security groups used for this option. */ public fun dbSecurityGroupMemberships(vararg dbSecurityGroupMemberships: String) @@ -557,14 +557,12 @@ public open class CfnOptionGroup( public fun port(port: Number) /** - * @param vpcSecurityGroupMemberships A list of VpcSecurityGroupMembership name strings used - * for this option. + * @param vpcSecurityGroupMemberships A list of VPC security group names used for this option. */ public fun vpcSecurityGroupMemberships(vpcSecurityGroupMemberships: List) /** - * @param vpcSecurityGroupMemberships A list of VpcSecurityGroupMembership name strings used - * for this option. + * @param vpcSecurityGroupMemberships A list of VPC security group names used for this option. */ public fun vpcSecurityGroupMemberships(vararg vpcSecurityGroupMemberships: String) } @@ -575,16 +573,14 @@ public open class CfnOptionGroup( software.amazon.awscdk.services.rds.CfnOptionGroup.OptionConfigurationProperty.builder() /** - * @param dbSecurityGroupMemberships A list of DBSecurityGroupMembership name strings used for - * this option. + * @param dbSecurityGroupMemberships A list of DB security groups used for this option. */ override fun dbSecurityGroupMemberships(dbSecurityGroupMemberships: List) { cdkBuilder.dbSecurityGroupMemberships(dbSecurityGroupMemberships) } /** - * @param dbSecurityGroupMemberships A list of DBSecurityGroupMembership name strings used for - * this option. + * @param dbSecurityGroupMemberships A list of DB security groups used for this option. */ override fun dbSecurityGroupMemberships(vararg dbSecurityGroupMemberships: String): Unit = dbSecurityGroupMemberships(dbSecurityGroupMemberships.toList()) @@ -631,16 +627,14 @@ public open class CfnOptionGroup( } /** - * @param vpcSecurityGroupMemberships A list of VpcSecurityGroupMembership name strings used - * for this option. + * @param vpcSecurityGroupMemberships A list of VPC security group names used for this option. */ override fun vpcSecurityGroupMemberships(vpcSecurityGroupMemberships: List) { cdkBuilder.vpcSecurityGroupMemberships(vpcSecurityGroupMemberships) } /** - * @param vpcSecurityGroupMemberships A list of VpcSecurityGroupMembership name strings used - * for this option. + * @param vpcSecurityGroupMemberships A list of VPC security group names used for this option. */ override fun vpcSecurityGroupMemberships(vararg vpcSecurityGroupMemberships: String): Unit = vpcSecurityGroupMemberships(vpcSecurityGroupMemberships.toList()) @@ -652,9 +646,10 @@ public open class CfnOptionGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnOptionGroup.OptionConfigurationProperty, - ) : CdkObject(cdkObject), OptionConfigurationProperty { + ) : CdkObject(cdkObject), + OptionConfigurationProperty { /** - * A list of DBSecurityGroupMembership name strings used for this option. + * A list of DB security groups used for this option. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfiguration.html#cfn-rds-optiongroup-optionconfiguration-dbsecuritygroupmemberships) */ @@ -690,7 +685,7 @@ public open class CfnOptionGroup( override fun port(): Number? = unwrap(this).getPort() /** - * A list of VpcSecurityGroupMembership name strings used for this option. + * A list of VPC security group names used for this option. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfiguration.html#cfn-rds-optiongroup-optionconfiguration-vpcsecuritygroupmemberships) */ @@ -790,7 +785,8 @@ public open class CfnOptionGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnOptionGroup.OptionSettingProperty, - ) : CdkObject(cdkObject), OptionSettingProperty { + ) : CdkObject(cdkObject), + OptionSettingProperty { /** * The name of the option that has settings that you can set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroupProps.kt index 20ed3d8ecb..4b143ab04d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CfnOptionGroupProps.kt @@ -78,7 +78,7 @@ public interface CfnOptionGroupProps { public fun majorEngineVersion(): String /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) */ @@ -114,7 +114,7 @@ public interface CfnOptionGroupProps { public fun optionGroupName(): String? = unwrap(this).getOptionGroupName() /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) */ @@ -151,17 +151,17 @@ public interface CfnOptionGroupProps { public fun majorEngineVersion(majorEngineVersion: String) /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(optionConfigurations: IResolvable) /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(optionConfigurations: List) /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ public fun optionConfigurations(vararg optionConfigurations: Any) @@ -189,12 +189,12 @@ public interface CfnOptionGroupProps { public fun optionGroupName(optionGroupName: String) /** - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ public fun tags(tags: List) /** - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ public fun tags(vararg tags: CfnTag) } @@ -233,21 +233,21 @@ public interface CfnOptionGroupProps { } /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(optionConfigurations: IResolvable) { cdkBuilder.optionConfigurations(optionConfigurations.let(IResolvable.Companion::unwrap)) } /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(optionConfigurations: List) { cdkBuilder.optionConfigurations(optionConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param optionConfigurations A list of options and the settings for each option. + * @param optionConfigurations A list of all available options for an option group. */ override fun optionConfigurations(vararg optionConfigurations: Any): Unit = optionConfigurations(optionConfigurations.toList()) @@ -280,14 +280,14 @@ public interface CfnOptionGroupProps { } /** - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags An optional array of key-value pairs to apply to this option group. + * @param tags Tags to assign to the option group. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -296,7 +296,8 @@ public interface CfnOptionGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CfnOptionGroupProps, - ) : CdkObject(cdkObject), CfnOptionGroupProps { + ) : CdkObject(cdkObject), + CfnOptionGroupProps { /** * Specifies the name of the engine that this option group should be associated with. * @@ -326,7 +327,7 @@ public interface CfnOptionGroupProps { override fun majorEngineVersion(): String = unwrap(this).getMajorEngineVersion() /** - * A list of options and the settings for each option. + * A list of all available options for an option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-optionconfigurations) */ @@ -362,7 +363,7 @@ public interface CfnOptionGroupProps { override fun optionGroupName(): String? = unwrap(this).getOptionGroupName() /** - * An optional array of key-value pairs to apply to this option group. + * Tags to assign to the option group. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineBindOptions.kt index 0a83a7462b..d9373705b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineBindOptions.kt @@ -102,7 +102,8 @@ public interface ClusterEngineBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterEngineBindOptions, - ) : CdkObject(cdkObject), ClusterEngineBindOptions { + ) : CdkObject(cdkObject), + ClusterEngineBindOptions { /** * The customer-provided ParameterGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineConfig.kt index 96b2485aca..16a79ce820 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineConfig.kt @@ -123,7 +123,8 @@ public interface ClusterEngineConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterEngineConfig, - ) : CdkObject(cdkObject), ClusterEngineConfig { + ) : CdkObject(cdkObject), + ClusterEngineConfig { /** * Features supported by the database engine. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineFeatures.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineFeatures.kt index aafb5cb6b3..52a13a5a64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineFeatures.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterEngineFeatures.kt @@ -84,7 +84,8 @@ public interface ClusterEngineFeatures { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterEngineFeatures, - ) : CdkObject(cdkObject), ClusterEngineFeatures { + ) : CdkObject(cdkObject), + ClusterEngineFeatures { /** * Feature name for the DB instance that the IAM role to export to S3 bucket is to be associated * with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstance.kt index 785e5c1d81..51b1163a00 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstance.kt @@ -34,7 +34,8 @@ import kotlin.jvm.JvmName */ public open class ClusterInstance( cdkObject: software.amazon.awscdk.services.rds.ClusterInstance, -) : CdkObject(cdkObject), IClusterInstance { +) : CdkObject(cdkObject), + IClusterInstance { /** * Add the ClusterInstance to the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceBindOptions.kt index ccc3008626..68cdf9fec5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceBindOptions.kt @@ -170,7 +170,8 @@ public interface ClusterInstanceBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterInstanceBindOptions, - ) : CdkObject(cdkObject), ClusterInstanceBindOptions { + ) : CdkObject(cdkObject), + ClusterInstanceBindOptions { /** * The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics * for the DB instances. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceOptions.kt index 3a08b67f69..acefdf58ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceOptions.kt @@ -390,7 +390,8 @@ public interface ClusterInstanceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterInstanceOptions, - ) : CdkObject(cdkObject), ClusterInstanceOptions { + ) : CdkObject(cdkObject), + ClusterInstanceOptions { /** * Whether to allow upgrade of major version for the DB instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceProps.kt index 9b0ac20de9..f88bcd18a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ClusterInstanceProps.kt @@ -303,7 +303,8 @@ public interface ClusterInstanceProps : ClusterInstanceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ClusterInstanceProps, - ) : CdkObject(cdkObject), ClusterInstanceProps { + ) : CdkObject(cdkObject), + ClusterInstanceProps { /** * Whether to allow upgrade of major version for the DB instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CommonRotationUserOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CommonRotationUserOptions.kt index b93c278bae..6d7703948c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CommonRotationUserOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CommonRotationUserOptions.kt @@ -215,7 +215,8 @@ public interface CommonRotationUserOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CommonRotationUserOptions, - ) : CdkObject(cdkObject), CommonRotationUserOptions { + ) : CdkObject(cdkObject), + CommonRotationUserOptions { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsBaseOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsBaseOptions.kt index f7ff86344b..7bf9ced6bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsBaseOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsBaseOptions.kt @@ -19,7 +19,7 @@ import kotlin.collections.List * ``` * Vpc vpc; * IInstanceEngine engine = - * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build()); + * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); * Key myKey = new Key(this, "MyKey"); * DatabaseInstance.Builder.create(this, "InstanceWithCustomizedSecret") * .engine(engine) @@ -143,7 +143,8 @@ public interface CredentialsBaseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CredentialsBaseOptions, - ) : CdkObject(cdkObject), CredentialsBaseOptions { + ) : CdkObject(cdkObject), + CredentialsBaseOptions { /** * KMS encryption key to encrypt the generated secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsFromUsernameOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsFromUsernameOptions.kt index 6ec75115d4..51e6b828bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsFromUsernameOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/CredentialsFromUsernameOptions.kt @@ -137,7 +137,8 @@ public interface CredentialsFromUsernameOptions : CredentialsBaseOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.CredentialsFromUsernameOptions, - ) : CdkObject(cdkObject), CredentialsFromUsernameOptions { + ) : CdkObject(cdkObject), + CredentialsFromUsernameOptions { /** * KMS encryption key to encrypt the generated secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseCluster.kt index 28e0d0eb26..d4b9ff571b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseCluster.kt @@ -682,7 +682,8 @@ public open class DatabaseCluster( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -730,7 +731,8 @@ public open class DatabaseCluster( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise @@ -1320,7 +1322,8 @@ public open class DatabaseCluster( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -1373,7 +1376,8 @@ public open class DatabaseCluster( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterAttributes.kt index 9209118839..3c40683aff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterAttributes.kt @@ -288,7 +288,8 @@ public interface DatabaseClusterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseClusterAttributes, - ) : CdkObject(cdkObject), DatabaseClusterAttributes { + ) : CdkObject(cdkObject), + DatabaseClusterAttributes { /** * Cluster endpoint address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterBase.kt index 345385763b..98e6f327ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterBase.kt @@ -22,7 +22,8 @@ import kotlin.jvm.JvmName */ public abstract class DatabaseClusterBase( cdkObject: software.amazon.awscdk.services.rds.DatabaseClusterBase, -) : Resource(cdkObject), IDatabaseCluster { +) : Resource(cdkObject), + IDatabaseCluster { /** * Add a new db proxy to this cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshot.kt index eb201bd394..b3319ad92f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshot.kt @@ -685,7 +685,8 @@ public open class DatabaseClusterFromSnapshot( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -733,7 +734,8 @@ public open class DatabaseClusterFromSnapshot( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise @@ -1356,7 +1358,8 @@ public open class DatabaseClusterFromSnapshot( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -1409,7 +1412,8 @@ public open class DatabaseClusterFromSnapshot( * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshotProps.kt index 4211910979..9e713cc834 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterFromSnapshotProps.kt @@ -323,7 +323,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -353,7 +354,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise @@ -699,7 +701,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ public fun s3ExportRole(s3ExportRole: IRole) @@ -727,7 +730,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ public fun s3ImportRole(s3ImportRole: IRole) @@ -1111,7 +1115,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ override fun s3ExportRole(s3ExportRole: IRole) { @@ -1144,7 +1149,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ override fun s3ImportRole(s3ImportRole: IRole) { @@ -1271,7 +1277,8 @@ public interface DatabaseClusterFromSnapshotProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseClusterFromSnapshotProps, - ) : CdkObject(cdkObject), DatabaseClusterFromSnapshotProps { + ) : CdkObject(cdkObject), + DatabaseClusterFromSnapshotProps { /** * The number of seconds to set a cluster's target backtrack window to. * @@ -1558,7 +1565,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -1588,7 +1596,8 @@ public interface DatabaseClusterFromSnapshotProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterProps.kt index 73795442bf..2430fc6811 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseClusterProps.kt @@ -319,7 +319,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -349,7 +350,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise @@ -670,7 +672,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ public fun s3ExportRole(s3ExportRole: IRole) @@ -698,7 +701,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ public fun s3ImportRole(s3ImportRole: IRole) @@ -1059,7 +1063,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ override fun s3ExportRole(s3ExportRole: IRole) { @@ -1092,7 +1097,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: */ override fun s3ImportRole(s3ImportRole: IRole) { @@ -1199,7 +1205,8 @@ public interface DatabaseClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseClusterProps, - ) : CdkObject(cdkObject), DatabaseClusterProps { + ) : CdkObject(cdkObject), + DatabaseClusterProps { /** * The number of seconds to set a cluster's target backtrack window to. * @@ -1476,7 +1483,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ExportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise @@ -1506,7 +1514,8 @@ public interface DatabaseClusterProps { * This feature is only supported by the Aurora database engine. * * This property must not be used if `s3ImportBuckets` is used. - * + * To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature + * enabled when creating the DatabaseClusterEngine * For MySQL: * * Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstance.kt index 6f2949d358..4c068620e8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstance.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DatabaseInstance( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstance, -) : DatabaseInstanceBase(cdkObject), IDatabaseInstance { +) : DatabaseInstanceBase(cdkObject), + IDatabaseInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceAttributes.kt index 4917e7c1dd..f152764145 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceAttributes.kt @@ -175,7 +175,8 @@ public interface DatabaseInstanceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceAttributes, - ) : CdkObject(cdkObject), DatabaseInstanceAttributes { + ) : CdkObject(cdkObject), + DatabaseInstanceAttributes { /** * The engine of the existing database Instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceBase.kt index 7ea687f297..aba76d7e54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceBase.kt @@ -45,7 +45,8 @@ import kotlin.jvm.JvmName */ public abstract class DatabaseInstanceBase( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceBase, -) : Resource(cdkObject), IDatabaseInstance { +) : Resource(cdkObject), + IDatabaseInstance { /** * Add a new db proxy to this instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshot.kt index ecba8a44c9..b080066d2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshot.kt @@ -39,7 +39,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * DatabaseInstance sourceInstance; * DatabaseInstanceFromSnapshot.Builder.create(this, "Instance") * .snapshotIdentifier("my-snapshot") - * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build())) + * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build())) * // optional, defaults to m5.large * .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) * .vpc(vpc) @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DatabaseInstanceFromSnapshot( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceFromSnapshot, -) : DatabaseInstanceBase(cdkObject), IDatabaseInstance { +) : DatabaseInstanceBase(cdkObject), + IDatabaseInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshotProps.kt index 41265ebccf..ba91bf24f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceFromSnapshotProps.kt @@ -33,7 +33,7 @@ import kotlin.jvm.JvmName * DatabaseInstance sourceInstance; * DatabaseInstanceFromSnapshot.Builder.create(this, "Instance") * .snapshotIdentifier("my-snapshot") - * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build())) + * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build())) * // optional, defaults to m5.large * .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) * .vpc(vpc) @@ -918,7 +918,8 @@ public interface DatabaseInstanceFromSnapshotProps : DatabaseInstanceSourceProps private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceFromSnapshotProps, - ) : CdkObject(cdkObject), DatabaseInstanceFromSnapshotProps { + ) : CdkObject(cdkObject), + DatabaseInstanceFromSnapshotProps { /** * The allocated storage size, specified in gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceNewProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceNewProps.kt index c06f8f4bff..f410e445ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceNewProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceNewProps.kt @@ -1219,7 +1219,8 @@ public interface DatabaseInstanceNewProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceNewProps, - ) : CdkObject(cdkObject), DatabaseInstanceNewProps { + ) : CdkObject(cdkObject), + DatabaseInstanceNewProps { /** * Indicates that minor engine upgrades are applied automatically to the DB instance during the * maintenance window. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceProps.kt index 089a275bd7..e15d93d927 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceProps.kt @@ -951,7 +951,8 @@ public interface DatabaseInstanceProps : DatabaseInstanceSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceProps, - ) : CdkObject(cdkObject), DatabaseInstanceProps { + ) : CdkObject(cdkObject), + DatabaseInstanceProps { /** * The allocated storage size, specified in gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplica.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplica.kt index c8336c9204..4b7fe35f4d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplica.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplica.kt @@ -35,7 +35,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * DatabaseInstance sourceInstance; * DatabaseInstanceFromSnapshot.Builder.create(this, "Instance") * .snapshotIdentifier("my-snapshot") - * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build())) + * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build())) * // optional, defaults to m5.large * .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) * .vpc(vpc) @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DatabaseInstanceReadReplica( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceReadReplica, -) : DatabaseInstanceBase(cdkObject), IDatabaseInstance { +) : DatabaseInstanceBase(cdkObject), + IDatabaseInstance { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplicaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplicaProps.kt index e207e5901e..30c58da386 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplicaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceReadReplicaProps.kt @@ -32,7 +32,7 @@ import kotlin.jvm.JvmName * DatabaseInstance sourceInstance; * DatabaseInstanceFromSnapshot.Builder.create(this, "Instance") * .snapshotIdentifier("my-snapshot") - * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build())) + * .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build())) * // optional, defaults to m5.large * .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) * .vpc(vpc) @@ -862,7 +862,8 @@ public interface DatabaseInstanceReadReplicaProps : DatabaseInstanceNewProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceReadReplicaProps, - ) : CdkObject(cdkObject), DatabaseInstanceReadReplicaProps { + ) : CdkObject(cdkObject), + DatabaseInstanceReadReplicaProps { /** * The allocated storage size, specified in gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceSourceProps.kt index 021a3e5c0e..1c7f843ec5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseInstanceSourceProps.kt @@ -993,7 +993,8 @@ public interface DatabaseInstanceSourceProps : DatabaseInstanceNewProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseInstanceSourceProps, - ) : CdkObject(cdkObject), DatabaseInstanceSourceProps { + ) : CdkObject(cdkObject), + DatabaseInstanceSourceProps { /** * The allocated storage size, specified in gibibytes (GiB). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxy.kt index 7687f6f94e..c34f8e5f64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxy.kt @@ -49,7 +49,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DatabaseProxy( cdkObject: software.amazon.awscdk.services.rds.DatabaseProxy, -) : Resource(cdkObject), IConnectable, ISecretAttachmentTarget, IDatabaseProxy { +) : Resource(cdkObject), + IConnectable, + ISecretAttachmentTarget, + IDatabaseProxy { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyAttributes.kt index 9fbf09a67a..943ed6b7c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyAttributes.kt @@ -125,7 +125,8 @@ public interface DatabaseProxyAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseProxyAttributes, - ) : CdkObject(cdkObject), DatabaseProxyAttributes { + ) : CdkObject(cdkObject), + DatabaseProxyAttributes { /** * DB Proxy ARN. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyOptions.kt index 201633f79d..f419c6e09e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyOptions.kt @@ -583,7 +583,8 @@ public interface DatabaseProxyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseProxyOptions, - ) : CdkObject(cdkObject), DatabaseProxyOptions { + ) : CdkObject(cdkObject), + DatabaseProxyOptions { /** * The duration for a proxy to wait for a connection to become available in the connection pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyProps.kt index 150d16db03..a797f5d11f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseProxyProps.kt @@ -436,7 +436,8 @@ public interface DatabaseProxyProps : DatabaseProxyOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseProxyProps, - ) : CdkObject(cdkObject), DatabaseProxyProps { + ) : CdkObject(cdkObject), + DatabaseProxyProps { /** * The duration for a proxy to wait for a connection to become available in the connection pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseSecretProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseSecretProps.kt index 3343b590f6..9412b86a30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseSecretProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/DatabaseSecretProps.kt @@ -252,7 +252,8 @@ public interface DatabaseSecretProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.DatabaseSecretProps, - ) : CdkObject(cdkObject), DatabaseSecretProps { + ) : CdkObject(cdkObject), + DatabaseSecretProps { /** * The database name, if not using the default one. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/EngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/EngineVersion.kt index 29975198bb..d0893675c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/EngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/EngineVersion.kt @@ -85,7 +85,8 @@ public interface EngineVersion { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.EngineVersion, - ) : CdkObject(cdkObject), EngineVersion { + ) : CdkObject(cdkObject), + EngineVersion { /** * The full version string of the engine, for example, "5.6.mysql_aurora.1.22.1". It can be * undefined, which means RDS should use whatever version it deems appropriate for the given engine diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IAuroraClusterInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IAuroraClusterInstance.kt index c68e9a5138..55cd5b1862 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IAuroraClusterInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IAuroraClusterInstance.kt @@ -53,7 +53,8 @@ public interface IAuroraClusterInstance : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IAuroraClusterInstance, - ) : CdkObject(cdkObject), IAuroraClusterInstance { + ) : CdkObject(cdkObject), + IAuroraClusterInstance { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterEngine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterEngine.kt index 17ec89e634..e8989ebe27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterEngine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterEngine.kt @@ -60,7 +60,8 @@ public interface IClusterEngine : IEngine { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IClusterEngine, - ) : CdkObject(cdkObject), IClusterEngine { + ) : CdkObject(cdkObject), + IClusterEngine { /** * Method called when the engine is used to create a new cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterInstance.kt index 97264493b2..808f6742bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IClusterInstance.kt @@ -43,7 +43,8 @@ public interface IClusterInstance { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IClusterInstance, - ) : CdkObject(cdkObject), IClusterInstance { + ) : CdkObject(cdkObject), + IClusterInstance { /** * Create the database instance within the provided cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseCluster.kt index f55bbf57f7..8d15a3b40f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseCluster.kt @@ -543,7 +543,8 @@ public interface IDatabaseCluster : IResource, IConnectable, ISecretAttachmentTa private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IDatabaseCluster, - ) : CdkObject(cdkObject), IDatabaseCluster { + ) : CdkObject(cdkObject), + IDatabaseCluster { /** * Add a new db proxy to this cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseInstance.kt index ed5de5d965..3a40d07298 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseInstance.kt @@ -341,7 +341,8 @@ public interface IDatabaseInstance : IResource, IConnectable, ISecretAttachmentT private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IDatabaseInstance, - ) : CdkObject(cdkObject), IDatabaseInstance { + ) : CdkObject(cdkObject), + IDatabaseInstance { /** * Add a new db proxy to this instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseProxy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseProxy.kt index 08ca2c4a16..2e87719a17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseProxy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IDatabaseProxy.kt @@ -56,7 +56,8 @@ public interface IDatabaseProxy : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IDatabaseProxy, - ) : CdkObject(cdkObject), IDatabaseProxy { + ) : CdkObject(cdkObject), + IDatabaseProxy { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IEngine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IEngine.kt index c95f672a7f..fc3ea0a854 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IEngine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IEngine.kt @@ -60,7 +60,8 @@ public interface IEngine { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IEngine, - ) : CdkObject(cdkObject), IEngine { + ) : CdkObject(cdkObject), + IEngine { /** * The default name of the master database user if one was not provided explicitly. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IInstanceEngine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IInstanceEngine.kt index e32da68bcb..e1834723a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IInstanceEngine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IInstanceEngine.kt @@ -54,7 +54,8 @@ public interface IInstanceEngine : IEngine { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IInstanceEngine, - ) : CdkObject(cdkObject), IInstanceEngine { + ) : CdkObject(cdkObject), + IInstanceEngine { /** * Method called when the engine is used to create a new instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IOptionGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IOptionGroup.kt index 5ee7b345e0..9895b1c4d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IOptionGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IOptionGroup.kt @@ -47,7 +47,8 @@ public interface IOptionGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IOptionGroup, - ) : CdkObject(cdkObject), IOptionGroup { + ) : CdkObject(cdkObject), + IOptionGroup { /** * Adds a configuration to this OptionGroup. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IParameterGroup.kt index faaf93a8ab..000fcfaf59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IParameterGroup.kt @@ -72,7 +72,8 @@ public interface IParameterGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IParameterGroup, - ) : CdkObject(cdkObject), IParameterGroup { + ) : CdkObject(cdkObject), + IParameterGroup { /** * Adds a parameter to this group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IServerlessCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IServerlessCluster.kt index 17a138a96a..f6b4bb0798 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IServerlessCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/IServerlessCluster.kt @@ -50,7 +50,8 @@ public interface IServerlessCluster : IResource, IConnectable, ISecretAttachment private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.IServerlessCluster, - ) : CdkObject(cdkObject), IServerlessCluster { + ) : CdkObject(cdkObject), + IServerlessCluster { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ISubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ISubnetGroup.kt index 478954cfa7..511cef43fc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ISubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ISubnetGroup.kt @@ -22,7 +22,8 @@ public interface ISubnetGroup : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ISubnetGroup, - ) : CdkObject(cdkObject), ISubnetGroup { + ) : CdkObject(cdkObject), + ISubnetGroup { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineBindOptions.kt index e0841e7dcc..e694c1fccc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineBindOptions.kt @@ -142,7 +142,8 @@ public interface InstanceEngineBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.InstanceEngineBindOptions, - ) : CdkObject(cdkObject), InstanceEngineBindOptions { + ) : CdkObject(cdkObject), + InstanceEngineBindOptions { /** * The Active Directory directory ID to create the DB instance in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineConfig.kt index 17d93caa77..482df9a918 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineConfig.kt @@ -100,7 +100,8 @@ public interface InstanceEngineConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.InstanceEngineConfig, - ) : CdkObject(cdkObject), InstanceEngineConfig { + ) : CdkObject(cdkObject), + InstanceEngineConfig { /** * Features supported by the database engine. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineFeatures.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineFeatures.kt index 2cc73b348c..d5f232aa35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineFeatures.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceEngineFeatures.kt @@ -84,7 +84,8 @@ public interface InstanceEngineFeatures { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.InstanceEngineFeatures, - ) : CdkObject(cdkObject), InstanceEngineFeatures { + ) : CdkObject(cdkObject), + InstanceEngineFeatures { /** * Feature name for the DB instance that the IAM role to export to S3 bucket is to be associated * with. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceProps.kt index 7a07d43134..d44598708e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/InstanceProps.kt @@ -393,7 +393,8 @@ public interface InstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.InstanceProps, - ) : CdkObject(cdkObject), InstanceProps { + ) : CdkObject(cdkObject), + InstanceProps { /** * Whether to allow upgrade of major version for the DB instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbEngineVersion.kt index eb0bc93e25..5591620f1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbEngineVersion.kt @@ -47,6 +47,12 @@ public open class MariaDbEngineVersion( public val VER_10_11_7: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_11_7) + public val VER_10_11_8: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_11_8) + + public val VER_10_11_9: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_11_9) + public val VER_10_2: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_2) @@ -170,6 +176,9 @@ public open class MariaDbEngineVersion( public val VER_10_4_33: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_4_33) + public val VER_10_4_34: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_4_34) + public val VER_10_4_8: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_4_8) @@ -212,6 +221,12 @@ public open class MariaDbEngineVersion( public val VER_10_5_24: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_5_24) + public val VER_10_5_25: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_5_25) + + public val VER_10_5_26: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_5_26) + public val VER_10_5_8: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_5_8) @@ -245,6 +260,12 @@ public open class MariaDbEngineVersion( public val VER_10_6_17: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_6_17) + public val VER_10_6_18: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_6_18) + + public val VER_10_6_19: MariaDbEngineVersion = + MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_6_19) + public val VER_10_6_5: MariaDbEngineVersion = MariaDbEngineVersion.wrap(software.amazon.awscdk.services.rds.MariaDbEngineVersion.VER_10_6_5) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbInstanceEngineProps.kt index 18e32cb09d..41918276ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MariaDbInstanceEngineProps.kt @@ -58,7 +58,8 @@ public interface MariaDbInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.MariaDbInstanceEngineProps, - ) : CdkObject(cdkObject), MariaDbInstanceEngineProps { + ) : CdkObject(cdkObject), + MariaDbInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MySqlInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MySqlInstanceEngineProps.kt index d001697c01..28fba45312 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MySqlInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MySqlInstanceEngineProps.kt @@ -65,7 +65,8 @@ public interface MySqlInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.MySqlInstanceEngineProps, - ) : CdkObject(cdkObject), MySqlInstanceEngineProps { + ) : CdkObject(cdkObject), + MySqlInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MysqlEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MysqlEngineVersion.kt index 3cfea14cce..ebae57a305 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MysqlEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/MysqlEngineVersion.kt @@ -119,6 +119,15 @@ public open class MysqlEngineVersion( public val VER_5_7_44: MysqlEngineVersion = MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_5_7_44) + public val VER_5_7_44_RDS_20240408: MysqlEngineVersion = + MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_5_7_44_RDS_20240408) + + public val VER_5_7_44_RDS_20240529: MysqlEngineVersion = + MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_5_7_44_RDS_20240529) + + public val VER_5_7_44_RDS_20240808: MysqlEngineVersion = + MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_5_7_44_RDS_20240808) + public val VER_8_0: MysqlEngineVersion = MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_8_0) @@ -185,6 +194,12 @@ public open class MysqlEngineVersion( public val VER_8_0_36: MysqlEngineVersion = MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_8_0_36) + public val VER_8_0_37: MysqlEngineVersion = + MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_8_0_37) + + public val VER_8_0_39: MysqlEngineVersion = + MysqlEngineVersion.wrap(software.amazon.awscdk.services.rds.MysqlEngineVersion.VER_8_0_39) + public fun of(mysqlFullVersion: String, mysqlMajorVersion: String): MysqlEngineVersion = software.amazon.awscdk.services.rds.MysqlEngineVersion.of(mysqlFullVersion, mysqlMajorVersion).let(MysqlEngineVersion::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionConfiguration.kt index 0a4a2c9258..d023a509b0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionConfiguration.kt @@ -201,7 +201,8 @@ public interface OptionConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OptionConfiguration, - ) : CdkObject(cdkObject), OptionConfiguration { + ) : CdkObject(cdkObject), + OptionConfiguration { /** * The name of the option. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroup.kt index fc382bfd5a..23c6258383 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroup.kt @@ -86,7 +86,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class OptionGroup( cdkObject: software.amazon.awscdk.services.rds.OptionGroup, -) : Resource(cdkObject), IOptionGroup { +) : Resource(cdkObject), + IOptionGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroupProps.kt index 47b2eae107..ae92755bff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OptionGroupProps.kt @@ -159,7 +159,8 @@ public interface OptionGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OptionGroupProps, - ) : CdkObject(cdkObject), OptionGroupProps { + ) : CdkObject(cdkObject), + OptionGroupProps { /** * The configurations for this option group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeCdbInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeCdbInstanceEngineProps.kt index 818e3f1862..4e8a62cd90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeCdbInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeCdbInstanceEngineProps.kt @@ -60,7 +60,8 @@ public interface OracleEeCdbInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OracleEeCdbInstanceEngineProps, - ) : CdkObject(cdkObject), OracleEeCdbInstanceEngineProps { + ) : CdkObject(cdkObject), + OracleEeCdbInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeInstanceEngineProps.kt index 8a8ee22d31..06032cecf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEeInstanceEngineProps.kt @@ -58,7 +58,8 @@ public interface OracleEeInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OracleEeInstanceEngineProps, - ) : CdkObject(cdkObject), OracleEeInstanceEngineProps { + ) : CdkObject(cdkObject), + OracleEeInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEngineVersion.kt index 551835905b..2cba3e29e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleEngineVersion.kt @@ -274,6 +274,9 @@ public open class OracleEngineVersion( public val VER_19_0_0_0_2024_01_R1: OracleEngineVersion = OracleEngineVersion.wrap(software.amazon.awscdk.services.rds.OracleEngineVersion.VER_19_0_0_0_2024_01_R1) + public val VER_19_0_0_0_2024_04_R1: OracleEngineVersion = + OracleEngineVersion.wrap(software.amazon.awscdk.services.rds.OracleEngineVersion.VER_19_0_0_0_2024_04_R1) + public val VER_21: OracleEngineVersion = OracleEngineVersion.wrap(software.amazon.awscdk.services.rds.OracleEngineVersion.VER_21) @@ -307,6 +310,9 @@ public open class OracleEngineVersion( public val VER_21_0_0_0_2024_01_R1: OracleEngineVersion = OracleEngineVersion.wrap(software.amazon.awscdk.services.rds.OracleEngineVersion.VER_21_0_0_0_2024_01_R1) + public val VER_21_0_0_0_2024_04_R1: OracleEngineVersion = + OracleEngineVersion.wrap(software.amazon.awscdk.services.rds.OracleEngineVersion.VER_21_0_0_0_2024_04_R1) + public fun of(oracleFullVersion: String, oracleMajorVersion: String): OracleEngineVersion = software.amazon.awscdk.services.rds.OracleEngineVersion.of(oracleFullVersion, oracleMajorVersion).let(OracleEngineVersion::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2CdbInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2CdbInstanceEngineProps.kt index 5fc8276a13..b5ffd6030e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2CdbInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2CdbInstanceEngineProps.kt @@ -60,7 +60,8 @@ public interface OracleSe2CdbInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OracleSe2CdbInstanceEngineProps, - ) : CdkObject(cdkObject), OracleSe2CdbInstanceEngineProps { + ) : CdkObject(cdkObject), + OracleSe2CdbInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2InstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2InstanceEngineProps.kt index 712031cd52..6f4a648464 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2InstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/OracleSe2InstanceEngineProps.kt @@ -63,7 +63,8 @@ public interface OracleSe2InstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.OracleSe2InstanceEngineProps, - ) : CdkObject(cdkObject), OracleSe2InstanceEngineProps { + ) : CdkObject(cdkObject), + OracleSe2InstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroup.kt index 1d7594d767..3ac8ff009f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroup.kt @@ -55,7 +55,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ParameterGroup( cdkObject: software.amazon.awscdk.services.rds.ParameterGroup, -) : Resource(cdkObject), IParameterGroup { +) : Resource(cdkObject), + IParameterGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterBindOptions.kt index 73c01d7f0b..0c83055693 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterBindOptions.kt @@ -38,7 +38,8 @@ public interface ParameterGroupClusterBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ParameterGroupClusterBindOptions, - ) : CdkObject(cdkObject), ParameterGroupClusterBindOptions + ) : CdkObject(cdkObject), + ParameterGroupClusterBindOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): ParameterGroupClusterBindOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterConfig.kt index 8dfb16aa0e..2051615450 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupClusterConfig.kt @@ -56,7 +56,8 @@ public interface ParameterGroupClusterConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ParameterGroupClusterConfig, - ) : CdkObject(cdkObject), ParameterGroupClusterConfig { + ) : CdkObject(cdkObject), + ParameterGroupClusterConfig { /** * The name of this parameter group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceBindOptions.kt index 231d31d08d..32dab8d2d2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceBindOptions.kt @@ -38,7 +38,8 @@ public interface ParameterGroupInstanceBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ParameterGroupInstanceBindOptions, - ) : CdkObject(cdkObject), ParameterGroupInstanceBindOptions + ) : CdkObject(cdkObject), + ParameterGroupInstanceBindOptions public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): ParameterGroupInstanceBindOptions { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceConfig.kt index 454d5f54a9..501405fd5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupInstanceConfig.kt @@ -57,7 +57,8 @@ public interface ParameterGroupInstanceConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ParameterGroupInstanceConfig, - ) : CdkObject(cdkObject), ParameterGroupInstanceConfig { + ) : CdkObject(cdkObject), + ParameterGroupInstanceConfig { /** * The name of this parameter group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupProps.kt index 971081cfe8..2a35abc24c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ParameterGroupProps.kt @@ -193,7 +193,8 @@ public interface ParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ParameterGroupProps, - ) : CdkObject(cdkObject), ParameterGroupProps { + ) : CdkObject(cdkObject), + ParameterGroupProps { /** * Description for this parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineFeatures.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineFeatures.kt index 43fa0b655d..387e4a87c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineFeatures.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineFeatures.kt @@ -82,7 +82,8 @@ public interface PostgresEngineFeatures { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.PostgresEngineFeatures, - ) : CdkObject(cdkObject), PostgresEngineFeatures { + ) : CdkObject(cdkObject), + PostgresEngineFeatures { /** * Whether this version of the Postgres engine supports the S3 data export feature. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineVersion.kt index c95a93d8ce..df8ccd7cc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresEngineVersion.kt @@ -16,7 +16,7 @@ import kotlin.jvm.JvmName * ``` * Vpc vpc; * IInstanceEngine engine = - * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build()); + * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); * Key myKey = new Key(this, "MyKey"); * DatabaseInstance.Builder.create(this, "InstanceWithCustomizedSecret") * .engine(engine) @@ -159,6 +159,15 @@ public open class PostgresEngineVersion( public val VER_11_22: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_11_22) + public val VER_11_22_RDS_20240418: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_11_22_RDS_20240418) + + public val VER_11_22_RDS_20240509: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_11_22_RDS_20240509) + + public val VER_11_22_RDS_20240808: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_11_22_RDS_20240808) + public val VER_11_4: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_11_4) @@ -207,9 +216,15 @@ public open class PostgresEngineVersion( public val VER_12_18: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_12_18) + public val VER_12_19: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_12_19) + public val VER_12_2: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_12_2) + public val VER_12_20: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_12_20) + public val VER_12_3: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_12_3) @@ -252,6 +267,12 @@ public open class PostgresEngineVersion( public val VER_13_14: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_13_14) + public val VER_13_15: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_13_15) + + public val VER_13_16: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_13_16) + public val VER_13_2: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_13_2) @@ -288,6 +309,12 @@ public open class PostgresEngineVersion( public val VER_14_11: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_14_11) + public val VER_14_12: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_14_12) + + public val VER_14_13: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_14_13) + public val VER_14_2: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_14_2) @@ -330,6 +357,12 @@ public open class PostgresEngineVersion( public val VER_15_6: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_15_6) + public val VER_15_7: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_15_7) + + public val VER_15_8: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_15_8) + public val VER_16: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_16) @@ -339,6 +372,12 @@ public open class PostgresEngineVersion( public val VER_16_2: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_16_2) + public val VER_16_3: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_16_3) + + public val VER_16_4: PostgresEngineVersion = + PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_16_4) + public val VER_9_6_24: PostgresEngineVersion = PostgresEngineVersion.wrap(software.amazon.awscdk.services.rds.PostgresEngineVersion.VER_9_6_24) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresInstanceEngineProps.kt index 668f2d46f5..1c35824dbd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/PostgresInstanceEngineProps.kt @@ -17,7 +17,7 @@ import kotlin.Unit * ``` * Vpc vpc; * IInstanceEngine engine = - * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build()); + * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); * Key myKey = new Key(this, "MyKey"); * DatabaseInstance.Builder.create(this, "InstanceWithCustomizedSecret") * .engine(engine) @@ -66,7 +66,8 @@ public interface PostgresInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.PostgresInstanceEngineProps, - ) : CdkObject(cdkObject), PostgresInstanceEngineProps { + ) : CdkObject(cdkObject), + PostgresInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProcessorFeatures.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProcessorFeatures.kt index 1d856486c7..d587cffb6e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProcessorFeatures.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProcessorFeatures.kt @@ -77,7 +77,8 @@ public interface ProcessorFeatures { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ProcessorFeatures, - ) : CdkObject(cdkObject), ProcessorFeatures { + ) : CdkObject(cdkObject), + ProcessorFeatures { /** * The number of CPU core. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProvisionedClusterInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProvisionedClusterInstanceProps.kt index c11f757055..27526d71fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProvisionedClusterInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProvisionedClusterInstanceProps.kt @@ -284,7 +284,8 @@ public interface ProvisionedClusterInstanceProps : ClusterInstanceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ProvisionedClusterInstanceProps, - ) : CdkObject(cdkObject), ProvisionedClusterInstanceProps { + ) : CdkObject(cdkObject), + ProvisionedClusterInstanceProps { /** * Whether to allow upgrade of major version for the DB instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProxyTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProxyTargetConfig.kt index c5085f53e4..e94352cb63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProxyTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ProxyTargetConfig.kt @@ -137,7 +137,8 @@ public interface ProxyTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ProxyTargetConfig, - ) : CdkObject(cdkObject), ProxyTargetConfig { + ) : CdkObject(cdkObject), + ProxyTargetConfig { /** * The database clusters to which this proxy connects. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationMultiUserOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationMultiUserOptions.kt index 837c95f244..bb47a4a760 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationMultiUserOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationMultiUserOptions.kt @@ -204,7 +204,8 @@ public interface RotationMultiUserOptions : CommonRotationUserOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.RotationMultiUserOptions, - ) : CdkObject(cdkObject), RotationMultiUserOptions { + ) : CdkObject(cdkObject), + RotationMultiUserOptions { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationSingleUserOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationSingleUserOptions.kt index 746b56a700..d6f209f21c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationSingleUserOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/RotationSingleUserOptions.kt @@ -147,7 +147,8 @@ public interface RotationSingleUserOptions : CommonRotationUserOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.RotationSingleUserOptions, - ) : CdkObject(cdkObject), RotationSingleUserOptions { + ) : CdkObject(cdkObject), + RotationSingleUserOptions { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessCluster.kt index 9f90030e59..9a9c328f7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessCluster.kt @@ -25,7 +25,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Create an Aurora Serverless Cluster. + * Create an Aurora Serverless v1 Cluster. * * Example: * @@ -71,7 +71,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ServerlessCluster( cdkObject: software.amazon.awscdk.services.rds.ServerlessCluster, -) : Resource(cdkObject), IServerlessCluster { +) : Resource(cdkObject), + IServerlessCluster { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -353,11 +354,11 @@ public open class ServerlessCluster( public fun subnetGroup(subnetGroup: ISubnetGroup) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used * - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ public fun vpc(vpc: IVpc) @@ -587,11 +588,11 @@ public open class ServerlessCluster( } /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used * - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ override fun vpc(vpc: IVpc) { cdkBuilder.vpc(vpc.let(IVpc.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterAttributes.kt index 15e496c360..8f54c77fb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterAttributes.kt @@ -177,7 +177,8 @@ public interface ServerlessClusterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ServerlessClusterAttributes, - ) : CdkObject(cdkObject), ServerlessClusterAttributes { + ) : CdkObject(cdkObject), + ServerlessClusterAttributes { /** * Cluster endpoint address. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshot.kt index 7fe4b1fa48..5b049fcc8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshot.kt @@ -23,7 +23,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * A Aurora Serverless Cluster restored from a snapshot. + * A Aurora Serverless v1 Cluster restored from a snapshot. * * Example: * @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ServerlessClusterFromSnapshot( cdkObject: software.amazon.awscdk.services.rds.ServerlessClusterFromSnapshot, -) : Resource(cdkObject), IServerlessCluster { +) : Resource(cdkObject), + IServerlessCluster { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -278,11 +279,11 @@ public open class ServerlessClusterFromSnapshot( public fun subnetGroup(subnetGroup: ISubnetGroup) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used * - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ public fun vpc(vpc: IVpc) @@ -519,11 +520,11 @@ public open class ServerlessClusterFromSnapshot( } /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used * - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ override fun vpc(vpc: IVpc) { cdkBuilder.vpc(vpc.let(IVpc.Companion::unwrap)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshotProps.kt index 375b013c9a..44c7684e98 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterFromSnapshotProps.kt @@ -149,7 +149,7 @@ public interface ServerlessClusterFromSnapshotProps { public fun subnetGroup(): ISubnetGroup? = unwrap(this).getSubnetGroup()?.let(ISubnetGroup::wrap) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used */ @@ -264,7 +264,7 @@ public interface ServerlessClusterFromSnapshotProps { public fun subnetGroup(subnetGroup: ISubnetGroup) /** - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ public fun vpc(vpc: IVpc) @@ -412,7 +412,7 @@ public interface ServerlessClusterFromSnapshotProps { } /** - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ override fun vpc(vpc: IVpc) { cdkBuilder.vpc(vpc.let(IVpc.Companion::unwrap)) @@ -441,7 +441,8 @@ public interface ServerlessClusterFromSnapshotProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ServerlessClusterFromSnapshotProps, - ) : CdkObject(cdkObject), ServerlessClusterFromSnapshotProps { + ) : CdkObject(cdkObject), + ServerlessClusterFromSnapshotProps { /** * The number of days during which automatic DB snapshots are retained. * @@ -564,7 +565,7 @@ public interface ServerlessClusterFromSnapshotProps { unwrap(this).getSubnetGroup()?.let(ISubnetGroup::wrap) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterProps.kt index d20128d65e..f659ba586f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessClusterProps.kt @@ -18,7 +18,7 @@ import kotlin.collections.List import kotlin.jvm.JvmName /** - * Properties for a new Aurora Serverless Cluster. + * Properties for a new Aurora Serverless v1 Cluster. * * Example: * @@ -176,7 +176,7 @@ public interface ServerlessClusterProps { public fun subnetGroup(): ISubnetGroup? = unwrap(this).getSubnetGroup()?.let(ISubnetGroup::wrap) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used */ @@ -285,7 +285,7 @@ public interface ServerlessClusterProps { public fun subnetGroup(subnetGroup: ISubnetGroup) /** - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ public fun vpc(vpc: IVpc) @@ -426,7 +426,7 @@ public interface ServerlessClusterProps { } /** - * @param vpc The VPC that this Aurora Serverless cluster has been created in. + * @param vpc The VPC that this Aurora Serverless v1 Cluster has been created in. */ override fun vpc(vpc: IVpc) { cdkBuilder.vpc(vpc.let(IVpc.Companion::unwrap)) @@ -455,7 +455,8 @@ public interface ServerlessClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ServerlessClusterProps, - ) : CdkObject(cdkObject), ServerlessClusterProps { + ) : CdkObject(cdkObject), + ServerlessClusterProps { /** * The number of days during which automatic DB snapshots are retained. * @@ -573,7 +574,7 @@ public interface ServerlessClusterProps { unwrap(this).getSubnetGroup()?.let(ISubnetGroup::wrap) /** - * The VPC that this Aurora Serverless cluster has been created in. + * The VPC that this Aurora Serverless v1 Cluster has been created in. * * Default: - the default VPC in the account and region will be used */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessScalingOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessScalingOptions.kt index ac67bd745d..3e7da1e090 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessScalingOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessScalingOptions.kt @@ -9,7 +9,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Unit /** - * Options for configuring scaling on an Aurora Serverless cluster. + * Options for configuring scaling on an Aurora Serverless v1 Cluster. * * Example: * @@ -188,7 +188,8 @@ public interface ServerlessScalingOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ServerlessScalingOptions, - ) : CdkObject(cdkObject), ServerlessScalingOptions { + ) : CdkObject(cdkObject), + ServerlessScalingOptions { /** * The time before an Aurora Serverless database cluster is paused. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessV2ClusterInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessV2ClusterInstanceProps.kt index 6c2dc18380..dd29a14d7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessV2ClusterInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/ServerlessV2ClusterInstanceProps.kt @@ -274,7 +274,8 @@ public interface ServerlessV2ClusterInstanceProps : ClusterInstanceOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.ServerlessV2ClusterInstanceProps, - ) : CdkObject(cdkObject), ServerlessV2ClusterInstanceProps { + ) : CdkObject(cdkObject), + ServerlessV2ClusterInstanceProps { /** * Whether to allow upgrade of major version for the DB instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentials.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentials.kt index f085bb5a42..e07daebb33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentials.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentials.kt @@ -22,7 +22,7 @@ import kotlin.jvm.JvmName * ``` * Vpc vpc; * IInstanceEngine engine = - * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build()); + * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); * Key myKey = new Key(this, "MyKey"); * DatabaseInstanceFromSnapshot.Builder.create(this, "InstanceFromSnapshotWithCustomizedSecret") * .engine(engine) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentialsFromGeneratedPasswordOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentialsFromGeneratedPasswordOptions.kt index f5e04754a4..5ed1dad87a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentialsFromGeneratedPasswordOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SnapshotCredentialsFromGeneratedPasswordOptions.kt @@ -19,7 +19,7 @@ import kotlin.collections.List * ``` * Vpc vpc; * IInstanceEngine engine = - * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).build()); + * DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); * Key myKey = new Key(this, "MyKey"); * DatabaseInstanceFromSnapshot.Builder.create(this, "InstanceFromSnapshotWithCustomizedSecret") * .engine(engine) @@ -124,7 +124,8 @@ public interface SnapshotCredentialsFromGeneratedPasswordOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SnapshotCredentialsFromGeneratedPasswordOptions, - ) : CdkObject(cdkObject), SnapshotCredentialsFromGeneratedPasswordOptions { + ) : CdkObject(cdkObject), + SnapshotCredentialsFromGeneratedPasswordOptions { /** * KMS encryption key to encrypt the generated secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEeInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEeInstanceEngineProps.kt index 73787d1d0b..e72a6588bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEeInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEeInstanceEngineProps.kt @@ -66,7 +66,8 @@ public interface SqlServerEeInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SqlServerEeInstanceEngineProps, - ) : CdkObject(cdkObject), SqlServerEeInstanceEngineProps { + ) : CdkObject(cdkObject), + SqlServerEeInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEngineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEngineVersion.kt index 7518beb0e9..9f2fa8aa05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEngineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerEngineVersion.kt @@ -148,6 +148,12 @@ public open class SqlServerEngineVersion( public val VER_13_00_6435_1_V1: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_13_00_6435_1_V1) + public val VER_13_00_6441_1_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_13_00_6441_1_V1) + + public val VER_13_00_6445_1_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_13_00_6445_1_V1) + public val VER_14: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_14) @@ -196,6 +202,12 @@ public open class SqlServerEngineVersion( public val VER_14_00_3465_1_V1: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_14_00_3465_1_V1) + public val VER_14_00_3471_2_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_14_00_3471_2_V1) + + public val VER_14_00_3475_1_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_14_00_3475_1_V1) + public val VER_15: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15) @@ -232,6 +244,21 @@ public open class SqlServerEngineVersion( public val VER_15_00_4355_3_V1: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4355_3_V1) + public val VER_15_00_4365_2_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4365_2_V1) + + public val VER_15_00_4375_4_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4375_4_V1) + + public val VER_15_00_4382_1_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4382_1_V1) + + public val VER_15_00_4385_2_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4385_2_V1) + + public val VER_15_00_4390_2_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_15_00_4390_2_V1) + public val VER_16: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16) @@ -244,6 +271,24 @@ public open class SqlServerEngineVersion( public val VER_16_00_4105_2_V1: SqlServerEngineVersion = SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4105_2_V1) + public val VER_16_00_4115_5_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4115_5_V1) + + public val VER_16_00_4120_1_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4120_1_V1) + + public val VER_16_00_4125_3_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4125_3_V1) + + public val VER_16_00_4131_2_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4131_2_V1) + + public val VER_16_00_4135_4_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4135_4_V1) + + public val VER_16_00_4140_3_V1: SqlServerEngineVersion = + SqlServerEngineVersion.wrap(software.amazon.awscdk.services.rds.SqlServerEngineVersion.VER_16_00_4140_3_V1) + public fun of(sqlServerFullVersion: String, sqlServerMajorVersion: String): SqlServerEngineVersion = software.amazon.awscdk.services.rds.SqlServerEngineVersion.of(sqlServerFullVersion, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerExInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerExInstanceEngineProps.kt index 8ca0d845af..aecbaec907 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerExInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerExInstanceEngineProps.kt @@ -60,7 +60,8 @@ public interface SqlServerExInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SqlServerExInstanceEngineProps, - ) : CdkObject(cdkObject), SqlServerExInstanceEngineProps { + ) : CdkObject(cdkObject), + SqlServerExInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerSeInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerSeInstanceEngineProps.kt index 2fb63bb791..399c97a4b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerSeInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerSeInstanceEngineProps.kt @@ -60,7 +60,8 @@ public interface SqlServerSeInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SqlServerSeInstanceEngineProps, - ) : CdkObject(cdkObject), SqlServerSeInstanceEngineProps { + ) : CdkObject(cdkObject), + SqlServerSeInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerWebInstanceEngineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerWebInstanceEngineProps.kt index d7eaa52e1b..40763f9ca7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerWebInstanceEngineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SqlServerWebInstanceEngineProps.kt @@ -60,7 +60,8 @@ public interface SqlServerWebInstanceEngineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SqlServerWebInstanceEngineProps, - ) : CdkObject(cdkObject), SqlServerWebInstanceEngineProps { + ) : CdkObject(cdkObject), + SqlServerWebInstanceEngineProps { /** * The exact version of the engine to use. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroup.kt index 6a33fd8ca9..f3cb4e630f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroup.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SubnetGroup( cdkObject: software.amazon.awscdk.services.rds.SubnetGroup, -) : Resource(cdkObject), ISubnetGroup { +) : Resource(cdkObject), + ISubnetGroup { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroupProps.kt index 151166a17b..8822d6453a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rds/SubnetGroupProps.kt @@ -170,7 +170,8 @@ public interface SubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rds.SubnetGroupProps, - ) : CdkObject(cdkObject), SubnetGroupProps { + ) : CdkObject(cdkObject), + SubnetGroupProps { /** * Description of the subnet group. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnCluster.kt index 9d3da0641b..6e5ef874f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnCluster.kt @@ -75,12 +75,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .kmsKeyId("kmsKeyId") * .loggingProperties(LoggingPropertiesProperty.builder() * .bucketName("bucketName") + * .logDestinationType("logDestinationType") + * .logExports(List.of("logExports")) * .s3KeyPrefix("s3KeyPrefix") * .build()) * .maintenanceTrackName("maintenanceTrackName") * .manageMasterPassword(false) * .manualSnapshotRetentionPeriod(123) - * .masterPasswordSecretKmsKeyId("masterPasswordSecretKmsKeyId") * .masterUserPassword("masterUserPassword") * .multiAz(false) * .namespaceResourcePolicy(namespaceResourcePolicy) @@ -109,7 +110,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.redshift.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -667,21 +670,6 @@ public open class CfnCluster( unwrap(this).setManualSnapshotRetentionPeriod(`value`) } - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - */ - public open fun masterPasswordSecretKmsKeyId(): String? = - unwrap(this).getMasterPasswordSecretKmsKeyId() - - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - */ - public open fun masterPasswordSecretKmsKeyId(`value`: String) { - unwrap(this).setMasterPasswordSecretKmsKeyId(`value`) - } - /** * The password associated with the admin user account for the cluster that is being created. */ @@ -1545,18 +1533,6 @@ public open class CfnCluster( */ public fun manualSnapshotRetentionPeriod(manualSnapshotRetentionPeriod: Number) - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - * - * You can only use this parameter if `ManageMasterPassword` is true. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masterpasswordsecretkmskeyid) - * @param masterPasswordSecretKmsKeyId The ID of the AWS Key Management Service (KMS) key used - * to encrypt and store the cluster's admin credentials secret. - */ - public fun masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId: String) - /** * The password associated with the admin user account for the cluster that is being created. * @@ -1636,8 +1612,7 @@ public open class CfnCluster( * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype) * @param nodeType The node type to be provisioned for the cluster. @@ -1688,7 +1663,7 @@ public open class CfnCluster( * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-port) * @param port The port number on which the cluster accepts incoming connections. @@ -2537,20 +2512,6 @@ public open class CfnCluster( cdkBuilder.manualSnapshotRetentionPeriod(manualSnapshotRetentionPeriod) } - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - * - * You can only use this parameter if `ManageMasterPassword` is true. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masterpasswordsecretkmskeyid) - * @param masterPasswordSecretKmsKeyId The ID of the AWS Key Management Service (KMS) key used - * to encrypt and store the cluster's admin credentials secret. - */ - override fun masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId: String) { - cdkBuilder.masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId) - } - /** * The password associated with the admin user account for the cluster that is being created. * @@ -2640,8 +2601,7 @@ public open class CfnCluster( * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype) * @param nodeType The node type to be provisioned for the cluster. @@ -2698,7 +2658,7 @@ public open class CfnCluster( * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-port) * @param port The port number on which the cluster accepts incoming connections. @@ -3031,7 +2991,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnCluster.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * The DNS address of the cluster. * @@ -3081,6 +3042,8 @@ public open class CfnCluster( * import io.cloudshiftdev.awscdk.services.redshift.*; * LoggingPropertiesProperty loggingPropertiesProperty = LoggingPropertiesProperty.builder() * .bucketName("bucketName") + * .logDestinationType("logDestinationType") + * .logExports(List.of("logExports")) * .s3KeyPrefix("s3KeyPrefix") * .build(); * ``` @@ -3100,6 +3063,24 @@ public open class CfnCluster( */ public fun bucketName(): String? = unwrap(this).getBucketName() + /** + * The log destination type. + * + * An enum with possible values of `s3` and `cloudwatch` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-logdestinationtype) + */ + public fun logDestinationType(): String? = unwrap(this).getLogDestinationType() + + /** + * The collection of exported log types. + * + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-logexports) + */ + public fun logExports(): List = unwrap(this).getLogExports() ?: emptyList() + /** * The prefix applied to the log file names. * @@ -3132,6 +3113,24 @@ public open class CfnCluster( */ public fun bucketName(bucketName: String) + /** + * @param logDestinationType The log destination type. + * An enum with possible values of `s3` and `cloudwatch` . + */ + public fun logDestinationType(logDestinationType: String) + + /** + * @param logExports The collection of exported log types. + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + */ + public fun logExports(logExports: List) + + /** + * @param logExports The collection of exported log types. + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + */ + public fun logExports(vararg logExports: String) + /** * @param s3KeyPrefix The prefix applied to the log file names. * Constraints: @@ -3164,6 +3163,28 @@ public open class CfnCluster( cdkBuilder.bucketName(bucketName) } + /** + * @param logDestinationType The log destination type. + * An enum with possible values of `s3` and `cloudwatch` . + */ + override fun logDestinationType(logDestinationType: String) { + cdkBuilder.logDestinationType(logDestinationType) + } + + /** + * @param logExports The collection of exported log types. + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + */ + override fun logExports(logExports: List) { + cdkBuilder.logExports(logExports) + } + + /** + * @param logExports The collection of exported log types. + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + */ + override fun logExports(vararg logExports: String): Unit = logExports(logExports.toList()) + /** * @param s3KeyPrefix The prefix applied to the log file names. * Constraints: @@ -3188,7 +3209,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnCluster.LoggingPropertiesProperty, - ) : CdkObject(cdkObject), LoggingPropertiesProperty { + ) : CdkObject(cdkObject), + LoggingPropertiesProperty { /** * The name of an existing S3 bucket where the log files are to be stored. * @@ -3201,6 +3223,24 @@ public open class CfnCluster( */ override fun bucketName(): String? = unwrap(this).getBucketName() + /** + * The log destination type. + * + * An enum with possible values of `s3` and `cloudwatch` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-logdestinationtype) + */ + override fun logDestinationType(): String? = unwrap(this).getLogDestinationType() + + /** + * The collection of exported log types. + * + * Possible values are `connectionlog` , `useractivitylog` , and `userlog` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-logexports) + */ + override fun logExports(): List = unwrap(this).getLogExports() ?: emptyList() + /** * The prefix applied to the log file names. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroup.kt index 5d61db13d4..d9e33f0d56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroup.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterParameterGroup( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterParameterGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -489,7 +491,8 @@ public open class CfnClusterParameterGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterParameterGroup.ParameterProperty, - ) : CdkObject(cdkObject), ParameterProperty { + ) : CdkObject(cdkObject), + ParameterProperty { /** * The name of the parameter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroupProps.kt index 0b035656d1..ff0309f233 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterParameterGroupProps.kt @@ -241,7 +241,8 @@ public interface CfnClusterParameterGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterParameterGroupProps, - ) : CdkObject(cdkObject), CfnClusterParameterGroupProps { + ) : CdkObject(cdkObject), + CfnClusterParameterGroupProps { /** * The description of the parameter group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterProps.kt index a082aec9c6..7a36ad4a10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterProps.kt @@ -61,12 +61,13 @@ import kotlin.jvm.JvmName * .kmsKeyId("kmsKeyId") * .loggingProperties(LoggingPropertiesProperty.builder() * .bucketName("bucketName") + * .logDestinationType("logDestinationType") + * .logExports(List.of("logExports")) * .s3KeyPrefix("s3KeyPrefix") * .build()) * .maintenanceTrackName("maintenanceTrackName") * .manageMasterPassword(false) * .manualSnapshotRetentionPeriod(123) - * .masterPasswordSecretKmsKeyId("masterPasswordSecretKmsKeyId") * .masterUserPassword("masterUserPassword") * .multiAz(false) * .namespaceResourcePolicy(namespaceResourcePolicy) @@ -450,17 +451,6 @@ public interface CfnClusterProps { public fun manualSnapshotRetentionPeriod(): Number? = unwrap(this).getManualSnapshotRetentionPeriod() - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - * - * You can only use this parameter if `ManageMasterPassword` is true. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masterpasswordsecretkmskeyid) - */ - public fun masterPasswordSecretKmsKeyId(): String? = - unwrap(this).getMasterPasswordSecretKmsKeyId() - /** * The password associated with the admin user account for the cluster that is being created. * @@ -521,8 +511,7 @@ public interface CfnClusterProps { * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype) */ @@ -570,7 +559,7 @@ public interface CfnClusterProps { * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-port) */ @@ -1097,13 +1086,6 @@ public interface CfnClusterProps { */ public fun manualSnapshotRetentionPeriod(manualSnapshotRetentionPeriod: Number) - /** - * @param masterPasswordSecretKmsKeyId The ID of the AWS Key Management Service (KMS) key used - * to encrypt and store the cluster's admin credentials secret. - * You can only use this parameter if `ManageMasterPassword` is true. - */ - public fun masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId: String) - /** * @param masterUserPassword The password associated with the admin user account for the cluster * that is being created. @@ -1161,8 +1143,7 @@ public interface CfnClusterProps { * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` */ public fun nodeType(nodeType: String) @@ -1201,7 +1182,7 @@ public interface CfnClusterProps { * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . */ public fun port(port: Number) @@ -1810,15 +1791,6 @@ public interface CfnClusterProps { cdkBuilder.manualSnapshotRetentionPeriod(manualSnapshotRetentionPeriod) } - /** - * @param masterPasswordSecretKmsKeyId The ID of the AWS Key Management Service (KMS) key used - * to encrypt and store the cluster's admin credentials secret. - * You can only use this parameter if `ManageMasterPassword` is true. - */ - override fun masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId: String) { - cdkBuilder.masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId) - } - /** * @param masterUserPassword The password associated with the admin user account for the cluster * that is being created. @@ -1886,8 +1858,7 @@ public interface CfnClusterProps { * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` */ override fun nodeType(nodeType: String) { cdkBuilder.nodeType(nodeType) @@ -1932,7 +1903,7 @@ public interface CfnClusterProps { * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . */ override fun port(port: Number) { cdkBuilder.port(port) @@ -2103,7 +2074,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * If `true` , major version upgrades can be applied during the maintenance window to the Amazon * Redshift engine that is running on the cluster. @@ -2464,17 +2436,6 @@ public interface CfnClusterProps { override fun manualSnapshotRetentionPeriod(): Number? = unwrap(this).getManualSnapshotRetentionPeriod() - /** - * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the cluster's - * admin credentials secret. - * - * You can only use this parameter if `ManageMasterPassword` is true. - * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-masterpasswordsecretkmskeyid) - */ - override fun masterPasswordSecretKmsKeyId(): String? = - unwrap(this).getMasterPasswordSecretKmsKeyId() - /** * The password associated with the admin user account for the cluster that is being created. * @@ -2535,8 +2496,7 @@ public interface CfnClusterProps { * Clusters](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) * in the *Amazon Redshift Cluster Management Guide* . * - * Valid Values: `ds2.xlarge` | `ds2.8xlarge` | `dc1.large` | `dc1.8xlarge` | `dc2.large` | - * `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` + * Valid Values: `dc2.large` | `dc2.8xlarge` | `ra3.xlplus` | `ra3.4xlarge` | `ra3.16xlarge` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype) */ @@ -2584,7 +2544,7 @@ public interface CfnClusterProps { * * For clusters with ra3 nodes - Select a port within the ranges `5431-5455` or `8191-8215` . * (If you have an existing cluster with ra3 nodes, it isn't required that you change the port to * these ranges.) - * * For clusters with ds2 or dc2 nodes - Select a port within the range `1150-65535` . + * * For clusters with dc2 nodes - Select a port within the range `1150-65535` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-port) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroup.kt index cb93b9ecf3..8e36de3ef0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroup.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterSecurityGroup( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSecurityGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngress.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngress.kt index 05f81d71a2..27efdf94d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngress.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngress.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterSecurityGroupIngress( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSecurityGroupIngress, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngressProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngressProps.kt index 87f25ad6e3..ffb6fa6940 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngressProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupIngressProps.kt @@ -149,7 +149,8 @@ public interface CfnClusterSecurityGroupIngressProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSecurityGroupIngressProps, - ) : CdkObject(cdkObject), CfnClusterSecurityGroupIngressProps { + ) : CdkObject(cdkObject), + CfnClusterSecurityGroupIngressProps { /** * The IP range to be added the Amazon Redshift security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupProps.kt index a950b092b5..49c4ed0eb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSecurityGroupProps.kt @@ -108,7 +108,8 @@ public interface CfnClusterSecurityGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSecurityGroupProps, - ) : CdkObject(cdkObject), CfnClusterSecurityGroupProps { + ) : CdkObject(cdkObject), + CfnClusterSecurityGroupProps { /** * A description for the security group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroup.kt index 54494f57b8..ce1bd6e378 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroup.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnClusterSubnetGroup( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSubnetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroupProps.kt index ea297c5d8a..c6f5e0a795 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnClusterSubnetGroupProps.kt @@ -143,7 +143,8 @@ public interface CfnClusterSubnetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnClusterSubnetGroupProps, - ) : CdkObject(cdkObject), CfnClusterSubnetGroupProps { + ) : CdkObject(cdkObject), + CfnClusterSubnetGroupProps { /** * A description for the subnet group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccess.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccess.kt index 7256a805eb..65e8609142 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccess.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccess.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpointAccess( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAccess, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -455,7 +456,8 @@ public open class CfnEndpointAccess( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAccess.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * The Availability Zone. * @@ -635,7 +637,8 @@ public open class CfnEndpointAccess( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAccess.VpcEndpointProperty, - ) : CdkObject(cdkObject), VpcEndpointProperty { + ) : CdkObject(cdkObject), + VpcEndpointProperty { /** * One or more network interfaces of the endpoint. * @@ -753,7 +756,8 @@ public open class CfnEndpointAccess( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAccess.VpcSecurityGroupProperty, - ) : CdkObject(cdkObject), VpcSecurityGroupProperty { + ) : CdkObject(cdkObject), + VpcSecurityGroupProperty { /** * The status of the endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccessProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccessProps.kt index f9d52bfc31..70d0656363 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccessProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAccessProps.kt @@ -160,7 +160,8 @@ public interface CfnEndpointAccessProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAccessProps, - ) : CdkObject(cdkObject), CfnEndpointAccessProps { + ) : CdkObject(cdkObject), + CfnEndpointAccessProps { /** * The cluster identifier of the cluster associated with the endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorization.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorization.kt index dad457cbea..bc511b53d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorization.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorization.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpointAuthorization( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAuthorization, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorizationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorizationProps.kt index 01235e91db..3885b2507b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorizationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEndpointAuthorizationProps.kt @@ -164,7 +164,8 @@ public interface CfnEndpointAuthorizationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEndpointAuthorizationProps, - ) : CdkObject(cdkObject), CfnEndpointAuthorizationProps { + ) : CdkObject(cdkObject), + CfnEndpointAuthorizationProps { /** * The AWS account ID of either the cluster owner (grantor) or grantee. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscription.kt index 3bd17eccb8..11c30b545b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscription.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEventSubscription( cdkObject: software.amazon.awscdk.services.redshift.CfnEventSubscription, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscriptionProps.kt index 65cf565f48..701ccc42f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnEventSubscriptionProps.kt @@ -365,7 +365,8 @@ public interface CfnEventSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnEventSubscriptionProps, - ) : CdkObject(cdkObject), CfnEventSubscriptionProps { + ) : CdkObject(cdkObject), + CfnEventSubscriptionProps { /** * A boolean value; * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledAction.kt index b8ea09f7f3..200522b173 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledAction.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScheduledAction( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledAction, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -323,7 +324,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -336,7 +337,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -349,7 +350,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -481,7 +482,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -496,7 +497,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -511,7 +512,7 @@ public open class CfnScheduledAction( * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -605,7 +606,8 @@ public open class CfnScheduledAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledAction.PauseClusterMessageProperty, - ) : CdkObject(cdkObject), PauseClusterMessageProperty { + ) : CdkObject(cdkObject), + PauseClusterMessageProperty { /** * The identifier of the cluster to be paused. * @@ -805,7 +807,8 @@ public open class CfnScheduledAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledAction.ResizeClusterMessageProperty, - ) : CdkObject(cdkObject), ResizeClusterMessageProperty { + ) : CdkObject(cdkObject), + ResizeClusterMessageProperty { /** * A boolean value indicating whether the resize operation is using the classic resize * process. @@ -926,7 +929,8 @@ public open class CfnScheduledAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledAction.ResumeClusterMessageProperty, - ) : CdkObject(cdkObject), ResumeClusterMessageProperty { + ) : CdkObject(cdkObject), + ResumeClusterMessageProperty { /** * The identifier of the cluster to be resumed. * @@ -1141,7 +1145,8 @@ public open class CfnScheduledAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledAction.ScheduledActionTypeProperty, - ) : CdkObject(cdkObject), ScheduledActionTypeProperty { + ) : CdkObject(cdkObject), + ScheduledActionTypeProperty { /** * An action that runs a `PauseCluster` API operation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledActionProps.kt index 9b9db35771..d8227768f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshift/CfnScheduledActionProps.kt @@ -130,7 +130,7 @@ public interface CfnScheduledActionProps { * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) @@ -209,7 +209,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ public fun targetAction(targetAction: IResolvable) @@ -218,7 +218,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ public fun targetAction(targetAction: CfnScheduledAction.ScheduledActionTypeProperty) @@ -227,7 +227,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -323,7 +323,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ override fun targetAction(targetAction: IResolvable) { @@ -334,7 +334,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ override fun targetAction(targetAction: CfnScheduledAction.ScheduledActionTypeProperty) { @@ -345,7 +345,7 @@ public interface CfnScheduledActionProps { * @param targetAction A JSON format string of the Amazon Redshift API operation with input * parameters. * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @@ -360,7 +360,8 @@ public interface CfnScheduledActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshift.CfnScheduledActionProps, - ) : CdkObject(cdkObject), CfnScheduledActionProps { + ) : CdkObject(cdkObject), + CfnScheduledActionProps { /** * If true, the schedule is enabled. * @@ -440,7 +441,7 @@ public interface CfnScheduledActionProps { * A JSON format string of the Amazon Redshift API operation with input parameters. * * " - * `{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` + * `{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}` * ". * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-scheduledaction.html#cfn-redshift-scheduledaction-targetaction) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespace.kt index da3c5292b3..1c63047ede 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespace.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNamespace( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1230,7 +1232,8 @@ public open class CfnNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnNamespace.NamespaceProperty, - ) : CdkObject(cdkObject), NamespaceProperty { + ) : CdkObject(cdkObject), + NamespaceProperty { /** * The Amazon Resource Name (ARN) for the namespace's admin user credentials secret. * @@ -1452,7 +1455,8 @@ public open class CfnNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnNamespace.SnapshotCopyConfigurationProperty, - ) : CdkObject(cdkObject), SnapshotCopyConfigurationProperty { + ) : CdkObject(cdkObject), + SnapshotCopyConfigurationProperty { /** * The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespaceProps.kt index 16c5284c5c..73385a9833 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnNamespaceProps.kt @@ -499,7 +499,8 @@ public interface CfnNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnNamespaceProps, - ) : CdkObject(cdkObject), CfnNamespaceProps { + ) : CdkObject(cdkObject), + CfnNamespaceProps { /** * The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's * admin credentials secret. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroup.kt index 34c58b26e9..f672014718 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroup.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkgroup( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -868,7 +870,8 @@ public open class CfnWorkgroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.ConfigParameterProperty, - ) : CdkObject(cdkObject), ConfigParameterProperty { + ) : CdkObject(cdkObject), + ConfigParameterProperty { /** * The key of the parameter. * @@ -1031,7 +1034,8 @@ public open class CfnWorkgroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.EndpointProperty, - ) : CdkObject(cdkObject), EndpointProperty { + ) : CdkObject(cdkObject), + EndpointProperty { /** * The DNS address of the VPC endpoint. * @@ -1188,7 +1192,8 @@ public open class CfnWorkgroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * The availability Zone. * @@ -1369,7 +1374,8 @@ public open class CfnWorkgroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.VpcEndpointProperty, - ) : CdkObject(cdkObject), VpcEndpointProperty { + ) : CdkObject(cdkObject), + VpcEndpointProperty { /** * One or more network interfaces of the endpoint. * @@ -1909,7 +1915,8 @@ public open class CfnWorkgroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.WorkgroupProperty, - ) : CdkObject(cdkObject), WorkgroupProperty { + ) : CdkObject(cdkObject), + WorkgroupProperty { /** * The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroupProps.kt index 7d32a6482b..7a0b816413 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/redshiftserverless/CfnWorkgroupProps.kt @@ -392,7 +392,8 @@ public interface CfnWorkgroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.redshiftserverless.CfnWorkgroupProps, - ) : CdkObject(cdkObject), CfnWorkgroupProps { + ) : CdkObject(cdkObject), + CfnWorkgroupProps { /** * The base compute capacity of the workgroup in Redshift Processing Units (RPUs). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplication.kt index 5393c233c9..14a206fa3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplication.kt @@ -25,7 +25,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * The account that owns the environment also owns the applications created inside the environment, * regardless of the account that creates the application. Refactor Spaces provisions an Amazon API - * Gateway , API Gateway VPC link, and Network Load Balancer for the application proxy inside your + * Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your * account. * * In environments created with a @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -457,10 +459,10 @@ public open class CfnApplication( * * If the value is set to `PRIVATE` in the request, this creates a private API endpoint that is * isolated from the public internet. The private endpoint can only be accessed by using Amazon - * Virtual Private Cloud ( Amazon VPC ) interface endpoints for the Amazon API Gateway that has - * been granted access. For more information about creating a private connection with Refactor - * Spaces and interface endpoint ( AWS PrivateLink ) availability, see [Access Refactor Spaces - * using an interface endpoint ( AWS PrivateLink + * Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that has been + * granted access. For more information about creating a private connection with Refactor Spaces + * and interface endpoint ( AWS PrivateLink ) availability, see [Access Refactor Spaces using an + * interface endpoint ( AWS PrivateLink * )](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/vpc-interface-endpoints.html) * . * @@ -488,8 +490,8 @@ public open class CfnApplication( * * If the value is set to `PRIVATE` in the request, this creates a private API endpoint that * is isolated from the public internet. The private endpoint can only be accessed by using - * Amazon Virtual Private Cloud ( Amazon VPC ) interface endpoints for the Amazon API Gateway - * that has been granted access. For more information about creating a private connection with + * Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that + * has been granted access. For more information about creating a private connection with * Refactor Spaces and interface endpoint ( AWS PrivateLink ) availability, see [Access Refactor * Spaces using an interface endpoint ( AWS PrivateLink * )](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/vpc-interface-endpoints.html) @@ -516,8 +518,8 @@ public open class CfnApplication( * * If the value is set to `PRIVATE` in the request, this creates a private API endpoint that * is isolated from the public internet. The private endpoint can only be accessed by using - * Amazon Virtual Private Cloud ( Amazon VPC ) interface endpoints for the Amazon API Gateway - * that has been granted access. For more information about creating a private connection with + * Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that + * has been granted access. For more information about creating a private connection with * Refactor Spaces and interface endpoint ( AWS PrivateLink ) availability, see [Access Refactor * Spaces using an interface endpoint ( AWS PrivateLink * )](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/vpc-interface-endpoints.html) @@ -542,7 +544,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnApplication.ApiGatewayProxyInputProperty, - ) : CdkObject(cdkObject), ApiGatewayProxyInputProperty { + ) : CdkObject(cdkObject), + ApiGatewayProxyInputProperty { /** * The type of endpoint to use for the API Gateway proxy. * @@ -550,8 +553,8 @@ public open class CfnApplication( * * If the value is set to `PRIVATE` in the request, this creates a private API endpoint that * is isolated from the public internet. The private endpoint can only be accessed by using - * Amazon Virtual Private Cloud ( Amazon VPC ) interface endpoints for the Amazon API Gateway - * that has been granted access. For more information about creating a private connection with + * Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that + * has been granted access. For more information about creating a private connection with * Refactor Spaces and interface endpoint ( AWS PrivateLink ) availability, see [Access Refactor * Spaces using an interface endpoint ( AWS PrivateLink * )](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/vpc-interface-endpoints.html) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplicationProps.kt index 86b64922cf..d8cfee5b83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnApplicationProps.kt @@ -212,7 +212,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The endpoint URL of the Amazon API Gateway proxy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironment.kt index 926c19deeb..ae1fc4ff9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironment.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironmentProps.kt index 8da7c6b473..9315d0476b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnEnvironmentProps.kt @@ -137,7 +137,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * A description of the environment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRoute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRoute.kt index f41ba2bc4c..7ebe1dcd24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRoute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRoute.kt @@ -136,7 +136,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoute( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnRoute, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -615,7 +617,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnRoute.DefaultRouteInputProperty, - ) : CdkObject(cdkObject), DefaultRouteInputProperty { + ) : CdkObject(cdkObject), + DefaultRouteInputProperty { /** * If set to `ACTIVE` , traffic is forwarded to this route’s service after the route is * created. @@ -851,7 +854,8 @@ public open class CfnRoute( private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnRoute.UriPathRouteInputProperty, - ) : CdkObject(cdkObject), UriPathRouteInputProperty { + ) : CdkObject(cdkObject), + UriPathRouteInputProperty { /** * If set to `ACTIVE` , traffic is forwarded to this route’s service after the route is * created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRouteProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRouteProps.kt index c8e400276e..a92047375e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRouteProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnRouteProps.kt @@ -262,7 +262,8 @@ public interface CfnRouteProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnRouteProps, - ) : CdkObject(cdkObject), CfnRouteProps { + ) : CdkObject(cdkObject), + CfnRouteProps { /** * The unique identifier of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnService.kt index 5b1b30fa74..6ceebbe1cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnService.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnService( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -600,7 +602,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnService.LambdaEndpointInputProperty, - ) : CdkObject(cdkObject), LambdaEndpointInputProperty { + ) : CdkObject(cdkObject), + LambdaEndpointInputProperty { /** * The Amazon Resource Name (ARN) of the Lambda function or alias. * @@ -729,7 +732,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnService.UrlEndpointInputProperty, - ) : CdkObject(cdkObject), UrlEndpointInputProperty { + ) : CdkObject(cdkObject), + UrlEndpointInputProperty { /** * The health check URL of the URL endpoint type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnServiceProps.kt index 1f94914736..94a01d0c5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/refactorspaces/CfnServiceProps.kt @@ -301,7 +301,8 @@ public interface CfnServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.refactorspaces.CfnServiceProps, - ) : CdkObject(cdkObject), CfnServiceProps { + ) : CdkObject(cdkObject), + CfnServiceProps { /** * The unique identifier of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollection.kt index a934d32134..545207bf56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollection.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCollection( cdkObject: software.amazon.awscdk.services.rekognition.CfnCollection, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollectionProps.kt index e711f1e64c..8beb4b5a1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnCollectionProps.kt @@ -96,7 +96,8 @@ public interface CfnCollectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnCollectionProps, - ) : CdkObject(cdkObject), CfnCollectionProps { + ) : CdkObject(cdkObject), + CfnCollectionProps { /** * ID for the collection that you are creating. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProject.kt index 114d135a60..a277c665e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProject.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.rekognition.CfnProject, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProjectProps.kt index e7509318fe..ee9bbfae0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnProjectProps.kt @@ -60,7 +60,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The name of the project to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessor.kt index 1a52dcebe7..5fa550802d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessor.kt @@ -107,7 +107,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStreamProcessor( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1610,7 +1612,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.BoundingBoxProperty, - ) : CdkObject(cdkObject), BoundingBoxProperty { + ) : CdkObject(cdkObject), + BoundingBoxProperty { /** * Height of the bounding box as a ratio of the overall image height. * @@ -1773,7 +1776,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.ConnectedHomeSettingsProperty, - ) : CdkObject(cdkObject), ConnectedHomeSettingsProperty { + ) : CdkObject(cdkObject), + ConnectedHomeSettingsProperty { /** * Specifies what you want to detect in the video, such as people, packages, or pets. * @@ -1887,7 +1891,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.DataSharingPreferenceProperty, - ) : CdkObject(cdkObject), DataSharingPreferenceProperty { + ) : CdkObject(cdkObject), + DataSharingPreferenceProperty { /** * Describes the opt-in status applied to a stream processor's data sharing policy. * @@ -2009,7 +2014,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.FaceSearchSettingsProperty, - ) : CdkObject(cdkObject), FaceSearchSettingsProperty { + ) : CdkObject(cdkObject), + FaceSearchSettingsProperty { /** * The ID of a collection that contains faces that you want to search for. * @@ -2108,7 +2114,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.KinesisDataStreamProperty, - ) : CdkObject(cdkObject), KinesisDataStreamProperty { + ) : CdkObject(cdkObject), + KinesisDataStreamProperty { /** * ARN of the output Amazon Kinesis Data Streams stream. * @@ -2195,7 +2202,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.KinesisVideoStreamProperty, - ) : CdkObject(cdkObject), KinesisVideoStreamProperty { + ) : CdkObject(cdkObject), + KinesisVideoStreamProperty { /** * ARN of the Kinesis video stream stream that streams the source video. * @@ -2284,7 +2292,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.NotificationChannelProperty, - ) : CdkObject(cdkObject), NotificationChannelProperty { + ) : CdkObject(cdkObject), + NotificationChannelProperty { /** * The ARN of the SNS topic that receives notifications. * @@ -2397,7 +2406,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.PointProperty, - ) : CdkObject(cdkObject), PointProperty { + ) : CdkObject(cdkObject), + PointProperty { /** * The value of the X coordinate for a point on a `Polygon` . * @@ -2518,7 +2528,8 @@ public open class CfnStreamProcessor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessor.S3DestinationProperty, - ) : CdkObject(cdkObject), S3DestinationProperty { + ) : CdkObject(cdkObject), + S3DestinationProperty { /** * Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name of a stream * processor's exports. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessorProps.kt index d9ed93e2ec..40b581de38 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rekognition/CfnStreamProcessorProps.kt @@ -953,7 +953,8 @@ public interface CfnStreamProcessorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rekognition.CfnStreamProcessorProps, - ) : CdkObject(cdkObject), CfnStreamProcessorProps { + ) : CdkObject(cdkObject), + CfnStreamProcessorProps { /** * List of BoundingBox objects, each of which denotes a region of interest on screen. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnApp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnApp.kt index 8895962a53..e4340af2d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnApp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnApp.kt @@ -86,7 +86,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApp( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnApp, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1195,7 +1197,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnApp.EventSubscriptionProperty, - ) : CdkObject(cdkObject), EventSubscriptionProperty { + ) : CdkObject(cdkObject), + EventSubscriptionProperty { /** * The type of event you would like to subscribe and get notification for. * @@ -1430,7 +1433,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnApp.PermissionModelProperty, - ) : CdkObject(cdkObject), PermissionModelProperty { + ) : CdkObject(cdkObject), + PermissionModelProperty { /** * Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. * @@ -1694,7 +1698,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnApp.PhysicalResourceIdProperty, - ) : CdkObject(cdkObject), PhysicalResourceIdProperty { + ) : CdkObject(cdkObject), + PhysicalResourceIdProperty { /** * The AWS account that owns the physical resource. * @@ -1980,7 +1985,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnApp.ResourceMappingProperty, - ) : CdkObject(cdkObject), ResourceMappingProperty { + ) : CdkObject(cdkObject), + ResourceMappingProperty { /** * Name of the Amazon Elastic Kubernetes Service cluster and namespace that this resource is * mapped to when the `mappingType` is `EKS` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnAppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnAppProps.kt index 64514b496b..aa13451a54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnAppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnAppProps.kt @@ -1017,7 +1017,8 @@ public interface CfnAppProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnAppProps, - ) : CdkObject(cdkObject), CfnAppProps { + ) : CdkObject(cdkObject), + CfnAppProps { /** * Assessment execution schedule with 'Daily' or 'Disabled' values. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicy.kt index e7650fca0a..2b8d8fde92 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicy.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResiliencyPolicy( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -428,7 +430,8 @@ public open class CfnResiliencyPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy.FailurePolicyProperty, - ) : CdkObject(cdkObject), FailurePolicyProperty { + ) : CdkObject(cdkObject), + FailurePolicyProperty { /** * Recovery Point Objective (RPO) in seconds. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicyProps.kt index 26b0bfba90..13145b2996 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resiliencehub/CfnResiliencyPolicyProps.kt @@ -192,7 +192,8 @@ public interface CfnResiliencyPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicyProps, - ) : CdkObject(cdkObject), CfnResiliencyPolicyProps { + ) : CdkObject(cdkObject), + CfnResiliencyPolicyProps { /** * Specifies a high-level geographical location constraint for where your resilience policy data * can be stored. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociation.kt index f53f868d14..a222690953 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociation.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDefaultViewAssociation( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnDefaultViewAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociationProps.kt index f5b527ab92..3defa25d23 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnDefaultViewAssociationProps.kt @@ -70,7 +70,8 @@ public interface CfnDefaultViewAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnDefaultViewAssociationProps, - ) : CdkObject(cdkObject), CfnDefaultViewAssociationProps { + ) : CdkObject(cdkObject), + CfnDefaultViewAssociationProps { /** * The ARN of the view to set as the default for the AWS Region and AWS account in which you * call this operation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndex.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndex.kt index 87b539c1d0..f645afe004 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndex.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndex.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIndex( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnIndex, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndexProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndexProps.kt index 014912756f..78afb237a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndexProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnIndexProps.kt @@ -100,7 +100,8 @@ public interface CfnIndexProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnIndexProps, - ) : CdkObject(cdkObject), CfnIndexProps { + ) : CdkObject(cdkObject), + CfnIndexProps { /** * The specified tags are attached to only the index created in this AWS Region . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnView.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnView.kt index 1203e0803e..d645a7bbe7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnView.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnView.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnView( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnView, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -569,7 +571,8 @@ public open class CfnView( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnView.FiltersProperty, - ) : CdkObject(cdkObject), FiltersProperty { + ) : CdkObject(cdkObject), + FiltersProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourceexplorer2-view-filters.html#cfn-resourceexplorer2-view-filters-filterstring) */ @@ -650,7 +653,8 @@ public open class CfnView( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnView.IncludedPropertyProperty, - ) : CdkObject(cdkObject), IncludedPropertyProperty { + ) : CdkObject(cdkObject), + IncludedPropertyProperty { /** * The name of the property that is included in this view. * @@ -772,7 +776,8 @@ public open class CfnView( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnView.SearchFilterProperty, - ) : CdkObject(cdkObject), SearchFilterProperty { + ) : CdkObject(cdkObject), + SearchFilterProperty { /** * The string that contains the search keywords, prefixes, and operators to control the * results that can be returned by a Search operation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnViewProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnViewProps.kt index 75894a494b..9577e8096c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnViewProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourceexplorer2/CfnViewProps.kt @@ -341,7 +341,8 @@ public interface CfnViewProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resourceexplorer2.CfnViewProps, - ) : CdkObject(cdkObject), CfnViewProps { + ) : CdkObject(cdkObject), + CfnViewProps { /** * An array of strings that include search keywords, prefixes, and operators that filter the * results that are returned for queries made using this view. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroup.kt index f619a91a4f..e90e02b6d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroup.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -820,7 +822,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup.ConfigurationItemProperty, - ) : CdkObject(cdkObject), ConfigurationItemProperty { + ) : CdkObject(cdkObject), + ConfigurationItemProperty { /** * A collection of parameters for this configuration item. * @@ -983,7 +986,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup.ConfigurationParameterProperty, - ) : CdkObject(cdkObject), ConfigurationParameterProperty { + ) : CdkObject(cdkObject), + ConfigurationParameterProperty { /** * The name of the group configuration parameter. * @@ -1235,7 +1239,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup.QueryProperty, - ) : CdkObject(cdkObject), QueryProperty { + ) : CdkObject(cdkObject), + QueryProperty { /** * Specifies limits to the types of resources that can be included in the resource group. * @@ -1514,7 +1519,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup.ResourceQueryProperty, - ) : CdkObject(cdkObject), ResourceQueryProperty { + ) : CdkObject(cdkObject), + ResourceQueryProperty { /** * The query that defines the membership of the group. * @@ -1696,7 +1702,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroup.TagFilterProperty, - ) : CdkObject(cdkObject), TagFilterProperty { + ) : CdkObject(cdkObject), + TagFilterProperty { /** * A string that defines a tag key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroupProps.kt index fc9df339ba..9edf3eaab5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/resourcegroups/CfnGroupProps.kt @@ -427,7 +427,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.resourcegroups.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * The service configuration currently associated with the resource group and in effect for the * members of the resource group. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleet.kt index f54b0603ae..27392cc917 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleet.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFleet( cdkObject: software.amazon.awscdk.services.robomaker.CfnFleet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.robomaker.CfnFleet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleetProps.kt index 8256c98915..15fd833ea1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnFleetProps.kt @@ -81,7 +81,8 @@ public interface CfnFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnFleetProps, - ) : CdkObject(cdkObject), CfnFleetProps { + ) : CdkObject(cdkObject), + CfnFleetProps { /** * The name of the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobot.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobot.kt index 904db71f1a..6518c83d81 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobot.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobot.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRobot( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobot, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplication.kt index bfb2d1e66e..1e32a2c23c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplication.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRobotApplication( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -500,7 +502,8 @@ public open class CfnRobotApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplication.RobotSoftwareSuiteProperty, - ) : CdkObject(cdkObject), RobotSoftwareSuiteProperty { + ) : CdkObject(cdkObject), + RobotSoftwareSuiteProperty { /** * The name of the robot software suite. * @@ -633,7 +636,8 @@ public open class CfnRobotApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplication.SourceConfigProperty, - ) : CdkObject(cdkObject), SourceConfigProperty { + ) : CdkObject(cdkObject), + SourceConfigProperty { /** * The target processor architecture for the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationProps.kt index 6d6869eff6..cf9a2319cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationProps.kt @@ -232,7 +232,8 @@ public interface CfnRobotApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplicationProps, - ) : CdkObject(cdkObject), CfnRobotApplicationProps { + ) : CdkObject(cdkObject), + CfnRobotApplicationProps { /** * The current revision id. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersion.kt index 0a1536d7a0..e43b59f5a7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersion.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRobotApplicationVersion( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplicationVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersionProps.kt index 618f07bd99..629f5b67d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotApplicationVersionProps.kt @@ -87,7 +87,8 @@ public interface CfnRobotApplicationVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotApplicationVersionProps, - ) : CdkObject(cdkObject), CfnRobotApplicationVersionProps { + ) : CdkObject(cdkObject), + CfnRobotApplicationVersionProps { /** * The application information for the robot application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotProps.kt index 79d9e7c17c..db9605d6b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnRobotProps.kt @@ -144,7 +144,8 @@ public interface CfnRobotProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnRobotProps, - ) : CdkObject(cdkObject), CfnRobotProps { + ) : CdkObject(cdkObject), + CfnRobotProps { /** * The architecture of the robot. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplication.kt index a087976266..410d85035a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplication.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSimulationApplication( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -680,7 +682,8 @@ public open class CfnSimulationApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplication.RenderingEngineProperty, - ) : CdkObject(cdkObject), RenderingEngineProperty { + ) : CdkObject(cdkObject), + RenderingEngineProperty { /** * The name of the rendering engine. * @@ -798,7 +801,8 @@ public open class CfnSimulationApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplication.RobotSoftwareSuiteProperty, - ) : CdkObject(cdkObject), RobotSoftwareSuiteProperty { + ) : CdkObject(cdkObject), + RobotSoftwareSuiteProperty { /** * The name of the robot software suite. * @@ -921,7 +925,8 @@ public open class CfnSimulationApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplication.SimulationSoftwareSuiteProperty, - ) : CdkObject(cdkObject), SimulationSoftwareSuiteProperty { + ) : CdkObject(cdkObject), + SimulationSoftwareSuiteProperty { /** * The name of the simulation software suite. * @@ -1054,7 +1059,8 @@ public open class CfnSimulationApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplication.SourceConfigProperty, - ) : CdkObject(cdkObject), SourceConfigProperty { + ) : CdkObject(cdkObject), + SourceConfigProperty { /** * The target processor architecture for the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationProps.kt index d888b28150..f746689409 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationProps.kt @@ -348,7 +348,8 @@ public interface CfnSimulationApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplicationProps, - ) : CdkObject(cdkObject), CfnSimulationApplicationProps { + ) : CdkObject(cdkObject), + CfnSimulationApplicationProps { /** * The current revision id. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersion.kt index 2f2f61202e..f5a0b6e2b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersion.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSimulationApplicationVersion( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplicationVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersionProps.kt index 5f2e57706f..83d0a3ddf2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/robomaker/CfnSimulationApplicationVersionProps.kt @@ -88,7 +88,8 @@ public interface CfnSimulationApplicationVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.robomaker.CfnSimulationApplicationVersionProps, - ) : CdkObject(cdkObject), CfnSimulationApplicationVersionProps { + ) : CdkObject(cdkObject), + CfnSimulationApplicationVersionProps { /** * The application information for the simulation application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRL.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRL.kt index 97442e67fa..3c2cd96e9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRL.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRL.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCRL( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnCRL, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -62,36 +64,36 @@ public open class CfnCRL( ) /** - * + * The unique primary identifier of the Crl. */ public open fun attrCrlId(): String = unwrap(this).getAttrCrlId() /** - * + * The x509 v3 specified certificate revocation list (CRL). */ public open fun crlData(): String = unwrap(this).getCrlData() /** - * + * The x509 v3 specified certificate revocation list (CRL). */ public open fun crlData(`value`: String) { unwrap(this).setCrlData(`value`) } /** - * + * Specifies whether the certificate revocation list (CRL) is enabled. */ public open fun enabled(): Any? = unwrap(this).getEnabled() /** - * + * Specifies whether the certificate revocation list (CRL) is enabled. */ public open fun enabled(`value`: Boolean) { unwrap(this).setEnabled(`value`) } /** - * + * Specifies whether the certificate revocation list (CRL) is enabled. */ public open fun enabled(`value`: IResolvable) { unwrap(this).setEnabled(`value`.let(IResolvable.Companion::unwrap)) @@ -107,12 +109,12 @@ public open class CfnCRL( } /** - * + * The name of the certificate revocation list (CRL). */ public open fun name(): String = unwrap(this).getName() /** - * + * The name of the certificate revocation list (CRL). */ public open fun name(`value`: String) { unwrap(this).setName(`value`) @@ -124,20 +126,20 @@ public open class CfnCRL( public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap) /** - * + * A list of tags to attach to the certificate revocation list (CRL). */ public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?: emptyList() /** - * + * A list of tags to attach to the certificate revocation list (CRL). */ public open fun tagsRaw(`value`: List) { unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap)) } /** - * + * A list of tags to attach to the certificate revocation list (CRL). */ public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList()) @@ -159,38 +161,50 @@ public open class CfnCRL( @CdkDslMarker public interface Builder { /** + * The x509 v3 specified certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-crldata) - * @param crlData + * @param crlData The x509 v3 specified certificate revocation list (CRL). */ public fun crlData(crlData: String) /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) - * @param enabled + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ public fun enabled(enabled: Boolean) /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) - * @param enabled + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ public fun enabled(enabled: IResolvable) /** + * The name of the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-name) - * @param name + * @param name The name of the certificate revocation list (CRL). */ public fun name(name: String) /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) - * @param tags + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ public fun tags(tags: List) /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) - * @param tags + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ public fun tags(vararg tags: CfnTag) @@ -212,48 +226,60 @@ public open class CfnCRL( software.amazon.awscdk.services.rolesanywhere.CfnCRL.Builder.create(scope, id) /** + * The x509 v3 specified certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-crldata) - * @param crlData + * @param crlData The x509 v3 specified certificate revocation list (CRL). */ override fun crlData(crlData: String) { cdkBuilder.crlData(crlData) } /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) - * @param enabled + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) - * @param enabled + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } /** + * The name of the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-name) - * @param name + * @param name The name of the certificate revocation list (CRL). */ override fun name(name: String) { cdkBuilder.name(name) } /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) - * @param tags + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) - * @param tags + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRLProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRLProps.kt index fe259ea48e..2b93806c32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRLProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnCRLProps.kt @@ -39,21 +39,29 @@ import kotlin.collections.List */ public interface CfnCRLProps { /** + * The x509 v3 specified certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-crldata) */ public fun crlData(): String /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) */ public fun enabled(): Any? = unwrap(this).getEnabled() /** + * The name of the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-name) */ public fun name(): String /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) */ public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() @@ -71,32 +79,32 @@ public interface CfnCRLProps { @CdkDslMarker public interface Builder { /** - * @param crlData the value to be set. + * @param crlData The x509 v3 specified certificate revocation list (CRL). */ public fun crlData(crlData: String) /** - * @param enabled the value to be set. + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ public fun enabled(enabled: Boolean) /** - * @param enabled the value to be set. + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ public fun enabled(enabled: IResolvable) /** - * @param name the value to be set. + * @param name The name of the certificate revocation list (CRL). */ public fun name(name: String) /** - * @param tags the value to be set. + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ public fun tags(tags: List) /** - * @param tags the value to be set. + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ public fun tags(vararg tags: CfnTag) @@ -112,42 +120,42 @@ public interface CfnCRLProps { software.amazon.awscdk.services.rolesanywhere.CfnCRLProps.builder() /** - * @param crlData the value to be set. + * @param crlData The x509 v3 specified certificate revocation list (CRL). */ override fun crlData(crlData: String) { cdkBuilder.crlData(crlData) } /** - * @param enabled the value to be set. + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled the value to be set. + * @param enabled Specifies whether the certificate revocation list (CRL) is enabled. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } /** - * @param name the value to be set. + * @param name The name of the certificate revocation list (CRL). */ override fun name(name: String) { cdkBuilder.name(name) } /** - * @param tags the value to be set. + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * @param tags the value to be set. + * @param tags A list of tags to attach to the certificate revocation list (CRL). */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -165,23 +173,32 @@ public interface CfnCRLProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnCRLProps, - ) : CdkObject(cdkObject), CfnCRLProps { + ) : CdkObject(cdkObject), + CfnCRLProps { /** + * The x509 v3 specified certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-crldata) */ override fun crlData(): String = unwrap(this).getCrlData() /** + * Specifies whether the certificate revocation list (CRL) is enabled. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-enabled) */ override fun enabled(): Any? = unwrap(this).getEnabled() /** + * The name of the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-name) */ override fun name(): String = unwrap(this).getName() /** + * A list of tags to attach to the certificate revocation list (CRL). + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-crl.html#cfn-rolesanywhere-crl-tags) */ override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfile.kt index 69aa0555cb..e2b862db84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfile.kt @@ -10,6 +10,8 @@ import io.cloudshiftdev.awscdk.ITaggable import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.Boolean import kotlin.Number @@ -32,6 +34,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .name("name") * .roleArns(List.of("roleArns")) * // the properties below are optional + * .acceptRoleSessionName(false) + * .attributeMappings(List.of(AttributeMappingProperty.builder() + * .certificateField("certificateField") + * .mappingRules(List.of(MappingRuleProperty.builder() + * .specifier("specifier") + * .build())) + * .build())) * .durationSeconds(123) * .enabled(false) * .managedPolicyArns(List.of("managedPolicyArns")) @@ -48,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfile( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -65,6 +76,28 @@ public open class CfnProfile( ) : this(scope, id, CfnProfileProps(props) ) + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + */ + public open fun acceptRoleSessionName(): Any? = unwrap(this).getAcceptRoleSessionName() + + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + */ + public open fun acceptRoleSessionName(`value`: Boolean) { + unwrap(this).setAcceptRoleSessionName(`value`) + } + + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + */ + public open fun acceptRoleSessionName(`value`: IResolvable) { + unwrap(this).setAcceptRoleSessionName(`value`.let(IResolvable.Companion::unwrap)) + } + /** * The ARN of the profile. */ @@ -75,6 +108,30 @@ public open class CfnProfile( */ public open fun attrProfileId(): String = unwrap(this).getAttrProfileId() + /** + * A mapping applied to the authenticating end-entity certificate. + */ + public open fun attributeMappings(): Any? = unwrap(this).getAttributeMappings() + + /** + * A mapping applied to the authenticating end-entity certificate. + */ + public open fun attributeMappings(`value`: IResolvable) { + unwrap(this).setAttributeMappings(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A mapping applied to the authenticating end-entity certificate. + */ + public open fun attributeMappings(`value`: List) { + unwrap(this).setAttributeMappings(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A mapping applied to the authenticating end-entity certificate. + */ + public open fun attributeMappings(vararg `value`: Any): Unit = attributeMappings(`value`.toList()) + /** * The number of seconds vended session credentials will be valid for. */ @@ -225,6 +282,50 @@ public open class CfnProfile( */ @CdkDslMarker public interface Builder { + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + public fun acceptRoleSessionName(acceptRoleSessionName: Boolean) + + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + public fun acceptRoleSessionName(acceptRoleSessionName: IResolvable) + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(attributeMappings: IResolvable) + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(attributeMappings: List) + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(vararg attributeMappings: Any) + /** * The number of seconds vended session credentials will be valid for. * @@ -350,6 +451,59 @@ public open class CfnProfile( private val cdkBuilder: software.amazon.awscdk.services.rolesanywhere.CfnProfile.Builder = software.amazon.awscdk.services.rolesanywhere.CfnProfile.Builder.create(scope, id) + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + override fun acceptRoleSessionName(acceptRoleSessionName: Boolean) { + cdkBuilder.acceptRoleSessionName(acceptRoleSessionName) + } + + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + override fun acceptRoleSessionName(acceptRoleSessionName: IResolvable) { + cdkBuilder.acceptRoleSessionName(acceptRoleSessionName.let(IResolvable.Companion::unwrap)) + } + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(attributeMappings: IResolvable) { + cdkBuilder.attributeMappings(attributeMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(attributeMappings: List) { + cdkBuilder.attributeMappings(attributeMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(vararg attributeMappings: Any): Unit = + attributeMappings(attributeMappings.toList()) + /** * The number of seconds vended session credentials will be valid for. * @@ -512,4 +666,225 @@ public open class CfnProfile( software.amazon.awscdk.services.rolesanywhere.CfnProfile = wrapped.cdkObject as software.amazon.awscdk.services.rolesanywhere.CfnProfile } + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.rolesanywhere.*; + * AttributeMappingProperty attributeMappingProperty = AttributeMappingProperty.builder() + * .certificateField("certificateField") + * .mappingRules(List.of(MappingRuleProperty.builder() + * .specifier("specifier") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html) + */ + public interface AttributeMappingProperty { + /** + * Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-certificatefield) + */ + public fun certificateField(): String + + /** + * A list of mapping entries for every supported specifier or sub-field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-mappingrules) + */ + public fun mappingRules(): Any + + /** + * A builder for [AttributeMappingProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param certificateField Fields (x509Subject, x509Issuer and x509SAN) within X.509 + * certificates. + */ + public fun certificateField(certificateField: String) + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + public fun mappingRules(mappingRules: IResolvable) + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + public fun mappingRules(mappingRules: List) + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + public fun mappingRules(vararg mappingRules: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty.Builder + = + software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty.builder() + + /** + * @param certificateField Fields (x509Subject, x509Issuer and x509SAN) within X.509 + * certificates. + */ + override fun certificateField(certificateField: String) { + cdkBuilder.certificateField(certificateField) + } + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + override fun mappingRules(mappingRules: IResolvable) { + cdkBuilder.mappingRules(mappingRules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + override fun mappingRules(mappingRules: List) { + cdkBuilder.mappingRules(mappingRules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param mappingRules A list of mapping entries for every supported specifier or sub-field. + */ + override fun mappingRules(vararg mappingRules: Any): Unit = + mappingRules(mappingRules.toList()) + + public fun build(): + software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty, + ) : CdkObject(cdkObject), + AttributeMappingProperty { + /** + * Fields (x509Subject, x509Issuer and x509SAN) within X.509 certificates. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-certificatefield) + */ + override fun certificateField(): String = unwrap(this).getCertificateField() + + /** + * A list of mapping entries for every supported specifier or sub-field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-mappingrules) + */ + override fun mappingRules(): Any = unwrap(this).getMappingRules() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AttributeMappingProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty): + AttributeMappingProperty = CdkObjectWrappers.wrap(cdkObject) as? AttributeMappingProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AttributeMappingProperty): + software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.rolesanywhere.CfnProfile.AttributeMappingProperty + } + } + + /** + * A single mapping entry for each supported specifier or sub-field. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.rolesanywhere.*; + * MappingRuleProperty mappingRuleProperty = MappingRuleProperty.builder() + * .specifier("specifier") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html) + */ + public interface MappingRuleProperty { + /** + * Specifier within a certificate field, such as CN, OU, or UID from the Subject field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html#cfn-rolesanywhere-profile-mappingrule-specifier) + */ + public fun specifier(): String + + /** + * A builder for [MappingRuleProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param specifier Specifier within a certificate field, such as CN, OU, or UID from the + * Subject field. + */ + public fun specifier(specifier: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty.Builder = + software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty.builder() + + /** + * @param specifier Specifier within a certificate field, such as CN, OU, or UID from the + * Subject field. + */ + override fun specifier(specifier: String) { + cdkBuilder.specifier(specifier) + } + + public fun build(): + software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty, + ) : CdkObject(cdkObject), + MappingRuleProperty { + /** + * Specifier within a certificate field, such as CN, OU, or UID from the Subject field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html#cfn-rolesanywhere-profile-mappingrule-specifier) + */ + override fun specifier(): String = unwrap(this).getSpecifier() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MappingRuleProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty): + MappingRuleProperty = CdkObjectWrappers.wrap(cdkObject) as? MappingRuleProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: MappingRuleProperty): + software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.rolesanywhere.CfnProfile.MappingRuleProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfileProps.kt index 2f1243182b..3a4cc338e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnProfileProps.kt @@ -27,6 +27,13 @@ import kotlin.collections.List * .name("name") * .roleArns(List.of("roleArns")) * // the properties below are optional + * .acceptRoleSessionName(false) + * .attributeMappings(List.of(AttributeMappingProperty.builder() + * .certificateField("certificateField") + * .mappingRules(List.of(MappingRuleProperty.builder() + * .specifier("specifier") + * .build())) + * .build())) * .durationSeconds(123) * .enabled(false) * .managedPolicyArns(List.of("managedPolicyArns")) @@ -42,6 +49,21 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html) */ public interface CfnProfileProps { + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + */ + public fun acceptRoleSessionName(): Any? = unwrap(this).getAcceptRoleSessionName() + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + */ + public fun attributeMappings(): Any? = unwrap(this).getAttributeMappings() + /** * The number of seconds vended session credentials will be valid for. * @@ -106,6 +128,33 @@ public interface CfnProfileProps { */ @CdkDslMarker public interface Builder { + /** + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + public fun acceptRoleSessionName(acceptRoleSessionName: Boolean) + + /** + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + public fun acceptRoleSessionName(acceptRoleSessionName: IResolvable) + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(attributeMappings: IResolvable) + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(attributeMappings: List) + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + public fun attributeMappings(vararg attributeMappings: Any) + /** * @param durationSeconds The number of seconds vended session credentials will be valid for. */ @@ -183,6 +232,42 @@ public interface CfnProfileProps { private val cdkBuilder: software.amazon.awscdk.services.rolesanywhere.CfnProfileProps.Builder = software.amazon.awscdk.services.rolesanywhere.CfnProfileProps.builder() + /** + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + override fun acceptRoleSessionName(acceptRoleSessionName: Boolean) { + cdkBuilder.acceptRoleSessionName(acceptRoleSessionName) + } + + /** + * @param acceptRoleSessionName Used to determine if a custom role session name will be accepted + * in a temporary credential request. + */ + override fun acceptRoleSessionName(acceptRoleSessionName: IResolvable) { + cdkBuilder.acceptRoleSessionName(acceptRoleSessionName.let(IResolvable.Companion::unwrap)) + } + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(attributeMappings: IResolvable) { + cdkBuilder.attributeMappings(attributeMappings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(attributeMappings: List) { + cdkBuilder.attributeMappings(attributeMappings.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param attributeMappings A mapping applied to the authenticating end-entity certificate. + */ + override fun attributeMappings(vararg attributeMappings: Any): Unit = + attributeMappings(attributeMappings.toList()) + /** * @param durationSeconds The number of seconds vended session credentials will be valid for. */ @@ -282,7 +367,23 @@ public interface CfnProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnProfileProps, - ) : CdkObject(cdkObject), CfnProfileProps { + ) : CdkObject(cdkObject), + CfnProfileProps { + /** + * Used to determine if a custom role session name will be accepted in a temporary credential + * request. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-acceptrolesessionname) + */ + override fun acceptRoleSessionName(): Any? = unwrap(this).getAcceptRoleSessionName() + + /** + * A mapping applied to the authenticating end-entity certificate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings) + */ + override fun attributeMappings(): Any? = unwrap(this).getAttributeMappings() + /** * The number of seconds vended session credentials will be valid for. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchor.kt index f9e5fcad1e..8aaec34af3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchor.kt @@ -60,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrustAnchor( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -448,7 +450,7 @@ public open class CfnTrustAnchor( * Customizable notification settings that will be applied to notification events. * * IAM Roles Anywhere consumes these settings while notifying across multiple channels - - * CloudWatch metrics, EventBridge , and AWS Health Dashboard . + * CloudWatch metrics, EventBridge, and AWS Health Dashboard . * * Example: * @@ -471,7 +473,7 @@ public open class CfnTrustAnchor( /** * The specified channel of notification. * - * IAM Roles Anywhere uses CloudWatch metrics, EventBridge , and AWS Health Dashboard to notify + * IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and AWS Health Dashboard to notify * for an event. * * @@ -513,8 +515,8 @@ public open class CfnTrustAnchor( public interface Builder { /** * @param channel The specified channel of notification. - * IAM Roles Anywhere uses CloudWatch metrics, EventBridge , and AWS Health Dashboard to - * notify for an event. + * IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and AWS Health Dashboard to notify + * for an event. * * * In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' @@ -552,8 +554,8 @@ public open class CfnTrustAnchor( /** * @param channel The specified channel of notification. - * IAM Roles Anywhere uses CloudWatch metrics, EventBridge , and AWS Health Dashboard to - * notify for an event. + * IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and AWS Health Dashboard to notify + * for an event. * * * In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' @@ -599,12 +601,13 @@ public open class CfnTrustAnchor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchor.NotificationSettingProperty, - ) : CdkObject(cdkObject), NotificationSettingProperty { + ) : CdkObject(cdkObject), + NotificationSettingProperty { /** * The specified channel of notification. * - * IAM Roles Anywhere uses CloudWatch metrics, EventBridge , and AWS Health Dashboard to - * notify for an event. + * IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and AWS Health Dashboard to notify + * for an event. * * * In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' @@ -752,7 +755,8 @@ public open class CfnTrustAnchor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchor.SourceDataProperty, - ) : CdkObject(cdkObject), SourceDataProperty { + ) : CdkObject(cdkObject), + SourceDataProperty { /** * The root certificate of the AWS Private Certificate Authority specified by this ARN is used * in trust validation for temporary credential requests. @@ -905,7 +909,8 @@ public open class CfnTrustAnchor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchor.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * A union object representing the data field of the TrustAnchor depending on its type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchorProps.kt index 3271f008ed..aa73ba4474 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rolesanywhere/CfnTrustAnchorProps.kt @@ -241,7 +241,8 @@ public interface CfnTrustAnchorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rolesanywhere.CfnTrustAnchorProps, - ) : CdkObject(cdkObject), CfnTrustAnchorProps { + ) : CdkObject(cdkObject), + CfnTrustAnchorProps { /** * Indicates whether the trust anchor is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordAttrs.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordAttrs.kt index 6dfc58a688..128a125bc3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordAttrs.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordAttrs.kt @@ -255,7 +255,8 @@ public interface ARecordAttrs : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.ARecordAttrs, - ) : CdkObject(cdkObject), ARecordAttrs { + ) : CdkObject(cdkObject), + ARecordAttrs { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordProps.kt index e37de1c3ea..b818747309 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ARecordProps.kt @@ -255,7 +255,8 @@ public interface ARecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.ARecordProps, - ) : CdkObject(cdkObject), ARecordProps { + ) : CdkObject(cdkObject), + ARecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AaaaRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AaaaRecordProps.kt index ec2189b524..dbb911e6f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AaaaRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AaaaRecordProps.kt @@ -255,7 +255,8 @@ public interface AaaaRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.AaaaRecordProps, - ) : CdkObject(cdkObject), AaaaRecordProps { + ) : CdkObject(cdkObject), + AaaaRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AliasRecordTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AliasRecordTargetConfig.kt index 89ed267402..3d436b9cca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AliasRecordTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/AliasRecordTargetConfig.kt @@ -74,7 +74,8 @@ public interface AliasRecordTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.AliasRecordTargetConfig, - ) : CdkObject(cdkObject), AliasRecordTargetConfig { + ) : CdkObject(cdkObject), + AliasRecordTargetConfig { /** * DNS name of the target. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaAmazonRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaAmazonRecordProps.kt index 158ab8183e..16f27d8ab4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaAmazonRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaAmazonRecordProps.kt @@ -251,7 +251,8 @@ public interface CaaAmazonRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CaaAmazonRecordProps, - ) : CdkObject(cdkObject), CaaAmazonRecordProps { + ) : CdkObject(cdkObject), + CaaAmazonRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordProps.kt index e25ee63cdf..3b59729660 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordProps.kt @@ -283,7 +283,8 @@ public interface CaaRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CaaRecordProps, - ) : CdkObject(cdkObject), CaaRecordProps { + ) : CdkObject(cdkObject), + CaaRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordValue.kt index 2acca49a45..576a971143 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CaaRecordValue.kt @@ -92,7 +92,8 @@ public interface CaaRecordValue { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CaaRecordValue, - ) : CdkObject(cdkObject), CaaRecordValue { + ) : CdkObject(cdkObject), + CaaRecordValue { /** * The flag. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollection.kt index fa73d02842..5f3a84fd1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollection.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCidrCollection( cdkObject: software.amazon.awscdk.services.route53.CfnCidrCollection, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -303,7 +304,8 @@ public open class CfnCidrCollection( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnCidrCollection.LocationProperty, - ) : CdkObject(cdkObject), LocationProperty { + ) : CdkObject(cdkObject), + LocationProperty { /** * List of CIDR blocks. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollectionProps.kt index fcaa56392c..c68fcdc4a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnCidrCollectionProps.kt @@ -109,7 +109,8 @@ public interface CfnCidrCollectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnCidrCollectionProps, - ) : CdkObject(cdkObject), CfnCidrCollectionProps { + ) : CdkObject(cdkObject), + CfnCidrCollectionProps { /** * A complex type that contains information about the list of CIDR locations. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSEC.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSEC.kt index c35e623d54..e8f9131c8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSEC.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSEC.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDNSSEC( cdkObject: software.amazon.awscdk.services.route53.CfnDNSSEC, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSECProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSECProps.kt index 667d9c2d29..b240da3d9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSECProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnDNSSECProps.kt @@ -63,7 +63,8 @@ public interface CfnDNSSECProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnDNSSECProps, - ) : CdkObject(cdkObject), CfnDNSSECProps { + ) : CdkObject(cdkObject), + CfnDNSSECProps { /** * A unique string (ID) that is used to identify a hosted zone. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheck.kt index 6cc0c1de3a..7043040744 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheck.kt @@ -99,7 +99,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHealthCheck( cdkObject: software.amazon.awscdk.services.route53.CfnHealthCheck, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -491,7 +492,8 @@ public open class CfnHealthCheck( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHealthCheck.AlarmIdentifierProperty, - ) : CdkObject(cdkObject), AlarmIdentifierProperty { + ) : CdkObject(cdkObject), + AlarmIdentifierProperty { /** * The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to * determine whether this health check is healthy. @@ -1758,7 +1760,8 @@ public open class CfnHealthCheck( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHealthCheck.HealthCheckConfigProperty, - ) : CdkObject(cdkObject), HealthCheckConfigProperty { + ) : CdkObject(cdkObject), + HealthCheckConfigProperty { /** * A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health * checkers to use to determine whether the specified health check is healthy. @@ -2237,7 +2240,8 @@ public open class CfnHealthCheck( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHealthCheck.HealthCheckTagProperty, - ) : CdkObject(cdkObject), HealthCheckTagProperty { + ) : CdkObject(cdkObject), + HealthCheckTagProperty { /** * The value of `Key` depends on the operation that you want to perform:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheckProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheckProps.kt index 0288a7bcd1..b20bf4de52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheckProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHealthCheckProps.kt @@ -189,7 +189,8 @@ public interface CfnHealthCheckProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHealthCheckProps, - ) : CdkObject(cdkObject), CfnHealthCheckProps { + ) : CdkObject(cdkObject), + CfnHealthCheckProps { /** * A complex type that contains detailed information about one health check. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZone.kt index ef7ef94a9a..2b1bb00b09 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZone.kt @@ -96,7 +96,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHostedZone( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZone, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53.CfnHostedZone(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1261,7 +1263,8 @@ public open class CfnHostedZone( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZone.HostedZoneConfigProperty, - ) : CdkObject(cdkObject), HostedZoneConfigProperty { + ) : CdkObject(cdkObject), + HostedZoneConfigProperty { /** * Any comments that you want to include about the hosted zone. * @@ -1395,7 +1398,8 @@ public open class CfnHostedZone( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZone.HostedZoneTagProperty, - ) : CdkObject(cdkObject), HostedZoneTagProperty { + ) : CdkObject(cdkObject), + HostedZoneTagProperty { /** * The value of `Key` depends on the operation that you want to perform:. * @@ -1498,7 +1502,8 @@ public open class CfnHostedZone( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZone.QueryLoggingConfigProperty, - ) : CdkObject(cdkObject), QueryLoggingConfigProperty { + ) : CdkObject(cdkObject), + QueryLoggingConfigProperty { /** * The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is * publishing logs to. @@ -1623,7 +1628,8 @@ public open class CfnHostedZone( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZone.VPCProperty, - ) : CdkObject(cdkObject), VPCProperty { + ) : CdkObject(cdkObject), + VPCProperty { /** * *Private hosted zones only:* The ID of an Amazon VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZoneProps.kt index cfebee76bf..d28ff76375 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnHostedZoneProps.kt @@ -1021,7 +1021,8 @@ public interface CfnHostedZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnHostedZoneProps, - ) : CdkObject(cdkObject), CfnHostedZoneProps { + ) : CdkObject(cdkObject), + CfnHostedZoneProps { /** * A complex type that contains an optional comment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKey.kt index 7bc2b837e3..5e1b924454 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKey.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKeySigningKey( cdkObject: software.amazon.awscdk.services.route53.CfnKeySigningKey, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKeyProps.kt index 1356c6c90a..9155efef4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnKeySigningKeyProps.kt @@ -178,7 +178,8 @@ public interface CfnKeySigningKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnKeySigningKeyProps, - ) : CdkObject(cdkObject), CfnKeySigningKeyProps { + ) : CdkObject(cdkObject), + CfnKeySigningKeyProps { /** * The unique string (ID) that is used to identify a hosted zone. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSet.kt index c51e395980..087c36de45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSet.kt @@ -82,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRecordSet( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -2987,7 +2988,8 @@ public open class CfnRecordSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet.AliasTargetProperty, - ) : CdkObject(cdkObject), AliasTargetProperty { + ) : CdkObject(cdkObject), + AliasTargetProperty { /** * *Alias records only:* The value that you specify depends on where you want to route * queries:. @@ -3356,7 +3358,8 @@ public open class CfnRecordSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet.CidrRoutingConfigProperty, - ) : CdkObject(cdkObject), CidrRoutingConfigProperty { + ) : CdkObject(cdkObject), + CidrRoutingConfigProperty { /** * The CIDR collection ID. * @@ -3469,7 +3472,8 @@ public open class CfnRecordSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet.CoordinatesProperty, - ) : CdkObject(cdkObject), CoordinatesProperty { + ) : CdkObject(cdkObject), + CoordinatesProperty { /** * Specifies a coordinate of the north–south position of a geographic point on the surface of * the Earth (-90 - 90). @@ -3660,7 +3664,8 @@ public open class CfnRecordSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet.GeoLocationProperty, - ) : CdkObject(cdkObject), GeoLocationProperty { + ) : CdkObject(cdkObject), + GeoLocationProperty { /** * For geolocation resource record sets, a two-letter abbreviation that identifies a * continent. Route 53 supports the following continent codes:. @@ -3933,7 +3938,8 @@ public open class CfnRecordSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSet.GeoProximityLocationProperty, - ) : CdkObject(cdkObject), GeoProximityLocationProperty { + ) : CdkObject(cdkObject), + GeoProximityLocationProperty { /** * The AWS Region the resource you are directing DNS traffic to, is in. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroup.kt index acf6b25d4d..bc87267328 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroup.kt @@ -80,7 +80,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRecordSetGroup( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53.CfnRecordSetGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1311,7 +1312,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.AliasTargetProperty, - ) : CdkObject(cdkObject), AliasTargetProperty { + ) : CdkObject(cdkObject), + AliasTargetProperty { /** * *Alias records only:* The value that you specify depends on where you want to route * queries:. @@ -1680,7 +1682,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.CidrRoutingConfigProperty, - ) : CdkObject(cdkObject), CidrRoutingConfigProperty { + ) : CdkObject(cdkObject), + CidrRoutingConfigProperty { /** * The CIDR collection ID. * @@ -1794,7 +1797,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.CoordinatesProperty, - ) : CdkObject(cdkObject), CoordinatesProperty { + ) : CdkObject(cdkObject), + CoordinatesProperty { /** * Specifies a coordinate of the north–south position of a geographic point on the surface of * the Earth (-90 - 90). @@ -1986,7 +1990,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoLocationProperty, - ) : CdkObject(cdkObject), GeoLocationProperty { + ) : CdkObject(cdkObject), + GeoLocationProperty { /** * For geolocation resource record sets, a two-letter abbreviation that identifies a * continent. Route 53 supports the following continent codes:. @@ -2259,7 +2264,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoProximityLocationProperty, - ) : CdkObject(cdkObject), GeoProximityLocationProperty { + ) : CdkObject(cdkObject), + GeoProximityLocationProperty { /** * The AWS Region the resource you are directing DNS traffic to, is in. * @@ -4118,7 +4124,8 @@ public open class CfnRecordSetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroup.RecordSetProperty, - ) : CdkObject(cdkObject), RecordSetProperty { + ) : CdkObject(cdkObject), + RecordSetProperty { /** * *Alias resource record sets only:* Information about the AWS resource, such as a CloudFront * distribution or an Amazon S3 bucket, that you want to route traffic to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroupProps.kt index ac6a11add0..ea5440e285 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetGroupProps.kt @@ -229,7 +229,8 @@ public interface CfnRecordSetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetGroupProps, - ) : CdkObject(cdkObject), CfnRecordSetGroupProps { + ) : CdkObject(cdkObject), + CfnRecordSetGroupProps { /** * *Optional:* Any comments you want to include about a change batch request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetProps.kt index 0b07dfc1e2..3ccd1e678f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CfnRecordSetProps.kt @@ -1850,7 +1850,8 @@ public interface CfnRecordSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CfnRecordSetProps, - ) : CdkObject(cdkObject), CfnRecordSetProps { + ) : CdkObject(cdkObject), + CfnRecordSetProps { /** * *Alias resource record sets only:* Information about the AWS resource, such as a CloudFront * distribution or an Amazon S3 bucket, that you want to route traffic to. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CnameRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CnameRecordProps.kt index 4badea84de..be1a67ddfe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CnameRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CnameRecordProps.kt @@ -279,7 +279,8 @@ public interface CnameRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CnameRecordProps, - ) : CdkObject(cdkObject), CnameRecordProps { + ) : CdkObject(cdkObject), + CnameRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CommonHostedZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CommonHostedZoneProps.kt index 8e5c963def..96369bdb44 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CommonHostedZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CommonHostedZoneProps.kt @@ -128,7 +128,8 @@ public interface CommonHostedZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CommonHostedZoneProps, - ) : CdkObject(cdkObject), CommonHostedZoneProps { + ) : CdkObject(cdkObject), + CommonHostedZoneProps { /** * Whether to add a trailing dot to the zone name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CrossAccountZoneDelegationRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CrossAccountZoneDelegationRecordProps.kt index a9ed1453d4..a88d3c65bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CrossAccountZoneDelegationRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/CrossAccountZoneDelegationRecordProps.kt @@ -187,7 +187,8 @@ public interface CrossAccountZoneDelegationRecordProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.CrossAccountZoneDelegationRecordProps, - ) : CdkObject(cdkObject), CrossAccountZoneDelegationRecordProps { + ) : CdkObject(cdkObject), + CrossAccountZoneDelegationRecordProps { /** * Region from which to obtain temporary credentials. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/DsRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/DsRecordProps.kt index de9dc5b577..217b874991 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/DsRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/DsRecordProps.kt @@ -266,7 +266,8 @@ public interface DsRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.DsRecordProps, - ) : CdkObject(cdkObject), DsRecordProps { + ) : CdkObject(cdkObject), + DsRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZone.kt index 4488d022a2..fd22492e65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZone.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HostedZone( cdkObject: software.amazon.awscdk.services.route53.HostedZone, -) : Resource(cdkObject), IHostedZone { +) : Resource(cdkObject), + IHostedZone { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneAttributes.kt index 211a51d8d0..a9538c4ddd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneAttributes.kt @@ -82,7 +82,8 @@ public interface HostedZoneAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.HostedZoneAttributes, - ) : CdkObject(cdkObject), HostedZoneAttributes { + ) : CdkObject(cdkObject), + HostedZoneAttributes { /** * Identifier of the hosted zone. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProps.kt index 58b75b3a71..2d9b518a86 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProps.kt @@ -147,7 +147,8 @@ public interface HostedZoneProps : CommonHostedZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.HostedZoneProps, - ) : CdkObject(cdkObject), HostedZoneProps { + ) : CdkObject(cdkObject), + HostedZoneProps { /** * Whether to add a trailing dot to the zone name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProviderProps.kt index ba4e4a8612..8f4ef07414 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/HostedZoneProviderProps.kt @@ -112,7 +112,8 @@ public interface HostedZoneProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.HostedZoneProviderProps, - ) : CdkObject(cdkObject), HostedZoneProviderProps { + ) : CdkObject(cdkObject), + HostedZoneProviderProps { /** * The zone domain e.g. example.com. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IAliasRecordTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IAliasRecordTarget.kt index 5f23627428..ae54e6cd52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IAliasRecordTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IAliasRecordTarget.kt @@ -28,7 +28,8 @@ public interface IAliasRecordTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IAliasRecordTarget, - ) : CdkObject(cdkObject), IAliasRecordTarget { + ) : CdkObject(cdkObject), + IAliasRecordTarget { /** * Return hosted zone ID and DNS name, usable for Route53 alias targets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IHostedZone.kt index 00cd7faffa..0538adbcfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IHostedZone.kt @@ -51,7 +51,8 @@ public interface IHostedZone : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IHostedZone, - ) : CdkObject(cdkObject), IHostedZone { + ) : CdkObject(cdkObject), + IHostedZone { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IKeySigningKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IKeySigningKey.kt index e430487507..c2cd20d088 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IKeySigningKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IKeySigningKey.kt @@ -32,7 +32,8 @@ public interface IKeySigningKey : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IKeySigningKey, - ) : CdkObject(cdkObject), IKeySigningKey { + ) : CdkObject(cdkObject), + IKeySigningKey { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPrivateHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPrivateHostedZone.kt index c1213ec945..86074e2467 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPrivateHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPrivateHostedZone.kt @@ -19,7 +19,8 @@ import kotlin.collections.List public interface IPrivateHostedZone : IHostedZone { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IPrivateHostedZone, - ) : CdkObject(cdkObject), IPrivateHostedZone { + ) : CdkObject(cdkObject), + IPrivateHostedZone { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPublicHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPublicHostedZone.kt index 7fcc5fee06..3409be6d7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPublicHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IPublicHostedZone.kt @@ -19,7 +19,8 @@ import kotlin.collections.List public interface IPublicHostedZone : IHostedZone { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IPublicHostedZone, - ) : CdkObject(cdkObject), IPublicHostedZone { + ) : CdkObject(cdkObject), + IPublicHostedZone { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IRecordSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IRecordSet.kt index ee06af397d..ad4e188c84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IRecordSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/IRecordSet.kt @@ -22,7 +22,8 @@ public interface IRecordSet : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.IRecordSet, - ) : CdkObject(cdkObject), IRecordSet { + ) : CdkObject(cdkObject), + IRecordSet { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKey.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKey.kt index 4466188f7f..62f848c497 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKey.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKey.kt @@ -29,7 +29,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class KeySigningKey( cdkObject: software.amazon.awscdk.services.route53.KeySigningKey, -) : Resource(cdkObject), IKeySigningKey { +) : Resource(cdkObject), + IKeySigningKey { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyAttributes.kt index 55e830a79f..7bf715cc64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyAttributes.kt @@ -75,7 +75,8 @@ public interface KeySigningKeyAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.KeySigningKeyAttributes, - ) : CdkObject(cdkObject), KeySigningKeyAttributes { + ) : CdkObject(cdkObject), + KeySigningKeyAttributes { /** * The hosted zone that the key signing key signs. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyProps.kt index ddb47cd65f..b190d21e01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/KeySigningKeyProps.kt @@ -128,7 +128,8 @@ public interface KeySigningKeyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.KeySigningKeyProps, - ) : CdkObject(cdkObject), KeySigningKeyProps { + ) : CdkObject(cdkObject), + KeySigningKeyProps { /** * The hosted zone that this key will be used to sign. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordProps.kt index 4673b84dfc..3a70c8b4e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordProps.kt @@ -282,7 +282,8 @@ public interface MxRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.MxRecordProps, - ) : CdkObject(cdkObject), MxRecordProps { + ) : CdkObject(cdkObject), + MxRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordValue.kt index bf9cd8c56a..7e3a317891 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/MxRecordValue.kt @@ -74,7 +74,8 @@ public interface MxRecordValue { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.MxRecordValue, - ) : CdkObject(cdkObject), MxRecordValue { + ) : CdkObject(cdkObject), + MxRecordValue { /** * The mail server host name. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/NsRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/NsRecordProps.kt index 5a658b3b4c..35a2ac1590 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/NsRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/NsRecordProps.kt @@ -266,7 +266,8 @@ public interface NsRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.NsRecordProps, - ) : CdkObject(cdkObject), NsRecordProps { + ) : CdkObject(cdkObject), + NsRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZone.kt index 592ed593d6..b4edc37009 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZone.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PrivateHostedZone( cdkObject: software.amazon.awscdk.services.route53.PrivateHostedZone, -) : HostedZone(cdkObject), IPrivateHostedZone { +) : HostedZone(cdkObject), + IPrivateHostedZone { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZoneProps.kt index 957a8378d2..9858c9207f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PrivateHostedZoneProps.kt @@ -118,7 +118,8 @@ public interface PrivateHostedZoneProps : CommonHostedZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.PrivateHostedZoneProps, - ) : CdkObject(cdkObject), PrivateHostedZoneProps { + ) : CdkObject(cdkObject), + PrivateHostedZoneProps { /** * Whether to add a trailing dot to the zone name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZone.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZone.kt index ea9a8120a4..3e90b85427 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZone.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZone.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PublicHostedZone( cdkObject: software.amazon.awscdk.services.route53.PublicHostedZone, -) : HostedZone(cdkObject), IPublicHostedZone { +) : HostedZone(cdkObject), + IPublicHostedZone { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneAttributes.kt index e44efec1b1..0c8470ed51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneAttributes.kt @@ -66,7 +66,8 @@ public interface PublicHostedZoneAttributes : HostedZoneAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.PublicHostedZoneAttributes, - ) : CdkObject(cdkObject), PublicHostedZoneAttributes { + ) : CdkObject(cdkObject), + PublicHostedZoneAttributes { /** * Identifier of the hosted zone. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneProps.kt index ca9be83b79..ef4256fd62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/PublicHostedZoneProps.kt @@ -239,7 +239,8 @@ public interface PublicHostedZoneProps : CommonHostedZoneProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.PublicHostedZoneProps, - ) : CdkObject(cdkObject), PublicHostedZoneProps { + ) : CdkObject(cdkObject), + PublicHostedZoneProps { /** * Whether to add a trailing dot to the zone name. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSet.kt index a911852dd6..8cef432ce6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSet.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class RecordSet( cdkObject: software.amazon.awscdk.services.route53.RecordSet, -) : Resource(cdkObject), IRecordSet { +) : Resource(cdkObject), + IRecordSet { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetOptions.kt index 55b05b6a96..44c29f51e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetOptions.kt @@ -361,7 +361,8 @@ public interface RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.RecordSetOptions, - ) : CdkObject(cdkObject), RecordSetOptions { + ) : CdkObject(cdkObject), + RecordSetOptions { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetProps.kt index aa5ace8779..683a0b3b7e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/RecordSetProps.kt @@ -289,7 +289,8 @@ public interface RecordSetProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.RecordSetProps, - ) : CdkObject(cdkObject), RecordSetProps { + ) : CdkObject(cdkObject), + RecordSetProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordProps.kt index c476f929b2..3728c8e95f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordProps.kt @@ -284,7 +284,8 @@ public interface SrvRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.SrvRecordProps, - ) : CdkObject(cdkObject), SrvRecordProps { + ) : CdkObject(cdkObject), + SrvRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordValue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordValue.kt index 07e8fac561..5d557b15b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordValue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/SrvRecordValue.kt @@ -110,7 +110,8 @@ public interface SrvRecordValue { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.SrvRecordValue, - ) : CdkObject(cdkObject), SrvRecordValue { + ) : CdkObject(cdkObject), + SrvRecordValue { /** * The server host name. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/TxtRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/TxtRecordProps.kt index 745c4c8012..52dd0cd411 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/TxtRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/TxtRecordProps.kt @@ -269,7 +269,8 @@ public interface TxtRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.TxtRecordProps, - ) : CdkObject(cdkObject), TxtRecordProps { + ) : CdkObject(cdkObject), + TxtRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/VpcEndpointServiceDomainNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/VpcEndpointServiceDomainNameProps.kt index 585dbb248e..61b2624512 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/VpcEndpointServiceDomainNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/VpcEndpointServiceDomainNameProps.kt @@ -107,7 +107,8 @@ public interface VpcEndpointServiceDomainNameProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.VpcEndpointServiceDomainNameProps, - ) : CdkObject(cdkObject), VpcEndpointServiceDomainNameProps { + ) : CdkObject(cdkObject), + VpcEndpointServiceDomainNameProps { /** * The domain name to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationOptions.kt index 79dece57d1..535d73e0d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationOptions.kt @@ -80,7 +80,8 @@ public interface ZoneDelegationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.ZoneDelegationOptions, - ) : CdkObject(cdkObject), ZoneDelegationOptions { + ) : CdkObject(cdkObject), + ZoneDelegationOptions { /** * A comment to add on the DNS record created to incorporate the delegation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationRecordProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationRecordProps.kt index 99f177d5e2..52acb4dde6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationRecordProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneDelegationRecordProps.kt @@ -281,7 +281,8 @@ public interface ZoneDelegationRecordProps : RecordSetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.ZoneDelegationRecordProps, - ) : CdkObject(cdkObject), ZoneDelegationRecordProps { + ) : CdkObject(cdkObject), + ZoneDelegationRecordProps { /** * A comment to add on the record. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneSigningOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneSigningOptions.kt index 59448c9f06..78c32599ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneSigningOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/ZoneSigningOptions.kt @@ -92,7 +92,8 @@ public interface ZoneSigningOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.ZoneSigningOptions, - ) : CdkObject(cdkObject), ZoneSigningOptions { + ) : CdkObject(cdkObject), + ZoneSigningOptions { /** * The name for the key signing key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/patterns/HttpsRedirectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/patterns/HttpsRedirectProps.kt index 7d479a53de..97f7b04730 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/patterns/HttpsRedirectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/patterns/HttpsRedirectProps.kt @@ -169,7 +169,8 @@ public interface HttpsRedirectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53.patterns.HttpsRedirectProps, - ) : CdkObject(cdkObject), HttpsRedirectProps { + ) : CdkObject(cdkObject), + HttpsRedirectProps { /** * The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront * distribution that will be created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayDomain.kt index acf187dbad..a4bffb2268 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayDomain.kt @@ -30,7 +30,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class ApiGatewayDomain( cdkObject: software.amazon.awscdk.services.route53.targets.ApiGatewayDomain, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(domainName: IDomainName) : this(software.amazon.awscdk.services.route53.targets.ApiGatewayDomain(domainName.let(IDomainName.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayv2DomainProperties.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayv2DomainProperties.kt index b9e6c0688c..934e5a5f5e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayv2DomainProperties.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayv2DomainProperties.kt @@ -28,7 +28,8 @@ import kotlin.String */ public open class ApiGatewayv2DomainProperties( cdkObject: software.amazon.awscdk.services.route53.targets.ApiGatewayv2DomainProperties, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(regionalDomainName: String, regionalHostedZoneId: String) : this(software.amazon.awscdk.services.route53.targets.ApiGatewayv2DomainProperties(regionalDomainName, regionalHostedZoneId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/BucketWebsiteTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/BucketWebsiteTarget.kt index 42e10a2f23..8612908bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/BucketWebsiteTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/BucketWebsiteTarget.kt @@ -35,7 +35,8 @@ import io.cloudshiftdev.awscdk.services.s3.IBucket */ public open class BucketWebsiteTarget( cdkObject: software.amazon.awscdk.services.route53.targets.BucketWebsiteTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(bucket: IBucket) : this(software.amazon.awscdk.services.route53.targets.BucketWebsiteTarget(bucket.let(IBucket.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ClassicLoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ClassicLoadBalancerTarget.kt index 5c5b48eda2..9208168951 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ClassicLoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ClassicLoadBalancerTarget.kt @@ -26,7 +26,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class ClassicLoadBalancerTarget( cdkObject: software.amazon.awscdk.services.route53.targets.ClassicLoadBalancerTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(loadBalancer: LoadBalancer) : this(software.amazon.awscdk.services.route53.targets.ClassicLoadBalancerTarget(loadBalancer.let(LoadBalancer.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/CloudFrontTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/CloudFrontTarget.kt index e2af5464be..9e0955a898 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/CloudFrontTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/CloudFrontTarget.kt @@ -28,7 +28,8 @@ import kotlin.String */ public open class CloudFrontTarget( cdkObject: software.amazon.awscdk.services.route53.targets.CloudFrontTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(distribution: IDistribution) : this(software.amazon.awscdk.services.route53.targets.CloudFrontTarget(distribution.let(IDistribution.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ElasticBeanstalkEnvironmentEndpointTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ElasticBeanstalkEnvironmentEndpointTarget.kt index c9d19ea692..5d7a69af65 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ElasticBeanstalkEnvironmentEndpointTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ElasticBeanstalkEnvironmentEndpointTarget.kt @@ -29,7 +29,8 @@ import kotlin.String */ public open class ElasticBeanstalkEnvironmentEndpointTarget( cdkObject: software.amazon.awscdk.services.route53.targets.ElasticBeanstalkEnvironmentEndpointTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(environmentEndpoint: String) : this(software.amazon.awscdk.services.route53.targets.ElasticBeanstalkEnvironmentEndpointTarget(environmentEndpoint) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/GlobalAcceleratorDomainTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/GlobalAcceleratorDomainTarget.kt index 2a2a9973bb..ba043d3076 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/GlobalAcceleratorDomainTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/GlobalAcceleratorDomainTarget.kt @@ -24,7 +24,8 @@ import kotlin.String */ public open class GlobalAcceleratorDomainTarget( cdkObject: software.amazon.awscdk.services.route53.targets.GlobalAcceleratorDomainTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(acceleratorDomainName: String) : this(software.amazon.awscdk.services.route53.targets.GlobalAcceleratorDomainTarget(acceleratorDomainName) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/InterfaceVpcEndpointTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/InterfaceVpcEndpointTarget.kt index a6f2cc7172..92f749b3db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/InterfaceVpcEndpointTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/InterfaceVpcEndpointTarget.kt @@ -26,7 +26,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class InterfaceVpcEndpointTarget( cdkObject: software.amazon.awscdk.services.route53.targets.InterfaceVpcEndpointTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(vpcEndpoint: InterfaceVpcEndpoint) : this(software.amazon.awscdk.services.route53.targets.InterfaceVpcEndpointTarget(vpcEndpoint.let(InterfaceVpcEndpoint.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/LoadBalancerTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/LoadBalancerTarget.kt index 84201a3b87..a66709a656 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/LoadBalancerTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/LoadBalancerTarget.kt @@ -26,7 +26,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class LoadBalancerTarget( cdkObject: software.amazon.awscdk.services.route53.targets.LoadBalancerTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(loadBalancer: ILoadBalancerV2) : this(software.amazon.awscdk.services.route53.targets.LoadBalancerTarget(loadBalancer.let(ILoadBalancerV2.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/Route53RecordTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/Route53RecordTarget.kt index f849a2573d..398f21d231 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/Route53RecordTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/Route53RecordTarget.kt @@ -24,7 +24,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class Route53RecordTarget( cdkObject: software.amazon.awscdk.services.route53.targets.Route53RecordTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(record: IRecordSet) : this(software.amazon.awscdk.services.route53.targets.Route53RecordTarget(record.let(IRecordSet.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/UserPoolDomainTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/UserPoolDomainTarget.kt index 83043d34f4..4038e89331 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/UserPoolDomainTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/UserPoolDomainTarget.kt @@ -26,7 +26,8 @@ import io.cloudshiftdev.awscdk.services.route53.IRecordSet */ public open class UserPoolDomainTarget( cdkObject: software.amazon.awscdk.services.route53.targets.UserPoolDomainTarget, -) : CdkObject(cdkObject), IAliasRecordTarget { +) : CdkObject(cdkObject), + IAliasRecordTarget { public constructor(domain: UserPoolDomain) : this(software.amazon.awscdk.services.route53.targets.UserPoolDomainTarget(domain.let(UserPoolDomain.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfile.kt index b3ad3fb37d..c9cec5d2ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfile.kt @@ -38,7 +38,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfile( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfile, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociation.kt index f57ba5736b..4391db1e9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociation.kt @@ -42,7 +42,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfileAssociation( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfileAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -116,12 +118,12 @@ public open class CfnProfileAssociation( } /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. */ public open fun resourceId(): String = unwrap(this).getResourceId() /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. */ public open fun resourceId(`value`: String) { unwrap(this).setResourceId(`value`) @@ -174,10 +176,10 @@ public open class CfnProfileAssociation( public fun profileId(profileId: String) /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53profiles-profileassociation.html#cfn-route53profiles-profileassociation-resourceid) - * @param resourceId The Amazon Resource Name (ARN) of the VPC. + * @param resourceId The ID of the VPC. */ public fun resourceId(resourceId: String) @@ -238,10 +240,10 @@ public open class CfnProfileAssociation( } /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53profiles-profileassociation.html#cfn-route53profiles-profileassociation-resourceid) - * @param resourceId The Amazon Resource Name (ARN) of the VPC. + * @param resourceId The ID of the VPC. */ override fun resourceId(resourceId: String) { cdkBuilder.resourceId(resourceId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociationProps.kt index cda137db50..87f444b41f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileAssociationProps.kt @@ -57,7 +57,7 @@ public interface CfnProfileAssociationProps { public fun profileId(): String /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53profiles-profileassociation.html#cfn-route53profiles-profileassociation-resourceid) */ @@ -91,7 +91,7 @@ public interface CfnProfileAssociationProps { public fun profileId(profileId: String) /** - * @param resourceId The Amazon Resource Name (ARN) of the VPC. + * @param resourceId The ID of the VPC. */ public fun resourceId(resourceId: String) @@ -133,7 +133,7 @@ public interface CfnProfileAssociationProps { } /** - * @param resourceId The Amazon Resource Name (ARN) of the VPC. + * @param resourceId The ID of the VPC. */ override fun resourceId(resourceId: String) { cdkBuilder.resourceId(resourceId) @@ -157,7 +157,8 @@ public interface CfnProfileAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfileAssociationProps, - ) : CdkObject(cdkObject), CfnProfileAssociationProps { + ) : CdkObject(cdkObject), + CfnProfileAssociationProps { /** * The Amazon Resource Name (ARN) of the profile association to a VPC. * @@ -180,7 +181,7 @@ public interface CfnProfileAssociationProps { override fun profileId(): String = unwrap(this).getProfileId() /** - * The Amazon Resource Name (ARN) of the VPC. + * The ID of the VPC. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53profiles-profileassociation.html#cfn-route53profiles-profileassociation-resourceid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileProps.kt index d0ee9fa6e5..3df2961c8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileProps.kt @@ -96,7 +96,8 @@ public interface CfnProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfileProps, - ) : CdkObject(cdkObject), CfnProfileProps { + ) : CdkObject(cdkObject), + CfnProfileProps { /** * Name of the Profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociation.kt index af7f987833..543fd33aac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociation.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfileResourceAssociation( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfileResourceAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociationProps.kt index d727007e34..d324332049 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53profiles/CfnProfileResourceAssociationProps.kt @@ -126,7 +126,8 @@ public interface CfnProfileResourceAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53profiles.CfnProfileResourceAssociationProps, - ) : CdkObject(cdkObject), CfnProfileResourceAssociationProps { + ) : CdkObject(cdkObject), + CfnProfileResourceAssociationProps { /** * Name of the Profile resource association. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnCluster.kt index a770c57ac2..dc8730cbc4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnCluster.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCluster( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnCluster, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -308,7 +310,8 @@ public open class CfnCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnCluster.ClusterEndpointProperty, - ) : CdkObject(cdkObject), ClusterEndpointProperty { + ) : CdkObject(cdkObject), + ClusterEndpointProperty { /** * A cluster endpoint URL for one of the five redundant clusters that you specify to set or * retrieve a routing control state. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnClusterProps.kt index 0caab791bd..ed8ff3794d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnClusterProps.kt @@ -104,7 +104,8 @@ public interface CfnClusterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnClusterProps, - ) : CdkObject(cdkObject), CfnClusterProps { + ) : CdkObject(cdkObject), + CfnClusterProps { /** * Name of the cluster. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanel.kt index 4dc0279e77..437083f394 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanel.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnControlPanel( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnControlPanel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanelProps.kt index 11363210be..fbf44870e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnControlPanelProps.kt @@ -121,7 +121,8 @@ public interface CfnControlPanelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnControlPanelProps, - ) : CdkObject(cdkObject), CfnControlPanelProps { + ) : CdkObject(cdkObject), + CfnControlPanelProps { /** * The Amazon Resource Name (ARN) of the cluster for the control panel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControl.kt index 3e8467c546..33608cdf90 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControl.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControl.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRoutingControl( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnRoutingControl, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControlProps.kt index 3a0fda9135..60f119861e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControlProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnRoutingControlProps.kt @@ -111,7 +111,8 @@ public interface CfnRoutingControlProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnRoutingControlProps, - ) : CdkObject(cdkObject), CfnRoutingControlProps { + ) : CdkObject(cdkObject), + CfnRoutingControlProps { /** * The Amazon Resource Name (ARN) of the cluster that hosts the routing control. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRule.kt index 1208045902..4fd12fc405 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRule.kt @@ -79,7 +79,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSafetyRule( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -800,7 +802,8 @@ public open class CfnSafetyRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRule.AssertionRuleProperty, - ) : CdkObject(cdkObject), AssertionRuleProperty { + ) : CdkObject(cdkObject), + AssertionRuleProperty { /** * The routing controls that are part of transactions that are evaluated to determine if a * request to change a routing control state is allowed. @@ -1018,7 +1021,8 @@ public open class CfnSafetyRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRule.GatingRuleProperty, - ) : CdkObject(cdkObject), GatingRuleProperty { + ) : CdkObject(cdkObject), + GatingRuleProperty { /** * An array of gating routing control Amazon Resource Names (ARNs). * @@ -1196,7 +1200,8 @@ public open class CfnSafetyRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRule.RuleConfigProperty, - ) : CdkObject(cdkObject), RuleConfigProperty { + ) : CdkObject(cdkObject), + RuleConfigProperty { /** * Logical negation of the rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRuleProps.kt index 4fb7234473..8b9507086c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoverycontrol/CfnSafetyRuleProps.kt @@ -395,7 +395,8 @@ public interface CfnSafetyRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoverycontrol.CfnSafetyRuleProps, - ) : CdkObject(cdkObject), CfnSafetyRuleProps { + ) : CdkObject(cdkObject), + CfnSafetyRuleProps { /** * An assertion rule enforces that, when you change a routing control state, that the criteria * that you set in the rule configuration is met. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCell.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCell.kt index 5d532b598d..ed55f40ed5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCell.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCell.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCell( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnCell, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53recoveryreadiness.CfnCell(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCellProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCellProps.kt index a5146a5945..cbf03a799a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCellProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnCellProps.kt @@ -137,7 +137,8 @@ public interface CfnCellProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnCellProps, - ) : CdkObject(cdkObject), CfnCellProps { + ) : CdkObject(cdkObject), + CfnCellProps { /** * The name of the cell to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheck.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheck.kt index 114095e726..bb3ae054e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheck.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheck.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReadinessCheck( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnReadinessCheck, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53recoveryreadiness.CfnReadinessCheck(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheckProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheckProps.kt index 5d80d2cef6..6f3d88d1bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheckProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnReadinessCheckProps.kt @@ -117,7 +117,8 @@ public interface CfnReadinessCheckProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnReadinessCheckProps, - ) : CdkObject(cdkObject), CfnReadinessCheckProps { + ) : CdkObject(cdkObject), + CfnReadinessCheckProps { /** * The name of the readiness check to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroup.kt index 0c0ea3be2f..cbf35d4c2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroup.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRecoveryGroup( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnRecoveryGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53recoveryreadiness.CfnRecoveryGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroupProps.kt index 49fc26358a..6405014e7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnRecoveryGroupProps.kt @@ -127,7 +127,8 @@ public interface CfnRecoveryGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnRecoveryGroupProps, - ) : CdkObject(cdkObject), CfnRecoveryGroupProps { + ) : CdkObject(cdkObject), + CfnRecoveryGroupProps { /** * A list of the cell Amazon Resource Names (ARNs) in the recovery group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSet.kt index 6d9ce3422f..4e78536c72 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSet.kt @@ -77,7 +77,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceSet( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -549,7 +551,8 @@ public open class CfnResourceSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.DNSTargetResourceProperty, - ) : CdkObject(cdkObject), DNSTargetResourceProperty { + ) : CdkObject(cdkObject), + DNSTargetResourceProperty { /** * The domain name that acts as an ingress point to a portion of the customer application. * @@ -661,7 +664,8 @@ public open class CfnResourceSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.NLBResourceProperty, - ) : CdkObject(cdkObject), NLBResourceProperty { + ) : CdkObject(cdkObject), + NLBResourceProperty { /** * The Network Load Balancer resource Amazon Resource Name (ARN). * @@ -763,7 +767,8 @@ public open class CfnResourceSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.R53ResourceRecordProperty, - ) : CdkObject(cdkObject), R53ResourceRecordProperty { + ) : CdkObject(cdkObject), + R53ResourceRecordProperty { /** * The DNS target domain name. * @@ -1004,7 +1009,8 @@ public open class CfnResourceSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.ResourceProperty, - ) : CdkObject(cdkObject), ResourceProperty { + ) : CdkObject(cdkObject), + ResourceProperty { /** * The component identifier of the resource, generated when DNS target resource is used. * @@ -1196,7 +1202,8 @@ public open class CfnResourceSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.TargetResourceProperty, - ) : CdkObject(cdkObject), TargetResourceProperty { + ) : CdkObject(cdkObject), + TargetResourceProperty { /** * The Network Load Balancer resource that a DNS target resource points to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSetProps.kt index f8f1bb7ca6..d16726b7df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53recoveryreadiness/CfnResourceSetProps.kt @@ -211,7 +211,8 @@ public interface CfnResourceSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSetProps, - ) : CdkObject(cdkObject), CfnResourceSetProps { + ) : CdkObject(cdkObject), + CfnResourceSetProps { /** * The name of the resource set to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainList.kt index 65ed809e8f..37f2299942 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainList.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFirewallDomainList( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallDomainList, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53resolver.CfnFirewallDomainList(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainListProps.kt index 69dd0a724b..ed66b09697 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallDomainListProps.kt @@ -160,7 +160,8 @@ public interface CfnFirewallDomainListProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallDomainListProps, - ) : CdkObject(cdkObject), CfnFirewallDomainListProps { + ) : CdkObject(cdkObject), + CfnFirewallDomainListProps { /** * The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon * S3) that contains the list of domains to import. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroup.kt index 15979d67b1..42c62c7d30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroup.kt @@ -45,6 +45,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .blockOverrideDomain("blockOverrideDomain") * .blockOverrideTtl(123) * .blockResponse("blockResponse") + * .firewallDomainRedirectionAction("firewallDomainRedirectionAction") * .qtype("qtype") * .build())) * .name("name") @@ -59,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFirewallRuleGroup( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -378,6 +381,7 @@ public open class CfnFirewallRuleGroup( * .blockOverrideDomain("blockOverrideDomain") * .blockOverrideTtl(123) * .blockResponse("blockResponse") + * .firewallDomainRedirectionAction("firewallDomainRedirectionAction") * .qtype("qtype") * .build(); * ``` @@ -454,6 +458,21 @@ public open class CfnFirewallRuleGroup( */ public fun firewallDomainListId(): String + /** + * How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as + * CNAME, or DNAME. + * + * `Inspect_Redirection_Domain` (Default) inspects all domains in the redirection chain. The + * individual domains in the redirection chain must be added to the domain list. + * + * `Trust_Redirection_Domain` inspects only the first domain in the redirection chain. You don't + * need to add the subsequent domains in the domain in the redirection list to the domain list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-firewallrulegroup-firewallrule.html#cfn-route53resolver-firewallrulegroup-firewallrule-firewalldomainredirectionaction) + */ + public fun firewallDomainRedirectionAction(): String? = + unwrap(this).getFirewallDomainRedirectionAction() + /** * The priority of the rule in the rule group. * @@ -546,6 +565,18 @@ public open class CfnFirewallRuleGroup( */ public fun firewallDomainListId(firewallDomainListId: String) + /** + * @param firewallDomainRedirectionAction How you want the the rule to evaluate DNS + * redirection in the DNS redirection chain, such as CNAME, or DNAME. + * `Inspect_Redirection_Domain` (Default) inspects all domains in the redirection chain. The + * individual domains in the redirection chain must be added to the domain list. + * + * `Trust_Redirection_Domain` inspects only the first domain in the redirection chain. You + * don't need to add the subsequent domains in the domain in the redirection list to the domain + * list. + */ + public fun firewallDomainRedirectionAction(firewallDomainRedirectionAction: String) + /** * @param priority The priority of the rule in the rule group. * This value must be unique within the rule group. DNS Firewall processes the rules in a rule @@ -646,6 +677,20 @@ public open class CfnFirewallRuleGroup( cdkBuilder.firewallDomainListId(firewallDomainListId) } + /** + * @param firewallDomainRedirectionAction How you want the the rule to evaluate DNS + * redirection in the DNS redirection chain, such as CNAME, or DNAME. + * `Inspect_Redirection_Domain` (Default) inspects all domains in the redirection chain. The + * individual domains in the redirection chain must be added to the domain list. + * + * `Trust_Redirection_Domain` inspects only the first domain in the redirection chain. You + * don't need to add the subsequent domains in the domain in the redirection list to the domain + * list. + */ + override fun firewallDomainRedirectionAction(firewallDomainRedirectionAction: String) { + cdkBuilder.firewallDomainRedirectionAction(firewallDomainRedirectionAction) + } + /** * @param priority The priority of the rule in the rule group. * This value must be unique within the rule group. DNS Firewall processes the rules in a rule @@ -686,7 +731,8 @@ public open class CfnFirewallRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroup.FirewallRuleProperty, - ) : CdkObject(cdkObject), FirewallRuleProperty { + ) : CdkObject(cdkObject), + FirewallRuleProperty { /** * The action that DNS Firewall should take on a DNS query when it matches one of the domains * in the rule's domain list: - `ALLOW` - Permit the request to go through. @@ -756,6 +802,22 @@ public open class CfnFirewallRuleGroup( */ override fun firewallDomainListId(): String = unwrap(this).getFirewallDomainListId() + /** + * How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as + * CNAME, or DNAME. + * + * `Inspect_Redirection_Domain` (Default) inspects all domains in the redirection chain. The + * individual domains in the redirection chain must be added to the domain list. + * + * `Trust_Redirection_Domain` inspects only the first domain in the redirection chain. You + * don't need to add the subsequent domains in the domain in the redirection list to the domain + * list. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-firewallrulegroup-firewallrule.html#cfn-route53resolver-firewallrulegroup-firewallrule-firewalldomainredirectionaction) + */ + override fun firewallDomainRedirectionAction(): String? = + unwrap(this).getFirewallDomainRedirectionAction() + /** * The priority of the rule in the rule group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociation.kt index 12cbe86a93..fdbdc2773f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociation.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFirewallRuleGroupAssociation( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroupAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociationProps.kt index c637697202..c426b0c1cf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupAssociationProps.kt @@ -215,7 +215,8 @@ public interface CfnFirewallRuleGroupAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroupAssociationProps, - ) : CdkObject(cdkObject), CfnFirewallRuleGroupAssociationProps { + ) : CdkObject(cdkObject), + CfnFirewallRuleGroupAssociationProps { /** * The unique identifier of the firewall rule group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupProps.kt index cfd3227c71..626518967f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnFirewallRuleGroupProps.kt @@ -31,6 +31,7 @@ import kotlin.collections.List * .blockOverrideDomain("blockOverrideDomain") * .blockOverrideTtl(123) * .blockResponse("blockResponse") + * .firewallDomainRedirectionAction("firewallDomainRedirectionAction") * .qtype("qtype") * .build())) * .name("name") @@ -151,7 +152,8 @@ public interface CfnFirewallRuleGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnFirewallRuleGroupProps, - ) : CdkObject(cdkObject), CfnFirewallRuleGroupProps { + ) : CdkObject(cdkObject), + CfnFirewallRuleGroupProps { /** * A list of the rules that you have defined. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolver.kt index 118de98961..05c6a69005 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolver.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnOutpostResolver( cdkObject: software.amazon.awscdk.services.route53resolver.CfnOutpostResolver, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolverProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolverProps.kt index 0e71de403f..98927e3d99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolverProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnOutpostResolverProps.kt @@ -162,7 +162,8 @@ public interface CfnOutpostResolverProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnOutpostResolverProps, - ) : CdkObject(cdkObject), CfnOutpostResolverProps { + ) : CdkObject(cdkObject), + CfnOutpostResolverProps { /** * Amazon EC2 instance count for the Resolver on the Outpost. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfig.kt index ca9efa9a35..82fdeccecc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfig.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverConfig( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfigProps.kt index 84ba2c9c4c..94f2d39442 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverConfigProps.kt @@ -90,7 +90,8 @@ public interface CfnResolverConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverConfigProps, - ) : CdkObject(cdkObject), CfnResolverConfigProps { + ) : CdkObject(cdkObject), + CfnResolverConfigProps { /** * Represents the desired status of `AutodefinedReverse` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfig.kt index 1e52a1a899..7047b2d89b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfig.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverDNSSECConfig( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverDNSSECConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53resolver.CfnResolverDNSSECConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfigProps.kt index 09198a1c10..48bb14a591 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverDNSSECConfigProps.kt @@ -65,7 +65,8 @@ public interface CfnResolverDNSSECConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverDNSSECConfigProps, - ) : CdkObject(cdkObject), CfnResolverDNSSECConfigProps { + ) : CdkObject(cdkObject), + CfnResolverDNSSECConfigProps { /** * The ID of the virtual private cloud (VPC) that you're configuring the DNSSEC validation * status for. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpoint.kt index 588772de53..3dc9660fa1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpoint.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverEndpoint( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -830,7 +832,8 @@ public open class CfnResolverEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverEndpoint.IpAddressRequestProperty, - ) : CdkObject(cdkObject), IpAddressRequestProperty { + ) : CdkObject(cdkObject), + IpAddressRequestProperty { /** * The IPv4 address that you want to use for DNS queries. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpointProps.kt index 26829a4407..3f2a7a0ba4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverEndpointProps.kt @@ -441,7 +441,8 @@ public interface CfnResolverEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverEndpointProps, - ) : CdkObject(cdkObject), CfnResolverEndpointProps { + ) : CdkObject(cdkObject), + CfnResolverEndpointProps { /** * Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfig.kt index 6421acac32..5a6f556b67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfig.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverQueryLoggingConfig( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociation.kt index 926a294df6..315d3c6c1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociation.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverQueryLoggingConfigAssociation( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfigAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfigAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociationProps.kt index 11c048c1d0..2d7040d72f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigAssociationProps.kt @@ -88,7 +88,8 @@ public interface CfnResolverQueryLoggingConfigAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfigAssociationProps, - ) : CdkObject(cdkObject), CfnResolverQueryLoggingConfigAssociationProps { + ) : CdkObject(cdkObject), + CfnResolverQueryLoggingConfigAssociationProps { /** * The ID of the query logging configuration that a VPC is associated with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigProps.kt index 5dcdf43735..23d2653b9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverQueryLoggingConfigProps.kt @@ -86,7 +86,8 @@ public interface CfnResolverQueryLoggingConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverQueryLoggingConfigProps, - ) : CdkObject(cdkObject), CfnResolverQueryLoggingConfigProps { + ) : CdkObject(cdkObject), + CfnResolverQueryLoggingConfigProps { /** * The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a * CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRule.kt index c429a0c05b..1211e0d485 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRule.kt @@ -31,9 +31,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.route53resolver.*; * CfnResolverRule cfnResolverRule = CfnResolverRule.Builder.create(this, "MyCfnResolverRule") - * .domainName("domainName") * .ruleType("ruleType") * // the properties below are optional + * .delegationRecord("delegationRecord") + * .domainName("domainName") * .name("name") * .resolverEndpointId("resolverEndpointId") * .tags(List.of(CfnTag.builder() @@ -53,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverRule( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -114,11 +117,23 @@ public open class CfnResolverRule( public open fun attrTargetIps(): IResolvable = unwrap(this).getAttrTargetIps().let(IResolvable::wrap) + /** + * The name server domain for queries to be delegated to if a query matches the delegation record. + */ + public open fun delegationRecord(): String? = unwrap(this).getDelegationRecord() + + /** + * The name server domain for queries to be delegated to if a query matches the delegation record. + */ + public open fun delegationRecord(`value`: String) { + unwrap(this).setDelegationRecord(`value`) + } + /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in * `TargetIps` . */ - public open fun domainName(): String = unwrap(this).getDomainName() + public open fun domainName(): String? = unwrap(this).getDomainName() /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in @@ -231,6 +246,16 @@ public open class CfnResolverRule( */ @CdkDslMarker public interface Builder { + /** + * The name server domain for queries to be delegated to if a query matches the delegation + * record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-delegationrecord) + * @param delegationRecord The name server domain for queries to be delegated to if a query + * matches the delegation record. + */ + public fun delegationRecord(delegationRecord: String) + /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in * `TargetIps` . @@ -344,6 +369,18 @@ public open class CfnResolverRule( private val cdkBuilder: software.amazon.awscdk.services.route53resolver.CfnResolverRule.Builder = software.amazon.awscdk.services.route53resolver.CfnResolverRule.Builder.create(scope, id) + /** + * The name server domain for queries to be delegated to if a query matches the delegation + * record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-delegationrecord) + * @param delegationRecord The name server domain for queries to be delegated to if a query + * matches the delegation record. + */ + override fun delegationRecord(delegationRecord: String) { + cdkBuilder.delegationRecord(delegationRecord) + } + /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in * `TargetIps` . @@ -653,7 +690,8 @@ public open class CfnResolverRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverRule.TargetAddressProperty, - ) : CdkObject(cdkObject), TargetAddressProperty { + ) : CdkObject(cdkObject), + TargetAddressProperty { /** * One IPv4 address that you want to forward DNS queries to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociation.kt index 4e5f8f804a..82d13a50e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociation.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResolverRuleAssociation( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverRuleAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociationProps.kt index e818fb40dc..7f73266d1a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleAssociationProps.kt @@ -106,7 +106,8 @@ public interface CfnResolverRuleAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverRuleAssociationProps, - ) : CdkObject(cdkObject), CfnResolverRuleAssociationProps { + ) : CdkObject(cdkObject), + CfnResolverRuleAssociationProps { /** * The name of an association between a Resolver rule and a VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleProps.kt index 35f6c93880..af10c793c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53resolver/CfnResolverRuleProps.kt @@ -22,9 +22,10 @@ import kotlin.collections.List * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.route53resolver.*; * CfnResolverRuleProps cfnResolverRuleProps = CfnResolverRuleProps.builder() - * .domainName("domainName") * .ruleType("ruleType") * // the properties below are optional + * .delegationRecord("delegationRecord") + * .domainName("domainName") * .name("name") * .resolverEndpointId("resolverEndpointId") * .tags(List.of(CfnTag.builder() @@ -43,6 +44,13 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html) */ public interface CfnResolverRuleProps { + /** + * The name server domain for queries to be delegated to if a query matches the delegation record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-delegationrecord) + */ + public fun delegationRecord(): String? = unwrap(this).getDelegationRecord() + /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in * `TargetIps` . @@ -52,7 +60,7 @@ public interface CfnResolverRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-domainname) */ - public fun domainName(): String + public fun domainName(): String? = unwrap(this).getDomainName() /** * The name for the Resolver rule, which you specified when you created the Resolver rule. @@ -109,9 +117,15 @@ public interface CfnResolverRuleProps { */ @CdkDslMarker public interface Builder { + /** + * @param delegationRecord The name server domain for queries to be delegated to if a query + * matches the delegation record. + */ + public fun delegationRecord(delegationRecord: String) + /** * @param domainName DNS queries for this domain name are forwarded to the IP addresses that are - * specified in `TargetIps` . + * specified in `TargetIps` . * If a query matches multiple Resolver rules (example.com and www.example.com), the query is * routed using the Resolver rule that contains the most specific domain name (www.example.com). */ @@ -181,9 +195,17 @@ public interface CfnResolverRuleProps { software.amazon.awscdk.services.route53resolver.CfnResolverRuleProps.Builder = software.amazon.awscdk.services.route53resolver.CfnResolverRuleProps.builder() + /** + * @param delegationRecord The name server domain for queries to be delegated to if a query + * matches the delegation record. + */ + override fun delegationRecord(delegationRecord: String) { + cdkBuilder.delegationRecord(delegationRecord) + } + /** * @param domainName DNS queries for this domain name are forwarded to the IP addresses that are - * specified in `TargetIps` . + * specified in `TargetIps` . * If a query matches multiple Resolver rules (example.com and www.example.com), the query is * routed using the Resolver rule that contains the most specific domain name (www.example.com). */ @@ -267,7 +289,16 @@ public interface CfnResolverRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.route53resolver.CfnResolverRuleProps, - ) : CdkObject(cdkObject), CfnResolverRuleProps { + ) : CdkObject(cdkObject), + CfnResolverRuleProps { + /** + * The name server domain for queries to be delegated to if a query matches the delegation + * record. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-delegationrecord) + */ + override fun delegationRecord(): String? = unwrap(this).getDelegationRecord() + /** * DNS queries for this domain name are forwarded to the IP addresses that are specified in * `TargetIps` . @@ -277,7 +308,7 @@ public interface CfnResolverRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-domainname) */ - override fun domainName(): String = unwrap(this).getDomainName() + override fun domainName(): String? = unwrap(this).getDomainName() /** * The name for the Resolver rule, which you specified when you created the Resolver rule. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitor.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitor.kt index e5bd590958..e3df74cf4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitor.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitor.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAppMonitor( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitor, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1142,7 +1144,8 @@ public open class CfnAppMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitor.AppMonitorConfigurationProperty, - ) : CdkObject(cdkObject), AppMonitorConfigurationProperty { + ) : CdkObject(cdkObject), + AppMonitorConfigurationProperty { /** * If you set this to `true` , the CloudWatch RUM web client sets two cookies, a session * cookie and a user cookie. @@ -1325,7 +1328,8 @@ public open class CfnAppMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitor.CustomEventsProperty, - ) : CdkObject(cdkObject), CustomEventsProperty { + ) : CdkObject(cdkObject), + CustomEventsProperty { /** * Set this to `ENABLED` to allow the web client to send custom events for this app monitor. * @@ -1610,7 +1614,8 @@ public open class CfnAppMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitor.MetricDefinitionProperty, - ) : CdkObject(cdkObject), MetricDefinitionProperty { + ) : CdkObject(cdkObject), + MetricDefinitionProperty { /** * This field is a map of field paths to dimension names. * @@ -1879,7 +1884,8 @@ public open class CfnAppMonitor( private class Wrapper( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitor.MetricDestinationProperty, - ) : CdkObject(cdkObject), MetricDestinationProperty { + ) : CdkObject(cdkObject), + MetricDestinationProperty { /** * Defines the destination to send the metrics to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitorProps.kt index 864c0e0c3f..120992f10f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/rum/CfnAppMonitorProps.kt @@ -454,7 +454,8 @@ public interface CfnAppMonitorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.rum.CfnAppMonitorProps, - ) : CdkObject(cdkObject), CfnAppMonitorProps { + ) : CdkObject(cdkObject), + CfnAppMonitorProps { /** * A structure that contains much of the configuration data for the app monitor. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BlockPublicAccessOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BlockPublicAccessOptions.kt index e30197116c..ffbf5869cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BlockPublicAccessOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BlockPublicAccessOptions.kt @@ -110,7 +110,8 @@ public interface BlockPublicAccessOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BlockPublicAccessOptions, - ) : CdkObject(cdkObject), BlockPublicAccessOptions { + ) : CdkObject(cdkObject), + BlockPublicAccessOptions { /** * Whether to block public ACLs. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Bucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Bucket.kt index 07bdd5ab8c..45cbfcb063 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Bucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Bucket.kt @@ -269,8 +269,7 @@ public open class Bucket( * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. * * Default: - false * @@ -458,6 +457,17 @@ public open class Bucket( */ public fun notificationsHandlerRole(notificationsHandlerRole: IRole) + /** + * Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations. + * + * Default: false + * + * @param notificationsSkipDestinationValidation Skips notification validation of Amazon SQS, + * Amazon SNS, and Lambda destinations. + */ + public + fun notificationsSkipDestinationValidation(notificationsSkipDestinationValidation: Boolean) + /** * The default retention mode and rules for S3 Object Lock. * @@ -487,7 +497,9 @@ public open class Bucket( /** * The objectOwnership of the bucket. * - * Default: - No ObjectOwnership configuration, uploading account will own the object. + * Default: - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to + * `Bucket owner enforced`. + * This means ACLs are disabled and the bucket owner will own every object. * * [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html) * @param objectOwnership The objectOwnership of the bucket. @@ -716,8 +728,7 @@ public open class Bucket( * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. * * Default: - false * @@ -934,6 +945,19 @@ public open class Bucket( cdkBuilder.notificationsHandlerRole(notificationsHandlerRole.let(IRole.Companion::unwrap)) } + /** + * Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations. + * + * Default: false + * + * @param notificationsSkipDestinationValidation Skips notification validation of Amazon SQS, + * Amazon SNS, and Lambda destinations. + */ + override + fun notificationsSkipDestinationValidation(notificationsSkipDestinationValidation: Boolean) { + cdkBuilder.notificationsSkipDestinationValidation(notificationsSkipDestinationValidation) + } + /** * The default retention mode and rules for S3 Object Lock. * @@ -967,7 +991,9 @@ public open class Bucket( /** * The objectOwnership of the bucket. * - * Default: - No ObjectOwnership configuration, uploading account will own the object. + * Default: - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to + * `Bucket owner enforced`. + * This means ACLs are disabled and the bucket owner will own every object. * * [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html) * @param objectOwnership The objectOwnership of the bucket. @@ -1184,6 +1210,11 @@ public open class Bucket( software.amazon.awscdk.services.s3.Bucket.validateBucketName(physicalName) } + public fun validateBucketName(physicalName: String, allowLegacyBucketNaming: Boolean) { + software.amazon.awscdk.services.s3.Bucket.validateBucketName(physicalName, + allowLegacyBucketNaming) + } + public operator fun invoke( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketAttributes.kt index df0bd5fd2b..52728650dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketAttributes.kt @@ -317,7 +317,8 @@ public interface BucketAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BucketAttributes, - ) : CdkObject(cdkObject), BucketAttributes { + ) : CdkObject(cdkObject), + BucketAttributes { /** * The account this existing bucket belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketBase.kt index 763ab2f116..5daa16ba37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketBase.kt @@ -36,7 +36,8 @@ import kotlin.jvm.JvmName */ public abstract class BucketBase( cdkObject: software.amazon.awscdk.services.s3.BucketBase, -) : Resource(cdkObject), IBucket { +) : Resource(cdkObject), + IBucket { /** * Adds a bucket notification event destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketMetrics.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketMetrics.kt index eea4020422..5e7031342f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketMetrics.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketMetrics.kt @@ -100,7 +100,8 @@ public interface BucketMetrics { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BucketMetrics, - ) : CdkObject(cdkObject), BucketMetrics { + ) : CdkObject(cdkObject), + BucketMetrics { /** * The ID used to identify the metrics configuration. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketNotificationDestinationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketNotificationDestinationConfig.kt index 919590bc54..64fb73289c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketNotificationDestinationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketNotificationDestinationConfig.kt @@ -116,7 +116,8 @@ public interface BucketNotificationDestinationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BucketNotificationDestinationConfig, - ) : CdkObject(cdkObject), BucketNotificationDestinationConfig { + ) : CdkObject(cdkObject), + BucketNotificationDestinationConfig { /** * The ARN of the destination (i.e. Lambda, SNS, SQS). */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicy.kt index 78fdde5547..a384bc0624 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicy.kt @@ -23,20 +23,47 @@ import software.constructs.Construct as SoftwareConstructsConstruct * policy if one doesn't exist yet, otherwise it will add to the existing * policy. * - * Prefer to use `addToResourcePolicy()` instead. + * The bucket policy method is implemented differently than `addToResourcePolicy()` + * as `BucketPolicy()` creates a new policy without knowing one earlier existed. + * e.g. if during Bucket creation, if `autoDeleteObject:true`, these policies are + * added to the bucket policy: + * ["s3:DeleteObject*", "s3:GetBucket*", "s3:List*", "s3:PutBucketPolicy"], + * and when you add a new BucketPolicy with ["s3:GetObject", "s3:ListBucket"] on + * this existing bucket, invoking `BucketPolicy()` will create a new Policy + * without knowing one earlier exists already, so it creates a new one. + * In this case, the custom resource handler will not have access to + * `s3:GetBucketTagging` action which will cause failure during deletion of stack. + * + * Hence its strongly recommended to use `addToResourcePolicy()` method to add + * new permissions to existing policy. * * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.*; - * import io.cloudshiftdev.awscdk.services.s3.*; - * Bucket bucket; - * BucketPolicy bucketPolicy = BucketPolicy.Builder.create(this, "MyBucketPolicy") - * .bucket(bucket) - * // the properties below are optional - * .removalPolicy(RemovalPolicy.DESTROY) + * String bucketName = "my-favorite-bucket-name"; + * Bucket accessLogsBucket = Bucket.Builder.create(this, "AccessLogsBucket") + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) + * .bucketName(bucketName) + * .build(); + * CfnBucketPolicy bucketPolicy = CfnBucketPolicy.Builder.create(this, "BucketPolicy") + * .bucket(bucketName) + * .policyDocument(Map.of( + * "Statement", List.of(Map.of( + * "Action", "s3:*", + * "Effect", "Deny", + * "Principal", Map.of( + * "AWS", "*"), + * "Resource", List.of(accessLogsBucket.getBucketArn(), String.format("%s/ *", + * accessLogsBucket.getBucketArn())))), + * "Version", "2012-10-17")) + * .build(); + * // Wrap L1 Construct with L2 Bucket Policy Construct. Subsequent + * // generated bucket policy to allow access log delivery would append + * // to the current policy. + * BucketPolicy.fromCfnBucketPolicy(bucketPolicy); + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .serverAccessLogsBucket(accessLogsBucket) + * .serverAccessLogsPrefix("logs") * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicyProps.kt index f6f2ccac78..03b41ad24c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketPolicyProps.kt @@ -77,7 +77,8 @@ public interface BucketPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BucketPolicyProps, - ) : CdkObject(cdkObject), BucketPolicyProps { + ) : CdkObject(cdkObject), + BucketPolicyProps { /** * The Amazon S3 bucket that the policy applies to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketProps.kt index 61de44932e..a36b18996c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/BucketProps.kt @@ -19,21 +19,18 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Bucket sourceBucket = Bucket.Builder.create(this, "MyBucket") - * .versioned(true) + * import io.cloudshiftdev.awscdk.services.kms.*; + * Key myKmsKey = new Key(this, "myKMSKey"); + * Bucket myBucket = Bucket.Builder.create(this, "mySSEKMSEncryptedBucket") + * .encryption(BucketEncryption.KMS) + * .encryptionKey(myKmsKey) + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) * .build(); - * Pipeline pipeline = new Pipeline(this, "MyPipeline"); - * Artifact sourceOutput = new Artifact(); - * S3SourceAction sourceAction = S3SourceAction.Builder.create() - * .actionName("S3Source") - * .bucket(sourceBucket) - * .bucketKey("path/to/file.zip") - * .output(sourceOutput) + * Distribution.Builder.create(this, "myDist") + * .defaultBehavior(BehaviorOptions.builder() + * .origin(S3BucketOrigin.withOriginAccessControl(myBucket)) + * .build()) * .build(); - * pipeline.addStage(StageOptions.builder() - * .stageName("Source") - * .actions(List.of(sourceAction)) - * .build()); * ``` */ public interface BucketProps { @@ -85,8 +82,7 @@ public interface BucketProps { * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. * * Default: - false */ @@ -207,6 +203,14 @@ public interface BucketProps { public fun notificationsHandlerRole(): IRole? = unwrap(this).getNotificationsHandlerRole()?.let(IRole::wrap) + /** + * Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations. + * + * Default: false + */ + public fun notificationsSkipDestinationValidation(): Boolean? = + unwrap(this).getNotificationsSkipDestinationValidation() + /** * The default retention mode and rules for S3 Object Lock. * @@ -235,7 +239,9 @@ public interface BucketProps { /** * The objectOwnership of the bucket. * - * Default: - No ObjectOwnership configuration, uploading account will own the object. + * Default: - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to + * `Bucket owner enforced`. + * This means ACLs are disabled and the bucket owner will own every object. * * [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html) */ @@ -384,8 +390,7 @@ public interface BucketProps { * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. */ public fun bucketKeyEnabled(bucketKeyEnabled: Boolean) @@ -483,6 +488,13 @@ public interface BucketProps { */ public fun notificationsHandlerRole(notificationsHandlerRole: IRole) + /** + * @param notificationsSkipDestinationValidation Skips notification validation of Amazon SQS, + * Amazon SNS, and Lambda destinations. + */ + public + fun notificationsSkipDestinationValidation(notificationsSkipDestinationValidation: Boolean) + /** * @param objectLockDefaultRetention The default retention mode and rules for S3 Object Lock. * Default retention can be configured after a bucket is created if the bucket already @@ -638,8 +650,7 @@ public interface BucketProps { * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. */ override fun bucketKeyEnabled(bucketKeyEnabled: Boolean) { cdkBuilder.bucketKeyEnabled(bucketKeyEnabled) @@ -766,6 +777,15 @@ public interface BucketProps { cdkBuilder.notificationsHandlerRole(notificationsHandlerRole.let(IRole.Companion::unwrap)) } + /** + * @param notificationsSkipDestinationValidation Skips notification validation of Amazon SQS, + * Amazon SNS, and Lambda destinations. + */ + override + fun notificationsSkipDestinationValidation(notificationsSkipDestinationValidation: Boolean) { + cdkBuilder.notificationsSkipDestinationValidation(notificationsSkipDestinationValidation) + } + /** * @param objectLockDefaultRetention The default retention mode and rules for S3 Object Lock. * Default retention can be configured after a bucket is created if the bucket already @@ -901,7 +921,8 @@ public interface BucketProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.BucketProps, - ) : CdkObject(cdkObject), BucketProps { + ) : CdkObject(cdkObject), + BucketProps { /** * Specifies a canned ACL that grants predefined permissions to the bucket. * @@ -950,8 +971,7 @@ public interface BucketProps { * attendant cost implications of that). * * If enabled, S3 will use its own time-limited key instead. * - * Only relevant, when Encryption is set to `BucketEncryption.KMS` or - * `BucketEncryption.KMS_MANAGED`. + * Only relevant, when Encryption is not set to `BucketEncryption.UNENCRYPTED`. * * Default: - false */ @@ -1073,6 +1093,14 @@ public interface BucketProps { override fun notificationsHandlerRole(): IRole? = unwrap(this).getNotificationsHandlerRole()?.let(IRole::wrap) + /** + * Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations. + * + * Default: false + */ + override fun notificationsSkipDestinationValidation(): Boolean? = + unwrap(this).getNotificationsSkipDestinationValidation() + /** * The default retention mode and rules for S3 Object Lock. * @@ -1101,7 +1129,9 @@ public interface BucketProps { /** * The objectOwnership of the bucket. * - * Default: - No ObjectOwnership configuration, uploading account will own the object. + * Default: - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to + * `Bucket owner enforced`. + * This means ACLs are disabled and the bucket owner will own every object. * * [Documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrant.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrant.kt index f4d79ec986..1e2c98cd56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrant.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrant.kt @@ -71,7 +71,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessGrant( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrant, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -700,7 +702,8 @@ public open class CfnAccessGrant( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrant.AccessGrantsLocationConfigurationProperty, - ) : CdkObject(cdkObject), AccessGrantsLocationConfigurationProperty { + ) : CdkObject(cdkObject), + AccessGrantsLocationConfigurationProperty { /** * The `S3SubPrefix` is appended to the location scope creating the grant scope. * @@ -855,7 +858,8 @@ public open class CfnAccessGrant( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrant.GranteeProperty, - ) : CdkObject(cdkObject), GranteeProperty { + ) : CdkObject(cdkObject), + GranteeProperty { /** * The unique identifier of the `Grantee` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantProps.kt index 1ab4499c3d..4f5c2cdb12 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantProps.kt @@ -357,7 +357,8 @@ public interface CfnAccessGrantProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrantProps, - ) : CdkObject(cdkObject), CfnAccessGrantProps { + ) : CdkObject(cdkObject), + CfnAccessGrantProps { /** * The configuration options of the grant location. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstance.kt index a913a8b78c..cb70c9a86c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstance.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessGrantsInstance( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrantsInstance, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.s3.CfnAccessGrantsInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstanceProps.kt index 2e0bd0715e..d11e9d7a21 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsInstanceProps.kt @@ -122,7 +122,8 @@ public interface CfnAccessGrantsInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrantsInstanceProps, - ) : CdkObject(cdkObject), CfnAccessGrantsInstanceProps { + ) : CdkObject(cdkObject), + CfnAccessGrantsInstanceProps { /** * If you would like to associate your S3 Access Grants instance with an AWS IAM Identity Center * instance, use this field to pass the Amazon Resource Name (ARN) of the AWS IAM Identity Center diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocation.kt index 8211e487ba..b6d700f7ce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocation.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessGrantsLocation( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrantsLocation, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.s3.CfnAccessGrantsLocation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocationProps.kt index c2dc28beed..03d4c6da26 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessGrantsLocationProps.kt @@ -147,7 +147,8 @@ public interface CfnAccessGrantsLocationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessGrantsLocationProps, - ) : CdkObject(cdkObject), CfnAccessGrantsLocationProps { + ) : CdkObject(cdkObject), + CfnAccessGrantsLocationProps { /** * The Amazon Resource Name (ARN) of the IAM role for the registered location. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPoint.kt index 7d67d65811..d8fc480258 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPoint.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPoint( cdkObject: software.amazon.awscdk.services.s3.CfnAccessPoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -785,7 +786,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessPoint.PublicAccessBlockConfigurationProperty, - ) : CdkObject(cdkObject), PublicAccessBlockConfigurationProperty { + ) : CdkObject(cdkObject), + PublicAccessBlockConfigurationProperty { /** * Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket * and objects in this bucket. @@ -918,7 +920,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessPoint.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * If this field is specified, the access point will only allow connections from the specified * VPC ID. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPointProps.kt index afcaba742b..ecf2414dcf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnAccessPointProps.kt @@ -283,7 +283,8 @@ public interface CfnAccessPointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnAccessPointProps, - ) : CdkObject(cdkObject), CfnAccessPointProps { + ) : CdkObject(cdkObject), + CfnAccessPointProps { /** * The name of the bucket associated with this access point. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucket.kt index 1194977a22..49a131c37a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucket.kt @@ -55,7 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucket( cdkObject: software.amazon.awscdk.services.s3.CfnBucket, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.s3.CfnBucket(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1292,6 +1294,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -1303,6 +1312,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -1314,6 +1330,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -2099,6 +2122,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -2112,6 +2142,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -2125,6 +2162,13 @@ public open class CfnBucket( * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) * @param versioningConfiguration Enables multiple versions of all objects in this bucket. */ @@ -2261,7 +2305,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.AbortIncompleteMultipartUploadProperty, - ) : CdkObject(cdkObject), AbortIncompleteMultipartUploadProperty { + ) : CdkObject(cdkObject), + AbortIncompleteMultipartUploadProperty { /** * Specifies the number of days after which Amazon S3 stops an incomplete multipart upload. * @@ -2348,7 +2393,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.AccelerateConfigurationProperty, - ) : CdkObject(cdkObject), AccelerateConfigurationProperty { + ) : CdkObject(cdkObject), + AccelerateConfigurationProperty { /** * Specifies the transfer acceleration status of the bucket. * @@ -2445,7 +2491,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.AccessControlTranslationProperty, - ) : CdkObject(cdkObject), AccessControlTranslationProperty { + ) : CdkObject(cdkObject), + AccessControlTranslationProperty { /** * Specifies the replica ownership. * @@ -2679,7 +2726,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.AnalyticsConfigurationProperty, - ) : CdkObject(cdkObject), AnalyticsConfigurationProperty { + ) : CdkObject(cdkObject), + AnalyticsConfigurationProperty { /** * The ID that identifies the analytics configuration. * @@ -2827,7 +2875,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.BucketEncryptionProperty, - ) : CdkObject(cdkObject), BucketEncryptionProperty { + ) : CdkObject(cdkObject), + BucketEncryptionProperty { /** * Specifies the default server-side-encryption configuration. * @@ -2956,7 +3005,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.CorsConfigurationProperty, - ) : CdkObject(cdkObject), CorsConfigurationProperty { + ) : CdkObject(cdkObject), + CorsConfigurationProperty { /** * A set of origins and methods (cross-origin access that you want to allow). * @@ -3223,7 +3273,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.CorsRuleProperty, - ) : CdkObject(cdkObject), CorsRuleProperty { + ) : CdkObject(cdkObject), + CorsRuleProperty { /** * Headers that are specified in the `Access-Control-Request-Headers` header. * @@ -3403,7 +3454,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.DataExportProperty, - ) : CdkObject(cdkObject), DataExportProperty { + ) : CdkObject(cdkObject), + DataExportProperty { /** * The place to store the data for an analysis. * @@ -3438,8 +3490,8 @@ public open class CfnBucket( } /** - * The container element for specifying the default Object Lock retention settings for new objects - * placed in the specified bucket. + * The container element for optionally specifying the default Object Lock retention settings for + * new objects placed in the specified bucket. * * * * The `DefaultRetention` settings require both a mode and a period. @@ -3552,7 +3604,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.DefaultRetentionProperty, - ) : CdkObject(cdkObject), DefaultRetentionProperty { + ) : CdkObject(cdkObject), + DefaultRetentionProperty { /** * The number of days that you want to specify for the default retention period. * @@ -3676,7 +3729,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.DeleteMarkerReplicationProperty, - ) : CdkObject(cdkObject), DeleteMarkerReplicationProperty { + ) : CdkObject(cdkObject), + DeleteMarkerReplicationProperty { /** * Indicates whether to replicate delete markers. * @@ -3845,7 +3899,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * The account ID that owns the destination S3 bucket. * @@ -3907,6 +3962,13 @@ public open class CfnBucket( * Specifies encryption-related information for an Amazon S3 bucket that is a destination for * replicated objects. * + * + * If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key + * ARN. If you use a KMS key alias instead, then AWS KMS resolves the key within the requester’s + * account. This behavior can result in data that's encrypted with a KMS key that belongs to the + * requester, and not the bucket owner. + * + * * Example: * * ``` @@ -3975,7 +4037,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS * Key Management Service (KMS) for the destination bucket. @@ -4083,7 +4146,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.EventBridgeConfigurationProperty, - ) : CdkObject(cdkObject), EventBridgeConfigurationProperty { + ) : CdkObject(cdkObject), + EventBridgeConfigurationProperty { /** * Enables delivery of events to Amazon EventBridge. * @@ -4207,7 +4271,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.FilterRuleProperty, - ) : CdkObject(cdkObject), FilterRuleProperty { + ) : CdkObject(cdkObject), + FilterRuleProperty { /** * The object key name prefix or suffix identifying one or more objects to which the filtering * rule applies. @@ -4496,7 +4561,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.IntelligentTieringConfigurationProperty, - ) : CdkObject(cdkObject), IntelligentTieringConfigurationProperty { + ) : CdkObject(cdkObject), + IntelligentTieringConfigurationProperty { /** * The ID used to identify the S3 Intelligent-Tiering configuration. * @@ -4822,7 +4888,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.InventoryConfigurationProperty, - ) : CdkObject(cdkObject), InventoryConfigurationProperty { + ) : CdkObject(cdkObject), + InventoryConfigurationProperty { /** * Contains information about where to publish the inventory results. * @@ -5060,7 +5127,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.LambdaConfigurationProperty, - ) : CdkObject(cdkObject), LambdaConfigurationProperty { + ) : CdkObject(cdkObject), + LambdaConfigurationProperty { /** * The Amazon S3 bucket event for which to invoke the AWS Lambda function. * @@ -5237,7 +5305,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.LifecycleConfigurationProperty, - ) : CdkObject(cdkObject), LifecycleConfigurationProperty { + ) : CdkObject(cdkObject), + LifecycleConfigurationProperty { /** * A lifecycle rule for individual objects in an Amazon S3 bucket. * @@ -5427,7 +5496,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * The name of the bucket where Amazon S3 should store server access log files. * @@ -5643,7 +5713,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.MetricsConfigurationProperty, - ) : CdkObject(cdkObject), MetricsConfigurationProperty { + ) : CdkObject(cdkObject), + MetricsConfigurationProperty { /** * The access point that was used while performing operations on the object. * @@ -5807,7 +5878,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.MetricsProperty, - ) : CdkObject(cdkObject), MetricsProperty { + ) : CdkObject(cdkObject), + MetricsProperty { /** * A container specifying the time threshold for emitting the * `s3:Replication:OperationMissedThreshold` event. @@ -5954,7 +6026,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.NoncurrentVersionExpirationProperty, - ) : CdkObject(cdkObject), NoncurrentVersionExpirationProperty { + ) : CdkObject(cdkObject), + NoncurrentVersionExpirationProperty { /** * Specifies how many noncurrent versions Amazon S3 will retain. * @@ -6135,7 +6208,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.NoncurrentVersionTransitionProperty, - ) : CdkObject(cdkObject), NoncurrentVersionTransitionProperty { + ) : CdkObject(cdkObject), + NoncurrentVersionTransitionProperty { /** * Specifies how many noncurrent versions Amazon S3 will retain. * @@ -6482,7 +6556,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.NotificationConfigurationProperty, - ) : CdkObject(cdkObject), NotificationConfigurationProperty { + ) : CdkObject(cdkObject), + NotificationConfigurationProperty { /** * Enables delivery of events to Amazon EventBridge. * @@ -6623,7 +6698,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.NotificationFilterProperty, - ) : CdkObject(cdkObject), NotificationFilterProperty { + ) : CdkObject(cdkObject), + NotificationFilterProperty { /** * A container for object key name prefix and suffix filtering rules. * @@ -6818,7 +6894,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ObjectLockConfigurationProperty, - ) : CdkObject(cdkObject), ObjectLockConfigurationProperty { + ) : CdkObject(cdkObject), + ObjectLockConfigurationProperty { /** * Indicates whether this bucket has an Object Lock configuration enabled. * @@ -6991,7 +7068,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ObjectLockRuleProperty, - ) : CdkObject(cdkObject), ObjectLockRuleProperty { + ) : CdkObject(cdkObject), + ObjectLockRuleProperty { /** * The default Object Lock retention mode and period that you want to apply to new objects * placed in the specified bucket. @@ -7109,7 +7187,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.OwnershipControlsProperty, - ) : CdkObject(cdkObject), OwnershipControlsProperty { + ) : CdkObject(cdkObject), + OwnershipControlsProperty { /** * Specifies the container element for Object Ownership rules. * @@ -7197,7 +7276,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.OwnershipControlsRuleProperty, - ) : CdkObject(cdkObject), OwnershipControlsRuleProperty { + ) : CdkObject(cdkObject), + OwnershipControlsRuleProperty { /** * Specifies an object ownership rule. * @@ -7246,9 +7326,15 @@ public open class CfnBucket( */ public interface PartitionedPrefixProperty { /** - * Specifies the partition date source for the partitioned prefix. + * Specifies the partition date source for the partitioned prefix. `PartitionDateSource` can be + * `EventTime` or `DeliveryTime` . + * + * For `DeliveryTime` , the time in the log file names corresponds to the delivery time for the + * log files. * - * PartitionDateSource can be EventTime or DeliveryTime. + * For `EventTime` , The logs delivered are for a specific day only. The year, month, and day + * correspond to the day on which the event occurred, and the hour, minutes and seconds are set to + * 00 in the key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-partitionedprefix.html#cfn-s3-bucket-partitionedprefix-partitiondatesource) */ @@ -7261,7 +7347,13 @@ public open class CfnBucket( public interface Builder { /** * @param partitionDateSource Specifies the partition date source for the partitioned prefix. - * PartitionDateSource can be EventTime or DeliveryTime. + * `PartitionDateSource` can be `EventTime` or `DeliveryTime` . + * For `DeliveryTime` , the time in the log file names corresponds to the delivery time for + * the log files. + * + * For `EventTime` , The logs delivered are for a specific day only. The year, month, and day + * correspond to the day on which the event occurred, and the hour, minutes and seconds are set + * to 00 in the key. */ public fun partitionDateSource(partitionDateSource: String) } @@ -7273,7 +7365,13 @@ public open class CfnBucket( /** * @param partitionDateSource Specifies the partition date source for the partitioned prefix. - * PartitionDateSource can be EventTime or DeliveryTime. + * `PartitionDateSource` can be `EventTime` or `DeliveryTime` . + * For `DeliveryTime` , the time in the log file names corresponds to the delivery time for + * the log files. + * + * For `EventTime` , The logs delivered are for a specific day only. The year, month, and day + * correspond to the day on which the event occurred, and the hour, minutes and seconds are set + * to 00 in the key. */ override fun partitionDateSource(partitionDateSource: String) { cdkBuilder.partitionDateSource(partitionDateSource) @@ -7285,11 +7383,18 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.PartitionedPrefixProperty, - ) : CdkObject(cdkObject), PartitionedPrefixProperty { + ) : CdkObject(cdkObject), + PartitionedPrefixProperty { /** - * Specifies the partition date source for the partitioned prefix. + * Specifies the partition date source for the partitioned prefix. `PartitionDateSource` can + * be `EventTime` or `DeliveryTime` . * - * PartitionDateSource can be EventTime or DeliveryTime. + * For `DeliveryTime` , the time in the log file names corresponds to the delivery time for + * the log files. + * + * For `EventTime` , The logs delivered are for a specific day only. The year, month, and day + * correspond to the day on which the event occurred, and the hour, minutes and seconds are set + * to 00 in the key. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-partitionedprefix.html#cfn-s3-bucket-partitionedprefix-partitiondatesource) */ @@ -7615,7 +7720,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.PublicAccessBlockConfigurationProperty, - ) : CdkObject(cdkObject), PublicAccessBlockConfigurationProperty { + ) : CdkObject(cdkObject), + PublicAccessBlockConfigurationProperty { /** * Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket * and objects in this bucket. @@ -7878,7 +7984,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.QueueConfigurationProperty, - ) : CdkObject(cdkObject), QueueConfigurationProperty { + ) : CdkObject(cdkObject), + QueueConfigurationProperty { /** * The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. * @@ -8012,7 +8119,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.RedirectAllRequestsToProperty, - ) : CdkObject(cdkObject), RedirectAllRequestsToProperty { + ) : CdkObject(cdkObject), + RedirectAllRequestsToProperty { /** * Name of the host where requests are redirected. * @@ -8249,7 +8357,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.RedirectRuleProperty, - ) : CdkObject(cdkObject), RedirectRuleProperty { + ) : CdkObject(cdkObject), + RedirectRuleProperty { /** * The host name to use in the redirect request. * @@ -8387,7 +8496,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicaModificationsProperty, - ) : CdkObject(cdkObject), ReplicaModificationsProperty { + ) : CdkObject(cdkObject), + ReplicaModificationsProperty { /** * Specifies whether Amazon S3 replicates modifications on replicas. * @@ -8603,7 +8713,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationConfigurationProperty, - ) : CdkObject(cdkObject), ReplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ReplicationConfigurationProperty { /** * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that * Amazon S3 assumes when replicating objects. @@ -9058,7 +9169,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationDestinationProperty, - ) : CdkObject(cdkObject), ReplicationDestinationProperty { + ) : CdkObject(cdkObject), + ReplicationDestinationProperty { /** * Specify this only in a cross-account scenario (where source and destination bucket owners * are not the same), and you want to change replica ownership to the AWS account that owns the @@ -9263,7 +9375,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleAndOperatorProperty, - ) : CdkObject(cdkObject), ReplicationRuleAndOperatorProperty { + ) : CdkObject(cdkObject), + ReplicationRuleAndOperatorProperty { /** * An object key name prefix that identifies the subset of objects to which the rule applies. * @@ -9527,7 +9640,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleFilterProperty, - ) : CdkObject(cdkObject), ReplicationRuleFilterProperty { + ) : CdkObject(cdkObject), + ReplicationRuleFilterProperty { /** * A container for specifying rule filters. * @@ -10198,7 +10312,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleProperty, - ) : CdkObject(cdkObject), ReplicationRuleProperty { + ) : CdkObject(cdkObject), + ReplicationRuleProperty { /** * Specifies whether Amazon S3 replicates delete markers. * @@ -10443,7 +10558,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationTimeProperty, - ) : CdkObject(cdkObject), ReplicationTimeProperty { + ) : CdkObject(cdkObject), + ReplicationTimeProperty { /** * Specifies whether the replication time is enabled. * @@ -10537,7 +10653,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ReplicationTimeValueProperty, - ) : CdkObject(cdkObject), ReplicationTimeValueProperty { + ) : CdkObject(cdkObject), + ReplicationTimeValueProperty { /** * Contains an integer specifying time in minutes. * @@ -10683,7 +10800,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.RoutingRuleConditionProperty, - ) : CdkObject(cdkObject), RoutingRuleConditionProperty { + ) : CdkObject(cdkObject), + RoutingRuleConditionProperty { /** * The HTTP error code when the redirect is applied. * @@ -10918,7 +11036,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.RoutingRuleProperty, - ) : CdkObject(cdkObject), RoutingRuleProperty { + ) : CdkObject(cdkObject), + RoutingRuleProperty { /** * Container for redirect information. * @@ -11834,7 +11953,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * Specifies a lifecycle rule that stops incomplete multipart uploads to an Amazon S3 bucket. * @@ -12120,7 +12240,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.S3KeyFilterProperty, - ) : CdkObject(cdkObject), S3KeyFilterProperty { + ) : CdkObject(cdkObject), + S3KeyFilterProperty { /** * A list of containers for the key-value pair that defines the criteria for the filter rule. * @@ -12157,6 +12278,13 @@ public open class CfnBucket( * encryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html) in the * *Amazon S3 API Reference* . * + * + * If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key + * ARN. If you use a KMS key alias instead, then AWS KMS resolves the key within the requester’s + * account. This behavior can result in data that's encrypted with a KMS key that belongs to the + * requester, and not the bucket owner. + * + * * Example: * * ``` @@ -12301,7 +12429,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ServerSideEncryptionByDefaultProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionByDefaultProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionByDefaultProperty { /** * AWS Key Management Service (KMS) customer AWS KMS key ID to use for the default encryption. * @@ -12363,6 +12492,13 @@ public open class CfnBucket( /** * Specifies the default server-side encryption configuration. * + * + * If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key + * ARN. If you use a KMS key alias instead, then AWS KMS resolves the key within the requester’s + * account. This behavior can result in data that's encrypted with a KMS key that belongs to the + * requester, and not the bucket owner. + * + * * Example: * * ``` @@ -12541,7 +12677,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.ServerSideEncryptionRuleProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionRuleProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionRuleProperty { /** * Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using * KMS (SSE-KMS) for new objects in the bucket. @@ -12740,7 +12877,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.SourceSelectionCriteriaProperty, - ) : CdkObject(cdkObject), SourceSelectionCriteriaProperty { + ) : CdkObject(cdkObject), + SourceSelectionCriteriaProperty { /** * A filter that you can specify for selection for modifications on replicas. * @@ -12833,7 +12971,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.SseKmsEncryptedObjectsProperty, - ) : CdkObject(cdkObject), SseKmsEncryptedObjectsProperty { + ) : CdkObject(cdkObject), + SseKmsEncryptedObjectsProperty { /** * Specifies whether Amazon S3 replicates objects created with server-side encryption using an * AWS KMS key stored in AWS Key Management Service. @@ -12959,7 +13098,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.StorageClassAnalysisProperty, - ) : CdkObject(cdkObject), StorageClassAnalysisProperty { + ) : CdkObject(cdkObject), + StorageClassAnalysisProperty { /** * Specifies how data related to the storage class analysis for an Amazon S3 bucket should be * exported. @@ -13059,7 +13199,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.TagFilterProperty, - ) : CdkObject(cdkObject), TagFilterProperty { + ) : CdkObject(cdkObject), + TagFilterProperty { /** * The tag key. * @@ -13202,7 +13343,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.TargetObjectKeyFormatProperty, - ) : CdkObject(cdkObject), TargetObjectKeyFormatProperty { + ) : CdkObject(cdkObject), + TargetObjectKeyFormatProperty { /** * Partitioned S3 key for log objects. * @@ -13334,7 +13476,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.TieringProperty, - ) : CdkObject(cdkObject), TieringProperty { + ) : CdkObject(cdkObject), + TieringProperty { /** * S3 Intelligent-Tiering access tier. * @@ -13532,7 +13675,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.TopicConfigurationProperty, - ) : CdkObject(cdkObject), TopicConfigurationProperty { + ) : CdkObject(cdkObject), + TopicConfigurationProperty { /** * The Amazon S3 bucket event about which to send notifications. * @@ -13709,7 +13853,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.TransitionProperty, - ) : CdkObject(cdkObject), TransitionProperty { + ) : CdkObject(cdkObject), + TransitionProperty { /** * The storage class to which you want the object to transition. * @@ -13760,6 +13905,12 @@ public open class CfnBucket( * versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in * the *Amazon S3 API Reference* . * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of time + * for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling + * versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the bucket. + * + * * Example: * * ``` @@ -13814,7 +13965,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.VersioningConfigurationProperty, - ) : CdkObject(cdkObject), VersioningConfigurationProperty { + ) : CdkObject(cdkObject), + VersioningConfigurationProperty { /** * The versioning state of the bucket. * @@ -14048,7 +14200,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucket.WebsiteConfigurationProperty, - ) : CdkObject(cdkObject), WebsiteConfigurationProperty { + ) : CdkObject(cdkObject), + WebsiteConfigurationProperty { /** * The name of the error document for the website. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicy.kt index 949f0ddc1d..e99ba322ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicy.kt @@ -39,13 +39,29 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.s3.*; - * Object policyDocument; - * CfnBucketPolicy cfnBucketPolicy = CfnBucketPolicy.Builder.create(this, "MyCfnBucketPolicy") - * .bucket("bucket") - * .policyDocument(policyDocument) + * String bucketName = "my-favorite-bucket-name"; + * Bucket accessLogsBucket = Bucket.Builder.create(this, "AccessLogsBucket") + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) + * .bucketName(bucketName) + * .build(); + * // Creating a bucket policy using L1 + * CfnBucketPolicy bucketPolicy = CfnBucketPolicy.Builder.create(this, "BucketPolicy") + * .bucket(bucketName) + * .policyDocument(Map.of( + * "Statement", List.of(Map.of( + * "Action", "s3:*", + * "Effect", "Deny", + * "Principal", Map.of( + * "AWS", "*"), + * "Resource", List.of(accessLogsBucket.getBucketArn(), String.format("%s/ *", + * accessLogsBucket.getBucketArn())))), + * "Version", "2012-10-17")) + * .build(); + * // 'serverAccessLogsBucket' will create a new L2 bucket policy + * // to allow log delivery and overwrite the L1 bucket policy. + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .serverAccessLogsBucket(accessLogsBucket) + * .serverAccessLogsPrefix("logs") * .build(); * ``` * @@ -53,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucketPolicy( cdkObject: software.amazon.awscdk.services.s3.CfnBucketPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicyProps.kt index 63d7e681ec..d6d4b8d3af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketPolicyProps.kt @@ -15,13 +15,29 @@ import kotlin.Unit * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.s3.*; - * Object policyDocument; - * CfnBucketPolicyProps cfnBucketPolicyProps = CfnBucketPolicyProps.builder() - * .bucket("bucket") - * .policyDocument(policyDocument) + * String bucketName = "my-favorite-bucket-name"; + * Bucket accessLogsBucket = Bucket.Builder.create(this, "AccessLogsBucket") + * .objectOwnership(ObjectOwnership.BUCKET_OWNER_ENFORCED) + * .bucketName(bucketName) + * .build(); + * // Creating a bucket policy using L1 + * CfnBucketPolicy bucketPolicy = CfnBucketPolicy.Builder.create(this, "BucketPolicy") + * .bucket(bucketName) + * .policyDocument(Map.of( + * "Statement", List.of(Map.of( + * "Action", "s3:*", + * "Effect", "Deny", + * "Principal", Map.of( + * "AWS", "*"), + * "Resource", List.of(accessLogsBucket.getBucketArn(), String.format("%s/ *", + * accessLogsBucket.getBucketArn())))), + * "Version", "2012-10-17")) + * .build(); + * // 'serverAccessLogsBucket' will create a new L2 bucket policy + * // to allow log delivery and overwrite the L1 bucket policy. + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .serverAccessLogsBucket(accessLogsBucket) + * .serverAccessLogsPrefix("logs") * .build(); * ``` * @@ -105,7 +121,8 @@ public interface CfnBucketPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucketPolicyProps, - ) : CdkObject(cdkObject), CfnBucketPolicyProps { + ) : CdkObject(cdkObject), + CfnBucketPolicyProps { /** * The name of the Amazon S3 bucket to which the policy applies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketProps.kt index 69c1001168..b6a85829f8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnBucketProps.kt @@ -255,6 +255,12 @@ public interface CfnBucketProps { * You might enable versioning to prevent objects from being deleted or overwritten by mistake or * to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of time + * for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling + * versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) */ public fun versioningConfiguration(): Any? = unwrap(this).getVersioningConfiguration() @@ -740,6 +746,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ public fun versioningConfiguration(versioningConfiguration: IResolvable) @@ -747,6 +759,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ public fun versioningConfiguration(versioningConfiguration: CfnBucket.VersioningConfigurationProperty) @@ -755,6 +773,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d3cfae8b56cb451301bf46541164cbe333641bf3807ee6df146c708f3aca7007") @@ -1343,6 +1367,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ override fun versioningConfiguration(versioningConfiguration: IResolvable) { cdkBuilder.versioningConfiguration(versioningConfiguration.let(IResolvable.Companion::unwrap)) @@ -1352,6 +1382,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ override fun versioningConfiguration(versioningConfiguration: CfnBucket.VersioningConfigurationProperty) { @@ -1362,6 +1398,12 @@ public interface CfnBucketProps { * @param versioningConfiguration Enables multiple versions of all objects in this bucket. * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. + * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("d3cfae8b56cb451301bf46541164cbe333641bf3807ee6df146c708f3aca7007") @@ -1405,7 +1447,8 @@ public interface CfnBucketProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnBucketProps, - ) : CdkObject(cdkObject), CfnBucketProps { + ) : CdkObject(cdkObject), + CfnBucketProps { /** * Configures the transfer acceleration state for an Amazon S3 bucket. * @@ -1630,6 +1673,13 @@ public interface CfnBucketProps { * You might enable versioning to prevent objects from being deleted or overwritten by mistake * or to archive objects so that you can retrieve previous versions of them. * + * + * When you enable versioning on a bucket for the first time, it might take a short amount of + * time for the change to be fully propagated. We recommend that you wait for 15 minutes after + * enabling versioning before issuing write operations ( `PUT` or `DELETE` ) on objects in the + * bucket. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html#cfn-s3-bucket-versioningconfiguration) */ override fun versioningConfiguration(): Any? = unwrap(this).getVersioningConfiguration() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPoint.kt index d2e197f5ab..f9a48c8cbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPoint.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMultiRegionAccessPoint( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -673,7 +674,8 @@ public open class CfnMultiRegionAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPoint.PublicAccessBlockConfigurationProperty, - ) : CdkObject(cdkObject), PublicAccessBlockConfigurationProperty { + ) : CdkObject(cdkObject), + PublicAccessBlockConfigurationProperty { /** * Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket * and objects in this bucket. @@ -828,7 +830,8 @@ public open class CfnMultiRegionAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPoint.RegionProperty, - ) : CdkObject(cdkObject), RegionProperty { + ) : CdkObject(cdkObject), + RegionProperty { /** * The name of the associated bucket for the Region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicy.kt index a3d309c22d..9f64e3d6b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicy.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMultiRegionAccessPointPolicy( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPointPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -239,7 +240,8 @@ public open class CfnMultiRegionAccessPointPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPointPolicy.PolicyStatusProperty, - ) : CdkObject(cdkObject), PolicyStatusProperty { + ) : CdkObject(cdkObject), + PolicyStatusProperty { /** * The policy status for this bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicyProps.kt index 75d8e48d88..2892ce9668 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointPolicyProps.kt @@ -84,7 +84,8 @@ public interface CfnMultiRegionAccessPointPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPointPolicyProps, - ) : CdkObject(cdkObject), CfnMultiRegionAccessPointPolicyProps { + ) : CdkObject(cdkObject), + CfnMultiRegionAccessPointPolicyProps { /** * The name of the Multi-Region Access Point. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointProps.kt index 2b570ae04d..418f1bd83b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnMultiRegionAccessPointProps.kt @@ -212,7 +212,8 @@ public interface CfnMultiRegionAccessPointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnMultiRegionAccessPointProps, - ) : CdkObject(cdkObject), CfnMultiRegionAccessPointProps { + ) : CdkObject(cdkObject), + CfnMultiRegionAccessPointProps { /** * The name of the Multi-Region Access Point. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLens.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLens.kt index d75f908aa1..653852bcad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLens.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLens.kt @@ -126,7 +126,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageLens( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -763,7 +765,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.AccountLevelProperty, - ) : CdkObject(cdkObject), AccountLevelProperty { + ) : CdkObject(cdkObject), + AccountLevelProperty { /** * This property contains the details of account-level activity metrics for S3 Storage Lens. * @@ -906,7 +909,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.ActivityMetricsProperty, - ) : CdkObject(cdkObject), ActivityMetricsProperty { + ) : CdkObject(cdkObject), + ActivityMetricsProperty { /** * A property that indicates whether the activity metrics is enabled. * @@ -1011,7 +1015,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty, - ) : CdkObject(cdkObject), AdvancedCostOptimizationMetricsProperty { + ) : CdkObject(cdkObject), + AdvancedCostOptimizationMetricsProperty { /** * Indicates whether advanced cost optimization metrics are enabled. * @@ -1116,7 +1121,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.AdvancedDataProtectionMetricsProperty, - ) : CdkObject(cdkObject), AdvancedDataProtectionMetricsProperty { + ) : CdkObject(cdkObject), + AdvancedDataProtectionMetricsProperty { /** * Indicates whether advanced data protection metrics are enabled. * @@ -1197,7 +1203,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.AwsOrgProperty, - ) : CdkObject(cdkObject), AwsOrgProperty { + ) : CdkObject(cdkObject), + AwsOrgProperty { /** * This resource contains the ARN of the AWS Organization. * @@ -1549,7 +1556,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.BucketLevelProperty, - ) : CdkObject(cdkObject), BucketLevelProperty { + ) : CdkObject(cdkObject), + BucketLevelProperty { /** * A property for bucket-level activity metrics for S3 Storage Lens. * @@ -1731,7 +1739,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.BucketsAndRegionsProperty, - ) : CdkObject(cdkObject), BucketsAndRegionsProperty { + ) : CdkObject(cdkObject), + BucketsAndRegionsProperty { /** * This property contains the details of the buckets for the Amazon S3 Storage Lens * configuration. @@ -1847,7 +1856,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.CloudWatchMetricsProperty, - ) : CdkObject(cdkObject), CloudWatchMetricsProperty { + ) : CdkObject(cdkObject), + CloudWatchMetricsProperty { /** * This property identifies whether the CloudWatch publishing option for S3 Storage Lens is * enabled. @@ -2034,7 +2044,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.DataExportProperty, - ) : CdkObject(cdkObject), DataExportProperty { + ) : CdkObject(cdkObject), + DataExportProperty { /** * This property enables the Amazon CloudWatch publishing option for S3 Storage Lens metrics. * @@ -2146,7 +2157,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.DetailedStatusCodesMetricsProperty, - ) : CdkObject(cdkObject), DetailedStatusCodesMetricsProperty { + ) : CdkObject(cdkObject), + DetailedStatusCodesMetricsProperty { /** * Indicates whether detailed status code metrics are enabled. * @@ -2292,7 +2304,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.EncryptionProperty, - ) : CdkObject(cdkObject), EncryptionProperty { + ) : CdkObject(cdkObject), + EncryptionProperty { /** * Specifies the use of AWS Key Management Service keys (SSE-KMS) to encrypt the S3 Storage * Lens metrics export file. @@ -2423,7 +2436,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.PrefixLevelProperty, - ) : CdkObject(cdkObject), PrefixLevelProperty { + ) : CdkObject(cdkObject), + PrefixLevelProperty { /** * A property for the prefix-level storage metrics for Amazon S3 Storage Lens. * @@ -2583,7 +2597,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.PrefixLevelStorageMetricsProperty, - ) : CdkObject(cdkObject), PrefixLevelStorageMetricsProperty { + ) : CdkObject(cdkObject), + PrefixLevelStorageMetricsProperty { /** * This property identifies whether the details of the prefix-level storage metrics for S3 * Storage Lens are enabled. @@ -2831,7 +2846,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.S3BucketDestinationProperty, - ) : CdkObject(cdkObject), S3BucketDestinationProperty { + ) : CdkObject(cdkObject), + S3BucketDestinationProperty { /** * This property contains the details of the AWS account ID of the S3 Storage Lens export * bucket destination. @@ -2966,7 +2982,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.SSEKMSProperty, - ) : CdkObject(cdkObject), SSEKMSProperty { + ) : CdkObject(cdkObject), + SSEKMSProperty { /** * Specifies the Amazon Resource Name (ARN) of the customer managed AWS KMS key to use for * encrypting the S3 Storage Lens metrics export file. @@ -3099,7 +3116,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.SelectionCriteriaProperty, - ) : CdkObject(cdkObject), SelectionCriteriaProperty { + ) : CdkObject(cdkObject), + SelectionCriteriaProperty { /** * This property contains the details of the S3 Storage Lens delimiter being used. * @@ -3605,7 +3623,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.StorageLensConfigurationProperty, - ) : CdkObject(cdkObject), StorageLensConfigurationProperty { + ) : CdkObject(cdkObject), + StorageLensConfigurationProperty { /** * This property contains the details of the account-level metrics for Amazon S3 Storage Lens * configuration. @@ -3796,7 +3815,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.StorageLensGroupLevelProperty, - ) : CdkObject(cdkObject), StorageLensGroupLevelProperty { + ) : CdkObject(cdkObject), + StorageLensGroupLevelProperty { /** * This property indicates which Storage Lens group ARNs to include or exclude in the Storage * Lens group aggregation. @@ -3937,7 +3957,8 @@ public open class CfnStorageLens( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLens.StorageLensGroupSelectionCriteriaProperty, - ) : CdkObject(cdkObject), StorageLensGroupSelectionCriteriaProperty { + ) : CdkObject(cdkObject), + StorageLensGroupSelectionCriteriaProperty { /** * This property indicates which Storage Lens group ARNs to exclude from the Storage Lens * group aggregation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroup.kt index 2c2f6165c0..4861804367 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroup.kt @@ -100,7 +100,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStorageLensGroup( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -635,7 +637,8 @@ public open class CfnStorageLensGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup.AndProperty, - ) : CdkObject(cdkObject), AndProperty { + ) : CdkObject(cdkObject), + AndProperty { /** * This property contains a list of prefixes. * @@ -1138,7 +1141,8 @@ public open class CfnStorageLensGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * This property contains the `And` logical operator, which allows multiple filter conditions * to be joined for more complex comparisons of Storage Lens group data. @@ -1298,7 +1302,8 @@ public open class CfnStorageLensGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup.MatchObjectAgeProperty, - ) : CdkObject(cdkObject), MatchObjectAgeProperty { + ) : CdkObject(cdkObject), + MatchObjectAgeProperty { /** * This property indicates the minimum object age in days. * @@ -1416,7 +1421,8 @@ public open class CfnStorageLensGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup.MatchObjectSizeProperty, - ) : CdkObject(cdkObject), MatchObjectSizeProperty { + ) : CdkObject(cdkObject), + MatchObjectSizeProperty { /** * This property specifies the minimum object size in bytes. * @@ -1732,7 +1738,8 @@ public open class CfnStorageLensGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroup.OrProperty, - ) : CdkObject(cdkObject), OrProperty { + ) : CdkObject(cdkObject), + OrProperty { /** * This property contains a list of prefixes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroupProps.kt index 88b6311e23..f5eb376c6f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensGroupProps.kt @@ -209,7 +209,8 @@ public interface CfnStorageLensGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensGroupProps, - ) : CdkObject(cdkObject), CfnStorageLensGroupProps { + ) : CdkObject(cdkObject), + CfnStorageLensGroupProps { /** * This property contains the criteria for the Storage Lens group data that is displayed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensProps.kt index 068a6216eb..166c0aaede 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CfnStorageLensProps.kt @@ -216,7 +216,8 @@ public interface CfnStorageLensProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CfnStorageLensProps, - ) : CdkObject(cdkObject), CfnStorageLensProps { + ) : CdkObject(cdkObject), + CfnStorageLensProps { /** * This resource contains the details Amazon S3 Storage Lens configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CorsRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CorsRule.kt index 470323c44c..55523bec89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CorsRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/CorsRule.kt @@ -216,7 +216,8 @@ public interface CorsRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.CorsRule, - ) : CdkObject(cdkObject), CorsRule { + ) : CdkObject(cdkObject), + CorsRule { /** * Headers that are specified in the Access-Control-Request-Headers header. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucket.kt index b9080bb177..90b0f595ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucket.kt @@ -805,7 +805,8 @@ public interface IBucket : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.IBucket, - ) : CdkObject(cdkObject), IBucket { + ) : CdkObject(cdkObject), + IBucket { /** * Adds a bucket notification event destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucketNotificationDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucketNotificationDestination.kt index eb51b04842..b88d26d213 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucketNotificationDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IBucketNotificationDestination.kt @@ -24,7 +24,8 @@ public interface IBucketNotificationDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.IBucketNotificationDestination, - ) : CdkObject(cdkObject), IBucketNotificationDestination { + ) : CdkObject(cdkObject), + IBucketNotificationDestination { /** * Registers this resource to receive notifications for the specified bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IntelligentTieringConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IntelligentTieringConfiguration.kt index d94b942271..fd1335a49d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IntelligentTieringConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/IntelligentTieringConfiguration.kt @@ -163,7 +163,8 @@ public interface IntelligentTieringConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.IntelligentTieringConfiguration, - ) : CdkObject(cdkObject), IntelligentTieringConfiguration { + ) : CdkObject(cdkObject), + IntelligentTieringConfiguration { /** * When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed * for a minimum of 90 days to the Archive Access tier. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Inventory.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Inventory.kt index adaa2d83ea..1aa00d290f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Inventory.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Inventory.kt @@ -246,7 +246,8 @@ public interface Inventory { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.Inventory, - ) : CdkObject(cdkObject), Inventory { + ) : CdkObject(cdkObject), + Inventory { /** * The destination of the inventory. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/InventoryDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/InventoryDestination.kt index e3cc05fcfe..1da742d915 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/InventoryDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/InventoryDestination.kt @@ -114,7 +114,8 @@ public interface InventoryDestination { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.InventoryDestination, - ) : CdkObject(cdkObject), InventoryDestination { + ) : CdkObject(cdkObject), + InventoryDestination { /** * Bucket where all inventories will be saved in. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/LifecycleRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/LifecycleRule.kt index b0872f98d9..19a7cb76d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/LifecycleRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/LifecycleRule.kt @@ -542,7 +542,8 @@ public interface LifecycleRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.LifecycleRule, - ) : CdkObject(cdkObject), LifecycleRule { + ) : CdkObject(cdkObject), + LifecycleRule { /** * Specifies a lifecycle rule that aborts incomplete multipart uploads to an Amazon S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Location.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Location.kt index 87d00f994f..88e3a56305 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Location.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Location.kt @@ -14,106 +14,24 @@ import kotlin.Unit * Example: * * ``` - * Stack lambdaStack = new Stack(app, "LambdaStack"); - * CfnParametersCode lambdaCode = Code.fromCfnParameters(); - * Function.Builder.create(lambdaStack, "Lambda") - * .code(lambdaCode) - * .handler("index.handler") - * .runtime(Runtime.NODEJS_LATEST) - * .build(); - * // other resources that your Lambda needs, added to the lambdaStack... - * Stack pipelineStack = new Stack(app, "PipelineStack"); - * Pipeline pipeline = Pipeline.Builder.create(pipelineStack, "Pipeline") - * .crossAccountKeys(true) - * .build(); - * // add the source code repository containing this code to your Pipeline, - * // and the source code of the Lambda Function, if they're separate - * Artifact cdkSourceOutput = new Artifact(); - * CodeCommitSourceAction cdkSourceAction = CodeCommitSourceAction.Builder.create() - * .repository(Repository.Builder.create(pipelineStack, "CdkCodeRepo") - * .repositoryName("CdkCodeRepo") + * AthenaStartQueryExecution startQueryExecutionJob = AthenaStartQueryExecution.Builder.create(this, + * "Start Athena Query") + * .queryString(JsonPath.stringAt("$.queryString")) + * .queryExecutionContext(QueryExecutionContext.builder() + * .databaseName("mydatabase") * .build()) - * .actionName("CdkCode_Source") - * .output(cdkSourceOutput) - * .build(); - * Artifact lambdaSourceOutput = new Artifact(); - * CodeCommitSourceAction lambdaSourceAction = CodeCommitSourceAction.Builder.create() - * .repository(Repository.Builder.create(pipelineStack, "LambdaCodeRepo") - * .repositoryName("LambdaCodeRepo") + * .resultConfiguration(ResultConfiguration.builder() + * .encryptionConfiguration(EncryptionConfiguration.builder() + * .encryptionOption(EncryptionOption.S3_MANAGED) * .build()) - * .actionName("LambdaCode_Source") - * .output(lambdaSourceOutput) - * .build(); - * pipeline.addStage(StageOptions.builder() - * .stageName("Source") - * .actions(List.of(cdkSourceAction, lambdaSourceAction)) - * .build()); - * // synthesize the Lambda CDK template, using CodeBuild - * // the below values are just examples, assuming your CDK code is in TypeScript/JavaScript - - * // adjust the build environment and/or commands accordingly - * Project cdkBuildProject = Project.Builder.create(pipelineStack, "CdkBuildProject") - * .environment(BuildEnvironment.builder() - * .buildImage(LinuxBuildImage.STANDARD_7_0) + * .outputLocation(Location.builder() + * .bucketName("query-results-bucket") + * .objectKey("folder") * .build()) - * .buildSpec(BuildSpec.fromObject(Map.of( - * "version", "0.2", - * "phases", Map.of( - * "install", Map.of( - * "commands", "npm install"), - * "build", Map.of( - * "commands", List.of("npm run build", "npm run cdk synth LambdaStack -- -o ."))), - * "artifacts", Map.of( - * "files", "LambdaStack.template.yaml")))) - * .build(); - * Artifact cdkBuildOutput = new Artifact(); - * CodeBuildAction cdkBuildAction = CodeBuildAction.Builder.create() - * .actionName("CDK_Build") - * .project(cdkBuildProject) - * .input(cdkSourceOutput) - * .outputs(List.of(cdkBuildOutput)) - * .build(); - * // build your Lambda code, using CodeBuild - * // again, this example assumes your Lambda is written in TypeScript/JavaScript - - * // make sure to adjust the build environment and/or commands if they don't match your specific - * situation - * Project lambdaBuildProject = Project.Builder.create(pipelineStack, "LambdaBuildProject") - * .environment(BuildEnvironment.builder() - * .buildImage(LinuxBuildImage.STANDARD_7_0) * .build()) - * .buildSpec(BuildSpec.fromObject(Map.of( - * "version", "0.2", - * "phases", Map.of( - * "install", Map.of( - * "commands", "npm install"), - * "build", Map.of( - * "commands", "npm run build")), - * "artifacts", Map.of( - * "files", List.of("index.js", "node_modules/ **/*"))))) - * .build(); - * Artifact lambdaBuildOutput = new Artifact(); - * CodeBuildAction lambdaBuildAction = CodeBuildAction.Builder.create() - * .actionName("Lambda_Build") - * .project(lambdaBuildProject) - * .input(lambdaSourceOutput) - * .outputs(List.of(lambdaBuildOutput)) + * .executionParameters(List.of("param1", "param2")) + * .resultReuseConfigurationMaxAge(Duration.minutes(100)) * .build(); - * pipeline.addStage(StageOptions.builder() - * .stageName("Build") - * .actions(List.of(cdkBuildAction, lambdaBuildAction)) - * .build()); - * // finally, deploy your Lambda Stack - * pipeline.addStage(StageOptions.builder() - * .stageName("Deploy") - * .actions(List.of( - * CloudFormationCreateUpdateStackAction.Builder.create() - * .actionName("Lambda_CFN_Deploy") - * .templatePath(cdkBuildOutput.atPath("LambdaStack.template.yaml")) - * .stackName("LambdaStackDeployedName") - * .adminPermissions(true) - * .parameterOverrides(lambdaCode.assign(lambdaBuildOutput.getS3Location())) - * .extraInputs(List.of(lambdaBuildOutput)) - * .build())) - * .build()); * ``` */ public interface Location { @@ -183,7 +101,8 @@ public interface Location { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.Location, - ) : CdkObject(cdkObject), Location { + ) : CdkObject(cdkObject), + Location { /** * The name of the S3 Bucket the object is in. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NoncurrentVersionTransition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NoncurrentVersionTransition.kt index b629a07af7..309a56da3d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NoncurrentVersionTransition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NoncurrentVersionTransition.kt @@ -109,7 +109,8 @@ public interface NoncurrentVersionTransition { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.NoncurrentVersionTransition, - ) : CdkObject(cdkObject), NoncurrentVersionTransition { + ) : CdkObject(cdkObject), + NoncurrentVersionTransition { /** * Indicates the number of noncurrent version objects to be retained. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NotificationKeyFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NotificationKeyFilter.kt index 4f8d8e9465..b6a812c772 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NotificationKeyFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/NotificationKeyFilter.kt @@ -72,7 +72,8 @@ public interface NotificationKeyFilter { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.NotificationKeyFilter, - ) : CdkObject(cdkObject), NotificationKeyFilter { + ) : CdkObject(cdkObject), + NotificationKeyFilter { /** * S3 keys must have the specified prefix. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/OnCloudTrailBucketEventOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/OnCloudTrailBucketEventOptions.kt index 13db1b64a8..3579504630 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/OnCloudTrailBucketEventOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/OnCloudTrailBucketEventOptions.kt @@ -188,7 +188,8 @@ public interface OnCloudTrailBucketEventOptions : OnEventOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.OnCloudTrailBucketEventOptions, - ) : CdkObject(cdkObject), OnCloudTrailBucketEventOptions { + ) : CdkObject(cdkObject), + OnCloudTrailBucketEventOptions { /** * The scope to use if the source of the rule and its target are in different Stacks (but in the * same account & region). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RedirectTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RedirectTarget.kt index 939c43bb70..0ddb978832 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RedirectTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RedirectTarget.kt @@ -71,7 +71,8 @@ public interface RedirectTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.RedirectTarget, - ) : CdkObject(cdkObject), RedirectTarget { + ) : CdkObject(cdkObject), + RedirectTarget { /** * Name of the host where requests are redirected. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRule.kt index 063ddd7ecc..23a7c6ace1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRule.kt @@ -160,7 +160,8 @@ public interface RoutingRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.RoutingRule, - ) : CdkObject(cdkObject), RoutingRule { + ) : CdkObject(cdkObject), + RoutingRule { /** * Specifies a condition that must be met for the specified redirect to apply. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRuleCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRuleCondition.kt index d0d853f361..c3fc19fee2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRuleCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RoutingRuleCondition.kt @@ -97,7 +97,8 @@ public interface RoutingRuleCondition { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.RoutingRuleCondition, - ) : CdkObject(cdkObject), RoutingRuleCondition { + ) : CdkObject(cdkObject), + RoutingRuleCondition { /** * The HTTP error code when the redirect is applied. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Tag.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Tag.kt index d71915092c..dd8a9274c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Tag.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Tag.kt @@ -73,7 +73,8 @@ public interface Tag { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.Tag, - ) : CdkObject(cdkObject), Tag { + ) : CdkObject(cdkObject), + Tag { /** * key to e tagged. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/TransferAccelerationUrlOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/TransferAccelerationUrlOptions.kt index 60b961b08a..684e86d694 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/TransferAccelerationUrlOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/TransferAccelerationUrlOptions.kt @@ -60,7 +60,8 @@ public interface TransferAccelerationUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.TransferAccelerationUrlOptions, - ) : CdkObject(cdkObject), TransferAccelerationUrlOptions { + ) : CdkObject(cdkObject), + TransferAccelerationUrlOptions { /** * Dual-stack support to connect to the bucket over IPv6. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Transition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Transition.kt index 0d1983618f..c54b3051fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Transition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/Transition.kt @@ -106,7 +106,8 @@ public interface Transition { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.Transition, - ) : CdkObject(cdkObject), Transition { + ) : CdkObject(cdkObject), + Transition { /** * The storage class to which you want the object to transition. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/VirtualHostedStyleUrlOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/VirtualHostedStyleUrlOptions.kt index bee434359e..963a196ac6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/VirtualHostedStyleUrlOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/VirtualHostedStyleUrlOptions.kt @@ -57,7 +57,8 @@ public interface VirtualHostedStyleUrlOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.VirtualHostedStyleUrlOptions, - ) : CdkObject(cdkObject), VirtualHostedStyleUrlOptions { + ) : CdkObject(cdkObject), + VirtualHostedStyleUrlOptions { /** * Specifies the URL includes the region. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/Asset.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/Asset.kt index 966eaf7af4..50cb5e28af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/Asset.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/Asset.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Asset( cdkObject: software.amazon.awscdk.services.s3.assets.Asset, -) : CloudshiftdevConstructsConstruct(cdkObject), IAsset { +) : CloudshiftdevConstructsConstruct(cdkObject), + IAsset { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetOptions.kt index cb1e11b59e..794fdc2d0f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetOptions.kt @@ -282,7 +282,8 @@ public interface AssetOptions : io.cloudshiftdev.awscdk.AssetOptions, FileCopyOp private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.assets.AssetOptions, - ) : CdkObject(cdkObject), AssetOptions { + ) : CdkObject(cdkObject), + AssetOptions { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetProps.kt index 8e7a9d1c27..5dfb04f0bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/assets/AssetProps.kt @@ -282,7 +282,8 @@ public interface AssetProps : AssetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.assets.AssetProps, - ) : CdkObject(cdkObject), AssetProps { + ) : CdkObject(cdkObject), + AssetProps { /** * Specify a custom hash for this asset. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeployment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeployment.kt index 79f096594d..687b765c0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeployment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeployment.kt @@ -30,14 +30,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * Bucket websiteBucket; - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployWebsite") - * .sources(List.of(Source.asset(join(__dirname, "my-website")))) - * .destinationBucket(websiteBucket) + * Bucket destinationBucket; + * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") + * .sources(List.of(Source.asset(join(__dirname, "source-files")))) + * .destinationBucket(destinationBucket) * .build(); - * new ConstructThatReadsFromTheBucket(this, "Consumer", Map.of( - * // Use 'deployment.deployedBucket' instead of 'websiteBucket' here - * "bucket", deployment.getDeployedBucket())); + * deployment.handlerRole.addToPolicy( + * PolicyStatement.Builder.create() + * .actions(List.of("kms:Decrypt", "kms:DescribeKey")) + * .effect(Effect.ALLOW) + * .resources(List.of("<encryption key ARN>")) + * .build()); * ``` */ public open class BucketDeployment( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeploymentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeploymentProps.kt index 3fbbcc6b6f..4293ceb9ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeploymentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/BucketDeploymentProps.kt @@ -29,14 +29,17 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Bucket websiteBucket; - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployWebsite") - * .sources(List.of(Source.asset(join(__dirname, "my-website")))) - * .destinationBucket(websiteBucket) + * Bucket destinationBucket; + * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") + * .sources(List.of(Source.asset(join(__dirname, "source-files")))) + * .destinationBucket(destinationBucket) * .build(); - * new ConstructThatReadsFromTheBucket(this, "Consumer", Map.of( - * // Use 'deployment.deployedBucket' instead of 'websiteBucket' here - * "bucket", deployment.getDeployedBucket())); + * deployment.handlerRole.addToPolicy( + * PolicyStatement.Builder.create() + * .actions(List.of("kms:Decrypt", "kms:DescribeKey")) + * .effect(Effect.ALLOW) + * .resources(List.of("<encryption key ARN>")) + * .build()); * ``` */ public interface BucketDeploymentProps { @@ -937,7 +940,8 @@ public interface BucketDeploymentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.BucketDeploymentProps, - ) : CdkObject(cdkObject), BucketDeploymentProps { + ) : CdkObject(cdkObject), + BucketDeploymentProps { /** * System-defined x-amz-acl metadata to be set on all objects in the deployment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeployTimeSubstitutedFileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeployTimeSubstitutedFileProps.kt index 86eff2ce02..b1a1e7250b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeployTimeSubstitutedFileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeployTimeSubstitutedFileProps.kt @@ -154,7 +154,8 @@ public interface DeployTimeSubstitutedFileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.DeployTimeSubstitutedFileProps, - ) : CdkObject(cdkObject), DeployTimeSubstitutedFileProps { + ) : CdkObject(cdkObject), + DeployTimeSubstitutedFileProps { /** * The S3 bucket to sync the contents of the zip file to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeploymentSourceContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeploymentSourceContext.kt index 6090eff994..5e13f7c769 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeploymentSourceContext.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/DeploymentSourceContext.kt @@ -59,7 +59,8 @@ public interface DeploymentSourceContext { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.DeploymentSourceContext, - ) : CdkObject(cdkObject), DeploymentSourceContext { + ) : CdkObject(cdkObject), + DeploymentSourceContext { /** * The role for the handler. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/ISource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/ISource.kt index 8673a42a6c..c2ea22cd99 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/ISource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/ISource.kt @@ -41,7 +41,8 @@ public interface ISource { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.ISource, - ) : CdkObject(cdkObject), ISource { + ) : CdkObject(cdkObject), + ISource { /** * Binds the source to a bucket deployment. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/Source.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/Source.kt index 1293d8abdf..2a1ced8934 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/Source.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/Source.kt @@ -27,14 +27,17 @@ import kotlin.jvm.JvmName * Example: * * ``` - * Bucket websiteBucket; - * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployWebsite") - * .sources(List.of(Source.asset(join(__dirname, "my-website")))) - * .destinationBucket(websiteBucket) + * Bucket destinationBucket; + * BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployFiles") + * .sources(List.of(Source.asset(join(__dirname, "source-files")))) + * .destinationBucket(destinationBucket) * .build(); - * new ConstructThatReadsFromTheBucket(this, "Consumer", Map.of( - * // Use 'deployment.deployedBucket' instead of 'websiteBucket' here - * "bucket", deployment.getDeployedBucket())); + * deployment.handlerRole.addToPolicy( + * PolicyStatement.Builder.create() + * .actions(List.of("kms:Decrypt", "kms:DescribeKey")) + * .effect(Effect.ALLOW) + * .resources(List.of("<encryption key ARN>")) + * .build()); * ``` */ public open class Source( diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/SourceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/SourceConfig.kt index 28f4463c34..485952f45b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/SourceConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/SourceConfig.kt @@ -102,7 +102,8 @@ public interface SourceConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.SourceConfig, - ) : CdkObject(cdkObject), SourceConfig { + ) : CdkObject(cdkObject), + SourceConfig { /** * The source bucket to deploy from. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/UserDefinedObjectMetadata.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/UserDefinedObjectMetadata.kt index 2446ae1f29..2fe6d90c06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/UserDefinedObjectMetadata.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/deployment/UserDefinedObjectMetadata.kt @@ -42,7 +42,8 @@ public interface UserDefinedObjectMetadata { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3.deployment.UserDefinedObjectMetadata, - ) : CdkObject(cdkObject), UserDefinedObjectMetadata + ) : CdkObject(cdkObject), + UserDefinedObjectMetadata public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): UserDefinedObjectMetadata { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/LambdaDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/LambdaDestination.kt index 6fb11d06c5..84fc8a505b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/LambdaDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/LambdaDestination.kt @@ -28,7 +28,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class LambdaDestination( cdkObject: software.amazon.awscdk.services.s3.notifications.LambdaDestination, -) : CdkObject(cdkObject), IBucketNotificationDestination { +) : CdkObject(cdkObject), + IBucketNotificationDestination { public constructor(fn: IFunction) : this(software.amazon.awscdk.services.s3.notifications.LambdaDestination(fn.let(IFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SnsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SnsDestination.kt index b3a7ea94a8..4f018f2b40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SnsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SnsDestination.kt @@ -22,7 +22,8 @@ import io.cloudshiftdev.constructs.Construct */ public open class SnsDestination( cdkObject: software.amazon.awscdk.services.s3.notifications.SnsDestination, -) : CdkObject(cdkObject), IBucketNotificationDestination { +) : CdkObject(cdkObject), + IBucketNotificationDestination { public constructor(topic: ITopic) : this(software.amazon.awscdk.services.s3.notifications.SnsDestination(topic.let(ITopic.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SqsDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SqsDestination.kt index ac25e78b06..9975e5d495 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SqsDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/notifications/SqsDestination.kt @@ -16,17 +16,16 @@ import io.cloudshiftdev.constructs.Construct * * ``` * Queue myQueue; - * Bucket bucket = new Bucket(this, "MyBucket"); - * bucket.addEventNotification(EventType.OBJECT_REMOVED, new SqsDestination(myQueue), - * NotificationKeyFilter.builder() - * .prefix("foo/") - * .suffix(".jpg") - * .build()); + * Bucket bucket = Bucket.Builder.create(this, "MyBucket") + * .notificationsSkipDestinationValidation(true) + * .build(); + * bucket.addEventNotification(EventType.OBJECT_REMOVED, new SqsDestination(myQueue)); * ``` */ public open class SqsDestination( cdkObject: software.amazon.awscdk.services.s3.notifications.SqsDestination, -) : CdkObject(cdkObject), IBucketNotificationDestination { +) : CdkObject(cdkObject), + IBucketNotificationDestination { public constructor(queue: IQueue) : this(software.amazon.awscdk.services.s3.notifications.SqsDestination(queue.let(IQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicy.kt index 53dcc58527..331f50b159 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicy.kt @@ -80,7 +80,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucketPolicy( cdkObject: software.amazon.awscdk.services.s3express.CfnBucketPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicyProps.kt index 0962a4762b..c44e48d5b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnBucketPolicyProps.kt @@ -106,7 +106,8 @@ public interface CfnBucketPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3express.CfnBucketPolicyProps, - ) : CdkObject(cdkObject), CfnBucketPolicyProps { + ) : CdkObject(cdkObject), + CfnBucketPolicyProps { /** * The name of the S3 directory bucket to which the policy applies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucket.kt index 4e7064c108..4172d1708e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucket.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDirectoryBucket( cdkObject: software.amazon.awscdk.services.s3express.CfnDirectoryBucket, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucketProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucketProps.kt index 00f3263aca..b77a46c963 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucketProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3express/CfnDirectoryBucketProps.kt @@ -152,7 +152,8 @@ public interface CfnDirectoryBucketProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3express.CfnDirectoryBucketProps, - ) : CdkObject(cdkObject), CfnDirectoryBucketProps { + ) : CdkObject(cdkObject), + CfnDirectoryBucketProps { /** * A name for the bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPoint.kt index aafa6a9ee2..48d0650f18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPoint.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPoint( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -407,7 +408,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.AliasProperty, - ) : CdkObject(cdkObject), AliasProperty { + ) : CdkObject(cdkObject), + AliasProperty { /** * The status of the Object Lambda Access Point alias. * @@ -513,7 +515,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.AwsLambdaProperty, - ) : CdkObject(cdkObject), AwsLambdaProperty { + ) : CdkObject(cdkObject), + AwsLambdaProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3objectlambda-accesspoint-awslambda.html#cfn-s3objectlambda-accesspoint-awslambda-functionarn) */ @@ -626,7 +629,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.ContentTransformationProperty, - ) : CdkObject(cdkObject), ContentTransformationProperty { + ) : CdkObject(cdkObject), + ContentTransformationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3objectlambda-accesspoint-contenttransformation.html#cfn-s3objectlambda-accesspoint-contenttransformation-awslambda) */ @@ -841,7 +845,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.ObjectLambdaConfigurationProperty, - ) : CdkObject(cdkObject), ObjectLambdaConfigurationProperty { + ) : CdkObject(cdkObject), + ObjectLambdaConfigurationProperty { /** * A container for allowed features. * @@ -966,7 +971,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.PolicyStatusProperty, - ) : CdkObject(cdkObject), PolicyStatusProperty { + ) : CdkObject(cdkObject), + PolicyStatusProperty { /** * Specifies whether the Object lambda Access Point Policy is Public or not. * @@ -1338,7 +1344,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.PublicAccessBlockConfigurationProperty, - ) : CdkObject(cdkObject), PublicAccessBlockConfigurationProperty { + ) : CdkObject(cdkObject), + PublicAccessBlockConfigurationProperty { /** * Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in * this account. @@ -1529,7 +1536,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPoint.TransformationConfigurationProperty, - ) : CdkObject(cdkObject), TransformationConfigurationProperty { + ) : CdkObject(cdkObject), + TransformationConfigurationProperty { /** * A container for the action of an Object Lambda Access Point configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicy.kt index fac5392f13..048f598f02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicy.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPointPolicy( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPointPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicyProps.kt index 35d5036ade..69ddc2d0d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointPolicyProps.kt @@ -86,7 +86,8 @@ public interface CfnAccessPointPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPointPolicyProps, - ) : CdkObject(cdkObject), CfnAccessPointPolicyProps { + ) : CdkObject(cdkObject), + CfnAccessPointPolicyProps { /** * An access point with an attached AWS Lambda function used to access transformed data from an * Amazon S3 bucket. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointProps.kt index eab2d74e1a..34b34bfb45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3objectlambda/CfnAccessPointProps.kt @@ -133,7 +133,8 @@ public interface CfnAccessPointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3objectlambda.CfnAccessPointProps, - ) : CdkObject(cdkObject), CfnAccessPointProps { + ) : CdkObject(cdkObject), + CfnAccessPointProps { /** * The name of this access point. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPoint.kt index 5f1751e044..572f255bc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPoint.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessPoint( cdkObject: software.amazon.awscdk.services.s3outposts.CfnAccessPoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -361,7 +362,8 @@ public open class CfnAccessPoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnAccessPoint.VpcConfigurationProperty, - ) : CdkObject(cdkObject), VpcConfigurationProperty { + ) : CdkObject(cdkObject), + VpcConfigurationProperty { /** * Virtual Private Cloud (VPC) Id from which AccessPoint will allow requests. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPointProps.kt index b83a8919c9..3eef1429db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnAccessPointProps.kt @@ -165,7 +165,8 @@ public interface CfnAccessPointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnAccessPointProps, - ) : CdkObject(cdkObject), CfnAccessPointProps { + ) : CdkObject(cdkObject), + CfnAccessPointProps { /** * The Amazon Resource Name (ARN) of the S3 on Outposts bucket that is associated with this * access point. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucket.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucket.kt index cfca5bc9a5..b2a0b503a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucket.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucket.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucket( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -581,7 +583,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.AbortIncompleteMultipartUploadProperty, - ) : CdkObject(cdkObject), AbortIncompleteMultipartUploadProperty { + ) : CdkObject(cdkObject), + AbortIncompleteMultipartUploadProperty { /** * Specifies the number of days after initiation that Amazon S3 on Outposts aborts an * incomplete multipart upload. @@ -692,7 +695,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.FilterAndOperatorProperty, - ) : CdkObject(cdkObject), FilterAndOperatorProperty { + ) : CdkObject(cdkObject), + FilterAndOperatorProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3outposts-bucket-filterandoperator.html#cfn-s3outposts-bucket-filterandoperator-prefix) */ @@ -872,7 +876,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3outposts-bucket-filter.html#cfn-s3outposts-bucket-filter-andoperator) */ @@ -974,7 +979,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.FilterTagProperty, - ) : CdkObject(cdkObject), FilterTagProperty { + ) : CdkObject(cdkObject), + FilterTagProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3outposts-bucket-filtertag.html#cfn-s3outposts-bucket-filtertag-key) */ @@ -1101,7 +1107,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.LifecycleConfigurationProperty, - ) : CdkObject(cdkObject), LifecycleConfigurationProperty { + ) : CdkObject(cdkObject), + LifecycleConfigurationProperty { /** * The container for the lifecycle configuration rules for the objects stored in the S3 on * Outposts bucket. @@ -1332,7 +1339,8 @@ public open class CfnBucket( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucket.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The container for the abort incomplete multipart upload rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicy.kt index ce1ee57a9c..10ac449fec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicy.kt @@ -50,7 +50,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBucketPolicy( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucketPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicyProps.kt index e83fe440db..d3a57ec6c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketPolicyProps.kt @@ -106,7 +106,8 @@ public interface CfnBucketPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucketPolicyProps, - ) : CdkObject(cdkObject), CfnBucketPolicyProps { + ) : CdkObject(cdkObject), + CfnBucketPolicyProps { /** * The name of the Amazon S3 Outposts bucket to which the policy applies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketProps.kt index b6434a661f..0f65f82ac6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnBucketProps.kt @@ -358,7 +358,8 @@ public interface CfnBucketProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnBucketProps, - ) : CdkObject(cdkObject), CfnBucketProps { + ) : CdkObject(cdkObject), + CfnBucketProps { /** * A name for the S3 on Outposts bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpoint.kt index ee0381ee12..a0c2fb3435 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpoint.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpoint( cdkObject: software.amazon.awscdk.services.s3outposts.CfnEndpoint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -486,7 +487,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnEndpoint.FailedReasonProperty, - ) : CdkObject(cdkObject), FailedReasonProperty { + ) : CdkObject(cdkObject), + FailedReasonProperty { /** * The failure code, if any, for a create or delete endpoint operation. * @@ -574,7 +576,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnEndpoint.NetworkInterfaceProperty, - ) : CdkObject(cdkObject), NetworkInterfaceProperty { + ) : CdkObject(cdkObject), + NetworkInterfaceProperty { /** * The ID for the network interface. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpointProps.kt index ab04dfbd1b..d3a8a12aad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3outposts/CfnEndpointProps.kt @@ -224,7 +224,8 @@ public interface CfnEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.s3outposts.CfnEndpointProps, - ) : CdkObject(cdkObject), CfnEndpointProps { + ) : CdkObject(cdkObject), + CfnEndpointProps { /** * The container for the type of connectivity used to access the Amazon S3 on Outposts endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnApp.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnApp.kt index 984a2d2ae3..1c47c3a123 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnApp.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnApp.kt @@ -41,6 +41,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .resourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -55,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApp( cdkObject: software.amazon.awscdk.services.sagemaker.CfnApp, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -428,6 +431,7 @@ public open class CfnApp( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * ResourceSpecProperty resourceSpecProperty = ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build(); @@ -450,6 +454,13 @@ public open class CfnApp( */ public fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-app-resourcespec.html#cfn-sagemaker-app-resourcespec-lifecycleconfigarn) + */ + public fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * @@ -479,6 +490,12 @@ public open class CfnApp( */ public fun instanceType(instanceType: String) + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + public fun lifecycleConfigArn(lifecycleConfigArn: String) + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -507,6 +524,14 @@ public open class CfnApp( cdkBuilder.instanceType(instanceType) } + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + override fun lifecycleConfigArn(lifecycleConfigArn: String) { + cdkBuilder.lifecycleConfigArn(lifecycleConfigArn) + } + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -527,7 +552,8 @@ public open class CfnApp( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnApp.ResourceSpecProperty, - ) : CdkObject(cdkObject), ResourceSpecProperty { + ) : CdkObject(cdkObject), + ResourceSpecProperty { /** * The instance type that the image version runs on. * @@ -542,6 +568,13 @@ public open class CfnApp( */ override fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-app-resourcespec.html#cfn-sagemaker-app-resourcespec-lifecycleconfigarn) + */ + override fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfig.kt index c358439bc0..8905f7724c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfig.kt @@ -81,7 +81,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAppImageConfig( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -653,7 +655,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.CodeEditorAppImageConfigProperty, - ) : CdkObject(cdkObject), CodeEditorAppImageConfigProperty { + ) : CdkObject(cdkObject), + CodeEditorAppImageConfigProperty { /** * The container configuration for a SageMaker image. * @@ -830,7 +833,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.ContainerConfigProperty, - ) : CdkObject(cdkObject), ContainerConfigProperty { + ) : CdkObject(cdkObject), + ContainerConfigProperty { /** * The arguments for the container when you're running the application. * @@ -950,7 +954,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.CustomImageContainerEnvironmentVariableProperty, - ) : CdkObject(cdkObject), CustomImageContainerEnvironmentVariableProperty { + ) : CdkObject(cdkObject), + CustomImageContainerEnvironmentVariableProperty { /** * The key that identifies a container environment variable. * @@ -1092,7 +1097,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.FileSystemConfigProperty, - ) : CdkObject(cdkObject), FileSystemConfigProperty { + ) : CdkObject(cdkObject), + FileSystemConfigProperty { /** * The default POSIX group ID (GID). * @@ -1232,7 +1238,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.JupyterLabAppImageConfigProperty, - ) : CdkObject(cdkObject), JupyterLabAppImageConfigProperty { + ) : CdkObject(cdkObject), + JupyterLabAppImageConfigProperty { /** * The configuration used to run the application image container. * @@ -1400,7 +1407,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.KernelGatewayImageConfigProperty, - ) : CdkObject(cdkObject), KernelGatewayImageConfigProperty { + ) : CdkObject(cdkObject), + KernelGatewayImageConfigProperty { /** * The Amazon Elastic File System storage configuration for a SageMaker image. * @@ -1513,7 +1521,8 @@ public open class CfnAppImageConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfig.KernelSpecProperty, - ) : CdkObject(cdkObject), KernelSpecProperty { + ) : CdkObject(cdkObject), + KernelSpecProperty { /** * The display name of the kernel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfigProps.kt index ef5e23438e..65b1b15ddc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppImageConfigProps.kt @@ -325,7 +325,8 @@ public interface CfnAppImageConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppImageConfigProps, - ) : CdkObject(cdkObject), CfnAppImageConfigProps { + ) : CdkObject(cdkObject), + CfnAppImageConfigProps { /** * The name of the AppImageConfig. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppProps.kt index ea307a6007..4ecf4393c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnAppProps.kt @@ -30,6 +30,7 @@ import kotlin.jvm.JvmName * // the properties below are optional * .resourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -232,7 +233,8 @@ public interface CfnAppProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnAppProps, - ) : CdkObject(cdkObject), CfnAppProps { + ) : CdkObject(cdkObject), + CfnAppProps { /** * The name of the app. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCluster.kt new file mode 100644 index 0000000000..eebd72962d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCluster.kt @@ -0,0 +1,1828 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a SageMaker HyperPod cluster. + * + * SageMaker HyperPod is a capability of SageMaker for creating and managing persistent clusters for + * developing large machine learning models, such as large language models (LLMs) and diffusion models. + * To learn more, see [Amazon SageMaker + * HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html) in the *Amazon + * SageMaker Developer Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster") + * .instanceGroups(List.of(ClusterInstanceGroupProperty.builder() + * .executionRole("executionRole") + * .instanceCount(123) + * .instanceGroupName("instanceGroupName") + * .instanceType("instanceType") + * .lifeCycleConfig(ClusterLifeCycleConfigProperty.builder() + * .onCreate("onCreate") + * .sourceS3Uri("sourceS3Uri") + * .build()) + * // the properties below are optional + * .currentCount(123) + * .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder() + * .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder() + * .volumeSizeInGb(123) + * .build()) + * .build())) + * .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks")) + * .threadsPerCore(123) + * .build())) + * // the properties below are optional + * .clusterName("clusterName") + * .nodeRecovery("nodeRecovery") + * .orchestrator(OrchestratorProperty.builder() + * .eks(ClusterOrchestratorEksConfigProperty.builder() + * .clusterArn("clusterArn") + * .build()) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .vpcConfig(VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html) + */ +public open class CfnCluster( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnClusterProps, + ) : + this(software.amazon.awscdk.services.sagemaker.CfnCluster(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnClusterProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnClusterProps.Builder.() -> Unit, + ) : this(scope, id, CfnClusterProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + */ + public open fun attrClusterArn(): String = unwrap(this).getAttrClusterArn() + + /** + * The status of the SageMaker HyperPod cluster. + */ + public open fun attrClusterStatus(): String = unwrap(this).getAttrClusterStatus() + + /** + * The time when the SageMaker HyperPod cluster is created. + */ + public open fun attrCreationTime(): String = unwrap(this).getAttrCreationTime() + + /** + * The failure message of the SageMaker HyperPod cluster. + */ + public open fun attrFailureMessage(): String = unwrap(this).getAttrFailureMessage() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The name of the SageMaker HyperPod cluster. + */ + public open fun clusterName(): String? = unwrap(this).getClusterName() + + /** + * The name of the SageMaker HyperPod cluster. + */ + public open fun clusterName(`value`: String) { + unwrap(this).setClusterName(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + */ + public open fun instanceGroups(): Any = unwrap(this).getInstanceGroups() + + /** + * The instance groups of the SageMaker HyperPod cluster. + */ + public open fun instanceGroups(`value`: IResolvable) { + unwrap(this).setInstanceGroups(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + */ + public open fun instanceGroups(`value`: List) { + unwrap(this).setInstanceGroups(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + */ + public open fun instanceGroups(vararg `value`: Any): Unit = instanceGroups(`value`.toList()) + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + */ + public open fun nodeRecovery(): String? = unwrap(this).getNodeRecovery() + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + */ + public open fun nodeRecovery(`value`: String) { + unwrap(this).setNodeRecovery(`value`) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + */ + public open fun orchestrator(): Any? = unwrap(this).getOrchestrator() + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + */ + public open fun orchestrator(`value`: IResolvable) { + unwrap(this).setOrchestrator(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + */ + public open fun orchestrator(`value`: OrchestratorProperty) { + unwrap(this).setOrchestrator(`value`.let(OrchestratorProperty.Companion::unwrap)) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6f1ef9b34ec608e6e98323a36d8fed4d51e48ed699c6884d3d10a1873a5a63c8") + public open fun orchestrator(`value`: OrchestratorProperty.Builder.() -> Unit): Unit = + orchestrator(OrchestratorProperty(`value`)) + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + */ + public open fun vpcConfig(): Any? = unwrap(this).getVpcConfig() + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + */ + public open fun vpcConfig(`value`: IResolvable) { + unwrap(this).setVpcConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + */ + public open fun vpcConfig(`value`: VpcConfigProperty) { + unwrap(this).setVpcConfig(`value`.let(VpcConfigProperty.Companion::unwrap)) + } + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dca3b18550616ad3839937e6f073d908a4c04440876ee6d11142fa862f8df459") + public open fun vpcConfig(`value`: VpcConfigProperty.Builder.() -> Unit): Unit = + vpcConfig(VpcConfigProperty(`value`)) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sagemaker.CfnCluster]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-clustername) + * @param clusterName The name of the SageMaker HyperPod cluster. + */ + public fun clusterName(clusterName: String) + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(instanceGroups: IResolvable) + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(instanceGroups: List) + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(vararg instanceGroups: Any) + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + * + * Available values are `Automatic` for enabling and `None` for disabling. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-noderecovery) + * @param nodeRecovery Specifies whether to enable or disable the automatic node recovery + * feature of SageMaker HyperPod. + */ + public fun nodeRecovery(nodeRecovery: String) + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + public fun orchestrator(orchestrator: IResolvable) + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + public fun orchestrator(orchestrator: OrchestratorProperty) + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5ac463481bd962dd64bb538b7c4fb013571fc6b00771dbc7d3a10928a8a8ff3d") + public fun orchestrator(orchestrator: OrchestratorProperty.Builder.() -> Unit) + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + */ + public fun tags(tags: List) + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + */ + public fun tags(vararg tags: CfnTag) + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + public fun vpcConfig(vpcConfig: IResolvable) + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + public fun vpcConfig(vpcConfig: VpcConfigProperty) + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2e4b1adac852206cb9dacf52d6c287ca063110b085f9494b772577ddb3079a03") + public fun vpcConfig(vpcConfig: VpcConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sagemaker.CfnCluster.Builder = + software.amazon.awscdk.services.sagemaker.CfnCluster.Builder.create(scope, id) + + /** + * The name of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-clustername) + * @param clusterName The name of the SageMaker HyperPod cluster. + */ + override fun clusterName(clusterName: String) { + cdkBuilder.clusterName(clusterName) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(instanceGroups: IResolvable) { + cdkBuilder.instanceGroups(instanceGroups.let(IResolvable.Companion::unwrap)) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(instanceGroups: List) { + cdkBuilder.instanceGroups(instanceGroups.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(vararg instanceGroups: Any): Unit = + instanceGroups(instanceGroups.toList()) + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + * + * Available values are `Automatic` for enabling and `None` for disabling. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-noderecovery) + * @param nodeRecovery Specifies whether to enable or disable the automatic node recovery + * feature of SageMaker HyperPod. + */ + override fun nodeRecovery(nodeRecovery: String) { + cdkBuilder.nodeRecovery(nodeRecovery) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + override fun orchestrator(orchestrator: IResolvable) { + cdkBuilder.orchestrator(orchestrator.let(IResolvable.Companion::unwrap)) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + override fun orchestrator(orchestrator: OrchestratorProperty) { + cdkBuilder.orchestrator(orchestrator.let(OrchestratorProperty.Companion::unwrap)) + } + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5ac463481bd962dd64bb538b7c4fb013571fc6b00771dbc7d3a10928a8a8ff3d") + override fun orchestrator(orchestrator: OrchestratorProperty.Builder.() -> Unit): Unit = + orchestrator(OrchestratorProperty(orchestrator)) + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + override fun vpcConfig(vpcConfig: IResolvable) { + cdkBuilder.vpcConfig(vpcConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + override fun vpcConfig(vpcConfig: VpcConfigProperty) { + cdkBuilder.vpcConfig(vpcConfig.let(VpcConfigProperty.Companion::unwrap)) + } + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2e4b1adac852206cb9dacf52d6c287ca063110b085f9494b772577ddb3079a03") + override fun vpcConfig(vpcConfig: VpcConfigProperty.Builder.() -> Unit): Unit = + vpcConfig(VpcConfigProperty(vpcConfig)) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnCluster = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sagemaker.CfnCluster.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnCluster { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnCluster(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster): CfnCluster = + CfnCluster(cdkObject) + + internal fun unwrap(wrapped: CfnCluster): software.amazon.awscdk.services.sagemaker.CfnCluster = + wrapped.cdkObject as software.amazon.awscdk.services.sagemaker.CfnCluster + } + + /** + * Defines the configuration for attaching an additional Amazon Elastic Block Store (EBS) volume + * to each instance of the SageMaker HyperPod cluster instance group. + * + * To learn more, see [SageMaker HyperPod release notes: June 20, + * 2024](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-release-notes.html#sagemaker-hyperpod-release-notes-20240620) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ClusterEbsVolumeConfigProperty clusterEbsVolumeConfigProperty = + * ClusterEbsVolumeConfigProperty.builder() + * .volumeSizeInGb(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterebsvolumeconfig.html) + */ + public interface ClusterEbsVolumeConfigProperty { + /** + * The size in gigabytes (GB) of the additional EBS volume to be attached to the instances in + * the SageMaker HyperPod cluster instance group. + * + * The additional EBS volume is attached to each instance within the SageMaker HyperPod cluster + * instance group and mounted to `/opt/sagemaker` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterebsvolumeconfig.html#cfn-sagemaker-cluster-clusterebsvolumeconfig-volumesizeingb) + */ + public fun volumeSizeInGb(): Number? = unwrap(this).getVolumeSizeInGb() + + /** + * A builder for [ClusterEbsVolumeConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param volumeSizeInGb The size in gigabytes (GB) of the additional EBS volume to be + * attached to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + public fun volumeSizeInGb(volumeSizeInGb: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty.builder() + + /** + * @param volumeSizeInGb The size in gigabytes (GB) of the additional EBS volume to be + * attached to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + override fun volumeSizeInGb(volumeSizeInGb: Number) { + cdkBuilder.volumeSizeInGb(volumeSizeInGb) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty, + ) : CdkObject(cdkObject), + ClusterEbsVolumeConfigProperty { + /** + * The size in gigabytes (GB) of the additional EBS volume to be attached to the instances in + * the SageMaker HyperPod cluster instance group. + * + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterebsvolumeconfig.html#cfn-sagemaker-cluster-clusterebsvolumeconfig-volumesizeingb) + */ + override fun volumeSizeInGb(): Number? = unwrap(this).getVolumeSizeInGb() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ClusterEbsVolumeConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty): + ClusterEbsVolumeConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterEbsVolumeConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterEbsVolumeConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty + } + } + + /** + * The configuration information of the instance group within the HyperPod cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ClusterInstanceGroupProperty clusterInstanceGroupProperty = + * ClusterInstanceGroupProperty.builder() + * .executionRole("executionRole") + * .instanceCount(123) + * .instanceGroupName("instanceGroupName") + * .instanceType("instanceType") + * .lifeCycleConfig(ClusterLifeCycleConfigProperty.builder() + * .onCreate("onCreate") + * .sourceS3Uri("sourceS3Uri") + * .build()) + * // the properties below are optional + * .currentCount(123) + * .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder() + * .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder() + * .volumeSizeInGb(123) + * .build()) + * .build())) + * .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks")) + * .threadsPerCore(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html) + */ + public interface ClusterInstanceGroupProperty { + /** + * The number of instances that are currently in the instance group of a SageMaker HyperPod + * cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-currentcount) + */ + public fun currentCount(): Number? = unwrap(this).getCurrentCount() + + /** + * The execution role for the instance group to assume. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-executionrole) + */ + public fun executionRole(): String + + /** + * The number of instances in an instance group of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancecount) + */ + public fun instanceCount(): Number + + /** + * The name of the instance group of a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancegroupname) + */ + public fun instanceGroupName(): String + + /** + * The configurations of additional storage specified to the instance group where the instance + * (node) is launched. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancestorageconfigs) + */ + public fun instanceStorageConfigs(): Any? = unwrap(this).getInstanceStorageConfigs() + + /** + * The instance type of the instance group of a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancetype) + */ + public fun instanceType(): String + + /** + * The lifecycle configuration for a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-lifecycleconfig) + */ + public fun lifeCycleConfig(): Any + + /** + * A flag indicating whether deep health checks should be performed when the HyperPod cluster + * instance group is created or updated. + * + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-onstartdeephealthchecks) + */ + public fun onStartDeepHealthChecks(): List = unwrap(this).getOnStartDeepHealthChecks() + ?: emptyList() + + /** + * The number of threads per CPU core you specified under `CreateCluster` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-threadspercore) + */ + public fun threadsPerCore(): Number? = unwrap(this).getThreadsPerCore() + + /** + * A builder for [ClusterInstanceGroupProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param currentCount The number of instances that are currently in the instance group of a + * SageMaker HyperPod cluster. + */ + public fun currentCount(currentCount: Number) + + /** + * @param executionRole The execution role for the instance group to assume. + */ + public fun executionRole(executionRole: String) + + /** + * @param instanceCount The number of instances in an instance group of the SageMaker HyperPod + * cluster. + */ + public fun instanceCount(instanceCount: Number) + + /** + * @param instanceGroupName The name of the instance group of a SageMaker HyperPod cluster. + */ + public fun instanceGroupName(instanceGroupName: String) + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + public fun instanceStorageConfigs(instanceStorageConfigs: IResolvable) + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + public fun instanceStorageConfigs(instanceStorageConfigs: List) + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + public fun instanceStorageConfigs(vararg instanceStorageConfigs: Any) + + /** + * @param instanceType The instance type of the instance group of a SageMaker HyperPod + * cluster. + */ + public fun instanceType(instanceType: String) + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + public fun lifeCycleConfig(lifeCycleConfig: IResolvable) + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + public fun lifeCycleConfig(lifeCycleConfig: ClusterLifeCycleConfigProperty) + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6e048c3609714dde556d830d8c8a61e46ae0c8cce4be3f17d9b2fa9f41f8f392") + public fun lifeCycleConfig(lifeCycleConfig: ClusterLifeCycleConfigProperty.Builder.() -> Unit) + + /** + * @param onStartDeepHealthChecks A flag indicating whether deep health checks should be + * performed when the HyperPod cluster instance group is created or updated. + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + */ + public fun onStartDeepHealthChecks(onStartDeepHealthChecks: List) + + /** + * @param onStartDeepHealthChecks A flag indicating whether deep health checks should be + * performed when the HyperPod cluster instance group is created or updated. + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + */ + public fun onStartDeepHealthChecks(vararg onStartDeepHealthChecks: String) + + /** + * @param threadsPerCore The number of threads per CPU core you specified under + * `CreateCluster` . + */ + public fun threadsPerCore(threadsPerCore: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty.builder() + + /** + * @param currentCount The number of instances that are currently in the instance group of a + * SageMaker HyperPod cluster. + */ + override fun currentCount(currentCount: Number) { + cdkBuilder.currentCount(currentCount) + } + + /** + * @param executionRole The execution role for the instance group to assume. + */ + override fun executionRole(executionRole: String) { + cdkBuilder.executionRole(executionRole) + } + + /** + * @param instanceCount The number of instances in an instance group of the SageMaker HyperPod + * cluster. + */ + override fun instanceCount(instanceCount: Number) { + cdkBuilder.instanceCount(instanceCount) + } + + /** + * @param instanceGroupName The name of the instance group of a SageMaker HyperPod cluster. + */ + override fun instanceGroupName(instanceGroupName: String) { + cdkBuilder.instanceGroupName(instanceGroupName) + } + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + override fun instanceStorageConfigs(instanceStorageConfigs: IResolvable) { + cdkBuilder.instanceStorageConfigs(instanceStorageConfigs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + override fun instanceStorageConfigs(instanceStorageConfigs: List) { + cdkBuilder.instanceStorageConfigs(instanceStorageConfigs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param instanceStorageConfigs The configurations of additional storage specified to the + * instance group where the instance (node) is launched. + */ + override fun instanceStorageConfigs(vararg instanceStorageConfigs: Any): Unit = + instanceStorageConfigs(instanceStorageConfigs.toList()) + + /** + * @param instanceType The instance type of the instance group of a SageMaker HyperPod + * cluster. + */ + override fun instanceType(instanceType: String) { + cdkBuilder.instanceType(instanceType) + } + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + override fun lifeCycleConfig(lifeCycleConfig: IResolvable) { + cdkBuilder.lifeCycleConfig(lifeCycleConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + override fun lifeCycleConfig(lifeCycleConfig: ClusterLifeCycleConfigProperty) { + cdkBuilder.lifeCycleConfig(lifeCycleConfig.let(ClusterLifeCycleConfigProperty.Companion::unwrap)) + } + + /** + * @param lifeCycleConfig The lifecycle configuration for a SageMaker HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6e048c3609714dde556d830d8c8a61e46ae0c8cce4be3f17d9b2fa9f41f8f392") + override + fun lifeCycleConfig(lifeCycleConfig: ClusterLifeCycleConfigProperty.Builder.() -> Unit): + Unit = lifeCycleConfig(ClusterLifeCycleConfigProperty(lifeCycleConfig)) + + /** + * @param onStartDeepHealthChecks A flag indicating whether deep health checks should be + * performed when the HyperPod cluster instance group is created or updated. + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + */ + override fun onStartDeepHealthChecks(onStartDeepHealthChecks: List) { + cdkBuilder.onStartDeepHealthChecks(onStartDeepHealthChecks) + } + + /** + * @param onStartDeepHealthChecks A flag indicating whether deep health checks should be + * performed when the HyperPod cluster instance group is created or updated. + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + */ + override fun onStartDeepHealthChecks(vararg onStartDeepHealthChecks: String): Unit = + onStartDeepHealthChecks(onStartDeepHealthChecks.toList()) + + /** + * @param threadsPerCore The number of threads per CPU core you specified under + * `CreateCluster` . + */ + override fun threadsPerCore(threadsPerCore: Number) { + cdkBuilder.threadsPerCore(threadsPerCore) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty, + ) : CdkObject(cdkObject), + ClusterInstanceGroupProperty { + /** + * The number of instances that are currently in the instance group of a SageMaker HyperPod + * cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-currentcount) + */ + override fun currentCount(): Number? = unwrap(this).getCurrentCount() + + /** + * The execution role for the instance group to assume. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-executionrole) + */ + override fun executionRole(): String = unwrap(this).getExecutionRole() + + /** + * The number of instances in an instance group of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancecount) + */ + override fun instanceCount(): Number = unwrap(this).getInstanceCount() + + /** + * The name of the instance group of a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancegroupname) + */ + override fun instanceGroupName(): String = unwrap(this).getInstanceGroupName() + + /** + * The configurations of additional storage specified to the instance group where the instance + * (node) is launched. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancestorageconfigs) + */ + override fun instanceStorageConfigs(): Any? = unwrap(this).getInstanceStorageConfigs() + + /** + * The instance type of the instance group of a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-instancetype) + */ + override fun instanceType(): String = unwrap(this).getInstanceType() + + /** + * The lifecycle configuration for a SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-lifecycleconfig) + */ + override fun lifeCycleConfig(): Any = unwrap(this).getLifeCycleConfig() + + /** + * A flag indicating whether deep health checks should be performed when the HyperPod cluster + * instance group is created or updated. + * + * Deep health checks are comprehensive, invasive tests that validate the health of the + * underlying hardware and infrastructure components. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-onstartdeephealthchecks) + */ + override fun onStartDeepHealthChecks(): List = + unwrap(this).getOnStartDeepHealthChecks() ?: emptyList() + + /** + * The number of threads per CPU core you specified under `CreateCluster` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancegroup.html#cfn-sagemaker-cluster-clusterinstancegroup-threadspercore) + */ + override fun threadsPerCore(): Number? = unwrap(this).getThreadsPerCore() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ClusterInstanceGroupProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty): + ClusterInstanceGroupProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterInstanceGroupProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterInstanceGroupProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceGroupProperty + } + } + + /** + * Defines the configuration for attaching additional storage to the instances in the SageMaker + * HyperPod cluster instance group. + * + * To learn more, see [SageMaker HyperPod release notes: June 20, + * 2024](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-release-notes.html#sagemaker-hyperpod-release-notes-20240620) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ClusterInstanceStorageConfigProperty clusterInstanceStorageConfigProperty = + * ClusterInstanceStorageConfigProperty.builder() + * .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder() + * .volumeSizeInGb(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancestorageconfig.html) + */ + public interface ClusterInstanceStorageConfigProperty { + /** + * Defines the configuration for attaching additional Amazon Elastic Block Store (EBS) volumes + * to the instances in the SageMaker HyperPod cluster instance group. + * + * The additional EBS volume is attached to each instance within the SageMaker HyperPod cluster + * instance group and mounted to `/opt/sagemaker` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancestorageconfig.html#cfn-sagemaker-cluster-clusterinstancestorageconfig-ebsvolumeconfig) + */ + public fun ebsVolumeConfig(): Any? = unwrap(this).getEbsVolumeConfig() + + /** + * A builder for [ClusterInstanceStorageConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + public fun ebsVolumeConfig(ebsVolumeConfig: IResolvable) + + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + public fun ebsVolumeConfig(ebsVolumeConfig: ClusterEbsVolumeConfigProperty) + + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b724ca05bd3199b4ba11e27002bc4902a37267f4e6dd50baa64dc5509ec29f0b") + public fun ebsVolumeConfig(ebsVolumeConfig: ClusterEbsVolumeConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty.builder() + + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + override fun ebsVolumeConfig(ebsVolumeConfig: IResolvable) { + cdkBuilder.ebsVolumeConfig(ebsVolumeConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + override fun ebsVolumeConfig(ebsVolumeConfig: ClusterEbsVolumeConfigProperty) { + cdkBuilder.ebsVolumeConfig(ebsVolumeConfig.let(ClusterEbsVolumeConfigProperty.Companion::unwrap)) + } + + /** + * @param ebsVolumeConfig Defines the configuration for attaching additional Amazon Elastic + * Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b724ca05bd3199b4ba11e27002bc4902a37267f4e6dd50baa64dc5509ec29f0b") + override + fun ebsVolumeConfig(ebsVolumeConfig: ClusterEbsVolumeConfigProperty.Builder.() -> Unit): + Unit = ebsVolumeConfig(ClusterEbsVolumeConfigProperty(ebsVolumeConfig)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty, + ) : CdkObject(cdkObject), + ClusterInstanceStorageConfigProperty { + /** + * Defines the configuration for attaching additional Amazon Elastic Block Store (EBS) volumes + * to the instances in the SageMaker HyperPod cluster instance group. + * + * The additional EBS volume is attached to each instance within the SageMaker HyperPod + * cluster instance group and mounted to `/opt/sagemaker` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterinstancestorageconfig.html#cfn-sagemaker-cluster-clusterinstancestorageconfig-ebsvolumeconfig) + */ + override fun ebsVolumeConfig(): Any? = unwrap(this).getEbsVolumeConfig() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ClusterInstanceStorageConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty): + ClusterInstanceStorageConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterInstanceStorageConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterInstanceStorageConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty + } + } + + /** + * The lifecycle configuration for a SageMaker HyperPod cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ClusterLifeCycleConfigProperty clusterLifeCycleConfigProperty = + * ClusterLifeCycleConfigProperty.builder() + * .onCreate("onCreate") + * .sourceS3Uri("sourceS3Uri") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterlifecycleconfig.html) + */ + public interface ClusterLifeCycleConfigProperty { + /** + * The file name of the entrypoint script of lifecycle scripts under `SourceS3Uri` . + * + * This entrypoint script runs during cluster creation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterlifecycleconfig.html#cfn-sagemaker-cluster-clusterlifecycleconfig-oncreate) + */ + public fun onCreate(): String + + /** + * An Amazon S3 bucket path where your lifecycle scripts are stored. + * + * + * Make sure that the S3 bucket path starts with `s3://sagemaker-` . The [IAM role for SageMaker + * HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod) + * has the managed + * [`AmazonSageMakerClusterInstanceRolePolicy`](https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html) + * attached, which allows access to S3 buckets with the specific prefix `sagemaker-` . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterlifecycleconfig.html#cfn-sagemaker-cluster-clusterlifecycleconfig-sources3uri) + */ + public fun sourceS3Uri(): String + + /** + * A builder for [ClusterLifeCycleConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param onCreate The file name of the entrypoint script of lifecycle scripts under + * `SourceS3Uri` . + * This entrypoint script runs during cluster creation. + */ + public fun onCreate(onCreate: String) + + /** + * @param sourceS3Uri An Amazon S3 bucket path where your lifecycle scripts are stored. + * + * Make sure that the S3 bucket path starts with `s3://sagemaker-` . The [IAM role for + * SageMaker + * HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod) + * has the managed + * [`AmazonSageMakerClusterInstanceRolePolicy`](https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html) + * attached, which allows access to S3 buckets with the specific prefix `sagemaker-` . + */ + public fun sourceS3Uri(sourceS3Uri: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty.builder() + + /** + * @param onCreate The file name of the entrypoint script of lifecycle scripts under + * `SourceS3Uri` . + * This entrypoint script runs during cluster creation. + */ + override fun onCreate(onCreate: String) { + cdkBuilder.onCreate(onCreate) + } + + /** + * @param sourceS3Uri An Amazon S3 bucket path where your lifecycle scripts are stored. + * + * Make sure that the S3 bucket path starts with `s3://sagemaker-` . The [IAM role for + * SageMaker + * HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod) + * has the managed + * [`AmazonSageMakerClusterInstanceRolePolicy`](https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html) + * attached, which allows access to S3 buckets with the specific prefix `sagemaker-` . + */ + override fun sourceS3Uri(sourceS3Uri: String) { + cdkBuilder.sourceS3Uri(sourceS3Uri) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty, + ) : CdkObject(cdkObject), + ClusterLifeCycleConfigProperty { + /** + * The file name of the entrypoint script of lifecycle scripts under `SourceS3Uri` . + * + * This entrypoint script runs during cluster creation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterlifecycleconfig.html#cfn-sagemaker-cluster-clusterlifecycleconfig-oncreate) + */ + override fun onCreate(): String = unwrap(this).getOnCreate() + + /** + * An Amazon S3 bucket path where your lifecycle scripts are stored. + * + * + * Make sure that the S3 bucket path starts with `s3://sagemaker-` . The [IAM role for + * SageMaker + * HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod) + * has the managed + * [`AmazonSageMakerClusterInstanceRolePolicy`](https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html) + * attached, which allows access to S3 buckets with the specific prefix `sagemaker-` . + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterlifecycleconfig.html#cfn-sagemaker-cluster-clusterlifecycleconfig-sources3uri) + */ + override fun sourceS3Uri(): String = unwrap(this).getSourceS3Uri() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ClusterLifeCycleConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty): + ClusterLifeCycleConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterLifeCycleConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterLifeCycleConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterLifeCycleConfigProperty + } + } + + /** + * The configuration for the Amazon EKS cluster that is used as the orchestrator for the SageMaker + * HyperPod cluster. + * + * This includes the Amazon Resource Name (ARN) of the EKS cluster + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ClusterOrchestratorEksConfigProperty clusterOrchestratorEksConfigProperty = + * ClusterOrchestratorEksConfigProperty.builder() + * .clusterArn("clusterArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterorchestratoreksconfig.html) + */ + public interface ClusterOrchestratorEksConfigProperty { + /** + * The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterorchestratoreksconfig.html#cfn-sagemaker-cluster-clusterorchestratoreksconfig-clusterarn) + */ + public fun clusterArn(): String + + /** + * A builder for [ClusterOrchestratorEksConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param clusterArn The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + */ + public fun clusterArn(clusterArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty.builder() + + /** + * @param clusterArn The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + */ + override fun clusterArn(clusterArn: String) { + cdkBuilder.clusterArn(clusterArn) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty, + ) : CdkObject(cdkObject), + ClusterOrchestratorEksConfigProperty { + /** + * The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-clusterorchestratoreksconfig.html#cfn-sagemaker-cluster-clusterorchestratoreksconfig-clusterarn) + */ + override fun clusterArn(): String = unwrap(this).getClusterArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + ClusterOrchestratorEksConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty): + ClusterOrchestratorEksConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ClusterOrchestratorEksConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ClusterOrchestratorEksConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterOrchestratorEksConfigProperty + } + } + + /** + * The orchestrator for a SageMaker HyperPod cluster. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * OrchestratorProperty orchestratorProperty = OrchestratorProperty.builder() + * .eks(ClusterOrchestratorEksConfigProperty.builder() + * .clusterArn("clusterArn") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-orchestrator.html) + */ + public interface OrchestratorProperty { + /** + * The configuration of the Amazon EKS orchestrator cluster for the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-orchestrator.html#cfn-sagemaker-cluster-orchestrator-eks) + */ + public fun eks(): Any + + /** + * A builder for [OrchestratorProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + public fun eks(eks: IResolvable) + + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + public fun eks(eks: ClusterOrchestratorEksConfigProperty) + + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("151b842be6d8c0d9ffea2f5a23a11770d4d0be3786b78b5b8ecbb196205f8fec") + public fun eks(eks: ClusterOrchestratorEksConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty.builder() + + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + override fun eks(eks: IResolvable) { + cdkBuilder.eks(eks.let(IResolvable.Companion::unwrap)) + } + + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + override fun eks(eks: ClusterOrchestratorEksConfigProperty) { + cdkBuilder.eks(eks.let(ClusterOrchestratorEksConfigProperty.Companion::unwrap)) + } + + /** + * @param eks The configuration of the Amazon EKS orchestrator cluster for the SageMaker + * HyperPod cluster. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("151b842be6d8c0d9ffea2f5a23a11770d4d0be3786b78b5b8ecbb196205f8fec") + override fun eks(eks: ClusterOrchestratorEksConfigProperty.Builder.() -> Unit): Unit = + eks(ClusterOrchestratorEksConfigProperty(eks)) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty, + ) : CdkObject(cdkObject), + OrchestratorProperty { + /** + * The configuration of the Amazon EKS orchestrator cluster for the SageMaker HyperPod + * cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-orchestrator.html#cfn-sagemaker-cluster-orchestrator-eks) + */ + override fun eks(): Any = unwrap(this).getEks() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): OrchestratorProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty): + OrchestratorProperty = CdkObjectWrappers.wrap(cdkObject) as? OrchestratorProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: OrchestratorProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.OrchestratorProperty + } + } + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-vpcconfig.html) + */ + public interface VpcConfigProperty { + /** + * The VPC security group IDs, in the form `sg-xxxxxxxx` . + * + * Specify the security groups for the VPC that is specified in the `Subnets` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-vpcconfig.html#cfn-sagemaker-cluster-vpcconfig-securitygroupids) + */ + public fun securityGroupIds(): List + + /** + * The ID of the subnets in the VPC to which you want to connect your training job or model. + * + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-vpcconfig.html#cfn-sagemaker-cluster-vpcconfig-subnets) + */ + public fun subnets(): List + + /** + * A builder for [VpcConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param securityGroupIds The VPC security group IDs, in the form `sg-xxxxxxxx` . + * Specify the security groups for the VPC that is specified in the `Subnets` field. + */ + public fun securityGroupIds(securityGroupIds: List) + + /** + * @param securityGroupIds The VPC security group IDs, in the form `sg-xxxxxxxx` . + * Specify the security groups for the VPC that is specified in the `Subnets` field. + */ + public fun securityGroupIds(vararg securityGroupIds: String) + + /** + * @param subnets The ID of the subnets in the VPC to which you want to connect your training + * job or model. + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + */ + public fun subnets(subnets: List) + + /** + * @param subnets The ID of the subnets in the VPC to which you want to connect your training + * job or model. + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + */ + public fun subnets(vararg subnets: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty.builder() + + /** + * @param securityGroupIds The VPC security group IDs, in the form `sg-xxxxxxxx` . + * Specify the security groups for the VPC that is specified in the `Subnets` field. + */ + override fun securityGroupIds(securityGroupIds: List) { + cdkBuilder.securityGroupIds(securityGroupIds) + } + + /** + * @param securityGroupIds The VPC security group IDs, in the form `sg-xxxxxxxx` . + * Specify the security groups for the VPC that is specified in the `Subnets` field. + */ + override fun securityGroupIds(vararg securityGroupIds: String): Unit = + securityGroupIds(securityGroupIds.toList()) + + /** + * @param subnets The ID of the subnets in the VPC to which you want to connect your training + * job or model. + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + */ + override fun subnets(subnets: List) { + cdkBuilder.subnets(subnets) + } + + /** + * @param subnets The ID of the subnets in the VPC to which you want to connect your training + * job or model. + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + */ + override fun subnets(vararg subnets: String): Unit = subnets(subnets.toList()) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty, + ) : CdkObject(cdkObject), + VpcConfigProperty { + /** + * The VPC security group IDs, in the form `sg-xxxxxxxx` . + * + * Specify the security groups for the VPC that is specified in the `Subnets` field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-vpcconfig.html#cfn-sagemaker-cluster-vpcconfig-securitygroupids) + */ + override fun securityGroupIds(): List = unwrap(this).getSecurityGroupIds() + + /** + * The ID of the subnets in the VPC to which you want to connect your training job or model. + * + * For information about the availability of specific instance types, see [Supported Instance + * Types and Availability + * Zones](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-vpcconfig.html#cfn-sagemaker-cluster-vpcconfig-subnets) + */ + override fun subnets(): List = unwrap(this).getSubnets() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VpcConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty): + VpcConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? VpcConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: VpcConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnClusterProps.kt new file mode 100644 index 0000000000..56dbcd44ac --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnClusterProps.kt @@ -0,0 +1,471 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnCluster`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnClusterProps cfnClusterProps = CfnClusterProps.builder() + * .instanceGroups(List.of(ClusterInstanceGroupProperty.builder() + * .executionRole("executionRole") + * .instanceCount(123) + * .instanceGroupName("instanceGroupName") + * .instanceType("instanceType") + * .lifeCycleConfig(ClusterLifeCycleConfigProperty.builder() + * .onCreate("onCreate") + * .sourceS3Uri("sourceS3Uri") + * .build()) + * // the properties below are optional + * .currentCount(123) + * .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder() + * .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder() + * .volumeSizeInGb(123) + * .build()) + * .build())) + * .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks")) + * .threadsPerCore(123) + * .build())) + * // the properties below are optional + * .clusterName("clusterName") + * .nodeRecovery("nodeRecovery") + * .orchestrator(OrchestratorProperty.builder() + * .eks(ClusterOrchestratorEksConfigProperty.builder() + * .clusterArn("clusterArn") + * .build()) + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .vpcConfig(VpcConfigProperty.builder() + * .securityGroupIds(List.of("securityGroupIds")) + * .subnets(List.of("subnets")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html) + */ +public interface CfnClusterProps { + /** + * The name of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-clustername) + */ + public fun clusterName(): String? = unwrap(this).getClusterName() + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + */ + public fun instanceGroups(): Any + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + * + * Available values are `Automatic` for enabling and `None` for disabling. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-noderecovery) + */ + public fun nodeRecovery(): String? = unwrap(this).getNodeRecovery() + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + */ + public fun orchestrator(): Any? = unwrap(this).getOrchestrator() + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + */ + public fun vpcConfig(): Any? = unwrap(this).getVpcConfig() + + /** + * A builder for [CfnClusterProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param clusterName The name of the SageMaker HyperPod cluster. + */ + public fun clusterName(clusterName: String) + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(instanceGroups: IResolvable) + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(instanceGroups: List) + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + public fun instanceGroups(vararg instanceGroups: Any) + + /** + * @param nodeRecovery Specifies whether to enable or disable the automatic node recovery + * feature of SageMaker HyperPod. + * Available values are `Automatic` for enabling and `None` for disabling. + */ + public fun nodeRecovery(nodeRecovery: String) + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + public fun orchestrator(orchestrator: IResolvable) + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + public fun orchestrator(orchestrator: CfnCluster.OrchestratorProperty) + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d15e815d2bd9699dc618fb1d8b6acc53a968772895862a9e329987272e01eb82") + public fun orchestrator(orchestrator: CfnCluster.OrchestratorProperty.Builder.() -> Unit) + + /** + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + */ + public fun tags(tags: List) + + /** + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + public fun vpcConfig(vpcConfig: IResolvable) + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + public fun vpcConfig(vpcConfig: CfnCluster.VpcConfigProperty) + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2b3b6f46cc2c25c6215374d61ec8b5c6b2d8ebc71b3a5781cd061618968d05cf") + public fun vpcConfig(vpcConfig: CfnCluster.VpcConfigProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sagemaker.CfnClusterProps.Builder = + software.amazon.awscdk.services.sagemaker.CfnClusterProps.builder() + + /** + * @param clusterName The name of the SageMaker HyperPod cluster. + */ + override fun clusterName(clusterName: String) { + cdkBuilder.clusterName(clusterName) + } + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(instanceGroups: IResolvable) { + cdkBuilder.instanceGroups(instanceGroups.let(IResolvable.Companion::unwrap)) + } + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(instanceGroups: List) { + cdkBuilder.instanceGroups(instanceGroups.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param instanceGroups The instance groups of the SageMaker HyperPod cluster. + */ + override fun instanceGroups(vararg instanceGroups: Any): Unit = + instanceGroups(instanceGroups.toList()) + + /** + * @param nodeRecovery Specifies whether to enable or disable the automatic node recovery + * feature of SageMaker HyperPod. + * Available values are `Automatic` for enabling and `None` for disabling. + */ + override fun nodeRecovery(nodeRecovery: String) { + cdkBuilder.nodeRecovery(nodeRecovery) + } + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + override fun orchestrator(orchestrator: IResolvable) { + cdkBuilder.orchestrator(orchestrator.let(IResolvable.Companion::unwrap)) + } + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + override fun orchestrator(orchestrator: CfnCluster.OrchestratorProperty) { + cdkBuilder.orchestrator(orchestrator.let(CfnCluster.OrchestratorProperty.Companion::unwrap)) + } + + /** + * @param orchestrator The orchestrator type for the SageMaker HyperPod cluster. + * Currently, `'eks'` is the only available option. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d15e815d2bd9699dc618fb1d8b6acc53a968772895862a9e329987272e01eb82") + override fun orchestrator(orchestrator: CfnCluster.OrchestratorProperty.Builder.() -> Unit): + Unit = orchestrator(CfnCluster.OrchestratorProperty(orchestrator)) + + /** + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags A tag object that consists of a key and an optional value, used to manage + * metadata for SageMaker AWS resources. + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + override fun vpcConfig(vpcConfig: IResolvable) { + cdkBuilder.vpcConfig(vpcConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + override fun vpcConfig(vpcConfig: CfnCluster.VpcConfigProperty) { + cdkBuilder.vpcConfig(vpcConfig.let(CfnCluster.VpcConfigProperty.Companion::unwrap)) + } + + /** + * @param vpcConfig Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + * hosted models, and compute resources have access to. + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2b3b6f46cc2c25c6215374d61ec8b5c6b2d8ebc71b3a5781cd061618968d05cf") + override fun vpcConfig(vpcConfig: CfnCluster.VpcConfigProperty.Builder.() -> Unit): Unit = + vpcConfig(CfnCluster.VpcConfigProperty(vpcConfig)) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnClusterProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnClusterProps, + ) : CdkObject(cdkObject), + CfnClusterProps { + /** + * The name of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-clustername) + */ + override fun clusterName(): String? = unwrap(this).getClusterName() + + /** + * The instance groups of the SageMaker HyperPod cluster. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-instancegroups) + */ + override fun instanceGroups(): Any = unwrap(this).getInstanceGroups() + + /** + * Specifies whether to enable or disable the automatic node recovery feature of SageMaker + * HyperPod. + * + * Available values are `Automatic` for enabling and `None` for disabling. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-noderecovery) + */ + override fun nodeRecovery(): String? = unwrap(this).getNodeRecovery() + + /** + * The orchestrator type for the SageMaker HyperPod cluster. + * + * Currently, `'eks'` is the only available option. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-orchestrator) + */ + override fun orchestrator(): Any? = unwrap(this).getOrchestrator() + + /** + * A tag object that consists of a key and an optional value, used to manage metadata for + * SageMaker AWS resources. + * + * You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch + * transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For + * more information on adding tags to SageMaker resources, see + * [AddTags](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html) . + * + * For more information on adding metadata to your AWS resources with tagging, see [Tagging AWS + * resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) . For advice on best + * practices for managing AWS resources with tagging, see [Tagging Best Practices: Implement an + * Effective AWS Resource Tagging + * Strategy](https://docs.aws.amazon.com/https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and + * compute resources have access to. + * + * You can control access to and from your resources by configuring a VPC. For more information, + * see [Give SageMaker Access to Resources in your Amazon + * VPC](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html#cfn-sagemaker-cluster-vpcconfig) + */ + override fun vpcConfig(): Any? = unwrap(this).getVpcConfig() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnClusterProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnClusterProps): + CfnClusterProps = CdkObjectWrappers.wrap(cdkObject) as? CfnClusterProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnClusterProps): + software.amazon.awscdk.services.sagemaker.CfnClusterProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.sagemaker.CfnClusterProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepository.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepository.kt index 8d0a44339f..7f9633acbd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepository.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepository.kt @@ -59,7 +59,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCodeRepository( cdkObject: software.amazon.awscdk.services.sagemaker.CfnCodeRepository, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -440,7 +442,8 @@ public open class CfnCodeRepository( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnCodeRepository.GitConfigProperty, - ) : CdkObject(cdkObject), GitConfigProperty { + ) : CdkObject(cdkObject), + GitConfigProperty { /** * The default branch for the Git repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepositoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepositoryProps.kt index b3663d9659..971151d80e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepositoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnCodeRepositoryProps.kt @@ -164,7 +164,8 @@ public interface CfnCodeRepositoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnCodeRepositoryProps, - ) : CdkObject(cdkObject), CfnCodeRepositoryProps { + ) : CdkObject(cdkObject), + CfnCodeRepositoryProps { /** * The name of the Git repository. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinition.kt index 3041542c2b..1091657d39 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinition.kt @@ -130,7 +130,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataQualityJobDefinition( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1219,7 +1221,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.BatchTransformInputProperty, - ) : CdkObject(cdkObject), BatchTransformInputProperty { + ) : CdkObject(cdkObject), + BatchTransformInputProperty { /** * The Amazon S3 location being used to capture the data. * @@ -1421,7 +1424,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * The number of ML compute instances to use in the model monitoring job. * @@ -1529,7 +1533,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.ConstraintsResourceProperty, - ) : CdkObject(cdkObject), ConstraintsResourceProperty { + ) : CdkObject(cdkObject), + ConstraintsResourceProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1623,7 +1628,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * A boolean flag indicating if given CSV has header. * @@ -1870,7 +1876,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.DataQualityAppSpecificationProperty, - ) : CdkObject(cdkObject), DataQualityAppSpecificationProperty { + ) : CdkObject(cdkObject), + DataQualityAppSpecificationProperty { /** * The arguments to send to the container that the monitoring job runs. * @@ -2127,7 +2134,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.DataQualityBaselineConfigProperty, - ) : CdkObject(cdkObject), DataQualityBaselineConfigProperty { + ) : CdkObject(cdkObject), + DataQualityBaselineConfigProperty { /** * The name of the job that performs baselining for the data quality monitoring job. * @@ -2328,7 +2336,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.DataQualityJobInputProperty, - ) : CdkObject(cdkObject), DataQualityJobInputProperty { + ) : CdkObject(cdkObject), + DataQualityJobInputProperty { /** * Input object for the batch transform job. * @@ -2525,7 +2534,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.DatasetFormatProperty, - ) : CdkObject(cdkObject), DatasetFormatProperty { + ) : CdkObject(cdkObject), + DatasetFormatProperty { /** * The CSV format. * @@ -2725,7 +2735,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.EndpointInputProperty, - ) : CdkObject(cdkObject), EndpointInputProperty { + ) : CdkObject(cdkObject), + EndpointInputProperty { /** * An endpoint in customer's account which has enabled `DataCaptureConfig` enabled. * @@ -2854,7 +2865,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.JsonProperty, - ) : CdkObject(cdkObject), JsonProperty { + ) : CdkObject(cdkObject), + JsonProperty { /** * A boolean flag indicating if it is JSON line format. * @@ -2998,7 +3010,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.MonitoringOutputConfigProperty, - ) : CdkObject(cdkObject), MonitoringOutputConfigProperty { + ) : CdkObject(cdkObject), + MonitoringOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS ) key that Amazon SageMaker uses to encrypt the * model artifacts at rest using Amazon S3 server-side encryption. @@ -3128,7 +3141,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.MonitoringOutputProperty, - ) : CdkObject(cdkObject), MonitoringOutputProperty { + ) : CdkObject(cdkObject), + MonitoringOutputProperty { /** * The Amazon S3 storage location where the results of a monitoring job are saved. * @@ -3249,7 +3263,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.MonitoringResourcesProperty, - ) : CdkObject(cdkObject), MonitoringResourcesProperty { + ) : CdkObject(cdkObject), + MonitoringResourcesProperty { /** * The configuration for the cluster resources used to run the processing job. * @@ -3460,7 +3475,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.NetworkConfigProperty, - ) : CdkObject(cdkObject), NetworkConfigProperty { + ) : CdkObject(cdkObject), + NetworkConfigProperty { /** * Whether to encrypt all communications between distributed processing jobs. * @@ -3616,7 +3632,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.S3OutputProperty, - ) : CdkObject(cdkObject), S3OutputProperty { + ) : CdkObject(cdkObject), + S3OutputProperty { /** * The local path to the Amazon S3 storage location where Amazon SageMaker saves the results * of a monitoring job. @@ -3717,7 +3734,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.StatisticsResourceProperty, - ) : CdkObject(cdkObject), StatisticsResourceProperty { + ) : CdkObject(cdkObject), + StatisticsResourceProperty { /** * The Amazon S3 URI for the statistics resource. * @@ -3745,11 +3763,9 @@ public open class CfnDataQualityJobDefinition( } /** - * Specifies a limit to how long a model training job or model compilation job can run. + * Specifies a limit to how long a job can run. * - * It also specifies how long a managed spot training job has to complete. When the job reaches - * the time limit, SageMaker ends the training or compilation job. Use this API to cap model training - * costs. + * When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs. * * To stop a training job, SageMaker sends the algorithm the `SIGTERM` signal, which delays job * termination for 120 seconds. Algorithms can use this 120-second window to save the model @@ -3856,7 +3872,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.StoppingConditionProperty, - ) : CdkObject(cdkObject), StoppingConditionProperty { + ) : CdkObject(cdkObject), + StoppingConditionProperty { /** * The maximum length of time, in seconds, that a training or compilation job can run before * it is stopped. @@ -4023,7 +4040,8 @@ public open class CfnDataQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinition.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinitionProps.kt index 8082b46e30..d1ffed729e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDataQualityJobDefinitionProps.kt @@ -610,7 +610,8 @@ public interface CfnDataQualityJobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDataQualityJobDefinitionProps, - ) : CdkObject(cdkObject), CfnDataQualityJobDefinitionProps { + ) : CdkObject(cdkObject), + CfnDataQualityJobDefinitionProps { /** * Specifies the container that runs the monitoring job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDevice.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDevice.kt index 281151f9cd..c03978a4f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDevice.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDevice.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDevice( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDevice, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -398,7 +400,8 @@ public open class CfnDevice( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDevice.DeviceProperty, - ) : CdkObject(cdkObject), DeviceProperty { + ) : CdkObject(cdkObject), + DeviceProperty { /** * Description of the device. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleet.kt index 344a5ce7b7..25af5a63db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleet.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDeviceFleet( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDeviceFleet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -455,7 +457,8 @@ public open class CfnDeviceFleet( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDeviceFleet.EdgeOutputConfigProperty, - ) : CdkObject(cdkObject), EdgeOutputConfigProperty { + ) : CdkObject(cdkObject), + EdgeOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on * the storage volume after compilation job. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleetProps.kt index 5ebdea262d..35d2dd4c30 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceFleetProps.kt @@ -205,7 +205,8 @@ public interface CfnDeviceFleetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDeviceFleetProps, - ) : CdkObject(cdkObject), CfnDeviceFleetProps { + ) : CdkObject(cdkObject), + CfnDeviceFleetProps { /** * A description of the fleet. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceProps.kt index 8fb60cd868..159eeefd1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDeviceProps.kt @@ -162,7 +162,8 @@ public interface CfnDeviceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDeviceProps, - ) : CdkObject(cdkObject), CfnDeviceProps { + ) : CdkObject(cdkObject), + CfnDeviceProps { /** * Edge device you want to create. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomain.kt index cecf1c4d43..22f4f5b787 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomain.kt @@ -75,6 +75,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .executionRole("executionRole") * // the properties below are optional * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -102,6 +110,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .defaultLandingUri("defaultLandingUri") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -126,6 +142,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -140,6 +157,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rSessionAppSettings(RSessionAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -172,6 +190,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build()) * .domainName("domainName") * .subnetIds(List.of("subnetIds")) @@ -182,6 +204,43 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .defaultSpaceSettings(DefaultSpaceSettingsProperty.builder() * .executionRole("executionRole") * // the properties below are optional + * .customFileSystemConfigs(List.of(CustomFileSystemConfigProperty.builder() + * .efsFileSystemConfig(EFSFileSystemConfigProperty.builder() + * .fileSystemId("fileSystemId") + * // the properties below are optional + * .fileSystemPath("fileSystemPath") + * .build()) + * .build())) + * .customPosixUserConfig(CustomPosixUserConfigProperty.builder() + * .gid(123) + * .uid(123) + * .build()) + * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) + * .codeRepositories(List.of(CodeRepositoryProperty.builder() + * .repositoryUrl("repositoryUrl") + * .build())) + * .customImages(List.of(CustomImageProperty.builder() + * .appImageConfigName("appImageConfigName") + * .imageName("imageName") + * // the properties below are optional + * .imageVersionNumber(123) + * .build())) + * .defaultResourceSpec(ResourceSpecProperty.builder() + * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") + * .sageMakerImageArn("sageMakerImageArn") + * .sageMakerImageVersionArn("sageMakerImageVersionArn") + * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) + * .build()) * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") @@ -189,6 +248,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -203,8 +263,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .securityGroups(List.of("securityGroups")) + * .spaceStorageSettings(DefaultSpaceStorageSettingsProperty.builder() + * .defaultEbsStorageSettings(DefaultEbsStorageSettingsProperty.builder() + * .defaultEbsVolumeSizeInGb(123) + * .maximumEbsVolumeSizeInGb(123) + * .build()) + * .build()) * .build()) * .domainSettings(DomainSettingsProperty.builder() * .dockerSettings(DockerSettingsProperty.builder() @@ -237,7 +304,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1026,6 +1095,123 @@ public open class CfnDomain( wrapped.cdkObject as software.amazon.awscdk.services.sagemaker.CfnDomain } + /** + * Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio + * applications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * AppLifecycleManagementProperty appLifecycleManagementProperty = + * AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-applifecyclemanagement.html) + */ + public interface AppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-applifecyclemanagement.html#cfn-sagemaker-domain-applifecyclemanagement-idlesettings) + */ + public fun idleSettings(): Any? = unwrap(this).getIdleSettings() + + /** + * A builder for [AppLifecycleManagementProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: IResolvable) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: IdleSettingsProperty) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("740780ff455ed06ed7440d09878a1d39a63bfdb372e5ec47dc7f800e261771fc") + public fun idleSettings(idleSettings: IdleSettingsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty.builder() + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: IResolvable) { + cdkBuilder.idleSettings(idleSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: IdleSettingsProperty) { + cdkBuilder.idleSettings(idleSettings.let(IdleSettingsProperty.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("740780ff455ed06ed7440d09878a1d39a63bfdb372e5ec47dc7f800e261771fc") + override fun idleSettings(idleSettings: IdleSettingsProperty.Builder.() -> Unit): Unit = + idleSettings(IdleSettingsProperty(idleSettings)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty, + ) : CdkObject(cdkObject), + AppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-applifecyclemanagement.html#cfn-sagemaker-domain-applifecyclemanagement-idlesettings) + */ + override fun idleSettings(): Any? = unwrap(this).getIdleSettings() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AppLifecycleManagementProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty): + AppLifecycleManagementProperty = CdkObjectWrappers.wrap(cdkObject) as? + AppLifecycleManagementProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AppLifecycleManagementProperty): + software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnDomain.AppLifecycleManagementProperty + } + } + /** * The Code Editor application settings. * @@ -1040,6 +1226,14 @@ public open class CfnDomain( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * CodeEditorAppSettingsProperty codeEditorAppSettingsProperty = * CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -1059,6 +1253,13 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-codeeditorappsettings.html) */ public interface CodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-codeeditorappsettings.html#cfn-sagemaker-domain-codeeditorappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of custom SageMaker images that are configured to run as a Code Editor app. * @@ -1087,6 +1288,27 @@ public open class CfnDomain( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("694e518c6a752deff488412a660cf0f60ebae68876f1d236f186ab8dc351b218") + public + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param customImages A list of custom SageMaker images that are configured to run as a Code * Editor app. @@ -1144,6 +1366,32 @@ public open class CfnDomain( = software.amazon.awscdk.services.sagemaker.CfnDomain.CodeEditorAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(AppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("694e518c6a752deff488412a660cf0f60ebae68876f1d236f186ab8dc351b218") + override + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(AppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param customImages A list of custom SageMaker images that are configured to run as a Code * Editor app. @@ -1215,7 +1463,15 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.CodeEditorAppSettingsProperty, - ) : CdkObject(cdkObject), CodeEditorAppSettingsProperty { + ) : CdkObject(cdkObject), + CodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-codeeditorappsettings.html#cfn-sagemaker-domain-codeeditorappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of custom SageMaker images that are configured to run as a Code Editor app. * @@ -1312,7 +1568,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.CodeRepositoryProperty, - ) : CdkObject(cdkObject), CodeRepositoryProperty { + ) : CdkObject(cdkObject), + CodeRepositoryProperty { /** * The URL of the Git repository. * @@ -1431,7 +1688,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.CustomFileSystemConfigProperty, - ) : CdkObject(cdkObject), CustomFileSystemConfigProperty { + ) : CdkObject(cdkObject), + CustomFileSystemConfigProperty { /** * The settings for a custom Amazon EFS file system. * @@ -1559,7 +1817,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.CustomImageProperty, - ) : CdkObject(cdkObject), CustomImageProperty { + ) : CdkObject(cdkObject), + CustomImageProperty { /** * The name of the AppImageConfig. * @@ -1678,7 +1937,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.CustomPosixUserConfigProperty, - ) : CdkObject(cdkObject), CustomPosixUserConfigProperty { + ) : CdkObject(cdkObject), + CustomPosixUserConfigProperty { /** * The POSIX group ID. * @@ -1789,7 +2049,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultEbsStorageSettingsProperty, - ) : CdkObject(cdkObject), DefaultEbsStorageSettingsProperty { + ) : CdkObject(cdkObject), + DefaultEbsStorageSettingsProperty { /** * The default size of the EBS storage volume for a space. * @@ -1837,6 +2098,43 @@ public open class CfnDomain( * DefaultSpaceSettingsProperty.builder() * .executionRole("executionRole") * // the properties below are optional + * .customFileSystemConfigs(List.of(CustomFileSystemConfigProperty.builder() + * .efsFileSystemConfig(EFSFileSystemConfigProperty.builder() + * .fileSystemId("fileSystemId") + * // the properties below are optional + * .fileSystemPath("fileSystemPath") + * .build()) + * .build())) + * .customPosixUserConfig(CustomPosixUserConfigProperty.builder() + * .gid(123) + * .uid(123) + * .build()) + * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) + * .codeRepositories(List.of(CodeRepositoryProperty.builder() + * .repositoryUrl("repositoryUrl") + * .build())) + * .customImages(List.of(CustomImageProperty.builder() + * .appImageConfigName("appImageConfigName") + * .imageName("imageName") + * // the properties below are optional + * .imageVersionNumber(123) + * .build())) + * .defaultResourceSpec(ResourceSpecProperty.builder() + * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") + * .sageMakerImageArn("sageMakerImageArn") + * .sageMakerImageVersionArn("sageMakerImageVersionArn") + * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) + * .build()) * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") @@ -1844,6 +2142,7 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -1858,14 +2157,35 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .securityGroups(List.of("securityGroups")) + * .spaceStorageSettings(DefaultSpaceStorageSettingsProperty.builder() + * .defaultEbsStorageSettings(DefaultEbsStorageSettingsProperty.builder() + * .defaultEbsVolumeSizeInGb(123) + * .maximumEbsVolumeSizeInGb(123) + * .build()) + * .build()) * .build(); * ``` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html) */ public interface DefaultSpaceSettingsProperty { + /** + * The settings for assigning a custom file system to a domain. + * + * Permitted users can access this file system in Amazon SageMaker Studio. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-customfilesystemconfigs) + */ + public fun customFileSystemConfigs(): Any? = unwrap(this).getCustomFileSystemConfigs() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-customposixuserconfig) + */ + public fun customPosixUserConfig(): Any? = unwrap(this).getCustomPosixUserConfig() + /** * The ARN of the execution role for the space. * @@ -1873,6 +2193,13 @@ public open class CfnDomain( */ public fun executionRole(): String + /** + * The JupyterLab app settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-jupyterlabappsettings) + */ + public fun jupyterLabAppSettings(): Any? = unwrap(this).getJupyterLabAppSettings() + /** * The JupyterServer app settings. * @@ -1894,16 +2221,77 @@ public open class CfnDomain( */ public fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() + /** + * Default storage settings for a space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-spacestoragesettings) + */ + public fun spaceStorageSettings(): Any? = unwrap(this).getSpaceStorageSettings() + /** * A builder for [DefaultSpaceSettingsProperty] */ @CdkDslMarker public interface Builder { + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + public fun customFileSystemConfigs(customFileSystemConfigs: IResolvable) + + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + public fun customFileSystemConfigs(customFileSystemConfigs: List) + + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + public fun customFileSystemConfigs(vararg customFileSystemConfigs: Any) + + /** + * @param customPosixUserConfig the value to be set. + */ + public fun customPosixUserConfig(customPosixUserConfig: IResolvable) + + /** + * @param customPosixUserConfig the value to be set. + */ + public fun customPosixUserConfig(customPosixUserConfig: CustomPosixUserConfigProperty) + + /** + * @param customPosixUserConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9223bd2413190fb463cbdf95a9641d8b0f63d89970410845838a08bef830bb75") + public + fun customPosixUserConfig(customPosixUserConfig: CustomPosixUserConfigProperty.Builder.() -> Unit) + /** * @param executionRole The ARN of the execution role for the space. */ public fun executionRole(executionRole: String) + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + public fun jupyterLabAppSettings(jupyterLabAppSettings: IResolvable) + + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + public fun jupyterLabAppSettings(jupyterLabAppSettings: JupyterLabAppSettingsProperty) + + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7cce454b3b5fa503ce23aef23ce0f722e9f1e44cd987e0100b10b3b91d1c87c2") + public + fun jupyterLabAppSettings(jupyterLabAppSettings: JupyterLabAppSettingsProperty.Builder.() -> Unit) + /** * @param jupyterServerAppSettings The JupyterServer app settings. */ @@ -1953,6 +2341,24 @@ public open class CfnDomain( * communication. */ public fun securityGroups(vararg securityGroups: String) + + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + public fun spaceStorageSettings(spaceStorageSettings: IResolvable) + + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + public fun spaceStorageSettings(spaceStorageSettings: DefaultSpaceStorageSettingsProperty) + + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3bc592b003ff056ba4d4e3df46a0fc361e0e7038373a80696099c69697ce66a5") + public + fun spaceStorageSettings(spaceStorageSettings: DefaultSpaceStorageSettingsProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -1960,6 +2366,52 @@ public open class CfnDomain( software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultSpaceSettingsProperty.Builder = software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultSpaceSettingsProperty.builder() + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + override fun customFileSystemConfigs(customFileSystemConfigs: IResolvable) { + cdkBuilder.customFileSystemConfigs(customFileSystemConfigs.let(IResolvable.Companion::unwrap)) + } + + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + override fun customFileSystemConfigs(customFileSystemConfigs: List) { + cdkBuilder.customFileSystemConfigs(customFileSystemConfigs.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param customFileSystemConfigs The settings for assigning a custom file system to a domain. + * Permitted users can access this file system in Amazon SageMaker Studio. + */ + override fun customFileSystemConfigs(vararg customFileSystemConfigs: Any): Unit = + customFileSystemConfigs(customFileSystemConfigs.toList()) + + /** + * @param customPosixUserConfig the value to be set. + */ + override fun customPosixUserConfig(customPosixUserConfig: IResolvable) { + cdkBuilder.customPosixUserConfig(customPosixUserConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param customPosixUserConfig the value to be set. + */ + override fun customPosixUserConfig(customPosixUserConfig: CustomPosixUserConfigProperty) { + cdkBuilder.customPosixUserConfig(customPosixUserConfig.let(CustomPosixUserConfigProperty.Companion::unwrap)) + } + + /** + * @param customPosixUserConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9223bd2413190fb463cbdf95a9641d8b0f63d89970410845838a08bef830bb75") + override + fun customPosixUserConfig(customPosixUserConfig: CustomPosixUserConfigProperty.Builder.() -> Unit): + Unit = customPosixUserConfig(CustomPosixUserConfigProperty(customPosixUserConfig)) + /** * @param executionRole The ARN of the execution role for the space. */ @@ -1967,6 +2419,29 @@ public open class CfnDomain( cdkBuilder.executionRole(executionRole) } + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + override fun jupyterLabAppSettings(jupyterLabAppSettings: IResolvable) { + cdkBuilder.jupyterLabAppSettings(jupyterLabAppSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + override fun jupyterLabAppSettings(jupyterLabAppSettings: JupyterLabAppSettingsProperty) { + cdkBuilder.jupyterLabAppSettings(jupyterLabAppSettings.let(JupyterLabAppSettingsProperty.Companion::unwrap)) + } + + /** + * @param jupyterLabAppSettings The JupyterLab app settings. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7cce454b3b5fa503ce23aef23ce0f722e9f1e44cd987e0100b10b3b91d1c87c2") + override + fun jupyterLabAppSettings(jupyterLabAppSettings: JupyterLabAppSettingsProperty.Builder.() -> Unit): + Unit = jupyterLabAppSettings(JupyterLabAppSettingsProperty(jupyterLabAppSettings)) + /** * @param jupyterServerAppSettings The JupyterServer app settings. */ @@ -2032,6 +2507,29 @@ public open class CfnDomain( override fun securityGroups(vararg securityGroups: String): Unit = securityGroups(securityGroups.toList()) + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + override fun spaceStorageSettings(spaceStorageSettings: IResolvable) { + cdkBuilder.spaceStorageSettings(spaceStorageSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + override fun spaceStorageSettings(spaceStorageSettings: DefaultSpaceStorageSettingsProperty) { + cdkBuilder.spaceStorageSettings(spaceStorageSettings.let(DefaultSpaceStorageSettingsProperty.Companion::unwrap)) + } + + /** + * @param spaceStorageSettings Default storage settings for a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3bc592b003ff056ba4d4e3df46a0fc361e0e7038373a80696099c69697ce66a5") + override + fun spaceStorageSettings(spaceStorageSettings: DefaultSpaceStorageSettingsProperty.Builder.() -> Unit): + Unit = spaceStorageSettings(DefaultSpaceStorageSettingsProperty(spaceStorageSettings)) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultSpaceSettingsProperty = cdkBuilder.build() @@ -2039,7 +2537,22 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultSpaceSettingsProperty, - ) : CdkObject(cdkObject), DefaultSpaceSettingsProperty { + ) : CdkObject(cdkObject), + DefaultSpaceSettingsProperty { + /** + * The settings for assigning a custom file system to a domain. + * + * Permitted users can access this file system in Amazon SageMaker Studio. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-customfilesystemconfigs) + */ + override fun customFileSystemConfigs(): Any? = unwrap(this).getCustomFileSystemConfigs() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-customposixuserconfig) + */ + override fun customPosixUserConfig(): Any? = unwrap(this).getCustomPosixUserConfig() + /** * The ARN of the execution role for the space. * @@ -2047,6 +2560,13 @@ public open class CfnDomain( */ override fun executionRole(): String = unwrap(this).getExecutionRole() + /** + * The JupyterLab app settings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-jupyterlabappsettings) + */ + override fun jupyterLabAppSettings(): Any? = unwrap(this).getJupyterLabAppSettings() + /** * The JupyterServer app settings. * @@ -2067,6 +2587,13 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-securitygroups) */ override fun securityGroups(): List = unwrap(this).getSecurityGroups() ?: emptyList() + + /** + * Default storage settings for a space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-defaultspacesettings.html#cfn-sagemaker-domain-defaultspacesettings-spacestoragesettings) + */ + override fun spaceStorageSettings(): Any? = unwrap(this).getSpaceStorageSettings() } public companion object { @@ -2178,7 +2705,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.DefaultSpaceStorageSettingsProperty, - ) : CdkObject(cdkObject), DefaultSpaceStorageSettingsProperty { + ) : CdkObject(cdkObject), + DefaultSpaceStorageSettingsProperty { /** * The default EBS storage settings for a space. * @@ -2295,7 +2823,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.DockerSettingsProperty, - ) : CdkObject(cdkObject), DockerSettingsProperty { + ) : CdkObject(cdkObject), + DockerSettingsProperty { /** * Indicates whether the domain can access Docker. * @@ -2527,7 +3056,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.DomainSettingsProperty, - ) : CdkObject(cdkObject), DomainSettingsProperty { + ) : CdkObject(cdkObject), + DomainSettingsProperty { /** * A collection of settings that configure the domain's Docker interaction. * @@ -2653,7 +3183,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty, - ) : CdkObject(cdkObject), EFSFileSystemConfigProperty { + ) : CdkObject(cdkObject), + EFSFileSystemConfigProperty { /** * The ID of your Amazon EFS file system. * @@ -2678,14 +3209,184 @@ public open class CfnDomain( } internal - fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty): - EFSFileSystemConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? - EFSFileSystemConfigProperty ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty): + EFSFileSystemConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + EFSFileSystemConfigProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EFSFileSystemConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty + } + } + + /** + * Settings related to idle shutdown of Studio applications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * IdleSettingsProperty idleSettingsProperty = IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html) + */ + public interface IdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-idletimeoutinminutes) + */ + public fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + + /** + * Indicates whether idle shutdown is activated for the application type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-lifecyclemanagement) + */ + public fun lifecycleManagement(): String? = unwrap(this).getLifecycleManagement() + + /** + * The maximum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-maxidletimeoutinminutes) + */ + public fun maxIdleTimeoutInMinutes(): Number? = unwrap(this).getMaxIdleTimeoutInMinutes() + + /** + * The minimum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-minidletimeoutinminutes) + */ + public fun minIdleTimeoutInMinutes(): Number? = unwrap(this).getMinIdleTimeoutInMinutes() + + /** + * A builder for [IdleSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + public fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) + + /** + * @param lifecycleManagement Indicates whether idle shutdown is activated for the application + * type. + */ + public fun lifecycleManagement(lifecycleManagement: String) + + /** + * @param maxIdleTimeoutInMinutes The maximum value in minutes that custom idle shutdown can + * be set to by the user. + */ + public fun maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes: Number) + + /** + * @param minIdleTimeoutInMinutes The minimum value in minutes that custom idle shutdown can + * be set to by the user. + */ + public fun minIdleTimeoutInMinutes(minIdleTimeoutInMinutes: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty.builder() + + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + override fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) { + cdkBuilder.idleTimeoutInMinutes(idleTimeoutInMinutes) + } + + /** + * @param lifecycleManagement Indicates whether idle shutdown is activated for the application + * type. + */ + override fun lifecycleManagement(lifecycleManagement: String) { + cdkBuilder.lifecycleManagement(lifecycleManagement) + } + + /** + * @param maxIdleTimeoutInMinutes The maximum value in minutes that custom idle shutdown can + * be set to by the user. + */ + override fun maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes: Number) { + cdkBuilder.maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes) + } + + /** + * @param minIdleTimeoutInMinutes The minimum value in minutes that custom idle shutdown can + * be set to by the user. + */ + override fun minIdleTimeoutInMinutes(minIdleTimeoutInMinutes: Number) { + cdkBuilder.minIdleTimeoutInMinutes(minIdleTimeoutInMinutes) + } + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty, + ) : CdkObject(cdkObject), + IdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-idletimeoutinminutes) + */ + override fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + + /** + * Indicates whether idle shutdown is activated for the application type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-lifecyclemanagement) + */ + override fun lifecycleManagement(): String? = unwrap(this).getLifecycleManagement() + + /** + * The maximum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-maxidletimeoutinminutes) + */ + override fun maxIdleTimeoutInMinutes(): Number? = unwrap(this).getMaxIdleTimeoutInMinutes() + + /** + * The minimum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-minidletimeoutinminutes) + */ + override fun minIdleTimeoutInMinutes(): Number? = unwrap(this).getMinIdleTimeoutInMinutes() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IdleSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty): + IdleSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? IdleSettingsProperty ?: + Wrapper(cdkObject) - internal fun unwrap(wrapped: EFSFileSystemConfigProperty): - software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty = (wrapped - as CdkObject).cdkObject as - software.amazon.awscdk.services.sagemaker.CfnDomain.EFSFileSystemConfigProperty + internal fun unwrap(wrapped: IdleSettingsProperty): + software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnDomain.IdleSettingsProperty } } @@ -2700,6 +3401,14 @@ public open class CfnDomain( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * JupyterLabAppSettingsProperty jupyterLabAppSettingsProperty = * JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -2722,6 +3431,13 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterlabappsettings.html) */ public interface JupyterLabAppSettingsProperty { + /** + * Indicates whether idle shutdown is activated for JupyterLab applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterlabappsettings.html#cfn-sagemaker-domain-jupyterlabappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in the * JupyterLab application. @@ -2761,6 +3477,27 @@ public open class CfnDomain( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6a0b5c6e0399c6da17996193470bebab60c358504ba190a03993cf98f3afd023") + public + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -2838,6 +3575,32 @@ public open class CfnDomain( = software.amazon.awscdk.services.sagemaker.CfnDomain.JupyterLabAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(AppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6a0b5c6e0399c6da17996193470bebab60c358504ba190a03993cf98f3afd023") + override + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(AppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -2934,7 +3697,15 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.JupyterLabAppSettingsProperty, - ) : CdkObject(cdkObject), JupyterLabAppSettingsProperty { + ) : CdkObject(cdkObject), + JupyterLabAppSettingsProperty { + /** + * Indicates whether idle shutdown is activated for JupyterLab applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterlabappsettings.html#cfn-sagemaker-domain-jupyterlabappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in * the JupyterLab application. @@ -3005,6 +3776,7 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -3019,6 +3791,21 @@ public open class CfnDomain( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterserverappsettings.html#cfn-sagemaker-domain-jupyterserverappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [JupyterServerAppSettingsProperty] */ @@ -3043,6 +3830,26 @@ public open class CfnDomain( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("16529f01fa91e18098e31e0efd963479f78925d3a88a89427ddee33f55f07774") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -3077,6 +3884,29 @@ public open class CfnDomain( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnDomain.JupyterServerAppSettingsProperty = cdkBuilder.build() @@ -3084,7 +3914,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.JupyterServerAppSettingsProperty, - ) : CdkObject(cdkObject), JupyterServerAppSettingsProperty { + ) : CdkObject(cdkObject), + JupyterServerAppSettingsProperty { /** * The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image * used by the JupyterServer app. @@ -3092,6 +3923,21 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterserverappsettings.html#cfn-sagemaker-domain-jupyterserverappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-jupyterserverappsettings.html#cfn-sagemaker-domain-jupyterserverappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -3135,6 +3981,7 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -3162,6 +4009,19 @@ public open class CfnDomain( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-kernelgatewayappsettings.html#cfn-sagemaker-domain-kernelgatewayappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [KernelGatewayAppSettingsProperty] */ @@ -3216,6 +4076,22 @@ public open class CfnDomain( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a47ccaafec05cc6573ffbbd54efb5b81febc9dd592ca52e01555b507a1d44cf2") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -3285,6 +4161,25 @@ public open class CfnDomain( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnDomain.KernelGatewayAppSettingsProperty = cdkBuilder.build() @@ -3292,7 +4187,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.KernelGatewayAppSettingsProperty, - ) : CdkObject(cdkObject), KernelGatewayAppSettingsProperty { + ) : CdkObject(cdkObject), + KernelGatewayAppSettingsProperty { /** * A list of custom SageMaker images that are configured to run as a KernelGateway app. * @@ -3313,6 +4209,19 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-kernelgatewayappsettings.html#cfn-sagemaker-domain-kernelgatewayappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-kernelgatewayappsettings.html#cfn-sagemaker-domain-kernelgatewayappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -3481,7 +4390,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.RSessionAppSettingsProperty, - ) : CdkObject(cdkObject), RSessionAppSettingsProperty { + ) : CdkObject(cdkObject), + RSessionAppSettingsProperty { /** * A list of custom SageMaker images that are configured to run as a RSession app. * @@ -3603,7 +4513,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.RStudioServerProAppSettingsProperty, - ) : CdkObject(cdkObject), RStudioServerProAppSettingsProperty { + ) : CdkObject(cdkObject), + RStudioServerProAppSettingsProperty { /** * Indicates whether the current user has access to the `RStudioServerPro` app. * @@ -3800,7 +4711,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.RStudioServerProDomainSettingsProperty, - ) : CdkObject(cdkObject), RStudioServerProDomainSettingsProperty { + ) : CdkObject(cdkObject), + RStudioServerProDomainSettingsProperty { /** * A collection that defines the default `InstanceType` , `SageMakerImageArn` , and * `SageMakerImageVersionArn` for the Domain. @@ -3983,7 +4895,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.ResourceSpecProperty, - ) : CdkObject(cdkObject), ResourceSpecProperty { + ) : CdkObject(cdkObject), + ResourceSpecProperty { /** * The instance type that the image version runs on. * @@ -4150,7 +5063,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.SharingSettingsProperty, - ) : CdkObject(cdkObject), SharingSettingsProperty { + ) : CdkObject(cdkObject), + SharingSettingsProperty { /** * Whether to include the notebook cell output when sharing the notebook. * @@ -4195,6 +5109,158 @@ public open class CfnDomain( } } + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied on + * a domain level. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * StudioWebPortalSettingsProperty studioWebPortalSettingsProperty = + * StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-studiowebportalsettings.html) + */ + public interface StudioWebPortalSettingsProperty { + /** + * The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-studiowebportalsettings.html#cfn-sagemaker-domain-studiowebportalsettings-hiddenapptypes) + */ + public fun hiddenAppTypes(): List = unwrap(this).getHiddenAppTypes() ?: emptyList() + + /** + * The machine learning tools that are hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-studiowebportalsettings.html#cfn-sagemaker-domain-studiowebportalsettings-hiddenmltools) + */ + public fun hiddenMlTools(): List = unwrap(this).getHiddenMlTools() ?: emptyList() + + /** + * A builder for [StudioWebPortalSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + public fun hiddenAppTypes(hiddenAppTypes: List) + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + public fun hiddenAppTypes(vararg hiddenAppTypes: String) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + public fun hiddenMlTools(hiddenMlTools: List) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + public fun hiddenMlTools(vararg hiddenMlTools: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty.builder() + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + override fun hiddenAppTypes(hiddenAppTypes: List) { + cdkBuilder.hiddenAppTypes(hiddenAppTypes) + } + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + override fun hiddenAppTypes(vararg hiddenAppTypes: String): Unit = + hiddenAppTypes(hiddenAppTypes.toList()) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + override fun hiddenMlTools(hiddenMlTools: List) { + cdkBuilder.hiddenMlTools(hiddenMlTools) + } + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + override fun hiddenMlTools(vararg hiddenMlTools: String): Unit = + hiddenMlTools(hiddenMlTools.toList()) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty, + ) : CdkObject(cdkObject), + StudioWebPortalSettingsProperty { + /** + * The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-studiowebportalsettings.html#cfn-sagemaker-domain-studiowebportalsettings-hiddenapptypes) + */ + override fun hiddenAppTypes(): List = unwrap(this).getHiddenAppTypes() ?: emptyList() + + /** + * The machine learning tools that are hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-studiowebportalsettings.html#cfn-sagemaker-domain-studiowebportalsettings-hiddenmltools) + */ + override fun hiddenMlTools(): List = unwrap(this).getHiddenMlTools() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StudioWebPortalSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty): + StudioWebPortalSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? + StudioWebPortalSettingsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StudioWebPortalSettingsProperty): + software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnDomain.StudioWebPortalSettingsProperty + } + } + /** * A collection of settings that apply to users of Amazon SageMaker Studio. * @@ -4218,6 +5284,14 @@ public open class CfnDomain( * .executionRole("executionRole") * // the properties below are optional * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -4245,6 +5319,14 @@ public open class CfnDomain( * .build()) * .defaultLandingUri("defaultLandingUri") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -4269,6 +5351,7 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -4283,6 +5366,7 @@ public open class CfnDomain( * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rSessionAppSettings(RSessionAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -4315,6 +5399,10 @@ public open class CfnDomain( * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build(); * ``` * @@ -4440,6 +5528,16 @@ public open class CfnDomain( */ public fun studioWebPortal(): String? = unwrap(this).getStudioWebPortal() + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-usersettings.html#cfn-sagemaker-domain-usersettings-studiowebportalsettings) + */ + public fun studioWebPortalSettings(): Any? = unwrap(this).getStudioWebPortalSettings() + /** * A builder for [UserSettingsProperty] */ @@ -4689,6 +5787,30 @@ public open class CfnDomain( * default experience for the domain. */ public fun studioWebPortal(studioWebPortal: String) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + public fun studioWebPortalSettings(studioWebPortalSettings: IResolvable) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + public fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9b2a27a396c2153f9363057c7527af720aeb833ff782aa96fef074be4df44795") + public + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -5003,13 +6125,44 @@ public open class CfnDomain( cdkBuilder.studioWebPortal(studioWebPortal) } + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + override fun studioWebPortalSettings(studioWebPortalSettings: IResolvable) { + cdkBuilder.studioWebPortalSettings(studioWebPortalSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + override + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty) { + cdkBuilder.studioWebPortalSettings(studioWebPortalSettings.let(StudioWebPortalSettingsProperty.Companion::unwrap)) + } + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9b2a27a396c2153f9363057c7527af720aeb833ff782aa96fef074be4df44795") + override + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty.Builder.() -> Unit): + Unit = studioWebPortalSettings(StudioWebPortalSettingsProperty(studioWebPortalSettings)) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnDomain.UserSettingsProperty = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomain.UserSettingsProperty, - ) : CdkObject(cdkObject), UserSettingsProperty { + ) : CdkObject(cdkObject), + UserSettingsProperty { /** * The Code Editor application settings. * @@ -5129,6 +6282,16 @@ public open class CfnDomain( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-usersettings.html#cfn-sagemaker-domain-usersettings-studiowebportal) */ override fun studioWebPortal(): String? = unwrap(this).getStudioWebPortal() + + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-usersettings.html#cfn-sagemaker-domain-usersettings-studiowebportalsettings) + */ + override fun studioWebPortalSettings(): Any? = unwrap(this).getStudioWebPortalSettings() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomainProps.kt index daa6429e76..1909872908 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnDomainProps.kt @@ -28,6 +28,14 @@ import kotlin.jvm.JvmName * .executionRole("executionRole") * // the properties below are optional * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -55,6 +63,14 @@ import kotlin.jvm.JvmName * .build()) * .defaultLandingUri("defaultLandingUri") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -79,6 +95,7 @@ import kotlin.jvm.JvmName * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -93,6 +110,7 @@ import kotlin.jvm.JvmName * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rSessionAppSettings(RSessionAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -125,6 +143,10 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build()) * .domainName("domainName") * .subnetIds(List.of("subnetIds")) @@ -135,6 +157,43 @@ import kotlin.jvm.JvmName * .defaultSpaceSettings(DefaultSpaceSettingsProperty.builder() * .executionRole("executionRole") * // the properties below are optional + * .customFileSystemConfigs(List.of(CustomFileSystemConfigProperty.builder() + * .efsFileSystemConfig(EFSFileSystemConfigProperty.builder() + * .fileSystemId("fileSystemId") + * // the properties below are optional + * .fileSystemPath("fileSystemPath") + * .build()) + * .build())) + * .customPosixUserConfig(CustomPosixUserConfigProperty.builder() + * .gid(123) + * .uid(123) + * .build()) + * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) + * .codeRepositories(List.of(CodeRepositoryProperty.builder() + * .repositoryUrl("repositoryUrl") + * .build())) + * .customImages(List.of(CustomImageProperty.builder() + * .appImageConfigName("appImageConfigName") + * .imageName("imageName") + * // the properties below are optional + * .imageVersionNumber(123) + * .build())) + * .defaultResourceSpec(ResourceSpecProperty.builder() + * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") + * .sageMakerImageArn("sageMakerImageArn") + * .sageMakerImageVersionArn("sageMakerImageVersionArn") + * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) + * .build()) * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") @@ -142,6 +201,7 @@ import kotlin.jvm.JvmName * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -156,8 +216,15 @@ import kotlin.jvm.JvmName * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .securityGroups(List.of("securityGroups")) + * .spaceStorageSettings(DefaultSpaceStorageSettingsProperty.builder() + * .defaultEbsStorageSettings(DefaultEbsStorageSettingsProperty.builder() + * .defaultEbsVolumeSizeInGb(123) + * .maximumEbsVolumeSizeInGb(123) + * .build()) + * .build()) * .build()) * .domainSettings(DomainSettingsProperty.builder() * .dockerSettings(DockerSettingsProperty.builder() @@ -669,7 +736,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * Specifies the VPC used for non-EFS traffic. The default value is `PublicInternetOnly` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpoint.kt index abbf1b7ed9..3b9eb6f502 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpoint.kt @@ -97,7 +97,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpoint( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -831,7 +833,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.AlarmProperty, - ) : CdkObject(cdkObject), AlarmProperty { + ) : CdkObject(cdkObject), + AlarmProperty { /** * The name of a CloudWatch alarm in your account. * @@ -950,7 +953,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.AutoRollbackConfigProperty, - ) : CdkObject(cdkObject), AutoRollbackConfigProperty { + ) : CdkObject(cdkObject), + AutoRollbackConfigProperty { /** * List of CloudWatch alarms in your account that are configured to monitor metrics on an * endpoint. @@ -1149,7 +1153,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty, - ) : CdkObject(cdkObject), BlueGreenUpdatePolicyProperty { + ) : CdkObject(cdkObject), + BlueGreenUpdatePolicyProperty { /** * Maximum execution timeout for the deployment. * @@ -1290,7 +1295,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.CapacitySizeProperty, - ) : CdkObject(cdkObject), CapacitySizeProperty { + ) : CdkObject(cdkObject), + CapacitySizeProperty { /** * Specifies the endpoint capacity type. * @@ -1592,7 +1598,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.DeploymentConfigProperty, - ) : CdkObject(cdkObject), DeploymentConfigProperty { + ) : CdkObject(cdkObject), + DeploymentConfigProperty { /** * Automatic rollback configuration for handling endpoint deployment failures and recovery. * @@ -1869,7 +1876,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.RollingUpdatePolicyProperty, - ) : CdkObject(cdkObject), RollingUpdatePolicyProperty { + ) : CdkObject(cdkObject), + RollingUpdatePolicyProperty { /** * Batch size for each rolling step to provision capacity and turn on traffic on the new * endpoint fleet, and terminate capacity on the old endpoint fleet. @@ -2154,7 +2162,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.TrafficRoutingConfigProperty, - ) : CdkObject(cdkObject), TrafficRoutingConfigProperty { + ) : CdkObject(cdkObject), + TrafficRoutingConfigProperty { /** * Batch size for the first step to turn on traffic on the new endpoint fleet. * @@ -2307,7 +2316,8 @@ public open class CfnEndpoint( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpoint.VariantPropertyProperty, - ) : CdkObject(cdkObject), VariantPropertyProperty { + ) : CdkObject(cdkObject), + VariantPropertyProperty { /** * The type of variant property. The supported values are:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfig.kt index e558c6de27..ac467dca67 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfig.kt @@ -176,7 +176,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEndpointConfig( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1138,7 +1140,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.AsyncInferenceClientConfigProperty, - ) : CdkObject(cdkObject), AsyncInferenceClientConfigProperty { + ) : CdkObject(cdkObject), + AsyncInferenceClientConfigProperty { /** * The maximum number of concurrent requests sent by the SageMaker client to the model * container. @@ -1327,7 +1330,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.AsyncInferenceConfigProperty, - ) : CdkObject(cdkObject), AsyncInferenceConfigProperty { + ) : CdkObject(cdkObject), + AsyncInferenceConfigProperty { /** * Configures the behavior of the client used by SageMaker to interact with the model * container during asynchronous inference. @@ -1500,7 +1504,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty, - ) : CdkObject(cdkObject), AsyncInferenceNotificationConfigProperty { + ) : CdkObject(cdkObject), + AsyncInferenceNotificationConfigProperty { /** * Amazon SNS topic to post a notification to when an inference fails. * @@ -1712,7 +1717,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.AsyncInferenceOutputConfigProperty, - ) : CdkObject(cdkObject), AsyncInferenceOutputConfigProperty { + ) : CdkObject(cdkObject), + AsyncInferenceOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt the * asynchronous inference output in Amazon S3. @@ -1891,7 +1897,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.CaptureContentTypeHeaderProperty, - ) : CdkObject(cdkObject), CaptureContentTypeHeaderProperty { + ) : CdkObject(cdkObject), + CaptureContentTypeHeaderProperty { /** * A list of the CSV content types of the data that the endpoint captures. * @@ -1988,7 +1995,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.CaptureOptionProperty, - ) : CdkObject(cdkObject), CaptureOptionProperty { + ) : CdkObject(cdkObject), + CaptureOptionProperty { /** * Specifies whether the endpoint captures input data or output data. * @@ -2205,7 +2213,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyExplainerConfigProperty, - ) : CdkObject(cdkObject), ClarifyExplainerConfigProperty { + ) : CdkObject(cdkObject), + ClarifyExplainerConfigProperty { /** * A JMESPath boolean expression used to filter which records to explain. * @@ -2745,7 +2754,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyInferenceConfigProperty, - ) : CdkObject(cdkObject), ClarifyInferenceConfigProperty { + ) : CdkObject(cdkObject), + ClarifyInferenceConfigProperty { /** * A template string used to format a JSON record into an acceptable model container input. * @@ -3071,7 +3081,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyShapBaselineConfigProperty, - ) : CdkObject(cdkObject), ClarifyShapBaselineConfigProperty { + ) : CdkObject(cdkObject), + ClarifyShapBaselineConfigProperty { /** * The MIME type of the baseline data. * @@ -3405,7 +3416,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyShapConfigProperty, - ) : CdkObject(cdkObject), ClarifyShapConfigProperty { + ) : CdkObject(cdkObject), + ClarifyShapConfigProperty { /** * The number of samples to be used for analysis by the Kernal SHAP algorithm. * @@ -3578,7 +3590,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyTextConfigProperty, - ) : CdkObject(cdkObject), ClarifyTextConfigProperty { + ) : CdkObject(cdkObject), + ClarifyTextConfigProperty { /** * The unit of granularity for the analysis of text features. * @@ -3906,7 +3919,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.DataCaptureConfigProperty, - ) : CdkObject(cdkObject), DataCaptureConfigProperty { + ) : CdkObject(cdkObject), + DataCaptureConfigProperty { /** * A list of the JSON and CSV content type that the endpoint captures. * @@ -4106,7 +4120,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ExplainerConfigProperty, - ) : CdkObject(cdkObject), ExplainerConfigProperty { + ) : CdkObject(cdkObject), + ExplainerConfigProperty { /** * A member of `ExplainerConfig` that contains configuration parameters for the SageMaker * Clarify explainer. @@ -4222,7 +4237,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ManagedInstanceScalingProperty, - ) : CdkObject(cdkObject), ManagedInstanceScalingProperty { + ) : CdkObject(cdkObject), + ManagedInstanceScalingProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-managedinstancescaling.html#cfn-sagemaker-endpointconfig-managedinstancescaling-maxinstancecount) */ @@ -4760,7 +4776,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ProductionVariantProperty, - ) : CdkObject(cdkObject), ProductionVariantProperty { + ) : CdkObject(cdkObject), + ProductionVariantProperty { /** * The size of the Elastic Inference (EI) instance to use for the production variant. * @@ -4951,7 +4968,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.RoutingConfigProperty, - ) : CdkObject(cdkObject), RoutingConfigProperty { + ) : CdkObject(cdkObject), + RoutingConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-routingconfig.html#cfn-sagemaker-endpointconfig-routingconfig-routingstrategy) */ @@ -5105,7 +5123,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ServerlessConfigProperty, - ) : CdkObject(cdkObject), ServerlessConfigProperty { + ) : CdkObject(cdkObject), + ServerlessConfigProperty { /** * The maximum number of concurrent invocations your serverless endpoint can process. * @@ -5247,7 +5266,8 @@ public open class CfnEndpointConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-vpcconfig.html#cfn-sagemaker-endpointconfig-vpcconfig-securitygroupids) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfigProps.kt index 95c48f83d9..f5c143edf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointConfigProps.kt @@ -720,7 +720,8 @@ public interface CfnEndpointConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointConfigProps, - ) : CdkObject(cdkObject), CfnEndpointConfigProps { + ) : CdkObject(cdkObject), + CfnEndpointConfigProps { /** * Specifies configuration for how an endpoint performs asynchronous inference. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointProps.kt index 51f57010b9..bff55208a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnEndpointProps.kt @@ -447,7 +447,8 @@ public interface CfnEndpointProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnEndpointProps, - ) : CdkObject(cdkObject), CfnEndpointProps { + ) : CdkObject(cdkObject), + CfnEndpointProps { /** * The deployment configuration for an endpoint, which contains the desired deployment strategy * and rollback configurations. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroup.kt index 1fd1b90751..e30d28fc18 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroup.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFeatureGroup( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -827,7 +829,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.DataCatalogConfigProperty, - ) : CdkObject(cdkObject), DataCatalogConfigProperty { + ) : CdkObject(cdkObject), + DataCatalogConfigProperty { /** * The name of the Glue table catalog. * @@ -974,7 +977,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.FeatureDefinitionProperty, - ) : CdkObject(cdkObject), FeatureDefinitionProperty { + ) : CdkObject(cdkObject), + FeatureDefinitionProperty { /** * The name of a feature. * @@ -1265,7 +1269,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.OfflineStoreConfigProperty, - ) : CdkObject(cdkObject), OfflineStoreConfigProperty { + ) : CdkObject(cdkObject), + OfflineStoreConfigProperty { /** * The meta data of the Glue table that is autogenerated when an `OfflineStore` is created. * @@ -1584,7 +1589,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.OnlineStoreConfigProperty, - ) : CdkObject(cdkObject), OnlineStoreConfigProperty { + ) : CdkObject(cdkObject), + OnlineStoreConfigProperty { /** * Turn `OnlineStore` off by specifying `False` for the `EnableOnlineStore` flag. * @@ -1762,7 +1768,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.OnlineStoreSecurityConfigProperty, - ) : CdkObject(cdkObject), OnlineStoreSecurityConfigProperty { + ) : CdkObject(cdkObject), + OnlineStoreSecurityConfigProperty { /** * The AWS Key Management Service (KMS) key ARN that SageMaker Feature Store uses to encrypt * the Amazon S3 objects at rest using Amazon S3 server-side encryption. @@ -1907,7 +1914,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.S3StorageConfigProperty, - ) : CdkObject(cdkObject), S3StorageConfigProperty { + ) : CdkObject(cdkObject), + S3StorageConfigProperty { /** * The AWS Key Management Service (KMS) key ARN of the key used to encrypt any objects written * into the `OfflineStore` S3 location. @@ -2078,7 +2086,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.ThroughputConfigProperty, - ) : CdkObject(cdkObject), ThroughputConfigProperty { + ) : CdkObject(cdkObject), + ThroughputConfigProperty { /** * For provisioned feature groups with online store enabled, this indicates the read * throughput you are billed for and can consume without throttling. @@ -2205,7 +2214,8 @@ public open class CfnFeatureGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.TtlDurationProperty, - ) : CdkObject(cdkObject), TtlDurationProperty { + ) : CdkObject(cdkObject), + TtlDurationProperty { /** * `TtlDuration` time unit. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroupProps.kt index c1a11ca447..4f54ffd452 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnFeatureGroupProps.kt @@ -472,7 +472,8 @@ public interface CfnFeatureGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnFeatureGroupProps, - ) : CdkObject(cdkObject), CfnFeatureGroupProps { + ) : CdkObject(cdkObject), + CfnFeatureGroupProps { /** * A free form description of a `FeatureGroup` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImage.kt index ae1a520616..d3652cad77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImage.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImage( cdkObject: software.amazon.awscdk.services.sagemaker.CfnImage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageProps.kt index ed705e3e7c..998540c56e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageProps.kt @@ -194,7 +194,8 @@ public interface CfnImageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnImageProps, - ) : CdkObject(cdkObject), CfnImageProps { + ) : CdkObject(cdkObject), + CfnImageProps { /** * The description of the image. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersion.kt index 810187bff0..8764dce6ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersion.kt @@ -63,7 +63,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnImageVersion( cdkObject: software.amazon.awscdk.services.sagemaker.CfnImageVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersionProps.kt index d553439d0a..de009c3295 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnImageVersionProps.kt @@ -297,7 +297,8 @@ public interface CfnImageVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnImageVersionProps, - ) : CdkObject(cdkObject), CfnImageVersionProps { + ) : CdkObject(cdkObject), + CfnImageVersionProps { /** * The alias of the image version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponent.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponent.kt index e658053fab..893fbb6580 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponent.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponent.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInferenceComponent( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -658,7 +660,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.DeployedImageProperty, - ) : CdkObject(cdkObject), DeployedImageProperty { + ) : CdkObject(cdkObject), + DeployedImageProperty { /** * The date and time when the image path for the model resolved to the `ResolvedImage`. * @@ -835,7 +838,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty, - ) : CdkObject(cdkObject), InferenceComponentComputeResourceRequirementsProperty { + ) : CdkObject(cdkObject), + InferenceComponentComputeResourceRequirementsProperty { /** * The maximum MB of memory to allocate to run a model that you assign to an inference * component. @@ -1071,7 +1075,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty, - ) : CdkObject(cdkObject), InferenceComponentContainerSpecificationProperty { + ) : CdkObject(cdkObject), + InferenceComponentContainerSpecificationProperty { /** * The Amazon S3 path where the model artifacts, which result from model training, are stored. * @@ -1231,7 +1236,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty, - ) : CdkObject(cdkObject), InferenceComponentRuntimeConfigProperty { + ) : CdkObject(cdkObject), + InferenceComponentRuntimeConfigProperty { /** * The number of runtime copies of the model container to deploy with the inference component. * @@ -1519,7 +1525,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty, - ) : CdkObject(cdkObject), InferenceComponentSpecificationProperty { + ) : CdkObject(cdkObject), + InferenceComponentSpecificationProperty { /** * The compute resources allocated to run the model assigned to the inference component. * @@ -1672,7 +1679,8 @@ public open class CfnInferenceComponent( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentStartupParametersProperty, - ) : CdkObject(cdkObject), InferenceComponentStartupParametersProperty { + ) : CdkObject(cdkObject), + InferenceComponentStartupParametersProperty { /** * The timeout value, in seconds, for your inference container to pass health check by Amazon * S3 Hosting. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponentProps.kt index ad06d36f71..e79a782db8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceComponentProps.kt @@ -294,7 +294,8 @@ public interface CfnInferenceComponentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceComponentProps, - ) : CdkObject(cdkObject), CfnInferenceComponentProps { + ) : CdkObject(cdkObject), + CfnInferenceComponentProps { /** * The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperiment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperiment.kt index c845916441..67691d95d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperiment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperiment.kt @@ -94,7 +94,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInferenceExperiment( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1086,7 +1088,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.CaptureContentTypeHeaderProperty, - ) : CdkObject(cdkObject), CaptureContentTypeHeaderProperty { + ) : CdkObject(cdkObject), + CaptureContentTypeHeaderProperty { /** * The list of all content type headers that Amazon SageMaker will treat as CSV and capture * accordingly. @@ -1272,7 +1275,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.DataStorageConfigProperty, - ) : CdkObject(cdkObject), DataStorageConfigProperty { + ) : CdkObject(cdkObject), + DataStorageConfigProperty { /** * Configuration specifying how to treat different headers. * @@ -1423,7 +1427,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.EndpointMetadataProperty, - ) : CdkObject(cdkObject), EndpointMetadataProperty { + ) : CdkObject(cdkObject), + EndpointMetadataProperty { /** * The name of the endpoint configuration. * @@ -1546,7 +1551,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.InferenceExperimentScheduleProperty, - ) : CdkObject(cdkObject), InferenceExperimentScheduleProperty { + ) : CdkObject(cdkObject), + InferenceExperimentScheduleProperty { /** * The timestamp at which the inference experiment ended or will end. * @@ -1702,7 +1708,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ModelInfrastructureConfigProperty, - ) : CdkObject(cdkObject), ModelInfrastructureConfigProperty { + ) : CdkObject(cdkObject), + ModelInfrastructureConfigProperty { /** * The inference option to which to deploy your model. Possible values are the following:. * @@ -1875,7 +1882,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ModelVariantConfigProperty, - ) : CdkObject(cdkObject), ModelVariantConfigProperty { + ) : CdkObject(cdkObject), + ModelVariantConfigProperty { /** * The configuration for the infrastructure that the model will be deployed to. * @@ -1992,7 +2000,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.RealTimeInferenceConfigProperty, - ) : CdkObject(cdkObject), RealTimeInferenceConfigProperty { + ) : CdkObject(cdkObject), + RealTimeInferenceConfigProperty { /** * The number of instances of the type specified by `InstanceType` . * @@ -2134,7 +2143,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ShadowModeConfigProperty, - ) : CdkObject(cdkObject), ShadowModeConfigProperty { + ) : CdkObject(cdkObject), + ShadowModeConfigProperty { /** * List of shadow variant configurations. * @@ -2247,7 +2257,8 @@ public open class CfnInferenceExperiment( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ShadowModelVariantConfigProperty, - ) : CdkObject(cdkObject), ShadowModelVariantConfigProperty { + ) : CdkObject(cdkObject), + ShadowModelVariantConfigProperty { /** * The percentage of inference requests that Amazon SageMaker replicates from the production * variant to the shadow variant. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperimentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperimentProps.kt index d5dfe67750..5ca4f1e690 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperimentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnInferenceExperimentProps.kt @@ -559,7 +559,8 @@ public interface CfnInferenceExperimentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnInferenceExperimentProps, - ) : CdkObject(cdkObject), CfnInferenceExperimentProps { + ) : CdkObject(cdkObject), + CfnInferenceExperimentProps { /** * The Amazon S3 location and configuration for storing inference request and response data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServer.kt new file mode 100644 index 0000000000..0d2f3143fa --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServer.kt @@ -0,0 +1,426 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an MLflow Tracking Server using a general purpose Amazon S3 bucket as the artifact store. + * + * For more information, see [Create an MLflow Tracking + * Server](https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-create-tracking-server.html) . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnMlflowTrackingServer cfnMlflowTrackingServer = CfnMlflowTrackingServer.Builder.create(this, + * "MyCfnMlflowTrackingServer") + * .artifactStoreUri("artifactStoreUri") + * .roleArn("roleArn") + * .trackingServerName("trackingServerName") + * // the properties below are optional + * .automaticModelRegistration(false) + * .mlflowVersion("mlflowVersion") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .trackingServerSize("trackingServerSize") + * .weeklyMaintenanceWindowStart("weeklyMaintenanceWindowStart") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html) + */ +public open class CfnMlflowTrackingServer( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMlflowTrackingServerProps, + ) : + this(software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMlflowTrackingServerProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMlflowTrackingServerProps.Builder.() -> Unit, + ) : this(scope, id, CfnMlflowTrackingServerProps(props) + ) + + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + public open fun artifactStoreUri(): String = unwrap(this).getArtifactStoreUri() + + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + public open fun artifactStoreUri(`value`: String) { + unwrap(this).setArtifactStoreUri(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the MLFlow Tracking Server. + */ + public open fun attrTrackingServerArn(): String = unwrap(this).getAttrTrackingServerArn() + + /** + * A flag to enable Automatic SageMaker Model Registration. + */ + public open fun automaticModelRegistration(): Any? = unwrap(this).getAutomaticModelRegistration() + + /** + * A flag to enable Automatic SageMaker Model Registration. + */ + public open fun automaticModelRegistration(`value`: Boolean) { + unwrap(this).setAutomaticModelRegistration(`value`) + } + + /** + * A flag to enable Automatic SageMaker Model Registration. + */ + public open fun automaticModelRegistration(`value`: IResolvable) { + unwrap(this).setAutomaticModelRegistration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + */ + public open fun mlflowVersion(): String? = unwrap(this).getMlflowVersion() + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + */ + public open fun mlflowVersion(`value`: String) { + unwrap(this).setMlflowVersion(`value`) + } + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on + * behalf of the customer. + */ + public open fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on + * behalf of the customer. + */ + public open fun roleArn(`value`: String) { + unwrap(this).setRoleArn(`value`) + } + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * An array of key-value pairs to apply to this resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The name of the MLFlow Tracking Server. + */ + public open fun trackingServerName(): String = unwrap(this).getTrackingServerName() + + /** + * The name of the MLFlow Tracking Server. + */ + public open fun trackingServerName(`value`: String) { + unwrap(this).setTrackingServerName(`value`) + } + + /** + * The size of the MLFlow Tracking Server. + */ + public open fun trackingServerSize(): String? = unwrap(this).getTrackingServerSize() + + /** + * The size of the MLFlow Tracking Server. + */ + public open fun trackingServerSize(`value`: String) { + unwrap(this).setTrackingServerSize(`value`) + } + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + */ + public open fun weeklyMaintenanceWindowStart(): String? = + unwrap(this).getWeeklyMaintenanceWindowStart() + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + */ + public open fun weeklyMaintenanceWindowStart(`value`: String) { + unwrap(this).setWeeklyMaintenanceWindowStart(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sagemaker.CfnMlflowTrackingServer]. + */ + @CdkDslMarker + public interface Builder { + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-artifactstoreuri) + * @param artifactStoreUri The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + public fun artifactStoreUri(artifactStoreUri: String) + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + public fun automaticModelRegistration(automaticModelRegistration: Boolean) + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + public fun automaticModelRegistration(automaticModelRegistration: IResolvable) + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-mlflowversion) + * @param mlflowVersion The MLFlow Version used on the MLFlow Tracking Server. + */ + public fun mlflowVersion(mlflowVersion: String) + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks + * on behalf of the customer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-rolearn) + * @param roleArn The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + * perform tasks on behalf of the customer. + */ + public fun roleArn(roleArn: String) + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(tags: List) + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The name of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingservername) + * @param trackingServerName The name of the MLFlow Tracking Server. + */ + public fun trackingServerName(trackingServerName: String) + + /** + * The size of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingserversize) + * @param trackingServerSize The size of the MLFlow Tracking Server. + */ + public fun trackingServerSize(trackingServerSize: String) + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-weeklymaintenancewindowstart) + * @param weeklyMaintenanceWindowStart The start of the time window for maintenance of the + * MLFlow Tracking Server in UTC time. + */ + public fun weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer.Builder = + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer.Builder.create(scope, id) + + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-artifactstoreuri) + * @param artifactStoreUri The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + override fun artifactStoreUri(artifactStoreUri: String) { + cdkBuilder.artifactStoreUri(artifactStoreUri) + } + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + override fun automaticModelRegistration(automaticModelRegistration: Boolean) { + cdkBuilder.automaticModelRegistration(automaticModelRegistration) + } + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + override fun automaticModelRegistration(automaticModelRegistration: IResolvable) { + cdkBuilder.automaticModelRegistration(automaticModelRegistration.let(IResolvable.Companion::unwrap)) + } + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-mlflowversion) + * @param mlflowVersion The MLFlow Version used on the MLFlow Tracking Server. + */ + override fun mlflowVersion(mlflowVersion: String) { + cdkBuilder.mlflowVersion(mlflowVersion) + } + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks + * on behalf of the customer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-rolearn) + * @param roleArn The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + * perform tasks on behalf of the customer. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The name of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingservername) + * @param trackingServerName The name of the MLFlow Tracking Server. + */ + override fun trackingServerName(trackingServerName: String) { + cdkBuilder.trackingServerName(trackingServerName) + } + + /** + * The size of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingserversize) + * @param trackingServerSize The size of the MLFlow Tracking Server. + */ + override fun trackingServerSize(trackingServerSize: String) { + cdkBuilder.trackingServerSize(trackingServerSize) + } + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-weeklymaintenancewindowstart) + * @param weeklyMaintenanceWindowStart The start of the time window for maintenance of the + * MLFlow Tracking Server in UTC time. + */ + override fun weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart: String) { + cdkBuilder.weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart) + } + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMlflowTrackingServer { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMlflowTrackingServer(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer): + CfnMlflowTrackingServer = CfnMlflowTrackingServer(cdkObject) + + internal fun unwrap(wrapped: CfnMlflowTrackingServer): + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer = wrapped.cdkObject as + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServer + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServerProps.kt new file mode 100644 index 0000000000..95964cecd2 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMlflowTrackingServerProps.kt @@ -0,0 +1,319 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnMlflowTrackingServer`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnMlflowTrackingServerProps cfnMlflowTrackingServerProps = + * CfnMlflowTrackingServerProps.builder() + * .artifactStoreUri("artifactStoreUri") + * .roleArn("roleArn") + * .trackingServerName("trackingServerName") + * // the properties below are optional + * .automaticModelRegistration(false) + * .mlflowVersion("mlflowVersion") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .trackingServerSize("trackingServerSize") + * .weeklyMaintenanceWindowStart("weeklyMaintenanceWindowStart") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html) + */ +public interface CfnMlflowTrackingServerProps { + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-artifactstoreuri) + */ + public fun artifactStoreUri(): String + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + */ + public fun automaticModelRegistration(): Any? = unwrap(this).getAutomaticModelRegistration() + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-mlflowversion) + */ + public fun mlflowVersion(): String? = unwrap(this).getMlflowVersion() + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on + * behalf of the customer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-rolearn) + */ + public fun roleArn(): String + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingservername) + */ + public fun trackingServerName(): String + + /** + * The size of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingserversize) + */ + public fun trackingServerSize(): String? = unwrap(this).getTrackingServerSize() + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-weeklymaintenancewindowstart) + */ + public fun weeklyMaintenanceWindowStart(): String? = + unwrap(this).getWeeklyMaintenanceWindowStart() + + /** + * A builder for [CfnMlflowTrackingServerProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param artifactStoreUri The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + public fun artifactStoreUri(artifactStoreUri: String) + + /** + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + public fun automaticModelRegistration(automaticModelRegistration: Boolean) + + /** + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + public fun automaticModelRegistration(automaticModelRegistration: IResolvable) + + /** + * @param mlflowVersion The MLFlow Version used on the MLFlow Tracking Server. + */ + public fun mlflowVersion(mlflowVersion: String) + + /** + * @param roleArn The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + * perform tasks on behalf of the customer. + */ + public fun roleArn(roleArn: String) + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(tags: List) + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param trackingServerName The name of the MLFlow Tracking Server. + */ + public fun trackingServerName(trackingServerName: String) + + /** + * @param trackingServerSize The size of the MLFlow Tracking Server. + */ + public fun trackingServerSize(trackingServerSize: String) + + /** + * @param weeklyMaintenanceWindowStart The start of the time window for maintenance of the + * MLFlow Tracking Server in UTC time. + */ + public fun weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps.Builder = + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps.builder() + + /** + * @param artifactStoreUri The Amazon S3 URI for MLFlow Tracking Server artifacts. + */ + override fun artifactStoreUri(artifactStoreUri: String) { + cdkBuilder.artifactStoreUri(artifactStoreUri) + } + + /** + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + override fun automaticModelRegistration(automaticModelRegistration: Boolean) { + cdkBuilder.automaticModelRegistration(automaticModelRegistration) + } + + /** + * @param automaticModelRegistration A flag to enable Automatic SageMaker Model Registration. + */ + override fun automaticModelRegistration(automaticModelRegistration: IResolvable) { + cdkBuilder.automaticModelRegistration(automaticModelRegistration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param mlflowVersion The MLFlow Version used on the MLFlow Tracking Server. + */ + override fun mlflowVersion(mlflowVersion: String) { + cdkBuilder.mlflowVersion(mlflowVersion) + } + + /** + * @param roleArn The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + * perform tasks on behalf of the customer. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags An array of key-value pairs to apply to this resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param trackingServerName The name of the MLFlow Tracking Server. + */ + override fun trackingServerName(trackingServerName: String) { + cdkBuilder.trackingServerName(trackingServerName) + } + + /** + * @param trackingServerSize The size of the MLFlow Tracking Server. + */ + override fun trackingServerSize(trackingServerSize: String) { + cdkBuilder.trackingServerSize(trackingServerSize) + } + + /** + * @param weeklyMaintenanceWindowStart The start of the time window for maintenance of the + * MLFlow Tracking Server in UTC time. + */ + override fun weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart: String) { + cdkBuilder.weeklyMaintenanceWindowStart(weeklyMaintenanceWindowStart) + } + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps, + ) : CdkObject(cdkObject), + CfnMlflowTrackingServerProps { + /** + * The Amazon S3 URI for MLFlow Tracking Server artifacts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-artifactstoreuri) + */ + override fun artifactStoreUri(): String = unwrap(this).getArtifactStoreUri() + + /** + * A flag to enable Automatic SageMaker Model Registration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-automaticmodelregistration) + */ + override fun automaticModelRegistration(): Any? = unwrap(this).getAutomaticModelRegistration() + + /** + * The MLFlow Version used on the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-mlflowversion) + */ + override fun mlflowVersion(): String? = unwrap(this).getMlflowVersion() + + /** + * The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks + * on behalf of the customer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * An array of key-value pairs to apply to this resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingservername) + */ + override fun trackingServerName(): String = unwrap(this).getTrackingServerName() + + /** + * The size of the MLFlow Tracking Server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-trackingserversize) + */ + override fun trackingServerSize(): String? = unwrap(this).getTrackingServerSize() + + /** + * The start of the time window for maintenance of the MLFlow Tracking Server in UTC time. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-mlflowtrackingserver.html#cfn-sagemaker-mlflowtrackingserver-weeklymaintenancewindowstart) + */ + override fun weeklyMaintenanceWindowStart(): String? = + unwrap(this).getWeeklyMaintenanceWindowStart() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMlflowTrackingServerProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps): + CfnMlflowTrackingServerProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMlflowTrackingServerProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMlflowTrackingServerProps): + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnMlflowTrackingServerProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModel.kt index c03dee5fa4..564bbd2760 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModel.kt @@ -55,6 +55,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -91,6 +94,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -117,7 +123,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModel( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sagemaker.CfnModel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -913,6 +921,9 @@ public open class CfnModel( * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -947,7 +958,8 @@ public open class CfnModel( public fun containerHostname(): String? = unwrap(this).getContainerHostname() /** - * The environment variables to set in the Docker container. + * The environment variables to set in the Docker container. Don't include any sensitive data in + * your environment variables. * * The maximum length of each key and value in the `Environment` map is 1024 bytes. The maximum * length of all keys and values in the map, combined, is 32 KB. If you pass multiple containers to @@ -1088,7 +1100,8 @@ public open class CfnModel( public fun containerHostname(containerHostname: String) /** - * @param environment The environment variables to set in the Docker container. + * @param environment The environment variables to set in the Docker container. Don't include + * any sensitive data in your environment variables. * The maximum length of each key and value in the `Environment` map is 1024 bytes. The * maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple * containers to a `CreateModel` request, then the maximum length of all of their maps, combined, @@ -1272,7 +1285,8 @@ public open class CfnModel( } /** - * @param environment The environment variables to set in the Docker container. + * @param environment The environment variables to set in the Docker container. Don't include + * any sensitive data in your environment variables. * The maximum length of each key and value in the `Environment` map is 1024 bytes. The * maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple * containers to a `CreateModel` request, then the maximum length of all of their maps, combined, @@ -1466,7 +1480,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.ContainerDefinitionProperty, - ) : CdkObject(cdkObject), ContainerDefinitionProperty { + ) : CdkObject(cdkObject), + ContainerDefinitionProperty { /** * This parameter is ignored for models that contain only a `PrimaryContainer` . * @@ -1485,7 +1500,8 @@ public open class CfnModel( override fun containerHostname(): String? = unwrap(this).getContainerHostname() /** - * The environment variables to set in the Docker container. + * The environment variables to set in the Docker container. Don't include any sensitive data + * in your environment variables. * * The maximum length of each key and value in the `Environment` map is 1024 bytes. The * maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple @@ -1627,6 +1643,81 @@ public open class CfnModel( } } + /** + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * HubAccessConfigProperty hubAccessConfigProperty = HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-hubaccessconfig.html) + */ + public interface HubAccessConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-hubaccessconfig.html#cfn-sagemaker-model-hubaccessconfig-hubcontentarn) + */ + public fun hubContentArn(): String + + /** + * A builder for [HubAccessConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hubContentArn the value to be set. + */ + public fun hubContentArn(hubContentArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty.builder() + + /** + * @param hubContentArn the value to be set. + */ + override fun hubContentArn(hubContentArn: String) { + cdkBuilder.hubContentArn(hubContentArn) + } + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty, + ) : CdkObject(cdkObject), + HubAccessConfigProperty { + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-hubaccessconfig.html#cfn-sagemaker-model-hubaccessconfig-hubcontentarn) + */ + override fun hubContentArn(): String = unwrap(this).getHubContentArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): HubAccessConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty): + HubAccessConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? HubAccessConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: HubAccessConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModel.HubAccessConfigProperty + } + } + /** * Specifies whether the model container is in Amazon ECR or a private Docker registry accessible * from your Amazon Virtual Private Cloud (VPC). @@ -1769,7 +1860,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.ImageConfigProperty, - ) : CdkObject(cdkObject), ImageConfigProperty { + ) : CdkObject(cdkObject), + ImageConfigProperty { /** * Set this to one of the following values:. * @@ -1874,7 +1966,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.InferenceExecutionConfigProperty, - ) : CdkObject(cdkObject), InferenceExecutionConfigProperty { + ) : CdkObject(cdkObject), + InferenceExecutionConfigProperty { /** * How containers in a multi-container are run. The following values are valid. * @@ -2002,7 +2095,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.ModelAccessConfigProperty, - ) : CdkObject(cdkObject), ModelAccessConfigProperty { + ) : CdkObject(cdkObject), + ModelAccessConfigProperty { /** * Specifies agreement to the model end-user license agreement (EULA). * @@ -2051,6 +2145,9 @@ public open class CfnModel( * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -2124,7 +2221,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.ModelDataSourceProperty, - ) : CdkObject(cdkObject), ModelDataSourceProperty { + ) : CdkObject(cdkObject), + ModelDataSourceProperty { /** * Specifies the S3 location of ML model data to deploy. * @@ -2221,7 +2319,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.MultiModelConfigProperty, - ) : CdkObject(cdkObject), MultiModelConfigProperty { + ) : CdkObject(cdkObject), + MultiModelConfigProperty { /** * Whether to cache models for a multi-model endpoint. * @@ -2333,7 +2432,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.RepositoryAuthConfigProperty, - ) : CdkObject(cdkObject), RepositoryAuthConfigProperty { + ) : CdkObject(cdkObject), + RepositoryAuthConfigProperty { /** * The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to * authenticate to the private Docker registry where your model image is hosted. @@ -2383,6 +2483,9 @@ public open class CfnModel( * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -2397,6 +2500,11 @@ public open class CfnModel( */ public fun compressionType(): String + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-s3datasource.html#cfn-sagemaker-model-s3datasource-hubaccessconfig) + */ + public fun hubAccessConfig(): Any? = unwrap(this).getHubAccessConfig() + /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-s3datasource.html#cfn-sagemaker-model-s3datasource-modelaccessconfig) */ @@ -2477,6 +2585,23 @@ public open class CfnModel( */ public fun compressionType(compressionType: String) + /** + * @param hubAccessConfig the value to be set. + */ + public fun hubAccessConfig(hubAccessConfig: IResolvable) + + /** + * @param hubAccessConfig the value to be set. + */ + public fun hubAccessConfig(hubAccessConfig: HubAccessConfigProperty) + + /** + * @param hubAccessConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d659e84329a57ed448e1bfd976f49ddb856b4cb452027a419144fbfad60eb1f1") + public fun hubAccessConfig(hubAccessConfig: HubAccessConfigProperty.Builder.() -> Unit) + /** * @param modelAccessConfig the value to be set. */ @@ -2566,6 +2691,28 @@ public open class CfnModel( cdkBuilder.compressionType(compressionType) } + /** + * @param hubAccessConfig the value to be set. + */ + override fun hubAccessConfig(hubAccessConfig: IResolvable) { + cdkBuilder.hubAccessConfig(hubAccessConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param hubAccessConfig the value to be set. + */ + override fun hubAccessConfig(hubAccessConfig: HubAccessConfigProperty) { + cdkBuilder.hubAccessConfig(hubAccessConfig.let(HubAccessConfigProperty.Companion::unwrap)) + } + + /** + * @param hubAccessConfig the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d659e84329a57ed448e1bfd976f49ddb856b4cb452027a419144fbfad60eb1f1") + override fun hubAccessConfig(hubAccessConfig: HubAccessConfigProperty.Builder.() -> Unit): + Unit = hubAccessConfig(HubAccessConfigProperty(hubAccessConfig)) + /** * @param modelAccessConfig the value to be set. */ @@ -2658,12 +2805,18 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.S3DataSourceProperty, - ) : CdkObject(cdkObject), S3DataSourceProperty { + ) : CdkObject(cdkObject), + S3DataSourceProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-s3datasource.html#cfn-sagemaker-model-s3datasource-compressiontype) */ override fun compressionType(): String = unwrap(this).getCompressionType() + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-s3datasource.html#cfn-sagemaker-model-s3datasource-hubaccessconfig) + */ + override fun hubAccessConfig(): Any? = unwrap(this).getHubAccessConfig() + /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-s3datasource.html#cfn-sagemaker-model-s3datasource-modelaccessconfig) */ @@ -2878,7 +3031,8 @@ public open class CfnModel( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModel.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinition.kt index 061d97d268..86e8aa3d73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinition.kt @@ -135,7 +135,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelBiasJobDefinition( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1342,7 +1344,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.BatchTransformInputProperty, - ) : CdkObject(cdkObject), BatchTransformInputProperty { + ) : CdkObject(cdkObject), + BatchTransformInputProperty { /** * The Amazon S3 location being used to capture the data. * @@ -1590,7 +1593,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * The number of ML compute instances to use in the model monitoring job. * @@ -1698,7 +1702,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.ConstraintsResourceProperty, - ) : CdkObject(cdkObject), ConstraintsResourceProperty { + ) : CdkObject(cdkObject), + ConstraintsResourceProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1791,7 +1796,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * A boolean flag indicating if given CSV has header. * @@ -1980,7 +1986,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.DatasetFormatProperty, - ) : CdkObject(cdkObject), DatasetFormatProperty { + ) : CdkObject(cdkObject), + DatasetFormatProperty { /** * The CSV format. * @@ -2313,7 +2320,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.EndpointInputProperty, - ) : CdkObject(cdkObject), EndpointInputProperty { + ) : CdkObject(cdkObject), + EndpointInputProperty { /** * If specified, monitoring jobs substract this time from the end time. * @@ -2487,7 +2495,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.JsonProperty, - ) : CdkObject(cdkObject), JsonProperty { + ) : CdkObject(cdkObject), + JsonProperty { /** * A boolean flag indicating if it is JSON line format. * @@ -2633,7 +2642,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.ModelBiasAppSpecificationProperty, - ) : CdkObject(cdkObject), ModelBiasAppSpecificationProperty { + ) : CdkObject(cdkObject), + ModelBiasAppSpecificationProperty { /** * JSON formatted S3 file that defines bias parameters. * @@ -2786,7 +2796,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.ModelBiasBaselineConfigProperty, - ) : CdkObject(cdkObject), ModelBiasBaselineConfigProperty { + ) : CdkObject(cdkObject), + ModelBiasBaselineConfigProperty { /** * The name of the baseline model bias job. * @@ -3036,7 +3047,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.ModelBiasJobInputProperty, - ) : CdkObject(cdkObject), ModelBiasJobInputProperty { + ) : CdkObject(cdkObject), + ModelBiasJobInputProperty { /** * Input object for the batch transform job. * @@ -3133,7 +3145,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.MonitoringGroundTruthS3InputProperty, - ) : CdkObject(cdkObject), MonitoringGroundTruthS3InputProperty { + ) : CdkObject(cdkObject), + MonitoringGroundTruthS3InputProperty { /** * The address of the Amazon S3 location of the ground truth labels. * @@ -3279,7 +3292,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.MonitoringOutputConfigProperty, - ) : CdkObject(cdkObject), MonitoringOutputConfigProperty { + ) : CdkObject(cdkObject), + MonitoringOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS ) key that Amazon SageMaker uses to encrypt the * model artifacts at rest using Amazon S3 server-side encryption. @@ -3409,7 +3423,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.MonitoringOutputProperty, - ) : CdkObject(cdkObject), MonitoringOutputProperty { + ) : CdkObject(cdkObject), + MonitoringOutputProperty { /** * The Amazon S3 storage location where the results of a monitoring job are saved. * @@ -3530,7 +3545,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.MonitoringResourcesProperty, - ) : CdkObject(cdkObject), MonitoringResourcesProperty { + ) : CdkObject(cdkObject), + MonitoringResourcesProperty { /** * The configuration for the cluster resources used to run the processing job. * @@ -3741,7 +3757,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.NetworkConfigProperty, - ) : CdkObject(cdkObject), NetworkConfigProperty { + ) : CdkObject(cdkObject), + NetworkConfigProperty { /** * Whether to encrypt all communications between distributed processing jobs. * @@ -3897,7 +3914,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.S3OutputProperty, - ) : CdkObject(cdkObject), S3OutputProperty { + ) : CdkObject(cdkObject), + S3OutputProperty { /** * The local path to the Amazon S3 storage location where Amazon SageMaker saves the results * of a monitoring job. @@ -3944,11 +3962,9 @@ public open class CfnModelBiasJobDefinition( } /** - * Specifies a limit to how long a model training job or model compilation job can run. + * Specifies a limit to how long a job can run. * - * It also specifies how long a managed spot training job has to complete. When the job reaches - * the time limit, SageMaker ends the training or compilation job. Use this API to cap model training - * costs. + * When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs. * * To stop a training job, SageMaker sends the algorithm the `SIGTERM` signal, which delays job * termination for 120 seconds. Algorithms can use this 120-second window to save the model @@ -4055,7 +4071,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.StoppingConditionProperty, - ) : CdkObject(cdkObject), StoppingConditionProperty { + ) : CdkObject(cdkObject), + StoppingConditionProperty { /** * The maximum length of time, in seconds, that a training or compilation job can run before * it is stopped. @@ -4222,7 +4239,8 @@ public open class CfnModelBiasJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinition.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinitionProps.kt index bbb9cb1339..8b37d922a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelBiasJobDefinitionProps.kt @@ -613,7 +613,8 @@ public interface CfnModelBiasJobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelBiasJobDefinitionProps, - ) : CdkObject(cdkObject), CfnModelBiasJobDefinitionProps { + ) : CdkObject(cdkObject), + CfnModelBiasJobDefinitionProps { /** * The name of the endpoint used to run the monitoring job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCard.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCard.kt index 63c3ea2887..6e57003ff8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCard.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCard.kt @@ -184,7 +184,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelCard( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -982,7 +984,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.AdditionalInformationProperty, - ) : CdkObject(cdkObject), AdditionalInformationProperty { + ) : CdkObject(cdkObject), + AdditionalInformationProperty { /** * Caveats and recommendations for those who might use this model in their applications. * @@ -1118,7 +1121,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.BusinessDetailsProperty, - ) : CdkObject(cdkObject), BusinessDetailsProperty { + ) : CdkObject(cdkObject), + BusinessDetailsProperty { /** * The specific business problem that the model is trying to solve. * @@ -1260,7 +1264,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ContainerProperty, - ) : CdkObject(cdkObject), ContainerProperty { + ) : CdkObject(cdkObject), + ContainerProperty { /** * Inference environment path. * @@ -1783,7 +1788,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ContentProperty, - ) : CdkObject(cdkObject), ContentProperty { + ) : CdkObject(cdkObject), + ContentProperty { /** * Additional information about the model. * @@ -2065,7 +2071,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.EvaluationDetailProperty, - ) : CdkObject(cdkObject), EvaluationDetailProperty { + ) : CdkObject(cdkObject), + EvaluationDetailProperty { /** * The location of the datasets used to evaluate the model. * @@ -2257,7 +2264,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.FunctionProperty, - ) : CdkObject(cdkObject), FunctionProperty { + ) : CdkObject(cdkObject), + FunctionProperty { /** * An optional description of any conditions of your objective function metric. * @@ -2378,7 +2386,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.InferenceEnvironmentProperty, - ) : CdkObject(cdkObject), InferenceEnvironmentProperty { + ) : CdkObject(cdkObject), + InferenceEnvironmentProperty { /** * The container used to run the inference environment. * @@ -2494,7 +2503,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.InferenceSpecificationProperty, - ) : CdkObject(cdkObject), InferenceSpecificationProperty { + ) : CdkObject(cdkObject), + InferenceSpecificationProperty { /** * The Amazon ECR registry path of the Docker image that contains the inference code. * @@ -2674,7 +2684,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.IntendedUsesProperty, - ) : CdkObject(cdkObject), IntendedUsesProperty { + ) : CdkObject(cdkObject), + IntendedUsesProperty { /** * An explanation of why your organization categorizes the model with its risk rating. * @@ -2906,7 +2917,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.MetricDataItemsProperty, - ) : CdkObject(cdkObject), MetricDataItemsProperty { + ) : CdkObject(cdkObject), + MetricDataItemsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-metricdataitems.html#cfn-sagemaker-modelcard-metricdataitems-name) */ @@ -3130,7 +3142,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.MetricGroupProperty, - ) : CdkObject(cdkObject), MetricGroupProperty { + ) : CdkObject(cdkObject), + MetricGroupProperty { /** * A list of metric objects. The `MetricDataItems` list can have one of the following values:. * @@ -3450,7 +3463,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ModelOverviewProperty, - ) : CdkObject(cdkObject), ModelOverviewProperty { + ) : CdkObject(cdkObject), + ModelOverviewProperty { /** * The algorithm used to solve the problem. * @@ -3593,7 +3607,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ModelPackageCreatorProperty, - ) : CdkObject(cdkObject), ModelPackageCreatorProperty { + ) : CdkObject(cdkObject), + ModelPackageCreatorProperty { /** * The name of the user's profile in Studio. * @@ -4012,7 +4027,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ModelPackageDetailsProperty, - ) : CdkObject(cdkObject), ModelPackageDetailsProperty { + ) : CdkObject(cdkObject), + ModelPackageDetailsProperty { /** * A description provided for the model approval. * @@ -4236,7 +4252,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.ObjectiveFunctionProperty, - ) : CdkObject(cdkObject), ObjectiveFunctionProperty { + ) : CdkObject(cdkObject), + ObjectiveFunctionProperty { /** * A function object that details optimization direction, metric, and additional descriptions. * @@ -4331,7 +4348,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.SecurityConfigProperty, - ) : CdkObject(cdkObject), SecurityConfigProperty { + ) : CdkObject(cdkObject), + SecurityConfigProperty { /** * A AWS Key Management Service [key * ID](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id) used to @@ -4463,7 +4481,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.SourceAlgorithmProperty, - ) : CdkObject(cdkObject), SourceAlgorithmProperty { + ) : CdkObject(cdkObject), + SourceAlgorithmProperty { /** * The name of an algorithm that was used to create the model package. * @@ -4691,7 +4710,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingDetailsProperty, - ) : CdkObject(cdkObject), TrainingDetailsProperty { + ) : CdkObject(cdkObject), + TrainingDetailsProperty { /** * The function that is optimized during model training. * @@ -4798,7 +4818,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingEnvironmentProperty, - ) : CdkObject(cdkObject), TrainingEnvironmentProperty { + ) : CdkObject(cdkObject), + TrainingEnvironmentProperty { /** * SageMaker inference image URI. * @@ -4901,7 +4922,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingHyperParameterProperty, - ) : CdkObject(cdkObject), TrainingHyperParameterProperty { + ) : CdkObject(cdkObject), + TrainingHyperParameterProperty { /** * The name of the hyper parameter. * @@ -5266,7 +5288,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingJobDetailsProperty, - ) : CdkObject(cdkObject), TrainingJobDetailsProperty { + ) : CdkObject(cdkObject), + TrainingJobDetailsProperty { /** * The hyper parameters used in the training job. * @@ -5433,7 +5456,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.TrainingMetricProperty, - ) : CdkObject(cdkObject), TrainingMetricProperty { + ) : CdkObject(cdkObject), + TrainingMetricProperty { /** * The name of the result from the SageMaker training job. * @@ -5574,7 +5598,8 @@ public open class CfnModelCard( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCard.UserContextProperty, - ) : CdkObject(cdkObject), UserContextProperty { + ) : CdkObject(cdkObject), + UserContextProperty { /** * The domain associated with the user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCardProps.kt index 0c384c0bcf..1754ae6321 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelCardProps.kt @@ -541,7 +541,8 @@ public interface CfnModelCardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelCardProps, - ) : CdkObject(cdkObject), CfnModelCardProps { + ) : CdkObject(cdkObject), + CfnModelCardProps { /** * The content of the model card. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinition.kt index e5f34da438..2ca164a2b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinition.kt @@ -125,7 +125,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelExplainabilityJobDefinition( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1269,7 +1271,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.BatchTransformInputProperty, - ) : CdkObject(cdkObject), BatchTransformInputProperty { + ) : CdkObject(cdkObject), + BatchTransformInputProperty { /** * The Amazon S3 location being used to capture the data. * @@ -1485,7 +1488,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * The number of ML compute instances to use in the model monitoring job. * @@ -1593,7 +1597,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.ConstraintsResourceProperty, - ) : CdkObject(cdkObject), ConstraintsResourceProperty { + ) : CdkObject(cdkObject), + ConstraintsResourceProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1687,7 +1692,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * A boolean flag indicating if given CSV has header. * @@ -1876,7 +1882,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.DatasetFormatProperty, - ) : CdkObject(cdkObject), DatasetFormatProperty { + ) : CdkObject(cdkObject), + DatasetFormatProperty { /** * The CSV format. * @@ -2118,7 +2125,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.EndpointInputProperty, - ) : CdkObject(cdkObject), EndpointInputProperty { + ) : CdkObject(cdkObject), + EndpointInputProperty { /** * An endpoint in customer's account which has enabled `DataCaptureConfig` enabled. * @@ -2261,7 +2269,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.JsonProperty, - ) : CdkObject(cdkObject), JsonProperty { + ) : CdkObject(cdkObject), + JsonProperty { /** * A boolean flag indicating if it is JSON line format. * @@ -2407,7 +2416,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.ModelExplainabilityAppSpecificationProperty, - ) : CdkObject(cdkObject), ModelExplainabilityAppSpecificationProperty { + ) : CdkObject(cdkObject), + ModelExplainabilityAppSpecificationProperty { /** * JSON formatted Amazon S3 file that defines explainability parameters. * @@ -2560,7 +2570,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.ModelExplainabilityBaselineConfigProperty, - ) : CdkObject(cdkObject), ModelExplainabilityBaselineConfigProperty { + ) : CdkObject(cdkObject), + ModelExplainabilityBaselineConfigProperty { /** * The name of the baseline model explainability job. * @@ -2754,7 +2765,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.ModelExplainabilityJobInputProperty, - ) : CdkObject(cdkObject), ModelExplainabilityJobInputProperty { + ) : CdkObject(cdkObject), + ModelExplainabilityJobInputProperty { /** * Input object for the batch transform job. * @@ -2907,7 +2919,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.MonitoringOutputConfigProperty, - ) : CdkObject(cdkObject), MonitoringOutputConfigProperty { + ) : CdkObject(cdkObject), + MonitoringOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS ) key that Amazon SageMaker uses to encrypt the * model artifacts at rest using Amazon S3 server-side encryption. @@ -3037,7 +3050,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.MonitoringOutputProperty, - ) : CdkObject(cdkObject), MonitoringOutputProperty { + ) : CdkObject(cdkObject), + MonitoringOutputProperty { /** * The Amazon S3 storage location where the results of a monitoring job are saved. * @@ -3158,7 +3172,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.MonitoringResourcesProperty, - ) : CdkObject(cdkObject), MonitoringResourcesProperty { + ) : CdkObject(cdkObject), + MonitoringResourcesProperty { /** * The configuration for the cluster resources used to run the processing job. * @@ -3369,7 +3384,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.NetworkConfigProperty, - ) : CdkObject(cdkObject), NetworkConfigProperty { + ) : CdkObject(cdkObject), + NetworkConfigProperty { /** * Whether to encrypt all communications between distributed processing jobs. * @@ -3525,7 +3541,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.S3OutputProperty, - ) : CdkObject(cdkObject), S3OutputProperty { + ) : CdkObject(cdkObject), + S3OutputProperty { /** * The local path to the Amazon S3 storage location where Amazon SageMaker saves the results * of a monitoring job. @@ -3572,11 +3589,9 @@ public open class CfnModelExplainabilityJobDefinition( } /** - * Specifies a limit to how long a model training job or model compilation job can run. + * Specifies a limit to how long a job can run. * - * It also specifies how long a managed spot training job has to complete. When the job reaches - * the time limit, SageMaker ends the training or compilation job. Use this API to cap model training - * costs. + * When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs. * * To stop a training job, SageMaker sends the algorithm the `SIGTERM` signal, which delays job * termination for 120 seconds. Algorithms can use this 120-second window to save the model @@ -3683,7 +3698,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.StoppingConditionProperty, - ) : CdkObject(cdkObject), StoppingConditionProperty { + ) : CdkObject(cdkObject), + StoppingConditionProperty { /** * The maximum length of time, in seconds, that a training or compilation job can run before * it is stopped. @@ -3850,7 +3866,8 @@ public open class CfnModelExplainabilityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinition.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinitionProps.kt index 2de80cc28b..1874cecf20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelExplainabilityJobDefinitionProps.kt @@ -619,7 +619,8 @@ public interface CfnModelExplainabilityJobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelExplainabilityJobDefinitionProps, - ) : CdkObject(cdkObject), CfnModelExplainabilityJobDefinitionProps { + ) : CdkObject(cdkObject), + CfnModelExplainabilityJobDefinitionProps { /** * The name of the endpoint used to run the monitoring job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackage.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackage.kt index 05abc5988e..c95cead98a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackage.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackage.kt @@ -44,6 +44,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -66,6 +77,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -158,6 +180,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -176,6 +209,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .repository("repository") * .build()) * .modelApprovalStatus("modelApprovalStatus") + * .modelCard(ModelCardProperty.builder() + * .modelCardContent("modelCardContent") + * .modelCardStatus("modelCardStatus") + * .build()) * .modelMetrics(ModelMetricsProperty.builder() * .bias(BiasProperty.builder() * .postTrainingReport(MetricsSourceProperty.builder() @@ -247,6 +284,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .modelPackageVersion(123) * .samplePayloadUrl("samplePayloadUrl") + * .securityConfig(SecurityConfigProperty.builder() + * .kmsKeyId("kmsKeyId") + * .build()) * .skipModelValidation("skipModelValidation") * .sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty.builder() * .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder() @@ -255,6 +295,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .modelDataUrl("modelDataUrl") * .build())) * .build()) + * .sourceUri("sourceUri") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -306,7 +347,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelPackage( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sagemaker.CfnModelPackage(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -598,6 +641,33 @@ public open class CfnModelPackage( unwrap(this).setModelApprovalStatus(`value`) } + /** + * An Amazon SageMaker Model Card. + */ + public open fun modelCard(): Any? = unwrap(this).getModelCard() + + /** + * An Amazon SageMaker Model Card. + */ + public open fun modelCard(`value`: IResolvable) { + unwrap(this).setModelCard(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An Amazon SageMaker Model Card. + */ + public open fun modelCard(`value`: ModelCardProperty) { + unwrap(this).setModelCard(`value`.let(ModelCardProperty.Companion::unwrap)) + } + + /** + * An Amazon SageMaker Model Card. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c7792768bc5177e62cc986943655d5818b48ae3507fcb512826f70d463888a3a") + public open fun modelCard(`value`: ModelCardProperty.Builder.() -> Unit): Unit = + modelCard(ModelCardProperty(`value`)) + /** * Metrics for the model. */ @@ -713,6 +783,37 @@ public open class CfnModelPackage( unwrap(this).setSamplePayloadUrl(`value`) } + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + */ + public open fun securityConfig(): Any? = unwrap(this).getSecurityConfig() + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + */ + public open fun securityConfig(`value`: IResolvable) { + unwrap(this).setSecurityConfig(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + */ + public open fun securityConfig(`value`: SecurityConfigProperty) { + unwrap(this).setSecurityConfig(`value`.let(SecurityConfigProperty.Companion::unwrap)) + } + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8cc9d0d3a4462ff292aca7beec625f3d1835b5ed5faaec7f43ac5844021a9e8b") + public open fun securityConfig(`value`: SecurityConfigProperty.Builder.() -> Unit): Unit = + securityConfig(SecurityConfigProperty(`value`)) + /** * Indicates if you want to skip model validation. */ @@ -754,6 +855,18 @@ public open class CfnModelPackage( fun sourceAlgorithmSpecification(`value`: SourceAlgorithmSpecificationProperty.Builder.() -> Unit): Unit = sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty(`value`)) + /** + * The URI of the source for the model package. + */ + public open fun sourceUri(): String? = unwrap(this).getSourceUri() + + /** + * The URI of the source for the model package. + */ + public open fun sourceUri(`value`: String) { + unwrap(this).setSourceUri(`value`) + } + /** * Tag Manager which manages the tags for this resource. */ @@ -1075,6 +1188,32 @@ public open class CfnModelPackage( */ public fun modelApprovalStatus(modelApprovalStatus: String) + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + public fun modelCard(modelCard: IResolvable) + + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + public fun modelCard(modelCard: ModelCardProperty) + + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8f3a07097c463ce96ceca5f0e2026da3fead0bcaeb969f55487825d8a2a5e85d") + public fun modelCard(modelCard: ModelCardProperty.Builder.() -> Unit) + /** * Metrics for the model. * @@ -1175,6 +1314,38 @@ public open class CfnModelPackage( */ public fun samplePayloadUrl(samplePayloadUrl: String) + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + public fun securityConfig(securityConfig: IResolvable) + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + public fun securityConfig(securityConfig: SecurityConfigProperty) + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c138c0687b499ad4a45510702b3934cfc915545ba87e5d416b900ad9744cecd9") + public fun securityConfig(securityConfig: SecurityConfigProperty.Builder.() -> Unit) + /** * Indicates if you want to skip model validation. * @@ -1214,6 +1385,14 @@ public open class CfnModelPackage( public fun sourceAlgorithmSpecification(sourceAlgorithmSpecification: SourceAlgorithmSpecificationProperty.Builder.() -> Unit) + /** + * The URI of the source for the model package. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-sourceuri) + * @param sourceUri The URI of the source for the model package. + */ + public fun sourceUri(sourceUri: String) + /** * A list of the tags associated with the model package. * @@ -1583,6 +1762,37 @@ public open class CfnModelPackage( cdkBuilder.modelApprovalStatus(modelApprovalStatus) } + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + override fun modelCard(modelCard: IResolvable) { + cdkBuilder.modelCard(modelCard.let(IResolvable.Companion::unwrap)) + } + + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + override fun modelCard(modelCard: ModelCardProperty) { + cdkBuilder.modelCard(modelCard.let(ModelCardProperty.Companion::unwrap)) + } + + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + * @param modelCard An Amazon SageMaker Model Card. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8f3a07097c463ce96ceca5f0e2026da3fead0bcaeb969f55487825d8a2a5e85d") + override fun modelCard(modelCard: ModelCardProperty.Builder.() -> Unit): Unit = + modelCard(ModelCardProperty(modelCard)) + /** * Metrics for the model. * @@ -1704,6 +1914,43 @@ public open class CfnModelPackage( cdkBuilder.samplePayloadUrl(samplePayloadUrl) } + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + override fun securityConfig(securityConfig: IResolvable) { + cdkBuilder.securityConfig(securityConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + override fun securityConfig(securityConfig: SecurityConfigProperty) { + cdkBuilder.securityConfig(securityConfig.let(SecurityConfigProperty.Companion::unwrap)) + } + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c138c0687b499ad4a45510702b3934cfc915545ba87e5d416b900ad9744cecd9") + override fun securityConfig(securityConfig: SecurityConfigProperty.Builder.() -> Unit): Unit = + securityConfig(SecurityConfigProperty(securityConfig)) + /** * Indicates if you want to skip model validation. * @@ -1751,6 +1998,16 @@ public open class CfnModelPackage( Unit = sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty(sourceAlgorithmSpecification)) + /** + * The URI of the source for the model package. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-sourceuri) + * @param sourceUri The URI of the source for the model package. + */ + override fun sourceUri(sourceUri: String) { + cdkBuilder.sourceUri(sourceUri) + } + /** * A list of the tags associated with the model package. * @@ -1874,6 +2131,17 @@ public open class CfnModelPackage( * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -2139,7 +2407,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty, - ) : CdkObject(cdkObject), AdditionalInferenceSpecificationDefinitionProperty { + ) : CdkObject(cdkObject), + AdditionalInferenceSpecificationDefinitionProperty { /** * The Amazon ECR registry path of the Docker image that contains the inference code. * @@ -2406,7 +2675,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.BiasProperty, - ) : CdkObject(cdkObject), BiasProperty { + ) : CdkObject(cdkObject), + BiasProperty { /** * The post-training bias report for a model. * @@ -2530,7 +2800,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DataSourceProperty, - ) : CdkObject(cdkObject), DataSourceProperty { + ) : CdkObject(cdkObject), + DataSourceProperty { /** * The S3 location of the data source that is associated with a channel. * @@ -2870,7 +3141,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckBaselinesProperty, - ) : CdkObject(cdkObject), DriftCheckBaselinesProperty { + ) : CdkObject(cdkObject), + DriftCheckBaselinesProperty { /** * Represents the drift check bias baselines that can be used when the model monitor is set * using the model package. @@ -3117,7 +3389,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckBiasProperty, - ) : CdkObject(cdkObject), DriftCheckBiasProperty { + ) : CdkObject(cdkObject), + DriftCheckBiasProperty { /** * The bias config file for a model. * @@ -3299,7 +3572,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckExplainabilityProperty, - ) : CdkObject(cdkObject), DriftCheckExplainabilityProperty { + ) : CdkObject(cdkObject), + DriftCheckExplainabilityProperty { /** * The explainability config file for the model. * @@ -3474,7 +3748,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckModelDataQualityProperty, - ) : CdkObject(cdkObject), DriftCheckModelDataQualityProperty { + ) : CdkObject(cdkObject), + DriftCheckModelDataQualityProperty { /** * The drift check model data quality constraints. * @@ -3650,7 +3925,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckModelQualityProperty, - ) : CdkObject(cdkObject), DriftCheckModelQualityProperty { + ) : CdkObject(cdkObject), + DriftCheckModelQualityProperty { /** * The drift check model quality constraints. * @@ -3770,7 +4046,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ExplainabilityProperty, - ) : CdkObject(cdkObject), ExplainabilityProperty { + ) : CdkObject(cdkObject), + ExplainabilityProperty { /** * The explainability report for a model. * @@ -3892,7 +4169,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.FileSourceProperty, - ) : CdkObject(cdkObject), FileSourceProperty { + ) : CdkObject(cdkObject), + FileSourceProperty { /** * The digest of the file source. * @@ -3954,6 +4232,17 @@ public open class CfnModelPackage( * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -4182,7 +4471,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.InferenceSpecificationProperty, - ) : CdkObject(cdkObject), InferenceSpecificationProperty { + ) : CdkObject(cdkObject), + InferenceSpecificationProperty { /** * The Amazon ECR registry path of the Docker image that contains the inference code. * @@ -4360,7 +4650,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.MetadataPropertiesProperty, - ) : CdkObject(cdkObject), MetadataPropertiesProperty { + ) : CdkObject(cdkObject), + MetadataPropertiesProperty { /** * The commit ID. * @@ -4503,7 +4794,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.MetricsSourceProperty, - ) : CdkObject(cdkObject), MetricsSourceProperty { + ) : CdkObject(cdkObject), + MetricsSourceProperty { /** * The hash key used for the metrics source. * @@ -4545,7 +4837,19 @@ public open class CfnModelPackage( } /** - * Data quality constraints and statistics for a model. + * The access configuration file to control access to the ML model. + * + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . + * + * * If you are a Jumpstart user, see the [End-user license + * agreements](https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-choose.html#jumpstart-foundation-models-choose-eula) + * section for more details on accepting the EULA. + * * If you are an AutoML user, see the *Optional Parameters* section of *Create an AutoML job to + * fine-tune text generation models using the API* for details on [How to set the EULA acceptance + * when fine-tuning a model using the AutoML + * API](https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-create-experiment-finetune-llms.html#autopilot-llms-finetuning-api-optional-params) + * . * * Example: * @@ -4553,172 +4857,119 @@ public open class CfnModelPackage( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.sagemaker.*; - * ModelDataQualityProperty modelDataQualityProperty = ModelDataQualityProperty.builder() - * .constraints(MetricsSourceProperty.builder() - * .contentType("contentType") - * .s3Uri("s3Uri") - * // the properties below are optional - * .contentDigest("contentDigest") - * .build()) - * .statistics(MetricsSourceProperty.builder() - * .contentType("contentType") - * .s3Uri("s3Uri") - * // the properties below are optional - * .contentDigest("contentDigest") - * .build()) + * ModelAccessConfigProperty modelAccessConfigProperty = ModelAccessConfigProperty.builder() + * .acceptEula(false) * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelaccessconfig.html) */ - public interface ModelDataQualityProperty { + public interface ModelAccessConfigProperty { /** - * Data quality constraints for a model. + * Specifies agreement to the model end-user license agreement (EULA). * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-constraints) - */ - public fun constraints(): Any? = unwrap(this).getConstraints() - - /** - * Data quality statistics for a model. + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA that + * this model requires. You are responsible for reviewing and complying with any applicable license + * terms and making sure they are acceptable for your use case before downloading or using a model. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-statistics) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelaccessconfig.html#cfn-sagemaker-modelpackage-modelaccessconfig-accepteula) */ - public fun statistics(): Any? = unwrap(this).getStatistics() + public fun acceptEula(): Any /** - * A builder for [ModelDataQualityProperty] + * A builder for [ModelAccessConfigProperty] */ @CdkDslMarker public interface Builder { /** - * @param constraints Data quality constraints for a model. - */ - public fun constraints(constraints: IResolvable) - - /** - * @param constraints Data quality constraints for a model. - */ - public fun constraints(constraints: MetricsSourceProperty) - - /** - * @param constraints Data quality constraints for a model. - */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("17651debc01e0f4a93ea58087411e4cd218de64194b35b4c14b6973111e8813b") - public fun constraints(constraints: MetricsSourceProperty.Builder.() -> Unit) - - /** - * @param statistics Data quality statistics for a model. - */ - public fun statistics(statistics: IResolvable) - - /** - * @param statistics Data quality statistics for a model. + * @param acceptEula Specifies agreement to the model end-user license agreement (EULA). + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA + * that this model requires. You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. */ - public fun statistics(statistics: MetricsSourceProperty) + public fun acceptEula(acceptEula: Boolean) /** - * @param statistics Data quality statistics for a model. + * @param acceptEula Specifies agreement to the model end-user license agreement (EULA). + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA + * that this model requires. You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("eb2c82a1598873be70e3fa2ac906e01ecdbec14bf4b295e56ef6136ee268662f") - public fun statistics(statistics: MetricsSourceProperty.Builder.() -> Unit) + public fun acceptEula(acceptEula: IResolvable) } private class BuilderImpl : Builder { private val cdkBuilder: - software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty.Builder + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty.Builder = - software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty.builder() - - /** - * @param constraints Data quality constraints for a model. - */ - override fun constraints(constraints: IResolvable) { - cdkBuilder.constraints(constraints.let(IResolvable.Companion::unwrap)) - } - - /** - * @param constraints Data quality constraints for a model. - */ - override fun constraints(constraints: MetricsSourceProperty) { - cdkBuilder.constraints(constraints.let(MetricsSourceProperty.Companion::unwrap)) - } - - /** - * @param constraints Data quality constraints for a model. - */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("17651debc01e0f4a93ea58087411e4cd218de64194b35b4c14b6973111e8813b") - override fun constraints(constraints: MetricsSourceProperty.Builder.() -> Unit): Unit = - constraints(MetricsSourceProperty(constraints)) + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty.builder() /** - * @param statistics Data quality statistics for a model. + * @param acceptEula Specifies agreement to the model end-user license agreement (EULA). + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA + * that this model requires. You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. */ - override fun statistics(statistics: IResolvable) { - cdkBuilder.statistics(statistics.let(IResolvable.Companion::unwrap)) + override fun acceptEula(acceptEula: Boolean) { + cdkBuilder.acceptEula(acceptEula) } /** - * @param statistics Data quality statistics for a model. + * @param acceptEula Specifies agreement to the model end-user license agreement (EULA). + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA + * that this model requires. You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. */ - override fun statistics(statistics: MetricsSourceProperty) { - cdkBuilder.statistics(statistics.let(MetricsSourceProperty.Companion::unwrap)) + override fun acceptEula(acceptEula: IResolvable) { + cdkBuilder.acceptEula(acceptEula.let(IResolvable.Companion::unwrap)) } - /** - * @param statistics Data quality statistics for a model. - */ - @kotlin.Suppress("INAPPLICABLE_JVM_NAME") - @JvmName("eb2c82a1598873be70e3fa2ac906e01ecdbec14bf4b295e56ef6136ee268662f") - override fun statistics(statistics: MetricsSourceProperty.Builder.() -> Unit): Unit = - statistics(MetricsSourceProperty(statistics)) - public fun build(): - software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty = cdkBuilder.build() } private class Wrapper( - cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty, - ) : CdkObject(cdkObject), ModelDataQualityProperty { + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty, + ) : CdkObject(cdkObject), + ModelAccessConfigProperty { /** - * Data quality constraints for a model. + * Specifies agreement to the model end-user license agreement (EULA). * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-constraints) - */ - override fun constraints(): Any? = unwrap(this).getConstraints() - - /** - * Data quality statistics for a model. + * The `AcceptEula` value must be explicitly defined as `True` in order to accept the EULA + * that this model requires. You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-statistics) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelaccessconfig.html#cfn-sagemaker-modelpackage-modelaccessconfig-accepteula) */ - override fun statistics(): Any? = unwrap(this).getStatistics() + override fun acceptEula(): Any = unwrap(this).getAcceptEula() } public companion object { - public operator fun invoke(block: Builder.() -> Unit = {}): ModelDataQualityProperty { + public operator fun invoke(block: Builder.() -> Unit = {}): ModelAccessConfigProperty { val builderImpl = BuilderImpl() return Wrapper(builderImpl.apply(block).build()) } internal - fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty): - ModelDataQualityProperty = CdkObjectWrappers.wrap(cdkObject) as? ModelDataQualityProperty - ?: Wrapper(cdkObject) + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty): + ModelAccessConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? + ModelAccessConfigProperty ?: Wrapper(cdkObject) - internal fun unwrap(wrapped: ModelDataQualityProperty): - software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty = + internal fun unwrap(wrapped: ModelAccessConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty = (wrapped as CdkObject).cdkObject as - software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelAccessConfigProperty } } /** - * Input object for the model. + * An Amazon SageMaker Model Card. * * Example: * @@ -4726,12 +4977,445 @@ public open class CfnModelPackage( * // The code below shows an example of how to instantiate this type. * // The values are placeholders you should change. * import io.cloudshiftdev.awscdk.services.sagemaker.*; - * ModelInputProperty modelInputProperty = ModelInputProperty.builder() - * .dataInputConfig("dataInputConfig") + * ModelCardProperty modelCardProperty = ModelCardProperty.builder() + * .modelCardContent("modelCardContent") + * .modelCardStatus("modelCardStatus") * .build(); * ``` * - * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelinput.html) + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelcard.html) + */ + public interface ModelCardProperty { + /** + * The content of the model card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelcard.html#cfn-sagemaker-modelpackage-modelcard-modelcardcontent) + */ + public fun modelCardContent(): String + + /** + * The approval status of the model card within your organization. + * + * Different organizations might have different criteria for model card review and approval. + * + * * `Draft` : The model card is a work in progress. + * * `PendingReview` : The model card is pending review. + * * `Approved` : The model card is approved. + * * `Archived` : The model card is archived. No more updates should be made to the model card, + * but it can still be exported. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelcard.html#cfn-sagemaker-modelpackage-modelcard-modelcardstatus) + */ + public fun modelCardStatus(): String + + /** + * A builder for [ModelCardProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param modelCardContent The content of the model card. + */ + public fun modelCardContent(modelCardContent: String) + + /** + * @param modelCardStatus The approval status of the model card within your organization. + * Different organizations might have different criteria for model card review and approval. + * + * * `Draft` : The model card is a work in progress. + * * `PendingReview` : The model card is pending review. + * * `Approved` : The model card is approved. + * * `Archived` : The model card is archived. No more updates should be made to the model + * card, but it can still be exported. + */ + public fun modelCardStatus(modelCardStatus: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty.builder() + + /** + * @param modelCardContent The content of the model card. + */ + override fun modelCardContent(modelCardContent: String) { + cdkBuilder.modelCardContent(modelCardContent) + } + + /** + * @param modelCardStatus The approval status of the model card within your organization. + * Different organizations might have different criteria for model card review and approval. + * + * * `Draft` : The model card is a work in progress. + * * `PendingReview` : The model card is pending review. + * * `Approved` : The model card is approved. + * * `Archived` : The model card is archived. No more updates should be made to the model + * card, but it can still be exported. + */ + override fun modelCardStatus(modelCardStatus: String) { + cdkBuilder.modelCardStatus(modelCardStatus) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty, + ) : CdkObject(cdkObject), + ModelCardProperty { + /** + * The content of the model card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelcard.html#cfn-sagemaker-modelpackage-modelcard-modelcardcontent) + */ + override fun modelCardContent(): String = unwrap(this).getModelCardContent() + + /** + * The approval status of the model card within your organization. + * + * Different organizations might have different criteria for model card review and approval. + * + * * `Draft` : The model card is a work in progress. + * * `PendingReview` : The model card is pending review. + * * `Approved` : The model card is approved. + * * `Archived` : The model card is archived. No more updates should be made to the model + * card, but it can still be exported. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelcard.html#cfn-sagemaker-modelpackage-modelcard-modelcardstatus) + */ + override fun modelCardStatus(): String = unwrap(this).getModelCardStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ModelCardProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty): + ModelCardProperty = CdkObjectWrappers.wrap(cdkObject) as? ModelCardProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ModelCardProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelCardProperty + } + } + + /** + * Data quality constraints and statistics for a model. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ModelDataQualityProperty modelDataQualityProperty = ModelDataQualityProperty.builder() + * .constraints(MetricsSourceProperty.builder() + * .contentType("contentType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .contentDigest("contentDigest") + * .build()) + * .statistics(MetricsSourceProperty.builder() + * .contentType("contentType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .contentDigest("contentDigest") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html) + */ + public interface ModelDataQualityProperty { + /** + * Data quality constraints for a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-constraints) + */ + public fun constraints(): Any? = unwrap(this).getConstraints() + + /** + * Data quality statistics for a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-statistics) + */ + public fun statistics(): Any? = unwrap(this).getStatistics() + + /** + * A builder for [ModelDataQualityProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param constraints Data quality constraints for a model. + */ + public fun constraints(constraints: IResolvable) + + /** + * @param constraints Data quality constraints for a model. + */ + public fun constraints(constraints: MetricsSourceProperty) + + /** + * @param constraints Data quality constraints for a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("17651debc01e0f4a93ea58087411e4cd218de64194b35b4c14b6973111e8813b") + public fun constraints(constraints: MetricsSourceProperty.Builder.() -> Unit) + + /** + * @param statistics Data quality statistics for a model. + */ + public fun statistics(statistics: IResolvable) + + /** + * @param statistics Data quality statistics for a model. + */ + public fun statistics(statistics: MetricsSourceProperty) + + /** + * @param statistics Data quality statistics for a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eb2c82a1598873be70e3fa2ac906e01ecdbec14bf4b295e56ef6136ee268662f") + public fun statistics(statistics: MetricsSourceProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty.builder() + + /** + * @param constraints Data quality constraints for a model. + */ + override fun constraints(constraints: IResolvable) { + cdkBuilder.constraints(constraints.let(IResolvable.Companion::unwrap)) + } + + /** + * @param constraints Data quality constraints for a model. + */ + override fun constraints(constraints: MetricsSourceProperty) { + cdkBuilder.constraints(constraints.let(MetricsSourceProperty.Companion::unwrap)) + } + + /** + * @param constraints Data quality constraints for a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("17651debc01e0f4a93ea58087411e4cd218de64194b35b4c14b6973111e8813b") + override fun constraints(constraints: MetricsSourceProperty.Builder.() -> Unit): Unit = + constraints(MetricsSourceProperty(constraints)) + + /** + * @param statistics Data quality statistics for a model. + */ + override fun statistics(statistics: IResolvable) { + cdkBuilder.statistics(statistics.let(IResolvable.Companion::unwrap)) + } + + /** + * @param statistics Data quality statistics for a model. + */ + override fun statistics(statistics: MetricsSourceProperty) { + cdkBuilder.statistics(statistics.let(MetricsSourceProperty.Companion::unwrap)) + } + + /** + * @param statistics Data quality statistics for a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eb2c82a1598873be70e3fa2ac906e01ecdbec14bf4b295e56ef6136ee268662f") + override fun statistics(statistics: MetricsSourceProperty.Builder.() -> Unit): Unit = + statistics(MetricsSourceProperty(statistics)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty, + ) : CdkObject(cdkObject), + ModelDataQualityProperty { + /** + * Data quality constraints for a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-constraints) + */ + override fun constraints(): Any? = unwrap(this).getConstraints() + + /** + * Data quality statistics for a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-statistics) + */ + override fun statistics(): Any? = unwrap(this).getStatistics() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ModelDataQualityProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty): + ModelDataQualityProperty = CdkObjectWrappers.wrap(cdkObject) as? ModelDataQualityProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ModelDataQualityProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataQualityProperty + } + } + + /** + * Specifies the location of ML model data to deploy. + * + * If specified, you must specify one and only one of the available data sources. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ModelDataSourceProperty modelDataSourceProperty = ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldatasource.html) + */ + public interface ModelDataSourceProperty { + /** + * Specifies the S3 location of ML model data to deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldatasource.html#cfn-sagemaker-modelpackage-modeldatasource-s3datasource) + */ + public fun s3DataSource(): Any? = unwrap(this).getS3DataSource() + + /** + * A builder for [ModelDataSourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + public fun s3DataSource(s3DataSource: IResolvable) + + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + public fun s3DataSource(s3DataSource: S3ModelDataSourceProperty) + + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e9a8bac1439e821c678c0a604f794c23f9d40b11f6c059b6d8dbc6a176fa8f6d") + public fun s3DataSource(s3DataSource: S3ModelDataSourceProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty.builder() + + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + override fun s3DataSource(s3DataSource: IResolvable) { + cdkBuilder.s3DataSource(s3DataSource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + override fun s3DataSource(s3DataSource: S3ModelDataSourceProperty) { + cdkBuilder.s3DataSource(s3DataSource.let(S3ModelDataSourceProperty.Companion::unwrap)) + } + + /** + * @param s3DataSource Specifies the S3 location of ML model data to deploy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e9a8bac1439e821c678c0a604f794c23f9d40b11f6c059b6d8dbc6a176fa8f6d") + override fun s3DataSource(s3DataSource: S3ModelDataSourceProperty.Builder.() -> Unit): Unit = + s3DataSource(S3ModelDataSourceProperty(s3DataSource)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty, + ) : CdkObject(cdkObject), + ModelDataSourceProperty { + /** + * Specifies the S3 location of ML model data to deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldatasource.html#cfn-sagemaker-modelpackage-modeldatasource-s3datasource) + */ + override fun s3DataSource(): Any? = unwrap(this).getS3DataSource() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ModelDataSourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty): + ModelDataSourceProperty = CdkObjectWrappers.wrap(cdkObject) as? ModelDataSourceProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ModelDataSourceProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelDataSourceProperty + } + } + + /** + * Input object for the model. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * ModelInputProperty modelInputProperty = ModelInputProperty.builder() + * .dataInputConfig("dataInputConfig") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelinput.html) */ public interface ModelInputProperty { /** @@ -4771,7 +5455,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelInputProperty, - ) : CdkObject(cdkObject), ModelInputProperty { + ) : CdkObject(cdkObject), + ModelInputProperty { /** * The input configuration object for the model. * @@ -5071,7 +5756,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelMetricsProperty, - ) : CdkObject(cdkObject), ModelMetricsProperty { + ) : CdkObject(cdkObject), + ModelMetricsProperty { /** * Metrics that measure bias in a model. * @@ -5139,6 +5825,17 @@ public open class CfnModelPackage( * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -5199,6 +5896,13 @@ public open class CfnModelPackage( */ public fun imageDigest(): String? = unwrap(this).getImageDigest() + /** + * Specifies the location of ML model data to deploy during endpoint creation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelpackagecontainerdefinition.html#cfn-sagemaker-modelpackage-modelpackagecontainerdefinition-modeldatasource) + */ + public fun modelDataSource(): Any? = unwrap(this).getModelDataSource() + /** * The Amazon S3 path where the model artifacts, which result from model training, are stored. * @@ -5280,6 +5984,26 @@ public open class CfnModelPackage( */ public fun imageDigest(imageDigest: String) + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + public fun modelDataSource(modelDataSource: IResolvable) + + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + public fun modelDataSource(modelDataSource: ModelDataSourceProperty) + + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e954eb586b720211c99d4d6bbf40cbb758870e5ad831005ef5022ff7253faa92") + public fun modelDataSource(modelDataSource: ModelDataSourceProperty.Builder.() -> Unit) + /** * @param modelDataUrl The Amazon S3 path where the model artifacts, which result from model * training, are stored. @@ -5370,6 +6094,31 @@ public open class CfnModelPackage( cdkBuilder.imageDigest(imageDigest) } + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + override fun modelDataSource(modelDataSource: IResolvable) { + cdkBuilder.modelDataSource(modelDataSource.let(IResolvable.Companion::unwrap)) + } + + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + override fun modelDataSource(modelDataSource: ModelDataSourceProperty) { + cdkBuilder.modelDataSource(modelDataSource.let(ModelDataSourceProperty.Companion::unwrap)) + } + + /** + * @param modelDataSource Specifies the location of ML model data to deploy during endpoint + * creation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e954eb586b720211c99d4d6bbf40cbb758870e5ad831005ef5022ff7253faa92") + override fun modelDataSource(modelDataSource: ModelDataSourceProperty.Builder.() -> Unit): + Unit = modelDataSource(ModelDataSourceProperty(modelDataSource)) + /** * @param modelDataUrl The Amazon S3 path where the model artifacts, which result from model * training, are stored. @@ -5406,7 +6155,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageContainerDefinitionProperty, - ) : CdkObject(cdkObject), ModelPackageContainerDefinitionProperty { + ) : CdkObject(cdkObject), + ModelPackageContainerDefinitionProperty { /** * The DNS host name for the Docker container. * @@ -5458,6 +6208,13 @@ public open class CfnModelPackage( */ override fun imageDigest(): String? = unwrap(this).getImageDigest() + /** + * Specifies the location of ML model data to deploy during endpoint creation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modelpackagecontainerdefinition.html#cfn-sagemaker-modelpackage-modelpackagecontainerdefinition-modeldatasource) + */ + override fun modelDataSource(): Any? = unwrap(this).getModelDataSource() + /** * The Amazon S3 path where the model artifacts, which result from model training, are stored. * @@ -5593,7 +6350,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageStatusDetailsProperty, - ) : CdkObject(cdkObject), ModelPackageStatusDetailsProperty { + ) : CdkObject(cdkObject), + ModelPackageStatusDetailsProperty { /** * The validation status of the model package. * @@ -5718,7 +6476,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageStatusItemProperty, - ) : CdkObject(cdkObject), ModelPackageStatusItemProperty { + ) : CdkObject(cdkObject), + ModelPackageStatusItemProperty { /** * if the overall status is `Failed` , the reason for the failure. * @@ -5897,7 +6656,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelQualityProperty, - ) : CdkObject(cdkObject), ModelQualityProperty { + ) : CdkObject(cdkObject), + ModelQualityProperty { /** * Model quality constraints. * @@ -6156,7 +6916,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3DataSourceProperty, - ) : CdkObject(cdkObject), S3DataSourceProperty { + ) : CdkObject(cdkObject), + S3DataSourceProperty { /** * If you choose `S3Prefix` , `S3Uri` identifies a key name prefix. * @@ -6241,6 +7002,495 @@ public open class CfnModelPackage( } } + /** + * Specifies the S3 location of ML model data to deploy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * S3ModelDataSourceProperty s3ModelDataSourceProperty = S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html) + */ + public interface S3ModelDataSourceProperty { + /** + * Specifies how the ML model data is prepared. + * + * If you choose `Gzip` and choose `S3Object` as the value of `S3DataType` , `S3Uri` identifies + * an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar + * the object during model deployment. + * + * If you choose `None` and chooose `S3Object` as the value of `S3DataType` , `S3Uri` identifies + * an object that represents an uncompressed ML model to deploy. + * + * If you choose None and choose `S3Prefix` as the value of `S3DataType` , `S3Uri` identifies a + * key name prefix, under which all objects represents the uncompressed ML model to deploy. + * + * If you choose None, then SageMaker will follow rules below when creating model data files + * under /opt/ml/model directory for use by your inference code: + * + * * If you choose `S3Object` as the value of `S3DataType` , then SageMaker will split the key + * of the S3 object referenced by `S3Uri` by slash (/), and use the last part as the filename of + * the file holding the content of the S3 object. + * * If you choose `S3Prefix` as the value of `S3DataType` , then for each S3 object under the + * key name pefix referenced by `S3Uri` , SageMaker will trim its key by the prefix, and use the + * remainder as the path (relative to `/opt/ml/model` ) of the file holding the content of the S3 + * object. SageMaker will split the remainder by slash (/), using intermediate parts as directory + * names and the last part as filename of the file holding the content of the S3 object. + * * Do not use any of the following as file names or directory names: + * * An empty or blank string + * * A string which contains null bytes + * * A string longer than 255 bytes + * * A single dot ( `.` ) + * * A double dot ( `..` ) + * * Ambiguous file names will result in model deployment failure. For example, if your + * uncompressed ML model consists of two S3 objects `s3://mybucket/model/weights` and + * `s3://mybucket/model/weights/part1` and you specify `s3://mybucket/model/` as the value of + * `S3Uri` and `S3Prefix` as the value of `S3DataType` , then it will result in name clash between + * `/opt/ml/model/weights` (a regular file) and `/opt/ml/model/weights/` (a directory). + * * Do not organize the model artifacts in [S3 console using + * folders](https://docs.aws.amazon.com//AmazonS3/latest/userguide/using-folders.html) . When you + * create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you + * provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker + * restrictions on model artifact file names, leading to model deployment failure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-compressiontype) + */ + public fun compressionType(): String + + /** + * Specifies the access configuration file for the ML model. + * + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or using + * a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-modelaccessconfig) + */ + public fun modelAccessConfig(): Any? = unwrap(this).getModelAccessConfig() + + /** + * Specifies the type of ML model data to deploy. + * + * If you choose `S3Prefix` , `S3Uri` identifies a key name prefix. SageMaker uses all objects + * that match the specified key name prefix as part of the ML model data to deploy. A valid key + * name prefix identified by `S3Uri` always ends with a forward slash (/). + * + * If you choose `S3Object` , `S3Uri` identifies an object that is the ML model data to deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-s3datatype) + */ + public fun s3DataType(): String + + /** + * Specifies the S3 path of ML model data to deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-s3uri) + */ + public fun s3Uri(): String + + /** + * A builder for [S3ModelDataSourceProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param compressionType Specifies how the ML model data is prepared. + * If you choose `Gzip` and choose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to + * decompress and untar the object during model deployment. + * + * If you choose `None` and chooose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that represents an uncompressed ML model to deploy. + * + * If you choose None and choose `S3Prefix` as the value of `S3DataType` , `S3Uri` identifies + * a key name prefix, under which all objects represents the uncompressed ML model to deploy. + * + * If you choose None, then SageMaker will follow rules below when creating model data files + * under /opt/ml/model directory for use by your inference code: + * + * * If you choose `S3Object` as the value of `S3DataType` , then SageMaker will split the key + * of the S3 object referenced by `S3Uri` by slash (/), and use the last part as the filename of + * the file holding the content of the S3 object. + * * If you choose `S3Prefix` as the value of `S3DataType` , then for each S3 object under the + * key name pefix referenced by `S3Uri` , SageMaker will trim its key by the prefix, and use the + * remainder as the path (relative to `/opt/ml/model` ) of the file holding the content of the S3 + * object. SageMaker will split the remainder by slash (/), using intermediate parts as directory + * names and the last part as filename of the file holding the content of the S3 object. + * * Do not use any of the following as file names or directory names: + * * An empty or blank string + * * A string which contains null bytes + * * A string longer than 255 bytes + * * A single dot ( `.` ) + * * A double dot ( `..` ) + * * Ambiguous file names will result in model deployment failure. For example, if your + * uncompressed ML model consists of two S3 objects `s3://mybucket/model/weights` and + * `s3://mybucket/model/weights/part1` and you specify `s3://mybucket/model/` as the value of + * `S3Uri` and `S3Prefix` as the value of `S3DataType` , then it will result in name clash + * between `/opt/ml/model/weights` (a regular file) and `/opt/ml/model/weights/` (a directory). + * * Do not organize the model artifacts in [S3 console using + * folders](https://docs.aws.amazon.com//AmazonS3/latest/userguide/using-folders.html) . When you + * create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name + * you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker + * restrictions on model artifact file names, leading to model deployment failure. + */ + public fun compressionType(compressionType: String) + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + public fun modelAccessConfig(modelAccessConfig: IResolvable) + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + public fun modelAccessConfig(modelAccessConfig: ModelAccessConfigProperty) + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b57f4091800f0752e3941c39e92685e2a442c78707881a7a5233e5005142e8d") + public fun modelAccessConfig(modelAccessConfig: ModelAccessConfigProperty.Builder.() -> Unit) + + /** + * @param s3DataType Specifies the type of ML model data to deploy. + * If you choose `S3Prefix` , `S3Uri` identifies a key name prefix. SageMaker uses all objects + * that match the specified key name prefix as part of the ML model data to deploy. A valid key + * name prefix identified by `S3Uri` always ends with a forward slash (/). + * + * If you choose `S3Object` , `S3Uri` identifies an object that is the ML model data to + * deploy. + */ + public fun s3DataType(s3DataType: String) + + /** + * @param s3Uri Specifies the S3 path of ML model data to deploy. + */ + public fun s3Uri(s3Uri: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty.builder() + + /** + * @param compressionType Specifies how the ML model data is prepared. + * If you choose `Gzip` and choose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to + * decompress and untar the object during model deployment. + * + * If you choose `None` and chooose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that represents an uncompressed ML model to deploy. + * + * If you choose None and choose `S3Prefix` as the value of `S3DataType` , `S3Uri` identifies + * a key name prefix, under which all objects represents the uncompressed ML model to deploy. + * + * If you choose None, then SageMaker will follow rules below when creating model data files + * under /opt/ml/model directory for use by your inference code: + * + * * If you choose `S3Object` as the value of `S3DataType` , then SageMaker will split the key + * of the S3 object referenced by `S3Uri` by slash (/), and use the last part as the filename of + * the file holding the content of the S3 object. + * * If you choose `S3Prefix` as the value of `S3DataType` , then for each S3 object under the + * key name pefix referenced by `S3Uri` , SageMaker will trim its key by the prefix, and use the + * remainder as the path (relative to `/opt/ml/model` ) of the file holding the content of the S3 + * object. SageMaker will split the remainder by slash (/), using intermediate parts as directory + * names and the last part as filename of the file holding the content of the S3 object. + * * Do not use any of the following as file names or directory names: + * * An empty or blank string + * * A string which contains null bytes + * * A string longer than 255 bytes + * * A single dot ( `.` ) + * * A double dot ( `..` ) + * * Ambiguous file names will result in model deployment failure. For example, if your + * uncompressed ML model consists of two S3 objects `s3://mybucket/model/weights` and + * `s3://mybucket/model/weights/part1` and you specify `s3://mybucket/model/` as the value of + * `S3Uri` and `S3Prefix` as the value of `S3DataType` , then it will result in name clash + * between `/opt/ml/model/weights` (a regular file) and `/opt/ml/model/weights/` (a directory). + * * Do not organize the model artifacts in [S3 console using + * folders](https://docs.aws.amazon.com//AmazonS3/latest/userguide/using-folders.html) . When you + * create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name + * you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker + * restrictions on model artifact file names, leading to model deployment failure. + */ + override fun compressionType(compressionType: String) { + cdkBuilder.compressionType(compressionType) + } + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + override fun modelAccessConfig(modelAccessConfig: IResolvable) { + cdkBuilder.modelAccessConfig(modelAccessConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + override fun modelAccessConfig(modelAccessConfig: ModelAccessConfigProperty) { + cdkBuilder.modelAccessConfig(modelAccessConfig.let(ModelAccessConfigProperty.Companion::unwrap)) + } + + /** + * @param modelAccessConfig Specifies the access configuration file for the ML model. + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b57f4091800f0752e3941c39e92685e2a442c78707881a7a5233e5005142e8d") + override + fun modelAccessConfig(modelAccessConfig: ModelAccessConfigProperty.Builder.() -> Unit): + Unit = modelAccessConfig(ModelAccessConfigProperty(modelAccessConfig)) + + /** + * @param s3DataType Specifies the type of ML model data to deploy. + * If you choose `S3Prefix` , `S3Uri` identifies a key name prefix. SageMaker uses all objects + * that match the specified key name prefix as part of the ML model data to deploy. A valid key + * name prefix identified by `S3Uri` always ends with a forward slash (/). + * + * If you choose `S3Object` , `S3Uri` identifies an object that is the ML model data to + * deploy. + */ + override fun s3DataType(s3DataType: String) { + cdkBuilder.s3DataType(s3DataType) + } + + /** + * @param s3Uri Specifies the S3 path of ML model data to deploy. + */ + override fun s3Uri(s3Uri: String) { + cdkBuilder.s3Uri(s3Uri) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty, + ) : CdkObject(cdkObject), + S3ModelDataSourceProperty { + /** + * Specifies how the ML model data is prepared. + * + * If you choose `Gzip` and choose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to + * decompress and untar the object during model deployment. + * + * If you choose `None` and chooose `S3Object` as the value of `S3DataType` , `S3Uri` + * identifies an object that represents an uncompressed ML model to deploy. + * + * If you choose None and choose `S3Prefix` as the value of `S3DataType` , `S3Uri` identifies + * a key name prefix, under which all objects represents the uncompressed ML model to deploy. + * + * If you choose None, then SageMaker will follow rules below when creating model data files + * under /opt/ml/model directory for use by your inference code: + * + * * If you choose `S3Object` as the value of `S3DataType` , then SageMaker will split the key + * of the S3 object referenced by `S3Uri` by slash (/), and use the last part as the filename of + * the file holding the content of the S3 object. + * * If you choose `S3Prefix` as the value of `S3DataType` , then for each S3 object under the + * key name pefix referenced by `S3Uri` , SageMaker will trim its key by the prefix, and use the + * remainder as the path (relative to `/opt/ml/model` ) of the file holding the content of the S3 + * object. SageMaker will split the remainder by slash (/), using intermediate parts as directory + * names and the last part as filename of the file holding the content of the S3 object. + * * Do not use any of the following as file names or directory names: + * * An empty or blank string + * * A string which contains null bytes + * * A string longer than 255 bytes + * * A single dot ( `.` ) + * * A double dot ( `..` ) + * * Ambiguous file names will result in model deployment failure. For example, if your + * uncompressed ML model consists of two S3 objects `s3://mybucket/model/weights` and + * `s3://mybucket/model/weights/part1` and you specify `s3://mybucket/model/` as the value of + * `S3Uri` and `S3Prefix` as the value of `S3DataType` , then it will result in name clash + * between `/opt/ml/model/weights` (a regular file) and `/opt/ml/model/weights/` (a directory). + * * Do not organize the model artifacts in [S3 console using + * folders](https://docs.aws.amazon.com//AmazonS3/latest/userguide/using-folders.html) . When you + * create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name + * you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker + * restrictions on model artifact file names, leading to model deployment failure. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-compressiontype) + */ + override fun compressionType(): String = unwrap(this).getCompressionType() + + /** + * Specifies the access configuration file for the ML model. + * + * You can explicitly accept the model end-user license agreement (EULA) within the + * `ModelAccessConfig` . You are responsible for reviewing and complying with any applicable + * license terms and making sure they are acceptable for your use case before downloading or + * using a model. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-modelaccessconfig) + */ + override fun modelAccessConfig(): Any? = unwrap(this).getModelAccessConfig() + + /** + * Specifies the type of ML model data to deploy. + * + * If you choose `S3Prefix` , `S3Uri` identifies a key name prefix. SageMaker uses all objects + * that match the specified key name prefix as part of the ML model data to deploy. A valid key + * name prefix identified by `S3Uri` always ends with a forward slash (/). + * + * If you choose `S3Object` , `S3Uri` identifies an object that is the ML model data to + * deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-s3datatype) + */ + override fun s3DataType(): String = unwrap(this).getS3DataType() + + /** + * Specifies the S3 path of ML model data to deploy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-s3modeldatasource.html#cfn-sagemaker-modelpackage-s3modeldatasource-s3uri) + */ + override fun s3Uri(): String = unwrap(this).getS3Uri() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3ModelDataSourceProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty): + S3ModelDataSourceProperty = CdkObjectWrappers.wrap(cdkObject) as? + S3ModelDataSourceProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3ModelDataSourceProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModelPackage.S3ModelDataSourceProperty + } + } + + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * SecurityConfigProperty securityConfigProperty = SecurityConfigProperty.builder() + * .kmsKeyId("kmsKeyId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-securityconfig.html) + */ + public interface SecurityConfigProperty { + /** + * The AWS KMS Key ID (KMSKeyId) used for encryption of model package information. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-securityconfig.html#cfn-sagemaker-modelpackage-securityconfig-kmskeyid) + */ + public fun kmsKeyId(): String + + /** + * A builder for [SecurityConfigProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param kmsKeyId The AWS KMS Key ID (KMSKeyId) used for encryption of model package + * information. + */ + public fun kmsKeyId(kmsKeyId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty.builder() + + /** + * @param kmsKeyId The AWS KMS Key ID (KMSKeyId) used for encryption of model package + * information. + */ + override fun kmsKeyId(kmsKeyId: String) { + cdkBuilder.kmsKeyId(kmsKeyId) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty, + ) : CdkObject(cdkObject), + SecurityConfigProperty { + /** + * The AWS KMS Key ID (KMSKeyId) used for encryption of model package information. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-securityconfig.html#cfn-sagemaker-modelpackage-securityconfig-kmskeyid) + */ + override fun kmsKeyId(): String = unwrap(this).getKmsKeyId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SecurityConfigProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty): + SecurityConfigProperty = CdkObjectWrappers.wrap(cdkObject) as? SecurityConfigProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SecurityConfigProperty): + software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnModelPackage.SecurityConfigProperty + } + } + /** * Specifies an algorithm that was used to create the model package. * @@ -6345,7 +7595,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.SourceAlgorithmProperty, - ) : CdkObject(cdkObject), SourceAlgorithmProperty { + ) : CdkObject(cdkObject), + SourceAlgorithmProperty { /** * The name of an algorithm that was used to create the model package. * @@ -6472,7 +7723,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.SourceAlgorithmSpecificationProperty, - ) : CdkObject(cdkObject), SourceAlgorithmSpecificationProperty { + ) : CdkObject(cdkObject), + SourceAlgorithmSpecificationProperty { /** * A list of the algorithms that were used to create a model package. * @@ -6756,7 +8008,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformInputProperty, - ) : CdkObject(cdkObject), TransformInputProperty { + ) : CdkObject(cdkObject), + TransformInputProperty { /** * If your transform data is compressed, specify the compression type. * @@ -7175,7 +8428,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformJobDefinitionProperty, - ) : CdkObject(cdkObject), TransformJobDefinitionProperty { + ) : CdkObject(cdkObject), + TransformJobDefinitionProperty { /** * A string that determines the number of records included in a single mini-batch. * @@ -7486,7 +8740,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformOutputProperty, - ) : CdkObject(cdkObject), TransformOutputProperty { + ) : CdkObject(cdkObject), + TransformOutputProperty { /** * The MIME type used to specify the output data. * @@ -7750,7 +9005,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.TransformResourcesProperty, - ) : CdkObject(cdkObject), TransformResourcesProperty { + ) : CdkObject(cdkObject), + TransformResourcesProperty { /** * The number of ML compute instances to use in the transform job. * @@ -7966,7 +9222,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ValidationProfileProperty, - ) : CdkObject(cdkObject), ValidationProfileProperty { + ) : CdkObject(cdkObject), + ValidationProfileProperty { /** * The name of the profile for the model package. * @@ -8142,7 +9399,8 @@ public open class CfnModelPackage( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackage.ValidationSpecificationProperty, - ) : CdkObject(cdkObject), ValidationSpecificationProperty { + ) : CdkObject(cdkObject), + ValidationSpecificationProperty { /** * An array of `ModelPackageValidationProfile` objects, each of which specifies a batch * transform job that SageMaker runs to validate your model package. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroup.kt index d1a5390e7f..05b983b3a1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroup.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelPackageGroup( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackageGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroupProps.kt index 1229876c48..bf8cc02b5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageGroupProps.kt @@ -166,7 +166,8 @@ public interface CfnModelPackageGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackageGroupProps, - ) : CdkObject(cdkObject), CfnModelPackageGroupProps { + ) : CdkObject(cdkObject), + CfnModelPackageGroupProps { /** * The description for the model group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageProps.kt index cae1069640..877735abcf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelPackageProps.kt @@ -37,6 +37,17 @@ import kotlin.jvm.JvmName * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -59,6 +70,17 @@ import kotlin.jvm.JvmName * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -151,6 +173,17 @@ import kotlin.jvm.JvmName * .framework("framework") * .frameworkVersion("frameworkVersion") * .imageDigest("imageDigest") + * .modelDataSource(ModelDataSourceProperty.builder() + * .s3DataSource(S3ModelDataSourceProperty.builder() + * .compressionType("compressionType") + * .s3DataType("s3DataType") + * .s3Uri("s3Uri") + * // the properties below are optional + * .modelAccessConfig(ModelAccessConfigProperty.builder() + * .acceptEula(false) + * .build()) + * .build()) + * .build()) * .modelDataUrl("modelDataUrl") * .modelInput(modelInput) * .nearestModelName("nearestModelName") @@ -169,6 +202,10 @@ import kotlin.jvm.JvmName * .repository("repository") * .build()) * .modelApprovalStatus("modelApprovalStatus") + * .modelCard(ModelCardProperty.builder() + * .modelCardContent("modelCardContent") + * .modelCardStatus("modelCardStatus") + * .build()) * .modelMetrics(ModelMetricsProperty.builder() * .bias(BiasProperty.builder() * .postTrainingReport(MetricsSourceProperty.builder() @@ -240,6 +277,9 @@ import kotlin.jvm.JvmName * .build()) * .modelPackageVersion(123) * .samplePayloadUrl("samplePayloadUrl") + * .securityConfig(SecurityConfigProperty.builder() + * .kmsKeyId("kmsKeyId") + * .build()) * .skipModelValidation("skipModelValidation") * .sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty.builder() * .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder() @@ -248,6 +288,7 @@ import kotlin.jvm.JvmName * .modelDataUrl("modelDataUrl") * .build())) * .build()) + * .sourceUri("sourceUri") * .tags(List.of(CfnTag.builder() * .key("key") * .value("value") @@ -399,6 +440,13 @@ public interface CfnModelPackageProps { */ public fun modelApprovalStatus(): String? = unwrap(this).getModelApprovalStatus() + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + */ + public fun modelCard(): Any? = unwrap(this).getModelCard() + /** * Metrics for the model. * @@ -450,6 +498,14 @@ public interface CfnModelPackageProps { */ public fun samplePayloadUrl(): String? = unwrap(this).getSamplePayloadUrl() + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + */ + public fun securityConfig(): Any? = unwrap(this).getSecurityConfig() + /** * Indicates if you want to skip model validation. * @@ -464,6 +520,13 @@ public interface CfnModelPackageProps { */ public fun sourceAlgorithmSpecification(): Any? = unwrap(this).getSourceAlgorithmSpecification() + /** + * The URI of the source for the model package. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-sourceuri) + */ + public fun sourceUri(): String? = unwrap(this).getSourceUri() + /** * A list of the tags associated with the model package. * @@ -669,6 +732,23 @@ public interface CfnModelPackageProps { */ public fun modelApprovalStatus(modelApprovalStatus: String) + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + public fun modelCard(modelCard: IResolvable) + + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + public fun modelCard(modelCard: CfnModelPackage.ModelCardProperty) + + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("505ebb09f9815b2b7f5d82125c19031a0a8db90fc6527cbae3670eb1056f0122") + public fun modelCard(modelCard: CfnModelPackage.ModelCardProperty.Builder.() -> Unit) + /** * @param modelMetrics Metrics for the model. */ @@ -735,6 +815,27 @@ public interface CfnModelPackageProps { */ public fun samplePayloadUrl(samplePayloadUrl: String) + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + public fun securityConfig(securityConfig: IResolvable) + + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + public fun securityConfig(securityConfig: CfnModelPackage.SecurityConfigProperty) + + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66ceee6ee26789e2fde6a8f81ce8aaf85f2698a1c87eaecc21310e82ab765b6a") + public + fun securityConfig(securityConfig: CfnModelPackage.SecurityConfigProperty.Builder.() -> Unit) + /** * @param skipModelValidation Indicates if you want to skip model validation. */ @@ -762,6 +863,11 @@ public interface CfnModelPackageProps { public fun sourceAlgorithmSpecification(sourceAlgorithmSpecification: CfnModelPackage.SourceAlgorithmSpecificationProperty.Builder.() -> Unit) + /** + * @param sourceUri The URI of the source for the model package. + */ + public fun sourceUri(sourceUri: String) + /** * @param tags A list of the tags associated with the model package. * For more information, see [Tagging AWS @@ -1030,6 +1136,28 @@ public interface CfnModelPackageProps { cdkBuilder.modelApprovalStatus(modelApprovalStatus) } + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + override fun modelCard(modelCard: IResolvable) { + cdkBuilder.modelCard(modelCard.let(IResolvable.Companion::unwrap)) + } + + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + override fun modelCard(modelCard: CfnModelPackage.ModelCardProperty) { + cdkBuilder.modelCard(modelCard.let(CfnModelPackage.ModelCardProperty.Companion::unwrap)) + } + + /** + * @param modelCard An Amazon SageMaker Model Card. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("505ebb09f9815b2b7f5d82125c19031a0a8db90fc6527cbae3670eb1056f0122") + override fun modelCard(modelCard: CfnModelPackage.ModelCardProperty.Builder.() -> Unit): Unit = + modelCard(CfnModelPackage.ModelCardProperty(modelCard)) + /** * @param modelMetrics Metrics for the model. */ @@ -1118,6 +1246,32 @@ public interface CfnModelPackageProps { cdkBuilder.samplePayloadUrl(samplePayloadUrl) } + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + override fun securityConfig(securityConfig: IResolvable) { + cdkBuilder.securityConfig(securityConfig.let(IResolvable.Companion::unwrap)) + } + + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + override fun securityConfig(securityConfig: CfnModelPackage.SecurityConfigProperty) { + cdkBuilder.securityConfig(securityConfig.let(CfnModelPackage.SecurityConfigProperty.Companion::unwrap)) + } + + /** + * @param securityConfig An optional AWS Key Management Service key to encrypt, decrypt, and + * re-encrypt model package information for regulated workloads with highly sensitive data. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("66ceee6ee26789e2fde6a8f81ce8aaf85f2698a1c87eaecc21310e82ab765b6a") + override + fun securityConfig(securityConfig: CfnModelPackage.SecurityConfigProperty.Builder.() -> Unit): + Unit = securityConfig(CfnModelPackage.SecurityConfigProperty(securityConfig)) + /** * @param skipModelValidation Indicates if you want to skip model validation. */ @@ -1153,6 +1307,13 @@ public interface CfnModelPackageProps { Unit = sourceAlgorithmSpecification(CfnModelPackage.SourceAlgorithmSpecificationProperty(sourceAlgorithmSpecification)) + /** + * @param sourceUri The URI of the source for the model package. + */ + override fun sourceUri(sourceUri: String) { + cdkBuilder.sourceUri(sourceUri) + } + /** * @param tags A list of the tags associated with the model package. * For more information, see [Tagging AWS @@ -1213,7 +1374,8 @@ public interface CfnModelPackageProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelPackageProps, - ) : CdkObject(cdkObject), CfnModelPackageProps { + ) : CdkObject(cdkObject), + CfnModelPackageProps { /** * An array of additional Inference Specification objects. * @@ -1316,6 +1478,13 @@ public interface CfnModelPackageProps { */ override fun modelApprovalStatus(): String? = unwrap(this).getModelApprovalStatus() + /** + * An Amazon SageMaker Model Card. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-modelcard) + */ + override fun modelCard(): Any? = unwrap(this).getModelCard() + /** * Metrics for the model. * @@ -1367,6 +1536,14 @@ public interface CfnModelPackageProps { */ override fun samplePayloadUrl(): String? = unwrap(this).getSamplePayloadUrl() + /** + * An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package + * information for regulated workloads with highly sensitive data. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-securityconfig) + */ + override fun securityConfig(): Any? = unwrap(this).getSecurityConfig() + /** * Indicates if you want to skip model validation. * @@ -1382,6 +1559,13 @@ public interface CfnModelPackageProps { override fun sourceAlgorithmSpecification(): Any? = unwrap(this).getSourceAlgorithmSpecification() + /** + * The URI of the source for the model package. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-sourceuri) + */ + override fun sourceUri(): String? = unwrap(this).getSourceUri() + /** * A list of the tags associated with the model package. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelProps.kt index 63efb53014..727c36b2ff 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelProps.kt @@ -44,6 +44,9 @@ import kotlin.jvm.JvmName * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -80,6 +83,9 @@ import kotlin.jvm.JvmName * .s3DataType("s3DataType") * .s3Uri("s3Uri") * // the properties below are optional + * .hubAccessConfig(HubAccessConfigProperty.builder() + * .hubContentArn("hubContentArn") + * .build()) * .modelAccessConfig(ModelAccessConfigProperty.builder() * .acceptEula(false) * .build()) @@ -528,7 +534,8 @@ public interface CfnModelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelProps, - ) : CdkObject(cdkObject), CfnModelProps { + ) : CdkObject(cdkObject), + CfnModelProps { /** * Specifies the containers in the inference pipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinition.kt index 2cdfae895a..ac2cd00170 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinition.kt @@ -140,7 +140,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnModelQualityJobDefinition( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1349,7 +1351,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.BatchTransformInputProperty, - ) : CdkObject(cdkObject), BatchTransformInputProperty { + ) : CdkObject(cdkObject), + BatchTransformInputProperty { /** * The Amazon S3 location being used to capture the data. * @@ -1590,7 +1593,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * The number of ML compute instances to use in the model monitoring job. * @@ -1698,7 +1702,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.ConstraintsResourceProperty, - ) : CdkObject(cdkObject), ConstraintsResourceProperty { + ) : CdkObject(cdkObject), + ConstraintsResourceProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1792,7 +1797,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * A boolean flag indicating if given CSV has header. * @@ -1981,7 +1987,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.DatasetFormatProperty, - ) : CdkObject(cdkObject), DatasetFormatProperty { + ) : CdkObject(cdkObject), + DatasetFormatProperty { /** * The CSV format. * @@ -2294,7 +2301,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.EndpointInputProperty, - ) : CdkObject(cdkObject), EndpointInputProperty { + ) : CdkObject(cdkObject), + EndpointInputProperty { /** * If specified, monitoring jobs substract this time from the end time. * @@ -2462,7 +2470,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.JsonProperty, - ) : CdkObject(cdkObject), JsonProperty { + ) : CdkObject(cdkObject), + JsonProperty { /** * A boolean flag indicating if it is JSON line format. * @@ -2735,7 +2744,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.ModelQualityAppSpecificationProperty, - ) : CdkObject(cdkObject), ModelQualityAppSpecificationProperty { + ) : CdkObject(cdkObject), + ModelQualityAppSpecificationProperty { /** * An array of arguments for the container used to run the monitoring job. * @@ -2927,7 +2937,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.ModelQualityBaselineConfigProperty, - ) : CdkObject(cdkObject), ModelQualityBaselineConfigProperty { + ) : CdkObject(cdkObject), + ModelQualityBaselineConfigProperty { /** * The name of the job that performs baselining for the monitoring job. * @@ -3179,7 +3190,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.ModelQualityJobInputProperty, - ) : CdkObject(cdkObject), ModelQualityJobInputProperty { + ) : CdkObject(cdkObject), + ModelQualityJobInputProperty { /** * Input object for the batch transform job. * @@ -3276,7 +3288,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.MonitoringGroundTruthS3InputProperty, - ) : CdkObject(cdkObject), MonitoringGroundTruthS3InputProperty { + ) : CdkObject(cdkObject), + MonitoringGroundTruthS3InputProperty { /** * The address of the Amazon S3 location of the ground truth labels. * @@ -3422,7 +3435,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.MonitoringOutputConfigProperty, - ) : CdkObject(cdkObject), MonitoringOutputConfigProperty { + ) : CdkObject(cdkObject), + MonitoringOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS ) key that Amazon SageMaker uses to encrypt the * model artifacts at rest using Amazon S3 server-side encryption. @@ -3552,7 +3566,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.MonitoringOutputProperty, - ) : CdkObject(cdkObject), MonitoringOutputProperty { + ) : CdkObject(cdkObject), + MonitoringOutputProperty { /** * The Amazon S3 storage location where the results of a monitoring job are saved. * @@ -3673,7 +3688,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.MonitoringResourcesProperty, - ) : CdkObject(cdkObject), MonitoringResourcesProperty { + ) : CdkObject(cdkObject), + MonitoringResourcesProperty { /** * The configuration for the cluster resources used to run the processing job. * @@ -3884,7 +3900,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.NetworkConfigProperty, - ) : CdkObject(cdkObject), NetworkConfigProperty { + ) : CdkObject(cdkObject), + NetworkConfigProperty { /** * Whether to encrypt all communications between distributed processing jobs. * @@ -4040,7 +4057,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.S3OutputProperty, - ) : CdkObject(cdkObject), S3OutputProperty { + ) : CdkObject(cdkObject), + S3OutputProperty { /** * The local path to the Amazon S3 storage location where Amazon SageMaker saves the results * of a monitoring job. @@ -4087,11 +4105,9 @@ public open class CfnModelQualityJobDefinition( } /** - * Specifies a limit to how long a model training job or model compilation job can run. + * Specifies a limit to how long a job can run. * - * It also specifies how long a managed spot training job has to complete. When the job reaches - * the time limit, SageMaker ends the training or compilation job. Use this API to cap model training - * costs. + * When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs. * * To stop a training job, SageMaker sends the algorithm the `SIGTERM` signal, which delays job * termination for 120 seconds. Algorithms can use this 120-second window to save the model @@ -4198,7 +4214,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.StoppingConditionProperty, - ) : CdkObject(cdkObject), StoppingConditionProperty { + ) : CdkObject(cdkObject), + StoppingConditionProperty { /** * The maximum length of time, in seconds, that a training or compilation job can run before * it is stopped. @@ -4365,7 +4382,8 @@ public open class CfnModelQualityJobDefinition( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinitionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinitionProps.kt index fb4100b1d8..dcf2a08c83 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinitionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnModelQualityJobDefinitionProps.kt @@ -626,7 +626,8 @@ public interface CfnModelQualityJobDefinitionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinitionProps, - ) : CdkObject(cdkObject), CfnModelQualityJobDefinitionProps { + ) : CdkObject(cdkObject), + CfnModelQualityJobDefinitionProps { /** * The name of the endpoint used to run the monitoring job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringSchedule.kt index c453e40866..39e3813c60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringSchedule.kt @@ -153,7 +153,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMonitoringSchedule( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -767,7 +769,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.BaselineConfigProperty, - ) : CdkObject(cdkObject), BaselineConfigProperty { + ) : CdkObject(cdkObject), + BaselineConfigProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1013,7 +1016,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.BatchTransformInputProperty, - ) : CdkObject(cdkObject), BatchTransformInputProperty { + ) : CdkObject(cdkObject), + BatchTransformInputProperty { /** * The Amazon S3 location being used to capture the data. * @@ -1215,7 +1219,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.ClusterConfigProperty, - ) : CdkObject(cdkObject), ClusterConfigProperty { + ) : CdkObject(cdkObject), + ClusterConfigProperty { /** * The number of ML compute instances to use in the model monitoring job. * @@ -1323,7 +1328,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.ConstraintsResourceProperty, - ) : CdkObject(cdkObject), ConstraintsResourceProperty { + ) : CdkObject(cdkObject), + ConstraintsResourceProperty { /** * The Amazon S3 URI for the constraints resource. * @@ -1416,7 +1422,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.CsvProperty, - ) : CdkObject(cdkObject), CsvProperty { + ) : CdkObject(cdkObject), + CsvProperty { /** * A boolean flag indicating if given CSV has header. * @@ -1605,7 +1612,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.DatasetFormatProperty, - ) : CdkObject(cdkObject), DatasetFormatProperty { + ) : CdkObject(cdkObject), + DatasetFormatProperty { /** * The CSV format. * @@ -1805,7 +1813,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.EndpointInputProperty, - ) : CdkObject(cdkObject), EndpointInputProperty { + ) : CdkObject(cdkObject), + EndpointInputProperty { /** * An endpoint in customer's account which has enabled `DataCaptureConfig` enabled. * @@ -1933,7 +1942,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.JsonProperty, - ) : CdkObject(cdkObject), JsonProperty { + ) : CdkObject(cdkObject), + JsonProperty { /** * A boolean flag indicating if it is JSON line format. * @@ -2147,7 +2157,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringAppSpecificationProperty, - ) : CdkObject(cdkObject), MonitoringAppSpecificationProperty { + ) : CdkObject(cdkObject), + MonitoringAppSpecificationProperty { /** * An array of arguments for the container used to run the monitoring job. * @@ -2412,7 +2423,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringExecutionSummaryProperty, - ) : CdkObject(cdkObject), MonitoringExecutionSummaryProperty { + ) : CdkObject(cdkObject), + MonitoringExecutionSummaryProperty { /** * The time at which the monitoring job was created. * @@ -2643,7 +2655,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringInputProperty, - ) : CdkObject(cdkObject), MonitoringInputProperty { + ) : CdkObject(cdkObject), + MonitoringInputProperty { /** * Input object for the batch transform job. * @@ -3221,7 +3234,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringJobDefinitionProperty, - ) : CdkObject(cdkObject), MonitoringJobDefinitionProperty { + ) : CdkObject(cdkObject), + MonitoringJobDefinitionProperty { /** * Baseline configuration used to validate that the data conforms to the specified constraints * and statistics. @@ -3429,7 +3443,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringOutputConfigProperty, - ) : CdkObject(cdkObject), MonitoringOutputConfigProperty { + ) : CdkObject(cdkObject), + MonitoringOutputConfigProperty { /** * The AWS Key Management Service ( AWS KMS ) key that Amazon SageMaker uses to encrypt the * model artifacts at rest using Amazon S3 server-side encryption. @@ -3559,7 +3574,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringOutputProperty, - ) : CdkObject(cdkObject), MonitoringOutputProperty { + ) : CdkObject(cdkObject), + MonitoringOutputProperty { /** * The Amazon S3 storage location where the results of a monitoring job are saved. * @@ -3680,7 +3696,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringResourcesProperty, - ) : CdkObject(cdkObject), MonitoringResourcesProperty { + ) : CdkObject(cdkObject), + MonitoringResourcesProperty { /** * The configuration for the cluster resources used to run the processing job. * @@ -3966,7 +3983,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.MonitoringScheduleConfigProperty, - ) : CdkObject(cdkObject), MonitoringScheduleConfigProperty { + ) : CdkObject(cdkObject), + MonitoringScheduleConfigProperty { /** * Defines the monitoring job. * @@ -4227,7 +4245,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.NetworkConfigProperty, - ) : CdkObject(cdkObject), NetworkConfigProperty { + ) : CdkObject(cdkObject), + NetworkConfigProperty { /** * Whether to encrypt all communications between distributed processing jobs. * @@ -4386,7 +4405,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.S3OutputProperty, - ) : CdkObject(cdkObject), S3OutputProperty { + ) : CdkObject(cdkObject), + S3OutputProperty { /** * The local path to the S3 storage location where SageMaker saves the results of a monitoring * job. @@ -4698,7 +4718,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.ScheduleConfigProperty, - ) : CdkObject(cdkObject), ScheduleConfigProperty { + ) : CdkObject(cdkObject), + ScheduleConfigProperty { /** * Sets the end time for a monitoring job window. * @@ -4853,7 +4874,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.StatisticsResourceProperty, - ) : CdkObject(cdkObject), StatisticsResourceProperty { + ) : CdkObject(cdkObject), + StatisticsResourceProperty { /** * The S3 URI for the statistics resource. * @@ -4881,11 +4903,9 @@ public open class CfnMonitoringSchedule( } /** - * Specifies a limit to how long a model training job or model compilation job can run. + * Specifies a limit to how long a job can run. * - * It also specifies how long a managed spot training job has to complete. When the job reaches - * the time limit, SageMaker ends the training or compilation job. Use this API to cap model training - * costs. + * When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs. * * To stop a training job, SageMaker sends the algorithm the `SIGTERM` signal, which delays job * termination for 120 seconds. Algorithms can use this 120-second window to save the model @@ -4992,7 +5012,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.StoppingConditionProperty, - ) : CdkObject(cdkObject), StoppingConditionProperty { + ) : CdkObject(cdkObject), + StoppingConditionProperty { /** * The maximum length of time, in seconds, that a training or compilation job can run before * it is stopped. @@ -5159,7 +5180,8 @@ public open class CfnMonitoringSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringSchedule.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * The VPC security group IDs, in the form `sg-xxxxxxxx` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringScheduleProps.kt index c53c30f749..054bb61a52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnMonitoringScheduleProps.kt @@ -393,7 +393,8 @@ public interface CfnMonitoringScheduleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnMonitoringScheduleProps, - ) : CdkObject(cdkObject), CfnMonitoringScheduleProps { + ) : CdkObject(cdkObject), + CfnMonitoringScheduleProps { /** * The name of the endpoint using the monitoring schedule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstance.kt index 2a3cb69d73..528d44397b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstance.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNotebookInstance( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstance, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1111,7 +1113,8 @@ public open class CfnNotebookInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstance.InstanceMetadataServiceConfigurationProperty, - ) : CdkObject(cdkObject), InstanceMetadataServiceConfigurationProperty { + ) : CdkObject(cdkObject), + InstanceMetadataServiceConfigurationProperty { /** * Indicates the minimum IMDS version that the notebook instance supports. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfig.kt index abd8e6048d..0f8c2f6902 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfig.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNotebookInstanceLifecycleConfig( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfig, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -415,7 +416,8 @@ public open class CfnNotebookInstanceLifecycleConfig( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty, - ) : CdkObject(cdkObject), NotebookInstanceLifecycleHookProperty { + ) : CdkObject(cdkObject), + NotebookInstanceLifecycleHookProperty { /** * A base64-encoded string that contains a shell script for a notebook instance lifecycle * configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfigProps.kt index eef7125a16..927e3f63c4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceLifecycleConfigProps.kt @@ -178,7 +178,8 @@ public interface CfnNotebookInstanceLifecycleConfigProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfigProps, - ) : CdkObject(cdkObject), CfnNotebookInstanceLifecycleConfigProps { + ) : CdkObject(cdkObject), + CfnNotebookInstanceLifecycleConfigProps { /** * The name of the lifecycle configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceProps.kt index 426902005d..6b9e9189f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnNotebookInstanceProps.kt @@ -728,7 +728,8 @@ public interface CfnNotebookInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceProps, - ) : CdkObject(cdkObject), CfnNotebookInstanceProps { + ) : CdkObject(cdkObject), + CfnNotebookInstanceProps { /** * A list of Amazon Elastic Inference (EI) instance types to associate with the notebook * instance. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipeline.kt index cfbc26cc83..f161bce248 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipeline.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPipeline( cdkObject: software.amazon.awscdk.services.sagemaker.CfnPipeline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -418,7 +420,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnPipeline.ParallelismConfigurationProperty, - ) : CdkObject(cdkObject), ParallelismConfigurationProperty { + ) : CdkObject(cdkObject), + ParallelismConfigurationProperty { /** * The max number of steps that can be executed in parallel. * @@ -577,7 +580,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnPipeline.PipelineDefinitionProperty, - ) : CdkObject(cdkObject), PipelineDefinitionProperty { + ) : CdkObject(cdkObject), + PipelineDefinitionProperty { /** * The [JSON pipeline * definition](https://docs.aws.amazon.com/https://aws-sagemaker-mlops.github.io/sagemaker-model-building-pipeline-definition-JSON-schema/) @@ -738,7 +742,8 @@ public open class CfnPipeline( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnPipeline.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The name of the S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipelineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipelineProps.kt index d445bc55f5..5ba836399e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipelineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnPipelineProps.kt @@ -203,7 +203,8 @@ public interface CfnPipelineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnPipelineProps, - ) : CdkObject(cdkObject), CfnPipelineProps { + ) : CdkObject(cdkObject), + CfnPipelineProps { /** * The parallelism configuration applied to the pipeline. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProject.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProject.kt index 38e752818a..0deb089a7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProject.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProject.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProject( cdkObject: software.amazon.awscdk.services.sagemaker.CfnProject, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -513,7 +515,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnProject.ProvisioningParameterProperty, - ) : CdkObject(cdkObject), ProvisioningParameterProperty { + ) : CdkObject(cdkObject), + ProvisioningParameterProperty { /** * The key that identifies a provisioning parameter. * @@ -667,7 +670,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnProject.ServiceCatalogProvisionedProductDetailsProperty, - ) : CdkObject(cdkObject), ServiceCatalogProvisionedProductDetailsProperty { + ) : CdkObject(cdkObject), + ServiceCatalogProvisionedProductDetailsProperty { /** * The ID of the provisioned product. * @@ -876,7 +880,8 @@ public open class CfnProject( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnProject.ServiceCatalogProvisioningDetailsProperty, - ) : CdkObject(cdkObject), ServiceCatalogProvisioningDetailsProperty { + ) : CdkObject(cdkObject), + ServiceCatalogProvisioningDetailsProperty { /** * The path identifier of the product. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProjectProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProjectProps.kt index f1b5f6b31b..fe7fc78dfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProjectProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnProjectProps.kt @@ -254,7 +254,8 @@ public interface CfnProjectProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnProjectProps, - ) : CdkObject(cdkObject), CfnProjectProps { + ) : CdkObject(cdkObject), + CfnProjectProps { /** * The description of the project. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpace.kt index 54a6c81066..877bc694d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpace.kt @@ -22,7 +22,7 @@ import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct /** - * Creates a space used for real time collaboration in a domain. + * Creates a private space or a space used for real time collaboration in a domain. * * Example: * @@ -41,8 +41,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .spaceSettings(SpaceSettingsProperty.builder() * .appType("appType") * .codeEditorAppSettings(SpaceCodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -53,11 +59,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build())) * .jupyterLabAppSettings(SpaceJupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -65,9 +77,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -78,9 +92,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .spaceStorageSettings(SpaceStorageSettingsProperty.builder() * .ebsStorageSettings(EbsStorageSettingsProperty.builder() @@ -102,7 +118,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSpace( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -655,7 +673,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.CodeRepositoryProperty, - ) : CdkObject(cdkObject), CodeRepositoryProperty { + ) : CdkObject(cdkObject), + CodeRepositoryProperty { /** * The URL of the Git repository. * @@ -768,7 +787,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.CustomFileSystemProperty, - ) : CdkObject(cdkObject), CustomFileSystemProperty { + ) : CdkObject(cdkObject), + CustomFileSystemProperty { /** * A custom file system in Amazon EFS. * @@ -896,7 +916,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.CustomImageProperty, - ) : CdkObject(cdkObject), CustomImageProperty { + ) : CdkObject(cdkObject), + CustomImageProperty { /** * The name of the AppImageConfig. * @@ -995,7 +1016,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.EFSFileSystemProperty, - ) : CdkObject(cdkObject), EFSFileSystemProperty { + ) : CdkObject(cdkObject), + EFSFileSystemProperty { /** * The ID of your Amazon EFS file system. * @@ -1076,7 +1098,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.EbsStorageSettingsProperty, - ) : CdkObject(cdkObject), EbsStorageSettingsProperty { + ) : CdkObject(cdkObject), + EbsStorageSettingsProperty { /** * The size of an EBS storage volume for a space. * @@ -1116,9 +1139,11 @@ public open class CfnSpace( * JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -1135,6 +1160,21 @@ public open class CfnSpace( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-jupyterserverappsettings.html#cfn-sagemaker-space-jupyterserverappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [JupyterServerAppSettingsProperty] */ @@ -1162,6 +1202,26 @@ public open class CfnSpace( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bc1e1750215a44aee76b455f21d67ef6ab019a86d8976d254c0ff18df7dcf342") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -1199,6 +1259,29 @@ public open class CfnSpace( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnSpace.JupyterServerAppSettingsProperty = cdkBuilder.build() @@ -1206,7 +1289,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.JupyterServerAppSettingsProperty, - ) : CdkObject(cdkObject), JupyterServerAppSettingsProperty { + ) : CdkObject(cdkObject), + JupyterServerAppSettingsProperty { /** * The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image * used by the JupyterServer app. @@ -1216,6 +1300,21 @@ public open class CfnSpace( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-jupyterserverappsettings.html#cfn-sagemaker-space-jupyterserverappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-jupyterserverappsettings.html#cfn-sagemaker-space-jupyterserverappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -1255,9 +1354,11 @@ public open class CfnSpace( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -1285,6 +1386,19 @@ public open class CfnSpace( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-kernelgatewayappsettings.html#cfn-sagemaker-space-kernelgatewayappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [KernelGatewayAppSettingsProperty] */ @@ -1339,6 +1453,22 @@ public open class CfnSpace( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b722b7492eff2a37138d40822cae857b7cd89725c1db0e9ebb4795dee8b85261") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -1408,6 +1538,25 @@ public open class CfnSpace( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnSpace.KernelGatewayAppSettingsProperty = cdkBuilder.build() @@ -1415,7 +1564,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.KernelGatewayAppSettingsProperty, - ) : CdkObject(cdkObject), KernelGatewayAppSettingsProperty { + ) : CdkObject(cdkObject), + KernelGatewayAppSettingsProperty { /** * A list of custom SageMaker images that are configured to run as a KernelGateway app. * @@ -1436,6 +1586,19 @@ public open class CfnSpace( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-kernelgatewayappsettings.html#cfn-sagemaker-space-kernelgatewayappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-kernelgatewayappsettings.html#cfn-sagemaker-space-kernelgatewayappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -1510,7 +1673,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.OwnershipSettingsProperty, - ) : CdkObject(cdkObject), OwnershipSettingsProperty { + ) : CdkObject(cdkObject), + OwnershipSettingsProperty { /** * The user profile who is the owner of the space. * @@ -1549,6 +1713,7 @@ public open class CfnSpace( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * ResourceSpecProperty resourceSpecProperty = ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build(); @@ -1571,6 +1736,13 @@ public open class CfnSpace( */ public fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-resourcespec.html#cfn-sagemaker-space-resourcespec-lifecycleconfigarn) + */ + public fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * @@ -1600,6 +1772,12 @@ public open class CfnSpace( */ public fun instanceType(instanceType: String) + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + public fun lifecycleConfigArn(lifecycleConfigArn: String) + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -1628,6 +1806,14 @@ public open class CfnSpace( cdkBuilder.instanceType(instanceType) } + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + override fun lifecycleConfigArn(lifecycleConfigArn: String) { + cdkBuilder.lifecycleConfigArn(lifecycleConfigArn) + } + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -1648,7 +1834,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.ResourceSpecProperty, - ) : CdkObject(cdkObject), ResourceSpecProperty { + ) : CdkObject(cdkObject), + ResourceSpecProperty { /** * The instance type that the image version runs on. * @@ -1663,6 +1850,13 @@ public open class CfnSpace( */ override fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-resourcespec.html#cfn-sagemaker-space-resourcespec-lifecycleconfigarn) + */ + override fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * @@ -1696,6 +1890,121 @@ public open class CfnSpace( } } + /** + * Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio + * applications in a space. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * SpaceAppLifecycleManagementProperty spaceAppLifecycleManagementProperty = + * SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceapplifecyclemanagement.html) + */ + public interface SpaceAppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceapplifecyclemanagement.html#cfn-sagemaker-space-spaceapplifecyclemanagement-idlesettings) + */ + public fun idleSettings(): Any? = unwrap(this).getIdleSettings() + + /** + * A builder for [SpaceAppLifecycleManagementProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: IResolvable) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: SpaceIdleSettingsProperty) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d54a7d2926688d762728494544840a99ea889157e195a31f9a2c117351220009") + public fun idleSettings(idleSettings: SpaceIdleSettingsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty.builder() + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: IResolvable) { + cdkBuilder.idleSettings(idleSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: SpaceIdleSettingsProperty) { + cdkBuilder.idleSettings(idleSettings.let(SpaceIdleSettingsProperty.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d54a7d2926688d762728494544840a99ea889157e195a31f9a2c117351220009") + override fun idleSettings(idleSettings: SpaceIdleSettingsProperty.Builder.() -> Unit): Unit = + idleSettings(SpaceIdleSettingsProperty(idleSettings)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty, + ) : CdkObject(cdkObject), + SpaceAppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceapplifecyclemanagement.html#cfn-sagemaker-space-spaceapplifecyclemanagement-idlesettings) + */ + override fun idleSettings(): Any? = unwrap(this).getIdleSettings() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SpaceAppLifecycleManagementProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty): + SpaceAppLifecycleManagementProperty = CdkObjectWrappers.wrap(cdkObject) as? + SpaceAppLifecycleManagementProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SpaceAppLifecycleManagementProperty): + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty + } + } + /** * The application settings for a Code Editor space. * @@ -1707,8 +2016,14 @@ public open class CfnSpace( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * SpaceCodeEditorAppSettingsProperty spaceCodeEditorAppSettingsProperty = * SpaceCodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -1718,6 +2033,14 @@ public open class CfnSpace( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacecodeeditorappsettings.html) */ public interface SpaceCodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications in a + * space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacecodeeditorappsettings.html#cfn-sagemaker-space-spacecodeeditorappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type * that the version runs on. @@ -1731,6 +2054,27 @@ public open class CfnSpace( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + public fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("642495c09a97994a01af4a8e9e501b4af10ed75adea07f25ef529a19cee17da0") + public + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param defaultResourceSpec Specifies the ARNs of a SageMaker image and SageMaker image * version, and the instance type that the version runs on. @@ -1758,6 +2102,33 @@ public open class CfnSpace( = software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceCodeEditorAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + override + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(SpaceAppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications in a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("642495c09a97994a01af4a8e9e501b4af10ed75adea07f25ef529a19cee17da0") + override + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(SpaceAppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param defaultResourceSpec Specifies the ARNs of a SageMaker image and SageMaker image * version, and the instance type that the version runs on. @@ -1791,7 +2162,16 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceCodeEditorAppSettingsProperty, - ) : CdkObject(cdkObject), SpaceCodeEditorAppSettingsProperty { + ) : CdkObject(cdkObject), + SpaceCodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications in + * a space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacecodeeditorappsettings.html#cfn-sagemaker-space-spacecodeeditorappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type * that the version runs on. @@ -1820,6 +2200,90 @@ public open class CfnSpace( } } + /** + * Settings related to idle shutdown of Studio applications in a space. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * SpaceIdleSettingsProperty spaceIdleSettingsProperty = SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceidlesettings.html) + */ + public interface SpaceIdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceidlesettings.html#cfn-sagemaker-space-spaceidlesettings-idletimeoutinminutes) + */ + public fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + + /** + * A builder for [SpaceIdleSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + public fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty.builder() + + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + override fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) { + cdkBuilder.idleTimeoutInMinutes(idleTimeoutInMinutes) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty, + ) : CdkObject(cdkObject), + SpaceIdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spaceidlesettings.html#cfn-sagemaker-space-spaceidlesettings-idletimeoutinminutes) + */ + override fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SpaceIdleSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty): + SpaceIdleSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? + SpaceIdleSettingsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SpaceIdleSettingsProperty): + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceIdleSettingsProperty + } + } + /** * The settings for the JupyterLab application within a space. * @@ -1831,11 +2295,17 @@ public open class CfnSpace( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * SpaceJupyterLabAppSettingsProperty spaceJupyterLabAppSettingsProperty = * SpaceJupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -1845,6 +2315,14 @@ public open class CfnSpace( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacejupyterlabappsettings.html) */ public interface SpaceJupyterLabAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of JupyterLab applications in a + * space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacejupyterlabappsettings.html#cfn-sagemaker-space-spacejupyterlabappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in the * JupyterLab application. @@ -1866,6 +2344,27 @@ public open class CfnSpace( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + public fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4b6df281e20eb48194937b8f3563186eb6a29074a639a39995a8935b1f29703b") + public + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -1911,6 +2410,33 @@ public open class CfnSpace( = software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceJupyterLabAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + override + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(SpaceAppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of JupyterLab applications in a space. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4b6df281e20eb48194937b8f3563186eb6a29074a639a39995a8935b1f29703b") + override + fun appLifecycleManagement(appLifecycleManagement: SpaceAppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(SpaceAppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -1967,7 +2493,16 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceJupyterLabAppSettingsProperty, - ) : CdkObject(cdkObject), SpaceJupyterLabAppSettingsProperty { + ) : CdkObject(cdkObject), + SpaceJupyterLabAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of JupyterLab applications in + * a space. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-space-spacejupyterlabappsettings.html#cfn-sagemaker-space-spacejupyterlabappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in * the JupyterLab application. @@ -2016,8 +2551,14 @@ public open class CfnSpace( * SpaceSettingsProperty spaceSettingsProperty = SpaceSettingsProperty.builder() * .appType("appType") * .codeEditorAppSettings(SpaceCodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -2028,11 +2569,17 @@ public open class CfnSpace( * .build()) * .build())) * .jupyterLabAppSettings(SpaceJupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -2040,9 +2587,11 @@ public open class CfnSpace( * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -2053,9 +2602,11 @@ public open class CfnSpace( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .spaceStorageSettings(SpaceStorageSettingsProperty.builder() * .ebsStorageSettings(EbsStorageSettingsProperty.builder() @@ -2408,7 +2959,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceSettingsProperty, - ) : CdkObject(cdkObject), SpaceSettingsProperty { + ) : CdkObject(cdkObject), + SpaceSettingsProperty { /** * The type of app created within the space. * @@ -2534,7 +3086,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceSharingSettingsProperty, - ) : CdkObject(cdkObject), SpaceSharingSettingsProperty { + ) : CdkObject(cdkObject), + SpaceSharingSettingsProperty { /** * Specifies the sharing type of the space. * @@ -2647,7 +3200,8 @@ public open class CfnSpace( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpace.SpaceStorageSettingsProperty, - ) : CdkObject(cdkObject), SpaceStorageSettingsProperty { + ) : CdkObject(cdkObject), + SpaceStorageSettingsProperty { /** * A collection of EBS storage settings for a space. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpaceProps.kt index 7735c227ef..b775fb563b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnSpaceProps.kt @@ -33,8 +33,14 @@ import kotlin.jvm.JvmName * .spaceSettings(SpaceSettingsProperty.builder() * .appType("appType") * .codeEditorAppSettings(SpaceCodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -45,11 +51,17 @@ import kotlin.jvm.JvmName * .build()) * .build())) * .jupyterLabAppSettings(SpaceJupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder() + * .idleSettings(SpaceIdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -57,9 +69,11 @@ import kotlin.jvm.JvmName * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -70,9 +84,11 @@ import kotlin.jvm.JvmName * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .spaceStorageSettings(SpaceStorageSettingsProperty.builder() * .ebsStorageSettings(EbsStorageSettingsProperty.builder() @@ -352,7 +368,8 @@ public interface CfnSpaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnSpaceProps, - ) : CdkObject(cdkObject), CfnSpaceProps { + ) : CdkObject(cdkObject), + CfnSpaceProps { /** * The ID of the associated domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfig.kt new file mode 100644 index 0000000000..b9a0219d7c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfig.kt @@ -0,0 +1,272 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a new Amazon SageMaker Studio Lifecycle Configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnStudioLifecycleConfig cfnStudioLifecycleConfig = CfnStudioLifecycleConfig.Builder.create(this, + * "MyCfnStudioLifecycleConfig") + * .studioLifecycleConfigAppType("studioLifecycleConfigAppType") + * .studioLifecycleConfigContent("studioLifecycleConfigContent") + * .studioLifecycleConfigName("studioLifecycleConfigName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html) + */ +public open class CfnStudioLifecycleConfig( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnStudioLifecycleConfigProps, + ) : + this(software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnStudioLifecycleConfigProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnStudioLifecycleConfigProps.Builder.() -> Unit, + ) : this(scope, id, CfnStudioLifecycleConfigProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration. + */ + public open fun attrStudioLifecycleConfigArn(): String = + unwrap(this).getAttrStudioLifecycleConfigArn() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The App type to which the Lifecycle Configuration is attached. + */ + public open fun studioLifecycleConfigAppType(): String = + unwrap(this).getStudioLifecycleConfigAppType() + + /** + * The App type to which the Lifecycle Configuration is attached. + */ + public open fun studioLifecycleConfigAppType(`value`: String) { + unwrap(this).setStudioLifecycleConfigAppType(`value`) + } + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + */ + public open fun studioLifecycleConfigContent(): String = + unwrap(this).getStudioLifecycleConfigContent() + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + */ + public open fun studioLifecycleConfigContent(`value`: String) { + unwrap(this).setStudioLifecycleConfigContent(`value`) + } + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + */ + public open fun studioLifecycleConfigName(): String = unwrap(this).getStudioLifecycleConfigName() + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + */ + public open fun studioLifecycleConfigName(`value`: String) { + unwrap(this).setStudioLifecycleConfigName(`value`) + } + + /** + * Tags to be associated with the Lifecycle Configuration. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Tags to be associated with the Lifecycle Configuration. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags to be associated with the Lifecycle Configuration. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sagemaker.CfnStudioLifecycleConfig]. + */ + @CdkDslMarker + public interface Builder { + /** + * The App type to which the Lifecycle Configuration is attached. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigapptype) + * @param studioLifecycleConfigAppType The App type to which the Lifecycle Configuration is + * attached. + */ + public fun studioLifecycleConfigAppType(studioLifecycleConfigAppType: String) + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigcontent) + * @param studioLifecycleConfigContent The content of your Amazon SageMaker Studio Lifecycle + * Configuration script. + */ + public fun studioLifecycleConfigContent(studioLifecycleConfigContent: String) + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigname) + * @param studioLifecycleConfigName The name of the Amazon SageMaker Studio Lifecycle + * Configuration. + */ + public fun studioLifecycleConfigName(studioLifecycleConfigName: String) + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + public fun tags(tags: List) + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig.Builder = + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig.Builder.create(scope, id) + + /** + * The App type to which the Lifecycle Configuration is attached. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigapptype) + * @param studioLifecycleConfigAppType The App type to which the Lifecycle Configuration is + * attached. + */ + override fun studioLifecycleConfigAppType(studioLifecycleConfigAppType: String) { + cdkBuilder.studioLifecycleConfigAppType(studioLifecycleConfigAppType) + } + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigcontent) + * @param studioLifecycleConfigContent The content of your Amazon SageMaker Studio Lifecycle + * Configuration script. + */ + override fun studioLifecycleConfigContent(studioLifecycleConfigContent: String) { + cdkBuilder.studioLifecycleConfigContent(studioLifecycleConfigContent) + } + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigname) + * @param studioLifecycleConfigName The name of the Amazon SageMaker Studio Lifecycle + * Configuration. + */ + override fun studioLifecycleConfigName(studioLifecycleConfigName: String) { + cdkBuilder.studioLifecycleConfigName(studioLifecycleConfigName) + } + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnStudioLifecycleConfig { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnStudioLifecycleConfig(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig): + CfnStudioLifecycleConfig = CfnStudioLifecycleConfig(cdkObject) + + internal fun unwrap(wrapped: CfnStudioLifecycleConfig): + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig = wrapped.cdkObject as + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfig + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfigProps.kt new file mode 100644 index 0000000000..8c8e929fc7 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnStudioLifecycleConfigProps.kt @@ -0,0 +1,196 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sagemaker + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnStudioLifecycleConfig`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * CfnStudioLifecycleConfigProps cfnStudioLifecycleConfigProps = + * CfnStudioLifecycleConfigProps.builder() + * .studioLifecycleConfigAppType("studioLifecycleConfigAppType") + * .studioLifecycleConfigContent("studioLifecycleConfigContent") + * .studioLifecycleConfigName("studioLifecycleConfigName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html) + */ +public interface CfnStudioLifecycleConfigProps { + /** + * The App type to which the Lifecycle Configuration is attached. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigapptype) + */ + public fun studioLifecycleConfigAppType(): String + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigcontent) + */ + public fun studioLifecycleConfigContent(): String + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigname) + */ + public fun studioLifecycleConfigName(): String + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnStudioLifecycleConfigProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param studioLifecycleConfigAppType The App type to which the Lifecycle Configuration is + * attached. + */ + public fun studioLifecycleConfigAppType(studioLifecycleConfigAppType: String) + + /** + * @param studioLifecycleConfigContent The content of your Amazon SageMaker Studio Lifecycle + * Configuration script. + */ + public fun studioLifecycleConfigContent(studioLifecycleConfigContent: String) + + /** + * @param studioLifecycleConfigName The name of the Amazon SageMaker Studio Lifecycle + * Configuration. + */ + public fun studioLifecycleConfigName(studioLifecycleConfigName: String) + + /** + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + public fun tags(tags: List) + + /** + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps.Builder = + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps.builder() + + /** + * @param studioLifecycleConfigAppType The App type to which the Lifecycle Configuration is + * attached. + */ + override fun studioLifecycleConfigAppType(studioLifecycleConfigAppType: String) { + cdkBuilder.studioLifecycleConfigAppType(studioLifecycleConfigAppType) + } + + /** + * @param studioLifecycleConfigContent The content of your Amazon SageMaker Studio Lifecycle + * Configuration script. + */ + override fun studioLifecycleConfigContent(studioLifecycleConfigContent: String) { + cdkBuilder.studioLifecycleConfigContent(studioLifecycleConfigContent) + } + + /** + * @param studioLifecycleConfigName The name of the Amazon SageMaker Studio Lifecycle + * Configuration. + */ + override fun studioLifecycleConfigName(studioLifecycleConfigName: String) { + cdkBuilder.studioLifecycleConfigName(studioLifecycleConfigName) + } + + /** + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags Tags to be associated with the Lifecycle Configuration. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps, + ) : CdkObject(cdkObject), + CfnStudioLifecycleConfigProps { + /** + * The App type to which the Lifecycle Configuration is attached. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigapptype) + */ + override fun studioLifecycleConfigAppType(): String = + unwrap(this).getStudioLifecycleConfigAppType() + + /** + * The content of your Amazon SageMaker Studio Lifecycle Configuration script. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigcontent) + */ + override fun studioLifecycleConfigContent(): String = + unwrap(this).getStudioLifecycleConfigContent() + + /** + * The name of the Amazon SageMaker Studio Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-studiolifecycleconfigname) + */ + override fun studioLifecycleConfigName(): String = unwrap(this).getStudioLifecycleConfigName() + + /** + * Tags to be associated with the Lifecycle Configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-studiolifecycleconfig.html#cfn-sagemaker-studiolifecycleconfig-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnStudioLifecycleConfigProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps): + CfnStudioLifecycleConfigProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnStudioLifecycleConfigProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnStudioLifecycleConfigProps): + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnStudioLifecycleConfigProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfile.kt index 5688602fbc..c697552c2d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfile.kt @@ -59,6 +59,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .userSettings(UserSettingsProperty.builder() * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -67,6 +75,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -86,6 +95,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .defaultLandingUri("defaultLandingUri") * .executionRole("executionRole") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -97,6 +114,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -105,9 +123,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -118,9 +138,11 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rStudioServerProAppSettings(RStudioServerProAppSettingsProperty.builder() * .accessStatus("accessStatus") @@ -139,6 +161,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build()) * .build(); * ``` @@ -147,7 +173,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserProfile( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -527,6 +555,123 @@ public open class CfnUserProfile( software.amazon.awscdk.services.sagemaker.CfnUserProfile } + /** + * Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio + * applications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * AppLifecycleManagementProperty appLifecycleManagementProperty = + * AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-applifecyclemanagement.html) + */ + public interface AppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-applifecyclemanagement.html#cfn-sagemaker-userprofile-applifecyclemanagement-idlesettings) + */ + public fun idleSettings(): Any? = unwrap(this).getIdleSettings() + + /** + * A builder for [AppLifecycleManagementProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: IResolvable) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + public fun idleSettings(idleSettings: IdleSettingsProperty) + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b783d802ec4416d0a011b4c9df2d467ce624de0cd437e05afc8336eb17760982") + public fun idleSettings(idleSettings: IdleSettingsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty.builder() + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: IResolvable) { + cdkBuilder.idleSettings(idleSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + override fun idleSettings(idleSettings: IdleSettingsProperty) { + cdkBuilder.idleSettings(idleSettings.let(IdleSettingsProperty.Companion::unwrap)) + } + + /** + * @param idleSettings Settings related to idle shutdown of Studio applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b783d802ec4416d0a011b4c9df2d467ce624de0cd437e05afc8336eb17760982") + override fun idleSettings(idleSettings: IdleSettingsProperty.Builder.() -> Unit): Unit = + idleSettings(IdleSettingsProperty(idleSettings)) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty, + ) : CdkObject(cdkObject), + AppLifecycleManagementProperty { + /** + * Settings related to idle shutdown of Studio applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-applifecyclemanagement.html#cfn-sagemaker-userprofile-applifecyclemanagement-idlesettings) + */ + override fun idleSettings(): Any? = unwrap(this).getIdleSettings() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AppLifecycleManagementProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty): + AppLifecycleManagementProperty = CdkObjectWrappers.wrap(cdkObject) as? + AppLifecycleManagementProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: AppLifecycleManagementProperty): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnUserProfile.AppLifecycleManagementProperty + } + } + /** * The Code Editor application settings. * @@ -541,6 +686,14 @@ public open class CfnUserProfile( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * CodeEditorAppSettingsProperty codeEditorAppSettingsProperty = * CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -549,6 +702,7 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -559,6 +713,13 @@ public open class CfnUserProfile( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-codeeditorappsettings.html) */ public interface CodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-codeeditorappsettings.html#cfn-sagemaker-userprofile-codeeditorappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of custom SageMaker images that are configured to run as a Code Editor app. * @@ -587,6 +748,27 @@ public open class CfnUserProfile( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("114b94f11f0b3bd78cc1a75be83a1ee6fa0ca8ed64f69ad43241f252a96fc512") + public + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param customImages A list of custom SageMaker images that are configured to run as a Code * Editor app. @@ -644,6 +826,32 @@ public open class CfnUserProfile( = software.amazon.awscdk.services.sagemaker.CfnUserProfile.CodeEditorAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(AppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Settings that are used to configure and manage the lifecycle + * of CodeEditor applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("114b94f11f0b3bd78cc1a75be83a1ee6fa0ca8ed64f69ad43241f252a96fc512") + override + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(AppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param customImages A list of custom SageMaker images that are configured to run as a Code * Editor app. @@ -715,7 +923,15 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.CodeEditorAppSettingsProperty, - ) : CdkObject(cdkObject), CodeEditorAppSettingsProperty { + ) : CdkObject(cdkObject), + CodeEditorAppSettingsProperty { + /** + * Settings that are used to configure and manage the lifecycle of CodeEditor applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-codeeditorappsettings.html#cfn-sagemaker-userprofile-codeeditorappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of custom SageMaker images that are configured to run as a Code Editor app. * @@ -813,7 +1029,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.CodeRepositoryProperty, - ) : CdkObject(cdkObject), CodeRepositoryProperty { + ) : CdkObject(cdkObject), + CodeRepositoryProperty { /** * The URL of the Git repository. * @@ -932,7 +1149,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.CustomFileSystemConfigProperty, - ) : CdkObject(cdkObject), CustomFileSystemConfigProperty { + ) : CdkObject(cdkObject), + CustomFileSystemConfigProperty { /** * The settings for a custom Amazon EFS file system. * @@ -1061,7 +1279,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.CustomImageProperty, - ) : CdkObject(cdkObject), CustomImageProperty { + ) : CdkObject(cdkObject), + CustomImageProperty { /** * The name of the AppImageConfig. * @@ -1180,7 +1399,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.CustomPosixUserConfigProperty, - ) : CdkObject(cdkObject), CustomPosixUserConfigProperty { + ) : CdkObject(cdkObject), + CustomPosixUserConfigProperty { /** * The POSIX group ID. * @@ -1291,7 +1511,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.DefaultEbsStorageSettingsProperty, - ) : CdkObject(cdkObject), DefaultEbsStorageSettingsProperty { + ) : CdkObject(cdkObject), + DefaultEbsStorageSettingsProperty { /** * The default size of the EBS storage volume for a space. * @@ -1417,7 +1638,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.DefaultSpaceStorageSettingsProperty, - ) : CdkObject(cdkObject), DefaultSpaceStorageSettingsProperty { + ) : CdkObject(cdkObject), + DefaultSpaceStorageSettingsProperty { /** * The default EBS storage settings for a space. * @@ -1528,7 +1750,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.EFSFileSystemConfigProperty, - ) : CdkObject(cdkObject), EFSFileSystemConfigProperty { + ) : CdkObject(cdkObject), + EFSFileSystemConfigProperty { /** * The ID of your Amazon EFS file system. * @@ -1564,6 +1787,177 @@ public open class CfnUserProfile( } } + /** + * Settings related to idle shutdown of Studio applications. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * IdleSettingsProperty idleSettingsProperty = IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html) + */ + public interface IdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-idletimeoutinminutes) + */ + public fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + + /** + * Indicates whether idle shutdown is activated for the application type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-lifecyclemanagement) + */ + public fun lifecycleManagement(): String? = unwrap(this).getLifecycleManagement() + + /** + * The maximum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-maxidletimeoutinminutes) + */ + public fun maxIdleTimeoutInMinutes(): Number? = unwrap(this).getMaxIdleTimeoutInMinutes() + + /** + * The minimum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-minidletimeoutinminutes) + */ + public fun minIdleTimeoutInMinutes(): Number? = unwrap(this).getMinIdleTimeoutInMinutes() + + /** + * A builder for [IdleSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + public fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) + + /** + * @param lifecycleManagement Indicates whether idle shutdown is activated for the application + * type. + */ + public fun lifecycleManagement(lifecycleManagement: String) + + /** + * @param maxIdleTimeoutInMinutes The maximum value in minutes that custom idle shutdown can + * be set to by the user. + */ + public fun maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes: Number) + + /** + * @param minIdleTimeoutInMinutes The minimum value in minutes that custom idle shutdown can + * be set to by the user. + */ + public fun minIdleTimeoutInMinutes(minIdleTimeoutInMinutes: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty.Builder = + software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty.builder() + + /** + * @param idleTimeoutInMinutes The time that SageMaker waits after the application becomes + * idle before shutting it down. + */ + override fun idleTimeoutInMinutes(idleTimeoutInMinutes: Number) { + cdkBuilder.idleTimeoutInMinutes(idleTimeoutInMinutes) + } + + /** + * @param lifecycleManagement Indicates whether idle shutdown is activated for the application + * type. + */ + override fun lifecycleManagement(lifecycleManagement: String) { + cdkBuilder.lifecycleManagement(lifecycleManagement) + } + + /** + * @param maxIdleTimeoutInMinutes The maximum value in minutes that custom idle shutdown can + * be set to by the user. + */ + override fun maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes: Number) { + cdkBuilder.maxIdleTimeoutInMinutes(maxIdleTimeoutInMinutes) + } + + /** + * @param minIdleTimeoutInMinutes The minimum value in minutes that custom idle shutdown can + * be set to by the user. + */ + override fun minIdleTimeoutInMinutes(minIdleTimeoutInMinutes: Number) { + cdkBuilder.minIdleTimeoutInMinutes(minIdleTimeoutInMinutes) + } + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty, + ) : CdkObject(cdkObject), + IdleSettingsProperty { + /** + * The time that SageMaker waits after the application becomes idle before shutting it down. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-idletimeoutinminutes) + */ + override fun idleTimeoutInMinutes(): Number? = unwrap(this).getIdleTimeoutInMinutes() + + /** + * Indicates whether idle shutdown is activated for the application type. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-lifecyclemanagement) + */ + override fun lifecycleManagement(): String? = unwrap(this).getLifecycleManagement() + + /** + * The maximum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-maxidletimeoutinminutes) + */ + override fun maxIdleTimeoutInMinutes(): Number? = unwrap(this).getMaxIdleTimeoutInMinutes() + + /** + * The minimum value in minutes that custom idle shutdown can be set to by the user. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-idlesettings.html#cfn-sagemaker-userprofile-idlesettings-minidletimeoutinminutes) + */ + override fun minIdleTimeoutInMinutes(): Number? = unwrap(this).getMinIdleTimeoutInMinutes() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IdleSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty): + IdleSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? IdleSettingsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IdleSettingsProperty): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnUserProfile.IdleSettingsProperty + } + } + /** * The settings for the JupyterLab application. * @@ -1575,6 +1969,14 @@ public open class CfnUserProfile( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * JupyterLabAppSettingsProperty jupyterLabAppSettingsProperty = * JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -1586,6 +1988,7 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -1596,6 +1999,13 @@ public open class CfnUserProfile( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterlabappsettings.html) */ public interface JupyterLabAppSettingsProperty { + /** + * Indicates whether idle shutdown is activated for JupyterLab applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterlabappsettings.html#cfn-sagemaker-userprofile-jupyterlabappsettings-applifecyclemanagement) + */ + public fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in the * JupyterLab application. @@ -1635,6 +2045,27 @@ public open class CfnUserProfile( */ @CdkDslMarker public interface Builder { + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: IResolvable) + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + public fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a1fd009218e52d4f1525aa7699036c6876e258a096e3ba5327c1564723cd3fd3") + public + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -1712,6 +2143,32 @@ public open class CfnUserProfile( = software.amazon.awscdk.services.sagemaker.CfnUserProfile.JupyterLabAppSettingsProperty.builder() + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: IResolvable) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(IResolvable.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + override fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty) { + cdkBuilder.appLifecycleManagement(appLifecycleManagement.let(AppLifecycleManagementProperty.Companion::unwrap)) + } + + /** + * @param appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab + * applications. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a1fd009218e52d4f1525aa7699036c6876e258a096e3ba5327c1564723cd3fd3") + override + fun appLifecycleManagement(appLifecycleManagement: AppLifecycleManagementProperty.Builder.() -> Unit): + Unit = appLifecycleManagement(AppLifecycleManagementProperty(appLifecycleManagement)) + /** * @param codeRepositories A list of Git repositories that SageMaker automatically displays to * users for cloning in the JupyterLab application. @@ -1808,7 +2265,15 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.JupyterLabAppSettingsProperty, - ) : CdkObject(cdkObject), JupyterLabAppSettingsProperty { + ) : CdkObject(cdkObject), + JupyterLabAppSettingsProperty { + /** + * Indicates whether idle shutdown is activated for JupyterLab applications. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterlabappsettings.html#cfn-sagemaker-userprofile-jupyterlabappsettings-applifecyclemanagement) + */ + override fun appLifecycleManagement(): Any? = unwrap(this).getAppLifecycleManagement() + /** * A list of Git repositories that SageMaker automatically displays to users for cloning in * the JupyterLab application. @@ -1875,9 +2340,11 @@ public open class CfnUserProfile( * JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -1892,6 +2359,21 @@ public open class CfnUserProfile( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterserverappsettings.html#cfn-sagemaker-userprofile-jupyterserverappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [JupyterServerAppSettingsProperty] */ @@ -1916,6 +2398,26 @@ public open class CfnUserProfile( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("c9d3d4d19541e54e09bc7bb368f2f97abc698620b1132fbc08d27f1001b95348") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -1950,6 +2452,29 @@ public open class CfnUserProfile( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the JupyterServerApp. + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnUserProfile.JupyterServerAppSettingsProperty = cdkBuilder.build() @@ -1957,7 +2482,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.JupyterServerAppSettingsProperty, - ) : CdkObject(cdkObject), JupyterServerAppSettingsProperty { + ) : CdkObject(cdkObject), + JupyterServerAppSettingsProperty { /** * The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image * used by the JupyterServer app. @@ -1965,6 +2491,21 @@ public open class CfnUserProfile( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterserverappsettings.html#cfn-sagemaker-userprofile-jupyterserverappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the + * JupyterServerApp. + * + * If you use this parameter, the `DefaultResourceSpec` parameter is also required. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-jupyterserverappsettings.html#cfn-sagemaker-userprofile-jupyterserverappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -2004,9 +2545,11 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build(); * ``` * @@ -2034,6 +2577,19 @@ public open class CfnUserProfile( */ public fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-kernelgatewayappsettings.html#cfn-sagemaker-userprofile-kernelgatewayappsettings-lifecycleconfigarns) + */ + public fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() + /** * A builder for [KernelGatewayAppSettingsProperty] */ @@ -2088,6 +2644,22 @@ public open class CfnUserProfile( @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("022649f98f5cda55073bad04f6fc522085ccdef224b56a15e01a99347bff0a30") public fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(lifecycleConfigArns: List) + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + public fun lifecycleConfigArns(vararg lifecycleConfigArns: String) } private class BuilderImpl : Builder { @@ -2157,6 +2729,25 @@ public open class CfnUserProfile( fun defaultResourceSpec(defaultResourceSpec: ResourceSpecProperty.Builder.() -> Unit): Unit = defaultResourceSpec(ResourceSpecProperty(defaultResourceSpec)) + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(lifecycleConfigArns: List) { + cdkBuilder.lifecycleConfigArns(lifecycleConfigArns) + } + + /** + * @param lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations + * attached to the the user profile or domain. + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + */ + override fun lifecycleConfigArns(vararg lifecycleConfigArns: String): Unit = + lifecycleConfigArns(lifecycleConfigArns.toList()) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnUserProfile.KernelGatewayAppSettingsProperty = cdkBuilder.build() @@ -2164,7 +2755,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.KernelGatewayAppSettingsProperty, - ) : CdkObject(cdkObject), KernelGatewayAppSettingsProperty { + ) : CdkObject(cdkObject), + KernelGatewayAppSettingsProperty { /** * A list of custom SageMaker images that are configured to run as a KernelGateway app. * @@ -2185,6 +2777,19 @@ public open class CfnUserProfile( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-kernelgatewayappsettings.html#cfn-sagemaker-userprofile-kernelgatewayappsettings-defaultresourcespec) */ override fun defaultResourceSpec(): Any? = unwrap(this).getDefaultResourceSpec() + + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user + * profile or domain. + * + * + * To remove a Lifecycle Config, you must set `LifecycleConfigArns` to an empty list. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-kernelgatewayappsettings.html#cfn-sagemaker-userprofile-kernelgatewayappsettings-lifecycleconfigarns) + */ + override fun lifecycleConfigArns(): List = unwrap(this).getLifecycleConfigArns() ?: + emptyList() } public companion object { @@ -2292,7 +2897,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.RStudioServerProAppSettingsProperty, - ) : CdkObject(cdkObject), RStudioServerProAppSettingsProperty { + ) : CdkObject(cdkObject), + RStudioServerProAppSettingsProperty { /** * Indicates whether the current user has access to the `RStudioServerPro` app. * @@ -2342,6 +2948,7 @@ public open class CfnUserProfile( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * ResourceSpecProperty resourceSpecProperty = ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build(); @@ -2364,6 +2971,13 @@ public open class CfnUserProfile( */ public fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-resourcespec.html#cfn-sagemaker-userprofile-resourcespec-lifecycleconfigarn) + */ + public fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * @@ -2393,6 +3007,12 @@ public open class CfnUserProfile( */ public fun instanceType(instanceType: String) + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + public fun lifecycleConfigArn(lifecycleConfigArn: String) + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -2421,6 +3041,14 @@ public open class CfnUserProfile( cdkBuilder.instanceType(instanceType) } + /** + * @param lifecycleConfigArn The Amazon Resource Name (ARN) of the Lifecycle Configuration + * attached to the Resource. + */ + override fun lifecycleConfigArn(lifecycleConfigArn: String) { + cdkBuilder.lifecycleConfigArn(lifecycleConfigArn) + } + /** * @param sageMakerImageArn The ARN of the SageMaker image that the image version belongs to. */ @@ -2442,7 +3070,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.ResourceSpecProperty, - ) : CdkObject(cdkObject), ResourceSpecProperty { + ) : CdkObject(cdkObject), + ResourceSpecProperty { /** * The instance type that the image version runs on. * @@ -2457,6 +3086,13 @@ public open class CfnUserProfile( */ override fun instanceType(): String? = unwrap(this).getInstanceType() + /** + * The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-resourcespec.html#cfn-sagemaker-userprofile-resourcespec-lifecycleconfigarn) + */ + override fun lifecycleConfigArn(): String? = unwrap(this).getLifecycleConfigArn() + /** * The ARN of the SageMaker image that the image version belongs to. * @@ -2602,7 +3238,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.SharingSettingsProperty, - ) : CdkObject(cdkObject), SharingSettingsProperty { + ) : CdkObject(cdkObject), + SharingSettingsProperty { /** * Whether to include the notebook cell output when sharing the notebook. * @@ -2647,6 +3284,158 @@ public open class CfnUserProfile( } } + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied on + * a domain level. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sagemaker.*; + * StudioWebPortalSettingsProperty studioWebPortalSettingsProperty = + * StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-studiowebportalsettings.html) + */ + public interface StudioWebPortalSettingsProperty { + /** + * The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-studiowebportalsettings.html#cfn-sagemaker-userprofile-studiowebportalsettings-hiddenapptypes) + */ + public fun hiddenAppTypes(): List = unwrap(this).getHiddenAppTypes() ?: emptyList() + + /** + * The machine learning tools that are hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-studiowebportalsettings.html#cfn-sagemaker-userprofile-studiowebportalsettings-hiddenmltools) + */ + public fun hiddenMlTools(): List = unwrap(this).getHiddenMlTools() ?: emptyList() + + /** + * A builder for [StudioWebPortalSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + public fun hiddenAppTypes(hiddenAppTypes: List) + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + public fun hiddenAppTypes(vararg hiddenAppTypes: String) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + public fun hiddenMlTools(hiddenMlTools: List) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + public fun hiddenMlTools(vararg hiddenMlTools: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty.Builder + = + software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty.builder() + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + override fun hiddenAppTypes(hiddenAppTypes: List) { + cdkBuilder.hiddenAppTypes(hiddenAppTypes) + } + + /** + * @param hiddenAppTypes The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + */ + override fun hiddenAppTypes(vararg hiddenAppTypes: String): Unit = + hiddenAppTypes(hiddenAppTypes.toList()) + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + override fun hiddenMlTools(hiddenMlTools: List) { + cdkBuilder.hiddenMlTools(hiddenMlTools) + } + + /** + * @param hiddenMlTools The machine learning tools that are hidden from the Studio left + * navigation pane. + */ + override fun hiddenMlTools(vararg hiddenMlTools: String): Unit = + hiddenMlTools(hiddenMlTools.toList()) + + public fun build(): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty, + ) : CdkObject(cdkObject), + StudioWebPortalSettingsProperty { + /** + * The [Applications supported in + * Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-apps.html) that are + * hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-studiowebportalsettings.html#cfn-sagemaker-userprofile-studiowebportalsettings-hiddenapptypes) + */ + override fun hiddenAppTypes(): List = unwrap(this).getHiddenAppTypes() ?: emptyList() + + /** + * The machine learning tools that are hidden from the Studio left navigation pane. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-studiowebportalsettings.html#cfn-sagemaker-userprofile-studiowebportalsettings-hiddenmltools) + */ + override fun hiddenMlTools(): List = unwrap(this).getHiddenMlTools() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StudioWebPortalSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty): + StudioWebPortalSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? + StudioWebPortalSettingsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: StudioWebPortalSettingsProperty): + software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sagemaker.CfnUserProfile.StudioWebPortalSettingsProperty + } + } + /** * A collection of settings that apply to users of Amazon SageMaker Studio. * @@ -2668,6 +3457,14 @@ public open class CfnUserProfile( * import io.cloudshiftdev.awscdk.services.sagemaker.*; * UserSettingsProperty userSettingsProperty = UserSettingsProperty.builder() * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -2676,6 +3473,7 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -2695,6 +3493,14 @@ public open class CfnUserProfile( * .defaultLandingUri("defaultLandingUri") * .executionRole("executionRole") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -2706,6 +3512,7 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -2714,9 +3521,11 @@ public open class CfnUserProfile( * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -2727,9 +3536,11 @@ public open class CfnUserProfile( * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rStudioServerProAppSettings(RStudioServerProAppSettingsProperty.builder() * .accessStatus("accessStatus") @@ -2748,6 +3559,10 @@ public open class CfnUserProfile( * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build(); * ``` * @@ -2866,6 +3681,16 @@ public open class CfnUserProfile( */ public fun studioWebPortal(): String? = unwrap(this).getStudioWebPortal() + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-usersettings.html#cfn-sagemaker-userprofile-usersettings-studiowebportalsettings) + */ + public fun studioWebPortalSettings(): Any? = unwrap(this).getStudioWebPortalSettings() + /** * A builder for [UserSettingsProperty] */ @@ -3094,6 +3919,30 @@ public open class CfnUserProfile( * default experience for the domain. */ public fun studioWebPortal(studioWebPortal: String) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + public fun studioWebPortalSettings(studioWebPortalSettings: IResolvable) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + public fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty) + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1a5f3b8aa827421c1c5f3236a4f7eed67dc78a0e858b7492865f030410b3297") + public + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -3382,6 +4231,36 @@ public open class CfnUserProfile( cdkBuilder.studioWebPortal(studioWebPortal) } + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + override fun studioWebPortalSettings(studioWebPortalSettings: IResolvable) { + cdkBuilder.studioWebPortalSettings(studioWebPortalSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + override + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty) { + cdkBuilder.studioWebPortalSettings(studioWebPortalSettings.let(StudioWebPortalSettingsProperty.Companion::unwrap)) + } + + /** + * @param studioWebPortalSettings Studio settings. + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1a5f3b8aa827421c1c5f3236a4f7eed67dc78a0e858b7492865f030410b3297") + override + fun studioWebPortalSettings(studioWebPortalSettings: StudioWebPortalSettingsProperty.Builder.() -> Unit): + Unit = studioWebPortalSettings(StudioWebPortalSettingsProperty(studioWebPortalSettings)) + public fun build(): software.amazon.awscdk.services.sagemaker.CfnUserProfile.UserSettingsProperty = cdkBuilder.build() @@ -3389,7 +4268,8 @@ public open class CfnUserProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfile.UserSettingsProperty, - ) : CdkObject(cdkObject), UserSettingsProperty { + ) : CdkObject(cdkObject), + UserSettingsProperty { /** * The Code Editor application settings. * @@ -3502,6 +4382,16 @@ public open class CfnUserProfile( * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-usersettings.html#cfn-sagemaker-userprofile-usersettings-studiowebportal) */ override fun studioWebPortal(): String? = unwrap(this).getStudioWebPortal() + + /** + * Studio settings. + * + * If these settings are applied on a user level, they take priority over the settings applied + * on a domain level. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-usersettings.html#cfn-sagemaker-userprofile-usersettings-studiowebportalsettings) + */ + override fun studioWebPortalSettings(): Any? = unwrap(this).getStudioWebPortalSettings() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfileProps.kt index 83573799ba..0da1d9798b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnUserProfileProps.kt @@ -34,6 +34,14 @@ import kotlin.jvm.JvmName * .build())) * .userSettings(UserSettingsProperty.builder() * .codeEditorAppSettings(CodeEditorAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .customImages(List.of(CustomImageProperty.builder() * .appImageConfigName("appImageConfigName") * .imageName("imageName") @@ -42,6 +50,7 @@ import kotlin.jvm.JvmName * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -61,6 +70,14 @@ import kotlin.jvm.JvmName * .defaultLandingUri("defaultLandingUri") * .executionRole("executionRole") * .jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder() + * .appLifecycleManagement(AppLifecycleManagementProperty.builder() + * .idleSettings(IdleSettingsProperty.builder() + * .idleTimeoutInMinutes(123) + * .lifecycleManagement("lifecycleManagement") + * .maxIdleTimeoutInMinutes(123) + * .minIdleTimeoutInMinutes(123) + * .build()) + * .build()) * .codeRepositories(List.of(CodeRepositoryProperty.builder() * .repositoryUrl("repositoryUrl") * .build())) @@ -72,6 +89,7 @@ import kotlin.jvm.JvmName * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) @@ -80,9 +98,11 @@ import kotlin.jvm.JvmName * .jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder() * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder() * .customImages(List.of(CustomImageProperty.builder() @@ -93,9 +113,11 @@ import kotlin.jvm.JvmName * .build())) * .defaultResourceSpec(ResourceSpecProperty.builder() * .instanceType("instanceType") + * .lifecycleConfigArn("lifecycleConfigArn") * .sageMakerImageArn("sageMakerImageArn") * .sageMakerImageVersionArn("sageMakerImageVersionArn") * .build()) + * .lifecycleConfigArns(List.of("lifecycleConfigArns")) * .build()) * .rStudioServerProAppSettings(RStudioServerProAppSettingsProperty.builder() * .accessStatus("accessStatus") @@ -114,6 +136,10 @@ import kotlin.jvm.JvmName * .build()) * .build()) * .studioWebPortal("studioWebPortal") + * .studioWebPortalSettings(StudioWebPortalSettingsProperty.builder() + * .hiddenAppTypes(List.of("hiddenAppTypes")) + * .hiddenMlTools(List.of("hiddenMlTools")) + * .build()) * .build()) * .build(); * ``` @@ -343,7 +369,8 @@ public interface CfnUserProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnUserProfileProps, - ) : CdkObject(cdkObject), CfnUserProfileProps { + ) : CdkObject(cdkObject), + CfnUserProfileProps { /** * The domain ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteam.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteam.kt index 10fcadc662..d5da7f2d47 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteam.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteam.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkteam( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteam, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sagemaker.CfnWorkteam(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -605,7 +607,8 @@ public open class CfnWorkteam( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteam.CognitoMemberDefinitionProperty, - ) : CdkObject(cdkObject), CognitoMemberDefinitionProperty { + ) : CdkObject(cdkObject), + CognitoMemberDefinitionProperty { /** * An identifier for an application client. * @@ -824,7 +827,8 @@ public open class CfnWorkteam( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteam.MemberDefinitionProperty, - ) : CdkObject(cdkObject), MemberDefinitionProperty { + ) : CdkObject(cdkObject), + MemberDefinitionProperty { /** * The Amazon Cognito user group that is part of the work team. * @@ -921,7 +925,8 @@ public open class CfnWorkteam( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteam.NotificationConfigurationProperty, - ) : CdkObject(cdkObject), NotificationConfigurationProperty { + ) : CdkObject(cdkObject), + NotificationConfigurationProperty { /** * The ARN for the Amazon SNS topic to which notifications should be published. * @@ -1018,7 +1023,8 @@ public open class CfnWorkteam( private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteam.OidcMemberDefinitionProperty, - ) : CdkObject(cdkObject), OidcMemberDefinitionProperty { + ) : CdkObject(cdkObject), + OidcMemberDefinitionProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-workteam-oidcmemberdefinition.html#cfn-sagemaker-workteam-oidcmemberdefinition-oidcgroups) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteamProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteamProps.kt index c64c8d94db..4e0c864d76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteamProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/CfnWorkteamProps.kt @@ -279,7 +279,8 @@ public interface CfnWorkteamProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.CfnWorkteamProps, - ) : CdkObject(cdkObject), CfnWorkteamProps { + ) : CdkObject(cdkObject), + CfnWorkteamProps { /** * A description of the work team. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IEndpoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IEndpoint.kt index 7f6f1237bd..5e5da0587d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IEndpoint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IEndpoint.kt @@ -36,7 +36,8 @@ public interface IEndpoint : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.IEndpoint, - ) : CdkObject(cdkObject), IEndpoint { + ) : CdkObject(cdkObject), + IEndpoint { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IPipeline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IPipeline.kt index 6caf7e21c7..bcd1a72b6b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IPipeline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sagemaker/IPipeline.kt @@ -36,7 +36,8 @@ public interface IPipeline : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.sagemaker.IPipeline, - ) : CdkObject(cdkObject), IPipeline { + ) : CdkObject(cdkObject), + IPipeline { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApi.kt index 5a4304bef9..93af8883c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApi.kt @@ -103,7 +103,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApi( cdkObject: software.amazon.awscdk.services.sam.CfnApi, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1413,7 +1415,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.AccessLogSettingProperty, - ) : CdkObject(cdkObject), AccessLogSettingProperty { + ) : CdkObject(cdkObject), + AccessLogSettingProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-accesslogsetting.html#cfn-serverless-api-accesslogsetting-destinationarn) */ @@ -1544,7 +1547,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.AuthProperty, - ) : CdkObject(cdkObject), AuthProperty { + ) : CdkObject(cdkObject), + AuthProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-auth.html#cfn-serverless-api-auth-adddefaultauthorizertocorspreflight) */ @@ -1705,7 +1709,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.CanarySettingProperty, - ) : CdkObject(cdkObject), CanarySettingProperty { + ) : CdkObject(cdkObject), + CanarySettingProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-canarysetting.html#cfn-serverless-api-canarysetting-deploymentid) */ @@ -1878,7 +1883,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.CorsConfigurationProperty, - ) : CdkObject(cdkObject), CorsConfigurationProperty { + ) : CdkObject(cdkObject), + CorsConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-corsconfiguration.html#cfn-serverless-api-corsconfiguration-allowcredentials) */ @@ -2177,7 +2183,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.DomainConfigurationProperty, - ) : CdkObject(cdkObject), DomainConfigurationProperty { + ) : CdkObject(cdkObject), + DomainConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-domainconfiguration.html#cfn-serverless-api-domainconfiguration-basepath) */ @@ -2317,7 +2324,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.EndpointConfigurationProperty, - ) : CdkObject(cdkObject), EndpointConfigurationProperty { + ) : CdkObject(cdkObject), + EndpointConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-endpointconfiguration.html#cfn-serverless-api-endpointconfiguration-type) */ @@ -2415,7 +2423,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.MutualTlsAuthenticationProperty, - ) : CdkObject(cdkObject), MutualTlsAuthenticationProperty { + ) : CdkObject(cdkObject), + MutualTlsAuthenticationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-mutualtlsauthentication.html#cfn-serverless-api-mutualtlsauthentication-truststoreuri) */ @@ -2591,7 +2600,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.Route53ConfigurationProperty, - ) : CdkObject(cdkObject), Route53ConfigurationProperty { + ) : CdkObject(cdkObject), + Route53ConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-route53configuration.html#cfn-serverless-api-route53configuration-distributeddomainname) */ @@ -2720,7 +2730,8 @@ public open class CfnApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApi.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-api-s3location.html#cfn-serverless-api-s3location-bucket) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApiProps.kt index 1cdc35c4d3..3085acfd57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApiProps.kt @@ -842,7 +842,8 @@ public interface CfnApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApiProps, - ) : CdkObject(cdkObject), CfnApiProps { + ) : CdkObject(cdkObject), + CfnApiProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-api.html#cfn-serverless-api-accesslogsetting) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplication.kt index c075a7e522..89098d60d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplication.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.sam.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -422,7 +424,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApplication.ApplicationLocationProperty, - ) : CdkObject(cdkObject), ApplicationLocationProperty { + ) : CdkObject(cdkObject), + ApplicationLocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-application-applicationlocation.html#cfn-serverless-application-applicationlocation-applicationid) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplicationProps.kt index 5d811336b7..7e38c572cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnApplicationProps.kt @@ -200,7 +200,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-application.html#cfn-serverless-application-location) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunction.kt index c8f1477887..587b1bba97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunction.kt @@ -131,7 +131,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnFunction( cdkObject: software.amazon.awscdk.services.sam.CfnFunction, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sam.CfnFunction(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1856,7 +1858,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.AlexaSkillEventProperty, - ) : CdkObject(cdkObject), AlexaSkillEventProperty { + ) : CdkObject(cdkObject), + AlexaSkillEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-alexaskillevent.html#cfn-serverless-function-alexaskillevent-skillid) */ @@ -2121,7 +2124,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.ApiEventProperty, - ) : CdkObject(cdkObject), ApiEventProperty { + ) : CdkObject(cdkObject), + ApiEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-auth) */ @@ -2336,7 +2340,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.AuthProperty, - ) : CdkObject(cdkObject), AuthProperty { + ) : CdkObject(cdkObject), + AuthProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-auth.html#cfn-serverless-function-auth-apikeyrequired) */ @@ -2745,7 +2750,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.AuthResourcePolicyProperty, - ) : CdkObject(cdkObject), AuthResourcePolicyProperty { + ) : CdkObject(cdkObject), + AuthResourcePolicyProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-authresourcepolicy.html#cfn-serverless-function-authresourcepolicy-awsaccountblacklist) */ @@ -2879,7 +2885,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.BucketSAMPTProperty, - ) : CdkObject(cdkObject), BucketSAMPTProperty { + ) : CdkObject(cdkObject), + BucketSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-bucketsampt.html#cfn-serverless-function-bucketsampt-bucketname) */ @@ -2993,7 +3000,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.CloudWatchEventEventProperty, - ) : CdkObject(cdkObject), CloudWatchEventEventProperty { + ) : CdkObject(cdkObject), + CloudWatchEventEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-cloudwatcheventevent.html#cfn-serverless-function-cloudwatcheventevent-input) */ @@ -3096,7 +3104,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.CloudWatchLogsEventProperty, - ) : CdkObject(cdkObject), CloudWatchLogsEventProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-cloudwatchlogsevent.html#cfn-serverless-function-cloudwatchlogsevent-filterpattern) */ @@ -3193,7 +3202,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.CognitoEventProperty, - ) : CdkObject(cdkObject), CognitoEventProperty { + ) : CdkObject(cdkObject), + CognitoEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-cognitoevent.html#cfn-serverless-function-cognitoevent-trigger) */ @@ -3272,7 +3282,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.CollectionSAMPTProperty, - ) : CdkObject(cdkObject), CollectionSAMPTProperty { + ) : CdkObject(cdkObject), + CollectionSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-collectionsampt.html#cfn-serverless-function-collectionsampt-collectionid) */ @@ -3431,7 +3442,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.CorsConfigurationProperty, - ) : CdkObject(cdkObject), CorsConfigurationProperty { + ) : CdkObject(cdkObject), + CorsConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-allowcredentials) */ @@ -3543,7 +3555,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DeadLetterQueueProperty, - ) : CdkObject(cdkObject), DeadLetterQueueProperty { + ) : CdkObject(cdkObject), + DeadLetterQueueProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-deadletterqueue.html#cfn-serverless-function-deadletterqueue-targetarn) */ @@ -3748,7 +3761,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DeploymentPreferenceProperty, - ) : CdkObject(cdkObject), DeploymentPreferenceProperty { + ) : CdkObject(cdkObject), + DeploymentPreferenceProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-deploymentpreference.html#cfn-serverless-function-deploymentpreference-alarms) */ @@ -3873,7 +3887,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DestinationConfigProperty, - ) : CdkObject(cdkObject), DestinationConfigProperty { + ) : CdkObject(cdkObject), + DestinationConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-destinationconfig.html#cfn-serverless-function-destinationconfig-onfailure) */ @@ -3966,7 +3981,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DestinationProperty, - ) : CdkObject(cdkObject), DestinationProperty { + ) : CdkObject(cdkObject), + DestinationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-destination.html#cfn-serverless-function-destination-destination) */ @@ -4045,7 +4061,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DomainSAMPTProperty, - ) : CdkObject(cdkObject), DomainSAMPTProperty { + ) : CdkObject(cdkObject), + DomainSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-domainsampt.html#cfn-serverless-function-domainsampt-domainname) */ @@ -4341,7 +4358,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.DynamoDBEventProperty, - ) : CdkObject(cdkObject), DynamoDBEventProperty { + ) : CdkObject(cdkObject), + DynamoDBEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-dynamodbevent.html#cfn-serverless-function-dynamodbevent-batchsize) */ @@ -4443,7 +4461,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EmptySAMPTProperty, - ) : CdkObject(cdkObject), EmptySAMPTProperty + ) : CdkObject(cdkObject), + EmptySAMPTProperty public companion object { public operator fun invoke(block: Builder.() -> Unit = {}): EmptySAMPTProperty { @@ -4511,7 +4530,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EphemeralStorageProperty, - ) : CdkObject(cdkObject), EphemeralStorageProperty { + ) : CdkObject(cdkObject), + EphemeralStorageProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-ephemeralstorage.html#cfn-serverless-function-ephemeralstorage-size) */ @@ -4643,7 +4663,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EventBridgeRuleEventProperty, - ) : CdkObject(cdkObject), EventBridgeRuleEventProperty { + ) : CdkObject(cdkObject), + EventBridgeRuleEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-eventbridgeruleevent.html#cfn-serverless-function-eventbridgeruleevent-eventbusname) */ @@ -4808,7 +4829,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EventInvokeConfigProperty, - ) : CdkObject(cdkObject), EventInvokeConfigProperty { + ) : CdkObject(cdkObject), + EventInvokeConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-eventinvokeconfig.html#cfn-serverless-function-eventinvokeconfig-destinationconfig) */ @@ -4975,7 +4997,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EventInvokeDestinationConfigProperty, - ) : CdkObject(cdkObject), EventInvokeDestinationConfigProperty { + ) : CdkObject(cdkObject), + EventInvokeDestinationConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-eventinvokedestinationconfig.html#cfn-serverless-function-eventinvokedestinationconfig-onfailure) */ @@ -5453,7 +5476,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.EventSourceProperty, - ) : CdkObject(cdkObject), EventSourceProperty { + ) : CdkObject(cdkObject), + EventSourceProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-eventsource.html#cfn-serverless-function-eventsource-properties) */ @@ -5550,7 +5574,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.FileSystemConfigProperty, - ) : CdkObject(cdkObject), FileSystemConfigProperty { + ) : CdkObject(cdkObject), + FileSystemConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-filesystemconfig.html#cfn-serverless-function-filesystemconfig-arn) */ @@ -5643,7 +5668,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.FunctionEnvironmentProperty, - ) : CdkObject(cdkObject), FunctionEnvironmentProperty { + ) : CdkObject(cdkObject), + FunctionEnvironmentProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-functionenvironment.html#cfn-serverless-function-functionenvironment-variables) */ @@ -5717,7 +5743,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.FunctionSAMPTProperty, - ) : CdkObject(cdkObject), FunctionSAMPTProperty { + ) : CdkObject(cdkObject), + FunctionSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-functionsampt.html#cfn-serverless-function-functionsampt-functionname) */ @@ -5867,7 +5894,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.FunctionUrlConfigProperty, - ) : CdkObject(cdkObject), FunctionUrlConfigProperty { + ) : CdkObject(cdkObject), + FunctionUrlConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-functionurlconfig.html#cfn-serverless-function-functionurlconfig-authtype) */ @@ -5968,7 +5996,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.HooksProperty, - ) : CdkObject(cdkObject), HooksProperty { + ) : CdkObject(cdkObject), + HooksProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-hooks.html#cfn-serverless-function-hooks-posttraffic) */ @@ -6215,7 +6244,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.HttpApiEventProperty, - ) : CdkObject(cdkObject), HttpApiEventProperty { + ) : CdkObject(cdkObject), + HttpApiEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-httpapievent.html#cfn-serverless-function-httpapievent-apiid) */ @@ -6350,7 +6380,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.HttpApiFunctionAuthProperty, - ) : CdkObject(cdkObject), HttpApiFunctionAuthProperty { + ) : CdkObject(cdkObject), + HttpApiFunctionAuthProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-httpapifunctionauth.html#cfn-serverless-function-httpapifunctionauth-authorizationscopes) */ @@ -6449,7 +6480,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.IAMPolicyDocumentProperty, - ) : CdkObject(cdkObject), IAMPolicyDocumentProperty { + ) : CdkObject(cdkObject), + IAMPolicyDocumentProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-iampolicydocument.html#cfn-serverless-function-iampolicydocument-statement) */ @@ -6528,7 +6560,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.IdentitySAMPTProperty, - ) : CdkObject(cdkObject), IdentitySAMPTProperty { + ) : CdkObject(cdkObject), + IdentitySAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-identitysampt.html#cfn-serverless-function-identitysampt-identityname) */ @@ -6658,7 +6691,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.ImageConfigProperty, - ) : CdkObject(cdkObject), ImageConfigProperty { + ) : CdkObject(cdkObject), + ImageConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-imageconfig.html#cfn-serverless-function-imageconfig-command) */ @@ -6761,7 +6795,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.IoTRuleEventProperty, - ) : CdkObject(cdkObject), IoTRuleEventProperty { + ) : CdkObject(cdkObject), + IoTRuleEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-iotruleevent.html#cfn-serverless-function-iotruleevent-awsiotsqlversion) */ @@ -6840,7 +6875,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.KeySAMPTProperty, - ) : CdkObject(cdkObject), KeySAMPTProperty { + ) : CdkObject(cdkObject), + KeySAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-keysampt.html#cfn-serverless-function-keysampt-keyid) */ @@ -7010,7 +7046,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.KinesisEventProperty, - ) : CdkObject(cdkObject), KinesisEventProperty { + ) : CdkObject(cdkObject), + KinesisEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-kinesisevent.html#cfn-serverless-function-kinesisevent-batchsize) */ @@ -7105,7 +7142,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.LogGroupSAMPTProperty, - ) : CdkObject(cdkObject), LogGroupSAMPTProperty { + ) : CdkObject(cdkObject), + LogGroupSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-loggroupsampt.html#cfn-serverless-function-loggroupsampt-loggroupname) */ @@ -7179,7 +7217,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.ParameterNameSAMPTProperty, - ) : CdkObject(cdkObject), ParameterNameSAMPTProperty { + ) : CdkObject(cdkObject), + ParameterNameSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-parameternamesampt.html#cfn-serverless-function-parameternamesampt-parametername) */ @@ -7256,7 +7295,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.ProvisionedConcurrencyConfigProperty, - ) : CdkObject(cdkObject), ProvisionedConcurrencyConfigProperty { + ) : CdkObject(cdkObject), + ProvisionedConcurrencyConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-provisionedconcurrencyconfig.html#cfn-serverless-function-provisionedconcurrencyconfig-provisionedconcurrentexecutions) */ @@ -7332,7 +7372,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.QueueSAMPTProperty, - ) : CdkObject(cdkObject), QueueSAMPTProperty { + ) : CdkObject(cdkObject), + QueueSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-queuesampt.html#cfn-serverless-function-queuesampt-queuename) */ @@ -7496,7 +7537,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.RequestModelProperty, - ) : CdkObject(cdkObject), RequestModelProperty { + ) : CdkObject(cdkObject), + RequestModelProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-requestmodel.html#cfn-serverless-function-requestmodel-model) */ @@ -7627,7 +7669,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.RequestParameterProperty, - ) : CdkObject(cdkObject), RequestParameterProperty { + ) : CdkObject(cdkObject), + RequestParameterProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-requestparameter.html#cfn-serverless-function-requestparameter-caching) */ @@ -7802,7 +7845,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.RouteSettingsProperty, - ) : CdkObject(cdkObject), RouteSettingsProperty { + ) : CdkObject(cdkObject), + RouteSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-routesettings.html#cfn-serverless-function-routesettings-datatraceenabled) */ @@ -7967,7 +8011,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.S3EventProperty, - ) : CdkObject(cdkObject), S3EventProperty { + ) : CdkObject(cdkObject), + S3EventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-s3event.html#cfn-serverless-function-s3event-bucket) */ @@ -8074,7 +8119,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.S3KeyFilterProperty, - ) : CdkObject(cdkObject), S3KeyFilterProperty { + ) : CdkObject(cdkObject), + S3KeyFilterProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-s3keyfilter.html#cfn-serverless-function-s3keyfilter-rules) */ @@ -8166,7 +8212,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.S3KeyFilterRuleProperty, - ) : CdkObject(cdkObject), S3KeyFilterRuleProperty { + ) : CdkObject(cdkObject), + S3KeyFilterRuleProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-s3keyfilterrule.html#cfn-serverless-function-s3keyfilterrule-name) */ @@ -8282,7 +8329,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-s3location.html#cfn-serverless-function-s3location-bucket) */ @@ -8399,7 +8447,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.S3NotificationFilterProperty, - ) : CdkObject(cdkObject), S3NotificationFilterProperty { + ) : CdkObject(cdkObject), + S3NotificationFilterProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-s3notificationfilter.html#cfn-serverless-function-s3notificationfilter-s3key) */ @@ -10096,7 +10145,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.SAMPolicyTemplateProperty, - ) : CdkObject(cdkObject), SAMPolicyTemplateProperty { + ) : CdkObject(cdkObject), + SAMPolicyTemplateProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-sampolicytemplate.html#cfn-serverless-function-sampolicytemplate-amidescribepolicy) */ @@ -10342,7 +10392,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.SNSEventProperty, - ) : CdkObject(cdkObject), SNSEventProperty { + ) : CdkObject(cdkObject), + SNSEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-snsevent.html#cfn-serverless-function-snsevent-topic) */ @@ -10464,7 +10515,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.SQSEventProperty, - ) : CdkObject(cdkObject), SQSEventProperty { + ) : CdkObject(cdkObject), + SQSEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-sqsevent.html#cfn-serverless-function-sqsevent-batchsize) */ @@ -10632,7 +10684,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.ScheduleEventProperty, - ) : CdkObject(cdkObject), ScheduleEventProperty { + ) : CdkObject(cdkObject), + ScheduleEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-scheduleevent.html#cfn-serverless-function-scheduleevent-description) */ @@ -10726,7 +10779,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.SecretArnSAMPTProperty, - ) : CdkObject(cdkObject), SecretArnSAMPTProperty { + ) : CdkObject(cdkObject), + SecretArnSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-secretarnsampt.html#cfn-serverless-function-secretarnsampt-secretarn) */ @@ -10800,7 +10854,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.StateMachineSAMPTProperty, - ) : CdkObject(cdkObject), StateMachineSAMPTProperty { + ) : CdkObject(cdkObject), + StateMachineSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-statemachinesampt.html#cfn-serverless-function-statemachinesampt-statemachinename) */ @@ -10874,7 +10929,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.StreamSAMPTProperty, - ) : CdkObject(cdkObject), StreamSAMPTProperty { + ) : CdkObject(cdkObject), + StreamSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-streamsampt.html#cfn-serverless-function-streamsampt-streamname) */ @@ -10948,7 +11004,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.TableSAMPTProperty, - ) : CdkObject(cdkObject), TableSAMPTProperty { + ) : CdkObject(cdkObject), + TableSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-tablesampt.html#cfn-serverless-function-tablesampt-tablename) */ @@ -11039,7 +11096,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.TableStreamSAMPTProperty, - ) : CdkObject(cdkObject), TableStreamSAMPTProperty { + ) : CdkObject(cdkObject), + TableStreamSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-tablestreamsampt.html#cfn-serverless-function-tablestreamsampt-streamname) */ @@ -11118,7 +11176,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.TopicSAMPTProperty, - ) : CdkObject(cdkObject), TopicSAMPTProperty { + ) : CdkObject(cdkObject), + TopicSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-topicsampt.html#cfn-serverless-function-topicsampt-topicname) */ @@ -11230,7 +11289,8 @@ public open class CfnFunction( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunction.VpcConfigProperty, - ) : CdkObject(cdkObject), VpcConfigProperty { + ) : CdkObject(cdkObject), + VpcConfigProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-vpcconfig.html#cfn-serverless-function-vpcconfig-securitygroupids) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunctionProps.kt index c7fd726e98..dcbd5ac0e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnFunctionProps.kt @@ -1149,7 +1149,8 @@ public interface CfnFunctionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnFunctionProps, - ) : CdkObject(cdkObject), CfnFunctionProps { + ) : CdkObject(cdkObject), + CfnFunctionProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html#cfn-serverless-function-architectures) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApi.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApi.kt index 3707ac9c74..396a3bdfcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApi.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApi.kt @@ -93,7 +93,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHttpApi( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sam.CfnHttpApi(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1029,7 +1031,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.AccessLogSettingProperty, - ) : CdkObject(cdkObject), AccessLogSettingProperty { + ) : CdkObject(cdkObject), + AccessLogSettingProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-accesslogsetting.html#cfn-serverless-httpapi-accesslogsetting-destinationarn) */ @@ -1256,7 +1259,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.CorsConfigurationObjectProperty, - ) : CdkObject(cdkObject), CorsConfigurationObjectProperty { + ) : CdkObject(cdkObject), + CorsConfigurationObjectProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowcredentials) */ @@ -1374,7 +1378,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.HttpApiAuthProperty, - ) : CdkObject(cdkObject), HttpApiAuthProperty { + ) : CdkObject(cdkObject), + HttpApiAuthProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-httpapiauth.html#cfn-serverless-httpapi-httpapiauth-authorizers) */ @@ -1630,7 +1635,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.HttpApiDomainConfigurationProperty, - ) : CdkObject(cdkObject), HttpApiDomainConfigurationProperty { + ) : CdkObject(cdkObject), + HttpApiDomainConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-httpapidomainconfiguration.html#cfn-serverless-httpapi-httpapidomainconfiguration-basepath) */ @@ -1767,7 +1773,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.MutualTlsAuthenticationProperty, - ) : CdkObject(cdkObject), MutualTlsAuthenticationProperty { + ) : CdkObject(cdkObject), + MutualTlsAuthenticationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-mutualtlsauthentication.html#cfn-serverless-httpapi-mutualtlsauthentication-truststoreuri) */ @@ -1944,7 +1951,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.Route53ConfigurationProperty, - ) : CdkObject(cdkObject), Route53ConfigurationProperty { + ) : CdkObject(cdkObject), + Route53ConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-route53configuration.html#cfn-serverless-httpapi-route53configuration-distributeddomainname) */ @@ -2134,7 +2142,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.RouteSettingsProperty, - ) : CdkObject(cdkObject), RouteSettingsProperty { + ) : CdkObject(cdkObject), + RouteSettingsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-routesettings.html#cfn-serverless-httpapi-routesettings-datatraceenabled) */ @@ -2264,7 +2273,8 @@ public open class CfnHttpApi( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApi.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-s3location.html#cfn-serverless-httpapi-s3location-bucket) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApiProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApiProps.kt index 7e35a5ff9c..eaca176886 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApiProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnHttpApiProps.kt @@ -591,7 +591,8 @@ public interface CfnHttpApiProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnHttpApiProps, - ) : CdkObject(cdkObject), CfnHttpApiProps { + ) : CdkObject(cdkObject), + CfnHttpApiProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-accesslogsetting) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersion.kt index 7f2f182426..159fca77d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersion.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLayerVersion( cdkObject: software.amazon.awscdk.services.sam.CfnLayerVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sam.CfnLayerVersion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -441,7 +442,8 @@ public open class CfnLayerVersion( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnLayerVersion.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-layerversion-s3location.html#cfn-serverless-layerversion-s3location-bucket) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersionProps.kt index be20795f4f..a3fc1bc00b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnLayerVersionProps.kt @@ -203,7 +203,8 @@ public interface CfnLayerVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnLayerVersionProps, - ) : CdkObject(cdkObject), CfnLayerVersionProps { + ) : CdkObject(cdkObject), + CfnLayerVersionProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-layerversion.html#cfn-serverless-layerversion-compatibleruntimes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTable.kt index 6e16e16482..9e2b381412 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTable.kt @@ -54,7 +54,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSimpleTable( cdkObject: software.amazon.awscdk.services.sam.CfnSimpleTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sam.CfnSimpleTable(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -467,7 +469,8 @@ public open class CfnSimpleTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnSimpleTable.PrimaryKeyProperty, - ) : CdkObject(cdkObject), PrimaryKeyProperty { + ) : CdkObject(cdkObject), + PrimaryKeyProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-simpletable-primarykey.html#cfn-serverless-simpletable-primarykey-name) */ @@ -567,7 +570,8 @@ public open class CfnSimpleTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnSimpleTable.ProvisionedThroughputProperty, - ) : CdkObject(cdkObject), ProvisionedThroughputProperty { + ) : CdkObject(cdkObject), + ProvisionedThroughputProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-simpletable-provisionedthroughput.html#cfn-serverless-simpletable-provisionedthroughput-readcapacityunits) */ @@ -659,7 +663,8 @@ public open class CfnSimpleTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnSimpleTable.SSESpecificationProperty, - ) : CdkObject(cdkObject), SSESpecificationProperty { + ) : CdkObject(cdkObject), + SSESpecificationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-simpletable-ssespecification.html#cfn-serverless-simpletable-ssespecification-sseenabled) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTableProps.kt index 25e3c11e41..f15c5012b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnSimpleTableProps.kt @@ -232,7 +232,8 @@ public interface CfnSimpleTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnSimpleTableProps, - ) : CdkObject(cdkObject), CfnSimpleTableProps { + ) : CdkObject(cdkObject), + CfnSimpleTableProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-simpletable.html#cfn-serverless-simpletable-primarykey) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachine.kt index 4629602e0b..1d14c71e93 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachine.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStateMachine( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sam.CfnStateMachine(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -853,7 +855,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.ApiEventProperty, - ) : CdkObject(cdkObject), ApiEventProperty { + ) : CdkObject(cdkObject), + ApiEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-apievent.html#cfn-serverless-statemachine-apievent-method) */ @@ -995,7 +998,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.CloudWatchEventEventProperty, - ) : CdkObject(cdkObject), CloudWatchEventEventProperty { + ) : CdkObject(cdkObject), + CloudWatchEventEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-cloudwatcheventevent.html#cfn-serverless-statemachine-cloudwatcheventevent-eventbusname) */ @@ -1087,7 +1091,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.CloudWatchLogsLogGroupProperty, - ) : CdkObject(cdkObject), CloudWatchLogsLogGroupProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsLogGroupProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-cloudwatchlogsloggroup.html#cfn-serverless-statemachine-cloudwatchlogsloggroup-loggrouparn) */ @@ -1219,7 +1224,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.EventBridgeRuleEventProperty, - ) : CdkObject(cdkObject), EventBridgeRuleEventProperty { + ) : CdkObject(cdkObject), + EventBridgeRuleEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-eventbridgeruleevent.html#cfn-serverless-statemachine-eventbridgeruleevent-eventbusname) */ @@ -1439,7 +1445,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.EventSourceProperty, - ) : CdkObject(cdkObject), EventSourceProperty { + ) : CdkObject(cdkObject), + EventSourceProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-eventsource.html#cfn-serverless-statemachine-eventsource-properties) */ @@ -1518,7 +1525,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.FunctionSAMPTProperty, - ) : CdkObject(cdkObject), FunctionSAMPTProperty { + ) : CdkObject(cdkObject), + FunctionSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-functionsampt.html#cfn-serverless-statemachine-functionsampt-functionname) */ @@ -1611,7 +1619,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.IAMPolicyDocumentProperty, - ) : CdkObject(cdkObject), IAMPolicyDocumentProperty { + ) : CdkObject(cdkObject), + IAMPolicyDocumentProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-iampolicydocument.html#cfn-serverless-statemachine-iampolicydocument-statement) */ @@ -1721,7 +1730,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.LogDestinationProperty, - ) : CdkObject(cdkObject), LogDestinationProperty { + ) : CdkObject(cdkObject), + LogDestinationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-logdestination.html#cfn-serverless-statemachine-logdestination-cloudwatchlogsloggroup) */ @@ -1872,7 +1882,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-loggingconfiguration.html#cfn-serverless-statemachine-loggingconfiguration-destinations) */ @@ -1993,7 +2004,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-s3location.html#cfn-serverless-statemachine-s3location-bucket) */ @@ -2159,7 +2171,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.SAMPolicyTemplateProperty, - ) : CdkObject(cdkObject), SAMPolicyTemplateProperty { + ) : CdkObject(cdkObject), + SAMPolicyTemplateProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-sampolicytemplate.html#cfn-serverless-statemachine-sampolicytemplate-lambdainvokepolicy) */ @@ -2258,7 +2271,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.ScheduleEventProperty, - ) : CdkObject(cdkObject), ScheduleEventProperty { + ) : CdkObject(cdkObject), + ScheduleEventProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-scheduleevent.html#cfn-serverless-statemachine-scheduleevent-input) */ @@ -2338,7 +2352,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.StateMachineSAMPTProperty, - ) : CdkObject(cdkObject), StateMachineSAMPTProperty { + ) : CdkObject(cdkObject), + StateMachineSAMPTProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-statemachinesampt.html#cfn-serverless-statemachine-statemachinesampt-statemachinename) */ @@ -2426,7 +2441,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachine.TracingConfigurationProperty, - ) : CdkObject(cdkObject), TracingConfigurationProperty { + ) : CdkObject(cdkObject), + TracingConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-statemachine-tracingconfiguration.html#cfn-serverless-statemachine-tracingconfiguration-enabled) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachineProps.kt index e78d54e85f..e013b420ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sam/CfnStateMachineProps.kt @@ -462,7 +462,8 @@ public interface CfnStateMachineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sam.CfnStateMachineProps, - ) : CdkObject(cdkObject), CfnStateMachineProps { + ) : CdkObject(cdkObject), + CfnStateMachineProps { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-statemachine.html#cfn-serverless-statemachine-definition) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnSchedule.kt index 86219df4bb..0431296dad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnSchedule.kt @@ -136,7 +136,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSchedule( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -878,7 +879,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.AwsVpcConfigurationProperty, - ) : CdkObject(cdkObject), AwsVpcConfigurationProperty { + ) : CdkObject(cdkObject), + AwsVpcConfigurationProperty { /** * Specifies whether the task's elastic network interface receives a public IP address. * @@ -1047,7 +1049,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.CapacityProviderStrategyItemProperty, - ) : CdkObject(cdkObject), CapacityProviderStrategyItemProperty { + ) : CdkObject(cdkObject), + CapacityProviderStrategyItemProperty { /** * The base value designates how many tasks, at a minimum, to run on the specified capacity * provider. @@ -1162,7 +1165,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.DeadLetterConfigProperty, - ) : CdkObject(cdkObject), DeadLetterConfigProperty { + ) : CdkObject(cdkObject), + DeadLetterConfigProperty { /** * The Amazon Resource Name (ARN) of the SQS queue specified as the destination for the * dead-letter queue. @@ -1760,7 +1764,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.EcsParametersProperty, - ) : CdkObject(cdkObject), EcsParametersProperty { + ) : CdkObject(cdkObject), + EcsParametersProperty { /** * The capacity provider strategy to use for the task. * @@ -1991,7 +1996,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.EventBridgeParametersProperty, - ) : CdkObject(cdkObject), EventBridgeParametersProperty { + ) : CdkObject(cdkObject), + EventBridgeParametersProperty { /** * A free-form string, with a maximum of 128 characters, used to decide what fields to expect * in the event detail. @@ -2123,7 +2129,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.FlexibleTimeWindowProperty, - ) : CdkObject(cdkObject), FlexibleTimeWindowProperty { + ) : CdkObject(cdkObject), + FlexibleTimeWindowProperty { /** * The maximum time window during which a schedule can be invoked. * @@ -2231,7 +2238,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.KinesisParametersProperty, - ) : CdkObject(cdkObject), KinesisParametersProperty { + ) : CdkObject(cdkObject), + KinesisParametersProperty { /** * Specifies the shard to which EventBridge Scheduler sends the event. * @@ -2367,7 +2375,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.NetworkConfigurationProperty, - ) : CdkObject(cdkObject), NetworkConfigurationProperty { + ) : CdkObject(cdkObject), + NetworkConfigurationProperty { /** * Specifies the Amazon VPC subnets and security groups for the task, and whether a public IP * address is to be used. @@ -2495,7 +2504,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.PlacementConstraintProperty, - ) : CdkObject(cdkObject), PlacementConstraintProperty { + ) : CdkObject(cdkObject), + PlacementConstraintProperty { /** * A cluster query language expression to apply to the constraint. * @@ -2646,7 +2656,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.PlacementStrategyProperty, - ) : CdkObject(cdkObject), PlacementStrategyProperty { + ) : CdkObject(cdkObject), + PlacementStrategyProperty { /** * The field to apply the placement strategy against. * @@ -2779,7 +2790,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.RetryPolicyProperty, - ) : CdkObject(cdkObject), RetryPolicyProperty { + ) : CdkObject(cdkObject), + RetryPolicyProperty { /** * The maximum amount of time, in seconds, to continue to make retry attempts. * @@ -2893,7 +2905,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.SageMakerPipelineParameterProperty, - ) : CdkObject(cdkObject), SageMakerPipelineParameterProperty { + ) : CdkObject(cdkObject), + SageMakerPipelineParameterProperty { /** * Name of parameter to start execution of a SageMaker Model Building Pipeline. * @@ -3019,7 +3032,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.SageMakerPipelineParametersProperty, - ) : CdkObject(cdkObject), SageMakerPipelineParametersProperty { + ) : CdkObject(cdkObject), + SageMakerPipelineParametersProperty { /** * List of parameter names and values to use when executing the SageMaker Model Building * Pipeline. @@ -3108,7 +3122,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.SqsParametersProperty, - ) : CdkObject(cdkObject), SqsParametersProperty { + ) : CdkObject(cdkObject), + SqsParametersProperty { /** * The FIFO message group ID to use as the target. * @@ -3772,7 +3787,8 @@ public open class CfnSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnSchedule.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * The Amazon Resource Name (ARN) of the target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroup.kt index 3dd632c1c5..a71536078e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroup.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScheduleGroup( cdkObject: software.amazon.awscdk.services.scheduler.CfnScheduleGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.scheduler.CfnScheduleGroup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroupProps.kt index 390ab28f86..0ce4013bf1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleGroupProps.kt @@ -111,7 +111,8 @@ public interface CfnScheduleGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnScheduleGroupProps, - ) : CdkObject(cdkObject), CfnScheduleGroupProps { + ) : CdkObject(cdkObject), + CfnScheduleGroupProps { /** * The name of the schedule group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleProps.kt index 3e1adc03b4..11413a0662 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/scheduler/CfnScheduleProps.kt @@ -486,7 +486,8 @@ public interface CfnScheduleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.scheduler.CfnScheduleProps, - ) : CdkObject(cdkObject), CfnScheduleProps { + ) : CdkObject(cdkObject), + CfnScheduleProps { /** * The description you specify for the schedule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomain.kt index f1871ec538..36aac61829 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomain.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.sdb.CfnDomain, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sdb.CfnDomain(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomainProps.kt index a4e93b5190..ddfca37d86 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sdb/CfnDomainProps.kt @@ -59,7 +59,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sdb.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * Information about the SimpleDB domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/AttachedSecretOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/AttachedSecretOptions.kt index 4df25e05d5..c4bc9bb3d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/AttachedSecretOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/AttachedSecretOptions.kt @@ -57,7 +57,8 @@ public interface AttachedSecretOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.AttachedSecretOptions, - ) : CdkObject(cdkObject), AttachedSecretOptions { + ) : CdkObject(cdkObject), + AttachedSecretOptions { /** * The target to attach the secret to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicy.kt index 036cb5f706..1fa9fd87bc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicy.kt @@ -53,7 +53,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -71,7 +72,7 @@ public open class CfnResourcePolicy( ) /** - * + * The Arn of the secret. */ public open fun attrId(): String = unwrap(this).getAttrId() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicyProps.kt index aa66decd3c..efbe847fc7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnResourcePolicyProps.kt @@ -147,7 +147,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * Specifies whether to block resource-based policies that allow broad access to the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationSchedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationSchedule.kt index 0d2f988cd0..cb847a4985 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationSchedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationSchedule.kt @@ -27,6 +27,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * For the rotation function, you have two options: * * * You can create a new rotation function based on one of the [Secrets Manager rotation function @@ -78,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRotationSchedule( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnRotationSchedule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -231,6 +236,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -248,6 +257,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -265,6 +278,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -335,6 +352,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. @@ -400,6 +421,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -419,6 +444,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -438,6 +467,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) * @param hostedRotationLambda Creates a new Lambda rotation function based on one of the * [Secrets Manager rotation function @@ -513,6 +546,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. @@ -607,6 +644,10 @@ public open class CfnRotationSchedule( * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * Example: * * ``` @@ -1236,7 +1277,8 @@ public open class CfnRotationSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnRotationSchedule.HostedRotationLambdaProperty, - ) : CdkObject(cdkObject), HostedRotationLambdaProperty { + ) : CdkObject(cdkObject), + HostedRotationLambdaProperty { /** * A string of the characters that you don't want in the password. * @@ -1671,7 +1713,8 @@ public open class CfnRotationSchedule( private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnRotationSchedule.RotationRulesProperty, - ) : CdkObject(cdkObject), RotationRulesProperty { + ) : CdkObject(cdkObject), + RotationRulesProperty { /** * The number of days between automatic scheduled rotations of the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationScheduleProps.kt index 8494d41ac7..7b2147f738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnRotationScheduleProps.kt @@ -60,6 +60,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) */ public fun hostedRotationLambda(): Any? = unwrap(this).getHostedRotationLambda() @@ -97,6 +101,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. @@ -136,6 +144,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ public fun hostedRotationLambda(hostedRotationLambda: IResolvable) @@ -147,6 +159,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ public fun hostedRotationLambda(hostedRotationLambda: CfnRotationSchedule.HostedRotationLambdaProperty) @@ -159,6 +175,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fefc0177980977567cd24d7fe070e3c5ef0a0a7bb6703268147adbb62f31acbb") @@ -213,6 +233,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. @@ -259,6 +283,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ override fun hostedRotationLambda(hostedRotationLambda: IResolvable) { cdkBuilder.hostedRotationLambda(hostedRotationLambda.let(IResolvable.Companion::unwrap)) @@ -272,6 +300,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ override fun hostedRotationLambda(hostedRotationLambda: CfnRotationSchedule.HostedRotationLambdaProperty) { @@ -286,6 +318,10 @@ public interface CfnRotationScheduleProps { * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . + * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("fefc0177980977567cd24d7fe070e3c5ef0a0a7bb6703268147adbb62f31acbb") @@ -346,6 +382,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. @@ -393,7 +433,8 @@ public interface CfnRotationScheduleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnRotationScheduleProps, - ) : CdkObject(cdkObject), CfnRotationScheduleProps { + ) : CdkObject(cdkObject), + CfnRotationScheduleProps { /** * Creates a new Lambda rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) @@ -403,6 +444,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-hostedrotationlambda) */ override fun hostedRotationLambda(): Any? = unwrap(this).getHostedRotationLambda() @@ -440,6 +485,10 @@ public interface CfnRotationScheduleProps { * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To create a new rotation function based on one of the [Secrets Manager rotation function * templates](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html) * , specify `HostedRotationLambda` instead. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecret.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecret.kt index 4cc57a32f9..189b5c71cb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecret.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecret.kt @@ -32,16 +32,15 @@ import software.constructs.Construct as SoftwareConstructsConstruct * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * To retrieve a secret in a CloudFormation template, use a *dynamic reference* . For more * information, see [Retrieve a secret in an AWS CloudFormation * resource](https://docs.aws.amazon.com/secretsmanager/latest/userguide/cfn-example_reference-secret.html) * . * - * A common scenario is to first create a secret with `GenerateSecretString` , which generates a - * password, and then use a dynamic reference to retrieve the username and password from the secret to - * use as credentials for a new database. See the example *Creating a Redshift cluster and a secret for - * the admin credentials* . - * * For information about creating a secret in the console, see [Create a * secret](https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html) * . For information about creating a secret using the CLI or SDK, see @@ -90,7 +89,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecret( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecret, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.secretsmanager.CfnSecret(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -1156,7 +1157,8 @@ public open class CfnSecret( private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecret.GenerateSecretStringProperty, - ) : CdkObject(cdkObject), GenerateSecretStringProperty { + ) : CdkObject(cdkObject), + GenerateSecretStringProperty { /** * A string of the characters that you don't want in the password. * @@ -1347,7 +1349,8 @@ public open class CfnSecret( private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecret.ReplicaRegionProperty, - ) : CdkObject(cdkObject), ReplicaRegionProperty { + ) : CdkObject(cdkObject), + ReplicaRegionProperty { /** * The ARN, key ID, or alias of the KMS key to encrypt the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretProps.kt index a72904c64b..f558fb63c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretProps.kt @@ -580,7 +580,8 @@ public interface CfnSecretProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecretProps, - ) : CdkObject(cdkObject), CfnSecretProps { + ) : CdkObject(cdkObject), + CfnSecretProps { /** * The description of the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachment.kt index e5967369a6..bc1f547a62 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachment.kt @@ -22,10 +22,17 @@ import software.constructs.Construct as SoftwareConstructsConstruct * secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html) * . * + * When you remove a `SecretTargetAttachment` from a stack, Secrets Manager removes the database + * connection information from the secret with a `PutSecretValue` call. + * * For Amazon RDS master user credentials, see [AWS::RDS::DBCluster * MasterUserSecret](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html) * . * + * For Amazon Redshift admin user credentials, see + * [AWS::Redshift::Cluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html) + * . + * * Example: * * ``` @@ -44,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSecretTargetAttachment( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecretTargetAttachment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -146,8 +154,10 @@ public open class CfnSecretTargetAttachment( * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype) * @param targetType A string that defines the type of service or database associated with the @@ -198,8 +208,10 @@ public open class CfnSecretTargetAttachment( * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype) * @param targetType A string that defines the type of service or database associated with the diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachmentProps.kt index 6b9949c8f5..1299b220b2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/CfnSecretTargetAttachmentProps.kt @@ -55,8 +55,10 @@ public interface CfnSecretTargetAttachmentProps { * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype) */ @@ -89,8 +91,10 @@ public interface CfnSecretTargetAttachmentProps { * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster */ public fun targetType(targetType: String) } @@ -126,8 +130,10 @@ public interface CfnSecretTargetAttachmentProps { * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster */ override fun targetType(targetType: String) { cdkBuilder.targetType(targetType) @@ -140,7 +146,8 @@ public interface CfnSecretTargetAttachmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.CfnSecretTargetAttachmentProps, - ) : CdkObject(cdkObject), CfnSecretTargetAttachmentProps { + ) : CdkObject(cdkObject), + CfnSecretTargetAttachmentProps { /** * The ARN or name of the secret. * @@ -168,8 +175,10 @@ public interface CfnSecretTargetAttachmentProps { * * AWS::RDS::DBInstance * * AWS::RDS::DBCluster * * AWS::Redshift::Cluster + * * AWS::RedshiftServerless::Namespace * * AWS::DocDB::DBInstance * * AWS::DocDB::DBCluster + * * AWS::DocDBElastic::Cluster * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/HostedRotation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/HostedRotation.kt index b682db0c4c..2deb498880 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/HostedRotation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/HostedRotation.kt @@ -23,7 +23,8 @@ import kotlin.jvm.JvmName */ public open class HostedRotation( cdkObject: software.amazon.awscdk.services.secretsmanager.HostedRotation, -) : CdkObject(cdkObject), IConnectable { +) : CdkObject(cdkObject), + IConnectable { /** * Binds this hosted rotation to a secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecret.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecret.kt index 9032818dcb..92f7499924 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecret.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecret.kt @@ -151,7 +151,8 @@ public interface ISecret : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.ISecret, - ) : CdkObject(cdkObject), ISecret { + ) : CdkObject(cdkObject), + ISecret { /** * Adds a rotation schedule to the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretAttachmentTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretAttachmentTarget.kt index edfca28df3..734dcb3fe9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretAttachmentTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretAttachmentTarget.kt @@ -16,7 +16,8 @@ public interface ISecretAttachmentTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget, - ) : CdkObject(cdkObject), ISecretAttachmentTarget { + ) : CdkObject(cdkObject), + ISecretAttachmentTarget { /** * Renders the target specifications. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretTargetAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretTargetAttachment.kt index 9114f7bbf6..ce99e00e52 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretTargetAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ISecretTargetAttachment.kt @@ -30,7 +30,8 @@ public interface ISecretTargetAttachment : ISecret { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.ISecretTargetAttachment, - ) : CdkObject(cdkObject), ISecretTargetAttachment { + ) : CdkObject(cdkObject), + ISecretTargetAttachment { /** * Adds a rotation schedule to the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/MultiUserHostedRotationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/MultiUserHostedRotationOptions.kt index 375419b916..749f8e84c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/MultiUserHostedRotationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/MultiUserHostedRotationOptions.kt @@ -169,7 +169,8 @@ public interface MultiUserHostedRotationOptions : SingleUserHostedRotationOption private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.MultiUserHostedRotationOptions, - ) : CdkObject(cdkObject), MultiUserHostedRotationOptions { + ) : CdkObject(cdkObject), + MultiUserHostedRotationOptions { /** * A string of the characters that you don't want in the password. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ReplicaRegion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ReplicaRegion.kt index 5309a85ff5..d7a95b6bb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ReplicaRegion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ReplicaRegion.kt @@ -82,7 +82,8 @@ public interface ReplicaRegion { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.ReplicaRegion, - ) : CdkObject(cdkObject), ReplicaRegion { + ) : CdkObject(cdkObject), + ReplicaRegion { /** * The customer-managed encryption key to use for encrypting the secret value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ResourcePolicyProps.kt index 57470d3c0a..9696534619 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/ResourcePolicyProps.kt @@ -57,7 +57,8 @@ public interface ResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.ResourcePolicyProps, - ) : CdkObject(cdkObject), ResourcePolicyProps { + ) : CdkObject(cdkObject), + ResourcePolicyProps { /** * The secret to attach a resource-based permissions policy. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleOptions.kt index 21e048a5f3..713538b262 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleOptions.kt @@ -141,7 +141,8 @@ public interface RotationScheduleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.RotationScheduleOptions, - ) : CdkObject(cdkObject), RotationScheduleOptions { + ) : CdkObject(cdkObject), + RotationScheduleOptions { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleProps.kt index 4953a444c5..edb3ef6627 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/RotationScheduleProps.kt @@ -184,7 +184,8 @@ public interface RotationScheduleProps : RotationScheduleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.RotationScheduleProps, - ) : CdkObject(cdkObject), RotationScheduleProps { + ) : CdkObject(cdkObject), + RotationScheduleProps { /** * Specifies the number of days after the previous rotation before Secrets Manager triggers the * next automatic rotation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/Secret.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/Secret.kt index 9b878adb2e..4555ec364a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/Secret.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/Secret.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Secret( cdkObject: software.amazon.awscdk.services.secretsmanager.Secret, -) : Resource(cdkObject), ISecret { +) : Resource(cdkObject), + ISecret { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.secretsmanager.Secret(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttachmentTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttachmentTargetProps.kt index b85f310488..0958159ed4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttachmentTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttachmentTargetProps.kt @@ -75,7 +75,8 @@ public interface SecretAttachmentTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretAttachmentTargetProps, - ) : CdkObject(cdkObject), SecretAttachmentTargetProps { + ) : CdkObject(cdkObject), + SecretAttachmentTargetProps { /** * The id of the target to attach the secret to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttributes.kt index 844ac18c3b..39c9be420a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretAttributes.kt @@ -115,7 +115,8 @@ public interface SecretAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretAttributes, - ) : CdkObject(cdkObject), SecretAttributes { + ) : CdkObject(cdkObject), + SecretAttributes { /** * The encryption key that is used to encrypt the secret, unless the default SecretsManager key * is used. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretProps.kt index 365c87a3de..6ba1c5ba36 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretProps.kt @@ -436,7 +436,8 @@ public interface SecretProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretProps, - ) : CdkObject(cdkObject), SecretProps { + ) : CdkObject(cdkObject), + SecretProps { /** * An optional, human-friendly description of the secret. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationApplicationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationApplicationOptions.kt index aa1e9c4c39..359760cec2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationApplicationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationApplicationOptions.kt @@ -61,7 +61,8 @@ public interface SecretRotationApplicationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretRotationApplicationOptions, - ) : CdkObject(cdkObject), SecretRotationApplicationOptions { + ) : CdkObject(cdkObject), + SecretRotationApplicationOptions { /** * Whether the rotation application uses the mutli user scheme. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationProps.kt index 7960b2febc..78793db2e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretRotationProps.kt @@ -343,7 +343,8 @@ public interface SecretRotationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretRotationProps, - ) : CdkObject(cdkObject), SecretRotationProps { + ) : CdkObject(cdkObject), + SecretRotationProps { /** * The serverless application for the rotation. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretStringGenerator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretStringGenerator.kt index 380fbc51dd..fc933b5c5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretStringGenerator.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretStringGenerator.kt @@ -294,7 +294,8 @@ public interface SecretStringGenerator { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretStringGenerator, - ) : CdkObject(cdkObject), SecretStringGenerator { + ) : CdkObject(cdkObject), + SecretStringGenerator { /** * A string that includes characters that shouldn't be included in the generated password. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachment.kt index 44bb4a9be8..6848e7371f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachment.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SecretTargetAttachment( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretTargetAttachment, -) : Resource(cdkObject), ISecretTargetAttachment, ISecret { +) : Resource(cdkObject), + ISecretTargetAttachment, + ISecret { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachmentProps.kt index eea738e8a7..cbca94d21b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SecretTargetAttachmentProps.kt @@ -71,7 +71,8 @@ public interface SecretTargetAttachmentProps : AttachedSecretOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SecretTargetAttachmentProps, - ) : CdkObject(cdkObject), SecretTargetAttachmentProps { + ) : CdkObject(cdkObject), + SecretTargetAttachmentProps { /** * The secret to attach to the target. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SingleUserHostedRotationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SingleUserHostedRotationOptions.kt index efd3860985..5a0b69aa89 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SingleUserHostedRotationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/secretsmanager/SingleUserHostedRotationOptions.kt @@ -172,7 +172,8 @@ public interface SingleUserHostedRotationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.secretsmanager.SingleUserHostedRotationOptions, - ) : CdkObject(cdkObject), SingleUserHostedRotationOptions { + ) : CdkObject(cdkObject), + SingleUserHostedRotationOptions { /** * A string of the characters that you don't want in the password. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRule.kt index 7a99b626b0..2abeb87f3e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRule.kt @@ -235,9 +235,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .build()) * .description("description") - * .isTerminal(false) * .ruleName("ruleName") * .ruleOrder(123) + * // the properties below are optional + * .isTerminal(false) * .ruleStatus("ruleStatus") * .tags(Map.of( * "tagsKey", "tags")) @@ -248,12 +249,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAutomationRule( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { - public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : - this(software.amazon.awscdk.services.securityhub.CfnAutomationRule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), - id) - ) - +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -274,7 +272,7 @@ public open class CfnAutomationRule( * One or more actions to update finding fields if a finding matches the conditions specified in * `Criteria` . */ - public open fun actions(): Any? = unwrap(this).getActions() + public open fun actions(): Any = unwrap(this).getActions() /** * One or more actions to update finding fields if a finding matches the conditions specified in @@ -345,7 +343,7 @@ public open class CfnAutomationRule( * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, * Security Hub applies the rule action to the finding. */ - public open fun criteria(): Any? = unwrap(this).getCriteria() + public open fun criteria(): Any = unwrap(this).getCriteria() /** * A set of [AWS Security Finding Format @@ -384,7 +382,7 @@ public open class CfnAutomationRule( /** * A description of the rule. */ - public open fun description(): String? = unwrap(this).getDescription() + public open fun description(): String = unwrap(this).getDescription() /** * A description of the rule. @@ -427,7 +425,7 @@ public open class CfnAutomationRule( /** * The name of the rule. */ - public open fun ruleName(): String? = unwrap(this).getRuleName() + public open fun ruleName(): String = unwrap(this).getRuleName() /** * The name of the rule. @@ -440,7 +438,7 @@ public open class CfnAutomationRule( * An integer ranging from 1 to 1000 that represents the order in which the rule action is applied * to findings. */ - public open fun ruleOrder(): Number? = unwrap(this).getRuleOrder() + public open fun ruleOrder(): Number = unwrap(this).getRuleOrder() /** * An integer ranging from 1 to 1000 that represents the order in which the rule action is applied @@ -850,8 +848,8 @@ public open class CfnAutomationRule( } /** - * One or more actions to update finding fields if a finding matches the defined criteria of the - * rule. + * One or more actions that AWS Security Hub takes when a finding matches the defined criteria of + * a rule. * * Example: * @@ -902,12 +900,8 @@ public open class CfnAutomationRule( public fun findingFieldsUpdate(): Any /** - * Specifies that the rule action should update the `Types` finding field. - * - * The `Types` finding field classifies findings in the format of namespace/category/classifier. - * For more information, see [Types taxonomy for - * ASFF](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format-type-taxonomy.html) - * in the *AWS Security Hub User Guide* . + * Specifies the type of action that Security Hub takes when a finding matches the defined + * criteria of a rule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-automationrulesaction.html#cfn-securityhub-automationrule-automationrulesaction-type) */ @@ -941,11 +935,8 @@ public open class CfnAutomationRule( fun findingFieldsUpdate(findingFieldsUpdate: AutomationRulesFindingFieldsUpdateProperty.Builder.() -> Unit) /** - * @param type Specifies that the rule action should update the `Types` finding field. - * The `Types` finding field classifies findings in the format of - * namespace/category/classifier. For more information, see [Types taxonomy for - * ASFF](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format-type-taxonomy.html) - * in the *AWS Security Hub User Guide* . + * @param type Specifies the type of action that Security Hub takes when a finding matches the + * defined criteria of a rule. */ public fun type(type: String) } @@ -985,11 +976,8 @@ public open class CfnAutomationRule( findingFieldsUpdate(AutomationRulesFindingFieldsUpdateProperty(findingFieldsUpdate)) /** - * @param type Specifies that the rule action should update the `Types` finding field. - * The `Types` finding field classifies findings in the format of - * namespace/category/classifier. For more information, see [Types taxonomy for - * ASFF](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format-type-taxonomy.html) - * in the *AWS Security Hub User Guide* . + * @param type Specifies the type of action that Security Hub takes when a finding matches the + * defined criteria of a rule. */ override fun type(type: String) { cdkBuilder.type(type) @@ -1002,7 +990,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.AutomationRulesActionProperty, - ) : CdkObject(cdkObject), AutomationRulesActionProperty { + ) : CdkObject(cdkObject), + AutomationRulesActionProperty { /** * Specifies that the automation rule action is an update to a finding field. * @@ -1011,12 +1000,8 @@ public open class CfnAutomationRule( override fun findingFieldsUpdate(): Any = unwrap(this).getFindingFieldsUpdate() /** - * Specifies that the rule action should update the `Types` finding field. - * - * The `Types` finding field classifies findings in the format of - * namespace/category/classifier. For more information, see [Types taxonomy for - * ASFF](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format-type-taxonomy.html) - * in the *AWS Security Hub User Guide* . + * Specifies the type of action that Security Hub takes when a finding matches the defined + * criteria of a rule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-automationrulesaction.html#cfn-securityhub-automationrule-automationrulesaction-type) */ @@ -1411,7 +1396,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.AutomationRulesFindingFieldsUpdateProperty, - ) : CdkObject(cdkObject), AutomationRulesFindingFieldsUpdateProperty { + ) : CdkObject(cdkObject), + AutomationRulesFindingFieldsUpdateProperty { /** * The rule action updates the `Confidence` field of a finding. * @@ -4149,7 +4135,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.AutomationRulesFindingFiltersProperty, - ) : CdkObject(cdkObject), AutomationRulesFindingFiltersProperty { + ) : CdkObject(cdkObject), + AutomationRulesFindingFiltersProperty { /** * The AWS account ID in which a finding was generated. * @@ -4766,7 +4753,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.DateFilterProperty, - ) : CdkObject(cdkObject), DateFilterProperty { + ) : CdkObject(cdkObject), + DateFilterProperty { /** * A date range for the date filter. * @@ -4903,7 +4891,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.DateRangeProperty, - ) : CdkObject(cdkObject), DateRangeProperty { + ) : CdkObject(cdkObject), + DateRangeProperty { /** * A date range unit for the date filter. * @@ -5181,7 +5170,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.MapFilterProperty, - ) : CdkObject(cdkObject), MapFilterProperty { + ) : CdkObject(cdkObject), + MapFilterProperty { /** * The condition to apply to the key value when filtering Security Hub findings with a map * filter. @@ -5348,7 +5338,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.NoteUpdateProperty, - ) : CdkObject(cdkObject), NoteUpdateProperty { + ) : CdkObject(cdkObject), + NoteUpdateProperty { /** * The updated note text. * @@ -5483,7 +5474,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.NumberFilterProperty, - ) : CdkObject(cdkObject), NumberFilterProperty { + ) : CdkObject(cdkObject), + NumberFilterProperty { /** * The equal-to condition to be applied to a single field when querying for findings. * @@ -5607,7 +5599,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.RelatedFindingProperty, - ) : CdkObject(cdkObject), RelatedFindingProperty { + ) : CdkObject(cdkObject), + RelatedFindingProperty { /** * The product-generated identifier for a related finding. * @@ -5785,7 +5778,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.SeverityUpdateProperty, - ) : CdkObject(cdkObject), SeverityUpdateProperty { + ) : CdkObject(cdkObject), + SeverityUpdateProperty { /** * The severity value of the finding. The allowed values are the following. * @@ -6111,7 +6105,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.StringFilterProperty, - ) : CdkObject(cdkObject), StringFilterProperty { + ) : CdkObject(cdkObject), + StringFilterProperty { /** * The condition to apply to a string value when filtering Security Hub findings. * @@ -6326,7 +6321,8 @@ public open class CfnAutomationRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRule.WorkflowUpdateProperty, - ) : CdkObject(cdkObject), WorkflowUpdateProperty { + ) : CdkObject(cdkObject), + WorkflowUpdateProperty { /** * The status of the investigation into the finding. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRuleProps.kt index f6fa3d76cf..4e115113b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnAutomationRuleProps.kt @@ -222,9 +222,10 @@ import kotlin.jvm.JvmName * .build())) * .build()) * .description("description") - * .isTerminal(false) * .ruleName("ruleName") * .ruleOrder(123) + * // the properties below are optional + * .isTerminal(false) * .ruleStatus("ruleStatus") * .tags(Map.of( * "tagsKey", "tags")) @@ -240,7 +241,7 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-actions) */ - public fun actions(): Any? = unwrap(this).getActions() + public fun actions(): Any /** * A set of [AWS Security Finding Format @@ -251,14 +252,14 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-criteria) */ - public fun criteria(): Any? = unwrap(this).getCriteria() + public fun criteria(): Any /** * A description of the rule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-description) */ - public fun description(): String? = unwrap(this).getDescription() + public fun description(): String /** * Specifies whether a rule is the last to be applied with respect to a finding that matches the @@ -278,7 +279,7 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-rulename) */ - public fun ruleName(): String? = unwrap(this).getRuleName() + public fun ruleName(): String /** * An integer ranging from 1 to 1000 that represents the order in which the rule action is applied @@ -288,7 +289,7 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-ruleorder) */ - public fun ruleOrder(): Number? = unwrap(this).getRuleOrder() + public fun ruleOrder(): Number /** * Whether the rule is active after it is created. @@ -314,19 +315,19 @@ public interface CfnAutomationRuleProps { public interface Builder { /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ public fun actions(actions: IResolvable) /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ public fun actions(actions: List) /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ public fun actions(vararg actions: Any) @@ -335,7 +336,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ public fun criteria(criteria: IResolvable) @@ -344,7 +345,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ public fun criteria(criteria: CfnAutomationRule.AutomationRulesFindingFiltersProperty) @@ -353,7 +354,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b9fe65b2e87ea5657062360d44aa3b6c19213761055e0c7f0e2bedd11f44552") @@ -361,7 +362,7 @@ public interface CfnAutomationRuleProps { fun criteria(criteria: CfnAutomationRule.AutomationRulesFindingFiltersProperty.Builder.() -> Unit) /** - * @param description A description of the rule. + * @param description A description of the rule. */ public fun description(description: String) @@ -386,13 +387,13 @@ public interface CfnAutomationRuleProps { public fun isTerminal(isTerminal: IResolvable) /** - * @param ruleName The name of the rule. + * @param ruleName The name of the rule. */ public fun ruleName(ruleName: String) /** * @param ruleOrder An integer ranging from 1 to 1000 that represents the order in which the - * rule action is applied to findings. + * rule action is applied to findings. * Security Hub applies rules with lower values for this parameter first. */ public fun ruleOrder(ruleOrder: Number) @@ -417,7 +418,7 @@ public interface CfnAutomationRuleProps { /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ override fun actions(actions: IResolvable) { cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) @@ -425,7 +426,7 @@ public interface CfnAutomationRuleProps { /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ override fun actions(actions: List) { cdkBuilder.actions(actions.map{CdkObjectWrappers.unwrap(it)}) @@ -433,7 +434,7 @@ public interface CfnAutomationRuleProps { /** * @param actions One or more actions to update finding fields if a finding matches the - * conditions specified in `Criteria` . + * conditions specified in `Criteria` . */ override fun actions(vararg actions: Any): Unit = actions(actions.toList()) @@ -442,7 +443,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ override fun criteria(criteria: IResolvable) { cdkBuilder.criteria(criteria.let(IResolvable.Companion::unwrap)) @@ -453,7 +454,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ override fun criteria(criteria: CfnAutomationRule.AutomationRulesFindingFiltersProperty) { cdkBuilder.criteria(criteria.let(CfnAutomationRule.AutomationRulesFindingFiltersProperty.Companion::unwrap)) @@ -464,7 +465,7 @@ public interface CfnAutomationRuleProps { * (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) * finding field attributes and corresponding expected values that Security Hub uses to filter * findings. If a rule is enabled and a finding matches the criteria specified in this parameter, - * Security Hub applies the rule action to the finding. + * Security Hub applies the rule action to the finding. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("4b9fe65b2e87ea5657062360d44aa3b6c19213761055e0c7f0e2bedd11f44552") @@ -473,7 +474,7 @@ public interface CfnAutomationRuleProps { Unit = criteria(CfnAutomationRule.AutomationRulesFindingFiltersProperty(criteria)) /** - * @param description A description of the rule. + * @param description A description of the rule. */ override fun description(description: String) { cdkBuilder.description(description) @@ -504,7 +505,7 @@ public interface CfnAutomationRuleProps { } /** - * @param ruleName The name of the rule. + * @param ruleName The name of the rule. */ override fun ruleName(ruleName: String) { cdkBuilder.ruleName(ruleName) @@ -512,7 +513,7 @@ public interface CfnAutomationRuleProps { /** * @param ruleOrder An integer ranging from 1 to 1000 that represents the order in which the - * rule action is applied to findings. + * rule action is applied to findings. * Security Hub applies rules with lower values for this parameter first. */ override fun ruleOrder(ruleOrder: Number) { @@ -541,14 +542,15 @@ public interface CfnAutomationRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnAutomationRuleProps, - ) : CdkObject(cdkObject), CfnAutomationRuleProps { + ) : CdkObject(cdkObject), + CfnAutomationRuleProps { /** * One or more actions to update finding fields if a finding matches the conditions specified in * `Criteria` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-actions) */ - override fun actions(): Any? = unwrap(this).getActions() + override fun actions(): Any = unwrap(this).getActions() /** * A set of [AWS Security Finding Format @@ -559,14 +561,14 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-criteria) */ - override fun criteria(): Any? = unwrap(this).getCriteria() + override fun criteria(): Any = unwrap(this).getCriteria() /** * A description of the rule. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-description) */ - override fun description(): String? = unwrap(this).getDescription() + override fun description(): String = unwrap(this).getDescription() /** * Specifies whether a rule is the last to be applied with respect to a finding that matches the @@ -586,7 +588,7 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-rulename) */ - override fun ruleName(): String? = unwrap(this).getRuleName() + override fun ruleName(): String = unwrap(this).getRuleName() /** * An integer ranging from 1 to 1000 that represents the order in which the rule action is @@ -596,7 +598,7 @@ public interface CfnAutomationRuleProps { * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-automationrule.html#cfn-securityhub-automationrule-ruleorder) */ - override fun ruleOrder(): Number? = unwrap(this).getRuleOrder() + override fun ruleOrder(): Number = unwrap(this).getRuleOrder() /** * Whether the rule is active after it is created. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicy.kt new file mode 100644 index 0000000000..bc8049761c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicy.kt @@ -0,0 +1,1817 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::SecurityHub::ConfigurationPolicy` resource creates a central configuration policy with + * the defined settings. + * + * Only the AWS Security Hub delegated administrator can create this resource in the home Region. + * For more information, see [Central configuration in Security + * Hub](https://docs.aws.amazon.com/securityhub/latest/userguide/central-configuration-intro.html) in + * the *AWS Security Hub User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnConfigurationPolicy cfnConfigurationPolicy = CfnConfigurationPolicy.Builder.create(this, + * "MyCfnConfigurationPolicy") + * .configurationPolicy(PolicyProperty.builder() + * .securityHub(SecurityHubPolicyProperty.builder() + * .enabledStandardIdentifiers(List.of("enabledStandardIdentifiers")) + * .securityControlsConfiguration(SecurityControlsConfigurationProperty.builder() + * .disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers")) + * .enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers")) + * .securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build())) + * .build()) + * .serviceEnabled(false) + * .build()) + * .build()) + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html) + */ +public open class CfnConfigurationPolicy( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConfigurationPolicyProps, + ) : + this(software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnConfigurationPolicyProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConfigurationPolicyProps.Builder.() -> Unit, + ) : this(scope, id, CfnConfigurationPolicyProps(props) + ) + + /** + * The ARN of the configuration policy. + */ + public open fun attrArn(): String = unwrap(this).getAttrArn() + + /** + * The date and time, in UTC and ISO 8601 format. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The universally unique identifier (UUID) of the configuration policy. + * + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + */ + public open fun attrId(): String = unwrap(this).getAttrId() + + /** + * Indicates whether the service that the configuration policy applies to is enabled in the + * policy. + */ + public open fun attrServiceEnabled(): IResolvable = + unwrap(this).getAttrServiceEnabled().let(IResolvable::wrap) + + /** + * The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * An object that defines how AWS Security Hub is configured. + */ + public open fun configurationPolicy(): Any = unwrap(this).getConfigurationPolicy() + + /** + * An object that defines how AWS Security Hub is configured. + */ + public open fun configurationPolicy(`value`: IResolvable) { + unwrap(this).setConfigurationPolicy(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An object that defines how AWS Security Hub is configured. + */ + public open fun configurationPolicy(`value`: PolicyProperty) { + unwrap(this).setConfigurationPolicy(`value`.let(PolicyProperty.Companion::unwrap)) + } + + /** + * An object that defines how AWS Security Hub is configured. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("01507ee0aa6d191c1e7cedea555899d0e342b38088a9936f5eea1a8afa9e0418") + public open fun configurationPolicy(`value`: PolicyProperty.Builder.() -> Unit): Unit = + configurationPolicy(PolicyProperty(`value`)) + + /** + * The description of the configuration policy. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the configuration policy. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the configuration policy. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the configuration policy. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * User-defined tags associated with a configuration policy. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * User-defined tags associated with a configuration policy. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.securityhub.CfnConfigurationPolicy]. + */ + @CdkDslMarker + public interface Builder { + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + public fun configurationPolicy(configurationPolicy: IResolvable) + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + public fun configurationPolicy(configurationPolicy: PolicyProperty) + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("daccfdd6555fa43c95821cb6f7ceca433dd844820a79b5f14efaeeaa5afa46af") + public fun configurationPolicy(configurationPolicy: PolicyProperty.Builder.() -> Unit) + + /** + * The description of the configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-description) + * @param description The description of the configuration policy. + */ + public fun description(description: String) + + /** + * The name of the configuration policy. + * + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-name) + * @param name The name of the configuration policy. + */ + public fun name(name: String) + + /** + * User-defined tags associated with a configuration policy. + * + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in + * the *Security Hub user guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-tags) + * @param tags User-defined tags associated with a configuration policy. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.Builder = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.Builder.create(scope, id) + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + override fun configurationPolicy(configurationPolicy: IResolvable) { + cdkBuilder.configurationPolicy(configurationPolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + override fun configurationPolicy(configurationPolicy: PolicyProperty) { + cdkBuilder.configurationPolicy(configurationPolicy.let(PolicyProperty.Companion::unwrap)) + } + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("daccfdd6555fa43c95821cb6f7ceca433dd844820a79b5f14efaeeaa5afa46af") + override fun configurationPolicy(configurationPolicy: PolicyProperty.Builder.() -> Unit): Unit = + configurationPolicy(PolicyProperty(configurationPolicy)) + + /** + * The description of the configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-description) + * @param description The description of the configuration policy. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The name of the configuration policy. + * + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-name) + * @param name The name of the configuration policy. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * User-defined tags associated with a configuration policy. + * + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in + * the *Security Hub user guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-tags) + * @param tags User-defined tags associated with a configuration policy. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnConfigurationPolicy { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnConfigurationPolicy(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy): + CfnConfigurationPolicy = CfnConfigurationPolicy(cdkObject) + + internal fun unwrap(wrapped: CfnConfigurationPolicy): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy = wrapped.cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy + } + + /** + * An object that provides the current value of a security control parameter and identifies + * whether it has been customized. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * ParameterConfigurationProperty parameterConfigurationProperty = + * ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parameterconfiguration.html) + */ + public interface ParameterConfigurationProperty { + /** + * The current value of a control parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parameterconfiguration.html#cfn-securityhub-configurationpolicy-parameterconfiguration-value) + */ + public fun `value`(): Any? = unwrap(this).getValue() + + /** + * Identifies whether a control parameter uses a custom user-defined value or subscribes to the + * default AWS Security Hub behavior. + * + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific Security + * Hub default value, or the default behavior can be to ignore a specific parameter. When + * `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the `Value` + * field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parameterconfiguration.html#cfn-securityhub-configurationpolicy-parameterconfiguration-valuetype) + */ + public fun valueType(): String + + /** + * A builder for [ParameterConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param value The current value of a control parameter. + */ + public fun `value`(`value`: IResolvable) + + /** + * @param value The current value of a control parameter. + */ + public fun `value`(`value`: ParameterValueProperty) + + /** + * @param value The current value of a control parameter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f647e6b7b4e8aa51f4bdba729a3fe9b8c99069583f53f36590bbf99a328ef9c") + public fun `value`(`value`: ParameterValueProperty.Builder.() -> Unit) + + /** + * @param valueType Identifies whether a control parameter uses a custom user-defined value or + * subscribes to the default AWS Security Hub behavior. + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + */ + public fun valueType(valueType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty.builder() + + /** + * @param value The current value of a control parameter. + */ + override fun `value`(`value`: IResolvable) { + cdkBuilder.`value`(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param value The current value of a control parameter. + */ + override fun `value`(`value`: ParameterValueProperty) { + cdkBuilder.`value`(`value`.let(ParameterValueProperty.Companion::unwrap)) + } + + /** + * @param value The current value of a control parameter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f647e6b7b4e8aa51f4bdba729a3fe9b8c99069583f53f36590bbf99a328ef9c") + override fun `value`(`value`: ParameterValueProperty.Builder.() -> Unit): Unit = + `value`(ParameterValueProperty(`value`)) + + /** + * @param valueType Identifies whether a control parameter uses a custom user-defined value or + * subscribes to the default AWS Security Hub behavior. + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + */ + override fun valueType(valueType: String) { + cdkBuilder.valueType(valueType) + } + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty, + ) : CdkObject(cdkObject), + ParameterConfigurationProperty { + /** + * The current value of a control parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parameterconfiguration.html#cfn-securityhub-configurationpolicy-parameterconfiguration-value) + */ + override fun `value`(): Any? = unwrap(this).getValue() + + /** + * Identifies whether a control parameter uses a custom user-defined value or subscribes to + * the default AWS Security Hub behavior. + * + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parameterconfiguration.html#cfn-securityhub-configurationpolicy-parameterconfiguration-valuetype) + */ + override fun valueType(): String = unwrap(this).getValueType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParameterConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty): + ParameterConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ParameterConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParameterConfigurationProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterConfigurationProperty + } + } + + /** + * An object that includes the data type of a security control parameter and its current value. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * ParameterValueProperty parameterValueProperty = ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html) + */ + public interface ParameterValueProperty { + /** + * A control parameter that is a boolean. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-boolean) + */ + public fun booleanValue(): Any? = unwrap(this).getBooleanValue() + + /** + * A control parameter that is a double. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-double) + */ + public fun doubleValue(): Number? = unwrap(this).getDoubleValue() + + /** + * A control parameter that is a list of enums. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-enumlist) + */ + public fun enumList(): List = unwrap(this).getEnumList() ?: emptyList() + + /** + * A control parameter that is an enum. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-enum) + */ + public fun enumValue(): String? = unwrap(this).getEnumValue() + + /** + * A control parameter that is an integer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-integer) + */ + public fun integer(): Number? = unwrap(this).getInteger() + + /** + * A control parameter that is a list of integers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-integerlist) + */ + public fun integerList(): Any? = unwrap(this).getIntegerList() + + /** + * A control parameter that is a string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-string) + */ + public fun string(): String? = unwrap(this).getString() + + /** + * A control parameter that is a list of strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-stringlist) + */ + public fun stringList(): List = unwrap(this).getStringList() ?: emptyList() + + /** + * A builder for [ParameterValueProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param booleanValue A control parameter that is a boolean. + */ + public fun booleanValue(booleanValue: Boolean) + + /** + * @param booleanValue A control parameter that is a boolean. + */ + public fun booleanValue(booleanValue: IResolvable) + + /** + * @param doubleValue A control parameter that is a double. + */ + public fun doubleValue(doubleValue: Number) + + /** + * @param enumList A control parameter that is a list of enums. + */ + public fun enumList(enumList: List) + + /** + * @param enumList A control parameter that is a list of enums. + */ + public fun enumList(vararg enumList: String) + + /** + * @param enumValue A control parameter that is an enum. + */ + public fun enumValue(enumValue: String) + + /** + * @param integer A control parameter that is an integer. + */ + public fun integer(integer: Number) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(integerList: IResolvable) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(integerList: List) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(vararg integerList: Number) + + /** + * @param string A control parameter that is a string. + */ + public fun string(string: String) + + /** + * @param stringList A control parameter that is a list of strings. + */ + public fun stringList(stringList: List) + + /** + * @param stringList A control parameter that is a list of strings. + */ + public fun stringList(vararg stringList: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty.builder() + + /** + * @param booleanValue A control parameter that is a boolean. + */ + override fun booleanValue(booleanValue: Boolean) { + cdkBuilder.booleanValue(booleanValue) + } + + /** + * @param booleanValue A control parameter that is a boolean. + */ + override fun booleanValue(booleanValue: IResolvable) { + cdkBuilder.booleanValue(booleanValue.let(IResolvable.Companion::unwrap)) + } + + /** + * @param doubleValue A control parameter that is a double. + */ + override fun doubleValue(doubleValue: Number) { + cdkBuilder.doubleValue(doubleValue) + } + + /** + * @param enumList A control parameter that is a list of enums. + */ + override fun enumList(enumList: List) { + cdkBuilder.enumList(enumList) + } + + /** + * @param enumList A control parameter that is a list of enums. + */ + override fun enumList(vararg enumList: String): Unit = enumList(enumList.toList()) + + /** + * @param enumValue A control parameter that is an enum. + */ + override fun enumValue(enumValue: String) { + cdkBuilder.enumValue(enumValue) + } + + /** + * @param integer A control parameter that is an integer. + */ + override fun integer(integer: Number) { + cdkBuilder.integer(integer) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(integerList: IResolvable) { + cdkBuilder.integerList(integerList.let(IResolvable.Companion::unwrap)) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(integerList: List) { + cdkBuilder.integerList(integerList) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(vararg integerList: Number): Unit = integerList(integerList.toList()) + + /** + * @param string A control parameter that is a string. + */ + override fun string(string: String) { + cdkBuilder.string(string) + } + + /** + * @param stringList A control parameter that is a list of strings. + */ + override fun stringList(stringList: List) { + cdkBuilder.stringList(stringList) + } + + /** + * @param stringList A control parameter that is a list of strings. + */ + override fun stringList(vararg stringList: String): Unit = stringList(stringList.toList()) + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty, + ) : CdkObject(cdkObject), + ParameterValueProperty { + /** + * A control parameter that is a boolean. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-boolean) + */ + override fun booleanValue(): Any? = unwrap(this).getBooleanValue() + + /** + * A control parameter that is a double. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-double) + */ + override fun doubleValue(): Number? = unwrap(this).getDoubleValue() + + /** + * A control parameter that is a list of enums. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-enumlist) + */ + override fun enumList(): List = unwrap(this).getEnumList() ?: emptyList() + + /** + * A control parameter that is an enum. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-enum) + */ + override fun enumValue(): String? = unwrap(this).getEnumValue() + + /** + * A control parameter that is an integer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-integer) + */ + override fun integer(): Number? = unwrap(this).getInteger() + + /** + * A control parameter that is a list of integers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-integerlist) + */ + override fun integerList(): Any? = unwrap(this).getIntegerList() + + /** + * A control parameter that is a string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-string) + */ + override fun string(): String? = unwrap(this).getString() + + /** + * A control parameter that is a list of strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-parametervalue.html#cfn-securityhub-configurationpolicy-parametervalue-stringlist) + */ + override fun stringList(): List = unwrap(this).getStringList() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParameterValueProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty): + ParameterValueProperty = CdkObjectWrappers.wrap(cdkObject) as? ParameterValueProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParameterValueProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.ParameterValueProperty + } + } + + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security standards, + * a list of enabled or disabled security controls, and a list of custom parameter values for + * specified controls. If you provide a list of security controls that are enabled in the + * configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * PolicyProperty policyProperty = PolicyProperty.builder() + * .securityHub(SecurityHubPolicyProperty.builder() + * .enabledStandardIdentifiers(List.of("enabledStandardIdentifiers")) + * .securityControlsConfiguration(SecurityControlsConfigurationProperty.builder() + * .disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers")) + * .enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers")) + * .securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build())) + * .build()) + * .serviceEnabled(false) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-policy.html) + */ + public interface PolicyProperty { + /** + * The AWS service that the configuration policy applies to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-policy.html#cfn-securityhub-configurationpolicy-policy-securityhub) + */ + public fun securityHub(): Any? = unwrap(this).getSecurityHub() + + /** + * A builder for [PolicyProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + public fun securityHub(securityHub: IResolvable) + + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + public fun securityHub(securityHub: SecurityHubPolicyProperty) + + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("620d55a506dbf203d05ea2837e91bac447faf946dcb0c5448204b101ff384c91") + public fun securityHub(securityHub: SecurityHubPolicyProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty.builder() + + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + override fun securityHub(securityHub: IResolvable) { + cdkBuilder.securityHub(securityHub.let(IResolvable.Companion::unwrap)) + } + + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + override fun securityHub(securityHub: SecurityHubPolicyProperty) { + cdkBuilder.securityHub(securityHub.let(SecurityHubPolicyProperty.Companion::unwrap)) + } + + /** + * @param securityHub The AWS service that the configuration policy applies to. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("620d55a506dbf203d05ea2837e91bac447faf946dcb0c5448204b101ff384c91") + override fun securityHub(securityHub: SecurityHubPolicyProperty.Builder.() -> Unit): Unit = + securityHub(SecurityHubPolicyProperty(securityHub)) + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty, + ) : CdkObject(cdkObject), + PolicyProperty { + /** + * The AWS service that the configuration policy applies to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-policy.html#cfn-securityhub-configurationpolicy-policy-securityhub) + */ + override fun securityHub(): Any? = unwrap(this).getSecurityHub() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty): + PolicyProperty = CdkObjectWrappers.wrap(cdkObject) as? PolicyProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PolicyProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty + } + } + + /** + * A list of security controls and control parameter values that are included in a configuration + * policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * SecurityControlCustomParameterProperty securityControlCustomParameterProperty = + * SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html) + */ + public interface SecurityControlCustomParameterProperty { + /** + * An object that specifies parameter values for a control in a configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-parameters) + */ + public fun parameters(): Any? = unwrap(this).getParameters() + + /** + * The ID of the security control. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-securitycontrolid) + */ + public fun securityControlId(): String? = unwrap(this).getSecurityControlId() + + /** + * A builder for [SecurityControlCustomParameterProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param parameters An object that specifies parameter values for a control in a + * configuration policy. + */ + public fun parameters(parameters: IResolvable) + + /** + * @param parameters An object that specifies parameter values for a control in a + * configuration policy. + */ + public fun parameters(parameters: Map) + + /** + * @param securityControlId The ID of the security control. + */ + public fun securityControlId(securityControlId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty.builder() + + /** + * @param parameters An object that specifies parameter values for a control in a + * configuration policy. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parameters An object that specifies parameter values for a control in a + * configuration policy. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param securityControlId The ID of the security control. + */ + override fun securityControlId(securityControlId: String) { + cdkBuilder.securityControlId(securityControlId) + } + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty, + ) : CdkObject(cdkObject), + SecurityControlCustomParameterProperty { + /** + * An object that specifies parameter values for a control in a configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-parameters) + */ + override fun parameters(): Any? = unwrap(this).getParameters() + + /** + * The ID of the security control. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-securitycontrolid) + */ + override fun securityControlId(): String? = unwrap(this).getSecurityControlId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SecurityControlCustomParameterProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty): + SecurityControlCustomParameterProperty = CdkObjectWrappers.wrap(cdkObject) as? + SecurityControlCustomParameterProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SecurityControlCustomParameterProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlCustomParameterProperty + } + } + + /** + * An object that defines which security controls are enabled in an AWS Security Hub configuration + * policy. + * + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * SecurityControlsConfigurationProperty securityControlsConfigurationProperty = + * SecurityControlsConfigurationProperty.builder() + * .disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers")) + * .enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers")) + * .securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html) + */ + public interface SecurityControlsConfigurationProperty { + /** + * A list of security controls that are disabled in the configuration policy. + * + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other controls + * not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-disabledsecuritycontrolidentifiers) + */ + public fun disabledSecurityControlIdentifiers(): List = + unwrap(this).getDisabledSecurityControlIdentifiers() ?: emptyList() + + /** + * A list of security controls that are enabled in the configuration policy. + * + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other controls + * not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-enabledsecuritycontrolidentifiers) + */ + public fun enabledSecurityControlIdentifiers(): List = + unwrap(this).getEnabledSecurityControlIdentifiers() ?: emptyList() + + /** + * A list of security controls and control parameter values that are included in a configuration + * policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-securitycontrolcustomparameters) + */ + public fun securityControlCustomParameters(): Any? = + unwrap(this).getSecurityControlCustomParameters() + + /** + * A builder for [SecurityControlsConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param disabledSecurityControlIdentifiers A list of security controls that are disabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other + * controls not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + public + fun disabledSecurityControlIdentifiers(disabledSecurityControlIdentifiers: List) + + /** + * @param disabledSecurityControlIdentifiers A list of security controls that are disabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other + * controls not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + public fun disabledSecurityControlIdentifiers(vararg + disabledSecurityControlIdentifiers: String) + + /** + * @param enabledSecurityControlIdentifiers A list of security controls that are enabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other + * controls not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + public fun enabledSecurityControlIdentifiers(enabledSecurityControlIdentifiers: List) + + /** + * @param enabledSecurityControlIdentifiers A list of security controls that are enabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other + * controls not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + public fun enabledSecurityControlIdentifiers(vararg enabledSecurityControlIdentifiers: String) + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + public fun securityControlCustomParameters(securityControlCustomParameters: IResolvable) + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + public fun securityControlCustomParameters(securityControlCustomParameters: List) + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + public fun securityControlCustomParameters(vararg securityControlCustomParameters: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty.builder() + + /** + * @param disabledSecurityControlIdentifiers A list of security controls that are disabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other + * controls not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + override + fun disabledSecurityControlIdentifiers(disabledSecurityControlIdentifiers: List) { + cdkBuilder.disabledSecurityControlIdentifiers(disabledSecurityControlIdentifiers) + } + + /** + * @param disabledSecurityControlIdentifiers A list of security controls that are disabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other + * controls not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + override fun disabledSecurityControlIdentifiers(vararg + disabledSecurityControlIdentifiers: String): Unit = + disabledSecurityControlIdentifiers(disabledSecurityControlIdentifiers.toList()) + + /** + * @param enabledSecurityControlIdentifiers A list of security controls that are enabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other + * controls not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + override + fun enabledSecurityControlIdentifiers(enabledSecurityControlIdentifiers: List) { + cdkBuilder.enabledSecurityControlIdentifiers(enabledSecurityControlIdentifiers) + } + + /** + * @param enabledSecurityControlIdentifiers A list of security controls that are enabled in + * the configuration policy. + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other + * controls not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + */ + override fun enabledSecurityControlIdentifiers(vararg + enabledSecurityControlIdentifiers: String): Unit = + enabledSecurityControlIdentifiers(enabledSecurityControlIdentifiers.toList()) + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + override fun securityControlCustomParameters(securityControlCustomParameters: IResolvable) { + cdkBuilder.securityControlCustomParameters(securityControlCustomParameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + override fun securityControlCustomParameters(securityControlCustomParameters: List) { + cdkBuilder.securityControlCustomParameters(securityControlCustomParameters.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param securityControlCustomParameters A list of security controls and control parameter + * values that are included in a configuration policy. + */ + override fun securityControlCustomParameters(vararg securityControlCustomParameters: Any): + Unit = securityControlCustomParameters(securityControlCustomParameters.toList()) + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty, + ) : CdkObject(cdkObject), + SecurityControlsConfigurationProperty { + /** + * A list of security controls that are disabled in the configuration policy. + * + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `DisabledSecurityControlIdentifiers` , Security Hub enables all other + * controls not in the list, and enables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-disabledsecuritycontrolidentifiers) + */ + override fun disabledSecurityControlIdentifiers(): List = + unwrap(this).getDisabledSecurityControlIdentifiers() ?: emptyList() + + /** + * A list of security controls that are enabled in the configuration policy. + * + * Provide only one of `EnabledSecurityControlIdentifiers` or + * `DisabledSecurityControlIdentifiers` . + * + * If you provide `EnabledSecurityControlIdentifiers` , Security Hub disables all other + * controls not in the list, and disables + * [AutoEnableControls](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_UpdateSecurityHubConfiguration.html#securityhub-UpdateSecurityHubConfiguration-request-AutoEnableControls) + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-enabledsecuritycontrolidentifiers) + */ + override fun enabledSecurityControlIdentifiers(): List = + unwrap(this).getEnabledSecurityControlIdentifiers() ?: emptyList() + + /** + * A list of security controls and control parameter values that are included in a + * configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolsconfiguration.html#cfn-securityhub-configurationpolicy-securitycontrolsconfiguration-securitycontrolcustomparameters) + */ + override fun securityControlCustomParameters(): Any? = + unwrap(this).getSecurityControlCustomParameters() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + SecurityControlsConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty): + SecurityControlsConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + SecurityControlsConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SecurityControlsConfigurationProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityControlsConfigurationProperty + } + } + + /** + * An object that defines how AWS Security Hub is configured. + * + * The configuration policy includes whether Security Hub is enabled or disabled, a list of + * enabled security standards, a list of enabled or disabled security controls, and a list of custom + * parameter values for specified controls. If you provide a list of security controls that are + * enabled in the configuration policy, Security Hub disables all other controls (including newly + * released controls). If you provide a list of security controls that are disabled in the + * configuration policy, Security Hub enables all other controls (including newly released controls). + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * SecurityHubPolicyProperty securityHubPolicyProperty = SecurityHubPolicyProperty.builder() + * .enabledStandardIdentifiers(List.of("enabledStandardIdentifiers")) + * .securityControlsConfiguration(SecurityControlsConfigurationProperty.builder() + * .disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers")) + * .enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers")) + * .securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build())) + * .build()) + * .serviceEnabled(false) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html) + */ + public interface SecurityHubPolicyProperty { + /** + * A list that defines which security standards are enabled in the configuration policy. + * + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-enabledstandardidentifiers) + */ + public fun enabledStandardIdentifiers(): List = + unwrap(this).getEnabledStandardIdentifiers() ?: emptyList() + + /** + * An object that defines which security controls are enabled in the configuration policy. + * + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-securitycontrolsconfiguration) + */ + public fun securityControlsConfiguration(): Any? = + unwrap(this).getSecurityControlsConfiguration() + + /** + * Indicates whether Security Hub is enabled in the policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-serviceenabled) + */ + public fun serviceEnabled(): Any? = unwrap(this).getServiceEnabled() + + /** + * A builder for [SecurityHubPolicyProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param enabledStandardIdentifiers A list that defines which security standards are enabled + * in the configuration policy. + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + */ + public fun enabledStandardIdentifiers(enabledStandardIdentifiers: List) + + /** + * @param enabledStandardIdentifiers A list that defines which security standards are enabled + * in the configuration policy. + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + */ + public fun enabledStandardIdentifiers(vararg enabledStandardIdentifiers: String) + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + public fun securityControlsConfiguration(securityControlsConfiguration: IResolvable) + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + public + fun securityControlsConfiguration(securityControlsConfiguration: SecurityControlsConfigurationProperty) + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1ff6ee727adc1cfd7fce66167509db1fd865ad530ca931488dec035bdd169562") + public + fun securityControlsConfiguration(securityControlsConfiguration: SecurityControlsConfigurationProperty.Builder.() -> Unit) + + /** + * @param serviceEnabled Indicates whether Security Hub is enabled in the policy. + */ + public fun serviceEnabled(serviceEnabled: Boolean) + + /** + * @param serviceEnabled Indicates whether Security Hub is enabled in the policy. + */ + public fun serviceEnabled(serviceEnabled: IResolvable) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty.builder() + + /** + * @param enabledStandardIdentifiers A list that defines which security standards are enabled + * in the configuration policy. + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + */ + override fun enabledStandardIdentifiers(enabledStandardIdentifiers: List) { + cdkBuilder.enabledStandardIdentifiers(enabledStandardIdentifiers) + } + + /** + * @param enabledStandardIdentifiers A list that defines which security standards are enabled + * in the configuration policy. + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + */ + override fun enabledStandardIdentifiers(vararg enabledStandardIdentifiers: String): Unit = + enabledStandardIdentifiers(enabledStandardIdentifiers.toList()) + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + override fun securityControlsConfiguration(securityControlsConfiguration: IResolvable) { + cdkBuilder.securityControlsConfiguration(securityControlsConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + override + fun securityControlsConfiguration(securityControlsConfiguration: SecurityControlsConfigurationProperty) { + cdkBuilder.securityControlsConfiguration(securityControlsConfiguration.let(SecurityControlsConfigurationProperty.Companion::unwrap)) + } + + /** + * @param securityControlsConfiguration An object that defines which security controls are + * enabled in the configuration policy. + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1ff6ee727adc1cfd7fce66167509db1fd865ad530ca931488dec035bdd169562") + override + fun securityControlsConfiguration(securityControlsConfiguration: SecurityControlsConfigurationProperty.Builder.() -> Unit): + Unit = + securityControlsConfiguration(SecurityControlsConfigurationProperty(securityControlsConfiguration)) + + /** + * @param serviceEnabled Indicates whether Security Hub is enabled in the policy. + */ + override fun serviceEnabled(serviceEnabled: Boolean) { + cdkBuilder.serviceEnabled(serviceEnabled) + } + + /** + * @param serviceEnabled Indicates whether Security Hub is enabled in the policy. + */ + override fun serviceEnabled(serviceEnabled: IResolvable) { + cdkBuilder.serviceEnabled(serviceEnabled.let(IResolvable.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty, + ) : CdkObject(cdkObject), + SecurityHubPolicyProperty { + /** + * A list that defines which security standards are enabled in the configuration policy. + * + * This property is required only if `ServiceEnabled` is set to `true` in your configuration + * policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-enabledstandardidentifiers) + */ + override fun enabledStandardIdentifiers(): List = + unwrap(this).getEnabledStandardIdentifiers() ?: emptyList() + + /** + * An object that defines which security controls are enabled in the configuration policy. + * + * The enablement status of a control is aligned across all of the enabled standards in an + * account. + * + * This property is required only if `ServiceEnabled` is set to true in your configuration + * policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-securitycontrolsconfiguration) + */ + override fun securityControlsConfiguration(): Any? = + unwrap(this).getSecurityControlsConfiguration() + + /** + * Indicates whether Security Hub is enabled in the policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securityhubpolicy.html#cfn-securityhub-configurationpolicy-securityhubpolicy-serviceenabled) + */ + override fun serviceEnabled(): Any? = unwrap(this).getServiceEnabled() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SecurityHubPolicyProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty): + SecurityHubPolicyProperty = CdkObjectWrappers.wrap(cdkObject) as? + SecurityHubPolicyProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: SecurityHubPolicyProperty): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.SecurityHubPolicyProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicyProps.kt new file mode 100644 index 0000000000..b705e470cf --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnConfigurationPolicyProps.kt @@ -0,0 +1,303 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnConfigurationPolicy`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnConfigurationPolicyProps cfnConfigurationPolicyProps = CfnConfigurationPolicyProps.builder() + * .configurationPolicy(PolicyProperty.builder() + * .securityHub(SecurityHubPolicyProperty.builder() + * .enabledStandardIdentifiers(List.of("enabledStandardIdentifiers")) + * .securityControlsConfiguration(SecurityControlsConfigurationProperty.builder() + * .disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers")) + * .enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers")) + * .securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * .securityControlId("securityControlId") + * .build())) + * .build()) + * .serviceEnabled(false) + * .build()) + * .build()) + * .name("name") + * // the properties below are optional + * .description("description") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html) + */ +public interface CfnConfigurationPolicyProps { + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security standards, + * a list of enabled or disabled security controls, and a list of custom parameter values for + * specified controls. If you provide a list of security controls that are enabled in the + * configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + */ + public fun configurationPolicy(): Any + + /** + * The description of the configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the configuration policy. + * + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-name) + */ + public fun name(): String + + /** + * User-defined tags associated with a configuration policy. + * + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in the + * *Security Hub user guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnConfigurationPolicyProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + public fun configurationPolicy(configurationPolicy: IResolvable) + + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + public fun configurationPolicy(configurationPolicy: CfnConfigurationPolicy.PolicyProperty) + + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("58c6d43fb0fc681e924a2ffb9b76f84a2907276b1e19aa42171a3d08e7f4a9ba") + public + fun configurationPolicy(configurationPolicy: CfnConfigurationPolicy.PolicyProperty.Builder.() -> Unit) + + /** + * @param description The description of the configuration policy. + */ + public fun description(description: String) + + /** + * @param name The name of the configuration policy. + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + */ + public fun name(name: String) + + /** + * @param tags User-defined tags associated with a configuration policy. + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in + * the *Security Hub user guide* . + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps.Builder = + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps.builder() + + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + override fun configurationPolicy(configurationPolicy: IResolvable) { + cdkBuilder.configurationPolicy(configurationPolicy.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + override fun configurationPolicy(configurationPolicy: CfnConfigurationPolicy.PolicyProperty) { + cdkBuilder.configurationPolicy(configurationPolicy.let(CfnConfigurationPolicy.PolicyProperty.Companion::unwrap)) + } + + /** + * @param configurationPolicy An object that defines how AWS Security Hub is configured. + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("58c6d43fb0fc681e924a2ffb9b76f84a2907276b1e19aa42171a3d08e7f4a9ba") + override + fun configurationPolicy(configurationPolicy: CfnConfigurationPolicy.PolicyProperty.Builder.() -> Unit): + Unit = configurationPolicy(CfnConfigurationPolicy.PolicyProperty(configurationPolicy)) + + /** + * @param description The description of the configuration policy. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name The name of the configuration policy. + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags User-defined tags associated with a configuration policy. + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in + * the *Security Hub user guide* . + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps, + ) : CdkObject(cdkObject), + CfnConfigurationPolicyProps { + /** + * An object that defines how AWS Security Hub is configured. + * + * It includes whether Security Hub is enabled or disabled, a list of enabled security + * standards, a list of enabled or disabled security controls, and a list of custom parameter + * values for specified controls. If you provide a list of security controls that are enabled in + * the configuration policy, Security Hub disables all other controls (including newly released + * controls). If you provide a list of security controls that are disabled in the configuration + * policy, Security Hub enables all other controls (including newly released controls). + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-configurationpolicy) + */ + override fun configurationPolicy(): Any = unwrap(this).getConfigurationPolicy() + + /** + * The description of the configuration policy. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the configuration policy. + * + * Alphanumeric characters and the following ASCII characters are permitted: `-, ., !, *, /` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * User-defined tags associated with a configuration policy. + * + * For more information, see [Tagging AWS Security Hub + * resources](https://docs.aws.amazon.com/securityhub/latest/userguide/tagging-resources.html) in + * the *Security Hub user guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-configurationpolicy.html#cfn-securityhub-configurationpolicy-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnConfigurationPolicyProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps): + CfnConfigurationPolicyProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnConfigurationPolicyProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnConfigurationPolicyProps): + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnConfigurationPolicyProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdmin.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdmin.kt index 351e692fc1..2253e410cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdmin.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdmin.kt @@ -48,7 +48,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDelegatedAdmin( cdkObject: software.amazon.awscdk.services.securityhub.CfnDelegatedAdmin, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdminProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdminProps.kt index 93f58f1f1e..5c06a324d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdminProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnDelegatedAdminProps.kt @@ -64,7 +64,8 @@ public interface CfnDelegatedAdminProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnDelegatedAdminProps, - ) : CdkObject(cdkObject), CfnDelegatedAdminProps { + ) : CdkObject(cdkObject), + CfnDelegatedAdminProps { /** * The AWS account identifier of the account to designate as the Security Hub administrator * account. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregator.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregator.kt new file mode 100644 index 0000000000..0f002ae1aa --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregator.kt @@ -0,0 +1,286 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::SecurityHub::FindingAggregator` resource enables cross-Region aggregation. + * + * When cross-Region aggregation is enabled, you can aggregate findings, finding updates, insights, + * control compliance statuses, and security scores from one or more linked Regions to a single + * aggregation Region. You can then view and manage all of this data from the aggregation Region. For + * more details about cross-Region aggregation, see [Cross-Region + * aggregation](https://docs.aws.amazon.com/securityhub/latest/userguide/finding-aggregation.html) in + * the *AWS Security Hub User Guide* + * + * This resource must be created in the Region that you want to designate as your aggregation + * Region. + * + * Cross-Region aggregation is also a prerequisite for using [central + * configuration](https://docs.aws.amazon.com/securityhub/latest/userguide/central-configuration-intro.html) + * in Security Hub . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnFindingAggregator cfnFindingAggregator = CfnFindingAggregator.Builder.create(this, + * "MyCfnFindingAggregator") + * .regionLinkingMode("regionLinkingMode") + * // the properties below are optional + * .regions(List.of("regions")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html) + */ +public open class CfnFindingAggregator( + cdkObject: software.amazon.awscdk.services.securityhub.CfnFindingAggregator, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFindingAggregatorProps, + ) : + this(software.amazon.awscdk.services.securityhub.CfnFindingAggregator(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnFindingAggregatorProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnFindingAggregatorProps.Builder.() -> Unit, + ) : this(scope, id, CfnFindingAggregatorProps(props) + ) + + /** + * The aggregation Region. + */ + public open fun attrFindingAggregationRegion(): String = + unwrap(this).getAttrFindingAggregationRegion() + + /** + * The ARN of the finding aggregator. + * + * You use the finding aggregator ARN to retrieve details for, update, and delete the finding + * aggregator. + */ + public open fun attrFindingAggregatorArn(): String = unwrap(this).getAttrFindingAggregatorArn() + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + */ + public open fun regionLinkingMode(): String = unwrap(this).getRegionLinkingMode() + + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + */ + public open fun regionLinkingMode(`value`: String) { + unwrap(this).setRegionLinkingMode(`value`) + } + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated list + * of Regions that do not aggregate findings to the aggregation Region. + */ + public open fun regions(): List = unwrap(this).getRegions() ?: emptyList() + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated list + * of Regions that do not aggregate findings to the aggregation Region. + */ + public open fun regions(`value`: List) { + unwrap(this).setRegions(`value`) + } + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated list + * of Regions that do not aggregate findings to the aggregation Region. + */ + public open fun regions(vararg `value`: String): Unit = regions(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.securityhub.CfnFindingAggregator]. + */ + @CdkDslMarker + public interface Builder { + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + * + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new + * Regions as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regionlinkingmode) + * @param regionLinkingMode Indicates whether to aggregate findings from all of the available + * Regions in the current partition. + */ + public fun regionLinkingMode(regionLinkingMode: String) + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated + * list of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + */ + public fun regions(regions: List) + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated + * list of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + */ + public fun regions(vararg regions: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.securityhub.CfnFindingAggregator.Builder + = software.amazon.awscdk.services.securityhub.CfnFindingAggregator.Builder.create(scope, id) + + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + * + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new + * Regions as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regionlinkingmode) + * @param regionLinkingMode Indicates whether to aggregate findings from all of the available + * Regions in the current partition. + */ + override fun regionLinkingMode(regionLinkingMode: String) { + cdkBuilder.regionLinkingMode(regionLinkingMode) + } + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated + * list of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + */ + override fun regions(regions: List) { + cdkBuilder.regions(regions) + } + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated + * list of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + */ + override fun regions(vararg regions: String): Unit = regions(regions.toList()) + + public fun build(): software.amazon.awscdk.services.securityhub.CfnFindingAggregator = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securityhub.CfnFindingAggregator.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnFindingAggregator { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnFindingAggregator(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnFindingAggregator): + CfnFindingAggregator = CfnFindingAggregator(cdkObject) + + internal fun unwrap(wrapped: CfnFindingAggregator): + software.amazon.awscdk.services.securityhub.CfnFindingAggregator = wrapped.cdkObject as + software.amazon.awscdk.services.securityhub.CfnFindingAggregator + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregatorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregatorProps.kt new file mode 100644 index 0000000000..ae2cfe54e8 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnFindingAggregatorProps.kt @@ -0,0 +1,241 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnFindingAggregator`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnFindingAggregatorProps cfnFindingAggregatorProps = CfnFindingAggregatorProps.builder() + * .regionLinkingMode("regionLinkingMode") + * // the properties below are optional + * .regions(List.of("regions")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html) + */ +public interface CfnFindingAggregatorProps { + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + * + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new Regions + * as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regionlinkingmode) + */ + public fun regionLinkingMode(): String + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated list + * of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of Regions + * that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + */ + public fun regions(): List = unwrap(this).getRegions() ?: emptyList() + + /** + * A builder for [CfnFindingAggregatorProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param regionLinkingMode Indicates whether to aggregate findings from all of the available + * Regions in the current partition. + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new + * Regions as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + */ + public fun regionLinkingMode(regionLinkingMode: String) + + /** + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + */ + public fun regions(regions: List) + + /** + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + */ + public fun regions(vararg regions: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps.Builder = + software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps.builder() + + /** + * @param regionLinkingMode Indicates whether to aggregate findings from all of the available + * Regions in the current partition. + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new + * Regions as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + */ + override fun regionLinkingMode(regionLinkingMode: String) { + cdkBuilder.regionLinkingMode(regionLinkingMode) + } + + /** + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + */ + override fun regions(regions: List) { + cdkBuilder.regions(regions) + } + + /** + * @param regions If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a + * space-separated list of Regions that do not aggregate findings to the aggregation Region. + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + */ + override fun regions(vararg regions: String): Unit = regions(regions.toList()) + + public fun build(): software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps, + ) : CdkObject(cdkObject), + CfnFindingAggregatorProps { + /** + * Indicates whether to aggregate findings from all of the available Regions in the current + * partition. + * + * Also determines whether to automatically aggregate findings from new Regions as Security Hub + * supports them and you opt into them. + * + * The selected option also determines how to use the Regions provided in the Regions list. + * + * The options are as follows: + * + * * `ALL_REGIONS` - Aggregates findings from all of the Regions where Security Hub is enabled. + * When you choose this option, Security Hub also automatically aggregates findings from new + * Regions as Security Hub supports them and you opt into them. + * * `ALL_REGIONS_EXCEPT_SPECIFIED` - Aggregates findings from all of the Regions where Security + * Hub is enabled, except for the Regions listed in the `Regions` parameter. When you choose this + * option, Security Hub also automatically aggregates findings from new Regions as Security Hub + * supports them and you opt into them. + * * `SPECIFIED_REGIONS` - Aggregates findings only from the Regions listed in the `Regions` + * parameter. Security Hub does not automatically aggregate findings from new Regions. + * * `NO_REGIONS` - Aggregates no data because no Regions are selected as linked Regions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regionlinkingmode) + */ + override fun regionLinkingMode(): String = unwrap(this).getRegionLinkingMode() + + /** + * If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED` , then this is a space-separated + * list of Regions that do not aggregate findings to the aggregation Region. + * + * If `RegionLinkingMode` is `SPECIFIED_REGIONS` , then this is a space-separated list of + * Regions that do aggregate findings to the aggregation Region. + * + * An `InvalidInputException` error results if you populate this field while `RegionLinkingMode` + * is `NO_REGIONS` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-findingaggregator.html#cfn-securityhub-findingaggregator-regions) + */ + override fun regions(): List = unwrap(this).getRegions() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnFindingAggregatorProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps): + CfnFindingAggregatorProps = CdkObjectWrappers.wrap(cdkObject) as? CfnFindingAggregatorProps + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnFindingAggregatorProps): + software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHub.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHub.kt index 8130f1e331..84aeba57c1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHub.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHub.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHub( cdkObject: software.amazon.awscdk.services.securityhub.CfnHub, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.securityhub.CfnHub(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHubProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHubProps.kt index 0c2e7403c0..d51c9f1012 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHubProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnHubProps.kt @@ -242,7 +242,8 @@ public interface CfnHubProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnHubProps, - ) : CdkObject(cdkObject), CfnHubProps { + ) : CdkObject(cdkObject), + CfnHubProps { /** * Whether to automatically enable new controls when they are added to standards that are * enabled. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsight.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsight.kt index 9ba78918d9..0b9116d78e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsight.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsight.kt @@ -513,7 +513,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInsight( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1982,6 +1983,8 @@ public open class CfnInsight( * Deprecated. The normalized severity of a finding. Instead of providing `Normalized` , provide * `Label` . * + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -3882,6 +3885,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -3896,6 +3901,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -3910,6 +3917,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -6476,6 +6485,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -6492,6 +6503,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -6508,6 +6521,8 @@ public open class CfnInsight( /** * @param severityNormalized Deprecated. The normalized severity of a finding. Instead of * providing `Normalized` , provide `Label` . + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -7046,7 +7061,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.AwsSecurityFindingFiltersProperty, - ) : CdkObject(cdkObject), AwsSecurityFindingFiltersProperty { + ) : CdkObject(cdkObject), + AwsSecurityFindingFiltersProperty { /** * The AWS account ID in which a finding is generated. * @@ -7798,6 +7814,8 @@ public open class CfnInsight( * Deprecated. The normalized severity of a finding. Instead of providing `Normalized` , * provide `Label` . * + * The value of `Normalized` can be an integer between `0` and `100` . + * * If you provide `Label` and do not provide `Normalized` , then `Normalized` is set * automatically as follows. * @@ -8083,7 +8101,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.BooleanFilterProperty, - ) : CdkObject(cdkObject), BooleanFilterProperty { + ) : CdkObject(cdkObject), + BooleanFilterProperty { /** * The value of the boolean. * @@ -8293,7 +8312,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.DateFilterProperty, - ) : CdkObject(cdkObject), DateFilterProperty { + ) : CdkObject(cdkObject), + DateFilterProperty { /** * A date range for the date filter. * @@ -8429,7 +8449,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.DateRangeProperty, - ) : CdkObject(cdkObject), DateRangeProperty { + ) : CdkObject(cdkObject), + DateRangeProperty { /** * A date range unit for the date filter. * @@ -8516,7 +8537,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.IpFilterProperty, - ) : CdkObject(cdkObject), IpFilterProperty { + ) : CdkObject(cdkObject), + IpFilterProperty { /** * A finding's CIDR value. * @@ -8597,7 +8619,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.KeywordFilterProperty, - ) : CdkObject(cdkObject), KeywordFilterProperty { + ) : CdkObject(cdkObject), + KeywordFilterProperty { /** * A value for the keyword. * @@ -8867,7 +8890,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.MapFilterProperty, - ) : CdkObject(cdkObject), MapFilterProperty { + ) : CdkObject(cdkObject), + MapFilterProperty { /** * The condition to apply to the key value when filtering Security Hub findings with a map * filter. @@ -9059,7 +9083,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.NumberFilterProperty, - ) : CdkObject(cdkObject), NumberFilterProperty { + ) : CdkObject(cdkObject), + NumberFilterProperty { /** * The equal-to condition to be applied to a single field when querying for findings. * @@ -9368,7 +9393,8 @@ public open class CfnInsight( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsight.StringFilterProperty, - ) : CdkObject(cdkObject), StringFilterProperty { + ) : CdkObject(cdkObject), + StringFilterProperty { /** * The condition to apply to a string value when filtering Security Hub findings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsightProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsightProps.kt index f5936196ff..c617902fec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsightProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnInsightProps.kt @@ -629,7 +629,8 @@ public interface CfnInsightProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnInsightProps, - ) : CdkObject(cdkObject), CfnInsightProps { + ) : CdkObject(cdkObject), + CfnInsightProps { /** * One or more attributes used to filter the findings included in the insight. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfiguration.kt new file mode 100644 index 0000000000..527d35ae9d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfiguration.kt @@ -0,0 +1,367 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::SecurityHub::OrganizationConfiguration` resource specifies the way that your AWS + * organization is configured in AWS Security Hub . + * + * Specifically, you can use this resource to specify the configuration type for your organization + * and whether to automatically Security Hub and security standards in new member accounts. For more + * information, see [Managing administrator and member + * accounts](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-accounts.html) in the + * *AWS Security Hub User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnOrganizationConfiguration cfnOrganizationConfiguration = + * CfnOrganizationConfiguration.Builder.create(this, "MyCfnOrganizationConfiguration") + * .autoEnable(false) + * // the properties below are optional + * .autoEnableStandards("autoEnableStandards") + * .configurationType("configurationType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html) + */ +public open class CfnOrganizationConfiguration( + cdkObject: software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnOrganizationConfigurationProps, + ) : + this(software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnOrganizationConfigurationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnOrganizationConfigurationProps.Builder.() -> Unit, + ) : this(scope, id, CfnOrganizationConfigurationProps(props) + ) + + /** + * Whether the maximum number of allowed member accounts are already associated with the Security + * Hub administrator account. + */ + public open fun attrMemberAccountLimitReached(): IResolvable = + unwrap(this).getAttrMemberAccountLimitReached().let(IResolvable::wrap) + + /** + * The organization configuration identifier, formatted as + * `AccountId/Region/securityhub-organization-configuration` . + * + * For example, `123456789012/us-east-1/securityhub-organization-configuration` . + */ + public open fun attrOrganizationConfigurationIdentifier(): String = + unwrap(this).getAttrOrganizationConfigurationIdentifier() + + /** + * Describes whether central configuration could be enabled as the `ConfigurationType` for the + * organization. + * + * If your `ConfigurationType` is local configuration, then the value of `Status` is always + * `ENABLED` . + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Provides an explanation if the value of `Status` is equal to `FAILED` when `ConfigurationType` + * is equal to `CENTRAL` . + */ + public open fun attrStatusMessage(): String = unwrap(this).getAttrStatusMessage() + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + */ + public open fun autoEnable(): Any = unwrap(this).getAutoEnable() + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + */ + public open fun autoEnable(`value`: Boolean) { + unwrap(this).setAutoEnable(`value`) + } + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + */ + public open fun autoEnable(`value`: IResolvable) { + unwrap(this).setAutoEnable(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + */ + public open fun autoEnableStandards(): String? = unwrap(this).getAutoEnableStandards() + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + */ + public open fun autoEnableStandards(`value`: String) { + unwrap(this).setAutoEnableStandards(`value`) + } + + /** + * Indicates whether the organization uses local or central configuration. + */ + public open fun configurationType(): String? = unwrap(this).getConfigurationType() + + /** + * Indicates whether the organization uses local or central configuration. + */ + public open fun configurationType(`value`: String) { + unwrap(this).setConfigurationType(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.securityhub.CfnOrganizationConfiguration]. + */ + @CdkDslMarker + public interface Builder { + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + */ + public fun autoEnable(autoEnable: Boolean) + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + */ + public fun autoEnable(autoEnable: IResolvable) + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for + * new member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards + * are enabled and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenablestandards) + * @param autoEnableStandards Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + */ + public fun autoEnableStandards(autoEnableStandards: String) + + /** + * Indicates whether the organization uses local or central configuration. + * + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use + * a specific configuration, you can create a configuration policy and associate it with the root + * or specific organizational units (OUs). New accounts will inherit the policy from the root or + * their assigned OU. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-configurationtype) + * @param configurationType Indicates whether the organization uses local or central + * configuration. + */ + public fun configurationType(configurationType: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration.Builder = + software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration.Builder.create(scope, + id) + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + */ + override fun autoEnable(autoEnable: Boolean) { + cdkBuilder.autoEnable(autoEnable) + } + + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + */ + override fun autoEnable(autoEnable: IResolvable) { + cdkBuilder.autoEnable(autoEnable.let(IResolvable.Companion::unwrap)) + } + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for + * new member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards + * are enabled and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenablestandards) + * @param autoEnableStandards Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + */ + override fun autoEnableStandards(autoEnableStandards: String) { + cdkBuilder.autoEnableStandards(autoEnableStandards) + } + + /** + * Indicates whether the organization uses local or central configuration. + * + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use + * a specific configuration, you can create a configuration policy and associate it with the root + * or specific organizational units (OUs). New accounts will inherit the policy from the root or + * their assigned OU. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-configurationtype) + * @param configurationType Indicates whether the organization uses local or central + * configuration. + */ + override fun configurationType(configurationType: String) { + cdkBuilder.configurationType(configurationType) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnOrganizationConfiguration { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnOrganizationConfiguration(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration): + CfnOrganizationConfiguration = CfnOrganizationConfiguration(cdkObject) + + internal fun unwrap(wrapped: CfnOrganizationConfiguration): + software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration = wrapped.cdkObject + as software.amazon.awscdk.services.securityhub.CfnOrganizationConfiguration + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfigurationProps.kt new file mode 100644 index 0000000000..20bc864c76 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnOrganizationConfigurationProps.kt @@ -0,0 +1,316 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnOrganizationConfiguration`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnOrganizationConfigurationProps cfnOrganizationConfigurationProps = + * CfnOrganizationConfigurationProps.builder() + * .autoEnable(false) + * // the properties below are optional + * .autoEnableStandards("autoEnableStandards") + * .configurationType("configurationType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html) + */ +public interface CfnOrganizationConfigurationProps { + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set to + * `false` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which Security Hub is enabled and + * associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + */ + public fun autoEnable(): Any + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for new + * member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set to + * `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards are + * enabled and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenablestandards) + */ + public fun autoEnableStandards(): String? = unwrap(this).getAutoEnableStandards() + + /** + * Indicates whether the organization uses local or central configuration. + * + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use a + * specific configuration, you can create a configuration policy and associate it with the root or + * specific organizational units (OUs). New accounts will inherit the policy from the root or their + * assigned OU. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-configurationtype) + */ + public fun configurationType(): String? = unwrap(this).getConfigurationType() + + /** + * A builder for [CfnOrganizationConfigurationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + */ + public fun autoEnable(autoEnable: Boolean) + + /** + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + */ + public fun autoEnable(autoEnable: IResolvable) + + /** + * @param autoEnableStandards Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for + * new member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards + * are enabled and associate the policy with new organization accounts. + */ + public fun autoEnableStandards(autoEnableStandards: String) + + /** + * @param configurationType Indicates whether the organization uses local or central + * configuration. + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use + * a specific configuration, you can create a configuration policy and associate it with the root + * or specific organizational units (OUs). New accounts will inherit the policy from the root or + * their assigned OU. + */ + public fun configurationType(configurationType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps.Builder = + software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps.builder() + + /** + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + */ + override fun autoEnable(autoEnable: Boolean) { + cdkBuilder.autoEnable(autoEnable) + } + + /** + * @param autoEnable Whether to automatically enable Security Hub in new member accounts when + * they join the organization. + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + */ + override fun autoEnable(autoEnable: IResolvable) { + cdkBuilder.autoEnable(autoEnable.let(IResolvable.Companion::unwrap)) + } + + /** + * @param autoEnableStandards Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for + * new member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards + * are enabled and associate the policy with new organization accounts. + */ + override fun autoEnableStandards(autoEnableStandards: String) { + cdkBuilder.autoEnableStandards(autoEnableStandards) + } + + /** + * @param configurationType Indicates whether the organization uses local or central + * configuration. + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use + * a specific configuration, you can create a configuration policy and associate it with the root + * or specific organizational units (OUs). New accounts will inherit the policy from the root or + * their assigned OU. + */ + override fun configurationType(configurationType: String) { + cdkBuilder.configurationType(configurationType) + } + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps, + ) : CdkObject(cdkObject), + CfnOrganizationConfigurationProps { + /** + * Whether to automatically enable Security Hub in new member accounts when they join the + * organization. + * + * If set to `true` , then Security Hub is automatically enabled in new accounts. If set to + * `false` , then Security Hub isn't enabled in new accounts automatically. The default value is + * `false` . + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `false` and can't be changed in the home Region and linked Regions. However, in that case, + * the delegated administrator can create a configuration policy in which Security Hub is enabled + * and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable) + */ + override fun autoEnable(): Any = unwrap(this).getAutoEnable() + + /** + * Whether to automatically enable Security Hub [default + * standards](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-enable-disable.html) + * in new member accounts when they join the organization. + * + * The default value of this parameter is equal to `DEFAULT` . + * + * If equal to `DEFAULT` , then Security Hub default standards are automatically enabled for new + * member accounts. If equal to `NONE` , then default standards are not automatically enabled for + * new member accounts. + * + * If the `ConfigurationType` of your organization is set to `CENTRAL` , then this field is set + * to `NONE` and can't be changed in the home Region and linked Regions. However, in that case, the + * delegated administrator can create a configuration policy in which specific security standards + * are enabled and associate the policy with new organization accounts. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenablestandards) + */ + override fun autoEnableStandards(): String? = unwrap(this).getAutoEnableStandards() + + /** + * Indicates whether the organization uses local or central configuration. + * + * If you use local configuration, the Security Hub delegated administrator can set `AutoEnable` + * to `true` and `AutoEnableStandards` to `DEFAULT` . This automatically enables Security Hub and + * default security standards in new organization accounts. These new account settings must be set + * separately in each AWS Region , and settings may be different in each Region. + * + * If you use central configuration, the delegated administrator can create configuration + * policies. Configuration policies can be used to configure Security Hub, security standards, and + * security controls in multiple accounts and Regions. If you want new organization accounts to use + * a specific configuration, you can create a configuration policy and associate it with the root + * or specific organizational units (OUs). New accounts will inherit the policy from the root or + * their assigned OU. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-configurationtype) + */ + override fun configurationType(): String? = unwrap(this).getConfigurationType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnOrganizationConfigurationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps): + CfnOrganizationConfigurationProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnOrganizationConfigurationProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnOrganizationConfigurationProps): + software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnOrganizationConfigurationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociation.kt new file mode 100644 index 0000000000..f9ef56360a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociation.kt @@ -0,0 +1,237 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::SecurityHub::PolicyAssociation` resource specifies associations for a configuration + * policy or a self-managed configuration. + * + * You can associate a AWS Security Hub configuration policy or self-managed configuration with the + * organization root, organizational units (OUs), or AWS accounts . After a successful association, the + * configuration policy takes effect in the specified targets. For more information, see [Creating and + * associating Security Hub configuration + * policies](https://docs.aws.amazon.com/securityhub/latest/userguide/create-associate-policy.html) in + * the *AWS Security Hub User Guide* . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnPolicyAssociation cfnPolicyAssociation = CfnPolicyAssociation.Builder.create(this, + * "MyCfnPolicyAssociation") + * .configurationPolicyId("configurationPolicyId") + * .targetId("targetId") + * .targetType("targetType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html) + */ +public open class CfnPolicyAssociation( + cdkObject: software.amazon.awscdk.services.securityhub.CfnPolicyAssociation, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPolicyAssociationProps, + ) : + this(software.amazon.awscdk.services.securityhub.CfnPolicyAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnPolicyAssociationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnPolicyAssociationProps.Builder.() -> Unit, + ) : this(scope, id, CfnPolicyAssociationProps(props) + ) + + /** + * The association identifier, formatted as `TargetType/TargetId` . + * + * For example, `ACCOUNT/123456789012` . + */ + public open fun attrAssociationIdentifier(): String = unwrap(this).getAttrAssociationIdentifier() + + /** + * The current status of the association between the specified target and the configuration. + */ + public open fun attrAssociationStatus(): String = unwrap(this).getAttrAssociationStatus() + + /** + * The explanation for a `FAILED` value for `AssociationStatus` . + */ + public open fun attrAssociationStatusMessage(): String = + unwrap(this).getAttrAssociationStatusMessage() + + /** + * Indicates whether the association between the specified target and the configuration was + * directly applied by the AWS Security Hub delegated administrator or inherited from a parent. + */ + public open fun attrAssociationType(): String = unwrap(this).getAttrAssociationType() + + /** + * The date and time, in UTC and ISO 8601 format, that the configuration policy association was + * last updated. + */ + public open fun attrUpdatedAt(): String = unwrap(this).getAttrUpdatedAt() + + /** + * The universally unique identifier (UUID) of the configuration policy. + */ + public open fun configurationPolicyId(): String = unwrap(this).getConfigurationPolicyId() + + /** + * The universally unique identifier (UUID) of the configuration policy. + */ + public open fun configurationPolicyId(`value`: String) { + unwrap(this).setConfigurationPolicyId(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The identifier of the target account, organizational unit, or the root. + */ + public open fun targetId(): String = unwrap(this).getTargetId() + + /** + * The identifier of the target account, organizational unit, or the root. + */ + public open fun targetId(`value`: String) { + unwrap(this).setTargetId(`value`) + } + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + */ + public open fun targetType(): String = unwrap(this).getTargetType() + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + */ + public open fun targetType(`value`: String) { + unwrap(this).setTargetType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.securityhub.CfnPolicyAssociation]. + */ + @CdkDslMarker + public interface Builder { + /** + * The universally unique identifier (UUID) of the configuration policy. + * + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-configurationpolicyid) + * @param configurationPolicyId The universally unique identifier (UUID) of the configuration + * policy. + */ + public fun configurationPolicyId(configurationPolicyId: String) + + /** + * The identifier of the target account, organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targetid) + * @param targetId The identifier of the target account, organizational unit, or the root. + */ + public fun targetId(targetId: String) + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targettype) + * @param targetType Specifies whether the target is an AWS account , organizational unit, or + * the root. + */ + public fun targetType(targetType: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.securityhub.CfnPolicyAssociation.Builder + = software.amazon.awscdk.services.securityhub.CfnPolicyAssociation.Builder.create(scope, id) + + /** + * The universally unique identifier (UUID) of the configuration policy. + * + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-configurationpolicyid) + * @param configurationPolicyId The universally unique identifier (UUID) of the configuration + * policy. + */ + override fun configurationPolicyId(configurationPolicyId: String) { + cdkBuilder.configurationPolicyId(configurationPolicyId) + } + + /** + * The identifier of the target account, organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targetid) + * @param targetId The identifier of the target account, organizational unit, or the root. + */ + override fun targetId(targetId: String) { + cdkBuilder.targetId(targetId) + } + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targettype) + * @param targetType Specifies whether the target is an AWS account , organizational unit, or + * the root. + */ + override fun targetType(targetType: String) { + cdkBuilder.targetType(targetType) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnPolicyAssociation = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securityhub.CfnPolicyAssociation.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnPolicyAssociation { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnPolicyAssociation(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnPolicyAssociation): + CfnPolicyAssociation = CfnPolicyAssociation(cdkObject) + + internal fun unwrap(wrapped: CfnPolicyAssociation): + software.amazon.awscdk.services.securityhub.CfnPolicyAssociation = wrapped.cdkObject as + software.amazon.awscdk.services.securityhub.CfnPolicyAssociation + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociationProps.kt new file mode 100644 index 0000000000..8b584d3c54 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnPolicyAssociationProps.kt @@ -0,0 +1,158 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnPolicyAssociation`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnPolicyAssociationProps cfnPolicyAssociationProps = CfnPolicyAssociationProps.builder() + * .configurationPolicyId("configurationPolicyId") + * .targetId("targetId") + * .targetType("targetType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html) + */ +public interface CfnPolicyAssociationProps { + /** + * The universally unique identifier (UUID) of the configuration policy. + * + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-configurationpolicyid) + */ + public fun configurationPolicyId(): String + + /** + * The identifier of the target account, organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targetid) + */ + public fun targetId(): String + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targettype) + */ + public fun targetType(): String + + /** + * A builder for [CfnPolicyAssociationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configurationPolicyId The universally unique identifier (UUID) of the configuration + * policy. + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + */ + public fun configurationPolicyId(configurationPolicyId: String) + + /** + * @param targetId The identifier of the target account, organizational unit, or the root. + */ + public fun targetId(targetId: String) + + /** + * @param targetType Specifies whether the target is an AWS account , organizational unit, or + * the root. + */ + public fun targetType(targetType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps.Builder = + software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps.builder() + + /** + * @param configurationPolicyId The universally unique identifier (UUID) of the configuration + * policy. + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + */ + override fun configurationPolicyId(configurationPolicyId: String) { + cdkBuilder.configurationPolicyId(configurationPolicyId) + } + + /** + * @param targetId The identifier of the target account, organizational unit, or the root. + */ + override fun targetId(targetId: String) { + cdkBuilder.targetId(targetId) + } + + /** + * @param targetType Specifies whether the target is an AWS account , organizational unit, or + * the root. + */ + override fun targetType(targetType: String) { + cdkBuilder.targetType(targetType) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps, + ) : CdkObject(cdkObject), + CfnPolicyAssociationProps { + /** + * The universally unique identifier (UUID) of the configuration policy. + * + * A self-managed configuration has no UUID. The identifier of a self-managed configuration is + * `SELF_MANAGED_SECURITY_HUB` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-configurationpolicyid) + */ + override fun configurationPolicyId(): String = unwrap(this).getConfigurationPolicyId() + + /** + * The identifier of the target account, organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targetid) + */ + override fun targetId(): String = unwrap(this).getTargetId() + + /** + * Specifies whether the target is an AWS account , organizational unit, or the root. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-policyassociation.html#cfn-securityhub-policyassociation-targettype) + */ + override fun targetType(): String = unwrap(this).getTargetType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnPolicyAssociationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps): + CfnPolicyAssociationProps = CdkObjectWrappers.wrap(cdkObject) as? CfnPolicyAssociationProps + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnPolicyAssociationProps): + software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnPolicyAssociationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscription.kt index 007a04f919..6971e1a2aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscription.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProductSubscription( cdkObject: software.amazon.awscdk.services.securityhub.CfnProductSubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscriptionProps.kt index 2a64350097..e3f4eb59cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnProductSubscriptionProps.kt @@ -61,7 +61,8 @@ public interface CfnProductSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnProductSubscriptionProps, - ) : CdkObject(cdkObject), CfnProductSubscriptionProps { + ) : CdkObject(cdkObject), + CfnProductSubscriptionProps { /** * The ARN of the product to enable the integration for. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControl.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControl.kt new file mode 100644 index 0000000000..e73e8ba126 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControl.kt @@ -0,0 +1,825 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Boolean +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * The `AWS::SecurityHub::SecurityControl` resource specifies custom parameter values for an AWS + * Security Hub control. + * + * For a list of controls that support custom parameters, see [Security Hub controls + * reference](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-controls-reference.html) + * . You can also use this resource to specify the use of default parameter values for a control. For + * more information about custom parameters, see [Custom control + * parameters](https://docs.aws.amazon.com/securityhub/latest/userguide/custom-control-parameters.html) + * in the *AWS Security Hub User Guide* . + * + * Tags aren't supported for this resource. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnSecurityControl cfnSecurityControl = CfnSecurityControl.Builder.create(this, + * "MyCfnSecurityControl") + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * // the properties below are optional + * .lastUpdateReason("lastUpdateReason") + * .securityControlArn("securityControlArn") + * .securityControlId("securityControlId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html) + */ +public open class CfnSecurityControl( + cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSecurityControlProps, + ) : + this(software.amazon.awscdk.services.securityhub.CfnSecurityControl(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnSecurityControlProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSecurityControlProps.Builder.() -> Unit, + ) : this(scope, id, CfnSecurityControlProps(props) + ) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The most recent reason for updating the customizable properties of a security control. + */ + public open fun lastUpdateReason(): String? = unwrap(this).getLastUpdateReason() + + /** + * The most recent reason for updating the customizable properties of a security control. + */ + public open fun lastUpdateReason(`value`: String) { + unwrap(this).setLastUpdateReason(`value`) + } + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + */ + public open fun parameters(): Any = unwrap(this).getParameters() + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + */ + public open fun parameters(`value`: IResolvable) { + unwrap(this).setParameters(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + */ + public open fun parameters(`value`: Map) { + unwrap(this).setParameters(`value`.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + */ + public open fun securityControlArn(): String? = unwrap(this).getSecurityControlArn() + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + */ + public open fun securityControlArn(`value`: String) { + unwrap(this).setSecurityControlArn(`value`) + } + + /** + * The unique identifier of a security control across standards. + */ + public open fun securityControlId(): String? = unwrap(this).getSecurityControlId() + + /** + * The unique identifier of a security control across standards. + */ + public open fun securityControlId(`value`: String) { + unwrap(this).setSecurityControlId(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.securityhub.CfnSecurityControl]. + */ + @CdkDslMarker + public interface Builder { + /** + * The most recent reason for updating the customizable properties of a security control. + * + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-lastupdatereason) + * @param lastUpdateReason The most recent reason for updating the customizable properties of a + * security control. + */ + public fun lastUpdateReason(lastUpdateReason: String) + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + public fun parameters(parameters: IResolvable) + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + public fun parameters(parameters: Map) + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolarn) + * @param securityControlArn The Amazon Resource Name (ARN) for a security control across + * standards, such as `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This + * parameter doesn't mention a specific standard. + */ + public fun securityControlArn(securityControlArn: String) + + /** + * The unique identifier of a security control across standards. + * + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolid) + * @param securityControlId The unique identifier of a security control across standards. + */ + public fun securityControlId(securityControlId: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.securityhub.CfnSecurityControl.Builder = + software.amazon.awscdk.services.securityhub.CfnSecurityControl.Builder.create(scope, id) + + /** + * The most recent reason for updating the customizable properties of a security control. + * + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-lastupdatereason) + * @param lastUpdateReason The most recent reason for updating the customizable properties of a + * security control. + */ + override fun lastUpdateReason(lastUpdateReason: String) { + cdkBuilder.lastUpdateReason(lastUpdateReason) + } + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolarn) + * @param securityControlArn The Amazon Resource Name (ARN) for a security control across + * standards, such as `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This + * parameter doesn't mention a specific standard. + */ + override fun securityControlArn(securityControlArn: String) { + cdkBuilder.securityControlArn(securityControlArn) + } + + /** + * The unique identifier of a security control across standards. + * + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolid) + * @param securityControlId The unique identifier of a security control across standards. + */ + override fun securityControlId(securityControlId: String) { + cdkBuilder.securityControlId(securityControlId) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnSecurityControl = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securityhub.CfnSecurityControl.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnSecurityControl { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnSecurityControl(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl): + CfnSecurityControl = CfnSecurityControl(cdkObject) + + internal fun unwrap(wrapped: CfnSecurityControl): + software.amazon.awscdk.services.securityhub.CfnSecurityControl = wrapped.cdkObject as + software.amazon.awscdk.services.securityhub.CfnSecurityControl + } + + /** + * An object that provides the current value of a security control parameter and identifies + * whether it has been customized. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * ParameterConfigurationProperty parameterConfigurationProperty = + * ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html) + */ + public interface ParameterConfigurationProperty { + /** + * The current value of a control parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html#cfn-securityhub-securitycontrol-parameterconfiguration-value) + */ + public fun `value`(): Any? = unwrap(this).getValue() + + /** + * Identifies whether a control parameter uses a custom user-defined value or subscribes to the + * default AWS Security Hub behavior. + * + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific Security + * Hub default value, or the default behavior can be to ignore a specific parameter. When + * `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the `Value` + * field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html#cfn-securityhub-securitycontrol-parameterconfiguration-valuetype) + */ + public fun valueType(): String + + /** + * A builder for [ParameterConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param value The current value of a control parameter. + */ + public fun `value`(`value`: IResolvable) + + /** + * @param value The current value of a control parameter. + */ + public fun `value`(`value`: ParameterValueProperty) + + /** + * @param value The current value of a control parameter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1970bd9e66d295224a8cc76102348b3b5c112a97273e5e89f57360d526af1e93") + public fun `value`(`value`: ParameterValueProperty.Builder.() -> Unit) + + /** + * @param valueType Identifies whether a control parameter uses a custom user-defined value or + * subscribes to the default AWS Security Hub behavior. + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + */ + public fun valueType(valueType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty.builder() + + /** + * @param value The current value of a control parameter. + */ + override fun `value`(`value`: IResolvable) { + cdkBuilder.`value`(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * @param value The current value of a control parameter. + */ + override fun `value`(`value`: ParameterValueProperty) { + cdkBuilder.`value`(`value`.let(ParameterValueProperty.Companion::unwrap)) + } + + /** + * @param value The current value of a control parameter. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1970bd9e66d295224a8cc76102348b3b5c112a97273e5e89f57360d526af1e93") + override fun `value`(`value`: ParameterValueProperty.Builder.() -> Unit): Unit = + `value`(ParameterValueProperty(`value`)) + + /** + * @param valueType Identifies whether a control parameter uses a custom user-defined value or + * subscribes to the default AWS Security Hub behavior. + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + */ + override fun valueType(valueType: String) { + cdkBuilder.valueType(valueType) + } + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty, + ) : CdkObject(cdkObject), + ParameterConfigurationProperty { + /** + * The current value of a control parameter. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html#cfn-securityhub-securitycontrol-parameterconfiguration-value) + */ + override fun `value`(): Any? = unwrap(this).getValue() + + /** + * Identifies whether a control parameter uses a custom user-defined value or subscribes to + * the default AWS Security Hub behavior. + * + * When `ValueType` is set equal to `DEFAULT` , the default behavior can be a specific + * Security Hub default value, or the default behavior can be to ignore a specific parameter. + * When `ValueType` is set equal to `DEFAULT` , Security Hub ignores user-provided input for the + * `Value` field. + * + * When `ValueType` is set equal to `CUSTOM` , the `Value` field can't be empty. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parameterconfiguration.html#cfn-securityhub-securitycontrol-parameterconfiguration-valuetype) + */ + override fun valueType(): String = unwrap(this).getValueType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParameterConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty): + ParameterConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + ParameterConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParameterConfigurationProperty): + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterConfigurationProperty + } + } + + /** + * An object that includes the data type of a security control parameter and its current value. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * ParameterValueProperty parameterValueProperty = ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html) + */ + public interface ParameterValueProperty { + /** + * A control parameter that is a boolean. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-boolean) + */ + public fun booleanValue(): Any? = unwrap(this).getBooleanValue() + + /** + * A control parameter that is a double. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-double) + */ + public fun doubleValue(): Number? = unwrap(this).getDoubleValue() + + /** + * A control parameter that is a list of enums. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-enumlist) + */ + public fun enumList(): List = unwrap(this).getEnumList() ?: emptyList() + + /** + * A control parameter that is an enum. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-enum) + */ + public fun enumValue(): String? = unwrap(this).getEnumValue() + + /** + * A control parameter that is an integer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-integer) + */ + public fun integer(): Number? = unwrap(this).getInteger() + + /** + * A control parameter that is a list of integers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-integerlist) + */ + public fun integerList(): Any? = unwrap(this).getIntegerList() + + /** + * A control parameter that is a string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-string) + */ + public fun string(): String? = unwrap(this).getString() + + /** + * A control parameter that is a list of strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-stringlist) + */ + public fun stringList(): List = unwrap(this).getStringList() ?: emptyList() + + /** + * A builder for [ParameterValueProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param booleanValue A control parameter that is a boolean. + */ + public fun booleanValue(booleanValue: Boolean) + + /** + * @param booleanValue A control parameter that is a boolean. + */ + public fun booleanValue(booleanValue: IResolvable) + + /** + * @param doubleValue A control parameter that is a double. + */ + public fun doubleValue(doubleValue: Number) + + /** + * @param enumList A control parameter that is a list of enums. + */ + public fun enumList(enumList: List) + + /** + * @param enumList A control parameter that is a list of enums. + */ + public fun enumList(vararg enumList: String) + + /** + * @param enumValue A control parameter that is an enum. + */ + public fun enumValue(enumValue: String) + + /** + * @param integer A control parameter that is an integer. + */ + public fun integer(integer: Number) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(integerList: IResolvable) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(integerList: List) + + /** + * @param integerList A control parameter that is a list of integers. + */ + public fun integerList(vararg integerList: Number) + + /** + * @param string A control parameter that is a string. + */ + public fun string(string: String) + + /** + * @param stringList A control parameter that is a list of strings. + */ + public fun stringList(stringList: List) + + /** + * @param stringList A control parameter that is a list of strings. + */ + public fun stringList(vararg stringList: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty.Builder + = + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty.builder() + + /** + * @param booleanValue A control parameter that is a boolean. + */ + override fun booleanValue(booleanValue: Boolean) { + cdkBuilder.booleanValue(booleanValue) + } + + /** + * @param booleanValue A control parameter that is a boolean. + */ + override fun booleanValue(booleanValue: IResolvable) { + cdkBuilder.booleanValue(booleanValue.let(IResolvable.Companion::unwrap)) + } + + /** + * @param doubleValue A control parameter that is a double. + */ + override fun doubleValue(doubleValue: Number) { + cdkBuilder.doubleValue(doubleValue) + } + + /** + * @param enumList A control parameter that is a list of enums. + */ + override fun enumList(enumList: List) { + cdkBuilder.enumList(enumList) + } + + /** + * @param enumList A control parameter that is a list of enums. + */ + override fun enumList(vararg enumList: String): Unit = enumList(enumList.toList()) + + /** + * @param enumValue A control parameter that is an enum. + */ + override fun enumValue(enumValue: String) { + cdkBuilder.enumValue(enumValue) + } + + /** + * @param integer A control parameter that is an integer. + */ + override fun integer(integer: Number) { + cdkBuilder.integer(integer) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(integerList: IResolvable) { + cdkBuilder.integerList(integerList.let(IResolvable.Companion::unwrap)) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(integerList: List) { + cdkBuilder.integerList(integerList) + } + + /** + * @param integerList A control parameter that is a list of integers. + */ + override fun integerList(vararg integerList: Number): Unit = integerList(integerList.toList()) + + /** + * @param string A control parameter that is a string. + */ + override fun string(string: String) { + cdkBuilder.string(string) + } + + /** + * @param stringList A control parameter that is a list of strings. + */ + override fun stringList(stringList: List) { + cdkBuilder.stringList(stringList) + } + + /** + * @param stringList A control parameter that is a list of strings. + */ + override fun stringList(vararg stringList: String): Unit = stringList(stringList.toList()) + + public fun build(): + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty, + ) : CdkObject(cdkObject), + ParameterValueProperty { + /** + * A control parameter that is a boolean. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-boolean) + */ + override fun booleanValue(): Any? = unwrap(this).getBooleanValue() + + /** + * A control parameter that is a double. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-double) + */ + override fun doubleValue(): Number? = unwrap(this).getDoubleValue() + + /** + * A control parameter that is a list of enums. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-enumlist) + */ + override fun enumList(): List = unwrap(this).getEnumList() ?: emptyList() + + /** + * A control parameter that is an enum. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-enum) + */ + override fun enumValue(): String? = unwrap(this).getEnumValue() + + /** + * A control parameter that is an integer. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-integer) + */ + override fun integer(): Number? = unwrap(this).getInteger() + + /** + * A control parameter that is a list of integers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-integerlist) + */ + override fun integerList(): Any? = unwrap(this).getIntegerList() + + /** + * A control parameter that is a string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-string) + */ + override fun string(): String? = unwrap(this).getString() + + /** + * A control parameter that is a list of strings. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-securitycontrol-parametervalue.html#cfn-securityhub-securitycontrol-parametervalue-stringlist) + */ + override fun stringList(): List = unwrap(this).getStringList() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ParameterValueProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty): + ParameterValueProperty = CdkObjectWrappers.wrap(cdkObject) as? ParameterValueProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ParameterValueProperty): + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securityhub.CfnSecurityControl.ParameterValueProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControlProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControlProps.kt new file mode 100644 index 0000000000..38e12f6720 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnSecurityControlProps.kt @@ -0,0 +1,244 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securityhub + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map + +/** + * Properties for defining a `CfnSecurityControl`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securityhub.*; + * CfnSecurityControlProps cfnSecurityControlProps = CfnSecurityControlProps.builder() + * .parameters(Map.of( + * "parametersKey", ParameterConfigurationProperty.builder() + * .valueType("valueType") + * // the properties below are optional + * .value(ParameterValueProperty.builder() + * .boolean(false) + * .double(123) + * .enum("enum") + * .enumList(List.of("enumList")) + * .integer(123) + * .integerList(List.of(123)) + * .string("string") + * .stringList(List.of("stringList")) + * .build()) + * .build())) + * // the properties below are optional + * .lastUpdateReason("lastUpdateReason") + * .securityControlArn("securityControlArn") + * .securityControlId("securityControlId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html) + */ +public interface CfnSecurityControlProps { + /** + * The most recent reason for updating the customizable properties of a security control. + * + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-lastupdatereason) + */ + public fun lastUpdateReason(): String? = unwrap(this).getLastUpdateReason() + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + */ + public fun parameters(): Any + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolarn) + */ + public fun securityControlArn(): String? = unwrap(this).getSecurityControlArn() + + /** + * The unique identifier of a security control across standards. + * + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolid) + */ + public fun securityControlId(): String? = unwrap(this).getSecurityControlId() + + /** + * A builder for [CfnSecurityControlProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param lastUpdateReason The most recent reason for updating the customizable properties of a + * security control. + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + */ + public fun lastUpdateReason(lastUpdateReason: String) + + /** + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + public fun parameters(parameters: IResolvable) + + /** + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + public fun parameters(parameters: Map) + + /** + * @param securityControlArn The Amazon Resource Name (ARN) for a security control across + * standards, such as `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This + * parameter doesn't mention a specific standard. + */ + public fun securityControlArn(securityControlArn: String) + + /** + * @param securityControlId The unique identifier of a security control across standards. + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + */ + public fun securityControlId(securityControlId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securityhub.CfnSecurityControlProps.Builder = + software.amazon.awscdk.services.securityhub.CfnSecurityControlProps.builder() + + /** + * @param lastUpdateReason The most recent reason for updating the customizable properties of a + * security control. + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + */ + override fun lastUpdateReason(lastUpdateReason: String) { + cdkBuilder.lastUpdateReason(lastUpdateReason) + } + + /** + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parameters An object that identifies the name of a control parameter, its current + * value, and whether it has been customized. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param securityControlArn The Amazon Resource Name (ARN) for a security control across + * standards, such as `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This + * parameter doesn't mention a specific standard. + */ + override fun securityControlArn(securityControlArn: String) { + cdkBuilder.securityControlArn(securityControlArn) + } + + /** + * @param securityControlId The unique identifier of a security control across standards. + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + */ + override fun securityControlId(securityControlId: String) { + cdkBuilder.securityControlId(securityControlId) + } + + public fun build(): software.amazon.awscdk.services.securityhub.CfnSecurityControlProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControlProps, + ) : CdkObject(cdkObject), + CfnSecurityControlProps { + /** + * The most recent reason for updating the customizable properties of a security control. + * + * This differs from the `UpdateReason` field of the + * [`BatchUpdateStandardsControlAssociations`](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateStandardsControlAssociations.html) + * API, which tracks the reason for updating the enablement status of a control. This field accepts + * alphanumeric characters in addition to white spaces, dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-lastupdatereason) + */ + override fun lastUpdateReason(): String? = unwrap(this).getLastUpdateReason() + + /** + * An object that identifies the name of a control parameter, its current value, and whether it + * has been customized. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-parameters) + */ + override fun parameters(): Any = unwrap(this).getParameters() + + /** + * The Amazon Resource Name (ARN) for a security control across standards, such as + * `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't + * mention a specific standard. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolarn) + */ + override fun securityControlArn(): String? = unwrap(this).getSecurityControlArn() + + /** + * The unique identifier of a security control across standards. + * + * Values for this field typically consist of an AWS service name and a number, such as + * APIGateway.3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html#cfn-securityhub-securitycontrol-securitycontrolid) + */ + override fun securityControlId(): String? = unwrap(this).getSecurityControlId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnSecurityControlProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securityhub.CfnSecurityControlProps): + CfnSecurityControlProps = CdkObjectWrappers.wrap(cdkObject) as? CfnSecurityControlProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnSecurityControlProps): + software.amazon.awscdk.services.securityhub.CfnSecurityControlProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.securityhub.CfnSecurityControlProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandard.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandard.kt index f28119ec2d..854f9641b7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandard.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandard.kt @@ -52,7 +52,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStandard( cdkObject: software.amazon.awscdk.services.securityhub.CfnStandard, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -334,7 +335,8 @@ public open class CfnStandard( private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnStandard.StandardsControlProperty, - ) : CdkObject(cdkObject), StandardsControlProperty { + ) : CdkObject(cdkObject), + StandardsControlProperty { /** * A user-defined reason for changing a control's enablement status in a specified standard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandardProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandardProps.kt index cb72851e40..810cadcb25 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandardProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securityhub/CfnStandardProps.kt @@ -129,7 +129,8 @@ public interface CfnStandardProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securityhub.CfnStandardProps, - ) : CdkObject(cdkObject), CfnStandardProps { + ) : CdkObject(cdkObject), + CfnStandardProps { /** * Specifies which controls are to be disabled in a standard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSource.kt index 9130296a70..ec15137909 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSource.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAwsLogSource( cdkObject: software.amazon.awscdk.services.securitylake.CfnAwsLogSource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSourceProps.kt index f6e6932a46..741d452bfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnAwsLogSourceProps.kt @@ -156,7 +156,8 @@ public interface CfnAwsLogSourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnAwsLogSourceProps, - ) : CdkObject(cdkObject), CfnAwsLogSourceProps { + ) : CdkObject(cdkObject), + CfnAwsLogSourceProps { /** * Specify the AWS account information where you want to enable Security Lake. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLake.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLake.kt index be2b720d24..70e842b16a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLake.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLake.kt @@ -73,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDataLake( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.securitylake.CfnDataLake(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -643,7 +645,8 @@ public open class CfnDataLake( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake.EncryptionConfigurationProperty, - ) : CdkObject(cdkObject), EncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { /** * The ID of KMS encryption key used by Amazon Security Lake to encrypt the Security Lake * object. @@ -731,7 +734,8 @@ public open class CfnDataLake( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake.ExpirationProperty, - ) : CdkObject(cdkObject), ExpirationProperty { + ) : CdkObject(cdkObject), + ExpirationProperty { /** * The number of days before data expires in the Amazon Security Lake object. * @@ -929,7 +933,8 @@ public open class CfnDataLake( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake.LifecycleConfigurationProperty, - ) : CdkObject(cdkObject), LifecycleConfigurationProperty { + ) : CdkObject(cdkObject), + LifecycleConfigurationProperty { /** * Provides data expiration details of the Amazon Security Lake object. * @@ -1106,7 +1111,8 @@ public open class CfnDataLake( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake.ReplicationConfigurationProperty, - ) : CdkObject(cdkObject), ReplicationConfigurationProperty { + ) : CdkObject(cdkObject), + ReplicationConfigurationProperty { /** * Specifies one or more centralized rollup Regions. * @@ -1241,7 +1247,8 @@ public open class CfnDataLake( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLake.TransitionsProperty, - ) : CdkObject(cdkObject), TransitionsProperty { + ) : CdkObject(cdkObject), + TransitionsProperty { /** * The number of days before data transitions to a different S3 Storage Class in the Amazon * Security Lake object. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLakeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLakeProps.kt index 25c7a5815f..e5ed140456 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLakeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnDataLakeProps.kt @@ -333,7 +333,8 @@ public interface CfnDataLakeProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnDataLakeProps, - ) : CdkObject(cdkObject), CfnDataLakeProps { + ) : CdkObject(cdkObject), + CfnDataLakeProps { /** * Provides encryption details of the Amazon Security Lake object. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriber.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriber.kt index b22f38d13e..8c33e43009 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriber.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriber.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscriber( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriber, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -688,7 +690,8 @@ public open class CfnSubscriber( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriber.AwsLogSourceProperty, - ) : CdkObject(cdkObject), AwsLogSourceProperty { + ) : CdkObject(cdkObject), + AwsLogSourceProperty { /** * Source name of the natively supported AWS service that is supported as an Amazon Security * Lake source. @@ -811,7 +814,8 @@ public open class CfnSubscriber( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriber.CustomLogSourceProperty, - ) : CdkObject(cdkObject), CustomLogSourceProperty { + ) : CdkObject(cdkObject), + CustomLogSourceProperty { /** * The name of the custom log source. * @@ -996,7 +1000,8 @@ public open class CfnSubscriber( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriber.SourceProperty, - ) : CdkObject(cdkObject), SourceProperty { + ) : CdkObject(cdkObject), + SourceProperty { /** * The natively supported AWS service which is used a Amazon Security Lake source to collect * logs and events from. @@ -1111,7 +1116,8 @@ public open class CfnSubscriber( private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriber.SubscriberIdentityProperty, - ) : CdkObject(cdkObject), SubscriberIdentityProperty { + ) : CdkObject(cdkObject), + SubscriberIdentityProperty { /** * The external ID is a unique identifier that the subscriber provides to you. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotification.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotification.kt new file mode 100644 index 0000000000..c44994c548 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotification.kt @@ -0,0 +1,664 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securitylake + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Notifies the subscriber when new data is written to the data lake for the sources that the + * subscriber consumes in Security Lake. + * + * You can create only one subscriber notification per subscriber. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securitylake.*; + * Object sqsNotificationConfiguration; + * CfnSubscriberNotification cfnSubscriberNotification = + * CfnSubscriberNotification.Builder.create(this, "MyCfnSubscriberNotification") + * .notificationConfiguration(NotificationConfigurationProperty.builder() + * .httpsNotificationConfiguration(HttpsNotificationConfigurationProperty.builder() + * .endpoint("endpoint") + * .targetRoleArn("targetRoleArn") + * // the properties below are optional + * .authorizationApiKeyName("authorizationApiKeyName") + * .authorizationApiKeyValue("authorizationApiKeyValue") + * .httpMethod("httpMethod") + * .build()) + * .sqsNotificationConfiguration(sqsNotificationConfiguration) + * .build()) + * .subscriberArn("subscriberArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html) + */ +public open class CfnSubscriberNotification( + cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSubscriberNotificationProps, + ) : + this(software.amazon.awscdk.services.securitylake.CfnSubscriberNotification(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnSubscriberNotificationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnSubscriberNotificationProps.Builder.() -> Unit, + ) : this(scope, id, CfnSubscriberNotificationProps(props) + ) + + /** + * The endpoint the subscriber should listen to for notifications. + */ + public open fun attrSubscriberEndpoint(): String = unwrap(this).getAttrSubscriberEndpoint() + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * Specify the configurations you want to use for subscriber notification. + */ + public open fun notificationConfiguration(): Any = unwrap(this).getNotificationConfiguration() + + /** + * Specify the configurations you want to use for subscriber notification. + */ + public open fun notificationConfiguration(`value`: IResolvable) { + unwrap(this).setNotificationConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Specify the configurations you want to use for subscriber notification. + */ + public open fun notificationConfiguration(`value`: NotificationConfigurationProperty) { + unwrap(this).setNotificationConfiguration(`value`.let(NotificationConfigurationProperty.Companion::unwrap)) + } + + /** + * Specify the configurations you want to use for subscriber notification. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1dcfcc3923ca06269ea2783998dcce7ceaf2868ddb231ac2b0b5eca57cfb756") + public open + fun notificationConfiguration(`value`: NotificationConfigurationProperty.Builder.() -> Unit): + Unit = notificationConfiguration(NotificationConfigurationProperty(`value`)) + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + public open fun subscriberArn(): String = unwrap(this).getSubscriberArn() + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + public open fun subscriberArn(`value`: String) { + unwrap(this).setSubscriberArn(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.securitylake.CfnSubscriberNotification]. + */ + @CdkDslMarker + public interface Builder { + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + public fun notificationConfiguration(notificationConfiguration: IResolvable) + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + public + fun notificationConfiguration(notificationConfiguration: NotificationConfigurationProperty) + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8c58da8abb7f0fbde900d72436c39291fa324e5bdcb36f15b1031f1fc5c801a4") + public + fun notificationConfiguration(notificationConfiguration: NotificationConfigurationProperty.Builder.() -> Unit) + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-subscriberarn) + * @param subscriberArn The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + public fun subscriberArn(subscriberArn: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.Builder = + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.Builder.create(scope, + id) + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + override fun notificationConfiguration(notificationConfiguration: IResolvable) { + cdkBuilder.notificationConfiguration(notificationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + override + fun notificationConfiguration(notificationConfiguration: NotificationConfigurationProperty) { + cdkBuilder.notificationConfiguration(notificationConfiguration.let(NotificationConfigurationProperty.Companion::unwrap)) + } + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8c58da8abb7f0fbde900d72436c39291fa324e5bdcb36f15b1031f1fc5c801a4") + override + fun notificationConfiguration(notificationConfiguration: NotificationConfigurationProperty.Builder.() -> Unit): + Unit = + notificationConfiguration(NotificationConfigurationProperty(notificationConfiguration)) + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-subscriberarn) + * @param subscriberArn The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + override fun subscriberArn(subscriberArn: String) { + cdkBuilder.subscriberArn(subscriberArn) + } + + public fun build(): software.amazon.awscdk.services.securitylake.CfnSubscriberNotification = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnSubscriberNotification { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnSubscriberNotification(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification): + CfnSubscriberNotification = CfnSubscriberNotification(cdkObject) + + internal fun unwrap(wrapped: CfnSubscriberNotification): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification = wrapped.cdkObject + as software.amazon.awscdk.services.securitylake.CfnSubscriberNotification + } + + /** + * Specify the configurations you want to use for HTTPS subscriber notification. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securitylake.*; + * HttpsNotificationConfigurationProperty httpsNotificationConfigurationProperty = + * HttpsNotificationConfigurationProperty.builder() + * .endpoint("endpoint") + * .targetRoleArn("targetRoleArn") + * // the properties below are optional + * .authorizationApiKeyName("authorizationApiKeyName") + * .authorizationApiKeyValue("authorizationApiKeyValue") + * .httpMethod("httpMethod") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html) + */ + public interface HttpsNotificationConfigurationProperty { + /** + * The key name for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyname) + */ + public fun authorizationApiKeyName(): String? = unwrap(this).getAuthorizationApiKeyName() + + /** + * The key value for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyvalue) + */ + public fun authorizationApiKeyValue(): String? = unwrap(this).getAuthorizationApiKeyValue() + + /** + * The subscription endpoint in Security Lake . + * + * If you prefer notification with an HTTPS endpoint, populate this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-endpoint) + */ + public fun endpoint(): String + + /** + * The HTTPS method used for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-httpmethod) + */ + public fun httpMethod(): String? = unwrap(this).getHttpMethod() + + /** + * The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created. + * + * For more information about ARNs and how to use them in policies, see [Managing data + * access](https://docs.aws.amazon.com///security-lake/latest/userguide/subscriber-data-access.html) + * and [AWS Managed + * Policies](https://docs.aws.amazon.com//security-lake/latest/userguide/security-iam-awsmanpol.html) + * in the *Amazon Security Lake User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-targetrolearn) + */ + public fun targetRoleArn(): String + + /** + * A builder for [HttpsNotificationConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param authorizationApiKeyName The key name for the notification subscription. + */ + public fun authorizationApiKeyName(authorizationApiKeyName: String) + + /** + * @param authorizationApiKeyValue The key value for the notification subscription. + */ + public fun authorizationApiKeyValue(authorizationApiKeyValue: String) + + /** + * @param endpoint The subscription endpoint in Security Lake . + * If you prefer notification with an HTTPS endpoint, populate this field. + */ + public fun endpoint(endpoint: String) + + /** + * @param httpMethod The HTTPS method used for the notification subscription. + */ + public fun httpMethod(httpMethod: String) + + /** + * @param targetRoleArn The Amazon Resource Name (ARN) of the EventBridge API destinations IAM + * role that you created. + * For more information about ARNs and how to use them in policies, see [Managing data + * access](https://docs.aws.amazon.com///security-lake/latest/userguide/subscriber-data-access.html) + * and [AWS Managed + * Policies](https://docs.aws.amazon.com//security-lake/latest/userguide/security-iam-awsmanpol.html) + * in the *Amazon Security Lake User Guide* . + */ + public fun targetRoleArn(targetRoleArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty.Builder + = + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty.builder() + + /** + * @param authorizationApiKeyName The key name for the notification subscription. + */ + override fun authorizationApiKeyName(authorizationApiKeyName: String) { + cdkBuilder.authorizationApiKeyName(authorizationApiKeyName) + } + + /** + * @param authorizationApiKeyValue The key value for the notification subscription. + */ + override fun authorizationApiKeyValue(authorizationApiKeyValue: String) { + cdkBuilder.authorizationApiKeyValue(authorizationApiKeyValue) + } + + /** + * @param endpoint The subscription endpoint in Security Lake . + * If you prefer notification with an HTTPS endpoint, populate this field. + */ + override fun endpoint(endpoint: String) { + cdkBuilder.endpoint(endpoint) + } + + /** + * @param httpMethod The HTTPS method used for the notification subscription. + */ + override fun httpMethod(httpMethod: String) { + cdkBuilder.httpMethod(httpMethod) + } + + /** + * @param targetRoleArn The Amazon Resource Name (ARN) of the EventBridge API destinations IAM + * role that you created. + * For more information about ARNs and how to use them in policies, see [Managing data + * access](https://docs.aws.amazon.com///security-lake/latest/userguide/subscriber-data-access.html) + * and [AWS Managed + * Policies](https://docs.aws.amazon.com//security-lake/latest/userguide/security-iam-awsmanpol.html) + * in the *Amazon Security Lake User Guide* . + */ + override fun targetRoleArn(targetRoleArn: String) { + cdkBuilder.targetRoleArn(targetRoleArn) + } + + public fun build(): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty, + ) : CdkObject(cdkObject), + HttpsNotificationConfigurationProperty { + /** + * The key name for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyname) + */ + override fun authorizationApiKeyName(): String? = unwrap(this).getAuthorizationApiKeyName() + + /** + * The key value for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyvalue) + */ + override fun authorizationApiKeyValue(): String? = unwrap(this).getAuthorizationApiKeyValue() + + /** + * The subscription endpoint in Security Lake . + * + * If you prefer notification with an HTTPS endpoint, populate this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-endpoint) + */ + override fun endpoint(): String = unwrap(this).getEndpoint() + + /** + * The HTTPS method used for the notification subscription. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-httpmethod) + */ + override fun httpMethod(): String? = unwrap(this).getHttpMethod() + + /** + * The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you + * created. + * + * For more information about ARNs and how to use them in policies, see [Managing data + * access](https://docs.aws.amazon.com///security-lake/latest/userguide/subscriber-data-access.html) + * and [AWS Managed + * Policies](https://docs.aws.amazon.com//security-lake/latest/userguide/security-iam-awsmanpol.html) + * in the *Amazon Security Lake User Guide* . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-targetrolearn) + */ + override fun targetRoleArn(): String = unwrap(this).getTargetRoleArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + HttpsNotificationConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty): + HttpsNotificationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + HttpsNotificationConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: HttpsNotificationConfigurationProperty): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.HttpsNotificationConfigurationProperty + } + } + + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securitylake.*; + * Object sqsNotificationConfiguration; + * NotificationConfigurationProperty notificationConfigurationProperty = + * NotificationConfigurationProperty.builder() + * .httpsNotificationConfiguration(HttpsNotificationConfigurationProperty.builder() + * .endpoint("endpoint") + * .targetRoleArn("targetRoleArn") + * // the properties below are optional + * .authorizationApiKeyName("authorizationApiKeyName") + * .authorizationApiKeyValue("authorizationApiKeyValue") + * .httpMethod("httpMethod") + * .build()) + * .sqsNotificationConfiguration(sqsNotificationConfiguration) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-notificationconfiguration.html) + */ + public interface NotificationConfigurationProperty { + /** + * The configurations used for HTTPS subscriber notification. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-notificationconfiguration.html#cfn-securitylake-subscribernotification-notificationconfiguration-httpsnotificationconfiguration) + */ + public fun httpsNotificationConfiguration(): Any? = + unwrap(this).getHttpsNotificationConfiguration() + + /** + * The configurations for SQS subscriber notification. + * + * The members of this structure are context-dependent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-notificationconfiguration.html#cfn-securitylake-subscribernotification-notificationconfiguration-sqsnotificationconfiguration) + */ + public fun sqsNotificationConfiguration(): Any? = unwrap(this).getSqsNotificationConfiguration() + + /** + * A builder for [NotificationConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + public fun httpsNotificationConfiguration(httpsNotificationConfiguration: IResolvable) + + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + public + fun httpsNotificationConfiguration(httpsNotificationConfiguration: HttpsNotificationConfigurationProperty) + + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4638443802d3192966e47fcafc39dafce49c68f4adafb0d669370d3629833c39") + public + fun httpsNotificationConfiguration(httpsNotificationConfiguration: HttpsNotificationConfigurationProperty.Builder.() -> Unit) + + /** + * @param sqsNotificationConfiguration The configurations for SQS subscriber notification. + * The members of this structure are context-dependent. + */ + public fun sqsNotificationConfiguration(sqsNotificationConfiguration: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty.Builder + = + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty.builder() + + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + override fun httpsNotificationConfiguration(httpsNotificationConfiguration: IResolvable) { + cdkBuilder.httpsNotificationConfiguration(httpsNotificationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + override + fun httpsNotificationConfiguration(httpsNotificationConfiguration: HttpsNotificationConfigurationProperty) { + cdkBuilder.httpsNotificationConfiguration(httpsNotificationConfiguration.let(HttpsNotificationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param httpsNotificationConfiguration The configurations used for HTTPS subscriber + * notification. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4638443802d3192966e47fcafc39dafce49c68f4adafb0d669370d3629833c39") + override + fun httpsNotificationConfiguration(httpsNotificationConfiguration: HttpsNotificationConfigurationProperty.Builder.() -> Unit): + Unit = + httpsNotificationConfiguration(HttpsNotificationConfigurationProperty(httpsNotificationConfiguration)) + + /** + * @param sqsNotificationConfiguration The configurations for SQS subscriber notification. + * The members of this structure are context-dependent. + */ + override fun sqsNotificationConfiguration(sqsNotificationConfiguration: Any) { + cdkBuilder.sqsNotificationConfiguration(sqsNotificationConfiguration) + } + + public fun build(): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty, + ) : CdkObject(cdkObject), + NotificationConfigurationProperty { + /** + * The configurations used for HTTPS subscriber notification. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-notificationconfiguration.html#cfn-securitylake-subscribernotification-notificationconfiguration-httpsnotificationconfiguration) + */ + override fun httpsNotificationConfiguration(): Any? = + unwrap(this).getHttpsNotificationConfiguration() + + /** + * The configurations for SQS subscriber notification. + * + * The members of this structure are context-dependent. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-notificationconfiguration.html#cfn-securitylake-subscribernotification-notificationconfiguration-sqsnotificationconfiguration) + */ + override fun sqsNotificationConfiguration(): Any? = + unwrap(this).getSqsNotificationConfiguration() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + NotificationConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty): + NotificationConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + NotificationConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: NotificationConfigurationProperty): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.securitylake.CfnSubscriberNotification.NotificationConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotificationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotificationProps.kt new file mode 100644 index 0000000000..ac51129485 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberNotificationProps.kt @@ -0,0 +1,188 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.securitylake + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnSubscriberNotification`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.securitylake.*; + * Object sqsNotificationConfiguration; + * CfnSubscriberNotificationProps cfnSubscriberNotificationProps = + * CfnSubscriberNotificationProps.builder() + * .notificationConfiguration(NotificationConfigurationProperty.builder() + * .httpsNotificationConfiguration(HttpsNotificationConfigurationProperty.builder() + * .endpoint("endpoint") + * .targetRoleArn("targetRoleArn") + * // the properties below are optional + * .authorizationApiKeyName("authorizationApiKeyName") + * .authorizationApiKeyValue("authorizationApiKeyValue") + * .httpMethod("httpMethod") + * .build()) + * .sqsNotificationConfiguration(sqsNotificationConfiguration) + * .build()) + * .subscriberArn("subscriberArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html) + */ +public interface CfnSubscriberNotificationProps { + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + */ + public fun notificationConfiguration(): Any + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-subscriberarn) + */ + public fun subscriberArn(): String + + /** + * A builder for [CfnSubscriberNotificationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + public fun notificationConfiguration(notificationConfiguration: IResolvable) + + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + public + fun notificationConfiguration(notificationConfiguration: CfnSubscriberNotification.NotificationConfigurationProperty) + + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1c3194637f51a16f001e43cb2898cd8d39f99fc420775a916b48942f60979889") + public + fun notificationConfiguration(notificationConfiguration: CfnSubscriberNotification.NotificationConfigurationProperty.Builder.() -> Unit) + + /** + * @param subscriberArn The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + public fun subscriberArn(subscriberArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps.Builder = + software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps.builder() + + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + override fun notificationConfiguration(notificationConfiguration: IResolvable) { + cdkBuilder.notificationConfiguration(notificationConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + override + fun notificationConfiguration(notificationConfiguration: CfnSubscriberNotification.NotificationConfigurationProperty) { + cdkBuilder.notificationConfiguration(notificationConfiguration.let(CfnSubscriberNotification.NotificationConfigurationProperty.Companion::unwrap)) + } + + /** + * @param notificationConfiguration Specify the configurations you want to use for subscriber + * notification. + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1c3194637f51a16f001e43cb2898cd8d39f99fc420775a916b48942f60979889") + override + fun notificationConfiguration(notificationConfiguration: CfnSubscriberNotification.NotificationConfigurationProperty.Builder.() -> Unit): + Unit = + notificationConfiguration(CfnSubscriberNotification.NotificationConfigurationProperty(notificationConfiguration)) + + /** + * @param subscriberArn The Amazon Resource Name (ARN) of the Security Lake subscriber. + */ + override fun subscriberArn(subscriberArn: String) { + cdkBuilder.subscriberArn(subscriberArn) + } + + public fun build(): software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps, + ) : CdkObject(cdkObject), + CfnSubscriberNotificationProps { + /** + * Specify the configurations you want to use for subscriber notification. + * + * The subscriber is notified when new data is written to the data lake for sources that the + * subscriber consumes in Security Lake . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-notificationconfiguration) + */ + override fun notificationConfiguration(): Any = unwrap(this).getNotificationConfiguration() + + /** + * The Amazon Resource Name (ARN) of the Security Lake subscriber. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securitylake-subscribernotification.html#cfn-securitylake-subscribernotification-subscriberarn) + */ + override fun subscriberArn(): String = unwrap(this).getSubscriberArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnSubscriberNotificationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps): + CfnSubscriberNotificationProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnSubscriberNotificationProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnSubscriberNotificationProps): + software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.securitylake.CfnSubscriberNotificationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberProps.kt index 0c8cd3421e..fa218a3cb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/securitylake/CfnSubscriberProps.kt @@ -335,7 +335,8 @@ public interface CfnSubscriberProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.securitylake.CfnSubscriberProps, - ) : CdkObject(cdkObject), CfnSubscriberProps { + ) : CdkObject(cdkObject), + CfnSubscriberProps { /** * You can choose to notify subscribers of new objects with an Amazon Simple Queue Service * (Amazon SQS) queue or through messaging to an HTTPS endpoint provided by the subscriber. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShare.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShare.kt index 0fe4bd50bd..d96a6b64a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShare.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShare.kt @@ -32,7 +32,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAcceptedPortfolioShare( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnAcceptedPortfolioShare, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShareProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShareProps.kt index 3af7545cfd..dadac923e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShareProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnAcceptedPortfolioShareProps.kt @@ -91,7 +91,8 @@ public interface CfnAcceptedPortfolioShareProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnAcceptedPortfolioShareProps, - ) : CdkObject(cdkObject), CfnAcceptedPortfolioShareProps { + ) : CdkObject(cdkObject), + CfnAcceptedPortfolioShareProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProduct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProduct.kt index 8987bd1f03..b3bd62872d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProduct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProduct.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCloudFormationProduct( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProduct, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -920,7 +922,8 @@ public open class CfnCloudFormationProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProduct.CodeStarParametersProperty, - ) : CdkObject(cdkObject), CodeStarParametersProperty { + ) : CdkObject(cdkObject), + CodeStarParametersProperty { /** * The absolute path wehre the artifact resides within the repo and branch, formatted as * "folder/file.json.". @@ -1059,7 +1062,8 @@ public open class CfnCloudFormationProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProduct.ConnectionParametersProperty, - ) : CdkObject(cdkObject), ConnectionParametersProperty { + ) : CdkObject(cdkObject), + ConnectionParametersProperty { /** * Provides `ConnectionType` details. * @@ -1295,7 +1299,8 @@ public open class CfnCloudFormationProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProduct.ProvisioningArtifactPropertiesProperty, - ) : CdkObject(cdkObject), ProvisioningArtifactPropertiesProperty { + ) : CdkObject(cdkObject), + ProvisioningArtifactPropertiesProperty { /** * The description of the provisioning artifact, including how it differs from the previous * provisioning artifact. @@ -1487,7 +1492,8 @@ public open class CfnCloudFormationProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProduct.SourceConnectionProperty, - ) : CdkObject(cdkObject), SourceConnectionProperty { + ) : CdkObject(cdkObject), + SourceConnectionProperty { /** * The connection details based on the connection `Type` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProductProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProductProps.kt index 0a953fa428..fee6e42c7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProductProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProductProps.kt @@ -496,7 +496,8 @@ public interface CfnCloudFormationProductProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProductProps, - ) : CdkObject(cdkObject), CfnCloudFormationProductProps { + ) : CdkObject(cdkObject), + CfnCloudFormationProductProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProduct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProduct.kt index d9b0a2e30e..6e5250807c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProduct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProduct.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCloudFormationProvisionedProduct( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProvisionedProduct, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProvisionedProduct(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -918,7 +920,8 @@ public open class CfnCloudFormationProvisionedProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProvisionedProduct.ProvisioningParameterProperty, - ) : CdkObject(cdkObject), ProvisioningParameterProperty { + ) : CdkObject(cdkObject), + ProvisioningParameterProperty { /** * The parameter key. * @@ -1431,7 +1434,8 @@ public open class CfnCloudFormationProvisionedProduct( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProvisionedProduct.ProvisioningPreferencesProperty, - ) : CdkObject(cdkObject), ProvisioningPreferencesProperty { + ) : CdkObject(cdkObject), + ProvisioningPreferencesProperty { /** * One or more AWS accounts where the provisioned product will be available. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProductProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProductProps.kt index 896881dc09..0643317d4f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProductProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnCloudFormationProvisionedProductProps.kt @@ -540,7 +540,8 @@ public interface CfnCloudFormationProvisionedProductProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnCloudFormationProvisionedProductProps, - ) : CdkObject(cdkObject), CfnCloudFormationProvisionedProductProps { + ) : CdkObject(cdkObject), + CfnCloudFormationProvisionedProductProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraint.kt index d4b94f7cb2..c4e9bf91f5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraint.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchNotificationConstraint( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchNotificationConstraint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraintProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraintProps.kt index a83227ca7b..c2640cd7c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraintProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchNotificationConstraintProps.kt @@ -164,7 +164,8 @@ public interface CfnLaunchNotificationConstraintProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchNotificationConstraintProps, - ) : CdkObject(cdkObject), CfnLaunchNotificationConstraintProps { + ) : CdkObject(cdkObject), + CfnLaunchNotificationConstraintProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraint.kt index dd9848c0ad..e1038ea20e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraint.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchRoleConstraint( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchRoleConstraint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraintProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraintProps.kt index 6290bde862..33eebe2c10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraintProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchRoleConstraintProps.kt @@ -195,7 +195,8 @@ public interface CfnLaunchRoleConstraintProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchRoleConstraintProps, - ) : CdkObject(cdkObject), CfnLaunchRoleConstraintProps { + ) : CdkObject(cdkObject), + CfnLaunchRoleConstraintProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraint.kt index 039a1953f6..4732a2b03e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraint.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLaunchTemplateConstraint( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchTemplateConstraint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraintProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraintProps.kt index ecb1592b3b..55873e6be5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraintProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnLaunchTemplateConstraintProps.kt @@ -151,7 +151,8 @@ public interface CfnLaunchTemplateConstraintProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnLaunchTemplateConstraintProps, - ) : CdkObject(cdkObject), CfnLaunchTemplateConstraintProps { + ) : CdkObject(cdkObject), + CfnLaunchTemplateConstraintProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolio.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolio.kt index d3db6ff967..4ae65b3e56 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolio.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolio.kt @@ -41,7 +41,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortfolio( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolio, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociation.kt index 8f07a6c9d1..5d83a45d6a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociation.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortfolioPrincipalAssociation( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioPrincipalAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociationProps.kt index b157bbdec7..be735c7729 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioPrincipalAssociationProps.kt @@ -136,7 +136,8 @@ public interface CfnPortfolioPrincipalAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioPrincipalAssociationProps, - ) : CdkObject(cdkObject), CfnPortfolioPrincipalAssociationProps { + ) : CdkObject(cdkObject), + CfnPortfolioPrincipalAssociationProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociation.kt index 5c5e6011be..4abf25564d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociation.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortfolioProductAssociation( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioProductAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociationProps.kt index 17f9cbee06..288f3977b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProductAssociationProps.kt @@ -131,7 +131,8 @@ public interface CfnPortfolioProductAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioProductAssociationProps, - ) : CdkObject(cdkObject), CfnPortfolioProductAssociationProps { + ) : CdkObject(cdkObject), + CfnPortfolioProductAssociationProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProps.kt index 20297f7d90..154c707a1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioProps.kt @@ -163,7 +163,8 @@ public interface CfnPortfolioProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioProps, - ) : CdkObject(cdkObject), CfnPortfolioProps { + ) : CdkObject(cdkObject), + CfnPortfolioProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShare.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShare.kt index 86eaf9cc1a..8275a19407 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShare.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShare.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortfolioShare( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioShare, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShareProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShareProps.kt index fdc827ea0e..31eac36595 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShareProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnPortfolioShareProps.kt @@ -152,7 +152,8 @@ public interface CfnPortfolioShareProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnPortfolioShareProps, - ) : CdkObject(cdkObject), CfnPortfolioShareProps { + ) : CdkObject(cdkObject), + CfnPortfolioShareProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraint.kt index f19992a86b..ec7a5c84a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraint.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceUpdateConstraint( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnResourceUpdateConstraint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraintProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraintProps.kt index cf83c35d89..148f76dea7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraintProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnResourceUpdateConstraintProps.kt @@ -167,7 +167,8 @@ public interface CfnResourceUpdateConstraintProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnResourceUpdateConstraintProps, - ) : CdkObject(cdkObject), CfnResourceUpdateConstraintProps { + ) : CdkObject(cdkObject), + CfnResourceUpdateConstraintProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceAction.kt index 23f8d89e21..28c5695f05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceAction.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceAction( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceAction, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -399,7 +400,8 @@ public open class CfnServiceAction( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceAction.DefinitionParameterProperty, - ) : CdkObject(cdkObject), DefinitionParameterProperty { + ) : CdkObject(cdkObject), + DefinitionParameterProperty { /** * The parameter key. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociation.kt index c98126a694..e9572ea969 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociation.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceActionAssociation( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociationProps.kt index 505c9ab938..5714c2de1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionAssociationProps.kt @@ -115,7 +115,8 @@ public interface CfnServiceActionAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceActionAssociationProps, - ) : CdkObject(cdkObject), CfnServiceActionAssociationProps { + ) : CdkObject(cdkObject), + CfnServiceActionAssociationProps { /** * The product identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionProps.kt index 0a54158918..bec7a39054 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnServiceActionProps.kt @@ -184,7 +184,8 @@ public interface CfnServiceActionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnServiceActionProps, - ) : CdkObject(cdkObject), CfnServiceActionProps { + ) : CdkObject(cdkObject), + CfnServiceActionProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraint.kt index 3c78df7ce8..43b632cb68 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraint.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraint.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStackSetConstraint( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnStackSetConstraint, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraintProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraintProps.kt index 1b69fd22e3..5550b5429b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraintProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnStackSetConstraintProps.kt @@ -294,7 +294,8 @@ public interface CfnStackSetConstraintProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnStackSetConstraintProps, - ) : CdkObject(cdkObject), CfnStackSetConstraintProps { + ) : CdkObject(cdkObject), + CfnStackSetConstraintProps { /** * The language code. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOption.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOption.kt index ec4ec0681b..5c3462ccd2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOption.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOption.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTagOption( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnTagOption, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociation.kt index 8dcd5934cc..8ff7a0abdb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociation.kt @@ -31,7 +31,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTagOptionAssociation( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnTagOptionAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociationProps.kt index 2bebe8e938..864eef25f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionAssociationProps.kt @@ -82,7 +82,8 @@ public interface CfnTagOptionAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnTagOptionAssociationProps, - ) : CdkObject(cdkObject), CfnTagOptionAssociationProps { + ) : CdkObject(cdkObject), + CfnTagOptionAssociationProps { /** * The resource identifier. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionProps.kt index 8cf1a422e2..9edabe5a0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CfnTagOptionProps.kt @@ -116,7 +116,8 @@ public interface CfnTagOptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CfnTagOptionProps, - ) : CdkObject(cdkObject), CfnTagOptionProps { + ) : CdkObject(cdkObject), + CfnTagOptionProps { /** * The TagOption active state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductProps.kt index 5f5c383d7b..28d7dbcc8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductProps.kt @@ -274,7 +274,8 @@ public interface CloudFormationProductProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CloudFormationProductProps, - ) : CdkObject(cdkObject), CloudFormationProductProps { + ) : CdkObject(cdkObject), + CloudFormationProductProps { /** * The description of the product. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductVersion.kt index 7c51531543..68ce3dbdc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationProductVersion.kt @@ -129,7 +129,8 @@ public interface CloudFormationProductVersion { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CloudFormationProductVersion, - ) : CdkObject(cdkObject), CloudFormationProductVersion { + ) : CdkObject(cdkObject), + CloudFormationProductVersion { /** * The S3 template that points to the provisioning version template. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationRuleConstraintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationRuleConstraintOptions.kt index d122419ee1..efc859ca9a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationRuleConstraintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationRuleConstraintOptions.kt @@ -107,7 +107,8 @@ public interface CloudFormationRuleConstraintOptions : CommonConstraintOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CloudFormationRuleConstraintOptions, - ) : CdkObject(cdkObject), CloudFormationRuleConstraintOptions { + ) : CdkObject(cdkObject), + CloudFormationRuleConstraintOptions { /** * The description of the constraint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationTemplateConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationTemplateConfig.kt index 2b1e959704..57298a418f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationTemplateConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CloudFormationTemplateConfig.kt @@ -82,7 +82,8 @@ public interface CloudFormationTemplateConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CloudFormationTemplateConfig, - ) : CdkObject(cdkObject), CloudFormationTemplateConfig { + ) : CdkObject(cdkObject), + CloudFormationTemplateConfig { /** * The S3 bucket containing product stack assets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CommonConstraintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CommonConstraintOptions.kt index cb1866e7c2..63797fe568 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CommonConstraintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/CommonConstraintOptions.kt @@ -86,7 +86,8 @@ public interface CommonConstraintOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.CommonConstraintOptions, - ) : CdkObject(cdkObject), CommonConstraintOptions { + ) : CdkObject(cdkObject), + CommonConstraintOptions { /** * The description of the constraint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IPortfolio.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IPortfolio.kt index 3c694776d3..751863cb59 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IPortfolio.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IPortfolio.kt @@ -353,7 +353,8 @@ public interface IPortfolio : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.IPortfolio, - ) : CdkObject(cdkObject), IPortfolio { + ) : CdkObject(cdkObject), + IPortfolio { /** * Associate portfolio with the given product. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IProduct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IProduct.kt index c22ab0e3db..34de37ebe7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IProduct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/IProduct.kt @@ -44,7 +44,8 @@ public interface IProduct : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.IProduct, - ) : CdkObject(cdkObject), IProduct { + ) : CdkObject(cdkObject), + IProduct { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Portfolio.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Portfolio.kt index 33414c4a62..75fd75e962 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Portfolio.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Portfolio.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Portfolio( cdkObject: software.amazon.awscdk.services.servicecatalog.Portfolio, -) : Resource(cdkObject), IPortfolio { +) : Resource(cdkObject), + IPortfolio { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioProps.kt index f0a02948d6..7483e8d4f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioProps.kt @@ -136,7 +136,8 @@ public interface PortfolioProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.PortfolioProps, - ) : CdkObject(cdkObject), PortfolioProps { + ) : CdkObject(cdkObject), + PortfolioProps { /** * Description for portfolio. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioShareOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioShareOptions.kt index 6672e8e9ac..ad41ad3715 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioShareOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/PortfolioShareOptions.kt @@ -84,7 +84,8 @@ public interface PortfolioShareOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.PortfolioShareOptions, - ) : CdkObject(cdkObject), PortfolioShareOptions { + ) : CdkObject(cdkObject), + PortfolioShareOptions { /** * The message language of the share. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Product.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Product.kt index 107f38bbfb..e6a75f7f41 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Product.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/Product.kt @@ -24,7 +24,8 @@ import kotlin.collections.List */ public abstract class Product( cdkObject: software.amazon.awscdk.services.servicecatalog.Product, -) : Resource(cdkObject), IProduct { +) : Resource(cdkObject), + IProduct { /** * The asset buckets of a product created via product stack. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackHistoryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackHistoryProps.kt index 8a3eaf0374..52952f93df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackHistoryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackHistoryProps.kt @@ -169,7 +169,8 @@ public interface ProductStackHistoryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.ProductStackHistoryProps, - ) : CdkObject(cdkObject), ProductStackHistoryProps { + ) : CdkObject(cdkObject), + ProductStackHistoryProps { /** * If this is set to true, the ProductStack will not be overwritten if a snapshot is found for * the currentVersionName. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackProps.kt index 9813c8d0bc..e909f5a81e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/ProductStackProps.kt @@ -158,7 +158,8 @@ public interface ProductStackProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.ProductStackProps, - ) : CdkObject(cdkObject), ProductStackProps { + ) : CdkObject(cdkObject), + ProductStackProps { /** * A Bucket can be passed to store assets, enabling ProductStack Asset support. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/StackSetsConstraintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/StackSetsConstraintOptions.kt index 30b862eff6..3d60fe3b7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/StackSetsConstraintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/StackSetsConstraintOptions.kt @@ -185,7 +185,8 @@ public interface StackSetsConstraintOptions : CommonConstraintOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.StackSetsConstraintOptions, - ) : CdkObject(cdkObject), StackSetsConstraintOptions { + ) : CdkObject(cdkObject), + StackSetsConstraintOptions { /** * List of accounts to deploy stacks to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagOptionsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagOptionsProps.kt index bcf9e4161c..9698e4fb60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagOptionsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagOptionsProps.kt @@ -72,7 +72,8 @@ public interface TagOptionsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.TagOptionsProps, - ) : CdkObject(cdkObject), TagOptionsProps { + ) : CdkObject(cdkObject), + TagOptionsProps { /** * The values that are allowed to be set for specific tags. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagUpdateConstraintOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagUpdateConstraintOptions.kt index 5bc210bd42..2f0e89514f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagUpdateConstraintOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TagUpdateConstraintOptions.kt @@ -88,7 +88,8 @@ public interface TagUpdateConstraintOptions : CommonConstraintOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.TagUpdateConstraintOptions, - ) : CdkObject(cdkObject), TagUpdateConstraintOptions { + ) : CdkObject(cdkObject), + TagUpdateConstraintOptions { /** * Toggle for if users should be allowed to change/update tags on provisioned products. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRule.kt index a91719992e..af8f59ab10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRule.kt @@ -114,7 +114,8 @@ public interface TemplateRule { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.TemplateRule, - ) : CdkObject(cdkObject), TemplateRule { + ) : CdkObject(cdkObject), + TemplateRule { /** * A list of assertions that make up the rule. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRuleAssertion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRuleAssertion.kt index f0eb5286d0..06aa5c15f2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRuleAssertion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalog/TemplateRuleAssertion.kt @@ -81,7 +81,8 @@ public interface TemplateRuleAssertion { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalog.TemplateRuleAssertion, - ) : CdkObject(cdkObject), TemplateRuleAssertion { + ) : CdkObject(cdkObject), + TemplateRuleAssertion { /** * The assertion condition. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplication.kt index 78266a0945..945f41b3b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplication.kt @@ -37,7 +37,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplicationProps.kt index 1d0f05158d..33571ec009 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnApplicationProps.kt @@ -109,7 +109,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The description of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroup.kt index 639bb18ba2..f348cdc4b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroup.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAttributeGroup( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnAttributeGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociation.kt index 20070eb36b..af39bc2d9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociation.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAttributeGroupAssociation( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnAttributeGroupAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociationProps.kt index 7b78be2cb6..19a2cb935a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupAssociationProps.kt @@ -86,7 +86,8 @@ public interface CfnAttributeGroupAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnAttributeGroupAssociationProps, - ) : CdkObject(cdkObject), CfnAttributeGroupAssociationProps { + ) : CdkObject(cdkObject), + CfnAttributeGroupAssociationProps { /** * The name or ID of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupProps.kt index cde22bed5d..7d7bcd16d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnAttributeGroupProps.kt @@ -136,7 +136,8 @@ public interface CfnAttributeGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnAttributeGroupProps, - ) : CdkObject(cdkObject), CfnAttributeGroupProps { + ) : CdkObject(cdkObject), + CfnAttributeGroupProps { /** * A nested object in a JSON or YAML template that supports arbitrary definitions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociation.kt index bdabf1cb1d..2e9c0aced4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociation.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceAssociation( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnResourceAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociationProps.kt index c79f23dcd9..17bae8f9b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicecatalogappregistry/CfnResourceAssociationProps.kt @@ -103,7 +103,8 @@ public interface CfnResourceAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicecatalogappregistry.CfnResourceAssociationProps, - ) : CdkObject(cdkObject), CfnResourceAssociationProps { + ) : CdkObject(cdkObject), + CfnResourceAssociationProps { /** * The name or ID of the application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/AliasTargetInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/AliasTargetInstanceProps.kt index f5b79579a5..e8c8eecee4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/AliasTargetInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/AliasTargetInstanceProps.kt @@ -103,7 +103,8 @@ public interface AliasTargetInstanceProps : BaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.AliasTargetInstanceProps, - ) : CdkObject(cdkObject), AliasTargetInstanceProps { + ) : CdkObject(cdkObject), + AliasTargetInstanceProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseInstanceProps.kt index b84c946a81..352a8ba0bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseInstanceProps.kt @@ -83,7 +83,8 @@ public interface BaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.BaseInstanceProps, - ) : CdkObject(cdkObject), BaseInstanceProps { + ) : CdkObject(cdkObject), + BaseInstanceProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseNamespaceProps.kt index 70e2154a7c..bbbd80966a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseNamespaceProps.kt @@ -76,7 +76,8 @@ public interface BaseNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.BaseNamespaceProps, - ) : CdkObject(cdkObject), BaseNamespaceProps { + ) : CdkObject(cdkObject), + BaseNamespaceProps { /** * A description of the Namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseServiceProps.kt index 5b732e8888..3caf3d2e14 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/BaseServiceProps.kt @@ -211,7 +211,8 @@ public interface BaseServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.BaseServiceProps, - ) : CdkObject(cdkObject), BaseServiceProps { + ) : CdkObject(cdkObject), + BaseServiceProps { /** * Structure containing failure threshold for a custom health checker. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespace.kt index 27ff57bf2c..3acaa846f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespace.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnHttpNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnHttpNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespaceProps.kt index e0c9580cd2..c6bf597936 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnHttpNamespaceProps.kt @@ -133,7 +133,8 @@ public interface CfnHttpNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnHttpNamespaceProps, - ) : CdkObject(cdkObject), CfnHttpNamespaceProps { + ) : CdkObject(cdkObject), + CfnHttpNamespaceProps { /** * A description for the namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstance.kt index f09555d235..2829322d8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstance.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstance( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnInstance, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -76,12 +77,16 @@ public open class CfnInstance( } /** + * An identifier that you want to associate with the instance. * + * Note the following:. */ public open fun instanceId(): String? = unwrap(this).getInstanceId() /** + * An identifier that you want to associate with the instance. * + * Note the following:. */ public open fun instanceId(`value`: String) { unwrap(this).setInstanceId(`value`) @@ -183,8 +188,34 @@ public open class CfnInstance( public fun instanceAttributes(instanceAttributes: Any) /** + * An identifier that you want to associate with the instance. Note the following:. + * + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the + * existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes + * the old health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit + * a `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by + * public DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because + * the `InstanceId` is discoverable by public DNS queries. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceid) - * @param instanceId + * @param instanceId An identifier that you want to associate with the instance. Note the + * following:. */ public fun instanceId(instanceId: String) @@ -285,8 +316,34 @@ public open class CfnInstance( } /** + * An identifier that you want to associate with the instance. Note the following:. + * + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the + * existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes + * the old health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit + * a `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by + * public DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because + * the `InstanceId` is discoverable by public DNS queries. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceid) - * @param instanceId + * @param instanceId An identifier that you want to associate with the instance. Note the + * following:. */ override fun instanceId(instanceId: String) { cdkBuilder.instanceId(instanceId) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstanceProps.kt index b11bc7b666..cb0eaaffc3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnInstanceProps.kt @@ -107,6 +107,31 @@ public interface CfnInstanceProps { public fun instanceAttributes(): Any /** + * An identifier that you want to associate with the instance. Note the following:. + * + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the existing + * DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes the old + * health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit a + * `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by public + * DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because the + * `InstanceId` is discoverable by public DNS queries. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceid) */ public fun instanceId(): String? = unwrap(this).getInstanceId() @@ -197,7 +222,29 @@ public interface CfnInstanceProps { public fun instanceAttributes(instanceAttributes: Any) /** - * @param instanceId the value to be set. + * @param instanceId An identifier that you want to associate with the instance. Note the + * following:. + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the + * existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes + * the old health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit + * a `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by + * public DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because + * the `InstanceId` is discoverable by public DNS queries. */ public fun instanceId(instanceId: String) @@ -288,7 +335,29 @@ public interface CfnInstanceProps { } /** - * @param instanceId the value to be set. + * @param instanceId An identifier that you want to associate with the instance. Note the + * following:. + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the + * existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes + * the old health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit + * a `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by + * public DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because + * the `InstanceId` is discoverable by public DNS queries. */ override fun instanceId(instanceId: String) { cdkBuilder.instanceId(instanceId) @@ -307,7 +376,8 @@ public interface CfnInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnInstanceProps, - ) : CdkObject(cdkObject), CfnInstanceProps { + ) : CdkObject(cdkObject), + CfnInstanceProps { /** * A string map that contains the following information for the service that you specify in * `ServiceId` :. @@ -385,6 +455,31 @@ public interface CfnInstanceProps { override fun instanceAttributes(): Any = unwrap(this).getInstanceAttributes() /** + * An identifier that you want to associate with the instance. Note the following:. + * + * * If the service that's specified by `ServiceId` includes settings for an `SRV` record, the + * value of `InstanceId` is automatically included as part of the value for the `SRV` record. For + * more information, see [DnsRecord > + * Type](https://docs.aws.amazon.com/cloud-map/latest/api/API_DnsRecord.html#cloudmap-Type-DnsRecord-Type) + * . + * * You can use this value to update an existing instance. + * * To register a new instance, you must specify a value that's unique among instances that you + * register by using the same service. + * * If you specify an existing `InstanceId` and `ServiceId` , AWS Cloud Map updates the + * existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes + * the old health check and creates a new one. + * + * + * The health check isn't deleted immediately, so it will still appear for a while if you submit + * a `ListHealthChecks` request, for example. + * + * + * + * Do not include sensitive information in `InstanceId` if the namespace is discoverable by + * public DNS queries and any `Type` member of `DnsRecord` for the service contains `SRV` because + * the `InstanceId` is discoverable by public DNS queries. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-instanceid) */ override fun instanceId(): String? = unwrap(this).getInstanceId() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespace.kt index 512e2023b5..e416c26f50 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespace.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPrivateDnsNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -489,7 +491,8 @@ public open class CfnPrivateDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespace.PrivateDnsPropertiesMutableProperty, - ) : CdkObject(cdkObject), PrivateDnsPropertiesMutableProperty { + ) : CdkObject(cdkObject), + PrivateDnsPropertiesMutableProperty { /** * Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS * namespace. @@ -606,7 +609,8 @@ public open class CfnPrivateDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespace.PropertiesProperty, - ) : CdkObject(cdkObject), PropertiesProperty { + ) : CdkObject(cdkObject), + PropertiesProperty { /** * DNS properties for the private DNS namespace. * @@ -688,7 +692,8 @@ public open class CfnPrivateDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespace.SOAProperty, - ) : CdkObject(cdkObject), SOAProperty { + ) : CdkObject(cdkObject), + SOAProperty { /** * The time to live (TTL) for purposes of negative caching. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespaceProps.kt index 313170ef0b..0cea56ae05 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPrivateDnsNamespaceProps.kt @@ -217,7 +217,8 @@ public interface CfnPrivateDnsNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespaceProps, - ) : CdkObject(cdkObject), CfnPrivateDnsNamespaceProps { + ) : CdkObject(cdkObject), + CfnPrivateDnsNamespaceProps { /** * A description for the namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespace.kt index 6d84204020..feec5944cd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespace.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPublicDnsNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -461,7 +463,8 @@ public open class CfnPublicDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespace.PropertiesProperty, - ) : CdkObject(cdkObject), PropertiesProperty { + ) : CdkObject(cdkObject), + PropertiesProperty { /** * DNS properties for the public DNS namespace. * @@ -578,7 +581,8 @@ public open class CfnPublicDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespace.PublicDnsPropertiesMutableProperty, - ) : CdkObject(cdkObject), PublicDnsPropertiesMutableProperty { + ) : CdkObject(cdkObject), + PublicDnsPropertiesMutableProperty { /** * Start of Authority (SOA) record for the hosted zone for the public DNS namespace. * @@ -661,7 +665,8 @@ public open class CfnPublicDnsNamespace( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespace.SOAProperty, - ) : CdkObject(cdkObject), SOAProperty { + ) : CdkObject(cdkObject), + SOAProperty { /** * The time to live (TTL) for purposes of negative caching. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespaceProps.kt index 7b35972669..2a5ee1a364 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnPublicDnsNamespaceProps.kt @@ -201,7 +201,8 @@ public interface CfnPublicDnsNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespaceProps, - ) : CdkObject(cdkObject), CfnPublicDnsNamespaceProps { + ) : CdkObject(cdkObject), + CfnPublicDnsNamespaceProps { /** * A description for the namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnService.kt index 913471c533..6add1705ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnService.kt @@ -74,7 +74,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnService( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.servicediscovery.CfnService(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -764,11 +766,6 @@ public open class CfnService( * A complex type that contains information about the Amazon Route 53 DNS records that you want * AWS Cloud Map to create when you register an instance. * - * - * The record types of a service can only be changed by deleting the service and recreating it - * with a new `Dnsconfig` . - * - * * Example: * * ``` @@ -793,6 +790,11 @@ public open class CfnService( * An array that contains one `DnsRecord` object for each Route 53 DNS record that you want AWS * Cloud Map to create when you register an instance. * + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-dnsrecords) */ public fun dnsRecords(): Any @@ -864,18 +866,27 @@ public open class CfnService( /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ public fun dnsRecords(dnsRecords: IResolvable) /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ public fun dnsRecords(dnsRecords: List) /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ public fun dnsRecords(vararg dnsRecords: Any) @@ -942,6 +953,9 @@ public open class CfnService( /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ override fun dnsRecords(dnsRecords: IResolvable) { cdkBuilder.dnsRecords(dnsRecords.let(IResolvable.Companion::unwrap)) @@ -950,6 +964,9 @@ public open class CfnService( /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ override fun dnsRecords(dnsRecords: List) { cdkBuilder.dnsRecords(dnsRecords.map{CdkObjectWrappers.unwrap(it)}) @@ -958,6 +975,9 @@ public open class CfnService( /** * @param dnsRecords An array that contains one `DnsRecord` object for each Route 53 DNS * record that you want AWS Cloud Map to create when you register an instance. + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . */ override fun dnsRecords(vararg dnsRecords: Any): Unit = dnsRecords(dnsRecords.toList()) @@ -1026,11 +1046,17 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnService.DnsConfigProperty, - ) : CdkObject(cdkObject), DnsConfigProperty { + ) : CdkObject(cdkObject), + DnsConfigProperty { /** * An array that contains one `DnsRecord` object for each Route 53 DNS record that you want * AWS Cloud Map to create when you register an instance. * + * + * The record type of a service can't be updated directly and can only be changed by deleting + * the service and recreating it with a new `DnsConfig` . + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-dnsrecords) */ override fun dnsRecords(): Any = unwrap(this).getDnsRecords() @@ -1394,7 +1420,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnService.DnsRecordProperty, - ) : CdkObject(cdkObject), DnsRecordProperty { + ) : CdkObject(cdkObject), + DnsRecordProperty { /** * The amount of time, in seconds, that you want DNS resolvers to cache the settings for this * record. @@ -1743,7 +1770,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnService.HealthCheckConfigProperty, - ) : CdkObject(cdkObject), HealthCheckConfigProperty { + ) : CdkObject(cdkObject), + HealthCheckConfigProperty { /** * The number of consecutive health checks that an endpoint must pass or fail for Route 53 to * change the current status of the endpoint from unhealthy to healthy or the other way around. @@ -1943,7 +1971,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnService.HealthCheckCustomConfigProperty, - ) : CdkObject(cdkObject), HealthCheckCustomConfigProperty { + ) : CdkObject(cdkObject), + HealthCheckCustomConfigProperty { /** * This parameter is no longer supported and is always set to 1. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnServiceProps.kt index bcbee9fef8..4a631eb99c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CfnServiceProps.kt @@ -446,7 +446,8 @@ public interface CfnServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CfnServiceProps, - ) : CdkObject(cdkObject), CfnServiceProps { + ) : CdkObject(cdkObject), + CfnServiceProps { /** * The description of the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceBaseProps.kt index 8dac67c369..e1e57c1099 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceBaseProps.kt @@ -96,7 +96,8 @@ public interface CnameInstanceBaseProps : BaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CnameInstanceBaseProps, - ) : CdkObject(cdkObject), CnameInstanceBaseProps { + ) : CdkObject(cdkObject), + CnameInstanceBaseProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceProps.kt index 743bfe9173..6e196bcd3b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/CnameInstanceProps.kt @@ -102,7 +102,8 @@ public interface CnameInstanceProps : CnameInstanceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.CnameInstanceProps, - ) : CdkObject(cdkObject), CnameInstanceProps { + ) : CdkObject(cdkObject), + CnameInstanceProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/DnsServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/DnsServiceProps.kt index 8b99b1a4ff..2504e8b503 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/DnsServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/DnsServiceProps.kt @@ -292,7 +292,8 @@ public interface DnsServiceProps : BaseServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.DnsServiceProps, - ) : CdkObject(cdkObject), DnsServiceProps { + ) : CdkObject(cdkObject), + DnsServiceProps { /** * Structure containing failure threshold for a custom health checker. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckConfig.kt index 7757cf4ae8..08a6039963 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckConfig.kt @@ -136,7 +136,8 @@ public interface HealthCheckConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.HealthCheckConfig, - ) : CdkObject(cdkObject), HealthCheckConfig { + ) : CdkObject(cdkObject), + HealthCheckConfig { /** * The number of consecutive health checks that an endpoint must pass or fail for Route 53 to * change the current status of the endpoint from unhealthy to healthy or vice versa. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckCustomConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckCustomConfig.kt index 04da216178..ee3b0a2db2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckCustomConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HealthCheckCustomConfig.kt @@ -65,7 +65,8 @@ public interface HealthCheckCustomConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.HealthCheckCustomConfig, - ) : CdkObject(cdkObject), HealthCheckCustomConfig { + ) : CdkObject(cdkObject), + HealthCheckCustomConfig { /** * The number of 30-second intervals that you want Cloud Map to wait after receiving an * UpdateInstanceCustomHealthStatus request before it changes the health status of a service diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespace.kt index 824267fb1c..65b8e6d117 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespace.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class HttpNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.HttpNamespace, -) : Resource(cdkObject), IHttpNamespace { +) : Resource(cdkObject), + IHttpNamespace { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceAttributes.kt index 8ad1f1d545..89de3917b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceAttributes.kt @@ -91,7 +91,8 @@ public interface HttpNamespaceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.HttpNamespaceAttributes, - ) : CdkObject(cdkObject), HttpNamespaceAttributes { + ) : CdkObject(cdkObject), + HttpNamespaceAttributes { /** * Namespace ARN for the Namespace. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceProps.kt index 8e62ed154b..6c15baa793 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/HttpNamespaceProps.kt @@ -80,7 +80,8 @@ public interface HttpNamespaceProps : BaseNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.HttpNamespaceProps, - ) : CdkObject(cdkObject), HttpNamespaceProps { + ) : CdkObject(cdkObject), + HttpNamespaceProps { /** * A description of the Namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IHttpNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IHttpNamespace.kt index c70884ae49..902efb6f5a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IHttpNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IHttpNamespace.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IHttpNamespace : INamespace { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IHttpNamespace, - ) : CdkObject(cdkObject), IHttpNamespace { + ) : CdkObject(cdkObject), + IHttpNamespace { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IInstance.kt index afa901850b..ef23ef7aac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IInstance.kt @@ -27,7 +27,8 @@ public interface IInstance : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IInstance, - ) : CdkObject(cdkObject), IInstance { + ) : CdkObject(cdkObject), + IInstance { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/INamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/INamespace.kt index 4a54ad39f1..71412dc52c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/INamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/INamespace.kt @@ -37,7 +37,8 @@ public interface INamespace : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.INamespace, - ) : CdkObject(cdkObject), INamespace { + ) : CdkObject(cdkObject), + INamespace { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPrivateDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPrivateDnsNamespace.kt index 017c8cd611..24263f8d29 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPrivateDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPrivateDnsNamespace.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IPrivateDnsNamespace : INamespace { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IPrivateDnsNamespace, - ) : CdkObject(cdkObject), IPrivateDnsNamespace { + ) : CdkObject(cdkObject), + IPrivateDnsNamespace { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPublicDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPublicDnsNamespace.kt index 660f6a6447..e45fa1d7f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPublicDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IPublicDnsNamespace.kt @@ -16,7 +16,8 @@ import kotlin.String public interface IPublicDnsNamespace : INamespace { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IPublicDnsNamespace, - ) : CdkObject(cdkObject), IPublicDnsNamespace { + ) : CdkObject(cdkObject), + IPublicDnsNamespace { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IService.kt index 16c3cd05bd..46e7803469 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IService.kt @@ -52,7 +52,8 @@ public interface IService : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IService, - ) : CdkObject(cdkObject), IService { + ) : CdkObject(cdkObject), + IService { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/InstanceBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/InstanceBase.kt index 60649a0605..a0c9ebf045 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/InstanceBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/InstanceBase.kt @@ -12,7 +12,8 @@ import kotlin.String */ public abstract class InstanceBase( cdkObject: software.amazon.awscdk.services.servicediscovery.InstanceBase, -) : Resource(cdkObject), IInstance { +) : Resource(cdkObject), + IInstance { /** * The Id of the instance. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceBaseProps.kt index 2063e6478a..14b64d5f98 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceBaseProps.kt @@ -158,7 +158,8 @@ public interface IpInstanceBaseProps : BaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IpInstanceBaseProps, - ) : CdkObject(cdkObject), IpInstanceBaseProps { + ) : CdkObject(cdkObject), + IpInstanceBaseProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceProps.kt index 072dee7e82..7b31e464c8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/IpInstanceProps.kt @@ -136,7 +136,8 @@ public interface IpInstanceProps : IpInstanceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.IpInstanceProps, - ) : CdkObject(cdkObject), IpInstanceProps { + ) : CdkObject(cdkObject), + IpInstanceProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceBaseProps.kt index ff0666869f..c4a1f0fd1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceBaseProps.kt @@ -81,7 +81,8 @@ public interface NonIpInstanceBaseProps : BaseInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.NonIpInstanceBaseProps, - ) : CdkObject(cdkObject), NonIpInstanceBaseProps { + ) : CdkObject(cdkObject), + NonIpInstanceBaseProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceProps.kt index 63390071ea..da73926a0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/NonIpInstanceProps.kt @@ -85,7 +85,8 @@ public interface NonIpInstanceProps : NonIpInstanceBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.NonIpInstanceProps, - ) : CdkObject(cdkObject), NonIpInstanceProps { + ) : CdkObject(cdkObject), + NonIpInstanceProps { /** * Custom attributes of the instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespace.kt index 5af225a666..0c703e1dc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespace.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PrivateDnsNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespace, -) : Resource(cdkObject), IPrivateDnsNamespace { +) : Resource(cdkObject), + IPrivateDnsNamespace { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceAttributes.kt index 2fa03340ad..c35630dda8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceAttributes.kt @@ -93,7 +93,8 @@ public interface PrivateDnsNamespaceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceAttributes, - ) : CdkObject(cdkObject), PrivateDnsNamespaceAttributes { + ) : CdkObject(cdkObject), + PrivateDnsNamespaceAttributes { /** * Namespace ARN for the Namespace. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceProps.kt index da53473351..c0dab5d275 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PrivateDnsNamespaceProps.kt @@ -93,7 +93,8 @@ public interface PrivateDnsNamespaceProps : BaseNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceProps, - ) : CdkObject(cdkObject), PrivateDnsNamespaceProps { + ) : CdkObject(cdkObject), + PrivateDnsNamespaceProps { /** * A description of the Namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespace.kt index 4f437ff470..8071a8622c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespace.kt @@ -42,7 +42,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class PublicDnsNamespace( cdkObject: software.amazon.awscdk.services.servicediscovery.PublicDnsNamespace, -) : Resource(cdkObject), IPublicDnsNamespace { +) : Resource(cdkObject), + IPublicDnsNamespace { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceAttributes.kt index 0cc4908788..9f321717d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceAttributes.kt @@ -93,7 +93,8 @@ public interface PublicDnsNamespaceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.PublicDnsNamespaceAttributes, - ) : CdkObject(cdkObject), PublicDnsNamespaceAttributes { + ) : CdkObject(cdkObject), + PublicDnsNamespaceAttributes { /** * Namespace ARN for the Namespace. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceProps.kt index 0a5b4e3b68..74785435b3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/PublicDnsNamespaceProps.kt @@ -78,7 +78,8 @@ public interface PublicDnsNamespaceProps : BaseNamespaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.PublicDnsNamespaceProps, - ) : CdkObject(cdkObject), PublicDnsNamespaceProps { + ) : CdkObject(cdkObject), + PublicDnsNamespaceProps { /** * A description of the Namespace. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/Service.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/Service.kt index b8a7cfa7d4..a8a1a2f09e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/Service.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/Service.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Service( cdkObject: software.amazon.awscdk.services.servicediscovery.Service, -) : Resource(cdkObject), IService { +) : Resource(cdkObject), + IService { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceAttributes.kt index 0016421662..d04e4a903b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceAttributes.kt @@ -166,7 +166,8 @@ public interface ServiceAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.ServiceAttributes, - ) : CdkObject(cdkObject), ServiceAttributes { + ) : CdkObject(cdkObject), + ServiceAttributes { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceProps.kt index e4f83fc86f..9e10041267 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/servicediscovery/ServiceProps.kt @@ -259,7 +259,8 @@ public interface ServiceProps : DnsServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.servicediscovery.ServiceProps, - ) : CdkObject(cdkObject), ServiceProps { + ) : CdkObject(cdkObject), + ServiceProps { /** * Structure containing failure threshold for a custom health checker. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AddHeaderActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AddHeaderActionConfig.kt index 6c45a52ec3..2d68fafcf5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AddHeaderActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AddHeaderActionConfig.kt @@ -74,7 +74,8 @@ public interface AddHeaderActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.AddHeaderActionConfig, - ) : CdkObject(cdkObject), AddHeaderActionConfig { + ) : CdkObject(cdkObject), + AddHeaderActionConfig { /** * The name of the header that you want to add to the incoming message. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AllowListReceiptFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AllowListReceiptFilterProps.kt index f881517e54..fe08211051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AllowListReceiptFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/AllowListReceiptFilterProps.kt @@ -64,7 +64,8 @@ public interface AllowListReceiptFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.AllowListReceiptFilterProps, - ) : CdkObject(cdkObject), AllowListReceiptFilterProps { + ) : CdkObject(cdkObject), + AllowListReceiptFilterProps { /** * A list of ip addresses or ranges to allow list. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/BounceActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/BounceActionConfig.kt index 6516f61408..7cfa5bb519 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/BounceActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/BounceActionConfig.kt @@ -139,7 +139,8 @@ public interface BounceActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.BounceActionConfig, - ) : CdkObject(cdkObject), BounceActionConfig { + ) : CdkObject(cdkObject), + BounceActionConfig { /** * Human-readable text to include in the bounce message. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ByoDkimOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ByoDkimOptions.kt index 52d03170d7..4c242b5dd1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ByoDkimOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ByoDkimOptions.kt @@ -101,7 +101,8 @@ public interface ByoDkimOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ByoDkimOptions, - ) : CdkObject(cdkObject), ByoDkimOptions { + ) : CdkObject(cdkObject), + ByoDkimOptions { /** * The private key that's used to generate a DKIM signature. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSet.kt index df95674cc1..14c0637e64 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSet.kt @@ -82,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationSet( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnConfigurationSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -105,30 +106,30 @@ public open class CfnConfigurationSet( ) /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). */ public open fun deliveryOptions(): Any? = unwrap(this).getDeliveryOptions() /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). */ public open fun deliveryOptions(`value`: IResolvable) { unwrap(this).setDeliveryOptions(`value`.let(IResolvable.Companion::unwrap)) } /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). */ public open fun deliveryOptions(`value`: DeliveryOptionsProperty) { unwrap(this).setDeliveryOptions(`value`.let(DeliveryOptionsProperty.Companion::unwrap)) } /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b48406aebe495571c3988281305bd27e18418f1ed8d88a707fb40bb854bd97b1") @@ -161,26 +162,30 @@ public open class CfnConfigurationSet( } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. */ public open fun reputationOptions(): Any? = unwrap(this).getReputationOptions() /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. */ public open fun reputationOptions(`value`: IResolvable) { unwrap(this).setReputationOptions(`value`.let(IResolvable.Companion::unwrap)) } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. */ public open fun reputationOptions(`value`: ReputationOptionsProperty) { unwrap(this).setReputationOptions(`value`.let(ReputationOptionsProperty.Companion::unwrap)) } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("227804c3f3b263a655a52d0e1bea02051bfe38dd33043fb95ebe45c23c13ffd3") @@ -246,26 +251,30 @@ public open class CfnConfigurationSet( suppressionOptions(SuppressionOptionsProperty(`value`)) /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. */ public open fun trackingOptions(): Any? = unwrap(this).getTrackingOptions() /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. */ public open fun trackingOptions(`value`: IResolvable) { unwrap(this).setTrackingOptions(`value`.let(IResolvable.Companion::unwrap)) } /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. */ public open fun trackingOptions(`value`: TrackingOptionsProperty) { unwrap(this).setTrackingOptions(`value`.let(TrackingOptionsProperty.Companion::unwrap)) } /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("64178774d79abefec51ad3f5d3e00d4ac1826e8e00ae6ce9fa1a2aee536102f8") @@ -305,32 +314,38 @@ public open class CfnConfigurationSet( @CdkDslMarker public interface Builder { /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ public fun deliveryOptions(deliveryOptions: IResolvable) /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ public fun deliveryOptions(deliveryOptions: DeliveryOptionsProperty) /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bea76d4086f6acc6c515602f5efc12d6f5d2dcd3e9dc35e7920f14a83af7c1e7") @@ -349,29 +364,32 @@ public open class CfnConfigurationSet( public fun name(name: String) /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ public fun reputationOptions(reputationOptions: IResolvable) /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ public fun reputationOptions(reputationOptions: ReputationOptionsProperty) /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1c733d8e8b31cc6e04a50d62a5a57004f2628da598b37f0ba686bba934b96d4a") @@ -439,29 +457,32 @@ public open class CfnConfigurationSet( public fun suppressionOptions(suppressionOptions: SuppressionOptionsProperty.Builder.() -> Unit) /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ public fun trackingOptions(trackingOptions: IResolvable) /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ public fun trackingOptions(trackingOptions: TrackingOptionsProperty) /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bb098918d914c45ab533668f71503aab74c3c4da79158f851169d8676c5dceaa") @@ -505,36 +526,42 @@ public open class CfnConfigurationSet( software.amazon.awscdk.services.ses.CfnConfigurationSet.Builder.create(scope, id) /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ override fun deliveryOptions(deliveryOptions: IResolvable) { cdkBuilder.deliveryOptions(deliveryOptions.let(IResolvable.Companion::unwrap)) } /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ override fun deliveryOptions(deliveryOptions: DeliveryOptionsProperty) { cdkBuilder.deliveryOptions(deliveryOptions.let(DeliveryOptionsProperty.Companion::unwrap)) } /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bea76d4086f6acc6c515602f5efc12d6f5d2dcd3e9dc35e7920f14a83af7c1e7") @@ -556,33 +583,36 @@ public open class CfnConfigurationSet( } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ override fun reputationOptions(reputationOptions: IResolvable) { cdkBuilder.reputationOptions(reputationOptions.let(IResolvable.Companion::unwrap)) } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ override fun reputationOptions(reputationOptions: ReputationOptionsProperty) { cdkBuilder.reputationOptions(reputationOptions.let(ReputationOptionsProperty.Companion::unwrap)) } /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1c733d8e8b31cc6e04a50d62a5a57004f2628da598b37f0ba686bba934b96d4a") @@ -662,33 +692,36 @@ public open class CfnConfigurationSet( Unit = suppressionOptions(SuppressionOptionsProperty(suppressionOptions)) /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ override fun trackingOptions(trackingOptions: IResolvable) { cdkBuilder.trackingOptions(trackingOptions.let(IResolvable.Companion::unwrap)) } /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ override fun trackingOptions(trackingOptions: TrackingOptionsProperty) { cdkBuilder.trackingOptions(trackingOptions.let(TrackingOptionsProperty.Companion::unwrap)) } /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("bb098918d914c45ab533668f71503aab74c3c4da79158f851169d8676c5dceaa") @@ -754,7 +787,8 @@ public open class CfnConfigurationSet( } /** - * Settings for your VDM configuration as applicable to the Dashboard. + * An object containing additional settings for your VDM configuration as applicable to the + * Dashboard. * * Example: * @@ -816,7 +850,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.DashboardOptionsProperty, - ) : CdkObject(cdkObject), DashboardOptionsProperty { + ) : CdkObject(cdkObject), + DashboardOptionsProperty { /** * Specifies the status of your VDM engagement metrics collection. Can be one of the * following:. @@ -848,8 +883,8 @@ public open class CfnConfigurationSet( } /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). * * Example: * @@ -943,7 +978,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.DeliveryOptionsProperty, - ) : CdkObject(cdkObject), DeliveryOptionsProperty { + ) : CdkObject(cdkObject), + DeliveryOptionsProperty { /** * The name of the dedicated IP pool to associate with the configuration set. * @@ -985,7 +1021,8 @@ public open class CfnConfigurationSet( } /** - * Settings for your VDM configuration as applicable to the Guardian. + * An object containing additional settings for your VDM configuration as applicable to the + * Guardian. * * Example: * @@ -1047,7 +1084,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.GuardianOptionsProperty, - ) : CdkObject(cdkObject), GuardianOptionsProperty { + ) : CdkObject(cdkObject), + GuardianOptionsProperty { /** * Specifies the status of your VDM optimized shared delivery. Can be one of the following:. * @@ -1078,7 +1116,8 @@ public open class CfnConfigurationSet( } /** - * Contains information about the reputation settings for a configuration set. + * Enable or disable collection of reputation metrics for emails that you send using this + * configuration set in the current AWS Region. * * Example: * @@ -1095,11 +1134,9 @@ public open class CfnConfigurationSet( */ public interface ReputationOptionsProperty { /** - * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, - * such as bounce and complaint rates, to Amazon CloudWatch. + * If `true` , tracking of reputation metrics is enabled for the configuration set. * - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * If `false` , tracking of reputation metrics is disabled for the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-reputationoptions.html#cfn-ses-configurationset-reputationoptions-reputationmetricsenabled) */ @@ -1111,18 +1148,16 @@ public open class CfnConfigurationSet( @CdkDslMarker public interface Builder { /** - * @param reputationMetricsEnabled Describes whether or not Amazon SES publishes reputation - * metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * @param reputationMetricsEnabled If `true` , tracking of reputation metrics is enabled for + * the configuration set. + * If `false` , tracking of reputation metrics is disabled for the configuration set. */ public fun reputationMetricsEnabled(reputationMetricsEnabled: Boolean) /** - * @param reputationMetricsEnabled Describes whether or not Amazon SES publishes reputation - * metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * @param reputationMetricsEnabled If `true` , tracking of reputation metrics is enabled for + * the configuration set. + * If `false` , tracking of reputation metrics is disabled for the configuration set. */ public fun reputationMetricsEnabled(reputationMetricsEnabled: IResolvable) } @@ -1134,20 +1169,18 @@ public open class CfnConfigurationSet( software.amazon.awscdk.services.ses.CfnConfigurationSet.ReputationOptionsProperty.builder() /** - * @param reputationMetricsEnabled Describes whether or not Amazon SES publishes reputation - * metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * @param reputationMetricsEnabled If `true` , tracking of reputation metrics is enabled for + * the configuration set. + * If `false` , tracking of reputation metrics is disabled for the configuration set. */ override fun reputationMetricsEnabled(reputationMetricsEnabled: Boolean) { cdkBuilder.reputationMetricsEnabled(reputationMetricsEnabled) } /** - * @param reputationMetricsEnabled Describes whether or not Amazon SES publishes reputation - * metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * @param reputationMetricsEnabled If `true` , tracking of reputation metrics is enabled for + * the configuration set. + * If `false` , tracking of reputation metrics is disabled for the configuration set. */ override fun reputationMetricsEnabled(reputationMetricsEnabled: IResolvable) { cdkBuilder.reputationMetricsEnabled(reputationMetricsEnabled.let(IResolvable.Companion::unwrap)) @@ -1160,13 +1193,12 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.ReputationOptionsProperty, - ) : CdkObject(cdkObject), ReputationOptionsProperty { + ) : CdkObject(cdkObject), + ReputationOptionsProperty { /** - * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, - * such as bounce and complaint rates, to Amazon CloudWatch. + * If `true` , tracking of reputation metrics is enabled for the configuration set. * - * If the value is `true` , reputation metrics are published. If the value is `false` , - * reputation metrics are not published. The default value is `false` . + * If `false` , tracking of reputation metrics is disabled for the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-reputationoptions.html#cfn-ses-configurationset-reputationoptions-reputationmetricsenabled) */ @@ -1264,7 +1296,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.SendingOptionsProperty, - ) : CdkObject(cdkObject), SendingOptionsProperty { + ) : CdkObject(cdkObject), + SendingOptionsProperty { /** * If `true` , email sending is enabled for the configuration set. * @@ -1396,7 +1429,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.SuppressionOptionsProperty, - ) : CdkObject(cdkObject), SuppressionOptionsProperty { + ) : CdkObject(cdkObject), + SuppressionOptionsProperty { /** * A list that contains the reasons that email addresses are automatically added to the * suppression list for your account. @@ -1433,9 +1467,15 @@ public open class CfnConfigurationSet( } /** - * A domain that is used to redirect email recipients to an Amazon SES-operated domain. + * An object that defines the tracking options for a configuration set. + * + * When you use the Amazon SES API v2 to send an email, it contains an invisible image that's used + * to track when recipients open your email. If your email contains links, those links are changed + * slightly in order to track when recipients click them. * - * This domain captures open and click events generated by Amazon SES emails. + * You can optionally configure a custom subdomain that is used to redirect email recipients to an + * Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES + * emails. * * For more information, see [Configuring Custom Domains to Handle Open and Click * Tracking](https://docs.aws.amazon.com/ses/latest/dg/configure-custom-open-click-domains.html) in @@ -1495,7 +1535,8 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.TrackingOptionsProperty, - ) : CdkObject(cdkObject), TrackingOptionsProperty { + ) : CdkObject(cdkObject), + TrackingOptionsProperty { /** * The custom subdomain that is used to redirect email recipients to the Amazon SES event * tracking domain. @@ -1546,14 +1587,14 @@ public open class CfnConfigurationSet( */ public interface VdmOptionsProperty { /** - * Settings for your VDM configuration as applicable to the Dashboard. + * Specifies additional settings for your VDM configuration as applicable to the Dashboard. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-vdmoptions.html#cfn-ses-configurationset-vdmoptions-dashboardoptions) */ public fun dashboardOptions(): Any? = unwrap(this).getDashboardOptions() /** - * Settings for your VDM configuration as applicable to the Guardian. + * Specifies additional settings for your VDM configuration as applicable to the Guardian. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-vdmoptions.html#cfn-ses-configurationset-vdmoptions-guardianoptions) */ @@ -1565,34 +1606,40 @@ public open class CfnConfigurationSet( @CdkDslMarker public interface Builder { /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ public fun dashboardOptions(dashboardOptions: IResolvable) /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ public fun dashboardOptions(dashboardOptions: DashboardOptionsProperty) /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9ae1370c8118b3db5fccd7c5d77a47a0c9fc5c5ae23baf050aa25ce11aa094cd") public fun dashboardOptions(dashboardOptions: DashboardOptionsProperty.Builder.() -> Unit) /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ public fun guardianOptions(guardianOptions: IResolvable) /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ public fun guardianOptions(guardianOptions: GuardianOptionsProperty) /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9632d1b5dcfc878d2221fd033755a8f3e6b6e1ed1099d509a3393553918608b9") @@ -1605,21 +1652,24 @@ public open class CfnConfigurationSet( software.amazon.awscdk.services.ses.CfnConfigurationSet.VdmOptionsProperty.builder() /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ override fun dashboardOptions(dashboardOptions: IResolvable) { cdkBuilder.dashboardOptions(dashboardOptions.let(IResolvable.Companion::unwrap)) } /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ override fun dashboardOptions(dashboardOptions: DashboardOptionsProperty) { cdkBuilder.dashboardOptions(dashboardOptions.let(DashboardOptionsProperty.Companion::unwrap)) } /** - * @param dashboardOptions Settings for your VDM configuration as applicable to the Dashboard. + * @param dashboardOptions Specifies additional settings for your VDM configuration as + * applicable to the Dashboard. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9ae1370c8118b3db5fccd7c5d77a47a0c9fc5c5ae23baf050aa25ce11aa094cd") @@ -1627,21 +1677,24 @@ public open class CfnConfigurationSet( Unit = dashboardOptions(DashboardOptionsProperty(dashboardOptions)) /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ override fun guardianOptions(guardianOptions: IResolvable) { cdkBuilder.guardianOptions(guardianOptions.let(IResolvable.Companion::unwrap)) } /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ override fun guardianOptions(guardianOptions: GuardianOptionsProperty) { cdkBuilder.guardianOptions(guardianOptions.let(GuardianOptionsProperty.Companion::unwrap)) } /** - * @param guardianOptions Settings for your VDM configuration as applicable to the Guardian. + * @param guardianOptions Specifies additional settings for your VDM configuration as + * applicable to the Guardian. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("9632d1b5dcfc878d2221fd033755a8f3e6b6e1ed1099d509a3393553918608b9") @@ -1654,16 +1707,17 @@ public open class CfnConfigurationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSet.VdmOptionsProperty, - ) : CdkObject(cdkObject), VdmOptionsProperty { + ) : CdkObject(cdkObject), + VdmOptionsProperty { /** - * Settings for your VDM configuration as applicable to the Dashboard. + * Specifies additional settings for your VDM configuration as applicable to the Dashboard. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-vdmoptions.html#cfn-ses-configurationset-vdmoptions-dashboardoptions) */ override fun dashboardOptions(): Any? = unwrap(this).getDashboardOptions() /** - * Settings for your VDM configuration as applicable to the Guardian. + * Specifies additional settings for your VDM configuration as applicable to the Guardian. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationset-vdmoptions.html#cfn-ses-configurationset-vdmoptions-guardianoptions) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestination.kt index 5e2b7294aa..22a5223dfb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestination.kt @@ -21,10 +21,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * Specifies a configuration set event destination. * - * An event destination is an AWS service that Amazon SES publishes email sending events to. When - * you specify an event destination, you provide one, and only one, destination. You can send event - * data to Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon Simple Notification Service - * (Amazon SNS). + * *Events* include message sends, deliveries, opens, clicks, bounces, and complaints. *Event + * destinations* are places that you can send information about these events to. For example, you can + * send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or + * you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage. + * + * A single configuration set can include more than one event destination. * * Example: * @@ -46,6 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .build()) * .enabled(false) + * .eventBridgeDestination(EventBridgeDestinationProperty.builder() + * .eventBusArn("eventBusArn") + * .build()) * .kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder() * .deliveryStreamArn("deliveryStreamArn") * .iamRoleArn("iamRoleArn") @@ -62,7 +67,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConfigurationSetEventDestination( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -97,26 +103,26 @@ public open class CfnConfigurationSetEventDestination( } /** - * The event destination object. + * An object that defines the event destination. */ public open fun eventDestination(): Any = unwrap(this).getEventDestination() /** - * The event destination object. + * An object that defines the event destination. */ public open fun eventDestination(`value`: IResolvable) { unwrap(this).setEventDestination(`value`.let(IResolvable.Companion::unwrap)) } /** - * The event destination object. + * An object that defines the event destination. */ public open fun eventDestination(`value`: EventDestinationProperty) { unwrap(this).setEventDestination(`value`.let(EventDestinationProperty.Companion::unwrap)) } /** - * The event destination object. + * An object that defines the event destination. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("161eb83cbe5a17d079b5c9c3a492fa1c5cf750bd79c194bbc0ceaa3fc021e04d") @@ -148,26 +154,26 @@ public open class CfnConfigurationSetEventDestination( public fun configurationSetName(configurationSetName: String) /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ public fun eventDestination(eventDestination: IResolvable) /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ public fun eventDestination(eventDestination: EventDestinationProperty) /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2f4d87013c9c0fe207561ee83bdde5e8d51ca236fe5b45cb88067774bcccb78") @@ -195,30 +201,30 @@ public open class CfnConfigurationSetEventDestination( } /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ override fun eventDestination(eventDestination: IResolvable) { cdkBuilder.eventDestination(eventDestination.let(IResolvable.Companion::unwrap)) } /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ override fun eventDestination(eventDestination: EventDestinationProperty) { cdkBuilder.eventDestination(eventDestination.let(EventDestinationProperty.Companion::unwrap)) } /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("f2f4d87013c9c0fe207561ee83bdde5e8d51ca236fe5b45cb88067774bcccb78") @@ -252,13 +258,9 @@ public open class CfnConfigurationSetEventDestination( } /** - * Contains information associated with an Amazon CloudWatch event destination to which email - * sending events are published. + * An object that defines an Amazon CloudWatch destination for email events. * - * Event destinations, such as Amazon CloudWatch, are associated with configuration sets, which - * enable you to publish email sending events. For information about using configuration sets, see - * the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html) . + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * * Example: * @@ -280,8 +282,8 @@ public open class CfnConfigurationSetEventDestination( */ public interface CloudWatchDestinationProperty { /** - * A list of dimensions upon which to categorize your emails when you publish email sending - * events to Amazon CloudWatch. + * An array of objects that define the dimensions to use when you send email events to Amazon + * CloudWatch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html#cfn-ses-configurationseteventdestination-cloudwatchdestination-dimensionconfigurations) */ @@ -293,20 +295,20 @@ public open class CfnConfigurationSetEventDestination( @CdkDslMarker public interface Builder { /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ public fun dimensionConfigurations(dimensionConfigurations: IResolvable) /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ public fun dimensionConfigurations(dimensionConfigurations: List) /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ public fun dimensionConfigurations(vararg dimensionConfigurations: Any) } @@ -318,24 +320,24 @@ public open class CfnConfigurationSetEventDestination( software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.CloudWatchDestinationProperty.builder() /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ override fun dimensionConfigurations(dimensionConfigurations: IResolvable) { cdkBuilder.dimensionConfigurations(dimensionConfigurations.let(IResolvable.Companion::unwrap)) } /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ override fun dimensionConfigurations(dimensionConfigurations: List) { cdkBuilder.dimensionConfigurations(dimensionConfigurations.map{CdkObjectWrappers.unwrap(it)}) } /** - * @param dimensionConfigurations A list of dimensions upon which to categorize your emails - * when you publish email sending events to Amazon CloudWatch. + * @param dimensionConfigurations An array of objects that define the dimensions to use when + * you send email events to Amazon CloudWatch. */ override fun dimensionConfigurations(vararg dimensionConfigurations: Any): Unit = dimensionConfigurations(dimensionConfigurations.toList()) @@ -347,10 +349,11 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.CloudWatchDestinationProperty, - ) : CdkObject(cdkObject), CloudWatchDestinationProperty { + ) : CdkObject(cdkObject), + CloudWatchDestinationProperty { /** - * A list of dimensions upon which to categorize your emails when you publish email sending - * events to Amazon CloudWatch. + * An array of objects that define the dimensions to use when you send email events to Amazon + * CloudWatch. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html#cfn-ses-configurationseteventdestination-cloudwatchdestination-dimensionconfigurations) */ @@ -376,12 +379,9 @@ public open class CfnConfigurationSetEventDestination( } /** - * Contains the dimension configuration to use when you publish email sending events to Amazon + * An object that defines the dimension configuration to use when you send email events to Amazon * CloudWatch. * - * For information about publishing email sending events to Amazon CloudWatch, see the [Amazon SES - * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html) . - * * Example: * * ``` @@ -400,14 +400,14 @@ public open class CfnConfigurationSetEventDestination( */ public interface DimensionConfigurationProperty { /** - * The default value of the dimension that is published to Amazon CloudWatch if you do not + * The default value of the dimension that is published to Amazon CloudWatch if you don't * provide the value of the dimension when you send an email. * - * The default value must meet the following requirements: + * This value has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at signs - * (@), or periods (.). - * * Contain 256 characters or fewer. + * * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), + * at signs (@), and periods (.). + * * It can contain no more than 256 characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-defaultdimensionvalue) */ @@ -416,23 +416,23 @@ public open class CfnConfigurationSetEventDestination( /** * The name of an Amazon CloudWatch dimension associated with an email sending metric. * - * The name must meet the following requirements: + * The name has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or - * colons (:). - * * Contain 256 characters or fewer. + * * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes + * (-). + * * It can contain no more than 256 characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionname) */ public fun dimensionName(): String /** - * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. + * The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon + * CloudWatch. * * To use the message tags that you specify using an `X-SES-MESSAGE-TAGS` header or a parameter - * to the `SendEmail` / `SendRawEmail` API, specify `messageTag` . To use your own email headers, - * specify `emailHeader` . To put a custom tag on any link included in your email, specify - * `linkTag` . + * to the `SendEmail` or `SendRawEmail` API, choose `messageTag` . To use your own email headers, + * choose `emailHeader` . To use link tags, choose `linkTag` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionvaluesource) */ @@ -445,33 +445,32 @@ public open class CfnConfigurationSetEventDestination( public interface Builder { /** * @param defaultDimensionValue The default value of the dimension that is published to Amazon - * CloudWatch if you do not provide the value of the dimension when you send an email. - * The default value must meet the following requirements: + * CloudWatch if you don't provide the value of the dimension when you send an email. + * This value has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at - * signs (@), or periods (.). - * * Contain 256 characters or fewer. + * * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), + * at signs (@), and periods (.). + * * It can contain no more than 256 characters. */ public fun defaultDimensionValue(defaultDimensionValue: String) /** * @param dimensionName The name of an Amazon CloudWatch dimension associated with an email * sending metric. - * The name must meet the following requirements: + * The name has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or - * colons (:). - * * Contain 256 characters or fewer. + * * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes + * (-). + * * It can contain no more than 256 characters. */ public fun dimensionName(dimensionName: String) /** - * @param dimensionValueSource The place where Amazon SES finds the value of a dimension to - * publish to Amazon CloudWatch. + * @param dimensionValueSource The location where the Amazon SES API v2 finds the value of a + * dimension to publish to Amazon CloudWatch. * To use the message tags that you specify using an `X-SES-MESSAGE-TAGS` header or a - * parameter to the `SendEmail` / `SendRawEmail` API, specify `messageTag` . To use your own - * email headers, specify `emailHeader` . To put a custom tag on any link included in your email, - * specify `linkTag` . + * parameter to the `SendEmail` or `SendRawEmail` API, choose `messageTag` . To use your own + * email headers, choose `emailHeader` . To use link tags, choose `linkTag` . */ public fun dimensionValueSource(dimensionValueSource: String) } @@ -484,12 +483,12 @@ public open class CfnConfigurationSetEventDestination( /** * @param defaultDimensionValue The default value of the dimension that is published to Amazon - * CloudWatch if you do not provide the value of the dimension when you send an email. - * The default value must meet the following requirements: + * CloudWatch if you don't provide the value of the dimension when you send an email. + * This value has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at - * signs (@), or periods (.). - * * Contain 256 characters or fewer. + * * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), + * at signs (@), and periods (.). + * * It can contain no more than 256 characters. */ override fun defaultDimensionValue(defaultDimensionValue: String) { cdkBuilder.defaultDimensionValue(defaultDimensionValue) @@ -498,23 +497,22 @@ public open class CfnConfigurationSetEventDestination( /** * @param dimensionName The name of an Amazon CloudWatch dimension associated with an email * sending metric. - * The name must meet the following requirements: + * The name has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or - * colons (:). - * * Contain 256 characters or fewer. + * * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes + * (-). + * * It can contain no more than 256 characters. */ override fun dimensionName(dimensionName: String) { cdkBuilder.dimensionName(dimensionName) } /** - * @param dimensionValueSource The place where Amazon SES finds the value of a dimension to - * publish to Amazon CloudWatch. + * @param dimensionValueSource The location where the Amazon SES API v2 finds the value of a + * dimension to publish to Amazon CloudWatch. * To use the message tags that you specify using an `X-SES-MESSAGE-TAGS` header or a - * parameter to the `SendEmail` / `SendRawEmail` API, specify `messageTag` . To use your own - * email headers, specify `emailHeader` . To put a custom tag on any link included in your email, - * specify `linkTag` . + * parameter to the `SendEmail` or `SendRawEmail` API, choose `messageTag` . To use your own + * email headers, choose `emailHeader` . To use link tags, choose `linkTag` . */ override fun dimensionValueSource(dimensionValueSource: String) { cdkBuilder.dimensionValueSource(dimensionValueSource) @@ -527,16 +525,17 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.DimensionConfigurationProperty, - ) : CdkObject(cdkObject), DimensionConfigurationProperty { + ) : CdkObject(cdkObject), + DimensionConfigurationProperty { /** - * The default value of the dimension that is published to Amazon CloudWatch if you do not + * The default value of the dimension that is published to Amazon CloudWatch if you don't * provide the value of the dimension when you send an email. * - * The default value must meet the following requirements: + * This value has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), at - * signs (@), or periods (.). - * * Contain 256 characters or fewer. + * * Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), + * at signs (@), and periods (.). + * * It can contain no more than 256 characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-defaultdimensionvalue) */ @@ -545,23 +544,23 @@ public open class CfnConfigurationSetEventDestination( /** * The name of an Amazon CloudWatch dimension associated with an email sending metric. * - * The name must meet the following requirements: + * The name has to meet the following criteria: * - * * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or - * colons (:). - * * Contain 256 characters or fewer. + * * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes + * (-). + * * It can contain no more than 256 characters. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionname) */ override fun dimensionName(): String = unwrap(this).getDimensionName() /** - * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. + * The location where the Amazon SES API v2 finds the value of a dimension to publish to + * Amazon CloudWatch. * * To use the message tags that you specify using an `X-SES-MESSAGE-TAGS` header or a - * parameter to the `SendEmail` / `SendRawEmail` API, specify `messageTag` . To use your own - * email headers, specify `emailHeader` . To put a custom tag on any link included in your email, - * specify `linkTag` . + * parameter to the `SendEmail` or `SendRawEmail` API, choose `messageTag` . To use your own + * email headers, choose `emailHeader` . To use link tags, choose `linkTag` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionvaluesource) */ @@ -587,18 +586,107 @@ public open class CfnConfigurationSetEventDestination( } /** - * Contains information about an event destination. + * An object that defines an Amazon EventBridge destination for email events. * + * You can use Amazon EventBridge to send notifications when certain email events occur. * - * When you create or update an event destination, you must provide one, and only one, - * destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple - * Notification Service (Amazon SNS). + * Example: * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * EventBridgeDestinationProperty eventBridgeDestinationProperty = + * EventBridgeDestinationProperty.builder() + * .eventBusArn("eventBusArn") + * .build(); + * ``` * - * Event destinations are associated with configuration sets, which enable you to publish email - * sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification - * Service (Amazon SNS). For information about using configuration sets, see the [Amazon SES - * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html) . + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventbridgedestination.html) + */ + public interface EventBridgeDestinationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish email events to. + * + * Only the default bus is supported. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventbridgedestination.html#cfn-ses-configurationseteventdestination-eventbridgedestination-eventbusarn) + */ + public fun eventBusArn(): String + + /** + * A builder for [EventBridgeDestinationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param eventBusArn The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish + * email events to. + * Only the default bus is supported. + */ + public fun eventBusArn(eventBusArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty.Builder + = + software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty.builder() + + /** + * @param eventBusArn The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish + * email events to. + * Only the default bus is supported. + */ + override fun eventBusArn(eventBusArn: String) { + cdkBuilder.eventBusArn(eventBusArn) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty, + ) : CdkObject(cdkObject), + EventBridgeDestinationProperty { + /** + * The Amazon Resource Name (ARN) of the Amazon EventBridge bus to publish email events to. + * + * Only the default bus is supported. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventbridgedestination.html#cfn-ses-configurationseteventdestination-eventbridgedestination-eventbusarn) + */ + override fun eventBusArn(): String = unwrap(this).getEventBusArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): EventBridgeDestinationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty): + EventBridgeDestinationProperty = CdkObjectWrappers.wrap(cdkObject) as? + EventBridgeDestinationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EventBridgeDestinationProperty): + software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventBridgeDestinationProperty + } + } + + /** + * In the Amazon SES API v2, *events* include message sends, deliveries, opens, clicks, bounces, + * complaints and delivery delays. + * + * *Event destinations* are places that you can send information about these events to. For + * example, you can send event data to Amazon SNS to receive notifications when you receive bounces + * or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for + * long-term storage. * * Example: * @@ -617,6 +705,9 @@ public open class CfnConfigurationSetEventDestination( * .build())) * .build()) * .enabled(false) + * .eventBridgeDestination(EventBridgeDestinationProperty.builder() + * .eventBusArn("eventBusArn") + * .build()) * .kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder() * .deliveryStreamArn("deliveryStreamArn") * .iamRoleArn("iamRoleArn") @@ -632,24 +723,36 @@ public open class CfnConfigurationSetEventDestination( */ public interface EventDestinationProperty { /** - * An object that contains the names, default values, and sources of the dimensions associated - * with an Amazon CloudWatch event destination. + * An object that defines an Amazon CloudWatch destination for email events. + * + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-cloudwatchdestination) */ public fun cloudWatchDestination(): Any? = unwrap(this).getCloudWatchDestination() /** - * Sets whether Amazon SES publishes events to this destination when you send an email with the - * associated configuration set. + * If `true` , the event destination is enabled. + * + * When the event destination is enabled, the specified event types are sent to the destinations + * in this `EventDestinationDefinition` . * - * Set to `true` to enable publishing to this destination; set to `false` to prevent publishing - * to this destination. The default value is `false` . + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-enabled) */ public fun enabled(): Any? = unwrap(this).getEnabled() + /** + * An object that defines an Amazon EventBridge destination for email events. + * + * You can use Amazon EventBridge to send notifications when certain email events occur. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-eventbridgedestination) + */ + public fun eventBridgeDestination(): Any? = unwrap(this).getEventBridgeDestination() + /** * An object that contains the delivery stream ARN and the IAM role ARN associated with an * Amazon Kinesis Firehose event destination. @@ -659,32 +762,32 @@ public open class CfnConfigurationSetEventDestination( public fun kinesisFirehoseDestination(): Any? = unwrap(this).getKinesisFirehoseDestination() /** - * The type of email sending events to publish to the event destination. + * The types of events that Amazon SES sends to the specified event destinations. * - * * `send` - The send request was successful and SES will attempt to deliver the message to the + * * `SEND` - The send request was successful and SES will attempt to deliver the message to the * recipient’s mail server. (If account-level or global suppression is being used, SES will still * count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. ( + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. ( * *Soft bounces* are only included when SES fails to deliver the email after retrying for a period * of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but the + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but the * recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between template * parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because a + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because a * temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox is * full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -717,20 +820,23 @@ public open class CfnConfigurationSetEventDestination( @CdkDslMarker public interface Builder { /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ public fun cloudWatchDestination(cloudWatchDestination: IResolvable) /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ public fun cloudWatchDestination(cloudWatchDestination: CloudWatchDestinationProperty) /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("278e4dff254572ecbe9e82bc4744a7e10e6ac6eda054f05dc7ebf5e76de16c9c") @@ -738,21 +844,49 @@ public open class CfnConfigurationSetEventDestination( fun cloudWatchDestination(cloudWatchDestination: CloudWatchDestinationProperty.Builder.() -> Unit) /** - * @param enabled Sets whether Amazon SES publishes events to this destination when you send - * an email with the associated configuration set. - * Set to `true` to enable publishing to this destination; set to `false` to prevent - * publishing to this destination. The default value is `false` . + * @param enabled If `true` , the event destination is enabled. + * When the event destination is enabled, the specified event types are sent to the + * destinations in this `EventDestinationDefinition` . + * + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. */ public fun enabled(enabled: Boolean) /** - * @param enabled Sets whether Amazon SES publishes events to this destination when you send - * an email with the associated configuration set. - * Set to `true` to enable publishing to this destination; set to `false` to prevent - * publishing to this destination. The default value is `false` . + * @param enabled If `true` , the event destination is enabled. + * When the event destination is enabled, the specified event types are sent to the + * destinations in this `EventDestinationDefinition` . + * + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. */ public fun enabled(enabled: IResolvable) + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + public fun eventBridgeDestination(eventBridgeDestination: IResolvable) + + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + public fun eventBridgeDestination(eventBridgeDestination: EventBridgeDestinationProperty) + + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a97feab7510459f54d182edd3696e832ee9920cfe9957c61720a2f782b4e0d9") + public + fun eventBridgeDestination(eventBridgeDestination: EventBridgeDestinationProperty.Builder.() -> Unit) + /** * @param kinesisFirehoseDestination An object that contains the delivery stream ARN and the * IAM role ARN associated with an Amazon Kinesis Firehose event destination. @@ -776,32 +910,32 @@ public open class CfnConfigurationSetEventDestination( fun kinesisFirehoseDestination(kinesisFirehoseDestination: KinesisFirehoseDestinationProperty.Builder.() -> Unit) /** - * @param matchingEventTypes The type of email sending events to publish to the event - * destination. - * * `send` - The send request was successful and SES will attempt to deliver the message to + * @param matchingEventTypes The types of events that Amazon SES sends to the specified event + * destinations. + * * `SEND` - The send request was successful and SES will attempt to deliver the message to * the recipient’s mail server. (If account-level or global suppression is being used, SES will * still count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. * ( *Soft bounces* are only included when SES fails to deliver the email after retrying for a * period of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but * the recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between * template parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because * a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox * is full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -809,32 +943,32 @@ public open class CfnConfigurationSetEventDestination( public fun matchingEventTypes(matchingEventTypes: List) /** - * @param matchingEventTypes The type of email sending events to publish to the event - * destination. - * * `send` - The send request was successful and SES will attempt to deliver the message to + * @param matchingEventTypes The types of events that Amazon SES sends to the specified event + * destinations. + * * `SEND` - The send request was successful and SES will attempt to deliver the message to * the recipient’s mail server. (If account-level or global suppression is being used, SES will * still count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. * ( *Soft bounces* are only included when SES fails to deliver the email after retrying for a * period of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but * the recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between * template parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because * a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox * is full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -877,24 +1011,27 @@ public open class CfnConfigurationSetEventDestination( software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventDestinationProperty.builder() /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ override fun cloudWatchDestination(cloudWatchDestination: IResolvable) { cdkBuilder.cloudWatchDestination(cloudWatchDestination.let(IResolvable.Companion::unwrap)) } /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ override fun cloudWatchDestination(cloudWatchDestination: CloudWatchDestinationProperty) { cdkBuilder.cloudWatchDestination(cloudWatchDestination.let(CloudWatchDestinationProperty.Companion::unwrap)) } /** - * @param cloudWatchDestination An object that contains the names, default values, and sources - * of the dimensions associated with an Amazon CloudWatch event destination. + * @param cloudWatchDestination An object that defines an Amazon CloudWatch destination for + * email events. + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("278e4dff254572ecbe9e82bc4744a7e10e6ac6eda054f05dc7ebf5e76de16c9c") @@ -903,25 +1040,58 @@ public open class CfnConfigurationSetEventDestination( Unit = cloudWatchDestination(CloudWatchDestinationProperty(cloudWatchDestination)) /** - * @param enabled Sets whether Amazon SES publishes events to this destination when you send - * an email with the associated configuration set. - * Set to `true` to enable publishing to this destination; set to `false` to prevent - * publishing to this destination. The default value is `false` . + * @param enabled If `true` , the event destination is enabled. + * When the event destination is enabled, the specified event types are sent to the + * destinations in this `EventDestinationDefinition` . + * + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. */ override fun enabled(enabled: Boolean) { cdkBuilder.enabled(enabled) } /** - * @param enabled Sets whether Amazon SES publishes events to this destination when you send - * an email with the associated configuration set. - * Set to `true` to enable publishing to this destination; set to `false` to prevent - * publishing to this destination. The default value is `false` . + * @param enabled If `true` , the event destination is enabled. + * When the event destination is enabled, the specified event types are sent to the + * destinations in this `EventDestinationDefinition` . + * + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. */ override fun enabled(enabled: IResolvable) { cdkBuilder.enabled(enabled.let(IResolvable.Companion::unwrap)) } + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + override fun eventBridgeDestination(eventBridgeDestination: IResolvable) { + cdkBuilder.eventBridgeDestination(eventBridgeDestination.let(IResolvable.Companion::unwrap)) + } + + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + override fun eventBridgeDestination(eventBridgeDestination: EventBridgeDestinationProperty) { + cdkBuilder.eventBridgeDestination(eventBridgeDestination.let(EventBridgeDestinationProperty.Companion::unwrap)) + } + + /** + * @param eventBridgeDestination An object that defines an Amazon EventBridge destination for + * email events. + * You can use Amazon EventBridge to send notifications when certain email events occur. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2a97feab7510459f54d182edd3696e832ee9920cfe9957c61720a2f782b4e0d9") + override + fun eventBridgeDestination(eventBridgeDestination: EventBridgeDestinationProperty.Builder.() -> Unit): + Unit = eventBridgeDestination(EventBridgeDestinationProperty(eventBridgeDestination)) + /** * @param kinesisFirehoseDestination An object that contains the delivery stream ARN and the * IAM role ARN associated with an Amazon Kinesis Firehose event destination. @@ -951,32 +1121,32 @@ public open class CfnConfigurationSetEventDestination( kinesisFirehoseDestination(KinesisFirehoseDestinationProperty(kinesisFirehoseDestination)) /** - * @param matchingEventTypes The type of email sending events to publish to the event - * destination. - * * `send` - The send request was successful and SES will attempt to deliver the message to + * @param matchingEventTypes The types of events that Amazon SES sends to the specified event + * destinations. + * * `SEND` - The send request was successful and SES will attempt to deliver the message to * the recipient’s mail server. (If account-level or global suppression is being used, SES will * still count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. * ( *Soft bounces* are only included when SES fails to deliver the email after retrying for a * period of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but * the recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between * template parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because * a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox * is full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -986,32 +1156,32 @@ public open class CfnConfigurationSetEventDestination( } /** - * @param matchingEventTypes The type of email sending events to publish to the event - * destination. - * * `send` - The send request was successful and SES will attempt to deliver the message to + * @param matchingEventTypes The types of events that Amazon SES sends to the specified event + * destinations. + * * `SEND` - The send request was successful and SES will attempt to deliver the message to * the recipient’s mail server. (If account-level or global suppression is being used, SES will * still count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. * ( *Soft bounces* are only included when SES fails to deliver the email after retrying for a * period of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but * the recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between * template parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because * a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox * is full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -1061,26 +1231,39 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.EventDestinationProperty, - ) : CdkObject(cdkObject), EventDestinationProperty { + ) : CdkObject(cdkObject), + EventDestinationProperty { /** - * An object that contains the names, default values, and sources of the dimensions associated - * with an Amazon CloudWatch event destination. + * An object that defines an Amazon CloudWatch destination for email events. + * + * You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-cloudwatchdestination) */ override fun cloudWatchDestination(): Any? = unwrap(this).getCloudWatchDestination() /** - * Sets whether Amazon SES publishes events to this destination when you send an email with - * the associated configuration set. + * If `true` , the event destination is enabled. + * + * When the event destination is enabled, the specified event types are sent to the + * destinations in this `EventDestinationDefinition` . * - * Set to `true` to enable publishing to this destination; set to `false` to prevent - * publishing to this destination. The default value is `false` . + * If `false` , the event destination is disabled. When the event destination is disabled, + * events aren't sent to the specified destinations. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-enabled) */ override fun enabled(): Any? = unwrap(this).getEnabled() + /** + * An object that defines an Amazon EventBridge destination for email events. + * + * You can use Amazon EventBridge to send notifications when certain email events occur. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-eventbridgedestination) + */ + override fun eventBridgeDestination(): Any? = unwrap(this).getEventBridgeDestination() + /** * An object that contains the delivery stream ARN and the IAM role ARN associated with an * Amazon Kinesis Firehose event destination. @@ -1090,32 +1273,32 @@ public open class CfnConfigurationSetEventDestination( override fun kinesisFirehoseDestination(): Any? = unwrap(this).getKinesisFirehoseDestination() /** - * The type of email sending events to publish to the event destination. + * The types of events that Amazon SES sends to the specified event destinations. * - * * `send` - The send request was successful and SES will attempt to deliver the message to + * * `SEND` - The send request was successful and SES will attempt to deliver the message to * the recipient’s mail server. (If account-level or global suppression is being used, SES will * still count it as a send, but delivery is suppressed.) - * * `reject` - SES accepted the email, but determined that it contained a virus and didn’t + * * `REJECT` - SES accepted the email, but determined that it contained a virus and didn’t * attempt to deliver it to the recipient’s mail server. - * * `bounce` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. + * * `BOUNCE` - ( *Hard bounce* ) The recipient's mail server permanently rejected the email. * ( *Soft bounces* are only included when SES fails to deliver the email after retrying for a * period of time.) - * * `complaint` - The email was successfully delivered to the recipient’s mail server, but + * * `COMPLAINT` - The email was successfully delivered to the recipient’s mail server, but * the recipient marked it as spam. - * * `delivery` - SES successfully delivered the email to the recipient's mail server. - * * `open` - The recipient received the message and opened it in their email client. - * * `click` - The recipient clicked one or more links in the email. - * * `renderingFailure` - The email wasn't sent because of a template rendering issue. This + * * `DELIVERY` - SES successfully delivered the email to the recipient's mail server. + * * `OPEN` - The recipient received the message and opened it in their email client. + * * `CLICK` - The recipient clicked one or more links in the email. + * * `RENDERING_FAILURE` - The email wasn't sent because of a template rendering issue. This * event type can occur when template data is missing, or when there is a mismatch between * template parameters and data. (This event type only occurs when you send email using the * [`SendTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) * or * [`SendBulkTemplatedEmail`](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) * API operations.) - * * `deliveryDelay` - The email couldn't be delivered to the recipient’s mail server because + * * `DELIVERY_DELAY` - The email couldn't be delivered to the recipient’s mail server because * a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox * is full, or when the receiving email server experiences a transient issue. - * * `subscription` - The email was successfully delivered, but the recipient updated their + * * `SUBSCRIPTION` - The email was successfully delivered, but the recipient updated their * subscription preferences by clicking on an *unsubscribe* link as part of your [subscription * management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html) * . @@ -1162,13 +1345,10 @@ public open class CfnConfigurationSetEventDestination( } /** - * Contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis - * Firehose event destination. + * An object that defines an Amazon Kinesis Data Firehose destination for email events. * - * Event destinations, such as Amazon Kinesis Firehose, are associated with configuration sets, - * which enable you to publish email sending events. For information about using configuration sets, - * see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html) . + * You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 + * and Amazon Redshift. * * Example: * @@ -1195,8 +1375,8 @@ public open class CfnConfigurationSetEventDestination( public fun deliveryStreamArn(): String /** - * The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon - * Kinesis Firehose stream. + * The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email + * events to the Amazon Kinesis Data Firehose stream. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html#cfn-ses-configurationseteventdestination-kinesisfirehosedestination-iamrolearn) */ @@ -1214,8 +1394,8 @@ public open class CfnConfigurationSetEventDestination( public fun deliveryStreamArn(deliveryStreamArn: String) /** - * @param iamRoleArn The ARN of the IAM role under which Amazon SES publishes email sending - * events to the Amazon Kinesis Firehose stream. + * @param iamRoleArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 + * uses to send email events to the Amazon Kinesis Data Firehose stream. */ public fun iamRoleArn(iamRoleArn: String) } @@ -1235,8 +1415,8 @@ public open class CfnConfigurationSetEventDestination( } /** - * @param iamRoleArn The ARN of the IAM role under which Amazon SES publishes email sending - * events to the Amazon Kinesis Firehose stream. + * @param iamRoleArn The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 + * uses to send email events to the Amazon Kinesis Data Firehose stream. */ override fun iamRoleArn(iamRoleArn: String) { cdkBuilder.iamRoleArn(iamRoleArn) @@ -1249,7 +1429,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.KinesisFirehoseDestinationProperty, - ) : CdkObject(cdkObject), KinesisFirehoseDestinationProperty { + ) : CdkObject(cdkObject), + KinesisFirehoseDestinationProperty { /** * The ARN of the Amazon Kinesis Firehose stream that email sending events should be published * to. @@ -1259,8 +1440,8 @@ public open class CfnConfigurationSetEventDestination( override fun deliveryStreamArn(): String = unwrap(this).getDeliveryStreamArn() /** - * The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon - * Kinesis Firehose stream. + * The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send + * email events to the Amazon Kinesis Data Firehose stream. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html#cfn-ses-configurationseteventdestination-kinesisfirehosedestination-iamrolearn) */ @@ -1366,7 +1547,8 @@ public open class CfnConfigurationSetEventDestination( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestination.SnsDestinationProperty, - ) : CdkObject(cdkObject), SnsDestinationProperty { + ) : CdkObject(cdkObject), + SnsDestinationProperty { /** * The ARN of the Amazon SNS topic for email sending events. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestinationProps.kt index 85498af5b8..8e841f64e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetEventDestinationProps.kt @@ -34,6 +34,9 @@ import kotlin.jvm.JvmName * .build())) * .build()) * .enabled(false) + * .eventBridgeDestination(EventBridgeDestinationProperty.builder() + * .eventBusArn("eventBusArn") + * .build()) * .kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder() * .deliveryStreamArn("deliveryStreamArn") * .iamRoleArn("iamRoleArn") @@ -57,7 +60,7 @@ public interface CfnConfigurationSetEventDestinationProps { public fun configurationSetName(): String /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) */ @@ -75,18 +78,18 @@ public interface CfnConfigurationSetEventDestinationProps { public fun configurationSetName(configurationSetName: String) /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ public fun eventDestination(eventDestination: IResolvable) /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ public fun eventDestination(eventDestination: CfnConfigurationSetEventDestination.EventDestinationProperty) /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("23aacf5cf24571485028814a8aa03c67b3b3c3144f61ce9dfdea5bc6c91855c6") @@ -108,14 +111,14 @@ public interface CfnConfigurationSetEventDestinationProps { } /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ override fun eventDestination(eventDestination: IResolvable) { cdkBuilder.eventDestination(eventDestination.let(IResolvable.Companion::unwrap)) } /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ override fun eventDestination(eventDestination: CfnConfigurationSetEventDestination.EventDestinationProperty) { @@ -123,7 +126,7 @@ public interface CfnConfigurationSetEventDestinationProps { } /** - * @param eventDestination The event destination object. + * @param eventDestination An object that defines the event destination. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("23aacf5cf24571485028814a8aa03c67b3b3c3144f61ce9dfdea5bc6c91855c6") @@ -138,7 +141,8 @@ public interface CfnConfigurationSetEventDestinationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetEventDestinationProps, - ) : CdkObject(cdkObject), CfnConfigurationSetEventDestinationProps { + ) : CdkObject(cdkObject), + CfnConfigurationSetEventDestinationProps { /** * The name of the configuration set that contains the event destination. * @@ -147,7 +151,7 @@ public interface CfnConfigurationSetEventDestinationProps { override fun configurationSetName(): String = unwrap(this).getConfigurationSetName() /** - * The event destination object. + * An object that defines the event destination. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetProps.kt index 8781734e5b..c8b694f6b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnConfigurationSetProps.kt @@ -53,8 +53,8 @@ import kotlin.jvm.JvmName */ public interface CfnConfigurationSetProps { /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and whether + * messages that use the configuration set are required to use Transport Layer Security (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) */ @@ -71,7 +71,8 @@ public interface CfnConfigurationSetProps { public fun name(): String? = unwrap(this).getName() /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) */ @@ -93,7 +94,8 @@ public interface CfnConfigurationSetProps { public fun suppressionOptions(): Any? = unwrap(this).getSuppressionOptions() /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) */ @@ -112,20 +114,23 @@ public interface CfnConfigurationSetProps { @CdkDslMarker public interface Builder { /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ public fun deliveryOptions(deliveryOptions: IResolvable) /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ public fun deliveryOptions(deliveryOptions: CfnConfigurationSet.DeliveryOptionsProperty) /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0bf6289bbefa5e46969b3364e4d6b808c8b989b975f87416589ce94051d1fc36") @@ -141,20 +146,20 @@ public interface CfnConfigurationSetProps { public fun name(name: String) /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ public fun reputationOptions(reputationOptions: IResolvable) /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ public fun reputationOptions(reputationOptions: CfnConfigurationSet.ReputationOptionsProperty) /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c7b8a0979b6dd4bf62103f4b02e718f928a3daed90946a3d903d7ee044eddb6") @@ -205,20 +210,20 @@ public interface CfnConfigurationSetProps { fun suppressionOptions(suppressionOptions: CfnConfigurationSet.SuppressionOptionsProperty.Builder.() -> Unit) /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ public fun trackingOptions(trackingOptions: IResolvable) /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ public fun trackingOptions(trackingOptions: CfnConfigurationSet.TrackingOptionsProperty) /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a270122f66bb2d23246474cc97c9b86630efa5b4188f0024907557c8ab4dd13c") @@ -251,24 +256,27 @@ public interface CfnConfigurationSetProps { software.amazon.awscdk.services.ses.CfnConfigurationSetProps.builder() /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ override fun deliveryOptions(deliveryOptions: IResolvable) { cdkBuilder.deliveryOptions(deliveryOptions.let(IResolvable.Companion::unwrap)) } /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ override fun deliveryOptions(deliveryOptions: CfnConfigurationSet.DeliveryOptionsProperty) { cdkBuilder.deliveryOptions(deliveryOptions.let(CfnConfigurationSet.DeliveryOptionsProperty.Companion::unwrap)) } /** - * @param deliveryOptions Specifies whether messages that use the configuration set are required - * to use Transport Layer Security (TLS). + * @param deliveryOptions Specifies the name of the dedicated IP pool to associate with the + * configuration set and whether messages that use the configuration set are required to use + * Transport Layer Security (TLS). */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0bf6289bbefa5e46969b3364e4d6b808c8b989b975f87416589ce94051d1fc36") @@ -287,16 +295,16 @@ public interface CfnConfigurationSetProps { } /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ override fun reputationOptions(reputationOptions: IResolvable) { cdkBuilder.reputationOptions(reputationOptions.let(IResolvable.Companion::unwrap)) } /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ override fun reputationOptions(reputationOptions: CfnConfigurationSet.ReputationOptionsProperty) { @@ -304,8 +312,8 @@ public interface CfnConfigurationSetProps { } /** - * @param reputationOptions An object that represents the reputation settings for the - * configuration set. + * @param reputationOptions An object that defines whether or not Amazon SES collects reputation + * metrics for the emails that you send that use the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("7c7b8a0979b6dd4bf62103f4b02e718f928a3daed90946a3d903d7ee044eddb6") @@ -368,24 +376,24 @@ public interface CfnConfigurationSetProps { suppressionOptions(CfnConfigurationSet.SuppressionOptionsProperty(suppressionOptions)) /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ override fun trackingOptions(trackingOptions: IResolvable) { cdkBuilder.trackingOptions(trackingOptions.let(IResolvable.Companion::unwrap)) } /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ override fun trackingOptions(trackingOptions: CfnConfigurationSet.TrackingOptionsProperty) { cdkBuilder.trackingOptions(trackingOptions.let(CfnConfigurationSet.TrackingOptionsProperty.Companion::unwrap)) } /** - * @param trackingOptions The name of the custom open and click tracking domain associated with - * the configuration set. + * @param trackingOptions An object that defines the open and click tracking options for emails + * that you send using the configuration set. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("a270122f66bb2d23246474cc97c9b86630efa5b4188f0024907557c8ab4dd13c") @@ -424,10 +432,12 @@ public interface CfnConfigurationSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnConfigurationSetProps, - ) : CdkObject(cdkObject), CfnConfigurationSetProps { + ) : CdkObject(cdkObject), + CfnConfigurationSetProps { /** - * Specifies whether messages that use the configuration set are required to use Transport Layer - * Security (TLS). + * Specifies the name of the dedicated IP pool to associate with the configuration set and + * whether messages that use the configuration set are required to use Transport Layer Security + * (TLS). * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-deliveryoptions) */ @@ -444,7 +454,8 @@ public interface CfnConfigurationSetProps { override fun name(): String? = unwrap(this).getName() /** - * An object that represents the reputation settings for the configuration set. + * An object that defines whether or not Amazon SES collects reputation metrics for the emails + * that you send that use the configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-reputationoptions) */ @@ -466,7 +477,8 @@ public interface CfnConfigurationSetProps { override fun suppressionOptions(): Any? = unwrap(this).getSuppressionOptions() /** - * The name of the custom open and click tracking domain associated with the configuration set. + * An object that defines the open and click tracking options for emails that you send using the + * configuration set. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-trackingoptions) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactList.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactList.kt index 15ff7be8f9..7d784fde77 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactList.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactList.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContactList( cdkObject: software.amazon.awscdk.services.ses.CfnContactList, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnContactList(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -440,7 +442,8 @@ public open class CfnContactList( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnContactList.TopicProperty, - ) : CdkObject(cdkObject), TopicProperty { + ) : CdkObject(cdkObject), + TopicProperty { /** * The default subscription status to be applied to a contact if the contact has not noted * their preference for subscribing to a topic. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactListProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactListProps.kt index baa76545d1..5b30d030d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactListProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnContactListProps.kt @@ -172,7 +172,8 @@ public interface CfnContactListProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnContactListProps, - ) : CdkObject(cdkObject), CfnContactListProps { + ) : CdkObject(cdkObject), + CfnContactListProps { /** * The name of the contact list. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPool.kt index 9d234207e7..d59b1adc8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPool.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDedicatedIpPool( cdkObject: software.amazon.awscdk.services.ses.CfnDedicatedIpPool, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnDedicatedIpPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPoolProps.kt index 86d97d0a60..db2c5d6ec6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnDedicatedIpPoolProps.kt @@ -115,7 +115,8 @@ public interface CfnDedicatedIpPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnDedicatedIpPoolProps, - ) : CdkObject(cdkObject), CfnDedicatedIpPoolProps { + ) : CdkObject(cdkObject), + CfnDedicatedIpPoolProps { /** * The name of the dedicated IP pool that the IP address is associated with. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentity.kt index 10213a7611..c7b62a9e01 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentity.kt @@ -27,19 +27,19 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * When you verify an email address, SES sends an email to the address. Your email address is * verified as soon as you follow the link in the verification email. When you verify a domain without - * specifying the DkimSigningAttributes properties, OR only the NextSigningKeyLength property of - * DkimSigningAttributes, this resource provides a set of CNAME token names and values - * (DkimDNSTokenName1, DkimDNSTokenValue1, DkimDNSTokenName2, DkimDNSTokenValue2, DkimDNSTokenName3, - * DkimDNSTokenValue3) as outputs. You can then add these to the DNS configuration for your domain. - * Your domain is verified when Amazon SES detects these records in the DNS configuration for your - * domain. This verification method is known as Easy DKIM. + * specifying the `DkimSigningAttributes` properties, OR only the `NextSigningKeyLength` property of + * `DkimSigningAttributes` , this resource provides a set of CNAME token names and values ( + * *DkimDNSTokenName1* , *DkimDNSTokenValue1* , *DkimDNSTokenName2* , *DkimDNSTokenValue2* , + * *DkimDNSTokenName3* , *DkimDNSTokenValue3* ) as outputs. You can then add these to the DNS + * configuration for your domain. Your domain is verified when Amazon SES detects these records in the + * DNS configuration for your domain. This verification method is known as Easy DKIM. * * Alternatively, you can perform the verification process by providing your own public-private key * pair. This verification method is known as Bring Your Own DKIM (BYODKIM). To use BYODKIM, your - * resource must include DkimSigningAttributes properties DomainSigningSelector and - * DomainSigningPrivateKey. When you specify this object, you provide a selector - * (DomainSigningSelector) (a component of the DNS record name that identifies the public key to use - * for DKIM authentication) and a private key (DomainSigningPrivateKey). + * resource must include `DkimSigningAttributes` properties `DomainSigningSelector` and + * `DomainSigningPrivateKey` . When you specify this object, you provide a selector ( + * `DomainSigningSelector` ) (a component of the DNS record name that identifies the public key to use + * for DKIM authentication) and a private key ( `DomainSigningPrivateKey` ). * * Additionally, you can associate an existing configuration set with the email identity that you're * verifying. @@ -78,7 +78,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEmailIdentity( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -189,14 +190,14 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your Own * DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for - * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ public open fun dkimSigningAttributes(): Any? = unwrap(this).getDkimSigningAttributes() /** * If your request includes this object, Amazon SES configures the identity to use Bring Your Own * DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for - * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ public open fun dkimSigningAttributes(`value`: IResolvable) { unwrap(this).setDkimSigningAttributes(`value`.let(IResolvable.Companion::unwrap)) @@ -205,7 +206,7 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your Own * DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for - * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ public open fun dkimSigningAttributes(`value`: DkimSigningAttributesProperty) { unwrap(this).setDkimSigningAttributes(`value`.let(DkimSigningAttributesProperty.Companion::unwrap)) @@ -214,7 +215,7 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your Own * DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for - * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("1539c2c47cc40bc571dfa6bf2e15cb17fa45e57196e954e1a4fe1a550e4fa1e9") @@ -364,42 +365,45 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ public fun dkimSigningAttributes(dkimSigningAttributes: IResolvable) /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ public fun dkimSigningAttributes(dkimSigningAttributes: DkimSigningAttributesProperty) /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0dc9de9a7cd51baeddf84a283c353afab9d9b5c688a3693de80758c6c6834fee") @@ -551,14 +555,15 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ override fun dkimSigningAttributes(dkimSigningAttributes: IResolvable) { cdkBuilder.dkimSigningAttributes(dkimSigningAttributes.let(IResolvable.Companion::unwrap)) @@ -567,14 +572,15 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ override fun dkimSigningAttributes(dkimSigningAttributes: DkimSigningAttributesProperty) { cdkBuilder.dkimSigningAttributes(dkimSigningAttributes.let(DkimSigningAttributesProperty.Companion::unwrap)) @@ -583,14 +589,15 @@ public open class CfnEmailIdentity( /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("0dc9de9a7cd51baeddf84a283c353afab9d9b5c688a3693de80758c6c6834fee") @@ -755,7 +762,8 @@ public open class CfnEmailIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity.ConfigurationSetAttributesProperty, - ) : CdkObject(cdkObject), ConfigurationSetAttributesProperty { + ) : CdkObject(cdkObject), + ConfigurationSetAttributesProperty { /** * The configuration set to associate with an email identity. * @@ -864,7 +872,8 @@ public open class CfnEmailIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity.DkimAttributesProperty, - ) : CdkObject(cdkObject), DkimAttributesProperty { + ) : CdkObject(cdkObject), + DkimAttributesProperty { /** * Sets the DKIM signing configuration for the identity. * @@ -1055,7 +1064,8 @@ public open class CfnEmailIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity.DkimSigningAttributesProperty, - ) : CdkObject(cdkObject), DkimSigningAttributesProperty { + ) : CdkObject(cdkObject), + DkimSigningAttributesProperty { /** * [Bring Your Own DKIM] A private key that's used to generate a DKIM signature. * @@ -1225,7 +1235,8 @@ public open class CfnEmailIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity.FeedbackAttributesProperty, - ) : CdkObject(cdkObject), FeedbackAttributesProperty { + ) : CdkObject(cdkObject), + FeedbackAttributesProperty { /** * Sets the feedback forwarding configuration for the identity. * @@ -1383,7 +1394,8 @@ public open class CfnEmailIdentity( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentity.MailFromAttributesProperty, - ) : CdkObject(cdkObject), MailFromAttributesProperty { + ) : CdkObject(cdkObject), + MailFromAttributesProperty { /** * The action to take if the required MX record isn't found when you send an email. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentityProps.kt index bb5657462d..931cab30df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnEmailIdentityProps.kt @@ -64,7 +64,9 @@ public interface CfnEmailIdentityProps { /** * If your request includes this object, Amazon SES configures the identity to use Bring Your Own * DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for - * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) */ @@ -143,7 +145,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ public fun dkimSigningAttributes(dkimSigningAttributes: IResolvable) @@ -151,7 +154,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ public fun dkimSigningAttributes(dkimSigningAttributes: CfnEmailIdentity.DkimSigningAttributesProperty) @@ -160,7 +164,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("396e6f6aa49ce64ae88b2fb27f8886894ef43dfe2a0c5391da95f40a50d182ba") @@ -274,7 +279,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ override fun dkimSigningAttributes(dkimSigningAttributes: IResolvable) { cdkBuilder.dkimSigningAttributes(dkimSigningAttributes.let(IResolvable.Companion::unwrap)) @@ -284,7 +290,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ override fun dkimSigningAttributes(dkimSigningAttributes: CfnEmailIdentity.DkimSigningAttributesProperty) { @@ -295,7 +302,8 @@ public interface CfnEmailIdentityProps { * @param dkimSigningAttributes If your request includes this object, Amazon SES configures the * identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures * the key length to be used for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * You can only specify this object if the email identity is a domain, as opposed to an address. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("396e6f6aa49ce64ae88b2fb27f8886894ef43dfe2a0c5391da95f40a50d182ba") @@ -368,7 +376,8 @@ public interface CfnEmailIdentityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnEmailIdentityProps, - ) : CdkObject(cdkObject), CfnEmailIdentityProps { + ) : CdkObject(cdkObject), + CfnEmailIdentityProps { /** * Used to associate a configuration set with an email identity. * @@ -386,8 +395,9 @@ public interface CfnEmailIdentityProps { /** * If your request includes this object, Amazon SES configures the identity to use Bring Your * Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used - * for [Easy - * DKIM](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html) . + * for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) . + * + * You can only specify this object if the email identity is a domain, as opposed to an address. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-emailidentity.html#cfn-ses-emailidentity-dkimsigningattributes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstance.kt new file mode 100644 index 0000000000..10bb112646 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstance.kt @@ -0,0 +1,220 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an Add On instance for the subscription indicated in the request. + * + * The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + * traffic policy. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerAddonInstance cfnMailManagerAddonInstance = + * CfnMailManagerAddonInstance.Builder.create(this, "MyCfnMailManagerAddonInstance") + * .addonSubscriptionId("addonSubscriptionId") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html) + */ +public open class CfnMailManagerAddonInstance( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerAddonInstanceProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerAddonInstanceProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerAddonInstanceProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerAddonInstanceProps(props) + ) + + /** + * The subscription ID for the instance. + */ + public open fun addonSubscriptionId(): String = unwrap(this).getAddonSubscriptionId() + + /** + * The subscription ID for the instance. + */ + public open fun addonSubscriptionId(`value`: String) { + unwrap(this).setAddonSubscriptionId(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the Add On instance. + */ + public open fun attrAddonInstanceArn(): String = unwrap(this).getAttrAddonInstanceArn() + + /** + * The unique ID of the Add On instance. + */ + public open fun attrAddonInstanceId(): String = unwrap(this).getAttrAddonInstanceId() + + /** + * The name of the Add On for the instance. + */ + public open fun attrAddonName(): String = unwrap(this).getAttrAddonName() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerAddonInstance]. + */ + @CdkDslMarker + public interface Builder { + /** + * The subscription ID for the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-addonsubscriptionid) + * @param addonSubscriptionId The subscription ID for the instance. + */ + public fun addonSubscriptionId(addonSubscriptionId: String) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance.Builder + = software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance.Builder.create(scope, id) + + /** + * The subscription ID for the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-addonsubscriptionid) + * @param addonSubscriptionId The subscription ID for the instance. + */ + override fun addonSubscriptionId(addonSubscriptionId: String) { + cdkBuilder.addonSubscriptionId(addonSubscriptionId) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerAddonInstance { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerAddonInstance(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance): + CfnMailManagerAddonInstance = CfnMailManagerAddonInstance(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerAddonInstance): + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstance + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstanceProps.kt new file mode 100644 index 0000000000..3161916482 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonInstanceProps.kt @@ -0,0 +1,141 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnMailManagerAddonInstance`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerAddonInstanceProps cfnMailManagerAddonInstanceProps = + * CfnMailManagerAddonInstanceProps.builder() + * .addonSubscriptionId("addonSubscriptionId") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html) + */ +public interface CfnMailManagerAddonInstanceProps { + /** + * The subscription ID for the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-addonsubscriptionid) + */ + public fun addonSubscriptionId(): String + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnMailManagerAddonInstanceProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param addonSubscriptionId The subscription ID for the instance. + */ + public fun addonSubscriptionId(addonSubscriptionId: String) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps.builder() + + /** + * @param addonSubscriptionId The subscription ID for the instance. + */ + override fun addonSubscriptionId(addonSubscriptionId: String) { + cdkBuilder.addonSubscriptionId(addonSubscriptionId) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps, + ) : CdkObject(cdkObject), + CfnMailManagerAddonInstanceProps { + /** + * The subscription ID for the instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-addonsubscriptionid) + */ + override fun addonSubscriptionId(): String = unwrap(this).getAddonSubscriptionId() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddoninstance.html#cfn-ses-mailmanageraddoninstance-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerAddonInstanceProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps): + CfnMailManagerAddonInstanceProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerAddonInstanceProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerAddonInstanceProps): + software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerAddonInstanceProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscription.kt new file mode 100644 index 0000000000..e3ac1279e0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscription.kt @@ -0,0 +1,226 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a subscription for an Add On representing the acceptance of its terms of use and + * additional pricing. + * + * The subscription can then be used to create an instance for use in rule sets or traffic policies. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerAddonSubscription cfnMailManagerAddonSubscription = + * CfnMailManagerAddonSubscription.Builder.create(this, "MyCfnMailManagerAddonSubscription") + * .addonName("addonName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html) + */ +public open class CfnMailManagerAddonSubscription( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerAddonSubscriptionProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerAddonSubscriptionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerAddonSubscriptionProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerAddonSubscriptionProps(props) + ) + + /** + * The name of the Add On to subscribe to. + */ + public open fun addonName(): String = unwrap(this).getAddonName() + + /** + * The name of the Add On to subscribe to. + */ + public open fun addonName(`value`: String) { + unwrap(this).setAddonName(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the Add On subscription. + */ + public open fun attrAddonSubscriptionArn(): String = unwrap(this).getAttrAddonSubscriptionArn() + + /** + * The unique ID of the Add On subscription. + */ + public open fun attrAddonSubscriptionId(): String = unwrap(this).getAttrAddonSubscriptionId() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerAddonSubscription]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the Add On to subscribe to. + * + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-addonname) + * @param addonName The name of the Add On to subscribe to. + */ + public fun addonName(addonName: String) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription.Builder.create(scope, + id) + + /** + * The name of the Add On to subscribe to. + * + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-addonname) + * @param addonName The name of the Add On to subscribe to. + */ + override fun addonName(addonName: String) { + cdkBuilder.addonName(addonName) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerAddonSubscription { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerAddonSubscription(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription): + CfnMailManagerAddonSubscription = CfnMailManagerAddonSubscription(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerAddonSubscription): + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscription + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscriptionProps.kt new file mode 100644 index 0000000000..4718c79ed3 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerAddonSubscriptionProps.kt @@ -0,0 +1,157 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnMailManagerAddonSubscription`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerAddonSubscriptionProps cfnMailManagerAddonSubscriptionProps = + * CfnMailManagerAddonSubscriptionProps.builder() + * .addonName("addonName") + * // the properties below are optional + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html) + */ +public interface CfnMailManagerAddonSubscriptionProps { + /** + * The name of the Add On to subscribe to. + * + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-addonname) + */ + public fun addonName(): String + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnMailManagerAddonSubscriptionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param addonName The name of the Add On to subscribe to. + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + */ + public fun addonName(addonName: String) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps.builder() + + /** + * @param addonName The name of the Add On to subscribe to. + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + */ + override fun addonName(addonName: String) { + cdkBuilder.addonName(addonName) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps, + ) : CdkObject(cdkObject), + CfnMailManagerAddonSubscriptionProps { + /** + * The name of the Add On to subscribe to. + * + * You can only have one subscription for each Add On name. + * + * Valid Values: `TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-addonname) + */ + override fun addonName(): String = unwrap(this).getAddonName() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageraddonsubscription.html#cfn-ses-mailmanageraddonsubscription-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + CfnMailManagerAddonSubscriptionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps): + CfnMailManagerAddonSubscriptionProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerAddonSubscriptionProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerAddonSubscriptionProps): + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerAddonSubscriptionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchive.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchive.kt new file mode 100644 index 0000000000..fde5f7d52e --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchive.kt @@ -0,0 +1,434 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a new email archive resource for storing and retaining emails. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerArchive cfnMailManagerArchive = CfnMailManagerArchive.Builder.create(this, + * "MyCfnMailManagerArchive") + * .archiveName("archiveName") + * .kmsKeyArn("kmsKeyArn") + * .retention(ArchiveRetentionProperty.builder() + * .retentionPeriod("retentionPeriod") + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html) + */ +public open class CfnMailManagerArchive( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchive, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.ses.CfnMailManagerArchive(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerArchiveProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerArchive(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerArchiveProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerArchiveProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerArchiveProps(props) + ) + + /** + * A unique name for the new archive. + */ + public open fun archiveName(): String? = unwrap(this).getArchiveName() + + /** + * A unique name for the new archive. + */ + public open fun archiveName(`value`: String) { + unwrap(this).setArchiveName(`value`) + } + + /** + * The Amazon Resource Name (ARN) of the archive. + */ + public open fun attrArchiveArn(): String = unwrap(this).getAttrArchiveArn() + + /** + * The unique identifier of the archive. + */ + public open fun attrArchiveId(): String = unwrap(this).getAttrArchiveId() + + /** + * The current state of the archive:. + * + * * `ACTIVE` – The archive is ready and available for use. + * * `PENDING_DELETION` – The archive has been marked for deletion and will be permanently deleted + * in 30 days. No further modifications can be made in this state. + */ + public open fun attrArchiveState(): String = unwrap(this).getAttrArchiveState() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + */ + public open fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + */ + public open fun kmsKeyArn(`value`: String) { + unwrap(this).setKmsKeyArn(`value`) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + */ + public open fun retention(): Any? = unwrap(this).getRetention() + + /** + * The period for retaining emails in the archive before automatic deletion. + */ + public open fun retention(`value`: IResolvable) { + unwrap(this).setRetention(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + */ + public open fun retention(`value`: ArchiveRetentionProperty) { + unwrap(this).setRetention(`value`.let(ArchiveRetentionProperty.Companion::unwrap)) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("22aedc4500114696cd89148b8fcf7fe67086a6a823701bea95fb72321943b45e") + public open fun retention(`value`: ArchiveRetentionProperty.Builder.() -> Unit): Unit = + retention(ArchiveRetentionProperty(`value`)) + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerArchive]. + */ + @CdkDslMarker + public interface Builder { + /** + * A unique name for the new archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-archivename) + * @param archiveName A unique name for the new archive. + */ + public fun archiveName(archiveName: String) + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + public fun retention(retention: IResolvable) + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + public fun retention(retention: ArchiveRetentionProperty) + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f953e58f20ffb17084cd622268395fc7f8fdd5966c301db7321db86c16336738") + public fun retention(retention: ArchiveRetentionProperty.Builder.() -> Unit) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerArchive.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerArchive.Builder.create(scope, id) + + /** + * A unique name for the new archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-archivename) + * @param archiveName A unique name for the new archive. + */ + override fun archiveName(archiveName: String) { + cdkBuilder.archiveName(archiveName) + } + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-kmskeyarn) + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + override fun retention(retention: IResolvable) { + cdkBuilder.retention(retention.let(IResolvable.Companion::unwrap)) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + override fun retention(retention: ArchiveRetentionProperty) { + cdkBuilder.retention(retention.let(ArchiveRetentionProperty.Companion::unwrap)) + } + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("f953e58f20ffb17084cd622268395fc7f8fdd5966c301db7321db86c16336738") + override fun retention(retention: ArchiveRetentionProperty.Builder.() -> Unit): Unit = + retention(ArchiveRetentionProperty(retention)) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerArchive = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerArchive.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerArchive { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerArchive(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchive): + CfnMailManagerArchive = CfnMailManagerArchive(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerArchive): + software.amazon.awscdk.services.ses.CfnMailManagerArchive = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerArchive + } + + /** + * The retention policy for an email archive that specifies how long emails are kept before being + * automatically deleted. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * ArchiveRetentionProperty archiveRetentionProperty = ArchiveRetentionProperty.builder() + * .retentionPeriod("retentionPeriod") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerarchive-archiveretention.html) + */ + public interface ArchiveRetentionProperty { + /** + * The enum value sets the period for retaining emails in an archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerarchive-archiveretention.html#cfn-ses-mailmanagerarchive-archiveretention-retentionperiod) + */ + public fun retentionPeriod(): String + + /** + * A builder for [ArchiveRetentionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param retentionPeriod The enum value sets the period for retaining emails in an archive. + */ + public fun retentionPeriod(retentionPeriod: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty.builder() + + /** + * @param retentionPeriod The enum value sets the period for retaining emails in an archive. + */ + override fun retentionPeriod(retentionPeriod: String) { + cdkBuilder.retentionPeriod(retentionPeriod) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty, + ) : CdkObject(cdkObject), + ArchiveRetentionProperty { + /** + * The enum value sets the period for retaining emails in an archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerarchive-archiveretention.html#cfn-ses-mailmanagerarchive-archiveretention-retentionperiod) + */ + override fun retentionPeriod(): String = unwrap(this).getRetentionPeriod() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ArchiveRetentionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty): + ArchiveRetentionProperty = CdkObjectWrappers.wrap(cdkObject) as? ArchiveRetentionProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ArchiveRetentionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerArchive.ArchiveRetentionProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchiveProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchiveProps.kt new file mode 100644 index 0000000000..5b13afa06f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerArchiveProps.kt @@ -0,0 +1,227 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnMailManagerArchive`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerArchiveProps cfnMailManagerArchiveProps = CfnMailManagerArchiveProps.builder() + * .archiveName("archiveName") + * .kmsKeyArn("kmsKeyArn") + * .retention(ArchiveRetentionProperty.builder() + * .retentionPeriod("retentionPeriod") + * .build()) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html) + */ +public interface CfnMailManagerArchiveProps { + /** + * A unique name for the new archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-archivename) + */ + public fun archiveName(): String? = unwrap(this).getArchiveName() + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-kmskeyarn) + */ + public fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + */ + public fun retention(): Any? = unwrap(this).getRetention() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnMailManagerArchiveProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param archiveName A unique name for the new archive. + */ + public fun archiveName(archiveName: String) + + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive. + */ + public fun kmsKeyArn(kmsKeyArn: String) + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + public fun retention(retention: IResolvable) + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + public fun retention(retention: CfnMailManagerArchive.ArchiveRetentionProperty) + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e00fb61a0979a2743470d5b2f1f02cc0c5293f1fa16eda71e8485af0a63cb4a1") + public + fun retention(retention: CfnMailManagerArchive.ArchiveRetentionProperty.Builder.() -> Unit) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps.builder() + + /** + * @param archiveName A unique name for the new archive. + */ + override fun archiveName(archiveName: String) { + cdkBuilder.archiveName(archiveName) + } + + /** + * @param kmsKeyArn The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive. + */ + override fun kmsKeyArn(kmsKeyArn: String) { + cdkBuilder.kmsKeyArn(kmsKeyArn) + } + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + override fun retention(retention: IResolvable) { + cdkBuilder.retention(retention.let(IResolvable.Companion::unwrap)) + } + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + override fun retention(retention: CfnMailManagerArchive.ArchiveRetentionProperty) { + cdkBuilder.retention(retention.let(CfnMailManagerArchive.ArchiveRetentionProperty.Companion::unwrap)) + } + + /** + * @param retention The period for retaining emails in the archive before automatic deletion. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e00fb61a0979a2743470d5b2f1f02cc0c5293f1fa16eda71e8485af0a63cb4a1") + override + fun retention(retention: CfnMailManagerArchive.ArchiveRetentionProperty.Builder.() -> Unit): + Unit = retention(CfnMailManagerArchive.ArchiveRetentionProperty(retention)) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps, + ) : CdkObject(cdkObject), + CfnMailManagerArchiveProps { + /** + * A unique name for the new archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-archivename) + */ + override fun archiveName(): String? = unwrap(this).getArchiveName() + + /** + * The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-kmskeyarn) + */ + override fun kmsKeyArn(): String? = unwrap(this).getKmsKeyArn() + + /** + * The period for retaining emails in the archive before automatic deletion. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-retention) + */ + override fun retention(): Any? = unwrap(this).getRetention() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerarchive.html#cfn-ses-mailmanagerarchive-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerArchiveProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps): + CfnMailManagerArchiveProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerArchiveProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerArchiveProps): + software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerArchiveProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPoint.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPoint.kt new file mode 100644 index 0000000000..d8852ea545 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPoint.kt @@ -0,0 +1,571 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Resource to provision an ingress endpoint for receiving email. + * + * An ingress endpoint serves as the entry point for incoming emails, allowing you to define how + * emails are received and processed within your AWS environment. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerIngressPoint cfnMailManagerIngressPoint = + * CfnMailManagerIngressPoint.Builder.create(this, "MyCfnMailManagerIngressPoint") + * .ruleSetId("ruleSetId") + * .trafficPolicyId("trafficPolicyId") + * .type("type") + * // the properties below are optional + * .ingressPointConfiguration(IngressPointConfigurationProperty.builder() + * .secretArn("secretArn") + * .smtpPassword("smtpPassword") + * .build()) + * .ingressPointName("ingressPointName") + * .statusToUpdate("statusToUpdate") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html) + */ +public open class CfnMailManagerIngressPoint( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerIngressPointProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerIngressPointProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerIngressPointProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerIngressPointProps(props) + ) + + /** + * The DNS A Record that identifies your ingress endpoint. + * + * Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager. + */ + public open fun attrARecord(): String = unwrap(this).getAttrARecord() + + /** + * The Amazon Resource Name (ARN) of the ingress endpoint resource. + */ + public open fun attrIngressPointArn(): String = unwrap(this).getAttrIngressPointArn() + + /** + * The identifier of the ingress endpoint resource. + */ + public open fun attrIngressPointId(): String = unwrap(this).getAttrIngressPointId() + + /** + * The status of the ingress endpoint resource. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The configuration of the ingress endpoint resource. + */ + public open fun ingressPointConfiguration(): Any? = unwrap(this).getIngressPointConfiguration() + + /** + * The configuration of the ingress endpoint resource. + */ + public open fun ingressPointConfiguration(`value`: IResolvable) { + unwrap(this).setIngressPointConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The configuration of the ingress endpoint resource. + */ + public open fun ingressPointConfiguration(`value`: IngressPointConfigurationProperty) { + unwrap(this).setIngressPointConfiguration(`value`.let(IngressPointConfigurationProperty.Companion::unwrap)) + } + + /** + * The configuration of the ingress endpoint resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e378ac31b06e7c48badb8840de892b7392cc1ea0f2485f434b2621b04c441c67") + public open + fun ingressPointConfiguration(`value`: IngressPointConfigurationProperty.Builder.() -> Unit): + Unit = ingressPointConfiguration(IngressPointConfigurationProperty(`value`)) + + /** + * A user friendly name for an ingress endpoint resource. + */ + public open fun ingressPointName(): String? = unwrap(this).getIngressPointName() + + /** + * A user friendly name for an ingress endpoint resource. + */ + public open fun ingressPointName(`value`: String) { + unwrap(this).setIngressPointName(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + */ + public open fun ruleSetId(): String = unwrap(this).getRuleSetId() + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + */ + public open fun ruleSetId(`value`: String) { + unwrap(this).setRuleSetId(`value`) + } + + /** + * The update status of an ingress endpoint. + */ + public open fun statusToUpdate(): String? = unwrap(this).getStatusToUpdate() + + /** + * The update status of an ingress endpoint. + */ + public open fun statusToUpdate(`value`: String) { + unwrap(this).setStatusToUpdate(`value`) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + */ + public open fun trafficPolicyId(): String = unwrap(this).getTrafficPolicyId() + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + */ + public open fun trafficPolicyId(`value`: String) { + unwrap(this).setTrafficPolicyId(`value`) + } + + /** + * The type of the ingress endpoint to create. + */ + public open fun type(): String = unwrap(this).getType() + + /** + * The type of the ingress endpoint to create. + */ + public open fun type(`value`: String) { + unwrap(this).setType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerIngressPoint]. + */ + @CdkDslMarker + public interface Builder { + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + public fun ingressPointConfiguration(ingressPointConfiguration: IResolvable) + + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + public + fun ingressPointConfiguration(ingressPointConfiguration: IngressPointConfigurationProperty) + + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3f0fccc05ee78d2c1bb98852a9b3c38b1654f6f75e46f390cd63461cb9dd9b8d") + public + fun ingressPointConfiguration(ingressPointConfiguration: IngressPointConfigurationProperty.Builder.() -> Unit) + + /** + * A user friendly name for an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointname) + * @param ingressPointName A user friendly name for an ingress endpoint resource. + */ + public fun ingressPointName(ingressPointName: String) + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-rulesetid) + * @param ruleSetId The identifier of an existing rule set that you attach to an ingress + * endpoint resource. + */ + public fun ruleSetId(ruleSetId: String) + + /** + * The update status of an ingress endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-statustoupdate) + * @param statusToUpdate The update status of an ingress endpoint. + */ + public fun statusToUpdate(statusToUpdate: String) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-trafficpolicyid) + * @param trafficPolicyId The identifier of an existing traffic policy that you attach to an + * ingress endpoint resource. + */ + public fun trafficPolicyId(trafficPolicyId: String) + + /** + * The type of the ingress endpoint to create. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-type) + * @param type The type of the ingress endpoint to create. + */ + public fun type(type: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.Builder.create(scope, id) + + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + override fun ingressPointConfiguration(ingressPointConfiguration: IResolvable) { + cdkBuilder.ingressPointConfiguration(ingressPointConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + override + fun ingressPointConfiguration(ingressPointConfiguration: IngressPointConfigurationProperty) { + cdkBuilder.ingressPointConfiguration(ingressPointConfiguration.let(IngressPointConfigurationProperty.Companion::unwrap)) + } + + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3f0fccc05ee78d2c1bb98852a9b3c38b1654f6f75e46f390cd63461cb9dd9b8d") + override + fun ingressPointConfiguration(ingressPointConfiguration: IngressPointConfigurationProperty.Builder.() -> Unit): + Unit = + ingressPointConfiguration(IngressPointConfigurationProperty(ingressPointConfiguration)) + + /** + * A user friendly name for an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointname) + * @param ingressPointName A user friendly name for an ingress endpoint resource. + */ + override fun ingressPointName(ingressPointName: String) { + cdkBuilder.ingressPointName(ingressPointName) + } + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-rulesetid) + * @param ruleSetId The identifier of an existing rule set that you attach to an ingress + * endpoint resource. + */ + override fun ruleSetId(ruleSetId: String) { + cdkBuilder.ruleSetId(ruleSetId) + } + + /** + * The update status of an ingress endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-statustoupdate) + * @param statusToUpdate The update status of an ingress endpoint. + */ + override fun statusToUpdate(statusToUpdate: String) { + cdkBuilder.statusToUpdate(statusToUpdate) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-trafficpolicyid) + * @param trafficPolicyId The identifier of an existing traffic policy that you attach to an + * ingress endpoint resource. + */ + override fun trafficPolicyId(trafficPolicyId: String) { + cdkBuilder.trafficPolicyId(trafficPolicyId) + } + + /** + * The type of the ingress endpoint to create. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-type) + * @param type The type of the ingress endpoint to create. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerIngressPoint { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerIngressPoint(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint): + CfnMailManagerIngressPoint = CfnMailManagerIngressPoint(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerIngressPoint): + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint + } + + /** + * The configuration of the ingress endpoint resource. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressPointConfigurationProperty ingressPointConfigurationProperty = + * IngressPointConfigurationProperty.builder() + * .secretArn("secretArn") + * .smtpPassword("smtpPassword") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanageringresspoint-ingresspointconfiguration.html) + */ + public interface IngressPointConfigurationProperty { + /** + * The SecretsManager::Secret ARN of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanageringresspoint-ingresspointconfiguration.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration-secretarn) + */ + public fun secretArn(): String? = unwrap(this).getSecretArn() + + /** + * The password of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanageringresspoint-ingresspointconfiguration.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration-smtppassword) + */ + public fun smtpPassword(): String? = unwrap(this).getSmtpPassword() + + /** + * A builder for [IngressPointConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param secretArn The SecretsManager::Secret ARN of the ingress endpoint resource. + */ + public fun secretArn(secretArn: String) + + /** + * @param smtpPassword The password of the ingress endpoint resource. + */ + public fun smtpPassword(smtpPassword: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty.builder() + + /** + * @param secretArn The SecretsManager::Secret ARN of the ingress endpoint resource. + */ + override fun secretArn(secretArn: String) { + cdkBuilder.secretArn(secretArn) + } + + /** + * @param smtpPassword The password of the ingress endpoint resource. + */ + override fun smtpPassword(smtpPassword: String) { + cdkBuilder.smtpPassword(smtpPassword) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty, + ) : CdkObject(cdkObject), + IngressPointConfigurationProperty { + /** + * The SecretsManager::Secret ARN of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanageringresspoint-ingresspointconfiguration.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration-secretarn) + */ + override fun secretArn(): String? = unwrap(this).getSecretArn() + + /** + * The password of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanageringresspoint-ingresspointconfiguration.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration-smtppassword) + */ + override fun smtpPassword(): String? = unwrap(this).getSmtpPassword() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IngressPointConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty): + IngressPointConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressPointConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressPointConfigurationProperty): + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerIngressPoint.IngressPointConfigurationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPointProps.kt new file mode 100644 index 0000000000..6b952dadfc --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerIngressPointProps.kt @@ -0,0 +1,318 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnMailManagerIngressPoint`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerIngressPointProps cfnMailManagerIngressPointProps = + * CfnMailManagerIngressPointProps.builder() + * .ruleSetId("ruleSetId") + * .trafficPolicyId("trafficPolicyId") + * .type("type") + * // the properties below are optional + * .ingressPointConfiguration(IngressPointConfigurationProperty.builder() + * .secretArn("secretArn") + * .smtpPassword("smtpPassword") + * .build()) + * .ingressPointName("ingressPointName") + * .statusToUpdate("statusToUpdate") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html) + */ +public interface CfnMailManagerIngressPointProps { + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + */ + public fun ingressPointConfiguration(): Any? = unwrap(this).getIngressPointConfiguration() + + /** + * A user friendly name for an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointname) + */ + public fun ingressPointName(): String? = unwrap(this).getIngressPointName() + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-rulesetid) + */ + public fun ruleSetId(): String + + /** + * The update status of an ingress endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-statustoupdate) + */ + public fun statusToUpdate(): String? = unwrap(this).getStatusToUpdate() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-trafficpolicyid) + */ + public fun trafficPolicyId(): String + + /** + * The type of the ingress endpoint to create. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-type) + */ + public fun type(): String + + /** + * A builder for [CfnMailManagerIngressPointProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + public fun ingressPointConfiguration(ingressPointConfiguration: IResolvable) + + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + public + fun ingressPointConfiguration(ingressPointConfiguration: CfnMailManagerIngressPoint.IngressPointConfigurationProperty) + + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd7028c0f76d8507d34d6ebc4d5ffbc82e9ecad31b1ae8c55e1c95c6bb3aea47") + public + fun ingressPointConfiguration(ingressPointConfiguration: CfnMailManagerIngressPoint.IngressPointConfigurationProperty.Builder.() -> Unit) + + /** + * @param ingressPointName A user friendly name for an ingress endpoint resource. + */ + public fun ingressPointName(ingressPointName: String) + + /** + * @param ruleSetId The identifier of an existing rule set that you attach to an ingress + * endpoint resource. + */ + public fun ruleSetId(ruleSetId: String) + + /** + * @param statusToUpdate The update status of an ingress endpoint. + */ + public fun statusToUpdate(statusToUpdate: String) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param trafficPolicyId The identifier of an existing traffic policy that you attach to an + * ingress endpoint resource. + */ + public fun trafficPolicyId(trafficPolicyId: String) + + /** + * @param type The type of the ingress endpoint to create. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps.builder() + + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + override fun ingressPointConfiguration(ingressPointConfiguration: IResolvable) { + cdkBuilder.ingressPointConfiguration(ingressPointConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + override + fun ingressPointConfiguration(ingressPointConfiguration: CfnMailManagerIngressPoint.IngressPointConfigurationProperty) { + cdkBuilder.ingressPointConfiguration(ingressPointConfiguration.let(CfnMailManagerIngressPoint.IngressPointConfigurationProperty.Companion::unwrap)) + } + + /** + * @param ingressPointConfiguration The configuration of the ingress endpoint resource. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("dd7028c0f76d8507d34d6ebc4d5ffbc82e9ecad31b1ae8c55e1c95c6bb3aea47") + override + fun ingressPointConfiguration(ingressPointConfiguration: CfnMailManagerIngressPoint.IngressPointConfigurationProperty.Builder.() -> Unit): + Unit = + ingressPointConfiguration(CfnMailManagerIngressPoint.IngressPointConfigurationProperty(ingressPointConfiguration)) + + /** + * @param ingressPointName A user friendly name for an ingress endpoint resource. + */ + override fun ingressPointName(ingressPointName: String) { + cdkBuilder.ingressPointName(ingressPointName) + } + + /** + * @param ruleSetId The identifier of an existing rule set that you attach to an ingress + * endpoint resource. + */ + override fun ruleSetId(ruleSetId: String) { + cdkBuilder.ruleSetId(ruleSetId) + } + + /** + * @param statusToUpdate The update status of an ingress endpoint. + */ + override fun statusToUpdate(statusToUpdate: String) { + cdkBuilder.statusToUpdate(statusToUpdate) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param trafficPolicyId The identifier of an existing traffic policy that you attach to an + * ingress endpoint resource. + */ + override fun trafficPolicyId(trafficPolicyId: String) { + cdkBuilder.trafficPolicyId(trafficPolicyId) + } + + /** + * @param type The type of the ingress endpoint to create. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps, + ) : CdkObject(cdkObject), + CfnMailManagerIngressPointProps { + /** + * The configuration of the ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointconfiguration) + */ + override fun ingressPointConfiguration(): Any? = unwrap(this).getIngressPointConfiguration() + + /** + * A user friendly name for an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-ingresspointname) + */ + override fun ingressPointName(): String? = unwrap(this).getIngressPointName() + + /** + * The identifier of an existing rule set that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-rulesetid) + */ + override fun ruleSetId(): String = unwrap(this).getRuleSetId() + + /** + * The update status of an ingress endpoint. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-statustoupdate) + */ + override fun statusToUpdate(): String? = unwrap(this).getStatusToUpdate() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The identifier of an existing traffic policy that you attach to an ingress endpoint resource. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-trafficpolicyid) + */ + override fun trafficPolicyId(): String = unwrap(this).getTrafficPolicyId() + + /** + * The type of the ingress endpoint to create. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanageringresspoint.html#cfn-ses-mailmanageringresspoint-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerIngressPointProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps): + CfnMailManagerIngressPointProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerIngressPointProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerIngressPointProps): + software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerIngressPointProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelay.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelay.kt new file mode 100644 index 0000000000..1b0e917d9f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelay.kt @@ -0,0 +1,511 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Resource to create an SMTP relay, which can be used within a Mail Manager rule set to forward + * incoming emails to defined relay destinations. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object noAuthentication; + * CfnMailManagerRelay cfnMailManagerRelay = CfnMailManagerRelay.Builder.create(this, + * "MyCfnMailManagerRelay") + * .authentication(RelayAuthenticationProperty.builder() + * .noAuthentication(noAuthentication) + * .secretArn("secretArn") + * .build()) + * .serverName("serverName") + * .serverPort(123) + * // the properties below are optional + * .relayName("relayName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html) + */ +public open class CfnMailManagerRelay( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelay, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerRelayProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerRelay(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerRelayProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerRelayProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerRelayProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the relay. + */ + public open fun attrRelayArn(): String = unwrap(this).getAttrRelayArn() + + /** + * The unique relay identifier. + */ + public open fun attrRelayId(): String = unwrap(this).getAttrRelayId() + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + */ + public open fun authentication(): Any = unwrap(this).getAuthentication() + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + */ + public open fun authentication(`value`: IResolvable) { + unwrap(this).setAuthentication(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + */ + public open fun authentication(`value`: RelayAuthenticationProperty) { + unwrap(this).setAuthentication(`value`.let(RelayAuthenticationProperty.Companion::unwrap)) + } + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("967cf8f8eab4d676e65b5062b005e5e31812acdf26ae72e04cdef6ad51902b1b") + public open fun authentication(`value`: RelayAuthenticationProperty.Builder.() -> Unit): Unit = + authentication(RelayAuthenticationProperty(`value`)) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The unique relay name. + */ + public open fun relayName(): String? = unwrap(this).getRelayName() + + /** + * The unique relay name. + */ + public open fun relayName(`value`: String) { + unwrap(this).setRelayName(`value`) + } + + /** + * The destination relay server address. + */ + public open fun serverName(): String = unwrap(this).getServerName() + + /** + * The destination relay server address. + */ + public open fun serverName(`value`: String) { + unwrap(this).setServerName(`value`) + } + + /** + * The destination relay server port. + */ + public open fun serverPort(): Number = unwrap(this).getServerPort() + + /** + * The destination relay server port. + */ + public open fun serverPort(`value`: Number) { + unwrap(this).setServerPort(`value`) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerRelay]. + */ + @CdkDslMarker + public interface Builder { + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + public fun authentication(authentication: IResolvable) + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + public fun authentication(authentication: RelayAuthenticationProperty) + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9cab0a877c372608ed04572d0a01d2fe01951651ca496ce18faecdd86d155aff") + public fun authentication(authentication: RelayAuthenticationProperty.Builder.() -> Unit) + + /** + * The unique relay name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-relayname) + * @param relayName The unique relay name. + */ + public fun relayName(relayName: String) + + /** + * The destination relay server address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-servername) + * @param serverName The destination relay server address. + */ + public fun serverName(serverName: String) + + /** + * The destination relay server port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-serverport) + * @param serverPort The destination relay server port. + */ + public fun serverPort(serverPort: Number) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerRelay.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRelay.Builder.create(scope, id) + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + override fun authentication(authentication: IResolvable) { + cdkBuilder.authentication(authentication.let(IResolvable.Companion::unwrap)) + } + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + override fun authentication(authentication: RelayAuthenticationProperty) { + cdkBuilder.authentication(authentication.let(RelayAuthenticationProperty.Companion::unwrap)) + } + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9cab0a877c372608ed04572d0a01d2fe01951651ca496ce18faecdd86d155aff") + override fun authentication(authentication: RelayAuthenticationProperty.Builder.() -> Unit): + Unit = authentication(RelayAuthenticationProperty(authentication)) + + /** + * The unique relay name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-relayname) + * @param relayName The unique relay name. + */ + override fun relayName(relayName: String) { + cdkBuilder.relayName(relayName) + } + + /** + * The destination relay server address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-servername) + * @param serverName The destination relay server address. + */ + override fun serverName(serverName: String) { + cdkBuilder.serverName(serverName) + } + + /** + * The destination relay server port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-serverport) + * @param serverPort The destination relay server port. + */ + override fun serverPort(serverPort: Number) { + cdkBuilder.serverPort(serverPort) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRelay = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerRelay.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerRelay { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerRelay(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelay): + CfnMailManagerRelay = CfnMailManagerRelay(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerRelay): + software.amazon.awscdk.services.ses.CfnMailManagerRelay = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRelay + } + + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored, or specify an empty NoAuthentication structure if the relay destination + * server does not require SMTP credential authentication. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object noAuthentication; + * RelayAuthenticationProperty relayAuthenticationProperty = RelayAuthenticationProperty.builder() + * .noAuthentication(noAuthentication) + * .secretArn("secretArn") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerrelay-relayauthentication.html) + */ + public interface RelayAuthenticationProperty { + /** + * Keep an empty structure if the relay destination server does not require SMTP credential + * authentication. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerrelay-relayauthentication.html#cfn-ses-mailmanagerrelay-relayauthentication-noauthentication) + */ + public fun noAuthentication(): Any? = unwrap(this).getNoAuthentication() + + /** + * The ARN of the secret created in secrets manager where the relay server's SMTP credentials + * are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerrelay-relayauthentication.html#cfn-ses-mailmanagerrelay-relayauthentication-secretarn) + */ + public fun secretArn(): String? = unwrap(this).getSecretArn() + + /** + * A builder for [RelayAuthenticationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param noAuthentication Keep an empty structure if the relay destination server does not + * require SMTP credential authentication. + */ + public fun noAuthentication(noAuthentication: Any) + + /** + * @param secretArn The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored. + */ + public fun secretArn(secretArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty.builder() + + /** + * @param noAuthentication Keep an empty structure if the relay destination server does not + * require SMTP credential authentication. + */ + override fun noAuthentication(noAuthentication: Any) { + cdkBuilder.noAuthentication(noAuthentication) + } + + /** + * @param secretArn The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored. + */ + override fun secretArn(secretArn: String) { + cdkBuilder.secretArn(secretArn) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty, + ) : CdkObject(cdkObject), + RelayAuthenticationProperty { + /** + * Keep an empty structure if the relay destination server does not require SMTP credential + * authentication. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerrelay-relayauthentication.html#cfn-ses-mailmanagerrelay-relayauthentication-noauthentication) + */ + override fun noAuthentication(): Any? = unwrap(this).getNoAuthentication() + + /** + * The ARN of the secret created in secrets manager where the relay server's SMTP credentials + * are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerrelay-relayauthentication.html#cfn-ses-mailmanagerrelay-relayauthentication-secretarn) + */ + override fun secretArn(): String? = unwrap(this).getSecretArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RelayAuthenticationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty): + RelayAuthenticationProperty = CdkObjectWrappers.wrap(cdkObject) as? + RelayAuthenticationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RelayAuthenticationProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRelay.RelayAuthenticationProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelayProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelayProps.kt new file mode 100644 index 0000000000..e1d1748c1a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRelayProps.kt @@ -0,0 +1,264 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnMailManagerRelay`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object noAuthentication; + * CfnMailManagerRelayProps cfnMailManagerRelayProps = CfnMailManagerRelayProps.builder() + * .authentication(RelayAuthenticationProperty.builder() + * .noAuthentication(noAuthentication) + * .secretArn("secretArn") + * .build()) + * .serverName("serverName") + * .serverPort(123) + * // the properties below are optional + * .relayName("relayName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html) + */ +public interface CfnMailManagerRelayProps { + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + */ + public fun authentication(): Any + + /** + * The unique relay name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-relayname) + */ + public fun relayName(): String? = unwrap(this).getRelayName() + + /** + * The destination relay server address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-servername) + */ + public fun serverName(): String + + /** + * The destination relay server port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-serverport) + */ + public fun serverPort(): Number + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnMailManagerRelayProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + public fun authentication(authentication: IResolvable) + + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + public fun authentication(authentication: CfnMailManagerRelay.RelayAuthenticationProperty) + + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8d4b41a371aa606aefe736dfe794f1bfc1e077254247158212e5954bbf55dcf8") + public + fun authentication(authentication: CfnMailManagerRelay.RelayAuthenticationProperty.Builder.() -> Unit) + + /** + * @param relayName The unique relay name. + */ + public fun relayName(relayName: String) + + /** + * @param serverName The destination relay server address. + */ + public fun serverName(serverName: String) + + /** + * @param serverPort The destination relay server port. + */ + public fun serverPort(serverPort: Number) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerRelayProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRelayProps.builder() + + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + override fun authentication(authentication: IResolvable) { + cdkBuilder.authentication(authentication.let(IResolvable.Companion::unwrap)) + } + + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + override fun authentication(authentication: CfnMailManagerRelay.RelayAuthenticationProperty) { + cdkBuilder.authentication(authentication.let(CfnMailManagerRelay.RelayAuthenticationProperty.Companion::unwrap)) + } + + /** + * @param authentication Authentication for the relay destination server—specify the secretARN + * where the SMTP credentials are stored. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8d4b41a371aa606aefe736dfe794f1bfc1e077254247158212e5954bbf55dcf8") + override + fun authentication(authentication: CfnMailManagerRelay.RelayAuthenticationProperty.Builder.() -> Unit): + Unit = authentication(CfnMailManagerRelay.RelayAuthenticationProperty(authentication)) + + /** + * @param relayName The unique relay name. + */ + override fun relayName(relayName: String) { + cdkBuilder.relayName(relayName) + } + + /** + * @param serverName The destination relay server address. + */ + override fun serverName(serverName: String) { + cdkBuilder.serverName(serverName) + } + + /** + * @param serverPort The destination relay server port. + */ + override fun serverPort(serverPort: Number) { + cdkBuilder.serverPort(serverPort) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRelayProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelayProps, + ) : CdkObject(cdkObject), + CfnMailManagerRelayProps { + /** + * Authentication for the relay destination server—specify the secretARN where the SMTP + * credentials are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-authentication) + */ + override fun authentication(): Any = unwrap(this).getAuthentication() + + /** + * The unique relay name. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-relayname) + */ + override fun relayName(): String? = unwrap(this).getRelayName() + + /** + * The destination relay server address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-servername) + */ + override fun serverName(): String = unwrap(this).getServerName() + + /** + * The destination relay server port. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-serverport) + */ + override fun serverPort(): Number = unwrap(this).getServerPort() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerrelay.html#cfn-ses-mailmanagerrelay-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerRelayProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRelayProps): + CfnMailManagerRelayProps = CdkObjectWrappers.wrap(cdkObject) as? CfnMailManagerRelayProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerRelayProps): + software.amazon.awscdk.services.ses.CfnMailManagerRelayProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerRelayProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSet.kt new file mode 100644 index 0000000000..7ff850974f --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSet.kt @@ -0,0 +1,4464 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Resource to create a rule set for a Mail Manager ingress endpoint which contains a list of rules + * that are evaluated sequentially for each email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object drop; + * CfnMailManagerRuleSet cfnMailManagerRuleSet = CfnMailManagerRuleSet.Builder.create(this, + * "MyCfnMailManagerRuleSet") + * .rules(List.of(RuleProperty.builder() + * .actions(List.of(RuleActionProperty.builder() + * .addHeader(AddHeaderActionProperty.builder() + * .headerName("headerName") + * .headerValue("headerValue") + * .build()) + * .archive(ArchiveActionProperty.builder() + * .targetArchive("targetArchive") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .deliverToMailbox(DeliverToMailboxActionProperty.builder() + * .mailboxArn("mailboxArn") + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .drop(drop) + * .relay(RelayActionProperty.builder() + * .relay("relay") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .mailFrom("mailFrom") + * .build()) + * .replaceRecipient(ReplaceRecipientActionProperty.builder() + * .replaceWith(List.of("replaceWith")) + * .build()) + * .send(SendActionProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .writeToS3(S3ActionProperty.builder() + * .roleArn("roleArn") + * .s3Bucket("s3Bucket") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .s3Prefix("s3Prefix") + * .s3SseKmsKeyId("s3SseKmsKeyId") + * .build()) + * .build())) + * // the properties below are optional + * .conditions(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .name("name") + * .unless(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .build())) + * // the properties below are optional + * .ruleSetName("ruleSetName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html) + */ +public open class CfnMailManagerRuleSet( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerRuleSetProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerRuleSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerRuleSetProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerRuleSetProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerRuleSetProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the rule set resource. + */ + public open fun attrRuleSetArn(): String = unwrap(this).getAttrRuleSetArn() + + /** + * The identifier of the rule set. + */ + public open fun attrRuleSetId(): String = unwrap(this).getAttrRuleSetId() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * A user-friendly name for the rule set. + */ + public open fun ruleSetName(): String? = unwrap(this).getRuleSetName() + + /** + * A user-friendly name for the rule set. + */ + public open fun ruleSetName(`value`: String) { + unwrap(this).setRuleSetName(`value`) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + */ + public open fun rules(): Any = unwrap(this).getRules() + + /** + * Conditional rules that are evaluated for determining actions on email. + */ + public open fun rules(`value`: IResolvable) { + unwrap(this).setRules(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + */ + public open fun rules(`value`: List) { + unwrap(this).setRules(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + */ + public open fun rules(vararg `value`: Any): Unit = rules(`value`.toList()) + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerRuleSet]. + */ + @CdkDslMarker + public interface Builder { + /** + * A user-friendly name for the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rulesetname) + * @param ruleSetName A user-friendly name for the rule set. + */ + public fun ruleSetName(ruleSetName: String) + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(rules: IResolvable) + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(rules: List) + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(vararg rules: Any) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.Builder.create(scope, id) + + /** + * A user-friendly name for the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rulesetname) + * @param ruleSetName A user-friendly name for the rule set. + */ + override fun ruleSetName(ruleSetName: String) { + cdkBuilder.ruleSetName(ruleSetName) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(rules: IResolvable) { + cdkBuilder.rules(rules.let(IResolvable.Companion::unwrap)) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(rules: List) { + cdkBuilder.rules(rules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(vararg rules: Any): Unit = rules(rules.toList()) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRuleSet = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerRuleSet { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerRuleSet(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet): + CfnMailManagerRuleSet = CfnMailManagerRuleSet(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerRuleSet): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet + } + + /** + * The action to add a header to a message. + * + * When executed, this action will add the given header to the message. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * AddHeaderActionProperty addHeaderActionProperty = AddHeaderActionProperty.builder() + * .headerName("headerName") + * .headerValue("headerValue") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-addheaderaction.html) + */ + public interface AddHeaderActionProperty { + /** + * The name of the header to add to an email. + * + * The header must be prefixed with "X-". Headers are added regardless of whether the header + * name pre-existed in the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-addheaderaction.html#cfn-ses-mailmanagerruleset-addheaderaction-headername) + */ + public fun headerName(): String + + /** + * The value of the header to add to the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-addheaderaction.html#cfn-ses-mailmanagerruleset-addheaderaction-headervalue) + */ + public fun headerValue(): String + + /** + * A builder for [AddHeaderActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param headerName The name of the header to add to an email. + * The header must be prefixed with "X-". Headers are added regardless of whether the header + * name pre-existed in the email. + */ + public fun headerName(headerName: String) + + /** + * @param headerValue The value of the header to add to the email. + */ + public fun headerValue(headerValue: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty.builder() + + /** + * @param headerName The name of the header to add to an email. + * The header must be prefixed with "X-". Headers are added regardless of whether the header + * name pre-existed in the email. + */ + override fun headerName(headerName: String) { + cdkBuilder.headerName(headerName) + } + + /** + * @param headerValue The value of the header to add to the email. + */ + override fun headerValue(headerValue: String) { + cdkBuilder.headerValue(headerValue) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty, + ) : CdkObject(cdkObject), + AddHeaderActionProperty { + /** + * The name of the header to add to an email. + * + * The header must be prefixed with "X-". Headers are added regardless of whether the header + * name pre-existed in the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-addheaderaction.html#cfn-ses-mailmanagerruleset-addheaderaction-headername) + */ + override fun headerName(): String = unwrap(this).getHeaderName() + + /** + * The value of the header to add to the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-addheaderaction.html#cfn-ses-mailmanagerruleset-addheaderaction-headervalue) + */ + override fun headerValue(): String = unwrap(this).getHeaderValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AddHeaderActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty): + AddHeaderActionProperty = CdkObjectWrappers.wrap(cdkObject) as? AddHeaderActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AddHeaderActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AddHeaderActionProperty + } + } + + /** + * The result of an analysis can be used in conditions to trigger actions. + * + * Analyses can inspect the email content and report a certain aspect of the email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * AnalysisProperty analysisProperty = AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-analysis.html) + */ + public interface AnalysisProperty { + /** + * The Amazon Resource Name (ARN) of an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-analysis.html#cfn-ses-mailmanagerruleset-analysis-analyzer) + */ + public fun analyzer(): String + + /** + * The returned value from an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-analysis.html#cfn-ses-mailmanagerruleset-analysis-resultfield) + */ + public fun resultField(): String + + /** + * A builder for [AnalysisProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param analyzer The Amazon Resource Name (ARN) of an Add On. + */ + public fun analyzer(analyzer: String) + + /** + * @param resultField The returned value from an Add On. + */ + public fun resultField(resultField: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty.builder() + + /** + * @param analyzer The Amazon Resource Name (ARN) of an Add On. + */ + override fun analyzer(analyzer: String) { + cdkBuilder.analyzer(analyzer) + } + + /** + * @param resultField The returned value from an Add On. + */ + override fun resultField(resultField: String) { + cdkBuilder.resultField(resultField) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty, + ) : CdkObject(cdkObject), + AnalysisProperty { + /** + * The Amazon Resource Name (ARN) of an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-analysis.html#cfn-ses-mailmanagerruleset-analysis-analyzer) + */ + override fun analyzer(): String = unwrap(this).getAnalyzer() + + /** + * The returned value from an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-analysis.html#cfn-ses-mailmanagerruleset-analysis-resultfield) + */ + override fun resultField(): String = unwrap(this).getResultField() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): AnalysisProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty): + AnalysisProperty = CdkObjectWrappers.wrap(cdkObject) as? AnalysisProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: AnalysisProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.AnalysisProperty + } + } + + /** + * The action to archive the email by delivering the email to an Amazon SES archive. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * ArchiveActionProperty archiveActionProperty = ArchiveActionProperty.builder() + * .targetArchive("targetArchive") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-archiveaction.html) + */ + public interface ArchiveActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified archive + * has been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-archiveaction.html#cfn-ses-mailmanagerruleset-archiveaction-actionfailurepolicy) + */ + public fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The identifier of the archive to send the email to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-archiveaction.html#cfn-ses-mailmanagerruleset-archiveaction-targetarchive) + */ + public fun targetArchive(): String + + /** + * A builder for [ArchiveActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified archive + * has been deleted. + */ + public fun actionFailurePolicy(actionFailurePolicy: String) + + /** + * @param targetArchive The identifier of the archive to send the email to. + */ + public fun targetArchive(targetArchive: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty.builder() + + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified archive + * has been deleted. + */ + override fun actionFailurePolicy(actionFailurePolicy: String) { + cdkBuilder.actionFailurePolicy(actionFailurePolicy) + } + + /** + * @param targetArchive The identifier of the archive to send the email to. + */ + override fun targetArchive(targetArchive: String) { + cdkBuilder.targetArchive(targetArchive) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty, + ) : CdkObject(cdkObject), + ArchiveActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified archive + * has been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-archiveaction.html#cfn-ses-mailmanagerruleset-archiveaction-actionfailurepolicy) + */ + override fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The identifier of the archive to send the email to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-archiveaction.html#cfn-ses-mailmanagerruleset-archiveaction-targetarchive) + */ + override fun targetArchive(): String = unwrap(this).getTargetArchive() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ArchiveActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty): + ArchiveActionProperty = CdkObjectWrappers.wrap(cdkObject) as? ArchiveActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: ArchiveActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ArchiveActionProperty + } + } + + /** + * This action to delivers an email to a mailbox. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * DeliverToMailboxActionProperty deliverToMailboxActionProperty = + * DeliverToMailboxActionProperty.builder() + * .mailboxArn("mailboxArn") + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html) + */ + public interface DeliverToMailboxActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the mailbox ARN is no + * longer valid. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-actionfailurepolicy) + */ + public fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-mailboxarn) + */ + public fun mailboxArn(): String + + /** + * The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * + * The role must have access to the workmail:DeliverToMailbox API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-rolearn) + */ + public fun roleArn(): String + + /** + * A builder for [DeliverToMailboxActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the mailbox ARN is no + * longer valid. + */ + public fun actionFailurePolicy(actionFailurePolicy: String) + + /** + * @param mailboxArn The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to. + */ + public fun mailboxArn(mailboxArn: String) + + /** + * @param roleArn The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * + * The role must have access to the workmail:DeliverToMailbox API. + */ + public fun roleArn(roleArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty.builder() + + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the mailbox ARN is no + * longer valid. + */ + override fun actionFailurePolicy(actionFailurePolicy: String) { + cdkBuilder.actionFailurePolicy(actionFailurePolicy) + } + + /** + * @param mailboxArn The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to. + */ + override fun mailboxArn(mailboxArn: String) { + cdkBuilder.mailboxArn(mailboxArn) + } + + /** + * @param roleArn The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * + * The role must have access to the workmail:DeliverToMailbox API. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty, + ) : CdkObject(cdkObject), + DeliverToMailboxActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the mailbox ARN is no + * longer valid. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-actionfailurepolicy) + */ + override fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-mailboxarn) + */ + override fun mailboxArn(): String = unwrap(this).getMailboxArn() + + /** + * The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * + * The role must have access to the workmail:DeliverToMailbox API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-delivertomailboxaction.html#cfn-ses-mailmanagerruleset-delivertomailboxaction-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): DeliverToMailboxActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty): + DeliverToMailboxActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + DeliverToMailboxActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: DeliverToMailboxActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty + } + } + + /** + * The action relays the email via SMTP to another specific SMTP server. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RelayActionProperty relayActionProperty = RelayActionProperty.builder() + * .relay("relay") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .mailFrom("mailFrom") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html) + */ + public interface RelayActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified relay has + * been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-actionfailurepolicy) + */ + public fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * This action specifies whether to preserve or replace original mail from address while + * relaying received emails to a destination server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-mailfrom) + */ + public fun mailFrom(): String? = unwrap(this).getMailFrom() + + /** + * The identifier of the relay resource to be used when relaying an email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-relay) + */ + public fun relay(): String + + /** + * A builder for [RelayActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified relay + * has been deleted. + */ + public fun actionFailurePolicy(actionFailurePolicy: String) + + /** + * @param mailFrom This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server. + */ + public fun mailFrom(mailFrom: String) + + /** + * @param relay The identifier of the relay resource to be used when relaying an email. + */ + public fun relay(relay: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty.builder() + + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified relay + * has been deleted. + */ + override fun actionFailurePolicy(actionFailurePolicy: String) { + cdkBuilder.actionFailurePolicy(actionFailurePolicy) + } + + /** + * @param mailFrom This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server. + */ + override fun mailFrom(mailFrom: String) { + cdkBuilder.mailFrom(mailFrom) + } + + /** + * @param relay The identifier of the relay resource to be used when relaying an email. + */ + override fun relay(relay: String) { + cdkBuilder.relay(relay) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty, + ) : CdkObject(cdkObject), + RelayActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified relay + * has been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-actionfailurepolicy) + */ + override fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * This action specifies whether to preserve or replace original mail from address while + * relaying received emails to a destination server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-mailfrom) + */ + override fun mailFrom(): String? = unwrap(this).getMailFrom() + + /** + * The identifier of the relay resource to be used when relaying an email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-relayaction.html#cfn-ses-mailmanagerruleset-relayaction-relay) + */ + override fun relay(): String = unwrap(this).getRelay() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RelayActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty): + RelayActionProperty = CdkObjectWrappers.wrap(cdkObject) as? RelayActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RelayActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RelayActionProperty + } + } + + /** + * This action replaces the email envelope recipients with the given list of recipients. + * + * If the condition of this action applies only to a subset of recipients, only those recipients + * are replaced with the recipients specified in the action. The message contents and headers are + * unaffected by this action, only the envelope recipients are updated. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * ReplaceRecipientActionProperty replaceRecipientActionProperty = + * ReplaceRecipientActionProperty.builder() + * .replaceWith(List.of("replaceWith")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-replacerecipientaction.html) + */ + public interface ReplaceRecipientActionProperty { + /** + * This action specifies the replacement recipient email addresses to insert. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-replacerecipientaction.html#cfn-ses-mailmanagerruleset-replacerecipientaction-replacewith) + */ + public fun replaceWith(): List = unwrap(this).getReplaceWith() ?: emptyList() + + /** + * A builder for [ReplaceRecipientActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param replaceWith This action specifies the replacement recipient email addresses to + * insert. + */ + public fun replaceWith(replaceWith: List) + + /** + * @param replaceWith This action specifies the replacement recipient email addresses to + * insert. + */ + public fun replaceWith(vararg replaceWith: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty.builder() + + /** + * @param replaceWith This action specifies the replacement recipient email addresses to + * insert. + */ + override fun replaceWith(replaceWith: List) { + cdkBuilder.replaceWith(replaceWith) + } + + /** + * @param replaceWith This action specifies the replacement recipient email addresses to + * insert. + */ + override fun replaceWith(vararg replaceWith: String): Unit = replaceWith(replaceWith.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty, + ) : CdkObject(cdkObject), + ReplaceRecipientActionProperty { + /** + * This action specifies the replacement recipient email addresses to insert. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-replacerecipientaction.html#cfn-ses-mailmanagerruleset-replacerecipientaction-replacewith) + */ + override fun replaceWith(): List = unwrap(this).getReplaceWith() ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ReplaceRecipientActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty): + ReplaceRecipientActionProperty = CdkObjectWrappers.wrap(cdkObject) as? + ReplaceRecipientActionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ReplaceRecipientActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty + } + } + + /** + * The action for a rule to take. Only one of the contained actions can be set. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object drop; + * RuleActionProperty ruleActionProperty = RuleActionProperty.builder() + * .addHeader(AddHeaderActionProperty.builder() + * .headerName("headerName") + * .headerValue("headerValue") + * .build()) + * .archive(ArchiveActionProperty.builder() + * .targetArchive("targetArchive") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .deliverToMailbox(DeliverToMailboxActionProperty.builder() + * .mailboxArn("mailboxArn") + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .drop(drop) + * .relay(RelayActionProperty.builder() + * .relay("relay") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .mailFrom("mailFrom") + * .build()) + * .replaceRecipient(ReplaceRecipientActionProperty.builder() + * .replaceWith(List.of("replaceWith")) + * .build()) + * .send(SendActionProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .writeToS3(S3ActionProperty.builder() + * .roleArn("roleArn") + * .s3Bucket("s3Bucket") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .s3Prefix("s3Prefix") + * .s3SseKmsKeyId("s3SseKmsKeyId") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html) + */ + public interface RuleActionProperty { + /** + * This action adds a header. + * + * This can be used to add arbitrary email headers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-addheader) + */ + public fun addHeader(): Any? = unwrap(this).getAddHeader() + + /** + * This action archives the email. + * + * This can be used to deliver an email to an archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-archive) + */ + public fun archive(): Any? = unwrap(this).getArchive() + + /** + * This action delivers an email to a WorkMail mailbox. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-delivertomailbox) + */ + public fun deliverToMailbox(): Any? = unwrap(this).getDeliverToMailbox() + + /** + * This action terminates the evaluation of rules in the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-drop) + */ + public fun drop(): Any? = unwrap(this).getDrop() + + /** + * This action relays the email to another SMTP server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-relay) + */ + public fun relay(): Any? = unwrap(this).getRelay() + + /** + * The action replaces certain or all recipients with a different set of recipients. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-replacerecipient) + */ + public fun replaceRecipient(): Any? = unwrap(this).getReplaceRecipient() + + /** + * This action sends the email to the internet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-send) + */ + public fun send(): Any? = unwrap(this).getSend() + + /** + * This action writes the MIME content of the email to an S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-writetos3) + */ + public fun writeToS3(): Any? = unwrap(this).getWriteToS3() + + /** + * A builder for [RuleActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + public fun addHeader(addHeader: IResolvable) + + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + public fun addHeader(addHeader: AddHeaderActionProperty) + + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("69e2e7696be8dbb92f0628d9f559cb0668482473ca6f7bdcf706e4a563e1cd00") + public fun addHeader(addHeader: AddHeaderActionProperty.Builder.() -> Unit) + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + public fun archive(archive: IResolvable) + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + public fun archive(archive: ArchiveActionProperty) + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c375685fe0a772822f50254ec10a5e50effccf178e9cec360dc7e87350407ed") + public fun archive(archive: ArchiveActionProperty.Builder.() -> Unit) + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + public fun deliverToMailbox(deliverToMailbox: IResolvable) + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + public fun deliverToMailbox(deliverToMailbox: DeliverToMailboxActionProperty) + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("29b6509628baf80e23913fe2e9feb39816e64d5aa6aab608eef03d69aad8d241") + public + fun deliverToMailbox(deliverToMailbox: DeliverToMailboxActionProperty.Builder.() -> Unit) + + /** + * @param drop This action terminates the evaluation of rules in the rule set. + */ + public fun drop(drop: Any) + + /** + * @param relay This action relays the email to another SMTP server. + */ + public fun relay(relay: IResolvable) + + /** + * @param relay This action relays the email to another SMTP server. + */ + public fun relay(relay: RelayActionProperty) + + /** + * @param relay This action relays the email to another SMTP server. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1a14c7a63d8e25b6bfa44e8be0fb3e40cc49f650de2a6c304480573524c5eca3") + public fun relay(relay: RelayActionProperty.Builder.() -> Unit) + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + public fun replaceRecipient(replaceRecipient: IResolvable) + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + public fun replaceRecipient(replaceRecipient: ReplaceRecipientActionProperty) + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7c10778be0ae3b29dcfca0f4a873fe1a837654fe5dead26ae32f0165e598d313") + public + fun replaceRecipient(replaceRecipient: ReplaceRecipientActionProperty.Builder.() -> Unit) + + /** + * @param send This action sends the email to the internet. + */ + public fun send(send: IResolvable) + + /** + * @param send This action sends the email to the internet. + */ + public fun send(send: SendActionProperty) + + /** + * @param send This action sends the email to the internet. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("00b2594cb45f14400e0627f5f16cfe6f8442569caf8769966472e20babab998d") + public fun send(send: SendActionProperty.Builder.() -> Unit) + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + public fun writeToS3(writeToS3: IResolvable) + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + public fun writeToS3(writeToS3: S3ActionProperty) + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("64a6b101f9b5511f241ae04e58d088f027b61b93c7dce3e2a933ad7be9361156") + public fun writeToS3(writeToS3: S3ActionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty.builder() + + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + override fun addHeader(addHeader: IResolvable) { + cdkBuilder.addHeader(addHeader.let(IResolvable.Companion::unwrap)) + } + + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + override fun addHeader(addHeader: AddHeaderActionProperty) { + cdkBuilder.addHeader(addHeader.let(AddHeaderActionProperty.Companion::unwrap)) + } + + /** + * @param addHeader This action adds a header. + * This can be used to add arbitrary email headers. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("69e2e7696be8dbb92f0628d9f559cb0668482473ca6f7bdcf706e4a563e1cd00") + override fun addHeader(addHeader: AddHeaderActionProperty.Builder.() -> Unit): Unit = + addHeader(AddHeaderActionProperty(addHeader)) + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + override fun archive(archive: IResolvable) { + cdkBuilder.archive(archive.let(IResolvable.Companion::unwrap)) + } + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + override fun archive(archive: ArchiveActionProperty) { + cdkBuilder.archive(archive.let(ArchiveActionProperty.Companion::unwrap)) + } + + /** + * @param archive This action archives the email. + * This can be used to deliver an email to an archive. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c375685fe0a772822f50254ec10a5e50effccf178e9cec360dc7e87350407ed") + override fun archive(archive: ArchiveActionProperty.Builder.() -> Unit): Unit = + archive(ArchiveActionProperty(archive)) + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + override fun deliverToMailbox(deliverToMailbox: IResolvable) { + cdkBuilder.deliverToMailbox(deliverToMailbox.let(IResolvable.Companion::unwrap)) + } + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + override fun deliverToMailbox(deliverToMailbox: DeliverToMailboxActionProperty) { + cdkBuilder.deliverToMailbox(deliverToMailbox.let(DeliverToMailboxActionProperty.Companion::unwrap)) + } + + /** + * @param deliverToMailbox This action delivers an email to a WorkMail mailbox. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("29b6509628baf80e23913fe2e9feb39816e64d5aa6aab608eef03d69aad8d241") + override + fun deliverToMailbox(deliverToMailbox: DeliverToMailboxActionProperty.Builder.() -> Unit): + Unit = deliverToMailbox(DeliverToMailboxActionProperty(deliverToMailbox)) + + /** + * @param drop This action terminates the evaluation of rules in the rule set. + */ + override fun drop(drop: Any) { + cdkBuilder.drop(drop) + } + + /** + * @param relay This action relays the email to another SMTP server. + */ + override fun relay(relay: IResolvable) { + cdkBuilder.relay(relay.let(IResolvable.Companion::unwrap)) + } + + /** + * @param relay This action relays the email to another SMTP server. + */ + override fun relay(relay: RelayActionProperty) { + cdkBuilder.relay(relay.let(RelayActionProperty.Companion::unwrap)) + } + + /** + * @param relay This action relays the email to another SMTP server. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1a14c7a63d8e25b6bfa44e8be0fb3e40cc49f650de2a6c304480573524c5eca3") + override fun relay(relay: RelayActionProperty.Builder.() -> Unit): Unit = + relay(RelayActionProperty(relay)) + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + override fun replaceRecipient(replaceRecipient: IResolvable) { + cdkBuilder.replaceRecipient(replaceRecipient.let(IResolvable.Companion::unwrap)) + } + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + override fun replaceRecipient(replaceRecipient: ReplaceRecipientActionProperty) { + cdkBuilder.replaceRecipient(replaceRecipient.let(ReplaceRecipientActionProperty.Companion::unwrap)) + } + + /** + * @param replaceRecipient The action replaces certain or all recipients with a different set + * of recipients. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7c10778be0ae3b29dcfca0f4a873fe1a837654fe5dead26ae32f0165e598d313") + override + fun replaceRecipient(replaceRecipient: ReplaceRecipientActionProperty.Builder.() -> Unit): + Unit = replaceRecipient(ReplaceRecipientActionProperty(replaceRecipient)) + + /** + * @param send This action sends the email to the internet. + */ + override fun send(send: IResolvable) { + cdkBuilder.send(send.let(IResolvable.Companion::unwrap)) + } + + /** + * @param send This action sends the email to the internet. + */ + override fun send(send: SendActionProperty) { + cdkBuilder.send(send.let(SendActionProperty.Companion::unwrap)) + } + + /** + * @param send This action sends the email to the internet. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("00b2594cb45f14400e0627f5f16cfe6f8442569caf8769966472e20babab998d") + override fun send(send: SendActionProperty.Builder.() -> Unit): Unit = + send(SendActionProperty(send)) + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + override fun writeToS3(writeToS3: IResolvable) { + cdkBuilder.writeToS3(writeToS3.let(IResolvable.Companion::unwrap)) + } + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + override fun writeToS3(writeToS3: S3ActionProperty) { + cdkBuilder.writeToS3(writeToS3.let(S3ActionProperty.Companion::unwrap)) + } + + /** + * @param writeToS3 This action writes the MIME content of the email to an S3 bucket. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("64a6b101f9b5511f241ae04e58d088f027b61b93c7dce3e2a933ad7be9361156") + override fun writeToS3(writeToS3: S3ActionProperty.Builder.() -> Unit): Unit = + writeToS3(S3ActionProperty(writeToS3)) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty, + ) : CdkObject(cdkObject), + RuleActionProperty { + /** + * This action adds a header. + * + * This can be used to add arbitrary email headers. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-addheader) + */ + override fun addHeader(): Any? = unwrap(this).getAddHeader() + + /** + * This action archives the email. + * + * This can be used to deliver an email to an archive. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-archive) + */ + override fun archive(): Any? = unwrap(this).getArchive() + + /** + * This action delivers an email to a WorkMail mailbox. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-delivertomailbox) + */ + override fun deliverToMailbox(): Any? = unwrap(this).getDeliverToMailbox() + + /** + * This action terminates the evaluation of rules in the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-drop) + */ + override fun drop(): Any? = unwrap(this).getDrop() + + /** + * This action relays the email to another SMTP server. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-relay) + */ + override fun relay(): Any? = unwrap(this).getRelay() + + /** + * The action replaces certain or all recipients with a different set of recipients. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-replacerecipient) + */ + override fun replaceRecipient(): Any? = unwrap(this).getReplaceRecipient() + + /** + * This action sends the email to the internet. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-send) + */ + override fun send(): Any? = unwrap(this).getSend() + + /** + * This action writes the MIME content of the email to an S3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleaction.html#cfn-ses-mailmanagerruleset-ruleaction-writetos3) + */ + override fun writeToS3(): Any? = unwrap(this).getWriteToS3() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty): + RuleActionProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleActionProperty + } + } + + /** + * A boolean expression to be used in a rule condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleBooleanExpressionProperty ruleBooleanExpressionProperty = + * RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleanexpression.html) + */ + public interface RuleBooleanExpressionProperty { + /** + * The operand on which to perform a boolean condition operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleanexpression.html#cfn-ses-mailmanagerruleset-rulebooleanexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for a boolean condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleanexpression.html#cfn-ses-mailmanagerruleset-rulebooleanexpression-operator) + */ + public fun `operator`(): String + + /** + * A builder for [RuleBooleanExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + public fun evaluate(evaluate: RuleBooleanToEvaluateProperty) + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cf6eea8d58f00606241e89cfc54e39f1a33267875f67926e5825e8c978d0ed32") + public fun evaluate(evaluate: RuleBooleanToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for a boolean condition expression. + */ + public fun `operator`(`operator`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty.builder() + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + override fun evaluate(evaluate: RuleBooleanToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(RuleBooleanToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cf6eea8d58f00606241e89cfc54e39f1a33267875f67926e5825e8c978d0ed32") + override fun evaluate(evaluate: RuleBooleanToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(RuleBooleanToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for a boolean condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty, + ) : CdkObject(cdkObject), + RuleBooleanExpressionProperty { + /** + * The operand on which to perform a boolean condition operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleanexpression.html#cfn-ses-mailmanagerruleset-rulebooleanexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for a boolean condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleanexpression.html#cfn-ses-mailmanagerruleset-rulebooleanexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleBooleanExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty): + RuleBooleanExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleBooleanExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleBooleanExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty + } + } + + /** + * The union type representing the allowed types of operands for a boolean condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleBooleanToEvaluateProperty ruleBooleanToEvaluateProperty = + * RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleantoevaluate.html) + */ + public interface RuleBooleanToEvaluateProperty { + /** + * The boolean type representing the allowed attribute types for an email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleantoevaluate.html#cfn-ses-mailmanagerruleset-rulebooleantoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [RuleBooleanToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute The boolean type representing the allowed attribute types for an email. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty.builder() + + /** + * @param attribute The boolean type representing the allowed attribute types for an email. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty, + ) : CdkObject(cdkObject), + RuleBooleanToEvaluateProperty { + /** + * The boolean type representing the allowed attribute types for an email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulebooleantoevaluate.html#cfn-ses-mailmanagerruleset-rulebooleantoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleBooleanToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty): + RuleBooleanToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleBooleanToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleBooleanToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty + } + } + + /** + * The conditional expression used to evaluate an email for determining if a rule action should be + * taken. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleConditionProperty ruleConditionProperty = RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html) + */ + public interface RuleConditionProperty { + /** + * The condition applies to a boolean expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-booleanexpression) + */ + public fun booleanExpression(): Any? = unwrap(this).getBooleanExpression() + + /** + * The condition applies to a DMARC policy expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-dmarcexpression) + */ + public fun dmarcExpression(): Any? = unwrap(this).getDmarcExpression() + + /** + * The condition applies to an IP address expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-ipexpression) + */ + public fun ipExpression(): Any? = unwrap(this).getIpExpression() + + /** + * The condition applies to a number expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-numberexpression) + */ + public fun numberExpression(): Any? = unwrap(this).getNumberExpression() + + /** + * The condition applies to a string expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-stringexpression) + */ + public fun stringExpression(): Any? = unwrap(this).getStringExpression() + + /** + * The condition applies to a verdict expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-verdictexpression) + */ + public fun verdictExpression(): Any? = unwrap(this).getVerdictExpression() + + /** + * A builder for [RuleConditionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + public fun booleanExpression(booleanExpression: IResolvable) + + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + public fun booleanExpression(booleanExpression: RuleBooleanExpressionProperty) + + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b01dc7b51aa5a857711c4db2886524099a713e0f7b5a4f7ac1b13432a95f23e") + public + fun booleanExpression(booleanExpression: RuleBooleanExpressionProperty.Builder.() -> Unit) + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + public fun dmarcExpression(dmarcExpression: IResolvable) + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + public fun dmarcExpression(dmarcExpression: RuleDmarcExpressionProperty) + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9dbb78c5d5e5de599cb2b4aa4621f5e7b5896f0c563ecdc19ebd2ee51076f01a") + public fun dmarcExpression(dmarcExpression: RuleDmarcExpressionProperty.Builder.() -> Unit) + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + public fun ipExpression(ipExpression: IResolvable) + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + public fun ipExpression(ipExpression: RuleIpExpressionProperty) + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("84d55695ef22ec1d2181a767d45c313df3791143b0a3efec64eeb3c0876d4860") + public fun ipExpression(ipExpression: RuleIpExpressionProperty.Builder.() -> Unit) + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + public fun numberExpression(numberExpression: IResolvable) + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + public fun numberExpression(numberExpression: RuleNumberExpressionProperty) + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("da1d5560abd8484e74573fbfffb169aa150c2c795525d4ecb799ff017aef4c9e") + public fun numberExpression(numberExpression: RuleNumberExpressionProperty.Builder.() -> Unit) + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + public fun stringExpression(stringExpression: IResolvable) + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + public fun stringExpression(stringExpression: RuleStringExpressionProperty) + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a16b1ce52b60a212426ef42466a9659dc40939bf55dda0ab7d4658d10fad7624") + public fun stringExpression(stringExpression: RuleStringExpressionProperty.Builder.() -> Unit) + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + public fun verdictExpression(verdictExpression: IResolvable) + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + public fun verdictExpression(verdictExpression: RuleVerdictExpressionProperty) + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("98a1325013ad97dc52a41da6ad42c8838af984ec5a3774d644ba9b9e43b4b85f") + public + fun verdictExpression(verdictExpression: RuleVerdictExpressionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty.builder() + + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + override fun booleanExpression(booleanExpression: IResolvable) { + cdkBuilder.booleanExpression(booleanExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + override fun booleanExpression(booleanExpression: RuleBooleanExpressionProperty) { + cdkBuilder.booleanExpression(booleanExpression.let(RuleBooleanExpressionProperty.Companion::unwrap)) + } + + /** + * @param booleanExpression The condition applies to a boolean expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6b01dc7b51aa5a857711c4db2886524099a713e0f7b5a4f7ac1b13432a95f23e") + override + fun booleanExpression(booleanExpression: RuleBooleanExpressionProperty.Builder.() -> Unit): + Unit = booleanExpression(RuleBooleanExpressionProperty(booleanExpression)) + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + override fun dmarcExpression(dmarcExpression: IResolvable) { + cdkBuilder.dmarcExpression(dmarcExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + override fun dmarcExpression(dmarcExpression: RuleDmarcExpressionProperty) { + cdkBuilder.dmarcExpression(dmarcExpression.let(RuleDmarcExpressionProperty.Companion::unwrap)) + } + + /** + * @param dmarcExpression The condition applies to a DMARC policy expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9dbb78c5d5e5de599cb2b4aa4621f5e7b5896f0c563ecdc19ebd2ee51076f01a") + override fun dmarcExpression(dmarcExpression: RuleDmarcExpressionProperty.Builder.() -> Unit): + Unit = dmarcExpression(RuleDmarcExpressionProperty(dmarcExpression)) + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + override fun ipExpression(ipExpression: IResolvable) { + cdkBuilder.ipExpression(ipExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + override fun ipExpression(ipExpression: RuleIpExpressionProperty) { + cdkBuilder.ipExpression(ipExpression.let(RuleIpExpressionProperty.Companion::unwrap)) + } + + /** + * @param ipExpression The condition applies to an IP address expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("84d55695ef22ec1d2181a767d45c313df3791143b0a3efec64eeb3c0876d4860") + override fun ipExpression(ipExpression: RuleIpExpressionProperty.Builder.() -> Unit): Unit = + ipExpression(RuleIpExpressionProperty(ipExpression)) + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + override fun numberExpression(numberExpression: IResolvable) { + cdkBuilder.numberExpression(numberExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + override fun numberExpression(numberExpression: RuleNumberExpressionProperty) { + cdkBuilder.numberExpression(numberExpression.let(RuleNumberExpressionProperty.Companion::unwrap)) + } + + /** + * @param numberExpression The condition applies to a number expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("da1d5560abd8484e74573fbfffb169aa150c2c795525d4ecb799ff017aef4c9e") + override + fun numberExpression(numberExpression: RuleNumberExpressionProperty.Builder.() -> Unit): + Unit = numberExpression(RuleNumberExpressionProperty(numberExpression)) + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + override fun stringExpression(stringExpression: IResolvable) { + cdkBuilder.stringExpression(stringExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + override fun stringExpression(stringExpression: RuleStringExpressionProperty) { + cdkBuilder.stringExpression(stringExpression.let(RuleStringExpressionProperty.Companion::unwrap)) + } + + /** + * @param stringExpression The condition applies to a string expression passed in this field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("a16b1ce52b60a212426ef42466a9659dc40939bf55dda0ab7d4658d10fad7624") + override + fun stringExpression(stringExpression: RuleStringExpressionProperty.Builder.() -> Unit): + Unit = stringExpression(RuleStringExpressionProperty(stringExpression)) + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + override fun verdictExpression(verdictExpression: IResolvable) { + cdkBuilder.verdictExpression(verdictExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + override fun verdictExpression(verdictExpression: RuleVerdictExpressionProperty) { + cdkBuilder.verdictExpression(verdictExpression.let(RuleVerdictExpressionProperty.Companion::unwrap)) + } + + /** + * @param verdictExpression The condition applies to a verdict expression passed in this + * field. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("98a1325013ad97dc52a41da6ad42c8838af984ec5a3774d644ba9b9e43b4b85f") + override + fun verdictExpression(verdictExpression: RuleVerdictExpressionProperty.Builder.() -> Unit): + Unit = verdictExpression(RuleVerdictExpressionProperty(verdictExpression)) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty, + ) : CdkObject(cdkObject), + RuleConditionProperty { + /** + * The condition applies to a boolean expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-booleanexpression) + */ + override fun booleanExpression(): Any? = unwrap(this).getBooleanExpression() + + /** + * The condition applies to a DMARC policy expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-dmarcexpression) + */ + override fun dmarcExpression(): Any? = unwrap(this).getDmarcExpression() + + /** + * The condition applies to an IP address expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-ipexpression) + */ + override fun ipExpression(): Any? = unwrap(this).getIpExpression() + + /** + * The condition applies to a number expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-numberexpression) + */ + override fun numberExpression(): Any? = unwrap(this).getNumberExpression() + + /** + * The condition applies to a string expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-stringexpression) + */ + override fun stringExpression(): Any? = unwrap(this).getStringExpression() + + /** + * The condition applies to a verdict expression passed in this field. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulecondition.html#cfn-ses-mailmanagerruleset-rulecondition-verdictexpression) + */ + override fun verdictExpression(): Any? = unwrap(this).getVerdictExpression() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleConditionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty): + RuleConditionProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleConditionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleConditionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleConditionProperty + } + } + + /** + * A DMARC policy expression. + * + * The condition matches if the given DMARC policy matches that of the incoming email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleDmarcExpressionProperty ruleDmarcExpressionProperty = RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruledmarcexpression.html) + */ + public interface RuleDmarcExpressionProperty { + /** + * The operator to apply to the DMARC policy of the incoming email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruledmarcexpression.html#cfn-ses-mailmanagerruleset-ruledmarcexpression-operator) + */ + public fun `operator`(): String + + /** + * The values to use for the given DMARC policy operator. + * + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, + * if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, + * if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC + * policy is not equal to any of the given values, then the condition is deemed to match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruledmarcexpression.html#cfn-ses-mailmanagerruleset-ruledmarcexpression-values) + */ + public fun values(): List + + /** + * A builder for [RuleDmarcExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param operator The operator to apply to the DMARC policy of the incoming email. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The values to use for the given DMARC policy operator. + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That + * is, if any of the given values match, the condition is deemed to match. For the operator + * NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the + * email's DMARC policy is not equal to any of the given values, then the condition is deemed to + * match. + */ + public fun values(values: List) + + /** + * @param values The values to use for the given DMARC policy operator. + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That + * is, if any of the given values match, the condition is deemed to match. For the operator + * NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the + * email's DMARC policy is not equal to any of the given values, then the condition is deemed to + * match. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty.builder() + + /** + * @param operator The operator to apply to the DMARC policy of the incoming email. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The values to use for the given DMARC policy operator. + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That + * is, if any of the given values match, the condition is deemed to match. For the operator + * NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the + * email's DMARC policy is not equal to any of the given values, then the condition is deemed to + * match. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The values to use for the given DMARC policy operator. + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That + * is, if any of the given values match, the condition is deemed to match. For the operator + * NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the + * email's DMARC policy is not equal to any of the given values, then the condition is deemed to + * match. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty, + ) : CdkObject(cdkObject), + RuleDmarcExpressionProperty { + /** + * The operator to apply to the DMARC policy of the incoming email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruledmarcexpression.html#cfn-ses-mailmanagerruleset-ruledmarcexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The values to use for the given DMARC policy operator. + * + * For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That + * is, if any of the given values match, the condition is deemed to match. For the operator + * NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the + * email's DMARC policy is not equal to any of the given values, then the condition is deemed to + * match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruledmarcexpression.html#cfn-ses-mailmanagerruleset-ruledmarcexpression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleDmarcExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty): + RuleDmarcExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleDmarcExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleDmarcExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty + } + } + + /** + * An IP address expression matching certain IP addresses within a given range of IP addresses. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleIpExpressionProperty ruleIpExpressionProperty = RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html) + */ + public interface RuleIpExpressionProperty { + /** + * The IP address to evaluate in this condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The operator to evaluate the IP address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-operator) + */ + public fun `operator`(): String + + /** + * The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP + * address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an + * OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition + * is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is + * deemed to match if the IP address is not contained in any of the given CIDR ranges. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-values) + */ + public fun values(): List + + /** + * A builder for [RuleIpExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The IP address to evaluate in this condition. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The IP address to evaluate in this condition. + */ + public fun evaluate(evaluate: RuleIpToEvaluateProperty) + + /** + * @param evaluate The IP address to evaluate in this condition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cef72ebbc414e64de6b08923e2184281cb2fd7692b7af3e3a60c98f7b9d42b2e") + public fun evaluate(evaluate: RuleIpToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The operator to evaluate the IP address. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are + * evaluated as an OR. That is, if the IP address is contained within any of the given CIDR + * ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are + * given, the condition is deemed to match if the IP address is not contained in any of the given + * CIDR ranges. + */ + public fun values(values: List) + + /** + * @param values The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are + * evaluated as an OR. That is, if the IP address is contained within any of the given CIDR + * ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are + * given, the condition is deemed to match if the IP address is not contained in any of the given + * CIDR ranges. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty.builder() + + /** + * @param evaluate The IP address to evaluate in this condition. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The IP address to evaluate in this condition. + */ + override fun evaluate(evaluate: RuleIpToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(RuleIpToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The IP address to evaluate in this condition. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("cef72ebbc414e64de6b08923e2184281cb2fd7692b7af3e3a60c98f7b9d42b2e") + override fun evaluate(evaluate: RuleIpToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(RuleIpToEvaluateProperty(evaluate)) + + /** + * @param operator The operator to evaluate the IP address. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are + * evaluated as an OR. That is, if the IP address is contained within any of the given CIDR + * ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are + * given, the condition is deemed to match if the IP address is not contained in any of the given + * CIDR ranges. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are + * evaluated as an OR. That is, if the IP address is contained within any of the given CIDR + * ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are + * given, the condition is deemed to match if the IP address is not contained in any of the given + * CIDR ranges. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty, + ) : CdkObject(cdkObject), + RuleIpExpressionProperty { + /** + * The IP address to evaluate in this condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The operator to evaluate the IP address. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP + * address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an + * OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition + * is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is + * deemed to match if the IP address is not contained in any of the given CIDR ranges. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleipexpression.html#cfn-ses-mailmanagerruleset-ruleipexpression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleIpExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty): + RuleIpExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleIpExpressionProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleIpExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpExpressionProperty + } + } + + /** + * The IP address to evaluate for this condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleIpToEvaluateProperty ruleIpToEvaluateProperty = RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleiptoevaluate.html) + */ + public interface RuleIpToEvaluateProperty { + /** + * The attribute of the email to evaluate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleiptoevaluate.html#cfn-ses-mailmanagerruleset-ruleiptoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [RuleIpToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute The attribute of the email to evaluate. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty.builder() + + /** + * @param attribute The attribute of the email to evaluate. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty, + ) : CdkObject(cdkObject), + RuleIpToEvaluateProperty { + /** + * The attribute of the email to evaluate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleiptoevaluate.html#cfn-ses-mailmanagerruleset-ruleiptoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleIpToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty): + RuleIpToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleIpToEvaluateProperty + ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleIpToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty + } + } + + /** + * A number expression to match numeric conditions with integers from the incoming email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleNumberExpressionProperty ruleNumberExpressionProperty = + * RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html) + */ + public interface RuleNumberExpressionProperty { + /** + * The number to evaluate in a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The operator for a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-operator) + */ + public fun `operator`(): String + + /** + * The value to evaluate in a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-value) + */ + public fun `value`(): Number + + /** + * A builder for [RuleNumberExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + public fun evaluate(evaluate: RuleNumberToEvaluateProperty) + + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2fafd77a4e9ebc9af5b6af5e4d4f0192c753c9af587ef59dac6b559a92d077d4") + public fun evaluate(evaluate: RuleNumberToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The operator for a numeric condition expression. + */ + public fun `operator`(`operator`: String) + + /** + * @param value The value to evaluate in a numeric condition expression. + */ + public fun `value`(`value`: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty.builder() + + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + override fun evaluate(evaluate: RuleNumberToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(RuleNumberToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The number to evaluate in a numeric condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("2fafd77a4e9ebc9af5b6af5e4d4f0192c753c9af587ef59dac6b559a92d077d4") + override fun evaluate(evaluate: RuleNumberToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(RuleNumberToEvaluateProperty(evaluate)) + + /** + * @param operator The operator for a numeric condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param value The value to evaluate in a numeric condition expression. + */ + override fun `value`(`value`: Number) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty, + ) : CdkObject(cdkObject), + RuleNumberExpressionProperty { + /** + * The number to evaluate in a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The operator for a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The value to evaluate in a numeric condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumberexpression.html#cfn-ses-mailmanagerruleset-rulenumberexpression-value) + */ + override fun `value`(): Number = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleNumberExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty): + RuleNumberExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleNumberExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleNumberExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty + } + } + + /** + * The number to evaluate in a numeric condition expression. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleNumberToEvaluateProperty ruleNumberToEvaluateProperty = + * RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumbertoevaluate.html) + */ + public interface RuleNumberToEvaluateProperty { + /** + * An email attribute that is used as the number to evaluate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumbertoevaluate.html#cfn-ses-mailmanagerruleset-rulenumbertoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [RuleNumberToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute An email attribute that is used as the number to evaluate. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty.builder() + + /** + * @param attribute An email attribute that is used as the number to evaluate. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty, + ) : CdkObject(cdkObject), + RuleNumberToEvaluateProperty { + /** + * An email attribute that is used as the number to evaluate. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulenumbertoevaluate.html#cfn-ses-mailmanagerruleset-rulenumbertoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleNumberToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty): + RuleNumberToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleNumberToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleNumberToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty + } + } + + /** + * A rule contains conditions, "unless conditions" and actions. + * + * For each envelope recipient of an email, if all conditions match and none of the "unless + * conditions" match, then all of the actions are executed sequentially. If no conditions are + * provided, the rule always applies and the actions are implicitly executed. If only "unless + * conditions" are provided, the rule applies if the email does not match the evaluation of the + * "unless conditions". + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object drop; + * RuleProperty ruleProperty = RuleProperty.builder() + * .actions(List.of(RuleActionProperty.builder() + * .addHeader(AddHeaderActionProperty.builder() + * .headerName("headerName") + * .headerValue("headerValue") + * .build()) + * .archive(ArchiveActionProperty.builder() + * .targetArchive("targetArchive") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .deliverToMailbox(DeliverToMailboxActionProperty.builder() + * .mailboxArn("mailboxArn") + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .drop(drop) + * .relay(RelayActionProperty.builder() + * .relay("relay") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .mailFrom("mailFrom") + * .build()) + * .replaceRecipient(ReplaceRecipientActionProperty.builder() + * .replaceWith(List.of("replaceWith")) + * .build()) + * .send(SendActionProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .writeToS3(S3ActionProperty.builder() + * .roleArn("roleArn") + * .s3Bucket("s3Bucket") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .s3Prefix("s3Prefix") + * .s3SseKmsKeyId("s3SseKmsKeyId") + * .build()) + * .build())) + * // the properties below are optional + * .conditions(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .name("name") + * .unless(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html) + */ + public interface RuleProperty { + /** + * The list of actions to execute when the conditions match the incoming email, and none of the + * "unless conditions" match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-actions) + */ + public fun actions(): Any + + /** + * The conditions of this rule. + * + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-conditions) + */ + public fun conditions(): Any? = unwrap(this).getConditions() + + /** + * The user-friendly name of the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * The "unless conditions" of this rule. + * + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-unless) + */ + public fun unless(): Any? = unwrap(this).getUnless() + + /** + * A builder for [RuleProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + public fun actions(actions: IResolvable) + + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + public fun actions(actions: List) + + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + public fun actions(vararg actions: Any) + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + public fun conditions(conditions: List) + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + public fun conditions(vararg conditions: Any) + + /** + * @param name The user-friendly name of the rule. + */ + public fun name(name: String) + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + public fun unless(unless: IResolvable) + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + public fun unless(unless: List) + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + public fun unless(vararg unless: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty.builder() + + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + override fun actions(actions: IResolvable) { + cdkBuilder.actions(actions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + override fun actions(actions: List) { + cdkBuilder.actions(actions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param actions The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match. + */ + override fun actions(vararg actions: Any): Unit = actions(actions.toList()) + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions The conditions of this rule. + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + /** + * @param name The user-friendly name of the rule. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + override fun unless(unless: IResolvable) { + cdkBuilder.unless(unless.let(IResolvable.Companion::unwrap)) + } + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + override fun unless(unless: List) { + cdkBuilder.unless(unless.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param unless The "unless conditions" of this rule. + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + */ + override fun unless(vararg unless: Any): Unit = unless(unless.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty, + ) : CdkObject(cdkObject), + RuleProperty { + /** + * The list of actions to execute when the conditions match the incoming email, and none of + * the "unless conditions" match. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-actions) + */ + override fun actions(): Any = unwrap(this).getActions() + + /** + * The conditions of this rule. + * + * All conditions must match the email for the actions to be executed. An empty list of + * conditions means that all emails match, but are still subject to any "unless conditions" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-conditions) + */ + override fun conditions(): Any? = unwrap(this).getConditions() + + /** + * The user-friendly name of the rule. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * The "unless conditions" of this rule. + * + * None of the conditions can match the email for the actions to be executed. If any of these + * conditions do match the email, then the actions are not executed. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rule.html#cfn-ses-mailmanagerruleset-rule-unless) + */ + override fun unless(): Any? = unwrap(this).getUnless() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty): + RuleProperty = CdkObjectWrappers.wrap(cdkObject) as? RuleProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleProperty + } + } + + /** + * A string expression is evaluated against strings or substrings of the email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleStringExpressionProperty ruleStringExpressionProperty = + * RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html) + */ + public interface RuleStringExpressionProperty { + /** + * The string to evaluate in a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-operator) + */ + public fun `operator`(): String + + /** + * The string(s) to be evaluated in a string condition expression. + * + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-values) + */ + public fun values(): List + + /** + * A builder for [RuleStringExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + public fun evaluate(evaluate: RuleStringToEvaluateProperty) + + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d2e8ab33b37a21dab971839d45ccda23dd8894a9428265d4e81e955ac59717aa") + public fun evaluate(evaluate: RuleStringToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for a string condition expression. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The string(s) to be evaluated in a string condition expression. + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + */ + public fun values(values: List) + + /** + * @param values The string(s) to be evaluated in a string condition expression. + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty.builder() + + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + override fun evaluate(evaluate: RuleStringToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(RuleStringToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The string to evaluate in a string condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d2e8ab33b37a21dab971839d45ccda23dd8894a9428265d4e81e955ac59717aa") + override fun evaluate(evaluate: RuleStringToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(RuleStringToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for a string condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The string(s) to be evaluated in a string condition expression. + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The string(s) to be evaluated in a string condition expression. + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty, + ) : CdkObject(cdkObject), + RuleStringExpressionProperty { + /** + * The string to evaluate in a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The string(s) to be evaluated in a string condition expression. + * + * For all operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using the given + * operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only + * deemed to match if none of the given strings match the email's string. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringexpression.html#cfn-ses-mailmanagerruleset-rulestringexpression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleStringExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty): + RuleStringExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleStringExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleStringExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringExpressionProperty + } + } + + /** + * The string to evaluate in a string condition expression. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleStringToEvaluateProperty ruleStringToEvaluateProperty = + * RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringtoevaluate.html) + */ + public interface RuleStringToEvaluateProperty { + /** + * The email attribute to evaluate in a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringtoevaluate.html#cfn-ses-mailmanagerruleset-rulestringtoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [RuleStringToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute The email attribute to evaluate in a string condition expression. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty.builder() + + /** + * @param attribute The email attribute to evaluate in a string condition expression. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty, + ) : CdkObject(cdkObject), + RuleStringToEvaluateProperty { + /** + * The email attribute to evaluate in a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-rulestringtoevaluate.html#cfn-ses-mailmanagerruleset-rulestringtoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleStringToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty): + RuleStringToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleStringToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleStringToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty + } + } + + /** + * A verdict expression is evaluated against verdicts of the email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleVerdictExpressionProperty ruleVerdictExpressionProperty = + * RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html) + */ + public interface RuleVerdictExpressionProperty { + /** + * The verdict to evaluate in a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-operator) + */ + public fun `operator`(): String + + /** + * The values to match with the email's verdict using the given operator. + * + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-values) + */ + public fun values(): List + + /** + * A builder for [RuleVerdictExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + public fun evaluate(evaluate: RuleVerdictToEvaluateProperty) + + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("43567c7c92a6d41991ecbaa593ccb700de2d4c80f18b7dae4a3567520ca8110c") + public fun evaluate(evaluate: RuleVerdictToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for a verdict condition expression. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The values to match with the email's verdict using the given operator. + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + */ + public fun values(values: List) + + /** + * @param values The values to match with the email's verdict using the given operator. + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty.builder() + + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + override fun evaluate(evaluate: RuleVerdictToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(RuleVerdictToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The verdict to evaluate in a verdict condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("43567c7c92a6d41991ecbaa593ccb700de2d4c80f18b7dae4a3567520ca8110c") + override fun evaluate(evaluate: RuleVerdictToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(RuleVerdictToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for a verdict condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The values to match with the email's verdict using the given operator. + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The values to match with the email's verdict using the given operator. + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty, + ) : CdkObject(cdkObject), + RuleVerdictExpressionProperty { + /** + * The verdict to evaluate in a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The values to match with the email's verdict using the given operator. + * + * For the EQUALS operator, if multiple values are given, the condition is deemed to match if + * any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + * values are given, the condition is deemed to match of none of the given verdicts match the + * verdict of the email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdictexpression.html#cfn-ses-mailmanagerruleset-ruleverdictexpression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleVerdictExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty): + RuleVerdictExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleVerdictExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleVerdictExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty + } + } + + /** + * The verdict to evaluate in a verdict condition expression. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * RuleVerdictToEvaluateProperty ruleVerdictToEvaluateProperty = + * RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdicttoevaluate.html) + */ + public interface RuleVerdictToEvaluateProperty { + /** + * The Add On ARN and its returned value to evaluate in a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdicttoevaluate.html#cfn-ses-mailmanagerruleset-ruleverdicttoevaluate-analysis) + */ + public fun analysis(): Any? = unwrap(this).getAnalysis() + + /** + * The email verdict attribute to evaluate in a string verdict expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdicttoevaluate.html#cfn-ses-mailmanagerruleset-ruleverdicttoevaluate-attribute) + */ + public fun attribute(): String? = unwrap(this).getAttribute() + + /** + * A builder for [RuleVerdictToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + public fun analysis(analysis: IResolvable) + + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + public fun analysis(analysis: AnalysisProperty) + + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("69d64c27246c4ebd6bdba0707a31f839ab04253e8143a92373bea809dbf71fbd") + public fun analysis(analysis: AnalysisProperty.Builder.() -> Unit) + + /** + * @param attribute The email verdict attribute to evaluate in a string verdict expression. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty.builder() + + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + override fun analysis(analysis: IResolvable) { + cdkBuilder.analysis(analysis.let(IResolvable.Companion::unwrap)) + } + + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + override fun analysis(analysis: AnalysisProperty) { + cdkBuilder.analysis(analysis.let(AnalysisProperty.Companion::unwrap)) + } + + /** + * @param analysis The Add On ARN and its returned value to evaluate in a verdict condition + * expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("69d64c27246c4ebd6bdba0707a31f839ab04253e8143a92373bea809dbf71fbd") + override fun analysis(analysis: AnalysisProperty.Builder.() -> Unit): Unit = + analysis(AnalysisProperty(analysis)) + + /** + * @param attribute The email verdict attribute to evaluate in a string verdict expression. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty, + ) : CdkObject(cdkObject), + RuleVerdictToEvaluateProperty { + /** + * The Add On ARN and its returned value to evaluate in a verdict condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdicttoevaluate.html#cfn-ses-mailmanagerruleset-ruleverdicttoevaluate-analysis) + */ + override fun analysis(): Any? = unwrap(this).getAnalysis() + + /** + * The email verdict attribute to evaluate in a string verdict expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-ruleverdicttoevaluate.html#cfn-ses-mailmanagerruleset-ruleverdicttoevaluate-attribute) + */ + override fun attribute(): String? = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): RuleVerdictToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty): + RuleVerdictToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + RuleVerdictToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: RuleVerdictToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty + } + } + + /** + * Writes the MIME content of the email to an S3 bucket. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * S3ActionProperty s3ActionProperty = S3ActionProperty.builder() + * .roleArn("roleArn") + * .s3Bucket("s3Bucket") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .s3Prefix("s3Prefix") + * .s3SseKmsKeyId("s3SseKmsKeyId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html) + */ + public interface S3ActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified the bucket + * has been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-actionfailurepolicy) + */ + public fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * + * This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for + * the given bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-rolearn) + */ + public fun roleArn(): String + + /** + * The bucket name of the S3 bucket to write to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3bucket) + */ + public fun s3Bucket(): String + + /** + * The S3 prefix to use for the write to the s3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3prefix) + */ + public fun s3Prefix(): String? = unwrap(this).getS3Prefix() + + /** + * The KMS Key ID to use to encrypt the message in S3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3ssekmskeyid) + */ + public fun s3SseKmsKeyId(): String? = unwrap(this).getS3SseKmsKeyId() + + /** + * A builder for [S3ActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified the + * bucket has been deleted. + */ + public fun actionFailurePolicy(actionFailurePolicy: String) + + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs + * for the given bucket. + */ + public fun roleArn(roleArn: String) + + /** + * @param s3Bucket The bucket name of the S3 bucket to write to. + */ + public fun s3Bucket(s3Bucket: String) + + /** + * @param s3Prefix The S3 prefix to use for the write to the s3 bucket. + */ + public fun s3Prefix(s3Prefix: String) + + /** + * @param s3SseKmsKeyId The KMS Key ID to use to encrypt the message in S3. + */ + public fun s3SseKmsKeyId(s3SseKmsKeyId: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty.builder() + + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the specified the + * bucket has been deleted. + */ + override fun actionFailurePolicy(actionFailurePolicy: String) { + cdkBuilder.actionFailurePolicy(actionFailurePolicy) + } + + /** + * @param roleArn The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs + * for the given bucket. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + /** + * @param s3Bucket The bucket name of the S3 bucket to write to. + */ + override fun s3Bucket(s3Bucket: String) { + cdkBuilder.s3Bucket(s3Bucket) + } + + /** + * @param s3Prefix The S3 prefix to use for the write to the s3 bucket. + */ + override fun s3Prefix(s3Prefix: String) { + cdkBuilder.s3Prefix(s3Prefix) + } + + /** + * @param s3SseKmsKeyId The KMS Key ID to use to encrypt the message in S3. + */ + override fun s3SseKmsKeyId(s3SseKmsKeyId: String) { + cdkBuilder.s3SseKmsKeyId(s3SseKmsKeyId) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty, + ) : CdkObject(cdkObject), + S3ActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the specified the + * bucket has been deleted. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-actionfailurepolicy) + */ + override fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * + * This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs + * for the given bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + + /** + * The bucket name of the S3 bucket to write to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3bucket) + */ + override fun s3Bucket(): String = unwrap(this).getS3Bucket() + + /** + * The S3 prefix to use for the write to the s3 bucket. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3prefix) + */ + override fun s3Prefix(): String? = unwrap(this).getS3Prefix() + + /** + * The KMS Key ID to use to encrypt the message in S3. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-s3action.html#cfn-ses-mailmanagerruleset-s3action-s3ssekmskeyid) + */ + override fun s3SseKmsKeyId(): String? = unwrap(this).getS3SseKmsKeyId() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): S3ActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty): + S3ActionProperty = CdkObjectWrappers.wrap(cdkObject) as? S3ActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: S3ActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.S3ActionProperty + } + } + + /** + * Sends the email to the internet using the ses:SendRawEmail API. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * SendActionProperty sendActionProperty = SendActionProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-sendaction.html) + */ + public interface SendActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the caller does not have + * the permissions to call the sendRawEmail API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-sendaction.html#cfn-ses-mailmanagerruleset-sendaction-actionfailurepolicy) + */ + public fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of the role to use for this action. + * + * This role must have access to the ses:SendRawEmail API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-sendaction.html#cfn-ses-mailmanagerruleset-sendaction-rolearn) + */ + public fun roleArn(): String + + /** + * A builder for [SendActionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the caller does not + * have the permissions to call the sendRawEmail API. + */ + public fun actionFailurePolicy(actionFailurePolicy: String) + + /** + * @param roleArn The Amazon Resource Name (ARN) of the role to use for this action. + * This role must have access to the ses:SendRawEmail API. + */ + public fun roleArn(roleArn: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty.builder() + + /** + * @param actionFailurePolicy A policy that states what to do in the case of failure. + * The action will fail if there are configuration errors. For example, the caller does not + * have the permissions to call the sendRawEmail API. + */ + override fun actionFailurePolicy(actionFailurePolicy: String) { + cdkBuilder.actionFailurePolicy(actionFailurePolicy) + } + + /** + * @param roleArn The Amazon Resource Name (ARN) of the role to use for this action. + * This role must have access to the ses:SendRawEmail API. + */ + override fun roleArn(roleArn: String) { + cdkBuilder.roleArn(roleArn) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty, + ) : CdkObject(cdkObject), + SendActionProperty { + /** + * A policy that states what to do in the case of failure. + * + * The action will fail if there are configuration errors. For example, the caller does not + * have the permissions to call the sendRawEmail API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-sendaction.html#cfn-ses-mailmanagerruleset-sendaction-actionfailurepolicy) + */ + override fun actionFailurePolicy(): String? = unwrap(this).getActionFailurePolicy() + + /** + * The Amazon Resource Name (ARN) of the role to use for this action. + * + * This role must have access to the ses:SendRawEmail API. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagerruleset-sendaction.html#cfn-ses-mailmanagerruleset-sendaction-rolearn) + */ + override fun roleArn(): String = unwrap(this).getRoleArn() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SendActionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty): + SendActionProperty = CdkObjectWrappers.wrap(cdkObject) as? SendActionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SendActionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.SendActionProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSetProps.kt new file mode 100644 index 0000000000..39c44351f9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerRuleSetProps.kt @@ -0,0 +1,321 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnMailManagerRuleSet`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * Object drop; + * CfnMailManagerRuleSetProps cfnMailManagerRuleSetProps = CfnMailManagerRuleSetProps.builder() + * .rules(List.of(RuleProperty.builder() + * .actions(List.of(RuleActionProperty.builder() + * .addHeader(AddHeaderActionProperty.builder() + * .headerName("headerName") + * .headerValue("headerValue") + * .build()) + * .archive(ArchiveActionProperty.builder() + * .targetArchive("targetArchive") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .deliverToMailbox(DeliverToMailboxActionProperty.builder() + * .mailboxArn("mailboxArn") + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .drop(drop) + * .relay(RelayActionProperty.builder() + * .relay("relay") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .mailFrom("mailFrom") + * .build()) + * .replaceRecipient(ReplaceRecipientActionProperty.builder() + * .replaceWith(List.of("replaceWith")) + * .build()) + * .send(SendActionProperty.builder() + * .roleArn("roleArn") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .build()) + * .writeToS3(S3ActionProperty.builder() + * .roleArn("roleArn") + * .s3Bucket("s3Bucket") + * // the properties below are optional + * .actionFailurePolicy("actionFailurePolicy") + * .s3Prefix("s3Prefix") + * .s3SseKmsKeyId("s3SseKmsKeyId") + * .build()) + * .build())) + * // the properties below are optional + * .conditions(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .name("name") + * .unless(List.of(RuleConditionProperty.builder() + * .booleanExpression(RuleBooleanExpressionProperty.builder() + * .evaluate(RuleBooleanToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .build()) + * .dmarcExpression(RuleDmarcExpressionProperty.builder() + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .ipExpression(RuleIpExpressionProperty.builder() + * .evaluate(RuleIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .numberExpression(RuleNumberExpressionProperty.builder() + * .evaluate(RuleNumberToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value(123) + * .build()) + * .stringExpression(RuleStringExpressionProperty.builder() + * .evaluate(RuleStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .verdictExpression(RuleVerdictExpressionProperty.builder() + * .evaluate(RuleVerdictToEvaluateProperty.builder() + * .analysis(AnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .build())) + * .build())) + * // the properties below are optional + * .ruleSetName("ruleSetName") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html) + */ +public interface CfnMailManagerRuleSetProps { + /** + * A user-friendly name for the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rulesetname) + */ + public fun ruleSetName(): String? = unwrap(this).getRuleSetName() + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + */ + public fun rules(): Any + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnMailManagerRuleSetProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param ruleSetName A user-friendly name for the rule set. + */ + public fun ruleSetName(ruleSetName: String) + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(rules: IResolvable) + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(rules: List) + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + public fun rules(vararg rules: Any) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps.builder() + + /** + * @param ruleSetName A user-friendly name for the rule set. + */ + override fun ruleSetName(ruleSetName: String) { + cdkBuilder.ruleSetName(ruleSetName) + } + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(rules: IResolvable) { + cdkBuilder.rules(rules.let(IResolvable.Companion::unwrap)) + } + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(rules: List) { + cdkBuilder.rules(rules.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param rules Conditional rules that are evaluated for determining actions on email. + */ + override fun rules(vararg rules: Any): Unit = rules(rules.toList()) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps, + ) : CdkObject(cdkObject), + CfnMailManagerRuleSetProps { + /** + * A user-friendly name for the rule set. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rulesetname) + */ + override fun ruleSetName(): String? = unwrap(this).getRuleSetName() + + /** + * Conditional rules that are evaluated for determining actions on email. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-rules) + */ + override fun rules(): Any = unwrap(this).getRules() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagerruleset.html#cfn-ses-mailmanagerruleset-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerRuleSetProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps): + CfnMailManagerRuleSetProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerRuleSetProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerRuleSetProps): + software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicy.kt new file mode 100644 index 0000000000..b7d9e98d85 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicy.kt @@ -0,0 +1,2129 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy + * statements used to evaluate whether incoming emails should be allowed or denied. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerTrafficPolicy cfnMailManagerTrafficPolicy = + * CfnMailManagerTrafficPolicy.Builder.create(this, "MyCfnMailManagerTrafficPolicy") + * .defaultAction("defaultAction") + * .policyStatements(List.of(PolicyStatementProperty.builder() + * .action("action") + * .conditions(List.of(PolicyConditionProperty.builder() + * .booleanExpression(IngressBooleanExpressionProperty.builder() + * .evaluate(IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build()) + * .operator("operator") + * .build()) + * .ipExpression(IngressIpv4ExpressionProperty.builder() + * .evaluate(IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .stringExpression(IngressStringExpressionProperty.builder() + * .evaluate(IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .tlsExpression(IngressTlsProtocolExpressionProperty.builder() + * .evaluate(IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value("value") + * .build()) + * .build())) + * .build())) + * // the properties below are optional + * .maxMessageSizeBytes(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .trafficPolicyName("trafficPolicyName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html) + */ +public open class CfnMailManagerTrafficPolicy( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerTrafficPolicyProps, + ) : + this(software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnMailManagerTrafficPolicyProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnMailManagerTrafficPolicyProps.Builder.() -> Unit, + ) : this(scope, id, CfnMailManagerTrafficPolicyProps(props) + ) + + /** + * The Amazon Resource Name (ARN) of the traffic policy resource. + */ + public open fun attrTrafficPolicyArn(): String = unwrap(this).getAttrTrafficPolicyArn() + + /** + * The identifier of the traffic policy resource. + */ + public open fun attrTrafficPolicyId(): String = unwrap(this).getAttrTrafficPolicyId() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + */ + public open fun defaultAction(): String = unwrap(this).getDefaultAction() + + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + */ + public open fun defaultAction(`value`: String) { + unwrap(this).setDefaultAction(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The maximum message size in bytes of email which is allowed in by this traffic policy—anything + * larger will be blocked. + */ + public open fun maxMessageSizeBytes(): Number? = unwrap(this).getMaxMessageSizeBytes() + + /** + * The maximum message size in bytes of email which is allowed in by this traffic policy—anything + * larger will be blocked. + */ + public open fun maxMessageSizeBytes(`value`: Number) { + unwrap(this).setMaxMessageSizeBytes(`value`) + } + + /** + * Conditional statements for filtering email traffic. + */ + public open fun policyStatements(): Any = unwrap(this).getPolicyStatements() + + /** + * Conditional statements for filtering email traffic. + */ + public open fun policyStatements(`value`: IResolvable) { + unwrap(this).setPolicyStatements(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Conditional statements for filtering email traffic. + */ + public open fun policyStatements(`value`: List) { + unwrap(this).setPolicyStatements(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * Conditional statements for filtering email traffic. + */ + public open fun policyStatements(vararg `value`: Any): Unit = policyStatements(`value`.toList()) + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The name of the policy. + */ + public open fun trafficPolicyName(): String? = unwrap(this).getTrafficPolicyName() + + /** + * The name of the policy. + */ + public open fun trafficPolicyName(`value`: String) { + unwrap(this).setTrafficPolicyName(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ses.CfnMailManagerTrafficPolicy]. + */ + @CdkDslMarker + public interface Builder { + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-defaultaction) + * @param defaultAction Default action instructs the traffic policy to either Allow or Deny + * (block) messages that fall outside of (or not addressed by) the conditions of your policy + * statements. + */ + public fun defaultAction(defaultAction: String) + + /** + * The maximum message size in bytes of email which is allowed in by this traffic + * policy—anything larger will be blocked. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-maxmessagesizebytes) + * @param maxMessageSizeBytes The maximum message size in bytes of email which is allowed in by + * this traffic policy—anything larger will be blocked. + */ + public fun maxMessageSizeBytes(maxMessageSizeBytes: Number) + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(policyStatements: IResolvable) + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(policyStatements: List) + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(vararg policyStatements: Any) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(tags: List) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The name of the policy. + * + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-trafficpolicyname) + * @param trafficPolicyName The name of the policy. + */ + public fun trafficPolicyName(trafficPolicyName: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.Builder + = software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.Builder.create(scope, id) + + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-defaultaction) + * @param defaultAction Default action instructs the traffic policy to either Allow or Deny + * (block) messages that fall outside of (or not addressed by) the conditions of your policy + * statements. + */ + override fun defaultAction(defaultAction: String) { + cdkBuilder.defaultAction(defaultAction) + } + + /** + * The maximum message size in bytes of email which is allowed in by this traffic + * policy—anything larger will be blocked. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-maxmessagesizebytes) + * @param maxMessageSizeBytes The maximum message size in bytes of email which is allowed in by + * this traffic policy—anything larger will be blocked. + */ + override fun maxMessageSizeBytes(maxMessageSizeBytes: Number) { + cdkBuilder.maxMessageSizeBytes(maxMessageSizeBytes) + } + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(policyStatements: IResolvable) { + cdkBuilder.policyStatements(policyStatements.let(IResolvable.Companion::unwrap)) + } + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(policyStatements: List) { + cdkBuilder.policyStatements(policyStatements.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(vararg policyStatements: Any): Unit = + policyStatements(policyStatements.toList()) + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + * @param tags The tags used to organize, track, or control access for the resource. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The name of the policy. + * + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-trafficpolicyname) + * @param trafficPolicyName The name of the policy. + */ + override fun trafficPolicyName(trafficPolicyName: String) { + cdkBuilder.trafficPolicyName(trafficPolicyName) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnMailManagerTrafficPolicy { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnMailManagerTrafficPolicy(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy): + CfnMailManagerTrafficPolicy = CfnMailManagerTrafficPolicy(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerTrafficPolicy): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy = wrapped.cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy + } + + /** + * The Add On ARN and its returned value that is evaluated in a policy statement's conditional + * expression to either deny or block the incoming email. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressAnalysisProperty ingressAnalysisProperty = IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressanalysis.html) + */ + public interface IngressAnalysisProperty { + /** + * The Amazon Resource Name (ARN) of an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressanalysis.html#cfn-ses-mailmanagertrafficpolicy-ingressanalysis-analyzer) + */ + public fun analyzer(): String + + /** + * The returned value from an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressanalysis.html#cfn-ses-mailmanagertrafficpolicy-ingressanalysis-resultfield) + */ + public fun resultField(): String + + /** + * A builder for [IngressAnalysisProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param analyzer The Amazon Resource Name (ARN) of an Add On. + */ + public fun analyzer(analyzer: String) + + /** + * @param resultField The returned value from an Add On. + */ + public fun resultField(resultField: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty.builder() + + /** + * @param analyzer The Amazon Resource Name (ARN) of an Add On. + */ + override fun analyzer(analyzer: String) { + cdkBuilder.analyzer(analyzer) + } + + /** + * @param resultField The returned value from an Add On. + */ + override fun resultField(resultField: String) { + cdkBuilder.resultField(resultField) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty, + ) : CdkObject(cdkObject), + IngressAnalysisProperty { + /** + * The Amazon Resource Name (ARN) of an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressanalysis.html#cfn-ses-mailmanagertrafficpolicy-ingressanalysis-analyzer) + */ + override fun analyzer(): String = unwrap(this).getAnalyzer() + + /** + * The returned value from an Add On. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressanalysis.html#cfn-ses-mailmanagertrafficpolicy-ingressanalysis-resultfield) + */ + override fun resultField(): String = unwrap(this).getResultField() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressAnalysisProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty): + IngressAnalysisProperty = CdkObjectWrappers.wrap(cdkObject) as? IngressAnalysisProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressAnalysisProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty + } + } + + /** + * The structure for a boolean condition matching on the incoming mail. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressBooleanExpressionProperty ingressBooleanExpressionProperty = + * IngressBooleanExpressionProperty.builder() + * .evaluate(IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build()) + * .operator("operator") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleanexpression.html) + */ + public interface IngressBooleanExpressionProperty { + /** + * The operand on which to perform a boolean condition operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleanexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleanexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for a boolean condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleanexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleanexpression-operator) + */ + public fun `operator`(): String + + /** + * A builder for [IngressBooleanExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + public fun evaluate(evaluate: IngressBooleanToEvaluateProperty) + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("059645feae1460076ece80513614777a20fac0a948125ff0098af688f59fbd84") + public fun evaluate(evaluate: IngressBooleanToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for a boolean condition expression. + */ + public fun `operator`(`operator`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty.builder() + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + override fun evaluate(evaluate: IngressBooleanToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(IngressBooleanToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The operand on which to perform a boolean condition operation. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("059645feae1460076ece80513614777a20fac0a948125ff0098af688f59fbd84") + override fun evaluate(evaluate: IngressBooleanToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(IngressBooleanToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for a boolean condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty, + ) : CdkObject(cdkObject), + IngressBooleanExpressionProperty { + /** + * The operand on which to perform a boolean condition operation. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleanexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleanexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for a boolean condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleanexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleanexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressBooleanExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty): + IngressBooleanExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressBooleanExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressBooleanExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty + } + } + + /** + * The union type representing the allowed types of operands for a boolean condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressBooleanToEvaluateProperty ingressBooleanToEvaluateProperty = + * IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleantoevaluate.html) + */ + public interface IngressBooleanToEvaluateProperty { + /** + * The structure type for a boolean condition stating the Add On ARN and its returned value. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleantoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleantoevaluate-analysis) + */ + public fun analysis(): Any + + /** + * A builder for [IngressBooleanToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + public fun analysis(analysis: IResolvable) + + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + public fun analysis(analysis: IngressAnalysisProperty) + + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c970d1bc25b19e527529260ea28764e9824b9eb7d3aedca77227abd4ed388536") + public fun analysis(analysis: IngressAnalysisProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty.builder() + + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + override fun analysis(analysis: IResolvable) { + cdkBuilder.analysis(analysis.let(IResolvable.Companion::unwrap)) + } + + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + override fun analysis(analysis: IngressAnalysisProperty) { + cdkBuilder.analysis(analysis.let(IngressAnalysisProperty.Companion::unwrap)) + } + + /** + * @param analysis The structure type for a boolean condition stating the Add On ARN and its + * returned value. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c970d1bc25b19e527529260ea28764e9824b9eb7d3aedca77227abd4ed388536") + override fun analysis(analysis: IngressAnalysisProperty.Builder.() -> Unit): Unit = + analysis(IngressAnalysisProperty(analysis)) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty, + ) : CdkObject(cdkObject), + IngressBooleanToEvaluateProperty { + /** + * The structure type for a boolean condition stating the Add On ARN and its returned value. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressbooleantoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressbooleantoevaluate-analysis) + */ + override fun analysis(): Any = unwrap(this).getAnalysis() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressBooleanToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty): + IngressBooleanToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressBooleanToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressBooleanToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty + } + } + + /** + * The structure for an IP based condition matching on the incoming mail. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressIpToEvaluateProperty ingressIpToEvaluateProperty = IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressiptoevaluate.html) + */ + public interface IngressIpToEvaluateProperty { + /** + * An enum type representing the allowed attribute types for an IP condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressiptoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressiptoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [IngressIpToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute An enum type representing the allowed attribute types for an IP condition. + * + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty.builder() + + /** + * @param attribute An enum type representing the allowed attribute types for an IP condition. + * + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty, + ) : CdkObject(cdkObject), + IngressIpToEvaluateProperty { + /** + * An enum type representing the allowed attribute types for an IP condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressiptoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressiptoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressIpToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty): + IngressIpToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressIpToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressIpToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty + } + } + + /** + * The union type representing the allowed types for the left hand side of an IP condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressIpv4ExpressionProperty ingressIpv4ExpressionProperty = + * IngressIpv4ExpressionProperty.builder() + * .evaluate(IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html) + */ + public interface IngressIpv4ExpressionProperty { + /** + * The left hand side argument of an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-operator) + */ + public fun `operator`(): String + + /** + * The right hand side argument of an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-values) + */ + public fun values(): List + + /** + * A builder for [IngressIpv4ExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + public fun evaluate(evaluate: IngressIpToEvaluateProperty) + + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b865483d8946ee14ec70f1a357cda1c4d568560e61769b1ed6ad556b8b84415") + public fun evaluate(evaluate: IngressIpToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for an IP condition expression. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The right hand side argument of an IP condition expression. + */ + public fun values(values: List) + + /** + * @param values The right hand side argument of an IP condition expression. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty.builder() + + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + override fun evaluate(evaluate: IngressIpToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(IngressIpToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of an IP condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8b865483d8946ee14ec70f1a357cda1c4d568560e61769b1ed6ad556b8b84415") + override fun evaluate(evaluate: IngressIpToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(IngressIpToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for an IP condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The right hand side argument of an IP condition expression. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The right hand side argument of an IP condition expression. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty, + ) : CdkObject(cdkObject), + IngressIpv4ExpressionProperty { + /** + * The left hand side argument of an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The right hand side argument of an IP condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressipv4expression.html#cfn-ses-mailmanagertrafficpolicy-ingressipv4expression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressIpv4ExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty): + IngressIpv4ExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressIpv4ExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressIpv4ExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty + } + } + + /** + * The structure for a string based condition matching on the incoming mail. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressStringExpressionProperty ingressStringExpressionProperty = + * IngressStringExpressionProperty.builder() + * .evaluate(IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html) + */ + public interface IngressStringExpressionProperty { + /** + * The left hand side argument of a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-operator) + */ + public fun `operator`(): String + + /** + * The right hand side argument of a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-values) + */ + public fun values(): List + + /** + * A builder for [IngressStringExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + public fun evaluate(evaluate: IngressStringToEvaluateProperty) + + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c706df1febba4b1ce7721cf6e344daeed0e8a8316d4f4993d8e9549de96caed3") + public fun evaluate(evaluate: IngressStringToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator the value to be set. + */ + public fun `operator`(`operator`: String) + + /** + * @param values The right hand side argument of a string condition expression. + */ + public fun values(values: List) + + /** + * @param values The right hand side argument of a string condition expression. + */ + public fun values(vararg values: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty.builder() + + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + override fun evaluate(evaluate: IngressStringToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(IngressStringToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of a string condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("c706df1febba4b1ce7721cf6e344daeed0e8a8316d4f4993d8e9549de96caed3") + override fun evaluate(evaluate: IngressStringToEvaluateProperty.Builder.() -> Unit): Unit = + evaluate(IngressStringToEvaluateProperty(evaluate)) + + /** + * @param operator the value to be set. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param values The right hand side argument of a string condition expression. + */ + override fun values(values: List) { + cdkBuilder.values(values) + } + + /** + * @param values The right hand side argument of a string condition expression. + */ + override fun values(vararg values: String): Unit = values(values.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty, + ) : CdkObject(cdkObject), + IngressStringExpressionProperty { + /** + * The left hand side argument of a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The right hand side argument of a string condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringexpression.html#cfn-ses-mailmanagertrafficpolicy-ingressstringexpression-values) + */ + override fun values(): List = unwrap(this).getValues() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressStringExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty): + IngressStringExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressStringExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressStringExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty + } + } + + /** + * The union type representing the allowed types for the left hand side of a string condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressStringToEvaluateProperty ingressStringToEvaluateProperty = + * IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringtoevaluate.html) + */ + public interface IngressStringToEvaluateProperty { + /** + * The enum type representing the allowed attribute types for a string condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringtoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressstringtoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [IngressStringToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute The enum type representing the allowed attribute types for a string + * condition. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty.builder() + + /** + * @param attribute The enum type representing the allowed attribute types for a string + * condition. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty, + ) : CdkObject(cdkObject), + IngressStringToEvaluateProperty { + /** + * The enum type representing the allowed attribute types for a string condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingressstringtoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingressstringtoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): IngressStringToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty): + IngressStringToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressStringToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressStringToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty + } + } + + /** + * The structure for a TLS related condition matching on the incoming mail. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressTlsProtocolExpressionProperty ingressTlsProtocolExpressionProperty = + * IngressTlsProtocolExpressionProperty.builder() + * .evaluate(IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value("value") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html) + */ + public interface IngressTlsProtocolExpressionProperty { + /** + * The left hand side argument of a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-evaluate) + */ + public fun evaluate(): Any + + /** + * The matching operator for a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-operator) + */ + public fun `operator`(): String + + /** + * The right hand side argument of a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-value) + */ + public fun `value`(): String + + /** + * A builder for [IngressTlsProtocolExpressionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + public fun evaluate(evaluate: IResolvable) + + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + public fun evaluate(evaluate: IngressTlsProtocolToEvaluateProperty) + + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9f687ed25dc537e1f92335adca939596125ca13f8c6afc835d5bc187e560345b") + public fun evaluate(evaluate: IngressTlsProtocolToEvaluateProperty.Builder.() -> Unit) + + /** + * @param operator The matching operator for a TLS condition expression. + */ + public fun `operator`(`operator`: String) + + /** + * @param value The right hand side argument of a TLS condition expression. + */ + public fun `value`(`value`: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty.builder() + + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + override fun evaluate(evaluate: IResolvable) { + cdkBuilder.evaluate(evaluate.let(IResolvable.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + override fun evaluate(evaluate: IngressTlsProtocolToEvaluateProperty) { + cdkBuilder.evaluate(evaluate.let(IngressTlsProtocolToEvaluateProperty.Companion::unwrap)) + } + + /** + * @param evaluate The left hand side argument of a TLS condition expression. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("9f687ed25dc537e1f92335adca939596125ca13f8c6afc835d5bc187e560345b") + override fun evaluate(evaluate: IngressTlsProtocolToEvaluateProperty.Builder.() -> Unit): Unit + = evaluate(IngressTlsProtocolToEvaluateProperty(evaluate)) + + /** + * @param operator The matching operator for a TLS condition expression. + */ + override fun `operator`(`operator`: String) { + cdkBuilder.`operator`(`operator`) + } + + /** + * @param value The right hand side argument of a TLS condition expression. + */ + override fun `value`(`value`: String) { + cdkBuilder.`value`(`value`) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty, + ) : CdkObject(cdkObject), + IngressTlsProtocolExpressionProperty { + /** + * The left hand side argument of a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-evaluate) + */ + override fun evaluate(): Any = unwrap(this).getEvaluate() + + /** + * The matching operator for a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-operator) + */ + override fun `operator`(): String = unwrap(this).getOperator() + + /** + * The right hand side argument of a TLS condition expression. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocolexpression-value) + */ + override fun `value`(): String = unwrap(this).getValue() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IngressTlsProtocolExpressionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty): + IngressTlsProtocolExpressionProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressTlsProtocolExpressionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressTlsProtocolExpressionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty + } + } + + /** + * The union type representing the allowed types for the left hand side of a TLS condition. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * IngressTlsProtocolToEvaluateProperty ingressTlsProtocolToEvaluateProperty = + * IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocoltoevaluate.html) + */ + public interface IngressTlsProtocolToEvaluateProperty { + /** + * The enum type representing the allowed attribute types for the TLS condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocoltoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocoltoevaluate-attribute) + */ + public fun attribute(): String + + /** + * A builder for [IngressTlsProtocolToEvaluateProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param attribute The enum type representing the allowed attribute types for the TLS + * condition. + */ + public fun attribute(attribute: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty.builder() + + /** + * @param attribute The enum type representing the allowed attribute types for the TLS + * condition. + */ + override fun attribute(attribute: String) { + cdkBuilder.attribute(attribute) + } + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty, + ) : CdkObject(cdkObject), + IngressTlsProtocolToEvaluateProperty { + /** + * The enum type representing the allowed attribute types for the TLS condition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-ingresstlsprotocoltoevaluate.html#cfn-ses-mailmanagertrafficpolicy-ingresstlsprotocoltoevaluate-attribute) + */ + override fun attribute(): String = unwrap(this).getAttribute() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + IngressTlsProtocolToEvaluateProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty): + IngressTlsProtocolToEvaluateProperty = CdkObjectWrappers.wrap(cdkObject) as? + IngressTlsProtocolToEvaluateProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: IngressTlsProtocolToEvaluateProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty + } + } + + /** + * The email traffic filtering conditions which are contained in a traffic policy resource. + * + * + * This data type is a UNION, so only one of the following members can be specified when used or + * returned. + * + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * PolicyConditionProperty policyConditionProperty = PolicyConditionProperty.builder() + * .booleanExpression(IngressBooleanExpressionProperty.builder() + * .evaluate(IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build()) + * .operator("operator") + * .build()) + * .ipExpression(IngressIpv4ExpressionProperty.builder() + * .evaluate(IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .stringExpression(IngressStringExpressionProperty.builder() + * .evaluate(IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .tlsExpression(IngressTlsProtocolExpressionProperty.builder() + * .evaluate(IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value("value") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html) + */ + public interface PolicyConditionProperty { + /** + * This represents a boolean type condition matching on the incoming mail. + * + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-booleanexpression) + */ + public fun booleanExpression(): Any? = unwrap(this).getBooleanExpression() + + /** + * This represents an IP based condition matching on the incoming mail. + * + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-ipexpression) + */ + public fun ipExpression(): Any? = unwrap(this).getIpExpression() + + /** + * This represents a string based condition matching on the incoming mail. + * + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-stringexpression) + */ + public fun stringExpression(): Any? = unwrap(this).getStringExpression() + + /** + * This represents a TLS based condition matching on the incoming mail. + * + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-tlsexpression) + */ + public fun tlsExpression(): Any? = unwrap(this).getTlsExpression() + + /** + * A builder for [PolicyConditionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + public fun booleanExpression(booleanExpression: IResolvable) + + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + public fun booleanExpression(booleanExpression: IngressBooleanExpressionProperty) + + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5e031e96245ce4b8ccaf7bc15e90efcb703a7cbc9d508d5a9a0ebe1504048825") + public + fun booleanExpression(booleanExpression: IngressBooleanExpressionProperty.Builder.() -> Unit) + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + public fun ipExpression(ipExpression: IResolvable) + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + public fun ipExpression(ipExpression: IngressIpv4ExpressionProperty) + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c5fcb3c2a7821f3bbef3fbc7a85b73bcf5e67f62e0d3a04f11d35bc79db7aaa") + public fun ipExpression(ipExpression: IngressIpv4ExpressionProperty.Builder.() -> Unit) + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + public fun stringExpression(stringExpression: IResolvable) + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + public fun stringExpression(stringExpression: IngressStringExpressionProperty) + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eed509b90a5ff84be6b2fce1457f92b18aeb4724fef6b9a8193874897111a97a") + public + fun stringExpression(stringExpression: IngressStringExpressionProperty.Builder.() -> Unit) + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + public fun tlsExpression(tlsExpression: IResolvable) + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + public fun tlsExpression(tlsExpression: IngressTlsProtocolExpressionProperty) + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1eab6780e7dbd11e445bf4d9ab9a871a2d9cec1b971ce08ca165ccfc947c7f3e") + public + fun tlsExpression(tlsExpression: IngressTlsProtocolExpressionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty.builder() + + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + override fun booleanExpression(booleanExpression: IResolvable) { + cdkBuilder.booleanExpression(booleanExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + override fun booleanExpression(booleanExpression: IngressBooleanExpressionProperty) { + cdkBuilder.booleanExpression(booleanExpression.let(IngressBooleanExpressionProperty.Companion::unwrap)) + } + + /** + * @param booleanExpression This represents a boolean type condition matching on the incoming + * mail. + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5e031e96245ce4b8ccaf7bc15e90efcb703a7cbc9d508d5a9a0ebe1504048825") + override + fun booleanExpression(booleanExpression: IngressBooleanExpressionProperty.Builder.() -> Unit): + Unit = booleanExpression(IngressBooleanExpressionProperty(booleanExpression)) + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + override fun ipExpression(ipExpression: IResolvable) { + cdkBuilder.ipExpression(ipExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + override fun ipExpression(ipExpression: IngressIpv4ExpressionProperty) { + cdkBuilder.ipExpression(ipExpression.let(IngressIpv4ExpressionProperty.Companion::unwrap)) + } + + /** + * @param ipExpression This represents an IP based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4c5fcb3c2a7821f3bbef3fbc7a85b73bcf5e67f62e0d3a04f11d35bc79db7aaa") + override fun ipExpression(ipExpression: IngressIpv4ExpressionProperty.Builder.() -> Unit): + Unit = ipExpression(IngressIpv4ExpressionProperty(ipExpression)) + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + override fun stringExpression(stringExpression: IResolvable) { + cdkBuilder.stringExpression(stringExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + override fun stringExpression(stringExpression: IngressStringExpressionProperty) { + cdkBuilder.stringExpression(stringExpression.let(IngressStringExpressionProperty.Companion::unwrap)) + } + + /** + * @param stringExpression This represents a string based condition matching on the incoming + * mail. + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("eed509b90a5ff84be6b2fce1457f92b18aeb4724fef6b9a8193874897111a97a") + override + fun stringExpression(stringExpression: IngressStringExpressionProperty.Builder.() -> Unit): + Unit = stringExpression(IngressStringExpressionProperty(stringExpression)) + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + override fun tlsExpression(tlsExpression: IResolvable) { + cdkBuilder.tlsExpression(tlsExpression.let(IResolvable.Companion::unwrap)) + } + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + override fun tlsExpression(tlsExpression: IngressTlsProtocolExpressionProperty) { + cdkBuilder.tlsExpression(tlsExpression.let(IngressTlsProtocolExpressionProperty.Companion::unwrap)) + } + + /** + * @param tlsExpression This represents a TLS based condition matching on the incoming mail. + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1eab6780e7dbd11e445bf4d9ab9a871a2d9cec1b971ce08ca165ccfc947c7f3e") + override + fun tlsExpression(tlsExpression: IngressTlsProtocolExpressionProperty.Builder.() -> Unit): + Unit = tlsExpression(IngressTlsProtocolExpressionProperty(tlsExpression)) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty, + ) : CdkObject(cdkObject), + PolicyConditionProperty { + /** + * This represents a boolean type condition matching on the incoming mail. + * + * It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-booleanexpression) + */ + override fun booleanExpression(): Any? = unwrap(this).getBooleanExpression() + + /** + * This represents an IP based condition matching on the incoming mail. + * + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-ipexpression) + */ + override fun ipExpression(): Any? = unwrap(this).getIpExpression() + + /** + * This represents a string based condition matching on the incoming mail. + * + * It performs the string operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-stringexpression) + */ + override fun stringExpression(): Any? = unwrap(this).getStringExpression() + + /** + * This represents a TLS based condition matching on the incoming mail. + * + * It performs the operation configured in 'Operator' and evaluates the 'Protocol' object + * against the 'Value'. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policycondition.html#cfn-ses-mailmanagertrafficpolicy-policycondition-tlsexpression) + */ + override fun tlsExpression(): Any? = unwrap(this).getTlsExpression() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PolicyConditionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty): + PolicyConditionProperty = CdkObjectWrappers.wrap(cdkObject) as? PolicyConditionProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PolicyConditionProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty + } + } + + /** + * The structure containing traffic policy conditions and actions. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * PolicyStatementProperty policyStatementProperty = PolicyStatementProperty.builder() + * .action("action") + * .conditions(List.of(PolicyConditionProperty.builder() + * .booleanExpression(IngressBooleanExpressionProperty.builder() + * .evaluate(IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build()) + * .operator("operator") + * .build()) + * .ipExpression(IngressIpv4ExpressionProperty.builder() + * .evaluate(IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .stringExpression(IngressStringExpressionProperty.builder() + * .evaluate(IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .tlsExpression(IngressTlsProtocolExpressionProperty.builder() + * .evaluate(IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value("value") + * .build()) + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policystatement.html) + */ + public interface PolicyStatementProperty { + /** + * The action that informs a traffic policy resource to either allow or block the email if it + * matches a condition in the policy statement. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policystatement.html#cfn-ses-mailmanagertrafficpolicy-policystatement-action) + */ + public fun action(): String + + /** + * The list of conditions to apply to incoming messages for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policystatement.html#cfn-ses-mailmanagertrafficpolicy-policystatement-conditions) + */ + public fun conditions(): Any + + /** + * A builder for [PolicyStatementProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param action The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement. + */ + public fun action(action: String) + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + public fun conditions(conditions: IResolvable) + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + public fun conditions(conditions: List) + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + public fun conditions(vararg conditions: Any) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty.Builder + = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty.builder() + + /** + * @param action The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement. + */ + override fun action(action: String) { + cdkBuilder.action(action) + } + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + override fun conditions(conditions: IResolvable) { + cdkBuilder.conditions(conditions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + override fun conditions(conditions: List) { + cdkBuilder.conditions(conditions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param conditions The list of conditions to apply to incoming messages for filtering email + * traffic. + */ + override fun conditions(vararg conditions: Any): Unit = conditions(conditions.toList()) + + public fun build(): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty, + ) : CdkObject(cdkObject), + PolicyStatementProperty { + /** + * The action that informs a traffic policy resource to either allow or block the email if it + * matches a condition in the policy statement. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policystatement.html#cfn-ses-mailmanagertrafficpolicy-policystatement-action) + */ + override fun action(): String = unwrap(this).getAction() + + /** + * The list of conditions to apply to incoming messages for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-mailmanagertrafficpolicy-policystatement.html#cfn-ses-mailmanagertrafficpolicy-policystatement-conditions) + */ + override fun conditions(): Any = unwrap(this).getConditions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): PolicyStatementProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty): + PolicyStatementProperty = CdkObjectWrappers.wrap(cdkObject) as? PolicyStatementProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: PolicyStatementProperty): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicy.PolicyStatementProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicyProps.kt new file mode 100644 index 0000000000..f07858a4fa --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnMailManagerTrafficPolicyProps.kt @@ -0,0 +1,302 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnMailManagerTrafficPolicy`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ses.*; + * CfnMailManagerTrafficPolicyProps cfnMailManagerTrafficPolicyProps = + * CfnMailManagerTrafficPolicyProps.builder() + * .defaultAction("defaultAction") + * .policyStatements(List.of(PolicyStatementProperty.builder() + * .action("action") + * .conditions(List.of(PolicyConditionProperty.builder() + * .booleanExpression(IngressBooleanExpressionProperty.builder() + * .evaluate(IngressBooleanToEvaluateProperty.builder() + * .analysis(IngressAnalysisProperty.builder() + * .analyzer("analyzer") + * .resultField("resultField") + * .build()) + * .build()) + * .operator("operator") + * .build()) + * .ipExpression(IngressIpv4ExpressionProperty.builder() + * .evaluate(IngressIpToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .stringExpression(IngressStringExpressionProperty.builder() + * .evaluate(IngressStringToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .values(List.of("values")) + * .build()) + * .tlsExpression(IngressTlsProtocolExpressionProperty.builder() + * .evaluate(IngressTlsProtocolToEvaluateProperty.builder() + * .attribute("attribute") + * .build()) + * .operator("operator") + * .value("value") + * .build()) + * .build())) + * .build())) + * // the properties below are optional + * .maxMessageSizeBytes(123) + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .trafficPolicyName("trafficPolicyName") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html) + */ +public interface CfnMailManagerTrafficPolicyProps { + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-defaultaction) + */ + public fun defaultAction(): String + + /** + * The maximum message size in bytes of email which is allowed in by this traffic policy—anything + * larger will be blocked. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-maxmessagesizebytes) + */ + public fun maxMessageSizeBytes(): Number? = unwrap(this).getMaxMessageSizeBytes() + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + */ + public fun policyStatements(): Any + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the policy. + * + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-trafficpolicyname) + */ + public fun trafficPolicyName(): String? = unwrap(this).getTrafficPolicyName() + + /** + * A builder for [CfnMailManagerTrafficPolicyProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param defaultAction Default action instructs the traffic policy to either Allow or Deny + * (block) messages that fall outside of (or not addressed by) the conditions of your policy + * statements. + */ + public fun defaultAction(defaultAction: String) + + /** + * @param maxMessageSizeBytes The maximum message size in bytes of email which is allowed in by + * this traffic policy—anything larger will be blocked. + */ + public fun maxMessageSizeBytes(maxMessageSizeBytes: Number) + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(policyStatements: IResolvable) + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(policyStatements: List) + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + public fun policyStatements(vararg policyStatements: Any) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(tags: List) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param trafficPolicyName The name of the policy. + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + */ + public fun trafficPolicyName(trafficPolicyName: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps.Builder = + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps.builder() + + /** + * @param defaultAction Default action instructs the traffic policy to either Allow or Deny + * (block) messages that fall outside of (or not addressed by) the conditions of your policy + * statements. + */ + override fun defaultAction(defaultAction: String) { + cdkBuilder.defaultAction(defaultAction) + } + + /** + * @param maxMessageSizeBytes The maximum message size in bytes of email which is allowed in by + * this traffic policy—anything larger will be blocked. + */ + override fun maxMessageSizeBytes(maxMessageSizeBytes: Number) { + cdkBuilder.maxMessageSizeBytes(maxMessageSizeBytes) + } + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(policyStatements: IResolvable) { + cdkBuilder.policyStatements(policyStatements.let(IResolvable.Companion::unwrap)) + } + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(policyStatements: List) { + cdkBuilder.policyStatements(policyStatements.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param policyStatements Conditional statements for filtering email traffic. + */ + override fun policyStatements(vararg policyStatements: Any): Unit = + policyStatements(policyStatements.toList()) + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags used to organize, track, or control access for the resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param trafficPolicyName The name of the policy. + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + */ + override fun trafficPolicyName(trafficPolicyName: String) { + cdkBuilder.trafficPolicyName(trafficPolicyName) + } + + public fun build(): software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps, + ) : CdkObject(cdkObject), + CfnMailManagerTrafficPolicyProps { + /** + * Default action instructs the traffic policy to either Allow or Deny (block) messages that fall + * outside of (or not addressed by) the conditions of your policy statements. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-defaultaction) + */ + override fun defaultAction(): String = unwrap(this).getDefaultAction() + + /** + * The maximum message size in bytes of email which is allowed in by this traffic + * policy—anything larger will be blocked. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-maxmessagesizebytes) + */ + override fun maxMessageSizeBytes(): Number? = unwrap(this).getMaxMessageSizeBytes() + + /** + * Conditional statements for filtering email traffic. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-policystatements) + */ + override fun policyStatements(): Any = unwrap(this).getPolicyStatements() + + /** + * The tags used to organize, track, or control access for the resource. + * + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The name of the policy. + * + * The policy name cannot exceed 64 characters and can only include alphanumeric characters, + * dashes, and underscores. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-mailmanagertrafficpolicy.html#cfn-ses-mailmanagertrafficpolicy-trafficpolicyname) + */ + override fun trafficPolicyName(): String? = unwrap(this).getTrafficPolicyName() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnMailManagerTrafficPolicyProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps): + CfnMailManagerTrafficPolicyProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnMailManagerTrafficPolicyProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnMailManagerTrafficPolicyProps): + software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.ses.CfnMailManagerTrafficPolicyProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilter.kt index 1ee9b9ad6d..081bc9013f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilter.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReceiptFilter( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptFilter, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -334,7 +335,8 @@ public open class CfnReceiptFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptFilter.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * A structure that provides the IP addresses to block or allow, and whether to block or allow * incoming mail from them. @@ -466,7 +468,8 @@ public open class CfnReceiptFilter( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptFilter.IpFilterProperty, - ) : CdkObject(cdkObject), IpFilterProperty { + ) : CdkObject(cdkObject), + IpFilterProperty { /** * A single IP address or a range of IP addresses to block or allow, specified in Classless * Inter-Domain Routing (CIDR) notation. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilterProps.kt index 3acccb5cf2..e4e59e022a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptFilterProps.kt @@ -103,7 +103,8 @@ public interface CfnReceiptFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptFilterProps, - ) : CdkObject(cdkObject), CfnReceiptFilterProps { + ) : CdkObject(cdkObject), + CfnReceiptFilterProps { /** * A data structure that describes the IP address filter to create, which consists of a name, an * IP address range, and whether to allow or block mail from it. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRule.kt index 5cd5d6c09b..ba67383cdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRule.kt @@ -51,6 +51,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .s3Action(S3ActionProperty.builder() * .bucketName("bucketName") * // the properties below are optional + * .iamRoleArn("iamRoleArn") * .kmsKeyArn("kmsKeyArn") * .objectKeyPrefix("objectKeyPrefix") * .topicArn("topicArn") @@ -86,7 +87,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReceiptRule( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -353,6 +355,7 @@ public open class CfnReceiptRule( * .s3Action(S3ActionProperty.builder() * .bucketName("bucketName") * // the properties below are optional + * .iamRoleArn("iamRoleArn") * .kmsKeyArn("kmsKeyArn") * .objectKeyPrefix("objectKeyPrefix") * .topicArn("topicArn") @@ -423,7 +426,7 @@ public open class CfnReceiptRule( public fun stopAction(): Any? = unwrap(this).getStopAction() /** - * Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS. + * Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-workmailaction) */ @@ -550,19 +553,19 @@ public open class CfnReceiptRule( /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ public fun workmailAction(workmailAction: IResolvable) /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ public fun workmailAction(workmailAction: WorkmailActionProperty) /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2e6da27a29ffc59c66ab95ebaa1a29b810412f3740b2dbd633e4d4201903ad81") @@ -720,7 +723,7 @@ public open class CfnReceiptRule( /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ override fun workmailAction(workmailAction: IResolvable) { cdkBuilder.workmailAction(workmailAction.let(IResolvable.Companion::unwrap)) @@ -728,7 +731,7 @@ public open class CfnReceiptRule( /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ override fun workmailAction(workmailAction: WorkmailActionProperty) { cdkBuilder.workmailAction(workmailAction.let(WorkmailActionProperty.Companion::unwrap)) @@ -736,7 +739,7 @@ public open class CfnReceiptRule( /** * @param workmailAction Calls Amazon WorkMail and, optionally, publishes a notification to - * Amazon Amazon SNS. + * Amazon SNS. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("2e6da27a29ffc59c66ab95ebaa1a29b810412f3740b2dbd633e4d4201903ad81") @@ -749,7 +752,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Adds a header to the received email. * @@ -796,7 +800,7 @@ public open class CfnReceiptRule( override fun stopAction(): Any? = unwrap(this).getStopAction() /** - * Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS. + * Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-workmailaction) */ @@ -824,7 +828,8 @@ public open class CfnReceiptRule( * When included in a receipt rule, this action adds a header to the received email. * * For information about adding a header using a receipt rule, see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-action-add-header.html) . + * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-receipt-rules-console-walkthrough.html) + * . * * Example: * @@ -845,7 +850,7 @@ public open class CfnReceiptRule( * The name of the header to add to the incoming message. * * The name must contain at least one character, and can contain up to 50 characters. It - * consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes. + * consists of alphanumeric ( `a–z, A–Z, 0–9` ) characters and dashes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html#cfn-ses-receiptrule-addheaderaction-headername) */ @@ -869,7 +874,7 @@ public open class CfnReceiptRule( /** * @param headerName The name of the header to add to the incoming message. * The name must contain at least one character, and can contain up to 50 characters. It - * consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes. + * consists of alphanumeric ( `a–z, A–Z, 0–9` ) characters and dashes. */ public fun headerName(headerName: String) @@ -889,7 +894,7 @@ public open class CfnReceiptRule( /** * @param headerName The name of the header to add to the incoming message. * The name must contain at least one character, and can contain up to 50 characters. It - * consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes. + * consists of alphanumeric ( `a–z, A–Z, 0–9` ) characters and dashes. */ override fun headerName(headerName: String) { cdkBuilder.headerName(headerName) @@ -910,12 +915,13 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.AddHeaderActionProperty, - ) : CdkObject(cdkObject), AddHeaderActionProperty { + ) : CdkObject(cdkObject), + AddHeaderActionProperty { /** * The name of the header to add to the incoming message. * * The name must contain at least one character, and can contain up to 50 characters. It - * consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes. + * consists of alphanumeric ( `a–z, A–Z, 0–9` ) characters and dashes. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html#cfn-ses-receiptrule-addheaderaction-headername) */ @@ -1122,7 +1128,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.BounceActionProperty, - ) : CdkObject(cdkObject), BounceActionProperty { + ) : CdkObject(cdkObject), + BounceActionProperty { /** * Human-readable text to include in the bounce message. * @@ -1358,7 +1365,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.LambdaActionProperty, - ) : CdkObject(cdkObject), LambdaActionProperty { + ) : CdkObject(cdkObject), + LambdaActionProperty { /** * The Amazon Resource Name (ARN) of the AWS Lambda function. * @@ -1465,6 +1473,7 @@ public open class CfnReceiptRule( * .s3Action(S3ActionProperty.builder() * .bucketName("bucketName") * // the properties below are optional + * .iamRoleArn("iamRoleArn") * .kmsKeyArn("kmsKeyArn") * .objectKeyPrefix("objectKeyPrefix") * .topicArn("topicArn") @@ -1744,7 +1753,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * An ordered list of actions to perform on messages that match at least one of the recipient * email addresses or domains specified in the receipt rule. @@ -1834,7 +1844,7 @@ public open class CfnReceiptRule( * * * When you save your emails to an Amazon S3 bucket, the maximum email size (including headers) is - * 40 MB. Emails larger than that bounces. + * 30 MB. Emails larger than that bounces. * * * For information about specifying Amazon S3 actions in receipt rules, see the [Amazon SES @@ -1849,6 +1859,7 @@ public open class CfnReceiptRule( * S3ActionProperty s3ActionProperty = S3ActionProperty.builder() * .bucketName("bucketName") * // the properties below are optional + * .iamRoleArn("iamRoleArn") * .kmsKeyArn("kmsKeyArn") * .objectKeyPrefix("objectKeyPrefix") * .topicArn("topicArn") @@ -1866,26 +1877,47 @@ public open class CfnReceiptRule( public fun bucketName(): String /** - * The customer master key that Amazon SES should use to encrypt your emails before saving them + * The ARN of the IAM role to be used by Amazon Simple Email Service while writing to the Amazon + * S3 bucket, optionally encrypting your mail via the provided customer managed key, and publishing + * to the Amazon SNS topic. + * + * This role should have access to the following APIs: + * + * * `s3:PutObject` , `kms:Encrypt` and `kms:GenerateDataKey` for the given Amazon S3 bucket. + * * `kms:GenerateDataKey` for the given AWS KMS customer managed key. + * * `sns:Publish` for the given Amazon SNS topic. + * + * + * If an IAM role ARN is provided, the role (and only the role) is used to access all the given + * resources (Amazon S3 bucket, AWS KMS customer managed key and Amazon SNS topic). Therefore, + * setting up individual resource access permissions is not required. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-iamrolearn) + */ + public fun iamRoleArn(): String? = unwrap(this).getIamRoleArn() + + /** + * The customer managed key that Amazon SES should use to encrypt your emails before saving them * to the Amazon S3 bucket. * - * You can use the default master key or a custom master key that you created in AWS KMS as + * You can use the AWS managed key or a customer managed key that you created in AWS KMS as * follows: * - * * To use the default master key, provide an ARN in the form of + * * To use the AWS managed key, provide an ARN in the form of * `arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses` . For example, if your AWS account - * ID is 123456789012 and you want to use the default master key in the US West (Oregon) Region, - * the ARN of the default master key would be `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . - * If you use the default master key, you don't need to perform any extra steps to give Amazon SES - * permission to use the key. - * * To use a custom master key that you created in AWS KMS, provide the ARN of the master key - * and ensure that you add a statement to your key's policy to give Amazon SES permission to use - * it. For more information about giving permissions, see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . + * ID is 123456789012 and you want to use the AWS managed key in the US West (Oregon) Region, the + * ARN of the AWS managed key would be `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you + * use the AWS managed key, you don't need to perform any extra steps to give Amazon SES permission + * to use the key. + * * To use a customer managed key that you created in AWS KMS, provide the ARN of the customer + * managed key and ensure that you add a statement to your key's policy to give Amazon SES + * permission to use it. For more information about giving permissions, see the [Amazon SES + * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . * * For more information about key policies, see the [AWS KMS Developer * Guide](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) . If you do not - * specify a master key, Amazon SES does not encrypt your emails. + * specify an AWS KMS key, Amazon SES does not encrypt your emails. * * * Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail is @@ -1895,7 +1927,7 @@ public open class CfnReceiptRule( * decryption. This encryption client is currently available with the [AWS SDK for * Java](https://docs.aws.amazon.com/sdk-for-java/) and [AWS SDK for * Ruby](https://docs.aws.amazon.com/sdk-for-ruby/) only. For more information about client-side - * encryption using AWS KMS master keys, see the [Amazon S3 Developer + * encryption using AWS KMS managed keys, see the [Amazon S3 Developer * Guide](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html) . * * @@ -1938,25 +1970,42 @@ public open class CfnReceiptRule( public fun bucketName(bucketName: String) /** - * @param kmsKeyArn The customer master key that Amazon SES should use to encrypt your emails + * @param iamRoleArn The ARN of the IAM role to be used by Amazon Simple Email Service while + * writing to the Amazon S3 bucket, optionally encrypting your mail via the provided customer + * managed key, and publishing to the Amazon SNS topic. + * This role should have access to the following APIs: + * + * * `s3:PutObject` , `kms:Encrypt` and `kms:GenerateDataKey` for the given Amazon S3 bucket. + * * `kms:GenerateDataKey` for the given AWS KMS customer managed key. + * * `sns:Publish` for the given Amazon SNS topic. + * + * + * If an IAM role ARN is provided, the role (and only the role) is used to access all the + * given resources (Amazon S3 bucket, AWS KMS customer managed key and Amazon SNS topic). + * Therefore, setting up individual resource access permissions is not required. + */ + public fun iamRoleArn(iamRoleArn: String) + + /** + * @param kmsKeyArn The customer managed key that Amazon SES should use to encrypt your emails * before saving them to the Amazon S3 bucket. - * You can use the default master key or a custom master key that you created in AWS KMS as + * You can use the AWS managed key or a customer managed key that you created in AWS KMS as * follows: * - * * To use the default master key, provide an ARN in the form of + * * To use the AWS managed key, provide an ARN in the form of * `arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses` . For example, if your AWS - * account ID is 123456789012 and you want to use the default master key in the US West (Oregon) - * Region, the ARN of the default master key would be - * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the default master key, you - * don't need to perform any extra steps to give Amazon SES permission to use the key. - * * To use a custom master key that you created in AWS KMS, provide the ARN of the master key - * and ensure that you add a statement to your key's policy to give Amazon SES permission to use - * it. For more information about giving permissions, see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . + * account ID is 123456789012 and you want to use the AWS managed key in the US West (Oregon) + * Region, the ARN of the AWS managed key would be + * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the AWS managed key, you don't + * need to perform any extra steps to give Amazon SES permission to use the key. + * * To use a customer managed key that you created in AWS KMS, provide the ARN of the + * customer managed key and ensure that you add a statement to your key's policy to give Amazon + * SES permission to use it. For more information about giving permissions, see the [Amazon SES + * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . * * For more information about key policies, see the [AWS KMS Developer * Guide](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) . If you do not - * specify a master key, Amazon SES does not encrypt your emails. + * specify an AWS KMS key, Amazon SES does not encrypt your emails. * * * Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail @@ -1966,7 +2015,7 @@ public open class CfnReceiptRule( * decryption. This encryption client is currently available with the [AWS SDK for * Java](https://docs.aws.amazon.com/sdk-for-java/) and [AWS SDK for * Ruby](https://docs.aws.amazon.com/sdk-for-ruby/) only. For more information about client-side - * encryption using AWS KMS master keys, see the [Amazon S3 Developer + * encryption using AWS KMS managed keys, see the [Amazon S3 Developer * Guide](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html) . */ public fun kmsKeyArn(kmsKeyArn: String) @@ -2004,25 +2053,44 @@ public open class CfnReceiptRule( } /** - * @param kmsKeyArn The customer master key that Amazon SES should use to encrypt your emails + * @param iamRoleArn The ARN of the IAM role to be used by Amazon Simple Email Service while + * writing to the Amazon S3 bucket, optionally encrypting your mail via the provided customer + * managed key, and publishing to the Amazon SNS topic. + * This role should have access to the following APIs: + * + * * `s3:PutObject` , `kms:Encrypt` and `kms:GenerateDataKey` for the given Amazon S3 bucket. + * * `kms:GenerateDataKey` for the given AWS KMS customer managed key. + * * `sns:Publish` for the given Amazon SNS topic. + * + * + * If an IAM role ARN is provided, the role (and only the role) is used to access all the + * given resources (Amazon S3 bucket, AWS KMS customer managed key and Amazon SNS topic). + * Therefore, setting up individual resource access permissions is not required. + */ + override fun iamRoleArn(iamRoleArn: String) { + cdkBuilder.iamRoleArn(iamRoleArn) + } + + /** + * @param kmsKeyArn The customer managed key that Amazon SES should use to encrypt your emails * before saving them to the Amazon S3 bucket. - * You can use the default master key or a custom master key that you created in AWS KMS as + * You can use the AWS managed key or a customer managed key that you created in AWS KMS as * follows: * - * * To use the default master key, provide an ARN in the form of + * * To use the AWS managed key, provide an ARN in the form of * `arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses` . For example, if your AWS - * account ID is 123456789012 and you want to use the default master key in the US West (Oregon) - * Region, the ARN of the default master key would be - * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the default master key, you - * don't need to perform any extra steps to give Amazon SES permission to use the key. - * * To use a custom master key that you created in AWS KMS, provide the ARN of the master key - * and ensure that you add a statement to your key's policy to give Amazon SES permission to use - * it. For more information about giving permissions, see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . + * account ID is 123456789012 and you want to use the AWS managed key in the US West (Oregon) + * Region, the ARN of the AWS managed key would be + * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the AWS managed key, you don't + * need to perform any extra steps to give Amazon SES permission to use the key. + * * To use a customer managed key that you created in AWS KMS, provide the ARN of the + * customer managed key and ensure that you add a statement to your key's policy to give Amazon + * SES permission to use it. For more information about giving permissions, see the [Amazon SES + * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . * * For more information about key policies, see the [AWS KMS Developer * Guide](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) . If you do not - * specify a master key, Amazon SES does not encrypt your emails. + * specify an AWS KMS key, Amazon SES does not encrypt your emails. * * * Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail @@ -2032,7 +2100,7 @@ public open class CfnReceiptRule( * decryption. This encryption client is currently available with the [AWS SDK for * Java](https://docs.aws.amazon.com/sdk-for-java/) and [AWS SDK for * Ruby](https://docs.aws.amazon.com/sdk-for-ruby/) only. For more information about client-side - * encryption using AWS KMS master keys, see the [Amazon S3 Developer + * encryption using AWS KMS managed keys, see the [Amazon S3 Developer * Guide](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html) . */ override fun kmsKeyArn(kmsKeyArn: String) { @@ -2068,7 +2136,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.S3ActionProperty, - ) : CdkObject(cdkObject), S3ActionProperty { + ) : CdkObject(cdkObject), + S3ActionProperty { /** * The name of the Amazon S3 bucket for incoming email. * @@ -2077,26 +2146,47 @@ public open class CfnReceiptRule( override fun bucketName(): String = unwrap(this).getBucketName() /** - * The customer master key that Amazon SES should use to encrypt your emails before saving + * The ARN of the IAM role to be used by Amazon Simple Email Service while writing to the + * Amazon S3 bucket, optionally encrypting your mail via the provided customer managed key, and + * publishing to the Amazon SNS topic. + * + * This role should have access to the following APIs: + * + * * `s3:PutObject` , `kms:Encrypt` and `kms:GenerateDataKey` for the given Amazon S3 bucket. + * * `kms:GenerateDataKey` for the given AWS KMS customer managed key. + * * `sns:Publish` for the given Amazon SNS topic. + * + * + * If an IAM role ARN is provided, the role (and only the role) is used to access all the + * given resources (Amazon S3 bucket, AWS KMS customer managed key and Amazon SNS topic). + * Therefore, setting up individual resource access permissions is not required. + * + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-iamrolearn) + */ + override fun iamRoleArn(): String? = unwrap(this).getIamRoleArn() + + /** + * The customer managed key that Amazon SES should use to encrypt your emails before saving * them to the Amazon S3 bucket. * - * You can use the default master key or a custom master key that you created in AWS KMS as + * You can use the AWS managed key or a customer managed key that you created in AWS KMS as * follows: * - * * To use the default master key, provide an ARN in the form of + * * To use the AWS managed key, provide an ARN in the form of * `arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses` . For example, if your AWS - * account ID is 123456789012 and you want to use the default master key in the US West (Oregon) - * Region, the ARN of the default master key would be - * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the default master key, you - * don't need to perform any extra steps to give Amazon SES permission to use the key. - * * To use a custom master key that you created in AWS KMS, provide the ARN of the master key - * and ensure that you add a statement to your key's policy to give Amazon SES permission to use - * it. For more information about giving permissions, see the [Amazon SES Developer - * Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . + * account ID is 123456789012 and you want to use the AWS managed key in the US West (Oregon) + * Region, the ARN of the AWS managed key would be + * `arn:aws:kms:us-west-2:123456789012:alias/aws/ses` . If you use the AWS managed key, you don't + * need to perform any extra steps to give Amazon SES permission to use the key. + * * To use a customer managed key that you created in AWS KMS, provide the ARN of the + * customer managed key and ensure that you add a statement to your key's policy to give Amazon + * SES permission to use it. For more information about giving permissions, see the [Amazon SES + * Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html) . * * For more information about key policies, see the [AWS KMS Developer * Guide](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) . If you do not - * specify a master key, Amazon SES does not encrypt your emails. + * specify an AWS KMS key, Amazon SES does not encrypt your emails. * * * Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail @@ -2106,7 +2196,7 @@ public open class CfnReceiptRule( * decryption. This encryption client is currently available with the [AWS SDK for * Java](https://docs.aws.amazon.com/sdk-for-java/) and [AWS SDK for * Ruby](https://docs.aws.amazon.com/sdk-for-ruby/) only. For more information about client-side - * encryption using AWS KMS master keys, see the [Amazon S3 Developer + * encryption using AWS KMS managed keys, see the [Amazon S3 Developer * Guide](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html) . * * @@ -2280,7 +2370,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.SNSActionProperty, - ) : CdkObject(cdkObject), SNSActionProperty { + ) : CdkObject(cdkObject), + SNSActionProperty { /** * The encoding to use for the email within the Amazon SNS notification. * @@ -2429,7 +2520,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.StopActionProperty, - ) : CdkObject(cdkObject), StopActionProperty { + ) : CdkObject(cdkObject), + StopActionProperty { /** * The scope of the StopAction. * @@ -2607,7 +2699,8 @@ public open class CfnReceiptRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRule.WorkmailActionProperty, - ) : CdkObject(cdkObject), WorkmailActionProperty { + ) : CdkObject(cdkObject), + WorkmailActionProperty { /** * The Amazon Resource Name (ARN) of the Amazon WorkMail organization. Amazon WorkMail ARNs * use the following format:. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleProps.kt index 176830a6d7..cae6f9459a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleProps.kt @@ -44,6 +44,7 @@ import kotlin.jvm.JvmName * .s3Action(S3ActionProperty.builder() * .bucketName("bucketName") * // the properties below are optional + * .iamRoleArn("iamRoleArn") * .kmsKeyArn("kmsKeyArn") * .objectKeyPrefix("objectKeyPrefix") * .topicArn("topicArn") @@ -188,7 +189,8 @@ public interface CfnReceiptRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRuleProps, - ) : CdkObject(cdkObject), CfnReceiptRuleProps { + ) : CdkObject(cdkObject), + CfnReceiptRuleProps { /** * The name of an existing rule after which the new rule is placed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSet.kt index 4a564b3525..18475d8a7a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSet.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReceiptRuleSet( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRuleSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnReceiptRuleSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -73,12 +74,12 @@ public open class CfnReceiptRuleSet( } /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. */ public open fun ruleSetName(): String? = unwrap(this).getRuleSetName() /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. */ public open fun ruleSetName(`value`: String) { unwrap(this).setRuleSetName(`value`) @@ -90,10 +91,12 @@ public open class CfnReceiptRuleSet( @CdkDslMarker public interface Builder { /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. + * + * Setting this value to null disables all email receiving. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname) - * @param ruleSetName The name of the receipt rule set to reorder. + * @param ruleSetName The name of the receipt rule set to make active. */ public fun ruleSetName(ruleSetName: String) } @@ -106,10 +109,12 @@ public open class CfnReceiptRuleSet( software.amazon.awscdk.services.ses.CfnReceiptRuleSet.Builder.create(scope, id) /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. + * + * Setting this value to null disables all email receiving. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname) - * @param ruleSetName The name of the receipt rule set to reorder. + * @param ruleSetName The name of the receipt rule set to make active. */ override fun ruleSetName(ruleSetName: String) { cdkBuilder.ruleSetName(ruleSetName) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSetProps.kt index 8aa2f45949..3eb209ccca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnReceiptRuleSetProps.kt @@ -26,7 +26,9 @@ import kotlin.Unit */ public interface CfnReceiptRuleSetProps { /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. + * + * Setting this value to null disables all email receiving. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname) */ @@ -38,7 +40,8 @@ public interface CfnReceiptRuleSetProps { @CdkDslMarker public interface Builder { /** - * @param ruleSetName The name of the receipt rule set to reorder. + * @param ruleSetName The name of the receipt rule set to make active. + * Setting this value to null disables all email receiving. */ public fun ruleSetName(ruleSetName: String) } @@ -48,7 +51,8 @@ public interface CfnReceiptRuleSetProps { software.amazon.awscdk.services.ses.CfnReceiptRuleSetProps.builder() /** - * @param ruleSetName The name of the receipt rule set to reorder. + * @param ruleSetName The name of the receipt rule set to make active. + * Setting this value to null disables all email receiving. */ override fun ruleSetName(ruleSetName: String) { cdkBuilder.ruleSetName(ruleSetName) @@ -60,9 +64,12 @@ public interface CfnReceiptRuleSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnReceiptRuleSetProps, - ) : CdkObject(cdkObject), CfnReceiptRuleSetProps { + ) : CdkObject(cdkObject), + CfnReceiptRuleSetProps { /** - * The name of the receipt rule set to reorder. + * The name of the receipt rule set to make active. + * + * Setting this value to null disables all email receiving. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplate.kt index 96f1c71367..aaab1897b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplate.kt @@ -43,7 +43,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTemplate( cdkObject: software.amazon.awscdk.services.ses.CfnTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnTemplate(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -216,8 +217,11 @@ public open class CfnTemplate( } /** - * The content of the email, composed of a subject line and either an HTML part or a text-only - * part. + * An object that defines the email template to use for an email message, and the values to use + * for any message variables in that template. + * + * An *email template* is a type of message template that contains content that you want to + * define, save, and reuse in email messages that you send. * * Example: * @@ -254,6 +258,9 @@ public open class CfnTemplate( /** * The name of the template. * + * You will refer to this name when you send email using the `SendTemplatedEmail` or + * `SendBulkTemplatedEmail` operations. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-templatename) */ public fun templateName(): String? = unwrap(this).getTemplateName() @@ -282,6 +289,8 @@ public open class CfnTemplate( /** * @param templateName The name of the template. + * You will refer to this name when you send email using the `SendTemplatedEmail` or + * `SendBulkTemplatedEmail` operations. */ public fun templateName(templateName: String) @@ -313,6 +322,8 @@ public open class CfnTemplate( /** * @param templateName The name of the template. + * You will refer to this name when you send email using the `SendTemplatedEmail` or + * `SendBulkTemplatedEmail` operations. */ override fun templateName(templateName: String) { cdkBuilder.templateName(templateName) @@ -332,7 +343,8 @@ public open class CfnTemplate( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnTemplate.TemplateProperty, - ) : CdkObject(cdkObject), TemplateProperty { + ) : CdkObject(cdkObject), + TemplateProperty { /** * The HTML body of the email. * @@ -350,6 +362,9 @@ public open class CfnTemplate( /** * The name of the template. * + * You will refer to this name when you send email using the `SendTemplatedEmail` or + * `SendBulkTemplatedEmail` operations. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-templatename) */ override fun templateName(): String? = unwrap(this).getTemplateName() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplateProps.kt index b87d7ed1a3..b96ae479dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnTemplateProps.kt @@ -101,7 +101,8 @@ public interface CfnTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnTemplateProps, - ) : CdkObject(cdkObject), CfnTemplateProps { + ) : CdkObject(cdkObject), + CfnTemplateProps { /** * The content of the email, composed of a subject line and either an HTML part or a text-only * part. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributes.kt index d018a80f60..4ee4d016e5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributes.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnVdmAttributes( cdkObject: software.amazon.awscdk.services.ses.CfnVdmAttributes, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.CfnVdmAttributes(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -297,7 +298,8 @@ public open class CfnVdmAttributes( } /** - * Settings for your VDM configuration as applicable to the Dashboard. + * An object containing additional settings for your VDM configuration as applicable to the + * Dashboard. * * Example: * @@ -359,7 +361,8 @@ public open class CfnVdmAttributes( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnVdmAttributes.DashboardAttributesProperty, - ) : CdkObject(cdkObject), DashboardAttributesProperty { + ) : CdkObject(cdkObject), + DashboardAttributesProperty { /** * Specifies the status of your VDM engagement metrics collection. Can be one of the * following:. @@ -391,7 +394,8 @@ public open class CfnVdmAttributes( } /** - * Settings for your VDM configuration as applicable to the Guardian. + * An object containing additional settings for your VDM configuration as applicable to the + * Guardian. * * Example: * @@ -453,7 +457,8 @@ public open class CfnVdmAttributes( private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnVdmAttributes.GuardianAttributesProperty, - ) : CdkObject(cdkObject), GuardianAttributesProperty { + ) : CdkObject(cdkObject), + GuardianAttributesProperty { /** * Specifies the status of your VDM optimized shared delivery. Can be one of the following:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributesProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributesProps.kt index 3e13b52f08..0b06961c0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributesProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CfnVdmAttributesProps.kt @@ -160,7 +160,8 @@ public interface CfnVdmAttributesProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CfnVdmAttributesProps, - ) : CdkObject(cdkObject), CfnVdmAttributesProps { + ) : CdkObject(cdkObject), + CfnVdmAttributesProps { /** * Specifies additional settings for your VDM configuration as applicable to the Dashboard. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CloudWatchDimension.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CloudWatchDimension.kt index eeaf3ac341..9b2d8f661a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CloudWatchDimension.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/CloudWatchDimension.kt @@ -98,7 +98,8 @@ public interface CloudWatchDimension { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.CloudWatchDimension, - ) : CdkObject(cdkObject), CloudWatchDimension { + ) : CdkObject(cdkObject), + CloudWatchDimension { /** * The default value of the dimension that is published to Amazon CloudWatch if you do not * provide the value of the dimension when you send an email. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSet.kt index c3a6b3aa81..3209ad44e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSet.kt @@ -28,7 +28,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ConfigurationSet( cdkObject: software.amazon.awscdk.services.ses.ConfigurationSet, -) : Resource(cdkObject), IConfigurationSet { +) : Resource(cdkObject), + IConfigurationSet { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.ConfigurationSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -116,7 +117,7 @@ public open class ConfigurationSet( * Whether to publish reputation metrics for the configuration set, such as bounce and complaint * rates, to Amazon CloudWatch. * - * Default: false + * Default: true * * @param reputationMetrics Whether to publish reputation metrics for the configuration set, * such as bounce and complaint rates, to Amazon CloudWatch. @@ -153,6 +154,32 @@ public open class ConfigurationSet( * use Transport Layer Security (TLS). */ public fun tlsPolicy(tlsPolicy: ConfigurationSetTlsPolicy) + + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use + * account level settings. (To set the account level settings using CDK, use the `VdmAttributes` + * Construct.) + * + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + public fun vdmOptions(vdmOptions: VdmOptions) + + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use + * account level settings. (To set the account level settings using CDK, use the `VdmAttributes` + * Construct.) + * + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1e22393d09df982d6f0a448d030df788bf607ae094ec905346ac34cd152af619") + public fun vdmOptions(vdmOptions: VdmOptions.Builder.() -> Unit) } private class BuilderImpl( @@ -201,7 +228,7 @@ public open class ConfigurationSet( * Whether to publish reputation metrics for the configuration set, such as bounce and complaint * rates, to Amazon CloudWatch. * - * Default: false + * Default: true * * @param reputationMetrics Whether to publish reputation metrics for the configuration set, * such as bounce and complaint rates, to Amazon CloudWatch. @@ -247,6 +274,35 @@ public open class ConfigurationSet( cdkBuilder.tlsPolicy(tlsPolicy.let(ConfigurationSetTlsPolicy.Companion::unwrap)) } + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use + * account level settings. (To set the account level settings using CDK, use the `VdmAttributes` + * Construct.) + * + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + override fun vdmOptions(vdmOptions: VdmOptions) { + cdkBuilder.vdmOptions(vdmOptions.let(VdmOptions.Companion::unwrap)) + } + + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use + * account level settings. (To set the account level settings using CDK, use the `VdmAttributes` + * Construct.) + * + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1e22393d09df982d6f0a448d030df788bf607ae094ec905346ac34cd152af619") + override fun vdmOptions(vdmOptions: VdmOptions.Builder.() -> Unit): Unit = + vdmOptions(VdmOptions(vdmOptions)) + public fun build(): software.amazon.awscdk.services.ses.ConfigurationSet = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestination.kt index 8db2a64ca7..843c558ae3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestination.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ConfigurationSetEventDestination( cdkObject: software.amazon.awscdk.services.ses.ConfigurationSetEventDestination, -) : Resource(cdkObject), IConfigurationSetEventDestination { +) : Resource(cdkObject), + IConfigurationSetEventDestination { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationOptions.kt index 38f5414fe2..44760bfe58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationOptions.kt @@ -130,7 +130,8 @@ public interface ConfigurationSetEventDestinationOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ConfigurationSetEventDestinationOptions, - ) : CdkObject(cdkObject), ConfigurationSetEventDestinationOptions { + ) : CdkObject(cdkObject), + ConfigurationSetEventDestinationOptions { /** * A name for the configuration set event destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationProps.kt index 202e883ecf..f8010f46b1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetEventDestinationProps.kt @@ -128,7 +128,8 @@ public interface ConfigurationSetEventDestinationProps : ConfigurationSetEventDe private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ConfigurationSetEventDestinationProps, - ) : CdkObject(cdkObject), ConfigurationSetEventDestinationProps { + ) : CdkObject(cdkObject), + ConfigurationSetEventDestinationProps { /** * The configuration set that contains the event destination. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetProps.kt index 1a62abd0e5..7181e42f69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ConfigurationSetProps.kt @@ -8,6 +8,7 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Boolean import kotlin.String import kotlin.Unit +import kotlin.jvm.JvmName /** * Properties for a configuration set. @@ -53,7 +54,7 @@ public interface ConfigurationSetProps { * Whether to publish reputation metrics for the configuration set, such as bounce and complaint * rates, to Amazon CloudWatch. * - * Default: false + * Default: true */ public fun reputationMetrics(): Boolean? = unwrap(this).getReputationMetrics() @@ -82,6 +83,14 @@ public interface ConfigurationSetProps { public fun tlsPolicy(): ConfigurationSetTlsPolicy? = unwrap(this).getTlsPolicy()?.let(ConfigurationSetTlsPolicy::wrap) + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use account + * level settings. (To set the account level settings using CDK, use the `VdmAttributes` Construct.) + */ + public fun vdmOptions(): VdmOptions? = unwrap(this).getVdmOptions()?.let(VdmOptions::wrap) + /** * A builder for [ConfigurationSetProps] */ @@ -125,6 +134,20 @@ public interface ConfigurationSetProps { * use Transport Layer Security (TLS). */ public fun tlsPolicy(tlsPolicy: ConfigurationSetTlsPolicy) + + /** + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + public fun vdmOptions(vdmOptions: VdmOptions) + + /** + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1f76a9207ec6cc886f1001b778f6a3c9ef2329f2daf5cb599cb2fdb2772be574") + public fun vdmOptions(vdmOptions: VdmOptions.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -184,13 +207,31 @@ public interface ConfigurationSetProps { cdkBuilder.tlsPolicy(tlsPolicy.let(ConfigurationSetTlsPolicy.Companion::unwrap)) } + /** + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + override fun vdmOptions(vdmOptions: VdmOptions) { + cdkBuilder.vdmOptions(vdmOptions.let(VdmOptions.Companion::unwrap)) + } + + /** + * @param vdmOptions The Virtual Deliverability Manager (VDM) options that apply to the + * configuration set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("1f76a9207ec6cc886f1001b778f6a3c9ef2329f2daf5cb599cb2fdb2772be574") + override fun vdmOptions(vdmOptions: VdmOptions.Builder.() -> Unit): Unit = + vdmOptions(VdmOptions(vdmOptions)) + public fun build(): software.amazon.awscdk.services.ses.ConfigurationSetProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ConfigurationSetProps, - ) : CdkObject(cdkObject), ConfigurationSetProps { + ) : CdkObject(cdkObject), + ConfigurationSetProps { /** * A name for the configuration set. * @@ -219,7 +260,7 @@ public interface ConfigurationSetProps { * Whether to publish reputation metrics for the configuration set, such as bounce and complaint * rates, to Amazon CloudWatch. * - * Default: false + * Default: true */ override fun reputationMetrics(): Boolean? = unwrap(this).getReputationMetrics() @@ -247,6 +288,15 @@ public interface ConfigurationSetProps { */ override fun tlsPolicy(): ConfigurationSetTlsPolicy? = unwrap(this).getTlsPolicy()?.let(ConfigurationSetTlsPolicy::wrap) + + /** + * The Virtual Deliverability Manager (VDM) options that apply to the configuration set. + * + * Default: - VDM options not configured at the configuration set level. In this case, use + * account level settings. (To set the account level settings using CDK, use the `VdmAttributes` + * Construct.) + */ + override fun vdmOptions(): VdmOptions? = unwrap(this).getVdmOptions()?.let(VdmOptions::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPool.kt index 6493bec83e..86eadabbbd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPool.kt @@ -23,7 +23,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class DedicatedIpPool( cdkObject: software.amazon.awscdk.services.ses.DedicatedIpPool, -) : Resource(cdkObject), IDedicatedIpPool { +) : Resource(cdkObject), + IDedicatedIpPool { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.DedicatedIpPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPoolProps.kt index 9c4ed06f56..b52c7fb7c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPoolProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DedicatedIpPoolProps.kt @@ -95,7 +95,8 @@ public interface DedicatedIpPoolProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.DedicatedIpPoolProps, - ) : CdkObject(cdkObject), DedicatedIpPoolProps { + ) : CdkObject(cdkObject), + DedicatedIpPoolProps { /** * A name for the dedicated IP pool. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimIdentityConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimIdentityConfig.kt index 7418bec13b..291d376673 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimIdentityConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimIdentityConfig.kt @@ -107,7 +107,8 @@ public interface DkimIdentityConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.DkimIdentityConfig, - ) : CdkObject(cdkObject), DkimIdentityConfig { + ) : CdkObject(cdkObject), + DkimIdentityConfig { /** * A private key that's used to generate a DKIM signature. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimRecord.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimRecord.kt index d11d9f85a0..c9b2999faa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimRecord.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DkimRecord.kt @@ -73,7 +73,8 @@ public interface DkimRecord { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.DkimRecord, - ) : CdkObject(cdkObject), DkimRecord { + ) : CdkObject(cdkObject), + DkimRecord { /** * The name of the record. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DropSpamReceiptRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DropSpamReceiptRuleProps.kt index 4f0543fcee..08f79e9104 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DropSpamReceiptRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/DropSpamReceiptRuleProps.kt @@ -172,7 +172,8 @@ public interface DropSpamReceiptRuleProps : ReceiptRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.DropSpamReceiptRuleProps, - ) : CdkObject(cdkObject), DropSpamReceiptRuleProps { + ) : CdkObject(cdkObject), + DropSpamReceiptRuleProps { /** * An ordered list of actions to perform on messages that match at least one of the recipient * email addresses or domains specified in the receipt rule. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentity.kt index bd1e9151f2..60ed7f8276 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentity.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EmailIdentity( cdkObject: software.amazon.awscdk.services.ses.EmailIdentity, -) : Resource(cdkObject), IEmailIdentity { +) : Resource(cdkObject), + IEmailIdentity { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentityProps.kt index 9d8d96c644..aab26b4b7f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/EmailIdentityProps.kt @@ -224,7 +224,8 @@ public interface EmailIdentityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.EmailIdentityProps, - ) : CdkObject(cdkObject), EmailIdentityProps { + ) : CdkObject(cdkObject), + EmailIdentityProps { /** * The configuration set to associate with the email identity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSet.kt index 4493161029..0ed9f209d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSet.kt @@ -22,7 +22,8 @@ public interface IConfigurationSet : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IConfigurationSet, - ) : CdkObject(cdkObject), IConfigurationSet { + ) : CdkObject(cdkObject), + IConfigurationSet { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSetEventDestination.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSetEventDestination.kt index 4a06896111..0b634d6644 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSetEventDestination.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IConfigurationSetEventDestination.kt @@ -22,7 +22,8 @@ public interface IConfigurationSetEventDestination : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IConfigurationSetEventDestination, - ) : CdkObject(cdkObject), IConfigurationSetEventDestination { + ) : CdkObject(cdkObject), + IConfigurationSetEventDestination { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IDedicatedIpPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IDedicatedIpPool.kt index b42ac62e58..e6c1141ef1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IDedicatedIpPool.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IDedicatedIpPool.kt @@ -22,7 +22,8 @@ public interface IDedicatedIpPool : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IDedicatedIpPool, - ) : CdkObject(cdkObject), IDedicatedIpPool { + ) : CdkObject(cdkObject), + IDedicatedIpPool { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IEmailIdentity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IEmailIdentity.kt index 4eea2e7e72..8909d7ddb7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IEmailIdentity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IEmailIdentity.kt @@ -46,7 +46,8 @@ public interface IEmailIdentity : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IEmailIdentity, - ) : CdkObject(cdkObject), IEmailIdentity { + ) : CdkObject(cdkObject), + IEmailIdentity { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRule.kt index cc04f776a2..cdbc4de2a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRule.kt @@ -22,7 +22,8 @@ public interface IReceiptRule : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IReceiptRule, - ) : CdkObject(cdkObject), IReceiptRule { + ) : CdkObject(cdkObject), + IReceiptRule { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleAction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleAction.kt index fb238e87f3..d57861d406 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleAction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleAction.kt @@ -18,7 +18,8 @@ public interface IReceiptRuleAction { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IReceiptRuleAction, - ) : CdkObject(cdkObject), IReceiptRuleAction { + ) : CdkObject(cdkObject), + IReceiptRuleAction { /** * Returns the receipt rule action specification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleSet.kt index 70679df9dc..3883cd01e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IReceiptRuleSet.kt @@ -59,7 +59,8 @@ public interface IReceiptRuleSet : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IReceiptRuleSet, - ) : CdkObject(cdkObject), IReceiptRuleSet { + ) : CdkObject(cdkObject), + IReceiptRuleSet { /** * Adds a new receipt rule in this rule set. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IVdmAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IVdmAttributes.kt index 86c6ff2fab..7dc21300d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IVdmAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/IVdmAttributes.kt @@ -22,7 +22,8 @@ public interface IVdmAttributes : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.IVdmAttributes, - ) : CdkObject(cdkObject), IVdmAttributes { + ) : CdkObject(cdkObject), + IVdmAttributes { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/LambdaActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/LambdaActionConfig.kt index 7b2a43768b..2ec298454b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/LambdaActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/LambdaActionConfig.kt @@ -99,7 +99,8 @@ public interface LambdaActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.LambdaActionConfig, - ) : CdkObject(cdkObject), LambdaActionConfig { + ) : CdkObject(cdkObject), + LambdaActionConfig { /** * The Amazon Resource Name (ARN) of the AWS Lambda function. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptFilterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptFilterProps.kt index d538807129..e3788ea8dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptFilterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptFilterProps.kt @@ -93,7 +93,8 @@ public interface ReceiptFilterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ReceiptFilterProps, - ) : CdkObject(cdkObject), ReceiptFilterProps { + ) : CdkObject(cdkObject), + ReceiptFilterProps { /** * The ip address or range to filter. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRule.kt index 7ac6fcb5da..d848fe5730 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRule.kt @@ -25,7 +25,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ReceiptRule( cdkObject: software.amazon.awscdk.services.ses.ReceiptRule, -) : Resource(cdkObject), IReceiptRule { +) : Resource(cdkObject), + IReceiptRule { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleActionConfig.kt index 13fa76706d..977deb9fd8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleActionConfig.kt @@ -329,7 +329,8 @@ public interface ReceiptRuleActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ReceiptRuleActionConfig, - ) : CdkObject(cdkObject), ReceiptRuleActionConfig { + ) : CdkObject(cdkObject), + ReceiptRuleActionConfig { /** * Adds a header to the received email. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleOptions.kt index 12d483f918..16eb932ab7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleOptions.kt @@ -200,7 +200,8 @@ public interface ReceiptRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ReceiptRuleOptions, - ) : CdkObject(cdkObject), ReceiptRuleOptions { + ) : CdkObject(cdkObject), + ReceiptRuleOptions { /** * An ordered list of actions to perform on messages that match at least one of the recipient * email addresses or domains specified in the receipt rule. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleProps.kt index 04d834a533..9db4572f24 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleProps.kt @@ -178,7 +178,8 @@ public interface ReceiptRuleProps : ReceiptRuleOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ReceiptRuleProps, - ) : CdkObject(cdkObject), ReceiptRuleProps { + ) : CdkObject(cdkObject), + ReceiptRuleProps { /** * An ordered list of actions to perform on messages that match at least one of the recipient * email addresses or domains specified in the receipt rule. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSet.kt index 7489938fc2..85c72350ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSet.kt @@ -26,7 +26,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class ReceiptRuleSet( cdkObject: software.amazon.awscdk.services.ses.ReceiptRuleSet, -) : Resource(cdkObject), IReceiptRuleSet { +) : Resource(cdkObject), + IReceiptRuleSet { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.ReceiptRuleSet(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSetProps.kt index ac9e288e55..8d01b51cae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/ReceiptRuleSetProps.kt @@ -16,30 +16,15 @@ import kotlin.collections.List * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.s3.*; - * import io.cloudshiftdev.awscdk.services.ses.actions.*; - * Bucket bucket = new Bucket(this, "Bucket"); - * Topic topic = new Topic(this, "Topic"); - * ReceiptRuleSet.Builder.create(this, "RuleSet") - * .rules(List.of(ReceiptRuleOptions.builder() - * .recipients(List.of("hello@aws.com")) - * .actions(List.of( - * AddHeader.Builder.create() - * .name("X-Special-Header") - * .value("aws") - * .build(), - * S3.Builder.create() - * .bucket(bucket) - * .objectKeyPrefix("emails/") - * .topic(topic) - * .build())) - * .build(), ReceiptRuleOptions.builder() - * .recipients(List.of("aws.com")) - * .actions(List.of( - * Sns.Builder.create() - * .topic(topic) - * .build())) - * .build())) + * import io.cloudshiftdev.awscdk.*; + * import io.cloudshiftdev.awscdk.services.ses.*; + * import io.cloudshiftdev.awscdk.customresources.CustomResourceConfig; + * App app = new App(); + * Stack stack = new Stack(app, "Stack"); + * CustomResourceConfig.of(app).addLogRetentionLifetime(RetentionDays.TEN_YEARS); + * CustomResourceConfig.of(app).addRemovalPolicy(RemovalPolicy.DESTROY); + * ReceiptRuleSet.Builder.create(app, "RuleSet") + * .dropSpam(true) * .build(); * ``` */ @@ -140,7 +125,8 @@ public interface ReceiptRuleSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.ReceiptRuleSetProps, - ) : CdkObject(cdkObject), ReceiptRuleSetProps { + ) : CdkObject(cdkObject), + ReceiptRuleSetProps { /** * Whether to add a first rule to stop processing messages that have at least one spam * indicator. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/S3ActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/S3ActionConfig.kt index ee761227c1..57e42f94ba 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/S3ActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/S3ActionConfig.kt @@ -121,7 +121,8 @@ public interface S3ActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.S3ActionConfig, - ) : CdkObject(cdkObject), S3ActionConfig { + ) : CdkObject(cdkObject), + S3ActionConfig { /** * The name of the Amazon S3 bucket that you want to send incoming mail to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/SNSActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/SNSActionConfig.kt index 3cb26f8807..d5aac9382d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/SNSActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/SNSActionConfig.kt @@ -77,7 +77,8 @@ public interface SNSActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.SNSActionConfig, - ) : CdkObject(cdkObject), SNSActionConfig { + ) : CdkObject(cdkObject), + SNSActionConfig { /** * The encoding to use for the email within the Amazon SNS notification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/StopActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/StopActionConfig.kt index 0698184d76..a76a6e5972 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/StopActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/StopActionConfig.kt @@ -82,7 +82,8 @@ public interface StopActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.StopActionConfig, - ) : CdkObject(cdkObject), StopActionConfig { + ) : CdkObject(cdkObject), + StopActionConfig { /** * The scope of the StopAction. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributes.kt index 4b9fee5acb..f9efb06637 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributes.kt @@ -23,7 +23,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class VdmAttributes( cdkObject: software.amazon.awscdk.services.ses.VdmAttributes, -) : Resource(cdkObject), IVdmAttributes { +) : Resource(cdkObject), + IVdmAttributes { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.ses.VdmAttributes(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributesProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributesProps.kt index 5f667aa2ed..ee96cab28d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributesProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmAttributesProps.kt @@ -77,7 +77,8 @@ public interface VdmAttributesProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.VdmAttributesProps, - ) : CdkObject(cdkObject), VdmAttributesProps { + ) : CdkObject(cdkObject), + VdmAttributesProps { /** * Whether engagement metrics are enabled for your account. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmOptions.kt new file mode 100644 index 0000000000..d35aeaef5a --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/VdmOptions.kt @@ -0,0 +1,115 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ses + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Boolean +import kotlin.Unit + +/** + * Properties for the Virtual Deliverability Manager (VDM) options that apply to the configuration + * set. + * + * Example: + * + * ``` + * ConfigurationSet.Builder.create(this, "ConfigurationSetWithVdmOptions") + * .vdmOptions(VdmOptions.builder() + * .engagementMetrics(true) + * .optimizedSharedDelivery(true) + * .build()) + * .build(); + * ``` + */ +public interface VdmOptions { + /** + * If true, engagement metrics are enabled for the configuration set. + * + * Default: - Engagement metrics not configured at the configuration set level. In this case, use + * account level settings. + */ + public fun engagementMetrics(): Boolean? = unwrap(this).getEngagementMetrics() + + /** + * If true, optimized shared delivery is enabled for the configuration set. + * + * Default: - Optimized shared delivery not configured at the configuration set level. In this + * case, use account level settings. + */ + public fun optimizedSharedDelivery(): Boolean? = unwrap(this).getOptimizedSharedDelivery() + + /** + * A builder for [VdmOptions] + */ + @CdkDslMarker + public interface Builder { + /** + * @param engagementMetrics If true, engagement metrics are enabled for the configuration set. + */ + public fun engagementMetrics(engagementMetrics: Boolean) + + /** + * @param optimizedSharedDelivery If true, optimized shared delivery is enabled for the + * configuration set. + */ + public fun optimizedSharedDelivery(optimizedSharedDelivery: Boolean) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.ses.VdmOptions.Builder = + software.amazon.awscdk.services.ses.VdmOptions.builder() + + /** + * @param engagementMetrics If true, engagement metrics are enabled for the configuration set. + */ + override fun engagementMetrics(engagementMetrics: Boolean) { + cdkBuilder.engagementMetrics(engagementMetrics) + } + + /** + * @param optimizedSharedDelivery If true, optimized shared delivery is enabled for the + * configuration set. + */ + override fun optimizedSharedDelivery(optimizedSharedDelivery: Boolean) { + cdkBuilder.optimizedSharedDelivery(optimizedSharedDelivery) + } + + public fun build(): software.amazon.awscdk.services.ses.VdmOptions = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ses.VdmOptions, + ) : CdkObject(cdkObject), + VdmOptions { + /** + * If true, engagement metrics are enabled for the configuration set. + * + * Default: - Engagement metrics not configured at the configuration set level. In this case, + * use account level settings. + */ + override fun engagementMetrics(): Boolean? = unwrap(this).getEngagementMetrics() + + /** + * If true, optimized shared delivery is enabled for the configuration set. + * + * Default: - Optimized shared delivery not configured at the configuration set level. In this + * case, use account level settings. + */ + override fun optimizedSharedDelivery(): Boolean? = unwrap(this).getOptimizedSharedDelivery() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): VdmOptions { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.ses.VdmOptions): VdmOptions = + CdkObjectWrappers.wrap(cdkObject) as? VdmOptions ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: VdmOptions): software.amazon.awscdk.services.ses.VdmOptions = + (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.ses.VdmOptions + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/WorkmailActionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/WorkmailActionConfig.kt index e86dba46f8..debbe47b9b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/WorkmailActionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/WorkmailActionConfig.kt @@ -80,7 +80,8 @@ public interface WorkmailActionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.WorkmailActionConfig, - ) : CdkObject(cdkObject), WorkmailActionConfig { + ) : CdkObject(cdkObject), + WorkmailActionConfig { /** * The Amazon Resource Name (ARN) of the Amazon WorkMail organization. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeader.kt index 007a7a891b..430dba1b2f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeader.kt @@ -45,7 +45,8 @@ import kotlin.Unit */ public open class AddHeader( cdkObject: software.amazon.awscdk.services.ses.actions.AddHeader, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: AddHeaderProps) : this(software.amazon.awscdk.services.ses.actions.AddHeader(props.let(AddHeaderProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeaderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeaderProps.kt index 414df795ac..53ff149c5e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeaderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/AddHeaderProps.kt @@ -109,7 +109,8 @@ public interface AddHeaderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.AddHeaderProps, - ) : CdkObject(cdkObject), AddHeaderProps { + ) : CdkObject(cdkObject), + AddHeaderProps { /** * The name of the header to add. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Bounce.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Bounce.kt index 4e9f69e56d..30127c5cdf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Bounce.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Bounce.kt @@ -35,7 +35,8 @@ import kotlin.jvm.JvmName */ public open class Bounce( cdkObject: software.amazon.awscdk.services.ses.actions.Bounce, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: BounceProps) : this(software.amazon.awscdk.services.ses.actions.Bounce(props.let(BounceProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceProps.kt index 4967ebbac6..0c9037bea2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceProps.kt @@ -121,7 +121,8 @@ public interface BounceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.BounceProps, - ) : CdkObject(cdkObject), BounceProps { + ) : CdkObject(cdkObject), + BounceProps { /** * The email address of the sender of the bounced email. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceTemplateProps.kt index b7306b6e58..17de5a4243 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/BounceTemplateProps.kt @@ -97,7 +97,8 @@ public interface BounceTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.BounceTemplateProps, - ) : CdkObject(cdkObject), BounceTemplateProps { + ) : CdkObject(cdkObject), + BounceTemplateProps { /** * Human-readable text to include in the bounce message. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Lambda.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Lambda.kt index 6d1a34648d..f9c129effd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Lambda.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Lambda.kt @@ -34,7 +34,8 @@ import kotlin.Unit */ public open class Lambda( cdkObject: software.amazon.awscdk.services.ses.actions.Lambda, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: LambdaProps) : this(software.amazon.awscdk.services.ses.actions.Lambda(props.let(LambdaProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/LambdaProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/LambdaProps.kt index 8aaa1166d7..605c4783fb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/LambdaProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/LambdaProps.kt @@ -102,7 +102,8 @@ public interface LambdaProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.LambdaProps, - ) : CdkObject(cdkObject), LambdaProps { + ) : CdkObject(cdkObject), + LambdaProps { /** * The Lambda function to invoke. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3.kt index 407d2fd269..ee325f6279 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3.kt @@ -49,7 +49,8 @@ import kotlin.Unit */ public open class S3( cdkObject: software.amazon.awscdk.services.ses.actions.S3, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: S3Props) : this(software.amazon.awscdk.services.ses.actions.S3(props.let(S3Props.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3Props.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3Props.kt index ed6805239e..c1b83913ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3Props.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/S3Props.kt @@ -136,7 +136,8 @@ public interface S3Props { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.S3Props, - ) : CdkObject(cdkObject), S3Props { + ) : CdkObject(cdkObject), + S3Props { /** * The S3 bucket that incoming email will be saved to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Sns.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Sns.kt index 0eaac64619..44607b86bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Sns.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Sns.kt @@ -45,7 +45,8 @@ import kotlin.Unit */ public open class Sns( cdkObject: software.amazon.awscdk.services.ses.actions.Sns, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: SnsProps) : this(software.amazon.awscdk.services.ses.actions.Sns(props.let(SnsProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/SnsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/SnsProps.kt index 0cb11c4783..6f20778add 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/SnsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/SnsProps.kt @@ -93,7 +93,8 @@ public interface SnsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.SnsProps, - ) : CdkObject(cdkObject), SnsProps { + ) : CdkObject(cdkObject), + SnsProps { /** * The encoding to use for the email within the Amazon SNS notification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Stop.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Stop.kt index 0947d9bb7e..a48ab84f8c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Stop.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/Stop.kt @@ -29,7 +29,8 @@ import kotlin.Unit */ public open class Stop( cdkObject: software.amazon.awscdk.services.ses.actions.Stop, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor() : this(software.amazon.awscdk.services.ses.actions.Stop() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/StopProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/StopProps.kt index b67a14fa5b..29f96d5abd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/StopProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/StopProps.kt @@ -57,7 +57,8 @@ public interface StopProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.StopProps, - ) : CdkObject(cdkObject), StopProps { + ) : CdkObject(cdkObject), + StopProps { /** * The SNS topic to notify when the stop action is taken. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMail.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMail.kt index ecc0066dcf..3a0ec6aa8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMail.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMail.kt @@ -38,7 +38,8 @@ import kotlin.Unit */ public open class WorkMail( cdkObject: software.amazon.awscdk.services.ses.actions.WorkMail, -) : CdkObject(cdkObject), IReceiptRuleAction { +) : CdkObject(cdkObject), + IReceiptRuleAction { public constructor(props: WorkMailProps) : this(software.amazon.awscdk.services.ses.actions.WorkMail(props.let(WorkMailProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMailProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMailProps.kt index bbfe876ec2..f35a6579aa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMailProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ses/actions/WorkMailProps.kt @@ -93,7 +93,8 @@ public interface WorkMailProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ses.actions.WorkMailProps, - ) : CdkObject(cdkObject), WorkMailProps { + ) : CdkObject(cdkObject), + WorkMailProps { /** * The WorkMail organization ARN. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccess.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccess.kt index ae051f57a9..c7619d1db8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccess.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccess.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDRTAccess( cdkObject: software.amazon.awscdk.services.shield.CfnDRTAccess, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccessProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccessProps.kt index da3109428b..cada198010 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccessProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnDRTAccessProps.kt @@ -224,7 +224,8 @@ public interface CfnDRTAccessProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnDRTAccessProps, - ) : CdkObject(cdkObject), CfnDRTAccessProps { + ) : CdkObject(cdkObject), + CfnDRTAccessProps { /** * Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing * log data such as Application Load Balancer access logs, CloudFront logs, or logs from third diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagement.kt index b69231354c..429771cd54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagement.kt @@ -69,7 +69,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProactiveEngagement( cdkObject: software.amazon.awscdk.services.shield.CfnProactiveEngagement, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -465,7 +466,8 @@ public open class CfnProactiveEngagement( private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProactiveEngagement.EmergencyContactProperty, - ) : CdkObject(cdkObject), EmergencyContactProperty { + ) : CdkObject(cdkObject), + EmergencyContactProperty { /** * Additional notes regarding the contact. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagementProps.kt index 6fba6e3f08..28563e45d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProactiveEngagementProps.kt @@ -228,7 +228,8 @@ public interface CfnProactiveEngagementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProactiveEngagementProps, - ) : CdkObject(cdkObject), CfnProactiveEngagementProps { + ) : CdkObject(cdkObject), + CfnProactiveEngagementProps { /** * The list of email addresses and phone numbers that the Shield Response Team (SRT) can use to * contact you for escalations to the SRT and to initiate proactive customer support, plus any diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtection.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtection.kt index 38c8b42ec2..6c4bdb4923 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtection.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtection.kt @@ -94,7 +94,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProtection( cdkObject: software.amazon.awscdk.services.shield.CfnProtection, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -676,7 +678,8 @@ public open class CfnProtection( private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProtection.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF `Block` * action. @@ -878,7 +881,8 @@ public open class CfnProtection( private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProtection.ApplicationLayerAutomaticResponseConfigurationProperty, - ) : CdkObject(cdkObject), ApplicationLayerAutomaticResponseConfigurationProperty { + ) : CdkObject(cdkObject), + ApplicationLayerAutomaticResponseConfigurationProperty { /** * Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it * creates on behalf of the protected resource in response to DDoS attacks. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroup.kt index 745be80938..01526585eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroup.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProtectionGroup( cdkObject: software.amazon.awscdk.services.shield.CfnProtectionGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroupProps.kt index 1fcada50fa..bf529abfe6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionGroupProps.kt @@ -268,7 +268,8 @@ public interface CfnProtectionGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProtectionGroupProps, - ) : CdkObject(cdkObject), CfnProtectionGroupProps { + ) : CdkObject(cdkObject), + CfnProtectionGroupProps { /** * Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and * report events. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionProps.kt index f00332585b..349db1f5f7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/shield/CfnProtectionProps.kt @@ -344,7 +344,8 @@ public interface CfnProtectionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.shield.CfnProtectionProps, - ) : CdkObject(cdkObject), CfnProtectionProps { + ) : CdkObject(cdkObject), + CfnProtectionProps { /** * The automatic application layer DDoS mitigation settings for the protection. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermission.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermission.kt index c42b1c8704..9e5ffbc748 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermission.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermission.kt @@ -35,7 +35,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfilePermission( cdkObject: software.amazon.awscdk.services.signer.CfnProfilePermission, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermissionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermissionProps.kt index c48ff9d3f1..2b0ed28916 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermissionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnProfilePermissionProps.kt @@ -145,7 +145,8 @@ public interface CfnProfilePermissionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.CfnProfilePermissionProps, - ) : CdkObject(cdkObject), CfnProfilePermissionProps { + ) : CdkObject(cdkObject), + CfnProfilePermissionProps { /** * The AWS Signer action permitted as part of cross-account permissions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfile.kt index a83087baf4..ca8ad5c8e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfile.kt @@ -37,6 +37,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * "MyCfnSigningProfile") * .platformId("platformId") * // the properties below are optional + * .profileName("profileName") * .signatureValidityPeriod(SignatureValidityPeriodProperty.builder() * .type("type") * .value(123) @@ -52,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSigningProfile( cdkObject: software.amazon.awscdk.services.signer.CfnSigningProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -110,6 +113,18 @@ public open class CfnSigningProfile( unwrap(this).setPlatformId(`value`) } + /** + * The name of the signing profile. + */ + public open fun profileName(): String? = unwrap(this).getProfileName() + + /** + * The name of the signing profile. + */ + public open fun profileName(`value`: String) { + unwrap(this).setProfileName(`value`) + } + /** * The validity period override for any signature generated using this signing profile. */ @@ -174,6 +189,14 @@ public open class CfnSigningProfile( */ public fun platformId(platformId: String) + /** + * The name of the signing profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-profilename) + * @param profileName The name of the signing profile. + */ + public fun profileName(profileName: String) + /** * The validity period override for any signature generated using this signing profile. * @@ -244,6 +267,16 @@ public open class CfnSigningProfile( cdkBuilder.platformId(platformId) } + /** + * The name of the signing profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-profilename) + * @param profileName The name of the signing profile. + */ + override fun profileName(profileName: String) { + cdkBuilder.profileName(profileName) + } + /** * The validity period override for any signature generated using this signing profile. * @@ -404,7 +437,8 @@ public open class CfnSigningProfile( private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.CfnSigningProfile.SignatureValidityPeriodProperty, - ) : CdkObject(cdkObject), SignatureValidityPeriodProperty { + ) : CdkObject(cdkObject), + SignatureValidityPeriodProperty { /** * The time unit for signature validity: DAYS | MONTHS | YEARS. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfileProps.kt index 595e3a0c96..5f0a3e1bf4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/CfnSigningProfileProps.kt @@ -25,6 +25,7 @@ import kotlin.jvm.JvmName * CfnSigningProfileProps cfnSigningProfileProps = CfnSigningProfileProps.builder() * .platformId("platformId") * // the properties below are optional + * .profileName("profileName") * .signatureValidityPeriod(SignatureValidityPeriodProperty.builder() * .type("type") * .value(123) @@ -46,6 +47,13 @@ public interface CfnSigningProfileProps { */ public fun platformId(): String + /** + * The name of the signing profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-profilename) + */ + public fun profileName(): String? = unwrap(this).getProfileName() + /** * The validity period override for any signature generated using this signing profile. * @@ -72,6 +80,11 @@ public interface CfnSigningProfileProps { */ public fun platformId(platformId: String) + /** + * @param profileName The name of the signing profile. + */ + public fun profileName(profileName: String) + /** * @param signatureValidityPeriod The validity period override for any signature generated using * this signing profile. @@ -119,6 +132,13 @@ public interface CfnSigningProfileProps { cdkBuilder.platformId(platformId) } + /** + * @param profileName The name of the signing profile. + */ + override fun profileName(profileName: String) { + cdkBuilder.profileName(profileName) + } + /** * @param signatureValidityPeriod The validity period override for any signature generated using * this signing profile. @@ -168,7 +188,8 @@ public interface CfnSigningProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.CfnSigningProfileProps, - ) : CdkObject(cdkObject), CfnSigningProfileProps { + ) : CdkObject(cdkObject), + CfnSigningProfileProps { /** * The ID of a platform that is available for use by a signing profile. * @@ -176,6 +197,13 @@ public interface CfnSigningProfileProps { */ override fun platformId(): String = unwrap(this).getPlatformId() + /** + * The name of the signing profile. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-profilename) + */ + override fun profileName(): String? = unwrap(this).getProfileName() + /** * The validity period override for any signature generated using this signing profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/ISigningProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/ISigningProfile.kt index d010a7808c..1e4f78fdb4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/ISigningProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/ISigningProfile.kt @@ -37,7 +37,8 @@ public interface ISigningProfile : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.ISigningProfile, - ) : CdkObject(cdkObject), ISigningProfile { + ) : CdkObject(cdkObject), + ISigningProfile { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfile.kt index e8533a9335..830e91dae8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfile.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SigningProfile( cdkObject: software.amazon.awscdk.services.signer.SigningProfile, -) : Resource(cdkObject), ISigningProfile { +) : Resource(cdkObject), + ISigningProfile { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileAttributes.kt index 1a16f34030..762b6b22eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileAttributes.kt @@ -74,7 +74,8 @@ public interface SigningProfileAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.SigningProfileAttributes, - ) : CdkObject(cdkObject), SigningProfileAttributes { + ) : CdkObject(cdkObject), + SigningProfileAttributes { /** * The name of signing profile. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileProps.kt index 93ac3ecd1f..d42f55e4bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/signer/SigningProfileProps.kt @@ -107,7 +107,8 @@ public interface SigningProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.signer.SigningProfileProps, - ) : CdkObject(cdkObject), SigningProfileProps { + ) : CdkObject(cdkObject), + SigningProfileProps { /** * The Signing Platform available for signing profile. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulation.kt index 9ff66fc397..649e788b33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulation.kt @@ -63,7 +63,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSimulation( cdkObject: software.amazon.awscdk.services.simspaceweaver.CfnSimulation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -553,7 +554,7 @@ public open class CfnSimulation( public fun bucketName(): String /** - * The key name of an object in Amazon S3 . + * The key name of an object in Amazon S3. * * For more information about Amazon S3 objects and object keys, see [Uploading, downloading, * and working with objects in Amazon @@ -578,7 +579,7 @@ public open class CfnSimulation( public fun bucketName(bucketName: String) /** - * @param objectKey The key name of an object in Amazon S3 . + * @param objectKey The key name of an object in Amazon S3. * For more information about Amazon S3 objects and object keys, see [Uploading, downloading, * and working with objects in Amazon * S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/uploading-downloading-objects.html) @@ -603,7 +604,7 @@ public open class CfnSimulation( } /** - * @param objectKey The key name of an object in Amazon S3 . + * @param objectKey The key name of an object in Amazon S3. * For more information about Amazon S3 objects and object keys, see [Uploading, downloading, * and working with objects in Amazon * S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/uploading-downloading-objects.html) @@ -620,7 +621,8 @@ public open class CfnSimulation( private class Wrapper( cdkObject: software.amazon.awscdk.services.simspaceweaver.CfnSimulation.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The name of an Amazon S3 bucket. * @@ -633,7 +635,7 @@ public open class CfnSimulation( override fun bucketName(): String = unwrap(this).getBucketName() /** - * The key name of an object in Amazon S3 . + * The key name of an object in Amazon S3. * * For more information about Amazon S3 objects and object keys, see [Uploading, downloading, * and working with objects in Amazon diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulationProps.kt index c3cd79f9e4..c637806422 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/simspaceweaver/CfnSimulationProps.kt @@ -339,7 +339,8 @@ public interface CfnSimulationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.simspaceweaver.CfnSimulationProps, - ) : CdkObject(cdkObject), CfnSimulationProps { + ) : CdkObject(cdkObject), + CfnSimulationProps { /** * The maximum running time of the simulation, specified as a number of minutes (m or M), hours * (h or H), or days (d or D). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/BetweenCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/BetweenCondition.kt index 81f98b577f..2b51a051d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/BetweenCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/BetweenCondition.kt @@ -90,7 +90,8 @@ public interface BetweenCondition { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.BetweenCondition, - ) : CdkObject(cdkObject), BetweenCondition { + ) : CdkObject(cdkObject), + BetweenCondition { /** * The start value. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscription.kt index bc716475b0..914ad77221 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscription.kt @@ -17,7 +17,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * The `AWS::SNS::Subscription` resource subscribes an endpoint to an Amazon SNS topic. * - * For a subscription to be created, the owner of the endpoint must confirm the subscription. + * For a subscription to be created, the owner of the endpoint must` confirm the subscription. * * Example: * @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSubscription( cdkObject: software.amazon.awscdk.services.sns.CfnSubscription, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -67,9 +68,9 @@ public open class CfnSubscription( ) /** - * + * Arn of the subscription. */ - public open fun attrId(): String = unwrap(this).getAttrId() + public open fun attrArn(): String = unwrap(this).getAttrArn() /** * The delivery policy JSON assigned to the subscription. @@ -186,12 +187,14 @@ public open class CfnSubscription( } /** - * + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. */ public open fun replayPolicy(): Any? = unwrap(this).getReplayPolicy() /** - * + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. */ public open fun replayPolicy(`value`: Any) { unwrap(this).setReplayPolicy(`value`) @@ -355,8 +358,12 @@ public open class CfnSubscription( public fun region(region: String) /** + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-replaypolicy) - * @param replayPolicy + * @param replayPolicy Specifies whether Amazon SNS resends the notification to the subscription + * when a message's attribute changes. */ public fun replayPolicy(replayPolicy: Any) @@ -542,8 +549,12 @@ public open class CfnSubscription( } /** + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-replaypolicy) - * @param replayPolicy + * @param replayPolicy Specifies whether Amazon SNS resends the notification to the subscription + * when a message's attribute changes. */ override fun replayPolicy(replayPolicy: Any) { cdkBuilder.replayPolicy(replayPolicy) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscriptionProps.kt index 65a208847f..ddadbf6b95 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnSubscriptionProps.kt @@ -149,6 +149,9 @@ public interface CfnSubscriptionProps { public fun region(): String? = unwrap(this).getRegion() /** + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-replaypolicy) */ public fun replayPolicy(): Any? = unwrap(this).getReplayPolicy() @@ -274,7 +277,8 @@ public interface CfnSubscriptionProps { public fun region(region: String) /** - * @param replayPolicy the value to be set. + * @param replayPolicy Specifies whether Amazon SNS resends the notification to the subscription + * when a message's attribute changes. */ public fun replayPolicy(replayPolicy: Any) @@ -413,7 +417,8 @@ public interface CfnSubscriptionProps { } /** - * @param replayPolicy the value to be set. + * @param replayPolicy Specifies whether Amazon SNS resends the notification to the subscription + * when a message's attribute changes. */ override fun replayPolicy(replayPolicy: Any) { cdkBuilder.replayPolicy(replayPolicy) @@ -449,7 +454,8 @@ public interface CfnSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnSubscriptionProps, - ) : CdkObject(cdkObject), CfnSubscriptionProps { + ) : CdkObject(cdkObject), + CfnSubscriptionProps { /** * The delivery policy JSON assigned to the subscription. * @@ -556,6 +562,9 @@ public interface CfnSubscriptionProps { override fun region(): String? = unwrap(this).getRegion() /** + * Specifies whether Amazon SNS resends the notification to the subscription when a message's + * attribute changes. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-replaypolicy) */ override fun replayPolicy(): Any? = unwrap(this).getReplayPolicy() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopic.kt index 32f4a76bf6..aa91bd306a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopic.kt @@ -69,7 +69,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopic( cdkObject: software.amazon.awscdk.services.sns.CfnTopic, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sns.CfnTopic(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -92,12 +94,12 @@ public open class CfnTopic( ) /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. */ public open fun archivePolicy(): Any? = unwrap(this).getArchivePolicy() /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. */ public open fun archivePolicy(`value`: Any) { unwrap(this).setArchivePolicy(`value`) @@ -114,19 +116,22 @@ public open class CfnTopic( public open fun attrTopicName(): String = unwrap(this).getAttrTopicName() /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. */ public open fun contentBasedDeduplication(): Any? = unwrap(this).getContentBasedDeduplication() /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. */ public open fun contentBasedDeduplication(`value`: Boolean) { unwrap(this).setContentBasedDeduplication(`value`) } /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. */ public open fun contentBasedDeduplication(`value`: IResolvable) { unwrap(this).setContentBasedDeduplication(`value`.let(IResolvable.Companion::unwrap)) @@ -322,49 +327,50 @@ public open class CfnTopic( @CdkDslMarker public interface Builder { /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. * - * You can set a retention period from 1 to 365 days. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable + * to FIFO topics; attempting to use it with standard topics will result in a creation failure. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-archivepolicy) - * @param archivePolicy The archive policy determines the number of days Amazon SNS retains - * messages. + * @param archivePolicy The `ArchivePolicy` determines the number of days Amazon SNS retains + * messages in FIFO topics. */ public fun archivePolicy(archivePolicy: Any) /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. */ public fun contentBasedDeduplication(contentBasedDeduplication: Boolean) /** - * Enables content-based deduplication for FIFO topics. - * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. */ public fun contentBasedDeduplication(contentBasedDeduplication: IResolvable) @@ -614,53 +620,54 @@ public open class CfnTopic( software.amazon.awscdk.services.sns.CfnTopic.Builder.create(scope, id) /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. * - * You can set a retention period from 1 to 365 days. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable + * to FIFO topics; attempting to use it with standard topics will result in a creation failure. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-archivepolicy) - * @param archivePolicy The archive policy determines the number of days Amazon SNS retains - * messages. + * @param archivePolicy The `ArchivePolicy` determines the number of days Amazon SNS retains + * messages in FIFO topics. */ override fun archivePolicy(archivePolicy: Any) { cdkBuilder.archivePolicy(archivePolicy) } /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. */ override fun contentBasedDeduplication(contentBasedDeduplication: Boolean) { cdkBuilder.contentBasedDeduplication(contentBasedDeduplication) } /** - * Enables content-based deduplication for FIFO topics. - * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. */ override fun contentBasedDeduplication(contentBasedDeduplication: IResolvable) { cdkBuilder.contentBasedDeduplication(contentBasedDeduplication.let(IResolvable.Companion::unwrap)) @@ -1090,7 +1097,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnTopic.LoggingConfigProperty, - ) : CdkObject(cdkObject), LoggingConfigProperty { + ) : CdkObject(cdkObject), + LoggingConfigProperty { /** * The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch. * @@ -1250,7 +1258,8 @@ public open class CfnTopic( private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnTopic.SubscriptionProperty, - ) : CdkObject(cdkObject), SubscriptionProperty { + ) : CdkObject(cdkObject), + SubscriptionProperty { /** * The endpoint that receives notifications from the Amazon SNS topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicy.kt index 5f011306ce..511f657ac7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicy.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopicInlinePolicy( cdkObject: software.amazon.awscdk.services.sns.CfnTopicInlinePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicyProps.kt index 3799946f79..c668ff22f3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicInlinePolicyProps.kt @@ -86,7 +86,8 @@ public interface CfnTopicInlinePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnTopicInlinePolicyProps, - ) : CdkObject(cdkObject), CfnTopicInlinePolicyProps { + ) : CdkObject(cdkObject), + CfnTopicInlinePolicyProps { /** * A policy document that contains permissions to add to the specified Amazon SNS topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicy.kt index 5c6624e7c7..27969369ec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicy.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTopicPolicy( cdkObject: software.amazon.awscdk.services.sns.CfnTopicPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicyProps.kt index 69b059ad9e..4b2987c5f6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicPolicyProps.kt @@ -124,7 +124,8 @@ public interface CfnTopicPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnTopicPolicyProps, - ) : CdkObject(cdkObject), CfnTopicPolicyProps { + ) : CdkObject(cdkObject), + CfnTopicPolicyProps { /** * A policy document that contains permissions to add to the specified SNS topics. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicProps.kt index 70cb50b55e..7a6b62b146 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/CfnTopicProps.kt @@ -56,26 +56,26 @@ import kotlin.collections.List */ public interface CfnTopicProps { /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. * - * You can set a retention period from 1 to 365 days. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable to + * FIFO topics; attempting to use it with standard topics will result in a creation failure. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-archivepolicy) */ public fun archivePolicy(): Any? = unwrap(this).getArchivePolicy() /** - * Enables content-based deduplication for FIFO topics. + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of the - * message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a `MessageDeduplicationId` + * using a SHA-256 hash of the message body (excluding message attributes). You can optionally + * override this generated value by specifying a `MessageDeduplicationId` in the `Publish` action. + * Note that this property only applies to FIFO topics; using it with standard topics will cause the + * creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) */ @@ -219,37 +219,36 @@ public interface CfnTopicProps { @CdkDslMarker public interface Builder { /** - * @param archivePolicy The archive policy determines the number of days Amazon SNS retains - * messages. - * You can set a retention period from 1 to 365 days. + * @param archivePolicy The `ArchivePolicy` determines the number of days Amazon SNS retains + * messages in FIFO topics. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable + * to FIFO topics; attempting to use it with standard topics will result in a creation failure. */ public fun archivePolicy(archivePolicy: Any) /** - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. */ public fun contentBasedDeduplication(contentBasedDeduplication: Boolean) /** - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. */ public fun contentBasedDeduplication(contentBasedDeduplication: IResolvable) @@ -420,41 +419,40 @@ public interface CfnTopicProps { software.amazon.awscdk.services.sns.CfnTopicProps.builder() /** - * @param archivePolicy The archive policy determines the number of days Amazon SNS retains - * messages. - * You can set a retention period from 1 to 365 days. + * @param archivePolicy The `ArchivePolicy` determines the number of days Amazon SNS retains + * messages in FIFO topics. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable + * to FIFO topics; attempting to use it with standard topics will result in a creation failure. */ override fun archivePolicy(archivePolicy: Any) { cdkBuilder.archivePolicy(archivePolicy) } /** - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. */ override fun contentBasedDeduplication(contentBasedDeduplication: Boolean) { cdkBuilder.contentBasedDeduplication(contentBasedDeduplication) } /** - * @param contentBasedDeduplication Enables content-based deduplication for FIFO topics. - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). - * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * @param contentBasedDeduplication `ContentBasedDeduplication` enables deduplication of + * messages based on their content for FIFO topics. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. */ override fun contentBasedDeduplication(contentBasedDeduplication: IResolvable) { cdkBuilder.contentBasedDeduplication(contentBasedDeduplication.let(IResolvable.Companion::unwrap)) @@ -653,28 +651,29 @@ public interface CfnTopicProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.CfnTopicProps, - ) : CdkObject(cdkObject), CfnTopicProps { + ) : CdkObject(cdkObject), + CfnTopicProps { /** - * The archive policy determines the number of days Amazon SNS retains messages. + * The `ArchivePolicy` determines the number of days Amazon SNS retains messages in FIFO topics. * - * You can set a retention period from 1 to 365 days. + * You can set a retention period ranging from 1 to 365 days. This property is only applicable + * to FIFO topics; attempting to use it with standard topics will result in a creation failure. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-archivepolicy) */ override fun archivePolicy(): Any? = unwrap(this).getArchivePolicy() /** - * Enables content-based deduplication for FIFO topics. - * - * * By default, `ContentBasedDeduplication` is set to `false` . If you create a FIFO topic and - * this attribute is `false` , you must specify a value for the `MessageDeduplicationId` parameter - * for the [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) action. - * * When you set `ContentBasedDeduplication` to `true` , Amazon SNS uses a SHA-256 hash to - * generate the `MessageDeduplicationId` using the body of the message (but not the attributes of - * the message). + * `ContentBasedDeduplication` enables deduplication of messages based on their content for FIFO + * topics. * - * (Optional) To override the generated value, you can specify a value for the the - * `MessageDeduplicationId` parameter for the `Publish` action. + * By default, this property is set to false. If you create a FIFO topic with + * `ContentBasedDeduplication` set to false, you must provide a `MessageDeduplicationId` for each + * `Publish` action. When set to true, Amazon SNS automatically generates a + * `MessageDeduplicationId` using a SHA-256 hash of the message body (excluding message + * attributes). You can optionally override this generated value by specifying a + * `MessageDeduplicationId` in the `Publish` action. Note that this property only applies to FIFO + * topics; using it with standard topics will cause the creation to fail. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html#cfn-sns-topic-contentbaseddeduplication) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopic.kt index 3f065049ac..1e319b8b58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopic.kt @@ -78,6 +78,13 @@ public interface ITopic : IResource, INotificationRuleTarget { */ public fun grantPublish(identity: IGrantable): Grant + /** + * Grant topic subscribing permissions to the given identity. + * + * @param identity + */ + public fun grantSubscribe(identity: IGrantable): Grant + /** * Return the given named metric for this Topic. * @@ -393,7 +400,8 @@ public interface ITopic : IResource, INotificationRuleTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.ITopic, - ) : CdkObject(cdkObject), ITopic { + ) : CdkObject(cdkObject), + ITopic { /** * Subscribe some endpoint to this topic. * @@ -485,6 +493,14 @@ public interface ITopic : IResource, INotificationRuleTarget { override fun grantPublish(identity: IGrantable): Grant = unwrap(this).grantPublish(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant topic subscribing permissions to the given identity. + * + * @param identity + */ + override fun grantSubscribe(identity: IGrantable): Grant = + unwrap(this).grantSubscribe(identity.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Return the given named metric for this Topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopicSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopicSubscription.kt index ad752a4250..df3781d0ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopicSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/ITopicSubscription.kt @@ -18,7 +18,8 @@ public interface ITopicSubscription { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.ITopicSubscription, - ) : CdkObject(cdkObject), ITopicSubscription { + ) : CdkObject(cdkObject), + ITopicSubscription { /** * Returns a configuration used to subscribe to an SNS topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/LoggingConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/LoggingConfig.kt index 6977ac00d5..6cd7ca1cfa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/LoggingConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/LoggingConfig.kt @@ -128,7 +128,8 @@ public interface LoggingConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.LoggingConfig, - ) : CdkObject(cdkObject), LoggingConfig { + ) : CdkObject(cdkObject), + LoggingConfig { /** * The IAM role to be used when logging failed message deliveries in Amazon CloudWatch. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/NumericConditions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/NumericConditions.kt index b4da2d8f02..10392ae523 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/NumericConditions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/NumericConditions.kt @@ -234,7 +234,8 @@ public interface NumericConditions { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.NumericConditions, - ) : CdkObject(cdkObject), NumericConditions { + ) : CdkObject(cdkObject), + NumericConditions { /** * Match one or more values. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/StringConditions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/StringConditions.kt index 0e3c8e228e..7134e0ec0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/StringConditions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/StringConditions.kt @@ -175,7 +175,8 @@ public interface StringConditions { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.StringConditions, - ) : CdkObject(cdkObject), StringConditions { + ) : CdkObject(cdkObject), + StringConditions { /** * Match one or more values. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionOptions.kt index 532ff1517a..254216dfcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionOptions.kt @@ -239,7 +239,8 @@ public interface SubscriptionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.SubscriptionOptions, - ) : CdkObject(cdkObject), SubscriptionOptions { + ) : CdkObject(cdkObject), + SubscriptionOptions { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionProps.kt index f6bafd9242..545f2491e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/SubscriptionProps.kt @@ -176,7 +176,8 @@ public interface SubscriptionProps : SubscriptionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.SubscriptionProps, - ) : CdkObject(cdkObject), SubscriptionProps { + ) : CdkObject(cdkObject), + SubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/Topic.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/Topic.kt index 15a46afbf0..e9f43c881e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/Topic.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/Topic.kt @@ -19,15 +19,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.sns.*; - * Topic topic = new Topic(this, "MyTopic"); - * TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule") - * .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM - * 'device/+/data'")) - * .actions(List.of( - * SnsTopicAction.Builder.create(topic) - * .messageFormat(SnsActionMessageFormat.JSON) - * .build())) + * import io.cloudshiftdev.awscdk.services.kinesisfirehose.alpha.DeliveryStream; + * DeliveryStream stream; + * Topic topic = new Topic(this, "Topic"); + * Subscription.Builder.create(this, "Subscription") + * .topic(topic) + * .endpoint(stream.getDeliveryStreamArn()) + * .protocol(SubscriptionProtocol.FIREHOSE) + * .subscriptionRoleArn("SAMPLE_ARN") * .build(); * ``` */ @@ -114,6 +113,9 @@ public open class Topic( /** * A developer-defined string that can be used to identify this SNS topic. * + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. + * * Default: None * * @param displayName A developer-defined string that can be used to identify this SNS topic. @@ -240,6 +242,9 @@ public open class Topic( /** * A developer-defined string that can be used to identify this SNS topic. * + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. + * * Default: None * * @param displayName A developer-defined string that can be used to identify this SNS topic. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicAttributes.kt index cf155f6e3a..187d11fa97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicAttributes.kt @@ -81,7 +81,8 @@ public interface TopicAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.TopicAttributes, - ) : CdkObject(cdkObject), TopicAttributes { + ) : CdkObject(cdkObject), + TopicAttributes { /** * Whether content-based deduplication is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicBase.kt index 6617e0b923..7a5c205984 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicBase.kt @@ -23,7 +23,8 @@ import kotlin.jvm.JvmName */ public abstract class TopicBase( cdkObject: software.amazon.awscdk.services.sns.TopicBase, -) : Resource(cdkObject), ITopic { +) : Resource(cdkObject), + ITopic { /** * Subscribe some endpoint to this topic. * @@ -87,6 +88,14 @@ public abstract class TopicBase( public override fun grantPublish(grantee: IGrantable): Grant = unwrap(this).grantPublish(grantee.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** + * Grant topic subscribing permissions to the given identity. + * + * @param grantee + */ + public override fun grantSubscribe(grantee: IGrantable): Grant = + unwrap(this).grantSubscribe(grantee.let(IGrantable.Companion::unwrap)).let(Grant::wrap) + /** * Return the given named metric for this Topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicPolicyProps.kt index 5ec87413f6..31b375f701 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicPolicyProps.kt @@ -139,7 +139,8 @@ public interface TopicPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.TopicPolicyProps, - ) : CdkObject(cdkObject), TopicPolicyProps { + ) : CdkObject(cdkObject), + TopicPolicyProps { /** * Adds a statement to enforce encryption of data in transit when publishing to the topic. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicProps.kt index 2955f7f1fb..d3737c183c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicProps.kt @@ -34,6 +34,9 @@ public interface TopicProps { /** * A developer-defined string that can be used to identify this SNS topic. * + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. + * * Default: None */ public fun displayName(): String? = unwrap(this).getDisplayName() @@ -127,6 +130,8 @@ public interface TopicProps { /** * @param displayName A developer-defined string that can be used to identify this SNS topic. + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. */ public fun displayName(displayName: String) @@ -196,6 +201,8 @@ public interface TopicProps { /** * @param displayName A developer-defined string that can be used to identify this SNS topic. + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. */ override fun displayName(displayName: String) { cdkBuilder.displayName(displayName) @@ -275,7 +282,8 @@ public interface TopicProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.TopicProps, - ) : CdkObject(cdkObject), TopicProps { + ) : CdkObject(cdkObject), + TopicProps { /** * Enables content-based deduplication for FIFO topics. * @@ -286,6 +294,9 @@ public interface TopicProps { /** * A developer-defined string that can be used to identify this SNS topic. * + * The display name must be maximum 100 characters long, including hyphens (-), + * underscores (_), spaces, and tabs. + * * Default: None */ override fun displayName(): String? = unwrap(this).getDisplayName() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicSubscriptionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicSubscriptionConfig.kt index 4111e6cbf4..cd14774051 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicSubscriptionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicSubscriptionConfig.kt @@ -277,7 +277,8 @@ public interface TopicSubscriptionConfig : SubscriptionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.TopicSubscriptionConfig, - ) : CdkObject(cdkObject), TopicSubscriptionConfig { + ) : CdkObject(cdkObject), + TopicSubscriptionConfig { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscription.kt index f77d9ae496..ec2f3ada45 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscription.kt @@ -30,7 +30,8 @@ import kotlin.collections.Map */ public open class EmailSubscription( cdkObject: software.amazon.awscdk.services.sns.subscriptions.EmailSubscription, -) : CdkObject(cdkObject), ITopicSubscription { +) : CdkObject(cdkObject), + ITopicSubscription { public constructor(emailAddress: String) : this(software.amazon.awscdk.services.sns.subscriptions.EmailSubscription(emailAddress) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscriptionProps.kt index 26179a8c9c..91ba436b69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/EmailSubscriptionProps.kt @@ -120,7 +120,8 @@ public interface EmailSubscriptionProps : SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.EmailSubscriptionProps, - ) : CdkObject(cdkObject), EmailSubscriptionProps { + ) : CdkObject(cdkObject), + EmailSubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscription.kt index 903c76ca63..21601ada35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscription.kt @@ -38,7 +38,8 @@ import software.amazon.awscdk.services.lambda.IFunction as AmazonAwscdkServicesL */ public open class LambdaSubscription( cdkObject: software.amazon.awscdk.services.sns.subscriptions.LambdaSubscription, -) : CdkObject(cdkObject), ITopicSubscription { +) : CdkObject(cdkObject), + ITopicSubscription { public constructor(fn: CloudshiftdevAwscdkServicesLambdaIFunction) : this(software.amazon.awscdk.services.sns.subscriptions.LambdaSubscription(fn.let(CloudshiftdevAwscdkServicesLambdaIFunction.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscriptionProps.kt index a894443a7c..6090ffadcb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/LambdaSubscriptionProps.kt @@ -105,7 +105,8 @@ public interface LambdaSubscriptionProps : SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.LambdaSubscriptionProps, - ) : CdkObject(cdkObject), LambdaSubscriptionProps { + ) : CdkObject(cdkObject), + LambdaSubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscription.kt index 6d9c81f673..aa2e08bd17 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscription.kt @@ -26,7 +26,8 @@ import kotlin.collections.Map */ public open class SmsSubscription( cdkObject: software.amazon.awscdk.services.sns.subscriptions.SmsSubscription, -) : CdkObject(cdkObject), ITopicSubscription { +) : CdkObject(cdkObject), + ITopicSubscription { public constructor(phoneNumber: String) : this(software.amazon.awscdk.services.sns.subscriptions.SmsSubscription(phoneNumber) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscriptionProps.kt index dcef32d046..e7659d6897 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SmsSubscriptionProps.kt @@ -96,7 +96,8 @@ public interface SmsSubscriptionProps : SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.SmsSubscriptionProps, - ) : CdkObject(cdkObject), SmsSubscriptionProps { + ) : CdkObject(cdkObject), + SmsSubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscription.kt index 48573d5426..dc478c2aa2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscription.kt @@ -29,7 +29,8 @@ import software.amazon.awscdk.services.sqs.IQueue as AmazonAwscdkServicesSqsIQue */ public open class SqsSubscription( cdkObject: software.amazon.awscdk.services.sns.subscriptions.SqsSubscription, -) : CdkObject(cdkObject), ITopicSubscription { +) : CdkObject(cdkObject), + ITopicSubscription { public constructor(queue: CloudshiftdevAwscdkServicesSqsIQueue) : this(software.amazon.awscdk.services.sns.subscriptions.SqsSubscription(queue.let(CloudshiftdevAwscdkServicesSqsIQueue.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscriptionProps.kt index 43196e8786..0fc9d6cc5f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SqsSubscriptionProps.kt @@ -121,7 +121,8 @@ public interface SqsSubscriptionProps : SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.SqsSubscriptionProps, - ) : CdkObject(cdkObject), SqsSubscriptionProps { + ) : CdkObject(cdkObject), + SqsSubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SubscriptionProps.kt index 69dc6e099f..873f20bea2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/SubscriptionProps.kt @@ -125,7 +125,8 @@ public interface SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.SubscriptionProps, - ) : CdkObject(cdkObject), SubscriptionProps { + ) : CdkObject(cdkObject), + SubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscription.kt index ef1f222292..fcab6ebffe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscription.kt @@ -32,7 +32,8 @@ import kotlin.collections.Map */ public open class UrlSubscription( cdkObject: software.amazon.awscdk.services.sns.subscriptions.UrlSubscription, -) : CdkObject(cdkObject), ITopicSubscription { +) : CdkObject(cdkObject), + ITopicSubscription { public constructor(url: String) : this(software.amazon.awscdk.services.sns.subscriptions.UrlSubscription(url) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscriptionProps.kt index 5c4f02ef79..f04c0ac07e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/subscriptions/UrlSubscriptionProps.kt @@ -143,7 +143,8 @@ public interface UrlSubscriptionProps : SubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sns.subscriptions.UrlSubscriptionProps, - ) : CdkObject(cdkObject), UrlSubscriptionProps { + ) : CdkObject(cdkObject), + UrlSubscriptionProps { /** * Queue to be used as dead letter queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueue.kt index aaaa08c152..00a1cd7f0d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueue.kt @@ -84,7 +84,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueue( cdkObject: software.amazon.awscdk.services.sqs.CfnQueue, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.sqs.CfnQueue(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -635,9 +637,9 @@ public open class CfnQueue( * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter @@ -1024,9 +1026,9 @@ public open class CfnQueue( * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicy.kt index 4cf22eb702..7bda5ff738 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicy.kt @@ -33,7 +33,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueueInlinePolicy( cdkObject: software.amazon.awscdk.services.sqs.CfnQueueInlinePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicyProps.kt index 6b44180c08..e920c5e1de 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueInlinePolicyProps.kt @@ -113,7 +113,8 @@ public interface CfnQueueInlinePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.CfnQueueInlinePolicyProps, - ) : CdkObject(cdkObject), CfnQueueInlinePolicyProps { + ) : CdkObject(cdkObject), + CfnQueueInlinePolicyProps { /** * A policy document that contains the permissions for the specified Amazon SQS queues. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicy.kt index c0a5dc52e7..27a202e28a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicy.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnQueuePolicy( cdkObject: software.amazon.awscdk.services.sqs.CfnQueuePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -122,7 +123,7 @@ public open class CfnQueuePolicy( * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) @@ -136,7 +137,7 @@ public open class CfnQueuePolicy( * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) @@ -174,7 +175,7 @@ public open class CfnQueuePolicy( * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) @@ -190,7 +191,7 @@ public open class CfnQueuePolicy( * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicyProps.kt index 7e82c022a2..a93c5baa0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueuePolicyProps.kt @@ -47,7 +47,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) @@ -74,7 +74,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. */ public fun queues(queues: List) @@ -84,7 +84,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. */ public fun queues(vararg queues: String) @@ -111,7 +111,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. */ override fun queues(queues: List) { @@ -123,7 +123,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. */ override fun queues(vararg queues: String): Unit = queues(queues.toList()) @@ -133,7 +133,8 @@ public interface CfnQueuePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.CfnQueuePolicyProps, - ) : CdkObject(cdkObject), CfnQueuePolicyProps { + ) : CdkObject(cdkObject), + CfnQueuePolicyProps { /** * A policy document that contains the permissions for the specified Amazon SQS queues. * @@ -152,7 +153,7 @@ public interface CfnQueuePolicyProps { * You can use the * `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` * function to specify an - * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` + * `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html)` * resource. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queuepolicy.html#cfn-sqs-queuepolicy-queues) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueProps.kt index 457f6a273f..37806850df 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/CfnQueueProps.kt @@ -254,9 +254,9 @@ public interface CfnQueueProps { * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter @@ -511,9 +511,9 @@ public interface CfnQueueProps { * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter @@ -805,9 +805,9 @@ public interface CfnQueueProps { * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter @@ -894,7 +894,8 @@ public interface CfnQueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.CfnQueueProps, - ) : CdkObject(cdkObject), CfnQueueProps { + ) : CdkObject(cdkObject), + CfnQueueProps { /** * For first-in-first-out (FIFO) queues, specifies whether to enable content-based * deduplication. @@ -1099,9 +1100,9 @@ public interface CfnQueueProps { * * * `deadLetterTargetArn` : The Amazon Resource Name (ARN) of the dead-letter queue to which * Amazon SQS moves messages after the value of `maxReceiveCount` is exceeded. - * * `maxReceiveCount` : The number of times a message is delivered to the source queue before - * being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds the - * `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. + * * `maxReceiveCount` : The number of times a message is received by a consumer of the source + * queue before being moved to the dead-letter queue. When the `ReceiveCount` for a message exceeds + * the `maxReceiveCount` for a queue, Amazon SQS moves the message to the dead-letter-queue. * * * The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/DeadLetterQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/DeadLetterQueue.kt index 68c681cdce..2b84050fb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/DeadLetterQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/DeadLetterQueue.kt @@ -26,7 +26,7 @@ import kotlin.Unit */ public interface DeadLetterQueue { /** - * The number of times a message can be unsuccesfully dequeued before being moved to the + * The number of times a message can be unsuccessfully dequeued before being moved to the * dead-letter queue. */ public fun maxReceiveCount(): Number @@ -43,7 +43,7 @@ public interface DeadLetterQueue { @CdkDslMarker public interface Builder { /** - * @param maxReceiveCount The number of times a message can be unsuccesfully dequeued before + * @param maxReceiveCount The number of times a message can be unsuccessfully dequeued before * being moved to the dead-letter queue. */ public fun maxReceiveCount(maxReceiveCount: Number) @@ -60,7 +60,7 @@ public interface DeadLetterQueue { software.amazon.awscdk.services.sqs.DeadLetterQueue.builder() /** - * @param maxReceiveCount The number of times a message can be unsuccesfully dequeued before + * @param maxReceiveCount The number of times a message can be unsuccessfully dequeued before * being moved to the dead-letter queue. */ override fun maxReceiveCount(maxReceiveCount: Number) { @@ -80,9 +80,10 @@ public interface DeadLetterQueue { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.DeadLetterQueue, - ) : CdkObject(cdkObject), DeadLetterQueue { + ) : CdkObject(cdkObject), + DeadLetterQueue { /** - * The number of times a message can be unsuccesfully dequeued before being moved to the + * The number of times a message can be unsuccessfully dequeued before being moved to the * dead-letter queue. */ override fun maxReceiveCount(): Number = unwrap(this).getMaxReceiveCount() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/IQueue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/IQueue.kt index e1371fd071..d5495f8f0b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/IQueue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/IQueue.kt @@ -425,7 +425,8 @@ public interface IQueue : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.IQueue, - ) : CdkObject(cdkObject), IQueue { + ) : CdkObject(cdkObject), + IQueue { /** * Adds a statement to the IAM resource policy associated with this queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/Queue.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/Queue.kt index d98ceb076e..65e1007c1c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/Queue.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/Queue.kt @@ -21,10 +21,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * ``` * Queue sourceQueue; - * Queue targetQueue; - * SqsTarget pipeTarget = SqsTarget.Builder.create(targetQueue) - * .inputTransformation(InputTransformation.fromObject(Map.of( - * "SomeKey", DynamicInput.fromEventPath("$.body")))) + * IFunction targetFunction; + * LambdaFunction pipeTarget = LambdaFunction.Builder.create(targetFunction) + * .inputTransformation(InputTransformation.fromObject(Map.of("body", "👀"))) * .build(); * Pipe pipe = Pipe.Builder.create(this, "Pipe") * .source(new SomeSource(sourceQueue)) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueAttributes.kt index a7b8d1588f..2305ac6308 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueAttributes.kt @@ -149,7 +149,8 @@ public interface QueueAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.QueueAttributes, - ) : CdkObject(cdkObject), QueueAttributes { + ) : CdkObject(cdkObject), + QueueAttributes { /** * Whether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueBase.kt index 1bf5c9ce45..e7a0611970 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueBase.kt @@ -22,7 +22,8 @@ import kotlin.jvm.JvmName */ public abstract class QueueBase( cdkObject: software.amazon.awscdk.services.sqs.QueueBase, -) : Resource(cdkObject), IQueue { +) : Resource(cdkObject), + IQueue { /** * Adds a statement to the IAM resource policy associated with this queue. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueuePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueuePolicyProps.kt index 16e4c13691..3bc974f9d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueuePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueuePolicyProps.kt @@ -66,7 +66,8 @@ public interface QueuePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.QueuePolicyProps, - ) : CdkObject(cdkObject), QueuePolicyProps { + ) : CdkObject(cdkObject), + QueuePolicyProps { /** * The set of queues this policy applies to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueProps.kt index 1f2e570034..ab89157eeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/QueueProps.kt @@ -569,7 +569,8 @@ public interface QueueProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.QueueProps, - ) : CdkObject(cdkObject), QueueProps { + ) : CdkObject(cdkObject), + QueueProps { /** * Specifies whether to enable content-based deduplication. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/RedriveAllowPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/RedriveAllowPolicy.kt index ef01c66787..dedc5e6ed1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/RedriveAllowPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sqs/RedriveAllowPolicy.kt @@ -151,7 +151,8 @@ public interface RedriveAllowPolicy { private class Wrapper( cdkObject: software.amazon.awscdk.services.sqs.RedriveAllowPolicy, - ) : CdkObject(cdkObject), RedriveAllowPolicy { + ) : CdkObject(cdkObject), + RedriveAllowPolicy { /** * Permission settings for source queues that can designate this queue as their dead-letter * queue. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociation.kt index a0b24458af..45b7efe0ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociation.kt @@ -75,7 +75,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssociation( cdkObject: software.amazon.awscdk.services.ssm.CfnAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1237,7 +1238,8 @@ public open class CfnAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnAssociation.InstanceAssociationOutputLocationProperty, - ) : CdkObject(cdkObject), InstanceAssociationOutputLocationProperty { + ) : CdkObject(cdkObject), + InstanceAssociationOutputLocationProperty { /** * `S3OutputLocation` is a property of the * [InstanceAssociationOutputLocation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html) @@ -1365,7 +1367,8 @@ public open class CfnAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnAssociation.S3OutputLocationProperty, - ) : CdkObject(cdkObject), S3OutputLocationProperty { + ) : CdkObject(cdkObject), + S3OutputLocationProperty { /** * The name of the S3 bucket. * @@ -1522,7 +1525,8 @@ public open class CfnAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnAssociation.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * User-defined criteria for sending commands that target managed nodes that meet the * criteria. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociationProps.kt index 696ceb3d5c..fc1e26533a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnAssociationProps.kt @@ -828,7 +828,8 @@ public interface CfnAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnAssociationProps, - ) : CdkObject(cdkObject), CfnAssociationProps { + ) : CdkObject(cdkObject), + CfnAssociationProps { /** * By default, when you create a new association, the system runs it immediately after it is * created and then according to the schedule you specified. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocument.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocument.kt index 780edc2a44..7a5d729629 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocument.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocument.kt @@ -44,7 +44,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDocument( cdkObject: software.amazon.awscdk.services.ssm.CfnDocument, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -726,11 +728,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -771,11 +773,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -798,11 +800,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -846,11 +848,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -875,11 +877,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -901,7 +903,8 @@ public open class CfnDocument( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnDocument.AttachmentsSourceProperty, - ) : CdkObject(cdkObject), AttachmentsSourceProperty { + ) : CdkObject(cdkObject), + AttachmentsSourceProperty { /** * The key of a key-value pair that identifies the location of an attachment to a document. * @@ -923,11 +926,11 @@ public open class CfnDocument( * * * For the key *SourceUrl* , the value is an S3 bucket location. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix" ]` * * * For the key *S3FileUrl* , the value is a file in an S3 bucket. For example: * - * `"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]` + * `"Values": [ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" ]` * * * For the key *AttachmentReference* , the value is constructed from the name of another SSM * document in your account, a version number of that document, and a file attached to that @@ -1041,7 +1044,8 @@ public open class CfnDocument( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnDocument.DocumentRequiresProperty, - ) : CdkObject(cdkObject), DocumentRequiresProperty { + ) : CdkObject(cdkObject), + DocumentRequiresProperty { /** * The name of the required SSM document. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocumentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocumentProps.kt index 3d9b0c34ea..ddd0ae12a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocumentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnDocumentProps.kt @@ -481,7 +481,8 @@ public interface CfnDocumentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnDocumentProps, - ) : CdkObject(cdkObject), CfnDocumentProps { + ) : CdkObject(cdkObject), + CfnDocumentProps { /** * A list of key-value pairs that describe attachments to a version of a document. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindow.kt index 52205f2565..81133d79c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindow.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMaintenanceWindow( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowProps.kt index 3b90fda173..4e42a4bcec 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowProps.kt @@ -353,7 +353,8 @@ public interface CfnMaintenanceWindowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowProps, - ) : CdkObject(cdkObject), CfnMaintenanceWindowProps { + ) : CdkObject(cdkObject), + CfnMaintenanceWindowProps { /** * Enables a maintenance window task to run on managed instances, even if you have not * registered those instances as targets. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTarget.kt index fafa1d2321..f49917cf9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTarget.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMaintenanceWindowTarget( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTarget, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -491,7 +492,8 @@ public open class CfnMaintenanceWindowTarget( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTarget.TargetsProperty, - ) : CdkObject(cdkObject), TargetsProperty { + ) : CdkObject(cdkObject), + TargetsProperty { /** * User-defined criteria for sending commands that target managed nodes that meet the * criteria. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTargetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTargetProps.kt index 6441d6939e..06f7e0f1e2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTargetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTargetProps.kt @@ -216,7 +216,8 @@ public interface CfnMaintenanceWindowTargetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTargetProps, - ) : CdkObject(cdkObject), CfnMaintenanceWindowTargetProps { + ) : CdkObject(cdkObject), + CfnMaintenanceWindowTargetProps { /** * A description for the target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTask.kt index 078d0bf9a3..875ae042bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTask.kt @@ -102,7 +102,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnMaintenanceWindowTask( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -235,16 +236,14 @@ public open class CfnMaintenanceWindowTask( } /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to - * use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. */ public open fun serviceRoleArn(): String? = unwrap(this).getServiceRoleArn() /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to - * use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. */ public open fun serviceRoleArn(`value`: String) { unwrap(this).setServiceRoleArn(`value`) @@ -488,14 +487,23 @@ public open class CfnMaintenanceWindowTask( public fun priority(priority: Number) /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role - * to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-servicerolearn) - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) - * notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS Systems + * Manager to assume when running a maintenance window task. */ public fun serviceRoleArn(serviceRoleArn: String) @@ -806,14 +814,23 @@ public open class CfnMaintenanceWindowTask( } /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role - * to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-servicerolearn) - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) - * notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS Systems + * Manager to assume when running a maintenance window task. */ override fun serviceRoleArn(serviceRoleArn: String) { cdkBuilder.serviceRoleArn(serviceRoleArn) @@ -1118,7 +1135,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.CloudWatchOutputConfigProperty, - ) : CdkObject(cdkObject), CloudWatchOutputConfigProperty { + ) : CdkObject(cdkObject), + CloudWatchOutputConfigProperty { /** * The name of the CloudWatch Logs log group where you want to send command output. * @@ -1266,7 +1284,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.LoggingInfoProperty, - ) : CdkObject(cdkObject), LoggingInfoProperty { + ) : CdkObject(cdkObject), + LoggingInfoProperty { /** * The AWS Region where the S3 bucket is located. * @@ -1394,7 +1413,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.MaintenanceWindowAutomationParametersProperty, - ) : CdkObject(cdkObject), MaintenanceWindowAutomationParametersProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowAutomationParametersProperty { /** * The version of an Automation runbook to use during task execution. * @@ -1568,7 +1588,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.MaintenanceWindowLambdaParametersProperty, - ) : CdkObject(cdkObject), MaintenanceWindowLambdaParametersProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowLambdaParametersProperty { /** * Client-specific information to pass to the AWS Lambda function that you're invoking. * @@ -1761,9 +1782,19 @@ public open class CfnMaintenanceWindowTask( public fun parameters(): Any? = unwrap(this).getParameters() /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role - * to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-servicerolearn) */ @@ -1876,9 +1907,18 @@ public open class CfnMaintenanceWindowTask( public fun parameters(parameters: Any) /** - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon - * SNS) notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS + * Systems Manager to assume when running a maintenance window task. + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in + * your account. If no appropriate service-linked role for Systems Manager exists in your + * account, it is created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy + * and custom service role for running your maintenance window tasks. The policy can be crafted + * to provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . */ public fun serviceRoleArn(serviceRoleArn: String) @@ -2014,9 +2054,18 @@ public open class CfnMaintenanceWindowTask( } /** - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon - * SNS) notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS + * Systems Manager to assume when running a maintenance window task. + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in + * your account. If no appropriate service-linked role for Systems Manager exists in your + * account, it is created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy + * and custom service role for running your maintenance window tasks. The policy can be crafted + * to provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . */ override fun serviceRoleArn(serviceRoleArn: String) { cdkBuilder.serviceRoleArn(serviceRoleArn) @@ -2037,7 +2086,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.MaintenanceWindowRunCommandParametersProperty, - ) : CdkObject(cdkObject), MaintenanceWindowRunCommandParametersProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowRunCommandParametersProperty { /** * Configuration options for sending command output to Amazon CloudWatch Logs. * @@ -2122,9 +2172,19 @@ public open class CfnMaintenanceWindowTask( override fun parameters(): Any? = unwrap(this).getParameters() /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role - * to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for - * maintenance window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume + * when running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in + * your account. If no appropriate service-linked role for Systems Manager exists in your + * account, it is created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy + * and custom service role for running your maintenance window tasks. The policy can be crafted + * to provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-servicerolearn) */ @@ -2239,7 +2299,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.MaintenanceWindowStepFunctionsParametersProperty, - ) : CdkObject(cdkObject), MaintenanceWindowStepFunctionsParametersProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowStepFunctionsParametersProperty { /** * The inputs for the `STEP_FUNCTIONS` task. * @@ -2429,7 +2490,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.NotificationConfigProperty, - ) : CdkObject(cdkObject), NotificationConfigProperty { + ) : CdkObject(cdkObject), + NotificationConfigProperty { /** * An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. * @@ -2634,7 +2696,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * User-defined criteria for sending commands that target instances that meet the criteria. * @@ -2978,7 +3041,8 @@ public open class CfnMaintenanceWindowTask( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.TaskInvocationParametersProperty, - ) : CdkObject(cdkObject), TaskInvocationParametersProperty { + ) : CdkObject(cdkObject), + TaskInvocationParametersProperty { /** * The parameters for an `AUTOMATION` task type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTaskProps.kt index 231245b855..bda94069dd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnMaintenanceWindowTaskProps.kt @@ -175,9 +175,19 @@ public interface CfnMaintenanceWindowTaskProps { public fun priority(): Number /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to - * use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-servicerolearn) */ @@ -358,9 +368,18 @@ public interface CfnMaintenanceWindowTaskProps { public fun priority(priority: Number) /** - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) - * notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS Systems + * Manager to assume when running a maintenance window task. + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . */ public fun serviceRoleArn(serviceRoleArn: String) @@ -588,9 +607,18 @@ public interface CfnMaintenanceWindowTaskProps { } /** - * @param serviceRoleArn The Amazon Resource Name (ARN) of the AWS Identity and Access - * Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) - * notifications for maintenance window Run Command tasks. + * @param serviceRoleArn The Amazon Resource Name (ARN) of the IAM service role for AWS Systems + * Manager to assume when running a maintenance window task. + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . */ override fun serviceRoleArn(serviceRoleArn: String) { cdkBuilder.serviceRoleArn(serviceRoleArn) @@ -727,7 +755,8 @@ public interface CfnMaintenanceWindowTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTaskProps, - ) : CdkObject(cdkObject), CfnMaintenanceWindowTaskProps { + ) : CdkObject(cdkObject), + CfnMaintenanceWindowTaskProps { /** * The specification for whether tasks should continue to run after the cutoff time specified in * the maintenance windows is reached. @@ -813,9 +842,19 @@ public interface CfnMaintenanceWindowTaskProps { override fun priority(): Number = unwrap(this).getPriority() /** - * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role - * to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance - * window Run Command tasks. + * The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when + * running a maintenance window task. + * + * If you do not specify a service role ARN, Systems Manager uses a service-linked role in your + * account. If no appropriate service-linked role for Systems Manager exists in your account, it is + * created when you run `RegisterTaskWithMaintenanceWindow` . + * + * However, for an improved security posture, we strongly recommend creating a custom policy and + * custom service role for running your maintenance window tasks. The policy can be crafted to + * provide only the permissions needed for your particular maintenance window tasks. For more + * information, see [Setting up Maintenance + * Windows](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html) + * in the in the *AWS Systems Manager User Guide* . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-servicerolearn) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameter.kt index ef829e12bb..71f8296003 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameter.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnParameter( cdkObject: software.amazon.awscdk.services.ssm.CfnParameter, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameterProps.kt index 01d23a225c..c81c3d7ba9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnParameterProps.kt @@ -290,7 +290,8 @@ public interface CfnParameterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnParameterProps, - ) : CdkObject(cdkObject), CfnParameterProps { + ) : CdkObject(cdkObject), + CfnParameterProps { /** * A regular expression used to validate the parameter value. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaseline.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaseline.kt index 73d64d562c..763e33d50c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaseline.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaseline.kt @@ -86,7 +86,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPatchBaseline( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -411,7 +413,7 @@ public open class CfnPatchBaseline( * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -424,7 +426,7 @@ public open class CfnPatchBaseline( * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -572,7 +574,7 @@ public open class CfnPatchBaseline( * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -585,7 +587,7 @@ public open class CfnPatchBaseline( * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -597,14 +599,21 @@ public open class CfnPatchBaseline( /** * The action for Patch Manager to take on patches included in the `RejectedPackages` list. * - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it - * is a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the + * patch baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if + * no option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported + * as `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the + * default action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include + * them as dependencies, aren't installed by Patch Manager under any circumstances. If a package + * was installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is - * reported as *InstalledRejected* . + * reported as `INSTALLED_REJECTED` . * * Default: - "ALLOW_AS_DEPENDENCY" * @@ -717,7 +726,7 @@ public open class CfnPatchBaseline( * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -732,7 +741,7 @@ public open class CfnPatchBaseline( * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -904,7 +913,7 @@ public open class CfnPatchBaseline( * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -919,7 +928,7 @@ public open class CfnPatchBaseline( * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -932,14 +941,21 @@ public open class CfnPatchBaseline( /** * The action for Patch Manager to take on patches included in the `RejectedPackages` list. * - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it - * is a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the + * patch baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if + * no option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported + * as `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the + * default action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include + * them as dependencies, aren't installed by Patch Manager under any circumstances. If a package + * was installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is - * reported as *InstalledRejected* . + * reported as `INSTALLED_REJECTED` . * * Default: - "ALLOW_AS_DEPENDENCY" * @@ -1128,7 +1144,8 @@ public open class CfnPatchBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline.PatchFilterGroupProperty, - ) : CdkObject(cdkObject), PatchFilterGroupProperty { + ) : CdkObject(cdkObject), + PatchFilterGroupProperty { /** * The set of patch filters that make up the group. * @@ -1274,7 +1291,8 @@ public open class CfnPatchBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline.PatchFilterProperty, - ) : CdkObject(cdkObject), PatchFilterProperty { + ) : CdkObject(cdkObject), + PatchFilterProperty { /** * The key for the filter. * @@ -1482,7 +1500,8 @@ public open class CfnPatchBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline.PatchSourceProperty, - ) : CdkObject(cdkObject), PatchSourceProperty { + ) : CdkObject(cdkObject), + PatchSourceProperty { /** * The value of the yum repo configuration. For example:. * @@ -1632,7 +1651,8 @@ public open class CfnPatchBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline.RuleGroupProperty, - ) : CdkObject(cdkObject), RuleGroupProperty { + ) : CdkObject(cdkObject), + RuleGroupProperty { /** * The rules that make up the rule group. * @@ -1696,9 +1716,19 @@ public open class CfnPatchBaseline( * For example, a value of `7` means that patches are approved seven days after they are * released. * - * You must specify a value for `ApproveAfterDays` . + * This parameter is marked as `Required: No` , but your request must include a value for either + * `ApproveAfterDays` or `ApproveUntilDate` . + * + * Not supported for Debian Server or Ubuntu Server. + * + * + * Use caution when setting this value for Windows Server patch baselines. Because patch updates + * that are replaced by later updates are removed, setting too broad a value for this parameter can + * result in crucial patches not being installed. For more information, see the *Windows Server* + * tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . * - * Exception: Not supported on Debian Server or Ubuntu Server. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-approveafterdays) */ @@ -1707,10 +1737,23 @@ public open class CfnPatchBaseline( /** * The cutoff date for auto approval of released patches. * - * Any patches released on or before this date are installed automatically. Not supported on - * Debian Server or Ubuntu Server. + * Any patches released on or before this date are installed automatically. + * + * Enter dates in the format `YYYY-MM-DD` . For example, `2024-12-31` . + * + * This parameter is marked as `Required: No` , but your request must include a value for either + * `ApproveUntilDate` or `ApproveAfterDays` . + * + * Not supported for Debian Server or Ubuntu Server. + * + * + * Use caution when setting this value for Windows Server patch baselines. Because patch updates + * that are replaced by later updates are removed, setting too broad a value for this parameter can + * result in crucial patches not being installed. For more information, see the *Windows Server* + * tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . * - * Enter dates in the format `YYYY-MM-DD` . For example, `2021-12-31` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-approveuntildate) */ @@ -1756,18 +1799,39 @@ public open class CfnPatchBaseline( * For example, a value of `7` means that patches are approved seven days after they are * released. * - * You must specify a value for `ApproveAfterDays` . + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveAfterDays` or `ApproveUntilDate` . + * + * Not supported for Debian Server or Ubuntu Server. * - * Exception: Not supported on Debian Server or Ubuntu Server. + * + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . */ public fun approveAfterDays(approveAfterDays: Number) /** * @param approveUntilDate The cutoff date for auto approval of released patches. - * Any patches released on or before this date are installed automatically. Not supported on - * Debian Server or Ubuntu Server. + * Any patches released on or before this date are installed automatically. + * + * Enter dates in the format `YYYY-MM-DD` . For example, `2024-12-31` . * - * Enter dates in the format `YYYY-MM-DD` . For example, `2021-12-31` . + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveUntilDate` or `ApproveAfterDays` . + * + * Not supported for Debian Server or Ubuntu Server. + * + * + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . */ public fun approveUntilDate(approveUntilDate: String) @@ -1822,9 +1886,18 @@ public open class CfnPatchBaseline( * For example, a value of `7` means that patches are approved seven days after they are * released. * - * You must specify a value for `ApproveAfterDays` . + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveAfterDays` or `ApproveUntilDate` . + * + * Not supported for Debian Server or Ubuntu Server. + * * - * Exception: Not supported on Debian Server or Ubuntu Server. + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . */ override fun approveAfterDays(approveAfterDays: Number) { cdkBuilder.approveAfterDays(approveAfterDays) @@ -1832,10 +1905,22 @@ public open class CfnPatchBaseline( /** * @param approveUntilDate The cutoff date for auto approval of released patches. - * Any patches released on or before this date are installed automatically. Not supported on - * Debian Server or Ubuntu Server. + * Any patches released on or before this date are installed automatically. + * + * Enter dates in the format `YYYY-MM-DD` . For example, `2024-12-31` . + * + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveUntilDate` or `ApproveAfterDays` . + * + * Not supported for Debian Server or Ubuntu Server. + * * - * Enter dates in the format `YYYY-MM-DD` . For example, `2021-12-31` . + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . */ override fun approveUntilDate(approveUntilDate: String) { cdkBuilder.approveUntilDate(approveUntilDate) @@ -1897,7 +1982,8 @@ public open class CfnPatchBaseline( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaseline.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The number of days after the release date of each patch matched by the rule that the patch * is marked as approved in the patch baseline. @@ -1905,9 +1991,19 @@ public open class CfnPatchBaseline( * For example, a value of `7` means that patches are approved seven days after they are * released. * - * You must specify a value for `ApproveAfterDays` . + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveAfterDays` or `ApproveUntilDate` . + * + * Not supported for Debian Server or Ubuntu Server. + * + * + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . * - * Exception: Not supported on Debian Server or Ubuntu Server. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-approveafterdays) */ @@ -1916,10 +2012,23 @@ public open class CfnPatchBaseline( /** * The cutoff date for auto approval of released patches. * - * Any patches released on or before this date are installed automatically. Not supported on - * Debian Server or Ubuntu Server. + * Any patches released on or before this date are installed automatically. + * + * Enter dates in the format `YYYY-MM-DD` . For example, `2024-12-31` . + * + * This parameter is marked as `Required: No` , but your request must include a value for + * either `ApproveUntilDate` or `ApproveAfterDays` . + * + * Not supported for Debian Server or Ubuntu Server. + * + * + * Use caution when setting this value for Windows Server patch baselines. Because patch + * updates that are replaced by later updates are removed, setting too broad a value for this + * parameter can result in crucial patches not being installed. For more information, see the + * *Windows Server* tab in the topic [How security patches are + * selected](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html) + * in the *AWS Systems Manager User Guide* . * - * Enter dates in the format `YYYY-MM-DD` . For example, `2021-12-31` . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-approveuntildate) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaselineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaselineProps.kt index 2ec368bd04..f182dbd706 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaselineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnPatchBaselineProps.kt @@ -81,7 +81,7 @@ public interface CfnPatchBaselineProps { * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, see - * [About package name formats for approved and rejected patch + * [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -169,7 +169,7 @@ public interface CfnPatchBaselineProps { * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, see - * [About package name formats for approved and rejected patch + * [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -180,14 +180,21 @@ public interface CfnPatchBaselineProps { /** * The action for Patch Manager to take on patches included in the `RejectedPackages` list. * - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it is - * a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the patch + * baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if no + * option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported as + * `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the default + * action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include them + * as dependencies, aren't installed by Patch Manager under any circumstances. If a package was + * installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is reported - * as *InstalledRejected* . + * as `INSTALLED_REJECTED` . * * Default: - "ALLOW_AS_DEPENDENCY" * @@ -241,7 +248,7 @@ public interface CfnPatchBaselineProps { /** * @param approvedPatches A list of explicitly approved patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -250,7 +257,7 @@ public interface CfnPatchBaselineProps { /** * @param approvedPatches A list of explicitly approved patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -336,7 +343,7 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatches A list of explicitly rejected patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -345,7 +352,7 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatches A list of explicitly rejected patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -354,14 +361,21 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatchesAction The action for Patch Manager to take on patches included in the * `RejectedPackages` list. - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it - * is a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the + * patch baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if + * no option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported + * as `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the + * default action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include + * them as dependencies, aren't installed by Patch Manager under any circumstances. If a package + * was installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is - * reported as *InstalledRejected* . + * reported as `INSTALLED_REJECTED` . */ public fun rejectedPatchesAction(rejectedPatchesAction: String) @@ -433,7 +447,7 @@ public interface CfnPatchBaselineProps { /** * @param approvedPatches A list of explicitly approved patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -444,7 +458,7 @@ public interface CfnPatchBaselineProps { /** * @param approvedPatches A list of explicitly approved patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -554,7 +568,7 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatches A list of explicitly rejected patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -565,7 +579,7 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatches A list of explicitly rejected patches for the baseline. * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . */ @@ -575,14 +589,21 @@ public interface CfnPatchBaselineProps { /** * @param rejectedPatchesAction The action for Patch Manager to take on patches included in the * `RejectedPackages` list. - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it - * is a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the + * patch baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if + * no option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported + * as `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the + * default action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include + * them as dependencies, aren't installed by Patch Manager under any circumstances. If a package + * was installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is - * reported as *InstalledRejected* . + * reported as `INSTALLED_REJECTED` . */ override fun rejectedPatchesAction(rejectedPatchesAction: String) { cdkBuilder.rejectedPatchesAction(rejectedPatchesAction) @@ -637,7 +658,8 @@ public interface CfnPatchBaselineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnPatchBaselineProps, - ) : CdkObject(cdkObject), CfnPatchBaselineProps { + ) : CdkObject(cdkObject), + CfnPatchBaselineProps { /** * A set of rules used to include patches in the baseline. * @@ -649,7 +671,7 @@ public interface CfnPatchBaselineProps { * A list of explicitly approved patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -737,7 +759,7 @@ public interface CfnPatchBaselineProps { * A list of explicitly rejected patches for the baseline. * * For information about accepted formats for lists of approved patches and rejected patches, - * see [About package name formats for approved and rejected patch + * see [Package name formats for approved and rejected patch * lists](https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) * in the *AWS Systems Manager User Guide* . * @@ -748,14 +770,21 @@ public interface CfnPatchBaselineProps { /** * The action for Patch Manager to take on patches included in the `RejectedPackages` list. * - * * *`ALLOW_AS_DEPENDENCY`* : A package in the `Rejected` patches list is installed only if it - * is a dependency of another package. It is considered compliant with the patch baseline, and its - * status is reported as `InstalledOther` . This is the default action if no option is specified. - * * *BLOCK* : Packages in the *Rejected patches* list, and packages that include them as - * dependencies, aren't installed by Patch Manager under any circumstances. If a package was - * installed before it was added to the *Rejected patches* list, or is installed outside of Patch + * * **ALLOW_AS_DEPENDENCY** - *Linux and macOS* : A package in the rejected patches list is + * installed only if it is a dependency of another package. It is considered compliant with the + * patch baseline, and its status is reported as `INSTALLED_OTHER` . This is the default action if + * no option is specified. + * + * *Windows Server* : Windows Server doesn't support the concept of package dependencies. If a + * package in the rejected patches list and already installed on the node, its status is reported + * as `INSTALLED_OTHER` . Any package not already installed on the node is skipped. This is the + * default action if no option is specified. + * + * * **BLOCK** - *All OSs* : Packages in the rejected patches list, and packages that include + * them as dependencies, aren't installed by Patch Manager under any circumstances. If a package + * was installed before it was added to the rejected patches list, or is installed outside of Patch * Manager afterward, it's considered noncompliant with the patch baseline and its status is - * reported as *InstalledRejected* . + * reported as `INSTALLED_REJECTED` . * * Default: - "ALLOW_AS_DEPENDENCY" * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSync.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSync.kt index ba62c18100..eb533e5833 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSync.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSync.kt @@ -94,7 +94,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourceDataSync( cdkObject: software.amazon.awscdk.services.ssm.CfnResourceDataSync, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -213,12 +214,12 @@ public open class CfnResourceDataSync( } /** - * + * A name for the resource data sync. */ public open fun syncName(): String = unwrap(this).getSyncName() /** - * + * A name for the resource data sync. */ public open fun syncName(`value`: String) { unwrap(this).setSyncName(`value`) @@ -341,8 +342,10 @@ public open class CfnResourceDataSync( public fun syncFormat(syncFormat: String) /** + * A name for the resource data sync. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname) - * @param syncName + * @param syncName A name for the resource data sync. */ public fun syncName(syncName: String) @@ -480,8 +483,10 @@ public open class CfnResourceDataSync( } /** + * A name for the resource data sync. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname) - * @param syncName + * @param syncName A name for the resource data sync. */ override fun syncName(syncName: String) { cdkBuilder.syncName(syncName) @@ -658,7 +663,8 @@ public open class CfnResourceDataSync( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnResourceDataSync.AwsOrganizationsSourceProperty, - ) : CdkObject(cdkObject), AwsOrganizationsSourceProperty { + ) : CdkObject(cdkObject), + AwsOrganizationsSourceProperty { /** * If an AWS organization is present, this is either `OrganizationalUnits` or * `EntireOrganization` . @@ -840,7 +846,8 @@ public open class CfnResourceDataSync( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnResourceDataSync.S3DestinationProperty, - ) : CdkObject(cdkObject), S3DestinationProperty { + ) : CdkObject(cdkObject), + S3DestinationProperty { /** * The name of the S3 bucket where the aggregated data is stored. * @@ -1095,7 +1102,8 @@ public open class CfnResourceDataSync( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnResourceDataSync.SyncSourceProperty, - ) : CdkObject(cdkObject), SyncSourceProperty { + ) : CdkObject(cdkObject), + SyncSourceProperty { /** * Information about the AwsOrganizationsSource resource data sync source. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSyncProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSyncProps.kt index 74e5fa5dd9..c794e76bd3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSyncProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourceDataSyncProps.kt @@ -102,6 +102,8 @@ public interface CfnResourceDataSyncProps { public fun syncFormat(): String? = unwrap(this).getSyncFormat() /** + * A name for the resource data sync. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname) */ public fun syncName(): String @@ -177,7 +179,7 @@ public interface CfnResourceDataSyncProps { public fun syncFormat(syncFormat: String) /** - * @param syncName the value to be set. + * @param syncName A name for the resource data sync. */ public fun syncName(syncName: String) @@ -274,7 +276,7 @@ public interface CfnResourceDataSyncProps { } /** - * @param syncName the value to be set. + * @param syncName A name for the resource data sync. */ override fun syncName(syncName: String) { cdkBuilder.syncName(syncName) @@ -318,7 +320,8 @@ public interface CfnResourceDataSyncProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnResourceDataSyncProps, - ) : CdkObject(cdkObject), CfnResourceDataSyncProps { + ) : CdkObject(cdkObject), + CfnResourceDataSyncProps { /** * The name of the S3 bucket where the aggregated data is stored. * @@ -367,6 +370,8 @@ public interface CfnResourceDataSyncProps { override fun syncFormat(): String? = unwrap(this).getSyncFormat() /** + * A name for the resource data sync. + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname) */ override fun syncName(): String = unwrap(this).getSyncName() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicy.kt index fe22dc64c3..c5ddf3d5cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicy.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.ssm.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicyProps.kt index 25c6097ce2..b9efdb647b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CfnResourcePolicyProps.kt @@ -84,7 +84,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * A policy you want to associate with a resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CommonStringParameterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CommonStringParameterAttributes.kt index 8b9588cd87..d5510610d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CommonStringParameterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/CommonStringParameterAttributes.kt @@ -36,7 +36,12 @@ public interface CommonStringParameterAttributes { public fun parameterName(): String /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -63,8 +68,12 @@ public interface CommonStringParameterAttributes { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -91,8 +100,12 @@ public interface CommonStringParameterAttributes { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -111,7 +124,8 @@ public interface CommonStringParameterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.CommonStringParameterAttributes, - ) : CdkObject(cdkObject), CommonStringParameterAttributes { + ) : CdkObject(cdkObject), + CommonStringParameterAttributes { /** * The name of the parameter store value. * @@ -121,7 +135,12 @@ public interface CommonStringParameterAttributes { override fun parameterName(): String = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IParameter.kt index 4c53029b8a..4158117024 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IParameter.kt @@ -49,7 +49,8 @@ public interface IParameter : IResource { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.IParameter, - ) : CdkObject(cdkObject), IParameter { + ) : CdkObject(cdkObject), + IParameter { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringListParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringListParameter.kt index a8a3971487..a7abda9993 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringListParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringListParameter.kt @@ -27,7 +27,8 @@ public interface IStringListParameter : IParameter { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.IStringListParameter, - ) : CdkObject(cdkObject), IStringListParameter { + ) : CdkObject(cdkObject), + IStringListParameter { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringParameter.kt index b142553854..b9238d59f1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/IStringParameter.kt @@ -25,7 +25,8 @@ public interface IStringParameter : IParameter { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.IStringParameter, - ) : CdkObject(cdkObject), IStringParameter { + ) : CdkObject(cdkObject), + IStringParameter { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ListParameterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ListParameterAttributes.kt index 4ad255efef..4c1cfc61e4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ListParameterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ListParameterAttributes.kt @@ -79,8 +79,12 @@ public interface ListParameterAttributes : CommonStringParameterAttributes { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -124,8 +128,12 @@ public interface ListParameterAttributes : CommonStringParameterAttributes { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -151,7 +159,8 @@ public interface ListParameterAttributes : CommonStringParameterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.ListParameterAttributes, - ) : CdkObject(cdkObject), ListParameterAttributes { + ) : CdkObject(cdkObject), + ListParameterAttributes { /** * The type of the string list parameter value. * @@ -178,7 +187,12 @@ public interface ListParameterAttributes : CommonStringParameterAttributes { override fun parameterName(): String = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ParameterOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ParameterOptions.kt index 9b26f69e60..486ff7a212 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ParameterOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/ParameterOptions.kt @@ -53,7 +53,12 @@ public interface ParameterOptions { public fun parameterName(): String? = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -97,8 +102,12 @@ public interface ParameterOptions { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -143,8 +152,12 @@ public interface ParameterOptions { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -169,7 +182,8 @@ public interface ParameterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.ParameterOptions, - ) : CdkObject(cdkObject), ParameterOptions { + ) : CdkObject(cdkObject), + ParameterOptions { /** * A regular expression used to validate the parameter value. * @@ -195,7 +209,12 @@ public interface ParameterOptions { override fun parameterName(): String? = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/SecureStringParameterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/SecureStringParameterAttributes.kt index b468577eb9..c9f900c1f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/SecureStringParameterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/SecureStringParameterAttributes.kt @@ -79,8 +79,12 @@ public interface SecureStringParameterAttributes : CommonStringParameterAttribut public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -119,8 +123,12 @@ public interface SecureStringParameterAttributes : CommonStringParameterAttribut } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -146,7 +154,8 @@ public interface SecureStringParameterAttributes : CommonStringParameterAttribut private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.SecureStringParameterAttributes, - ) : CdkObject(cdkObject), SecureStringParameterAttributes { + ) : CdkObject(cdkObject), + SecureStringParameterAttributes { /** * The encryption key that is used to encrypt this parameter. * @@ -163,7 +172,12 @@ public interface SecureStringParameterAttributes : CommonStringParameterAttribut override fun parameterName(): String = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameter.kt index cb9e667138..feff0c6814 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameter.kt @@ -28,7 +28,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class StringListParameter( cdkObject: software.amazon.awscdk.services.ssm.StringListParameter, -) : Resource(cdkObject), IStringListParameter, IParameter { +) : Resource(cdkObject), + IStringListParameter, + IParameter { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -128,7 +130,12 @@ public open class StringListParameter( public fun parameterName(parameterName: String) /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -140,8 +147,7 @@ public open class StringListParameter( * * Default: - auto-detect based on `parameterName` * - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. */ public fun simpleName(simpleName: Boolean) @@ -217,7 +223,12 @@ public open class StringListParameter( } /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -229,8 +240,7 @@ public open class StringListParameter( * * Default: - auto-detect based on `parameterName` * - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. */ override fun simpleName(simpleName: Boolean) { cdkBuilder.simpleName(simpleName) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameterProps.kt index 494623cacd..8e9962ebab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringListParameterProps.kt @@ -65,8 +65,12 @@ public interface StringListParameterProps : ParameterOptions { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -123,8 +127,12 @@ public interface StringListParameterProps : ParameterOptions { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -165,7 +173,8 @@ public interface StringListParameterProps : ParameterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.StringListParameterProps, - ) : CdkObject(cdkObject), StringListParameterProps { + ) : CdkObject(cdkObject), + StringListParameterProps { /** * A regular expression used to validate the parameter value. * @@ -191,7 +200,12 @@ public interface StringListParameterProps : ParameterOptions { override fun parameterName(): String? = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameter.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameter.kt index 63e3bc8f1a..7a9d33d76f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameter.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameter.kt @@ -30,7 +30,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class StringParameter( cdkObject: software.amazon.awscdk.services.ssm.StringParameter, -) : Resource(cdkObject), IStringParameter, IParameter { +) : Resource(cdkObject), + IStringParameter, + IParameter { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -138,7 +140,12 @@ public open class StringParameter( public fun parameterName(parameterName: String) /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -150,8 +157,7 @@ public open class StringParameter( * * Default: - auto-detect based on `parameterName` * - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. */ public fun simpleName(simpleName: Boolean) @@ -240,7 +246,12 @@ public open class StringParameter( } /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose @@ -252,8 +263,7 @@ public open class StringParameter( * * Default: - auto-detect based on `parameterName` * - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. */ override fun simpleName(simpleName: Boolean) { cdkBuilder.simpleName(simpleName) @@ -316,6 +326,14 @@ public open class StringParameter( ): IStringParameter = fromSecureStringParameterAttributes(scope, id, SecureStringParameterAttributes(attrs)) + public fun fromStringParameterArn( + scope: CloudshiftdevConstructsConstruct, + id: String, + stringParameterArn: String, + ): IStringParameter = + software.amazon.awscdk.services.ssm.StringParameter.fromStringParameterArn(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, stringParameterArn).let(IStringParameter::wrap) + public fun fromStringParameterAttributes( scope: CloudshiftdevConstructsConstruct, id: String, @@ -414,6 +432,14 @@ public open class StringParameter( software.amazon.awscdk.services.ssm.StringParameter.valueFromLookup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), parameterName) + public fun valueFromLookup( + scope: CloudshiftdevConstructsConstruct, + parameterName: String, + defaultValue: String, + ): String = + software.amazon.awscdk.services.ssm.StringParameter.valueFromLookup(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + parameterName, defaultValue) + public operator fun invoke( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterAttributes.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterAttributes.kt index 1824f174df..5870011a69 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterAttributes.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterAttributes.kt @@ -116,8 +116,12 @@ public interface StringParameterAttributes : CommonStringParameterAttributes { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -177,8 +181,12 @@ public interface StringParameterAttributes : CommonStringParameterAttributes { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -226,7 +234,8 @@ public interface StringParameterAttributes : CommonStringParameterAttributes { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.StringParameterAttributes, - ) : CdkObject(cdkObject), StringParameterAttributes { + ) : CdkObject(cdkObject), + StringParameterAttributes { /** * Use a dynamic reference as the representation in CloudFormation template level. * @@ -247,7 +256,12 @@ public interface StringParameterAttributes : CommonStringParameterAttributes { override fun parameterName(): String = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterProps.kt index 245bd7687c..7cf86daddc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssm/StringParameterProps.kt @@ -16,21 +16,19 @@ import kotlin.Unit * Example: * * ``` - * // Grant read access to some Role - * IRole role; - * // Create a new SSM Parameter holding a String - * StringParameter param = StringParameter.Builder.create(this, "StringParameter") - * // description: 'Some user-friendly description', - * // name: 'ParameterName', - * .stringValue("Initial parameter value") + * import io.cloudshiftdev.awscdk.services.lambda.*; + * IFunction func; + * StringParameter simpleParameter = StringParameter.Builder.create(this, "StringParameter") + * // the parameter name doesn't contain any '/' + * .parameterName("parameter") + * .stringValue("SOME_VALUE") + * .simpleName(true) * .build(); - * param.grantRead(role); - * // Create a new SSM Parameter holding a StringList - * StringListParameter listParameter = StringListParameter.Builder.create(this, - * "StringListParameter") - * // description: 'Some user-friendly description', - * // name: 'ParameterName', - * .stringListValue(List.of("Initial parameter value A", "Initial parameter value B")) + * StringParameter nonSimpleParameter = StringParameter.Builder.create(this, "StringParameter") + * // the parameter name contains '/' + * .parameterName(String.format("/%s/my/app/param", func.getFunctionName())) + * .stringValue("SOME_VALUE") + * .simpleName(false) * .build(); * ``` */ @@ -88,8 +86,12 @@ public interface StringParameterProps : ParameterOptions { public fun parameterName(parameterName: String) /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -154,8 +156,12 @@ public interface StringParameterProps : ParameterOptions { } /** - * @param simpleName Indicates if the parameter name is a simple name (i.e. does not include "/" - * separators). + * @param simpleName Indicates whether the parameter name is a simple name. + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. + * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose * of rendering SSM parameter ARNs. @@ -198,7 +204,8 @@ public interface StringParameterProps : ParameterOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssm.StringParameterProps, - ) : CdkObject(cdkObject), StringParameterProps { + ) : CdkObject(cdkObject), + StringParameterProps { /** * A regular expression used to validate the parameter value. * @@ -232,7 +239,12 @@ public interface StringParameterProps : ParameterOptions { override fun parameterName(): String? = unwrap(this).getParameterName() /** - * Indicates if the parameter name is a simple name (i.e. does not include "/" separators). + * Indicates whether the parameter name is a simple name. + * + * A parameter name + * without any "/" is considered a simple name. If the parameter name includes + * "/", setting simpleName to true might cause unintended issues such + * as duplicate "/" in the resulting ARN. * * This is required only if `parameterName` is a token, which means we * are unable to detect if the name is simple or "path-like" for the purpose diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContact.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContact.kt index ba239a4aa6..11a90ac208 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContact.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContact.kt @@ -57,7 +57,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContact( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContact, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -394,7 +395,8 @@ public open class CfnContact( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContact.ChannelTargetInfoProperty, - ) : CdkObject(cdkObject), ChannelTargetInfoProperty { + ) : CdkObject(cdkObject), + ChannelTargetInfoProperty { /** * The Amazon Resource Name (ARN) of the contact channel. * @@ -520,7 +522,8 @@ public open class CfnContact( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContact.ContactTargetInfoProperty, - ) : CdkObject(cdkObject), ContactTargetInfoProperty { + ) : CdkObject(cdkObject), + ContactTargetInfoProperty { /** * The Amazon Resource Name (ARN) of the contact. * @@ -704,7 +707,8 @@ public open class CfnContact( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContact.StageProperty, - ) : CdkObject(cdkObject), StageProperty { + ) : CdkObject(cdkObject), + StageProperty { /** * The time to wait until beginning the next stage. * @@ -887,7 +891,8 @@ public open class CfnContact( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContact.TargetsProperty, - ) : CdkObject(cdkObject), TargetsProperty { + ) : CdkObject(cdkObject), + TargetsProperty { /** * Information about the contact channel that Incident Manager engages. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannel.kt index a2f11cd3fc..22d454cc60 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannel.kt @@ -18,6 +18,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * The `AWS::SSMContacts::ContactChannel` resource specifies a contact channel as the method that * Incident Manager uses to engage your contact. * + * + * *Template example* : We recommend creating all Incident Manager `Contacts` resources using a + * single AWS CloudFormation template. For a demonstration, see the examples for + * [AWS::SSMContacts::Contacts](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html) + * . + * + * * Example: * * ``` @@ -39,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnContactChannel( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContactChannel, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannelProps.kt index a62468aa82..ddcd41ce66 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactChannelProps.kt @@ -183,7 +183,8 @@ public interface CfnContactChannelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContactChannelProps, - ) : CdkObject(cdkObject), CfnContactChannelProps { + ) : CdkObject(cdkObject), + CfnContactChannelProps { /** * The details that Incident Manager uses when trying to engage the contact channel. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactProps.kt index a3292a7c89..900a4c85b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnContactProps.kt @@ -184,7 +184,8 @@ public interface CfnContactProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnContactProps, - ) : CdkObject(cdkObject), CfnContactProps { + ) : CdkObject(cdkObject), + CfnContactProps { /** * The unique and identifiable alias of the contact or escalation plan. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlan.kt index 943a7682be..64fe3bcd53 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlan.kt @@ -23,6 +23,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Information about the stages and on-call rotation teams associated with an escalation plan or * engagement plan. * + * + * *Template example* : We recommend creating all Incident Manager `Contacts` resources using a + * single AWS CloudFormation template. For a demonstration, see the examples for + * [AWS::SSMContacts::Contacts](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html) + * . + * + * * Example: * * ``` @@ -54,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPlan( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlan, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -375,7 +383,8 @@ public open class CfnPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlan.ChannelTargetInfoProperty, - ) : CdkObject(cdkObject), ChannelTargetInfoProperty { + ) : CdkObject(cdkObject), + ChannelTargetInfoProperty { /** * The Amazon Resource Name (ARN) of the contact channel. * @@ -501,7 +510,8 @@ public open class CfnPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlan.ContactTargetInfoProperty, - ) : CdkObject(cdkObject), ContactTargetInfoProperty { + ) : CdkObject(cdkObject), + ContactTargetInfoProperty { /** * The Amazon Resource Name (ARN) of the contact. * @@ -652,7 +662,8 @@ public open class CfnPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlan.StageProperty, - ) : CdkObject(cdkObject), StageProperty { + ) : CdkObject(cdkObject), + StageProperty { /** * The time to wait until beginning the next stage. * @@ -827,7 +838,8 @@ public open class CfnPlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlan.TargetsProperty, - ) : CdkObject(cdkObject), TargetsProperty { + ) : CdkObject(cdkObject), + TargetsProperty { /** * Information about the contact channel that Incident Manager engages. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlanProps.kt index 4eb7187ba0..501d51cd9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnPlanProps.kt @@ -160,7 +160,8 @@ public interface CfnPlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnPlanProps, - ) : CdkObject(cdkObject), CfnPlanProps { + ) : CdkObject(cdkObject), + CfnPlanProps { /** * The Amazon Resource Name (ARN) of the contact. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotation.kt index ad59d5e7d8..bf307306be 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotation.kt @@ -24,6 +24,13 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * Specifies a rotation in an on-call schedule. * + * + * *Template example* : We recommend creating all Incident Manager `Contacts` resources using a + * single AWS CloudFormation template. For a demonstration, see the examples for + * [AWS::SSMContacts::Contacts](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html) + * . + * + * * Example: * * ``` @@ -68,7 +75,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRotation( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -564,7 +573,8 @@ public open class CfnRotation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation.CoverageTimeProperty, - ) : CdkObject(cdkObject), CoverageTimeProperty { + ) : CdkObject(cdkObject), + CoverageTimeProperty { /** * Information about when an on-call rotation shift ends. * @@ -672,7 +682,8 @@ public open class CfnRotation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation.MonthlySettingProperty, - ) : CdkObject(cdkObject), MonthlySettingProperty { + ) : CdkObject(cdkObject), + MonthlySettingProperty { /** * The day of the month when monthly recurring on-call rotations begin. * @@ -970,7 +981,8 @@ public open class CfnRotation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation.RecurrenceSettingsProperty, - ) : CdkObject(cdkObject), RecurrenceSettingsProperty { + ) : CdkObject(cdkObject), + RecurrenceSettingsProperty { /** * Information about on-call rotations that recur daily. * @@ -1136,7 +1148,8 @@ public open class CfnRotation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation.ShiftCoverageProperty, - ) : CdkObject(cdkObject), ShiftCoverageProperty { + ) : CdkObject(cdkObject), + ShiftCoverageProperty { /** * The start and end times of the shift. * @@ -1244,7 +1257,8 @@ public open class CfnRotation( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotation.WeeklySettingProperty, - ) : CdkObject(cdkObject), WeeklySettingProperty { + ) : CdkObject(cdkObject), + WeeklySettingProperty { /** * The day of the week when weekly recurring on-call shift rotations begins. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotationProps.kt index d68e6e9ede..54664b5ba2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmcontacts/CfnRotationProps.kt @@ -313,7 +313,8 @@ public interface CfnRotationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmcontacts.CfnRotationProps, - ) : CdkObject(cdkObject), CfnRotationProps { + ) : CdkObject(cdkObject), + CfnRotationProps { /** * The Amazon Resource Names (ARNs) of the contacts to add to the rotation. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSet.kt index 2ad74bc1e6..977279c9dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSet.kt @@ -53,7 +53,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnReplicationSet( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnReplicationSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -380,7 +382,8 @@ public open class CfnReplicationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnReplicationSet.RegionConfigurationProperty, - ) : CdkObject(cdkObject), RegionConfigurationProperty { + ) : CdkObject(cdkObject), + RegionConfigurationProperty { /** * The AWS Key Management Service key ID to use to encrypt your replication set. * @@ -514,7 +517,8 @@ public open class CfnReplicationSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnReplicationSet.ReplicationRegionProperty, - ) : CdkObject(cdkObject), ReplicationRegionProperty { + ) : CdkObject(cdkObject), + ReplicationRegionProperty { /** * Specifies the Region configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSetProps.kt index dc86a77444..e3fcecd469 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnReplicationSetProps.kt @@ -168,7 +168,8 @@ public interface CfnReplicationSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnReplicationSetProps, - ) : CdkObject(cdkObject), CfnReplicationSetProps { + ) : CdkObject(cdkObject), + CfnReplicationSetProps { /** * Determines if the replication set deletion protection is enabled or not. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlan.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlan.kt index 0563cc9f27..31a37dbbf8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlan.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlan.kt @@ -92,7 +92,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResponsePlan( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -786,7 +788,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * Details about the Systems Manager automation document that will be used as a runbook during * an incident. @@ -894,7 +897,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.ChatChannelProperty, - ) : CdkObject(cdkObject), ChatChannelProperty { + ) : CdkObject(cdkObject), + ChatChannelProperty { /** * The Amazon SNS targets that AWS Chatbot uses to notify the chat channel of updates to an * incident. @@ -1055,7 +1059,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.DynamicSsmParameterProperty, - ) : CdkObject(cdkObject), DynamicSsmParameterProperty { + ) : CdkObject(cdkObject), + DynamicSsmParameterProperty { /** * The key parameter to use when running the Systems Manager Automation runbook. * @@ -1149,7 +1154,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.DynamicSsmParameterValueProperty, - ) : CdkObject(cdkObject), DynamicSsmParameterValueProperty { + ) : CdkObject(cdkObject), + DynamicSsmParameterValueProperty { /** * Variable dynamic parameters. * @@ -1451,7 +1457,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.IncidentTemplateProperty, - ) : CdkObject(cdkObject), IncidentTemplateProperty { + ) : CdkObject(cdkObject), + IncidentTemplateProperty { /** * Used to create only one incident record for an incident. * @@ -1625,7 +1632,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.IntegrationProperty, - ) : CdkObject(cdkObject), IntegrationProperty { + ) : CdkObject(cdkObject), + IntegrationProperty { /** * Information about the PagerDuty service where the response plan creates an incident. * @@ -1708,7 +1716,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.NotificationTargetItemProperty, - ) : CdkObject(cdkObject), NotificationTargetItemProperty { + ) : CdkObject(cdkObject), + NotificationTargetItemProperty { /** * The Amazon Resource Name (ARN) of the Amazon SNS topic. * @@ -1874,7 +1883,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.PagerDutyConfigurationProperty, - ) : CdkObject(cdkObject), PagerDutyConfigurationProperty { + ) : CdkObject(cdkObject), + PagerDutyConfigurationProperty { /** * The name of the PagerDuty configuration. * @@ -1976,7 +1986,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.PagerDutyIncidentConfigurationProperty, - ) : CdkObject(cdkObject), PagerDutyIncidentConfigurationProperty { + ) : CdkObject(cdkObject), + PagerDutyIncidentConfigurationProperty { /** * The ID of the PagerDuty service that the response plan associates with an incident when it * launches. @@ -2229,7 +2240,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.SsmAutomationProperty, - ) : CdkObject(cdkObject), SsmAutomationProperty { + ) : CdkObject(cdkObject), + SsmAutomationProperty { /** * The automation document's name. * @@ -2380,7 +2392,8 @@ public open class CfnResponsePlan( private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlan.SsmParameterProperty, - ) : CdkObject(cdkObject), SsmParameterProperty { + ) : CdkObject(cdkObject), + SsmParameterProperty { /** * The key parameter to use when running the Automation runbook. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlanProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlanProps.kt index e730baf644..3e12f2d850 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlanProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmincidents/CfnResponsePlanProps.kt @@ -392,7 +392,8 @@ public interface CfnResponsePlanProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.ssmincidents.CfnResponsePlanProps, - ) : CdkObject(cdkObject), CfnResponsePlanProps { + ) : CdkObject(cdkObject), + CfnResponsePlanProps { /** * The actions that the response plan starts at the beginning of an incident. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManager.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManager.kt new file mode 100644 index 0000000000..9de6e6fce9 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManager.kt @@ -0,0 +1,2802 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ssmquicksetup + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates a Quick Setup configuration manager resource. + * + * This object is a collection of desired state configurations for multiple configuration + * definitions and summaries describing the deployments of those definitions. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ssmquicksetup.*; + * CfnConfigurationManager cfnConfigurationManager = CfnConfigurationManager.Builder.create(this, + * "MyCfnConfigurationManager") + * .configurationDefinitions(List.of(ConfigurationDefinitionProperty.builder() + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .type("type") + * // the properties below are optional + * .id("id") + * .localDeploymentAdministrationRoleArn("localDeploymentAdministrationRoleArn") + * .localDeploymentExecutionRoleName("localDeploymentExecutionRoleName") + * .typeVersion("typeVersion") + * .build())) + * // the properties below are optional + * .description("description") + * .name("name") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html) + */ +public open class CfnConfigurationManager( + cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConfigurationManagerProps, + ) : + this(software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnConfigurationManagerProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnConfigurationManagerProps.Builder.() -> Unit, + ) : this(scope, id, CfnConfigurationManagerProps(props) + ) + + /** + * The datetime stamp when the configuration manager was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The datetime stamp when the configuration manager was last updated. + */ + public open fun attrLastModifiedAt(): String = unwrap(this).getAttrLastModifiedAt() + + /** + * The ARN of the Quick Setup configuration. + */ + public open fun attrManagerArn(): String = unwrap(this).getAttrManagerArn() + + /** + * Summaries of the state of the configuration manager. + * + * These summaries include an aggregate of the statuses from the configuration definition + * associated with the configuration manager. This includes deployment statuses, association + * statuses, drift statuses, health checks, and more. + */ + public open fun attrStatusSummaries(): IResolvable = + unwrap(this).getAttrStatusSummaries().let(IResolvable::wrap) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + */ + public open fun configurationDefinitions(): Any = unwrap(this).getConfigurationDefinitions() + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + */ + public open fun configurationDefinitions(`value`: IResolvable) { + unwrap(this).setConfigurationDefinitions(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + */ + public open fun configurationDefinitions(`value`: List) { + unwrap(this).setConfigurationDefinitions(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + */ + public open fun configurationDefinitions(vararg `value`: Any): Unit = + configurationDefinitions(`value`.toList()) + + /** + * The description of the configuration. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the configuration. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the configuration. + */ + public open fun name(): String? = unwrap(this).getName() + + /** + * The name of the configuration. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Key-value pairs of metadata to assign to the configuration manager. + */ + public open fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * Key-value pairs of metadata to assign to the configuration manager. + */ + public open fun tags(`value`: Map) { + unwrap(this).setTags(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.ssmquicksetup.CfnConfigurationManager]. + */ + @CdkDslMarker + public interface Builder { + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(configurationDefinitions: IResolvable) + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(configurationDefinitions: List) + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(vararg configurationDefinitions: Any) + + /** + * The description of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-description) + * @param description The description of the configuration. + */ + public fun description(description: String) + + /** + * The name of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-name) + * @param name The name of the configuration. + */ + public fun name(name: String) + + /** + * Key-value pairs of metadata to assign to the configuration manager. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-tags) + * @param tags Key-value pairs of metadata to assign to the configuration manager. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.Builder = + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.Builder.create(scope, + id) + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(configurationDefinitions: IResolvable) { + cdkBuilder.configurationDefinitions(configurationDefinitions.let(IResolvable.Companion::unwrap)) + } + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(configurationDefinitions: List) { + cdkBuilder.configurationDefinitions(configurationDefinitions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(vararg configurationDefinitions: Any): Unit = + configurationDefinitions(configurationDefinitions.toList()) + + /** + * The description of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-description) + * @param description The description of the configuration. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The name of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-name) + * @param name The name of the configuration. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Key-value pairs of metadata to assign to the configuration manager. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-tags) + * @param tags Key-value pairs of metadata to assign to the configuration manager. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnConfigurationManager { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnConfigurationManager(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager): + CfnConfigurationManager = CfnConfigurationManager(cdkObject) + + internal fun unwrap(wrapped: CfnConfigurationManager): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager = wrapped.cdkObject as + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager + } + + /** + * The definition of a Quick Setup configuration. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ssmquicksetup.*; + * ConfigurationDefinitionProperty configurationDefinitionProperty = + * ConfigurationDefinitionProperty.builder() + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .type("type") + * // the properties below are optional + * .id("id") + * .localDeploymentAdministrationRoleArn("localDeploymentAdministrationRoleArn") + * .localDeploymentExecutionRoleName("localDeploymentExecutionRoleName") + * .typeVersion("typeVersion") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html) + */ + public interface ConfigurationDefinitionProperty { + /** + * The ID of the configuration definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-id) + */ + public fun id(): String? = unwrap(this).getId() + + /** + * The ARN of the IAM role used to administrate local configuration deployments. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-localdeploymentadministrationrolearn) + */ + public fun localDeploymentAdministrationRoleArn(): String? = + unwrap(this).getLocalDeploymentAdministrationRoleArn() + + /** + * The name of the IAM role used to deploy local configurations. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-localdeploymentexecutionrolename) + */ + public fun localDeploymentExecutionRoleName(): String? = + unwrap(this).getLocalDeploymentExecutionRoleName() + + /** + * The parameters for the configuration definition type. + * + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated on + * the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator permissions + * for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job function + * to use. You must provide a value for this parameter if you specify `CustomPermissions` for the + * `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift remediation. + * The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and `none` . The + * default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift remediation. + * The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and `none` . The + * default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources are + * recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for notifications. + * You must specify a value for this parameter if you use the `UseExistingTopic` notification + * option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift remediation. + * The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and `none` . The + * default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated on + * the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch agent + * is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch agent + * is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all instances + * in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You must + * provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` for + * the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift remediation. + * The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and `none` . The + * default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all instances + * in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You must + * provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` for + * the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, or + * scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all instances + * in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You must + * provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` for + * the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration deployment. + * You only need to provide a value for this parameter if you want to deploy the configuration + * locally. A value must be provided for either `TargetAccounts` or `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-parameters) + */ + public fun parameters(): Any + + /** + * The type of the Quick Setup configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-type) + */ + public fun type(): String + + /** + * The version of the Quick Setup type used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-typeversion) + */ + public fun typeVersion(): String? = unwrap(this).getTypeVersion() + + /** + * A builder for [ConfigurationDefinitionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param id The ID of the configuration definition. + */ + public fun id(id: String) + + /** + * @param localDeploymentAdministrationRoleArn The ARN of the IAM role used to administrate + * local configuration deployments. + */ + public fun localDeploymentAdministrationRoleArn(localDeploymentAdministrationRoleArn: String) + + /** + * @param localDeploymentExecutionRoleName The name of the IAM role used to deploy local + * configurations. + */ + public fun localDeploymentExecutionRoleName(localDeploymentExecutionRoleName: String) + + /** + * @param parameters The parameters for the configuration definition type. + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator + * permissions for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job + * function to use. You must provide a value for this parameter if you specify + * `CustomPermissions` for the `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources + * are recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for + * notifications. You must specify a value for this parameter if you use the `UseExistingTopic` + * notification option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` + * . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, + * or scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + */ + public fun parameters(parameters: IResolvable) + + /** + * @param parameters The parameters for the configuration definition type. + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator + * permissions for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job + * function to use. You must provide a value for this parameter if you specify + * `CustomPermissions` for the `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources + * are recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for + * notifications. You must specify a value for this parameter if you use the `UseExistingTopic` + * notification option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` + * . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, + * or scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + */ + public fun parameters(parameters: Map) + + /** + * @param type The type of the Quick Setup configuration. + */ + public fun type(type: String) + + /** + * @param typeVersion The version of the Quick Setup type used. + */ + public fun typeVersion(typeVersion: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty.Builder + = + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty.builder() + + /** + * @param id The ID of the configuration definition. + */ + override fun id(id: String) { + cdkBuilder.id(id) + } + + /** + * @param localDeploymentAdministrationRoleArn The ARN of the IAM role used to administrate + * local configuration deployments. + */ + override + fun localDeploymentAdministrationRoleArn(localDeploymentAdministrationRoleArn: String) { + cdkBuilder.localDeploymentAdministrationRoleArn(localDeploymentAdministrationRoleArn) + } + + /** + * @param localDeploymentExecutionRoleName The name of the IAM role used to deploy local + * configurations. + */ + override fun localDeploymentExecutionRoleName(localDeploymentExecutionRoleName: String) { + cdkBuilder.localDeploymentExecutionRoleName(localDeploymentExecutionRoleName) + } + + /** + * @param parameters The parameters for the configuration definition type. + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator + * permissions for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job + * function to use. You must provide a value for this parameter if you specify + * `CustomPermissions` for the `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources + * are recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for + * notifications. You must specify a value for this parameter if you use the `UseExistingTopic` + * notification option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` + * . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, + * or scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + */ + override fun parameters(parameters: IResolvable) { + cdkBuilder.parameters(parameters.let(IResolvable.Companion::unwrap)) + } + + /** + * @param parameters The parameters for the configuration definition type. + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator + * permissions for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job + * function to use. You must provide a value for this parameter if you specify + * `CustomPermissions` for the `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources + * are recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for + * notifications. You must specify a value for this parameter if you use the `UseExistingTopic` + * notification option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` + * . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, + * or scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters) + } + + /** + * @param type The type of the Quick Setup configuration. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + /** + * @param typeVersion The version of the Quick Setup type used. + */ + override fun typeVersion(typeVersion: String) { + cdkBuilder.typeVersion(typeVersion) + } + + public fun build(): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty, + ) : CdkObject(cdkObject), + ConfigurationDefinitionProperty { + /** + * The ID of the configuration definition. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-id) + */ + override fun id(): String? = unwrap(this).getId() + + /** + * The ARN of the IAM role used to administrate local configuration deployments. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-localdeploymentadministrationrolearn) + */ + override fun localDeploymentAdministrationRoleArn(): String? = + unwrap(this).getLocalDeploymentAdministrationRoleArn() + + /** + * The name of the IAM role used to deploy local configurations. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-localdeploymentexecutionrolename) + */ + override fun localDeploymentExecutionRoleName(): String? = + unwrap(this).getLocalDeploymentExecutionRoleName() + + /** + * The parameters for the configuration definition type. + * + * Parameters for configuration definitions vary based the configuration type. The following + * tables outline the parameters for each configuration type. + * + * * **OpsCenter (Type: AWS QuickSetupType-SSMOpsCenter)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Scheduler (Type: AWS QuickSetupType-Scheduler)** - - `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. + * * `ICalendarString` + * * Description: (Required) An iCalendar formatted string containing the schedule you want + * Change Manager to use. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Default Host Management Configuration (Type: AWS QuickSetupType-DHMC)** - - + * `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Resource Explorer (Type: AWS QuickSetupType-ResourceExplorer)** - - + * `SelectedAggregatorRegion` + * * Description: (Required) The AWS Region where you want to create the aggregator index. + * * `ReplaceExistingAggregator` + * * Description: (Required) A boolean value that determines whether to demote an existing + * aggregator if it is in a Region that differs from the value you specify for the + * `SelectedAggregatorRegion` . + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Change Manager (Type: AWS QuickSetupType-SSMChangeMgr)** - - `DelegatedAccountId` + * * Description: (Required) The ID of the delegated administrator account. + * * `JobFunction` + * * Description: (Required) The name for the Change Manager job function. + * * `PermissionType` + * * Description: (Optional) Specifies whether you want to use default administrator + * permissions for the job function role, or provide a custom IAM policy. The valid values are + * `CustomPermissions` and `AdminPermissions` . The default value for the parameter is + * `CustomerPermissions` . + * * `CustomPermissions` + * * Description: (Optional) A JSON string containing the IAM policy you want your job + * function to use. You must provide a value for this parameter if you specify + * `CustomPermissions` for the `PermissionType` parameter. + * * `TargetOrganizationalUnits` + * * Description: (Required) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **DevOps Guru (Type: AWS QuickSetupType-DevOpsGuru)** - - `AnalyseAllResources` + * * Description: (Optional) A boolean value that determines whether DevOps Guru analyzes all + * AWS CloudFormation stacks in the account. The default value is " `false` ". + * * `EnableSnsNotifications` + * * Description: (Optional) A boolean value that determines whether DevOps Guru sends + * notifications when an insight is created. The default value is " `true` ". + * * `EnableSsmOpsItems` + * * Description: (Optional) A boolean value that determines whether DevOps Guru creates an + * OpsCenter OpsItem when an insight is created. The default value is " `true` ". + * * `EnableDriftRemediation` + * * Description: (Optional) A boolean value that determines whether a drift remediation + * schedule is used. The default value is " `false` ". + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Conformance Packs (Type: AWS QuickSetupType-CFGCPacks)** - - `DelegatedAccountId` + * * Description: (Optional) The ID of the delegated administrator account. This parameter is + * required for Organization deployments. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `none` ". + * * `CPackNames` + * * Description: (Required) A comma separated list of AWS Config conformance packs. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **AWS Config Recording (Type: AWS QuickSetupType-CFGRecording)** - - `RecordAllResources` + * * Description: (Optional) A boolean value that determines whether all supported resources + * are recorded. The default value is " `true` ". + * * `ResourceTypesToRecord` + * * Description: (Optional) A comma separated list of resource types you want to record. + * * `RecordGlobalResourceTypes` + * * Description: (Optional) A boolean value that determines whether global resources are + * recorded with all resource configurations. The default value is " `false` ". + * * `GlobalResourceTypesRegion` + * * Description: (Optional) Determines the AWS Region where global resources are recorded. + * * `UseCustomBucket` + * * Description: (Optional) A boolean value that determines whether a custom Amazon S3 bucket + * is used for delivery. The default value is " `false` ". + * * `DeliveryBucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * configuration snapshots and configuration history files to. + * * `DeliveryBucketPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `NotificationOptions` + * * Description: (Optional) Determines the notification configuration for the recorder. The + * valid values are `NoStreaming` , `UseExistingTopic` , and `CreateTopic` . The default value is + * `NoStreaming` . + * * `CustomDeliveryTopicAccountId` + * * Description: (Optional) The ID of the AWS account where the Amazon SNS topic you want to + * use for notifications resides. You must specify a value for this parameter if you use the + * `UseExistingTopic` notification option. + * * `CustomDeliveryTopicName` + * * Description: (Optional) The name of the Amazon SNS topic you want to use for + * notifications. You must specify a value for this parameter if you use the `UseExistingTopic` + * notification option. + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(7 days)` , `rate(1 days)` , and + * `none` . The default value is " `none` ". + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) The ID of the root of your Organization. This configuration type + * doesn't currently support choosing specific OUs. The configuration will be deployed to all the + * OUs in the Organization. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Host Management (Type: AWS QuickSetupType-SSMHostMgmt)** - - `UpdateSSMAgent` + * * Description: (Optional) A boolean value that determines whether the SSM Agent is updated + * on the target instances every 2 weeks. The default value is " `true` ". + * * `UpdateEc2LaunchAgent` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `false` ". + * * `CollectInventory` + * * Description: (Optional) A boolean value that determines whether the EC2 Launch agent is + * updated on the target instances every month. The default value is " `true` ". + * * `ScanInstances` + * * Description: (Optional) A boolean value that determines whether the target instances are + * scanned daily for available patches. The default value is " `true` ". + * * `InstallCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is installed on the target instances. The default value is " `false` ". + * * `UpdateCloudWatchAgent` + * * Description: (Optional) A boolean value that determines whether the Amazon CloudWatch + * agent is updated on the target instances every month. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Optional) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Optional) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Optional) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Distributor (Type: AWS QuickSetupType-Distributor)** - - `PackagesToInstall` + * * Description: (Required) A comma separated list of packages you want to install on the + * target instances. The valid values are `AWSEFSTools` , `AWSCWAgent` , and `AWSEC2LaunchAgent` + * . + * * `RemediationSchedule` + * * Description: (Optional) A rate expression that defines the schedule for drift + * remediation. The valid values are `rate(30 days)` , `rate(14 days)` , `rate(2 days)` , and + * `none` . The default value is " `rate(30 days)` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * * **Patch Policy (Type: AWS QuickSetupType-PatchPolicy)** - - `PatchPolicyName` + * * Description: (Required) A name for the patch policy. The value you provide is applied to + * target Amazon EC2 instances as a tag. + * * `SelectedPatchBaselines` + * * Description: (Required) An array of JSON objects containing the information for the patch + * baselines to include in your patch policy. + * * `PatchBaselineUseDefault` + * * Description: (Optional) A boolean value that determines whether the selected patch + * baselines are all AWS provided. + * * `ConfigurationOptionsPatchOperation` + * * Description: (Optional) Determines whether target instances scan for available patches, + * or scan and install available patches. The valid values are `Scan` and `ScanAndInstall` . The + * default value for the parameter is `Scan` . + * * `ConfigurationOptionsScanValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * scan for available patches. + * * `ConfigurationOptionsInstallValue` + * * Description: (Optional) A cron expression that is used as the schedule for when instances + * install available patches. + * * `ConfigurationOptionsScanNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `ConfigurationOptionsInstallNextInterval` + * * Description: (Optional) A boolean value that determines whether instances should scan for + * available patches at the next cron interval. The default value is " `false` ". + * * `RebootOption` + * * Description: (Optional) A boolean value that determines whether instances are rebooted + * after patches are installed. The default value is " `false` ". + * * `IsPolicyAttachAllowed` + * * Description: (Optional) A boolean value that determines whether Quick Setup attaches + * policies to instances profiles already associated with the target instances. The default value + * is " `false` ". + * * `OutputLogEnableS3` + * * Description: (Optional) A boolean value that determines whether command output logs are + * sent to Amazon S3. + * * `OutputS3Location` + * * Description: (Optional) A JSON string containing information about the Amazon S3 bucket + * where you want to store the output details of the request. + * * `OutputS3BucketRegion` + * * Description: (Optional) The AWS Region where the Amazon S3 bucket you want AWS Config to + * deliver command output to is located. + * * `OutputS3BucketName` + * * Description: (Optional) The name of the Amazon S3 bucket you want AWS Config to deliver + * command output to. + * * `OutputS3KeyPrefix` + * * Description: (Optional) The key prefix you want to use in the custom Amazon S3 bucket. + * * `TargetType` + * * Description: (Optional) Determines how instances are targeted for local account + * deployments. Don't specify a value for this parameter if you're deploying to OUs. The valid + * values are `*` , `InstanceIds` , `ResourceGroups` , and `Tags` . Use `*` to target all + * instances in the account. + * * `TargetInstances` + * * Description: (Optional) A comma separated list of instance IDs. You must provide a value + * for this parameter if you specify `InstanceIds` for the `TargetType` parameter. + * * `TargetTagKey` + * * Description: (Required) The tag key assigned to the instances you want to target. You + * must provide a value for this parameter if you specify `Tags` for the `TargetType` parameter. + * * `TargetTagValue` + * * Description: (Required) The value of the tag key assigned to the instances you want to + * target. You must provide a value for this parameter if you specify `Tags` for the `TargetType` + * parameter. + * * `ResourceGroupName` + * * Description: (Required) The name of the resource group associated with the instances you + * want to target. You must provide a value for this parameter if you specify `ResourceGroups` + * for the `TargetType` parameter. + * * `TargetAccounts` + * * Description: (Optional) The ID of the AWS account initiating the configuration + * deployment. You only need to provide a value for this parameter if you want to deploy the + * configuration locally. A value must be provided for either `TargetAccounts` or + * `TargetOrganizationalUnits` . + * * `TargetOrganizationalUnits` + * * Description: (Optional) A comma separated list of organizational units (OUs) you want to + * deploy the configuration to. + * * `TargetRegions` + * * Description: (Required) A comma separated list of AWS Regions you want to deploy the + * configuration to. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-parameters) + */ + override fun parameters(): Any = unwrap(this).getParameters() + + /** + * The type of the Quick Setup configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-type) + */ + override fun type(): String = unwrap(this).getType() + + /** + * The version of the Quick Setup type used. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-configurationdefinition.html#cfn-ssmquicksetup-configurationmanager-configurationdefinition-typeversion) + */ + override fun typeVersion(): String? = unwrap(this).getTypeVersion() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ConfigurationDefinitionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty): + ConfigurationDefinitionProperty = CdkObjectWrappers.wrap(cdkObject) as? + ConfigurationDefinitionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ConfigurationDefinitionProperty): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.ConfigurationDefinitionProperty + } + } + + /** + * A summarized description of the status. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ssmquicksetup.*; + * StatusSummaryProperty statusSummaryProperty = StatusSummaryProperty.builder() + * .lastUpdatedAt("lastUpdatedAt") + * .statusType("statusType") + * // the properties below are optional + * .status("status") + * .statusDetails(Map.of( + * "statusDetailsKey", "statusDetails")) + * .statusMessage("statusMessage") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html) + */ + public interface StatusSummaryProperty { + /** + * The datetime stamp when the status was last updated. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-lastupdatedat) + */ + public fun lastUpdatedAt(): String + + /** + * The current status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-status) + */ + public fun status(): String? = unwrap(this).getStatus() + + /** + * Details about the status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statusdetails) + */ + public fun statusDetails(): Any? = unwrap(this).getStatusDetails() + + /** + * When applicable, returns an informational message relevant to the current status and status + * type of the status summary object. + * + * We don't recommend implementing parsing logic around this value since the messages returned + * can vary in format. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statusmessage) + */ + public fun statusMessage(): String? = unwrap(this).getStatusMessage() + + /** + * The type of a status summary. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statustype) + */ + public fun statusType(): String + + /** + * A builder for [StatusSummaryProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param lastUpdatedAt The datetime stamp when the status was last updated. + */ + public fun lastUpdatedAt(lastUpdatedAt: String) + + /** + * @param status The current status. + */ + public fun status(status: String) + + /** + * @param statusDetails Details about the status. + */ + public fun statusDetails(statusDetails: IResolvable) + + /** + * @param statusDetails Details about the status. + */ + public fun statusDetails(statusDetails: Map) + + /** + * @param statusMessage When applicable, returns an informational message relevant to the + * current status and status type of the status summary object. + * We don't recommend implementing parsing logic around this value since the messages returned + * can vary in format. + */ + public fun statusMessage(statusMessage: String) + + /** + * @param statusType The type of a status summary. + */ + public fun statusType(statusType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty.Builder + = + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty.builder() + + /** + * @param lastUpdatedAt The datetime stamp when the status was last updated. + */ + override fun lastUpdatedAt(lastUpdatedAt: String) { + cdkBuilder.lastUpdatedAt(lastUpdatedAt) + } + + /** + * @param status The current status. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * @param statusDetails Details about the status. + */ + override fun statusDetails(statusDetails: IResolvable) { + cdkBuilder.statusDetails(statusDetails.let(IResolvable.Companion::unwrap)) + } + + /** + * @param statusDetails Details about the status. + */ + override fun statusDetails(statusDetails: Map) { + cdkBuilder.statusDetails(statusDetails) + } + + /** + * @param statusMessage When applicable, returns an informational message relevant to the + * current status and status type of the status summary object. + * We don't recommend implementing parsing logic around this value since the messages returned + * can vary in format. + */ + override fun statusMessage(statusMessage: String) { + cdkBuilder.statusMessage(statusMessage) + } + + /** + * @param statusType The type of a status summary. + */ + override fun statusType(statusType: String) { + cdkBuilder.statusType(statusType) + } + + public fun build(): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty, + ) : CdkObject(cdkObject), + StatusSummaryProperty { + /** + * The datetime stamp when the status was last updated. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-lastupdatedat) + */ + override fun lastUpdatedAt(): String = unwrap(this).getLastUpdatedAt() + + /** + * The current status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-status) + */ + override fun status(): String? = unwrap(this).getStatus() + + /** + * Details about the status. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statusdetails) + */ + override fun statusDetails(): Any? = unwrap(this).getStatusDetails() + + /** + * When applicable, returns an informational message relevant to the current status and status + * type of the status summary object. + * + * We don't recommend implementing parsing logic around this value since the messages returned + * can vary in format. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statusmessage) + */ + override fun statusMessage(): String? = unwrap(this).getStatusMessage() + + /** + * The type of a status summary. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmquicksetup-configurationmanager-statussummary.html#cfn-ssmquicksetup-configurationmanager-statussummary-statustype) + */ + override fun statusType(): String = unwrap(this).getStatusType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): StatusSummaryProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty): + StatusSummaryProperty = CdkObjectWrappers.wrap(cdkObject) as? StatusSummaryProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: StatusSummaryProperty): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManager.StatusSummaryProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManagerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManagerProps.kt new file mode 100644 index 0000000000..2576fe37f6 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ssmquicksetup/CfnConfigurationManagerProps.kt @@ -0,0 +1,216 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.ssmquicksetup + +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Properties for defining a `CfnConfigurationManager`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.ssmquicksetup.*; + * CfnConfigurationManagerProps cfnConfigurationManagerProps = + * CfnConfigurationManagerProps.builder() + * .configurationDefinitions(List.of(ConfigurationDefinitionProperty.builder() + * .parameters(Map.of( + * "parametersKey", "parameters")) + * .type("type") + * // the properties below are optional + * .id("id") + * .localDeploymentAdministrationRoleArn("localDeploymentAdministrationRoleArn") + * .localDeploymentExecutionRoleName("localDeploymentExecutionRoleName") + * .typeVersion("typeVersion") + * .build())) + * // the properties below are optional + * .description("description") + * .name("name") + * .tags(Map.of( + * "tagsKey", "tags")) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html) + */ +public interface CfnConfigurationManagerProps { + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + */ + public fun configurationDefinitions(): Any + + /** + * The description of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * Key-value pairs of metadata to assign to the configuration manager. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-tags) + */ + public fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + + /** + * A builder for [CfnConfigurationManagerProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(configurationDefinitions: IResolvable) + + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(configurationDefinitions: List) + + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + public fun configurationDefinitions(vararg configurationDefinitions: Any) + + /** + * @param description The description of the configuration. + */ + public fun description(description: String) + + /** + * @param name The name of the configuration. + */ + public fun name(name: String) + + /** + * @param tags Key-value pairs of metadata to assign to the configuration manager. + */ + public fun tags(tags: Map) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps.Builder = + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps.builder() + + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(configurationDefinitions: IResolvable) { + cdkBuilder.configurationDefinitions(configurationDefinitions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(configurationDefinitions: List) { + cdkBuilder.configurationDefinitions(configurationDefinitions.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param configurationDefinitions The definition of the Quick Setup configuration that the + * configuration manager deploys. + */ + override fun configurationDefinitions(vararg configurationDefinitions: Any): Unit = + configurationDefinitions(configurationDefinitions.toList()) + + /** + * @param description The description of the configuration. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param name The name of the configuration. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Key-value pairs of metadata to assign to the configuration manager. + */ + override fun tags(tags: Map) { + cdkBuilder.tags(tags) + } + + public fun build(): software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps, + ) : CdkObject(cdkObject), + CfnConfigurationManagerProps { + /** + * The definition of the Quick Setup configuration that the configuration manager deploys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-configurationdefinitions) + */ + override fun configurationDefinitions(): Any = unwrap(this).getConfigurationDefinitions() + + /** + * The description of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The name of the configuration. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * Key-value pairs of metadata to assign to the configuration manager. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmquicksetup-configurationmanager.html#cfn-ssmquicksetup-configurationmanager-tags) + */ + override fun tags(): Map = unwrap(this).getTags() ?: emptyMap() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnConfigurationManagerProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps): + CfnConfigurationManagerProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnConfigurationManagerProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnConfigurationManagerProps): + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.ssmquicksetup.CfnConfigurationManagerProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplication.kt new file mode 100644 index 0000000000..77f43c9235 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplication.kt @@ -0,0 +1,718 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an application in IAM Identity Center for the given application provider. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication") + * .applicationProviderArn("applicationProviderArn") + * .instanceArn("instanceArn") + * .name("name") + * // the properties below are optional + * .description("description") + * .portalOptions(PortalOptionsConfigurationProperty.builder() + * .signInOptions(SignInOptionsProperty.builder() + * .origin("origin") + * // the properties below are optional + * .applicationUrl("applicationUrl") + * .build()) + * .visibility("visibility") + * .build()) + * .status("status") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html) + */ +public open class CfnApplication( + cdkObject: software.amazon.awscdk.services.sso.CfnApplication, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnApplicationProps, + ) : + this(software.amazon.awscdk.services.sso.CfnApplication(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnApplicationProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnApplicationProps.Builder.() -> Unit, + ) : this(scope, id, CfnApplicationProps(props) + ) + + /** + * The ARN of the application provider for this application. + */ + public open fun applicationProviderArn(): String = unwrap(this).getApplicationProviderArn() + + /** + * The ARN of the application provider for this application. + */ + public open fun applicationProviderArn(`value`: String) { + unwrap(this).setApplicationProviderArn(`value`) + } + + /** + * The ARN of the application. + */ + public open fun attrApplicationArn(): String = unwrap(this).getAttrApplicationArn() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the application. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the application. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + */ + public open fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + */ + public open fun instanceArn(`value`: String) { + unwrap(this).setInstanceArn(`value`) + } + + /** + * The name of the application. + */ + public open fun name(): String = unwrap(this).getName() + + /** + * The name of the application. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * A structure that describes the options for the access portal associated with this application. + */ + public open fun portalOptions(): Any? = unwrap(this).getPortalOptions() + + /** + * A structure that describes the options for the access portal associated with this application. + */ + public open fun portalOptions(`value`: IResolvable) { + unwrap(this).setPortalOptions(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure that describes the options for the access portal associated with this application. + */ + public open fun portalOptions(`value`: PortalOptionsConfigurationProperty) { + unwrap(this).setPortalOptions(`value`.let(PortalOptionsConfigurationProperty.Companion::unwrap)) + } + + /** + * A structure that describes the options for the access portal associated with this application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4174d0d037f9fc5cc83e088f06e2f24a46993e6e6d2faa945abdfa818a35f353") + public open fun portalOptions(`value`: PortalOptionsConfigurationProperty.Builder.() -> Unit): + Unit = portalOptions(PortalOptionsConfigurationProperty(`value`)) + + /** + * The current status of the application in this instance of IAM Identity Center. + */ + public open fun status(): String? = unwrap(this).getStatus() + + /** + * The current status of the application in this instance of IAM Identity Center. + */ + public open fun status(`value`: String) { + unwrap(this).setStatus(`value`) + } + + /** + * Specifies tags to be attached to the application. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Specifies tags to be attached to the application. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Specifies tags to be attached to the application. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sso.CfnApplication]. + */ + @CdkDslMarker + public interface Builder { + /** + * The ARN of the application provider for this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-applicationproviderarn) + * @param applicationProviderArn The ARN of the application provider for this application. + */ + public fun applicationProviderArn(applicationProviderArn: String) + + /** + * The description of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-description) + * @param description The description of the application. + */ + public fun description(description: String) + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-instancearn) + * @param instanceArn The ARN of the instance of IAM Identity Center that is configured with + * this application. + */ + public fun instanceArn(instanceArn: String) + + /** + * The name of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-name) + * @param name The name of the application. + */ + public fun name(name: String) + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + public fun portalOptions(portalOptions: IResolvable) + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + public fun portalOptions(portalOptions: PortalOptionsConfigurationProperty) + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7b2ba2144e799e6f44f0bc8cfb4889a8c85e2c047da9fa4a2190bd752fbd896c") + public fun portalOptions(portalOptions: PortalOptionsConfigurationProperty.Builder.() -> Unit) + + /** + * The current status of the application in this instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-status) + * @param status The current status of the application in this instance of IAM Identity Center. + */ + public fun status(status: String) + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + * @param tags Specifies tags to be attached to the application. + */ + public fun tags(tags: List) + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + * @param tags Specifies tags to be attached to the application. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sso.CfnApplication.Builder = + software.amazon.awscdk.services.sso.CfnApplication.Builder.create(scope, id) + + /** + * The ARN of the application provider for this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-applicationproviderarn) + * @param applicationProviderArn The ARN of the application provider for this application. + */ + override fun applicationProviderArn(applicationProviderArn: String) { + cdkBuilder.applicationProviderArn(applicationProviderArn) + } + + /** + * The description of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-description) + * @param description The description of the application. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-instancearn) + * @param instanceArn The ARN of the instance of IAM Identity Center that is configured with + * this application. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * The name of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-name) + * @param name The name of the application. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + override fun portalOptions(portalOptions: IResolvable) { + cdkBuilder.portalOptions(portalOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + override fun portalOptions(portalOptions: PortalOptionsConfigurationProperty) { + cdkBuilder.portalOptions(portalOptions.let(PortalOptionsConfigurationProperty.Companion::unwrap)) + } + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7b2ba2144e799e6f44f0bc8cfb4889a8c85e2c047da9fa4a2190bd752fbd896c") + override + fun portalOptions(portalOptions: PortalOptionsConfigurationProperty.Builder.() -> Unit): + Unit = portalOptions(PortalOptionsConfigurationProperty(portalOptions)) + + /** + * The current status of the application in this instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-status) + * @param status The current status of the application in this instance of IAM Identity Center. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + * @param tags Specifies tags to be attached to the application. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + * @param tags Specifies tags to be attached to the application. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sso.CfnApplication = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sso.CfnApplication.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnApplication { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnApplication(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplication): CfnApplication + = CfnApplication(cdkObject) + + internal fun unwrap(wrapped: CfnApplication): software.amazon.awscdk.services.sso.CfnApplication + = wrapped.cdkObject as software.amazon.awscdk.services.sso.CfnApplication + } + + /** + * A structure that describes the options for the portal associated with an application. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * PortalOptionsConfigurationProperty portalOptionsConfigurationProperty = + * PortalOptionsConfigurationProperty.builder() + * .signInOptions(SignInOptionsProperty.builder() + * .origin("origin") + * // the properties below are optional + * .applicationUrl("applicationUrl") + * .build()) + * .visibility("visibility") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-portaloptionsconfiguration.html) + */ + public interface PortalOptionsConfigurationProperty { + /** + * A structure that describes the sign-in options for the access portal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-portaloptionsconfiguration.html#cfn-sso-application-portaloptionsconfiguration-signinoptions) + */ + public fun signInOptions(): Any? = unwrap(this).getSignInOptions() + + /** + * Indicates whether this application is visible in the access portal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-portaloptionsconfiguration.html#cfn-sso-application-portaloptionsconfiguration-visibility) + */ + public fun visibility(): String? = unwrap(this).getVisibility() + + /** + * A builder for [PortalOptionsConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + public fun signInOptions(signInOptions: IResolvable) + + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + public fun signInOptions(signInOptions: SignInOptionsProperty) + + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4f2d01800bc36191365c5f660cc44e767cf666f294fbe85e3ccfd581cd5e1d67") + public fun signInOptions(signInOptions: SignInOptionsProperty.Builder.() -> Unit) + + /** + * @param visibility Indicates whether this application is visible in the access portal. + */ + public fun visibility(visibility: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty.Builder + = + software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty.builder() + + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + override fun signInOptions(signInOptions: IResolvable) { + cdkBuilder.signInOptions(signInOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + override fun signInOptions(signInOptions: SignInOptionsProperty) { + cdkBuilder.signInOptions(signInOptions.let(SignInOptionsProperty.Companion::unwrap)) + } + + /** + * @param signInOptions A structure that describes the sign-in options for the access portal. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("4f2d01800bc36191365c5f660cc44e767cf666f294fbe85e3ccfd581cd5e1d67") + override fun signInOptions(signInOptions: SignInOptionsProperty.Builder.() -> Unit): Unit = + signInOptions(SignInOptionsProperty(signInOptions)) + + /** + * @param visibility Indicates whether this application is visible in the access portal. + */ + override fun visibility(visibility: String) { + cdkBuilder.visibility(visibility) + } + + public fun build(): + software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty, + ) : CdkObject(cdkObject), + PortalOptionsConfigurationProperty { + /** + * A structure that describes the sign-in options for the access portal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-portaloptionsconfiguration.html#cfn-sso-application-portaloptionsconfiguration-signinoptions) + */ + override fun signInOptions(): Any? = unwrap(this).getSignInOptions() + + /** + * Indicates whether this application is visible in the access portal. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-portaloptionsconfiguration.html#cfn-sso-application-portaloptionsconfiguration-visibility) + */ + override fun visibility(): String? = unwrap(this).getVisibility() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + PortalOptionsConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty): + PortalOptionsConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + PortalOptionsConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: PortalOptionsConfigurationProperty): + software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sso.CfnApplication.PortalOptionsConfigurationProperty + } + } + + /** + * A structure that describes the sign-in options for an application portal. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * SignInOptionsProperty signInOptionsProperty = SignInOptionsProperty.builder() + * .origin("origin") + * // the properties below are optional + * .applicationUrl("applicationUrl") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-signinoptions.html) + */ + public interface SignInOptionsProperty { + /** + * The URL that accepts authentication requests for an application. + * + * This is a required parameter if the `Origin` parameter is `APPLICATION` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-signinoptions.html#cfn-sso-application-signinoptions-applicationurl) + */ + public fun applicationUrl(): String? = unwrap(this).getApplicationUrl() + + /** + * This determines how IAM Identity Center navigates the user to the target application. + * + * It can be one of the following values: + * + * * `APPLICATION` : IAM Identity Center redirects the customer to the configured + * `ApplicationUrl` . + * * `IDENTITY_CENTER` : IAM Identity Center uses SAML identity-provider initiated + * authentication to sign the customer directly into a SAML-based application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-signinoptions.html#cfn-sso-application-signinoptions-origin) + */ + public fun origin(): String + + /** + * A builder for [SignInOptionsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param applicationUrl The URL that accepts authentication requests for an application. + * This is a required parameter if the `Origin` parameter is `APPLICATION` . + */ + public fun applicationUrl(applicationUrl: String) + + /** + * @param origin This determines how IAM Identity Center navigates the user to the target + * application. + * It can be one of the following values: + * + * * `APPLICATION` : IAM Identity Center redirects the customer to the configured + * `ApplicationUrl` . + * * `IDENTITY_CENTER` : IAM Identity Center uses SAML identity-provider initiated + * authentication to sign the customer directly into a SAML-based application. + */ + public fun origin(origin: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty.Builder = + software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty.builder() + + /** + * @param applicationUrl The URL that accepts authentication requests for an application. + * This is a required parameter if the `Origin` parameter is `APPLICATION` . + */ + override fun applicationUrl(applicationUrl: String) { + cdkBuilder.applicationUrl(applicationUrl) + } + + /** + * @param origin This determines how IAM Identity Center navigates the user to the target + * application. + * It can be one of the following values: + * + * * `APPLICATION` : IAM Identity Center redirects the customer to the configured + * `ApplicationUrl` . + * * `IDENTITY_CENTER` : IAM Identity Center uses SAML identity-provider initiated + * authentication to sign the customer directly into a SAML-based application. + */ + override fun origin(origin: String) { + cdkBuilder.origin(origin) + } + + public fun build(): software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty, + ) : CdkObject(cdkObject), + SignInOptionsProperty { + /** + * The URL that accepts authentication requests for an application. + * + * This is a required parameter if the `Origin` parameter is `APPLICATION` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-signinoptions.html#cfn-sso-application-signinoptions-applicationurl) + */ + override fun applicationUrl(): String? = unwrap(this).getApplicationUrl() + + /** + * This determines how IAM Identity Center navigates the user to the target application. + * + * It can be one of the following values: + * + * * `APPLICATION` : IAM Identity Center redirects the customer to the configured + * `ApplicationUrl` . + * * `IDENTITY_CENTER` : IAM Identity Center uses SAML identity-provider initiated + * authentication to sign the customer directly into a SAML-based application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-application-signinoptions.html#cfn-sso-application-signinoptions-origin) + */ + override fun origin(): String = unwrap(this).getOrigin() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): SignInOptionsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty): + SignInOptionsProperty = CdkObjectWrappers.wrap(cdkObject) as? SignInOptionsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: SignInOptionsProperty): + software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.sso.CfnApplication.SignInOptionsProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignment.kt new file mode 100644 index 0000000000..57f32b57da --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignment.kt @@ -0,0 +1,189 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * A structure that describes an assignment of a principal to an application. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnApplicationAssignment cfnApplicationAssignment = CfnApplicationAssignment.Builder.create(this, + * "MyCfnApplicationAssignment") + * .applicationArn("applicationArn") + * .principalId("principalId") + * .principalType("principalType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html) + */ +public open class CfnApplicationAssignment( + cdkObject: software.amazon.awscdk.services.sso.CfnApplicationAssignment, +) : CfnResource(cdkObject), + IInspectable { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnApplicationAssignmentProps, + ) : + this(software.amazon.awscdk.services.sso.CfnApplicationAssignment(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnApplicationAssignmentProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnApplicationAssignmentProps.Builder.() -> Unit, + ) : this(scope, id, CfnApplicationAssignmentProps(props) + ) + + /** + * The ARN of the application that has principals assigned. + */ + public open fun applicationArn(): String = unwrap(this).getApplicationArn() + + /** + * The ARN of the application that has principals assigned. + */ + public open fun applicationArn(`value`: String) { + unwrap(this).setApplicationArn(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The unique identifier of the principal assigned to the application. + */ + public open fun principalId(): String = unwrap(this).getPrincipalId() + + /** + * The unique identifier of the principal assigned to the application. + */ + public open fun principalId(`value`: String) { + unwrap(this).setPrincipalId(`value`) + } + + /** + * The type of the principal assigned to the application. + */ + public open fun principalType(): String = unwrap(this).getPrincipalType() + + /** + * The type of the principal assigned to the application. + */ + public open fun principalType(`value`: String) { + unwrap(this).setPrincipalType(`value`) + } + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sso.CfnApplicationAssignment]. + */ + @CdkDslMarker + public interface Builder { + /** + * The ARN of the application that has principals assigned. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-applicationarn) + * @param applicationArn The ARN of the application that has principals assigned. + */ + public fun applicationArn(applicationArn: String) + + /** + * The unique identifier of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principalid) + * @param principalId The unique identifier of the principal assigned to the application. + */ + public fun principalId(principalId: String) + + /** + * The type of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principaltype) + * @param principalType The type of the principal assigned to the application. + */ + public fun principalType(principalType: String) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sso.CfnApplicationAssignment.Builder = + software.amazon.awscdk.services.sso.CfnApplicationAssignment.Builder.create(scope, id) + + /** + * The ARN of the application that has principals assigned. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-applicationarn) + * @param applicationArn The ARN of the application that has principals assigned. + */ + override fun applicationArn(applicationArn: String) { + cdkBuilder.applicationArn(applicationArn) + } + + /** + * The unique identifier of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principalid) + * @param principalId The unique identifier of the principal assigned to the application. + */ + override fun principalId(principalId: String) { + cdkBuilder.principalId(principalId) + } + + /** + * The type of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principaltype) + * @param principalType The type of the principal assigned to the application. + */ + override fun principalType(principalType: String) { + cdkBuilder.principalType(principalType) + } + + public fun build(): software.amazon.awscdk.services.sso.CfnApplicationAssignment = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sso.CfnApplicationAssignment.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnApplicationAssignment { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnApplicationAssignment(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplicationAssignment): + CfnApplicationAssignment = CfnApplicationAssignment(cdkObject) + + internal fun unwrap(wrapped: CfnApplicationAssignment): + software.amazon.awscdk.services.sso.CfnApplicationAssignment = wrapped.cdkObject as + software.amazon.awscdk.services.sso.CfnApplicationAssignment + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignmentProps.kt new file mode 100644 index 0000000000..6f67b3b9ad --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationAssignmentProps.kt @@ -0,0 +1,143 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit + +/** + * Properties for defining a `CfnApplicationAssignment`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnApplicationAssignmentProps cfnApplicationAssignmentProps = + * CfnApplicationAssignmentProps.builder() + * .applicationArn("applicationArn") + * .principalId("principalId") + * .principalType("principalType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html) + */ +public interface CfnApplicationAssignmentProps { + /** + * The ARN of the application that has principals assigned. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-applicationarn) + */ + public fun applicationArn(): String + + /** + * The unique identifier of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principalid) + */ + public fun principalId(): String + + /** + * The type of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principaltype) + */ + public fun principalType(): String + + /** + * A builder for [CfnApplicationAssignmentProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param applicationArn The ARN of the application that has principals assigned. + */ + public fun applicationArn(applicationArn: String) + + /** + * @param principalId The unique identifier of the principal assigned to the application. + */ + public fun principalId(principalId: String) + + /** + * @param principalType The type of the principal assigned to the application. + */ + public fun principalType(principalType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps.Builder = + software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps.builder() + + /** + * @param applicationArn The ARN of the application that has principals assigned. + */ + override fun applicationArn(applicationArn: String) { + cdkBuilder.applicationArn(applicationArn) + } + + /** + * @param principalId The unique identifier of the principal assigned to the application. + */ + override fun principalId(principalId: String) { + cdkBuilder.principalId(principalId) + } + + /** + * @param principalType The type of the principal assigned to the application. + */ + override fun principalType(principalType: String) { + cdkBuilder.principalType(principalType) + } + + public fun build(): software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps, + ) : CdkObject(cdkObject), + CfnApplicationAssignmentProps { + /** + * The ARN of the application that has principals assigned. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-applicationarn) + */ + override fun applicationArn(): String = unwrap(this).getApplicationArn() + + /** + * The unique identifier of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principalid) + */ + override fun principalId(): String = unwrap(this).getPrincipalId() + + /** + * The type of the principal assigned to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-applicationassignment.html#cfn-sso-applicationassignment-principaltype) + */ + override fun principalType(): String = unwrap(this).getPrincipalType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnApplicationAssignmentProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps): + CfnApplicationAssignmentProps = CdkObjectWrappers.wrap(cdkObject) as? + CfnApplicationAssignmentProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnApplicationAssignmentProps): + software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.sso.CfnApplicationAssignmentProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationProps.kt new file mode 100644 index 0000000000..74220d3cd4 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnApplicationProps.kt @@ -0,0 +1,312 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnApplication`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder() + * .applicationProviderArn("applicationProviderArn") + * .instanceArn("instanceArn") + * .name("name") + * // the properties below are optional + * .description("description") + * .portalOptions(PortalOptionsConfigurationProperty.builder() + * .signInOptions(SignInOptionsProperty.builder() + * .origin("origin") + * // the properties below are optional + * .applicationUrl("applicationUrl") + * .build()) + * .visibility("visibility") + * .build()) + * .status("status") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html) + */ +public interface CfnApplicationProps { + /** + * The ARN of the application provider for this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-applicationproviderarn) + */ + public fun applicationProviderArn(): String + + /** + * The description of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-instancearn) + */ + public fun instanceArn(): String + + /** + * The name of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-name) + */ + public fun name(): String + + /** + * A structure that describes the options for the access portal associated with this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + */ + public fun portalOptions(): Any? = unwrap(this).getPortalOptions() + + /** + * The current status of the application in this instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-status) + */ + public fun status(): String? = unwrap(this).getStatus() + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnApplicationProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param applicationProviderArn The ARN of the application provider for this application. + */ + public fun applicationProviderArn(applicationProviderArn: String) + + /** + * @param description The description of the application. + */ + public fun description(description: String) + + /** + * @param instanceArn The ARN of the instance of IAM Identity Center that is configured with + * this application. + */ + public fun instanceArn(instanceArn: String) + + /** + * @param name The name of the application. + */ + public fun name(name: String) + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + public fun portalOptions(portalOptions: IResolvable) + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + public fun portalOptions(portalOptions: CfnApplication.PortalOptionsConfigurationProperty) + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b26c17cdf08e4530da2999ff481142fea5afcd2c878fe9c9d430a2f9fd019537") + public + fun portalOptions(portalOptions: CfnApplication.PortalOptionsConfigurationProperty.Builder.() -> Unit) + + /** + * @param status The current status of the application in this instance of IAM Identity Center. + */ + public fun status(status: String) + + /** + * @param tags Specifies tags to be attached to the application. + */ + public fun tags(tags: List) + + /** + * @param tags Specifies tags to be attached to the application. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sso.CfnApplicationProps.Builder = + software.amazon.awscdk.services.sso.CfnApplicationProps.builder() + + /** + * @param applicationProviderArn The ARN of the application provider for this application. + */ + override fun applicationProviderArn(applicationProviderArn: String) { + cdkBuilder.applicationProviderArn(applicationProviderArn) + } + + /** + * @param description The description of the application. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param instanceArn The ARN of the instance of IAM Identity Center that is configured with + * this application. + */ + override fun instanceArn(instanceArn: String) { + cdkBuilder.instanceArn(instanceArn) + } + + /** + * @param name The name of the application. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + override fun portalOptions(portalOptions: IResolvable) { + cdkBuilder.portalOptions(portalOptions.let(IResolvable.Companion::unwrap)) + } + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + override fun portalOptions(portalOptions: CfnApplication.PortalOptionsConfigurationProperty) { + cdkBuilder.portalOptions(portalOptions.let(CfnApplication.PortalOptionsConfigurationProperty.Companion::unwrap)) + } + + /** + * @param portalOptions A structure that describes the options for the access portal associated + * with this application. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b26c17cdf08e4530da2999ff481142fea5afcd2c878fe9c9d430a2f9fd019537") + override + fun portalOptions(portalOptions: CfnApplication.PortalOptionsConfigurationProperty.Builder.() -> Unit): + Unit = portalOptions(CfnApplication.PortalOptionsConfigurationProperty(portalOptions)) + + /** + * @param status The current status of the application in this instance of IAM Identity Center. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + /** + * @param tags Specifies tags to be attached to the application. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags Specifies tags to be attached to the application. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sso.CfnApplicationProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sso.CfnApplicationProps, + ) : CdkObject(cdkObject), + CfnApplicationProps { + /** + * The ARN of the application provider for this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-applicationproviderarn) + */ + override fun applicationProviderArn(): String = unwrap(this).getApplicationProviderArn() + + /** + * The description of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The ARN of the instance of IAM Identity Center that is configured with this application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-instancearn) + */ + override fun instanceArn(): String = unwrap(this).getInstanceArn() + + /** + * The name of the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-name) + */ + override fun name(): String = unwrap(this).getName() + + /** + * A structure that describes the options for the access portal associated with this + * application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-portaloptions) + */ + override fun portalOptions(): Any? = unwrap(this).getPortalOptions() + + /** + * The current status of the application in this instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-status) + */ + override fun status(): String? = unwrap(this).getStatus() + + /** + * Specifies tags to be attached to the application. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-application.html#cfn-sso-application-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnApplicationProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnApplicationProps): + CfnApplicationProps = CdkObjectWrappers.wrap(cdkObject) as? CfnApplicationProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnApplicationProps): + software.amazon.awscdk.services.sso.CfnApplicationProps = (wrapped as CdkObject).cdkObject + as software.amazon.awscdk.services.sso.CfnApplicationProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignment.kt index d6da4e8a79..a077daa3a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignment.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssignment( cdkObject: software.amazon.awscdk.services.sso.CfnAssignment, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignmentProps.kt index 241929a5fd..99f3fe59b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnAssignmentProps.kt @@ -189,7 +189,8 @@ public interface CfnAssignmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnAssignmentProps, - ) : CdkObject(cdkObject), CfnAssignmentProps { + ) : CdkObject(cdkObject), + CfnAssignmentProps { /** * The ARN of the IAM Identity Center instance under which the operation will be executed. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstance.kt new file mode 100644 index 0000000000..f085cfbef1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstance.kt @@ -0,0 +1,227 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Creates an instance of IAM Identity Center for a standalone AWS account that is not managed by + * AWS Organizations or a member AWS account in an organization. + * + * You can create only one instance per account and across all AWS Regions . + * + * The CreateInstance request is rejected if the following apply: + * + * * The instance is created within the organization management account. + * * An instance already exists in the same account. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnInstance cfnInstance = CfnInstance.Builder.create(this, "MyCfnInstance") + * .name("name") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html) + */ +public open class CfnInstance( + cdkObject: software.amazon.awscdk.services.sso.CfnInstance, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : + this(software.amazon.awscdk.services.sso.CfnInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnInstanceProps, + ) : + this(software.amazon.awscdk.services.sso.CfnInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnInstanceProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnInstanceProps.Builder.() -> Unit, + ) : this(scope, id, CfnInstanceProps(props) + ) + + /** + * The identifier of the identity store that is connected to the Identity Center instance. + */ + public open fun attrIdentityStoreId(): String = unwrap(this).getAttrIdentityStoreId() + + /** + * The ARN of the Identity Center instance under which the operation will be executed. + * + * For more information about ARNs, see Amazon Resource + * Names (ARNs) and AWS Service Namespaces in the *AWS General Reference* . + */ + public open fun attrInstanceArn(): String = unwrap(this).getAttrInstanceArn() + + /** + * The AWS account ID number of the owner of the Identity Center instance. + */ + public open fun attrOwnerAccountId(): String = unwrap(this).getAttrOwnerAccountId() + + /** + * The current status of this Identity Center instance. + */ + public open fun attrStatus(): String = unwrap(this).getAttrStatus() + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the Identity Center instance. + */ + public open fun name(): String? = unwrap(this).getName() + + /** + * The name of the Identity Center instance. + */ + public open fun name(`value`: String) { + unwrap(this).setName(`value`) + } + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.sso.CfnInstance]. + */ + @CdkDslMarker + public interface Builder { + /** + * The name of the Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-name) + * @param name The name of the Identity Center instance. + */ + public fun name(name: String) + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + public fun tags(tags: List) + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sso.CfnInstance.Builder = + software.amazon.awscdk.services.sso.CfnInstance.Builder.create(scope, id) + + /** + * The name of the Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-name) + * @param name The name of the Identity Center instance. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sso.CfnInstance = cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.sso.CfnInstance.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnInstance { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnInstance(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnInstance): CfnInstance = + CfnInstance(cdkObject) + + internal fun unwrap(wrapped: CfnInstance): software.amazon.awscdk.services.sso.CfnInstance = + wrapped.cdkObject as software.amazon.awscdk.services.sso.CfnInstance + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfiguration.kt index 29b9d72a1d..154602f4a0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfiguration.kt @@ -65,7 +65,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInstanceAccessControlAttributeConfiguration( cdkObject: software.amazon.awscdk.services.sso.CfnInstanceAccessControlAttributeConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -535,7 +536,8 @@ public open class CfnInstanceAccessControlAttributeConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnInstanceAccessControlAttributeConfiguration.AccessControlAttributeProperty, - ) : CdkObject(cdkObject), AccessControlAttributeProperty { + ) : CdkObject(cdkObject), + AccessControlAttributeProperty { /** * The name of the attribute associated with your identities in your identity source. * @@ -642,7 +644,8 @@ public open class CfnInstanceAccessControlAttributeConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnInstanceAccessControlAttributeConfiguration.AccessControlAttributeValueProperty, - ) : CdkObject(cdkObject), AccessControlAttributeValueProperty { + ) : CdkObject(cdkObject), + AccessControlAttributeValueProperty { /** * The identity source to use when mapping a specified attribute to IAM Identity Center . * @@ -756,7 +759,8 @@ public open class CfnInstanceAccessControlAttributeConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnInstanceAccessControlAttributeConfiguration.InstanceAccessControlAttributeConfigurationProperty, - ) : CdkObject(cdkObject), InstanceAccessControlAttributeConfigurationProperty { + ) : CdkObject(cdkObject), + InstanceAccessControlAttributeConfigurationProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sso-instanceaccesscontrolattributeconfiguration-instanceaccesscontrolattributeconfiguration.html#cfn-sso-instanceaccesscontrolattributeconfiguration-instanceaccesscontrolattributeconfiguration-accesscontrolattributes) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfigurationProps.kt index 720a884c5b..77749eb0c6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceAccessControlAttributeConfigurationProps.kt @@ -225,7 +225,8 @@ public interface CfnInstanceAccessControlAttributeConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnInstanceAccessControlAttributeConfigurationProps, - ) : CdkObject(cdkObject), CfnInstanceAccessControlAttributeConfigurationProps { + ) : CdkObject(cdkObject), + CfnInstanceAccessControlAttributeConfigurationProps { /** * Lists the attributes that are configured for ABAC in the specified IAM Identity Center * instance. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceProps.kt new file mode 100644 index 0000000000..63a1778ea5 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnInstanceProps.kt @@ -0,0 +1,128 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.sso + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String +import kotlin.Unit +import kotlin.collections.List + +/** + * Properties for defining a `CfnInstance`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.sso.*; + * CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder() + * .name("name") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html) + */ +public interface CfnInstanceProps { + /** + * The name of the Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-name) + */ + public fun name(): String? = unwrap(this).getName() + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * A builder for [CfnInstanceProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param name The name of the Identity Center instance. + */ + public fun name(name: String) + + /** + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + public fun tags(tags: List) + + /** + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + public fun tags(vararg tags: CfnTag) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: software.amazon.awscdk.services.sso.CfnInstanceProps.Builder = + software.amazon.awscdk.services.sso.CfnInstanceProps.builder() + + /** + * @param name The name of the Identity Center instance. + */ + override fun name(name: String) { + cdkBuilder.name(name) + } + + /** + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags Specifies tags to be attached to the instance of IAM Identity Center. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + public fun build(): software.amazon.awscdk.services.sso.CfnInstanceProps = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.sso.CfnInstanceProps, + ) : CdkObject(cdkObject), + CfnInstanceProps { + /** + * The name of the Identity Center instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-name) + */ + override fun name(): String? = unwrap(this).getName() + + /** + * Specifies tags to be attached to the instance of IAM Identity Center. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sso-instance.html#cfn-sso-instance-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnInstanceProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.sso.CfnInstanceProps): + CfnInstanceProps = CdkObjectWrappers.wrap(cdkObject) as? CfnInstanceProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnInstanceProps): + software.amazon.awscdk.services.sso.CfnInstanceProps = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.sso.CfnInstanceProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSet.kt index 7fb20035cd..4c559c21af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSet.kt @@ -63,7 +63,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPermissionSet( cdkObject: software.amazon.awscdk.services.sso.CfnPermissionSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -828,7 +830,8 @@ public open class CfnPermissionSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnPermissionSet.CustomerManagedPolicyReferenceProperty, - ) : CdkObject(cdkObject), CustomerManagedPolicyReferenceProperty { + ) : CdkObject(cdkObject), + CustomerManagedPolicyReferenceProperty { /** * The name of the IAM policy that you have configured in each account where you want to * deploy your permission set. @@ -1020,7 +1023,8 @@ public open class CfnPermissionSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnPermissionSet.PermissionsBoundaryProperty, - ) : CdkObject(cdkObject), PermissionsBoundaryProperty { + ) : CdkObject(cdkObject), + PermissionsBoundaryProperty { /** * Specifies the name and path of a customer managed policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSetProps.kt index 961726e2f6..095526e6d5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sso/CfnPermissionSetProps.kt @@ -472,7 +472,8 @@ public interface CfnPermissionSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.sso.CfnPermissionSetProps, - ) : CdkObject(cdkObject), CfnPermissionSetProps { + ) : CdkObject(cdkObject), + CfnPermissionSetProps { /** * Specifies the names and paths of the customer managed policies that you have attached to your * permission set. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Activity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Activity.kt index eeceda756f..fc92ef9426 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Activity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Activity.kt @@ -30,7 +30,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Activity( cdkObject: software.amazon.awscdk.services.stepfunctions.Activity, -) : Resource(cdkObject), IActivity { +) : Resource(cdkObject), + IActivity { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.Activity(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -62,6 +63,12 @@ public open class Activity( */ public override fun activityName(): String = unwrap(this).getActivityName() + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + */ + public override fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + /** * Grant the given identity permissions on this Activity. * @@ -403,6 +410,16 @@ public open class Activity( * @param activityName The name for this activity. */ public fun activityName(activityName: String) + + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + * + * Default: - data is transparently encrypted using an AWS owned key + * + * @param encryptionConfiguration The encryptionConfiguration object used for server-side + * encryption of the activity inputs. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) } private class BuilderImpl( @@ -423,6 +440,18 @@ public open class Activity( cdkBuilder.activityName(activityName) } + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + * + * Default: - data is transparently encrypted using an AWS owned key + * + * @param encryptionConfiguration The encryptionConfiguration object used for server-side + * encryption of the activity inputs. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfiguration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.stepfunctions.Activity = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ActivityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ActivityProps.kt index dcaaf155b1..8605beb20a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ActivityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ActivityProps.kt @@ -14,11 +14,13 @@ import kotlin.Unit * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.stepfunctions.*; - * ActivityProps activityProps = ActivityProps.builder() - * .activityName("activityName") + * import io.cloudshiftdev.awscdk.services.kms.*; + * import io.cloudshiftdev.awscdk.*; + * Key kmsKey = new Key(this, "Key"); + * Activity activity = Activity.Builder.create(this, "ActivityWithCMKEncryptionConfiguration") + * .activityName("ActivityWithCMKEncryptionConfiguration") + * .encryptionConfiguration(new CustomerManagedEncryptionConfiguration(kmsKey, + * Duration.seconds(75))) * .build(); * ``` */ @@ -30,6 +32,14 @@ public interface ActivityProps { */ public fun activityName(): String? = unwrap(this).getActivityName() + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + * + * Default: - data is transparently encrypted using an AWS owned key + */ + public fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + /** * A builder for [ActivityProps] */ @@ -39,6 +49,12 @@ public interface ActivityProps { * @param activityName The name for this activity. */ public fun activityName(activityName: String) + + /** + * @param encryptionConfiguration The encryptionConfiguration object used for server-side + * encryption of the activity inputs. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) } private class BuilderImpl : Builder { @@ -52,19 +68,36 @@ public interface ActivityProps { cdkBuilder.activityName(activityName) } + /** + * @param encryptionConfiguration The encryptionConfiguration object used for server-side + * encryption of the activity inputs. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfiguration.Companion::unwrap)) + } + public fun build(): software.amazon.awscdk.services.stepfunctions.ActivityProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ActivityProps, - ) : CdkObject(cdkObject), ActivityProps { + ) : CdkObject(cdkObject), + ActivityProps { /** * The name for this activity. * * Default: - If not supplied, a name is generated */ override fun activityName(): String? = unwrap(this).getActivityName() + + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + * + * Default: - data is transparently encrypted using an AWS owned key + */ + override fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AfterwardsOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AfterwardsOptions.kt index ac8459664e..6701c3c79e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AfterwardsOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AfterwardsOptions.kt @@ -94,7 +94,8 @@ public interface AfterwardsOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.AfterwardsOptions, - ) : CdkObject(cdkObject), AfterwardsOptions { + ) : CdkObject(cdkObject), + AfterwardsOptions { /** * Whether to include error handling states. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AwsOwnedEncryptionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AwsOwnedEncryptionConfiguration.kt new file mode 100644 index 0000000000..5f6f058f29 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/AwsOwnedEncryptionConfiguration.kt @@ -0,0 +1,36 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions + +/** + * Define a new AwsOwnedEncryptionConfiguration. + * + * Example: + * + * ``` + * StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine") + * .stateMachineName("StateMachine") + * .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass")))) + * .stateMachineType(StateMachineType.STANDARD) + * .encryptionConfiguration(new AwsOwnedEncryptionConfiguration()) + * .build(); + * ``` + */ +public open class AwsOwnedEncryptionConfiguration( + cdkObject: software.amazon.awscdk.services.stepfunctions.AwsOwnedEncryptionConfiguration, +) : EncryptionConfiguration(cdkObject) { + public constructor() : + this(software.amazon.awscdk.services.stepfunctions.AwsOwnedEncryptionConfiguration() + ) + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.AwsOwnedEncryptionConfiguration): + AwsOwnedEncryptionConfiguration = AwsOwnedEncryptionConfiguration(cdkObject) + + internal fun unwrap(wrapped: AwsOwnedEncryptionConfiguration): + software.amazon.awscdk.services.stepfunctions.AwsOwnedEncryptionConfiguration = + wrapped.cdkObject as + software.amazon.awscdk.services.stepfunctions.AwsOwnedEncryptionConfiguration + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CatchProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CatchProps.kt index 6f937bcf29..e22c3542cc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CatchProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CatchProps.kt @@ -107,7 +107,8 @@ public interface CatchProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CatchProps, - ) : CdkObject(cdkObject), CatchProps { + ) : CdkObject(cdkObject), + CatchProps { /** * Errors to recover from by going to the given state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivity.kt index c7f313014c..b67a8b3612 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivity.kt @@ -4,15 +4,19 @@ package io.cloudshiftdev.awscdk.services.stepfunctions import io.cloudshiftdev.awscdk.CfnResource import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.ITaggable import io.cloudshiftdev.awscdk.TagManager import io.cloudshiftdev.awscdk.TreeInspector import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct import software.constructs.Construct as SoftwareConstructsConstruct @@ -21,8 +25,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * access to AWS Step Functions . * * Activities must poll Step Functions using the `GetActivityTask` API action and respond using - * `SendTask*` API actions. This function lets Step Functions know the existence of your activity and - * returns an identifier for use in a state machine and when polling from the activity. + * `SendTask*` API actions. This function makes Step Functions aware of your activity and returns an + * identifier for use in a state machine and when polling from the activity. * * For information about creating an activity, see [Creating an Activity State * Machine](https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-creating-activity-state-machine.html) @@ -39,6 +43,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * CfnActivity cfnActivity = CfnActivity.Builder.create(this, "MyCfnActivity") * .name("name") * // the properties below are optional + * .encryptionConfiguration(EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build()) * .tags(List.of(TagsEntryProperty.builder() * .key("key") * .value("value") @@ -50,7 +60,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnActivity( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnActivity, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -87,6 +99,34 @@ public open class CfnActivity( */ public open fun attrName(): String = unwrap(this).getAttrName() + /** + * Encryption configuration for the activity. + */ + public open fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + + /** + * Encryption configuration for the activity. + */ + public open fun encryptionConfiguration(`value`: IResolvable) { + unwrap(this).setEncryptionConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Encryption configuration for the activity. + */ + public open fun encryptionConfiguration(`value`: EncryptionConfigurationProperty) { + unwrap(this).setEncryptionConfiguration(`value`.let(EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Encryption configuration for the activity. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("3f998e8a15901def1c6db735c2af9991032387c05bdeeef2a8c7d5fd2c6611d3") + public open + fun encryptionConfiguration(`value`: EncryptionConfigurationProperty.Builder.() -> Unit): Unit + = encryptionConfiguration(EncryptionConfigurationProperty(`value`)) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -136,6 +176,57 @@ public open class CfnActivity( */ @CdkDslMarker public interface Builder { + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + public fun encryptionConfiguration(encryptionConfiguration: IResolvable) + + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) + + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("318f6cd8446d92a6cfca26790fe53098c5e5486a6a076c40e5f96ed4c7f80d0a") + public + fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit) + /** * The name of the activity. * @@ -182,6 +273,62 @@ public open class CfnActivity( private val cdkBuilder: software.amazon.awscdk.services.stepfunctions.CfnActivity.Builder = software.amazon.awscdk.services.stepfunctions.CfnActivity.Builder.create(scope, id) + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the activity. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("318f6cd8446d92a6cfca26790fe53098c5e5486a6a076c40e5f96ed4c7f80d0a") + override + fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit): + Unit = encryptionConfiguration(EncryptionConfigurationProperty(encryptionConfiguration)) + /** * The name of the activity. * @@ -249,6 +396,172 @@ public open class CfnActivity( software.amazon.awscdk.services.stepfunctions.CfnActivity } + /** + * Settings to configure server-side encryption for an activity. + * + * By default, Step Functions provides transparent server-side encryption. With this + * configuration, you can specify a customer managed AWS KMS key for encryption. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.stepfunctions.*; + * EncryptionConfigurationProperty encryptionConfigurationProperty = + * EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html) + */ + public interface EncryptionConfigurationProperty { + /** + * Maximum duration that Step Functions will reuse data keys. + * + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-kmsdatakeyreuseperiodseconds) + */ + public fun kmsDataKeyReusePeriodSeconds(): Number? = + unwrap(this).getKmsDataKeyReusePeriodSeconds() + + /** + * An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS key to encrypt + * data. + * + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-kmskeyid) + */ + public fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + + /** + * Encryption option for an activity. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-type) + */ + public fun type(): String + + /** + * A builder for [EncryptionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param kmsDataKeyReusePeriodSeconds Maximum duration that Step Functions will reuse data + * keys. + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + */ + public fun kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds: Number) + + /** + * @param kmsKeyId An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS + * key to encrypt data. + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + */ + public fun kmsKeyId(kmsKeyId: String) + + /** + * @param type Encryption option for an activity. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty.Builder + = + software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty.builder() + + /** + * @param kmsDataKeyReusePeriodSeconds Maximum duration that Step Functions will reuse data + * keys. + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + */ + override fun kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds: Number) { + cdkBuilder.kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds) + } + + /** + * @param kmsKeyId An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS + * key to encrypt data. + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + */ + override fun kmsKeyId(kmsKeyId: String) { + cdkBuilder.kmsKeyId(kmsKeyId) + } + + /** + * @param type Encryption option for an activity. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty, + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { + /** + * Maximum duration that Step Functions will reuse data keys. + * + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-kmsdatakeyreuseperiodseconds) + */ + override fun kmsDataKeyReusePeriodSeconds(): Number? = + unwrap(this).getKmsDataKeyReusePeriodSeconds() + + /** + * An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS key to encrypt + * data. + * + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-kmskeyid) + */ + override fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + + /** + * Encryption option for an activity. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-encryptionconfiguration.html#cfn-stepfunctions-activity-encryptionconfiguration-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): EncryptionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty): + EncryptionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + EncryptionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EncryptionConfigurationProperty): + software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty + } + } + /** * The `TagsEntry` property specifies *tags* to identify an activity. * @@ -323,7 +636,8 @@ public open class CfnActivity( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnActivity.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The `key` for a key-value pair in a tag entry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivityProps.kt index e9a0b3557f..980b4abe54 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnActivityProps.kt @@ -2,12 +2,15 @@ package io.cloudshiftdev.awscdk.services.stepfunctions +import io.cloudshiftdev.awscdk.IResolvable import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any import kotlin.String import kotlin.Unit import kotlin.collections.List +import kotlin.jvm.JvmName /** * Properties for defining a `CfnActivity`. @@ -21,6 +24,12 @@ import kotlin.collections.List * CfnActivityProps cfnActivityProps = CfnActivityProps.builder() * .name("name") * // the properties below are optional + * .encryptionConfiguration(EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build()) * .tags(List.of(TagsEntryProperty.builder() * .key("key") * .value("value") @@ -31,6 +40,21 @@ import kotlin.collections.List * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html) */ public interface CfnActivityProps { + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer managed + * keys for encryption, you must create a *new Activity* . If you attempt to change the configuration + * in your CFN template for an existing activity, you will receive an `ActivityAlreadyExists` + * exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + */ + public fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** * The name of the activity. * @@ -63,6 +87,46 @@ public interface CfnActivityProps { */ @CdkDslMarker public interface Builder { + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + public fun encryptionConfiguration(encryptionConfiguration: IResolvable) + + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + public + fun encryptionConfiguration(encryptionConfiguration: CfnActivity.EncryptionConfigurationProperty) + + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b8826c7c1815e0b788e8cd3d0621a57990770b6045bed9f60b1513d4f9659bd1") + public + fun encryptionConfiguration(encryptionConfiguration: CfnActivity.EncryptionConfigurationProperty.Builder.() -> Unit) + /** * @param name The name of the activity. * A name must *not* contain: @@ -94,6 +158,52 @@ public interface CfnActivityProps { private val cdkBuilder: software.amazon.awscdk.services.stepfunctions.CfnActivityProps.Builder = software.amazon.awscdk.services.stepfunctions.CfnActivityProps.builder() + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + override + fun encryptionConfiguration(encryptionConfiguration: CfnActivity.EncryptionConfigurationProperty) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(CfnActivity.EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param encryptionConfiguration Encryption configuration for the activity. + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b8826c7c1815e0b788e8cd3d0621a57990770b6045bed9f60b1513d4f9659bd1") + override + fun encryptionConfiguration(encryptionConfiguration: CfnActivity.EncryptionConfigurationProperty.Builder.() -> Unit): + Unit = + encryptionConfiguration(CfnActivity.EncryptionConfigurationProperty(encryptionConfiguration)) + /** * @param name The name of the activity. * A name must *not* contain: @@ -130,7 +240,23 @@ public interface CfnActivityProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnActivityProps, - ) : CdkObject(cdkObject), CfnActivityProps { + ) : CdkObject(cdkObject), + CfnActivityProps { + /** + * Encryption configuration for the activity. + * + * Activity configuration is immutable, and resource names must be unique. To set customer + * managed keys for encryption, you must create a *new Activity* . If you attempt to change the + * configuration in your CFN template for an existing activity, you will receive an + * `ActivityAlreadyExists` exception. + * + * To update your activity to include customer managed keys, set a new activity name within your + * AWS CloudFormation template. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-encryptionconfiguration) + */ + override fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** * The name of the activity. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachine.kt index 618f277f4f..644005f855 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachine.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import kotlin.Any import kotlin.Boolean +import kotlin.Number import kotlin.String import kotlin.Unit import kotlin.collections.List @@ -48,6 +49,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .definitionString("definitionString") * .definitionSubstitutions(Map.of( * "definitionSubstitutionsKey", "definitionSubstitutions")) + * .encryptionConfiguration(EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build()) * .loggingConfiguration(LoggingConfigurationProperty.builder() * .destinations(List.of(LogDestinationProperty.builder() * .cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder() @@ -73,7 +80,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStateMachine( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -194,6 +203,34 @@ public open class CfnStateMachine( unwrap(this).setDefinitionSubstitutions(`value`) } + /** + * Encryption configuration for the state machine. + */ + public open fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + + /** + * Encryption configuration for the state machine. + */ + public open fun encryptionConfiguration(`value`: IResolvable) { + unwrap(this).setEncryptionConfiguration(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Encryption configuration for the state machine. + */ + public open fun encryptionConfiguration(`value`: EncryptionConfigurationProperty) { + unwrap(this).setEncryptionConfiguration(`value`.let(EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Encryption configuration for the state machine. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5169a1625947636a4fec8899783677ef5ee51d62c988a661c5b0c9dcf3c2b65a") + public open + fun encryptionConfiguration(`value`: EncryptionConfigurationProperty.Builder.() -> Unit): Unit + = encryptionConfiguration(EncryptionConfigurationProperty(`value`)) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -413,6 +450,33 @@ public open class CfnStateMachine( */ public fun definitionSubstitutions(definitionSubstitutions: Map) + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + public fun encryptionConfiguration(encryptionConfiguration: IResolvable) + + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) + + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8cdadaffffd87c49a26ffbdbab4f96f406dc412beccb338f018e6789e6a9b1ae") + public + fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit) + /** * Defines what execution history events are logged and where they are logged. * @@ -669,6 +733,38 @@ public open class CfnStateMachine( cdkBuilder.definitionSubstitutions(definitionSubstitutions) } + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8cdadaffffd87c49a26ffbdbab4f96f406dc412beccb338f018e6789e6a9b1ae") + override + fun encryptionConfiguration(encryptionConfiguration: EncryptionConfigurationProperty.Builder.() -> Unit): + Unit = encryptionConfiguration(EncryptionConfigurationProperty(encryptionConfiguration)) + /** * Defines what execution history events are logged and where they are logged. * @@ -923,7 +1019,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.CloudWatchLogsLogGroupProperty, - ) : CdkObject(cdkObject), CloudWatchLogsLogGroupProperty { + ) : CdkObject(cdkObject), + CloudWatchLogsLogGroupProperty { /** * The ARN of the the CloudWatch log group to which you want your logs emitted to. * @@ -952,6 +1049,172 @@ public open class CfnStateMachine( } } + /** + * Settings to configure server-side encryption for a state machine. + * + * By default, Step Functions provides transparent server-side encryption. With this + * configuration, you can specify a customer managed AWS KMS key for encryption. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.stepfunctions.*; + * EncryptionConfigurationProperty encryptionConfigurationProperty = + * EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html) + */ + public interface EncryptionConfigurationProperty { + /** + * Maximum duration that Step Functions will reuse data keys. + * + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-kmsdatakeyreuseperiodseconds) + */ + public fun kmsDataKeyReusePeriodSeconds(): Number? = + unwrap(this).getKmsDataKeyReusePeriodSeconds() + + /** + * An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS key to encrypt + * data. + * + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-kmskeyid) + */ + public fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + + /** + * Encryption option for a state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-type) + */ + public fun type(): String + + /** + * A builder for [EncryptionConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param kmsDataKeyReusePeriodSeconds Maximum duration that Step Functions will reuse data + * keys. + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + */ + public fun kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds: Number) + + /** + * @param kmsKeyId An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS + * key to encrypt data. + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + */ + public fun kmsKeyId(kmsKeyId: String) + + /** + * @param type Encryption option for a state machine. + */ + public fun type(type: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty.Builder + = + software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty.builder() + + /** + * @param kmsDataKeyReusePeriodSeconds Maximum duration that Step Functions will reuse data + * keys. + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + */ + override fun kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds: Number) { + cdkBuilder.kmsDataKeyReusePeriodSeconds(kmsDataKeyReusePeriodSeconds) + } + + /** + * @param kmsKeyId An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS + * key to encrypt data. + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + */ + override fun kmsKeyId(kmsKeyId: String) { + cdkBuilder.kmsKeyId(kmsKeyId) + } + + /** + * @param type Encryption option for a state machine. + */ + override fun type(type: String) { + cdkBuilder.type(type) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty, + ) : CdkObject(cdkObject), + EncryptionConfigurationProperty { + /** + * Maximum duration that Step Functions will reuse data keys. + * + * When the period expires, Step Functions will call `GenerateDataKey` . Only applies to + * customer managed keys. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-kmsdatakeyreuseperiodseconds) + */ + override fun kmsDataKeyReusePeriodSeconds(): Number? = + unwrap(this).getKmsDataKeyReusePeriodSeconds() + + /** + * An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS key to encrypt + * data. + * + * To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-kmskeyid) + */ + override fun kmsKeyId(): String? = unwrap(this).getKmsKeyId() + + /** + * Encryption option for a state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-encryptionconfiguration.html#cfn-stepfunctions-statemachine-encryptionconfiguration-type) + */ + override fun type(): String = unwrap(this).getType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): EncryptionConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty): + EncryptionConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + EncryptionConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: EncryptionConfigurationProperty): + software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty + } + } + /** * Defines a destination for `LoggingConfiguration` . * @@ -1065,7 +1328,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.LogDestinationProperty, - ) : CdkObject(cdkObject), LogDestinationProperty { + ) : CdkObject(cdkObject), + LogDestinationProperty { /** * An object describing a CloudWatch log group. * @@ -1260,7 +1524,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.LoggingConfigurationProperty, - ) : CdkObject(cdkObject), LoggingConfigurationProperty { + ) : CdkObject(cdkObject), + LoggingConfigurationProperty { /** * An array of objects that describes where your execution history events will be logged. * @@ -1406,7 +1671,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.S3LocationProperty, - ) : CdkObject(cdkObject), S3LocationProperty { + ) : CdkObject(cdkObject), + S3LocationProperty { /** * The name of the S3 bucket where the state machine definition JSON or YAML file is stored. * @@ -1521,7 +1787,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.TagsEntryProperty, - ) : CdkObject(cdkObject), TagsEntryProperty { + ) : CdkObject(cdkObject), + TagsEntryProperty { /** * The `key` for a key-value pair in a tag entry. * @@ -1625,7 +1892,8 @@ public open class CfnStateMachine( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachine.TracingConfigurationProperty, - ) : CdkObject(cdkObject), TracingConfigurationProperty { + ) : CdkObject(cdkObject), + TracingConfigurationProperty { /** * When set to `true` , X-Ray tracing is enabled. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAlias.kt index 538d084737..7e83d2855c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAlias.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStateMachineAlias( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -717,10 +718,16 @@ public open class CfnStateMachineAlias( */ public interface DeploymentPreferenceProperty { /** - * A list of Amazon CloudWatch alarms to be monitored during the deployment. + * A list of Amazon CloudWatch alarm names to be monitored during the deployment. * * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachinealias-deploymentpreference.html#cfn-stepfunctions-statemachinealias-deploymentpreference-alarms) */ public fun alarms(): List = unwrap(this).getAlarms() ?: emptyList() @@ -785,14 +792,26 @@ public open class CfnStateMachineAlias( @CdkDslMarker public interface Builder { /** - * @param alarms A list of Amazon CloudWatch alarms to be monitored during the deployment. + * @param alarms A list of Amazon CloudWatch alarm names to be monitored during the + * deployment. * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. + * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. */ public fun alarms(alarms: List) /** - * @param alarms A list of Amazon CloudWatch alarms to be monitored during the deployment. + * @param alarms A list of Amazon CloudWatch alarm names to be monitored during the + * deployment. * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. + * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. */ public fun alarms(vararg alarms: String) @@ -849,16 +868,28 @@ public open class CfnStateMachineAlias( software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias.DeploymentPreferenceProperty.builder() /** - * @param alarms A list of Amazon CloudWatch alarms to be monitored during the deployment. + * @param alarms A list of Amazon CloudWatch alarm names to be monitored during the + * deployment. * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. + * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. */ override fun alarms(alarms: List) { cdkBuilder.alarms(alarms) } /** - * @param alarms A list of Amazon CloudWatch alarms to be monitored during the deployment. + * @param alarms A list of Amazon CloudWatch alarm names to be monitored during the + * deployment. * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. + * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. */ override fun alarms(vararg alarms: String): Unit = alarms(alarms.toList()) @@ -922,12 +953,19 @@ public open class CfnStateMachineAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias.DeploymentPreferenceProperty, - ) : CdkObject(cdkObject), DeploymentPreferenceProperty { + ) : CdkObject(cdkObject), + DeploymentPreferenceProperty { /** - * A list of Amazon CloudWatch alarms to be monitored during the deployment. + * A list of Amazon CloudWatch alarm names to be monitored during the deployment. * * The deployment fails and rolls back if any of these alarms go into the `ALARM` state. * + * + * Amazon CloudWatch considers nonexistent alarms to have an `OK` state. If you provide an + * invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not + * roll back correctly. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachinealias-deploymentpreference.html#cfn-stepfunctions-statemachinealias-deploymentpreference-alarms) */ override fun alarms(): List = unwrap(this).getAlarms() ?: emptyList() @@ -1095,7 +1133,8 @@ public open class CfnStateMachineAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineAlias.RoutingConfigurationVersionProperty, - ) : CdkObject(cdkObject), RoutingConfigurationVersionProperty { + ) : CdkObject(cdkObject), + RoutingConfigurationVersionProperty { /** * The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in * the routing configuration. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAliasProps.kt index f058e126a1..7288dba309 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineAliasProps.kt @@ -561,7 +561,8 @@ public interface CfnStateMachineAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineAliasProps, - ) : CdkObject(cdkObject), CfnStateMachineAliasProps { + ) : CdkObject(cdkObject), + CfnStateMachineAliasProps { /** * The settings that enable gradual state machine deployments. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineProps.kt index 514029814e..cc66f2d990 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineProps.kt @@ -36,6 +36,12 @@ import kotlin.jvm.JvmName * .definitionString("definitionString") * .definitionSubstitutions(Map.of( * "definitionSubstitutionsKey", "definitionSubstitutions")) + * .encryptionConfiguration(EncryptionConfigurationProperty.builder() + * .type("type") + * // the properties below are optional + * .kmsDataKeyReusePeriodSeconds(123) + * .kmsKeyId("kmsKeyId") + * .build()) * .loggingConfiguration(LoggingConfigurationProperty.builder() * .destinations(List.of(LogDestinationProperty.builder() * .cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder() @@ -106,6 +112,13 @@ public interface CfnStateMachineProps { */ public fun definitionSubstitutions(): Any? = unwrap(this).getDefinitionSubstitutions() + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + */ + public fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** * Defines what execution history events are logged and where they are logged. * @@ -244,6 +257,25 @@ public interface CfnStateMachineProps { */ public fun definitionSubstitutions(definitionSubstitutions: Map) + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + public fun encryptionConfiguration(encryptionConfiguration: IResolvable) + + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + public + fun encryptionConfiguration(encryptionConfiguration: CfnStateMachine.EncryptionConfigurationProperty) + + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e2cebb5a5f42b9219706d4bb4df6f67e191897bef4ccb168a93a61c5020321a1") + public + fun encryptionConfiguration(encryptionConfiguration: CfnStateMachine.EncryptionConfigurationProperty.Builder.() -> Unit) + /** * @param loggingConfiguration Defines what execution history events are logged and where they * are logged. @@ -427,6 +459,31 @@ public interface CfnStateMachineProps { cdkBuilder.definitionSubstitutions(definitionSubstitutions) } + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + override fun encryptionConfiguration(encryptionConfiguration: IResolvable) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + override + fun encryptionConfiguration(encryptionConfiguration: CfnStateMachine.EncryptionConfigurationProperty) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(CfnStateMachine.EncryptionConfigurationProperty.Companion::unwrap)) + } + + /** + * @param encryptionConfiguration Encryption configuration for the state machine. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e2cebb5a5f42b9219706d4bb4df6f67e191897bef4ccb168a93a61c5020321a1") + override + fun encryptionConfiguration(encryptionConfiguration: CfnStateMachine.EncryptionConfigurationProperty.Builder.() -> Unit): + Unit = + encryptionConfiguration(CfnStateMachine.EncryptionConfigurationProperty(encryptionConfiguration)) + /** * @param loggingConfiguration Defines what execution history events are logged and where they * are logged. @@ -554,7 +611,8 @@ public interface CfnStateMachineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineProps, - ) : CdkObject(cdkObject), CfnStateMachineProps { + ) : CdkObject(cdkObject), + CfnStateMachineProps { /** * The Amazon States Language definition of the state machine. * @@ -601,6 +659,13 @@ public interface CfnStateMachineProps { */ override fun definitionSubstitutions(): Any? = unwrap(this).getDefinitionSubstitutions() + /** + * Encryption configuration for the state machine. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-encryptionconfiguration) + */ + override fun encryptionConfiguration(): Any? = unwrap(this).getEncryptionConfiguration() + /** * Defines what execution history events are logged and where they are logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersion.kt index baab21adb5..4e377c39d0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersion.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersion.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnStateMachineVersion( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineVersion, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersionProps.kt index 557285cd63..e0987d6cc9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CfnStateMachineVersionProps.kt @@ -121,7 +121,8 @@ public interface CfnStateMachineVersionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CfnStateMachineVersionProps, - ) : CdkObject(cdkObject), CfnStateMachineVersionProps { + ) : CdkObject(cdkObject), + CfnStateMachineVersionProps { /** * An optional description of the state machine version. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Chain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Chain.kt index ad266eddcb..929bd839d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Chain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Chain.kt @@ -38,7 +38,8 @@ import kotlin.jvm.JvmName */ public open class Chain( cdkObject: software.amazon.awscdk.services.stepfunctions.Chain, -) : CdkObject(cdkObject), IChainable { +) : CdkObject(cdkObject), + IChainable { /** * The chainable end state(s) of this chain. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceProps.kt index d9047b5ae1..0da93b4711 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceProps.kt @@ -137,7 +137,8 @@ public interface ChoiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ChoiceProps, - ) : CdkObject(cdkObject), ChoiceProps { + ) : CdkObject(cdkObject), + ChoiceProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceTransitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceTransitionOptions.kt index 41dc137b9b..0d7707176f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceTransitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ChoiceTransitionOptions.kt @@ -63,7 +63,8 @@ public interface ChoiceTransitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ChoiceTransitionOptions, - ) : CdkObject(cdkObject), ChoiceTransitionOptions { + ) : CdkObject(cdkObject), + ChoiceTransitionOptions { /** * An optional description for the choice transition. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Credentials.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Credentials.kt index 3b2b5728c7..41266796da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Credentials.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Credentials.kt @@ -65,7 +65,8 @@ public interface Credentials { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.Credentials, - ) : CdkObject(cdkObject), Credentials { + ) : CdkObject(cdkObject), + Credentials { /** * The role to be assumed for executing the Task. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomState.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomState.kt index fa2ff26966..ec93460ea3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomState.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomState.kt @@ -66,7 +66,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CustomState( cdkObject: software.amazon.awscdk.services.stepfunctions.CustomState, -) : State(cdkObject), IChainable, INextable { +) : State(cdkObject), + IChainable, + INextable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomStateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomStateProps.kt index 8d756167b4..855f439084 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomStateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomStateProps.kt @@ -96,7 +96,8 @@ public interface CustomStateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.CustomStateProps, - ) : CdkObject(cdkObject), CustomStateProps { + ) : CdkObject(cdkObject), + CustomStateProps { /** * Amazon States Language (JSON-based) definition of the state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomerManagedEncryptionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomerManagedEncryptionConfiguration.kt new file mode 100644 index 0000000000..0d54a0ff28 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/CustomerManagedEncryptionConfiguration.kt @@ -0,0 +1,70 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.services.kms.IKey + +/** + * Define a new CustomerManagedEncryptionConfiguration. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.kms.*; + * import io.cloudshiftdev.awscdk.*; + * Key kmsKey = new Key(this, "Key"); + * StateMachine stateMachine = StateMachine.Builder.create(this, + * "StateMachineWithCMKEncryptionConfiguration") + * .stateMachineName("StateMachineWithCMKEncryptionConfiguration") + * .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass")))) + * .stateMachineType(StateMachineType.STANDARD) + * .encryptionConfiguration(new CustomerManagedEncryptionConfiguration(kmsKey, + * Duration.seconds(60))) + * .build(); + * ``` + */ +public open class CustomerManagedEncryptionConfiguration( + cdkObject: software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration, +) : EncryptionConfiguration(cdkObject) { + public constructor(kmsKey: IKey) : + this(software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration(kmsKey.let(IKey.Companion::unwrap)) + ) + + public constructor(kmsKey: IKey, kmsDataKeyReusePeriodSeconds: Duration) : + this(software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration(kmsKey.let(IKey.Companion::unwrap), + kmsDataKeyReusePeriodSeconds.let(Duration.Companion::unwrap)) + ) + + /** + * Maximum duration that Step Functions will reuse customer managed data keys. When the period + * expires, Step Functions will call GenerateDataKey. + * + * Must be between 60 and 900 seconds. + * + * Default: Duration.seconds(300) + */ + public open fun kmsDataKeyReusePeriodSeconds(): Duration? = + unwrap(this).getKmsDataKeyReusePeriodSeconds()?.let(Duration::wrap) + + /** + * The symmetric customer managed KMS key for server-side encryption of the state machine + * definition, and execution history or activity inputs. + * + * Step Functions will reuse the key for a maximum of `kmsDataKeyReusePeriodSeconds`. + * + * Default: - data is transparently encrypted using an AWS owned key + */ + public open fun kmsKey(): IKey = unwrap(this).getKmsKey().let(IKey::wrap) + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration): + CustomerManagedEncryptionConfiguration = CustomerManagedEncryptionConfiguration(cdkObject) + + internal fun unwrap(wrapped: CustomerManagedEncryptionConfiguration): + software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration = + wrapped.cdkObject as + software.amazon.awscdk.services.stepfunctions.CustomerManagedEncryptionConfiguration + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionBody.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionBody.kt index ca294c008f..eeb0f5b049 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionBody.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionBody.kt @@ -15,14 +15,16 @@ import kotlin.jvm.JvmName * Example: * * ``` - * StateMachine stateMachine = StateMachine.Builder.create(this, "SM") - * .definitionBody(DefinitionBody.fromChainable(Wait.Builder.create(this, - * "Hello").time(WaitTime.duration(Duration.seconds(10))).build())) - * .build(); - * TopicRule.Builder.create(this, "TopicRule") - * .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'")) - * .actions(List.of( - * new StepFunctionsStateMachineAction(stateMachine))) + * import io.cloudshiftdev.awscdk.services.kms.*; + * import io.cloudshiftdev.awscdk.*; + * Key kmsKey = new Key(this, "Key"); + * StateMachine stateMachine = StateMachine.Builder.create(this, + * "StateMachineWithCMKEncryptionConfiguration") + * .stateMachineName("StateMachineWithCMKEncryptionConfiguration") + * .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass")))) + * .stateMachineType(StateMachineType.STANDARD) + * .encryptionConfiguration(new CustomerManagedEncryptionConfiguration(kmsKey, + * Duration.seconds(60))) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionConfig.kt index 85f467e5c1..b74259268e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DefinitionConfig.kt @@ -118,7 +118,8 @@ public interface DefinitionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.DefinitionConfig, - ) : CdkObject(cdkObject), DefinitionConfig { + ) : CdkObject(cdkObject), + DefinitionConfig { /** * */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMap.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMap.kt index 62582bea1b..1faa94d9fe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMap.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMap.kt @@ -32,18 +32,21 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * DistributedMap distributedMap = DistributedMap.Builder.create(this, "Distributed Map State") - * .maxConcurrency(1) - * .itemsPath(JsonPath.stringAt("$.inputForMap")) + * DistributedMap distributedMap = DistributedMap.Builder.create(this, "DistributedMap") + * .mapExecutionType(StateMachineType.EXPRESS) * .build(); - * distributedMap.itemProcessor(new Pass(this, "Pass State")); + * distributedMap.itemProcessor(new Pass(this, "Pass"), ProcessorConfig.builder() + * .mode(ProcessorMode.DISTRIBUTED) + * .executionType(ProcessorType.STANDARD) + * .build()); * ``` * * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-asl-use-map-state-distributed.html) */ public open class DistributedMap( cdkObject: software.amazon.awscdk.services.stepfunctions.DistributedMap, -) : MapBase(cdkObject), INextable { +) : MapBase(cdkObject), + INextable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.DistributedMap(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -276,6 +279,8 @@ public open class DistributedMap( * * The execution type of the distributed map state * + * This property overwrites ProcessorConfig.executionType + * * Default: StateMachineType.STANDARD * * @param mapExecutionType MapExecutionType. @@ -534,6 +539,8 @@ public open class DistributedMap( * * The execution type of the distributed map state * + * This property overwrites ProcessorConfig.executionType + * * Default: StateMachineType.STANDARD * * @param mapExecutionType MapExecutionType. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMapProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMapProps.kt index c32fecd828..943c0ae83b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMapProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/DistributedMapProps.kt @@ -18,11 +18,13 @@ import kotlin.jvm.JvmName * Example: * * ``` - * DistributedMap distributedMap = DistributedMap.Builder.create(this, "Distributed Map State") - * .maxConcurrency(1) - * .itemsPath(JsonPath.stringAt("$.inputForMap")) + * DistributedMap distributedMap = DistributedMap.Builder.create(this, "DistributedMap") + * .mapExecutionType(StateMachineType.EXPRESS) * .build(); - * distributedMap.itemProcessor(new Pass(this, "Pass State")); + * distributedMap.itemProcessor(new Pass(this, "Pass"), ProcessorConfig.builder() + * .mode(ProcessorMode.DISTRIBUTED) + * .executionType(ProcessorType.STANDARD) + * .build()); * ``` */ public interface DistributedMapProps : MapBaseProps { @@ -56,6 +58,8 @@ public interface DistributedMapProps : MapBaseProps { * * The execution type of the distributed map state * + * This property overwrites ProcessorConfig.executionType + * * Default: StateMachineType.STANDARD */ public fun mapExecutionType(): StateMachineType? = @@ -163,6 +167,8 @@ public interface DistributedMapProps : MapBaseProps { /** * @param mapExecutionType MapExecutionType. * The execution type of the distributed map state + * + * This property overwrites ProcessorConfig.executionType */ public fun mapExecutionType(mapExecutionType: StateMachineType) @@ -316,6 +322,8 @@ public interface DistributedMapProps : MapBaseProps { /** * @param mapExecutionType MapExecutionType. * The execution type of the distributed map state + * + * This property overwrites ProcessorConfig.executionType */ override fun mapExecutionType(mapExecutionType: StateMachineType) { cdkBuilder.mapExecutionType(mapExecutionType.let(StateMachineType.Companion::unwrap)) @@ -426,7 +434,8 @@ public interface DistributedMapProps : MapBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.DistributedMapProps, - ) : CdkObject(cdkObject), DistributedMapProps { + ) : CdkObject(cdkObject), + DistributedMapProps { /** * An optional description for this state. * @@ -491,6 +500,8 @@ public interface DistributedMapProps : MapBaseProps { * * The execution type of the distributed map state * + * This property overwrites ProcessorConfig.executionType + * * Default: StateMachineType.STANDARD */ override fun mapExecutionType(): StateMachineType? = diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/EncryptionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/EncryptionConfiguration.kt new file mode 100644 index 0000000000..f02aebf8d0 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/EncryptionConfiguration.kt @@ -0,0 +1,62 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions + +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.String + +/** + * Base class for creating an EncryptionConfiguration for either state machines or activities. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.kms.*; + * import io.cloudshiftdev.awscdk.*; + * Key kmsKey = new Key(this, "Key"); + * StateMachine stateMachine = StateMachine.Builder.create(this, + * "StateMachineWithCMKEncryptionConfiguration") + * .stateMachineName("StateMachineWithCMKEncryptionConfiguration") + * .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass")))) + * .stateMachineType(StateMachineType.STANDARD) + * .encryptionConfiguration(new CustomerManagedEncryptionConfiguration(kmsKey, + * Duration.seconds(60))) + * .build(); + * ``` + */ +public abstract class EncryptionConfiguration( + cdkObject: software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration, +) : CdkObject(cdkObject) { + /** + * Encryption option for the state machine or activity. + * + * Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY. + */ + public open fun type(): String = unwrap(this).getType() + + /** + * Encryption option for the state machine or activity. + * + * Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY. + */ + public open fun type(`value`: String) { + unwrap(this).setType(`value`) + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration, + ) : EncryptionConfiguration(cdkObject) + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration): + EncryptionConfiguration = CdkObjectWrappers.wrap(cdkObject) as? EncryptionConfiguration ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: EncryptionConfiguration): + software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Fail.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Fail.kt index b5824b014b..3861a58ff2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Fail.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Fail.kt @@ -19,8 +19,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * * ``` * Fail fail = Fail.Builder.create(this, "Fail") - * .errorPath(JsonPath.stringAt("$.someError")) - * .causePath(JsonPath.stringAt("$.someCause")) + * .errorPath(JsonPath.format("error: {}.", JsonPath.stringAt("$.someError"))) + * .causePath("States.Format('cause: {}.', $.someCause)") * .build(); * ``` */ @@ -76,6 +76,10 @@ public open class Fail( /** * JsonPath expression to select part of the state to be the cause to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No cause path * * @param causePath JsonPath expression to select part of the state to be the cause to this @@ -104,6 +108,10 @@ public open class Fail( /** * JsonPath expression to select part of the state to be the error to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No error path * * @param errorPath JsonPath expression to select part of the state to be the error to this @@ -142,6 +150,10 @@ public open class Fail( /** * JsonPath expression to select part of the state to be the cause to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No cause path * * @param causePath JsonPath expression to select part of the state to be the cause to this @@ -176,6 +188,10 @@ public open class Fail( /** * JsonPath expression to select part of the state to be the error to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No error path * * @param errorPath JsonPath expression to select part of the state to be the error to this diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FailProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FailProps.kt index c1c9d7aa83..716e7be714 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FailProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FailProps.kt @@ -15,8 +15,8 @@ import kotlin.Unit * * ``` * Fail fail = Fail.Builder.create(this, "Fail") - * .errorPath(JsonPath.stringAt("$.someError")) - * .causePath(JsonPath.stringAt("$.someCause")) + * .errorPath(JsonPath.format("error: {}.", JsonPath.stringAt("$.someError"))) + * .causePath("States.Format('cause: {}.', $.someCause)") * .build(); * ``` */ @@ -31,6 +31,10 @@ public interface FailProps { /** * JsonPath expression to select part of the state to be the cause to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No cause path */ public fun causePath(): String? = unwrap(this).getCausePath() @@ -52,6 +56,10 @@ public interface FailProps { /** * JsonPath expression to select part of the state to be the error to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No error path */ public fun errorPath(): String? = unwrap(this).getErrorPath() @@ -76,6 +84,9 @@ public interface FailProps { /** * @param causePath JsonPath expression to select part of the state to be the cause to this * state. + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. */ public fun causePath(causePath: String) @@ -92,6 +103,9 @@ public interface FailProps { /** * @param errorPath JsonPath expression to select part of the state to be the error to this * state. + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. */ public fun errorPath(errorPath: String) @@ -115,6 +129,9 @@ public interface FailProps { /** * @param causePath JsonPath expression to select part of the state to be the cause to this * state. + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. */ override fun causePath(causePath: String) { cdkBuilder.causePath(causePath) @@ -137,6 +154,9 @@ public interface FailProps { /** * @param errorPath JsonPath expression to select part of the state to be the error to this * state. + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. */ override fun errorPath(errorPath: String) { cdkBuilder.errorPath(errorPath) @@ -154,7 +174,8 @@ public interface FailProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.FailProps, - ) : CdkObject(cdkObject), FailProps { + ) : CdkObject(cdkObject), + FailProps { /** * A description for the cause of the failure. * @@ -165,6 +186,10 @@ public interface FailProps { /** * JsonPath expression to select part of the state to be the cause to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No cause path */ override fun causePath(): String? = unwrap(this).getCausePath() @@ -186,6 +211,10 @@ public interface FailProps { /** * JsonPath expression to select part of the state to be the error to this state. * + * You can also use an intrinsic function that returns a string to specify this property. + * The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, + * States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. + * * Default: - No error path */ override fun errorPath(): String? = unwrap(this).getErrorPath() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FindStateOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FindStateOptions.kt index de6d7f1e83..8b58d244bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FindStateOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/FindStateOptions.kt @@ -58,7 +58,8 @@ public interface FindStateOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.FindStateOptions, - ) : CdkObject(cdkObject), FindStateOptions { + ) : CdkObject(cdkObject), + FindStateOptions { /** * Whether or not to follow error-handling transitions. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IActivity.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IActivity.kt index 414d8a9c0e..1d5698f28d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IActivity.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IActivity.kt @@ -26,9 +26,16 @@ public interface IActivity : IResource { */ public fun activityName(): String + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + */ + public fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.IActivity, - ) : CdkObject(cdkObject), IActivity { + ) : CdkObject(cdkObject), + IActivity { /** * The ARN of the activity. */ @@ -56,6 +63,12 @@ public interface IActivity : IResource { unwrap(this).applyRemovalPolicy(policy.let(RemovalPolicy.Companion::unwrap)) } + /** + * The encryptionConfiguration object used for server-side encryption of the activity inputs. + */ + override fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + /** * The environment this resource belongs to. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IChainable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IChainable.kt index e56df9420d..8738a607f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IChainable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IChainable.kt @@ -28,7 +28,8 @@ public interface IChainable { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.IChainable, - ) : CdkObject(cdkObject), IChainable { + ) : CdkObject(cdkObject), + IChainable { /** * The chainable end state(s) of this chainable. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IItemReader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IItemReader.kt index e2de46e9ce..aa3e8aad37 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IItemReader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IItemReader.kt @@ -44,7 +44,8 @@ public interface IItemReader { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.IItemReader, - ) : CdkObject(cdkObject), IItemReader { + ) : CdkObject(cdkObject), + IItemReader { /** * S3 Bucket containing objects to iterate over or a file with a list to iterate over. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/INextable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/INextable.kt index 3029b6c651..99e91aebe0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/INextable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/INextable.kt @@ -19,7 +19,8 @@ public interface INextable { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.INextable, - ) : CdkObject(cdkObject), INextable { + ) : CdkObject(cdkObject), + INextable { /** * Go to the indicated state after this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IStateMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IStateMachine.kt index ce6b755f9b..1f81885b0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IStateMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/IStateMachine.kt @@ -311,7 +311,8 @@ public interface IStateMachine : IResource, IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.IStateMachine, - ) : CdkObject(cdkObject), IStateMachine { + ) : CdkObject(cdkObject), + IStateMachine { /** * Apply the given removal policy to this resource. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemBatcherProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemBatcherProps.kt index 77aee57e97..350e074f97 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemBatcherProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemBatcherProps.kt @@ -177,7 +177,8 @@ public interface ItemBatcherProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ItemBatcherProps, - ) : CdkObject(cdkObject), ItemBatcherProps { + ) : CdkObject(cdkObject), + ItemBatcherProps { /** * BatchInput. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemReaderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemReaderProps.kt index 3b52a689ff..2200f97a1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemReaderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ItemReaderProps.kt @@ -82,7 +82,8 @@ public interface ItemReaderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ItemReaderProps, - ) : CdkObject(cdkObject), ItemReaderProps { + ) : CdkObject(cdkObject), + ItemReaderProps { /** * S3 Bucket containing objects to iterate over or a file with a list to iterate over. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/LogOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/LogOptions.kt index 1aed1751f8..5a2af33899 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/LogOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/LogOptions.kt @@ -99,7 +99,8 @@ public interface LogOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.LogOptions, - ) : CdkObject(cdkObject), LogOptions { + ) : CdkObject(cdkObject), + LogOptions { /** * The log group where the execution history events will be logged. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Map.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Map.kt index 3706873133..0ae9e298fa 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Map.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Map.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Map( cdkObject: software.amazon.awscdk.services.stepfunctions.Map, -) : MapBase(cdkObject), INextable { +) : MapBase(cdkObject), + INextable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.Map(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBase.kt index b5ca0d046d..816ba68218 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBase.kt @@ -20,7 +20,8 @@ import kotlin.collections.List */ public abstract class MapBase( cdkObject: software.amazon.awscdk.services.stepfunctions.MapBase, -) : State(cdkObject), INextable { +) : State(cdkObject), + INextable { /** * Continuable states of this Chainable. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBaseProps.kt index 79cda47925..cb319b71ed 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapBaseProps.kt @@ -299,7 +299,8 @@ public interface MapBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.MapBaseProps, - ) : CdkObject(cdkObject), MapBaseProps { + ) : CdkObject(cdkObject), + MapBaseProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapProps.kt index 50a25d292c..875120bab6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/MapProps.kt @@ -234,7 +234,8 @@ public interface MapProps : MapBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.MapProps, - ) : CdkObject(cdkObject), MapProps { + ) : CdkObject(cdkObject), + MapProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Parallel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Parallel.kt index 5c17a33e23..cb87f8f861 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Parallel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Parallel.kt @@ -68,7 +68,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Parallel( cdkObject: software.amazon.awscdk.services.stepfunctions.Parallel, -) : State(cdkObject), INextable { +) : State(cdkObject), + INextable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.Parallel(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ParallelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ParallelProps.kt index c5ce9e92e9..29b3c34f7b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ParallelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ParallelProps.kt @@ -199,7 +199,8 @@ public interface ParallelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ParallelProps, - ) : CdkObject(cdkObject), ParallelProps { + ) : CdkObject(cdkObject), + ParallelProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Pass.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Pass.kt index ad6564a3eb..7e34be3db0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Pass.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Pass.kt @@ -21,20 +21,30 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * Choice choice = new Choice(this, "Did it work?"); - * // Add conditions with .when() - * Pass successState = new Pass(this, "SuccessState"); - * Pass failureState = new Pass(this, "FailureState"); - * choice.when(Condition.stringEquals("$.status", "SUCCESS"), successState); - * choice.when(Condition.numberGreaterThan("$.attempts", 5), failureState); - * // Use .otherwise() to indicate what should be done if none of the conditions match - * Pass tryAgainState = new Pass(this, "TryAgainState"); - * choice.otherwise(tryAgainState); + * // Define a state machine with one Pass state + * StateMachine child = StateMachine.Builder.create(this, "ChildStateMachine") + * .definition(Chain.start(new Pass(this, "PassState"))) + * .build(); + * // Include the state machine in a Task state with callback pattern + * StepFunctionsStartExecution task = StepFunctionsStartExecution.Builder.create(this, "ChildTask") + * .stateMachine(child) + * .integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN) + * .input(TaskInput.fromObject(Map.of( + * "token", JsonPath.getTaskToken(), + * "foo", "bar"))) + * .name("MyExecutionName") + * .build(); + * // Define a second state machine with the Task state above + * // Define a second state machine with the Task state above + * StateMachine.Builder.create(this, "ParentStateMachine") + * .definition(task) + * .build(); * ``` */ public open class Pass( cdkObject: software.amazon.awscdk.services.stepfunctions.Pass, -) : State(cdkObject), INextable { +) : State(cdkObject), + INextable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.stepfunctions.Pass(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/PassProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/PassProps.kt index af151cb7f4..0f855793ad 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/PassProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/PassProps.kt @@ -209,7 +209,8 @@ public interface PassProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.PassProps, - ) : CdkObject(cdkObject), PassProps { + ) : CdkObject(cdkObject), + PassProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ProcessorConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ProcessorConfig.kt index 66a07283a0..89191807b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ProcessorConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ProcessorConfig.kt @@ -30,7 +30,11 @@ public interface ProcessorConfig { /** * Specifies the execution type for the Map workflow. * - * You must provide this field if you specified `DISTRIBUTED` for the `mode` sub-field. + * If you use the `Map` class, you must provide this field if you specified `DISTRIBUTED` for the + * `mode` sub-field. + * + * If you use the `DistributedMap` class, this property is ignored. + * Use the `mapExecutionType` in the `DistributedMap` class instead. * * Default: - no execution type */ @@ -40,7 +44,8 @@ public interface ProcessorConfig { /** * Specifies the execution mode for the Map workflow. * - * Default: - ProcessorMode.INLINE + * Default: - ProcessorMode.INLINE if using the `Map` class, ProcessorMode.DISTRIBUTED if using + * the `DistributedMap` class */ public fun mode(): ProcessorMode? = unwrap(this).getMode()?.let(ProcessorMode::wrap) @@ -51,7 +56,11 @@ public interface ProcessorConfig { public interface Builder { /** * @param executionType Specifies the execution type for the Map workflow. - * You must provide this field if you specified `DISTRIBUTED` for the `mode` sub-field. + * If you use the `Map` class, you must provide this field if you specified `DISTRIBUTED` for + * the `mode` sub-field. + * + * If you use the `DistributedMap` class, this property is ignored. + * Use the `mapExecutionType` in the `DistributedMap` class instead. */ public fun executionType(executionType: ProcessorType) @@ -67,7 +76,11 @@ public interface ProcessorConfig { /** * @param executionType Specifies the execution type for the Map workflow. - * You must provide this field if you specified `DISTRIBUTED` for the `mode` sub-field. + * If you use the `Map` class, you must provide this field if you specified `DISTRIBUTED` for + * the `mode` sub-field. + * + * If you use the `DistributedMap` class, this property is ignored. + * Use the `mapExecutionType` in the `DistributedMap` class instead. */ override fun executionType(executionType: ProcessorType) { cdkBuilder.executionType(executionType.let(ProcessorType.Companion::unwrap)) @@ -86,11 +99,16 @@ public interface ProcessorConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ProcessorConfig, - ) : CdkObject(cdkObject), ProcessorConfig { + ) : CdkObject(cdkObject), + ProcessorConfig { /** * Specifies the execution type for the Map workflow. * - * You must provide this field if you specified `DISTRIBUTED` for the `mode` sub-field. + * If you use the `Map` class, you must provide this field if you specified `DISTRIBUTED` for + * the `mode` sub-field. + * + * If you use the `DistributedMap` class, this property is ignored. + * Use the `mapExecutionType` in the `DistributedMap` class instead. * * Default: - no execution type */ @@ -100,7 +118,8 @@ public interface ProcessorConfig { /** * Specifies the execution mode for the Map workflow. * - * Default: - ProcessorMode.INLINE + * Default: - ProcessorMode.INLINE if using the `Map` class, ProcessorMode.DISTRIBUTED if using + * the `DistributedMap` class */ override fun mode(): ProcessorMode? = unwrap(this).getMode()?.let(ProcessorMode::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ResultWriterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ResultWriterProps.kt index c31109faa5..ae0b1cb5e7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ResultWriterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/ResultWriterProps.kt @@ -84,7 +84,8 @@ public interface ResultWriterProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.ResultWriterProps, - ) : CdkObject(cdkObject), ResultWriterProps { + ) : CdkObject(cdkObject), + ResultWriterProps { /** * S3 Bucket in which to save Map Run results. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/RetryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/RetryProps.kt index 93b8225550..8eaf19893e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/RetryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/RetryProps.kt @@ -198,7 +198,8 @@ public interface RetryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.RetryProps, - ) : CdkObject(cdkObject), RetryProps { + ) : CdkObject(cdkObject), + RetryProps { /** * Multiplication for how much longer the wait interval gets on every retry. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReader.kt index 4988f749fe..2840a8695a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReader.kt @@ -35,7 +35,8 @@ import kotlin.collections.List */ public open class S3CsvItemReader( cdkObject: software.amazon.awscdk.services.stepfunctions.S3CsvItemReader, -) : CdkObject(cdkObject), IItemReader { +) : CdkObject(cdkObject), + IItemReader { public constructor(props: S3CsvItemReaderProps) : this(software.amazon.awscdk.services.stepfunctions.S3CsvItemReader(props.let(S3CsvItemReaderProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReaderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReaderProps.kt index 61bc96f583..b7daf6b2c5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReaderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3CsvItemReaderProps.kt @@ -106,7 +106,8 @@ public interface S3CsvItemReaderProps : S3FileItemReaderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.S3CsvItemReaderProps, - ) : CdkObject(cdkObject), S3CsvItemReaderProps { + ) : CdkObject(cdkObject), + S3CsvItemReaderProps { /** * S3 Bucket containing objects to iterate over or a file with a list to iterate over. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3FileItemReaderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3FileItemReaderProps.kt index 4a1cfa1940..be7446d8c9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3FileItemReaderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3FileItemReaderProps.kt @@ -93,7 +93,8 @@ public interface S3FileItemReaderProps : ItemReaderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.S3FileItemReaderProps, - ) : CdkObject(cdkObject), S3FileItemReaderProps { + ) : CdkObject(cdkObject), + S3FileItemReaderProps { /** * S3 Bucket containing objects to iterate over or a file with a list to iterate over. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3JsonItemReader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3JsonItemReader.kt index 848a1b5c87..38cedd0718 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3JsonItemReader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3JsonItemReader.kt @@ -36,7 +36,8 @@ import kotlin.collections.List */ public open class S3JsonItemReader( cdkObject: software.amazon.awscdk.services.stepfunctions.S3JsonItemReader, -) : CdkObject(cdkObject), IItemReader { +) : CdkObject(cdkObject), + IItemReader { public constructor(props: S3FileItemReaderProps) : this(software.amazon.awscdk.services.stepfunctions.S3JsonItemReader(props.let(S3FileItemReaderProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ManifestItemReader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ManifestItemReader.kt index ea0cf901a6..16befd8df5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ManifestItemReader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ManifestItemReader.kt @@ -33,7 +33,8 @@ import kotlin.collections.List */ public open class S3ManifestItemReader( cdkObject: software.amazon.awscdk.services.stepfunctions.S3ManifestItemReader, -) : CdkObject(cdkObject), IItemReader { +) : CdkObject(cdkObject), + IItemReader { public constructor(props: S3FileItemReaderProps) : this(software.amazon.awscdk.services.stepfunctions.S3ManifestItemReader(props.let(S3FileItemReaderProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReader.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReader.kt index 5de8d86296..7aa323004e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReader.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReader.kt @@ -33,7 +33,8 @@ import kotlin.collections.List */ public open class S3ObjectsItemReader( cdkObject: software.amazon.awscdk.services.stepfunctions.S3ObjectsItemReader, -) : CdkObject(cdkObject), IItemReader { +) : CdkObject(cdkObject), + IItemReader { public constructor(props: S3ObjectsItemReaderProps) : this(software.amazon.awscdk.services.stepfunctions.S3ObjectsItemReader(props.let(S3ObjectsItemReaderProps.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReaderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReaderProps.kt index 033dd54f35..f42195d531 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReaderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/S3ObjectsItemReaderProps.kt @@ -92,7 +92,8 @@ public interface S3ObjectsItemReaderProps : ItemReaderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.S3ObjectsItemReaderProps, - ) : CdkObject(cdkObject), S3ObjectsItemReaderProps { + ) : CdkObject(cdkObject), + S3ObjectsItemReaderProps { /** * S3 Bucket containing objects to iterate over or a file with a list to iterate over. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SingleStateOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SingleStateOptions.kt index 11888adecf..8079fea05b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SingleStateOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SingleStateOptions.kt @@ -182,7 +182,8 @@ public interface SingleStateOptions : ParallelProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.SingleStateOptions, - ) : CdkObject(cdkObject), SingleStateOptions { + ) : CdkObject(cdkObject), + SingleStateOptions { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/State.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/State.kt index 7fda8ff196..f9933e3395 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/State.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/State.kt @@ -17,7 +17,8 @@ import kotlin.jvm.JvmName */ public abstract class State( cdkObject: software.amazon.awscdk.services.stepfunctions.State, -) : Construct(cdkObject), IChainable { +) : Construct(cdkObject), + IChainable { /** * Add a prefix to the stateId of this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachine.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachine.kt index c9c13c8efe..b06cb7132d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachine.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachine.kt @@ -49,7 +49,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class StateMachine( cdkObject: software.amazon.awscdk.services.stepfunctions.StateMachine, -) : Resource(cdkObject), IStateMachine { +) : Resource(cdkObject), + IStateMachine { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -462,6 +463,16 @@ public open class StateMachine( */ public fun definitionSubstitutions(definitionSubstitutions: Map) + /** + * Configures server-side encryption of the state machine definition and execution history. + * + * Default: - data is transparently encrypted using an AWS owned key + * + * @param encryptionConfiguration Configures server-side encryption of the state machine + * definition and execution history. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) + /** * Defines what execution history events are logged and where they are logged. * @@ -585,6 +596,18 @@ public open class StateMachine( cdkBuilder.definitionSubstitutions(definitionSubstitutions) } + /** + * Configures server-side encryption of the state machine definition and execution history. + * + * Default: - data is transparently encrypted using an AWS owned key + * + * @param encryptionConfiguration Configures server-side encryption of the state machine + * definition and execution history. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfiguration.Companion::unwrap)) + } + /** * Defines what execution history events are logged and where they are logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineFragment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineFragment.kt index 7de6187729..4e0533715c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineFragment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineFragment.kt @@ -59,7 +59,8 @@ import kotlin.jvm.JvmName */ public abstract class StateMachineFragment( cdkObject: software.amazon.awscdk.services.stepfunctions.StateMachineFragment, -) : Construct(cdkObject), IChainable { +) : Construct(cdkObject), + IChainable { /** * The states to chain onto if this fragment is used. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineProps.kt index cd798ed488..00cdad7f8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateMachineProps.kt @@ -67,6 +67,14 @@ public interface StateMachineProps { public fun definitionSubstitutions(): Map = unwrap(this).getDefinitionSubstitutions() ?: emptyMap() + /** + * Configures server-side encryption of the state machine definition and execution history. + * + * Default: - data is transparently encrypted using an AWS owned key + */ + public fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + /** * Defines what execution history events are logged and where they are logged. * @@ -145,6 +153,12 @@ public interface StateMachineProps { */ public fun definitionSubstitutions(definitionSubstitutions: Map) + /** + * @param encryptionConfiguration Configures server-side encryption of the state machine + * definition and execution history. + */ + public fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) + /** * @param logs Defines what execution history events are logged and where they are logged. */ @@ -223,6 +237,14 @@ public interface StateMachineProps { cdkBuilder.definitionSubstitutions(definitionSubstitutions) } + /** + * @param encryptionConfiguration Configures server-side encryption of the state machine + * definition and execution history. + */ + override fun encryptionConfiguration(encryptionConfiguration: EncryptionConfiguration) { + cdkBuilder.encryptionConfiguration(encryptionConfiguration.let(EncryptionConfiguration.Companion::unwrap)) + } + /** * @param logs Defines what execution history events are logged and where they are logged. */ @@ -286,7 +308,8 @@ public interface StateMachineProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.StateMachineProps, - ) : CdkObject(cdkObject), StateMachineProps { + ) : CdkObject(cdkObject), + StateMachineProps { /** * Comment that describes this state machine. * @@ -314,6 +337,14 @@ public interface StateMachineProps { override fun definitionSubstitutions(): Map = unwrap(this).getDefinitionSubstitutions() ?: emptyMap() + /** + * Configures server-side encryption of the state machine definition and execution history. + * + * Default: - data is transparently encrypted using an AWS owned key + */ + override fun encryptionConfiguration(): EncryptionConfiguration? = + unwrap(this).getEncryptionConfiguration()?.let(EncryptionConfiguration::wrap) + /** * Defines what execution history events are logged and where they are logged. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateProps.kt index c223007d36..f874055795 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/StateProps.kt @@ -226,7 +226,8 @@ public interface StateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.StateProps, - ) : CdkObject(cdkObject), StateProps { + ) : CdkObject(cdkObject), + StateProps { /** * A comment describing this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SucceedProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SucceedProps.kt index 16d25d1bd8..097ce6223d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SucceedProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/SucceedProps.kt @@ -136,7 +136,8 @@ public interface SucceedProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.SucceedProps, - ) : CdkObject(cdkObject), SucceedProps { + ) : CdkObject(cdkObject), + SucceedProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskMetricsConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskMetricsConfig.kt index 8380f95699..e8c13d9361 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskMetricsConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskMetricsConfig.kt @@ -102,7 +102,8 @@ public interface TaskMetricsConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.TaskMetricsConfig, - ) : CdkObject(cdkObject), TaskMetricsConfig { + ) : CdkObject(cdkObject), + TaskMetricsConfig { /** * The dimensions to attach to metrics. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBase.kt index f26bbe85f7..2318cd152a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBase.kt @@ -24,7 +24,8 @@ import kotlin.jvm.JvmName */ public abstract class TaskStateBase( cdkObject: software.amazon.awscdk.services.stepfunctions.TaskStateBase, -) : State(cdkObject), INextable { +) : State(cdkObject), + INextable { /** * Add a recovery handler for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBaseProps.kt index aebbe14f32..820d45ad1b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/TaskStateBaseProps.kt @@ -401,7 +401,8 @@ public interface TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps, - ) : CdkObject(cdkObject), TaskStateBaseProps { + ) : CdkObject(cdkObject), + TaskStateBaseProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Wait.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Wait.kt index 19328cdfe7..97ca5cc151 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Wait.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/Wait.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Wait( cdkObject: software.amazon.awscdk.services.stepfunctions.Wait, -) : State(cdkObject), INextable { +) : State(cdkObject), + INextable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/WaitProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/WaitProps.kt index 226fdaf0ca..ddfb06cd07 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/WaitProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/WaitProps.kt @@ -109,7 +109,8 @@ public interface WaitProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.WaitProps, - ) : CdkObject(cdkObject), WaitProps { + ) : CdkObject(cdkObject), + WaitProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AlgorithmSpecification.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AlgorithmSpecification.kt index 1fa5514f20..521918a97c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AlgorithmSpecification.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AlgorithmSpecification.kt @@ -165,7 +165,8 @@ public interface AlgorithmSpecification { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.AlgorithmSpecification, - ) : CdkObject(cdkObject), AlgorithmSpecification { + ) : CdkObject(cdkObject), + AlgorithmSpecification { /** * Name of the algorithm resource to use for the training job. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ApplicationConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ApplicationConfiguration.kt index b0cc4b14ef..e0bb24d1d6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ApplicationConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ApplicationConfiguration.kt @@ -140,7 +140,8 @@ public interface ApplicationConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ApplicationConfiguration, - ) : CdkObject(cdkObject), ApplicationConfiguration { + ) : CdkObject(cdkObject), + ApplicationConfiguration { /** * The classification within a configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryExecutionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryExecutionProps.kt index cc4b483df7..2a398e6dd6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryExecutionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryExecutionProps.kt @@ -282,7 +282,8 @@ public interface AthenaGetQueryExecutionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.AthenaGetQueryExecutionProps, - ) : CdkObject(cdkObject), AthenaGetQueryExecutionProps { + ) : CdkObject(cdkObject), + AthenaGetQueryExecutionProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryResultsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryResultsProps.kt index b551f97b3c..07280b0fc2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryResultsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaGetQueryResultsProps.kt @@ -321,7 +321,8 @@ public interface AthenaGetQueryResultsProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.AthenaGetQueryResultsProps, - ) : CdkObject(cdkObject), AthenaGetQueryResultsProps { + ) : CdkObject(cdkObject), + AthenaGetQueryResultsProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecution.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecution.kt index 65fdf77b16..5bdfcd31bd 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecution.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecution.kt @@ -269,6 +269,17 @@ public open class AthenaStartQueryExecution( */ public fun resultPath(resultPath: String) + /** + * Specifies, in minutes, the maximum age of a previous query result that Athena should consider + * for reuse. + * + * Default: - Query results are not reused + * + * @param resultReuseConfigurationMaxAge Specifies, in minutes, the maximum age of a previous + * query result that Athena should consider for reuse. + */ + public fun resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge: Duration) + /** * The JSON that will replace the state's raw result and become the effective result before * ResultPath is applied. @@ -563,6 +574,19 @@ public open class AthenaStartQueryExecution( cdkBuilder.resultPath(resultPath) } + /** + * Specifies, in minutes, the maximum age of a previous query result that Athena should consider + * for reuse. + * + * Default: - Query results are not reused + * + * @param resultReuseConfigurationMaxAge Specifies, in minutes, the maximum age of a previous + * query result that Athena should consider for reuse. + */ + override fun resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge: Duration) { + cdkBuilder.resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge.let(Duration.Companion::unwrap)) + } + /** * The JSON that will replace the state's raw result and become the effective result before * ResultPath is applied. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecutionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecutionProps.kt index aeea927aee..d854a286ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecutionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStartQueryExecutionProps.kt @@ -83,6 +83,15 @@ public interface AthenaStartQueryExecutionProps : TaskStateBaseProps { public fun resultConfiguration(): ResultConfiguration? = unwrap(this).getResultConfiguration()?.let(ResultConfiguration::wrap) + /** + * Specifies, in minutes, the maximum age of a previous query result that Athena should consider + * for reuse. + * + * Default: - Query results are not reused + */ + public fun resultReuseConfigurationMaxAge(): Duration? = + unwrap(this).getResultReuseConfigurationMaxAge()?.let(Duration::wrap) + /** * Configuration on how and where to save query. * @@ -211,6 +220,12 @@ public interface AthenaStartQueryExecutionProps : TaskStateBaseProps { */ public fun resultPath(resultPath: String) + /** + * @param resultReuseConfigurationMaxAge Specifies, in minutes, the maximum age of a previous + * query result that Athena should consider for reuse. + */ + public fun resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge: Duration) + /** * @param resultSelector The JSON that will replace the state's raw result and become the * effective result before ResultPath is applied. @@ -395,6 +410,14 @@ public interface AthenaStartQueryExecutionProps : TaskStateBaseProps { cdkBuilder.resultPath(resultPath) } + /** + * @param resultReuseConfigurationMaxAge Specifies, in minutes, the maximum age of a previous + * query result that Athena should consider for reuse. + */ + override fun resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge: Duration) { + cdkBuilder.resultReuseConfigurationMaxAge(resultReuseConfigurationMaxAge.let(Duration.Companion::unwrap)) + } + /** * @param resultSelector The JSON that will replace the state's raw result and become the * effective result before ResultPath is applied. @@ -444,7 +467,8 @@ public interface AthenaStartQueryExecutionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.AthenaStartQueryExecutionProps, - ) : CdkObject(cdkObject), AthenaStartQueryExecutionProps { + ) : CdkObject(cdkObject), + AthenaStartQueryExecutionProps { /** * Unique string string to ensure idempotence. * @@ -571,6 +595,15 @@ public interface AthenaStartQueryExecutionProps : TaskStateBaseProps { */ override fun resultPath(): String? = unwrap(this).getResultPath() + /** + * Specifies, in minutes, the maximum age of a previous query result that Athena should consider + * for reuse. + * + * Default: - Query results are not reused + */ + override fun resultReuseConfigurationMaxAge(): Duration? = + unwrap(this).getResultReuseConfigurationMaxAge()?.let(Duration::wrap) + /** * The JSON that will replace the state's raw result and become the effective result before * ResultPath is applied. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStopQueryExecutionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStopQueryExecutionProps.kt index d0378bd7b3..0a317699e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStopQueryExecutionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/AthenaStopQueryExecutionProps.kt @@ -278,7 +278,8 @@ public interface AthenaStopQueryExecutionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.AthenaStopQueryExecutionProps, - ) : CdkObject(cdkObject), AthenaStopQueryExecutionProps { + ) : CdkObject(cdkObject), + AthenaStopQueryExecutionProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchContainerOverrides.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchContainerOverrides.kt index d96e20ab44..dde75e3d1d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchContainerOverrides.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchContainerOverrides.kt @@ -212,7 +212,8 @@ public interface BatchContainerOverrides { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BatchContainerOverrides, - ) : CdkObject(cdkObject), BatchContainerOverrides { + ) : CdkObject(cdkObject), + BatchContainerOverrides { /** * The command to send to the container that overrides the default command from the Docker image * or the job definition. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchJobDependency.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchJobDependency.kt index 20740e4cdc..f221b7002e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchJobDependency.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchJobDependency.kt @@ -79,7 +79,8 @@ public interface BatchJobDependency { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BatchJobDependency, - ) : CdkObject(cdkObject), BatchJobDependency { + ) : CdkObject(cdkObject), + BatchJobDependency { /** * The job ID of the AWS Batch job associated with this dependency. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchSubmitJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchSubmitJobProps.kt index 5172678f97..f1d67f566e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchSubmitJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BatchSubmitJobProps.kt @@ -499,7 +499,8 @@ public interface BatchSubmitJobProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BatchSubmitJobProps, - ) : CdkObject(cdkObject), BatchSubmitJobProps { + ) : CdkObject(cdkObject), + BatchSubmitJobProps { /** * The array size can be between 2 and 10,000. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModel.kt index 753615b944..8c2e5a74bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModel.kt @@ -12,6 +12,7 @@ import io.cloudshiftdev.awscdk.services.stepfunctions.TaskInput import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBase import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout import kotlin.Any +import kotlin.Boolean import kotlin.Deprecated import kotlin.String import kotlin.Unit @@ -89,7 +90,7 @@ public open class BedrockInvokeModel( * * You must specify either the `body` or the `input` field, but not both. * - * Default: Input data is retrieved from the location specified in the `input` field + * Default: - Input data is retrieved from the location specified in the `input` field * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) * @param body The input data for the Bedrock model invocation. @@ -106,13 +107,16 @@ public open class BedrockInvokeModel( public fun comment(comment: String) /** - * The MIME type of the input data in the request. + * (deprecated) The MIME type of the input data in the request. * * Default: 'application/json' * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. * @param contentType The MIME type of the input data in the request. */ + @Deprecated(message = "deprecated in CDK") public fun contentType(contentType: String) /** @@ -143,6 +147,15 @@ public open class BedrockInvokeModel( @JvmName("9836b1e352f5e6c2dbfc3ccc5026429a9c84a71307d8aad3dd518bd7d4b995ed") public fun credentials(credentials: Credentials.Builder.() -> Unit) + /** + * The guardrail is applied to the invocation. + * + * Default: - No guardrail is applied to the invocation. + * + * @param guardrail The guardrail is applied to the invocation. + */ + public fun guardrail(guardrail: Guardrail) + /** * (deprecated) Timeout for the heartbeat. * @@ -169,7 +182,7 @@ public open class BedrockInvokeModel( /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field * * @param input The source location to retrieve the input data from. */ @@ -178,7 +191,7 @@ public open class BedrockInvokeModel( /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field * * @param input The source location to retrieve the input data from. */ @@ -231,7 +244,7 @@ public open class BedrockInvokeModel( * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. * * @param output The destination location where the API response is written. */ @@ -243,7 +256,7 @@ public open class BedrockInvokeModel( * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. * * @param output The destination location where the API response is written. */ @@ -323,6 +336,15 @@ public open class BedrockInvokeModel( */ @Deprecated(message = "deprecated in CDK") public fun timeout(timeout: Duration) + + /** + * Specifies whether to enable or disable the Bedrock trace. + * + * Default: - Trace is not enabled for the invocation. + * + * @param traceEnabled Specifies whether to enable or disable the Bedrock trace. + */ + public fun traceEnabled(traceEnabled: Boolean) } private class BuilderImpl( @@ -360,7 +382,7 @@ public open class BedrockInvokeModel( * * You must specify either the `body` or the `input` field, but not both. * - * Default: Input data is retrieved from the location specified in the `input` field + * Default: - Input data is retrieved from the location specified in the `input` field * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) * @param body The input data for the Bedrock model invocation. @@ -381,13 +403,16 @@ public open class BedrockInvokeModel( } /** - * The MIME type of the input data in the request. + * (deprecated) The MIME type of the input data in the request. * * Default: 'application/json' * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. * @param contentType The MIME type of the input data in the request. */ + @Deprecated(message = "deprecated in CDK") override fun contentType(contentType: String) { cdkBuilder.contentType(contentType) } @@ -423,6 +448,17 @@ public open class BedrockInvokeModel( override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = credentials(Credentials(credentials)) + /** + * The guardrail is applied to the invocation. + * + * Default: - No guardrail is applied to the invocation. + * + * @param guardrail The guardrail is applied to the invocation. + */ + override fun guardrail(guardrail: Guardrail) { + cdkBuilder.guardrail(guardrail.let(Guardrail.Companion::unwrap)) + } + /** * (deprecated) Timeout for the heartbeat. * @@ -453,7 +489,7 @@ public open class BedrockInvokeModel( /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field * * @param input The source location to retrieve the input data from. */ @@ -464,7 +500,7 @@ public open class BedrockInvokeModel( /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field * * @param input The source location to retrieve the input data from. */ @@ -524,7 +560,7 @@ public open class BedrockInvokeModel( * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. * * @param output The destination location where the API response is written. */ @@ -538,7 +574,7 @@ public open class BedrockInvokeModel( * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. * * @param output The destination location where the API response is written. */ @@ -632,6 +668,17 @@ public open class BedrockInvokeModel( cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * Specifies whether to enable or disable the Bedrock trace. + * + * Default: - Trace is not enabled for the invocation. + * + * @param traceEnabled Specifies whether to enable or disable the Bedrock trace. + */ + override fun traceEnabled(traceEnabled: Boolean) { + cdkBuilder.traceEnabled(traceEnabled) + } + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModel = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelInputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelInputProps.kt index acc2700be9..c5c7092692 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelInputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelInputProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.s3.Location +import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName @@ -15,29 +16,34 @@ import kotlin.jvm.JvmName * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.stepfunctions.tasks.*; - * BedrockInvokeModelInputProps bedrockInvokeModelInputProps = - * BedrockInvokeModelInputProps.builder() - * .s3Location(Location.builder() - * .bucketName("bucketName") - * .objectKey("objectKey") - * // the properties below are optional - * .objectVersion("objectVersion") - * .build()) + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", + * FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); + * BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model") + * .model(model) + * .input(BedrockInvokeModelInputProps.builder().s3InputUri(JsonPath.stringAt("$.prompt")).build()) + * .output(BedrockInvokeModelOutputProps.builder().s3OutputUri(JsonPath.stringAt("$.prompt")).build()) * .build(); * ``` * * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html) */ public interface BedrockInvokeModelInputProps { + /** + * The source location where the API response is written. + * + * This field can be used to specify s3 URI in the form of token + * + * Default: - The API response body is returned in the result. + */ + public fun s3InputUri(): String? = unwrap(this).getS3InputUri() + /** * S3 object to retrieve the input data from. * * If the S3 location is not set, then the Body must be set. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field */ public fun s3Location(): Location? = unwrap(this).getS3Location()?.let(Location::wrap) @@ -46,6 +52,12 @@ public interface BedrockInvokeModelInputProps { */ @CdkDslMarker public interface Builder { + /** + * @param s3InputUri The source location where the API response is written. + * This field can be used to specify s3 URI in the form of token + */ + public fun s3InputUri(s3InputUri: String) + /** * @param s3Location S3 object to retrieve the input data from. * If the S3 location is not set, then the Body must be set. @@ -66,6 +78,14 @@ public interface BedrockInvokeModelInputProps { software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelInputProps.Builder = software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelInputProps.builder() + /** + * @param s3InputUri The source location where the API response is written. + * This field can be used to specify s3 URI in the form of token + */ + override fun s3InputUri(s3InputUri: String) { + cdkBuilder.s3InputUri(s3InputUri) + } + /** * @param s3Location S3 object to retrieve the input data from. * If the S3 location is not set, then the Body must be set. @@ -90,13 +110,23 @@ public interface BedrockInvokeModelInputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelInputProps, - ) : CdkObject(cdkObject), BedrockInvokeModelInputProps { + ) : CdkObject(cdkObject), + BedrockInvokeModelInputProps { + /** + * The source location where the API response is written. + * + * This field can be used to specify s3 URI in the form of token + * + * Default: - The API response body is returned in the result. + */ + override fun s3InputUri(): String? = unwrap(this).getS3InputUri() + /** * S3 object to retrieve the input data from. * * If the S3 location is not set, then the Body must be set. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field */ override fun s3Location(): Location? = unwrap(this).getS3Location()?.let(Location::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelOutputProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelOutputProps.kt index be745e368e..a9da970a63 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelOutputProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelOutputProps.kt @@ -6,6 +6,7 @@ import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers import io.cloudshiftdev.awscdk.services.s3.Location +import kotlin.String import kotlin.Unit import kotlin.jvm.JvmName @@ -15,17 +16,13 @@ import kotlin.jvm.JvmName * Example: * * ``` - * // The code below shows an example of how to instantiate this type. - * // The values are placeholders you should change. - * import io.cloudshiftdev.awscdk.services.stepfunctions.tasks.*; - * BedrockInvokeModelOutputProps bedrockInvokeModelOutputProps = - * BedrockInvokeModelOutputProps.builder() - * .s3Location(Location.builder() - * .bucketName("bucketName") - * .objectKey("objectKey") - * // the properties below are optional - * .objectVersion("objectVersion") - * .build()) + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", + * FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); + * BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model") + * .model(model) + * .input(BedrockInvokeModelInputProps.builder().s3InputUri(JsonPath.stringAt("$.prompt")).build()) + * .output(BedrockInvokeModelOutputProps.builder().s3OutputUri(JsonPath.stringAt("$.prompt")).build()) * .build(); * ``` * @@ -38,10 +35,19 @@ public interface BedrockInvokeModelOutputProps { * If you specify this field, the API response body is replaced with * a reference to the Amazon S3 location of the original output. * - * Default: Response body is returned in the task result + * Default: - Response body is returned in the task result */ public fun s3Location(): Location? = unwrap(this).getS3Location()?.let(Location::wrap) + /** + * The destination location where the API response is written. + * + * This field can be used to specify s3 URI in the form of token + * + * Default: - The API response body is returned in the result. + */ + public fun s3OutputUri(): String? = unwrap(this).getS3OutputUri() + /** * A builder for [BedrockInvokeModelOutputProps] */ @@ -62,6 +68,12 @@ public interface BedrockInvokeModelOutputProps { @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("e5257a3476a510565c590204e38431da4e61b6b37c4c561db431ef52d6de54db") public fun s3Location(s3Location: Location.Builder.() -> Unit) + + /** + * @param s3OutputUri The destination location where the API response is written. + * This field can be used to specify s3 URI in the form of token + */ + public fun s3OutputUri(s3OutputUri: String) } private class BuilderImpl : Builder { @@ -88,6 +100,14 @@ public interface BedrockInvokeModelOutputProps { override fun s3Location(s3Location: Location.Builder.() -> Unit): Unit = s3Location(Location(s3Location)) + /** + * @param s3OutputUri The destination location where the API response is written. + * This field can be used to specify s3 URI in the form of token + */ + override fun s3OutputUri(s3OutputUri: String) { + cdkBuilder.s3OutputUri(s3OutputUri) + } + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelOutputProps = cdkBuilder.build() @@ -95,16 +115,26 @@ public interface BedrockInvokeModelOutputProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelOutputProps, - ) : CdkObject(cdkObject), BedrockInvokeModelOutputProps { + ) : CdkObject(cdkObject), + BedrockInvokeModelOutputProps { /** * S3 object where the Bedrock InvokeModel API response is written. * * If you specify this field, the API response body is replaced with * a reference to the Amazon S3 location of the original output. * - * Default: Response body is returned in the task result + * Default: - Response body is returned in the task result */ override fun s3Location(): Location? = unwrap(this).getS3Location()?.let(Location::wrap) + + /** + * The destination location where the API response is written. + * + * This field can be used to specify s3 URI in the form of token + * + * Default: - The API response body is returned in the result. + */ + override fun s3OutputUri(): String? = unwrap(this).getS3OutputUri() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelProps.kt index 25cf1b96eb..9647b9686f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/BedrockInvokeModelProps.kt @@ -13,6 +13,7 @@ import io.cloudshiftdev.awscdk.services.stepfunctions.TaskInput import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBaseProps import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout import kotlin.Any +import kotlin.Boolean import kotlin.Deprecated import kotlin.String import kotlin.Unit @@ -64,25 +65,35 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { * * You must specify either the `body` or the `input` field, but not both. * - * Default: Input data is retrieved from the location specified in the `input` field + * Default: - Input data is retrieved from the location specified in the `input` field * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) */ public fun body(): TaskInput? = unwrap(this).getBody()?.let(TaskInput::wrap) /** - * The MIME type of the input data in the request. + * (deprecated) The MIME type of the input data in the request. * * Default: 'application/json' * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. */ + @Deprecated(message = "deprecated in CDK") public fun contentType(): String? = unwrap(this).getContentType() + /** + * The guardrail is applied to the invocation. + * + * Default: - No guardrail is applied to the invocation. + */ + public fun guardrail(): Guardrail? = unwrap(this).getGuardrail()?.let(Guardrail::wrap) + /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field */ public fun input(): BedrockInvokeModelInputProps? = unwrap(this).getInput()?.let(BedrockInvokeModelInputProps::wrap) @@ -100,11 +111,18 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. */ public fun output(): BedrockInvokeModelOutputProps? = unwrap(this).getOutput()?.let(BedrockInvokeModelOutputProps::wrap) + /** + * Specifies whether to enable or disable the Bedrock trace. + * + * Default: - Trace is not enabled for the invocation. + */ + public fun traceEnabled(): Boolean? = unwrap(this).getTraceEnabled() + /** * A builder for [BedrockInvokeModelProps] */ @@ -137,7 +155,10 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { /** * @param contentType The MIME type of the input data in the request. + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. */ + @Deprecated(message = "deprecated in CDK") public fun contentType(contentType: String) /** @@ -156,6 +177,11 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { @JvmName("325a554503021599a7241386fb143c9e545442362ed53bcd75e5b5cce3585a73") public fun credentials(credentials: Credentials.Builder.() -> Unit) + /** + * @param guardrail The guardrail is applied to the invocation. + */ + public fun guardrail(guardrail: Guardrail) + /** * @param heartbeat Timeout for the heartbeat. * @deprecated use `heartbeatTimeout` @@ -261,6 +287,11 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { */ @Deprecated(message = "deprecated in CDK") public fun timeout(timeout: Duration) + + /** + * @param traceEnabled Specifies whether to enable or disable the Bedrock trace. + */ + public fun traceEnabled(traceEnabled: Boolean) } private class BuilderImpl : Builder { @@ -301,7 +332,10 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { /** * @param contentType The MIME type of the input data in the request. + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. */ + @Deprecated(message = "deprecated in CDK") override fun contentType(contentType: String) { cdkBuilder.contentType(contentType) } @@ -325,6 +359,13 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = credentials(Credentials(credentials)) + /** + * @param guardrail The guardrail is applied to the invocation. + */ + override fun guardrail(guardrail: Guardrail) { + cdkBuilder.guardrail(guardrail.let(Guardrail.Companion::unwrap)) + } + /** * @param heartbeat Timeout for the heartbeat. * @deprecated use `heartbeatTimeout` @@ -459,13 +500,21 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * @param traceEnabled Specifies whether to enable or disable the Bedrock trace. + */ + override fun traceEnabled(traceEnabled: Boolean) { + cdkBuilder.traceEnabled(traceEnabled) + } + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelProps, - ) : CdkObject(cdkObject), BedrockInvokeModelProps { + ) : CdkObject(cdkObject), + BedrockInvokeModelProps { /** * The desired MIME type of the inference body in the response. * @@ -489,7 +538,7 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { * * You must specify either the `body` or the `input` field, but not both. * - * Default: Input data is retrieved from the location specified in the `input` field + * Default: - Input data is retrieved from the location specified in the `input` field * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) */ @@ -503,12 +552,15 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { override fun comment(): String? = unwrap(this).getComment() /** - * The MIME type of the input data in the request. + * (deprecated) The MIME type of the input data in the request. * * Default: 'application/json' * * [Documentation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) + * @deprecated This property does not require configuration because the only acceptable value is + * 'application/json'. */ + @Deprecated(message = "deprecated in CDK") override fun contentType(): String? = unwrap(this).getContentType() /** @@ -522,6 +574,13 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { */ override fun credentials(): Credentials? = unwrap(this).getCredentials()?.let(Credentials::wrap) + /** + * The guardrail is applied to the invocation. + * + * Default: - No guardrail is applied to the invocation. + */ + override fun guardrail(): Guardrail? = unwrap(this).getGuardrail()?.let(Guardrail::wrap) + /** * (deprecated) Timeout for the heartbeat. * @@ -546,7 +605,7 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { /** * The source location to retrieve the input data from. * - * Default: Input data is retrieved from the `body` field + * Default: - Input data is retrieved from the `body` field */ override fun input(): BedrockInvokeModelInputProps? = unwrap(this).getInput()?.let(BedrockInvokeModelInputProps::wrap) @@ -591,7 +650,7 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { * If you specify this field, the API response body is replaced with a reference to the * output location. * - * Default: The API response body is returned in the result. + * Default: - The API response body is returned in the result. */ override fun output(): BedrockInvokeModelOutputProps? = unwrap(this).getOutput()?.let(BedrockInvokeModelOutputProps::wrap) @@ -656,6 +715,13 @@ public interface BedrockInvokeModelProps : TaskStateBaseProps { */ @Deprecated(message = "deprecated in CDK") override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + + /** + * Specifies whether to enable or disable the Bedrock trace. + * + * Default: - Trace is not enabled for the invocation. + */ + override fun traceEnabled(): Boolean? = unwrap(this).getTraceEnabled() } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayEndpointBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayEndpointBaseProps.kt index cda3556440..a5e4c4093c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayEndpointBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayEndpointBaseProps.kt @@ -405,7 +405,8 @@ public interface CallApiGatewayEndpointBaseProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallApiGatewayEndpointBaseProps, - ) : CdkObject(cdkObject), CallApiGatewayEndpointBaseProps { + ) : CdkObject(cdkObject), + CallApiGatewayEndpointBaseProps { /** * Path parameters appended after API endpoint. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayHttpApiEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayHttpApiEndpointProps.kt index b99d05b6e8..cdeac08db3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayHttpApiEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayHttpApiEndpointProps.kt @@ -392,7 +392,8 @@ public interface CallApiGatewayHttpApiEndpointProps : CallApiGatewayEndpointBase private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallApiGatewayHttpApiEndpointProps, - ) : CdkObject(cdkObject), CallApiGatewayHttpApiEndpointProps { + ) : CdkObject(cdkObject), + CallApiGatewayHttpApiEndpointProps { /** * The Id of the API to call. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayRestApiEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayRestApiEndpointProps.kt index 963e275d8e..c9b2d69dc6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayRestApiEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallApiGatewayRestApiEndpointProps.kt @@ -375,7 +375,8 @@ public interface CallApiGatewayRestApiEndpointProps : CallApiGatewayEndpointBase private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallApiGatewayRestApiEndpointProps, - ) : CdkObject(cdkObject), CallApiGatewayRestApiEndpointProps { + ) : CdkObject(cdkObject), + CallApiGatewayRestApiEndpointProps { /** * API to call. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegion.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegion.kt new file mode 100644 index 0000000000..6c17fa5ac1 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegion.kt @@ -0,0 +1,738 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyStatement +import io.cloudshiftdev.awscdk.services.stepfunctions.Credentials +import io.cloudshiftdev.awscdk.services.stepfunctions.IntegrationPattern +import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBase +import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout +import kotlin.Any +import kotlin.Boolean +import kotlin.Deprecated +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * A Step Functions task to call an AWS service API across regions. + * + * This task creates a Lambda function to call cross-region AWS API and invokes it. + * + * Example: + * + * ``` + * Bucket myBucket; + * CallAwsServiceCrossRegion getObject = CallAwsServiceCrossRegion.Builder.create(this, "GetObject") + * .region("ap-northeast-1") + * .service("s3") + * .action("getObject") + * .parameters(Map.of( + * "Bucket", myBucket.getBucketName(), + * "Key", JsonPath.stringAt("$.key"))) + * .iamResources(List.of(myBucket.arnForObjects("*"))) + * .build(); + * ``` + */ +public open class CallAwsServiceCrossRegion( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion, +) : TaskStateBase(cdkObject) { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CallAwsServiceCrossRegionProps, + ) : + this(software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CallAwsServiceCrossRegionProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CallAwsServiceCrossRegionProps.Builder.() -> Unit, + ) : this(scope, id, CallAwsServiceCrossRegionProps(props) + ) + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion]. + */ + @CdkDslMarker + public interface Builder { + /** + * The API action to call. + * + * Use camelCase. + * + * @param action The API action to call. + */ + public fun action(action: String) + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + * + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + */ + public fun additionalIamStatements(additionalIamStatements: List) + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + * + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + */ + public fun additionalIamStatements(vararg additionalIamStatements: PolicyStatement) + + /** + * An optional description for this state. + * + * Default: - No comment + * + * @param comment An optional description for this state. + */ + public fun comment(comment: String) + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + public fun credentials(credentials: Credentials) + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("81d03969bd2d756e74a400925760165fdf6fbb56c1788dd79a131a6064f83d9d") + public fun credentials(credentials: Credentials.Builder.() -> Unit) + + /** + * The AWS API endpoint. + * + * Default: Do not override API endpoint. + * + * @param endpoint The AWS API endpoint. + */ + public fun endpoint(endpoint: String) + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + * @param heartbeat Timeout for the heartbeat. + */ + @Deprecated(message = "deprecated in CDK") + public fun heartbeat(heartbeat: Duration) + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param heartbeatTimeout Timeout for the heartbeat. + */ + public fun heartbeatTimeout(heartbeatTimeout: Timeout) + + /** + * The action for the IAM statement that will be added to the Lambda function role's policy to + * allow the state machine to make the API call. + * + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + * + * Default: - service:action + * + * @param iamAction The action for the IAM statement that will be added to the Lambda function + * role's policy to allow the state machine to make the API call. + */ + public fun iamAction(iamAction: String) + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy + * to allow the state machine to make the API call. + * + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + public fun iamResources(iamResources: List) + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy + * to allow the state machine to make the API call. + * + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + public fun iamResources(vararg iamResources: String) + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + * + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + */ + public fun inputPath(inputPath: String) + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + */ + public fun integrationPattern(integrationPattern: IntegrationPattern) + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + * + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + */ + public fun outputPath(outputPath: String) + + /** + * Parameters for the API action call in AWS SDK for JavaScript v3 format. + * + * Default: - no parameters + * + * @param parameters Parameters for the API action call in AWS SDK for JavaScript v3 format. + */ + public fun parameters(parameters: Map) + + /** + * The AWS region to call this AWS API for. + * + * Example: + * + * ``` + * "us-east-1"; + * ``` + * + * @param region The AWS region to call this AWS API for. + */ + public fun region(region: String) + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + * + * @param resultPath JSONPath expression to indicate where to inject the state's output. + */ + public fun resultPath(resultPath: String) + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + */ + public fun resultSelector(resultSelector: Map) + + /** + * Whether to retry on the backend Lambda service exceptions. + * + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + * + * Default: true + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html) + * @param retryOnServiceExceptions Whether to retry on the backend Lambda service exceptions. + */ + public fun retryOnServiceExceptions(retryOnServiceExceptions: Boolean) + + /** + * The AWS service to call in AWS SDK for JavaScript v3 format. + * + * Example: + * + * ``` + * "s3"; + * ``` + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) + * @param service The AWS service to call in AWS SDK for JavaScript v3 format. + */ + public fun service(service: String) + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + * + * @param stateName Optional name for this state. + */ + public fun stateName(stateName: String) + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param taskTimeout Timeout for the task. + */ + public fun taskTimeout(taskTimeout: Timeout) + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + * @param timeout Timeout for the task. + */ + @Deprecated(message = "deprecated in CDK") + public fun timeout(timeout: Duration) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion.Builder = + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion.Builder.create(scope, + id) + + /** + * The API action to call. + * + * Use camelCase. + * + * @param action The API action to call. + */ + override fun action(action: String) { + cdkBuilder.action(action) + } + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + * + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + */ + override fun additionalIamStatements(additionalIamStatements: List) { + cdkBuilder.additionalIamStatements(additionalIamStatements.map(PolicyStatement.Companion::unwrap)) + } + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + * + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + */ + override fun additionalIamStatements(vararg additionalIamStatements: PolicyStatement): Unit = + additionalIamStatements(additionalIamStatements.toList()) + + /** + * An optional description for this state. + * + * Default: - No comment + * + * @param comment An optional description for this state. + */ + override fun comment(comment: String) { + cdkBuilder.comment(comment) + } + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + override fun credentials(credentials: Credentials) { + cdkBuilder.credentials(credentials.let(Credentials.Companion::unwrap)) + } + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("81d03969bd2d756e74a400925760165fdf6fbb56c1788dd79a131a6064f83d9d") + override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = + credentials(Credentials(credentials)) + + /** + * The AWS API endpoint. + * + * Default: Do not override API endpoint. + * + * @param endpoint The AWS API endpoint. + */ + override fun endpoint(endpoint: String) { + cdkBuilder.endpoint(endpoint) + } + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + * @param heartbeat Timeout for the heartbeat. + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(heartbeat: Duration) { + cdkBuilder.heartbeat(heartbeat.let(Duration.Companion::unwrap)) + } + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param heartbeatTimeout Timeout for the heartbeat. + */ + override fun heartbeatTimeout(heartbeatTimeout: Timeout) { + cdkBuilder.heartbeatTimeout(heartbeatTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * The action for the IAM statement that will be added to the Lambda function role's policy to + * allow the state machine to make the API call. + * + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + * + * Default: - service:action + * + * @param iamAction The action for the IAM statement that will be added to the Lambda function + * role's policy to allow the state machine to make the API call. + */ + override fun iamAction(iamAction: String) { + cdkBuilder.iamAction(iamAction) + } + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy + * to allow the state machine to make the API call. + * + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + override fun iamResources(iamResources: List) { + cdkBuilder.iamResources(iamResources) + } + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy + * to allow the state machine to make the API call. + * + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + override fun iamResources(vararg iamResources: String): Unit = + iamResources(iamResources.toList()) + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + * + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + */ + override fun inputPath(inputPath: String) { + cdkBuilder.inputPath(inputPath) + } + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + */ + override fun integrationPattern(integrationPattern: IntegrationPattern) { + cdkBuilder.integrationPattern(integrationPattern.let(IntegrationPattern.Companion::unwrap)) + } + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + * + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + */ + override fun outputPath(outputPath: String) { + cdkBuilder.outputPath(outputPath) + } + + /** + * Parameters for the API action call in AWS SDK for JavaScript v3 format. + * + * Default: - no parameters + * + * @param parameters Parameters for the API action call in AWS SDK for JavaScript v3 format. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * The AWS region to call this AWS API for. + * + * Example: + * + * ``` + * "us-east-1"; + * ``` + * + * @param region The AWS region to call this AWS API for. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + * + * @param resultPath JSONPath expression to indicate where to inject the state's output. + */ + override fun resultPath(resultPath: String) { + cdkBuilder.resultPath(resultPath) + } + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + */ + override fun resultSelector(resultSelector: Map) { + cdkBuilder.resultSelector(resultSelector.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * Whether to retry on the backend Lambda service exceptions. + * + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + * + * Default: true + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html) + * @param retryOnServiceExceptions Whether to retry on the backend Lambda service exceptions. + */ + override fun retryOnServiceExceptions(retryOnServiceExceptions: Boolean) { + cdkBuilder.retryOnServiceExceptions(retryOnServiceExceptions) + } + + /** + * The AWS service to call in AWS SDK for JavaScript v3 format. + * + * Example: + * + * ``` + * "s3"; + * ``` + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) + * @param service The AWS service to call in AWS SDK for JavaScript v3 format. + */ + override fun service(service: String) { + cdkBuilder.service(service) + } + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + * + * @param stateName Optional name for this state. + */ + override fun stateName(stateName: String) { + cdkBuilder.stateName(stateName) + } + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param taskTimeout Timeout for the task. + */ + override fun taskTimeout(taskTimeout: Timeout) { + cdkBuilder.taskTimeout(taskTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + * @param timeout Timeout for the task. + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CallAwsServiceCrossRegion { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CallAwsServiceCrossRegion(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion): + CallAwsServiceCrossRegion = CallAwsServiceCrossRegion(cdkObject) + + internal fun unwrap(wrapped: CallAwsServiceCrossRegion): + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion = + wrapped.cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegion + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegionProps.kt new file mode 100644 index 0000000000..e1ef1b75df --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceCrossRegionProps.kt @@ -0,0 +1,769 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.iam.PolicyStatement +import io.cloudshiftdev.awscdk.services.stepfunctions.Credentials +import io.cloudshiftdev.awscdk.services.stepfunctions.IntegrationPattern +import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBaseProps +import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout +import kotlin.Any +import kotlin.Boolean +import kotlin.Deprecated +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for calling an AWS service's API action from your state machine across regions. + * + * Example: + * + * ``` + * Bucket myBucket; + * CallAwsServiceCrossRegion getObject = CallAwsServiceCrossRegion.Builder.create(this, "GetObject") + * .region("ap-northeast-1") + * .service("s3") + * .action("getObject") + * .parameters(Map.of( + * "Bucket", myBucket.getBucketName(), + * "Key", JsonPath.stringAt("$.key"))) + * .iamResources(List.of(myBucket.arnForObjects("*"))) + * .build(); + * ``` + */ +public interface CallAwsServiceCrossRegionProps : TaskStateBaseProps { + /** + * The API action to call. + * + * Use camelCase. + */ + public fun action(): String + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + */ + public fun additionalIamStatements(): List = + unwrap(this).getAdditionalIamStatements()?.map(PolicyStatement::wrap) ?: emptyList() + + /** + * The AWS API endpoint. + * + * Default: Do not override API endpoint. + */ + public fun endpoint(): String? = unwrap(this).getEndpoint() + + /** + * The action for the IAM statement that will be added to the Lambda function role's policy to + * allow the state machine to make the API call. + * + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + * + * Default: - service:action + */ + public fun iamAction(): String? = unwrap(this).getIamAction() + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy to + * allow the state machine to make the API call. + */ + public fun iamResources(): List + + /** + * Parameters for the API action call in AWS SDK for JavaScript v3 format. + * + * Default: - no parameters + */ + public fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * The AWS region to call this AWS API for. + * + * Example: + * + * ``` + * "us-east-1"; + * ``` + */ + public fun region(): String + + /** + * Whether to retry on the backend Lambda service exceptions. + * + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + * + * Default: true + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html) + */ + public fun retryOnServiceExceptions(): Boolean? = unwrap(this).getRetryOnServiceExceptions() + + /** + * The AWS service to call in AWS SDK for JavaScript v3 format. + * + * Example: + * + * ``` + * "s3"; + * ``` + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) + */ + public fun service(): String + + /** + * A builder for [CallAwsServiceCrossRegionProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param action The API action to call. + * Use camelCase. + */ + public fun action(action: String) + + /** + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + */ + public fun additionalIamStatements(additionalIamStatements: List) + + /** + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + */ + public fun additionalIamStatements(vararg additionalIamStatements: PolicyStatement) + + /** + * @param comment An optional description for this state. + */ + public fun comment(comment: String) + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + public fun credentials(credentials: Credentials) + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11502f9ed37fbb92f7c067202d21b8ded9d722fbcce10a9cf1ddf112261cad7e") + public fun credentials(credentials: Credentials.Builder.() -> Unit) + + /** + * @param endpoint The AWS API endpoint. + */ + public fun endpoint(endpoint: String) + + /** + * @param heartbeat Timeout for the heartbeat. + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + public fun heartbeat(heartbeat: Duration) + + /** + * @param heartbeatTimeout Timeout for the heartbeat. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + public fun heartbeatTimeout(heartbeatTimeout: Timeout) + + /** + * @param iamAction The action for the IAM statement that will be added to the Lambda function + * role's policy to allow the state machine to make the API call. + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + */ + public fun iamAction(iamAction: String) + + /** + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + public fun iamResources(iamResources: List) + + /** + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + public fun iamResources(vararg iamResources: String) + + /** + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + */ + public fun inputPath(inputPath: String) + + /** + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + */ + public fun integrationPattern(integrationPattern: IntegrationPattern) + + /** + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + */ + public fun outputPath(outputPath: String) + + /** + * @param parameters Parameters for the API action call in AWS SDK for JavaScript v3 format. + */ + public fun parameters(parameters: Map) + + /** + * @param region The AWS region to call this AWS API for. + */ + public fun region(region: String) + + /** + * @param resultPath JSONPath expression to indicate where to inject the state's output. + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + */ + public fun resultPath(resultPath: String) + + /** + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + */ + public fun resultSelector(resultSelector: Map) + + /** + * @param retryOnServiceExceptions Whether to retry on the backend Lambda service exceptions. + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + */ + public fun retryOnServiceExceptions(retryOnServiceExceptions: Boolean) + + /** + * @param service The AWS service to call in AWS SDK for JavaScript v3 format. + */ + public fun service(service: String) + + /** + * @param stateName Optional name for this state. + */ + public fun stateName(stateName: String) + + /** + * @param taskTimeout Timeout for the task. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + public fun taskTimeout(taskTimeout: Timeout) + + /** + * @param timeout Timeout for the task. + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + public fun timeout(timeout: Duration) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps.Builder = + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps.builder() + + /** + * @param action The API action to call. + * Use camelCase. + */ + override fun action(action: String) { + cdkBuilder.action(action) + } + + /** + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + */ + override fun additionalIamStatements(additionalIamStatements: List) { + cdkBuilder.additionalIamStatements(additionalIamStatements.map(PolicyStatement.Companion::unwrap)) + } + + /** + * @param additionalIamStatements Additional IAM statements that will be added to the state + * machine role's policy. + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + */ + override fun additionalIamStatements(vararg additionalIamStatements: PolicyStatement): Unit = + additionalIamStatements(additionalIamStatements.toList()) + + /** + * @param comment An optional description for this state. + */ + override fun comment(comment: String) { + cdkBuilder.comment(comment) + } + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + override fun credentials(credentials: Credentials) { + cdkBuilder.credentials(credentials.let(Credentials.Companion::unwrap)) + } + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("11502f9ed37fbb92f7c067202d21b8ded9d722fbcce10a9cf1ddf112261cad7e") + override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = + credentials(Credentials(credentials)) + + /** + * @param endpoint The AWS API endpoint. + */ + override fun endpoint(endpoint: String) { + cdkBuilder.endpoint(endpoint) + } + + /** + * @param heartbeat Timeout for the heartbeat. + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(heartbeat: Duration) { + cdkBuilder.heartbeat(heartbeat.let(Duration.Companion::unwrap)) + } + + /** + * @param heartbeatTimeout Timeout for the heartbeat. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + override fun heartbeatTimeout(heartbeatTimeout: Timeout) { + cdkBuilder.heartbeatTimeout(heartbeatTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * @param iamAction The action for the IAM statement that will be added to the Lambda function + * role's policy to allow the state machine to make the API call. + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + */ + override fun iamAction(iamAction: String) { + cdkBuilder.iamAction(iamAction) + } + + /** + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + override fun iamResources(iamResources: List) { + cdkBuilder.iamResources(iamResources) + } + + /** + * @param iamResources The resources for the IAM statement that will be added to the Lambda + * function role's policy to allow the state machine to make the API call. + */ + override fun iamResources(vararg iamResources: String): Unit = + iamResources(iamResources.toList()) + + /** + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + */ + override fun inputPath(inputPath: String) { + cdkBuilder.inputPath(inputPath) + } + + /** + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + */ + override fun integrationPattern(integrationPattern: IntegrationPattern) { + cdkBuilder.integrationPattern(integrationPattern.let(IntegrationPattern.Companion::unwrap)) + } + + /** + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + */ + override fun outputPath(outputPath: String) { + cdkBuilder.outputPath(outputPath) + } + + /** + * @param parameters Parameters for the API action call in AWS SDK for JavaScript v3 format. + */ + override fun parameters(parameters: Map) { + cdkBuilder.parameters(parameters.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param region The AWS region to call this AWS API for. + */ + override fun region(region: String) { + cdkBuilder.region(region) + } + + /** + * @param resultPath JSONPath expression to indicate where to inject the state's output. + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + */ + override fun resultPath(resultPath: String) { + cdkBuilder.resultPath(resultPath) + } + + /** + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + */ + override fun resultSelector(resultSelector: Map) { + cdkBuilder.resultSelector(resultSelector.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param retryOnServiceExceptions Whether to retry on the backend Lambda service exceptions. + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + */ + override fun retryOnServiceExceptions(retryOnServiceExceptions: Boolean) { + cdkBuilder.retryOnServiceExceptions(retryOnServiceExceptions) + } + + /** + * @param service The AWS service to call in AWS SDK for JavaScript v3 format. + */ + override fun service(service: String) { + cdkBuilder.service(service) + } + + /** + * @param stateName Optional name for this state. + */ + override fun stateName(stateName: String) { + cdkBuilder.stateName(stateName) + } + + /** + * @param taskTimeout Timeout for the task. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + override fun taskTimeout(taskTimeout: Timeout) { + cdkBuilder.taskTimeout(taskTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * @param timeout Timeout for the task. + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps, + ) : CdkObject(cdkObject), + CallAwsServiceCrossRegionProps { + /** + * The API action to call. + * + * Use camelCase. + */ + override fun action(): String = unwrap(this).getAction() + + /** + * Additional IAM statements that will be added to the state machine role's policy. + * + * Use in the case where the call requires more than a single statement to + * be executed, e.g. `rekognition:detectLabels` requires also S3 permissions + * to read the object on which it must act. + * + * Default: - no additional statements are added + */ + override fun additionalIamStatements(): List = + unwrap(this).getAdditionalIamStatements()?.map(PolicyStatement::wrap) ?: emptyList() + + /** + * An optional description for this state. + * + * Default: - No comment + */ + override fun comment(): String? = unwrap(this).getComment() + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + */ + override fun credentials(): Credentials? = unwrap(this).getCredentials()?.let(Credentials::wrap) + + /** + * The AWS API endpoint. + * + * Default: Do not override API endpoint. + */ + override fun endpoint(): String? = unwrap(this).getEndpoint() + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(): Duration? = unwrap(this).getHeartbeat()?.let(Duration::wrap) + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + */ + override fun heartbeatTimeout(): Timeout? = + unwrap(this).getHeartbeatTimeout()?.let(Timeout::wrap) + + /** + * The action for the IAM statement that will be added to the Lambda function role's policy to + * allow the state machine to make the API call. + * + * By default the action for this IAM statement will be `service:action`. + * + * Use in the case where the IAM action name does not match with the + * API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. + * + * Default: - service:action + */ + override fun iamAction(): String? = unwrap(this).getIamAction() + + /** + * The resources for the IAM statement that will be added to the Lambda function role's policy + * to allow the state machine to make the API call. + */ + override fun iamResources(): List = unwrap(this).getIamResources() + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + */ + override fun inputPath(): String? = unwrap(this).getInputPath() + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + */ + override fun integrationPattern(): IntegrationPattern? = + unwrap(this).getIntegrationPattern()?.let(IntegrationPattern::wrap) + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + */ + override fun outputPath(): String? = unwrap(this).getOutputPath() + + /** + * Parameters for the API action call in AWS SDK for JavaScript v3 format. + * + * Default: - no parameters + */ + override fun parameters(): Map = unwrap(this).getParameters() ?: emptyMap() + + /** + * The AWS region to call this AWS API for. + * + * Example: + * + * ``` + * "us-east-1"; + * ``` + */ + override fun region(): String = unwrap(this).getRegion() + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + */ + override fun resultPath(): String? = unwrap(this).getResultPath() + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + */ + override fun resultSelector(): Map = unwrap(this).getResultSelector() ?: emptyMap() + + /** + * Whether to retry on the backend Lambda service exceptions. + * + * This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, + * `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` + * with an interval of 2 seconds, a back-off rate + * of 2 and 6 maximum attempts. + * + * Default: true + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html) + */ + override fun retryOnServiceExceptions(): Boolean? = unwrap(this).getRetryOnServiceExceptions() + + /** + * The AWS service to call in AWS SDK for JavaScript v3 format. + * + * Example: + * + * ``` + * "s3"; + * ``` + * + * [Documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) + */ + override fun service(): String = unwrap(this).getService() + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + */ + override fun stateName(): String? = unwrap(this).getStateName() + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + */ + override fun taskTimeout(): Timeout? = unwrap(this).getTaskTimeout()?.let(Timeout::wrap) + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CallAwsServiceCrossRegionProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps): + CallAwsServiceCrossRegionProps = CdkObjectWrappers.wrap(cdkObject) as? + CallAwsServiceCrossRegionProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: CallAwsServiceCrossRegionProps): + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceCrossRegionProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceProps.kt index 5609718a9d..4dcd8fbdb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CallAwsServiceProps.kt @@ -451,7 +451,8 @@ public interface CallAwsServiceProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CallAwsServiceProps, - ) : CdkObject(cdkObject), CallAwsServiceProps { + ) : CdkObject(cdkObject), + CallAwsServiceProps { /** * The API action to call. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Channel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Channel.kt index 0ba78f17e4..f2d68748e1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Channel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Channel.kt @@ -230,7 +230,8 @@ public interface Channel { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.Channel, - ) : CdkObject(cdkObject), Channel { + ) : CdkObject(cdkObject), + Channel { /** * Name of the channel. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildBatchProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildBatchProps.kt index 7d156495be..9633183464 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildBatchProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildBatchProps.kt @@ -322,7 +322,8 @@ public interface CodeBuildStartBuildBatchProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CodeBuildStartBuildBatchProps, - ) : CdkObject(cdkObject), CodeBuildStartBuildBatchProps { + ) : CdkObject(cdkObject), + CodeBuildStartBuildBatchProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildProps.kt index 9e438aed54..4c1673b7d7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CodeBuildStartBuildProps.kt @@ -318,7 +318,8 @@ public interface CodeBuildStartBuildProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CodeBuildStartBuildProps, - ) : CdkObject(cdkObject), CodeBuildStartBuildProps { + ) : CdkObject(cdkObject), + CodeBuildStartBuildProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CommonEcsRunTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CommonEcsRunTaskProps.kt index 6c4c242112..a62727946f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CommonEcsRunTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/CommonEcsRunTaskProps.kt @@ -178,7 +178,8 @@ public interface CommonEcsRunTaskProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.CommonEcsRunTaskProps, - ) : CdkObject(cdkObject), CommonEcsRunTaskProps { + ) : CdkObject(cdkObject), + CommonEcsRunTaskProps { /** * The topic to run the task on. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinition.kt index 5efa076d9e..df18e083a6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinition.kt @@ -28,7 +28,8 @@ import kotlin.Unit */ public open class ContainerDefinition( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinition, -) : CdkObject(cdkObject), IContainerDefinition { +) : CdkObject(cdkObject), + IContainerDefinition { public constructor(options: ContainerDefinitionOptions) : this(software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinition(options.let(ContainerDefinitionOptions.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionConfig.kt index 82127a55eb..3cb753dd9f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionConfig.kt @@ -64,7 +64,8 @@ public interface ContainerDefinitionConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinitionConfig, - ) : CdkObject(cdkObject), ContainerDefinitionConfig { + ) : CdkObject(cdkObject), + ContainerDefinitionConfig { /** * Additional parameters to pass to the base task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionOptions.kt index 09cdfc3058..9881bf08d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerDefinitionOptions.kt @@ -190,7 +190,8 @@ public interface ContainerDefinitionOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinitionOptions, - ) : CdkObject(cdkObject), ContainerDefinitionOptions { + ) : CdkObject(cdkObject), + ContainerDefinitionOptions { /** * This parameter is ignored for models that contain only a PrimaryContainer. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverride.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverride.kt index 7eb3bc6fd6..c96a748c84 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverride.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverride.kt @@ -205,7 +205,8 @@ public interface ContainerOverride { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ContainerOverride, - ) : CdkObject(cdkObject), ContainerOverride { + ) : CdkObject(cdkObject), + ContainerOverride { /** * Command to run inside the container. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverrides.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverrides.kt index 718a92af1b..ad5378718c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverrides.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ContainerOverrides.kt @@ -213,7 +213,8 @@ public interface ContainerOverrides { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ContainerOverrides, - ) : CdkObject(cdkObject), ContainerOverrides { + ) : CdkObject(cdkObject), + ContainerOverrides { /** * The command to send to the container that overrides the default command from the Docker image * or the job definition. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DataSource.kt index d2f676847e..0eb03ed16b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DataSource.kt @@ -93,7 +93,8 @@ public interface DataSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DataSource, - ) : CdkObject(cdkObject), DataSource { + ) : CdkObject(cdkObject), + DataSource { /** * S3 location of the data source that is associated with a channel. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DockerImageConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DockerImageConfig.kt index aedae952fd..7ba28f7f57 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DockerImageConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DockerImageConfig.kt @@ -57,7 +57,8 @@ public interface DockerImageConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DockerImageConfig, - ) : CdkObject(cdkObject), DockerImageConfig { + ) : CdkObject(cdkObject), + DockerImageConfig { /** * The fully qualified URI of the Docker image. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoDeleteItemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoDeleteItemProps.kt index 2e5c9cbcba..0c6f449c0a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoDeleteItemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoDeleteItemProps.kt @@ -467,7 +467,8 @@ public interface DynamoDeleteItemProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DynamoDeleteItemProps, - ) : CdkObject(cdkObject), DynamoDeleteItemProps { + ) : CdkObject(cdkObject), + DynamoDeleteItemProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoGetItemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoGetItemProps.kt index f96585d036..a21e97810b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoGetItemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoGetItemProps.kt @@ -434,7 +434,8 @@ public interface DynamoGetItemProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DynamoGetItemProps, - ) : CdkObject(cdkObject), DynamoGetItemProps { + ) : CdkObject(cdkObject), + DynamoGetItemProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoPutItemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoPutItemProps.kt index e032d53e98..c25e481a20 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoPutItemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoPutItemProps.kt @@ -453,7 +453,8 @@ public interface DynamoPutItemProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DynamoPutItemProps, - ) : CdkObject(cdkObject), DynamoPutItemProps { + ) : CdkObject(cdkObject), + DynamoPutItemProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoUpdateItemProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoUpdateItemProps.kt index 5f2e3905e0..e9417e2bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoUpdateItemProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/DynamoUpdateItemProps.kt @@ -495,7 +495,8 @@ public interface DynamoUpdateItemProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.DynamoUpdateItemProps, - ) : CdkObject(cdkObject), DynamoUpdateItemProps { + ) : CdkObject(cdkObject), + DynamoUpdateItemProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTarget.kt index 482093d867..fff5aed88f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTarget.kt @@ -48,7 +48,8 @@ import kotlin.jvm.JvmName */ public open class EcsEc2LaunchTarget( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsEc2LaunchTarget, -) : CdkObject(cdkObject), IEcsLaunchTarget { +) : CdkObject(cdkObject), + IEcsLaunchTarget { public constructor() : this(software.amazon.awscdk.services.stepfunctions.tasks.EcsEc2LaunchTarget() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTargetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTargetOptions.kt index 1609230a01..1adad81752 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTargetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsEc2LaunchTargetOptions.kt @@ -125,7 +125,8 @@ public interface EcsEc2LaunchTargetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsEc2LaunchTargetOptions, - ) : CdkObject(cdkObject), EcsEc2LaunchTargetOptions { + ) : CdkObject(cdkObject), + EcsEc2LaunchTargetOptions { /** * Placement constraints. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTarget.kt index 82d48d4d39..5c32223074 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTarget.kt @@ -46,7 +46,8 @@ import kotlin.jvm.JvmName */ public open class EcsFargateLaunchTarget( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsFargateLaunchTarget, -) : CdkObject(cdkObject), IEcsLaunchTarget { +) : CdkObject(cdkObject), + IEcsLaunchTarget { public constructor() : this(software.amazon.awscdk.services.stepfunctions.tasks.EcsFargateLaunchTarget() ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTargetOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTargetOptions.kt index 125720199a..faac638cb1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTargetOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsFargateLaunchTargetOptions.kt @@ -68,7 +68,8 @@ public interface EcsFargateLaunchTargetOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsFargateLaunchTargetOptions, - ) : CdkObject(cdkObject), EcsFargateLaunchTargetOptions { + ) : CdkObject(cdkObject), + EcsFargateLaunchTargetOptions { /** * Refers to a specific runtime environment for Fargate task infrastructure. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsLaunchTargetConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsLaunchTargetConfig.kt index 0d73cf1b52..f3f18ef056 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsLaunchTargetConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsLaunchTargetConfig.kt @@ -63,7 +63,8 @@ public interface EcsLaunchTargetConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsLaunchTargetConfig, - ) : CdkObject(cdkObject), EcsLaunchTargetConfig { + ) : CdkObject(cdkObject), + EcsLaunchTargetConfig { /** * Additional parameters to pass to the base task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTask.kt index bf3070eb6c..d8d49e5353 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTask.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EcsRunTask( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsRunTask, -) : TaskStateBase(cdkObject), IConnectable { +) : TaskStateBase(cdkObject), + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -139,6 +140,16 @@ public open class EcsRunTask( */ public fun containerOverrides(vararg containerOverrides: ContainerOverride) + /** + * Cpu setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + * @param cpu Cpu setting override. + */ + public fun cpu(cpu: String) + /** * Credentials for an IAM Role that the State Machine assumes for executing the task. * @@ -241,6 +252,16 @@ public open class EcsRunTask( */ public fun launchTarget(launchTarget: IEcsLaunchTarget) + /** + * Memory setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + * @param memoryMiB Memory setting override. + */ + public fun memoryMiB(memoryMiB: String) + /** * JSONPath expression to select select a portion of the state output to pass to the next state. * @@ -451,6 +472,18 @@ public open class EcsRunTask( override fun containerOverrides(vararg containerOverrides: ContainerOverride): Unit = containerOverrides(containerOverrides.toList()) + /** + * Cpu setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + * @param cpu Cpu setting override. + */ + override fun cpu(cpu: String) { + cdkBuilder.cpu(cpu) + } + /** * Credentials for an IAM Role that the State Machine assumes for executing the task. * @@ -568,6 +601,18 @@ public open class EcsRunTask( cdkBuilder.launchTarget(launchTarget.let(IEcsLaunchTarget.Companion::unwrap)) } + /** + * Memory setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + * @param memoryMiB Memory setting override. + */ + override fun memoryMiB(memoryMiB: String) { + cdkBuilder.memoryMiB(memoryMiB) + } + /** * JSONPath expression to select select a portion of the state output to pass to the next state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTaskProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTaskProps.kt index f202d1f2dc..3ed7b62035 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTaskProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EcsRunTaskProps.kt @@ -82,6 +82,15 @@ public interface EcsRunTaskProps : TaskStateBaseProps { public fun containerOverrides(): List = unwrap(this).getContainerOverrides()?.map(ContainerOverride::wrap) ?: emptyList() + /** + * Cpu setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + */ + public fun cpu(): String? = unwrap(this).getCpu() + /** * Whether ECS Exec should be enabled. * @@ -99,6 +108,15 @@ public interface EcsRunTaskProps : TaskStateBaseProps { */ public fun launchTarget(): IEcsLaunchTarget + /** + * Memory setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + */ + public fun memoryMiB(): String? = unwrap(this).getMemoryMiB() + /** * Specifies whether to propagate the tags from the task definition to the task. * @@ -175,6 +193,11 @@ public interface EcsRunTaskProps : TaskStateBaseProps { */ public fun containerOverrides(vararg containerOverrides: ContainerOverride) + /** + * @param cpu Cpu setting override. + */ + public fun cpu(cpu: String) + /** * @param credentials Credentials for an IAM Role that the State Machine assumes for executing * the task. @@ -233,6 +256,11 @@ public interface EcsRunTaskProps : TaskStateBaseProps { */ public fun launchTarget(launchTarget: IEcsLaunchTarget) + /** + * @param memoryMiB Memory setting override. + */ + public fun memoryMiB(memoryMiB: String) + /** * @param outputPath JSONPath expression to select select a portion of the state output to pass * to the next state. @@ -361,6 +389,13 @@ public interface EcsRunTaskProps : TaskStateBaseProps { override fun containerOverrides(vararg containerOverrides: ContainerOverride): Unit = containerOverrides(containerOverrides.toList()) + /** + * @param cpu Cpu setting override. + */ + override fun cpu(cpu: String) { + cdkBuilder.cpu(cpu) + } + /** * @param credentials Credentials for an IAM Role that the State Machine assumes for executing * the task. @@ -434,6 +469,13 @@ public interface EcsRunTaskProps : TaskStateBaseProps { cdkBuilder.launchTarget(launchTarget.let(IEcsLaunchTarget.Companion::unwrap)) } + /** + * @param memoryMiB Memory setting override. + */ + override fun memoryMiB(memoryMiB: String) { + cdkBuilder.memoryMiB(memoryMiB) + } + /** * @param outputPath JSONPath expression to select select a portion of the state output to pass * to the next state. @@ -550,7 +592,8 @@ public interface EcsRunTaskProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EcsRunTaskProps, - ) : CdkObject(cdkObject), EcsRunTaskProps { + ) : CdkObject(cdkObject), + EcsRunTaskProps { /** * Assign public IP addresses to each task. * @@ -580,6 +623,15 @@ public interface EcsRunTaskProps : TaskStateBaseProps { override fun containerOverrides(): List = unwrap(this).getContainerOverrides()?.map(ContainerOverride::wrap) ?: emptyList() + /** + * Cpu setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + */ + override fun cpu(): String? = unwrap(this).getCpu() + /** * Credentials for an IAM Role that the State Machine assumes for executing the task. * @@ -657,6 +709,15 @@ public interface EcsRunTaskProps : TaskStateBaseProps { override fun launchTarget(): IEcsLaunchTarget = unwrap(this).getLaunchTarget().let(IEcsLaunchTarget::wrap) + /** + * Memory setting override. + * + * Default: - No override + * + * [Documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html) + */ + override fun memoryMiB(): String? = unwrap(this).getMemoryMiB() + /** * JSONPath expression to select select a portion of the state output to pass to the next state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EksCallProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EksCallProps.kt index cff9e317a2..076d6ddb2b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EksCallProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EksCallProps.kt @@ -360,7 +360,8 @@ public interface EksCallProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EksCallProps, - ) : CdkObject(cdkObject), EksCallProps { + ) : CdkObject(cdkObject), + EksCallProps { /** * The EKS cluster. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrAddStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrAddStepProps.kt index e742a88f47..dfede46b9d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrAddStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrAddStepProps.kt @@ -448,7 +448,8 @@ public interface EmrAddStepProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrAddStepProps, - ) : CdkObject(cdkObject), EmrAddStepProps { + ) : CdkObject(cdkObject), + EmrAddStepProps { /** * The action to take when the cluster step fails. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCancelStepProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCancelStepProps.kt index a8a690d59f..e479b0658e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCancelStepProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCancelStepProps.kt @@ -294,7 +294,8 @@ public interface EmrCancelStepProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCancelStepProps, - ) : CdkObject(cdkObject), EmrCancelStepProps { + ) : CdkObject(cdkObject), + EmrCancelStepProps { /** * The ClusterId to update. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersCreateVirtualClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersCreateVirtualClusterProps.kt index 39dd464600..02126bf648 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersCreateVirtualClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersCreateVirtualClusterProps.kt @@ -336,7 +336,8 @@ public interface EmrContainersCreateVirtualClusterProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrContainersCreateVirtualClusterProps, - ) : CdkObject(cdkObject), EmrContainersCreateVirtualClusterProps { + ) : CdkObject(cdkObject), + EmrContainersCreateVirtualClusterProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersDeleteVirtualClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersDeleteVirtualClusterProps.kt index 8264f034ec..ace8a43561 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersDeleteVirtualClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersDeleteVirtualClusterProps.kt @@ -279,7 +279,8 @@ public interface EmrContainersDeleteVirtualClusterProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrContainersDeleteVirtualClusterProps, - ) : CdkObject(cdkObject), EmrContainersDeleteVirtualClusterProps { + ) : CdkObject(cdkObject), + EmrContainersDeleteVirtualClusterProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRun.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRun.kt index 1329c05a08..5bb90e10e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRun.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRun.kt @@ -54,7 +54,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class EmrContainersStartJobRun( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrContainersStartJobRun, -) : TaskStateBase(cdkObject), IGrantable { +) : TaskStateBase(cdkObject), + IGrantable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRunProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRunProps.kt index 97d663b69c..8a4bc68de9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRunProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrContainersStartJobRunProps.kt @@ -486,7 +486,8 @@ public interface EmrContainersStartJobRunProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrContainersStartJobRunProps, - ) : CdkObject(cdkObject), EmrContainersStartJobRunProps { + ) : CdkObject(cdkObject), + EmrContainersStartJobRunProps { /** * The configurations for the application running in the job run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateCluster.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateCluster.kt index 6736352b81..5fd4792a27 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateCluster.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateCluster.kt @@ -144,6 +144,18 @@ public open class EmrCreateCluster( */ public fun autoScalingRole(autoScalingRole: IRole) + /** + * The amount of idle time after which the cluster automatically terminates. + * + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + * + * Default: - No timeout + * + * @param autoTerminationPolicyIdleTimeout The amount of idle time after which the cluster + * automatically terminates. + */ + public fun autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout: Duration) + /** * A list of bootstrap actions to run before Hadoop starts on the cluster nodes. * @@ -570,6 +582,20 @@ public open class EmrCreateCluster( cdkBuilder.autoScalingRole(autoScalingRole.let(IRole.Companion::unwrap)) } + /** + * The amount of idle time after which the cluster automatically terminates. + * + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + * + * Default: - No timeout + * + * @param autoTerminationPolicyIdleTimeout The amount of idle time after which the cluster + * automatically terminates. + */ + override fun autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout: Duration) { + cdkBuilder.autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout.let(Duration.Companion::unwrap)) + } + /** * A list of bootstrap actions to run before Hadoop starts on the cluster nodes. * @@ -1163,7 +1189,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ApplicationConfigProperty, - ) : CdkObject(cdkObject), ApplicationConfigProperty { + ) : CdkObject(cdkObject), + ApplicationConfigProperty { /** * This option is for advanced users only. * @@ -1360,7 +1387,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.AutoScalingPolicyProperty, - ) : CdkObject(cdkObject), AutoScalingPolicyProperty { + ) : CdkObject(cdkObject), + AutoScalingPolicyProperty { /** * The upper and lower EC2 instance limits for an automatic scaling policy. * @@ -1491,7 +1519,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.BootstrapActionConfigProperty, - ) : CdkObject(cdkObject), BootstrapActionConfigProperty { + ) : CdkObject(cdkObject), + BootstrapActionConfigProperty { /** * The name of the bootstrap action. */ @@ -1806,7 +1835,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.CloudWatchAlarmDefinitionProperty, - ) : CdkObject(cdkObject), CloudWatchAlarmDefinitionProperty { + ) : CdkObject(cdkObject), + CloudWatchAlarmDefinitionProperty { /** * Determines how the metric specified by MetricName is compared to the value specified by * Threshold. @@ -2144,7 +2174,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ConfigurationProperty, - ) : CdkObject(cdkObject), ConfigurationProperty { + ) : CdkObject(cdkObject), + ConfigurationProperty { /** * The classification within a configuration. * @@ -2294,7 +2325,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.EbsBlockDeviceConfigProperty, - ) : CdkObject(cdkObject), EbsBlockDeviceConfigProperty { + ) : CdkObject(cdkObject), + EbsBlockDeviceConfigProperty { /** * EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested * for the EBS volume attached to an EC2 instance in the cluster. @@ -2470,7 +2502,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.EbsConfigurationProperty, - ) : CdkObject(cdkObject), EbsConfigurationProperty { + ) : CdkObject(cdkObject), + EbsConfigurationProperty { /** * An array of Amazon EBS volume specifications attached to a cluster instance. * @@ -2815,7 +2848,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetConfigProperty, - ) : CdkObject(cdkObject), InstanceFleetConfigProperty { + ) : CdkObject(cdkObject), + InstanceFleetConfigProperty { /** * The node type that the instance fleet hosts. * @@ -3072,7 +3106,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty, - ) : CdkObject(cdkObject), InstanceFleetProvisioningSpecificationsProperty { + ) : CdkObject(cdkObject), + InstanceFleetProvisioningSpecificationsProperty { /** * The launch specification for On-Demand Instances in the instance fleet, which determines * the allocation strategy. @@ -3445,7 +3480,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceGroupConfigProperty, - ) : CdkObject(cdkObject), InstanceGroupConfigProperty { + ) : CdkObject(cdkObject), + InstanceGroupConfigProperty { /** * An automatic scaling policy for a core instance group or task instance group in an Amazon * EMR cluster. @@ -3815,7 +3851,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceTypeConfigProperty, - ) : CdkObject(cdkObject), InstanceTypeConfigProperty { + ) : CdkObject(cdkObject), + InstanceTypeConfigProperty { /** * The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. * @@ -4385,7 +4422,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstancesConfigProperty, - ) : CdkObject(cdkObject), InstancesConfigProperty { + ) : CdkObject(cdkObject), + InstancesConfigProperty { /** * A list of additional Amazon EC2 security group IDs for the master node. * @@ -4706,7 +4744,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.KerberosAttributesProperty, - ) : CdkObject(cdkObject), KerberosAttributesProperty { + ) : CdkObject(cdkObject), + KerberosAttributesProperty { /** * The Active Directory password for ADDomainJoinUser. * @@ -4846,7 +4885,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.MetricDimensionProperty, - ) : CdkObject(cdkObject), MetricDimensionProperty { + ) : CdkObject(cdkObject), + MetricDimensionProperty { /** * The dimension name. */ @@ -4984,7 +5024,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.OnDemandProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), OnDemandProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + OnDemandProvisioningSpecificationProperty { /** * Specifies the strategy to use in launching On-Demand instance fleets. * @@ -5124,7 +5165,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.PlacementTypeProperty, - ) : CdkObject(cdkObject), PlacementTypeProperty { + ) : CdkObject(cdkObject), + PlacementTypeProperty { /** * The Amazon EC2 Availability Zone for the cluster. * @@ -5280,7 +5322,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingActionProperty, - ) : CdkObject(cdkObject), ScalingActionProperty { + ) : CdkObject(cdkObject), + ScalingActionProperty { /** * Not available for instance groups. * @@ -5437,7 +5480,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingConstraintsProperty, - ) : CdkObject(cdkObject), ScalingConstraintsProperty { + ) : CdkObject(cdkObject), + ScalingConstraintsProperty { /** * The upper boundary of EC2 instances in an instance group beyond which scaling activities * are not allowed to grow. @@ -5651,7 +5695,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingRuleProperty, - ) : CdkObject(cdkObject), ScalingRuleProperty { + ) : CdkObject(cdkObject), + ScalingRuleProperty { /** * The conditions that trigger an automatic scaling activity. */ @@ -5801,7 +5846,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingTriggerProperty, - ) : CdkObject(cdkObject), ScalingTriggerProperty { + ) : CdkObject(cdkObject), + ScalingTriggerProperty { /** * The definition of a CloudWatch metric alarm. * @@ -5919,7 +5965,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScriptBootstrapActionConfigProperty, - ) : CdkObject(cdkObject), ScriptBootstrapActionConfigProperty { + ) : CdkObject(cdkObject), + ScriptBootstrapActionConfigProperty { /** * A list of command line arguments to pass to the bootstrap action script. * @@ -6076,7 +6123,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.SimpleScalingPolicyConfigurationProperty, - ) : CdkObject(cdkObject), SimpleScalingPolicyConfigurationProperty { + ) : CdkObject(cdkObject), + SimpleScalingPolicyConfigurationProperty { /** * The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or * terminated (if ScalingAdjustment is a negative number) each time the scaling activity is @@ -6359,7 +6407,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.SpotProvisioningSpecificationProperty, - ) : CdkObject(cdkObject), SpotProvisioningSpecificationProperty { + ) : CdkObject(cdkObject), + SpotProvisioningSpecificationProperty { /** * Specifies the strategy to use in launching Spot Instance fleets. * @@ -6565,7 +6614,8 @@ public open class EmrCreateCluster( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.VolumeSpecificationProperty, - ) : CdkObject(cdkObject), VolumeSpecificationProperty { + ) : CdkObject(cdkObject), + VolumeSpecificationProperty { /** * The number of I/O operations per second (IOPS) that the volume supports. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateClusterProps.kt index 4e310ed8a4..c722640677 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrCreateClusterProps.kt @@ -82,6 +82,16 @@ public interface EmrCreateClusterProps : TaskStateBaseProps { */ public fun autoScalingRole(): IRole? = unwrap(this).getAutoScalingRole()?.let(IRole::wrap) + /** + * The amount of idle time after which the cluster automatically terminates. + * + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + * + * Default: - No timeout + */ + public fun autoTerminationPolicyIdleTimeout(): Duration? = + unwrap(this).getAutoTerminationPolicyIdleTimeout()?.let(Duration::wrap) + /** * A list of bootstrap actions to run before Hadoop starts on the cluster nodes. * @@ -236,6 +246,13 @@ public interface EmrCreateClusterProps : TaskStateBaseProps { */ public fun autoScalingRole(autoScalingRole: IRole) + /** + * @param autoTerminationPolicyIdleTimeout The amount of idle time after which the cluster + * automatically terminates. + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + */ + public fun autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout: Duration) + /** * @param bootstrapActions A list of bootstrap actions to run before Hadoop starts on the * cluster nodes. @@ -490,6 +507,15 @@ public interface EmrCreateClusterProps : TaskStateBaseProps { cdkBuilder.autoScalingRole(autoScalingRole.let(IRole.Companion::unwrap)) } + /** + * @param autoTerminationPolicyIdleTimeout The amount of idle time after which the cluster + * automatically terminates. + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + */ + override fun autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout: Duration) { + cdkBuilder.autoTerminationPolicyIdleTimeout(autoTerminationPolicyIdleTimeout.let(Duration.Companion::unwrap)) + } + /** * @param bootstrapActions A list of bootstrap actions to run before Hadoop starts on the * cluster nodes. @@ -778,7 +804,8 @@ public interface EmrCreateClusterProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateClusterProps, - ) : CdkObject(cdkObject), EmrCreateClusterProps { + ) : CdkObject(cdkObject), + EmrCreateClusterProps { /** * A JSON string for selecting additional features. * @@ -803,6 +830,16 @@ public interface EmrCreateClusterProps : TaskStateBaseProps { */ override fun autoScalingRole(): IRole? = unwrap(this).getAutoScalingRole()?.let(IRole::wrap) + /** + * The amount of idle time after which the cluster automatically terminates. + * + * You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). + * + * Default: - No timeout + */ + override fun autoTerminationPolicyIdleTimeout(): Duration? = + unwrap(this).getAutoTerminationPolicyIdleTimeout()?.let(Duration::wrap) + /** * A list of bootstrap actions to run before Hadoop starts on the cluster nodes. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceFleetByNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceFleetByNameProps.kt index 56cf9b86e0..8d8e58d4d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceFleetByNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceFleetByNameProps.kt @@ -341,7 +341,8 @@ public interface EmrModifyInstanceFleetByNameProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceFleetByNameProps, - ) : CdkObject(cdkObject), EmrModifyInstanceFleetByNameProps { + ) : CdkObject(cdkObject), + EmrModifyInstanceFleetByNameProps { /** * The ClusterId to update. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByName.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByName.kt index 4b52d02811..80a5c8723e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByName.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByName.kt @@ -703,7 +703,8 @@ public open class EmrModifyInstanceGroupByName( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceGroupModifyConfigProperty, - ) : CdkObject(cdkObject), InstanceGroupModifyConfigProperty { + ) : CdkObject(cdkObject), + InstanceGroupModifyConfigProperty { /** * A list of new or modified configurations to apply for an instance group. * @@ -894,7 +895,8 @@ public open class EmrModifyInstanceGroupByName( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty, - ) : CdkObject(cdkObject), InstanceResizePolicyProperty { + ) : CdkObject(cdkObject), + InstanceResizePolicyProperty { /** * Decommissioning timeout override for the specific list of instances to be terminated. * @@ -1048,7 +1050,8 @@ public open class EmrModifyInstanceGroupByName( private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.ShrinkPolicyProperty, - ) : CdkObject(cdkObject), ShrinkPolicyProperty { + ) : CdkObject(cdkObject), + ShrinkPolicyProperty { /** * The desired timeout for decommissioning an instance. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByNameProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByNameProps.kt index 432e8996bf..8e105a127a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByNameProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrModifyInstanceGroupByNameProps.kt @@ -348,7 +348,8 @@ public interface EmrModifyInstanceGroupByNameProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByNameProps, - ) : CdkObject(cdkObject), EmrModifyInstanceGroupByNameProps { + ) : CdkObject(cdkObject), + EmrModifyInstanceGroupByNameProps { /** * The ClusterId to update. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrSetClusterTerminationProtectionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrSetClusterTerminationProtectionProps.kt index 0f83a8fe51..30c559cd11 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrSetClusterTerminationProtectionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrSetClusterTerminationProtectionProps.kt @@ -297,7 +297,8 @@ public interface EmrSetClusterTerminationProtectionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrSetClusterTerminationProtectionProps, - ) : CdkObject(cdkObject), EmrSetClusterTerminationProtectionProps { + ) : CdkObject(cdkObject), + EmrSetClusterTerminationProtectionProps { /** * The ClusterId to update. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrTerminateClusterProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrTerminateClusterProps.kt index 5032175965..f828e10838 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrTerminateClusterProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EmrTerminateClusterProps.kt @@ -276,7 +276,8 @@ public interface EmrTerminateClusterProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EmrTerminateClusterProps, - ) : CdkObject(cdkObject), EmrTerminateClusterProps { + ) : CdkObject(cdkObject), + EmrTerminateClusterProps { /** * The ClusterId to terminate. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EncryptionConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EncryptionConfiguration.kt index a58825369e..2ebdd263b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EncryptionConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EncryptionConfiguration.kt @@ -92,7 +92,8 @@ public interface EncryptionConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EncryptionConfiguration, - ) : CdkObject(cdkObject), EncryptionConfiguration { + ) : CdkObject(cdkObject), + EncryptionConfiguration { /** * KMS key ARN or ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpression.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpression.kt index 98f165b772..c518e62605 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpression.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpression.kt @@ -219,7 +219,7 @@ public open class EvaluateExpression( /** * The runtime language to use to evaluate the expression. * - * Default: lambda.Runtime.NODEJS_18_X + * Default: - the latest Lambda node runtime available in your region. * * @param runtime The runtime language to use to evaluate the expression. */ @@ -432,7 +432,7 @@ public open class EvaluateExpression( /** * The runtime language to use to evaluate the expression. * - * Default: lambda.Runtime.NODEJS_18_X + * Default: - the latest Lambda node runtime available in your region. * * @param runtime The runtime language to use to evaluate the expression. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpressionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpressionProps.kt index a46b7c9f43..71e56246d8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpressionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EvaluateExpressionProps.kt @@ -59,7 +59,7 @@ public interface EvaluateExpressionProps : TaskStateBaseProps { /** * The runtime language to use to evaluate the expression. * - * Default: lambda.Runtime.NODEJS_18_X + * Default: - the latest Lambda node runtime available in your region. */ public fun runtime(): Runtime? = unwrap(this).getRuntime()?.let(Runtime::wrap) @@ -319,7 +319,8 @@ public interface EvaluateExpressionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EvaluateExpressionProps, - ) : CdkObject(cdkObject), EvaluateExpressionProps { + ) : CdkObject(cdkObject), + EvaluateExpressionProps { /** * An optional description for this state. * @@ -430,7 +431,7 @@ public interface EvaluateExpressionProps : TaskStateBaseProps { /** * The runtime language to use to evaluate the expression. * - * Default: lambda.Runtime.NODEJS_18_X + * Default: - the latest Lambda node runtime available in your region. */ override fun runtime(): Runtime? = unwrap(this).getRuntime()?.let(Runtime::wrap) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsEntry.kt index 011cdcbb67..fa40431a5c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsEntry.kt @@ -150,7 +150,8 @@ public interface EventBridgePutEventsEntry { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EventBridgePutEventsEntry, - ) : CdkObject(cdkObject), EventBridgePutEventsEntry { + ) : CdkObject(cdkObject), + EventBridgePutEventsEntry { /** * The event body. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsProps.kt index 3d7ff0b299..198718b35b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/EventBridgePutEventsProps.kt @@ -320,7 +320,8 @@ public interface EventBridgePutEventsProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EventBridgePutEventsProps, - ) : CdkObject(cdkObject), EventBridgePutEventsProps { + ) : CdkObject(cdkObject), + EventBridgePutEventsProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ExecutionClass.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ExecutionClass.kt new file mode 100644 index 0000000000..70d6dd0df8 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ExecutionClass.kt @@ -0,0 +1,24 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +public enum class ExecutionClass( + private val cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass, +) { + FLEX(software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass.FLEX), + STANDARD(software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass.STANDARD), + ; + + public companion object { + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass): + ExecutionClass = when (cdkObject) { + software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass.FLEX -> ExecutionClass.FLEX + software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass.STANDARD -> + ExecutionClass.STANDARD + } + + internal fun unwrap(wrapped: ExecutionClass): + software.amazon.awscdk.services.stepfunctions.tasks.ExecutionClass = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueDataBrewStartJobRunProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueDataBrewStartJobRunProps.kt index dcc3114b78..5bfcdff2c0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueDataBrewStartJobRunProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueDataBrewStartJobRunProps.kt @@ -277,7 +277,8 @@ public interface GlueDataBrewStartJobRunProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.GlueDataBrewStartJobRunProps, - ) : CdkObject(cdkObject), GlueDataBrewStartJobRunProps { + ) : CdkObject(cdkObject), + GlueDataBrewStartJobRunProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartCrawlerRunProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartCrawlerRunProps.kt index 8ba5db6ce5..416d8a8d5d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartCrawlerRunProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartCrawlerRunProps.kt @@ -285,7 +285,8 @@ public interface GlueStartCrawlerRunProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.GlueStartCrawlerRunProps, - ) : CdkObject(cdkObject), GlueStartCrawlerRunProps { + ) : CdkObject(cdkObject), + GlueStartCrawlerRunProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRun.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRun.kt index 2c64b33cfe..d780d7d6b8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRun.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRun.kt @@ -28,11 +28,12 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.glue.alpha.*; - * Job submitGlue; - * GlueStartJobRun submitJob = GlueStartJobRun.Builder.create(this, "Submit Job") - * .glueJobName(submitGlue.getJobName()) - * .integrationPattern(IntegrationPattern.RUN_JOB) + * GlueStartJobRun.Builder.create(this, "Task") + * .glueJobName("my-glue-job") + * .workerConfiguration(WorkerConfigurationProperty.builder() + * .workerType(WorkerType.G_1X) // Worker type + * .numberOfWorkers(2) + * .build()) * .build(); * ``` * @@ -111,6 +112,15 @@ public open class GlueStartJobRun( @JvmName("5aee74dc25bc0b12b0d3d4e10ef13dd696dcbd73632ff957db2199f3560ecf65") public fun credentials(credentials: Credentials.Builder.() -> Unit) + /** + * The excecution class of the job. + * + * Default: - STANDARD + * + * @param executionClass The excecution class of the job. + */ + public fun executionClass(executionClass: ExecutionClass) + /** * Glue job name. * @@ -270,6 +280,27 @@ public open class GlueStartJobRun( */ @Deprecated(message = "deprecated in CDK") public fun timeout(timeout: Duration) + + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + * + * @param workerConfiguration The worker configuration for this run. + */ + public fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty) + + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + * + * @param workerConfiguration The worker configuration for this run. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("43e47e27b7583458d69d98613de3eff71c77e1e0daeb70156d05d64c6b45117e") + public + fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl( @@ -337,6 +368,17 @@ public open class GlueStartJobRun( override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = credentials(Credentials(credentials)) + /** + * The excecution class of the job. + * + * Default: - STANDARD + * + * @param executionClass The excecution class of the job. + */ + override fun executionClass(executionClass: ExecutionClass) { + cdkBuilder.executionClass(executionClass.let(ExecutionClass.Companion::unwrap)) + } + /** * Glue job name. * @@ -523,6 +565,30 @@ public open class GlueStartJobRun( cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + * + * @param workerConfiguration The worker configuration for this run. + */ + override fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty) { + cdkBuilder.workerConfiguration(workerConfiguration.let(WorkerConfigurationProperty.Companion::unwrap)) + } + + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + * + * @param workerConfiguration The worker configuration for this run. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("43e47e27b7583458d69d98613de3eff71c77e1e0daeb70156d05d64c6b45117e") + override + fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty.Builder.() -> Unit): + Unit = workerConfiguration(WorkerConfigurationProperty(workerConfiguration)) + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.GlueStartJobRun = cdkBuilder.build() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRunProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRunProps.kt index 7f8ed49d5a..d4ef5b9341 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRunProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/GlueStartJobRunProps.kt @@ -24,11 +24,12 @@ import kotlin.jvm.JvmName * Example: * * ``` - * import io.cloudshiftdev.awscdk.services.glue.alpha.*; - * Job submitGlue; - * GlueStartJobRun submitJob = GlueStartJobRun.Builder.create(this, "Submit Job") - * .glueJobName(submitGlue.getJobName()) - * .integrationPattern(IntegrationPattern.RUN_JOB) + * GlueStartJobRun.Builder.create(this, "Task") + * .glueJobName("my-glue-job") + * .workerConfiguration(WorkerConfigurationProperty.builder() + * .workerType(WorkerType.G_1X) // Worker type + * .numberOfWorkers(2) + * .build()) * .build(); * ``` */ @@ -43,6 +44,14 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { */ public fun arguments(): TaskInput? = unwrap(this).getArguments()?.let(TaskInput::wrap) + /** + * The excecution class of the job. + * + * Default: - STANDARD + */ + public fun executionClass(): ExecutionClass? = + unwrap(this).getExecutionClass()?.let(ExecutionClass::wrap) + /** * Glue job name. */ @@ -69,6 +78,14 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { */ public fun securityConfiguration(): String? = unwrap(this).getSecurityConfiguration() + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + */ + public fun workerConfiguration(): WorkerConfigurationProperty? = + unwrap(this).getWorkerConfiguration()?.let(WorkerConfigurationProperty::wrap) + /** * A builder for [GlueStartJobRunProps] */ @@ -102,6 +119,11 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { @JvmName("52a6c1c7f1882add0fd089dfb133bf94ed3557db7b8244d57630eee14122c49a") public fun credentials(credentials: Credentials.Builder.() -> Unit) + /** + * @param executionClass The excecution class of the job. + */ + public fun executionClass(executionClass: ExecutionClass) + /** * @param glueJobName Glue job name. */ @@ -193,6 +215,19 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { */ @Deprecated(message = "deprecated in CDK") public fun timeout(timeout: Duration) + + /** + * @param workerConfiguration The worker configuration for this run. + */ + public fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty) + + /** + * @param workerConfiguration The worker configuration for this run. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1d5863bb4483231fdfd8895de22c5ad6894891a43edc1f9d80cc3f29768cf39") + public + fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -235,6 +270,13 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = credentials(Credentials(credentials)) + /** + * @param executionClass The excecution class of the job. + */ + override fun executionClass(executionClass: ExecutionClass) { + cdkBuilder.executionClass(executionClass.let(ExecutionClass.Companion::unwrap)) + } + /** * @param glueJobName Glue job name. */ @@ -353,13 +395,30 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) } + /** + * @param workerConfiguration The worker configuration for this run. + */ + override fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty) { + cdkBuilder.workerConfiguration(workerConfiguration.let(WorkerConfigurationProperty.Companion::unwrap)) + } + + /** + * @param workerConfiguration The worker configuration for this run. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b1d5863bb4483231fdfd8895de22c5ad6894891a43edc1f9d80cc3f29768cf39") + override + fun workerConfiguration(workerConfiguration: WorkerConfigurationProperty.Builder.() -> Unit): + Unit = workerConfiguration(WorkerConfigurationProperty(workerConfiguration)) + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.GlueStartJobRunProps = cdkBuilder.build() } private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.GlueStartJobRunProps, - ) : CdkObject(cdkObject), GlueStartJobRunProps { + ) : CdkObject(cdkObject), + GlueStartJobRunProps { /** * The job arguments specifically for this run. * @@ -388,6 +447,14 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { */ override fun credentials(): Credentials? = unwrap(this).getCredentials()?.let(Credentials::wrap) + /** + * The excecution class of the job. + * + * Default: - STANDARD + */ + override fun executionClass(): ExecutionClass? = + unwrap(this).getExecutionClass()?.let(ExecutionClass::wrap) + /** * Glue job name. */ @@ -523,6 +590,14 @@ public interface GlueStartJobRunProps : TaskStateBaseProps { */ @Deprecated(message = "deprecated in CDK") override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + + /** + * The worker configuration for this run. + * + * Default: - Default worker configuration in the job definition + */ + override fun workerConfiguration(): WorkerConfigurationProperty? = + unwrap(this).getWorkerConfiguration()?.let(WorkerConfigurationProperty::wrap) } public companion object { diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Guardrail.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Guardrail.kt new file mode 100644 index 0000000000..1310e99d5c --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Guardrail.kt @@ -0,0 +1,59 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.common.CdkObject +import kotlin.Number +import kotlin.String + +/** + * Guradrail settings for BedrockInvokeModel. + * + * Example: + * + * ``` + * import io.cloudshiftdev.awscdk.services.bedrock.*; + * FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", + * FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); + * BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model with guardrail") + * .model(model) + * .body(TaskInput.fromObject(Map.of( + * "inputText", "Generate a list of five first names.", + * "textGenerationConfig", Map.of( + * "maxTokenCount", 100, + * "temperature", 1)))) + * .guardrail(Guardrail.enable("guardrailId", 1)) + * .resultSelector(Map.of( + * "names", JsonPath.stringAt("$.Body.results[0].outputText"))) + * .build(); + * ``` + */ +public open class Guardrail( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.Guardrail, +) : CdkObject(cdkObject) { + /** + * The identitifier of guardrail. + */ + public open fun guardrailIdentifier(): String = unwrap(this).getGuardrailIdentifier() + + /** + * The version of guardrail. + */ + public open fun guardrailVersion(): String = unwrap(this).getGuardrailVersion() + + public companion object { + public fun enable(identifier: String, version: Number): Guardrail = + software.amazon.awscdk.services.stepfunctions.tasks.Guardrail.enable(identifier, + version).let(Guardrail::wrap) + + public fun enableDraft(identifier: String): Guardrail = + software.amazon.awscdk.services.stepfunctions.tasks.Guardrail.enableDraft(identifier).let(Guardrail::wrap) + + internal fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.Guardrail): + Guardrail = Guardrail(cdkObject) + + internal fun unwrap(wrapped: Guardrail): + software.amazon.awscdk.services.stepfunctions.tasks.Guardrail = wrapped.cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.Guardrail + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvoke.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvoke.kt index c9820ff310..9fcbbfd69e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvoke.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvoke.kt @@ -32,7 +32,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build(); * HttpInvoke.Builder.create(this, "Invoke HTTP API") * .apiRoot("https://api.example.com") - * .apiEndpoint(TaskInput.fromText("https://api.example.com/path/to/resource")) + * .apiEndpoint(TaskInput.fromText("path/to/resource")) * .body(TaskInput.fromObject(Map.of("foo", "bar"))) * .connection(connection) * .headers(TaskInput.fromObject(Map.of("Content-Type", "application/json"))) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvokeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvokeProps.kt index 1063778e5b..f05e4732bb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvokeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/HttpInvokeProps.kt @@ -31,7 +31,7 @@ import kotlin.jvm.JvmName * .build(); * HttpInvoke.Builder.create(this, "Invoke HTTP API") * .apiRoot("https://api.example.com") - * .apiEndpoint(TaskInput.fromText("https://api.example.com/path/to/resource")) + * .apiEndpoint(TaskInput.fromText("path/to/resource")) * .body(TaskInput.fromObject(Map.of("foo", "bar"))) * .connection(connection) * .headers(TaskInput.fromObject(Map.of("Content-Type", "application/json"))) @@ -464,7 +464,8 @@ public interface HttpInvokeProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.HttpInvokeProps, - ) : CdkObject(cdkObject), HttpInvokeProps { + ) : CdkObject(cdkObject), + HttpInvokeProps { /** * The API endpoint to call, relative to `apiRoot`. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IContainerDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IContainerDefinition.kt index 4f3a285300..7d66ea8406 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IContainerDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IContainerDefinition.kt @@ -20,7 +20,8 @@ public interface IContainerDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.IContainerDefinition, - ) : CdkObject(cdkObject), IContainerDefinition { + ) : CdkObject(cdkObject), + IContainerDefinition { /** * Called when the ContainerDefinition is used by a SageMaker task. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IEcsLaunchTarget.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IEcsLaunchTarget.kt index 8e656f9270..5788abc183 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IEcsLaunchTarget.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/IEcsLaunchTarget.kt @@ -36,7 +36,8 @@ public interface IEcsLaunchTarget { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.IEcsLaunchTarget, - ) : CdkObject(cdkObject), IEcsLaunchTarget { + ) : CdkObject(cdkObject), + IEcsLaunchTarget { /** * called when the ECS launch target is configured on RunTask. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ISageMakerTask.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ISageMakerTask.kt index 94c64c58a6..872cc3d967 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ISageMakerTask.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ISageMakerTask.kt @@ -13,7 +13,8 @@ import io.cloudshiftdev.awscdk.services.iam.IPrincipal public interface ISageMakerTask : IGrantable { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ISageMakerTask, - ) : CdkObject(cdkObject), ISageMakerTask { + ) : CdkObject(cdkObject), + ISageMakerTask { /** * The principal to grant permissions to. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDependency.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDependency.kt index 7a45db5e23..261cb23431 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDependency.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDependency.kt @@ -79,7 +79,8 @@ public interface JobDependency { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.JobDependency, - ) : CdkObject(cdkObject), JobDependency { + ) : CdkObject(cdkObject), + JobDependency { /** * The job ID of the AWS Batch job associated with this dependency. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDriver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDriver.kt index 8256ea2847..65c29321c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDriver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/JobDriver.kt @@ -86,7 +86,8 @@ public interface JobDriver { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.JobDriver, - ) : CdkObject(cdkObject), JobDriver { + ) : CdkObject(cdkObject), + JobDriver { /** * The job driver parameters specified for spark submit. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LambdaInvokeProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LambdaInvokeProps.kt index 218c2366c8..fcca192977 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LambdaInvokeProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LambdaInvokeProps.kt @@ -451,7 +451,8 @@ public interface LambdaInvokeProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.LambdaInvokeProps, - ) : CdkObject(cdkObject), LambdaInvokeProps { + ) : CdkObject(cdkObject), + LambdaInvokeProps { /** * Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LaunchTargetBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LaunchTargetBindOptions.kt index c01519e44a..3daadb3600 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LaunchTargetBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/LaunchTargetBindOptions.kt @@ -84,7 +84,8 @@ public interface LaunchTargetBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.LaunchTargetBindOptions, - ) : CdkObject(cdkObject), LaunchTargetBindOptions { + ) : CdkObject(cdkObject), + LaunchTargetBindOptions { /** * A regional grouping of one or more container instances on which you can run tasks and * services. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJob.kt new file mode 100644 index 0000000000..503eba9be4 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJob.kt @@ -0,0 +1,497 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.stepfunctions.Credentials +import io.cloudshiftdev.awscdk.services.stepfunctions.IntegrationPattern +import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBase +import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout +import kotlin.Any +import kotlin.Deprecated +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * A Step Functions Task to create a job in MediaConvert. + * + * The JobConfiguration/Request Syntax is defined in the Parameters in the Task State + * + * Example: + * + * ``` + * MediaConvertCreateJob.Builder.create(this, "CreateJob") + * .createJobRequest(Map.of( + * "Role", "arn:aws:iam::123456789012:role/MediaConvertRole", + * "Settings", Map.of( + * "OutputGroups", List.of(Map.of( + * "Outputs", List.of(Map.of( + * "ContainerSettings", Map.of( + * "Container", "MP4"), + * "VideoDescription", Map.of( + * "CodecSettings", Map.of( + * "Codec", "H_264", + * "H264Settings", Map.of( + * "MaxBitrate", 1000, + * "RateControlMode", "QVBR", + * "SceneChangeDetect", "TRANSITION_DETECTION"))), + * "AudioDescriptions", List.of(Map.of( + * "CodecSettings", Map.of( + * "Codec", "AAC", + * "AacSettings", Map.of( + * "Bitrate", 96000, + * "CodingMode", "CODING_MODE_2_0", + * "SampleRate", 48000)))))), + * "OutputGroupSettings", Map.of( + * "Type", "FILE_GROUP_SETTINGS", + * "FileGroupSettings", Map.of( + * "Destination", "s3://EXAMPLE-DESTINATION-BUCKET/")))), + * "Inputs", List.of(Map.of( + * "AudioSelectors", Map.of( + * "Audio Selector 1", Map.of( + * "DefaultSelection", "DEFAULT")), + * "FileInput", "s3://EXAMPLE-SOURCE-BUCKET/EXAMPLE-SOURCE_FILE"))))) + * .integrationPattern(IntegrationPattern.RUN_JOB) + * .build(); + * ``` + * + * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-mediaconvert.html + * Response syntax: see CreateJobResponse schema + * https://docs.aws.amazon.com/mediaconvert/latest/apireference/jobs.html#jobs-response-examples + */ +public open class MediaConvertCreateJob( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob, +) : TaskStateBase(cdkObject) { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: MediaConvertCreateJobProps, + ) : + this(software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(MediaConvertCreateJobProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: MediaConvertCreateJobProps.Builder.() -> Unit, + ) : this(scope, id, MediaConvertCreateJobProps(props) + ) + + /** + * A fluent builder for + * [io.cloudshiftdev.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob]. + */ + @CdkDslMarker + public interface Builder { + /** + * An optional description for this state. + * + * Default: - No comment + * + * @param comment An optional description for this state. + */ + public fun comment(comment: String) + + /** + * The input data for the MediaConvert Create Job invocation. + * + * @param createJobRequest The input data for the MediaConvert Create Job invocation. + */ + public fun createJobRequest(createJobRequest: Map) + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + public fun credentials(credentials: Credentials) + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("48d65bf03553dd21139be6404139768564283f1306c4b270d058d8d05b887629") + public fun credentials(credentials: Credentials.Builder.() -> Unit) + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + * @param heartbeat Timeout for the heartbeat. + */ + @Deprecated(message = "deprecated in CDK") + public fun heartbeat(heartbeat: Duration) + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param heartbeatTimeout Timeout for the heartbeat. + */ + public fun heartbeatTimeout(heartbeatTimeout: Timeout) + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + * + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + */ + public fun inputPath(inputPath: String) + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + */ + public fun integrationPattern(integrationPattern: IntegrationPattern) + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + * + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + */ + public fun outputPath(outputPath: String) + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + * + * @param resultPath JSONPath expression to indicate where to inject the state's output. + */ + public fun resultPath(resultPath: String) + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + */ + public fun resultSelector(resultSelector: Map) + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + * + * @param stateName Optional name for this state. + */ + public fun stateName(stateName: String) + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param taskTimeout Timeout for the task. + */ + public fun taskTimeout(taskTimeout: Timeout) + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + * @param timeout Timeout for the task. + */ + @Deprecated(message = "deprecated in CDK") + public fun timeout(timeout: Duration) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob.Builder = + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob.Builder.create(scope, + id) + + /** + * An optional description for this state. + * + * Default: - No comment + * + * @param comment An optional description for this state. + */ + override fun comment(comment: String) { + cdkBuilder.comment(comment) + } + + /** + * The input data for the MediaConvert Create Job invocation. + * + * @param createJobRequest The input data for the MediaConvert Create Job invocation. + */ + override fun createJobRequest(createJobRequest: Map) { + cdkBuilder.createJobRequest(createJobRequest.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + override fun credentials(credentials: Credentials) { + cdkBuilder.credentials(credentials.let(Credentials.Companion::unwrap)) + } + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("48d65bf03553dd21139be6404139768564283f1306c4b270d058d8d05b887629") + override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = + credentials(Credentials(credentials)) + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + * @param heartbeat Timeout for the heartbeat. + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(heartbeat: Duration) { + cdkBuilder.heartbeat(heartbeat.let(Duration.Companion::unwrap)) + } + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param heartbeatTimeout Timeout for the heartbeat. + */ + override fun heartbeatTimeout(heartbeatTimeout: Timeout) { + cdkBuilder.heartbeatTimeout(heartbeatTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + * + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + */ + override fun inputPath(inputPath: String) { + cdkBuilder.inputPath(inputPath) + } + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + */ + override fun integrationPattern(integrationPattern: IntegrationPattern) { + cdkBuilder.integrationPattern(integrationPattern.let(IntegrationPattern.Companion::unwrap)) + } + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + * + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + */ + override fun outputPath(outputPath: String) { + cdkBuilder.outputPath(outputPath) + } + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + * + * @param resultPath JSONPath expression to indicate where to inject the state's output. + */ + override fun resultPath(resultPath: String) { + cdkBuilder.resultPath(resultPath) + } + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + */ + override fun resultSelector(resultSelector: Map) { + cdkBuilder.resultSelector(resultSelector.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + * + * @param stateName Optional name for this state. + */ + override fun stateName(stateName: String) { + cdkBuilder.stateName(stateName) + } + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + * + * @param taskTimeout Timeout for the task. + */ + override fun taskTimeout(taskTimeout: Timeout) { + cdkBuilder.taskTimeout(taskTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + * @param timeout Timeout for the task. + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + + public fun build(): software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob = + cdkBuilder.build() + } + + public companion object { + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): MediaConvertCreateJob { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return MediaConvertCreateJob(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob): + MediaConvertCreateJob = MediaConvertCreateJob(cdkObject) + + internal fun unwrap(wrapped: MediaConvertCreateJob): + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob = + wrapped.cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJob + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJobProps.kt new file mode 100644 index 0000000000..2d017a3a72 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MediaConvertCreateJobProps.kt @@ -0,0 +1,466 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import io.cloudshiftdev.awscdk.services.stepfunctions.Credentials +import io.cloudshiftdev.awscdk.services.stepfunctions.IntegrationPattern +import io.cloudshiftdev.awscdk.services.stepfunctions.TaskStateBaseProps +import io.cloudshiftdev.awscdk.services.stepfunctions.Timeout +import kotlin.Any +import kotlin.Deprecated +import kotlin.String +import kotlin.Unit +import kotlin.collections.Map +import kotlin.jvm.JvmName + +/** + * Properties for creating a MediaConvert Job. + * + * See the CreateJob API for complete documentation + * + * Example: + * + * ``` + * MediaConvertCreateJob.Builder.create(this, "CreateJob") + * .createJobRequest(Map.of( + * "Role", "arn:aws:iam::123456789012:role/MediaConvertRole", + * "Settings", Map.of( + * "OutputGroups", List.of(Map.of( + * "Outputs", List.of(Map.of( + * "ContainerSettings", Map.of( + * "Container", "MP4"), + * "VideoDescription", Map.of( + * "CodecSettings", Map.of( + * "Codec", "H_264", + * "H264Settings", Map.of( + * "MaxBitrate", 1000, + * "RateControlMode", "QVBR", + * "SceneChangeDetect", "TRANSITION_DETECTION"))), + * "AudioDescriptions", List.of(Map.of( + * "CodecSettings", Map.of( + * "Codec", "AAC", + * "AacSettings", Map.of( + * "Bitrate", 96000, + * "CodingMode", "CODING_MODE_2_0", + * "SampleRate", 48000)))))), + * "OutputGroupSettings", Map.of( + * "Type", "FILE_GROUP_SETTINGS", + * "FileGroupSettings", Map.of( + * "Destination", "s3://EXAMPLE-DESTINATION-BUCKET/")))), + * "Inputs", List.of(Map.of( + * "AudioSelectors", Map.of( + * "Audio Selector 1", Map.of( + * "DefaultSelection", "DEFAULT")), + * "FileInput", "s3://EXAMPLE-SOURCE-BUCKET/EXAMPLE-SOURCE_FILE"))))) + * .integrationPattern(IntegrationPattern.RUN_JOB) + * .build(); + * ``` + * + * [Documentation](https://docs.aws.amazon.com/mediaconvert/latest/apireference/jobs.html#jobspost) + */ +public interface MediaConvertCreateJobProps : TaskStateBaseProps { + /** + * The input data for the MediaConvert Create Job invocation. + */ + public fun createJobRequest(): Map + + /** + * A builder for [MediaConvertCreateJobProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param comment An optional description for this state. + */ + public fun comment(comment: String) + + /** + * @param createJobRequest The input data for the MediaConvert Create Job invocation. + */ + public fun createJobRequest(createJobRequest: Map) + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + public fun credentials(credentials: Credentials) + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("715f79f8e34ff32e359960fa835a1d5b30fb3fb34991d6131e35022e404d195e") + public fun credentials(credentials: Credentials.Builder.() -> Unit) + + /** + * @param heartbeat Timeout for the heartbeat. + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + public fun heartbeat(heartbeat: Duration) + + /** + * @param heartbeatTimeout Timeout for the heartbeat. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + public fun heartbeatTimeout(heartbeatTimeout: Timeout) + + /** + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + */ + public fun inputPath(inputPath: String) + + /** + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + */ + public fun integrationPattern(integrationPattern: IntegrationPattern) + + /** + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + */ + public fun outputPath(outputPath: String) + + /** + * @param resultPath JSONPath expression to indicate where to inject the state's output. + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + */ + public fun resultPath(resultPath: String) + + /** + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + */ + public fun resultSelector(resultSelector: Map) + + /** + * @param stateName Optional name for this state. + */ + public fun stateName(stateName: String) + + /** + * @param taskTimeout Timeout for the task. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + public fun taskTimeout(taskTimeout: Timeout) + + /** + * @param timeout Timeout for the task. + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + public fun timeout(timeout: Duration) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps.Builder = + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps.builder() + + /** + * @param comment An optional description for this state. + */ + override fun comment(comment: String) { + cdkBuilder.comment(comment) + } + + /** + * @param createJobRequest The input data for the MediaConvert Create Job invocation. + */ + override fun createJobRequest(createJobRequest: Map) { + cdkBuilder.createJobRequest(createJobRequest.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + override fun credentials(credentials: Credentials) { + cdkBuilder.credentials(credentials.let(Credentials.Companion::unwrap)) + } + + /** + * @param credentials Credentials for an IAM Role that the State Machine assumes for executing + * the task. + * This enables cross-account resource invocations. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("715f79f8e34ff32e359960fa835a1d5b30fb3fb34991d6131e35022e404d195e") + override fun credentials(credentials: Credentials.Builder.() -> Unit): Unit = + credentials(Credentials(credentials)) + + /** + * @param heartbeat Timeout for the heartbeat. + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(heartbeat: Duration) { + cdkBuilder.heartbeat(heartbeat.let(Duration.Companion::unwrap)) + } + + /** + * @param heartbeatTimeout Timeout for the heartbeat. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + override fun heartbeatTimeout(heartbeatTimeout: Timeout) { + cdkBuilder.heartbeatTimeout(heartbeatTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * @param inputPath JSONPath expression to select part of the state to be the input to this + * state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + */ + override fun inputPath(inputPath: String) { + cdkBuilder.inputPath(inputPath) + } + + /** + * @param integrationPattern AWS Step Functions integrates with services directly in the Amazon + * States Language. + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + */ + override fun integrationPattern(integrationPattern: IntegrationPattern) { + cdkBuilder.integrationPattern(integrationPattern.let(IntegrationPattern.Companion::unwrap)) + } + + /** + * @param outputPath JSONPath expression to select select a portion of the state output to pass + * to the next state. + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + */ + override fun outputPath(outputPath: String) { + cdkBuilder.outputPath(outputPath) + } + + /** + * @param resultPath JSONPath expression to indicate where to inject the state's output. + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + */ + override fun resultPath(resultPath: String) { + cdkBuilder.resultPath(resultPath) + } + + /** + * @param resultSelector The JSON that will replace the state's raw result and become the + * effective result before ResultPath is applied. + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + */ + override fun resultSelector(resultSelector: Map) { + cdkBuilder.resultSelector(resultSelector.mapValues{CdkObjectWrappers.unwrap(it.value)}) + } + + /** + * @param stateName Optional name for this state. + */ + override fun stateName(stateName: String) { + cdkBuilder.stateName(stateName) + } + + /** + * @param taskTimeout Timeout for the task. + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + */ + override fun taskTimeout(taskTimeout: Timeout) { + cdkBuilder.taskTimeout(taskTimeout.let(Timeout.Companion::unwrap)) + } + + /** + * @param timeout Timeout for the task. + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps, + ) : CdkObject(cdkObject), + MediaConvertCreateJobProps { + /** + * An optional description for this state. + * + * Default: - No comment + */ + override fun comment(): String? = unwrap(this).getComment() + + /** + * The input data for the MediaConvert Create Job invocation. + */ + override fun createJobRequest(): Map = unwrap(this).getCreateJobRequest() ?: + emptyMap() + + /** + * Credentials for an IAM Role that the State Machine assumes for executing the task. + * + * This enables cross-account resource invocations. + * + * Default: - None (Task is executed using the State Machine's execution role) + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) + */ + override fun credentials(): Credentials? = unwrap(this).getCredentials()?.let(Credentials::wrap) + + /** + * (deprecated) Timeout for the heartbeat. + * + * Default: - None + * + * @deprecated use `heartbeatTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun heartbeat(): Duration? = unwrap(this).getHeartbeat()?.let(Duration::wrap) + + /** + * Timeout for the heartbeat. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + */ + override fun heartbeatTimeout(): Timeout? = + unwrap(this).getHeartbeatTimeout()?.let(Timeout::wrap) + + /** + * JSONPath expression to select part of the state to be the input to this state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * input to be the empty object {}. + * + * Default: - The entire task input (JSON path '$') + */ + override fun inputPath(): String? = unwrap(this).getInputPath() + + /** + * AWS Step Functions integrates with services directly in the Amazon States Language. + * + * You can control these AWS services using service integration patterns. + * + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. + * `IntegrationPattern.RUN_JOB` for the following exceptions: + * `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and + * `EmrContainersStartJobRun`. + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html) + */ + override fun integrationPattern(): IntegrationPattern? = + unwrap(this).getIntegrationPattern()?.let(IntegrationPattern::wrap) + + /** + * JSONPath expression to select select a portion of the state output to pass to the next state. + * + * May also be the special value JsonPath.DISCARD, which will cause the effective + * output to be the empty object {}. + * + * Default: - The entire JSON node determined by the state input, the task result, + * and resultPath is passed to the next state (JSON path '$') + */ + override fun outputPath(): String? = unwrap(this).getOutputPath() + + /** + * JSONPath expression to indicate where to inject the state's output. + * + * May also be the special value JsonPath.DISCARD, which will cause the state's + * input to become its output. + * + * Default: - Replaces the entire input with the result (JSON path '$') + */ + override fun resultPath(): String? = unwrap(this).getResultPath() + + /** + * The JSON that will replace the state's raw result and become the effective result before + * ResultPath is applied. + * + * You can use ResultSelector to create a payload with values that are static + * or selected from the state's raw result. + * + * Default: - None + * + * [Documentation](https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector) + */ + override fun resultSelector(): Map = unwrap(this).getResultSelector() ?: emptyMap() + + /** + * Optional name for this state. + * + * Default: - The construct ID will be used as state name + */ + override fun stateName(): String? = unwrap(this).getStateName() + + /** + * Timeout for the task. + * + * [disable-awslint:duration-prop-type] is needed because all props interface in + * aws-stepfunctions-tasks extend this interface + * + * Default: - None + */ + override fun taskTimeout(): Timeout? = unwrap(this).getTaskTimeout()?.let(Timeout::wrap) + + /** + * (deprecated) Timeout for the task. + * + * Default: - None + * + * @deprecated use `taskTimeout` + */ + @Deprecated(message = "deprecated in CDK") + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): MediaConvertCreateJobProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps): + MediaConvertCreateJobProps = CdkObjectWrappers.wrap(cdkObject) as? + MediaConvertCreateJobProps ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: MediaConvertCreateJobProps): + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps = (wrapped as + CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.MediaConvertCreateJobProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MessageAttribute.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MessageAttribute.kt index 955279fa04..ee52022740 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MessageAttribute.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MessageAttribute.kt @@ -105,7 +105,8 @@ public interface MessageAttribute { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MessageAttribute, - ) : CdkObject(cdkObject), MessageAttribute { + ) : CdkObject(cdkObject), + MessageAttribute { /** * The data type for the attribute. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MetricDefinition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MetricDefinition.kt index 14cddedfa6..74c2ab375b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MetricDefinition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/MetricDefinition.kt @@ -77,7 +77,8 @@ public interface MetricDefinition { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.MetricDefinition, - ) : CdkObject(cdkObject), MetricDefinition { + ) : CdkObject(cdkObject), + MetricDefinition { /** * Name of the metric. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ModelClientOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ModelClientOptions.kt index 29fb2c4def..b37c6644e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ModelClientOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ModelClientOptions.kt @@ -99,7 +99,8 @@ public interface ModelClientOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ModelClientOptions, - ) : CdkObject(cdkObject), ModelClientOptions { + ) : CdkObject(cdkObject), + ModelClientOptions { /** * The maximum number of retries when invocation requests are failing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Monitoring.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Monitoring.kt index e69b4c7cb2..b380f39446 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Monitoring.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/Monitoring.kt @@ -162,7 +162,8 @@ public interface Monitoring { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.Monitoring, - ) : CdkObject(cdkObject), Monitoring { + ) : CdkObject(cdkObject), + Monitoring { /** * Amazon S3 Bucket for monitoring log publishing. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/OutputDataConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/OutputDataConfig.kt index b08d783483..566be7c48f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/OutputDataConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/OutputDataConfig.kt @@ -103,7 +103,8 @@ public interface OutputDataConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.OutputDataConfig, - ) : CdkObject(cdkObject), OutputDataConfig { + ) : CdkObject(cdkObject), + OutputDataConfig { /** * Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest * using Amazon S3 server-side encryption. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ProductionVariant.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ProductionVariant.kt index dd071a3a90..93acaf3301 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ProductionVariant.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ProductionVariant.kt @@ -171,7 +171,8 @@ public interface ProductionVariant { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ProductionVariant, - ) : CdkObject(cdkObject), ProductionVariant { + ) : CdkObject(cdkObject), + ProductionVariant { /** * The size of the Elastic Inference (EI) instance to use for the production variant. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/QueryExecutionContext.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/QueryExecutionContext.kt index 3eb6a8ef70..1d3333518e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/QueryExecutionContext.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/QueryExecutionContext.kt @@ -91,7 +91,8 @@ public interface QueryExecutionContext { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.QueryExecutionContext, - ) : CdkObject(cdkObject), QueryExecutionContext { + ) : CdkObject(cdkObject), + QueryExecutionContext { /** * Name of catalog used in query execution. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResourceConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResourceConfig.kt index 3082dd3c0c..e3f7d2f922 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResourceConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResourceConfig.kt @@ -166,7 +166,8 @@ public interface ResourceConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ResourceConfig, - ) : CdkObject(cdkObject), ResourceConfig { + ) : CdkObject(cdkObject), + ResourceConfig { /** * The number of ML compute instances to use. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResultConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResultConfiguration.kt index 4d8bd5100b..df2ffe7a02 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResultConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ResultConfiguration.kt @@ -131,7 +131,8 @@ public interface ResultConfiguration { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ResultConfiguration, - ) : CdkObject(cdkObject), ResultConfiguration { + ) : CdkObject(cdkObject), + ResultConfiguration { /** * Encryption option used if enabled in S3. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3DataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3DataSource.kt index b4908c18cd..617231733b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3DataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3DataSource.kt @@ -155,7 +155,8 @@ public interface S3DataSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.S3DataSource, - ) : CdkObject(cdkObject), S3DataSource { + ) : CdkObject(cdkObject), + S3DataSource { /** * List of one or more attribute names to use that are found in a specified augmented manifest * file. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationBindOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationBindOptions.kt index 839d5964e2..f9b2e42acc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationBindOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationBindOptions.kt @@ -79,7 +79,8 @@ public interface S3LocationBindOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.S3LocationBindOptions, - ) : CdkObject(cdkObject), S3LocationBindOptions { + ) : CdkObject(cdkObject), + S3LocationBindOptions { /** * Allow reading from the S3 Location. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationConfig.kt index 3b223e059e..9c5e442746 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/S3LocationConfig.kt @@ -57,7 +57,8 @@ public interface S3LocationConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.S3LocationConfig, - ) : CdkObject(cdkObject), S3LocationConfig { + ) : CdkObject(cdkObject), + S3LocationConfig { /** * Uniquely identifies the resource in Amazon S3. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointConfigProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointConfigProps.kt index 2b80f2fb5f..fa4a26cff9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointConfigProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointConfigProps.kt @@ -379,7 +379,8 @@ public interface SageMakerCreateEndpointConfigProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateEndpointConfigProps, - ) : CdkObject(cdkObject), SageMakerCreateEndpointConfigProps { + ) : CdkObject(cdkObject), + SageMakerCreateEndpointConfigProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointProps.kt index cf28bfafe5..776dbe2737 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateEndpointProps.kt @@ -321,7 +321,8 @@ public interface SageMakerCreateEndpointProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateEndpointProps, - ) : CdkObject(cdkObject), SageMakerCreateEndpointProps { + ) : CdkObject(cdkObject), + SageMakerCreateEndpointProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModel.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModel.kt index 7c2b506d70..fbb7559430 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModel.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModel.kt @@ -49,7 +49,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SageMakerCreateModel( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateModel, -) : TaskStateBase(cdkObject), IGrantable, IConnectable { +) : TaskStateBase(cdkObject), + IGrantable, + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModelProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModelProps.kt index 2ea56091ab..1cb2cf51b9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModelProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateModelProps.kt @@ -463,7 +463,8 @@ public interface SageMakerCreateModelProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateModelProps, - ) : CdkObject(cdkObject), SageMakerCreateModelProps { + ) : CdkObject(cdkObject), + SageMakerCreateModelProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJob.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJob.kt index 48814b80ca..28c53df28d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJob.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJob.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class SageMakerCreateTrainingJob( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateTrainingJob, -) : TaskStateBase(cdkObject), IGrantable, IConnectable { +) : TaskStateBase(cdkObject), + IGrantable, + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -230,6 +232,8 @@ public open class SageMakerCreateTrainingJob( * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location * where stored. * + * Default: - No inputDataConfig + * * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the * Amazon S3 location where stored. */ @@ -239,6 +243,8 @@ public open class SageMakerCreateTrainingJob( * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location * where stored. * + * Default: - No inputDataConfig + * * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the * Amazon S3 location where stored. */ @@ -606,6 +612,8 @@ public open class SageMakerCreateTrainingJob( * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location * where stored. * + * Default: - No inputDataConfig + * * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the * Amazon S3 location where stored. */ @@ -617,6 +625,8 @@ public open class SageMakerCreateTrainingJob( * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location * where stored. * + * Default: - No inputDataConfig + * * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the * Amazon S3 location where stored. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJobProps.kt index 901d8bc793..f57ff73042 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTrainingJobProps.kt @@ -93,8 +93,11 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { /** * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where * stored. + * + * Default: - No inputDataConfig */ - public fun inputDataConfig(): List + public fun inputDataConfig(): List = + unwrap(this).getInputDataConfig()?.map(Channel::wrap) ?: emptyList() /** * Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model @@ -224,13 +227,13 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { /** * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the - * Amazon S3 location where stored. + * Amazon S3 location where stored. */ public fun inputDataConfig(inputDataConfig: List) /** * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the - * Amazon S3 location where stored. + * Amazon S3 location where stored. */ public fun inputDataConfig(vararg inputDataConfig: Channel) @@ -458,7 +461,7 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { /** * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the - * Amazon S3 location where stored. + * Amazon S3 location where stored. */ override fun inputDataConfig(inputDataConfig: List) { cdkBuilder.inputDataConfig(inputDataConfig.map(Channel.Companion::unwrap)) @@ -466,7 +469,7 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { /** * @param inputDataConfig Describes the various datasets (e.g. train, validation, test) and the - * Amazon S3 location where stored. + * Amazon S3 location where stored. */ override fun inputDataConfig(vararg inputDataConfig: Channel): Unit = inputDataConfig(inputDataConfig.toList()) @@ -643,7 +646,8 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateTrainingJobProps, - ) : CdkObject(cdkObject), SageMakerCreateTrainingJobProps { + ) : CdkObject(cdkObject), + SageMakerCreateTrainingJobProps { /** * Identifies the training algorithm to use. */ @@ -721,9 +725,11 @@ public interface SageMakerCreateTrainingJobProps : TaskStateBaseProps { /** * Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location * where stored. + * + * Default: - No inputDataConfig */ override fun inputDataConfig(): List = - unwrap(this).getInputDataConfig().map(Channel::wrap) + unwrap(this).getInputDataConfig()?.map(Channel::wrap) ?: emptyList() /** * JSONPath expression to select part of the state to be the input to this state. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTransformJobProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTransformJobProps.kt index 88e189441d..37d1cf392a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTransformJobProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerCreateTransformJobProps.kt @@ -585,7 +585,8 @@ public interface SageMakerCreateTransformJobProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateTransformJobProps, - ) : CdkObject(cdkObject), SageMakerCreateTransformJobProps { + ) : CdkObject(cdkObject), + SageMakerCreateTransformJobProps { /** * Number of records to include in a mini-batch for an HTTP inference request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerUpdateEndpointProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerUpdateEndpointProps.kt index 113da762d8..459ce18759 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerUpdateEndpointProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SageMakerUpdateEndpointProps.kt @@ -297,7 +297,8 @@ public interface SageMakerUpdateEndpointProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SageMakerUpdateEndpointProps, - ) : CdkObject(cdkObject), SageMakerUpdateEndpointProps { + ) : CdkObject(cdkObject), + SageMakerUpdateEndpointProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ShuffleConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ShuffleConfig.kt index 8fa750f91e..fbd445e9ee 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ShuffleConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/ShuffleConfig.kt @@ -57,7 +57,8 @@ public interface ShuffleConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.ShuffleConfig, - ) : CdkObject(cdkObject), ShuffleConfig { + ) : CdkObject(cdkObject), + ShuffleConfig { /** * Determines the shuffling order. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SnsPublishProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SnsPublishProps.kt index f735c0fa51..bf8acea272 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SnsPublishProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SnsPublishProps.kt @@ -504,7 +504,8 @@ public interface SnsPublishProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SnsPublishProps, - ) : CdkObject(cdkObject), SnsPublishProps { + ) : CdkObject(cdkObject), + SnsPublishProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SparkSubmitJobDriver.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SparkSubmitJobDriver.kt index bc496b480c..d700a97d96 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SparkSubmitJobDriver.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SparkSubmitJobDriver.kt @@ -121,7 +121,8 @@ public interface SparkSubmitJobDriver { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SparkSubmitJobDriver, - ) : CdkObject(cdkObject), SparkSubmitJobDriver { + ) : CdkObject(cdkObject), + SparkSubmitJobDriver { /** * The entry point of job application. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SqsSendMessageProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SqsSendMessageProps.kt index 95d43928aa..759049c799 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SqsSendMessageProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/SqsSendMessageProps.kt @@ -387,7 +387,8 @@ public interface SqsSendMessageProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.SqsSendMessageProps, - ) : CdkObject(cdkObject), SqsSendMessageProps { + ) : CdkObject(cdkObject), + SqsSendMessageProps { /** * An optional description for this state. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsInvokeActivityProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsInvokeActivityProps.kt index 62939a48b0..0ac68d5d13 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsInvokeActivityProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsInvokeActivityProps.kt @@ -304,7 +304,8 @@ public interface StepFunctionsInvokeActivityProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.StepFunctionsInvokeActivityProps, - ) : CdkObject(cdkObject), StepFunctionsInvokeActivityProps { + ) : CdkObject(cdkObject), + StepFunctionsInvokeActivityProps { /** * Step Functions Activity to invoke. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsStartExecutionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsStartExecutionProps.kt index d2c7abfe5e..d36e8ead71 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsStartExecutionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StepFunctionsStartExecutionProps.kt @@ -377,7 +377,8 @@ public interface StepFunctionsStartExecutionProps : TaskStateBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.StepFunctionsStartExecutionProps, - ) : CdkObject(cdkObject), StepFunctionsStartExecutionProps { + ) : CdkObject(cdkObject), + StepFunctionsStartExecutionProps { /** * Pass the execution ID from the context object to the execution input. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StoppingCondition.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StoppingCondition.kt index ed67bd5115..bb4c0f5890 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StoppingCondition.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/StoppingCondition.kt @@ -85,7 +85,8 @@ public interface StoppingCondition { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.StoppingCondition, - ) : CdkObject(cdkObject), StoppingCondition { + ) : CdkObject(cdkObject), + StoppingCondition { /** * The maximum length of time, in seconds, that the training or compilation job can run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TaskEnvironmentVariable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TaskEnvironmentVariable.kt index d342a5e642..1b69c43b8d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TaskEnvironmentVariable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TaskEnvironmentVariable.kt @@ -83,7 +83,8 @@ public interface TaskEnvironmentVariable { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TaskEnvironmentVariable, - ) : CdkObject(cdkObject), TaskEnvironmentVariable { + ) : CdkObject(cdkObject), + TaskEnvironmentVariable { /** * Name for the environment variable. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformDataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformDataSource.kt index 5267a51786..ae131ca856 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformDataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformDataSource.kt @@ -89,7 +89,8 @@ public interface TransformDataSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TransformDataSource, - ) : CdkObject(cdkObject), TransformDataSource { + ) : CdkObject(cdkObject), + TransformDataSource { /** * S3 location of the input data. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformInput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformInput.kt index 404e9f5aec..0c96a08741 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformInput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformInput.kt @@ -148,7 +148,8 @@ public interface TransformInput { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TransformInput, - ) : CdkObject(cdkObject), TransformInput { + ) : CdkObject(cdkObject), + TransformInput { /** * The compression type of the transform data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformOutput.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformOutput.kt index 4b790f8daa..cc70ed1ec4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformOutput.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformOutput.kt @@ -139,7 +139,8 @@ public interface TransformOutput { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TransformOutput, - ) : CdkObject(cdkObject), TransformOutput { + ) : CdkObject(cdkObject), + TransformOutput { /** * MIME type used to specify the output data. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformResources.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformResources.kt index aa621f95ef..25b3041457 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformResources.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformResources.kt @@ -115,7 +115,8 @@ public interface TransformResources { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TransformResources, - ) : CdkObject(cdkObject), TransformResources { + ) : CdkObject(cdkObject), + TransformResources { /** * Number of ML compute instances to use in the transform job. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformS3DataSource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformS3DataSource.kt index 7c64f76a5f..a691355407 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformS3DataSource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/TransformS3DataSource.kt @@ -93,7 +93,8 @@ public interface TransformS3DataSource { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.TransformS3DataSource, - ) : CdkObject(cdkObject), TransformS3DataSource { + ) : CdkObject(cdkObject), + TransformS3DataSource { /** * S3 Data Type. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/VpcConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/VpcConfig.kt index a0502c1dbb..eb2f69d8ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/VpcConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/VpcConfig.kt @@ -105,7 +105,8 @@ public interface VpcConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.VpcConfig, - ) : CdkObject(cdkObject), VpcConfig { + ) : CdkObject(cdkObject), + VpcConfig { /** * VPC subnets. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerConfigurationProperty.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerConfigurationProperty.kt new file mode 100644 index 0000000000..a5ff3dfa12 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerConfigurationProperty.kt @@ -0,0 +1,110 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Number +import kotlin.Unit + +/** + * Properties for the worker configuration. + * + * Example: + * + * ``` + * GlueStartJobRun.Builder.create(this, "Task") + * .glueJobName("my-glue-job") + * .workerConfiguration(WorkerConfigurationProperty.builder() + * .workerType(WorkerType.G_1X) // Worker type + * .numberOfWorkers(2) + * .build()) + * .build(); + * ``` + */ +public interface WorkerConfigurationProperty { + /** + * The number of workers of a defined `WorkerType` that are allocated when a job runs. + */ + public fun numberOfWorkers(): Number + + /** + * The type of predefined worker that is allocated when a job runs. + */ + public fun workerType(): WorkerType + + /** + * A builder for [WorkerConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param numberOfWorkers The number of workers of a defined `WorkerType` that are allocated + * when a job runs. + */ + public fun numberOfWorkers(numberOfWorkers: Number) + + /** + * @param workerType The type of predefined worker that is allocated when a job runs. + */ + public fun workerType(workerType: WorkerType) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty.Builder = + software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty.builder() + + /** + * @param numberOfWorkers The number of workers of a defined `WorkerType` that are allocated + * when a job runs. + */ + override fun numberOfWorkers(numberOfWorkers: Number) { + cdkBuilder.numberOfWorkers(numberOfWorkers) + } + + /** + * @param workerType The type of predefined worker that is allocated when a job runs. + */ + override fun workerType(workerType: WorkerType) { + cdkBuilder.workerType(workerType.let(WorkerType.Companion::unwrap)) + } + + public fun build(): + software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty, + ) : CdkObject(cdkObject), + WorkerConfigurationProperty { + /** + * The number of workers of a defined `WorkerType` that are allocated when a job runs. + */ + override fun numberOfWorkers(): Number = unwrap(this).getNumberOfWorkers() + + /** + * The type of predefined worker that is allocated when a job runs. + */ + override fun workerType(): WorkerType = unwrap(this).getWorkerType().let(WorkerType::wrap) + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): WorkerConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty): + WorkerConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + WorkerConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: WorkerConfigurationProperty): + software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.stepfunctions.tasks.WorkerConfigurationProperty + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerType.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerType.kt new file mode 100644 index 0000000000..f38367eaad --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/stepfunctions/tasks/WorkerType.kt @@ -0,0 +1,32 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.stepfunctions.tasks + +public enum class WorkerType( + private val cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.WorkerType, +) { + STANDARD(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.STANDARD), + G_025X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_025X), + G_1X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_1X), + G_2X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_2X), + G_4X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_4X), + G_8X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_8X), + Z_2X(software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.Z_2X), + ; + + public companion object { + internal fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.WorkerType): + WorkerType = when (cdkObject) { + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.STANDARD -> WorkerType.STANDARD + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_025X -> WorkerType.G_025X + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_1X -> WorkerType.G_1X + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_2X -> WorkerType.G_2X + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_4X -> WorkerType.G_4X + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.G_8X -> WorkerType.G_8X + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType.Z_2X -> WorkerType.Z_2X + } + + internal fun unwrap(wrapped: WorkerType): + software.amazon.awscdk.services.stepfunctions.tasks.WorkerType = wrapped.cdkObject + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAlias.kt index 6cf308ec44..05ee101317 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAlias.kt @@ -38,7 +38,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccountAlias( cdkObject: software.amazon.awscdk.services.supportapp.CfnAccountAlias, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAliasProps.kt index d3dcb1d833..65d0a8a846 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnAccountAliasProps.kt @@ -60,7 +60,8 @@ public interface CfnAccountAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.supportapp.CfnAccountAliasProps, - ) : CdkObject(cdkObject), CfnAccountAliasProps { + ) : CdkObject(cdkObject), + CfnAccountAliasProps { /** * An alias or short name for an AWS account . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfiguration.kt index 6b8c342747..59b1cc73d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfiguration.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSlackChannelConfiguration( cdkObject: software.amazon.awscdk.services.supportapp.CfnSlackChannelConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfigurationProps.kt index 6999574631..4b7d3ed228 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackChannelConfigurationProps.kt @@ -278,7 +278,8 @@ public interface CfnSlackChannelConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.supportapp.CfnSlackChannelConfigurationProps, - ) : CdkObject(cdkObject), CfnSlackChannelConfigurationProps { + ) : CdkObject(cdkObject), + CfnSlackChannelConfigurationProps { /** * The channel ID in Slack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfiguration.kt index 17f427757b..0751edfd0e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfiguration.kt @@ -46,7 +46,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSlackWorkspaceConfiguration( cdkObject: software.amazon.awscdk.services.supportapp.CfnSlackWorkspaceConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfigurationProps.kt index fc917e3f4d..eddb65c0f4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/supportapp/CfnSlackWorkspaceConfigurationProps.kt @@ -91,7 +91,8 @@ public interface CfnSlackWorkspaceConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.supportapp.CfnSlackWorkspaceConfigurationProps, - ) : CdkObject(cdkObject), CfnSlackWorkspaceConfigurationProps { + ) : CdkObject(cdkObject), + CfnSlackWorkspaceConfigurationProps { /** * The team ID in Slack. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/ArtifactsBucketLocation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/ArtifactsBucketLocation.kt index 39f6f89be4..e7369ae45b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/ArtifactsBucketLocation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/ArtifactsBucketLocation.kt @@ -88,7 +88,8 @@ public interface ArtifactsBucketLocation { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.ArtifactsBucketLocation, - ) : CdkObject(cdkObject), ArtifactsBucketLocation { + ) : CdkObject(cdkObject), + ArtifactsBucketLocation { /** * The s3 location that stores the data of each run. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Canary.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Canary.kt index c02bd03a31..e451ee5c87 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Canary.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Canary.kt @@ -4,6 +4,7 @@ package io.cloudshiftdev.awscdk.services.synthetics import io.cloudshiftdev.awscdk.Duration import io.cloudshiftdev.awscdk.Resource +import io.cloudshiftdev.awscdk.Size import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.services.cloudwatch.Metric import io.cloudshiftdev.awscdk.services.cloudwatch.MetricOptions @@ -30,6 +31,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -37,14 +39,14 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ public open class Canary( cdkObject: software.amazon.awscdk.services.synthetics.Canary, -) : Resource(cdkObject), IConnectable { +) : Resource(cdkObject), + IConnectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -195,6 +197,25 @@ public open class Canary( */ @CdkDslMarker public interface Builder { + /** + * Specifies whether this canary is to use active AWS X-Ray tracing when it runs. + * + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later + * for their canary runtime. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html) + * @param activeTracing Specifies whether this canary is to use active AWS X-Ray tracing when it + * runs. + */ + public fun activeTracing(activeTracing: Boolean) + /** * Lifecycle rules for the generated canary artifact bucket. * @@ -297,6 +318,18 @@ public open class Canary( */ public fun failureRetentionPeriod(failureRetentionPeriod: Duration) + /** + * The maximum amount of memory that the canary can use while running. + * + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + * + * Default: Size.mebibytes(1024) + * + * @param memory The maximum amount of memory that the canary can use while running. + */ + public fun memory(memory: Size) + /** * Canary execution role. * @@ -403,6 +436,20 @@ public open class Canary( */ public fun timeToLive(timeToLive: Duration) + /** + * How long the canary is allowed to run before it must stop. + * + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + * + * Default: - the frequency of the canary is used as this value, up to a maximum of 900 seconds. + * + * @param timeout How long the canary is allowed to run before it must stop. + */ + public fun timeout(timeout: Duration) + /** * The VPC where this canary is run. * @@ -446,6 +493,27 @@ public open class Canary( private val cdkBuilder: software.amazon.awscdk.services.synthetics.Canary.Builder = software.amazon.awscdk.services.synthetics.Canary.Builder.create(scope, id) + /** + * Specifies whether this canary is to use active AWS X-Ray tracing when it runs. + * + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later + * for their canary runtime. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html) + * @param activeTracing Specifies whether this canary is to use active AWS X-Ray tracing when it + * runs. + */ + override fun activeTracing(activeTracing: Boolean) { + cdkBuilder.activeTracing(activeTracing) + } + /** * Lifecycle rules for the generated canary artifact bucket. * @@ -562,6 +630,20 @@ public open class Canary( cdkBuilder.failureRetentionPeriod(failureRetentionPeriod.let(Duration.Companion::unwrap)) } + /** + * The maximum amount of memory that the canary can use while running. + * + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + * + * Default: Size.mebibytes(1024) + * + * @param memory The maximum amount of memory that the canary can use while running. + */ + override fun memory(memory: Size) { + cdkBuilder.memory(memory.let(Size.Companion::unwrap)) + } + /** * Canary execution role. * @@ -685,6 +767,22 @@ public open class Canary( cdkBuilder.timeToLive(timeToLive.let(Duration.Companion::unwrap)) } + /** + * How long the canary is allowed to run before it must stop. + * + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + * + * Default: - the frequency of the canary is used as this value, up to a maximum of 900 seconds. + * + * @param timeout How long the canary is allowed to run before it must stop. + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * The VPC where this canary is run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CanaryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CanaryProps.kt index ee381ff08c..acf85eeebc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CanaryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CanaryProps.kt @@ -3,6 +3,7 @@ package io.cloudshiftdev.awscdk.services.synthetics import io.cloudshiftdev.awscdk.Duration +import io.cloudshiftdev.awscdk.Size import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObject import io.cloudshiftdev.awscdk.common.CdkObjectWrappers @@ -24,6 +25,7 @@ import kotlin.jvm.JvmName * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -31,12 +33,28 @@ import kotlin.jvm.JvmName * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ public interface CanaryProps { + /** + * Specifies whether this canary is to use active AWS X-Ray tracing when it runs. + * + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later for + * their canary runtime. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html) + */ + public fun activeTracing(): Boolean? = unwrap(this).getActiveTracing() + /** * Lifecycle rules for the generated canary artifact bucket. * @@ -103,6 +121,16 @@ public interface CanaryProps { public fun failureRetentionPeriod(): Duration? = unwrap(this).getFailureRetentionPeriod()?.let(Duration::wrap) + /** + * The maximum amount of memory that the canary can use while running. + * + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + * + * Default: Size.mebibytes(1024) + */ + public fun memory(): Size? = unwrap(this).getMemory()?.let(Size::wrap) + /** * Canary execution role. * @@ -183,6 +211,18 @@ public interface CanaryProps { */ public fun timeToLive(): Duration? = unwrap(this).getTimeToLive()?.let(Duration::wrap) + /** + * How long the canary is allowed to run before it must stop. + * + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + * + * Default: - the frequency of the canary is used as this value, up to a maximum of 900 seconds. + */ + public fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The VPC where this canary is run. * @@ -207,6 +247,19 @@ public interface CanaryProps { */ @CdkDslMarker public interface Builder { + /** + * @param activeTracing Specifies whether this canary is to use active AWS X-Ray tracing when it + * runs. + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later + * for their canary runtime. + */ + public fun activeTracing(activeTracing: Boolean) + /** * @param artifactsBucketLifecycleRules Lifecycle rules for the generated canary artifact * bucket. @@ -271,6 +324,13 @@ public interface CanaryProps { */ public fun failureRetentionPeriod(failureRetentionPeriod: Duration) + /** + * @param memory The maximum amount of memory that the canary can use while running. + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + */ + public fun memory(memory: Size) + /** * @param role Canary execution role. * This is the role that will be assumed by the canary upon execution. @@ -333,6 +393,15 @@ public interface CanaryProps { */ public fun timeToLive(timeToLive: Duration) + /** + * @param timeout How long the canary is allowed to run before it must stop. + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + */ + public fun timeout(timeout: Duration) + /** * @param vpc The VPC where this canary is run. * Specify this if the canary needs to access resources in a VPC. @@ -358,6 +427,21 @@ public interface CanaryProps { private val cdkBuilder: software.amazon.awscdk.services.synthetics.CanaryProps.Builder = software.amazon.awscdk.services.synthetics.CanaryProps.builder() + /** + * @param activeTracing Specifies whether this canary is to use active AWS X-Ray tracing when it + * runs. + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later + * for their canary runtime. + */ + override fun activeTracing(activeTracing: Boolean) { + cdkBuilder.activeTracing(activeTracing) + } + /** * @param artifactsBucketLifecycleRules Lifecycle rules for the generated canary artifact * bucket. @@ -436,6 +520,15 @@ public interface CanaryProps { cdkBuilder.failureRetentionPeriod(failureRetentionPeriod.let(Duration.Companion::unwrap)) } + /** + * @param memory The maximum amount of memory that the canary can use while running. + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + */ + override fun memory(memory: Size) { + cdkBuilder.memory(memory.let(Size.Companion::unwrap)) + } + /** * @param role Canary execution role. * This is the role that will be assumed by the canary upon execution. @@ -515,6 +608,17 @@ public interface CanaryProps { cdkBuilder.timeToLive(timeToLive.let(Duration.Companion::unwrap)) } + /** + * @param timeout How long the canary is allowed to run before it must stop. + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + */ + override fun timeout(timeout: Duration) { + cdkBuilder.timeout(timeout.let(Duration.Companion::unwrap)) + } + /** * @param vpc The VPC where this canary is run. * Specify this if the canary needs to access resources in a VPC. @@ -545,7 +649,25 @@ public interface CanaryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CanaryProps, - ) : CdkObject(cdkObject), CanaryProps { + ) : CdkObject(cdkObject), + CanaryProps { + /** + * Specifies whether this canary is to use active AWS X-Ray tracing when it runs. + * + * Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service + * maps even if the + * canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs + * charges. + * + * You can enable active tracing only for canaries that use version `syn-nodejs-2.0` or later + * for their canary runtime. + * + * Default: false + * + * [Documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html) + */ + override fun activeTracing(): Boolean? = unwrap(this).getActiveTracing() + /** * Lifecycle rules for the generated canary artifact bucket. * @@ -612,6 +734,16 @@ public interface CanaryProps { override fun failureRetentionPeriod(): Duration? = unwrap(this).getFailureRetentionPeriod()?.let(Duration::wrap) + /** + * The maximum amount of memory that the canary can use while running. + * + * This value must be a multiple of 64 Mib. + * The range is 960 MiB to 3008 MiB. + * + * Default: Size.mebibytes(1024) + */ + override fun memory(): Size? = unwrap(this).getMemory()?.let(Size::wrap) + /** * Canary execution role. * @@ -692,6 +824,18 @@ public interface CanaryProps { */ override fun timeToLive(): Duration? = unwrap(this).getTimeToLive()?.let(Duration::wrap) + /** + * How long the canary is allowed to run before it must stop. + * + * You can't set this time to be longer than the frequency of the runs of this canary. + * + * The minimum allowed value is 3 seconds. + * The maximum allowed value is 840 seconds (14 minutes). + * + * Default: - the frequency of the canary is used as this value, up to a maximum of 900 seconds. + */ + override fun timeout(): Duration? = unwrap(this).getTimeout()?.let(Duration::wrap) + /** * The VPC where this canary is run. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanary.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanary.kt index 112d6072e0..decda8900a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanary.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanary.kt @@ -113,7 +113,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCanary( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1437,7 +1439,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.ArtifactConfigProperty, - ) : CdkObject(cdkObject), ArtifactConfigProperty { + ) : CdkObject(cdkObject), + ArtifactConfigProperty { /** * A structure that contains the configuration of the encryption-at-rest settings for * artifacts that the canary uploads to Amazon S3 . @@ -1591,7 +1594,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.BaseScreenshotProperty, - ) : CdkObject(cdkObject), BaseScreenshotProperty { + ) : CdkObject(cdkObject), + BaseScreenshotProperty { /** * Coordinates that define the part of a screen to ignore during screenshot comparisons. * @@ -1829,7 +1833,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.CodeProperty, - ) : CdkObject(cdkObject), CodeProperty { + ) : CdkObject(cdkObject), + CodeProperty { /** * The entry point to use for the source code when running the canary. * @@ -2160,7 +2165,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.RunConfigProperty, - ) : CdkObject(cdkObject), RunConfigProperty { + ) : CdkObject(cdkObject), + RunConfigProperty { /** * Specifies whether this canary is to use active AWS X-Ray tracing when it runs. * @@ -2331,7 +2337,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.S3EncryptionProperty, - ) : CdkObject(cdkObject), S3EncryptionProperty { + ) : CdkObject(cdkObject), + S3EncryptionProperty { /** * The encryption method to use for artifacts created by this canary. * @@ -2504,7 +2511,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.ScheduleProperty, - ) : CdkObject(cdkObject), ScheduleProperty { + ) : CdkObject(cdkObject), + ScheduleProperty { /** * How long, in seconds, for the canary to continue making regular runs according to the * schedule in the `Expression` value. @@ -2678,7 +2686,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.VPCConfigProperty, - ) : CdkObject(cdkObject), VPCConfigProperty { + ) : CdkObject(cdkObject), + VPCConfigProperty { /** * The IDs of the security groups for this canary. * @@ -2857,7 +2866,8 @@ public open class CfnCanary( private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanary.VisualReferenceProperty, - ) : CdkObject(cdkObject), VisualReferenceProperty { + ) : CdkObject(cdkObject), + VisualReferenceProperty { /** * Specifies which canary run to use the screenshots from as the baseline for future visual * monitoring with this canary. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanaryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanaryProps.kt index c5b935b2cc..c7057bc980 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanaryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnCanaryProps.kt @@ -814,7 +814,8 @@ public interface CfnCanaryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnCanaryProps, - ) : CdkObject(cdkObject), CfnCanaryProps { + ) : CdkObject(cdkObject), + CfnCanaryProps { /** * A structure that contains the configuration for canary artifacts, including the * encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroup.kt index 30f416abb4..8bd2433434 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroup.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.synthetics.CfnGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroupProps.kt index 09981a8c15..52cdde9263 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroupProps.kt @@ -131,7 +131,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * A name for the group. It can include any Unicode characters. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Code.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Code.kt index 4775144a6e..a6bc0c258a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Code.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Code.kt @@ -17,6 +17,7 @@ import kotlin.jvm.JvmName * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -24,8 +25,7 @@ import kotlin.jvm.JvmName * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CodeConfig.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CodeConfig.kt index b3e1e22a28..d1e9c92507 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CodeConfig.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CodeConfig.kt @@ -99,7 +99,8 @@ public interface CodeConfig { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CodeConfig, - ) : CdkObject(cdkObject), CodeConfig { + ) : CdkObject(cdkObject), + CodeConfig { /** * Inline code (mutually exclusive with `s3Location`). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CronOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CronOptions.kt index fefc20900d..99b60294ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CronOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CronOptions.kt @@ -135,7 +135,8 @@ public interface CronOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CronOptions, - ) : CdkObject(cdkObject), CronOptions { + ) : CdkObject(cdkObject), + CronOptions { /** * The day of the month to run this rule at. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CustomTestOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CustomTestOptions.kt index 2ccda9ebef..76b442956e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CustomTestOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CustomTestOptions.kt @@ -14,6 +14,7 @@ import kotlin.Unit * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -21,8 +22,7 @@ import kotlin.Unit * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ @@ -81,7 +81,8 @@ public interface CustomTestOptions { private class Wrapper( cdkObject: software.amazon.awscdk.services.synthetics.CustomTestOptions, - ) : CdkObject(cdkObject), CustomTestOptions { + ) : CdkObject(cdkObject), + CustomTestOptions { /** * The code of the canary script. */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Runtime.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Runtime.kt index 137b1e9212..ad3100001c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Runtime.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Runtime.kt @@ -11,6 +11,7 @@ import kotlin.String * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -18,8 +19,7 @@ import kotlin.String * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ @@ -81,6 +81,12 @@ public open class Runtime( public val SYNTHETICS_NODEJS_PUPPETEER_7_0: Runtime = Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_7_0) + public val SYNTHETICS_NODEJS_PUPPETEER_8_0: Runtime = + Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_8_0) + + public val SYNTHETICS_NODEJS_PUPPETEER_9_0: Runtime = + Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_9_0) + public val SYNTHETICS_PYTHON_SELENIUM_1_0: Runtime = Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_PYTHON_SELENIUM_1_0) @@ -102,6 +108,9 @@ public open class Runtime( public val SYNTHETICS_PYTHON_SELENIUM_3_0: Runtime = Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_PYTHON_SELENIUM_3_0) + public val SYNTHETICS_PYTHON_SELENIUM_4_0: Runtime = + Runtime.wrap(software.amazon.awscdk.services.synthetics.Runtime.SYNTHETICS_PYTHON_SELENIUM_4_0) + internal fun wrap(cdkObject: software.amazon.awscdk.services.synthetics.Runtime): Runtime = Runtime(cdkObject) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Schedule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Schedule.kt index 91b1f4d71e..f2a6a09ed8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Schedule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Schedule.kt @@ -21,8 +21,7 @@ import kotlin.jvm.JvmName * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .activeTracing(true) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Test.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Test.kt index 9d313be084..0755e1cb06 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Test.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/Test.kt @@ -13,6 +13,7 @@ import kotlin.jvm.JvmName * Example: * * ``` + * import io.cloudshiftdev.awscdk.*; * Canary canary = Canary.Builder.create(this, "MyCanary") * .schedule(Schedule.rate(Duration.minutes(5))) * .test(Test.custom(CustomTestOptions.builder() @@ -20,8 +21,7 @@ import kotlin.jvm.JvmName * .handler("index.handler") * .build())) * .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) - * .environmentVariables(Map.of( - * "stage", "prod")) + * .memory(Size.mebibytes(1024)) * .build(); * ``` */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplication.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplication.kt index 0ef588104f..635cc05c40 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplication.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplication.kt @@ -37,6 +37,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .databaseName("databaseName") * .secretId("secretId") * .build())) + * .databaseArn("databaseArn") * .instances(List.of("instances")) * .sapInstanceNumber("sapInstanceNumber") * .sid("sid") @@ -51,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnApplication( cdkObject: software.amazon.awscdk.services.systemsmanagersap.CfnApplication, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -121,6 +124,18 @@ public open class CfnApplication( */ public open fun credentials(vararg `value`: Any): Unit = credentials(`value`.toList()) + /** + * The Amazon Resource Name (ARN) of the database. + */ + public open fun databaseArn(): String? = unwrap(this).getDatabaseArn() + + /** + * The Amazon Resource Name (ARN) of the database. + */ + public open fun databaseArn(`value`: String) { + unwrap(this).setDatabaseArn(`value`) + } + /** * Examines the CloudFormation resource and discloses attributes. * @@ -239,6 +254,14 @@ public open class CfnApplication( */ public fun credentials(vararg credentials: Any) + /** + * The Amazon Resource Name (ARN) of the database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-systemsmanagersap-application.html#cfn-systemsmanagersap-application-databasearn) + * @param databaseArn The Amazon Resource Name (ARN) of the database. + */ + public fun databaseArn(databaseArn: String) + /** * The Amazon EC2 instances on which your SAP application is running. * @@ -343,6 +366,16 @@ public open class CfnApplication( */ override fun credentials(vararg credentials: Any): Unit = credentials(credentials.toList()) + /** + * The Amazon Resource Name (ARN) of the database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-systemsmanagersap-application.html#cfn-systemsmanagersap-application-databasearn) + * @param databaseArn The Amazon Resource Name (ARN) of the database. + */ + override fun databaseArn(databaseArn: String) { + cdkBuilder.databaseArn(databaseArn) + } + /** * The Amazon EC2 instances on which your SAP application is running. * @@ -521,7 +554,8 @@ public open class CfnApplication( private class Wrapper( cdkObject: software.amazon.awscdk.services.systemsmanagersap.CfnApplication.CredentialProperty, - ) : CdkObject(cdkObject), CredentialProperty { + ) : CdkObject(cdkObject), + CredentialProperty { /** * The type of the application credentials. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplicationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplicationProps.kt index a14cd04b79..48b60775dc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplicationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/systemsmanagersap/CfnApplicationProps.kt @@ -30,6 +30,7 @@ import kotlin.collections.List * .databaseName("databaseName") * .secretId("secretId") * .build())) + * .databaseArn("databaseArn") * .instances(List.of("instances")) * .sapInstanceNumber("sapInstanceNumber") * .sid("sid") @@ -64,6 +65,13 @@ public interface CfnApplicationProps { */ public fun credentials(): Any? = unwrap(this).getCredentials() + /** + * The Amazon Resource Name (ARN) of the database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-systemsmanagersap-application.html#cfn-systemsmanagersap-application-databasearn) + */ + public fun databaseArn(): String? = unwrap(this).getDatabaseArn() + /** * The Amazon EC2 instances on which your SAP application is running. * @@ -122,6 +130,11 @@ public interface CfnApplicationProps { */ public fun credentials(vararg credentials: Any) + /** + * @param databaseArn The Amazon Resource Name (ARN) of the database. + */ + public fun databaseArn(databaseArn: String) + /** * @param instances The Amazon EC2 instances on which your SAP application is running. */ @@ -191,6 +204,13 @@ public interface CfnApplicationProps { */ override fun credentials(vararg credentials: Any): Unit = credentials(credentials.toList()) + /** + * @param databaseArn The Amazon Resource Name (ARN) of the database. + */ + override fun databaseArn(databaseArn: String) { + cdkBuilder.databaseArn(databaseArn) + } + /** * @param instances The Amazon EC2 instances on which your SAP application is running. */ @@ -235,7 +255,8 @@ public interface CfnApplicationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.systemsmanagersap.CfnApplicationProps, - ) : CdkObject(cdkObject), CfnApplicationProps { + ) : CdkObject(cdkObject), + CfnApplicationProps { /** * The ID of the application. * @@ -257,6 +278,13 @@ public interface CfnApplicationProps { */ override fun credentials(): Any? = unwrap(this).getCredentials() + /** + * The Amazon Resource Name (ARN) of the database. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-systemsmanagersap-application.html#cfn-systemsmanagersap-application-databasearn) + */ + override fun databaseArn(): String? = unwrap(this).getDatabaseArn() + /** * The Amazon EC2 instances on which your SAP application is running. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabase.kt index 83ee0db443..0476b579ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabase.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDatabase( cdkObject: software.amazon.awscdk.services.timestream.CfnDatabase, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.timestream.CfnDatabase(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabaseProps.kt index f4e0ec827e..8edd8d8764 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnDatabaseProps.kt @@ -121,7 +121,8 @@ public interface CfnDatabaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnDatabaseProps, - ) : CdkObject(cdkObject), CfnDatabaseProps { + ) : CdkObject(cdkObject), + CfnDatabaseProps { /** * The name of the Timestream database. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstance.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstance.kt index f04f3c54e2..57d81491f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstance.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstance.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnInfluxDBInstance( cdkObject: software.amazon.awscdk.services.timestream.CfnInfluxDBInstance, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.timestream.CfnInfluxDBInstance(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -982,7 +984,8 @@ public open class CfnInfluxDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnInfluxDBInstance.LogDeliveryConfigurationProperty, - ) : CdkObject(cdkObject), LogDeliveryConfigurationProperty { + ) : CdkObject(cdkObject), + LogDeliveryConfigurationProperty { /** * Configuration for S3 bucket log delivery. * @@ -1096,7 +1099,8 @@ public open class CfnInfluxDBInstance( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnInfluxDBInstance.S3ConfigurationProperty, - ) : CdkObject(cdkObject), S3ConfigurationProperty { + ) : CdkObject(cdkObject), + S3ConfigurationProperty { /** * The bucket name of the customer S3 bucket. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstanceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstanceProps.kt index d9989e5bea..f04eef8fe1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstanceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnInfluxDBInstanceProps.kt @@ -540,7 +540,8 @@ public interface CfnInfluxDBInstanceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnInfluxDBInstanceProps, - ) : CdkObject(cdkObject), CfnInfluxDBInstanceProps { + ) : CdkObject(cdkObject), + CfnInfluxDBInstanceProps { /** * The amount of storage to allocate for your DB storage type in GiB (gibibytes). * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQuery.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQuery.kt index fd4682eaa5..92bc748234 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQuery.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQuery.kt @@ -104,7 +104,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnScheduledQuery( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -941,7 +943,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.DimensionMappingProperty, - ) : CdkObject(cdkObject), DimensionMappingProperty { + ) : CdkObject(cdkObject), + DimensionMappingProperty { /** * Type for the dimension: VARCHAR. * @@ -1063,7 +1066,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.ErrorReportConfigurationProperty, - ) : CdkObject(cdkObject), ErrorReportConfigurationProperty { + ) : CdkObject(cdkObject), + ErrorReportConfigurationProperty { /** * The S3 configuration for the error reports. * @@ -1282,7 +1286,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.MixedMeasureMappingProperty, - ) : CdkObject(cdkObject), MixedMeasureMappingProperty { + ) : CdkObject(cdkObject), + MixedMeasureMappingProperty { /** * Refers to the value of measure_name in a result row. * @@ -1452,7 +1457,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.MultiMeasureAttributeMappingProperty, - ) : CdkObject(cdkObject), MultiMeasureAttributeMappingProperty { + ) : CdkObject(cdkObject), + MultiMeasureAttributeMappingProperty { /** * Type of the attribute to be read from the source column. * @@ -1628,7 +1634,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.MultiMeasureMappingsProperty, - ) : CdkObject(cdkObject), MultiMeasureMappingsProperty { + ) : CdkObject(cdkObject), + MultiMeasureMappingsProperty { /** * Required. * @@ -1757,7 +1764,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.NotificationConfigurationProperty, - ) : CdkObject(cdkObject), NotificationConfigurationProperty { + ) : CdkObject(cdkObject), + NotificationConfigurationProperty { /** * Details on SNS configuration. * @@ -1889,7 +1897,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.S3ConfigurationProperty, - ) : CdkObject(cdkObject), S3ConfigurationProperty { + ) : CdkObject(cdkObject), + S3ConfigurationProperty { /** * Name of the S3 bucket under which error reports will be created. * @@ -1996,7 +2005,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.ScheduleConfigurationProperty, - ) : CdkObject(cdkObject), ScheduleConfigurationProperty { + ) : CdkObject(cdkObject), + ScheduleConfigurationProperty { /** * An expression that denotes when to trigger the scheduled query run. * @@ -2082,7 +2092,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.SnsConfigurationProperty, - ) : CdkObject(cdkObject), SnsConfigurationProperty { + ) : CdkObject(cdkObject), + SnsConfigurationProperty { /** * SNS topic ARN that the scheduled query status notifications will be sent to. * @@ -2233,7 +2244,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.TargetConfigurationProperty, - ) : CdkObject(cdkObject), TargetConfigurationProperty { + ) : CdkObject(cdkObject), + TargetConfigurationProperty { /** * Configuration needed to write data into the Timestream database and table. * @@ -2563,7 +2575,8 @@ public open class CfnScheduledQuery( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQuery.TimestreamConfigurationProperty, - ) : CdkObject(cdkObject), TimestreamConfigurationProperty { + ) : CdkObject(cdkObject), + TimestreamConfigurationProperty { /** * Name of Timestream database to which the query result will be written. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQueryProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQueryProps.kt index f87291a314..543572440b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQueryProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnScheduledQueryProps.kt @@ -533,7 +533,8 @@ public interface CfnScheduledQueryProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnScheduledQueryProps, - ) : CdkObject(cdkObject), CfnScheduledQueryProps { + ) : CdkObject(cdkObject), + CfnScheduledQueryProps { /** * Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making * the same request repeatedly will produce the same result. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTable.kt index 6173cde958..199a49b359 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTable.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTable( cdkObject: software.amazon.awscdk.services.timestream.CfnTable, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -646,7 +648,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.MagneticStoreRejectedDataLocationProperty, - ) : CdkObject(cdkObject), MagneticStoreRejectedDataLocationProperty { + ) : CdkObject(cdkObject), + MagneticStoreRejectedDataLocationProperty { /** * Configuration of an S3 location to write error reports for records rejected, * asynchronously, during magnetic store writes. @@ -813,7 +816,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.MagneticStoreWritePropertiesProperty, - ) : CdkObject(cdkObject), MagneticStoreWritePropertiesProperty { + ) : CdkObject(cdkObject), + MagneticStoreWritePropertiesProperty { /** * A flag to enable magnetic store writes. * @@ -961,7 +965,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.PartitionKeyProperty, - ) : CdkObject(cdkObject), PartitionKeyProperty { + ) : CdkObject(cdkObject), + PartitionKeyProperty { /** * The level of enforcement for the specification of a dimension key in ingested records. * @@ -1088,7 +1093,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.RetentionPropertiesProperty, - ) : CdkObject(cdkObject), RetentionPropertiesProperty { + ) : CdkObject(cdkObject), + RetentionPropertiesProperty { /** * The duration for which data must be stored in the magnetic store. * @@ -1245,7 +1251,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.S3ConfigurationProperty, - ) : CdkObject(cdkObject), S3ConfigurationProperty { + ) : CdkObject(cdkObject), + S3ConfigurationProperty { /** * The bucket name of the customer S3 bucket. * @@ -1404,7 +1411,8 @@ public open class CfnTable( private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTable.SchemaProperty, - ) : CdkObject(cdkObject), SchemaProperty { + ) : CdkObject(cdkObject), + SchemaProperty { /** * A non-empty list of partition keys defining the attributes used to partition the table * data. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTableProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTableProps.kt index cdeeb458e7..4c40c5c569 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTableProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/timestream/CfnTableProps.kt @@ -422,7 +422,8 @@ public interface CfnTableProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.timestream.CfnTableProps, - ) : CdkObject(cdkObject), CfnTableProps { + ) : CdkObject(cdkObject), + CfnTableProps { /** * The name of the Timestream database that contains this table. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreement.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreement.kt index dc0964634a..9d65459397 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreement.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreement.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAgreement( cdkObject: software.amazon.awscdk.services.transfer.CfnAgreement, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreementProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreementProps.kt index cc7cfa91eb..ffbbeb89a3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreementProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnAgreementProps.kt @@ -295,7 +295,8 @@ public interface CfnAgreementProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnAgreementProps, - ) : CdkObject(cdkObject), CfnAgreementProps { + ) : CdkObject(cdkObject), + CfnAgreementProps { /** * Connectors are used to send files using either the AS2 or SFTP protocol. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificate.kt index 162235fd5b..4ca303f2a8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificate.kt @@ -45,7 +45,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnCertificate( cdkObject: software.amazon.awscdk.services.transfer.CfnCertificate, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificateProps.kt index 5cb53309bd..809222119a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnCertificateProps.kt @@ -228,7 +228,8 @@ public interface CfnCertificateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnCertificateProps, - ) : CdkObject(cdkObject), CfnCertificateProps { + ) : CdkObject(cdkObject), + CfnCertificateProps { /** * An optional date that specifies when the certificate becomes active. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnector.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnector.kt index 3b4dbe5e18..46a1a380a9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnector.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnector.kt @@ -65,7 +65,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnector( cdkObject: software.amazon.awscdk.services.transfer.CfnConnector, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -845,7 +847,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnConnector.As2ConfigProperty, - ) : CdkObject(cdkObject), As2ConfigProperty { + ) : CdkObject(cdkObject), + As2ConfigProperty { /** * Provides Basic authentication support to the AS2 Connectors API. * @@ -1201,7 +1204,8 @@ public open class CfnConnector( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnConnector.SftpConfigProperty, - ) : CdkObject(cdkObject), SftpConfigProperty { + ) : CdkObject(cdkObject), + SftpConfigProperty { /** * The public portion of the host key, or keys, that are used to identify the external server * to which you are connecting. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnectorProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnectorProps.kt index 79e219ab38..2ef6cc37e6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnectorProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnConnectorProps.kt @@ -310,7 +310,8 @@ public interface CfnConnectorProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnConnectorProps, - ) : CdkObject(cdkObject), CfnConnectorProps { + ) : CdkObject(cdkObject), + CfnConnectorProps { /** * Connectors are used to send files using either the AS2 or SFTP protocol. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfile.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfile.kt index 8b4d3228ca..1624085f73 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfile.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfile.kt @@ -40,7 +40,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnProfile( cdkObject: software.amazon.awscdk.services.transfer.CfnProfile, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfileProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfileProps.kt index 22d61e625b..c3744f7a58 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfileProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnProfileProps.kt @@ -171,7 +171,8 @@ public interface CfnProfileProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnProfileProps, - ) : CdkObject(cdkObject), CfnProfileProps { + ) : CdkObject(cdkObject), + CfnProfileProps { /** * The `As2Id` is the *AS2-name* , as defined in the [RFC * 4130](https://docs.aws.amazon.com/https://datatracker.ietf.org/doc/html/rfc4130) . For inbound diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServer.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServer.kt index 4fdfdc3a60..dc854af7d9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServer.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServer.kt @@ -87,7 +87,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServer( cdkObject: software.amazon.awscdk.services.transfer.CfnServer, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.transfer.CfnServer(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -2004,7 +2006,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.EndpointDetailsProperty, - ) : CdkObject(cdkObject), EndpointDetailsProperty { + ) : CdkObject(cdkObject), + EndpointDetailsProperty { /** * A list of address allocation IDs that are required to attach an Elastic IP address to your * server's endpoint. @@ -2292,7 +2295,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.IdentityProviderDetailsProperty, - ) : CdkObject(cdkObject), IdentityProviderDetailsProperty { + ) : CdkObject(cdkObject), + IdentityProviderDetailsProperty { /** * The identifier of the AWS Directory Service directory that you want to use as your identity * provider. @@ -2698,7 +2702,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.ProtocolDetailsProperty, - ) : CdkObject(cdkObject), ProtocolDetailsProperty { + ) : CdkObject(cdkObject), + ProtocolDetailsProperty { /** * List of `As2Transport` objects. * @@ -2883,7 +2888,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.S3StorageOptionsProperty, - ) : CdkObject(cdkObject), S3StorageOptionsProperty { + ) : CdkObject(cdkObject), + S3StorageOptionsProperty { /** * Specifies whether or not performance for your Amazon S3 directories is optimized. This is * disabled by default. @@ -2997,7 +3003,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.WorkflowDetailProperty, - ) : CdkObject(cdkObject), WorkflowDetailProperty { + ) : CdkObject(cdkObject), + WorkflowDetailProperty { /** * Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can * assume, so that all workflow steps can operate on the required resources. @@ -3065,6 +3072,10 @@ public open class CfnServer( * * A *partial upload* occurs when a file is open when the session disconnects. * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-workflowdetails.html#cfn-transfer-server-workflowdetails-onpartialupload) */ public fun onPartialUpload(): Any? = unwrap(this).getOnPartialUpload() @@ -3078,6 +3089,10 @@ public open class CfnServer( * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-workflowdetails.html#cfn-transfer-server-workflowdetails-onupload) */ public fun onUpload(): Any? = unwrap(this).getOnUpload() @@ -3093,6 +3108,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onPartialUpload(onPartialUpload: IResolvable) @@ -3102,6 +3120,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onPartialUpload(onPartialUpload: List) @@ -3111,6 +3132,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onPartialUpload(vararg onPartialUpload: Any) @@ -3122,6 +3146,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onUpload(onUpload: IResolvable) @@ -3133,6 +3160,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onUpload(onUpload: List) @@ -3144,6 +3174,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ public fun onUpload(vararg onUpload: Any) } @@ -3159,6 +3192,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onPartialUpload(onPartialUpload: IResolvable) { cdkBuilder.onPartialUpload(onPartialUpload.let(IResolvable.Companion::unwrap)) @@ -3170,6 +3206,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onPartialUpload(onPartialUpload: List) { cdkBuilder.onPartialUpload(onPartialUpload.map{CdkObjectWrappers.unwrap(it)}) @@ -3181,6 +3220,9 @@ public open class CfnServer( * You can attach a workflow to a server that executes whenever there is a partial upload. * * A *partial upload* occurs when a file is open when the session disconnects. + * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onPartialUpload(vararg onPartialUpload: Any): Unit = onPartialUpload(onPartialUpload.toList()) @@ -3193,6 +3235,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onUpload(onUpload: IResolvable) { cdkBuilder.onUpload(onUpload.let(IResolvable.Companion::unwrap)) @@ -3206,6 +3251,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onUpload(onUpload: List) { cdkBuilder.onUpload(onUpload.map{CdkObjectWrappers.unwrap(it)}) @@ -3219,6 +3267,9 @@ public open class CfnServer( * * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` + * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. */ override fun onUpload(vararg onUpload: Any): Unit = onUpload(onUpload.toList()) @@ -3228,7 +3279,8 @@ public open class CfnServer( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServer.WorkflowDetailsProperty, - ) : CdkObject(cdkObject), WorkflowDetailsProperty { + ) : CdkObject(cdkObject), + WorkflowDetailsProperty { /** * A trigger that starts a workflow if a file is only partially uploaded. * @@ -3236,6 +3288,10 @@ public open class CfnServer( * * A *partial upload* occurs when a file is open when the session disconnects. * + * + * `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-workflowdetails.html#cfn-transfer-server-workflowdetails-onpartialupload) */ override fun onPartialUpload(): Any? = unwrap(this).getOnPartialUpload() @@ -3249,6 +3305,10 @@ public open class CfnServer( * `aws transfer update-server --server-id s-01234567890abcdef --workflow-details * '{"OnUpload":[]}'` * + * + * `OnUpload` can contain a maximum of one `WorkflowDetail` object. + * + * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-workflowdetails.html#cfn-transfer-server-workflowdetails-onupload) */ override fun onUpload(): Any? = unwrap(this).getOnUpload() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServerProps.kt index 32164afe8e..8f178fc132 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnServerProps.kt @@ -1243,7 +1243,8 @@ public interface CfnServerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnServerProps, - ) : CdkObject(cdkObject), CfnServerProps { + ) : CdkObject(cdkObject), + CfnServerProps { /** * The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUser.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUser.kt index 904d4a6460..f0023da313 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUser.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUser.kt @@ -68,7 +68,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUser( cdkObject: software.amazon.awscdk.services.transfer.CfnUser, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1031,7 +1033,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnUser.HomeDirectoryMapEntryProperty, - ) : CdkObject(cdkObject), HomeDirectoryMapEntryProperty { + ) : CdkObject(cdkObject), + HomeDirectoryMapEntryProperty { /** * Represents an entry for `HomeDirectoryMappings` . * @@ -1209,7 +1212,8 @@ public open class CfnUser( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnUser.PosixProfileProperty, - ) : CdkObject(cdkObject), PosixProfileProperty { + ) : CdkObject(cdkObject), + PosixProfileProperty { /** * The POSIX group ID used for all EFS operations by this user. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUserProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUserProps.kt index bb7d521a68..221df65d82 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUserProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnUserProps.kt @@ -632,7 +632,8 @@ public interface CfnUserProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnUserProps, - ) : CdkObject(cdkObject), CfnUserProps { + ) : CdkObject(cdkObject), + CfnUserProps { /** * The landing directory (folder) for a user when they log in to the server using the client. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflow.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflow.kt index 6fea174392..ddddd4489c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflow.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflow.kt @@ -100,7 +100,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkflow( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -718,7 +720,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.CopyStepDetailsProperty, - ) : CdkObject(cdkObject), CopyStepDetailsProperty { + ) : CdkObject(cdkObject), + CopyStepDetailsProperty { /** * Specifies the location for the file being copied. * @@ -930,7 +933,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.CustomStepDetailsProperty, - ) : CdkObject(cdkObject), CustomStepDetailsProperty { + ) : CdkObject(cdkObject), + CustomStepDetailsProperty { /** * The name of the step, used as an identifier. * @@ -1299,7 +1303,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.DecryptStepDetailsProperty, - ) : CdkObject(cdkObject), DecryptStepDetailsProperty { + ) : CdkObject(cdkObject), + DecryptStepDetailsProperty { /** * Specifies the location for the file being decrypted. * @@ -1478,7 +1483,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.DeleteStepDetailsProperty, - ) : CdkObject(cdkObject), DeleteStepDetailsProperty { + ) : CdkObject(cdkObject), + DeleteStepDetailsProperty { /** * The name of the step, used as an identifier. * @@ -1595,7 +1601,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.EfsInputFileLocationProperty, - ) : CdkObject(cdkObject), EfsInputFileLocationProperty { + ) : CdkObject(cdkObject), + EfsInputFileLocationProperty { /** * The identifier of the file system, assigned by Amazon EFS. * @@ -1777,7 +1784,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.InputFileLocationProperty, - ) : CdkObject(cdkObject), InputFileLocationProperty { + ) : CdkObject(cdkObject), + InputFileLocationProperty { /** * Specifies the details for the Amazon Elastic File System (Amazon EFS) file that's being * decrypted. @@ -1910,7 +1918,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.S3FileLocationProperty, - ) : CdkObject(cdkObject), S3FileLocationProperty { + ) : CdkObject(cdkObject), + S3FileLocationProperty { /** * Specifies the details for the file location for the file that's being used in the workflow. * @@ -2017,7 +2026,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.S3InputFileLocationProperty, - ) : CdkObject(cdkObject), S3InputFileLocationProperty { + ) : CdkObject(cdkObject), + S3InputFileLocationProperty { /** * Specifies the S3 bucket for the customer input file. * @@ -2127,7 +2137,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.S3TagProperty, - ) : CdkObject(cdkObject), S3TagProperty { + ) : CdkObject(cdkObject), + S3TagProperty { /** * The name assigned to the tag that you create. * @@ -2288,7 +2299,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.TagStepDetailsProperty, - ) : CdkObject(cdkObject), TagStepDetailsProperty { + ) : CdkObject(cdkObject), + TagStepDetailsProperty { /** * The name of the step, used as an identifier. * @@ -2646,7 +2658,8 @@ public open class CfnWorkflow( private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflow.WorkflowStepProperty, - ) : CdkObject(cdkObject), WorkflowStepProperty { + ) : CdkObject(cdkObject), + WorkflowStepProperty { /** * Details for a step that performs a file copy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflowProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflowProps.kt index 637c852e46..005e54c499 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflowProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/transfer/CfnWorkflowProps.kt @@ -246,7 +246,8 @@ public interface CfnWorkflowProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.transfer.CfnWorkflowProps, - ) : CdkObject(cdkObject), CfnWorkflowProps { + ) : CdkObject(cdkObject), + CfnWorkflowProps { /** * Specifies the text description for the workflow. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySource.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySource.kt index bda3dfaff4..af2dea140f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySource.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySource.kt @@ -68,6 +68,25 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .groupEntityType("groupEntityType") * .build()) * .build()) + * .openIdConnectConfiguration(OpenIdConnectConfigurationProperty.builder() + * .issuer("issuer") + * .tokenSelection(OpenIdConnectTokenSelectionProperty.builder() + * .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .build()) + * // the properties below are optional + * .entityIdPrefix("entityIdPrefix") + * .groupConfiguration(OpenIdConnectGroupConfigurationProperty.builder() + * .groupClaim("groupClaim") + * .groupEntityType("groupEntityType") + * .build()) + * .build()) * .build()) * .policyStoreId("policyStoreId") * // the properties below are optional @@ -79,7 +98,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentitySource( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -127,26 +147,26 @@ public open class CfnIdentitySource( public open fun attrIdentitySourceId(): String = unwrap(this).getAttrIdentitySourceId() /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. */ public open fun configuration(): Any = unwrap(this).getConfiguration() /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. */ public open fun configuration(`value`: IResolvable) { unwrap(this).setConfiguration(`value`.let(IResolvable.Companion::unwrap)) } /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. */ public open fun configuration(`value`: IdentitySourceConfigurationProperty) { unwrap(this).setConfiguration(`value`.let(IdentitySourceConfigurationProperty.Companion::unwrap)) } /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("3f097b6a0169411a9541f2f293b2ec50920e1c9135042b5e23a00482ca4233e1") @@ -194,26 +214,29 @@ public open class CfnIdentitySource( @CdkDslMarker public interface Builder { /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ public fun configuration(configuration: IResolvable) /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ public fun configuration(configuration: IdentitySourceConfigurationProperty) /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8bbfe0ed3878f6d1c30b37f35051aaaf5948f60ea00fa239fb3ec49a4c3cee4d") @@ -252,30 +275,33 @@ public open class CfnIdentitySource( id) /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ override fun configuration(configuration: IResolvable) { cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) } /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ override fun configuration(configuration: IdentitySourceConfigurationProperty) { cdkBuilder.configuration(configuration.let(IdentitySourceConfigurationProperty.Companion::unwrap)) } /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("8bbfe0ed3878f6d1c30b37f35051aaaf5948f60ea00fa239fb3ec49a4c3cee4d") @@ -339,12 +365,6 @@ public open class CfnIdentitySource( * The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity * source. * - * This data type is part of a - * [CognitoUserPoolConfiguration](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfiguration.html) - * structure and is a request parameter in - * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) - * . - * * Example: * * ``` @@ -404,7 +424,8 @@ public open class CfnIdentitySource( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.CognitoGroupConfigurationProperty, - ) : CdkObject(cdkObject), CognitoGroupConfigurationProperty { + ) : CdkObject(cdkObject), + CognitoGroupConfigurationProperty { /** * The name of the schema entity type that's mapped to the user pool group. * @@ -598,7 +619,8 @@ public open class CfnIdentitySource( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.CognitoUserPoolConfigurationProperty, - ) : CdkObject(cdkObject), CognitoUserPoolConfigurationProperty { + ) : CdkObject(cdkObject), + CognitoUserPoolConfigurationProperty { /** * The unique application client IDs that are associated with the specified Amazon Cognito * user pool. @@ -673,6 +695,25 @@ public open class CfnIdentitySource( * .groupEntityType("groupEntityType") * .build()) * .build()) + * .openIdConnectConfiguration(OpenIdConnectConfigurationProperty.builder() + * .issuer("issuer") + * .tokenSelection(OpenIdConnectTokenSelectionProperty.builder() + * .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .build()) + * // the properties below are optional + * .entityIdPrefix("entityIdPrefix") + * .groupConfiguration(OpenIdConnectGroupConfigurationProperty.builder() + * .groupClaim("groupClaim") + * .groupEntityType("groupEntityType") + * .build()) + * .build()) * .build(); * ``` * @@ -686,7 +727,12 @@ public open class CfnIdentitySource( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-identitysourceconfiguration.html#cfn-verifiedpermissions-identitysource-identitysourceconfiguration-cognitouserpoolconfiguration) */ - public fun cognitoUserPoolConfiguration(): Any + public fun cognitoUserPoolConfiguration(): Any? = unwrap(this).getCognitoUserPoolConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-identitysourceconfiguration.html#cfn-verifiedpermissions-identitysource-identitysourceconfiguration-openidconnectconfiguration) + */ + public fun openIdConnectConfiguration(): Any? = unwrap(this).getOpenIdConnectConfiguration() /** * A builder for [IdentitySourceConfigurationProperty] @@ -696,14 +742,14 @@ public open class CfnIdentitySource( /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ public fun cognitoUserPoolConfiguration(cognitoUserPoolConfiguration: IResolvable) /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ public fun cognitoUserPoolConfiguration(cognitoUserPoolConfiguration: CognitoUserPoolConfigurationProperty) @@ -711,12 +757,31 @@ public open class CfnIdentitySource( /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("51bdf9dd6707933905c3a015af20f3e511473a2a30ce40b46ee0e5fe6764b226") public fun cognitoUserPoolConfiguration(cognitoUserPoolConfiguration: CognitoUserPoolConfigurationProperty.Builder.() -> Unit) + + /** + * @param openIdConnectConfiguration the value to be set. + */ + public fun openIdConnectConfiguration(openIdConnectConfiguration: IResolvable) + + /** + * @param openIdConnectConfiguration the value to be set. + */ + public + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIdConnectConfigurationProperty) + + /** + * @param openIdConnectConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e302c19608fde93e2042f9662d74e15f730e62214508da1182cee1db965d3bc1") + public + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIdConnectConfigurationProperty.Builder.() -> Unit) } private class BuilderImpl : Builder { @@ -728,7 +793,7 @@ public open class CfnIdentitySource( /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ override fun cognitoUserPoolConfiguration(cognitoUserPoolConfiguration: IResolvable) { cdkBuilder.cognitoUserPoolConfiguration(cognitoUserPoolConfiguration.let(IResolvable.Companion::unwrap)) @@ -737,7 +802,7 @@ public open class CfnIdentitySource( /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ override fun cognitoUserPoolConfiguration(cognitoUserPoolConfiguration: CognitoUserPoolConfigurationProperty) { @@ -747,7 +812,7 @@ public open class CfnIdentitySource( /** * @param cognitoUserPoolConfiguration A structure that contains configuration information * used when creating or updating an identity source that represents a connection to an Amazon - * Cognito user pool used as an identity provider for Verified Permissions . + * Cognito user pool used as an identity provider for Verified Permissions . */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("51bdf9dd6707933905c3a015af20f3e511473a2a30ce40b46ee0e5fe6764b226") @@ -756,6 +821,31 @@ public open class CfnIdentitySource( Unit = cognitoUserPoolConfiguration(CognitoUserPoolConfigurationProperty(cognitoUserPoolConfiguration)) + /** + * @param openIdConnectConfiguration the value to be set. + */ + override fun openIdConnectConfiguration(openIdConnectConfiguration: IResolvable) { + cdkBuilder.openIdConnectConfiguration(openIdConnectConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param openIdConnectConfiguration the value to be set. + */ + override + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIdConnectConfigurationProperty) { + cdkBuilder.openIdConnectConfiguration(openIdConnectConfiguration.let(OpenIdConnectConfigurationProperty.Companion::unwrap)) + } + + /** + * @param openIdConnectConfiguration the value to be set. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("e302c19608fde93e2042f9662d74e15f730e62214508da1182cee1db965d3bc1") + override + fun openIdConnectConfiguration(openIdConnectConfiguration: OpenIdConnectConfigurationProperty.Builder.() -> Unit): + Unit = + openIdConnectConfiguration(OpenIdConnectConfigurationProperty(openIdConnectConfiguration)) + public fun build(): software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.IdentitySourceConfigurationProperty = cdkBuilder.build() @@ -763,7 +853,8 @@ public open class CfnIdentitySource( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.IdentitySourceConfigurationProperty, - ) : CdkObject(cdkObject), IdentitySourceConfigurationProperty { + ) : CdkObject(cdkObject), + IdentitySourceConfigurationProperty { /** * A structure that contains configuration information used when creating or updating an * identity source that represents a connection to an Amazon Cognito user pool used as an @@ -771,8 +862,13 @@ public open class CfnIdentitySource( * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-identitysourceconfiguration.html#cfn-verifiedpermissions-identitysource-identitysourceconfiguration-cognitouserpoolconfiguration) */ - override fun cognitoUserPoolConfiguration(): Any = + override fun cognitoUserPoolConfiguration(): Any? = unwrap(this).getCognitoUserPoolConfiguration() + + /** + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-identitysourceconfiguration.html#cfn-verifiedpermissions-identitysource-identitysourceconfiguration-openidconnectconfiguration) + */ + override fun openIdConnectConfiguration(): Any? = unwrap(this).getOpenIdConnectConfiguration() } public companion object { @@ -910,7 +1006,8 @@ public open class CfnIdentitySource( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.IdentitySourceDetailsProperty, - ) : CdkObject(cdkObject), IdentitySourceDetailsProperty { + ) : CdkObject(cdkObject), + IdentitySourceDetailsProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-identitysourcedetails.html#cfn-verifiedpermissions-identitysource-identitysourcedetails-clientids) */ @@ -949,4 +1046,990 @@ public open class CfnIdentitySource( software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.IdentitySourceDetailsProperty } } + + /** + * The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. + * + * Contains the claim that you want to identify as the principal in an authorization request, and + * the values of the `aud` claim, or audiences, that you want to accept. + * + * This data type is part of a + * [OpenIdConnectTokenSelection](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectTokenSelection.html) + * structure, which is a parameter of + * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.verifiedpermissions.*; + * OpenIdConnectAccessTokenConfigurationProperty openIdConnectAccessTokenConfigurationProperty = + * OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration.html) + */ + public interface OpenIdConnectAccessTokenConfigurationProperty { + /** + * The access token `aud` claim values that you want to accept in your policy store. + * + * For example, `https://myapp.example.com, https://myapp2.example.com` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration-audiences) + */ + public fun audiences(): List = unwrap(this).getAudiences() ?: emptyList() + + /** + * The claim that determines the principal in OIDC access tokens. + * + * For example, `sub` . + * + * Default: - "sub" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration-principalidclaim) + */ + public fun principalIdClaim(): String? = unwrap(this).getPrincipalIdClaim() + + /** + * A builder for [OpenIdConnectAccessTokenConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param audiences The access token `aud` claim values that you want to accept in your policy + * store. + * For example, `https://myapp.example.com, https://myapp2.example.com` . + */ + public fun audiences(audiences: List) + + /** + * @param audiences The access token `aud` claim values that you want to accept in your policy + * store. + * For example, `https://myapp.example.com, https://myapp2.example.com` . + */ + public fun audiences(vararg audiences: String) + + /** + * @param principalIdClaim The claim that determines the principal in OIDC access tokens. + * For example, `sub` . + */ + public fun principalIdClaim(principalIdClaim: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty.Builder + = + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty.builder() + + /** + * @param audiences The access token `aud` claim values that you want to accept in your policy + * store. + * For example, `https://myapp.example.com, https://myapp2.example.com` . + */ + override fun audiences(audiences: List) { + cdkBuilder.audiences(audiences) + } + + /** + * @param audiences The access token `aud` claim values that you want to accept in your policy + * store. + * For example, `https://myapp.example.com, https://myapp2.example.com` . + */ + override fun audiences(vararg audiences: String): Unit = audiences(audiences.toList()) + + /** + * @param principalIdClaim The claim that determines the principal in OIDC access tokens. + * For example, `sub` . + */ + override fun principalIdClaim(principalIdClaim: String) { + cdkBuilder.principalIdClaim(principalIdClaim) + } + + public fun build(): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIdConnectAccessTokenConfigurationProperty { + /** + * The access token `aud` claim values that you want to accept in your policy store. + * + * For example, `https://myapp.example.com, https://myapp2.example.com` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration-audiences) + */ + override fun audiences(): List = unwrap(this).getAudiences() ?: emptyList() + + /** + * The claim that determines the principal in OIDC access tokens. + * + * For example, `sub` . + * + * Default: - "sub" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectaccesstokenconfiguration-principalidclaim) + */ + override fun principalIdClaim(): String? = unwrap(this).getPrincipalIdClaim() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIdConnectAccessTokenConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty): + OpenIdConnectAccessTokenConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConnectAccessTokenConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConnectAccessTokenConfigurationProperty): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty + } + } + + /** + * Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity + * source, that Verified Permissions can use to generate entities from authenticated identities. + * + * It specifies the issuer URL, token type that you want to use, and policy store entity details. + * + * This data type is part of a + * [Configuration](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_Configuration.html) + * structure, which is a parameter to + * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.verifiedpermissions.*; + * OpenIdConnectConfigurationProperty openIdConnectConfigurationProperty = + * OpenIdConnectConfigurationProperty.builder() + * .issuer("issuer") + * .tokenSelection(OpenIdConnectTokenSelectionProperty.builder() + * .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .build()) + * // the properties below are optional + * .entityIdPrefix("entityIdPrefix") + * .groupConfiguration(OpenIdConnectGroupConfigurationProperty.builder() + * .groupClaim("groupClaim") + * .groupEntityType("groupEntityType") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html) + */ + public interface OpenIdConnectConfigurationProperty { + /** + * A descriptive string that you want to prefix to user entities from your OIDC identity + * provider. + * + * For example, if you set an `entityIdPrefix` of `MyOIDCProvider` , you can reference + * principals in your policies in the format `MyCorp::User::MyOIDCProvider|Carlos` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-entityidprefix) + */ + public fun entityIdPrefix(): String? = unwrap(this).getEntityIdPrefix() + + /** + * The claim in OIDC identity provider tokens that indicates a user's group membership, and the + * entity type that you want to map it to. + * + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-groupconfiguration) + */ + public fun groupConfiguration(): Any? = unwrap(this).getGroupConfiguration() + + /** + * The issuer URL of an OIDC identity provider. + * + * This URL must have an OIDC discovery endpoint at the path `.well-known/openid-configuration` + * . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-issuer) + */ + public fun issuer(): String + + /** + * The token type that you want to process from your OIDC identity provider. + * + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-tokenselection) + */ + public fun tokenSelection(): Any + + /** + * A builder for [OpenIdConnectConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param entityIdPrefix A descriptive string that you want to prefix to user entities from + * your OIDC identity provider. + * For example, if you set an `entityIdPrefix` of `MyOIDCProvider` , you can reference + * principals in your policies in the format `MyCorp::User::MyOIDCProvider|Carlos` . + */ + public fun entityIdPrefix(entityIdPrefix: String) + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + public fun groupConfiguration(groupConfiguration: IResolvable) + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + public fun groupConfiguration(groupConfiguration: OpenIdConnectGroupConfigurationProperty) + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("59665db2f60079d16c60706069d7c72386fa7a8064d53c291a9fa1c924dcae37") + public + fun groupConfiguration(groupConfiguration: OpenIdConnectGroupConfigurationProperty.Builder.() -> Unit) + + /** + * @param issuer The issuer URL of an OIDC identity provider. + * This URL must have an OIDC discovery endpoint at the path + * `.well-known/openid-configuration` . + */ + public fun issuer(issuer: String) + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + public fun tokenSelection(tokenSelection: IResolvable) + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + public fun tokenSelection(tokenSelection: OpenIdConnectTokenSelectionProperty) + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b179f443f7a241512ebec7e5b8c7fe5a3ad107bc04b0b36823f173ac1edb1c27") + public + fun tokenSelection(tokenSelection: OpenIdConnectTokenSelectionProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty.Builder + = + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty.builder() + + /** + * @param entityIdPrefix A descriptive string that you want to prefix to user entities from + * your OIDC identity provider. + * For example, if you set an `entityIdPrefix` of `MyOIDCProvider` , you can reference + * principals in your policies in the format `MyCorp::User::MyOIDCProvider|Carlos` . + */ + override fun entityIdPrefix(entityIdPrefix: String) { + cdkBuilder.entityIdPrefix(entityIdPrefix) + } + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + override fun groupConfiguration(groupConfiguration: IResolvable) { + cdkBuilder.groupConfiguration(groupConfiguration.let(IResolvable.Companion::unwrap)) + } + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + override fun groupConfiguration(groupConfiguration: OpenIdConnectGroupConfigurationProperty) { + cdkBuilder.groupConfiguration(groupConfiguration.let(OpenIdConnectGroupConfigurationProperty.Companion::unwrap)) + } + + /** + * @param groupConfiguration The claim in OIDC identity provider tokens that indicates a + * user's group membership, and the entity type that you want to map it to. + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("59665db2f60079d16c60706069d7c72386fa7a8064d53c291a9fa1c924dcae37") + override + fun groupConfiguration(groupConfiguration: OpenIdConnectGroupConfigurationProperty.Builder.() -> Unit): + Unit = groupConfiguration(OpenIdConnectGroupConfigurationProperty(groupConfiguration)) + + /** + * @param issuer The issuer URL of an OIDC identity provider. + * This URL must have an OIDC discovery endpoint at the path + * `.well-known/openid-configuration` . + */ + override fun issuer(issuer: String) { + cdkBuilder.issuer(issuer) + } + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + override fun tokenSelection(tokenSelection: IResolvable) { + cdkBuilder.tokenSelection(tokenSelection.let(IResolvable.Companion::unwrap)) + } + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + override fun tokenSelection(tokenSelection: OpenIdConnectTokenSelectionProperty) { + cdkBuilder.tokenSelection(tokenSelection.let(OpenIdConnectTokenSelectionProperty.Companion::unwrap)) + } + + /** + * @param tokenSelection The token type that you want to process from your OIDC identity + * provider. + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b179f443f7a241512ebec7e5b8c7fe5a3ad107bc04b0b36823f173ac1edb1c27") + override + fun tokenSelection(tokenSelection: OpenIdConnectTokenSelectionProperty.Builder.() -> Unit): + Unit = tokenSelection(OpenIdConnectTokenSelectionProperty(tokenSelection)) + + public fun build(): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIdConnectConfigurationProperty { + /** + * A descriptive string that you want to prefix to user entities from your OIDC identity + * provider. + * + * For example, if you set an `entityIdPrefix` of `MyOIDCProvider` , you can reference + * principals in your policies in the format `MyCorp::User::MyOIDCProvider|Carlos` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-entityidprefix) + */ + override fun entityIdPrefix(): String? = unwrap(this).getEntityIdPrefix() + + /** + * The claim in OIDC identity provider tokens that indicates a user's group membership, and + * the entity type that you want to map it to. + * + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-groupconfiguration) + */ + override fun groupConfiguration(): Any? = unwrap(this).getGroupConfiguration() + + /** + * The issuer URL of an OIDC identity provider. + * + * This URL must have an OIDC discovery endpoint at the path + * `.well-known/openid-configuration` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-issuer) + */ + override fun issuer(): String = unwrap(this).getIssuer() + + /** + * The token type that you want to process from your OIDC identity provider. + * + * Your policy store can process either identity (ID) or access tokens from a given OIDC + * identity source. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectconfiguration-tokenselection) + */ + override fun tokenSelection(): Any = unwrap(this).getTokenSelection() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIdConnectConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty): + OpenIdConnectConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConnectConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConnectConfigurationProperty): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectConfigurationProperty + } + } + + /** + * The claim in OIDC identity provider tokens that indicates a user's group membership, and the + * entity type that you want to map it to. + * + * For example, this object can map the contents of a `groups` claim to `MyCorp::UserGroup` . + * + * This data type is part of a + * [OpenIdConnectConfiguration](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectConfiguration.html) + * structure, which is a parameter of + * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.verifiedpermissions.*; + * OpenIdConnectGroupConfigurationProperty openIdConnectGroupConfigurationProperty = + * OpenIdConnectGroupConfigurationProperty.builder() + * .groupClaim("groupClaim") + * .groupEntityType("groupEntityType") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectgroupconfiguration.html) + */ + public interface OpenIdConnectGroupConfigurationProperty { + /** + * The token claim that you want Verified Permissions to interpret as group membership. + * + * For example, `groups` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectgroupconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectgroupconfiguration-groupclaim) + */ + public fun groupClaim(): String + + /** + * The policy store entity type that you want to map your users' group claim to. + * + * For example, `MyCorp::UserGroup` . A group entity type is an entity that can have a user + * entity type as a member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectgroupconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectgroupconfiguration-groupentitytype) + */ + public fun groupEntityType(): String + + /** + * A builder for [OpenIdConnectGroupConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param groupClaim The token claim that you want Verified Permissions to interpret as group + * membership. + * For example, `groups` . + */ + public fun groupClaim(groupClaim: String) + + /** + * @param groupEntityType The policy store entity type that you want to map your users' group + * claim to. + * For example, `MyCorp::UserGroup` . A group entity type is an entity that can have a user + * entity type as a member. + */ + public fun groupEntityType(groupEntityType: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty.Builder + = + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty.builder() + + /** + * @param groupClaim The token claim that you want Verified Permissions to interpret as group + * membership. + * For example, `groups` . + */ + override fun groupClaim(groupClaim: String) { + cdkBuilder.groupClaim(groupClaim) + } + + /** + * @param groupEntityType The policy store entity type that you want to map your users' group + * claim to. + * For example, `MyCorp::UserGroup` . A group entity type is an entity that can have a user + * entity type as a member. + */ + override fun groupEntityType(groupEntityType: String) { + cdkBuilder.groupEntityType(groupEntityType) + } + + public fun build(): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIdConnectGroupConfigurationProperty { + /** + * The token claim that you want Verified Permissions to interpret as group membership. + * + * For example, `groups` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectgroupconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectgroupconfiguration-groupclaim) + */ + override fun groupClaim(): String = unwrap(this).getGroupClaim() + + /** + * The policy store entity type that you want to map your users' group claim to. + * + * For example, `MyCorp::UserGroup` . A group entity type is an entity that can have a user + * entity type as a member. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectgroupconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectgroupconfiguration-groupentitytype) + */ + override fun groupEntityType(): String = unwrap(this).getGroupEntityType() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIdConnectGroupConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty): + OpenIdConnectGroupConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConnectGroupConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConnectGroupConfigurationProperty): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectGroupConfigurationProperty + } + } + + /** + * The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) token + * claims. + * + * Contains the claim that you want to identify as the principal in an authorization request, and + * the values of the `aud` claim, or audiences, that you want to accept. + * + * This data type is part of a + * [OpenIdConnectTokenSelection](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectTokenSelection.html) + * structure, which is a parameter of + * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.verifiedpermissions.*; + * OpenIdConnectIdentityTokenConfigurationProperty openIdConnectIdentityTokenConfigurationProperty + * = OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration.html) + */ + public interface OpenIdConnectIdentityTokenConfigurationProperty { + /** + * The ID token audience, or client ID, claim values that you want to accept in your policy + * store from an OIDC identity provider. + * + * For example, `1example23456789, 2example10111213` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration-clientids) + */ + public fun clientIds(): List = unwrap(this).getClientIds() ?: emptyList() + + /** + * The claim that determines the principal in OIDC access tokens. + * + * For example, `sub` . + * + * Default: - "sub" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration-principalidclaim) + */ + public fun principalIdClaim(): String? = unwrap(this).getPrincipalIdClaim() + + /** + * A builder for [OpenIdConnectIdentityTokenConfigurationProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param clientIds The ID token audience, or client ID, claim values that you want to accept + * in your policy store from an OIDC identity provider. + * For example, `1example23456789, 2example10111213` . + */ + public fun clientIds(clientIds: List) + + /** + * @param clientIds The ID token audience, or client ID, claim values that you want to accept + * in your policy store from an OIDC identity provider. + * For example, `1example23456789, 2example10111213` . + */ + public fun clientIds(vararg clientIds: String) + + /** + * @param principalIdClaim The claim that determines the principal in OIDC access tokens. + * For example, `sub` . + */ + public fun principalIdClaim(principalIdClaim: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty.Builder + = + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty.builder() + + /** + * @param clientIds The ID token audience, or client ID, claim values that you want to accept + * in your policy store from an OIDC identity provider. + * For example, `1example23456789, 2example10111213` . + */ + override fun clientIds(clientIds: List) { + cdkBuilder.clientIds(clientIds) + } + + /** + * @param clientIds The ID token audience, or client ID, claim values that you want to accept + * in your policy store from an OIDC identity provider. + * For example, `1example23456789, 2example10111213` . + */ + override fun clientIds(vararg clientIds: String): Unit = clientIds(clientIds.toList()) + + /** + * @param principalIdClaim The claim that determines the principal in OIDC access tokens. + * For example, `sub` . + */ + override fun principalIdClaim(principalIdClaim: String) { + cdkBuilder.principalIdClaim(principalIdClaim) + } + + public fun build(): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty, + ) : CdkObject(cdkObject), + OpenIdConnectIdentityTokenConfigurationProperty { + /** + * The ID token audience, or client ID, claim values that you want to accept in your policy + * store from an OIDC identity provider. + * + * For example, `1example23456789, 2example10111213` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration-clientids) + */ + override fun clientIds(): List = unwrap(this).getClientIds() ?: emptyList() + + /** + * The claim that determines the principal in OIDC access tokens. + * + * For example, `sub` . + * + * Default: - "sub" + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration.html#cfn-verifiedpermissions-identitysource-openidconnectidentitytokenconfiguration-principalidclaim) + */ + override fun principalIdClaim(): String? = unwrap(this).getPrincipalIdClaim() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIdConnectIdentityTokenConfigurationProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty): + OpenIdConnectIdentityTokenConfigurationProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConnectIdentityTokenConfigurationProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConnectIdentityTokenConfigurationProperty): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty + } + } + + /** + * The token type that you want to process from your OIDC identity provider. + * + * Your policy store can process either identity (ID) or access tokens from a given OIDC identity + * source. + * + * This data type is part of a + * [OpenIdConnectConfiguration](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectConfiguration.html) + * structure, which is a parameter of + * [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) + * . + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.verifiedpermissions.*; + * OpenIdConnectTokenSelectionProperty openIdConnectTokenSelectionProperty = + * OpenIdConnectTokenSelectionProperty.builder() + * .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnecttokenselection.html) + */ + public interface OpenIdConnectTokenSelectionProperty { + /** + * The OIDC configuration for processing access tokens. + * + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim that + * you want to map to the principal, for example `sub` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnecttokenselection.html#cfn-verifiedpermissions-identitysource-openidconnecttokenselection-accesstokenonly) + */ + public fun accessTokenOnly(): Any? = unwrap(this).getAccessTokenOnly() + + /** + * The OIDC configuration for processing identity (ID) tokens. + * + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnecttokenselection.html#cfn-verifiedpermissions-identitysource-openidconnecttokenselection-identitytokenonly) + */ + public fun identityTokenOnly(): Any? = unwrap(this).getIdentityTokenOnly() + + /** + * A builder for [OpenIdConnectTokenSelectionProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + public fun accessTokenOnly(accessTokenOnly: IResolvable) + + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + public fun accessTokenOnly(accessTokenOnly: OpenIdConnectAccessTokenConfigurationProperty) + + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("aa3c9fa6856bb3ac117266e9947e89bc29d87d3b5bacbcc69c5542cc490b9b8d") + public + fun accessTokenOnly(accessTokenOnly: OpenIdConnectAccessTokenConfigurationProperty.Builder.() -> Unit) + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + public fun identityTokenOnly(identityTokenOnly: IResolvable) + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + public + fun identityTokenOnly(identityTokenOnly: OpenIdConnectIdentityTokenConfigurationProperty) + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("23e46a2c2cf78b04ec9460b66c4488ca2a170829b8ef6f0d157d5a7d140f1e22") + public + fun identityTokenOnly(identityTokenOnly: OpenIdConnectIdentityTokenConfigurationProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty.Builder + = + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty.builder() + + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + override fun accessTokenOnly(accessTokenOnly: IResolvable) { + cdkBuilder.accessTokenOnly(accessTokenOnly.let(IResolvable.Companion::unwrap)) + } + + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + override fun accessTokenOnly(accessTokenOnly: OpenIdConnectAccessTokenConfigurationProperty) { + cdkBuilder.accessTokenOnly(accessTokenOnly.let(OpenIdConnectAccessTokenConfigurationProperty.Companion::unwrap)) + } + + /** + * @param accessTokenOnly The OIDC configuration for processing access tokens. + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("aa3c9fa6856bb3ac117266e9947e89bc29d87d3b5bacbcc69c5542cc490b9b8d") + override + fun accessTokenOnly(accessTokenOnly: OpenIdConnectAccessTokenConfigurationProperty.Builder.() -> Unit): + Unit = accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty(accessTokenOnly)) + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + override fun identityTokenOnly(identityTokenOnly: IResolvable) { + cdkBuilder.identityTokenOnly(identityTokenOnly.let(IResolvable.Companion::unwrap)) + } + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + override + fun identityTokenOnly(identityTokenOnly: OpenIdConnectIdentityTokenConfigurationProperty) { + cdkBuilder.identityTokenOnly(identityTokenOnly.let(OpenIdConnectIdentityTokenConfigurationProperty.Companion::unwrap)) + } + + /** + * @param identityTokenOnly The OIDC configuration for processing identity (ID) tokens. + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("23e46a2c2cf78b04ec9460b66c4488ca2a170829b8ef6f0d157d5a7d140f1e22") + override + fun identityTokenOnly(identityTokenOnly: OpenIdConnectIdentityTokenConfigurationProperty.Builder.() -> Unit): + Unit = + identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty(identityTokenOnly)) + + public fun build(): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty + = cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty, + ) : CdkObject(cdkObject), + OpenIdConnectTokenSelectionProperty { + /** + * The OIDC configuration for processing access tokens. + * + * Contains allowed audience claims, for example `https://auth.example.com` , and the claim + * that you want to map to the principal, for example `sub` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnecttokenselection.html#cfn-verifiedpermissions-identitysource-openidconnecttokenselection-accesstokenonly) + */ + override fun accessTokenOnly(): Any? = unwrap(this).getAccessTokenOnly() + + /** + * The OIDC configuration for processing identity (ID) tokens. + * + * Contains allowed client ID claims, for example `1example23456789` , and the claim that you + * want to map to the principal, for example `sub` . + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-openidconnecttokenselection.html#cfn-verifiedpermissions-identitysource-openidconnecttokenselection-identitytokenonly) + */ + override fun identityTokenOnly(): Any? = unwrap(this).getIdentityTokenOnly() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): + OpenIdConnectTokenSelectionProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty): + OpenIdConnectTokenSelectionProperty = CdkObjectWrappers.wrap(cdkObject) as? + OpenIdConnectTokenSelectionProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: OpenIdConnectTokenSelectionProperty): + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty + = (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty + } + } } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySourceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySourceProps.kt index 949e58be61..b9ecc72360 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySourceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnIdentitySourceProps.kt @@ -30,6 +30,25 @@ import kotlin.jvm.JvmName * .groupEntityType("groupEntityType") * .build()) * .build()) + * .openIdConnectConfiguration(OpenIdConnectConfigurationProperty.builder() + * .issuer("issuer") + * .tokenSelection(OpenIdConnectTokenSelectionProperty.builder() + * .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() + * .audiences(List.of("audiences")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() + * .clientIds(List.of("clientIds")) + * .principalIdClaim("principalIdClaim") + * .build()) + * .build()) + * // the properties below are optional + * .entityIdPrefix("entityIdPrefix") + * .groupConfiguration(OpenIdConnectGroupConfigurationProperty.builder() + * .groupClaim("groupClaim") + * .groupEntityType("groupEntityType") + * .build()) + * .build()) * .build()) * .policyStoreId("policyStoreId") * // the properties below are optional @@ -41,7 +60,7 @@ import kotlin.jvm.JvmName */ public interface CfnIdentitySourceProps { /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) */ @@ -71,17 +90,20 @@ public interface CfnIdentitySourceProps { @CdkDslMarker public interface Builder { /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ public fun configuration(configuration: IResolvable) /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ public fun configuration(configuration: CfnIdentitySource.IdentitySourceConfigurationProperty) /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b629a9e57b120a7a975fd1c6bbec319e646a4f38b1564a226380c164c79c8c2f") @@ -109,14 +131,16 @@ public interface CfnIdentitySourceProps { software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySourceProps.builder() /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ override fun configuration(configuration: IResolvable) { cdkBuilder.configuration(configuration.let(IResolvable.Companion::unwrap)) } /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ override fun configuration(configuration: CfnIdentitySource.IdentitySourceConfigurationProperty) { @@ -124,7 +148,8 @@ public interface CfnIdentitySourceProps { } /** - * @param configuration Contains configuration information about an identity source. + * @param configuration Contains configuration information used when creating a new identity + * source. */ @kotlin.Suppress("INAPPLICABLE_JVM_NAME") @JvmName("b629a9e57b120a7a975fd1c6bbec319e646a4f38b1564a226380c164c79c8c2f") @@ -156,9 +181,10 @@ public interface CfnIdentitySourceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnIdentitySourceProps, - ) : CdkObject(cdkObject), CfnIdentitySourceProps { + ) : CdkObject(cdkObject), + CfnIdentitySourceProps { /** - * Contains configuration information about an identity source. + * Contains configuration information used when creating a new identity source. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicy.kt index a8537c1041..df79466fa4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicy.kt @@ -22,7 +22,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * You can create either a static policy or a policy linked to a policy template. * * You can directly update only static policies. To update a template-linked policy, you must update - * it's linked policy template instead. + * its linked policy template instead. * * * To create a static policy, in the `Definition` include a `Static` element that includes the * Cedar policy text in the `Statement` element. @@ -82,7 +82,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicy( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -376,7 +377,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.EntityIdentifierProperty, - ) : CdkObject(cdkObject), EntityIdentifierProperty { + ) : CdkObject(cdkObject), + EntityIdentifierProperty { /** * The identifier of an entity. * @@ -610,7 +612,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.PolicyDefinitionProperty, - ) : CdkObject(cdkObject), PolicyDefinitionProperty { + ) : CdkObject(cdkObject), + PolicyDefinitionProperty { /** * A structure that describes a static policy. * @@ -730,7 +733,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.StaticPolicyDefinitionProperty, - ) : CdkObject(cdkObject), StaticPolicyDefinitionProperty { + ) : CdkObject(cdkObject), + StaticPolicyDefinitionProperty { /** * The description of the static policy. * @@ -958,7 +962,8 @@ public open class CfnPolicy( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty, - ) : CdkObject(cdkObject), TemplateLinkedPolicyDefinitionProperty { + ) : CdkObject(cdkObject), + TemplateLinkedPolicyDefinitionProperty { /** * The unique identifier of the policy template used to create this policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyProps.kt index 6f4ed76796..6be6f8cd28 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyProps.kt @@ -145,7 +145,8 @@ public interface CfnPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyProps, - ) : CdkObject(cdkObject), CfnPolicyProps { + ) : CdkObject(cdkObject), + CfnPolicyProps { /** * Specifies the policy type and content to use for the new or updated policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStore.kt index b1b5374653..89ecdb9fb5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStore.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicyStore( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStore, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -454,8 +455,8 @@ public open class CfnPolicyStore( * store. * * For more information, see [Policy store - * schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the - * *Amazon Verified Permissions User Guide* . + * schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the AVP + * User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-policystore-schemadefinition.html#cfn-verifiedpermissions-policystore-schemadefinition-cedarjson) */ @@ -471,7 +472,7 @@ public open class CfnPolicyStore( * use this policy store. * For more information, see [Policy store * schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the - * *Amazon Verified Permissions User Guide* . + * AVP User Guide. */ public fun cedarJson(cedarJson: String) } @@ -487,7 +488,7 @@ public open class CfnPolicyStore( * use this policy store. * For more information, see [Policy store * schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the - * *Amazon Verified Permissions User Guide* . + * AVP User Guide. */ override fun cedarJson(cedarJson: String) { cdkBuilder.cedarJson(cedarJson) @@ -500,14 +501,15 @@ public open class CfnPolicyStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStore.SchemaDefinitionProperty, - ) : CdkObject(cdkObject), SchemaDefinitionProperty { + ) : CdkObject(cdkObject), + SchemaDefinitionProperty { /** * A JSON string representation of the schema supported by applications that use this policy * store. * * For more information, see [Policy store * schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the - * *Amazon Verified Permissions User Guide* . + * AVP User Guide. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-policystore-schemadefinition.html#cfn-verifiedpermissions-policystore-schemadefinition-cedarjson) */ @@ -631,7 +633,8 @@ public open class CfnPolicyStore( private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStore.ValidationSettingsProperty, - ) : CdkObject(cdkObject), ValidationSettingsProperty { + ) : CdkObject(cdkObject), + ValidationSettingsProperty { /** * The validation mode currently configured for this policy store. The valid values are:. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStoreProps.kt index 57c1a8661f..554e0f65ae 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyStoreProps.kt @@ -268,7 +268,8 @@ public interface CfnPolicyStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStoreProps, - ) : CdkObject(cdkObject), CfnPolicyStoreProps { + ) : CdkObject(cdkObject), + CfnPolicyStoreProps { /** * Descriptive text that you can provide to help with identification of the current policy * store. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplate.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplate.kt index bc89b04a72..0610238bf7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplate.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplate.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPolicyTemplate( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyTemplate, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplateProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplateProps.kt index 73a9aa1c1d..4356a8da32 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplateProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/verifiedpermissions/CfnPolicyTemplateProps.kt @@ -105,7 +105,8 @@ public interface CfnPolicyTemplateProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.verifiedpermissions.CfnPolicyTemplateProps, - ) : CdkObject(cdkObject), CfnPolicyTemplateProps { + ) : CdkObject(cdkObject), + CfnPolicyTemplateProps { /** * The description to attach to the new or updated policy template. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomain.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomain.kt index b8071dfa45..87640b0060 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomain.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomain.kt @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnDomain( cdkObject: software.amazon.awscdk.services.voiceid.CfnDomain, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -403,7 +405,8 @@ public open class CfnDomain( private class Wrapper( cdkObject: software.amazon.awscdk.services.voiceid.CfnDomain.ServerSideEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionConfigurationProperty { /** * The identifier of the KMS key to use to encrypt data stored by Voice ID. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomainProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomainProps.kt index b25d3deb3d..39572d9dce 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomainProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/voiceid/CfnDomainProps.kt @@ -179,7 +179,8 @@ public interface CfnDomainProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.voiceid.CfnDomainProps, - ) : CdkObject(cdkObject), CfnDomainProps { + ) : CdkObject(cdkObject), + CfnDomainProps { /** * The description of the domain. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscription.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscription.kt index aab8b41f1f..69a3e558ea 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscription.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscription.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAccessLogSubscription( cdkObject: software.amazon.awscdk.services.vpclattice.CfnAccessLogSubscription, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscriptionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscriptionProps.kt index 86527c952b..90a6b17631 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscriptionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAccessLogSubscriptionProps.kt @@ -127,7 +127,8 @@ public interface CfnAccessLogSubscriptionProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnAccessLogSubscriptionProps, - ) : CdkObject(cdkObject), CfnAccessLogSubscriptionProps { + ) : CdkObject(cdkObject), + CfnAccessLogSubscriptionProps { /** * The Amazon Resource Name (ARN) of the destination. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicy.kt index f172af979e..c4aac60827 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicy.kt @@ -37,7 +37,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAuthPolicy( cdkObject: software.amazon.awscdk.services.vpclattice.CfnAuthPolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicyProps.kt index 7b26fd3a54..0c7b7223f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnAuthPolicyProps.kt @@ -85,7 +85,8 @@ public interface CfnAuthPolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnAuthPolicyProps, - ) : CdkObject(cdkObject), CfnAuthPolicyProps { + ) : CdkObject(cdkObject), + CfnAuthPolicyProps { /** * The auth policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListener.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListener.kt index d0ac098e4a..99ab9c3603 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListener.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListener.kt @@ -64,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnListener( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListener, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -586,7 +588,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListener.DefaultActionProperty, - ) : CdkObject(cdkObject), DefaultActionProperty { + ) : CdkObject(cdkObject), + DefaultActionProperty { /** * Describes an action that returns a custom HTTP response. * @@ -676,7 +679,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListener.FixedResponseProperty, - ) : CdkObject(cdkObject), FixedResponseProperty { + ) : CdkObject(cdkObject), + FixedResponseProperty { /** * The HTTP response code. * @@ -842,7 +846,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListener.ForwardProperty, - ) : CdkObject(cdkObject), ForwardProperty { + ) : CdkObject(cdkObject), + ForwardProperty { /** * The target groups. * @@ -970,7 +975,8 @@ public open class CfnListener( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListener.WeightedTargetGroupProperty, - ) : CdkObject(cdkObject), WeightedTargetGroupProperty { + ) : CdkObject(cdkObject), + WeightedTargetGroupProperty { /** * The ID of the target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListenerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListenerProps.kt index 30071e56e9..3522d2caa3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListenerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnListenerProps.kt @@ -251,7 +251,8 @@ public interface CfnListenerProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnListenerProps, - ) : CdkObject(cdkObject), CfnListenerProps { + ) : CdkObject(cdkObject), + CfnListenerProps { /** * The action for the default rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicy.kt index a43e79319a..c658080fca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicy.kt @@ -36,7 +36,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.vpclattice.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicyProps.kt index 406bea084d..c68eb54c35 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnResourcePolicyProps.kt @@ -83,7 +83,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * The Amazon Resource Name (ARN) of the service network or service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRule.kt index 054c2d2ae1..59364e65bf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRule.kt @@ -89,7 +89,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRule( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -674,7 +676,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * The fixed response action. * @@ -764,7 +767,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.FixedResponseProperty, - ) : CdkObject(cdkObject), FixedResponseProperty { + ) : CdkObject(cdkObject), + FixedResponseProperty { /** * The HTTP response code. * @@ -930,7 +934,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.ForwardProperty, - ) : CdkObject(cdkObject), ForwardProperty { + ) : CdkObject(cdkObject), + ForwardProperty { /** * The target groups. * @@ -1106,7 +1111,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.HeaderMatchProperty, - ) : CdkObject(cdkObject), HeaderMatchProperty { + ) : CdkObject(cdkObject), + HeaderMatchProperty { /** * Indicates whether the match is case sensitive. * @@ -1246,7 +1252,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.HeaderMatchTypeProperty, - ) : CdkObject(cdkObject), HeaderMatchTypeProperty { + ) : CdkObject(cdkObject), + HeaderMatchTypeProperty { /** * A contains type match. * @@ -1463,7 +1470,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.HttpMatchProperty, - ) : CdkObject(cdkObject), HttpMatchProperty { + ) : CdkObject(cdkObject), + HttpMatchProperty { /** * The header matches. * @@ -1607,7 +1615,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.MatchProperty, - ) : CdkObject(cdkObject), MatchProperty { + ) : CdkObject(cdkObject), + MatchProperty { /** * The HTTP criteria that a rule must match. * @@ -1750,7 +1759,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.PathMatchProperty, - ) : CdkObject(cdkObject), PathMatchProperty { + ) : CdkObject(cdkObject), + PathMatchProperty { /** * Indicates whether the match is case sensitive. * @@ -1861,7 +1871,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.PathMatchTypeProperty, - ) : CdkObject(cdkObject), PathMatchTypeProperty { + ) : CdkObject(cdkObject), + PathMatchTypeProperty { /** * An exact match of the path. * @@ -1986,7 +1997,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRule.WeightedTargetGroupProperty, - ) : CdkObject(cdkObject), WeightedTargetGroupProperty { + ) : CdkObject(cdkObject), + WeightedTargetGroupProperty { /** * The ID of the target group. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRuleProps.kt index fee9c77b61..4a3c507cd8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnRuleProps.kt @@ -309,7 +309,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * Describes the action for a rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnService.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnService.kt index a7d9be1acf..77278aab1f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnService.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnService.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnService( cdkObject: software.amazon.awscdk.services.vpclattice.CfnService, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.vpclattice.CfnService(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -516,7 +518,8 @@ public open class CfnService( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnService.DnsEntryProperty, - ) : CdkObject(cdkObject), DnsEntryProperty { + ) : CdkObject(cdkObject), + DnsEntryProperty { /** * The domain name of the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetwork.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetwork.kt index fce3de9fdd..b7f7a621e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetwork.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetwork.kt @@ -46,7 +46,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceNetwork( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetwork, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.vpclattice.CfnServiceNetwork(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkProps.kt index b65d8153cd..545fd1e8a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkProps.kt @@ -144,7 +144,8 @@ public interface CfnServiceNetworkProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkProps, - ) : CdkObject(cdkObject), CfnServiceNetworkProps { + ) : CdkObject(cdkObject), + CfnServiceNetworkProps { /** * The type of IAM policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociation.kt index cd6b6586fe..e36f2d72f9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociation.kt @@ -62,7 +62,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceNetworkServiceAssociation( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkServiceAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.vpclattice.CfnServiceNetworkServiceAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -477,7 +479,8 @@ public open class CfnServiceNetworkServiceAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkServiceAssociation.DnsEntryProperty, - ) : CdkObject(cdkObject), DnsEntryProperty { + ) : CdkObject(cdkObject), + DnsEntryProperty { /** * The domain name of the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociationProps.kt index 1792f4d8e3..4c4d281c76 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkServiceAssociationProps.kt @@ -178,7 +178,8 @@ public interface CfnServiceNetworkServiceAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkServiceAssociationProps, - ) : CdkObject(cdkObject), CfnServiceNetworkServiceAssociationProps { + ) : CdkObject(cdkObject), + CfnServiceNetworkServiceAssociationProps { /** * The DNS information of the service. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociation.kt index 38b793ae89..ab61ca7654 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociation.kt @@ -57,7 +57,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnServiceNetworkVpcAssociation( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociation(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociationProps.kt index 69aed3f526..9522f9baaf 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceNetworkVpcAssociationProps.kt @@ -179,7 +179,8 @@ public interface CfnServiceNetworkVpcAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociationProps, - ) : CdkObject(cdkObject), CfnServiceNetworkVpcAssociationProps { + ) : CdkObject(cdkObject), + CfnServiceNetworkVpcAssociationProps { /** * The IDs of the security groups. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceProps.kt index 9127c1311d..ce30fbe99d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnServiceProps.kt @@ -236,7 +236,8 @@ public interface CfnServiceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnServiceProps, - ) : CdkObject(cdkObject), CfnServiceProps { + ) : CdkObject(cdkObject), + CfnServiceProps { /** * The type of IAM policy. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroup.kt index bac2ae6431..cdcb473fb6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroup.kt @@ -80,7 +80,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTargetGroup( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -787,7 +789,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroup.HealthCheckConfigProperty, - ) : CdkObject(cdkObject), HealthCheckConfigProperty { + ) : CdkObject(cdkObject), + HealthCheckConfigProperty { /** * Indicates whether health checking is enabled. * @@ -955,7 +958,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroup.MatcherProperty, - ) : CdkObject(cdkObject), MatcherProperty { + ) : CdkObject(cdkObject), + MatcherProperty { /** * The HTTP code to use when checking for a successful response from a target. * @@ -1246,7 +1250,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroup.TargetGroupConfigProperty, - ) : CdkObject(cdkObject), TargetGroupConfigProperty { + ) : CdkObject(cdkObject), + TargetGroupConfigProperty { /** * The health check configuration. * @@ -1426,7 +1431,8 @@ public open class CfnTargetGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroup.TargetProperty, - ) : CdkObject(cdkObject), TargetProperty { + ) : CdkObject(cdkObject), + TargetProperty { /** * The ID of the target. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroupProps.kt index b43338fb37..f50da15ca6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/vpclattice/CfnTargetGroupProps.kt @@ -249,7 +249,8 @@ public interface CfnTargetGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.vpclattice.CfnTargetGroupProps, - ) : CdkObject(cdkObject), CfnTargetGroupProps { + ) : CdkObject(cdkObject), + CfnTargetGroupProps { /** * The target group configuration. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSet.kt index 429913adba..72aa0d8fab 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSet.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnByteMatchSet( cdkObject: software.amazon.awscdk.services.waf.CfnByteMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -859,7 +860,8 @@ public open class CfnByteMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnByteMatchSet.ByteMatchTupleProperty, - ) : CdkObject(cdkObject), ByteMatchTupleProperty { + ) : CdkObject(cdkObject), + ByteMatchTupleProperty { /** * The part of a web request that you want to inspect, such as a specified header or a query * string. @@ -1232,7 +1234,8 @@ public open class CfnByteMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnByteMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSetProps.kt index c163235c8d..41592f3810 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnByteMatchSetProps.kt @@ -136,7 +136,8 @@ public interface CfnByteMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnByteMatchSetProps, - ) : CdkObject(cdkObject), CfnByteMatchSetProps { + ) : CdkObject(cdkObject), + CfnByteMatchSetProps { /** * Specifies the bytes (typically a string that corresponds with ASCII characters) that you want * AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSet.kt index e97f8fc772..5bd4629b9c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSet.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPSet( cdkObject: software.amazon.awscdk.services.waf.CfnIPSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -412,7 +413,8 @@ public open class CfnIPSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnIPSet.IPSetDescriptorProperty, - ) : CdkObject(cdkObject), IPSetDescriptorProperty { + ) : CdkObject(cdkObject), + IPSetDescriptorProperty { /** * Specify `IPV4` or `IPV6` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSetProps.kt index ad10641d4a..f65ea971f0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnIPSetProps.kt @@ -141,7 +141,8 @@ public interface CfnIPSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnIPSetProps, - ) : CdkObject(cdkObject), CfnIPSetProps { + ) : CdkObject(cdkObject), + CfnIPSetProps { /** * The IP address type ( `IPV4` or `IPV6` ) and the IP address range (in CIDR notation) that web * requests originate from. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRule.kt index 776cc562e9..588816a83c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRule.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRule( cdkObject: software.amazon.awscdk.services.waf.CfnRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -471,7 +472,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnRule.PredicateProperty, - ) : CdkObject(cdkObject), PredicateProperty { + ) : CdkObject(cdkObject), + PredicateProperty { /** * A unique identifier for a predicate in a `Rule` , such as `ByteMatchSetId` or `IPSetId` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRuleProps.kt index 533bca4fcc..e840bf55b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnRuleProps.kt @@ -158,7 +158,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * The name of the metrics for this `Rule` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSet.kt index 4a34a02e9b..b5e298206d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSet.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSizeConstraintSet( cdkObject: software.amazon.awscdk.services.waf.CfnSizeConstraintSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -407,7 +408,8 @@ public open class CfnSizeConstraintSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSizeConstraintSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -897,7 +899,8 @@ public open class CfnSizeConstraintSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSizeConstraintSet.SizeConstraintProperty, - ) : CdkObject(cdkObject), SizeConstraintProperty { + ) : CdkObject(cdkObject), + SizeConstraintProperty { /** * The type of comparison you want AWS WAF to perform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSetProps.kt index 00bd68dc77..c64e57c164 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSizeConstraintSetProps.kt @@ -115,7 +115,8 @@ public interface CfnSizeConstraintSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSizeConstraintSetProps, - ) : CdkObject(cdkObject), CfnSizeConstraintSetProps { + ) : CdkObject(cdkObject), + CfnSizeConstraintSetProps { /** * The name, if any, of the `SizeConstraintSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSet.kt index 1f18e575c5..4149c5101b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSet.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSqlInjectionMatchSet( cdkObject: software.amazon.awscdk.services.waf.CfnSqlInjectionMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -424,7 +425,8 @@ public open class CfnSqlInjectionMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSqlInjectionMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -786,7 +788,8 @@ public open class CfnSqlInjectionMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSqlInjectionMatchSet.SqlInjectionMatchTupleProperty, - ) : CdkObject(cdkObject), SqlInjectionMatchTupleProperty { + ) : CdkObject(cdkObject), + SqlInjectionMatchTupleProperty { /** * The part of a web request that you want to inspect, such as a specified header or a query * string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSetProps.kt index 533f267ed5..1b9b34eef7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnSqlInjectionMatchSetProps.kt @@ -122,7 +122,8 @@ public interface CfnSqlInjectionMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnSqlInjectionMatchSetProps, - ) : CdkObject(cdkObject), CfnSqlInjectionMatchSetProps { + ) : CdkObject(cdkObject), + CfnSqlInjectionMatchSetProps { /** * The name, if any, of the `SqlInjectionMatchSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACL.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACL.kt index cc692fd7e2..d6c4642484 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACL.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACL.kt @@ -67,7 +67,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebACL( cdkObject: software.amazon.awscdk.services.waf.CfnWebACL, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -631,7 +632,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnWebACL.ActivatedRuleProperty, - ) : CdkObject(cdkObject), ActivatedRuleProperty { + ) : CdkObject(cdkObject), + ActivatedRuleProperty { /** * Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the * conditions in the `Rule` . @@ -785,7 +787,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnWebACL.WafActionProperty, - ) : CdkObject(cdkObject), WafActionProperty { + ) : CdkObject(cdkObject), + WafActionProperty { /** * Specifies how you want AWS WAF to respond to requests that match the settings in a `Rule` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACLProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACLProps.kt index 13f439cbef..03d1243ee9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACLProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnWebACLProps.kt @@ -219,7 +219,8 @@ public interface CfnWebACLProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnWebACLProps, - ) : CdkObject(cdkObject), CfnWebACLProps { + ) : CdkObject(cdkObject), + CfnWebACLProps { /** * The action to perform if none of the `Rules` contained in the `WebACL` match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSet.kt index b810e82b8e..48b4cf8122 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSet.kt @@ -59,7 +59,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnXssMatchSet( cdkObject: software.amazon.awscdk.services.waf.CfnXssMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -414,7 +415,8 @@ public open class CfnXssMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnXssMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -773,7 +775,8 @@ public open class CfnXssMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnXssMatchSet.XssMatchTupleProperty, - ) : CdkObject(cdkObject), XssMatchTupleProperty { + ) : CdkObject(cdkObject), + XssMatchTupleProperty { /** * The part of a web request that you want to inspect, such as a specified header or a query * string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSetProps.kt index 43ffd921ab..cd63fcfb2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/CfnXssMatchSetProps.kt @@ -118,7 +118,8 @@ public interface CfnXssMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.CfnXssMatchSetProps, - ) : CdkObject(cdkObject), CfnXssMatchSetProps { + ) : CdkObject(cdkObject), + CfnXssMatchSetProps { /** * The name, if any, of the `XssMatchSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSet.kt index 1944e2c048..e84bbae89f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSet.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnByteMatchSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnByteMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -858,7 +859,8 @@ public open class CfnByteMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnByteMatchSet.ByteMatchTupleProperty, - ) : CdkObject(cdkObject), ByteMatchTupleProperty { + ) : CdkObject(cdkObject), + ByteMatchTupleProperty { /** * The part of a web request that you want AWS WAF to inspect, such as a specific header or a * query string. @@ -1229,7 +1231,8 @@ public open class CfnByteMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnByteMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSetProps.kt index 051fd69c2b..f74a3238db 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnByteMatchSetProps.kt @@ -137,7 +137,8 @@ public interface CfnByteMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnByteMatchSetProps, - ) : CdkObject(cdkObject), CfnByteMatchSetProps { + ) : CdkObject(cdkObject), + CfnByteMatchSetProps { /** * Specifies the bytes (typically a string that corresponds with ASCII characters) that you want * AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSet.kt index 433736926f..de06a63a8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSet.kt @@ -51,7 +51,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGeoMatchSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnGeoMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -339,7 +340,8 @@ public open class CfnGeoMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnGeoMatchSet.GeoMatchConstraintProperty, - ) : CdkObject(cdkObject), GeoMatchConstraintProperty { + ) : CdkObject(cdkObject), + GeoMatchConstraintProperty { /** * The type of geographical area you want AWS WAF to search for. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSetProps.kt index a4e7dfb02b..72b11fc772 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnGeoMatchSetProps.kt @@ -121,7 +121,8 @@ public interface CfnGeoMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnGeoMatchSetProps, - ) : CdkObject(cdkObject), CfnGeoMatchSetProps { + ) : CdkObject(cdkObject), + CfnGeoMatchSetProps { /** * An array of `GeoMatchConstraint` objects, which contain the country that you want AWS WAF to * search for. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSet.kt index e06f0a913c..701fdc09af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSet.kt @@ -58,7 +58,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnIPSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -389,7 +390,8 @@ public open class CfnIPSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnIPSet.IPSetDescriptorProperty, - ) : CdkObject(cdkObject), IPSetDescriptorProperty { + ) : CdkObject(cdkObject), + IPSetDescriptorProperty { /** * Specify `IPV4` or `IPV6` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSetProps.kt index c81d2192e6..01ee895894 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnIPSetProps.kt @@ -120,7 +120,8 @@ public interface CfnIPSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnIPSetProps, - ) : CdkObject(cdkObject), CfnIPSetProps { + ) : CdkObject(cdkObject), + CfnIPSetProps { /** * The IP address type ( `IPV4` or `IPV6` ) and the IP address range (in CIDR notation) that web * requests originate from. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRule.kt index f7ff1944e8..8b3b70f247 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRule.kt @@ -73,7 +73,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRateBasedRule( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRateBasedRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -569,7 +570,8 @@ public open class CfnRateBasedRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRateBasedRule.PredicateProperty, - ) : CdkObject(cdkObject), PredicateProperty { + ) : CdkObject(cdkObject), + PredicateProperty { /** * A unique identifier for a predicate in a `Rule` , such as `ByteMatchSetId` or `IPSetId` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRuleProps.kt index db038018a9..4d5e2348e9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRateBasedRuleProps.kt @@ -223,7 +223,8 @@ public interface CfnRateBasedRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRateBasedRuleProps, - ) : CdkObject(cdkObject), CfnRateBasedRuleProps { + ) : CdkObject(cdkObject), + CfnRateBasedRuleProps { /** * The `Predicates` object contains one `Predicate` element for each `ByteMatchSet` , `IPSet` , * or `SqlInjectionMatchSet>` object that you want to include in a `RateBasedRule` . diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSet.kt index 4bbfa34a8d..196add4788 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSet.kt @@ -41,7 +41,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegexPatternSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRegexPatternSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSetProps.kt index 84208b1019..ea0fa001d1 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRegexPatternSetProps.kt @@ -102,7 +102,8 @@ public interface CfnRegexPatternSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRegexPatternSetProps, - ) : CdkObject(cdkObject), CfnRegexPatternSetProps { + ) : CdkObject(cdkObject), + CfnRegexPatternSetProps { /** * A friendly name or description of the `RegexPatternSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRule.kt index 7e5c750890..1428561f1e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRule.kt @@ -64,7 +64,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRule( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRule, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -472,7 +473,8 @@ public open class CfnRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRule.PredicateProperty, - ) : CdkObject(cdkObject), PredicateProperty { + ) : CdkObject(cdkObject), + PredicateProperty { /** * A unique identifier for a predicate in a `Rule` , such as `ByteMatchSetId` or `IPSetId` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRuleProps.kt index d1c2fe93b7..90a2a13120 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnRuleProps.kt @@ -159,7 +159,8 @@ public interface CfnRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnRuleProps, - ) : CdkObject(cdkObject), CfnRuleProps { + ) : CdkObject(cdkObject), + CfnRuleProps { /** * A name for the metrics for this `Rule` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSet.kt index f6b63859e2..d407772fb8 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSet.kt @@ -62,7 +62,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSizeConstraintSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSizeConstraintSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -407,7 +408,8 @@ public open class CfnSizeConstraintSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSizeConstraintSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -897,7 +899,8 @@ public open class CfnSizeConstraintSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSizeConstraintSet.SizeConstraintProperty, - ) : CdkObject(cdkObject), SizeConstraintProperty { + ) : CdkObject(cdkObject), + SizeConstraintProperty { /** * The type of comparison you want AWS WAF to perform. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSetProps.kt index 9f9cc255a5..cb391c902d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSizeConstraintSetProps.kt @@ -117,7 +117,8 @@ public interface CfnSizeConstraintSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSizeConstraintSetProps, - ) : CdkObject(cdkObject), CfnSizeConstraintSetProps { + ) : CdkObject(cdkObject), + CfnSizeConstraintSetProps { /** * The name, if any, of the `SizeConstraintSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSet.kt index 8cf7812aca..fc86cf1d9e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSet.kt @@ -61,7 +61,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSqlInjectionMatchSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSqlInjectionMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -425,7 +426,8 @@ public open class CfnSqlInjectionMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSqlInjectionMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -786,7 +788,8 @@ public open class CfnSqlInjectionMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSqlInjectionMatchSet.SqlInjectionMatchTupleProperty, - ) : CdkObject(cdkObject), SqlInjectionMatchTupleProperty { + ) : CdkObject(cdkObject), + SqlInjectionMatchTupleProperty { /** * The part of a web request that you want AWS WAF to inspect, such as a specific header or a * query string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSetProps.kt index 34905c36c6..448b1c502a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnSqlInjectionMatchSetProps.kt @@ -123,7 +123,8 @@ public interface CfnSqlInjectionMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnSqlInjectionMatchSetProps, - ) : CdkObject(cdkObject), CfnSqlInjectionMatchSetProps { + ) : CdkObject(cdkObject), + CfnSqlInjectionMatchSetProps { /** * The name, if any, of the `SqlInjectionMatchSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACL.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACL.kt index 104f09d683..42ef302606 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACL.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACL.kt @@ -67,7 +67,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebACL( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACL, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -490,7 +491,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACL.ActionProperty, - ) : CdkObject(cdkObject), ActionProperty { + ) : CdkObject(cdkObject), + ActionProperty { /** * For actions that are associated with a rule, the action that AWS WAF takes when a web * request matches all conditions in a rule. @@ -679,7 +681,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACL.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The action that AWS WAF takes when a web request matches all conditions in the rule, such * as allow, block, or count the request. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociation.kt index d6bdf8235c..96045e1be7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociation.kt @@ -44,7 +44,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebACLAssociation( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACLAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociationProps.kt index 1d8b6e7cb5..900d0b8e51 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLAssociationProps.kt @@ -83,7 +83,8 @@ public interface CfnWebACLAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACLAssociationProps, - ) : CdkObject(cdkObject), CfnWebACLAssociationProps { + ) : CdkObject(cdkObject), + CfnWebACLAssociationProps { /** * The Amazon Resource Name (ARN) of the resource to protect with the web ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLProps.kt index 16663008f5..63005c42b5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnWebACLProps.kt @@ -219,7 +219,8 @@ public interface CfnWebACLProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnWebACLProps, - ) : CdkObject(cdkObject), CfnWebACLProps { + ) : CdkObject(cdkObject), + CfnWebACLProps { /** * The action to perform if none of the `Rules` contained in the `WebACL` match. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSet.kt index eefc2d5f91..1dfe4947c3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSet.kt @@ -60,7 +60,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnXssMatchSet( cdkObject: software.amazon.awscdk.services.waf.regional.CfnXssMatchSet, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -415,7 +416,8 @@ public open class CfnXssMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnXssMatchSet.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * When the value of `Type` is `HEADER` , enter the name of the header that you want AWS WAF * to search, for example, `User-Agent` or `Referer` . @@ -775,7 +777,8 @@ public open class CfnXssMatchSet( private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnXssMatchSet.XssMatchTupleProperty, - ) : CdkObject(cdkObject), XssMatchTupleProperty { + ) : CdkObject(cdkObject), + XssMatchTupleProperty { /** * The part of a web request that you want AWS WAF to inspect, such as a specified header or a * query string. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSetProps.kt index eeaebca580..e40488fa10 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/waf/regional/CfnXssMatchSetProps.kt @@ -120,7 +120,8 @@ public interface CfnXssMatchSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.waf.regional.CfnXssMatchSetProps, - ) : CdkObject(cdkObject), CfnXssMatchSetProps { + ) : CdkObject(cdkObject), + CfnXssMatchSetProps { /** * The name, if any, of the `XssMatchSet` . * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSet.kt index 5355e4e118..7c76db16c7 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSet.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIPSet( cdkObject: software.amazon.awscdk.services.wafv2.CfnIPSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSetProps.kt index 1ba4675826..754e50b7b4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnIPSetProps.kt @@ -376,7 +376,8 @@ public interface CfnIPSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnIPSetProps, - ) : CdkObject(cdkObject), CfnIPSetProps { + ) : CdkObject(cdkObject), + CfnIPSetProps { /** * Contains an array of strings that specifies zero or more IP addresses or blocks of IP * addresses that you want AWS WAF to inspect for in incoming requests. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfiguration.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfiguration.kt index f5e8e2449f..41f8910724 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfiguration.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfiguration.kt @@ -84,7 +84,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnLoggingConfiguration( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -538,7 +539,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.ActionConditionProperty, - ) : CdkObject(cdkObject), ActionConditionProperty { + ) : CdkObject(cdkObject), + ActionConditionProperty { /** * The action setting that a log record must contain in order to meet the condition. * @@ -735,7 +737,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.ConditionProperty, - ) : CdkObject(cdkObject), ConditionProperty { + ) : CdkObject(cdkObject), + ConditionProperty { /** * A single action condition. * @@ -953,7 +956,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-jsonbody) */ @@ -1149,7 +1153,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.FilterProperty, - ) : CdkObject(cdkObject), FilterProperty { + ) : CdkObject(cdkObject), + FilterProperty { /** * How to handle logs that satisfy the filter's conditions and requirement. * @@ -1311,7 +1316,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.JsonBodyProperty, - ) : CdkObject(cdkObject), JsonBodyProperty { + ) : CdkObject(cdkObject), + JsonBodyProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html#cfn-wafv2-loggingconfiguration-jsonbody-invalidfallbackbehavior) */ @@ -1413,7 +1419,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.LabelNameConditionProperty, - ) : CdkObject(cdkObject), LabelNameConditionProperty { + ) : CdkObject(cdkObject), + LabelNameConditionProperty { /** * The label name that a log record must contain in order to meet the condition. * @@ -1558,7 +1565,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.LoggingFilterProperty, - ) : CdkObject(cdkObject), LoggingFilterProperty { + ) : CdkObject(cdkObject), + LoggingFilterProperty { /** * Default handling for logs that don't match any of the specified filtering conditions. * @@ -1673,7 +1681,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.MatchPatternProperty, - ) : CdkObject(cdkObject), MatchPatternProperty { + ) : CdkObject(cdkObject), + MatchPatternProperty { /** * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-matchpattern.html#cfn-wafv2-loggingconfiguration-matchpattern-all) */ @@ -1768,7 +1777,8 @@ public open class CfnLoggingConfiguration( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.SingleHeaderProperty, - ) : CdkObject(cdkObject), SingleHeaderProperty { + ) : CdkObject(cdkObject), + SingleHeaderProperty { /** * The name of the query header to inspect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfigurationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfigurationProps.kt index 870593e66d..3acf8771af 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfigurationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnLoggingConfigurationProps.kt @@ -285,7 +285,8 @@ public interface CfnLoggingConfigurationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnLoggingConfigurationProps, - ) : CdkObject(cdkObject), CfnLoggingConfigurationProps { + ) : CdkObject(cdkObject), + CfnLoggingConfigurationProps { /** * The logging destination configuration that you want to associate with the web ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSet.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSet.kt index 3b55a0d001..ac545458da 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSet.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSet.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRegexPatternSet( cdkObject: software.amazon.awscdk.services.wafv2.CfnRegexPatternSet, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSetProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSetProps.kt index b1fa30fd29..25d3c5ee8a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSetProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRegexPatternSetProps.kt @@ -233,7 +233,8 @@ public interface CfnRegexPatternSetProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRegexPatternSetProps, - ) : CdkObject(cdkObject), CfnRegexPatternSetProps { + ) : CdkObject(cdkObject), + CfnRegexPatternSetProps { /** * A description of the set that helps with identification. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroup.kt index fb0e6d8eab..aeae03deb3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroup.kt @@ -501,7 +501,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnRuleGroup( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1432,7 +1434,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.AllowProperty, - ) : CdkObject(cdkObject), AllowProperty { + ) : CdkObject(cdkObject), + AllowProperty { /** * Custom request handling. * @@ -1930,7 +1933,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.AndStatementProperty, - ) : CdkObject(cdkObject), AndStatementProperty { + ) : CdkObject(cdkObject), + AndStatementProperty { /** * The statements to combine with AND logic. * @@ -2047,7 +2051,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.BlockProperty, - ) : CdkObject(cdkObject), BlockProperty { + ) : CdkObject(cdkObject), + BlockProperty { /** * Custom response. * @@ -2197,7 +2202,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.BodyProperty, - ) : CdkObject(cdkObject), BodyProperty { + ) : CdkObject(cdkObject), + BodyProperty { /** * What AWS WAF should do if the body is larger than AWS WAF can inspect. * @@ -2669,7 +2675,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.ByteMatchStatementProperty, - ) : CdkObject(cdkObject), ByteMatchStatementProperty { + ) : CdkObject(cdkObject), + ByteMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -2876,7 +2883,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CaptchaConfigProperty, - ) : CdkObject(cdkObject), CaptchaConfigProperty { + ) : CdkObject(cdkObject), + CaptchaConfigProperty { /** * Determines how long a `CAPTCHA` timestamp in the token remains valid after the client * successfully solves a `CAPTCHA` puzzle. @@ -2991,7 +2999,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CaptchaProperty, - ) : CdkObject(cdkObject), CaptchaProperty { + ) : CdkObject(cdkObject), + CaptchaProperty { /** * Custom request handling. * @@ -3110,7 +3119,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.ChallengeConfigProperty, - ) : CdkObject(cdkObject), ChallengeConfigProperty { + ) : CdkObject(cdkObject), + ChallengeConfigProperty { /** * Determines how long a challenge timestamp in the token remains valid after the client * successfully responds to a challenge. @@ -3226,7 +3236,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.ChallengeProperty, - ) : CdkObject(cdkObject), ChallengeProperty { + ) : CdkObject(cdkObject), + ChallengeProperty { /** * Custom request handling. * @@ -3382,7 +3393,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CookieMatchPatternProperty, - ) : CdkObject(cdkObject), CookieMatchPatternProperty { + ) : CdkObject(cdkObject), + CookieMatchPatternProperty { /** * Inspect all cookies. * @@ -3650,7 +3662,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CookiesProperty, - ) : CdkObject(cdkObject), CookiesProperty { + ) : CdkObject(cdkObject), + CookiesProperty { /** * The filter to use to identify the subset of cookies to inspect in a web request. * @@ -3802,7 +3815,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CountProperty, - ) : CdkObject(cdkObject), CountProperty { + ) : CdkObject(cdkObject), + CountProperty { /** * Custom request handling. * @@ -3916,7 +3930,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomHTTPHeaderProperty, - ) : CdkObject(cdkObject), CustomHTTPHeaderProperty { + ) : CdkObject(cdkObject), + CustomHTTPHeaderProperty { /** * The name of the custom header. * @@ -4078,7 +4093,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomRequestHandlingProperty, - ) : CdkObject(cdkObject), CustomRequestHandlingProperty { + ) : CdkObject(cdkObject), + CustomRequestHandlingProperty { /** * The HTTP headers to insert into the request. Duplicate header names are not allowed. * @@ -4209,7 +4225,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomResponseBodyProperty, - ) : CdkObject(cdkObject), CustomResponseBodyProperty { + ) : CdkObject(cdkObject), + CustomResponseBodyProperty { /** * The payload of the custom response. * @@ -4460,7 +4477,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomResponseProperty, - ) : CdkObject(cdkObject), CustomResponseProperty { + ) : CdkObject(cdkObject), + CustomResponseProperty { /** * References the response body that you want AWS WAF to return to the web request client. * @@ -4671,12 +4689,13 @@ public open class CfnRuleGroup( public fun headers(): Any? = unwrap(this).getHeaders() /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS - * WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for + * each request that has enough TLS Client Hello information for the calculation. Almost all web + * requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -4927,11 +4946,13 @@ public open class CfnRuleGroup( public fun headers(headers: HeadersProperty.Builder.() -> Unit) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -4950,11 +4971,13 @@ public open class CfnRuleGroup( public fun ja3Fingerprint(ja3Fingerprint: IResolvable) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -4973,11 +4996,13 @@ public open class CfnRuleGroup( public fun ja3Fingerprint(ja3Fingerprint: JA3FingerprintProperty) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -5272,11 +5297,13 @@ public open class CfnRuleGroup( headers(HeadersProperty(headers)) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -5297,11 +5324,13 @@ public open class CfnRuleGroup( } /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -5322,11 +5351,13 @@ public open class CfnRuleGroup( } /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -5474,7 +5505,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * Inspect all query arguments. * @@ -5537,12 +5569,13 @@ public open class CfnRuleGroup( override fun headers(): Any? = unwrap(this).getHeaders() /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -5801,7 +5834,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty, - ) : CdkObject(cdkObject), ForwardedIPConfigurationProperty { + ) : CdkObject(cdkObject), + ForwardedIPConfigurationProperty { /** * The match status to assign to the web request if the request doesn't have a valid IP * address in the specified position. @@ -6077,7 +6111,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.GeoMatchStatementProperty, - ) : CdkObject(cdkObject), GeoMatchStatementProperty { + ) : CdkObject(cdkObject), + GeoMatchStatementProperty { /** * An array of two-character country codes that you want to match against, for example, `[ * "US", "CN" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard. @@ -6255,7 +6290,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.HeaderMatchPatternProperty, - ) : CdkObject(cdkObject), HeaderMatchPatternProperty { + ) : CdkObject(cdkObject), + HeaderMatchPatternProperty { /** * Inspect all headers. * @@ -6526,7 +6562,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.HeadersProperty, - ) : CdkObject(cdkObject), HeadersProperty { + ) : CdkObject(cdkObject), + HeadersProperty { /** * The filter to use to identify the subset of headers to inspect in a web request. * @@ -6783,7 +6820,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.IPSetForwardedIPConfigurationProperty, - ) : CdkObject(cdkObject), IPSetForwardedIPConfigurationProperty { + ) : CdkObject(cdkObject), + IPSetForwardedIPConfigurationProperty { /** * The match status to assign to the web request if the request doesn't have a valid IP * address in the specified position. @@ -7025,7 +7063,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.IPSetReferenceStatementProperty, - ) : CdkObject(cdkObject), IPSetReferenceStatementProperty { + ) : CdkObject(cdkObject), + IPSetReferenceStatementProperty { /** * The Amazon Resource Name (ARN) of the `IPSet` that this statement references. * @@ -7138,7 +7177,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.ImmunityTimePropertyProperty, - ) : CdkObject(cdkObject), ImmunityTimePropertyProperty { + ) : CdkObject(cdkObject), + ImmunityTimePropertyProperty { /** * The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid * by AWS WAF . @@ -7171,12 +7211,13 @@ public open class CfnRuleGroup( } /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS - * WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash derived + * from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier + * for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request + * that has enough TLS Client Hello information for the calculation. Almost all web requests include + * this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -7260,7 +7301,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.JA3FingerprintProperty, - ) : CdkObject(cdkObject), JA3FingerprintProperty { + ) : CdkObject(cdkObject), + JA3FingerprintProperty { /** * The match status to assign to the web request if the request doesn't have a JA3 * fingerprint. @@ -7306,6 +7348,10 @@ public open class CfnRuleGroup( * * Example JSON: `"JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }` * + * For additional information about this request component option, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . + * * Example: * * ``` @@ -7342,15 +7388,13 @@ public open class CfnRuleGroup( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons - * such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an - * object or an array. * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for + * invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-invalidfallbackbehavior) */ @@ -7427,15 +7471,12 @@ public open class CfnRuleGroup( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. - * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . */ public fun invalidFallbackBehavior(invalidFallbackBehavior: String) @@ -7517,15 +7558,12 @@ public open class CfnRuleGroup( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. - * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . */ override fun invalidFallbackBehavior(invalidFallbackBehavior: String) { cdkBuilder.invalidFallbackBehavior(invalidFallbackBehavior) @@ -7605,7 +7643,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.JsonBodyProperty, - ) : CdkObject(cdkObject), JsonBodyProperty { + ) : CdkObject(cdkObject), + JsonBodyProperty { /** * What AWS WAF should do if it fails to completely parse the JSON body. The options are the * following:. @@ -7620,15 +7659,13 @@ public open class CfnRuleGroup( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-invalidfallbackbehavior) */ @@ -7854,7 +7891,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.JsonMatchPatternProperty, - ) : CdkObject(cdkObject), JsonMatchPatternProperty { + ) : CdkObject(cdkObject), + JsonMatchPatternProperty { /** * Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` * specification. @@ -8016,7 +8054,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.LabelMatchStatementProperty, - ) : CdkObject(cdkObject), LabelMatchStatementProperty { + ) : CdkObject(cdkObject), + LabelMatchStatementProperty { /** * The string to match against. The setting you provide for this depends on the match * statement's `Scope` setting:. @@ -8116,7 +8155,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.LabelProperty, - ) : CdkObject(cdkObject), LabelProperty { + ) : CdkObject(cdkObject), + LabelProperty { /** * The label string. * @@ -8201,7 +8241,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.LabelSummaryProperty, - ) : CdkObject(cdkObject), LabelSummaryProperty { + ) : CdkObject(cdkObject), + LabelSummaryProperty { /** * An individual label specification. * @@ -8706,7 +8747,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.NotStatementProperty, - ) : CdkObject(cdkObject), NotStatementProperty { + ) : CdkObject(cdkObject), + NotStatementProperty { /** * The statement to negate. * @@ -9208,7 +9250,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.OrStatementProperty, - ) : CdkObject(cdkObject), OrStatementProperty { + ) : CdkObject(cdkObject), + OrStatementProperty { /** * The statements to combine with OR logic. * @@ -9852,7 +9895,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateBasedStatementCustomKeyProperty, - ) : CdkObject(cdkObject), RateBasedStatementCustomKeyProperty { + ) : CdkObject(cdkObject), + RateBasedStatementCustomKeyProperty { /** * Use the value of a cookie in the request as an aggregate key. * @@ -10924,7 +10968,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateBasedStatementProperty, - ) : CdkObject(cdkObject), RateBasedStatementProperty { + ) : CdkObject(cdkObject), + RateBasedStatementProperty { /** * Setting that indicates how to aggregate the request counts. * @@ -11207,7 +11252,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitCookieProperty, - ) : CdkObject(cdkObject), RateLimitCookieProperty { + ) : CdkObject(cdkObject), + RateLimitCookieProperty { /** * The name of the cookie to use. * @@ -11400,7 +11446,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitHeaderProperty, - ) : CdkObject(cdkObject), RateLimitHeaderProperty { + ) : CdkObject(cdkObject), + RateLimitHeaderProperty { /** * The name of the header to use. * @@ -11509,7 +11556,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitLabelNamespaceProperty, - ) : CdkObject(cdkObject), RateLimitLabelNamespaceProperty { + ) : CdkObject(cdkObject), + RateLimitLabelNamespaceProperty { /** * The namespace to use for aggregation. * @@ -11691,7 +11739,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitQueryArgumentProperty, - ) : CdkObject(cdkObject), RateLimitQueryArgumentProperty { + ) : CdkObject(cdkObject), + RateLimitQueryArgumentProperty { /** * The name of the query argument to use. * @@ -11866,7 +11915,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitQueryStringProperty, - ) : CdkObject(cdkObject), RateLimitQueryStringProperty { + ) : CdkObject(cdkObject), + RateLimitQueryStringProperty { /** * Text transformations eliminate some of the unusual formatting that attackers use in web * requests in an effort to bypass detection. @@ -12033,7 +12083,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RateLimitUriPathProperty, - ) : CdkObject(cdkObject), RateLimitUriPathProperty { + ) : CdkObject(cdkObject), + RateLimitUriPathProperty { /** * Text transformations eliminate some of the unusual formatting that attackers use in web * requests in an effort to bypass detection. @@ -12293,7 +12344,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RegexMatchStatementProperty, - ) : CdkObject(cdkObject), RegexMatchStatementProperty { + ) : CdkObject(cdkObject), + RegexMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -12575,7 +12627,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RegexPatternSetReferenceStatementProperty, - ) : CdkObject(cdkObject), RegexPatternSetReferenceStatementProperty { + ) : CdkObject(cdkObject), + RegexPatternSetReferenceStatementProperty { /** * The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references. * @@ -12816,7 +12869,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RuleActionProperty, - ) : CdkObject(cdkObject), RuleActionProperty { + ) : CdkObject(cdkObject), + RuleActionProperty { /** * Instructs AWS WAF to allow the web request. * @@ -13878,7 +13932,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The action that AWS WAF should take on a web request when it matches the rule statement. * @@ -14053,7 +14108,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.SingleHeaderProperty, - ) : CdkObject(cdkObject), SingleHeaderProperty { + ) : CdkObject(cdkObject), + SingleHeaderProperty { /** * The name of the query header to inspect. * @@ -14142,7 +14198,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.SingleQueryArgumentProperty, - ) : CdkObject(cdkObject), SingleQueryArgumentProperty { + ) : CdkObject(cdkObject), + SingleQueryArgumentProperty { /** * The name of the query argument to inspect. * @@ -14430,7 +14487,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.SizeConstraintStatementProperty, - ) : CdkObject(cdkObject), SizeConstraintStatementProperty { + ) : CdkObject(cdkObject), + SizeConstraintStatementProperty { /** * The operator to use to compare the request part to the size setting. * @@ -14744,7 +14802,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.SqliMatchStatementProperty, - ) : CdkObject(cdkObject), SqliMatchStatementProperty { + ) : CdkObject(cdkObject), + SqliMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -16948,7 +17007,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.StatementProperty, - ) : CdkObject(cdkObject), StatementProperty { + ) : CdkObject(cdkObject), + StatementProperty { /** * A logical rule statement used to combine other rule statements with AND logic. * @@ -17314,7 +17374,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.TextTransformationProperty, - ) : CdkObject(cdkObject), TextTransformationProperty { + ) : CdkObject(cdkObject), + TextTransformationProperty { /** * Sets the relative processing order for multiple transformations. * @@ -17573,7 +17634,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.VisibilityConfigProperty, - ) : CdkObject(cdkObject), VisibilityConfigProperty { + ) : CdkObject(cdkObject), + VisibilityConfigProperty { /** * Indicates whether the associated resource sends metrics to Amazon CloudWatch. * @@ -17844,7 +17906,8 @@ public open class CfnRuleGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroup.XssMatchStatementProperty, - ) : CdkObject(cdkObject), XssMatchStatementProperty { + ) : CdkObject(cdkObject), + XssMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroupProps.kt index a28c71b5f7..ec8906436b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnRuleGroupProps.kt @@ -1022,7 +1022,8 @@ public interface CfnRuleGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnRuleGroupProps, - ) : CdkObject(cdkObject), CfnRuleGroupProps { + ) : CdkObject(cdkObject), + CfnRuleGroupProps { /** * The labels that one or more rules in this rule group add to matching web requests. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACL.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACL.kt index c136226f41..34685933c2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACL.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACL.kt @@ -76,7 +76,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebACL( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -1651,7 +1653,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AWSManagedRulesACFPRuleSetProperty, - ) : CdkObject(cdkObject), AWSManagedRulesACFPRuleSetProperty { + ) : CdkObject(cdkObject), + AWSManagedRulesACFPRuleSetProperty { /** * The path of the account creation endpoint for your application. * @@ -2067,7 +2070,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AWSManagedRulesATPRuleSetProperty, - ) : CdkObject(cdkObject), AWSManagedRulesATPRuleSetProperty { + ) : CdkObject(cdkObject), + AWSManagedRulesATPRuleSetProperty { /** * Allow the use of regular expressions in the login page path. * @@ -2301,7 +2305,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty, - ) : CdkObject(cdkObject), AWSManagedRulesBotControlRuleSetProperty { + ) : CdkObject(cdkObject), + AWSManagedRulesBotControlRuleSetProperty { /** * Applies only to the targeted inspection level. * @@ -2474,7 +2479,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AllowActionProperty, - ) : CdkObject(cdkObject), AllowActionProperty { + ) : CdkObject(cdkObject), + AllowActionProperty { /** * Defines custom handling for the web request. * @@ -2585,7 +2591,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AndStatementProperty, - ) : CdkObject(cdkObject), AndStatementProperty { + ) : CdkObject(cdkObject), + AndStatementProperty { /** * The statements to combine with AND logic. * @@ -2766,7 +2773,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.AssociationConfigProperty, - ) : CdkObject(cdkObject), AssociationConfigProperty { + ) : CdkObject(cdkObject), + AssociationConfigProperty { /** * Customizes the maximum size of the request body that your protected CloudFront, API * Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for @@ -2929,7 +2937,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.BlockActionProperty, - ) : CdkObject(cdkObject), BlockActionProperty { + ) : CdkObject(cdkObject), + BlockActionProperty { /** * Defines a custom response for the web request. * @@ -3085,7 +3094,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.BodyProperty, - ) : CdkObject(cdkObject), BodyProperty { + ) : CdkObject(cdkObject), + BodyProperty { /** * What AWS WAF should do if the body is larger than AWS WAF can inspect. * @@ -3556,7 +3566,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ByteMatchStatementProperty, - ) : CdkObject(cdkObject), ByteMatchStatementProperty { + ) : CdkObject(cdkObject), + ByteMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -3810,7 +3821,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CaptchaActionProperty, - ) : CdkObject(cdkObject), CaptchaActionProperty { + ) : CdkObject(cdkObject), + CaptchaActionProperty { /** * Defines custom handling for the web request, used when the `CAPTCHA` inspection determines * that the request's token is valid and unexpired. @@ -3937,7 +3949,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CaptchaConfigProperty, - ) : CdkObject(cdkObject), CaptchaConfigProperty { + ) : CdkObject(cdkObject), + CaptchaConfigProperty { /** * Determines how long a `CAPTCHA` timestamp in the token remains valid after the client * successfully solves a `CAPTCHA` puzzle. @@ -4124,7 +4137,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ChallengeActionProperty, - ) : CdkObject(cdkObject), ChallengeActionProperty { + ) : CdkObject(cdkObject), + ChallengeActionProperty { /** * Defines custom handling for the web request, used when the challenge inspection determines * that the request's token is valid and unexpired. @@ -4251,7 +4265,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ChallengeConfigProperty, - ) : CdkObject(cdkObject), ChallengeConfigProperty { + ) : CdkObject(cdkObject), + ChallengeConfigProperty { /** * Determines how long a challenge timestamp in the token remains valid after the client * successfully responds to a challenge. @@ -4407,7 +4422,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CookieMatchPatternProperty, - ) : CdkObject(cdkObject), CookieMatchPatternProperty { + ) : CdkObject(cdkObject), + CookieMatchPatternProperty { /** * Inspect all cookies. * @@ -4675,7 +4691,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CookiesProperty, - ) : CdkObject(cdkObject), CookiesProperty { + ) : CdkObject(cdkObject), + CookiesProperty { /** * The filter to use to identify the subset of cookies to inspect in a web request. * @@ -4859,7 +4876,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CountActionProperty, - ) : CdkObject(cdkObject), CountActionProperty { + ) : CdkObject(cdkObject), + CountActionProperty { /** * Defines custom handling for the web request. * @@ -4979,7 +4997,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CustomHTTPHeaderProperty, - ) : CdkObject(cdkObject), CustomHTTPHeaderProperty { + ) : CdkObject(cdkObject), + CustomHTTPHeaderProperty { /** * The name of the custom header. * @@ -5141,7 +5160,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CustomRequestHandlingProperty, - ) : CdkObject(cdkObject), CustomRequestHandlingProperty { + ) : CdkObject(cdkObject), + CustomRequestHandlingProperty { /** * The HTTP headers to insert into the request. Duplicate header names are not allowed. * @@ -5271,7 +5291,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CustomResponseBodyProperty, - ) : CdkObject(cdkObject), CustomResponseBodyProperty { + ) : CdkObject(cdkObject), + CustomResponseBodyProperty { /** * The payload of the custom response. * @@ -5522,7 +5543,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.CustomResponseProperty, - ) : CdkObject(cdkObject), CustomResponseProperty { + ) : CdkObject(cdkObject), + CustomResponseProperty { /** * References the response body that you want AWS WAF to return to the web request client. * @@ -5729,7 +5751,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.DefaultActionProperty, - ) : CdkObject(cdkObject), DefaultActionProperty { + ) : CdkObject(cdkObject), + DefaultActionProperty { /** * Specifies that AWS WAF should allow requests by default. * @@ -5821,7 +5844,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ExcludedRuleProperty, - ) : CdkObject(cdkObject), ExcludedRuleProperty { + ) : CdkObject(cdkObject), + ExcludedRuleProperty { /** * The name of the rule whose action you want to override to `Count` . * @@ -5935,7 +5959,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.FieldIdentifierProperty, - ) : CdkObject(cdkObject), FieldIdentifierProperty { + ) : CdkObject(cdkObject), + FieldIdentifierProperty { /** * The name of the field. * @@ -6124,12 +6149,13 @@ public open class CfnWebACL( public fun headers(): Any? = unwrap(this).getHeaders() /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS - * WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for + * each request that has enough TLS Client Hello information for the calculation. Almost all web + * requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6380,11 +6406,13 @@ public open class CfnWebACL( public fun headers(headers: HeadersProperty.Builder.() -> Unit) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6403,11 +6431,13 @@ public open class CfnWebACL( public fun ja3Fingerprint(ja3Fingerprint: IResolvable) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6426,11 +6456,13 @@ public open class CfnWebACL( public fun ja3Fingerprint(ja3Fingerprint: JA3FingerprintProperty) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6725,11 +6757,13 @@ public open class CfnWebACL( headers(HeadersProperty(headers)) /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6750,11 +6784,13 @@ public open class CfnWebACL( } /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6775,11 +6811,13 @@ public open class CfnWebACL( } /** - * @param ja3Fingerprint Match against the request's JA3 fingerprint. - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * @param ja3Fingerprint Available for use with Amazon CloudFront distributions and + * Application Load Balancers. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -6927,7 +6965,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.FieldToMatchProperty, - ) : CdkObject(cdkObject), FieldToMatchProperty { + ) : CdkObject(cdkObject), + FieldToMatchProperty { /** * Inspect all query arguments. * @@ -6990,12 +7029,13 @@ public open class CfnWebACL( override fun headers(): Any? = unwrap(this).getHeaders() /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. - * AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash + * derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique + * identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint + * for each request that has enough TLS Client Hello information for the calculation. Almost all + * web requests include this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -7253,7 +7293,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ForwardedIPConfigurationProperty, - ) : CdkObject(cdkObject), ForwardedIPConfigurationProperty { + ) : CdkObject(cdkObject), + ForwardedIPConfigurationProperty { /** * The match status to assign to the web request if the request doesn't have a valid IP * address in the specified position. @@ -7528,7 +7569,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.GeoMatchStatementProperty, - ) : CdkObject(cdkObject), GeoMatchStatementProperty { + ) : CdkObject(cdkObject), + GeoMatchStatementProperty { /** * An array of two-character country codes that you want to match against, for example, `[ * "US", "CN" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard. @@ -7705,7 +7747,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.HeaderMatchPatternProperty, - ) : CdkObject(cdkObject), HeaderMatchPatternProperty { + ) : CdkObject(cdkObject), + HeaderMatchPatternProperty { /** * Inspect all headers. * @@ -7976,7 +8019,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.HeadersProperty, - ) : CdkObject(cdkObject), HeadersProperty { + ) : CdkObject(cdkObject), + HeadersProperty { /** * The filter to use to identify the subset of headers to inspect in a web request. * @@ -8232,7 +8276,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.IPSetForwardedIPConfigurationProperty, - ) : CdkObject(cdkObject), IPSetForwardedIPConfigurationProperty { + ) : CdkObject(cdkObject), + IPSetForwardedIPConfigurationProperty { /** * The match status to assign to the web request if the request doesn't have a valid IP * address in the specified position. @@ -8473,7 +8518,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.IPSetReferenceStatementProperty, - ) : CdkObject(cdkObject), IPSetReferenceStatementProperty { + ) : CdkObject(cdkObject), + IPSetReferenceStatementProperty { /** * The Amazon Resource Name (ARN) of the `IPSet` that this statement references. * @@ -8586,7 +8632,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ImmunityTimePropertyProperty, - ) : CdkObject(cdkObject), ImmunityTimePropertyProperty { + ) : CdkObject(cdkObject), + ImmunityTimePropertyProperty { /** * The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid * by AWS WAF . @@ -8619,12 +8666,13 @@ public open class CfnWebACL( } /** - * Match against the request's JA3 fingerprint. + * Available for use with Amazon CloudFront distributions and Application Load Balancers. * - * The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming - * request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS - * WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello - * information for the calculation. Almost all web requests include this information. + * Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash derived + * from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier + * for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request + * that has enough TLS Client Hello information for the calculation. Almost all web requests include + * this information. * * * You can use this choice only with a string match `ByteMatchStatement` with the @@ -8708,7 +8756,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.JA3FingerprintProperty, - ) : CdkObject(cdkObject), JA3FingerprintProperty { + ) : CdkObject(cdkObject), + JA3FingerprintProperty { /** * The match status to assign to the web request if the request doesn't have a JA3 * fingerprint. @@ -8754,6 +8803,10 @@ public open class CfnWebACL( * * Example JSON: `"JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }` * + * For additional information about this request component option, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . + * * Example: * * ``` @@ -8790,15 +8843,13 @@ public open class CfnWebACL( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons - * such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an - * object or an array. * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for + * invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-invalidfallbackbehavior) */ @@ -8875,15 +8926,12 @@ public open class CfnWebACL( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. - * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . */ public fun invalidFallbackBehavior(invalidFallbackBehavior: String) @@ -8965,15 +9013,12 @@ public open class CfnWebACL( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. - * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . */ override fun invalidFallbackBehavior(invalidFallbackBehavior: String) { cdkBuilder.invalidFallbackBehavior(invalidFallbackBehavior) @@ -9053,7 +9098,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.JsonBodyProperty, - ) : CdkObject(cdkObject), JsonBodyProperty { + ) : CdkObject(cdkObject), + JsonBodyProperty { /** * What AWS WAF should do if it fails to completely parse the JSON body. The options are the * following:. @@ -9068,15 +9114,13 @@ public open class CfnWebACL( * If you don't provide this setting, AWS WAF parses and evaluates the content only up to the * first parsing failure that it encounters. * - * AWS WAF does its best to parse the entire JSON body, but might be forced to stop for - * reasons such as invalid characters, duplicate keys, truncation, and any content whose root - * node isn't an object or an array. * - * AWS WAF parses the JSON in the following examples as two valid key, value pairs: + * AWS WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even + * for invalid JSON. When parsing succeeds, AWS WAF doesn't apply the fallback behavior. For more + * information, see [JSON + * body](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body) + * in the *AWS WAF Developer Guide* . * - * * Missing comma: `{"key1":"value1""key2":"value2"}` - * * Missing colon: `{"key1":"value1","key2""value2"}` - * * Extra colons: `{"key1"::"value1","key2""value2"}` * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-invalidfallbackbehavior) */ @@ -9300,7 +9344,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.JsonMatchPatternProperty, - ) : CdkObject(cdkObject), JsonMatchPatternProperty { + ) : CdkObject(cdkObject), + JsonMatchPatternProperty { /** * Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` * specification. @@ -9462,7 +9507,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.LabelMatchStatementProperty, - ) : CdkObject(cdkObject), LabelMatchStatementProperty { + ) : CdkObject(cdkObject), + LabelMatchStatementProperty { /** * The string to match against. The setting you provide for this depends on the match * statement's `Scope` setting:. @@ -9561,7 +9607,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.LabelProperty, - ) : CdkObject(cdkObject), LabelProperty { + ) : CdkObject(cdkObject), + LabelProperty { /** * The label string. * @@ -10254,7 +10301,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ManagedRuleGroupConfigProperty, - ) : CdkObject(cdkObject), ManagedRuleGroupConfigProperty { + ) : CdkObject(cdkObject), + ManagedRuleGroupConfigProperty { /** * Additional configuration for using the account creation fraud prevention (ACFP) managed * rule group, `AWSManagedRulesACFPRuleSet` . @@ -10847,7 +10895,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ManagedRuleGroupStatementProperty, - ) : CdkObject(cdkObject), ManagedRuleGroupStatementProperty { + ) : CdkObject(cdkObject), + ManagedRuleGroupStatementProperty { /** * Rules in the referenced rule group whose actions are set to `Count` . * @@ -11041,7 +11090,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.NotStatementProperty, - ) : CdkObject(cdkObject), NotStatementProperty { + ) : CdkObject(cdkObject), + NotStatementProperty { /** * The statement to negate. * @@ -11149,7 +11199,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.OrStatementProperty, - ) : CdkObject(cdkObject), OrStatementProperty { + ) : CdkObject(cdkObject), + OrStatementProperty { /** * The statements to combine with OR logic. * @@ -11287,7 +11338,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.OverrideActionProperty, - ) : CdkObject(cdkObject), OverrideActionProperty { + ) : CdkObject(cdkObject), + OverrideActionProperty { /** * Override the rule group evaluation result to count only. * @@ -11945,7 +11997,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateBasedStatementCustomKeyProperty, - ) : CdkObject(cdkObject), RateBasedStatementCustomKeyProperty { + ) : CdkObject(cdkObject), + RateBasedStatementCustomKeyProperty { /** * Use the value of a cookie in the request as an aggregate key. * @@ -12622,7 +12675,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateBasedStatementProperty, - ) : CdkObject(cdkObject), RateBasedStatementProperty { + ) : CdkObject(cdkObject), + RateBasedStatementProperty { /** * Setting that indicates how to aggregate the request counts. * @@ -12905,7 +12959,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitCookieProperty, - ) : CdkObject(cdkObject), RateLimitCookieProperty { + ) : CdkObject(cdkObject), + RateLimitCookieProperty { /** * The name of the cookie to use. * @@ -13098,7 +13153,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitHeaderProperty, - ) : CdkObject(cdkObject), RateLimitHeaderProperty { + ) : CdkObject(cdkObject), + RateLimitHeaderProperty { /** * The name of the header to use. * @@ -13206,7 +13262,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitLabelNamespaceProperty, - ) : CdkObject(cdkObject), RateLimitLabelNamespaceProperty { + ) : CdkObject(cdkObject), + RateLimitLabelNamespaceProperty { /** * The namespace to use for aggregation. * @@ -13387,7 +13444,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitQueryArgumentProperty, - ) : CdkObject(cdkObject), RateLimitQueryArgumentProperty { + ) : CdkObject(cdkObject), + RateLimitQueryArgumentProperty { /** * The name of the query argument to use. * @@ -13562,7 +13620,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitQueryStringProperty, - ) : CdkObject(cdkObject), RateLimitQueryStringProperty { + ) : CdkObject(cdkObject), + RateLimitQueryStringProperty { /** * Text transformations eliminate some of the unusual formatting that attackers use in web * requests in an effort to bypass detection. @@ -13728,7 +13787,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RateLimitUriPathProperty, - ) : CdkObject(cdkObject), RateLimitUriPathProperty { + ) : CdkObject(cdkObject), + RateLimitUriPathProperty { /** * Text transformations eliminate some of the unusual formatting that attackers use in web * requests in an effort to bypass detection. @@ -13988,7 +14048,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RegexMatchStatementProperty, - ) : CdkObject(cdkObject), RegexMatchStatementProperty { + ) : CdkObject(cdkObject), + RegexMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -14270,7 +14331,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty, - ) : CdkObject(cdkObject), RegexPatternSetReferenceStatementProperty { + ) : CdkObject(cdkObject), + RegexPatternSetReferenceStatementProperty { /** * The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references. * @@ -14405,7 +14467,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RequestBodyAssociatedResourceTypeConfigProperty, - ) : CdkObject(cdkObject), RequestBodyAssociatedResourceTypeConfigProperty { + ) : CdkObject(cdkObject), + RequestBodyAssociatedResourceTypeConfigProperty { /** * Specifies the maximum size of the web request body component that an associated CloudFront, * API Gateway, Amazon Cognito, App Runner, or Verified Access resource should send to AWS WAF @@ -15346,7 +15409,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RequestInspectionACFPProperty, - ) : CdkObject(cdkObject), RequestInspectionACFPProperty { + ) : CdkObject(cdkObject), + RequestInspectionACFPProperty { /** * The names of the fields in the request payload that contain your customer's primary * physical address. @@ -15864,7 +15928,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RequestInspectionProperty, - ) : CdkObject(cdkObject), RequestInspectionProperty { + ) : CdkObject(cdkObject), + RequestInspectionProperty { /** * The name of the field in the request payload that contains your customer's password. * @@ -16097,7 +16162,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty, - ) : CdkObject(cdkObject), ResponseInspectionBodyContainsProperty { + ) : CdkObject(cdkObject), + ResponseInspectionBodyContainsProperty { /** * Strings in the body of the response that indicate a failed login or account creation * attempt. @@ -16335,7 +16401,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionHeaderProperty, - ) : CdkObject(cdkObject), ResponseInspectionHeaderProperty { + ) : CdkObject(cdkObject), + ResponseInspectionHeaderProperty { /** * Values in the response header with the specified name that indicate a failed login or * account creation attempt. @@ -16582,7 +16649,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionJsonProperty, - ) : CdkObject(cdkObject), ResponseInspectionJsonProperty { + ) : CdkObject(cdkObject), + ResponseInspectionJsonProperty { /** * Values for the specified identifier in the response JSON that indicate a failed login or * account creation attempt. @@ -16928,7 +16996,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionProperty, - ) : CdkObject(cdkObject), ResponseInspectionProperty { + ) : CdkObject(cdkObject), + ResponseInspectionProperty { /** * Configures inspection of the response body for success and failure indicators. * @@ -17177,7 +17246,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty, - ) : CdkObject(cdkObject), ResponseInspectionStatusCodeProperty { + ) : CdkObject(cdkObject), + ResponseInspectionStatusCodeProperty { /** * Status codes in the response that indicate a failed login or account creation attempt. * @@ -17379,7 +17449,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RuleActionOverrideProperty, - ) : CdkObject(cdkObject), RuleActionOverrideProperty { + ) : CdkObject(cdkObject), + RuleActionOverrideProperty { /** * The override action to use, in place of the configured action of the rule in the rule * group. @@ -17848,7 +17919,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RuleActionProperty, - ) : CdkObject(cdkObject), RuleActionProperty { + ) : CdkObject(cdkObject), + RuleActionProperty { /** * Instructs AWS WAF to allow the web request. * @@ -18194,7 +18266,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RuleGroupReferenceStatementProperty, - ) : CdkObject(cdkObject), RuleGroupReferenceStatementProperty { + ) : CdkObject(cdkObject), + RuleGroupReferenceStatementProperty { /** * The Amazon Resource Name (ARN) of the entity. * @@ -19036,7 +19109,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.RuleProperty, - ) : CdkObject(cdkObject), RuleProperty { + ) : CdkObject(cdkObject), + RuleProperty { /** * The action that AWS WAF should take on a web request when it matches the rule's statement. * @@ -19245,7 +19319,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.SingleHeaderProperty, - ) : CdkObject(cdkObject), SingleHeaderProperty { + ) : CdkObject(cdkObject), + SingleHeaderProperty { /** * The name of the query header to inspect. * @@ -19334,7 +19409,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.SingleQueryArgumentProperty, - ) : CdkObject(cdkObject), SingleQueryArgumentProperty { + ) : CdkObject(cdkObject), + SingleQueryArgumentProperty { /** * The name of the query argument to inspect. * @@ -19621,7 +19697,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.SizeConstraintStatementProperty, - ) : CdkObject(cdkObject), SizeConstraintStatementProperty { + ) : CdkObject(cdkObject), + SizeConstraintStatementProperty { /** * The operator to use to compare the request part to the size setting. * @@ -19934,7 +20011,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.SqliMatchStatementProperty, - ) : CdkObject(cdkObject), SqliMatchStatementProperty { + ) : CdkObject(cdkObject), + SqliMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * @@ -21995,7 +22073,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.StatementProperty, - ) : CdkObject(cdkObject), StatementProperty { + ) : CdkObject(cdkObject), + StatementProperty { /** * A logical rule statement used to combine other rule statements with AND logic. * @@ -22396,7 +22475,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.TextTransformationProperty, - ) : CdkObject(cdkObject), TextTransformationProperty { + ) : CdkObject(cdkObject), + TextTransformationProperty { /** * Sets the relative processing order for multiple transformations. * @@ -22654,7 +22734,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.VisibilityConfigProperty, - ) : CdkObject(cdkObject), VisibilityConfigProperty { + ) : CdkObject(cdkObject), + VisibilityConfigProperty { /** * Indicates whether the associated resource sends metrics to Amazon CloudWatch. * @@ -22924,7 +23005,8 @@ public open class CfnWebACL( private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACL.XssMatchStatementProperty, - ) : CdkObject(cdkObject), XssMatchStatementProperty { + ) : CdkObject(cdkObject), + XssMatchStatementProperty { /** * The part of the web request that you want AWS WAF to inspect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociation.kt index 4a2d5a5a38..bec83173ef 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociation.kt @@ -71,7 +71,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWebACLAssociation( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACLAssociation, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociationProps.kt index ce731bc8d9..86d2cdd912 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLAssociationProps.kt @@ -127,7 +127,8 @@ public interface CfnWebACLAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACLAssociationProps, - ) : CdkObject(cdkObject), CfnWebACLAssociationProps { + ) : CdkObject(cdkObject), + CfnWebACLAssociationProps { /** * The Amazon Resource Name (ARN) of the resource to associate with the web ACL. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLProps.kt index 1b65bea833..2dc50f41d3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wafv2/CfnWebACLProps.kt @@ -777,7 +777,8 @@ public interface CfnWebACLProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wafv2.CfnWebACLProps, - ) : CdkObject(cdkObject), CfnWebACLProps { + ) : CdkObject(cdkObject), + CfnWebACLProps { /** * Specifies custom configurations for the associations between the web ACL and protected * resources. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistant.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistant.kt index d9c7ae9c3f..b5b2816e8e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistant.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistant.kt @@ -48,7 +48,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssistant( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistant, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -500,7 +502,8 @@ public open class CfnAssistant( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistant.ServerSideEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionConfigurationProperty { /** * The customer managed key used for encryption. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociation.kt index 0cc017563e..474371b6b6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociation.kt @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnAssistantAssociation( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistantAssociation, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -388,7 +390,8 @@ public open class CfnAssistantAssociation( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistantAssociation.AssociationDataProperty, - ) : CdkObject(cdkObject), AssociationDataProperty { + ) : CdkObject(cdkObject), + AssociationDataProperty { /** * The identifier of the knowledge base. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociationProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociationProps.kt index 9cb43b037a..a20a0303e3 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociationProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantAssociationProps.kt @@ -172,7 +172,8 @@ public interface CfnAssistantAssociationProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistantAssociationProps, - ) : CdkObject(cdkObject), CfnAssistantAssociationProps { + ) : CdkObject(cdkObject), + CfnAssistantAssociationProps { /** * The identifier of the Wisdom assistant. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantProps.kt index 7eebbce57c..a458f6a1ca 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnAssistantProps.kt @@ -249,7 +249,8 @@ public interface CfnAssistantProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnAssistantProps, - ) : CdkObject(cdkObject), CfnAssistantProps { + ) : CdkObject(cdkObject), + CfnAssistantProps { /** * The description of the assistant. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBase.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBase.kt index 39a99a6008..65ccf2e79f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBase.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBase.kt @@ -58,7 +58,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnKnowledgeBase( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBase, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -884,7 +886,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBase.AppIntegrationsConfigurationProperty, - ) : CdkObject(cdkObject), AppIntegrationsConfigurationProperty { + ) : CdkObject(cdkObject), + AppIntegrationsConfigurationProperty { /** * The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting * content. @@ -1061,7 +1064,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBase.RenderingConfigurationProperty, - ) : CdkObject(cdkObject), RenderingConfigurationProperty { + ) : CdkObject(cdkObject), + RenderingConfigurationProperty { /** * A URI template containing exactly one variable in `${variableName}` format. * @@ -1182,7 +1186,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBase.ServerSideEncryptionConfigurationProperty, - ) : CdkObject(cdkObject), ServerSideEncryptionConfigurationProperty { + ) : CdkObject(cdkObject), + ServerSideEncryptionConfigurationProperty { /** * The customer managed key used for encryption. * @@ -1313,7 +1318,8 @@ public open class CfnKnowledgeBase( private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBase.SourceConfigurationProperty, - ) : CdkObject(cdkObject), SourceConfigurationProperty { + ) : CdkObject(cdkObject), + SourceConfigurationProperty { /** * Configuration information for Amazon AppIntegrations to automatically ingest content. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBaseProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBaseProps.kt index 66671bcfa0..3daa616adc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBaseProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/wisdom/CfnKnowledgeBaseProps.kt @@ -377,7 +377,8 @@ public interface CfnKnowledgeBaseProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.wisdom.CfnKnowledgeBaseProps, - ) : CdkObject(cdkObject), CfnKnowledgeBaseProps { + ) : CdkObject(cdkObject), + CfnKnowledgeBaseProps { /** * The description. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAlias.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAlias.kt index 741c8d8f00..caf1f70228 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAlias.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAlias.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnConnectionAlias( cdkObject: software.amazon.awscdk.services.workspaces.CfnConnectionAlias, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -349,7 +351,8 @@ public open class CfnConnectionAlias( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspaces.CfnConnectionAlias.ConnectionAliasAssociationProperty, - ) : CdkObject(cdkObject), ConnectionAliasAssociationProperty { + ) : CdkObject(cdkObject), + ConnectionAliasAssociationProperty { /** * The identifier of the AWS account that associated the connection alias with a directory. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAliasProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAliasProps.kt index 5581594fb7..7684fd8c78 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAliasProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnConnectionAliasProps.kt @@ -104,7 +104,8 @@ public interface CfnConnectionAliasProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspaces.CfnConnectionAliasProps, - ) : CdkObject(cdkObject), CfnConnectionAliasProps { + ) : CdkObject(cdkObject), + CfnConnectionAliasProps { /** * The connection string specified for the connection alias. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspace.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspace.kt index ab34749470..fb7407635e 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspace.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspace.kt @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnWorkspace( cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspace, -) : CfnResource(cdkObject), IInspectable, ITaggable { +) : CfnResource(cdkObject), + IInspectable, + ITaggable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -192,12 +194,12 @@ public open class CfnWorkspace( } /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. */ public open fun volumeEncryptionKey(): String? = unwrap(this).getVolumeEncryptionKey() /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. */ public open fun volumeEncryptionKey(`value`: String) { unwrap(this).setVolumeEncryptionKey(`value`) @@ -290,8 +292,6 @@ public open class CfnWorkspace( * * This user name must exist in the AWS Directory Service directory for the WorkSpace. * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-username) * @param userName The user name of the user for the WorkSpace. */ @@ -316,13 +316,13 @@ public open class CfnWorkspace( public fun userVolumeEncryptionEnabled(userVolumeEncryptionEnabled: IResolvable) /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. * * Amazon WorkSpaces does not support asymmetric KMS keys. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-volumeencryptionkey) - * @param volumeEncryptionKey The ARN of the symmetric AWS KMS key used to encrypt data stored - * on your WorkSpace. + * @param volumeEncryptionKey The symmetric AWS KMS key used to encrypt data stored on your + * WorkSpace. */ public fun volumeEncryptionKey(volumeEncryptionKey: String) @@ -426,8 +426,6 @@ public open class CfnWorkspace( * * This user name must exist in the AWS Directory Service directory for the WorkSpace. * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-username) * @param userName The user name of the user for the WorkSpace. */ @@ -458,13 +456,13 @@ public open class CfnWorkspace( } /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. * * Amazon WorkSpaces does not support asymmetric KMS keys. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-volumeencryptionkey) - * @param volumeEncryptionKey The ARN of the symmetric AWS KMS key used to encrypt data stored - * on your WorkSpace. + * @param volumeEncryptionKey The symmetric AWS KMS key used to encrypt data stored on your + * WorkSpace. */ override fun volumeEncryptionKey(volumeEncryptionKey: String) { cdkBuilder.volumeEncryptionKey(volumeEncryptionKey) @@ -569,14 +567,10 @@ public open class CfnWorkspace( public fun rootVolumeSizeGib(): Number? = unwrap(this).getRootVolumeSizeGib() /** - * The running mode. For more information, see [Manage the WorkSpace Running - * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . - * - * - * The `MANUAL` value is only supported by Amazon WorkSpaces Core. Contact your account team to - * be allow-listed to use this value. For more information, see [Amazon WorkSpaces - * Core](https://docs.aws.amazon.com/workspaces/core/) . + * The running mode. * + * For more information, see [Manage the WorkSpace Running + * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html#cfn-workspaces-workspace-workspaceproperties-runningmode) */ @@ -624,12 +618,9 @@ public open class CfnWorkspace( public fun rootVolumeSizeGib(rootVolumeSizeGib: Number) /** - * @param runningMode The running mode. For more information, see [Manage the WorkSpace - * Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . - * - * The `MANUAL` value is only supported by Amazon WorkSpaces Core. Contact your account team - * to be allow-listed to use this value. For more information, see [Amazon WorkSpaces - * Core](https://docs.aws.amazon.com/workspaces/core/) . + * @param runningMode The running mode. + * For more information, see [Manage the WorkSpace Running + * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . */ public fun runningMode(runningMode: String) @@ -675,12 +666,9 @@ public open class CfnWorkspace( } /** - * @param runningMode The running mode. For more information, see [Manage the WorkSpace - * Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . - * - * The `MANUAL` value is only supported by Amazon WorkSpaces Core. Contact your account team - * to be allow-listed to use this value. For more information, see [Amazon WorkSpaces - * Core](https://docs.aws.amazon.com/workspaces/core/) . + * @param runningMode The running mode. + * For more information, see [Manage the WorkSpace Running + * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . */ override fun runningMode(runningMode: String) { cdkBuilder.runningMode(runningMode) @@ -713,7 +701,8 @@ public open class CfnWorkspace( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspace.WorkspacePropertiesProperty, - ) : CdkObject(cdkObject), WorkspacePropertiesProperty { + ) : CdkObject(cdkObject), + WorkspacePropertiesProperty { /** * The compute type. * @@ -736,14 +725,10 @@ public open class CfnWorkspace( override fun rootVolumeSizeGib(): Number? = unwrap(this).getRootVolumeSizeGib() /** - * The running mode. For more information, see [Manage the WorkSpace Running - * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . - * - * - * The `MANUAL` value is only supported by Amazon WorkSpaces Core. Contact your account team - * to be allow-listed to use this value. For more information, see [Amazon WorkSpaces - * Core](https://docs.aws.amazon.com/workspaces/core/) . + * The running mode. * + * For more information, see [Manage the WorkSpace Running + * Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html) . * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html#cfn-workspaces-workspace-workspaceproperties-runningmode) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspaceProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspaceProps.kt index 85bdace4e0..0ef7320f8f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspaceProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspaceProps.kt @@ -81,8 +81,6 @@ public interface CfnWorkspaceProps { * * This user name must exist in the AWS Directory Service directory for the WorkSpace. * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-username) */ public fun userName(): String @@ -95,7 +93,7 @@ public interface CfnWorkspaceProps { public fun userVolumeEncryptionEnabled(): Any? = unwrap(this).getUserVolumeEncryptionEnabled() /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. * * Amazon WorkSpaces does not support asymmetric KMS keys. * @@ -150,8 +148,6 @@ public interface CfnWorkspaceProps { /** * @param userName The user name of the user for the WorkSpace. * This user name must exist in the AWS Directory Service directory for the WorkSpace. - * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. */ public fun userName(userName: String) @@ -168,8 +164,8 @@ public interface CfnWorkspaceProps { public fun userVolumeEncryptionEnabled(userVolumeEncryptionEnabled: IResolvable) /** - * @param volumeEncryptionKey The ARN of the symmetric AWS KMS key used to encrypt data stored - * on your WorkSpace. + * @param volumeEncryptionKey The symmetric AWS KMS key used to encrypt data stored on your + * WorkSpace. * Amazon WorkSpaces does not support asymmetric KMS keys. */ public fun volumeEncryptionKey(volumeEncryptionKey: String) @@ -242,8 +238,6 @@ public interface CfnWorkspaceProps { /** * @param userName The user name of the user for the WorkSpace. * This user name must exist in the AWS Directory Service directory for the WorkSpace. - * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. */ override fun userName(userName: String) { cdkBuilder.userName(userName) @@ -266,8 +260,8 @@ public interface CfnWorkspaceProps { } /** - * @param volumeEncryptionKey The ARN of the symmetric AWS KMS key used to encrypt data stored - * on your WorkSpace. + * @param volumeEncryptionKey The symmetric AWS KMS key used to encrypt data stored on your + * WorkSpace. * Amazon WorkSpaces does not support asymmetric KMS keys. */ override fun volumeEncryptionKey(volumeEncryptionKey: String) { @@ -304,7 +298,8 @@ public interface CfnWorkspaceProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspaceProps, - ) : CdkObject(cdkObject), CfnWorkspaceProps { + ) : CdkObject(cdkObject), + CfnWorkspaceProps { /** * The identifier of the bundle for the WorkSpace. * @@ -338,8 +333,6 @@ public interface CfnWorkspaceProps { * * This user name must exist in the AWS Directory Service directory for the WorkSpace. * - * The reserved keyword, `[UNDEFINED]` , is used when creating user-decoupled WorkSpaces. - * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-username) */ override fun userName(): String = unwrap(this).getUserName() @@ -352,7 +345,7 @@ public interface CfnWorkspaceProps { override fun userVolumeEncryptionEnabled(): Any? = unwrap(this).getUserVolumeEncryptionEnabled() /** - * The ARN of the symmetric AWS KMS key used to encrypt data stored on your WorkSpace. + * The symmetric AWS KMS key used to encrypt data stored on your WorkSpace. * * Amazon WorkSpaces does not support asymmetric KMS keys. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPool.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPool.kt new file mode 100644 index 0000000000..a449e6a04d --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPool.kt @@ -0,0 +1,981 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.workspaces + +import io.cloudshiftdev.awscdk.CfnResource +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IInspectable +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.ITaggableV2 +import io.cloudshiftdev.awscdk.TagManager +import io.cloudshiftdev.awscdk.TreeInspector +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.Number +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName +import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct +import software.constructs.Construct as SoftwareConstructsConstruct + +/** + * Describes a pool of WorkSpaces. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.workspaces.*; + * CfnWorkspacesPool cfnWorkspacesPool = CfnWorkspacesPool.Builder.create(this, + * "MyCfnWorkspacesPool") + * .bundleId("bundleId") + * .capacity(CapacityProperty.builder() + * .desiredUserSessions(123) + * .build()) + * .directoryId("directoryId") + * .poolName("poolName") + * // the properties below are optional + * .applicationSettings(ApplicationSettingsProperty.builder() + * .status("status") + * // the properties below are optional + * .settingsGroup("settingsGroup") + * .build()) + * .description("description") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .timeoutSettings(TimeoutSettingsProperty.builder() + * .disconnectTimeoutInSeconds(123) + * .idleDisconnectTimeoutInSeconds(123) + * .maxUserDurationInSeconds(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html) + */ +public open class CfnWorkspacesPool( + cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool, +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnWorkspacesPoolProps, + ) : + this(software.amazon.awscdk.services.workspaces.CfnWorkspacesPool(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), + id, props.let(CfnWorkspacesPoolProps.Companion::unwrap)) + ) + + public constructor( + scope: CloudshiftdevConstructsConstruct, + id: String, + props: CfnWorkspacesPoolProps.Builder.() -> Unit, + ) : this(scope, id, CfnWorkspacesPoolProps(props) + ) + + /** + * The persistent application settings for users of the pool. + */ + public open fun applicationSettings(): Any? = unwrap(this).getApplicationSettings() + + /** + * The persistent application settings for users of the pool. + */ + public open fun applicationSettings(`value`: IResolvable) { + unwrap(this).setApplicationSettings(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The persistent application settings for users of the pool. + */ + public open fun applicationSettings(`value`: ApplicationSettingsProperty) { + unwrap(this).setApplicationSettings(`value`.let(ApplicationSettingsProperty.Companion::unwrap)) + } + + /** + * The persistent application settings for users of the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("70bcd7a35d0d19bf6219cf8476c96c607f5fba84c37cdeabb9518c2ceb43ebc5") + public open fun applicationSettings(`value`: ApplicationSettingsProperty.Builder.() -> Unit): Unit + = applicationSettings(ApplicationSettingsProperty(`value`)) + + /** + * The time the pool was created. + */ + public open fun attrCreatedAt(): String = unwrap(this).getAttrCreatedAt() + + /** + * The Amazon Resource Name (ARN) for the pool. + */ + public open fun attrPoolArn(): String = unwrap(this).getAttrPoolArn() + + /** + * The identifier of the pool. + */ + public open fun attrPoolId(): String = unwrap(this).getAttrPoolId() + + /** + * The identifier of the bundle used by the pool. + */ + public open fun bundleId(): String = unwrap(this).getBundleId() + + /** + * The identifier of the bundle used by the pool. + */ + public open fun bundleId(`value`: String) { + unwrap(this).setBundleId(`value`) + } + + /** + * Describes the user capacity for the pool. + */ + public open fun capacity(): Any = unwrap(this).getCapacity() + + /** + * Describes the user capacity for the pool. + */ + public open fun capacity(`value`: IResolvable) { + unwrap(this).setCapacity(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes the user capacity for the pool. + */ + public open fun capacity(`value`: CapacityProperty) { + unwrap(this).setCapacity(`value`.let(CapacityProperty.Companion::unwrap)) + } + + /** + * Describes the user capacity for the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("8723913a43a5a6b1b218ec8e949254dbcc5c259e6366fabe63c74021d081d302") + public open fun capacity(`value`: CapacityProperty.Builder.() -> Unit): Unit = + capacity(CapacityProperty(`value`)) + + /** + * Tag Manager which manages the tags for this resource. + */ + public override fun cdkTagManager(): TagManager = + unwrap(this).getCdkTagManager().let(TagManager::wrap) + + /** + * The description of the pool. + */ + public open fun description(): String? = unwrap(this).getDescription() + + /** + * The description of the pool. + */ + public open fun description(`value`: String) { + unwrap(this).setDescription(`value`) + } + + /** + * The identifier of the directory used by the pool. + */ + public open fun directoryId(): String = unwrap(this).getDirectoryId() + + /** + * The identifier of the directory used by the pool. + */ + public open fun directoryId(`value`: String) { + unwrap(this).setDirectoryId(`value`) + } + + /** + * Examines the CloudFormation resource and discloses attributes. + * + * @param inspector tree inspector to collect and process attributes. + */ + public override fun inspect(inspector: TreeInspector) { + unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap)) + } + + /** + * The name of the pool. + */ + public open fun poolName(): String = unwrap(this).getPoolName() + + /** + * The name of the pool. + */ + public open fun poolName(`value`: String) { + unwrap(this).setPoolName(`value`) + } + + /** + * The tags for the pool. + */ + public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The tags for the pool. + */ + public open fun tags(`value`: List) { + unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags for the pool. + */ + public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) + + /** + * The amount of time that a pool session remains active after users disconnect. + */ + public open fun timeoutSettings(): Any? = unwrap(this).getTimeoutSettings() + + /** + * The amount of time that a pool session remains active after users disconnect. + */ + public open fun timeoutSettings(`value`: IResolvable) { + unwrap(this).setTimeoutSettings(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The amount of time that a pool session remains active after users disconnect. + */ + public open fun timeoutSettings(`value`: TimeoutSettingsProperty) { + unwrap(this).setTimeoutSettings(`value`.let(TimeoutSettingsProperty.Companion::unwrap)) + } + + /** + * The amount of time that a pool session remains active after users disconnect. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("6de7b7d3d0eddcf2643a58d20797fb126a118452228f61fe5376df3e06028442") + public open fun timeoutSettings(`value`: TimeoutSettingsProperty.Builder.() -> Unit): Unit = + timeoutSettings(TimeoutSettingsProperty(`value`)) + + /** + * A fluent builder for [io.cloudshiftdev.awscdk.services.workspaces.CfnWorkspacesPool]. + */ + @CdkDslMarker + public interface Builder { + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + public fun applicationSettings(applicationSettings: IResolvable) + + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + public fun applicationSettings(applicationSettings: ApplicationSettingsProperty) + + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d368b51ce418a152311a943f4d41778a94cab4da581e763886db2b51945bb97e") + public + fun applicationSettings(applicationSettings: ApplicationSettingsProperty.Builder.() -> Unit) + + /** + * The identifier of the bundle used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-bundleid) + * @param bundleId The identifier of the bundle used by the pool. + */ + public fun bundleId(bundleId: String) + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + public fun capacity(capacity: IResolvable) + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + public fun capacity(capacity: CapacityProperty) + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a5c9a8e45218383a14147e9ac92d6346a91ed28899b28627e37917e2065d889") + public fun capacity(capacity: CapacityProperty.Builder.() -> Unit) + + /** + * The description of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-description) + * @param description The description of the pool. + */ + public fun description(description: String) + + /** + * The identifier of the directory used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-directoryid) + * @param directoryId The identifier of the directory used by the pool. + */ + public fun directoryId(directoryId: String) + + /** + * The name of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-poolname) + * @param poolName The name of the pool. + */ + public fun poolName(poolName: String) + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + * @param tags The tags for the pool. + */ + public fun tags(tags: List) + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + * @param tags The tags for the pool. + */ + public fun tags(vararg tags: CfnTag) + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + public fun timeoutSettings(timeoutSettings: IResolvable) + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + public fun timeoutSettings(timeoutSettings: TimeoutSettingsProperty) + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("247689929422dda2f4bfa88de1805b68a77e5654b60597ed14ac50388eceb73e") + public fun timeoutSettings(timeoutSettings: TimeoutSettingsProperty.Builder.() -> Unit) + } + + private class BuilderImpl( + scope: SoftwareConstructsConstruct, + id: String, + ) : Builder { + private val cdkBuilder: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.Builder = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.Builder.create(scope, id) + + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + override fun applicationSettings(applicationSettings: IResolvable) { + cdkBuilder.applicationSettings(applicationSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + override fun applicationSettings(applicationSettings: ApplicationSettingsProperty) { + cdkBuilder.applicationSettings(applicationSettings.let(ApplicationSettingsProperty.Companion::unwrap)) + } + + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + * @param applicationSettings The persistent application settings for users of the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("d368b51ce418a152311a943f4d41778a94cab4da581e763886db2b51945bb97e") + override + fun applicationSettings(applicationSettings: ApplicationSettingsProperty.Builder.() -> Unit): + Unit = applicationSettings(ApplicationSettingsProperty(applicationSettings)) + + /** + * The identifier of the bundle used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-bundleid) + * @param bundleId The identifier of the bundle used by the pool. + */ + override fun bundleId(bundleId: String) { + cdkBuilder.bundleId(bundleId) + } + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + override fun capacity(capacity: IResolvable) { + cdkBuilder.capacity(capacity.let(IResolvable.Companion::unwrap)) + } + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + override fun capacity(capacity: CapacityProperty) { + cdkBuilder.capacity(capacity.let(CapacityProperty.Companion::unwrap)) + } + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + * @param capacity Describes the user capacity for the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("5a5c9a8e45218383a14147e9ac92d6346a91ed28899b28627e37917e2065d889") + override fun capacity(capacity: CapacityProperty.Builder.() -> Unit): Unit = + capacity(CapacityProperty(capacity)) + + /** + * The description of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-description) + * @param description The description of the pool. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * The identifier of the directory used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-directoryid) + * @param directoryId The identifier of the directory used by the pool. + */ + override fun directoryId(directoryId: String) { + cdkBuilder.directoryId(directoryId) + } + + /** + * The name of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-poolname) + * @param poolName The name of the pool. + */ + override fun poolName(poolName: String) { + cdkBuilder.poolName(poolName) + } + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + * @param tags The tags for the pool. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + * @param tags The tags for the pool. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + override fun timeoutSettings(timeoutSettings: IResolvable) { + cdkBuilder.timeoutSettings(timeoutSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + override fun timeoutSettings(timeoutSettings: TimeoutSettingsProperty) { + cdkBuilder.timeoutSettings(timeoutSettings.let(TimeoutSettingsProperty.Companion::unwrap)) + } + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("247689929422dda2f4bfa88de1805b68a77e5654b60597ed14ac50388eceb73e") + override fun timeoutSettings(timeoutSettings: TimeoutSettingsProperty.Builder.() -> Unit): Unit + = timeoutSettings(TimeoutSettingsProperty(timeoutSettings)) + + public fun build(): software.amazon.awscdk.services.workspaces.CfnWorkspacesPool = + cdkBuilder.build() + } + + public companion object { + public val CFN_RESOURCE_TYPE_NAME: String = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CFN_RESOURCE_TYPE_NAME + + public operator fun invoke( + scope: CloudshiftdevConstructsConstruct, + id: String, + block: Builder.() -> Unit = {}, + ): CfnWorkspacesPool { + val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id) + return CfnWorkspacesPool(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool): + CfnWorkspacesPool = CfnWorkspacesPool(cdkObject) + + internal fun unwrap(wrapped: CfnWorkspacesPool): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool = wrapped.cdkObject as + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool + } + + /** + * The persistent application settings for users in the pool. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.workspaces.*; + * ApplicationSettingsProperty applicationSettingsProperty = ApplicationSettingsProperty.builder() + * .status("status") + * // the properties below are optional + * .settingsGroup("settingsGroup") + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html) + */ + public interface ApplicationSettingsProperty { + /** + * The path prefix for the S3 bucket where users’ persistent application settings are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-settingsgroup) + */ + public fun settingsGroup(): String? = unwrap(this).getSettingsGroup() + + /** + * Enables or disables persistent application settings for users during their pool sessions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-status) + */ + public fun status(): String + + /** + * A builder for [ApplicationSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param settingsGroup The path prefix for the S3 bucket where users’ persistent application + * settings are stored. + */ + public fun settingsGroup(settingsGroup: String) + + /** + * @param status Enables or disables persistent application settings for users during their + * pool sessions. + */ + public fun status(status: String) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty.Builder + = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty.builder() + + /** + * @param settingsGroup The path prefix for the S3 bucket where users’ persistent application + * settings are stored. + */ + override fun settingsGroup(settingsGroup: String) { + cdkBuilder.settingsGroup(settingsGroup) + } + + /** + * @param status Enables or disables persistent application settings for users during their + * pool sessions. + */ + override fun status(status: String) { + cdkBuilder.status(status) + } + + public fun build(): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty, + ) : CdkObject(cdkObject), + ApplicationSettingsProperty { + /** + * The path prefix for the S3 bucket where users’ persistent application settings are stored. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-settingsgroup) + */ + override fun settingsGroup(): String? = unwrap(this).getSettingsGroup() + + /** + * Enables or disables persistent application settings for users during their pool sessions. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-applicationsettings.html#cfn-workspaces-workspacespool-applicationsettings-status) + */ + override fun status(): String = unwrap(this).getStatus() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): ApplicationSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty): + ApplicationSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? + ApplicationSettingsProperty ?: Wrapper(cdkObject) + + internal fun unwrap(wrapped: ApplicationSettingsProperty): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.ApplicationSettingsProperty + } + } + + /** + * Describes the user capacity for the pool. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.workspaces.*; + * CapacityProperty capacityProperty = CapacityProperty.builder() + * .desiredUserSessions(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-capacity.html) + */ + public interface CapacityProperty { + /** + * The desired number of user sessions for the WorkSpaces in the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-capacity.html#cfn-workspaces-workspacespool-capacity-desiredusersessions) + */ + public fun desiredUserSessions(): Number + + /** + * A builder for [CapacityProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param desiredUserSessions The desired number of user sessions for the WorkSpaces in the + * pool. + */ + public fun desiredUserSessions(desiredUserSessions: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty.Builder = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty.builder() + + /** + * @param desiredUserSessions The desired number of user sessions for the WorkSpaces in the + * pool. + */ + override fun desiredUserSessions(desiredUserSessions: Number) { + cdkBuilder.desiredUserSessions(desiredUserSessions) + } + + public fun build(): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty, + ) : CdkObject(cdkObject), + CapacityProperty { + /** + * The desired number of user sessions for the WorkSpaces in the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-capacity.html#cfn-workspaces-workspacespool-capacity-desiredusersessions) + */ + override fun desiredUserSessions(): Number = unwrap(this).getDesiredUserSessions() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CapacityProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty): + CapacityProperty = CdkObjectWrappers.wrap(cdkObject) as? CapacityProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CapacityProperty): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty = (wrapped + as CdkObject).cdkObject as + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.CapacityProperty + } + } + + /** + * Describes the timeout settings for the pool. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.workspaces.*; + * TimeoutSettingsProperty timeoutSettingsProperty = TimeoutSettingsProperty.builder() + * .disconnectTimeoutInSeconds(123) + * .idleDisconnectTimeoutInSeconds(123) + * .maxUserDurationInSeconds(123) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html) + */ + public interface TimeoutSettingsProperty { + /** + * Specifies the amount of time, in seconds, that a streaming session remains active after users + * disconnect. + * + * If users try to reconnect to the streaming session after a disconnection or network + * interruption within the time set, they are connected to their previous session. Otherwise, they + * are connected to a new session with a new streaming instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-disconnecttimeoutinseconds) + */ + public fun disconnectTimeoutInSeconds(): Number? = unwrap(this).getDisconnectTimeoutInSeconds() + + /** + * The amount of time in seconds a connection will stay active while idle. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-idledisconnecttimeoutinseconds) + */ + public fun idleDisconnectTimeoutInSeconds(): Number? = + unwrap(this).getIdleDisconnectTimeoutInSeconds() + + /** + * Specifies the maximum amount of time, in seconds, that a streaming session can remain active. + * + * If users are still connected to a streaming instance five minutes before this limit is + * reached, they are prompted to save any open documents before being disconnected. After this time + * elapses, the instance is terminated and replaced by a new instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-maxuserdurationinseconds) + */ + public fun maxUserDurationInSeconds(): Number? = unwrap(this).getMaxUserDurationInSeconds() + + /** + * A builder for [TimeoutSettingsProperty] + */ + @CdkDslMarker + public interface Builder { + /** + * @param disconnectTimeoutInSeconds Specifies the amount of time, in seconds, that a + * streaming session remains active after users disconnect. + * If users try to reconnect to the streaming session after a disconnection or network + * interruption within the time set, they are connected to their previous session. Otherwise, + * they are connected to a new session with a new streaming instance. + */ + public fun disconnectTimeoutInSeconds(disconnectTimeoutInSeconds: Number) + + /** + * @param idleDisconnectTimeoutInSeconds The amount of time in seconds a connection will stay + * active while idle. + */ + public fun idleDisconnectTimeoutInSeconds(idleDisconnectTimeoutInSeconds: Number) + + /** + * @param maxUserDurationInSeconds Specifies the maximum amount of time, in seconds, that a + * streaming session can remain active. + * If users are still connected to a streaming instance five minutes before this limit is + * reached, they are prompted to save any open documents before being disconnected. After this + * time elapses, the instance is terminated and replaced by a new instance. + */ + public fun maxUserDurationInSeconds(maxUserDurationInSeconds: Number) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty.Builder + = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty.builder() + + /** + * @param disconnectTimeoutInSeconds Specifies the amount of time, in seconds, that a + * streaming session remains active after users disconnect. + * If users try to reconnect to the streaming session after a disconnection or network + * interruption within the time set, they are connected to their previous session. Otherwise, + * they are connected to a new session with a new streaming instance. + */ + override fun disconnectTimeoutInSeconds(disconnectTimeoutInSeconds: Number) { + cdkBuilder.disconnectTimeoutInSeconds(disconnectTimeoutInSeconds) + } + + /** + * @param idleDisconnectTimeoutInSeconds The amount of time in seconds a connection will stay + * active while idle. + */ + override fun idleDisconnectTimeoutInSeconds(idleDisconnectTimeoutInSeconds: Number) { + cdkBuilder.idleDisconnectTimeoutInSeconds(idleDisconnectTimeoutInSeconds) + } + + /** + * @param maxUserDurationInSeconds Specifies the maximum amount of time, in seconds, that a + * streaming session can remain active. + * If users are still connected to a streaming instance five minutes before this limit is + * reached, they are prompted to save any open documents before being disconnected. After this + * time elapses, the instance is terminated and replaced by a new instance. + */ + override fun maxUserDurationInSeconds(maxUserDurationInSeconds: Number) { + cdkBuilder.maxUserDurationInSeconds(maxUserDurationInSeconds) + } + + public fun build(): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty, + ) : CdkObject(cdkObject), + TimeoutSettingsProperty { + /** + * Specifies the amount of time, in seconds, that a streaming session remains active after + * users disconnect. + * + * If users try to reconnect to the streaming session after a disconnection or network + * interruption within the time set, they are connected to their previous session. Otherwise, + * they are connected to a new session with a new streaming instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-disconnecttimeoutinseconds) + */ + override fun disconnectTimeoutInSeconds(): Number? = + unwrap(this).getDisconnectTimeoutInSeconds() + + /** + * The amount of time in seconds a connection will stay active while idle. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-idledisconnecttimeoutinseconds) + */ + override fun idleDisconnectTimeoutInSeconds(): Number? = + unwrap(this).getIdleDisconnectTimeoutInSeconds() + + /** + * Specifies the maximum amount of time, in seconds, that a streaming session can remain + * active. + * + * If users are still connected to a streaming instance five minutes before this limit is + * reached, they are prompted to save any open documents before being disconnected. After this + * time elapses, the instance is terminated and replaced by a new instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspacespool-timeoutsettings.html#cfn-workspaces-workspacespool-timeoutsettings-maxuserdurationinseconds) + */ + override fun maxUserDurationInSeconds(): Number? = unwrap(this).getMaxUserDurationInSeconds() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): TimeoutSettingsProperty { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal + fun wrap(cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty): + TimeoutSettingsProperty = CdkObjectWrappers.wrap(cdkObject) as? TimeoutSettingsProperty ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: TimeoutSettingsProperty): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty = + (wrapped as CdkObject).cdkObject as + software.amazon.awscdk.services.workspaces.CfnWorkspacesPool.TimeoutSettingsProperty + } + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPoolProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPoolProps.kt new file mode 100644 index 0000000000..577007e707 --- /dev/null +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspaces/CfnWorkspacesPoolProps.kt @@ -0,0 +1,426 @@ +@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") + +package io.cloudshiftdev.awscdk.services.workspaces + +import io.cloudshiftdev.awscdk.CfnTag +import io.cloudshiftdev.awscdk.IResolvable +import io.cloudshiftdev.awscdk.common.CdkDslMarker +import io.cloudshiftdev.awscdk.common.CdkObject +import io.cloudshiftdev.awscdk.common.CdkObjectWrappers +import kotlin.Any +import kotlin.String +import kotlin.Unit +import kotlin.collections.List +import kotlin.jvm.JvmName + +/** + * Properties for defining a `CfnWorkspacesPool`. + * + * Example: + * + * ``` + * // The code below shows an example of how to instantiate this type. + * // The values are placeholders you should change. + * import io.cloudshiftdev.awscdk.services.workspaces.*; + * CfnWorkspacesPoolProps cfnWorkspacesPoolProps = CfnWorkspacesPoolProps.builder() + * .bundleId("bundleId") + * .capacity(CapacityProperty.builder() + * .desiredUserSessions(123) + * .build()) + * .directoryId("directoryId") + * .poolName("poolName") + * // the properties below are optional + * .applicationSettings(ApplicationSettingsProperty.builder() + * .status("status") + * // the properties below are optional + * .settingsGroup("settingsGroup") + * .build()) + * .description("description") + * .tags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) + * .timeoutSettings(TimeoutSettingsProperty.builder() + * .disconnectTimeoutInSeconds(123) + * .idleDisconnectTimeoutInSeconds(123) + * .maxUserDurationInSeconds(123) + * .build()) + * .build(); + * ``` + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html) + */ +public interface CfnWorkspacesPoolProps { + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + */ + public fun applicationSettings(): Any? = unwrap(this).getApplicationSettings() + + /** + * The identifier of the bundle used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-bundleid) + */ + public fun bundleId(): String + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + */ + public fun capacity(): Any + + /** + * The description of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-description) + */ + public fun description(): String? = unwrap(this).getDescription() + + /** + * The identifier of the directory used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-directoryid) + */ + public fun directoryId(): String + + /** + * The name of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-poolname) + */ + public fun poolName(): String + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + */ + public fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + */ + public fun timeoutSettings(): Any? = unwrap(this).getTimeoutSettings() + + /** + * A builder for [CfnWorkspacesPoolProps] + */ + @CdkDslMarker + public interface Builder { + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + public fun applicationSettings(applicationSettings: IResolvable) + + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + public + fun applicationSettings(applicationSettings: CfnWorkspacesPool.ApplicationSettingsProperty) + + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("052c475c0a12ae88016b63d96835df7c574a1a4e589920168b4a9c909fb1641e") + public + fun applicationSettings(applicationSettings: CfnWorkspacesPool.ApplicationSettingsProperty.Builder.() -> Unit) + + /** + * @param bundleId The identifier of the bundle used by the pool. + */ + public fun bundleId(bundleId: String) + + /** + * @param capacity Describes the user capacity for the pool. + */ + public fun capacity(capacity: IResolvable) + + /** + * @param capacity Describes the user capacity for the pool. + */ + public fun capacity(capacity: CfnWorkspacesPool.CapacityProperty) + + /** + * @param capacity Describes the user capacity for the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f7f0d4b6d98659ac067576ad8df970b16c4fecb437dc7bb78663cc34a8746ba") + public fun capacity(capacity: CfnWorkspacesPool.CapacityProperty.Builder.() -> Unit) + + /** + * @param description The description of the pool. + */ + public fun description(description: String) + + /** + * @param directoryId The identifier of the directory used by the pool. + */ + public fun directoryId(directoryId: String) + + /** + * @param poolName The name of the pool. + */ + public fun poolName(poolName: String) + + /** + * @param tags The tags for the pool. + */ + public fun tags(tags: List) + + /** + * @param tags The tags for the pool. + */ + public fun tags(vararg tags: CfnTag) + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + public fun timeoutSettings(timeoutSettings: IResolvable) + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + public fun timeoutSettings(timeoutSettings: CfnWorkspacesPool.TimeoutSettingsProperty) + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b445a52ee740ea424cbffee60b31978a114007f8bb5aba556834f3dce3982e73") + public + fun timeoutSettings(timeoutSettings: CfnWorkspacesPool.TimeoutSettingsProperty.Builder.() -> Unit) + } + + private class BuilderImpl : Builder { + private val cdkBuilder: + software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps.Builder = + software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps.builder() + + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + override fun applicationSettings(applicationSettings: IResolvable) { + cdkBuilder.applicationSettings(applicationSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + override + fun applicationSettings(applicationSettings: CfnWorkspacesPool.ApplicationSettingsProperty) { + cdkBuilder.applicationSettings(applicationSettings.let(CfnWorkspacesPool.ApplicationSettingsProperty.Companion::unwrap)) + } + + /** + * @param applicationSettings The persistent application settings for users of the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("052c475c0a12ae88016b63d96835df7c574a1a4e589920168b4a9c909fb1641e") + override + fun applicationSettings(applicationSettings: CfnWorkspacesPool.ApplicationSettingsProperty.Builder.() -> Unit): + Unit = + applicationSettings(CfnWorkspacesPool.ApplicationSettingsProperty(applicationSettings)) + + /** + * @param bundleId The identifier of the bundle used by the pool. + */ + override fun bundleId(bundleId: String) { + cdkBuilder.bundleId(bundleId) + } + + /** + * @param capacity Describes the user capacity for the pool. + */ + override fun capacity(capacity: IResolvable) { + cdkBuilder.capacity(capacity.let(IResolvable.Companion::unwrap)) + } + + /** + * @param capacity Describes the user capacity for the pool. + */ + override fun capacity(capacity: CfnWorkspacesPool.CapacityProperty) { + cdkBuilder.capacity(capacity.let(CfnWorkspacesPool.CapacityProperty.Companion::unwrap)) + } + + /** + * @param capacity Describes the user capacity for the pool. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("7f7f0d4b6d98659ac067576ad8df970b16c4fecb437dc7bb78663cc34a8746ba") + override fun capacity(capacity: CfnWorkspacesPool.CapacityProperty.Builder.() -> Unit): Unit = + capacity(CfnWorkspacesPool.CapacityProperty(capacity)) + + /** + * @param description The description of the pool. + */ + override fun description(description: String) { + cdkBuilder.description(description) + } + + /** + * @param directoryId The identifier of the directory used by the pool. + */ + override fun directoryId(directoryId: String) { + cdkBuilder.directoryId(directoryId) + } + + /** + * @param poolName The name of the pool. + */ + override fun poolName(poolName: String) { + cdkBuilder.poolName(poolName) + } + + /** + * @param tags The tags for the pool. + */ + override fun tags(tags: List) { + cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) + } + + /** + * @param tags The tags for the pool. + */ + override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + override fun timeoutSettings(timeoutSettings: IResolvable) { + cdkBuilder.timeoutSettings(timeoutSettings.let(IResolvable.Companion::unwrap)) + } + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + override fun timeoutSettings(timeoutSettings: CfnWorkspacesPool.TimeoutSettingsProperty) { + cdkBuilder.timeoutSettings(timeoutSettings.let(CfnWorkspacesPool.TimeoutSettingsProperty.Companion::unwrap)) + } + + /** + * @param timeoutSettings The amount of time that a pool session remains active after users + * disconnect. + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + */ + @kotlin.Suppress("INAPPLICABLE_JVM_NAME") + @JvmName("b445a52ee740ea424cbffee60b31978a114007f8bb5aba556834f3dce3982e73") + override + fun timeoutSettings(timeoutSettings: CfnWorkspacesPool.TimeoutSettingsProperty.Builder.() -> Unit): + Unit = timeoutSettings(CfnWorkspacesPool.TimeoutSettingsProperty(timeoutSettings)) + + public fun build(): software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps = + cdkBuilder.build() + } + + private class Wrapper( + cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps, + ) : CdkObject(cdkObject), + CfnWorkspacesPoolProps { + /** + * The persistent application settings for users of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-applicationsettings) + */ + override fun applicationSettings(): Any? = unwrap(this).getApplicationSettings() + + /** + * The identifier of the bundle used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-bundleid) + */ + override fun bundleId(): String = unwrap(this).getBundleId() + + /** + * Describes the user capacity for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-capacity) + */ + override fun capacity(): Any = unwrap(this).getCapacity() + + /** + * The description of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-description) + */ + override fun description(): String? = unwrap(this).getDescription() + + /** + * The identifier of the directory used by the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-directoryid) + */ + override fun directoryId(): String = unwrap(this).getDirectoryId() + + /** + * The name of the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-poolname) + */ + override fun poolName(): String = unwrap(this).getPoolName() + + /** + * The tags for the pool. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-tags) + */ + override fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() + + /** + * The amount of time that a pool session remains active after users disconnect. + * + * If they try to reconnect to the pool session after a disconnection or network interruption + * within this time interval, they are connected to their previous session. Otherwise, they are + * connected to a new session with a new pool instance. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspacespool.html#cfn-workspaces-workspacespool-timeoutsettings) + */ + override fun timeoutSettings(): Any? = unwrap(this).getTimeoutSettings() + } + + public companion object { + public operator fun invoke(block: Builder.() -> Unit = {}): CfnWorkspacesPoolProps { + val builderImpl = BuilderImpl() + return Wrapper(builderImpl.apply(block).build()) + } + + internal fun wrap(cdkObject: software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps): + CfnWorkspacesPoolProps = CdkObjectWrappers.wrap(cdkObject) as? CfnWorkspacesPoolProps ?: + Wrapper(cdkObject) + + internal fun unwrap(wrapped: CfnWorkspacesPoolProps): + software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps = (wrapped as + CdkObject).cdkObject as software.amazon.awscdk.services.workspaces.CfnWorkspacesPoolProps + } +} diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironment.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironment.kt index e5720cf995..88f8f6568a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironment.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironment.kt @@ -35,6 +35,10 @@ import software.constructs.Construct as SoftwareConstructsConstruct * // the properties below are optional * .desiredSoftwareSetId("desiredSoftwareSetId") * .desktopEndpoint("desktopEndpoint") + * .deviceCreationTags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .kmsKeyArn("kmsKeyArn") * .maintenanceWindow(MaintenanceWindowProperty.builder() * .type("type") @@ -60,7 +64,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnEnvironment( cdkObject: software.amazon.awscdk.services.workspacesthinclient.CfnEnvironment, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -175,6 +181,31 @@ public open class CfnEnvironment( unwrap(this).setDesktopEndpoint(`value`) } + /** + * The tag keys and optional values for the newly created devices for this environment. + */ + public open fun deviceCreationTags(): Any? = unwrap(this).getDeviceCreationTags() + + /** + * The tag keys and optional values for the newly created devices for this environment. + */ + public open fun deviceCreationTags(`value`: IResolvable) { + unwrap(this).setDeviceCreationTags(`value`.let(IResolvable.Companion::unwrap)) + } + + /** + * The tag keys and optional values for the newly created devices for this environment. + */ + public open fun deviceCreationTags(`value`: List) { + unwrap(this).setDeviceCreationTags(`value`.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The tag keys and optional values for the newly created devices for this environment. + */ + public open fun deviceCreationTags(vararg `value`: Any): Unit = + deviceCreationTags(`value`.toList()) + /** * Examines the CloudFormation resource and discloses attributes. * @@ -310,6 +341,33 @@ public open class CfnEnvironment( */ public fun desktopEndpoint(desktopEndpoint: String) + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(deviceCreationTags: IResolvable) + + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(deviceCreationTags: List) + + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(vararg deviceCreationTags: Any) + /** * The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the * environment. @@ -438,6 +496,38 @@ public open class CfnEnvironment( cdkBuilder.desktopEndpoint(desktopEndpoint) } + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(deviceCreationTags: IResolvable) { + cdkBuilder.deviceCreationTags(deviceCreationTags.let(IResolvable.Companion::unwrap)) + } + + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(deviceCreationTags: List) { + cdkBuilder.deviceCreationTags(deviceCreationTags.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(vararg deviceCreationTags: Any): Unit = + deviceCreationTags(deviceCreationTags.toList()) + /** * The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the * environment. @@ -756,7 +846,8 @@ public open class CfnEnvironment( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesthinclient.CfnEnvironment.MaintenanceWindowProperty, - ) : CdkObject(cdkObject), MaintenanceWindowProperty { + ) : CdkObject(cdkObject), + MaintenanceWindowProperty { /** * The option to set the maintenance window during the device local time or Universal * Coordinated Time (UTC). diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironmentProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironmentProps.kt index ecaada912b..021884754a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironmentProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesthinclient/CfnEnvironmentProps.kt @@ -27,6 +27,10 @@ import kotlin.jvm.JvmName * // the properties below are optional * .desiredSoftwareSetId("desiredSoftwareSetId") * .desktopEndpoint("desktopEndpoint") + * .deviceCreationTags(List.of(CfnTag.builder() + * .key("key") + * .value("value") + * .build())) * .kmsKeyArn("kmsKeyArn") * .maintenanceWindow(MaintenanceWindowProperty.builder() * .type("type") @@ -73,6 +77,13 @@ public interface CfnEnvironmentProps { */ public fun desktopEndpoint(): String? = unwrap(this).getDesktopEndpoint() + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + */ + public fun deviceCreationTags(): Any? = unwrap(this).getDeviceCreationTags() + /** * The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the * environment. @@ -142,6 +153,24 @@ public interface CfnEnvironmentProps { */ public fun desktopEndpoint(desktopEndpoint: String) + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(deviceCreationTags: IResolvable) + + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(deviceCreationTags: List) + + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + public fun deviceCreationTags(vararg deviceCreationTags: Any) + /** * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS Key Management Service key used to * encrypt the environment. @@ -227,6 +256,29 @@ public interface CfnEnvironmentProps { cdkBuilder.desktopEndpoint(desktopEndpoint) } + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(deviceCreationTags: IResolvable) { + cdkBuilder.deviceCreationTags(deviceCreationTags.let(IResolvable.Companion::unwrap)) + } + + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(deviceCreationTags: List) { + cdkBuilder.deviceCreationTags(deviceCreationTags.map{CdkObjectWrappers.unwrap(it)}) + } + + /** + * @param deviceCreationTags The tag keys and optional values for the newly created devices for + * this environment. + */ + override fun deviceCreationTags(vararg deviceCreationTags: Any): Unit = + deviceCreationTags(deviceCreationTags.toList()) + /** * @param kmsKeyArn The Amazon Resource Name (ARN) of the AWS Key Management Service key used to * encrypt the environment. @@ -304,7 +356,8 @@ public interface CfnEnvironmentProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesthinclient.CfnEnvironmentProps, - ) : CdkObject(cdkObject), CfnEnvironmentProps { + ) : CdkObject(cdkObject), + CfnEnvironmentProps { /** * The ID of the software set to apply. * @@ -327,6 +380,13 @@ public interface CfnEnvironmentProps { */ override fun desktopEndpoint(): String? = unwrap(this).getDesktopEndpoint() + /** + * The tag keys and optional values for the newly created devices for this environment. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesthinclient-environment.html#cfn-workspacesthinclient-environment-devicecreationtags) + */ + override fun deviceCreationTags(): Any? = unwrap(this).getDeviceCreationTags() + /** * The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the * environment. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettings.kt index 1589f1f038..df337bc7e0 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettings.kt @@ -47,7 +47,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnBrowserSettings( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnBrowserSettings, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.workspacesweb.CfnBrowserSettings(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettingsProps.kt index 180b9c2029..8b7168ddeb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnBrowserSettingsProps.kt @@ -165,7 +165,8 @@ public interface CfnBrowserSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnBrowserSettingsProps, - ) : CdkObject(cdkObject), CfnBrowserSettingsProps { + ) : CdkObject(cdkObject), + CfnBrowserSettingsProps { /** * Additional encryption context of the browser settings. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProvider.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProvider.kt index 66ae207697..bd24947471 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProvider.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProvider.kt @@ -40,7 +40,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIdentityProvider( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnIdentityProvider, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProviderProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProviderProps.kt index 8c4274e411..21cbe17586 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProviderProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIdentityProviderProps.kt @@ -299,7 +299,8 @@ public interface CfnIdentityProviderProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnIdentityProviderProps, - ) : CdkObject(cdkObject), CfnIdentityProviderProps { + ) : CdkObject(cdkObject), + CfnIdentityProviderProps { /** * The identity provider details. The following list describes the provider detail keys for each * identity provider type. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettings.kt index fa2845c682..a97e34d945 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettings.kt @@ -56,7 +56,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnIpAccessSettings( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnIpAccessSettings, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -185,19 +187,19 @@ public open class CfnIpAccessSettings( public open fun ipRules(vararg `value`: Any): Unit = ipRules(`value`.toList()) /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. */ public open fun tags(): List = unwrap(this).getTags()?.map(CfnTag::wrap) ?: emptyList() /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. */ public open fun tags(`value`: List) { unwrap(this).setTags(`value`.map(CfnTag.Companion::unwrap)) } /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. */ public open fun tags(vararg `value`: CfnTag): Unit = tags(`value`.toList()) @@ -273,22 +275,22 @@ public open class CfnIpAccessSettings( public fun ipRules(vararg ipRules: Any) /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-ipaccesssettings.html#cfn-workspacesweb-ipaccesssettings-tags) - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. */ public fun tags(tags: List) /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-ipaccesssettings.html#cfn-workspacesweb-ipaccesssettings-tags) - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. */ public fun tags(vararg tags: CfnTag) } @@ -382,24 +384,24 @@ public open class CfnIpAccessSettings( override fun ipRules(vararg ipRules: Any): Unit = ipRules(ipRules.toList()) /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-ipaccesssettings.html#cfn-workspacesweb-ipaccesssettings-tags) - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. */ override fun tags(tags: List) { cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap)) } /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-ipaccesssettings.html#cfn-workspacesweb-ipaccesssettings-tags) - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -507,7 +509,8 @@ public open class CfnIpAccessSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnIpAccessSettings.IpRuleProperty, - ) : CdkObject(cdkObject), IpRuleProperty { + ) : CdkObject(cdkObject), + IpRuleProperty { /** * The description of the IP rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettingsProps.kt index c45549b8e6..552494658c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnIpAccessSettingsProps.kt @@ -82,7 +82,7 @@ public interface CfnIpAccessSettingsProps { public fun ipRules(): Any /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * @@ -137,13 +137,13 @@ public interface CfnIpAccessSettingsProps { public fun ipRules(vararg ipRules: Any) /** - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. * A tag is a key-value pair. */ public fun tags(tags: List) /** - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. * A tag is a key-value pair. */ public fun tags(vararg tags: CfnTag) @@ -210,7 +210,7 @@ public interface CfnIpAccessSettingsProps { override fun ipRules(vararg ipRules: Any): Unit = ipRules(ipRules.toList()) /** - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. * A tag is a key-value pair. */ override fun tags(tags: List) { @@ -218,7 +218,7 @@ public interface CfnIpAccessSettingsProps { } /** - * @param tags The tags to add to the browser settings resource. + * @param tags The tags to add to the IP access settings resource. * A tag is a key-value pair. */ override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList()) @@ -229,7 +229,8 @@ public interface CfnIpAccessSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnIpAccessSettingsProps, - ) : CdkObject(cdkObject), CfnIpAccessSettingsProps { + ) : CdkObject(cdkObject), + CfnIpAccessSettingsProps { /** * Additional encryption context of the IP access settings. * @@ -268,7 +269,7 @@ public interface CfnIpAccessSettingsProps { override fun ipRules(): Any = unwrap(this).getIpRules() /** - * The tags to add to the browser settings resource. + * The tags to add to the IP access settings resource. * * A tag is a key-value pair. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettings.kt index 8ae2283d57..deb5c301a5 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettings.kt @@ -24,8 +24,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * The VPC must have default tenancy. VPCs with dedicated tenancy are not supported. * * For availability consideration, you must have at least two subnets created in two different - * Availability Zones. WorkSpaces Web is available in a subset of the Availability Zones for each - * supported Region. For more information, see [Supported Availability + * Availability Zones. WorkSpaces Secure Browser is available in a subset of the Availability Zones for + * each supported Region. For more information, see [Supported Availability * Zones](https://docs.aws.amazon.com/workspaces-web/latest/adminguide/availability-zones.html) . * * Example: @@ -51,7 +51,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnNetworkSettings( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnNetworkSettings, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettingsProps.kt index 851d1af48a..47bc96800b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnNetworkSettingsProps.kt @@ -198,7 +198,8 @@ public interface CfnNetworkSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnNetworkSettingsProps, - ) : CdkObject(cdkObject), CfnNetworkSettingsProps { + ) : CdkObject(cdkObject), + CfnNetworkSettingsProps { /** * One or more security groups used to control access from streaming instances to your VPC. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortal.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortal.kt index 43a3c26679..a35f2f09a4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortal.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortal.kt @@ -26,8 +26,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct * an `IdentityProvider` and `NetworkSettings` resource. An `IAM Identity Center` web portal does not * require an `IdentityProvider` resource. * - * For more information about web portals, see [What is Amazon WorkSpaces - * Web?](https://docs.aws.amazon.com/workspaces-web/latest/adminguide/what-is-workspaces-web.html.html) + * For more information about web portals, see [What is Amazon WorkSpaces Secure + * Browser?](https://docs.aws.amazon.com/workspaces-web/latest/adminguide/what-is-workspaces-web.html.html) * . * * Example: @@ -61,7 +61,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnPortal( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnPortal, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.workspacesweb.CfnPortal(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -341,15 +343,15 @@ public open class CfnPortal( * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the - * configuration for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP - * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you - * should follow these steps: + * configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your + * IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP + * metadata, you should follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by + * the calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -358,7 +360,7 @@ public open class CfnPortal( * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be * configured in IAM Identity Center . User and group assignment must be done through the - * WorkSpaces Web console. These cannot be configured in CloudFormation. + * WorkSpaces Secure Browser console. These cannot be configured in CloudFormation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-portal.html#cfn-workspacesweb-portal-authenticationtype) * @param authenticationType The type of authentication integration points used when signing @@ -507,15 +509,15 @@ public open class CfnPortal( * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the - * configuration for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP - * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you - * should follow these steps: + * configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your + * IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP + * metadata, you should follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by + * the calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -524,7 +526,7 @@ public open class CfnPortal( * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be * configured in IAM Identity Center . User and group assignment must be done through the - * WorkSpaces Web console. These cannot be configured in CloudFormation. + * WorkSpaces Secure Browser console. These cannot be configured in CloudFormation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-portal.html#cfn-workspacesweb-portal-authenticationtype) * @param authenticationType The type of authentication integration points used when signing diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortalProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortalProps.kt index 15fa5464a0..de6c72f1ac 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortalProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnPortalProps.kt @@ -61,15 +61,15 @@ public interface CfnPortalProps { * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the configuration - * for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP metadata. If - * your IdP requires the SP metadata first before returning the IdP metadata, you should follow these - * steps: + * for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your IdP’s IdP + * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you should + * follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by the + * calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -77,8 +77,8 @@ public interface CfnPortalProps { * `IAM Identity Center` web portals are authenticated through AWS IAM Identity Center . They * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be configured - * in IAM Identity Center . User and group assignment must be done through the WorkSpaces Web - * console. These cannot be configured in CloudFormation. + * in IAM Identity Center . User and group assignment must be done through the WorkSpaces Secure + * Browser console. These cannot be configured in CloudFormation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-portal.html#cfn-workspacesweb-portal-authenticationtype) */ @@ -187,15 +187,15 @@ public interface CfnPortalProps { * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the - * configuration for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP - * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you - * should follow these steps: + * configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your + * IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP + * metadata, you should follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by + * the calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -204,7 +204,7 @@ public interface CfnPortalProps { * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be * configured in IAM Identity Center . User and group assignment must be done through the - * WorkSpaces Web console. These cannot be configured in CloudFormation. + * WorkSpaces Secure Browser console. These cannot be configured in CloudFormation. */ public fun authenticationType(authenticationType: String) @@ -300,15 +300,15 @@ public interface CfnPortalProps { * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the - * configuration for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP - * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you - * should follow these steps: + * configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your + * IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP + * metadata, you should follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by + * the calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -317,7 +317,7 @@ public interface CfnPortalProps { * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be * configured in IAM Identity Center . User and group assignment must be done through the - * WorkSpaces Web console. These cannot be configured in CloudFormation. + * WorkSpaces Secure Browser console. These cannot be configured in CloudFormation. */ override fun authenticationType(authenticationType: String) { cdkBuilder.authenticationType(authenticationType) @@ -418,7 +418,8 @@ public interface CfnPortalProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnPortalProps, - ) : CdkObject(cdkObject), CfnPortalProps { + ) : CdkObject(cdkObject), + CfnPortalProps { /** * The additional encryption context of the portal. * @@ -433,15 +434,15 @@ public interface CfnPortalProps { * `Standard` web portals are authenticated directly through your identity provider (IdP). User * and group access to your web portal is controlled through your IdP. You need to include an IdP * resource in your template to integrate your IdP with your web portal. Completing the - * configuration for your IdP requires exchanging WorkSpaces Web’s SP metadata with your IdP’s IdP - * metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you - * should follow these steps: + * configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your + * IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP + * metadata, you should follow these steps: * * * * Create and deploy a CloudFormation template with a `Standard` portal with no * `IdentityProvider` resource. - * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Web console, or by the calling - * the `GetPortalServiceProviderMetadata` API. + * * Retrieve the SP metadata using `Fn:GetAtt` , the WorkSpaces Secure Browser console, or by + * the calling the `GetPortalServiceProviderMetadata` API. * * Submit the data to your IdP. * * Add an `IdentityProvider` resource to your CloudFormation template. * @@ -450,7 +451,7 @@ public interface CfnPortalProps { * provide additional features, such as IdP-initiated authentication. Identity sources (including * external identity provider integration) and other identity provider information must be * configured in IAM Identity Center . User and group assignment must be done through the - * WorkSpaces Web console. These cannot be configured in CloudFormation. + * WorkSpaces Secure Browser console. These cannot be configured in CloudFormation. * * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-portal.html#cfn-workspacesweb-portal-authenticationtype) */ diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStore.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStore.kt index 43b53f7779..7945dbc57a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStore.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStore.kt @@ -43,7 +43,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnTrustStore( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnTrustStore, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStoreProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStoreProps.kt index 4841443c94..9215abb919 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStoreProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnTrustStoreProps.kt @@ -113,7 +113,8 @@ public interface CfnTrustStoreProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnTrustStoreProps, - ) : CdkObject(cdkObject), CfnTrustStoreProps { + ) : CdkObject(cdkObject), + CfnTrustStoreProps { /** * A list of CA certificates to be added to the trust store. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettings.kt index 76a4ee4fba..b67fc7f54f 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettings.kt @@ -18,9 +18,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct /** * This resource specifies user access logging settings that can be associated with a web portal. * - * In order to receive logs from WorkSpaces Web, you must have an Amazon Kinesis Data Stream that - * starts with "amazon-workspaces-web-*". Your Amazon Kinesis data stream must either have server-side - * encryption turned off, or must use AWS managed keys for server-side encryption. + * In order to receive logs from WorkSpaces Secure Browser, you must have an Amazon Kinesis Data + * Stream that starts with "amazon-workspaces-web-*". Your Amazon Kinesis data stream must either have + * server-side encryption turned off, or must use AWS managed keys for server-side encryption. * * For more information about setting server-side encryption in Amazon Kinesis , see [How Do I Get * Started with Server-Side @@ -50,7 +50,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserAccessLoggingSettings( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserAccessLoggingSettings, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettingsProps.kt index 02a32f2f9d..5c3e042bdc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserAccessLoggingSettingsProps.kt @@ -105,7 +105,8 @@ public interface CfnUserAccessLoggingSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserAccessLoggingSettingsProps, - ) : CdkObject(cdkObject), CfnUserAccessLoggingSettingsProps { + ) : CdkObject(cdkObject), + CfnUserAccessLoggingSettingsProps { /** * The ARN of the Kinesis stream. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettings.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettings.kt index 72b870f5c3..b3ee073bbe 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettings.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettings.kt @@ -59,6 +59,7 @@ import software.constructs.Construct as SoftwareConstructsConstruct * .build())) * .build()) * .customerManagedKey("customerManagedKey") + * .deepLinkAllowed("deepLinkAllowed") * .disconnectTimeoutInMinutes(123) * .idleDisconnectTimeoutInMinutes(123) * .tags(List.of(CfnTag.builder() @@ -72,7 +73,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnUserSettings( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserSettings, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -184,6 +187,20 @@ public open class CfnUserSettings( unwrap(this).setCustomerManagedKey(`value`) } + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + */ + public open fun deepLinkAllowed(): String? = unwrap(this).getDeepLinkAllowed() + + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + */ + public open fun deepLinkAllowed(`value`: String) { + unwrap(this).setDeepLinkAllowed(`value`) + } + /** * The amount of time that a streaming session remains active after users disconnect. */ @@ -359,6 +376,16 @@ public open class CfnUserSettings( */ public fun customerManagedKey(customerManagedKey: String) + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-usersettings.html#cfn-workspacesweb-usersettings-deeplinkallowed) + * @param deepLinkAllowed Specifies whether the user can use deep links that open automatically + * when connecting to a session. + */ + public fun deepLinkAllowed(deepLinkAllowed: String) + /** * The amount of time that a streaming session remains active after users disconnect. * @@ -525,6 +552,18 @@ public open class CfnUserSettings( cdkBuilder.customerManagedKey(customerManagedKey) } + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-usersettings.html#cfn-workspacesweb-usersettings-deeplinkallowed) + * @param deepLinkAllowed Specifies whether the user can use deep links that open automatically + * when connecting to a session. + */ + override fun deepLinkAllowed(deepLinkAllowed: String) { + cdkBuilder.deepLinkAllowed(deepLinkAllowed) + } + /** * The amount of time that a streaming session remains active after users disconnect. * @@ -735,7 +774,8 @@ public open class CfnUserSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserSettings.CookieSpecificationProperty, - ) : CdkObject(cdkObject), CookieSpecificationProperty { + ) : CdkObject(cdkObject), + CookieSpecificationProperty { /** * The domain of the cookie. * @@ -921,7 +961,8 @@ public open class CfnUserSettings( private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserSettings.CookieSynchronizationConfigurationProperty, - ) : CdkObject(cdkObject), CookieSynchronizationConfigurationProperty { + ) : CdkObject(cdkObject), + CookieSynchronizationConfigurationProperty { /** * The list of cookie specifications that are allowed to be synchronized to the remote * browser. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettingsProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettingsProps.kt index e2a4e370c9..1ba30c562c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettingsProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/workspacesweb/CfnUserSettingsProps.kt @@ -49,6 +49,7 @@ import kotlin.jvm.JvmName * .build())) * .build()) * .customerManagedKey("customerManagedKey") + * .deepLinkAllowed("deepLinkAllowed") * .disconnectTimeoutInMinutes(123) * .idleDisconnectTimeoutInMinutes(123) * .tags(List.of(CfnTag.builder() @@ -91,6 +92,14 @@ public interface CfnUserSettingsProps { */ public fun customerManagedKey(): String? = unwrap(this).getCustomerManagedKey() + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-usersettings.html#cfn-workspacesweb-usersettings-deeplinkallowed) + */ + public fun deepLinkAllowed(): String? = unwrap(this).getDeepLinkAllowed() + /** * The amount of time that a streaming session remains active after users disconnect. * @@ -193,6 +202,12 @@ public interface CfnUserSettingsProps { */ public fun customerManagedKey(customerManagedKey: String) + /** + * @param deepLinkAllowed Specifies whether the user can use deep links that open automatically + * when connecting to a session. + */ + public fun deepLinkAllowed(deepLinkAllowed: String) + /** * @param disconnectTimeoutInMinutes The amount of time that a streaming session remains active * after users disconnect. @@ -306,6 +321,14 @@ public interface CfnUserSettingsProps { cdkBuilder.customerManagedKey(customerManagedKey) } + /** + * @param deepLinkAllowed Specifies whether the user can use deep links that open automatically + * when connecting to a session. + */ + override fun deepLinkAllowed(deepLinkAllowed: String) { + cdkBuilder.deepLinkAllowed(deepLinkAllowed) + } + /** * @param disconnectTimeoutInMinutes The amount of time that a streaming session remains active * after users disconnect. @@ -374,7 +397,8 @@ public interface CfnUserSettingsProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.workspacesweb.CfnUserSettingsProps, - ) : CdkObject(cdkObject), CfnUserSettingsProps { + ) : CdkObject(cdkObject), + CfnUserSettingsProps { /** * The additional encryption context of the user settings. * @@ -405,6 +429,14 @@ public interface CfnUserSettingsProps { */ override fun customerManagedKey(): String? = unwrap(this).getCustomerManagedKey() + /** + * Specifies whether the user can use deep links that open automatically when connecting to a + * session. + * + * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-usersettings.html#cfn-workspacesweb-usersettings-deeplinkallowed) + */ + override fun deepLinkAllowed(): String? = unwrap(this).getDeepLinkAllowed() + /** * The amount of time that a streaming session remains active after users disconnect. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroup.kt index 691dd25267..b9cfe10138 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroup.kt @@ -52,7 +52,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnGroup( cdkObject: software.amazon.awscdk.services.xray.CfnGroup, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -465,7 +467,8 @@ public open class CfnGroup( private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnGroup.InsightsConfigurationProperty, - ) : CdkObject(cdkObject), InsightsConfigurationProperty { + ) : CdkObject(cdkObject), + InsightsConfigurationProperty { /** * Set the InsightsEnabled value to true to enable insights or false to disable insights. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroupProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroupProps.kt index c482ce84a9..698c6b26eb 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroupProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnGroupProps.kt @@ -200,7 +200,8 @@ public interface CfnGroupProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnGroupProps, - ) : CdkObject(cdkObject), CfnGroupProps { + ) : CdkObject(cdkObject), + CfnGroupProps { /** * The filter expression defining the parameters to include traces. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicy.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicy.kt index 52befe97ea..e66b44659d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicy.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicy.kt @@ -39,7 +39,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnResourcePolicy( cdkObject: software.amazon.awscdk.services.xray.CfnResourcePolicy, -) : CfnResource(cdkObject), IInspectable { +) : CfnResource(cdkObject), + IInspectable { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicyProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicyProps.kt index eae1772322..3fc6ede19b 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicyProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnResourcePolicyProps.kt @@ -124,7 +124,8 @@ public interface CfnResourcePolicyProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnResourcePolicyProps, - ) : CdkObject(cdkObject), CfnResourcePolicyProps { + ) : CdkObject(cdkObject), + CfnResourcePolicyProps { /** * A flag to indicate whether to bypass the resource-based policy lockout safety check. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRule.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRule.kt index 29dc9d6980..194d217e15 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRule.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRule.kt @@ -115,7 +115,9 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class CfnSamplingRule( cdkObject: software.amazon.awscdk.services.xray.CfnSamplingRule, -) : CfnResource(cdkObject), IInspectable, ITaggableV2 { +) : CfnResource(cdkObject), + IInspectable, + ITaggableV2 { public constructor(scope: CloudshiftdevConstructsConstruct, id: String) : this(software.amazon.awscdk.services.xray.CfnSamplingRule(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap), id) @@ -924,7 +926,8 @@ public open class CfnSamplingRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnSamplingRule.SamplingRuleProperty, - ) : CdkObject(cdkObject), SamplingRuleProperty { + ) : CdkObject(cdkObject), + SamplingRuleProperty { /** * Matches attributes derived from the request. * @@ -1187,7 +1190,8 @@ public open class CfnSamplingRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnSamplingRule.SamplingRuleRecordProperty, - ) : CdkObject(cdkObject), SamplingRuleRecordProperty { + ) : CdkObject(cdkObject), + SamplingRuleRecordProperty { /** * When the rule was created, in Unix time seconds. * @@ -1533,7 +1537,8 @@ public open class CfnSamplingRule( private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnSamplingRule.SamplingRuleUpdateProperty, - ) : CdkObject(cdkObject), SamplingRuleUpdateProperty { + ) : CdkObject(cdkObject), + SamplingRuleUpdateProperty { /** * Matches attributes derived from the request. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRuleProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRuleProps.kt index 3e6dd3a66d..8b3bf055d4 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRuleProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/xray/CfnSamplingRuleProps.kt @@ -331,7 +331,8 @@ public interface CfnSamplingRuleProps { private class Wrapper( cdkObject: software.amazon.awscdk.services.xray.CfnSamplingRuleProps, - ) : CdkObject(cdkObject), CfnSamplingRuleProps { + ) : CdkObject(cdkObject), + CfnSamplingRuleProps { /** * (deprecated) The ARN of the sampling rule. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/ITrigger.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/ITrigger.kt index 05c07cb6b9..46e70acf33 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/ITrigger.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/ITrigger.kt @@ -35,7 +35,8 @@ public interface ITrigger : IConstruct { private class Wrapper( cdkObject: software.amazon.awscdk.triggers.ITrigger, - ) : CdkObject(cdkObject), ITrigger { + ) : CdkObject(cdkObject), + ITrigger { /** * Adds trigger dependencies. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/Trigger.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/Trigger.kt index 98f06b78bf..24c7c67da6 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/Trigger.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/Trigger.kt @@ -34,7 +34,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class Trigger( cdkObject: software.amazon.awscdk.triggers.Trigger, -) : CloudshiftdevConstructsConstruct(cdkObject), ITrigger { +) : CloudshiftdevConstructsConstruct(cdkObject), + ITrigger { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunction.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunction.kt index c92a08c5c4..0e97b7e656 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunction.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunction.kt @@ -14,6 +14,7 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.FileSystem @@ -26,9 +27,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LambdaInsightsVersion import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -36,6 +39,7 @@ import io.cloudshiftdev.awscdk.services.logs.RetentionDays import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -61,7 +65,8 @@ import software.constructs.Construct as SoftwareConstructsConstruct */ public open class TriggerFunction( cdkObject: software.amazon.awscdk.triggers.TriggerFunction, -) : Function(cdkObject), ITrigger { +) : Function(cdkObject), + ITrigger { public constructor( scope: CloudshiftdevConstructsConstruct, id: String, @@ -140,7 +145,23 @@ public open class TriggerFunction( fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -150,7 +171,8 @@ public open class TriggerFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ public fun allowAllOutbound(allowAllOutbound: Boolean) @@ -168,14 +190,25 @@ public open class TriggerFunction( public fun allowPublicSubnet(allowPublicSubnet: Boolean) /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * The system architectures compatible with this lambda function. * @@ -508,12 +541,14 @@ public open class TriggerFunction( public fun layers(vararg layers: ILayerVersion) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -699,6 +734,17 @@ public open class TriggerFunction( */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -805,14 +851,25 @@ public open class TriggerFunction( public fun snapStart(snapStart: SnapStartConf) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * The function execution time (in seconds) after which Lambda terminates the function. * @@ -916,7 +973,25 @@ public open class TriggerFunction( Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + * + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -926,7 +1001,8 @@ public open class TriggerFunction( * * Default: true * - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). */ override fun allowAllOutbound(allowAllOutbound: Boolean) { cdkBuilder.allowAllOutbound(allowAllOutbound) @@ -948,16 +1024,29 @@ public open class TriggerFunction( } /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" * + * @deprecated Use `applicationLogLevelV2` as a property instead. * @param applicationLogLevel Sets the application log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + * + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * The system architectures compatible with this lambda function. * @@ -1338,12 +1427,14 @@ public open class TriggerFunction( override fun layers(vararg layers: ILayerVersion): Unit = layers(layers.toList()) /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" * + * @deprecated Use `loggingFormat` as a property instead. * @param logFormat Sets the logFormat for the function. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -1556,6 +1647,19 @@ public open class TriggerFunction( cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + * + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1677,16 +1781,29 @@ public open class TriggerFunction( } /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" * + * @deprecated Use `systemLogLevelV2` as a property instead. * @param systemLogLevel Sets the system log level for the function. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + * + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunctionProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunctionProps.kt index a657c9d978..c7760b5707 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunctionProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerFunctionProps.kt @@ -15,6 +15,7 @@ import io.cloudshiftdev.awscdk.services.iam.IRole import io.cloudshiftdev.awscdk.services.iam.PolicyStatement import io.cloudshiftdev.awscdk.services.kms.IKey import io.cloudshiftdev.awscdk.services.lambda.AdotInstrumentationConfig +import io.cloudshiftdev.awscdk.services.lambda.ApplicationLogLevel import io.cloudshiftdev.awscdk.services.lambda.Architecture import io.cloudshiftdev.awscdk.services.lambda.Code import io.cloudshiftdev.awscdk.services.lambda.FileSystem @@ -27,9 +28,11 @@ import io.cloudshiftdev.awscdk.services.lambda.LambdaInsightsVersion import io.cloudshiftdev.awscdk.services.lambda.LogRetentionRetryOptions import io.cloudshiftdev.awscdk.services.lambda.LoggingFormat import io.cloudshiftdev.awscdk.services.lambda.ParamsAndSecretsLayerVersion +import io.cloudshiftdev.awscdk.services.lambda.RecursiveLoop import io.cloudshiftdev.awscdk.services.lambda.Runtime import io.cloudshiftdev.awscdk.services.lambda.RuntimeManagementMode import io.cloudshiftdev.awscdk.services.lambda.SnapStartConf +import io.cloudshiftdev.awscdk.services.lambda.SystemLogLevel import io.cloudshiftdev.awscdk.services.lambda.Tracing import io.cloudshiftdev.awscdk.services.lambda.VersionOptions import io.cloudshiftdev.awscdk.services.logs.ILogGroup @@ -38,6 +41,7 @@ import io.cloudshiftdev.awscdk.services.sns.ITopic import io.cloudshiftdev.awscdk.services.sqs.IQueue import io.cloudshiftdev.constructs.Construct import kotlin.Boolean +import kotlin.Deprecated import kotlin.Number import kotlin.String import kotlin.Unit @@ -81,7 +85,19 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { fun adotInstrumentation(adotInstrumentation: AdotInstrumentationConfig.Builder.() -> Unit) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + public fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -99,9 +115,16 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun applicationLogLevel(applicationLogLevel: String) + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + public fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -303,7 +326,9 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun logFormat(logFormat: String) /** @@ -426,6 +451,12 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { */ public fun profilingGroup(profilingGroup: IProfilingGroup) + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + public fun recursiveLoop(recursiveLoop: RecursiveLoop) + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -490,9 +521,16 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") public fun systemLogLevel(systemLogLevel: String) + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + public fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -559,7 +597,21 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { Unit = adotInstrumentation(AdotInstrumentationConfig(adotInstrumentation)) /** - * @param allowAllOutbound Whether to allow the Lambda to send all network traffic. + * @param allowAllIpv6Outbound Whether to allow the Lambda to send all ipv6 network traffic. + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + */ + override fun allowAllIpv6Outbound(allowAllIpv6Outbound: Boolean) { + cdkBuilder.allowAllIpv6Outbound(allowAllIpv6Outbound) + } + + /** + * @param allowAllOutbound Whether to allow the Lambda to send all network traffic (except + * ipv6). * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. * @@ -581,11 +633,20 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param applicationLogLevel Sets the application log level for the function. + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(applicationLogLevel: String) { cdkBuilder.applicationLogLevel(applicationLogLevel) } + /** + * @param applicationLogLevelV2 Sets the application log level for the function. + */ + override fun applicationLogLevelV2(applicationLogLevelV2: ApplicationLogLevel) { + cdkBuilder.applicationLogLevelV2(applicationLogLevelV2.let(ApplicationLogLevel.Companion::unwrap)) + } + /** * @param architecture The system architectures compatible with this lambda function. */ @@ -835,7 +896,9 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param logFormat Sets the logFormat for the function. + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(logFormat: String) { cdkBuilder.logFormat(logFormat) } @@ -985,6 +1048,14 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { cdkBuilder.profilingGroup(profilingGroup.let(IProfilingGroup.Companion::unwrap)) } + /** + * @param recursiveLoop Sets the Recursive Loop Protection for Lambda Function. + * It lets Lambda detect and terminate unintended recusrive loops. + */ + override fun recursiveLoop(recursiveLoop: RecursiveLoop) { + cdkBuilder.recursiveLoop(recursiveLoop.let(RecursiveLoop.Companion::unwrap)) + } + /** * @param reservedConcurrentExecutions The maximum of concurrent executions you want to reserve * for the function. @@ -1064,11 +1135,20 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { /** * @param systemLogLevel Sets the system log level for the function. + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(systemLogLevel: String) { cdkBuilder.systemLogLevel(systemLogLevel) } + /** + * @param systemLogLevelV2 Sets the system log level for the function. + */ + override fun systemLogLevelV2(systemLogLevelV2: SystemLogLevel) { + cdkBuilder.systemLogLevelV2(systemLogLevelV2.let(SystemLogLevel.Companion::unwrap)) + } + /** * @param timeout The function execution time (in seconds) after which Lambda terminates the * function. @@ -1125,7 +1205,8 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.triggers.TriggerFunctionProps, - ) : CdkObject(cdkObject), TriggerFunctionProps { + ) : CdkObject(cdkObject), + TriggerFunctionProps { /** * Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. * @@ -1137,7 +1218,21 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { unwrap(this).getAdotInstrumentation()?.let(AdotInstrumentationConfig::wrap) /** - * Whether to allow the Lambda to send all network traffic. + * Whether to allow the Lambda to send all ipv6 network traffic. + * + * If set to true, there will only be a single egress rule which allows all + * outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the + * Lambda to connect to network targets using ipv6. + * + * Do not specify this property if the `securityGroups` or `securityGroup` property is set. + * Instead, configure `allowAllIpv6Outbound` directly on the security group. + * + * Default: false + */ + override fun allowAllIpv6Outbound(): Boolean? = unwrap(this).getAllowAllIpv6Outbound() + + /** + * Whether to allow the Lambda to send all network traffic (except ipv6). * * If set to false, you must individually add traffic rules to allow the * Lambda to connect to network targets. @@ -1162,12 +1257,23 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { override fun allowPublicSubnet(): Boolean? = unwrap(this).getAllowPublicSubnet() /** - * Sets the application log level for the function. + * (deprecated) Sets the application log level for the function. * * Default: "INFO" + * + * @deprecated Use `applicationLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun applicationLogLevel(): String? = unwrap(this).getApplicationLogLevel() + /** + * Sets the application log level for the function. + * + * Default: ApplicationLogLevel.INFO + */ + override fun applicationLogLevelV2(): ApplicationLogLevel? = + unwrap(this).getApplicationLogLevelV2()?.let(ApplicationLogLevel::wrap) + /** * The system architectures compatible with this lambda function. * @@ -1385,10 +1491,13 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { ?: emptyList() /** - * Sets the logFormat for the function. + * (deprecated) Sets the logFormat for the function. * * Default: "Text" + * + * @deprecated Use `loggingFormat` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun logFormat(): String? = unwrap(this).getLogFormat() /** @@ -1535,6 +1644,16 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { override fun profilingGroup(): IProfilingGroup? = unwrap(this).getProfilingGroup()?.let(IProfilingGroup::wrap) + /** + * Sets the Recursive Loop Protection for Lambda Function. + * + * It lets Lambda detect and terminate unintended recusrive loops. + * + * Default: RecursiveLoop.Terminate + */ + override fun recursiveLoop(): RecursiveLoop? = + unwrap(this).getRecursiveLoop()?.let(RecursiveLoop::wrap) + /** * The maximum of concurrent executions you want to reserve for the function. * @@ -1613,12 +1732,23 @@ public interface TriggerFunctionProps : FunctionProps, TriggerOptions { override fun snapStart(): SnapStartConf? = unwrap(this).getSnapStart()?.let(SnapStartConf::wrap) /** - * Sets the system log level for the function. + * (deprecated) Sets the system log level for the function. * * Default: "INFO" + * + * @deprecated Use `systemLogLevelV2` as a property instead. */ + @Deprecated(message = "deprecated in CDK") override fun systemLogLevel(): String? = unwrap(this).getSystemLogLevel() + /** + * Sets the system log level for the function. + * + * Default: SystemLogLevel.INFO + */ + override fun systemLogLevelV2(): SystemLogLevel? = + unwrap(this).getSystemLogLevelV2()?.let(SystemLogLevel::wrap) + /** * The function execution time (in seconds) after which Lambda terminates the function. * diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerOptions.kt index f37ec9c376..cc99729f7d 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerOptions.kt @@ -167,7 +167,8 @@ public interface TriggerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.triggers.TriggerOptions, - ) : CdkObject(cdkObject), TriggerOptions { + ) : CdkObject(cdkObject), + TriggerOptions { /** * Adds trigger dependencies. Execute this trigger only after these construct scopes have been * provisioned. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerProps.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerProps.kt index 049ee22973..e58b16ed2a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerProps.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/triggers/TriggerProps.kt @@ -191,7 +191,8 @@ public interface TriggerProps : TriggerOptions { private class Wrapper( cdkObject: software.amazon.awscdk.triggers.TriggerProps, - ) : CdkObject(cdkObject), TriggerProps { + ) : CdkObject(cdkObject), + TriggerProps { /** * Adds trigger dependencies. Execute this trigger only after these construct scopes have been * provisioned. diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/Construct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/Construct.kt index fb8036091f..4c8f44ed0c 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/Construct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/Construct.kt @@ -9,7 +9,8 @@ import kotlin.String public open class Construct( cdkObject: software.constructs.Construct, -) : CdkObject(cdkObject), IConstruct { +) : CdkObject(cdkObject), + IConstruct { public constructor(scope: Construct, id: String) : this(software.constructs.Construct(scope.let(Construct.Companion::unwrap), id) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/DependencyGroup.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/DependencyGroup.kt index f6df395ea5..5be14ae96a 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/DependencyGroup.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/DependencyGroup.kt @@ -6,7 +6,8 @@ import io.cloudshiftdev.awscdk.common.CdkObject public open class DependencyGroup( cdkObject: software.constructs.DependencyGroup, -) : CdkObject(cdkObject), IDependable { +) : CdkObject(cdkObject), + IDependable { public constructor(deps: IDependable) : this(software.constructs.DependencyGroup(deps.let(IDependable.Companion::unwrap)) ) diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IConstruct.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IConstruct.kt index a870aa1ff1..db894813a2 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IConstruct.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IConstruct.kt @@ -10,7 +10,8 @@ public interface IConstruct : IDependable { private class Wrapper( cdkObject: software.constructs.IConstruct, - ) : CdkObject(cdkObject), IConstruct { + ) : CdkObject(cdkObject), + IConstruct { override fun node(): Node = unwrap(this).getNode().let(Node::wrap) } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IDependable.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IDependable.kt index a645c34113..52fda82d80 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IDependable.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IDependable.kt @@ -8,7 +8,8 @@ import io.cloudshiftdev.awscdk.common.CdkObjectWrappers public interface IDependable { private class Wrapper( cdkObject: software.constructs.IDependable, - ) : CdkObject(cdkObject), IDependable + ) : CdkObject(cdkObject), + IDependable public companion object { internal fun wrap(cdkObject: software.constructs.IDependable): IDependable = diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IValidation.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IValidation.kt index 0ca6ba2a8e..924ce43cc9 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IValidation.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/IValidation.kt @@ -12,7 +12,8 @@ public interface IValidation { private class Wrapper( cdkObject: software.constructs.IValidation, - ) : CdkObject(cdkObject), IValidation { + ) : CdkObject(cdkObject), + IValidation { override fun validate(): List = unwrap(this).validate() } diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataEntry.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataEntry.kt index 4b8284fb1a..575282afcc 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataEntry.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataEntry.kt @@ -51,7 +51,8 @@ public interface MetadataEntry { private class Wrapper( cdkObject: software.constructs.MetadataEntry, - ) : CdkObject(cdkObject), MetadataEntry { + ) : CdkObject(cdkObject), + MetadataEntry { override fun `data`(): Any = unwrap(this).getData() override fun trace(): List = unwrap(this).getTrace() ?: emptyList() diff --git a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataOptions.kt b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataOptions.kt index aa9095e5f9..dd61188476 100644 --- a/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataOptions.kt +++ b/kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/constructs/MetadataOptions.kt @@ -38,7 +38,8 @@ public interface MetadataOptions { private class Wrapper( cdkObject: software.constructs.MetadataOptions, - ) : CdkObject(cdkObject), MetadataOptions { + ) : CdkObject(cdkObject), + MetadataOptions { override fun stackTrace(): Boolean? = unwrap(this).getStackTrace() override fun traceFromFunction(): Any? = unwrap(this).getTraceFromFunction()